id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/reservoirpy-fbessou-0.3.13.tar.gz/reservoirpy-fbessou-0.3.13/reservoirpy/nodes/activations.py
from functools import partial from ..activationsfunc import get_function from ..node import Node def forward(node: Node, x, **kwargs): return node.f(x, **kwargs) def initialize(node: Node, x=None, *args, **kwargs): if x is not None: node.set_input_dim(x.shape[1]) node.set_output_dim(x.shape...
PypiClean
/cruds_dj_adminlte2-1.0-py3-none-any.whl/cruds_adminlte/static/ckeditor/lang/sv.js
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['sv']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Tryck ALT 0 för hjälp","browseServer":"Bläddra på server","url":...
PypiClean
/quri_parts_stim-0.14.0.tar.gz/quri_parts_stim-0.14.0/quri_parts/stim/sampler/__init__.py
from collections import Counter from typing import TYPE_CHECKING, Any, Iterable, Optional import numpy as np from quri_parts.circuit.circuit import NonParametricQuantumCircuit from quri_parts.core.sampling import ConcurrentSampler, MeasurementCounts, Sampler from quri_parts.core.utils.concurrent import execute_concu...
PypiClean
/aio-mqtt-0.2.0.tar.gz/aio-mqtt-0.2.0/aio_mqtt/utils.py
import asyncio as aio import dataclasses import typing as ty __all__ = ( 'ForbiddenReadingError', 'LimitedStreamReader', 'TopicMatcher', ) class ForbiddenReadingError(Exception): pass class LimitedStreamReader: __slots__ = ('reader', 'remaining_length') def __init__(self, reader: aio.Str...
PypiClean
/pyxllib-0.3.67.1.tar.gz/pyxllib-0.3.67.1/pyxlpr/ppstructure/table/predict_structure.py
import os import sys __dir__ = os.path.dirname(os.path.abspath(__file__)) sys.path.append(__dir__) sys.path.append(os.path.abspath(os.path.join(__dir__, '../..'))) os.environ["FLAGS_allocator_strategy"] = 'auto_growth' import cv2 import numpy as np import time import pyxlpr.ppocr.tools.infer.utility as utility from...
PypiClean
/sr.tools-1.2.0.tar.gz/sr.tools-1.2.0/docs/configuration.rst
Configuration ============= The tools are configurable using a YAML file found in ``~/.sr/config.yaml``. The configuration file looks something like this: .. code-block:: yaml # Student Robotics username user: null # Store passwords in the keyring if it's available use_keyring: False # The key...
PypiClean
/jdaviz-3.6.2-py3-none-any.whl/notebooks/concepts/specviz_glue_unit_conversion.ipynb
This is a concept notebook to investigate Glue unit conversion behavior integrated into Jdaviz spectrum viewer. ``` import numpy as np from astropy import units as u from specutils import Spectrum1D from jdaviz import Specviz ``` First spectrum. ``` wave1 = np.linspace(2, 5, 10) * u.um flux1 = [1, 2, 3, 4, 5, 5, 4...
PypiClean
/breakpoint-2.1.4.tar.gz/breakpoint-2.1.4/.lib/setuptools/ssl_support.py
import os import socket import atexit import re import pkg_resources from pkg_resources import ResolutionError, ExtractionError from setuptools.compat import urllib2 try: import ssl except ImportError: ssl = None __all__ = [ 'VerifyingHTTPSHandler', 'find_ca_bundle', 'is_available', 'cert_paths', 'op...
PypiClean
/gooddata-api-client-1.5.0.tar.gz/gooddata-api-client-1.5.0/gooddata_api_client/model/json_api_dataset_out_document.py
import re # noqa: F401 import sys # noqa: F401 from gooddata_api_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
/noc-0.7(3).tar.gz/noc-0.7(3)/contrib/src/django/django/core/exceptions.py
class DjangoRuntimeWarning(RuntimeWarning): pass class ObjectDoesNotExist(Exception): "The requested object does not exist" silent_variable_failure = True class MultipleObjectsReturned(Exception): "The query returned multiple objects when only one was expected." pass class SuspiciousOperation(Exce...
PypiClean
/aus-senate-audit-0.13.0.tar.gz/aus-senate-audit-0.13.0/aus_senate_audit/constants.py
# The modes in which to run the senate election audit. SIMULATION_MODE = 'simulation' QUICK_MODE = 'quick' REAL_MODE = 'real' # The Australian states with senate election data available to audit. STATES = [ 'ACT', 'NSW', 'NT', 'QLD', 'SA', 'TAS', 'VIC', 'WA', ] # The default number of ...
PypiClean
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ace-builds/src-min/mode-mushcode.js
define("ace/mode/mushcode_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="@if|@ifelse|@switch|@halt|@dolist|@create|@scent|@sound|@touch|@ataste|@osound|@...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/public/js/jquery.datetimepicker.js
var DateFormatter;!function(){"use strict";var t,e,r,n,a,u,i;u=864e5,i=3600,t=function(t,e){return"string"==typeof t&&"string"==typeof e&&t.toLowerCase()===e.toLowerCase()},e=function(t,r,n){var a=n||"0",u=t.toString();return u.length<r?e(a+u,r):u},r=function(t){var e,n;for(t=t||{},e=1;e<arguments.length;e++)if(n=argum...
PypiClean
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/distribute/coordinator/cluster_coordinator.py
import collections import contextlib import os import re import threading import time import weakref from six.moves import queue from tensorflow.python.distribute import parameter_server_strategy_v2 from tensorflow.python.distribute.coordinator import coordinator_context from tensorflow.python.distribute.coordinator ...
PypiClean
/checkov2-1.0.970-py3-none-any.whl/checkov/terraform/checks/resource/gcp/GoogleCloudPostgreSqlLogCheckpoints.py
from checkov.common.models.enums import CheckResult, CheckCategories from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class GoogleCloudPostgreSqlLogCheckpoints(BaseResourceCheck): def __init__(self): name = "Ensure PostgreSQL database 'log_checkpoints' flag is set to 'on...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/v20191101/network_experiment_profile.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ._enums import * __all__ = ['NetworkExperimentProfileArgs', 'NetworkExperimentProfile'] @pulumi.input_type class NetworkExperimentProfileArgs: def _...
PypiClean
/axians-netbox-plugin-pdu-0.0.3.tar.gz/axians-netbox-plugin-pdu-0.0.3/axians_netbox_pdu/forms.py
from django import forms from dcim.models import DeviceType, Manufacturer from extras.forms import CustomFieldModelCSVForm from utilities.forms import BootstrapMixin from .choices import PDUUnitChoices from .models import PDUConfig BLANK_CHOICE = (("", "---------"),) class PDUConfigForm(BootstrapMixin, forms.Model...
PypiClean
/pynetdicom-2.0.2.tar.gz/pynetdicom-2.0.2/README.rst
.. class:: center .. image:: https://codecov.io/gh/pydicom/pynetdicom/branch/master/graph/badge.svg :target: https://codecov.io/gh/pydicom/pynetdicom .. image:: https://github.com/pydicom/pynetdicom/workflows/unit-tests/badge.svg :target: https://github.com/pydicom/pynetdicom/actions?query=workflow%3Aunit-tests...
PypiClean
/metaflow-helper-0.0.1.tar.gz/metaflow-helper-0.0.1/metaflow_helper/models/keras.py
import tempfile from sklearn.base import BaseEstimator, RegressorMixin from tensorflow.python.keras.callbacks import EarlyStopping from tensorflow.python.keras import Sequential from tensorflow.python.keras.layers import Dense, Dropout, InputLayer from tensorflow.python.keras import regularizers from tensorflow.python....
PypiClean
/gemseo-5.0.0.tar.gz/gemseo-5.0.0/doc_src/_examples/post_process/algorithms/plot_variable_influence.py
from __future__ import annotations from gemseo import configure_logger from gemseo import create_discipline from gemseo import create_scenario from gemseo.problems.sobieski.core.problem import SobieskiProblem # %% # Import # ------ # The first step is to import some high-level functions # and a method to get the desi...
PypiClean
/astrobasecloud-0.2.3.tar.gz/astrobasecloud-0.2.3/.github/ISSUE_TEMPLATE/doc.md
--- name: 📝 Documentation about: Request additional documentation or suggest improvements title: "[DOC]" labels: documentation assignees: '' --- * [ ] I used GitHub search to find a similar issue and didn't find what I was looking for. * [ ] I searched the available documentation for this project via integrated searc...
PypiClean
/hurry.jquerytools-1.2.5.1.tar.gz/hurry.jquerytools-1.2.5.1/README.txt
================= hurry.jquerytools ================= Introduction ============ This library packages jquerytools_ for `hurry.resource`_. It relies on hurry.jquery for the dependency. .. _jquerytools: http://flowplayer.org/tools/index.html .. _`hurry.resource`: http://pypi.python.org/pypi/hurry.resource Please tak...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/chryseobacteriumpalustre.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def ChryseobacteriumPalustre( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwarg...
PypiClean
/orchid_python_api-2023.1.220-py3-none-any.whl/orchid_python_api/examples/low_level/multi_picking_events.py
import argparse import logging import pathlib import orchid from orchid import ( dot_net_disposable as dnd, net_enumerable as dne, net_fracture_diagnostics_factory as net_factory, ) import clr # importing `clr` must occur after `orchid` to call `pythonnet.load()` # noinspection PyUnresolvedReferences fro...
PypiClean
/python-olm-3.2.15.tar.gz/python-olm-3.2.15/libolm/lib/doctest/doc/markdown/faq.md
## FAQ - [**How is doctest different from Catch?**](#how-is-doctest-different-from-catch) - [**How is doctest different from Google Test?**](#how-is-doctest-different-from-google-test) - [**How to get the best compile-time performance with the framework?**](#how-to-get-the-best-compile-time-performance-with-the-framew...
PypiClean
/genie.libs.sdk-23.8.1-py3-none-any.whl/genie/libs/sdk/apis/iosxe/ike/configure.py
# Python import logging import re # Unicon from unicon.core.errors import SubCommandFailure log = logging.getLogger(__name__) def configure_ikev2_keyring(device, keyring_name, peer_name, peer_ip=None, pe...
PypiClean
/digi_xbee-1.4.1-py3-none-any.whl/digi/xbee/packets/aft.py
from enum import Enum, unique from digi.xbee.util import utils @unique class ApiFrameType(Enum): """ This enumeration lists all the available frame types used in any XBee protocol. | Inherited properties: | **name** (String): the name (id) of this ApiFrameType. | **value** (String): ...
PypiClean
/redes_bayesianasv2_rey20074-0.0.2.tar.gz/redes_bayesianasv2_rey20074-0.0.2/README.md
# Redes Bayesianas Una librería para construir redes bayesianas y realizar inferencia probabilística. ## Instalación Con el manejador de paquetes pip: - **pip install redes-bayesianas-rey20074==0.0.1** ## Uso <sub> # importa la libreria import redes_bayesianas_20074 # Crea una red bayesiana ...
PypiClean
/pdbp-1.4.6.tar.gz/pdbp-1.4.6/CONTRIBUTING.md
# Contributing to ``pdbp`` The ``pdbp`` project welcomes meaningful contributions. There are many ways to help: ## Bug Reports When opening a new issue or commenting on an existing issue, please make sure to provide concise, detailed instructions on how to reproduce the issue. If the issue can't be reproduced, it w...
PypiClean
/bootstrap_env-1.0.2.tar.gz/bootstrap_env-1.0.2/bootstrap_env/admin_shell/developer_shell.py
import re import subprocess from pathlib import Path # Bootstrap-Env from bootstrap_env.admin_shell.normal_shell import AdminShell from bootstrap_env.boot_bootstrap_env import VerboseSubprocess from bootstrap_env.utils.cookiecutter_utils import verbose_cookiecutter from bootstrap_env.utils.import_utils import LazyImpo...
PypiClean
/nulink_twisted-0.1.0-py3-none-any.whl/twisted/conch/endpoints.py
__all__ = ["AuthenticationFailed", "SSHCommandAddress", "SSHCommandClientEndpoint"] import signal from os.path import expanduser from struct import unpack from zope.interface import Interface, implementer from twisted.conch.client.agent import SSHAgentClient from twisted.conch.client.default import _KNOWN_HOSTS from...
PypiClean
/qaf_python-1.0.0b0-py3-none-any.whl/qaf/automation/core/configurations_manager.py
import json import os from typing import ( Optional, ) from qaf.automation.core.singleton import Singleton from qaf.automation.keys.application_properties import ApplicationProperties as AP from qaf.automation.util.property_util import PropertyUtil __all__ = [ "expression", "get_bundle", "ConfigurationsManag...
PypiClean
/apollo45-1.0.tar.gz/apollo45-1.0/apollo/model/charge_degree_response.py
import re # noqa: F401 import sys # noqa: F401 from apollo.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, validat...
PypiClean
/python-banyan-examples-1.0.tar.gz/python-banyan-examples-1.0/python_banyan/examples/clock/tick_counter.py
import argparse import signal import sys import time import datetime from python_banyan.banyan_base import BanyanBase class TickCounter(BanyanBase): """ This class receives subscribes for tick messages """ def __init__(self, back_plane_ip_address=None, subscriber_port='43125', publisher_port='4312...
PypiClean
/earth-wallpaper-2.2.2.tar.gz/earth-wallpaper-2.2.2/earth_wallpaper/interfaces/wallhaven.py
from .utils.platformInfo import PlatformInfo from .utils.settings import Settings from random import randint import requests import logging import json logger = logging.getLogger(__name__) class Wallhaven(object): def __init__(self): self.proxies = Settings().proxies() self.search_url = "https:/...
PypiClean
/nvidia_tao_deploy-4.0.0.1-py3-none-any.whl/nvidia_tao_deploy/cv/classification_tf1/scripts/evaluate.py
from pytransform_vax_001219 import pyarmor_runtime pyarmor_runtime(suffix='_vax_001219') __pyarmor_vax_001219__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x08\x00\x55\x0d\x0d\x0a\x09\x34\xe0\x02\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x99\x16\x00\x00\x00\x00\x00\x18\x68\x09\xec\xb8\x11\xdb\x...
PypiClean
/checkbox-ng-1.18.1.tar.gz/checkbox-ng-1.18.1/plainbox/impl/session/resume.py
# # Checkbox is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along w...
PypiClean
/blendedux-0.1.1-py3-none-any.whl/blendedUx/blended_flask/blended_hostlib/backend/backend.py
from __future__ import absolute_import, unicode_literals import os import sys import zlib import base64 import hashlib import json import configparser from PIL import Image import shutil from shutil import copyfile import stat try: from urllib import urlretrieve, urlopen from urllib2 import urlopen except Impo...
PypiClean
/zbg-0.1.1.zip/zbg-0.1.1/ez_setup.py
import os import shutil import sys import tempfile import zipfile import optparse import subprocess import platform import textwrap import contextlib import warnings from distutils import log try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen try: from site import USE...
PypiClean
/programy-5.0.1.tar.gz/programy-5.0.1/utils/test_runner/README.txt
qTest Runner =========== After creating AIML unit tests with the test_creator.py utility, use test_runner to execute the tests and flag up any errors or invalid responses Usage: python3 test_runner.py --test_dir test-dir --qna_file qna-file --verbose or python3 test_runner.py --test_file test_file --qna_file q...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/turtle/turtle.js
CodeMirror.defineMode("turtle", function(config) { var indentUnit = config.indentUnit; var curPunc; function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp([]); var keywords = wordRegexp(["@prefix", "@base", "a"]); var operatorChars = /[*+\-<>=&|]/...
PypiClean
/pyXhCustApp-0.0.4.tar.gz/pyXhCustApp-0.0.4/README.md
# PyXHCustApp A library provide functionality process chia plot log. # Installation ```python_script pip install pyXhCustApp ``` ```python_script pip3 install pyXhCustApp ``` # Demo ```python_script from pyXhCustApp import CustApp CustApp.appDefault("abc_app") print(app.has_proxy()) app.set_kv('xxx', "xxx") app.s...
PypiClean
/fhir.resources-7.0.2.tar.gz/fhir.resources-7.0.2/fhir/resources/eventdefinition.py
import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from pydantic.errors import MissingError, NoneIsNotAllowedError from . import domainresource, fhirtypes class EventDefinition(domainresource.DomainResource): """Disclaimer: Any field name e...
PypiClean
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/docs/source/faq/pass-custom-mib-to-manager.rst
How to pass MIB to the Manager ------------------------------ Q. How to make use of random MIBs at my Manager application? A. Starting from PySNMP 4.3.x, plain-text (ASN.1) MIBs can be automatically parsed into PySNMP form by the `PySMI <http://snmplabs.com/pysmi/>`_ tool. PySNMP will call PySMI automatica...
PypiClean
/python-bale-bot-2.4.7.tar.gz/python-bale-bot-2.4.7/bale/error.py
class HTTPClientError: USER_OR_CHAT_NOT_FOUND = "no such group or user" TOKEN_NOT_FOUND = "Token not found" RATE_LIMIT = "bot limit exceed" LOCAL_RATE_LIMIT = "local_rate_limited" PERMISSION_DENIED = "permission_denied" class BaleError(Exception): """ Base exception class for python-bale-bo...
PypiClean
/convo_n2-2.0.0.tar.gz/convo_n2-2.0.0/convo/nlu/registry.py
import logging import traceback import typing from typing import Any, Dict, Optional, Text, Type from convo.nlu.classifiers.diet_classifier import DIETClassifier from convo.nlu.classifiers.fallback_classifier import FallbackClassifier from convo.nlu.classifiers.keyword_intent_classifier import KeywordIntentClassifier ...
PypiClean
/pylint-ci-1.0.0.tar.gz/pylint-ci-1.0.0/pylint_ci/pylint_ci.py
import logging import argparse import sys import subprocess import pathlib import re ### Logging Initialization LOGGER = logging.getLogger(__name__) FORMATTER = logging.Formatter('{levelname}---{module:->20}.{funcName:-<20}---{message}', style='{') CONSOLE_HANDLER = logging.StreamHandler() CONSOLE_HANDLER.setFormatte...
PypiClean
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/pydevd_attach_to_process/add_code_to_python_process.py
r''' Copyright: Brainwy Software Ltda. License: EPL. ============= Works for Windows by using an executable that'll inject a dll to a process and call a function. Note: https://github.com/fabioz/winappdbg is used just to determine if the target process is 32 or 64 bits. Works for Linux relying on gdb. Limitations:...
PypiClean
/django_modern_admin-0.1.tar.gz/django_modern_admin-0.1/django_modern_admin/static/django_modern_admin/js/plugins/xcharts/xcharts.min.js
(function(){var xChart,_vis={},_scales={},_visutils={};(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,v=e.reduce,h=e.reduceRight,g=e.filter,d=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Arra...
PypiClean
/gsheet-player-0.2.1.tar.gz/gsheet-player-0.2.1/src/gsheet_player/gsheetPlayer.py
from collections import namedtuple class gsheetPlayer: """ A class that represents a player in a sheet row ... Attributes ---------- person : array an array with each sheet column value. Contains date, name, email, etc row : int the sheet row number where player was read...
PypiClean
/dones-0.2.0.tar.gz/dones-0.2.0/README.md
## Introduction The dones module can be used to mark whether a key is "done" and check whether a key has been marked "done". Keys can also be unmarked, so that they are no longer "done". Also, all keys can be unmarked by clearing the Dones. Keys are kept in their own namespace to avoid conflicts with other sets of ...
PypiClean
/skosprovider_heritagedata-1.1.0.tar.gz/skosprovider_heritagedata-1.1.0/README.rst
skosprovider_heritagedata ========================= A skosprovider for the services at `heritagedata.org <http://heritagedata.org>`_. .. image:: https://travis-ci.org/OnroerendErfgoed/skosprovider_heritagedata.png?branch=master :target: https://travis-ci.org/OnroerendErfgoed/skosprovider_heritagedata .. image...
PypiClean
/PyPump-0.7.tar.gz/PyPump-0.7/docs/gettingstarted/verifier_callback.rst
Getting Verifier ================ For OAuth to allow OOB (Out of band) applications to have access to an account, first we must provide a link and instructions for the user. Then we must provide a means of copying the verifier into an application and relaying it to the server with other tokens. The server will then pr...
PypiClean
/lineedit-0.1.6.tar.gz/lineedit-0.1.6/LICENSE.md
__lineedit__ is licensed under the MIT "Expat" License: > Copyright (c) 2017 Randy Lai > > 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 t...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/chris/《30天计划》重制:基础篇:基础篇03-搭讪并不是收号游戏!搭讪的正确规则.md
# 《30天计划》重制:基础篇:基础篇03-搭讪并不是收号游戏!搭讪的正确规则 這裏是搭善大師TV 我是Chris,今天我要跟大家講一下搭善時候的具體遊戲規則,這個規則非常重要,你一定要勞其在心,這個也是判斷你搭善是否成功的唯一標準,首先第一個是有效搭善跟無效搭善。 在搭善前你要分辨什麼是有效搭善,什麼是無效搭善,在我三年的教學經驗裏面,我遇到我許多的人,他們的搭善都是屬於無效搭善,他們可能也每天堅持在搭善,甚至他們搭善也到了上千次。 這對他們的個人提升以及真正能和女人有後續的發展,少之又少,因為他們永遠只停留在入門級別,就是趕於上千,趕於跟女人說話的階段,什麼是無效搭善呢?無效搭善指的是你在搭善時僅僅只要一個號碼。 並沒有...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/optimization/populationbased/coevolution/multipopulationcoevolution.py
__author__ = 'Tom Schaul, tom@idsia.ch' from random import choice from pybrain.optimization.coevolution.coevolution import Coevolution class MultiPopulationCoevolution(Coevolution): """ Coevolution with a number of independent populations. """ numPops = 10 def __str__(self): return 'MultiPop'+...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/seasonpass/operations/season/public_get_current_user_season.py
# template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: dis...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/AlipayOpenPublicPersonalizedExtensionCreateModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ExtensionArea import ExtensionArea from alipay.aop.api.domain.LabelRule import LabelRule class AlipayOpenPublicPersonalizedExtensionCreateModel(object): def __init__(self): self._areas = None self._label_...
PypiClean
/calendar-cli-kku-2.0.1.tar.gz/calendar-cli-kku-2.0.1/calendarcli/GUI/app.py
import eel from ..data.db import getPath, Data from datetime import datetime , timedelta from monthdelta import monthdelta from ..data.google_calendar import Service from tzlocal import get_localzone_name, get_localzone from rich import print from rich.console import Console console = Console() service = Service() e...
PypiClean
/zeanr_distributions-0.1.tar.gz/zeanr_distributions-0.1/zeanr_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/handykapp_analysis-0.13.0.tar.gz/handykapp_analysis-0.13.0/analysis/going.py
from typing import Self from horsetalk import AWGoingDescription, DirtGoingDescription, TurfGoingDescription # type: ignore from horsetalk.going_description import GoingDescription # type: ignore class Going: """ A class to represent a going. """ Scales = (TurfGoingDescription, AWGoingDescription, ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/delta/delta_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
/azure_mgmt_billing-6.1.0b1-py3-none-any.whl/azure/mgmt/billing/operations/_policies_operations.py
import sys from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.pipeline import Pipeline...
PypiClean
/clawpack-5.9.0.tar.gz/clawpack-5.9.0/pyclaw/src/pyclaw/geometry.py
r""" Module defining Pyclaw geometry objects. """ from __future__ import absolute_import from __future__ import print_function import numpy as np import warnings import six from six.moves import range from six.moves import zip deprec_message = "'edges' has been deprecated; please use 'nodes' instead." # =============...
PypiClean
/bitflags-1.1.0.tar.gz/bitflags-1.1.0/README.rst
======== bitflags ======== Bit flags implementation using a C Union. This library removes the need to use ctypes and helps you quickly access what bits are toggled. This class is built off of the Bit Manipulation guide found at https://wiki.python.org/moin/BitManipulation under the Bit fields section. This library i...
PypiClean
/scikit-ext-0.1.16.tar.gz/scikit-ext-0.1.16/scikit_ext/scorers.py
import numpy as np import time import _pickle as cPickle from sklearn.metrics.scorer import _BaseScorer class TimeScorer(_BaseScorer): def _score(self, method_caller, estimator, X, y_true=None, n_iter=1, unit=True, scoring=None, tradeoff=None, sample_weight=None): """ Evaluate prediction latency. ...
PypiClean
/xhtml2pdf-legacy-3.0.38.tar.gz/xhtml2pdf-legacy-3.0.38/xhtml2pdf/tables.py
from reportlab.platypus.tables import TableStyle from xhtml2pdf.util import getSize, getBorderStyle, getAlign from xhtml2pdf.tags import pisaTag from xhtml2pdf.xhtml2pdf_reportlab import PmlTable, PmlKeepInFrame import copy import logging # Copyright 2010 Dirk Holtwick, holtwick.it # # Licensed under the Apache Licens...
PypiClean
/django-houston-0.3.0.tar.gz/django-houston-0.3.0/Houston/static/Houston/js/line-chart.js
;(function() { function wrap(d3, $) { function LineChart(svg) { var self = this; self._svg = svg; self._lines = {}; self._xDomain = null; } LineChart.prototype = { addLine: function(name, data) { var self = this; self._lines[name] = data; return self;...
PypiClean
/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl/bpy-2.91a0.data/scripts/2.91/scripts/addons/archimesh/achm_gltools.py
# <pep8 compliant> # ---------------------------------------------------------- # support routines for OpenGL # Author: Antonio Vazquez (antonioya) # # ---------------------------------------------------------- # noinspection PyUnresolvedReferences import bpy # noinspection PyUnresolvedReferences import blf from math...
PypiClean
/itk_numerics-5.4rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/itk/itkRenyiEntropyThresholdCalculatorPython.py
import collections from sys import version_info as _version_info if _version_info < (3, 7, 0): raise RuntimeError("Python 3.7 or later required") from . import _ITKCommonPython from . import _ITKThresholdingPython from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, ...
PypiClean
/yarc-server-0.1.1.tar.gz/yarc-server-0.1.1/README.md
# yarc ## Yet Another Remote Control Control your desktop / laptop via mobile phone. ### How to: Running control server and connecting to it is very straightforward. You would need to do the following: ``` $ [sudo] pip install yarc-server $ yarc Starting control server... Remote server running... Scan the below...
PypiClean
/cwaf-cli-2.2.24.tar.gz/cwaf-cli-2.2.24/cwafcli/CASv1/build/lib/swagger_client/rest.py
from __future__ import absolute_import import io import json import logging import re import ssl import certifi # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode try: import urllib3 except ImportError: raise ImportError('Swagger python client requires urlli...
PypiClean
/xircuits-1.8.3.tar.gz/xircuits-1.8.3/xai_components/xai_spark/readme.md
# XAI-Spark Components Currently XAI Spark components are tested and working on - Windows 10 Spark 3.1.2 and Hadoop 3.2 - Centos 8 [Vector Engine] Spark 3.1.1 and Hadoop 3.3 - WSL Ubuntu 20.04 Spark 3.3.2 ## Installation on Windows Refer to this documentation for installation: https://sparkbyexamples.com/spark/apac...
PypiClean
/archive-repo-0.0.2.tar.gz/archive-repo-0.0.2/README.md
# archive-repo Captures and stores data about a GitHub repo for archival purposes # Archive command usage: python3 -m archive-repo archive [-h] [--reference [REFFILE]] [--issues-only] [--quiet] repo githubToken [outFile] Archive repo issues and PRs. positional arguments: - `repo`: The GitHub repository to fetch, e...
PypiClean
/cinemagoer-2023.5.1-py3-none-any.whl/imdb/parser/sql/alchemyadapter.py
from __future__ import absolute_import, division, print_function, unicode_literals import re import sys import logging from sqlalchemy import * from sqlalchemy import schema try: from sqlalchemy import exc # 0.5 except ImportError: from sqlalchemy import exceptions as exc # 0.4 from imdb._exceptions import ...
PypiClean
/openpeerpower_frontend-20210523.2-py3-none-any.whl/opp_frontend/frontend_latest/chunk.180b1caf0a97eecb5035.js
(self.webpackChunkopenpeerpower_frontend=self.webpackChunkopenpeerpower_frontend||[]).push([[9623],{5435:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});const i=[60,60,24,7],n=["second","minute","hour","day"];function o(e,t,r={}){let o=((r.compareTime||new Date).getTime()-e.getTime())/1e3;const s=o>=0?"past":"future";o=Math.ab...
PypiClean
/custom_obj_detector-1.tar.gz/custom_obj_detector-1/adversarial_text/data/data_utils.py
"""Utilities for generating/preprocessing data for adversarial text models.""" import operator import os import random import re # Dependency imports import tensorflow as tf EOS_TOKEN = '</s>' # Data filenames # Sequence Autoencoder ALL_SA = 'all_sa.tfrecords' TRAIN_SA = 'train_sa.tfrecords' TEST_SA = 'test_sa.tfr...
PypiClean
/v2/model/action_tag.py
import pprint import re import six class ActionTag: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definitio...
PypiClean
/core_utils-0.2.3-py3-none-any.whl/core/utils/classes/collection/collection.py
from __future__ import annotations from abc import ABC, abstractmethod from typing import Any, Generator, Iterable, TYPE_CHECKING # ┌───────────────────────────────────────────────────────────────────────────────────── # │ PROJECT IMPORTS # └───────────────────────────────────────────────────────────────────────────...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/migrations/0002_add_keys_to_textversion.py
from south.db import db from django.db import models from cm.models import * from cm.models_base import generate_key, KEY_MAX_SIZE class Migration: def forwards(self, orm): # Adding field 'TextVersion.adminkey' db.add_column('cm_textversion', 'adminkey', models.CharField(max_length=KEY...
PypiClean
/js.ace-1.4.11.tar.gz/js.ace-1.4.11/js/ace/resources/mode-snippets.js
ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,s=e("../../range").Range,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.getFoldWidgetRange=function(e,t,...
PypiClean
/python_camunda_sdk-1.0.1.tar.gz/python_camunda_sdk-1.0.1/python_camunda_sdk/runtime/config.py
import os from typing import Optional from pydantic import BaseModel, Field from loguru import logger class ConnectionConfig(BaseModel): """Base class for connection configuration.""" pass class CloudConfig(ConnectionConfig): """Configuration for connection to Camunda SaaS. Attributes: c...
PypiClean
/fauna_api-0.0.3.tar.gz/fauna_api-0.0.3/fauna_api/odm.py
from __future__ import annotations import asyncio from typing import * from pydantic import Field # pylint: disable=no-name-in-module from .client import FaunaClient from .json import * from .lib import query as q from .streams import Subscription from .utils import gen_emptystr, handle_errors, setup_logging T = T...
PypiClean
/paddlepaddle_gpu-2.5.1-cp38-cp38-win_amd64.whl/paddle/static/nn/sequence_lod.py
import paddle from paddle.fluid.core import VarDesc from paddle.fluid.data_feeder import check_type, check_variable_and_dtype from paddle.fluid.framework import Variable, in_dygraph_mode from paddle.fluid.layer_helper import LayerHelper from paddle.fluid.layers.layer_function_generator import templatedoc __all__ = []...
PypiClean
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/binary_sensor/ads.py
import asyncio import logging import voluptuous as vol from homeassistant.components.ads import CONF_ADS_VAR, DATA_ADS from homeassistant.components.binary_sensor import ( DEVICE_CLASSES_SCHEMA, PLATFORM_SCHEMA, BinarySensorDevice) from homeassistant.const import CONF_DEVICE_CLASS, CONF_NAME import homeassistant....
PypiClean
/pypath_omnipath-0.15.4-py3-none-any.whl/pypath/inputs/pepcyber.py
# # This file is part of the `pypath` python module # # Copyright # 2014-2022 # EMBL, EMBL-EBI, Uniklinik RWTH Aachen, Heidelberg University # # Authors: Dénes Türei (turei.denes@gmail.com) # Nicolàs Palacio # Sebastian Lobentanzer # Erva Ulusoy # Olga Ivanova # A...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/apimanagement/workspace.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['WorkspaceArgs', 'Workspace'] @pulumi.input_type class WorkspaceArgs: def __init__(__self__, *, display_name: pulumi.Input[str...
PypiClean
/idem_aws-4.0.1-py3-none-any.whl/idem_aws/exec/aws/rds/db_proxy_endpoint.py
from dataclasses import field from dataclasses import make_dataclass from typing import Any from typing import Dict from typing import List __contracts__ = ["soft_fail"] __func_alias__ = {"list_": "list"} create_waiter_acceptors = [ { "matcher": "pathAll", "expected": "available", "state"...
PypiClean
/fireplace2-1.0.2-py3-none-any.whl/fireplace/cards/initiate/demon_hunter.py
from ..utils import * ## # Minions class BT_407: """Ur'zul Horror""" deathrattle = Give(CONTROLLER, "BT_407t") class BT_351: """Battlefiend""" events = Attack(FRIENDLY_HERO).after(Buff(SELF, "BT_351e")) BT_351e = buff(atk=1) class BT_355: """Wrathscale Naga""" events = Death(FRIENDLY + MINION).on(Hit(RAN...
PypiClean
/jp_arrow-0.1.1.tar.gz/jp_arrow-0.1.1/README.md
# jp_arrow. Conver date/datetime from/to Japanese date/datetime. This module highly depend on "[arrow](https://pypi.org/project/arrow/)". - ISO date/datetime from/to Japanse date/datetime. - 100% compatible for "arrow" except japanses date. - builtins format for japanese date. ## Install `pip install jp_arrow` ...
PypiClean
/elk-waveform-0.13.tar.gz/elk-waveform-0.13/elk/catalogue.py
import glob import numpy as np import pandas as pd import h5py import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt from lalsimulation import SimInspiralNRWaveformGetSpinsFromHDF5File as get_spin from . import config from .exceptions import FileTypeError, LalsuiteError from .waveform import NRWavefo...
PypiClean
/azure-mgmt-databoxedge-2.0.0b1.zip/azure-mgmt-databoxedge-2.0.0b1/azure/mgmt/databoxedge/v2020_12_01/operations/_storage_accounts_operations.py
import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from...
PypiClean
/aresponses-2.1.5.tar.gz/aresponses-2.1.5/README.md
# aresponses [![image](https://img.shields.io/pypi/v/aresponses.svg)](https://pypi.org/project/aresponses/) [![image](https://img.shields.io/pypi/pyversions/aresponses.svg)](https://pypi.org/project/aresponses/) [![build status](https://github.com/CircleUp/aresponses/workflows/Python%20Checks/badge.svg)](https://git...
PypiClean
/salt-ssh-9000.tar.gz/salt-ssh-9000/salt/modules/xbpspkg.py
import glob import logging import os import re import salt.utils.data import salt.utils.decorators as decorators import salt.utils.files import salt.utils.path import salt.utils.pkg import salt.utils.stringutils from salt.exceptions import CommandExecutionError, MinionError log = logging.getLogger(__name__) # Defin...
PypiClean
/brian2tools-0.3.tar.gz/brian2tools-0.3/docs_sphinx/reference/brian2.devices.rst
devices package =============== .. automodule:: brian2.devices :show-inheritance: :mod:`device` module -------------------- .. automodule:: brian2.devices.device :show-inheritance: **Classes** .. autosummary:: CurrentDeviceProxy :toctree: .. autosummary:: Device :toctree: .. autosummary:: Dummy ...
PypiClean
/errbot-feiyang-5.2.0.tar.gz/errbot-feiyang-5.2.0/errbot/botplugin.py
import logging import shlex from threading import Timer, current_thread from types import ModuleType from typing import Tuple, Callable, Mapping, Sequence from io import IOBase import re from .storage import StoreMixin, StoreNotOpenError from errbot.backends.base import Message, Presence, Stream, Room, Identifier, ONL...
PypiClean
/imbalanced_learn-0.11.0-py3-none-any.whl/imblearn/over_sampling/_smote/filter.py
"""SMOTE variant applying some filtering before the generation process.""" # Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # Fernando Nogueira # Christos Aridas # Dzianis Dudnik # License: MIT import numbers import warnings import numpy as np from scipy import sparse from sklearn.b...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/migrate/v20220501preview/get_migrate_agent.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs __all__ = [ 'GetMigrateAgentResult', 'AwaitableGetMigrateAgentResult', 'get_migrate_agent', 'get_migrate_agent_output', ...
PypiClean
/github.py-0.5.0-py3-none-any.whl/github/abc/comment.py
import datetime import typing from github import utils from github.enums import CommentAuthorAssociation class Comment(): """ Represents a GitHub comment. https://developer.github.com/v4/interface/comment/ Implemented by: * :class:`~github.CommitComment` * :class:`~github.Issue` * :cla...
PypiClean
/cosmicray-rocketchat-0.0.3.tar.gz/cosmicray-rocketchat-0.0.3/rocketchat/cli.py
import click import cosmicray import rocketchat from cosmicray import pprint USER_FORMAT = '{0.username}' CHANNEL_FORMAT = '{0.name}' MESSAGE_FORMAT = '{0.ts}|{0.u[username]}: {0.msg}' INFO_FORMAT = ('Server API Version: {0[info][version]}\n' 'Client API Version: {1}') def status_color(user_status):...
PypiClean