id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/jiankang_zhidao-2022.10.9.1-py3-none-any.whl/JiankangZhidao/js/libs/zip.min.js
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.JSZip=a()}}(function(){return function a(b,c,d){functio...
PypiClean
/odoo13_addon_stock_picking_return_refund_option-13.0.1.0.2-py3-none-any.whl/odoo/addons/stock_picking_return_refund_option/models/stock_picking.py
from odoo import api, fields, models class StockPicking(models.Model): _inherit = "stock.picking" to_refund_lines = fields.Selection( selection=[("to_refund", "To Refund"), ("no_refund", "No Refund")], compute="_compute_to_refund_lines", inverse="_inverse_to_refund_lines", str...
PypiClean
/collective.collage.megamenu-1.1.2.zip/collective.collage.megamenu-1.1.2/collective/collage/megamenu/browser/resources/megamenu.js
jq(document).ready(function() { //Calculate width of all ul's (function(jq) { jQuery.fn.calcSubWidth = function() { // Should receive a .menu-row element var rowWidth = 0; //Calculate row jq(this).find(">ul").each(function() { rowWidth +=...
PypiClean
/AFEM-1.0.34-py3-none-any.whl/FEM/EDO1D.py
from .Core import Core, Geometry from tqdm import tqdm import numpy as np import matplotlib.pyplot as plt from typing import Callable class EDO1D(Core): """Create a 1D 1 variable per node Finite Element problem The differential equation is: .. math:: a(x)\\frac{d^2u}{dx^2}+c(x)u=f(x) Args: ...
PypiClean
/stackdio-server-0.8.0a4.tar.gz/stackdio-server-0.8.0a4/stackdio/ui/static/stackdio/lib/bower_components/jquery/src/deferred.js
define( [ "./core", "./var/slice", "./callbacks" ], function( jQuery, slice ) { jQuery.extend( { Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ], [ "reject", "fail", jQuery.Callbacks...
PypiClean
/antispoofing.crossdatabase-1.0.1.zip/antispoofing.crossdatabase-1.0.1/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
/api_master-1.11-py3-none-any.whl/api_master/sdks/webull_sdk/webull_data.py
class WebullStockData: """A class representing stock data obtained from Webull. Attributes: web_name (str): The name of the stock. web_symb (str): The stock's symbol. web_exchange (str): The exchange code where the stock is traded. web_stock_close (float): The stock's closing pr...
PypiClean
/thirdweb_sdk-3.1.1a0.tar.gz/thirdweb_sdk-3.1.1a0/thirdweb/abi/i_contract_deployer.py
# pylint: disable=too-many-arguments import json from typing import ( # pylint: disable=unused-import Any, List, Optional, Tuple, Union, ) from eth_utils import to_checksum_address from mypy_extensions import TypedDict # pylint: disable=unused-import from hexbytes import HexBytes from web3 impo...
PypiClean
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/Analysis/graphing_filters.py
import numpy as np #import pandas as pd import matplotlib.pyplot as plt class offline_plotting(object): def __enter__(self): plt.ioff() self.old_backend = plt.get_backend() plt.switch_backend('SVG') def __exit__(self, *args): plt.switch_backend(self.old_backend) plt...
PypiClean
/cfb_predictor-0.2.2.tar.gz/cfb_predictor-0.2.2/cfb_predictor/data_scrape.py
import requests import pandas as pd def adv_data_scrape(season): """ Returns advanced game stats for a season pulled using the collegefootballdata API. The function concatenates regular season and postseason stats into a single Pandas DataFrame. """ base_url = 'https://api.collegefootballdata.com/stats...
PypiClean
/Pyrogram-2.0.34.tar.gz/Pyrogram-2.0.34/pyrogram/types/user_and_chats/chat_member_updated.py
from datetime import datetime from typing import Dict, Union import pyrogram from pyrogram import raw, utils from pyrogram import types from ..object import Object from ..update import Update class ChatMemberUpdated(Object, Update): """Represents changes in the status of a chat member. Parameters: ...
PypiClean
/Toucan-0.0.0.tar.gz/Toucan-0.0.0/webmaster/packages/base/static/Webmaster/bootstrap/dist/js/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";fu...
PypiClean
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM14/IEC61970/Dynamics/ExcitationSystems/ExcAC2A.py
from CIM14.IEC61970.Dynamics.ExcitationSystems.ExcitationSystem import ExcitationSystem class ExcAC2A(ExcitationSystem): """IEEE (1992/2005) AC2A Model The model designated as Type AC2A, represents a high initial response fieldcontrolled alternator-rectifier excitation system. The alternator main exciter is used ...
PypiClean
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/bri/v20190328/models.py
import warnings from tencentcloud.common.abstract_model import AbstractModel class BRIRequest(AbstractModel): """BRI请求 """ def __init__(self): r""" :param _Service: 业务名, 必须是以下六个业务名之一(bri_num,bri_dev,bri_ip_bri_apk,bri_url,bri_social) :type Service: str :param _QQ: QQ号 (...
PypiClean
/mdid-3.7.7-py3-none-any.whl/rooibos/static/jquery/jquery.autocomplete.pack.js
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);retur...
PypiClean
/Longbow-1.5.2.tar.gz/Longbow-1.5.2/longbow/configuration.py
import logging import os import re import time from random import randint import longbow.exceptions as exceptions import longbow.apps as apps LOG = logging.getLogger("longbow.corelibs.configuration") JOBTEMPLATE = { "account": "", "accountflag": "", "cores": "24", "corespernode": "24", "download...
PypiClean
/netpyne_ui-0.5.2.tar.gz/netpyne_ui-0.5.2/netpyne_ui/netpyne_model_interpreter.py
import logging import pygeppetto.model as pygeppetto from pygeppetto.model.model_factory import GeppettoModelFactory from pygeppetto.model.values import Point, ArrayElement, ArrayValue class NetPyNEModelInterpreter(): def __init__(self): self.factory = GeppettoModelFactory() def getGeppettoModel(sel...
PypiClean
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/ApiV4Neighbor.py
from networkapiclient.ApiGenericClient import ApiGenericClient from networkapiclient.utils import build_uri_with_ids class ApiV4Neighbor(ApiGenericClient): def __init__(self, networkapi_url, user, password, user_ldap=None, log_level='INFO'): """Class constructor receives parameters to connect to the netw...
PypiClean
/vsc-base-3.5.3.tar.gz/vsc-base-3.5.3/lib/vsc/utils/missing.py
import logging import shlex import time from collections import namedtuple from functools import reduce from collections.abc import Mapping from vsc.utils.frozendict import FrozenDict def nub(list_): """Returns the unique items of a list of hashables, while preserving order of the original list, i.e. the fir...
PypiClean
/cbmc-starter-kit-2.10.tar.gz/cbmc-starter-kit-2.10/src/cbmc_starter_kit/template-for-repository/proofs/README.md
CBMC proofs =========== This directory contains the CBMC proofs. Each proof is in its own directory. This directory includes four Makefiles. One Makefile describes the basic workflow for building and running proofs: * Makefile.common: * make goto: builds the goto binary * make result: does cbmc property checki...
PypiClean
/neurokit2cw-0.0.16-py3-none-any.whl/neurokit2/complexity/information_mutual.py
import numpy as np import pandas as pd import scipy.ndimage import scipy.special import scipy.stats import sklearn.metrics import sklearn.neighbors def mutual_information(x, y, method="varoquaux", bins="default", **kwargs): """**Mutual Information (MI)** Computes the mutual information (MI) between two vecto...
PypiClean
/kakao.py-0.3.0-py3-none-any.whl/kakao/chat.py
import json from .httpApi import upload import hashlib import requests class Message: """ Represents a single message. Parameters: channel, body Returns: Remarks: """ def __init__(self, channel, body): self.channel = channel self.rawBody = body self.lo...
PypiClean
/pyRegurgitator-0.2.1.tar.gz/pyRegurgitator-0.2.1/pyreg/py2xml.py
import sys import io import argparse from tokenize import tokenize import tokenize as Token import xml.etree.ElementTree as ET from xml.dom.minidom import getDOMImplementation, Text from .astview import AstNode ############# monkey-patch minidom.Text so it doesnt escape " def _monkey_writexml(self, writer, indent=""...
PypiClean
/django-social-metadata-1.3.tar.gz/django-social-metadata-1.3/README.rst
django-social-metadata ====================== django-social-metadata is a Django application that provides mixin and template to display social metadata for Facebook and Google+. Installation ------------ Package _______ javascript-settings can be installed as a normal Python package. Example instalation for pip::...
PypiClean
/useful_decoration-1.1.5.tar.gz/useful_decoration-1.1.5/README.rst
Useful-decoration =================== Description ----------- I wrote some decorators that are commonly used in my daily work. And I gave an example if the decorator is often used. Installing ----------- Install and update using `pip`_: .. code:: python pip install useful-decoration Simples ________ .. cod...
PypiClean
/aleksis_core-3.1.5-py3-none-any.whl/aleksis/core/migrations/0002_school_term.py
import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sites', '0002_alter_domain_unique'), ('core', '0001_initial'), ] operations = [ migrations.CreateModel(...
PypiClean
/custom_streamlit-1.20.0-py3-none-any.whl/streamlit/web/server/browser_websocket_handler.py
import base64 import binascii import json from typing import Any, Awaitable, Dict, List, Optional, Union import tornado.concurrent import tornado.locks import tornado.netutil import tornado.web import tornado.websocket from tornado.websocket import WebSocketHandler from typing_extensions import Final from streamlit ...
PypiClean
/genomedashboard-0.0.90.tar.gz/genomedashboard-0.0.90/README.md
[![image](https://img.shields.io/pypi/v/genomedashboard.svg)](https://pypi.python.org/pypi/genomedashboard) [![image](https://img.shields.io/travis/genomeDashboard/genomedashboard.svg)](https://travis-ci.org/genomeDashboard/genomedashboard) [![Documentation Status](https://readthedocs.org/projects/genomedashboard/bad...
PypiClean
/PAME-0.3.2.tar.gz/PAME-0.3.2/pame/advanced_objects_v2.py
from traits.api import * from traitsui.api import * from material_models import ABCMetalModel, DrudeBulk from interfaces import IMie, IMaterial, IMixer, IStorage from numpy import empty, array import os.path as op import math, cmath from mie_traits_v2 import bare_sphere, effective_sphere from material_models import Dis...
PypiClean
/murraytait_cdktf-0.5.5-py3-none-any.whl/murraytait_cdktf/accounts.py
import boto3 import json class Accounts(): def __init__(self, environment, accounts_profile): super().__init__() self._client = None self._accounts_profile = accounts_profile locals = self._get_locals_from_account_tags(environment) self.aws_account_id = locals.get("aws_a...
PypiClean
/mapextrackt-0.4.8.6.tar.gz/mapextrackt-0.4.8.6/MapExtrackt/extractor.py
import warnings import torch import numpy as np import cv2 import datetime import torchvision from PIL import Image import PIL import matplotlib.pyplot as plt from PIL import Image from MapExtrackt.functions import get_rows_cols, ResizeMe, convert, weight_images, get_bar, pad_arr, intensity_sort, \ colourize_ima...
PypiClean
/django_ndr_core-0.15.1-py3-none-any.whl/ndr_core/static/ndr_core/plugins/image-picker/image-picker.min.js
"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerab...
PypiClean
/checkov3-0.1.13.tar.gz/checkov3-0.1.13/checkov/sca_package/scanner.py
from __future__ import annotations import asyncio import json import logging import os import time from collections.abc import Iterable, Sequence, Collection from pathlib import Path from typing import Dict, Any, List import requests from checkov.common.bridgecrew.platform_integration import bc_integration from chec...
PypiClean
/bob.kaldi-1.3.0.zip/bob.kaldi-1.3.0/bob/kaldi/ivector.py
import logging import os import shutil import tempfile from subprocess import PIPE from subprocess import Popen from . import io logger = logging.getLogger(__name__) def ivector_train( feats, fubm, ivector_extractor, num_gselect=20, ivector_dim=600, use_weights=False, num_iters=5, m...
PypiClean
/automl-x-0.2.1.tar.gz/automl-x-0.2.1/demo/zhidemai/zhidemai_h2o.ipynb
``` import pandas as pd import numpy as np import os import h2o from h2o.automl import H2OAutoML h2o.init() train_path = './data/zhidemai/train.csv' test_path = './data/zhidemai/test.csv' # Load data into H2O train = h2o.import_file(train_path) test = h2o.import_file(test_path) train.head() y = "orders_3h_15h" a...
PypiClean
/nmc_met_graphics-0.1.5.4-py3-none-any.whl/nmc_met_graphics/web/ipyplot.py
# Copyright (c) 2020 NMC Developers. # Distributed under the terms of the GPL V3 License. """ Show mulitple images inside Jupyter Notebooks cells. refer to https://github.com/karolzak/ipyplot 2020/06/14, create. 2020/06/22, support gif file. """ import base64 import io import uuid import numpy as np from numpy impo...
PypiClean
/PyNAS-2022.4.7.tar.gz/PyNAS-2022.4.7/main.py
import os import json import uuid import signal import threading import argparse from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers import FTPServer from flask import Flask, render_template, send_file, redirect, request, send_from_directory, url_for, abor...
PypiClean
/nonebot_plugin_pixivbot-2.0.3.tar.gz/nonebot_plugin_pixivbot-2.0.3/src/nonebot_plugin_pixivbot/data/pixiv_repo/mediator.py
from datetime import datetime, timezone from typing import List, AsyncGenerator, TypeVar, Union, Callable, Awaitable, Optional, Any, Mapping, Protocol, Generic from nonebot import logger from .errors import NoSuchItemError, CacheExpiredError from .models import PixivRepoMetadata from ...utils.format import format_kwa...
PypiClean
/cdktf-local-build-0.0.112.tar.gz/cdktf-local-build-0.0.112/src/cdktf_local_build/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import cdktf import cdktf_cdktf_provider_null import cdktf_local_exec import constructs @jsii.data_type( jsii_type="cdktf-local-build.CargoOptions", jsii_struct_...
PypiClean
/tensorflow_datasets-4.9.2-py3-none-any.whl/tensorflow_datasets/datasets/imagenet_resized/imagenet_resized_dataset_builder.py
import io import itertools import numpy as np import tensorflow_datasets.public_api as tfds _LABELS_FNAME = 'image_classification/imagenet_resized_labels.txt' _URL_PREFIX = 'http://www.image-net.org/data/downsample/' class ImagenetResizedConfig(tfds.core.BuilderConfig): """BuilderConfig for Imagenet Resized.""" ...
PypiClean
/monk_cpu_test-0.0.11.tar.gz/monk_cpu_test-0.0.11/monk/tf_keras_1/finetune/imports.py
import warnings warnings.filterwarnings("ignore", category=FutureWarning) warnings.simplefilter(action='ignore', category=Warning) import matplotlib.pyplot as plt import time import os import copy import sys import psutil import numpy as np import GPUtil def isnotebook(): try: shell = get_ipython().__clas...
PypiClean
/eml_parser-1.17.5.tar.gz/eml_parser-1.17.5/README.md
[![Code Health](https://codebeat.co/badges/d631cfb2-a7f8-476a-9d2e-58e58db95bc8)](https://codebeat.co/projects/github-com-govcert-lu-eml_parser-master) [![Travis CI](https://travis-ci.com/GOVCERT-LU/eml_parser.svg?branch=master)](https://travis-ci.com/GOVCERT-LU/eml_parser) [![Documentation Status](https://readthedocs....
PypiClean
/coop-geo-0.2.0.tar.gz/coop-geo-0.2.0/coop_geo/migrations/0002_auto__add_areatype__del_field_arearelations_relation_type__add_field_a.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models AREA_TYPES = (('TW', u'town'), ('DP', u"departement"), ('CT', u"district"), ('CC', u"town group"), ('RG', u"region"), ('PY', u"country"), ...
PypiClean
/django_handyhelpers-0.3.9-py3-none-any.whl/handyhelpers/views/gui.py
from django.conf import settings from django.core.paginator import Paginator from django.shortcuts import render from django.views.generic import ListView, View from handyhelpers.mixins.view_mixins import FilterByQueryParamsMixin class HandyHelperGenericBaseView(View): """ Generic view used to set the base_templ...
PypiClean
/tc2calculator2020-0.1.0.tar.gz/tc2calculator2020-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
/swc2vtk-1.1.0.tar.gz/swc2vtk-1.1.0/README.txt
swc2vtk ======= |travisci| |Coverage Status| |python-2.7,3.3,3.4-blue| |license| |paraview| |NEURON| SWC to VTK converter for visualizing neurons and neural circuit simulations in ParaView. This software helps making beautiful visualization of large scale multi-compartmental neuron simulations with a parallelized env...
PypiClean
/nemo_toolkit-1.20.0-py3-none-any.whl/nemo/collections/nlp/models/intent_slot_classification/intent_slot_classification_model.py
import os import pathlib from typing import Dict, List, Optional import torch from omegaconf import DictConfig, OmegaConf from pytorch_lightning import Trainer from torch.utils.data import DataLoader from nemo.collections.common.losses import AggregatorLoss, CrossEntropyLoss from nemo.collections.nlp.data.intent_slo...
PypiClean
/auto_augment-1.0.0-cp38-cp38-manylinux1_x86_64.whl/auto_augment/third_party/PaddleDetection/slim/prune/export_model.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from paddle import fluid from ppdet.core.workspace import load_config, merge_config, create from ppdet.utils.cli import ArgsParser import ppdet.utils.checkpoint as checkpoint from paddleslim.prune ...
PypiClean
/keyfactor_v_1_client-1.0.3-py3-none-any.whl/keyfactor_v_1_client/models/keyfactor_api_models_templates_template_enrollment_policy_response.py
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset T = TypeVar("T", bound="KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse") @attr.s(auto_attribs=True) class KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse: """ Attributes: ...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/postcss-pseudo-class-any-link/node_modules/postcss-selector-parser/dist/selectors/root.js
'use strict'; exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl...
PypiClean
/paddlepaddle_gpu-2.5.1-cp38-cp38-win_amd64.whl/paddle/profiler/timer.py
import timeit from collections import OrderedDict class Stack: """ The stack in a Last-In/First-Out (LIFO) manner. New element is added at the end and an element is removed from that end. """ def __init__(self): self.items = [] def push(self, item): self.items.append(item) ...
PypiClean
/python-weave-0.2.tar.gz/python-weave-0.2/weave/crypto.py
import logging import base64 import json from M2Crypto.EVP import Cipher, RSA, load_key_string import M2Crypto.m2 from weave.PBKDF2 import PBKDF2 from weave import DEFAULT_PROTOCOL_VERSION class WeaveCryptoContext(object): """Encapsulates the cryptographic context for a user and their collections.""" de...
PypiClean
/odoo12_addon_project_hr-12.0.1.0.1-py3-none-any.whl/odoo/addons/project_hr/readme/CONFIGURE.rst
For setting employee categories at project level: #. Go to *Project > Projects*. #. Click on the 3 vertical dots of one of the project kanban cards for unfolding options and select "Edit". #. Put the wanted employee categories on the field "Employee Categories". For setting employee categories: #. Go to *Project ...
PypiClean
/user_sdk-0.0.61-py3-none-any.whl/user_sdk/domain.py
from dataclasses import dataclass, field from datetime import datetime from enum import Enum from typing import Optional, List from shuttl_geo import Location from shuttlis.serialization import serialize class CredentialType(Enum): USERNAME = "USERNAME" MOBILE = "MOBILE" OAUTH = "OAUTH" def __str__(...
PypiClean
/softmock-0.2.6.tar.gz/softmock-0.2.6/mitmproxy/addons/maplocal.py
import mimetypes import re import typing import urllib.parse from pathlib import Path from werkzeug.security import safe_join from mitmproxy import ctx, exceptions, flowfilter, http, version from mitmproxy.utils.spec import parse_spec class MapLocalSpec(typing.NamedTuple): matches: flowfilter.TFilter regex:...
PypiClean
/pydoc_markdown-4.8.2-py3-none-any.whl/pydoc_markdown/contrib/renderers/docusaurus.py
import dataclasses import json import logging import os import typing as t from pathlib import Path import docspec import typing_extensions as te from databind.core import DeserializeAs from pydoc_markdown.contrib.renderers.markdown import MarkdownRenderer from pydoc_markdown.interfaces import Context, Renderer log...
PypiClean
/qubole_ml-1.9.1-py3-none-any.whl/mlflow/store/artifact/cli.py
import logging import sys import click from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository from mlflow.tracking import _get_store from mlflow.tracking.artifact_utils import _download_artifact_from_uri from mlflow.utils.proto_json_utils import message_to_json _logger = logging.getLo...
PypiClean
/async_message_client-0.0.1-py3-none-any.whl/gui/main_window.py
from PyQt6.QtWidgets import QMainWindow, QMessageBox, QApplication, QListView from PyQt6.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor from PyQt6.QtCore import pyqtSlot, QEvent, Qt import sys import logging from gui.main_window_conv import Ui_MainClientWindow from gui.add_contact import AddContactDial...
PypiClean
/dis_snek-9.0.0-py3-none-any.whl/dis_snek/models/snek/cooldowns.py
import asyncio import time from enum import IntEnum from typing import TYPE_CHECKING, Any, Dict if TYPE_CHECKING: from dis_snek.models.snek.context import Context __all__ = ("Buckets", "Cooldown", "CooldownSystem", "MaxConcurrency") class Buckets(IntEnum): """ Outlines the cooldown buckets that may be u...
PypiClean
/stix121-1.0.0a1.zip/stix121-1.0.0a1/stix/core/__init__.py
# stdlib from functools import partial # mixbox from mixbox import fields # base import import stix # deprecations from stix.utils.deprecated import IdrefDeprecatedList # component imports from stix.campaign import Campaign from stix.coa import CourseOfAction from stix.exploit_target import ExploitTarget from stix...
PypiClean
/cbmshell-1.10.tar.gz/cbmshell-1.10/docs/topics/lock.rst
============================== Protecting Files From Deletion ============================== DOS supports a flag to prevent deleting a file with the SCRATCH command but does not provide a mechanism to set it. A file in a disk image can be protected using the ``lock`` command: .. code-block:: text (cbm) lock 0:I...
PypiClean
/telegram-export-1.8.2.tar.gz/telegram-export-1.8.2/telegram_export/formatters/baseformatter.py
"""Utility to extract data from a telegram-export database""" import datetime import math import sqlite3 import sys from pathlib import Path from collections import namedtuple from abc import abstractmethod from io import TextIOWrapper import os from telethon import utils from telethon.tl import types Message = named...
PypiClean
/wa-kat-1.1.16.tar.gz/wa-kat-1.1.16/src/wa_kat/rest_api/analyzers_api.py
# # Imports ===================================================================== import traceback from os.path import join import requests # for requests.exceptions.Timeout from bottle import post from bottle import response from bottle_rest import form_to_params from ..settings import API_PATH from ..settings imp...
PypiClean
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/sktime/forecasting/online_learning/_online_ensemble.py
"""Implements framework for applying online ensembling algorithms to forecasters.""" __author__ = ["magittan, mloning"] import numpy as np import pandas as pd from sktime.forecasting.compose._ensemble import EnsembleForecaster class OnlineEnsembleForecaster(EnsembleForecaster): """Online Updating Ensemble of f...
PypiClean
/lor_deckcodes-5.0.0.tar.gz/lor_deckcodes-5.0.0/lor_deckcodes/encode.py
from base64 import b32encode from io import BytesIO from typing import TYPE_CHECKING, List from lor_deckcodes.utils import write_varint from lor_deckcodes.constants import CURRENT_FORMAT_VERSION, faction_mapping if TYPE_CHECKING: from lor_deckcodes import CardCodeAndCount def _get_set_faction_combinations(cards...
PypiClean
/requirements-builder-0.4.4.tar.gz/requirements-builder-0.4.4/CONTRIBUTING.rst
.. This file is part of Requirements-Builder Copyright (C) 2015 CERN. Requirements-Builder is free software; you can redistribute it and/or modify it under the terms of the Revised BSD License; see LICENSE file for more details. Contributing ============ Contributions are welcome, and they are gr...
PypiClean
/gitbrancher-1.1.1-py3-none-any.whl/gitbrancher.py
import argparse import subprocess import sys from collections import OrderedDict from tabulate import tabulate, tabulate_formats branch_names = None prod_branch = None GIT_CONFIG_PROD_BRANCH_NAME = 'brancher.prod-branch' GIT_CONFIG_BRANCH_NAMES = 'brancher.branch-names' def load_config(): global branch_names ...
PypiClean
/iLCDirac-34.0.0a7.tar.gz/iLCDirac-34.0.0a7/src/ILCDIRAC/ILCTransformationSystem/Agent/FileStatusTransformationAgent.py
from __future__ import absolute_import import json from collections import defaultdict from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Core.Utilities.PrettyPrint import printTable from DIRAC.Core.Utilities.List import breakListIntoChunks from DIRAC.Core.Utilities.Proxy im...
PypiClean
/RPD-0.6.0.tar.gz/RPD-0.6.0/rpd/state.py
# 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, publish, distribute, sublicense, and/or sell # cop...
PypiClean
/pulumi_gcp-6.65.0a1693462587.tar.gz/pulumi_gcp-6.65.0a1693462587/pulumi_gcp/compute/https_health_check.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['HttpsHealthCheckArgs', 'HttpsHealthCheck'] @pulumi.input_type class HttpsHealthCheckArgs: def __init__(__self__, *, check_int...
PypiClean
/lager_cli-0.1.187-py3-none-any.whl/lager_cli/gateway/commands.py
import collections import os import click from ..context import get_default_gateway, get_impl_path from ..python.commands import run_python_internal @click.group(name='gateway', hidden=True) def _gateway(): """ Lager gateway commands """ pass @_gateway.command() @click.pass_context @click.option('...
PypiClean
/sharestats-item-editor-0.2.11.post2.tar.gz/sharestats-item-editor-0.2.11.post2/sharestats_item_editor/rexam_item_editor/gui/dialogs.py
from os import path import PySimpleGUI as sg from .. import sysinfo, __version__, __author__, APPNAME, templates from ..consts import FILE_ENCODING from ..rexam import r_render, extypes from ..rexam.rmd_file import RmdFile, SEP, TAG_L1, TAG_L2, TAG_BILINGUAL from ..rexam.item import RExamItem def ask_save(item_name,...
PypiClean
/connect-sdk-python2-3.42.0.zip/connect-sdk-python2-3.42.0/ingenico/connect/sdk/domain/hostedcheckout/definitions/mobile_payment_method_specific_input_hosted_checkout.py
from ingenico.connect.sdk.domain.definitions.abstract_payment_method_specific_input import AbstractPaymentMethodSpecificInput from ingenico.connect.sdk.domain.hostedcheckout.definitions.mobile_payment_product302_specific_input_hosted_checkout import MobilePaymentProduct302SpecificInputHostedCheckout from ingenico.conne...
PypiClean
/odoo14_addon_shopfloor-14.0.4.2.0-py3-none-any.whl/odoo/addons/shopfloor/models/shopfloor_menu.py
from odoo import _, api, exceptions, fields, models PICK_PACK_SAME_TIME_HELP = """ If you tick this box, while picking goods from a location (eg: zone picking) set destination will work as follow: * if a location is scanned, a new delivery package is created; * if a package is scanned, the package is validated agains...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/task/tags.py
# Copyright © 2012-2023 Roberto Alsina and others. # 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, mer...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/archipack/archipack_slab.py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distri...
PypiClean
/pytest-intercept-remote-1.25.tar.gz/pytest-intercept-remote-1.25/pytest_intercept_remote/remote_status.py
import json import socket from os.path import isfile from urllib.error import URLError, HTTPError from urllib.request import urlopen import pytest import requests __all__ = [ "test_urls_urllib", "test_urls_requests", "test_urls_socket" ] def pytest_generate_tests(metafunc): """ Pytest hook for g...
PypiClean
/azure-mgmt-appcontainers-3.0.0b1.zip/azure-mgmt-appcontainers-3.0.0b1/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundEr...
PypiClean
/wagtail-polls-2.1.0.tar.gz/wagtail-polls-2.1.0/README.md
# Wagtail Polls A small polls app that works with Wagtail's snippets and Django Rest Framework for ajax based voting. This app requires login for voting and limits one vote per user. # Installation 1. Install `wagtail-polls` via pip 2. Add `polls` to `INSTALLED_APPS` 3. Add `url(r'^polls/', include('polls.urls')),`...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/switchgrouplearnedinfo_1b0e7ca2c5c5bf68353402fcf910385f.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 SwitchGroupLearnedInfo(Base): """NOT DEFINED The SwitchGroupLearnedInfo class encapsulates a list of switchGroupLearnedInfo resources that ar...
PypiClean
/psgraph-2.3.199-py3-none-any.whl/checkov/common/output/baseline.py
from __future__ import annotations import json from collections import defaultdict from operator import itemgetter from checkov.common.models.enums import CheckResult from typing import Any, TYPE_CHECKING if TYPE_CHECKING: from checkov.common.output.record import Record from checkov.common.output.report impo...
PypiClean
/mara-pipelines-3.4.0.tar.gz/mara-pipelines-3.4.0/mara_pipelines/logging/run_log.py
from typing import List, Dict import sqlalchemy.orm from sqlalchemy.orm import declarative_base from .. import config from ..logging import pipeline_events, system_statistics from .. import events Base = declarative_base() class Run(Base): """Runtime and status of a data integration run""" __tablename__ =...
PypiClean
/tap_krow-0.10.3-py3-none-any.whl/tap_krow/client.py
import logging from datetime import datetime from typing import Any, Dict, Iterable, Optional from urllib.parse import parse_qsl import dateutil import requests from singer_sdk.exceptions import FatalAPIError, RetriableAPIError from singer_sdk.helpers.jsonpath import extract_jsonpath from singer_sdk.pagination import...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/AlipayEbppJfexportInputfieldQueryModel.py
import json from alipay.aop.api.constant.ParamConstants import * class AlipayEbppJfexportInputfieldQueryModel(object): def __init__(self): self._biz_type = None self._charge_inst = None self._extend_field = None self._field_scene = None self._sub_biz_type = None @pro...
PypiClean
/simple-site-manager-0.1.7.tar.gz/simple-site-manager-0.1.7/README
This creates configuration files for lighttpd and django fcgi, based on a simple list of sites. Templates are used for the output files so they can easily be modified and customised for your own sites. You can either use a global config file or individual files for each project. The project is in the early stages, ...
PypiClean
/dq-notebook-6.0.2.tar.gz/dq-notebook-6.0.2/notebook/static/components/codemirror/addon/search/match-highlighter.js
// Highlighting text that matches the selection // // Defines an option highlightSelectionMatches, which, when enabled, // will style strings that match the selection throughout the // document. // // The option can be set to true to simply enable it, or to a // {minChars, style, wordsOnly, showToken, delay} object to...
PypiClean
/agixt-1.3.128.tar.gz/agixt-1.3.128/docs/3-Providers/Poe.md
# Poe - [Poe](https://poe.com) - [AGiXT](https://github.com/Josh-XT/AGiXT) ## Disclaimer We are not responsible if Poe bans your account for doing this. This may not be consistent with their rules to use their services in this way. This was developed for experimental purposes and we assume no responsibility for how y...
PypiClean
/rule-engine-client-python-2.13.0.tar.gz/rule-engine-client-python-2.13.0/core/rule/rule_engine_manager.py
import os import rule_engine import yaml class RuleEngineManager: def __init__(self) -> None: self.rules = None def __enter__(self): return self def __exit__(self, exc_type, exc_value, traceback): self.rules = None def execute(self, utf_rule, data) -> bool: re_rule =...
PypiClean
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/lightning/wide_and_deep.py
import os import time import copy import json import boto3 import numpy as np import pandas as pd import wandb import pytorch_lightning as pl import torch import torchmetrics from pytorch_lightning import LightningModule from torch.utils.data import Dataset, DataLoader from ..models.wide_and_deep import WideAndDeep c...
PypiClean
/hestia_earth_models-0.49.0-py3-none-any.whl/hestia_earth/models/utils/cycle.py
from hestia_earth.schema import CycleFunctionalUnit, SiteSiteType, TermTermType from hestia_earth.utils.model import filter_list_term_type, find_term_match, find_primary_product from hestia_earth.utils.tools import list_sum, safe_parse_float, safe_parse_date from ..log import logRequirements, debugValues from .lookup ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/batch/v20190801/get_batch_account.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetBatchAccountResult', 'AwaitableGetBatchAccountResult', 'get_batch_account', ] @pulumi.output_type class GetBatchAccountR...
PypiClean
/clime-github-repository-searcher-0.2.tar.gz/clime-github-repository-searcher-0.2/clime_repository_searcher/main.py
from argparse import Namespace from pandas import DataFrame from progress.bar import Bar from requests import Response, get, post from clime_repository_searcher.args import mainArgs from clime_repository_searcher.version import version def callREST( maxStars: int, minStars: int, maxForks: int, minForks: int, t...
PypiClean
/azure-mgmt-rdbms-10.2.0b6.zip/azure-mgmt-rdbms-10.2.0b6/azure/mgmt/rdbms/postgresql_flexibleservers/operations/_backups_operations.py
import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.paging import I...
PypiClean
/aksharamukha_docx-2.2.0-py3-none-any.whl/aksharamukha/ScriptMap/EastIndic/Shan.py
# Script Mapping for Devanagari VowelMap = [ '\u1022', '\u1022ႃ', '\u1022\u102D', '\u1022\u102E', '\u1022\u102F', '\u1022\u1030', 'ရိ\u02BD', 'ရီ\u02BD', 'လိ\u02BD', ...
PypiClean
/datagristle-0.2.3.tar.gz/datagristle-0.2.3/README.md
# Introduction Datagristle is a toolbox of tough and flexible command line tools for working with data. It's kind of an interactive mix between ETL and data analysis optimized for rapid analysis and manipulation of a wide variety of data at the command line. More info is on the DataGristle wiki here: [wiki](https...
PypiClean
/django-dashing-0.3.4.tar.gz/django-dashing-0.3.4/dashing/static/dashing/libs/moment/locale/bo.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; var symbolMap = { '1': '༡', ...
PypiClean
/max_util-0.0.14-py3-none-any.whl/showdoc/entity.py
class Page: item_id: str addtime: str cat_id: str s_number: str page_id: str author_uid: str author_username: str page_title: str page_comments: str page_content: str is_del: str ext_info: str attachment_count: str unique_key: str def __init__(self): ...
PypiClean
/snowflake_ml_python-1.0.6-py3-none-any.whl/snowflake/ml/_internal/utils/formatting.py
import re from dataclasses import dataclass from datetime import datetime from typing import Any _WHITESPACE_COMPACT_RE = re.compile(r"\s+") _WHITESPACE_NO_NEWLINE_RE = re.compile(r"[ \t\r\f\v]+") _WHITESPACE_COMPACT_KEEP_NEWLINE_RE = re.compile(r"([ \t\r\f\v]*\n[ \t\r\f\v]*)") @dataclass class SqlStr: """Class ...
PypiClean
/pyartemis-0.1.4-py3-none-any.whl/artemis/interactions_methods/model_agnostic/partial_dependence_based/_friedman_h_statistic.py
from typing import Callable, List, Optional, Tuple import numpy as np import pandas as pd from tqdm import tqdm from artemis._utilities.domain import VisualizationType, InteractionMethod, ProgressInfoLog from artemis._utilities.exceptions import MethodNotFittedException from artemis._utilities.ops import remove_eleme...
PypiClean
/spire.xls-13.4.0-py3-none-any.whl/spire/xls/XlsValidation.py
from enum import Enum from plum import dispatch from typing import TypeVar,Union,Generic,List,Tuple from spire.common import * from spire.xls import * from ctypes import * import abc class XlsValidation ( IDataValidation, IExcelApplication, IOptimizedUpdate, ICloneParent) : """ """ @property def Inp...
PypiClean