id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/ws.nginxdbauth-1.1.0.tar.gz/ws_nginxdbauth-1.1.0/src/ws/nginxdbauth/web.py | from configparser import ConfigParser
from flask import Flask, request, make_response
from sqlalchemy.orm import Session
import argparse
import logging
import os
import os.path
import sqlalchemy
import sys
import wsgiref.handlers
import wsgiref.simple_server
app = Flask(__name__)
log = logging.getLogger(__name__)
LOG... | PypiClean |
/molfeat-0.9.2.tar.gz/molfeat-0.9.2/docs/tutorials/pyg_integration.ipynb | ```
%load_ext autoreload
%autoreload 2
import torch
import pandas as pd
import numpy as np
import torch.nn.functional as F
from tqdm.auto import tqdm
```
## PyG integration
<div class="admonition tip highlight">
<p class="admonition-title">Community contribution</p>
<p>Curious how one would run this tutorial ... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/onenote/operations/item/onenote_operation_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 |
/python-wechat-2021.4.29.tar.gz/python-wechat-2021.4.29/wechat/pay.py | import logging
import time
import requests
from .base import WechatError, dict2xml, xml2dict, md5, hmac_sha256, random_string
LOG = logging.getLogger(__name__)
__all__ = 'WechatPayError', 'WechatPay'
class WechatPayError(WechatError):
def __init__(self, msg):
super(WechatPayError, self).__init__(msg)
... | PypiClean |
/django-niceadmin_ds-0.0.2.tar.gz/django-niceadmin_ds-0.0.2/niceadmin/static/niceadmin/vendor/chart.js/docs/assets/js/81.f1500469.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[81],{412:function(t,e,a){"use strict";a.r(e);var r=a(6),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-lineelement-t-o"}},[a("a",{stati... | PypiClean |
/wandb-ng-0.0.44.tar.gz/wandb-ng-0.0.44/wandb/vendor/pygments/formatters/irc.py | import sys
from pygments.formatter import Formatter
from pygments.token import Keyword, Name, Comment, String, Error, \
Number, Operator, Generic, Token, Whitespace
from pygments.util import get_choice_opt
__all__ = ['IRCFormatter']
#: Map token types to a tuple of color values for light and dark
#: background... | PypiClean |
/umato-0.1.2-py3-none-any.whl/evaluation/utils.py | import numpy as np
from scipy.stats import spearmanr
from sklearn import metrics
import numba
# import faiss
class GlobalMeasure:
def __init__(self, x, z, dtype=np.float32):
self.n_data = x.shape[0] # number of data
self.dtype = dtype
# euclidean_distances: much faster than scipy.spatial... | PypiClean |
/eclsdk-1.2.1.tar.gz/eclsdk-1.2.1/ecl/proxy2.py |
from ecl import exceptions
from ecl import resource2
# The _check_resource decorator is used on BaseProxy methods to ensure that
# the `actual` argument is in fact the type of the `expected` argument.
# It does so under two cases:
# 1. When strict=False, if and only if `actual` is a Resource instance,
# it is che... | PypiClean |
/py3status-jenkins-status-0.0.11.zip/py3status-jenkins-status-0.0.11/README.md | [](https://py3status-jenkins.readthedocs.io/en/latest/?badge=latest)
[](https://gitlab.com/schmidtandreas/py3status-jenkins/-... | PypiClean |
/akida_models-1.2.0.tar.gz/akida_models-1.2.0/akida_models/detection/processing.py | import os
import xml.etree.ElementTree as et
import numpy as np
import tensorflow as tf
class BoundingBox:
""" Utility class to represent a bounding box.
The box is defined by its top left corner (x1, y1), bottom right corner
(x2, y2), label, score and classes.
"""
def __init__(self, x1, y1, x2... | PypiClean |
/hnzhu010504-0.0.1-py3-none-any.whl/poco/drivers/windows/sdk/WindowsUI.py |
import time
import base64
import zlib
import win32con
import win32gui
import re
import operator
import uiautomation as UIAuto
from poco.sdk.std.rpc.controller import StdRpcEndpointController
from poco.sdk.std.rpc.reactor import StdRpcReactor
from poco.utils.net.transport.tcp import TcpSocket
from poco.drivers.windows.... | PypiClean |
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/needle/node_modules/debug/src/browser.js | exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = localstorage();
/**
* Colors.
*/
exports.colors = [
'#0000CC',
'#0000FF',
'#0033CC',
'#0033FF',
'#0066CC',
'#0066FF',
'#0099CC',
'#0099FF',
'#00CC00',
'#00CC33',
... | PypiClean |
/cupy_rocm_4_0-10.6.0-cp38-cp38-manylinux1_x86_64.whl/cupy/testing/_random.py | import atexit
import functools
import numpy
import os
import random
import types
import unittest
import cupy
_old_python_random_state = None
_old_numpy_random_state = None
_old_cupy_random_states = None
def do_setup(deterministic=True):
global _old_python_random_state
global _old_numpy_random_state
glo... | PypiClean |
/boomslag_common_api_response-1.2.2-py3-none-any.whl/boomslag_api_response/views.py | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .serializers import APIResponseSerializer
from .pagination import CustomPagination
def paginate_queryset(queryset, paginator_class, request, serializer_class, context=None, **kwargs):
pagina... | PypiClean |
/boxhed_kernel-2.0.3.tar.gz/boxhed_kernel-2.0.3/boxhed_kernel/data.py | '''Data dispatching for DMatrix.'''
import ctypes
import json
import warnings
import os
import numpy as np
from .core import c_array, _LIB, _check_call, c_str
from .core import DataIter, DeviceQuantileDMatrix, DMatrix
from .compat import lazy_isinstance
c_bst_ulong = ctypes.c_uint64 # pylint: disable=invalid-name
... | PypiClean |
/numpy_datasets-0.0.2-py3-none-any.whl/numpy_datasets/groove_MIDI.py | import io
import os
import time
from .utils import download_dataset
import zipfile
import numpy as np
from scipy.io.wavfile import read as wav_read
from tqdm import tqdm
import pretty_midi
import soundfile as sf
_urls = {
"https://storage.googleapis.com/magentadata/datasets/groove/groove-v1.0.0.zip": "groove-v1.0... | PypiClean |
/gocept.mochikit-1.4.2.3.tar.gz/gocept.mochikit-1.4.2.3/src/gocept/mochikit/resources/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst | .. title:: MochiKit.LoggingPane - Interactive MochiKit.Logging pane
Name
====
MochiKit.LoggingPane - Interactive MochiKit.Logging pane
Synopsis
========
::
// open a pop-up window
createLoggingPane()
// use a div at the bottom of the document
createLoggingPane(true);
Description
===========
Moc... | PypiClean |
/doorstoph-2.3.tar.gz/doorstoph-2.3/doorstop/core/importer.py | import csv
import os
import re
import warnings
from typing import Any
import openpyxl
from doorstop import common, settings
from doorstop.common import DoorstopError
from doorstop.core.builder import _get_tree
from doorstop.core.document import Document
from doorstop.core.item import Item
from doorstop.core.types imp... | PypiClean |
/google-cloud-compute-1.14.0.tar.gz/google-cloud-compute-1.14.0/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py | from collections import OrderedDict
import functools
import os
import re
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
cast,
)
from google.api_core import client_options as client_options_lib
from google.api_core imp... | PypiClean |
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/CivicStructure.py | from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class CivicStructure(BaseModel):
"""A public structure, such as a town hall or concert hall.
References:
https://schema.org/CivicStructure
Note:
Model Depth 3
Att... | PypiClean |
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/js/views/table.js | define([
'backbone',
'models/note',
'views/row',
'text!templates/not-saved.html',
'text!templates/saved.html',
'text!templates/table.html',
'lib/mousetrap.min'
],
function(Backbone,
NoteModel,
notesTableRowView,
notSavedTemplate,
savedTemplate,
notesTableTempla... | PypiClean |
/xj_invoice-1.0.24.tar.gz/xj_invoice-1.0.24/xj_invoice/utils/utility_method.py | import json
import sys
import time
import os
import string
import random
import pytz
import datetime
from django.utils import timezone
from dateutil.parser import parse
from dateutil.tz import tzlocal
import pandas as pd
from datetime import datetime
from decimal import Decimal
# 获取当前时间
def get_current_time():
# ... | PypiClean |
/moralis-0.1.37.tar.gz/moralis-0.1.37/src/openapi_aptos_api/paths/coins_transfers_wallets/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from openapi_aptos_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re ... | PypiClean |
/n3d3-0.0.5.tar.gz/n3d3-0.0.5/third_party/pybind11/docs/advanced/exceptions.rst | Exceptions
##########
Built-in C++ to Python exception translation
============================================
When Python calls C++ code through pybind11, pybind11 provides a C++ exception handler
that will trap C++ exceptions, translate them to the corresponding Python exception,
and raise them so that Python code... | PypiClean |
/pmml_ui-0.1.6.tar.gz/pmml_ui-0.1.6/pmml_ui/mailing_lists/views.py |
from flask import Blueprint, abort, g, redirect, render_template, session, url_for
from pmml_ui.auth.views import login_required
from pmml_ui.config import (
PMML_NAMESPACE,
PMML_PMMLRC_FILE_NAME,
PMML_PMMLRC_SECRET_NAME,
PMML_POD_BASENAME,
)
from pmml_ui.mailing_lists.exceptions import exception_hand... | PypiClean |
/tableau_api_lib-0.1.50.tar.gz/tableau_api_lib-0.1.50/src/tableau_api_lib/api_requests/publish_datasource_request.py | import os
import json
from urllib3.fields import RequestField
from urllib3.filepost import encode_multipart_formdata
from tableau_api_lib.api_requests import BaseRequest
from tableau_api_lib.exceptions import InvalidFileTypeException
CHUNK_SIZE = 1024 * 1024 * 5 # 5MB
FILE_SIZE_LIMIT = 1024 * 1024 * 60 # 60MB
cl... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/MybankCreditLoantradeLoanrelationQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankCreditLoantradeLoanrelationQueryModel import MybankCreditLoantradeLoanrelationQueryModel
class MybankCreditLoantradeLoanrelationQueryRequest(object):
def __init__(self... | PypiClean |
/pcg_gazebo-0.7.12-py3-none-any.whl/pcg_gazebo/parsers/sdf/insertions.py | from ..types import XMLBase
from .model import Model
from .light import Light
class Insertions(XMLBase):
_NAME = 'insertions'
_TYPE = 'sdf'
_CHILDREN_CREATORS = dict(
model=dict(creator=Model, n_elems='+', optional=True),
light=dict(creator=Light, n_elems='+', optional=True)
)
de... | PypiClean |
/tron_explorer-1.0.0-py3-none-any.whl/tron_explorer/transaction.py | from tron_explorer.data_map import DataMap
from tron_explorer.utils import SendRequestSingle, SendRequestMultiple
# noinspection PyAttributeOutsideInit,PyBroadException
class TransactionDataMap(DataMap):
properties_list = ["number", "hash", "timestamp", "from_address", "to_address", "token_name", "token_abbr"
... | PypiClean |
/beedumper-0.1.6.tar.gz/beedumper-0.1.6/README.md | # beedumper: backup your SupportBee data
A tool to backup all your data from [SupportBee](https://supportbee.com) ticketing tool
## Install
The package is published at PyPi as [beedumper](https://pypi.org/project/beedumper) so you can run `pip install beedumper` on your Python 3.6 environment to install the main com... | PypiClean |
/stellar-sdk-mini-8.2.0.post2.tar.gz/stellar-sdk-mini-8.2.0.post2/stellar_sdk/xdr/account_merge_result.py | import base64
from xdrlib import Packer, Unpacker
from .account_merge_result_code import AccountMergeResultCode
from .int64 import Int64
__all__ = ["AccountMergeResult"]
class AccountMergeResult:
"""
XDR Source Code::
union AccountMergeResult switch (AccountMergeResultCode code)
{
c... | PypiClean |
/DaMa_ML-1.0a0-py3-none-any.whl/dama/clf/wrappers.py | import numpy as np
from sklearn.externals import joblib
from dama.models import MLModel, SupervicedModel
from dama.data.it import Iterator
from dama import measures as metrics
from dama.utils.logger import log_config
from dama.measures import ListMeasure
log = log_config(__name__)
class ClassifModel(SupervicedModel... | PypiClean |
/shuhari_toolkit-0.0.3-py3-none-any.whl/shuhari_toolkit/fileutils.py | import json
import os
import shutil
def relative_of(base_path: str, relative_path: str) -> str:
"""
Given a base path and path relative to it, return full path of target.
:param base_path: Base file path, normally __file__
:param relative_path: path relative to base_path
:return: full_path of tar... | PypiClean |
/Clipper_Python-0.1.1-cp36-cp36m-macosx_10_6_intel.whl/clipper_python/__init__.py | from .lib import clipper_python_core as _clipper
import numpy
_clipper_messages = _clipper.MessageStreamSingleton().clipper_messages
# Classes directly passed through from core
#from .lib.clipper_python_core_python_core import Coord_orth, Coord_frac, Coord_grid, \
# Coord_map, Coord_reci_frac, Coord_reci_orth
from... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/team_template_definition/item/team_definition/clone/clone_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 |
/prs-lib-0.0.4.tar.gz/prs-lib-0.0.4/prs_lib/file.py | import prs_utility as utility
from .request import request
from . import sign_utility
from . import validator
__all__ = ['File', ]
class File:
def __init__(self, config):
"""
:param config: PRSConfig
"""
self.config = config
@staticmethod
def omit_sign_data(data):
... | PypiClean |
/starling-server-0.1.2.tar.gz/starling-server-0.1.2/starling_server/cli/cli.py |
import os
import shutil
from datetime import datetime
import asyncio
import yaml
from cleo import Command, Application
from starling_server.config import CONFIG, CONFIG_FOLDER, TOKENS_FOLDER, TOKENS_FILEPATH
from starling_server.starling.api import api_get_accounts
class InitCommand(Command):
"""
Initiali... | PypiClean |
/ak-adb-1.1.0.tar.gz/ak-adb-1.1.0/adb/fastboot_debug.py | import argparse
import inspect
import logging
import sys
from adb import common_cli
from adb import fastboot
try:
import progressbar
except ImportError:
# progressbar is optional.
progressbar = None
def Devices(args):
"""Lists the available devices.
List of devices attached
015DB7591102001A devi... | PypiClean |
/task_processing-0.5.0.tar.gz/task_processing-0.5.0/task_processing/plugins/kubernetes/task_config.py | import re
import secrets
import string
from itertools import chain
from typing import Mapping
from typing import Optional
from typing import Sequence
from typing import Tuple
from typing import TYPE_CHECKING
from pyrsistent import field
from pyrsistent import m
from pyrsistent import PMap
from pyrsistent import pmap
f... | PypiClean |
/AutoReg-1.1.tar.gz/AutoReg-1.1/README.md |
Installation
-------------
```pip install -U AutoReg```
Example
---------
from AutoReg import AutoReg
ar=AutoReg()
print(ar.getRegex('ahjas'))
Params
---------
Below are few parameters we have to provide according to our requirements:
1 Case_Sensitive :(default=True)
It is `True` means we consider ... | PypiClean |
/scikit_learn_tree-1.2.3-cp38-cp38-win_amd64.whl/sklearn_fork/linear_model/_glm/glm.py |
from numbers import Integral, Real
import numpy as np
import scipy.optimize
from ._newton_solver import NewtonCholeskySolver, NewtonSolver
from ..._loss.loss import (
HalfGammaLoss,
HalfPoissonLoss,
HalfSquaredError,
HalfTweedieLoss,
HalfTweedieLossIdentity,
)
from ...base import BaseEstimator, R... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowcontroller/actionset_fee6f9deca9991c470dd851f2b49825f.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 ActionSet(Base):
"""Action prototype.
The ActionSet class encapsulates a list of actionSet resources that are managed by the user.
A list... | PypiClean |
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/pysnmp/proto/secmod/rfc2576.py | import sys
from pyasn1.codec.ber import encoder
from pyasn1.error import PyAsn1Error
from pysnmp.proto.secmod import base
from pysnmp.carrier.asyncore.dgram import udp, udp6, unix
from pysnmp.smi.error import NoSuchInstanceError
from pysnmp.proto import errind, error
from pysnmp import debug
class SnmpV1SecurityModel... | PypiClean |
/tongliao-0.0.1.tar.gz/tongliao-0.0.1/README.md | <div align="center">
# 通辽转换器!
</div>
## 什么是 "通辽"
>”通辽“是 UP 主小约翰可汗来介绍国家使用的单位。因小约翰可汗过于出名变成了一个梗<br>
[\[点击观看视频\]](./tongliao.mp4)<br>
”通辽“简写 T, 为 59535 平方千米, 或者是 285.31 万人。<br>
## Usage
这里实现了一个通辽转换模块:
``` python
from tongliao import country2tongliao
import pprint
pprint.pprint(country2tongliao("中国"))
```
``` pytho... | PypiClean |
/reactive-pyecharts-1.0.0.tar.gz/reactive-pyecharts-1.0.0/pyecharts/charts/basic_charts/heatmap.py | from ... import options as opts
from ...charts.chart import AxisChart
from ...commons.types import Numeric, Optional, Sequence, Union
from ...globals import ChartType
class HeatMap(AxisChart):
"""
<<< 热力图 >>>
热力图主要通过颜色去表现数值的大小,必须要配合 visualMap 组件使用。
直角坐标系上必须要使用两个类目轴。
"""
def __init__(self, in... | PypiClean |
/scarletcms-3.1.0b8.tar.gz/scarletcms-3.1.0b8/scarlet/cms/internal_tags/fields.py | import logging
import urllib.error
import urllib.parse
import urllib.request
from django import forms
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.db.models.signals import pre_save
from django.utils.html import conditional_escape
from django.utils.safestring import mar... | PypiClean |
/findCPcore-0.0.13.tar.gz/findCPcore-0.0.13/docs/build/doctrees/nbsphinx/CORE.ipynb | ## 1. findCPcore
### Import core modules
In order to use **findCPcore** library you have to import the following core modules.
```
import sys
from findCPcore import CobraMetabolicModel
```
### Read metabolic model
Read input metabolic model in [Systems Biology Markup Language (SBML)](http://sbml.org) format. SBM... | PypiClean |
/dfm_tools-0.13.1.tar.gz/dfm_tools-0.13.1/README.md | [](https://github.com/Deltares/dfm_tools/actions/workflows/pytest-py38.yml)
[](https://github.com/Delt... | PypiClean |
/otaku_info-0.6.2-py3-none-any.whl/otaku_info/external/reddit.py | import requests
from typing import List, Optional
from datetime import datetime
from bs4 import BeautifulSoup
from jerrycan.base import app
from otaku_info.external.entities.RedditLnRelease import RedditLnRelease
def load_ln_releases(year: Optional[int] = None) -> List[RedditLnRelease]:
"""
Loads the light no... | PypiClean |
/certora_cli_alpha_gereon_cert_2107_consolidate_logging-20230515.7.43.549676-py3-none-any.whl/certora_cli/EVMVerifier/certoraType.py | from typing import Any, Dict, List, Optional, Callable
from EVMVerifier.certoraNodeFilters import NodeFilters
from abc import ABC, abstractmethod
from enum import Enum
import logging
from Shared.certoraUtils import find_filename_in, get_certora_sources_dir
ast_logger = logging.getLogger("ast")
class Type(ABC):
... | PypiClean |
/simple_django_email_verification-0.1-py3-none-any.whl/verify_email/app_configurations.py | from django.conf import settings
class GetFieldFromSettings:
"""
This class fetches the attributes that are defined in settings.py of your project by user OR Django itself.
self.default_configs : is a dict with keys as the names used in this app and values being a tuple of
attr... | PypiClean |
/gcpds-mi-0.1a0.tar.gz/gcpds-mi-0.1a0/gcpds/mi/__init__.py | from scipy.signal import butter, lfilter_zi, filtfilt # , freqz
import numpy as np
from mne.io import read_raw_edf
from mne.decoding import CSP
import matplotlib.pyplot as plt
import logging
import seaborn as sns
import mne
from numpy import matlib
from sklearn.base import BaseEstimator, TransformerMixin
# %%
def l... | PypiClean |
/djangocms-forms-maintained-202206141440.tar.gz/djangocms-forms-maintained-202206141440/djangocms_forms/static/js/djangocms_forms/admin/jquery-inline-positioning.js | jQuery(function($) {
var positionField = 'position';
var target = $('div.inline-group#fields-group');
var handle = 'h3';
var item = 'div.inline-related';
var positionInput = 'input[id$=-'+positionField+']';
var hidePositionFieldClosest = '.form-row';
var renumberAll = function() {
va... | PypiClean |
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/distribute/experimental/rpc/proto/tf_rpc_service_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/learners/modelbased/leastsquares.py | __author__ = 'Tom Schaul, tom@idsia.ch'
"""
Doing RL when an environment model (transition matrices and rewards) are available,
and the states are observed by a feature vector for each state:
- a feature map (fMap) is a 2D array of features, one row per state.
(otherwise same representation as for in policyiterati... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayIserviceItaskProcessDetailCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayIserviceItaskProcessDetailCreateModel import AlipayIserviceItaskProcessDetailCreateModel
class AlipayIserviceItaskProcessDetailCreateRequest(object):
def __init__(self... | PypiClean |
/py_zipkin-1.2.8.tar.gz/py_zipkin-1.2.8/py_zipkin/encoding/_helpers.py | import socket
from collections import OrderedDict
from typing import Dict
from typing import MutableMapping
from typing import NamedTuple
from typing import Optional
from py_zipkin.encoding._types import Kind
from py_zipkin.exception import ZipkinError
class Endpoint(NamedTuple):
service_name: Optional[str]
... | PypiClean |
/image_tiles-0.1.2-py3-none-any.whl/image_tiles/image_tiles_server.py | import argparse
import io
import os
import random
from typing import Optional
import flask
import imageio.v3 as imageio
from loguru import logger
from .file_exists import exists
from .glob import glob
from .image import get_supported_extensions, read_image
def parse_args():
parser = argparse.ArgumentParser(
... | PypiClean |
/h2o_pysparkling_3.0-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.0-3.42.0.2.post1/h2o/estimators/word2vec.py |
from h2o.estimators.estimator_base import H2OEstimator
from h2o.exceptions import H2OValueError
from h2o.frame import H2OFrame
from h2o.utils.typechecks import assert_is_type, Enum, numeric
class H2OWord2vecEstimator(H2OEstimator):
"""
Word2Vec
"""
algo = "word2vec"
supervised_learning = False
... | PypiClean |
/jiangwei_dengai-0.1.0.tar.gz/jiangwei_dengai-0.1.0/README.md | # al-folio
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[core_contributors]: https://img.shields.io/badge/core_contributors-3-orange.svg 'Number of core contributors'
<!-- ALL-CONTRIBUTORS-BADGE:END -->
[
from pydantic impo... | PypiClean |
/lanforge_scripts-0.0.13-py3-none-any.whl/lanforge_scripts/py_json/ws-sta-monitor.py | import sys
import os
import argparse
import json
import logging
import traceback
from time import sleep
import websocket
import re
try:
import thread
except ImportError:
import _thread as thread
if sys.version_info[0] != 3:
print("This script requires Python 3")
exit()
sys.path.append(os.path.join(... | PypiClean |
/django_demian_parts-0.5.2-py3-none-any.whl/demian_parts/static/calendar-19/fullcalendar/packages/luxon/main.min.js | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("luxon"),require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","luxon","@fullcalendar/core"],t):t((e=e||self).FullCalendarLuxon={},e.luxon,e.FullCalendar)}(this,function(e,t,n){"use strict";var o=funct... | PypiClean |
/unbound-key-control-client-api-0.16.1.tar.gz/unbound-key-control-client-api-0.16.1/unbound_key_control_client_api/models/keys.py | from typing import List, Optional
from base_client_api.models.record import Record
# todo: implement validation for below
# EXPORT_TYPES = ['IN_PLAIN', 'WRAPPED', 'WRAPPED_WITH_TRUSTED', 'NON_EXPORTABLE']
# KEY_ID_ENCODING = ['PLAIN', 'BASE64', 'HEX']
# KEY_MAP = {'RSA': {'size': ['2048', '3072', '4096']... | PypiClean |
/Unidecode-1.3.6.tar.gz/Unidecode-1.3.6/unidecode/x024.py | data = (
'', # 0x00
'', # 0x01
'', # 0x02
'', # 0x03
'', # 0x04
'', # 0x05
'', # 0x06
'', # 0x07
'', # 0x08
'', # 0x09
'', # 0x0a
'', # 0x0b
'', # 0x0c
'', # 0x0d
'', # 0x0e
'', # 0x0f
'', # 0x10
'', # 0x11
'', # 0x12
'', # 0x13
'', # 0x14
'', # 0x15
'',... | PypiClean |
/py-bgg-0.3.3.tar.gz/py-bgg-0.3.3/libbgg/apiv2.py | from libbgg.apibase import BGGBase
from libbgg.errors import InvalidInputError, APICallError
from datetime import date
class BGG(BGGBase):
"""
For version 2 of the api, you simply instantiate the object and call
the appropriate method. "things" and "family items" are handled
dynamically and are not com... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/customerinsights/v20170426/get_relationship.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__ = [
'GetRelationshipResult',
'AwaitableGetRelationshipResult',
'get_relationship',
'get_relationship_output',
]
... | PypiClean |
/asm.cmsui-0.1.18.tar.gz/asm.cmsui-0.1.18/src/asm/cmsui/static/tinymce/plugins/template/editor_plugin_src.js | (function() {
var each = tinymce.each;
tinymce.create('tinymce.plugins.TemplatePlugin', {
init : function(ed, url) {
var t = this;
t.editor = ed;
// Register commands
ed.addCommand('mceTemplate', function(ui) {
ed.windowManager.open({
file : url + '/template.htm',
width : ed.getParam('t... | PypiClean |
/Pyrex-real-0.9.9.tar.gz/Pyrex-real-0.9.9/Pyrex/Compiler/Lexicon.py |
string_prefixes = "cCrR"
def make_lexicon():
from Pyrex.Plex import \
Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
TEXT, IGNORE, State, Lexicon
from Scanning import Method
letter = Any("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_")
digit = Any("0123456789")
... | PypiClean |
/xautoml-0.1.4.tar.gz/xautoml-0.1.4/src/util.ts | import React from "react";
import {Jupyter} from "./jupyter";
import {CandidateId} from "./model";
export type Primitive = string | number | boolean | Date | undefined
// For reasons, JupyterContext can not be declared in root.tsx and imported in dataset_details.tsx...
export const JupyterContext = React.createContex... | PypiClean |
/sparkautomapper-2.0.1-py3-none-any.whl/spark_auto_mapper/data_types/if_regex.py | from typing import Generic, List, Optional, TypeVar, Union, cast
from pyspark.sql import Column, DataFrame
from pyspark.sql.functions import when
from spark_auto_mapper.data_types.literal import AutoMapperDataTypeLiteral
from spark_auto_mapper.data_types.data_type_base import AutoMapperDataTypeBase
from spark_auto_m... | PypiClean |
/RsCMPX_NrFr2Meas-4.0.185-py3-none-any.whl/RsCMPX_NrFr2Meas/Implementations/NrMmwMeas/MultiEval/SeMask/Margin/Average/Power/Negativ.py | from typing import List
from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal.Types import DataType
from ........Internal.StructBase import StructBase
from ........Internal.ArgStruct import ArgStruct
# noinspection PyPep8Naming,PyAttributeOutsideInit,Sp... | PypiClean |
/leap-client-0.2.0.tar.gz/leap-client-0.2.0/src/leap/base/config.py | import grp
import json
import logging
import re
import socket
import time
import os
logger = logging.getLogger(name=__name__)
from dateutil import parser as dateparser
from xdg import BaseDirectory
import requests
from leap.base import exceptions
from leap.base import constants
from leap.base.pluggableconfig import ... | PypiClean |
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/watch/tasks/super_res/utils/utils_videoio.py | import os
import cv2
import numpy as np
# import torch
import random
from os import path as osp
# from torchvision.utils import make_grid
import sys
from pathlib import Path
import six
from collections import OrderedDict
# import math
import glob
import av
import io
from cv2 import (CAP_PROP_FOURCC, CAP_PROP_FPS, CAP_P... | PypiClean |
/fds.sdk.BondsAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/BondsAPIforDigitalPortals/model/inline_response2004_data_coupon_current_interest_rate.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.BondsAPIforDigitalPortals.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,... | PypiClean |
/nn-meter-2.0.tar.gz/nn-meter-2.0/nn_meter/dataset/gnn_dataloader.py | import os
import random
import torch
import jsonlines
from .bench_dataset import bench_dataset
from nn_meter.utils import get_user_data_folder
from nn_meter.utils.import_package import try_import_dgl
RAW_DATA_URL = "https://github.com/microsoft/nn-Meter/releases/download/v1.0-data/datasets.zip"
__user_dataset_folder_... | PypiClean |
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/rpc/README | -------------------------------------------------------------------------------
DojoX RPC
-------------------------------------------------------------------------------
Version 1.0
Release date: 07/01/2007
-------------------------------------------------------------------------------
Project state:
yahoo.smd: product... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/sites/item/information_protection/policy/labels/evaluate_removal/evaluate_removal_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from .......models import base_collection_pagination_count_response, information_protection_action
... | PypiClean |
/method_decorator-0.1.3.tar.gz/method_decorator-0.1.3/method_decorator.py |
class method_decorator(object):
def __init__(self, func, obj=None, cls=None, method_type='function'):
# These defaults are OK for plain functions
# and will be changed by __get__() for methods once a method is dot-referenced.
self.func, self.obj, self.cls, self.method_type = func, obj, cls... | PypiClean |
/empaia_app_test_suite-3.3.0.tar.gz/empaia_app_test_suite-3.3.0/empaia_app_test_suite/cli_definitions/services_cli.py | import json
from pathlib import Path
import docker
import typer
import empaia_app_test_suite.constants as const
from empaia_app_test_suite.commands.services_commands import (
services_down,
services_health,
services_list,
services_up,
services_volumes,
services_wait,
)
def init_services_cli(... | PypiClean |
/emnify_sdk-0.3.3-py3-none-any.whl/emnify/modules/device/api_call_manager.py | import requests
from emnify.api_manager import BaseApiManager
from emnify.constants import RequestsType, RequestUrls
from emnify.errors import ValidationErrorException
class GetAllDevicesApiCall(BaseApiManager):
request_url_prefix = '/v1/endpoint'
request_method_name = RequestsType.GET.value
response_hand... | PypiClean |
/piton3-0.0.2.tar.gz/piton3-0.0.2/piton/utils/tabulate.py | from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple
from platform import python_version_tuple
import re
if python_version_tuple()[0] < "3":
from itertools import izip_longest
from functools import partial
_none_type = type(None)
_int_type = ... | PypiClean |
/nulink_twisted-0.1.0-py3-none-any.whl/twisted/trial/runner.py | __all__ = [
"TestSuite",
"DestructiveTestSuite",
"ErrorHolder",
"LoggedSuite",
"TestHolder",
"TestLoader",
"TrialRunner",
"TrialSuite",
"filenameToModule",
"isPackage",
"isPackageDirectory",
"isTestCase",
"name",
"samefile",
"NOT_IN_TEST",
]
import doctest
im... | PypiClean |
/openapi_jira_client-3.0.1-py3-none-any.whl/openapi_jira_client/api/screen_schemes/update_screen_scheme.py | from typing import Any, Dict, List, Optional, Union, cast
import httpx
from attr import asdict
from ...client import AuthenticatedClient, Client
from ...models.update_screen_scheme_details import UpdateScreenSchemeDetails
from ...types import UNSET, Response
def _get_kwargs(
*,
client: AuthenticatedClient,
... | PypiClean |
/subtitle-edit-rate-0.2.0.tar.gz/subtitle-edit-rate-0.2.0/suber/concat_input_files.py | from typing import List, Tuple
from suber.file_readers import read_input_file
from suber.data_types import Segment, Subtitle
def create_concatenated_segments(hypothesis_files: List[str], reference_files: List[str], hypothesis_format="SRT",
reference_format="SRT") -> Tuple[List[Segmen... | PypiClean |
/bika.lims-3.2.1rc1.tar.gz/bika.lims-3.2.1rc1/bika/lims/skins/bika/bika_widgets/addresswidget.js | jQuery( function($) {
$(document).ready(function(){
function lookups(){
// Selecting a Country (populate state field)
$("[id*='\\.country']").change(function(){
field = $(this).attr('name').split(".")[0];
// // removes value from state, city, zip.
// $("[id='"+field+"\\.state']").val("");
// ... | PypiClean |
/up_fast_downward-0.3.0-py3-none-win32.whl/up_fast_downward-0.3.0.data/purelib/up_fast_downward/downward/driver/run_components.py | import errno
import logging
import os.path
import subprocess
import sys
from . import call
from . import limits
from . import portfolio_runner
from . import returncodes
from . import util
from .plan_manager import PlanManager
# TODO: We might want to turn translate into a module and call it with "python3 -m translate... | PypiClean |
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/jquery/src/attributes/attr.js | define( [
"../core",
"../core/access",
"../core/nodeName",
"./support",
"../var/rnothtmlwhite",
"../selector"
], function( jQuery, access, nodeName, support, rnothtmlwhite ) {
"use strict";
var boolHook,
attrHandle = jQuery.expr.attrHandle;
jQuery.fn.extend( {
attr: function( name, value ) {
return access(... | PypiClean |
/initor_bot_inference-2.0.5.tar.gz/initor_bot_inference-2.0.5/src/initor_bot_inference/fast_reid/fastreid/modeling/backbones/regnet/config.py |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Configuration file (powered by YACS)."""
import argparse
import os
import sys
from yacs.config import CfgNode as CfgNode
# Global confi... | PypiClean |
/idem_aws-4.0.1-py3-none-any.whl/idem_aws/exec/aws/dynamodb/table.py | import copy
from typing import Any
from typing import Dict
"""
Exec functions for AWS DynamoDB Table resources.
"""
async def get(hub, ctx, name, resource_id) -> Dict[str, Any]:
"""Get a DynamoDB Table resource from AWS.
Args:
name(str):
The name of the Idem state.
resource_id(... | PypiClean |
/deform2000-2.0.1.tar.gz/deform2000-2.0.1/deform/static/scripts/typeahead.min.js | !function(a){var b="0.9.3",c={isMsie:function(){var a=/(msie) ([\w.]+)/i.exec(navigator.userAgent);return a?parseInt(a[2],10):!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(a){return"string"==typeof ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200301/get_bastion_host.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetBastionHostResult',
'AwaitableGetBastionHostResult',
'get_bastion_host',
]
@pulumi.output_type
class GetBastionHostResul... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar/calendar_view/item/extensions/extensions_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 |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/iam/operations/o_auth/revoke_a_user.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 |
/pyrutext-0.8.0.tar.gz/pyrutext-0.8.0/src/Main/TextProcessing/Render.py | from dataclasses import dataclass, field
from typing import List, Tuple
import enum
import re
from ..WordProcessing.WordDict import WordDict
class ErrorGrade(enum.Enum):
OK = enum.auto()
WARNING = enum.auto()
ERROR = enum.auto()
class ErrorType(enum.Enum):
VAR_INVALID_FORMAT = enum.auto()
VAR_RE... | PypiClean |
/score.deploy-0.1.7.tar.gz/score.deploy-0.1.7/score/deploy/_app.py |
from score.uwsgi import NotRunning, AlreadyPaused
import random
import os
import logging
import shutil
import sys
import time
from subprocess import Popen, check_call
log = logging.getLogger(__name__)
phonetics = {
"a": "alfa",
"b": "bravo",
"c": "charlie",
"d": "delta",
"e": "echo",
"f": ... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayCommerceEducateXuexinIdentityQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCommerceEducateXuexinIdentityQueryModel import AlipayCommerceEducateXuexinIdentityQueryModel
class AlipayCommerceEducateXuexinIdentityQueryRequest(object):
def __init_... | PypiClean |
/hnzhu010503-0.0.1.tar.gz/hnzhu010503-0.0.1/poco/services/file_utils.py | import datetime
import git
import os
import yaml
import stat
from .console_logger import ColorPrint
from .state import StateHolder
class FileUtils:
@staticmethod
def make_empty_file(directory, file):
file = os.path.join(directory, file)
if not os.path.exists(directory):
os.makedir... | PypiClean |
/django-shortwave-0.9.1.tar.gz/django-shortwave-0.9.1/shortwave/models.py | from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from shortwave import forms
# Fields.
class CommandTriggerField(models.CharField):
"""
Model field for a Shortwave command trigger.
Uses the `shortwave.forms.CommandTriggerFi... | PypiClean |
/salure_helpers_azure-1.2.1.tar.gz/salure_helpers_azure-1.2.1/salure_helpers/azure/active_directory.py | import urllib.parse
import warnings
from salure_helpers.salureconnect import SalureConnect
import requests
import random
import string
import json
import pandas as pd
from pandas import json_normalize
from msal import ConfidentialClientApplication
from typing import Union, List
import os
class ActiveDirectory(SalureC... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.