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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d7704780142fbe56caeac7e8c603e16e68667e8 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiMarketingDataBizadviserMyreportQueryModel.py | e7d3071ddccc811b9c30af50bf9bf54f794d27d4 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,934 | py | KoubeiMarketingDataBizadviserMyreportQueryModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiMarketingDataBizadviserMyreportQueryModel(object):
def __init__(self):
self._req_parameters = None
self._uniq_key = None
self._user_id = None
@property
def ... |
49254a709c3997d11a079dac25d7f768fe811254 | 22c1865e6768e0ffae2a32db8044c155e245b3d7 | /bauh/commons/config.py | f2e6cb40f59546e280436d40cf955c04c2e7140c | [
"Zlib"
] | permissive | vinifmor/bauh | d33ffbe40c18c8db9f8fe053a26846420cae30f9 | d80b23a952808c883045759270776847fcd7c4ec | refs/heads/master | 2023-08-18T20:59:36.763518 | 2023-03-07T11:06:50 | 2023-03-07T11:06:50 | 201,946,404 | 815 | 89 | Zlib | 2023-09-09T15:16:23 | 2019-08-12T14:27:18 | Python | UTF-8 | Python | false | false | 2,746 | py | config.py | import os
import traceback
from abc import abstractmethod, ABC
from pathlib import Path
from threading import Thread
from typing import Optional
import yaml
from bauh.api.paths import CONFIG_DIR
from bauh.commons import util
def read_config(file_path: str, template: dict, update_file: bool = False, update_async: bo... |
3b3551d5d561d51942064ebf11b105a26020ec59 | 0ba2e5061577f6286ff9265ef1df9aca96769445 | /puzzles/100_Doors/python/100doors.py | 781b972c1138017e08d7091260b98150865c8287 | [
"CC0-1.0"
] | permissive | ZoranPandovski/al-go-rithms | 68d5d02f80a61de9baf8e50a81a52e7d0b3983a0 | 4ae6ba54e90af14af236e03e435eb0402dcac787 | refs/heads/master | 2023-09-04T16:04:04.321676 | 2023-06-06T15:22:16 | 2023-06-06T15:22:16 | 93,438,176 | 1,421 | 2,445 | CC0-1.0 | 2023-06-15T14:24:28 | 2017-06-05T19:20:20 | Jupyter Notebook | UTF-8 | Python | false | false | 222 | py | 100doors.py | doors = [False]*100
for i in range(0,100):
j = i
while j < 100:
doors[j] = not doors[j]
j += i + 1
for door in range(0,100):
if doors[door]:
print("Door "+ str(door+1) + " is open.")
|
f9b41e2f23fc4636b067750ffeeaa7e2d06471dd | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /run.py | 714f7f4dfc5760694138ccf32bc8e13b86b798cc | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 3,946 | py | run.py | from autox import AutoX
import argparse
from time import time
import datetime
start_time = time()
ap = argparse.ArgumentParser(description='run_autox.py')
ap.add_argument('path_input', nargs=1, action="store", type=str)
ap.add_argument('path_output', nargs=1, action="store", type=str)
pa = ap.parse_args()
path_input =... |
12e3a9fd436ebb3e7fa06b9dcce6fe686f1f6b12 | 0f443b5060644606abb090935bb8fe234378a659 | /plotdevice/lib/__init__.py | 8e6f11f2717e511867e0d8123d2d337071581e08 | [
"BSD-3-Clause",
"MIT"
] | permissive | plotdevice/plotdevice | 6920ae4f11b65c3bd5a7c1d9d21cd0cd3444fd42 | 63992250982590a5290c0135fb9845581c5ccd89 | refs/heads/main | 2023-08-28T11:55:18.331183 | 2022-07-15T19:52:20 | 2022-07-15T19:52:20 | 14,907,048 | 116 | 17 | null | 2022-07-10T21:16:19 | 2013-12-03T21:58:16 | JavaScript | UTF-8 | Python | false | false | 795 | py | __init__.py | import sys
import _plotdevice # make sure the c-extensions are accessible for the submodules
# allow Libraries to request a _ctx reference
def register(module):
"""When called within a library's __init__.py, returns the currently bound context.
After having registered, the module's _ctx variable will be update... |
f67f812434dcbfc81cf907e3f51707ddfb393f00 | 394621297d7cd24a1434eb5556ae5fdcf93621ae | /tests/test_availability_commitment_service.py | 94955c6b95015676b41e54e5c5055e77fd68c774 | [
"BSD-3-Clause"
] | permissive | python-fedex-devs/python-fedex | c59dd982fb1f9c78594043342e234aae18453ac2 | 8690829d209e0c2d22bdd803074a9a36f36f0871 | refs/heads/master | 2023-04-08T22:39:23.336489 | 2023-03-22T18:46:26 | 2023-03-22T18:46:26 | 825,701 | 112 | 112 | BSD-3-Clause | 2023-03-22T18:46:28 | 2010-08-09T03:15:12 | HTML | UTF-8 | Python | false | false | 1,290 | py | test_availability_commitment_service.py | """
Test module for the Fedex ShipService WSDL.
"""
import unittest
import logging
import sys
sys.path.insert(0, '..')
from fedex.services.availability_commitment_service import FedexAvailabilityCommitmentRequest
# Common global config object for testing.
from tests.common import get_fedex_config
CONFIG_OBJ = get_f... |
30aaa26dd2e3852d6528199bed5e78f5f40a9c12 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoJets/JetPlusTracks/python/ZSPJetCorrections332_cff.py | 35d31558b4cb3dcc007a116714ee54f7e0cd7d2f | [
"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 | 1,416 | py | ZSPJetCorrections332_cff.py | import FWCore.ParameterSet.Config as cms
# Modules
#
# Define the producers of corrected jet collections for each algorithm.
#
ZSPJetCorJetIcone5 = cms.EDProducer("CaloJetProducer",
src = cms.InputTag("iterativeCone5CaloJets"),
tagName = cms.vstring('ZSP_CMSSW332_Iterative_Cone_05_PU0'),
tagNameOffset ... |
f0f7d1bab329dd1d6b1b23e41f7bd8e2ee73f1c4 | 607dc8df19fc5248f6289cdda97857b5d58ca16f | /smac/multi_objective/parego.py | 4345d15326c01685257d9392aed88d06ee6b1f6c | [
"BSD-3-Clause",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | automl/SMAC3 | 7dce243a33023c52d6819deff966f7b502e90ed0 | 541ee7e0383b491b86d1a23dcff669f2efad616d | refs/heads/main | 2023-08-31T17:36:06.067579 | 2023-08-01T13:02:51 | 2023-08-01T13:02:51 | 65,900,469 | 943 | 259 | NOASSERTION | 2023-09-11T02:36:57 | 2016-08-17T10:58:05 | Python | UTF-8 | Python | false | false | 1,902 | py | parego.py | from __future__ import annotations
from typing import Any
import numpy as np
from smac.multi_objective.abstract_multi_objective_algorithm import (
AbstractMultiObjectiveAlgorithm,
)
from smac.scenario import Scenario
class ParEGO(AbstractMultiObjectiveAlgorithm):
"""ParEGO implementation based on https://w... |
48af95923ae78e37b88c4163cc35fbd94249aad6 | 0db19410e9751790af8ce4a0a9332293e379c02f | /mmpose/evaluation/__init__.py | f70dc226d30f7b8e4ee5a44ca163ad1ae04eabf5 | [
"Apache-2.0"
] | permissive | open-mmlab/mmpose | 2c9986521d35eee35d822fb255e8e68486026d94 | 537bd8e543ab463fb55120d5caaa1ae22d6aaf06 | refs/heads/main | 2023-08-30T19:44:21.349410 | 2023-07-04T13:18:22 | 2023-07-04T13:18:22 | 278,003,645 | 4,037 | 1,171 | Apache-2.0 | 2023-09-14T09:44:55 | 2020-07-08T06:02:55 | Python | UTF-8 | Python | false | false | 135 | py | __init__.py | # Copyright (c) OpenMMLab. All rights reserved.
from .functional import * # noqa: F401,F403
from .metrics import * # noqa: F401,F403
|
75711a32747ac87dcbf47ccfe8d37525e40ea503 | 1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d | /src/sim/System.py | eb1280f248ce270cbed0ebd43b847b379d79d717 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | gem5/gem5 | 9ec715ae036c2e08807b5919f114e1d38d189bce | 48a40cf2f5182a82de360b7efa497d82e06b1631 | refs/heads/stable | 2023-09-03T15:56:25.819189 | 2023-08-31T05:53:03 | 2023-08-31T05:53:03 | 27,425,638 | 1,185 | 1,177 | BSD-3-Clause | 2023-09-14T08:29:31 | 2014-12-02T09:46:00 | C++ | UTF-8 | Python | false | false | 6,342 | py | System.py | # Copyright (c) 2017, 2019 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the function... |
7cf5fd333987360d33e23ce98902807f0e4a260f | cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a | /s3prl/downstream/enhancement_stft2/dataset.py | 62e705bb24eda513b95c92672a9d5b47e333a010 | [
"Apache-2.0",
"CC-BY-NC-4.0"
] | permissive | s3prl/s3prl | 52ec2ae4df5a61c786c122085603aa9c5e8c2681 | 76a9432b824f6ae3eae09a35a67782c4ed582832 | refs/heads/main | 2023-08-17T02:26:57.524087 | 2023-06-10T17:12:27 | 2023-06-10T17:12:27 | 196,905,457 | 1,549 | 398 | Apache-2.0 | 2023-09-14T13:07:05 | 2019-07-15T01:54:52 | Python | UTF-8 | Python | false | false | 7,445 | py | dataset.py | # -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ dataset.py ]
# Synopsis [ LibriMix speech enhancement dataset ]
# Author [ Zili Huang ]
# Copyright [ Copyright(c), Johns Hopkins University ]
"""**********... |
3d5d5f31464508f5d3fa8b243ff280505d823eb4 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/delete-nodes-and-return-forest.py | 9dbb875fc2035276dc1d96366be0d619756fad7e | [
"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,034 | py | delete-nodes-and-return-forest.py | # Time: O(n)
# Space: O(h + d), d is the number of to_delete
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def delNodes(self, root, to_delete):
"""
:t... |
b11a207c354d4c077115cdd5f31242d61df738a9 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CalibTracker/SiPixelQuality/python/SiPixelStatusProducer_cfi.py | c7b2560dd5908c497a18df6c33fd1acf3e8ae6de | [
"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 | 325 | py | SiPixelStatusProducer_cfi.py | import FWCore.ParameterSet.Config as cms
siPixelStatusProducer = cms.EDProducer("SiPixelStatusProducer",
SiPixelStatusProducerParameters = cms.PSet(
badPixelFEDChannelCollections = cms.VInputTag(cms.InputTag('siPixelDigis')),
pixelClusterLabel = cms.untracked.InputTag("siPixelClusters::RECO"),
... |
fa7468d60049d598a4126813204386a84a9563a6 | c59a5b4cd8d6165ca1ed33a1ddb34bb898bfb5b7 | /doctest_split.py | 6e8f7552eec40d4c35fd6dd8bace315a4b8d6ef4 | [] | no_license | nltk/nltk_book | 8728fae5e09e7557d5caf18d53e0abe3d42e29d8 | 37d9ac1cce3d38cb5343be688161cd2fe192568f | refs/heads/master | 2023-07-31T13:34:44.502814 | 2023-02-10T22:25:31 | 2023-02-10T22:25:31 | 2,530,786 | 315 | 130 | null | 2023-02-10T22:25:33 | 2011-10-07T06:03:32 | HTML | UTF-8 | Python | false | false | 927 | py | doctest_split.py | #!/usr/bin/env python
#
# Natural Language Toolkit: Split an RST file into sections for independent doctest checking
#
# Copyright (C) 2001-2012 NLTK Project
# Author: Steven Bird <sb@csse.unimelb.edu.au>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
import sys
import re
EXT = "doctest" ... |
81e3dcfd741d37bee66504e4ab9331bb5d570f20 | 80f94bea418d7956df1ba19d4d6a1d7715a94ade | /lib/galaxy/schema/drs/DrsObject.py | 98c98ba36339adb8cb51a37f39299a02fd51f032 | [
"CC-BY-2.5",
"MIT",
"CC-BY-3.0",
"AFL-3.0"
] | permissive | galaxyproject/galaxy | 5748409eb6693b1611f289d164f85e20c3237495 | b9ae7a16ba0465995e880ae9701b7e87226b9bab | refs/heads/dev | 2023-08-28T22:35:51.248138 | 2023-08-26T08:02:33 | 2023-08-26T08:02:33 | 31,211,061 | 1,277 | 1,137 | NOASSERTION | 2023-09-14T19:39:01 | 2015-02-23T14:18:06 | Python | UTF-8 | Python | false | false | 7,950 | py | DrsObject.py | # generated by datamodel-codegen:
# filename: https://raw.githubusercontent.com/ga4gh/data-repository-service-schemas/master/openapi/components/schemas/DrsObject.yaml
# timestamp: 2022-05-21T22:19:09+00:00
from __future__ import annotations
from datetime import datetime
from enum import Enum
from typing import (... |
d30da36ab12a6f9ad7b19f2b83da53ec7ab59b30 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/io/misc/asdf/tags/unit/quantity.py | e203269ecd8c6869538298591da852ff57577a74 | [
"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 | 1,161 | py | quantity.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from numpy import isscalar
from astropy.units import Quantity
from asdf.yamlutil import custom_tree_to_tagged_tree
from asdf.tags.core import NDArrayType
from astropy.io.misc.asdf.types import AstropyAsdfType
from .unit import Un... |
e7fa1062b62049cbabc5c670c05b3af630861bfa | e0c29408e6e4a19078a8299a03a575eb5def5cee | /tests/test_sg.py | 0a0d9c0517094ef8b43bf3b9a901a8cf134bf87d | [
"MIT"
] | permissive | microsoft/graspologic | 790e1dfe18743280628b32b4ee946572bbfdd547 | ba74fdb6e5394268a9fae38f95991cbd585bd99e | refs/heads/dev | 2023-09-01T00:03:34.665845 | 2023-08-07T17:49:04 | 2023-08-07T17:49:04 | 147,768,493 | 226 | 101 | MIT | 2023-08-07T17:49:06 | 2018-09-07T04:00:05 | Python | UTF-8 | Python | false | false | 2,971 | py | test_sg.py | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import unittest
import numpy as np
from numpy.testing import assert_equal
import graspologic.subgraph as sg
class TestEstimateSubgraph(unittest.TestCase):
def test_estimate_subgraph_coh(self):
ys = np.array([0, 1,... |
9c1a98868d01ff063c09bdb2471f39c0e61535d3 | 3982e6daf88e453c726f6b39a081fc37ce15a08a | /discovery-provider/src/models/tracks/track_with_aggregates.py | f46ca4ada7581fc53745fbb4af9b5b02beeda793 | [
"Apache-2.0"
] | permissive | AudiusProject/audius-protocol | 45808e11082608ad5b76a425d287cb6d94a6dab0 | 7cf1d8e378520460d24a7cc8c29e9927c0944cb3 | refs/heads/main | 2023-08-09T10:34:28.850436 | 2023-08-09T04:28:17 | 2023-08-09T04:28:17 | 201,821,771 | 531 | 108 | NOASSERTION | 2023-09-14T21:27:52 | 2019-08-11T22:31:43 | TypeScript | UTF-8 | Python | false | false | 646 | py | track_with_aggregates.py | from sqlalchemy.orm import relationship
from src.models.social.aggregate_plays import AggregatePlay
from src.models.tracks.aggregate_track import AggregateTrack
from src.models.tracks.track import Track
class TrackWithAggregates(Track):
aggregate_track = relationship( # type: ignore
AggregateTrack,
... |
5aa4a49c741ee60740addcda607baaa02b8aead0 | 2d6d5424e881252898b898fbfbc47fe1487371cf | /tests/core/test_objects.py | ba453b4b2d3f1b90cdfc61332a6f4397b5069c99 | [
"MIT"
] | permissive | pyvista/pyvista | 333e55bfaa6b8bcdb47e2df04c823d35f05db364 | 1b450b23340f367315fc914075d551e0a4df8cc3 | refs/heads/main | 2023-08-20T08:04:27.146062 | 2023-08-20T01:14:03 | 2023-08-20T01:14:03 | 92,974,124 | 1,885 | 389 | MIT | 2023-09-14T21:09:28 | 2017-05-31T18:01:42 | Python | UTF-8 | Python | false | false | 6,051 | py | test_objects.py | """
Tests for non-spatially referenced objects
"""
import numpy as np
import pytest
import vtk
import pyvista
from pyvista import examples
try:
import pandas as pd
except ImportError:
pd = None
def test_table_init(tmpdir):
"""Save some delimited text to a file and read it"""
filename = str(tmpdir.mk... |
32e2ca70e4ed41021f2d45f0e2cdb22b6ffe377b | 2337351b228818e41be3002bd38f68f77c2aa074 | /services/ui/utils/rest/model.py | 519a8e0378e23909c4c57356667b99597df7acab | [
"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,158 | py | model.py | # ----------------------------------------------------------------------
# ModelResource API
# ----------------------------------------------------------------------
# Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Python mod... |
9363aa423c277facb54e76c2a12a78532ee68b9c | 8287c1677795d23856edefecaf5e878f348e99ba | /docs/conf.py | 391a048b0ff7ac482a77b94b43ec156820a3c66f | [
"MIT"
] | permissive | ialbert/biostar-central | ba325593d6b3a9e2b1ebaddb6257b863b22eface | a051511350871dcd82bdf0b88ce5cda9fd9ef141 | refs/heads/master | 2023-08-30T06:07:44.892831 | 2023-07-24T15:43:02 | 2023-07-24T15:43:02 | 1,511,294 | 535 | 271 | MIT | 2023-02-15T18:49:10 | 2011-03-22T13:09:30 | Python | UTF-8 | Python | false | false | 196 | py | conf.py |
source_suffix = {
'.rst': 'restructuredtext',
'.txt': 'restructuredtext',
'.md': 'markdown',
}
extensions = ['recommonmark']
master_doc = 'index'
project = 'Bioinformatics Recipes' |
b5a33210d5ce9274849aeca7280dcdac5ff6049a | ba580e5d29352f60ad02b271c121e24109b08229 | /spconv/algocore.py | e419fd400ba8e5baf10302821ccbaf71118fcb1f | [
"Apache-2.0"
] | permissive | traveller59/spconv | 2fde12075d80b7965b0196e32e7f0585fe0f1392 | 125a194d895b1bc3ad6ff907bc72641548397b32 | refs/heads/master | 2023-09-01T15:48:18.443364 | 2023-04-19T14:58:31 | 2023-04-19T14:58:31 | 166,499,614 | 1,499 | 382 | Apache-2.0 | 2023-08-28T08:17:32 | 2019-01-19T02:57:09 | Python | UTF-8 | Python | false | false | 6,407 | py | algocore.py | # Copyright 2021 Yan Yan
#
# 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, soft... |
6ec6a00ab0c0ba1d0600d068aa23822576e506dd | cb6fa324f7863c013baa5ebe4133b78597dc4d0a | /sidechainnet/utils/load.py | 146ccd08ad31142748dea701692def29a6a5593b | [
"BSD-3-Clause"
] | permissive | jonathanking/sidechainnet | d1068b426b3e38dcb3f478785a1fda5fe5fd8615 | cfb36b79ca55f4f979d12b232e661e922dd12de6 | refs/heads/master | 2023-06-27T18:38:13.868585 | 2023-04-28T15:22:05 | 2023-04-28T15:22:05 | 246,920,943 | 270 | 32 | BSD-3-Clause | 2023-04-28T15:22:07 | 2020-03-12T20:03:01 | Python | UTF-8 | Python | false | false | 21,235 | py | load.py | """Implements SidechainNet loading functionality."""
import pickle
import os
from sidechainnet.dataloaders.SCNDataset import SCNDataset
import requests
import tqdm
import sidechainnet as scn
from sidechainnet.create import format_sidechainnet_path
from sidechainnet.dataloaders.collate import prepare_dataloaders
de... |
5fc5fce576231437f0553b2b4c58dd19d143058f | 1178107b71343db8970c6474a49b4df50f3b801e | /dataviva/translations/translate.py | e72585a0c7e1d610bf723dae87dd1c9e938b0db3 | [
"MIT"
] | permissive | DataViva/dataviva-site | fae24d3dffc29f980b7e989aec268a6be8c9ef68 | 4e6e861493138b3f296b601866fbb1e7a6c1746d | refs/heads/master | 2023-09-01T17:39:26.928666 | 2023-08-10T12:56:40 | 2023-08-10T12:56:40 | 10,696,967 | 130 | 53 | MIT | 2023-09-14T12:08:09 | 2013-06-14T20:12:26 | HTML | UTF-8 | Python | false | false | 174 | py | translate.py | # -*- coding: utf-8 -*-
from dictionary import dictionary
''' Translates the columns names
'''
def translate(column):
d = dictionary()
return d.get(column, column)
|
23beb237b68e443a7f163dd76f629097c32a2fe0 | 61004e474b7b2ad0071c16766f0f7874f04f9466 | /examples/ephemeral-projects/python/project_deployment_example.py | 79a68c1f8bf84596d5f471575cc72612ed1063e2 | [
"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,465 | py | project_deployment_example.py | # 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 agreed to in writing, ... |
4ada21aaccd9e1eb2c1b294484f0803fc97f7e1d | c976078bf8dde5baf96416d60dd3bb06c72111ad | /test/performance/latency/latency_tests.py | 1a5e5ac16469363f4d3929318069254671544aac | [
"Apache-2.0"
] | permissive | eProsima/Fast-DDS | 21f3fecacca5a285ad9950b7683456c6f9930a4d | 107ea8d64942102696840cd7d3e4cf93fa7a143e | refs/heads/master | 2023-08-31T14:56:45.942016 | 2023-08-11T11:40:25 | 2023-08-11T11:40:25 | 20,296,703 | 1,225 | 463 | Apache-2.0 | 2023-09-14T11:33:09 | 2014-05-29T14:36:15 | C++ | UTF-8 | Python | false | false | 9,086 | py | latency_tests.py | # Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
#
# 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... |
15a80ab7c5349a2f21c9ea1fd6d9f6b9665a60e4 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py | 9524807905055f0cdaf3933693fc74f0f4c1cd03 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 3,253 | py | test_global_reach_connection_scenario.py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
1ccd5f77c154b9eeebc9c7f8f5dac5df03681303 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /sale_stock_restrict/models/res_config.py | a88151d07f3568850bef9eea2114a4721ca53cb5 | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 2,286 | py | res_config.py | # Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# p... |
9f4046eee904479867ada5120cfe0453a00a6841 | 028ddc5e85d89c26f8320b70d8ffe80f3d5aec52 | /tests/unit_tests/sampling/test_monte_carlo.py | 5613440a3d6b054c943e9acbfd4ec2c25f98c1c2 | [
"MIT"
] | permissive | SURGroup/UQpy | 3b516706e9072c6fac80da0bdfbd23e2193f5844 | 9e98a6279aa5a2ec2d6d4c61226c34712547bcc6 | refs/heads/master | 2023-09-04T03:38:35.294389 | 2023-08-04T12:55:02 | 2023-08-04T12:55:02 | 112,795,497 | 215 | 70 | MIT | 2023-09-14T14:18:22 | 2017-12-01T23:05:13 | Python | UTF-8 | Python | false | false | 6,785 | py | test_monte_carlo.py | import numpy as np
import pytest
from beartype.roar import BeartypeCallHintPepParamException
from UQpy.distributions import Normal, MultivariateNormal
from UQpy.sampling import MonteCarloSampling
dist1 = Normal(loc=0., scale=1.)
dist2 = Normal(loc=0., scale=1.)
x = MonteCarloSampling(distributions=dist1, nsamples=5,... |
ab8c85321499ca9fa61407e7381aba8f7382e737 | e849872aed557595cec6ade1180e5f8bbbc29e27 | /nilearn/interfaces/bids/_utils.py | 1e9343f148c85275b4f5094d4cb23504944f3a59 | [
"BSD-3-Clause"
] | permissive | nilearn/nilearn | a071fe00af7d0c605f3030d38588ccfd00cdcb13 | f0852e127b620a64af0a1ce02282106ce6f068ba | refs/heads/main | 2023-08-31T02:21:22.794164 | 2023-08-31T01:44:59 | 2023-08-31T01:44:59 | 1,235,740 | 1,049 | 590 | NOASSERTION | 2023-09-14T21:33:17 | 2011-01-09T19:02:23 | Python | UTF-8 | Python | false | false | 6,010 | py | _utils.py | """Utility functions for the nilearn.interfaces.bids module."""
from __future__ import annotations
import json
import warnings
import nilearn
def _clean_contrast_name(contrast_name):
"""Remove prohibited characters from name and convert to camelCase.
.. versionadded:: 0.9.2
BIDS filenames, in which t... |
cbf980051ea1480ec1d0e2684029fb123d118aac | f77ffae557b3844c97c886fb6d0a4c46506b5440 | /wheel_makers/fakepkg_toplevel/test_fakepkg_toplevel.py | f802b4f9303ee4294af18de12f7a978c01557261 | [
"BSD-2-Clause"
] | permissive | matthew-brett/delocate | d3202d5f7c28e094b4f0994de9afaadd7337d15b | 1c038e856712a1d154e384d57e71621e4525bc86 | refs/heads/master | 2023-05-29T11:04:52.371377 | 2023-05-26T09:54:55 | 2023-05-26T09:54:55 | 17,334,667 | 229 | 57 | BSD-2-Clause | 2023-08-25T21:58:30 | 2014-03-02T09:21:10 | Python | UTF-8 | Python | false | false | 119 | py | test_fakepkg_toplevel.py | from module2 import func2, func3 # type: ignore
def test_fakepkg():
assert func2() == 2
assert func3() == 3
|
36f036cb47bd70723073da638e686ef42371c9d4 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/0724. Find Pivot Index/0724.py | b2eb4187001105cdd289c3fc6dc3dee2f9a3251c | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 228 | py | 0724.py | class Solution:
def pivotIndex(self, nums: List[int]) -> int:
summ = sum(nums)
prefix = 0
for i, num in enumerate(nums):
if prefix == summ - prefix - num:
return i
prefix += num
return -1
|
072a3e9100d8724dcb9a6179976b4f59f2b06a5b | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Cocoa/PyObjCTest/test_nssearchfieldcell.py | a6641134c3b6bd4d2e08cca24da732305c444f24 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 819 | py | test_nssearchfieldcell.py | import AppKit
from PyObjCTools.TestSupport import TestCase
class TestNSSearchFieldCell(TestCase):
def testConstants(self):
self.assertEqual(AppKit.NSSearchFieldRecentsTitleMenuItemTag, 1000)
self.assertEqual(AppKit.NSSearchFieldRecentsMenuItemTag, 1001)
self.assertEqual(AppKit.NSSearchFiel... |
d743a484687c1cd1376d6bddba1f240317927f54 | 7f3967e139e1ecb6c17b63d7f6ca907caea4928a | /examples/tenant_multi_types/tenant_multi_types_tutorial/middleware.py | 83b663ac7f11e235c24d42421718807ec3c8cfce | [
"MIT"
] | permissive | django-tenants/django-tenants | e1a274d6b74093b00f07bb1c5e6eb5c8849bc468 | bfba21005e2cbfcae5789f0b60bec49f864845a8 | refs/heads/master | 2023-08-28T13:10:46.712377 | 2023-08-14T08:15:18 | 2023-08-14T08:15:18 | 37,154,540 | 773 | 205 | MIT | 2023-09-12T11:45:41 | 2015-06-09T19:48:59 | Python | UTF-8 | Python | false | false | 544 | py | middleware.py | from django.http import Http404
from django_tenants.middleware import TenantMainMiddleware
from django_tenants.utils import remove_www_and_dev, get_public_schema_urlconf
class TenantTutorialMiddleware(TenantMainMiddleware):
def no_tenant_found(self, request, hostname):
hostname_without_port = remove_www... |
334cc769ae7ac1f5ad637ff541e0f56e1080a477 | e926bede54cbddf08870036ae478124e0a6cec77 | /src/tests/python_tests/test_volume_grid_emitter.py | 36f7f6e03b25990d4ac3edf2eb2bb6b5fea69b13 | [
"MIT"
] | permissive | doyubkim/fluid-engine-dev | 2d1228c78690191fba8ff2c107af1dd06212ca44 | 94c300ff5ad8a2f588e5e27e8e9746a424b29863 | refs/heads/main | 2023-08-14T08:04:43.513360 | 2022-07-09T06:24:41 | 2022-07-09T06:24:41 | 58,299,041 | 1,725 | 275 | MIT | 2022-07-09T06:24:41 | 2016-05-08T06:05:38 | C++ | UTF-8 | Python | false | false | 4,466 | py | test_volume_grid_emitter.py | """
Copyright (c) 2019 Doyub Kim
I am making my contributions/submissions to this project solely in my personal
capacity and am not conveying any rights to any intellectual property of any
third parties.
"""
import numpy as np
import pyjet
from pytest_utils import *
def test_volume_grid_emitter2():
# Basic ctor... |
f9f021bceedb9578c51277ad4e199e2917f88193 | bd3a1843e2b0dc15837628c77f73e95a9bb1264f | /examples/api_usage/loop.py | 670aebce719c717b6d2950dde1930783d196b538 | [
"Apache-2.0"
] | permissive | funilrys/PyFunceble | 404c64d1b281d4ae06a939b54f4088d63e12b828 | 214a57d0eca3df7c4ed3421937aaff9998452ba6 | refs/heads/dev | 2023-06-24T18:39:29.372775 | 2023-06-18T13:15:39 | 2023-06-18T13:15:39 | 106,995,518 | 267 | 62 | Apache-2.0 | 2023-08-25T16:05:17 | 2017-10-15T08:25:14 | Python | UTF-8 | Python | false | false | 1,338 | py | loop.py | """
This is a loop example which tests a list of domain and processes some action
according to one of the official output of PyFunceble.
Note:
* Official output: ACTIVE, INACTIVE, INVALID
* You should always use PyFunceble().test() as it's the method which is especially
suited for `__name__ != '__main__'` usag... |
0edec0f90bab9da388ff28c6320c595a1b16930f | 03a77dc4b5ca942d04f6ac51ba6ac8ff1c8ffcfd | /build/lib/hugsvision/nnet/ObjectDetectionTrainer.py | d1caa46231bd22eab046973e318892fdd7c9f07a | [
"MIT"
] | permissive | qanastek/HugsVision | ac080b551a157b3aa7ce24cbb5609c385d0e2c09 | 476507aac684f57107a533e8c95ed6059416e3e0 | refs/heads/main | 2023-08-18T00:46:14.335348 | 2023-01-22T01:25:39 | 2023-01-22T01:25:39 | 395,451,145 | 182 | 19 | MIT | 2023-01-22T01:23:32 | 2021-08-12T21:46:08 | Jupyter Notebook | UTF-8 | Python | false | false | 6,537 | py | ObjectDetectionTrainer.py | # -*- coding: utf-8 -*-
import os
import math
import random
import argparse
from pathlib import Path
from datetime import datetime
from collections import Counter
import torch
import torchmetrics
from torch.utils.data import DataLoader
from pytorch_lightning import Trainer
from sklearn.metrics impor... |
f02e978d87ca153e60c537fd6ceabf75adde6ea4 | a76a2893ea50a607fac6bcecf1a0aa1a33bba30c | /epitran/test/test_farsi.py | 36851b1a86bc93dfce82327003faf8df2077ce68 | [
"MIT"
] | permissive | dmort27/epitran | ec340de58e428112f17df1656e3db2f7f1199618 | ac2ad67b350fcdba29831eb968ee617bdaebb873 | refs/heads/master | 2023-09-05T06:03:28.507878 | 2023-04-19T20:30:55 | 2023-04-19T20:30:55 | 56,178,599 | 543 | 124 | MIT | 2023-06-22T02:09:30 | 2016-04-13T19:04:53 | Python | UTF-8 | Python | false | false | 1,258 | py | test_farsi.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
import epitran
class TestSorani(unittest.TestCase):
def setUp(self):
self.epi = epitran.Epitran(u'fas-Arab')
def test_faarsi(self):
tr = self.epi.transliterate('فارسی')
self.assertEqual(tr, 'fɒrsj')
... |
f6bc64750e80faa979e9ec3dbef88320ece7fb81 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/Zoom/Integrations/Zoom/Zoom.py | 9638462294ead0ddb464153b1a6d485694652816 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 68,848 | py | Zoom.py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
import shutil
from ZoomApiModule import *
from traceback import format_exc
from datetime import datetime
# Note#1: type "Pro" is the old version, and "Licensed" is the new one, and i want to support both.
# Note#2: type "Corpor... |
4e1d4f877a60bc5a54a905d7ff40d1bc4d11a0e9 | 33f805792e79a9ef1d577699b983031521d5b6c9 | /tapiriik/testing/sync.py | 5ef7878c4b0489cbed87e28410a584d6b893da30 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | cpfair/tapiriik | 0dce9599400579d33acbbdaba16806256270d0a3 | c67e9848e67f515e116bb19cd4dd479e8414de4d | refs/heads/master | 2023-08-28T10:17:11.070324 | 2023-07-25T00:59:33 | 2023-07-25T00:59:33 | 7,812,229 | 1,519 | 343 | Apache-2.0 | 2022-10-24T16:52:34 | 2013-01-25T02:43:42 | Python | UTF-8 | Python | false | false | 27,785 | py | sync.py | from tapiriik.testing.testtools import TestTools, TapiriikTestCase
from tapiriik.sync import SynchronizationTask
from tapiriik.sync.activity_record import ActivityRecord
from tapiriik.services import UserException, UserExceptionType
from tapiriik.services.api import APIExcludeActivity
from tapiriik.services.inte... |
afb4e8c63dbb02723f84abb0d1babaa3dfdf1d5b | e53dd2252d82e19794a7763c7aab015112546001 | /python/sparknlp/training/pub_tator.py | bbbed9c98d7d4bda4d4e01a3f66707275e3a1b52 | [
"Apache-2.0"
] | permissive | JohnSnowLabs/spark-nlp | 5017f90629bf44219db4c4880da168830b63838f | 438d9e65d791b0fa8914ab250815b29d55895325 | refs/heads/master | 2023-08-31T12:31:40.651128 | 2023-08-28T09:19:10 | 2023-08-28T09:19:10 | 104,670,986 | 3,506 | 737 | Apache-2.0 | 2023-09-14T06:30:18 | 2017-09-24T19:36:44 | Scala | UTF-8 | Python | false | false | 3,331 | py | pub_tator.py | # Copyright 2017-2022 John Snow Labs
#
# 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... |
668b37680608270975e4dec888aec3ee9fe95c34 | abe6c00f9790df7e6ef20dc02d0b1b225b5020cb | /src/prefect/_internal/schemas/transformations.py | b3ce84029b3b34c3079b936ce5684406d25f6e49 | [
"Apache-2.0"
] | permissive | PrefectHQ/prefect | 000e6c5f7df80f76a181f0a30f8661c96417c8bd | 2c50d2b64c811c364cbc5faa2b5c80a742572090 | refs/heads/main | 2023-09-05T20:25:42.965208 | 2023-09-05T18:58:06 | 2023-09-05T18:58:06 | 139,199,684 | 12,917 | 1,539 | Apache-2.0 | 2023-09-14T20:25:45 | 2018-06-29T21:59:26 | Python | UTF-8 | Python | false | false | 3,598 | py | transformations.py | import copy
from dataclasses import dataclass
from typing import Any, Optional, Type, TypeVar
from pydantic import BaseModel
B = TypeVar("B", bound=BaseModel)
@dataclass
class _FieldFrom:
"""Container for holding the origin of a field's definition"""
origin: Type[BaseModel]
def FieldFrom(origin: Type[Bas... |
78e8322380c79746ad77cb684563a2aa13e74c65 | 0792d6eba02b539ed7e5c8f1a6058a4c51ed108c | /arbiter/master_chief/sa_recon.py | 3a338cbb511ab5b84cd75fe50c50112b034589ed | [] | no_license | jkrshnmenon/arbiter | e7b15ec4daa778fea750720d8e9fcaa1161006c7 | ccbba06199d861554f2067d29c7a333fdf46d6d5 | refs/heads/master | 2022-11-05T06:32:10.177481 | 2022-10-27T05:25:50 | 2022-10-27T05:25:50 | 380,174,126 | 193 | 25 | null | 2022-04-07T00:09:46 | 2021-06-25T08:28:14 | Python | UTF-8 | Python | false | false | 5,563 | py | sa_recon.py | import json
import time
import angr
import logging
from tqdm import tqdm
from ..target import SA1_Target
from ..utils import FatalError
from .sa_base import StaticAnalysis
logger = logging.getLogger(name=__name__)
class SA_Recon(StaticAnalysis):
'''
A class which performs the basic static analysis
Analys... |
1cb3e837f3a2434ea2bdfa01f5b4681c3e3a56a5 | 4727bae8d3a2d11c47a3fcb3b67f4ccf52e37635 | /examples/misbehaved.py | 6b4dcb4e8646c6ceeb24293fe89082817e8af454 | [
"Apache-2.0"
] | permissive | autodesk-cloud/ochopod | 0be1bf552f7030ff46facc04079c32983f26f468 | a934aa68ed3d1b242856006052c12e95258cd8c3 | refs/heads/master | 2021-01-18T21:50:39.291904 | 2016-02-02T18:16:02 | 2016-02-02T18:16:02 | 32,090,295 | 140 | 31 | null | 2016-03-29T10:53:59 | 2015-03-12T17:12:57 | Python | UTF-8 | Python | false | false | 1,941 | py | misbehaved.py | #
# Copyright (c) 2015 Autodesk Inc.
# All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... |
2c8cb11b438305f7684e089b9ab563527e034c96 | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/transform/datetime/week.py | 8b05ff5b6bed938843f468fe10124a12543ffe3c | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 1,336 | py | week.py | from woodwork.column_schema import ColumnSchema
from woodwork.logical_types import Datetime, Ordinal
from featuretools.primitives.base import TransformPrimitive
from featuretools.utils.gen_utils import Library
class Week(TransformPrimitive):
"""Determines the week of the year from a datetime.
Description:
... |
82a190dd06ea50f0c86ab0f0b583bf54608af209 | 14e3a6d5d5ef1a7fc576c0670361fc908630b495 | /python/clx/tests/test_kafka_reader.py | 62dde0c3419239a5dc94bf4db9e00debb41f02c4 | [
"Apache-2.0"
] | permissive | rapidsai/clx | 3b6e49b53704de7f81fcd923ae88148a6ed5f031 | 68c14f460b5d3ab41ade9b2450126db0d2536745 | refs/heads/branch-23.04 | 2023-05-25T09:37:15.553353 | 2023-05-19T16:07:00 | 2023-05-19T16:07:00 | 186,716,715 | 169 | 93 | Apache-2.0 | 2023-05-19T16:07:02 | 2019-05-14T23:47:32 | Jupyter Notebook | UTF-8 | Python | false | false | 2,706 | py | test_kafka_reader.py | # Copyright (c) 2019, 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 agreed to... |
582d4db8603488f6dee6f33d676736b846c8bf0b | 01857ef455ea60eccaf03b5a9059ec83e9803c2e | /examples/sqlite_database/models.py | e4d55fe474684c428b0d79f92ef6ef5b6beb371a | [
"MIT"
] | permissive | zauberzeug/nicegui | f08312cc1f393deca79e0e84a2506d3a35efff16 | c61b1315f29d51e26cc1168207f5616b302f8df0 | refs/heads/main | 2023-08-18T18:09:30.937322 | 2023-08-18T15:04:00 | 2023-08-18T15:04:00 | 365,250,183 | 5,128 | 271 | MIT | 2023-09-14T01:50:56 | 2021-05-07T13:55:05 | Python | UTF-8 | Python | false | false | 170 | py | models.py | from tortoise import fields, models
class User(models.Model):
id = fields.IntField(pk=True)
name = fields.CharField(max_length=255)
age = fields.IntField()
|
42552b81d46cd02007749b3ffcbe1d53ee19043e | 279f415dd1e06c594c6c87deda57e201c73c4542 | /test/espnet2/bin/test_whisper_export_vocabulary.py | 3c42644f8f26c4184af2bfc0c82d1ed56ae5abc9 | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 1,959 | py | test_whisper_export_vocabulary.py | from argparse import ArgumentParser
import pytest
from espnet2.bin.whisper_export_vocabulary import export_vocabulary, get_parser, main
pytest.importorskip("whisper")
VOCAB_SIZE_MULTILINGUAL = 51865
VOCAB_SIZE_EN = 51864
def test_get_parser():
assert isinstance(get_parser(), ArgumentParser)
def test_export... |
349eec1f33e385b2d8daef9875dba9e9f3947a78 | 749af8e81d5ccd2d8714a34434a9c77772df551b | /statsmodels/examples/ex_kde_normalreference.py | fc9376acc96690568b8fd89134f1894d596a9a43 | [
"BSD-3-Clause"
] | permissive | statsmodels/statsmodels | 98ca67192c08bcc611ed3a75edaded2c7181ab98 | 01b19d7d111b29c183f620ff0a949ef6391ff8ee | refs/heads/main | 2023-09-05T13:05:49.497076 | 2023-09-01T10:54:50 | 2023-09-01T10:54:50 | 1,885,237 | 8,666 | 3,023 | BSD-3-Clause | 2023-09-13T17:51:48 | 2011-06-12T17:04:50 | Python | UTF-8 | Python | false | false | 1,614 | py | ex_kde_normalreference.py | # -*- coding: utf-8 -*-
"""
Author: Padarn Wilson
Performance of normal reference plug-in estimator vs silverman. Sample is drawn
from a mixture of gaussians. Distribution has been chosen to be reasoanbly close
to normal.
"""
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt
import statsmodel... |
97903ddfa0b3c40fb2a50abf741f8462a760523e | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/ex-submodules/pillow_retry/migrations/0003_auto_20151002_0944.py | 91fa6a8a51f91118b03a99046075e2d135332638 | [
"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 | 176 | py | 0003_auto_20151002_0944.py | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pillow_retry', '0002_pillowerror_queued'),
]
operations = []
|
90901cf7d1e1ab6acf54536a941e5bdf983e3dd3 | 38d86234ef4ba4ed5ac3bf585bcff8615004d2a6 | /ssseg/modules/models/segmentors/deeplabv3/aspp.py | 60afe88e0417cfa2d565f5590a978e07ef9b8061 | [
"Apache-2.0"
] | permissive | SegmentationBLWX/sssegmentation | e57e7a071b03214c55248c4b1e64c85796744bf1 | fe3d0dac83055b728fe3c5df964507fc7cc4948c | refs/heads/main | 2023-08-05T02:49:57.370911 | 2023-08-01T13:49:17 | 2023-08-01T13:49:17 | 306,540,019 | 725 | 97 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | aspp.py | '''
Function:
Implementation of Atrous Spatial Pyramid Pooling (ASPP)
Author:
Zhenchao Jin
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
from ...backbones import BuildActivation, BuildNormalization
'''ASPP'''
class ASPP(nn.Module):
def __init__(self, in_channels, out_channels, dil... |
2c3545e8a1a04ebf67f9645d74521f21f15806e4 | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /.buildkite/dagster-buildkite/setup.py | 991ceb9ad19b5c1e9013b75484dc494b873735dd | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 1,099 | py | setup.py | from setuptools import find_packages, setup
setup(
name="dagster_buildkite",
version="0.0.1",
author="Elementl",
author_email="hello@elementl.com",
license="Apache-2.0",
description="Tools for buildkite automation",
url="https://github.com/dagster-io/dagster/tree/master/.buildkite/dagster-b... |
16899857ba6367b5b2817787c7c7d6ad327bc652 | fcab2679a5c5030c54bbee10857a64263e8d7b46 | /tests/lib/junipermsmpc_test.py | 20435d3066c541d93820eb89cc2a849f204fc04b | [
"Apache-2.0"
] | permissive | google/capirca | 38eb9339e565b30667d264e18e9b81ee0ac41d18 | d145ca447e0e04895507777b8c5834c22e90df11 | refs/heads/master | 2023-08-28T02:37:19.814474 | 2023-08-23T13:59:33 | 2023-08-23T13:59:33 | 40,198,544 | 743 | 238 | Apache-2.0 | 2023-09-11T20:02:40 | 2015-08-04T17:25:11 | Python | UTF-8 | Python | false | false | 68,020 | py | junipermsmpc_test.py | # Copyright 2020 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, ... |
8ebd46a41f08818c8e6b343ca2c50c0ee53900a6 | ce7d8409dc7da020d82e479ae457f2b9d598b44d | /vel/sources/vision/mnist.py | 24f266465ba091c3b024c73f36a2d671c6d8ef0f | [
"MIT"
] | permissive | MillionIntegrals/vel | 42f9aa241b0e07f51363e97630e3a0b4750f1e5e | f3ce7da64362ad207f40f2c0d58d9300a25df3e8 | refs/heads/master | 2022-12-24T12:58:03.377520 | 2019-10-24T19:04:53 | 2019-10-24T19:04:53 | 132,808,324 | 280 | 37 | MIT | 2022-12-08T04:50:05 | 2018-05-09T20:16:48 | Python | UTF-8 | Python | false | false | 1,120 | py | mnist.py | from torchvision import datasets
from vel.api import TrainingData
from vel.augmentations.normalize import Normalize
from vel.augmentations.to_tensor import ToTensor
from vel.augmentations.to_array import ToArray
def create(model_config, batch_size, normalize=True, num_workers=0, augmentations=None):
""" Create... |
ca6e146c9721d26efef2a7919fc6c6f20012f8f3 | 02bde3948681b41ab5b94553cc87ca2bfd38f159 | /src/embedding/parameter_server.py | 4f0a9256275e047a968940d0b56e3f22a2522898 | [
"MIT"
] | permissive | SharpAI/DeepCamera | 84829f615a9fe6e3e3d67cb96b3143304ecbad59 | 6375e7c7cfda90345e9182214e9208a42b5254a7 | refs/heads/master | 2023-06-18T05:07:19.163001 | 2023-01-18T18:03:19 | 2023-01-18T18:03:19 | 173,961,960 | 1,548 | 244 | MIT | 2022-10-07T18:23:20 | 2019-03-05T14:29:23 | JavaScript | UTF-8 | Python | false | false | 4,060 | py | parameter_server.py | import os
from flask import Flask, render_template, request, jsonify, redirect, views
from ConfigParser import ConfigParser
import time, shutil
#base_path = os.path.dirname(os.path.abspath(__file__))
base_path = os.getenv('RUNTIME_BASEDIR',os.path.abspath(os.path.dirname(__file__)))
tpl_path = os.path.join(base_path, ... |
71325db2b2f741d759fbd5db62e4620d95730dc0 | 88fe84c79e5740b4aaa068df6a70e35841a68d25 | /dev/generate-kernel-signatures.py | 47a010452f31699474715376151c1a66305f933a | [
"BSD-3-Clause"
] | permissive | scikit-hep/awkward | 176f56182a936270e163eab92ea18368c2bdc1be | 519bba6ed2eec4e227994d2fd1a62b2a51f15e20 | refs/heads/main | 2023-09-02T20:19:10.175088 | 2023-09-01T20:13:25 | 2023-09-01T20:13:25 | 202,413,762 | 208 | 22 | BSD-3-Clause | 2023-09-14T17:19:29 | 2019-08-14T19:32:12 | Python | UTF-8 | Python | false | false | 13,324 | py | generate-kernel-signatures.py | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import datetime
import os
import time
import yaml
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
cuda_kernels_impl = [
"awkward_ListArray_validity",
"awkward_BitMaskedArray_to_ByteMaskedArray",
"awkward_... |
363df975f2a86f70a0683f16874c17ca257e90f2 | 141c5ef07df60b1c9f726e4605b78a2a7c1243e9 | /meross_iot/model/constants.py | 780f95712b48d236e0026f4703ba6c6527cab249 | [
"MIT"
] | permissive | albertogeniola/MerossIot | cd8abaac236a7fb442bdf9613c7e6760123c8bd3 | de1c22696511eee106961da3f22d3030ed9c254c | refs/heads/0.4.X.X | 2023-09-01T11:11:09.793153 | 2023-04-01T15:15:50 | 2023-04-01T15:15:50 | 146,365,723 | 467 | 102 | MIT | 2023-09-11T06:42:13 | 2018-08-27T23:30:56 | Python | UTF-8 | Python | false | false | 145 | py | constants.py | DEFAULT_MEROSS_HTTP_API = "https://iot.meross.com"
DEFAULT_MQTT_HOST = "mqtt.meross.com"
DEFAULT_MQTT_PORT = 443
DEFAULT_COMMAND_TIMEOUT = 10.0
|
378fdab30e7dd968b2b37a805366706c4b20459c | 6c4ab1dafa1fd3c5f2bec8c3a85513e66b1ee643 | /script/simplify/zh_wiki.py | 83f330655ea4013657bab924921e474a566a3a18 | [
"MIT"
] | permissive | sheepzh/poetry | 474634f9dbb0e1ec079000b6592f2eb6f058425c | ebbe0ee48629fee6f72bcfe73ec02c3f0a430984 | refs/heads/master | 2023-08-07T15:46:24.774001 | 2023-08-01T15:29:33 | 2023-08-01T15:30:32 | 181,614,575 | 638 | 80 | MIT | 2021-04-12T05:41:16 | 2019-04-16T04:27:54 | Python | UTF-8 | Python | false | false | 55,877 | py | zh_wiki.py | # -*- coding: utf-8 -*-
# copy fom wikipedia
zhu = [
'土著', '著作', '著名', '名著', '专著', '著称', '著有', '原著', '显著', '臭名昭著', '不著一词',
# 象 => 像
'想象', '你象征', '我象征', '他象征', '正象征', '大象是', '小象是', '也象征', '景象', '意象', '具象', '形象',
'不能自已'
]
not_translated = ['乾坤', "德乾恒美", '乾隆', '康乾', '乾陵', '幺公']
for z in zhu:
not_tra... |
b8ffdaac70f368e62db327713a20199464d65dc9 | ead070a90223b8fe439279b05821514f8ebfb865 | /susi_linux/ui/renderer.py | 7e2f23547ac8c297e8e3da23a125861f02fe572a | [
"Apache-2.0"
] | permissive | fossasia/susi_linux | d501011c2b4e1a3b103d29f868f6cfd586704b5b | 395ea4dbbd2c26cbed8e369b1d8f2af6a3db31a0 | refs/heads/development | 2023-08-18T14:30:22.802258 | 2021-03-22T11:11:33 | 2021-03-22T11:11:33 | 88,407,030 | 2,297 | 206 | Apache-2.0 | 2020-01-31T11:09:43 | 2017-04-16T10:47:24 | Python | UTF-8 | Python | false | false | 471 | py | renderer.py | from abc import ABC, abstractclassmethod
from rx.subject import Subject
from .. import SusiLoop
class Renderer(ABC):
def __init__(self):
super().__init__()
self.subject = Subject()
self.susi_loop = SusiLoop(self)
self.susi_loop.start(background = True)
@abstractclassmethod
... |
ec044e86c694f488eb8b8e89fc72168be00dcbd6 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /dts/airbyte/airbyte-integrations/connectors/destination-scaffold-destination-python/integration_tests/integration_test.py | d945ab6b09af17c2741a50466d61e6647b83a111 | [
"MIT",
"Elastic-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 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 | 131 | py | integration_test.py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
def integration_test():
# TODO write integration tests
pass
|
8324d04104b2d2016edd876cff71ed10db9164cc | 7a6b4705293709e32a6927ad4f76eb0549f3bea9 | /orchestra/project_api/api.py | 0daf3d6fe1689b36fb1948e12c81e373754ea089 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | b12io/orchestra | a71941d80d1eeddb73f301da8f601b2c31a4b279 | ee8a29122a3491feae1e1c2c4699142726ae6c21 | refs/heads/main | 2023-08-20T17:46:36.360755 | 2023-06-27T13:32:46 | 2023-06-27T13:32:46 | 42,593,972 | 459 | 66 | Apache-2.0 | 2023-06-27T13:32:48 | 2015-09-16T14:55:16 | Python | UTF-8 | Python | false | false | 4,113 | py | api.py | import logging
from collections import defaultdict
from orchestra.models import Project
from orchestra.models import Step
from orchestra.models import WorkflowVersion
from orchestra.project_api.serializers import ProjectSerializer
from orchestra.project_api.serializers import TaskSerializer
logger = logging.getLogger... |
a4b2c7c7e9edffd37f1fac7c4cf1b992323b4947 | ace570f65d70e6ce9461bcb81aaaac31c57ec111 | /host/greatfet/programmer.py | 80ef3cd70228420d074972b2635971777f061704 | [
"BSD-3-Clause"
] | permissive | greatscottgadgets/greatfet | 9ed060aec2d293844c0ac59612f09ecae9c7632b | 2409575d28fc7c9cae44c9085c7457ddfb54f893 | refs/heads/master | 2023-05-12T18:12:31.748720 | 2023-05-05T07:18:21 | 2023-05-05T07:18:21 | 48,184,998 | 273 | 95 | BSD-3-Clause | 2023-05-05T07:18:22 | 2015-12-17T16:17:35 | C | UTF-8 | Python | false | false | 157 | py | programmer.py | #
# This file is part of GreatFET.
#
class GreatFETProgrammer(object):
""" Base class for components that use Interfaces to program other devices. """
|
b8713a1641d55cd9699f4233e6da929161e2e3a5 | 23652304566b1869ca65b95b116ee43d16e134f3 | /tests/functional/oauth_test.py | a8b1ddf15d0dc2609f2a3d289ed3cc22e211cb3f | [
"BSD-2-Clause",
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | hypothesis/h | 29399a26990856c336b05022e827541dd8aeedab | 232446d776fdb906d2fb253cf0a409c6813a08d6 | refs/heads/main | 2023-08-30T16:21:33.754658 | 2023-08-30T09:26:50 | 2023-08-30T09:40:48 | 3,910,945 | 2,558 | 452 | BSD-2-Clause | 2023-09-14T11:25:06 | 2012-04-02T19:56:59 | Python | UTF-8 | Python | false | false | 5,807 | py | oauth_test.py | """Functional tests for getting and using OAuth 2 access and refresh tokens."""
import calendar
import datetime
import jwt
import pytest
from h.models.auth_client import GrantType
class TestOAuth:
def test_getting_an_access_token(self, app, authclient, userid):
"""Test using grant tokens and access tok... |
51f23baa1871c1a80a2aa16bb9c7b1c5e94e41ea | b40d1a26ea04a19ec0da7bf55db84b7ee36cc898 | /algoexpert.io/python/Number_Of_Binary_Tree_Topologies.py | 6ac56688893743113d7571ecd4abcdbc07d78fc4 | [
"MIT"
] | permissive | partho-maple/coding-interview-gym | 5e8af7d404c28d4b9b52e5cffc540fd51d8025cf | 20ae1a048eddbc9a32c819cf61258e2b57572f05 | refs/heads/master | 2022-09-11T16:36:01.702626 | 2022-03-14T08:39:47 | 2022-03-14T08:39:47 | 69,802,909 | 862 | 438 | MIT | 2022-08-18T06:42:46 | 2016-10-02T14:51:31 | Python | UTF-8 | Python | false | false | 412 | py | Number_Of_Binary_Tree_Topologies.py | def numberOfBinaryTreeTopologies(n, cache={0: 1}):
if n in cache:
return cache[n]
numbersOfTree = 0
for leftTreeSize in range(n):
rightTreeSize = n - 1 - leftTreeSize
numOfLeftTree = numberOfBinaryTreeTopologies(leftTreeSize, cache)
numOfRigntTree = numberOfBinaryTreeTopologies(rightTreeSize, cache)
num... |
d1d5b12a75fb1080370825a43e820d1c97d2ca2c | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/networkx/algorithms/tests/test_euler.py | 2f6aab10df0424da98612def0bb320f27b538586 | [
"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 | 4,827 | py | test_euler.py | from unittest import TestCase
from nose.tools import assert_equal
from nose.tools import assert_false
try:
from nose.tools import assert_count_equal
except ImportError:
from nose.tools import assert_items_equal as assert_count_equal
from nose.tools import assert_true
from nose.tools import raises
import netwo... |
ce07e934e280e826f51c06d372f90ddf7a2b03af | 33d4cda7e994edf9fa3abce4de79dc8ef250a209 | /committee/models.py | 043d58dd08f11b0335b7d7bcdaa046ed0661bb11 | [] | no_license | govtrack/govtrack.us-web | f235d346a4549846992cf92b8ac0f6447fd8ffd7 | 40313d4b413a219ff2f7dfc9775258f23608b2cc | refs/heads/main | 2023-09-01T17:03:35.033786 | 2023-08-25T20:46:20 | 2023-08-25T20:46:20 | 8,051,253 | 310 | 76 | null | 2023-05-15T22:29:41 | 2013-02-06T12:58:54 | Python | UTF-8 | Python | false | false | 12,044 | py | models.py | # -*- coding: utf-8 -*-
from django.db import models
from django.urls import reverse
from datetime import datetime, timedelta
import re
from common import enum
from settings import CURRENT_CONGRESS
class CommitteeType(enum.Enum):
senate = enum.Item(1, 'Senate', abbrev="S")
joint = enum.Item(2, 'Joint', abbr... |
7156eb9032e02a06b4540bb0b1773734da3670d4 | c2c212ba42ebfa35f3b6122344978bc94ec8fa67 | /tests/test_simplyrecipes_1.py | 737012ced2bb7a072454663e320de7d3eb28a6f3 | [
"MIT"
] | permissive | hhursev/recipe-scrapers | 0cd6b7db4ef23ca825f2354f5d1ba76076a14813 | 8ced0227b3b16c532fc5ebf3060c99ee0452adab | refs/heads/main | 2023-09-03T07:33:29.684121 | 2023-09-01T21:15:50 | 2023-09-01T21:15:50 | 42,446,168 | 1,276 | 443 | MIT | 2023-09-14T16:34:09 | 2015-09-14T12:05:00 | Python | UTF-8 | Python | false | false | 3,307 | py | test_simplyrecipes_1.py | from recipe_scrapers.simplyrecipes import SimplyRecipes
from tests import ScraperTest
class TestSimplyRecipes1(ScraperTest):
scraper_class = SimplyRecipes
test_file_name = "simplyrecipes_1"
def test_host(self):
self.assertEqual("simplyrecipes.com", self.harvester_class.host())
def test_canon... |
a5422f94606bb126e4885d492f4aadeda03148b9 | 3abc1fef99ac6ce0b845a1090fae7f6875fee729 | /src/ralph/lib/mixins/admin.py | fc0886c47bb3426f37343552ba72b27689e0e34b | [
"Apache-2.0"
] | permissive | allegro/ralph | 5ff9165a202e836061c99e8af20214e0d651622f | b4a72356f527b1f12c7babd7465d2d7fa3ffb0d3 | refs/heads/ng | 2023-09-02T01:13:43.672554 | 2023-09-01T09:48:38 | 2023-09-01T09:48:38 | 4,359,038 | 1,970 | 617 | Apache-2.0 | 2023-09-01T09:44:39 | 2012-05-17T14:04:57 | Python | UTF-8 | Python | false | false | 2,006 | py | admin.py | from django.utils.safestring import mark_safe
class MemorizeBeforeStateMixin(object):
"""
Mixin added _before_state to object which store object before save.
"""
def save_model(self, request, obj, form, change):
if change and obj.pk:
obj._before_state = obj._default_manager.get(pk... |
d0f2db44351d29617cf0d5ac631af2ea5c664325 | 5e7d00499448857b8d0a011598ef96ccbffddd9e | /core/native/vendor/cx_Freeze-5.0.1/cx_Freeze/samples/advanced/advanced_1.py | b79256963e5353d7dd34e8bc2fece78ffdf5fd4c | [
"Apache-2.0"
] | permissive | tensorlang/tensorlang | 77b4e65e1e72731d3054f452e27276dc2ea702ff | 380d6a56d82370a0944621e8fca6199a98bc5692 | refs/heads/master | 2021-09-03T15:01:40.823380 | 2018-01-10T00:57:16 | 2018-01-10T00:57:16 | 79,404,479 | 333 | 28 | Apache-2.0 | 2019-09-22T16:54:00 | 2017-01-19T01:54:39 | Python | UTF-8 | Python | false | false | 153 | py | advanced_1.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.stdout.write('Hello from cx_Freeze Advanced #1\n\n')
module = __import__('testfreeze_1')
|
606d486b8cb3b5635087ef09ccfe65a55fa390aa | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /for_games/autoindent_code_JASS_war3map_j.py | 81623e963a69bc59196111dbc28535e3d574c16f | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 2,791 | py | autoindent_code_JASS_war3map_j.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import re
DEBUG = False
def merge_str_literal(text: str) -> str:
def _on_match(m: re.Match):
return m.group().replace('"+"', "")
return re.sub(r'".+?"(\+".+?")+ ', _on_match, text)
lines = """
function II1I1_II takes real I... |
3c56d7882c4740beab2bebae29490c558e2e06f7 | e03bce53de6f88c0e09f56e4fe11c36af0f1161f | /typings/awacs/groundtruthlabeling.pyi | c2df74d18f192cf488e0761f9f3ce3fed421de38 | [
"Apache-2.0"
] | permissive | onicagroup/runway | 20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f | 0763b06aee07d2cf3f037a49ca0cb81a048c5deb | refs/heads/master | 2023-08-30T22:35:54.113981 | 2023-08-29T14:13:35 | 2023-08-29T14:13:35 | 122,529,924 | 156 | 79 | Apache-2.0 | 2023-09-13T13:43:50 | 2018-02-22T20:12:55 | Python | UTF-8 | Python | false | false | 613 | pyi | groundtruthlabeling.pyi | """
This type stub file was generated by pyright.
"""
from .aws import Action as BaseAction
from .aws import BaseARN
service_name = "Amazon GroundTruth Labeling"
prefix = "groundtruthlabeling"
class Action(BaseAction):
def __init__(self, action=...) -> None: ...
class ARN(BaseARN):
def __init__(self, resour... |
07f3fa8c6a81422569ab3d4a17ff7694185ea49e | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /govern/data-meta/amundsen/search/search_service/proxy/es_proxy_utils.py | c8fc7ae93fa1173d591dbd6fc2dd2860f252f0b4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 4,034 | py | es_proxy_utils.py | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
import logging
from enum import Enum
from typing import (
Any, Dict, List,
)
from amundsen_common.models.search import SearchResponse
from elasticsearch_dsl.response import Response
from elasticsearch_dsl.response.hit import H... |
bc4d5fec116e13ff83b6f38050aa56c7fb6b488c | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/DSTU2/medicationorder.py | 11755e71c8f349b891dd206a69f431f5c325b492 | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 20,165 | py | medicationorder.py | # -*- coding: utf-8 -*-
"""
Profile: https://www.hl7.org/fhir/DSTU2/medicationorder.html
Release: DSTU2
Version: 1.0.2
Revision: 7202
"""
from typing import Any, Dict
from typing import List as ListType
from pydantic import Field, root_validator
from . import backboneelement, domainresource, fhirtypes
class Medicat... |
bbb621b87f4438f2b5b267e94b006ce606c81a71 | 8672b779b8f506ab7709319023307a44eba92218 | /simplesqlite/__init__.py | 2e1e167474072a69519de3984b6de0d2a870119d | [
"MIT"
] | permissive | thombashi/SimpleSQLite | 6975de1f873793783e8998ff30f18f4ed7270272 | 26dd2ab6bc32f766e67e338301a43f6213f61bba | refs/heads/master | 2023-08-28T09:18:08.480668 | 2023-06-24T16:55:38 | 2023-06-24T16:55:38 | 52,209,201 | 140 | 20 | MIT | 2023-09-10T05:53:21 | 2016-02-21T14:01:23 | Python | UTF-8 | Python | false | false | 982 | py | __init__.py | """
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
import simplesqlite.query
from .__version__ import __author__, __copyright__, __email__, __license__, __version__
from ._func import append_table, copy_table
from ._logger import set_log_level, set_logger
from ._sanitizer import SQLiteTableDataSa... |
8406106d04525133da6c807cb0133b523a091165 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/migrate/v20200501/_enums.py | d2e63d0048679ae3abc46ca2b5a5eaacf1b5d15b | [
"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 | 390 | py | _enums.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! ***
from enum import Enum
__all__ = [
'Status',
]
class Status(str, Enum):
"""
Private link connection state.
"""
APPROVED = "Approved"
PENDING = ... |
aed0dd034ed2d7dd0eb94ba0dc94df8bfb73ced0 | ab5d1586266e525eb32823851dd3c774b60fabec | /core/config/celeryimports.py | 3f688d90089008cc82e334e8af38c9bc6bb23940 | [
"Apache-2.0"
] | permissive | yeti-platform/yeti | d31fa464582b6d6731a437d7ceab9e730ce09c75 | dccc691d48177f921ef1134c8fd22f064dc085a2 | refs/heads/master | 2023-09-01T13:54:19.258408 | 2023-06-29T12:44:55 | 2023-06-29T12:44:55 | 47,927,876 | 1,444 | 321 | Apache-2.0 | 2023-09-12T14:49:55 | 2015-12-13T16:54:26 | Python | UTF-8 | Python | false | false | 63 | py | celeryimports.py | from __future__ import unicode_literals
loaded_modules = None
|
b3be00aced35658b41ea73929f89062050d1dfa3 | 3ec38f732b21b0a00e822dac730bdc1748902144 | /scar/parser/fdl.py | 1271683dd5acfe7ac5b029cc8b7178e6c247773c | [
"Apache-2.0"
] | permissive | grycap/scar | e5594c1eb79a0730409c97d48bc511757a05dcbd | e6c8b06a43b310d2c1e58d7826239e259dd826d7 | refs/heads/master | 2023-08-22T00:39:28.004454 | 2023-05-22T11:01:10 | 2023-05-22T11:01:10 | 91,441,209 | 613 | 59 | Apache-2.0 | 2022-11-29T06:36:46 | 2017-05-16T09:35:57 | Python | UTF-8 | Python | false | false | 2,109 | py | fdl.py | # Copyright (C) GRyCAP - I3M - UPV
#
# 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... |
3656bc4c8c3db53f04aa1ad074cf535d9b96d4d8 | cd4be8b6bee2964d063b332c0c8784ab6c89c8e5 | /opacus/tests/grad_samples/instance_norm1d_test.py | 801377bc6d9321cd6ff2545a99f98e88e2643fa6 | [
"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 | 1,157 | py | instance_norm1d_test.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... |
f76a041c63282080b2a121621f313025b1426df0 | 6416b746ee71d897789eab1e450000831674dbd0 | /tests/unit/algorithms/detection/adapters/mmdet/models/dense_heads/conftest.py | 0db005f1b670db2520bb2c6de94d7a013bb5aa26 | [
"Apache-2.0"
] | permissive | openvinotoolkit/training_extensions | c921f83ad52311af96ff45ae0b88d0aecddd855b | 80454808b38727e358e8b880043eeac0f18152fb | refs/heads/develop | 2023-08-31T06:29:07.229339 | 2023-08-31T01:57:26 | 2023-08-31T01:57:26 | 154,843,614 | 397 | 230 | Apache-2.0 | 2023-09-14T06:17:01 | 2018-10-26T14:02:29 | Python | UTF-8 | Python | false | false | 5,882 | py | conftest.py | # Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from typing import Dict
import mmcv
import pytest
import torch
from mmdet.models.builder import build_head
from otx.algorithms.detection.adapters.mmdet.models.heads import *
@pytest.fixture
def fxt_head_input(
img_size=256,
n_bb... |
f1e7ecb0ae95f8fe9a687fb7fa56c54cc52dfe3e | 069c2295076c482afadfe6351da5ae02be8e18e6 | /tests/syndication_tests/urls.py | 50f673373ec4b467ffcf92a2f6d0c13f775686dc | [
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Python-2.0.1",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | django/django | 5eb557f57053631cd4f566f451e43197309dbeeb | c74a6fad5475495756a5bdb18b2cab2b68d429bc | refs/heads/main | 2023-09-01T03:43:44.033530 | 2023-08-31T08:27:32 | 2023-08-31T08:27:32 | 4,164,482 | 73,530 | 38,187 | BSD-3-Clause | 2023-09-14T20:03:48 | 2012-04-28T02:47:18 | Python | UTF-8 | Python | false | false | 1,867 | py | urls.py | from django.urls import path
from . import feeds
urlpatterns = [
path("syndication/rss2/", feeds.TestRss2Feed()),
path(
"syndication/rss2/with-callable-object/", feeds.TestRss2FeedWithCallableObject()
),
path(
"syndication/rss2/with-decorated-methods/",
feeds.TestRss2FeedWithDe... |
0db49ca3071a910cd7c099f507f8310bf88eda46 | 87ddcf61c2faaaa795b9c25af334a76018337f62 | /tests/validator/resource/test_general.py | 531606dff856d24d020cf6a987beece276baf824 | [
"MIT"
] | permissive | frictionlessdata/frictionless-py | 17d663ad34c18964113c97e4d657004610fe0df0 | 740319edeee58f12cc6956a53356f3065ff18cbb | refs/heads/main | 2023-08-26T16:24:25.353929 | 2023-08-04T07:55:37 | 2023-08-04T07:55:37 | 28,409,905 | 295 | 79 | MIT | 2023-09-04T05:01:33 | 2014-12-23T17:11:11 | Python | UTF-8 | Python | false | false | 14,867 | py | test_general.py | import pathlib
import pytest
from frictionless import Check, Checklist, Detector, FrictionlessException, Resource
from frictionless import errors
from frictionless.resources import TableResource
# General
def test_resource_validate():
resource = TableResource.from_descriptor({"name": "name", "path": "data/tabl... |
1e35a805fd4c394575665f6bd52afdb2699dca7c | 6d162c19c9f1dc1d03f330cad63d0dcde1df082d | /util/test/tests/GL/GL_Depth_Bounds.py | 7c6b251ff14a70b6831b0d9d60bad9514d0582a9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-3.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | baldurk/renderdoc | 24efbb84446a9d443bb9350013f3bfab9e9c5923 | a214ffcaf38bf5319b2b23d3d014cf3772cda3c6 | refs/heads/v1.x | 2023-08-16T21:20:43.886587 | 2023-07-28T22:34:10 | 2023-08-15T09:09:40 | 17,253,131 | 7,729 | 1,358 | MIT | 2023-09-13T09:36:53 | 2014-02-27T15:16:30 | C++ | UTF-8 | Python | false | false | 1,326 | py | GL_Depth_Bounds.py | import copy
import rdtest
import renderdoc as rd
from typing import Tuple
class GL_Depth_Bounds(rdtest.TestCase):
demos_test_name = 'GL_Depth_Bounds'
def check_capture(self):
eid = self.find_action("Test").next.eventId
self.controller.SetFrameEvent(eid, False)
glpipe = self.controlle... |
9f0122234e18391c39bf9100757fa96cf343dfda | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /plugins/hg4idea/testData/bin/mercurial/cacheutil.py | 63866ef5784660f709ee5af227574682a51c73eb | [
"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 | 827 | py | cacheutil.py | # scmutil.py - Mercurial core utility functions
#
# Copyright Olivia Mackall <olivia@selenic.com> and other
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
from . import repoview
def cache... |
618b63cb4fc54f74c683f090d2826ab4f12d3766 | 3750387e046dfd287d02decc846860fae874bf3e | /tests/test_apps/passes_callable_class_to_hydra_main/my_app.py | 81c6a0eb18453a7b3b8a46346674c7caae36dcc4 | [
"MIT"
] | permissive | facebookresearch/hydra | baf152caa30cd1d8a7e76ba2111fb9a49ecbe18c | b5ff66134f268164a20712d18b1230f4dd737444 | refs/heads/main | 2023-08-28T02:33:18.063795 | 2023-07-25T17:58:43 | 2023-07-25T17:58:43 | 191,632,914 | 7,667 | 692 | MIT | 2023-09-11T15:38:52 | 2019-06-12T19:33:15 | Python | UTF-8 | Python | false | false | 505 | py | my_app.py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from omegaconf import DictConfig
import hydra
from hydra.core.hydra_config import HydraConfig
class MyCallable:
def __init__(self, state: int = 123) -> None:
self._state = state
def __call__(self, cfg: DictConfig) -> None:
... |
d515d96bf3ea5ad82430e8b4ca84cc49415d35be | 7343ece3b82ac87a594865c4074623b45b0297b4 | /synapse/util/caches/descriptors.py | 8514a75a1c2fd0eececf928891b1b9fac9779a9d | [
"Apache-2.0"
] | permissive | matrix-org/synapse | a00111f83310783b78e2996557f8bbae4d9fb229 | d35bed8369514fe727b4fe1afb68f48cc8b2655a | refs/heads/develop | 2023-09-05T05:24:20.808942 | 2023-09-04T16:14:09 | 2023-09-04T16:14:09 | 22,844,864 | 12,215 | 2,869 | Apache-2.0 | 2023-09-14T15:20:48 | 2014-08-11T15:51:42 | Python | UTF-8 | Python | false | false | 21,787 | py | descriptors.py | # Copyright 2015, 2016 OpenMarket Ltd
# Copyright 2018 New Vector Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... |
eaa8aaeefca9fd9981c0210ef3d1ef8c18d9b658 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/gulf_oil_nl.py | f4b174c075e0857ec6306fad81dcdda72fbffa92 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,952 | py | gulf_oil_nl.py | import scrapy
from locations.hours import OpeningHours, sanitise_day
from locations.items import Feature
class GulfOilNLSpider(scrapy.Spider):
name = "gulf_oil_nl"
start_urls = ["http://www.gulftankstationsenviemretail.nl/wp-content/themes/gulf-stations/gulf-map/json.php"]
item_attributes = {"brand": "G... |
1eb30cfcbe30bb8612dfd6d45698a65ee0ef6821 | 3a2071c34e3c35847b2bcc2a5d3b3a74114daa0f | /tools/client-side/store-plaintext-password.py | 94424ec9085ead42426c569828891ac81095137d | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-other-permissive",
"X11",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"HPND-Markus-Kuhn",
"LicenseRef-scancode-unicode",
"Apache-2.0",
"FSFAP"
] | permissive | apache/subversion | 18a9142afe63f060ffc0814fe0c758c91ad8bd31 | dd957c4991e61bde23cc60d13449ea8b65f80c43 | refs/heads/trunk | 2023-09-04T15:22:36.755177 | 2023-08-29T19:55:03 | 2023-08-29T19:55:03 | 454,263 | 520 | 207 | Apache-2.0 | 2023-08-26T14:17:30 | 2009-12-31T09:00:10 | C | UTF-8 | Python | false | false | 6,545 | py | store-plaintext-password.py | #!/usr/bin/env python3
"""\
Script to store password in plaintext in ~/.subversion/auth/svn.simple/
Useful in case Subversion is compiled without support for writing
passwords in plaintext.
Only use this script if the security implications are understood
and it is acceptable by your organization to store passwords in... |
01ba4a3506c0f92bb91642234a338e4a7ac37c29 | d8a5893ed1c75f4da55ca904b9f61ca2690f1caf | /tests/jobs/test_cli.py | b1a4f72ae9666f4e6b9f743a67e34ce40b5a4eef | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | databricks/databricks-cli | 082718a7729c67160a316cae76d687bdcde49ccd | 9bb7f5b0e3da5d6386b0ca89bfbe68c942d8298c | refs/heads/main | 2023-08-31T10:14:17.970777 | 2023-07-05T11:09:13 | 2023-07-05T11:09:13 | 93,211,371 | 375 | 270 | NOASSERTION | 2023-08-08T19:45:28 | 2017-06-02T23:38:47 | Python | UTF-8 | Python | false | false | 15,386 | py | test_cli.py | # Databricks CLI
# Copyright 2017 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"), except
# that the use of services to which certain application programming
# interfaces (each, an "API") connect requires that the user first obtain
# a license for the use of the APIs from Databricks,... |
0cf0da61971e3de08319daa35cace959f9cd4911 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/python/ops/image_grad_d9m_test.py | eb0198e343f8c38909ee1b2713c7d4a0310dab10 | [
"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 | 15,501 | py | image_grad_d9m_test.py | # Copyright 2020-2021 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 ap... |
ec6cf99dfc514a55ef058857f7411ed4ca519971 | b2d49f04f220d46a7572bf424b6c02c7466786e8 | /course/migrations/0116_add_course_trust_flag.py | 34ffeb2329fe8adb68242510ff56ea306717607d | [
"MIT"
] | permissive | inducer/relate | 19a7b83e07de63216918d71e875eca53ee8ceb0c | 7c28f65ef99a6f05007c518763762aca4504145b | refs/heads/main | 2023-08-29T10:32:43.952986 | 2023-08-28T15:17:16 | 2023-08-28T18:40:16 | 20,311,659 | 352 | 138 | null | 2023-09-09T00:20:05 | 2014-05-29T23:39:42 | Python | UTF-8 | Python | false | false | 843 | py | 0116_add_course_trust_flag.py | # Generated by Django 3.0.14 on 2021-04-16 00:27
from django.db import migrations, models
def trust_existing_courses_for_markup(apps, schema_editor):
Course = apps.get_model("course", "Course") # noqa: N806
for course in Course.objects.all():
# Existing courses are grandfathered in.
course.t... |
776813ac7cb6e4a099cde95de8562cf75b8d41e0 | 88fe84c79e5740b4aaa068df6a70e35841a68d25 | /tests/test_2067_to_buffers_byteorder.py | d9ae9a8a8b2617fe3de720146255eb9913ba0a1a | [
"BSD-3-Clause"
] | permissive | scikit-hep/awkward | 176f56182a936270e163eab92ea18368c2bdc1be | 519bba6ed2eec4e227994d2fd1a62b2a51f15e20 | refs/heads/main | 2023-09-02T20:19:10.175088 | 2023-09-01T20:13:25 | 2023-09-01T20:13:25 | 202,413,762 | 208 | 22 | BSD-3-Clause | 2023-09-14T17:19:29 | 2019-08-14T19:32:12 | Python | UTF-8 | Python | false | false | 799 | py | test_2067_to_buffers_byteorder.py | # BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import pytest # noqa: F401
import awkward as ak
def test_byteorder():
array = ak.Array([[[1, 2, 3], [4, 5], None, "hi"]])
_, _, container_little = ak.to_buffers(array, byteorder="<")
_, _, container_big = ak.to_buf... |
da16abb05b5ad9d15981bec135b33fede5eec67a | 8f76cee606ca901d6b9c1ecdcadaa172aa861c00 | /languages/python/files_reading_zipfile.py | 0dc68c705ea8a1124395ec1573acb3a288f60af5 | [
"BSD-3-Clause"
] | permissive | uthcode/learntosolveit | b0cdc386ab17dadcefef9867aacc5ef0326b7215 | 88b1cbfea313fdca50f48573c396bed9ba38c354 | refs/heads/master | 2023-05-24T14:00:34.115585 | 2023-05-15T00:18:02 | 2023-05-15T00:18:02 | 14,986,557 | 171 | 1,714 | NOASSERTION | 2022-09-13T13:37:07 | 2013-12-06T15:44:38 | Java | UTF-8 | Python | false | false | 382 | py | files_reading_zipfile.py |
import zipfile
def read_zip(filename):
with zipfile.ZipFile(filename, 'r') as z:
for zip_filename in z.namelist():
print("File: {0}".format(zip_filename))
_bytes = z.read(zip_filename)
print("has {0} bytes".format(len(_bytes)))
def main():
filename = 'sample.zip'
... |
cb7b0f29f207bee8065f69e1ffe5151a041c5243 | 8138983105d85237accd8b0ea520128a62755927 | /ichnaea/data/tests/test_area.py | 0523cb8528e5107d9ff275d022ed7e5df9833ff5 | [
"Apache-2.0"
] | permissive | mozilla/ichnaea | 81fe2e03de067afa678509ca51fd7d4cd6f7d328 | 47d34a57a3b1b39728a2fe064e81690d2dcdbdb0 | refs/heads/main | 2023-08-31T01:41:08.575566 | 2023-08-04T19:47:54 | 2023-08-04T19:47:54 | 9,521,528 | 387 | 160 | Apache-2.0 | 2023-09-01T10:32:26 | 2013-04-18T12:51:09 | Python | UTF-8 | Python | false | false | 8,074 | py | test_area.py | from datetime import timedelta
from ichnaea.data.tasks import update_cellarea
from ichnaea.models import area_id, encode_cellarea, CellArea, Radio
from ichnaea.tests.factories import CellAreaFactory, CellShardFactory
from ichnaea import util
class TestArea(object):
area_model = CellArea
area_factory = CellA... |
01b38689894ff91cb529a3626b4ad7b3850b12cd | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/st/ops/cpu/test_matrix_diag_part_v3_op.py | bf8e91163713d472142e19c6e7705bb93f33f74d | [
"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 | 8,995 | py | test_matrix_diag_part_v3_op.py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
4530e501baae4bb0e5befc7809451034758d92c6 | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/utils/resources/common_loot_action_utils.py | 8c5f573e41e8f1126c9c339a08709b9e2f62e9ce | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 4,906 | py | common_loot_action_utils.py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Union, Tuple
from event_testing.resolve... |
8b62c967d4a4cabcf9fa202ba997c9e25edc13c6 | 15427967926d7ce656c4857564df59ffb0c7d8a6 | /PyEMD/tests/test_bemd.py | 96f6989681261fda78fd4855195c8edc52a1d57a | [
"Apache-2.0"
] | permissive | laszukdawid/PyEMD | 7e8d83b0ad56fd02380acbad2663eafc28419efe | 7361a883e21bf92a9a62abfeaceffc38e91955b9 | refs/heads/master | 2023-08-17T03:24:30.033833 | 2023-05-23T21:48:42 | 2023-05-23T21:48:42 | 65,324,353 | 779 | 232 | Apache-2.0 | 2023-07-28T20:04:23 | 2016-08-09T20:02:34 | Python | UTF-8 | Python | false | false | 3,902 | py | test_bemd.py | #!/usr/bin/python
# Coding: UTF-8
import unittest
import numpy as np
try:
from PyEMD.BEMD import BEMD
except (ImportError, ModuleNotFoundError):
# Not supported until supported.
pass
@unittest.skip("Not supported until supported")
class BEMDTest(unittest.TestCase):
def setUp(self) -> ... |
7ae485ab339f0c00f48c8f3f72050709fc6352b8 | 1ccc111bcdc11bf10309d0ec6df731b6105b6d95 | /localflavor/lv/forms.py | aeefa9d651033efbfd0023d266d4d601b4e801b2 | [
"BSD-3-Clause"
] | permissive | django/django-localflavor | 1d7b2d84a85302bf2c0a04b30ece69705c56dea9 | c539612758ded5fcb3fbb5cb5ff20f1b0de96fcc | refs/heads/master | 2023-09-03T03:15:09.070463 | 2023-04-24T09:13:53 | 2023-04-24T09:13:53 | 10,264,130 | 703 | 274 | BSD-3-Clause | 2023-07-28T04:48:02 | 2013-05-24T10:20:36 | Python | UTF-8 | Python | false | false | 2,513 | py | forms.py | import re
from datetime import date
from django.forms import ValidationError
from django.forms.fields import CharField, Select
from django.utils.translation import gettext_lazy as _
from .lv_choices import MUNICIPALITY_CHOICES
zipcode = re.compile(r'^(LV\s?-\s?)?(?P<code>[1-5]\d{3})$', re.IGNORECASE)
idcode = re.com... |
54d6d17737c021ee81ff0ba9bc3d2630d462bc5f | 675ecac2016ba9f8db611f6688a46ac4d2095447 | /Interview Questions solutions/minimum window substring/index.py | daca7a1ca64a54fb3d524f27b62bb26e758e34b6 | [] | no_license | BitPunchZ/Leetcode-in-python-50-Algorithms-Coding-Interview-Questions | 87a9619ba011aa8c30fe33e5e94037fea3144d1a | 86a0ceefa9c8416c17010fe90eb372daf82256db | refs/heads/master | 2023-08-17T05:37:59.467046 | 2023-08-09T08:59:01 | 2023-08-09T08:59:01 | 247,604,188 | 144 | 125 | null | 2021-04-19T03:04:00 | 2020-03-16T03:42:10 | Python | UTF-8 | Python | false | false | 1,930 | py | index.py | class Solution:
def minWindow(self, s: str, t: str) -> str:
len1 = len(s)
len2 = len(t)
if(len1 < len2):
return ""
hashPat = {}
hashStr = {}
for i in range(0, len2):
if(hashPat.get(t[i]) is None):
hashPat[t[i]] = 0
... |
dfe5fd2ecae10f3cecbee31d76439a442fd833b5 | 35753d90eb3a06568d036e480ea37f0b56b42ef5 | /test/unit/test_assistant_v1.py | 86aa0933f14b402a7e3bf51368221aff63a275e9 | [
"Apache-2.0"
] | permissive | watson-developer-cloud/python-sdk | 452b141e41e66e4338b0d6a957afa9278a5f53cd | 609e75df66d65240eec6b2a01dfebdacedec76d7 | refs/heads/master | 2023-08-17T07:10:59.682274 | 2023-08-07T17:19:14 | 2023-08-09T19:38:34 | 42,750,248 | 1,638 | 1,063 | Apache-2.0 | 2023-08-07T17:21:36 | 2015-09-18T22:39:00 | Python | UTF-8 | Python | false | false | 687,678 | py | test_assistant_v1.py | # -*- coding: utf-8 -*-
# (C) Copyright IBM Corp. 2019, 2023.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... |
228d7214bd9f9cb6befdef2006699be2090b0bc3 | 3accb5baa49f4b0a24d9f7b3b9df99c269894725 | /cider/_tty.py | a96b88708b760541140c429b5a1f4767780dca0a | [
"MIT"
] | permissive | msanders/cider | b4ea4e578b2d2918f5a6b663a4b3d6d04206d6d3 | cea89adfcbd64e10bbba50c3cf32f6edd221db7e | refs/heads/master | 2023-08-03T22:53:30.572850 | 2023-08-01T01:43:56 | 2023-08-01T01:43:56 | 24,318,387 | 392 | 35 | MIT | 2019-07-07T15:42:36 | 2014-09-22T07:17:53 | Python | UTF-8 | Python | false | false | 2,015 | py | _tty.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
import re
import sys
CLEAR = 0
RED = 31
GREEN = 32
YELLOW = 33
BLUE = 34
MAGENTA = 35
WHITE = 39
_PREFIX_RE = re.compile(r"[.:!?>]$")
def error(msg, prefix=None):
if prefix is None:
prefix = "Whoops!"
delimeter = "" if _P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.