id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/snake-shop-0.9.0.tar.gz/snake-shop-0.9.0/apps/offer/migrations/0018_auto_20210519_1334.py |
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import filer.fields.image
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0046_product_priority'),
migrations.swappable_dependency(settings.FILER_IMAGE_MODEL),
... | PypiClean |
/headless_chrome-0.4.10-py3-none-manylinux_2_34_x86_64.whl/headless_chrome/common/actions/pointer_input.py | import typing
from headless_chrome.common.exceptions import InvalidArgumentException
from headless_chrome.remote.webelement import WebElement
from .input_device import InputDevice
from .interaction import POINTER
from .interaction import POINTER_KINDS
class PointerInput(InputDevice):
DEFAULT_MOVE_DURATION = 250... | PypiClean |
/tf2_tensorflow_object_detection_api-2.2.0-cp37-cp37m-manylinux2010_x86_64.whl/tf2_tensorflow_object_detection_api-2.2.0.data/purelib/object_detection/models/faster_rcnn_inception_resnet_v2_keras_feature_extractor.py | # Skip pylint for this file because it times out
# pylint: skip-file
import tensorflow.compat.v1 as tf
from object_detection.meta_architectures import faster_rcnn_meta_arch
from object_detection.models.keras_models import inception_resnet_v2
from object_detection.utils import model_util
from object_detection.utils im... | PypiClean |
/kis2-0.1.0.tar.gz/kis2-0.1.0/keras_segmentation/models/fcn.py | from keras.models import *
from keras.layers import *
from .config import IMAGE_ORDERING
from .model_utils import get_segmentation_model
from .vgg16 import get_vgg_encoder
from .mobilenet import get_mobilenet_encoder
from .basic_models import vanilla_encoder
from .resnet50 import get_resnet50_encoder
# crop o1 wrt o... | PypiClean |
/pitop.robotics-0.32.0.post1.tar.gz/pitop.robotics-0.32.0.post1/pitop/robotics/simple_pid/LICENSE.md | MIT License
Copyright (c) 2018-2021 Martin Lundberg
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, merge, publi... | PypiClean |
/youtube_dl2-2.0.tar.gz/youtube_dl2-2.0/youtube_dl/extractor/spiegel.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from .nexx import (
NexxIE,
NexxEmbedIE,
)
from .spiegeltv import SpiegeltvIE
from ..compat import compat_urlparse
from ..utils import (
parse_duration,
strip_or_none,
unified_timestamp,
)
class SpiegelIE(InfoExt... | 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/b8a0150b4c3f786dcfc5d8fc29272e4d.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 |
/ibm-vpc-img-inst-1.0.0b5.tar.gz/ibm-vpc-img-inst-1.0.0b5/src/ibm_vpc_img_inst/main.py | import os
import sys
import click
import pkg_resources
import yaml
from ibm_vpc_img_inst import config_modules
from ibm_vpc_img_inst.config_modules.delete_resources import clean_up
from ibm_vpc_img_inst.constants import DEFAULTS
from ibm_vpc_img_inst.utils import (Color, color_msg, create_folders,
... | PypiClean |
/Cfg-Loader-0.2.2.tar.gz/Cfg-Loader-0.2.2/README.rst | .. image:: https://travis-ci.org/nmvalera/cfg-loader.svg?branch=master
:target: https://travis-ci.org/nmvalera/cfg-loader
:alt: Build Status
.. image:: https://codecov.io/gh/nmvalera/cfg-loader/branch/master/graph/badge.svg
:target: https://codecov.io/gh/nmvalera/cfg-loader
:alt: Coverage
.. image:: h... | PypiClean |
/django-je-0.0.1.tar.gz/django-je-0.0.1/django/core/handlers/wsgi.py | from io import BytesIO
from django.conf import settings
from django.core import signals
from django.core.handlers import base
from django.http import HttpRequest, QueryDict, parse_cookie
from django.urls import set_script_prefix
from django.utils.encoding import repercent_broken_unicode
from django.utils.functional im... | PypiClean |
/docker-registry-core-2.0.3.tar.gz/docker-registry-core-2.0.3/docker_registry/core/lru.py | import functools
import logging
import redis
logger = logging.getLogger(__name__)
redis_conn = None
cache_prefix = None
def init(enable=True,
host='localhost', port=6379, db=0, password=None, path='/'):
global redis_conn, cache_prefix
if not enable:
redis_conn = None
return
logg... | PypiClean |
/blal-1.0.1.tar.gz/blal-1.0.1/README.md | # Breath of the Wild LoopAssetList Converter
Converts blal (Loop Asset List) files from machine code to human-readable format. For LoZ:BotW and other Nintendo games.
## Dependencies
* A dumped copy of Legend of Zelda: Breath of the Wild (for Wii U or Switch)
* Python 3.7+ (64-bit, added to system PATH)
## Setup
1. Do... | PypiClean |
/google-cloud-game-servers-1.8.3.tar.gz/google-cloud-game-servers-1.8.3/google/cloud/gaming_v1beta/services/game_server_clusters_service/transports/base.py | import abc
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1, operations_v1
from google.api_core import retry as retries
import google.auth # type: ignore
from google.auth import... | PypiClean |
/maud_metabolic_models-0.6.0.1-py3-none-macosx_10_9_x86_64.whl/maud/stan/cmdstan-2.32.2/stan/lib/stan_math/lib/tbb_2020.3/build/build.py |
# Provides unified tool for preparing TBB for packaging
from __future__ import print_function
import os
import re
import sys
import shutil
import platform
import argparse
from glob import glob
from collections import OrderedDict
jp = os.path.join
is_win = (platform.system() == 'Windows')
is_lin = (platform.system() ... | PypiClean |
/pandas_mpmkp-1.0.9.tar.gz/pandas_mpmkp-1.0.9/doc/source/user_guide/index.rst | {{ header }}
.. _user_guide:
==========
User Guide
==========
The User Guide covers all of pandas by topic area. Each of the subsections
introduces a topic (such as "working with missing data"), and discusses how
pandas approaches the problem, with many examples throughout.
Users brand-new to pandas should start wi... | PypiClean |
/picassosr-0.6.1-py3-none-any.whl/picasso/gui/nanotron.py | import os.path as _ospath
import os
import sys
import traceback
import importlib, pkgutil
from tqdm import tqdm
import datetime
from time import sleep
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.backends.backend_qt5agg import FigureCanvas as FigureCanvas
from matplotlib.backends.backend_qt5agg ... | PypiClean |
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/moment/src/lib/locale/lists.js | import isNumber from '../utils/is-number';
import { getLocale } from './locales';
import { createUTC } from '../create/utc';
function get(format, index, field, setter) {
var locale = getLocale(),
utc = createUTC().set(setter, index);
return locale[field](utc, format);
}
function listMonthsImpl(format,... | PypiClean |
/deepcrawl_graphql-0.2.5.tar.gz/deepcrawl_graphql-0.2.5/deepcrawl_graphql/crawls/fields.py | from gql.dsl import DSLMetaField
class CrawlFields:
@staticmethod
def fields(ds):
return (
ds.Crawl.id,
ds.Crawl.archivedAt,
ds.Crawl.archivingAt,
ds.Crawl.brokenAt,
ds.Crawl.bucketSlot,
ds.Crawl.canceledAt,
ds.Crawl.c... | PypiClean |
/livetribe-plugins-1.0a1.tar.gz/livetribe-plugins-1.0a1/docs/source/faq.rst | Frequently Asked Questions
==========================
.. contents::
Is LiveTribe Plugins thread-safe?
-----------------------
LiveTribe Plugins is thread-safe.
When I collect plugins in :samp:`acme.plugins`, why do functions and classes in the module :samp:`acme.plugins` not picked up?
-----------------------
The ... | PypiClean |
/borgbackup-2.0.0a2.tar.gz/borgbackup-2.0.0a2/docs/deployment/central-backup-server.rst | .. include:: ../global.rst.inc
.. highlight:: none
Central repository server with Ansible or Salt
==============================================
This section will give an example how to setup a borg repository server for multiple
clients.
Machines
--------
There are multiple machines used in this section and will f... | PypiClean |
/plonetheme.arnolfini-0.97.tar.gz/plonetheme.arnolfini-0.97/plonetheme/arnolfini/locales/README.txt | This directory will be the home for internationalizations for your theme
package. For more information on internationalization please consult the
following sources:
http://plone.org/documentation/kb/product-skin-localization
http://plone.org/documentation/kb/i18n-for-developers
http://www.mattdorn.com/content/plone... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/nice-try/README.md | # nice-try
[](https://travis-ci.org/electerious/nice-try) [](https://ci.appveyor.com/project/electerious/nice-try) [
var base = transport.protocol.base
exports.FRAME_HEADER_SIZE = 8
exports.PING_OPAQUE_SIZE = 4
exports.MAX_CONCURRENT_STREAMS = Infinity
exports.DEFAULT_MAX_HEADER_LIST_SIZE = Infinity
exports.DEFAULT_WEIGHT = 16
exports.frameType = {
SYN_STREAM: 1,... | PypiClean |
/register_printer-1.1.21-py3-none-any.whl/register_printer/data_model/block_template.py | import logging
import textwrap
from .register_template import RegisterTemplate
from .field_template import FieldTemplate
from .array_template import ArrayTemplate
from .register import Register
from .field import Field
from .array import Array, DefaultOverwriteEntry
from .struct import Struct
LOGGER = logging.getLogg... | PypiClean |
/lob-python-5.1.0.tar.gz/lob-python-5.1.0/lob_python/api/buckslips_api.py | import re # noqa: F401
import sys # noqa: F401
from lob_python.api_client import ApiClient, Endpoint as _Endpoint
from lob_python.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from lob_python.... | PypiClean |
/vwoptimize-0.10.2.tar.gz/vwoptimize-0.10.2/vwoptimizelib/third_party/networkx/algorithms/dag.py | from fractions import gcd
from ...networkx.exception import *
from ...networkx.utils.decorators import *
"""Algorithms for directed acyclic graphs (DAGs)."""
# Copyright (C) 2006-2011 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights rese... | PypiClean |
/raccoon_scanner-0.8.5-py3-none-any.whl/raccoon_src/lib/tls.py | import re
from platform import system
# noinspection PyProtectedMember
from asyncio.subprocess import PIPE, create_subprocess_exec
from raccoon_src.utils.help_utils import HelpUtilities
from raccoon_src.utils.coloring import COLOR, COLORED_COMBOS
from raccoon_src.utils.logger import Logger
# macOS support
if system()... | PypiClean |
/weclapp_cli-1.0.1-py3-none-any.whl/weclapp/models/timeRecord.py | import sys
import json
import logging
from .base import WeclappBaseModel
from datetime import datetime
log = logging.getLogger("weclapp-cli")
class WeclappTimeRecord(WeclappBaseModel):
__model__ = 'WeclappTimeRecord'
__fields__ = [
('id', str, True),
('billable', bool, True),
('proje... | PypiClean |
/Kickbase_API-0.0.8.tar.gz/Kickbase_API-0.0.8/kickbase_api/kickbase.py | from datetime import datetime, timedelta, timezone
from typing import Union
import requests
import json
from kickbase_api.exceptions import KickbaseLoginException, KickbaseException
from kickbase_api.models._transforms import parse_date, date_to_string
from kickbase_api.models.chat_item import ChatItem
from kickbase_... | PypiClean |
/quri_parts_core-0.14.0-py3-none-any.whl/quri_parts/core/state/state.py |
from abc import ABC, abstractmethod, abstractproperty
from typing import Optional, Protocol
from quri_parts.circuit import (
GateSequence,
ImmutableQuantumCircuit,
NonParametricQuantumCircuit,
QuantumCircuit,
)
class QuantumState(Protocol):
"""QuantumState is an interface for classes representin... | PypiClean |
/mq_http_aliyun_sdk-1.0.0-py3-none-any.whl/mq_http_aliyun_sdk/mq_exception.py |
class MQExceptionBase(Exception):
"""
@type type: string
@param type: 错误类型
@type message: string
@param message: 错误描述
@type req_id: string
@param req_id: 请求的request_id
"""
def __init__(self, type, message, req_id=None):
self.type = type
self.message = message
... | PypiClean |
/jupyterlab_gpustats-1.0.1.tar.gz/jupyterlab_gpustats-1.0.1/jupyterlab_gpustats/labextension/static/remoteEntry.dd88ab759c43b0e04ad8.js | var _JUPYTERLAB;
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/***... | PypiClean |
/wtf-server-0.8.25.tar.gz/wtf-server-0.8.25/wtf/httputil.py | __author__ = u"Andr\xe9 Malo"
__docformat__ = "restructuredtext en"
import datetime as _datetime
import re as _re
from wtf import Error
CR = "\x0D"
LF = "\x0A"
CRLF = CR + LF
class HeaderError(Error):
""" Base header parse error """
class InvalidHeaderLine(HeaderError):
""" A header line is invalid """
c... | PypiClean |
/segzoo-1.0.11.tar.gz/segzoo-1.0.11/README.md | # Segzoo
## What is segzoo?
Segzoo is a tool that allows to automatically run various genomic analysis on a segmentation obtained with Segway.
The results of each analysis are made available as well as a summarizing visualization of the results.
The requirements for this tool include segtools, bedtools and python pac... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/cdn/v20191231/custom_domain.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = ['CustomDomain']
class CustomDomain(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
opts: Optional[pul... | PypiClean |
/rpi_torchvision-0.7.0-cp37-cp37m-linux_armv7l.whl/torchvision/datasets/kinetics.py | from .utils import list_dir
from .folder import make_dataset
from .video_utils import VideoClips
from .vision import VisionDataset
class Kinetics400(VisionDataset):
"""
`Kinetics-400 <https://deepmind.com/research/open-source/open-source-datasets/kinetics/>`_
dataset.
Kinetics-400 is an action recogn... | PypiClean |
/snowflake-snowpark-python-1.7.0.tar.gz/snowflake-snowpark-python-1.7.0/src/snowflake/snowpark/dataframe_writer.py |
import sys
from typing import Dict, List, Literal, Optional, Union, overload
import snowflake.snowpark # for forward references of type hints
from snowflake.snowpark._internal.analyzer.snowflake_plan_node import (
CopyIntoLocationNode,
SaveMode,
SnowflakeCreateTable,
)
from snowflake.snowpark._internal.t... | PypiClean |
/Restr-0.1.6.tar.gz/Restr-0.1.6/restr/static/bower/codemirror/lib/util/foldcode.js | CodeMirror.tagRangeFinder = function(cm, line, hideEnd) {
var nameStartChar = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
var nameChar = nameStartChar + "\-\:\.0-9\\u00B7\\u0300-\\u036... | PypiClean |
/py_tgcalls_kaizoku-0.9.5-cp39-cp39-win_amd64.whl/pytgcalls/node_modules/@types/node/events.d.ts | declare module 'events' {
// NOTE: This class is in the docs but is **not actually exported** by Node.
// If https://github.com/nodejs/node/issues/39903 gets resolved and Node
// actually starts exporting the class, uncomment below.
// import { EventListener, EventListenerObject } from '__dom-events';
... | PypiClean |
/dsin100days603v37-6.0.3.tar.gz/dsin100days603v37-6.0.3/notebook/static/components/codemirror/mode/dart/dart.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../clike/clike"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../clike/clike"], mod);
else // Plain browser env
mod(... | PypiClean |
/consul-sd-0.1.3.tar.gz/consul-sd-0.1.3/README.rst | Consul Service Discovery API
----------------------------
This module provides a simple way to work with the
`Consul Service Discovery API <https://www.consul.io/docs/agent/http.html>`_
from python.
Examples
--------
Usage examples::
import consulsd
service = consulsd.Client()
service.register(id='flexl... | PypiClean |
/kube_copilot-0.1.20.tar.gz/kube_copilot-0.1.20/kube_copilot/shell.py | import subprocess
from typing import List, Union
import tiktoken
class KubeProcess():
'''Wrapper for cloud native commands.'''
def __init__(self, command, max_tokens=3000, strip_newlines: bool = False, return_err_output: bool = False):
"""Initialize with stripping newlines."""
self.strip_newl... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/app/v20230401preview/get_connected_environments_dapr_component.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__ = [
'GetConnectedEnvironmentsDaprComponentResult',
'AwaitableGetConnectedEnvironmentsDaprComponentResult',
'get_conn... | PypiClean |
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/spdy-transport/node_modules/debug/src/node.js | const tty = require('tty');
const util = require('util');
/**
* This is the Node.js implementation of `debug()`.
*/
exports.init = init;
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.destroy = util.deprecate(
() => {},
'Instanc... | PypiClean |
/floodgateio-python-0.0.11.tar.gz/floodgateio-python-0.0.11/src/floodgateio/floodgate_client_base.py | from typing import Optional
import logging
from floodgateio.configurations.client_config_base import ClientConfigBase
from floodgateio.configurations.client_config_with_autoupdate import ClientConfigWithAutoUpdate
from floodgateio.types.user import User
from floodgateio.types.exceptions import FloodGateApiException
fr... | PypiClean |
/gym_idsgame-1.0.13.tar.gz/gym_idsgame-1.0.13/experiments/training/v3/plot_summary.py | import os
import glob
import sys
import pandas as pd
from experiments.util import plotting_util
def get_script_path():
"""
:return: the script path
"""
return os.path.dirname(os.path.realpath(sys.argv[0]))
def default_output_dir() -> str:
"""
:return: the default output dir
"""
scrip... | PypiClean |
/cumm_cu117-0.4.11-cp310-cp310-win_amd64.whl/cumm/gemm/dev/__init__.py |
from cumm.gemm.constants import NVRTCConstants, NVRTCMode
from cumm.gemm.kernel import GemmKernel
from cumm import dtypes
import numpy as np
from cumm import tensorview as tv
from cumm.nvrtc import CummNVRTCModule
class GemmHelper:
def __init__(self, ker: GemmKernel, m: int, n: int, k: int) -> None:
m =... | PypiClean |
/azure-graphrbac-0.61.1.zip/azure-graphrbac-0.61.1/azure/graphrbac/models/user.py |
from .directory_object import DirectoryObject
class User(DirectoryObject):
"""Active Directory user information.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param additional_proper... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_5/models/directory_service_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_5 import models
class DirectoryServiceResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the... | PypiClean |
/hurry.workflow-3.0.2.tar.gz/hurry.workflow-3.0.2/bootstrap.py | import os
import shutil
import sys
import tempfile
from optparse import OptionParser
tmpeggs = tempfile.mkdtemp()
usage = '''\
[DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options]
Bootstraps a buildout-based project.
Simply run this script in a directory containing a buildout.cfg, using the
Python that you want bi... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayCommerceIotMdeviceprodAccountQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCommerceIotMdeviceprodAccountQueryModel import AlipayCommerceIotMdeviceprodAccountQueryModel
class AlipayCommerceIotMdeviceprodAccountQueryRequest(object):
def __init_... | PypiClean |
/bitcoin-etl-1.5.2.tar.gz/bitcoin-etl-1.5.2/blockchainetl/executors/batch_work_executor.py | from json import JSONDecodeError
from requests.exceptions import Timeout as RequestsTimeout, HTTPError, TooManyRedirects
from blockchainetl.executors.bounded_executor import BoundedExecutor
from blockchainetl.executors.fail_safe_executor import FailSafeExecutor
from blockchainetl.progress_logger import ProgressLogger
... | PypiClean |
/digital_thought_commons-1.0.2-py3-none-any.whl/digital_thought_commons/restful_lookups/viewDnsLookup.py | import logging
from digital_thought_commons import internet
from digital_thought_commons.cache import APICache
class ViewDNS:
api_url = 'https://api.viewdns.info/{}'
def __init__(self, api_key):
self.api_key = api_key
self.request_session = internet.retry_request_session()
self.cach... | PypiClean |
/django_rest_live-0.7.0-py3-none-any.whl/rest_live/consumers.py | from typing import Any, Dict, Type, List, Union, Set
from dataclasses import dataclass
from asgiref.sync import async_to_sync
from channels.generic.websocket import JsonWebsocketConsumer
from django.http import Http404
from rest_framework.exceptions import NotAuthenticated, PermissionDenied
from rest_live import get_... | PypiClean |
/etf_scraper-0.0.0.tar.gz/etf_scraper-0.0.0/src/etf_scraper/main.py | from pathlib import Path
import warnings
from datetime import date
from functools import partial
from typing import List, Sequence, Union
import logging
from etf_scraper import ETFScraper
from etf_scraper.storage import (
list_files,
list_unqueried_data,
query_hist_ticker_dates,
default_save_func,
... | PypiClean |
/JaxHankel-0.1.2.tar.gz/JaxHankel-0.1.2/jax_fht/fht.py | import jax.numpy as jnp
import numpy as np
from scipy.special import loggamma
from warnings import warn
# TODO: replace loggamma by jax loggamma
LN_2 = jnp.log(2)
def _fhtq(a, u, inverse=False):
"""Compute the biased fast Hankel transform.
This is the basic FFTLog routine.
"""
# size of transform
... | PypiClean |
/tidalvortex-0.1.0a0.tar.gz/tidalvortex-0.1.0a0/vortex/vortex.py | from __future__ import annotations
import logging
from vortex.pattern import *
def pattern_pretty_printing(pattern: Pattern, query_span: TimeSpan) -> None:
"""Better formatting for logging.debuging Tidal Patterns"""
for event in pattern.query(query_span):
logging.debug(event)
if __name__ == "__ma... | PypiClean |
/wfmap-1.0.3.tar.gz/wfmap-1.0.3/README.md | # WaferMap Visualization with Heatmap and Trend Charts
This package is built upon **_matplotlib_** & **_seaborn_**. It provides basic wafer heatmap for numerical & categorical variables, as well as highly customized trend charts regarding to different wafer shot map definitions. You can built your own wafermap on the ... | PypiClean |
/bet-2.3.0.tar.gz/bet-2.3.0/examples/FEniCS/BET_multiple_serial_models_script.py |
# Copyright (C) 2014-2019 The BET Development Team
r"""
This example requires the following external packages not shipped
with BET:
(1) An installation of FEniCS that can be run using the same
python as used for installing BET. See http://fenicsproject.org/
for more information.
(2) A copy of Launcher. See... | PypiClean |
/zeam.form.silva-2.0.5.tar.gz/zeam.form.silva-2.0.5/src/zeam/form/silva/form/static/smi.min.js | (function($,infrae){var create_validator=function(){var $field=$(this);if(!$field.hasClass("form-novalidation")&&!$field.closest(".field-object").length){var $form=$field.closest("form"),field_prefix=$field.attr("data-field-prefix"),form_prefix=$form.attr("name"),form_url=$form.attr("data-form-url");if(form_url){var fi... | PypiClean |
/OpenNIR_XPM-0.1.4-py3-none-any.whl/onir/modules/bert.py | from pytorch_transformers.modeling_bert import BertForPreTraining, BertPreTrainedModel, BertEmbeddings, BertEncoder, BertPreTrainingHeads
class CustomBertModelWrapper(BertForPreTraining):
def __init__(self, config, depth=None):
config.output_hidden_states = True
super().__init__(config)
se... | PypiClean |
/flask_adminlte_full-0.2.0-py3-none-any.whl/flask_adminlte_full/static/plugins/moment/locale/en-ca.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/telescope-ngs-1.0.2.tar.gz/telescope-ngs-1.0.2/telescope/utils/alignment_parsers.py |
from builtins import next
from builtins import zip
from builtins import str
from builtins import range
from builtins import object
from collections import defaultdict
import random
import pysam
__author__ = 'Matthew L. Bendall'
__copyright__ = "Copyright (C) 2016 Matthew L. Bendall"
def iterread(samfile):
""" ... | PypiClean |
/jupyterlab_blockly-0.3.0a1.tar.gz/jupyterlab_blockly-0.3.0a1/packages/blockly-extension/node_modules/glob/dist/mjs/walker.d.ts | * Single-use utility classes to provide functionality to the {@link Glob}
* methods.
*
* @module
*/
import Minipass from 'minipass';
import { Path } from 'path-scurry';
import { IgnoreLike } from './ignore.js';
import { Pattern } from './pattern.js';
import { Processor } from './processor.js';
export interface Glo... | PypiClean |
/django-user-guide-0.11.0.tar.gz/django-user-guide-0.11.0/README.md | [](https://travis-ci.org/ambitioninc/django-user-guide)
# Django User Guide
Django User Guide is a `django>=1.6` app that shows configurable, self-contained HTML guides to users. Showing a guide to all of your users is as easy as
creating a `Guid... | PypiClean |
/fury-0.9.0.tar.gz/fury-0.9.0/docs/examples/viz_fiber_odf.py | import nibabel as nib
# First, we import some useful modules and methods.
import numpy as np
from dipy.data import get_sphere
from dipy.reconst.shm import sh_to_sf_matrix
from fury import actor, ui, window
from fury.data import fetch_viz_dmri, fetch_viz_icons, read_viz_dmri
from fury.utils import fix_winding_order
#... | PypiClean |
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/cii/v20201210/models.py |
import warnings
from tencentcloud.common.abstract_model import AbstractModel
class CompareMetricsData(AbstractModel):
"""结构化对比指标(准确率/召回率)数据
"""
def __init__(self):
r"""
:param _ShortStructAccuracy: 短文准确率
:type ShortStructAccuracy: str
:param _ShortStructRecall: 短文召回率
... | PypiClean |
/daily_reflection-0.2.1-py3-none-any.whl/reflect/actions.py | from __future__ import print_function, unicode_literals
from pprint import pprint
from tinydb import TinyDB, where, Query
import sys
import os
import uuid # creating unique id's for storage
from pathlib import Path # for finding user's home
from os.path import join as join_path
from datetime import datetime,timedelta
f... | PypiClean |
/interlin_q-0.0.1.post5-py3-none-any.whl/interlinq/components/controller_host.py | from qunetsim.components import Host
from interlinq.components import ComputingHost, Clock
from interlinq.utils import DefaultOperationTime
from interlinq.utils.constants import Constants
from interlinq.objects import Operation, Circuit, Layer
import numpy as np
import uuid
import json
class ControllerHost(Host):
... | PypiClean |
/kegbot-1.2.3.tar.gz/kegbot-1.2.3/pykeg/plugin/datastore.py | from kegbot.util.util import AttrDict
from pykeg.core import models
class PluginDatastore(object):
"""Interface for plugins to persist plugin-specific data."""
def __init__(self, plugin_name):
self.plugin_name = plugin_name
def set(self, key, value):
"""Store plugin-specific data."""
... | PypiClean |
/loo-v2020-2020.2.tar.gz/loo-v2020-2020.2/loopy/kernel/array.py |
from __future__ import division, absolute_import
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner"
__license__ = """
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, inc... | PypiClean |
/graphscope_client-0.24.0a20230825-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/graphscope/analytical/app/louvain.py |
from graphscope.framework.app import AppAssets
from graphscope.framework.app import not_compatible_for
from graphscope.framework.app import project_to_simple
from graphscope.framework.errors import InvalidArgumentError
__all__ = [
"louvain",
]
@project_to_simple
@not_compatible_for("arrow_property", "dynamic_pr... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_8/models/keytab_file_base64.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_8 import models
class KeytabFileBase64(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value i... | PypiClean |
/kolibri_exercise_perseus_plugin-0.9.3.tar.gz/kolibri_exercise_perseus_plugin-0.9.3/kolibri_exercise_perseus_plugin/static/mathjax/2.1/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_Main-bold"]={directory:"Main/Bold",family:"MathJax_Main",weight:"bold",testString:"MathJax Main ^ \u210F \u2223",skew:{305:0.0319,567:0.0958,8463:-0.0319,8467:0.128,8706:0.0958},Ranges:[[160,255,"Latin1Supplement"],[256,383,"LatinExtendedA"],[384,591,"LatinExtendedB... | PypiClean |
/v2/model/create_publicip_request.py |
import pprint
import re
import six
class CreatePublicipRequest:
"""
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 key ... | PypiClean |
/diskimage_builder-3.31.0-py3-none-any.whl/diskimage_builder/elements/devuser/README.rst | =======
devuser
=======
Creates a user that is useful for development / debugging. The following
environment variables can be useful for configuration:
Environment Variables
---------------------
DIB_DEV_USER_USERNAME
:Required: No
:Default: devuser
:Description: Username for the created user.
DIB_DEV_USER_SH... | PypiClean |
/PyConform-0.3.0.tar.gz/PyConform-0.3.0/docs/_static/js/html5shiv-printshiv.min.js | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dSizerMixin.py | import wx
import dabo
import dPemMixin
from dabo.dLocalize import _
from dabo.dObject import dObject
from dabo.ui import makeDynamicProperty
class dSizerMixin(dObject):
"""
Provides the interface for interacting with Sizers in Dabo.
"""
# Additional documentation for several of the contained methods:
_doc_additio... | PypiClean |
/Aestate-1.1.0.tar.gz/Aestate-1.1.0/aestate/work/commands/__init__.py | __version__ = '1.1.0'
__description__ = "Aestate framework for Python,You can see:https://gitee.com/aecode/aestate"
__author__ = "CACode"
__author_email__ = "cacode@163.com"
__url__ = "https://gitee.com/aecode/aestate"
__issues__ = 'https://gitee.com/aecode/aestate/issues'
__license__ = 'Apache License 2.0'
__project_n... | PypiClean |
/chinilla-blockchain-1.4.0b6.tar.gz/chinilla-blockchain-1.4.0b6/chinilla/full_node/bitcoin_fee_estimator.py | from __future__ import annotations
import logging
from datetime import datetime
from chinilla.full_node.fee_estimate_store import FeeStore
from chinilla.full_node.fee_estimation import FeeBlockInfo, FeeMempoolInfo
from chinilla.full_node.fee_estimator import SmartFeeEstimator
from chinilla.full_node.fee_estimator_int... | PypiClean |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/unpacked/jax/input/MathML/entities/s.js | (function (MATHML) {
MathJax.Hub.Insert(MATHML.Parse.Entity,{
'SHCHcy': '\u0429',
'SHcy': '\u0428',
'SOFTcy': '\u042C',
'Sacute': '\u015A',
'Sc': '\u2ABC',
'Scaron': '\u0160',
'Scedil': '\u015E',
'Scirc': '\u015C',
'Scy': '\u0421',
'ShortDownArrow': '\u2193',
'ShortLeftArro... | PypiClean |
/statute_trees-0.1.5.tar.gz/statute_trees-0.1.5/statute_trees/utils/layer.py | import string
from collections.abc import Iterator
from enum import Enum
from typing import NamedTuple
DIGIT_RANGE = range(1, 79)
"""This enables an enumeration of 1 to 78, that's
three iterations of the alphabet, 26 * 3"""
def romanize(num: int) -> str:
m = ["", "M", "MM", "MMM"]
c = ["", "C", "CC", "CCC", ... | PypiClean |
/certora_cli_alpha_shelly_hidespecfiles-20230514.10.11.636214-py3-none-any.whl/certora_cli/Shared/certoraUtils.py | import csv
import json
import os
import subprocess
from abc import ABCMeta
from enum import Enum, unique
import sys
import platform
import shlex
import shutil
import re
import queue
import math
from typing import Any, Callable, Dict, List, Optional, Set, Union, Generator, Tuple
from pathlib import Path
from contextlib ... | PypiClean |
/yindd-1.0.0-py3-none-any.whl/myapp/migrations/0001_initial.py |
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BussessModel',
fields=[
('id', models.Auto... | PypiClean |
/mypythontools-3.0.2.tar.gz/mypythontools-3.0.2/CONTRIBUTING.md | # Contributing
Simple guide on how to contribute.
## Develop flow
The feature requests forms into TODO list. Then a new branch with feature name is created. When it's finished, a pull request is created on the new branch.
Repository uses semantic versioning.
Some maintainer of repo will push the pull request to t... | PypiClean |
/Flask-NoExtRef-0.1.tar.gz/Flask-NoExtRef-0.1/flaskext/noextref.py | import re
import urllib
from flask import abort
from flask import url_for
from flask import redirect
from flask import request
class NoExtRef(object):
"""NoExtRef object adds ability to the Flask application to hide
external URL. Change the state of the Flask application: adds Jinja
filters and creates b... | PypiClean |
/petpptx-1.0.3.tar.gz/petpptx-1.0.3/pptx/oxml/shapes/graphfrm.py | from pptx.oxml import parse_xml
from pptx.oxml.chart.chart import CT_Chart
from pptx.oxml.ns import nsdecls
from pptx.oxml.shapes.shared import BaseShapeElement
from pptx.oxml.simpletypes import XsdBoolean, XsdString
from pptx.oxml.table import CT_Table
from pptx.oxml.xmlchemy import (
BaseOxmlElement,
OneAndOn... | PypiClean |
/psgraph-2.3.199-py3-none-any.whl/checkov/terraform/graph_builder/foreach/resource_handler.py | from __future__ import annotations
import logging
import typing
from copy import deepcopy
from typing import Any, Optional
from checkov.terraform.graph_builder.graph_components.block_types import BlockType
from checkov.terraform.graph_builder.foreach.abstract_handler import ForeachAbstractHandler
from checkov.terrafo... | PypiClean |
/scipion-em-sphire-3.1.10.tar.gz/scipion-em-sphire-3.1.10/README.rst | =============
Sphire plugin
=============
This plugin provides a wrapper for some programs of `SPHIRE <https://sphire.mpg.de/>`_ software suite:
- JANNI (Just Another Noise 2 Noise Implementation): a neural network denoising tool
- crYOLO: a fast and accurate particle picking procedure. It's based on convolut... | PypiClean |
/pyleus-0.3.0.tar.gz/pyleus-0.3.0/README.rst | Pyleus
======
Pyleus is a Python 2.6+ framework for developing and launching `Apache Storm`_ topologies.
Please visit our `documentation`_.
=============== ================
master develop
=============== ================
|master-status| |develop-status|
=============== ================
.. |master-... | PypiClean |
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/recaptcha.py | import json
import urllib.parse
import urllib.request
class RecaptchaResponse(object):
def __init__(self, is_valid, error_code=None):
self.is_valid = is_valid
self.error_code = error_code
def __repr__(self):
return '<RecaptchaResponse:%s>' % (self.is_valid)
def submit(g_recaptcha_re... | PypiClean |
/pyslvs_ui-20.12.0-cp37.cp38-none-any.whl/pyslvs_ui/synthesis/dimensional_synthesis/dialogs/chart.py | __author__ = "Yuan Chang"
__copyright__ = "Copyright (C) 2016-2020"
__license__ = "AGPL"
__email__ = "pyslvs@gmail.com"
from typing import Sequence, Mapping, Any
from numpy import array
from qtpy.QtCore import Qt, QSize
from qtpy.QtWidgets import QDialog, QVBoxLayout, QTabWidget, QWidget
from pyslvs_ui.graphics import... | PypiClean |
/hippunfold_toolbox-0.1.2.tar.gz/hippunfold_toolbox-0.1.2/resources/write_config_NiftyNet.py |
import sys
import configparser
import os
import shutil
import glob
# input arguments
trainingdir = sys.argv[1] #'../training_data_b1000/'
newmodeldir = sys.argv[2] #'testmodel'
iterations = sys.argv[3] #'testmodel'
try:
os.mkdir(newmodeldir)
except:
print("output directory already exists")
# copy over bo... | PypiClean |
/DynaMIT-1.1.5.tar.gz/DynaMIT-1.1.5/dynamit/heatmapPrinter.py |
from __future__ import print_function
from __future__ import division
from builtins import range, str, zip
import os
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import numpy as np
import dynamit.resultsPrinter
import dynamit.utils
class HeatmapPrinter(dynamit.resultsPrinter.ResultsPrinte... | PypiClean |
/OTLModel/Classes/Terugslagklep.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.LinkendElement import LinkendElement
from OTLMOW.OTLModel.Datatypes.KlTerugslagklepType import KlTerugslagklepType
from OTLMOW.OTLModel.Datatypes.KlTsklepAfsluiterMateriaal import KlTsklepAfsluiterMateriaal
from OTLMOW.OTLMod... | PypiClean |
/pytket_qiskit-0.43.0-py3-none-any.whl/pytket/extensions/qiskit/tket_job.py |
from dataclasses import dataclass
from typing import List, Dict, Optional, Any, TYPE_CHECKING, Union, cast
from qiskit.providers import JobStatus, JobV1 # type: ignore
from qiskit.result import Result # type: ignore
from pytket.backends import ResultHandle, StatusEnum
from pytket.backends.backend import Backend, Kwa... | PypiClean |
/plottool_ibeis-2.2.1.tar.gz/plottool_ibeis-2.2.1/plottool_ibeis/interact_keypoints.py | import utool as ut
from plottool_ibeis import draw_func2 as df2
from plottool_ibeis import plot_helpers as ph
from plottool_ibeis import interact_helpers as ih
from plottool_ibeis.viz_featrow import draw_feat_row
from plottool_ibeis.viz_keypoints import show_keypoints
from plottool_ibeis import abstract_interaction
(pr... | PypiClean |
/structured-profiling-0.3.9.tar.gz/structured-profiling-0.3.9/structured_data_profiling/preprocessor/preprocessor.py | import copy
import dateparser
import pandas as pd
class Preprocessor:
def __init__(self, column_types, n_bins=5):
self.num = [
i for i in column_types.keys() if column_types[i] == "number"
] # x.columns[x.dtypes != "object"]
self.cat_cols = None
self.nan_cols = None
... | PypiClean |
/nav_dataverk-0.0.1-py3-none-any.whl/nav_dataverk/connectors/kafka.py | import pandas as pd
import json
import struct
import requests
import avro
import avro.io
import io
import time
from kafka import KafkaConsumer
from collections import Mapping, Sequence
from enum import Enum
from datetime import datetime
from nav_dataverk.connectors import BaseConnector
class KafkaFetchMode(Enum):
... | PypiClean |
/openerp-auth-oauth-7.0.406.tar.gz/openerp-auth-oauth-7.0.406/controllers/main.py | import functools
import logging
import simplejson
import werkzeug.utils
from werkzeug.exceptions import BadRequest
import openerp
from openerp import SUPERUSER_ID
import openerp.addons.web.http as oeweb
from openerp.addons.web.controllers.main import db_monodb, set_cookie_and_redirect, login_and_redirect
from openerp... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.