id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/liang-nan/旭旭《全新情感会员课程》:方健-魅力男人心态全方位提升:二:怎样的心态让你的聊天得心应手(聊天案例讲解)(上).md | # 旭旭《全新情感会员课程》:方健-魅力男人心态全方位提升:二:怎样的心态让你的聊天得心应手(聊天案例讲解)(上)
我都不想了,喂,Hello,我的兄弟们,可以听到吗,喂,可以听到吗,好久不见啊,听到就行,好久不见啊,我很久都没有来上会员课了,这两天就是公司在做那个培训吗,有那个演技的培训,变论的培训,就各种培训。
所以前几周就没有来上课,兄弟们有多少高了,到我的口个一呢,到我的口个一,我看有多少人啊,就一个吗?两个,家庭你们还没有到我们等一下,刚好调整一下,今天我们讲一个聊天的案例啊,你不认识我?你新会员是吗?。
上一次见个直播的时候你没来啊,新会员吗?,之前给你们讲干货,很多人说想看案例是吗?,所以今天就来讲案例,我不用自... | PypiClean |
/isotoma.recipe.zope2install-0.0.zip/isotoma.recipe.zope2install-0.0/isotoma/recipe/zope2install/__init__.py | import os
import re
import shutil
import sys
import tempfile
import urlparse
import setuptools.archive_util
from zc.buildout.download import Download
EGG_INFO_CONTENT = """Metadata-Version: 1.0
Name: %s
Version: %s
"""
DEFAULT_FAKE_EGGS = [
'Acquisition',
'ClientForm',
'DateTime',
'docutils',
'Ex... | PypiClean |
/SakuraIO-0.1.7.tar.gz/SakuraIO-0.1.7/sakuraio/hardware/commands/common.py | import struct
import datetime
# Common
CMD_GET_CONNECTION_STATUS = 0x01
CMD_GET_SIGNAL_QUALITY = 0x02
CMD_GET_DATETIME = 0x03
CMD_ECHO_BACK = 0x0f
CONNECTION_ERROR_NONE = 0x00
CONNECTION_ERROR_OUT_OF_SERVICE = 0x01
CONNECTION_ERROR_CONNECTION = 0x02
CONNECTION_ERROR_DISCONNECTED = 0x03
class CommonMixins(object):
... | PypiClean |
/pulumi_proxmoxve-5.11.0.tar.gz/pulumi_proxmoxve-5.11.0/pulumi_proxmoxve/provider.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from ._inputs import *
__all__ = ['ProviderArgs', 'Provider']
@pulumi.input_type
class ProviderArgs:
def __init__(__self__, *,
api_token: ... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/enquirer/lib/prompts/toggle.js | 'use strict';
const BooleanPrompt = require('../types/boolean');
class TogglePrompt extends BooleanPrompt {
async initialize() {
await super.initialize();
this.value = this.initial = !!this.options.initial;
this.disabled = this.options.disabled || 'no';
this.enabled = this.options.enabled || 'yes';
... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/MybankCreditSceneprodVidGetRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankCreditSceneprodVidGetModel import MybankCreditSceneprodVidGetModel
class MybankCreditSceneprodVidGetRequest(object):
def __init__(self, biz_model=None):
self._... | PypiClean |
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/core/engines/exception.py | class ConnectionError(Exception):
def __str__(self) -> str:
return "ERROR 404: STT Connection Error"
class TranscriptionError(Exception):
def __init__(self, error: str = None) -> None:
super().__init__(error)
self.error = error
def __str__(self) -> str:
return f"ERROR 500:... | PypiClean |
/pyasn1_modules-0.3.0rc1.tar.gz/pyasn1_modules-0.3.0rc1/pyasn1_modules/rfc8696.py |
from pyasn1.type import constraint
from pyasn1.type import namedtype
from pyasn1.type import namedval
from pyasn1.type import tag
from pyasn1.type import univ
from pyasn1_modules import rfc5652
MAX = float('inf')
id_ori = univ.ObjectIdentifier('1.2.840.113549.1.9.16.13')
id_ori_keyTransPSK = univ.ObjectIdentifier... | PypiClean |
/weasel_cli-1.0.4-py3-none-any.whl/weasel.py | import random
import string
import click
VALID_CHARSET = string.ascii_uppercase + ' '
def validate_target(ctx, param, value):
if set(value).union(VALID_CHARSET) != set(VALID_CHARSET):
raise click.BadParameter('Target string must only contain spaces and uppercase ASCII characters.')
return value
@... | PypiClean |
/neuradao-contracts-1.0.5.tar.gz/neuradao-contracts-1.0.5/README.md | [](https://oceanprotocol.com)
<h1 align="center">contracts-v4</h1>
> 🦑 Smart contracts for Ocean Protocol v4. https://oceanprotocol.com
Ocean v4 is part of the [Ocean Protocol](https://oceanprotocol.com) toolset.
This i... | PypiClean |
/cookie_composer-0.11.0-py3-none-any.whl/cookie_composer/authentication.py | import json
from pathlib import Path
from typing import Optional
def get_hosts_file() -> Path:
"""Return the path to the hosts file."""
config_dir = Path("~/.config/cookiecomposer").expanduser().resolve()
config_dir.mkdir(mode=0o755, parents=True, exist_ok=True)
return config_dir / "hosts.json"
def ... | PypiClean |
/pyoats-0.1.2-py3-none-any.whl/oats/scorer/qualitative_metrics.py | import numpy as np
import scipy.signal as signal
from oats.scorer._base import Scorer
class QualitativeMetrics(Scorer):
"""Unsupervised qualitative metrics used to access the quality of the anomaly detection algorithm"""
def __init__(self, window=10):
"""
Args:
window (int, optio... | PypiClean |
/contextual-encoders-0.1.1.tar.gz/contextual-encoders-0.1.1/README.md | # Contextual Encoders
[](https://github.com/psf/black)
[](https://opensource.org/licenses/Apache-2.0)

[!... | PypiClean |
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/static/codenerix/lib/angular/i18n/angular-locale_to-to.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/opentsdb_py-0.6.0-py3-none-any.whl/opentsdb/protocols/http_connect.py | import logging
import json
import gzip
from typing import Optional
from requests import Session
from opentsdb.protocols.tsdb_connect import TSDBConnect
from opentsdb.exceptions import TSDBNotAlive
logger = logging.getLogger('opentsdb-py')
class TSDBUrls:
VERSION_ENDPOINT = '/api/version'
PUT_ENDPOINT = '/a... | PypiClean |
/odoo14_addon_pos_session_pay_invoice-14.0.1.1.0-py3-none-any.whl/odoo/addons/pos_session_pay_invoice/wizard/pos_box_cash_invoice_in.py |
from odoo import api, fields, models
from odoo.fields import first
from odoo.tools import float_is_zero
class CashInvoiceIn(models.TransientModel):
_name = "pos.box.cash.invoice.in"
_description = "pos box cash invoice in"
session_id = fields.Many2one("pos.session", required=True)
amount = fields.Fl... | PypiClean |
/sas-frontend-20211225.2.tar.gz/sas-frontend-20211225.2/sas_frontend/frontend_es5/17a592e7.js | "use strict";(self.webpackChunksas_frontend=self.webpackChunksas_frontend||[]).push([[10],{25516:function(e,t,r){r.d(t,{i:function(){return n}});var n=function(e){return function(t){return{kind:"method",placement:"prototype",key:t.key,descriptor:{set:function(e){this["__".concat(String(t.key))]=e},get:function(){return... | PypiClean |
/hmd_lib_transform-0.1.48-py3-none-any.whl/hmd_lib_transform/hmd_lib_transform.py | import os
from json import loads
from pathlib import Path
from typing import List
from urllib.parse import urljoin
from hmd_graphql_client.hmd_rest_client import RestClient
from requests import request
class HmdLibTransform:
def __init__(self, base_url: str, api_key: str = None, auth_token: str = None):
s... | PypiClean |
/fondat-core-3.0.18.tar.gz/fondat-core-3.0.18/fondat/monitoring.py | import collections
import fondat.validation
import logging
import re
import time
from collections.abc import Iterable
from dataclasses import dataclass
from datetime import datetime, timezone
from typing import Any, Literal, Optional, Union
_logger = logging.getLogger(__name__)
_now = lambda: datetime.now(tz=timez... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/services/services/ad_service/transports/grpc.py | import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple
from google.api_core import grpc_helpers
from google.api_core import gapic_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # ty... | PypiClean |
/osu-wiki-tools-1.1.4.tar.gz/osu-wiki-tools-1.1.4/wikitools/identifier_parser.py | import typing
from wikitools import link_parser
ID_PREFIXES = {'#', 'id='}
ESCAPEABLE_CHARS = { '\\', '(' , ')', '[', ']', '{', '}', '<', '>', '#', '*', '~', '`', '_', '-', '+', '|', '\'', '"', '@', '$', ';', ':', ',', '.' }
# backslashes are sometimes used (perhaps unnecessarily) to avoid remark errors
def unescap... | PypiClean |
/odyssey_momentum-0.0.1a2-py3-none-any.whl/odyssey_momentum/momentum_api_client/api/objects/get_api_v4_objects_object_id_options.py | from http import HTTPStatus
from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import Client
from ...models.api_http_error import ApiHTTPError
from ...models.dto_object_options import DtoObjectOptions
from ...types import UNSET, Response, Unset
def _get_kwargs(
obje... | PypiClean |
/certtool-0.2.0.tar.gz/certtool-0.2.0/README.md | # Certificate tool
The `certtool` package provides the `cert` command for quickly checking TLS certificates on one or more hosts.
## Examples
Quickly check the https certificate of one or more domains
```shell-session
$ cert example.com
example.com Ok, 127 days remaining
$ cert example.com example.org example.nl... | PypiClean |
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/tools/import_pb_to_tensorboard.py | """Imports a protobuf model as a graph in Tensorboard."""
import argparse
import sys
from absl import app
from tensorflow.python.client import session
from tensorflow.python.framework import importer
from tensorflow.python.framework import ops
from tensorflow.python.summary import summary
from tensorflow.python.tool... | PypiClean |
/magen_user-0.1a0-py3-none-any.whl/magen_user_api/user_api.py | import datetime
import hashlib
from http import HTTPStatus
import flask
import itsdangerous
from flask_login import login_required, login_user, current_user, logout_user
from flask_wtf import FlaskForm
from magen_gmail_client_api import gmail_client
from wtforms import StringField, PasswordField
from wtforms.validator... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/android_work_profile_certificate_profile_base.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 android_work_profile_pkcs_certificate_profile, android_work_profile_scep_certificate_... | PypiClean |
/PyEnzymeKinetics-1.1.10.tar.gz/PyEnzymeKinetics-1.1.10/README.md | # PyEnzymeKinetics
Software-package for easy enzyme kinetic parameter estimation.
Supports EnzymeML format (not yet)
Allows comprehensive data analysis from experimental raw data to kinetic parameters
## Calibration
- linear and non-linear calibration for calculating concentrations from analytic signal (spectroscopy... | PypiClean |
/open_spiel_custom-2.0.1.tar.gz/open_spiel_custom-2.0.1/open_spiel/python/algorithms/adidas_utils/helpers/symmetric/exploitability.py | from absl import logging # pylint:disable=unused-import
import numpy as np
from scipy import special
from open_spiel.python.algorithms.adidas_utils.helpers import misc
def unreg_exploitability(dist, payoff_tensor):
"""Compute exploitability of dist for symmetric game.
Args:
dist: 1-d np.array, current est... | PypiClean |
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v1/model/azure_account.py | from __future__ import annotations
from typing import List, Union
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)
class AzureAccount(ModelNormal):
@cached_property
def openapi_types(_):
return {
"app_service_plan_filters": (s... | PypiClean |
/ipylab-1.0.0.tar.gz/ipylab-1.0.0/examples/ipytree.ipynb | # Example: Building a File Browser with ipytree
In this example, we demonstrate how to create an alternative file browser UI using the `ipytree` widget.
## Collecting the files
First let's define some imports.
```
%pip install -q ipylab
import os
from fnmatch import fnmatch
from pathlib import PurePath
```
Since... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/setup_templates/static/default/media/js/tinymce/plugins/autosave/editor_plugin_src.js | (function(tinymce) {
// Setup constants to help the compressor to reduce script size
var PLUGIN_NAME = 'autosave',
RESTORE_DRAFT = 'restoredraft',
TRUE = true,
undefined,
unloadHandlerAdded,
Dispatcher = tinymce.util.Dispatcher;
/**
* This plugin adds auto-save capability to the TinyMCE text editor to r... | PypiClean |
/target-typo-0.1.0.tar.gz/target-typo-0.1.0/README.md | # target-typo
[Singer](https://singer.io) target to load data to [Typo](https://www.typo.ai/).
## Install
Requires Python 3
```bash
pip install target-typo
```
## Use
target-typo takes two types of input:
1. A stream of Singer-formatted data on stdin
2. A config file containing:
1. api_key - API Key created in... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_10/models/keytab_file_base64.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_10 import models
class KeytabFileBase64(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value ... | PypiClean |
/Time2Pull-1.0.2.1.tar.gz/Time2Pull-1.0.2.1/time2pull/window.py | import functools
import os
from PyQt5 import QtWidgets, QtGui, QtCore, QtMultimedia
import sys
from time2pull import __version__
from time2pull.constants import RemoteStatus, TrayIconType
from time2pull.icons import get_status_icon, get_tray_icon
from time2pull.forms.main_window_ui import Ui_MainWindow
from time2pull.s... | PypiClean |
/snimar_pycsw-2.1.2.tar.gz/snimar_pycsw-2.1.2/pycsw/ogc/csw/csw2.py |
import os
import sys
import cgi
from six.moves.urllib.parse import quote, unquote
from six import StringIO
from six.moves.configparser import SafeConfigParser
from pycsw.core.etree import etree
from pycsw import oaipmh, opensearch, sru
from pycsw.ogc.csw.cql import cql2fes1
from pycsw.plugins.profiles import profile a... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/app/v20230501/get_managed_environments_storage.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__ = [
'GetManagedEnvironmentsStorageResult',
'AwaitableGetManagedEnvironmentsStorageResult',
'get_managed_environments... | PypiClean |
/goodconf-3.0.0.tar.gz/goodconf-3.0.0/README.rst | Goodconf
========
.. image:: https://github.com/lincolnloop/goodconf/actions/workflows/test.yml/badge.svg?branch=main&event=push
:target: https://github.com/lincolnloop/goodconf/actions/workflows/test.yml?query=branch%3Amain+event%3Apush
.. image:: https://results.pre-commit.ci/badge/github/lincolnloop/goodconf/m... | PypiClean |
/apache-superset-11680-1000-1.3.1.tar.gz/apache-superset-11680-1000-1.3.1/superset/migrations/versions/e866bd2d4976_smaller_grid.py | import json
import sqlalchemy as sa
from alembic import op
from flask_appbuilder.models.mixins import AuditMixin
from sqlalchemy.ext.declarative import declarative_base
from superset import db
revision = "e866bd2d4976"
down_revision = "21e88bc06c02"
Base = declarative_base()
RATIO = 4
class Dashboard(Base):
"... | PypiClean |
/crypto_candlesticks-0.2.1-py3-none-any.whl/crypto_candlesticks/get_data.py |
# Copyright (C) 2021 Pedro Torres
# 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 is distributed... | PypiClean |
/bee-django-referral-0.1.24.tar.gz/bee-django-referral-0.1.24/bee_django_referral/migrations/0001_initial.py | from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | PypiClean |
/ocms_16S-0.0.2.tar.gz/ocms_16S-0.0.2/ocms16S/pipeline_dada2.py | from ruffus import *
import cgatcore.experiment as E
import cgatcore.pipeline as P
import shutil
import logging as L
import os
import sys
import glob
import re
import ocms16S.PipelineDada2 as PipelineDada2
###################################################
###################################################
#########... | PypiClean |
/ooouno-2.1.2-py3-none-any.whl/ooo/dyn/rendering/color_space_type.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 |
/megastep-0.2.4.tar.gz/megastep-0.2.4/rebar/stats/categories.py | import numpy as np
import time
import torch
import matplotlib.pyplot as plt
import pandas as pd
import logging
log = logging.getLogger(__name__)
CATEGORIES = {}
def category(M):
CATEGORIES[M.__name__.lower()] = M
return M
@category
def last(x):
def resample(**kwargs):
return x.resample(**kwargs).... | PypiClean |
/django-jet-nwmqpa-1.0.8.tar.gz/django-jet-nwmqpa-1.0.8/jet/static/jet/js/src/features/changelist.js | var $ = require('jquery');
var ChangeList = function($changelist) {
this.$changelist = $changelist;
};
ChangeList.prototype = {
updateFixedHeaderVisibility: function($fixedTable, $originalHeader) {
var show = $(window).scrollTop() > $originalHeader.offset().top;
$fixedTable.closest('table').to... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/components/alexa/alexa_intents_view.py | import logging
import typing
from ... import core
from .alexa_intent import AlexaIntent
_alexa: typing.TypeAlias = core.Alexa
_intent: typing.TypeAlias = core.Intent
_const: typing.TypeAlias = core.Const
_LOGGER: typing.Final = logging.getLogger(__name__)
_HANDLERS: typing.Final[
core.Registry[
str,
... | PypiClean |
/tap-yotpo-2.0.1.tar.gz/tap-yotpo-2.0.1/tap_yotpo/client.py | from typing import Any, Dict, Mapping, Optional, Tuple
import backoff
import requests
from requests import session
from singer import get_logger, metrics
from . import exceptions as errors
from .helpers import ApiSpec
LOGGER = get_logger()
def raise_for_error(response: requests.Response) -> None:
"""Raises the... | PypiClean |
/textual_datepicker-0.2.4.tar.gz/textual_datepicker-0.2.4/textual_datepicker/_date_select.py | from __future__ import annotations
import pendulum
from textual.app import ComposeResult
from textual.widget import Widget, events
from textual.containers import Vertical
from textual.reactive import reactive
from textual.css.query import NoMatches
# from textual import log
from . import DatePicker
class DatePick... | PypiClean |
/django-lock-tokens-0.2.5.tar.gz/django-lock-tokens-0.2.5/lock_tokens/admin.py | from django.contrib import admin, messages
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import PermissionDenied
from django.db.models import Count
from lock_tokens.exceptions import AlreadyLockedError
from lock_tokens.sessions import (
check_for_session,
get_session_ke... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/teamwork/devices/item/teamwork_device_item_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/future-nodefix-0.17.0.tar.gz/future-nodefix-0.17.0/src/future/backports/email/errors.py |
"""email package exception classes."""
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from future.builtins import super
class MessageError(Exception):
"""Base class for errors in the email package."""
class MessageParseError(MessageError):
"""... | PypiClean |
/django-ftp-deploy-2.0.0.tar.gz/django-ftp-deploy-2.0.0/ftp_deploy/server/views/notification.py | from django.views.generic import ListView, UpdateView, DeleteView, CreateView
from django.core.urlresolvers import reverse_lazy
from django.contrib import messages
from braces.views import LoginRequiredMixin
from ftp_deploy.models import Notification
from ftp_deploy.server.forms import NotificationForm
class Notifi... | PypiClean |
/xialib_pubsub-0.1.1-py3-none-any.whl/xialib_pubsub/pubsub_subscriber.py | import os
import json
import datetime
import asyncio
from functools import partial
from google.cloud import pubsub_v1
from xialib.subscriber import Subscriber
from typing import Callable
class PubsubSubscriber(Subscriber):
"""Google Pubsub based subscriber
"""
def __init__(self, sub: pubsub_v1.Subscriber... | PypiClean |
/test_platform_helper-0.0.5.tar.gz/test_platform_helper-0.0.5/test_platform_helper/http3_helper/aioquic.py | import asyncio
import os
import pickle
import ssl
import time
import wsproto
import wsproto.events
import aioquic
import ujson as json
from collections import deque
from typing import Callable, Deque, Dict, List, Optional, Tuple, Union, cast
from urllib.parse import urlparse
from aioquic.asyncio.client import connect
... | PypiClean |
/js.yui-2.8.2-1.tar.gz/js.yui-2.8.2-1/js/yui/resources/profiler/profiler-debug.js | YAHOO.namespace("tool");
/**
* The YUI JavaScript profiler.
* @module profiler
* @namespace YAHOO.tool
* @requires yahoo
*/
/**
* Profiles functions in JavaScript.
* @namespace YAHOO.tool
* @class Profiler
* @static
*/
YAHOO.tool.Profiler = function(){
//-----------------------------------------------... | PypiClean |
/cmake_setup-0.1.1.tar.gz/cmake_setup-0.1.1/cmake_setup/cmake/__init__.py | import os
import subprocess
import shutil
import sys
from setuptools import Extension
from setuptools.command.build_ext import build_ext
CMAKE_EXE = os.environ.get('CMAKE_EXE', os.popen("which cmake").read().strip("\n"))
def check_for_cmake():
if not CMAKE_EXE:
print('cmake executable not found. '
... | PypiClean |
/wav_autoencoder-0.0.2-py3-none-any.whl/wav_autoencoder/utils.py | import torch
def compute_mask_indices(
input_feature: torch.Tensor, # (B, T, C)
mask_prob: float,
mask_length: int,
min_masks: int = 0,
) -> torch.Tensor:
batch_size, sequence_length, _ = input_feature.shape
# input_feature = input_feature.view(batch_size, sequence_length)
# compute how ... | PypiClean |
/relaxed_poetry_core-0.4.1-py3-none-any.whl/poetry/core/pyproject/project.py | from contextlib import contextmanager
from io import UnsupportedOperation
from pathlib import Path
from typing import Optional, Dict, Any, Union, List, Sequence, Mapping, ContextManager
from poetry.core.pyproject.profiles import ProfilesActivationRequest, apply_profiles
from poetry.core.pyproject.properties import sub... | PypiClean |
/flask_session_plus-0.6.2-py3-none-any.whl/test/models.py | import logging
from flask_login import UserMixin
from google.cloud import firestore
db = firestore.Client()
from google.cloud.exceptions import NotFound
from werkzeug.security import check_password_hash, generate_password_hash
log = logging.getLogger(__name__)
class User(UserMixin):
def __init__(self, user_id... | PypiClean |
/WES_Calculation-6.0.4-py3-none-any.whl/WES_Calculation/preprocess/pre_windspeed.py | from execdata import convint as s2int, convfloat as s2dec
from ..windspeed import windspeed
# def windspeed_calculation():
def pre_windspeed(original_input):
"""
function name:Waterfront Engineering Studio Windspeed
input function:wes.windspeed(o2, input_zw, input_Xlat, input_X, input_Rg, input_bet... | PypiClean |
/spatialmath-python-1.1.8.tar.gz/spatialmath-python-1.1.8/spatialmath/pose3d.py | from __future__ import annotations
# pylint: disable=invalid-name
import numpy as np
import spatialmath.base as smb
from spatialmath.base.types import *
from spatialmath.baseposematrix import BasePoseMatrix
from spatialmath.pose2d import SE2
from spatialmath.twist import Twist3
# ============================== SO... | PypiClean |
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/importing/corepos/db.py | import decimal
from collections import OrderedDict
from corepos.db.office_op import model as corepos, Session as CoreSession
from rattail import importing
from rattail.gpc import GPC
from rattail_corepos import importing as corepos_importing
class FromCOREPOSToRattail(importing.FromSQLAlchemyHandler, importing.ToRa... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v12/services/services/asset_group_listing_group_filter_service/transports/base.py | import abc
from typing import Awaitable, Callable, Optional, Sequence, Union
import pkg_resources
import google.auth # type: ignore
import google.api_core # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core... | PypiClean |
/odoo12_addon_crm_lead_product-12.0.1.0.1-py3-none-any.whl/odoo/addons/crm_lead_product/readme/DESCRIPTION.rst |
This module allows the user to link multiple products, product categories or product templates to a lead or an opportunity
in order to be able to do a product demand forecasting taking into account the leads and opportunities defined in odoo.
Included in the product line there are two computed fields, the planned reve... | PypiClean |
/django-eldarion-ajax-0.1.tar.gz/django-eldarion-ajax-0.1/eldarion/ajax/views.py | from django.core.serializers.json import DjangoJSONEncoder
from django.http import JsonResponse
from django.template import RequestContext
from django.template.loader import render_to_string
from django.views.generic.edit import BaseCreateView, BaseUpdateView, BaseFormView
class EldarionAjaxResponseMixin(object):
... | PypiClean |
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/io_export_dxf/primitive_exporters/insert_exporter.py | from .base_exporter import BasePrimitiveDXFExporter
class InsertDXFExporter(BasePrimitiveDXFExporter):
pass
#-----------------------------------------------------
def exportInsert(ob, mx, insert_name, **common):
"""converts Object to DXF-INSERT in given orientation
"""
WCS_loc = ob.loc # WCS_loc is o... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/body-parser/node_modules/ms/license.md | The MIT License (MIT)
Copyright (c) 2016 Zeit, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | PypiClean |
/la_forge-1.0.2.tar.gz/la_forge-1.0.2/la_forge/diagnostics.py |
import copy
import inspect
import string
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
import numpy as np
__all__ = ['plot_chains', 'noise_flower']
def plot_chains(core, hist=True, pars=None, exclude=None,
ncols=3, bins=40, suptitle=None, color='k',
publicat... | PypiClean |
/epiphyte-0.1.1-py3-none-any.whl/annotation/stimulus_driven_annotation/movies/processing_labels.py | import json
import numpy as np
import preprocessing.data_preprocessing.create_vectors_from_time_points as create_vectors_from_time_points
def make_label_from_start_stop_times(values, start_times, stop_times, ref_vec, default_value=0):
"""
This function takes a vector with tuples with start and stop times and... | PypiClean |
/azcam-arc-22.3.3.tar.gz/azcam-arc-22.3.3/azcam_arc/camera_server.py | import azcam
import azcam.sockets
class CameraServerInterface(object):
"""
The azcam controller server interface class for ARC controllers.
"""
def __init__(self, host: str = "", port: int = 0) -> bool:
self.host = ""
self.port = 0
self.socketserver = azcam.sockets.SocketInt... | PypiClean |
/hydratk-lib-network-0.2.2.tar.gz/hydratk-lib-network-0.2.2/src/hydratk/lib/network/ftp/tftp_client.py | """
Events:
-------
ftp_before_connect
ftp_after_connect
ftp_before_download_file
ftp_after_download_file
ftp_before_upload_file
ftp_after_upload_file
"""
from hydratk.core.masterhead import MasterHead
from hydratk.core import event
from tftpy import TftpShared, TftpClient
from os import path, remove
class FTPClien... | PypiClean |
/fake_bpy_module_2.90-20230117-py3-none-any.whl/bpy/ops/wm.py | import sys
import typing
import bpy.types
import bl_operators.wm
GenericType = typing.TypeVar("GenericType")
def alembic_export(
override_context: typing.Union[typing.
Dict, 'bpy.types.Context'] = None,
execution_context: typing.Union[str, int] = None,
u... | PypiClean |
/omp_wrapper-0.7.tar.gz/omp_wrapper-0.7/lib/pybind11/docs/changelog.rst | .. _changelog:
Changelog
#########
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
v2.1.1 (April 7, 2017)
-----------------------------------------------------
* Fixed minimum version requirement for MSVC 2015u3
`#773 <https://github.com/pybind/pybind11/pul... | PypiClean |
/ngram_extration-0.0.4.tar.gz/ngram_extration-0.0.4/ngram_extration/__init__.py | # 挖掘数据中的脏字符
# 利用高频n-gram挖掘藏字符
# 通过迭代将短n-gram融合到长n-gram,得到全长的脏字符串
import numpy as np
from tqdm import tqdm
from sklearn.feature_extraction.text import CountVectorizer
def merge(p_list, s_list, feature_fre_dict):
# 融合父特征和子特征
# 如果子特征词频高于父特征,子特征取代父特征,否则不取代;
'''
p_list: ['abcd', 'bcde']
s_list: ['abc', ... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/backup/vault_policy.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['VaultPolicyArgs', 'VaultPolicy']
@pulumi.input_type
class VaultPolicyArgs:
def __init__(__self__, *,
backup_vault_name: pulum... | PypiClean |
/robotframework-httpx-0.4.6.tar.gz/robotframework-httpx-0.4.6/LICENSE.md | Copyright (c) 2016 Bulkan Evcimen
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, s... | PypiClean |
/reservoirpy-fbessou-0.3.13.tar.gz/reservoirpy-fbessou-0.3.13/reservoirpy/hyper/_hyperplot.py | import json
import math
import os
from os import path
import numpy as np
def _get_results(exp):
report_path = path.join(exp, "results")
results = []
for file in os.listdir(report_path):
if path.isfile(path.join(report_path, file)):
with open(path.join(report_path, file), "r") as f:
... | PypiClean |
/tfreecord-1.0.0-py3-none-any.whl/tfreecord.py | import struct
import crc32c
import numpy as np
import tfrecords_pb2
kmask_delta = 0xA282EAD8
def mask_crc(crc):
return (((crc >> 15) | (crc << 17)) + kmask_delta) & 0xFFFFFFFF
class RecordReader:
def __init__(self):
self.example = tfrecords_pb2.Example()
def decode_example(self, buffer):
... | PypiClean |
/mimeograph-2.6.0-py3-none-any.whl/mimeo/generators/generator_utils.py | from __future__ import annotations
import datetime
import random
import re
import string
import uuid
from datetime import date, datetime, timedelta
from mimeo.config import MimeoConfig
from mimeo.database import Country, MimeoDB
from mimeo.generators.exc import (CountryNotFound, InvalidMimeoUtil,
... | PypiClean |
/pooled-ProcessMixIn-0.0.1.tar.gz/pooled-ProcessMixIn-0.0.1/pooledProcessMixin/__init__.py | import os
import time
import signal
import socket
from threading import Thread, currentThread
from multiprocessing import Process, Event, Semaphore, Value, cpu_count
__author__ = 'Muayyad Saleh Alsadi'
__version__ = '0.0.2'
__license__ = 'PSFL'
#######################################################################... | PypiClean |
/comparar_fundos_br-0.0.7-py3-none-any.whl/comparar_fundos_br/README.md | <!-- buttons -->
<p align="center">
<a href="https://www.python.org/">
<img src="https://img.shields.io/badge/python-v3-brightgreen.svg"
alt="python"></a>
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg"
... | PypiClean |
/pnap_bmc_api-1.5.0-py3-none-any.whl/pnap_bmc_api/api/quotas_api.py | import re # noqa: F401
import sys # noqa: F401
from pnap_bmc_api.api_client import ApiClient, Endpoint as _Endpoint
from pnap_bmc_api.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from pnap_bm... | PypiClean |
/nitrate-tcms-4.13.tar.gz/nitrate-tcms-4.13/src/tcms/settings/common.py |
import os.path
TCMS_ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
NITRATE_VERSION = "4.4"
DEBUG = True
# Administrators error report email settings
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
env = os.environ
DB_ENGINE = env.get("NITRATE_DB_ENG... | PypiClean |
/nextcordunaliased.py-2.0.0a2.tar.gz/nextcordunaliased.py-2.0.0a2/nextcord/ext/commands/cog.py | from __future__ import annotations
import inspect
import nextcord.utils
from typing import Any, Callable, ClassVar, Dict, Generator, List, Optional, TYPE_CHECKING, Tuple, TypeVar, Type
from ._types import _BaseCommand
if TYPE_CHECKING:
from .bot import BotBase
from .context import Context
from .core imp... | PypiClean |
/django-cms-fragments-0.0.5.tar.gz/django-cms-fragments-0.0.5/cms_fragments/static/acejs/mode-xml.js | define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml"],function(a,b,c){"use strict";var d=a("../lib/oop"),e=a("./text").Mode,f=a("../tokenizer").Tokenizer,g=a("./xml_highlight_rules").XmlHighlightR... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/passcriteria_a8665778af5aca38648df1c7f43b7f19.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 PassCriteria(Base):
"""NOT DEFINED
The PassCriteria class encapsulates a required passCriteria resource which will be retrieved from the serv... | PypiClean |
/django-s3direct-2.0.3.tar.gz/django-s3direct-2.0.3/s3direct/views.py | import json
from datetime import datetime
from django.conf import settings
from django.http import (HttpResponse, HttpResponseBadRequest,
HttpResponseForbidden, HttpResponseNotFound,
HttpResponseServerError)
from django.views.decorators.csrf import csrf_protect
from dja... | PypiClean |
/Tasty-1.3.tar.gz/Tasty-1.3/tasty/controllers.py | import cherrypy
import turbogears
from cherrypy.filters.basefilter import BaseFilter
from turbogears import controllers, database
from sqlobject.util.threadinglocal import local as threading_local
from restresource import RESTResource
from simplejson import dumps as jsonify
from tasty.model import *
from tasty.dimen... | PypiClean |
/python3-pika-0.9.14.tar.gz/python3-pika-0.9.14/pika/adapters/asyncore_connection.py | import asyncore
import logging
import time
from pika.adapters import base_connection
LOGGER = logging.getLogger(__name__)
class PikaDispatcher(asyncore.dispatcher):
# Use epoll's constants to keep life easy
READ = 0x0001
WRITE = 0x0004
ERROR = 0x0008
def __init__(self, sock=None, map=None, eve... | PypiClean |
/python-pyproc-1.0.0a0.tar.gz/python-pyproc-1.0.0a0/README.md | # pyproc
## Description
Turn a function into a process with a simple decorator.
This repo is highly inspired by [python-worker](https://github.com/Danangjoyoo/python-worker)
---
## Installation
```bash
pip install python-pyproc
```
---
## Guide
```python
from pyproc import process
@process
def func(x: int) -> int... | PypiClean |
/epubmaker-0.3.20.zip/epubmaker-0.3.20/src/mydocutils/gutenberg/writers/nroff.py | __docformat__ = 'reStructuredText'
from epubmaker.mydocutils.writers import nroff
from epubmaker import Unitame
from epubmaker.lib.Logger import info, debug, warn, error
GUTENBERG_NROFF_PREAMBLE = r""".\" -*- mode: nroff -*- coding: {encoding} -*-
.\" This file produces Project Gutenberg plain text. Usage:
.\" $ g... | PypiClean |
/spire.presentation-8.8.2-py3-none-win_amd64.whl/spire/presentation/ChartDataPoint.py | from enum import Enum
from plum import dispatch
from typing import TypeVar,Union,Generic,List,Tuple
from spire.presentation.common import *
from spire.presentation import *
from ctypes import *
class ChartDataPoint ( PptObject) :
@dispatch
def __init__(self):
GetDllLibPpt().ChartDataPoint_Creat.resty... | PypiClean |
/netconf-2.1.0.tar.gz/netconf-2.1.0/doc/source/develop.rst | ..
.. January 15 2018, Christian Hopps <chopps@gmail.com>
..
*****************
Development Usage
*****************
Netconf Client
==============
Sessions
--------
To open a session to server:
.. code-block:: python
from netconf.client import NetconfSSHSession
session = NetconfSSHSession(host, port, username,... | PypiClean |
/google-cloud-game-servers-1.8.3.tar.gz/google-cloud-game-servers-1.8.3/google/cloud/gaming_v1/services/game_server_deployments_service/async_client.py | from collections import OrderedDict
import functools
import re
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.ap... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayMarketingFacetofaceDecodeUseRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingFacetofaceDecodeUseModel import AlipayMarketingFacetofaceDecodeUseModel
class AlipayMarketingFacetofaceDecodeUseRequest(object):
def __init__(self, biz_model=... | PypiClean |
/azureml_acft_contrib_hf_nlp-0.0.25-py3-none-any.whl/azureml/acft/contrib/hf/nlp/tasks/nlp_multilabel/preprocess/preprocess_for_finetune.py | import copy
import json
from pathlib import Path
from argparse import Namespace
from typing import Dict, Any
from dataclasses import asdict
from .base import NLPMultilabelPreprocessArgs, NLPMultilabelDataset
from ....nlp_auto.config import AzuremlAutoConfig
from ....nlp_auto.tokenizer import AzuremlAutoTokenizer
fro... | PypiClean |
/gpilab-1.4.8-py3-none-any.whl/gpi/canvasGraph.py |
import gc
import os
import sys
import copy
import math
import time
import random
# gpi
import gpi
from gpi import QtCore, QtGui, QtWidgets
from .associate import Bindings, isGPIAssociatedFile, isGPIAssociatedExt
from .canvasScene import CanvasScene
from .cmd import Commands
from .defines import GPI_REQUEUE_EVENT, GP... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/servicebus/v20170401/get_topic_authorization_rule.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetTopicAuthorizationRuleResult',
'AwaitableGetTopicAuthorizationRuleResult',
'get_topic_authorization_rule',
]
@pulumi.output_type
class GetTopi... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/vm.d.ts | declare module 'vm' {
interface Context extends NodeJS.Dict<any> {}
interface BaseOptions {
/**
* Specifies the filename used in stack traces produced by this script.
* Default: `''`.
*/
filename?: string | undefined;
/**
* Specifies the line number of... | PypiClean |
/kraken-schema-org-0.0.29.tar.gz/kraken-schema-org-0.0.29/README.md | Library to schema_org
Provides functions to normalize @type, keys/attributes and values following schema.org notation
# How to use:
```
from kraken_schema_org import kraken_schema_org as k
```
## Normalize @type
```
record_type = 'person'
normalized_type = k.normalize_type(record_type)
```
## Normalize key/attrib... | PypiClean |
/apigeecli-0.53.3-py3-none-any.whl/apigee/plugins/commands.py | import configparser
import os
import shutil
import stat
import sys
from os import path
from pathlib import Path
import click
from click_option_group import MutuallyExclusiveOptionGroup, optgroup
from apigee import (APIGEE_CLI_PLUGINS_CONFIG_FILE,
APIGEE_CLI_PLUGINS_DIRECTORY, APIGEE_CLI_PLUGINS_PA... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.