id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/ewatercycle_experiment_launcher-0.2.0.tar.gz/ewatercycle_experiment_launcher-0.2.0/ewatercycle_experiment_launcher/api/threeclickscience.py | import textwrap
from nbformat import NotebookNode
from nbformat.v4 import new_markdown_cell, new_code_cell, new_notebook
from ewatercycle_experiment_launcher.generate import PY3_META
from ewatercycle_experiment_launcher.process import process_notebook
def post(body):
"""Generate notebook and launch it"""
re... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/eslint/lib/rules/comma-spacing.js | "use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = {
meta: {
type: "layout",
docs: {
... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayTradeMergePrecreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayTradeMergePrecreateModel import AlipayTradeMergePrecreateModel
class AlipayTradeMergePrecreateRequest(object):
def __init__(self, biz_model=None):
self._biz_mo... | PypiClean |
/readgv-0.1.1.tar.gz/readgv-0.1.1/README.md | # ReadGV
Python Script to read, edit, modify and visualize and file conversion for VASP and Gaussian input and output!
This is actively developing version. Current version is very first trial.
### Installation
* pip install -e git+git://github.com/MAJabed/ReadGV.git
* With pip `pip install -e ReadGV/` [No avail... | PypiClean |
/Automated%20Lazy%20Unit%20Testing%20in%20Python-1.0.0.tar.gz/Automated Lazy Unit Testing in Python-1.0.0/fyp/mypkg/common.py | import sys
import time
import decorator
import inspect
import itertools
import operator
def todict(obj, classkey=None):
""" Serialise object to dictionary, with optional 'classkey' """
if isinstance(obj, dict):
for k in obj.keys():
obj[k] = todict(obj[k], classkey)
return obj
el... | PypiClean |
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/vms/v20200902/errorcodes.py |
# 访问上下游模块超时。
FAILEDOPERATION_ACCESSUPSTREAMTIMEOUT = 'FailedOperation.AccessUpstreamTimeout'
# 语音内容中含有敏感词,请[联系我们](https://cloud.tencent.com/document/product/1128/37720)沟通解决。
FAILEDOPERATION_CONTAINSENSITIVEWORD = 'FailedOperation.ContainSensitiveWord'
# 后端请求包解析失败,通常由于没有遵守 API 接口说明规范导致的,请参见[1004错误详解](https://cloud.t... | PypiClean |
/nionswift-io-15.2.0.tar.gz/nionswift-io-15.2.0/CHANGES.rst | Changelog (nionswift-io)
========================
15.2.0 (2022-08-17)
-------------------
- Update requirements, version.
- Add Python 3.11 support; drop Python 3.8 support.
0.15.1 (2022-05-28)
-------------------
- Update dependencies for Swift 0.16.3 compatibility.
0.15.0 (2021-11-12)
-------------------
- Fix han... | PypiClean |
/pied_piper_sdwan_sdk-1.0.51-py3-none-any.whl/openapi_client/model/nwpi_domain_monitor.py | import re # noqa: F401
import sys # noqa: F401
from openapi_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
... | PypiClean |
/octopus-sensing-4.1.0.tar.gz/octopus-sensing-4.1.0/octopus_sensing/common/message_creators.py |
from octopus_sensing.common.message import Message
class MessageType():
'''
Predefined message types including:
1- START: start of a stimulus
2- STOP: End of each stimulus
3- TERMINATE: terminating the process of each device
'''
START = "START"
STOP = "STOP"
TERMINA... | PypiClean |
/django-custom-acccounts-plus-1.0.0.tar.gz/django-custom-acccounts-plus-1.0.0/accounts/models.py | from django.db import models
from django.core.validators import RegexValidator
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
USERNAME_REGEX = '^[a-zA-Z0-9.+-]*$'
class CustomUserManager(BaseUserManager):
def create_user(self, username, email, password=None):
"""
Functi... | PypiClean |
/certora_cli_alpha_omer_CERT_945_inside_assert_the_assumptions_are_not_affect_assert_cast-20230518.13.30.246575-py3-none-any.whl/certora_cli/EVMVerifier/certoraType.py | from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Callable, Sequence
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 = log... | PypiClean |
/dash_trich_components-1.0.0.tar.gz/dash_trich_components-1.0.0/dash_trich_components/GridItem.py |
from dash.development.base_component import Component, _explicitize_args
class GridItem(Component):
"""A GridItem component.
A class for displaying an item in a grid
Designed to be wrapped in a function, similar to a higher-order component. Otherwise
the layout will render incorrectly
Keyword arguments:
- child... | PypiClean |
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/js/html-sanitizer-minified.js | (function(){var l=null,p=function(){function e(a){a=(""+a).match(E);return!a?l:new b(q(a[1]),q(a[2]),q(a[3]),q(a[4]),q(a[5]),q(a[6]),q(a[7]))}function z(a,e){return"string"==typeof a?encodeURI(a).replace(e,B):l}function B(a){a=a.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(a>>4&15)+"0123456789ABCDEF".charAt(a&15)}... | PypiClean |
/ast-toolbox-2020.9.1.7.tar.gz/ast-toolbox-2020.9.1.7/third_party/garage/src/garage/np/algos/off_policy_rl_algorithm.py |
from garage.np.algos import RLAlgorithm
from garage.sampler import OffPolicyVectorizedSampler
class OffPolicyRLAlgorithm(RLAlgorithm):
"""This class implements OffPolicyRLAlgorithm for off-policy RL algorithms.
Off-policy algorithms such as DQN, DDPG can inherit from it.
Args:
env_spec (EnvSpec... | PypiClean |
/flexflow-23.8.2.tar.gz/flexflow-23.8.2/examples/python/pytorch/resnet_torch.py | import torch
from torch import Tensor
import torch.nn as nn
from typing import Type, Any, Callable, Union, List, Optional
from flexflow.torch.model import PyTorchModel
def conv3x3(in_planes: int, out_planes: int, stride: int = 1, groups: int = 1, dilation: int = 1) -> nn.Conv2d:
"""3x3 convolution with padding"""
... | PypiClean |
/rtd_bin_server-1.4.0-py3-none-any.whl/bin/config.py | import logging
import os
from argparse import ArgumentParser
from dotenv import load_dotenv
from metrics import Byte, Time
from pprint import pformat
logger = logging.getLogger(__name__)
bin_logger = logging.getLogger(__package__)
def strtobool(s):
try:
s = s.lower()
except AttributeError:
p... | PypiClean |
/SnappEmailApiClient-0.3.38.tar.gz/SnappEmailApiClient-0.3.38/snapp_email/endpoints/signature/ListOfSignaturesPage_20Endpoint.py | import json
from snapp_email.datacontract.classes import ListOfSignaturesPage_20
from snapp_email.datacontract.utils import export_dict, fill
class ListOfSignaturesPage_20Endpoint:
def __init__(self, api_client):
self.api_client = api_client
def options(self, impersonate_user_id=None, accept_type... | PypiClean |
/mxnet_cu116-1.9.1-py3-none-manylinux2014_x86_64.whl/mxnet/contrib/text/utils.py |
# coding: utf-8
"""Provide utilities for text data processing."""
import collections
import re
def count_tokens_from_str(source_str, token_delim=' ', seq_delim='\n',
to_lower=False, counter_to_update=None):
"""Counts tokens in the specified string.
For token_delim=\'<td>\' and se... | PypiClean |
/OASYS1-shadow4-0.0.10.tar.gz/OASYS1-shadow4-0.0.10/orangecontrib/shadow4/widgets/sources/ow_bending_magnet.py | import sys
import time
import numpy
from orangewidget import gui
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui
from oasys.widgets import congruence
from oasys.util.oasys_util import EmittingStream
from orangecontrib.shadow4.widgets.gui.ow_electron_beam import OWElectronBeam
from... | PypiClean |
/pyStrich-0.8.tar.gz/pyStrich-0.8/pystrich/datamatrix/placement.py | __revision__ = "$Rev$"
class DataMatrixPlacer:
"""Class which takes care of placing codewords in the correct position
in the 2D datamatrix"""
def __init__(self):
"""Initialize with an empty matrix"""
self.matrix = None
self.rows = 0
self.cols = 0
def place_bit(self, p... | PypiClean |
/dossier.web-0.7.14.tar.gz/dossier.web-0.7.14/dossier/web/interface.py | from __future__ import absolute_import, division, print_function
import abc
import json
import bottle
from dossier.web import util
class Queryable(object):
'''Queryable supports parameterization from URLs and config.
Queryable is meant to be subclassed by things that have two
fundamental things in com... | PypiClean |
/DoEgen-0.4.8-py3-none-any.whl/doegen/create_resultfile.py | import xlsxwriter
workbook = xlsxwriter.Workbook('Experiment_results_template.xlsx')
worksheet = workbook.add_worksheet()
workbook.set_properties({
'title': 'Experimental Design Results',
'subject': 'Template',
'author': 'Sebastian Haan',
'company': 'SIH, The University of Sydney',
'comment... | PypiClean |
/zopyx.multieventcalendar-0.1.4.2.tar.gz/zopyx.multieventcalendar-0.1.4.2/zopyx/multieventcalendar/browser/stylesheets/README.txt | README for the 'browser/stylesheets/' directory
===============================================
This folder is a Zope 3 Resource Directory acting as a repository for
stylesheets.
Its declaration is located in 'browser/configure.zcml':
<!-- Resource directory for stylesheets -->
<browser:resourceDirectory
... | PypiClean |
/dm-sonnet-2.0.1.tar.gz/dm-sonnet-2.0.1/sonnet/src/functional/haiku.py | """Implements part of the Haiku ("Sonnet for JAX") API in TensorFlow 2."""
import collections
import functools
import itertools
import threading
import contextlib
from sonnet.src.functional import utils
import tensorflow as tf
Transformed = collections.namedtuple("Transformed", ("init", "apply"))
TransformedWithStat... | PypiClean |
/easy_cozmo-1.0.0-py3-none-any.whl/easy_cozmo/movements.py | from cozmo.util import degrees, Pose, distance_mm, speed_mmps
import cozmo
from . import easy_cozmo
from .say import _say_error, say_error
from .defaults import df_reverse_speed, \
df_rotate_speed, df_forward_speed, df_max_wheel_speed
def rotate_in_place(angle):
"""**Rotate in place for a given angle in degre... | PypiClean |
/cinq-auditor-cloudtrail-2.1.0.tar.gz/cinq-auditor-cloudtrail-2.1.0/cinq_auditor_cloudtrail/__init__.py | import json
from botocore.exceptions import ClientError
from cloud_inquisitor import get_aws_session, AWS_REGIONS
from cloud_inquisitor.config import dbconfig, ConfigOption
from cloud_inquisitor.constants import NS_AUDITOR_CLOUDTRAIL
from cloud_inquisitor.log import auditlog
from cloud_inquisitor.plugins import BaseAu... | PypiClean |
/nulink_twisted-0.1.0-py3-none-any.whl/twisted/internet/ssl.py | from zope.interface import implementedBy, implementer, implementer_only
# System imports
from OpenSSL import SSL
# Twisted imports
from twisted.internet import interfaces, tcp
supported = True
@implementer(interfaces.IOpenSSLContextFactory)
class ContextFactory:
"""A factory for SSL context objects, for server... | PypiClean |
/tf1_tensorflow_object_detection_api-1.15-cp37-cp37m-win_amd64.whl/tf1_tensorflow_object_detection_api-1.15.0.data/purelib/object_detection/utils/target_assigner_utils.py | """Utility functions used by target assigner."""
import tensorflow.compat.v1 as tf
from object_detection.core import box_list
from object_detection.core import box_list_ops
from object_detection.utils import shape_utils
def image_shape_to_grids(height, width):
"""Computes xy-grids given the shape of the image.
... | PypiClean |
/wagtail-restructure-2.16a0.tar.gz/wagtail-restructure-2.16a0/wagtail/static/wagtailadmin/js/page-editor.js | (()=>{"use strict";var e,t={85843:function(e,t,n){var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object... | PypiClean |
/chinilla-blockchain-1.4.0b6.tar.gz/chinilla-blockchain-1.4.0b6/chinilla/rpc/rpc_client.py | import asyncio
from ssl import SSLContext
from typing import Dict, List, Optional, Any
import aiohttp
from chinilla.server.outbound_message import NodeType
from chinilla.server.server import ssl_context_for_client
from chinilla.server.ssl_context import private_ssl_ca_paths
from chinilla.types.blockchain_format.sized... | PypiClean |
/harfang-3.2.5.tar.gz/harfang-3.2.5/tools/assimp_converter/assimp/port/PyAssimp/pyassimp/helper.py | import os
import ctypes
import operator
from distutils.sysconfig import get_python_lib
import re
import sys
try: import numpy
except ImportError: numpy = None
import logging;logger = logging.getLogger("pyassimp")
from .errors import AssimpError
additional_dirs, ext_whitelist = [],[]
# populate search directories ... | PypiClean |
/PyScada-0.8.0-py3-none-any.whl/pyscada/hmi/static/pyscada/js/pyscada/pyscada_v0-7-0rc14.js |
// VARIABLES
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//----------------------------------------... | PypiClean |
/aspose-words-cloud-23.7.0.tar.gz/aspose-words-cloud-23.7.0/asposewordscloud/models/list_info.py | import pprint
import re # noqa: F401
import datetime
import six
import json
class ListInfo(object):
"""DTO container with a single document list.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map... | PypiClean |
/admincer-1.2.0.tar.gz/admincer-1.2.0/README.md | # AdMincer
AdMincer is a command line tool for enriching datasets of screenshots used in
ML-based ad detection. It can probably be used with other object-detection
datasets, but ad detection is the main use case we're after.
## Installation
Clone this repository, then:
$ cd admincer/
$ pip install .
## Usa... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/webpack/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js | "use strict";
const streamChunksOfSourceMap = require("./streamChunksOfSourceMap");
const splitIntoLines = require("./splitIntoLines");
const streamChunksOfCombinedSourceMap = (
source,
sourceMap,
innerSourceName,
innerSource,
innerSourceMap,
removeInnerSource,
onChunk,
onSource,
onName,
finalSource,
colum... | PypiClean |
/cQuery-0.2.1.zip/cQuery-0.2.1/cquery/vendor/nose/tools/nontrivial.py |
import time
__all__ = ['make_decorator', 'raises', 'set_trace', 'timed', 'with_setup',
'TimeExpired', 'istest', 'nottest']
class TimeExpired(AssertionError):
pass
def make_decorator(func):
"""
Wraps a test decorator so as to properly replicate metadata
of the decorated function, includ... | PypiClean |
/isogeo-pysdk-3.8.2.tar.gz/isogeo-pysdk-3.8.2/isogeo_pysdk/models/catalog.py | # #############################################################################
# ########## Libraries #############
# ##################################
# standard library
import pprint
# other model
from isogeo_pysdk.models.workgroup import Workgroup
# #############################################################... | PypiClean |
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/python/ops/io_ops.py |
# pylint: disable=line-too-long
"""Inputs and Readers.
See the @{$python/io_ops} guide.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.eager import context
from tensorflow.python.framework import dtypes
from tensorflow.python.f... | PypiClean |
/sas-frontend-20211225.2.tar.gz/sas-frontend-20211225.2/sas_frontend/frontend_es5/2d14f8af.js | "use strict";(self.webpackChunksas_frontend=self.webpackChunksas_frontend||[]).push([[6786],{14114:function(n,e,r){r.d(e,{P:function(){return t}});var t=function(n){return function(e,r){if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){var t=e.constructor._observers;e.constructor._observers=n... | PypiClean |
/networking-nec-2015.2.0.tar.gz/networking-nec-2015.2.0/networking_nec/plugins/openflow/ofc_driver_base.py |
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class OFCDriverBase(object):
"""OpenFlow Controller (OFC) Driver Specification.
OFCDriverBase defines the minimum set of methods required by this plugin.
It would be better that other methods like update_* are implemented.
"""
@abc.abstractm... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/roi_heads/bbox_heads/scnet_bbox_head.py | from mmdet.models.builder import HEADS
from .convfc_bbox_head import ConvFCBBoxHead
@HEADS.register_module()
class SCNetBBoxHead(ConvFCBBoxHead):
"""BBox head for `SCNet <https://arxiv.org/abs/2012.10150>`_.
This inherits ``ConvFCBBoxHead`` with modified forward() function, allow us
to get intermediate s... | PypiClean |
/cody-adapter-transformers-3.0.1.tar.gz/cody-adapter-transformers-3.0.1/src/adapter_transformers/models/mpnet/__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 |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/action_url.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
class ActionUrl(AdditionalDataHolder, Parsable):
def __init__(self,) -> None:
"""
... | PypiClean |
/PyWireframe-extended-0.5.1_.tar.gz/PyWireframe-extended-0.5.1/PyWireframe/render.py | import sys,turtle
from PyWireframe.engine import *
from time import perf_counter
from tkinter import TclError
#Define some shapes
def cube(x, y, z, size):
line(x, y, z, size, y, z)
line(size, y, z, size, size, z)
line(size, size, z, y, size, z)
line(x, size, z, x, y, z)
line(x, y, size, size, y, s... | PypiClean |
/menten-gcn-0.4.0.tar.gz/menten-gcn-0.4.0/docs/overview.rst | ========
Overview
========
The goal of Menten GCN is to create GCN tensors from protein models (poses).
We are aligning with Spektral's vocabulary style when talking about GCNs
and Rosetta's vocabulary when talking about poses.
Graph Layout
###############
Each node (vertex) in our graph represents a single residue... | PypiClean |
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/DateTime.py | from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class DateTime(BaseModel):
"""A combination of date and time of day in the form [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] (see Chapter 5.4 of ISO 8601).
References:
https://schema.org... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/customtlvs_a77b90defd4dc2a97e3440bbaabec5e1.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 CustomTlvs(Base):
"""The customTlvs object contains the configuration information for custom TLVs.
The CustomTlvs class encapsulates a list o... | PypiClean |
/django-pays-0.1.0.tar.gz/django-pays-0.1.0/django_pays_demo/settings.py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: keep th... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/vmmigration/v1alpha1/_inputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ._enums import *
__all__ = [
'AccessKeyCredentialsArgs',
'AwsSourceDetailsArgs',
'ComputeEngineTargetDefaultsArgs',
'ComputeSchedulingArg... | PypiClean |
/confluent_avro-1.8.0.tar.gz/confluent_avro-1.8.0/README.md | [](https://pypi.org/project/confluent-avro/)
[](https://travis-ci.com/DhiaTN/avrokafka-py)
[.push([[9152],{40701:(e,t,n)=>{n.d(t,{J0:()=>T,YA:()=>v,bK:()=>_,CB:()=>b,Mu:()=>I,L1:()=>A,aZ:()=>w,qL:()=>R,nj:()=>h,x_:()=>Z,LM:()=>g,Ww:()=>m,v7:()=>E,g3:()=>C,_p:()=>N,az:()=>L,iO:()=>O,Ou:()=>x,WZ:()=>f,A7:()=>y});var r=n(21090),i=n... | PypiClean |
/risu-1.14.2.20230215132619-py3-none-any.whl/risuclient/plugins/core/network/interface-onboot.sh |
# Copyright (C) 2017 Robin Černín <cerninr@gmail.com>
# Copyright (C) 2020-2023 Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com>
# Copyright (C) 2020 Volkan Yalcin <vlyalcin@gmail.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | PypiClean |
/ncov_parser-0.7.0.tar.gz/ncov_parser-0.7.0/ncov/parser/Variants.py | import os
import sys
import re
import csv
class Variants():
'''
The Variants class to handle the variants.tsv file.
'''
def __init__(self, file, delimiter='\t'):
'''
Initialize the object with the variants.tsv file
'''
if os.path.exists(file):
self.file = fi... | PypiClean |
/hrflow-connectors-2.0.0.tar.gz/hrflow-connectors-2.0.0/src/hrflow_connectors/connectors/ceridian/connector.py | import typing as t
from hrflow_connectors.connectors.ceridian.warehouse import CeridianJobWarehouse
from hrflow_connectors.connectors.hrflow.warehouse import HrFlowJobWarehouse
from hrflow_connectors.core import (
BaseActionParameters,
Connector,
ConnectorAction,
WorkflowType,
)
from .schemas import C... | PypiClean |
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/core/kernels/boosted_trees/boosted_trees_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
from google.p... | PypiClean |
/ninchanese-cjklib-0.4.1.tar.gz/ninchanese-cjklib-0.4.1/scripts/convertdecomposition.py | import sys
import codecs
import os
import locale
import re
from optparse import OptionParser
from sqlalchemy import select
import cjklib
from cjklib.characterlookup import CharacterLookup
from cjklib import dbconnector
from cjklib.util import cross, UnicodeCSVFileIterator
# get local language and output encoding
lan... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/mpls/lsps/constrained_path/tunnels/tunnel/p2p_tunnel_attributes/p2p_secondary_paths/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/icecast.py |
import logging
from urllib2 import HTTPError
from ibid.config import DictOption, IntOption
from ibid.plugins import Processor, match, periodic
from ibid.utils import human_join
from ibid.utils.html import get_html_parse_tree
log = logging.getLogger('plugins.icecast')
features = {'icecast': {
'description': u'Fo... | PypiClean |
/bam-core-2023.4.30.1682823805.tar.gz/bam-core-2023.4.30.1682823805/bam_core/lib/airtable.py | from typing import Any, List, Union
from pyairtable import Table, formulas as fx, Api
from bam_core import settings
class Airtable(object):
def __init__(
self,
base_id: str = settings.AIRTABLE_BASE_ID,
token: str = settings.AIRTABLE_TOKEN,
):
self.base_id = base_id
se... | PypiClean |
/xdoctest-0.15.0.tar.gz/xdoctest-0.15.0/testing/pybind11_test/tmp/install_2.7.15.python2isdead/setuptools/sandbox.py | import os
import sys
import tempfile
import operator
import functools
import itertools
import re
import contextlib
import pickle
import textwrap
from setuptools.extern import six
from setuptools.extern.six.moves import builtins, map
import pkg_resources.py31compat
if sys.platform.startswith('java'):
import org.p... | PypiClean |
/glitter_sdk-0.3.0-py3-none-any.whl/glitter_sdk/core/auth/data/periodic_vesting_account.py |
from __future__ import annotations
from itertools import starmap
from typing import List
import attr
from glitter_proto.cosmos.vesting.v1beta1 import Period as Period_pb
from glitter_proto.cosmos.vesting.v1beta1 import (
PeriodicVestingAccount as PeriodicVestingAccount_pb,
)
from glitter_sdk.core import Coins
f... | PypiClean |
/epyk-flask-1.0.4.tar.gz/epyk-flask-1.0.4/epyk_flask/server_engine.py | import yaml, hashlib, sys, os, importlib
class MissingEpykFlaskConfigException(Exception):
"""Exception to be raised when the configuration is missing"""
pass
class MissingAttrConfigException(Exception):
"""Exception to be raised when an attribute is missing from the configuration"""
pass
class MissingRptO... | PypiClean |
/maclookup-cli-0.1.9.tar.gz/maclookup-cli-0.1.9/DESCRIPTION.rst | MAC address vendor lookup
=========================
A command-line utility to lookup info related to a MAC address or OUI,
such as vendor name and address, based on the MAC Address API.
Installation
------------
.. code-block:: console
$ pip install maclookup-cli
User Install
------------
You can also perfo... | PypiClean |
/beast-2.0.0.tar.gz/beast-2.0.0/docs/photometry_files.rst | ################
Photometry Files
################
Observed Photometry file
========================
The photometry files used by the BEAST are composed of tables with one row
per source. The table should have columns
giving the measured fluxes in all photemetric bands to be fit and the ra & dec
coordinates of each ... | PypiClean |
/pyPENELOPEtools-1.2.0.tar.gz/pyPENELOPEtools-1.2.0/pypenelopetools/penepma/utils.py |
# Standard library modules.
# Third party modules.
import pyxray
# Local modules.
# Globals and constants variables.
_SUBSHELL_LOOKUP = {
pyxray.atomic_subshell("K"): 1,
pyxray.atomic_subshell("L1"): 2,
pyxray.atomic_subshell("L2"): 3,
pyxray.atomic_subshell("L3"): 4,
pyxray.atomic_subshell("M1... | PypiClean |
/advanced_descriptors-4.0.3-py3-none-any.whl/advanced_descriptors/separate_class_method.py |
# Copyright 2017 - 2022 Alexey Stepanov aka penguinolog
# 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 ... | PypiClean |
/salt-ssh-9000.tar.gz/salt-ssh-9000/doc/topics/releases/3001.8.rst | .. _release-3001-8:
========================
Salt 3001.8 (2021-08-20)
========================
Version 3001.8 is a CVE security fix release for :ref:`3001 <release-3001>`.
Fixed
-----
- Verify the owner of an existing config before trusting it during install. If the owner cannot be verified, back it up and use def... | PypiClean |
/boto-2.49.0.tar.gz/boto-2.49.0/docs/source/releasenotes/v2.9.5.rst | boto v2.9.5
===========
:date: 2013/05/28
This release adds support for `web identity federation`_ within the Secure
Token Service (STS) & fixes several bugs.
.. _`web identity federation`: http://docs.aws.amazon.com/STS/latest/UsingSTS/CreatingWIF.html
Features
--------
* Added support for web identity federation... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_21/api/drives_api.py | from __future__ import absolute_import
import re
# python 2 and python 3 compatibility library
import six
from typing import List, Optional
from .. import models
class DrivesApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api221_drives_get_with_http_info(
self... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/events/item/instances/item/decline/decline_post_request_body.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from .......models import time_slot
class DeclinePostRequestBody(AdditionalDataHolder, Parsable):
"""
Pro... | PypiClean |
/apacepy-1.0.17.tar.gz/apacepy-1.0.17/examples/AgeStructuredSIR/AgeStructSIRModel.py | from apacepy.TimeSeries import SumIncidence, SumPrevalence, SumCumulativeIncidence, RatioTimeSeries
from deampy.parameters import Constant, Inverse, MatrixOfConstantParams
from apacepy.inputs import EpiParameters, ModelSettings
from apacepy.model_objects import Compartment, EpiIndepEvent, EpiDepEvent
class AgeStruct... | PypiClean |
/django-image-loupe-0.5.tar.gz/django-image-loupe-0.5/loupe/migrations/0001_initial.py | from __future__ import unicode_literals
from django.db import models, migrations
import loupe.storage
import loupe.fields
import loupe.models
import dirtyfields.dirtyfields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='LoupeIm... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/api/schemas/get_run_schema.py | from typing import Any, Dict, Optional, Union
import httpx
from ...client import Client
from ...models.assay_run_schema import AssayRunSchema
from ...models.not_found_error import NotFoundError
from ...types import Response
def _get_kwargs(
*,
client: Client,
schema_id: str,
) -> Dict[str, Any]:
url... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/lib/ansible/template/native_helpers.py |
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ast import literal_eval
from itertools import islice, chain
import types
from jinja2.runtime import StrictUndefined
from ansible.module_utils._text import to_text
from ansible.module_utils.co... | PypiClean |
/llnl_pydv-3.1.15-py3-none-any.whl/pydv/docs/getting_started.rst | .. _getting_started:
Getting started
===============
This section gives a tutorial introduction to PyDV. A sample session is run which highlights the basic PyDV commands.
.. note::
In PyDV commands, spaces are used to delimit items on the input line. More precisely items on a command line are
either space del... | PypiClean |
/littleworkers-0.3.2.tar.gz/littleworkers-0.3.2/docs/_build/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/perceiver_pytorch-0.8.8-py3-none-any.whl/perceiver_pytorch/mixed_latents.py | import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange, repeat
from perceiver_pytorch.perceiver_pytorch import exists, default, cache_fn, fourier_encode, PreNorm, FeedForward, Attention
# latent mixer
def Mixer(seq_len, mult = 4, dropout = 0.):
return nn.Sequentia... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/sites/item/lists/item/content_types/add_copy_from_content_type_hub/add_copy_from_content_type_hub_post_request_body.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
class AddCopyFromContentTypeHubPostRequestBody(AdditionalDataHolder, Parsable):
"""
Provides operations to... | PypiClean |
/dbt-iris-1.3.5b1.tar.gz/dbt-iris-1.3.5b1/intersystems_iris/dbapi/preparser/_TokenList.py | import abc
import intersystems_iris.dbapi.preparser._Token
class ITokenEnumerator(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def Reset(self):
pass
@abc.abstractmethod
def Current(self):
pass
@abc.abstractmethod
def MoveNext(self):
pass
@abc.abst... | PypiClean |
/gtui-0.1.1.tar.gz/gtui-0.1.1/README.md | ## gtui
Task scheduler & executor with text-based user interface, able to:
* declare task & dependency as a graph
* execute task graph
* show task status, stdout & log
* provide a nice user interface
To install:
```
$ pip install gtui
```
## Quickstart
Let's say we have some helloworld tasks & their dependencies... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/managed_device_collection_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from . import base_collection_pagination_count_response, managed_device
class ManagedDeviceCollectionResponse(base_collection_paginatio... | PypiClean |
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/ent/n2/m/trie_ml.py |
d_trie_ml = {'_': ['ml_vasanthakumari',
'ml_motorsports',
'ml_macnaghten',
'ml_inequality',
'ml_andreasen',
'ml_fairness',
'ml_aviation',
'ml_jaisimha',
'ml_monitor',
'ml_perlman',
'ml_procise',
'ml_harris',
'ml_hayden',
'ml_cd... | PypiClean |
/lava-cactus-1.1.1.tar.gz/lava-cactus-1.1.1/cactus/skeleton/static/js/vendor/bootstrap.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core')) :
typeof define === 'function' && define.amd ? define(['@popperjs/core'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.bo... | PypiClean |
/nfl_veripy-0.0.2-py3-none-any.whl/nfl_veripy/dynamics/Pendulum.py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from nfl_veripy.utils.mpc import control_mpc
from scipy.linalg import solve_discrete_are
from .Dynamics import DiscreteTimeDynamics
class Pendulum(DiscreteTimeDynamics):
def __init__(self):
self.continuous_time = False
... | PypiClean |
/verbcl_graph4nlp_cuda102-0.1.0-py3-none-any.whl/graph4nlp/pytorch/test/graph_classification/graph_classification_results.md | Graph Attention Networks (GAT)
============
- GAT paper link: [https://arxiv.org/abs/1710.10903](https://arxiv.org/abs/1710.10903)
- GAT-BiSep paper link: [https://arxiv.org/abs/1808.07624](https://arxiv.org/abs/1808.07624)
- GAT-BiFuse paper link: [https://arxiv.org/abs/1908.04942](https://arxiv.org/abs/1908.04942)
-... | PypiClean |
/tensorflow_aarch64-2.14.0rc0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/training/experimental/loss_scale.py | """Contains LossScale classes."""
import abc
from tensorflow.python.distribute import distribute_lib
from tensorflow.python.distribute import reduce_util
from tensorflow.python.eager import context
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import indexed_slices
from tensorflow.pyt... | PypiClean |
/vumi-go-0.5.0.tar.gz/vumi-go-0.5.0/go/billing/migrations/0001_initial.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
depends_on = (
("auth", "0001_initial"),
)
def forwards(self, orm):
# Adding model 'TagPool'
db.create_table('billing_tagpool', (
... | PypiClean |
/import-guard-0.1.2.tar.gz/import-guard-0.1.2/import_guard/matchers.py | import re
from .models import CallerInfo, ImportInfo
def wrap(obj):
if isinstance(obj, Matcher):
return obj
if isinstance(obj, str):
return Exact(obj)
if isinstance(obj, (list, tuple)):
return Any(obj)
if isinstance(obj, re.Pattern):
return Regex(obj)
raise Typ... | PypiClean |
/quantastica-qps-api-0.9.9.tar.gz/quantastica-qps-api-0.9.9/quantastica/qps_api/qps_api.py | import os
import configparser
import requests
import time
import csv
from io import StringIO
from copy import deepcopy
def _urljoin(*args):
return "/".join(map(lambda x: str(x).rstrip("/"), args))
class QGENAPI:
def __init__(self, qps_api):
self.qps_api = qps_api
return
def solve(self, problem, settings = ... | PypiClean |
/jupyterlab-drawio-0.8.0.tar.gz/jupyterlab-drawio-0.8.0/src/mxgraph/javascript/src/js/util/mxWindow.js | * Class: mxWindow
*
* Basic window inside a document.
*
* Examples:
*
* Creating a simple window.
*
* (code)
* var tb = document.createElement('div');
* var wnd = new mxWindow('Title', tb, 100, 100, 200, 200, true, true);
* wnd.setVisible(true);
* (end)
*
* Creating a window that contains an iframe. ... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md | # Disallow the use of custom TypeScript modules and namespaces (`no-namespace`)
Custom TypeScript modules (`module foo {}`) and namespaces (`namespace foo {}`) are considered outdated
ways to organize TypeScript code. ES2015 module syntax is now preferred (`import`/`export`).
This rule still allows the use of TypeScr... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tools/data_composer/DataComposer.py | """Data composer, crunch constants into binary blobs to load. """
import binascii
import os
import re
import struct
import sys
from math import copysign, isinf, isnan
from nuitka.__past__ import BytesIO, long, to_byte, unicode, xrange
from nuitka.build.DataComposerInterface import deriveModuleConstantsBlobName
from n... | PypiClean |
/readmd-0.1.2.tar.gz/readmd-0.1.2/readmd.py |
from __future__ import print_function, division, unicode_literals
import re
import sys
try:
from io import StringIO
except:
try: import cStringIO as StringIO
except: import StringIO
DEFAULT_WIDTH = 80
MIN_WIDTH = 10
NUM_SPACES = 4
SPACES = ' ' * NUM_SPACES
# SPECIAL STATE TYPES
TYPE_HR = 1
TYPE_UL = 2
... | PypiClean |
/amz-tool-2021.5.1.tar.gz/amz-tool-2021.5.1/amz/data/githooks/scripts/check_copyright.py | import os
import sys
import re
from identify import identify
file_list = sys.argv[1:]
# Exit if no files given
if not file_list:
print("No files given!")
sys.exit(0)
def check_file(filepath: str, comment_symbol: str):
with open(filepath, 'r') as f:
# Search for beginning of disclaimer
fo... | PypiClean |
/client_messanger-1.2.tar.gz/client_messanger-1.2/client/client.py | import os
import sys
from Cryptodome.PublicKey import RSA
from PyQt5.QtWidgets import QApplication, QMessageBox
from common.variables import *
from common.utils import get_params
from common.errors import ServerError
from client.database import ClientDatabase
from client.transport import ClientTransport
from clien... | PypiClean |
/usf-account-service-client-0.0.7.tar.gz/usf-account-service-client-0.0.7/account_service_client/client.py | from typing import Any
from us_libraries.client.base_client import BaseClient
from us_libraries.graphite import client_timing
service_name = "usf-account-service"
class AccountClient(BaseClient):
def __init__(self) -> None:
super().__init__(service_name)
@client_timing
def get_driver(self, driv... | PypiClean |
/cleantweet-0.1.1.tar.gz/cleantweet-0.1.1/README.md | CleanTweet version 0.1.1
CleanTweet helps in Natural Language Processing tasks especially in the area of preprocessing and cleaning your data
fetched from the Twitter API Backend.
Installation <br/>
pip install cleantweet <br/>
Get Started <br/>
How to clean your Twitter Object:
Example 1: If the text file containi... | PypiClean |
/magic_impute-3.0.0-py3-none-any.whl/magic/plot.py |
from .magic import MAGIC
from .utils import in_ipynb
from matplotlib import animation
from matplotlib import rc
import matplotlib.pyplot as plt
import numbers
import numpy as np
import pandas as pd
import scprep
def _validate_gene(gene, data):
if isinstance(gene, str):
if not isinstance(data, pd.DataFra... | PypiClean |
/jsoner-lib-0.5.tar.gz/jsoner-lib-0.5/jsoner/main.py | import os
import json
from pydantic import BaseModel
class Jsoner:
"""
A class for saving arbitrary data models to a json file
:param models: list of model that will be saving
:param filename: name of file where will be saving data
:param save_immediately: if true: saving will sta... | PypiClean |
/osmium-2.15.0.tar.gz/osmium-2.15.0/contrib/protozero/README.md | # protozero
Minimalistic protocol buffer decoder and encoder in C++.
Designed for high performance. Suitable for writing zero copy parsers and
encoders with minimal need for run-time allocation of memory.
Low-level: this is designed to be a building block for writing a very
customized decoder for a stable protobuf s... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.