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
761524de157a99d41594474981fe05a28e60cd15
5b6ba0f288b1e2ac236af846a9bf546a63228476
/simtbx/diffBragg/refiners/crystal_systems/monoclinic.py
e40e6dcbe40c41554a5bfe0d0a9f917ed54e5b78
[ "BSD-3-Clause-LBNL" ]
permissive
cctbx/cctbx_project
5b547b416cadbdf95cca21dace9f54272a08d98a
7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa
refs/heads/master
2023-08-17T17:44:05.077010
2023-08-16T22:40:22
2023-08-16T22:40:22
39,508,026
206
131
NOASSERTION
2023-09-14T17:12:55
2015-07-22T13:36:27
Python
UTF-8
Python
false
false
2,494
py
monoclinic.py
from __future__ import division from simtbx.diffBragg.refiners.crystal_systems import CrystalSystemManager import numpy as np from scitbx.matrix import sqr class MonoclinicManager(CrystalSystemManager): def __init__(self, a=55, b=65, c=77, beta=100*np.pi/180.): self.variables = [a, b, c, beta] @prop...
408316ab405bc0d60859bfac26df8afbee52f5bf
fd8ef75bb06383538cdb21ed2a0ef88e570179b7
/src/openfermion/circuits/primitives/optimal_givens_decomposition_test.py
fb3744acd81b91bcd2b06e278eccc9e13b2ddac0
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
quantumlib/OpenFermion
d1147383f99573d19005bd0f3e0120e9e9bed04c
788481753c798a72c5cb3aa9f2aa9da3ce3190b0
refs/heads/master
2023-09-04T11:00:32.124157
2023-08-24T21:54:30
2023-08-24T21:54:30
104,403,768
1,481
406
Apache-2.0
2023-08-24T21:54:31
2017-09-21T22:10:28
Python
UTF-8
Python
false
false
8,679
py
optimal_givens_decomposition_test.py
# 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, software # distributed under t...
4da1800b67a2e75df319f9839811569dfce265ad
af41ca2086f7da6ca036921b2e2cec89e0e5d522
/examples/handshake/server.py
21d36ea9c0ff7f868d082aee6ba7b2904f29d154
[ "MIT" ]
permissive
irmen/Pyro4
023830905bb0d8fc25aed8e990631268f7fbe52c
8ec0db055d76ae1512239710b1e30883ee6bd74b
refs/heads/master
2023-08-22T10:18:47.878310
2023-06-04T16:00:32
2023-06-04T16:00:32
11,037,154
667
105
MIT
2022-06-26T14:23:01
2013-06-28T20:25:58
Python
UTF-8
Python
false
false
1,061
py
server.py
from __future__ import print_function import Pyro4 import Pyro4.constants secret_code = "pancakes" class CustomDaemon(Pyro4.Daemon): def validateHandshake(self, conn, data): print("Daemon received handshake request from:", conn.sock.getpeername()) print("Handshake data:", data) # if need...
e8f93e0da1637bfbbae5b1ac1b79554c5d75654a
0121f2810d6081fee314d730b8f22081e0943faf
/python/examples-qt6/apireview/main.py
da097a9edbdee8917729266793694cf7d1dbb959
[ "MIT" ]
permissive
KDAB/KDChart
329d5010d3ea93509f0f862cd6b9cbd36856cdfd
8ecbc4402b1efe0a21bdb5aa879dbf1acde0eb0b
refs/heads/kdchart-3.0
2023-09-01T13:52:24.166135
2023-08-15T10:46:24
2023-08-15T10:46:24
182,813,124
103
31
NOASSERTION
2023-08-23T01:54:56
2019-04-22T15:14:18
C++
UTF-8
Python
false
false
489
py
main.py
#!/usr/bin/env python # # This file is part of the KD Chart library. # # SPDX-FileCopyrightText: 2019-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com> # # SPDX-License-Identifier: MIT # ''' Main entry point for the API Review Example ''' import sys from PySide6.QtWidgets import QApplication ...
733c6d5f70c5ad5f279ad9dec3bd1aa1729a1cfb
e3bb1df7fa4c51900dec7e9ddf5295e1a80938bd
/test/hummingbot/connector/exchange/bittrex/test_bittrex_exchange.py
394906f31e34bccaaecd2fc3256e1c7ff2952746
[ "Apache-2.0" ]
permissive
CoinAlpha/hummingbot
0d1e2bd94de1280748647108c7d7800a09546eb8
c3f101759ab7e7a2165cd23a3a3e94c90c642a9b
refs/heads/development
2023-09-01T11:24:43.322137
2023-08-31T03:08:06
2023-08-31T03:08:06
439,330,952
135
98
Apache-2.0
2023-08-30T13:55:08
2021-12-17T12:50:42
Python
UTF-8
Python
false
false
13,810
py
test_bittrex_exchange.py
import asyncio import functools import json import re import unittest from decimal import Decimal from typing import Awaitable, Callable, Dict, Optional from unittest.mock import AsyncMock from aioresponses import aioresponses from hummingbot.client.config.client_config_map import ClientConfigMap from hummingbot.clie...
b52ac3039b77f149cbdec9d023f496e15eb9d6b4
b832340b8fcce09a7ad8996eb0aed8abec4d4974
/fastflix/encoders/vp9/command_builder.py
78329c1e6fc1de7bbbfa3df95ba1ac2000fddd02
[ "MIT" ]
permissive
cdgriffith/FastFlix
4819c276dd6bbb8ad0039788c68691371b525ac2
80cca411a9362c7345975606e9f5d936c00ed111
refs/heads/master
2023-08-31T14:53:02.515626
2023-08-26T17:59:47
2023-08-26T17:59:47
171,392,325
901
64
MIT
2023-08-26T17:59:48
2019-02-19T02:41:07
Python
UTF-8
Python
false
false
2,735
py
command_builder.py
# -*- coding: utf-8 -*- import re import secrets from fastflix.encoders.common.helpers import Command, generate_all, generate_color_details, null from fastflix.models.encode import VP9Settings from fastflix.models.fastflix import FastFlix def build(fastflix: FastFlix): settings: VP9Settings = fastflix.current_vi...
a7f361fe11b882e9b20403c26eb3e26a6673f12d
5f607259244dc1bf49a4bf2d7995d29e31020697
/src/pytorch_tabular/feature_extractor.py
dfef7732d4ece97f96542d23d3bb749f634e9c9b
[ "MIT" ]
permissive
manujosephv/pytorch_tabular
022af92ea42c42b948576054dc007b255bff786f
20499a473056ff75474cda1d8a9d3ac7a105ed20
refs/heads/main
2023-09-04T11:33:07.732511
2023-07-19T02:39:43
2023-07-19T02:39:43
321,584,367
1,027
113
MIT
2023-09-01T11:30:56
2020-12-15T07:17:03
Python
UTF-8
Python
false
false
4,208
py
feature_extractor.py
# Pytorch Tabular # Author: Manu Joseph <manujoseph@gmail.com> # For license information, see LICENSE.TXT from collections import defaultdict import pandas as pd from rich.progress import track from sklearn.base import BaseEstimator, TransformerMixin from pytorch_tabular.models import NODEModel, TabNetModel from pyto...
a2b794cf708452a3edcffd0560a2748618baa63d
285ec77e4e5a914f882a5d42ce1604f94f081b06
/tests/test_parser.py
caa6f55d9e81a0bb749795c01221cdc59992d33f
[ "MIT" ]
permissive
buildinspace/peru
c327c983dc001758f8f13028c3e7412aefbcebd9
bc8de020a2ee8e380ff0ff9130bd12e93430b819
refs/heads/master
2023-09-05T16:06:41.037281
2023-02-10T22:20:28
2023-04-05T05:27:14
13,880,738
649
54
MIT
2023-07-28T12:18:11
2013-10-26T09:14:57
Python
UTF-8
Python
false
false
6,932
py
test_parser.py
from textwrap import dedent from peru import parser from peru.parser import parse_string, ParserError from peru.module import Module from peru.rule import Rule import shared class ParserTest(shared.PeruTest): def test_parse_empty_file(self): scope, imports = parse_string('') self.assertDictEqual(...
a0ff9db9b7fd40e78b1fac7f7082b3f31f1e85c7
7dfc958846a98c9dc90829ace237adb0f4e79057
/tests/assets/spec-with-functions-flat/my_tasks_flat/raw.py
657c84924f5fa91480348b39f868f0a14aab88ef
[ "Apache-2.0" ]
permissive
ploomber/ploomber
b4fad542106ed85bb3a195f38ee547da111bd049
516b64e531b13eeda36b747a268506fa8dd4dc98
refs/heads/master
2023-08-08T07:18:12.419524
2023-08-03T04:40:19
2023-08-03T04:40:19
235,190,220
3,076
219
Apache-2.0
2023-08-29T03:56:08
2020-01-20T20:13:06
Python
UTF-8
Python
false
false
138
py
raw.py
from pathlib import Path def function(product): Path(str(product)).touch() def function2(product): Path(str(product)).touch()
8c25dee74367e50a77fb63e03972eb185fa78223
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/test/dialect/test_pyodbc.py
80f1e468abfabf9829f72d2e55370dd7fb290677
[ "MIT" ]
permissive
sqlalchemy/sqlalchemy
9d949c67c9b5396b1f33e7ff0f3230c81babf5be
b382bff6e3464f039db0fd1f2ce1b79038675e48
refs/heads/main
2023-08-31T17:40:59.565421
2023-08-30T15:01:41
2023-08-30T15:01:41
159,271,175
8,083
1,489
MIT
2023-09-12T18:53:55
2018-11-27T03:35:03
Python
UTF-8
Python
false
false
505
py
test_pyodbc.py
from sqlalchemy.connectors import pyodbc from sqlalchemy.testing import eq_ from sqlalchemy.testing import fixtures class PyODBCTest(fixtures.TestBase): def test_pyodbc_version(self): connector = pyodbc.PyODBCConnector() for vers, expected in [ ("2.1.8", (2, 1, 8)), ("py3-3...
3692d47a8fadaabd045e8aab7223d6597f9038f9
b8cebcf2850834b9f386c8704541e1d5bc39d5e9
/vaas/vaas/settings/dev.py
3d222fddaf14e078fc2cf8302fd6030b593d79d5
[ "Apache-2.0" ]
permissive
allegro/vaas
246590b1804aacf44c34821c64488b0b5c467fa9
a5cc9e04d49594de9e7a0dfc1051539256f38bfe
refs/heads/master
2023-09-01T10:49:37.778610
2023-05-22T07:17:34
2023-05-22T07:17:34
41,783,059
258
35
NOASSERTION
2023-09-06T18:11:47
2015-09-02T06:02:15
Python
UTF-8
Python
false
false
148
py
dev.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from .base import * from .oauth import * from .tracking import *
c67c4f2888bc0ddac1b3055859790d4de0f5d5d1
0760fb4901a75766921a205b55686d6d6f049b30
/release/tune_tests/scalability_tests/workloads/test_result_throughput_cluster.py
0230ee23aa5355c4a377e5302c6c2b391e3f6a76
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
1,016
py
test_result_throughput_cluster.py
"""Result throughput on a cluster In this run, we will start 1000 trials concurrently that report often (1 result/2 seconds). We thus measure the amount of overhead incurred when dealing with a large number of results from distributed trials. Cluster: cluster_16x64.yaml Test owner: krfricke Acceptance criteria: Sho...
e81b9ee32d729a0029cfeadf5b4297eaebc2dc5a
b2fd19abc6aef8725ebf06888f0d48ec386e2454
/auto_novel_imagenet.py
64c3ce25127818abc14535ccce415c11e3b6c05e
[]
no_license
k-han/AutoNovel
58bb0d13c8f02d4983314cea795feaee3e523912
5eda7e45898cf3fbcde4c34b9c14c743082abd94
refs/heads/master
2022-04-05T11:47:23.962306
2020-02-13T13:15:34
2020-02-13T13:15:34
232,853,696
242
24
null
null
null
null
UTF-8
Python
false
false
10,304
py
auto_novel_imagenet.py
import torch import torch.nn as nn import torch.nn.functional as F from torch.optim import SGD, lr_scheduler from sklearn.metrics.cluster import normalized_mutual_info_score as nmi_score from sklearn.metrics import adjusted_rand_score as ari_score from utils.util import BCE, PairEnum, cluster_acc, Identity, AverageMete...
cd5b0a1dd22efde1880345c83daa7499564b3be4
e8b38b8dfa348ff006eb197a7906ca8e491a23dc
/tests/external/scripts/mpi4py/np_Gather.py
65e6b94d6006f8d61fba742429afce747b822c39
[ "MIT" ]
permissive
pyccel/pyccel
d79a81dbdff1172839a6a1227abfcc1f97e6c97b
1896b761ba662c90b14c195bbb6eb5cddc57cbfc
refs/heads/devel
2023-08-30T12:15:25.244401
2023-08-28T09:31:32
2023-08-28T09:31:32
100,463,736
307
39
MIT
2023-09-14T19:29:26
2017-08-16T07:59:14
Python
UTF-8
Python
false
false
720
py
np_Gather.py
# pylint: disable=missing-function-docstring, missing-module-docstring from mpi4py import MPI from numpy import zeros # we need to declare these variables somehow, # since we are calling mpi subroutines size_ = -1 rank = -1 comm = MPI.COMM_WORLD rank = comm.Get_rank() size_ = comm.Get_size() master = 1 nb_values =...
9bc2d56686dee7b83987f968dd5cac212ee7981e
748626778e870ce6cdfd0c1f3b46d7f8a096b5a8
/src/condor_tests/test_bogus_collector.py
2d64a65e8b1a6d7f0771f7ca3b0f5e73d44247cf
[ "Apache-2.0" ]
permissive
htcondor/htcondor
1c8bab33379299f64e5274a7d525f3c64c64c47f
3b67625b2f4d97bcc28f534340a6fd7ac518dc75
refs/heads/main
2023-08-31T03:17:53.070364
2023-08-31T00:18:04
2023-08-31T00:18:04
5,808,515
249
165
Apache-2.0
2023-09-14T18:44:26
2012-09-14T11:35:15
C++
UTF-8
Python
false
false
1,995
py
test_bogus_collector.py
#!/usr/bin/env pytest # Test that a startd that reports to a collector whose name # doesn't exist neither crashes nor hangs import logging import htcondor from ornithology import * logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # Setup the startd to also report to a bogus collector @standup d...
58bcd3d3804a83390aa974e2562c9da9ee4b2c75
12bdda6d7e048ec67d74261f9fcea4bab50571a9
/Labs/Local/aes_scripts/aes_mult.py
b4d5983999ded210f3365edc7963fb97d9ea9584
[]
no_license
Yossioren/AttacksonImplementationsCourseBook
2aa64332780d9f6de2c5774201ce27582f95355c
32ef531273f7e9c21a6a3f868435e0471c709dc3
refs/heads/master
2023-05-11T03:32:35.669142
2023-05-09T16:08:13
2023-05-09T16:08:13
251,563,089
218
87
null
2023-03-12T08:24:45
2020-03-31T09:54:18
Jupyter Notebook
UTF-8
Python
false
false
1,089
py
aes_mult.py
import numpy as np from aes_scripts.aes_xtimes import aes_xtimes # function [result] = aes_mult(input_data, constant) # helper function for the AES Mixcolums transformation # # DESCRIPTION: # # aes_mult(input_data, constant) # # multiplies each byte of the matrix 'input_data' with the # value 'constant'. This...
643c359293e8f7a700ac8d3b0faadc728f89e3cf
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/webdriver/pylib/selenium/webdriver/common/options.py
e940a4645a3b1e589e374697246cbfa2ea826fc2
[ "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
9,081
py
options.py
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
8b850056933100be803e678017fbdebec8e3a134
b2eacba773b016a3619af364dce39a4d3eed424c
/custom_components/afvalbeheer/calendar.py
ca5a9ffc67ec132d1a601ded46918f7353f98a5b
[ "Apache-2.0" ]
permissive
pippyn/Home-Assistant-Sensor-Afvalbeheer
fa63c0f84117ea6011496f18a197e9fd9b8bd9bd
21e4bb998fc3e73852f29e99e8c80fddeb071676
refs/heads/master
2023-08-31T11:03:14.784526
2023-08-22T09:30:03
2023-08-22T09:30:03
166,045,890
233
99
Apache-2.0
2023-05-23T12:55:35
2019-01-16T13:35:38
Python
UTF-8
Python
false
false
2,505
py
calendar.py
import logging from datetime import datetime from datetime import timedelta from typing import Optional, List from .API import WasteData from homeassistant.const import CONF_RESOURCES from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.core import HomeAssistant from .const ...
d4151366db7aa123fd8c80bf7ef250cdc83ed8d8
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/financial/price_plus_tax.py
43876d35e57c416a3d009659748e08723c0986cc
[ "MIT" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
413
py
price_plus_tax.py
""" Calculate price plus tax of a good or service given its price and a tax rate. """ def price_plus_tax(price: float, tax_rate: float) -> float: """ >>> price_plus_tax(100, 0.25) 125.0 >>> price_plus_tax(125.50, 0.05) 131.775 """ return price * (1 + tax_rate) if __name__ == "__main__": ...
9d654c0ebd2a97d1050521a027a011786558df1d
2b7180b739df298195e35a71e20a4251f83b4813
/test/validation/test_request_list_rooms.py
9415861ae7cd9e5a8f3aa4964378081fd543113e
[ "Apache-2.0" ]
permissive
thenetcircle/dino
625f752046502a04ab9ec42b0a8c437d7123bcbb
f1f68954191f64cdec4b3914caf154300ccbf519
refs/heads/master
2023-08-10T09:59:07.064141
2023-08-03T07:56:19
2023-08-03T07:56:19
69,937,941
153
21
Apache-2.0
2023-02-15T22:53:29
2016-10-04T05:40:09
Python
UTF-8
Python
false
false
4,432
py
test_request_list_rooms.py
from activitystreams import parse as as_parser from dino.config import ApiActions from dino.config import ErrorCodes from dino.config import SessionKeys from dino.validation import request from test.base import BaseTest class RequestListRoomsTest(BaseTest): def test_list_rooms_status_code_true(self): sel...
745935b89efc4b62558cba622757ce93aea6caf7
a28d672c50faf9632983287d206e8691282cab51
/scripts/data_preparation/download_datasets.py
c97e2f4774caea4c758b8ce1fd9789d4bbf3be28
[ "Apache-2.0" ]
permissive
XPixelGroup/BasicSR
42cf240fbc91bee10cfa12930ab86820969e854c
033cd6896d898fdd3dcda32e3102a792efa1b8f4
refs/heads/master
2023-06-07T15:16:21.940587
2023-02-02T07:07:47
2023-02-02T07:07:47
130,259,654
2,088
300
Apache-2.0
2023-09-14T00:50:17
2018-04-19T18:58:00
Python
UTF-8
Python
false
false
2,444
py
download_datasets.py
import argparse import glob import os from os import path as osp from basicsr.utils.download_util import download_file_from_google_drive def download_dataset(dataset, file_ids): save_path_root = './datasets/' os.makedirs(save_path_root, exist_ok=True) for file_name, file_id in file_ids.items(): ...
18e85e09445c57528a679c6687db58e03f03117c
4da937474505923797032a13bb19d61092ccfc47
/bertopic/backend/_use.py
142e06bfa153f006f9d9b7fcc5bfc6224927c252
[ "MIT" ]
permissive
MaartenGr/BERTopic
8e4c533b2fb5524b4f10510b25f82f570c684f56
951b97645acdf55e184889c761a83d2e1d73812f
refs/heads/master
2023-09-01T20:46:35.921196
2023-08-30T09:16:41
2023-08-30T09:16:41
297,672,263
4,587
623
MIT
2023-09-12T10:14:14
2020-09-22T14:19:29
Python
UTF-8
Python
false
false
1,767
py
_use.py
import numpy as np from tqdm import tqdm from typing import List from bertopic.backend import BaseEmbedder class USEBackend(BaseEmbedder): """ Universal Sentence Encoder USE encodes text into high-dimensional vectors that are used for semantic similarity in BERTopic. Arguments: embedding_mo...
2e1077d1d6ef04245c8c3ed4203f133cd265815f
44d1936bbc8e256534f3946f100bb0028e92fee5
/backend/src/hatchling/__about__.py
9eb549af38545e646fd8effb30b6579143ca3ac0
[ "MIT" ]
permissive
pypa/hatch
aeb72e6a465a39073a020f63a931def16ce90ce8
7dac9856d2545393f7dd96d31fc8620dde0dc12d
refs/heads/master
2023-09-04T04:04:25.079348
2023-09-03T23:48:21
2023-09-03T23:48:21
92,997,800
1,869
125
MIT
2023-09-13T19:39:25
2017-05-31T23:37:53
Python
UTF-8
Python
false
false
23
py
__about__.py
__version__ = '1.18.0'
2dda3518a5a5d4a858997ac28f39d00ab7c02668
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/ResidualAttentionNet/src/dataset.py
15168a2746e3223c7769e9f9cc168a7476990fc9
[ "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
6,019
py
dataset.py
# Copyright 2022 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...
e3b7c67b516d28b49fbec27d9504355bb0327b69
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/migrations/test_migrations_plan/0003_third.py
7a5e341798923a39d8b6b456dac245e1c489ee38
[ "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
449
py
0003_third.py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("migrations", "0002_second"), ] operations = [ migrations.CreateModel( "Author", [ ("id", models.AutoField(primary_key=True)), ], )...
c8ac9fc69cac10752e041286e2fad9e58eac95fd
3a61d74a32de232682867a1063944cad4daaa47f
/tests/sample_data.py
5b9be1cc3799eda5a77e0d603dd2766cedffcf09
[ "MIT" ]
permissive
legrego/homeassistant-elasticsearch
c131eacf125bb8008fa85dfb477375ec6abb185c
fbe6f8c48c62c9b9b4b559d372d38716afe8ebf1
refs/heads/main
2023-08-22T12:27:49.162089
2023-08-13T23:43:52
2023-08-13T23:43:52
132,661,981
115
29
MIT
2023-09-07T18:20:09
2018-05-08T20:35:58
Python
UTF-8
Python
false
false
817
py
sample_data.py
""" Sample data for testing """ from datetime import datetime from pytz import utc def create_sample_state(**kwargs): """ Creates a sample state object """ state = { "state": "off", "entity_id": "switch.sample_entity", "domain": "switch", "object_id": "sample_entity", ...
7b0ed2fa40a4895cb9e27eaa3290aeed10018782
f62cd59f7e5c8d22b4d9ad130eff0a70d0272341
/pyACA/ToolSimpleDtw.py
dfdbb6b38da584ce320e8181b7d175ee87d6f197
[ "MIT" ]
permissive
alexanderlerch/pyACA
61ea3c1b9350562bc248fa45b7bba3246e98686d
3ee1dde02999cf0a0e512ee73e021ea618303a89
refs/heads/master
2023-05-22T18:43:09.506175
2022-09-12T18:37:24
2022-09-12T18:37:24
195,197,713
141
37
MIT
2022-01-06T15:19:40
2019-07-04T08:09:05
Python
UTF-8
Python
false
false
1,297
py
ToolSimpleDtw.py
# -*- coding: utf-8 -*- import numpy as np ## helper function: dynamic time warping # # @param D: distance matrix # # @return p: path with matrix indices # @return C: accumulated cost matrix def ToolSimpleDtw(D): # init directions for back-tracking [diag, vert, hori] iDec = np.array([[-1, -1], [-1,...
5ead8e8164c2e0792c534b67be5f9d76ee1b508d
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/joinLines/FStringAndPlainLiteral-after.py
76353360971b41e5068be2d89cfbae5f5252b9a8
[ "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
14
py
FStringAndPlainLiteral-after.py
(f'{42}' '{}')
267480b7c984e2c52f7549489699960072df07e0
3a7262c7184b82607bb3a109838c2b6e486e1e20
/tests/param_scheduler/test_scheduler_composite.py
730f61af035da27edad5e5c436695ff4681b9888
[ "Apache-2.0" ]
permissive
facebookresearch/fvcore
a98bd7a8f88a2fe86e4818e617a4c00c73782d63
0f2b23b6f93e36041d9a74764ee824541cf0a0e5
refs/heads/main
2023-08-22T05:50:10.827997
2023-07-25T18:46:45
2023-07-25T18:46:45
210,951,915
1,706
245
Apache-2.0
2023-06-16T16:21:49
2019-09-25T22:27:59
Python
UTF-8
Python
false
false
7,240
py
test_scheduler_composite.py
# Copyright (c) Facebook, Inc. and its affiliates. import copy import unittest from fvcore.common.param_scheduler import ( CompositeParamScheduler, ConstantParamScheduler, CosineParamScheduler, LinearParamScheduler, StepParamScheduler, ) class TestCompositeScheduler(unittest.TestCase): _num_...
704d86bf944d61bb19233d82ef620978153c46e9
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/cloudformation/checks/resource/aws/AmazonMQBrokerPublicAccess.py
938c1e385516c38c78e31f64641c83776443f0ef
[ "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
1,138
py
AmazonMQBrokerPublicAccess.py
from typing import Any from checkov.common.models.enums import CheckResult, CheckCategories from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck class AmazonMQBrokerPublicAccess(BaseResourceValueCheck): def __init__(self) -> None: name = "Ensure Amazon MQ Br...
96ba3dde78fee50a61ec2f1dcc0ace96923c6ef5
9e988f0dce0ee4b847808210bf5b703b1619fed5
/scripts/maf_gc_content.py
78cce22dec1002138fee9ae1b3adad1664428d04
[ "MIT" ]
permissive
bxlab/bx-python
1c4aa875e77ee97dd3c30b89c28a6c4acd0b821b
7758bc4492626ffdbaa90c8fc5dd7620b1e2f3f8
refs/heads/main
2023-08-08T15:17:47.383099
2023-07-27T12:09:24
2023-07-27T12:09:24
58,659,170
141
55
MIT
2023-07-26T10:28:07
2016-05-12T16:39:43
Python
UTF-8
Python
false
false
588
py
maf_gc_content.py
#!/usr/bin/env python """ Read a MAF from standard input and print average GC content of each alignment usage: %prog < maf > out """ import sys from bx.align import maf def __main__(): maf_reader = maf.Reader(sys.stdin) for m in maf_reader: gc = 0 bases = 0 for c in m.components: ...
8c0c8e9bc8e894a4221b6692288be33fb25ffa17
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_bincount_op.py
504b4b51c77d510514611e442615bc93e63b4cf8
[ "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
10,206
py
test_bincount_op.py
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
55020567966e8cda56467f6eb8b8590d07cf74f3
efc378b30e64de28ecd13fd2a281ea5a309e84de
/tutorials/plot_04-MoreFOOOF.py
8b916fc48b452744aaed28b2143b6bba074b75d5
[ "Apache-2.0" ]
permissive
fooof-tools/fooof
acb0069d3d17055bd7e6a85e062c1d648bf2a9bd
d63aae0bc9251677fbf158190e3802f29e47c53d
refs/heads/main
2023-08-31T04:34:24.796460
2023-08-27T20:33:49
2023-08-27T20:33:49
95,601,569
244
72
Apache-2.0
2023-09-13T12:42:49
2017-06-27T21:16:03
Python
UTF-8
Python
false
false
13,085
py
plot_04-MoreFOOOF.py
""" 04: Exploring the FOOOF Object ============================== Further exploring the FOOOF object, including algorithm settings and available methods. """ ################################################################################################### # Import the FOOOF object from fooof import FOOOF # Import...
316ecf6e60753673ff112410c62a7687057a3ba9
5e4913b3d7b6dfd9f35d9e5f24486bb6b6145125
/scripts/kdb/find-tools
1de3e3c7b1256f1c19266280b5d8a3551d059d87
[ "BSD-3-Clause" ]
permissive
ElektraInitiative/libelektra
ff5d5cfc4bf91d704f58405b14ea694aad3a2edd
dbbe4ae4f669c322a8f95f59112d3f5fc370bbd9
refs/heads/master
2023-08-05T14:54:48.081359
2023-08-04T12:40:00
2023-08-04T12:40:00
21,063,580
215
170
BSD-3-Clause
2023-09-07T13:34:30
2014-06-21T08:01:04
C
UTF-8
Python
false
false
5,983
find-tools
#!/usr/bin/env python3 # # @author Sebastian Bachmann, Kurt Micheli <kurt.micheli@libelektra.org> # @tags org # @brief This script is used to search for scripts # @date 10.05.2016 metatags = ["date", "brief", "author", "tags"] # If you create own Tags, please document them here! # (then they are listed with --alltags...
24060e921817f0645e09ed384c7441aaa7771ca7
902abf2c8a0ae6147975864802575b5e543ef1e4
/src/ZODB/scripts/fsrefs.py
12a2eef557d244b3b3bb7e74d7240884ed13da56
[ "ZPL-2.1" ]
permissive
zopefoundation/ZODB
b4d37dfe232a60dccf226f82276d630148fe43db
0632974df76e90a3f00b45b995bdff0209dd2def
refs/heads/master
2023-09-04T05:26:06.885522
2023-08-01T17:16:24
2023-08-01T17:16:24
7,357,595
629
104
NOASSERTION
2023-08-01T17:16:26
2012-12-28T17:47:39
Python
UTF-8
Python
false
false
6,891
py
fsrefs.py
#!/usr/bin/env python ############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this di...
b2f0fe68c7836210c66b7411ba4a1e314569e15d
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayAccountExrateAdviceAcceptResponse.py
6b1746af99e57823a55d2f7729accd00f7efec1f
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,276
py
AlipayAccountExrateAdviceAcceptResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayAccountExrateAdviceAcceptResponse(AlipayResponse): def __init__(self): super(AlipayAccountExrateAdviceAcceptResponse, self).__init__() self._client_id = None ...
668e0a1f14dc2066642dd8dd381e2c279432936a
9734c93c86c982b1ce046340bac9e53645b261b8
/plaso/cli/helpers/filter_file.py
9d51e03063c7ded0ccc7b5d905f6d978b1c79dec
[ "Apache-2.0" ]
permissive
log2timeline/plaso
cd72dd407d6c5627506c14f58cb8f6a6926aa808
d6022f8cfebfddf2d08ab2d300a41b61f3349933
refs/heads/main
2023-09-02T08:43:48.241198
2023-08-19T07:28:12
2023-08-19T07:28:12
23,812,315
1,506
421
Apache-2.0
2023-09-04T08:24:53
2014-09-08T23:29:28
Python
UTF-8
Python
false
false
2,607
py
filter_file.py
# -*- coding: utf-8 -*- """The filter file CLI arguments helper.""" import os from plaso.cli import tools from plaso.cli.helpers import interface from plaso.cli.helpers import manager from plaso.lib import errors class FilterFileArgumentsHelper(interface.ArgumentsHelper): """Filter file CLI arguments helper.""" ...
15436faccc5508f5363e0e07ef8ce454b262c114
a1657a0c5c8f3f8b51b98074293e2f2e9b16e6f4
/eks/demo/.cache/kubeflow/kubeflow-9804feb9fc23fc30075632a857087f4b529294e2/scripts/gke/delete_role_bindings.py
1eb809e713fb6ba819d3129b8b7a84070f2e12f7
[ "Apache-2.0" ]
permissive
PipelineAI/pipeline
e8067636f5844dea0653aef84bd894ca2e700fc6
0f26e3eaad727c1d10950f592fe1949ece8153aa
refs/heads/master
2023-01-07T15:27:33.741088
2022-10-25T23:01:51
2022-10-25T23:01:51
38,730,494
2,596
512
Apache-2.0
2020-01-30T23:00:08
2015-07-08T03:49:23
Jsonnet
UTF-8
Python
false
false
1,228
py
delete_role_bindings.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # A simple script to delete all role bindings for the service accounts created # as part of a Kubeflow deployment. This is an effort to deal with: # https://github.com/kubeflow/kubeflow/issues/953 import argparse import logging import json import subprocess if __name__ =...
253a5bbb91bac174d7b1b206939d0e45c45d0736
61004e474b7b2ad0071c16766f0f7874f04f9466
/examples/cloudml-churn-prediction/trainer/trainer/metadata.py
085a6aba2415fd3765bb263e82edf75b0706f9b2
[ "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
852
py
metadata.py
# Copyright 2019 Google 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 law or ...
1940e6b999a5f6c9adacf6d71db793f0801fcce5
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowTcpProxyStatistics/cli/equal/golden_output_expected.py
632c6d02b890ecca78a0f2a0bef65870c4747758
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
6,794
py
golden_output_expected.py
expected_output = { "tcpproxy_statistics": { "total_connections": 32420, "max_concurrent_connections": 1466, "flow_entries_created": 32432, "flow_entries_deleted": 32432, "current_flow_entries": 0, "current_valid_flow_entries": 0, "current_connections": 0, ...
cf56e8946acdece4b3be17c96872a7926dbb790d
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/pypy/module/_winreg/__init__.py
d865ca691e9b8488b0587459a0764807887eade2
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
3,394
py
__init__.py
from pypy.interpreter.mixedmodule import MixedModule from rpython.rlib.rwinreg import constants class Module(MixedModule): """This module provides access to the Windows registry API. Functions: CloseKey() - Closes a registry key. ConnectRegistry() - Establishes a connection to a predefined registry handle ...
19d374fc1eeb76facec0772316524d0c4df5967e
44ba493efd0fd7ae78880d3d93cc0d66166935e5
/src/briefcase/integrations/flatpak.py
f1c706402a11c6ac00c353b1d4180d678549dcc1
[ "BSD-3-Clause" ]
permissive
beeware/briefcase
1b3eaebf0791728c68986809aa07abc436e422c6
cc2dae1ffc58f9700d0ca57461cb05909bc01bec
refs/heads/main
2023-09-01T19:24:15.424713
2023-09-01T04:35:53
2023-09-01T04:35:53
39,841,700
1,609
256
BSD-3-Clause
2023-09-11T10:04:34
2015-07-28T15:20:03
Python
UTF-8
Python
false
false
11,996
py
flatpak.py
from __future__ import annotations import subprocess from pathlib import Path from briefcase.exceptions import BriefcaseCommandError from briefcase.integrations.base import Tool, ToolCache from briefcase.integrations.subprocess import SubprocessArgT class Flatpak(Tool): name = "flatpak" full_name = "Flatpak...
3b4e9c94397e132c0b09e8826490ba29beb15579
77c94e8d7297c009a57bee406c601dcc985bf5b9
/src/OFS/Uninstalled.py
c5e9f3132e2e9467fc84eb7c078cc3d9a5127c32
[ "ZPL-2.1" ]
permissive
zopefoundation/Zope
94b71ce10e501e4c0e55d16d94f1bc94ff575212
c31b1c635e85a1766f2666cb0bd117337ae5fa67
refs/heads/master
2023-09-03T20:22:32.121746
2023-08-30T06:34:44
2023-08-30T06:34:44
8,436,350
335
115
NOASSERTION
2023-09-11T21:21:27
2013-02-26T16:13:23
Python
UTF-8
Python
false
false
2,899
py
Uninstalled.py
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
f7bd62527ebeb2f3668f061f8bd295efa68f3c6e
6e5cb5ac15aed033de4109a6f0849d0c920413b0
/tests/integration/test_git.py
b73006b2306a457f0a31289d91e158a71fe9f507
[ "MIT" ]
permissive
saltstack/kitchen-salt
6ab86dddd58a3b4490acdec36a37adbc2dce7c4c
03a438aadf8c73b8e49820d21f44a468e0632901
refs/heads/master
2023-08-29T09:45:20.728163
2022-08-25T18:20:46
2022-08-25T18:20:46
15,855,060
107
79
MIT
2022-05-19T10:18:48
2014-01-13T01:39:21
Ruby
UTF-8
Python
false
false
276
py
test_git.py
import pytest import os @pytest.mark.skipif('windows' in os.environ.get('KITCHEN_INSTANCE'), reason='Skip on freebsd images') @pytest.mark.parametrize("pkgname", [ "git", ]) def test_pkg(host, pkgname): pkg = host.package(pkgname) assert pkg.is_installed is True
60165f0c937655ec3f726a0f60ecdf1d42e50628
0e083f405af00029c9ec31849f0f7f81c56844b5
/mmdeploy/apis/rknn/__init__.py
5754e0a61a1e3267c9d9885e2c34e5ab2c385502
[ "Apache-2.0" ]
permissive
open-mmlab/mmdeploy
39b9e7b611caab2c76a6142fcb99f0bf1d92ad24
5479c8774f5b88d7ed9d399d4e305cb42cc2e73a
refs/heads/main
2023-09-01T21:29:25.315371
2023-08-31T09:59:29
2023-08-31T09:59:29
441,467,833
2,164
605
Apache-2.0
2023-09-14T10:39:04
2021-12-24T13:04:44
Python
UTF-8
Python
false
false
350
py
__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from mmdeploy.backend.rknn import is_available __all__ = ['is_available'] if is_available(): from mmdeploy.backend.rknn.onnx2rknn import onnx2rknn as _onnx2rknn from ..core import PIPELINE_MANAGER onnx2rknn = PIPELINE_MANAGER.register_pipeline()(_onnx2rknn) ...
244c8d1de580eef57f373ee4d1940ac2d86f25b4
6186a3787d1e74f1866844491da48b9643c8f1a9
/ghostwriter/rolodex/migrations/0039_alter_projecttarget_note.py
28537a6f8fee76ecea0d440b717e00e6c3b8b96b
[ "BSD-3-Clause" ]
permissive
GhostManager/Ghostwriter
b46b2421e5737ed0afbf49182dce9eeb5eb31936
b9eae4459ba192fbb2d4a5b66f8210d57fd7112a
refs/heads/master
2023-09-04T02:34:54.085997
2023-07-13T22:38:44
2023-07-13T22:38:44
197,269,443
1,011
197
BSD-3-Clause
2023-09-08T00:19:52
2019-07-16T21:19:43
Python
UTF-8
Python
false
false
502
py
0039_alter_projecttarget_note.py
# Generated by Django 3.2.11 on 2022-12-16 21:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rolodex', '0038_auto_20221122_1938'), ] operations = [ migrations.AlterField( model_name='projecttarget', name='not...
d1c10c7e57f254aa61be649ab51932daaead359d
695180c14d136c1af33e50497c7957dc74835680
/models/official/retinanet/retinanet_segmentation_main.py
1d2c2a0cf9c28a2ca949c5f5b708f7e1cb88a4e1
[ "Apache-2.0" ]
permissive
tensorflow/tpu
4517c43b42c3dd98b8abafbbd9457384dd9639b1
0f7adb97a93ec3e3485c261d030c507eb16b33e4
refs/heads/master
2023-09-02T23:33:31.299394
2023-09-01T00:43:03
2023-09-01T00:43:03
96,946,693
5,627
2,107
Apache-2.0
2023-09-13T17:50:43
2017-07-11T23:54:39
Jupyter Notebook
UTF-8
Python
false
false
10,349
py
retinanet_segmentation_main.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
3b892fdaafdeece489ad6707a913f2669a1e83d3
c85ec637dd7202eccbab3623f0e12608f2c58c73
/redditdownloader/interfaces/__init__.py
1b2ae9b1eb2650a9f0de91c13e8984707aef8291
[]
no_license
shadowmoose/RedditDownloader
2d7b8d68d3be7cd63614c5019e2935e25d8548f8
ebcb791f78e5d761efcca28b5ebd5b7e1b61df85
refs/heads/master
2023-07-13T09:55:21.700858
2023-07-02T05:02:18
2023-07-02T05:02:18
93,103,288
1,134
120
null
2023-05-04T05:57:26
2017-06-01T22:03:41
Python
UTF-8
Python
false
false
390
py
__init__.py
from abc import ABC, abstractmethod class UserInterface(ABC): def __init__(self, ui_id): self.ui_id = ui_id @abstractmethod def display(self): """ The primary method to implement, this is called when this UI should take over rendering. Calling this does not *require* that RMD starts downloading at once,...
81460aabebe103bb8c0481a7431fc41c55859381
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoJets/JetPlusTracks/python/JetPlusTrackCorrections_cff.py
5223888f23e3edf4e0e3703551f3c98ad49c384d
[ "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
2,081
py
JetPlusTrackCorrections_cff.py
import FWCore.ParameterSet.Config as cms # ---------- Add assigned jet-track association from RecoJets.JetAssociationProducers.ak4JTA_cff import * ak4JetTracksAssociatorAtVertexJPT = ak4JetTracksAssociatorAtVertex.clone( useAssigned = True, pvSrc = "offlinePrimaryVertices" ) # ---------- Tight Electron I...
19e643350d6ebd61d9275f90442ea33f564ef9f3
f1c2e4b3147af77e23306f841610aafd6db1c6b0
/dev-support/examples/mnist-tensorflow/MultiWorkerMirroredStrategy/mnist_keras_distributed.py
791bffc8e116d015688865d8de3317c80d079753
[ "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "BSD-2-Clause", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "MIT", "CDDL-1.1", "Classpath-exception-2.0" ]
permissive
apache/submarine
a2927f5f4f7f5faff4701139f2f0f88a98195e7f
0c10613f39b707d5e446c515c12fa28295c8052e
refs/heads/master
2023-08-30T14:35:43.145942
2023-08-20T00:19:54
2023-08-24T23:50:49
209,459,144
663
269
Apache-2.0
2023-09-03T09:05:06
2019-09-19T04:00:17
Java
UTF-8
Python
false
false
3,647
py
mnist_keras_distributed.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 use...
e0deb5ad8dd59f1f057d4d5a84496f91f8efa6e5
ac35c35de85d9b8763d51a0e8e91274f20064cb5
/kb_python/count.py
f15bfff161c2158c07649027aace79681d00ee29
[ "BSD-2-Clause" ]
permissive
pachterlab/kb_python
b1b184ce01cca50b9986a3bf9be8c42faddafd55
14a18ef36a943160378ccbdf12a0fd6b6b84e449
refs/heads/master
2023-09-04T12:35:24.023580
2022-09-19T16:11:40
2022-09-19T16:11:40
215,165,758
122
24
BSD-2-Clause
2023-07-25T22:42:54
2019-10-14T23:50:12
Python
UTF-8
Python
false
false
75,350
py
count.py
import os import re from typing import Dict, List, Optional, Union from urllib.parse import urlparse import scipy.io from typing_extensions import Literal from .config import get_bustools_binary_path, get_kallisto_binary_path from .constants import ( ABUNDANCE_FILENAME, ABUNDANCE_GENE_FILENAME, ABUNDANCE_...
5fc58bc30c1ea0b9c00d5c3285d8af6938dcbf4c
831c1e735a1b7d1bc6aa779bba88d3d3efe42565
/tests/test_http_responder.py
a0f9cf5a62cc9d62150abb4351ae95ed49046e1d
[ "Apache-2.0" ]
permissive
pyGrowler/Growler
a46db1909d1877d332c103194dd1dabb1f8f3b15
5492466d8828115bb04c665917d6aeb4f4323f44
refs/heads/dev
2023-03-08T01:10:20.093556
2020-03-08T07:51:41
2020-03-08T07:51:41
25,556,740
814
38
null
2016-05-16T05:22:07
2014-10-22T02:11:12
Python
UTF-8
Python
false
false
5,705
py
test_http_responder.py
# # tests/test_http_responder.py # import growler from growler.http.responder import GrowlerHTTPResponder from growler.http.methods import HTTPMethod from growler.http.errors import HTTPErrorBadRequest from growler.aio.http_protocol import GrowlerHTTPProtocol import asyncio import pytest from unittest import mock fro...
92519e15f36824655e09ec8dbe118089127fd26e
2342b8737b9ffeb9715158b8ec74a33c7a4947f6
/koku/forecast/__init__.py
eecdd34ed008f86e2f7c9a355506d2f8c04e56df
[ "Apache-2.0" ]
permissive
project-koku/koku
444d8df05da5416c9cee606c42481c99be45f13d
0416e5216eb1ec4b41c8dd4999adde218b1ab2e1
refs/heads/main
2023-08-20T11:30:17.510182
2023-08-17T18:27:30
2023-08-17T18:27:30
126,496,611
225
94
Apache-2.0
2023-09-14T17:38:08
2018-03-23T14:29:23
Python
UTF-8
Python
false
false
591
py
__init__.py
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Forecasting Module.""" from .forecast import AWSForecast # noqa: F401 from .forecast import AzureForecast # noqa: F401 from .forecast import Forecast # noqa: F401 from .forecast import GCPForecast # noqa: F401 from .forecast import OCIForeca...
bbf8766a589eefdad55e36c0c42b4ba52a1e1296
8188f026dcfa3ca6c4e2d58e6c56d04d24e37a18
/projectq/setups/decompositions/_gates_test.py
12c05cdc89b4356334d444ce634960b3e22e23dd
[ "Apache-2.0" ]
permissive
ProjectQ-Framework/ProjectQ
2e342da0622d4b5d513c15504556e95d3d0e2aea
67c660ca18725d23ab0b261a45e34873b6a58d03
refs/heads/develop
2023-09-04T02:18:25.581119
2023-03-09T16:03:57
2023-03-09T16:03:57
77,520,796
886
335
Apache-2.0
2023-07-24T07:07:15
2016-12-28T09:31:53
Python
UTF-8
Python
false
false
3,466
py
_gates_test.py
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
af8b66a523fd15792a9d1e9e66a3e7e1e0acc1be
4eaf223758fdc7d5bd56b0276e834ff2fc453672
/ibm_db_tests/test_081_ConnWrongUser.py
c1374412d1bbb4ca775cfbc91b5488e1db30c47e
[ "Apache-2.0" ]
permissive
ibmdb/python-ibmdb
76b19632d16d9365729480df3888cd89bc3744b4
58551a59a4ec40c879fcfc9d173ab8a3e327fa43
refs/heads/master
2023-09-04T03:59:35.020750
2023-09-01T12:56:17
2023-09-01T12:56:17
32,306,469
321
260
Apache-2.0
2023-09-14T11:36:16
2015-03-16T06:47:14
Python
UTF-8
Python
false
false
856
py
test_081_ConnWrongUser.py
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # from __future__ import print_function import sys import unittest import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_081_ConnWrongUser(self): obj = IbmD...
6cc3c00460e4293c05c4f72ba35da45c49602e9d
bc6e87f8e9a3f6c35f8080718ac409801dab3b24
/server/workers/persistence/src/apis/persistence.py
c97795a4ee1e53e176313cd66fad3b734bf10d30
[ "MIT" ]
permissive
OpenKnowledgeMaps/Headstart
b7f56d8562d044e8d96a08f9f7ae0bc6de1076cd
94dcc248e1892de7b603d5a4dad175f5d8a128db
refs/heads/master
2023-08-31T20:06:34.485558
2023-08-25T17:34:03
2023-08-25T17:34:03
15,936,466
132
36
MIT
2023-08-25T17:34:05
2014-01-15T13:52:50
JavaScript
UTF-8
Python
false
false
11,940
py
persistence.py
import os from hashlib import md5 from datetime import datetime import json from collections import OrderedDict from flask import Blueprint, request, make_response, jsonify, abort from flask_restx import Namespace, Resource, fields from models import Revisions, Visualizations from database import sessions persistenc...
1f8df2bce1fa1751decb732a0bb3b537fe3b83e6
afbeee6a3a83946449e5fccf7c74457461ed921f
/docs/source/reference/plots/factory/mip_render_mhd_plot.py
710534bf8fbc7eb2408040e51faa136aed72fdf3
[ "MIT" ]
permissive
K3D-tools/K3D-jupyter
d69e541de90835415be5516d3e6758b1fcd530d2
5973d30947f6bc80b2a50ba260f198bec57ddfc1
refs/heads/main
2023-09-01T20:41:01.159202
2023-08-26T20:45:56
2023-08-26T20:45:56
44,377,817
859
134
MIT
2023-08-26T20:33:59
2015-10-16T10:14:20
Python
UTF-8
Python
false
false
455
py
mip_render_mhd_plot.py
import k3d import numpy as np import os import SimpleITK as sitk def generate(): filepath = os.path.join(os.path.abspath(os.path.dirname(__file__)), '../../assets/factory/heart.mhd') im_sitk = sitk.ReadImage(filepath) img = sitk.GetArrayFromImage(im_sitk) plt_mip = k3d.mi...
994fea31ae20c5ddd819bca583e8362b58028011
a902290fb3b911676358ae4d93f83061a6c2bd0f
/InvenTree/plugin/base/barcodes/mixins.py
5ad4794ebd819a2fe1c4c1478942cff76fa3219f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inventree/InvenTree
a15e54182c9bfafdf5348cc9a66da1004e23e760
e88a8e99a5f0b201c67a95cba097c729f090d5e2
refs/heads/master
2023-09-03T19:32:35.438375
2023-08-30T00:25:40
2023-08-30T00:25:40
85,894,461
3,077
549
MIT
2023-09-14T14:21:01
2017-03-23T01:44:10
Python
UTF-8
Python
false
false
1,051
py
mixins.py
"""Plugin mixin classes for barcode plugin.""" class BarcodeMixin: """Mixin that enables barcode handling. Custom barcode plugins should use and extend this mixin as necessary. """ ACTION_NAME = "" class MixinMeta: """Meta options for this mixin.""" MIXIN_NAME = 'Barcode' ...
ebce34ba70dfe6bd56c149526c670cf5c66b81d3
d01680fe164d915bb3ffd6b10dea1d7cac503630
/python-package/lets_plot/plot/theme_set.py
8ee1aff803f9e100fe42b0a05608167ded7dd893
[ "MIT", "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LGPL-3.0-only" ]
permissive
JetBrains/lets-plot
4ba8edd8910967d5e15d8d0ea1a9cd7a9c50432f
af4f6554eb9cc250259a6a6757b5c8d920dde8c4
refs/heads/master
2023-09-01T04:15:04.414149
2023-08-31T16:48:57
2023-08-31T16:48:57
176,771,727
1,264
59
MIT
2023-09-07T12:42:01
2019-03-20T16:13:03
Kotlin
UTF-8
Python
false
false
9,103
py
theme_set.py
# # Copyright (c) 2019. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. # from .core import FeatureSpec __all__ = [ 'theme_grey', 'theme_light', 'theme_classic', 'theme_minimal', 'theme_minimal2', 'theme_none', 'theme_bw', ...
59d5c42720e2daf7bb6c48e8c2d520e54b5ca999
3d8b20612a709cc08ae06719324761c1d4094883
/selfdrive/car/ford/values.py
b8890107fcc52b39d82bd2b780dc0e385219b593
[ "MIT" ]
permissive
commaai/chffrplus
fee9178a96a5a15857f26d5fa62fd1f19d3a24c3
12527e1a686753cfc6215461f474bda9211878a0
refs/heads/release2
2021-10-24T01:24:44.271176
2018-12-18T02:49:54
2018-12-18T02:49:54
107,477,295
138
65
MIT
2021-01-27T13:04:17
2017-10-19T00:14:01
C
UTF-8
Python
false
false
821
py
values.py
from selfdrive.car import dbc_dict class CAR: FUSION = "FORD FUSION 2018" FINGERPRINTS = { CAR.FUSION: [{ 71: 8, 74: 8, 75: 8, 76: 8, 90: 8, 92: 8, 93: 8, 118: 8, 119: 8, 120: 8, 125: 8, 129: 8, 130: 8, 131: 8, 132: 8, 133: 8, 145: 8, 146: 8, 357: 8, 359: 8, 360: 8, 361: 8, 376: 8, 390: 8, 391: 8, 392: 8, 394...
ee86d83fd185faf948cfdeaba364d11e2593d3ab
0869d7edac80e8aebe951682a2cc311a083eade3
/Python/tdw/FBOutput/AvatarTransformMatrices.py
91fc7631a56d70d4cfd0ab41ccc3378cbd066826
[ "BSD-2-Clause" ]
permissive
threedworld-mit/tdw
7d5b4453832647733ff91ad7a7ce7ec2320454c1
9df96fba455b327bb360d8dd5886d8754046c690
refs/heads/master
2023-09-01T11:45:28.132298
2023-08-31T16:13:30
2023-08-31T16:13:30
245,492,977
427
75
BSD-2-Clause
2023-09-14T17:36:12
2020-03-06T18:42:09
Python
UTF-8
Python
false
false
3,893
py
AvatarTransformMatrices.py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class AvatarTransformMatrices(object): __slots__ = ['_tab'] @classmethod def GetRootAsAvatarTransformMatrices(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer...
5a50f05c71c772b621237f3db82a23e2c7359255
6dfc23ef65e5943712340ef2b4b648cc25ea1fad
/2018/03/15/How to Use Django REST Framework Permissions/api_example/api_example/languages/models.py
72a92fff417761b2ed0ff888f755334b498a3b37
[ "Unlicense" ]
permissive
PrettyPrinted/youtube_video_code
6d265c910de18d780cdb99f7ea11b8b963929dc2
5654e5feba854d3b41b8dd75218e0221408e7831
refs/heads/master
2023-09-04T21:28:57.386174
2023-08-11T07:07:45
2023-08-11T07:07:45
186,743,986
698
2,347
Unlicense
2022-10-06T04:06:56
2019-05-15T03:40:45
HTML
UTF-8
Python
false
false
517
py
models.py
from django.db import models class Paradigm(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Language(models.Model): name = models.CharField(max_length=50) paradigm = models.ForeignKey(Paradigm, on_delete=models.CASCADE) def __str__(self): ...
a8dbe3ea38de6ad45d4687322666b730ab37c5d4
54922b19f91e172ae7f2f0de7eb8baa4607dd64c
/pylatexenc/latexencode/_unicode_to_latex_encoder.py
d11da68a6a76b4986c4f0e8bd0c587b7c5dcee7e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
phfaist/pylatexenc
3c75afa0d31e676276f61821cd5ba51822eaced0
1d36361c58db305e3e3edf2f9ed17344047fdcca
refs/heads/main
2023-09-04T04:48:40.626633
2023-08-29T14:54:36
2023-08-29T14:54:36
20,764,371
227
36
MIT
2023-07-27T10:27:41
2014-06-12T10:57:49
Python
UTF-8
Python
false
false
20,894
py
_unicode_to_latex_encoder.py
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2021 Philippe Faist # # 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 t...
4ef0eb2ef68e5454c5b17c108af865d4580e3508
38fff7bdefd8d62a740d51329b50d0e1e49258bb
/projects/aiohttp/fuzz_payload_url.py
8d4fd3d9f95fcf8c1df76d747690a2a6f787b585
[ "Apache-2.0" ]
permissive
google/oss-fuzz
026384c2ada61ef68b147548e830f60730c5e738
f0275421f84b8f80ee767fb9230134ac97cb687b
refs/heads/master
2023-08-31T23:30:28.157702
2023-08-31T21:49:30
2023-08-31T21:49:30
63,809,205
9,438
2,315
Apache-2.0
2023-09-14T20:32:19
2016-07-20T19:39:50
Shell
UTF-8
Python
false
false
1,200
py
fuzz_payload_url.py
#!/usr/bin/python3 # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
82a7f78ace99895da24efa5bf2a5618770dee4ec
88c4d5b462998a9c0411a0243ab95ee05ffee60a
/src/graphql/type/assert_name.py
d1fe8dd6e02aeacbba7be1d7aab95b5e8e5d3ce5
[ "MIT" ]
permissive
graphql-python/graphql-core
606f3f3d479d576a4bdcd7d7995c0fddc486282f
0c93b8452eed38d4f800c7e71cf6f3f3758cd1c6
refs/heads/main
2023-09-04T09:22:45.162575
2023-06-09T22:13:10
2023-06-09T22:13:10
143,207,933
259
101
MIT
2023-06-09T22:13:11
2018-08-01T20:57:07
Python
UTF-8
Python
false
false
1,053
py
assert_name.py
from ..error import GraphQLError from ..language.character_classes import is_name_continue, is_name_start __all__ = ["assert_name", "assert_enum_value_name"] def assert_name(name: str) -> str: """Uphold the spec rules about naming.""" if name is None: raise TypeError("Must provide name.") if not...
87361e21d758da4a085f82dac219bbc13ff6fb89
e22fd36933c9114a9df1694e7a6274bf059de2a6
/selfdrive/debug/read_dtc_status.py
9ad5563975f70ef5488edacbae29bdb657758bb6
[ "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,435
py
read_dtc_status.py
#!/usr/bin/env python3 import sys import argparse from subprocess import check_output, CalledProcessError from panda import Panda from panda.python.uds import UdsClient, SESSION_TYPE, DTC_REPORT_TYPE, DTC_STATUS_MASK_TYPE from panda.python.uds import get_dtc_num_as_str, get_dtc_status_names parser = argparse.ArgumentP...
5a14460ee9751d80b2d0723ef223cf8e46e2bcf6
967968e56ec17a2ee641af84cfca669c1d16a6f1
/tests/ad/ldap_configuration/test_ldap_configuration_schema.py
27e0f84bebc3cbcf8600ef207a01664827b8af53
[ "MIT" ]
permissive
tenable/pyTenable
72108c2564682e65cba181ded6ef6a9c990ef004
4e31049891f55016168b14ae30d332a965523640
refs/heads/master
2023-08-30T23:26:33.161062
2023-08-08T04:39:04
2023-08-08T04:39:04
114,689,090
300
211
MIT
2023-08-08T04:39:05
2017-12-18T21:23:01
Python
UTF-8
Python
false
false
1,885
py
test_ldap_configuration_schema.py
''' Testing the ldap configuration schemas ''' import pytest from tenable.ad.ldap_configuration.schema import LDAPConfigurationSchema @pytest.fixture() def ldap_configuration_schema(): return { 'enabled': True, 'url': 'customer.tenable.ad', 'search_user_dn': 'customer.tenable.ad', ...
08b7935f4bdd20dc266e219d3fbb302985601ec4
21be7833b4935fb4a8f39b816fe868d6cda78b07
/termius/core/utils.py
53c202de0977d774cebedf8a3bd88508e6bdb532
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
termius/termius-cli
dd45295dada12ee5dbd7a864e6fcf634dfbd02a3
2664d0c70d3d682ad931b885b4965447b156c280
refs/heads/master
2023-09-05T18:53:04.812354
2021-04-05T04:10:56
2021-04-05T04:10:56
10,905,793
262
41
NOASSERTION
2023-03-30T21:40:42
2013-06-24T11:00:03
Python
UTF-8
Python
false
false
824
py
utils.py
# -*- coding: utf-8 -*- """Miscellaneous extra functions.""" from six import PY2, PY3 if PY2: p_input = raw_input p_map = map def to_bytes(s): if isinstance(s, str): return s if isinstance(s, unicode): return s.encode('utf-8') to_str = to_bytes def bchr(s...
60e7810594ddffce4a1ffaf2ab57af80a5dce42b
7c3bace625eb6ece1b06326940b8e89ba3fdc68f
/airtest/core/device.py
56245c873c82515eebdda317fe1aae3f6af5f35a
[ "Apache-2.0" ]
permissive
AirtestProject/Airtest
64c218a54e6a28cba42af0ffe8a81d30703ffcca
bf49dfad0be05125df75c64ea47a282132bc03d5
refs/heads/master
2023-08-31T05:31:32.059552
2023-08-22T06:23:36
2023-08-22T06:23:36
118,709,540
7,580
1,256
Apache-2.0
2023-08-22T06:23:37
2018-01-24T04:00:35
Python
UTF-8
Python
false
false
2,000
py
device.py
# encoding=utf-8 from six import with_metaclass class MetaDevice(type): REGISTRY = {} def __new__(meta, name, bases, class_dict): cls = type.__new__(meta, name, bases, class_dict) meta.REGISTRY[name] = cls return cls class Device(with_metaclass(MetaDevice, object)): """base cla...
386b699634e3ececb1623ccf0170ef583d3dcfd4
58cc3f8a833ca18a7bec1048d00d38f17fa72cd8
/research/frombase2.py
b81cb9b55aaf947fb5dfa4e11e47ad1aa70ef056
[ "BSD-3-Clause" ]
permissive
dropbox/rust-brotli
b3e46c619f9e4394416ad465e7219e0ff33515d6
e216a8a8ec15b875ffe76c06e0a3bf562af67c20
refs/heads/master
2023-09-02T01:21:50.846998
2022-10-28T06:37:01
2023-01-16T00:36:19
56,421,556
765
93
BSD-3-Clause
2023-08-27T19:11:54
2016-04-17T06:01:45
Rust
UTF-8
Python
false
false
375
py
frombase2.py
import sys result = [] cur_count = 0 cur_val = 0 for byte in sys.stdin.read(): if byte == '1': cur_val |= (1<<cur_count) elif byte != '0': break cur_count += 1 if cur_count == 8: result.append(chr(cur_val)) cur_val = 0 cur_count = 0 if cur_count != 0: result....
92bbc5a684ae9b87f4642502d2ab859125e95887
9258c2915fafe684c9bb6fb09e27bca9e8a5ffcd
/tests/test_strrange.py
eab8ca5465d16861149932fc4a6a8f7aeacdeff1
[ "MIT" ]
permissive
runfalk/spans
0b876c9c29ddb8b7580192e32fa21f537f4d6aa4
1584ec3d997eca924e37c282cba9c67cb7e0c9df
refs/heads/master
2022-12-24T17:53:14.411842
2022-06-19T10:56:08
2022-06-19T11:01:32
12,484,739
127
12
MIT
2022-12-09T06:52:51
2013-08-30T11:16:12
Python
UTF-8
Python
false
false
616
py
test_strrange.py
import sys import pytest from spans import strrange @pytest.mark.parametrize( "span, last", [ (strrange("a", "c"), "b"), (strrange("aa", "cc"), "cb"), ], ) def test_last(span, last): assert span.last == last @pytest.mark.parametrize( "a, b", [ ("", ""), ("b"...
84b9bcce248cdcf6200b576700c71ffd09f869b0
e7727fbb00c73818de931a584af58657eeb69513
/dymos/examples/racecar/accelerationODE.py
1aeda9a9bc635c44f182bd35bbe541d601c5e87f
[ "Apache-2.0" ]
permissive
OpenMDAO/dymos
f3bb20ebccf5f9408295403c72cb1b25c8e48019
1aca42a4fedcca6e493c5516fadc2d78e4709797
refs/heads/master
2023-08-18T15:30:20.664129
2023-08-09T12:33:12
2023-08-09T12:33:12
121,387,262
165
56
Apache-2.0
2023-09-14T17:51:14
2018-02-13T13:44:34
Python
UTF-8
Python
false
false
3,523
py
accelerationODE.py
import openmdao.api as om import numpy as np class AccelerationODE(om.ExplicitComponent): def initialize(self): self.options.declare('num_nodes', types=int) def setup(self): nn = self.options['num_nodes'] # constants self.add_input('tau_y', val=0.2, desc='lateral load transf...
2bfc76e78c1294b6cc7b35adf38d7d307cd16c27
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/tutorials/cpu/cpu_best_practises.py
92be58bf28fb521c5e7e175ea4e10660407b7d66
[ "Apache-2.0" ]
permissive
dmlc/dgl
3a8fbca3a7f0e9adf6e69679ad62948df48dfc42
bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1
refs/heads/master
2023-08-31T16:33:21.139163
2023-08-31T07:49:22
2023-08-31T07:49:22
130,375,797
12,631
3,482
Apache-2.0
2023-09-14T15:48:24
2018-04-20T14:49:09
Python
UTF-8
Python
false
false
3,965
py
cpu_best_practises.py
""" CPU Best Practices ===================================================== This chapter focus on providing best practises for environment setup to get the best performance during training and inference on the CPU. Intel ````````````````````````````` Hyper-threading --------------------------- For specific workloa...
29f9618c7e899f2e34ee0e678412cb0141d1e8be
9b1eda0abdc5dea7c6e9695ff4e1098abe0a708b
/docs/examples/widgets/sparkline_colors.py
d6a4549a6e014003e24421c406cfd1ecb95bb8ec
[ "MIT" ]
permissive
Textualize/textual
b8cf4b5d18069fccc7623b3116436f479e1ef446
b74ac1e47fdd16133ca567390c99ea19de278c5a
refs/heads/main
2023-08-30T21:40:21.563823
2023-08-30T10:18:27
2023-08-30T10:18:27
355,959,597
14,818
588
MIT
2023-09-14T20:22:02
2021-04-08T15:24:47
Python
UTF-8
Python
false
false
979
py
sparkline_colors.py
from math import sin from textual.app import App, ComposeResult from textual.widgets import Sparkline class SparklineColorsApp(App[None]): CSS_PATH = "sparkline_colors.tcss" def compose(self) -> ComposeResult: nums = [abs(sin(x / 3.14)) for x in range(0, 360 * 6, 20)] yield Sparkline(nums, s...
6edabd3206f6d1edab2d824cd8d4d1e537a52052
bb021c074c95c4fb684cd543b288bc0b976df188
/intake/source/tests/plugin_searchpath/intake_foo/__init__.py
362973e5b9f6042aab1863ea6b909a424be5a359
[ "BSD-2-Clause" ]
permissive
intake/intake
6c96d4bf32f125fbd5df322377ae2a98ac76be99
81b1567a2030adfb22b856b4f63cefe35de68983
refs/heads/master
2023-08-25T14:07:08.855001
2023-08-24T19:49:13
2023-08-24T19:49:13
100,307,970
774
116
BSD-2-Clause
2023-09-11T13:51:16
2017-08-14T20:44:22
Python
UTF-8
Python
false
false
544
py
__init__.py
# ----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. # ----------------------------------------------------------------------...
1ce930df5556099704a4cdfb7c769bb43f8360e8
360328d098a74581d0822fba489dd15e0d4e7ab3
/src/richie/plugins/nesteditem/factories.py
749c14dfc5c55b4161141b8132df306aa0f397a4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
openfun/richie
0cef545486267bfb40e75e5fb2ce2a74f85a53ff
f2d46fc46b271eb3b4d565039a29c15ba15f027c
refs/heads/master
2023-08-31T23:51:37.714179
2023-08-29T15:25:04
2023-08-29T15:48:39
111,388,461
238
96
MIT
2023-09-13T12:48:53
2017-11-20T09:23:40
Python
UTF-8
Python
false
false
411
py
factories.py
""" NestedItem CMS plugin factories """ import factory from .defaults import NESTEDITEM_VARIANTS from .models import NestedItem class NestedItemFactory(factory.django.DjangoModelFactory): """ Factory to create random instances of NestedItem for testing. """ class Meta: model = NestedItem ...
6fb5716491c0dd69402517487d2a5eaa435fdd38
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/event_message_response.py
1e70fd28e9e64b5a1f2040d828023b03299ae8b3
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
2,635
py
event_message_response.py
from __future__ import annotations from dataclasses import dataclass, field from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from .event_message import EventMessage from .response...
7b67405fcaedad8d6ce0b665cfac4c4fa7471544
e7efae2b83216d9621bd93390959d652de779c3d
/win32_event_log/datadog_checks/win32_event_log/utils.py
dfc548fed7259903627dc4b0841aaeace2371a12
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
702
py
utils.py
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import win32api # no cov def get_last_error_message(): # no cov """ Helper function to get the error message from the calling thread's most recently failed operation. It appears that in mo...
e6973a715135c9b47cc035bbf08367a5ea4d05ba
d110546d747d7e3865ce5742d5fca09f404623c0
/salt/modules/boto_asg.py
c52c794679100de2b97e60fbd707cb4c573c9c8c
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
36,550
py
boto_asg.py
""" Connection module for Amazon Autoscale Groups .. versionadded:: 2014.7.0 :configuration: This module accepts explicit autoscale credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further...
4cce01fd0311ac217cab4596214f31df2b5dd6d2
182bbadb0ee7f59f1abd154d06484e555a30c6d8
/api/tests/integration/common/util.py
2584d4b2eab19bc13cca74618cfdd9907233d7bd
[ "Apache-2.0" ]
permissive
epam/Indigo
08559861adf474122366b6e2e499ed3aa56272d1
8e473e69f393c3a57ff75b7728999c5fb4cbf1a3
refs/heads/master
2023-09-02T10:14:46.843829
2023-08-25T08:39:24
2023-08-25T08:39:24
37,536,320
265
106
Apache-2.0
2023-09-14T17:34:00
2015-06-16T14:45:56
C++
UTF-8
Python
false
false
5,575
py
util.py
import os import platform import re import sys REPO_ROOT = os.path.normpath( os.path.join( os.path.abspath(os.path.dirname(__file__)), "..", "..", "..", ".." ) ) system_name = None def overridePlatform(platform): global system_name system_name = platform def isIronPython(): return sys.p...
2d2556ddabc409ea0139c6bfb8fdb0906cc5d444
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/PhysicsTools/PatAlgos/python/tools/trigTools.py
40b39ca45b3d6f8caae3530f8558951d0da0ffee
[ "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
42,361
py
trigTools.py
from __future__ import print_function from builtins import range from PhysicsTools.PatAlgos.tools.ConfigToolBase import * from PhysicsTools.PatAlgos.tools.helpers import * from PhysicsTools.PatAlgos.patEventContent_cff import patTriggerL1RefsEventContent from PhysicsTools.PatAlgos.triggerLayer1.triggerMatcherExamples...
f077b31d0a60a40e66afae1213124bdf15b30f22
833ef1cc5cbd5cf76da144d10d393e30976d9185
/froide/document/migrations/0029_documentcollection_foirequests.py
4c1a6ecde402bbacf66b1674091e2395efef2c48
[ "MIT" ]
permissive
okfde/froide
d022407ec30bf018e6ca587ae9df0b73a8625edf
16e3c69b333fc82cb1e52378fc003ddf071152a7
refs/heads/main
2023-08-31T08:02:23.343743
2023-08-29T07:01:03
2023-08-29T07:01:03
1,700,944
230
48
MIT
2023-09-13T09:10:40
2011-05-04T12:20:51
Python
UTF-8
Python
false
false
492
py
0029_documentcollection_foirequests.py
# Generated by Django 3.2.14 on 2022-07-07 09:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("foirequest", "0055_foiattachment_is_moderated"), ("document", "0028_auto_20220404_1608"), ] operations = [ migrations.AddField( ...
cad60ea8661319df037c118e75a9abd5297b071b
94c1805df5a09c39159d502f420d19ad54b567fc
/runtime/deps/gyp/test/win/vs-macros/targetpath.gyp
a8699ffb25341970cfd37e644f5c5859d79f9e70
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
tmikov/jscomp
9805a5a4d06520549c57380f0df4a1c0aa0dab56
83828441cb38ec96603a6a60be06977d4852940a
refs/heads/develop
2021-01-19T02:56:35.102659
2016-04-12T06:19:30
2016-04-12T06:19:30
36,981,674
237
13
Apache-2.0
2018-10-14T09:48:12
2015-06-06T13:49:26
C
UTF-8
Python
false
false
1,425
gyp
targetpath.gyp
# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'test_targetpath_executable', 'type': 'executable', 'sources': ['hello.cc'], 'msvs_settings': { ...
356879d104eed5054cd14a027a868bfaff291f18
a675b8eb42745a8e08bc09153705cca2a3dc44f7
/SibeliaZ-LCB/maf_to_gfa1.py
33f2321b6c14c70a5ff0ea731e81a7a5b6a1ebef
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
medvedevgroup/SibeliaZ
72363086d54e814ed8f34594ec1e6f4b4864759e
2a902eec247895ceeb810f7936857929431e2dc5
refs/heads/master
2022-10-02T03:52:09.675803
2022-09-29T04:16:45
2022-09-29T04:16:45
78,565,121
136
20
NOASSERTION
2022-09-29T03:35:49
2017-01-10T19:12:59
C++
UTF-8
Python
false
false
7,619
py
maf_to_gfa1.py
import sys import numpy import argparse import collections from Bio.Seq import Seq from Bio import SeqIO from Bio.Alphabet import IUPAC from Bio.SeqRecord import SeqRecord MafRecord = collections.namedtuple( 'MafRecord', ['seq_name', 'start', 'size', 'strand', 'seq_size', 'body']) def pos_start(record): if re...
9ae9a73554cfc55c0cc7f21784c8a0f47f733a85
2bf27eb2faef64cef8987a9366e322d2ddcac7c9
/meta_blocks/samplers/uniform.py
bc1d288096bf1187b5ef1c87505e53c1eb0a3f22
[]
permissive
alshedivat/meta-blocks
5bf4193111f22f6538d4fa52929bdbc656692503
6f6d93dfaab75766e8afdf9eb2fad17dc79218f2
refs/heads/master
2023-04-27T20:34:36.410434
2020-06-22T01:15:34
2020-06-22T01:37:27
242,857,817
130
8
BSD-3-Clause
2020-05-12T15:32:19
2020-02-24T22:29:29
Python
UTF-8
Python
false
false
2,646
py
uniform.py
"""Uniform sampling in NumPy.""" from typing import Optional, Tuple import numpy as np from meta_blocks.samplers import base from meta_blocks.tasks.base import TaskDistribution __all__ = ["UniformSampler"] class UniformSampler(base.Sampler): """Samples instances uniformly at random.""" stateful = False ...
2f3d7ac21d196959cfb0495a92f9e517e12ecc10
c1b8b6080f29c8037100080298b897618a826475
/gammapy/maps/tests/test_axes.py
27c0d6698b465f124c81396728e98bf11c594450
[ "BSD-3-Clause" ]
permissive
gammapy/gammapy
a5d7acbdde848e92e124fefbce9716faa296f572
60f03adb8fc7851b9f3ca039512c03a669e3fe10
refs/heads/main
2023-08-16T21:19:06.624561
2023-08-04T12:13:08
2023-08-04T12:13:08
10,073,640
204
184
BSD-3-Clause
2023-09-14T15:26:05
2013-05-15T07:50:40
Python
UTF-8
Python
false
false
29,152
py
test_axes.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np from numpy.testing import assert_allclose, assert_equal import astropy.units as u from astropy.table import Table from astropy.time import Time from astropy.visualization import quantity_support import matplotlib.pyplot as ...
c535804def451776f5adbbe8594e755dc198f176
20f1a157f45e95027d3e40536b26b6867f902d21
/openwisp_users/admin.py
07af694b68398554f81bdb713f12694aabfe1f74
[ "LicenseRef-scancode-unknown-license-reference" ]
permissive
openwisp/openwisp-users
544a3d8f99cb24fdc18bda7948811c0b422e3336
8403e5a242b2a4605868592729b18c2b520f2ec8
refs/heads/master
2023-08-24T12:28:10.604419
2023-08-17T17:29:23
2023-08-17T17:29:23
84,102,610
189
77
BSD-3-Clause
2023-08-17T17:29:25
2017-03-06T17:41:34
Python
UTF-8
Python
false
false
25,518
py
admin.py
import logging from copy import deepcopy from allauth import app_settings as allauth_settings from allauth.account.models import EmailAddress from django import forms from django.apps import apps from django.conf import settings from django.contrib import admin, messages from django.contrib.admin.actions import delete...
dff3d74fdb25220ba402095c5345c67344025160
9efca95a55cb4df52d895d42f1ec10331516a734
/tests/test_mu.py
020bee024ae5379d1565a6ef3e390fd5322acbba
[ "Apache-2.0" ]
permissive
cloud-custodian/cloud-custodian
519e602abe00c642786441b64cc40857ef5bc9de
27563cf4571040f923124e1acb2463f11e372225
refs/heads/main
2023-09-04T10:54:55.963703
2023-09-01T17:40:17
2023-09-01T17:40:17
52,837,350
3,327
1,096
Apache-2.0
2023-09-14T14:03:30
2016-03-01T01:11:20
Python
UTF-8
Python
false
false
52,693
py
test_mu.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import importlib import json import logging import os import platform import py_compile import shutil import site import sys import tempfile import time import unittest from unittest import mock from unittest.mock import patch import zipfile...
ad72f7152b54d9b57a06f892a282a64cf7d9d1cb
110044654f706e920380dad2779bb32a77f1f26f
/test/Glob/glob-libpath.py
b688b7ef37015e6b1dac2fdf9203374ac297dd4a
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SCons/scons
89327bb9635cee6e7cc59249edca9cd859d7d1ff
b2a7d7066a2b854460a334a5fe737ea389655e6e
refs/heads/master
2023-09-01T19:37:03.603772
2023-08-28T04:32:42
2023-08-28T04:32:42
104,670,160
1,827
342
MIT
2023-09-14T15:13:21
2017-09-24T19:23:46
Python
UTF-8
Python
false
false
2,795
py
glob-libpath.py
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, ...
3d6ecd3c1af34d70536ebab52f3d37ca9b4fe4f6
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/20_杂题/滴滴历届编程题真题/5_宅男的生活-记忆化dfs.py
6de248afeb3e7bf460ad8269544811b10c307316
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,675
py
5_宅男的生活-记忆化dfs.py
# 2 <= n <= 64 # 他想雨露均沾对待这两件事情,每件事情都刚好占用 n/2 天时间 # 他不想连续 d 天在做同一件事情(如果在某一件事情花费的时间已经到 n/2 天了, # 剩下时间只能做另外一件事情,这种情况除外) # 第一天的选择和最后一天的选择不一样 # 现在他想知道有多少种方案安排自己的时间 from functools import lru_cache def solve(): n, d = map(int, input().split()) # 分别表示当前天数,上一个选择,上一个选择的连续天数,两个选择分别的剩余天数,以及第一天的选择 @l...
22e8520fafaf0d66b17d9d71f0c39bde28a14ff6
5e255ad1360c90478393744586663741a9569c21
/tests/async_api/test_get_profile.py
1b93f1d546110526e8fa7281dd2383dbad774a1a
[ "Apache-2.0" ]
permissive
line/line-bot-sdk-python
d76268e8b542060d6eccbacc5dbfab16960ecc35
cffd35948238ae24982173e30b1ea1e595bbefd9
refs/heads/master
2023-08-31T22:12:31.698183
2023-08-28T01:10:09
2023-08-28T01:10:09
70,553,423
1,898
1,181
Apache-2.0
2023-09-11T05:14:07
2016-10-11T03:42:26
Python
UTF-8
Python
false
false
1,518
py
test_get_profile.py
# -*- coding: utf-8 -*- # 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,...
6791d5fa3d70fe69469a4424a5d833de2d194266
c3542b98289c1ba85f62d08b5edbe1a3c18f3c80
/BoardGame-CLI/uno.py
4f36372a5f89d29a6a784f9724f4ce88e7f32c9c
[ "LicenseRef-scancode-unknown", "GPL-1.0-or-later", "MIT" ]
permissive
geekcomputers/Python
16674289843f89f6cc287097f033b928f4181d84
bc55e2a2c5a98f4c7597e901a04457dfb9d5df0c
refs/heads/master
2023-08-18T21:04:18.163283
2023-08-17T17:38:16
2023-08-17T17:38:16
2,881,789
32,418
15,024
MIT
2023-09-02T18:40:33
2011-11-30T09:04:08
Python
UTF-8
Python
false
false
5,559
py
uno.py
# uno game # import random """ Generate the UNO deck of 108 cards. Parameters: None Return values: deck=>list """ def buildDeck(): deck = [] # example card:Red 7,Green 8, Blue skip colours = ["Red", "Green", "Yellow", "Blue"] values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "Draw Two", "Skip", "Reve...
c2f2e30ec1d5285f41562c1a5e4f4c61b8b31c73
867364dc92d3236f5b42aa4fe82ee69d008d09e5
/insomniac/action_runners/core.py
5373fabc3aaf66ddb6a0a1886fe5e45b87db63bf
[ "MIT" ]
permissive
alexal1/Insomniac
6acde5a6e4b4d50e4e0d4fb233fb2e0f98d52314
03e25aeaae5b38a0e47a4dfd705a3140ff2e8086
refs/heads/master
2023-09-03T16:56:23.546483
2022-09-03T14:21:08
2022-09-03T14:21:08
268,484,843
666
194
MIT
2022-03-01T23:12:28
2020-06-01T09:55:52
Python
UTF-8
Python
false
false
1,296
py
core.py
from abc import ABC from enum import unique, Enum @unique class ActionState(Enum): PRE_RUN = 0 RUNNING = 1 DONE = 2 SOURCE_LIMIT_REACHED = 3 SESSION_LIMIT_REACHED = 4 class ActionStatus(object): def __init__(self, state): self.state = state self.limit_state = None def se...
f07a7cda6f19702c30793784f9539823cba8d69b
100bfa827dacb23637d3dd2d1396a830c7d9a4b2
/mode/examples/Basics/Control/Conditionals1/Conditionals1.pyde
88836a541c38a0f8b09d9105b4cb197b87c58327
[ "Apache-2.0" ]
permissive
jdf/processing.py
82b37e5b1f4ce68825b5fe919205362ecdc16993
f38544c70892c7534f059e8acc1c9a492e2b7c86
refs/heads/master
2023-08-26T01:42:50.442853
2023-02-15T21:33:12
2023-02-15T21:33:12
833,574
1,399
246
Apache-2.0
2023-02-21T12:28:09
2010-08-12T14:29:22
Python
UTF-8
Python
false
false
653
pyde
Conditionals1.pyde
""" Conditionals 1. Conditions are like questions. They allow a program to decide to take one action if the answer to a question is true or to do another action if the answer to the question is false. The questions asked within a program are always logical or relational statements. For example, if the variable 'i' i...
25404bbc6a20fed79f5ba2b14b704e9d532ac6ca
5130754859e274cd06f63260439e5203c2000a11
/core/domain/app_feedback_report_domain_test.py
67c4106245516a24c717144851bcb1597bb2cefe
[ "Apache-2.0" ]
permissive
oppia/oppia
8ebc9c7c7f2b336e9a79ce04533abe3956f48cbe
d16fdf23d790eafd63812bd7239532256e30a21d
refs/heads/develop
2023-09-04T07:50:13.661276
2023-09-03T09:21:32
2023-09-03T09:21:32
40,687,563
6,172
4,666
Apache-2.0
2023-09-14T18:25:11
2015-08-14T00:16:14
Python
UTF-8
Python
false
false
80,999
py
app_feedback_report_domain_test.py
# coding: utf-8 # # Copyright 2021 The Oppia 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 requi...
91c2f7a2a4670d5b7456138472abe972ac481420
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/unit/modules/test_win_path.py
7dad024a8783dda3f40683abbc15dfdf77cbdb34
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
8,959
py
test_win_path.py
""" :codeauthor: Rahul Handay <rahulha@saltstack.com> """ import os import pytest import salt.modules.win_path as win_path import salt.utils.stringutils import salt.utils.win_reg as reg_util from tests.support.mock import MagicMock, patch pytestmark = [pytest.mark.windows_whitelisted, pytest.mark.skip_unless_on_wi...
074c1e517ec371d54fcdc8c0a9a7af36313fde77
620323fc090cebaf7aca456ff3f7fbbe1e210394
/Decorators__examples/thread.py
bbb34bd2e36a02f4f9ce3799031dc7c1d4dd7cb9
[ "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
858
py
thread.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import time from threading import Thread def thread(my_func): def wrapper(*args, **kwargs): my_thread = Thread(target=my_func, args=args, kwargs=kwargs) my_thread.start() return wrapper if __name__ == "__main__": ...
09576aa348035d8f1e17a44b150ffa3fe8b353f6
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/google/cloud/aiplatform/metadata/metadata.py
8947f3ea75e70c342bb9c31a67baa2baa5a4b9e6
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
38,620
py
metadata.py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
d79d09be2ea87265c29478bab3ea715992098b2c
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/test_client_regress/views.py
91b8bdfefc4a44d39ce19849e76a211744d36267
[ "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
5,211
py
views.py
from urllib.parse import urlencode from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.shortcuts import render from django.template.loader import render_to_string from django.test import Client f...
b2d7c65032d5b70e975ab7c8b01fee073b56895b
7c91ff850f81bf8759b055971d592a71ef025732
/pyglet/media/drivers/silent/__init__.py
ebf66602590f5bffb4058c9e644d2de67d03db68
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
pyglet/pyglet
d9da2cccd52a6bc5c09548536876602f6e1412f0
094c638f0529fecab4e74556487b92453a78753c
refs/heads/master
2023-08-17T15:08:09.192350
2023-08-17T01:51:50
2023-08-17T01:51:50
191,043,601
1,687
427
BSD-3-Clause
2023-09-14T08:51:31
2019-06-09T18:55:00
Python
UTF-8
Python
false
false
127
py
__init__.py
from . import adaptation def create_audio_driver(): return adaptation.SilentDriver() __all__ = ["create_audio_driver"]