id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pano_airflow-2.7.1-py3-none-any.whl/airflow/models/serialized_dag.py | """Serialized DAG table in database."""
from __future__ import annotations
import logging
import zlib
from datetime import datetime, timedelta
import sqlalchemy_jsonfield
from sqlalchemy import BigInteger, Column, Index, LargeBinary, String, and_, or_
from sqlalchemy.orm import Session, backref, foreign, relationship... | PypiClean |
/pulumi_fortios-0.0.9.tar.gz/pulumi_fortios-0.0.9/pulumi_fortios/switch_controller_quarantine.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
from ._inputs import *
__all__ = ['SwitchControllerQuarantineArgs', 'SwitchControllerQuarantine']
@pulumi.input_type
class SwitchControll... | PypiClean |
/pandoc-minted-0.2.0.tar.gz/pandoc-minted-0.2.0/pandoc_minted/cli.py | from string import Template
from pandocfilters import toJSONFilter, RawBlock, RawInline
def unpack_code(value, language):
''' Unpack the body and language of a pandoc code element.
Args:
value contents of pandoc object
language default language
'''
[[_, classes, attributes], ... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/@jupyterlab/statedb/lib/restorablepool.js | "use strict";
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.RestorablePool = void 0;
const coreutils_1 = require("@lumino/coreutils");
const properties_1 = require("@lumino/properties");
const... | PypiClean |
/wf-dagger-0.2.3.tar.gz/wf-dagger-0.2.3/dagger/service/services.py | from __future__ import annotations
import asyncio
import json
import logging
import time
import traceback
import uuid
from random import Random
from typing import (
Any,
AsyncGenerator,
Awaitable,
Callable,
Dict,
List,
Mapping,
MutableMapping,
Optional,
Set,
)
from uuid import U... | PypiClean |
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/topi/mali/conv2d.py | """conv2d schedule on ARM Mali GPU"""
import logging
import tvm
from tvm import te
from tvm import relay
from tvm import autotvm
from tvm.autotvm.task.space import get_factors
from ..utils import traverse_inline, get_const_int, get_const_tuple
from .. import nn
from ..nn.winograd_util import winograd_transform_matrice... | PypiClean |
/pyrestyle-0.0.8-py3-none-any.whl/pyrestyle.py | r"""
Check Python source code formatting, according to PEP 8.
For usage and a list of options, try this:
$ python pycodestyle.py -h
This program and its regression test suite live here:
https://github.com/pycqa/pycodestyle
Groups of errors and warnings:
E errors
W warnings
100 indentation
200 whitespace
300 blank li... | PypiClean |
/open-helpdesk-0.4.4.tar.gz/open-helpdesk-0.4.4/openhelpdesk/static/openhelpdesk/js/lib/tiny_mce/utils/validate.js | // String validation:
if (!Validator.isEmail('myemail'))
alert('Invalid email.');
// Form validation:
var f = document.forms['myform'];
if (!Validator.isEmail(f.myemail))
alert('Invalid email.');
*/
var Validator = {
isEmail : function(s) {
return this.test(s, '^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#... | PypiClean |
/django-simple-utilities-0.8.tar.gz/django-simple-utilities-0.8/utilities/static/utilities/js/models/tinymce/jscripts/tiny_mce/langs/en.js | tinyMCE.addI18n({en:{
common:{
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
apply:"Apply",
insert:"Insert",
update:"Update",
cancel:"Cancel",
close:"Close",
browse:"Browse",
class_name:"Class",
not_set:"-- Not set --",
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo ... | PypiClean |
/lfs-theme-0.11.1.tar.gz/lfs-theme-0.11.1/lfs_theme/static/lfs_theme/bower_components/bootstrap/js/dist/tab.js | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... | PypiClean |
/graphical_model_learning-0.1a7.tar.gz/graphical_model_learning-0.1a7/graphical_model_learning/algorithms/dag/gsp_new.py | from typing import Dict, Optional, Any, List, Set, Union
from causaldag import DAG
import itertools as itr
from conditional_independence import CI_Tester
from causaldag.classes.custom_types import UndirectedEdge
from causaldag.utils.invariance_tests import InvarianceTester
from causaldag.utils.core_utils import powerse... | PypiClean |
/pynorama-0.4.2.tar.gz/pynorama-0.4.2/README.md | ## Pynorama
Pynorama is a tool for visualizing intricate datasets for which a simple table format is not suitable. It was created with Natural Language Processing applications in mind.
[TODO: Screenshot]
Pynorama lets you define *views* in **python** that are rendered as interactive web applications, letting you brow... | PypiClean |
/starlite_saqlalchemy-0.30.0-py3-none-any.whl/starlite_saqlalchemy/repository/abc.py | from __future__ import annotations
from abc import ABCMeta, abstractmethod
from typing import TYPE_CHECKING, Any, Generic, TypeVar
from starlite_saqlalchemy.exceptions import NotFoundError
if TYPE_CHECKING:
from .types import FilterTypes
__all__ = ["AbstractRepository"]
T = TypeVar("T")
RepoT = TypeVar("RepoT"... | PypiClean |
/mms-networkx-1.12rc1.tar.gz/mms-networkx-1.12rc1/networkx/algorithms/vitality.py | import networkx as nx
__author__ = "\n".join(['Aric Hagberg (hagberg@lanl.gov)',
'Renato Fabbri'])
__all__ = ['closeness_vitality']
def weiner_index(G, weight=None):
# compute sum of distances between all node pairs
# (with optional weights)
weiner=0.0
if weight is None:
... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/remote/__init__.py | from __future__ import annotations
from collections.abc import Iterable
from datetime import timedelta
import functools as ft
import logging
from typing import Any, cast, final
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_COMMAND,
SERVIC... | PypiClean |
/ali_domain_sdk-0.1.tar.gz/ali_domain_sdk-0.1/ali_domain_sdk/alidomainutils.py | from urllib.parse import quote
from hashlib import sha1
import datetime
import hmac
import base64
import requests
import random
SEPARATOR = "&"
class AliAuthInfo:
def __init__(self, accessKeyId, accessKeySecret, domainName):
self.accessKeyId = accessKeyId
self.accessKeySecret = accessKeySecret
... | PypiClean |
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/lib/geoext-ux-styler/examples/feature-style-selector.js | * Style Selector
* --------------
* Use a ComboBox to select the style of a feature
*/
var mapPanel;
Ext.onReady(function() {
var options, layer;
var extent = new OpenLayers.Bounds(-5, 35, 15, 55);
layer = new OpenLayers.Layer.WMS(
"Global Imagery",
"http://maps.opengeo.org/geoweb... | PypiClean |
/FEW-0.0.51.tar.gz/FEW-0.0.51/few/few.py | import argparse
from ._version import __version__
from .evaluation import EvaluationMixin
from .population import PopMixin, node
from .variation import VariationMixin
from .selection import SurvivalMixin
from sklearn.base import BaseEstimator
from sklearn.linear_model import LassoLarsCV, LogisticRegression, SGDClassif... | PypiClean |
/Miscoto-3.1.2.tar.gz/Miscoto-3.1.2/miscoto/sbml.py |
# Copyright (C) 2018-2021 Clémence Frioux & Arnaud Belcour - Inria Dyliss - Pleiade
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option)... | PypiClean |
/liecasadi-0.0.4.tar.gz/liecasadi-0.0.4/README.md | # liecasadi
[](https://github.com/ami-iit/liecasadi/actions/workflows/tests.yml)
`liecasadi` implements Lie groups operation written in CasADi, mainly directed to optimization problem formulation.
Inspired by [A micro Lie theory ... | PypiClean |
/wpkit2-0.0.4.1.tar.gz/wpkit2-0.0.4.1/wk/data/static/pkgs/editor.md/codemirror/addon/display/panel.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
Code... | PypiClean |
/email_actions-0.1.0.tar.gz/email_actions-0.1.0/email_actions/server.py | import logging
import asyncio
import argparse
import socket
from aiosmtpd.handlers import Message
from aiosmtpd.controller import Controller
from functools import partial
from email_actions.constants import VERSION
from email_actions.filters import Filter
from email_actions.config import check_config
def bind(family... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/virtual_network_gateway_nat_rule/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class VirtualNetworkGatewayNatRule(
_cdktf_9a9027ec.Terr... | PypiClean |
/mwrpy-0.4.3.tar.gz/mwrpy-0.4.3/README.md | # MWRpy
[](https://github.com/actris-cloudnet/mwrpy/actions/workflows/test.yml)
[](https://badge.fury.io/py/mwrpy)
MWRpy is a Python software to process RPG Microwave Radiome... | PypiClean |
/qf_lib-2.2.9-py3-none-any.whl/qf_lib/common/utils/miscellaneous/periods_list.py |
from datetime import datetime
from typing import Sequence, Tuple
from qf_lib.common.utils.miscellaneous.consecutive_duplicates import drop_consecutive_duplicates, Method
from qf_lib.containers.series.qf_series import QFSeries
def periods_list_from_bool_series(series: QFSeries) -> Sequence[Tuple[datetime, datetime]]... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/dlm/_inputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'LifecyclePolicyPolicyDetailsArgs',
'LifecyclePolicyPolicyDetailsActionArgs',
'LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs',
... | PypiClean |
/utils_ak-0.1.13-py3-none-any.whl/utils_ak/streaming/windowing/window.py | from datetime import datetime, timedelta
from utils_ak.builtin import update_dic
from utils_ak.time import *
from sortedcollections import SortedList
from utils_ak.numeric import custom_round
class Window:
def __init__(self):
self.state = "open" # 'open', 'closed'
def close(self):
self.state... | PypiClean |
/freva-2307.0.3.tar.gz/freva-2307.0.3/src/evaluation_system/api/workload_manager/oar.py | from __future__ import annotations
import logging
import shlex
from typing import Optional, Union, ClassVar
from .core import Job
logger = logging.getLogger(__name__)
class OARJob(Job):
# Override class variables
submit_command: ClassVar[str] = "oarsub"
cancel_command: ClassVar[str] = "oardel"
job_i... | PypiClean |
/ticket_cross_check-0.10.1-py3-none-any.whl/CHANGELOG.md | # Changelog
<!--next-version-placeholder-->
## v0.10.1 (2022-10-25)
### Fix
* Label handling on cli ([`cea03a5`](https://gitlab.com/exb/engineering/ticket-cross-check/-/commit/cea03a5e8490a947cad0e36af8b81b62a05767a0))
## v0.10.0 (2022-10-25)
### Feature
* Add label filter ([`037fc3c`](https://gitlab.com/exb/enginee... | PypiClean |
/diamond_patterns-0.5.3-py3-none-any.whl/diamond_patterns/__init__.py |
import os
import glob
import json
import arrow
import requests
master_config = {
'manifest_file': '~/.diamond-patterns-manifest.json',
'docs_html_url': 'https://diamond-patterns.readthedocs.io/en/latest/patterns',
'docs_rst_url': 'https://raw.githubusercontent.com/iandennismiller/diamond-patterns/master/... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2020_09_01/_configuration.py |
from typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
from ._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-... | PypiClean |
/cwl-airflow-1.2.11.tar.gz/cwl-airflow-1.2.11/cwl_airflow/extensions/operators/cwljobdispatcher.py | import os
from tempfile import mkdtemp
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
from cwl_airflow.utilities.helpers import (
get_dir,
dump_json,
get_absolute_path
)
from cwl_airflow.utilities.cwl import (
load_job,
get_temp_folders
)
from cwl_airfl... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/ca.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","ca",{title:"Instruccions d'Accessibilitat",contents:"Continguts de l'Ajuda. Per tancar aquest quadre de diàleg premi ... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v12/services/services/media_file_service/client.py | from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources
from google.api_core import client_options as client_options_lib
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credent... | PypiClean |
/kedro-datasets-1.7.0.tar.gz/kedro-datasets-1.7.0/kedro_datasets/dask/parquet_dataset.py | from copy import deepcopy
from typing import Any, Dict
import dask.dataframe as dd
import fsspec
import triad
from kedro.io.core import get_protocol_and_path
from .._io import AbstractDataset as AbstractDataSet
class ParquetDataSet(AbstractDataSet[dd.DataFrame, dd.DataFrame]):
"""``ParquetDataSet`` loads and sa... | PypiClean |
/google-cloud-dialogflow-cx-1.26.0.tar.gz/google-cloud-dialogflow-cx-1.26.0/google/cloud/dialogflowcx_v3beta1/services/webhooks/transports/grpc_asyncio.py | import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
... | PypiClean |
/pypret_pymodaq-0.0.1.tar.gz/pypret_pymodaq-0.0.1/docs/index.rst | pypret
======
:Release: |release|
:Date: |today|
This is the documentation of `Python for pulse retrieval`. It is a Python
package that aims to provide algorithms and tools to retrieve ultrashort
laser pulses from parametrized nonlinear process spectra, such as
frequency-resolved optical gating (FROG), dispersion sca... | PypiClean |
/mage-ai-0.9.20.tar.gz/mage-ai-0.9.20/mage_ai/autocomplete/utils.py | from functools import reduce
from mage_ai.shared.utils import files_in_path
import aiofiles
import importlib
import os
import pathlib
import re
root_path = '/'.join(str(pathlib.Path(__file__).parent.resolve()).split('/')[:-2])
FILE_EXTENSIONS_TO_INCLUDE = [
'.py',
]
PATHS_TO_TRAVERSE = [
f'{root_path}/mage_... | PypiClean |
/portapy-0.0.1.post2-py3-none-any.whl/portapy-js/node_modules/tslint/lib/rules/newlinePerChainedCallRule.js | "use strict";
/**
* @license
* Copyright 2017 Palantir 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
*
* Unle... | PypiClean |
/ffpb-0.4.1.tar.gz/ffpb-0.4.1/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com) and
this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
[Unreleased]: https://github.com/althonos/ffpb/compare/v0.4.1..... | PypiClean |
/nfl_insights-0.2.49.tar.gz/nfl_insights-0.2.49/nfl_insights/nfl_play_context.py | import json
class NFLPlayContext:
def __init__(self, awayteam, hometeam, year="2015"):
### recursion stack for penalties and subplays
self.stack = []
self.firstPlay = True
### meta data
self._punt = self._kick # punt and kick behave the same
self.awayTeam = awayt... | PypiClean |
/dendron_notesdir-0.0.6-py3-none-any.whl/notesdir/accessors/pdf.py | from datetime import datetime
from typing import Optional, Set
from PyPDF4 import PdfFileReader, PdfFileMerger
from PyPDF4.generic import IndirectObject
from notesdir.accessors.base import Accessor, ParseError
from notesdir.models import AddTagCmd, DelTagCmd, FileInfo, SetTitleCmd, SetCreatedCmd
def _pdf_strptime(s... | PypiClean |
/pqp-0.3.3.tar.gz/pqp-0.3.3/python/docs/source/api/pqp.refutation.Result.rst | Result
======
.. currentmodule:: pqp.refutation
.. autoclass:: Result
:show-inheritance:
.. rubric:: Attributes Summary
.. autosummary::
~Result.keys
.. rubric:: Methods Summary
.. autosummary::
~Result.explain
~Result.explain_all
~Result.get_dependencies
~Result.get... | PypiClean |
/f5-sdk-3.0.21.tar.gz/f5-sdk-3.0.21/f5sdk_plugins/fixtures.py | import pytest
from f5.bigip import BigIP
from f5.bigip import ManagementRoot
def pytest_addoption(parser):
parser.addoption("--bigip", action="store",
help="BIG-IP hostname or IP address")
parser.addoption("--username", action="store", help="BIG-IP REST username",
de... | PypiClean |
/leximpact_aggregates-0.0.27-py3-none-any.whl/leximpact_aggregates/aggregates_pote.py |
# %% auto 0
__all__ = [
"tc",
"extraction_date",
"csv_pote_extractions_folder",
"calib_copulas_and_quantile_folder",
"of_vars",
"df_dgfip",
"metadata",
"ref_pote_2018",
"ref_pote_2019",
"ref_pote_2020",
"ref_pote_2021",
"labels",
"perimeter",
"year",
"liste_d... | PypiClean |
/uos.cli-1.6.1.tar.gz/uos.cli-1.6.1/openstackclient/identity/v3/endpoint.py | import logging
import six
import sys
from cliff import command
from cliff import lister
from cliff import show
from openstackclient.common import utils
from openstackclient.identity import common
def get_service_name(service):
if hasattr(service, 'name'):
return service.name
else:
return ''
... | PypiClean |
/tape_proteins-0.5-py3-none-any.whl/tape/visualization.py | import typing
import os
import logging
from abc import ABC, abstractmethod
from pathlib import Path
import torch.nn as nn
from tensorboardX import SummaryWriter
try:
import wandb
WANDB_FOUND = True
except ImportError:
WANDB_FOUND = False
logger = logging.getLogger(__name__)
class TAPEVisualizer(ABC):
... | PypiClean |
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/static/codenerix/lib/angular/i18n/angular-locale_ar-iq.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u0635",
"\u0645"
],
"DAY": [
"\u0627\u0644... | PypiClean |
/cloudrail-knowledge-0.0.228.tar.gz/cloudrail-knowledge-0.0.228/README.md | 



![Makrdown Check List]... | PypiClean |
/cognite_sdk-6.17.0.tar.gz/cognite_sdk-6.17.0/cognite/client/_api/sequences.py | from __future__ import annotations
import copy
import math
from typing import TYPE_CHECKING, Any, Iterator, List, Literal, Tuple, Union, cast, overload
from typing import Sequence as SequenceType
from typing_extensions import TypeAlias
from cognite.client import utils
from cognite.client._api_client import APIClient... | PypiClean |
/myjd_api-1.1.0-py3-none-any.whl/myjd_api/web.py |
import argparse
import ast
import json
import os
import sys
import time
from functools import wraps
from socketserver import ThreadingMixIn
from wsgiref.simple_server import make_server, WSGIServer, WSGIRequestHandler
from Cryptodome.Protocol.KDF import scrypt
from Cryptodome.Random import get_random_bytes
from bottl... | PypiClean |
/openwisp-monitoring-1.0.4.tar.gz/openwisp-monitoring-1.0.4/openwisp_monitoring/device/static/monitoring/js/device-map.js | "use strict";
/* jshint -W098 */
function owGeoMapInit(map, _) {
/* jshint +W098 */
var $ = django.jQuery,
loadingOverlay = $('#device-map-container .ow-loading-spinner'),
localStorageKey = 'ow-map-shown',
mapContainer = $('#device-map-container'),
colors = {
ok: '#2... | PypiClean |
/Weblate_a1az-4.3.2.2-py3-none-any.whl/weblate/vcs/mercurial.py | """Mercurial version control system abstraction for Weblate needs."""
import os
import os.path
import re
from configparser import RawConfigParser
from datetime import datetime
from typing import List, Optional
from weblate.vcs.base import Repository, RepositoryException
from weblate.vcs.ssh import SSH_WRAPPER
class... | PypiClean |
/hi-ml-0.3.4.tar.gz/hi-ml-0.3.4/src/health_ml/utils/checkpoint_handler.py |
import logging
import tempfile
from azureml.core import Run
from pathlib import Path
from typing import Optional
from health_azure import RUN_CONTEXT
from health_azure.utils import is_global_rank_zero, is_running_in_azure_ml
from health_ml.utils.common_utils import DEFAULT_AML_UPLOAD_DIR
from health_ml.lightning_cont... | PypiClean |
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/81da395f.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[53890],{53890:(e,t,i)=>{i.a(e,(async e=>{i.r(t),i.d(t,{HaAutomationTrace:()=>S});var r=i(37500),o=i(33310),a=i(8636),n=i(86230),s=i(7323),c=i(44583),d=(i(10983),i(71955),i(13126),i(89497)),l=i(78940),h=i(7719),u=... | PypiClean |
/ktgitclone-0.0.1.tar.gz/ktgitclone-0.0.1/__init__.py | import git,os,tempfile,fnmatch,argparse,sys,shutil,stat,github
from github import Github
from subprocess import call
def RepoDuplicate(username,password,input_repo_url,output_repo_name):
tempdir,path,flag = clone_repo(input_repo_url)
if flag == 1:
#error in cloning
shutil.rmtree(tempdir,igno... | PypiClean |
/FairQt-2.2.0.tar.gz/FairQt-2.2.0/FQt/__init__.py | from PyQt6 import uic, QtWidgets
from F import LIST, DICT, RE
from F.CLASS import FairClass
from .FTemplates import DEFAULT_TEMPLATE
"""
-> Everything/Widget should be named exactly the name
: QtDesigner -> btnSearch
: Class Variable -> btnSearch
: Action Function -> onClick_btnSearch
"""
VIEW_ELEMENTS =... | PypiClean |
/variation-normalizer-0.6.3.tar.gz/variation-normalizer-0.6.3/variation/validators/polypeptide_sequence_variation_base.py | import logging
from typing import List, Optional, Dict
from gene.query import QueryHandler as GeneQueryHandler
from ga4gh.vrs.extras.translator import Translator
from ga4gh.vrsatile.pydantic.vrs_models import RelativeCopyClass
from uta_tools.data_sources import SeqRepoAccess, TranscriptMappings, UTADatabase, \
MAN... | PypiClean |
/nvidia_dali_cuda120-1.29.0-9289093-py3-none-manylinux2014_x86_64.whl/nvidia/dali/plugin/pytorch.py |
from nvidia.dali.backend import TensorGPU, TensorListGPU
from nvidia.dali.pipeline import Pipeline
import nvidia.dali.ops as ops
from nvidia.dali import types
from nvidia.dali.plugin.base_iterator import _DaliBaseIterator
from nvidia.dali.plugin.base_iterator import LastBatchPolicy
import torch
import torch.utils.dlpa... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_14/models/protection_group_target_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_14 import models
class ProtectionGroupTargetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
a... | PypiClean |
/soma_base-5.1.1-py3-none-any.whl/soma/utils/sip_compat.py |
import inspect
import enum
import sys
def sip4_to_sip6_enums(module, recursive=True):
''' Convert Sip4 style enums to sip6 style enums.
Sip4 exports C++ enums as in C++, ex::
instance.ENUM_VALUE # where ENUM_VALUE is an instance of EnumType
Sip6 keeps values inside the enum type::
in... | PypiClean |
/wagtail-cjkcms-23.8.11.tar.gz/wagtail-cjkcms-23.8.11/cjkcms/blocks/base_blocks.py | from django import forms
from django.template.loader import render_to_string
from django.utils.functional import cached_property
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _
from wagtail import blocks
from wagtail.models import Collection
from taggit.models import... | PypiClean |
/alphamed_federated-0.4.9-py3-none-any.whl/alphafed/docs/tutorial/res/auto_model_fed_avg/res_net.py | from typing import Callable, List, Optional, Type, Union
import torch
from torch import nn
def conv3x3(in_planes: int,
out_planes: int,
stride: int = 1,
groups: int = 1,
dilation: int = 1) -> nn.Conv2d:
"""Define 3x3 convolution with padding."""
return nn.Conv2... | PypiClean |
/cadbiom_cmd-1.1.0.tar.gz/cadbiom_cmd-1.1.0/cadbiom_cmd/cadbiom_cmd.py | """Entry point and argument parser for cadbiom_cmd package"""
from __future__ import print_function
# Standard imports
import argparse
import os
import sys
from functools import wraps
# Custom imports
import cadbiom.commons as cm
LOGGER = cm.logger()
parser = None
def check_output_dir(function):
"""Decorator u... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/chats/item/members/item/conversation_member_item_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/klaviyo_api-5.1.2-py3-none-any.whl/openapi_client/models/campaign_send_job_partial_update_query_resource_object.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from pydantic import BaseModel, Field, StrictStr
from openapi_client.models.campaign_send_job_enum import CampaignSendJobEnum
from openapi_client.models.campaign_send_job_partial_update_query_resource_object_attributes import Campai... | PypiClean |
/scikit-XCS-1.0.8.tar.gz/scikit-XCS-1.0.8/skXCS/IterationRecord.py | import csv
import numpy as np
class IterationRecord():
'''
IterationRecord Tracks 1 dictionary:
1) Tracking Dict: Cursory Iteration Evaluation. Frequency determined by trackingFrequency param in eLCS. For each iteration evaluated, it saves:
KEY-iteration number
0-accuracy (approximate from ... | PypiClean |
/django-sencha-1.3.55555.tar.gz/django-sencha-1.3.55555/sencha/static/sencha/src/tab/Tab.js | * @author Ed Spencer
*
* Represents a single Tab in a {@link Ext.tab.Panel TabPanel}. A Tab is simply a slightly customized {@link Ext.button.Button Button},
* styled to look like a tab. Tabs are optionally closable, and can also be disabled. 99% of the time you will not
* need to create Tabs manually as the fra... | PypiClean |
/sixth-sense-0.0.5.tar.gz/sixth-sense-0.0.5/sixth_sense/middlewares/six_independent_rate_limiter.py | from starlette.middleware.base import BaseHTTPMiddleware
from starlette.types import ASGIApp
from starlette.types import ASGIApp, Message
from fastapi import FastAPI,Response, Request
import time
import json
from sixth_sense import schemas
import re
import requests
import ast
class SixRateIndependentLimiterMiddleware... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/utils/graphie-3d.js | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | PypiClean |
/openmesh-1.1.4.post18.tar.gz/openmesh-1.1.4.post18/pybind11/docs/advanced/pycpp/utilities.rst | Utilities
#########
Using Python's print function in C++
====================================
The usual way to write output in C++ is using ``std::cout`` while in Python one
would use ``print``. Since these methods use different buffers, mixing them can
lead to output order issues. To resolve this, pybind11 modules c... | PypiClean |
/xrt-1.6.0.zip/xrt-1.6.0/examples/withRaycing/01_SynchrotronSources/MAX-IV-IDs-Flux.py | # -*- coding: utf-8 -*-
import os, sys; sys.path.append(os.path.join('..', '..', '..')) # analysis:ignore
#import matplotlib as mpl
import copy
import numpy as np
import matplotlib.pyplot as plt
try:
import xlwt
except ImportError:
xlwt = None
import xrt.backends.raycing.sources as rs
from xrt.backends.rayci... | PypiClean |
/manila-15.2.0.tar.gz/manila-15.2.0/doc/source/contributor/database.rst | ..
Copyright 2010-2011 United States Government as represented by the
Administrator of the National Aeronautics and Space Administration.
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. Y... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/AlipayMsaasMediarecogAftsCarIdentifyModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayMsaasMediarecogAftsCarIdentifyModel(object):
def __init__(self):
self._ext = None
self._h = None
self._kilometres = None
self._url = None
self._user_id = None
self._w = None
self.... | PypiClean |
/tomtoolkit-2.14.4.tar.gz/tomtoolkit-2.14.4/tom_targets/api_views.py | from django_filters import rest_framework as drf_filters
from guardian.mixins import PermissionListMixin
from guardian.shortcuts import get_objects_for_user
from rest_framework.mixins import DestroyModelMixin, RetrieveModelMixin
from rest_framework.viewsets import GenericViewSet, ModelViewSet
from tom_targets.filters ... | PypiClean |
/networkx-3.1.tar.gz/networkx-3.1/doc/developer/nxeps/nxep-0004.rst | .. _NXEP4:
=================================
NXEP 4 — Default random interface
=================================
:Author: Ross Barnowski (rossbar@berkeley.edu)
:Status: Draft
:Type: Standards Track
:Created: 2022-02-24
Abstract
--------
Pseudo-random numbers play an important role in many graph and network analysi... | PypiClean |
/conqur-1.0.0.tar.gz/conqur-1.0.0/README.rst | ======
ConQuR
======
.. image:: https://img.shields.io/pypi/v/conqur
:target: https://pypi.org/pypi/conqur
.. image:: https://readthedocs.org/projects/conqur/badge/?version=latest
:target: https://conqur.readthedocs.io/en/latest/?version=latest
:alt: Documentation Status
Batch effects rem... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/node-fetch/CHANGELOG.md |
Changelog
=========
# 1.x release
## v1.6.3
- Enhance: error handling document to explain `FetchError` design
- Fix: support `form-data` 2.x releases (requires `form-data` >= 2.1.0)
## v1.6.2
- Enhance: minor document update
- Fix: response.json() returns empty object on 204 no-content response instead of throwi... | PypiClean |
/bob.pad.face-5.0.0.tar.gz/bob.pad.face-5.0.0/README.md | [](https://www.idiap.ch/software/bob/docs/bob/bob.pad.face/v5.0.0/sphinx/index.html)
[](https://gitlab.idiap.ch/bob/bob.pad.face/commits/v5.0.0)
[ for comparison to an existing gpx track (gold standard, segment). Checked are the joint start and end points with a given tolerance to trim the activity. Both tracks are interpolated to allow for... | PypiClean |
/ELF2deb-1.2.1.tar.gz/ELF2deb-1.2.1/elf2deb/__main__.py | import argparse
import os
import shutil
from subprocess import run, DEVNULL
from pathlib import Path
from zipfile import ZipFile
__version__ = "1.2.1"
TEMPLATE_DIR = "templates/"
def main():
args = get_args()
# Create app dir:
package_dir = Path("{package_name}-{package_version}".format(**vars(args)))
... | PypiClean |
/SetSolver1-1!2021.11.1.tar.gz/SetSolver1-1!2021.11.1/README.md | This script is solving set problems by brute-force. See [HOWTO](#HOWTO).
# HOWTO
Use python3.10 or newer. Download it [here](https://www.python.org/downloads/).
```
"python.exe" -m pip install SetSolver1
```
First import the module:
```
import SetSolver1
```
Now you can use the method:
```
SetSolver1.search(const_... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/utils/log.py |
import datetime
import contextlib
import logging
from logging import config
from logging import handlers
import os
from requests.packages import urllib3
import sys
from oslo_config import cfg
import yaml
from cloudferry.lib.utils import sizeof_format
getLogger = logging.getLogger
CONF = cfg.CONF
class StdoutLogge... | PypiClean |
/scikit-bot-0.14.0.tar.gz/scikit-bot-0.14.0/skbot/transform/utils3d.py | from math import tan
import numpy as np
from numpy.typing import ArrayLike
from scipy.spatial.transform import Rotation as scipy_rotation
from .base import Link
from .projections import PerspectiveProjection
from .affine import AffineCompound, Translation, Rotation
from ._utils import angle_between, vector_project
c... | PypiClean |
/jutl-0.5.3.tar.gz/jutl-0.5.3/README.md | <!-- ASCII Logo -->
```ascii
_ _ _ _
(_)_ _| |_(_) |___
| | | | | __| | / __|
| | |_| | |_| | \__ \
_/ |\__,_|\__|_|_|___/
|__/
```
------------------------------------------------------
<div align="center">
[![GitHub tag (latest by... | PypiClean |
/cmsplugin_news3-0.0.2.tar.gz/cmsplugin_news3-0.0.2/README.rst | ===============
cmsplugin-news3
===============
.. image:: https://badge.fury.io/py/cmsplugin_news3.svg
:target: http://badge.fury.io/py/cmsplugin_news3
Description: A news application and plugin for Django-CMS 3
Based on https://github.com/wildfish/cmsplugin_news
This if first version of my first plugin
S... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/ZhimaCreditPeUserAuthApplyModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ZhimaCreditPeUserAuthApplyModel(object):
def __init__(self):
self._product_code = None
self._redirect_uri = None
self._scope = None
self._state = None
@property
def product_code(self):
return ... | PypiClean |
/tacl-extra-1.0.1.tar.gz/tacl-extra-1.0.1/taclextra/assets/jitc/matrix.js |
var margin = {top: 120, right: 0, bottom: 10, left: 180},
width = 720,
height = 720;
var x = d3.scale.ordinal().rangeBands([0, width]),
z = d3.scale.linear().domain([0, 20]).range([0, 1]).clamp(true),
c = d3.scale.category10().domain(d3.range(10));
var table_svg = d3.select("#matrix").append("svg")
... | PypiClean |
/pytla-0.1.0.tar.gz/pytla-0.1.0/itla/itla.py | from pkg_resources import resource_filename
from .itla_errors import *
from .utils import compute_checksum
import yaml
import serial
from serial.serialutil import SerialException
class ITLABase():
'''
A class that represents the an ITLA
and exposes a user friendly API for controlling functionality.
T... | PypiClean |
/jupyterlab_classic-0.1.11-py3-none-any.whl/jupyterlab_classic/static/packages_ui-components_lib_index_js.bundle.js | (self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([["packages_ui-components_lib_index_js"],{
/***/ "../packages/ui-components/style/icons/jupyter.svg":
/*!*********************************************************!*\
!*** ../packages/ui-components/style/icons/jupyt... | PypiClean |
/relic-tool-chunky-1.0.0.tar.gz/relic-tool-chunky-1.0.0/README.md | # Relic Tool - Chunky
[](https://pypi.org/project/Relic-Tool-Chunky/)
[](https://www.python.org/downloads/)
[](https... | PypiClean |
/netbox-gateways-0.4.3.tar.gz/netbox-gateways-0.4.3/netbox_gateways/template_content.py | from extras.plugins import PluginTemplateExtension
from ipam.models import Prefix
from .models import Gateway
from ipaddress import IPv4Address
class IPGatewayTemplate(PluginTemplateExtension):
model = "ipam.ipaddress"
def left_page(self):
return self.x_page()
return ""
def x_page(self):... | PypiClean |
/okta_jwt_verifier-0.2.4.tar.gz/okta_jwt_verifier-0.2.4/okta_jwt_verifier/config_validator.py | from .constants import ADMIN_DOMAINS
from .error_messages import (ERROR_MESSAGE_ORG_URL_MISSING,
ERROR_MESSAGE_ORG_URL_NOT_HTTPS,
ERROR_MESSAGE_ORG_URL_YOUROKTADOMAIN,
ERROR_MESSAGE_ORG_URL_ADMIN,
ERROR_M... | PypiClean |
/so_vits_svc_fork_mandarin-1.0.4-py3-none-any.whl/so_vits_svc_fork/__main__.py | from __future__ import annotations
import os
from logging import getLogger
from multiprocessing import freeze_support
from pathlib import Path
from typing import Literal
import click
import torch
from so_vits_svc_fork import __version__
from so_vits_svc_fork.utils import get_optimal_device
LOG = getLogger(__name__)... | PypiClean |
/pulumi_gcp-6.65.0a1693462587.tar.gz/pulumi_gcp-6.65.0a1693462587/pulumi_gcp/workstations/_inputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'WorkstationClusterConditionArgs',
'WorkstationClusterPrivateClusterConfigArgs',
'WorkstationConfigConditionArgs',
'WorkstationConf... | PypiClean |
/python-appengine-1.9.15.tar.gz/python-appengine-1.9.15/google/appengine/ext/mapreduce/file_formats.py | __all__ = ['FileFormat',
'FORMATS']
import StringIO
import zipfile
class FileFormat(object):
"""FileFormat can operate/iterate on files of a specific format.
Life cycle of FileFormat:
1. Two ways that FileFormat is created: file_format_root.split creates
FileFormat from scratch. FileFormat... | PypiClean |
/airflow_xtended_api-0.1.5.tar.gz/airflow_xtended_api-0.1.5/airflow_xtended_api/api/endpoints/deploy_dag.py | import logging
import os
import socket
from flask import request
from airflow.api_connexion import security
from airflow.security import permissions
from airflow import settings
from airflow.www.app import csrf
from airflow.models import DagModel
from airflow_xtended_api.api.app import blueprint
import airflow_xtende... | PypiClean |
/howso-openapi-client-24.0.9.tar.gz/howso-openapi-client-24.0.9/howso/openapi/__init__.py |
# flake8: noqa
"""
Howso API
OpenAPI implementation for interacting with the Howso API.
"""
from __future__ import absolute_import
__version__ = "24.0.9"
__api_version__ = "26.5.0"
# import apis into sdk package
from howso.openapi.api.account_api import AccountApi
from howso.openapi.api.information_api import In... | PypiClean |
/conan_package_tools-0.39.1.tar.gz/conan_package_tools-0.39.1/cpt/builds_generator.py | import copy
import os
from collections import namedtuple
from conans.model.ref import ConanFileReference
from conans.model.version import Version
from cpt.tools import split_colon_env, transform_list_options_to_dict
default_gcc_versions = ["4.9", "5", "6", "7", "8", "9", "10", "11"]
default_clang_versions = ["3.8", "... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.