id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/LilypondToBandVideoConverter-1.1.1.tar.gz/LilypondToBandVideoConverter-1.1.1/lilypondtobvc/src/basemodules/regexppattern.py |
#====================
# IMPORTS
#====================
import re
from .simplelogging import Logging
from .simpletypes import Boolean, Object, Positive, String, Tuple
from .ttbase import iif
#====================
class RegExpPattern:
"""This module encapsulates pattern construction for regular
expressions... | PypiClean |
/Products.CMFActionIcons-2.1.3-beta2.tar.gz/Products.CMFActionIcons-2.1.3-beta2/Products/CMFActionIcons/exportimport.py | import os
from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import InitializeClass
from App.Common import package_home
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from zope.component import getSiteManager
from Products.CMFActionIcons.interfaces import IActionIconsTo... | PypiClean |
/object_detection_ctg-0.1.tar.gz/object_detection_ctg-0.1/object_detection_ctg/metrics/oid_challenge_evaluation.py | r"""Runs evaluation using OpenImages groundtruth and predictions.
Uses Open Images Challenge 2018, 2019 metrics
Example usage:
python models/research/object_detection/metrics/oid_od_challenge_evaluation.py \
--input_annotations_boxes=/path/to/input/annotations-human-bbox.csv \
--input_annotations_labels=/path... | PypiClean |
/bloxroute-gateway-1.109.9.tar.gz/bloxroute-gateway-1.109.9/bxgateway/src/bxgateway/testing/fixture/eth_fixtures.py | from bxcommon.messages.eth.serializers.transaction import Transaction
from bxgateway.messages.eth.protocol.transactions_eth_protocol_message import (
TransactionsEthProtocolMessage,
)
import bxcommon.test_utils.fixture.eth_fixtures as common_eth_fixtures
import blxr_rlp as rlp
# Ethereum transactions message recei... | PypiClean |
/openstack_heat-20.0.0.0rc2-py3-none-any.whl/heat/engine/clients/os/nova.py |
import collections
import email
from email.mime import multipart
from email.mime import text
import os
import pkgutil
import string
from urllib import parse as urlparse
from neutronclient.common import exceptions as q_exceptions
from novaclient import api_versions
from novaclient import client as nc
from novaclient i... | PypiClean |
/my_happy_pandas-1.1.10.tar.gz/my_happy_pandas-1.1.10/my_happy_pandas/core/construction.py | from collections import abc
from typing import TYPE_CHECKING, Any, Optional, Sequence, Union, cast
import numpy as np
import numpy.ma as ma
from my_happy_pandas._libs import lib
from my_happy_pandas._libs.tslibs import IncompatibleFrequency, OutOfBoundsDatetime
from my_happy_pandas._typing import AnyArrayLike, ArrayL... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/jmysite/model/delete_page_response_wrapper.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.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_type,
valid... | PypiClean |
/Products.MeetingSeraing-4.2.1.tar.gz/Products.MeetingSeraing-4.2.1/src/Products/MeetingSeraing/adapters.py |
from AccessControl import ClassSecurityInfo
from AccessControl import Unauthorized
from AccessControl.class_init import InitializeClass
from appy.gen import No
from copy import deepcopy
from DateTime import DateTime
from plone import api
from Products.Archetypes.atapi import DisplayList
from Products.CMFCore.permissio... | PypiClean |
/sims_reia-0.1.2-py3-none-any.whl/sims_reia/encoder.py | from .ReiaFile import ReiaFile
from .ReiaFrame import ReiaFrame
from PIL import Image, ImageChops
import typing
def pack_uint32_le(value: int) -> bytes:
"""Encodes an int as a 32-bit little endian unsigned integer."""
return value.to_bytes(4, byteorder="little", signed=False)
def write_reia_file(file: Rei... | PypiClean |
/Stetl-2.1.tar.gz/Stetl-2.1/stetl/filters/xmlelementreader.py | from copy import deepcopy
from stetl.component import Config
from stetl.filter import Filter
from stetl.util import Util, etree
from stetl.packet import FORMAT
log = Util.get_log('xmlelementreader')
class XmlElementReader(Filter):
"""
Extracts XML elements from a file, outputs each feature element in Packet... | PypiClean |
/selenium-actions-1.0.6.tar.gz/selenium-actions-1.0.6/seleniumactions/actions.py | import logging, sys
from time import sleep, time
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
from seleniumactions.elements import Finder
logger = logging.getLogger('ACTIONS')
stream... | PypiClean |
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/training/server_lib.py | """A Python interface for creating TensorFlow servers."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.core.protobuf import cluster_pb2
from tensorflow.core.protobuf import tensorflow_server_pb2
from tensorflow.python import pywrap_tensor... | PypiClean |
/plone.restapi-8.43.1-py3-none-any.whl/plone/restapi/services/types/get.py | from plone.dexterity.interfaces import IDexterityContent
from plone.restapi.bbb import IConstrainTypes
from plone.restapi.interfaces import IExpandableElement
from plone.restapi.interfaces import IPloneRestapiLayer
from plone.restapi.services import Service
from plone.restapi.types.utils import get_info_for_field
from ... | PypiClean |
/jupyterhub-remote-user-authenticator-1.0.0.tar.gz/jupyterhub-remote-user-authenticator-1.0.0/README.md | # Remote User Authenticator
Authenticate to Jupyterhub using header REMOTE_USER
## Installation
This package can be installed with pip:
```
pip install jupyterhub-remote-user-authenticator-v2
```
## Configuration
You should edit your :file:`jupyterhub_config.py` to set the authenticator class, the RemoteUserLocal... | PypiClean |
/zzsnML-1.0.1-py3-none-any.whl/relativeness_analysis/app.py | # -*- coding: utf-8 -*-
from flask import Flask, g, render_template, flash, redirect, url_for, request, abort, session
import os
from relativeness_analysis.relevant_analysis import main, test
from relativeness_analysis.manager import test as train_test
import warnings
warnings.filterwarnings('ignore')
DEBUG = False
PO... | PypiClean |
/hobart_svg-0.4.1-py3-none-any.whl/hobart_svg/geometry.py | import numpy as np
import vg
def almost_perpendicular(v1, v2, atol=1e-8):
return np.isclose(v1.dot(v2), 0, atol=atol)
def reorient_points(points, up, look):
from polliwog.transform import rotation_from_up_and_look
vg.shape.check(locals(), "up", (3,))
vg.shape.check(locals(), "look", (3,))
retu... | PypiClean |
/pokemon-card-recognizer-0.0.1.3.7.5.tar.gz/pokemon-card-recognizer-0.0.1.3.7.5/card_recognizer/reference/core/build.py | import os
import random
import sys
from typing import List, Dict
import ezplotly.settings as plot_settings
from ordered_set import OrderedSet
from pokemontcgsdk import Card, Set
from card_recognizer.classifier.core.card_prediction_result import CardPrediction
from card_recognizer.classifier.core.word_classifier impor... | PypiClean |
/mmdet_taeuk4958-1.0.9-py3-none-any.whl/mmdet_taeuk4958/models/dense_heads/mask2former_head.py | import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import Conv2d, build_plugin_layer, caffe2_xavier_init
from mmcv.cnn.bricks.transformer import (build_positional_encoding,
build_transformer_layer_sequence)
from mmcv.ops import point_sa... | PypiClean |
/kimrec-0.26.5-py3-none-any.whl/tensorrec/prediction_graphs.py | import abc
import tensorflow as tf
from .recommendation_graphs import relative_cosine
class AbstractPredictionGraph(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def connect_dense_prediction_graph(self, tf_user_representation, tf_item_representation):
"""
This method is respon... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/f6347388896f42814370ca33227b8721.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/dda-queue-1.1.30.tar.gz/dda-queue-1.1.30/dqueue/api.py | import traceback
import datetime
import os
import time
import socket
from hashlib import sha224
from collections import defaultdict
import glob
import logging
import io
import requests
import urllib.parse
import traceback
import base64
import minio
import dqueue.core
import dqueue.app
import dqueue.tools as tools
im... | PypiClean |
/pantsbuild.pants-2.18.0a0-cp39-cp39-macosx_10_15_x86_64.whl/pants/backend/awslambda/python/rules.py |
from __future__ import annotations
import logging
from dataclasses import dataclass
from pants.backend.awslambda.python.target_types import (
PythonAWSLambda,
PythonAwsLambdaHandlerField,
PythonAwsLambdaIncludeRequirements,
PythonAwsLambdaIncludeSources,
PythonAWSLambdaLayer,
PythonAwsLambdaL... | PypiClean |
/panda-pilot-3.5.1.4.tar.gz/panda-pilot-3.5.1.4/pilot/user/atlas/metadata.py |
import os
import logging
from xml.dom import minidom
from xml.etree import ElementTree
from pilot.util.filehandling import write_file
logger = logging.getLogger(__name__)
def create_input_file_metadata(file_dictionary, workdir, filename="PoolFileCatalog.xml"):
"""
Create a Pool File Catalog for the files l... | PypiClean |
/py-pde-0.32.2.tar.gz/py-pde-0.32.2/CODE_OF_CONDUCT.md | # Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex ch... | PypiClean |
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/contrib/learn/python/learn/datasets/text_datasets.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import tarfile
import numpy as np
from tensorflow.contrib.learn.python.learn.datasets import base
from tensorflow.python.platform import gfile
from tensorflow.python.util.deprecation import deprecat... | PypiClean |
/aamp_app-0.0.1.30-py3-none-any.whl/aamp_app/pages/execute-recipe.py | from dash import Dash, html, dcc, dash_table, Input, Output, callback, State
import dash_bootstrap_components as dbc
import dash
import logging
dash.register_page(__name__, path="/execute-recipe", name="Execute Recipe", title="Execute Recipe")
layout = html.Div(
[
html.H1("Execute Recipe"),
dbc.B... | PypiClean |
/databricks_sql_cli-0.3.3.tar.gz/databricks_sql_cli-0.3.3/dbsqlcli/completion_refresher.py | import threading
from collections import OrderedDict
from dbsqlcli.completer import DBSQLCompleter
from dbsqlcli.sqlexecute import SQLExecute
from dbsqlcli.packages.special.main import COMMANDS
import logging
LOGGER = logging.getLogger(__name__)
class CompletionRefresher(object):
refreshers = OrderedDict()
... | PypiClean |
/VeloWeb-2.0.1-py3-none-any.whl/veloweb/hasher.py | import hashlib
import os
import secrets
import base64
def hash_password(password):
salt = os.urandom(16)
pepper = b'$velo@hash?'
combined = salt + password.encode() + pepper
for _ in range(20):
combined = hashlib.sha3_512(combined).digest()
combined = hashlib.sha3_256(combined).digest(... | PypiClean |
/dj-paypal-0.16.0.tar.gz/dj-paypal-0.16.0/src/djpaypal/models/payments.py | from django.db import models
from paypalrestsdk import payments as paypal_models
from .. import enums
from ..fields import CurrencyAmountField, JSONField
from .base import PaypalObject
class Payment(PaypalObject):
intent = models.CharField(max_length=9, choices=enums.PaymentIntent.choices)
cart = models.CharField(... | PypiClean |
/jmbo-sitemap-2.0.1.tar.gz/jmbo-sitemap-2.0.1/jmbo_sitemap/models.py | from django.db import models
from django.template.loader import get_template_from_string
from django.template import Context
try:
from django.utils.module_loading import import_string as importer
except ImportError:
from django.utils.module_loading import import_by_path as importer
from django.conf import setti... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_8/models/policy_member_export_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_8 import models
class PolicyMemberExportGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
an... | PypiClean |
/django_adminlte_amigne-0.0.1.0-py3-none-any.whl/adminlte/static/demo/plugins/pace-progress/pace.min.js |
(function(){var t,e,n,r,s,o,i,u,a,c,l,p,h,f,d,g,y,m,v,w,b,L,k,S,q,x,P,T,R,j,E,O,M,A,_,F,C,U,W,X,D,H,I,z,G,N,B,J,K=[].slice,Q={}.hasOwnProperty,V=function(t,e){function n(){this.constructor=t}for(var r in e)Q.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},Y=[].indexOf... | PypiClean |
/bruker-0.3.7-py3-none-any.whl/brkraw/lib/loader.py | from shleeh import *
from shleeh.errors import *
from .orient import build_affine_from_orient_info, reversed_pose_correction, get_origin
from .pvobj import PvDatasetDir, PvDatasetZip
from .utils import *
from .orient import to_matvec
from .reference import ERROR_MESSAGES, ISSUE_REPORT
import numpy as np
import zipfile... | PypiClean |
/OpenBioSeq-0.1.1.tar.gz/OpenBioSeq-0.1.1/openbioseq/utils/flops_counter.py |
# MIT License
# Copyright (c) 2018 Vladislav Sovrasov
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/db/backends/mysql/base.py | import re
import sys
try:
import MySQLdb as Database
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
# We want version (1, 2, 1, 'final', 2) or later. We can't just use
# lexicographic ordering in this check ... | PypiClean |
/lswapi-0.4.3.tar.gz/lswapi-0.4.3/README.md | lswapi (beta)
=============
[](https://github.com/nrocco/lswapi/actions)
Python module to talk to LeaseWeb's API.
For more information refer to the documentation available at
[http://developer.leaseweb.com]
Installation
-------... | PypiClean |
/xlrd-ignore-writeaccess-corruption-1.2.0.1.tar.gz/xlrd-ignore-writeaccess-corruption-1.2.0.1/xlrd/__init__.py | import os
import pprint
import sys
import zipfile
from . import timemachine
from .biffh import (
XL_CELL_BLANK, XL_CELL_BOOLEAN, XL_CELL_DATE, XL_CELL_EMPTY, XL_CELL_ERROR,
XL_CELL_NUMBER, XL_CELL_TEXT, XLRDError, biff_text_from_num,
error_text_from_code,
)
from .book import Book, colname
from .formula imp... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/models/container_transfer.py | from typing import Any, cast, Dict, List, Type, TypeVar, Union
import attr
from ..extensions import NotPresentError
from ..models.container_quantity import ContainerQuantity
from ..models.container_transfer_destination_contents_item import ContainerTransferDestinationContentsItem
from ..models.deprecated_container_vo... | PypiClean |
/eacheck-0.1.0.tar.gz/eacheck-0.1.0/README.rst | EruditArticle Check
===================
A python library and command line tool to perform the validation of
*EruditArticle* XMLs.
How to install
--------------
pip install eacheck
How to use
----------
**For command line help**
#> eacheck -h
**To validated a XML file (output in text mode)**
#> eacheck file.xm... | PypiClean |
/qiime-1.9.1.tar.gz/qiime-1.9.1/doc/scripts/sort_otu_table.rst | .. _sort_otu_table:
.. index:: sort_otu_table.py
*sort_otu_table.py* -- Script for sorting the sample IDs in an OTU table based on a specified value in a mapping file.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | PypiClean |
/shpg-0.0.1.tar.gz/shpg-0.0.1/README.rst | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Static HTML Page Generator
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Installation
-------------
for now shpg is available through GitHub. You can install by cloning the project and renning setup.py:
.. code-block:: shell
git clone https://github.com/BastienCagna/shpg.git
cd shpg
python s... | PypiClean |
/obj_detector_setup-0.1.tar.gz/obj_detector_setup-0.1/slim/nets/resnet_v1.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow.compat.v1 as tf
import tf_slim as slim
from nets import resnet_utils
resnet_arg_scope = resnet_utils.resnet_arg_scope
class NoOpScope(object):
"""No-op context manager."""
def __ente... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/acs/_help.py |
from knack.help_files import helps
helps['aks'] = """
type: group
short-summary: Manage Azure Kubernetes Services.
"""
helps["aks check-acr"] = """
type: command
short-summary: Validate an ACR is accessible from an AKS cluster.
parameters:
- name: --acr
short-summary: The FQDN of the ACR.
- name: --node-nam... | PypiClean |
/krillscan-0.2.28.tar.gz/krillscan-0.2.28/krillscan_nogui/echopy/get_background.py | import warnings
import numpy as np
from krillscan.echopy import resample as rs
def derobertis(Sv, iax, jax, m, n, r, alpha, bgnmax=-125):
"""
Estimate background noise as in:
De Robertis and Higginbottom (2007) ‘A post-processing technique to
estimate the signal-to-noise ratio and rem... | PypiClean |
/covasim-3.0.7.tar.gz/covasim-3.0.7/docs/modules.rst | API reference
=============
.. automodule:: covasim
:members:
:undoc-members:
:show-inheritance:
Subpackages
-----------
.. toctree::
:maxdepth: 4
covasim.data
Submodules
----------
.. toctree::
:maxdepth: 4
covasim.analysis
covasim.base
covasim.defaults
covasim.immunity
covasim.... | PypiClean |
/pysnmp-bw-5.0.3.tar.gz/pysnmp-bw-5.0.3/docs/source/examples/hlapi/v1arch/asyncore/manager/cmdgen/advanced-topics.rst | .. toctree::
:maxdepth: 2
Advanced Command Generator
--------------------------
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
:start-after: """
:end-before: """#
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-... | PypiClean |
/tts-scores-1.0.0.tar.gz/tts-scores-1.0.0/tts_scores/clvp.py | import pathlib
import numpy as np
import torch
import torch.nn.functional as F
from einops import rearrange
from pytorch_fid.fid_score import calculate_frechet_distance
from torch import nn, einsum
from tqdm import tqdm
from tts_scores.tokenizer import text_to_sequence
from tts_scores.utils import load_audio, to_mel,... | PypiClean |
/djcharme-0.8.6.tar.gz/djcharme-0.8.6/docs/README.rst | Documentation and Examples
==========================
The `CHARMeNodeInstallation <https://github.com/CHARMe-Project/djcharme/blob/develop/djcharme/docs/CHARMeNodeInstallation.pdf>`_
provides details of installing the central node and the
`CHARMeNodeICD <https://github.com/CHARMe-Project/djcharme/blob/develop/djcharme... | PypiClean |
/lmflow-deploy-0.0.1.tar.gz/lmflow-deploy-0.0.1/README.md | <p align="center" width="100%">
<img src="assets/logo.png" alt="LMFlow" style="width: 100%; min-width: 300px; display: block; margin: auto; background-color: transparent;">
</p>
# LMFlow
<h4 align="center">
<p>
<b>English</b> |
<a href="https://github.com/OptimalScale/LMFlow/blob/main/readme/READM... | PypiClean |
/ass_parser-1.0.tar.gz/ass_parser-1.0/ass_parser/observable_mapping_mixin.py | from collections.abc import Iterable, Iterator, Mapping, MutableMapping
from dataclasses import dataclass
from typing import Any, TypeVar, Union, cast, overload
from ass_parser.observable import Event, Observable
TKey = TypeVar("TKey")
TValue = TypeVar("TValue")
@dataclass
class ObservableMappingChangeEvent(Event):... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayMerchantIndirectIotQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMerchantIndirectIotQueryModel import AlipayMerchantIndirectIotQueryModel
class AlipayMerchantIndirectIotQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/cascaded_heat_merit_order-0.13-py3-none-any.whl/cascaded_heat_merit_order/network_connectors.py | from cascaded_heat_merit_order.energy_converters import EnergyConverter
from cascaded_heat_merit_order.networks import HeatNetwork
class NetworkConnector(EnergyConverter):
"""
This data type connects heat-networks. Connectors can bei either heat-pumps or heat-exchangers
For parametrizing the COP we use th... | PypiClean |
/fake_bpy_module_2.79-20230117-py3-none-any.whl/bpy/ops/boid.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
def rule_add(override_context: typing.Union[typing.
Dict, 'bpy.types.Context'] = None,
execution_context: typing.Union[str, int] = None,
undo: typing.Optional[bo... | PypiClean |
/apache-flink-ml-2.3.0.tar.gz/apache-flink-ml-2.3.0/deps/examples/ml/evaluation/binaryclassificationevaluator_example.py |
# Simple program that creates a BinaryClassificationEvaluator instance and uses
# it for evaluation.
from pyflink.common import Types
from pyflink.datastream import StreamExecutionEnvironment
from pyflink.ml.linalg import Vectors, DenseVectorTypeInfo
from pyflink.ml.evaluation.binaryclassification import BinaryClassi... | PypiClean |
/cell_counting-0.1.8.tar.gz/cell_counting-0.1.8/manuscript/train.py | import sys, os
root_relative_path = os.path.join(os.path.dirname(__file__), '..')
sys.path.insert(0, root_relative_path)
# ==========================
# Import from cell_counting.
# ==========================
from cell_counting import dataset, metric, utilities, losses, preprocess, \
postprocess
from cell_counting... | PypiClean |
/ecreall_dace-1.1.0.tar.gz/ecreall_dace-1.1.0/dace/relations/__init__.py |
# licence: AGPL
# author: Vincent Fretin, Amen Souissi
from pyramid.threadlocal import get_current_request
from substanced.util import find_objectmap, set_oid
from pyramid.traversal import find_root
from .values import RelationValue
# TODO def get_relations_container(root, query)
def get_relations_container(resour... | PypiClean |
/desktoptools-0.0.7-py3-none-any.whl/DesktopTools/tools.py | import hashlib
import json
import sys
import time
from datetime import datetime
def json_loads(str_data):
try:
return json.loads(str_data)
except Exception:
return {}
def json_dumps(data, ensure_ascii=False):
try:
data = json.dumps(data, ensure_ascii=ensure_ascii)
except Exce... | PypiClean |
/nem_bidding_dashboard-1.0.8-py3-none-any.whl/nem_bidding_dashboard/fetch_and_preprocess.py | import pandas as pd
from nem_bidding_dashboard import fetch_data, preprocessing
from nem_bidding_dashboard.input_validation import (
data_cache_exits,
validate_start_end_and_cache_location,
)
pd.set_option("display.width", None)
def region_data(start_time, end_time, raw_data_cache):
"""
Wrapper for ... | PypiClean |
/flowws_structure_pretraining-0.2.0-py3-none-any.whl/flowws_structure_pretraining/tasks/point_groups.py | import collections
import functools
import itertools
import numpy as np
import rowan
import re
def filter_discrete(x, values=None, delta=1e-2):
"""Remove duplicate points in a point cloud by discretizing by a given lengthscale.
:param x: Input coordinate array
:param values: Input value array (integer va... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/packages/bundled/django/core/handlers/base.py | from __future__ import unicode_literals
import logging
import sys
import types
from django import http
from django.conf import settings
from django.core import exceptions
from django.core import urlresolvers
from django.core import signals
from django.utils.encoding import force_text
from django.utils.importlib impor... | PypiClean |
/collective.excelexport-1.8.2.tar.gz/collective.excelexport-1.8.2/docs/LICENSE.rst | bobtemplates.ecreall Copyright 2013, "Cédric Messiant"
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distrib... | PypiClean |
/privex_steemengine-2.4.0-py3-none-any.whl/privex/steemengine/__init__.py | import logging
import sys
from privex.steemengine.SteemEngineToken import SteemEngineToken
from privex.steemengine.SteemEngineHistory import SteemEngineHistory
from privex.steemengine.objects import *
name = 'steemengine'
# If the privex.steemengine logger has no handlers, assume it hasn't been configured and set up ... | PypiClean |
/django-tastypie-migrate-fix-0.10.0.tar.gz/django-tastypie-migrate-fix-0.10.0/docs/bundles.rst | .. ref-bundle:
=======
Bundles
=======
What Are Bundles?
=================
Bundles are a small abstraction that allow Tastypie to pass data between
resources. This allows us not to depend on passing ``request`` to every single
method (especially in places where this would be overkill). It also allows
resources to w... | PypiClean |
/bluebeam_release-3.0.0.tar.gz/bluebeam_release-3.0.0/src/bluebeam/objects/Laser.py | import itertools
import pygame
import math
from bluebeam.objects import EnemyBullet
class Laser(EnemyBullet):
def __init__(self, g_, l_, pos_=None):
super().__init__(g_, l_, pos_)
self.owner = 1
self._emitter = None
self.emitpoint = self.pos
self.speed = pygame.math.Vector... | PypiClean |
/no_comment-0.1.1-py3-none-any.whl/no_comment/interfaces/to_http/as_html/__init__.py |
from datetime import datetime
from http import HTTPStatus as HTTP
from pathlib import Path
from typing import Any, Callable, Optional
from zoneinfo import ZoneInfo
from jinja2 import Environment, FileSystemLoader, select_autoescape
from jinja2_fragments import render_block
from no_comment.application.use_cases impor... | PypiClean |
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/monitoring/scheduled_query_rules_alert.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__ = ['ScheduledQueryRulesAlertArgs', 'ScheduledQueryRulesAlert']
@pulumi.input_type
class ScheduledQueryRul... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/BoldItalic/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXMathJax_Normal-bold-italic"]={directory:"Normal/BoldItalic",family:"STIXMathJax_Normal",weight:"bold",style:"italic",testString:"\u00A0\uD835\uDC68\uD835\uDC69\uD835\uDC6A\uD835\uDC6B\uD835\uDC6C\uD835\uDC6D\uD835\uDC6E\uD835\uDC6F\uD835\uDC70\uD835\uDC71\uD835\uDC72\uD... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/lactobacillusamylolyticus.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def LactobacillusAmylolyticus(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwar... | PypiClean |
/primary-data-analysis-0.0.4.tar.gz/primary-data-analysis-0.0.4/README.md | #### This Package is designed to get overall understanding of dataframe.
## Installation
pip install primary-data-analysis
## Package Import
from primary import get_all_data_analysis_classification
from primary import get_all_data_analysis_regression
## Function
get_all_data_analysis_classificatio... | PypiClean |
/ts-deepscan-2.0.5.tar.gz/ts-deepscan-2.0.5/README.md | 

# TrustSource DeepScan
Repository scanner for the identification of *_effective licenses and copyright information_*.
## What it does?
DeepScan takes the URL ... | PypiClean |
/forecast-0.1.0.tar.gz/forecast-0.1.0/README.rst | ========
forecast
========
.. image:: https://img.shields.io/pypi/v/forecast.svg
:target: https://pypi.python.org/pypi/forecast
.. image:: https://img.shields.io/travis/BlackPoint-CX/forecast.svg
:target: https://travis-ci.org/BlackPoint-CX/forecast
.. image:: https://readthedocs.org/projects/foreca... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/cloudscheduler/v1beta1/outputs.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 *
__all__ = [
'AppEngineHttpTargetResponse',
'AppEngineRoutingResponse',
'HttpTargetResponse',
'OAut... | PypiClean |
/bob.bio.face-8.0.0.tar.gz/bob.bio.face-8.0.0/doc/datasets.rst | .. vim: set fileencoding=utf-8 :
.. author: Manuel Günther <siebenkopf@googlemail.com>
.. _bob.bio.face.datasets:
Setting up Facial Image Databases
=================================
This package includes a large list of facial image datasets including their default evaluation protocols.
You can list all available da... | PypiClean |
/iss_positioner-1.0.6-py3-none-any.whl/iss_positioner/redis.py | import asyncio
from collections import defaultdict
from datetime import datetime, timedelta
from itertools import chain
from .calculations import AsyncSatellite
from .log import tqdm
from .util import datetime_range, geo_member_to_dict
__all__ = (
'fill_db',
'clear_old_coords',
'store_coords',
'get_co... | PypiClean |
/smeagol-bio-0.1.1.tar.gz/smeagol-bio-0.1.1/smeagol/models.py | import os
import numpy as np
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import (
Conv1D,
Input,
Embedding,
Reshape,
ZeroPadding1D,
)
from .encode import base_one_hot, integer_encode
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
# Define convolutional model
... | PypiClean |
/v3/model/restore_new_instance_request.py |
import pprint
import re
import six
class RestoreNewInstanceRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json ... | PypiClean |
/qiskit_aer-0.12.2-cp310-cp310-macosx_11_0_arm64.whl/qiskit_aer/pulse/system_models/string_model_parser/operator_from_string.py |
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or ... | PypiClean |
/sunscreen-0.0.4.tar.gz/sunscreen-0.0.4/README.md | # Sunscreen
Get today's ultraviolet (UV) index forecast for your zipcode
## Install
Using pipsi is recommended, since this is a standalone application.
```
# if necessary
$ pip install pipsi
$ pipsi install sunscreen
```
## Usage
To use sunscreen after installation, just type `sunscreen`:
```bash
▶ sunscreen
Welc... | PypiClean |
/sspo_client-1.1.11-py3-none-any.whl/sspo_client/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportError('Swagger python client requires urlli... | PypiClean |
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/MathJax/localization/fa/fa.js | MathJax.Localization.addTranslation("fa",null,{menuTitle:"\u0641\u0627\u0631\u0633\u06CC",fontDirection:"rtl",version:"2.7.8",isLoaded:true,domains:{_:{version:"2.7.8",isLoaded:true,strings:{CookieConfig:"MathJax \u06CC\u06A9 \u06A9\u0644\u0648\u0686\u06A9 \u062A\u0646\u0638\u06CC\u0645\u0627\u062A \u06A9\u0627\u0631\u... | PypiClean |
/optimos-0.9.6.tar.gz/optimos-0.9.6/support_modules/bpmn_parser.py | import xml.etree.ElementTree as ET
from data_structures.pools_info import PoolInfo
from support_modules.file_manager import temp_bpmn_file
bpmn_schema_url = 'http://www.omg.org/spec/BPMN/20100524/MODEL'
camunda_schema_url = 'http://camunda.org/schema/1.0/bpmn'
bpmn_element_ns = {'xmlns': bpmn_schema_url}
camunda_elem... | PypiClean |
/matter-0.8-r960-20110308.tar.gz/matter-0.8-r960-20110308/branches/matter-usedsawmodel/atomic_properties/average_neutron_coh_xs.py | __doc__ = """Average neutron coherent scattering cross-section for the elements
(average over isotopes in their natural abundancies) in barns,
as provided on the NIST website."""
def lookup( atom ):
return avg_neutron_coh_xs[ atom.Z ]
avg_neutron_coh_xs = [
None, # X
1.7568, # H
1.3400, # He
0.454... | PypiClean |
/Pyrogrampatched-0.0.1-py3-none-any.whl/pyrogram/types/messages_and_media/video_note.py |
from datetime import datetime
from typing import List
import pyrogram
from pyrogram import raw, utils
from pyrogram import types
from pyrogram.file_id import FileId, FileType, FileUniqueId, FileUniqueType
from ..object import Object
class VideoNote(Object):
"""A video note.
Parameters:
file_id (``s... | PypiClean |
/chalice_helpers-0.1.tar.gz/chalice_helpers-0.1/README.md | # Chalice Helper
Some helper functions and utilities for Chalice applications. The encryption and decryption functions rely on
[AWS Key Management Service (KMS)](https://aws.amazon.com/kms/) which is a managed service that makes it easy for you
to create and control the encryption keys used to encrypt your data, and ... | PypiClean |
/yieldfrom.requests-0.1.3.zip/yieldfrom.requests-0.1.3/README.rst | yieldfrom.Requests: Requests for asyncio
========================================
Requests is an Apache2 Licensed HTTP library, written in Python, for human
beings.
yieldfrom.Requests is the same library, ported to run under Python's asyncio.
Where in regular Requests you would write:
.. code-block:: pycon
>>>... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_20/models/port_common.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_20 import models
class PortCommon(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is att... | PypiClean |
/sdo_hmi_rvs-0.1.3.tar.gz/sdo_hmi_rvs-0.1.3/sdo_hmi_rvs/source/rv_pipeline.py | import os
import sys
import time
import pytz
import datetime
import numpy as np
import sunpy.map
from sunpy.net import Fido
from sunpy.net import attrs as a
from sunpy.coordinates import frames
sys.path.append(os.path.join(os.path.dirname(__file__),'../../'))
import sdo_hmi_rvs.tools.calculation_funcs as sfuncs
impo... | PypiClean |
/fschat-0.2.26-py3-none-any.whl/fastchat/llm_judge/common.py | import ast
import dataclasses
import glob
import json
import os
import re
import time
from typing import Optional
import openai
import anthropic
from fastchat.model.model_adapter import get_conversation_template
# API setting constants
API_MAX_RETRY = 16
API_RETRY_SLEEP = 10
API_ERROR_OUTPUT = "$ERROR$"
TIE_DELTA =... | PypiClean |
/tvb_library-2.8.1-py3-none-any.whl/tvb/simulator/models/hopfield.py | import numpy
from .base import Model
from tvb.basic.neotraits.api import NArray, List, Range, Final
class Hopfield(Model):
r"""
The Hopfield neural network is a discrete time dynamical system composed
of multiple binary nodes, with a connectivity matrix built from a
predetermined set of patterns. The... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/contrib/localflavor/ro/forms.py | import re
from django.core.validators import EMPTY_VALUES
from django.forms import ValidationError, Field, RegexField, Select
from django.utils.translation import ugettext_lazy as _
class ROCIFField(RegexField):
"""
A Romanian fiscal identity code (CIF) field
For CIF validation algorithm see http://www.v... | PypiClean |
/deepview_profile-0.13.1-py3-none-any.whl/deepview_profile/io/connection_acceptor.py | import logging
import select
import socket
from threading import Thread
from deepview_profile.io.sentinel import Sentinel
logger = logging.getLogger(__name__)
class ConnectionAcceptor:
"""
Manages the "server socket" for the agent, allowing it to accept
connection requests from other agents.
Each t... | PypiClean |
/interpretdl-0.8.0.tar.gz/interpretdl-0.8.0/tutorials/ga-bt-ernie-2.0-en-sst-2.ipynb | # Load the Pretrained Model and the dataset
We use ernie-2.0-base-en as the model and SST-2 as the dataset for example. More models can be found in [PaddleNLP Model Zoo](https://paddlenlp.readthedocs.io/zh/latest/model_zoo/index.html#transformer).
Obviously, PaddleNLP is needed to run this notebook, which is easy to i... | PypiClean |
/empire-platform-api-public-client-1.0.0.tar.gz/empire-platform-api-public-client-1.0.0/empire_platform_api_public_client/models/source_auction_result.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from typing import Union
from pydantic import BaseModel, Field, StrictInt, confloat, conint
class SourceAuctionResult(BaseModel):
"""
SourceAuctionResult
"""
available_allocated_capacity: StrictInt = Field(..., alias... | PypiClean |
/stanpy-0.2.11.tar.gz/stanpy-0.2.11/docs/reference/transfer_relation.rst | ========================
stanpy.transfer_relation
========================
utils
=====
gamma_K
-------
.. jupyter-execute::
:hide-code:
import numpy as np
np.set_printoptions(precision=5)
.. automodule:: stanpy
:members: gamma_K
.. math::
:label: gamma_and_K
\gamma = \dfrac{1}{1 - N / G\til... | PypiClean |
/blue_st_sdk_package-1.1.5.tar.gz/blue_st_sdk_package-1.1.5/blue_st_sdk/utils/number_conversion.py | # IMPORT
import struct
# CLASSES
class NumberConversion(object):
"""This class helps to convert array of bytes to different formats, and
viceversa.
"""
@classmethod
def byte_to_uint8(self, data, index = 0):
"""Returns the short value of the unsigned byte value in position
"index... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/instances/item/tentatively_accept/tentatively_accept_post_request_body.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from ..............models import time_slot
class TentativelyAcceptPostReques... | PypiClean |
/acumos_dcae_model_runner-0.1.3.tar.gz/acumos_dcae_model_runner-0.1.3/docs/tutorial/index.rst | .. ===============LICENSE_START=======================================================
.. Acumos CC-BY-4.0
.. ===================================================================================
.. Copyright (C) 2017-2018 AT&T Intellectual Property & Tech Mahindra. All rights reserved.
.. ===============================... | PypiClean |
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojo/cldr/nls/da/buddhist.js | define(
//begin v1.x content
{
"dateFormat-full": "EEEE d. MMMM y G",
"dateFormat-long": "d. MMMM y G",
"dateFormat-medium": "d. MMM y G",
"dateFormat-short": "d/M/yyyy",
"dateFormatItem-d": "d.",
"dateFormatItem-Ed": "E d.",
"dateFormatItem-Gy": "y G",
"dateFormatItem-H": "HH",
"dateFormatItem-hm": "h.mm a",
... | PypiClean |
/kaggle_runner-0.2.1-py3-none-any.whl/hub/custom_fastai_callbacks/callbacks.py | from fastai.basic_train import LearnerCallback
from fastai.basic_train import Learner
class SaveEveryNIterations(LearnerCallback):
"""Saves model after every N iterations
We save all models with the same name as otherwise rather heavy models can quickly gobble up
all available disk space.
Usage:
s... | PypiClean |
/fedml-afaf-0.7.327.tar.gz/fedml-afaf-0.7.327/fedml/simulation/mpi/fedgan/FedGanServerManager.py | import logging
from .message_define import MyMessage
from .utils import transform_tensor_to_list
from ....core.distributed.fedml_comm_manager import FedMLCommManager
from ....core.distributed.communication.message import Message
class FedGANServerManager(FedMLCommManager):
def __init__(
self,
arg... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.