id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/ops/operations/array_ops.py |
"""Operators for array."""
import copy
import functools
import itertools
import numbers
import numpy as np
from mindspore import log as logger
from mindspore import context
from mindspore.common.initializer import Zero
from mindspore.ops import signature as sig
from mindspore.ops._utils import get_broadcast_shape
fr... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/events/item/instances/item/exception_occurrences/delta/delta_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/setup_templates/static/tiny_mce/plugins/table/langs/sk_dlg.js | tinyMCE.addI18n('sk.table_dlg',{"rules_border":"or\u00e1movanie okolo","rules_box":"box okolo","rules_vsides":"v\u013eavo a vpravo","rules_rhs":"vpravo","rules_lhs":"v\u013eavo","rules_hsides":"hore a dole","rules_below":"dole","rules_above":"hore","rules_void":"\u017eiadne",rules:"Vykreslenie mrie\u017eky","frame_all"... | PypiClean |
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/inc.py | from .common import InfoExtractor
from .kaltura import KalturaIE
class IncIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?inc\.com/(?:[^/]+/)+(?P<id>[^.]+).html'
_TESTS = [{
'url': 'http://www.inc.com/tip-sheet/bill-gates-says-these-5-books-will-make-you-smarter.html',
'md5': '7416739c9c1... | PypiClean |
/contextualwaiting-1.0.2-py3-none-any.whl/ctxwait/waiting.py | __author__ = "Myron Walker"
__copyright__ = "Copyright 2023, Myron W Walker"
__credits__ = []
__version__ = "1.0.0"
__maintainer__ = "Myron Walker"
__email__ = "myron.walker@gmail.com"
__status__ = "Development" # Prototype, Development or Production
__license__ = "MIT"
from typing import Any, Dict, List, Optional, Pr... | PypiClean |
/ngs-smap-4.6.5.tar.gz/ngs-smap-4.6.5/smap/haplotype.py | from __future__ import annotations
import logging
import operator
from collections import Counter, defaultdict, abc
from functools import partial
from itertools import product
import concurrent.futures
from pathlib import Path
from typing import Dict, Iterable, Union, Tuple, IO, AnyStr, TextIO
from argparse import Arg... | PypiClean |
/openpeerpower_frontend-20210523.2-py3-none-any.whl/opp_frontend/frontend_latest/chunk.312cce9ddb8adeda65fe.js | (self.webpackChunkopenpeerpower_frontend=self.webpackChunkopenpeerpower_frontend||[]).push([[6899],{54444:(e,t,r)=>{"use strict";r(65233);var i=r(9672),n=r(87156),o=r(50856);(0,i.k)({_template:o.d`
<style>
:host {
display: block;
position: absolute;
outline: none;
z-index: 1002... | PypiClean |
/sdksio_juniper_mist_sdk-1.0.0-py3-none-any.whl/mistapi/models/junos_storm_control.py | from mistapi.api_helper import APIHelper
class JunosStormControl(object):
"""Implementation of the 'junos_storm_control' model.
Switch storm control
Attributes:
no_broadcast (bool): whether to disable storm control on broadcast
traffic
no_multicast (bool): whether to disable... | PypiClean |
/adafruit-circuitpython-macropad-2.2.1.tar.gz/adafruit-circuitpython-macropad-2.2.1/adafruit_macropad.py | import array
import math
import time
import board
import digitalio
import rotaryio
import keypad
import neopixel
import displayio
import audiopwmio
import audiocore
import audiomp3
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
from adafruit_hi... | PypiClean |
/model_harmonics-1.1.0-py3-none-any.whl/model_harmonics-1.1.0.data/scripts/reanalysis_geopotential_heights.py | u"""
reanalysis_geopotential_heights.py
Written by Tyler Sutterley (12/2022)
Reads temperature and specific humidity data to calculate geopotential height
and pressure difference fields at half levels from reanalysis
INPUTS:
Reanalysis model to run
ERA-Interim: http://apps.ecmwf.int/datasets/data/interim-f... | PypiClean |
/global-workqueue-2.2.4rc2.tar.gz/global-workqueue-2.2.4rc2/bin/adhoc-scripts/checkDsetFileCount.py | import logging
import sys
from collections import Counter
from WMCore.Services.DBS.DBS3Reader import DBS3Reader
from WMCore.Services.Rucio.Rucio import Rucio
RUCIO_ACCT = "wma_prod"
RUCIO_HOST = "http://cms-rucio.cern.ch"
RUCIO_AUTH = "https://cms-rucio-auth.cern.ch"
DBS_URL = "https://cmsweb-prod.cern.ch/dbs/prod/gl... | PypiClean |
/amazon_braket_sdk-1.54.3-py3-none-any.whl/braket/pulse/ast/approximation_parser.py | import re
from collections import defaultdict
from dataclasses import dataclass
from typing import Any, Dict, KeysView, List, Optional, Union
import numpy as np
from openpulse import ast
from openqasm3.visitor import QASMVisitor
from oqpy import Program
from braket.pulse.frame import Frame
from braket.pulse.waveforms... | PypiClean |
/plaid-python-15.5.0.tar.gz/plaid-python-15.5.0/plaid/model/link_session_success_metadata_account.py | import re # noqa: F401
import sys # noqa: F401
from plaid.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,
validate... | PypiClean |
/invenio-sipstore-1.0.0a2.tar.gz/invenio-sipstore-1.0.0a2/docs/api.rst | ..
This file is part of Invenio.
Copyright (C) 2016 CERN.
Invenio 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.
... | PypiClean |
/expyriment-0.10.0.tar.gz/expyriment-0.10.0/documentation/sphinx/Advanced.rst | Advanced
========
.. toctree::
:titlesonly:
:maxdepth: 2
API reference tool <APIReferenceTool>
Test suite <Testsuite>
Command line interface <CommandLineInterface>
Data preprocessing and exporting <DataPreprocessing>
Using non-English characters <Unicode>
Using fonts <Fonts>
Presen... | PypiClean |
/hocr-parser-0.0.5.tar.gz/hocr-parser-0.0.5/hocr_parser/parser.py | from lxml import html
import os
import json
import traceback
import logging
def hocr_to_json(hocr_file_path):
f = None
doc = None
final_response = {}
try:
with open(hocr_file_path, 'r', encoding='utf-8-sig') as f:
doc = html.parse(f)
response_di... | PypiClean |
/bmcs-0.0.2a28-py3-none-any.whl/stats/spirrid_bak/rf.py |
from etsproxy.traits.api import HasTraits, List, Str, Property, Event, \
on_trait_change, cached_property, Tuple
from etsproxy.traits.ui.api import View, Item, VGroup
from inspect import getargspec
import numpy as np
import string
class RF(HasTraits):
qname = Property
def _get_qname(self):
retur... | PypiClean |
/plothist-0.5.5.tar.gz/plothist-0.5.5/docs/usage/style.rst | .. _usage-style-label:
=======================
Style, fonts and colors
=======================
Setting style
=============
``import plothist`` automatically sets the matplotlib style to a presentation and publication ready style, with large and readable axis labels and legend.
Latin Modern fonts are used by default... | PypiClean |
/seldonian_experiments-0.2.3-py3-none-any.whl/experiments/headless_utils.py |
import os
import pickle
import numpy as np
import math
from seldonian.RL.RL_runner import create_agent, run_trial_given_agent_and_env
from seldonian.utils.stats_utils import weighted_sum_gamma
from seldonian.dataset import SupervisedDataSet
import torch
from torch.utils.data import DataLoader
import torch.nn as nn
f... | PypiClean |
/pymape-0.1.0a4.tar.gz/pymape-0.1.0a4/src/mape/remote/redis/rx_utils.py | from __future__ import annotations
import asyncio
import logging
import aioredis
from functools import partial
import rx
from rx.subject import Subject
from rx.core import Observer, Observable
from rx.disposable import Disposable
from rx import operators as ops
from typing import List
import mape
from mape.base_ele... | PypiClean |
/smscx_client-0.1.13.tar.gz/smscx_client-0.1.13/smscx_client/model/info.py | import re # noqa: F401
import sys # noqa: F401
from smscx_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_type,
v... | PypiClean |
/fsbotlogin-0.0.1.tar.gz/fsbotlogin-0.0.1/README.txt | This is a simple auto-login bot using python. In this present scenario, every website uses authentication and we have to log in by entering proper credentials. But sometimes it becomes very hectic to login again and again to a particular website. So, to come out of this problem lets, built our own auto login bot using ... | PypiClean |
/qa_analytics_insights-1.0.3.tar.gz/qa_analytics_insights-1.0.3/src/qa_analytics_insights/xml_processor.py | import threading
from queue import Queue
from typing import List # noqa: F401
from qa_analytics_insights.data_classes import TestSuite # noqa: F401
from qa_analytics_insights.patch_fetcher import PathFetcher
from qa_analytics_insights.xml_filter import XMLFilter
from qa_analytics_insights.xml_loader import XMLLoader... | PypiClean |
/great_expectations-0.17.14.tar.gz/great_expectations-0.17.14/great_expectations/cli/suite.py | import copy
import os
import sys
from typing import Any, Dict, List, Optional, Tuple, Union
import click
from great_expectations import DataContext
from great_expectations import exceptions as gx_exceptions
from great_expectations.cli import toolkit
# noinspection PyPep8Naming
from great_expectations.cli.cli_message... | PypiClean |
/X6Tunnel-0.2.0.tar.gz/X6Tunnel-0.2.0/spiderx/httpclient/baseclient.py | if __name__ == "__main__" :
import sys, os.path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
import cStringIO
import urllib
import socket
import gzip
import zlib
import model
import cookie
import parser
from spiderx.core import errortrace
from spiderx.core import ilog
... | PypiClean |
/Freddie-0.9.8-py3-none-any.whl/freddie/viewsets/dependencies.py | from collections import UserDict
from re import compile as re_compile, sub as re_sub
from typing import Any, Dict, Iterator, Match, Optional, Pattern, Tuple, Type, Union
from fastapi import Query
from pydantic import BaseConfig
from pydantic.dataclasses import dataclass
from pydantic.fields import ModelField
from ..s... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/packages/bundled/django/utils/unittest/suite.py |
import sys
import unittest
from django.utils.unittest import case, util
__unittest = True
class BaseTestSuite(unittest.TestSuite):
"""A simple test suite that doesn't provide class or module shared fixtures.
"""
def __init__(self, tests=()):
self._tests = []
self.addTests(tests)
def... | PypiClean |
/django-selenium-boilerplate-0.0.6.tar.gz/django-selenium-boilerplate-0.0.6/selenium_boilerplate/__init__.py | import os
import time
from django.conf import settings
from django.core.urlresolvers import reverse
from selenium.webdriver.firefox.webdriver import WebDriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.support.ui import Select
try:
from django.contrib.staticfiles.te... | PypiClean |
/patiencebar-1.0.4.tar.gz/patiencebar-1.0.4/patiencebar.py |
###############################################################################
#
# patiencebar - Terminal progress bar compatible with multi-threading
# Copyright (C) 2016 Guillaume Schworer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Publi... | PypiClean |
/fenics-ffc-2019.1.0.tar.gz/fenics-ffc-2019.1.0/ffc/uflacs/backends/ffc/symbols.py | from ffc.log import error
# TODO: Get restriction postfix from somewhere central
def ufc_restriction_postfix(restriction):
if restriction == "+":
res = "_0"
elif restriction == "-":
res = "_1"
else:
res = ""
return res
def format_mt_name(basename, mt):
"Format variable na... | PypiClean |
/bottle_suite-0.0.17-py3-none-any.whl/bottle_suite/resources.py | from __future__ import annotations
from bottle_rest import Resource
import toml
from typing import TYPE_CHECKING
from bottle import response
if TYPE_CHECKING:
from .bottle_suite import BottleSuite
SQLITE_TYPES = [
"INT",
"INTEGER",
"TINYINT",
"SMALLINT",
"MEDIUMINT",
"BIGINT",
"UNSIGNE... | PypiClean |
/bitsmiths-fura-2.2.3.tar.gz/bitsmiths-fura-2.2.3/bs_fura/db/dao_async/postgresql/usr_select_all.py | import datetime
import uuid
import time
import mettle.lib
import mettle.io
import mettle.db
from bs_fura.db.tables.usr import tUsr
class dUsrSelectAll:
__slots__ = ("_dbcon", "_dbstmnt", "orec")
def __init__(self, dbcon: mettle.db.IAConnect):
"""
Constructor.
:param dbcon: Mettle dat... | PypiClean |
/metadrive_simulator-0.4.1.2-py3-none-any.whl/metadrive/render_pipeline/rplibs/yaml/yaml_py2/__init__.py | from error import *
from tokens import *
from events import *
from nodes import *
from loader import *
from dumper import *
__version__ = '3.11'
try:
from cyaml import *
__with_libyaml__ = True
except ImportError:
__with_libyaml__ = False
def scan(stream, Loader=Loader):
"""
Scan a YAML stream... | PypiClean |
/Topsis-apoorva-101903432-0.0.1.tar.gz/Topsis-apoorva-101903432-0.0.1/apoorva/topsis.py | import os
import sys
import numpy as np
import pandas as pd
def floater(a): # .astype() can be used but is not reliable
b = []
for i in a:
try:
ix = []
for j in i:
ix.append(float(j))
except:
ix = float(i)
pass
b.append(i... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/shan-lian-hui/闪恋会《闪电速成班》第二季:速成班更新内部课合集:2017_10_31高效调情聊天让妹子主动约你要你.md | # 闪恋会《闪电速成班》第二季:速成班更新内部课合集:2017_10_31高效调情聊天让妹子主动约你要你
OK 那我們今天一樣是講聊天案例,那大部分的勝利呢 可能知不上都會砍了聊天這個問題,就是還不知道怎麼聊天 不知道怎麼去推進關係,那我們今天一樣給大家分析案例,來跟大家講 詐脈子之後如何去聊天。
如何去推進關係,這是我們今天講的主題,好吧 這個跑到大陸 這是脈子跑到後退來了,好吧OK,然後呢 這個呢OK,你看 這個Mace呢是因為最近太太被封了,Mace是從默默家的,默默家的。
然後呢這個就沒有去默默去家的Mace,然後呢一樣開場,對吧 發個表情,然後Mace或者那個Hine,對吧 那就去另外 這裡怎麼說你怎麼稱呼,對 那所... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/simplisafe/__init__.py | from __future__ import annotations
import asyncio
from collections.abc import Callable, Iterable
from datetime import timedelta
from typing import Any, cast
from simplipy import API
from simplipy.device import Device, DeviceTypes
from simplipy.errors import (
EndpointUnavailableError,
InvalidCredentialsError,... | PypiClean |
/ydk-models-cisco-ios-xr-6.6.3.tar.gz/ydk-models-cisco-ios-xr-6.6.3/ydk/models/cisco_ios_xr/Cisco_IOS_XR_icpe_infra_cfg.py | import sys
from collections import OrderedDict
from ydk.types import Entity as _Entity_
from ydk.types import EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Em... | PypiClean |
/ever_beta-0.2.3-py3-none-any.whl/ever/api/metric/pixel.py | import logging
import os
import time
import numpy as np
import prettytable as pt
import pandas as pd
from ever.api.metric.confusion_matrix import ConfusionMatrix
from ever.core.logger import get_console_file_logger
EPS = 1e-7
class PixelMetric(ConfusionMatrix):
def __init__(self, num_classes, logdir=None, logge... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/traceback.py |
import collections
import itertools
import linecache
import sys
__all__ = ['extract_stack', 'extract_tb', 'format_exception',
'format_exception_only', 'format_list', 'format_stack',
'format_tb', 'print_exc', 'format_exc', 'print_exception',
'print_last', 'print_stack', 'print_tb', 'cl... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20180201/get_route_table.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetRouteTableResult',
'AwaitableGetRouteTableResult',
'get_route_table',
]
@pulumi.output_type
class GetRouteTableResult:
... | PypiClean |
/azure_cli_core-2.51.0-py3-none-any.whl/azure/cli/core/aaz/_operation.py |
# pylint: disable=too-few-public-methods, protected-access, too-many-nested-blocks, too-many-branches
import json
from azure.core.exceptions import ClientAuthenticationError, ResourceExistsError, ResourceNotFoundError, \
HttpResponseError
from azure.cli.core.azclierror import InvalidArgumentValueError
from urlli... | PypiClean |
/ethereum-etl-delphi-0.1.tar.gz/ethereum-etl-delphi-0.1/ethereumetl/mappers/receipt_mapper.py |
from ethereumetl.domain.receipt import EthReceipt
from ethereumetl.mappers.receipt_log_mapper import EthReceiptLogMapper
from ethereumetl.utils import hex_to_dec, to_normalized_address
class EthReceiptMapper(object):
def __init__(self, receipt_log_mapper=None):
if receipt_log_mapper is None:
... | PypiClean |
/towerpy-rd-1.0.2.tar.gz/towerpy-rd-1.0.2/towerpy/eclass/snr.py |
import warnings
import numpy as np
from ..datavis import rad_display
warnings.filterwarnings("ignore", category=RuntimeWarning)
class SNR_Classif:
r"""
A class to compute the Signal-to-Noise Ratio on radar data.
Attributes
----------
elev_angle : float
Elevation angle at which ... | PypiClean |
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/yallist/README.md | # yallist
Yet Another Linked List
There are many doubly-linked list implementations like it, but this
one is mine.
For when an array would be too big, and a Map can't be iterated in
reverse order.
[](https://travis-ci.org/isaacs/yallist) [![Cov... | PypiClean |
/django-m2m-fix-1.0.0.tar.gz/django-m2m-fix-1.0.0/django/contrib/contenttypes/views.py | from django.apps import apps
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404, HttpResponseRedirect
from django.utils.translation import gettext as _
def shortcut... | PypiClean |
/osmium-2.15.0.tar.gz/osmium-2.15.0/contrib/libosmium/CONTRIBUTING.md |
Some rules for contributing to this project:
* Please open a separate issue for each problem, question, or comment you have.
Do not re-use existing issues for other topics, even if they are similar. This
keeps issues small and manageable and makes it much easier to follow through
and make sure each problem is t... | PypiClean |
/Stealthy-wavelink-1.1.1.tar.gz/Stealthy-wavelink-1.1.1/wavelink/stats.py | from __future__ import annotations
from typing import Any, Dict, TYPE_CHECKING
if TYPE_CHECKING:
from .pool import Node
__all__ = (
"Penalty",
"Stats",
)
class Penalty:
def __init__(self, stats: Stats):
self.player_penalty: int = stats.playing_players
self.cpu_penalty: float = 1.05... | PypiClean |
/collective.js.leaflet-1.0.0.tar.gz/collective.js.leaflet-1.0.0/src/collective/js/leaflet/browser/resources/Leaflet/spec/suites/control/Control.AttributionSpec.js | describe("Control.Attribution", function () {
var map, control, container;
beforeEach(function () {
map = L.map(document.createElement('div'));
control = new L.Control.Attribution({
prefix: 'prefix'
}).addTo(map);
container = control.getContainer();
});
it("contains just prefix if no attributions adde... | PypiClean |
/django-page-0.18.0.tar.gz/django-page-0.18.0/page/migrations/0006_auto_20181208_2018.py |
from django.db import migrations, models
import django.db.models.deletion
import easy_thumbnails.fields
class Migration(migrations.Migration):
dependencies = [
('page', '0005_auto_20181202_1846'),
]
operations = [
migrations.CreateModel(
name='Slide',
fields=[
... | PypiClean |
/cdktf-cdktf-provider-github-11.0.1.tar.gz/cdktf-cdktf-provider-github-11.0.1/src/cdktf_cdktf_provider_github/data_github_repository_environments/__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 cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class DataGithubRepositoryEnvironments(
_cdktf_9a9027ec.... | PypiClean |
/biothings_explorer-1.1.0-py3-none-any.whl/biothings_explorer/api_output_parser.py | from .json_transformer import Transformer
class OutputParser():
def __init__(self, res, mapping, batch_mode=False, api=None, api_type=None):
self.api = api
self.api_type = api_type
self.response = res
self.mapping = mapping
self.batch_mode = batch_mode
def parse_biothi... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/packages/dist/requests/packages/chardet/charsetgroupprober.py |
from . import constants
import sys
from .charsetprober import CharSetProber
class CharSetGroupProber(CharSetProber):
def __init__(self):
CharSetProber.__init__(self)
self._mActiveNum = 0
self._mProbers = []
self._mBestGuessProber = None
def reset(self):
CharSetProber.... | PypiClean |
/sol-usb-0.2.0.tar.gz/sol-usb-0.2.0/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<!--
Unreleased template stuff
## [Unreleased]
### Added
### Chang... | PypiClean |
/hestia-earth-validation-0.23.0.tar.gz/hestia-earth-validation-0.23.0/hestia_earth/validation/validators/completeness.py | from hestia_earth.schema import SiteSiteType, TermTermType
from hestia_earth.utils.model import filter_list_term_type
from hestia_earth.utils.tools import list_sum
from hestia_earth.validation.utils import _filter_list_errors, is_live_animal_cycle
from hestia_earth.validation.terms import get_fuel_terms, get_forage_te... | PypiClean |
/ess_streaming_data_types-0.22.1-py3-none-any.whl/streaming_data_types/fbschemas/eventdata_ev42/EventMessage.py |
# namespace:
import flatbuffers
class EventMessage(object):
__slots__ = ["_tab"]
@classmethod
def GetRootAsEventMessage(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = EventMessage()
x.Init(buf, n + offset)
return x
# Event... | PypiClean |
/testcase-0.1.0.tar.gz/testcase-0.1.0/README.md | # testcase
Run tabular unit tests.
## Support
It has been tested with `unittest.TestCase`.
Basically it will work with any class that implements:
- `assertEqual(x, y)`
- `assertRaises(t)` with `__enter__` and `__exit__` handlers for `with`.
## Example
```python
import unittest
import testcase
def foo(x, y):
r... | PypiClean |
/dparse-0.6.3.tar.gz/dparse-0.6.3/CONTRIBUTING.rst | .. highlight:: shell
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com... | PypiClean |
/pysecuritas-0.1.6.tar.gz/pysecuritas-0.1.6/README.md |     
# Securitas Direct API Client
Client to access Securitas... | PypiClean |
/yellowbrickhotfix-1.2.17-py3-none-any.whl/yellowbrick/classifier/rocauc.py | ##########################################################################
## Imports
##########################################################################
import numpy as np
from sklearn.metrics import auc, roc_curve
from sklearn.preprocessing import label_binarize
from sklearn.utils.multiclass import type_of_t... | PypiClean |
/otp_generator-0.1.0.tar.gz/otp_generator-0.1.0/README.md | # OTP Generator
**A Python tool to generate and verify One Time Password (OTP)**
This tool is designed to enable developers generate and verify OTP using Python [cyrptophy](https://cryptography.io/en/latest/) package.
An OtpServer class provides basic operations for generating and verifying OTP.
There is no databa... | PypiClean |
/ultralytics_dist_yolo-99.99.tar.gz/ultralytics_dist_yolo-99.99/ultralytics/tracker/trackers/bot_sort.py |
from collections import deque
import numpy as np
from ..utils import matching
from ..utils.gmc import GMC
from ..utils.kalman_filter import KalmanFilterXYWH
from .basetrack import TrackState
from .byte_tracker import BYTETracker, STrack
class BOTrack(STrack):
shared_kalman = KalmanFilterXYWH()
def __init_... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/migrations/0096_auto__del_field_repute_question.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Repute.question'
db.delete_column(u'repute', 'question_id')
def backwards(self, orm):
... | PypiClean |
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/datatables/jszip.min.js | !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.JSZip=a()}}(function(){return function a(b,c,d){funct... | PypiClean |
/atoolkitdpt-0.0.1-py3-none-any.whl/midas/midas_net.py | import torch
import torch.nn as nn
from .base_model import BaseModel
from .blocks import FeatureFusionBlock, Interpolate, _make_encoder
class MidasNet(BaseModel):
"""Network for monocular depth estimation.
"""
def __init__(self, path=None, features=256, non_negative=True):
"""Init.
Args... | PypiClean |
/pyalink-flink-1.9-1.5.0.tar.gz/pyalink-flink-1.9-1.5.0/pyalink/alink/batch/common/batch_op_6.py |
from ..base import BatchOperator, BaseSinkBatchOp
from ..lazy.extract_model_info_batch_op import ExtractModelInfoBatchOp
from ..lazy.with_model_info_batch_op import WithModelInfoBatchOp
from ..lazy.with_train_info import WithTrainInfo
class QuantileDiscretizerTrainBatchOp(BatchOperator, WithModelInfoBatchOp):
CL... | PypiClean |
/wavepy-1.0.5.tar.gz/wavepy-1.0.5/dxchange/reader.py |
# #########################################################################
# Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved. #
# #
# Copyright 2015. UChicago Argonne, LLC. This software was produced #
# under U.S. Go... | PypiClean |
/bsn_sdk_py-1.0.6.tar.gz/bsn_sdk_py-1.0.6/bsn_sdk_py/trans/protobuf_entity/common/collection_pb2.py |
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_insertion_point(imports)
_sym_db = _symbol_database.Default()
from common import poli... | PypiClean |
/idem_aws-4.0.1-py3-none-any.whl/idem_aws/states/aws/organizations/policy.py | import copy
from typing import Any
from typing import Dict
from typing import List
__contracts__ = ["resource"]
TREQ = {
"absent": {
"require": [
"aws.organizations.policy_attachment.absent",
],
},
"present": {
"require": [
"aws.organizations.account.present... | PypiClean |
/lxd_client-1.0.0-py3-none-any.whl/lxd_client/api/profiles/get_profiles.py | from typing import Any, Dict, Optional, Union
import httpx
from ...client import Client
from ...models.background_operation_response import BackgroundOperationResponse
from ...models.error_response import ErrorResponse
from ...types import UNSET, Response, Unset
def _get_kwargs(
*,
client: Client,
recur... | PypiClean |
/openspeechs-0.1-py3-none-any.whl/openspeech/models/joint_ctc_conformer_lstm/configurations.py |
from dataclasses import dataclass, field
from openspeech.dataclass.configurations import OpenspeechDataclass
@dataclass
class JointCTCConformerLSTMConfigs(OpenspeechDataclass):
r"""
This is the configuration class to store the configuration of
a :class:`~openspeech.models.JointCTCConformerLSTM`.
It... | PypiClean |
/graphql-compiler-2.0.0b1.tar.gz/graphql-compiler-2.0.0b1/graphql_compiler/macros/__init__.py | from collections import namedtuple
from copy import copy
from graphql import parse
from graphql.language.ast import (
Directive, FieldDefinition, InterfaceTypeDefinition, ListType, Name, NamedType,
ObjectTypeDefinition
)
from graphql.language.printer import print_ast
from graphql.utils.build_ast_schema import ... | PypiClean |
/tarantula-1.1.0b1.zip/tarantula-1.1.0b1/replace.py | import os
import sys
import re
import logging
import sqlite3 as lite
import argparse
import pprint # present for testing purposes
import trailer
import getmoviedata
import common
def test(toprint):
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(toprint)
def deletemoviedata(moviepath, databasepath):
"""
For a m... | PypiClean |
/pigUI-1.0.4a0.tar.gz/pigUI-1.0.4a0/pigui/buttons.py | import pygame as pg
from pigui.widgets import *
from pigui.colors import *
from pigui.labels import Label
class AbstractButton(Widget):
"""docstring for Button"""
def __init__(self, w, h, *args, alpha=False, action=None, locked=False, **kwargs):
super().__init__(w, h, *args, alpha=alpha, **kwargs)
self.w = w
s... | PypiClean |
/cc/python/utils.py | import numpy as np
def split(num, n_jobs):
chunk_size = num // n_jobs
results = []
for i in range(0, n_jobs):
chunk_start = i*chunk_size
if i == n_jobs - 1:
chunk_end = num
else:
chunk_end = (i+1)*chunk_size
results.append([chunk_start, chunk_end])
... | PypiClean |
/snimpy-1.0.1.tar.gz/snimpy-1.0.1/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/vincentbernat/snimpy... | PypiClean |
/aec-cli-2.12.1.tar.gz/aec-cli-2.12.1/CONTRIBUTING.md | # Contributing 🌳
## Prerequisites
- make
- node (required for pyright)
- python >= 3.9
## Getting started
`make install` creates the dev environment with:
- a virtualenv in _.venv/_
- pyright in _node_modules/_
- git hooks for formatting & linting on git push
`. .venv/bin/activate` activates the virtualenv.
The... | PypiClean |
/mata_echo_discord.py-1.0.6-py3-none-any.whl/echodiscord/ext/commands/errors.py | from __future__ import annotations
from typing import Optional, Any, TYPE_CHECKING, List, Callable, Type, Tuple, Union
from discord.errors import ClientException, DiscordException
if TYPE_CHECKING:
from inspect import Parameter
from .converter import Converter
from .context import Context
from .cool... | PypiClean |
/gpflow_old-0.5-py3-none-any.whl/gpflow/gpr.py |
from __future__ import absolute_import
import tensorflow as tf
from .model import GPModel
from .densities import multivariate_normal
from .mean_functions import Zero
from . import likelihoods
from .param import DataHolder
from ._settings import settings
float_type = settings.dtypes.float_type
class GPR(GPModel):
... | PypiClean |
/malaya_speech-1.4.0rc1-py3-none-any.whl/malaya_speech/model/abstract.py | from malaya_speech.utils.execute import execute_graph
from malaya_speech.utils.astype import float_to_int
from typing import Callable
class Abstract:
def __str__(self):
return f'<{self.__name__}: {self.__model__}>'
def _execute(self, inputs, input_labels, output_labels):
return execute_graph(... | PypiClean |
/takprotobuf-0.0.1.tar.gz/takprotobuf-0.0.1/README.md | # takprotobuf
Python library to encode and decode Cursor-on-Target (CoT) messages using Protocol Buffers.
## Usage
The library currently contains two basic functions. `parseProto()` decodes a protobuf and returns the contents of the message. `xmlToProto()` encodes XML to TAK protobuf. I'll be adding an additiona... | PypiClean |
/audio_feeder-0.6.2-py3-none-any.whl/audio_feeder/resources.py | import hashlib
import importlib.resources
import os
from importlib.abc import Traversable
from pathlib import Path
from typing import Callable, Iterable, Optional, Protocol, Union
class _Comparable(Protocol):
def read_bytes(self) -> bytes: # pragma: nocover
...
def is_dir(self) -> bool: # pragma: n... | PypiClean |
/django-analytical-3.1.0.tar.gz/django-analytical-3.1.0/docs/services/clickmap.rst | ==================================
Clickmap -- visual click tracking
==================================
`Clickmap`_ is a real-time heatmap tool to track mouse clicks and scroll paths of your website visitors. Gain intelligence about what's hot and what's not, and optimize your conversion with Clickmap.
.. _`Clickmap`... | PypiClean |
/openerp-point-of-sale-7.0.406.tar.gz/openerp-point-of-sale-7.0.406/report/pos_users_product.py |
import time
from openerp.report import report_sxw
class pos_user_product(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(pos_user_product, self).__init__(cr, uid, name, context)
self.localcontext.update({
'time': time,
'get_data':self._get_data,
... | PypiClean |
/PyBBIO-0.10.tar.gz/PyBBIO-0.10/bbio/libraries/BBIOServer/bbio_server.py | import os, sys, urlparse, traceback, threading, time
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import HTTPServer
from bbio import *
BBIOSERVER_VERSION = "1.2"
ROOT_DIR = '%s/.BBIOServer' % os.getenv('HOME')
PAGES_DIR = "%s/pages" % ROOT_DIR
HEADER = "%s/src/header.html" % ROOT_DIR
SID... | PypiClean |
/mpi-cbs.mediforms-0.1.0a13.tar.gz/mpi-cbs.mediforms-0.1.0a13/mpi_cbs/mediforms/models.py | import re
import string
import unicodedata
from uuid import uuid4
from django.conf import settings
from django.db import models
from django.utils.translation import gettext_lazy as _
def sanitize_string(_string):
# replace umlauts
_string = re.sub('[ä]', 'ae', _string)
_string = re.sub('[Ä]', 'Ae', _stri... | PypiClean |
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/image/get_instance.py |
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__ = [
'GetInstanceResult',
'AwaitableGetInstanceResult',
'get_instance',
'get_instance_output',
]
@pulu... | PypiClean |
/invana-engine-0.0.12.tar.gz/invana-engine-0.0.12/README.md | # invana-engine
GraphQL API and Insights engine for Apache TinkerPop supported graph databases.
**Note: Under active development.**
[](https://github.com/invanalabs/invana-engine/blob/master/LICENSE)
[:
def __init__(self):
self._ext_info = None
self._gmt_create = None
self._gmt_modified = None
self._item_id = None
self._item_name = None
self._item_order_id = None
... | PypiClean |
/codat-lending-0.1.0.tar.gz/codat-lending-0.1.0/src/codatlending/models/shared/balancesheet.py |
from __future__ import annotations
import dataclasses
from ..shared import reportline as shared_reportline
from codatlending import utils
from dataclasses_json import Undefined, dataclass_json
from typing import Optional
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class BalanceSheet:
net... | PypiClean |
/aws-cdk.cx-api-2.94.0.tar.gz/aws-cdk.cx-api-2.94.0/src/aws_cdk/cx_api/__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.cloud_assembly_schema as _aws_cdk_cloud_assembly_schema_cae1d136
@jsii.data_type(
jsii_type="@aws-cdk/cx-api.Assembl... | PypiClean |
/cap-python-0.1.16.tar.gz/cap-python-0.1.16/cap/cap/utils.py | __author__ = 'Administrator'
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse,HttpResponseRedirect
from django.contrib.auth.models import Group
import socket
import os
... | PypiClean |
/dl_track_us-0.1.2.2.tar.gz/dl_track_us-0.1.2.2/DL_Track_US/gui_helpers/model_training.py | import os
import tkinter as tk
import matplotlib.pyplot as plt
import numpy as np
from keras import backend as K
from keras.callbacks import CSVLogger, EarlyStopping, ModelCheckpoint, ReduceLROnPlateau
from keras.layers import Activation, BatchNormalization, Input
from keras.models import Model
from keras.optimizers i... | PypiClean |
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/ops/distributions/categorical.py | """The Categorical distribution class."""
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import mat... | PypiClean |
/fragmented-mp4stream-pkg-0.0.4.tar.gz/fragmented-mp4stream-pkg-0.0.4/src/fragmentedmp4stream/atom/esds.py | from .atom import FullBox, full_box_derived
class Descriptor:
"""A descriptor for MPEG-4 video, as defined in the MPEG-4 specification ISO/IEC 14496-1
and subject to the restrictions for storage in MPEG-4 files specified in ISO/IEC 14496-14"""
def __init__(self, tag, file):
self._tag = tag
... | PypiClean |
/pyrad_arm-0.6.0.tar.gz/pyrad_arm-0.6.0/pyrad/prod/process_traj_products.py | from warnings import warn
from ..io.io_aux import get_save_dir, make_filename
from ..io.timeseries import TimeSeries
from ..graph.plots import plot_pos
def generate_traj_product(traj, prdcfg):
"""
Generates trajectory products. Accepted product types:
'TRAJ_MAP': Plots the trajectory on a lat-lon map... | PypiClean |
/hyperlink-21.0.0.tar.gz/hyperlink-21.0.0/CHANGELOG.md | # Hyperlink Changelog
## 20.0.1
*(August 4, 2020)*
Rerelease to fix packaging metadata around conditional requirements.
See [issue #133](https://github.com/python-hyper/hyperlink/issues/133)
for more details.
## 20.0.0
*(August 3, 2020)*
* CPython 3.7 and 3.8 and PyPy3 added to test matrix
* Hyperlink now has typ... | PypiClean |
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/lib/node_modules/npm/node_modules/ip-regex/readme.md | # ip-regex
> Regular expression for matching IP addresses
## Install
```
$ npm install ip-regex
```
This module targets Node.js 8 or later and the latest version of Chrome, Firefox, and Safari. If you want support for older browsers, use version 2.1.0: `npm install ip-regex@2.1.0`
## Usage
```js
const ipRegex =... | PypiClean |
/testc1-1.0.0.tar.gz/testc1-1.0.0/apimaticcalculator/http/requests_client.py | from cachecontrol import CacheControl
from requests import session
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from apimaticcalculator.http.http_client import HttpClient
from apimaticcalculator.http.http_method_enum import HttpMethodEnum
from apimaticcalculator.http.http_response imp... | PypiClean |
/denv_creator-0.0.1-py3-none-any.whl/containers/redis.py | import config
"""
...
Usage
---------
redis = redis('prefix name e.g. myprojectname')
redis.write_to_*()
"""
class Redis:
"""
A class used to represent the redis container
...
Attributes
----------
prefix : str
The prefix applied for all container names
container_name : str
... | PypiClean |
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/mkdirp/readme.markdown |
Like `mkdir -p`, but in Node.js!
Now with a modern API and no\* bugs!
<small>\* may contain some bugs</small>
# example
## pow.js
```js
const mkdirp = require('mkdirp')
// return value is a Promise resolving to the first directory created
mkdirp('/tmp/foo/bar/baz').then(made =>
console.log(`made directories, s... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.