id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/tb_nightly-2.13.0a20230217-py3-none-any.whl/tensorboard/_vendor/html5lib/filters/optionaltags.py
from __future__ import absolute_import, division, unicode_literals from . import base class Filter(base.Filter): """Removes optional tags from the token stream""" def slider(self): previous1 = previous2 = None for token in self.source: if previous1 is not None: yie...
PypiClean
/yafowil.widget.ace-2.0a1.tar.gz/yafowil.widget.ace-2.0a1/src/yafowil/widget/ace/resources/ace/mode-nginx.js
ace.define("ace/mode/nginx_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="include|index|absolute_redirect|aio|output_buffers|directio|sendfile|aio_write|...
PypiClean
/eb_airflow_providers_siafi-1.2.0-py3-none-any.whl/eb/airflow/providers/siafi/hooks/siafi.py
from typing import Any, Dict import json from airflow.exceptions import AirflowFailException from airflow.hooks.base import BaseHook from airflow.models import Connection from airflow.settings import Session class SIAFIHook(BaseHook): '''Hook base para conexão com o SIAFI. :param id_conexao: referência para...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/synology_dsm/__init__.py
from __future__ import annotations from datetime import timedelta import logging from typing import Any, Callable import async_timeout from synology_dsm import SynologyDSM from synology_dsm.api.core.security import SynoCoreSecurity from synology_dsm.api.core.system import SynoCoreSystem from synology_dsm.api.core.upg...
PypiClean
/text-autoencoder-0.0.1.tar.gz/text-autoencoder-0.0.1/text_autoencoder/toolkit/batch_loader.py
from typing import List, Dict import numpy as np class BatchLoader: def __init__( self, sentences: List[str], word2index: Dict[str, int], batch_size: int = 32, maxlen: int = 50, sos_token: str = '<SOS>', eos_token: str = '<EOS>'...
PypiClean
/dql_alpha-0.38.0-py3-none-any.whl/dql/sql/types.py
from types import MappingProxyType from typing import Dict from sqlalchemy import TypeDecorator, types _registry: Dict[str, "TypeConverter"] = {} registry = MappingProxyType(_registry) def register_backend_types(dialect_name: str, type_cls): _registry[dialect_name] = type_cls def converter(dialect) -> "TypeC...
PypiClean
/RsCMPX_WlanMeas-4.0.150-py3-none-any.whl/RsCMPX_WlanMeas/Implementations/WlanMeas/MultiEval/Modulation/Ofdm/Current.py
from ......Internal.Core import Core from ......Internal.CommandsGroup import CommandsGroup from ......Internal.StructBase import StructBase from ......Internal.ArgStruct import ArgStruct from ...... import enums # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class CurrentCls: """Current ...
PypiClean
/schematics-fork-2.1.1.tar.gz/schematics-fork-2.1.1/README.rst
========== Schematics ========== .. rubric:: Python Data Structures for Humans™. .. image:: https://travis-ci.org/schematics/schematics.svg?branch=master :target: https://travis-ci.org/schematics/schematics :alt: Build Status .. image:: https://coveralls.io/repos/github/schematics/schematics/badge.svg?branch=m...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/node-addon-api/doc/async_worker.md
# AsyncWorker `Napi::AsyncWorker` is an abstract class that you can subclass to remove many of the tedious tasks of moving data between the event loop and worker threads. This class internally handles all the details of creating and executing an asynchronous operation. Once created, execution is requested by calling ...
PypiClean
/react-frontend-20230406083236.tar.gz/react-frontend-20230406083236/react_frontend/22e64f46.js
"use strict";(self.webpackChunkreact_frontend=self.webpackChunkreact_frontend||[]).push([[4007],{84007:function(e,t,r){r.r(t);r(44577),r(89590);var o,n,i=r(7599),s=r(46323),a=r(86089),c=r(56311),l=r(62871),d=(r(31508),r(85878),r(71133),r(21157)),u=r(71756),f=r(57),p=r(6403),h=(r(10179),r(65781),r(47501)),m=r(4096),v=r(...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/models/query_utils.py
import copy import functools import inspect from collections import namedtuple from djmodels.db.models.constants import LOOKUP_SEP from djmodels.utils import tree # PathInfo is used when converting lookups (fk__somecol). The contents # describe the relation in Model terms (model Options and Fields for both # sides of...
PypiClean
/celery_custom_fix-4.2.0.tar.gz/celery_custom_fix-4.2.0/celery_custom_fix/apps/multi.py
from __future__ import absolute_import, unicode_literals import errno import os import shlex import signal import sys from collections import OrderedDict, defaultdict from functools import partial from subprocess import Popen from time import sleep from kombu.utils.encoding import from_utf8 from kombu.utils.objects i...
PypiClean
/sandwichcloud_deli-0.0.39-py3-none-any.whl/deli/counter/auth/token.py
import json import logging from typing import List import arrow import cherrypy import jose import requests from cryptography.fernet import InvalidToken from jose import jwt from simple_settings import settings from deli.counter.auth.permission import SYSTEM_PERMISSIONS from deli.kubernetes.resources.project import P...
PypiClean
/arbor-bcumming-0.5.tar.gz/arbor-bcumming-0.5/python/pybind11/ISSUE_TEMPLATE.md
Make sure you've completed the following steps before submitting your issue -- thank you! 1. Check if your question has already been answered in the [FAQ](http://pybind11.readthedocs.io/en/latest/faq.html) section. 2. Make sure you've read the [documentation](http://pybind11.readthedocs.io/en/latest/). Your issue may ...
PypiClean
/Moments-2.0.tar.gz/Moments-2.0/moments/timestamp.py
from datetime import datetime, timedelta, date from datetime import time as dttime from time import strptime import time as pytime import re time_format = "%Y.%m.%d %H:%M" def has_timestamp(line): (ts, remainder) = parse_line_for_time(line) if ts: return True else: return False def get_t...
PypiClean
/get_manaba-2.3.3-py3-none-any.whl/manaba/models/ManabaCourseNews.py
import datetime from typing import Optional from manaba.models.ManabaFile import ManabaFile from manaba.models.ManabaModel import ManabaModel class ManabaCourseNews(ManabaModel): """ manaba コースニュース """ def __init__(self, course_id: int, news_id: int, ...
PypiClean
/engines/pyeneI.py
import numpy as np import logging import math import os import json import copy from openpyxl import load_workbook from typing import Any from dataclasses import dataclass from .pyene_Models import network_parameter, model_options_parameter, parameters, tree_parameters, characteristic, information try: import pyps...
PypiClean
/bdrc_transfer-0.1.20-py3-none-any.whl/gb_ocr/distribute_ocr_no_class.py
import argparse import fileinput import logging import queue import threading from datetime import datetime, timedelta from pathlib import Path import util_lib.GetFromBUDA from archive_ops.Resolvers import Resolvers from archive_ops.shell_ws import get_mappings from gb_lib import GbLib as lib # Required globals act...
PypiClean
/django-codemirror2-0.2.tar.gz/django-codemirror2-0.2/codemirror2/static/codemirror2/addon/hint/css-hint.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../mode/css/css")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../mode/css/css"], mod); else // Plain browser env ...
PypiClean
/gdata-2.0.18.tar.gz/gdata-2.0.18/samples/apps/marketplace_sample/atom/url.py
__author__ = 'api.jscudder (Jeff Scudder)' import urlparse import urllib DEFAULT_PROTOCOL = 'http' DEFAULT_PORT = 80 def parse_url(url_string): """Creates a Url object which corresponds to the URL string. This method can accept partial URLs, but it will leave missing members of the Url unset. """ p...
PypiClean
/pnap_rancher_solution_api-1.0.6-py3-none-any.whl/pnap_rancher_solution_api/model/error.py
import re # noqa: F401 import sys # noqa: F401 from pnap_rancher_solution_api.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, non...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/network/aaz/2020_09_01_hybrid/network/route_table/route/_update.py
# pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * @register_command( "network route-table route update", ) class Update(AAZCommand): """Update a route in a route table. :example: Update a route in a route table to change the next hop ip address. az network route-table route up...
PypiClean
/ete2-2.3.10.tar.gz/ete2-2.3.10/README.rst
.. image:: https://travis-ci.org/jhcepas/ete.svg?branch=master :target: https://travis-ci.org/jhcepas/ete .. image:: https://badges.gitter.im/Join%20Chat.svg :alt: Join the chat at https://gitter.im/jhcepas/ete :target: https://gitter.im/jhcepas/ete?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_...
PypiClean
/TRAPpy-6.0.1-py3-none-any.whl/trappy/cpu_power.py
from __future__ import division from __future__ import unicode_literals import pandas as pd from trappy.base import Base from trappy.dynamic import register_ftrace_parser def pivot_with_labels(dfr, data_col_name, new_col_name, mapping_label): """Pivot a :mod:`pandas.DataFrame` row into columns :param dfr: T...
PypiClean
/exactly-0.15.0-py3-none-any.whl/exactly_lib/impls/types/string_transformer/impl/strip_space.py
from typing import Iterable, Sequence, Callable from exactly_lib.common.help import headers from exactly_lib.definitions import doc_format, matcher_model from exactly_lib.definitions import misc_texts, formatting from exactly_lib.impls.description_tree import custom_details from exactly_lib.impls.types.expression impo...
PypiClean
/infi.django_rest_utils-1.6.3.tar.gz/infi.django_rest_utils-1.6.3/src/infi/django_rest_utils/views.py
from __future__ import absolute_import from builtins import map from builtins import str from builtins import zip from builtins import object from django.utils.safestring import mark_safe from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.http impor...
PypiClean
/astrogrid-1.0.3.tar.gz/astrogrid-1.0.3/doc/help/PyFontify.py
__version__ = "0.4" import string, re, keyword # Build up a regular expression which will match anything # interesting, including multi-line triple-quoted strings. commentPat = "#.*" pat = "q[^\q\n]*(\\\\[\000-\377][^\q\n]*)*q" quotePat = string.replace(pat, "q", "'") + "|" + string.replace(pat, 'q', '"') # Way to...
PypiClean
/django_outbox_base_layout-1.2.tar.gz/django_outbox_base_layout-1.2/outbox_base_layout/static/bower_components/jquery/src/core/ready.js
define([ "../core", "../core/init", "../deferred" ], function( jQuery ) { // The deferred used on DOM ready var readyList; jQuery.fn.ready = function( fn ) { // Add the callback jQuery.ready.promise().done( fn ); return this; }; jQuery.extend({ // Is the DOM ready to be used? Set to true once it occurs. isR...
PypiClean
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/contrib/opt/python/training/moving_average_optimizer.py
"""Moving average optimizer.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import six from tensorflow.python.framework import ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import variables from tensorflow.python.tra...
PypiClean
/py-cortex-api-2.2.1.tar.gz/py-cortex-api-2.2.1/cortex/calls.py
import os import shutil import tempfile import sys from pathlib import Path from typing import List from cortex.file_manip import ( StrPath, PathLike, _find_final_vcf_file_path, _make_empty_vcf, ) from . import settings from . import utils class _CortexIndex: def __init__(self, directory: Path): ...
PypiClean
/senti-news-0.0.39.tar.gz/senti-news-0.0.39/src/sentinews/models.py
import pathlib import logging import os import pandas as pd from dotenv import load_dotenv from textblob import TextBlob from textblob.sentiments import NaiveBayesAnalyzer from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer from fastai.text import * from transformers import DistilBertTokenizer, Disti...
PypiClean
/gb_mess_client-0.1.0-py3-none-any.whl/client/client_1.py
import os import sys import socket import time import json import logging.config import hashlib import binascii import hmac from utils.moduls import Proto from services import actions from socket import * from threading import Thread from utils.descriptors import HostPortDescriptor from utils.metaclass import DocMeta ...
PypiClean
/oscsim-1.1.2-py3-none-any.whl/opensim/run.py
import signal import sys from datetime import datetime from threading import Lock, Thread from time import sleep from typing import Dict import requests from .modules import arguments, helper, ngsi, output, sensor_things # some globals start = datetime.now() errors = 0 unique_errors = dict() # type: Dict[str, int] ...
PypiClean
/j11hail-99.2.58-py3-none-any.whl/hail/methods/relatedness/pc_relate.py
import hail as hl import hail.expr.aggregators as agg from hail.expr import (expr_float64, expr_call, expr_array, analyze, matrix_table_source) from hail.expr.types import tarray from hail import ir from hail.linalg import BlockMatrix from hail.table import Table from hail.typecheck import typech...
PypiClean
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/devscripts/make_lazy_extractors.py
# Allow direct execution import os import shutil import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from inspect import getsource from devscripts.utils import get_filename_args, read_file, write_file NO_ATTR = object() STATIC_CLASS_PROPERTIES = [ 'IE_NAME', '_ENABLED', ...
PypiClean
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/core/framework/dataset_metadata_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/nighthtr-django-3-jet-1.0.8.tar.gz/nighthtr-django-3-jet-1.0.8/jet/dashboard/dashboard_modules/yandex_metrika.py
import datetime import json from django import forms try: from django.core.urlresolvers import reverse except ImportError: # Django 1.11 from django.urls import reverse from django.forms import Widget from django.utils import formats from django.utils.html import format_html from django.utils.safestring import...
PypiClean
/block2-mpi-0.5.1.tar.gz/block2-mpi-0.5.1/pyblock2/ft_dmrg.py
from block2 import SU2, SZ, Global, OpNamesSet, Threading, ThreadingTypes from block2 import init_memory, release_memory, SiteIndex from block2 import VectorUInt8, PointGroup, FCIDUMP, QCTypes, SeqTypes, OpNames, Random from block2 import VectorUBond, VectorDouble, NoiseTypes, DecompositionTypes, EquationTypes from blo...
PypiClean
/DigitalRover-0.0.1.tar.gz/DigitalRover-0.0.1/src/archiver/video_download.py
import logging import os import threading import youtube_dl from config import config as main_config from doltpy.core.system_helpers import get_logger class DownloadLogger(object): def __init__(self): # Logger self.logger: logging.Logger = get_logger(__name__) def debug(self, msg): ...
PypiClean
/thrill-0.0.1.tar.gz/thrill-0.0.1/frontends/python/pybind11/docs/faq.rst
Frequently asked questions ########################## "ImportError: dynamic module does not define init function" =========================================================== 1. Make sure that the name specified in PYBIND11_MODULE is identical to the filename of the extension library (without prefixes such as .so) 2....
PypiClean
/openlineage-airflow_tdl-0.25.0.tar.gz/openlineage-airflow_tdl-0.25.0/openlineage/airflow/extractors/redshift_sql_extractor.py
from typing import TYPE_CHECKING, List import boto3 from openlineage.airflow.extractors.postgres_extractor import PostgresExtractor if TYPE_CHECKING: from airflow.hooks.base import BaseHook class RedshiftSQLExtractor(PostgresExtractor): _whitelist_query_params: List[str] = ["cluster_identifier", "region"]...
PypiClean
/ork.build-0.0.68.tar.gz/ork.build-0.0.68/scripts/obt/_dep_provider.py
import os, inspect, tarfile, sys from pathlib import Path import importlib.util import obt.path, obt.host from obt.command import Command, run from obt.deco import Deco from obt.wget import wget from obt import pathtools, cmake, make, path, git, host from obt import _dep_impl, _dep_x, _globals, log, buildtrace from en...
PypiClean
/datadog_checks_base-33.1.0.tar.gz/datadog_checks_base-33.1.0/datadog_checks/base/checks/openmetrics/v2/utils.py
from prometheus_client.samples import Sample NEGATIVE_INFINITY = float('-inf') def decumulate_histogram_buckets(sample_data): """ Decumulate buckets in a given histogram metric and adds the lower_bound label (le being upper_bound) """ # TODO: investigate performance optimizations new_sample_data ...
PypiClean
/binreader-1.1-py3-none-any.whl/binreader.py
import struct from os import SEEK_CUR from typing import BinaryIO ENDIAN_PREFIXES = ("@", "<", ">", "=", "!") class BinaryReader: def __init__(self, buf: BinaryIO, endian: str = "<") -> None: self.buf = buf self.endian = endian def align(self) -> None: old = self.tell() new = (old + 3) & -4 if new > old...
PypiClean
/doc-ufcn-0.1.9rc4.tar.gz/doc-ufcn-0.1.9rc4/README.md
# Doc-UFCN This Python 3 library contains a public implementation of Doc-UFCN, a fully convolutional network presented in the paper [Multiple Document Datasets Pre-training Improves Text Line Detection With Deep Neural Networks](https://teklia.com/research/publications/boillet2020/). This library has been developed by...
PypiClean
/pulumi_fortios-0.0.9.tar.gz/pulumi_fortios-0.0.9/pulumi_fortios/system_automation_destination.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__ = ['SystemAutomationDestinationArgs', 'SystemAutomationDestination'] @pulumi.input_type class SystemAutoma...
PypiClean
/map-mapilio-0.0.33.tar.gz/map-mapilio-0.0.33/map/shape.py
import json import os import urllib from addict import Dict from folium import folium, features import folium import requests from PIL import Image, ImageDraw from io import BytesIO class ShapeOperations: """ Shape Operatings Draw Line Add Point """ def __init__(self, map, file_id): sel...
PypiClean
/gis_tools-0.17.8.tar.gz/gis_tools-0.17.8/gistools/utils/check/value.py
import os from collections import Collection from gistools.utils.check.type import check_type, isfile, type_assert def check_string(string: str, list_of_strings: Collection) -> str: """ Check validity of and return string against list of valid strings :param string: searched string :type string: str ...
PypiClean
/aws_psycopg2-1.3.8-py3-none-any.whl/psycopg2/extras.py
import os as _os import time as _time import re as _re from collections import namedtuple, OrderedDict import logging as _logging import psycopg2 from psycopg2 import extensions as _ext from .extensions import cursor as _cursor from .extensions import connection as _connection from .extensions import adapt as _A, qu...
PypiClean
/gracie_dictionary_api-100.2.1.1691767489-py3-none-any.whl/gracie_dictionary_api/dictionary_controllers_classes/skillParametersController.py
class skillParametersController: """""" _controller_name = "skillParametersController" _gracie = None def __init__(self, gracie): self._gracie = gracie def retrieve(self, skillId, **kwargs): """ Args: skillId: (string): languageId: (string): ...
PypiClean
/psat-server-web-0.1.9.tar.gz/psat-server-web-0.1.9/psat_server_web/ps1/psdb/views.py
#from django.conf.urls.defaults import * from django.shortcuts import get_object_or_404, render, redirect from django.http import HttpResponseRedirect from django.urls import reverse from django.db.models import Avg, Max, Min, Count from django.db import IntegrityError from psdb.models import TcsTransientObjects from ...
PypiClean
/fds.sdk.VirtualPortfolioAPIforDigitalPortals-0.9.5-py3-none-any.whl/fds/sdk/VirtualPortfolioAPIforDigitalPortals/model/watchlist_position_delete_data.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.VirtualPortfolioAPIforDigitalPortals.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, ...
PypiClean
/PlasmidPoolAnalysis-0.1.0-py3-none-any.whl/ppsAnalysis/main.py
import os import glob import pandas as pd import argparse import seaborn as sns import ppsAnalysis.alignment import ppsAnalysis.cluster import ppsAnalysis.yeast_variant_analysis import ppsAnalysis.human_variant_analysis import ppsAnalysis.logthis # Author: Roujia Li # email: Roujia.li@mail.utoronto.ca def variants_m...
PypiClean
/gigachain-0.0.277.tar.gz/gigachain-0.0.277/langchain/callbacks/base.py
from __future__ import annotations from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Union from uuid import UUID from tenacity import RetryCallState if TYPE_CHECKING: from langchain.schema.agent import AgentAction, AgentFinish from langchain.schema.document import Document from langc...
PypiClean
/onecode_pycg-0.0.8-py3-none-any.whl/pycg/machinery/pointers.py
class Pointer(object): def __init__(self): self.values = set() def add(self, item): self.values.add(item) def add_set(self, s): self.values = self.values.union(s) def get(self): return self.values def merge(self, pointer): self.values = self.values.union(p...
PypiClean
/wgscovplot-0.3.0.tar.gz/wgscovplot-0.3.0/src/echarts/getOption/fluOptions/getFluTooltips.js
import {toTableHtml} from "../../../util"; import {getMaxSegmentsLength, getSegmentsIndex, getSegmentsRange} from "./getFluSegmentsInfo"; import {find} from "lodash/collection"; import {isEmpty} from "lodash/lang"; import {genomeCoverage, meanCoverage, medianCoverage} from "../../../coverageStat"; /** * Get Variant s...
PypiClean
/PotentialFlowVisualizer-0.2.1.tar.gz/PotentialFlowVisualizer-0.2.1/potentialflowvisualizer/flowfield.py
import aerosandbox as asb import aerosandbox.numpy as np from aerosandbox.tools.pretty_plots import plt, show_plot, contour, mpl class Flowfield: def __init__(self, objects=[] ): self.objects = objects def draw(self, scalar_to_plot:str="potential", # "po...
PypiClean
/swagger_petstore-1.0.6-py3-none-any.whl/swaggerpetstore/models/legal_entity_identity.py
from swaggerpetstore.api_helper import APIHelper from swaggerpetstore.models.address import Address from swaggerpetstore.models.legal_entity_registration import LegalEntityRegistration class LegalEntityIdentity(object): """Implementation of the 'LegalEntityIdentity' model. The identity of a legal entity. Th...
PypiClean
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/dev/oneoffs/hacks_fix_broken_geotiff_crops.py
class GdalErrorHandler(object): """ References: https://gdal.org/api/python_gotchas.html#exceptions-raised-in-custom-error-handlers-do-not-get-caught SeeAlso: 'Error', 'ErrorReset', 'GARIO_ERROR', 'GetErrorCounter', 'GetLastErrorMsg', 'GetLastErrorNo'...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/xmpp/ChatService.js
define("dojox/xmpp/ChatService",["dijit","dojo","dojox"],function(_1,_2,_3){ _2.provide("dojox.xmpp.ChatService"); _3.xmpp.chat={CHAT_STATE_NS:"http://jabber.org/protocol/chatstates",ACTIVE_STATE:"active",COMPOSING_STATE:"composing",INACTIVE_STATE:"inactive",PAUSED_STATE:"paused",GONE_STATE:"gone"}; _2.declare("dojox.x...
PypiClean
/pynct-0.1.0.zip/pynct-0.1.0/pynct/demo_biology/calculate_eigenvalues_mpi.py
import numpy as np import scipy as sp import scipy.linalg as spla from mpi4py import MPI import time import h5py import pypts.tissue import pynct.demo_biology.system.lemma_system import pynct.demo_biology.system.reader_model import optparse def run_model(parameter, cont_data_file, model_info): """ Calcula...
PypiClean
/pyhid_usb_relay-0.1.1.tar.gz/pyhid_usb_relay-0.1.1/pyhid_usb_relay/main.py
import argparse import sys import time from pyhid_usb_relay import find, DeviceNotFoundError def main(): def onoff(state): if state: return "on" return "off" def print_status(d): print("Board ID=[%s] State: %02x" % (d.serial, d.state)) def pulse_sleep(d, relay): ...
PypiClean
/fds.sdk.StocksAPIforDigitalPortals-0.10.12-py3-none-any.whl/fds/sdk/StocksAPIforDigitalPortals/model/inline_response20015_data_volatility.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.StocksAPIforDigitalPortals.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...
PypiClean
/lawsql_trees-0.0.41-py3-none-any.whl/lawsql_trees/statute_unformatted.py
import re from typing import Iterator def fix_absent_signer_problem(data: dict): if signer_found := data.get("signers_of_law", None): return data if not (units_found := data.get("units", None)): return data if not (text := units_found[-1].get("content", None)): return data if n...
PypiClean
/django-statsy-0.2.3.zip/django-statsy-0.2.3/statsy/static/statsy/libs/highcharts/js/highcharts.js
(function(M,a){"object"===typeof module&&module.exports?module.exports=M.document?a(M):a:M.Highcharts=a(M)})("undefined"!==typeof window?window:this,function(M){M=function(){var a=window,D=a.document,z=a.navigator&&a.navigator.userAgent||"",F=D&&D.createElementNS&&!!D.createElementNS("http://www.w3.org/2000/svg","svg")...
PypiClean
/squeue-1.2.tar.gz/squeue-1.2/README.rst
****************************** squeue: A simple SQLite Queue ****************************** squeue is used to create simple queues that can be persisted, then retrieved for work. It's very easy to create a mini workflow engine with this. ============= Main Features ============= * Very compact * Few Dependencies =...
PypiClean
/scikit-bio-0.5.9.tar.gz/scikit-bio-0.5.9/skbio/stats/distance/_permdisp.py
from functools import partial import numpy as np import pandas as pd from scipy.stats import f_oneway from scipy.spatial.distance import cdist import hdmedians as hd from ._base import (_preprocess_input_sng, _run_monte_carlo_stats, _build_results, DistanceMatrix) from skbio.stats.ordination im...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/worker/collector/base_parallel_collector.py
from typing import Any, Union, Tuple from abc import ABC, abstractmethod import sys from ditk import logging import copy from collections import namedtuple from functools import partial from easydict import EasyDict import torch from ding.policy import Policy from ding.envs import BaseEnvManager from ding.utils.autolo...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/v20200401/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ._enums import * __all__ = [ 'ApplicationRuleConditionArgs', 'AzureFirewallApplicationRuleCollectionArgs', 'AzureFirewallApplicationRuleProto...
PypiClean
/ielu-0.3.0.tar.gz/ielu-0.3.0/readme.md
# Interactive Electrode Localization Utility (ielu) This is a GUI utility to assist in preprocessing tasks for electrocorticography (ecog) and stereo eeg (seeg) data analysis. It includes: 1. CT-to-MRI co-registration using Mutual Information (via Freesurfer) 1. Automatic electrode extraction and sorting into grids vi...
PypiClean
/wagtail_plotly-0.0.3.tar.gz/wagtail_plotly-0.0.3/wagtail_plotly/blocks/table.py
from django import forms from django.template.loader import render_to_string from django.utils.functional import cached_property from django.utils.translation import gettext as _ from wagtail.admin.staticfiles import versioned_static from wagtail.contrib.table_block.blocks import ( TableBlock, TableInput, ) fr...
PypiClean
/PqrUpload3-pkg-petronije-0.0.3.tar.gz/PqrUpload3-pkg-petronije-0.0.3/PqrUploadModule/attachments.py
from authorizations import at,at_url,headers_at,encoded_u,encoded_u_td,td_base_url,get_headers import xmltodict import atws import atws.monkeypatch.attributes import pandas as pd import requests from suds.sax.text import Raw from incidents import get_all_non_compl_incidents_from_td from tickets import get_list_of_at_...
PypiClean
/pydata-wrangler-0.2.2.tar.gz/pydata-wrangler-0.2.2/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install datawrangler, run this command in your terminal: .. code-block:: console $ pip install pydata-wrangler This is the preferred method to install datawrangler, as it will always install the most recent stable re...
PypiClean
/pytest-ver-0.0.44.tar.gz/pytest-ver-0.0.44/pytest_ver/lib/iuv/iuv.py
import os import sys import types import pytest from pytest_ver.lib import services from pytest_ver.lib.iuv.iuv_data import IUVData from pytest_ver.lib.iuv.iuv_requirements import IUVRequirements # ------------------- ## Holds content for running an Intended Usa Verification Report class IUV: # ----------------...
PypiClean
/z3c.securitytool-0.5.1.tar.gz/z3c.securitytool-0.5.1/src/z3c/securitytool/README.txt
====================== Detailed Documentation ====================== On the main page of the securityTool you will be able to select the desired skin from all the available skins on the system. On initial load of the securitytool you will only see permissions for IBrowserRequest and your current context. The interest...
PypiClean
/ftw.events-1.16.0.tar.gz/ftw.events-1.16.0/ftw/events/browser/eventlistingblock.py
from Acquisition._Acquisition import aq_inner, aq_parent from Products.CMFCore.utils import getToolByName from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from ftw.events import _ from ftw.events import utils from ftw.events.contents.eventlistingblock import IEventListingBlockSchema from ftw.even...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/kind-of/index.js
var toString = Object.prototype.toString; module.exports = function kindOf(val) { if (val === void 0) return 'undefined'; if (val === null) return 'null'; var type = typeof val; if (type === 'boolean') return 'boolean'; if (type === 'string') return 'string'; if (type === 'number') return 'number'; if (...
PypiClean
/image_pyqt-0.0.2-py3-none-any.whl/imagepyqt/myQt.py
import os, sys, re, time import types import numpy as np import struct # ?? # 定义待导出的模块 #__all__ = ["qtlib","QT_LIB","PYQT5","PYSIDE2","isQObjectAlive","QtCore","QtGui","QtWidgets","QtSvg","MatToQImage","QImageToMat","mkARGB","mkQImage","mkQApp","runQApp"] PYSIDE2 = 'PySide2' PYQT5 = 'PyQt5' qtlib = None QT_LIB = os...
PypiClean
/plib3.gui-0.10.6.tar.gz/plib3.gui-0.10.6/plib/gui/_widgets/table.py
from plib.gui.defs import * from plib.gui._widgets import _helpers from plib.gui._widgets import _signal scrollbarsize = 20 gridlinesize = 2 class PTableRow(_helpers._PRowHelperItem): """Table row helper class. Looks like a list of strings (the values in the cells in this row). """ def ...
PypiClean
/paradox-alarm-interface-3.2.1.tar.gz/paradox-alarm-interface-3.2.1/paradox/interfaces/mqtt/basic.py
import asyncio import binascii import hashlib import json import logging import os import typing from collections import namedtuple from paho.mqtt.client import Client, MQTTMessage from paradox.config import config as cfg from paradox.event import Change, Event, EventLevel, Notification from paradox.lib import ps fro...
PypiClean
/mkdocs-inspired-1.0.1.tar.gz/mkdocs-inspired-1.0.1/mkdocs_inspired/bower_components/jquery/src/offset.js
define( [ "./core", "./core/access", "./var/document", "./var/documentElement", "./css/var/rnumnonpx", "./css/curCSS", "./css/addGetHookIf", "./css/support", "./core/init", "./css", "./selector" // contains ], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) { ...
PypiClean
/blackdynamite-1.0.5-py3-none-any.whl/BlackDynamite/coating/slurmCoat.py
from __future__ import print_function from BlackDynamite import * import os import stat import subprocess import re import socket admissible_params = {"walltime": str, "email": str, "nodes": int, "module": [str], "cpus-per-task": int...
PypiClean
/django_outbox_menu-1.1.29-py3-none-any.whl/menu/static/vendor/bootstrap/js/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.') } (function ($) { var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2]...
PypiClean
/bluesky_adaptive-0.3.1-py3-none-any.whl/bluesky_adaptive/on_stop.py
from queue import Queue import event_model from bluesky_live.bluesky_run import BlueskyRun, DocumentCache from bluesky_widgets.models.utils import call_or_eval from ophyd.sim import NumpySeqHandler from .recommendations import NoRecommendation def stream_documents_into_runs(add_run): """ Convert a flat stre...
PypiClean
/empirical_copula-1.0-py3-none-any.whl/empirical_copula/plot.py
from matplotlib.colors import ListedColormap import numpy as np def _create_copula_axes(fig, pmf1, pmf2, grid_lw, annotation_fontsize=15): """ Function to create the axes for the copula plot. Parameters ---------- fig : Figure Matplotlib Figure object to plot on. pmf1 : Series The...
PypiClean
/dsin100days603v38-6.0.3.tar.gz/dsin100days603v38-6.0.3/notebook/static/components/MathJax/extensions/MathML/content-mathml.js
MathJax.Extension["MathML/content-mathml"]=(function(d){var c=d.Browser.isMSIE;if(c){try{document.namespaces.add("m","http://www.w3.org/1998/Math/MathML")}catch(e){}}var b=d.CombineConfig("MathML.content-mathml",{collapsePlusMinus:true,cistyles:{vector:"bold-italic",matrix:"bold-upright"},symbols:{gamma:"\u03B3"}});var...
PypiClean
/water_drop_detection-0.9.tar.gz/water_drop_detection-0.9/water_drop_detection/ui/GUI.py
import cv2 import sys import os from os.path import dirname, join, abspath sys.path.insert(0, abspath(join(dirname(__file__), '..'))) from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5 import QtWidgets, QtGui, QtCore from PyQt5.QtCore import QCoreApplication from PyQt5.QtGui import QPixmap, QImage from ...
PypiClean
/sparse-ir-1.0.0.tar.gz/sparse-ir-1.0.0/src/sparse_ir/abstract.py
class AbstractBasis: r"""Abstract base class for bases on the imaginary-time axis. This class stores a set of basis functions. We can then expand a two-point propagator `G(τ)`, where `τ` is imaginary time: .. math:: G(\tau) \approx \sum_{l=0}^{L-1} g_l U_l(\tau) where `U` is now the `l`-th ...
PypiClean
/mne-bids-0.13.tar.gz/mne-bids-0.13/mne_bids/utils.py
# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Teon Brooks <teon.brooks@gmail.com> # Chris Holdgraf <choldgraf@berkeley.edu> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # Matt Sanderson <matt.san...
PypiClean
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/database/get_external_database_connector.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 __all__ = [ 'GetExternalDatabaseConnectorResult', 'AwaitableGetExternalDatabaseConnectorResult', 'get_external_database_conne...
PypiClean
/django-notification-1.3.3.tar.gz/django-notification-1.3.3/docs/usage.rst
.. _usage: Usage ===== Integrating notification support into your app is a simple three-step process. * create your notice types * create your notice templates * send notifications Creating Notice Types --------------------- You need to call ``create_notice_type(label, display, description)`` once to create ...
PypiClean
/magepy-0.2.2.tar.gz/magepy-0.2.2/mage/api_resources/assessment_run.py
import json from .abstract import * from .. import schema class AssessmentRun(ListableAPIResource, MutableAPIResource, FilterableAPIResource): """ The execution of an assessment at a specific point in time. Attributes: asm_graph (mage.schema.AWSJSON): A signed URL to the D3 network graph for ATTAC...
PypiClean
/bayesflare-1.0.4.tar.gz/bayesflare-1.0.4/bayesflare/finder/find.py
from ..misc import mkdir from ..noise import estimate_noise_ps, estimate_noise_tv from ..models import * from ..stats import * from math import log import pyfits import numpy as np from copy import copy, deepcopy def contiguous_regions(condition): """ Find contiguous regions for the condition e.g. arra...
PypiClean
/aos-sw-api-0.1.1.tar.gz/AOS-SW-API-0.1.1/aos_sw_api/port/_port.py
from typing import Union import httpx from aos_sw_api._validate import validate_200 from aos_sw_api.enums import PortConfigModeEnum, LacpStatusEnum from ._model import PortElementList, PortElement, PortStatisticsList, PortStatistics class Port: def __new__(cls, session: Union[httpx.Client, httpx.AsyncClient], ...
PypiClean
/django_unicorn_gbusby-0.50.3-py3-none-any.whl/django_unicorn/static/unicorn/js/unicorn.js
import { Component } from "./component.js"; import { isEmpty, hasValue } from "./utils.js"; import { components, lifecycleEvents } from "./store.js"; let messageUrl = ""; let reloadScriptElements = false; let csrfTokenHeaderName = "X-CSRFToken"; /** * Initializes the Unicorn object. */ export function init(_message...
PypiClean
/loggz-0.1.1.tar.gz/loggz-0.1.1/README.md
# python-loggz A helper to implement simple but standard and jsonified strategies for logging. ## Table of Contents * [Synopsis](#synopsis) * [Usage](#usage) * [Installation](#installation) * [Build](#build) * [Tests](#tests) * [Compatibility](#compatibility) * [Issues](#issues) * [Contributing](#contributing) * [Cr...
PypiClean
/django_cfdi-2.134-py3-none-any.whl/cfdi/static/cfdi/codemirror/mode/groovy/groovy.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 s...
PypiClean
/open_aea_cosmpy-0.6.5.tar.gz/open_aea_cosmpy-0.6.5/cosmpy/protos/cosmos/vesting/v1beta1/tx_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from cosmos.vesting.v1beta1 import tx_pb2 as cosmos_dot_vesting_dot_v1beta1_dot_tx__pb2 class MsgStub(object): """Msg defines the bank Msg service. """ def __init__(self, channel): """Constructor. Ar...
PypiClean
/pacifica-metadata-0.13.0.tar.gz/pacifica-metadata-0.13.0/pacifica/metadata/rest/instrument_queries/instrument_term_search.py
"""CherryPy Status Metadata object class.""" import re import cherrypy from cherrypy import tools from peewee import OP, Expression, fn from pacifica.metadata.orm import Instruments from pacifica.metadata.rest.instrument_queries.query_base import QueryBase class InstrumentTermSearch(QueryBase): """InstrumentTermS...
PypiClean
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.km.js
(function() { var dfs = {"am_pm":["ព្រឹក","ល្ងាច"],"day_name":["1","2","3","4","5","6","7"],"day_short":["អា","ច","អ","ពុ","ព្រ","សុ","ស"],"era":["មុន\u200Bគ.ស.","គ.ស."],"era_name":["មុន\u200Bគ្រិស្តសករាជ","គ្រិស្តសករាជ"],"month_name":["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្...
PypiClean