id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/ops/list_ops.py
"""Ops to manipulate lists of tensors.""" # pylint: disable=g-bad-name from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/types/generated/colors.d.ts
export interface DefaultColors { inherit: 'inherit' current: 'currentColor' transparent: 'transparent' black: '#000' white: '#fff' slate: { '50': '#f8fafc' '100': '#f1f5f9' '200': '#e2e8f0' '300': '#cbd5e1' '400': '#94a3b8' '500': '#64748b' '600': '#475569' '700': '#334155' ...
PypiClean
/bflb-mcu-tool-1.8.4.tar.gz/bflb-mcu-tool-1.8.4/bflb_mcu_tool/libs/bflb_toml.py
import re import sys import io import datetime from datetime import tzinfo, timedelta from os import linesep from collections import OrderedDict if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p):...
PypiClean
/group-based-policy-automation-2015.2.2.tar.gz/group-based-policy-automation-2015.2.2/tools/install_venv_common.py
from __future__ import print_function import optparse import os import subprocess import sys class InstallVenv(object): def __init__(self, root, venv, requirements, test_requirements, py_version, project): self.root = root self.venv = venv self.requireme...
PypiClean
/gbptestneutron-0.9.0.tar.gz/gbptestneutron-0.9.0.dev194.g9d5bd52/neutron/scheduler/l3_agent_scheduler.py
import abc import itertools import random from oslo.config import cfg from oslo.db import exception as db_exc import six from sqlalchemy import sql from neutron.common import constants from neutron.common import utils from neutron.db import l3_agentschedulers_db from neutron.db import l3_db from neutron.db import l3...
PypiClean
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/5fee9b1058ba04fd5d3c9eb3e1ffaaa0.js
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/api/registry/list_dropdowns_by_registry.py
from typing import Any, Dict, Optional, Union import httpx from ...client import Client from ...models.bad_request_error import BadRequestError from ...models.dropdowns_registry_list import DropdownsRegistryList from ...types import Response def _get_kwargs( *, client: Client, registry_id: str, ) -> Dic...
PypiClean
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ace-builds/src/mode-space.js
define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) { "use strict"; var oop = require("../../lib/oop"); var BaseFoldMode = require("./fold_mode").FoldMode; var Range = require("../../range").Range; var FoldMode = ex...
PypiClean
/hibpcli-0.5.1.tar.gz/hibpcli-0.5.1/CHANGES.rst
CHANGELOG ========= 0.5.1 (07.02.2021) ------------------ - pin pykeepass as version 4.0 is broken, see https://github.com/libkeepass/pykeepass/issues/244 0.5.0 (06.01.2021) ------------------ added ~~~~~ - add the `bandit` security checker - add support for Python 3.9 - add type annotations - improve message when...
PypiClean
/github-docs-index-0.1.2.tar.gz/github-docs-index-0.1.2/github_docs_index/index_document.py
from textwrap import dedent import logging logger = logging.getLogger(__name__) class IndexDocument(object): """Class to represent the actual index document""" doc_template = dedent(""" .. _top: {title} < `Chronological Index <#chrono>`_ | `Alphabetical Index <#alpha>`_ > .. _...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/commands/uninstall.py
from __future__ import absolute_import from pip._vendor.packaging.utils import canonicalize_name from pip._internal.cli.base_command import Command from pip._internal.exceptions import InstallationError from pip._internal.req import parse_requirements from pip._internal.req.constructors import install_req_from_line f...
PypiClean
/py_do-0.1.1-py3-none-any.whl/pydo/entrypoints/cli.py
import logging import sys from typing import Any, Optional, Tuple import click from click.core import Context from click_default_group import DefaultGroup from pydantic import ValidationError from repository_orm import EntityNotFoundError from .. import services, version, views from ..model.task import RecurrentTask...
PypiClean
/jarray-0.0.0.tar.gz/jarray-0.0.0/jina/peapods/runtimes/container/__init__.py
import argparse import os import sys import time import warnings from typing import Union, Optional, Dict, TYPE_CHECKING from pathlib import Path from platform import uname from ..base import BaseRuntime from ...zmq import Zmqlet from .... import __docker_host__ from .helper import get_docker_network, get_gpu_device_r...
PypiClean
/onebone-1.2.1.tar.gz/onebone-1.2.1/README.md
<p align="center"> <img src="https://user-images.githubusercontent.com/79968466/149683786-52ad7fc8-df64-4778-8381-35663c100c77.png" align="center" width="50%" alt="onepredict logo"> <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> [![All Contributors](https://img.shields.io/badge/all_contri...
PypiClean
/py_tgcalls_kaizoku-0.9.5-cp39-cp39-win_amd64.whl/pytgcalls/node_modules/npmlog/README.md
# npmlog The logger util that npm uses. This logger is very basic. It does the logging for npm. It supports custom levels and colored output. By default, logs are written to stderr. If you want to send log messages to outputs other than streams, then you can change the `log.stream` member, or you can just listen ...
PypiClean
/os_sys-2.1.4-py3-none-any.whl/chatterbot/storage/sql_storage.py
from chatterbot.storage import StorageAdapter class SQLStorageAdapter(StorageAdapter): """ The SQLStorageAdapter allows ChatterBot to store conversation data in any database supported by the SQL Alchemy ORM. All parameters are optional, by default a sqlite database is used. It will check if tabl...
PypiClean
/ml_wrappers-0.5.1.tar.gz/ml_wrappers-0.5.1/README.md
# Machine Learning Wrappers SDK for Python ### This package has been tested with Python 3.8, 3.9 and 3.10 The Machine Learning Wrappers SDK provides a unified wrapper for various ML frameworks - to have one uniform scikit-learn format predict and predict_proba functions. Highlights of the package include: - A datas...
PypiClean
/spectra_lexer-16.1.0.tar.gz/spectra_lexer-16.1.0/spectra_lexer/resource/rules.py
from collections import Counter from typing import Iterable, Sequence from . import FrozenStruct class StenoRule(FrozenStruct): """ Immutable structure for a rule mapping a set of steno keys to a set of letters. There are two major types: Simple/base - a fundamental rule mapping a set of keys to letters....
PypiClean
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/grid/enhanced/_Events.js
if(!dojo._hasResource["dojox.grid.enhanced._Events"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.grid.enhanced._Events"] = true; dojo.provide("dojox.grid.enhanced._Events"); dojo.declare("dojox.grid.enhanced._Events", null, { // summary: // Overwri...
PypiClean
/mkdocs-pachyderm-1.2.10.tar.gz/mkdocs-pachyderm-1.2.10/material/assets/javascripts/lunr/min/lunr.sv.min.js
* based on * Snowball JavaScript Library v0.3 * http://code.google.com/p/urim/ * http://snowball.tartarus.org/ * * Copyright 2010, Oleg Mazko * http://www.mozilla.org/MPL/ */ !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){...
PypiClean
/experimentdb-0.2.tar.gz/experimentdb-0.2/media/admin-media/js/calendar.js
function removeChildren(a) { // "a" is reference to an object while (a.hasChildNodes()) a.removeChild(a.lastChild); } // quickElement(tagType, parentReference, textInChildNode, [, attribute, attributeValue ...]); function quickElement() { var obj = document.createElement(arguments[0]); if (arguments[2] != ...
PypiClean
/django-tokko-auth-0.0.3.tar.gz/django-tokko-auth-0.0.3/tokko-auth/models.py
from typing import Any, Callable, Dict import json from arrow import get as _ def value_as_callable(value) -> Callable: def func(): return value return func class MemoryModel: def __init__(self, **raw_data): self.__data__ = raw_data self.load(**raw_data) def load(self, **r...
PypiClean
/nonebot_plugin_stable_diffusion_diao-0.4.4.tar.gz/nonebot_plugin_stable_diffusion_diao-0.4.4/nonebot_plugin_stable_diffusion_diao/amusement/vits.py
from nonebot.adapters.onebot.v11 import MessageEvent, MessageSegment, Bot from nonebot import logger, on_command, on_shell_command from nonebot.params import CommandArg, ShellCommandArgs from nonebot.rule import ArgumentParser from argparse import Namespace from ..extension.safe_method import send_forward_msg from ..ex...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/corruption/archetypes/CameraFieldOfView.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty import retro_data_structures.enums.corruption as enums from retro_data_structures.properties.corruption.core.Spline import Spline @dataclasses.datac...
PypiClean
/wagtail-restructure-2.16a0.tar.gz/wagtail-restructure-2.16a0/wagtail/contrib/images/wagtail_hooks.py
from django.urls import include, path, reverse from django.utils.html import format_html from django.utils.translation import gettext from django.utils.translation import gettext_lazy as _ from django.utils.translation import ngettext import wagtail.admin.rich_text.editors.draftail.features as draftail_features from ...
PypiClean
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/ent/n2/b/trie_bc.py
d_trie_bc = {'_': ['bc_politekhnika-halychyna', 'bc_augsburg-oberhausen', 'bc_mgzavrebi-armia', 'bc-la/at-6a_texan', 'bc_namur-capitale', 'bc_lietkabelis-2', 'bc_ecosocialists', 'bc_conservatives', 'bc_chernomorets', 'bc_tsmoki-minsk', 'bc_gargzdai...
PypiClean
/getmagpi-0.3.4.tar.gz/getmagpi-0.3.4/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/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] - .magignore file - Logging ## [0.3.3] - 2018-09-05 ##...
PypiClean
/pami-2023.8.6.8-py3-none-any.whl/PAMI/uncertainPeriodicFrequentPattern/basic/UPFPGrowth.py
__copyright__ = """ Copyright (C) 2021 Rage Uday Kiran This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
PypiClean
/webbpsf-1.2.1.tar.gz/webbpsf-1.2.1/docs/references.rst
.. JWST-PSFs documentation master file, created by sphinx-quickstart on Mon Nov 29 15:57:01 2010. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. _references: Appendix: Instrument Property References =========================================...
PypiClean
/datconv-0.8.2.tar.gz/datconv-0.8.2/INSTALL.rst
.. Keep this file pure reST code (no Sphinx estensions) Installation and Usage ================================== For package description see README.rst file Installation (System wide - for all users): ------------------------------------------- .. note:: In case of using Python 3 on linux system replace ``pip`` w...
PypiClean
/pinax-cms-0.1.1.tar.gz/pinax-cms-0.1.1/pinax/cms/views.py
from django.conf import settings from django.db import transaction from django.http import Http404, HttpResponse from django.shortcuts import render, redirect, get_object_or_404 from django.views import static from django.contrib.auth.decorators import login_required from .models import Page, File from .forms import ...
PypiClean
/gita-api-0.0.1.tar.gz/gita-api-0.0.1/gita_api/api/api_v2/endpoints/gita.py
import logging from typing import List from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session, joinedload from gita.api import deps from gita.models import gita as models from gita.schemas import gita as schemas logger = logging.getLogger("api") logger.setLevel(logging.DEBUG) route...
PypiClean
/fsleyes-widgets-0.14.3.tar.gz/fsleyes-widgets-0.14.3/fsleyes_widgets/bitmapradio.py
import wx import wx.lib.newevent as wxevent from . import bitmaptoggle # TODO Button tooltips class BitmapRadioBox(wx.Panel): """A radio control which displays a collection of :class:`wx.ToggleButton` controls, each of which displays an image. Each of these buttons corresponds to a mutually exclusive ...
PypiClean
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/notebook/static/components/codemirror/mode/vbscript/vbscript.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) { "use st...
PypiClean
/PyMedTermino-0.3.3.tar.gz/PyMedTermino-0.3.3/vcm.py
# 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) any later version. # This program is distributed in the hope that it will be usefu...
PypiClean
/hypercat-0.1.11.tar.gz/hypercat-0.1.11/README.md
![PyPI](https://img.shields.io/pypi/v/hypercat) ![PyPI - Python Version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fpypi.org%2Fpypi%2Fhypercat%2Fjson&query=info.requires_python&label=python) ![PyPI - Downloads](https://img.shields.io/pypi/dm/hypercat) ![GitHub issues](https://img.shields.io/github/issu...
PypiClean
/scArchest-0.0.1-py3-none-any.whl/scarches/trainers/mars/mars_meta_trainer.py
import time import torch from sklearn.cluster import KMeans from torch.utils.data import DataLoader from scarchest.dataset.mars import MetaAnnotatedDataset from scarchest.dataset.trvae import AnnotatedDataset from scarchest.models import MARS from ._utils import split_meta_train_tasks, euclidean_dist, print_meta_prog...
PypiClean
/wmcore-2.2.4rc1.tar.gz/wmcore-2.2.4rc1/src/python/WMQuality/Emulators/DBSClient/MockedDBSGlobalCalls.py
from __future__ import (division, print_function) endpoint = 'https://cmsweb-prod.cern.ch/dbs/prod/global/DBSReader' # Datasets to get all blocks, array, and lumis from datasets = ['/HighPileUp/Run2011A-v1/RAW', '/MinimumBias/ComissioningHI-v1/RAW', '/Cosmics/ComissioningHI-v1/RAW', '/Cosmics/Comissionin...
PypiClean
/pyroute53myip-0.0.2.tar.gz/pyroute53myip-0.0.2/README.md
# pyroute53myip ## Description This python tool pyroute53myip is useful to allow automate updating of a public DNS record hosted at Internet based in the public internet address from home. It is a quite typical scenario running at a domestic raspberry-pi tiny instance ## Author Name: redcorjo Email: jordipromoti...
PypiClean
/databricks_sql_connector-2.9.3-py3-none-any.whl/databricks/sql/exc.py
import json import logging logger = logging.getLogger(__name__) ### PEP-249 Mandated ### class Error(Exception): """Base class for DB-API2.0 exceptions. `message`: An optional user-friendly error message. It should be short, actionable and stable `context`: Optional extra context about the error. MUST be...
PypiClean
/ogdf_python-0.1.5-py3-none-any.whl/ogdf_python/doxygen.py
import functools import os from collections import defaultdict # doxygen XML parsing ################################################################################################# def parse_index_xml(): root = etree.parse(os.path.join(DOXYGEN_XML_DIR, 'index.xml')) compounds = defaultdict(dict) for c...
PypiClean
/tlslite-ng-0.8.0-alpha37.tar.gz/tlslite-ng-0.8.0-alpha37/tlslite/utils/python_rsakey.py
"""Pure-Python RSA implementation.""" import threading from .cryptomath import * from .rsakey import * from .pem import * from .deprecations import deprecated_params class Python_RSAKey(RSAKey): def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0, key_type="rsa"): """Initialise...
PypiClean
/czsc-0.9.27.tar.gz/czsc-0.9.27/examples/streamlit_pages/信号观察.py
import os os.environ['czsc_max_bi_num'] = '20' os.environ['czsc_research_cache'] = r"D:\CZSC投研数据" import czsc import numpy as np import pandas as pd import streamlit as st from datetime import timedelta from czsc.utils import sorted_freqs from czsc.connectors.research import get_raw_bars, get_symbols st.set_page_confi...
PypiClean
/scikits.statsmodels-0.3.1.zip/scikits.statsmodels-0.3.1/scikits/statsmodels/sandbox/sysreg.py
from scikits.statsmodels.regression.linear_model import GLS import numpy as np import scikits.statsmodels.tools.tools as tools from scikits.statsmodels.base.model import LikelihoodModelResults from scipy import sparse #http://www.irisa.fr/aladin/wg-statlin/WORKSHOPS/RENNES02/SLIDES/Foschi.pdf __all__ = ['SUR', 'Sem2S...
PypiClean
/bel_commons-0.3.1.tar.gz/bel_commons-0.3.1/src/bel_commons/database_service.py
import csv import logging import pickle import time from functools import lru_cache from io import StringIO from operator import itemgetter from typing import Dict, Iterable, List, Mapping, Optional import networkx as nx from flask import Blueprint, Response, abort, current_app, flash, jsonify, make_response, redirect...
PypiClean
/synctera_client_ng-0.44.2.tar.gz/synctera_client_ng-0.44.2/synctera_client_ng/models/verification_list_all_of.py
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import List from pydantic import BaseModel, Field, conlist from synctera_client_ng.models.verification import Verification class VerificationListAllOf(BaseModel): """ Verificati...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/grid/enhanced/plugins/AutoScroll.js.uncompressed.js
define("dojox/grid/enhanced/plugins/AutoScroll", [ "dojo/_base/declare", "dojo/_base/array", "dojo/_base/lang", "dojo/_base/html", "dojo/_base/window", "../_Plugin", "../../_RowSelector", "../../EnhancedGrid" ], function(declare, array, lang, html, win, _Plugin, _RowSelector, EnhancedGrid){ var AutoScroll = de...
PypiClean
/RegexOrder-0.2.tar.gz/RegexOrder-0.2/README.md
[![PyPI version](https://img.shields.io/pypi/v/RegexOrder.svg)](https://pypi.python.org/pypi/RegexOrder/) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/RegexOrder.svg)](https://pypi.python.org/pypi/RegexOrder/) [![PyPI license](https://img.shields.io/pypi/l/RegexOrder.svg)](https://pypi.python.org/pypi/Reg...
PypiClean
/infer-subc-0.1.0.tar.gz/infer-subc-0.1.0/notebooks/todelete/_centrosome_routines.py
import numpy as np from scipy.ndimage import distance_transform_edt, sum, minimum_filter, maximum_filter def size_similarly(labels, secondary): """Size the secondary matrix similarly to the labels matrix labels - labels matrix secondary - a secondary image or labels matrix which might be of ...
PypiClean
/dash_dataflow_components-0.0.6.tar.gz/dash_dataflow_components-0.0.6/dash_dataflow_components/__init__.py
from __future__ import print_function as _ import os as _os import sys as _sys import json import dash as _dash import dash_express_components # noinspection PyUnresolvedReferences from ._imports_ import * from ._imports_ import __all__ if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'): ...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/nan/doc/node_misc.md
## Miscellaneous Node Helpers - <a href="#api_nan_asyncresource"><b><code>Nan::AsyncResource</code></b></a> - <a href="#api_nan_make_callback"><b><code>Nan::MakeCallback()</code></b></a> - <a href="#api_nan_module_init"><b><code>NAN_MODULE_INIT()</code></b></a> - <a href="#api_nan_export"><b><code>Nan::Export()</c...
PypiClean
/opennms_client-0.3.tar.gz/opennms_client-0.3/CHANGELOG.rst
.. :changelog: Changelog --------- 0.1 (2015-11-20) ++++++++++++++++ * client: version 0.1 0.1.1 (2015-11-20) ++++++++++++++++++ * client: added set_service(hostname, service_name) 0.2 (2015-11-24) ++++++++++++++++ * Package renamed from opennms-client.client to opennms_client.opennms_client * Fixed installation o...
PypiClean
/ipyvuetify-1.8.10.tar.gz/ipyvuetify-1.8.10/generate_source/node_modules/fs-extra/docs/outputJson-sync.md
# outputJsonSync(file, object, [options]) Almost the same as [`writeJsonSync`](writeJson-sync.md), except that if the directory does not exist, it's created. **Alias:** `outputJSONSync()` - `file` `<String>` - `object` `<Object>` - `options` `<Object>` - `spaces` `<Number|String>` Number of spaces to indent; or a ...
PypiClean
/tvarit_api-1.1.tar.gz/tvarit_api-1.1/tvarit_api/resources/datasource.py
from .base import Base class Datasource(Base): def __init__(self, api): super(Datasource, self).__init__(api) self.api = api def find_datasource(self, datasource_name): """ :param datasource_name: :return: """ get_datasource_path = "/datasources/name/%...
PypiClean
/fds.sdk.FactSetFunds-1.0.6-py3-none-any.whl/fds/sdk/FactSetFunds/model/costs_fees_response.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.FactSetFunds.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_typ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx/canvas.js.uncompressed.js
define("dojox/gfx/canvas", ["./_base", "dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/_base/window", "dojo/dom-geometry", "dojo/dom", "./_base", "./shape", "./path", "./arc", "./matrix", "./decompose"], function(g, lang, arr, declare, win, domGeom, dom, gfxBase, gs, pathLib, ga, m, decompose )...
PypiClean
/powerline-status-i3-1.9.2.tar.gz/powerline-status-i3-1.9.2/powerline/listers/i3wm.py
from powerline.theme import requires_segment_info from powerline.lib.dict import updated from powerline.bindings.wm import get_i3_connection, get_connected_randr_outputs @requires_segment_info def output_lister(pl, segment_info): '''List all outputs in segment_info format ''' return ( ( ...
PypiClean
/Pootle-2.9.0b3.tar.bz2/Pootle-2.9.0b3/pootle/static/translations/my/djangojs.js
(function(globals) { var django = globals.django || (globals.django = {}); django.pluralidx = function(count) { return (count == 1) ? 0 : 1; }; /* gettext library */ django.catalog = django.catalog || {}; if (!django.jsi18n_initialized) { django.gettext = function(msgid) { var value = ...
PypiClean
/onto_vae-0.1.0.tar.gz/onto_vae-0.1.0/onto_vae/vae_model.py
import sys import numpy as np import torch from torch import optim import torch.nn as nn import torch.nn.functional as F from tqdm import tqdm from .modules import Encoder, Decoder, OntoEncoder, OntoDecoder from .fast_data_loader import FastTensorDataLoader ###--------------------------------------------------------...
PypiClean
/src/links.py
# import lib from typing import TYPE_CHECKING from ..interface import RSS3LinkInput, RSS3Link, IRSS3LinkSchema from .. import utils if TYPE_CHECKING: from .index import RSS3 class Links: rss3: 'RSS3' def __init__(self, rss3: 'RSS3'): self.rss3 = rss3 async def get(self, file_id: str, type_...
PypiClean
/pydantic_aioredis-1.2.3.tar.gz/pydantic_aioredis-1.2.3/pydantic_aioredis/ext/FastAPI/crudrouter.py
from typing import Any from typing import Callable from typing import cast from typing import List from typing import Optional from typing import Type from typing import Union from fastapi import HTTPException from fastapi_crudrouter.core import CRUDGenerator from fastapi_crudrouter.core import NOT_FOUND from fastapi_...
PypiClean
/bear_kids_player-0.1.4-py3-none-any.whl/bear_kids_player/question_database_operation.py
import pandas as pd import random def load_and_type_filter_questions(path= 'questions.csv',type_filter = ['math','letter_input']): # df = pd.read_csv(path) filter_code = 'filtered_questions = df[' for i in type_filter: filter_code = filter_code + 'df.type.str.contains(\''+i+'\')|' filter_code ...
PypiClean
/ckan-datapackage-tools-0.1.0.tar.gz/ckan-datapackage-tools-0.1.0/README.md
Tools for working with Data Packages and CKAN ============================================= | |Travis| | |Coveralls| | |PyPi| | |SemVer| | |Gitter| Install ------- :: # clone the repo and install it with pip git clone https://github.com/frictionlessdata/ckan-datapackage-tools.git pip install -e . Usag...
PypiClean
/finance_manager-1.1.1.tar.gz/finance_manager-1.1.1/finance_manager/cli/ops/newset.py
import click from finance_manager.database import DB from finance_manager.database.spec import f_set, cost_centre, f_set_cat from sqlalchemy import and_ from sqlalchemy.orm.exc import NoResultFound @click.command() @click.option("--change_sn", "-c", help="Allow users to change student numbers", is_flag=True) @click.o...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipaySocialGiftOrderRefundRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipaySocialGiftOrderRefundModel import AlipaySocialGiftOrderRefundModel class AlipaySocialGiftOrderRefundRequest(object): def __init__(self, biz_model=None): self._...
PypiClean
/onnx_tf-1.10.0-py3-none-any.whl/onnx_tf/backend_tf_module.py
import tensorflow as tf from onnx_tf.pb_wrapper import OnnxNode class TFModuleHelper(object): """ Helper class for BackendTFModule and TFModule """ # create tf.Variable for handlers that required to use variable in handler @classmethod def _create_handlers_variables_for_graph(cls, ...
PypiClean
/hnzhu010503-0.0.1.tar.gz/hnzhu010503-0.0.1/airtest/core/android/recorder.py
import re import six from airtest.core.android.yosemite import Yosemite from airtest.core.android.constant import YOSEMITE_PACKAGE from airtest.core.error import AirtestError from airtest.utils.logger import get_logger from airtest.utils.nbsp import NonBlockingStreamReader from airtest.utils.retry import retries from a...
PypiClean
/certora-cli-alpha-eyalf-clean-EvaldCVLExp-20230518.9.27.300058.tar.gz/certora-cli-alpha-eyalf-clean-EvaldCVLExp-20230518.9.27.300058/certora_cli/EVMVerifier/certoraContext.py
import argparse import json import logging import os import re import sys from pathlib import Path from typing import Dict, List, Optional, Tuple, Any scripts_dir_path = Path(__file__).parent.resolve() # containing directory sys.path.insert(0, str(scripts_dir_path)) from EVMVerifier.certoraContextClass import Certo...
PypiClean
/Tawhiri-0.2.0.tar.gz/Tawhiri-0.2.0/ui/ext/js/jquery-1.10.2.min.js
*/ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\x...
PypiClean
/attr-tracers-1.0.0.tar.gz/attr-tracers-1.0.0/tracers/tracers.py
from __future__ import annotations import inspect from typing import Any, Callable import pytermgui as ptg # I'm not sure where this class is defined. Traceback = Any TEMPLATE = """ Attribute [code 173]{attribute}[/] of [code]{obj!r}[/] changing from [code 173]\ {current}[/] to [code 208]{new}[/]! Set by: [code 20...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/src/dom/js/dom-attrs.js
var documentElement = Y.config.doc.documentElement, Y_DOM = Y.DOM, TAG_NAME = 'tagName', OWNER_DOCUMENT = 'ownerDocument', EMPTY_STRING = '', addFeature = Y.Features.add, testFeature = Y.Features.test; Y.mix(Y_DOM, { /** * Returns the text content of the HTMLElement. * @method get...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/util/yaml/dumper.py
from collections import OrderedDict from typing import Any import yaml from .objects import Input, NodeDictClass, NodeListClass # mypy: allow-untyped-calls, no-warn-return-any try: from yaml import CSafeDumper as FastestAvailableSafeDumper except ImportError: from yaml import ( # type: ignore[assignment] ...
PypiClean
/the-useful-tools-0.4.tar.gz/the-useful-tools-0.4/data/licenses/APACHE.py
LICENSE: str = ''' Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use...
PypiClean
/dials-0.0.1.tar.gz/dials-0.0.1/algorithms/scaling/algorithm.py
from __future__ import absolute_import, division, print_function def expand_and_do_outlier_rejection(scaler, calc_cov=False): """Calculate scales for all reflections and do outlier rejection.""" scaler.expand_scales_to_all_reflections(calc_cov=calc_cov) if scaler.params.scaling_options.outlier_rejection: ...
PypiClean
/pyvib2-1.1.tar.gz/pyvib2-1.1/util/misc.py
__author__ = 'Maxim Fedorovsky' import os import os.path from random import seed, randint from numpy import ndarray, array from pyviblib.util.exceptions import InvalidArgumentError, ConstructorError __all__ = ['SmartDict', 'Command', 'PropertiesContainer', 'random_color', 'color_html_to_RGB', 'color_RGB_...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_2/api/protection_group_snapshots_api.py
from __future__ import absolute_import import re # python 2 and python 3 compatibility library import six from typing import List, Optional from .. import models class ProtectionGroupSnapshotsApi(object): def __init__(self, api_client): self.api_client = api_client def api22_protection_group_snaps...
PypiClean
/pymaxcul-0.1.12-py3-none-any.whl/pymaxcul-0.1.12.dist-info/DESCRIPTION.rst
# About pymaxcul Pymaxcul is a python package to talk to [MAX! devices by eQ-3](http://www.eq-3.de/produkte/max.html) through a [CUL stick](https://wiki.fhem.de/wiki/Selbstbau_CUL). This module is forked from https://github.com/vogt31337/MaxCul-Python which in turn has been at some point been forked from https://git...
PypiClean
/deepfos-celery-1.1.2.tar.gz/deepfos-celery-1.1.2/docs/history/whatsnew-4.4.rst
.. _whatsnew-4.4: ================================== What's new in Celery 4.4 (Cliffs) ================================== :Author: Asif Saif Uddin (``auvipy at gmail.com``) .. sidebar:: Change history What's new documents describe the changes in major versions, we also have a :ref:`changelog` that lists the...
PypiClean
/cs_dlp-0.12.0b0.tar.gz/cs_dlp-0.12.0b0/cs_dlp/formatting.py
import os from .define import FORMAT_MAX_LENGTH, TITLE_MAX_LENGTH def format_section(num, section, class_name, verbose_dirs): sec = '%02d_%s' % (num, section) if verbose_dirs: sec = class_name.upper() + '_' + sec return sec def format_resource(num, name, title, fmt): if title: title...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/ku.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['ku']={"editor":"سەرنووسەی دەقی تەواو","editorPanel":"بڕگەی سەرنووسەی دەقی تەواو","common":{"editorHelp":"کلیکی ALT لەگەڵ 0 بکه‌ بۆ یارمەتی","browseServer":"هێنا...
PypiClean
/deep_personality-0.1.4.tar.gz/deep_personality-0.1.4/dpcv/evaluation/summary.py
import numpy as np from dpcv.tools.draw import plot_line class TrainSummary: def __init__(self): self.batch_loss = {"train": [], "valid": []} self.batch_acc = {"train": [], "valid": []} self.epoch_loss = {"train": [], "valid": []} self.epoch_acc = {"train": [], "valid": []} ...
PypiClean
/object_detection_by_ovi-0.0.1-py3-none-any.whl/object_detection/utils/target_assigner_utils.py
"""Utility functions used by target assigner.""" import tensorflow.compat.v1 as tf from object_detection.core import box_list from object_detection.core import box_list_ops from object_detection.utils import shape_utils def image_shape_to_grids(height, width): """Computes xy-grids given the shape of the image. ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/costmanagement/latest/view_by_scope.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['ViewByScope'] warnings.warn("""The 'latest' version is deprecated. Please migrate to the re...
PypiClean
/discord.py_message_components-1.7.5.4-py3-none-any.whl/discord/iterators.py
import asyncio import datetime from .errors import NoMoreItems from .utils import time_snowflake, maybe_coroutine from .object import Object from .audit_logs import AuditLogEntry OLDEST_OBJECT = Object(id=0) class _AsyncIterator: __slots__ = () def get(self, **attrs): def predicate(elem): ...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/remote/models/access_search_result_secondary_grid_remote.py
from ..remote import RemoteModel class AccessSearchResultSecondaryGridRemote(RemoteModel): """ list of rules impacted by an elementary search | ``id:`` The internal NetMRI identifier for this search result detailed. | ``attribute type:`` number | ``ESearchID:`` The internal NetMRI randomized...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/InviteMemberBusinessParamsDTO.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.FundExtInfo import FundExtInfo class InviteMemberBusinessParamsDTO(object): def __init__(self): self._employee_id = None self._fund_ext_info = None self._group_id_list = None @property de...
PypiClean
/eQTac-1.0.10.tar.gz/eQTac-1.0.10/README.md
# eQTac EQTac is a method to predict the potential regulatory elements (PREs) and their target genes, based on the eQTL datasets, the only additional data was ATAC-seq or ChIP-seq peak data. ## Schematic ![](./imgs/Schematic.png) ## Dependence ### Python packages ``` numpy >= 1.21.6 pandas >= 1.2.3 pybedtools >= 0.8....
PypiClean
/experimentdb-0.2.tar.gz/experimentdb-0.2/media/js/jquery-autocomplete/lib/jquery.js
(function(){ /* * jQuery 1.2.6 - New Wave Javascript * * Copyright (c) 2008 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2008-05-27 21:17:26 +0200 (Di, 27 Mai 2008) $ * $Rev: 5700 $ */ // Map over jQuery in case of overwrite var _jQue...
PypiClean
/marslight-0.1.6-py3-none-any.whl/spotlight/datasets/amazon.py
import h5py import numpy as np from spotlight.datasets import _transport from spotlight.interactions import Interactions def _download_amazon(): extension = '.hdf5' url = ('https://github.com/maciejkula/recommender_datasets/' 'releases/download') version = '0.1.0' path = _transport.get_...
PypiClean
/django-ows-lib-0.4.1.tar.gz/django-ows-lib-0.4.1/ows_lib/client/utils.py
import urllib.parse from typing import Dict, List from axis_order_cache.registry import Registry from axis_order_cache.utils import get_epsg_srid from django.contrib.gis.gdal import SpatialReference from django.contrib.gis.geos import GEOSGeometry, Polygon from requests import Session from ows_lib.client.exceptions i...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/planner_plan.py
from __future__ import annotations from datetime import datetime from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union from . import entity, identity_set, planner_bucket, planner_plan_container, planner_plan_details, planner_...
PypiClean
/quik_config-1.7.7.tar.gz/quik_config-1.7.7/quik_config/__dependencies__/__sources__/ez_yaml/main/ez_yaml/__dependencies__/__sources__/ruamel/yaml/scalarfloat.py
import sys from .anchor import Anchor if False: # MYPY from typing import Text, Any, Dict, List # NOQA __all__ = ['ScalarFloat', 'ExponentialFloat', 'ExponentialCapsFloat'] class ScalarFloat(float): def __new__(cls, *args, **kw): # type: (Any, Any, Any) -> Any width = kw.pop('width', None...
PypiClean
/th_seal-0.1-py3-none-any.whl/crypten/common/util.py
# 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 torch def count_wraps(share_list): """Computes the number of overflows or underflows in a set of shares We compute this by ...
PypiClean
/nexuscloud-client-1.0.9.tar.gz/nexuscloud-client-1.0.9/docs/NexusInsightsApiV1VcenterDetailsGet200ResponseOneOf1EntriesInner.md
# NexusInsightsApiV1VcenterDetailsGet200ResponseOneOf1EntriesInner ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **anomaly_score** | **int** | | [optional] **connection_state** | **str** | | [optional] **controller_name** | **str** | | [optional] **...
PypiClean
/tap_adql_sandbox-0.8.0-py3-none-any.whl/tap_adql_sandbox/examples.py
examplesList = { # --- # PADC # --- "padc-tables": { "description": "All available tables", "serviceURL": "http://voparis-tap-planeto.obspm.fr/tap", "queryText": "".join(( "SELECT table_name, description\n" "FROM tap_schema.tables\n" "WHERE...
PypiClean
/noronha_dataops-1.6.8-py3-none-any.whl/noronha/cli/movers.py
# Copyright Noronha Development Team # # 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 ...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/groupvit/__init__.py
from typing import TYPE_CHECKING from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tf_available, is_torch_available _import_structure = { "configuration_groupvit": [ "GROUPVIT_PRETRAINED_CONFIG_ARCHIVE_MAP", "GroupViTConfig", "GroupViTOnnxConfig", "GroupViTTextC...
PypiClean
/watex-0.2.6.tar.gz/watex-0.2.6/docs/whatsnew/v0.1.7.rst
v0.1.7 (March 09, 2023) ---------------------------- This is a minor change performed from ``v0.1.6`` and adaptations. - |Feature| new features with strike (:func:`watex.utils.plot_strike`) and confidence plots in the :term:`EDI` data (:func:`watex.utils.plot_confidence_in`). The latter is useful to know the sig...
PypiClean
/toga-core-0.3.1.tar.gz/toga-core-0.3.1/src/toga/widgets/textinput.py
import warnings from toga.handlers import wrapped_handler from .base import Widget class TextInput(Widget): """A widget get user input. Args: id (str): An identifier for this widget. style (:obj:`Style`): An optional style object. If no style is provided then a new one will be c...
PypiClean
/plone.staticresources-2.0.0b3-py3-none-any.whl/plone/staticresources/static/bundle-plone/chunks/57010.4a40aa3179b13d77bbba.min.js
(self.webpackChunkplone_staticresources=self.webpackChunkplone_staticresources||[]).push([[57010],{57010:function(e,s,i){!function(e){"use strict";var s={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_die...
PypiClean