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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4a2676f4a768fd3892fd3b055e4e6c17d730790 | e42cf94d74deff0422df545014092c080d34bf7b | /zillion/model.py | 857a3099619c6ef1fa056b6a0e72a795c3bd5db2 | [
"MIT"
] | permissive | totalhack/zillion | 13e9af40caab2922ecf358833d28af74ae088f02 | 0fd52dae55acf002083e31b7cf656c698e3a5a60 | refs/heads/master | 2023-09-01T13:01:45.357604 | 2023-08-28T13:31:26 | 2023-08-28T13:31:26 | 175,296,188 | 113 | 7 | NOASSERTION | 2022-11-22T16:31:48 | 2019-03-12T21:05:24 | Python | UTF-8 | Python | false | false | 1,718 | py | model.py | nlp_installed = False
import sqlalchemy as sa
from zillion.core import zillion_config, nlp_installed
zillion_engine = sa.create_engine(zillion_config["DB_URL"], pool_pre_ping=True)
zillion_metadata = sa.MetaData()
zillion_metadata.bind = zillion_engine
Warehouses = sa.Table(
"warehouses",
zillion_metadata,
... |
0848ca9cc0470f47118071afcaf31aad2a5cd202 | c140ad38b1463024e289ceb0d5d6d44a45c91724 | /test/test_Stage.py | 172aae72c35b5a39c124f86e53955127fff794ef | [
"Apache-2.0"
] | permissive | NVIDIA/hpc-container-maker | 3a333526decbd18352ef8d1fb3bec0033be221e8 | 60fd2a51c171258a6b3f93c2523101cb7018ba1b | refs/heads/master | 2023-08-21T13:32:27.132476 | 2023-06-12T21:12:40 | 2023-06-12T21:12:40 | 126,385,168 | 419 | 88 | Apache-2.0 | 2023-09-11T18:33:26 | 2018-03-22T19:26:41 | Python | UTF-8 | Python | false | false | 5,515 | py | test_Stage.py | # Copyright (c) 2018, 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... |
90783a17d74499edbd5c4efe40eda54361a02ee1 | 64ab5b65afdf8d950c4b56ad2259133b95fc2fec | /tests/zeus/providers/travis/test_webhook.py | ccc0a2afcbf8bd79a131b36279cb2a21bb7fdc86 | [
"Apache-2.0"
] | permissive | getsentry/zeus | 3e88895443b23278fdb4c25121422ee214630512 | 6d4a490c19ebe406b551641a022ca08f26c21fcb | refs/heads/master | 2023-09-01T14:20:11.396306 | 2021-04-30T17:08:33 | 2021-04-30T17:08:33 | 96,131,433 | 222 | 27 | Apache-2.0 | 2022-06-01T03:17:16 | 2017-07-03T16:39:35 | Python | UTF-8 | Python | false | false | 2,385 | py | test_webhook.py | import json
from base64 import b64encode
CONFIG_RESPONSE = b"""
{
"config": {
"host": "travis-ci.org",
"shorten_host": "trvs.io",
"assets": {
"host": "travis-ci.org"
},
"pusher": {
"key": "5df8ac576dcccf4fd076"
},
"github": {
... |
ff856cc54ffad18dfe9f71ed35824e344f0af671 | b8bbdfc593b6d816e67a344f720f90ec05236778 | /tests/dag_processing/test_processor.py | 5d3a4cbd30a34cea693bfd09e777f3dc814f8803 | [
"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 | 44,582 | py | test_processor.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... |
b8f6b3a07c59dd714528e5474d00ea2baf2a8204 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/collective/fleet/test_fleet_checkpoint.py | 4b86e6d57fd7a47e074447353ec3141f5f384a86 | [
"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 | 4,435 | py | test_fleet_checkpoint.py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
7f8dc30e3e42f2213c43b5313468c3b45a2a2116 | f8dee139258b7d971bd1cfa16bd16e356537bbac | /Contents/Libraries/Shared/subliminal_patch/providers/argenteam.py | 5fe3d28cc0b303dcc27e4bfb5216783ef0438ea0 | [
"MIT"
] | permissive | pannal/Sub-Zero.bundle | 79673016ae68d1f2e9886fd30b8763b73a8f6cf8 | 4ced7d8c8f9f5fb47d12410f87fa33d782e9f0f4 | refs/heads/master | 2023-07-27T23:04:32.925845 | 2023-07-09T13:07:38 | 2023-07-09T13:08:04 | 21,959,699 | 1,820 | 178 | NOASSERTION | 2022-11-28T03:23:13 | 2014-07-17T22:19:13 | Python | UTF-8 | Python | false | false | 10,895 | py | argenteam.py | # coding=utf-8
import logging
import os
import io
import time
from zipfile import ZipFile
from guessit import guessit
from requests import Session
from subliminal import Episode, Movie
from subliminal.score import get_equivalent_release_groups
from subliminal.utils import sanitize_release_group, sanitize
from sublimin... |
10e5dce38b02542dd541ad7d4f4e1f6994010992 | 820b6af9fd43b270749224bb278e5f714f655ac9 | /Rendering/OpenGL2/Testing/Python/TestUserShader2.py | a40bd504432415b95b6cd2abbc10c6f6b3f4a0d4 | [
"BSD-3-Clause"
] | permissive | Kitware/VTK | 49dee7d4f83401efce8826f1759cd5d9caa281d1 | dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271 | refs/heads/master | 2023-09-01T10:21:57.496189 | 2023-09-01T08:20:15 | 2023-09-01T08:21:05 | 631,615 | 2,253 | 1,243 | NOASSERTION | 2023-09-14T07:53:03 | 2010-04-27T15:12:58 | C++ | UTF-8 | Python | false | false | 3,034 | py | TestUserShader2.py | #!/usr/bin/env python
import sys
from vtkmodules.vtkCommonCore import (
VTK_OBJECT,
vtkCommand,
)
from vtkmodules.vtkFiltersCore import vtkTriangleMeshPointNormals
from vtkmodules.vtkIOPLY import vtkPLYReader
from vtkmodules.vtkRenderingCore import (
vtkActor,
vtkRenderWindow,
vtkRenderWindowInterac... |
d0b7c64323ac25a82bf4ac0d58c87f0f77086d5d | f3dfbfb9c128ac5bc7c0098f7eff91a2119d6183 | /tests/sequence/test_gff.py | 5c6ee77b43ad822488a0de112a5cb17b910d318a | [
"BSD-3-Clause"
] | permissive | biotite-dev/biotite | 2c2afafc6c4dad51af023c50c156c8f19a20154d | 67d801683bfe79087a8e67e82de7333e79c827bb | refs/heads/master | 2023-09-06T00:03:24.761607 | 2023-09-03T14:28:27 | 2023-09-03T14:28:27 | 98,795,444 | 463 | 80 | BSD-3-Clause | 2023-09-09T16:47:12 | 2017-07-30T12:18:33 | Python | UTF-8 | Python | false | false | 6,481 | py | test_gff.py | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
from tempfile import TemporaryFile
from os.path import join
import biotite.sequence as seq
import biotite.sequence.io.gff as gff
import biotite.sequence.io.genbank ... |
e5bdb1d3f47446f6ce98e98508bba2f691a6cc46 | 88d555a009f9075e59177fac70036892f397b439 | /bin/save_model.py | 5c02af7c0a257fe658113f8eca93aa7a348d7a50 | [
"Apache-2.0"
] | permissive | calico/basenji | f9f406971d355dda81821dcf274696a7d27e332d | 615b9eec8a591783b16d959029ddad08edae853d | refs/heads/master | 2023-09-04T11:14:15.620786 | 2023-07-27T00:05:13 | 2023-07-27T00:05:13 | 96,346,574 | 326 | 143 | Apache-2.0 | 2023-08-16T00:36:32 | 2017-07-05T17:54:18 | Python | UTF-8 | Python | false | false | 2,206 | py | save_model.py | #!/usr/bin/env python
# Copyright 2020 Calico 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 ... |
86eb6f54be39b5c72be192882d2affe850049aad | d5a3aa96b30a5a6a355b4e004e494a6ef41a339c | /d3/constitutionaljews.py | 47137d55c348f52acbb9c9f892602fb641f73c55 | [
"MIT"
] | permissive | Udzu/pudzu | 4c1c134503f62fd1cc08a56e257b864033b38561 | df5019802bc32064870f31cda8397ad14868cda0 | refs/heads/master | 2023-07-10T06:16:35.342990 | 2023-07-04T06:28:00 | 2023-07-04T06:28:00 | 97,936,607 | 120 | 28 | MIT | 2021-02-21T16:15:31 | 2017-07-21T10:34:16 | Roff | UTF-8 | Python | false | false | 1,576 | py | constitutionaljews.py | from pudzu.charts import *
from generate import *
FONT = sans
PALETTE = {
"j": "#2166ac",
"f": "#92c5de",
"i": "#9970ab",
}
DESCRIPTIONS = {
"j": "explicitly recognises Jewish community",
"i": """indirectly mentions Jews
- Russia: "Jewish Autonomous Oblast"
- South Africa: "Hebrew for religious purposes"
- Syria: "Z... |
a22587b53aa1dd370bf91bb003976b6dfe1a26ac | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/set_covering.py | 88562d3ad9b1f030ca6f7378e18cb2d384343089 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 1,075 | py | set_covering.py | """
Set covering in cpmpy.
Placing of firestations, from Winston 'Operations Research', page 486.
This cpmpy model was written by Hakan Kjellerstrand (hakank@gmail.com)
See also my cpmpy page: http://hakank.org/cpmpy/
"""
from cpmpy import *
import cpmpy.solvers
import numpy as np
from cpmpy_hakank import *
d... |
90b42554cf39999061ef7913899c6d714a98cf80 | 1c024dfbca35f4c829d4b47bdfe900d1b1a2303b | /build/fuses/build.py | f5c9b89417a60a1e4f0e48f36798df41b0c37f20 | [
"MIT"
] | permissive | electron/electron | 1ba6e31cf40f876044bff644ec49f8ec4923ca6a | 0b0707145b157343c42266d2586ed9413a1d54f5 | refs/heads/main | 2023-09-01T04:28:11.016383 | 2023-08-31T14:36:43 | 2023-08-31T14:36:43 | 9,384,267 | 99,768 | 18,388 | MIT | 2023-09-14T19:50:49 | 2013-04-12T01:47:36 | C++ | UTF-8 | Python | false | false | 2,356 | py | build.py | #!/usr/bin/env python3
from collections import OrderedDict
import json
import os
import sys
dir_path = os.path.dirname(os.path.realpath(__file__))
SENTINEL = "dL7pKGdnNz796PbbjQWNKmHXBZaB9tsX"
TEMPLATE_H = """
#ifndef ELECTRON_FUSES_H_
#define ELECTRON_FUSES_H_
#if defined(WIN32)
#define FUSE_EXPORT __declspec(dll... |
9744069c9ab0415f92832b0391ec620221284f1a | 6b43d43b8c0dbdb94fbd9146a24c91997bd3897b | /steam/protobufs/offline_ticket_pb2.py | 4988f22d9ee567937460de15e44a580e8d3b0b89 | [
"MIT"
] | permissive | ValvePython/steam | 9690390ec174e868635d0de9d4868d5af1f57ab7 | 26166e047b66a7be10bdf3c90e2e14de9283ab5a | refs/heads/master | 2023-07-09T03:35:42.455132 | 2023-05-05T23:19:39 | 2023-05-05T23:25:11 | 38,554,391 | 1,001 | 194 | MIT | 2023-06-13T22:51:03 | 2015-07-05T02:41:30 | Python | UTF-8 | Python | false | true | 4,208 | py | offline_ticket_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: offline_ticket.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.... |
000f5c643295fe555d2812df2a9f0fa595d99283 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-core/Tools/comparebench.py | 2db24bf49ec794d91839fcc1b46d2d7a0fbad8b0 | [
"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 | 1,446 | py | comparebench.py | #!/usr/bin/env python3
import pathlib
def readinfo(path):
result = {}
bench = result["bench"] = {}
for line in path.open():
if line.startswith("@"):
item = line.strip()[1:].split(None, 1)
result[item[0]] = item[1]
else:
if not line.strip():
... |
9dae09ddcfe3a12a64e2b203495687ec3e9fd2db | 52e1e441e7dddca4edb73a56ca67be8c1a173a0f | /zhihurss/util/config.py | cf40a8bfd66298d70cef5d4482bd020dc6d85c46 | [] | no_license | SimplyY/zhihu-rss | cd05ea6101108d2ee40f1fbdfd17fba8850e472e | fe338f3d8421be2a9c32eada8ac988ed90b6acc9 | refs/heads/master | 2021-01-15T07:54:14.306023 | 2019-08-05T02:02:54 | 2019-08-05T02:02:54 | 38,658,837 | 153 | 43 | null | 2015-11-02T12:30:58 | 2015-07-07T02:27:34 | Python | UTF-8 | Python | false | false | 1,311 | py | config.py | #!/usr/bin/env python
__author__ = 'yuwei'
from .fs import ensure_dir
from .const import CONFIG_PATH, COOKIES_PATH
from ..model.noticer import Noticer
from ..model.feeds_list import FeedsList
from zhihu import ZhihuClient
import json
def set_config(my_app):
ensure_dir(CONFIG_PATH)
try:
with open(C... |
7288f00d2e47b0ee4c50f4a024e09ea8ff477cf7 | 8d44e796eaf0c8e11bbc2a27ef093e97a25b6f4a | /test/nodes/test_join_answers.py | 67567ceabdfb0613c57c61b09980384287d7a5d4 | [
"Apache-2.0"
] | permissive | deepset-ai/haystack | caa5287051d1771395ea624b58097000825bad81 | 5f1256ac7e5734c2ea481e72cb7e02c34baf8c43 | refs/heads/main | 2023-09-01T02:41:23.490526 | 2023-08-31T15:33:12 | 2023-08-31T15:33:12 | 221,654,678 | 10,599 | 1,558 | Apache-2.0 | 2023-09-14T17:09:42 | 2019-11-14T09:05:28 | Python | UTF-8 | Python | false | false | 1,103 | py | test_join_answers.py | import pytest
from haystack.schema import Answer
from haystack.nodes import JoinAnswers
@pytest.mark.unit
@pytest.mark.parametrize("join_mode", ["concatenate", "merge"])
def test_joinanswers(join_mode):
inputs = [{"answers": [Answer(answer="answer 1", score=0.7)]}, {"answers": [Answer(answer="answer 2", score=0.... |
14ead28134ae98361f6109cf6c5752b702632470 | 308c5e295f95f71a01282b75bee0769dc10e906b | /Lung Segmentation/Prepare_data.py | 9ad3e9eaf21a7b1c6a4fa0979809a53347f0c563 | [] | no_license | rezazad68/BCDU-Net | fe9164db2495820201d5fadef16a6ed34efc2aac | 993543d16dd37bd0f910a150e03c89297d8a9c5d | refs/heads/master | 2023-08-15T23:14:41.029932 | 2022-02-26T07:37:18 | 2022-02-26T07:37:18 | 193,223,873 | 863 | 256 | null | 2023-01-30T15:15:22 | 2019-06-22T10:59:00 | Python | UTF-8 | Python | false | false | 2,255 | py | Prepare_data.py | from __future__ import division
import nibabel as nib
import numpy as np
import Reza_functions as RF
import nibabel as nib
import glob
import os
# Define Train data and mask
Data_train = []
Mask_train = []
Maska_train = []
FOV_train = []
idx_count =1
Tr_add = '3d_images'
Tr_list = glob.glob(Tr_add+'/*.gz')
... |
d03a04754e54034459760bc30efe729f0969048c | 450916eee7580beb928ed8f387db4f0a8c1aa508 | /examples/syllabus/stellar_minimal.py | b658769b8a8ffcaffe8712bae9443ecb5f18df35 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | amusecode/amuse | 42095545893f5a86ea79c2a52ce54d3ce8eb204f | b57c1e2fda1457d5025307be105c2aa59b19b574 | refs/heads/main | 2023-08-31T04:50:48.880044 | 2023-08-30T12:00:20 | 2023-08-30T12:00:20 | 18,516,331 | 158 | 118 | Apache-2.0 | 2023-08-30T12:00:22 | 2014-04-07T12:35:07 | AMPL | UTF-8 | Python | false | false | 1,519 | py | stellar_minimal.py | """
Minimalistic routine for running a stellar evolution code
"""
from amuse.lab import *
def main(M, z, model_time):
# stellar = MESA()
stellar = SSE()
stellar.parameters.metallicity = z
stellar.particles.add_particle(Particle(mass=M))
stellar.commit_particles()
initial_luminosity = ste... |
8f3044d8d7b583a65174adb9c1013d8130e8a848 | 1b364500b756c5096d94358d3ad745e248c20dc4 | /wradlib/comp.py | 7c47b20d78f056eaf36ab4504c5ba35825856705 | [
"MIT"
] | permissive | wradlib/wradlib | fdf3b3670aa8b2ea6ddf4bb6083321992eb361a9 | 17f876c2c6257171888d6e04f5cbb86f0ac46f90 | refs/heads/main | 2023-08-26T09:07:45.866267 | 2023-05-31T06:12:50 | 2023-05-31T06:12:50 | 52,089,638 | 228 | 89 | MIT | 2023-09-11T23:29:48 | 2016-02-19T13:32:22 | Python | UTF-8 | Python | false | false | 6,063 | py | comp.py | #!/usr/bin/env python
# Copyright (c) 2011-2020, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
"""
Composition
^^^^^^^^^^^
Combine data from different radar locations on one common set of locations
.. autosummary::
:nosignatures:
:toctree: generated/
{}
"""
__all__... |
82ede46c28550fee8485f34c4acb937edb758263 | ca593f5a272ce0478ba6f52d2670cb9dd8564b00 | /mycroft/skills/fallback_skill.py | a616accbb83e4ead97175f6b53d805d3067869a8 | [
"Apache-2.0"
] | permissive | MycroftAI/mycroft-core | d41ce0fccfe4c29d8d802dcc6bcf583dc356d9ce | 8051e4e1f89d5ed1f63f06db5d3570371ae92e5d | refs/heads/master | 2023-08-23T17:45:10.569985 | 2021-12-10T04:51:59 | 2021-12-10T04:51:59 | 59,299,524 | 6,838 | 1,719 | Apache-2.0 | 2023-08-15T10:25:32 | 2016-05-20T14:11:07 | Python | UTF-8 | Python | false | false | 7,989 | py | fallback_skill.py | # Copyright 2019 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
dd7bbebc86de325dcb2c35407ed8b48fda8cb7b6 | 8d281aaa134e3505397ec5b07306288964e6df35 | /samples/SampleTorchSegmentation.py | 2e2a236b93ffdf1b5ce00b31c440a99781124374 | [
"Apache-2.0"
] | permissive | NVIDIA/VideoProcessingFramework | eeb5b53cd214f1f37dad8f5a0e56598c45b17be9 | 82b51e7c29cb1c8259721170f39e95f3e95b4ad4 | refs/heads/master | 2023-08-31T06:13:07.858428 | 2023-08-15T10:19:19 | 2023-08-15T10:19:19 | 227,658,982 | 1,176 | 230 | Apache-2.0 | 2023-08-27T04:45:36 | 2019-12-12T17:17:45 | C++ | UTF-8 | Python | false | false | 8,070 | py | SampleTorchSegmentation.py | #
# Copyright 2022 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 in w... |
581f7fda1189d0eb4b244b03ad7da74beacb3bf5 | 8d402df39c18eba7e1c86c762f205c944357c5df | /www/tests/modtest/__init__.py | 3df49c14d2e843712cab8dda5a2bc5338b5cc67c | [
"BSD-3-Clause"
] | permissive | brython-dev/brython | 87cc023e25550dec9ce459ba68774189f33712b6 | b33958bff0e8c7a280babc30232dc389a2500a7a | refs/heads/master | 2023-09-04T04:49:29.156209 | 2023-09-01T06:36:08 | 2023-09-01T06:36:08 | 24,046,239 | 6,569 | 625 | BSD-3-Clause | 2023-07-05T06:13:32 | 2014-09-15T06:58:21 | Python | UTF-8 | Python | false | false | 73 | py | __init__.py | from . import hello
from . import bye
print('main modtest was imported') |
ab055fd3e3a0d05e823c1026016ba05ceceb3408 | 0eb78414767c4dd1d49127f44b1204abe08115a6 | /inst2vec/inst2vec_embedding.py | 155d697450bda2329f9523ef44a3aa7c0afaad20 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spcl/ncc | 9b688bb80d247d6b718fda2bec3f07e2257a1459 | 45c3619ba193585579c7feedbe046bac3ff9e7b5 | refs/heads/master | 2023-08-29T00:35:57.669037 | 2021-08-12T22:21:37 | 2021-08-12T22:21:37 | 138,141,023 | 201 | 60 | BSD-3-Clause | 2023-08-14T22:15:12 | 2018-06-21T08:20:41 | Python | UTF-8 | Python | false | false | 28,250 | py | inst2vec_embedding.py | # NCC: Neural Code Comprehension
# https://github.com/spcl/ncc
# Copyright 2018 ETH Zurich
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
# 1. Redistributions of source code must retain the above... |
d5512c83d6ca2271294bdd97732694ca2c51a933 | e00cf9d99e5ec3d5eb6dc991989068a1a9dc5d23 | /daemon/core/scripts/player.py | 07728939cf540f1b51d6ade7b1ab3d9bd1c4df75 | [
"BSD-2-Clause"
] | permissive | coreemu/core | dee8e2b34aa596654b373733ea0a3e29c69b79d9 | 20071eed2e73a2287aa385698dd604f4933ae7ff | refs/heads/master | 2023-08-10T13:59:51.420075 | 2023-08-01T17:18:11 | 2023-08-01T17:18:11 | 39,257,883 | 606 | 201 | BSD-2-Clause | 2023-08-17T01:41:48 | 2015-07-17T14:23:03 | Python | UTF-8 | Python | false | false | 1,212 | py | player.py | import argparse
import logging
import sys
from pathlib import Path
from core.player import CorePlayer
logger = logging.getLogger(__name__)
def path_type(value: str) -> Path:
file_path = Path(value)
if not file_path.is_file():
raise argparse.ArgumentTypeError(f"file does not exist: {value}")
retu... |
e62e541f689f6fe8c222b572b1a19f0ebd235d10 | e22fd36933c9114a9df1694e7a6274bf059de2a6 | /selfdrive/controls/lib/tests/test_alertmanager.py | dbd42858a0797742bfc6c30a3b6cd3e95501554d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | commaai/openpilot | 66dfb7f31290bc8f58c9ead95d56697a52b45afb | a0b49d54222c52ff0112c402bc0e0d9262e77a66 | refs/heads/master | 2023-09-05T21:34:14.076796 | 2023-09-05T21:15:18 | 2023-09-05T21:15:18 | 74,627,617 | 46,071 | 9,878 | MIT | 2023-09-14T21:51:23 | 2016-11-24T01:33:30 | Python | UTF-8 | Python | false | false | 1,423 | py | test_alertmanager.py | #!/usr/bin/env python3
import random
import unittest
from openpilot.selfdrive.controls.lib.events import Alert, EVENTS
from openpilot.selfdrive.controls.lib.alertmanager import AlertManager
class TestAlertManager(unittest.TestCase):
def test_duration(self):
"""
Enforce that an alert lasts for max(alert ... |
fcc4619e3cee862d71c8e34ee87f968eeeae70db | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/cue/goals/fix.py | 20d35139e8bbe203a21b1115fe2f4b57505e94e9 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 1,215 | py | fix.py | # Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from pants.backend.cue.rules import _run_cue
from pants.backend.cue.subsystem import Cue
from pants.backend.cue.target_types import CueFieldSet
from pant... |
1f69a9a1e7bd398a65fb9e42bf051b83926c9a60 | 2ac03b8c24df220ea32ea525e1d65aeb294cd1a4 | /custom_components/waste_collection_schedule/waste_collection_schedule/source/croydon_gov_uk.py | fdcabb75b35a7b7667df6a90048360cc9c202fe3 | [
"MIT"
] | permissive | mampfes/hacs_waste_collection_schedule | a7b98319a7483dedc8cf78b724f93932934c1702 | 1dc9476efef9963a141b9ac987e2708224b9eaaf | refs/heads/master | 2023-08-16T21:14:46.088962 | 2023-08-16T10:05:24 | 2023-08-16T10:05:24 | 254,347,436 | 495 | 428 | MIT | 2023-09-12T18:59:07 | 2020-04-09T11:02:16 | Python | UTF-8 | Python | false | false | 8,467 | py | croydon_gov_uk.py | # Credit where it's due:
# This is predominantly a refactoring of the Croydon Council script from the UKBinCollectionData repo
# https://github.com/robbrad/UKBinCollectionData
import json
import re
import requests
from bs4 import BeautifulSoup
from datetime import datetime
from waste_collection_schedule import Collec... |
dc0151ad829eb199571ed7cae0f1482b17a791a8 | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level04.징검다리/6047198844.py | 15b036780b82cbec21421accbbb72c3a0820c357 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 1,591 | py | 6047198844.py | def solution(distance, rocks, n):
answer = 0
rocks.sort()
# 정답의 범위
begin = 0
end = distance
# print(rocks)
while begin <= end:
# 우리가 목표하는 거리
mid = (begin + end) // 2
# 현재 남아있는 바위의 위치
stack = [0]
for rock in rocks:
# 현재 거리와 stack위의 roc... |
98dad1e8c7ef69677381bd055d79936c7af9c6ce | 1822440a663916fc4b38ba09edb91f7b0d313c6f | /tests/test_decorations.py | 5e7b04998187fe48557a93e4d09c5009672201d3 | [
"BSD-2-Clause"
] | permissive | herbstluftwm/herbstluftwm | 09fb4318ed1a00bf96335a93cb7d3ebba58b3f2d | d6be49251ccaf0fed6edc30ee80017d40b5eeccf | refs/heads/master | 2023-08-11T00:40:40.568941 | 2023-06-06T09:51:17 | 2023-06-06T09:51:17 | 24,884,178 | 1,167 | 131 | NOASSERTION | 2023-08-30T13:00:19 | 2014-10-07T09:27:20 | C++ | UTF-8 | Python | false | false | 21,560 | py | test_decorations.py | from herbstluftwm.types import Point
from conftest import RawImage
from conftest import HlwmBridge
import itertools
import pytest
font_pool = [
'-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*',
'Dejavu Sans:pixelsize=14:bold'
]
@pytest.mark.parametrize("xvfb", [{'xrender': v} for v in [True, False]], indirect=True)
... |
76c5339a4e98607ecb7a846e580809fb704ec45b | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/nuki/const.py | 680454c3edc7e4c494559d0fdcbba33fe99e7e7f | [
"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 | 400 | py | const.py | """Constants for Nuki."""
DOMAIN = "nuki"
# Attributes
ATTR_BATTERY_CRITICAL = "battery_critical"
ATTR_NUKI_ID = "nuki_id"
ATTR_ENABLE = "enable"
ATTR_UNLATCH = "unlatch"
# Data
DATA_BRIDGE = "nuki_bridge_data"
DATA_LOCKS = "nuki_locks_data"
DATA_OPENERS = "nuki_openers_data"
DATA_COORDINATOR = "nuki_coordinator"
# ... |
29d3095e2dab22bfad7ebf2397fda24893b5fa5c | 3f5f778f973e229037007b1eb00e5171cbe2560e | /abcpy/continuousmodels.py | baa9e98a9b7733848d69a13a8db78e0e2ff54540 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | permissive | eth-cscs/abcpy | 9f568b66f66ebc0b835c837dac481c9c2ef199fe | caf0fd899424da69c0ef0bcd499696c5a077cdb1 | refs/heads/master | 2023-03-16T12:34:34.650734 | 2023-03-13T16:07:26 | 2023-03-13T16:07:26 | 79,544,398 | 107 | 43 | BSD-3-Clause-Clear | 2023-08-16T11:04:51 | 2017-01-20T09:15:25 | Python | UTF-8 | Python | false | false | 28,289 | py | continuousmodels.py | import numpy as np
from scipy.special import gamma
from scipy.stats import multivariate_normal, norm, lognorm, expon
from abcpy.probabilisticmodels import ProbabilisticModel, Continuous, InputConnector
class Uniform(ProbabilisticModel, Continuous):
def __init__(self, parameters, name='Uniform'):
"""
... |
6b3b88de43e4375aa0e13ff135b44cbe70cd1fff | db85e6659af346ceaffa328c3b790fa77c513d6f | /arxiv_vanity/papers/migrations/0017_auto_20180619_1657.py | 01d79e38fdece857707c6377bdbf5724cdc47cc2 | [
"Apache-2.0"
] | permissive | arxiv-vanity/arxiv-vanity | d51ca32eeed22853c07eb2c81b5d5ac4649241fc | f7eb2f19ee2c3120a3084cfce2ba96fb766fbf8e | refs/heads/master | 2023-07-31T14:39:04.566729 | 2022-01-18T22:55:31 | 2022-01-18T22:55:42 | 100,118,170 | 1,567 | 105 | Apache-2.0 | 2023-02-13T05:30:09 | 2017-08-12T14:41:41 | Python | UTF-8 | Python | false | false | 499 | py | 0017_auto_20180619_1657.py | # Generated by Django 2.0.6 on 2018-06-19 16:57
from django.db import migrations
def generate_arxiv_ids(apps, schema_editor):
SourceFile = apps.get_model("papers", "SourceFile")
for sf in SourceFile.objects.iterator():
if not sf.arxiv_id:
sf.arxiv_id = sf.file.name.rsplit(".", 1)[0]
... |
89268c705d2ca9800e0c1d64350b3fdfb5754438 | 532ad1aedff8528b2e8af4e4e752f32d58b92b0d | /doc/compile/modes_solution_1.py | 1bcf05da45a681f274168c5dae8d29126daaec1b | [
"BSD-3-Clause",
"MIT"
] | permissive | aesara-devs/aesara | ebaa204159d4ddb94ede10580c5b8e39d114713f | b5a3cf45f0f6762bb4bb0e2c657f7d3822c74595 | refs/heads/main | 2023-08-09T10:56:56.528283 | 2023-07-15T06:15:49 | 2023-07-15T13:28:29 | 221,231,590 | 861 | 142 | NOASSERTION | 2023-09-05T03:16:16 | 2019-11-12T14:02:08 | Python | UTF-8 | Python | false | false | 1,881 | py | modes_solution_1.py | #!/usr/bin/env python
# Aesara tutorial
# Solution to Exercise in section 'Configuration Settings and Compiling Modes'
import numpy as np
import aesara
import aesara.tensor as at
aesara.config.floatX = "float32"
rng = np.random.default_rng(428)
N = 400
feats = 784
D = (
rng.standard_normal((N, feats)).astype(a... |
59ed74abf1f3e36d7f27af291db5dc04e6d7c37b | 7d90019c8f480a4dd65202a901b37dae1c1f6064 | /vctk_preprocess/prepare_vctk_labels.py | c715f31413b29cd89cb81ca91b11a15aea7e9a02 | [
"MIT"
] | permissive | r9y9/deepvoice3_pytorch | d3e85f54d46e809f6fffc0d619e0b4a9d1b13488 | f90255c96177c344cd18b5a52651b420a4d8062d | refs/heads/master | 2023-08-23T08:00:32.174896 | 2023-06-29T18:32:26 | 2023-06-29T18:32:26 | 108,992,863 | 1,964 | 511 | NOASSERTION | 2023-08-11T16:51:15 | 2017-10-31T12:31:44 | Python | UTF-8 | Python | false | false | 1,412 | py | prepare_vctk_labels.py | # coding: utf-8
"""
Prepare HTS alignments for VCTK.
usage: prepare_vctk_labels.py [options] <data_root> <out_dir>
options:
-h, --help Show help message.
"""
from docopt import docopt
import os
from nnmnkwii.datasets import vctk
from os.path import join, exists, splitext, basename
import sys
from gl... |
1660c01b8404107d1d542b4421cc1eb48633599c | 8eccea9f715a2a0ce602f1944ed3e812adcacb4d | /tests/api/v2/test_knowledge.py | 70ccbf4cb5498931247e26cb6a9786df50cf4a43 | [
"Apache-2.0"
] | permissive | mitre/caldera | c466cde25bb0191880984cfdf3af84efc8a7c9f4 | 3140411d4b96d8d5607b2b50476f7bf3d506de00 | refs/heads/master | 2023-08-23T02:14:23.360314 | 2023-08-21T18:55:29 | 2023-08-21T18:55:29 | 112,409,981 | 4,685 | 1,046 | Apache-2.0 | 2023-09-13T16:36:05 | 2017-11-29T01:25:10 | Python | UTF-8 | Python | false | false | 13,295 | py | test_knowledge.py | import pytest
from aiohttp import web
from app.service.app_svc import AppService
from app.service.auth_svc import AuthService, CONFIG_API_KEY_RED
from app.service.file_svc import FileSvc
from app.service.data_svc import DataService
from app.service.event_svc import EventService
from app.service.contact_svc import Cont... |
ea7f2621012da8d223f14ba46e84528c4415538c | 63ace5832d453e325681d02f6496a0999b72edcb | /bip_utils/utils/crypto/hmac.py | 1aa49275e96e9e2e87d96ff80fb30cf5acd48656 | [
"MIT"
] | permissive | ebellocchia/bip_utils | c9ec04c687f4247e57434319e36b2abab78f0b32 | d15c75ddd74e4838c396a0d036ef6faf11b06a4b | refs/heads/master | 2023-09-01T13:38:55.567370 | 2023-08-16T17:04:14 | 2023-08-16T17:04:14 | 251,130,186 | 244 | 88 | MIT | 2023-08-23T13:46:19 | 2020-03-29T20:42:48 | Python | UTF-8 | Python | false | false | 3,704 | py | hmac.py | # Copyright (c) 2022 Emanuele Bellocchia
#
# 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, merge, publish,... |
738503de84b19570780da5ba3b0a2f1ef89fcb22 | 68c060c440882c127cde9f723e001e736a3e08e6 | /setup.py | e95eb13ebb5df44b758c2aa98a2ca1b31aaf1bb4 | [
"MIT"
] | permissive | Edinburgh-Genome-Foundry/Flametree | 06074673c70c13d804e156768a1fc35d51adc383 | 7fa48ab2effd96b210c10372f9d3757ebe1162aa | refs/heads/master | 2023-07-31T22:23:33.977231 | 2022-05-04T13:24:34 | 2022-05-04T13:24:34 | 80,863,792 | 166 | 19 | NOASSERTION | 2020-09-12T19:12:28 | 2017-02-03T19:50:06 | Python | UTF-8 | Python | false | false | 529 | py | setup.py | import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
exec(open("flametree/version.py").read()) # loads __version__
setup(
name="flametree",
version=__version__,
author="Zulko",
description="Python file and zip operations made easy",
url="https://github.com/Edinb... |
dc840455d2bc44a06e1934eb7b7b5cc6d918fb13 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/ipykernel/py2/ipykernel/ipkernel.py | 6304131f9ac24f2d34159ead1c4f6d6e59cfb588 | [
"Apache-2.0",
"BSD-3-Clause"
] | 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 | 15,354 | py | ipkernel.py | """The IPython kernel implementation"""
import getpass
import sys
from IPython.core import release
from ipython_genutils.py3compat import builtin_mod, PY3, unicode_type, safe_unicode
from IPython.utils.tokenutil import token_at_cursor, line_at_cursor
from traitlets import Instance, Type, Any, List, Bool
from .comm i... |
f91b025f0934e81ffdc6c28d0a3ffba850fae349 | bbd69601912a3361d788efd03a47f9d4e3bac09e | /docs/sphinx/rest_substitutions/snippets/python/converted/wx.MemoryFSHandler.1.py | 6ad3ee1251e74b927316a773e768cbc3ef3dbf1d | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 1,357 | py | wx.MemoryFSHandler.1.py |
def OnAbout(self, event):
bcur = wx.BeginBusyCursor()
wx.FileSystem.AddHandler(wx.MemoryFSHandler)
wx.MemoryFSHandler.AddFile("logo.pcx", wx.Bitmap("logo.pcx", wx.BITMAP_TYPE_PCX))
wx.MemoryFSHandler.AddFile("about.htm",
"... |
4ac3cf0a96a614431d679339cf5a6293b3641e5a | 6633e6d880c109a6dafd8849bdc9b5845926ba87 | /tests/test_errors.py | f6810c9194432146d3cd43e92213b14745a4e22a | [
"MIT"
] | permissive | camelot-dev/camelot | 4527c41268bf177ddd2edff54d6f557ab1d7b737 | 0f96c0025108260d4e4d23d90c3fbc7db9286f00 | refs/heads/master | 2023-08-04T23:44:38.518967 | 2023-07-15T06:01:34 | 2023-07-15T06:01:34 | 194,679,925 | 2,308 | 415 | MIT | 2023-09-14T21:35:16 | 2019-07-01T13:39:33 | Python | UTF-8 | Python | false | false | 5,252 | py | test_errors.py | # -*- coding: utf-8 -*-
import os
import sys
import warnings
import pytest
import camelot
testdir = os.path.dirname(os.path.abspath(__file__))
testdir = os.path.join(testdir, "files")
filename = os.path.join(testdir, "foo.pdf")
skip_on_windows = pytest.mark.skipif(
sys.platform.startswith("win"),
reason="... |
f64a0d2c3b64205d534b96e4e71020db40e374a9 | 8da41ffa2ccb09e04f95db0f211e0ed69a42a352 | /blogs/gcp_forecasting/scalable_time_series.py | 4542af90992d2b288c080754abf042c2e3866381 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/training-data-analyst | 808af9b09a0e5f5657c4ca76cdd205f808d76d89 | 975a95032ce5b7012d1772c7f1f5cfe606eae839 | refs/heads/master | 2023-09-05T19:50:59.722334 | 2023-09-04T14:25:33 | 2023-09-04T14:25:33 | 56,459,948 | 7,311 | 5,917 | Apache-2.0 | 2023-09-13T21:45:54 | 2016-04-17T21:39:27 | Jupyter Notebook | UTF-8 | Python | false | false | 11,188 | py | scalable_time_series.py | """Queries for scalable time-series modeling."""
def create_date_range(project, dataset_name, table_name):
sql_date_range = """
WITH
# Get min and max dates so we can enumerate the range next
CTE_date_limits AS (
SELECT
CAST(MIN(sale_date) AS DATE) AS min_sale_date,
CAST(MAX(sale_date) AS DATE) AS ma... |
bf180fd0a7137fbf4be601a78708a0a013038ee6 | 7949abb6e441f4981561cf1e8ea840e94a0eeb3f | /src/RusPython.py | 05b0621871fef25d14f5af7fd72be7b72752cc97 | [
"MIT"
] | permissive | Eleirbag89/RusPython | eb909ac2c6001f7f09b9085f3a404693c178e408 | c4656708faaa7ae14054b93c57c04f668dc0e6f1 | refs/heads/master | 2021-07-05T22:05:49.376354 | 2021-05-14T13:07:04 | 2021-05-14T13:07:04 | 50,372,579 | 118 | 5 | null | 2017-11-23T07:33:23 | 2016-01-25T18:46:59 | Python | UTF-8 | Python | false | false | 1,105 | py | RusPython.py | # coding: latin-1
# -----------------------------------------------------------------------------
# calc.py
#
# A simple calculator with variables.
# -----------------------------------------------------------------------------
import ply.yacc as yacc
import ruspylex
import ruspyparser
import util
import sys
def main... |
22af59ca4d2c8882e7b3da8034490e7a8f09339a | 05fe579c12f0013ce83a106083ddb66ace5e8f47 | /tests/ut/datavisual/data_transform/test_summary_parser.py | 45c346a64e5065e0c2644119e250a2d12f9687a3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | mindspore-ai/mindinsight | 59d3f47144ada9a12d2c82d9826ad5f5288aed78 | a774d893fb2f21dbc3edb5cd89f9e6eec274ebf1 | refs/heads/master | 2023-07-22T22:46:43.075617 | 2023-07-17T11:26:58 | 2023-07-17T11:26:58 | 250,692,948 | 224 | 24 | Apache-2.0 | 2020-12-29T12:22:51 | 2020-03-28T01:58:56 | Python | UTF-8 | Python | false | false | 5,076 | py | test_summary_parser.py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
d01fef3d8842edd54fed9db64d7ccb4389e4ffc1 | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/nn/quantized/modules/__init__.py | aad319312f6ae979de943357ed51ad6faecbf49b | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 2,433 | py | __init__.py | r"""Quantized Modules
Note::
The `torch.nn.quantized` namespace is in the process of being deprecated.
Please, use `torch.ao.nn.quantized` instead.
"""
from torch.ao.nn.quantized.modules.activation import ReLU6, Hardswish, ELU, LeakyReLU, Sigmoid, Softmax, MultiheadAttention, PReLU
from torch.ao.nn.quantized.... |
8d4127b7de526d52dede0f67b6a52cfeae332f04 | d4b77f464596746d68e7b45f1ce1339800752b88 | /sounddevice_build.py | 7befb06e4e2e20a0adbb08dec03ed1ae33e462f5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spatialaudio/python-sounddevice | dff9d517db9790a9165e3f9ae9ddd91bd62eee13 | 91171852b9d955e3abcb58f9b78f2868db40c8be | refs/heads/master | 2023-07-09T03:43:19.314165 | 2023-03-12T18:07:36 | 2023-03-12T18:35:56 | 37,774,726 | 890 | 157 | MIT | 2023-09-07T17:51:54 | 2015-06-20T15:34:00 | Python | UTF-8 | Python | false | false | 10,116 | py | sounddevice_build.py | from cffi import FFI
ffibuilder = FFI()
ffibuilder.set_source('_sounddevice', None)
ffibuilder.cdef("""
int Pa_GetVersion( void );
const char* Pa_GetVersionText( void );
typedef int PaError;
typedef enum PaErrorCode
{
paNoError = 0,
paNotInitialized = -10000,
paUnanticipatedHostError,
paInvalidChannelC... |
28a40a46ab90623de30d4ce8e09b62b6482b2c2b | bbd69601912a3361d788efd03a47f9d4e3bac09e | /docs/sphinx/rest_substitutions/snippets/python/converted/wx.StopWatch.1.py | f25a8b96ccf7acbf8e6af6b6cd2c640b6e2e33fb | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 311 | py | wx.StopWatch.1.py |
sw = wx.StopWatch()
CallLongRunningFunction()
wx.LogMessage("The long running function took %dms to execute", sw.Time())
sw.Pause()
# stopwatch is stopped now ...
sw.Resume()
CallLongRunningFunction()
wx.LogMessage("And calling it twice took %dms in all", sw.Time())
|
9dacf3a16f2b68b52b6f9dbddce2f5b6db489608 | d2e75f67fbb9815a63b82082fafc173d8ae78ea3 | /lib/utils/kitti_utils.py | c9a3e9160ab363e032d2d1e088abd512fa6d6db1 | [
"MIT"
] | permissive | happinesslz/EPNet | adb931478de38c4e9eed837fc34922e55b5953c9 | 0123c341243846aa3b412addcb9e2c07fd305237 | refs/heads/master | 2022-12-18T00:15:23.719957 | 2020-08-25T09:49:46 | 2020-08-25T09:49:46 | 276,774,529 | 231 | 43 | null | null | null | null | UTF-8 | Python | false | false | 8,639 | py | kitti_utils.py | import numpy as np
from scipy.spatial import Delaunay
import scipy
import lib.utils.object3d as object3d
import torch
def get_objects_from_label(label_file):
with open(label_file, 'r') as f:
lines = f.readlines()
objects = [object3d.Object3d(line) for line in lines]
return objects
def dist_to_pl... |
850b04bf31a68c3ab96a65813e932d1d81764b1f | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level02.가장_큰_수/rockmiin_가장큰수.py | 89944fc887db9cd966871579774f9bcf82486be7 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 313 | py | rockmiin_가장큰수.py | def solution(num):
num= list(map(str, num))
slen= len(num)
for i in range(slen):
num[i]*=3
# print(num)
num.sort(reverse=True)
for i in range(slen):
num[i]=num[i][:len(num[i])//3]
if num[0]=='0': return '0'
return ''.join(num)
print(
solution([6, 2, 10])
)
|
d7d635572e3004d7b7b925f8210a82fd016d9d15 | 6d1e4c077808ee934ada7de44fe10ba99712e090 | /brainrender/gui/widgets/screenshot_modal.py | c34e926487469b36ba8587ab6af5c476af0120ab | [
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | brainglobe/brainrender | 0e87c0134dddaa28af6084aa40978cd3549e9c44 | a14ead80c1dbc75f20a145a49394dc467c4f7bf1 | refs/heads/master | 2023-08-09T22:13:31.266666 | 2023-08-01T08:50:57 | 2023-08-01T08:50:57 | 209,513,981 | 345 | 56 | BSD-3-Clause | 2023-09-12T14:56:25 | 2019-09-19T09:27:09 | Python | UTF-8 | Python | false | false | 1,389 | py | screenshot_modal.py | from qtpy.QtWidgets import QDialog, QLabel, QVBoxLayout
from qtpy import QtCore
from brainrender.gui.style import style, update_css
class ScreenshotModal(QDialog):
left = 250
top = 250
width = 400
height = 120
def __init__(self, main_window, palette):
"""
Creates a new window for... |
db304338b561b67fbce7c9fad32982972361965e | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /tests/st/tensor/test_matrix_power.py | 2dba5448fd88a7bc21eb22e25845cd7cf34d0e7a | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | Python | false | false | 1,666 | py | test_matrix_power.py |
# Copyright 2023 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 t... |
4fe762c2d08121c67f5b7857f0984c30bf6a60b7 | 88dd4380e0d33d4a118ca4e69e4ca9b1c8f45e1f | /pyspedas/themis/ground/gmag.py | 0cc27a3fbc0c6ed7f3c469d349d198c0112bb8a3 | [
"MIT"
] | permissive | spedas/pyspedas | 16d34015961e3a4d3eaf8637d3cb6abca95df1b1 | 1d07b148753afa96e148c5835ed9545c507577da | refs/heads/master | 2023-09-01T16:07:47.131334 | 2023-08-25T17:15:35 | 2023-08-25T17:15:35 | 167,614,292 | 125 | 61 | MIT | 2023-09-08T18:41:27 | 2019-01-25T21:11:14 | Python | UTF-8 | Python | false | false | 8,292 | py | gmag.py | import logging
import requests
from pyspedas.themis.load import load
def gmag(trange=['2007-03-23', '2007-03-24'],
sites=None,
group=None,
level='l2',
suffix='',
get_support_data=False,
varformat=None,
varnames=[],
downloadonly=False,
n... |
5aed0df2c8aff1dbbbdf9b6274a103456a1d53c3 | 5860c281b7d0b79e4af58edd589971f5317ea68f | /src/foremast/awslambda/sns_event/sns_event.py | 8dc948ff5313a07f7386fd6e9383fd172264df66 | [
"Apache-2.0"
] | permissive | foremast/foremast | b1728043640e19f1d43ac6de98d57cc69da5c530 | d88001ea0e33fcd09707b81b5c4ed40e5e21fb59 | refs/heads/master | 2023-08-13T02:31:04.693625 | 2022-05-25T02:13:46 | 2022-06-20T01:38:21 | 65,238,442 | 151 | 31 | Apache-2.0 | 2022-06-20T01:38:22 | 2016-08-08T20:52:07 | Python | UTF-8 | Python | false | false | 2,025 | py | sns_event.py | # Foremast - Pipeline Tooling
#
# Copyright 2018 Gogo, 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... |
efa9cb630857f2a238bfeb30762c4732347e3b21 | 5624a2063891918855c7832d4f4bab2c3df27a28 | /examples/03_miscellaneous_examples/plot_large_number_metafeatures.py | 1b7c3bf1a9ae0c230a83dd7ff80d9106485e0293 | [
"MIT"
] | permissive | ealcobaca/pymfe | 52908a9e54d83b431e8aed47b4ea7943e4875b31 | 50131572309dd92cfdf1eceb313be7408f3941b6 | refs/heads/master | 2023-05-12T12:47:08.060399 | 2023-01-03T20:04:24 | 2023-01-03T20:04:24 | 158,245,631 | 117 | 33 | MIT | 2023-05-02T20:00:34 | 2018-11-19T15:20:11 | Python | UTF-8 | Python | false | false | 1,080 | py | plot_large_number_metafeatures.py | """
Extracting large number of metafeatures
=======================================
In this example, we will extract all possible metafeatures from the Iris
dataset.
"""
from sklearn.datasets import load_iris
from pymfe.mfe import MFE
# Load a dataset
data = load_iris()
y = data.target
X = data.data
##############... |
0ecfcf5aa7f8bb52e0e3d5287699a80c76c9a7bf | 8ac730a23480f812e1cb74d98b5919a65684cd8e | /tests/check_glutinit_simplest.py | 660fcca45179ec322287010a5f05a4085ff12cc8 | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-newlib-historical",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcfletch/pyopengl | f0f0c9e54cdbe26f837e1fcbcb2729b0f2f7eb16 | 29b79e8966ba2930a5c44829b02dffc1ca600752 | refs/heads/master | 2023-08-17T07:40:52.302215 | 2023-08-08T00:16:08 | 2023-08-08T00:16:08 | 43,402,152 | 276 | 77 | NOASSERTION | 2023-08-08T14:19:37 | 2015-09-30T00:23:39 | Python | UTF-8 | Python | false | false | 201 | py | check_glutinit_simplest.py | from OpenGL.GLUT import *
glutInit()
glutInitDisplayMode(GLUT_RGB)
try:
if fgDeinitialize: fgDeinitialize(False)
except NameError as err:
pass # Older PyOpenGL, you may see a seg-fault here...
|
40f9ad949a9455cb7c7ef9a500d4c1e3bda89adb | b4afb834fc3a3e2c128b1bf825700031e3df519a | /examples/cobalt-preproc/nudging_coef/lib_nudgcoef.py | 202126ed242cd2a3d61b1c38fc087c101f9e5197 | [
"BSD-3-Clause"
] | permissive | ESMG/pyroms | e4e5e9d70d66907a992846b06d61db31afcd24f3 | 5ea501ef904b01036dd2a0909b7bdc61a56e7eff | refs/heads/python3 | 2023-03-19T11:11:09.143443 | 2023-03-10T00:22:13 | 2023-03-10T00:22:13 | 1,012,779 | 102 | 63 | NOASSERTION | 2023-03-10T00:23:20 | 2010-10-21T17:22:48 | Python | UTF-8 | Python | false | false | 9,145 | py | lib_nudgcoef.py | import numpy as npy
import netCDF4 as nc
import pyroms
class nudgcoef():
''' A class to write the Nudging coeficient file for ROMS '''
def __init__(self,roms_grid):
''' init an object of the class with the pyroms grid ID '''
self.grd = pyroms.grid.get_ROMS_grid(roms_grid)
return None
... |
1484507347448e53fcdbfcb6d8845f4f4fe36cdb | 36a094a44450d1353e9dfc8242a54e2bb70bb9b5 | /tests/repository/metadata/meta_common.py | 771b7bf039fde983ea0ce9c894ab258dd0822e2e | [
"Apache-2.0"
] | permissive | zyfra/ebonite | 52843ce847a3fd28e4ba8ab64d986dcfb23671c0 | b01b662c43709d152940f488574d78ff25f89ecf | refs/heads/master | 2022-11-29T21:20:02.358797 | 2020-10-19T12:22:49 | 2020-10-19T12:22:49 | 221,721,146 | 275 | 18 | Apache-2.0 | 2022-11-21T22:44:02 | 2019-11-14T14:49:47 | Python | UTF-8 | Python | false | false | 51,808 | py | meta_common.py | import datetime
from typing import List
import pytest
from pyjackson.utils import get_class_fields
from ebonite.core.errors import (ExistingEnvironmentError, ExistingImageError, ExistingInstanceError,
ExistingModelError, ExistingPipelineError, ExistingProjectError, ExistingTaskError,
... |
8340e7e2e0331539b0e940c390e8781199199fcc | c530897cb72b6943c7226b25824444cad5f3503b | /usaspending_api/awards/migrations/0100_ctodlinkageupdates.py | 938aff12cccca1e725fd1385ac25992310545e36 | [
"CC0-1.0"
] | permissive | fedspendingtransparency/usaspending-api | fc63a22d32ea0207b7273d3e1ef26ba9dbabc42a | 38f920438697930ae3ac57bbcaae9034877d8fb7 | refs/heads/master | 2023-09-01T22:00:36.633612 | 2023-08-29T18:39:18 | 2023-08-29T18:39:18 | 65,394,827 | 276 | 118 | CC0-1.0 | 2023-09-14T20:33:15 | 2016-08-10T15:39:45 | Python | UTF-8 | Python | false | false | 637 | py | 0100_ctodlinkageupdates.py | # Generated by Django 3.2.13 on 2023-02-03 19:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awards', '0099_auto_20230113_1858'),
]
operations = [
migrations.CreateModel(
name='CToDLinkageUpdates',
fields=[
... |
ef5e3c3e1dd21c1b1f66a6b4adac7fee6b7a47f5 | 1d2466bcd14b2837076d509d26404f96dca1fefe | /setup.py | 2e64b79cc96a2f7f39d45a7e328e8015ccde46cd | [
"MIT"
] | permissive | foutaise/texttable | 637952d8a637f665ebc9b8b34229485253f054fb | 834a9993a625cc4c6ac04b79cae1299e23474f16 | refs/heads/master | 2022-12-02T08:20:46.206256 | 2022-11-23T07:16:22 | 2022-11-23T07:16:22 | 46,265,696 | 350 | 77 | MIT | 2022-12-02T11:39:45 | 2015-11-16T09:45:41 | Python | UTF-8 | Python | false | false | 1,723 | py | setup.py | #!/usr/bin/env python
#
# texttable - module to create simple ASCII tables
# Copyright (C) 2003-2022 Gerome Fournier <jef(at)foutaise.org>
from setuptools import setup
DESCRIPTION = "module to create simple ASCII tables"
with open("README.md") as f:
LONG_DESCRIPTION = f.read()
setup(
name="texttable",
v... |
1c84fbc7b80ae3434d3776610b082b2ac4c3bf70 | 197a2fbaefb1fa438ca5c90628472f4a1ae0e8a6 | /csbdeep/data/prepare.py | 971740e75fba9040748dd046c4c30807da53f03e | [
"BSD-3-Clause"
] | permissive | CSBDeep/CSBDeep | c66537da84f5a5f8609406c8c46837d170b2b5b0 | f95b1c5e7da326d21ad7ee50ccd306a98d23f718 | refs/heads/master | 2023-07-19T20:30:58.392692 | 2023-07-18T12:45:16 | 2023-07-18T12:45:16 | 136,194,704 | 250 | 94 | BSD-3-Clause | 2023-07-18T12:42:15 | 2018-06-05T15:03:32 | Python | UTF-8 | Python | false | false | 8,066 | py | prepare.py | from __future__ import print_function, unicode_literals, absolute_import, division
from six.moves import range, zip, map, reduce, filter
from ..utils import _raise, consume, normalize_mi_ma, axes_dict, axes_check_and_normalize, move_image_axes
import warnings
import numpy as np
from six import add_metaclass
from ab... |
a124a6c5a8d0d34fbb23340f5f18577481e4d5a8 | 635cddc2adfd5195d1b05b120160bbf957c6adb2 | /archived/earthengine-to-bigquery/download_ee_image_to_gcs.py | c6796da17c81fd3c02e19bdcbe3e81fe12a22438 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"CC-BY-4.0"
] | permissive | GoogleCloudPlatform/community | 984b9d53c59a82d6cd470c0407b3fa45109e6450 | 6f68203dec458268f177e97e2b57f3e085ca3668 | refs/heads/master | 2023-08-09T17:29:26.393300 | 2023-07-31T01:30:38 | 2023-07-31T01:30:38 | 50,372,538 | 1,999 | 2,069 | NOASSERTION | 2023-07-31T01:30:39 | 2016-01-25T18:46:16 | Java | UTF-8 | Python | false | false | 1,276 | py | download_ee_image_to_gcs.py | import ee
import os
# Initialize the Earth Engine API
ee.Initialize()
# Retrieve the environment variable of the Cloud Storage bucket for storing images
bucket_name = os.environ['IMAGES_BUCKET']
# Specify a region in the US (roughly the state of Colorado) to reduce the export time for the sake of example
colorado = ... |
ce1f7450a1b09ab932022e082716d20cf1003e35 | 7edc26a54f4b71085db5758ee15e87dfc822c372 | /openelex/api/exceptions.py | 4c8fb77d2e2891d1d1e8f5cabdd7c1a5e462214e | [
"MIT"
] | permissive | openelections/openelections-core | 55f1b440644588502a6a1a67f8924024a2f1dffb | 3c516d8c4cf1166b1868b738a248d48f3378c525 | refs/heads/master | 2022-02-06T01:24:38.557078 | 2021-04-22T17:53:34 | 2021-04-22T17:53:34 | 11,376,829 | 161 | 99 | MIT | 2022-01-21T18:56:12 | 2013-07-12T19:52:57 | Python | UTF-8 | Python | false | false | 38 | py | exceptions.py | class InvalidUrl(Exception):
pass
|
4dba48a3c32a86372e95b503fa0aff933848dde8 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-core/PyObjCTest/test_lazy_import.py | edb3e982c1da89dbc1abffd564006cd10885ddd4 | [
"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 | 33,095 | py | test_lazy_import.py | import os
import struct
import sys
import copy
import warnings
import objc
import objc._lazyimport as lazyimport
from PyObjCTest import metadatafunction
from PyObjCTools.TestSupport import TestCase
from PyObjCTest.test_deprecations import deprecation_warnings
def lookupClasses(*names):
result = []
for nm in ... |
78ced80745dcce07fb3ff7335088c635c2f9e00c | 1d989f79f0fbaf9682b8d66d1e65d1a4192f2ba9 | /mkdocs/tests/utils/templates_tests.py | c6a8daaab6ecebd93553b34c6f92afc030bed828 | [
"BSD-2-Clause"
] | permissive | mkdocs/mkdocs | cf30863d3a684406ea19a4eda8557babf65a0f09 | 94e9f17cd7a69e70c18ae282d55ba2f34f93c542 | refs/heads/master | 2023-08-31T23:58:30.807317 | 2023-08-26T16:33:50 | 2023-08-26T16:33:50 | 15,830,664 | 17,026 | 3,070 | BSD-2-Clause | 2023-09-14T21:24:19 | 2014-01-11T21:05:21 | Python | UTF-8 | Python | false | false | 1,801 | py | templates_tests.py | import unittest
from textwrap import dedent
import yaml
from mkdocs.tests.base import load_config
from mkdocs.utils import templates
class UtilsTemplatesTests(unittest.TestCase):
def test_script_tag(self):
cfg_yaml = dedent(
'''
extra_javascript:
- some_plain_javasc... |
ce5c2c1fcc420d3320f5d7582c840e88e9a45bfe | 857938ac2024b1e37f32a6631e85e179ae04b601 | /src/python/gudhi/sklearn/cubical_persistence.py | 7f86a95f9cea4e3fb07c9ce60dc19001ffb83348 | [
"MIT"
] | permissive | GUDHI/gudhi-devel | a2b08232a2ea66047b7a626d85dff0d50decc71c | 2f76d9416e145282adcd8264438480008bd59f77 | refs/heads/master | 2023-08-31T13:44:17.776336 | 2023-08-29T20:20:16 | 2023-08-29T20:20:16 | 174,304,137 | 212 | 69 | MIT | 2023-09-14T15:34:48 | 2019-03-07T08:34:04 | C++ | UTF-8 | Python | false | false | 6,230 | py | cubical_persistence.py | # This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
# See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
# Author(s): Vincent Rouvreau
#
# Copyright (C) 2021 Inria
#
# Modification(s):
# - YYYY/MM Author: Description of the modific... |
579229bb581121ec713264b00ae34250845575d7 | ad61cc119a42abfd3d64224a753817ae0f9ba058 | /tests/functional/ecs/test_execute_command.py | b0ca876edef77bb627d9429118f77199fd82c74f | [
"Apache-2.0"
] | permissive | aws/aws-cli | 30b0e5b0fb6d736f1540990955f0a7351ee7a908 | 147d16dfdb72dc9cf362b676a57e46a49375afbd | refs/heads/develop | 2023-09-03T19:52:07.955543 | 2023-09-01T20:37:50 | 2023-09-01T20:37:50 | 6,780,767 | 13,038 | 4,107 | NOASSERTION | 2023-09-13T19:48:11 | 2012-11-20T16:07:36 | Python | UTF-8 | Python | false | false | 4,549 | py | test_execute_command.py | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... |
c9391a689ea01735d127fde1df6d73778bfc7efb | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/StarGAN/preprocess.py | 3d8f79f8f9a99e0a6e755030b52938f4e8cb5af9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,271 | py | preprocess.py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
c50bb4804f91c3143663a728243863f0c14584a3 | eb7814e2f053e4ff2c24b3457b8633ac61a2ac99 | /binding/python/setup.py | 0ddd6e7a2021f79ca510c988413f1a2150dfdcfa | [
"Apache-2.0"
] | permissive | Picovoice/rhino | 28cdd1c0ca0818133ce636fec84d03d63f756d89 | 11eb8eb2c665de2d5212404da2257070b453fe3d | refs/heads/master | 2023-09-03T22:38:37.985833 | 2023-08-30T22:33:13 | 2023-08-30T22:33:13 | 155,038,855 | 557 | 83 | Apache-2.0 | 2023-08-30T22:33:14 | 2018-10-28T05:34:00 | Python | UTF-8 | Python | false | false | 2,604 | py | setup.py | import os
import shutil
import setuptools
os.system('git clean -dfx')
package_folder = os.path.join(os.path.dirname(__file__), 'pvrhino')
os.mkdir(package_folder)
shutil.copy(os.path.join(os.path.dirname(__file__), '../../LICENSE'), package_folder)
shutil.copy(os.path.join(os.path.dirname(__file__), '__init__.py')... |
61f8213218e1de555b6805e24de10885fc3d7018 | dcd772f567ef8a8a1173a9f437cd68f211fb9362 | /tests/framework/unit_tests/CustomDrivers/DemoPythonRavenRunningRaven.py | ca5804bafabd6db303eb40c892dc7aeb67734cac | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | idaholab/raven | 39cdce98ad916c638399232cdc01a9be00e200a2 | 2b16e7aa3325fe84cab2477947a951414c635381 | refs/heads/devel | 2023-08-31T08:40:16.653099 | 2023-08-29T16:21:51 | 2023-08-29T16:21:51 | 85,989,537 | 201 | 126 | Apache-2.0 | 2023-09-13T21:55:43 | 2017-03-23T19:29:27 | C++ | UTF-8 | Python | false | false | 1,905 | py | DemoPythonRavenRunningRaven.py | # Copyright 2017 Battelle Energy Alliance, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... |
d235f93eba38c8cb5f621a45476e43e8efa7ae76 | e58aaa29a356d19f3b43b614db08e47f387dd0af | /sol7.py | 9dfe18e747677e4a5a4a068e2783af7f3c6e2f27 | [] | no_license | posquit0/PythonChallenge | 100ad89779de24cf3039c95bf63d4c00012c2025 | fa709fc8170d02a6511d5f07f5a7d314b180ff82 | refs/heads/master | 2020-05-19T21:30:40.198767 | 2015-01-27T08:12:45 | 2015-01-27T08:12:45 | 27,856,891 | 742 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | sol7.py | #!/usr/bin/env python
# encoding: utf-8
from PIL import Image
import StringIO
import requests
import re
IMG_URL = "http://www.pythonchallenge.com/pc/def/oxygen.png"
MSG_LINE = 50
MESSAGE_REGEX = r"(\d+)"
def main():
data = requests.get(IMG_URL).content
data = StringIO.StringIO(data)
img = Image.open(data... |
09f8941234a9024b3a4919941fd534bae0e740a7 | ea82312a43465be66835918f40c73a5d3be4b6eb | /src/Puzzle/Edge.py | 52bc40aa5f180241e34b8752eef43506d4112adf | [
"MIT"
] | permissive | Kawaboongawa/Zolver | 297364c4a9bf175115959ff398c219f96f5a4298 | c4ea07041e7fa617ebfe2c1cbf117eb345c7ce1e | refs/heads/master | 2022-07-12T10:31:40.769807 | 2020-05-01T18:55:54 | 2020-05-01T18:55:54 | 152,142,675 | 110 | 31 | MIT | 2022-06-21T21:39:30 | 2018-10-08T20:30:54 | Python | UTF-8 | Python | false | false | 1,556 | py | Edge.py | import numpy as np
from Puzzle.Enums import TypeEdge, Directions
class Edge:
"""
Wrapper for edges.
Contains shape, colors, type and positions informations in the puzzle of an edge.
"""
def __init__(self, shape, color, type=TypeEdge.HOLE, connected=False, direction=Directions.N):
... |
fd10a9c6928c05ecff74b8ee52249e23586c797c | 28bd76bd768656eee11c5e79e284b75e4af10559 | /features/environment.py | 0057a854b922b0044747744070c98956a051205b | [
"MIT"
] | permissive | MicroPyramid/opensource-job-portal | debfa0b15f8cd0ab82153a143841c3af0801f46a | e21aa8fa62df96f41ddbea913f386ee7c6780ed0 | refs/heads/master | 2023-07-29T09:38:00.241309 | 2022-11-29T02:17:04 | 2022-11-29T02:17:04 | 227,341,330 | 360 | 208 | MIT | 2023-07-25T15:19:17 | 2019-12-11T10:42:38 | HTML | UTF-8 | Python | false | false | 537 | py | environment.py | import django
import os
from django.core.management import call_command
from splinter.browser import Browser
from features.helpers import initiate_test_data
from peeldb.models import User
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jobsp.settings_server")
django.setup()
def before_all(context):
User.object... |
a960f5b227bd531f13023a2141543606a0b7bae5 | cf28b08c7c47fe3fa8890fcd2a0429d83d9dbb3e | /cx_Freeze/importshed/PyQt5/QtWidgets.pyi | 56a5b828696edc72c6a71f7cd81af0edc51a2ebc | [
"Python-2.0"
] | permissive | marcelotduarte/cx_Freeze | bc948693f5b650bf2459c0093c3a98ca419a1df9 | 38438b2418af9cda5f982c74ca55dc235d08aaa1 | refs/heads/main | 2023-08-18T11:37:29.282372 | 2023-08-16T01:32:06 | 2023-08-16T01:32:06 | 79,693,503 | 628 | 121 | null | 2023-09-14T19:15:58 | 2017-01-22T04:25:52 | Python | UTF-8 | Python | false | false | 108 | pyi | QtWidgets.pyi | # Generated by cx_Freeze
import PyQt5.sip
from PyQt5 import QtCore
from PyQt5 import QtGui
import datetime
|
1c72e88ca6b091ee0d1f6ad204e74e5011922db2 | 3d74f759ee48d383aa82eeff0a55864a93a001ba | /DEPS | 7f7a074a5d698bbc53eb6bba7456a7544e8ab889 | [
"BSD-3-Clause"
] | permissive | flutter/engine | 78be5418a9b2f7730dda9ca9fcb25b7055f3da85 | 902ece7f89d7730cc69f35e098b223cbbf4e25f1 | refs/heads/main | 2023-09-04T06:12:34.462953 | 2023-09-04T05:33:32 | 2023-09-04T05:33:32 | 39,211,337 | 7,090 | 6,862 | BSD-3-Clause | 2023-09-14T21:58:17 | 2015-07-16T17:39:56 | C++ | UTF-8 | Python | false | false | 43,719 | DEPS | # The dependencies referenced by the Flutter Engine.
#
# This file is referenced by the .gclient file at the root of the checkout.
# To preview changes to the dependencies, update this file and run
# `gclient sync`.
#
# When adding a new dependency, please update the top-level .gitignore file
# to list the dependency's... | |
fa63fe2eaee1c144c5dbba12328da0cf9a72b735 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/aws/test_ELBCrossZoneEnable.py | 2ccf26d367a584606f5d2b9da59cd892b206f4eb | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 5,294 | py | test_ELBCrossZoneEnable.py | import unittest
import hcl2
from checkov.terraform.checks.resource.aws.ELBCrossZoneEnable import check
from checkov.common.models.enums import CheckResult
class TestELBCrossZoneEnable(unittest.TestCase):
def test_failure(self):
hcl_res = hcl2.loads("""
resource "aws_elb" "test_failed" {
... |
c1a76c74707f78af7a836dcd02d1f04dd8c2cc0d | 0032d988541e85c47b5034c20ecf88220dde5a95 | /openbook_circles/tests/test_views.py | 4887d8aa38d6706e130a0f710a207d8ece05f881 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OkunaOrg/okuna-api | eabd37fef9d2be59b590ed8d72bee084ac377997 | f87d8e80d2f182c01dbce68155ded0078ee707e4 | refs/heads/master | 2022-02-04T21:31:10.577601 | 2021-12-28T18:20:39 | 2021-12-28T18:20:39 | 151,052,951 | 185 | 92 | MIT | 2022-01-13T01:00:40 | 2018-10-01T07:44:46 | Python | UTF-8 | Python | false | false | 11,985 | py | test_views.py | # Create your tests here.
from django.urls import reverse
from rest_framework import status
from openbook_common.tests.models import OpenbookAPITestCase
from mixer.backend.django import mixer
from openbook_auth.models import User
from faker import Faker
import logging
import json
from openbook_circles.models import ... |
43317a326ab04b50243d85ee35e71193a45b364a | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-OSAKit/Lib/OSAKit/_metadata.py | 55fca43b4c2fb9d754f73d9871bac927ff525b4e | [
"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 | 4,631 | py | _metadata.py | # This file is generated by objective.metadata
#
# Last update: Sun Feb 20 19:11:25 2022
#
# flake8: noqa
import objc, sys
from typing import NewType
if sys.maxsize > 2**32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
if objc.arch == "arm64":
def selAorI(a, b):
... |
2df2a176fd1f3f0f95b50119c9dc0072fd1c8be1 | 83963c19fd120dcc7498b726cc56de7fbb900a47 | /osxphotos/photosdb/_photosdb_process_scoreinfo.py | 4b1798815816cb69119910daa2c1f84e86d9cbb7 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | RhetTbull/osxphotos | 55ad4f1257bcd26bb3fbadde6ce5dd59c0917354 | 2cb5a4d18a27be6ccf68f5f35abd39418d238016 | refs/heads/main | 2023-09-02T18:11:06.227191 | 2023-09-02T16:06:51 | 2023-09-02T16:06:51 | 192,160,985 | 1,287 | 93 | MIT | 2023-09-14T14:10:58 | 2019-06-16T07:07:49 | Python | UTF-8 | Python | false | false | 6,082 | py | _photosdb_process_scoreinfo.py | """ Methods for PhotosDB to add Photos 5 photo score info
ref: https://simonwillison.net/2020/May/21/dogsheep-photos/
"""
import logging
from .._constants import _DB_TABLE_NAMES, _PHOTOS_4_VERSION
from ..sqlite_utils import sqlite_open_ro
from .photosdb_utils import get_db_version
"""
This module should be ... |
28fbb164dfd68e25d46fea7268239eca1651789e | 49c0a28c44d4bbe917325d955f399a3c317b8e5e | /backend/light_head_rcnn/lib/lib_kernel/lib_roi_align/roi_align_op_test.py | 005f8ea9c77e23ea624d4c8a33551a862575f424 | [
"Apache-2.0"
] | permissive | zju3dv/mvpose | 4eac14998dd1ba6959c1a4bda13c2d77c73694c7 | 38b958f423f2de2bf7562f5a386c27440eab8c53 | refs/heads/master | 2022-07-27T02:11:12.777830 | 2021-07-18T07:57:33 | 2021-07-18T07:57:33 | 165,477,360 | 470 | 95 | Apache-2.0 | 2021-09-01T14:27:57 | 2019-01-13T07:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,485 | py | roi_align_op_test.py | import tensorflow as tf
import numpy as np
import roi_align_op
import roi_align_op_grad
import tensorflow as tf
import pdb
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "7"
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def conv2d(x, W):
return tf.nn.... |
4dc64b481e5d73a8751ba3e7a140dcbfffe92243 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/ZhimaCreditPayafteruseCreditagreementTransferResponse.py | 472c37efff47062038d3e3225fcce6287f0c1b93 | [
"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,203 | py | ZhimaCreditPayafteruseCreditagreementTransferResponse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class ZhimaCreditPayafteruseCreditagreementTransferResponse(AlipayResponse):
def __init__(self):
super(ZhimaCreditPayafteruseCreditagreementTransferResponse, self).__init__()
... |
7f827d127488b0973bf819a808fc8a78925cc33e | 219a938ab3b084f8a9a0c4e0fe552ae40a42b991 | /examples/spark-app-demo/k8s/data_cleanup.py | 9d0c5d09047ef44d0db9382f409044d42d36cc24 | [
"LGPL-2.0-or-later",
"Apache-2.0"
] | permissive | apache/incubator-liminal | 0b9c510ed30826fcd416a5b3aaf991d675b0347a | 57246ec472dc79529a68b2c6edd76e5fef677f1b | refs/heads/master | 2023-08-31T09:25:43.704740 | 2023-01-22T08:13:30 | 2023-01-22T08:13:30 | 271,182,596 | 141 | 44 | Apache-2.0 | 2023-09-12T19:01:36 | 2020-06-10T04:57:10 | Python | UTF-8 | Python | false | false | 2,408 | py | data_cleanup.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... |
27348cd7b60346b6f2386f6b367d994cb913da30 | 2cdfd562d865036e6f0862c9f377dd1e88e2eb32 | /bin/anthology/formatter.py | ad787246905ce95c84e8c6c3bda102598de4b897 | [
"Apache-2.0"
] | permissive | acl-org/acl-anthology | 8ded455ca44a5d286325f8f2530735b3bdf79225 | 395fc4114a560776215a2e1c4a6cc5ce07dc348c | refs/heads/master | 2023-09-02T07:14:09.651667 | 2023-09-01T20:05:48 | 2023-09-01T20:05:48 | 20,092,585 | 290 | 274 | Apache-2.0 | 2023-09-14T14:54:32 | 2014-05-23T08:37:21 | Python | UTF-8 | Python | false | false | 7,554 | py | formatter.py | # -*- coding: utf-8 -*-
#
# Copyright 2019-2022 Marcel Bollmann <marcel@bollmann.me>
#
# 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
#
# Unl... |
e31c7bb56132a2e474daf5091d977120186639ed | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/homeassistant/triggers/time.py | 5b3cd8590a77ff8036d55d3d2eca9c246ad3d5bb | [
"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 | 6,552 | py | time.py | """Offer time listening automation rules."""
from datetime import datetime
from functools import partial
import voluptuous as vol
from homeassistant.components import sensor
from homeassistant.const import (
ATTR_DEVICE_CLASS,
CONF_AT,
CONF_PLATFORM,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeas... |
c9260385bb8552b7b061f1c9b00a6292694365ee | 5ecd6c73e60e15f5d426ae8dfcc5fb34540010f7 | /tryalgo/horn_sat.py | 388553e3a64927c70182f558d8d06b02572e0c60 | [
"MIT"
] | permissive | jilljenn/tryalgo | 736568f223d9a08db9ec392a2420b478aff6039a | 634645707ebf2489356009a6f91f012b55b1ee39 | refs/heads/master | 2023-08-24T21:30:57.871068 | 2023-07-09T18:08:33 | 2023-07-09T18:08:33 | 50,119,000 | 390 | 124 | MIT | 2023-01-29T09:47:45 | 2016-01-21T16:05:54 | Python | UTF-8 | Python | false | false | 3,776 | py | horn_sat.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""\
Solving Horn SAT
christoph dürr - 2016-2020
clauses are numbered starting from 0
variables are strings (identifier)
solution : set of variables that are set to true
posvar_in_clause : maps clause to the unique positive variable in clause
(or None)
clause_with_negv... |
576407a90ed6e38cbcf8f912970469a218377e13 | 481d8268f533c0b5527112f9b7d709aaa22ab053 | /scripts/zmail.py | 7ce7992e2dfcbdecd0d72d0dacca54ff9eae6b81 | [
"Apache-2.0"
] | permissive | intelxed/xed | 590f60c564dc75004e51d95773fc1d4d4bfba1d3 | 01a6da8090af84cd52f6c1070377ae6e885b078f | refs/heads/main | 2023-08-25T01:30:27.421743 | 2023-08-21T17:19:26 | 2023-08-21T17:19:26 | 75,980,044 | 1,390 | 175 | Apache-2.0 | 2023-08-07T11:12:00 | 2016-12-08T22:21:22 | Python | UTF-8 | Python | false | false | 6,948 | py | zmail.py | #!/usr/bin/env python3
#BEGIN_LEGAL
#
#Copyright (c) 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
f23a42c7a886ec0b3eecda36197d58a1449923a8 | a41e1498e3c080f47abd8e8e57157548df3ebbf1 | /pandas/tests/io/test_common.py | a7ece6a6d7b08fcfa9ec737adcce3ce8aed0d9b5 | [
"BSD-3-Clause"
] | permissive | pandas-dev/pandas | e7e639454a298bebc272622e66faa9829ea393bb | c7325d7e7e77ecb4a4e57b48bc25265277c75712 | refs/heads/main | 2023-09-01T12:42:07.927176 | 2023-09-01T11:14:10 | 2023-09-01T11:14:10 | 858,127 | 36,166 | 18,728 | BSD-3-Clause | 2023-09-14T21:18:41 | 2010-08-24T01:37:33 | Python | UTF-8 | Python | false | false | 22,455 | py | test_common.py | """
Tests for the pandas.io.common functionalities
"""
import codecs
import errno
from functools import partial
from io import (
BytesIO,
StringIO,
UnsupportedOperation,
)
import mmap
import os
from pathlib import Path
import pickle
import tempfile
import pytest
from pandas.compat import is_platform_windo... |
8fef98c2654ba9af7518648c1307f2dfd67c0ac1 | 8246092010e656920e7199f889f9cbf54b83a729 | /pycoin/symbols/ric.py | 0cb5179b08fc317c81336784f54f585757c5fe15 | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 319 | py | ric.py | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
symbol="RIC", network_name="Riecoin", subnet_name="mainnet",
wif_prefix_hex="80", address_prefix_hex="3c", pay_to_script_prefix_hex="05",
bip32_prv_prefix_hex="0488ade4", bip32_pub_prefix_hex="0488b21e")
|
fbdfa49a33e38a4996637be08063956a52c38232 | e23229e1f3f932d05cb8dd38eec7ad9f7b7bfe12 | /myfitnesspal/types.py | 3b802efc9ab4d491ffa77c9eacbf62e9635dc821 | [
"MIT"
] | permissive | coddingtonbear/python-myfitnesspal | 292b182afe51f00ad7d7e05e566f1e6c33fdbdcf | 596970d18c26d82e03a30a420a9864e148c52686 | refs/heads/master | 2023-08-31T16:21:50.396794 | 2023-06-16T03:40:28 | 2023-06-16T03:40:28 | 11,441,467 | 773 | 163 | MIT | 2023-08-07T20:17:40 | 2013-07-16T05:31:10 | Python | UTF-8 | Python | false | false | 4,531 | py | types.py | from __future__ import annotations
from typing import Any, Callable, Dict, List, Optional
from typing_extensions import Literal, TypedDict
class CommandDefinition(TypedDict):
function: Callable
description: str
is_alias: bool
aliases: List[str]
MyfitnesspalUserId = str
class GoalDisplayDict(Type... |
40fd824b2f3b11f11f607939722471fc2578fa86 | 2337351b228818e41be3002bd38f68f77c2aa074 | /sa/profiles/DCN/DCWL/ping.py | 5d584ef13d5569f473d8b06564922fe073befecc | [
"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 | 2,269 | py | ping.py | # ---------------------------------------------------------------------
# DCN.DCWL.ping
# ---------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Python modules
im... |
e5f5d3337bd825acf6792735329a0242f344cd9f | 21f35d6b81c94bd1ed07b923482c1a9e17423d4c | /sphinx_gallery/tests/tinybuild/examples/plot_numpy_matplotlib.py | 5c37908ba2e6c5f465435136be1605fb645450b2 | [] | permissive | sphinx-gallery/sphinx-gallery | 06378c2ecedf9cb306b3958327a1ba294c8d6725 | 4e298a6ccee1c4ff8b33cd65371127118f626032 | refs/heads/master | 2023-08-17T06:30:59.195322 | 2023-08-15T16:00:25 | 2023-08-15T16:00:25 | 25,860,190 | 382 | 235 | BSD-3-Clause | 2023-09-12T15:29:13 | 2014-10-28T08:41:46 | Python | UTF-8 | Python | false | false | 1,499 | py | plot_numpy_matplotlib.py | """
======================
Link to other packages
======================
Use :mod:`sphinx_gallery` to link to other packages, like
:mod:`numpy`, :mod:`matplotlib.colors`, and :mod:`matplotlib.pyplot`.
FYI this gallery uses :obj:`sphinx_gallery.sorting.FileNameSortKey`.
"""
from warnings import warn
import numpy as ... |
bd6f647615de9a21f860b6e419883ccc19958779 | 09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce | /tests/qinfo/test_reduced_dm.py | da76fd5a256132c14aedfc5f14ab7f1885977164 | [
"Apache-2.0"
] | permissive | PennyLaneAI/pennylane | 458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7 | 0843183ff15a013c2622af5e61fea431d18076d3 | refs/heads/master | 2023-09-03T17:00:43.105784 | 2023-09-01T16:15:07 | 2023-09-01T16:15:07 | 129,936,360 | 1,431 | 410 | Apache-2.0 | 2023-09-14T21:30:56 | 2018-04-17T16:45:42 | Python | UTF-8 | Python | false | false | 7,855 | py | test_reduced_dm.py | # Copyright 2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... |
ca8938605410b7dbb8bd99f505c9f702ebcd1323 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/completion/notImportedQualifiedName/UseImportPriorityWhenAddingImport/main.after.py | 768d86d912199c069a8fba86d93933fd628608d4 | [
"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 | 149 | py | main.after.py | import subprocess
import sys
import django.conf
import django.utils.encoding
import matplotlib.pyplot as plt
subprocess.Popen
sys.argv
plt.func() |
be9b250199a3dc2b257edc7aeeaec89c413cbc53 | 753cd066a9bd26b6c37c8d53a86c7a9c659ec18c | /tutorials/tutorials/pytorch/efficient_data_loading/tests/test_tuto_data_loading.py | f52cc2ee3bbacc437ffde0130935d0f6048b96f5 | [
"MIT"
] | permissive | graphcore/examples | ac872015808ed2a913d4d7bf0d63202ce15ebbae | e2f834dd60e7939672c1795b4ac62e89ad0bca49 | refs/heads/master | 2023-08-05T02:08:12.341836 | 2023-07-27T11:13:10 | 2023-07-27T11:13:10 | 143,977,106 | 311 | 80 | MIT | 2023-09-11T16:42:56 | 2018-08-08T07:29:17 | Python | UTF-8 | Python | false | false | 1,530 | py | test_tuto_data_loading.py | # Copyright (c) 2021 Graphcore Ltd. All rights reserved.
from pathlib import Path
import pytest
from tutorials_tests import testing_util
import nbformat
from nbconvert.preprocessors import ExecutePreprocessor
working_path = Path(__file__).parent.parent
@pytest.mark.category2
@pytest.mark.ipus(1)
def test_run_defau... |
db54daf48ef545ab4ed13c88b39c333e3d6fc257 | 9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20 | /contrib/clucene/update.py | ad95e537560031502e0602d132fc0666849ab3c6 | [
"BSD-2-Clause"
] | permissive | chimera-linux/cports | fdae59dc25856942be3041e10e3533dbf8f883c3 | 714680161cd719dd047452c95fbb9b447bc23a86 | refs/heads/master | 2023-09-03T19:30:40.720670 | 2023-09-03T15:07:40 | 2023-09-03T15:07:40 | 374,000,317 | 118 | 37 | BSD-2-Clause | 2023-09-14T20:31:08 | 2021-06-05T02:07:34 | Python | UTF-8 | Python | false | false | 39 | py | update.py | pattern = r"clucene-core-([\d.]+).tar"
|
541566589f7efddcd0f5a7aa42e50c8c30240313 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /net/py-python-twitter/files/patch-setup.py | 81702979369ecb98b5786362736463e1e5636fcf | [
"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 | 345 | py | patch-setup.py | --- setup.py.orig 2016-12-23 00:11:09 UTC
+++ setup.py
@@ -57,7 +57,6 @@ setup(
packages=find_packages(exclude=('tests', 'docs')),
platforms=['Any'],
install_requires=['future', 'requests', 'requests-oauthlib'],
- setup_requires=['pytest-runner'],
tests_require=['pytest'],
keywords='twitter ... |
d545e16c28150003ee82cbb5a3d45f63d8978b50 | dcbef06d5a00f07756339b9e62c684dec2fee425 | /tests/PyPI-pytest/run_all.py | 3e97addf752558660f29cdf2fa4d614e30d50c6d | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nuitka/Nuitka | f9543d8d95bfa0b81d4e60af0dfad99fb72893a4 | d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2 | refs/heads/develop | 2023-08-28T14:00:32.861328 | 2023-08-27T09:16:45 | 2023-08-27T09:16:45 | 9,626,741 | 8,573 | 599 | Apache-2.0 | 2023-09-13T02:49:41 | 2013-04-23T15:40:33 | Python | UTF-8 | Python | false | false | 11,141 | py | run_all.py | #!/usr/bin/env python
# Copyright 2023, Tommy Li, mailto:<tommyli3318@gmail.com>
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
#... |
762358d740041add7f8078db3fb76eab6af6b7dc | 020cfb93254c0e85a4e6eb406fd8c34d686cbfad | /gubernator/main_test.py | 01603ac5f1a9357a86349c822523466d28f8c625 | [
"Apache-2.0"
] | permissive | kubernetes/test-infra | 4108be9a19b1b95ce13a57a584886ca7df56eb57 | 7a9e69f0550788b4192a8d20259c56b79dee44a3 | refs/heads/master | 2023-09-04T06:27:37.988969 | 2023-09-04T04:03:48 | 2023-09-04T04:03:48 | 57,333,709 | 3,886 | 2,715 | Apache-2.0 | 2023-09-14T20:44:33 | 2016-04-28T21:05:35 | Go | UTF-8 | Python | false | false | 9,151 | py | main_test.py | #!/usr/bin/env python
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
e5c8a942b01727b298d2e340e0294553d6e5ae21 | 67cc5db4593e2cdd109e589e13fb07074bcff5d9 | /tests/numpy/npdot_test.py | 7fcd1805f30c6cb05bf13411ea1071f6fe5fdf6e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spcl/dace | 39849b1488e8f59f880fc0e2572687556c51847d | c5ca99ad37e7ceef6da71026c3c8bb579f64117f | refs/heads/master | 2023-08-31T10:45:09.480018 | 2023-08-30T06:05:10 | 2023-08-30T06:05:10 | 172,703,996 | 402 | 114 | BSD-3-Clause | 2023-09-14T15:18:29 | 2019-02-26T12:05:50 | Python | UTF-8 | Python | false | false | 341 | py | npdot_test.py | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import dace
import numpy as np
import pytest
from common import compare_numpy_output
@compare_numpy_output(check_dtype=True)
def test_dot_simple(A: dace.float32[10], B: dace.float32[10]):
return np.dot(A, B)
if __name__ == "__main__":
... |
2db5c90d6e9ff5333e73a4ac7a1815011776e4b7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/wpt_tools/wpt/tools/third_party/pywebsocket3/mod_pywebsocket/handshake/base.py | ffad0614d6bc42fdf75c2ee4885212304dcbcb90 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0"
] | 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 | 14,521 | py | base.py | # Copyright 2012, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... |
ab11877b82d031c2cb823edd45a30ccfe5891b9a | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /otp/ai/GarbageLeakServerEventAggregator.py | 5a92d744ff1cce22075a36f0f035e8bcd29a5611 | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 1,450 | py | GarbageLeakServerEventAggregator.py | from direct.showbase.DirectObject import DirectObject
from direct.showbase import GarbageReport
class GarbageLeakServerEventAggregator(DirectObject):
def __init__(self, cr):
self.cr = cr
self._doLaterName = None
self._sentLeakDesc2num = {}
self._curLeakDesc2num = {}
self.ac... |
ecdfc2da450f7c6630a58cd939aede901aaa730f | f21ce03617ded558b3cbff2b5fe5319505df0309 | /src/packages/stylevar.py | 00ca9649bd973dfed0a557238e28aa3638a117cb | [] | no_license | BEEmod/BEE2.4 | cabff349c8f734dbfec3aeaa8bcc0bca08529a9f | 9f9219934b8f4af3c03d0080fad6078a18f3d530 | refs/heads/master | 2023-08-23T20:49:11.514180 | 2023-07-31T08:40:20 | 2023-07-31T08:40:20 | 22,973,515 | 276 | 85 | null | 2023-08-22T21:10:23 | 2014-08-15T00:54:22 | Python | UTF-8 | Python | false | false | 4,438 | py | stylevar.py | """Style specific features which can be enabled or disabled."""
from __future__ import annotations
from typing import Iterator
from transtoken import TransToken, TransTokenSource
from packages import PakObject, Style, ParseData, ExportData
from srctools import Property, bool_as_int
class StyleVar(PakObject, allow_m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.