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
a17a5d0ec7210603eb8cc0fe123717bd12c1db4f
811f4cdb25e26f3b27640aaa2e2bca93e660d2d7
/src/anomalib/models/reverse_distillation/lightning_model.py
5489daab5b556a183c4b16a0a73773c3db8ca567
[ "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0", "Apache-2.0", "MIT" ]
permissive
openvinotoolkit/anomalib
4467dfc392398845e816387267cdf979ff76fe15
4abfa93dcfcb98771bc768b334c929ff9a02ce8b
refs/heads/main
2023-09-03T16:49:05.019269
2023-08-28T14:22:19
2023-08-28T14:22:19
423,775,360
2,325
454
Apache-2.0
2023-09-14T11:21:33
2021-11-02T09:11:38
Python
UTF-8
Python
false
false
5,411
py
lightning_model.py
"""Anomaly Detection via Reverse Distillation from One-Class Embedding. https://arxiv.org/abs/2201.10703v2 """ # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations from omegaconf import DictConfig, ListConfig from pytorch_lightning.callbacks import EarlySto...
c61b4e7edec60800e7f19e6ed9b8b3cdc798d8eb
182bbadb0ee7f59f1abd154d06484e555a30c6d8
/api/tests/integration/tests/formats/smiles_x_smiles_conv.py
b9d1db5c61281f234102f98ffb4439494b6b915a
[ "Apache-2.0" ]
permissive
epam/Indigo
08559861adf474122366b6e2e499ed3aa56272d1
8e473e69f393c3a57ff75b7728999c5fb4cbf1a3
refs/heads/master
2023-09-02T10:14:46.843829
2023-08-25T08:39:24
2023-08-25T08:39:24
37,536,320
265
106
Apache-2.0
2023-09-14T17:34:00
2015-06-16T14:45:56
C++
UTF-8
Python
false
false
4,085
py
smiles_x_smiles_conv.py
import errno import os import sys sys.path.append( os.path.normpath( os.path.join(os.path.abspath(__file__), "..", "..", "..", "common") ) ) from env_indigo import * # noqa if not os.path.exists(joinPathPy("out", __file__)): try: os.makedirs(joinPathPy("out", __file__)) except OSError...
d503dc6e43ef35a4491cdbb0dd0ab84f42fed98f
c9ff14ff176600169b6e9f6490ab32f5c3af60e0
/jcvi/projects/pistachio.py
83e1ca934720820589be0176108292311b5cbefb
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
tanghaibao/jcvi
c7a070692d53784a34378e19e435cb9a86d2cd2e
695bd2eee98b14118b54fc37e38cd0222ce6a5e9
refs/heads/main
2023-09-01T01:22:04.353148
2023-08-30T01:59:11
2023-08-30T01:59:11
1,130,393
641
193
BSD-2-Clause
2023-09-01T03:17:24
2010-12-01T23:18:02
Python
UTF-8
Python
false
false
2,367
py
pistachio.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Functions related to processing of the pistachio genome. """ import sys from jcvi.apps.base import OptionParser, ActionDispatcher def main(): actions = (("agp", "convert from the table file to agp format"),) p = ActionDispatcher(actions) p.dispatch(glob...
231019cb7926cf98a871e90da107d83bd3c9dbe5
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/resnet3d/eval_onnx.py
e879324762838633bfa4208397b7abb9b1401cb1
[ "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
5,485
py
eval_onnx.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0fae8cbd76f6f3df964a4b902c5da9806bb9f57b
7ba2c56d8cfda999972d19b254a36e8d1a14e1c2
/2020-05-09-SpamAndFlags/ots/code.py
b98962188a201b1048772b4d504e016cfca64788
[]
no_license
TFNS/writeups
def1c9cb03d9d82b9ba08ab48fd21dbdf7d8f4fc
898564c9ec688f5b454f3c811a80a9c3f5efd7c5
refs/heads/master
2023-07-08T19:30:18.393665
2023-06-27T00:17:30
2023-07-04T20:20:25
238,048,794
110
21
null
2023-07-04T20:20:26
2020-02-03T19:53:01
Python
UTF-8
Python
false
false
1,203
py
code.py
class OTS: def __init__(self): self.key_len = 128 self.priv_key = secrets.token_bytes(16*self.key_len) self.pub_key = b''.join([self.hash_iter(self.priv_key[16*i:16*(i+1)], 255) for i in range(self.key_len)]).hex() def hash_iter(self, msg, n): assert len(msg) == 16 for i...
b79f276c9e3c88196fd851a0ef87f5c4bcbab177
97b5bdc26c0f06e3224363755c228cdf6844da1f
/custom_components/wiser/cover.py
ebd7472a5c7329c5699482f0bd66cb7e804f22bf
[ "MIT" ]
permissive
asantaga/wiserHomeAssistantPlatform
7ee1fc2ac4630967849fce127e24c31cd1b81fad
c6687b17bb2e0e630ba0f778964a7cb6b8a8a8c7
refs/heads/master
2023-08-31T23:35:09.790710
2023-08-26T17:52:24
2023-08-26T17:52:24
159,080,189
192
44
MIT
2023-08-26T17:52:25
2018-11-25T22:22:07
JavaScript
UTF-8
Python
false
false
7,325
py
cover.py
""" Cover Platform Device for Wiser. https://github.com/asantaga/wiserHomeAssistantPlatform Angelosantagata@gmail.com """ import asyncio from homeassistant.components.cover import ( ATTR_POSITION, CoverEntity, CoverEntityFeature, ) from homeassistant.core import callback from homeassistant.helpers.updat...
f993880501479c9c367ca3ce21217ddb0daa1fb5
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/modify-graph-edge-weights.py
65dbebcc05c1d765e9e5c430cf7e287c3d6cc86c
[ "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
1,621
py
modify-graph-edge-weights.py
# Time: O((|E| + |V|) * log|V|) = O(|E| * log|V|) by using binary heap, # if we can further to use Fibonacci heap, it would be O(|E| + |V| * log|V|) # Space: O(|E| + |V|) = O(|E|) import heapq # dijkstra's algorithm class Solution(object): def modifiedGraphEdges(self, n, edges, source, destination, targe...
cfcfcd6215ed85af010f90c81fe5f5e5a073dea2
3395a234e7c80d011607e79c49cd48bf516f256b
/dependencies/jedi/third_party/typeshed/third_party/2and3/flask/globals.pyi
8ce1caf1653afc2c2201d185692783813bb455d1
[ "MIT", "Apache-2.0" ]
permissive
srusskih/SublimeJEDI
67329b72e184bc9584843968dcc534a002c797a1
95c185d778425c04536d53517b0e3fe6dedf8e59
refs/heads/master
2023-08-24T11:30:37.801834
2022-08-30T09:04:17
2022-08-30T09:04:17
6,241,108
669
125
MIT
2022-08-30T09:04:18
2012-10-16T08:23:57
Python
UTF-8
Python
false
false
438
pyi
globals.pyi
# Stubs for flask.globals (Python 3.6) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from .app import Flask from .wrappers import Request from typing import Any from werkzeug.local import LocalStack class _FlaskLocalProxy(Flask): def _get_current_object(self) -> Flask: ... _reques...
d241d3599b300a7fd71322d2a7713437eca3cf09
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/android_minimum_operating_system.py
824a232c8abbbbae851e0be7e6a4f04879d5412c
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
7,402
py
android_minimum_operating_system.py
from __future__ import annotations from dataclasses import dataclass, field from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton from typing import Any, Callable, Dict, Lis...
b98b3a45d969de68b67fd70463b39834a7ece7fb
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/ash/host/DEPS
dba3bec9afa7c1c34af09c726785e9e47a84e13d
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
338
DEPS
include_rules = [ "-ash", "+ash/host", "+ash/ash_export.h", "+ash/constants", ] specific_include_rules = { "ash_window_tree_host_platform_unittest.cc" : [ "+ash/test/ash_test_base.h", ], "ash_window_tree_host_unified_unittest.cc" : [ "+ash/display/mirror_window_test_api.h", "+ash/test/ash_tes...
7acb95de82f532682b8cbaa69df5321bc8f63551
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/generic_views/test_base.py
add485245a871b75a9a580664826c163f9996b51
[ "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
22,529
py
test_base.py
import time from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponse from django.test import RequestFactory, SimpleTestCase, override_settings from django.test.utils import require_jinja2 from django.urls import resolve from django.views.generic import RedirectView, TemplateView, Vi...
3ea9345ecee6a0405d8b88f4e4a9068f159aee75
61b95ee2aefbcfbd6c4abf9511d976d0b9d0e100
/faker/providers/lorem/pl_PL/__init__.py
41dd8865afa77a7487f30db95d0a40e81e3801f8
[ "MIT" ]
permissive
joke2k/faker
fed7472580ced2bce326fe4ea0c3d1c810853d5e
33e36b1b6cc9c6f039fe387988853771bab60624
refs/heads/master
2023-09-04T00:43:33.599705
2023-08-31T16:15:04
2023-08-31T16:15:04
6,662,075
14,544
2,215
MIT
2023-09-11T16:06:14
2012-11-12T23:00:09
Python
UTF-8
Python
false
false
38,494
py
__init__.py
from typing import Dict from .. import Provider as LoremProvider class Provider(LoremProvider): """Implement lorem provider for ``pl_PL`` locale. Source: https://pl.wiktionary.org/wiki/Indeks%3APolski_-_Najpopularniejsze_s%C5%82owa_1-2000 """ word_list = ( "w", "z", "być", ...
2bfb3856e2c27208008da619485e38b676313449
4b64dbbcd51ac0ff67c1ef9e56383f92630f9dc0
/smr/test/integrated/test_test.py
ab559cbd10399d99539e7640cc33c2583998f4a6
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
naver/nbase-arc
e181a57344566a042014b67c9a054c0683c87fad
5cc17be3f423e7ae897ad2c2939278b2584487d8
refs/heads/master
2023-08-24T15:28:13.223923
2023-04-11T02:48:42
2023-04-11T02:48:42
46,257,023
185
67
Apache-2.0
2023-04-11T02:48:43
2015-11-16T06:47:07
C
UTF-8
Python
false
false
6,775
py
test_test.py
# # Copyright 2015 Naver Corp. # # 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...
a9bb8fc02d430a1f7146cc3280d6c1e09a492eb0
21b1ebd3c489b99d834f08c63387b045116a01ed
/tests/unit/lib/test_elasticbeanstalk.py
3c771043d2d79e54f69586abf842165361ef68d6
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
aws/aws-elastic-beanstalk-cli
8d1f34fbec3e89164d8b607666c0800c28e334f7
252101641a7b6acb5de17fafd6adf8b96418426f
refs/heads/master
2023-09-03T15:04:58.036979
2023-08-31T17:26:43
2023-08-31T17:26:43
175,470,423
149
84
Apache-2.0
2023-09-12T14:53:42
2019-03-13T17:42:43
Python
UTF-8
Python
false
false
67,934
py
test_elasticbeanstalk.py
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
b705c2a687cade4f4d552192ec4c00f275ef5cc0
e7f2a8c466c14b9821e59740ed0407107e1254a4
/rasa/shared/importers/rasa.py
53ba35b5ee80e865a79bff460c315d21ac3f6b64
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "MIT" ]
permissive
RasaHQ/rasa
4a31134308a9a4d8824fe7faef02526accdd0f19
50857610bdf0c26dc61f3203a6cbb4bcf193768c
refs/heads/main
2023-08-28T01:53:56.981600
2023-08-25T10:20:49
2023-08-25T10:20:49
70,908,208
13,167
3,739
Apache-2.0
2023-09-14T09:54:40
2016-10-14T12:27:49
Python
UTF-8
Python
false
false
3,388
py
rasa.py
import logging import os from typing import Dict, List, Optional, Text, Union import rasa.shared.data import rasa.shared.utils.common import rasa.shared.utils.io from rasa.shared.core.training_data.structures import StoryGraph from rasa.shared.importers import utils from rasa.shared.importers.importer import TrainingD...
0836644cc9cc786f39de4ff25645ba60fa8feb48
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/uniform.py
2eb1d98f35161c6fcd7a14036861b34501bc372d
[ "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", "HPND",...
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
2,784
py
uniform.py
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- # pylint: disable=unused-argument from marshmallow import ValidationError, fields, post_load, pre_dump from azure.ai.ml._schema._sweep._c...
c3f030f6fa179d017e345138950819b1ee7ebe41
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Learning_TF_Hope/06__word_embeddings_and_rnns/GRU_pretrained_GloVe.py
9b2ecb0cd35688e5d7ef7e7a5d185ca2fc249759
[ "MIT" ]
permissive
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
8,578
py
GRU_pretrained_GloVe.py
# -*- coding: utf-8 -*- """ Created on Wed Mar 1 12:18:27 2017 @author: tomhope """ import zipfile import numpy as np import tensorflow as tf path_to_glove = "c:\\tmp\\data\\glove.840B.300d.zip" PRE_TRAINED = True GLOVE_SIZE = 300 batch_size=128 embedding_dimension = 64 num_classes = 2 hidden_layer_size = 32 time...
be9cfacfb7b8dd4048dc708ce101c2478975bd0d
97e78e8f9b1510eae91f00ee6abb06b235f0f5dc
/experiments/lidc/_init_paths.py
0e03a6c9a89fb78c73ef2655fed5f2485959fdb7
[ "Apache-2.0" ]
permissive
M3DV/ACSConv
7fc5c01751b005be8cb39dea39258457c7cd3cb4
95dc860a77e309f010a3d8be1f675e77c7dfeda4
refs/heads/master
2023-08-16T23:48:37.571616
2023-08-08T01:39:38
2023-08-08T01:39:38
223,711,776
156
22
Apache-2.0
2023-08-08T01:39:39
2019-11-24T08:06:30
Python
UTF-8
Python
false
false
277
py
_init_paths.py
""" setup python path """ import sys import os def add_path(path): if path not in sys.path: sys.path.insert(-1, path) add_path(os.path.join(sys.path[0], '../')) add_path(os.path.join(sys.path[0], '../../')) print("add code root path (with `mylib`, 'acsconv').")
e8a08eb88677c06e36afddb540c7770be29338bc
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/network/v20190901/_inputs.py
dde1db84bd3176af8ccd9a3f33de82627c6bf13d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
3,684
py
_inputs.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** 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 from ... import _utilities __all__ ...
c183746f7f8f0004a2c17299cc8c151958555853
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/TrackingTools/GeomPropagators/python/BeamHaloPropagatorOpposite_cfi.py
e68d6a07b90d5d910d84647acf53336191e7b8af
[ "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
393
py
BeamHaloPropagatorOpposite_cfi.py
import FWCore.ParameterSet.Config as cms BeamHaloPropagatorOpposite = cms.ESProducer("BeamHaloPropagatorESProducer", ComponentName = cms.string('BeamHaloPropagatorOpposite'), CrossingTrackerPropagator = cms.string('BeamHaloSHPropagatorOpposite'), PropagationDirection = cms.string('oppositeToMomentum'), ...
036f5fca6870f6365c8b49013f6a30d1c36ffd40
8b57ca58722bdd3b9335b10ead2ce578d67a636f
/test/controllers_juju/test_controllers_clouds_tui.py
c278f35b51a5be3cc68c47ff7c72ce47d006a0db
[ "MIT" ]
permissive
conjure-up/conjure-up
5257d1937961c13babb83cdb396701ff69aabcc4
d2bf8ab8e71ff01321d0e691a8d3e3833a047678
refs/heads/master
2023-09-03T11:56:43.476146
2021-04-12T14:27:43
2021-04-12T14:27:43
45,847,491
473
78
MIT
2021-04-12T14:27:43
2015-11-09T15:36:18
Python
UTF-8
Python
false
false
4,115
py
test_controllers_clouds_tui.py
#!/usr/bin/env python # # tests controllers/clouds/tui.py # # Copyright 2016 Canonical, Ltd. import unittest from unittest.mock import MagicMock, call, patch from conjureup import events from conjureup.controllers.juju.clouds.tui import CloudsController class CloudsTUIRenderTestCase(unittest.TestCase): def se...
6b84d7cc4170fe8c090428de8d5a91c9a53a3eec
152b74ed7d60d75a9d70f6637c107fff9b064ff9
/Chapter08/Testing Adversarial-Robustness of Neural Networks/abs_models/nets.py
84c17cb1ad43860f2b063adaa4a488e6f37ecb3b
[ "MIT" ]
permissive
PacktPublishing/Machine-Learning-for-Cybersecurity-Cookbook
1d7a50fb79b5da8c411eda9dc9cface4d0f78125
19b9757020cbcb09d9bb4249605fbb9c7322d92b
refs/heads/master
2023-05-12T08:29:13.569598
2023-01-18T10:19:07
2023-01-18T10:19:07
222,411,828
250
164
MIT
2023-05-01T20:11:44
2019-11-18T09:33:53
Jupyter Notebook
UTF-8
Python
false
false
10,406
py
nets.py
import torch import numpy as np from torch import nn from abs_models import utils as u class Architectures(nn.Module): def __init__(self, input_size=None): super(Architectures, self).__init__() self.c = input_size self.iters = 0 def forward(self, input): for module in self._m...
8d4c4477f989207784ba5a5a010557a84160fed8
b6496c1fd252fd71119ef09e78458547a9fc2d28
/src/webargs/multidictproxy.py
a2771781adad4d9c3432a0a7b10b05a7ddb8458e
[ "MIT", "BSD-3-Clause" ]
permissive
marshmallow-code/webargs
65a1488758d3b7cd155eeacfafb95e666c8110d6
fafa9414ae9db0af8e1714c022ad228ceb6f1102
refs/heads/dev
2023-08-29T14:18:33.276655
2023-08-29T01:17:01
2023-08-29T06:52:40
16,899,445
673
86
MIT
2023-09-14T01:11:41
2014-02-17T02:16:12
Python
UTF-8
Python
false
false
3,080
py
multidictproxy.py
from collections.abc import Mapping import typing import marshmallow as ma class MultiDictProxy(Mapping): """ A proxy object which wraps multidict types along with a matching schema Whenever a value is looked up, it is checked against the schema to see if there is a matching field where `is_multiple`...
846ba0f3cc70d5d9bf6f86975d59340f706e04bc
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/golem.py
c33d950191a0edb0cec75fbfabc4df2a69a55ecb
[ "Unlicense", "GPL-2.0-or-later", "MPL-2.0", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.1-only", "BSD-2-Clause", "MIT" ]
permissive
yt-dlp/yt-dlp
be040bde10cc40258c879c75ab30215686352824
d3d81cc98f554d0adb87d24bfd6fabaaa803944d
refs/heads/master
2023-09-05T21:15:21.050538
2023-09-05T20:35:23
2023-09-05T20:35:23
307,260,205
52,742
5,376
Unlicense
2023-09-14T05:22:08
2020-10-26T04:22:55
Python
UTF-8
Python
false
false
2,116
py
golem.py
from .common import InfoExtractor from ..compat import ( compat_str, compat_urlparse, ) from ..utils import ( determine_ext, ) class GolemIE(InfoExtractor): _VALID_URL = r'^https?://video\.golem\.de/.+?/(?P<id>.+?)/' _TEST = { 'url': 'http://video.golem.de/handy/14095/iphone-6-und-6-plus-t...
ae107f6258d1fbc1faae480eb9f8a68a776cbed1
50177ddaa15d7a6c04d5669130f43fec383bf7f4
/tests/utils.py
744443dad8d3fd5ea7f3fc909faf3f2cd3759269
[ "Apache-2.0" ]
permissive
Hipo/drf-extra-fields
a1b561ec3c0f7ae9ab5e9c52ef016ac5c163cc5c
8c18a7542c8a38fe3dccd1874a74a38410aa3a7f
refs/heads/master
2023-08-21T18:05:30.125318
2023-08-08T18:13:21
2023-08-08T18:13:21
21,973,580
635
123
Apache-2.0
2023-08-08T18:13:22
2014-07-18T08:35:45
Python
UTF-8
Python
false
false
1,545
py
utils.py
# Copied from django-rest-framework/tests/utils.py from django.core.exceptions import ObjectDoesNotExist class MockObject: def __init__(self, **kwargs): self._kwargs = kwargs for key, val in kwargs.items(): setattr(self, key, val) def __str__(self): kwargs_str = ', '.join(...
c7c3a90173aa9cd7ca05bc153897fd0c896a61c5
154d2907648416fcecefed51deac0f5d021edabb
/tests/file/conftest.py
836025ee7673430da71d4ac83dc1174339c5b5d2
[ "Apache-2.0" ]
permissive
mopidy/mopidy
dbeb376d9c8f85fc0008195a963877b5e0192e18
3e8c978d6ffe22fb581a0fec7a47c489ae9bafd4
refs/heads/develop
2023-08-30T02:09:54.224844
2023-08-21T16:29:02
2023-08-21T16:29:02
447,036
7,271
783
Apache-2.0
2023-08-21T16:29:03
2009-12-23T14:25:36
Python
UTF-8
Python
false
false
702
py
conftest.py
from unittest import mock import pytest from mopidy.file import backend from tests import path_to_data_dir @pytest.fixture() def media_dirs(): return [str(path_to_data_dir(""))] @pytest.fixture() def follow_symlinks(): return False @pytest.fixture() def config(media_dirs, follow_symlinks): return { ...
61eef177692a5ca54e9c76a67a1e09028db9a841
d668209e9951d249020765c011a836f193004c01
/tools/pnnx/tests/test_torch_gt.py
b88c7dec44caf719e9be414694d70cb5eb574239
[ "BSD-3-Clause", "Zlib", "BSD-2-Clause" ]
permissive
Tencent/ncnn
d8371746c00439304c279041647362a723330a79
14b000d2b739bd0f169a9ccfeb042da06fa0a84a
refs/heads/master
2023-08-31T14:04:36.635201
2023-08-31T04:19:23
2023-08-31T04:19:23
95,879,426
18,818
4,491
NOASSERTION
2023-09-14T15:44:56
2017-06-30T10:55:37
C++
UTF-8
Python
false
false
1,681
py
test_torch_gt.py
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the...
ad6380fa3ddc96af23f1938bc6b644d1d645edb7
9c87c7ddaf5011cc475ec6f4343cc1c7ff290b33
/tests/example/test_regular_examples.py
effc47a6dd0a5031a96601a6a43e62cdd6501883
[ "MIT" ]
permissive
earthobservations/wetterdienst
c74d80bbb4ce178f3e42936ca7364f9bee66d83b
448fbd56b67978cf8f4215dedc02a11b89f66b01
refs/heads/main
2023-08-08T12:02:45.115090
2023-07-30T16:13:41
2023-07-30T16:37:09
160,953,150
283
42
MIT
2023-09-10T22:36:33
2018-12-08T15:39:42
Python
UTF-8
Python
false
false
2,025
py
test_regular_examples.py
# -*- coding: utf-8 -*- # Copyright (C) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. from pathlib import Path import pytest from tests.conftest import ENSURE_ECCODES_PDBUFR, IS_CI, IS_LINUX HERE = Path(__name__).parent.absolute() EXAMPLES_DIR = HERE.parent....
1a0f26cb911d8b8c40cce4943f5137597a7a47a4
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/longest-cycle-in-a-graph.py
3ed4024bf384b08ce57149651485e38dc4f01f71
[ "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
654
py
longest-cycle-in-a-graph.py
# Time: O(n) # Space: O(n) # graph class Solution(object): def longestCycle(self, edges): """ :type edges: List[int] :rtype: int """ result = -1 lookup = [-1]*len(edges) idx = 0 for i in xrange(len(edges)): if lookup[i] != -1: ...
3151912b0e097323e0c4c4403353b0e445ea3248
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/array-of-doubled-pairs.py
cb77733a9ff80c53c3b37e3681a5f3fca463267a
[ "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
392
py
array-of-doubled-pairs.py
# Time: O(n + klogk) # Space: O(k) import collections class Solution(object): def canReorderDoubled(self, A): """ :type A: List[int] :rtype: bool """ count = collections.Counter(A) for x in sorted(count, key=abs): if count[x] > count[2*x]: ...
d9fa7b90bbef844ba12c15794e9c419ff64b28e1
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/nemo/collections/nlp/losses/sgd_loss.py
0a109a609d5c403ec7b5d561dda05059c0af88d1
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
10,084
py
sgd_loss.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # Copyright 2019 The Google Research 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/lic...
6049469e94789a0a2bfae6444babc7f46535cbff
7eb606a7957e5500f163c93dc4b19418cf9cf335
/ludwig/features/vector_feature.py
b3ebf2e7649074e2ad38893595f8c43c039d94c4
[ "Apache-2.0", "MIT" ]
permissive
ludwig-ai/ludwig
024f74da86567a57ec8e30efcb4600f0c52333a1
e1d023e41606c9b76b35e1d231c2f13368a30eca
refs/heads/master
2023-09-03T08:07:32.978301
2023-09-01T19:39:32
2023-09-01T19:39:32
163,346,054
2,567
285
Apache-2.0
2023-09-14T20:34:52
2018-12-27T23:58:12
Python
UTF-8
Python
false
false
8,929
py
vector_feature.py
#! /usr/bin/env python # Copyright (c) 2019 Uber 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 a...
1d108f8c1ef76afe05f9c61147aec0c643692eea
8a51a96f61699f0318315ccc89cef39f6866f2b5
/src/tools/rcgen
0c84772163cd0d092733580e51958bb0a8a28970
[ "PostgreSQL" ]
permissive
postgres/postgres
979febf2b41c00090d1256228f768f33e7ef3b6f
b5934bfd6071fed3a38cea0cfaa93afda63d9c0c
refs/heads/master
2023-08-31T00:10:01.373472
2023-08-30T23:07:48
2023-08-30T23:07:48
927,442
13,691
4,807
NOASSERTION
2023-09-09T13:59:15
2010-09-21T11:35:45
C
UTF-8
Python
false
false
3,431
rcgen
#!/usr/bin/env python3 # Helper for building resource files when building for windows. Always # generates a .rc from the input .rc file. When building with msvc we # additionally generate a .res file with 'rc', when building with gcc, we use # windres to directly generate a .o. Additionally we generate basic # depend...
ac4c1451173567abf61af005110fb77f7d7299e3
c26304a54824faa7c1b34bb7882ee7a335a8e7fb
/flink-python/pyflink/shell.py
ce81574c2194885b328967ed235bfb17824b3733
[ "BSD-3-Clause", "OFL-1.1", "ISC", "MIT", "Apache-2.0" ]
permissive
apache/flink
905e0709de6389fc9212a7c48a82669706c70b4a
fbef3c22757a2352145599487beb84e02aaeb389
refs/heads/master
2023-09-04T08:11:07.253750
2023-09-04T01:33:25
2023-09-04T01:33:25
20,587,599
23,573
14,781
Apache-2.0
2023-09-14T21:49:04
2014-06-07T07:00:10
Java
UTF-8
Python
false
false
8,093
py
shell.py
#!/usr/bin/env python ################################################################################ # 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. ...
10918e1927f0ef53ff7a40a7e0d784ef1e850624
dee9d197c6adfbdb49cd9e33bd3f8614b7d98f06
/mt-bluebert/mt_bluebert/blue_exp_def.py
02fd843527942c6acfdd3e9a85f0424e79870ebb
[ "LicenseRef-scancode-us-govt-public-domain" ]
permissive
ncbi-nlp/bluebert
2ccd72a19283f8a206e30426375322ec6831398d
f4b8af9db9f8c4503d62d0c205de7256f38c5890
refs/heads/master
2023-05-30T11:13:51.757657
2022-04-11T01:44:30
2022-04-11T01:44:30
190,591,634
422
73
NOASSERTION
2023-03-25T01:21:44
2019-06-06T14:02:54
Python
UTF-8
Python
false
false
2,287
py
blue_exp_def.py
from typing import Dict, Set import yaml from mt_bluebert.data_utils.task_def import TaskType, DataFormat, EncoderModelType from mt_bluebert.data_utils.vocab import Vocabulary from mt_bluebert.blue_metrics import BlueMetric class BlueTaskDefs: def __init__(self, task_def_path): with open(task_def_path) ...
92f7cdcf98b48cfcacb626e16a1d2cbeba9e2453
99bdb3251fecee538e0630f15f6574054dfc1468
/bsp/stm32/libraries/STM32L4xx_HAL/SConscript
ebc7c4a01c87c2da154cbcea746a7f4c54f0fdda
[ "Apache-2.0", "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "BSD-3-Clause", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
Python
false
false
4,651
SConscript
import rtconfig from building import * # get current directory cwd = GetCurrentDir() # The set of source files associated with this SConscript file. src = Split(''' CMSIS/Device/ST/STM32L4xx/Source/Templates/system_stm32l4xx.c STM32L4xx_HAL_Driver/Src/stm32l4xx_hal.c STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_comp.c STM...
7f5840597ecbf5b38b850798c65bd1f3a6e16286
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/override/classmethodNewStyle_after.py
98f09cfcf529c9be668c3ddf4e5c0fc325d175e2
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
153
py
classmethodNewStyle_after.py
class A(object): @classmethod def m(cls): pass class B(A): @classmethod def m(cls): <selection>super().m()</selection>
682bf23c8a83245a7f64cb9dd5973d8754392f0f
7f49e3702ef49c17491c1e7758ff8ce931c68e96
/CreatorUtils/imageCompress.py
679763126ca25945e12ac12049c328f1640afb72
[ "Apache-2.0" ]
permissive
Leo501/CocosCreatorTutorial
6bec42de0f48a95cf8d550d88222a1aa1702782b
00c8568bb8683b2956a183ef80c4d3e30781fd23
refs/heads/master
2022-06-29T15:13:53.190484
2022-01-22T11:30:55
2022-01-22T11:30:55
125,846,008
625
317
Apache-2.0
2019-06-29T02:57:44
2018-03-19T11:15:49
JavaScript
UTF-8
Python
false
false
5,958
py
imageCompress.py
# -*-coding:utf8 -*- ''' This is a convenient utility for compressing png images by tinypng API.Hook up your server to TinyJPG and TinyPNG and compress all your images on the fly. The API uses the compression engine that powers the web services so you can expect exactly the same results. Enter your name an...
0d01dec8a35a2e57b7b41201432bc11df1d17269
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/Exabeam/Integrations/Exabeam/test_data/response_incidents.py
cc9aaba05da67cfd9ac370e27708a5f1254bb8e0
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
13,900
py
response_incidents.py
INCIDENTS = { "totalCount": 23, "offset": 0, "count": 23, "maxCount": 10000, "incidents": [ { "incidentId": "SOC-402", "name": "Exabeam Alert Active Service Discovery via Net Tool found", "baseFields": { "incidentType": ["ueba"], ...
6a9407701c707687830c825d03e0d82911e2bb95
463d49f20a5c0c0851c53d5e16514c265f8910aa
/datausa/onet/models.py
ef0d2671dfd4ae0018c55e2a9b76e8ea631a7d22
[]
no_license
DataUSA/datausa-api
f6c503680f66b470c77a4ab9f0e7a4643659252f
7288dede082eda07b61e11cf6dc801fe692f6334
refs/heads/master
2022-02-14T00:03:13.241210
2022-01-31T17:16:27
2022-01-31T17:16:27
37,325,775
251
50
null
2022-01-13T13:00:27
2015-06-12T14:13:50
Python
UTF-8
Python
false
false
1,295
py
models.py
from datausa.database import db from datausa.attrs.models import Skill from datausa.ipeds.abstract_models import CipId from datausa.core.models import BaseModel from sqlalchemy.ext.declarative import declared_attr class BaseOnet(db.Model, BaseModel): __abstract__ = True __table_args__ = {"schema": "onet"} ...
afaa8cdec4d948f43f62d88d684c1f5b09b73c83
e7efae2b83216d9621bd93390959d652de779c3d
/datadog_checks_dev/datadog_checks/dev/spec.py
9fa4b832d52a8bafb717ec8d6746978f7e6bf3d9
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
933
py
spec.py
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import json import yaml from .utils import file_exists, path_join, read_file def load_spec(check_root): spec_path = get_spec_path(check_root) return yaml.safe_load(read_file(spec_path)) def g...
60ff9443ea9476289f9841c3c166356668a5c58c
b095173b2dbc77c8ad61c42403258c76169b7a63
/tests/integ/test_tf_efs_fsx.py
a51b18acb62a399863e77ed815975f224dbe0045
[ "Apache-2.0" ]
permissive
aws/sagemaker-python-sdk
666665e717cfb76698ba3ea7563b45344634264d
8d5d7fd8ae1a917ed3e2b988d5e533bce244fd85
refs/heads/master
2023-09-04T01:00:20.663626
2023-08-31T15:29:19
2023-08-31T15:29:19
110,621,895
2,050
1,255
Apache-2.0
2023-09-14T17:37:15
2017-11-14T01:03:33
Python
UTF-8
Python
false
false
8,477
py
test_tf_efs_fsx.py
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
5a2a400f58964195458e6563f878d96d2a612ef4
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/nemo/utils/exp_manager.py
63775f4058c53f303a1faecf03e646aec172b693
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
46,436
py
exp_manager.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
b3bbf1cb4881c5863089be23850b5abfea1e3f5f
0d543b6f877114fc7ff7f5c2485230f606f6d98d
/2022/5.py
ddd3325ac0f0d272080310656724d3fb26c56202
[]
no_license
jonathanpaulson/AdventOfCode
eca9d1732ec80dd640d6eed01b3a18d3b3ee455b
215f18d7d5b9761ec181954d2e62b6fed3bd12f5
refs/heads/master
2023-01-08T00:25:09.651009
2022-12-25T05:39:11
2022-12-25T05:39:11
321,228,487
227
103
null
2022-12-01T09:31:36
2020-12-14T04:03:53
Python
UTF-8
Python
false
false
986
py
5.py
#!/usr/bin/python3 import sys from copy import deepcopy infile = sys.argv[1] if len(sys.argv)>1 else '5.in' data = open(infile).read() lines = [x for x in data.split('\n')] S = [] cmds = [] for line in lines: if line == '': break sz = (len(line)+1)//4 while len(S) < sz: S.append([]) for...
fb81846ee89cfcd9af0c5f299e4778058835e1a0
fe131d9715049e3339d1ab14f3e9a0c97a47c5db
/link_tracker_usability/__manifest__.py
cd5ab778653ef5d2f10a382ab70349b9c784e363
[]
no_license
akretion/odoo-usability
12f5412a27dda2de2436a282d36222f596d219bc
5f731d18f1d9016a2faf6ef439be6caf2597aa16
refs/heads/16.0
2023-07-21T14:41:54.002291
2023-07-15T13:40:48
2023-07-15T13:40:48
28,053,269
115
183
null
2023-08-31T14:04:39
2014-12-15T19:51:41
Python
UTF-8
Python
false
false
770
py
__manifest__.py
# Copyright 2019-2021 Akretion France (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Link Tracker Usability', 'version': '14.0.1.0.0', 'category': 'Marketing', 'license': 'AGPL-3', 'summa...
887069fddf7656a2ebcd12ecda80ff4e68a3fcde
636849fc7edd9dcb095cf3410a121ab37de69f02
/SoftLayer/shell/cmd_env.py
30f1681ab30099627513769ee5fa3cb3d63ada65
[ "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
461
py
cmd_env.py
"""Print environment variables.""" # :license: MIT, see LICENSE for more details. import click from SoftLayer.CLI import environment from SoftLayer.CLI import formatting @click.command() @environment.pass_env def cli(env): """Print environment variables.""" filtered_vars = dict([(k, v) ...
7215452f39d7b368ec0994e739e502c3549af71f
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/gen/view_models/views/lobby/matchmaker/active_test_confirm_view_model.py
8fdfb608a6066aa8eaac991b645efeddd3818332
[]
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
1,276
py
active_test_confirm_view_model.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/matchmaker/active_test_confirm_view_model.py from gui.impl.gen.view_models.windows.full_screen_dialog_window_model import FullScreenDialogWindowModel class ActiveTestConfirmViewModel(FullScreenD...
e475c1ef6448cd84c5004575f32ca364491d0d5a
554718851656376ad2bceb282de30459167ffeb2
/tests/mxnet/test_hook_save_all.py
4c10d8f927960135e14f677ec97bd8e398c5efa5
[ "Apache-2.0" ]
permissive
awslabs/sagemaker-debugger
d6ae6a6177a6cb457972772e2b3021e8a9dcc621
37ecf0aaeb24ab2adbe7f0ad664d0e50fa4154f2
refs/heads/master
2023-09-05T05:20:02.458427
2023-04-20T20:48:11
2023-04-20T20:48:11
222,554,670
162
89
Apache-2.0
2023-08-23T14:31:27
2019-11-18T22:12:36
Python
UTF-8
Python
false
false
1,778
py
test_hook_save_all.py
# Standard Library import shutil from datetime import datetime # First Party from smdebug.mxnet import SaveConfig from smdebug.mxnet.hook import Hook as t_hook from smdebug.trials import create_trial # Local from .mnist_gluon_model import run_mnist_gluon_model def test_save_all(hook=None, out_dir=None): hook_cr...
463c591767a62922699eec13d558de64e6cdfc1d
22c1865e6768e0ffae2a32db8044c155e245b3d7
/tests/gems/arch/test_pacman.py
283746f39af109ef0a00190343d0520b64be5cda
[ "Zlib" ]
permissive
vinifmor/bauh
d33ffbe40c18c8db9f8fe053a26846420cae30f9
d80b23a952808c883045759270776847fcd7c4ec
refs/heads/master
2023-08-18T20:59:36.763518
2023-03-07T11:06:50
2023-03-07T11:06:50
201,946,404
815
89
Zlib
2023-09-09T15:16:23
2019-08-12T14:27:18
Python
UTF-8
Python
false
false
4,193
py
test_pacman.py
import os import warnings from unittest import TestCase from unittest.mock import patch, Mock from bauh import __app_name__ from bauh.gems.arch import pacman FILE_DIR = os.path.dirname(os.path.abspath(__file__)) class PacmanTest(TestCase): @classmethod def setUpClass(cls): warnings.filterwarnings('...
6edbaf64c4b140ca2e246a78c46d464ff5419f5f
71fb04f723b46a1bf45295be239bcec25e07f98c
/keras_cv/losses/simclr_loss.py
ad48d8c44171f1efa29125521b0d0726761e432f
[ "Apache-2.0" ]
permissive
keras-team/keras-cv
9bca4479474e853ec3a1c541b8be20fea2447a1a
e83f229f1b7b847cd712d5cd4810097d3e06d14e
refs/heads/master
2023-08-31T10:22:08.406394
2023-08-30T20:24:57
2023-08-30T20:24:57
265,079,853
818
287
NOASSERTION
2023-09-12T16:49:01
2020-05-18T22:39:21
Python
UTF-8
Python
false
false
3,809
py
simclr_loss.py
# Copyright 2022 The KerasCV 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
0d1eed98c0f771d9d2a7d8c7d6c3fce41b1f5051
6c3989a6de8521ae478edcd6f457f54baa57f289
/plugin/save_command.py
170712df861d0b9a7718078506645df0aff7f4a9
[ "MIT" ]
permissive
sublimelsp/LSP
18ba4b72ad390ee4da713d9b383869112c6d2d98
e6bbc8ffecd9d705c884c69160132265294c6430
refs/heads/main
2023-08-31T13:29:36.341484
2023-08-18T16:07:57
2023-08-18T16:07:57
87,645,313
909
138
MIT
2023-09-13T19:55:06
2017-04-08T15:51:20
Python
UTF-8
Python
false
false
4,459
py
save_command.py
from .core.registry import LspTextCommand from .core.settings import userprefs from .core.typing import Callable, List, Type from abc import ABCMeta, abstractmethod import sublime import sublime_plugin class SaveTask(metaclass=ABCMeta): """ Base class for tasks that run on save. Note: The whole task runs...
3cc8915156bda55ed77da7123137d5d76b7fe58b
23c0a6071860971616326ffeeac0b56135c5c6ee
/tests/test_resources.py
3721134fa9c5045917908fdd1d9cf07966207e5b
[ "MIT" ]
permissive
sissaschool/xmlschema
36d74acb2a36459512855ea0264cc4d1ebbef8f5
6bf6d8e6d19cfc0ba151effb25cc57c3789d16fd
refs/heads/master
2023-08-31T11:07:35.750326
2023-08-07T09:47:09
2023-08-07T09:47:09
70,905,710
272
55
MIT
2023-08-25T20:03:20
2016-10-14T11:52:54
Python
UTF-8
Python
false
false
70,655
py
test_resources.py
#!/usr/bin/env python # # Copyright (c), 2016-2020, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author Da...
def400197d99307cd0a611c48cc64b4f5b6d1a8d
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/keyvault/vendored_sdks/azure_keyvault_t1/key_vault_client.py
e2f63c07211d65477ec77391ff9f10afb8583d7b
[ "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
10,250
py
key_vault_client.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
00a2def8feda5dd76538bf1ebb27bc5ff4c2bad2
8f2c55a2530c3e59dab5907c0044c618b88dd09b
/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py
c629f75e941d59b89bbe12d1a241ab125ce08e7a
[ "Apache-2.0", "EPL-1.0", "MIT" ]
permissive
fabioz/PyDev.Debugger
5a9c6d4c09be85a0e2d9fb93567fd65faf04c81d
26864816cbfcf002a99913bcc31ebef48042a4ac
refs/heads/main
2023-08-18T01:08:34.323363
2023-04-15T11:15:47
2023-04-15T11:15:47
21,870,144
363
126
Apache-2.0
2023-07-30T23:03:31
2014-07-15T18:01:12
Python
UTF-8
Python
false
false
15,909
py
test_bytecode.py
import pytest from tests_python.debugger_unittest import IS_PY36_OR_GREATER, IS_CPYTHON from tests_python.debug_constants import TEST_CYTHON pytestmark = pytest.mark.skipif(not IS_PY36_OR_GREATER or not IS_CPYTHON or not TEST_CYTHON, reason='Requires CPython >= 3.6') #!/usr/bin/env python3 import sys import textwrap i...
aa4761a9d9a7bd88f13a7e3a3f11b418aebf66b5
0f65fe111dc1a0b91807572338940920b9c0d31d
/python-examples/rbf-interpolation-polynomial.py
6170a39a467607faa37e108274c7da452c0b2662
[ "MIT" ]
permissive
yuki-koyama/mathtoolbox
e46fb8fb3331368e4cb551884040777520bb0b64
edc26c9680750e022fd41cdee5ae942784a5aff4
refs/heads/master
2022-05-19T19:07:04.876938
2022-04-10T06:16:13
2022-04-10T06:16:13
129,524,709
241
28
MIT
2022-04-10T06:16:14
2018-04-14T14:30:58
C++
UTF-8
Python
false
false
2,523
py
rbf-interpolation-polynomial.py
import pymathtoolbox import numpy as np import random import math import matplotlib.pyplot as plt import seaborn as sns # Define constants FIG_SIZE = (8, 4) Y_RANGE = (-0.5, 3.0) IMAGE_FORMAT = "png" DPI = 200 # Generate data points large_x = np.array([[0.1, 0.4, 0.7, 0.9]]) small_y = np.array([1.0, 1.6, 0.8, 1.5]) ...
9eaac4b0f8406949dddc6daf47831a1eb3e8dd0d
67ce6a1d1369463b15023cc5bd1be9e823bab398
/lib/pymedphys/tests/experimental/paulking/test_coll/test_equivalent_fs.py
5dd0f2df64a386597a3c76afa4ebcf4e21255b88
[ "Apache-2.0" ]
permissive
pymedphys/pymedphys
2487efe7259cc4e226e93d32fe86cef01673016e
f6acdf9bd2e8a32e372966879284fbd71c612358
refs/heads/main
2023-08-05T06:27:48.110296
2023-06-07T18:22:09
2023-06-07T18:22:09
168,238,552
288
79
Apache-2.0
2023-05-30T03:23:50
2019-01-29T22:20:04
Python
UTF-8
Python
false
false
2,468
py
test_equivalent_fs.py
# Copyright (C) 2018 Paul King # 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...
7a7a197b76dde65cab0b742c8dd13c8dff0f9965
22b8c680d7787cc9fcee678cdeed73dc685a4d0f
/sdk/python/gnmi/samples/test_utils.py
6ef4354c5f029cbda4f19c00972b9167c033c347
[ "Apache-2.0" ]
permissive
CiscoDevNet/ydk-gen
cf36433acb8d90b514f8748531a2cb06e66f7f2d
27dd7d85134a62aa9e9fa48edc0359d32b6a31ec
refs/heads/master
2023-05-13T22:52:26.135573
2023-02-01T03:27:31
2023-02-01T03:27:31
53,680,541
138
98
Apache-2.0
2023-09-07T21:55:37
2016-03-11T16:27:20
C++
UTF-8
Python
false
false
2,474
py
test_utils.py
# ---------------------------------------------------------------- # Copyright 2016 Cisco Systems # # 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/LICENS...
f1c1f19928ff39d9ee494d9e7e788c5318e3838e
ca35ba3894b46c7c851ac12ba4723d5b9714102b
/src/pyscaffold/file_system.py
c850ac3bb06439838e791773e2ac274bf29a73fe
[ "MIT", "0BSD" ]
permissive
pyscaffold/pyscaffold
4ec2fd57938e3e9d159bd9289c6b41c2feecde91
14ff8554f25c83845687315c0a251048e76784ba
refs/heads/master
2023-08-30T21:55:56.370277
2023-06-20T15:54:36
2023-06-20T15:54:36
18,357,535
1,479
159
NOASSERTION
2023-06-28T04:37:01
2014-04-02T07:01:57
Python
UTF-8
Python
false
false
9,860
py
file_system.py
"""Internal library that encapsulate file system manipulation. Examples include: creating/removing files and directories, changing permissions, etc. Functions in this library usually extend the behaviour of Python's standard lib by providing proper error handling or adequate logging/control flow in the context of PySc...
5d4e5a7ee46991ed296c8de2ba9cc322e0ba0a92
ef2c1a0ae0f1746e58fcc160844788ab92a8d488
/scripts/supergraph/download_datasets/torchvision_ds.py
b824381e8823238b9fd2c35e03b00d1c82bf58b6
[ "MIT", "LicenseRef-scancode-free-unknown", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/archai
4d04476ef6a434148638ef91df0ef3bf2c948422
95d6e19a1523a701b3fbc249dd1a7d1e7ba44aee
refs/heads/main
2023-09-03T13:23:48.576626
2023-07-27T01:30:01
2023-07-27T01:30:01
245,036,506
439
97
MIT
2023-05-09T21:10:10
2020-03-05T00:54:29
Python
UTF-8
Python
false
false
582
py
torchvision_ds.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import dataset_utils import torchvision from torchvision import transforms if __name__ == "__main__": dataroot = dataset_utils.get_dataroot() torchvision.datasets.STL10( root=dataroot, split="train", # train=True...
9b67de63f09f3a3926bcd3d5dd8760a5f5b952aa
2551b9f15913b1f28d6323b2b868b85e9f408dad
/cities/migrations/0007_add_currency_and_postal_code_fields_to_country_model.py
4ea08ecc231d72a3a39c953f3846025fca22fde0
[ "MIT" ]
permissive
coderholic/django-cities
f4b98a6926a62e342de40a0b0ebbaf523fa13af7
3a40381498e4b3aae7557cdd8d7ecae673b945af
refs/heads/master
2023-08-03T00:05:53.509925
2023-02-27T06:32:46
2023-02-27T06:32:46
1,068,056
711
259
MIT
2023-02-27T06:32:47
2010-11-10T11:32:39
Python
UTF-8
Python
false
false
1,108
py
0007_add_currency_and_postal_code_fields_to_country_model.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-24 18:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cities', '0006_typify_alt_names_and_add_is_historic'), ] operations = [ mig...
e84fbe47c66a92e2ee58f91a397c003f4f93e2c6
8730cd656903205527da131c3308579f1491cd04
/vue/decorators/method.py
b04519fa09fc7e26d4ce28de8774b3e883363ec6
[ "MIT" ]
permissive
stefanhoelzl/vue.py
9509cff8a8fbd1b4a835b9f2e362935e76bf39ba
581e764d57e2b476e700034bc11000cd07f176df
refs/heads/master
2023-02-21T18:13:21.969549
2023-02-15T14:37:17
2023-02-15T14:43:10
139,488,690
323
21
MIT
2023-02-15T12:02:26
2018-07-02T20:05:06
Python
UTF-8
Python
false
false
650
py
method.py
from .base import pyjs_bridge, VueDecorator class Method(VueDecorator): def __init__(self, fn): if hasattr(fn, "__coroutinefunction__"): fn = coroutine(fn) self.__value__ = pyjs_bridge(fn, inject_vue_instance=True) self.__key__ = f"methods.{fn.__name__}" def coroutine(_corout...
7f1f89e4d078e5d09a7dcca6fed5e36947a07f92
a40a5748b599ca6b080b986343e41b9a9b551705
/setup.py
712204c383efa11a55d50408e11b37ea509f00a4
[ "BSD-2-Clause" ]
permissive
miracle2k/tarsnapper
36a1d5131fbfa7b5a83d4dcfdd86cde337ad8141
e6cc0331cf1396d38df43629c60733f5efc66381
refs/heads/master
2023-06-28T04:53:38.609210
2021-08-27T09:47:50
2021-08-27T09:47:50
710,922
162
35
BSD-2-Clause
2023-06-18T13:05:33
2010-06-09T04:49:56
Python
UTF-8
Python
false
false
1,399
py
setup.py
#!/usr/bin/env python # encoding: utf8 """Adapted from virtualenv's setup.py. """ import sys, os try: from setuptools import setup except ImportError: from distutils.core import setup kw = {'scripts': ['scripts/tarsnapper']} else: kw = {'entry_points': """[console_scripts]\ntarsnapper = tarsn...
d881a0a2589068593ac3123c3c84c6b0e3b8725f
2b7e3535fdf055643d07499a5eff12c6e9e29e2f
/sopel/modules/isup.py
7982975fbb616b58f137be0c9cf7199db0377eee
[ "EFL-2.0" ]
permissive
sopel-irc/sopel
fb9669d82df137a322f38d9a9b38911dd2fdb5c2
bc688b4eaee25a1be4fef66477f016bc21ea61d8
refs/heads/master
2023-09-03T20:10:40.233784
2023-08-16T20:55:45
2023-08-16T20:55:45
3,035,586
598
422
NOASSERTION
2023-09-04T06:59:41
2011-12-22T17:59:00
Python
UTF-8
Python
false
false
3,414
py
isup.py
""" isup.py - Sopel Website Status Check Plugin Copyright 2011, Elsie Powell http://embolalia.com Licensed under the Eiffel Forum License 2. https://sopel.chat """ from __future__ import annotations import requests from sopel import plugin PLUGIN_OUTPUT_PREFIX = '[isup] ' def get_site_url(site): """Get a ``s...
d4a9fddda0017dfdcc2e67050596f75612b800de
e4c5238c86c8a114d49b7ba3ecc5ef9d5157e152
/toqito/channel_ops/partial_channel.py
d3235a7f30236a371e86afc6b415426eedf76017
[ "MIT" ]
permissive
vprusso/toqito
64a9963c02b73127836b76d886543a0642b93664
7e6869d783f98cb241579ea89e0f9ff61eff9d9b
refs/heads/master
2023-07-22T17:08:18.392204
2023-07-19T07:27:37
2023-07-19T07:27:37
235,493,396
116
53
MIT
2023-09-12T13:35:38
2020-01-22T03:47:16
Python
UTF-8
Python
false
false
6,753
py
partial_channel.py
"""Apply channel a subsystem of an operator.""" from __future__ import annotations import numpy as np import itertools from toqito.channel_ops import apply_channel from toqito.states import max_entangled from toqito.perms import permute_systems def partial_channel( rho: np.ndarray, phi_map: np.ndarray | list...
ed5a7f09d264beccf7284a78562a6d766bd5e3b2
d2e75f67fbb9815a63b82082fafc173d8ae78ea3
/tools/kitti_object_eval_python/evaluate.py
e56bfe5b81f5d502dac588831e94b2cf63d28cd8
[ "MIT" ]
permissive
happinesslz/EPNet
adb931478de38c4e9eed837fc34922e55b5953c9
0123c341243846aa3b412addcb9e2c07fd305237
refs/heads/master
2022-12-18T00:15:23.719957
2020-08-25T09:49:46
2020-08-25T09:49:46
276,774,529
231
43
null
null
null
null
UTF-8
Python
false
false
974
py
evaluate.py
import time import fire import tools.kitti_object_eval_python.kitti_common as kitti from tools.kitti_object_eval_python.eval import get_official_eval_result, get_coco_eval_result def _read_imageset_file(path): with open(path, 'r') as f: lines = f.readlines() return [int(line) for line in lines] def...
714a4ac20fc78c5a8f9f57546f1028d9140e44f4
3aab11d445011f4a0de1376886dd3899aba44e68
/opps/channels/templatetags/channels_tags.py
bb3432ee1b92f0b126dfa8355b71fd57e0b9ae81
[ "MIT" ]
permissive
opps/opps
4ba6a08ac5aa31be48c245b2e8f9d9a714a5e473
5552924fa34ea40d24febeac5046bd59f62e0e4f
refs/heads/master
2023-08-24T21:09:23.489540
2023-05-22T20:07:33
2023-05-22T20:07:33
7,712,379
166
76
MIT
2022-01-06T22:53:23
2013-01-20T03:56:15
Python
UTF-8
Python
false
false
1,075
py
channels_tags.py
# -*- coding: utf-8 -*- from django import template from django.conf import settings from django.core.cache import cache from opps.channels.models import Channel register = template.Library() @register.assignment_tag def get_channel(slug): """ Usage: {% get_channel "videos" %} """ try:...
4ff82f402b84ac723bb9526910aca9c0b2e5a81e
48cd6a93fe538693fec65aaa81306e6b69b642ad
/dask/dataframe/tests/test_ufunc.py
e23bfe402527dbf3a4a92df87ae485acdbf053e1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dask/dask
0138cc2fb9aad27287643fe5ee240b8b09f2300d
18098d35298bad21c878c339d73de784612566c7
refs/heads/main
2023-09-04T02:39:37.886054
2023-09-01T19:02:00
2023-09-01T19:02:00
28,782,747
11,423
2,116
BSD-3-Clause
2023-09-14T17:36:04
2015-01-04T18:50:00
Python
UTF-8
Python
false
false
16,595
py
test_ufunc.py
from __future__ import annotations import warnings import pytest pd = pytest.importorskip("pandas") import numpy as np import dask.array as da import dask.dataframe as dd from dask.dataframe.utils import assert_eq _BASE_UFUNCS = [ "conj", "exp", "log", "log2", "log10", "log1p", "expm1"...
4e4b256dad2964346ffc5ed4c81e5bad0fd28491
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/lib/sqlalchemy/dialects/postgresql/ext.py
ad1267750bb61d7aa28ea742b55e85e04ef89e92
[ "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
16,253
py
ext.py
# postgresql/ext.py # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php # mypy: ignore-errors from __future__ import annotations from typing import Any f...
989d783ffb7945512b1ed422a55f6941b9b058ae
1f48b50d3cf179ed0892b4c29752a2ea9c9eac89
/ahrs/utils/core.py
cc07b5ed7d8bd016846006d3c644181609544410
[ "MIT" ]
permissive
Mayitzin/ahrs
f8b13b6e3b2bb319a0cd0e51eac39b6e6ff10572
6ef1c1bfc519c4a7d405780a9445a7b06ebeba2c
refs/heads/master
2023-09-01T20:53:55.955637
2023-08-22T12:10:30
2023-08-22T12:10:30
183,612,062
421
75
MIT
2022-12-04T23:41:15
2019-04-26T10:50:54
Python
UTF-8
Python
false
false
1,201
py
core.py
""" Contains the core utilities for the proper use of AHRS: assertions, data handling, etc. These functions have no other goal in this package than to be used by other modules. They are not meant to be used by the user. This module is private. All functions and objects are available in the main ``ahrs`` namespace, or...
047ae15640e29cc661c00f852124b2b19879c1e6
c9a5115edaee9bebae02c880113c32e0199375cd
/formulaic/utils/sparse.py
65ded255115f4f4880c0e03570985e5b57a99996
[ "MIT" ]
permissive
matthewwardrop/formulaic
ceeb0d7ac4d450da1e7a99c244f03096194ea675
b3d2d92b5a3ac3e8a72553b9f6be1ab582771fda
refs/heads/main
2023-07-12T03:25:14.391092
2023-07-11T04:26:32
2023-07-11T04:26:32
205,769,591
236
14
MIT
2023-07-11T04:19:24
2019-09-02T03:23:35
Python
UTF-8
Python
false
false
1,684
py
sparse.py
from typing import Iterable, Optional, Tuple, List import numpy import pandas import scipy.sparse as spsparse def categorical_encode_series_to_sparse_csc_matrix( series: Iterable, levels: Optional[Iterable[str]] = None, drop_first: bool = False ) -> Tuple[List, spsparse.csc_matrix]: """ Categorically enc...
1bebb3c04da1ceab93fc5b4d4f379d1ecf55bd2f
b8a25cba3c725bda12e78454910bfac6658283cd
/nyaggle/util/traits.py
1e18a7f345f5761941f2abb37faec7062552abd0
[ "MIT" ]
permissive
nyanp/nyaggle
e3f125fbba816c77aefb21fef5e220bd7ee36949
86a9db4375d4d4974a71692a756d1c4818e15122
refs/heads/master
2023-08-16T13:01:43.565349
2023-07-22T14:15:41
2023-07-22T14:15:41
228,955,139
286
41
MIT
2023-09-10T04:09:54
2019-12-19T02:01:19
Python
UTF-8
Python
false
false
3,571
py
traits.py
# Original work of safe_instance: # https://github.com/slundberg/shap/blob/master/shap/common.py # ----------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2018 Scott Lundberg # # Permission is hereby granted, free of charge, to any person obtaining a copy ...
c5fba06321b6254689d2205d9f501dceaf069b26
d13d938d16058b1260e1c4e89c5a0ecfb559dc01
/ImageProcessing_5/topAndBlackHat_practice.py
35ce3c6fba3326ded7c0bd9264dbc8fcc9769bb0
[]
no_license
LeBron-Jian/ComputerVisionPractice
61ecb70d7938236355eb1653c88b5fda8eeda0e7
f60f4d4954f35b08ea356f5eb1a4acfb18d05d47
refs/heads/master
2023-09-01T01:20:35.937692
2023-08-25T02:17:54
2023-08-25T02:17:54
298,447,700
279
86
null
null
null
null
UTF-8
Python
false
false
750
py
topAndBlackHat_practice.py
import cv2 def hat_algorithm(img_path): original_img0 = cv2.imread(img_path) original_img = cv2.imread(img_path, 0) kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (3, 3)) # 定义矩形结构元素 TOPHAT_img = cv2.morphologyEx(original_img, cv2.MORPH_TOPHAT, kernel) # 顶帽运算 BLACKHAT_img = cv2.morphology...
4c1fd51378231507d3c879e805a641dec3d9c4eb
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/runners/interactive/user_pipeline_tracker.py
53ee54ac8a35ed3bec5bb7812ecfd1de5029e5d3
[ "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
5,735
py
user_pipeline_tracker.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...
f56747769c4539272d5147588c27c39e965e2595
767dae79df18f9868855774464d08864a1d8629b
/protonfixes/gamefixes/91100.py
0a0c579c2b319e03b689c5f9970dc2ca1ea4c401
[ "BSD-2-Clause" ]
permissive
simons-public/protonfixes
05cd9c2c37c35ce56ec4c3cdcdba375c6eadf530
681411ba8ceb5d2d790e674eb7a5b98951d426e6
refs/heads/master
2022-11-16T04:16:32.764931
2022-11-15T00:24:24
2022-11-15T00:24:24
150,211,569
245
75
NOASSERTION
2022-11-15T00:24:25
2018-09-25T05:20:02
Python
UTF-8
Python
false
false
197
py
91100.py
""" Game fix for SkyDrift """ #pylint: disable=C0103 from protonfixes import util def main(): """ Use d9vk to avoid texture glitches """ util.set_environment('PROTON_USE_D9VK', '1')
b3351006228e37c2e22fb25cf1fc9f24e165ee31
e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6
/tests/default/controllers/test_suite_supervisor/test_suite_supervisor.py
fafbd52126f53379079794494f68cf6e69754d47
[ "Apache-2.0" ]
permissive
cyberbotics/webots
f075dacf4067e8dcebbfd89e8690df8525f6d745
8aba6eaae76989facf3442305c8089d3cc366bcf
refs/heads/master
2023-08-31T09:41:13.205940
2023-08-18T10:48:30
2023-08-18T10:48:30
156,228,018
2,495
1,525
Apache-2.0
2023-08-28T16:30:33
2018-11-05T14:09:10
C++
UTF-8
Python
false
false
10,385
py
test_suite_supervisor.py
# Copyright 1996-2023 Cyberbotics 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
7647fbd2c5d134c46dce409dd8cd65955646d0ea
5ff0b54063046dee4d64e8ab408c553c6c686aae
/example_project/urls.py
fef369ee99b8a2189d252ca91e505b45b363000b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mixcloud/django-experiments
dbf56a3058173db2bf74e5215fe8a1c9a7aa0733
a0762b51596ffd3fd59ac40b6b2a5a8f898e9081
refs/heads/master
2023-09-02T20:17:43.316780
2023-07-25T10:13:27
2023-07-25T10:13:27
3,918,582
258
83
MIT
2022-11-03T21:21:21
2012-04-03T14:05:13
Python
UTF-8
Python
false
false
418
py
urls.py
from django.contrib import admin from django.urls import include, path from django.views.generic import TemplateView admin.autodiscover() urlpatterns = [ path('experiments/', include('experiments.urls')), path('admin/', admin.site.urls), path('', TemplateView.as_view(template_name="test_page.html"), name=...
120369ef14c7fe0dae43ad1016aeb5294c3a748d
fbebc09f50a6ac0749e68d5dcab20afd009de71f
/snippets/ch11/mcpi.py
853f6b51e84d1c7ac3400cb2cdcd8f9976f0cbe1
[ "Apache-2.0" ]
permissive
foxbook/atap
7e9adbaa1f64ff4e7a2e58a5d9b1717150f063ba
43fd3317b641e0830905a734226afad3a0ea19f6
refs/heads/master
2023-08-17T06:37:34.571614
2022-12-01T14:41:35
2022-12-01T14:41:35
88,289,875
401
316
Apache-2.0
2020-08-06T12:54:54
2017-04-14T17:48:37
Python
UTF-8
Python
false
false
1,085
py
mcpi.py
import time import random import multiprocessing as mp from functools import wraps def timeit(func): @wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) return result, time.time() - start return wrapper def mcpi_samples(n): """ ...
75284748c24245d7645cfd06c8fe546b47f17cfd
38bed8ec0229b2d42ebdb33e09930ba8ee6ba5b7
/torchvision/prototype/datasets/_builtin/stanford_cars.py
e6bd6c0cf2b090453c469d0198c8650e6fd9fbe1
[ "BSD-3-Clause", "CC-BY-NC-4.0" ]
permissive
pytorch/vision
10443ac1eddf7a32ecb288fe8f58e28cab2a60a1
1f94320d8db8d102214a7dc02c22fa65ee9ac58a
refs/heads/main
2023-09-06T03:48:02.303020
2023-09-04T18:25:36
2023-09-04T18:25:36
73,328,905
15,620
8,564
BSD-3-Clause
2023-09-14T17:52:49
2016-11-09T23:11:43
Python
UTF-8
Python
false
false
4,401
py
stanford_cars.py
import pathlib from typing import Any, BinaryIO, Dict, Iterator, List, Tuple, Union from torchdata.datapipes.iter import Filter, IterDataPipe, Mapper, Zipper from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource from torchvision.prototype.datasets.utils._internal import (...
3c6c924462fad2c1b1316a726ae0e86f93138447
1b32a80362ce9c2d8f0eb1948637c6599d85aa99
/torchlayers/_name.py
2938407a2ae50870471bdeaba68e56fc513e428e
[ "MIT" ]
permissive
szymonmaszke/torchlayers
4492c628a49f4db30a76a17b5d38591a85109964
1eff7c55fdb3733e0acc180be79354ed35e4167c
refs/heads/master
2022-07-06T18:02:48.567112
2021-05-25T13:58:50
2022-06-13T19:09:28
201,987,932
599
47
MIT
2022-06-13T19:09:29
2019-08-12T18:35:56
Python
UTF-8
Python
false
false
22
py
_name.py
_name = "torchlayers"
073d629b93066fd3b57c4c5f5ac5ecf3f06eabef
29f9af1b48c3e1c25cec5dc3fc8d780b24331e3c
/Sniffer-v2.0/Toolbox/__init__.py
96da9c7ec84d20fe279e25b5c3138658f3e90618
[ "MIT" ]
permissive
Macr0phag3/Sniffer
845da6fdd7d87b765b687cebf747adfb8f74d317
60e11f1b611abbbb7cb441dc169487bc9e1edbbe
refs/heads/master
2022-01-25T23:12:36.047051
2021-12-24T08:19:12
2021-12-24T08:19:12
123,878,049
165
39
null
null
null
null
UTF-8
Python
false
false
16
py
__init__.py
#encoding: utf8
611eba150dc98881c14a527730e30c0ecde70cae
d6aae799e18e907fb413b715200c7832252a87e5
/responsible_ai/utils/data_process.py
26198155b287b25cce7e725c2b073cf467782b78
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0", "CC-BY-NC-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sony/nnabla-examples
0d0bbd5df3028996e790bcf07248fdb0932697d1
41f71faa6efff7774a76bbd5af3198322a90a6ab
refs/heads/master
2023-09-04T03:45:54.023899
2023-08-22T03:31:21
2023-08-22T03:31:21
109,625,584
308
108
Apache-2.0
2023-08-22T03:31:23
2017-11-05T23:30:40
Python
UTF-8
Python
false
false
9,471
py
data_process.py
# Copyright 2023 Sony Group 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 ...
ee44863ab0cdabb6d774b03ade496a47a5124363
839ccbc4259cadab261616c4fb17bded7dc65599
/ndscheduler/corescheduler/core/base_test.py
18cddea87214335da26f58e4db60ad4b6c73ab66
[ "BSD-2-Clause" ]
permissive
Nextdoor/ndscheduler
870d7d608c7635a53a9a20ea1eca66b218bebab1
d31016aaca480e38a69d75a66a9978a937c6a0b0
refs/heads/master
2023-06-28T03:46:58.272157
2020-01-03T16:56:06
2020-01-03T16:56:06
39,963,912
1,116
235
BSD-2-Clause
2023-05-22T14:02:24
2015-07-30T17:41:48
Python
UTF-8
Python
false
false
1,320
py
base_test.py
"""Unit tests for BaseScheduler class.""" import unittest import mock from ndscheduler.corescheduler.core.base import BaseScheduler from ndscheduler.corescheduler.datastore.providers.sqlite import DatastoreSqlite class BaseSchedulerTest(unittest.TestCase): def test_is_okay_to_run(self): with mock.patc...
1c93de370e3cf5acfe25db0134bdab86dcb04960
607dc8df19fc5248f6289cdda97857b5d58ca16f
/benchmark/src/wrappers/v20.py
9f2be56dcb7a4b27ce3e343ed2049eb50f0ab469
[ "BSD-3-Clause", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-unknown-license-reference" ]
permissive
automl/SMAC3
7dce243a33023c52d6819deff966f7b502e90ed0
541ee7e0383b491b86d1a23dcff669f2efad616d
refs/heads/main
2023-08-31T17:36:06.067579
2023-08-01T13:02:51
2023-08-01T13:02:51
65,900,469
943
259
NOASSERTION
2023-09-11T02:36:57
2016-08-17T10:58:05
Python
UTF-8
Python
false
false
4,091
py
v20.py
from __future__ import annotations from src.tasks.task import Task from src.utils.exceptions import NotSupportedError from src.wrappers.wrapper import Wrapper class Version20(Wrapper): supported_versions: list[str] = ["2.0.2"] def __init__(self, task: Task, seed: int) -> None: super().__init__(task,...
bb9f1f510b3ce2d5c95e04e0a2ab054d440b45c6
a5a36aa7200b0be6ea11ad669ba0534ee1b896a6
/packages/vaex-core/setup.py
b5c98c18ca533e4a749ff63d17e39a207fc7b3d8
[ "MIT", "MPL-2.0" ]
permissive
vaexio/vaex
ec42919f272a723f884fece3c83975112e7a6f30
15245cf4332d4423ac58bd737aee27d911a1b252
refs/heads/master
2023-08-11T08:03:33.248943
2023-07-21T10:40:58
2023-07-21T10:40:58
24,528,468
7,892
686
MIT
2023-09-04T05:07:11
2014-09-27T09:44:42
Python
UTF-8
Python
false
false
9,155
py
setup.py
from setuptools import setup import sys import os import imp from setuptools import Extension import platform use_skbuild = len(os.environ.get('VAEX_BUILD_SKBUILD', '')) > 0 if use_skbuild: from skbuild import setup import skbuild.command.build_ext on_rtd = os.environ.get('READTHEDOCS', None) == 'True' dirn...
990e433b56bc0d0216ce1ecc974d49b8f5370a33
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/nest/test_config_flow.py
7ab4a6dafc13a437fb5b9e8ba9d67c9337ccc553
[ "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
25,198
py
test_config_flow.py
"""Test the Google Nest Device Access config flow.""" from __future__ import annotations from typing import Any from unittest.mock import patch from google_nest_sdm.exceptions import ( AuthException, ConfigurationException, SubscriberException, ) from google_nest_sdm.structure import Structure import pyte...
e11849608e82842415112bc9d19867d4e2dc31b1
767b09cdf51803d533ebb5906042ed1f92f91a7c
/allennlp_models/rc/modules/__init__.py
8aaf9fb3879e8bf43fc9b31ed8dc328e2d33cdea
[ "Apache-2.0" ]
permissive
allenai/allennlp-models
e93bb3b084e99e211d5ebb515b765de117e41970
b1f372248c17ad12684d344955fbcd98e957e77e
refs/heads/main
2023-09-05T01:57:37.434101
2022-11-24T00:06:05
2022-11-24T00:06:05
246,170,605
520
172
Apache-2.0
2022-11-24T00:06:06
2020-03-10T00:22:21
Python
UTF-8
Python
false
false
79
py
__init__.py
# flake8: noqa: F403 from allennlp_models.rc.modules.seq2seq_encoders import *
058a11d279d2e50d68942b84c6b36817ee1187a6
ea0a28a1759bdd2292c53fe202f1c66e219a2453
/src/zhon/zhuyin.py
540bebeedf1794d17c19d1c2eb566c78a8c4c24e
[ "MIT" ]
permissive
tsroten/zhon
6412ffaef6f9cb7205c2f27b6e68b8838d54038b
c22db568f86b4519db94de8e7dc86c007cba18d1
refs/heads/main
2023-08-05T11:34:10.434476
2023-07-23T10:25:32
2023-07-23T10:25:32
9,836,043
316
45
MIT
2023-06-27T10:41:50
2013-05-03T13:03:40
Python
UTF-8
Python
false
false
1,887
py
zhuyin.py
# -*- coding: utf-8 -*- """Constants for working with Zhuyin (Bopomofo).""" #: A string containing all Zhuyin characters. characters = "ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙ" "ㄚㄛㄝㄜㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩㄭ" #: A string containing all Zhuyin tone marks. marks = ( "\u02C7" # Caron "\u02CA" # Modifier letter accute accent "\u02CB" #...
72729c4b76f18e8f8be5b6606f2021c120b7709c
2713a0416f4be097f9d4f82094f75bed482b8db2
/models/mtcnn/mtcnn_pytorch/src/first_stage.py
300cf851ee0e410b700d6b65bce49fa3f3d004a0
[ "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
eladrich/pixel2style2pixel
602bf7c1d533309a6e626b1a92435c295ca9e307
5cfff385beb7b95fbce775662b48fcc80081928d
refs/heads/master
2022-10-09T19:55:07.136339
2022-10-01T11:23:39
2022-10-01T11:23:39
300,247,371
3,083
581
MIT
2022-10-01T11:23:39
2020-10-01T11:01:03
Jupyter Notebook
UTF-8
Python
false
false
3,284
py
first_stage.py
import torch from torch.autograd import Variable import math from PIL import Image import numpy as np from .box_utils import nms, _preprocess # device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") device = 'cuda:0' def run_first_stage(image, net, scale, threshold): """Run P-Net, ge...
f554efdbb2cfc3b31207f9a1d3c0860c1fcd5468
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/dexy/parser.py
7ad3c08a043b8d910b07ad3fbb74d05cb1398855
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
6,457
py
parser.py
import copy import dexy.doc import dexy.exceptions import dexy.plugin import posixpath class AbstractSyntaxTree(): def __init__(self, wrapper): self.wrapper = wrapper self.root_nodes_ordered = False self.lookup_table = {} self.tree = [] # Lists of (directory, settings) tu...
9e5686bbcd116c2045d16d0c55f131bc315d11c3
786f9ae62cb62d2b8f193350d8beb695c47d2e98
/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.py
0a5e6205eaa1c96ddadb307a1d7a2b18757b4983
[ "MIT" ]
permissive
postlund/pyatv
a4213957d4d9b557c16310450bfd444cc715e17c
05ca46d2a8bbc8e725ad63794d14b2d1fb9913fa
refs/heads/master
2023-09-01T20:11:48.374857
2023-08-29T04:23:22
2023-08-29T11:13:17
80,614,028
749
120
MIT
2023-09-14T04:54:01
2017-02-01T11:30:30
Python
UTF-8
Python
false
true
1,997
py
UpdateContentItemMessage_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/UpdateContentItemMessage.proto """Generated protocol buffer code.""" from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protob...
de5b5256f85e530099fd89b23a9970bba99804fd
39241620c6271758ea97d92fa4cf9f45aa7d2510
/src/python/aim/_sdk/function.py
434f4306c00fc3482db6c156e85de0bf5ad87ec1
[ "Apache-2.0" ]
permissive
aimhubio/aim
4618e5ebdaf69d216cbe61c6187b005d443839a9
34e5c2c29abe9b26699760074adcadfe8fd4cfe0
refs/heads/main
2023-09-01T04:23:22.276343
2023-09-01T03:47:13
2023-09-01T03:47:13
189,640,071
4,091
276
Apache-2.0
2023-09-14T15:27:03
2019-05-31T18:25:07
Python
UTF-8
Python
false
false
880
py
function.py
import inspect from typing import Callable, Dict class Function: registry: Dict[str, 'Function'] = {} def __init__(self, func: Callable, name: str): self._validate_function(func) self._func = func self._name = f'{name}.{func.__name__}' @staticmethod def _validate_function(fu...
25880d6e515e9d11fbb9e233f27ef49042df2a49
b18330180bc2dddf483e2eb81160934dcd818ef8
/assemblyHub/prepareHubFiles.py
fd3e92de42dae2d8fc74c4dc85f860d1342d30bd
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ComparativeGenomicsToolkit/hal
3e5cc48c09bd0083d8d2eb849401ac5ed0bf8b06
e9e70b6c4a46a82aacf36632e1761804595d7f66
refs/heads/master
2023-08-31T06:32:09.551768
2023-06-22T23:55:36
2023-06-22T23:55:36
3,778,244
110
42
NOASSERTION
2023-08-31T15:13:38
2012-03-20T17:58:31
C++
UTF-8
Python
false
false
7,416
py
prepareHubFiles.py
#!/usr/bin/env python3 #Copyright (C) 2013 by Ngan Nguyen # Copyright (C) 2012-2019 by UCSC Computational Genomics Lab # #Released under the MIT license, see LICENSE.txt """ Make "hub.txt", "groups.txt", files that are required by AssemblyHub Also prepare description.html files """ import os, sys from sonLib.bioi...
702e6ca7169a1f0cbf92ef799e418e6d3fa1b416
d110546d747d7e3865ce5742d5fca09f404623c0
/salt/cache/etcd_cache.py
c1a111bd4f9c46bdeee97a7692fda40ec7b7d0b6
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
7,747
py
etcd_cache.py
""" Minion data cache plugin for Etcd key/value data store. .. versionadded:: 2018.3.0 .. versionchanged:: 3005 It is up to the system administrator to set up and configure the Etcd infrastructure. All is needed for this plugin is a working Etcd agent with a read-write access to the key-value store. The related docu...
a9eaf6537a8f9a69451640048cca7c3c9eefc2bd
ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7
/common/recipes-rest/rest-api/files/node_identify.py
876dc603e3c075361929a0f712c4c2fb0ef0862e
[]
no_license
facebook/openbmc
bef10604ced226288600f55248b7f1be9945aea4
32777c66a8410d767eae15baabf71c61a0bef13c
refs/heads/helium
2023-08-17T03:13:54.729494
2023-08-16T23:24:18
2023-08-16T23:24:18
31,917,712
684
331
null
2023-07-25T21:19:08
2015-03-09T19:18:35
C
UTF-8
Python
false
false
1,875
py
node_identify.py
#!/usr/bin/env python from typing import Any, Dict, Optional from common_utils import async_exec from kv import FPERSIST, kv_get from node import node from rest_pal_legacy import pal_get_platform_name identify_name = {"FBTTN": "identify_slot1", "Grand Canyon": "system_identify_server"} class identifyNode(node): ...
2496550ba488f95ed7588f147830da3d1870eca8
095540173f0af89217be7a4ae4b3177c4e32af6f
/tests/perf/simple.py
b24733930268dd8fe5c708dbefb54b4ada165520
[ "BSD-3-Clause" ]
permissive
riga/tfdeploy
c2cf534cff82aac716c76146a3d10072a619386d
22aea652fe12f081be43414e0f1f76c7d9aaf53c
refs/heads/master
2022-06-24T05:55:08.391340
2021-01-08T09:52:49
2021-01-08T09:52:49
53,326,300
394
50
null
2017-05-15T09:16:32
2016-03-07T13:08:21
Python
UTF-8
Python
false
false
749
py
simple.py
# -*- coding: utf-8 -*- import tensorflow as tf import tfdeploy as td import numpy as np # setup tf graph sess = tf.Session() x = tf.placeholder("float", shape=[None, 784], name="input") W = tf.Variable(tf.truncated_normal([784, 100], stddev=0.05)) b = tf.Variable(tf.zeros([100])) y = tf.nn.softmax(tf.matmul(x, W) +...
6602d1c18f87b47b69954dd0c2c964064498fdf0
ce32e0e1b9568c710a3168abc3c638d6f9f6c31b
/vnpy/app/spread_trading/ui/__init__.py
c7639754be682a65f99cbddc36f4ecf88dba281f
[ "MIT" ]
permissive
msincenselee/vnpy
55ae76ca32cae47369a66bd2d6589c13d7a0bdd4
7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7
refs/heads/vnpy2
2022-05-19T10:06:55.504408
2022-03-19T15:26:01
2022-03-19T15:26:01
38,525,806
359
158
MIT
2020-09-09T00:09:12
2015-07-04T07:27:46
C++
UTF-8
Python
false
false
34
py
__init__.py
from .widget import SpreadManager
4cea26510d2cb7d13d0eb9679887add032be6a12
5c00bd92979f6e20038926ec45068fe8e6a61565
/mushroom_rl/utils/callbacks/collect_max_q.py
9ab33dd389ca4064d372bbf669d7e9eeef7238a0
[ "MIT" ]
permissive
MushroomRL/mushroom-rl
2bf34ce38664a114ad37dc0468e1721e048359ab
2decae31459a3481130afe1263bc0a5ba7954a99
refs/heads/dev
2023-08-30T16:33:56.100589
2023-08-05T15:24:13
2023-08-05T15:24:13
83,158,675
477
128
MIT
2023-08-27T20:30:43
2017-02-25T19:59:57
Python
UTF-8
Python
false
false
712
py
collect_max_q.py
from mushroom_rl.utils.callbacks.callback import Callback import numpy as np class CollectMaxQ(Callback): """ This callback can be used to collect the maximum action value in a given state at each call. """ def __init__(self, approximator, state): """ Constructor. Args: ...
5db2f589dfdf1d4731581ed82ded7a54df55494e
827b0c8c48407a1c4a4f89bacd4afcbe1be1dc83
/flaskbb/cli/utils.py
0b39bed9974eeffa4e874ec1130d64868f5f31bf
[ "BSD-3-Clause", "MIT" ]
permissive
flaskbb/flaskbb
154ffa6476d094594c77f2fca28447b264b34779
bc999f1b9baf129dc06126940880a01ac94ba405
refs/heads/master
2023-08-22T19:47:34.877376
2023-03-13T06:51:20
2023-03-13T06:51:20
12,751,570
1,443
448
NOASSERTION
2023-07-26T22:36:21
2013-09-11T08:39:17
Python
UTF-8
Python
false
false
5,366
py
utils.py
# -*- coding: utf-8 -*- """ flaskbb.cli.utils ~~~~~~~~~~~~~~~~~ This module contains some utility helpers that are used across commands. :copyright: (c) 2016 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ import sys import os import re import click from flask import cu...
1155548d1434879ca961de573765099d9ad2e042
74ac893aefb80fcc297b1dc899cd2a8124bd3c75
/test/python/echo_text.py
04e69d086c8853c631f4ae9fda4f8e2e1159f944
[ "MIT" ]
permissive
extrabacon/python-shell
cfa12695c96df507ffbac1bfffc95382be507116
304da70b57b586bafdeb55dfada02431efb0c49e
refs/heads/master
2023-08-16T05:59:36.950698
2023-02-11T05:43:26
2023-02-11T05:43:26
17,671,651
2,132
262
null
2023-08-30T02:38:32
2014-03-12T15:22:28
TypeScript
UTF-8
Python
false
false
86
py
echo_text.py
import sys, json # simple JSON echo script for line in sys.stdin: print(line[:-1])
db556945948e86181cb709dbd4aec7814a91eac3
c0eeaae1a689a349a86b1e0cf672f7b90fa32886
/solara/website/pages/api/use_exception.py
32dbeb4f959153d87e2e3a8e020aa2b80926220b
[ "MIT" ]
permissive
widgetti/solara
a624b9e6408b080cb9845c46d9a3dd56da61a1b7
baa36623c3eb7db50672d8eb3d3cdab9220a50a6
refs/heads/master
2023-08-31T06:59:51.637969
2023-07-31T19:04:29
2023-07-31T19:04:29
467,834,772
959
68
MIT
2023-09-13T19:33:42
2022-03-09T08:12:01
Python
UTF-8
Python
false
false
898
py
use_exception.py
import solara title = "use_exception" set_fail = None clear = None @solara.component def UnstableComponent(number: int): if number == 3: raise Exception("I do not like 3") return solara.Text(f"You picked {number}") @solara.component def Page(): value, set_value = solara.use_state(1) value_p...