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
8a959044feee4fbbc321fb06cedb019e5a3702b4
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster-webserver/dagster_webserver_tests/webserver/conftest.py
745ba0c7db013230eeaa7976d24ff853a2067d7b
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
698
py
conftest.py
import pytest from dagster import DagsterInstance, __version__ from dagster._cli.workspace.cli_target import get_workspace_process_context_from_kwargs from dagster_webserver.webserver import DagsterWebserver from starlette.testclient import TestClient @pytest.fixture(scope="session") def instance(): return Dagste...
197cd815ff181912ce83f6b8a2e11ee5757b2349
87d9e6c0606ec9b18d2016fe4e21601c7b37b216
/test/django/test_mixins.py
d9bd775fd4998dc1d3b0df4997969ce249b65de5
[ "Python-2.0", "MIT" ]
permissive
Stranger6667/postmarker
d693f1b4d03f8770c5415048ad896601ba618a04
c5717014b6c837502353a8a5361832cb3bc49d7b
refs/heads/master
2023-06-22T01:57:01.797338
2022-01-15T14:09:43
2022-01-15T14:09:43
69,878,276
116
28
MIT
2023-06-20T20:17:31
2016-10-03T14:24:07
Python
UTF-8
Python
false
false
2,408
py
test_mixins.py
import pytest from django.core.mail import EmailMultiAlternatives from postmarker.django import PostmarkEmailMixin pytestmark = pytest.mark.usefixtures("outbox") class TaggedEmail(PostmarkEmailMixin, EmailMultiAlternatives): pass def test_tags(postmark_request): TaggedEmail( "Subject", "Bo...
d402f55fa9b8b1b4d59292220a2a5aa147c52aef
057a475216e9beed41983481aafcaf109bbf58da
/tests/integration/test_move_partition_to_disk_on_cluster/test.py
c639e080cdf186b96d55c05fbb77ff5481e7718c
[ "Apache-2.0" ]
permissive
ClickHouse/ClickHouse
fece5204263a5b4d693854b6039699265f1bb27f
6649328db809d51a694c358571539bc5820464be
refs/heads/master
2023-08-31T18:48:36.615225
2023-08-31T17:51:24
2023-08-31T17:51:24
60,246,359
23,878
5,449
Apache-2.0
2023-09-14T20:10:52
2016-06-02T08:28:18
C++
UTF-8
Python
false
false
2,666
py
test.py
import pytest from helpers.client import QueryRuntimeException from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) node1 = cluster.add_instance( "node1", main_configs=[ "configs/config.d/storage_configuration.xml", "configs/config.d/cluster.xml", ], with...
559f10396eebe91f908cc1326cbb035ecdfc2759
2ad93a1cf25a580fe980482d2d17a657de3b2523
/django-stubs/db/transaction.pyi
868b8b508d442350a6b286810324c738c57f036c
[ "MIT" ]
permissive
typeddjango/django-stubs
f35dfcb001e54694a0a1e8c0afcc6e6a3d130c32
0117348c3c7713f25f96b46e53ebdeed7bdba544
refs/heads/master
2023-08-25T19:42:52.707151
2023-08-23T15:13:25
2023-08-23T15:13:25
142,779,680
1,133
376
MIT
2023-09-13T19:05:06
2018-07-29T17:08:50
Python
UTF-8
Python
false
false
2,178
pyi
transaction.pyi
from collections.abc import Callable, Iterator from contextlib import contextmanager from types import TracebackType from typing import Any, TypeVar, overload from django.db import ProgrammingError class TransactionManagementError(ProgrammingError): ... def get_connection(using: str | None = ...) -> Any: ... def get...
9243817f357992930e1f702f14f8059329334be7
6ff85b80c6fe1b3ad5416a304b93551a5e80de10
/Python/Typing/ConvertIntToByte.py
68249f97040e3c981a269f6836a4ddf83a77cdae
[ "MIT" ]
permissive
maniero/SOpt
c600cc2333e0a47ce013be3516bbb8080502ff2a
5d17e1a9cbf115eaea6d30af2079d0c92ffff7a3
refs/heads/master
2023-08-10T16:48:46.058739
2023-08-10T13:42:17
2023-08-10T13:42:17
78,631,930
1,002
136
MIT
2023-01-28T12:10:01
2017-01-11T11:19:24
C#
UTF-8
Python
false
false
132
py
ConvertIntToByte.py
print((65).to_bytes(1, byteorder='big')) print(bytes([10,20,30,40,50,60,70,80,90,100])) #https://pt.stackoverflow.com/q/270545/101
01f92720859e4953fdbfc3245ed95821edfd2e33
516ee648944f3fbab53c62112b5197357b133716
/deltapy/__init__.py
8eccaa00bf9c6779f632aa61534768c7556cebef
[]
no_license
firmai/deltapy
4a906213bf7249a4c431337adfd2606fcb9ab379
05c8a6440440bcc5ee1d051d7dfeee70807329de
refs/heads/master
2022-06-05T05:30:57.113438
2022-03-01T16:13:48
2022-03-01T16:13:48
253,993,655
529
49
null
2020-04-17T17:08:26
2020-04-08T05:27:53
Jupyter Notebook
UTF-8
Python
false
false
113
py
__init__.py
from deltapy import transform from deltapy import interact from deltapy import mapper from deltapy import extract
d332c0e92de23ddc78d9e66cdd38df78c7240a0c
a1cb622d58db6941f72c75920a4791cdae5c9984
/tests/test_8cache.py
5e9be1ad156fab25ab105da6ace692a6b8cdf206
[ "MIT" ]
permissive
chanzuckerberg/miniwdl
b9a5a6fee43bd65b6c2ed168c87cb3b2697ac948
6052fa836ea0cd91c7a07a6a2766b6cf44c0afe0
refs/heads/main
2023-08-24T03:38:39.712491
2023-08-13T03:03:49
2023-08-13T03:03:49
144,358,960
155
45
MIT
2023-08-12T20:20:40
2018-08-11T05:43:50
Python
UTF-8
Python
false
false
23,482
py
test_8cache.py
import glob import json import logging import os import stat import random import shutil import tempfile import time import unittest import subprocess from unittest.mock import MagicMock, patch from .context import WDL from WDL import values_from_json, values_to_json from WDL.runtime.cache import CallCache class Tes...
66b53fb024b28f14d870a6e7e08a242853a78374
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/dsmr/sensor.py
e4f9d0e9ab9cd88aba2251ce67cdaa56ba26a3ca
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
24,843
py
sensor.py
"""Support for Dutch Smart Meter (also known as Smartmeter or P1 port).""" from __future__ import annotations import asyncio from asyncio import CancelledError from contextlib import suppress from dataclasses import dataclass from datetime import timedelta from functools import partial from dsmr_parser import obis_re...
d88d0e2c8f42c3750ca43d761bc29597f39fe041
908f506bf9cf61ea302c67d17170555d943f1e65
/dcnnt/common/jsonrpc.py
dea2e5a4a386cffffbde3feb40ee31df90a17d5c
[ "MIT" ]
permissive
cyanomiko/dcnnt-py
2a0ea4aaf0bbb2c448d28b64354c93b37393b078
4084ea18f96d9a953315f5555fca45f26639b8be
refs/heads/master
2023-08-19T17:00:51.634328
2022-12-28T20:22:09
2022-12-28T20:22:09
252,572,044
147
11
MIT
2023-08-15T05:29:48
2020-04-02T21:49:46
Python
UTF-8
Python
false
false
7,807
py
jsonrpc.py
import json from typing import Dict, Any, Union, Optional, Callable, Iterable class RPCObject: """Just group of other classes""" __slots__ = () def to_dict(self) -> Dict[str, Any]: """Convert to JSON-RPC 2.0 dictionary""" raise NotImplementedError class RPCError(BaseException, RPCObject...
2b49fb9d01a6a049fc2878157fc0a3219978938a
0869d7edac80e8aebe951682a2cc311a083eade3
/Python/example_controllers/obi/cloth_volume.py
c356289c5d7d3d363ab69509b0dd6a5c3f93c42e
[ "BSD-2-Clause" ]
permissive
threedworld-mit/tdw
7d5b4453832647733ff91ad7a7ce7ec2320454c1
9df96fba455b327bb360d8dd5886d8754046c690
refs/heads/master
2023-09-01T11:45:28.132298
2023-08-31T16:13:30
2023-08-31T16:13:30
245,492,977
427
75
BSD-2-Clause
2023-09-14T17:36:12
2020-03-06T18:42:09
Python
UTF-8
Python
false
false
1,094
py
cloth_volume.py
from tdw.controller import Controller from tdw.tdw_utils import TDWUtils from tdw.add_ons.obi import Obi from tdw.add_ons.third_person_camera import ThirdPersonCamera from tdw.obi_data.cloth.volume_type import ClothVolumeType """ Minimal example of adding a cloth volume to a scene. """ c = Controller() cloth_id = Con...
67037eaeacf52262a4eb862eda3f9eb17de6e68d
5d55e0885bacd718588f25b71675c1127c93fc0a
/river/drift/binary/ddm.py
24706d61373318cab71fd58460a703c577517967
[ "BSD-3-Clause" ]
permissive
online-ml/river
5698b60e65493eba28d0c0c1992f19eb996c0bfa
c658393084ed4147a782daa6bcd4a467c3abb0cb
refs/heads/main
2023-09-03T00:12:55.121301
2023-08-29T12:04:20
2023-08-29T12:04:20
167,388,434
3,372
389
BSD-3-Clause
2023-09-12T08:11:15
2019-01-24T15:18:26
Python
UTF-8
Python
false
false
4,963
py
ddm.py
from __future__ import annotations import math from river import base, stats class DDM(base.BinaryDriftAndWarningDetector): """Drift Detection Method. DDM (Drift Detection Method) is a concept change detection method based on the PAC learning model premise, that the learner's error rate will decrea...
1b9bdb75106795e5786e3efdec797f709717bd93
0db19410e9751790af8ce4a0a9332293e379c02f
/demo/bottomup_demo.py
3d6fee7a03cc191def11924be362a63c64b7dfff
[ "Apache-2.0" ]
permissive
open-mmlab/mmpose
2c9986521d35eee35d822fb255e8e68486026d94
537bd8e543ab463fb55120d5caaa1ae22d6aaf06
refs/heads/main
2023-08-30T19:44:21.349410
2023-07-04T13:18:22
2023-07-04T13:18:22
278,003,645
4,037
1,171
Apache-2.0
2023-09-14T09:44:55
2020-07-08T06:02:55
Python
UTF-8
Python
false
false
6,863
py
bottomup_demo.py
# Copyright (c) OpenMMLab. All rights reserved. import mimetypes import os import time from argparse import ArgumentParser import cv2 import json_tricks as json import mmcv import mmengine import numpy as np from mmpose.apis import inference_bottomup, init_model from mmpose.registry import VISUALIZERS from mmpose.str...
c7322e7b6192863db0288ea8439dc9d9c0dddb40
baa2c6f22ff563d417e34692bf3345077eb8fa5f
/docs/autogen_shortcuts.py
23b47111665240eec4b70b1dd9a6db183f57c760
[ "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
6,798
py
autogen_shortcuts.py
from dataclasses import dataclass from inspect import getsource from pathlib import Path from typing import cast, List, Union from html import escape as html_escape import re from prompt_toolkit.keys import KEY_ALIASES from prompt_toolkit.key_binding import KeyBindingsBase from prompt_toolkit.filters import Filter, Co...
9e6fbeb91b9b96eafcfe80a1899fbd573527781a
40e8515dba964d51660f72bb497ac7fbb3246b2c
/seleniumwire/har.py
506af8f2eb56a5432661b4372daf3df3bf256231
[ "MIT" ]
permissive
wkeeling/selenium-wire
47e4caf4ed114aa274d428736779277716b3bada
79fa2e81e690b9c32882d006a6799c3a316fe346
refs/heads/master
2023-08-07T19:45:35.911730
2022-11-05T15:54:47
2022-11-05T15:54:47
137,925,467
1,625
232
MIT
2023-07-31T02:40:30
2018-06-19T17:43:24
Python
UTF-8
Python
false
false
6,661
py
har.py
"""Handles generation of HAR archives. This code has been taken from the har_dump.py addon in the mitmproxy project. """ import base64 import json from datetime import datetime, timezone from typing import List, Set import seleniumwire from seleniumwire.thirdparty.mitmproxy import connections from seleniumwire.thirdp...
0ac6981f7e228636f81e8e1a7cf479b700e40572
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/test/sql/test_selectable.py
a146a94c6003eb7fbc63af0cbe1950b85120d673
[ "MIT" ]
permissive
sqlalchemy/sqlalchemy
9d949c67c9b5396b1f33e7ff0f3230c81babf5be
b382bff6e3464f039db0fd1f2ce1b79038675e48
refs/heads/main
2023-08-31T17:40:59.565421
2023-08-30T15:01:41
2023-08-30T15:01:41
159,271,175
8,083
1,489
MIT
2023-09-12T18:53:55
2018-11-27T03:35:03
Python
UTF-8
Python
false
false
130,634
py
test_selectable.py
"""Test various algorithmic properties of selectables.""" from itertools import zip_longest from sqlalchemy import and_ from sqlalchemy import bindparam from sqlalchemy import Boolean from sqlalchemy import cast from sqlalchemy import Column from sqlalchemy import delete from sqlalchemy import exc from sqlalchemy impo...
842339112c11e4a344eae7864832fc99e0135b2c
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/hqadmin/management/commands/corrupt_couch_nodes.py
8a103dd00a20d3e4fd8c5919c789b383e124a3a5
[ "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
5,040
py
corrupt_couch_nodes.py
import logging import sys from urllib.parse import urlparse, urlunparse from django.conf import settings from django.core.management.base import BaseCommand from couchdbkit import Database from dimagi.utils.couch.database import retry_on_couch_error from .corrupt_couch import setup_logging from ...corrupt_couch impo...
0985719395aec6292cf1d8694bc62763b8d04104
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/StyTr-2/src/utils/function.py
0e4dc13c99d1fdb2e325925fad1545dcbbc9bc35
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
1,612
py
function.py
from PIL import Image import mindspore from mindspore import ops def calc_mean_std(feat, eps=1e-5): # eps is a small value added to the variance to avoid divide-by-zero. size = feat.shape N, C = size[:2] feat_var = feat.view(N, C, -1).var(axis=2) + eps sqrt = ops.Sqrt() feat_var = sqrt(feat_va...
cddda225fddd95abb879d996aee97098a484b7d0
4b7b459cbc4b52af66330fa20584ea8a35d4e368
/src/middlewared/middlewared/pytest/unit/plugins/enclosure/test_slot_mappings.py
b49a5d88a69e653cf6331af67df3632a6a0f0261
[]
no_license
truenas/middleware
563ba85bbc7de6475e9d301e769a75af08b78955
4717cbc4560a0a1e47acff5faf4bbff327f7a55a
refs/heads/master
2023-09-04T03:09:07.016897
2023-09-02T00:21:15
2023-09-02T00:24:17
8,627,760
446
105
null
2023-09-14T20:20:51
2013-03-07T13:23:20
Python
UTF-8
Python
false
false
13,719
py
test_slot_mappings.py
import pytest from middlewared.plugins.enclosure_ import slot_mappings @pytest.mark.parametrize('data', [ ('R50', { 'any_version': True, 'versions': { 'DEFAULT': { 'product': { 'eDrawer4048S1': { i: {'orig_slot': i, 'mapped_s...
e626a9d509c725195f5394a3557103c6032cab19
6415c13547e6943f7b65337cbd2790c4e18723c8
/netbox/netbox/search/__init__.py
6d53e9a97e3215bdb29fbc38bc809faf528f3599
[ "Apache-2.0" ]
permissive
netbox-community/netbox
287254a9698270d51f57b1297118e9f01536da5a
506884bc4dc70299db3e2a7ad577dd7fd808065e
refs/heads/develop
2023-08-24T09:11:46.685121
2023-08-23T18:44:14
2023-08-23T18:44:14
52,796,596
8,122
1,817
Apache-2.0
2023-09-14T18:16:01
2016-02-29T14:15:46
Python
UTF-8
Python
false
false
3,862
py
__init__.py
from collections import namedtuple from django.db import models from ipam.fields import IPAddressField, IPNetworkField from netbox.registry import registry ObjectFieldValue = namedtuple('ObjectFieldValue', ('name', 'type', 'weight', 'value')) class FieldTypes: FLOAT = 'float' INTEGER = 'int' STRING = '...
80d45ce30c37f8fb293a76900abeef5d1009d78c
069c2295076c482afadfe6351da5ae02be8e18e6
/django/middleware/cache.py
0fdffe1bbeee48e15fc1d5fcc52cfb4a6c4150e8
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
7,951
py
cache.py
""" Cache middleware. If enabled, each Django-powered page will be cached based on URL. The canonical way to enable cache middleware is to set ``UpdateCacheMiddleware`` as your first piece of middleware, and ``FetchFromCacheMiddleware`` as the last:: MIDDLEWARE = [ 'django.middleware.cache.UpdateCacheMiddl...
f13bef072077d304e202689c0b4178d744dfeb44
753cd066a9bd26b6c37c8d53a86c7a9c659ec18c
/vision/mae/pytorch/util/checkpoint.py
32abe9f6168a8f307a43073e86c1657d9a579a31
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
graphcore/examples
ac872015808ed2a913d4d7bf0d63202ce15ebbae
e2f834dd60e7939672c1795b4ac62e89ad0bca49
refs/heads/master
2023-08-05T02:08:12.341836
2023-07-27T11:13:10
2023-07-27T11:13:10
143,977,106
311
80
MIT
2023-09-11T16:42:56
2018-08-08T07:29:17
Python
UTF-8
Python
false
false
1,256
py
checkpoint.py
# Copyright (c) 2022 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 ...
bd50ba3da7f86a2465a2133d8099eb2297582c72
e5a6076462ebe087cb236bee1bc6cfb45325983c
/amadeus/shopping/_activities.py
af5e4aa063a228c83844bb37dce855755ae16390
[ "MIT" ]
permissive
amadeus4dev/amadeus-python
727273113badb2c117397dc9c1fe08b220536d7b
84b0c99292e28a8697883274a0137a07a411de6a
refs/heads/master
2023-06-29T17:26:16.339811
2023-06-22T14:45:42
2023-06-22T14:45:42
126,029,888
184
81
MIT
2023-09-14T06:59:18
2018-03-20T14:25:13
Python
UTF-8
Python
false
false
954
py
_activities.py
from amadeus.client.decorator import Decorator from amadeus.shopping.activities._by_square \ import BySquare class Activities(Decorator, object): def __init__(self, client): Decorator.__init__(self, client) self.by_square = BySquare(client) def get(self, **params): ''' Ret...
924d272402e03943e6cbd52235a4c085c7734176
6fe86ea636a69fff9174df6407839f0164407bdb
/tt/optimize/tt_min.py
0023746c8920746295110b4664a6f33a99f1efe9
[ "MIT" ]
permissive
oseledets/ttpy
9104e8014a73667b1cfc4fd867593cd8a6097ba0
a50d5e0ce2a033a4b1aa703715cb85d715b9b34a
refs/heads/master
2023-03-06T12:44:43.804115
2022-12-14T23:37:57
2022-12-14T23:37:57
5,499,019
220
77
MIT
2022-12-14T23:37:58
2012-08-21T18:22:27
Python
UTF-8
Python
false
false
9,981
py
tt_min.py
"""This module contains a prototype implementation of the TT-cross-based minimization procedure """ from __future__ import print_function, absolute_import, division from six.moves import xrange import numpy as np import math import tt from ..maxvol import maxvol from ..utils.rect_maxvol import rect_maxvol def reshape...
e1c9ab797ad51f82294f631fb0d6f9688d64f4bf
d068d41e02ab116cbd83ee9298c9ba357c668f85
/setup.py
a4fe1081c3744a750de6d049d91af0f0bbfc40b2
[ "BSD-3-Clause" ]
permissive
chrisjsewell/ipypublish
01f362cdf0989e119111a089bb307f52e23c1ef7
53fa92c4c7f18e36d8a9790b10de27219882f4e4
refs/heads/develop
2022-02-08T04:26:32.081511
2020-08-14T01:18:09
2020-08-14T01:18:09
96,322,423
233
42
BSD-3-Clause
2021-11-20T18:58:33
2017-07-05T13:29:38
HTML
UTF-8
Python
false
false
4,276
py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup for ipypublish.""" import io from importlib import import_module from setuptools import setup, find_packages with open("requirements.txt") as f: requirements = f.read().splitlines() with io.open("README.md") as readme: readme_str = readme.read() setup...
61e96dfbc5a2456197348b15bb49fe567b5ba725
7a9beade653ebec41c8b6751057f97b199daddd6
/tests/convolve/test_generic_separable_filters.py
41f4c92f677287f2a3f0093155e6fd53052fa2e8
[ "BSD-3-Clause" ]
permissive
maweigert/gputools
4939bdbf0ecd4891f79827203b565fcf4b2b0ecf
4ca3b013879c18cf8d4c8b1d91b5681a3287616c
refs/heads/master
2023-01-24T09:24:03.924781
2021-12-03T17:18:20
2021-12-03T17:18:20
39,986,100
101
18
BSD-3-Clause
2021-12-02T23:31:10
2015-07-31T04:11:05
Python
UTF-8
Python
false
false
2,503
py
test_generic_separable_filters.py
from __future__ import print_function, unicode_literals, absolute_import, division import numpy as np import numpy.testing as npt from itertools import product, combinations_with_replacement import scipy.ndimage.filters as spf import gputools from gputools.convolve import max_filter, min_filter, uniform_filter np.r...
e4796add4e975333676583037bb17695f3a98271
61a148d684047323f866017c6c95e0dc78682c43
/core/amber/src/main/python/pytexera/udf/examples/count_batch_operator.py
44346be136bb746795b570abc4601b10e6407409
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
Texera/texera
9dd92dd0999fd78ff37cb6241f3395d475549e27
ca554ecad8e161b489aa17bdb17c9249ef888b6d
refs/heads/master
2023-09-03T21:46:42.147647
2023-08-31T21:42:30
2023-08-31T21:42:30
53,976,910
129
61
Apache-2.0
2023-09-14T15:53:52
2016-03-15T20:38:46
Scala
UTF-8
Python
false
false
311
py
count_batch_operator.py
from pytexera import * class CountBatchOperator(UDFBatchOperator): BATCH_SIZE = 10 def __init__(self): super().__init__() self.count = 0 @overrides def process_batch(self, batch: Batch, port: int) -> Iterator[Optional[BatchLike]]: self.count += 1 yield batch
9ca274533b42ddf70953d4e8898f686e3308754a
fbdc48c28e54fb33ae4842ef95ff63893902c99a
/scripts/examples/09-OpenMV-Boards/01-WiFi-Shield/http_client.py
559ce1dc9c2e45dfccff8877b22b77f7563aaa6e
[ "MIT" ]
permissive
openmv/openmv
44d4b79fc8693950a2e330e5e0fd95b5c36e230f
8a90e070a88b7fc14c87a00351b9c4a213278419
refs/heads/master
2023-08-30T20:59:57.227603
2023-08-23T16:50:55
2023-08-23T16:50:55
14,360,940
2,150
1,226
MIT
2023-09-14T07:18:15
2013-11-13T10:23:44
C
UTF-8
Python
false
false
791
py
http_client.py
# Simple HTTP client example. import network import usocket # AP info SSID = "" # Network SSID KEY = "" # Network key PORT = 80 HOST = "www.google.com" # Init wlan module and connect to network print("Trying to connect... (may take a while)...") wlan = network.WINC() wlan.connect(SSID, key=KEY, security=wlan.WPA...
b38997fb4ee5d3f269fc25012a9192ae7211909a
ee87c715e5d937b0380ddb87d56e9ebc4877a02b
/benchmarks/bench_hist_gradient_boosting_higgsboson.py
65be02ec0c4b926d6d38ab69e385b060968d0942
[ "BSD-3-Clause" ]
permissive
scikit-learn/scikit-learn
27a2196f3173e0f32f7a5c5d652b70a6c57c7644
061f8777b48e5491b0c57bb8e0bc7067c103079d
refs/heads/main
2023-08-18T15:32:59.764468
2023-08-18T14:39:08
2023-08-18T14:39:08
843,222
58,456
29,777
BSD-3-Clause
2023-09-14T19:08:34
2010-08-17T09:43:38
Python
UTF-8
Python
false
false
4,120
py
bench_hist_gradient_boosting_higgsboson.py
import argparse import os from gzip import GzipFile from time import time from urllib.request import urlretrieve import numpy as np import pandas as pd from joblib import Memory from sklearn.ensemble import HistGradientBoostingClassifier from sklearn.ensemble._hist_gradient_boosting.utils import get_equivalent_estima...
c168369dccf26f89304f9c2561d90c12bc0979c7
2f679ea4787bcd765dc9d3025a03f15a25d360cb
/docker/lr-pb/merge_ccs_reports.py
003795e7915c7a975590ccdad49f4f23b324a483
[ "BSD-3-Clause" ]
permissive
broadinstitute/long-read-pipelines
f7d0958c23b68c4143d350c0b77b62d0bbea914e
9620d58f49f29dd2f27fa5f30f72c8257aa2064b
refs/heads/main
2023-08-31T20:46:00.456332
2023-08-15T18:36:14
2023-08-15T18:36:14
186,657,809
101
23
BSD-3-Clause
2023-09-06T14:39:55
2019-05-14T16:12:33
Jupyter Notebook
UTF-8
Python
false
false
3,182
py
merge_ccs_reports.py
import argparse import re parser = argparse.ArgumentParser(description='Merge CCS reports.') parser.add_argument('ccs_report', metavar='R', type=str, nargs='+', help='CCS report(s)') args = parser.parse_args() d = {} for ccs_report in args.ccs_report: file = open(ccs_report, "r") for line in file: if...
62f8aa326ac110d70ccaaee7ef6802928a87ac2f
7f24023d365e013ec0924844c1a872edfb0c75b4
/tests/bugs/test-200907231705.py
425d8f56bb1358c1d8de7803a1dcc1d324d79a1e
[ "Python-2.0", "MIT", "Apache-2.0" ]
permissive
pabigot/pyxb
cd42c024607572c6363682d389e9296caf3f2857
5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a
refs/heads/next
2023-05-11T03:23:19.599756
2023-04-29T20:38:15
2023-04-29T20:45:13
20,547,850
130
63
Apache-2.0
2021-08-19T16:52:18
2014-06-06T01:49:03
Python
UTF-8
Python
false
false
4,068
py
test-200907231705.py
# -*- coding: utf-8 -*- import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import pyxb.binding.generate import pyxb.binding.datatypes as xs import pyxb.binding.basis import pyxb.utils.domutils from pyxb.utils import six import os.path xsd='''<?xml version="1.0" encod...
2dfe397dfd68c140de73b1be941127d0dc7d7df9
753aafa747871f556600b28dbb867298132b1e6b
/supervisely/app/widgets/task_logs/task_logs.py
694bb136baa3267447ab3e97ce3a95abac0f0e6f
[ "Apache-2.0" ]
permissive
supervisely/supervisely
85dd63e5ccb590b2861271ef7bd5401aa2a99038
f0df756b8fb89364202fde54e6ef5fe89fca089d
refs/heads/master
2023-08-27T07:29:57.682377
2023-08-24T13:17:31
2023-08-24T13:17:31
140,302,908
447
91
Apache-2.0
2023-09-13T11:11:09
2018-07-09T15:09:32
Python
UTF-8
Python
false
false
1,052
py
task_logs.py
from typing import Dict, Union from supervisely.app import DataJson from supervisely.app.widgets import Widget from supervisely import is_development class TaskLogs(Widget): def __init__( self, task_id: int = None, widget_id: str = None, ): self._task_id = task_id self....
2969b9db57431e1aad0714edc2d75f5f689126d6
7bc1d8634529eac952490399fb71f10bcedf05cc
/tests/scripts/thread-cert/pktverify/bytes.py
c64271739f89e041c973d4356f44ca7c72cd3ebb
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause" ]
permissive
openthread/openthread
6a9e25d1cd224bde9796d9616f04f423dba27d77
102a631cb3f8938389d0d10199a14c59184039cd
refs/heads/main
2023-08-18T10:46:03.820124
2023-08-17T22:20:55
2023-08-17T22:20:55
55,808,787
3,485
1,296
BSD-3-Clause
2023-09-14T15:50:53
2016-04-08T20:47:41
C++
UTF-8
Python
false
false
5,686
py
bytes.py
#!/usr/bin/env python3 # # Copyright (c) 2019, The OpenThread Authors. # 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 # ...
e2d3aa811bdfb65e0533463e35e50ddbabfbedd5
1adebf72de7aa7147b1148ba35280645fbe5bbd3
/dev/etc/pending_ugens/GrainSin.py
e11203626ae24d2fe1be587c5288f0f4148729ff
[ "MIT" ]
permissive
josiah-wolf-oberholtzer/supriya
d0c4f921a06e3f9df40f91a226a1c038d3ef84d5
2ebf835ce9bbfca19e4220628a32c30fa66e04f7
refs/heads/main
2023-07-20T00:06:23.955530
2023-07-18T03:02:14
2023-07-18T03:02:14
17,463,359
227
28
MIT
2023-07-18T03:02:15
2014-03-06T02:27:25
Python
UTF-8
Python
false
false
6,759
py
GrainSin.py
import collections from supriya.enums import CalculationRate from supriya.synthdefs import MultiOutUGen class GrainSin(MultiOutUGen): """ :: >>> grain_sin = supriya.ugens.GrainSin.ar( ... channel_count=1, ... duration=1, ... envbufnum=-1, ... frequency...
b85e53acbe16f66a08e82620706f746da9f1c878
307821fb88d61d487943b30a229a849c7a362d71
/hydro_cli/hydro/__init__.py
1b983f5101802fd7601816640f62ab7b25e461a7
[ "Apache-2.0" ]
permissive
hydro-project/hydroflow
5a216904a9bf8d8f3d875682267d0edf843b9fb6
3f45ec10f0bcc5484f3e116369cdf66ec53b506f
refs/heads/main
2023-08-27T00:57:19.959242
2023-08-25T17:42:33
2023-08-25T17:42:33
399,648,216
329
82
Apache-2.0
2023-09-14T13:05:14
2021-08-25T01:05:30
Rust
UTF-8
Python
false
false
26
py
__init__.py
from hydro._core import *
5832d30fc84a38e439a080fee55f7badab4c69cd
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/studio/micro-services/cube-studio/job-template/job/model_template/__init__.py
ba23e413cb559d4560cb69b610fe807add8e302c
[ "Apache-2.0", "BSD-3-Clause", "MIT", "EPL-2.0", "LGPL-2.1-only", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
80
py
__init__.py
# coding=utf-8 # @Time : 2021/7/5 20:05 # @Auther : lionpeng@tencent.com
3dd00deff75891c10155c3885e783de96a468158
967e5d3f3cdb9e6c458ae516452ddbb342a200e6
/build_cvode.py
ffe7a0470ad1dd524e22d58db086e1f384442ffc
[ "BSD-3-Clause", "BSD-2-Clause", "MIT", "CC-BY-4.0" ]
permissive
CATIA-Systems/FMPy
46685e67c627613955c04558bdd7ed63d9c6ebbb
5cec29bd25937885c7d4062766891dea5fcc4bdb
refs/heads/main
2023-09-04T01:17:29.851581
2023-08-21T15:21:09
2023-08-21T15:21:09
91,576,871
339
120
NOASSERTION
2023-08-22T18:27:02
2017-05-17T12:59:50
Python
UTF-8
Python
false
false
3,250
py
build_cvode.py
from fmpy import sharedLibraryExtension, platform from fmpy import platform_tuple as current_platform_tuple from fmpy.util import download_file import tarfile import os import shutil from subprocess import check_call configuration = 'Release' if os.name == 'nt': generators = [ ('win32', ['-G', 'Visual St...
3b11d54e9aee8b74403a1ade9cd6881ccf0e0825
13edccdb425fc5780b9b826386707fd3cb1b1145
/tools/validators/ontology_validator/yamlformat/validator/unit_lib.py
c53fb233d02c7a607187ee22fad3fe66a645445d
[ "Apache-2.0" ]
permissive
google/digitalbuildings
5603bb958446d38e37075e9a14f89182a8e805fe
0ffe5b61769143826142da4bada3c712b1fd0222
refs/heads/master
2023-09-03T20:03:37.081139
2023-09-01T17:41:58
2023-09-01T17:41:58
240,568,500
319
132
Apache-2.0
2023-09-14T21:00:20
2020-02-14T17:57:23
Python
UTF-8
Python
false
false
16,009
py
unit_lib.py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
dd648f8c181feb4600de70546072bee1cd0021f4
8ed15d43652dbcab332c78923da416b91b139323
/python/app/fednlp/data/raw_data_loader/obsolete/SQuAD_1_1/data_loader.py
890a9aa4924198d63446b6e8671e7e7553eb57ef
[ "Apache-2.0" ]
permissive
FedML-AI/FedML
74d144038c9de4a0621eb328d00987abac35e2d1
b436fbd95cbb62f6c58d2233d7affa0f62cb1817
refs/heads/master
2023-08-31T22:15:39.786371
2023-08-24T03:41:58
2023-08-24T03:41:58
281,519,510
3,197
807
Apache-2.0
2023-09-14T02:14:20
2020-07-21T22:41:25
Python
UTF-8
Python
false
false
8,931
py
data_loader.py
# import json # import os # import random # import re # import nltk # # from data_preprocessing.base.base_raw_data_loader import BaseRawDataLoader # class RawDataLoader(BaseRawDataLoader): # def __init__(self, data_path): # super().__init__(data_path) # self.task_type = "span_extraction" # ...
ab626189093588a027053c39d0c4ba0a401de3ba
866233a68914df7b8f0d89efb44b27ec29368d30
/src/aioprometheus/service.py
f715381921e14a8b89ddeb375dc2611d90d1ca9e
[ "MIT" ]
permissive
claws/aioprometheus
22d442abcdb6a83a31025cd36bfc967150b9570b
4786678b413d166c0b6e0041558d11bc1a7097b2
refs/heads/master
2023-03-24T19:41:07.253289
2023-03-14T05:55:27
2023-03-14T05:55:27
61,433,356
142
22
null
2023-03-14T05:55:29
2016-06-18T12:53:23
Python
UTF-8
Python
false
false
7,112
py
service.py
""" This module implements an asynchronous Prometheus metrics export service. """ import logging try: import aiohttp except ImportError as exc: raise ImportError( "`aiohttp` could not be imported. Did you install `aioprometheus` " "with the `aiohttp` extra?" ) from exc # imports only used ...
8f7691d0cce88d0a9e6b5de0787fd807559f1272
f6492af1b4c162c7d76edc7de5fa671dff963b11
/tests/transformer/operators/test_comparison_operators.py
7aa3e9a5096c5ddc3c9ace004c03500d96bcecca
[ "ZPL-2.1" ]
permissive
zopefoundation/RestrictedPython
4cf9b85819648672078c746f059b714feb252ed0
aac3f96d07212cb6e07f3bcafd6da63f531ca9e0
refs/heads/master
2023-09-03T20:13:55.796804
2023-08-31T06:08:49
2023-08-31T06:08:49
8,480,726
341
43
NOASSERTION
2023-09-01T06:01:53
2013-02-28T14:29:45
Python
UTF-8
Python
false
false
408
py
test_comparison_operators.py
from tests.helper import restricted_eval def test_Eq(): assert restricted_eval('1 == 1') is True def test_NotEq(): assert restricted_eval('1 != 2') is True def test_Gt(): assert restricted_eval('2 > 1') is True def test_Lt(): assert restricted_eval('1 < 2') def test_GtE(): assert restricte...
08f32e0d7d6f8048fadb091f7a452794afddd8ff
110044654f706e920380dad2779bb32a77f1f26f
/test/Java/RMIC.py
b7e45f4e9ee844dc597ca7b99b240d7339fa956b
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SCons/scons
89327bb9635cee6e7cc59249edca9cd859d7d1ff
b2a7d7066a2b854460a334a5fe737ea389655e6e
refs/heads/master
2023-09-01T19:37:03.603772
2023-08-28T04:32:42
2023-08-28T04:32:42
104,670,160
1,827
342
MIT
2023-09-14T15:13:21
2017-09-24T19:23:46
Python
UTF-8
Python
false
false
9,903
py
RMIC.py
#!/usr/bin/env python # # MIT License # # Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to us...
bd2557e59db18d3d02f12a89f72d9c5ac8016f9b
4091caecbc727e6d6ae0d827afce11c5979a84fd
/tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/dataset_folder.py
de2b5fbdaf1595f549797f9c3b1f21c816d6cca0
[ "Apache-2.0" ]
permissive
openvinotoolkit/open_model_zoo
fdb03dd40bfccb854e4ed4f7b9beaa90596963cd
7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0
refs/heads/master
2023-08-18T18:03:47.254427
2023-08-18T10:54:31
2023-08-18T10:54:31
153,097,694
1,712
730
Apache-2.0
2023-09-11T11:31:20
2018-10-15T10:55:02
Python
UTF-8
Python
false
false
1,445
py
dataset_folder.py
""" Copyright (c) 2018-2023 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
f1d98e2a5a123e990f1544436e1ffd09cb128053
25e99a0af5751865bce1702ee85cc5c080b0715c
/design_pattern/src/大話設計模式/design-patterns-py/factory_method.py
5f7a9a3abf6792c67db02aec1818fc7bdfc57a9a
[]
no_license
jasonblog/note
215837f6a08d07abe3e3d2be2e1f183e14aa4a30
4471f95736c60969a718d854cab929f06726280a
refs/heads/master
2023-05-31T13:02:27.451743
2022-04-04T11:28:06
2022-04-04T11:28:06
35,311,001
130
67
null
2023-02-10T21:26:36
2015-05-09T02:04:40
C
UTF-8
Python
false
false
1,345
py
factory_method.py
import abc class Leifeng: __metaclass__ = abc.ABCMeta @abc.abstractmethod def wash(self): """"wash""" @abc.abstractmethod def sweep(self): """sweep""" @abc.abstractmethod def buy_rice(self): """buy rice""" class Undergraduate(Leifeng): def wash(self): ...
c9c24a5981782ffb6fd35974af70cb52976b8710
27b86f422246a78704e0e84983b2630533a47db6
/src/ezdxf/npshapes.py
357f80696ba11cd974efcdceb75a12eb11dca9c7
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
16,096
py
npshapes.py
# Copyright (c) 2023, Manfred Moitzi # License: MIT License from __future__ import annotations from typing import Iterable, Optional, Iterator, Sequence from typing_extensions import Self, TypeAlias import abc import numpy as np from ezdxf.math import ( Matrix44, Vec2, Vec3, has_clockwise_orientation...
0a3730ed382637349efc469af54fb786a89eb51e
1bb42bac177fb4e979faa441363c27cb636a43aa
/reconstruction/stackoverflow/models.py
f7af71d6748e909d225f78f401c5bd5937b6136f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
google-research/federated
a6040e80fa0fbf533e0d665c66a9bc549d208b3d
329e60fa56b87f691303638ceb9dfa1fc5083953
refs/heads/master
2023-08-28T13:10:10.885505
2023-08-22T23:06:08
2023-08-22T23:06:40
295,559,343
595
187
Apache-2.0
2022-05-12T08:42:53
2020-09-14T23:09:07
Python
UTF-8
Python
false
false
7,999
py
models.py
# Copyright 2020, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
74461071acae1202af15d7051383f03438adf298
23652304566b1869ca65b95b116ee43d16e134f3
/tests/h/util/document_claims_test.py
d8e86ed54b8e790e78691484c863638a8f94cb2d
[ "BSD-2-Clause", "BSD-3-Clause", "BSD-2-Clause-Views" ]
permissive
hypothesis/h
29399a26990856c336b05022e827541dd8aeedab
232446d776fdb906d2fb253cf0a409c6813a08d6
refs/heads/main
2023-08-30T16:21:33.754658
2023-08-30T09:26:50
2023-08-30T09:40:48
3,910,945
2,558
452
BSD-2-Clause
2023-09-14T11:25:06
2012-04-02T19:56:59
Python
UTF-8
Python
false
false
28,384
py
document_claims_test.py
import re import pytest from h_matchers import Any from h.util import document_claims from h.util.document_claims import doi_uri_from_string class TestDocumentURIsFromLinks: def test_it_ignores_href_links_that_match_the_claimant_uri(self): """ Links containing only the claimant URI should be ign...
81933784cabd59d1ebd244c554b217f54e1e9c2b
7a7ee4b7c551ce92483e7162b3064f30219fbddc
/benchmarks/randomized_svd_fbpca.py
71e25d2dd4578b178b17602ebbc7f94472dd69a1
[ "Apache-2.0" ]
permissive
mratsim/Arraymancer
ccd8267fa2869d73a5a028ecceabf9e96dfdb69c
e2df3dd7509588e3a863c690389649ced790344a
refs/heads/master
2023-09-02T06:39:26.116762
2023-08-31T15:56:39
2023-08-31T15:56:39
88,188,361
1,258
125
Apache-2.0
2023-09-12T13:09:07
2017-04-13T17:10:19
Nim
UTF-8
Python
false
false
2,341
py
randomized_svd_fbpca.py
import numpy as np import time from fbpca import pca from scipy.linalg import hilbert def bench(Observations, Features): N = max(Observations, Features) k = 40 # Create a known ill-conditionned matrix for testing # This requires 20k * 20k * 4 bytes (float32) = 1.6 GB start = time.time() H = hi...
0c514a2044e6694245a4f2d98d90195470295e10
0d7f11605de1c72e5927036c7fc200132e4e7abd
/lantern/data/data_cufflinks.py
802f83ae553f0f871f052074f42c38cc1aad2c49
[ "Apache-2.0" ]
permissive
timkpaine/lantern
603c91604095d07b48645c5d11013ddf93631b44
7129fe3db104138d79ebf553ae9aedd9256c5c50
refs/heads/main
2023-08-26T14:07:03.898226
2022-11-22T01:33:39
2022-11-22T01:33:39
97,290,549
331
26
Apache-2.0
2023-09-04T14:01:57
2017-07-15T03:49:10
Python
UTF-8
Python
false
false
3,047
py
data_cufflinks.py
from .cfgen import scattergeo, \ choropleth, \ scatter, \ scatter3d, \ bubble, \ bubble3d, \ pie, \ heatmap, \ bars, \ ohlc, \ ohlcv, \ box, \ histogram, \ surface, \ sinwave, \ getName, \ lines def getCFData(type, n_categories=5, n=100, **kwargs): i...
2763e0e07a4de9307684bc5e0687972a1d42b276
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/ops/template.py
4e36b6b963176d0dd5337da0b7dbda30df4d4652
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
31,941
py
template.py
# Copyright 2015 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...
bdba8f91d15c91dad082afd138d3c7e34b27ec00
88fe84c79e5740b4aaa068df6a70e35841a68d25
/studies/awkward_cupy_perfscript.py
3ac3682db063ee055b70e62d589714a3c2298108
[ "BSD-3-Clause" ]
permissive
scikit-hep/awkward
176f56182a936270e163eab92ea18368c2bdc1be
519bba6ed2eec4e227994d2fd1a62b2a51f15e20
refs/heads/main
2023-09-02T20:19:10.175088
2023-09-01T20:13:25
2023-09-01T20:13:25
202,413,762
208
22
BSD-3-Clause
2023-09-14T17:19:29
2019-08-14T19:32:12
Python
UTF-8
Python
false
false
912
py
awkward_cupy_perfscript.py
import awkward as ak array = ak.from_parquet("/home/swish/Downloads/zlib9-jagged3.parquet", row_groups = range(25)) print(array) import cupy cuda_array = ak.to_backend(array, "cuda") print(f"Memory used GPU: {cupy.get_default_memory_pool().used_bytes()}") cuda_stream_1 =cupy.cuda.Stream(non_blocking=True) cuda_s...
bc570636f293e57b581c35cfe4f3aa6a59c555c0
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/Deprecated/deprecated/__init__.pyi
c7b200a4e0904f2b8ca08f910ae9f48a4bf7a0a2
[ "Apache-2.0", "MIT" ]
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
78
pyi
__init__.pyi
from .classic import deprecated as deprecated __credits__: str __date__: str
0f1862ce8d64f9c30c360436ff6a47fd594a374a
9efca95a55cb4df52d895d42f1ec10331516a734
/tools/c7n_mailer/c7n_mailer/datadog_delivery.py
8ca0896b4b461a06dcdf956a4944e4495d323078
[ "Apache-2.0" ]
permissive
cloud-custodian/cloud-custodian
519e602abe00c642786441b64cc40857ef5bc9de
27563cf4571040f923124e1acb2463f11e372225
refs/heads/main
2023-09-04T10:54:55.963703
2023-09-01T17:40:17
2023-09-01T17:40:17
52,837,350
3,327
1,096
Apache-2.0
2023-09-14T14:03:30
2016-03-01T01:11:20
Python
UTF-8
Python
false
false
4,326
py
datadog_delivery.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import time from datadog import api from datadog import initialize from urllib.parse import urlparse, parse_qsl class DataDogDelivery: DATADOG_API_KEY = "datadog_api_key" DATADOG_APPLICATION_KEY = "datadog_application_key" d...
bd82ef2608f50e42dacbdbac598b537acb8ab233
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CondTools/SiStrip/test/SiStripApvSimulationParametersBuilder_cfg.py
1e925fd4bdfc157c1079c4464a93efd439396a21
[ "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
4,245
py
SiStripApvSimulationParametersBuilder_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("ICALIB") process.source = cms.Source("EmptySource", numberEventsInRun = cms.untracked.uint32(1), firstRun = cms.untracked.uint32(1) ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.PoolDBOutputService = cms.Se...
4ba7723b10221460369913e0a27d7490ed8e6313
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/nxos/tests/RunBashTop/cli/equal/golden_output2_expected.py
5864069d4c3e48309c6ef9dadf9bd6ecb46612c0
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
1,481
py
golden_output2_expected.py
expected_output = {} # TODO: need to update unittests.py to use output instead of mocked output # { # "time": "07:46:26", # "up": "1:55", # "user": 2, # "load_average": {"one_min": 1.89, "five_mins": 1.11, "fifteen_mins": 0.63}, # "tasks": {"total": 299, "running": 1, "sleeping": 298, "stopped": 0, ...
5b68267874c6a531012310fe7b351d9bca61cc34
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQM/L1TMonitor/python/L1TdeStage2BMTF_cfi.py
195ba1806a810a9a058f3d516eaed64c17815264
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,099
py
L1TdeStage2BMTF_cfi.py
import FWCore.ParameterSet.Config as cms # List of bins to ignore ignoreBinsDeStage2Bmtf = [1] # compares the unpacked BMTF regional muon collection to the emulated BMTF regional muon collection # only muons that do not match are filled in the histograms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer l1tdeS...
cd59ed1a9270e86902abe844b389ea5156235daf
957ed55f3bcaa8c4e54cd5a31998b7bdf4776af4
/Find Product.py
47fa7c6c89f707766c967e1b3d5c15ee967bce65
[]
no_license
parasjain-12/HackerEarth-Solution
242117d1c2603801a417ac718d29e8e952fc199b
e2156145ab71aecfc09c88186e2baf82a02d5ef1
refs/heads/master
2022-05-06T16:02:46.207898
2022-04-18T08:26:03
2022-04-18T08:26:03
147,183,587
181
99
null
2021-07-21T13:25:52
2018-09-03T09:38:48
Python
UTF-8
Python
false
false
129
py
Find Product.py
x = pow(10,9)+7 n = int(input()) l = list(map(int,input().split())) ans =1 for i in range(n): ans = (ans*l[i])%x print(ans)
1f4c5fc85235caabd1c45043f9a09e85c67c38ec
78f5c927d37b04e2383aef5302255af6a7cbb81e
/controller_manager_tests/test/controller_manager_interface_test.py
50f11107749617bdbb6d599fe12c73ecf8c5cf9a
[ "BSD-3-Clause" ]
permissive
ros-controls/ros_control
239ecaa8e72a3b6289f39ede4adddd831f457a21
12edce55d89c1ddf68ad903407af7809e712b857
refs/heads/noetic-devel
2023-08-12T22:35:03.484122
2023-02-08T18:24:26
2023-02-08T18:24:26
6,607,925
460
293
BSD-3-Clause
2023-02-17T09:13:17
2012-11-09T03:09:38
C++
UTF-8
Python
false
false
2,467
py
controller_manager_interface_test.py
#!/usr/bin/env python import unittest from controller_manager import controller_manager_interface class TestUtils(unittest.TestCase): def test_scripts(self): # load my_controller1. self.assertTrue(controller_manager_interface.load_controller('my_controller1')) # load a non-existent contr...
c180263ab9a9eab8891bb5a3785405df88723732
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/examples/sql_taxi.py
e8a29806d72a6dd382e3ef5d77d82b8e6f6316a4
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf", "Apache-2.0", "Python-2.0" ]
permissive
apache/beam
ed11b9e043465c720659eac20ac71b5b171bfa88
6d5048e05087ea54abc889ce402ae2a0abb9252b
refs/heads/master
2023-09-04T07:41:07.002653
2023-09-01T23:01:05
2023-09-01T23:01:05
50,904,245
7,061
4,522
Apache-2.0
2023-09-14T21:43:38
2016-02-02T08:00:06
Java
UTF-8
Python
false
false
3,930
py
sql_taxi.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...
a61d138394e46386b9add0643ecf17e7937eca3c
091a6200be74bf6577c86f623665bcc24e16b02b
/Step_Switch_Pico_Demo/code.py
d9971a16cb42bca83b5c7051bb07c9d59eb84ef0
[ "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
4,059
py
code.py
# SPDX-FileCopyrightText: 2022 john park for Adafruit Industries # SPDX-License-Identifier: MIT # Pico Four Step Switch Keypad Demo import time import board import keypad from digitalio import Direction, DigitalInOut board_led = DigitalInOut(board.LED) board_led.direction = Direction.OUTPUT board_led.value = True swi...
fa8d08fef04fbf755decdef663efb6f1a2380eab
efcd21234f3291e8fc561f49a7c88fc57a63e952
/tests/unit/language/ast/test_inline_fragment.py
62879c91d0f864dc16c6c092e14ab623fc94ca67
[ "MIT" ]
permissive
tartiflette/tartiflette
146214a43847d2f423bf74594643c1fdefc746f1
421c1e937f553d6a5bf2f30154022c0d77053cfb
refs/heads/master
2023-09-01T02:40:05.974025
2022-01-20T14:55:31
2022-01-20T14:55:31
119,035,565
586
39
MIT
2023-09-11T07:49:27
2018-01-26T09:56:10
Python
UTF-8
Python
false
false
4,931
py
test_inline_fragment.py
import pytest from tartiflette.language.ast import InlineFragmentNode def test_inlinefragmentnode__init__(): inline_fragment_node = InlineFragmentNode( selection_set="inlineFragmentSelectionSet", type_condition="inlineFragmentTypeCondition", directives="inlineFragmentDirectives", ...
f640d7339dbbefb2f035abdf7da82417b60131ba
483424524c70852cc043e0d77bf1b757a61d797a
/tests/unit/model_parallelism/test_configurable_parallel_mp.py
824ecea5f1442610cab2cac45e24670db02ca33a
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/DeepSpeed
810f1af320020718d0794f5a97cde6f1d17af122
55d9964c59c0c6e23158b5789a5c36c28939a7b0
refs/heads/master
2023-09-06T07:40:52.145692
2023-09-05T23:51:23
2023-09-05T23:51:23
235,860,204
27,557
3,347
Apache-2.0
2023-09-14T21:38:46
2020-01-23T18:35:18
Python
UTF-8
Python
false
false
6,611
py
test_configurable_parallel_mp.py
# Copyright (c) Microsoft Corporation. # SPDX-License-Identifier: Apache-2.0 # DeepSpeed Team import os import torch import deepspeed import pytest import random import numpy as np import deepspeed.comm as dist from deepspeed.accelerator import get_accelerator from unit.common import DistributedTest, DistributedFixtu...
32b318004b31bef2300288f192f49ec5dc85684f
0529610da235bac1490c4f0b28a58258f05f116c
/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/TEZ/package/scripts/tez_client.py
8c20a7302e88bce2af697b29e99460761275a4fb
[ "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
apache/ambari
be1616f332615ef55fc1a47e84353f3e5a45732d
23881f23577a65de396238998e8672d6c4c5a250
refs/heads/trunk
2023-08-31T23:01:31.954106
2023-08-28T06:29:01
2023-08-28T06:29:01
2,442,457
2,078
1,957
Apache-2.0
2023-09-14T16:56:03
2011-09-23T07:00:08
Java
UTF-8
Python
false
false
5,517
py
tez_client.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 this ...
2e5d81e521a2f1829a49da6e22ba3bd05e77484c
fe255e9aee1d0c0f565054f2346221a836f869ab
/bot/exts/filtering/_settings_types/__init__.py
61b5737d4176214f818f830771d3528a83e0feb2
[ "MIT", "BSD-3-Clause", "Python-2.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
python-discord/bot
fe04810807f3a712911e76a4d4f0ef03a7eb5c86
f2048684291cc6358565e96ef3562512fbeb2505
refs/heads/main
2023-09-03T21:53:23.100718
2023-09-02T11:07:30
2023-09-02T11:07:30
120,088,519
1,479
1,091
MIT
2023-09-14T17:07:00
2018-02-03T12:20:25
Python
UTF-8
Python
false
false
381
py
__init__.py
from bot.exts.filtering._settings_types.actions import action_types from bot.exts.filtering._settings_types.validations import validation_types settings_types = { "ActionEntry": {settings_type.name: settings_type for settings_type in action_types}, "ValidationEntry": {settings_type.name: settings_type for sett...
84b72db9e4c11784e8776a101ee0a95fc1a0aef0
09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce
/tests/fourier/test_visualize.py
4c58493924e60a0f508a74fe9a21ac0003c718c1
[ "Apache-2.0" ]
permissive
PennyLaneAI/pennylane
458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7
0843183ff15a013c2622af5e61fea431d18076d3
refs/heads/master
2023-09-03T17:00:43.105784
2023-09-01T16:15:07
2023-09-01T16:15:07
129,936,360
1,431
410
Apache-2.0
2023-09-14T21:30:56
2018-04-17T16:45:42
Python
UTF-8
Python
false
false
11,870
py
test_visualize.py
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
b6804dd4dd70c00e39d803fb952ddcb6a19d8791
160f08e768d7271f9522ad2597ac4ee79c04477a
/src/c3nav/mapdata/migrations/0069_mapupdate_geometries_changed.py
b229567d4a45339c0422d69d6854c93f0abf654c
[ "Apache-2.0" ]
permissive
c3nav/c3nav
6254724dfc8589ee03c6028577befd7c65b05857
1a4ef5caa06ddacc8d9370b5adcee248fd4f55f7
refs/heads/main
2023-08-04T08:36:18.431458
2023-07-24T09:57:18
2023-07-24T09:57:18
56,852,994
140
47
Apache-2.0
2023-07-05T22:55:27
2016-04-22T12:13:51
Python
UTF-8
Python
false
false
516
py
0069_mapupdate_geometries_changed.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-23 01:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mapdata', '0068_waytype_level_change_description'), ] operations = [ migrat...
585778e07c168f40dc9e4131d6f33421c377d591
0f59e486ea9d7c96b8c3f7f92bf063fc8389f1e8
/vivisect/symboliks/tests/data_amd64.py
27d9125cfe6fac46ab2cd8caa5a469fc6e0eb762
[ "Apache-2.0" ]
permissive
vivisect/vivisect
ac259918b6281d9431c32a0b2307c61f9cab0dec
b07e161cc28b19fdda0d047eefafed22c5b00f15
refs/heads/master
2023-08-25T09:02:00.526532
2023-07-26T03:07:07
2023-07-26T03:07:07
26,651,759
833
181
Apache-2.0
2023-09-07T03:43:53
2014-11-14T18:28:47
Python
UTF-8
Python
false
false
6,308
py
data_amd64.py
effects = { # instruction name -> [bytes, newva, contraints, effects] 'rdtsc': ('0f31', None, (), ('rdx = TSC_HIGH', 'rax = TSC_LOW') ), 'cwde': ('98', None, (), ('rax = signextend((rax & 0x0000ffff), 8)',) ), 'cdq': ('99', None, (), ...
9383ee610ca89bebae13f2b06361f1b422209438
c4f4c28320b660c4312543fb90c7a06a0381ad07
/Inventory/admin.py
527a7159c1b3eaa6a85f2b2992dddd4adab2dcf5
[]
no_license
KinjalDas/Inventory-Management-System-Django
3dc7f6c5b059e3a457fc22162fd828518128970d
909bd786b8cfa59d1af6c58f2e59d732f3c1b4a2
refs/heads/master
2022-11-22T03:40:32.876278
2022-10-31T07:46:39
2022-10-31T07:46:39
144,360,465
108
80
null
2022-10-31T07:47:30
2018-08-11T06:12:40
Python
UTF-8
Python
false
false
235
py
admin.py
from django.contrib import admin # Register your models here. from .models import Item,Category,Client,Transaction admin.site.register(Item) admin.site.register(Client) admin.site.register(Category) admin.site.register(Transaction)
9b22b529fc7fc51cf4dc55d84fc330c16ffa8670
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/verisure/alarm_control_panel.py
26e74cceb9e97e4ba7b3a73698b0b3b455062efb
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
4,409
py
alarm_control_panel.py
"""Support for Verisure alarm control panels.""" from __future__ import annotations import asyncio from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, CodeFormat, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const...
90dab5ca550d51d7c1154b59353d0654362064d5
4d28185e7a78a569f9a449f39f183cac3024f711
/packages/Python/lldbsuite/test_event/event_builder.py
8759011abe5ef0e3b74adcee9db6639c3bfb4ecf
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
apple/swift-lldb
2789bf44f648609a1674ee520ac20b64c95de072
d74be846ef3e62de946df343e8c234bde93a8912
refs/heads/stable
2023-04-06T00:28:15.882479
2019-10-25T22:46:59
2019-10-25T22:46:59
44,838,862
780
291
Apache-2.0
2020-01-10T19:28:43
2015-10-23T21:13:18
C++
UTF-8
Python
false
false
17,162
py
event_builder.py
""" Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. See https://llvm.org/LICENSE.txt for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception Provides a class to build Python test event data structures. """ from __future__ import print_function from __future__ imp...
1b825f3fb0611890fbab760f5a20c2655b5e0705
391dfd77c1bb85c08b4ead451ecdab0858eb141f
/examples/gltf_scenes.py
5d7b33cf413045787282116a981825a90edc3892
[ "MIT" ]
permissive
moderngl/moderngl-window
308682b5aa625dbb49ca554459bed9853a5e69c3
200f2b9ea8b350b0ac9bb6a2d24310c0d8227794
refs/heads/master
2023-05-28T00:33:49.924394
2023-05-18T11:06:26
2023-05-18T11:06:26
172,498,670
205
48
MIT
2023-09-01T17:45:51
2019-02-25T12:05:57
Python
UTF-8
Python
false
false
4,860
py
gltf_scenes.py
from pathlib import Path from pyrr import Matrix44 import moderngl import moderngl_window as mglw from moderngl_window.scene.camera import KeyboardCamera from base import CameraWindow class CubeModel(CameraWindow): """ In oder for this example to work you need to clone the gltf model samples ...
2c513d762efcaa5154ca11af3a3a1cd6ad9983e5
568fa58296378fa129ab3349adf010daa44ed45b
/tests/st/ops/test_one_hot.py
f6118387b7eb396b95eb5be10ab1c22a16df4505
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
5,633
py
test_one_hot.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
dc13d8345bbdcd3047a47ce778d81aab8a855d7c
0d40af0c10fd47af5ea88675e5be3b7ee98cbcd8
/testing/web-platform/tests/webdriver/tests/bidi/input/perform_actions/pointer_touch.py
c1c430765f7dfded519931c0fabd290886608b48
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
mozilla/gecko-dev
f02cdc9e61197c1d2a038cf1ad8cb5339e8cb62a
304e9eaa3d7dbfab38d5b5401cbae227b20efe37
refs/heads/master
2023-09-01T20:40:41.588946
2023-09-01T11:38:17
2023-09-01T11:38:17
13,509,108
3,025
1,882
NOASSERTION
2023-09-05T04:11:13
2013-10-11T20:35:42
null
UTF-8
Python
false
false
6,264
py
pointer_touch.py
import pytest from webdriver.bidi.modules.input import Actions, get_element_origin from webdriver.bidi.modules.script import ContextTarget from .. import get_events from . import ( assert_pointer_events, get_inview_center_bidi, get_shadow_root_from_test_page, record_pointer_events, ) pytestmark = pyt...
f84cab6085f5365aeb01578ce3980e5664302102
b7314f9480634b2f2998c8181d4284d2b52ebba1
/src/python/txtai/app/base.py
61d8a6595e652bf94144b6e12209e67286c9346f
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
neuml/txtai
3ca6fba11126d650ea4f2cf5199011a52ea56e4e
789a4555cb60ee9cdfa69afae5a5236d197e2b07
refs/heads/master
2023-08-31T08:09:31.834178
2023-08-29T15:36:23
2023-08-29T15:36:23
286,301,447
4,804
387
Apache-2.0
2023-09-11T17:12:40
2020-08-09T19:14:59
Python
UTF-8
Python
false
false
20,925
py
base.py
""" Application module """ import os from multiprocessing.pool import ThreadPool from threading import RLock import yaml from ..embeddings import Documents, Embeddings from ..pipeline import PipelineFactory from ..workflow import WorkflowFactory # pylint: disable=R0904 class Application: """ Builds YAML-c...
e5ce92e76156dafa7abef859b2a208715426d355
c268dcf432f3b7171be6eb307aafbe1bd173285a
/reddit2telegram/channels/~inactive/r_trashtaste/app.py
88abaabcbbfbb808ce112eb469926b505025c697
[ "MIT" ]
permissive
Fillll/reddit2telegram
a7162da2cc08c81bcc8078ea4160d4ee07461fee
5d8ee3097e716734d55a72f5a16ce3d7467e2ed7
refs/heads/master
2023-08-09T10:34:16.163262
2023-07-30T18:36:19
2023-07-30T18:36:19
67,726,018
258
205
MIT
2023-09-07T02:36:36
2016-09-08T17:39:46
Python
UTF-8
Python
false
false
143
py
app.py
#encoding:utf-8 subreddit = 'TrashTaste' t_channel = '@r_TrashTaste' def send_post(submission, r2t): return r2t.send_simple(submission)
bf2b0956df428ce23806821a18ad8415067155d6
05169e203974411667ab947298a74575b8a179e0
/packages/jet_bridge_base/jet_bridge_base/filters/wkt_filter.py
df20b90abd78f907d329b1705622aab961eaf62c
[ "MIT" ]
permissive
jet-admin/jet-bridge
f6b563e1801985063483ddb02e9e1c3301dc0612
c53d30fb308eed5822083eaf71f641c4098610cc
refs/heads/master
2023-09-01T14:31:42.261427
2023-08-24T13:54:34
2023-08-24T13:54:34
163,167,532
1,564
166
MIT
2023-03-18T03:20:04
2018-12-26T10:27:33
Python
UTF-8
Python
false
false
148
py
wkt_filter.py
from jet_bridge_base.fields import WKTField from jet_bridge_base.filters.filter import Filter class WKTFilter(Filter): field_class = WKTField
8f5d9743cf9c92bb18c2f7b673c1df076b0eee51
cb6fda62ebf3c778680ee624fc3868442842cbff
/mmdet3d/utils/warmup_fp16_optimizer.py
308692e371996aca092f030b93938466f1886227
[ "Apache-2.0" ]
permissive
Divadi/SOLOFusion
22503000079495aff9785177e32a1bd8d55feebf
683edce81b619098d1ba143d7b15b1e6aa23337a
refs/heads/main
2023-05-23T08:29:19.284487
2023-03-15T05:20:21
2023-03-15T05:20:21
546,174,873
188
9
null
null
null
null
UTF-8
Python
false
false
6,063
py
warmup_fp16_optimizer.py
import copy import logging from collections import defaultdict from itertools import chain from typing import Optional, Union import torch.nn as nn from torch import Tensor from torch.nn.utils import clip_grad from torch.cuda.amp import GradScaler from mmcv.utils import TORCH_VERSION, _BatchNorm, digit_version from m...
e3fca19a02b0cf9a050e99d9523bd548bbc05162
a1d0efb4f7392d4265962faaa81d19be58c8811b
/fmriprep/utils/meepi.py
e73ca4fb242424ddbd998fbdf37d43e02cc374a8
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
nipreps/fmriprep
fef757d29748b611321c43c96385937fa9f44cdd
9bde234d90dd9fc7f0b35af5b091a27b7238c3f4
refs/heads/master
2023-09-03T15:08:22.467939
2023-08-27T17:44:43
2023-08-27T17:45:06
53,175,327
215
99
Apache-2.0
2023-09-07T03:24:26
2016-03-05T00:56:46
HTML
UTF-8
Python
false
false
1,552
py
meepi.py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: # # Copyright 2023 The NiPreps Developers <nipreps@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...
cbc50de96294db9c699f5c5016ed2f208f97a247
cba7444a9b6c7e3f9b557ff81c5ab03a2c8c6d8e
/tests/lib/utils.py
c8fb9b2304d5063e2c31e27f7cf1c3a1422803c4
[ "Apache-2.0" ]
permissive
log2timeline/dftimewolf
e364e0eb213b6a8bb3648598c62fd622cc509755
bcea85b1ce7a0feb2aa28b5be4fc6ae124e8ca3c
refs/heads/main
2023-08-24T09:49:25.971929
2023-08-17T12:30:07
2023-08-17T12:30:07
64,484,320
248
81
Apache-2.0
2023-09-13T07:05:50
2016-07-29T13:54:45
Python
UTF-8
Python
false
false
1,923
py
utils.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the utils module.""" from __future__ import unicode_literals import os import shutil import tarfile import tempfile import unittest import mock import pandas as pd from dftimewolf.lib import utils class UtilsTest(unittest.TestCase): """Tests for the utils m...
cef0bbb1a02c1803e6c6ab2e54769a2009e09723
316b99c6046ff58c8499e0c214e9b81d9c3132b0
/beartype_test/a00_unit/a20_util/hint/a00_pep/test_a00_utilpepget.py
61eb0d0725a41bbc561741220c67dd4e2f591b90
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
beartype/beartype
fb6417b3dc2e08c065f0d907f43411c33d883a7d
0cfd53391eb4de2f8297a4632aa5895b8d82a5b7
refs/heads/main
2023-08-15T13:17:47.095732
2023-08-15T05:25:54
2023-08-15T05:25:54
252,646,465
1,992
51
MIT
2023-07-28T04:13:08
2020-04-03T06:06:22
Python
UTF-8
Python
false
false
8,728
py
test_a00_utilpepget.py
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2023 Beartype authors. # See "LICENSE" for further details. ''' Project-wide **PEP-compliant type hint getter** unit tests. This submodule unit tests the public API of the private :mod:`beartyp...
939a0f86d92cf51402e41b2f6fbdb727c4006c8f
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/_export/db/examples/class_method.py
77c629559d21eb6390c00ce8143d773d16f5710f
[ "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
509
py
class_method.py
import torch from torch._export.db.case import export_case @export_case( example_inputs=(torch.ones(3, 4),), ) class ClassMethod(torch.nn.Module): """ Class methods are inlined during tracing. """ @classmethod def method(cls, x): return x + 1 def __init__(self): super()....
2790c5fea2cbbc3f25ac70fa71174f3aeae58918
ecaba173879f92f24e3c951866fda23c0a4fc426
/tests/providers/aws/s3_test.py
7aae7a84dd8432d6b60cbf0eb9044e3cac7cfe6d
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
1,451
py
s3_test.py
"""Tests for the AWS S3 service.""" import unittest import mock from perfkitbenchmarker import vm_util from perfkitbenchmarker.providers.aws import s3 from tests import pkb_common_test_case class S3Test(pkb_common_test_case.PkbCommonTestCase): def setUp(self): super(S3Test, self).setUp() flag_values = {...
c0a1d80850fac807b15778413f0fef47501b2055
e4af1d5cdf75507db0a2036fe3d3f78e4c88dcfe
/tests/conftest.py
57101c66f20bb6e6a8d157b9ad8d1c069f434015
[ "MIT" ]
permissive
mvantellingen/localshop
596073ecdc569dd9c045d0420df23f06aefe196f
875ae6d056282bb9d33c07ab69d7bae8e02d5d66
refs/heads/master
2023-08-31T15:28:08.623494
2022-07-17T19:39:21
2022-07-17T19:39:21
3,359,149
204
73
MIT
2023-04-21T20:53:22
2012-02-05T12:03:50
Less
UTF-8
Python
false
false
2,407
py
conftest.py
import os import re import pytest import requests_mock from django.contrib.auth.models import AnonymousUser from django.contrib.messages.storage.fallback import FallbackStorage from django.contrib.sessions.backends.db import SessionStore from django.test.client import RequestFactory as BaseRequestFactory from django.t...
ce4b9e38a3b6ff9768ed538a7b2b253de4fffae0
5bd1490ada452d262819b51d240b519b7264dbd8
/Chapter 9/ch9_4.py
a2df4d2ab80dc700072652b40aeb15d6d82d40d3
[]
no_license
PacktPublishing/Mastering-Natural-Language-Processing-with-Python
59feee3a1ac0751f97256af328c6957adaeb7111
61fb2091f8c2d42fa5f14cb02664b0f2ca9127a1
refs/heads/master
2022-11-05T20:29:52.245545
2022-10-28T07:52:43
2022-10-28T07:52:43
60,772,409
142
124
null
null
null
null
UTF-8
Python
false
false
153
py
ch9_4.py
import nltk expr_read = nltk.sem.DrtExpression.fromstring expr4 = expr_read('([],[(([x],[student(x)])->([y],[book(y),read(x,y)]))])') print(expr4.fol())
8cf44fc4495cc7539954c628b9194b3ac3cc547f
01760737a6d1afb2bd303c6dda282f327ec60d27
/tornado/wsgi.py
32641be30ff7a814da06a2cf09c0af88976eb999
[ "Apache-2.0" ]
permissive
tornadoweb/tornado
1ef2c7c6ce38523b2ea7d16bdd02c27407734510
a48d63446afdb384fa0f53ac707dea9d250dc183
refs/heads/master
2023-09-03T22:24:48.246702
2023-09-02T14:03:40
2023-09-02T14:03:40
301,742
16,150
5,335
Apache-2.0
2023-09-02T14:18:29
2009-09-09T04:55:16
Python
UTF-8
Python
false
false
10,817
py
wsgi.py
# # Copyright 2009 Facebook # # 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, s...
1fc8f644078738dc1a2183194e01ac98f16e2b44
f791462fb1286607d16459c1602d133f8d8c8b59
/test/test_flows.py
9e65cffbc5db768954deddc5627bbc0c229a48c6
[ "Apache-2.0" ]
permissive
pyro-ppl/numpyro
b071ed2bd93be41bafc3da8764c9f5617f996d92
ca96eca8e8e1531e71ba559ef7a8ad3b4b68cbc2
refs/heads/master
2023-09-03T15:56:13.252692
2023-08-28T14:32:25
2023-08-28T14:32:25
170,580,540
1,941
219
Apache-2.0
2023-09-04T11:26:11
2019-02-13T21:13:59
Python
UTF-8
Python
false
false
3,262
py
test_flows.py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 from functools import partial import numpy as np from numpy.testing import assert_allclose import pytest from jax import jacfwd, random from jax.example_libraries import stax from numpyro.distributions.flows import ( BlockNeural...
b1159ce96ac1127853ed150801ad2a77bb3b2d01
0b134572e3ac3903ebb44df6d4138cbab9d3327c
/app/tests/archives_tests/test_permissions.py
0525cf6b3627c5f78003afe702ccd16f23acccfb
[ "Apache-2.0" ]
permissive
comic/grand-challenge.org
660de3bafaf8f4560317f1dfd9ae9585ec272896
dac25f93b395974b32ba2a8a5f9e19b84b49e09d
refs/heads/main
2023-09-01T15:57:14.790244
2023-08-31T14:23:04
2023-08-31T14:23:04
4,557,968
135
53
Apache-2.0
2023-09-14T13:41:03
2012-06-05T09:26:39
Python
UTF-8
Python
false
false
3,256
py
test_permissions.py
import pytest from django.conf import settings from django.contrib.auth.models import Group from guardian.shortcuts import get_perms, get_users_with_perms from grandchallenge.archives.models import Archive from grandchallenge.components.models import InterfaceKind from tests.archives_tests.factories import ArchiveFact...
3fd70b0fc36ef0958e7f6196943efc46d0def2c5
4674b8088ffdf55905d44995f08a0792a3e4cd5c
/tests/hwsim/test_p2p_persistent.py
673fda3dd20285b77e6ef362c642df9f7eb63f34
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
vanhoefm/krackattacks-scripts
41daca791638a92aa4cfa68a582e46119037560e
4b78669686f74efe664c6543b1b5b1616b22f902
refs/heads/research
2022-10-29T20:21:11.512335
2022-10-16T18:44:41
2022-10-16T18:44:41
107,408,514
2,184
577
NOASSERTION
2021-07-06T12:43:49
2017-10-18T12:58:08
C
UTF-8
Python
false
false
29,199
py
test_p2p_persistent.py
# P2P persistent group test cases # Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import logging logger = logging.getLogger() import re import time import hwsim_utils fro...
c4af4e6f2e0818472233e2f5f6a02fa01d196cf6
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/comware/show_interface.py
65433a0c1a4e90f4f2d8aabe69b0af30def6ccf8
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
37,199
py
show_interface.py
''' Author: Renato Almeida de Oliveira Contact: renato.almeida.oliveira@gmail.com ''' from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Or, Optional from genie.libs.parser.utils.common import Common from genie import parsergen from genie.libs.parser.iosxe.show_interface import...
a362ed6562241f8348eb7f9ca5fcf3d36031ae54
c675ff5fcd3b13fa39352bb8cac11d75262659a8
/tests/test_observable/test_groupby.py
767ef729eb6b6f04d761af1ef15d8226ec3add5c
[ "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
21,576
py
test_groupby.py
import unittest import reactivex from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ...
3295c604ec4ff7e4996651b2c438fd2f6d209292
cdfb7effe200e064578ce4670c3f9cdf5881cba1
/preprocess.py
8fc840805747c563c48e2f01587d1e8476225fa1
[]
no_license
aub-mind/arabert
964c102b2fd887effc9d0ab018b38637d717e353
6fcebaebc97844d4b498900daa6314257f22c042
refs/heads/master
2022-10-29T21:37:30.202662
2022-10-17T00:26:39
2022-10-17T00:26:39
242,163,521
531
134
null
2022-10-17T00:26:40
2020-02-21T14:54:35
Python
UTF-8
Python
false
false
28,826
py
preprocess.py
import html import logging import re from typing import List import pyarabic.araby as araby ACCEPTED_MODELS = [ "bert-base-arabertv01", "bert-base-arabert", "bert-base-arabertv02", "bert-base-arabertv2", "bert-base-arabertv02-twitter", "bert-large-arabertv02", "bert-large-arabertv2", "...
1ee5be576b1bcdd67f8df9ebf16b4c38711f4fdd
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/model/__init__.py
552f30e13d69893bb4aa6863f9cd229a3d02d9a8
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
15,113
py
__init__.py
# coding: utf-8 from __future__ import absolute_import # import models into model package from huaweicloudsdkdns.v2.model.alias_target import AliasTarget from huaweicloudsdkdns.v2.model.associate_health_check_req import AssociateHealthCheckReq from huaweicloudsdkdns.v2.model.associate_health_check_request import Asso...
fc045d0e57bb7f2dae55ae07d0497716bb7ca171
27b86f422246a78704e0e84983b2630533a47db6
/examples/encode_decode_dxf_as_base64.py
e1f4e8425d8ef5ca5c9ec0f72e32dc260866629d
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
1,247
py
encode_decode_dxf_as_base64.py
# Copyright (c) 2020, Joseph Flack # License: MIT License import ezdxf from ezdxf.document import Drawing # ------------------------------------------------------------------------------ # encode and decode DXF documents as base64 data for upload and download in web # applications # -----------------------------------...
e8b7d7ae30651207bf8df7c2212942a4767101ce
85ccd32aa73eecf274a937f1fc3b6f4d484b77da
/test cases/unit/48 testsetup default/envcheck.py
34ad76d4e5ce8da455cafc9102fdf45e24d1606c
[ "Apache-2.0" ]
permissive
mesonbuild/meson
48321cf4235dfcc0194fed90ff43a57367592bf7
cf5adf0c646474f0259d123fad60ca5ed38ec891
refs/heads/master
2023-09-01T05:58:50.807952
2023-03-17T20:27:37
2023-08-31T11:52:41
19,784,232
5,122
1,848
Apache-2.0
2023-09-14T15:47:23
2014-05-14T15:08:16
Python
UTF-8
Python
false
false
240
py
envcheck.py
#!/usr/bin/env python3 import os assert 'ENV_A' in os.environ assert 'ENV_B' in os.environ assert 'ENV_C' in os.environ print('ENV_A is', os.environ['ENV_A']) print('ENV_B is', os.environ['ENV_B']) print('ENV_C is', os.environ['ENV_C'])
fcc43fd899805dc5fbfcd3a86a7a7aacafd2d1c8
b4cbdad3d0efbe9899fbaebd31765e9f6b704cb3
/sdxl_train_control_net_lllite.py
09cf164381a58b05a3e33518691a01bcbe7f4d08
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
bmaltais/kohya_ss
aff3100961a38a25ee7a037a708232ce9e6998d9
2853f4cec850557e83882a4072cfe416cb9c57d7
refs/heads/master
2023-09-03T16:59:12.189406
2023-08-23T11:15:37
2023-08-23T11:15:37
559,584,476
5,495
711
Apache-2.0
2023-09-08T12:24:04
2022-10-30T15:15:32
Python
UTF-8
Python
false
false
26,288
py
sdxl_train_control_net_lllite.py
import argparse import gc import json import math import os import random import time from multiprocessing import Value from types import SimpleNamespace import toml from tqdm import tqdm import torch from torch.nn.parallel import DistributedDataParallel as DDP from accelerate.utils import set_seed from diffusers impo...
da6175e3331848d9261d0bb9246509c007e6250a
26bbcfdb811f7df13f7b5a95ba551da7adac4e9b
/src/certfuzz/fuzzers/fuzzer_base.py
8ff16d17ddd68edec8d2e1b26e06d8307d050580
[ "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
7,578
py
fuzzer_base.py
''' Created on Feb 3, 2012 @organization: cert.org ''' import StringIO import collections import logging import os import zipfile from certfuzz.fuzztools.filetools import find_or_create_dir, write_file from certfuzz.helpers.misc import log_object MAXDEPTH = 3 SLEEPTIMER = 0.5 BACKOFF_FACTOR = 2 logger = logging.ge...
85c0bffba822d03a405327519f28121b57f2ce3e
c268dcf432f3b7171be6eb307aafbe1bd173285a
/reddit2telegram/channels/lyricalquotes/app.py
40cd4d87d63b5bfaa960c885adbc423c3ba68ffe
[ "MIT" ]
permissive
Fillll/reddit2telegram
a7162da2cc08c81bcc8078ea4160d4ee07461fee
5d8ee3097e716734d55a72f5a16ce3d7467e2ed7
refs/heads/master
2023-08-09T10:34:16.163262
2023-07-30T18:36:19
2023-07-30T18:36:19
67,726,018
258
205
MIT
2023-09-07T02:36:36
2016-09-08T17:39:46
Python
UTF-8
Python
false
false
208
py
app.py
#encoding:utf-8 subreddit = 'quotes' t_channel = '@lyricalquotes' def send_post(submission, r2t): return r2t.send_simple(submission, text='{title}', disable_web_page_preview=True )
fa4ac2ea048fb5dc9c1d3727187676f5f65b2f5f
091155389673325cfe8b0da3dc64c113f1ded707
/cvpods/evaluation/registry.py
ef91cb2021d21c3d02db463fadc3bfb669f2b7d2
[ "Apache-2.0" ]
permissive
Megvii-BaseDetection/cvpods
7b7c808257b757d7f94d520ea03b370105fb05eb
2deea5dc659371318c8a570c644201d913a83027
refs/heads/master
2023-03-22T00:26:06.248877
2023-03-10T10:05:26
2023-03-10T10:05:26
318,124,806
659
91
Apache-2.0
2023-03-10T10:05:28
2020-12-03T08:26:57
Python
UTF-8
Python
false
false
172
py
registry.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (C) 2019-2021 Megvii Inc. All rights reserved. from cvpods.utils import Registry EVALUATOR = Registry("evaluator")
898ca2580c26ffce6ccd0164c1e9a90478f79731
0a616a3ec554abb13e0cd283419a5355e3e23052
/nltk/misc/sort.py
4e5ef9f32ac9efed5f9179c02b42cb77cea6ea5f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "CC-BY-NC-ND-3.0", "LicenseRef-scancode-proprietary-license" ]
permissive
nltk/nltk
79487b84bb96aab4bfc2acde3e12ce34a42f5c73
582e6e35f0e6c984b44ec49dcb8846d9c011d0a8
refs/heads/develop
2023-09-05T04:05:54.002721
2023-06-02T02:45:47
2023-06-02T02:45:47
299,862
11,860
3,171
Apache-2.0
2023-08-02T03:12:33
2009-09-07T10:53:58
Python
UTF-8
Python
false
false
4,371
py
sort.py
# Natural Language Toolkit: List Sorting # # Copyright (C) 2001-2023 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # URL: <https://www.nltk.org/> # For license information, see LICENSE.TXT """ This module provides a variety of list sorting algorithms, to illustrate the many different algorithms (recipes) ...
41d9c4b0579c7f72155cb2451e1432cb691263d5
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/dataflow/stream/job/monitor_job_strategy.py
7c759eecb65cbe4f0a9d3ab75f566459f15c2494
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
20,935
py
monitor_job_strategy.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
3fe1f21bdce0d726fb80e4159482eab64779a1bf
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-OSLog/PyObjCTest/test_entry.py
3bf66525d851f5dcc7bc44f3903478d5cbb35793
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
1,506
py
test_entry.py
import OSLog import objc from PyObjCTools.TestSupport import TestCase, min_sdk_level class TestEntryHelper(OSLog.NSObject): def activityIdentifier(self): return 1 def processIdentifier(self): return 1 def threadIdentifier(self): return 1 class TestEntry(TestCase): def test_...