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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f242ef8f18dc2245fad91441c12af27ab8d4ce43 | cd4be8b6bee2964d063b332c0c8784ab6c89c8e5 | /setup.py | 6609105b6ac52f007c4dfbd88d3cb3ea8f62134b | [
"Apache-2.0"
] | permissive | pytorch/opacus | d55f9c3627943a3c067528849401663cfaf7d622 | 79bdfac28afb526430a938d38513c46936f8670a | refs/heads/main | 2023-09-04T01:03:50.533043 | 2023-08-01T19:37:56 | 2023-08-01T19:37:56 | 226,441,159 | 1,358 | 291 | Apache-2.0 | 2023-09-11T13:29:37 | 2019-12-07T01:58:09 | Jupyter Notebook | UTF-8 | Python | false | false | 2,951 | py | setup.py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
955c3ef2db7c1438255caeba646b0f98d21ce064 | aa1865ff1b47a2ed0f43dc993e7e0916969d3a9e | /sentence_transformers/losses/BatchSemiHardTripletLoss.py | 2d543e96d379de4b52603ae3322f7469e9ca045c | [
"Apache-2.0"
] | permissive | UKPLab/sentence-transformers | a1c0e055d96478b9b2c7718a299fc268e9449a63 | a458ce79c40fef93d5ecc66931b446ea65fdd017 | refs/heads/master | 2023-08-31T22:01:24.008337 | 2023-08-08T07:06:22 | 2023-08-08T07:06:22 | 198,616,978 | 11,967 | 2,260 | Apache-2.0 | 2023-09-08T14:54:52 | 2019-07-24T10:53:51 | Python | UTF-8 | Python | false | false | 5,586 | py | BatchSemiHardTripletLoss.py | import torch
from torch import nn, Tensor
from typing import Union, Tuple, List, Iterable, Dict
from .BatchHardTripletLoss import BatchHardTripletLoss, BatchHardTripletLossDistanceFunction
from sentence_transformers.SentenceTransformer import SentenceTransformer
class BatchSemiHardTripletLoss(nn.Module):
"""
... |
41c8b8c2a31c0c652bbe0da84bcb81c08fcb9e47 | ab2c71406829cbc40ef96b8990b67b33744479c9 | /examples/localhost-ssh-example/dag.py | 86df694a70774a3565740485f76c5efc8e870f02 | [
"Apache-2.0"
] | permissive | godatadriven/whirl | 39fba96c0250f93f5f0511cd48711cc8fad197c6 | f8c217dae5504de56fda37b49cb38b88ad394727 | refs/heads/master | 2023-08-14T00:56:03.880426 | 2023-07-15T06:58:09 | 2023-07-15T06:58:09 | 173,707,232 | 183 | 13 | Apache-2.0 | 2023-07-21T08:03:30 | 2019-03-04T08:46:05 | Shell | UTF-8 | Python | false | false | 649 | py | dag.py | from datetime import timedelta, datetime
from airflow import DAG
from airflow.providers.ssh.operators.ssh import SSHOperator
default_args = {
'owner': 'whirl',
'depends_on_past': False,
'start_date': datetime.now() - timedelta(minutes=20),
'retries': 1,
'retry_delay': timedelta(minutes=5),
}
dag =... |
933df067d2b7cb522ce2417babae65df0498963a | 25df83bdcecde0b8a5d57afc1e5e9bedded1a5ab | /spikeextractors/extractors/cellexplorersortingextractor/__init__.py | 25a41d1b9cbcf0879d871677b2d2b6221f8b23be | [
"MIT"
] | permissive | SpikeInterface/spikeextractors | 38313020db49fcc5692eb3d4e5b65c6fa83034ee | d24335cc2fa6e407469b790dc8fea2fdadb2b2a3 | refs/heads/master | 2022-12-04T23:04:51.998828 | 2022-11-22T12:00:25 | 2022-11-22T12:00:25 | 150,145,518 | 149 | 67 | MIT | 2022-11-22T12:00:26 | 2018-09-24T17:58:51 | Python | UTF-8 | Python | false | false | 71 | py | __init__.py | from .cellexplorersortingextractor import CellExplorerSortingExtractor
|
d57c3d319a899b306a20e1e3043376fa219e15db | ef4bd152c448cc4304e292bfbe38c08f0e9ed685 | /src/torchmetrics/functional/audio/__init__.py | a0982d3443d39cdbc112036386a14b2b2ba95c07 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | Lightning-AI/torchmetrics | 05aef74af7a167bdbf0f6f605454656a4031e26a | 66f1859c5fefffcb37de4f430a6fbf71fb6c8c6b | refs/heads/master | 2023-08-31T20:50:41.184700 | 2023-08-31T16:17:12 | 2023-08-31T16:17:12 | 323,721,661 | 295 | 59 | Apache-2.0 | 2023-09-14T14:58:53 | 2020-12-22T20:02:42 | Python | UTF-8 | Python | false | false | 2,135 | py | __init__.py | # Copyright The Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
995bcf26829693041073c8214f304870c985f1c9 | e50503e4fc186c7bf8ad7e08fda896c53dae3f98 | /scripts/rename_item_pngs.py | 2dffc08890cfa21d11d70cfd585648f28dc3fbad | [
"BSD-2-Clause"
] | permissive | Hyphen-ated/RebirthItemTracker | 2e54fa3214ad751b9c6aaa9d3844e37cffae654f | fdaff33c0789ba9dc4f43b166ebe88d48d8f1848 | refs/heads/master | 2021-06-10T21:43:35.113154 | 2021-04-03T02:00:12 | 2021-04-03T02:00:12 | 30,712,308 | 152 | 75 | BSD-2-Clause | 2021-04-02T20:01:35 | 2015-02-12T16:43:08 | Python | UTF-8 | Python | false | false | 804 | py | rename_item_pngs.py | # this is a script to add new item pngs to the repository in the form the tracker expects
# basically we're going from "collectibles_440_kidneystone.png" to "collectibles_440.png"
# this is not part of the tracker itself
import os, re, shutil
files = []
incoming_files_directory = 'brand_new_images'
outgoing_files_dir... |
7469015dce1162f7c22b0d601d71c2fa750dad5d | b4cfd4949cab5dc5bd27fb028596a9fc02f4e1db | /skfda/exploratory/outliers/_envelopes.py | e14d397aedb42f0bbecbc6f8aeece7daa9e2fe0f | [
"BSD-3-Clause"
] | permissive | GAA-UAM/scikit-fda | dabfd995f2c82efb0d44fa1d2005b2a8ca67442b | dfbce35cc9e67d93306dddf0edf4f95aaacd8aff | refs/heads/develop | 2023-08-31T09:11:31.407423 | 2023-08-18T08:19:21 | 2023-08-18T08:19:21 | 96,133,420 | 231 | 55 | BSD-3-Clause | 2023-08-18T08:19:22 | 2017-07-03T17:06:56 | Python | UTF-8 | Python | false | false | 1,978 | py | _envelopes.py | from __future__ import annotations
import math
from typing import Tuple
import numpy as np
from ...representation import FDataGrid
from ...typing._numpy import NDArrayBool, NDArrayFloat, NDArrayInt
def compute_region(
fdatagrid: FDataGrid,
indices_descending_depth: NDArrayInt,
prob: float,
) -> FDataGr... |
74f98a0100087e85c0a3128e8d1b8e8caf98f9ca | 2ead2b29aa5cd0de97d3bf57ffbdca5114dd9ad1 | /latest_devices.py | 047fbeef757d09100bc09fa8bec3396f133de848 | [
"MIT"
] | permissive | meraki/automation-scripts | c9d036cdd98063776bcffa3794987de75167cbc9 | c6939a9bb9df5d87ac15a333f70d50fb2728a30a | refs/heads/master | 2023-06-09T13:18:40.674543 | 2023-06-06T06:41:50 | 2023-06-06T06:41:50 | 96,457,083 | 348 | 190 | MIT | 2023-05-22T23:30:44 | 2017-07-06T17:49:01 | Python | UTF-8 | Python | false | false | 16,838 | py | latest_devices.py | readMe = '''
Exports CSV of all in-use devices claimed after a specific date. Can include info
for one or more organizations. The script works by fetching the devices in the inventory
of the organizations being processed and creates a report for those that match the following
criteria:
* They are part of a net... |
d645795c73581a0b97e0139f68def2733aab2807 | 75699bf130edd9317dfc11338b18fb8750e4f95a | /source/todo/data_access.py | bfcc8ddf1ee3c05e18124e3db17f72fde091c787 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | foobuzz/todo | a9fef55827c9aff20dd0f6dec99034b26b137282 | 8d21c51d401845d164ae38dfb30059233bc873e5 | refs/heads/master | 2023-08-25T07:04:21.721162 | 2022-06-25T16:59:26 | 2022-06-25T17:03:44 | 51,653,533 | 451 | 65 | MIT | 2022-12-27T16:36:01 | 2016-02-13T16:17:42 | Python | UTF-8 | Python | false | false | 22,747 | py | data_access.py | import sqlite3, json, os
import os.path as op
from datetime import datetime
from . import utils, init_db
from .utils import DATA_DIR, DB_PATH, DATAFILE_NAME, DATA_CTX_NAME
DATETIME_MIN = '0001-01-01 00:00:00'
END_OF_JSON = '2.1'
def setup_data_access(current_version):
"""
Prepare the sqlite database so that it's ... |
aefde3acd80e0ed767d2d5fddd85b79bb5441477 | 12ac38b4146253c5778d0e53eb4128dce2ae1860 | /autosar/datatype.py | c93142b1c23c99b98dbf21fe1558dc0895bcfad9 | [
"MIT"
] | permissive | cogu/autosar | a75e12186877b4ace807ab5e14daa89c6fb42935 | 5db06cc46f27c1ef8edec92f6883850cfd9e61f1 | refs/heads/master | 2023-08-30T19:59:59.277984 | 2023-05-08T19:10:21 | 2023-05-08T19:10:21 | 63,766,974 | 291 | 152 | MIT | 2022-03-27T18:30:55 | 2016-07-20T09:05:26 | Python | UTF-8 | Python | false | false | 32,190 | py | datatype.py | from autosar.element import Element
import autosar.base
import math
import json
import copy
import collections
class RecordTypeElement(Element):
"""
(AUTOSAR3)
Implemenetation of <RECORD-ELEMENT> (found inside <RECORD-TYPE>).
"""
def tag(self, version=None): return 'RECORD-ELEMENT'
... |
76c24e6669ab4aec30c9dbd9121cbde28b32a355 | 7d60cde80c322ff41b233967456f9a5b9f938d16 | /sqlalchemy/metadata-7-inspector.py | 380b7332287be60c9358b85d7c5817957de633c0 | [] | no_license | besnik/tutorials | e8a9f9a0a6709f69746b51f5a5bdc3c7520c49d5 | 600494b7296854f873aac7b9ff3c4cc23be7d989 | refs/heads/master | 2020-05-21T20:28:21.944713 | 2020-03-28T07:25:14 | 2020-03-28T07:25:14 | 65,710,896 | 113 | 39 | null | 2017-03-07T19:13:13 | 2016-08-15T06:47:56 | Python | UTF-8 | Python | false | false | 1,736 | py | metadata-7-inspector.py | # define metadata for table
from sqlalchemy import MetaData
from sqlalchemy import Table, Column, ForeignKey
from sqlalchemy import Integer, String
metadata = MetaData() # metadata is collection of tables and can be traversed like XML DOM
city_table = Table("city", metadata,
Column("id", Integer, primary_key=Tru... |
b3621e61b6c073abaf42c99ee2a62c4539de9d0f | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/siprouting/_models.py | 27d7f74153cc3388e20e1b3a65184fe6ce39bd0a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"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 | 3,035 | py | _models.py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
class Sip... |
88989bf6721c86d498cfeb110accfab06616ba32 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/PageTemplateParamInfoDTO.py | e09617ee0d1876a5e7fb1d94e6a3bb6e0dc9167e | [
"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 | 4,203 | py | PageTemplateParamInfoDTO.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class PageTemplateParamInfoDTO(object):
def __init__(self):
self._allow_user_input = None
self._code = None
self._ext_info = None
self._front_render_type = None
... |
55d315bb7fe89d44a97f13a60487890bee093fad | d110546d747d7e3865ce5742d5fca09f404623c0 | /salt/modules/scsi.py | e405865806a29f89d82c73347a5ef013692ffb1a | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 2,724 | py | scsi.py | """
SCSI administration module
"""
import logging
import os.path
import salt.utils.path
log = logging.getLogger(__name__)
__func_alias__ = {"ls_": "ls"}
def ls_(get_size=True):
"""
List SCSI devices, with details
CLI Examples:
.. code-block:: bash
salt '*' scsi.ls
salt '*' scsi.... |
7e5eebc8d32bd40059d7c08045db0774c74b2f8c | 90bb1316ae8efc82f25005de9a4dd98c302d4876 | /examples/vibrancy.py | 12ef85f5b0daa71e0abf2bd55e14d01883b89730 | [
"BSD-3-Clause"
] | permissive | r0x0r/pywebview | 9b5f789430be56a1f709911c81f92e671f1ae527 | 46c5404b72ef8194454a63ff9981ab59c9c2e27e | refs/heads/master | 2023-08-31T05:32:04.531754 | 2023-08-30T20:04:33 | 2023-08-30T20:04:33 | 26,908,699 | 4,094 | 680 | BSD-3-Clause | 2023-09-06T01:57:46 | 2014-11-20T11:05:46 | Python | UTF-8 | Python | false | false | 438 | py | vibrancy.py | """
This example demonstrates how to set vibrancy (macos).
window set transparent and html set background to transparent
"""
import webview
def load_css(window):
window.load_css('body { background: transparent !important; }')
if __name__ == '__main__':
window = webview.create_window(
'Vibrancy exam... |
7b223f7686382a31eb19cc5e566eb83119659f89 | 22c47b4602212c54b022fd74e2f6c2c879d9699d | /chemml/chem/magpie_python/__init__.py | 34eb7b3945b973910fb430b7770a9938ce1db0b8 | [
"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 | 7,831 | py | __init__.py | """
This module is adapted entirely from Magpie (https://bitbucket.org/wolverton/magpie).
If you are using this module, please cite Magpie as:
L. Ward, A. Agrawal, A. Choudhary, and C. Wolverton, "A general-purpose machine learning framework for predicting properties of inorganic materials," npj Computational Material... |
0a7775bf480d9c333260e5339a08d35a17e9c102 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /dashboard/dashboard/models/anomaly_config_test.py | 51ca15065611cdedc693a89b4bf8d323e37c1ddc | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 2,199 | py | anomaly_config_test.py | # Copyright 2015 The Chromium Authors. All rights reserved.
# 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
from __future__ import division
from __future__ import absolute_import
import unittest
import mock
from google.appen... |
c4670af39ce9add0a2193bfa901be3cdf0f7f5cf | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /telemetry/build/update_docs.py | d24f6733fadae7dbf3abdbf0df528f6b56201aad | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 4,771 | py | update_docs.py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import absolute_import
import logging
import optparse
import os
import pkgutil
import pydoc
import re
import sys
import telemetry
from teleme... |
52d2a4b703309e7a661dddef5c342c34109a775d | 1bb8bea68052cb7a29b09494d0697f907bb7e6f3 | /HomeAssistant_File/custom_components/blueiris/managers/home_assistant.py | bcb94270fd3458dd7d908e3caf356aa3cee185c0 | [
"Unlicense"
] | permissive | abeksis/My-HomeAssistant-Config | 467e5d7df9b8daf785917bce620e3402315a44fd | 3d9dd11f1a72f9ad44ea72e8476b1b2b95ed3e6a | refs/heads/master | 2023-04-26T19:13:48.225988 | 2023-04-16T08:03:57 | 2023-04-16T08:03:57 | 199,162,968 | 107 | 22 | null | 2019-07-28T09:29:09 | 2019-07-27T12:37:33 | HTML | UTF-8 | Python | false | false | 8,059 | py | home_assistant.py | """
Support for Blue Iris.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/blueiris/
"""
from datetime import datetime
import logging
import sys
from typing import Optional
from cryptography.fernet import InvalidToken
from homeassistant.config_entries im... |
a580b4169baa03e2ca40b84aef90caf738745635 | 150a7b11cb531f8bc2a045aefcf2ebe1d151efa3 | /tests/ecosystem/upgrade/test_configuration.py | 05aacfee44321155094e81329d07606f8a27f9fa | [
"MIT"
] | permissive | red-hat-storage/ocs-ci | c7ac414e1b86552da0439223dfa9bca39977f31a | 5e9e504957403148e413326f65c3769bf9d8eb39 | refs/heads/master | 2023-08-17T16:19:51.154403 | 2023-08-17T13:27:12 | 2023-08-17T13:27:12 | 179,558,938 | 146 | 210 | MIT | 2023-09-14T16:38:44 | 2019-04-04T19:00:02 | Python | UTF-8 | Python | false | false | 1,435 | py | test_configuration.py | import logging
import pytest
from ocs_ci.framework.pytest_customization.marks import (
pre_upgrade,
post_upgrade,
brown_squad,
)
from ocs_ci.ocs.resources import pod
log = logging.getLogger(__name__)
def get_crush_map():
"""
Get decompiled CRUSH map from ceph toolbox pod.
Returns:
... |
f8c61161b355415b5f8c84dd3e858d2e0e25f469 | c80d0926964a49d9b136f4d591cd220c54a5ef6b | /setup.py | 3da0fb66c0ac04f50a3962885ebf3ca24130d6f4 | [
"MIT"
] | permissive | python-visualization/folium | ac4e0c62ccc150699ccdc5946c2491a190ed23c0 | b4fa788667c0d4b6ced46cbf1b74d37d7c336f6a | refs/heads/main | 2023-09-01T12:53:42.809713 | 2023-08-15T08:38:44 | 2023-08-15T08:38:44 | 9,952,134 | 6,257 | 2,720 | MIT | 2023-09-08T13:17:29 | 2013-05-09T04:21:35 | Python | UTF-8 | Python | false | false | 2,140 | py | setup.py | import os
from setuptools import setup
rootpath = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return open(os.path.join(rootpath, *parts)).read()
def walk_subpkg(name):
data_files = []
package_dir = "folium"
for parent, dirs, files in os.walk(os.path.join(package_dir, name)):
... |
c38dfeca60d178150a113aa7e39f4cbef6827cdd | 57c0a57269dfc516c7f46468940efb62cb863af4 | /langchain/serpapi.py | dd8569b6b1d7cf41cbfd20e0d973da095b880eb5 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/MM-REACT | e67a843faadf4752f5e9d0e2dbf0c80068dbd288 | b8f29af7f3c24cf3a4554bebfa2053064467fbdb | refs/heads/main | 2023-08-31T03:01:42.246514 | 2023-05-12T20:43:11 | 2023-05-12T20:43:11 | 614,230,777 | 705 | 57 | MIT | 2023-08-30T00:04:13 | 2023-03-15T06:56:13 | Python | UTF-8 | Python | false | false | 119 | py | serpapi.py | """For backwards compatiblity."""
from langchain.utilities.serpapi import SerpAPIWrapper
__all__ = ["SerpAPIWrapper"]
|
8c6b23d5a2922002e5e0b84729c3078e7343208b | dd5f0d6fd9090659d42809cd60c037dbb2a162d9 | /tests/data/expected/main/main_external_files_in_directory/output.py | cf84178041431b57ab6830811c1cb7c9b5a6b471 | [
"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 | 1,737 | py | output.py | # generated by datamodel-codegen:
# filename: person.json
# timestamp: 2019-07-26T00:00:00+00:00
from __future__ import annotations
from enum import Enum
from typing import List, Optional, Union
from pydantic import BaseModel, Extra, Field, conint
class Fur(Enum):
Short_hair = 'Short hair'
Long_hair =... |
3994152200411aa6653403d45368f57f5f154b76 | b68174b4d500eefe9ce5f6684f7ea830e693c8b6 | /nsot/api/urls.py | ef2c8496fa7c453ccbac5e57d76fdef682931de9 | [
"Apache-2.0"
] | permissive | dropbox/nsot | 62e7443b8d2dd18165f23df2b2228480c4effd92 | 941b11f84f5c0d210f638654a6ed34a5610af22a | refs/heads/develop | 2023-07-31T14:24:54.328339 | 2019-10-25T17:50:44 | 2019-10-25T17:50:44 | 28,201,627 | 414 | 84 | NOASSERTION | 2022-03-06T15:20:01 | 2014-12-18T21:06:12 | Python | UTF-8 | Python | false | false | 2,240 | py | urls.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
from django.conf.urls import url, include
from django.conf import settings
from . import routers, views
# Register all endpoints as a top-level resource
router = routers.BulkRouter(trailing_slash=settings.APPEND_S... |
20f85a25909a546bb60986909e4b06493845a021 | 6223eda8f703171dfca7973d56d788c6b2afc581 | /blog/tests/test_views.py | 6739cccf2c306190cc6b1b9310fe13719aa8893e | [
"CC0-1.0"
] | permissive | mdn/django-diy-blog | bea3611dbfd89e68c498a4357a6ab4aa7467164d | 4af1515a1098de5fbfe2f1b37cca282ae029a83d | refs/heads/main | 2023-08-28T04:50:38.774418 | 2023-01-05T15:12:24 | 2023-01-05T15:12:24 | 73,102,179 | 235 | 145 | CC0-1.0 | 2023-01-05T15:12:26 | 2016-11-07T17:10:57 | Python | UTF-8 | Python | false | false | 1,549 | py | test_views.py | from django.test import TestCase
# Create your tests here.
from blog.models import Blog, BlogAuthor
from django.urls import reverse
from django.contrib.auth.models import User #Blog author or commenter
class BlogListView(TestCase):
@classmethod
def setUpTestData(cls):
test_user1 = User.objects.... |
e7d0445cf3e391386dbb5d63769d2941dd60ff12 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_detection_map_op.py | e8c0e272110171ff488ab39eb95a6280f19f6a9e | [
"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 | 11,886 | py | test_detection_map_op.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... |
190b315de0a231fe6b1fa114f6f36f304d8b362f | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/unit/output/test_nested.py | c56faf8967263f97a8b8176ef329548cbb0f0494 | [
"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 | 6,131 | py | test_nested.py | """
Unit tests for the Nested outputter
"""
import pytest
import salt.output.nested as nested
@pytest.fixture
def configure_loader_modules():
return {nested: {"__opts__": {"extension_modules": "", "color": True}}}
@pytest.fixture
def data():
# The example from the documentation for the test.arg execution f... |
3143fd74f66b1a75e0e8e27c3249b618a278d1ec | e39cfcb65565524225fa304fb06ebf5ad3513306 | /python-sdk/pachyderm_sdk/datum_batching.py | e4a82575cd10846e17560f842fa1b8738fa7ac11 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | pachyderm/pachyderm | 7b5cbd89c6f3efa5d7bfb3eeed412f5ea1026d04 | 125f95010125f2df34bafb3ac804c966299c0f98 | refs/heads/master | 2023-08-31T11:56:47.995626 | 2023-08-30T22:50:50 | 2023-08-30T22:50:50 | 23,653,453 | 5,718 | 712 | Apache-2.0 | 2023-09-14T19:37:37 | 2014-09-04T07:50:02 | Go | UTF-8 | Python | false | false | 1,570 | py | datum_batching.py | """A high-level decorator for pipeline code that uses the datum-batching feature."""
from functools import wraps
from typing import Callable
from . import Client
PIPELINE_FUNC = Callable[..., None]
def batch_all_datums(user_code: PIPELINE_FUNC) -> PIPELINE_FUNC:
"""A decorator that will repeatedly call the wrap... |
b9924ea9c1f6de05a79c4a4f3245e02e29237865 | d886db78c784f5944fd047770795d7b44c161eaf | /dockerfiles/puppeteer-context/mina_daemon_puppeteer.py | d382c144d66c1cc05a3fb7e98da1fc3150fb990c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MinaProtocol/mina | b9a5a7e94aae4436ad70169788ba62e96fed1e96 | e82479e8898fc48be5907f443eb2ca00b408fc7e | refs/heads/develop | 2023-09-06T05:23:37.621958 | 2023-09-05T19:32:22 | 2023-09-05T19:32:22 | 114,581,326 | 1,443 | 391 | Apache-2.0 | 2023-09-14T20:16:48 | 2017-12-18T01:10:17 | OCaml | UTF-8 | Python | false | false | 6,183 | py | mina_daemon_puppeteer.py | #!/usr/bin/env python3
# This is a temporary hack for the integration test framework to be able to stop
# and start nodes dyamically in a kubernetes environment. This script takes
# mina arguments and will start and monitor a mina process with those arguments.
# If a SIGUSR1 signal is sent, it will stop this process, ... |
e59937ddc319f33abb52c92fedf973bc2be64547 | adb4e6b82e5f969fc46f7c58e70e49c5d53a6fe3 | /exotica_examples/scripts/example_attach | 0781c52ee0a0c7c5d04aa9c8e782b5e1117c201e | [
"BSD-3-Clause"
] | permissive | ipab-slmc/exotica | 8d9b531916f1e7422f85854597aa925091a7b7c4 | be580d162c5798d976f138cc1cd99474aef9c6fe | refs/heads/master | 2021-12-15T15:19:26.471745 | 2021-12-08T03:43:44 | 2021-12-08T03:43:44 | 44,607,894 | 144 | 55 | NOASSERTION | 2021-07-23T10:51:43 | 2015-10-20T13:24:57 | C++ | UTF-8 | Python | false | false | 1,806 | example_attach | #!/usr/bin/env python
import pyexotica as exo
from pyexotica.publish_trajectory import *
from time import sleep
import signal
def handle_attaching(i, x, scene):
# Update state
scene.update(x)
if i == 0:
# Reset object pose
scene.attach_object_local(
'Item', '', exo.KDLFrame([0.... | |
a349d7f922a6ff43b93e866fdaa3f2fef6d04e9e | 1f399edf85d995443d01f66d77eca0723886d0ff | /misc/config_tools/scenario_config/default_populator.py | fdb19754dbe920036c02a1bc977bff44e4c407ee | [
"BSD-3-Clause"
] | permissive | projectacrn/acrn-hypervisor | f9c5864d54929a5d2fa36b5e78c08f19b46b8f98 | 390740aa1b1e9d62c51f8e3afa0c29e07e43fa23 | refs/heads/master | 2023-08-18T05:07:01.310327 | 2023-08-11T07:49:36 | 2023-08-16T13:20:27 | 123,983,554 | 1,059 | 686 | BSD-3-Clause | 2023-09-14T09:51:10 | 2018-03-05T21:52:25 | C | UTF-8 | Python | false | false | 4,154 | py | default_populator.py | #!/usr/bin/env python3
#
# Copyright (C) 2022 Intel Corporation.
#
# SPDX-License-Identifier: BSD-3-Clause
#
import os
import argparse
import elementpath
from scenario_transformer import ScenarioTransformer
from pipeline import PipelineObject, PipelineStage, PipelineEngine
from schema_slicer import SlicingSchemaByVM... |
0fe2b57b6fdeea7cddfdeaee01b1356d87d4c9fa | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /dts/airbyte/airbyte-integrations/connectors/source-sentry/source_sentry/streams.py | a07681a4566bf7a478c2e5e5f971ec4b0cd439f7 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Elastic-2.0"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 7,191 | py | streams.py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from abc import ABC
from typing import Any, Iterable, Mapping, MutableMapping, Optional
import pendulum
import requests
from airbyte_cdk.sources.streams import IncrementalMixin
from airbyte_cdk.sources.streams.http import HttpStream
class SentryStream(Ht... |
5232c36eed6a01f842cfa33dd51e8e9053e4f7a5 | 5f69a6549b8d5e417553d910622e6855b2ae679b | /src/opendr/perception/activity_recognition/datasets/utils/decoder.py | 5e2b9b69af077d3ca5eb386581ad69f0f229414f | [
"Apache-2.0"
] | permissive | opendr-eu/opendr | 822219f709613d77c5eb62c5d02808d344239835 | b3d6ce670cdf63469fc5766630eb295d67b3d788 | refs/heads/master | 2023-08-31T07:02:36.375231 | 2023-08-29T06:39:51 | 2023-08-29T06:39:51 | 293,755,225 | 535 | 82 | Apache-2.0 | 2023-09-13T16:53:34 | 2020-09-08T08:55:04 | Python | UTF-8 | Python | false | false | 14,700 | py | decoder.py | """ Adapted from: https://github.com/facebookresearch/SlowFast
"""
import math
import random
import numpy as np
import torch
import torchvision.io as io
from logging import getLogger
logger = getLogger(__name__)
def temporal_sampling(frames, start_idx, end_idx, num_samples):
"""
Given the start and end fr... |
65b659e41c7f7a359f47563e7cda1ca6327db919 | 63cb78527bcb90f984788587a29f8f115e94ab64 | /dash_bio/component_factory/_volcano.py | a337cac71d17284cc1cb8513d0764db1ebc9bd4a | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | plotly/dash-bio | 2b3468626c7f021c083c8b9170e61862d5dc151d | 8a97db7811cc586d7e0bf1d33c17b898052b2e8f | refs/heads/master | 2023-09-03T13:30:45.743959 | 2023-08-16T15:26:27 | 2023-08-16T15:26:27 | 141,365,566 | 505 | 228 | MIT | 2023-08-23T01:28:46 | 2018-07-18T01:40:23 | Python | UTF-8 | Python | false | false | 22,893 | py | _volcano.py | from __future__ import absolute_import
import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype
import plotly.graph_objects as go
from .utils import _get_hover_text
GENOMEWIDE_LINE_LABEL = 'genomewide_line'
EFFECT_SIZE_LINE_MIN_LABEL = 'effect size min line'
EFFECT_SIZE_LINE_MAX_LABEL = ... |
42300d7f72d9035b602ab14a80291be300d679f5 | 9cb06b7767ba4fd20fe12fbd85b2b9f20d0f41a2 | /safedelete/models.py | 30a693ab2e2a67e58aefe1958501e263b2821a37 | [
"BSD-3-Clause"
] | permissive | makinacorpus/django-safedelete | 7fd630498cc589cc54793ab72bfa3f99d924ecc0 | 6cdd3e8d079896d61efca22c6abe51f10ce26705 | refs/heads/master | 2023-08-25T07:12:17.105779 | 2023-08-21T09:21:53 | 2023-08-21T09:22:23 | 10,792,977 | 639 | 141 | BSD-3-Clause | 2023-08-30T08:09:26 | 2013-06-19T13:23:35 | Python | UTF-8 | Python | false | false | 15,110 | py | models.py | import warnings
from collections import Counter, defaultdict
from functools import reduce
from itertools import chain
from operator import or_
from typing import Dict, Optional, Tuple, List
import django
from django.contrib.admin.utils import NestedObjects
from django.core.exceptions import ValidationError
from django... |
9631fd6de6c3687851dc77ba23b8d46332c41d27 | 1fd8e5db25f8ebc7cc4506cbb07ba98f717b667e | /controls.py | fd1da038a3de76a544b9bb4db06be4a52a842742 | [] | no_license | flatplanet/Intro-To-TKinter-Youtube-Course | 6103410435fc3b977fb44a4b08d045950ba10380 | cf988099fc358e52ed773273cb2e7ddb9d37d995 | refs/heads/master | 2022-10-06T10:02:38.689302 | 2022-07-18T18:11:12 | 2022-07-18T18:11:12 | 174,183,345 | 524 | 426 | null | 2021-10-10T16:16:44 | 2019-03-06T16:44:03 | Python | UTF-8 | Python | false | false | 1,521 | py | controls.py | from tkinter import *
from tkinter import ttk
root = Tk()
root.title("Controls")
root.geometry("300x650")
root.iconbitmap('c:/guis/exe/codemy.ico')
# Create Launch Function
def launch():
global second
second = Toplevel()
second.geometry("200x200")
# Change the width:
def width_slide(x):
#int(width_slider.get())
... |
63fcc3152a47bcdafb1a08504ed9dd559ed23521 | 057e555023112b7409de8e3e1908670cbce01d5b | /graph_mcts/analyze_dataset.py | 007a4275072f9cb9f81511b2ca57fd654ae4b203 | [
"MIT"
] | permissive | BenevolentAI/guacamol_baselines | 4826ebd3b5d5fe0b0b5dd8e7065094ee25d28e95 | 44d24c53f3acf9266eb2fb06dbff909836549291 | refs/heads/master | 2023-08-07T07:13:08.549075 | 2022-02-22T10:54:16 | 2022-02-22T10:54:16 | 157,866,504 | 108 | 39 | MIT | 2023-03-24T23:15:14 | 2018-11-16T12:45:46 | Python | UTF-8 | Python | false | false | 17,665 | py | analyze_dataset.py | import argparse
import collections
import datetime
import logging
import os
import pickle
from time import time
from typing import List, Tuple, Dict
import numpy as np
from guacamol.utils.helpers import setup_default_logger
from rdkit import Chem
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHand... |
ded82ac891d2e95e57533316ab1101cf79c8063a | 9c774a31ff1e98a6366e71e54e84ea97e6f050a2 | /examples/array1.py | 329840d9e80ed26eec652e1571f874e68a6851fd | [
"BSD-3-Clause"
] | permissive | PyTables/PyTables | 65c355d47d68b5e8f4240fc7cc32906c3b6f2eea | f3817d7637b465de1a2ab5da9dffd3aba185c331 | refs/heads/master | 2023-08-30T02:46:42.212028 | 2023-08-18T05:32:06 | 2023-08-18T05:32:06 | 1,844,194 | 1,076 | 267 | BSD-3-Clause | 2023-09-09T06:56:39 | 2011-06-03T19:44:46 | Python | UTF-8 | Python | false | false | 1,342 | py | array1.py | import numpy as np
import tables as tb
# Open a new empty HDF5 file
fileh = tb.open_file("array1.h5", mode="w")
# Get the root group
root = fileh.root
# Create an Array
a = np.array([-1, 2, 4], np.int16)
# Save it on the HDF5 file
hdfarray = fileh.create_array(root, 'array_1', a, "Signed short array")
# Create a sca... |
2b55101539a8d0d1f22fd148eed76cea6569adfa | b8bbdfc593b6d816e67a344f720f90ec05236778 | /tests/api_connexion/schemas/test_xcom_schema.py | f12b5b2f776b810e43f816357068f832552d88ca | [
"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 | 7,471 | py | test_xcom_schema.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... |
40213a9c281af4e7a798336f7727768b2819887a | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/tests/noseplugins/logfile.py | 5c072e80145525455e7ffb5397591af74fb26318 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 2,519 | py | logfile.py | """A plugin to log test failures to a file
This is useful to preserve error output from a test run in a file in
additon to displaying the output in a terminal. It is also possible to
to view errors (in the log file) as soon as they occur while running
very large test suites.
The log file will not be overwritten if th... |
3e7d07573232e19963901f1e6518812770517f32 | 428823322eeae0e5441208a9ae32474015287195 | /tests/test_select_csv_object.py | 16065f89db9f589f17a1d4e8939cfe87ffc1776a | [
"MIT"
] | permissive | aliyun/aliyun-oss-python-sdk | de65ed73ea46754d90045094bef0e26fe1f2af88 | 45d54c19483b4b6c873f97f153be19a11a9d60fb | refs/heads/master | 2023-07-31T14:29:01.240869 | 2023-07-18T12:49:32 | 2023-07-18T12:52:47 | 47,454,460 | 965 | 460 | MIT | 2023-09-06T08:48:16 | 2015-12-05T12:09:57 | Python | UTF-8 | Python | false | false | 23,204 | py | test_select_csv_object.py | # -*- coding: utf-8 -*-
import requests
import filecmp
import calendar
import csv
import re
import sys
from oss2.exceptions import (ClientError, RequestError, NoSuchBucket,
NotFound, NoSuchKey, Conflict, PositionNotEqualToLength, ObjectNotAppendable, SelectOperationFailed, SelectOperationC... |
e152fe2e87e822672513d8e321a4c7f5b1de372f | 03a7f7a7eb8c16b537b65ec21f465bb0335bc3b8 | /pythran/tests/cases/matrix_class_distance.py | 8460123345688632332097782370d6d4dd2a11b8 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | serge-sans-paille/pythran | a0e22af1ac5e1f34f3f29dce36502f4a897b5186 | d8ab07b4b3b690f50603cb4d08ba303d3af18b90 | refs/heads/master | 2023-09-01T16:04:03.289285 | 2023-08-30T09:13:58 | 2023-08-31T08:03:22 | 4,479,494 | 1,882 | 200 | BSD-3-Clause | 2023-09-06T20:08:10 | 2012-05-29T08:02:14 | C++ | UTF-8 | Python | false | false | 637 | py | matrix_class_distance.py | #pythran export matrix_class_distance(float64[:,:], int[], float64[:,:], int)
#from https://stackoverflow.com/questions/59601987
#runas import numpy as np; n = 200;d = 10;iterations = 20;np.random.seed(42);dat = np.random.random((n, d));dat_filter = np.random.randint(0, n, size=n); dat_points = np.random.random((n, d))... |
fe93df2f95062839f19e4380685268f6f87c05f2 | 6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff | /inference/generativeai/llm-workshop/lab2-stable-diffusion/option3-triton-mme/models/sd_depth/1/model.py | 7cbed281d0d542c7353cc35babac2f7b2d1937cd | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aws/amazon-sagemaker-examples | 8359afe544e873662bda5b8d2b07399c437213c9 | 43dae4b28531cde167598f104f582168b0a4141f | refs/heads/main | 2023-08-26T04:42:52.342776 | 2023-08-25T14:37:19 | 2023-08-25T14:37:19 | 107,937,815 | 4,797 | 3,519 | Apache-2.0 | 2023-09-14T19:47:03 | 2017-10-23T05:55:22 | Jupyter Notebook | UTF-8 | Python | false | false | 2,499 | py | model.py | import json
import numpy as np
import torch
import triton_python_backend_utils as pb_utils
from diffusers import StableDiffusionDepth2ImgPipeline
from diffusers import DDIMScheduler
from io import BytesIO
import base64
from PIL import Image
def decode_image(img):
buff = BytesIO(base64.b64decode(img.encode("utf8"... |
707c5f37070ab351b7fdeee68ccc92d7a3192bb1 | e1cddfd754d952134e72dfd03522c5ea4fb6008e | /extras/deprecated/perfmon/intel_json_to_c.py | 4389c86fc38715f56225e8fb746a96b6e882409d | [
"Apache-2.0"
] | permissive | FDio/vpp | 0ad30fa1bec2975ffa6b66b45c9f4f32163123b6 | f234b0d4626d7e686422cc9dfd25958584f4931e | refs/heads/master | 2023-08-31T16:09:04.068646 | 2022-03-14T09:49:15 | 2023-08-31T09:50:00 | 96,556,718 | 1,048 | 630 | Apache-2.0 | 2023-06-21T05:39:17 | 2017-07-07T16:29:40 | C | UTF-8 | Python | false | false | 1,576 | py | intel_json_to_c.py | #!/usr/bin/env python3
import json, argparse
p = argparse.ArgumentParser()
p.add_argument(
"-i", "--input", action="store", help="input JSON file name", required=True
)
p.add_argument(
"-o", "--output", action="store", help="output C file name", required=True
)
p.add_argument(
"-m",
"--model",
... |
e8743925d1c1e409a85bde6ae5fc34b94d3c1af8 | 896567f9ccb99b3d545c9499745fd24a673f1752 | /tests/test_optimizealpha.py | 32901ca69231c9536e5d5c4844ef2ef5122aa8a1 | [
"MIT"
] | permissive | bellockk/alphashape | 372e3712c82af71c73e55c7aa3e88653caeab51a | 671476ecfdf8c0461613d51b2fd9376d4107a03b | refs/heads/master | 2023-07-23T23:57:08.191296 | 2023-04-01T21:44:47 | 2023-04-01T21:44:47 | 183,085,167 | 184 | 30 | MIT | 2023-07-06T22:14:17 | 2019-04-23T19:45:03 | Python | UTF-8 | Python | false | false | 710 | py | test_optimizealpha.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `alphashape` package."""
import unittest
from alphashape import optimizealpha
class TestOptimizeAlapha(unittest.TestCase):
"""Tests for `alphashape` package."""
def setUp(self):
"""Set up test fixtures, if any."""
def tearDown(self):... |
eb90663ecb8eafb9c353981de75b1139df7b53d1 | 3daf74bdadb46f4aa18918f1b6938c714b331723 | /poco/drivers/unity3d/test/tutorial/wait_any_ui.py | a1eeb4efa1939ceaed179b47d3e16c9e858ab20e | [
"Apache-2.0"
] | permissive | AirtestProject/Poco | d173b465edefbae72f02bb11d60edfa5af8d4ec4 | 65c2c5be0c0c1de680eedf34ac18ae065c5408ee | refs/heads/master | 2023-08-15T23:00:11.805669 | 2023-03-29T08:58:41 | 2023-03-29T08:58:41 | 118,706,014 | 1,703 | 312 | Apache-2.0 | 2023-08-08T10:30:21 | 2018-01-24T03:24:01 | Python | UTF-8 | Python | false | false | 775 | py | wait_any_ui.py | # coding=utf-8
import time
from poco.drivers.unity3d.test.tutorial.case import TutorialCase
class WaitAnyUITutorial(TutorialCase):
def runTest(self):
self.poco(text='wait UI').click()
bomb_count = 0
while True:
blue_fish = self.poco('fish_emitter').child('blue')
y... |
ba50bd85a9301d36b0a96a7102c9b07d83f8c265 | 4db7f072a2283f67ab98d6971c1d8d51943de100 | /LoanBroker/AwsStepFunctions/PubSub/GetAggregate.py | 4d47a9da1fa9eb1ad5a903aa60aed9768c48e25e | [
"MIT"
] | permissive | spac3lord/eip | 5ec381bb33735f1022e2d7d52cbe569d25f712f9 | 09d1e9371fb13fae4684506c778e6ca6b196c5d0 | refs/heads/master | 2023-03-18T10:24:43.374748 | 2023-03-11T17:01:02 | 2023-03-11T17:01:02 | 77,563,775 | 127 | 26 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | GetAggregate.py | import boto3
import json
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
dynamo = boto3.resource('dynamodb')
def lambda_handler(event, context):
logger.info(event)
key = event['Id']
table = dynamo.Table('MortgageQuotes')
record = table.get_item(Key={'Id': key }, ConsistentRead=True)... |
86bf480a1646ee5ee8386cb2307da4042bc3bdc0 | 0b98732dcd3dd94a97555a8f3e8dd3524bb8ec86 | /mmdet/datasets/__init__.py | 4ed5439a0dcf70553d97c8ca677744c8d470bb32 | [
"Apache-2.0"
] | permissive | hasanirtiza/Pedestron | e89fea2ec676f150a7266f6b65963dd6c4ec35c9 | 8ab23ec38982cfaf0ae82c77c30f10b2fff62d12 | refs/heads/master | 2023-08-06T02:53:06.368937 | 2023-04-06T13:46:27 | 2023-04-06T13:46:27 | 247,410,025 | 723 | 161 | Apache-2.0 | 2022-10-02T10:17:44 | 2020-03-15T05:52:52 | Python | UTF-8 | Python | false | false | 829 | py | __init__.py | from .custom import CustomDataset
from .xml_style import XMLDataset
from .coco import CocoDataset
from .voc import VOCDataset
from .wider_face import WIDERFaceDataset
from .loader import GroupSampler, DistributedGroupSampler, build_dataloader
from .utils import to_tensor, random_scale, show_ann
from .dataset_wrappers i... |
35e2d14e1e2a24a04cf12a6f4188c7a06e190bea | c9c68211f8d76470a14a7b40b28e7997b2e34d68 | /renpy/text/extras.py | 90b53fb12e10f71628228f416a317972474b85bd | [] | no_license | renpy/renpy | 16e0526b76714ba1fc08c05bdd7417db5f2eeb8c | 517e12d3e5812b1849fb803f35727124d9cb75f1 | refs/heads/master | 2023-08-31T10:04:53.943394 | 2023-08-31T08:30:38 | 2023-08-31T08:30:38 | 4,815,490 | 4,094 | 940 | null | 2023-09-14T01:10:38 | 2012-06-28T01:21:22 | Ren'Py | UTF-8 | Python | false | false | 13,925 | py | extras.py | # Copyright 2004-2023 Tom Rothamel <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, m... |
a51ac27ac078cd49f3939c219f3b5c1293e18c66 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/recover-a-tree-from-preorder-traversal.py | b7377bed56a790da73d6056b9002542f5c6e008a | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,742 | py | recover-a-tree-from-preorder-traversal.py | # Time: O(n)
# Space: O(h)
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
# iterative stack solution
class Solution(object):
def recoverFromPreorder(self, S):
"""
:type S: str
... |
b73e0e2290ba575d6c3a395cb8ce715694f382c1 | f26d8a6b2a0dc9b29f944f15577586bfe3bb9b60 | /cvnn/losses.py | ac03df93b9206d3328a53afd4459692d8763cfa0 | [
"MIT"
] | permissive | NEGU93/cvnn | 4606ea6bc84621231781c61603dd7c9855a6ce64 | c8c9b3cc696388c8ec6e7f23092e223e0fe88de4 | refs/heads/master | 2023-08-04T12:40:22.288311 | 2023-07-31T09:47:07 | 2023-07-31T09:47:07 | 296,050,056 | 109 | 24 | MIT | 2023-08-10T16:53:08 | 2020-09-16T14:02:08 | Python | UTF-8 | Python | false | false | 3,061 | py | losses.py | import tensorflow as tf
from tensorflow.keras import backend
from tensorflow.keras.losses import Loss, categorical_crossentropy
class ComplexAverageCrossEntropy(Loss):
def call(self, y_true, y_pred):
real_loss = categorical_crossentropy(y_true, tf.math.real(y_pred))
if y_pred.dtype.is_complex:
... |
b25de04eecbdd2f9960d592c745f05a09270dbc1 | 2ed368cf8a045494759fa4f347564cb383e71a66 | /setup.py | 833e5de170a4d3c180dbbf4a38ce6693cecc7870 | [
"MIT"
] | permissive | better/convoys | 5cabf13db64059de40b2c3c7bb3f10d53faa7e5b | c37536b582547408ad9276b99bc5622f456a69ba | refs/heads/master | 2023-04-16T01:56:33.754660 | 2021-10-26T20:52:18 | 2021-10-26T20:52:18 | 114,835,637 | 249 | 43 | MIT | 2023-04-07T10:24:54 | 2017-12-20T02:53:00 | Python | UTF-8 | Python | false | false | 959 | py | setup.py | from setuptools import setup, find_packages
long_description = '''
For more information, see
`the package documentation <https://better.engineering/convoys>`_
or
`the Github project page <https://github.com/better/convoys>`_.
.. image:: https://better.engineering/convoys/_images/dob-violations-combined.png
'''
setup... |
c2215d0b5a1db2bde6c8280184cad325651ef1ca | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/common/tooltips/selected_rewards_tooltip_category_model.py | 51ba9eb957cad50be8d7ea26ed3f050aab96af28 | [] | 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 | 1,164 | py | selected_rewards_tooltip_category_model.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/common/tooltips/selected_rewards_tooltip_category_model.py
from frameworks.wulf import Array
from frameworks.wulf import ViewModel
from gui.impl.gen.view_models.views.lobby.common.tooltips.select... |
af9de77b7a43ee6382d8f81bd7adf9d8c42f192a | 8de1480d6511ac81c43ebb1fa50875adb1505c3b | /awxkit/awxkit/api/pages/teams.py | f5614a0c25f4cc1d0239e423c13b03ecd797ace2 | [
"Apache-2.0"
] | permissive | ansible/awx | bbbb0f3f43835a37fbb3eb3dcd7cfe98116fbbba | 5e105c2cbd3fe828160540b3043cf6f605ed26be | refs/heads/devel | 2023-08-31T11:45:01.446444 | 2023-08-31T04:58:57 | 2023-08-31T04:58:57 | 91,594,105 | 13,353 | 4,186 | NOASSERTION | 2023-09-14T20:20:07 | 2017-05-17T15:50:14 | Python | UTF-8 | Python | false | false | 1,755 | py | teams.py | from contextlib import suppress
from awxkit.api.mixins import HasCreate, DSAdapter
from awxkit.utils import random_title, PseudoNamespace
from awxkit.api.resources import resources
from awxkit.api.pages import Organization
from awxkit.exceptions import NoContent
from . import base
from . import page
class Team(HasC... |
0ac7ca883245779533e3b2f605dd7abb7ef1a0fc | 2cfe6bb4a509c33c32ffde9edbc0f992bc6218ad | /pyverilog/utils/identifiervisitor.py | 2f906efdc14544c662d96cf991c179f0b3e288ac | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | PyHDI/Pyverilog | 7b0c642f58b809b106c689fbfa51f337fda956c2 | 81838bc463d17148ef6872af34eb27585ee349ba | refs/heads/develop | 2023-08-05T23:09:47.258312 | 2022-12-23T14:16:24 | 2022-12-23T14:16:24 | 14,871,471 | 527 | 161 | Apache-2.0 | 2023-05-15T12:05:26 | 2013-12-02T18:53:03 | Python | UTF-8 | Python | false | false | 874 | py | identifiervisitor.py | # -------------------------------------------------------------------------------
# identifiervisitor.py
#
# Identifier list generator in a nested operator
#
# Copyright (C) 2015, Shinya Takamaeda-Yamazaki
# License: Apache 2.0
# -------------------------------------------------------------------------------
from __fut... |
8d6ffbac0468692e0c64bc3693862a862eb1e89a | ea1845e05c86a85d3e51d6765a0efdd5003db553 | /flags/tests/test_management_commands_enable_flag.py | f2d76527eec87d4415e9e573aa9ebc62b07113ae | [
"CC0-1.0"
] | permissive | cfpb/django-flags | 806a693ddc48ceacf3f3381faab278b965df837b | 9cfbb6c6a3afd956b740e7d4c74ed589e6a38f5c | refs/heads/main | 2023-08-09T11:30:43.375403 | 2023-07-27T13:00:38 | 2023-07-27T13:00:38 | 137,590,135 | 197 | 31 | CC0-1.0 | 2023-07-27T13:00:39 | 2018-06-16T15:23:55 | Python | UTF-8 | Python | false | false | 672 | py | test_management_commands_enable_flag.py | from io import StringIO
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from flags.state import flag_enabled
class EnableFlagTestCase(TestCase):
def test_enable_flag(self):
out = StringIO()
self.assertFalse(fla... |
cbd580cc6104e498e1eaf4fe373abc4ba5971d88 | aa409b9d02d6266cb53d293623640deb82f5ba99 | /examples/task_image_caption.py | 82215e94e0f28fa5ffdcf5f4b447064dbd5ff187 | [
"Apache-2.0"
] | permissive | bojone/bert4keras | b674fd42538904e33efa61908edae961daf8f15f | 2072f06dd410ea885a9c6850ba539effce50b22b | refs/heads/master | 2023-08-27T07:35:15.503757 | 2023-07-20T13:42:17 | 2023-07-20T13:42:17 | 204,388,414 | 5,421 | 1,060 | Apache-2.0 | 2022-11-23T02:43:26 | 2019-08-26T03:27:19 | Python | UTF-8 | Python | false | false | 8,047 | py | task_image_caption.py | #! -*- coding: utf-8 -*-
# bert做image caption任务,coco数据集
# 通过Conditional Layer Normalization融入条件信息
# 请参考:https://kexue.fm/archives/7124
from __future__ import print_function
import json
import numpy as np
from bert4keras.backend import keras, K
from bert4keras.layers import Loss
from bert4keras.models import build_tran... |
5d9802722d94da86e83404b964dda1667d9a8515 | e22d4b37236a0327f26159856c7d151826bdd49d | /leonardo/conf/base.py | 16a0e4a9f5c0e1763c0d6555e14ec86c77415fe9 | [
"BSD-2-Clause"
] | permissive | django-leonardo/django-leonardo | 8fe1fc6299c5e3d3c0bff96cb7e80d48f7b7e1de | 7d3f116830075f05a8c9a105ae6f7f80f7a6444c | refs/heads/master | 2022-09-29T02:23:14.426984 | 2020-09-08T13:58:46 | 2020-09-08T13:58:46 | 33,533,052 | 108 | 64 | BSD-3-Clause | 2022-09-16T19:34:25 | 2015-04-07T09:05:44 | Python | UTF-8 | Python | false | false | 3,162 | py | base.py | import os
from app_loader.config import Config, MasterConfig
from app_loader.utils import merge
from leonardo.conf.spec import CONF_SPEC, DJANGO_CONF
from leonardo.utils.versions import get_versions
class ModuleConfig(Config):
"""Simple Module Config Object
encapsulation of dot access dictionary
use dic... |
1da250eaf5164ec84ebff6b00e5a8b3c6220f554 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /cc/DEPS | 96a02f5605c9de60454d6918848520ae56914eb8 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 2,827 | DEPS | include_rules = [
"+components/ukm/test_ukm_recorder.h",
"+components/viz/client",
"+components/viz/common",
"+gpu/GLES2",
"+gpu/command_buffer/client/context_support.h",
"+gpu/command_buffer/client/gpu_memory_buffer_manager.h",
"+gpu/command_buffer/client/raster_implementation_gles.h",
"+gpu/command_bu... | |
3cef6ef8a843c815bca5b5d97eee74c457814a01 | f1f21ba2236da38a49a8185ce33b3ce4a4424c1d | /apps/fewshot_molecular_property/data/splitdata.py | 46ca4db340bb9abc0738fd788517cfcced68f611 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHelix | 75a07c2f14475e56e72f4573b2cf82a91d1cbfda | e6ab0261eb719c21806bbadfd94001ecfe27de45 | refs/heads/dev | 2023-08-05T03:34:55.009355 | 2023-08-01T09:30:44 | 2023-08-01T09:30:44 | 314,704,349 | 771 | 197 | Apache-2.0 | 2023-08-01T09:15:07 | 2020-11-21T00:53:39 | Python | UTF-8 | Python | false | false | 1,677 | py | splitdata.py | import sys
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
import numpy as np
from itertools import compress
import random
import json
name = 'toxcast' # tox21
f = open(os.path.join(BASE_DIR, '{}/raw/{}.csv'.format(name,name)), 'r').readlines()[1:]
np.random.shuffle(f)
... |
7831219f6f4cc95a739eab66247c2cb4eb9d3902 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /FWCore/ParameterSet/python/test/MessWithGeometry_cff.py | 5ea9f82fb32bae6eb703d97a1afc4fc36afa0bf8 | [
"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 | 117 | py | MessWithGeometry_cff.py | import FWCore.ParameterSet.Config as cms
from FWCore.ParameterSet.test.Geometry_cfi import *
geometry.bField = 0.0
|
63b09a8180932cdce26db73ec4febb9973509a05 | 5aeb5c768aed6008bc20c7c6a1d59b569590fad5 | /athenacli/style.py | 2b49fb1aa2573deeff165bf873c6c48f398b2d23 | [
"BSD-3-Clause"
] | permissive | dbcli/athenacli | f5a8627ce0a1f4323a73603d1dee9ed164c5ee81 | c9e477447345a28b070badb014bfd2c6679cc902 | refs/heads/main | 2023-03-09T00:56:51.028337 | 2022-05-16T00:50:44 | 2022-05-16T00:50:44 | 145,800,435 | 203 | 38 | BSD-3-Clause | 2022-05-16T00:45:05 | 2018-08-23T04:30:53 | Python | UTF-8 | Python | false | false | 637 | py | style.py | from pygments.token import Token
from pygments.style import Style
from pygments.styles.default import DefaultStyle
class AthenaStyle(Style):
styles = {
Token.Menu.Completions.Completion.Current: 'bg:#00aaaa #000000',
Token.Menu.Completions.Completion: 'bg:#008888 #ffffff',
Token.Menu.Compl... |
34833aeebd60bae65ed7e0e2b9e85ed52bfb67ac | 5cf6a985ce1ba56ce65999be93c859482307967d | /algorithms/color/rgb-to-cmyk.py | f9061e68b35834b630f7c43a3853c08f7a50a23b | [] | no_license | hacktoon/1001 | 5e1abdeb6313d8960370dbcff33f7359933e4686 | 9117eea9389de180a994fd51a3abc8befacaed2a | refs/heads/master | 2023-08-15T21:44:46.231928 | 2017-10-30T18:09:12 | 2017-10-30T18:09:12 | 1,232,142 | 161 | 67 | null | 2017-10-30T18:09:13 | 2011-01-08T04:00:38 | Python | UTF-8 | Python | false | false | 2,501 | py | rgb-to-cmyk.py | # encoding: utf-8
'''
RGB to CMYK
Autor:
?
Colaborador:
Aurélio A. Heckert
Tipo:
color
Descrição:
Converte uma cor definida em RGB para CMYK.
RGB é um sistema aditivo de definição de cores, representa a mistura de luz. Suas componentes são (em ordem) vermelho, verde e azul.
CMYK é um sistema s... |
761052df34e6cef70879d3af7a254bce3489c593 | 4da20cd59782f820bf0b7d23027f3784058406be | /django_pgschemas/management/commands/__init__.py | e8c0e4663e03a52aa5ea975b043b1ed05381130c | [
"MIT"
] | permissive | lorinkoz/django-pgschemas | ee23ae58dee839ed4e5e3a0c7aa7320ab3bb211b | 30901690aa63b57a7b984b7df97c6d0280a84ea7 | refs/heads/master | 2023-09-03T00:11:00.096898 | 2023-08-28T21:00:42 | 2023-08-29T06:28:13 | 162,996,334 | 114 | 18 | MIT | 2023-09-12T07:49:04 | 2018-12-24T14:04:14 | Python | UTF-8 | Python | false | false | 11,120 | py | __init__.py | import enum
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.db.models import CharField, Q, Value as V
from django.db.models.functions import Concat
from django.db.utils import ProgrammingError
from ...schema import get_current_schema
from ...utils import ... |
93ff696f9e2444aa54f7a6df08ce90db9e28cecd | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/assist_pipeline/test_ring_buffer.py | 22185c3ad5b2096b4006e3e654c23be6ce4fa7b6 | [
"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 | 1,177 | py | test_ring_buffer.py | """Tests for audio ring buffer."""
from homeassistant.components.assist_pipeline.ring_buffer import RingBuffer
def test_ring_buffer_empty() -> None:
"""Test empty ring buffer."""
rb = RingBuffer(10)
assert rb.maxlen == 10
assert rb.pos == 0
assert rb.getvalue() == b""
def test_ring_buffer_put_1(... |
ec97e367927ccb0e9345a39eade52aab1e949ea3 | d571d407cfda435fcab8b7ccadb1be812c7047c7 | /guild/plugins/import_argparse_flags_main.py | ce84ed71eb1522cd2d42c67f1be0c60569fdfe03 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | guildai/guildai | 2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af | 149055da49f57eaf4aec418f2e339c8905c1f02f | refs/heads/main | 2023-08-25T10:09:58.560059 | 2023-08-12T20:19:05 | 2023-08-12T20:19:05 | 105,057,392 | 833 | 86 | Apache-2.0 | 2023-08-07T19:34:27 | 2017-09-27T18:57:50 | Python | UTF-8 | Python | false | false | 7,892 | py | import_argparse_flags_main.py | # Copyright 2017-2023 Posit Software, PBC
#
# 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 ... |
b1ba4938e1d6924bdc6ee4b9e23696c63f95b0ad | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client_common/script_component/DynamicScriptComponent.py | bc46b49d7edb614102df0a3edbf3f67c5baf5476 | [] | 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 | 1,341 | py | DynamicScriptComponent.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client_common/script_component/DynamicScriptComponent.py
import logging
import BigWorld
from PlayerEvents import g_playerEvents
from shared_utils import nextTick
_logger = logging.getLogger(__name__)
class DynamicScriptComponent(BigWorld.... |
c4b5079e086066288e16856b229dd161263264e7 | 53a83642c01a8828e3d7bd0b18e33c3b694c2b84 | /Python/GeeksforGeeks/minimum-number-of-jumps.py | 925175560656403e0275ba1d34adedec78f3ebc7 | [] | no_license | anantkaushik/Competitive_Programming | 1dcd60a28b5b951c23024d6090942be081ad249f | 6dba38fd7aa4e71b5196d01d64e81f9336d08b13 | refs/heads/master | 2022-03-06T15:36:23.797340 | 2022-02-21T12:00:37 | 2022-02-21T12:00:37 | 82,700,948 | 271 | 95 | null | 2020-10-27T17:34:39 | 2017-02-21T16:18:16 | Python | UTF-8 | Python | false | false | 1,590 | py | minimum-number-of-jumps.py | """
Problem Link: https://practice.geeksforgeeks.org/problems/minimum-number-of-jumps-1587115620/1
Given an array of N integers arr[] where each element represents the max number of steps that can be made
forward from that element. Find the minimum number of jumps to reach the end of the array
(starting from the fir... |
8b56907c92ad47997941286a22e965bfa0a35de7 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/jedi/jedi/common/__init__.py | 702a5e609985e10036b70b695e50566fc7097e98 | [
"MIT",
"Apache-2.0"
] | 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 | 60 | py | __init__.py | from jedi.common.context import BaseContextSet, BaseContext
|
e7f60f9b3c4096d23e581e36e759027ea22da24a | 4d6935a26f211987f54b980fe174971e4a1366e8 | /ddparser/ernie/file_utils.py | 1d4fd904d45c6234238e4725981b3e3042fcf857 | [
"MIT",
"Apache-2.0"
] | permissive | baidu/DDParser | 17e6d7c653172a93a30caa5aa52c01264067d41a | 144c09bd058cea53810a45789812aa50aa0f711c | refs/heads/master | 2023-08-29T00:02:21.543273 | 2023-02-05T03:05:09 | 2023-02-05T03:05:57 | 284,605,403 | 946 | 165 | Apache-2.0 | 2022-10-29T16:12:08 | 2020-08-03T04:45:58 | Python | UTF-8 | Python | false | false | 1,935 | py | file_utils.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... |
99ab76134a854d96280e92a90d49a5b8d68fb8e9 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/compare-version-numbers.py | 34c45443f115e85cfc9f6655cb679b566be5237c | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 2,285 | py | compare-version-numbers.py | # Time: O(n)
# Space: O(1)
import itertools
class Solution(object):
def compareVersion(self, version1, version2):
"""
:type version1: str
:type version2: str
:rtype: int
"""
n1, n2 = len(version1), len(version2)
i, j = 0, 0
while i < n1 or j < n2:
... |
8b7be4754488eb2ecaeec2d66a0157f21e098aaf | ce516866ef41b3301566a65cb2c729be62d70b54 | /scripts/example_subdomains.py | 8f10417c0c1dcba3d39e0bf7bd173107ae2c4cd6 | [
"MIT"
] | permissive | PMEAL/OpenPNM | 3a504fb0e982b8c884c7e821f6f970417a1eb861 | ab6df0001285b4006740095ba829bd1625867eae | refs/heads/dev | 2023-09-01T04:17:01.561886 | 2023-08-31T08:26:00 | 2023-08-31T08:26:00 | 11,670,333 | 411 | 194 | MIT | 2023-09-06T04:28:35 | 2013-07-25T20:32:47 | Python | UTF-8 | Python | false | false | 1,545 | py | example_subdomains.py | import pytest
import openpnm as op
ws = op.Workspace()
proj = ws.new_project()
pn = op.network.Cubic(shape=[10, 10, 10], spacing=1e-4, project=proj)
Ps = pn['pore.coords'][:, 0] < pn['pore.coords'][:, 0].mean()
Ts = pn.find_neighbor_throats(pores=Ps, mode='xnor')
geo1 = op.geometry.SpheresAndCylinders(network=pn, pore... |
fc66b867ba3ac539b2d4fa2b6f375a4a613b7139 | 9efca95a55cb4df52d895d42f1ec10331516a734 | /c7n/filters/backup.py | f02412a6ceb8828c45f059f3525384616b87c8a1 | [
"Apache-2.0"
] | permissive | cloud-custodian/cloud-custodian | 519e602abe00c642786441b64cc40857ef5bc9de | 27563cf4571040f923124e1acb2463f11e372225 | refs/heads/main | 2023-09-04T10:54:55.963703 | 2023-09-01T17:40:17 | 2023-09-01T17:40:17 | 52,837,350 | 3,327 | 1,096 | Apache-2.0 | 2023-09-14T14:03:30 | 2016-03-01T01:11:20 | Python | UTF-8 | Python | false | false | 3,079 | py | backup.py | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
from .core import Filter
from datetime import datetime, timedelta
from c7n.utils import type_schema, local_session, chunks
from c7n.query import RetryPageIterator
class ConsecutiveAwsBackupsFilter(Filter):
"""Returns resources where nu... |
55866fd3fd02009290202936dbf17d2f6059293f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/associate_policy_group_request_info.py | 48a057022867e18525cd4ee96280c16d930ee933 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,658 | py | associate_policy_group_request_info.py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AssociatePolicyGroupRequestInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... |
7e7eac013c88e9a9906af5986f7cc3770bb38cbb | bca3d1e208a5d0e3365a8a1766a0bfd09932367b | /polyfile/__main__.py | 2681fcae417f9f8a4baace2c248e21c23e4379d0 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | trailofbits/polyfile | 998f57d9ca015248019ec55c37f43fa743df8d6c | a116740e4baa5765699ca6b5049e9c41d262c325 | refs/heads/master | 2023-09-02T07:33:10.380904 | 2023-05-24T23:48:39 | 2023-05-24T23:48:39 | 193,975,534 | 303 | 18 | Apache-2.0 | 2023-09-05T08:27:51 | 2019-06-26T20:48:20 | Python | UTF-8 | Python | false | false | 17,685 | py | __main__.py | import argparse
from contextlib import ExitStack
import json
import logging
import re
import signal
import sys
from textwrap import dedent
from typing import ContextManager, Optional, TextIO
from . import html
from . import logger
from .fileutils import PathOrStdin, PathOrStdout
from .magic import MagicMatcher
from .d... |
ba171471fa5c13562c49d6a52a3e5eabc9bd2618 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/metadata_service/async_client.py | 0ecd3486a7ea8e45e5e799d1d6b4e96c7e44d296 | [
"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 | 61,629 | py | async_client.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... |
967f3b3d61b08717c2ffdeb62be971cc55628438 | 8af4e173ab3be9b9fc5cf1b61dbb5da80234d5c7 | /tests/integration/build_invoke/java/test_java_8_al2.py | 3a6c2dd3e2c64782add41fe537a177abfbea5c63 | [
"Apache-2.0"
] | permissive | aws/aws-sam-cli-app-templates | d464da1665d84eda9f427f682b985538827d41b6 | 88380eb265d58c496ea80685d4a5701e3cfc13d2 | refs/heads/master | 2023-09-04T13:03:00.204479 | 2023-08-23T20:43:24 | 2023-08-23T20:43:24 | 211,362,544 | 354 | 230 | Apache-2.0 | 2023-09-14T15:39:09 | 2019-09-27T16:42:59 | Python | UTF-8 | Python | false | false | 2,488 | py | test_java_8_al2.py | import pytest
from tests.integration.build_invoke.build_invoke_base import BuildInvokeBase
"""
For each template, it will test the following sam commands:
1. sam init
2. sam build --use-container (if self.use_container is False, --use-container will be omitted)
3. (if there are event jsons), for each event json, check... |
ec5ac3ebd9a27ea2ec4ab5ed31d09bb1938bd7eb | ca10e5645aa2e8152d6219d31ac77d3ed50096c0 | /bindings/python/capstone/mos65xx_const.py | d9e0546a22b3ed4cba4f95ebd8e76af660725518 | [
"BSD-3-Clause",
"NCSA"
] | permissive | capstone-engine/capstone | fc4f1b14eded800818f2ed64eafaf342e6046f9b | f036d2dbb6a9f0d1e0dc9c14b4f44878aeed260a | refs/heads/next | 2023-09-02T14:38:15.356818 | 2023-08-30T03:13:17 | 2023-08-30T03:13:17 | 14,735,429 | 1,390 | 292 | NOASSERTION | 2023-09-14T20:47:20 | 2013-11-27T02:32:11 | C | UTF-8 | Python | false | false | 3,277 | py | mos65xx_const.py | from . import CS_OP_INVALID, CS_OP_REG, CS_OP_IMM, CS_OP_FP, CS_OP_PRED, CS_OP_SPECIAL, CS_OP_MEM
# For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [mos65xx_const.py]
MOS65XX_REG_INVALID = 0
MOS65XX_REG_ACC = 1
MOS65XX_REG_X = 2
MOS65XX_REG_Y = 3
MOS65XX_REG_P = 4
MOS65XX_REG_SP = 5
MOS65XX_REG_DP = 6
MOS65XX_RE... |
e1af7e2917bc76b1e811b895ba95bd74276c9bb3 | 73dbe07000651827e2937d728d0c5acf903932e2 | /farm/data_handler/utils.py | 45406c7252ef80bc52c37bdf48ce03e02294e027 | [
"Apache-2.0"
] | permissive | deepset-ai/FARM | 96a5c7a2b93dcf60f4bc208a6706be0cb07bcd43 | 5919538f721c7974ea951b322d30a3c0e84a1bc2 | refs/heads/master | 2023-08-21T23:50:50.414602 | 2022-08-31T09:45:24 | 2022-08-31T09:45:24 | 197,409,619 | 1,765 | 283 | Apache-2.0 | 2023-08-12T04:20:09 | 2019-07-17T14:51:12 | Python | UTF-8 | Python | false | false | 31,083 | py | utils.py | import hashlib
import json
import logging
import os
import random
import tarfile
import tempfile
import string
import uuid
from contextlib import ExitStack
from itertools import islice
from pathlib import Path
import pandas as pd
from requests import get
from tqdm import tqdm
from typing import List
from farm.file_ut... |
ba07ea021d3ac7d7d083d16f12854b81bbf4935a | 022a1c6faec6face5d8dba35e67389db992b073b | /xrspatial/tests/test_terrain.py | 00296fd11454b282479972c5e206005188145dcc | [
"MIT"
] | permissive | makepath/xarray-spatial | 698b34f58478eacd8e4f35d57193db4e7c71260f | 27ab0c80b71faf706f75e00435dc071ba046224a | refs/heads/master | 2023-07-19T19:20:30.614454 | 2023-07-10T09:09:54 | 2023-07-10T09:09:54 | 239,188,894 | 741 | 89 | MIT | 2023-07-10T09:09:56 | 2020-02-08T19:02:33 | Python | UTF-8 | Python | false | false | 1,408 | py | test_terrain.py | import dask.array as da
import numpy as np
import xarray as xr
from xrspatial import generate_terrain
from xrspatial.tests.general_checks import cuda_and_cupy_available
from xrspatial.utils import has_cuda_and_cupy
def create_test_arr(backend='numpy'):
W = 50
H = 50
data = np.zeros((H, W), dtype=np.float... |
8c26f45630b22353f33078fe7c8f00443e05f691 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /devel/py-ejson/files/patch-setup.py | 7ff4d65860c97289ed9ea2b85d451531e24ebca2 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | Python | false | false | 691 | py | patch-setup.py | --- setup.py.orig 2013-11-13 15:40:51 UTC
+++ setup.py
@@ -69,7 +69,7 @@ if __name__ == '__main__':
packages=find_packages(exclude=['*tests*']),
install_requires=install_requires,
dependency_links=dependency_links,
- classifiers=(
+ classifiers=[
'Development Status... |
53eeea8a34417a5fc271cf34ead7fcb671bf1e4a | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /dashboard/bq_export/bq_export/export_options.py | 70124d327cb87443028c7c5acd0cad2761f545f5 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 2,785 | py | export_options.py | # Copyright (c) 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import datetime
import pytz
from apache_be... |
edafd1a0f441e4c4e42bb7a78af3096242882d49 | cfa35dc2ea93ee0eceb2399a9e6112e987579c09 | /stonesoup/resampler/base.py | 5b7874ce2ab937a15ece0d5357c587f768b63bf3 | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | dstl/Stone-Soup | 227e6a9e6fbdceca14af3f0259f311ec74095597 | f24090cc919b3b590b84f965a3884ed1293d181d | refs/heads/main | 2023-09-01T14:33:14.626428 | 2023-09-01T11:35:46 | 2023-09-01T11:35:46 | 98,420,803 | 315 | 126 | MIT | 2023-09-14T14:55:34 | 2017-07-26T12:34:28 | Python | UTF-8 | Python | false | false | 80 | py | base.py | from ..base import Base
class Resampler(Base):
"""Resampler base class"""
|
6236f876e2f572e594b35041ba35c0fd82f43b45 | e0925c1a2c573c47ceea9bf3a91cea7609916ec7 | /tests/tabular_output/test_vertical_table_adapter.py | 359d9d971f7c5f31c59183ea8ef14d7ac7ee48ab | [
"BSD-3-Clause"
] | permissive | dbcli/cli_helpers | 15fcc079bc5b0c2e01f8ffe91ac66b9f1ce1f824 | 4e2c417f68bc07c72b508e107431569b0783c4ef | refs/heads/main | 2022-11-22T05:19:56.874992 | 2022-10-08T14:44:09 | 2022-10-08T14:44:09 | 88,571,641 | 102 | 29 | BSD-3-Clause | 2022-10-22T07:45:27 | 2017-04-18T02:20:33 | Python | UTF-8 | Python | false | false | 1,307 | py | test_vertical_table_adapter.py | # -*- coding: utf-8 -*-
"""Test the vertical table formatter."""
from textwrap import dedent
from cli_helpers.compat import text_type
from cli_helpers.tabular_output import vertical_table_adapter
def test_vertical_table():
"""Test the default settings for vertical_table()."""
results = [("hello", text_type(... |
5703572366d54ec983f6ba9f50b642a27e812ef9 | bdf0d4d3aac186af3ad0ad6ac9f380f9a0573fba | /aries_cloudagent/protocols/discovery/v2_0/messages/disclosures.py | a48fcb003c41158618fcb1b77af5a868d6c73bf8 | [
"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,950 | py | disclosures.py | """Represents a feature discovery disclosure message."""
from typing import Mapping, Sequence
from marshmallow import EXCLUDE, Schema, ValidationError, fields
from .....messaging.agent_message import AgentMessage, AgentMessageSchema
from .....messaging.models.base import BaseModelError
from ..message_types import DI... |
9f699581e9b1ce39a150c4cc75fce8962f0adc88 | 6c37d1d2437a08e43b13d621d4a8da4da7135b3a | /yt_dlp/extractor/tdslifeway.py | 3623a68c8c4415a61f8410d6523ac55ff9d4d3de | [
"Unlicense",
"GPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-only",
"BSD-2-Clause",
"MIT"
] | permissive | yt-dlp/yt-dlp | be040bde10cc40258c879c75ab30215686352824 | d3d81cc98f554d0adb87d24bfd6fabaaa803944d | refs/heads/master | 2023-09-05T21:15:21.050538 | 2023-09-05T20:35:23 | 2023-09-05T20:35:23 | 307,260,205 | 52,742 | 5,376 | Unlicense | 2023-09-14T05:22:08 | 2020-10-26T04:22:55 | Python | UTF-8 | Python | false | false | 2,441 | py | tdslifeway.py | from .common import InfoExtractor
class TDSLifewayIE(InfoExtractor):
_VALID_URL = r'https?://tds\.lifeway\.com/v1/trainingdeliverysystem/courses/(?P<id>\d+)/index\.html'
_TEST = {
# From http://www.ministrygrid.com/training-viewer/-/training/t4g-2014-conference/the-gospel-by-numbers-4/the-gospel-by-n... |
78f1c4594f0b7d1feb6beb9f54f287ac8fa9080c | 2ad93a1cf25a580fe980482d2d17a657de3b2523 | /django-stubs/test/signals.pyi | cad768176ba9325c4eb6834d16ebebdd8e7de025 | [
"MIT"
] | permissive | typeddjango/django-stubs | f35dfcb001e54694a0a1e8c0afcc6e6a3d130c32 | 0117348c3c7713f25f96b46e53ebdeed7bdba544 | refs/heads/master | 2023-08-25T19:42:52.707151 | 2023-08-23T15:13:25 | 2023-08-23T15:13:25 | 142,779,680 | 1,133 | 376 | MIT | 2023-09-13T19:05:06 | 2018-07-29T17:08:50 | Python | UTF-8 | Python | false | false | 987 | pyi | signals.pyi | from typing import Any
from django.core.signals import setting_changed as setting_changed # noqa: F401
template_rendered: Any
COMPLEX_OVERRIDE_SETTINGS: Any
def clear_cache_handlers(**kwargs: Any) -> None: ...
def update_installed_apps(**kwargs: Any) -> None: ...
def update_connections_time_zone(**kwargs: Any) -> N... |
9a33b17ac78b247673625598c93ae7891bd00ac6 | add160f872dccc7f326dc00196fd418c748a89b1 | /docs-source/api-python/conf.py | 45dd7e84fe8fe95481260795ab643f63af012b54 | [] | no_license | openmm/openmm | 22f3d6ae2747f54acfaa92a5a6a5869049019dee | d2593f386a627d069b5ec17a3a2f4ecd40d85dd1 | refs/heads/master | 2023-08-22T18:29:54.807240 | 2023-08-18T19:09:05 | 2023-08-18T19:09:05 | 10,178,188 | 875 | 324 | null | 2023-09-12T23:40:17 | 2013-05-20T17:42:52 | C++ | UTF-8 | Python | false | false | 2,124 | py | conf.py | # -*- coding: utf-8 -*-
import os
import sys
import openmm.version
extensions = [
"sphinx.ext.mathjax",
"sphinx.ext.ifconfig",
"sphinx.ext.autosummary",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"process-docstring",
]
autosummary_generate = True
autodoc_default_options = {
"members": ... |
396ecd561e05ce7a80479c13cc1efc196a76b8fe | 965efc4d7a83c2b5592417aa7e0d25a51f5a8108 | /backend/metering_billing/migrations/0102_alter_invoicelineitem_associated_subscription_record.py | 093d53104d8bd401184a0bb981ad52784a8c2934 | [
"MIT"
] | permissive | uselotus/lotus | f4ee23bb828605215f18aacd1d6fcff8e0986c53 | c065fb33ee1a870d72bbd2adfddc08d50ca049b6 | refs/heads/main | 2023-08-17T03:38:35.770580 | 2023-07-26T18:50:17 | 2023-07-26T18:50:17 | 516,192,901 | 1,447 | 100 | MIT | 2023-06-25T22:53:06 | 2022-07-21T02:06:46 | Python | UTF-8 | Python | false | false | 682 | py | 0102_alter_invoicelineitem_associated_subscription_record.py | # Generated by Django 4.0.5 on 2022-12-05 12:03
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("metering_billing", "0101_historicalsubscriptionrecord_fully_billed_and_more"),
]
operations = [
migrations.A... |
524dc5c7e29c9548eea3632fabbe309b8f76be9b | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/asr/parts/numba/rnnt_loss/utils/cuda_utils/gpu_rnnt_kernel.py | 4153af060941afeff1c7afb41c53ab1d53077f59 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 69,815 | py | gpu_rnnt_kernel.py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
2e207e6fd352613be797d547dd80640bbd72772a | e848b142ec5d8f1fdb2fef4f8d550ebc3e15495d | /diffusers/src/diffusers/schedulers/scheduling_deis_multistep.py | f58284005deda5e40098d415d06623fdd76860bf | [
"CC0-1.0",
"Apache-2.0"
] | permissive | drboog/Shifted_Diffusion | 5d9d6959d53e519b7b59a1219ab9ab588d763855 | 1d9e863f852a2de3bc352f59944c1d738526e0fd | refs/heads/main | 2023-05-23T00:59:30.891957 | 2023-05-18T16:53:37 | 2023-05-18T16:53:37 | 614,598,062 | 113 | 4 | null | null | null | null | UTF-8 | Python | false | false | 22,420 | py | scheduling_deis_multistep.py | # Copyright 2023 FLAIR Lab and The HuggingFace 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 require... |
6764ec7de8895fc37665e39f496f60a735934933 | 8d67ceb772c5ac08ad152c0a5901be54ab98a527 | /utils/generate-domains-blocklist/generate-domains-blocklist.py | a78a542d61979e9f896a373059065928b86961d3 | [
"ISC"
] | permissive | DNSCrypt/dnscrypt-proxy | f6a9338e99e78ea837ea14ebf180c1c9faf59f7d | d48c811ea98d28975f36eb36f68265a58338e166 | refs/heads/master | 2023-08-21T10:54:00.587616 | 2023-08-17T12:44:47 | 2023-08-17T12:44:47 | 116,739,828 | 6,924 | 834 | ISC | 2023-09-05T06:13:09 | 2018-01-08T23:21:21 | Go | UTF-8 | Python | false | false | 10,245 | py | generate-domains-blocklist.py | #! /usr/bin/env python3
# run with python generate-domains-blocklist.py > list.txt.tmp && mv -f list.txt.tmp list
from __future__ import print_function
import argparse
import re
import sys
import fnmatch
try:
import urllib2 as urllib
URLLIB_NEW = False
except (ImportError, ModuleNotFoundError):
import ... |
c5bec9680e52dee6e7863c75b104308879fcfd8b | 4f2b965bac8f0a205a38c7a1e9091065f5bc88b1 | /pybb/views.py | 2240dc7fd460db790a74051c04e1e512dcf0c2e5 | [
"BSD-2-Clause"
] | permissive | hovel/pybbm | 92deabc528d490f3510c98cb02c7e2e7382a03fd | 9481f57b8e67758b35f1180e143e04b3c2af6eb1 | refs/heads/master | 2023-02-18T01:38:25.606267 | 2023-01-26T16:09:18 | 2023-01-26T16:09:18 | 3,324,634 | 147 | 113 | BSD-2-Clause | 2023-01-26T16:09:36 | 2012-02-01T12:32:57 | Python | UTF-8 | Python | false | false | 37,947 | py | views.py |
import math
from django.contrib.auth.decorators import login_required
from django.core.cache import cache
from django.core.exceptions import PermissionDenied, ValidationError
from django.urls import reverse
from django.contrib import messages
from django.db.models import F
from django.forms.utils import ErrorList
fro... |
2825643e3cc463ea28c78d3961c218e5e3bcb34b | ecaba173879f92f24e3c951866fda23c0a4fc426 | /perfkitbenchmarker/linux_benchmarks/dpb_terasort_benchmark.py | 56ba63c422798e5794db0f1f2f394525d990d564 | [
"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 | 8,507 | py | dpb_terasort_benchmark.py | # Copyright 2019 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... |
3dcd6bbf16251a9c49362999504596e5572fe2b9 | 8d5df43c1611a709ddf19d8b23b8763eb37b4e8f | /pika/adapters/utils/nbio_interface.py | 6662adf89e7924adf566afef6ac4f043a654dbc8 | [
"BSD-3-Clause"
] | permissive | pika/pika | 86ed56bec6aa813ffd8a7037bbef756a9388533e | f4d8f8ff02a4da4653749c86161b7d52e53f73fe | refs/heads/main | 2023-09-03T18:19:30.231575 | 2023-07-28T23:01:02 | 2023-07-29T21:16:38 | 342,869 | 3,040 | 919 | BSD-3-Clause | 2023-08-03T21:20:50 | 2009-10-19T23:22:02 | Python | UTF-8 | Python | false | false | 17,217 | py | nbio_interface.py | """Non-blocking I/O interface for pika connection adapters.
I/O interface expected by `pika.adapters.base_connection.BaseConnection`
NOTE: This API is modeled after asyncio in python3 for a couple of reasons
1. It's a sensible API
2. To make it easy to implement at least on top of the built-in asyncio
Furthe... |
0301636a52999bd1657dad060d67d27f7c04b304 | 83b8b30ebb633eecd29ca0a7a20cc43a293c9333 | /tests/basics/compare_multi.py | 1abd18067db80c71ef1ddeb63abe14cf18b45035 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | adafruit/circuitpython | 430ec895149d1eb814b505db39b4977a35ee88a7 | 506dca71b0cbb7af749bb51f86b01021db5483b3 | refs/heads/main | 2023-08-21T16:30:46.781068 | 2023-08-20T00:39:44 | 2023-08-20T00:39:44 | 66,166,069 | 3,806 | 1,560 | MIT | 2023-09-14T19:23:51 | 2016-08-20T20:10:40 | C | UTF-8 | Python | false | false | 72 | py | compare_multi.py | print(1 < 2 < 3)
print(1 < 2 < 3 < 4)
print(1 > 2 < 3)
print(1 < 2 > 3)
|
0e0f1291684273bce9a9235125f138813fb4dfe9 | 12f0bd77926127cdacc2452d6f9cfed91806b2fe | /idaes/apps/caprese/examples/cstr_reduced.py | 676073d4d5c4f798aa95b2263b1008495607b892 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | IDAES/idaes-pse | e03d2583ae1ba968a7099f9f439fd8c3efa12904 | deacf4c422bc9e50cb347e11a8cbfa0195bd4274 | refs/heads/main | 2023-08-16T19:13:00.355572 | 2023-08-04T04:19:29 | 2023-08-04T04:19:29 | 168,622,088 | 173 | 227 | NOASSERTION | 2023-09-11T16:04:55 | 2019-02-01T01:12:51 | Python | UTF-8 | Python | false | false | 14,289 | py | cstr_reduced.py | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES).
#
# Copyright (c) 2018-2023 by the software own... |
81eb7d6914cf04aebfb46a8e5b3cfa23e22441ba | 10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8 | /tests/unit/lib/remote_invoke/test_remote_invoke_executor_factory.py | 8f76be83031f946aff6bbed73967c6aa5b1cacc2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | aws/aws-sam-cli | 6d4411aacf7f861e75e5cf4882a32858797a276d | b297ff015f2b69d7c74059c2d42ece1c29ea73ee | refs/heads/develop | 2023-08-30T23:28:36.179932 | 2023-08-30T21:58:26 | 2023-08-30T21:58:26 | 92,205,085 | 1,402 | 470 | Apache-2.0 | 2023-09-14T21:14:23 | 2017-05-23T18:16:23 | Python | UTF-8 | Python | false | false | 9,655 | py | test_remote_invoke_executor_factory.py | import itertools
from unittest import TestCase
from unittest.mock import patch, Mock
from parameterized import parameterized
from samcli.lib.remote_invoke.remote_invoke_executor_factory import RemoteInvokeExecutorFactory, AWS_LAMBDA_FUNCTION
from samcli.lib.remote_invoke.remote_invoke_executors import RemoteInvokeOut... |
15e662d7707df92e5f34bb3670ffa241ddec4303 | bceec65d72798ce525b0c88138bb80d8348eff96 | /tests/test_objects.py | 75d18a35a0c72ed062b2dfd9a77b8f608495cfff | [
"MIT"
] | permissive | brandondube/prysm | a53d7eb95600db7d3b2792cff01b5ab0f92a958f | af89c94d500a274eda664188ddb97fcae30c6ac5 | refs/heads/master | 2023-08-14T08:30:18.847011 | 2023-08-12T23:51:22 | 2023-08-12T23:51:22 | 121,337,323 | 192 | 38 | MIT | 2023-09-10T20:11:29 | 2018-02-13T04:10:16 | Python | UTF-8 | Python | false | false | 1,354 | py | test_objects.py | """Tests for object (target) synthesis routines."""
import pytest
import numpy as np
from prysm import objects, coordinates
@pytest.fixture
def xy():
x, y = coordinates.make_xy_grid(32, diameter=1)
return x, y
@pytest.fixture
def rt(xy):
x, y = xy
return coordinates.cart_to_polar(x, y)
@pytest.m... |
7f54a5c584261c4e78d6b1e4f66826ba51df4cad | 7bea5adf7d6284fbad0131d665e957d58adfe7c7 | /allauth/socialaccount/providers/saml/provider.py | 6dcbf537f5fbe2876e1b907b6545ed9d7f7e3afa | [
"MIT"
] | permissive | pennersr/django-allauth | 50c9e71c3666785368e92ed9e19ea0f6a5438cd2 | 6b8911a5ebbabda0d446f2743bd4d00d250ed500 | refs/heads/main | 2023-09-03T16:48:10.988418 | 2023-09-02T08:00:53 | 2023-09-02T08:00:53 | 976,994 | 7,719 | 3,481 | MIT | 2023-09-14T15:06:57 | 2010-10-10T20:10:52 | Python | UTF-8 | Python | false | false | 2,880 | py | provider.py | from django.urls import reverse
from django.utils.http import urlencode
from allauth.socialaccount.providers.base import Provider, ProviderAccount
class SAMLAccount(ProviderAccount):
def to_str(self):
return super().to_str()
class SAMLProvider(Provider):
id = "saml"
name = "SAML"
account_cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.