id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/direct-sdk-python3-1.10.0.zip/direct-sdk-python3-1.10.0/ingenico/direct/sdk/domain/payment_product_display_hints.py | from ingenico.direct.sdk.data_object import DataObject
class PaymentProductDisplayHints(DataObject):
"""
| Object containing display hints like the order of the product when shown in a list, the name of the product and the logo
"""
__display_order = None
__label = None
__logo = None
@pro... | PypiClean |
/types-linq-1.2.1.tar.gz/types-linq-1.2.1/types_linq/more/more_enumerable.py | from __future__ import annotations
from typing import Any, Callable, Deque, Iterable, Iterator, List, Optional, TYPE_CHECKING, Tuple
if TYPE_CHECKING:
from .extrema_enumerable import ExtremaEnumerable
from .more_enums import RankMethods
from .more_error import DirectedGraphNotAcyclicError
from ..enumerable impor... | PypiClean |
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/hire/v1/model/combined_job_result.py |
from typing import *
from lark_oapi.core.construct import init
from .combined_job_result_default_job_post import CombinedJobResultDefaultJobPost
from .job import Job
from .job_manager import JobManager
from .registration_schema_info import RegistrationSchemaInfo
from .target_major_info import TargetMajorInfo
class ... | PypiClean |
/hetdex_api-0.8.7.tar.gz/hetdex_api-0.8.7/hetdex_api/flux_limits/flim_models.py | from glob import glob
from os.path import join
from scipy.interpolate import (interp1d, interp2d, splrep, griddata, RectBivariateSpline,
NearestNDInterpolator)
from numpy import (polyval, mean, median, loadtxt, meshgrid, savetxt,
array, linspace, tile, ones, array, arg... | PypiClean |
/pyobjc_framework_CoreServices-9.2-cp36-abi3-macosx_10_9_universal2.whl/CoreServices/CarbonCore/_metadata.py |
import objc, sys
from typing import NewType
if sys.maxsize > 2**32:
def sel32or64(a, b):
return b
else:
def sel32or64(a, b):
return a
if objc.arch == "arm64":
def selAorI(a, b):
return a
else:
def selAorI(a, b):
return b
misc = {}
misc.update(
{
"S... | PypiClean |
/retvec-1.0.0.tar.gz/retvec-1.0.0/README.md | # RETVec: Resilient & Efficient Text Vectorizer
## Overview
RETVec is a next-gen text vectorizer designed to offer built-in adversarial resilience using robust word embeddings. Read the paper here: https://arxiv.org/abs/2302.09207.
RETVec is trained to be resilient against character manipulations including insertion... | PypiClean |
/janis-pipelines.core-0.13.1.tar.gz/janis-pipelines.core-0.13.1/janis_core/translations/nextflow/casefmt/casefmt.py | from . import patterns
from . import mapping
import regex as re
# module entry
def to_case(text: str, case: str='snake') -> str:
"""
casts text to specific case format.
format is either:\n
- camel (camelCase)\n
- pascal (PascalCase)\n
- snake (snake_case)\n
- snake_caps (SNAKE_CAPS)
... | PypiClean |
/etta-0.1.1.tar.gz/etta-0.1.1/README.md | # etta: programmatic access to ExoFOP-TESS data
`etta` is a Python package which allows you to access data from the [Exoplanet Follow-up Observing Program for TESS (ExoFOP-TESS)](https://exofop.ipac.caltech.edu/tess/). The package consists of a series of lightweight wrappers around the [PHP functions](https://exofop.i... | PypiClean |
/carica_cfn_tools-1.24.tar.gz/carica_cfn_tools-1.24/carica_cfn_tools/stack_config.py | import copy
import datetime
import os
import random
import re
import shutil
import string
import subprocess
import tempfile
from collections import OrderedDict
from enum import Enum
from pathlib import Path
import boto3
import botocore.exceptions
import sys
import yaml
from jinja2 import Environment, FileSystemLoader
... | PypiClean |
/odoo12_addon_l10n_nl_tax_invoice_basis-12.0.1.0.0-py3-none-any.whl/odoo/addons/l10n_nl_tax_invoice_basis/readme/DESCRIPTION.rst | In the Netherlands, two types of accounting systems are allowed:
* Kasstelsel
* Factuurstelsel
By installing this module, you have the option to adopt the *Factuurstelsel* system for your Company in Odoo.
It means that, when validating an invoice, the system uses the invoice date instead of accounting date to determi... | PypiClean |
/qiskit_dynamics-0.4.2-py3-none-any.whl/qiskit_dynamics/solvers/lanczos.py | from typing import Union, Optional
import numpy as np
from scipy.sparse import csr_matrix
from qiskit_dynamics.dispatch import requires_backend
from qiskit_dynamics.array import Array
try:
import jax.numpy as jnp
from jax.lax import scan, cond
except ImportError:
pass
def lanczos_basis(A: Union[csr_matr... | PypiClean |
/qontract_reconcile-0.10.1rc284-py3-none-any.whl/reconcile/gql_definitions/advanced_upgrade_service/aus_organization.py | from collections.abc import Callable # noqa: F401 # pylint: disable=W0611
from datetime import datetime # noqa: F401 # pylint: disable=W0611
from enum import Enum # noqa: F401 # pylint: disable=W0611
from typing import ( # noqa: F401 # pylint: disable=W0611
Any,
Optional,
Union,
)
from pydantic import ... | PypiClean |
/treasury_prime_client-1.13.548.tar.gz/treasury_prime_client-1.13.548/treasury_prime_client/model/get_all_wires200_response.py | import re # noqa: F401
import sys # noqa: F401
from treasury_prime_client.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_ty... | PypiClean |
/numba-0.56.2.tar.gz/numba-0.56.2/docs/source/cuda/intrinsics.rst |
Supported Atomic Operations
===========================
Numba provides access to some of the atomic operations supported in CUDA. Those
that are presently implemented are as follows:
.. automodule:: numba.cuda
:members: atomic
:noindex:
Example
'''''''
The following code demonstrates the use of :class:`num... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/bower/lib/node_modules/inquirer/node_modules/lodash/internal/baseIsEqualDeep.js | var equalArrays = require('./equalArrays'),
equalByTag = require('./equalByTag'),
equalObjects = require('./equalObjects'),
isArray = require('../lang/isArray'),
isTypedArray = require('../lang/isTypedArray');
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag ... | PypiClean |
/vioneta_agro_frontend-20230809.1-py3-none-any.whl/hass_frontend/frontend_latest/97464-rZLFtjU4YOo.js | export const id=97464;export const ids=[97464];export const modules={54040:(t,e,i)=>{var r=i(43204),a=i(79932),o=i(58417),n=i(39274);let s=class extends o.A{};s.styles=[n.W],s=(0,r.__decorate)([(0,a.Mo)("mwc-checkbox")],s)},8485:(t,e,i)=>{i.d(e,{a:()=>m});var r=i(43204),a=i(72774),o={ROOT:"mdc-form-field"},n={LABEL_SEL... | PypiClean |
/ilrt.contentmigrator-1.14.tar.gz/ilrt.contentmigrator-1.14/ilrt/contentmigrator/exportimport/content.py | import os
from csv import reader
from csv import writer
from ConfigParser import ConfigParser
from StringIO import StringIO
from types import StringType
from zope.interface import implements
from Products.GenericSetup.interfaces import IFilesystemExporter
from Products.GenericSetup.interfaces import IFilesystemImport... | PypiClean |
/vformer-0.1.3.tar.gz/vformer-0.1.3/README.md | <h1 align="center">VFormer</h1>
<h3 align="center">A modular PyTorch library for vision transformers models</h3>
<div align='center'>
[](https://github.com/SforAiDl/vformer/actions/workflows/package-test.yml)
[ Modules
========================
A virtual module is any module which is not built by MBS directly, but instead its metadata is
imported to the MBS database. A virtual module is defined using a modulemd file with extra data
in the ``xmd`` section. These are usually base modules such as ``platform``.
... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/moment/src/locale/bn-bd.js |
import moment from '../moment';
var symbolMap = {
1: '১',
2: '২',
3: '৩',
4: '৪',
5: '৫',
6: '৬',
7: '৭',
8: '৮',
9: '৯',
0: '০',
},
numberMap = {
'১': '1',
'২': '2',
'৩': '3',
'৪': '4',
'৫'... | PypiClean |
/youtube_dl2-2.0.tar.gz/youtube_dl2-2.0/youtube_dl/extractor/camtube.py | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
int_or_none,
unified_timestamp,
)
class CamTubeIE(InfoExtractor):
_VALID_URL = r'https?://(?:(?:www|api)\.)?camtube\.co/recordings?/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'https://camtube.co/recordin... | PypiClean |
/aws_cdk.aws_eks_legacy-1.204.0-py3-none-any.whl/aws_cdk/aws_eks_legacy/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from ._jsii import *
import aws_cdk.aws_autoscaling as _aws_cdk_aws_autoscaling_92cc07a7
import aws_cdk.aws_ec2 as _aws_cdk_aws_ec2_67de8e8d
import aws_cdk.aw... | PypiClean |
/colbert-ir-0.2.2.tar.gz/colbert-ir-0.2.2/colbert/infra/config/base_config.py | import os
import torch
import ujson
import dataclasses
from typing import Any
from collections import defaultdict
from dataclasses import dataclass, fields
from colbert.utils.utils import timestamp, torch_load_dnn
from utility.utils.save_metadata import get_metadata_only
from .core_config import *
@dataclass
class ... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/networkservices/v1/edge_cache_origin_iam_policy.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 ._enums import *
from ._inputs import *
__all__ = ['EdgeCacheOriginIamPolicyArgs', 'EdgeCacheOriginIamPolicy']
@pulumi.input_type
... | PypiClean |
/jk_json-0.2023.2.6.tar.gz/jk_json-0.2023.2.6/jk_jsonschema/schema_validator.py | import re
from typing import List, Union
import jk_logging
from jk_testing import Assert
from jk_json.tools import *
from ._SchemaAST import _SchemaAST
# ================================================================================================================================
# =============================... | PypiClean |
/monk_cuda92-0.0.1-py3-none-any.whl/monk/gluon/finetune/level_9_transforms_main.py | from monk.gluon.finetune.imports import *
from monk.system.imports import *
from monk.gluon.finetune.level_8_layers_main import prototype_layers
class prototype_transforms(prototype_layers):
'''
Main class for all transforms in expert mode
Args:
verbose (int): Set verbosity levels
... | PypiClean |
/calamari_ocr-2.2.2-py3-none-any.whl/calamari_ocr/ocr/predict/predictor.py | from typing import List
from tensorflow import keras
from tfaip.data.pipeline.processor.params import SequentialProcessorPipelineParams
from tfaip.device.device_config import DeviceConfig
import tfaip.imports as tfaip_cls
from tfaip.predict.multimodelpredictor import MultiModelVoter
from calamari_ocr.ocr.predict.par... | PypiClean |
/cdl-idk-0.3.4.tar.gz/cdl-idk-0.3.4/idk/templates/_gen_template.py | from idk.insight import InsightGenerator
from idk.io import InsightData
import plotly.graph_objects as go
import pandas as pd
from typing import Union
class _DeveloperInsight_(InsightGenerator):
def __init__(self, context: dict = None, *args, **kwargs):
"""
Args:
context (dict, optio... | PypiClean |
/gawseed_tcorex-1.1-py3-none-any.whl/tcorex/experiments/fmri_utils.py | from __future__ import absolute_import
import nibabel as nib
import numpy as np
def compute_variance_of_cluster(clusters, cluster_index, coords):
filtered = coords[clusters == cluster_index]
return ((filtered - filtered.mean(axis=0)) ** 2).sum(axis=1).mean(axis=0)
def plot_least_varying(plt, clusters, coor... | PypiClean |
/fds.sdk.CapitalStructureReportBuilder-1.0.6-py3-none-any.whl/fds/sdk/CapitalStructureReportBuilder/model/value_type.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.CapitalStructureReportBuilder.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_t... | PypiClean |
/youtube_dlc-2020.11.11.post3.tar.gz/youtube_dlc-2020.11.11.post3/youtube_dlc/extractor/aenetworks.py | from __future__ import unicode_literals
import re
from .theplatform import ThePlatformIE
from ..utils import (
extract_attributes,
ExtractorError,
int_or_none,
smuggle_url,
update_url_query,
)
from ..compat import (
compat_urlparse,
)
class AENetworksBaseIE(ThePlatformIE):
_THEPLATFORM_K... | PypiClean |
/py_git-0.1.tar.gz/py_git-0.1/README.md | 
# py_git
## Python Git-like VC Tool For Pythonic Git Actions.
### Essentially: Pythonically Git
- PyGit is a python package / module that helps developers get the best out of Git, quickly and effeciently.
- With its simple ... | PypiClean |
/nfcpy-1.0.4-py3-none-any.whl/nfc/tag/tt3_sony.py | import nfc.tag
from . import tt3
import os
import struct
from binascii import hexlify
from pyDes import triple_des, CBC
from struct import pack, unpack
import itertools
import logging
log = logging.getLogger(__name__)
def activate(clf, target):
# http://www.sony.net/Products/felica/business/tech-support/list.ht... | PypiClean |
/convo_n2-2.0.0.tar.gz/convo_n2-2.0.0/convo/core/utils.py | import argparse
import json
import logging
import os
import re
import sys
from asyncio import Future
from decimal import Decimal
from hashlib import md5, sha1
from pathlib import Path
from typing import (
Any,
Callable,
Dict,
Generator,
List,
Optional,
Set,
Text,
Tuple,
Union,
)
... | PypiClean |
/CAL-1.4.5.tar.gz/CAL-1.4.5/_DTW_.py |
from _CAL import CAL
from _TFL import TFL
from _TFL.pyk import pyk
from _TFL._Meta.totally_ordered import totally_ordered
import _TFL._Meta.Object
import _TFL._Meta.Property
import _TFL.Accessor
import datetime
import time
class _DTW_Meta_ (TFL.... | PypiClean |
/napari-yolov5-0.2.14.tar.gz/napari-yolov5-0.2.14/src/napari_yolov5/utils/flask_rest_api/README.md | # Flask REST API
[REST](https://en.wikipedia.org/wiki/Representational_state_transfer) [API](https://en.wikipedia.org/wiki/API)s are
commonly used to expose Machine Learning (ML) models to other services. This folder contains an example REST API
created using Flask to expose the YOLOv5s model from [PyTorch Hub](https... | PypiClean |
/pythondata_cpu_ibex-0.0.post2452-py3-none-any.whl/pythondata_cpu_ibex/system_verilog/vendor/lowrisc_ip/util/dvsim/Testplan.py | r"""Testpoint and Testplan classes for maintaining the testplan
"""
import os
import re
import sys
from collections import defaultdict
from pathlib import Path
import hjson
import mistletoe
from tabulate import tabulate
class Result:
'''The results for a single test'''
def __init__(self, name, passing=0, t... | PypiClean |
/tabular_trees-0.2.0.tar.gz/tabular_trees-0.2.0/src/tabular_trees/xgboost.py |
import json
import tempfile
import warnings
from abc import ABC, abstractmethod
from dataclasses import dataclass
from pathlib import Path
from typing import Optional, Union
import numpy as np
import pandas as pd
import xgboost as xgb
from . import checks
from .trees import BaseModelTabularTrees, TabularTrees, expor... | PypiClean |
/python-flickr-mirroring-1.0.0.tar.gz/python-flickr-mirroring-1.0.0/flickr/constants.py |
from enum import Enum
from enum import auto
import logging
from uuid import UUID
from hashlib import md5
from urllib3 import Retry
from requests.adapters import HTTPAdapter
class CachingStrategy(Enum):
"""Represents the current use caching strategy"""
LIFO = auto()
FIFO = auto()
CONFIG_HTTP_REQUEST_R... | PypiClean |
/django-theme-pixel-1.0.3.tar.gz/django-theme-pixel-1.0.3/theme_pixel/static/vendor/smooth-scroll/dist/smooth-scroll.min.js | !(function(e,t){"function"==typeof define&&define.amd?define([],(function(){return t(e)})):"object"==typeof exports?module.exports=t(e):e.SmoothScroll=t(e)})("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,(function(C){"use strict";var w={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash... | PypiClean |
/immobilus-1.4.4.tar.gz/immobilus-1.4.4/README.md | # immobilus
[](https://pypi.python.org/pypi/immobilus)
[](https://travis-ci.org/pokidovea/immobilus)
[
class FusionGptAttentionPastBase(Fusion):
"""Base class for GPT Atte... | PypiClean |
/django-ping-0.2.0.tar.gz/django-ping-0.2.0/ping/checks.py | from django.conf import settings
from django.utils.importlib import import_module
from django.core.exceptions import ImproperlyConfigured
from ping.defaults import *
def checks(request):
"""
Iterates through a tuple of systems checks,
then returns a key name for the check and the value
for that check.... | PypiClean |
/custom_obj_detector-1.tar.gz/custom_obj_detector-1/object_detection/colab_tutorials/eager_few_shot_od_training_tflite.ipynb | # Introduction
Welcome to the **Few Shot Object Detection for TensorFlow Lite** Colab. Here, we demonstrate fine tuning of a SSD architecture (pre-trained on COCO) on very few examples of a *novel* class. We will then generate a (downloadable) TensorFlow Lite model for on-device inference.
**NOTE:** This Colab is mea... | PypiClean |
/pvapy-5.3.0-cp310-cp310-macosx_10_15_x86_64.whl/pvaccess/doc/html/_static/js/html5shiv-printshiv.min.js | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&... | PypiClean |
/tensorflow-caney-0.2.5.tar.gz/tensorflow-caney-0.2.5/tensorflow_caney/utils/data.py | import json
import os
import time
import random
import logging
from glob import glob
from typing import List
from pathlib import Path
import numpy as np
import xarray as xr
import pandas as pd
import rioxarray as rxr
import tensorflow as tf
from numba import jit
try:
import cupy as cp
HAS_GPU = True
except Im... | PypiClean |
/dogtag-pki-11.2.1.tar.gz/dogtag-pki-11.2.1/pki/client.py |
from __future__ import absolute_import
from __future__ import print_function
import functools
import inspect
import logging
import os
import ssl
import warnings
import requests
from requests import adapters
from requests.adapters import DEFAULT_POOLBLOCK, DEFAULT_POOLSIZE, DEFAULT_RETRIES
try:
from requests.pack... | PypiClean |
/pyx-framework-0.2.0.tar.gz/pyx-framework-0.2.0/pyx/apps/app_fastapi.py | import uvicorn
from os import path
from pathlib import Path
from typing import Optional
from json import loads
from fastapi import FastAPI, Request, Response
from fastapi.staticfiles import StaticFiles
from fastapi.responses import JSONResponse, HTMLResponse
from pyx.utils import classproperty
from pyx.utils.id impo... | PypiClean |
/mpipe-1.0.8.tar.gz/mpipe-1.0.8/README.rst | .. image:: http://vmlaker.github.io/mpipe/_static/logo.png
:alt: MPipe Logo
:align: right
:target: http://vmlaker.github.io/mpipe
.. image:: https://travis-ci.org/vmlaker/mpipe.png?branch=master
:alt: Build Result Image
:target: https://travis-ci.org/vmlaker/mpipe
A tiny Python module that lets you
easily ... | PypiClean |
/textpipe-pattern-3.6.1.tar.gz/textpipe-pattern-3.6.1/pattern/web/locale/__init__.py |
from __future__ import unicode_literals
from builtins import str, bytes, dict, int
from builtins import map, zip, filter
from builtins import object, range
#### LANGUAGE & REGION #############################################################################
# IETF BCP 47 language-region code => (language, region, ISO... | PypiClean |
/frontrunner_python_sdk-0.0.8-py3-none-any.whl/frontrunner_python_sdk/paths/integration_settings_facebook_id_/put.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from frontrunner_python_sdk import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
impor... | PypiClean |
/quickpanda_aidroid-0.0.1-py3-none-any.whl/ploting.py | import os.path
import warnings
import numpy as np
import tqdm
import seaborn as sns
from quickpanda.src.utils import random_choice
from matplotlib import pyplot as plt
from quickpanda.src.hyper import COLORS,LINESTYLES,MARKERS
from quickpanda.src.utils import contain
default_arg={
'count':0,
'max_num':9999,... | PypiClean |
/scikit-fusion-0.2.1.tar.gz/scikit-fusion-0.2.1/skfusion/fusion/decomposition/dfmc.py | from itertools import product
from collections import defaultdict
import numpy as np
from joblib import Parallel, delayed
from ..base import FusionFit
from ._dfmc import dfmc
__all__ = ['Dfmc']
def parallel_dfmc_wrapper(**params):
return dfmc(**params)
class Dfmc(FusionFit):
"""Data fusion by matrix com... | PypiClean |
/llama-cli-1.0.18.tar.gz/llama-cli-1.0.18/llama/Filters.py | import re
from .operations import person_has_columns_value
from .common import count, read_json, write_json
class Filters:
# PERSONS:
# Select INCLUSION
# THEN Store each Pseudo-User and whether all selected columns MATCH with value
# INCLUSIONS:
# Select MATCHING sources OR all
# From THOSE Sel... | PypiClean |
/dcg_probability-1.2.1.tar.gz/dcg_probability-1.2.1/dcg_probability/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/a3cosmos_gas_evolution-1.1.1-py3-none-any.whl/a3cosmos_gas_evolution/Common_Python_Code/read_z_Mstar_SFR_Mgas_datasets.py |
from __future__ import print_function
import os, sys, re, copy, json, time, datetime, shutil, astropy
import numpy as np
from astropy.table import Table, Column, MaskedColumn, hstack
import pandas as pd
if not (os.path.dirname(os.path.abspath(__file__)) in sys.path): sys.path.append(os.path.dirname(os.path.abspath(_... | PypiClean |
/dp-celery-5.0.5.tar.gz/dp-celery-5.0.5/docs/history/changelog-2.2.rst | .. _changelog-2.2:
===============================
Change history for Celery 2.2
===============================
.. contents::
:local:
.. _version-2.2.8:
2.2.8
=====
:release-date: 2011-11-25 04:00 p.m. GMT
:release-by: Ask Solem
.. _v228-security-fixes:
Security Fixes
--------------
* [Security: `CELERYSA-... | PypiClean |
/nubopy-1.0.4.tar.gz/nubopy-1.0.4/nubo/models/gaussian_process.py | from torch import Tensor
from gpytorch.distributions import MultivariateNormal
from gpytorch.means import ConstantMean
from gpytorch.models import ExactGP
from gpytorch.kernels import MaternKernel, ScaleKernel
from gpytorch.likelihoods import Likelihood
class GaussianProcess(ExactGP):
r"""
Gaussian process mo... | PypiClean |
/django-on-heroku-1.1.2.tar.gz/django-on-heroku-1.1.2/README.rst | django-on-heroku (Python Library)
=================================
This has been forked from `django-heroku <https://github.com/heroku/django-heroku>`_ because it was abandoned and then renamed to **django-on-heroku** because old project has been archived.
Current updates:
- renamed package from ``django-heroku`` t... | PypiClean |
/CoLT5-attention-0.10.15.tar.gz/CoLT5-attention-0.10.15/colt5_attention/attend.py | from collections import namedtuple
from functools import wraps
from packaging import version
import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange
# constants
Config = namedtuple('EfficientAttentionConfig', ['enable_flash', 'enable_math', 'enable_mem_efficient'])
# ... | PypiClean |
/wpkit2-0.0.4.1.tar.gz/wpkit2-0.0.4.1/wk/data/static/pkgs/editor.md/codemirror/mode/stex/stex.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 ... | PypiClean |
/fake-blender-api-2.79-0.1.tar.gz/fake-blender-api-2.79-0.1/freestyle/chainingiterators.py | import sys
import typing
import freestyle
class ChainPredicateIterator:
'''A “generic” user-controlled ViewEdge iterator. This iterator is in particular built from a unary predicate and a binary predicate. First, the unary predicate is evaluated for all potential next ViewEdges in order to only keep the ones resp... | PypiClean |
/ghini.desktop-3.1.7.zip/ghini.desktop-3.1.7/bauble/plugins/plants/species.py |
from gi.repository import Gtk
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
import os
import traceback
from sqlalchemy.orm.session import object_session
import bauble
import bauble.paths as paths
import bauble.db as db
import bauble.pluginmgr as pluginmgr
from bauble.prefs im... | PypiClean |
/bronzebeard-0.1.11.tar.gz/bronzebeard-0.1.11/docs/assembly_language.rst | Assembly Language
=================
RISC-V assembly programs are written as plain text files.
The file extension is mostly arbitrary but :code:`.asm` and :code:`.S` are quite common.
An assembly program is a linear sequence of "items".
Items can be many things: labels, instructions, literal bytes and strings, etc.
The... | PypiClean |
/pandas_cub-0.0.7.tar.gz/pandas_cub-0.0.7/README.md |
# How to use pandas_cub
The README.ipynb notebook will serve as the documentation and usage guide to pandas_cub.
## Installation
`pip install pandas-cub`
## What is pandas_cub?
pandas_cub is a simple data analysis library that emulates the functionality of the pandas library. The library is not meant for serious w... | PypiClean |
/gsutil-5.25.tar.gz/gsutil-5.25/gslib/vendored/boto/boto/redshift/exceptions.py | from boto.exception import JSONResponseError
class ClusterNotFoundFault(JSONResponseError):
pass
class InvalidClusterSnapshotStateFault(JSONResponseError):
pass
class ClusterSnapshotNotFoundFault(JSONResponseError):
pass
class ClusterSecurityGroupQuotaExceededFault(JSONResponseError):
pass
cla... | PypiClean |
/onlinepayments-sdk-python2-4.14.0.zip/onlinepayments-sdk-python2-4.14.0/onlinepayments/sdk/domain/surcharge.py | from onlinepayments.sdk.data_object import DataObject
from onlinepayments.sdk.domain.amount_of_money import AmountOfMoney
from onlinepayments.sdk.domain.surcharge_rate import SurchargeRate
class Surcharge(DataObject):
__net_amount = None
__payment_product_id = None
__result = None
__surcharge_amount =... | PypiClean |
/django-jquery-tablesorter-2.12.0.tar.gz/django-jquery-tablesorter-2.12.0/jquery_tablesorter/static/js/tablesorter/parsers/parser-input-select.js | ;(function($){
"use strict";
var resort = true, // resort table after update
updateServer = function(event, $table, $input){
// do something here to update your server, if needed
// event = change event object
// $table = jQuery object of the table that was just updated
// $input = jQuery object of the ... | PypiClean |
/Forecast_Checker-0.1.tar.gz/Forecast_Checker-0.1/README.md | # Forecast Performance Analysis
## Intro
These notebooks make use of a python package built to
interpret the performance of a timeseries forecaster.
Typically, when forecasting a timeseries, we want to understand the performance of
the 1, 5, 10, 20-step forecasting performance. We expect forecasting performance
t... | PypiClean |
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/logging/logging_util.py | import contextlib
import logging
import octobot_commons.constants as constants
import octobot_commons.timestamp_util as timestamp_util
LOG_DATABASE = "log_db"
LOG_NEW_ERRORS_COUNT = "log_new_errors_count"
BACKTESTING_NEW_ERRORS_COUNT: str = "log_backtesting_errors_count"
logs_database = {
LOG_DATABASE: [],
... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/moment/locale/fr-ch.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/candig_schemas-1.1.0.tar.gz/candig_schemas-1.1.0/python/candig/schemas/candig/rna_quantification_service_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
from google.p... | PypiClean |
/pwt.recipe.closurebuilder-0.9.8.tar.gz/pwt.recipe.closurebuilder-0.9.8/src/pwt/recipe/closurebuilder/build/depstree.py | class DepsTree(object):
"""Represents the set of dependencies between source files."""
def __init__(self, sources):
"""Initializes the tree with a set of sources.
Args:
sources: A set of JavaScript sources.
Raises:
MultipleProvideError: A namespace is provided by muplitple sources.
... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_bs-cyrl-ba.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 |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/device_sun_light_trigger/__init__.py | from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.light import (
ATTR_PROFILE,
ATTR_TRANSITION,
DOMAIN as DOMAIN_LIGHT,
)
from homeassistant.const import (
ATTR_ENTITY_ID,
EVENT_HOMEASSISTANT_START,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
S... | PypiClean |
/displaylang_sympy-0.10.4-py3-none-any.whl/sympy/polys/domains/old_polynomialring.py | from sympy.polys.agca.modules import FreeModulePolyRing
from sympy.polys.domains.characteristiczero import CharacteristicZero
from sympy.polys.domains.compositedomain import CompositeDomain
from sympy.polys.domains.old_fractionfield import FractionField
from sympy.polys.domains.ring import Ring
from sympy.polys.orderin... | PypiClean |
/qontract_reconcile-0.10.1rc284-py3-none-any.whl/reconcile/utils/slack_api.py | from __future__ import annotations
import json
import logging
from collections.abc import (
Iterable,
Mapping,
Sequence,
)
from typing import (
Any,
Optional,
Protocol,
Union,
)
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
from slack_sdk.http_retry import (
... | PypiClean |
/c65ryu-5.0.0.tar.gz/c65ryu-5.0.0/ryu/ofproto/ofproto_v1_2_parser.py | import struct
import base64
import six
from ryu.lib import addrconv
from ryu.lib import mac
from ryu.lib.pack_utils import msg_pack_into
from ryu.lib.packet import packet
from ryu import utils
from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase
from ryu.ofproto import ether
from ryu.ofproto import ofproto_... | PypiClean |
/pyserpzotero-1.0.14.tar.gz/pyserpzotero-1.0.14/node_modules/simple-peer/test/trickle.js | var common = require('./common')
var Peer = require('../')
var test = require('tape')
var config
test('get config', function (t) {
common.getConfig(function (err, _config) {
if (err) return t.fail(err)
config = _config
t.end()
})
})
test('disable trickle', function (t) {
t.plan(8)
var peer1 = new... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/engine.io/lib/transport.js | var EventEmitter = require('events').EventEmitter;
var parser = require('engine.io-parser');
var util = require('util');
var debug = require('debug')('engine:transport');
/**
* Expose the constructor.
*/
module.exports = Transport;
/**
* Noop function.
*
* @api private
*/
function noop () {}
/**
* Transport... | PypiClean |
/django_ref-0.5.2-py3-none-any.whl/refs/xsams_generators.py | from xml.sax.saxutils import escape
import datetime
import urllib.parse
from . import xsams_settings
from .xsams_utils import (
make_xsams_id,
make_mandatory_tag,
make_optional_tag,
xsams_source_type,
)
XSAMS_VERSION = xsams_settings.XSAMS_VERSION
NODEID = xsams_settings.NODEID
def get_timestamp():
... | PypiClean |
/tensor2tensorM-2.0.11.tar.gz/tensor2tensorM-2.0.11/tensor2tensor/data_generators/conll_ner.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import zipfile
from tensor2tensor.data_generators import generator_utils
from tensor2tensor.data_generators import problem
from tensor2tensor.data_generators import text_problems
from tensor2tensor.u... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/services/types/customer_service.py | from __future__ import annotations
from typing import MutableSequence
import proto # type: ignore
from google.ads.googleads.v13.enums.types import access_role as gage_access_role
from google.ads.googleads.v13.enums.types import (
response_content_type as gage_response_content_type,
)
from google.ads.googleads.v... | PypiClean |
/superset-d3-0.26.3.tar.gz/superset-d3-0.26.3/superset/utils.py | """Utility functions used across Superset"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
from datetime import date, datetime, time, timedelta
import decimal
from email.mime.application i... | PypiClean |
/ansys_dpf_core-0.9.0.tar.gz/ansys_dpf_core-0.9.0/src/ansys/dpf/core/operators/result/compute_stress_3.py | from warnings import warn
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs
from ansys.dpf.core.operators.specification import PinSpecification, Specification
class compute_stress_3(Operator):
"""Computes the stres... | PypiClean |
/pywaterinfo-0.7.0.tar.gz/pywaterinfo-0.7.0/docs/logging.rst | .. _logging:
====================
Print versus logging
====================
When developing functionalities of the package, use the `logging module <https://docs.python.org/3/library/logging.html>`_
instead of :code:`print` statements in the code.
Check the `logging howto <https://docs.python.org/3.7/howto/logging.h... | PypiClean |
/alibabacloud_iotcc20210513-2.2.5-py3-none-any.whl/alibabacloud_iotcc20210513/client.py | from typing import Dict
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_endpoint_util.client import Client as EndpointUtilClien... | PypiClean |
/openapi_python_embyapi-4.8.0.36.tar.gz/openapi_python_embyapi-4.8.0.36/openapi_python_embyapi/models/session_user_info.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="SessionUserInfo")
@attr.s(auto_attribs=True)
class SessionUserInfo:
"""
Attributes:
user_id (Union[Unset, str]):
user_name (Union[Unset, str]):
user_internal... | PypiClean |
/vecnet.emod-0.7.3.zip/vecnet.emod-0.7.3/vecnet/emod/migration.py | import json
import struct
import sys
import datetime
def decompile_migration_blueprint(json_file, bin_file):
""" Covert EMOD migration files (binary and metadata) to migration blueprint
:returns: dict - Migration Blueprint
"""
with open(json_file) as fp:
metadata = json.load(fp)
node_off... | PypiClean |
/nengolib-0.5.2.tar.gz/nengolib-0.5.2/.eggs/nengo-2.8.0-py3.6.egg/nengo/utils/functions.py | from __future__ import absolute_import
from collections import OrderedDict
import warnings
import numpy as np
from nengo.exceptions import ValidationError
from nengo.utils.compat import is_number, iteritems
def function_name(func):
"""Returns the name of a function.
Unlike accessing ``func.__name__``, thi... | PypiClean |
/Sphinx-5.0.2.tar.gz/Sphinx-5.0.2/doc/glossary.rst | .. _glossary:
Glossary
========
.. glossary::
builder
A class (inheriting from :class:`~sphinx.builders.Builder`) that takes
parsed documents and performs an action on them. Normally, builders
translate the documents to an output format, but it is also possible to
use builders that e.g. c... | PypiClean |
/splashclient-0.0.1.tar.gz/splashclient-0.0.1/README.md | # splashclient
*简单的splash客户端*
### 安装
```
pip install splashclient
```
### 快速入门
* 初始化客户端,配置代理可以传递{"protocol": "http", "ip": "IP地址", "port": 端口}到参数default_proxy
```
splash_url = "你的splash服务端地址,例如:http://IP:8050"
client = SplashClient(splash_url, default_proxy=None, default_wait=0.1, default_time=30, default_header={... | PypiClean |
/datasette-surveys-1.1.8.tar.gz/datasette-surveys-1.1.8/datasette_surveys/static/lib/ace-builds/src-min/mode-drools.js | define("ace/mode/doc_comment_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(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{de... | PypiClean |
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/data/FileStore.js | define(["dojo/_base/declare", "dojo/_base/lang", "dojo/_base/kernel", "dojo/_base/json", "dojo/_base/xhr"],
function(declare, lang, kernel, jsonUtil, xhr) {
return declare("dojox.data.FileStore", null, {
constructor: function(/*Object*/args){
// summary:
// A simple store that provides a datastore interface to... | PypiClean |
/Payton-1.1.8-py3-none-any.whl/payton/scene/scene.py | import ctypes
import logging
import os
import time
from dataclasses import dataclass
from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar
import numpy as np
import sdl2
from OpenGL.GL import (
GL_CLAMP_TO_EDGE,
GL_COLOR_BUFFER_BIT,
GL_DEPTH_ATTACHMENT,
GL_DEPTH_BUFFER_BIT,
GL_DEPT... | PypiClean |
/geoshape-geonode-1.4.tar.gz/geoshape-geonode-1.4/geonode/static/geonode/js/search/cart.js | 'use strict';
(function(){
angular.module('cart', [])
.controller('CartList', function($scope, cart){
$scope.cart = cart;
$scope.layers_params = '';
$scope.newMap = function(){
var items = cart.getCart().items;
var params = '';
for(var i=0; i<items.length; i++){
... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/mmtbx/regression/tst_helix_sheet_recs_as_pdb_files.py | from __future__ import absolute_import, division, print_function
import iotbx.pdb
from cctbx.array_family import flex
from libtbx import easy_run
pdb_str = """\
CRYST1 27.475 35.191 27.490 90.00 90.00 90.00 P 21 21 21
HELIX 1 1 ALA E 1 ALA E 16 1 16
ATOM 1 N ... | PypiClean |
/bittrade_binance_websocket-0.2.3.tar.gz/bittrade_binance_websocket-0.2.3/bittrade_binance_websocket/events/cancel_order.py | import dataclasses
from datetime import datetime
from logging import getLogger
import time
from typing import Callable, Dict, cast
from uuid import uuid4
from expression import pipe
from reactivex import Observable, compose, operators
from bittrade_binance_websocket.sign import (
encode_query_string,
get_signat... | PypiClean |
/PyProtolinc-0.1.7-cp310-cp310-win_amd64.whl/pyprotolinc/product.py | import logging
from abc import ABC
from typing import Iterable, Optional
import numpy as np
import numpy.typing as npt
import pandas as pd
from pyprotolinc.models.state_models import MortalityStates, AnnuityRunoffStates, MultiStateDisabilityStates, AbstractStateModel
from pyprotolinc.results import CfNames
from pypro... | PypiClean |
/mindbogglr-python-docx-0.8.6.1.tar.gz/mindbogglr-python-docx-0.8.6.1/HISTORY.rst | .. :changelog:
Release History
---------------
0.8.6 (2016-06-22)
++++++++++++++++++
- Add #257: add Font.highlight_color
- Add #261: add ParagraphFormat.tab_stops
- Add #303: disallow XML entity expansion
0.8.5 (2015-02-21)
++++++++++++++++++
- Fix #149: KeyError on Document.add_table()
- Fix #78: feature: add_t... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.