id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/pseudozymahubeiensis.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def PseudozymaHubeiensis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: D... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/echoes/archetypes/UnknownStruct7.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
@dataclasses.dataclass()
class UnknownStruct7(BaseProperty):
override: bool = dataclasses.field(default=False)
speed: float = dataclasses.fi... | PypiClean |
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/yt_dlp/extractor/holodex.py | from .common import InfoExtractor
from .youtube import YoutubeIE
from ..utils import traverse_obj
class HolodexIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://(?:www\.|staging\.)?holodex\.net/(?:
api/v2/playlist/(?P<playlist>\d+)|
watch/(?P<id>[\w-]{11})(?:\?(?:[^#]+&)?playlist=(?P<playli... | PypiClean |
/pytrustnfe3-2.0.0-py3-none-any.whl/pytrustnfe/urls.py | AC = "12"
AL = "27"
AM = "13"
AP = "16"
BA = "29"
CE = "23"
DF = "53"
ES = "32"
GO = "52"
MA = "21"
MG = "31"
MS = "50"
MT = "51"
PA = "15"
PB = "25"
PE = "26"
PI = "22"
PR = "41"
RJ = "33"
RN = "24"
RO = "11"
RR = "14"
RS = "43"
SC = "42"
SE = "28"
SP = "35"
TO = "17"
PRODUCAO = "1"
HOMOLOGACAO = "2"
URLS = {
PR... | PypiClean |
/qemu.qmp-0.0.3-py3-none-any.whl/qemu/qmp/message.py | import json
from json import JSONDecodeError
from typing import (
Dict,
Iterator,
Mapping,
MutableMapping,
Optional,
Union,
)
from .error import ProtocolError
class Message(MutableMapping[str, object]):
"""
Represents a single QMP protocol message.
QMP uses JSON objects as its ba... | PypiClean |
/lino-xl-23.9.1.tar.gz/lino-xl-23.9.1/lino_xl/lib/tickets/blogger.py | import os
import datetime
from django.conf import settings
from lino.utils import i2d, i2t
from lino.utils.restify import restify, doc2rst
from lino.api import dd, rt
blogs = dd.resolve_app('blogs')
tickets = dd.resolve_app('tickets')
class Blogger(object):
def __init__(self, user=None):
self.objects_li... | PypiClean |
/SoloPy-3.1.1.tar.gz/SoloPy-3.1.1/examples/windows/usb/BLDC_Position_Control_HALL_based.py |
# Title: SoloPy
# Author: SOLOMotorControllers
# Date: 2023
# Code version: 3.0.0
# Availability: https://github.com/Solo-FL/SoloPy/tree/main/SoloPy
# This Library is made by SOLOMotorControllers.COM
# please visit: https://www.SOLOMotorControllers.com/
# The Motor used for Testings: DB56C036030-A
import SoloPy as ... | PypiClean |
/nr.sumtype-0.0.5.tar.gz/nr.sumtype-0.0.5/README.md |
> Note: This package is in the dangerous land of `0.x.y` versions and may be subject to breaking
> changes with minor version increments.
> __Note__: The `nr.sumtype` module is no longer developed.
# nr.sumtype
Sumtypes in Python.
### Example
```python
from nr.sumtype import Constructor, Sumtype
class Status(Sum... | PypiClean |
/opal-azure-cli-botservice-0.2.4.tar.gz/opal-azure-cli-botservice-0.2.4/azure/cli/command_modules/botservice/_params.py |
from knack.arguments import CLIArgumentType
from azure.cli.core.commands.parameters import (
resource_group_name_type,
get_enum_type,
get_three_state_flag,
tags_type)
name_arg_type = CLIArgumentType(metavar='NAME', configured_default='botname', id_part='Name')
# supported_languages will be use with ... | PypiClean |
/mushroom-rl-1.9.2.tar.gz/mushroom-rl-1.9.2/mushroom_rl/environments/grid_world.py | import numpy as np
from mushroom_rl.core import Environment, MDPInfo
from mushroom_rl.utils import spaces
from mushroom_rl.utils.viewer import Viewer
class AbstractGridWorld(Environment):
"""
Abstract class to build a grid world.
"""
def __init__(self, mdp_info, height, width, start, goal):
... | PypiClean |
/sn_jupyterlab_github-3.0.3.tar.gz/sn_jupyterlab_github-3.0.3/sn_jupyterlab_github/labextension/static/523.0db4c345b1637dc4184a.js | (self.webpackChunksn_jupyterlab_github=self.webpackChunksn_jupyterlab_github||[]).push([[523],{523:(n,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>x});var i=e(475),o=e(70),r=e(989),a=e(389),s=e(379),c=e.n(s),d=e(760);c()(d.Z,{insert:"head",singleton:!1}),d.Z.locals;var l=e(203);c()(l.Z,{insert:"head",singleton:!1}),l.... | PypiClean |
/vaex-ui-0.3.0.tar.gz/vaex-ui-0.3.0/vaex/ui/plugin/zoom.py | import functools
import matplotlib.widgets
import vaex.ui.plugin
from vaex.ui import undo
from vaex.ui.qt import *
from vaex.ui.icons import iconfile
import logging
import vaex.ui.undo as undo
logger = logging.getLogger("plugin.zoom")
@vaex.ui.plugin.pluginclass
class ZoomPlugin(vaex.ui.plugin.PluginPlot):
name =... | PypiClean |
/questiongeneratorcesar-0.0.9-py3-none-any.whl/question_builder/bp/question_creators/relnoun_question_creator.py | from question_builder.data import DataQuestion
from . import pos_validators
from ..questions.question import Question, N_BAITS
from .question_creator import QuestionCreator
from ..dictionary_factory import word2relnoun, CORRECT, BAITS
from .question_creator_exception import WordNotNoun, WordNotInRelNounDictionary
impor... | PypiClean |
/PyWebRunner-2.6.0.tar.gz/PyWebRunner-2.6.0/README.rst | .. figure:: http://iws-public.s3.amazonaws.com/Media/PyWebRunner.png
:alt: PyWebRunner
PyWebRunner
A supercharged Python wrapper for Selenium
|Build Status| |PyPI version|
Documentation
=============
Full documentation can be located here:
https://intuitivewebsolutions.github.io/PyWebRunner
Uses
====
You c... | PypiClean |
/sopel_twitter-1.3.1-py3-none-any.whl/sopel_twitter/__init__.py | from __future__ import unicode_literals, absolute_import, division, print_function
from datetime import datetime
import json
import os.path
import re
from tweety import Twitter, exceptions_ as tweety_errors
from sopel import plugin, tools
from sopel.config.types import (
BooleanAttribute,
ListAttribute,
... | PypiClean |
/cyberlang-0.6.5-py3-none-win_amd64.whl/cyber/lib.py |
from ctypes import (
Structure,
Union,
CFUNCTYPE,
POINTER,
c_void_p,
c_char_p,
c_bool,
c_size_t,
c_int,
c_double,
c_uint64,
c_uint32,
c_uint8,
)
from pathlib import Path
import sys
from enum import Enum
import platform
base_path = Path(__file__).parent / 'lib'
if ... | PypiClean |
/grr-chipsec-1.2.2.2.tar.gz/grr-chipsec-1.2.2.2/chipsec/module.py |
import os
import sys
import re
import traceback
import chipsec.logger
from chipsec.module_common import ModuleResult
_importlib = True
try:
import importlib
except ImportError:
_importlib = False
MODPATH_RE = re.compile("^\w+(\.\w+)*$")
class Module():
def __init__(self,name):
self.logger ... | PypiClean |
/asimov-0.5.2.tar.gz/asimov-0.5.2/sandbox/update-readmes.py | import ast
import subprocess, os
from shutil import copy
from asimov import gitlab, mattermost
from asimov import config
from asimov import condor, git
from asimov.ini import RunConfiguration
server = gitlab.gitlab.Gitlab('https://git.ligo.org', private_token=config.get("gitlab", "token"))
repository = server.projects... | PypiClean |
/NREL_reV-0.8.1-py3-none-any.whl/reV/handlers/exclusions.py | import logging
import json
import numpy as np
from reV.utilities.exceptions import HandlerKeyError, MultiFileExclusionError
from rex.utilities.parse_keys import parse_keys
from rex.resource import Resource
from rex.multi_file_resource import MultiFileResource
logger = logging.getLogger(__name__)
class ExclusionLay... | PypiClean |
/fun_with_ast-0.1.70.tar.gz/fun_with_ast-0.1.70/fun_with_ast/manipulate_node/create_node.py | import _ast
import ast
from fun_with_ast.manipulate_node.get_node_from_input import FWANodeGenerator
class Error(Exception):
pass
class InvalidCtx(Error):
pass
def Enum(**enums):
return type('Enum', (), enums)
CtxEnum = Enum(
LOAD='load',
STORE='store',
DEL='delete',
PARAM='param')
... | PypiClean |
/pynadc-1.2.6-py3-none-any.whl/pynadc-1.2.6.data/scripts/inquire_gosat2_l2.py | import argparse
from pathlib import Path
from pynadc.gosat2 import db_l2
# - local functions --------------------------------------------
# - main code --------------------------------------------------
def main() -> None:
"""
main function which parses the commandline parameters
and calls a query funct... | PypiClean |
/phybers-0.1.0b1.tar.gz/phybers-0.1.0b1/README.md | # Overview of Phybers
Phybers is a Python library that shared several tools for cerebral tractography analysis. With the aim of improving its usability, the library has been separated into 4 primary modules:
### 1. Segmentation Module
This module includes a white matter fiber bundle segmentation algorithm ([Guevara et ... | PypiClean |
/oqtant-0.16.3.tar.gz/oqtant-0.16.3/documentation/INSTALL.md | # Oqtant Quickstart Guide
To get started with Oqtant you will need to have the following installed:
- Python >=3.10 and <3.12
# User Account
You will need to have a registered Explorer account, available at https://oraqle-dev.infleqtion.com.
# Installation
Oqtant is compatible with Windows, Mac and Linux. Below a... | PypiClean |
/gw_remnant-0.0.1.tar.gz/gw_remnant-0.0.1/gw_remnant/gw_utils/waveform_generator.py |
import numpy as np
from scipy.interpolate import InterpolatedUnivariateSpline as spline
PATH_TO_BHPTNRSur = "/home/UMDAR.UMASSD.EDU/tislam/work/BHPTNRSurrogate"
import sys
sys.path.append(PATH_TO_BHPTNRSur+"/surrogates")
import BHPTNRSur1dq1e4 as bhptsur
import gwtools
import lal
import lalsimulation as lalsim
from... | PypiClean |
/spaceone_core-1.12.29-py3-none-any.whl/spaceone/core/token.py | import time
import consul
import logging
from spaceone.core import config
from spaceone.core.error import ERROR_CONFIGURATION
__all__ = ['get_token', '_validate_token', 'Consul']
_LOGGER = logging.getLogger(__name__)
MAX_COUNT = 10
INTERVAL = 10
class Consul:
def __init__(self, config):
"""
Arg... | PypiClean |
/django_fretboard-1.17.6-py3-none-any.whl/fretboard/views/general.py | import time
from datetime import datetime, timedelta
from django.shortcuts import get_object_or_404, render, redirect
from django.views.generic import ListView
from fretboard.filters import PostFilter, TopicFilter
from fretboard.forms import PostForm
from fretboard.models import Forum, Topic, Post
from fretboard.sett... | PypiClean |
/neuro-flow-23.7.0.tar.gz/neuro-flow-23.7.0/src/neuro_flow/cli/batch.py | import click
import neuro_sdk
import signal
from contextlib import AsyncExitStack
from datetime import datetime, timezone
from dateutil.parser import isoparse
from neuro_cli.parse_utils import parse_timedelta
from typing import List, Optional, Sequence, Tuple
from neuro_flow.batch_runner import BatchRunner
from neuro_... | PypiClean |
/SOLVCON-0.1.4.tar.gz/SOLVCON-0.1.4/doc/source/inout.rst | ===========================
Input and Output Facilities
===========================
.. py:module:: solvcon.io
.. py:module:: solvcon.io.gmsh
:py:mod:`solvcon.io.gmsh`
=========================
.. autoclass:: Gmsh
.. automethod:: __init__
.. autoattribute:: nnode
.. autoattribute:: ncell
.. automethod:: ... | PypiClean |
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/curve_tools/show_resolution.py |
# LOAD MODUL #
import bpy
from bpy import *
from bpy.props import *
import bgl
import blf
import gpu
from gpu_extras.batch import batch_for_shader
import math
import mathutils
from mathutils import Vector
from mathutils.geometry import interpolate_bezier
def get_points(spline, matrix_world):
bezier_points = ... | PypiClean |
/filmwebpy-0.1.6.tar.gz/filmwebpy-0.1.6/filmweb/func.py | # coding=utf-8
import re
from datetime import datetime
from bs4 import BeautifulSoup
from filmweb.parser.HTMLGrabber import HTMLGrabber
from filmweb.vars import filmweb_search_blank
def get_real_id(*strings):
for text in strings:
text = str(text)
found = re.search(
"http://([0-9]{1... | PypiClean |
/rst2html5-tools-0.5.3.tar.gz/rst2html5-tools-0.5.3/html5css3/thirdparty/revealjs/plugin/zoom-js/zoom.js | (function(){
var isEnabled = true;
document.querySelector( '.reveal' ).addEventListener( 'mousedown', function( event ) {
var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
if( event[ modifier ] && isEnabled ) {
event.preventDefault();
zoom.to({ element: event.targ... | PypiClean |
/slapos.core-1.10.2.tar.gz/slapos.core-1.10.2/slapos/cli/config.py |
from six.moves import configparser
import os
from slapos.cli.command import Command
class ConfigError(Exception):
pass
class ConfigCommand(Command):
"""
Base class for commands that require a configuration file
"""
default_config_var = 'SLAPOS_CONFIGURATION'
# use this if default_config_... | PypiClean |
/pyci-0.0.4.tar.gz/pyci-0.0.4/CONTRIBUTE.md | # Contributing to Py-CI
If you would like to contribute a bug fix or add new features, please review these guidelines.
## Testing Strategy
Py-CI is essentially 100% unit tested. By essentially, we mean that all functions except those that rely on live requests are unit tested with at least one test. Since we use oth... | PypiClean |
/google-cloud-game-servers-1.8.3.tar.gz/google-cloud-game-servers-1.8.3/google/cloud/gaming_v1/services/realms_service/async_client.py | from collections import OrderedDict
import functools
import re
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.ap... | PypiClean |
/cloudera-director-python-client-6.3.0.tar.gz/cloudera-director-python-client-6.3.0/cloudera/director/d6_2/__init__.py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from cloudera.director.d6_2.authentication_api import AuthenticationApi
from cloudera.director.d6_2.clusters_api import ClustersApi
from cloudera.director.d6_2.database_servers_api import DatabaseServersApi
from cloudera.director.d6_... | PypiClean |
/pyfastx-1.1.0-cp36-cp36m-win_amd64.whl/pyfastxcli.py | import os
import re
import sys
import gzip
import math
import random
import pyfastx
import argparse
def fastx_format_check(infile):
if pyfastx.gzip_check(infile):
fp = gzip.open(infile, 'rt')
else:
fp = open(infile)
for line in fp:
if line.strip():
break
fp.close()
if line[0] == '>':
return 'fasta'
... | PypiClean |
/farbox_lite-0.135.tar.gz/farbox_lite-0.135/farbox_lite/compiler/utils.py | from __future__ import absolute_import
import os
import re
from farbox_lite.utils import same_slash, smart_unicode
def get_index_doc_filepath(folder_path):
md_index_filenames = ['index.md', 'index.txt', 'index.mk', 'index.markdown']
for filename in md_index_filenames:
filepath = os.path.join(folder_p... | PypiClean |
/evasion-director-1.1.6.tar.gz/evasion-director-1.1.6/lib/evasion/agency/manager.py | import sys
import logging
import traceback
import agency
def get_log():
return logging.getLogger('evasion.agency.manager')
class ManagerError(Exception):
"""Raised for problems occuring in the agent manager.
"""
class Manager(object):
"""The agent manager takes care of the load of agents and
... | PypiClean |
/ardana-configurationprocessor-0.4.1.tar.gz/ardana-configurationprocessor-0.4.1/ardana_configurationprocessor/cp/model/ModelInitializerBase.py | import os
import logging
import logging.config
from abc import ABCMeta
from abc import abstractmethod
import six
from ardana_configurationprocessor.cp.model.ConfigProcess import ConfigProcess
from ardana_configurationprocessor.cp.model.v2_0.CloudModel import CloudModel
from ardana_configurationprocessor.cp.model.Vers... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayFundBailAgreementUpgradeRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayFundBailAgreementUpgradeModel import AlipayFundBailAgreementUpgradeModel
class AlipayFundBailAgreementUpgradeRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/spconv_cu116-2.3.6-cp37-cp37m-win_amd64.whl/spconv/pytorch/quantization/backend_cfg.py | import operator
from collections import namedtuple
from typing import Dict, List, Optional, Tuple, Type, Union
import torch
import torch.nn.functional as F
from torch import nn
from torch.ao.nn.quantized.modules.utils import WeightedQuantizedModule
from torch.ao.quantization.backend_config import (BackendConfig,
... | PypiClean |
/odoo_addon_account_cutoff_start_end_dates-16.0.1.1.0.1-py3-none-any.whl/odoo/addons/account_cutoff_start_end_dates/readme/USAGE.rst | To compute the prepaid revenue, go to the menu *Accounting > Cut-offs
> Prepaid Revenue* and click on the *Create* button. Enter the cut-off
date, check that the source journals contains all your sale journals
and click on the button *Re-Generate lines*: Odoo will scan all the
journal entries of the source journals and... | PypiClean |
/Logria-0.9.14.tar.gz/Logria-0.9.14/logria/logger/processor.py |
def process_matches(logria: 'Logria') -> None: # type: ignore
"""
Process the matches for filtering, should by async but the commented code here
does not work
# TODO: Fix this method
"""
# def add_to_list(result: multiprocessing.Queue, messages: list, last_idx_searched: int, func_handle: Cal... | PypiClean |
/jina-core-0.0.1.tar.gz/jina-core-0.0.1/jina/schemas/meta.py | schema_metas = {
'Jina::Metas': {
'description': 'The meta config of the Executor',
'type': 'object',
'required': [],
'additionalProperties': False,
'properties': {
'name': {
'description': 'The name of the executor.',
'type': 'stri... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_bas.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/django_extjs4-1.2.0-extjs4.2.1.tar.gz/django_extjs4-1.2.0-extjs4.2.1/extjs4/static/extjs4/packages/ext-locale/overrides/el_GR/ext-locale-el_GR.js | * Greek translation
* By thesilentman (utf8 encoding)
* 27 Apr 2008
*
* Changes since previous (second) Version:
* + added Ext.Date.shortMonthNames
* + added Ext.Date.getShortMonthName
* + added Ext.Date.monthNumbers
* + added Ext.grid.GroupingFeature
*/
Ext.onReady(function() {
if (Ext.Date) {
E... | PypiClean |
/epage-1.0.0-py3-none-any.whl/pacmodule/gsva.py | import os,sys
import subprocess
def run_gsva(routfile, gmtfile, expr_file,outfile,n_proc):
ROUT = open(routfile,'w')
geneSetNames = []
for l in open(gmtfile):
l = l.strip()
if l.startswith('#'):continue
f = l.split('\t')
# must has at least one gene
if len(f) < 3: continue
geneSetNames.append(f[0])
... | PypiClean |
/fprime_gds-3.3.2.tar.gz/fprime_gds-3.3.2/src/fastentrypoints.py | import re
from setuptools.command import easy_install
TEMPLATE = r"""
# -*- coding: utf-8 -*-
# EASY-INSTALL-ENTRY-SCRIPT: '{3}','{4}','{5}'
__requires__ = '{3}'
import re
import sys
from {0} import {1}
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit({2}... | PypiClean |
/dgl_cu110-0.6.1-cp37-cp37m-manylinux1_x86_64.whl/dgl/nn/mxnet/conv/tagconv.py | # pylint: disable= no-member, arguments-differ, invalid-name
import math
import mxnet as mx
from mxnet import gluon
from .... import function as fn
class TAGConv(gluon.Block):
r"""
Description
-----------
Topology Adaptive Graph Convolutional layer from paper `Topology
Adaptive Graph Convolutio... | PypiClean |
/ydk-models-cisco-ios-xe-16.9.3.post1.tar.gz/ydk-models-cisco-ios-xe-16.9.3.post1/ydk/models/cisco_ios_xe/DIAL_CONTROL_MIB.py | import sys
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_error as _handle_type... | PypiClean |
/sandstone-slurm-assist-0.12.0.tar.gz/sandstone-slurm-assist-0.12.0/sandstone_slurm/node_modules/bower/lib/node_modules/shell-quote/index.js | var json = typeof JSON !== undefined ? JSON : require('jsonify');
var map = require('array-map');
var filter = require('array-filter');
var reduce = require('array-reduce');
exports.quote = function (xs) {
return map(xs, function (s) {
if (s && typeof s === 'object') {
return s.op.replace(/(.)/... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/azuredata/get_sql_server_registration.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
__all__ = [
'GetSqlServerRegistrationResult',
'AwaitableGetSqlServerRegistrationResult',
'get_sql_server_registration',
]
@pulumi.output_... | PypiClean |
/djangoembed-0.1.1.tar.gz/djangoembed-0.1.1/oembed/fields.py | import re
from django.db import models
from django.db.models import signals, Max
from django.db.models.fields import TextField
import oembed
from oembed.constants import URL_RE
from oembed.exceptions import OEmbedMissingEndpoint
from oembed.models import AggregateMedia
class FieldRegistry(object):
"""
Field... | PypiClean |
/apache-superset-3.0.0rc3.tar.gz/apache-superset-3.0.0rc3/superset/static/assets/8e1c9f2cced189f5d82b.chunk.js | "use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[7177],{9433:(e,t,r)=>{r.d(t,{CronPicker:()=>c});var l=r(5872),a=r.n(l),i=(r(67294),r(38179)),n=r(55867),o=r(51995),s=r(61247),u=r(11965);const d={everyText:(0,n.t)("every"),emptyMonths:(0,n.t)("every month"),emptyMonthDays:(0,n.t)... | PypiClean |
/idspy_dictionaries-33801.1.1.tar.gz/idspy_dictionaries-33801.1.1/idspy_dictionaries/ids_dataset_fair/idspy_dataset_fair.py | from ..dataclasses_idsschema import _IDSPYDD_USE_SLOTS,IdsBaseClass
from dataclasses import dataclass, field
from typing import Optional
@dataclass(slots=True)
class IdsProperties(IdsBaseClass):
"""Interface Data Structure properties.
This element identifies the node above as an IDS
:ivar comment: Any c... | PypiClean |
/MTinderApi-0.0.3-py3-none-any.whl/TinderApi/tinder.py | import json
import sys
from TinderApi.api.account import Account
from TinderApi.api.swipe import Swipe
from TinderApi.browser import Browser
from TinderApi.protos.authgateway import *
from TinderApi.captcha import Captcha
from TinderApi.api.matches import Matches
from TinderApi.utils import Utils
from TinderApi.api.mi... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/FaceSearchResult.py | import json
from alipay.aop.api.constant.ParamConstants import *
class FaceSearchResult(object):
def __init__(self):
self._face_type = None
self._score = None
self._user_id = None
self._user_name = None
@property
def face_type(self):
return self._face_type
@... | PypiClean |
/client_chat_app-0.0.1.tar.gz/client_chat_app-0.0.1/server/commons/decorators.py | import socket as s
import logs.config_client_logs
import logs.config_server_logs
import logging
import sys
import traceback
if 'client' in sys.argv[0]:
LOGGER = logging.getLogger('client')
else:
LOGGER = logging.getLogger('server')
def log(func):
"""
A decorator that logs function calls.
Saves d... | PypiClean |
/ibllib-2.25.0.tar.gz/ibllib-2.25.0/brainbox/population/decode.py | import numpy as np
import scipy as sp
import scipy.stats
import types
from itertools import groupby
from sklearn.linear_model import LinearRegression, Lasso, Ridge
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.model_selection import KFold, LeaveOneOut, LeaveOneGroupOut
from sklearn.m... | PypiClean |
/SpammCan-0.2b.tar.bz2/SpammCan-0.2b/spammcan/rest.py | try:
import docutils
except ImportError:
raise ImportError, 'Please install docutils 0.4.0+ from http://docutils.sourceforge.net/#download.'
version = docutils.__version__.split('.')
if not (version >= ['0', '4', '0'] or version >= ['0', '4']):
raise ImportError, """Old version of docutils found:
Got: %(v... | PypiClean |
/rss-news-reader-3.2.5.tar.gz/rss-news-reader-3.2.5/rss_news_reader/reader/_reader.py | import logging
from html import unescape
from typing import List
from requests import Response, exceptions, get
from rss_news_reader.config import Config
from rss_news_reader.converter import Converter
from rss_news_reader.printer import NewsPrinter
from rss_news_reader.reader import NewsCache
from rss_news_reader.rs... | PypiClean |
/wield.control-0.6.2-py3-none-any.whl/wield/control/algorithms/statespace/dense/zpk_algorithms.py | import numpy as np
import scipy
import scipy.signal
import collections
from . import xfer_algorithms
from ...zpk import order_reduce
from numpy.polynomial.chebyshev import (
chebfromroots,
# chebcompanion,
)
from . import ss_algorithms
TupleABCDE = collections.namedtuple("ABCDE", ('A', 'B', 'C', 'D', 'E'))... | PypiClean |
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/lib/ext-ux-grid-search/js/Ext.ux.form.ThemeCombo.js | * @class Ext.ux.form.ThemeCombo
* @extends Ext.form.ComboBox
*
* Combo pre-configured for themes selection. Keeps state if a provider is present.
*
* @author Ing. Jozef Sakáloš
* @copyright (c) 2008, by Ing. Jozef Sakáloš
* @version 1.1
* @date 30. January 2008
* @revision $Id: Ext.ux.f... | PypiClean |
/ipykernel-6.25.1.tar.gz/ipykernel-6.25.1/examples/embedding/inprocess_terminal.py | import os
import sys
import tornado
from jupyter_console.ptshell import ZMQTerminalInteractiveShell
from ipykernel.inprocess.manager import InProcessKernelManager
def print_process_id():
"""Print the process id."""
print("Process ID is:", os.getpid())
def init_asyncio_patch():
"""set default asyncio p... | PypiClean |
/athiruma_cloud_governance-1.2.108-py3-none-any.whl/cloud_governance/policy/policy_operations/aws/zombie_cluster/zombie_cluster_common_methods.py | import json
import os
from ast import literal_eval
from copy import deepcopy
import boto3
from cloud_governance.common.ldap.ldap_search import LdapSearch
from cloud_governance.common.logger.init_logger import logger
from cloud_governance.common.logger.logger_time_stamp import logger_time_stamp
from cloud_governance.c... | PypiClean |
/bsn_sdk_py-1.0.6.tar.gz/bsn_sdk_py-1.0.6/bsn_sdk_py/client/fabric_client.py | from bsn_sdk_py.client.config import Config
from bsn_sdk_py.common.api_requestor import APIRequestor
from bsn_sdk_py.client.bsn_enum import AppCaType
from bsn_sdk_py.until.bsn_logger import log_debug,log_info
from bsn_sdk_py.client.entity import RegisterUser, EnrollUser, ReqChainCode, GetTransaction, \
GetBlockInfo... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayFinancialnetAuthEcsignSolutionBatchqueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayFinancialnetAuthEcsignSolutionBatchqueryModel import AlipayFinancialnetAuthEcsignSolutionBatchqueryModel
class AlipayFinancialnetAuthEcsignSolutionBatchqueryRequest(object)... | PypiClean |
/quik_config-1.7.7.tar.gz/quik_config-1.7.7/quik_config/__dependencies__/ez_yaml/__dependencies__/__sources__/ruamel/yaml/resolver.py |
import re
if False: # MYPY
from typing import Any, Dict, List, Union, Text, Optional # NOQA
from .compat import VersionType # NOQA
from .compat import _DEFAULT_YAML_VERSION, _F # NOQA
from .error import * # NOQA
from .nodes import MappingNode, ScalarNode, SequenceNode # NOQA
from .util import RegExp #... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/doc_fragments/ios.py |
# Copyright: (c) 2015, Peter Sprygada <psprygada@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# Standard files documentation fragment
DOCUMENTATION = r"""options:
provider:
description:
- B(Deprecated)
... | PypiClean |
/mani_skill2-0.5.2.tar.gz/mani_skill2-0.5.2/warp_maniskill/warp/sim/import_urdf.py |
try:
import urdfpy
except:
pass
import math
import numpy as np
import os
import xml.etree.ElementTree as ET
import warp as wp
from warp.sim.model import Mesh
def urdf_add_collision(builder, link, collisions, density, shape_ke, shape_kd, shape_kf, shape_mu):
# add geometry
for collision in collisi... | PypiClean |
/samapper-0.3.2.tar.gz/samapper-0.3.2/sam/pages/details.py | from sam import common
import re
from sam import errors
import base
import sam.models.details
import sam.models.nodes
import sam.models.links
# This class is for getting the main selection details, such as ins, outs, and ports.
def nice_protocol(strings, p_in, p_out):
"""
:param p_in: comma-seperated p... | PypiClean |
/groundwork_django-0.2.0.tar.gz/groundwork_django-0.2.0/groundwork/core/static/assets/vendor-legacy.a2df6578.js | System.register([],(function(e){"use strict";return{execute:function(){class t{constructor(e,t,r){this.eventTarget=e,this.eventName=t,this.eventOptions=r,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(th... | PypiClean |
/flora-blockchain-0.2.5.tar.gz/flora-blockchain-0.2.5/flora/server/connection_utils.py | import asyncio
import random
from typing import Any, List, Optional, Tuple
from flora.server.ws_connection import WSFloraConnection
async def send_all_first_reply(
func: str, arg: Any, peers: List[WSFloraConnection], timeout=15
) -> Optional[Tuple[Any, WSFloraConnection]]:
"""performs an API request to peers... | PypiClean |
/polyfile-0.5.2.tar.gz/polyfile-0.5.2/polymerge/cfg.py | import math
import graphviz
import networkx as nx
from . import polymerge, polytracker
def roots(graph):
return (n for n, d in graph.in_degree() if d == 0)
class DiGraph(nx.DiGraph):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._dominator_forest: DiGraph = No... | PypiClean |
/python-pptx-valutico-0.6.24.3.tar.gz/python-pptx-valutico-0.6.24.3/pptx/oxml/shapes/groupshape.py | from __future__ import absolute_import, division, print_function, unicode_literals
from pptx.enum.shapes import MSO_CONNECTOR_TYPE
from pptx.oxml import parse_xml
from pptx.oxml.ns import nsdecls, qn
from pptx.oxml.shapes.autoshape import CT_Shape
from pptx.oxml.shapes.connector import CT_Connector
from pptx.oxml.shap... | PypiClean |
/erhsh_python-0.2.6-py3-none-any.whl/erhsh/utils/calc_iou.py | import os
import numpy as np
import cv2
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES=True
Image.MAX_IMAGE_PIXELS=None
def __cal_hist(a, b, n):
# a -> label_true, b -> label_predict
k = (a >= 0) & (a < n)
return np.bincount(n * a[k].astype(np.int32) + b[k], minlength=n ** 2).reshape(n... | PypiClean |
/textual_paint-0.1.0-py3-none-any.whl/textual_paint/localization/fi/localizations.js | loaded_localizations("fi", {
"Attributes": "Määritteet",
"&Width:": "&Leveys:",
"Width:": "Leveys:",
"&Height:": "&Korkeus:",
"Height:": "Korkeus:",
"Units": "Yksiköt",
"&Inches": "&tuuma",
"Inches": "tuuma",
"C&m": "&cm",
"Cm": "cm",
"&Pixels": "ku&vapiste",
"Pixels": "kuvapiste",
"Colors": "Värit",
"&Bl... | PypiClean |
/neutrosophic-0.0.5-py3-none-any.whl/src/__svnn.py |
class SingleValuedNeutrosophicNumber:
def __init__(self, id, truth, indeterminacy, falsehood):
"""Initialize neutrosophic element
:truth:
:indeterminacy:
:falsehood:"""
assert id is not None, 'provide id for element to be initialized'
assert 0 <= truth <= 1, 'invali... | PypiClean |
/tfduck_bsd-0.17.2-py3-none-any.whl/tfduck/pyspark_k8s/k8s_manage.py | import json
from tfduck.common.defines import BMOBJ, Et
from tfduck.oss.oss import AliyunOss
from kubernetes import client, config
import uuid
import arrow
import os
import base64
import subprocess
class K8sManage(object):
"""
"""
def __init__(self, ctx, k8s_conn_config="~/.kube/config"):
"""
... | PypiClean |
/openai_helper-0.2.4.tar.gz/openai_helper-0.2.4/openai_helper/dmo/etl_remove_listindicators.py | from baseblock.common_utils import odds_of
from baseblock import BaseObject
LINE_BREAK = '\n'
class EtlRemoveListIndicators(BaseObject):
""" Remove any Characters that Indicate List Delimitation
Sample Input:
- item 1
- item 2
- item 3
Sample Output:
... | PypiClean |
/BDPotentiometer-0.0.1.tar.gz/BDPotentiometer-0.0.1/README.md | # BDPotentiometer

Module to operate Digital Potentiometer over SPI bus. Extends gpiozero SPIDev class.
## Installation
To install BDPotentiometer run
```shell
pip install BDPotentiometer
```
or
```shell
python setup.py install
```
## ... | PypiClean |
/types-aiobotocore-redshift-2.3.4.tar.gz/types-aiobotocore-redshift-2.3.4/types_aiobotocore_redshift/literals.py | import sys
if sys.version_info >= (3, 9):
from typing import Literal
else:
from typing_extensions import Literal
__all__ = (
"ActionTypeType",
"AquaConfigurationStatusType",
"AquaStatusType",
"AuthorizationStatusType",
"ClusterAvailableWaiterName",
"ClusterDeletedWaiterName",
"Clu... | PypiClean |
/overloading-0.5.0-py3-none-any.whl/overloading-0.5.0.dist-info/DESCRIPTION.rst |
``overloading`` is a module that provides function and method dispatching
based on the types and number of runtime arguments.
When an overloaded function is invoked, the dispatcher compares the supplied
arguments to available signatures and calls the implementation providing the
most accurate match:
.. code:: pytho... | PypiClean |
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/_api/v2/compat/v1/data/experimental/__init__.py | import sys as _sys
from . import service
from tensorflow.python.data.experimental.ops.batching import dense_to_ragged_batch
from tensorflow.python.data.experimental.ops.batching import dense_to_sparse_batch
from tensorflow.python.data.experimental.ops.batching import map_and_batch
from tensorflow.python.data.experimen... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/commander/typings/index.d.ts |
declare namespace commander {
interface CommanderError extends Error {
code: string;
exitCode: number;
message: string;
nestedError?: string;
}
type CommanderErrorConstructor = new (exitCode: number, code: string, message: string) => CommanderError;
interface Option {
flags: string;
r... | PypiClean |
/compliancex-0.0.0.tar.gz/compliancex-0.0.0/compliance/cli.py |
# Copyright The Compliancex Authors.
# SPDX-License-Identifier: Apache-2.0
#
# PYTHON_ARGCOMPLETE_OK (Must be in first 1024 bytes, so if tab completion
# is failing, move this above the license)
import argparse
import importlib
import logging
import os
import pdb
import sys
import traceback
import argcomplete
try:... | PypiClean |
/stcnb-0.1.1.tar.gz/stcnb-0.1.1/README.md | 📦 setup.py (for humans)
=======================
This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices for `setup.py`, as well as some
commented–out nice–to–haves.
For example, this `setup.py` provides a `$... | PypiClean |
/lightning_flash-0.8.2-py3-none-any.whl/flash/core/optimizers/lr_scheduler.py | import math
import warnings
from typing import List
from torch.optim import Optimizer
from torch.optim.lr_scheduler import _LRScheduler
from flash.core.utilities.imports import _TOPIC_CORE_AVAILABLE
# Skip doctests if requirements aren't available
if not _TOPIC_CORE_AVAILABLE:
__doctest_skip__ = ["LinearWarmupCo... | PypiClean |
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/notebooks/ReciprocalLatticeUnitAxis.ipynb | # The Reciprocal Lattice Units Axis
The main object to plot data in reciprocal lattice units is the <code>RLUAxis</code> which takes care of conversion between the calculated ($Q_x$,$Q_y$) and the scattering plane in ($H$,$K$,$L$) units with the correct grid. This can at times prove difficult when dealing with non-ort... | PypiClean |
/blam_sdk-0.0.6-py3-none-any.whl/blam_sdk/agent_core/agent.py | import json
import logging
import os
import time
import warnings
import boto3
from blam_sdk.agent_core.agent_conf import AgentConf
from blam_sdk.services.action_service import ActionService
class Agent:
def __init__(self, config: AgentConf = None, action_handlers={}):
if config is None:
conf... | PypiClean |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/unpacked/jax/output/SVG/config.js | MathJax.OutputJax.SVG = MathJax.OutputJax({
id: "SVG",
version: "2.7.5",
directory: MathJax.OutputJax.directory + "/SVG",
extensionDir: MathJax.OutputJax.extensionDir + "/SVG",
autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload",
fontDir: MathJax.OutputJax.directory + "/SVG/fonts", // font name added... | PypiClean |
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/tvnow.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
ExtractorError,
int_or_none,
parse_iso8601,
parse_duration,
str_or_none,
update_url_query,
urljoin,
)
class TVNowBaseIE(InfoExtractor):
_VIDEO_FIE... | PypiClean |
/pear_xai-0.0.10-py3-none-any.whl/captum/attr/_core/occlusion.py | from typing import Any, Callable, Tuple, Union
import numpy as np
import torch
from captum._utils.common import _format_tensor_into_tuples
from captum._utils.typing import BaselineType, TargetType, TensorOrTupleOfTensorsGeneric
from captum.attr._core.feature_ablation import FeatureAblation
from captum.attr._utils.comm... | PypiClean |
/pydica-watchdog-0.6.2.tar.gz/pydica-watchdog-0.6.2/src/watchdog/observers/fsevents.py | from __future__ import with_statement
from watchdog.utils import platform
if platform.is_darwin():
import threading
import unicodedata
import os.path
import _watchdog_fsevents as _fsevents
from pathtools.path import absolute_path
from watchdog.events import\
FileDeletedEvent,\
FileModifiedEvent,\
... | PypiClean |
/django_restit-4.1.34-py3-none-any.whl/incident/migrations/0001_initial.py |
from django.db import migrations, models
import django.db.models.deletion
import rest.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('medialib', '0001_initial'),
('location', '0002_geoip_subnet_alter_geoip_ip'),
('account', '0012_settings_settingsmeta... | PypiClean |
/fake_bpy_module_2.78-20230117-py3-none-any.whl/bpy/ops/ui.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
def copy_data_path_button(override_context: typing.
Union[typing.Dict, 'bpy.types.Context'] = None,
execution_context: typing.Union[str, int] = None,
und... | PypiClean |
/tornado-gcp-6.1.3.tar.gz/tornado-gcp-6.1.3/tornado/platform/twisted.py | import socket
import sys
import twisted.internet.abstract # type: ignore
import twisted.internet.asyncioreactor # type: ignore
from twisted.internet.defer import Deferred # type: ignore
from twisted.python import failure # type: ignore
import twisted.names.cache # type: ignore
import twisted.names.client # type:... | PypiClean |
/pytorch-caldera-0.1.0a0.tar.gz/pytorch-caldera-0.1.0a0/examples/crn/train.py | import os
import sys
here = os.path.abspath(os.path.dirname(__file__))
PACKAGE_PARENT = "../.."
SCRIPT_DIR = os.path.dirname(
os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))
)
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
import wandb
import torch
from cald... | PypiClean |
/kafka-python3-3.0.0.tar.gz/kafka-python3-3.0.0/kafka3/codec.py | from __future__ import absolute_import
import gzip
import io
import platform
import struct
from kafka3.vendor import six
from kafka3.vendor.six.moves import range
_XERIAL_V1_HEADER = (-126, b'S', b'N', b'A', b'P', b'P', b'Y', 0, 1, 1)
_XERIAL_V1_FORMAT = 'bccccccBii'
ZSTD_MAX_OUTPUT_SIZE = 1024 * 1024
try:
impo... | PypiClean |
/cotk-0.0.1.tar.gz/cotk-0.0.1/README.md |
# Conversational Toolkits
[](https://www.codefactor.io/repository/github/thu-coai/cotk)
[](https://coveralls.io/github/thu-coai/cotk?branch=master)
[... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.