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
2263d8eda07b68d70ae9b2c9b01d7747b80e88d8
b9c01a2ae09be278f1b71fdcd7dcf2ed0b8f0add
/tests/integration/test_array.py
7adb8b093c6524a09f85065ead1ff98eb419674f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nv-legate/cunumeric
aae3e9232edef915e5bcb84f3f216fcc99b648e4
8dddd18022055374f51e1728e81a49958908e04a
refs/heads/branch-23.09
2023-09-03T21:17:13.274085
2023-09-01T01:07:21
2023-09-01T01:07:21
356,975,888
447
56
Apache-2.0
2023-09-12T20:41:20
2021-04-11T20:46:50
Python
UTF-8
Python
false
false
4,995
py
test_array.py
# Copyright 2022 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
496cc0281595927c854a4a36e1d8261a7c2894ad
3ee5bf329a2e58eb9f775ec5ee6a329fd3541e36
/scrapy/http/common.py
bc8861574f27b054eb7c9fc86e2f6a10b0c45882
[ "BSD-3-Clause" ]
permissive
scrapy/scrapy
53bd79e500e2cb7441d33bfd61ba003962d5fb46
cddb8c15d66831dc4e1bc4b745fcc6c534bb03dc
refs/heads/master
2023-08-31T04:08:06.193342
2023-08-30T18:29:54
2023-08-30T18:29:54
529,502
47,472
12,120
BSD-3-Clause
2023-09-14T12:08:07
2010-02-22T02:01:14
Python
UTF-8
Python
false
false
240
py
common.py
def obsolete_setter(setter, attrname): def newsetter(self, value): c = self.__class__.__name__ msg = f"{c}.{attrname} is not modifiable, use {c}.replace() instead" raise AttributeError(msg) return newsetter
5210af0064245d8b188e0e3d809bbeee61edfe97
44ba493efd0fd7ae78880d3d93cc0d66166935e5
/tests/platforms/linux/flatpak/test_create.py
0f977a8d3f79ef46db8733b7567ad4157e647315
[ "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
1,844
py
test_create.py
from unittest.mock import MagicMock import pytest from briefcase.console import Console, Log from briefcase.exceptions import BriefcaseConfigError, UnsupportedHostError from briefcase.integrations.flatpak import Flatpak from briefcase.platforms.linux.flatpak import LinuxFlatpakCreateCommand @pytest.fixture def crea...
a177abe57e8437ded1b3ca45927e0a56f0304ece
b8b1245cd42d76bbf07f618a6ac164f5b93e8652
/nnmnkwii/autograd/__init__.py
5a53e4313ca054f3c875c8c2eceec93268bff191
[ "MIT" ]
permissive
r9y9/nnmnkwii
ff20074b27f8b3e8afb47a2e83c829e1869e24c9
def33752d2907d241c379574da1e1b5ae979cd99
refs/heads/master
2023-08-22T18:59:44.128812
2023-02-03T11:06:48
2023-02-03T11:06:48
96,328,821
410
88
NOASSERTION
2023-02-03T11:06:49
2017-07-05T14:33:50
Python
UTF-8
Python
false
false
260
py
__init__.py
from ._impl.mlpg import MLPG # noqa from ._impl.mlpg import UnitVarianceMLPG # noqa from ._impl.mlpg import mlpg # noqa from ._impl.mlpg import unit_variance_mlpg # noqa from ._impl.modspec import ModSpec # noqa from ._impl.modspec import modspec # noqa
bdd7c61a0f404b51ad0bbe65c585642a05c975be
9abc1fe64663e658c1926f0e238004ce890437bf
/torcms_metadata/pycsw_helper/cfg_demo.py
19021fa1465124098e42193b1465297322a41b92
[ "MIT" ]
permissive
bukun/TorCMS
e7a8a3a0e4e728e64d2a34c56d694e48e0e3a098
f9afae46a5029d213d5fb60850c93b37b813ae15
refs/heads/master
2023-08-31T05:37:35.861174
2023-08-29T02:41:12
2023-08-29T02:41:12
30,642,412
256
105
MIT
2023-07-20T02:24:20
2015-02-11T10:22:06
CSS
UTF-8
Python
false
false
83
py
cfg_demo.py
from peewee import SqliteDatabase pycsw_db = SqliteDatabase('database/cite.db')
1f71c6c4ead8c8c21d6560c0bdf4216debdcb80c
2571ab21fd3b1281a534f0073a4229c9f215c20f
/jiant/tasks/lib/ccg.py
e21a9baf43c2c31919518165e544e00097ef6f66
[ "MIT" ]
permissive
nyu-mll/jiant
5ed71cfef826e1e4c3b529371b1f40642a96ab48
daa5a258e3af5e7503288de8401429eaf3f58e13
refs/heads/master
2023-09-02T15:58:19.260599
2022-10-17T19:34:56
2022-10-17T19:34:56
137,789,266
1,289
302
MIT
2023-07-06T22:00:39
2018-06-18T18:12:47
Python
UTF-8
Python
false
false
5,553
py
ccg.py
import numpy as np import torch from dataclasses import dataclass from typing import List, Union from jiant.tasks.core import ( BaseExample, BaseTokenizedExample, BaseDataRow, BatchMixin, Task, TaskTypes, ) from jiant.tasks.lib.templates.shared import ( labels_to_bimap, create_input_set...
5d78f06056f08d6be52b766dc4935c121a9fb701
ff4ce3522d502248f56b32438b303c3301185709
/cwltool/cuda.py
719bfd8677f1d7581b6bd89df89ff171de9c6fc3
[ "Apache-2.0" ]
permissive
common-workflow-language/cwltool
d8304f3dcd6e31bda6d0ea11452b692987e39b28
bd89c5694685bff46bf56fb32316c8f6fe0d799d
refs/heads/main
2023-08-24T09:43:39.331516
2023-08-23T15:05:17
2023-08-23T16:45:11
43,816,051
336
258
Apache-2.0
2023-09-13T10:55:19
2015-10-07T13:03:05
Python
UTF-8
Python
false
false
2,341
py
cuda.py
"""Support utilities for CUDA.""" import subprocess # nosec import xml.dom.minidom # nosec from typing import Tuple from .loghandler import _logger from .utils import CWLObjectType def cuda_version_and_device_count() -> Tuple[str, int]: """Determine the CUDA version and number of attached CUDA GPUs.""" tr...
0544962f867fbbba5f72d94be06d599b1bfc79a1
bc371b9238956bc00cc33654b1d68651c6edf371
/writeups/2021/corCTF/ret2cds/chall/solve.py
aa79e0c645d2017ff1ff6d876e8b2e1748471193
[ "MIT" ]
permissive
welchbj/ctf
447202921fbf5c467af62b4f72f5f489c7c471f0
3b54769a8312f755eb97e7b4c954e4b5829af8e1
refs/heads/master
2023-08-19T03:28:33.264186
2023-08-11T18:38:17
2023-08-11T18:38:17
213,223,536
167
28
MIT
2023-04-18T13:29:33
2019-10-06T18:42:03
Python
UTF-8
Python
false
false
10,124
py
solve.py
#!/usr/bin/env python3 from pwn import * the_binary = "./ret2cds" context.binary = the_binary elf = context.binary libc = ELF("./libc.so.6", checksec=False) context.terminal = ["tmux", "splitw", "-h"] if args.REMOTE: io = remote(args.HOST, int(args.PORT)) elif args.STRACE: io = process(["strace", "-o", "tra...
941380ad326523db2d5fc57631a4e528699b944d
091a6200be74bf6577c86f623665bcc24e16b02b
/Sound_Reactive_NeoPixel_Peace_Pendant/code.py
fc832ce4e9bb784a6e2f4d290e83e8ed1ca855ac
[ "MIT" ]
permissive
adafruit/Adafruit_Learning_System_Guides
b5f7bce40a16da64e7a79d4b39de032f2cca41d4
5eaa7a15a437c533b89f359a25983e24bb6b5438
refs/heads/main
2023-09-05T18:31:41.621956
2023-09-05T15:36:09
2023-09-05T15:36:09
105,065,494
937
937
MIT
2023-09-12T18:48:53
2017-09-27T20:22:44
C
UTF-8
Python
false
false
3,500
py
code.py
# SPDX-FileCopyrightText: 2017 Limor Fried for Adafruit Industries # # SPDX-License-Identifier: MIT import array from rainbowio import colorwheel import board import neopixel from analogio import AnalogIn led_pin = board.D0 # NeoPixel LED strand is connected to GPIO #0 / D0 n_pixels = 12 # Number of pixels you are ...
2c1789e9c83a887791e46934ce3557f383820348
307bfc6322390e0ba2703e486cbd511de1be3b72
/Base/BaseExcel.py
3e6cf9d514a3f775d3dfce769fee9b8afadbf5b5
[]
no_license
Lemonzhulixin/python-appium
f646b5bbe7771da818f90ac5ff46ea82fc284eec
c5df4773b6bdbdbf13282c485bf4ed11d87e3614
refs/heads/master
2022-06-23T21:46:27.162099
2022-06-13T02:41:43
2022-06-13T02:41:43
145,664,879
183
72
null
null
null
null
UTF-8
Python
false
false
7,080
py
BaseExcel.py
import xlsxwriter import os PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) class OperateReport: def __init__(self, wd): self.wd = wd def init(self, worksheet, data, devices): # 设置列行的宽高 worksheet.set_column("A:A", 15) worksheet.set_column("...
ca32d3d304a3dfab68b5c8e43c99adf893702f53
44ca5dc8a807b3b59df201559a68ec9eacdcaef0
/classinformer.py
a985097c5acf324894280919890215a2746ad077
[ "Zlib" ]
permissive
nccgroup/SusanRTTI
fdf6733de906703e89c1fda713f4242b3f4741df
a0baf99937cd82bedaa9dbae98bfd370eb49cdf3
refs/heads/master
2023-08-09T18:15:27.851029
2023-06-28T21:41:09
2023-06-28T21:41:09
105,178,389
179
40
NOASSERTION
2023-07-22T20:09:52
2017-09-28T17:26:14
Python
UTF-8
Python
false
false
890
py
classinformer.py
# ClassInformer python # Nicolas Guigo / NCC Group # Tyler Colgan / NCC Group # 03/2017 import idaapi from idc import * from ida_search import find_text idaapi.require("utils") idaapi.require("msvc") idaapi.require("gcc") idaapi.require("classdiagram") from idaapi import auto_is_ok from msvc import run_msvc from gcc ...
ac06fe0740906ee537aa219f0b01324bddccd481
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/sorts/counting_sort.py
256952df52d2e520d6a9ce8f70f84ff667085976
[ "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,265
py
counting_sort.py
""" This is pure Python implementation of counting sort algorithm For doctests run following command: python -m doctest -v counting_sort.py or python3 -m doctest -v counting_sort.py For manual testing run: python counting_sort.py """ def counting_sort(collection): """Pure implementation of counting sort algorithm...
aeabc32bdc2da1c283858884b78a1f44022f794d
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/torch_geometric/nn/conv/wl_conv_continuous.py
f74946060f91e4f639a0984358333be8b92a5d29
[ "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
2,349
py
wl_conv_continuous.py
from typing import Union from torch import Tensor from torch_geometric.nn.conv import MessagePassing from torch_geometric.typing import OptPairTensor, OptTensor, Size from torch_geometric.utils import scatter class WLConvContinuous(MessagePassing): r"""The Weisfeiler Lehman operator from the `"Wasserstein W...
b71721891c8321374aa3efccf187d777498d9a83
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/eventhubs/operations/app_group_custom_file.py
9f70434d00883b2408ecbc978b1a3ac13c440ab5
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
3,924
py
app_group_custom_file.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
947a2a8704638984f37bdbc7d793821aeca4ab19
dd221d1ab80a49190a0c93277e2471debaa2db95
/hanlp/datasets/srl/ontonotes5/_utils.py
43fc05752f302236188cece0cf4cea27deaf437d
[ "Apache-2.0", "CC-BY-NC-SA-4.0" ]
permissive
hankcs/HanLP
29a22d4e240617e4dc67929c2f9760a822402cf7
be2f04905a12990a527417bd47b79b851874a201
refs/heads/doc-zh
2023-08-18T12:48:43.533453
2020-02-15T17:19:28
2023-03-14T02:46:03
24,976,755
32,454
9,770
Apache-2.0
2023-08-13T03:11:39
2014-10-09T06:36:16
Python
UTF-8
Python
false
false
25,086
py
_utils.py
#!/usr/bin/env python import codecs import collections import glob import json import os import re import sys from pprint import pprint from typing import List, Dict, Union from hanlp_common.io import eprint, save_json from hanlp.common.transform import NormalizeToken from hanlp.datasets.parsing.loaders._ctb_utils im...
6deca30cab8da4ee069751b87a92052f7569cdd3
07b0fb1bfecaf76d6176a67f0134b9ce3cc5cf69
/etc/get_bson_version.py
8db1453d0fb89bd92cf650efd063250129786399
[ "Apache-2.0" ]
permissive
mongodb/mongo-swift-driver
58e26bbd6cbea6ac6cee55f1832c68ae45b9630d
7fe1ba14f54a0f444d78c6ab1a1ce1ee124b6a91
refs/heads/main
2023-08-28T14:40:32.927651
2023-04-13T18:00:02
2023-04-13T18:00:02
118,030,974
354
82
Apache-2.0
2023-08-28T23:54:19
2018-01-18T19:55:11
Swift
UTF-8
Python
false
false
207
py
get_bson_version.py
import json with open('Package.resolved', 'r') as f: data = json.load(f) bson_data = next(d for d in data['object']['pins'] if d['package'] == 'swift-bson') print(bson_data['state']['version'])
3091efdd1c2ba7f9bc5a57e74343656854d4fcec
bacaef23d2e3bf8da1b5a2a0b3bbd560d1ef572c
/google_play_scraper/constants/request.py
3a02aa7f81ed67c769d72b33e285ebbc3e11ec45
[ "MIT" ]
permissive
JoMingyu/google-play-scraper
d86fed38bc92fb799c5a2cfe4e46ecd0418cfdd8
654bcc55b2ef689bc5051075f9fd4b8fae669099
refs/heads/master
2023-08-21T14:56:39.955025
2023-08-16T06:27:10
2023-08-16T06:27:10
190,213,255
604
167
MIT
2023-09-13T21:31:24
2019-06-04T14:02:11
Python
UTF-8
Python
false
false
4,041
py
request.py
from abc import ABC, abstractmethod PLAY_STORE_BASE_URL = "https://play.google.com" class Format(ABC): @abstractmethod def build(self, *args): raise NotImplementedError @abstractmethod def build_body(self, *args): raise NotImplementedError class Formats: class _Detail(Format): ...
97424843efd5089a99cbcc5edb2c05c8ea308ad0
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/cloudformation/_inputs.py
d79d2a6e8dbcf149d97a329c899ecf540d4cea27
[ "MPL-2.0", "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
15,618
py
_inputs.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
e2d8cb2569076bd76e7576c576e1904add6ac9de
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AntMerchantOrderStoreQueryResponse.py
13434db198838592f5ef49211d26548a3ec1b457
[ "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
3,536
py
AntMerchantOrderStoreQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.OrderExt import OrderExt from alipay.aop.api.domain.StoreOrderGood import StoreOrderGood class AntMerchantOrderStoreQueryResponse(AlipayResponse): def __init__(s...
fa4e9e3b0c04fe0af58c9e8fab2eb638af7d406c
1eca7ab68f713f9134549be8cff40d953d784326
/empire/server/api/v2/meta/meta_api.py
d28c66e6705549a29aab6462565d9826e3692a00
[ "BSD-3-Clause" ]
permissive
BC-SECURITY/Empire
65576ac931635cded054912a02ed5d02a1b41f8d
5b2ad2c2e9b9f996e40c484215dfea36fefc808d
refs/heads/main
2023-09-04T05:00:52.366894
2023-08-27T22:08:54
2023-08-27T22:08:54
199,975,883
3,651
601
BSD-3-Clause
2023-09-08T05:50:26
2019-08-01T04:22:31
PowerShell
UTF-8
Python
false
false
858
py
meta_api.py
from fastapi import Depends import empire.server.common.empire from empire.server.api.api_router import APIRouter from empire.server.api.jwt_auth import get_current_active_user from empire.server.api.v2.meta.meta_dto import EmpireVersion from empire.server.api.v2.shared_dto import BadRequestResponse, NotFoundResponse ...
5a05569980df2c8814c6275a15fd3979fe6846a6
a23a33d919d7465bbca5ce6bdac87a07e672e2b4
/test/test_events.py
b5da3dd4a32c027f6a218760c04d98857fc4b381
[ "MIT" ]
permissive
nginx-proxy/nginx-proxy
66ff7a686acedd90545f5cf0a516aa6e812a6225
67ab97ed64875e9b671039903ce4c3a94d848b33
refs/heads/main
2023-09-06T06:20:24.081133
2023-09-04T07:05:03
2023-09-04T07:05:03
19,463,625
5,372
1,050
MIT
2023-09-11T04:17:40
2014-05-05T17:01:40
Python
UTF-8
Python
false
false
2,377
py
test_events.py
""" Test that nginx-proxy detects new containers """ from time import sleep import pytest from docker.errors import NotFound @pytest.fixture() def web1(docker_compose): """ pytest fixture creating a web container with `VIRTUAL_HOST=web1.nginx-proxy` listening on port 81. """ container = docker_compos...
7587f14f5bbf6cdcead90a96431a8b9a28d08fd7
cd9d6c3de853e9e2f1a4d4730b58a574052d8e0c
/j1b/verilator/shell.py
a1065802b69bea6c34cdc08331f19dbc9b3d3985
[ "BSD-3-Clause" ]
permissive
jamesbowman/swapforth
d4f315a59a9bdfd4ee63af0bc4131b821c2b8166
8dbff77d7b8ecd6574926a2e128aa76d3e5450fd
refs/heads/master
2022-11-18T07:38:25.265422
2021-10-11T14:05:24
2021-10-11T14:05:24
37,439,378
281
65
BSD-3-Clause
2022-10-19T19:40:50
2015-06-15T02:33:15
Forth
UTF-8
Python
false
false
1,231
py
shell.py
from __future__ import print_function import sys from datetime import datetime import time import array import struct import os sys.path.append("build/lib/python/") import vsimj1b sys.path.append("../../shell") import swapforth class TetheredJ1b(swapforth.TetheredTarget): cellsize = 4 def open_ser(self, por...
4025c43023cc785922efe9de3336f7c52c4ef99f
0882ed3c9e1078a8f69a1fc720d2c05c9289dd23
/src/wrappers/python/setup.py
e92ba454ba89e99b8629e24ad2249eb7a2e78e7e
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
AcademySoftwareFoundation/openexr
846500ee441cc7b60d717ca4377050c55949ecde
1ee0ffec3a499ac8bae1ad7e5eff60571d1d83de
refs/heads/main
2023-09-01T11:33:55.842765
2023-08-31T20:30:32
2023-08-31T20:30:32
3,533,348
782
281
BSD-3-Clause
2023-09-14T20:59:10
2012-02-24T06:30:00
C
UTF-8
Python
false
false
2,938
py
setup.py
from setuptools import setup, Extension import os import platform import re DESC = """Python bindings for the OpenEXR image file format. This is a script to autobuild the wheels using github actions. Please, do not use it manually If you detect any problem, please feel free to report the issue on the GitHub page: ...
254f15fae96dd4049a4633f4c6e2a1f761f1cf9c
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/detect-pattern-of-length-m-repeated-k-or-more-times.py
8c3057cfba09f394f57058b4441912b1d8323a27
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
449
py
detect-pattern-of-length-m-repeated-k-or-more-times.py
# Time: O(n) # Space: O(1) class Solution(object): def containsPattern(self, arr, m, k): """ :type arr: List[int] :type m: int :type k: int :rtype: bool """ cnt = 0 for i in xrange(len(arr)-m): if arr[i] != arr[i+m]: cnt =...
723d208d637b9c8386c1c84034c80bbdbdadb0f2
363789ea76e72b7ca571ca34e9b7f4e126d8fa15
/src/tests/diagnostics/diagnostics_test.py
ba7d0aed8d53ebac62d25c3598fb641bd56db5f0
[ "Apache-2.0" ]
permissive
ElasticBox/elastickube
d6a4ffc7d524930c0078bd4688908a1e42840455
8ef9ebaaa62559bc896a1b7517688aaf1db3e464
refs/heads/master
2020-05-22T05:42:34.102362
2017-05-03T13:09:24
2017-05-03T13:09:24
53,607,662
193
51
null
2017-05-16T13:47:04
2016-03-10T18:32:07
CSS
UTF-8
Python
false
false
17,211
py
diagnostics_test.py
""" Copyright 2016 ElasticBox 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 agreed to in ...
260a60669f3d12e8a8a7a789e603b2707d9c0631
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/resource/_color.py
c660ed86c65196d28773fa3c79769eb67f144b81
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
2,041
py
_color.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
04a5694e003a67ac749d1e13426eea356d291694
a960e38868b3a157179bb576ac78b0f144140ed8
/PyTorch/examples/custom_op/custom_topk/hpu_custom_op_topk_test.py
1145a093a94d152c05ad2b68331f0479e650afdc
[]
no_license
HabanaAI/Model-References
d339b211adf8be9575ebb1e3bb6afd6cd04312e6
3ca77c4a5fb62c60372e8a2839b1fccc3c4e4212
refs/heads/master
2023-08-17T06:32:28.714253
2023-08-14T15:22:08
2023-08-14T15:22:08
288,377,272
108
53
null
2023-08-18T02:30:16
2020-08-18T06:45:50
Python
UTF-8
Python
false
false
474
py
hpu_custom_op_topk_test.py
import torch import habana_frameworks.torch.core def test_custom_div_op_function(custom_op_lib_path): torch.ops.load_library(custom_op_lib_path) print(torch.ops.custom_op.custom_topk) a_cpu = torch.rand((6, 6)) a_hpu = a_cpu.to('hpu') a_topk_hpu, a_topk_indices_hpu = torch.ops.custom_op.custom_topk...
9fdadcd130ef824b59b6bcb9263fe7ace917551d
77cc80b19d7530eed54b389bc288ed0b7331f49a
/passcrambler.py
67311bc9742968f15f6d5d0b9112869cd8965f9f
[ "BSD-2-Clause" ]
permissive
hasherezade/password_scrambler
d976a7dd876f13ca8a7b335c5a51798adeec1143
0bb1dd06ee8d7619ef6be69fa962b91e522258d1
refs/heads/master
2023-01-09T14:55:11.963856
2023-01-02T17:52:00
2023-01-02T17:52:00
42,003,726
127
44
BSD-2-Clause
2021-05-26T03:19:48
2015-09-06T13:33:37
Python
UTF-8
Python
false
false
4,183
py
passcrambler.py
#!/usr/bin/env python3 import argparse import getpass import base64 import hashlib import pyperclip from Crypto.Cipher import AES # AES: pad = lambda s: s + (AES.block_size - len(s) % AES.block_size) * chr(AES.block_size - len(s) % AES.block_size).encode() def aes_encrypt(seed, key, raw): raw = pad(raw) iv ...
c8d2feae2e9733fff7340f5951d1b61c8c9f4792
ef870111eb0e5403b3bfd07867455a5b4715b683
/3D/levelset_data.py
541e0e5168e248a3a08dbc76e4952df288430e0a
[]
no_license
vsitzmann/metasdf
93203b819d4adb375854ea56844f830414295d8f
56d0c6e411d23523bd638aa0ad37c0c2c9dbdb9d
refs/heads/master
2023-02-12T00:16:35.951907
2021-01-16T00:25:44
2021-01-16T00:25:44
293,341,779
131
15
null
null
null
null
UTF-8
Python
false
false
13,170
py
levelset_data.py
""" Dataloaders for 3D experiments. Based on code from DeepSDF (Park et al.) """ import time import plyfile import glob import logging import numpy as np import os import random import torch import torch.utils.data import trimesh import skimage.measure def get_instance_filenames(data_source, split): npzfiles = [...
70d765e66e076ba687d147dfa17a3e7f325085a1
61004e474b7b2ad0071c16766f0f7874f04f9466
/tools/gsuite-exporter/examples/sync_reports.py
8568de97d5eee451fd6fd3c4f0c5c9458a14ea9e
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/professional-services
eb79751efae765a8c691a745e520f44f51bd715c
0f51121b945bd74c7f667e74e8861fceda87565c
refs/heads/main
2023-09-05T02:57:33.328973
2023-08-30T14:40:30
2023-08-30T14:40:30
91,730,359
2,626
1,381
Apache-2.0
2023-09-14T20:13:42
2017-05-18T19:29:27
Python
UTF-8
Python
false
false
1,001
py
sync_reports.py
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
1eca13594e856349816f1e2dcac72b906913deb6
73768455b5b4380b37875f7c6588ab989e907dc6
/demo/timing.py
a130c4db4cdd9711c8b5e318831829da390bb757
[ "MIT" ]
permissive
bd-j/prospector
5548d4d09d50e5aa5824194d048b698842ee3872
5c0255ae828c2b501e66747dcae963fec5e81a8d
refs/heads/main
2023-09-01T00:26:38.316920
2023-08-28T15:41:27
2023-08-28T15:41:27
10,490,445
139
73
MIT
2023-08-04T13:48:12
2013-06-04T22:47:00
Python
UTF-8
Python
false
false
3,522
py
timing.py
from copy import deepcopy import timeit, time, sys import numpy as np import fsps from prospect.sources import FastStepBasis, CSPBasis sps = fsps.StellarPopulation(zcontinuous=1) libs = [l.upper() for l in sps.libraries] def get_model(sps, **kwargs): try: # For SSPBasis derived objects sps.updat...
ed1a961247c63899c3c7baeab4371e5e88a55863
2b8f195b10e8e12db1252318922668cb432ea8ab
/mvlearn/compose/merge.py
b01e9499f2c38630bb866f6f7cad50dd12d8634a
[ "MIT" ]
permissive
mvlearn/mvlearn
70fba0fc52e1467101adadf46cf61e7076838c2f
003dccea563926fca5d957f5bbf39c1494acfe94
refs/heads/main
2023-04-18T15:47:53.716354
2022-04-05T22:17:18
2022-04-05T22:17:18
206,838,300
136
17
MIT
2023-03-08T17:37:59
2019-09-06T16:56:51
Python
UTF-8
Python
false
false
7,359
py
merge.py
"""Merging utilities.""" # Authors: Pierre Ablin # # License: MIT import numpy as np from abc import abstractmethod from sklearn.base import TransformerMixin from sklearn.utils.validation import check_is_fitted from ..utils.utils import check_Xs class BaseMerger(TransformerMixin): """A base class for merging...
b1d46011f78b36fd71f4f1bdb718bd75053db64a
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/tests/terraform/checks/resource/gcp/test_GoogleProjectAdminServiceAccount.py
37fd4a8a48bd986aa7b83832e8af4673cb9b5635
[ "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,305
py
test_GoogleProjectAdminServiceAccount.py
import unittest import hcl2 from checkov.terraform.checks.resource.gcp.GoogleProjectAdminServiceAccount import check from checkov.common.models.enums import CheckResult class TestGoogleComputeDiskEncryption(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" resource "googl...
5a7123c8e76a718015e5838254900d3e8188c644
fba68a71f9f7d4a2bf49136cdb315fc8258f65e7
/kengine/render/polyvox/libs/polyvox/documentation/_extensions/sphinxcontrib/parsing.py
a110e0674dc3470f5339f9445691db6997e38b5b
[ "MIT", "BSD-2-Clause" ]
permissive
phisko/kengine
a434e66aaa025b95596a6a72c002aba5ba09d75e
5a0ad085cdefaffe56e2b049e9772ac7a2d05d15
refs/heads/main
2023-08-08T05:49:40.621314
2023-03-10T10:26:39
2023-03-10T12:07:20
89,867,048
372
22
MIT
2023-03-10T12:07:21
2017-04-30T17:50:30
C++
UTF-8
Python
false
false
6,520
py
parsing.py
#import multiprocessing import itertools from pyparsing import Word, Literal, alphas, nums, alphanums, OneOrMore, Optional, SkipTo, ParseException, Group, ZeroOrMore, Suppress, Combine, delimitedList, quotedString, nestedExpr, ParseResults, oneOf # define punctuation - reuse of expressions helps packratting work bett...
c0f18b2c1d20a4d93076f727110a3e501c403825
82d65bb050149ee5b3a5995dedf3a233f2dabba4
/Eve/tools/pm/ui/ui_pm_add_sequence.py
09daafd11fdf1649ba8fa4661a2af43f23b61f96
[]
no_license
kiryha/Houdini
d2271987b03b4abc739236fd4544a8ff5e1519dd
4e58b79e5992dc4fb4e73e44cd2a7e0522420d15
refs/heads/master
2022-12-14T02:54:38.519360
2022-12-06T00:48:31
2022-12-06T00:48:31
121,566,961
668
120
null
null
null
null
UTF-8
Python
false
false
1,466
py
ui_pm_add_sequence.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'E:\Eve\Eve\tools\pm\ui\ui_pm_add_sequence.ui', # licensing of 'E:\Eve\Eve\tools\pm\ui\ui_pm_add_sequence.ui' applies. # # Created: Wed Feb 05 11:57:12 2020 # by: pyside2-uic running on PySide2 5.9.0a1.dev1528389443 # # WARNING! All cha...
6b506339b41573e31364a09fa7bef5f778fd82a1
ea57d267ab31480d8d731b2c095e9da9ad989133
/packages/fetchai/protocols/aggregation/aggregation_pb2.py
e46ed141e6d6432f55e1d005f9b96ae3bc81c640
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
true
3,553
py
aggregation_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: aggregation.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from ...
7ccd8e198077ce01c5f066281ed112895523b6dc
0f2b08b31fab269c77d4b14240b8746a3ba17d5e
/onnxruntime/test/python/quantization/op_test_utils.py
e94ac5c9615836b9f850b8ac13f9750238234bfb
[ "MIT" ]
permissive
microsoft/onnxruntime
f75aa499496f4d0a07ab68ffa589d06f83b7db1d
5e747071be882efd6b54d7a7421042e68dcd6aff
refs/heads/main
2023-09-04T03:14:50.888927
2023-09-02T07:16:28
2023-09-02T07:16:28
156,939,672
9,912
2,451
MIT
2023-09-14T21:22:46
2018-11-10T02:22:53
C++
UTF-8
Python
false
false
17,361
py
op_test_utils.py
import uuid from pathlib import Path import numpy as np import onnx from onnx import TensorProto from onnx.helper import float32_to_float8e4m3, np_dtype_to_tensor_dtype from onnx.numpy_helper import float8e4m3_to_float32 from onnx.reference import ReferenceEvaluator from onnx.reference import ops as onnx_ops from onnx...
dc35edc0e918238f3d78b3a3d0f25eb02971dea0
4ff11364a6dc59bd6bf7fb4efd868c7e45b1caab
/calamari_ocr/ocr/savedmodel/migrations/loadweights.py
87fcf504650453e7553603e58657e46955da88ed
[ "Apache-2.0" ]
permissive
Calamari-OCR/calamari
6cf29512e71025b90807462b452595abe94cb8f3
2f71b7eb08339d25ccb21d80c1d5b851f3d5bdaa
refs/heads/master
2023-08-22T05:34:23.008839
2023-08-18T11:01:23
2023-08-18T11:01:23
126,039,059
1,019
245
Apache-2.0
2023-09-05T09:30:58
2018-03-20T15:22:29
Python
UTF-8
Python
false
false
1,426
py
loadweights.py
def load_and_convert_weights(ckpt, dry_run=True): import tensorflow as tf tf.compat.v1.reset_default_graph() with tf.compat.v1.Session() as sess: available_vars = tf.compat.v1.train.list_variables(ckpt) available_var_names = [var_name for var_name, _ in available_vars] for var_name...
6c3294301212b1fb9400e982b477916c07e18036
5105403f2b75990654519438d8ceabcf80962ebf
/src/bokeh/themes/_night_sky.py
470ed6dcf0ab20ead3d2865d376d152764bc551b
[ "BSD-3-Clause" ]
permissive
bokeh/bokeh
ed1d81eb07d27d27c6710c9fec9114886047f528
310cb2cbeabc4c4b8180cbda566df16039737cdc
refs/heads/branch-3.3
2023-08-31T23:53:06.537061
2023-08-30T03:43:05
2023-08-30T03:43:05
3,834,332
17,174
5,251
BSD-3-Clause
2023-09-14T11:37:23
2012-03-26T15:40:01
Python
UTF-8
Python
false
false
2,382
py
_night_sky.py
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2023, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
6342792b9fd00a2cdf78aadf6395c2886a45b9fb
26bbcfdb811f7df13f7b5a95ba551da7adac4e9b
/src/certfuzz/scoring/multiarmed_bandit/round_robin_bandit.py
68da68ce5f1c0c85df89501f725e70daf11b8398
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
CERTCC/certfuzz
080c3a5448a39d02049253fad96498ba50191586
892dae8676535b0ae5b77eea95ffbc21e9e1c959
refs/heads/develop
2022-11-11T06:12:09.032184
2020-06-10T19:57:26
2020-06-10T19:57:26
20,684,363
161
25
NOASSERTION
2023-05-10T14:27:00
2014-06-10T12:29:53
Python
UTF-8
Python
false
false
362
py
round_robin_bandit.py
''' Created on Jan 10, 2014 @author: adh ''' import itertools from certfuzz.scoring.multiarmed_bandit.multiarmed_bandit_base import MultiArmedBanditBase class RoundRobinMultiArmedBandit(MultiArmedBanditBase): def __iter__(self): ''' Implements a simple round robin iterator ''' ret...
a9f7a2806bc76b7f11976affe1b8d273c897a0cd
e2b9f2354c36bd1edfa141d29f60c13ea176c0fe
/2017/bostonkeyparty/qtcrackme.py
283ce4a8265db98d95a386ddfde7736ada00e748
[]
no_license
Jinmo/ctfs
236d2c9c5a49d500e80ece4631a22c7fb32c3c3f
d225baef7942250a5ff15a3f2a9b7ad8501c7566
refs/heads/master
2021-07-24T15:17:05.489163
2021-07-05T16:05:15
2021-07-05T16:05:15
68,125,231
162
26
null
null
null
null
UTF-8
Python
false
false
4,361
py
qtcrackme.py
import numpy as np from numpy.linalg import inv as inv_matrix # really??? from z3 import * ciphertext = [342868586L, 276196100L, 719703660L, 771095780L, 607388058L, 526903709L, 1078504063L, 1277609804L, 380802638L, 328226818L, 869243743L, 752195599L, 503103844L, 346660259L, 739251810L, 732552923L] key = [37087L, 28860...
12e27fe20d6953ebabeced7bf665b59b0d34740e
091e40b7cc9ac83d30e860603b4c8cdc785b77ee
/merlion/post_process/factory.py
e2216ddc8b58d4497bc59e7fa0e179475b918418
[ "BSD-3-Clause" ]
permissive
salesforce/Merlion
b7a75326cd05883285f25ff856c89dc80570e602
01c3fc3406ebf19798cedcddbe829ae5339e1424
refs/heads/main
2023-04-10T02:25:43.959522
2023-03-22T18:39:54
2023-03-22T18:39:54
390,401,992
2,905
268
BSD-3-Clause
2023-03-22T18:39:56
2021-07-28T15:30:56
Python
UTF-8
Python
false
false
1,283
py
factory.py
# # Copyright (c) 2023 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # """ Contains the `PostRuleFactory`. """ from typing import Type from merlion.post_process.base impor...
6326306f769cfb88f5f70284d6252a2b664875b0
7fe5cb99188c7270f726b1145fc356fd2922df9d
/geoapi/src/main/python/opengis/geometry/__init__.py
ade90e843bf60fe43c22c6f6e91d6e4fc6b8e60d
[ "Apache-2.0" ]
permissive
opengeospatial/geoapi
eedcf2d3259284fc614f7fa132c77fcef67d7ecc
7a0872373e4ad70039b5ec9be2f086081fb5c746
refs/heads/master
2023-08-17T23:37:23.874101
2023-08-10T20:02:27
2023-08-10T20:02:27
27,879,839
111
33
NOASSERTION
2021-06-28T08:08:29
2014-12-11T16:13:54
Java
UTF-8
Python
false
false
90
py
__init__.py
""" Geographic metadata structures derived from the ISO 19107 international standard. """
9a17f3f050fa72393e63b9cda4903819e6d37e3c
57c0a57269dfc516c7f46468940efb62cb863af4
/langchain/agents/conversational/prompt.py
15268a760834452eb3ff990ca6548a80788271d3
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/MM-REACT
e67a843faadf4752f5e9d0e2dbf0c80068dbd288
b8f29af7f3c24cf3a4554bebfa2053064467fbdb
refs/heads/main
2023-08-31T03:01:42.246514
2023-05-12T20:43:11
2023-05-12T20:43:11
614,230,777
705
57
MIT
2023-08-30T00:04:13
2023-03-15T06:56:13
Python
UTF-8
Python
false
false
1,859
py
prompt.py
# flake8: noqa PREFIX = """Assistant is a large language model trained by OpenAI. Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, Assistant is able to generate human...
da16793958b33ebd05ec7428b86edb5da64fe2ca
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/matplotlib/py2/mpl_toolkits/axes_grid1/anchored_artists.py
5b492858e8da5f78117d773190635036f3af80ce
[ "Apache-2.0" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
13,214
py
anchored_artists.py
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib import docstring from matplotlib.offsetbox import (AnchoredOffsetbox, AuxTransformBox, DrawingArea, TextArea, VPacker) from matplotlib.patches import...
8adfb0ebc87b8cd572bdd7cc5adff80d6cac0b19
c5f0246cc8601aeedae2c63ebe7e82406ea3fc7f
/zarr/tests/test_dim_separator.py
987852dfd00481aa7ff892df4d1847d3c9b6aa53
[ "MIT" ]
permissive
zarr-developers/zarr-python
56d2f3633c8eeb415ee81076ec942160d7839ca2
4944e66cd847a6ab5ec3a70c2b7bc0973f707bd6
refs/heads/main
2023-09-01T15:02:16.892360
2023-08-28T07:09:20
2023-08-28T07:09:20
48,049,137
908
200
MIT
2023-09-14T04:36:44
2015-12-15T14:49:40
Python
UTF-8
Python
false
false
4,219
py
test_dim_separator.py
import pathlib import pytest from numpy.testing import assert_array_equal from functools import partial import zarr from zarr.core import Array from zarr.storage import DirectoryStore, NestedDirectoryStore, FSStore from zarr.tests.util import have_fsspec needs_fsspec = pytest.mark.skipif(not have_fsspec, reason="ne...
bada6e9a2aad3aaa38f27c33af7162653ca34595
e0cfa3707e632da3d7e0f1aa5882927a64d2872a
/test/e2e/pageobjects/preview_page.py
7173a982a17cdf540bd6d8b5e4a39b1d6ff04d12
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
supakeen/pinnwand
055b50ac5cab2f6408e2d97c54ae4df3a56a8051
644c7ade47c4682e9aeb7495700577ea89443f23
refs/heads/master
2023-08-25T03:25:27.535971
2023-08-24T07:19:46
2023-08-24T10:33:24
171,712,839
146
34
MIT
2023-09-06T18:38:19
2019-02-20T16:52:16
Python
UTF-8
Python
false
false
516
py
preview_page.py
import logging from test.e2e.pageobjects.base_page import BasePage from playwright.sync_api import Page, expect log = logging.getLogger(__name__) class PreviewPage(BasePage): def __init__(self, page: Page) -> None: super().__init__(page, page.locator("pre"), "Preview Page") self.page = page ...
c24686ed7463457769a6178a7ad44a4d20199953
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/optim/adamax.py
f8d1fb0178fdae893710f98d08164b5f5e0cc7f3
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
12,403
py
adamax.py
import torch from torch import Tensor from .optimizer import (Optimizer, _use_grad_for_differentiable, _get_value, _stack_if_compiling, _default_to_fused_or_foreach, _differentiable_doc, _maximize_doc, _foreach_doc) from typing import List, Optional __all__ = ["Adamax", "adamax"] class Adama...
d25a9a33a83b398ecca4ac52b6310ce0e0b699a8
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/Geometry/python/dependencies.py
7ed3e0a09b8f8b31b81db5a174b47af6cce32966
[ "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
154
py
dependencies.py
# this file exists to enforce dependencies for the generate2026Geometry unit test from Configuration.StandardSequences.GeometryConf import GeometryConf
9cc854ce13ea3cb1f08863d099752927b85336f8
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/gen/view_models/views/lobby/battle_pass/battle_pass_off_season_view_model.py
ebbc686e3d4d14bad78a046f5873a33f5146e6fb
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
2,900
py
battle_pass_off_season_view_model.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/battle_pass/battle_pass_off_season_view_model.py from frameworks.wulf import ViewModel class BattlePassOffSeasonViewModel(ViewModel): __slots__ = () LOSE_VOTE = 'loseVote' WIN_VOTE =...
eefebb91d4ec9452c228eb6a9f52229e12e35ef0
88efd76316e4184d76a5e0585d95fe734233942c
/tests/test_cluster/test_elbow.py
ce3ad4ddeeac67d497fc6c34cfc8d5260a14688c
[ "Apache-2.0" ]
permissive
DistrictDataLabs/yellowbrick
1ecd9f33e58f0d007569904401c204a6cdeb5661
f7a8e950bd31452ea2f5d402a1c5d519cd163fd5
refs/heads/develop
2023-08-03T12:25:26.511916
2023-07-05T18:14:28
2023-07-05T18:14:28
59,121,694
4,242
660
Apache-2.0
2023-07-15T17:50:31
2016-05-18T14:12:17
Python
UTF-8
Python
false
false
17,483
py
test_elbow.py
# tests.test_cluster.test_elbow # Tests for the KElbowVisualizer # # Author: Benjamin Bengfort # Created: Thu Mar 23 22:30:19 2017 -0400 # # Copyright (C) 2017 The scikit-yb developers # For license information, see LICENSE.txt # # ID: test_elbow.py [5a370c8] benjamin@bengfort.com $ """ Tests for the KElbowVisualiz...
76344baa211f5ff102812d124afba7d469481a53
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/baptist_health_arkansas.py
c7b9020488fdeb51a21d0b3756337a5b109766dd
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
2,021
py
baptist_health_arkansas.py
import scrapy from scrapy.http import JsonRequest from locations.items import Feature from locations.spiders.vapestore_gb import clean_address class BaptistHealthArkansasSpider(scrapy.Spider): name = "bha" item_attributes = { "brand": "Baptist Health Foundation", "brand_wikidata": "Q50379824"...
65b03fcdbe88062d707772ab917fe40755a56b7c
3f7028cc89a79582266a19acbde0d6b066a568de
/tools/config_validation/validate_fragment.py
c3b08b175b53b09eaab047fc965f30956398f80b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
envoyproxy/envoy
882d3c7f316bf755889fb628bee514bb2f6f66f0
72f129d273fa32f49581db3abbaf4b62e3e3703c
refs/heads/main
2023-08-31T09:20:01.278000
2023-08-31T08:58:36
2023-08-31T08:58:36
65,214,191
21,404
4,756
Apache-2.0
2023-09-14T21:56:37
2016-08-08T15:07:24
C++
UTF-8
Python
false
false
2,103
py
validate_fragment.py
# Validate a YAML fragment against an Envoy API proto3 type. # # Example usage: # # bazel run //tools/config_validation:validate_fragment -- \ # envoy.config.bootstrap.v3.Bootstrap $PWD/configs/envoyproxy_io_proxy.yaml import argparse import pathlib from envoy.base.utils import ProtobufValidator # These functions ...
b9472b819aa490264f052636373fed21d6bf68b1
480eef2cc1e9a28f07c7cc5bf0e14a7f145ad8f1
/wbTest.py
a77499fdf80ae49a96089e6ce9b459a6b8a1d680
[]
no_license
wmz317/wmz317.github.io
b9e3d6e4dae8293f7f7e4e056dbc53c9f3a09fd4
b34e257a8b3271c564a08aec34c2b1293970a274
refs/heads/master
2023-01-20T07:16:47.462467
2020-12-01T06:13:28
2020-12-01T06:13:28
280,998,705
183
0
null
null
null
null
UTF-8
Python
false
false
1,982
py
wbTest.py
import requests from urllib.parse import urlencode from pyquery import PyQuery as pq base_url = 'https://m.weibo.cn/api/container/getIndex?' headers = { 'Host': 'm.weibo.cn', 'Referer': 'https://m.weibo.cn/u/5687069307', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHT...
28a3eb48f7a2c7d86d205fa468420740d44748de
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/web_tests/external/wpt/fetch/stale-while-revalidate/resources/stale-css.py
b87668373acb0b0483cd152e2e70adc1adc1ec7e
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
883
py
stale-css.py
def main(request, response): token = request.GET.first(b"token", None) is_query = request.GET.first(b"query", None) != None with request.server.stash.lock: value = request.server.stash.take(token) count = 0 if value != None: count = int(value) if is_query: if count <...
0000c92314e4e579d7e405c81a7b632964a3429e
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/algorithms/nas/modnas/core/params/base.py
dd9964a4ac875746b74fbdcdf7568e91f917d6bd
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
2,441
py
base.py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
1d3da272fdd793c180e2e46796d68919df7e7094
2210ba7d7ac0d88452cf47f768b2f58d2754ef3f
/python/cuxfilter/dataframe.py
a77794296c3cdcb06c9a1326335068c9ffcca4a6
[ "Apache-2.0" ]
permissive
rapidsai/cuxfilter
81cd593c0addc503316f2b4e476cf732e61785ea
bc073d73fea6c0dcb25abc496e030d64611b5cd8
refs/heads/branch-23.10
2023-08-17T14:11:25.002839
2023-08-16T21:44:09
2023-08-16T21:44:09
161,231,707
253
65
Apache-2.0
2023-09-12T21:04:57
2018-12-10T20:19:49
Python
UTF-8
Python
false
false
6,622
py
dataframe.py
import cudf import dask_cudf import pyarrow as pa from typing import Type from cuxfilter.dashboard import DashBoard from cuxfilter.layouts import single_feature from cuxfilter.themes import default from cuxfilter.assets import notebook_assets def read_arrow(source): # print('reading arrow file as arrow table fro...
4d9abfa9a9599741644d33bd28a5ee51aa22041b
6dac93330696c2d2c630343c1b284f464909922a
/tests/sqs_test.py
f420a5e599f237873478ec23f311244f7bb1812a
[ "MIT" ]
permissive
Yelp/amira
2a4f2d9e42baf75c6da85abd2a70301f00f0c2af
0390d7969fdd64cda36996baf896d50d47648c80
refs/heads/master
2023-08-28T14:24:31.208162
2021-09-06T11:59:37
2021-09-06T11:59:37
63,352,231
163
49
MIT
2023-03-24T10:12:09
2016-07-14T16:25:40
Python
UTF-8
Python
false
false
3,871
py
sqs_test.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import pytest import simplejson from mock import MagicMock from mock import patch from amira.sqs import SqsHandler TEST_DATA_DIR_PATH = 'tests/data' @pytest.fixture def sqs_handler(): with patch('amira.sqs.b...
1a1e63ba3aaa7727fecf982f1472c656f40ac6a9
8fa191cd4a67431a04eff62d35122ee83cc7b0af
/bookwyrm/migrations/0110_auto_20211015_1734.py
ed7dd43c0be550b6152c9ebf6ed7c31dfa56ffe2
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
bookwyrm-social/bookwyrm
24678676a7a58dba96641194dfae3fffbf01574d
0f8da5b738047f3c34d60d93f59bdedd8f797224
refs/heads/main
2023-08-20T21:45:30.957277
2023-08-19T23:41:50
2023-08-19T23:41:50
236,415,735
1,398
216
NOASSERTION
2023-09-08T20:43:06
2020-01-27T03:51:54
Python
UTF-8
Python
false
false
563
py
0110_auto_20211015_1734.py
# Generated by Django 3.2.5 on 2021-10-15 17:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0109_status_edited_date"), ] operations = [ migrations.AddField( model_name="quotation", name="raw_quote...
a8cacb8b261bae9d1ac16c29f495d7f4ad4903f8
3982e6daf88e453c726f6b39a081fc37ce15a08a
/discovery-provider/src/queries/get_sol_user_bank.py
13af2d58935756e8fae9c93ef3d58bd1de2129ce
[ "Apache-2.0" ]
permissive
AudiusProject/audius-protocol
45808e11082608ad5b76a425d287cb6d94a6dab0
7cf1d8e378520460d24a7cc8c29e9927c0944cb3
refs/heads/main
2023-08-09T10:34:28.850436
2023-08-09T04:28:17
2023-08-09T04:28:17
201,821,771
531
108
NOASSERTION
2023-09-14T21:27:52
2019-08-11T22:31:43
TypeScript
UTF-8
Python
false
false
3,373
py
get_sol_user_bank.py
import logging from datetime import datetime from typing import Dict, Optional, TypedDict from redis import Redis from sqlalchemy import desc from src.models.users.user_bank import UserBankTx from src.tasks.index_user_bank import cache_latest_sol_user_bank_db_tx from src.utils import helpers from src.utils.cache_sola...
e25d983005690c6ee7536c0acf826a4f32c4217c
88c4d5b462998a9c0411a0243ab95ee05ffee60a
/tests/language/test_character_classes.py
c682b76a75c71be70cba0b80afbe824431d71836
[ "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
2,414
py
test_character_classes.py
from string import ascii_letters as letters from string import digits, punctuation from graphql.language.character_classes import ( is_digit, is_letter, is_name_continue, is_name_start, ) non_ascii = "¯_±¹²³½£ºµÄäÖöØø×〇᧐〸αΑωΩ" def describe_digit(): def accepts_digits(): assert all(is_di...
4297ca4fa0fcfd754d876803140b051cc6e42dca
ddcd3b340d26bf0e40c5ace7af9ef9bc93413bce
/grafana_backup/save_library_elements.py
882196de968515f3e09210f89c137a3a06c0ec4d
[ "MIT" ]
permissive
ysde/grafana-backup-tool
afa61b55971ee7ce37775c4151e4dd35fc8e1207
48807793163792219a5f6b508424b8bb702a52f1
refs/heads/master
2023-08-30T00:42:52.765662
2023-07-28T02:29:17
2023-07-28T02:29:17
58,634,508
718
271
MIT
2023-09-08T19:45:39
2016-05-12T11:10:34
Python
UTF-8
Python
false
false
3,034
py
save_library_elements.py
import os from grafana_backup.dashboardApi import search_library_elements from grafana_backup.commons import to_python2_and_3_compatible_string, print_horizontal_line, save_json def main(args, settings): backup_dir = settings.get('BACKUP_DIR') timestamp = settings.get('TIMESTAMP') grafana_url = settings.g...
fb1f1c629fb30de9533991881bb0d56df8fc739d
5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda
/pcapkit/const/tcp/flags.py
6e917aa242bce3f11327f0fc24990083a99d8ed0
[ "BSD-3-Clause" ]
permissive
JarryShaw/PyPCAPKit
8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a
a6fe49ec58f09e105bec5a00fb66d9b3f22730d9
refs/heads/main
2023-08-29T12:49:58.611378
2023-08-28T14:05:43
2023-08-28T14:05:43
109,791,841
204
29
BSD-3-Clause
2023-09-11T17:09:06
2017-11-07T05:41:56
Python
UTF-8
Python
false
false
1,740
py
flags.py
# -*- coding: utf-8 -*- # pylint: disable=line-too-long,consider-using-f-string """TCP Header Flags ====================== .. module:: pcapkit.const.tcp.flags This module contains the constant enumeration for **TCP Header Flags**, which is automatically generated from :class:`pcapkit.vendor.tcp.flags.Flags`. """ fr...
b2799ce6dc4fab5441445584c1591157f2bbadf3
605d63d23bc2e07eb054979a14557d469787877e
/atest/testdata/standard_libraries/builtin/UseBuiltIn.py
311e7933907e7e2d400078cf72079214b1efb515
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
robotframework/robotframework
407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf
cf896995f822f571c33dc5651d51365778b1cf40
refs/heads/master
2023-08-29T03:19:00.734810
2023-08-27T18:14:48
2023-08-28T18:14:11
21,273,155
8,635
2,623
Apache-2.0
2023-09-05T04:58:08
2014-06-27T11:10:38
Python
UTF-8
Python
false
false
559
py
UseBuiltIn.py
from robot.libraries.BuiltIn import BuiltIn def log_debug_message(): b = BuiltIn() b.set_log_level('DEBUG') b.log('Hello, debug world!', 'DEBUG') def get_test_name(): return BuiltIn().get_variables()['${TEST NAME}'] def set_secret_variable(): BuiltIn().set_test_variable('${SECRET}', '*****') ...
9f7517f8817479dc890d077982bd9dad6f9a2e9b
3f31ff163eb82d915715f705e231ba3cc3bffc31
/test/dataset_transforms_lighting_transform_test.py
0c718627aa1b6bc26e58bec6aad5806aae44ab85
[ "MIT", "Apache-2.0" ]
permissive
facebookresearch/ClassyVision
6b7ffb28c771579f56258f38aea0b012cbf95129
08a82e88fcfa143933832994ace2424c03dd43b8
refs/heads/main
2023-09-04T01:14:08.507494
2023-03-23T14:35:34
2023-03-23T14:35:34
208,358,969
1,673
321
MIT
2023-05-08T19:21:37
2019-09-13T22:54:44
Python
UTF-8
Python
false
false
1,192
py
dataset_transforms_lighting_transform_test.py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from classy_vision.dataset.core.random_image_datasets import ( RandomImageBinaryClassDataset, ) ...
1bad7e1e6391eb568c5dccdadf11a1efa4fb3532
dac12c9178b13d60f401c4febff5569af8aa2719
/cvat/apps/analytics_report/report/get.py
82622e5921a1846ad4218351eceba4ac2d9b220b
[ "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later" ]
permissive
opencv/cvat
39dc66ca20f972ba40b79c44d7ce43590dc0b0b5
899c9fd75146744def061efd7ab1b1c6c9f6942f
refs/heads/develop
2023-08-19T04:27:56.974498
2023-08-18T09:58:25
2023-08-18T09:58:25
139,156,354
6,558
1,887
MIT
2023-09-14T12:44:39
2018-06-29T14:02:45
TypeScript
UTF-8
Python
false
false
6,117
py
get.py
# Copyright (C) 2023 CVAT.ai Corporation # # SPDX-License-Identifier: MIT from datetime import datetime, timedelta, timezone from dateutil import parser from rest_framework import serializers, status from rest_framework.exceptions import NotFound from rest_framework.response import Response from cvat.apps.analytics_...
318ce53e5048fbe49072281aa40f3ccf073df94d
0dddc0508138396c740901be4a0f9eebefb8fded
/ax/service/tests/test_report_utils.py
d8c95ce5daad4956b8c24e3e6bb8c9d2fc6b739e
[ "MIT" ]
permissive
facebook/Ax
473beb143016f95f4ec381ed1bd95b32c1ca31f8
6443cee30cbf8cec290200a7420a3db08e4b5445
refs/heads/main
2023-09-01T09:29:13.684709
2023-08-31T21:49:30
2023-08-31T21:49:30
169,880,381
2,207
315
MIT
2023-09-14T21:26:51
2019-02-09T15:23:44
Jupyter Notebook
UTF-8
Python
false
false
20,763
py
test_report_utils.py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools from collections import namedtuple from logging import INFO, WARN from typing import Dict, List from...
2bdcb1d802f64bf07ab8132ffeb06c3d1bf60908
2898b860d0440fb10a83d8f28815ac75b0cec9a5
/attic/training/hydration_fe.py
580f38eefe4b65081d4c8b69477602012164eb55
[ "Apache-2.0" ]
permissive
proteneer/timemachine
e3530e52aa995a9006d0eca8632ac6b937571980
b853c2d287da0d1c1babb963eaec8fda41539b90
refs/heads/master
2023-08-18T09:00:55.463397
2023-08-17T22:07:22
2023-08-17T22:07:22
163,188,061
132
14
NOASSERTION
2023-09-13T21:39:20
2018-12-26T14:25:45
Python
UTF-8
Python
false
false
8,240
py
hydration_fe.py
import matplotlib matplotlib.use("Agg") from matplotlib import pyplot as plt from jax.config import config as jax_config jax_config.update("jax_enable_x64", True) import argparse import time import datetime import numpy as np import os import sys from timemachine.ff import handlers from timemachine.ff.handlers.ser...
a13b63a9c01533bf7d75c0d77ada364a8670aa5c
331640994b1b6f66c1639278571ddbdc6c8c0751
/test/python/targets/asgi.py
749ec5b108ede5fb1e1a7761dbd2023b4d6bf0e5
[ "Apache-2.0" ]
permissive
nginx/unit
eabcd067eaa60f4bdcf0cfaffe7d9932add2c66a
9b22b6957bc87b3df002d0bc691fdae6a20abdac
refs/heads/master
2023-09-04T02:02:13.581700
2023-08-30T16:07:24
2023-08-30T16:07:24
102,627,638
4,649
452
Apache-2.0
2023-09-12T01:28:22
2017-09-06T15:45:30
C
UTF-8
Python
false
false
1,573
py
asgi.py
async def application_201(scope, receive, send): assert scope['type'] == 'http' await send( { 'type': 'http.response.start', 'status': 201, 'headers': [(b'content-length', b'0')], } ) async def application_200(scope, receive, send): assert scope['ty...
a770b81dbd3dae503449996241ba9fd658b5fc07
8de1480d6511ac81c43ebb1fa50875adb1505c3b
/awx/main/tasks/jobs.py
6e57dfd8e4031624ee2d4f0138d6f5c0cea31c26
[ "Apache-2.0" ]
permissive
ansible/awx
bbbb0f3f43835a37fbb3eb3dcd7cfe98116fbbba
5e105c2cbd3fe828160540b3043cf6f605ed26be
refs/heads/devel
2023-08-31T11:45:01.446444
2023-08-31T04:58:57
2023-08-31T04:58:57
91,594,105
13,353
4,186
NOASSERTION
2023-09-14T20:20:07
2017-05-17T15:50:14
Python
UTF-8
Python
false
false
88,555
py
jobs.py
# Python from collections import OrderedDict import errno import functools import fcntl import json import logging import os from pathlib import Path import shutil import stat import yaml import tempfile import traceback import time import urllib.parse as urlparse # Django from django.conf import settings # Runner i...
cb5bda65dc44ef8df694fe82f55afa214f1240c7
29eac50cc208d8aaebde699e8c851ed84b2de591
/lhotse/bin/modes/recipes/atcosim.py
fdd1ac1274ee218c3690f4cee0dd454636d27b50
[ "Apache-2.0" ]
permissive
lhotse-speech/lhotse
fcbbfbfd2e2bf95f9587268d605faa1d68df7790
088f1802d5fa528f64ee32d1f79197e42fb8aae5
refs/heads/master
2023-09-01T12:58:57.383768
2023-08-29T14:22:45
2023-08-29T14:22:45
258,529,948
667
159
Apache-2.0
2023-09-14T18:48:31
2020-04-24T14:08:10
Python
UTF-8
Python
false
false
1,312
py
atcosim.py
import click from lhotse.bin.modes import download, prepare from lhotse.recipes.atcosim import download_atcosim, prepare_atcosim from lhotse.utils import Pathlike __all__ = ["atcosim"] @download.command(context_settings=dict(show_default=True)) @click.argument("target_dir", type=click.Path()) def atcosim(target_dir...
b09fcbcd5d6ede1b9b81528a256d4c815d562e3a
b969ef7c2e6dbc7ec223ee8a87054a9c2f736658
/scripts/ParseLLGLHeader.py
1ad210285c43312f4378af031e47075467b733f2
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
LukasBanana/LLGL
186241fadbd0a3a77f3e008ca385950cce40273c
3d3b4d708704a6b430f9240003a09faa45f8e8b8
refs/heads/master
2023-08-23T10:29:33.190198
2023-08-23T03:14:48
2023-08-23T03:35:03
62,965,106
1,848
171
BSD-3-Clause
2023-08-28T22:36:19
2016-07-09T19:10:46
C++
UTF-8
Python
false
false
46,313
py
ParseLLGLHeader.py
# # ParseLLGLHeader.py # # Copyright (c) 2015 Lukas Hermanns. All rights reserved. # Licensed under the terms of the BSD 3-Clause license (see LICENSE.txt). # import os import sys import re from enum import Enum def printHelp(): print("help:") print(" parses LLGL headers and stores the meta data") print(...
419d4683c2eb672216edf2515a6a154f8be8a7ac
753cd066a9bd26b6c37c8d53a86c7a9c659ec18c
/nlp/gpt2/pytorch/tests/cpu_ipu_test.py
fa2a0f36f15c465335b4b31c23890bafe49ebb32
[ "Apache-2.0", "MIT" ]
permissive
graphcore/examples
ac872015808ed2a913d4d7bf0d63202ce15ebbae
e2f834dd60e7939672c1795b4ac62e89ad0bca49
refs/heads/master
2023-08-05T02:08:12.341836
2023-07-27T11:13:10
2023-07-27T11:13:10
143,977,106
311
80
MIT
2023-09-11T16:42:56
2018-08-08T07:29:17
Python
UTF-8
Python
false
false
4,500
py
cpu_ipu_test.py
# Copyright (c) 2021 Graphcore Ltd. 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 ...
f0e96e9c0595800dafa1d1faa0de0588973b4125
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/src/transformers/models/deprecated/van/modeling_van.py
4ef18f54158f91a0af1717d088208121b500ac91
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
21,606
py
modeling_van.py
# coding=utf-8 # Copyright 2022 BNRist (Tsinghua University), TKLNDST (Nankai University) and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
de183954421ea126c5702d50e0fefa9e54e6bdc7
5105403f2b75990654519438d8ceabcf80962ebf
/release/__main__.py
3546093f59fbc956d4a730773670d52df6775513
[ "BSD-3-Clause" ]
permissive
bokeh/bokeh
ed1d81eb07d27d27c6710c9fec9114886047f528
310cb2cbeabc4c4b8180cbda566df16039737cdc
refs/heads/branch-3.3
2023-08-31T23:53:06.537061
2023-08-30T03:43:05
2023-08-30T03:43:05
3,834,332
17,174
5,251
BSD-3-Clause
2023-09-14T11:37:23
2012-03-26T15:40:01
Python
UTF-8
Python
false
false
1,901
py
__main__.py
# ----------------------------------------------------------------------------- # Copyright (c) 2012 - 2023, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. # -----------------------------------------------------------------...
2f57c530289bc46d8413e7e267875b4ece65c5c6
6564f42640e11689c2ddb6b92325afe6fddc6a6f
/cumulusci/tasks/preflight/recordtypes.py
e56e3d9ae97e15367cdd6cb2a506b13f40769110
[ "LicenseRef-scancode-free-unknown" ]
permissive
SFDO-Tooling/CumulusCI
32d4509fa8a36905cfc84fd6283403fd7f4b78c4
9ccf3c9566f78c6e9102ac214db30470cef660c1
refs/heads/main
2023-08-18T04:53:55.733027
2023-08-11T20:52:08
2023-08-11T20:52:08
15,592,459
226
134
BSD-3-Clause
2023-09-14T05:09:26
2014-01-02T20:01:31
Python
UTF-8
Python
false
false
542
py
recordtypes.py
from collections import defaultdict from cumulusci.tasks.salesforce import BaseSalesforceApiTask class CheckSObjectRecordTypes(BaseSalesforceApiTask): def _run_task(self): rts = defaultdict(list) records = self.tooling.query_all( "Select SobjectType, FullName FROM RecordType" ...
b07c4a80f16f49af50bb4711fc10822145f55807
baa2c6f22ff563d417e34692bf3345077eb8fa5f
/docs/sphinxext/magics.py
d96b41c6e1736f86ee6467ddc2c257982437d1ac
[ "BSD-3-Clause" ]
permissive
ipython/ipython
c42ea223b6e391bb7dd39888cb959d4d5d6b21a1
e5103f971233fd66b558585cce7a4f52a716cd56
refs/heads/main
2023-08-30T18:27:18.436521
2023-08-29T12:16:00
2023-08-29T12:16:00
658,518
13,673
4,729
BSD-3-Clause
2023-09-12T20:22:09
2010-05-10T04:46:06
Python
UTF-8
Python
false
false
1,496
py
magics.py
import re from sphinx import addnodes from sphinx.domains.std import StandardDomain from sphinx.roles import XRefRole name_re = re.compile(r"[\w_]+") def parse_magic(env, sig, signode): m = name_re.match(sig) if not m: raise Exception("Invalid magic command: %s" % sig) name = "%" + sig signode...
07b5c2d4dbacacdb588b05c0ae29d121906e5be0
d1f15554df2d5c0f74ddbcba6e870359841f682b
/wagtail/migrations/0050_workflow_rejected_to_needs_changes.py
e9ed8f54e5c836c86b79ec3201102d6edb00df93
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
wagtail/wagtail
bd405f89b86e0c625fef0685fd6bfba41cf5cbfc
06a7bc6124bf62675c09fbe0a4ed9bbac183e025
refs/heads/main
2023-09-04T06:22:51.601208
2023-09-01T15:22:00
2023-09-01T15:22:00
16,479,108
12,974
3,580
BSD-3-Clause
2023-09-14T10:45:04
2014-02-03T12:41:59
Python
UTF-8
Python
false
false
1,207
py
0050_workflow_rejected_to_needs_changes.py
# Generated by Django 3.0.5 on 2020-05-20 10:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("wagtailcore", "0049_taskstate_finished_by"), ] operations = [ migrations.RemoveConstraint( model_name="workflowstate", ...
7b8324e1e736592959894a25605a68c139373a0f
26e3d85a3b61219e13f794289ff2b70baa248f14
/tests/test_widget_selectdate.py
44e328632c81b71fd2d90b384c35ce2d3e88a5cb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
viewflow/django-material
ac8dd10daa8352440845c767b07cafc7f7d09216
31b1ce5f6fecc10ba4c9babe4219fb7be97dbf93
refs/heads/master
2023-08-15T23:32:58.330321
2023-04-12T06:12:07
2023-04-12T06:12:40
29,337,344
2,818
570
BSD-3-Clause
2023-03-04T02:28:50
2015-01-16T07:17:33
CSS
UTF-8
Python
false
false
1,766
py
test_widget_selectdate.py
import json from django import forms from django.test.utils import override_settings from django_webtest import WebTest from . import build_test_urls try: from django.forms.widgets import SelectDateWidget except ImportError: # django 1.8 from django.forms.extras import SelectDateWidget class SelectForm(...
31b970c064d6b1472956b054962f1db4f2749200
f9357dc6ebe6ae1af0b03a9afc5f765706b8d31f
/sublime去除注释.py
8d2867eeb3b56ab84aabaaaadca33675f54ab85f
[]
no_license
cilame/any-whim
660acd966048655aa36886047fbc232539807881
1520accbe1506a133989a6c2be17572e7fb4693e
refs/heads/master
2023-08-17T05:10:56.348200
2023-08-13T16:45:11
2023-08-13T16:45:11
110,548,292
125
64
null
null
null
null
UTF-8
Python
false
false
571
py
sublime去除注释.py
# 将下面的 Python 代码保存到 Packages/User 目录下 # (可以通过点击 Preferences -> Browse Packages 进入 Packages 目录,然后再进入 User 目录) # 并命名为 remove_comments.py。 # 使用时用 Ctrl+` 打开控制台,然后输入下面一行命令即可 # view.run_command('remove_comments') import sublime_plugin class RemoveCommentsCommand(sublime_plugin.TextCommand): def run(self, edit): ...
8f2feace28e2d0403b738832787a5341d5a4fbff
15f0514701a78e12750f68ba09d68095172493ee
/Python3/223.py
71bc312c642851238195082f2acfb8bc37146d83
[ "MIT" ]
permissive
strengthen/LeetCode
5e38c8c9d3e8f27109b9124ae17ef8a4139a1518
3ffa6dcbeb787a6128641402081a4ff70093bb61
refs/heads/master
2022-12-04T21:35:17.872212
2022-11-30T06:23:24
2022-11-30T06:23:24
155,958,163
936
365
MIT
2021-11-15T04:02:45
2018-11-03T06:47:38
null
UTF-8
Python
false
false
1,564
py
223.py
__________________________________________________________________________________________________ sample 40 ms submission class Solution: def computeArea(self, A: int, B: int, C: int, D: int, E: int, F: int, G: int, H: int) -> int: area = (C-A)*(D-B) + (G-E)*(H-F) Ai = Bi = Ci = Di = float...
a9c7f67fad4c4d48c3a005b2889e62e8d6d48db7
39164ede111f154b31cbb61663ea837f16f8aa4f
/odps/df/expr/tests/test_core.py
99156f55846b075c6e339e700f0bf746a082851f
[ "Apache-2.0" ]
permissive
aliyun/aliyun-odps-python-sdk
217631252e6d52e75354a2a19faab5b9ff40e272
c5b897f03759b1a9851505eea3858a96d628f105
refs/heads/master
2023-08-16T22:42:12.441717
2023-07-19T06:28:25
2023-07-19T06:28:25
45,234,875
437
116
Apache-2.0
2023-08-03T06:45:34
2015-10-30T07:07:59
Python
UTF-8
Python
false
false
2,751
py
test_core.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2022 Alibaba Group Holding 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-...
9c1dfad5067f0da770c2592dff62ac60bef66444
e8b38b8dfa348ff006eb197a7906ca8e491a23dc
/tests/epyccel/test_epyccel_modules.py
963219e6d49ab023626ec0f047499c4e075c78b5
[ "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
4,652
py
test_epyccel_modules.py
# pylint: disable=missing-function-docstring, missing-module-docstring import numpy as np from pyccel.epyccel import epyccel RTOL = 2e-14 ATOL = 1e-15 def test_module_1(language): import modules.Module_1 as mod modnew = epyccel(mod, language=language) from numpy import zeros # ... x_expected = ...
1c1c5fa5376db3c640f15bcdf01b2c6a8ce8741f
95740c67e49e1528919eb8f96ae8086e7386e558
/project/reports/election_prediction/pattern/web/locale/__init__.py
9705b9891273f1a1f6177de8de421d02f06909b1
[ "MIT" ]
permissive
mdeff/ntds_2016
5449fd5b7a1e4aa8721d0ae33a1f8a097f73b265
2d597838cb2688471cc6122a5570441585393148
refs/heads/master
2021-01-17T17:47:01.434340
2019-12-16T17:53:04
2019-12-16T17:53:04
69,178,943
109
51
null
null
null
null
UTF-8
Python
false
false
20,710
py
__init__.py
#### PATTERN | WEB | LOCALE ######################################################################## # -*- coding: utf-8 -*- # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern #### LANGUAG...
68f5f98aed53953721cd0479ed12a694d075e457
25a08bdeb17a0dc032ddf6c11b71693ca4c1a6cd
/python/tests/test_byte_intervals_at.py
ddf6fe981f46cd1bad320a75159b739bc9dc148c
[ "MIT" ]
permissive
GrammaTech/gtirb
20b05dc6170d93af8cc29fd65f7094bd59a9fb4d
f4301401a0d98a783e3b6f40e390fe9b1b1d386d
refs/heads/master
2023-08-18T12:17:45.797733
2023-08-14T23:28:22
2023-08-15T12:02:48
136,977,182
277
40
MIT
2019-01-08T01:43:01
2018-06-11T20:25:41
C++
UTF-8
Python
false
false
1,652
py
test_byte_intervals_at.py
import unittest import gtirb from helpers import SearchScope, parameterize_one class ByteIntervalsAtTests(unittest.TestCase): @parameterize_one( "scope", (SearchScope.ir, SearchScope.module, SearchScope.section) ) def test_byte_intervals_at(self, scope): ir = gtirb.IR() m = gtirb....
7bfabcb3eb54b485eefeb1d75d6453163fabd31e
9b59c5ce1b57b8bd066fcee4b55c821893bc50fb
/balloon_learning_environment/agents/networks.py
9fc9db4d81c58206988568c5c4fe02b91e7e94e9
[ "Apache-2.0" ]
permissive
google/balloon-learning-environment
b485c62bab04ce8308ed8de3358d4303e601cf18
72082feccf404e5bf946e513e4f6c0ae8fb279ad
refs/heads/master
2023-08-31T04:41:02.819901
2022-12-19T17:14:38
2022-12-19T17:18:57
418,619,484
108
14
Apache-2.0
2023-08-16T23:21:29
2021-10-18T18:20:09
Python
UTF-8
Python
false
false
3,593
py
networks.py
# coding=utf-8 # Copyright 2022 The Balloon Learning Environment Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
ab060bc6c79e5cdbb1438f1eea14075eec0ef9d3
7ae9aa9e9d359e2182bbab6ae7e083fc2c7fa815
/rapidsms/contrib/messagelog/app.py
b20e79319daf877d65505d4de8f23649557623d7
[ "BSD-3-Clause" ]
permissive
rapidsms/rapidsms
8ce6d3f46002146e76cf68fdca3288865578b17a
aaa2ddab68e19d979525c3823c3ec0e646e92c83
refs/heads/develop
2023-08-15T16:44:27.206841
2022-03-16T15:09:36
2022-03-16T15:09:36
132,857
409
196
BSD-3-Clause
2023-09-11T20:41:56
2009-02-19T22:21:40
Python
UTF-8
Python
false
false
861
py
app.py
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from django.utils import timezone from rapidsms.apps.base import AppBase from .models import Message class MessageLogApp(AppBase): def _log(self, direction, msg): if not msg.connections: raise ValueError text = msg.raw_text if direct...
838a86beda590c0b23da872c1961d4f7b88e919e
39cbaf37db9eb60abca67cfc513eca81397f1a14
/contrib/0.挖宝行动/awebone-护肤品识别/llib/layer_utils/snippets.py
a4335936245e515b102aef8575014b08670990d6
[ "Apache-2.0" ]
permissive
huaweicloud/ModelArts-Lab
6d8255a0ac608d79a44cef515f0cbd98b855b15f
ce1a275fa5fe08c0873a9318d8e66e3eef08d4ba
refs/heads/master
2023-08-23T03:18:55.729714
2023-04-28T06:55:07
2023-04-28T06:55:07
185,701,977
1,117
1,102
Apache-2.0
2023-07-20T15:05:59
2019-05-09T01:08:50
Jupyter Notebook
UTF-8
Python
false
false
1,348
py
snippets.py
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
17b728cc5ea7edf19bc22f4daa8a7cbb83f9d77d
fd3047a84c7a144463d106c663537d055482f12e
/custom_components/hacs/utils/queue_manager.py
8bc77145d22ceb07b28003c6337c32642c993c0c
[ "MIT" ]
permissive
hacs/integration
827370c861aff9de08e536e71866313228eeb66e
6a27b0a4b74ed4161185af438bcff5aec926f4d9
refs/heads/main
2023-09-04T04:33:35.834376
2023-08-27T08:53:58
2023-08-27T08:53:58
172,733,314
3,601
902
MIT
2023-09-11T07:00:42
2019-02-26T15:01:10
Python
UTF-8
Python
false
false
2,459
py
queue_manager.py
"""The QueueManager class.""" from __future__ import annotations import asyncio import time from typing import Coroutine from homeassistant.core import HomeAssistant from ..exceptions import HacsExecutionStillInProgress from .logger import LOGGER _LOGGER = LOGGER class QueueManager: """The QueueManager class....
83f147e0cea3498bd44f34f774a47d2879febaeb
f27e3fdc97290b1db6d3fa7039ad59e4f8b5a760
/tensorflow-1/comet-tf1-distributed-mirrored-strategy.py
2416d030b75a9ece44fea05c33f54dd5201013f8
[]
no_license
comet-ml/comet-examples
9c7bcea8b97986fb7987cbe0f4533f619e2a0939
9da5d4f296e633bb7e63b47dc2d3f7a0780c0a4e
refs/heads/master
2023-08-19T03:32:51.864273
2023-08-09T09:30:34
2023-08-09T09:30:34
158,587,515
134
55
null
2023-09-13T16:58:41
2018-11-21T18:00:34
Jupyter Notebook
UTF-8
Python
false
false
4,479
py
comet-tf1-distributed-mirrored-strategy.py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # Copyright (C) 2021 Comet ML INC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
3b15358fa977202265527280acf2d90bad96b249
e67944ffe8f8757d64b0fb92172718c139e2c41b
/3G_total_count.py
65bcc8b8e899ac6a40e6732700be7f3b6b75a5dc
[ "MIT" ]
permissive
andre-fuchs/kerning-pairs
64f4cef64f3a2a6ce3bf56f88db8bfac380e1264
bfd95de7fb1ccd00d5bba9913deead83fddfb3f5
refs/heads/master
2023-08-16T16:57:39.179108
2023-08-14T12:03:56
2023-08-14T12:03:56
222,538,080
127
5
MIT
2023-08-14T12:03:58
2019-11-18T20:26:46
Python
UTF-8
Python
false
false
3,315
py
3G_total_count.py
""" This script merge all language specific letter pairs to a global total. Using the highscores instead of the total sum or an average no relevant pair of any language gets lost or ranked down. """ import json import operator from collections import defaultdict from pprint import pprint LANGUAGES = [ "cs", ...
f6b4f36edc53b26864a982dbb13e74e7bfd40bb2
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/common/bridgecrew/wrapper.py
17dde199b96a5dd2ecba404160b7dcd7216ad2af
[ "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
7,646
py
wrapper.py
from __future__ import annotations import logging import os import json import itertools from concurrent import futures from io import StringIO from typing import Any, TYPE_CHECKING from collections import defaultdict import dpath from igraph import Graph try: from networkx import DiGraph, node_link_data except ...
f08c634d51bed7db8847810c60f908747a66c570
3febe9bd6d3f0240754239bca7c02720a53dbe22
/tests/BlazingSQLTest/EndToEndTests/oldScripts/fileSystemHdfsTest.py
3d7f75855f45ecc3c5fbd98bac07d813eba112f1
[ "Apache-2.0" ]
permissive
BlazingDB/blazingsql
9c7b1bdad1538a4478332de57375830090069e85
a35643d4c983334757eee96d5b9005b8b9fbd21b
refs/heads/branch-21.08
2023-08-17T16:10:36.051621
2021-09-30T21:51:09
2021-09-30T21:51:09
150,149,024
854
114
Apache-2.0
2022-09-16T23:58:36
2018-09-24T18:25:45
C++
UTF-8
Python
false
false
12,469
py
fileSystemHdfsTest.py
import os from blazingsql import DataType from Configuration import Settings as Settings from DataBase import createSchema as cs from pynvml import nvmlInit from Runner import runTest from Utils import Execution, gpuMemory, init_context, skip_test, startHadoop queryType = "Hdfs FileSystem" def main(dask_client, dril...
0f5e939ff6715bcbee3b4ef4dd34438bb8f7492e
4d3a077a439df835ce475efe7824ef6d3046b81c
/script/vul/kindeditor/upload_json.py
30a178c2aec06064d74f96d46588b1e30b906062
[]
no_license
orleven/Tentacle
f00bc62278e462a3be4bfc4378f34c95d5419617
0b364caa7272030e03b876caf71bc9026e3ba57a
refs/heads/master
2023-09-01T11:07:33.020640
2023-08-22T03:37:35
2023-08-22T03:37:35
85,373,049
383
129
null
2023-08-21T09:26:03
2017-03-18T03:27:59
Python
UTF-8
Python
false
false
1,816
py
upload_json.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @author: orleven import json from aiohttp import FormData from lib.util.aiohttputil import ClientSession from lib.core.enums import ServicePortMap from script import BaseScript class Script(BaseScript): def __init__(self): BaseScript.__init__(self) ...
a49882ae0f469751c6b50f9caef43dc0c279c632
636849fc7edd9dcb095cf3410a121ab37de69f02
/SoftLayer/CLI/virt/capacity/create.py
76b6a1d23556339ee2b6141ff3118d6beefe2a16
[ "MIT" ]
permissive
softlayer/softlayer-python
bcb09306c3367fdbd2f1407f770c4959729b074c
5798373055d9f34dfd531d81638a64d0a7901a13
refs/heads/master
2023-08-23T19:32:36.990701
2023-08-21T03:29:44
2023-08-21T03:29:44
622,291
126
182
MIT
2023-09-14T15:04:48
2010-04-21T20:36:31
Python
UTF-8
Python
false
false
2,258
py
create.py
"""Create a Reserved Capacity instance.""" import click from SoftLayer.CLI.command import SLCommand as SLCommand from SoftLayer.CLI import environment from SoftLayer.CLI import formatting from SoftLayer.managers.vs_capacity import CapacityManager as CapacityManager @click.command(cls=SLCommand) @click.option('--nam...
b0453fd48629469bb1e4fed67d8ff279266ee8bf
9edbe7b1ec03b557aa8f5b8fc6b7623bdb9151b3
/sample_factory/algo/utils/action_distributions.py
083b8504e7d4c512707b033ed52654ccfa74e20f
[ "MIT" ]
permissive
alex-petrenko/sample-factory
77c0370ef73902c5530acec7cb49cc1eff224173
7e1e69550f4de4cdc003d8db5bb39e186803aee9
refs/heads/master
2023-07-24T17:27:10.924055
2023-06-30T12:09:31
2023-06-30T12:09:31
192,824,415
644
99
MIT
2023-07-17T08:50:05
2019-06-20T00:59:01
Python
UTF-8
Python
false
false
10,777
py
action_distributions.py
import math import gymnasium as gym import numpy as np import torch from torch import Tensor from torch.distributions import Independent, Normal from torch.nn import functional from sample_factory.utils.typing import ActionSpace from sample_factory.utils.utils import log def calc_num_actions(action_space): if i...
1cc12d0e87500aa3f015d332ff52f94abb8c6b5e
2c4c3f777d94157d5a5cf8664907de1a605a1110
/algorithms/GraphSage/metrics.py
c69630695a33d269be435e654279cf4a27904f14
[ "Apache-2.0" ]
permissive
safe-graph/DGFraud
a86715662d86291c22dae389aa36d72b74042ab6
22b72d75f81dd057762f0c7225a4558a25095b8f
refs/heads/master
2023-08-23T01:01:04.195966
2022-04-20T21:39:08
2022-04-20T21:39:08
223,415,751
632
162
Apache-2.0
2020-07-31T04:10:54
2019-11-22T14:02:36
Python
UTF-8
Python
false
false
1,481
py
metrics.py
import tensorflow as tf # DISCLAIMER: # Parts of this code file were originally forked from # https://github.com/tkipf/gcn # which itself was very inspired by the keras package def masked_logit_cross_entropy(preds, labels, mask): """Logit cross-entropy loss with masking.""" loss = tf.nn.sigmoid_cross_entropy_w...
5d7ca3923de496176535ed8b5da7725d36922802
6bf995003dfe009129f7d93b63ec2478927324e0
/tools/stf/stf_lexer.py
5019f379612454b59da22298d5578f1fd7d9effc
[ "Apache-2.0" ]
permissive
p4lang/p4c
e9fd8acfa25a6e1e42adffd136cbf6cd5e94018a
4a393c951e1f4fdbdc3894a1f8d2929e700adeb7
refs/heads/main
2023-09-04T16:30:20.238093
2023-09-04T06:55:44
2023-09-04T06:55:44
55,433,859
621
555
Apache-2.0
2023-09-14T14:22:46
2016-04-04T18:12:32
C++
UTF-8
Python
false
false
7,008
py
stf_lexer.py
# Copyright 2013-present Barefoot Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
30770af33cdc311099a63a4c5eca5962774764c5
c7c73566784a7896100e993606e1bd8fdd0ea94e
/tests/task/test_task_arg.py
26b35520538b6db99ca9bf62007ca224f9d8a014
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
panda3d/panda3d
c3f94df2206ff7cfe4a3b370777a56fb11a07926
160ba090a5e80068f61f34fc3d6f49dbb6ad52c5
refs/heads/master
2023-08-21T13:23:16.904756
2021-04-11T22:55:33
2023-08-06T06:09:32
13,212,165
4,417
1,072
NOASSERTION
2023-09-09T19:26:14
2013-09-30T10:20:25
C++
UTF-8
Python
false
false
733
py
test_task_arg.py
from direct.showbase.ShowBase import ShowBase from direct.task import Task from panda3d.core import Vec2 def test_task_arg(base): def test(ship, flood, task): ship.y += flood return task.done ship = Vec2(2.2, 2) flood = 1 task = base.addTask(test, 'test_task', extraArgs=[ship, flood],...
da83838515607a83f5e72d06e90aa03b26f3e847
b08a6adc56016a706d84752bcfb6d5bdf014f9fd
/trainer/craft/model/vgg16_bn.py
fde415fc2c087d902a9a9bafc58449aadf223f45
[ "Apache-2.0" ]
permissive
JaidedAI/EasyOCR
c83903d2f0ac2adfda89b35274e71a410f7d12e8
f947eaa36a55adb306feac58966378e01cc67f85
refs/heads/master
2023-08-08T08:34:28.434530
2023-07-04T12:44:09
2023-07-04T12:44:09
247,266,215
20,057
2,937
Apache-2.0
2023-09-12T22:16:00
2020-03-14T11:46:39
Python
UTF-8
Python
false
false
2,962
py
vgg16_bn.py
import torch import torch.nn as nn import torch.nn.init as init import torchvision from torchvision import models from packaging import version def init_weights(modules): for m in modules: if isinstance(m, nn.Conv2d): init.xavier_uniform_(m.weight.data) if m.bias is not None: ...