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
b601b9236c3c654c76b6d861129cd8a511015194
475379bd6bd3a21d313d390d8bea3e8243df0c1f
/gspread_formatting/models.py
85499eb531076852faf454ad9de103cb8897ad7c
[ "MIT" ]
permissive
robin900/gspread-formatting
5fbfc038a860f7ede14e2df229cecdbff215c782
e895e0eb2bd81fdfbdb4af6618a088adbbc8cd1a
refs/heads/master
2023-02-04T10:46:53.938807
2022-12-06T00:47:22
2022-12-06T00:47:22
141,719,106
142
15
MIT
2023-01-30T06:19:13
2018-07-20T14:02:33
Python
UTF-8
Python
false
false
10,747
py
models.py
# -*- coding: utf-8 -*- from .util import _props_to_component, _extract_props, _extract_fieldrefs, \ _parse_string_enum, _underlower, _range_to_gridrange_object import re class FormattingComponent(object): _FIELDS = () _DEFAULTS = {} @classmethod def from_props(cls, props): ...
0a3858136c3b9ca7811bfc18ba4c7fe9927f6359
bd3a1843e2b0dc15837628c77f73e95a9bb1264f
/PyFunceble/checker/availability/extras/rules.py
0e432cac3bbf28b784f2964bd179360f3a0c553f
[ "Apache-2.0" ]
permissive
funilrys/PyFunceble
404c64d1b281d4ae06a939b54f4088d63e12b828
214a57d0eca3df7c4ed3421937aaff9998452ba6
refs/heads/dev
2023-06-24T18:39:29.372775
2023-06-18T13:15:39
2023-06-18T13:15:39
106,995,518
267
62
Apache-2.0
2023-08-25T16:05:17
2017-10-15T08:25:14
Python
UTF-8
Python
false
false
9,211
py
rules.py
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
9e1b789926a2263cc29c2d4d3b52f40e5cfb88d0
77f787be8d7822b4959d2d34e30c4440dc849369
/POMDP/common/policy_networks.py
3e323729023d5755efb1bad6fad1bbd8f656fe9f
[ "Apache-2.0" ]
permissive
quantumiracle/Popular-RL-Algorithms
7f7a86d7d0780b98dd2e9238a6aca0fe2cb5afc7
1bbefe559e0f1764663623e1cc2326b94689775a
refs/heads/master
2023-05-25T01:25:18.679702
2023-05-11T15:50:13
2023-05-11T15:50:13
182,318,468
610
66
Apache-2.0
2023-02-15T21:31:59
2019-04-19T19:56:47
Jupyter Notebook
UTF-8
Python
false
false
19,359
py
policy_networks.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions import Normal import math from .initialize import * class PolicyNetworkBase(nn.Module): """ Base network class for policy function """ def __init__(self, state_space, action_space, action_range): ...
72962a5489e0fa287857b21f729c5a658da35530
ff3418cbef572dbd05a0b34d7b937c49a3716739
/services/workshop/crapi/mechanic/views.py
35bdc6fab5ec7d11008add4e955db8b60ce0e632
[ "Apache-2.0" ]
permissive
OWASP/crAPI
1267c29eeb7c37b80df485f16f792715c88b78ff
45e98d77b2fef6004dd36c640bd95b25395d0948
refs/heads/develop
2023-08-29T03:14:02.986213
2023-07-03T07:05:04
2023-07-03T07:05:04
335,756,350
772
236
Apache-2.0
2023-08-30T11:53:20
2021-02-03T21:11:44
Java
UTF-8
Python
false
false
8,254
py
views.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed un...
eb54d7337b539d80d4cdf875a0f30ed1e2719213
75762795be601735f4a5ae80f39ea93ae597b8c1
/apploader/apploader.py
8ae2c37c3d2e2310b083ab4760896f4f0f0ae705
[ "MIT" ]
permissive
leffss/devops
49a60792d2fdbf5152a3db8021185c0b7bff336d
dd590c8bada955f27562a0881ad3445442958f86
refs/heads/master
2023-04-07T01:24:53.052233
2022-08-09T09:15:49
2022-08-09T09:15:49
199,561,033
372
162
MIT
2023-03-31T14:55:52
2019-07-30T02:39:28
JavaScript
UTF-8
Python
false
false
696
py
apploader.py
#!/usr/bin/env python import sys import time from urllib import parse import subprocess def main(): tags = '' try: tags = parse.unquote(sys.argv[1]) if tags.endswith('/'): # 当前URL PROTOCOL协议传过来的数据中无 '/' 时,默认会在字符末尾添加一个 '/',需要去掉 tags = tags[:-1] tags = tags.split('://') ...
a0476be837b672e3762e230ae9a90f9d81bf10fa
2e6681a43dbea7bcf5faa560d4fce0962392ef70
/discordbot.py
cbaa743deee39b4505746b92ec9b1a8f53530e63
[ "MIT" ]
permissive
DiscordBotPortalJP/discordpy-startup
e76532bf26a263d41d062a30892196b12a0ec301
f83f532af40bb8e03f706c242d333e6cc9f25881
refs/heads/master
2023-06-09T02:11:10.924727
2022-09-17T13:36:15
2022-09-17T13:36:15
188,542,186
127
2,485
MIT
2022-09-19T05:23:15
2019-05-25T08:43:36
Python
UTF-8
Python
false
false
555
py
discordbot.py
import discord import traceback from discord.ext import commands from os import getenv intents = discord.Intents.default() intents.message_content = True bot = commands.Bot(command_prefix='/', intents=intents) @bot.event async def on_command_error(ctx, error): orig_error = getattr(error, "original", error) ...
2a8748fbd5cfaebf3d728874ec53076dfe20d110
540bc6acb369f83a59a85999b3906a159c336877
/tests/msodde/test_basic.py
7eed579985ba8d5c244113724aae8a10e92dd70d
[ "MIT", "BSD-2-Clause" ]
permissive
decalage2/oletools
e1ecab4fc79830169fc49f19c54c961661743ab4
fb4546ec1be5f46d53856161e46ea53d7b7e532a
refs/heads/master
2023-09-04T01:20:19.592217
2023-06-27T08:37:53
2023-06-27T08:37:53
59,367,670
2,601
619
NOASSERTION
2023-07-15T03:17:02
2016-05-21T15:37:49
Python
UTF-8
Python
false
false
9,607
py
test_basic.py
""" Test some basic behaviour of msodde.py Ensure that - doc and docx are read without error - garbage returns error return status - dde-links are found where appropriate """ from __future__ import print_function import unittest import sys import os from os.path import join, basename from oletools import msodde from...
79621d88f4fa1a8df8805687637798daa08c6e97
912e1480abf5eff4ad759f6d0aee0e90cb19a6a8
/glm-stubs/__init__.pyi
8befeea55f0287da8e486dea59dcc1afa426f8d9
[ "MIT", "Zlib", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Zuzu-Typ/PyGLM
c6c82aabd8b513b72133bfe1c66a99eeb4f5c5b0
9f2cdfee23271cad6edf2c815bdf590a92d9b38f
refs/heads/master
2023-03-02T14:28:45.682168
2023-02-26T20:00:07
2023-02-26T20:00:07
100,879,902
180
29
Zlib
2023-02-26T20:00:09
2017-08-20T18:09:44
C
UTF-8
Python
false
false
725,558
pyi
__init__.pyi
# generated by tools/generate.py # https://github.com/esoma/pyglm-typing/ import ctypes from typing import (Any, Callable, Generator, Generic, Iterable, List, Literal, Optional, SupportsInt, Tuple, Type, TypeVar, Union, overload) from . import glm_typing _T = TypeVar('_T') _V...
601eebb57d5a61f187ffda3fb1c570b0cc9c0a82
57360fe68f1dd92c862edd4ce14b60622e8fffc8
/plo_perf.py
8ff9bb2aac9ad367b8dbcb7355f8796147d28dc2
[ "MIT" ]
permissive
ihendley/treys
31c4930e99b35999080505cf4772eeed92ddbbb7
70fbaade2f9b63ee3ea41b54aed7be2c921add7e
refs/heads/master
2023-07-20T04:10:51.002997
2023-03-09T00:45:42
2023-03-09T00:45:42
113,833,749
105
63
MIT
2023-07-15T02:24:10
2017-12-11T08:39:51
Python
UTF-8
Python
false
false
1,450
py
plo_perf.py
import time from treys.deck import Deck from treys.evaluator import PLOEvaluator def setup(n: int, m: int) -> tuple[list[list[int]], list[list[int]]]: deck = Deck() boards = [] hands = [] for _ in range(n): boards.append(deck.draw(m)) hands.append(deck.draw(4)) deck.shuffle...
396a68041d8db1848a04c7a7494ac83d73768276
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/torch_geometric/utils/subgraph.py
89c37b9c41fd64b6552cb396eff07682f567b597
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
12,307
py
subgraph.py
from typing import List, Optional, Tuple, Union import torch from torch import Tensor from torch_geometric.typing import OptTensor, PairTensor from torch_geometric.utils.map import map_index from torch_geometric.utils.mask import index_to_mask from torch_geometric.utils.num_nodes import maybe_num_nodes def get_num_...
d32d8549701569400c4216ee474c6888920b2b13
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/accounting/migrations/0011_remove_softwareproduct.py
9144ad633543096e9a571b10197e7b9dc97d9242
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
1,144
py
0011_remove_softwareproduct.py
# Generated by Django 1.10.7 on 2017-04-24 02:10 from django.db import migrations, models def _copy_product_name_to_product_rate_name(apps, schema_editor): SoftwareProductRate = apps.get_model('accounting', 'SoftwareProductRate') for product_rate in SoftwareProductRate.objects.all(): product_rate.nam...
b0ca9d97720cdaa59874673584ad5209345e5d97
c675ff5fcd3b13fa39352bb8cac11d75262659a8
/reactivex/observable/startasync.py
458acf7633c50381c712650551aae0d3bd27f74f
[ "MIT" ]
permissive
ReactiveX/RxPY
469eb714996c205989e99899a6f1ab1ae2f42dd0
af1663d35810fdcd4c25a3ed2e8f0d71b55c341d
refs/heads/master
2023-08-14T19:27:40.086304
2023-01-08T10:02:08
2023-03-04T15:33:19
8,946,089
4,764
467
MIT
2023-09-05T02:53:16
2013-03-22T06:16:54
Python
UTF-8
Python
false
false
409
py
startasync.py
from asyncio import Future from typing import Callable, TypeVar from reactivex import Observable, from_future, throw _T = TypeVar("_T") def start_async_(function_async: Callable[[], "Future[_T]"]) -> Observable[_T]: try: future = function_async() except Exception as ex: # pylint: disable=broad-exce...
d225da02dbef5fbbdeb70d51f3fe1776848f9d14
67e7b24b09baf01d7d638f0187bae5000d2a4f01
/programl/exceptions.py
35b0a55fdb4e6bb092b03e38929d9b66cbca6b85
[ "Apache-2.0" ]
permissive
ChrisCummins/ProGraML
fae70aa803294dcb22bb9c131ecdfe6b50f8acdb
d5df3cc0744983e84d3ae22079ae614b81edf6b0
refs/heads/development
2023-08-04T03:59:19.005865
2023-06-14T06:25:45
2023-06-14T06:25:45
223,848,498
257
61
NOASSERTION
2023-07-06T19:52:35
2019-11-25T02:49:35
C++
UTF-8
Python
false
false
946
py
exceptions.py
# Copyright 2019-2020 the ProGraML authors. # # Contact Chris Cummins <chrisc.101@gmail.com>. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
2d208552dc619bc068d049509aa1aafbe8964678
6d4e46adfe4f393b27d6443e5e8027b56ffcc0c9
/ISCX-preproc/deeppacket.py
6ed7cae7887d8f44810e85292a66418862b0febf
[ "MIT" ]
permissive
PrivPkt/PrivPkt
8d6838a70ef8f8f77f00c97f652a544b1b675a82
4ef9aafd3afdf586a2467b2e1ce7ce1df81bbc19
refs/heads/master
2023-05-12T17:01:25.983206
2023-02-01T09:14:31
2023-02-01T09:14:31
225,086,872
101
18
MIT
2023-05-01T20:37:29
2019-12-01T00:23:10
Python
UTF-8
Python
false
false
4,968
py
deeppacket.py
import numpy as np from filepath.filepath import fp from pyspark.sql.types import Row from pyspark.taskcontext import TaskContext from scipy.io import savemat from scapy.all import * from scapy.all import DNS, TCP, IPv6, IP, UDP from kabab.flow import explode_pcap_to_packets from kabab.utils.general import get_label,...
b809595533fc684eec74b883a0fbef0129e2e498
464367c7180487bba74097d6b229174b53246676
/tests/riscv/state_transition/state_transition_by_all_state_elem_types_force.py
ed91bfeaab410f165bd856838edf31addb8e6175
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
openhwgroup/force-riscv
5ff99fd73456b9918a954ef1d29997da2c3f2df7
144fb52a99cde89e73552f88c872c05d2e90b603
refs/heads/master
2023-08-08T14:03:54.749423
2023-06-21T02:17:30
2023-06-21T02:17:30
271,641,901
190
53
NOASSERTION
2023-09-14T01:16:08
2020-06-11T20:36:00
C++
UTF-8
Python
false
false
4,635
py
state_transition_by_all_state_elem_types_force.py
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
a0ecb732cb47a9a00e9f66ca63d18c9361134931
7d0ec722264c72bd38444d92940270d4033c8783
/frameworks/H2OAutoML/__init__.py
5965131811e9592065bea671587443451cc7779c
[ "MIT" ]
permissive
openml/automlbenchmark
2409a86c10dce1e2a5054b78cee468e3e2f1962d
54916d646a8eb50a5edca27148fd048752d5099c
refs/heads/master
2023-08-17T23:59:01.322551
2023-07-28T15:43:59
2023-07-28T15:43:59
143,762,859
357
133
MIT
2023-09-01T12:23:19
2018-08-06T17:45:16
Python
UTF-8
Python
false
false
1,523
py
__init__.py
from amlb.benchmark import TaskConfig from amlb.data import Dataset from amlb.resources import config as rconfig from amlb.utils import call_script_in_same_dir def setup(*args, **kwargs): call_script_in_same_dir(__file__, "setup.sh", *args, **kwargs) def run(dataset: Dataset, config: TaskConfig): from frame...
4bf8ecc93ca271ae6dbff51a5493403decbd6238
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/util/_test_decorators.py
03011a1ffe6223741a8df9d010745323120eae6c
[ "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
6,915
py
_test_decorators.py
""" This module provides decorator functions which can be applied to test objects in order to skip those objects when certain conditions occur. A sample use case is to detect if the platform is missing ``matplotlib``. If so, any test objects which require ``matplotlib`` and decorated with ``@td.skip_if_no_mpl`` will be...
e0402d2cc2985174554cc9f50d4875f2f149316f
4b27890b4ce6e7fd0791eeba09e9ddd6bd23e658
/src/bsdfs/tests/test_polarizer.py
7b3049565b46b5aa1ac6b27762b0ea281ead72db
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
mitsuba-renderer/mitsuba3
f7008bd9056c8f4c2c5f93c3219e8330294a33b7
91b0b7e7c2732a131fac9149bf1db81429e946b0
refs/heads/master
2023-08-18T23:13:51.877647
2023-08-17T09:44:00
2023-08-18T13:08:41
362,484,572
1,510
171
NOASSERTION
2023-09-14T15:28:50
2021-04-28T13:50:41
C++
UTF-8
Python
false
false
15,028
py
test_polarizer.py
import pytest import drjit as dr import mitsuba as mi def test01_create(variant_scalar_mono_polarized): b = mi.load_dict({'type': 'polarizer'}) assert b is not None assert b.component_count() == 1 assert b.flags(0) == mi.BSDFFlags.Null | mi.BSDFFlags.FrontSide | mi.BSDFFlags.BackSide assert b.flags...
59633dfff88031932e2e419b2cca55c96d85ebd6
3b339484c5a784d98ec70e0b134463c88e6e586a
/networks/keras/examples/mnist_acgan.py
5b8e2ef7e5520744d60ece806046ad4c445c2577
[ "Apache-2.0" ]
permissive
plaidml/plaidml
d2dd18f8228d3959ec875b66aa4ff31f6c29ef00
dac460b6ae19a62299d15eeb17b402d8c26d0c2b
refs/heads/master
2023-08-09T18:38:07.681422
2021-07-30T05:10:38
2021-07-30T05:10:38
100,326,126
4,779
516
Apache-2.0
2023-02-14T21:33:05
2017-08-15T01:43:24
C++
UTF-8
Python
false
false
13,529
py
mnist_acgan.py
# -*- coding: utf-8 -*- """ Train an Auxiliary Classifier Generative Adversarial Network (ACGAN) on the MNIST dataset. See https://arxiv.org/abs/1610.09585 for more details. You should start to see reasonable images after ~5 epochs, and good images by ~15 epochs. You should use a GPU, as the convolution-heavy operatio...
f108373b9378ee069769004e54b03bed3f82ffe3
50203b4a349dcb2ed1e72c9f5463d84db8a6e983
/setup.py
665541bc95d0278a4067b568c232302baff879fa
[ "MIT" ]
permissive
earthgecko/skyline
97e43df824d7c92d68086f529f0f3d051a7debb0
c2edc451e63d5eb57117ddcfbc6e79100e706460
refs/heads/master
2023-08-30T08:36:50.740285
2023-06-28T15:33:47
2023-06-28T15:33:47
20,475,900
482
74
NOASSERTION
2023-06-28T15:33:49
2014-06-04T08:33:15
Python
UTF-8
Python
false
false
2,817
py
setup.py
DESCRIPTION = 'Anomaly detection in timeseries data' LONG_DESCRIPTION = 'http://earthgecko-skyline.readthedocs.io' # NAME = 'earthgecko_skyline' NAME = 'skyline' AUTHOR = 'Abe Stanway' AUTHOR_EMAIL = 'abe@etsy.com' MAINTAINER = 'Gary Wilson' MAINTAINER_EMAIL = 'garypwilson@gmail.com' URL = 'https://github.com/earthgeck...
df6772c7c860c96e81e70d4ca56bcbd3ec33a998
e876a1e237ba2c7602191df4618ea5d3f2d581ee
/tests/middleware/test_cors.py
ca3d4f47b0dee237f160d88e3021bdc1878c59cc
[ "BSD-3-Clause" ]
permissive
encode/starlette
f10ae42d3065ac04aeca504c4ac1c968919b33c4
a8b8856ce393a82ab4a714131085dbc4d658e34d
refs/heads/master
2023-08-17T02:18:09.168263
2023-07-24T15:46:24
2023-07-24T15:46:24
138,597,372
8,951
1,072
BSD-3-Clause
2023-09-13T11:50:46
2018-06-25T13:16:21
Python
UTF-8
Python
false
false
18,173
py
test_cors.py
from starlette.applications import Starlette from starlette.middleware import Middleware from starlette.middleware.cors import CORSMiddleware from starlette.responses import PlainTextResponse from starlette.routing import Route def test_cors_allow_all(test_client_factory): def homepage(request): return Pl...
e339af1fecbf12462d3c0c13d3849f33ed804fb1
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoHI/HiTracking/python/hiRegitDetachedTripletStep_cff.py
c527d1ca3cb2064679ad2737397af35cf069913b
[ "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
5,625
py
hiRegitDetachedTripletStep_cff.py
import FWCore.ParameterSet.Config as cms ################################################################################### # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) ################################### 3rd step: low-pT and displaced tracks from pixel triplets fr...
966581d15bc9706447531d7aab3b47e89cb89ba0
f1db7596db665527ec4adf521e1f7853ebd22303
/examples/run_token_level_classification.py
84386ffda36b62549de40891146a757b14019a17
[ "Apache-2.0" ]
permissive
sinovation/ZEN
6935c4d795318edf4778e401f251eeeb10e547fe
d5d9008b19643ae06647a390266030cbf1c1c63c
refs/heads/master
2022-08-11T23:17:18.545933
2022-07-24T02:06:48
2022-07-24T02:06:48
218,951,085
695
112
Apache-2.0
2019-11-03T03:12:35
2019-11-01T09:04:22
Python
UTF-8
Python
false
false
20,358
py
run_token_level_classification.py
# coding: utf-8 # Copyright 2019 Sinovation Ventures AI Institute # # 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...
b6c6848d2f35d525ff9ba8062416dbd63e484851
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/src/cbuild/hooks/post_install/999_lint_devel.py
a153c6698dfa04f07a8c1b5d428dfd11f65307e8
[ "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
1,819
py
999_lint_devel.py
def _lint_static(pkg): if pkg.pkgname.endswith("-static"): return True for v in (pkg.destdir / "usr/lib").rglob("*.a"): allow = not pkg.rparent.options["lto"] or pkg.options["ltostrip"] if not allow or pkg.options["splitstatic"]: pkg.log_red("static libraries should be in th...
7120580db22d303527387ee8911cae6a48efe599
561db82b3e474515a20cb3b1e27c1a02f0c0d08b
/constants/constants.py
53ed4704fdf87059381ba6494aa38be5c05e77ac
[ "MIT" ]
permissive
carlospuenteg/File-Injector
1190120573048fec944940f55c676ef1aa959044
67b68db48b9eae4aee878c16e5c75b1a6f25c2aa
refs/heads/main
2022-11-30T20:32:03.041760
2022-11-18T00:19:53
2022-11-18T00:19:53
555,795,415
245
18
null
null
null
null
UTF-8
Python
false
false
814
py
constants.py
#------------------------------------------------------- ENCRYPTION_KEYS_PATH = "files/$encryption-keys" BASE_PATH = "files/base" BASE_IMAGES_PATH = f"{BASE_PATH}/images" BASE_AUDIOS_PATH = f"{BASE_PATH}/audios" INPUT_PATH = "files/input" MOD_PATH = "files/modified" MOD_IMAGES_PATH = f"{MOD_PATH}/images" MOD_AUDIOS_...
611a2c1851092868f9880b7da7773db417df4845
7e1c4dd6a2cae0597b4f4e961063cf077acdfd4c
/txcouchbase/tests/collection_t.py
cdf97003cd972af64159a60527395608313c3a38
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
couchbase/couchbase-python-client
753fa434db910d175bf9ea53a5829a40ba36e938
c7d80434be3f917d6f25439a918aed30273f63f4
refs/heads/master
2023-08-29T14:04:13.532717
2023-08-24T22:53:30
2023-08-25T03:35:21
2,122,194
223
87
Apache-2.0
2023-05-30T16:05:59
2011-07-29T04:24:46
Python
UTF-8
Python
false
false
33,025
py
collection_t.py
# Copyright 2016-2022. Couchbase, 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 a...
ed4b14cc7df4e66379e86578cd7a0ad4402a1652
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/tests/test_dashboard_profiler.py
da0c21251b14632adb373971994e13b71b766f69
[ "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
5,321
py
test_dashboard_profiler.py
import pytest import subprocess import os import requests import sys import ray from ray._private.test_utils import ( format_web_url, wait_until_server_available, wait_until_succeeded_without_exception, ) @pytest.mark.skipif( os.environ.get("RAY_MINIMAL") == "1", reason="This test is not supposed...
36104be3e3fd2184205d5f4dde82cd2e48cad19f
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/dataset/test_random_horizontal_flip_with_bbox.py
974ec07e531cfff04c9b1e3c321a60fd4973367d
[ "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
7,981
py
test_random_horizontal_flip_with_bbox.py
# Copyright 2020-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 agre...
5a4601d596588e13173673aa9dc333453686fb85
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/1836. Remove Duplicates From an Unsorted Linked List/1836.py
96865fd7d3f329deae267c40646352fc52773b31
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
424
py
1836.py
class Solution: def deleteDuplicatesUnsorted(self, head: ListNode) -> ListNode: dummy = ListNode(0, head) count = collections.Counter() curr = head while curr: count[curr.val] += 1 curr = curr.next curr = dummy while curr: while curr.next and curr.next.val in count and cou...
fc00d4c22c5c7b6d1cc4b514dc9252fcbd1b5d4a
538348577d4089f21a110e90a935fc11e171230b
/niapy/algorithms/other/__init__.py
f9731c5843f022b39ad51fdbe9f923ea0f9c3609
[ "MIT" ]
permissive
NiaOrg/NiaPy
94fd873c5427f5fc23ce9402ad8633279fc9c6e4
70562b0c840bb0a7c45941d35e22244cea12f697
refs/heads/master
2023-07-07T06:09:42.210076
2023-06-27T09:22:17
2023-06-27T09:22:17
120,444,947
254
150
MIT
2023-04-24T11:54:24
2018-02-06T11:25:36
Python
UTF-8
Python
false
false
768
py
__init__.py
"""Implementation of other algorithms.""" from niapy.algorithms.other.aso import AnarchicSocietyOptimization from niapy.algorithms.other.hc import HillClimbAlgorithm from niapy.algorithms.other.mts import MultipleTrajectorySearch, MultipleTrajectorySearchV1, mts_ls1, mts_ls2, mts_ls3, \ mts_ls1v1, mts_ls3v1 from n...
0f4ac2c10600465c43ec69530992ca38343c9e71
0760fb4901a75766921a205b55686d6d6f049b30
/rllib/algorithms/random_agent/__init__.py
2493df90735f348a1166ff1e35dd45096437615c
[ "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
162
py
__init__.py
from ray.rllib.algorithms.random_agent.random_agent import ( RandomAgent, RandomAgentConfig, ) __all__ = [ "RandomAgent", "RandomAgentConfig", ]
19e1cd931724a07a4ca5f052f33ab676bb8d0afc
211be6e4f8f11e621fe2bd8162f26ed75cacdbf9
/tests/helper.py
52bdabbfd74d45ada95ffd294eb7b174e46b8c4d
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only" ]
permissive
Nukesor/ultimate-poll-bot
d399da05eb0910978be867653807304da0ea5a85
4e1beae329326296b8ee6b55bef62cfce1aa0e55
refs/heads/main
2023-08-08T00:54:02.191783
2023-07-28T13:56:12
2023-07-28T13:56:12
188,621,543
147
89
MIT
2022-11-11T21:31:30
2019-05-25T23:31:22
Python
UTF-8
Python
false
false
43
py
helper.py
"""Module for testing helper functions."""
e94f1275fe66bcd8bf9e52ab9d4a03b9c2e528f7
576764ad37667f8da2c63aaa1a9f96da211795a6
/examples/ner/download_models.py
37c2574803cbdfc0c4c1cfff171e938c8a01165c
[ "Apache-2.0" ]
permissive
asyml/forte
96f852601647836dda3bccf3bd7900b9d10e6fcb
13e50aebe2afd79a7a8b3c01f0bb2568addea54f
refs/heads/master
2023-04-09T17:52:31.203644
2023-04-06T15:04:49
2023-04-06T15:04:49
201,518,876
233
73
Apache-2.0
2023-04-06T15:04:51
2019-08-09T18:12:12
Python
UTF-8
Python
false
false
774
py
download_models.py
from forte.data.data_utils import maybe_download # download resources urls = [ "https://drive.google.com/file/d/1j3i5U1YffYqKTdSbnlsrMAm9j86nLjxC/view" "?usp=sharing", "https://drive.google.com/file/d/1aRPS_b4AFaZTsk9uZ41tkWIBvWbO_s_V/" "view?usp=sharing", "https://drive.google.com/file/d/1SYpcWEDe...
fcbc6e49bd200cee61810040d5a14ce55743e0a9
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/cinn/ops/test_resize_op.py
b2eb0d62dac710eaeda6b386e96e61031e79e7a2
[ "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,068
py
test_resize_op.py
#!/usr/bin/env python3 # Copyright (c) 2023 CINN 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 r...
c0b842f2db69478ba58289c5d2a3d283743f0cb4
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-notebooks/google/cloud/notebooks_v1beta1/types/environment.py
2c67856ebcb9b43f4a10bdeac52548f3d4f927a1
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
5,390
py
environment.py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
6a649bac1cbb6262a00a370171ccf2f47fc5bf2a
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/tests/parsers/test_rpm_pkgs.py
d05438d84c382906e99989af8d3979c9426f2204
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
898
py
test_rpm_pkgs.py
import doctest import pytest from insights.parsers import rpm_pkgs from insights.parsers.rpm_pkgs import RpmPkgs, RpmPkgsWritable from insights.tests import context_wrap DATASOURCE_OUTPUT = ["httpd-core|httpd-core-2.4.53-7.el9.x86_64|Red Hat, Inc."] RPM_PKGS_OUTPUT = ["httpd-core"] RPM_PKGS_WRITABLE_OUTPUT = [("htt...
9a19613ff3fcfaf7038184954060ebb7b9e67b6c
620323fc090cebaf7aca456ff3f7fbbe1e210394
/qt__pyqt__pyside__pyqode/qt_image_from_sqlite/main.py
05c1cdb27bb948b38363ca30353221f4a42f3697
[ "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
914
py
main.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import sys import sqlite3 from PyQt5.QtWidgets import * from PyQt5.QtGui import * if __name__ == "__main__": con = sqlite3.connect("test.sqlite") cur = con.cursor() cur.execute( """ CREATE TABLE IF NOT EXISTS Images ( ...
d00bf40c0d0c4fb985562f304504834df9dda2bc
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib_development/_development/readers/_buff_reader.py
707f31030030a4f328326044977c8095bd9f62f3
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
1,252,607
py
_buff_reader.py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from sims4.resources import Types from sims4communitylib.mo...
e876a81a2e4f8093417698609ed9dbef0279dcd3
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CondTools/RunInfo/test/LHCInfoPerLSWriter_cfg.py
d617d8f322700cc0bec1c6fa2ae3915800a8346d
[ "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
825
py
LHCInfoPerLSWriter_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process('test') process.source = cms.Source('EmptyIOVSource', timetype = cms.string('runnumber'), firstValue = cms.uint64(1), lastValue = cms.uint64(1), interval = cms.uint64(1) ) # output service for database process.load('CondCore.CondDB.CondDB...
23b61483d6c042bfbc3c7457497aed054c9308de
d6a43cbb975c0d5dd2465d6f09c43767d35c121a
/src/reader/_parser/feedparser.py
8d37ca94161cfaec16ba9dcb273e06a9d4429e67
[ "BSD-3-Clause" ]
permissive
lemon24/reader
a76f5fd3f8dbf9d86e3627bbf9a60732414721cb
5e1682c9bfa36d341c03ab804adfb95cfc53f26e
refs/heads/master
2023-08-17T00:38:03.405077
2023-08-16T21:11:25
2023-08-16T21:11:25
115,272,183
349
24
BSD-3-Clause
2022-06-20T19:37:32
2017-12-24T15:36:43
Python
UTF-8
Python
false
false
5,359
py
feedparser.py
from __future__ import annotations import calendar import logging import time import warnings from datetime import datetime from typing import Any from typing import IO from typing import TYPE_CHECKING from .._types import EntryData from .._types import FeedData from .._vendor import feedparser from ..exceptions impo...
88e26ebe76d329b76d3f39236135f7a3bd238df9
b8bbdfc593b6d816e67a344f720f90ec05236778
/tests/providers/google/cloud/hooks/test_compute_ssh.py
721667263afe14280eaa470fd1cca0010db9a19a
[ "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
21,054
py
test_compute_ssh.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
e1bac725229a16071a8ae7cec31f1b5235ed9088
651acdb40ba82802b0deb5a19cb61e17d8eb23df
/backoff/_wait_gen.py
33b37b81faf78dad197b0763768266682c35caa8
[ "MIT" ]
permissive
litl/backoff
00ba86795db375525b04f1da523600e453a8b55c
d82b23c42d7a7e2402903e71e7a7f03014a00076
refs/heads/master
2023-07-06T13:27:16.894622
2023-01-20T19:02:28
2023-01-20T19:02:28
19,746,601
2,232
158
MIT
2023-07-07T11:33:46
2014-05-13T16:23:01
Python
UTF-8
Python
false
false
3,241
py
_wait_gen.py
# coding:utf-8 import itertools import math from typing import Any, Callable, Generator, Iterable, Optional, Union def expo( base: float = 2, factor: float = 1, max_value: Optional[float] = None ) -> Generator[float, Any, None]: """Generator for exponential decay. Args: base: The mathem...
c3f9960fffe0e3ea2b2fae9ddf7c7995afef1548
dbab4ef8ab69e46beed07e06523b920bdf4f0bfd
/settings/prod_s3.py
99d7542359d880ddbf46363c6b94744975b7ed57
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
chriskuehl/fluffy
9322f240d98576169f5a4e0fe4e4cd06e381745c
d1831685fa80e105d88d8e970d54ba51e502dcc9
refs/heads/main
2023-08-06T21:40:24.443183
2023-05-14T04:34:29
2023-05-14T04:34:29
15,094,183
158
25
NOASSERTION
2023-06-13T06:27:57
2013-12-11T00:49:44
Python
UTF-8
Python
false
false
1,013
py
prod_s3.py
# fluffy-specific configuration options # storage backend (how are the files stored after being uploaded?) STORAGE_BACKEND = { 'name': 's3', 'bucket': 'fluffy.cc', 's3path': '{name}', 'asset_bucket': 'fluffy.cc', 'asset_s3path': 'assets/{name}', } # branding to show in heading BRANDING = 'fluffy'...
f72231637cd9110aab0ab2022c82d79d46c8795f
e22d4b37236a0327f26159856c7d151826bdd49d
/leonardo/module/search/tasks.py
ae2cbe63f03574401170bef5ba56e5793f571ab6
[ "BSD-2-Clause" ]
permissive
django-leonardo/django-leonardo
8fe1fc6299c5e3d3c0bff96cb7e80d48f7b7e1de
7d3f116830075f05a8c9a105ae6f7f80f7a6444c
refs/heads/master
2022-09-29T02:23:14.426984
2020-09-08T13:58:46
2020-09-08T13:58:46
33,533,052
108
64
BSD-3-Clause
2022-09-16T19:34:25
2015-04-07T09:05:44
Python
UTF-8
Python
false
false
672
py
tasks.py
from __future__ import absolute_import import os from celery import shared_task from django.core import management from leonardo.decorators import catch_result from django.conf import settings @shared_task @catch_result def sync_search_indexes(): management.call_command('rebuild_index', interactive=False) #...
05ca4e0276bdaf6e124a10cafef9458dcffa2db7
8e342677ebe58bfb6c7360b555044acc6964f333
/src/einsteinpy/symbolic/predefined/ernst.py
77d06b7163f7a892ed5625a3e7feb74c02a4a8aa
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
einsteinpy/einsteinpy
5d48142cab52f7c629d78b47088d804ff3eafae9
1bd1b27e142b0a0ec2e26bf2611468dbf50d9cf8
refs/heads/main
2023-08-17T19:17:34.239265
2023-01-31T20:43:54
2023-01-31T20:43:54
168,302,584
594
292
MIT
2023-08-12T07:30:41
2019-01-30T07:56:15
Python
UTF-8
Python
false
false
945
py
ernst.py
from sympy import diag, exp, sin, sqrt, symbols from einsteinpy.symbolic import constants from einsteinpy.symbolic.metric import MetricTensor def Ernst(B=symbols("B"), M=symbols("M")): """ Black holes in a magnetic universe. J. Math. Phys., 17:54-56, 1976. Frederick J. Ernst. Parameters ----...
180457ed384705502d14664a0445a7d6354d3c15
e9086da2bf28de83356bb08d4aafac48c463a80c
/src/_cffi_src/openssl/bio.py
1742e348122a2d2c27e62f91ac414d9b199bddc9
[ "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
permissive
pyca/cryptography
e5797eeabae127bc4c6c306e74993aef24c059b3
d182176fbfb6f6aeb8856952d36d999c20f456ea
refs/heads/main
2023-09-03T08:25:47.396782
2023-09-03T00:17:25
2023-09-03T00:17:25
11,939,484
5,709
1,793
NOASSERTION
2023-09-14T19:50:49
2013-08-07T02:23:38
Python
UTF-8
Python
false
false
1,234
py
bio.py
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import annotations INCLUDES = """ #include <openssl/bio.h> """ TYPES = """ typedef ... BIO; typedef ... BIO_METHOD; typed...
2ab6ce09df1cfa755075aab75fa86496a3c7feed
efc378b30e64de28ecd13fd2a281ea5a309e84de
/fooof/tests/sim/test_gen.py
56d163ed15a6892129145df20eba43bde2ba9651
[ "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
4,266
py
test_gen.py
"""Test functions for fooof.sim.gen""" import numpy as np from numpy import array_equal from fooof.tests.tutils import default_group_params from fooof.sim.gen import * ################################################################################################### ################################################...
09be4df15d1de80597dc0de3bbc58684712eac2c
a0091f931869eb53dcf6624ef761c0d3445dff58
/paco/thunk.py
b748c1f94e4c6b1e5046c451a0d55d789cd0b8bc
[ "MIT" ]
permissive
h2non/paco
951dcd918121c476b4d2f1e4a0206bec2941413d
2d4863b5b012b3193fd3c8e83493de28485a2eb2
refs/heads/master
2023-05-27T07:12:23.594354
2019-08-27T23:49:15
2019-08-27T23:49:15
70,951,500
213
15
MIT
2019-08-26T08:02:00
2016-10-14T22:27:13
Python
UTF-8
Python
false
false
960
py
thunk.py
# -*- coding: utf-8 -*- import asyncio from .assertions import assert_corofunction def thunk(coro): """ A thunk is a subroutine that is created, often automatically, to assist a call to another subroutine. Creates a thunk coroutine which returns coroutine function that accepts no arguments and wh...
c9aead89abdbe5e0f3a1b151061f49d614818171
ad61cc119a42abfd3d64224a753817ae0f9ba058
/tests/integration/test_cli.py
976bab3aa495ced95d4136fda1ce31e6c730e26d
[ "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
22,091
py
test_cli.py
# Copyright 2013 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 acc...
c0009e5be2adbe4b0da51ec095d352b0d6e8ff00
2fd7505c101e03ea53a84fedde3ab1677c6947c6
/tests/test_debug.py
4eeb3d00b31df2ab76fbb56b7c278242e78a635e
[ "Apache-2.0" ]
permissive
pyca/pyopenssl
2c9467932c16ff532210a388a1526813ccd2b232
b259bfbd660f5680783e1abfab27ed0d5bf91c1a
refs/heads/main
2023-08-27T19:14:25.037914
2023-07-29T15:46:41
2023-07-29T15:46:41
15,778,059
829
436
Apache-2.0
2023-09-05T11:56:59
2014-01-09T20:10:36
Python
UTF-8
Python
false
false
225
py
test_debug.py
from OpenSSL import version from OpenSSL.debug import _env_info def test_debug_info(): """ Debug info contains correct data. """ # Just check a sample we control. assert version.__version__ in _env_info
0b8127f7ed4a509e6f095c6f7b72097c0af9e8fc
466061b1156d25e5756ceec92b57e0d18a6f93cc
/lib/vclib/ccvs/__init__.py
90e5a808bbbd5e5c404edcfc3dae761ec693f1a1
[ "BSD-2-Clause" ]
permissive
viewvc/viewvc
f50a6b0a83c521dde2d3472d86149026de620da2
6954a8974746888b903f2d3b769f4857de0d27c6
refs/heads/master
2023-05-31T11:19:19.851075
2023-05-10T08:16:06
2023-05-10T15:01:47
67,821,474
336
158
NOASSERTION
2023-05-10T15:01:48
2016-09-09T18:09:08
Python
UTF-8
Python
false
false
3,035
py
__init__.py
# -*-python-*- # # Copyright (C) 1999-2023 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit h...
ae8ae70dc4bec2c5457a724674b90e878384bb8e
81698903cee8891297ece72f9c296e8815d0099f
/tests/attribute_statement_data.py
e15bcdd20ecb9bd5e3c48c9ab4dec54f24401a8a
[ "Apache-2.0" ]
permissive
IdentityPython/pysaml2
324802238abe5e731e96ca9140f67371271cea4f
cae1326ae05bf8039c5990b13ea46b51a1a92aa5
refs/heads/master
2023-08-25T04:35:35.092918
2023-07-08T06:00:08
2023-08-17T11:25:15
4,425,387
322
248
Apache-2.0
2023-08-17T11:25:16
2012-05-23T21:12:14
Python
UTF-8
Python
false
false
10,480
py
attribute_statement_data.py
#!/usr/bin/env python """Testdata for attribute converters """ STATEMENT1 = """<?xml version="1.0" encoding="utf-8"?> <ns1:AttributeStatement xmlns:ns1="urn:oasis:names:tc:SAML:2.0:assertion"> <ns1:Attribute Name="urn:mace:dir:attribute-def:eduPersonPrincipalName" NameFormat="urn:oasis:names:tc:SAML:2.0:a...
cb2bbe68c2d8b4196bc1669105b2c6f6f6fc59f5
7d4bfebd0389b5a010f73ea5be64085425bba4e7
/cryptotools/transformations.py
a0d0b04e1649cdf3a6448877d0f64d6fcc6ae7a7
[ "MIT" ]
permissive
mcdallas/cryptotools
be28e30d868a799a55a6e54983e918b671be0cc9
dbdced863bd2622f4cb41595df1ecad399760d78
refs/heads/master
2022-02-15T21:28:20.645930
2022-01-30T15:34:38
2022-01-30T15:34:38
119,552,891
196
76
MIT
2022-01-29T23:17:50
2018-01-30T15:11:38
Python
UTF-8
Python
false
false
1,917
py
transformations.py
"""Helper Functions to convert between data types""" import hashlib __all__ = [ 'sha256', 'ripemd160', 'hash160', 'bytes_to_int', 'int_to_bytes', 'str_to_bytes', 'str_to_int', 'int_to_str', 'bytes_to_str', 'int_to_hex', 'hex_to_int', 'bytes_to_hex', 'hex_to_bytes', 'str_to_hex', 'hex_to_str', 'int_to_bin...
297919fac2fbec74536f4ebbda6064479d4bb3b6
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Tensorflow_Pandas_Numpy/source3.6/tensorflow/python/util/tf_should_use.py
d9b2e6fcd799db019adf40c717efc09845aa216f
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
5,158
py
tf_should_use.py
# Copyright 2017 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...
07aa308662249a7e4454ae74d20a353a250d72fa
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/osf/models/user.py
8c24a0c15e1a14c7c38cfda0c87548a276ff0f07
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
85,529
py
user.py
import datetime as dt import logging import re from future.moves.urllib.parse import urljoin, urlencode import uuid from copy import deepcopy from flask import Request as FlaskRequest from framework import analytics from guardian.shortcuts import get_perms from past.builtins import basestring # OSF imports import its...
ca28977fc0898e569b99972fa961a08565c2b493
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/ciphers/base16.py
6cd62846fc870eed02dde105196136265dc6fbc6
[ "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
2,318
py
base16.py
def base16_encode(data: bytes) -> str: """ Encodes the given bytes into base16. >>> base16_encode(b'Hello World!') '48656C6C6F20576F726C6421' >>> base16_encode(b'HELLO WORLD!') '48454C4C4F20574F524C4421' >>> base16_encode(b'') '' """ # Turn the data into a list of integers (wher...
7c10d438e612ae2172e7017a3ff31acbc4216c55
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-MediaAccessibility/PyObjCTest/test_maimagecaptioning.py
74c75d6f3334eed36a03a39b436a9afb2dc914c9
[ "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
725
py
test_maimagecaptioning.py
import MediaAccessibility from PyObjCTools.TestSupport import TestCase, min_os_level class TestMAImageCaptioning(TestCase): @min_os_level("10.15") def testFunctions10_10(self): self.assertResultIsCFRetained(MediaAccessibility.MAImageCaptioningCopyCaption) self.assertArgIsOut(MediaAccessibility...
a0404a8c2c184fbb022479fcef388309559a3e39
6cbbfda7ae42a23e8e82607612f9cd58b868ed1f
/benchmarks/scripts/cub/bench/__init__.py
37736a04e113cf5cd2a0b39c43f4f784bf822851
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
NVIDIA/cub
4f8e5df5f2b0381d59f82f75ff6bf454daa99c33
b2e8bccb8c0cd15279974fe4b9b8d6fcd1842b57
refs/heads/main
2023-09-04T10:53:03.540197
2023-06-22T14:12:46
2023-06-22T14:12:46
8,225,159
866
178
BSD-3-Clause
2023-09-07T18:07:33
2013-02-15T20:01:28
Cuda
UTF-8
Python
false
false
138
py
__init__.py
from .config import * from .storage import * from .bench import Bench from .cmake import CMake from .score import * from .search import *
14c3ee88a35d18579210fb44f70dd050abd36123
61b8c22a578534fa3e1cd81130c61191a4eeddd3
/pydrawing/modules/beautifiers/characterize/characterize.py
61af82c06f4c747d378c5f5d4ba56c4438ac8a24
[ "Apache-2.0" ]
permissive
CharlesPikachu/pydrawing
15f24844ca52a17a24d3ad70406b7ce207e382d2
e980ad9bf4cece42ff40ed2bc7bed7a155eabb8e
refs/heads/master
2023-05-22T17:36:50.806360
2022-08-09T05:31:05
2022-08-09T05:31:05
194,899,961
148
7
null
null
null
null
UTF-8
Python
false
false
1,915
py
characterize.py
''' Function: 视频转字符画 Author: Charles 微信公众号: Charles的皮卡丘 ''' import cv2 import numpy as np from ..base import BaseBeautifier from PIL import Image, ImageFont, ImageDraw '''视频转字符画''' class CharacterizeBeautifier(BaseBeautifier): CHARS = "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\|()1{}[]?-_+~<>i!lI;:,\"...
227296b052c26b89bab3fce726cd24279c122e2b
3a24f63c8742560993b5465b26339e7c0ed05a27
/crates/ruff/resources/test/fixtures/pyflakes/F541.py
09c10216eb3374918b5de1a27b7264c79c750295
[ "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
astral-sh/ruff
8f1de11263474c6293454b02c728df2f113801db
82410524d9612f11387c2675a03869d489bb97ef
refs/heads/main
2023-08-02T23:20:34.351174
2023-08-02T21:32:43
2023-08-02T21:32:43
523,043,277
2,264
122
MIT
2023-09-14T20:08:59
2022-08-09T17:17:44
Rust
UTF-8
Python
false
false
470
py
F541.py
# OK a = "abc" b = f"ghi{'jkl'}" # Errors c = f"def" d = f"def" + "ghi" e = ( f"def" + "ghi" ) f = ( f"a" F"b" "c" rf"d" fr"e" ) g = f"" # OK g = f"ghi{123:{45}}" # Error h = "x" "y" f"z" v = 23.234234 # OK f"{v:0.2f}" f"{f'{v:0.2f}'}" # Errors f"{v:{f'0.2f'}}" f"{f''}" f"{{test}}" f'{...
05626c760ebcc47276102bfaeea866f7b03c6543
169e75df163bb311198562d286d37aad14677101
/tensorflow/tensorflow/contrib/tensorrt/python/trt_convert.py
2b67931661397cee0de9faa66b58a608c69ecdc5
[ "Apache-2.0" ]
permissive
zylo117/tensorflow-gpu-macosx
e553d17b769c67dfda0440df8ac1314405e4a10a
181bc2b37aa8a3eeb11a942d8f330b04abc804b3
refs/heads/master
2022-10-19T21:35:18.148271
2020-10-15T02:33:20
2020-10-15T02:33:20
134,240,831
116
26
Apache-2.0
2022-10-04T23:36:22
2018-05-21T08:29:12
C++
UTF-8
Python
false
false
8,479
py
trt_convert.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...
32db5d719b683d5202f494ccfe2d9bbc42858a01
99bdb3251fecee538e0630f15f6574054dfc1468
/components/libc/compilers/dlib/SConscript
98f664e8d95d57aa56f4b65097fbba4060b7ca10
[ "Apache-2.0" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
Python
false
false
655
SConscript
from building import * Import('rtconfig') src = Glob('*.c') group = [] if rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['RT_USING_DLIBC', 'RT_USING_LIBC', '_DLIB_ADD_EXTRA_SYMBOLS=0'] AddDepend(['RT_USING_DLIBC', 'RT_USING_LIBC']) if GetDepend('DFS_USING_POSIX'): from distutils.version import ...
ec64e2898f8e71c9223cb2406a07d16ec44f5484
a7d2281c9ab0cba42928134a06af8aeadd2b2767
/simple_hierarchical_transformer/simple_hierarchical_transformer.py
69cbe8a7bc17ab4d3964e888293af2c605f95bd5
[ "MIT" ]
permissive
lucidrains/simple-hierarchical-transformer
67d63a5d21f0b843df7f499fd57e3b572516441f
c182b633301b177af7f301279c0606daf25f872c
refs/heads/main
2023-07-06T21:46:37.740858
2023-06-21T18:39:09
2023-06-21T18:39:09
624,481,413
159
10
null
null
null
null
UTF-8
Python
false
false
26,494
py
simple_hierarchical_transformer.py
import math from functools import partial from itertools import zip_longest import torch import torch.nn.functional as F from torch import nn, einsum from einops import rearrange, repeat from einops.layers.torch import Rearrange from simple_hierarchical_transformer.attention import Attend from typing import Tuple f...
d38c8b611be7701c0f9263f673d7a22895a58e4b
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/build/android/pylib/results/presentation/standard_gtest_merge.py
ab1074e268f371616232bc3401605e9698ca62ff
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
6,135
py
standard_gtest_merge.py
#! /usr/bin/env python3 # # Copyright 2017 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import json import os import sys def merge_shard_results(summary_json, jsons_to_merge): """Reads JSON test output from all shards an...
f8d4602996d0b764bfea86c5877bad685ca109a7
93b858db8d5fd4990c36a6c9eed3b75047152863
/magpylib/_src/obj_classes/class_magnet_Cuboid.py
45c610c263f2d9247a03e51a9586bc83350da6df
[ "BSD-2-Clause" ]
permissive
magpylib/magpylib
c4dc908c4e1a0109f65f15cd73584693ddc71f4b
7fa3514afceb28e8b7ba94f2821f5e9c789cc996
refs/heads/main
2023-09-01T00:04:39.420872
2023-08-27T05:32:14
2023-08-27T05:32:14
169,390,106
174
39
BSD-2-Clause
2023-09-03T18:34:52
2019-02-06T10:39:43
Python
UTF-8
Python
false
false
4,717
py
class_magnet_Cuboid.py
"""Magnet Cuboid class code""" from magpylib._src.display.traces_core import make_Cuboid from magpylib._src.fields.field_BH_cuboid import magnet_cuboid_field from magpylib._src.input_checks import check_format_input_vector from magpylib._src.obj_classes.class_BaseExcitations import BaseMagnet from magpylib._src.utility...
46e2086e1b53de6dda4524b2efd2c9d9eeb36b07
51418ae6005e41ae19b314ca0416331dfba4f21c
/tan/tanlibrary/src/clFFT-master/src/scripts/perf/measurePerformance.py
4bd16de31d9119fff61a01245051848df5ede0b8
[ "Apache-2.0", "MIT" ]
permissive
GPUOpen-LibrariesAndSDKs/TAN
ead68a3dd2d8e3a3678ada593ef44ce55ab7d54e
690ed6a92c594f4ba3a26d1c8b77dbff386c9b04
refs/heads/beta-cross-platform
2023-04-02T08:27:50.622740
2020-10-07T18:34:38
2020-10-07T18:34:38
65,836,265
141
32
MIT
2020-03-26T16:08:01
2016-08-16T16:33:14
C++
UTF-8
Python
false
false
31,972
py
measurePerformance.py
# ######################################################################## # Copyright 2013 Advanced Micro Devices, 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.apach...
781f076ffa4b8577b38840cee30aee6a6e3621a2
e27f9f1f8bef8b1f4676df84ee3e753974d21a1c
/ignite/metrics/recall.py
b570951e291f2440c8bc4e5c781f3979cf22c78f
[ "BSD-3-Clause" ]
permissive
pytorch/ignite
8fb275638e94e702762eec932b21dc8df7a54cb0
34a707e53785cf8a524589f33a570a7516fe064e
refs/heads/master
2023-09-02T00:27:22.485479
2023-08-31T15:10:14
2023-08-31T15:10:14
111,835,796
4,613
788
BSD-3-Clause
2023-09-13T07:46:41
2017-11-23T17:31:21
Python
UTF-8
Python
false
false
9,484
py
recall.py
from typing import Sequence import torch from ignite.metrics.metric import reinit__is_reduced from ignite.metrics.precision import _BasePrecisionRecall __all__ = ["Recall"] class Recall(_BasePrecisionRecall): r"""Calculates recall for binary, multiclass and multilabel data. .. math:: \text{Recall} = \frac...
46095775830febcaa5485e5156aafe2695aa1623
6cd1a085c8113030f14a8c992ecd2b45db70c4e2
/scripts/generate_field_test_vectors.py
f6d3a54387b8a8f862a90d33d651315c0176a86f
[ "MIT" ]
permissive
mhostetter/galois
a72e6339ac3bba2fda31e5c9f1228ebc85d5ebe7
a140a468fa1f7619f94ad2551f9c14e684ee3a34
refs/heads/master
2023-07-27T17:02:04.925608
2023-05-09T19:39:50
2023-05-09T22:37:26
312,901,841
186
25
MIT
2023-09-10T14:56:32
2020-11-14T21:05:20
Python
UTF-8
Python
false
false
38,108
py
generate_field_test_vectors.py
""" Script to generate unit test vectors for finite field arithmetic. Install SageMath: * `sudo apt install sagemath` """ import json import os import pickle import random import shutil import numpy as np import sage from sage.all import ( GF, PolynomialRing, convolution, copy, crt, lcm, l...
ab13eb70f23b42c345fef8f640254fd80422a48e
187414dcb264fb49d82507a099fd5fdca6e55e38
/python/pyspark/pandas/numpy_compat.py
96f2ab158169fd8c7691fda07d0e5bbef38128aa
[ "BSD-3-Clause", "CC0-1.0", "CDDL-1.1", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "EPL-2.0", "CDDL-1.0", "MIT", "LGPL-2.0-or-later", "Python-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown",...
permissive
apache/spark
8aeba2d80465a262acc95781ede105a5b5886f6d
60d8fc49bec5dae1b8cf39a0670cb640b430f520
refs/heads/master
2023-09-04T04:33:36.058199
2023-09-04T03:48:52
2023-09-04T03:48:52
17,165,658
39,983
32,449
Apache-2.0
2023-09-14T19:46:24
2014-02-25T08:00:08
Scala
UTF-8
Python
false
false
9,852
py
numpy_compat.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 us...
b7652214080d7cbcc47806d6f0a34028956e0ba1
1c790b0adc648ff466913cf4aed28ace905357ff
/python/lbann/core/operators.py
fee5a6bd15fce6d8818a904465ccf00ef03cbc96
[ "Apache-2.0" ]
permissive
LLNL/lbann
04d5fdf443d6b467be4fa91446d40b620eade765
e8cf85eed2acbd3383892bf7cb2d88b44c194f4f
refs/heads/develop
2023-08-23T18:59:29.075981
2023-08-22T22:16:48
2023-08-22T22:16:48
58,576,874
225
87
NOASSERTION
2023-09-11T22:43:32
2016-05-11T20:04:20
C++
UTF-8
Python
false
false
22,897
py
operators.py
"""LBANN Operators. Operators are atomic tensor operations supported by LBANN. """ from __future__ import annotations from typing import Optional from lbann import operators_pb2 as OpProto from lbann import DataType, DeviceAllocation from lbann.util import make_iterable class Operator: """Base class for LBANN ...
7a379c944a3ca4a5c63bb8186be38052c9b4d4a0
77fd60c4b7e7885b2ec4ca5203edf9489f6f37dc
/nipy/externals/transforms3d/quaternions.py
9e1dec9f8c6955e01629ff08ec219acaf9e7663d
[ "BSD-3-Clause" ]
permissive
nipy/nipy
156f379adbc07b259e25012662510b1f64aac4c5
7eede02471567487e454016c1e7cf637d3afac9e
refs/heads/master
2023-04-06T14:56:36.303421
2023-04-05T19:40:24
2023-04-05T19:40:24
642,344
275
115
BSD-3-Clause
2023-04-05T19:40:25
2010-05-02T10:00:33
Python
UTF-8
Python
false
false
12,937
py
quaternions.py
'''Functions to operate on, or return, quaternions. The module also includes functions for the closely related angle, axis pair as a specification for rotation. Quaternions here consist of 4 values ``w, x, y, z``, where ``w`` is the real (scalar) part, and ``x, y, z`` are the complex (vector) part. Note - rotation ...
65870231555afd8b8aae61a0ab14bd1fc663288b
dec884c0f55b830571357e1a4563f93a11adf715
/tests/integration/features/environment.py
f54ca09cd8598a180d4bf095ceed50862597b234
[ "Apache-2.0" ]
permissive
thelastpickle/cassandra-medusa
1a08a2bb13cf36fdde344364ff4757caf6a4119e
aa41d5d05c93fa521c85b10b0f65e09041d7b742
refs/heads/master
2023-09-01T14:08:55.200660
2023-09-01T09:33:11
2023-09-01T09:33:11
219,795,871
246
130
Apache-2.0
2023-09-14T09:06:35
2019-11-05T16:48:44
Python
UTF-8
Python
false
false
1,679
py
environment.py
# -*- coding: utf-8 -*- # Copyright 2019 Spotify AB. 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...
d19db105d7951924b792f22c8a5fedbf8f27ec61
e95e60cb698b7b2e7622b33643df944c0362c02c
/mediaMicroservices/gen-py/media_service/ComposeReviewService.py
3afe85a0c932f85f6889c958784fe76eb7d10372
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
delimitrou/DeathStarBench
5ae251e87052a83f0daadfe2f60231ee5e999dda
ef9823b441aec5a8133304f1cc322f882f767812
refs/heads/master
2023-09-01T02:23:38.342474
2023-08-28T17:37:44
2023-08-28T17:37:44
180,669,714
576
364
Apache-2.0
2023-09-01T17:20:13
2019-04-10T21:57:24
C
UTF-8
Python
false
true
41,758
py
ComposeReviewService.py
# # Autogenerated by Thrift Compiler (0.12.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
e289d143c39b3491f36d72b277200bd5a9d48e30
080db1ae362de6823e7c78ab6071c82e347ce967
/fastentrypoints.py
46f3ba9eb69c5d06dc4c3dbb82536a89dacb8497
[ "Apache-2.0" ]
permissive
jina-ai/jina
c06898dc31dd3de1f917f30305e9460efedf97c3
23c7b8c78fc4ad67d16d83fc0c9f0eae9e935e71
refs/heads/master
2023-08-30T23:04:45.267920
2023-08-24T13:49:49
2023-08-24T13:49:49
240,315,046
20,687
2,460
Apache-2.0
2023-09-14T12:30:45
2020-02-13T17:04:44
Python
UTF-8
Python
false
false
4,095
py
fastentrypoints.py
# noqa: D300,D400 # Copyright (c) 2016, Aaron Christianson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notice, this...
8e9d353881e59b5d52051f003c3acfe8b0376338
f52b8606074c2e0cc0c60b30b51c015fd932b0a2
/virl/cli/generate/__init__.py
9c3ea56291f3c1da3c9b9d1628fa0d19eeebc1bf
[ "MIT" ]
permissive
CiscoDevNet/virlutils
81af101bcca6a28fd584ab4b8f3e1aed5a6345c3
84afb01a6366d54febb9481c364a378f891327f4
refs/heads/master
2023-04-30T12:00:05.233334
2023-03-06T14:46:48
2023-03-06T14:46:48
114,168,527
144
47
MIT
2023-04-25T18:32:39
2017-12-13T21:02:26
Python
UTF-8
Python
false
false
1,251
py
__init__.py
import click from virl.api import plugin, check_valid_plugin, NoPluginError from virl.cli.generate.ansible.commands import ansible, ansible1 from virl.cli.generate.pyats.commands import pyats, pyats1 from virl.cli.generate.nso.commands import nso, nso1 @click.group() def generate(): """ generate inv file for ...
6d1d85bbbb581cdd3736cf342f2a9f9659f9c72e
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/scipy/py2/scipy/interpolate/polyint.py
8e5f93ba00551670a6c6fdb2a837bffab426946a
[ "Python-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "Qhull", "BSD-3-Clause", "Apache-2.0", "BSD-2-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
22,677
py
polyint.py
from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy.special import factorial from scipy._lib.six import xrange from scipy._lib._util import _asarray_validated __all__ = ["KroghInterpolator", "krogh_interpolate", "BarycentricInterpolator", "baryc...
7237e83f41270e04d5055b596e0ffaf520516b01
807438e6974bf68762208ec24cf824dd0e5fabd6
/libcloud/test/dns/test_nsone.py
738bc81a79d56c3df50e0c9119dd3a57c9d9237e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/libcloud
019c5bd839dedd2423f9604936886eaff252e04b
abba8c1719a8bda6db8efde2d46fd1b423ae4304
refs/heads/trunk
2023-08-31T20:14:22.369970
2023-08-21T20:17:57
2023-08-21T20:17:57
419,555
1,644
968
Apache-2.0
2023-09-13T19:34:44
2009-12-11T09:00:14
Python
UTF-8
Python
false
false
12,697
py
test_nsone.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 ...
9c0df470936edcaa5097339319b3519712399e1d
1e007e7a71260363957299c5d3d60fec850c6a48
/steganogan/models.py
686cc4f1acb82946d73602a0dd2f2be094143cf8
[ "MIT" ]
permissive
DAI-Lab/SteganoGAN
547ef9851335375934efef8aad2bd0261d88aae8
513912f3dce2fb5001f3e140ad7378dacfc2a453
refs/heads/master
2023-03-30T10:08:34.605469
2021-10-22T03:06:03
2021-10-22T03:06:03
147,863,828
259
91
MIT
2023-03-23T03:34:09
2018-09-07T19:03:04
Python
UTF-8
Python
false
false
13,907
py
models.py
# -*- coding: utf-8 -*- import gc import inspect import json import os from collections import Counter import imageio import torch from imageio import imread, imwrite from torch.nn.functional import binary_cross_entropy_with_logits, mse_loss from torch.optim import Adam from tqdm import tqdm from steganogan.utils imp...
25eb73a7ab6efe5edb9b2e35957196f2c73651f8
af101b467134e10270bb72d02f41f07daa7f57d8
/tools/analysis_tools/get_flops.py
b9965ca3b89c123845e5fbff39cb6c06402c3b16
[ "Apache-2.0" ]
permissive
open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
2023-09-14T11:39:18
2019-08-23T13:04:29
Jupyter Notebook
UTF-8
Python
false
false
4,438
py
get_flops.py
# Copyright (c) OpenMMLab. All rights reserved. import argparse import torch from mmengine import Config from mmengine.registry import init_default_scope from mmagic.registry import MODELS try: from mmengine.analysis import get_model_complexity_info except ImportError: raise ImportError('Please upgrade mmeng...
7860c27425faae295fb9e5e674d9e82be1311b6d
52c3f80dd20208d8c762a46fbb4c6f13cce6f71f
/workflows/python/sdk/order-processor/app.py
08e3f4ce8079659705d321798f4a04aec78543ec
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
dapr/quickstarts
f59456035991d97763a8554c54c50b06bab0c557
0e1b310c7182b100088cb8e3f7e504366b912dee
refs/heads/master
2023-08-20T19:57:30.755908
2023-08-04T19:29:14
2023-08-04T19:29:14
209,615,030
699
423
Apache-2.0
2023-09-14T19:25:27
2019-09-19T17:48:03
C#
UTF-8
Python
false
false
5,663
py
app.py
from datetime import datetime import threading from time import sleep from dapr.clients import DaprClient from dapr.conf import settings from dapr.ext.workflow import WorkflowRuntime from workflow import order_processing_workflow, notify_activity, process_payment_activity, \ verify_inventory_activity, update_inve...
a64a259daa08741407ecec1c325bf50ad2e6ebe6
576764ad37667f8da2c63aaa1a9f96da211795a6
/tests/forte/data/ontology/test_outputs/ft/onto/sample_top_attribute.py
0ff7f8cb4b0005cc2eacb77b557d5194613bcb9a
[ "Apache-2.0" ]
permissive
asyml/forte
96f852601647836dda3bccf3bd7900b9d10e6fcb
13e50aebe2afd79a7a8b3c01f0bb2568addea54f
refs/heads/master
2023-04-09T17:52:31.203644
2023-04-06T15:04:49
2023-04-06T15:04:49
201,518,876
233
73
Apache-2.0
2023-04-06T15:04:51
2019-08-09T18:12:12
Python
UTF-8
Python
false
false
1,876
py
sample_top_attribute.py
# ***automatically_generated*** # ***source json:/Users/hector/Documents/projects/forte/tests/forte/data/ontology/test_specs/test_top_attribute.json*** # flake8: noqa # mypy: ignore-errors # pylint: skip-file """ Automatically generated ontology sample_top_attribute. Do not change manually. """ from dataclasses import...
9bc3f5ddefd0fe8c8bd0dc8cd22d3b38caa25a73
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/docs/scripts/remove_xml.py
143e12e323baf2aa86da0466eda495a1ca639500
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
469
py
remove_xml.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import shutil def remove_xml_dir(path): """ Remove doxygen xml folder """ if os.path.exists(path): shutil.rmtree(path, ignore_errors=True) def main(): import argparse parser = argparse.Argumen...
d0f1e326220665b0e6474d455af6ff511d08a3ad
466061b1156d25e5756ceec92b57e0d18a6f93cc
/bin/db/make-database
e455d4ce2ad8fe4e6298da9d03045dd9ab9f45aa
[ "BSD-2-Clause" ]
permissive
viewvc/viewvc
f50a6b0a83c521dde2d3472d86149026de620da2
6954a8974746888b903f2d3b769f4857de0d27c6
refs/heads/master
2023-05-31T11:19:19.851075
2023-05-10T08:16:06
2023-05-10T15:01:47
67,821,474
336
158
NOASSERTION
2023-05-10T15:01:48
2016-09-09T18:09:08
Python
UTF-8
Python
false
false
8,771
make-database
#!/usr/bin/env python3 # -*-python-*- # # Copyright (C) 1999-2023 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For mo...
526f9c3707abad13cf8c83e79e3ea798f04e2792
3526b979d4860971f517edc12e307d714f48c354
/tests/test_client_refund.py
990f4ff1a50eb001476c2556e9a91418c89d6d7c
[ "MIT" ]
permissive
razorpay/razorpay-python
9adda56cc9dd25b6ff5f7f1a5879844f35666811
c07bf8baf100541786998b87ada035eaec308aaf
refs/heads/master
2023-08-17T10:15:11.744848
2023-08-16T08:21:45
2023-08-16T08:21:45
46,411,248
153
93
MIT
2023-08-16T08:21:47
2015-11-18T10:20:33
Python
UTF-8
Python
false
false
1,855
py
test_client_refund.py
import responses import json from .helpers import mock_file, ClientTestCase class TestClientRefund(ClientTestCase): def setUp(self): super(TestClientRefund, self).setUp() self.base_url = '{}/refunds'.format(self.base_url) @responses.activate def test_refund_all(self): result = m...
ff79ad4fe5db3dfe6fdfee360f9bc4578754dca3
1fc0cc24dfb0231f35a99ae6ced7b01bb2814830
/allure-python-commons-test/src/report.py
82036ea3f2b7544d1a4addd30769e9ec340913ee
[ "Apache-2.0" ]
permissive
allure-framework/allure-python
54dd07bbde954c0a75b47443ea5fa892a730da29
200b7175218f27fef576d77c2ec791d0ea5ebe90
refs/heads/master
2023-08-23T09:14:15.292120
2023-08-08T16:19:36
2023-08-08T16:19:36
79,346,720
672
261
Apache-2.0
2023-08-25T09:58:13
2017-01-18T14:17:16
Python
UTF-8
Python
false
false
4,296
py
report.py
""" >>> from hamcrest import assert_that >>> class Report: ... def __init__(self): ... self.test_cases = [ ... { ... 'fullName': 'package.module.test', ... 'id': '1' ... }, ... { ... 'fullName': 'package.module.test[param]'...
d9d86e7fccfe3d4d9ecbdc2507a91749bd7dd03f
44cc6aea308228660f90394447669d6ad461aebd
/tools/lambda_log_filter.py
48b97917fd0d2dd5fc585e3048124b50c3c64f1c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
HDFGroup/hsds
af6c83e822088d430de3285f28ebfb32a89b05aa
21e0e25accda38f21e69c3326f794d34379378c1
refs/heads/master
2023-08-18T05:11:29.826766
2023-08-09T13:57:27
2023-08-09T13:57:27
64,322,709
110
57
Apache-2.0
2023-09-07T11:08:12
2016-07-27T16:04:12
Python
UTF-8
Python
false
false
3,498
py
lambda_log_filter.py
import sys """ This script takes the output of Cloud watch log csv file generated by HSDS Lambda, and converts it to a tab-seperated output with columns: timestamp, loglevel, process, message Note: timestamps may not be strictly increasing since there can be a log between the time the message is logged in the subpr...
b4d9bd3287fe2206384f9a544ea72c6ac3175548
b11113d4e20d5c2dca31a7e9a1fe33c8242c9416
/chainlink-keepers/scripts/add_num.py
34282eb606cd57a744800f24eb4fdde381af383d
[]
no_license
MoralisWeb3/youtube-tutorials
ce182b6b70443af36891ea3f3c25bde6914b9dd9
4f6fa634344614840b80f7a3942976f09837a77d
refs/heads/main
2023-07-06T10:22:32.342053
2023-07-04T22:26:39
2023-07-04T22:26:39
346,786,715
639
1,821
null
2023-05-21T12:00:47
2021-03-11T17:40:31
C#
UTF-8
Python
false
false
288
py
add_num.py
from brownie import AddNum from scripts.helpful_scripts import get_account def add_num(): account = get_account() num = AddNum[-1] tx = num.add({"from": account}) tx.wait(1) new_num = num.getNumber() print(f"New number is {new_num}") def main(): add_num()
a09a788bfb24116b099c82185b68f605973a0076
f4095ef092092399102bb21d1198e324f10f53ed
/pontoon/sync/formats/json_keyvalue.py
6395ccea93c7e6440cb628ad68b38c35d28dd081
[ "BSD-3-Clause" ]
permissive
mozilla/pontoon
2c53227570099ca666467d4e3d78e929bf456c9c
0c4f74e15b1e442a9cee9b1cd636214b24f5352b
refs/heads/master
2023-09-06T04:15:41.009180
2023-09-01T14:23:51
2023-09-01T14:23:51
1,385,890
1,367
713
BSD-3-Clause
2023-09-13T18:04:41
2011-02-19T11:25:51
Python
UTF-8
Python
false
false
4,886
py
json_keyvalue.py
""" Parser for key-value JSON, a nested Object structure of String values. This implementation does not supports plurals. Each key can be associated with either a String or an Object value. Therefore, the format support nested values. A key can contain any character. Nested keys are internally stored as a JSON array....
7067ff6c7973286a36600d252e8107b9dbf6616a
86393bd0d16c69363aa1afb4c4841fff6314493c
/servers/xgboostserver/xgboostserver/XGBoostServer.py
8d8ac7fa1fb5b19c877d46f6050e2e8ef953155a
[ "Apache-2.0" ]
permissive
SeldonIO/seldon-core
0179fc490c439dbc04f2b8e6157f39291cb11aac
6652d080ea10cfca082be7090d12b9e776d96d7a
refs/heads/master
2023-08-19T08:32:10.714354
2023-08-15T12:55:57
2023-08-15T12:55:57
114,898,943
3,947
885
Apache-2.0
2023-09-13T11:29:37
2017-12-20T14:51:54
HTML
UTF-8
Python
false
false
1,457
py
XGBoostServer.py
import numpy as np import seldon_core from seldon_core.user_model import SeldonComponent from typing import Dict, List, Union, Iterable import os import yaml import logging import xgboost as xgb logger = logging.getLogger(__name__) BOOSTER_FILE = "model.bst" class XGBoostServer(SeldonComponent): def __init__(se...
f3855f4843de181ae531f1b2a6d739edeb158225
9c65234673efd230b64bf035b8fb256929318f13
/igel/utils.py
f44201d1366126c377268b8cedf4e633061d5eb8
[ "MIT" ]
permissive
nidhaloff/igel
027c0412d11ddeaee627e747dd11d9f610fc8b17
fd8e5da93e1a588e5b550da80031178c33c75851
refs/heads/master
2023-08-21T20:49:35.760553
2023-04-08T21:24:51
2023-04-08T21:24:51
290,879,784
3,229
182
MIT
2023-04-08T21:24:52
2020-08-27T20:54:59
Python
UTF-8
Python
false
false
6,783
py
utils.py
import json import logging import joblib import pandas as pd import yaml from igel.configs import configs from igel.data import metrics_dict, models_dict logger = logging.getLogger(__name__) def create_yaml(data, f): try: with open(f, "w") as yf: yaml.dump(data, yf, default_flow_style=False)...
469febbbb29f4d90ebe51ff7fa6c2badfdbfb324
59359e4821554f559c9ffc5bf1a7f52fff0c6051
/descarteslabs/core/common/http/authorization.py
76af323babaa7b19f0c2187b42ee2feb6571b471
[ "Apache-2.0" ]
permissive
descarteslabs/descarteslabs-python
706acfc594721a1087872744c9cb72fe2b3d2e5b
a8a3859b8ced6d4478b93ff205caad06d508501d
refs/heads/master
2023-08-23T12:01:36.802085
2023-08-21T14:57:22
2023-08-21T15:20:01
84,609,153
176
49
NOASSERTION
2023-05-02T15:54:37
2017-03-10T23:27:12
Python
UTF-8
Python
false
false
1,566
py
authorization.py
# Copyright 2018-2023 Descartes Labs. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
b9ac760e27dcc3e88d395dfe7015b601e9460161
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stdlib/asyncio/transports.pyi
fefe9f2605df976c4f4a5163d9bb44b8a905132e
[ "MIT", "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
1,957
pyi
transports.pyi
from asyncio.events import AbstractEventLoop from asyncio.protocols import BaseProtocol from collections.abc import Iterable, Mapping from socket import _Address from typing import Any __all__ = ("BaseTransport", "ReadTransport", "WriteTransport", "Transport", "DatagramTransport", "SubprocessTransport") class BaseTra...
27dd34e4b0d939f8e5a0190c0f6d9497af08b482
7b6c038da851b1d2a3dde5f1158fce03482bc3c1
/luna/gateware/usb/usb3/physical/coding.py
8dd54527685b9e73c4d3ff1d926b219f61019c3f
[ "BSD-3-Clause", "CERN-OHL-P-2.0" ]
permissive
greatscottgadgets/luna
77b636481a3bef13137c7125de970e86a1fdda22
1d8e9cfa6a3e577f255ff3544384a1442b3b015b
refs/heads/main
2023-09-02T02:32:58.944632
2023-09-01T13:00:54
2023-09-01T13:00:54
215,722,076
842
160
BSD-3-Clause
2023-09-13T14:59:36
2019-10-17T06:45:30
Python
UTF-8
Python
false
false
3,789
py
coding.py
# # This file is part of LUNA. # # Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com> # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # # Code adapted from ``litex`` and ``usb3_pipe``. # SPDX-License-Identifier: BSD-3-Clause """ Code for USB3 physical-layer encoding. """ from amarant...
f4eb94adc07a823b9e40fdeed0441d35cdaa9ef0
060c559cdfe39e3ff37bcc4f5113f30901a605d7
/tests/keras2onnx_applications/nightly_build/test_cogan.py
15756eb542826e25776462b49962915dba6e74fc
[ "Apache-2.0" ]
permissive
onnx/tensorflow-onnx
4402bc3416b1e191b122120aafcce5a5f396b160
d5b7f39de66f3b4ff8731fd23b3f379ae731e601
refs/heads/main
2023-09-01T08:47:00.417130
2023-08-29T03:57:16
2023-08-29T03:57:16
125,098,252
2,068
454
Apache-2.0
2023-08-29T03:57:18
2018-03-13T18:39:56
Jupyter Notebook
UTF-8
Python
false
false
4,356
py
test_cogan.py
# SPDX-License-Identifier: Apache-2.0 import os import sys import unittest import mock_keras2onnx import onnx import numpy as np from mock_keras2onnx.proto import keras from os.path import dirname, abspath sys.path.insert(0, os.path.join(dirname(abspath(__file__)), '../../keras2onnx_tests/')) from test_utils import ru...
4a869b2b267bb716d0359f3c6a94f4f274150d8a
3a6a211ea0d32405497fbd6486c490bb147e25f9
/telemetry/telemetry/internal/platform/gpu_device_unittest.py
898346a23ffc73f17c6da624949d1b1e33b8b067
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
2,304
py
gpu_device_unittest.py
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import import unittest from telemetry.internal.platform import gpu_device class TestGPUDevice(unittest.TestCase): def te...
c21dc10aa94817a9395a3dce9c3d9c74d72c92d7
1fc86f77e0f86056bbbd1c5f5f4202b8714295fe
/pomegranate/distributions/dirac_delta.py
ce32cb1fa62ff8361d87b5ebdb9e0a9d4e74a4ea
[ "MIT" ]
permissive
jmschrei/pomegranate
1911609cc346656315fcda279b186e3d01ae6586
f8ed453337fae6b44eddcbfe0d1031d33d8bea76
refs/heads/master
2023-08-29T12:27:33.930492
2023-08-26T23:30:34
2023-08-26T23:30:34
27,089,158
3,346
703
MIT
2023-08-25T21:20:49
2014-11-24T18:36:58
Python
UTF-8
Python
false
false
5,769
py
dirac_delta.py
# diracdelta.py # Contact: Jacob Schreiber <jmschreiber91@gmail.com> import torch from .._utils import _cast_as_tensor from .._utils import _cast_as_parameter from .._utils import _update_parameter from .._utils import _check_parameter from ._distribution import Distribution class DiracDelta(Distribution): """A d...
eda7c996696db7468a64987f5897c6471b1fbc22
3d063af394b4b55ea49ded7915d0793602015859
/tools/webstats.py
10adccc93741077a2ffe9a1c28653e09541bede9
[ "Apache-2.0" ]
permissive
ringgaard/sling
00edad71195bfe71aa11e2e8dda97109c047e6e5
a612c5823954552ba422b441a7c7d57c1a5b4fcb
refs/heads/master
2023-08-07T15:24:10.569228
2023-08-02T12:25:44
2023-08-02T12:25:44
106,742,468
141
10
Apache-2.0
2020-08-03T13:25:36
2017-10-12T20:34:28
C++
UTF-8
Python
false
false
23,089
py
webstats.py
# Copyright 2021 Ringgaard Research ApS # # 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...
cb4a53faa0a50b5f0d72f2c0056601378d5d148d
c1b8b6080f29c8037100080298b897618a826475
/examples/tutorials/analysis-1d/spectrum_simulation.py
18247742b7fa4a00bca84681feba83ddd0748185
[ "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
8,185
py
spectrum_simulation.py
""" 1D spectrum simulation ====================== Simulate a number of spectral on-off observations of a source with a power-law spectral model using the CTA 1DC response and fit them with the assumed spectral model. Prerequisites ------------- - Knowledge of spectral extraction and datasets used in gammapy, see ...
a72b1f2e5651cc03e1682d65bb5aa0663e8a3110
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-core/tests/utils/test_parameter_helper.py
9d44ea79172eb2853f30cc743150340d77240b00
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
1,875
py
test_parameter_helper.py
# coding=utf-8 from tests import unittest from aliyunsdkcore.vendored.six import PY2 from aliyunsdkcore.utils import parameter_helper as helper class TestShaHmac1(unittest.TestCase): def test_get_uuid(self): uuid = helper.get_uuid() self.assertEqual(36, len(uuid)) self.assertNotEqual(hel...
401e059e5b35bc5ef4c0e9b15a8ba33fa4bcb5d6
faa84a83a3d347ac8b17cab2fa0599c65652a85d
/uliweb/contrib/csrf/middleware.py
10d2767b7c369a93ab504a05e5630c9f439bc512
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
limodou/uliweb
4d829568cb6bab4a807fb80adb84b6aa1d0e76ab
8bc827fa6bf7bf58aa8136b6c920fe2650c52422
refs/heads/master
2023-08-22T09:10:34.609797
2021-07-04T01:20:33
2021-07-04T01:20:33
283,042
230
65
BSD-2-Clause
2019-07-29T11:17:01
2009-08-20T13:50:46
Python
UTF-8
Python
false
false
1,629
py
middleware.py
#! /usr/bin/env python #coding=utf-8 import re from uliweb import Middleware, functions _POST_FORM_RE = re.compile(r'(<form\W[^>]*\bmethod\s*=\s*(\'|"|)POST(\'|"|)\b[^>]*>)', re.IGNORECASE) _HTML_TYPES = ('text/html', 'application/xhtml+xml') class CSRFMiddleware(Middleware): ORDER = 150 def __init__(self...