id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/PyPandas-0.2.5.tar.gz/PyPandas-0.2.5/pypandas/outlier.py | from pyspark.sql import SparkSession
from pyspark.ml.clustering import *
from pyspark.ml.feature import VectorAssembler
from pyspark.sql.functions import udf, col, monotonically_increasing_id
from pyspark.sql.types import *
from pyspark.context import SparkContext
from pyspark.sql.session import SparkSession
from pyp... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ec2/vpc_network_performance_metric_subscription.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['VpcNetworkPerformanceMetricSubscriptionArgs', 'VpcNetworkPerformanceMetricSubscription']
@pulumi.input_type
class VpcNetworkPerformanceMetricSubsc... | PypiClean |
/django_mfa-3.2-py3-none-any.whl/django_mfa/utils.py | from __future__ import print_function, unicode_literals, division, absolute_import
import unicodedata
try:
from itertools import izip_longest
except ImportError:
from itertools import zip_longest as izip_longest
try:
from urllib.parse import quote
except ImportError:
from urllib import quote
def bui... | PypiClean |
/py-hive-iomete-1.1.0.tar.gz/py-hive-iomete-1.1.0/pyhive/sqlalchemy_hive.py | from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
import decimal
import re
from sqlalchemy import exc
from sqlalchemy import processors
from sqlalchemy import types
from sqlalchemy import util
from sqlalchemy.engine import default
from sqlalchemy.sql import compiler
from s... | PypiClean |
/sentiment_analysis_ko-0.0.1a0-py3-none-any.whl/sentiment_analysis/sentiment.py | import asyncio
import collections
import os
from typing import Any, Dict, List
import pandas
from konlpy.tag import Kkma
_dirname = os.path.abspath(os.path.dirname(__file__))
class DataSet(dict):
def set(self, keys: List[str], value: Any) -> None:
dic = self
for key in keys[:-1]:
dic ... | PypiClean |
/configurable_lti_consumer-xblock-1.4.1.tar.gz/configurable_lti_consumer-xblock-1.4.1/configurable_lti_consumer/static/js/vendor/iframeResizer.js | (function(undefined) {
'use strict';
if (typeof window === 'undefined') return; // don't run for server side render
var count = 0,
logEnabled = false,
hiddenCheckEnabled = false,
msgHeader = 'message',
msgHeaderLen = msgHeader.length,
msgId = '[iFrameSizer]', //Must match iframe msg ID
m... | PypiClean |
/Products.BastionBanking-4.2.3.tar.gz/Products.BastionBanking-4.2.3/Products/BastionBanking/ConnectionMgr.py | import os
from httplib2 import Http, ProxyInfo, BasicAuthentication
from httplib2.socks import PROXY_TYPE_HTTP
from urlparse import urlparse
from urllib import urlencode
from threading import Lock
# this is for easy manipulation of headers and future extensibility
HEADERS = {
"Content-type": "application/x-www-for... | PypiClean |
/django_simple_bugs-0.1.4.zip/django_simple_bugs-0.1.4/simple_bugs/static/ckeditor/plugins/a11yhelp/dialogs/lang/en.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{name:"E... | PypiClean |
/xia2-0.6.0.tar.gz/xia2-0.6.0/Interfaces/ISPyB/ISPyBXmlHandler.py |
from __future__ import absolute_import, division, print_function
import os
import time
from xia2.Handlers.Files import FileHandler
from xia2.Handlers.Phil import PhilIndex
def sanitize(path):
"""Replace double path separators with single ones."""
double = os.sep * 2
return path.replace(double, os.sep)... | PypiClean |
/pybaobab-0.1.0.tar.gz/pybaobab-0.1.0/baobab/configs/parser.py | import os, sys
from argparse import ArgumentParser
from importlib import import_module
from addict import Dict
class ConfigDict(Dict):
def __missing__(self, name):
raise KeyError(name)
def __getattr__(self, name):
try:
value = super(ConfigDict, self).__getattr__(name)
excep... | PypiClean |
/airt-client-2023.3.0rc0.tar.gz/airt-client-2023.3.0rc0/airt/_cli/pred.py |
# %% auto 0
__all__ = ['logger']
# %% ../../notebooks/CLI_Pred.ipynb 3
from typing import *
# %% ../../notebooks/CLI_Pred.ipynb 4
import os
import pandas as pd
import typer
from tabulate import tabulate
from typer import echo
from airt._cli import helper
from airt._constant import CLIENT_DB_PASSWORD, CLIENT_DB_USE... | PypiClean |
/ShynaTwelveAM-0.0.6.tar.gz/ShynaTwelveAM-0.0.6/README.md | # shyna/ShynaTwelveAm
## Getting Started
Download links:
SSH clone URL: ssh://git@git.jetbrains.space/shyna623/shyna/ShynaTwelveAm.git
HTTPS clone URL: https://git.jetbrains.space/shyna623/shyna/ShynaTwelveAm.git
These instructions will get you a copy of the project up and running on your local machine for dev... | PypiClean |
/django-social-api-0.1.1.tar.gz/django-social-api-0.1.1/social_api/storages/oauthtokens.py | import time
from oauth_tokens.models import AccessToken, UserCredentials, AccessTokenGettingError, AccessTokenRefreshingError
from ..lock import distributedlock, LockNotAcquiredError
from ..utils import limit_errored_calls
from .base import TokensStorageAbstractBase
class OAuthTokensStorage(TokensStorageAbstractBase... | PypiClean |
/vivisect-1.1.1-py3-none-any.whl/envi/memory.py | import re
import struct
import logging
import contextlib
import envi
import envi.exc as e_exc
import envi.bits as e_bits
from envi.const import *
"""
A module containing memory utilities and the definition of the
memory access API used by all vtoys trace/emulators/workspaces.
"""
logger = logging.getLogger(__name__... | PypiClean |
/apache-airflow-zack-1.10.15.9.tar.gz/apache-airflow-zack-1.10.15.9/airflow/contrib/operators/spark_jdbc_operator.py | from airflow.contrib.operators.spark_submit_operator import SparkSubmitOperator
from airflow.contrib.hooks.spark_jdbc_hook import SparkJDBCHook
from airflow.utils.decorators import apply_defaults
class SparkJDBCOperator(SparkSubmitOperator):
"""
This operator extends the SparkSubmitOperator specifically for p... | PypiClean |
/bas-apres-0.1.1.tar.gz/bas-apres-0.1.1/apres/plot_apres.py | import os
import argparse
from matplotlib import pyplot as plt
import numpy as np
from netCDF4 import Dataset
from apres import ApRESFile
def construct_radargram(plt, mat, xaxis, yaxis, xlim=None, ylim=None, xlabel='NSubBursts', ylabel='N_ADC_SAMPLES', contrast=1.0, cmap='gray', aspect='auto'):
"""
Plot the ... | PypiClean |
/kf_d3m_primitives-0.6.4-py3-none-any.whl/kf_d3m_primitives/ts_classification/lstm_fcn/lstm_fcn.py | import sys
import os
import time
import logging
import numpy as np
import pandas as pd
from d3m.primitive_interfaces.base import CallResult
from d3m.primitive_interfaces.supervised_learning import SupervisedLearnerPrimitiveBase
from d3m import container
from d3m.metadata import hyperparams, base as metadata_base, para... | PypiClean |
/monocdk.experiment-1.66.0-py3-none-any.whl/monocdk_experiment/assets/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from .._jsii import *
from .. import AssetStaging as _AssetStaging_5a226461, Construct as _Construct_f50a3f53
@jsii.data_type(
jsii_type="monocdk-experiment.assets.CopyOptions",
jsii... | PypiClean |
/django_user_email_extension-2.4.2-py3-none-any.whl/django_user_email_extension/__init__.py | ZIP_CODES_REGEX = {
'AC': r'^[A-Z]{4}[0-9][A-Z]$',
'AD': r'^AD[0-9]{3}$',
'AF': r'^[0-9]{4}$',
'AI': r'^AI-2640$',
'AL': r'^[0-9]{4}$',
'AM': r'^[0-9]{4}$',
'AR': r'^([0-9]{4}|[A-Z][0-9]{4}[A-Z]{3})$',
'AS': r'^[0-9]{5}(-[0-9]{4}|-[0-9]{6})?$',
'AT': r'^[0-9]{4}$',
'AU': r'^[0-9]... | PypiClean |
/agora_api_internal-0.26.0-py3-none-any.whl/agoraapi/airdrop/v4/airdrop_service_pb2.py |
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_insertion_point(imports)
_sym_db = _symbol_database.Default()
from validate import va... | PypiClean |
/Teeworlds%20Server%20Info-1.0.3.tar.gz/Teeworlds Server Info-1.0.3/tw_serverinfo/models/player.py |
from pycountry import countries
from tw_serverinfo.utility.countries import custom_countries
class Player(object):
"""Player Model Template, containing properties for all possible attributes of players"""
_name = ''
_clan = ''
_country_index = '-1'
_score = 0
_ingame = False
def __init_... | PypiClean |
/django_allianceutils-3.0.0.tar.gz/django_allianceutils-3.0.0/src/allianceutils/api/permissions.py | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from rest_framework.permissions import BasePermission
class SimpleDjangoObjectPermissions(BasePermission):
"""
Differs from just using DjangoObjectPermissions because it
- does not require a queryset
- uses a sing... | PypiClean |
/vittawhatsapp-1.8.tar.gz/vittawhatsapp-1.8/README.md |
## Instalacao
VittaWhatsapp esta disponivel no PyPi:
```bash
python3 -m pip install vittawhatsapp
```
```bash
pip3 install vittawhatsapp
```
```bash
pip install vittawhatsapp
```
## Clonar Repositorio
## Features
- Envia messagem para grupos e contatos do Whatsapp
- Envia imagens para grupos e contatos do Wh... | PypiClean |
/django_materialize_nav-1.2.0.tar.gz/django_materialize_nav-1.2.0/materialize_nav/forms.py | from django import forms
from django.forms.renderers import TemplatesSetting
from django.forms.utils import pretty_name
from django.utils.safestring import mark_safe
DATE_INPUT_FORMATS = ['%b %d, %Y', '%B %d, %Y']
TIME_INPUT_FORMATS = ['%H:%M %p', '%I:%M %p']
DATETIME_INPUT_FORMATS = ['%b %d, %Y %H:%M %p']
class Dat... | PypiClean |
/botcity-cloudvision-plugin-0.1.6.tar.gz/botcity-cloudvision-plugin-0.1.6/README.md | # BotCity CloudVision Plugin - Python
## 🤖 Computer-vision based UI Automation
Recognize and interact with UI elements using state-of-art computer vision module.
Operate any UI interface independent of the technology or platform (desktop, web, terminal).
## 🐍 Generate Python Code while Interacting with your UI
U... | PypiClean |
/pyvideoio-0.1.1.tar.gz/pyvideoio-0.1.1/pyvideo/video.py |
from typing import (
Optional, List, Union, Tuple,
Generator, Iterable, Any, ClassVar
)
from pathlib import Path
from attrs import define, field
import numpy as np
import cv2
from tqdm import tqdm
from moviepy.editor import ImageSequenceClip
__all__ = [
"Video"
]
@define(hash=True)
class Video:
"""... | PypiClean |
/multi-freq-ldpy-0.2.5.tar.gz/multi-freq-ldpy-0.2.5/src/multi_freq_ldpy/long_freq_est/dBitFlipPM.py | import numpy as np
from numba import jit
# [1] Ding, Kulkarni, and Yekhanin (2017) "Collecting telemetry data privately" (NeurIPS).
@jit(nopython=True)
def dBitFlipPM_Client(input_data, k, b, d_bits, eps_perm):
"""
dBitFlipPM [1] protocol that applies a single round of sanitization (permanent memoization... | PypiClean |
/cvxoptklu-1.2.4.tar.gz/cvxoptklu-1.2.4/doc/source/copyright.rst | .. role:: raw-html(raw)
:format: html
*********************
Copyright and License
*********************
| :raw-html:`©` 2012-2019 M. Andersen and L. Vandenberghe.
| :raw-html:`©` 2010-2011 L. Vandenberghe.
| :raw-html:`©` 2004-2009 J. Dahl and L. Vandenberghe.
|
CVXOPT is free software; you can... | PypiClean |
/anlearn-0.1.4.tar.gz/anlearn-0.1.4/CODE_OF_CONDUCT.md | # Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of... | PypiClean |
/megaradrp-0.13.tar.gz/megaradrp-0.13/doc/calibration/trace.rst | =====
Trace
=====
:Mode: Trace
:Usage: Offline, Online
:Key: MegaraTraceMap
:Product: :class:`~megaradrp.products.tracemap.TraceMap`.
:Recipe: :class:`~megaradrp.recipes.calibration.trace.TraceMapRecipe`
:Recipe input: :class:`~megaradrp.recipes.calibration.trace.TraceMapRecipeInput`
:Recipe result: :class:`~megaradrp... | PypiClean |
/RsCMPX_NrFr2Meas-4.0.185-py3-none-any.whl/RsCMPX_NrFr2Meas/Implementations/NrMmwMeas/Prach/Modulation/__init__.py | from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ModulationCls:
"""Modulation commands group definition. 20 total commands, 9 Subgroups, 0 group commands"""
def __init__(self, core: Core, paren... | PypiClean |
/error_visor-0.0.6.tar.gz/error_visor-0.0.6/README.md | # Error Visor
## Que es?
Es un proyecto destinado a guardar registros personalizados en un archivo json que será utilizado
más tarde para visualizarse en una app web de forma localizada y ordenada. Solo es necesaria una
sentencia y listo, ya tienes el registro del error en tu app.
## Cómo funciona?
Primero instalamo... | PypiClean |
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/models/m2m_100/tokenization_m2m_100.py | """Tokenization classes for M2M100."""
import json
import os
from pathlib import Path
from shutil import copyfile
from typing import Any, Dict, List, Optional, Tuple, Union
import sentencepiece
from ...tokenization_utils import BatchEncoding, PreTrainedTokenizer
from ...utils import logging
logger = logging.get_log... | PypiClean |
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/email_performance_customer_histogram.py | import re # noqa: F401
import sys # noqa: F401
from ultracart.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,
vali... | PypiClean |
/timely-beliefs-1.22.0.tar.gz/timely-beliefs-1.22.0/timely_beliefs/visualization/graphs.py | from typing import Tuple, Union
import altair as alt
import pandas as pd
from timely_beliefs.visualization import selectors
def time_series_base_chart(
source: Union[pd.DataFrame, str],
belief_horizon_unit: str,
intuitive_forecast_horizon: bool,
) -> alt.Chart:
return (
alt.Chart(source)
... | PypiClean |
/imm-case-1.0.15.tar.gz/imm-case-1.0.15/case/recruit.py | import argparse,os
from termcolor import colored
from model.recruit.joboffer import JobofferModel, JobofferModelDocxAdapater
from model.recruit.jobad import JobadModel,JobadModelDocxAdapater
from model.recruit.recruitmentsummary import RecruitmnetSummaryModel,RecruitmnetSummaryDocxAdaptor
def creatExcel(model,excel_fi... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200601/get_hub_route_table.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetHubRouteTableResult',
'AwaitableGetHubRouteTableResult',
'get_hub_route_table',
]
@pulumi.output_type
class GetHubRouteT... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/ai-shang-qing-gan/爱上情感《魅力男神全套》:22魅力内核(你的强力状态引擎):06.参考经验与行动阻碍.md | # 爱上情感《魅力男神全套》:22 魅力内核(你的强力状态引擎):06.参考经验与行动阻碍
《National Anthem》,《National Anthem》,歡迎來到美日的快樂廠,今天我們來講參考經驗與行動阻礙,首先我們第一個提醒叫不要站在岸邊取協物,大陸出了學員對於掌握性力。
有一個巨大的無區,他們認為我理解了,我頂無道的關於吸引女人是怎麼一回事,我就掌握了這一切,他們在理解和掌握之間話題了等話,他們喜歡在腦內去預言這一切,把學習性力當作是學習,一門邏輯課程。
當作是學習算數題,想要人的認為我只要提借吧,就是內化,實際上基因女人更像是一門社交能力,無法進行邏輯思考去內化它,你需要在實戰中去內化這一切,我們說參考經驗為往... | PypiClean |
/lazr.restful-2.0.1-py3-none-any.whl/lazr/restful/wsgi.py |
__all__ = [
"BaseWSGIWebServiceConfiguration",
"WSGIApplication",
]
from pkg_resources import resource_string
from wsgiref.simple_server import make_server as wsgi_make_server
from zope.component import getUtility
from zope.configuration import xmlconfig
from zope.publisher.publish import publish
from lazr.... | PypiClean |
/NREL_reV-0.8.1-py3-none-any.whl/reV/SAM/windbos.py | from copy import deepcopy
import numpy as np
from PySAM.PySSC import ssc_sim_from_dict
from reV.utilities.exceptions import SAMInputError
class WindBos:
"""Wind Balance of System Cost Model."""
MODULE = 'windbos'
# keys for the windbos input data dictionary.
# Some keys may not be found explicitly ... | PypiClean |
/bos_auto-0.4.9-py3-none-any.whl/bookied/endpointschema.py | schema = {
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Bookie dataproxy Json",
"description": "Bookie dataproxy exchange event trigger format",
"type": "object",
"properties": {
"id": {
"type": "object",
"properties": {
"sport": {
... | PypiClean |
/CondConfigParser-1.0.5.tar.gz/CondConfigParser-1.0.5/doc/internals/condconfig.rst | The :mod:`~condconfigparser.condconfig` submodule
-------------------------------------------------
.. warning::
The functions and methods listed in this section are implementation details
of CondConfigParser. **Do not use them in your programs** if you rely on API
stability, as they are likely to change in inc... | PypiClean |
/swh.web-0.2.37.tar.gz/swh.web-0.2.37/swh/web/mailmap/models.py |
from django.db import models
class UserMailmapManager(models.Manager):
"""A queryset manager which defers all :class:`models.DateTimeField` fields, to avoid
resetting them to an old value involuntarily."""
@classmethod
def deferred_fields(cls):
try:
return cls._deferred_fields
... | PypiClean |
/Catalyst_Lib-0.8.tar.gz/Catalyst_Lib-0.8/Catalyst_Lib/lists.py | from . import dictionaries
def contains_duplicates(items: list):
for x in items:
if items.count(x) != 1:
return True
return False
def combine_list(items: list = None):
"""
It takes a list of strings and returns a single string that is the concatenation of all the strings in the l... | PypiClean |
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/latest/i18n/angular-locale_en-sh.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 |
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Lib/idlelib/debugobj.py |
# object browser
# XXX TO DO:
# - for classes/modules, add "open source" to object browser
from reprlib import Repr
from idlelib.tree import TreeItem, TreeNode, ScrolledCanvas
myrepr = Repr()
myrepr.maxstring = 100
myrepr.maxother = 100
class ObjectTreeItem(TreeItem):
def __init__(self, labeltext, object, setf... | PypiClean |
/pybibframe-1.1.4.tar.gz/pybibframe-1.1.4/lib/util.py | import time
import logging
import json
from amara3 import iri
from versa.util import duplicate_statements, OrderedJsonEncoder
from versa import I, VERSA_BASEIRI, ORIGIN, RELATIONSHIP, TARGET, ATTRIBUTES
from . import BL, BF_INIT_TASK, BF_INPUT_TASK, BF_INPUT_XREF_TASK, BF_MARCREC_TASK, BF_MATRES_TASK, BF_FINAL_TASK
... | PypiClean |
/ask-smapi-model-1.36.0.tar.gz/ask-smapi-model-1.36.0/ask_smapi_model/v1/skill/manifest/custom/target_runtime.py |
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accomp... | PypiClean |
/mutagenx-1.24.tar.gz/mutagenx-1.24/docs/man/mutagen-pony.rst | ==============
mutagen-pony
==============
---------------------------------
scan a collection of MP3 files
---------------------------------
:Manual section: 1
:Date: February 20th, 2006
SYNOPSIS
========
**mutagen-pony** *directory* ...
DESCRIPTION
===========
**mutagen-pony** scans any directories given and... | PypiClean |
/sklearn-hierarchical-classification-1.3.2.tar.gz/sklearn-hierarchical-classification-1.3.2/sklearn_hierarchical_classification/metrics.py | from contextlib import contextmanager
import numpy as np
from networkx import all_pairs_shortest_path_length, relabel_nodes
from sklearn.preprocessing import MultiLabelBinarizer
from sklearn_hierarchical_classification.constants import ROOT
@contextmanager
def multi_labeled(y_true, y_pred, graph):
"""
Helpe... | PypiClean |
/neurontracing-1.0.4-py3-none-any.whl/neuron_tracing/lib/klib/glib/Draw3DStack.py | from functools import reduce
from Obj3D import Point3D, Sphere, Cone, calculateBound, calScaleRatio
import numpy as np
from numpy import linalg as LA
from scipy.spatial import distance_matrix
def getObjList(nodes, graph, node_idx=None):
if node_idx:
# 球体索引列表
sphere_idxs = [node_idx]+list(graph[node... | PypiClean |
/networkbilling_EIGENMODE-0.1.12-py3-none-any.whl/networkbilling/nsw/outstanding.py | from typing import List, Iterable, Optional
import datetime
import decimal
from dataclasses import dataclass
import io
import csv
import pathlib
import networkbilling.base as base
@dataclass(frozen=True)
class Header(base.HeaderRow):
record_type: str
distributor_code: str
retailer_code: str
timestamp... | PypiClean |
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/entities/_job/automl/automl_job.py |
# pylint: disable=protected-access
import logging
from abc import ABC, abstractmethod
from typing import Any, Dict, Optional, Union
from azure.ai.ml._restclient.v2023_04_01_preview.models import (
JobBase,
MLTableJobInput,
QueueSettings,
ResourceConfiguration,
TaskType,
)
from azure.ai.ml._utils.... | PypiClean |
/python-leetcode-1.2.1.tar.gz/python-leetcode-1.2.1/README.md | 




[](https://pypi.python.org/pypi/srem)
[](https://pypi.org/projec... | PypiClean |
/OBP_security_pillar_2-0.0.4.tar.gz/OBP_security_pillar_2-0.0.4/OBP_security_pillar_2/s3/s3_bucket_public_read_prohibited.py | import logging
import botocore
from botocore.exceptions import ClientError
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
def s3_bucket_public_read_prohibited(self):
logger.info(" ---Inside s3 :: s3_bucket_public_read_prohibited()")
result = True
failReason = ''
offenders = []
... | PypiClean |
/azure_containerregistry-1.2.0-py3-none-any.whl/azure/containerregistry/aio/_async_container_registry_client.py | import functools
import hashlib
import json
from io import BytesIO
from typing import Any, Dict, IO, Optional, overload, Union, cast, Tuple, MutableMapping
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.credentials_async import AsyncTokenCredential
from azure.core.exceptions import (
... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/gkehub/v1beta/get_rbacrolebinding.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__ = [
'GetRbacrolebindingResult',
'AwaitableGetRbacrolebindingResult',
'get_rbacrolebinding',
'get_rbacrolebinding... | PypiClean |
/Weblate_em0t-4.2-py3-none-any.whl/weblate/auth/migrations/0002_auto_20180507_1540_squashed_0011_auto_20180509_0739_squashed_0007_group_components.py |
import django.db.models.deletion
from django.db import migrations, models
import weblate.auth.models
import weblate.trans.fields
import weblate.utils.validators
class Migration(migrations.Migration):
replaces = [
("weblate_auth", "0002_auto_20180507_1540_squashed_0011_auto_20180509_0739"),
("we... | PypiClean |
/shipdataprocess-0.8.2.tar.gz/shipdataprocess-0.8.2/CHANGES.md | Changes
=======
Higher level changes affecting the API or data.
v0.1.0, 2017-10-10 -- Initial release
v0.2.0, 2017-10-24 -- Update on new shipcodes, removal of special cases for roman numeral attachment
v0.2.1, 2017-10-24 -- Treatment of letters encoded in utf8 or iso_8859-1
v0.2.4, 2017-10-26 -- Change in read... | PypiClean |
/zyzFlask-0.2.0.tar.gz/zyzFlask-0.2.0/core/error.py | from core.core import BaseError
from core.core import return_data
class Error(BaseError):
@staticmethod
def mobile_null_error():
return return_data(code=-100, msg=u'手机号不能为空')
@staticmethod
def password_null_error():
return return_data(code=-101, msg=u'密码不能为空')
@staticmethod
d... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/google/appengine/cron/GrocParser.py |
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
allOrdinals = set([1, 2, 3, 4, 5])
numOrdinals = len(allOrdinals)
HIDDEN = BaseRecognizer.HIDDEN
THIRD=13
SEPTEMBER=36
WEDNESDAY=22
APRIL=31
JULY=34
DIGITS=8
MAY=32
OCTOBER=37
DAY=19
EOF=-1
MARCH=30
MONTH=2... | PypiClean |
/basedmypy-2.1.0-cp38-cp38-win_amd64.whl/mypy/semanal_typeargs.py | from __future__ import annotations
from typing import Sequence
from mypy import errorcodes as codes, message_registry
from mypy.errorcodes import ErrorCode
from mypy.errors import Errors
from mypy.messages import format_type
from mypy.mixedtraverser import MixedTraverserVisitor
from mypy.nodes import Block, ClassDef,... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/d86647aa5b66d9430f3de941bdf740c2.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/maec411-1.0.0a1.tar.gz/maec411-1.0.0a1/docs/api/bundle/bundle.rst | :mod:`maec.bundle.bundle` Module
================================
.. module:: maec.bundle.bundle
Classes
-------
.. autoclass:: Bundle
:show-inheritance:
:members:
.. autoclass:: ActionList
:show-inheritance:
:members:
.. autoclass:: BehaviorList
:show-inheritance:
:members:
.. autoclass:: ObjectList
... | PypiClean |
/zipline_crypto-0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/zipline/examples/dual_moving_average.py | import os
from zipline.api import order_target, record, symbol
from zipline.finance import commission, slippage
def initialize(context):
context.sym = symbol("AAPL")
context.i = 0
# Explicitly set the commission/slippage to the "old" value until we can
# rebuild example data.
# github.com/quantop... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/artifactregistry/v1beta2/repository.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['RepositoryArgs', 'Repository']
@pulumi.input_type
class RepositoryArgs:
de... | PypiClean |
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/reformer/__init__.py |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | PypiClean |
/slam_dataset_sdk-0.0.2.tar.gz/slam_dataset_sdk-0.0.2/src/python/slam_dataset_sdk/tools/oxford_sdk/transform.py |
import numpy as np
import numpy.matlib as matlib
from math import sin, cos, atan2, sqrt
MATRIX_MATCH_TOLERANCE = 1e-4
def build_se3_transform(xyzrpy):
"""Creates an SE3 transform from translation and Euler angles.
Args:
xyzrpy (list[float]): translation and Euler angles for transform. Must have six... | PypiClean |
/djutil-0.2.zip/djutil-0.2/src/hashing.py |
from __future__ import unicode_literals
import hashlib
import os
import random
from django.db import models
from django.utils import six
from django.utils.encoding import force_str
from django.utils.timezone import now as tznow
def generate_hash(string, salt=None):
if salt is None:
salt = hashlib.sha1(... | PypiClean |
/alpha-data-py-1.0.14.tar.gz/alpha-data-py-1.0.14/adata/iterators.py | import time
class BaseIterator:
def __init__(self, q):
self.q = q
def close(self):
self.q.close()
def err(self):
return self.q.err()
class FloatIterator(BaseIterator):
def __init__(self, q, time=0, float=0.0):
super().__init__(q)
self.time = time
sel... | PypiClean |
/django-inlaws-0.1.1beta1.tar.gz/django-inlaws-0.1.1beta1/inlaws/templatetags/related_items.py | from django.template import Library, Node, TemplateSyntaxError
from django.template import Variable, VariableDoesNotExist
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse, NoReverseMatch
from django.core.exceptions import ImproperlyConfigured
from django.conf impor... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/dnac/plugins/modules/network_update.py |
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: network_update
short_description: Resource module for Network Update
description:
- Manage operation update of the resource Network Update.
- >
API to up... | PypiClean |
/scrimer-1.1.tar.gz/scrimer-1.1/scripts/design_primers.py | # This file is a part of Scrimer.
# See LICENSE.txt for details on licensing.
# Copyright (C) 2012, 2013 Libor Morkovsky
import sys
import os
import itertools
import argparse
import pysam
import vcf
import pybedtools
from scrimer import primer3_connector
min_gt_primer_len = 20
pref_gt_primer_len = 22
max_gt_prim... | PypiClean |
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/rings/asymptotic/asymptotic_expansion_generators.py | r"""
Common Asymptotic Expansions
Asymptotic expansions in SageMath can be built through the
``asymptotic_expansions`` object. It contains generators for common
asymptotic expressions. For example,
::
sage: asymptotic_expansions.Stirling('n', precision=5)
sqrt(2)*sqrt(pi)*e^(n*log(n))*(e^n)^(-1)*n^(1/2) +
... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/gluster/gluster/plugins/modules/geo_rep.py |
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = """
module: geo_rep
short_description: Manage geo-replication sessions
description:
- Create, stop, delete and configure geo-replication session
author: Sachidananda Urs (@sac)
options:
action:
description:
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/databoxedge/v20190801/get_container.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetContainerResult',
'AwaitableGetContainerResult',
'get_container',
]
@pulumi.output_type
class GetContainerResult:
""... | PypiClean |
/sneazr-pynotify-0.1.1.tar.gz/sneazr-pynotify-0.1.1/sneaze_pynotify.py | import os
import sys
from nose.plugins.base import Plugin
from pkg_resources import resource_filename
try:
import pynotify
except:
pass
class SneazrPyNotify(Plugin):
'''
A Nose plugin which displays pynotify notifications
indicating the number of (un)successful tests.
'''
name = 'sneazr-py... | PypiClean |
/great_expectations-0.17.14.tar.gz/great_expectations-0.17.14/great_expectations/core/metric_function_types.py | import enum
import logging
from great_expectations.core._docs_decorators import public_api
logger = logging.getLogger(__name__)
@public_api
class MetricFunctionTypes(enum.Enum):
"""Enum type, whose members depict the nature of return value of a metric implementation function (defined for a specified "ExecutionE... | PypiClean |
/hyperparameter_hunter-3.0.0a0.tar.gz/hyperparameter_hunter-3.0.0a0/hyperparameter_hunter/tracers.py | from hyperparameter_hunter.settings import G
from hyperparameter_hunter.space import Real, Integer, Categorical
##################################################
# Import Miscellaneous Assets
##################################################
# noinspection PyProtectedMember
from inspect import signature, _empty, cur... | PypiClean |
/plaid-python-15.5.0.tar.gz/plaid-python-15.5.0/plaid/model/entity_screening_hit_names_items.py | import re # noqa: F401
import sys # noqa: F401
from plaid.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
validate... | PypiClean |
/aa-charlink-0.6.1.tar.gz/aa-charlink-0.6.1/charlink/views.py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User, Permission
from django.contrib import messages
from django.db.models import Q
from django.core.exceptions import PermissionDenied
from django.http impor... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/containeranalysis/v1beta1/occurrence.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['OccurrenceArgs', 'Occurrence']
@pulumi.input_type
class OccurrenceArgs:
de... | PypiClean |
/futoin-cid-0.9.1.tar.gz/futoin-cid-0.9.1/futoin/cid/tool/flywaytool.py |
from ..migrationtool import MigrationTool
class flywayTool(MigrationTool):
"""Flyway - Evolve your Database Schema easily and
reliably across all your instances.
Home: https://flywaydb.org/
Migration is run automatically, if flyway.conf is found.
FLYWAY_HOME is user/set similar to LIQUIBASE_HOME
Note: for no... | PypiClean |
/CyberDB-0.9.3.tar.gz/CyberDB-0.9.3/cyberdb/network/server.py | import re
import shutil
import pickle
import datetime
import asyncio
import threading
from obj_encrypt import Secret
from apscheduler.schedulers.background import BackgroundScheduler
from . import AioStream
from .route import Route
from ..data import datas
from ..extensions import DisconCyberDBError, WrongFilenameCyb... | PypiClean |
/bavard-nlu-0.0.27.tar.gz/bavard-nlu-0.0.27/bavard_nlu/data_preprocessing/nlu_data.py | import typing as t
from itertools import chain
from collections import defaultdict
from sklearn.model_selection import train_test_split
from transformers import DistilBertTokenizerFast
from sklearn.preprocessing import LabelEncoder
import tensorflow as tf
from bavard_nlu.utils import (
get_char_to_word_map,
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/datacatalog/latest/get_adc_catalog.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetADCCatalogResult',
'AwaitableGetADCCatalogResult',
'get_adc_catalog',
]
@pulumi.output_type
class GetADCCatalogResult:
... | PypiClean |
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_latest/chunk.602e835c00776ca94067.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[4909],{54909:(e,t,r)=>{"use strict";var i=r(50856),n=r(28426),o=r(26765),s=r(11052);r(98762);class a extends((0,s.I)(n.H3)){static get template(){return i.d`
<ha-progress-button
id="progress"
progress="[... | PypiClean |
/django-dashing-0.3.4.tar.gz/django-dashing-0.3.4/docs/dashboards.rst | Dashboards
===============================================
Single Dashboard
----------------
To initialize a single dashboard you need to create a Dashboard object and pass valid options as shown below:
.. code-block:: javascript
var dashboard = new Dashboard(options);
Where the `options` are a json object wi... | PypiClean |
/server_mess_proj-0.0.2.tar.gz/server_mess_proj-0.0.2/server/server/add_user.py | import hashlib
import binascii
from PyQt5.QtWidgets import QDialog, QPushButton, QLineEdit, QApplication, QLabel, QMessageBox
from PyQt5.QtCore import Qt
class RegisterUser(QDialog):
'''Класс диалог регистрации пользователя на сервере.'''
def __init__(self, database, server):
super().__init__()
... | PypiClean |
/PyGeometry-z6-2.1.4.tar.gz/PyGeometry-z6-2.1.4/src/geometry/manifolds/torus01.py | from contracts import contract
import numpy as np
from .differentiable_manifold import DifferentiableManifold
from .differentiable_manifold import RandomManifold
__all__ = ["TorusW", "TorusW", "Ts", "Ts1", "Ts2", "Ts3"]
class TorusW(RandomManifold):
""" This is a torus whose coordinates wrap around in [0, W).
... | PypiClean |
/django_auditor_logs-1.0.3.tar.gz/django_auditor_logs-1.0.3/README.md | # Introduction
TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
# Getting Started
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
1. Installation process
2. Software depe... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/identity_governance/lifecycle_workflows/workflows/item/task_reports/item/task/task_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 |
/django-mediastore-0.7.1.tar.gz/django-mediastore-0.7.1/mediastore/static/mediastore/js/jquery-ui-1.7.2.custom.min.js | jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/mmtbx/monomer_library/tst_correct_hydrogens.py | from __future__ import absolute_import, division, print_function
pdb = """HETATM 1 N ALA A 1 -0.424 1.960 3.877 1.00 20.00 A N+1
HETATM 2 H ALA A 1 0.452 1.694 3.861 1.00 20.00 A H
HETATM 3 H2 ALA A 1 -0.472 2.843 4.121 1.00 20.00 A H
HETATM... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.