id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/wikiseriesbaslib-0.1.0.tar.gz/wikiseriesbaslib-0.1.0/USAGE.rst | =====
Usage
=====
To develop on wikiseriesbaslib:
.. code-block:: bash
# The following commands require pipenv as a dependency
# To lint the project
_CI/scripts/lint.py
# To execute the testing
_CI/scripts/test.py
# To create a graph of the package and dependency tree
_CI/scripts/grap... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/eventgrid/v20220615/list_partner_namespace_shared_access_keys.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__all__ = [
'ListPartnerNamespaceSharedAccessKeysResult',
'AwaitableListPartnerNamespaceSharedAccessKeysResult',
'list_partner_namespace_shared_ac... | PypiClean |
/heist-salt-6.0.2.tar.gz/heist-salt-6.0.2/heist_salt/artifact/salt.py | import hashlib
import json
import os
import pathlib
import re
import shutil
import sys
import tarfile
import tempfile
import urllib
import warnings
import zipfile
from pathlib import Path
import aiohttp
from packaging.version import Version
async def repo_data(hub, salt_repo_url):
"""
Query repo.json file to... | PypiClean |
/beaker-common-28.3.tar.gz/beaker-common-28.3/bkr/common/hub.py |
# 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.
import base64
import os
import tempfile
import gssapi
import six
impo... | PypiClean |
/iseroo_kotprog-0.0.1-py3-none-any.whl/iseroo_kotprog/utils/character.py | from typing import *
from utils.functions import get_item_sprite_image, scale_sprites
from utils.inventory import Inventory
import random
import pygame
from utils.config import Config
class Character:
def __init__(self) -> None:
self.sprites = {
'walk': [],
'died': [],
... | PypiClean |
/LightNER-0.3.0.tar.gz/LightNER-0.3.0/lightner/crf_model/denselm.py | import time
import torch
import torch.nn as nn
import torch.nn.functional as F
import lightner.utils as utils
from lightner.basic_modules.rnn import rnn_builder
class DenseLM(nn.Module):
"""
The language model for the dense rnns with layer-wise selection.
Parameters
----------
ori_lm : ``torch.nn... | PypiClean |
/pybullet-3.2.5-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl/pybullet_envs/minitaur/agents/tools/in_graph_batch_env.py | """Batch of environments inside the TensorFlow graph."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import pdb
import gym
import tf.compat.v1 as tf
class InGraphBatchEnv(object):
"""Batch of environments inside the TensorFlow graph.
The batch of ... | PypiClean |
/AutoYOLObile-0.0.10.tar.gz/AutoYOLObile-0.0.10/ModelOpt/rt3d_pruning/video_utils/video_dataset.py | import os
import numpy as np
import lmdb
import six
import torch
from PIL import Image
import torch.utils.data as data
import pyarrow as pa
def random_clip(video_frames, sampling_rate, frames_per_clip, fixed_offset=False):
"""
Args:
video_frames (int): total frame number of a video
sampling_... | PypiClean |
/djangocms_cascade-2.3.14-py3-none-any.whl/cmsplugin_cascade/static/cascade/js/underscore.js |
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `exports` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Establish the object that gets returned to break out of a loop iter... | PypiClean |
/tc_pypeflow-2020.2.tar.gz/tc_pypeflow-2020.2/README.md | PypeFlow
--------
Python package for designing and analyzing piping networks.
Designing a piping network involves finding a solution for two kinds of problems:
1. The design flow rates in the pipe sections composing the network are known. Also known are the available
friction losses due to fluid flow in the pipe sect... | PypiClean |
/scikit-my-surprise-1.1.1.tar.gz/scikit-my-surprise-1.1.1/surprise/prediction_algorithms/knns.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import numpy as np
from six import iteritems
import heapq
from .predictions import PredictionImpossible
from .algo_base import AlgoBase
# Important note: as soon as an algorithm uses a similarity measure, it ... | PypiClean |
/FC%20CloudTrails%20SDK-1.0.4.tar.gz/FC CloudTrails SDK-1.0.4/fc/cloudtrailsdk/decorators/api_gateway_tracker.py | import logging
from functools import wraps
from fc.cloudtrailsdk.utils.functions import send_custom_logger, send_exception_logger
import json
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def build_apigateway_response(response):
"""
:param response:
:return:
"""
return {
'sta... | PypiClean |
/petbox_dca-1.0.7-py3-none-any.whl/petbox/dca/base.py | import sys
from math import exp, expm1, log, log10, log1p, ceil as ceiling, floor
from functools import partial
from itertools import starmap
import warnings
import dataclasses as dc
from dataclasses import dataclass
from numpy import ndarray
import numpy as np
from numpy.random import RandomState
from scipy.special... | PypiClean |
/pcart-1c-soap-api-1.98.8.tar.gz/pcart-1c-soap-api-1.98.8/soaplib/core/test/wsdl/port_service_services.py |
from soaplib.core.model.primitive import String
from soaplib.core.service import soap, DefinitionBase
class S1(DefinitionBase):
name = 'S1Fools'
__namespace__ = 'Hippity'
@soap(String, _returns=String)
def echo_string_s1(self, string):
return string
class S2(DefinitionBase):
name = 'S2F... | PypiClean |
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/request/index.js |
'use strict'
var extend = require('extend')
var cookies = require('./lib/cookies')
var helpers = require('./lib/helpers')
var paramsHaveRequestBody = helpers.paramsHaveRequestBody
// organize params for patch, post, put, head, del
function initParams (uri, options, callback) {
if (typeof options === 'function') {... | PypiClean |
/sanskrit_parser-0.2.6.tar.gz/sanskrit_parser-0.2.6/sanskrit_parser/base/sanskrit_base.py | from __future__ import print_function
from indic_transliteration import sanscript
from indic_transliteration import detect
from sanskrit_parser.util import normalization
from contextlib import contextmanager
import logging
import six
logger = logging.getLogger(__name__)
denormalize = False
class SanskritString(obje... | PypiClean |
/WHU_ScoreChecker-1.0.2-py3-none-any.whl/scorechecker/course/query.py | def search_start_year(score_table, start_year):
"""
Search courses from 'start_year'.
'start_year' is a list: [year, semester] and will be converted to a tuple.
"""
return {v for v in score_table if (v[5], v[6]) >= tuple(start_year)}
def search_stop_year(score_table, stop_year):
"""
Searc... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md | # `no-implicit-any-catch`
Disallow usage of the implicit `any` type in catch clauses.
TypeScript 4.0 added support for adding an explicit `any` or `unknown` type annotation on a catch clause variable.
By default, TypeScript will type a catch clause variable as `any`, so explicitly annotating it as `unknown` can add ... | PypiClean |
/pyswitchlib-1.2.0.tar.gz/pyswitchlib-1.2.0/pyswitch/snmp/base/acl/params_validator.py | def validate_params_mlx_add_ipv4_rule_acl(**parameters):
required_params = ['source', 'acl_name', 'action']
accepted_params = ['precedence', 'dscp_marking', 'copy_sflow', 'mirror',
'drop_precedence_force', 'vlan_id',
'log', 'priority_mapping', 'seq_id', 'destinatio... | PypiClean |
/hubmap-commons-2.1.10.tar.gz/hubmap-commons-2.1.10/hubmap_commons/globus_file_helper.py |
import os
import logging
import globus_sdk
from globus_sdk import AccessTokenAuthorizer, TransferClient, AuthClient
import configparser
from pprint import pprint
from globus_sdk.exc import TransferAPIError
from hubmap_commons.hm_auth import AuthCache
class GlobusFileHelper:
transfer_token = None
globus_... | PypiClean |
/heresuperset-0.27.6.tar.gz/heresuperset-0.27.6/superset/static/assets/dist/common.59e9b7f67a30c7040bbf.entry.js | !function(t){function e(e){for(var r,u,s=e[0],i=e[1],l=e[2],c=0,d=[];c<s.length;c++)u=s[c],a[u]&&d.push(a[u][0]),a[u]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);for(f&&f(e);d.length;)d.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],r=!0,s=1;... | PypiClean |
/liveboot-0.0.4-py3-none-any.whl/liveboot-0.0.4.data/scripts/build-rpm-liveboot.sh |
# refactor for both fedora and rocky
COMMAND=$(basename $0)
DIR=$(dirname $0)
cd $DIR
DEFAULT_OUTPUT_DIR=/srv/shares/bootable-images
function usage() {
echo "Usage: $COMMAND [-i ks-file] [-d output-dir] [-o image-name] distro"
echo " distro: e.g. f38 or r9.1"
echo " -i: path to kickstart file"
ec... | PypiClean |
/initgitdoc-0.3.6-py3-none-any.whl/initgitdoc-0.3.6.data/scripts/docgitinit.py | '''TralahTek LLC Git Repository Code Documentation ToolKit
Making Code Documentation Less of a Pain in the Ass.'''
import glob
import os
from argparse import ArgumentParser
import templates
class GitRepo:
def link_scripts():
'generate links to files in the github project.'
base_url = "https://gith... | PypiClean |
/mkdocs-dark_enhanced_dirtree-1.2.0.tar.gz/mkdocs-dark_enhanced_dirtree-1.2.0/dark_enhanced_dirtree/highlight/es/languages/mipsasm.min.js | var hljsGrammar=(()=>{"use strict";return e=>({name:"MIPS Assembly",
case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,
meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long ... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dijit/form/_FormSelectWidget.js | define("dijit/form/_FormSelectWidget",["dojo/_base/array","dojo/_base/Deferred","dojo/aspect","dojo/data/util/sorter","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/when","dojo/store/util/QueryResults","./_FormValueWidget"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_... | PypiClean |
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/jquery/src/attributes/attr.js | define( [
"../core",
"../core/access",
"../core/nodeName",
"./support",
"../var/rnothtmlwhite",
"../selector"
], function( jQuery, access, nodeName, support, rnothtmlwhite ) {
"use strict";
var boolHook,
attrHandle = jQuery.expr.attrHandle;
jQuery.fn.extend( {
attr: function( name, value ) {
return access(... | PypiClean |
/django-tastypie-0.14.6.tar.gz/django-tastypie-0.14.6/docs/contributing.rst | ============
Contributing
============
Tastypie is open-source and, as such, grows (or shrinks) & improves in part
due to the community. Below are some guidelines on how to help with the project.
Philosophy
==========
* Tastypie is BSD-licensed. All contributed code must be either
* the original work of the auth... | PypiClean |
/cosmic_ray-8.3.7.tar.gz/cosmic_ray-8.3.7/src/cosmic_ray/operators/exception_replacer.py | "Implementation of the exception-replacement operator."
from cosmic_ray.exceptions import CosmicRayTestingException
from parso.python.tree import Name, PythonNode
from .operator import Example, Operator
class ExceptionReplacer(Operator):
"""An operator that modifies exception handlers."""
def mutation_posi... | PypiClean |
/dschmidt-cdktf-provider-google_beta-0.1.0.tar.gz/dschmidt-cdktf-provider-google_beta-0.1.0/src/dschmidt_cdktf_provider_google_beta/data_google_firebase_web_app_config/__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
import constructs
class DataGoogleFirebaseWebAppConfigA(
cdktf.TerraformDataSource,
metaclass=jsii.JSIIMeta,
... | PypiClean |
/aim-with-auth-3.14.6.tar.gz/aim-with-auth-3.14.6/aim/storage/container.py | from typing import Iterator, Tuple, Union
from typing import TYPE_CHECKING
from aim.storage import utils
from aim.storage.utils import interfaces
if TYPE_CHECKING:
from aim.storage.treeview import TreeView
from aim.storage.types import BLOB
ContainerKey = bytes
ContainerValue = Union[bytes, 'BLOB']
class ... | PypiClean |
/Superdesk_Core-2.5.3-py3-none-any.whl/superdesk/sams/assets.py | import ast
import logging
from flask import request, current_app as app
from flask_babel import _
from bson import ObjectId
import superdesk
from superdesk.errors import SuperdeskApiError
from superdesk.notification import push_notification
from superdesk.storage.superdesk_file import generate_response_for_file
from s... | PypiClean |
/cnwigee-1.0.2.tar.gz/cnwigee-1.0.2/src/cnwi/moa.py | import os
from itertools import combinations
from typing import Dict, Any, Union, List
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
class MOATable(pd.DataFrame):
def __init__(self, table) -> None:
super().__init__(table)
def moa_calc(dfin: pd.DataFrame, label: str) -> M... | PypiClean |
/SocialCommons-0.0.5.tar.gz/SocialCommons-0.0.5/socialcommons/clarifai_util.py | the image for invalid content"""
from clarifai.rest import ClarifaiApp
from clarifai.rest import Workflow
from selenium.common.exceptions import NoSuchElementException
def check_image(browser,
clarifai_api_key,
img_tags,
img_tags_skip_if_contain,
logger,... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojo/dnd/autoscroll.js | define("dojo/dnd/autoscroll",["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(_1,_2,_3,_4,_5,_6){
var _7={};
_1.setObject("dojo.dnd.autoscroll",_7);
_7.getViewport=_6.getBox;
_7.V_TRIGGER_AUTOSCROLL=32;
_7.H_TRIGGER_AUTOSCROLL=32;
_7.V_AUTOSCROLL_VALUE=16;
_7.H_AUTOSC... | PypiClean |
/samspy-0.0.2.tar.gz/samspy-0.0.2/README.rst | SamsPy: Simple Aerospace ModelS in Python
=========================================
Version: 0.0.2
*SamsPy* is a collection of simple aerospace models in Python.
(Anyway, that's the plan.)
It has been developed on Linux (Ubuntu 12.04, now 16.04)
and Mac OS X (Mavericks, now Sierra)
using Python 3 and the correspondi... | PypiClean |
/PyWhile-0.1.7.tar.gz/PyWhile-0.1.7/pywhile/ast.py | def disp_block(block, indent):
ind = " " * indent
ret = ""
ret += '{\n'
ret += ";\n".join(statement._repr(indent + 1) for statement in block)
ret += "\n{ind}".format(ind = ind)
ret += '}\n'
return ret
class DataExp(object): pass
class SymExp(DataExp):
def __init__(self, name):
... | PypiClean |
/GinniroDQN-0.9.0.tar.gz/GinniroDQN-0.9.0/ginniro/worldmodel/recurrent_emo_imp.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class AttentionGRUCell(nn.Module):
def __init__(self, input_size, hidden_size):
super(AttentionGRUCell, self).__init__()
self.hidden_size = hidden_size
self.Wr = nn.Linear(input_size, hi... | PypiClean |
/adamix_gpt2-0.0.2-py3-none-any.whl/adamix_gpt2/gpu.py | import argparse
import time
import math
import os, sys
import itertools
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.distributed as dist
def add_gpu_params(parser: argparse.ArgumentParser):
parser.add_argument("--platform", default='k8s', type=str, help='platfor... | PypiClean |
/AiCoreSentimentStockScraper2021EtaCohort-0.0.2.tar.gz/AiCoreSentimentStockScraper2021EtaCohort-0.0.2/stock_scraper_AiCore/stock_scraper.py | import pandas as pd
from bs4 import BeautifulSoup
from urllib.request import urlopen
from urllib.request import Request
import pandas as pd
from collections import defaultdict
from tqdm import tqdm
from typing import Optional
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
analyzer = SentimentIn... | PypiClean |
/xycepymi-7.4.0.tar.gz/xycepymi-7.4.0/README.md | Future location of Python enabled Xyce.
In the meantime, check out Xyce-PyMi at:
https://github.com/xyce/xyce
with instruction details at:
https://cfwebprod.sandia.gov/cfdocs/CompResearch/docs/Xyce-PyMi-Guide.pdf
About Xyce:
Xyce (rhymes with "spice") is an open source, SPICE-compatible, high-performance analog c... | PypiClean |
/async-suds-v7k-1.0.8.3.tar.gz/async-suds-v7k-1.0.8.3/asyncsuds/mx/typer.py | from asyncsuds import *
from asyncsuds.mx import *
from asyncsuds.sax import Namespace as NS
from asyncsuds.sax.text import Text
class Typer:
"""
Provides XML node typing as either automatic or manual.
@cvar types: A dict of class to xs type mapping.
@type types: dict
"""
types = {
i... | PypiClean |
/nemo_toolkit-1.20.0-py3-none-any.whl/nemo/collections/nlp/modules/common/gpt_module.py |
import os
import re
from typing import Dict, Optional
import torch
from nemo.core.classes import NeuralModule
from nemo.core.classes.exportable import Exportable
from nemo.core.neural_types import ChannelType, FloatType, IntType, MaskType, NeuralType, StringType, VoidType
from nemo.utils import logging
__all__ = ['... | PypiClean |
/Flask-Ask-alphavideo-2.1.0.tar.gz/Flask-Ask-alphavideo-2.1.0/docs/requests.rst | Handling Requests
=================
With the Alexa Skills Kit, spoken phrases are mapped to actions executed on a server. Alexa converts
speech into JSON and delivers the JSON to your application.
For example, the phrase:
"Alexa, Tell HelloApp to say hi to John"
produces JSON like the following:
.. code-block::... | PypiClean |
/bots-ediint-3.3.1.tar.gz/bots-ediint-3.3.1/bots/webserver.py |
from __future__ import unicode_literals, print_function
import os
import sys
try:
from cheroot.server import get_ssl_adapter_class
from cheroot.wsgi import Server, PathInfoDispatcher
except ImportError:
from cherrypy.wsgiserver import (
get_ssl_adapter_class,
CherryPyWSGIServer as Server,
... | PypiClean |
/dq-notebook-6.0.2.tar.gz/dq-notebook-6.0.2/notebook/static/components/MathJax/localization/th/FontWarnings.js | MathJax.Localization.addTranslation("th","FontWarnings",{version:"2.7.7",isLoaded:true,strings:{webFont:"MathJax \u0E43\u0E0A\u0E49\u0E41\u0E1A\u0E1A\u0E2D\u0E31\u0E01\u0E29\u0E23\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E1A\u0E19\u0E40\u0E27\u0E47\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E41\u0E2A\u0E14\u0E07\u0E2A\u0... | PypiClean |
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/cctbx/miller/reindexing.py | from __future__ import absolute_import, division, print_function
import libtbx
from six.moves import zip
class assistant(libtbx.slots_getstate_setstate):
__slots__ = [
"lattice_group",
"intensity_group",
"miller_indices",
"cb_ops",
"perms",
"inv_perms",
"i_j_multiplication_table",
"i... | PypiClean |
/openscap-report-0.2.4.tar.gz/openscap-report-0.2.4/docs/modules/openscap_report.rst | openscap\_report package
========================
Subpackages
-----------
.. toctree::
:maxdepth: 4
openscap_report.report_generators
openscap_report.scap_results_parser
Submodules
----------
openscap\_report.cli module
---------------------------
.. automodule:: openscap_report.cli
:members:
:undo... | PypiClean |
/mongo_unit_of_work-0.1.0-py3-none-any.whl/mongo_unit_of_work/unit_of_work_tools.py | from dddmisc import AbstractAsyncUnitOfWork
from motor.motor_asyncio import AsyncIOMotorClient
from pymongo.read_concern import ReadConcern
from pymongo.write_concern import WriteConcern
from types import MappingProxyType
from typing import Iterable
from .abstraction import AbstractMongoRepository
class RepositoryWr... | PypiClean |
/metpx_sr3-3.0.43-py3-none-any.whl/sarracenia/flowcb/nodupe/redis.py |
import os
import urllib.parse
import logging
from sarracenia import nowflt, timestr2flt, timeflt2str
from sarracenia.flowcb.nodupe import NoDupe
import redis
logger = logging.getLogger(__name__)
class Redis(NoDupe):
"""
generalised duplicate suppression for sr3 programs. It is used as a
time based... | PypiClean |
/tvmx-0.0.6-py3-none-any.whl/tvm/contrib/popen_pool.py | import os
import sys
import struct
import threading
import subprocess
import concurrent.futures
from enum import IntEnum
from collections import namedtuple
import pickle
def kill_child_processes(pid):
"""Kill all child processes recursively for a given pid.
Parameters
----------
pid : int
The... | PypiClean |
/inception-0.0.3.tar.gz/inception-0.0.3/README.rst | ============== =============== ========= ============
VERSION DOWNLOADS TESTS COVERAGE
============== =============== ========= ============
|pip version| |pip downloads| |travis| |coveralls|
============== =============== ========= ============
**STILL UNDER HEAVY DEVELOPMENT**
Chec... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/boston_housing.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from observations.util import maybe_download_and_extract
def boston_housing(path):
"""Load the Boston Housing data set [@harrison1978hedonic].
It contains 506 examples of housing values in subu... | PypiClean |
/honeybee-doe2-0.9.2.tar.gz/honeybee-doe2-0.9.2/honeybee_doe2/properties/inputils/blocks.py |
top_level = 'INPUT ..\n\n\n\n'
spacer = '\n\n'
sd_brk = '$ ---------------------------------------------------------\n'
star_brk = '$ *********************************************************\n'
star_blnk = '$ ** **\n'
abort_diag = '{sd_brk}$ Abort, Di... | PypiClean |
/sft_test-2.2.tar.gz/sft_test-2.2/README.md | ## SynapsePayRest-Python
Simple API wrapper for SynapsePay v3 REST API.
## Code Example
Check out [samples.md](samples.md) and our [API documentation](http://docs.synapsepay.com/v3.1) for examples.
## Installation
**note**: we are temporarily using the package name "synapse_pay_rest_native" on pip, but you should ... | PypiClean |
/d_heap-0.0.2.tar.gz/d_heap-0.0.2/README.rst | D-ary Heap
##########
.. image:: https://img.shields.io/badge/d_heap-0.0.2-green.svg
:target: https://pypi.org/project/d-heap/
.. image:: https://travis-ci.org/rameshrvr/d-ary_heap.svg?branch=master
:target: https://travis-ci.org/rameshrvr/d-ary_heap
Python functions for working with D-ary Heap (Heap with more... | PypiClean |
/megrok.yui-2.5.2.1.tar.gz/megrok.yui-2.5.2.1/src/megrok/yui/yui-build/colorpicker/colorpicker.js | * Provides color conversion and validation utils
* @class YAHOO.util.Color
* @namespace YAHOO.util
*/
YAHOO.util.Color = function() {
var HCHARS="0123456789ABCDEF", lang=YAHOO.lang;
return {
/**
* Converts 0-1 to 0-255
* @method real2dec
* @param n {float} the number to... | PypiClean |
/Qtumblr-0.1.tar.gz/Qtumblr-0.1/qtumblr/qtumblr-client.py | from PyQt4 import QtCore, QtGui
import sys,urllib2
try:
from qtumblr.gui.main_ui import Main_widget
from qtumblr.tumblr import Api,TumblrAuthError
from qtumblr.dashboard import Dashboard
except ImportError:
from gui.main_ui import Main_widget
from tumblr import Api,TumblrAuthError
from d... | PypiClean |
/odoo12_addon_l10n_br_nfe_spec-12.0.4.0.1-py3-none-any.whl/odoo/addons/l10n_br_nfe_spec/models/v4_0/leiaute_nfe_v4_00.py | import textwrap
from odoo import fields, models
from .leiaute_cons_sit_nfe_v4_00 import TprotNfe
from .tipos_basico_v4_00 import (
TAMB,
TCODUFIBGE,
TMOD,
TUF,
TUFEMI,
)
__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe"
"Código de Situação Tributária do COFINS"
COFINSALIQ_CST = [
(
... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayUserAntarchiveIdentityrelationAddRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayUserAntarchiveIdentityrelationAddModel import AlipayUserAntarchiveIdentityrelationAddModel
class AlipayUserAntarchiveIdentityrelationAddRequest(object):
def __init__(s... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/lactobacillusnamurensis.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def LactobacillusNamurensis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs... | PypiClean |
/trx_icbc-1.1-py3-none-any.whl/trx_icbc/cv.py | from fbprophet import Prophet
import logging
from fbprophet.diagnostics import cross_validation
from fbprophet.diagnostics import performance_metrics
import pandas as pd
from datetime import datetime, timedelta
import os
logger = logging.getLogger('trx_main.' + __name__)
class suppress_stdout_stderr(object):
"""c... | PypiClean |
/collective.tablepage-0.10.6.tar.gz/collective.tablepage-0.10.6/collective/tablepage/fields/select.py |
from Products.PageTemplates import Expressions
from zope.interface import implements
from collective.tablepage.fields.interfaces import ISelectColumnField
from collective.tablepage.fields.base import BaseField
from zope.tales.tales import CompilerError
from zope.component import getMultiAdapter
from collective.tablepa... | PypiClean |
/PyDapi2-0.6.2-py3-none-any.whl/demu/DEmuBaseBoard.py | import os
from dapi2.dreg import RegContainer, RegContainerReader
from dapi2.dmsg.common import MsgType
from dapi2.dmsg.message import BaseMessage
from dapi2.common import DApi2Side
from demu.DEmuPPA import DEmuPPA
from enum import IntEnum
class E_MESSAGE_ERROR(IntEnum):
DAPI_ERR_OK = 0x00,
DAPI_ERR_WRONG_ADD... | PypiClean |
/textX-3.1.1.tar.gz/textX-3.1.1/docs/process.md | # textX release process
!!! note
For the background see [here](https://github.com/textX/textX/issues/176).
- We are using semantic versioning and a standard format to keep changelogs (see
[CHANGELOG.md](https://github.com/textX/textX/blob/master/CHANGELOG.md)).
- We develop features on feature branches. Feature... | PypiClean |
/cli_tictactoe-1.0.4-py3-none-any.whl/cli_tictactoe/main.py |
# import numpy as np
class TablePrinter(object):
"Print a list of dicts as a table"
def __init__(self, fmt, sep=" ", ul=None):
"""
@param fmt: list of tuple(heading, key, width)
heading: str, column label
key: dictionary key to value to print
... | PypiClean |
/imreg_dft_nw-2.0.0.tar.gz/imreg_dft_nw-2.0.0/src/imreg_dft/utils.py |
# Copyright (c) 2014-?, Matěj Týč
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/components/device_automation/trigger.py | import types
import typing
import voluptuous as vol
from ... import core
if not typing.TYPE_CHECKING:
class DeviceAutomation:
...
if typing.TYPE_CHECKING:
from .device_automation import DeviceAutomation
# pylint: disable=unused-variable
class Trigger(core.TriggerPlatform):
"""Offer device orie... | PypiClean |
/refinitiv-dataplatform-1.0.0a15.tar.gz/refinitiv-dataplatform-1.0.0a15/README.md | The Refinitiv Data Plaform Library for Python provides a set of ease-of-use
functions and classes that gives your applications a uniform access to the
breath and depth of financial data and services available on the Refinitiv
Data Platform.
Thanks to this library the same Python code can be used to retrieve data
... | PypiClean |
/irsxml-0.2.14-py3-none-any.whl/irsx/text_format_utils.py | import json
import sys
import codecs
import re
import csv
import unicodecsv
from .standardizer import Standardizer, Documentizer, VersionDocumentizer
BRACKET_RE = re.compile(r'\[.*?\]')
ASTERISKS = "****************"
def debracket(string):
""" Eliminate the bracketed var names in doc, line strings """
res... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/cssstyle/lib/CSSStyleDeclaration.js | 'use strict';
var CSSOM = require('cssom');
var allProperties = require('./allProperties');
var allExtraProperties = require('./allExtraProperties');
var implementedProperties = require('./implementedProperties');
var { dashedToCamelCase } = require('./parsers');
var getBasicPropertyDescriptor = require('./utils/getBas... | PypiClean |
/azure_mgmt_apimanagement-4.0.0-py3-none-any.whl/azure/mgmt/apimanagement/aio/operations/_authorization_login_links_operations.py | from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineResponse
fr... | PypiClean |
/lbrlabs_pulumi_dynatrace-0.1.1a1689433879.tar.gz/lbrlabs_pulumi_dynatrace-0.1.1a1689433879/lbrlabs_pulumi_dynatrace/metric_query.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['MetricQueryArgs', 'MetricQuery']
@pulumi.input_type
class MetricQueryArgs:
def __init__(__self__, *,
metric_id: pulumi.Input[s... | PypiClean |
/pyramid_zcml-1.2.0.tar.gz/pyramid_zcml-1.2.0/docs/zcml/utility.rst | .. _utility_directive:
``utility``
-----------
Register a :term:`Zope Component Architecture` "utility".
Attributes
~~~~~~~~~~
``component``
The utility component (cannot be specified if ``factory`` is
specified).
``factory``
A factory that creates a component (cannot be specified if
``component`` is speci... | PypiClean |
/locan-0.14.0.tar.gz/locan-0.14.0/docs/tutorials/notebooks/Transform_LocData.ipynb | # Tutorial about transforming LocData
Locan provides methods for transforming localization data sets into new LocData objects.
```
from pathlib import Path
%matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import locan as lc
lc.show... | PypiClean |
/species-0.5.5.tar.gz/species-0.5.5/README.rst | *species*
=========
**spe**\ctral **c**\ haracterization and **i**\ nference for **e**\ xoplanet **s**\ cience
.. image:: https://img.shields.io/pypi/v/species
:target: https://pypi.python.org/pypi/species
.. image:: https://img.shields.io/pypi/pyversions/species
:target: https://pypi.python.org/pypi/species
... | PypiClean |
/youtube_dlc-2020.11.11.post3.tar.gz/youtube_dlc-2020.11.11.post3/youtube_dlc/extractor/vice.py | from __future__ import unicode_literals
import functools
import hashlib
import json
import random
import re
import time
from .adobepass import AdobePassIE
from .common import InfoExtractor
from .youtube import YoutubeIE
from ..compat import (
compat_HTTPError,
compat_str,
)
from ..utils import (
clean_htm... | PypiClean |
/utf8config-0.0.2.tar.gz/utf8config-0.0.2/README.rst | .. image:: https://travis-ci.org/MacHu-GWU/utf8config-project.svg?branch=master
:target: https://travis-ci.org/MacHu-GWU/utf8config-project?branch=master
.. image:: https://codecov.io/gh/MacHu-GWU/utf8config-project/branch/master/graph/badge.svg
:target: https://codecov.io/gh/MacHu-GWU/utf8config-project
.. ima... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/machinelearningservices/latest/outputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._enums import *
__all__ = [
'ACIServiceResponseResponse',
'ACIServiceResponseResponseDataCollection',
'ACIServiceResponseResponseEn... | PypiClean |
/bcsfe-fix-en-2.7.2.6.tar.gz/bcsfe-fix-en-2.7.2.6/src/BCSFE_FIX/edits/cats/talents.py | from typing import Any, Optional
from ... import helper, item, csv_handler, game_data_getter, user_input_handler
from . import cat_id_selector
def get_talent_data(save_stats: dict[str, Any]) -> Optional[dict[Any, Any]]:
"""Get talent data for all cats"""
file_data = game_data_getter.get_file_latest(
... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/qbittorrent/config_flow.py | from __future__ import annotations
import logging
from typing import Any
from qbittorrent.client import LoginRequired
from requests.exceptions import RequestException
import voluptuous as vol
from homeassistant.config_entries import ConfigFlow
from homeassistant.const import (
CONF_NAME,
CONF_PASSWORD,
C... | PypiClean |
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/Plugins/VcsPlugins/vcsMercurial/Ui_HgDiffDialog.py |
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_HgDiffDialog(object):
def setupUi(self, HgDiffDialog):
HgDiffDialog.setObjectName("HgDiffDialog")
HgDiffDialog.resize(749, 646)
self.vboxlayout = QtWidgets.QVBoxLayout(HgDiffDialog)
self.vboxlayout.setObjectName("vboxlayout")
... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs_/extended_admin_group/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/pymavlink-2.4.40.tar.gz/pymavlink-2.4.40/dialects/v20/python2/icarous.py | import hashlib
import json
import logging
import os
import struct
import sys
import time
from builtins import object, range
def cast(type_str, arg):
"""
No-op for Python2 used instead of typing.cast()
"""
return arg
WIRE_PROTOCOL_VERSION = "2.0"
DIALECT = "icarous"
PROTOCOL_MARKER_V1 = 0xFE
PROTOCO... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/glob/sync.js | module.exports = globSync
globSync.GlobSync = GlobSync
var rp = require('fs.realpath')
var minimatch = require('minimatch')
var Minimatch = minimatch.Minimatch
var Glob = require('./glob.js').Glob
var util = require('util')
var path = require('path')
var assert = require('assert')
var isAbsolute = require('path-is-abs... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_6/models/remote_protection_group_snapshot_transfer_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_6 import models
class RemoteProtectionGroupSnapshotTransferGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
... | PypiClean |
/ethereum_etl_fixbug-1.7.5-py3-none-any.whl/ethereumetl/jobs/export_contracts_job.py |
import json
from ethereumetl.executors.batch_work_executor import BatchWorkExecutor
from blockchainetl.jobs.base_job import BaseJob
from ethereumetl.json_rpc_requests import generate_get_code_json_rpc
from ethereumetl.mappers.contract_mapper import EthContractMapper
from ethereumetl.service.eth_contract_service imp... | PypiClean |
/onyx_mclib-2.1.3-py3-none-any.whl/onyx/split_registries/entity.py | import enum
class entity(enum.Enum):
"""
entity
* area_effect_cloud
* armor_stand
* arrow
* axolotl
* bat
* bee
* blaze
* boat
* cat
* cave_spider
* chest_minecart
* chicken
* cod
* command_block_minecart
* cow
* creeper
* dolphin
* donkey
* dragon_fireball
* drowned
* egg
* elder_guardian
*... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/vmmigration/v1alpha1/get_migrating_vm.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
__all__ = [
'GetMigratingVmResult',
'AwaitableGetMigratingVmResult',
'get_migrating_vm',
'get_migrating_vm_output',
]
@... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/file_id.py |
import base64
import logging
import struct
from enum import IntEnum
from io import BytesIO
from typing import List
from pyrogram.raw.core import Bytes, String
log = logging.getLogger(__name__)
def b64_encode(s: bytes) -> str:
"""Encode bytes into a URL-safe Base64 string without padding
Parameters:
... | PypiClean |
/TERRA_GA_IMG_Classification-0.0.18-py3-none-any.whl/TERRA_GA/IMG_Classification_GA.py | def IMG_create_Conv_Net(x_train, y_train, x_val, y_val, IMG_WIDTH = 64, IMG_HEIGHT = 64, num_channels = 3, pretrained_yes_no = 1,
pretrained_model_list = ['NASNetMobile', 'ResNet50', 'ResNet50V2', 'VGG16', 'VGG19', 'Xception', 'EfficientNet', 'NASNetLarge'],
pretrained_... | PypiClean |
/scikit-fda-sim-0.7.1.tar.gz/scikit-fda-sim-0.7.1/skfda/ml/clustering/_neighbors_clustering.py | from __future__ import annotations
from typing import Any, TypeVar, Union, overload
from typing_extensions import Literal
from ...misc.metrics import l2_distance
from ...representation import FData
from ...typing._metric import Metric
from ...typing._numpy import NDArrayFloat
from .._neighbors_base import (
Algo... | PypiClean |
/os_mia_visual_pj-0.0.0.1-py3-none-any.whl/matplotlib/backend_tools.py | import enum
import re
import time
from types import SimpleNamespace
import uuid
from weakref import WeakKeyDictionary
import numpy as np
import matplotlib as mpl
from matplotlib._pylab_helpers import Gcf
from matplotlib import _api, cbook
class Cursors(enum.IntEnum): # Must subclass int for the macOS backend.
... | PypiClean |
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/sovietscloset.py | from .common import InfoExtractor
from ..utils import (
try_get,
unified_timestamp
)
class SovietsClosetBaseIE(InfoExtractor):
MEDIADELIVERY_REFERER = {'Referer': 'https://iframe.mediadelivery.net/'}
def parse_nuxt_jsonp(self, nuxt_jsonp_url, video_id, name):
nuxt_jsonp = self._download_webpa... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/offazure/latest/outputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'MasterSitePropertiesResponse',
'SiteAgentPropertiesResponse',
'SitePropertiesResponse',
'SiteSpnPropertiesResponse',
]
... | PypiClean |
/snp-mutator-1.2.0.tar.gz/snp-mutator-1.2.0/CONTRIBUTING.rst | ============
Contributing
============
.. highlight:: bash
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 |
/AutoDiffpyy-1.0.tar.gz/AutoDiffpyy-1.0/AutoDiffpy/ElementaryFunc.py |
import numpy as np
from dual import Dual
from Node import Node
# Trig functions
def sin(x):
"""
Return the sine value of x.
Parameters
----------
x : int, float, Dual, Node
Input to the sine function.
Returns
-------
value : int, float, Dual
The sine value of the dua... | PypiClean |
/nulink_twisted-0.1.0-py3-none-any.whl/twisted/words/protocols/jabber/client.py |
from twisted.words.protocols.jabber import error, sasl, xmlstream
from twisted.words.protocols.jabber.jid import JID
from twisted.words.xish import domish, utility, xpath
NS_XMPP_STREAMS = "urn:ietf:params:xml:ns:xmpp-streams"
NS_XMPP_BIND = "urn:ietf:params:xml:ns:xmpp-bind"
NS_XMPP_SESSION = "urn:ietf:params:xml:n... | PypiClean |
/apache-airflow-providers-microsoft-azure-6.3.0rc2.tar.gz/apache-airflow-providers-microsoft-azure-6.3.0rc2/airflow/providers/microsoft/azure/log/wasb_task_handler.py | from __future__ import annotations
import os
import shutil
from functools import cached_property
from pathlib import Path
from typing import TYPE_CHECKING, Any
from azure.core.exceptions import HttpResponseError
from packaging.version import Version
from airflow.configuration import conf
from airflow.utils.log.file_... | PypiClean |
/Finance-Jindowin-1.3.3.tar.gz/Finance-Jindowin-1.3.3/jdw/plot/returns.py | from pyecharts.charts import Line
from pyecharts.charts import Bar
from pyecharts import options as opts
def theme_diff_returns(cum_returns, benchmark_returns, basic, width='1600px', height = '900px'):
cum_returns = cum_returns.rename(columns={'returns':'cum_returns'})
benchmark_returns = benchmark_returns.ren... | PypiClean |
/s2aff-0.61.tar.gz/s2aff-0.61/scripts/generate_lightgbm_training_data.py | import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0" # change to your reserved GPU
import pickle
import kenlm
from random import sample
import numpy as np
from s2aff.text import fix_text
from s2aff.consts import PATHS
from s2aff.ror import RORIndex
from s2aff.features impo... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.