id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/zhihu_crawler-0.0.2.tar.gz/zhihu_crawler-0.0.2/zhihu_crawler/common/node_modules/uuid/lib/md5-browser.js
'use strict'; function md5(bytes) { if (typeof(bytes) == 'string') { var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape bytes = new Array(msg.length); for (var i = 0; i < msg.length; i++) bytes[i] = msg.charCodeAt(i); } return md5ToHexEncodedArray( wordsToMd5( bytesToWords(bytes...
PypiClean
/ifly_ailab-1.0.0-py3-none-any.whl/ailab/inference_wrapper/yolo/wrapper/yolov5/utils/segment/metrics.py
import numpy as np from ..metrics import ap_per_class def fitness(x): # Model fitness as a weighted combination of metrics w = [0.0, 0.0, 0.1, 0.9, 0.0, 0.0, 0.1, 0.9] return (x[:, :8] * w).sum(1) def ap_per_class_box_and_mask( tp_m, tp_b, conf, pred_cls, target_...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/item_category_collection_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 . import base_collection_pagination_count_response, item_category from . import base_collecti...
PypiClean
/torch_salad-0.2.1a0-py3-none-any.whl/salad/solver/da/dirtt.py
__author__ = "Steffen Schneider" __email__ = "steffen.schneider@tum.de" import os, time import pandas as pd import numpy as np from tqdm import tqdm import torch import torch.utils.data import torch.nn as nn from ... import layers, optim from .. import Solver, BaseClassSolver from .base import DABaseSolver from .d...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/pastefromword/filter/default.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){function y(a){for(var a=a.toUpperCase(),c=z.length,b=0,f=0;f<c;++f)for(var d=z[f],e=d[1].length;a.substr(0,e)==d[1];a=a.substr(e))b+=d[0];return b}function A(a){f...
PypiClean
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/moment/src/locale/gl.js
import moment from '../moment'; export default moment.defineLocale('gl', { months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( '_' ), monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( '_' ...
PypiClean
/velovae-0.1.2-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/model/model_util.py
import numpy as np import os import torch import torch.nn as nn import torch.nn.functional as F from scipy.special import loggamma from .scvelo_util import mRNA, vectorize, tau_inv, R_squared, test_bimodality, leastsq_NxN from sklearn.neighbors import NearestNeighbors import pynndescent from tqdm.autonotebook import tr...
PypiClean
/outlookcalendarsyncer-0.1.0.tar.gz/outlookcalendarsyncer-0.1.0/README.md
# OutlookCalendarSyncer ## How to setup dev environment ### Prerequisites Following software is required to run spark application: * Python 3 * [Poetry](https://python-poetry.org) * [Pyenv](https://github.com/pyenv/pyenv) ### Run ```shell # Install required python version $ pyenv install 3.9.6 # Binding required...
PypiClean
/stix-ramrod-1.2.0.zip/stix-ramrod-1.2.0/ramrod/stix/base.py
# stdlib import itertools # internal from ramrod import base, errors, utils # external from six import iteritems class BaseSTIXUpdater(base.BaseUpdater): """Base class for STIX updating code. Sets default values for STIX-specific xpaths and namespaces. """ DEFAULT_VOCAB_NAMESPACE = 'http://stix.mi...
PypiClean
/diode-1.0.2.tar.gz/diode-1.0.2/ext/pybind11/docs/advanced/pycpp/numpy.rst
.. _numpy: NumPy ##### Buffer protocol =============== Python supports an extremely general and convenient approach for exchanging data between plugin libraries. Types can expose a buffer view [#f2]_, which provides fast direct access to the raw internal data representation. Suppose we want to bind the following sim...
PypiClean
/bce-sam-translator-0.0.1.tar.gz/bce-sam-translator-0.0.1/samtranslator/intrinsics/actions.py
import re from six import string_types class Action(object): """ Base class for intrinsic function actions. Each intrinsic function must subclass this, override the intrinsic_name, and provide a resolve() method Subclasses would be working on the JSON representation of an intrinsic function like {Ref...
PypiClean
/sage_engine-2.3.0-py3-none-any.whl/sage/cli/postgres.py
import coloredlogs import logging import time import click import psycopg2 import pylru import sage.cli.postgres_utils as psql_utils from psycopg2.extras import execute_values from sage.cli.utils import load_graph, get_nb_triples from sage.cli.parsers import ParserFactory coloredlogs.install(level='INFO', fmt='%(asc...
PypiClean
/fedml-afaf-0.7.327.tar.gz/fedml-afaf-0.7.327/README.md
# FedML - The community building and connecting AI anywhere at any scale https://doc.fedml.ai ## Mission FedML builds simple and versatile APIs for machine learning running anywhere at any scale. In other words, FedML supports both federated learning for data silos and distributed training for acceleration with MLOps...
PypiClean
/cupy_cuda113-10.6.0-cp37-cp37m-win_amd64.whl/cupyx/tools/install_library.py
# This script will also be used as a standalone script when building wheels. # Keep the script runnable without CuPy dependency. import argparse import json import os import platform import shutil import subprocess import sys import tempfile import urllib.request _cudnn_records = [] _cutensor_records = [] _nccl_reco...
PypiClean
/OpenSRANE-0.0.3.tar.gz/OpenSRANE-0.0.3/opensrane/Recorders/ObjManager.py
import opensrane as _opr import os as _os class _Classitterator(type): #This class is for making iteration on class name def __iter__(self): for param in (self.Objlst): yield param class ObjManager(metaclass=_Classitterator): #metaclass is used to inheritage _Classitterator to make O...
PypiClean
/PyNFe-0.4.3-py3-none-any.whl/pynfe/entidades/notafiscal.py
import random from .base import Entidade from pynfe import get_version from pynfe.utils.flags import NF_STATUS, CODIGO_BRASIL, CODIGOS_ESTADOS # from pynfe.utils import so_numeros, memoize from pynfe.utils import so_numeros from decimal import Decimal class NotaFiscal(Entidade): status = NF_STATUS[0] # Cód...
PypiClean
/magic_folder-23.6.0-py3-none-any.whl/magic_folder/test/fixtures.py
from errno import ( ENOENT, ) from allmydata.util.base32 import ( b2a, ) from wormhole.wormhole import ( IDeferredWormhole, ) from zope.interface import ( implementer, ) from twisted.internet.defer import ( succeed, ) from ..util.encoding import ( load_yaml, dump_yaml, ) from ..util.capabi...
PypiClean
/armstrong.hatband-1.4.0.tar.gz/armstrong.hatband-1.4.0/armstrong/hatband/static/ckeditor/plugins/scayt/dialogs/options.js
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add('scaytcheck',function(a){var b=true,c,d=CKEDITOR.document,e=a.name,f=CKEDITOR.plugins.scayt.getUiTabs(a),g,h=[],i=0,j=['dic_create_'+e+',dic_restore_'+e,...
PypiClean
/signal_lab-0.1.tar.gz/signal_lab-0.1/components/api/src/signal_lab.py
__synopsis__ = "Signal and image processing utilities for the RSF file format" __author__ = 'Sean Ross-Ross <srossross@geospining.com>' import optparse import os import sys import numpy as np import subprocess import stat import warnings import cPickle import string from time import ctime, time import xml.dom.minidom...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/customthroughput_43392709d9d2c48c1b386a084571fdf5.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class CustomThroughput(Base): """Signifies the custom throughput for quick test. The CustomThroughput class encapsulates a list of customThroughput...
PypiClean
/ssf-0.2.2.tar.gz/ssf-0.2.2/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install ssf, run this command in your terminal: .. code-block:: console $ pip install ssf This is the preferred method to install ssf, as it will always install the most recent stable release. If you don't have `pip...
PypiClean
/AMQPStorm-2.10.6.tar.gz/AMQPStorm-2.10.6/amqpstorm/base.py
import locale from amqpstorm.compatibility import is_string from amqpstorm.exception import AMQPChannelError AUTH_MECHANISM = 'PLAIN' IDLE_WAIT = 0.01 LOCALE = locale.getlocale()[0] or 'en_US' MAX_FRAME_SIZE = 131072 MAX_CHANNELS = 65535 class Stateful(object): """Stateful implementation.""" CLOSED = 0 ...
PypiClean
/ooouno-2.1.2-py3-none-any.whl/ooo/dyn/chart/data_label_placement.py
import uno from enum import IntEnum from typing import TYPE_CHECKING from ooo.oenv.env_const import UNO_ENVIRONMENT, UNO_RUNTIME _DYNAMIC = False if (not TYPE_CHECKING) and UNO_RUNTIME and UNO_ENVIRONMENT: _DYNAMIC = True if not TYPE_CHECKING and _DYNAMIC: # document generators will most likely not see this. ...
PypiClean
/DebugHeaders-0.1.tar.gz/DebugHeaders-0.1/debugheaders/__init__.py
from cStringIO import StringIO import sys from paste.request import construct_url class DebugHeaders(object): """Middleware that shows all headers. """ translate_keys = { 'CONTENT_LENGTH': 'HTTP_CONTENT_LENGTH', 'CONTENT_TYPE': 'HTTP_CONTENT_TYPE', } def __init__(self, app, s...
PypiClean
/django-suit-ckeditor-0.0.2.tar.gz/django-suit-ckeditor-0.0.2/suit_ckeditor/static/suit-ckeditor/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","lt",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"Bendros savybės",items...
PypiClean
/ipyleaflet-0.17.3.tar.gz/ipyleaflet-0.17.3/js/src/layers/GeoJSON.js
const L = require('../leaflet.js'); const featuregroup = require('./FeatureGroup.js'); export class LeafletGeoJSONModel extends featuregroup.LeafletFeatureGroupModel { defaults() { return { ...super.defaults(), _view_name: 'LeafletGeoJSONView', _model_name: 'LeafletGeoJSONModel', data: {...
PypiClean
/django_handyhelpers-0.3.9-py3-none-any.whl/handyhelpers/static/node_modules/chart.js/dist/docs/assets/js/128.87d67ad7.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[128],{457:function(t,e,o){"use strict";o.r(e);var d=o(6),v=Object(d.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[o("a"...
PypiClean
/pyontio-0.0.7-py3-none-any.whl/ontology/core/transaction.py
from enum import Enum from typing import List, Union from Cryptodome.Random.random import randint from ontology.core.sig import Sig from ontology.crypto.digest import Digest from ontology.common.address import Address from ontology.account.account import Account from ontology.core.program import ProgramBuilder from o...
PypiClean
/django_bootstrap4_datetimepicker-4.2-py3-none-any.whl/bootstrap4_datetime/static/bootstrap4_datetime/js/locales/bootstrap-datetimepicker.ne.js
(function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else { factory(window.moment); // Browser global } }(function (moment) ...
PypiClean
/ansible-solace-0.7.8.tar.gz/ansible-solace-0.7.8/lib/ansible/modules/network/solace/solace_dmr_cluster_link_trusted_cn.py
ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} import ansible.module_utils.network.solace.solace_utils as su from ansible.module_utils.basic import AnsibleModule DOCUMENTATION = ''' --- module: solace_dmr_cluster_link_trusted...
PypiClean
/biolinkml-1.7.6.tar.gz/biolinkml-1.7.6/docs/code_set_version.md
# Slot: code_set_version the version identifier of the enumeration code set URI: [meta:code_set_version](https://w3id.org/biolink/biolinkml/meta/code_set_version) ## Domain and Range [EnumDefinition](EnumDefinition.md) -> <sub>OPT</sub> [String](types/String.md) ## Parents ## Children ## Used by * [EnumD...
PypiClean
/dna.node-2.1.1-py3-none-any.whl/dna/track/matcher/cost_matrices.py
from __future__ import absolute_import from typing import Set import numpy as np import numpy.typing as npt import dna from dna.detect import Detection from ..types import ObjectTrack from dna.track import utils from ...track.kalman_filter import KalmanFilter from .base import INVALID_DIST_DISTANCE, INVALID_IOU_DISTA...
PypiClean
/focal_loss-0.0.7-py3-none-any.whl/focal_loss/utils/validation.py
import numbers def check_type(obj, base, *, name=None, func=None, allow_none=False, default=None, error_message=None): """Check whether an object is an instance of a base type. Parameters ---------- obj : object The object to be validated. name : str The name of `...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/canvas/server.py
import graphlab.canvas.handlers import graphlab.canvas.state import datetime import time import threading import tornado.httpserver import tornado.ioloop import tornado.netutil import tornado.web import uuid class Server: # # private variables # # instance variables __thread = None # bg thread th...
PypiClean
/flowest-1.0.0.tar.gz/flowest-1.0.0/flower/static/js/bootstrap-carousel.js
!function ($) { "use strict"; // jshint ;_; /* CAROUSEL CLASS DEFINITION * ========================= */ var Carousel = function (element, options) { this.$element = $(element) this.options = options this.options.slide && this.slide(this.options.slide) this.options.pause == 'hover' && this.$el...
PypiClean
/hu-neuro-pipeline-0.7.0.tar.gz/hu-neuro-pipeline-0.7.0/pipeline/averaging.py
import warnings import numpy as np import pandas as pd from mne import Epochs, Evoked, grand_average from mne.time_frequency import AverageTFR, EpochsTFR def compute_evokeds(epochs, average_by=None, bad_ixs=[], participant_id=None): """Computes condition averages (evokeds) based on triggers or columns.""" #...
PypiClean
/idds-monitor-0.11.10.tar.gz/idds-monitor-0.11.10/data/plugins/bower_components/gmaps/lib/gmaps.core.js
if (!(typeof window.google === 'object' && window.google.maps)) { throw 'Google Maps API is required. Please register the following JavaScript library http://maps.google.com/maps/api/js?sensor=true.' } var extend_object = function(obj, new_obj) { var name; if (obj === new_obj) { return obj; } for (name...
PypiClean
/odoo14-addon-odoo_instance-14.0.1.2.1.tar.gz/odoo14-addon-odoo_instance-14.0.1.2.1/odoo/addons/odoo_instance/models/odoo_instance.py
import logging import re from datetime import datetime, time, timedelta from urllib.parse import urlparse import pytz import requests import yaml from odoo import api, fields, models from odoo.exceptions import UserError _logger = logging.getLogger(__name__) class OdooInstance(models.Model): _name = 'odoo.insta...
PypiClean
/fastapi-session-0.2.8.tar.gz/fastapi-session-0.2.8/fastapi_session/session_manager.py
import inspect import random import string from typing import Callable, Awaitable, Union from fastapi import Request, Cookie, Response from fastapi import BackgroundTasks, FastAPI from .session_interface import BackendInterface from .tasks import repeat_every class SessionManager: def __init__(self, backend: Back...
PypiClean
/stickytape-0.2.0.tar.gz/stickytape-0.2.0/README.rst
stickytape: Convert Python packages into a single script ======================================================== Stickytape can be used to convert a Python script and any Python modules it depends on into a single-file Python script. Since this relies on correctly analysing both your script and any dependent modules...
PypiClean
/morphine-maker-2.0.2.tar.gz/morphine-maker-2.0.2/morphine/minimal_exec.py
from PyQt5 import QtCore, QtGui, QtWidgets from morphine.globals import __intended_audience__, __enviroments__, __license__, __programming_lang__, find_packages from yapf.yapflib.yapf_api import FormatCode import os from morphine.template import __minimal_exec__ as template import re class Ui_minimal_exec(object): ...
PypiClean
/pcl_pangu-1.2.6.2.tar.gz/pcl_pangu-1.2.6.2/pcl_pangu/model/panguAlpha_pytorch/tools/preprocess_data_pangu.py
import os import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) import argparse import json import multiprocessing import glob import numpy as np from megatron.tokenizer.tokenization_jieba import JIEBATokenizer import time impo...
PypiClean
/chop3-0.1.0.tar.gz/chop3-0.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/gryphon-pusherclient-0.2.1.tar.gz/gryphon-pusherclient-0.2.1/pusherclient/__init__.py
from .channel import Channel from .connection import Connection import hashlib import hmac import logging try: import thread except: import _thread as thread try: import simplejson as json except: import json VERSION = "0.2.0" class Pusher(object): host = "ws.pusherapp.com" client_id = 'Py...
PypiClean
/RsCMPX_NrFr1Meas-4.0.185.tar.gz/RsCMPX_NrFr1Meas-4.0.185/RsCMPX_NrFr1Meas/Implementations/NrSubMeas/MultiEval/Cc/Layer/Iemission/Margin/Extreme/__init__.py
from .........Internal.Core import Core from .........Internal.CommandsGroup import CommandsGroup from .........Internal.StructBase import StructBase from .........Internal.ArgStruct import ArgStruct from ......... import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class ExtremeC...
PypiClean
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Microsoft-Windows-StorageManagement-WSP-Health.md
## Microsoft-Windows-StorageManagement-WSP-Health Seen on: * Windows 10 (1703, 1709, 1803, 1809, 1903, 1909, 2004, 20H2) * Windows 11 (21H2) <table border="1" class="docutils"> <tbody> <tr> <td><b>Log source(s):</b></td> <td>Microsoft-Windows-StorageManagement-WSP-Health</td> </tr> <tr> ...
PypiClean
/onshape-test-client-1.0.0.tar.gz/onshape-test-client-1.0.0/onshape_client/oas/model/bt_one_configuration_part_properties1661.py
import re # noqa: F401 import sys # noqa: F401 from onshape_client.oas.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
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/moment/dist/locale/ar.js
import moment from '../moment'; var symbolMap = { '1': '١', '2': '٢', '3': '٣', '4': '٤', '5': '٥', '6': '٦', '7': '٧', '8': '٨', '9': '٩', '0': '٠', }, numberMap = { '١': '1', '٢': '2', '٣': '3', '...
PypiClean
/sfa-3.1-12.tar.gz/sfa-3.1-12/clientbin/getNodes.py
import sys import os from optparse import OptionParser from pprint import pprint from types import StringTypes def create_parser(): command = sys.argv[0] argv = sys.argv[1:] usage = "%(command)s [options]" % locals() description = """getNodes will open a rspec file and print all key/values, or filter ...
PypiClean
/PyIGA-0.0.10.tar.gz/PyIGA-0.0.10/external_libraries/zlib/contrib/ada/readme.txt
ZLib for Ada thick binding (ZLib.Ada) Release 1.3 ZLib.Ada is a thick binding interface to the popular ZLib data compression library, available at http://www.gzip.org/zlib/. It provides Ada-style access to the ZLib C library. Here are the main changes since ZLi...
PypiClean
/fs-watcher-1.0.11.tar.gz/fs-watcher-1.0.11/fs_watcher/daemonrunner.py
from __future__ import print_function, division, unicode_literals, absolute_import import os import logging import time import signal, errno import daemon from past.builtins import basestring # pip install future try: from daemon.pidlockfile import PIDLockFile from daemon.pidlockfile import AlreadyLocked exc...
PypiClean
/newreqtool-0.1.tar.gz/newreqtool-0.1/doorstopnew/common.py
import argparse import glob import logging import os import shutil import yamldown import yaml verbosity = 0 # global verbosity setting for controlling string formatting PRINT_VERBOSITY = 0 # minimum verbosity to using `print` STR_VERBOSITY = 3 # minimum verbosity to use verbose `__str__` MAX_VERBOSITY = 4 # maxi...
PypiClean
/adapya-base-1.0.6.tar.gz/adapya-base-1.0.6/adapya/base/stck.py
__date__='$Date: 2017-11-03 17:52:37 +0100 (Fri, 03 Nov 2017) $' __revision__='$Rev: 779 $' from datetime import datetime, timedelta, tzinfo import time sec1970=2208988800 # 2208988800L (w/o leap secs) secyear=int(365*24*3600) # needs review after June 28, 2017 leapnow=27 # last updated: Oct 2017 leapseconds =...
PypiClean
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/docs_src/programmers_guide/embedding.md
# Embeddings This document introduces the concept of embeddings, gives a simple example of how to train an embedding in TensorFlow, and explains how to view embeddings with the TensorBoard Embedding Projector ([live example](http://projector.tensorflow.org)). The first two parts target newcomers to machine learning or...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/vilt/modeling_vilt.py
""" PyTorch ViLT model.""" import collections.abc import math from dataclasses import dataclass from typing import List, Optional, Tuple, Union import torch import torch.utils.checkpoint from torch import nn from torch.nn import CrossEntropyLoss from ...activations import ACT2FN from ...modeling_outputs import ( ...
PypiClean
/fds.sdk.FundsAPIforDigitalPortals-0.10.0-py3-none-any.whl/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2006_data_legal_entities_fund_domicile.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.FundsAPIforDigitalPortals.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,...
PypiClean
/django_handyhelpers-0.3.9-py3-none-any.whl/handyhelpers/static/node_modules/bootstrap-table/src/extensions/print/bootstrap-table-print.js
const Utils = $.fn.bootstrapTable.utils function printPageBuilderDefault (table) { return ` <html> <head> <style type="text/css" media="print"> @page { size: auto; margin: 25px 0 25px 0; } </style> <style type="text/css" media="all"> table { border-collapse: collapse; font-size: 12px;...
PypiClean
/lhub_integ-1.0.12.tar.gz/lhub_integ-1.0.12/lhub_integ/params.py
import inspect import json import re from abc import ABCMeta from collections import defaultdict from typing import NamedTuple, Dict, Callable, Any from lhub_integ import util from lhub_integ.decorators import action as action_decorator from lhub_integ.env import __EnvVar from jinja2 import Template from enum import ...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/MaintainOrderStatusExtParams.py
import json from alipay.aop.api.constant.ParamConstants import * class MaintainOrderStatusExtParams(object): def __init__(self): self._logistics_code = None self._logistics_company = None self._logistics_no = None self._order_status_txt = None self._receiver_addr = None ...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/packaging/os/pkg5_publisher.py
# Copyright 2014 Peter Oliver <ansible@mavit.org.uk> # # 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 3 of the License, or # (at your option) any later version. # # This program...
PypiClean
/flask-arch-0.1.1.tar.gz/flask-arch-0.1.1/flask_arch/cms/blocks.py
import os from flask import request, send_file from flask_login import current_user from .base import ContentManager from .. import tags from ..utils import ensure_type, ensure_callable, RequestParser from ..blocks import RouteBlock class ManageBlock(RouteBlock): def __init__(self, keyword, content_manager, **k...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/kms/encrypt.rst
**Example 1: To encrypt the contents of a file on Linux or MacOS** The following ``encrypt`` command demonstrates the recommended way to encrypt data with the AWS CLI. :: aws kms encrypt \ --key-id 1234abcd-12ab-34cd-56ef-1234567890ab \ --plaintext fileb://ExamplePlaintextFile \ --output t...
PypiClean
/mlflow_by_johnsnowlabs-2.20.0-py3-none-any.whl/mlflow/tensorflow/__init__.py
import os import shutil import logging import concurrent.futures import warnings import atexit import tempfile from collections import namedtuple import pandas from packaging.version import Version from threading import RLock import numpy as np import importlib import yaml import re import mlflow from mlflow import py...
PypiClean
/desc-opt-0.10.0.tar.gz/desc-opt-0.10.0/desc/backend.py
import os import warnings import numpy as np from termcolor import colored import desc from desc import config as desc_config from desc import set_device if os.environ.get("DESC_BACKEND") == "numpy": jnp = np use_jax = False set_device(kind="cpu") print( "DESC version {}, using numpy backend...
PypiClean
/CaMo-0.0.5-py3-none-any.whl/camo/estimate/methods.py
from inspect import getmembers, ismethod import numpy as np import pandas as pd import statsmodels.formula.api as smf from ..utils import _as_set, _try_get estimators = dict(getmembers(smf, ismethod)) def g_formula( data: pd.DataFrame, X: str, Y: str, Z: str = None, estimator: str = "ols" ) -> ...
PypiClean
/nexuscloud-client-1.0.9.tar.gz/nexuscloud-client-1.0.9/nexuscloud_client/model/nexus_insights_api_v1_vcenter_summary_get200_response.py
import re # noqa: F401 import sys # noqa: F401 from nexuscloud_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/azure_eventhub-5.11.4-py3-none-any.whl/azure/eventhub/_pyamqp/aio/_management_operation_async.py
import logging import uuid import time from functools import partial from ._management_link_async import ManagementLink from ..error import ( AMQPLinkError, ErrorCondition ) from ..constants import ( ManagementOpenResult, ManagementExecuteOperationResult ) _LOGGER = logging.getLogger(__name__) clas...
PypiClean
/Pootle-2.9.0b3.tar.bz2/Pootle-2.9.0b3/pootle/static/translations/pt/djangojs.js
(function(globals) { var django = globals.django || (globals.django = {}); django.pluralidx = function(n) { var v=(n != 1); if (typeof(v) == 'boolean') { return v ? 1 : 0; } else { return v; } }; /* gettext library */ django.catalog = django.catalog || {}; var newcat...
PypiClean
/django-admin-berry-1.0.10.tar.gz/django-admin-berry-1.0.10/admin_berry/static/assets/js/plugins/simplebar.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!...
PypiClean
/isittor-1.2.tar.gz/isittor-1.2/README.md
# IsItTor IsItTor is a script to check if an IP address is a Tor exit node. Install: # sudo pip install requests[security] isittor Usage: # isittor.py 99.245.160.4 02/10/2015 14:22:00 INFO - Starting new HTTPS connection (1): www.dan.me.uk 02/10/2015 14:22:01 INFO - Load TOR exit node list from http...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/vicclientrange_5a725992fa0bed642bb51f91f1943859.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class VicClientRange(Base): """Range settings for VIC protocol The VicClientRange class encapsulates a list of vicClientRange resources that are ma...
PypiClean
/gbptestheat-2014.2.tar.gz/gbptestheat-2014.2.dev114.gc2f22b1/doc/source/man/heat-engine.rst
=========== heat-engine =========== .. program:: heat-engine SYNOPSIS ======== ``heat-engine [options]`` DESCRIPTION =========== Heat is the heat project server with an internal api called by the heat-api. INVENTORY ========= The heat engine does all the orchestration work and is the layer in which the resource int...
PypiClean
/onnxruntime_training-1.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/onnxruntime/training/optim/_modifier.py
import warnings import torch from numpy import inf from ._multi_tensor_apply import MultiTensorApply multi_tensor_applier = MultiTensorApply(2048 * 32) class FP16OptimizerModifier: def __init__(self, optimizer) -> None: super().__init__() self._optimizer = optimizer def apply(self): ...
PypiClean
/brock-1.0.2-py3-none-any.whl/bedrock/manifest.py
import argparse import os from os.path import expanduser import docker import yaml try: from yaml import CLoader as Loader except ImportError: from yaml import Loader def init_path(path): os.makedirs(expanduser(f'~/.bedrock/{path}'), exist_ok=True) def parse_manifest(file): return yaml.load(file, ...
PypiClean
/pythong-0.7.1.tar.gz/pythong-0.7.1/README.rst
pythong ======= :Author: David Gay <oddshocks@riseup.net> Set up a minimal, yet comfortable structure for a Python project. Features -------- - Create a standard Python project directory structure - Get help creating your setup.py file, or choose to write it yourself by passing the ``--snap`` command ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/netbox/netbox/plugins/modules/netbox_location.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r""" --- module: netbox_location short_description: Create, update or delete locations within NetBox description: - Creates, updates or removes locations from NetBox notes: - Tags should be defined as a YAML lis...
PypiClean
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/trainer.py
import contextlib import functools import glob import inspect import math import os import random import re import shutil import sys import time import warnings from collections.abc import Mapping from distutils.util import strtobool from pathlib import Path from typing import TYPE_CHECKING, Any, Callable, Dict, List, ...
PypiClean
/arm-avhclient-0.1.10.tar.gz/arm-avhclient-0.1.10/arm/avhclient/aws_backend.py
import logging import os import time import subprocess from pathlib import Path from tempfile import NamedTemporaryFile from typing import List, Union import boto3 from botocore.exceptions import ClientError from botocore.exceptions import WaiterError from semantic_version import Version, SimpleSpec from .avh_backe...
PypiClean
/yadage-httpctrl-server-0.0.7.tar.gz/yadage-httpctrl-server-0.0.7/yadagehttpctrl/static/bower_components/jquery/external/sizzle/dist/sizzle.min.js
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|as...
PypiClean
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/codemirror/mode/q/q.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/animation/game.py
from . matrix import Matrix class Game(Matrix): def __init__(self, layout, inputDev): super().__init__(layout) self._input_dev = inputDev self._keys = None self._lastKeys = None self._speedStep = 0 self._speeds = {} self._keyfuncs = {} def _exit(self, ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/drives/item/items/item/workbook/tables/tables_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
/chalkpy-2.16.10.tar.gz/chalkpy-2.16.10/chalk/feature_n/feature_117/feature.py
from typing import TypeVar, Generic, Optional, Dict from chalk.features.dataframe import DataFrameMeta T1 = TypeVar("T1") T2 = TypeVar("T2") T3 = TypeVar("T3") T4 = TypeVar("T4") T5 = TypeVar("T5") T6 = TypeVar("T6") T7 = TypeVar("T7") T8 = TypeVar("T8") T9 = TypeVar("T9") T10 = TypeVar("T10") T11 = TypeVar("T11") T1...
PypiClean
/dan-build-0.2.7.tar.gz/dan-build-0.2.7/dan/cli/io.py
import asyncio import fnmatch import os import contextlib from dan.cli import click from dan.core.requirements import parse_package from dan.core.cache import Cache from dan.io.repositories import RepositoriesSettings, _get_settings from dan.make import Make def get_source_path(): from dan.cxx.detect import get_d...
PypiClean
/pycp-8.0.8.tar.gz/pycp-8.0.8/Changelog.rst
8.0.8 ----- * Fix long_description metadata 8.0.7 ----- * Remove dependency on `python-cli-ui` 8.0.6 ----- * Fix packaging issue: ``pycp`` wheels are no longer universal. 8.0.5 ----- * Fix crash in ``pycp -g``. Reported by @z1lt0id 8.0.4 ----- * Partial revert of 8.0.3: ``pycp`` is now still fast even with jus...
PypiClean
/sym_cli-0.6.1.tar.gz/sym_cli-0.6.1/sym/cli/saml_clients/saml2aws.py
import shlex import subprocess from configparser import ConfigParser, NoOptionError from functools import cached_property from pathlib import Path from typing import Final, Iterator, Optional, Tuple import click from semver import VersionInfo from sym.shared.cli.helpers.contexts import push_envs from sym.shared.cli.he...
PypiClean
/xfacereclib.paper.IET2014-1.0.0.zip/xfacereclib.paper.IET2014-1.0.0/xfacereclib/paper/IET2014/categorical.py
import bob import numpy import facereclib import argparse import os from .utils import split_score_file, evaluate_scores def command_line_options(command_line_parameters = None): # set up command line parser parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormat...
PypiClean
/orchestrator_core-1.2.3rc3.tar.gz/orchestrator_core-1.2.3rc3/docs/architecture/product_modelling/node.md
# Node The administration handoff in IMS will be different for every organisation. For this example, it is assumed that all administration that comes with the physical installation and first-time configuration of the network node in IMS is done manually by a NOC engineer. This makes the node product rather simple. The...
PypiClean
/xformers-0.0.21.tar.gz/xformers-0.0.21/third_party/flash-attention/csrc/cutlass/examples/44_multi_gemm_ir_and_codegen/README.md
This example provides utilities for generating back-to-back (B2B) GEMMs using CUTLASS. ## Quick start A configuration file containing the GEMMs to be fused together is located in [config.json](config.json). Edit this to change the configuration that you would like to run. ```shell cd ir_gen # Set up basic variables o...
PypiClean
/tangelo_gc-0.4.0-py3-none-any.whl/tangelo/linq/qpu_connection/ibm_connection.py
import os from tangelo.linq.translator import translate_operator, translate_circuit from tangelo.linq.qpu_connection.qpu_connection import QpuConnection try: from qiskit.providers.jobstatus import JobStatus from qiskit.primitives import SamplerResult, EstimatorResult from qiskit_ibm_runtime import QiskitR...
PypiClean
/certora_cli_alpha_jtoman_cert_1920-20230505.6.20.438554-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
/aa-gdpr-0.3.3.tar.gz/aa-gdpr-0.3.3/aagdpr/static/aagdpr/ajax/libs/moment.js/2.27.0/locale/fi.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
/matminer-0.8.0.tar.gz/matminer-0.8.0/docs_rst/contributors.rst
.. title:: MatMiner Contributors .. _contributors: ===================== matminer Contributors ===================== .. caution:: Starting v0.6.6 onwards, the contributors list is no longer maintained. the contributors list is no longer maintained. Please check the Github contributors list instead. Matminer is led...
PypiClean
/selenium_chrome-0.0.29.tar.gz/selenium_chrome-0.0.29/selenium_chrome/chrome_addons/builtin_addon_install_settings/resources/ublock_origin/js/traffic.js
'use strict'; /******************************************************************************/ // Start isolation from global scope µBlock.webRequest = (( ) => { /******************************************************************************/ // Platform-specific behavior. // https://github.com/uBlockOrigin/uBloc...
PypiClean
/docproduct-0.2.0-py3-none-any.whl/keras_bert/tokenizer.py
import unicodedata from .bert import TOKEN_CLS, TOKEN_SEP, TOKEN_UNK class Tokenizer(object): def __init__(self, token_dict, token_cls=TOKEN_CLS, token_sep=TOKEN_SEP, token_unk=TOKEN_UNK, pad_index=0, cased=Fals...
PypiClean
/plaid-python-15.5.0.tar.gz/plaid-python-15.5.0/plaid/model/initial_update_webhook.py
import re # noqa: F401 import sys # noqa: F401 from plaid.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, validate...
PypiClean
/google-cloud-retail-1.16.2.tar.gz/google-cloud-retail-1.16.2/google/cloud/retail_v2/types/product.py
from __future__ import annotations from typing import MutableMapping, MutableSequence from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore from google.protobuf import wrappers_pb2 # type: ignore i...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/storagemover/v20230701preview/job_definition.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ._enums import * __all__ = ['JobDefinitionArgs', 'JobDefinition'] @pulumi.input_type class JobDefinitionArgs: def __init__(__s...
PypiClean
/wemake_python_styleguide-0.18.0-py3-none-any.whl/wemake_python_styleguide/logic/tokens/comprehensions.py
import tokenize from typing import List, Optional import attr from typing_extensions import final @final @attr.dataclass(slots=True) class Compehension(object): """ Represents a syntax for Python comprehension. The optimal way of using this class is by just creating it with the first opening ``left_...
PypiClean
/fiduswriter-github-export-3.10.5.tar.gz/fiduswriter-github-export-3.10.5/fiduswriter/github_export/proxy_views.py
import re import json from tornado.web import RequestHandler from tornado.httpclient import AsyncHTTPClient, HTTPRequest, HTTPError from base.django_handler_mixin import DjangoHandlerMixin from allauth.socialaccount.models import SocialToken from . import models ALLOWED_PATHS = [ re.compile(r"^repos/([\w\.\-@_]+)...
PypiClean