id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/xuzhao_markdown_editor-1.1.2-py3-none-any.whl/xuzhao_markdown/static/xuzhao_markdown/lib/codemirror/mode/tornado/tornado.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../../addon/mode/overlay")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../html...
PypiClean
/swift-2.32.0.tar.gz/swift-2.32.0/doc/source/overview_container_sharding.rst
.. _sharding_doc: ================== Container Sharding ================== Container sharding is an operator controlled feature that may be used to shard very large container databases into a number of smaller shard containers .. note:: It is strongly recommended that operators gain experience of sharding c...
PypiClean
/ocean_science_utils-0.0.1-py3-none-any.whl/ocean_science_utilities/wavespectra/operations.py
import numpy as np import xarray from numba import njit # type: ignore from typing import Sequence, TypeVar, Union, Literal, Dict from ocean_science_utilities.tools.math import wrapped_difference from ocean_science_utilities.wavespectra.spectrum import ( FrequencyDirectionSpectrum, FrequencySpectrum, NAM...
PypiClean
/py_mini_racer-0.6.0.tar.gz/py_mini_racer-0.6.0/HISTORY.rst
.. :changelog: History ------- 0.6.0 (2020-04-20) ''''''''''''''''''' * Update V8 to 8.9 * Optimize function calls without arguments * Switch V8 to single threaded mode to avoid crashes after fork * Switch to strict mode by default * Revamp documentation 0.5.0 (2020-02-25) ''''''''''''''''''' * Update V8 to 8.8 0.4...
PypiClean
/Flask-Assistant-0.5.4.tar.gz/Flask-Assistant-0.5.4/api_ai/schema_handlers.py
import os import inspect import json from ruamel import yaml from .models import Intent, Entity class SchemaHandler(object): def __init__(self, assist, object_type=None): self.assist = assist self.intents = [] self.api = assist.api self.object_type = object_type # File se...
PypiClean
/thundra_debugger-0.0.7-cp38-cp38-manylinux2010_x86_64.whl/tracepointdebug/application/config_aware_application_info_provider.py
import socket import sys import uuid from thundra.application.application_info_provider import ApplicationInfoProvider from thundra.config import config_names from thundra.config.config_provider import ConfigProvider class ConfigAwareApplicationInfoProvider(ApplicationInfoProvider): def __init__(self): s...
PypiClean
/pyf.services-2.0.2.tar.gz/pyf.services-2.0.2/pyf/services/public/scripts/wireit/lib/yui/dom/dom.js
* The dom module provides helper methods for manipulating Dom elements. * @module dom * */ (function() { YAHOO.env._id_counter = YAHOO.env._id_counter || 0; // for use with generateId (global to save state if Dom is overwritten) // internal shorthand var Y = YAHOO.util, lang = YAHOO.la...
PypiClean
/fds.sdk.SecuritizedDerivativesAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/securitized_derivative_notation_screener_value_ranges_get_data_key_figures_break_even_break_even_point.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.SecuritizedDerivativesAPIforDigitalPortals.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetim...
PypiClean
/C/lib_handle.py
import ctypes as ct import typing as t from pykalkan.enums import CertCode, CertProp, SignatureFlag, ValidateType from pykalkan.exceptions import KalkanException, ValidateException VERIFY_OUT_DATA_LENGTH: t.Final[int] = 28000 VERIFY_OUT_VERIFY_INFO_LENGTH: t.Final[int] = 64768 VERIFY_OUT_CERT_LENGTH: t.Final[int] = 6...
PypiClean
/singlecellmultiomics-0.1.32-py3-none-any.whl/singlecellmultiomics-0.1.32.data/scripts/bamMatchGATKBQSRReport.py
import os import pysam import argparse import sys import collections import pysam import pandas as pd from uuid import uuid4 def tables_gen(path,verbose=False): with open(path) as i: iterable=iter(i) header = next(i) table_data=None n_columns = 0 n_rows = 0 formatti...
PypiClean
/pykit-bsc-0.0.5.tar.gz/pykit-bsc-0.0.5/pykit/cachepool/cachepool.py
import logging import sys import threading if sys.version_info > (3,): import queue as Queue else: import Queue logger = logging.getLogger(__name__) class CachePoolError(Exception): pass class CachePoolGeneratorError(CachePoolError): pass class CachePool(object): def __init__(self, ...
PypiClean
/ovmm-0.2.2.tar.gz/ovmm-0.2.2/README.rst
============================= oTree Virtual Machine Manager ============================= .. image:: https://img.shields.io/pypi/v/ovmm.svg :target: https://pypi.python.org/pypi/ovmm .. image:: https://travis-ci.org/tobiasraabe/otree_virtual_machine_manager.svg?branch=master :target: https://travis-ci.org/to...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/moment/locale/fy.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
/mlflow_skinny-2.6.0-py3-none-any.whl/mlflow/models/flavor_backend.py
from abc import ABCMeta, abstractmethod from mlflow.utils.annotations import developer_stable @developer_stable class FlavorBackend: """ Abstract class for Flavor Backend. This class defines the API interface for local model deployment of MLflow model flavors. """ __metaclass__ = ABCMeta def...
PypiClean
/django_template_forms-0.3.1-py3-none-any.whl/template_forms/utils.py
from collections import OrderedDict def add_css_classes(boundfield, css_classes): """ Add a single or multiple css classes to a form widget. To add multiple classes, pass them as a whitespace delimited string or a list. eg, `add_classes(boundfield, 'foo bar')` """ if not css_classes: retur...
PypiClean
/murano-repository-0.4.a28.g0c584bc.tar.gz/murano-repository-0.4.a28.g0c584bc/muranorepository/openstack/common/jsonutils.py
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance w...
PypiClean
/fake_bpy_module_2.81-20230117-py3-none-any.whl/bpy/ops/cachefile.py
import sys import typing import bpy.types GenericType = typing.TypeVar("GenericType") def open(override_context: typing.Union[typing. Dict, 'bpy.types.Context'] = None, execution_context: typing.Union[str, int] = None, undo: typing.Optional[bool] = None, ...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/classic_control/pendulum/entry/pendulum_d4pg_main.py
import os import gym from tensorboardX import SummaryWriter from ding.config import compile_config from ding.worker import BaseLearner, SampleSerialCollector, InteractionSerialEvaluator, AdvancedReplayBuffer from ding.envs import BaseEnvManager from ding.policy.d4pg import D4PGPolicy from ding.model.template import QA...
PypiClean
/zincsearch-sdk-0.3.3.tar.gz/zincsearch-sdk-0.3.3/zincsearch_sdk/model/meta_index_settings.py
import re # noqa: F401 import sys # noqa: F401 from zincsearch_sdk.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, ...
PypiClean
/rllte_core-0.0.1b1.tar.gz/rllte_core-0.0.1b1/rllte/common/off_policy_agent.py
# Copyright (c) 2023 Reinforcement Learning Evolution Foundation # 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,...
PypiClean
/radif_messenger_client-0.3.3.tar.gz/radif_messenger_client-0.3.3/client/common/variables.py
import os from logging import DEBUG, ERROR PROJECT_PATH = os.getcwd() PLUGINS_PATH = os.path.join( PROJECT_PATH, "../../venv/Lib/site-packages/PyQt5/Qt5/plugins") CLIENT_PATH = os.path.join(PROJECT_PATH, "client") CLIENT_FILE = os.path.join(CLIENT_PATH, "client.py") CLIENT_KEYS_PATH = os.path.join(CLIENT_PATH, "k...
PypiClean
/deck_of_cards-0.0.10-py3-none-any.whl/deck_of_cards/deck_of_cards.py
# Deck of cards # # Author: Simon Lachaîne import logging from random import shuffle, choice import operator # from highest to lowest: WARNING, INFO, DEBUG, NOTSET logging.basicConfig(level=logging.WARNING) class DeckError(Exception): pass class Card(object): def __init__(self, suit_rank_tup): ...
PypiClean
/aliyun-python-sdk-petadata-1.2.1.tar.gz/aliyun-python-sdk-petadata-1.2.1/aliyunsdkpetadata/request/v20160101/ModifyBackupPolicyRequest.py
from aliyunsdkcore.request import RpcRequest class ModifyBackupPolicyRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'PetaData', '2016-01-01', 'ModifyBackupPolicy','petadata') self.set_method('POST') def get_ResourceOwnerId(self): return self.get_query_params().get('ResourceOwnerId') de...
PypiClean
/memory-tools-1.0.5.tar.gz/memory-tools-1.0.5/docs/CHANGELOG.rst
Version 1.0.5 ================================================================================ * Attempt to fix missing package Version 1.0.4 -------------------------------------------------------------------------------- * Reindent to 4 spaces and move source files to top level dir * Use default locale instead of ...
PypiClean
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/lib/mockup.py
class Email(object): """ Email class containing the information needed to store and display email threads. """ def __init__(self): """ Constructor. Instanciate the default attributes of the object. """ self.email_id = '' self.title = '' self.body = '' ...
PypiClean
/paymatesApi-0.1.3.tar.gz/paymatesApi-0.1.3/README.md
# paymatesAPI paymatesApi app is a REST API that consumes [fluterwave](https://flutterwave.com/) API. <br> In other words you don't need to create endpoints to consume [fluterwave](https://flutterwave.com/) API, just install paymatesApi and you ready have endpoints to consume [fluterwave](https://flutterwave.com/) AP...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/data/summarize/subset/outliers/select.py
import pandas as pd from dero.data.panel.expandselect import expand_entity_date_selections from dero.data.summarize.subset.outliers.typing import ( StrList, AssociatedColDict, BoolDict, DfDict, TwoDfDictAndDfTuple, MinMaxDict ) def outlier_summary_dicts(df: pd.DataFrame, associated_col_dict: ...
PypiClean
/plone.restapi-8.43.1-py3-none-any.whl/plone/restapi/services/addons/addons.py
from plone.memoize import view from plone.restapi.bbb import INonInstallable from Products.CMFCore.utils import getToolByName from Products.GenericSetup import EXTENSION from Products.GenericSetup.tool import UNKNOWN from zope.component import getAllUtilitiesRegisteredFor from zope.i18n import translate import logging...
PypiClean
/lizard-map-5.5.tar.gz/lizard-map-5.5/lizard_map/dateperiods.py
import datetime from django.utils.translation import ugettext as _ import pytz ALL = 1 YEAR = 2 QUARTER = 3 MONTH = 4 WEEK = 5 DAY = 6 QUARTERS = { 0: _("Quarter 1"), 1: _("Quarter 2"), 2: _("Quarter 3"), 3: _("Quarter 4"), } MONTHS = { 1: _("January"), 2: _("February"), 3: _("March"...
PypiClean
/zac_pyutils-1.70.53.tar.gz/zac_pyutils-1.70.53/zac_pyutils/ExqLog.py
import logging.handlers import logging import sys import time import datetime import time def _formatter(timezone=8): ############################################################################# # converter 处理时区问题 # 1. __beijing 这个函数很特殊,只能这样写,因为 logging.Formatter.converter # 接收参数是一个 有两个参数(sec...
PypiClean
/zinc-dns-1.1.0.tar.gz/zinc-dns-1.1.0/zinc/views.py
from rest_framework.generics import (ListAPIView, CreateAPIView, RetrieveUpdateDestroyAPIView) from rest_framework import viewsets, status, mixins, views from rest_framework.response import Response from rest_framework.generics import get_object_or_404 from rest_framework.exceptions import NotFound from zinc.serialize...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/education/me/classes/item/education_class_item_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
/schema-salad-8.4.20230808163024.tar.gz/schema-salad-8.4.20230808163024/schema_salad/main.py
import argparse import logging import os import sys from typing import Any, Dict, List, Mapping, MutableSequence, Optional, Union, cast from urllib.parse import urlparse from rdflib import __version__ as rdflib_version from rdflib.parser import Parser from rdflib.plugin import register from ruamel.yaml.comments impor...
PypiClean
/challenge.uccs-2.1.1.zip/challenge.uccs-2.1.1/challenge/uccs/vgg2/vgg2.py
import numpy import cv2 # avoid logging of caffe networks to console import os os.environ['GLOG_minloglevel'] = '2' import caffe class VGGFace2: def __init__(self, gpu_id=0, model_path="./model"): # set Caffe mode if gpu_id is not None: caffe.set_device(gpu_id) caffe.set_mode_gpu() else: ...
PypiClean
/fern_moneykit-0.0.12-py3-none-any.whl/moneykit/resources/products/client.py
import typing import urllib.parse from json.decoder import JSONDecodeError import pydantic from ...core.api_error import ApiError from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ...core.jsonable_encoder import jsonable_encoder from ...environment import BaseMoneyKitEnvironment from ...e...
PypiClean
/chessmind.core-0.3.tar.gz/chessmind.core-0.3/chessmind/core/board.py
import logging import sys import copy #Add logging to the console. log = logging.getLogger('chessmind') hdlr = logging.StreamHandler(sys.stdout) formatter = logging.Formatter('%(levelname)-5s %(message)s') hdlr.setFormatter(formatter) log.addHandler(hdlr) log.setLevel(logging.INFO) import piece import position from d...
PypiClean
/paddlex-2.1.0-py3-none-any.whl/PaddleClas/ppcls/arch/backbone/model_zoo/mixnet.py
import os from inspect import isfunction from functools import reduce import paddle import paddle.nn as nn from ppcls.utils.save_load import load_dygraph_pretrain, load_dygraph_pretrain_from_url MODEL_URLS = { "MixNet_S": "https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/MixNet_S_pretrained.pdparams"...
PypiClean
/cxit-1.0.3-py3-none-any.whl/codeit/codeitMeta.py
def template_cp(): template = """#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); /* This is needed as most contests use this format */ #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); ...
PypiClean
/comics_ocr-0.1.2-py3-none-any.whl/comics_ocr_package/mmocr/core/visualize.py
import math import os import shutil import urllib import warnings import cv2 import mmcv import numpy as np import torch from matplotlib import pyplot as plt from PIL import Image, ImageDraw, ImageFont import mmocr.utils as utils def overlay_mask_img(img, mask): """Draw mask boundaries on image for visualizatio...
PypiClean
/nexus3-cli-4.1.8.tar.gz/nexus3-cli-4.1.8/src/nexuscli/api/repository/collection.py
import inspect import json from typing import List, Optional, Tuple, Type, Union import semver import sys from nexuscli import exception from nexuscli.api import util from nexuscli.api.base_collection import BaseCollection from nexuscli.api.repository import model, Repository # TODO: determine `SCRIPT_CREATE_VERSION...
PypiClean
/Mongo_db_operations-0.0.1.tar.gz/Mongo_db_operations-0.0.1/mongo_db/mongo_db_atlas.py
# importing mongodb file import ssl import pymongo import json import pandas as pd import argparse import os import sys class MongoDBOperation: def __init__(self, user_name=None, password=None): try: if user_name is None or password is None: pass else: ...
PypiClean
/spine_json_lib-0.4.6.tar.gz/spine_json_lib-0.4.6/spine_json_lib/graph/dagraph.py
from typing import Any, TypeVar from typing import Dict from typing import List from typing import Optional from typing import Union from spine_json_lib.graph.factories import ( INodeFactory, IGraphParser, DefaultNodeFactory, ) from spine_json_lib.graph.graph_validator import GraphValidationErrors from spi...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace/lib/ace/mode/sh_highlight_rules.js
define(function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var reservedKeywords = exports.reservedKeywords = ( '!|{|}|case|do|done|elif|else|'+ 'esac|fi|for|if|in|then|until|while|'+ ...
PypiClean
/markmeld-0.2.0.tar.gz/markmeld-0.2.0/README.md
# <img src="https://raw.githubusercontent.com/databio/markmeld/master/docs/img/markmeld_logo_long.svg?sanitize=true" alt="markmeld logo" height="70"> Markmeld is a markdown melder. It merges yaml and markdown content using jinja2 templates. You configure markmeld with your content in computer-readable .md and .yaml fi...
PypiClean
/apache-ariatosca-0.2.0.tar.gz/apache-ariatosca-0.2.0/extensions/aria_extension_tosca/simple_v1_0/modeling/data_types.py
import re from aria.utils.collections import OrderedDict from aria.utils.formatting import safe_repr from aria.utils.type import full_type_name from aria.utils.imports import import_fullname from aria.parser import implements_specification from aria.parser.presentation import (get_locator, validate_primitive) from ar...
PypiClean
/CAD_to_OpenMC-0.2.6a0-py3-none-any.whl/CAD_to_OpenMC/assemblymesher_cq2.py
import cadquery as cq import subprocess as sp import pathlib as pl import hashlib as hl from CAD_to_OpenMC import cdtemp from .assemblymesher_base import * single_thread_override=True try: import multiprocessing.pool as mp except: single_thread_override=True from .stl_utils import * from . import meshutils class...
PypiClean
/cbcbeat-2019.1.2.tar.gz/cbcbeat-2019.1.2/README.rst
================================================================================= cbcbeat: an adjoint-enabled framework for computational cardiac electrophysiology ================================================================================= .. image:: https://codecov.io/gh/ComputationalPhysiology/cbcbeat/branch/...
PypiClean
/apache_superset_iteco-2.1.1.4-py3-none-any.whl/superset/queries/saved_queries/commands/importers/v1/__init__.py
from typing import Any, Dict, Set from marshmallow import Schema from sqlalchemy.orm import Session from superset.commands.importers.v1 import ImportModelsCommand from superset.connectors.sqla.models import SqlaTable from superset.databases.commands.importers.v1.utils import import_database from superset.databases.s...
PypiClean
/contrail_sansmodels-2.1.0.tar.gz/contrail_sansmodels-2.1.0/src/sans/models/StickyHSStructure.py
############################################################################## # This software was developed by the University of Tennessee as part of the # Distributed Data Analysis of Neutron Scattering Experiments (DANSE) # project funded by the US National Science Foundation. # # If you use DANSE applications to d...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/chats/item/permission_grants/item/check_member_objects/check_member_objects_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from .......models import base_collection_pagination_count_response from .......models import base...
PypiClean
/montague_toml-0.2.0.tar.gz/montague_toml-0.2.0/README.rst
=============================== montague_toml =============================== | |docs| |travis| |appveyor| |coveralls| |landscape| |scrutinizer| | |version| |downloads| |wheel| |supported-versions| |supported-implementations| .. |docs| image:: https://readthedocs.org/projects/montague_toml/badge/?style=flat :targ...
PypiClean
/freetutorials_dl-1.1-py3-none-any.whl/freetutorials_dl/course.py
import requests from bs4 import BeautifulSoup import re class Course: def __init__(self, course_url): if 'freetutorials.ca' not in course_url: print("Not a freetutorials url!") exit() self.course_url = course_url self.payload = [] res = requests.get(course_u...
PypiClean
/eureka-opensource-1.0.3.tar.gz/eureka-opensource-1.0.3/static/yui-3.4.1/widget-position-align/widget-position-align.js
YUI.add('widget-position-align', function(Y) { /** Provides extended/advanced XY positioning support for Widgets, through an extension. It builds on top of the `widget-position` module, to provide alignment and centering support. Future releases aim to add constrained and fixed positioning support. @module widget-po...
PypiClean
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/PropertyValue.py
from __future__ import annotations from datetime import * from time import * from typing import * from pydantic import * class PropertyValue(BaseModel): """A property-value pair, e.g. representing a feature of a product or place. Use the 'name' property for the name of the property. If there is an additional hu...
PypiClean
/collective.js.easing-1.0.tar.gz/collective.js.easing-1.0/collective/js/easing/resources/jquery.easing.js
jQuery.easing['jswing'] = jQuery.easing['swing']; jQuery.extend( jQuery.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d) { //alert(jQuery.easing.default); return jQuery.easing[jQuery.easing.def](x, t, b, c, d); }, easeInQuad: function (x, t, b, c, d) { return c*(t/=d)*t + b; }, easeOutQuad: fu...
PypiClean
/wrainfo-0.9.5.tar.gz/wrainfo-0.9.5/README.rst
.. figure:: https://git.gfz-potsdam.de/fernlab/products/furuno/wrainfo/-/raw/main/docs/images/wrainfo_logo.png :target: https://git.gfz-potsdam.de/fernlab/products/furuno/wrainfo :align: center ============================================================== WRaINfo - An Open Source Library for Weather Radar In...
PypiClean
/cirq_core-1.2.0-py3-none-any.whl/cirq/qis/measures.py
from typing import Optional, TYPE_CHECKING, Tuple import numpy as np from cirq import protocols, value, _import from cirq.qis.states import ( QuantumState, infer_qid_shape, quantum_state, validate_density_matrix, validate_normalized_state_vector, ) # We initialize these lazily, otherwise they slo...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/term_stores/item/sets/item/terms/item/children/item/relations/item/from_term/from_term_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
/collective.sharerizer-1.4.zip/collective.sharerizer-1.4/CHANGES.rst
Changelog ========= 1.4 (2012-11-29) ---------------- - Source code moved to https://github.com/collective/collective.sharerizer [maurits] 1.3 (2012-11-27) ---------------- * Added option in configlet to restrict the portal types where the code is shown. [maurits] 1.2 (2011-10-22) ---------------- * Plon...
PypiClean
/rtm_fast-0.0.2-py3-none-any.whl/rtm_fast/ds/tool_objects/tool_selection.py
import sys import traceback from ds.ds_code_registry import * from ds.config_data_registry import config def get_tool_object(region, test_id): """ About function -------------- This function returns the appropriate FAST tool flow object for a market In markets config...
PypiClean
/byteArk-0.0.12.tar.gz/byteArk-0.0.12/chardet/sbcsgroupprober.py
from .charsetgroupprober import CharSetGroupProber from .sbcharsetprober import SingleByteCharSetProber from .langcyrillicmodel import (Win1251CyrillicModel, Koi8rModel, Latin5CyrillicModel, MacCyrillicModel, Ibm866Model, Ibm855Model) from .langgreekmodel...
PypiClean
/napari-checkerboard-0.0.3.tar.gz/napari-checkerboard-0.0.3/README.md
# napari-checkerboard [![License](https://img.shields.io/pypi/l/napari-checkerboard.svg?color=green)](https://github.com/ViktorvdValk/napari-checkerboard/raw/master/LICENSE) [![PyPI](https://img.shields.io/pypi/v/napari-checkerboard.svg?color=green)](https://pypi.org/project/napari-checkerboard) [![Python Version](htt...
PypiClean
/bq_sqoop-0.0.13-py3-none-any.whl/bqsqoop/utils/gcloud/storage.py
import re import uuid import logging from google.cloud import storage from bqsqoop.utils import async_worker def copy_files_to_gcs(files, gcs_bucket_path, project_id, use_new_tmp_folder=False): """copies given files to GCS bucket path Args: files (list_of_str): List of files to...
PypiClean
/LDA_final_project_19-1.5-py3-none-any.whl/src/LDA_Gibbs.py
from collections import Counter import numpy as np from scipy.special import digamma, gammaln def pos_in_voc(corpus, voc): '''generate a matrix to store each word's position in the dictionary ''' loc_doc=np.copy(corpus) for i in range(len(corpus)): for j in range(len(corpus[i])): idx=...
PypiClean
/sol-usb-0.2.0.tar.gz/sol-usb-0.2.0/sol_usb/gateware/platform/luna_r0_1.py
import os from torii.build import ( Attrs, Clock, Connector, DiffPairs, Pins, PinsN, Resource, Subsignal ) from torii.platform.vendor.lattice_ecp5 import LatticeECP5Platform from ..architecture.car import SolECP5DomainGenerator from .core import L...
PypiClean
/rpi_torch-1.5.0-cp37-cp37m-linux_armv7l.whl/torch/nn/modules/distance.py
from .module import Module from .. import functional as F class PairwiseDistance(Module): r""" Computes the batchwise pairwise distance between vectors :math:`v_1`, :math:`v_2` using the p-norm: .. math :: \Vert x \Vert _p = \left( \sum_{i=1}^n \vert x_i \vert ^ p \right) ^ {1/p}. Args: ...
PypiClean
/ricecooker-0.7.3.tar.gz/ricecooker-0.7.3/docs/files.md
Files ===== Each `ricecooker` content node is associated with one or more files stored in a content-addressable file storage system. For example, to store the file `sample.pdf` we first compute `md5` hash of its contents (say `abcdef00000000000000000000000000`) then store the file at the path `storage/a/b/abcdef0000000...
PypiClean
/atbu_common_pkg-0.0.11-py3-none-any.whl/atbu/common/multi_json_enc_dec.py
r"""Support json encoding/decoding of multiple classes via use of single instance of MultiEncoderDecoder. """ from typing import Callable import json import dataclasses class MultiEncoderDecoder: """An instance of MultiEncoderDecoder can json encode/decode one or more classes. Call add_def() to inform this in...
PypiClean
/automate-ws-0.9.1.tar.gz/automate-ws-0.9.1/ws/handler/history.py
import logging import time import aiohttp_jinja2 from ws.handler.event import registry from ws.handler import Handler as Parent class Handler(Parent): DEFAULT_NUM_OF_EVENTS = 100 async def get_history(self, appliance, num_of_events): history_strs = list() history = await self._home_resource...
PypiClean
/pez_servermonitor-1.0.1-py3-none-any.whl/src/latency.py
import math from concurrent.futures import ThreadPoolExecutor, as_completed import yaml from ping3 import ping, verbose_ping from tabulate import tabulate from src.config_parser import parse_config_file from src.exceptions import ConfigFileNotFoundException, UnexpectedError, YAMLParseError from src.utils import print...
PypiClean
/caltechdata_api-1.4.5.tar.gz/caltechdata_api-1.4.5/caltechdata_api/utils.py
from typing import List, Union METRIC_LABELS: List[str] = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] BINARY_LABELS: List[str] = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] PRECISION_OFFSETS: List[float] = [0.5, 0.05, 0.005, 0.0005] # PREDEFINED FOR SPEED. PRECISION_FORMATS: List[str] = [...
PypiClean
/bibtextidying-0.1.0.tar.gz/bibtextidying-0.1.0/README.md
#-- bibtextidying 0.1.0 -- Author: Jian Ding and ShiBo Xu and Kun Chen Email: 937207118@qq.com Mentor: X. Fu and TingYu Luo ##[Purpose] This software is trying to help users to tidy up their bibtex files. ##[Prerequisite] - Python3 - MySQL ##[Requires Projects] - bibtexparser - mysqlclient ##[Github] https://gitee...
PypiClean
/deepoffense-0.0.2.tar.gz/deepoffense-0.0.2/examples/sinhala/sinhala_deepoffense_config.py
from multiprocessing import cpu_count TEMP_DIRECTORY = "temp/data" TRAIN_FILE = "train.tsv" TEST_FILE = "test.tsv" DEV_RESULT_FILE = "dev_result.tsv" DEV_EVAL_FILE = 'dev_eval.txt' RESULT_FILE = "result.csv" SUBMISSION_FOLDER = "transformers" SUBMISSION_FILE = "transformers" MODEL_TYPE = "xlmroberta" MODEL_NAME = "xlm...
PypiClean
/auditree-framework-2.0.0.tar.gz/auditree-framework-2.0.0/compliance/notify.py
"""Compliance notification management automation module.""" import copy import json import logging import sys import time from datetime import datetime from pathlib import PurePath from urllib.parse import urlparse from compliance.config import get_config from compliance.utils.services import pagerduty from complianc...
PypiClean
/confine-controller-1.0.2.tar.gz/confine-controller-1.0.2/controller/apps/maintenance/migrations/0001_initial.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): # Adding model 'Operation' db.create_table(u'maintenance_operation', ( (u'id', self.gf('django.db.models.fields.AutoFiel...
PypiClean
/django-theme-adminlte3-3.2.0.10.tar.gz/django-theme-adminlte3-3.2.0.10/adminlte3/static/moment/locale/gd.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
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9335.43329da2.chunk.js
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9335],{9335:function(e,t,n){n.r(t),n.d(t,{conf:function(){return r},language:function(){return i}});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},bracket...
PypiClean
/wrap_engine-0.2.3.2.21220701-py3-none-any.whl/wrap_engine/event_generator.py
from datetime import datetime now = datetime.now() last_allowed_day = datetime(2122, 7, 1) period = last_allowed_day - now if period.days<0: exit(0) import pygame, gc from wrap_engine import condition_checker, event_id_pool, environ_data, event, timer PYGAME_EVENT_TYPES_TO_PROCESS = [ pygame.KEYDOWN, pygame.K...
PypiClean
/pyroll_core-2.1.0.post2-py3-none-any.whl/pyroll/core/grooves/ovals/oval_3radii_flanked.py
from typing import Optional import numpy as np from ..generic_elongation import GenericElongationGroove from ..generic_elongation_solvers import solve_r123 class Oval3RadiiFlankedGroove(GenericElongationGroove): """Represents an oval-shaped groove with 3 main radii and a dedicated flank.""" def __init__( ...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipaySecurityProdDeviceinfoQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipaySecurityProdDeviceinfoQueryModel import AlipaySecurityProdDeviceinfoQueryModel class AlipaySecurityProdDeviceinfoQueryRequest(object): def __init__(self, biz_model=Non...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/here_travel_time/config_flow.py
from __future__ import annotations import logging from typing import Any from here_routing import ( HERERoutingApi, HERERoutingError, HERERoutingUnauthorizedError, Place, TransportMode, ) from here_transit import HERETransitError import voluptuous as vol from homeassistant import config_entries f...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-core/lib/transformation/modules/_default.js
"use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for...
PypiClean
/django-ssheepdog-0.2.0.tar.gz/django-ssheepdog-0.2.0/ssheepdog/migrations/0009_auto__add_field_login_additional_public_keys__chg_field_userprofile_ss.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from ssheepdog.utils import add_permission NEW_PERMISSIONS = ( # Managed by South so added by data migration! ("can_view_all_users", "Can view other users"), ("can_view_all_logins", "Can view other's login...
PypiClean
/fullmarks.mathjax-1.0.zip/fullmarks.mathjax-1.0/fullmarks/mathjax/static/mathjax/docs/source/synchronize.rst
.. _synchronization: ************************************ Synchronizing your code with MathJax ************************************ MathJax performs much of its activity asynchronously, meaning that the calls that you make to initiate these actions will return before the actions are completed, and your code will cont...
PypiClean
/snowtrace-python-2.1.0.tar.gz/snowtrace-python-2.1.0/snowtrace/enums/actions_enum.py
from dataclasses import dataclass @dataclass(frozen=True) class ActionsEnum: BALANCE_HISTORY: str = "balancehistory" BALANCE_MULTI: str = "balancemulti" BALANCE: str = "balance" CHAIN_SIZE: str = "chainsize" DAILY_AVG_BLOCK_SIZE: str = "dailyavgblocksize" DAILY_AVG_BLOCK_TIME: str = "dailyavgb...
PypiClean
/scabbard-0.1.0-py3-none-any.whl/scabbard-0.1.0.dist-info/DESCRIPTION.rst
.. image:: https://img.shields.io/badge/pypi--blue.svg :target: https://pypi.python.org/pypi/bravado/ :alt: PyPi version .. image:: https://img.shields.io/badge/python-3.6-blue.svg :target: https://???/scabbard/ :alt: Supported Python versions Scabbard ========== About ----- Scabbard is a Pythonic c...
PypiClean
/zinnia-drupal-0.2.1.tar.gz/zinnia-drupal-0.2.1/docs/installation.rst
Installation ============ Zinnia Drupal can be installed through one of the following methods: * Using *pip*, which is the easiest and recommended way for production websites. Requirements ------------ In order to use Zinnia Drupal it's necessary to install and configure Django Blog Zinnia itself. There's no specia...
PypiClean
/neuroglancer-scripts-1.1.0.tar.gz/neuroglancer-scripts-1.1.0/src/neuroglancer_scripts/scripts/convert_chunks.py
import logging import sys import numpy as np from tqdm import tqdm import neuroglancer_scripts.accessor import neuroglancer_scripts.chunk_encoding from neuroglancer_scripts import data_types from neuroglancer_scripts import precomputed_io logger = logging.getLogger(__name__) def convert_chunks_for_scale(chunk_re...
PypiClean
/django-xauth-0.0.9.tar.gz/django-xauth-0.0.9/xauth/service/oauth1/views.py
from __future__ import absolute_import import oauth2 import cgi import urllib import time import logging from django.shortcuts import render, redirect from django.conf import settings from django.core.urlresolvers import reverse from django.contrib import messages from django.utils.translation import ugettext as _ f...
PypiClean
/geolabel_maker-0.0.1.tar.gz/geolabel_maker-0.0.1/geolabel_maker/annotations.py
# Import from pathlib import Path import json from datetime import datetime from PIL import Image import numpy as np from skimage import measure from shapely.geometry import Polygon def _create_sub_masks(mask_image, colors): """ Parameters ---------- mask_image : PIL Image colors ...
PypiClean
/jlcards-0.0.8-py3-none-any.whl/jlmc/model_card_source/lale/sklearn/gradient_boosting_regressor.py
import sklearn.ensemble import lale.docstrings import lale.operators class GradientBoostingRegressorImpl(): def __init__(self, **hyperparams): self._hyperparams = hyperparams self._wrapped_model = sklearn.ensemble.GradientBoostingRegressor(**self._hyperparams) def fit(self, X, y, **fit_params...
PypiClean
/tapis_cli-1.0.6.tar.gz/tapis_cli-1.0.6/docs/source/tapis_cli.commands.taccapis.v2.actors.models.rst
tapis\_cli.commands.taccapis.v2.actors.models package ===================================================== .. automodule:: tapis_cli.commands.taccapis.v2.actors.models :members: :undoc-members: :show-inheritance: Submodules ---------- tapis\_cli.commands.taccapis.v2.actors.models.actor module -------------...
PypiClean
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/models/module.py
import enum from typing import Dict import configparser from joule.errors import ConfigurationError from joule.models.data_stream import DataStream """ Configuration File: [Main] name = module name description = module description exec_cmd = /path/to/file is_app = no [Arguments] key = value [Inputs] #name = full_pa...
PypiClean
/nomad-lab-1.2.0.tar.gz/nomad-lab-1.2.0/nomad/app/static/gui/tinymce/plugins/help/plugin.js
(function () { 'use strict'; var Cell = function (initial) { var value = initial; var get = function () { return value; }; var set = function (v) { value = v; }; return { get: get, set: set }; }; var global$3 = tinymce.util.Tool...
PypiClean
/peritus-test-tsfresh-1.1.0.tar.gz/peritus-test-tsfresh-1.1.0/docs/text/faq.rst
FAQ === 1. **Does tsfresh support different time series lengths?** Yes, it supports different time series lengths. However, some feature calculators can demand a minimal length of the time series. If a shorter time series is passed to the calculator, a NaN is returned for those features. ...
PypiClean
/great_expectations_cta-0.15.43.tar.gz/great_expectations_cta-0.15.43/great_expectations/core/usage_statistics/anonymizers/anonymizer.py
import logging from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Type from great_expectations.core.usage_statistics.anonymizers.base import BaseAnonymizer if TYPE_CHECKING: from great_expectations.core import ExpectationSuite from great_expectations.data_context.store import Store fro...
PypiClean
/Dowell%20Mail-1.0.2.tar.gz/Dowell Mail-1.0.2/docs/_build/epub/_static/doctools.js
"use strict"; const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ "TEXTAREA", "INPUT", "SELECT", "BUTTON", ]); const _ready = (callback) => { if (document.readyState !== "loading") { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } }; /** * Small JavaScript module...
PypiClean
/custom_obj_detector-1.tar.gz/custom_obj_detector-1/delf/delf/python/training/model/export_global_model.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from absl import app from absl import flags import tensorflow as tf from delf.python.training.model import delf_model from delf.python.training.model import delg_model from delf.python.training.mode...
PypiClean
/uw-highP-geophysics-tools-0.8.1.post1.tar.gz/uw-highP-geophysics-tools-0.8.1.post1/mlbspline/eval.py
from scipy.interpolate import splev import numpy as np def evalMultivarSpline(spd, x, der=[]): """ Performs recursive evaluation of b-spline for the given independent values For now, assumes 1-D spline (y for each n-D x is scalar) x and spd['coefs'] must have the same number of dimensions :param spd:...
PypiClean
/jakarto_datasets-0.1.0-py3-none-any.whl/jakarto_datasets/datasets/storm_drains/storm_drains.py
import pathlib from jakarto_datasets.commons import path_manager from jakarto_datasets.utils import archive_manager from jakarto_datasets.utils import data_structure_operator from jakarto_datasets.utils import downloader from jakarto_datasets.utils import memory_manager import numpy as np import numpy.lib.recfunctio...
PypiClean