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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
baccf41159024249a36b19ceaa64725f2fbe75f5 | 6f2fef1b207299681f8d67d3831c400bb91de04b | /data_collection/gazette/spiders/pa_associacao_municipios.py | 2eae49b519d8e95d99aa57223fd6aa3d567b0ee1 | [
"MIT"
] | permissive | okfn-brasil/querido-diario | 76177747aa5ad47e99514f38402e6bc747b9a715 | 548a9b1b2718dc78ba8ccb06b36cf337543ad71d | refs/heads/main | 2023-08-22T04:26:30.798196 | 2023-08-18T14:12:37 | 2023-08-18T14:12:37 | 127,598,755 | 402 | 233 | MIT | 2023-09-14T18:56:02 | 2018-04-01T05:01:21 | Python | UTF-8 | Python | false | false | 248 | py | pa_associacao_municipios.py | from gazette.spiders.base.sigpub import SigpubGazetteSpider
class PaAssociacaoMunicipiosSpider(SigpubGazetteSpider):
name = "pa_associacao_municipios"
TERRITORY_ID = "1500000"
CALENDAR_URL = "https://www.diariomunicipal.com.br/famep"
|
f5ad78a4254bcbac1ed3aa7e75ae22e849d6ecc5 | fa6e1299ef52ca2d4a13b3788d2a4d0540728f81 | /plugins/slicer/MONAILabelReviewer/MONAILabelReviewerLib/ImageDataExtractor.py | ba15b7e224f22398aea5ef205d2e89dddf382691 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | Project-MONAI/MONAILabel | c3abd164255a50279fc5aa6a87f4336fff4d6833 | c90f42c0730554e3a05af93645ae84ccdcb5e14b | refs/heads/main | 2023-09-01T21:44:42.465238 | 2023-08-31T17:17:08 | 2023-08-31T17:17:08 | 351,826,770 | 448 | 167 | Apache-2.0 | 2023-09-14T12:06:28 | 2021-03-26T15:25:10 | Python | UTF-8 | Python | false | false | 15,024 | py | ImageDataExtractor.py | # Copyright (c) MONAI Consortium
# 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... |
3cec52ba2ef0b178a274f1fde490dd79180f6197 | 6180ebca3ef7f42c66fef007fb221e340816b47e | /pyro4/pyro_service.py | 7082ae8b42d36c69aedf9ba999071f1b38157154 | [
"MIT"
] | permissive | openquantumhardware/qick | 3af30c30cffb8f3fb67b0cf4d3cab9731e6930d6 | 3d91844e34de86bc0c05f973583ac29e64c00e1a | refs/heads/main | 2023-09-04T15:21:27.126805 | 2023-08-24T22:12:38 | 2023-08-24T22:12:38 | 398,393,723 | 126 | 48 | MIT | 2023-09-13T21:36:17 | 2021-08-20T20:31:23 | Jupyter Notebook | UTF-8 | Python | false | false | 808 | py | pyro_service.py | #!/usr/bin/env python3
"""This file starts a pyro nameserver and the proxying server."""
from pathlib import Path
import subprocess
import time
from qick.pyro import start_server
HERE = Path(__file__).parent
############
# parameters
############
bitfile = '../qick_lib/qick/qick_4x2.bit'
proxy_name ='rfsoc'
ns_port ... |
f2ac7e5e96e1a0c946409307df871fa78031a74e | 40d8473719d5c1fabdd9e488edd4c482aed2f5da | /prob_mbrl/models/core.py | 1cfa815fd0f283f6984499bd9628fe60103a78a4 | [
"MIT"
] | permissive | mcgillmrl/prob_mbrl | 2ac0309b221a45e7feda99b6cdb24d45330755f2 | 0bfb70b31675310539f241f62bba8427d940d551 | refs/heads/master | 2021-06-03T14:10:10.130320 | 2021-04-14T16:45:04 | 2021-04-14T16:45:04 | 139,202,209 | 113 | 15 | MIT | 2020-09-25T19:49:29 | 2018-06-29T22:43:43 | Jupyter Notebook | UTF-8 | Python | false | false | 10,701 | py | core.py | import copy
import inspect
import multiprocessing
import numpy as np
import torch
from .modules import BDropout, BSequential, SpectralNorm
from collections import OrderedDict, Iterable
from functools import partial
from ..utils.angles import to_complex
from prob_mbrl.models import activations
from ..utils.core import ... |
6d903dee6549cd10df040e35af937fc469810020 | 380face90c8169eeca9e61af566ab1ba7590c05b | /vimdoc/args.py | 12fcb204e1b509bb727c4bf4048637b07538b9f0 | [
"Apache-2.0"
] | permissive | google/vimdoc | 778d41b742e611aeea7e6e5645a360395f9c8bbe | ed17321a17a8cf4c21d2f7f77352fc9b0fb42e66 | refs/heads/main | 2023-08-26T05:16:55.444522 | 2022-11-26T18:56:21 | 2022-11-26T18:56:21 | 17,838,265 | 250 | 37 | Apache-2.0 | 2023-04-10T00:01:12 | 2014-03-17T18:12:29 | Python | UTF-8 | Python | false | false | 806 | py | args.py | import argparse
import os
import vimdoc
try:
import shtab
except ImportError:
from . import _shtab as shtab
def Source(path):
if not os.path.isdir(path):
raise argparse.ArgumentTypeError('{} not found'.format(path))
if not os.access(path, os.R_OK):
raise argparse.ArgumentTypeError('Cannot access {}'... |
5f975472428eedee10faaba92c1b0d561dcc4e86 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /PhysicsTools/PatAlgos/python/selectionLayer1/electronCountFilter_cfi.py | 80af141c59547eefb55cd53baaca26468ed67b02 | [
"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 | 262 | py | electronCountFilter_cfi.py | import FWCore.ParameterSet.Config as cms
# module to filter on the number of Electrons
countPatElectrons = cms.EDFilter("PATCandViewCountFilter",
minNumber = cms.uint32(0),
maxNumber = cms.uint32(999999),
src = cms.InputTag("cleanPatElectrons")
)
|
cab60a580c195f5cee977051a0d2f59d671c89ff | cc8988324ad4b0e161f4b12d16aea4dada52de55 | /elektronn3/logger.py | 6412703fc3b73bdc602e829b1cd285aa99d494ce | [
"MIT"
] | permissive | ELEKTRONN/elektronn3 | 54e06dc7909a90718adc1844b1925842fae79a1a | a8b8fa0b68735a106cc4d947bdb0d6647e991fb3 | refs/heads/master | 2023-07-12T06:54:53.627926 | 2023-06-21T15:39:54 | 2023-06-21T15:39:54 | 113,795,977 | 167 | 34 | MIT | 2022-05-20T10:58:43 | 2017-12-11T00:53:48 | Python | UTF-8 | Python | false | false | 2,559 | py | logger.py | # -*- coding: utf-8 -*-
# ELEKTRONN3 - Neural Network Toolkit
#
# Copyright (c) 2017 - now
# Max Planck Institute of Neurobiology, Munich, Germany
# Authors: Martin Drawitsch, Philipp Schubert, Marius Killinger
import logging
import os
import getpass
import sys
import uuid
import colorlog
def logger_setup():
# ... |
f3a47dbd5a1afe1f8d3ea9e04bfae79ee7a9e67f | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/rio/convert.py | 90d6041e99c97727241e586a216db4cec43577e9 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 3,282 | py | convert.py | """File translation command"""
import logging
import click
from cligj import format_opt
import numpy as np
from .helpers import resolve_inout
from . import options
import rasterio
@click.command(short_help="Copy and convert raster dataset.")
@click.argument(
'files',
nargs=-1,
type=click.Path(resolve_p... |
c7752659d8135808218a63090edb2feaeab69cc9 | 9205772e83dc18e0489296f683892ff40373e48e | /locust_plugins/transaction_manager.py | e524495f643183379959db7391e8698a45d95e5c | [
"Apache-2.0"
] | permissive | SvenskaSpel/locust-plugins | e50657bca6469b56232b6439c0fbc8b30c05c6ba | b39d600a4c33964e7da32c6cebf0635ad071ccaa | refs/heads/master | 2023-08-19T03:38:53.585422 | 2023-08-10T13:28:29 | 2023-08-10T13:28:29 | 209,288,596 | 426 | 140 | Apache-2.0 | 2023-09-13T10:14:08 | 2019-09-18T11:10:44 | Python | UTF-8 | Python | false | false | 10,293 | py | transaction_manager.py | from locust import events
from time import time
from datetime import datetime
from csv import writer as csv_writer
from io import StringIO
import locust.stats
from locust.runners import WorkerRunner
class TransactionManager:
"""
Transaction Manager allows transactions spanning multiple tasks to be logged
... |
003f310d0f7b1d5e1396e3bab96617c327c83e06 | d1f0538cd9110a587dce9279a2e3ba4a9137e5e4 | /fill_skillset.py | e13e2a70bff660f317d82d8e9b66e3db3de99c10 | [
"MIT"
] | permissive | umihico/PortfolioHub | 79176e64dc3e5f9f5c8d6e02fc9a3c6af7903e0a | aabd4b32129df5f6cff526f9440d0509d3fc6db5 | refs/heads/master | 2023-04-03T02:11:52.813428 | 2023-01-03T23:53:19 | 2023-01-03T23:53:19 | 157,170,634 | 186 | 20 | null | 2023-03-15T02:59:02 | 2018-11-12T07:06:26 | PHP | UTF-8 | Python | false | false | 3,453 | py | fill_skillset.py | from api import get
from db import get_db
import time
import json
from pprint import pprint
def fill_skillset():
conn = get_db()
cur = conn.cursor()
usernames = select_targets(cur)
if len(usernames) == 0:
return 'zero'
username = usernames[0]
skill_set_dict = username_to_skills(usernam... |
58572af8bcfc2544adef3f0611deb0db5fb77b16 | cd4be8b6bee2964d063b332c0c8784ab6c89c8e5 | /opacus/grad_sample/utils.py | 8b5e8ff50b05a9373bba9d7f48e79be19476aca3 | [
"Apache-2.0"
] | permissive | pytorch/opacus | d55f9c3627943a3c067528849401663cfaf7d622 | 79bdfac28afb526430a938d38513c46936f8670a | refs/heads/main | 2023-09-04T01:03:50.533043 | 2023-08-01T19:37:56 | 2023-08-01T19:37:56 | 226,441,159 | 1,358 | 291 | Apache-2.0 | 2023-09-11T13:29:37 | 2019-12-07T01:58:09 | Jupyter Notebook | UTF-8 | Python | false | false | 2,795 | py | utils.py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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 requi... |
ec13c6bafc99e594b9c4501e03a77b6ad3fa77e3 | 5bed30209083d1dce7f8fb0488ae44e3ef79d190 | /test_model_Projection.py | 232506f62294bb5bb7e6dca283dd6abb3e753b3f | [
"Apache-2.0"
] | permissive | IGLICT/DeepFaceEditing-Jittor | bdaf69e127e5ca99982405a93fb59610fe6b401a | 85e307504dff41e1902937035d1f37862d78e63e | refs/heads/main | 2023-01-24T23:08:20.642926 | 2022-10-20T14:13:24 | 2022-10-20T14:13:24 | 364,292,696 | 269 | 37 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | test_model_Projection.py | import jittor as jt
from jittor import Module
from jittor import nn
import numpy as np
import jittor.transform as transform
from PIL import Image
from combine_model import Combine_Model_Projection
import networks
from argparse import ArgumentParser
img_size = 512
transform_image = transform.Compose([
... |
a47d865cd779e9e9056b158c94d9d38c9bbe27b0 | 307d3837d31f9e3728af2b62ca51ebf63fe6ec6b | /hall_of_fame/kimdonghun/[BOJ]2447_DrawingStar.py | 75597d0a247084e8515e3e32d48b869807d41b74 | [] | no_license | ellynhan/challenge100-codingtest-study | 905043497d154b8a7333ca536e536d013f6e7454 | bcdc6d04f13b12ba80b42e066f9d244d7c2cc698 | refs/heads/master | 2023-09-01T14:10:13.481013 | 2023-08-27T14:38:52 | 2023-08-27T14:38:52 | 401,561,230 | 162 | 176 | null | 2023-09-09T14:56:25 | 2021-08-31T03:30:36 | C++ | UTF-8 | Python | false | false | 458 | py | [BOJ]2447_DrawingStar.py | import sys
def draw_star(n, l):
ans = []
if n == 3:
return l
else:
for i in l:
ans.append(i * 3)
for i in l:
ans.append(i + ' ' * len(l) + i)
for i in l:
ans.append(i * 3)
#print(ans)
return draw_sta... |
ddc3e71773db3cfaa0bf9793900363a2f80a4862 | 5095200e9ca55cd3a37af34ed44448c02e2a1bb5 | /paddlehub/datasets/pascalvoc.py | 9efed98d888cd1a0cda882071f4a92f3dcc3eb84 | [
"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 | 6,958 | py | pascalvoc.py | # coding:utf-8
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... |
25c7b30efc09f5b02afc2461df0e2b17784dff21 | fd659f8f10e08ba0a744c62388b46bdf4b0ef6bd | /common/imp/__init__.py | fbba64a2569e41564831b85baa1ec69720efc5f0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | doosan-robotics/doosan-robot | a2f0e90ea00f599b9469e0d534650e67908dad25 | 560fcb8631726543124a410aba948cbd2b2cefb9 | refs/heads/noetic-devel | 2023-05-25T18:15:51.467579 | 2023-05-22T01:47:25 | 2023-05-22T01:47:25 | 167,874,506 | 123 | 56 | BSD-3-Clause | 2023-05-22T01:47:38 | 2019-01-28T00:22:06 | C++ | UTF-8 | Python | false | false | 44 | py | __init__.py | import sys
sys.dont_write_bytecode = True
|
5e0db789233f0cc40f7fc476a9a0a956406fe5d8 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/nest/test_init.py | ecfe412bdbf7c0deaf7d80884bfe7bac31953623 | [
"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 | 9,749 | py | test_init.py | """Test for setup methods for the SDM API.
The tests fake out the subscriber/devicemanager and simulate setup behavior
and failure modes.
By default all tests use test fixtures that run in each possible configuration
mode (e.g. yaml, ConfigEntry, etc) however some tests override and just run in
relevant modes.
"""
im... |
eab87f1c42d5b2f4e7e7f179ab8df24dc1732963 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/shared/view_helpers/UsersInfoController.py | f0a0ff6cd704047a6bcbc2206bb2f3e3459ac7bf | [] | 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 | 3,466 | py | UsersInfoController.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/view_helpers/UsersInfoController.py
import BigWorld
from AccountCommands import isCodeValid
from debug_utils import LOG_WARNING
from shared_utils import CONST_CONTAINER
from gui.shared.utils.decorators import ReprInjector... |
92c6b06160e04a44294966c19ee62784f3909b66 | 0e0ddc095823c54877c143adacbfcdd6355261de | /libqtile/widget/khal_calendar.py | 9e4824dc0507870b74190e561616024886201839 | [
"MIT"
] | permissive | qtile/qtile | b19108ca632871104a0783a4afbe7350a17b97db | 3f8a00082ad880042d396477d9445954e8d29cf2 | refs/heads/master | 2023-09-01T19:31:09.419767 | 2023-09-01T19:10:00 | 2023-09-01T19:10:00 | 47,476 | 4,203 | 986 | MIT | 2023-09-11T21:21:56 | 2008-08-30T00:16:40 | Python | UTF-8 | Python | false | false | 4,795 | py | khal_calendar.py | # -*- coding: utf-8 -*-
###################################################################
# This widget will display the next appointment on your calendar in
# the qtile status bar. Appointments within the "reminder" time will be
# highlighted. Authentication credentials are stored on disk.
#
# This widget uses the k... |
7f67d331c4655e951fc5b23c40cb66fa266a8403 | eb222db3a5a7155ecd1e4515eb111183cfdae2bc | /ch08/fetch_prediction_requests.py | 206bb909dad023702e94505657aa3ad2b97ef427 | [
"MIT"
] | permissive | rjurney/Agile_Data_Code_2 | 1335140504d59f4a63920f3b2db203d4222decab | 51a2f0bb60552a2a821cd2d2571ea0dc680a5460 | refs/heads/master | 2023-07-05T04:37:07.770591 | 2023-03-22T01:31:12 | 2023-03-22T01:31:12 | 54,056,503 | 483 | 337 | MIT | 2023-03-22T01:31:14 | 2016-03-16T18:25:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,044 | py | fetch_prediction_requests.py | #!/usr/bin/env python
import sys, os, re
import json
import datetime, iso8601
# Save to Mongo
from bson import json_util
import pymongo_spark
pymongo_spark.activate()
# Pass date and base path to main() from airflow
def main(iso_date, base_path):
APP_NAME = "fetch_prediction_requests.py"
# If there is no S... |
77d73b253efaaab7f9eb19b138890c3868fc7e86 | bc6e87f8e9a3f6c35f8080718ac409801dab3b24 | /server/workers/api/src/apis/export.py | 203abc382a94d95d5ac7dc3b262cdabaed839527 | [
"MIT"
] | permissive | OpenKnowledgeMaps/Headstart | b7f56d8562d044e8d96a08f9f7ae0bc6de1076cd | 94dcc248e1892de7b603d5a4dad175f5d8a128db | refs/heads/master | 2023-08-31T20:06:34.485558 | 2023-08-25T17:34:03 | 2023-08-25T17:34:03 | 15,936,466 | 132 | 36 | MIT | 2023-08-25T17:34:05 | 2014-01-15T13:52:50 | JavaScript | UTF-8 | Python | false | false | 9,951 | py | export.py | import os
from flask import Blueprint, request, make_response, jsonify, abort
from flask_restx import Namespace, Resource, fields
from bibtexparser.bwriter import BibTexWriter
from bibtexparser.bibdatabase import BibDatabase
import dateutil.parser as parser
import pytz
import re
export_ns = Namespace("export", descr... |
8ae1e9a11b651ac7c712054da85485f6688d4a62 | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/test/test_unittest.py | bfc3ded6f128da498ad170680264e3cef11fdc42 | [
"ISC",
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 286 | py | test_unittest.py | import unittest.test
from test import support
def test_main():
# used by regrtest
support.run_unittest(unittest.test.suite())
support.reap_children()
def load_tests(*_):
# used by unittest
return unittest.test.suite()
if __name__ == "__main__":
test_main()
|
bf0644adafae5ad13ab5a93a3c53649d714fbac7 | 385b36f7cf1e545b4518bafd2b3097f2931693b7 | /setup.py | 99c510ddb4c532aab48c171d7e6ef28fa1f47769 | [
"MIT"
] | permissive | machine-intelligence-laboratory/TopicNet | 8a90b9362a24f91ea15bda4b4a6d7fd162cf09e1 | 88963c16c65b90789739419ec1697843c9a97129 | refs/heads/master | 2023-04-10T14:31:19.071893 | 2022-11-18T10:26:54 | 2022-11-18T10:26:54 | 206,595,209 | 141 | 18 | MIT | 2022-11-18T10:26:55 | 2019-09-05T15:20:12 | Python | UTF-8 | Python | false | false | 1,602 | py | setup.py | from distutils.core import setup
setup(
name='topicnet',
packages=[
'topicnet',
'topicnet.cooking_machine',
'topicnet.cooking_machine.cubes',
'topicnet.cooking_machine.models',
'topicnet.cooking_machine.recipes',
'topicnet.dataset_manager',
'topicnet.vie... |
6772981271c540942ace87fe17621647bbc609fd | e196fe807b2720eb7f08ad9ca914887341bd9b44 | /tests/plugins/test_lrt.py | dd6a3e3aa6f0771c62c7e52285a27227d0395e01 | [
"BSD-2-Clause"
] | permissive | streamlink/streamlink | ab2ce4a8d71d2abd67f300628f04ce960e7696d0 | 561f7ef854e3ec076e5bd3efb3e7f8efe5df32df | refs/heads/master | 2023-08-29T15:03:17.008502 | 2023-08-26T19:24:39 | 2023-08-27T11:02:30 | 68,402,336 | 9,529 | 1,385 | BSD-2-Clause | 2023-09-13T13:37:33 | 2016-09-16T17:52:50 | Python | UTF-8 | Python | false | false | 740 | py | test_lrt.py | from streamlink.plugins.lrt import LRT
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlLRT(PluginCanHandleUrl):
__plugin__ = LRT
should_match = [
"https://www.lrt.lt/mediateka/tiesiogiai/lrt-opus",
"https://www.lrt.lt/mediateka/tiesiogiai/lrt-klasika",
"https:... |
1771cb68256246e11592c258f6a43508ad8437d0 | e9869359c839c8c175ae7877bc35dcfdfe4058f8 | /kornia/losses/psnr.py | 37688a304da733188eee72ab2c3ef31cc8f2b57c | [
"Apache-2.0"
] | permissive | kornia/kornia | 80f93eae6a70b8bc0c9784f92a842ab9a6ab54ae | 1e0f8baa7318c05b17ea6dbb48605691bca8972f | refs/heads/master | 2023-08-31T06:32:45.960859 | 2023-08-30T21:59:41 | 2023-08-30T21:59:41 | 145,693,916 | 7,351 | 833 | Apache-2.0 | 2023-09-12T21:59:29 | 2018-08-22T10:31:37 | Python | UTF-8 | Python | false | false | 1,776 | py | psnr.py | from __future__ import annotations
import torch
from torch import nn
from kornia import metrics
def psnr_loss(input: torch.Tensor, target: torch.Tensor, max_val: float) -> torch.Tensor:
r"""Function that computes the PSNR loss.
The loss is computed as follows:
.. math::
\text{loss} = -\text{... |
6d5097a131beb01e00f5d64cf4307e50252d719f | 4207610c48cbb9021f4420791a9c9d07550b72d9 | /JUCE/docs/doxygen/process_source_files.py | d9862ff708e69b381f0d5a2ef7a61305ec1ea74e | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only",
"ISC",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"BSD-3-Clause"
] | permissive | RomanKubiak/ctrlr | d98a910eb46f6cf4324da3fc3ae664cc7dd5aec9 | 8aa00d82127acda42ad9ac9b7b479461e9436aa4 | refs/heads/master | 2023-02-13T00:21:04.546585 | 2022-06-24T10:53:16 | 2022-06-24T10:53:16 | 14,671,067 | 435 | 82 | BSD-3-Clause | 2022-05-31T18:18:23 | 2013-11-24T22:53:11 | C++ | UTF-8 | Python | false | false | 6,593 | py | process_source_files.py | #!/usr/bin/env python
import os
import shutil
import re
import argparse
def get_curly_brace_scope_end(string, start_pos):
"""Given a string and a starting position of an opening brace, find the
position of the closing brace.
"""
start_pos += 1
string_end = len(string)
bracket_counter = 1
... |
087e4f262283d7de6aeeca5ae0d3f0bc50c9ae6e | 72d3d1cda13859b867d398c952ffd8f5cbe90906 | /test/abstractions/databases/test_singleton_database.py | c71ba51e4b17b265e93f20068c5edb8a24309ee5 | [
"MIT"
] | permissive | facebookresearch/Mephisto | a55d553316b4f141a090048ce2ed79de05f6bebb | 1f540f9bd866d5fd625be4a4d61ad6bce564f1ed | refs/heads/main | 2023-08-19T01:41:05.683789 | 2023-08-17T21:05:06 | 2023-08-17T21:05:06 | 203,213,045 | 281 | 78 | MIT | 2023-09-14T21:10:44 | 2019-08-19T16:50:20 | JavaScript | UTF-8 | Python | false | false | 1,048 | py | test_singleton_database.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import shutil
import os
import tempfile
from mephisto.abstractions.test.data_model_database_tester impo... |
fd92886c56870f38212e1ff4d463b7f4393988d2 | d3ef2463f556d6cd166eb29d3a5f5b210a6402e7 | /tests/cupy_tests/testing_tests/test_helper.py | 3c6c0b308e5e999aa228cd5b0e229a97665a6a76 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cupy/cupy | ce7a010a57504dbfe4fb5af10d354a22e79f4907 | 96105afb78aa3f8380834d2516184b8365e23fcb | refs/heads/main | 2023-08-31T00:36:47.967611 | 2023-08-30T09:19:27 | 2023-08-30T09:19:27 | 72,523,920 | 7,505 | 1,072 | MIT | 2023-09-14T01:04:42 | 2016-11-01T09:54:45 | Python | UTF-8 | Python | false | false | 5,941 | py | test_helper.py | import unittest
import numpy
import pytest
import cupy
from cupy import testing
class TestPackageRequirements:
def test_installed(self):
assert testing.installed('cupy')
assert testing.installed('cupy>9', 'numpy>=1.12')
assert testing.installed('numpy>=1.10,<=2.0')
assert not tes... |
22749c4cdfe30c9eded6cd71fa737af0532a4af9 | 41198b450282c36a1d39f361dd99fe423de989da | /mantraml/data/finders.py | 7a9bd3307b500511c5dbc7a9011311721cf1d2b1 | [
"Apache-2.0"
] | permissive | RJT1990/mantra | 4ff49742e68471a11fc6b6060a9b8b1cd3ab3b88 | 7db4d272a1625c33eaa681b8c2e75c0aa57c6952 | refs/heads/master | 2022-12-10T07:29:27.803262 | 2019-12-10T23:05:23 | 2019-12-10T23:05:23 | 146,776,545 | 332 | 22 | Apache-2.0 | 2022-12-08T03:00:07 | 2018-08-30T16:25:10 | Python | UTF-8 | Python | false | false | 3,522 | py | finders.py | from .Dataset import Dataset
from .ImageDataset import ImageDataset
from .TabularDataset import TabularDataset
from mantraml.models import MantraModel
from mantraml.tasks.Task import Task
# Bade model and data for training
BASE_MODEL_CLASSES = ['MantraModel']
BASE_DATA_CLASSES = ['Dataset', 'TabularDataset', 'ImageDa... |
3738f918b17732a947f082fb06b0d77c2e54a1d6 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /systrace/systrace/tracing_agents/agents_unittest.py | b9596ef6cebef52c0fd52aec0ec7d1882f556341 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 1,479 | py | agents_unittest.py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from systrace import util
from devil.android import device_utils
from devil.android.sdk import intent
from devil.android.sdk import keyeven... |
796244a20420f0c16b7651bb314133bad23420ad | 1ca288c3f3c54db93fe4828214a81f6687105a1e | /qa/rpc-tests/test_framework/constants.py | a1af20d5f2bb16815f071114601517ed7ce39971 | [
"MIT"
] | permissive | BitcoinUnlimited/BitcoinUnlimited | 489c91a9184bdbad3824a2ce3126d2e9c0786e5d | 05de381c02eb4bfca94957733acadfa217527f25 | refs/heads/release | 2023-06-01T08:11:18.920865 | 2021-03-29T15:58:02 | 2021-03-29T15:58:02 | 18,613,259 | 546 | 301 | MIT | 2021-01-04T01:05:24 | 2014-04-09T21:03:00 | C++ | UTF-8 | Python | false | false | 120 | py | constants.py | # signature types
SIGHASH_ALL = 1
SIGHASH_NONE = 2
SIGHASH_SINGLE = 3
SIGHASH_FORKID = 0x40
SIGHASH_ANYONECANPAY = 0x80
|
6a84839880bfa98ac4b2db9287bf64a0aa64d640 | 807b63a4dda1e4bcf33a9b456cb9535eb69625fc | /python/stencila/types/image_object_or_str.py | fc1b6fde6c76ce935153f012eaa32901d22dc980 | [
"Apache-2.0"
] | permissive | stencila/stencila | 4d63a5653adb67a45dd5eb11c7a27d569f57a49e | eac602910d009d7db7048b28b4049ecc952ecd32 | refs/heads/main | 2023-08-30T18:34:19.055238 | 2023-08-30T07:14:02 | 2023-08-30T07:14:02 | 4,503,128 | 719 | 51 | Apache-2.0 | 2023-09-14T21:35:38 | 2012-05-31T02:43:31 | Rust | UTF-8 | Python | false | false | 216 | py | image_object_or_str.py | # Generated file; do not edit. See the Rust `schema-gen` crate.
from .prelude import *
ImageObject = ForwardRef("ImageObject")
ImageObjectOrStr = Union[
ImageObject,
str,
]
"""
`ImageObject` or `str`
"""
|
490e101d52de75bcf3caa2224df81c4e8a3a9283 | 59b374ac54ced5e006bd33773de4526112a88a27 | /src/unittest/modules/test_autocomplete.py | 45779e9e32df48416c4eb6b04f16ef7566409acd | [
"MIT"
] | permissive | gabfl/vault | 318cc53865c9d1786f304cc2f1605332a102b075 | dbf49f42ae391128399682dfb6910ffd4f8856a1 | refs/heads/main | 2023-06-21T21:27:06.959402 | 2023-05-08T23:43:14 | 2023-05-08T23:43:14 | 95,264,151 | 188 | 64 | MIT | 2023-09-07T23:56:29 | 2017-06-23T23:47:27 | Python | UTF-8 | Python | false | false | 2,228 | py | test_autocomplete.py | from unittest.mock import patch
from ..base import BaseTest
from ...modules import autocomplete
class Test(BaseTest):
def test_set_parameters(self):
autocomplete.set_parameters(
list_=['four', 'five', 'six'],
case_sensitive=False
)
assert autocomplete.completion_... |
c8f034e2732f818793d8414b1296e7bedcccefd5 | a8ca3225e24c8b093056ce6baa1db6ba3aea8f97 | /examples/_archived/plot_inv_grav_linear.py | d84bcc5bd9c0eb1f5560737782815f01965ce96d | [
"MIT"
] | permissive | simpeg/simpeg | 3e8779392d7b26fe576a7a665205068989d8f4d8 | ebde5856c318f7b4deb92d755b4fefe19012c48e | refs/heads/main | 2023-09-03T18:49:03.545965 | 2023-08-27T15:45:50 | 2023-08-27T15:45:50 | 14,727,320 | 437 | 268 | MIT | 2023-09-10T18:16:22 | 2013-11-26T19:46:36 | Python | UTF-8 | Python | false | false | 8,961 | py | plot_inv_grav_linear.py | """
PF: Gravity: Inversion Linear
=============================
Create a synthetic block model and invert
with a compact norm
"""
import numpy as np
import matplotlib.pyplot as plt
from discretize import TensorMesh
from discretize.utils import active_from_xyz
from SimPEG.potential_fields import gravity
from SimPEG i... |
dbd5251540993fb7900cf1ec37fd10d248ed15cb | 0910b22407c106e00cc1fc9d986afa9e94c50266 | /jarvis/analysis/thermodynamics/energetics.py | 0ff9cfdf5ea65d2581677f48d0adc081279dd48b | [
"NIST-PD"
] | permissive | usnistgov/jarvis | 86f3253efc4a7b308c3d5918a60af3b969d800bc | e43b65a1bb85bf88286a009671fa620519677a68 | refs/heads/master | 2023-08-23T09:50:20.734795 | 2023-08-20T02:07:14 | 2023-08-20T02:07:14 | 95,149,886 | 252 | 118 | NOASSERTION | 2023-08-20T02:07:15 | 2017-06-22T19:34:02 | Python | UTF-8 | Python | false | false | 14,613 | py | energetics.py | """Get formation energy, convex hull etc.."""
import os
from scipy.spatial import ConvexHull
import numpy as np
from jarvis.db.figshare import data
from jarvis.core.atoms import Atoms
from jarvis.db.jsonutils import loadjson
from collections import OrderedDict
from jarvis.core.composition import Composition
import re
... |
3102234255ed7eb6e6440947a7dd87ac53e77f51 | 38d1c6a920b3d9534f191fa0bfcd6d7d4625d643 | /my/instagram/android.py | 8ebbf9fe891d88dabea301fe8a0f4db59c726628 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | karlicoss/HPI | ab87dcbfd8e3af788144990c35e030577227966b | c283e542e3457ecd778fb09e54e725d67104a49a | refs/heads/master | 2023-08-31T11:38:23.547022 | 2023-08-24T22:29:14 | 2023-08-24T22:46:23 | 209,134,309 | 1,252 | 65 | MIT | 2023-09-07T01:36:27 | 2019-09-17T18:59:05 | Python | UTF-8 | Python | false | false | 6,357 | py | android.py | """
Bumble data from Android app database (in =/data/data/com.instagram.android/databases/direct.db=)
"""
from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
import json
from pathlib import Path
from typing import Iterator, Sequence, Optional, Dict, Union
from more_itert... |
5942aa5ab1a256c7339ee2fd7af967cf6dba77ee | 820b6af9fd43b270749224bb278e5f714f655ac9 | /Filters/Modeling/Testing/Python/TestImprintFilter3.py | d25b70b6cde0ff07a5a6832854e13312947b9590 | [
"BSD-3-Clause"
] | permissive | Kitware/VTK | 49dee7d4f83401efce8826f1759cd5d9caa281d1 | dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271 | refs/heads/master | 2023-09-01T10:21:57.496189 | 2023-09-01T08:20:15 | 2023-09-01T08:21:05 | 631,615 | 2,253 | 1,243 | NOASSERTION | 2023-09-14T07:53:03 | 2010-04-27T15:12:58 | C++ | UTF-8 | Python | false | false | 4,417 | py | TestImprintFilter3.py | #!/usr/bin/env python
from vtkmodules.vtkCommonTransforms import vtkTransform
from vtkmodules.vtkFiltersGeneral import vtkTransformPolyDataFilter
from vtkmodules.vtkFiltersModeling import vtkImprintFilter
from vtkmodules.vtkFiltersSources import vtkPlaneSource
from vtkmodules.vtkRenderingCore import (
vtkActor,
... |
70bd2009e63a2dd60c11b0fbb578ef757f040719 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/security/container_port_protocol.py | 20c68474649ffc35b5547b8d6a64244948df0d91 | [
"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 | 164 | py | container_port_protocol.py | from enum import Enum
class ContainerPortProtocol(str, Enum):
Udp = "udp",
Tcp = "tcp",
Sctp = "sctp",
UnknownFutureValue = "unknownFutureValue",
|
b80fb46e79d1a0bcc7814213bf146aa07a1746d5 | b7d4fc29e02e1379b0d44a756b4697dc19f8a792 | /deps/boost/libs/python/test/operators_wrapper.py | 6c889b0a393d0c04232ad31da2fb946486fdeec5 | [
"GPL-1.0-or-later",
"MIT",
"BSL-1.0"
] | permissive | vslavik/poedit | 45140ca86a853db58ddcbe65ab588da3873c4431 | 1b0940b026b429a10f310d98eeeaadfab271d556 | refs/heads/master | 2023-08-29T06:24:16.088676 | 2023-08-14T15:48:18 | 2023-08-14T15:48:18 | 477,156 | 1,424 | 275 | MIT | 2023-09-01T16:57:47 | 2010-01-18T08:23:13 | C++ | UTF-8 | Python | false | false | 164 | py | operators_wrapper.py | from operators_wrapper_ext import *
class D2(vector): pass
d2 = D2()
for lhs in (v,d,d2):
-lhs
for rhs in (v,d,d2):
lhs + rhs
lhs += rhs
|
1594e3b84f80f888b12f89b57079d149b8ff88f3 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/V8/v7.9.317/tools/testrunner/testproc/shard.py | 9475ea15f3ded525b93a15f7bb8806bfaa926915 | [
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"BSL-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | Python | false | false | 1,037 | py | shard.py | # Copyright 2018 the V8 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.
from . import base
# Alphabet size determines the hashing radix. Choosing a prime number prevents
# clustering of the hashes.
HASHING_ALPHABET_SIZE = 2 *... |
b494ebd8f2e96a99e67f1fa16c0eda11754e8003 | e53dd2252d82e19794a7763c7aab015112546001 | /python/test/base_test.py | a0d4efc07d3d78ed0de31b941efafe66f051bce6 | [
"Apache-2.0"
] | permissive | JohnSnowLabs/spark-nlp | 5017f90629bf44219db4c4880da168830b63838f | 438d9e65d791b0fa8914ab250815b29d55895325 | refs/heads/master | 2023-08-31T12:31:40.651128 | 2023-08-28T09:19:10 | 2023-08-28T09:19:10 | 104,670,986 | 3,506 | 737 | Apache-2.0 | 2023-09-14T06:30:18 | 2017-09-24T19:36:44 | Scala | UTF-8 | Python | false | false | 3,671 | py | base_test.py | # Copyright 2017-2022 John Snow Labs
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
9db5eb860731a033b98f761964b29fa09083883f | 0e083f405af00029c9ec31849f0f7f81c56844b5 | /mmdeploy/pytorch/symbolics/hardsigmoid.py | 27561685ed96b41f6a272b0d66a49cdafd91617c | [
"Apache-2.0"
] | permissive | open-mmlab/mmdeploy | 39b9e7b611caab2c76a6142fcb99f0bf1d92ad24 | 5479c8774f5b88d7ed9d399d4e305cb42cc2e73a | refs/heads/main | 2023-09-01T21:29:25.315371 | 2023-08-31T09:59:29 | 2023-08-31T09:59:29 | 441,467,833 | 2,164 | 605 | Apache-2.0 | 2023-09-14T10:39:04 | 2021-12-24T13:04:44 | Python | UTF-8 | Python | false | false | 528 | py | hardsigmoid.py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Modified from:
# https://github.com/pytorch/pytorch/blob/9ade03959392e5a90b74261012de1d806cab2253/torch/onnx/symbolic_opset9.py
from mmdeploy.core import SYMBOLIC_REWRITER
@SYMBOLIC_REWRITER.register_symbolic(
'hardsigmoid', is_pytorch=True,... |
af39d5dc723026056e9f26407339fad324b1eba2 | 4805a71711625735215cc1a773a85712be305b59 | /Cython/Compiler/AnalysedTreeTransforms.py | d4941606ef6f4c1072b5c68dcabe328ac6eaad3a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cython/cython | 0a75b75b7eaf19eeedaaebca9d49adb603e3e8f5 | 6ba3daf319d94058de74e8e7f53f932092b38441 | refs/heads/master | 2023-09-04T11:09:56.569277 | 2023-09-04T07:45:47 | 2023-09-04T07:45:47 | 1,099,265 | 8,352 | 1,704 | Apache-2.0 | 2023-09-14T06:33:34 | 2010-11-21T07:44:20 | Python | UTF-8 | Python | false | false | 3,834 | py | AnalysedTreeTransforms.py | from __future__ import absolute_import
from .Visitor import ScopeTrackingTransform
from .Nodes import StatListNode, SingleAssignmentNode, CFuncDefNode, DefNode
from .ExprNodes import DictNode, DictItemNode, NameNode, UnicodeNode
from .PyrexTypes import py_object_type
from .StringEncoding import EncodedString
from . im... |
3824b5fc5dfbc27a467d3addc5aee0eee7ade2a8 | 59b374ac54ced5e006bd33773de4526112a88a27 | /src/views/import_export.py | 7689387bec9667fa827ade4cc524eff236dd4f49 | [
"MIT"
] | permissive | gabfl/vault | 318cc53865c9d1786f304cc2f1605332a102b075 | dbf49f42ae391128399682dfb6910ffd4f8856a1 | refs/heads/main | 2023-06-21T21:27:06.959402 | 2023-05-08T23:43:14 | 2023-05-08T23:43:14 | 95,264,151 | 188 | 64 | MIT | 2023-09-07T23:56:29 | 2017-06-23T23:47:27 | Python | UTF-8 | Python | false | false | 4,601 | py | import_export.py | # Import/export view
import sys
import json
from tabulate import tabulate
from . import menu, secrets, categories
from ..modules.misc import confirm
from ..modules.carry import global_scope
from ..lib.Encryption import Encryption
"""
Adding import or export formats:
To add an import or export format, you n... |
0fdf16e0d7c5e4b12f1f3fce80e05a08e5bf33cc | 2481cde6506743565dff2b405a2396daf208ab3e | /src/true_coders/migrations/0054_auto_20230528_1859.py | 28965321df113af9466c3f0329a165c50877ce11 | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 803 | py | 0054_auto_20230528_1859.py | # Generated by Django 3.1.14 on 2023-05-28 18:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clist', '0103_remove_null_for_problems_times'),
('true_coders', '0053_auto_20230520_2152'),
]
operations =... |
aa2af38eb3f03de344649ba95bd5e07a2e8b22c2 | c2447258284f77943f67f1264f391e22de7603e9 | /keystoneclient/v3/contrib/federation/saml.py | 435e45dc695cc4b3f74c8a64fea5c26da9c63963 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | openstack/python-keystoneclient | 07c386fafda1262c4c1bc63c0afa1aaaefea1009 | 141787ae8b0db7ac4dffce915e033a78d145d54e | refs/heads/master | 2023-07-04T10:21:12.065327 | 2023-02-17T15:06:59 | 2023-04-27T12:33:24 | 3,030,986 | 118 | 143 | NOASSERTION | 2020-10-19T06:09:05 | 2011-12-22T00:50:05 | Python | UTF-8 | Python | false | false | 2,859 | py | saml.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... |
e6118079de6fb684dc38bf6dabd063f3bd87cd01 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/AVA_hpa/src/eval_metrics.py | c3329708f8cb044205501559c1e011e8d875674e | [
"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 | 12,717 | py | eval_metrics.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... |
a20dabe787f4e754c6bce4f8387af23c734572b8 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_is_complex.py | f65546da552f05ce558ba1cc05001a68d86f0ea9 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 1,248 | py | test_is_complex.py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
cbe97b71f9c11c2076b291ff231efda90c1ad685 | 3d063af394b4b55ea49ded7915d0793602015859 | /python/media/photodedup.py | 58a2f5598d989775bca4006aa9f098eec0d4ada5 | [
"Apache-2.0"
] | permissive | ringgaard/sling | 00edad71195bfe71aa11e2e8dda97109c047e6e5 | a612c5823954552ba422b441a7c7d57c1a5b4fcb | refs/heads/master | 2023-08-07T15:24:10.569228 | 2023-08-02T12:25:44 | 2023-08-02T12:25:44 | 106,742,468 | 141 | 10 | Apache-2.0 | 2020-08-03T13:25:36 | 2017-10-12T20:34:28 | C++ | UTF-8 | Python | false | false | 2,323 | py | photodedup.py | # Copyright 2021 Ringgaard Research ApS
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... |
08588fd0c8835f804831780e35bd31637a2042a5 | 0583610357726c5ce6caadb51851f9ba1bc8ce07 | /jaeger_client/span.py | 65ff1611fb4f9676dfe1a937506893bf839e2b83 | [
"Apache-2.0"
] | permissive | jaegertracing/jaeger-client-python | df980511ffa01e56d2d9aca3bb196aff7fe387ab | 5f68f1171c4156fd05675b6782aac1182058e7f4 | refs/heads/master | 2023-08-16T18:09:46.140041 | 2022-07-10T19:17:14 | 2022-07-10T19:17:14 | 56,551,019 | 387 | 165 | Apache-2.0 | 2022-07-10T19:16:25 | 2016-04-19T00:10:38 | Python | UTF-8 | Python | false | false | 7,674 | py | span.py | # Copyright (c) 2016-2018 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 applicable law or agree... |
92950a631f433704740d64746d6e1b636c3e1957 | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/data_pipeline_audit/management/commands/compare_doc_ids.py | 8e6db7e612472f2649a1b53f7820c5527da44ae9 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 5,805 | py | compare_doc_ids.py | from datetime import datetime
from dateutil.relativedelta import relativedelta
from django.core.management.base import BaseCommand, CommandError
from itertools import zip_longest
from corehq.util.argparse_types import date_type
from corehq.apps.data_pipeline_audit.dbacessors import (
get_es_case_counts,
get... |
4b0f1af9de2bbff580025a054b1101c09fa94ec0 | e0c29408e6e4a19078a8299a03a575eb5def5cee | /tests/test_seedless_procrustes.py | 67dd34d2f1027b327cf8993b6fabcea1a6aa8bc6 | [
"MIT"
] | permissive | microsoft/graspologic | 790e1dfe18743280628b32b4ee946572bbfdd547 | ba74fdb6e5394268a9fae38f95991cbd585bd99e | refs/heads/dev | 2023-09-01T00:03:34.665845 | 2023-08-07T17:49:04 | 2023-08-07T17:49:04 | 147,768,493 | 226 | 101 | MIT | 2023-08-07T17:49:06 | 2018-09-07T04:00:05 | Python | UTF-8 | Python | false | false | 6,457 | py | test_seedless_procrustes.py | # Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import unittest
import numpy as np
from scipy import stats
from graspologic.align import SeedlessProcrustes, SignFlips
class TestSeedlessProcrustes(unittest.TestCase):
def test_bad_kwargs(self):
# type errors for ... |
fe65de04fffa980460cb6260ec249cce0a09f0e0 | 03a7f7a7eb8c16b537b65ec21f465bb0335bc3b8 | /docs/papers/sc2013/bench/pythran/mandel.py | b04b8f26793f96462e05047ef6219f10f8b22c24 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | serge-sans-paille/pythran | a0e22af1ac5e1f34f3f29dce36502f4a897b5186 | d8ab07b4b3b690f50603cb4d08ba303d3af18b90 | refs/heads/master | 2023-09-01T16:04:03.289285 | 2023-08-30T09:13:58 | 2023-08-31T08:03:22 | 4,479,494 | 1,882 | 200 | BSD-3-Clause | 2023-09-06T20:08:10 | 2012-05-29T08:02:14 | C++ | UTF-8 | Python | false | false | 862 | py | mandel.py | #runas mandel(800,0,0, 800)
#pythran export mandel(int, float, float, int)
def mandel(size, x_center, y_center, max_iteration):
import numpy as np
out = np.zeros((size,size))
for i in xrange(size):
"omp parallel for private(j,x,y,a,b,iteration, color_value) schedule(static,5)"
for j in xrange(s... |
1cec3c2b1ad29d7952730b6ec817eef1c2893b19 | d1f15554df2d5c0f74ddbcba6e870359841f682b | /wagtail/actions/revert_to_page_revision.py | a0c07be5afd3c90b00c2062146b6fd7fbb00a707 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | wagtail/wagtail | bd405f89b86e0c625fef0685fd6bfba41cf5cbfc | 06a7bc6124bf62675c09fbe0a4ed9bbac183e025 | refs/heads/main | 2023-09-04T06:22:51.601208 | 2023-09-01T15:22:00 | 2023-09-01T15:22:00 | 16,479,108 | 12,974 | 3,580 | BSD-3-Clause | 2023-09-14T10:45:04 | 2014-02-03T12:41:59 | Python | UTF-8 | Python | false | false | 2,018 | py | revert_to_page_revision.py | from django.core.exceptions import PermissionDenied
class RevertToPageRevisionError(RuntimeError):
"""
Raised when the revision revert cannot be performed for data reasons.
"""
pass
class RevertToPageRevisionPermissionError(PermissionDenied):
"""
Raised when the revision revert cannot be pe... |
244643d9319ca9b72b998837f73a0cbc83e67d45 | 1634f33c5021e8465a695fb5244504e2eeeecff5 | /kitsune/search/management/commands/es_reindex.py | b535c5eea378c129def5da981fd1ebade0511c03 | [] | permissive | mozilla/kitsune | fee4b8598eb01f5b4add00f2f010b45e2a6ca901 | 67ec527bfc32c715bf9f29d5e01362c4903aebd2 | refs/heads/main | 2023-09-01T21:41:59.076570 | 2023-08-31T22:34:05 | 2023-08-31T22:34:05 | 489,645 | 1,218 | 697 | BSD-3-Clause | 2023-09-14T08:43:19 | 2010-01-26T18:53:57 | Python | UTF-8 | Python | false | false | 4,894 | py | es_reindex.py | from math import ceil
from dateutil.parser import parse as dateutil_parse
from django.conf import settings
from django.core.management.base import BaseCommand
from django.db import connection, reset_queries
from kitsune.search.es_utils import get_doc_types, index_objects_bulk
class Command(BaseCommand):
help = ... |
dea3fc72dde713e864c591df5c751646c52c8b2d | 8eb7e2224cd81cd21fd5b0c4dd54abe85ba07e49 | /netmiko/no_config.py | 799fd81a9aeb9b8bae129ff804a84d0e1f225fea | [
"MIT"
] | permissive | ktbyers/netmiko | f8b980569fd863f0a7bfe28580366339c4bd31ec | 2e56b40ec639da130471c59dd1f3c93983471e41 | refs/heads/develop | 2023-08-30T20:33:05.554926 | 2023-08-29T21:50:45 | 2023-08-29T21:50:45 | 27,283,062 | 3,397 | 1,594 | MIT | 2023-09-04T03:04:31 | 2014-11-28T21:42:52 | Python | UTF-8 | Python | false | false | 844 | py | no_config.py | class NoConfig:
"""
Class for platforms that have no config mode.
check_config_mode returns True as the expectation is that configuration commands
can be executed directly. So in your current state, you are in "config mode" i.e.
you can make configuration changes.
If you truly cannot make any ... |
c7d9ebaad66d5608100a931e2910ffce26c66115 | f61577e4f63d30def2a6979e76a7478319359163 | /scripts/gpa_utils.py | d5aab8cd2dd77a25aeeeff7d004148b73f509aaa | [
"MIT"
] | permissive | GPUOpen-Tools/gpu_performance_api | 27f3f69392c44afdd2b8cabbe4a0c453c0d28f26 | 376cec1c5e92324f0fcfc573be2a26a129e43945 | refs/heads/master | 2023-09-04T05:23:08.614847 | 2023-06-22T22:28:29 | 2023-06-22T22:28:29 | 56,246,835 | 102 | 26 | MIT | 2023-03-29T07:28:10 | 2016-04-14T15:01:21 | C++ | UTF-8 | Python | false | false | 5,828 | py | gpa_utils.py | #!/usr/bin/python
## Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved.
# Utility Python Script for gpa
import sys
import zipfile
import tarfile
import os
import subprocess
import urllib
SHELLARG = False
# The environment variable SHELL is only set for Cygwin or Linux
SHELLTYPE = os.environ.get('SHE... |
cbca5db91bbbf79ee18a987901179b44bcefd824 | a198aa98679ae1fc70388f8376a9a41444040319 | /deprecated-tools/add-GTFS-to-a-network-dataset/scripts/GenerateStop2StreetConnectors.py | bcc70588fb829a5f06f4c11a63df28023f254dd1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Esri/public-transit-tools | 8437831328e94fa9fe74469922c204eb6fb74b22 | 47cbc3de67a7b1bf9255e07e88cba7b051db0505 | refs/heads/master | 2023-09-05T17:01:23.375328 | 2023-08-30T19:58:50 | 2023-08-30T19:58:50 | 42,553,165 | 155 | 67 | Apache-2.0 | 2023-08-30T19:58:51 | 2015-09-15T23:38:22 | Python | UTF-8 | Python | false | false | 15,040 | py | GenerateStop2StreetConnectors.py | ################################################################################
## Toolbox: Add GTFS to a Network Dataset
## Tool name: 2) Generate Stop-Street Connectors
## Created by: Melinda Morang, Esri, mmorang@esri.com
## Last updated: 2 February 2018
#############################################################... |
2eca76ccde0ce48a86c0c51221821e3e98bc41fa | 872ea32f551c803ac497a38667dc272965246561 | /tensorflow_transform/tf_utils.py | b07c5c33d6b33dadfa6ccda21aa64efc16b24fac | [
"Apache-2.0"
] | permissive | tensorflow/transform | 5c4d74c15e7a13ef0901816dfe35b0901d6cb1da | d2bfc2640137324dcad7f7be365e6c851c01f4e9 | refs/heads/master | 2023-08-31T21:54:54.222760 | 2023-08-15T22:45:45 | 2023-08-15T22:46:20 | 81,509,390 | 1,030 | 267 | Apache-2.0 | 2023-08-11T22:57:56 | 2017-02-10T00:36:53 | Python | UTF-8 | Python | false | false | 72,766 | py | tf_utils.py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
3c09cd787a283535bc1004982026424bb114060e | 0dddc0508138396c740901be4a0f9eebefb8fded | /ax/modelbridge/tests/test_metrics_as_task_transform.py | 447452888910dc78f212a1efabae2a75f397a6ee | [
"MIT"
] | permissive | facebook/Ax | 473beb143016f95f4ec381ed1bd95b32c1ca31f8 | 6443cee30cbf8cec290200a7420a3db08e4b5445 | refs/heads/main | 2023-09-01T09:29:13.684709 | 2023-08-31T21:49:30 | 2023-08-31T21:49:30 | 169,880,381 | 2,207 | 315 | MIT | 2023-09-14T21:26:51 | 2019-02-09T15:23:44 | Jupyter Notebook | UTF-8 | Python | false | false | 5,101 | py | test_metrics_as_task_transform.py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from copy import deepcopy
import numpy as np
from ax.core.observation import Observation, ObservationData, Observat... |
8d29dc1a91c1969bebf51d2aded2fcfaf382e406 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/mo/openvino/tools/mo/utils/import_extensions.py | 039ff2c2fa21e967c13e3af3fcef6c63930b15f6 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 3,788 | py | import_extensions.py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import importlib
import logging as log
import os
import pkgutil
import sys
from openvino.tools.mo.back.replacement import BackReplacementPattern
from openvino.tools.mo.load.loader import Loader
from openvino.tools.mo.middle.replacement ... |
0ac669874295dd62205700092c3f7153fa21a492 | 7e6f1d74ae86125990d6f61cb926d7352cfb3dba | /custom_components/browser_mod/mod_view.py | bb6cedf7087a82e70458cbfe2080cbc02a81a0fe | [
"MIT"
] | permissive | thomasloven/hass-browser_mod | 92402981c923e5d3a24d142548bab34d0bb42065 | 89bec37383bc307bec4b302af19d32120e684641 | refs/heads/master | 2023-08-23T04:21:02.652814 | 2023-07-14T23:32:52 | 2023-07-14T23:32:52 | 194,140,521 | 1,053 | 190 | MIT | 2023-07-25T05:52:38 | 2019-06-27T17:56:02 | TypeScript | UTF-8 | Python | false | false | 2,409 | py | mod_view.py | from homeassistant.components.frontend import add_extra_js_url
from .const import FRONTEND_SCRIPT_URL, SETTINGS_PANEL_URL
import logging
_LOGGER = logging.getLogger(__name__)
async def async_setup_view(hass):
# Serve the Browser Mod controller and add it as extra_module_url
hass.http.register_static_path(... |
9c7cc1911ba22e0c8b85ff1afe4962d67b80d394 | 2b64c18cd4e415568039b00efaf8b633c1d7e91e | /tests/test_vector.py | ede4a3d0cb6e04e1fd842117fe44fccf7f832925 | [
"Apache-2.0",
"Python-2.0"
] | permissive | edgedb/edgedb-python | 3181294588f2904431200967303066fe01cd3b81 | 717cd76b76c44b3d0472f2895be56fca74970e96 | refs/heads/master | 2023-08-30T18:03:43.569471 | 2023-07-25T03:14:35 | 2023-07-25T03:14:35 | 139,201,883 | 320 | 43 | Apache-2.0 | 2023-09-14T21:57:15 | 2018-06-29T22:37:25 | Python | UTF-8 | Python | false | false | 4,065 | py | test_vector.py | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2019-present MagicStack Inc. and the EdgeDB 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... |
d380ffef36a2fe81f031509bb77592c70121dc30 | c30c2a2f2b8cf648175e1ae6f37c7834a08a8c51 | /scripts/corehelper.py | edc115e7543191748ac2aaf43084582dd117b9f0 | [
"BSD-3-Clause"
] | permissive | sdnfv/openNetVM | bb411bf10075697a5f276cb517df7b8c631b56cf | 20e01501355129bfa8f46d44f39ca2a8bbb516d0 | refs/heads/master | 2022-09-02T15:45:00.358618 | 2022-02-01T02:53:19 | 2022-02-01T02:53:19 | 56,240,513 | 276 | 153 | NOASSERTION | 2022-08-04T19:16:59 | 2016-04-14T13:40:21 | C | UTF-8 | Python | false | false | 8,731 | py | corehelper.py | #! /usr/bin/python3
# openNetVM
# https://github.com/sdnfv/openNetVM
#
# BSD LICENSE
#
# Copyright(c)
# 2015-2018 George Washington University
# 2015-2018 University of California Riverside
# 2010-2014 Intel Corporation.
# All rights reserved.
#
# Redistribution and u... |
3c67659b49196882f82c4106a832ba28d29f050c | bbd69601912a3361d788efd03a47f9d4e3bac09e | /demo/agw/ShortcutEditor.py | d4007e94f813d32e68a3a5b02a86b5f57fa2e72d | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 13,965 | py | ShortcutEditor.py | #!/usr/bin/env python
import wx
import os
import sys
import string
import random
from images import catalog
import images
from wx.lib.embeddedimage import PyEmbeddedImage
try:
dirName = os.path.dirname(os.path.abspath(__file__))
except:
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.path.appe... |
e8fdd79b491b0c9d91ef20c78a333279496fecf2 | 0e76737364820dd3c90e6a60725a837aed2a435e | /usb3_pipe/core.py | 0ff2abb556bbdbfcec1cc466f7796841e2bf0921 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | enjoy-digital/usb3_pipe | 4f40de8cdc443a1a60a844d25ebbb0a2c1c6ea6d | d2847d9501aa2c4995449362b99d503663e6b192 | refs/heads/master | 2022-05-28T09:38:32.624262 | 2022-05-03T07:10:00 | 2022-05-03T07:10:00 | 208,852,968 | 148 | 30 | BSD-2-Clause | 2022-05-03T07:10:01 | 2019-09-16T17:00:16 | Verilog | UTF-8 | Python | false | false | 3,356 | py | core.py | #
# This file is part of USB3-PIPE project.
#
# Copyright (c) 2019-2020 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from migen import *
from litex.soc.interconnect import stream
from usb3_pipe.common import *
from usb3_pipe.lfps import LFPSUnit
from usb3_pipe.training import ... |
6a32aea70b5fe9834b6b72348b7a723e4a039728 | 8743cb01e02a5cf45d5e40d59fd04a40e68139b6 | /generated_code/memlayout.py | 393c313066ff6a8d8f3f88da89c2f91b401b08d1 | [
"BSD-3-Clause"
] | permissive | SeisSol/SeisSol | a2c9ae29021251db5f811c343762e0699756b39d | 7fde47786f10aebbb4225f4c5125829ea9b541a1 | refs/heads/master | 2023-09-01T08:57:51.863085 | 2023-08-31T07:29:26 | 2023-08-31T07:29:26 | 21,459,883 | 227 | 129 | BSD-3-Clause | 2023-09-13T10:06:09 | 2014-07-03T11:17:47 | C++ | UTF-8 | Python | false | false | 4,439 | py | memlayout.py | #! /usr/bin/env python
##
# @file
# This file is part of SeisSol.
#
# @author Carsten Uphoff (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.)
#
# @section LICENSE
# Copyright (c) 2016, SeisSol Group
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or wi... |
cb01979c4ae2328cf1964c73986aeb2ec897080b | 39568e19301a7a112398be542154950af25591de | /util/dvsim/qsubopts.py | c94c1c1e8055eb1c0700d276113ff0a377ee280e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lowRISC/opentitan | 493995bc7cf7cb3aee486a5203af3fd62bba3bfc | 51f6017b8425b14d5a4aa9abace8fe5a25ef08c8 | refs/heads/master | 2023-08-31T22:05:09.425796 | 2023-08-14T14:52:15 | 2023-08-31T20:31:13 | 204,516,692 | 2,077 | 634 | Apache-2.0 | 2023-09-14T21:16:21 | 2019-08-26T16:30:16 | SystemVerilog | UTF-8 | Python | false | false | 96,486 | py | qsubopts.py | #!/usr/bin/env python
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
# ----------------------------------
# qsubOptions Class
# ----------------------------------
"""A helper class designed to han... |
ce582ad0f562c79149032c6a4c7013e5978f623f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/commonmark/commonmark/inlines.pyi | e53f22a10cf8cc629d4981eec0b7d8a0feb83501 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,763 | pyi | inlines.pyi | import html
from typing import Any
HTMLunescape = html.unescape
ESCAPED_CHAR: Any
rePunctuation: Any
reLinkTitle: Any
reLinkDestinationBraces: Any
reEscapable: Any
reEntityHere: Any
reTicks: Any
reTicksHere: Any
reEllipses: Any
reDash: Any
reEmailAutolink: Any
reAutolink: Any
reSpnl: Any
reWhitespaceChar: Any
reWhites... |
84f58d8a6a90905c5b4ed1ae20b28b2e7711debc | 27d7b99866a0bb16883ff2efebbe5ca4b3b27855 | /setup.py | 40638939875bb85f08f5e4a886047d158d1b306f | [
"BSD-3-Clause"
] | permissive | cherrypy/cherrypy | f85e054251d55583c34f381baf6570760d5af4c1 | 0050ed1e75f375d7790efcf69a954c25a9896c7b | refs/heads/main | 2023-09-02T23:02:21.291624 | 2023-08-04T13:52:17 | 2023-08-04T13:52:17 | 57,436,777 | 1,934 | 497 | BSD-3-Clause | 2023-05-14T04:47:02 | 2016-04-30T10:09:26 | Python | UTF-8 | Python | false | false | 4,307 | py | setup.py | #! /usr/bin/env python
"""CherryPy package setuptools installer."""
import setuptools
name = 'CherryPy'
repo_slug = 'cherrypy/{}'.format(name.lower())
repo_url = 'https://github.com/{}'.format(repo_slug)
params = dict(
name=name,
use_scm_version=True,
description='Object-Oriented HTTP framework',
a... |
77378766671526075bc09378f18950423c9c1a1d | ae98bcfb1cbf75ca329e8a71ec79f92032670075 | /wavelink/payloads.py | 662b670d3e579b5ce5f4a45f83cc9620a30bffbf | [
"MIT"
] | permissive | PythonistaGuild/Wavelink | 18f234d5c88760e147d778540abcf505ab0577ab | 3d6e3b97bc54dd1d093102eb827b50dc9fd07446 | refs/heads/main | 2023-08-28T17:28:20.696752 | 2023-08-23T11:03:29 | 2023-08-23T11:03:29 | 164,062,465 | 373 | 306 | MIT | 2023-08-25T17:35:11 | 2019-01-04T05:32:14 | Python | UTF-8 | Python | false | false | 3,366 | py | payloads.py | """
MIT License
Copyright (c) 2019-Present PythonistaGuild
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... |
0fd3c8de91421c7d5eb7ba887a122a16bf6b342b | 1e528494a929deada984822438b3ab569762e6c6 | /sprytile_panel.py | 8b0452e7f7a9e62f449970b647bdd5c7dd8bc365 | [
"MIT"
] | permissive | Sprytile/Sprytile | a0233a00a243f263691921d7e1f6af05c5eb5442 | 6b68d0069aef5bfed6ab40d1d5a94a3382b41619 | refs/heads/master | 2022-07-10T06:54:01.003723 | 2020-09-26T07:25:35 | 2020-09-26T07:25:35 | 72,276,917 | 860 | 91 | MIT | 2022-07-07T23:37:19 | 2016-10-29T09:47:09 | Python | UTF-8 | Python | false | false | 11,716 | py | sprytile_panel.py | import bpy
from . import sprytile_utils
from bpy.types import Panel, UIList
class VIEW3D_UL_SprytileMaterialGridList(bpy.types.UIList):
use_order_name : bpy.props.BoolProperty(default=False, name="Order by Name")
use_order_invert : bpy.props.BoolProperty(default=False, name="Reverse Order")
obj_mats_only ... |
5654a398141e6e59f302696b9dc13b570fd85702 | fe90bf63c34511ec9a4d7cb5a90957fbbb03a504 | /boundary_layer/plugins/oozie_plugin.py | c4bdacd3afa29a5d31537e90ffdfe4b2264f5c31 | [
"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,842 | py | oozie_plugin.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... |
25e5f7e40606396d3b7ed5a774014f2619b19629 | 302ce5ab1045ee93845608c96580c63d54d730af | /src/spikeinterface/curation/tests/test_sortingview_curation.py | 9177cb553662b68d6f0faff8d651d92c2a253ad8 | [
"MIT"
] | permissive | SpikeInterface/spikeinterface | f900b62720860b2881d2e6b5fa4441e0e560f625 | ee2237b3f5ce2347b2ec9df90e97b0ee6c738dcf | refs/heads/main | 2023-09-02T11:27:54.687021 | 2023-09-01T13:48:29 | 2023-09-01T13:48:29 | 196,581,117 | 295 | 133 | MIT | 2023-09-14T19:12:16 | 2019-07-12T13:07:46 | Python | UTF-8 | Python | false | false | 6,172 | py | test_sortingview_curation.py | import pytest
from pathlib import Path
import os
import spikeinterface as si
from spikeinterface.extractors import read_mearec
from spikeinterface import set_global_tmp_folder
from spikeinterface.postprocessing import (
compute_correlograms,
compute_unit_locations,
compute_template_similarity,
compute_... |
5b35ca5113e03ebbab924ff18a3d9280c39ac6d5 | 0dbdf273cc1620bd8be12df06f793b86b5c2f66f | /src/wt_tools/dxp_unpack.py | 1aefc6549d922acab2393e932fdb4e0d11fa9299 | [] | no_license | klensy/wt-tools | 86fd7d14a506ae03cbd74426077690de6cdf9bbe | a56144b4b9ddc2aeac481f822bcd6e291502d0c3 | refs/heads/dev | 2023-05-24T23:27:56.293527 | 2021-06-28T16:30:36 | 2021-06-28T16:30:36 | 28,302,097 | 149 | 59 | null | 2023-05-23T01:22:54 | 2014-12-21T14:28:34 | Python | UTF-8 | Python | false | false | 2,531 | py | dxp_unpack.py | import struct, sys, os, errno
dxp2_magic = 'DxP2'
file_names_block_offset = 0x48
second_block_offset_from = 0x10 # + 0x10
dds_block_offset_from = 0x20 # + 0x10
block_3_offset_from = 0x30 # + 0x10
block_4_offset_from = 0xc # + 0x10
def mkdir_p(path):
n_path = ''.join(os.path.split(path)[:-1])
try:
... |
80ac158815db2295ef5584a5107687fd35e26cea | 13800b7827598e76428a335559b7bf11867ec2f0 | /python/ccxt/async_support/coinbasepro.py | 69a04afd8aa6c869734b7028ce9a5334e2748757 | [
"MIT"
] | permissive | ccxt/ccxt | b40a0466f5c430a3c0c6026552ae697aa80ba6c6 | e4065f6a490e6fc4dd7a72b375428b2faa570668 | refs/heads/master | 2023-09-04T03:41:29.787733 | 2023-09-03T19:25:57 | 2023-09-03T19:25:57 | 91,253,698 | 30,798 | 8,190 | MIT | 2023-09-14T21:59:09 | 2017-05-14T15:41:56 | Python | UTF-8 | Python | false | false | 74,643 | py | coinbasepro.py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.abstract.coinbasepro import ImplicitAPI
import hashlib
from ccxt.base.types... |
3643013f38b1c22d29572794f6b95f9fab8082b7 | 75c033a6dfc466b54579625018c6e2e59f1e5bd4 | /setup.py | 2d72ffa55b29f0387c01476d1b8b2013ffd69704 | [
"MIT"
] | permissive | crowdbotp/OpenTraj | 753a0c6d30a5f3134f056c4d53650ce04fa6bcd8 | e7b12a0897e57a94b02a735248145c85d84dc01f | refs/heads/master | 2023-04-17T02:42:27.501052 | 2022-03-28T19:03:26 | 2022-03-28T19:03:26 | 221,695,317 | 349 | 87 | MIT | 2022-12-21T22:58:46 | 2019-11-14T12:42:58 | Python | UTF-8 | Python | false | false | 718 | py | setup.py | from setuptools import setup
setup(
name='opentraj',
version='1.0',
author='Javad Amirian',
author_email='amiryan.j@gmail.com',
packages=['opentraj'],
scripts=['bin/script1','bin/script2'],
url='https://github.com/crowdbotp/OpenTraj',
license='MIT',
description='Tools for analyzing trajecto... |
a9db2e25a6ee9fde56013d57047b4d56db274ddf | 3bc139860403ebd05e278c95fca26e24d5189271 | /chia/data_layer/s3_plugin_service.py | d17c973f716e4a1b8826c95254c70dca955096e2 | [
"Apache-2.0"
] | permissive | Chia-Network/chia-blockchain | a09183b7240b159419b45f8373a41a1062f77ef3 | d966f3f9e63aed52dbd73544164202a9f11ce3d2 | refs/heads/main | 2023-08-31T09:37:13.741283 | 2023-08-30T18:27:22 | 2023-08-30T18:27:22 | 197,153,676 | 12,936 | 2,474 | Apache-2.0 | 2023-09-14T19:08:51 | 2019-07-16T08:32:40 | Python | UTF-8 | Python | false | false | 16,377 | py | s3_plugin_service.py | from __future__ import annotations
import asyncio
import concurrent.futures
import functools
import json
import logging
import os
import shutil
import sys
import tempfile
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Dict, List, Optional, Set
from urllib.parse import urlparse
impo... |
8acb76cd5f18323fdefb7fb31644b449d310bd20 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/schemaregistry/azure-schemaregistry/tests/async_tests/test_schema_registry_async.py | 2e414c08aba37c123b034567eff863e6339fce05 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | 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 | 18,665 | py | test_schema_registry_async.py | # Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell co... |
df373c2df70f88422c8b2c795720ec8d74324f44 | 568fa58296378fa129ab3349adf010daa44ed45b | /tests/common/test_op/ascend/bessel_i0e.py | b912e2fe1fda0193b970f63fe0541d42963f8d94 | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 3,983 | py | bessel_i0e.py | # Copyright 2020-2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
eb7787c7fb646b2b9225c21f9b1fe94c7b86cd99 | 812045c3ec6587827aeb18bde666237dfffc21ae | /tf_quant_finance/models/hjm/calibration_test.py | 17a4fc4bbc5eeb748da9ad59ed46d9f564eb1d69 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | google/tf-quant-finance | 2062082c85e8679b71e69bbeb579fe338c1b0288 | 0d3a2193c0f2d320b65e602cf01d7a617da484df | refs/heads/master | 2023-08-31T01:58:15.415811 | 2023-08-15T07:37:46 | 2023-08-15T07:38:22 | 198,669,252 | 4,165 | 557 | Apache-2.0 | 2023-08-04T19:25:55 | 2019-07-24T16:09:50 | Python | UTF-8 | Python | false | false | 12,170 | py | calibration_test.py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
2bc2321475f909d8c23c04130c4e0254f1babb8d | 8380b5eb12e24692e97480bfa8939a199d067bce | /Fuzzbunch/Resources/Ops/PyScripts/wrappers/hide.py | 60b270194c53ada51d35f94c7caab0e035db5b0a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | RamadhanAmizudin/malware | 788ee745b5bb23b980005c2af08f6cb8763981c2 | 62d0035db6bc9aa279b7c60250d439825ae65e41 | refs/heads/master | 2023-02-05T13:37:18.909646 | 2023-01-26T08:43:18 | 2023-01-26T08:43:18 | 53,407,812 | 873 | 291 | null | 2023-01-26T08:43:19 | 2016-03-08T11:44:21 | C++ | UTF-8 | Python | false | false | 416 | py | hide.py |
import datetime
import sys
import dsz
import ops
import ops.system.systemversion
dsz.control.echo.Off()
version = ops.system.systemversion.get_os_version(maxage=datetime.timedelta.max)
if ((version.versioninfo.major >= 6) and (version.versioninfo.arch == 'x64')):
ops.error('PatchGuard will detect and kill... |
8333a8f201438f542640f1ee359b1612923bbe3c | 5c363c50c54175a982330ec888401b3e394373ab | /syne_tune/optimizer/schedulers/transfer_learning/bounding_box.py | cb4326aa99c9818796b03146a38256fc1cdb3c9b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | awslabs/syne-tune | b14fb008f63def6a172bea6cc451f4e1906647f5 | c35686e1b5947d45384fd1d41a44e013da53ef43 | refs/heads/main | 2023-08-14T14:21:48.995716 | 2023-08-03T12:57:13 | 2023-08-03T12:57:13 | 417,499,108 | 313 | 47 | Apache-2.0 | 2023-09-14T14:06:54 | 2021-10-15T12:54:45 | Python | UTF-8 | Python | false | false | 7,036 | py | bounding_box.py | # Copyright 2021 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://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... |
3a3d0502591256b13164e64e7d9764422db2ea6b | c6c8dc7224e554fdb3fb0e1b34c69ef09ebc98ab | /pybooru/exceptions.py | d6ad4abdd2595077eb61ff4aca53a3cddf0b6e2f | [
"MIT"
] | permissive | LuqueDaniel/pybooru | 49203ffb027ec848d3a7f6696d4deb5b62462b6a | db2663c290f2d1c959b2ab363c4a5be2de956f6a | refs/heads/master | 2023-02-04T21:48:35.706162 | 2023-02-01T20:54:21 | 2023-02-01T20:54:21 | 4,486,051 | 118 | 36 | MIT | 2023-02-01T20:54:23 | 2012-05-29T18:47:32 | Python | UTF-8 | Python | false | false | 1,211 | py | exceptions.py | # -*- coding: utf-8 -*-
"""pybooru.exceptions
This module contains Pybooru exceptions.
Classes:
* PybooruError -- Main Pybooru exception class.
* PybooruHTTPError -- Manages HTTP status errors.
* PybooruAPIError -- Manages all API errors.
"""
# __furute__ imports
from __future__ import absolute_import
... |
fb1534573bafe4ee41b90e450b0853663cd966b3 | 4e52ba30ac377ba404bc4cffbd94add2e5edf0e6 | /stream/clients/python/bookkeeper/kv/futures.py | ae626a7e98c832ec2a7cf25911e5495719d35283 | [
"Apache-2.0"
] | permissive | apache/bookkeeper | 0bf2bdb66c1e8e18654ba72775fdf0914c01517a | 1666d820a3d98ee6702e39c7cb0ebe51b1fdfd32 | refs/heads/master | 2023-09-01T17:43:09.657566 | 2023-09-01T05:20:10 | 2023-09-01T05:20:10 | 1,575,956 | 1,825 | 1,123 | Apache-2.0 | 2023-09-13T04:18:18 | 2011-04-06T07:00:07 | Java | UTF-8 | Python | false | false | 6,354 | py | futures.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... |
9d57abd042406b4c6a5d9cbae2e798d66199b3a4 | 572afc77a246acb9483b47fc9e1839f47005d736 | /python/federatedml/protobuf/generated/pipeline_pb2.py | 9eff56ee560b695d4ac9b7389235e7074f968d5d | [
"Apache-2.0"
] | permissive | FederatedAI/FATE | 7c787c308cca9ff46f287d24569c68de0a1cac07 | 8767db5ec0cb93784f64b290bc39b7b545c530fb | refs/heads/master | 2023-08-17T10:13:00.302529 | 2023-06-14T07:01:38 | 2023-06-14T07:01:38 | 167,349,656 | 4,942 | 1,571 | Apache-2.0 | 2023-09-14T07:02:29 | 2019-01-24T10:32:43 | Python | UTF-8 | Python | false | true | 1,867 | py | pipeline_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pipeline.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from goo... |
d1a68b973c794765166b379950c7d41976b37865 | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/javascript/resolve_test.py | a623106b3edfcd1e0ba7dd058f42fd7097c79251 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 2,932 | py | resolve_test.py | # Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import json
import pytest
from pants.backend.javascript import resolve
from pants.backend.javascript.package_json import NodeThirdPartyPackageTarget, P... |
ae9ced7ebdb2c948d4e0b42575e394b108721106 | 3405736c71d6224374437dba141815d03e95b89f | /tools/sign/convertkey.py | 34f9f8003905ef3f2cb4b3a1fb5534341e7da503 | [
"MIT"
] | permissive | nwjs/nw.js | dd1338335ec7306b94203f46629fa83081e1c364 | c2184a6edae6d6cca99d199ad5fedd37e4af3fad | refs/heads/nw78 | 2023-08-31T13:00:22.395612 | 2023-07-30T22:47:46 | 2023-07-30T22:47:46 | 3,100,121 | 28,744 | 3,512 | MIT | 2023-08-17T22:23:55 | 2012-01-04T06:21:10 | JavaScript | UTF-8 | Python | false | false | 415 | py | convertkey.py | from Crypto.PublicKey import RSA
import sys
key = RSA.importKey(open("private_key.pem").read())
der = key.publickey().exportKey("DER")
i = 0
total = len(der)
sys.stdout.write('''
const uint8 kNWSignaturesPublicKey[] = {
''')
for c in der:
sys.stdout.write("{0:#04x}".format(ord(c)))
i += 1
if i < total:... |
6bbfd856aa47356eade10cec2478ba142891e0db | 82a7c9ae5392d847df4b01ae864c81bd14caab74 | /notifications_extension/views.py | 44b4d0f769a9d0840a1b6031977511a4f45f22b7 | [
"MIT"
] | permissive | DjangoChinaOrg/Django-China-API | d4ab9be99d94d74f9f5f93620ea6d062d4fa18a6 | 79a5d85fe88ba7784d08d370b8e7519f7274f208 | refs/heads/dev | 2021-07-23T17:37:59.471725 | 2018-11-08T09:55:03 | 2018-11-08T09:55:03 | 122,849,421 | 190 | 52 | MIT | 2018-10-13T12:18:09 | 2018-02-25T15:37:58 | Python | UTF-8 | Python | false | false | 1,806 | py | views.py | from rest_framework import permissions, viewsets, mixins
from notifications.models import Notification
from rest_framework import filters
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.response import Response
from rest_framework import status
from rest_framework.decorators import act... |
807a837d4cf69d4aa7173c4051e4c3c14d413ad2 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/metadata/metadata/backend/mysql/replica_base.py | 3ab330a878a927334f7842a1f2dc037e3d41de13 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 3,555 | py | replica_base.py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... |
9e6fc7a26c5c901d65ab8c83e03639f4b5aa61bd | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Skimage_numpy/source/skimage/io/_plugins/pil_plugin.py | 59811dd2e0c89263217db06b52cfea1f9e14d539 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 7,726 | py | pil_plugin.py | __all__ = ['imread', 'imsave']
import numpy as np
from six import string_types
from PIL import Image
from ...util import img_as_ubyte, img_as_uint
def imread(fname, dtype=None, img_num=None, **kwargs):
"""Load an image from file.
Parameters
----------
fname : str or file
File name or file-li... |
5444629de85d57f828201222c2eb016f75d7d6b2 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/webrtc/tools_webrtc/ios/generate_modulemap.py | 1b61b8e3d120dd56031d2c92098b491b09983283 | [
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-google-patent-license-webm",
"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 | 1,135 | py | generate_modulemap.py | #!/usr/bin/env vpython3
# Copyright (c) 2018 The WebRTC 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 in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. Al... |
5fa280eb219f0e2d5da7e36bfd2205c79a186586 | 77fee94c58cd5b6305eef2f13d74b488db428c59 | /litex/soc/cores/cpu/blackparrot/core.py | 0f03ccdd7cb844ec8f2a41f02fc8ba226dd3c660 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | enjoy-digital/litex | de5919d649c1b884c47a5e0364c2a9a584ebd614 | 405296b7fd99764af21fffd94afa5075c22affa8 | refs/heads/master | 2023-08-31T23:52:33.895792 | 2023-08-31T17:34:55 | 2023-08-31T17:36:21 | 45,734,719 | 2,351 | 524 | NOASSERTION | 2023-09-14T21:26:26 | 2015-11-07T12:02:12 | C | UTF-8 | Python | false | false | 6,788 | py | core.py | # BlackParrot Chip core support for the LiteX SoC.
#
# Authors: Sadullah Canakci & Cansu Demirkiran <{scanakci,cansu}@bu.edu>
# Copyright (c) 2019, Boston University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following c... |
9cca6448a24bad5ccf51ae66c1c871aa7ecbd70b | 538348577d4089f21a110e90a935fc11e171230b | /examples/custom_problem.py | c9f5ac8ff83ac20f006768ffe711b88c48700ae6 | [
"MIT"
] | permissive | NiaOrg/NiaPy | 94fd873c5427f5fc23ce9402ad8633279fc9c6e4 | 70562b0c840bb0a7c45941d35e22244cea12f697 | refs/heads/master | 2023-07-07T06:09:42.210076 | 2023-06-27T09:22:17 | 2023-06-27T09:22:17 | 120,444,947 | 254 | 150 | MIT | 2023-04-24T11:54:24 | 2018-02-06T11:25:36 | Python | UTF-8 | Python | false | false | 827 | py | custom_problem.py | # encoding=utf8
# This is temporary fix to import module from parent folder
# It will be removed when package is published on PyPI
import sys
sys.path.append('../')
import numpy as np
from niapy.task import Task
from niapy.problems import Problem
from niapy.algorithms.basic import ParticleSwarmAlgorithm
class MyPro... |
032fedda5f8a22a80e07af24ed37daf4d579cdcb | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/joblib/joblib/externals/loky/cloudpickle_wrapper.py | 099debcb711c6695f0570861293b198047bd6093 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 3,608 | py | cloudpickle_wrapper.py | import inspect
from functools import partial
from joblib.externals.cloudpickle import dumps, loads
WRAP_CACHE = {}
class CloudpickledObjectWrapper:
def __init__(self, obj, keep_wrapper=False):
self._obj = obj
self._keep_wrapper = keep_wrapper
def __reduce__(self):
_pickled_object = ... |
1b13ba7f60fd4de9a05e21c8ccfc99ebb76b6f4a | ed83a8a01473055b6563f0a1122738442f69be0a | /scratch/__init__.py | c03f6cd803c226237ed434d9bcc5cbd4c9b53469 | [] | no_license | cs50/problems | 528a6a09e533d7dabaebd5d67bd8d7052d35681b | 96f8dd1c6b8202dcc67f36f06471a178acc4237f | refs/heads/2023/x | 2023-09-03T20:10:55.654530 | 2023-08-30T21:17:54 | 2023-08-30T21:17:54 | 137,074,067 | 128 | 221 | null | 2023-09-04T17:39:14 | 2018-06-12T13:15:17 | Python | UTF-8 | Python | false | false | 3,129 | py | __init__.py | import json
import os
import shlex
import itertools
import check50
@check50.check()
def valid():
"""project exists and is valid Scratch program"""
# Make sure there is only one .sb3 file.
filenames = [filename for filename in os.listdir() if filename.endswith(".sb3")]
if len(filenames) > 1:
... |
bb38f611c4ab6c4b125be708bd5f3aa524878209 | 1517c5b1d372303e03e167bfb7340c76a5a28110 | /src/django_otp/plugins/otp_email/migrations/0002_sidechanneldevice_email.py | 4b036abd4ce28f10d6291e08e946f128d41e6b96 | [
"Unlicense"
] | permissive | django-otp/django-otp | 75ab08a5a19cf8668c2057f77343424e11fbb560 | d65a039582509a08c56c35f905380fe3ff8507cb | refs/heads/master | 2023-08-20T06:14:16.968288 | 2023-07-07T18:18:14 | 2023-07-07T18:18:14 | 203,846,576 | 460 | 104 | Unlicense | 2023-09-08T09:17:26 | 2019-08-22T17:57:17 | Python | UTF-8 | Python | false | false | 792 | py | 0002_sidechanneldevice_email.py | # Generated by Django 3.0.2 on 2020-04-10 02:36
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('otp_email', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='emaildevice',
... |
28e2ffe3f3013f3ff0e476304f777d73c6c489f3 | 79e904fb9835b8420df0547343eaeaa447684416 | /kayak/util.py | bb79f56b8b2d542a7c764d14186d88811bb0247e | [
"MIT"
] | permissive | HIPS/Kayak | 20b05af5a74a755770f273050dcd05203ab45f3d | 1a7d4baa849bbd5a6f6d0486136169899cf25523 | refs/heads/master | 2021-01-23T07:26:37.445813 | 2017-08-22T13:45:12 | 2017-08-22T13:45:12 | 21,425,991 | 256 | 41 | null | 2015-04-13T17:17:04 | 2014-07-02T13:50:59 | Python | UTF-8 | Python | false | false | 2,292 | py | util.py | # Authors: Harvard Intelligent Probabilistic Systems (HIPS) Group
# http://hips.seas.harvard.edu
# Ryan Adams, David Duvenaud, Scott Linderman,
# Dougal Maclaurin, Jasper Snoek, and others
# Copyright 2014, The President and Fellows of Harvard University
# Distributed under an MIT license. Se... |
d79678d66e5fa7eee47056c528643e7ea39a967e | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/autoscaler/_private/vsphere/utils.py | 52a8454d0b83d313cb181528b8d3fc5c26dc0f8d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 2,567 | py | utils.py | import atexit
import ssl
from enum import Enum
import requests
from pyVim.connect import Disconnect, SmartConnect
from vmware.vapi.vsphere.client import create_vsphere_client
class Constants:
TYPE_OF_RESOURCE = "VirtualMachine"
NODE_CATEGORY = "ray"
RAY_HEAD_FROZEN_VM_TAG = "ray-frozen-vm"
VSPHERE_NO... |
edd0d7ab7e2cd14cefde17279cce691153fac8fb | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/pytorch/sign/dataset.py | 8a5c92778d3d8196624affc2a876ea2cde02c7f4 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 1,445 | py | dataset.py | import dgl
import numpy as np
import torch
def load_dataset(name):
dataset = name.lower()
if dataset == "amazon":
from ogb.nodeproppred.dataset_dgl import DglNodePropPredDataset
dataset = DglNodePropPredDataset(name="ogbn-products")
splitted_idx = dataset.get_idx_split()
train... |
505f171fcdcd407de0f85f94cc23fbda2264b459 | 110044654f706e920380dad2779bb32a77f1f26f | /test/CPPSUFFIXES.py | 9b8dd9089f404dfc329188f04fb3559adf72ed20 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SCons/scons | 89327bb9635cee6e7cc59249edca9cd859d7d1ff | b2a7d7066a2b854460a334a5fe737ea389655e6e | refs/heads/master | 2023-09-01T19:37:03.603772 | 2023-08-28T04:32:42 | 2023-08-28T04:32:42 | 104,670,160 | 1,827 | 342 | MIT | 2023-09-14T15:13:21 | 2017-09-24T19:23:46 | Python | UTF-8 | Python | false | false | 3,869 | py | CPPSUFFIXES.py | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.