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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70e5892f21915fa12f48386313254ed1b19228ce | 002d925a46fef6867c7092935a5a4113a11cf0c5 | /care/facility/models/mixins/permissions/patient.py | f014b4f2a4614f320b4aed3be447869eecbe6c70 | [
"MIT"
] | permissive | coronasafe/care | ba74c06c6486e8cd3c11e0f8b3d948e99d304746 | c000eea7f1c79a37b0fa53eba09696cd95122202 | refs/heads/master | 2023-08-31T12:52:08.181541 | 2023-08-29T13:43:33 | 2023-08-29T13:43:33 | 247,995,671 | 216 | 218 | MIT | 2023-09-13T14:52:59 | 2020-03-17T14:48:11 | Python | UTF-8 | Python | false | false | 8,692 | py | patient.py | from care.facility.models import Facility, User
from care.facility.models.mixins.permissions.base import BasePermissionMixin
class PatientPermissionMixin(BasePermissionMixin):
@staticmethod
def has_write_permission(request):
if request.user.asset:
return False
if (
requ... |
e2626e6e6231ceca0bfb056ef905d763f2c368ca | ef1def58b933921ccf31bece9fc6eb5f7ffb9a18 | /tensorhive/core/utils/mailer.py | 55fb924e98a2f65458e39c35bfdcfbb9c1eaac81 | [
"Apache-2.0"
] | permissive | roscisz/TensorHive | 4b33acd727e0b294a4a12af972c471e1254136aa | 5b50245d285618044a9a71c06ea5361a48ad4acb | refs/heads/master | 2023-03-10T05:09:08.874394 | 2022-02-02T11:08:21 | 2022-02-02T11:08:21 | 98,513,283 | 153 | 26 | Apache-2.0 | 2023-03-01T02:26:54 | 2017-07-27T08:37:35 | Python | UTF-8 | Python | false | false | 2,621 | py | mailer.py | from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from typing import Union, Dict, Any, Optional, List
import smtplib
from smtplib import SMTPException
import os
import logging
log = logging.getLogger(__name__)
class Message:
'''
Represents an email message.
Allows for sen... |
756d281e54cce80802b6d1c161167ca17a138343 | 026b4b96a9244ff3ad347294e5bbd34c90d817a3 | /eeauditor/auditors/oci/OCI_VCN_NetworkSecurityGroup_Auditor.py | f15d2a8ab65859d409779dd5062b51a5ba9469ba | [
"Apache-2.0"
] | permissive | jonrau1/ElectricEye | 954e57c14c46df31d17fd556f13d8bd92de5bcd1 | 5156da4b9fe0a66dda3e236a4090ba2cf737c6a5 | refs/heads/master | 2023-08-28T08:29:22.315687 | 2023-06-27T00:27:26 | 2023-06-27T00:27:26 | 238,931,093 | 784 | 103 | Apache-2.0 | 2023-09-11T03:39:48 | 2020-02-07T13:32:16 | Python | UTF-8 | Python | false | false | 26,454 | py | OCI_VCN_NetworkSecurityGroup_Auditor.py | #This file is part of ElectricEye.
#SPDX-License-Identifier: Apache-2.0
#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 un... |
4042223b58a6e71a60858c7bc07a2aeaf7e5e2f0 | 8d44e796eaf0c8e11bbc2a27ef093e97a25b6f4a | /test/document_stores/test_search_engine.py | fc819fa7ed303480c9102451d3b0009826f0ff59 | [
"Apache-2.0"
] | permissive | deepset-ai/haystack | caa5287051d1771395ea624b58097000825bad81 | 5f1256ac7e5734c2ea481e72cb7e02c34baf8c43 | refs/heads/main | 2023-09-01T02:41:23.490526 | 2023-08-31T15:33:12 | 2023-08-31T15:33:12 | 221,654,678 | 10,599 | 1,558 | Apache-2.0 | 2023-09-14T17:09:42 | 2019-11-14T09:05:28 | Python | UTF-8 | Python | false | false | 11,055 | py | test_search_engine.py | from typing import Optional
from unittest.mock import MagicMock
import numpy as np
import pytest
from haystack.document_stores.search_engine import SearchEngineDocumentStore
from haystack.schema import FilterType
@pytest.mark.unit
def test_prepare_hosts():
pass
@pytest.mark.document_store
class SearchEngineDoc... |
a7df642777ec3be2b0394007215c750f4c5627d0 | 063ec40f1bf8c156f84bf6dec5060e8f4427904b | /src/monosat/api/python/monosat/solver.py | 704ec4463b6ba5137814c2f6804e60a22c25ac68 | [
"GPL-2.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | sambayless/monosat | 10a6a8d8901529c070aa9cf11b3aea35d0e7f6db | cf9ab9c17de3b175059fbe38626021d010d65b0a | refs/heads/master | 2023-05-11T07:43:17.302876 | 2023-04-30T17:50:07 | 2023-04-30T17:50:07 | 29,748,191 | 104 | 42 | MIT | 2023-04-30T17:50:08 | 2015-01-23T19:05:46 | C++ | UTF-8 | Python | false | false | 4,411 | py | solver.py | import time
from monosat.bvtheory import BitVector
from monosat.logic import *
from monosat.monosat_c import Monosat
from monosat.pbtheory import PBManager
def FoundOptimal():
return Monosat().lastSolutionWasOptimal()
class SolveException(Exception):
pass
def Solve(
*assumptions,
preproces... |
18d083b07ddbc6d4ba07be14f883b8f441681a21 | f3806d9fb54773908cd9704121a543b114470aca | /angr/procedures/definitions/win32_webauthn.py | e29d4a196b0220de5146fafa899ea62d610bc8fd | [
"BSD-2-Clause"
] | permissive | angr/angr | 8ae95fceca51b0a001de56477d984dd01193ac1d | 37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd | refs/heads/master | 2023-08-17T03:15:21.007865 | 2023-08-15T18:44:57 | 2023-08-15T18:44:57 | 40,328,394 | 7,184 | 1,306 | BSD-2-Clause | 2023-09-14T20:14:23 | 2015-08-06T21:46:55 | Python | UTF-8 | Python | false | false | 13,821 | py | win32_webauthn.py | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... |
e4467a950c1e41580679dcd97c81c017c10f5edd | dab10c721000fd9eb38676d6b2730f155eedd54e | /recirq/toric_code/toric_code_plaquettes.py | 02d99e431f705c82e3b4ce7cc55dc6fa999ef27a | [
"Apache-2.0"
] | permissive | quantumlib/ReCirq | f45e55e432f2e29fb8f2fe35a3d436a629219e86 | d021621a3837693ae9c5fdc5c05058de20fba314 | refs/heads/master | 2023-09-03T19:35:55.281836 | 2023-09-01T01:12:40 | 2023-09-01T01:12:40 | 246,951,354 | 260 | 116 | Apache-2.0 | 2023-09-09T00:41:35 | 2020-03-12T23:51:33 | Python | UTF-8 | Python | false | false | 5,319 | py | toric_code_plaquettes.py | # Copyright 2022 Google
#
# 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, soft... |
c1f06b5804fd770c09c2ad62d67d9972b88a3734 | 450916eee7580beb928ed8f387db4f0a8c1aa508 | /src/amuse/test/suite/compile_tests/test_python_implementation_mpi.py | b1a9c31a2d11e20b0b13792a3943d7fedf0ab289 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | amusecode/amuse | 42095545893f5a86ea79c2a52ce54d3ce8eb204f | b57c1e2fda1457d5025307be105c2aa59b19b574 | refs/heads/main | 2023-08-31T04:50:48.880044 | 2023-08-30T12:00:20 | 2023-08-30T12:00:20 | 18,516,331 | 158 | 118 | Apache-2.0 | 2023-08-30T12:00:22 | 2014-04-07T12:35:07 | AMPL | UTF-8 | Python | false | false | 3,914 | py | test_python_implementation_mpi.py | from amuse.support.interface import InCodeComponentImplementation
from amuse.test.amusetest import TestWithMPI
from amuse import datamodel
from amuse.rfi.core import PythonCodeInterface, legacy_function, LegacyFunctionSpecification
from amuse.support import exceptions
import numpy
from mpi4py import MPI
class For... |
6884bcc6e824548b807bcecc5d35d7b48843696e | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/__init__.py | 98ce978fb47f34d75f14d40dd89c9f6738d1e856 | [
"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 | 3,937 | py | __init__.py | # coding: utf-8
from __future__ import absolute_import
from huaweicloudsdkvcm.v2.vcm_client import VcmClient
from huaweicloudsdkvcm.v2.vcm_async_client import VcmAsyncClient
from huaweicloudsdkvcm.v2.model.audio_input_data import AudioInputData
from huaweicloudsdkvcm.v2.model.audio_output import AudioOutput
from hua... |
5e9379f976907dd64fc7a1d850d0220d24f81286 | 2337351b228818e41be3002bd38f68f77c2aa074 | /core/etl/extractor/sql.py | f3d169f211823e83d2dd5e92800901fd2d520d75 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 668 | py | sql.py | # ----------------------------------------------------------------------
# SQL Data Extractor
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# NOC modul... |
5503ee9cf47c8f05efa6ace2ac58b7c3b7f76e5a | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/data_analytics/esaccessors.py | 36d869df8cf6ef6f0702da103b28bcf78e17d2ec | [
"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 | 3,283 | py | esaccessors.py | import datetime
from dimagi.utils.dates import add_months
from corehq.apps.data_analytics.const import DEFAULT_EXPERIENCED_THRESHOLD
from corehq.apps.es.aggregations import (
AggregationTerm,
NestedTermAggregationsHelper,
TermsAggregation,
)
from corehq.apps.es.forms import FormES
from corehq.apps.es.sms ... |
8af10c9f678dfeecb4228c7dbf646d8eb4318d68 | 7a6b4705293709e32a6927ad4f76eb0549f3bea9 | /orchestra/todos/auth.py | eca84f87fe10450556961968b225f1ad5c8faa66 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | b12io/orchestra | a71941d80d1eeddb73f301da8f601b2c31a4b279 | ee8a29122a3491feae1e1c2c4699142726ae6c21 | refs/heads/main | 2023-08-20T17:46:36.360755 | 2023-06-27T13:32:46 | 2023-06-27T13:32:46 | 42,593,972 | 459 | 66 | Apache-2.0 | 2023-06-27T13:32:48 | 2015-09-16T14:55:16 | Python | UTF-8 | Python | false | false | 2,404 | py | auth.py | from rest_framework import permissions
from orchestra.models import Worker
from orchestra.models import Todo
from orchestra.models import TodoQA
class IsAssociatedWithTodosProject(permissions.BasePermission):
"""
Ensures that a user's worker is accoiated with the todo's project.
"""
def has_object_p... |
6477ba6e4525ac5d5e7993b0d632fc27b8faad06 | 3c0b87aae2ecca8245ddf7f26d0934bde23c7d8b | /pixyz/losses/mmd.py | b6a6c2c9ceac03745e45c24f3d476e83943ecb56 | [
"MIT"
] | permissive | masa-su/pixyz | a36e43c620d691b05bbcff202d44570468c10cab | a9baf067730035d03351476f5c2e1e43016808ce | refs/heads/main | 2023-08-21T12:27:35.075909 | 2021-12-14T14:15:36 | 2021-12-14T14:15:36 | 135,975,723 | 483 | 51 | MIT | 2023-07-30T03:54:54 | 2018-06-04T05:41:09 | Jupyter Notebook | UTF-8 | Python | false | false | 3,976 | py | mmd.py | import torch
import sympy
from .losses import Divergence
from ..utils import get_dict_values
class MMD(Divergence):
r"""
The Maximum Mean Discrepancy (MMD).
.. math::
D_{MMD^2}[p||q] = \mathbb{E}_{p(x), p(x')}[k(x, x')] + \mathbb{E}_{q(x), q(x')}[k(x, x')]
- 2\mathbb{E}_{p(x), q(x')}[k(x... |
a650c2769ffc8984e69abfa2e812a6ade007365f | d237f2925bb0bf47a3bac9bbac153c8fc9ef3b73 | /tools/odrivetool | e63a06662021f3d946eeee3867626cbf05b869f9 | [
"MIT"
] | permissive | odriverobotics/ODrive | eb9ee34bbca34b93cc6c93c64f21203ed2392631 | 58fdd3fdfdcaeff76547870f5e7acdf1673479e8 | refs/heads/master | 2023-08-28T00:35:46.214421 | 2023-05-09T10:18:21 | 2023-05-09T10:18:21 | 57,061,619 | 1,444 | 754 | MIT | 2023-05-19T04:35:41 | 2016-04-25T17:26:04 | C++ | UTF-8 | Python | false | false | 9,493 | odrivetool | #!/usr/bin/env python3
"""
ODrive command line utility
"""
from __future__ import print_function
import sys
# We require Python 3.5 for the "async def" syntax.
if sys.version_info <= (3, 5):
print("Your Python version (Python {}.{}) is too old. Please install Python 3.5 or newer.".format(
sys.version_info... | |
424a1f19ea1dd7a26dca3989fb15dcb3cad3daaa | cc91a1c30f6c5a176b225bdbf96c7bfd6dfeca52 | /scripts/ctsbuild/build.py | 053f550c517da596a87fdd23741829fe50878c85 | [
"Apache-2.0"
] | permissive | KhronosGroup/VK-GL-CTS | d07b2611dc3a258b5be4ff87c1fe55623f32bac1 | a745d5c29c5609cb7805f59444520a7700cf39d1 | refs/heads/main | 2023-08-31T19:34:48.447202 | 2023-08-25T13:17:54 | 2023-08-25T13:17:54 | 50,466,830 | 454 | 267 | Apache-2.0 | 2023-09-02T20:49:14 | 2016-01-26T23:29:28 | C++ | UTF-8 | Python | false | false | 2,020 | py | build.py | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# drawElements Quality Program utilities
# --------------------------------------
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... |
035f9e79a604f11563de2c6d3b8cd57502ac44e7 | d8b3cbb7644c95996e4ac2e66ae8ba82e620bbb0 | /dumpall/thirdparty/__init__.py | 61fd0918e89d12222c34a08f93bf6e637a023a42 | [
"MIT"
] | permissive | 0xHJK/dumpall | 38d5d692901350c22be2c3d65e88bc239cdad435 | a9e27a0ce484c624ae1186b047172641c90ef7f8 | refs/heads/master | 2023-01-11T00:38:44.342038 | 2022-07-05T05:30:40 | 2022-07-05T05:30:40 | 216,212,738 | 1,075 | 133 | MIT | 2022-12-27T15:37:11 | 2019-10-19T13:42:55 | Python | UTF-8 | Python | false | false | 100 | py | __init__.py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: HJK
@file: __init__
@time: 2019-10-25
"""
|
a9b627a8b4bd88af6575bfa903a4e4e90866e012 | 39b42c4c2f55e58e96040b214280d732b1310121 | /tests/searchcommands/test_generator_command.py | 63ae3ac8350d3ed47ea34d475433b76ecee9a893 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | splunk/splunk-sdk-python | bcba843519b145ba45af659b88b7d33ef8fb00df | be5268d8859c5a90cca8341ed3f1a29e07a4ff0f | refs/heads/master | 2023-08-23T10:38:20.422713 | 2023-07-20T09:02:53 | 2023-07-20T09:02:53 | 1,504,670 | 621 | 435 | Apache-2.0 | 2023-09-11T00:33:32 | 2011-03-20T23:20:06 | Python | UTF-8 | Python | false | false | 2,982 | py | test_generator_command.py | import io
import time
from . import chunked_data_stream as chunky
from splunklib.searchcommands import Configuration, GeneratingCommand
def test_simple_generator():
@Configuration()
class GeneratorTest(GeneratingCommand):
def generate(self):
for num in range(1, 10):
yield... |
d4674e4f0c09fdde2d705aa45cf69ab35f57b407 | 5a1ea4ff45c3b4da28e32711e8cfcadfd3086ad8 | /src/contextualise/image.py | f635d47e5d323a4ef33f22fe2003824543be20f5 | [
"MIT"
] | permissive | brettkromkamp/contextualise | ff857749315617d7b8e863e82144909bbffc0640 | 99c7d10e64eed080e7c08e758406222b4db08d36 | refs/heads/master | 2023-08-23T14:02:46.994523 | 2023-08-16T20:00:42 | 2023-08-16T20:00:42 | 182,712,987 | 1,081 | 50 | MIT | 2020-05-11T20:15:39 | 2019-04-22T09:12:27 | Python | UTF-8 | Python | false | false | 12,027 | py | image.py | """
image.py file. Part of the Contextualise project.
February 13, 2022
Brett Alistair Kromkamp (brettkromkamp@gmail.com)
"""
import os
import uuid
import maya
from flask import Blueprint, current_app, flash, redirect, render_template, request, session, url_for
from flask_login import current_user
from flask_securit... |
470fb74ea8a27d81155addad788a63a27b7d1491 | 7e6f0efd6f4733d09e61b4c6658455e6727cd48f | /seed/models/analyses.py | 6c10af2068b35ee79bd2a8499ba079eff93183ac | [
"BSD-2-Clause"
] | permissive | SEED-platform/seed | 0e4a6a2fa93f4c2528d0c295163a91f836a4253d | 680b6a2b45f3c568d779d8ac86553a0b08c384c8 | refs/heads/develop | 2023-09-01T10:46:25.502697 | 2023-08-30T18:44:21 | 2023-08-30T18:44:21 | 25,450,714 | 108 | 75 | NOASSERTION | 2023-09-13T22:18:47 | 2014-10-20T04:26:53 | Python | UTF-8 | Python | false | false | 6,637 | py | analyses.py | # !/usr/bin/env python
# encoding: utf-8
"""
SEED Platform (TM), Copyright (c) Alliance for Sustainable Energy, LLC, and other contributors.
See also https://github.com/seed-platform/seed/main/LICENSE.md
"""
import logging
from django.db import models
from seed.analysis_pipelines.utils import get_json_path
from seed.... |
36f2038672a5c4d051b01c1e5237b805867dbedf | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /robot-server/robot_server/service/legacy/models/modules.py | 61c68e3aa4b8ca7c98742f2e98b148e23b2c1d8c | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 12,685 | py | modules.py | import typing
from pydantic import BaseModel, Field
class TemperatureModuleLiveData(BaseModel):
"""Temperature Module live data"""
currentTemp: float = Field(..., description="The current temperature of the module")
targetTemp: typing.Optional[float] = Field(
..., description="The target temperat... |
e3018a35a4999db3cb19f95507db09bfe33da75f | fe90bf63c34511ec9a4d7cb5a90957fbbb03a504 | /boundary_layer/oozier/jsp_macros.py | 7b1fd37a25ab5133111d212419db4fd4d93c9e3f | [
"Apache-2.0"
] | permissive | etsy/boundary-layer | 778b115f94efc5d50986a289daf3ad265b38926c | c29594957c1fb47e308fcc89f7edcefc0797fc89 | refs/heads/master | 2023-07-21T17:03:15.769537 | 2023-01-04T14:05:53 | 2023-01-04T14:05:53 | 142,857,095 | 263 | 67 | Apache-2.0 | 2023-07-19T19:57:04 | 2018-07-30T09:51:52 | Python | UTF-8 | Python | false | false | 3,615 | py | jsp_macros.py | # -*- coding: utf-8 -*-
# Copyright 2018 Etsy 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... |
3a122ad29266fe29236918b60fa25c167b760135 | 168f6e03f82b9a6530ce174659c218a162248b4d | /minidump/utils/winapi/psapi.py | 6cfc9965bdd4a7d21a07b63bacd30beb787d57e6 | [
"MIT"
] | permissive | skelsec/minidump | c35a07846540c345d73e72c7e39525e42ba99662 | 069422590a5856eec8bfcf174b55a45442b8942f | refs/heads/master | 2023-04-07T18:58:30.406970 | 2023-02-21T15:35:03 | 2023-02-21T15:35:03 | 134,586,242 | 226 | 50 | MIT | 2023-03-20T17:39:12 | 2018-05-23T15:02:19 | Python | UTF-8 | Python | false | false | 2,398 | py | psapi.py |
from minidump.utils.winapi.defines import *
# typedef struct _MODULEINFO {
# LPVOID lpBaseOfDll;
# DWORD SizeOfImage;
# LPVOID EntryPoint;
# } MODULEINFO, *LPMODULEINFO;
class MODULEINFO(Structure):
_fields_ = [
("lpBaseOfDll", LPVOID), # remote pointer
("SizeOfImage", DWORD),
... |
a73066bd337fb81b5327b25616a522daa1c47a11 | fdfffa8cacb572a157ead4a9723f90b25ecfe50c | /examples/redis/redis-example.py | 0a2eac5af1714367f073b293e282f6fd690805ab | [
"Apache-2.0",
"LicenseRef-scancode-gutenberg-2020",
"CC0-1.0",
"BSD-3-Clause",
"LGPL-2.0-or-later"
] | permissive | apache/ignite | 0bc83435a8db46d9c4df000fe05b1c70165b37d4 | dbf1c7825d74809cd6859c85a8ac9ed9ac071e39 | refs/heads/master | 2023-08-31T21:31:04.618489 | 2023-08-31T19:43:09 | 2023-08-31T19:43:09 | 31,006,158 | 4,806 | 2,308 | Apache-2.0 | 2023-09-14T18:56:33 | 2015-02-19T08:00:05 | Java | UTF-8 | Python | false | false | 1,779 | py | redis-example.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 ... |
9fe83268b1205ba045715121989c247b31888975 | af6484154df8451750cd9cbce0f62f549c100b55 | /models/vision/detection/configs/faster_rcnn/SM/CI/4/faster_rcnn_r50v1_d_fpn_1x_coco.py | 94a5ae63f7b98b6eceaf6bb193178b60651f0cdc | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | aws-samples/deep-learning-models | 375cd60d45379a290c77dc91142999278d12e8ad | 0a852badc1004b9ae32a3a1c44bdec1ff9604329 | refs/heads/master | 2023-01-06T17:04:26.841548 | 2023-01-04T20:03:37 | 2023-01-04T20:03:37 | 141,620,532 | 141 | 80 | NOASSERTION | 2023-01-05T20:31:25 | 2018-07-19T19:07:10 | Python | UTF-8 | Python | false | false | 61 | py | faster_rcnn_r50v1_d_fpn_1x_coco.py | base_files = ['../../4/faster_rcnn_r50v1_d_fpn_1x_coco.py']
|
adf735fc8e42ba430bcf85f25527508dfb3b8739 | 9a2bbc25016326b3b1da275e3b9d9a3c5c5878a6 | /project/game/ai/kan.py | 2b226add2e6dc22cd338f6879c48e00355687a00 | [
"MIT"
] | permissive | MahjongRepository/tenhou-python-bot | 3daabf510d58dfe7525bccf0df1575f027b632d2 | 112b08faab08ee862813de06cb5acc5db1c4feb0 | refs/heads/dev | 2023-07-20T14:51:02.101557 | 2023-07-08T10:11:47 | 2023-07-08T10:11:47 | 56,445,019 | 217 | 75 | MIT | 2023-05-23T02:05:41 | 2016-04-17T15:54:58 | Python | UTF-8 | Python | false | false | 6,687 | py | kan.py | from typing import Optional
import utils.decisions_constants as log
from mahjong.tile import TilesConverter
from mahjong.utils import is_pon
from utils.decisions_logger import MeldPrint
class Kan:
def __init__(self, player):
self.player = player
# TODO for better readability need to separate it on t... |
b110b81f00eb474068046957f672e2264f4a0612 | bed34365a9dab825fd9f4a4ff1b0863f441266ac | /neutron/agent/linux/external_process.py | f1e902eeb187e2cc3ff29b5851a974bc10561c55 | [
"Apache-2.0"
] | permissive | openstack/neutron | 0913ee3cd69d5bdb9c10aa084d4e1803abee320c | dde31aae392b80341f6440eb38db1583563d7d1f | refs/heads/master | 2023-08-31T13:09:41.831598 | 2023-08-31T11:37:30 | 2023-08-31T11:37:30 | 2,400,289 | 1,174 | 1,325 | Apache-2.0 | 2022-06-29T08:00:05 | 2011-09-16T16:04:08 | Python | UTF-8 | Python | false | false | 11,420 | py | external_process.py | # Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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... |
2e8d8715a2ba3e1e62d4b5b02b643a249e104143 | a5622dafafd782af153be2bc0bd19cb086fd07b2 | /tests/integration_tests/tests/agent_tests/test_agent_install_workflow.py | 234c16823f2569058ed1fc2228899ad579409b79 | [
"Apache-2.0"
] | permissive | cloudify-cosmo/cloudify-manager | 8b2d226ad5a9dd8103d7690b2f8081bef24078e1 | c0de6442e1d7653fad824d75e571802a74eee605 | refs/heads/master | 2023-09-06T09:11:51.753912 | 2023-09-04T08:01:58 | 2023-09-04T08:01:58 | 18,326,574 | 146 | 84 | Apache-2.0 | 2023-09-04T08:02:00 | 2014-04-01T11:06:47 | Python | UTF-8 | Python | false | false | 9,979 | py | test_agent_install_workflow.py | ########
# Copyright (c) 2016 GigaSpaces Technologies 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... |
8a844c8ce02fca8e64eb10d67fb8b764a19d4c3f | 95b4a15808b9c412c8364db80fd619a65dd587e0 | /docs/userguide/tutorials/geometry/curves_and_surfaces/curve_from_circle.py | 8ecff71057d8d7f06ed3f66f3cf2cf4cb357ca74 | [
"MIT"
] | permissive | compas-dev/compas | 11d5c4d9afd554833297b4a5dbe6a975e6940ce3 | 486e2e9332553240bcbd80e100d26bff58071709 | refs/heads/main | 2023-08-31T15:49:32.430570 | 2023-08-17T10:19:52 | 2023-08-17T10:19:52 | 104,857,648 | 286 | 116 | MIT | 2023-09-12T13:53:36 | 2017-09-26T08:28:01 | Python | UTF-8 | Python | false | false | 635 | py | curve_from_circle.py | from compas.geometry import Vector, Point, Plane
from compas.geometry import Polyline
from compas.geometry import Circle
from compas.geometry import NurbsCurve
from compas.artists import Artist
from compas.colors import Color
circle = Circle(Plane(Point(0, 0, 0), Vector(0, 0, 1)), 1.0)
curve = NurbsCurve.from_circle(... |
229e3581bb1c81b82b3cef07b865d02fb69afc5d | 3c41443364da8b44c74dce08ef94a1acd1b66b3e | /osf_tests/test_validators.py | dc5613893560a01bf19ffb9cb3652071dc8f95ad | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | CenterForOpenScience/osf.io | 71d9540be7989f7118a33e15bc4a6ce2d2492ac1 | a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e | refs/heads/develop | 2023-09-04T03:21:14.970917 | 2023-08-31T14:49:20 | 2023-08-31T14:49:20 | 10,199,599 | 683 | 390 | Apache-2.0 | 2023-09-14T17:07:52 | 2013-05-21T15:53:37 | Python | UTF-8 | Python | false | false | 1,760 | py | test_validators.py | import pytest
from osf.exceptions import ValidationValueError
from osf.models import validators
from osf_tests.factories import SubjectFactory
# Ported from tests/framework/test_mongo.py
def test_string_required_passes_with_string():
assert validators.string_required('Hi!') is True
def test_string_required_fail... |
e099fe690cfca8f7dfb6161707857dd923c42b87 | b8c1ee67d1e770ca0a49771751df8cef6a5b6935 | /tests/test_benchmarks.py | be6e33ddeea91307d1e3c2bf51da57fb868c9281 | [
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | PyThaiNLP/pythainlp | 2922c6e4723f1828d39793eb722dc163d141c4f2 | 43cd4f8029d2d9b0d3fd1e4cc30faab7e8052eeb | refs/heads/dev | 2023-09-04T03:42:44.488153 | 2023-08-20T04:10:28 | 2023-08-20T04:10:28 | 61,813,823 | 761 | 264 | Apache-2.0 | 2023-08-20T04:10:30 | 2016-06-23T14:57:26 | Python | UTF-8 | Python | false | false | 2,931 | py | test_benchmarks.py | import unittest
import numpy as np
import yaml
from pythainlp.benchmarks import word_tokenization
with open("./tests/data/sentences.yml", "r", encoding="utf8") as stream:
TEST_DATA = yaml.safe_load(stream)
class TestBenchmarksPackage(unittest.TestCase):
def test_preprocessing(self):
self.assertIsNot... |
e58c6075bc67908b6b902e7661c4bad3abdc410e | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/ao/pruning/_experimental/pruner/lstm_saliency_pruner.py | 4a0d74d6dc933552fefd47e0e950749079a627fb | [
"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 | 2,050 | py | lstm_saliency_pruner.py | from typing import cast
import torch
from .base_structured_sparsifier import BaseStructuredSparsifier, FakeStructuredSparsity
class LSTMSaliencyPruner(BaseStructuredSparsifier):
"""
Prune packed LSTM weights based on saliency.
For each layer {k} inside a LSTM, we have two packed weight matrices
- weig... |
4f9561a5befeafd33f198d5eff693d8dc38d1627 | 6416b746ee71d897789eab1e450000831674dbd0 | /src/otx/algorithms/segmentation/adapters/mmseg/models/schedulers/poly.py | c4f79b1bddde5a78d257396d6fda1d6fc6b5133f | [
"Apache-2.0"
] | permissive | openvinotoolkit/training_extensions | c921f83ad52311af96ff45ae0b88d0aecddd855b | 80454808b38727e358e8b880043eeac0f18152fb | refs/heads/develop | 2023-08-31T06:29:07.229339 | 2023-08-31T01:57:26 | 2023-08-31T01:57:26 | 154,843,614 | 397 | 230 | Apache-2.0 | 2023-09-14T06:17:01 | 2018-10-26T14:02:29 | Python | UTF-8 | Python | false | false | 1,974 | py | poly.py | """Polynomial scheduler."""
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import numpy as np
from otx.algorithms.segmentation.adapters.mmseg.utils.builder import SCALAR_SCHEDULERS
from .base import BaseScalarScheduler
@SCALAR_SCHEDULERS.register_module()
class PolyScalarScheduler(... |
524dec4a9c0a5d6e65dbf3e1ebe73b94adc9a2c7 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/tests/testdir_utils/pyunit_deprecations.py | e4870d6811a85247b3e206b178bc6e3dd626fe84 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 7,660 | py | pyunit_deprecations.py | import os
import re
import sys
import warnings
from h2o.utils.metaclass import deprecated_params, deprecated_property, deprecated_fn, fullname
sys.path.insert(1, os.path.join("..",".."))
from tests import pyunit_utils as pu
def test_deprecated_params_without_new_param():
class Foo:
@deprecated_para... |
f8a127dc0977b7576b948fac0be15a63b20938bb | ce5fd5607bcf8feb39f69a1363eee6c6cce5e7e7 | /vmesssed.py | 5c8952213f51ec2d30711eea3907e935a9214078 | [
"MIT"
] | permissive | boypt/vmess2json | e04387b5d273262f0d6b62dfca4116ce368d59c3 | ebba0e94b98fda4267a6ad3e728aa797df8abb8a | refs/heads/master | 2023-03-07T23:42:42.755095 | 2022-01-13T03:16:03 | 2022-01-13T03:16:03 | 166,919,168 | 467 | 149 | MIT | 2023-02-24T14:45:29 | 2019-01-22T03:14:45 | Python | UTF-8 | Python | false | false | 5,160 | py | vmesssed.py | #!/usr/bin/env python3
import os
import re
import json
import base64
import argparse
import binascii
vmscheme = "vmess://"
ssscheme = "ss://"
def parseLink(link):
if link.startswith(ssscheme):
return parseSs(link)
elif link.startswith(vmscheme):
return parseVmess(link)
else:
print(... |
a1251f6f7f65bdf5a6445d831bf026be2b9cebf0 | 0ba02a4fdb83ae1243dcbb71201b1ac663891cdd | /omnidet/train_distance_semantic_detection_motion.py | cfbf6895e7fa0100d7edcf5a14c65b2268b7ec72 | [
"Apache-2.0",
"MIT"
] | permissive | valeoai/WoodScape | d3b522b03846e410de36a8d3a29d74892556a0ec | 597d9dda472c09bafea58ea69853948d63197eca | refs/heads/master | 2023-08-18T07:12:58.960682 | 2022-03-23T18:03:02 | 2022-03-23T18:03:02 | 199,622,246 | 530 | 121 | null | 2023-08-26T16:16:46 | 2019-07-30T09:41:01 | Python | UTF-8 | Python | false | false | 4,413 | py | train_distance_semantic_detection_motion.py | """
Distance estimation, Semantic segmentation, 2D detection and Motion segmentation training for OmniDet.
# author: Varun Ravi Kumar <rvarun7777@gmail.com>
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; Authors provide no warranty with the software
and are not liable... |
cc6c667df88ddbae77fb75edf7e2e5921a219c61 | e34b975ff93191a65a2953745fba295fe42ccb95 | /strategyManager/strategyTest.py | db4d7911cc79b9063bef7753ab75d55097d7a7e2 | [
"MIT"
] | permissive | sirnfs/OptionSuite | 1d5869563ec440c86259a473478cffd571bf76dd | ab45132567ce71099be4fab19ac7bce4d9dd9191 | refs/heads/master | 2023-07-25T21:44:47.828135 | 2023-07-10T14:45:36 | 2023-07-10T14:45:36 | 88,125,604 | 155 | 51 | MIT | 2023-07-10T14:45:03 | 2017-04-13T04:39:44 | Python | UTF-8 | Python | false | false | 566 | py | strategyTest.py | import datetime
import unittest
from optionPrimitives import optionPrimitive
from strategyManager import strategy
class TestStrategyClass(unittest.TestCase):
def testStrategyClassCreation(self):
"""Tests than an exception is raised when class is instantiated."""
with self.assertRaisesRegex(TypeError, 'Canno... |
6a307f8689de1df68e5de5d5d12fd6ca9fdb8d47 | 916b59ec59086d9ce39cfa58e86ab6ca335a9c37 | /src/exoplanet/orbits/simple.py | c4c45e3c8936f09261a82edc1915dfed3d80e327 | [
"MIT"
] | permissive | exoplanet-dev/exoplanet | cfff3f283180b18af1ffda517167ada0f8f8e518 | 6b0c682ded988ef967e42359fbeac572b906ee19 | refs/heads/main | 2023-08-31T15:39:20.816098 | 2023-08-29T11:49:28 | 2023-08-29T11:49:28 | 138,077,978 | 118 | 38 | MIT | 2023-09-12T05:09:25 | 2018-06-20T19:40:54 | Python | UTF-8 | Python | false | false | 3,661 | py | simple.py | # -*- coding: utf-8 -*-
__all__ = ["SimpleTransitOrbit"]
import aesara_theano_fallback.tensor as tt
import numpy as np
from ..utils import as_tensor_variable
class SimpleTransitOrbit:
"""An orbit representing a set of planets transiting a common central
This orbit is parameterized by the observables of a ... |
2af2b28ee88c750639f0e5ea204138fd0f936fba | 5095200e9ca55cd3a37af34ed44448c02e2a1bb5 | /modules/image/Image_editing/super_resolution/swinir_m_real_sr_x4/module.py | 8c40ab71924869b2ab690419d848ac66783c5013 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHub | 8712603ef486c45e83eb0bc5725b0b3ed3ddbbde | b402610a6f0b382a978e82473b541ea1fc6cf09a | refs/heads/develop | 2023-07-24T06:03:13.172978 | 2023-03-28T11:49:55 | 2023-03-28T11:49:55 | 162,672,577 | 12,914 | 2,239 | Apache-2.0 | 2023-07-06T21:38:19 | 2018-12-21T06:00:48 | Python | UTF-8 | Python | false | false | 4,674 | py | module.py | import argparse
import base64
import os
import time
from typing import Union
import cv2
import numpy as np
import paddle
import paddle.nn as nn
from .swinir import SwinIR
from paddlehub.module.module import moduleinfo
from paddlehub.module.module import runnable
from paddlehub.module.module import serving
def cv2_t... |
18cc848b6d0b7376856782132d403c45e9f430d1 | c168fe819b446640957e5e310ef89fcfe28662b3 | /torchbenchmark/models/pytorch_CycleGAN_and_pix2pix/models/colorization_model.py | 2b4a12722e52cf93b85504bbe9a078f7b396d28b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | pytorch/benchmark | 7b55e8d714de2ea873e03df43811aab3848485dd | df4da9bdff11a2f948d5bd4ac83da7922e6f44f4 | refs/heads/main | 2023-08-29T13:06:09.671728 | 2023-08-28T16:51:55 | 2023-08-28T16:51:55 | 92,541,759 | 685 | 220 | BSD-3-Clause | 2023-09-14T18:10:18 | 2017-05-26T19:21:12 | Python | UTF-8 | Python | false | false | 3,013 | py | colorization_model.py | from .pix2pix_model import Pix2PixModel
import torch
from skimage import color # used for lab2rgb
import numpy as np
class ColorizationModel(Pix2PixModel):
"""This is a subclass of Pix2PixModel for image colorization (black & white image -> colorful images).
The model training requires '-dataset_model color... |
44e33346c15df782c1cff5c1e213f95adfcb3891 | 90446a6169fc6e0eee42e50127d84140c45024f3 | /examples/vae.py | 5696f62e39d79f28a7148b587314df857c6a36b5 | [
"Apache-2.0"
] | permissive | pyro-ppl/funsor | ab13a1fa6c9931143302daa7d3150db308797fdb | ff5e410de720bc1f423f57cf156592fc194b058c | refs/heads/master | 2023-08-31T17:16:00.126501 | 2023-02-06T22:03:09 | 2023-02-06T22:03:09 | 168,430,006 | 230 | 23 | Apache-2.0 | 2023-08-31T18:34:44 | 2019-01-30T23:13:39 | Python | UTF-8 | Python | false | false | 3,968 | py | vae.py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
"""
Example: VAE MNIST
==================
"""
import argparse
import os
import typing
from collections import OrderedDict
import torch
import torch.utils.data
from torch import nn, optim
from torch.nn import functional as F
from tor... |
6476ca77c2d042c5f18f4051aee9fd2d9e24a3e0 | 2d5a3cde8291c1f733f63b83e3d02f77321a9f12 | /python/django/django-realworld/django-realworld-example-app/conduit/apps/authentication/views.py | b12d8674448c200f954d7bd1252324832a395080 | [
"BSD-3-Clause"
] | permissive | DataDog/trace-examples | 99d5e6e0984beefb08a2a3ead0dc35e19798d932 | 121636bbae446fb93f56c14a83ba819faf327d1f | refs/heads/master | 2023-08-19T00:30:52.632661 | 2023-03-23T15:14:13 | 2023-03-23T15:14:13 | 61,754,713 | 106 | 73 | BSD-3-Clause | 2023-03-08T14:06:45 | 2016-06-22T22:08:05 | Python | UTF-8 | Python | false | false | 3,145 | py | views.py | from rest_framework import status
from rest_framework.generics import RetrieveUpdateAPIView
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from .renderers import UserJSONRenderer
from .serializers import (
Login... |
9dcac38d251f1a0da64449f133427acffaf5d967 | ac235a23f22be0d6f1818bb53902177f9969813a | /ddtrace/contrib/asyncio/wrappers.py | ddbabc4ecac7d1a46db0a1701ced5af07b6720b3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DataDog/dd-trace-py | f09d6d48c4c69aea68f999fc8a458ade5c6150cf | 1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17 | refs/heads/1.x | 2023-09-01T20:25:26.746324 | 2023-09-01T18:54:37 | 2023-09-01T18:54:37 | 61,572,326 | 461 | 426 | NOASSERTION | 2023-09-14T20:38:57 | 2016-06-20T18:52:23 | Python | UTF-8 | Python | false | false | 953 | py | wrappers.py | from .compat import asyncio_current_task
from .provider import AsyncioContextProvider
def wrapped_create_task(wrapped, instance, args, kwargs):
"""Wrapper for ``create_task(coro)`` that propagates the current active
``Context`` to the new ``Task``. This function is useful to connect traces
of detached exe... |
f94b94fd2b90ccc15877a3c5e84b40c5a7be9312 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Tekla/Structures/ModelInternal_parts/dotAssembly_t.py | 3b8806feb46b641253987a07ed655e29e52f2097 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 271 | py | dotAssembly_t.py | class dotAssembly_t(object):
# no doc
aAssemblyOtherPartsIds=None
aAssemblySubAssemblyIds=None
aName=None
AssemblableId=None
MainAssembly=None
MainPart=None
ModelObject=None
nAssemblyOtherParts=None
nAssemblySubAssemblies=None
NumberingSeries=None
Type=None
|
9885012256f548a1a872c2671dee9801fead46ac | ca93302d06425c04492e92b801277496ecde68d3 | /redis/commands/graph/execution_plan.py | 179a80cca02732ca956c9051cf89889d8ff49704 | [
"MIT"
] | permissive | redis/redis-py | 2c34d4511e31033ed85b70437454ff5c0c2c67d1 | e3de026a90ef2cc35a5b68934029a0ef2a5b2f53 | refs/heads/master | 2023-09-04T09:53:01.713856 | 2023-08-31T09:26:48 | 2023-08-31T09:26:48 | 363,150 | 2,213 | 513 | MIT | 2023-09-14T14:05:30 | 2009-11-06T10:22:26 | Python | UTF-8 | Python | false | false | 6,742 | py | execution_plan.py | import re
class ProfileStats:
"""
ProfileStats, runtime execution statistics of operation.
"""
def __init__(self, records_produced, execution_time):
self.records_produced = records_produced
self.execution_time = execution_time
class Operation:
"""
Operation, single operation... |
b9a438582aa90fe76e70413a58050645d45f56fc | 3d860de237a8e8b40da6594148bee7b2269af35a | /parse.py | 3c6ae2e8e8447bc992bc29e6a3ed3e10f6ed7626 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | distributed-system-analysis/smallfile | 16a02bf2f2bba39c825c5d5fe2882804a41afeaf | aa2519de5bf0b3b383db2c31eacbf8ac4328e19c | refs/heads/main | 2023-05-24T21:24:12.116057 | 2023-05-08T21:59:34 | 2023-05-17T11:20:57 | 4,494,878 | 109 | 36 | Apache-2.0 | 2023-05-23T20:09:42 | 2012-05-30T13:12:38 | Python | UTF-8 | Python | false | false | 12,262 | py | parse.py | # -*- coding: utf-8 -*-
"""
parse.py -- parses CLI commands for smallfile_cli.py
Copyright 2012 -- Ben England
Licensed under the Apache License at http://www.apache.org/licenses/LICENSE-2.0
See Appendix on this page for instructions pertaining to license.
"""
import argparse
import os
import smallfile
import smf_t... |
a5e60e2bdee03a7fc771d0be637878427a2aad57 | 095e5e86c931af6553996b0a128c07d94b38cbca | /microbench/conftest.py | 8e553ffe76185d17bd71edb2512da4acf1bd7b8f | [
"MIT"
] | permissive | hpyproject/hpy | 1dc9e5e855fa006b1728703c5925addbb43cf792 | 8310a762d78e3412464b1869959a77da013e6307 | refs/heads/master | 2023-09-03T21:18:17.273371 | 2023-07-24T07:26:14 | 2023-07-24T07:26:14 | 196,559,763 | 681 | 41 | MIT | 2023-07-24T07:26:16 | 2019-07-12T10:27:56 | Python | UTF-8 | Python | false | false | 3,805 | py | conftest.py | import re
import time
from collections import defaultdict
import pytest
import _valgrind
class Timer:
def __init__(self, nodeid):
self.nodeid = nodeid
self.start = None
self.stop = None
def __enter__(self):
if self.start is not None:
raise ValueError('You cannot us... |
9a5aeba9ce5f7d3f3f3a492567ef8bab9ca0d353 | 76fb0a3cfc9d9362ab29174bd1d55e888ea4d7f6 | /tfx/dsl/components/common/importer.py | 48104e0d04d8e2c855ba6647091c0caaadd5479b | [
"Apache-2.0"
] | permissive | tensorflow/tfx | 0cfc9c55171352ecc98c9dfa8ffe976c689d7073 | 1b328504fa08a70388691e4072df76f143631325 | refs/heads/master | 2023-08-30T11:56:50.894497 | 2023-08-29T22:47:19 | 2023-08-29T22:48:26 | 169,116,405 | 2,116 | 899 | Apache-2.0 | 2023-09-14T21:51:42 | 2019-02-04T17:14:36 | Python | UTF-8 | Python | false | false | 13,077 | py | importer.py | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
ea9b3d3a586212847239b03925925ef3ccc5c3ae | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/tank_setup/sub_views/consumable_slot_model.py | 4a310f063842eef25ceb39b12e6bc92f62a8a08a | [] | 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,317 | py | consumable_slot_model.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/tank_setup/sub_views/consumable_slot_model.py
from gui.impl.gen.view_models.views.lobby.tank_setup.sub_views.base_slot_model import BaseSlotModel
class ConsumableSlotModel(BaseSlotModel):
__... |
efed85d870504101c18454be6ba8a65ef1d66c1e | 4262804598ec9669d3537459591bf8e710436b5a | /src/imagetagger/base/context_processors.py | a043ca05445c4d624968d05733c7f20e4275bc5e | [
"MIT"
] | permissive | bit-bots/imagetagger | 5a639c35bf57e28eec2f340f0786cc3c5c34c982 | f8ac5f25bf7375baeef8b23b1be7da331246bde2 | refs/heads/master | 2022-11-28T22:57:05.551770 | 2021-11-26T10:59:18 | 2021-11-26T10:59:18 | 96,428,939 | 255 | 59 | MIT | 2022-11-22T09:21:10 | 2017-07-06T12:41:41 | HTML | UTF-8 | Python | false | false | 789 | py | context_processors.py | from django.conf import settings
from imagetagger.users.models import Team
from imagetagger.tagger_messages.models import TeamMessage
from django.db.models import Q
def base_data(request):
if request.user.is_authenticated:
my_teams = Team.objects.filter(members=request.user)
unread_message_count =... |
6ad4b279e630a465c5fc9ed22586c932ff176ee6 | 7b4ce7c1411fb2a3b0ab088d89bf93ed97b1905d | /dep/scintilla/scintilla-3.21.0/test/XiteQt.py | 1b3a8dfa06164de028a0e025011496b72efcb8d8 | [
"MIT",
"LicenseRef-scancode-scintilla"
] | permissive | gitahead/gitahead | 9fb86aee4df2e60fb1ff5bec615e3f6876b70049 | 81df5b468fc3ebd148320d894e561fb097324b88 | refs/heads/master | 2023-08-15T01:20:34.055687 | 2022-05-24T21:03:38 | 2022-05-24T21:03:38 | 159,882,575 | 1,894 | 318 | MIT | 2022-04-06T18:37:07 | 2018-11-30T21:52:34 | C++ | UTF-8 | Python | false | false | 1,584 | py | XiteQt.py | # -*- coding: utf-8 -*-
# Requires Python 2.7 or later
import ctypes, os, sys, unittest
from PySide.QtCore import *
from PySide.QtGui import *
import ScintillaCallable
sys.path.append("..")
from bin import ScintillaEditPy
scintillaDirectory = ".."
scintillaIncludeDirectory = os.path.join(scintillaDirectory, "inclu... |
a637b9c30a4d7a2e05a979cde00666322a59cf5c | e8201f803bb23a1b9a3eab9fc0fc9b1709e65d2e | /manim_ml/neural_network/architectures/feed_forward.py | 5a1f059c5f337a69eb1488a584ce56eb6af31449 | [
"MIT"
] | permissive | helblazer811/ManimML | 20bc3548ceab75745a8d8088929fec51057e130f | 5df233ea90aba16611d29c6a4b7717eb08ae7e09 | refs/heads/main | 2023-08-09T07:50:38.605540 | 2023-07-22T02:43:52 | 2023-07-22T02:43:52 | 454,906,591 | 1,339 | 73 | MIT | 2023-04-11T02:22:49 | 2022-02-02T19:26:55 | Python | UTF-8 | Python | false | false | 750 | py | feed_forward.py | import manim_ml
from manim_ml.neural_network.neural_network import NeuralNetwork
from manim_ml.neural_network.layers.feed_forward import FeedForwardLayer
class FeedForwardNeuralNetwork(NeuralNetwork):
"""NeuralNetwork with just feed forward layers"""
def __init__(
self,
layer_node_count,
... |
c07d5591470636cfb7e7b71051aad9192dea555a | 105f8bb5f417248b2c56fec113746472cea94f5d | /labs/07_seq2seq/solutions/make_input_output.py | 0732a5a467aefc7d53ae1aa9e23480bffada6a3a | [
"MIT",
"CC-BY-4.0"
] | permissive | m2dsupsdlclass/lectures-labs | 659ce7d8f7a9eb94e776f16a10d0d1df3f037365 | a41bdfde52081eaa615d86c46fceeae1c4b1d0cd | refs/heads/master | 2023-06-01T20:30:17.669627 | 2022-12-07T11:20:05 | 2022-12-07T11:20:05 | 82,718,394 | 1,482 | 674 | MIT | 2022-03-10T21:34:29 | 2017-02-21T19:27:20 | Jupyter Notebook | UTF-8 | Python | false | false | 287 | py | make_input_output.py | def make_input_output(source_tokens, target_tokens, reverse_source=True):
if reverse_source:
source_tokens = list(reversed(source_tokens))
input_tokens = source_tokens + [GO] + target_tokens
output_tokens = target_tokens + [EOS]
return input_tokens, output_tokens |
3f229521fb2ef4a795d00daca0b2244a775cab70 | e7bf1ff05319acc59bba5af5890041bd82c3e197 | /mne/source_estimate.py | 8a39b542bef61f388b61d63f8aec75e1de34aa89 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mne-tools/mne-python | 7e8d7e945dfbbee6432a4955cf050fa823f2d34b | f44636f00666b8eb869417960926d01690ff4f42 | refs/heads/main | 2023-09-04T03:05:37.402100 | 2023-09-03T14:15:18 | 2023-09-03T14:15:18 | 1,301,584 | 2,437 | 1,418 | BSD-3-Clause | 2023-09-14T19:23:38 | 2011-01-28T03:31:13 | Python | UTF-8 | Python | false | false | 131,745 | py | source_estimate.py | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Mads Jensen <mje.mads@gmail.com>
#
# License: BSD-3-Clause
import contextlib
import copy
import os.path as op
from types import GeneratorTy... |
c5b7db9f833eb1e427fa18befaa014d46efcbd0d | 498526dff7df92662c7bd59a7b9fe4e5a4999522 | /examples/qualifier_overloading/qualifier_overloading_example.py | 2ad3efb46fc86b5b95159777a06f0f35d95b65a9 | [
"MIT"
] | permissive | allrod5/injectable | eebf6ba54c385ece22982fd9f266a8a036d1bdf7 | 7cbd7bbf935eb9e62a9c1f34c58769c7e42217e8 | refs/heads/master | 2023-01-28T22:58:06.314991 | 2023-01-11T18:03:57 | 2023-01-11T18:03:57 | 120,220,195 | 101 | 13 | MIT | 2021-08-15T22:44:36 | 2018-02-04T20:26:28 | Python | UTF-8 | Python | false | false | 2,109 | py | qualifier_overloading_example.py | """
In this example you'll learn about overloading qualifiers/classes for injection and how
to take advantage of that to inject multiple dependencies as a list of instances.
Overloading happens when two or more injectables are declared for a same qualifier
or class.
In this example we create a abstract base class ``S... |
f653cbdd5b13d656930a0e014933cf5f7fc448f4 | 88ae8695987ada722184307301e221e1ba3cc2fa | /native_client/src/untrusted/DEPS | b9d27310a64238b4de06a61907bb7b737c8c56df | [
"BSD-3-Clause",
"Zlib",
"Classpath-exception-2.0",
"BSD-Source-Code",
"LZMA-exception",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-intel-osl-1993",
"HPND-sell-var... | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 494 | DEPS | include_rules = [
"+native_client/src/public",
"+native_client/src/shared",
"+native_client/src/untrusted",
"+native_client/src/third_party/dlmalloc",
"+native_client/src/third_party/valgrind",
# For nacl/syscall_bindings_trampoline.h and a couple of tests:
"+native_client/src/trusted/service_runtime/incl... | |
ba83db5aca7d31b49ac4d627070bb69540ad3323 | e07eed9bfcc0d93406610e0df4a95385cd173c01 | /gmond/python_modules/db/riak.py | 908b480be7295273db03f3020c16ee46a7272ba2 | [] | permissive | ganglia/monitor-core | d0c3ed5fe89cfd75c9ac56bbbd1b477e759e719c | 185ab6b3425d391727a19c380691c4ee42fdff69 | refs/heads/master | 2023-08-27T09:34:31.653118 | 2020-12-18T10:29:37 | 2021-11-21T04:48:08 | 2,018,548 | 378 | 183 | BSD-3-Clause | 2021-11-21T22:29:14 | 2011-07-08T15:48:34 | C | UTF-8 | Python | false | false | 31,818 | py | riak.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# [Riak](https://wiki.basho.com/display/RIAK/Riak) is a Dynamo-inspired
# key/value store.
#
# This module collects metrics from the JSON stats interface of riak, available
# at http://localhost:8098/stats. The statistics-aggregator must be enabled in
# your riak configura... |
ae37b8f0d431480f13946a1d2f6d05d77e928b6e | 754128745da0c3231fa46afb7873114a6c7831cd | /puput/migrations/0001_initial.py | a3ef8c32e9a385ecb62de7760f5720bffd937c8d | [
"MIT"
] | permissive | APSL/puput | e64979df5ca821a6d7670ae0524abd3f9253bb94 | da579fe57b0aa423ded56d683b0cb3ee2b536f6f | refs/heads/master | 2023-08-27T22:14:51.207609 | 2023-07-04T07:24:28 | 2023-07-04T07:24:28 | 39,860,842 | 635 | 235 | MIT | 2023-07-11T15:48:12 | 2015-07-28T22:30:09 | Python | UTF-8 | Python | false | false | 6,993 | py | 0001_initial.py | from __future__ import unicode_literals
from django.db import models, migrations
import wagtail.fields
import puput.routes
import datetime
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore'... |
9a2f216a8cba39cadfbd380cde192d463eb719bb | 57767ccd77d484ea60001f28d90270d1e34ac974 | /glance/common/location_strategy/location_order.py | c044bc6250bc5b1f11bff5549bac95f944c82260 | [
"Apache-2.0"
] | permissive | openstack/glance | ff459174fb502ac9b5030ab2d1aafc2fa5e40475 | 11af8f0ed5fcd53ab3865a40ae50e467a0c06e6c | refs/heads/master | 2023-09-04T06:55:03.257371 | 2023-09-02T03:13:30 | 2023-09-02T03:13:30 | 2,155,157 | 389 | 498 | Apache-2.0 | 2020-12-15T05:36:34 | 2011-08-04T15:05:19 | Python | UTF-8 | Python | false | false | 1,080 | py | location_order.py | # Copyright 2014 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... |
41c79ef880acc6e0b96f700288a77900c74e44fc | d1062421aed9448f583d1a084a073f12a5ac74e2 | /sequana/modules_report/bamqc.py | 8f15f786c32841bc0f490f3aae6adf2928b0f90d | [
"BSD-3-Clause"
] | permissive | sequana/sequana | 9d89cea55cf6987b832351ac35d34742620ce64a | 8717094493d1993debd079f324c540541dece70f | refs/heads/main | 2023-08-01T04:02:27.864027 | 2023-07-12T13:12:37 | 2023-07-12T13:12:37 | 53,329,678 | 155 | 41 | BSD-3-Clause | 2023-09-13T12:39:01 | 2016-03-07T14:00:07 | Jupyter Notebook | UTF-8 | Python | false | false | 4,062 | py | bamqc.py | # -*- coding: utf-8 -*-
#
# This file is part of Sequana software
#
# Copyright (c) 2016 - Sequana Development Team
#
# File author(s):
# Thomas Cokelaer <thomas.cokelaer@pasteur.fr>
# Dimitri Desvillechabrol <dimitri.desvillechabrol@pasteur.fr>,
# <d.desvillechabrol@gmail.com>
# Rachel Legen... |
5db006d48cd8c85ad50fe468f96d0421762bb352 | 0ca218c0f54dac33a2ade4accfdf8f5be3207588 | /lib/sqlalchemy/util/_collections.py | 2e793e862b79e515021bc31ca57b46ebcc4fffa3 | [
"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 | 20,401 | py | _collections.py | # util/_collections.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: allow-untyped-defs, allow-untyped-calls
"""Collection classes and help... |
9d1307b654696f3eaeb8357b61ebe3bbf1c6d271 | 85ba0a1df162642fe5ca7e14e06f60e5ae3f6d00 | /recursion/maze.py | 382d4667c431a3e9820028a0693c70e8183f8bae | [
"MIT"
] | permissive | ivanmmarkovic/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python | ad478564167b7f3f8eed607cb23bd0190f4d81f8 | 1a6e8fd5b93c9fe87231bef57bd92b81a40ae38d | refs/heads/master | 2023-02-08T10:49:18.390691 | 2023-01-23T22:22:58 | 2023-01-23T22:22:58 | 157,221,493 | 138 | 42 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | maze.py | from stack import Stack
size: int = 5
matrix = [[0 for x in range(size)] for y in range(size)]
'''
0 - not visited
1 - visited
2 - obstacle
'''
# place maze obstacles
matrix[0][2] = 2
matrix[0][3] = 2
matrix[1][0] = 2
matrix[2][2] = 2
matrix[2][3] = 2
matrix[2][4] = 2
matrix[3][1] = 2
matrix[4][3] = 2
# starting po... |
009927e9c94bff15be7df860b588cf93c3f5713f | fce81b804cae23f525a5ad4370b684bf0dc531a5 | /benchmarks/benchmarks/bench_trim_zeros.py | 4e25a8b021b7717cf8acabf7dd6386d043e85d55 | [
"Zlib",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | numpy/numpy | ba2abcc1d2d46affbb6aabe5aed6407b4b57507e | dc2ff125493777a1084044e6cd6857a42ee323d4 | refs/heads/main | 2023-09-05T10:10:52.767363 | 2023-09-04T18:03:29 | 2023-09-04T18:03:29 | 908,607 | 25,725 | 11,968 | BSD-3-Clause | 2023-09-14T21:26:09 | 2010-09-13T23:02:39 | Python | UTF-8 | Python | false | false | 607 | py | bench_trim_zeros.py | from .common import Benchmark
import numpy as np
_FLOAT = np.dtype('float64')
_COMPLEX = np.dtype('complex128')
_INT = np.dtype('int64')
_BOOL = np.dtype('bool')
class TrimZeros(Benchmark):
param_names = ["dtype", "size"]
params = [
[_INT, _FLOAT, _COMPLEX, _BOOL],
[3000, 30_000, 300_000]
... |
cf010433315f58f9bfb0a6efefbf1e248206c62d | 3a50c0712e0a31b88d0a5e80a0c01dbefc6a6e75 | /thrift/compiler/test/fixtures/includes/gen-py3/service/builders.pyi | a75450570eccccd2e6c92bd097adc0825cdd5320 | [
"Apache-2.0"
] | permissive | facebook/fbthrift | 3b7b94a533666c965ce69cfd6054041218b1ea6f | 53cf6f138a7648efe5aef9a263aabed3d282df91 | refs/heads/main | 2023-08-24T12:51:32.367985 | 2023-08-24T08:28:35 | 2023-08-24T08:28:35 | 11,131,631 | 2,347 | 666 | Apache-2.0 | 2023-09-01T01:44:39 | 2013-07-02T18:15:51 | C++ | UTF-8 | Python | false | false | 511 | pyi | builders.pyi | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
# @generated
#
import typing as _typing
import folly.iobuf as _fbthrift_iobuf
import thrift.py3.builder
import includes.types as _includes_types
import includes.builders as _includes_builders
import module.types as _mod... |
420ed70382bc6eb7adb5fa0f513ba1bd7ad6dee3 | e03bce53de6f88c0e09f56e4fe11c36af0f1161f | /tests/functional/cfngin/test_rollback_dependant/test_runner.py | f66a155c56fe772009e864147e0eb82a914cf0ad | [
"Apache-2.0"
] | permissive | onicagroup/runway | 20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f | 0763b06aee07d2cf3f037a49ca0cb81a048c5deb | refs/heads/master | 2023-08-30T22:35:54.113981 | 2023-08-29T14:13:35 | 2023-08-29T14:13:35 | 122,529,924 | 156 | 79 | Apache-2.0 | 2023-09-13T13:43:50 | 2018-02-22T20:12:55 | Python | UTF-8 | Python | false | false | 1,765 | py | test_runner.py | """Test failed stack with dependency."""
# pylint: disable=redefined-outer-name
from __future__ import annotations
import shutil
from pathlib import Path
from typing import TYPE_CHECKING, Generator
import pytest
from runway._cli import cli
if TYPE_CHECKING:
from click.testing import CliRunner, Result
CURRENT_D... |
1d8488b7a965225df0d2c68daa922cb4a208262e | 96bf0a09449c1fb415b89e937d57556a67204252 | /pysheaf/__init__.py | 112b985242b32861551859dc28f2ce50f37332a9 | [
"Apache-2.0"
] | permissive | kb1dds/pysheaf | 382cccee281845d7072291ccc1379b78a7cf1574 | d636794c5a9ade2ed7af74514333930489f600c4 | refs/heads/master | 2022-05-01T00:50:29.592971 | 2022-04-27T20:05:25 | 2022-04-27T20:05:25 | 23,200,854 | 117 | 27 | null | 2019-04-23T12:04:57 | 2014-08-21T19:53:05 | Jupyter Notebook | UTF-8 | Python | false | false | 23 | py | __init__.py | from .pysheaf import *
|
f9b209c37e68db52f915d70903b83ce3ae56f4d0 | 7030c780db36c7d8efedb1152cf945a3cc248fdb | /python/cuml/tests/explainer/test_explainer_kernel_shap.py | 74c985989f6c781fbefb14eebb835f3ddc086b08 | [
"Apache-2.0"
] | permissive | rapidsai/cuml | 546af8151fd2ee0f737cc4e62386d4b0ede74f3d | 7d86042b8de06bc8acce632230fe5821bd36c17d | refs/heads/branch-23.10 | 2023-08-30T19:17:41.816373 | 2023-08-28T13:23:15 | 2023-08-28T13:23:15 | 152,616,802 | 3,615 | 569 | Apache-2.0 | 2023-09-14T00:21:52 | 2018-10-11T15:45:35 | C++ | UTF-8 | Python | false | false | 20,404 | py | test_explainer_kernel_shap.py | #
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... |
8c849048db9d5e67b73c58a482c1fd90365a4599 | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /tools/fw_upgrade/entity_upgrader.py | d3877b310c61f9506352fa2ff4c1e6b2af2cc179 | [] | 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 | 20,103 | py | entity_upgrader.py | #!/usr/bin/python3
import hashlib
import logging
import mmap
import os
import re
import subprocess
import time
from exceptions import (
FwUpgraderFailedUpgrade,
FwUpgraderMissingFileHash,
FwUpgraderMissingJsonKey,
FwUpgraderUnexpectedFileHash,
FwUpgraderUnexpectedJsonKey,
)
from typing import Any, D... |
df5c1f39de233d43b28b296d31978582a458ec17 | 312a8fde11293cb142334a3860966ec1f75ac401 | /timesketch/lib/analyzers/win_crash.py | 1935fd4250eea2398db1a6072ff026cc0959b145 | [
"Apache-2.0"
] | permissive | google/timesketch | f0fd09062a8a24bac581d2d4286d095d667d2f10 | 24f471b58ca4a87cb053961b5f05c07a544ca7b8 | refs/heads/master | 2023-08-31T21:48:19.602686 | 2023-08-31T11:24:17 | 2023-08-31T11:24:17 | 21,009,909 | 2,263 | 647 | Apache-2.0 | 2023-09-14T14:08:07 | 2014-06-19T17:49:45 | Python | UTF-8 | Python | false | false | 6,653 | py | win_crash.py | """Sketch analyzer plugin for Windows crash artefacts."""
from __future__ import unicode_literals
import re
from timesketch.lib.analyzers import interface
from timesketch.lib.analyzers import manager
class WinCrashSketchPlugin(interface.BaseAnalyzer):
"""Analyzer for Windows application crashes."""
NAME = ... |
d3c458e9724c4cfb7501ceb5193fd880c4195661 | 9e5752ec6fa4f9797dd06f49e9d26dba55b05975 | /mindarmour/privacy/evaluation/_check_config.py | 61b11e189508627fc5b1eb38c99a8cf11756abc3 | [
"Apache-2.0"
] | permissive | mindspore-ai/mindarmour | 8e0d221d4cc77ebf2ce67dbcdf8d2cb8175d7051 | 9cd825b416916c9cda5a7f3623b39b086d16275c | refs/heads/master | 2023-07-09T11:43:45.380811 | 2023-07-07T07:35:27 | 2023-07-07T07:35:27 | 250,692,967 | 151 | 16 | Apache-2.0 | 2020-04-02T09:50:15 | 2020-03-28T01:59:08 | Python | UTF-8 | Python | false | false | 7,143 | py | _check_config.py | # Copyright 2020 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... |
d9696d199827053954226737109bf68f853117ff | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /7_graph/桥和割点/1568. 使陆地分离的最少天数.py | db58a35fd84a884fc557806120150e9bbb0d53e0 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | 1568. 使陆地分离的最少天数.py | # 一共3种情况,0,1,2, 并查集求岛屿数量如果大于2 返回0, 如果岛屿数量为1, tarjan算法求割点,
# 如果找到割点返回 1,没有割点则返回,2
from typing import List
import copy
# Day 0: Check islands at day 0, return 0 if you have less than or greater than one island.
# Day 1: If not, try to add water at any given location, and check if that gives you a valid island form... |
d4f74967da773ffbad85c7556d1b78f1bcbee1f0 | 91d36c3a8692d724ad02d345fed732d52baa3f55 | /TF1/transform.py | d38a7d855e51490d03665d0124b64eabc391af2b | [
"Apache-2.0"
] | permissive | ppwwyyxx/dash-docset-tensorflow | 79446b7a836edc26252753ae60e39ed164972dc9 | 131726ce5c924da7d234e15887a8af953dfe3b2f | refs/heads/master | 2022-11-05T15:06:42.323084 | 2022-10-11T07:32:50 | 2022-10-11T07:32:50 | 48,576,620 | 218 | 32 | Apache-2.0 | 2018-11-21T15:47:50 | 2015-12-25T10:15:44 | CSS | UTF-8 | Python | false | false | 4,728 | py | transform.py | #!/usr/bin/env python
# File: transform.py
import sys
import os
import pathlib
import magic
import multiprocessing as mp
import time
from urllib.parse import urlparse
import bs4
import tqdm
import pygments
import pygments.lexers
import pygments.formatters
from selectolax.parser import HTMLParser
LEXER = pygments.le... |
64aa687e48dd27ecea5ca0af3d446c0f5a219d91 | 091a6200be74bf6577c86f623665bcc24e16b02b | /Getting_Started_With_Raspberry_Pi_Pico/indefinite_loop/code.py | 52b7f86f0b465da59ce3d7bc6a572f7bf83eda9e | [
"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 | 262 | py | code.py | # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Example of infinite loop. Final print statement is never reached."""
print("Loop starting!")
while True:
print("Loop running!")
print("Loop finished!")
|
6d888bea1af68955b3643c0ae7bef4fa351b64e3 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/sharepoint/userprofiles/personal_cache.py | 0f69e91c16c63f4be81997bf5ed214ec47ef17aa | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 1,035 | py | personal_cache.py | from office365.runtime.paths.resource_path import ResourcePath
from office365.runtime.queries.service_operation import ServiceOperationQuery
from office365.sharepoint.base_entity import BaseEntity
class PersonalCache(BaseEntity):
"""Per user cache of key/value pairs organized by folders. Personal cache MAY be use... |
68740385193e0bba434720793bf1b34aafffe546 | a61bf859ceeb1ba98de3863225e07b29e1d7ce8a | /thonny/plugins/circuitpython/api_stubs/msgpack/__init__.pyi | 9847e1a919935df1fbd0c649d21359318ef65ad0 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thonny/thonny | 3974b1860703e8450b837863682117f525a886c6 | 8fc9f5c7cbbe1d1c82aa5503ec4b684e28aa608c | refs/heads/master | 2023-08-31T03:04:34.685140 | 2023-08-24T11:38:36 | 2023-08-24T11:38:36 | 163,728,962 | 2,788 | 1,048 | MIT | 2023-08-10T18:59:37 | 2019-01-01T10:29:50 | Python | UTF-8 | Python | false | false | 2,897 | pyi | __init__.pyi | """Pack object in msgpack format
The msgpack format is similar to json, except that the encoded data is binary.
See https://msgpack.org for details. The module implements a subset of the cpython
module msgpack-python.
Not implemented: 64-bit int, uint, float.
For more information about working with msgpack,
see `the... |
ae92b5758f999c19e4993cc84e75e34e0b4631e6 | 2489a9ea2c9b59cc86f2dd0c6efb6b65370b9f6b | /clusterman/aws/auto_scaling_resource_group.py | 2966ac830a9cdf0fe7b0c27ca224b3e0cfd5dbc2 | [
"Apache-2.0"
] | permissive | Yelp/clusterman | 744e83fa2b7feb14782b358af8dfb8554da7e8e5 | 6c4b8bb424fd84f1087552fb19d992180cf17834 | refs/heads/master | 2023-08-29T03:15:30.865547 | 2023-08-17T09:34:38 | 2023-08-17T09:34:38 | 221,807,101 | 310 | 24 | Apache-2.0 | 2023-08-30T14:03:24 | 2019-11-14T23:49:29 | Python | UTF-8 | Python | false | false | 13,645 | py | auto_scaling_resource_group.py | # Copyright 2019 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
e49ed641a1126c4f13fe9f8c83a2f20cd9c5904e | 83dbdecb561d91bcf584ab4d998311711317908c | /toolkit/mais/training/multiclass/experiments/multi_mixed_mrl_nonan.py | d0cc8c98c249b298dd08db54496828ab1911a3de | [
"CC-BY-4.0",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | petrobras/3W | 05baca38fdb791b4064eab5e14c1734adeb7acbd | 3310ef4f81d5ac6ad2c3107b8554051882b46f8d | refs/heads/main | 2023-07-10T13:08:38.661966 | 2023-06-30T21:49:14 | 2023-06-30T21:49:14 | 478,734,100 | 211 | 39 | Apache-2.0 | 2023-06-30T21:49:16 | 2022-04-06T21:34:52 | Jupyter Notebook | UTF-8 | Python | false | false | 3,794 | py | multi_mixed_mrl_nonan.py | """ definitions for experiment 3 module
Multiclass classification
Wavelet features
Most-Recent Label strategy
Drop windows with NaN label
"""
import numpy as np
from sklearn.metrics import accuracy_score, get_scorer
from sklearn.preprocessing import StandardScaler
from sklearn.impute import SimpleImput... |
664e8affbeeed58889896fe433d49fe523a4033a | 08ee04ae665dcb930ed4b98ca7b91b2dac2cc3b0 | /src/rayoptics/raytr/trace.py | 66146f40902dc2827f572b76b708840f24f04592 | [
"BSD-3-Clause"
] | permissive | mjhoptics/ray-optics | 6bad622f7bb9b3485823b9cc511a6d2b679f7048 | 41ea6d618a93fe14f8bee45fb3efff6a6762bcce | refs/heads/master | 2023-07-09T18:03:36.621685 | 2023-05-08T22:46:36 | 2023-05-08T22:46:36 | 109,168,474 | 195 | 49 | BSD-3-Clause | 2023-08-10T16:53:28 | 2017-11-01T18:34:12 | Python | UTF-8 | Python | false | false | 25,789 | py | trace.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright © 2018 Michael J. Hayford
""" Supports model ray tracing in terms of relative aperture and field.
.. Created on Mon Sep 17 23:10:59 2018
.. codeauthor: Michael J. Hayford
"""
import itertools
import logging
import math
import numpy as np
from numpy.linalg im... |
157f09aa5b19bb16d0f31b20011419f6bba7dc14 | f0456cd042d3cbde062016b5ab423040d1728429 | /tests/version_req_test.py | 2cdcaa7f55d4051e6bea09fb5ded077fc3ae4056 | [
"MIT"
] | permissive | Madoshakalaka/pipenv-setup | 59b4608bd29ab44d49e2e957af24dde3b3c483d2 | 109056e7b33b2ae4242eb56326c4f9bc66dde841 | refs/heads/master | 2023-03-10T20:55:01.611461 | 2022-07-06T18:48:21 | 2022-07-06T18:48:21 | 203,203,922 | 117 | 32 | MIT | 2023-03-03T23:05:07 | 2019-08-19T15:53:06 | Python | UTF-8 | Python | false | false | 1,585 | py | version_req_test.py | # noinspection PyProtectedMember
import pytest
from pipenv_setup.constants import VersionConflict as VC
from pipenv_setup.inconsistency_checker import _VersionReqs
@pytest.mark.parametrize(
("setup_version", "pipfile_version", "expected"),
[
["==1.0.2", "==1.0.2", None],
[">=1.0.2", "==1.0.2"... |
53c9a36ad0defc9fe1fc5f781ed055550e357388 | 9940f6579e010bb7c1fa13885c49bbaf6164723b | /lbry/torrent/session.py | 713d820392ba2623ee88e6282be382b3c94f2cd9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lbryio/lbry-sdk | feaf1143b178b496a9d81c99faf51fac60e6fed1 | eb5da9511e162ef1080cb34af2ee087383cfa94a | refs/heads/master | 2023-08-18T13:06:16.106204 | 2023-02-07T18:50:25 | 2023-04-03T17:34:36 | 41,103,286 | 5,272 | 291 | MIT | 2023-06-28T16:36:20 | 2015-08-20T15:24:10 | Python | UTF-8 | Python | false | false | 9,104 | py | session.py | import asyncio
import binascii
import os
import logging
import random
from hashlib import sha1
from tempfile import mkdtemp
from typing import Optional
import libtorrent
log = logging.getLogger(__name__)
DEFAULT_FLAGS = ( # fixme: somehow the logic here is inverted?
libtorrent.add_torrent_params_flags_t.fla... |
5217f3170f2c51110d16459d577868857d70d54c | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /L1Trigger/L1TGlobal/test/testL1TGlobalProducer_cfg.py | ff2245d6513e15b04579eddd6c9ec3e7b799db65 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 5,889 | py | testL1TGlobalProducer_cfg.py | import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as vpo
opts = vpo.VarParsing('standard')
opts.setDefault('maxEvents', 1000)
opts.register('resetPSCountersEachLumiSec', False,
vpo.VarParsing.multiplicity.singleton,
vpo.VarParsing.varType.bool,
'... |
3c6d618366c050833762816c9400736c3790b197 | 05b0c763ab92086e69a8d00ae6465009c596f6bc | /tests/cpu/test_compile.py | 2cb37d16ba66f1ae3294969b20989a382f56cbc5 | [
"Apache-2.0"
] | permissive | intel/intel-extension-for-pytorch | 60ce2af2ec3a1dacae0d0db13dd51a5b44512e61 | 7f9266789de7ca9d8bcf55606f3204f1a3640640 | refs/heads/master | 2023-09-01T09:13:16.866410 | 2023-08-31T08:00:37 | 2023-08-31T08:00:37 | 256,061,008 | 991 | 144 | Apache-2.0 | 2023-08-13T13:56:07 | 2020-04-15T23:35:29 | Python | UTF-8 | Python | false | false | 1,493 | py | test_compile.py | import unittest
import itertools
import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
import intel_extension_for_pytorch as ipex
from common_utils import TestCase
class Conv_Bn_Relu(nn.Module):
def __init__(self):
super(Conv_Bn_Relu, self).__init__()
self.conv = nn.Con... |
d1b1b74a4c54657786995c6e9c8b9140b32e6931 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /ai/mmdetection/configs/objects365/retinanet_r50-syncbn_fpn_1350k_objects365v1.py | c41dfce8bc67e7f4d18434a2c10a33c66da403c1 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | 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 | 1,355 | py | retinanet_r50-syncbn_fpn_1350k_objects365v1.py | _base_ = [
'../_base_/models/retinanet_r50_fpn.py',
'../_base_/datasets/objects365v2_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
backbone=dict(norm_cfg=dict(type='SyncBN', requires_grad=True)),
bbox_head=dict(num_classes=365))
# training sche... |
ddce7998dfa47736db14a58e0e439875812b5af8 | 5105403f2b75990654519438d8ceabcf80962ebf | /examples/styling/plots/grid_band_hatch.py | e718b2c36c902cfb026dd1a5f4b8dd4dbe352d44 | [
"BSD-3-Clause"
] | permissive | bokeh/bokeh | ed1d81eb07d27d27c6710c9fec9114886047f528 | 310cb2cbeabc4c4b8180cbda566df16039737cdc | refs/heads/branch-3.3 | 2023-08-31T23:53:06.537061 | 2023-08-30T03:43:05 | 2023-08-30T03:43:05 | 3,834,332 | 17,174 | 5,251 | BSD-3-Clause | 2023-09-14T11:37:23 | 2012-03-26T15:40:01 | Python | UTF-8 | Python | false | false | 482 | py | grid_band_hatch.py | from bokeh.plotting import figure, show
p = figure(height=250, width=600, x_range=(0, 10), tools="", toolbar_location=None)
p.line(x=[0,1,2,3,4,5,6,7,8,9,10],
y=[1,3,4,3,1,2,6,5,2,3,4])
p.ygrid.grid_line_color = None
ticks = [0, 2, 4, 6, 8, 10]
p.xaxis[0].ticker = ticks
p.xgrid[0].ticker = ticks
p.xgrid.band... |
5250b7ee01dfd990f3efc0de3a3c234ed56f0d7a | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_runtime/vart/trace/vaitrace/vaitraceCppRunner.py | 888bebc7f197decc072e0bd394099ec0e304433e | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 3,238 | py | vaitraceCppRunner.py | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
# Copyright 2022-2023 Advanced Micro Devices Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
... |
999cca9c688bc76485e0fa8c4f116a1b713204f6 | 091a6200be74bf6577c86f623665bcc24e16b02b | /Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_SoundMeter/code.py | f61354bac485dcd9fd61e0cf0f75c6496abad3e2 | [
"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,445 | py | code.py | # SPDX-FileCopyrightText: 2017 Dan Halbert for Adafruit Industries
# SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries
# SPDX-FileCopyrightText: 2017 Kattni Rembor for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# The MIT License (MIT)
#
# Copyright (c) 2017 Dan Halbert for Adafruit Industries
... |
fea27083f922b715fed2ffaa9083b91a7b34712d | b728c792b5171f6be6ad91919b4a76a6f198b3e9 | /src/lib/dns/tests/testdata/rdata_minfo_toWireUncompressed1.spec | d99a3813ca95436d77b82a5ca9dab24a7985d09c | [
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"BSL-1.0"
] | permissive | bundy-dns/bundy | c8beeca2c051924590794c92a3a58d1980a86024 | 3d41934996b82b0cd2fe22dd74d2abc1daba835d | refs/heads/master | 2021-09-28T16:24:39.037808 | 2021-09-22T06:04:17 | 2021-09-22T06:04:17 | 19,160,469 | 110 | 33 | NOASSERTION | 2021-09-22T06:04:18 | 2014-04-25T20:54:37 | C++ | UTF-8 | Python | false | false | 98 | spec | rdata_minfo_toWireUncompressed1.spec | #
# A simplest form of MINFO: all default parameters
#
[custom]
sections: minfo
[minfo]
rdlen: -1
|
57712ac50c6297ec877fa1bfd029a51ab1b781b8 | 7f59e2c4e771c19378e9839406c220d3985e7efe | /python-toolbox/tests/communication/test_remote_calls.py | 27f19cfc06f54062088f07048fd4ff3cfe6fbb81 | [
"Apache-2.0"
] | permissive | apache/incubator-marvin | c6ff32d50eb01ccd84266587d79f562a9e371496 | 58fdccf2e677041a13966ddbdd96d484edf3b474 | refs/heads/develop | 2023-08-30T12:46:56.973102 | 2022-11-18T15:27:52 | 2022-11-18T15:27:52 | 148,087,939 | 112 | 77 | Apache-2.0 | 2023-03-07T05:45:59 | 2018-09-10T02:27:54 | Jupyter Notebook | UTF-8 | Python | false | false | 3,371 | py | test_remote_calls.py | #!/usr/bin/env python
# coding=utf-8
# Copyright [2020] [Apache Software Foundation]
#
# 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
#
# Unl... |
dabcc1d7af4a1b255a90aac81501233f070480fe | 1742b6719b988e5519373002305e31d28b8bd691 | /sdk/python/pulumi_aws/devicefarm/_inputs.py | f5ef3904c7de885bb19b1d45014a51fc4611fc0f | [
"BSD-3-Clause",
"Apache-2.0",
"MPL-2.0"
] | permissive | pulumi/pulumi-aws | 4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a | 42b0a0abdf6c14da248da22f8c4530af06e67b98 | refs/heads/master | 2023-08-03T23:08:34.520280 | 2023-08-01T18:09:58 | 2023-08-01T18:09:58 | 97,484,940 | 384 | 171 | Apache-2.0 | 2023-09-14T14:48:40 | 2017-07-17T14:20:33 | Java | UTF-8 | Python | false | false | 4,961 | py | _inputs.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
fr... |
81f0c1f80e85874f8060adb0e6638bb6986d08e5 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/scripts/registry_xml.py | 618862e46dd4f794fc77102d35a91c041aa44dd5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 23,064 | py | registry_xml.py | #!/usr/bin/python3
#
# Copyright 2018 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# registry_xml.py:
# Parses information from Khronos registry files..
# List of supported extensions. Add to this list to enabl... |
1fa1c61c3913f82adfc7acecea9f80e4215b919e | 08fb252e3f70e245cdd0e5a8fed47f6fada8b6f8 | /vplanet/quantity.py | 2a843bebb80c503d92b5dc5048c1115e55f3993d | [
"MIT"
] | permissive | VirtualPlanetaryLaboratory/vplanet | 3bba2126520cbe7bee1a512f87435064d3545517 | cb683af69e80e07bc17c06e45678effdc98fc19a | refs/heads/main | 2023-08-31T04:13:58.700282 | 2023-08-30T05:10:20 | 2023-08-30T05:10:20 | 138,067,409 | 128 | 54 | MIT | 2023-09-06T21:30:37 | 2018-06-20T17:53:00 | C | UTF-8 | Python | false | false | 10,909 | py | quantity.py | # -*- coding: utf-8 -*-
import numbers
import re
import astropy
import astropy.units as u
import numpy as np
from astropy.units.core import Unit, UnitBase, UnitsError, dimensionless_unscaled
from astropy.utils.misc import isiterable
# TODO: There may be other methods in
# https://github.com/astropy/astropy/blob/maste... |
3fb626fba337aa4f821a2ffdd60fdbfda17eb066 | 22a8ec81d6240acbf6503458dbd5975e677e7448 | /tests/test_trust_list.py | 4e2ac629da30f9eb8aaba2689f2218984ccbe5d6 | [
"MIT"
] | permissive | wbond/oscrypto | 3f09f5e30c643aa4c3745851e0d0bd0d72d1cd14 | 1547f535001ba568b239b8797465536759c742a3 | refs/heads/master | 2023-08-31T10:06:11.798975 | 2023-08-23T15:53:33 | 2023-08-23T15:53:33 | 36,823,752 | 331 | 69 | MIT | 2023-08-23T11:03:06 | 2015-06-03T18:53:33 | Python | UTF-8 | Python | false | false | 2,962 | py | test_trust_list.py | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import hashlib
import os
import unittest
import sys
from oscrypto import trust_list
from asn1crypto import x509, pem
from ._unittest_compat import patch
patch()
if sys.version_info < (3,):
str_cls = unicode # no... |
5fa5c9966074332d2ee327869e0bd1fceb756437 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /html_parsing/jut_su/get_user_achievements.py | cacd26be6f871e50736add0ba2c66e4bcf17fc18 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 3,804 | py | get_user_achievements.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import re
import time
from dataclasses import dataclass
from urllib.parse import urljoin
from bs4 import BeautifulSoup
from common import session
@dataclass
class Achievement:
icon_url: str
title: str
description: str
date_st... |
ce24cd65aa58c45e864c9e5176dd467c415f86e8 | d88458a65a173999df390117005fa813735e5fe2 | /astroquery/heasarc/tests/test_heasarc_remote.py | a1a489b878e898e20a67dba3be0e997559e156bd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | astropy/astroquery | 9a2793826229ba4b41ec3607ca77832036a534e9 | 51316d7417d7daf01a8b29d1df99037b9227c2bc | refs/heads/main | 2023-09-01T20:52:41.625935 | 2023-08-29T23:22:40 | 2023-08-29T23:22:40 | 4,787,269 | 636 | 365 | BSD-3-Clause | 2023-09-14T21:56:33 | 2012-06-25T20:52:07 | Python | UTF-8 | Python | false | false | 4,207 | py | test_heasarc_remote.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import requests
from ...heasarc import Heasarc
from .conftest import MockResponse, parametrization_local_save_remote, skycoord_3C_273
from astroquery.exceptions import NoResultsWarning
from astropy.coordinates import SkyCoord
from astrop... |
219630ee0d39853389573d44f9faf0450b9a8444 | b4f442bcca18daa73f87e4475a32bfbcf52a74c8 | /examples/torchdata_train_example.py | 5df4c62b3e0383f7ca3ef330c557ffe57eb05a49 | [
"BSD-3-Clause"
] | permissive | pytorch/tnt | 2f97048783e1d6fb37edbf01e69ceb8a6e65b31d | 1f703d5f8c0bb8f06f4ff42d8e30b2efc05856e1 | refs/heads/master | 2023-09-04T08:51:44.536816 | 2023-09-01T20:11:43 | 2023-09-01T20:11:43 | 76,109,394 | 1,654 | 288 | NOASSERTION | 2023-09-14T18:44:24 | 2016-12-10T11:49:58 | Python | UTF-8 | Python | false | false | 6,584 | py | torchdata_train_example.py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import logging
import sys
import tempfile
from argparse import Namespace... |
16b6859c82d895c845fad4c20ffa674ff8f63443 | c86612b6d082cb258dc446d2bff3f47dbe79e2a5 | /pyexfil/Stega/zipception/__init__.py | b2fe52c971debaab23aefb9e5930be1810c84bb1 | [
"MIT"
] | permissive | ytisf/PyExfil | a596d098324b5f436b52a7f385500ef29b883e45 | d544783bc7fcab900034ece10a48ac75ee333fe4 | refs/heads/master | 2023-08-23T10:37:48.316985 | 2023-02-17T03:12:33 | 2023-02-17T03:12:33 | 27,238,179 | 700 | 152 | MIT | 2020-12-03T15:18:46 | 2014-11-27T19:06:24 | Python | UTF-8 | Python | false | false | 2,138 | py | __init__.py |
import os
import sys
import random
from progressbar import *
from zipfile import ZipFile
from pyexfil.includes.encryption_wrappers import PYEXFIL_DEFAULT_PASSWORD
NUMBER_OF_ITERATIONS = random.randint(1345, 6548)
def _get_files_from_dir(dir_page):
file_paths = []
for root, directories, files in os.walk(dir_pag... |
8794d107b4363fe89643189de6a4ed3bd6e69e0d | 48fdd1305ea3b6aad7537909b2ee0764c991d4e8 | /workflow/scripts/enhance_bcf.py | 1067247b408104da3c280b5f8d3baae5aef2050c | [
"Apache-2.0"
] | permissive | cbg-ethz/V-pipe | e62418cbe4f45f040bb6c071a08144dedf98281d | 8c4599509955b33f761ded2889d68777628a4f12 | refs/heads/master | 2023-08-22T05:34:52.941749 | 2023-03-17T21:37:28 | 2023-03-17T22:11:55 | 87,789,709 | 115 | 38 | Apache-2.0 | 2023-05-11T18:34:46 | 2017-04-10T09:01:20 | HTML | UTF-8 | Python | false | false | 1,115 | py | enhance_bcf.py | #!/usr/bin/env python3
"""Amend genotype field to contain all variants."""
import sys
from cyvcf2 import VCF, Writer
def main(fname_in, fname_out, ambiguous_base_coverage_threshold):
"""
ambiguous_base_coverage_threshold:
frequency threshold to include a variant in computation of ambiguous code
... |
a008385237abb2014f09fddede075d4cd53bd925 | 5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda | /pcapkit/protocols/data/internet/ipv6_route.py | ab8848f305002bf624ad31b6df8743e320800d9a | [
"BSD-3-Clause"
] | permissive | JarryShaw/PyPCAPKit | 8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a | a6fe49ec58f09e105bec5a00fb66d9b3f22730d9 | refs/heads/main | 2023-08-29T12:49:58.611378 | 2023-08-28T14:05:43 | 2023-08-28T14:05:43 | 109,791,841 | 204 | 29 | BSD-3-Clause | 2023-09-11T17:09:06 | 2017-11-07T05:41:56 | Python | UTF-8 | Python | false | false | 2,547 | py | ipv6_route.py | # -*- coding: utf-8 -*-
"""data model for IPv6 Routing Header"""
from typing import TYPE_CHECKING
from pcapkit.corekit.infoclass import info_final
from pcapkit.protocols.data.data import Data
if TYPE_CHECKING:
from ipaddress import IPv6Address
from pcapkit.const.ipv6.routing import Routing
from pcapkit.... |
bcf1b9c13fa954c345b9ae9778b1cea8e402d049 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/nlp/hypertext/src/poincare.py | f4352e3f34ff59bdfc8dd2bfbaf3ca6bfe02756d | [
"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 | 8,596 | py | poincare.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 agreed to... |
10b6e22221792e8f770a037fa50f8cb34dc31d95 | 532ad1aedff8528b2e8af4e4e752f32d58b92b0d | /aesara/typed_list/rewriting.py | 2ec5d412eee6b5d7a248d7d6bd73abfde8e65dad | [
"BSD-3-Clause",
"MIT"
] | permissive | aesara-devs/aesara | ebaa204159d4ddb94ede10580c5b8e39d114713f | b5a3cf45f0f6762bb4bb0e2c657f7d3822c74595 | refs/heads/main | 2023-08-09T10:56:56.528283 | 2023-07-15T06:15:49 | 2023-07-15T13:28:29 | 221,231,590 | 861 | 142 | NOASSERTION | 2023-09-05T03:16:16 | 2019-11-12T14:02:08 | Python | UTF-8 | Python | false | false | 779 | py | rewriting.py | from aesara.compile import optdb
from aesara.graph.rewriting.basic import WalkingGraphRewriter, node_rewriter
from aesara.typed_list.basic import Append, Extend, Insert, Remove, Reverse
@node_rewriter([Append, Extend, Insert, Reverse, Remove], inplace=True)
def typed_list_inplace_rewrite(fgraph, node):
if (
... |
37b7ffbabd6d0cd2cd67370bfb1bb03d8eb41341 | ef20f96c497d1bb80889c80ebaab1d6929634bfd | /src/python/tensorflow_cloud/tuner/tests/integration/distributing_cloudtuner_integration_test.py | 592ba7107dedb26bcce25ccb3fa5619a87f16158 | [
"Apache-2.0"
] | permissive | tensorflow/cloud | 55315e12b3145b73040660cb9f558439ecef0c03 | dfd9ca1fe2200d10584c09ab8c3b392c82871d99 | refs/heads/master | 2023-08-19T03:07:10.122202 | 2022-12-22T21:33:50 | 2022-12-22T21:34:29 | 239,587,597 | 385 | 157 | Apache-2.0 | 2023-04-27T20:55:18 | 2020-02-10T18:51:59 | Python | UTF-8 | Python | false | false | 5,364 | py | distributing_cloudtuner_integration_test.py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.