id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/cve_bot-1.0.0-py3-none-any.whl/cve_bot/updaters.py | import json
import logging
import requests
from sqlalchemy import select
from sqlalchemy.orm import Session
from telegram.ext import CallbackContext
from cve_bot import db
from cve_bot.models import CVE, Notification, Package, PackageCVE, Subscription
from cve_bot.perf import track
logger = logging.getLogger(__name_... | PypiClean |
/SOLVCON-0.1.4.tar.gz/SOLVCON-0.1.4/solvcon/batch_torque.py | from ctypes import Structure
class TmRoots(Structure):
"""
The data structure for torque tm API initialization.
"""
from ctypes import c_uint, c_int, c_void_p
_fields_ = [
('tm_me', c_uint),
('tm_parent', c_uint),
('tm_nnodes', c_int),
('tm_ntasks', c_int),
('... | PypiClean |
/mdns_beacon-0.6.1-py3-none-any.whl/mdns_beacon/beacon.py | import logging
import time
from ipaddress import IPv4Address, IPv6Address, ip_address
from typing import Any, Dict, List, Optional, Union
from slugify import slugify
from typing_extensions import Literal
from zeroconf import ServiceInfo
from .base import BaseBeacon
logger = logging.getLogger(__name__)
PROTOCOL = Li... | PypiClean |
/google-cloud-network-connectivity-2.0.2.tar.gz/google-cloud-network-connectivity-2.0.2/google/cloud/networkconnectivity_v1/types/hub.py | from __future__ import annotations
from typing import MutableMapping, MutableSequence
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
import proto # type: ignore
__protobuf__ = proto.module(
package="google.cloud.networkconnectivity.v1",
m... | PypiClean |
/config_manager_evjeny-0.3.0.tar.gz/config_manager_evjeny-0.3.0/config_manager/config.py |
import os
from argparse import ArgumentParser
import json
from typing import Optional, Dict, Any
from config_manager.variable_parsers import ListType, BasicParser
class Config(BasicParser):
"""
Class to define required variables,
their types and default values, for example:
class BotConfig(Config):... | PypiClean |
/avwx_engine-1.8.18-py3-none-any.whl/avwx/current/base.py |
# stdlib
import asyncio as aio
from datetime import date
from typing import List, Optional, Tuple, Union
# module
from avwx.base import ManagedReport
from avwx.service import get_service
from avwx.static.core import WX_TRANSLATIONS
from avwx.structs import Code, Coord, ReportData, ReportTrans, Sanitization, Units
d... | PypiClean |
/solara_assets-1.19.0.tar.gz/solara_assets-1.19.0/cdn/codemirror@5.65.3/src/util/misc.js | export function bind(f) {
let args = Array.prototype.slice.call(arguments, 1)
return function(){return f.apply(null, args)}
}
export function copyObj(obj, target, overwrite) {
if (!target) target = {}
for (let prop in obj)
if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)... | PypiClean |
/certora_cli_alpha_martin_lemmas_refactor-20230526.13.22.461529-py3-none-any.whl/certora_cli/EVMVerifier/certoraBuild.py | import enum
import json
import logging
import os
import re
import shutil
import sys
import typing
from collections import OrderedDict
from enum import Enum
from functools import lru_cache, reduce
from pathlib import Path
from typing import Any, Dict, List, Tuple, Optional, Set, BinaryIO, Iterator
from Crypto.Hash impor... | PypiClean |
/building_plus-0.1.10.tar.gz/building_plus-0.1.10/building_plus/plot_sim.py | import csv
import matplotlib.pyplot as plt
from multiprocessing import Process
def plot_sim(facility,T_zone,Q_transfer,building,date,filename):
dr=csv.DictReader(open(filename,'r'))
e_plus = {}
for row in dr:
if len(list(e_plus.keys())) == 0:
e_plus={k.rstrip():[] for k in row}
... | PypiClean |
/ztfy.jqueryui-0.7.12.tar.gz/ztfy.jqueryui-0.7.12/src/ztfy/jqueryui/resources/js/tiny_mce/plugins/table/js/row.js | tinyMCEPopup.requireLangPack();
function init() {
tinyMCEPopup.resizeToInnerSize();
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgc... | PypiClean |
/mesospim_control-1.8.0-py3-none-any.whl/mesoSPIM/src/utils/acquisitions.py | import indexed
import os.path
class Acquisition(indexed.IndexedOrderedDict):
'''
Custom acquisition dictionary. Contains all the information to run a single
acquisition.
Args:
x_pos (float): X start position in microns
y_pos (float): Y start position in microns
z_start (float):... | PypiClean |
/viur_core-3.5.0a1-py3-none-any.whl/viur/core/bones/randomslice.py | from random import random, sample, shuffle
from typing import Dict, List, Optional
from itertools import chain
from math import ceil
from viur.core import db
from viur.core.bones.base import BaseBone
class RandomSliceBone(BaseBone):
"""
This class is particularly useful when you want to retrieve a random sa... | PypiClean |
/raumd-0.0.2.tar.gz/raumd-0.0.2/main/runner.py | import subprocess
import json
from threading import Timer
from .console import console
from .configurer import configuration
SEPARATOR = "="
def find_sequence(idz, sequence):
"""find the sequence from sequence.json file."""
sequence_id = idz[0]
found = False
if sequence_id in sequence:
seque... | PypiClean |
/dcicsnovault-10.1.0.1b1-py3-none-any.whl/snovault/calculated.py | from __future__ import absolute_import
import venusian
from pyramid.decorator import reify
from pyramid.traversal import find_root
from types import MethodType
from .interfaces import (
CALCULATED_PROPERTIES,
CONNECTION,
)
def includeme(config):
config.registry[CALCULATED_PROPERTIES] = CalculatedPropertie... | PypiClean |
/tester-test-123asd-1.0.1.tar.gz/tester-test-123asd-1.0.1/verizon/models/history_search_filter.py | from verizon.api_helper import APIHelper
from verizon.models.device import Device
from verizon.models.history_search_filter_attributes import HistorySearchFilterAttributes
class HistorySearchFilter(object):
"""Implementation of the 'HistorySearchFilter' model.
The selected device and attributes for which a ... | PypiClean |
/BabitMF_GPU-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/bmf/hml/hmp/tracer.py | import bmf.hml.hmp as mp
def singleton(class_):
instances = {}
def getinstance(*args, **kwargs):
if class_ not in instances:
instances[class_] = class_(*args, **kwargs)
return instances[class_]
return getinstance
def get_device_type(device):
device = str(device).lower()... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/People.py | import json
from alipay.aop.api.constant.ParamConstants import *
class People(object):
def __init__(self):
self._nick_name = None
self._real_name = None
self._voucher_id = None
self._work_no = None
@property
def nick_name(self):
return self._nick_name
@nick_... | PypiClean |
/spider_admin_pro-2.0.7-py3-none-any.whl/spider_admin_pro/web/public/static/js/chunk-3a584aad.7c8d6dfa.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a584aad"],{"0d65":function(e){e.exports={color:["#2d8cf0","#19be6b","#ff9900","#E46CBB","#9A66E4","#ed3f14"],backgroundColor:"rgba(0,0,0,0)",textStyle:{},title:{textStyle:{color:"#516b91"},subtextStyle:{color:"#93b7e3"}},line:{itemStyle:{normal:{borderW... | PypiClean |
/pyapi-client-0.2.0.tar.gz/pyapi-client-0.2.0/pyapi/client/__init__.py | from functools import partial
from pathlib import Path
from types import ModuleType
from typing import Any, MutableSequence, Optional, Protocol, Tuple, Type, Union
import httpx
from openapi_core import Spec
from openapi_core.validation.request import openapi_request_validator
from openapi_core.validation.request.proto... | PypiClean |
/python2-utmp-0.4.2.tar.gz/python2-utmp-0.4.2/README.rst | ====
utmp
====
Pure-Python library to decode/read utmp and wtmp files.
Please note that there is an alternative library which uses the underlying C API: pyutmp_
This package requires Python 2.7.
What is utmp/wtmp?
==================
**utmp**, **wtmp**, **btmp** and variants such as **utmpx**, **wtmpx** and **btmpx**... | PypiClean |
/pdm_backend-2.1.6.tar.gz/pdm_backend-2.1.6/src/pdm/backend/config.py | from __future__ import annotations
import glob
import os
import sys
from pathlib import Path
from typing import TYPE_CHECKING, Any, TypeVar
from pdm.backend._vendor import tomli_w
from pdm.backend._vendor.pyproject_metadata import ConfigurationError, StandardMetadata
from pdm.backend.exceptions import ConfigError, Va... | PypiClean |
/Template-Toolkit-Python-0.2.tar.gz/Template-Toolkit-Python-0.2/template/parser.py |
import collections
import re
import sys
from template import util
from template.constants import *
from template.directive import Directive
from template.grammar import Grammar
from template.util import TemplateException
"""
template.parser - LALR(1) parser for compiling template documents
SYNOPSIS
import tem... | PypiClean |
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glosser/Glypher.py | import gtk
from matplotlib.backends.backend_cairo import RendererCairo
import pangocairo
from aobject.utils import *
import pango
import gobject
from .. import glypher
import copy
from lxml import etree
import cairo
from aobject import aobject
from aobject.paths import *
from ..tablemaker import *
import rsvg
import S... | PypiClean |
/python_openstackclient-6.2.0-py3-none-any.whl/openstackclient/network/v2/network_meter_rule.py | import logging
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common
from openstackclient.network import common
LOG = logging.getLogger(__name__)
def _get_columns(item):
colu... | PypiClean |
/monk_colab-0.0.1.tar.gz/monk_colab-0.0.1/monk/gluon/finetune/level_10_schedulers_main.py | from monk.gluon.finetune.imports import *
from monk.system.imports import *
from monk.gluon.finetune.level_9_transforms_main import prototype_transforms
class prototype_schedulers(prototype_transforms):
'''
Main class for all learning rate schedulers in expert mode
Args:
verbose (int): Set verbo... | PypiClean |
/py-osinfo-0.1.1.tar.gz/py-osinfo-0.1.1/osinfo/osinfo.py |
# Copyright (c) 2014, Matthew Brennan Jones <matthew.brennan.jones@gmail.com>
# Py-osinfo is a Python module to get the OS type, brand, release, and kernel
# It uses a MIT style license
# It is hosted at: https://github.com/workhorsy/py-osinfo
#
# Permission is hereby granted, free of charge, to any person obtaining
#... | PypiClean |
/modelyst-dbgen-1.0.0a5.tar.gz/modelyst-dbgen-1.0.0a5/src/dbgen/cli/run.py |
from datetime import datetime
from logging import getLogger
from pathlib import Path
from typing import List, Optional
from uuid import UUID
import typer
from rich.console import Console
from rich.table import Column, Table
from rich.text import Text
from sqlmodel import Session, select
import dbgen.cli.styles as st... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/stylelint-prettier/LICENSE.md | # The MIT License (MIT)
Copyright © 2018 Ben Scott
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publis... | PypiClean |
/interpretdl-0.8.0.tar.gz/interpretdl-0.8.0/README_CN.md | 中文 | [**ENGLISH**](./README.md)

[](https://github.com/PaddlePaddle/InterpretDL/releases)
[](https://pypi.org/project/interpretdl)
[.push([[41759],{76865:(e,t,r)=>{r(54444);var i=r(37500),n=r(33310);r(52039);function o(){o=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t)... | PypiClean |
/bio_pyminer_norm-0.2.6-py3-none-any.whl/pyminer_norm/malat1_and_mito_filter.py | import seaborn as sns
from matplotlib import pyplot as plt
import pandas as pd
def get_individual_malat_mito_scatter(in_file, col_counts_df, col_sums_df, base_dir_dict):
plt.clf()
f, ax = plt.subplots(figsize=(6, 6))
df = pd.DataFrame({"malat1_pcnt": col_counts_df[in_file],
"mito_pc... | PypiClean |
/unit-python-sdk-0.28.0.tar.gz/unit-python-sdk-0.28.0/unit/models/customerToken.py | from unit.models import *
class CustomerTokenDTO(object):
def __init__(self, token: str, expires_in: int):
self.type = "customerBearerToken"
self.attributes = {"token": token, "expiresIn": expires_in}
@staticmethod
def from_json_api(_id, _type, attributes, relationships):
return C... | 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/272c39d917bd1eb6eb21fc7370b726e2.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 |
/revolt_baidu.py-0.0.5.tar.gz/revolt_baidu.py-0.0.5/revolt/message.py | from __future__ import annotations
import datetime
from typing import TYPE_CHECKING, Any, Coroutine, Optional, Union
from .types.message import Component
from .asset import Asset, PartialAsset
from .channel import DMChannel, GroupDMChannel, TextChannel, SavedMessageChannel
from .embed import Embed, SendableEmbed, t... | PypiClean |
/PyQtAds-3.8.1.tar.gz/PyQtAds-3.8.1/README.md | 

------------------
[](https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/actions?query=workflow%3Alinux-builds)
[{
var close_button = '<button onclick="'+ cmd +'" type="button" aria-label="Close"><span aria-hidden="true">×</span></button>'
$(ele).append(close_button);
}
Array.prototype.find_one = function (func) {
var temp ;
for (var i = 0; i < this.length; i++) {
if (func(... | PypiClean |
/time_series_transform-1.1.3.tar.gz/time_series_transform-1.1.3/time_series_transform/transform_core_api/util.py | from numpy.fft import *
import pandas as pd
import numpy as np
import pywt
from scipy.stats.mstats import gmean
def moving_average(arr, windowSize=3) :
"""
moving_average the arithimetic moving average
Given the window size, this function will perform simple moving average
Parameters
---... | PypiClean |
/jdcloud_cli-1.2.12.tar.gz/jdcloud_cli-1.2.12/jdcloud_cli/cement/ext/ext_colorlog.py | import os
import sys
import logging
from colorlog import ColoredFormatter
from ..ext.ext_logging import LoggingLogHandler
from ..utils.misc import is_true
class ColorLogHandler(LoggingLogHandler):
"""
This class implements the :class:`cement.core.log.ILog` interface. It is
a sub-class of :class:`cement.... | PypiClean |
/machine_common_sense-0.7.1.tar.gz/machine_common_sense-0.7.1/machine_common_sense/scripts/run_interactive_scenes_follow_path.py | import math
from runner_script import MultipleFileRunnerScript
from machine_common_sense.controller import Controller
from machine_common_sense.controller_events import (
AbstractControllerSubscriber, ControllerEventPayload)
MAX_DISTANCE = 0.06
MAX_DELTA_ANGLE = 11
"""
Must be run at oracle metadata level on d... | PypiClean |
/numpy_demo-1.23.0-cp37-cp37m-manylinux2014_aarch64.whl/numpy_demo/core/defchararray.py | import functools
import sys
from .numerictypes import (
string_, unicode_, integer, int_, object_, bool_, character)
from .numeric import ndarray, compare_chararrays
from .numeric import array as narray
from numpy_demo.core.multiarray import _vec_string
from numpy_demo.core.overrides import set_module
from numpy_de... | PypiClean |
/sumo-2.3.6.tar.gz/sumo-2.3.6/README.rst | Sumo
====
.. image:: https://img.shields.io/github/actions/workflow/status/smtg-ucl/sumo/tests.yml?branch=master
:target: https://github.com/SMTG-UCL/sumo/actions?query=workflow%3A%22Run+tests%22
:alt: Build Status
.. image:: http://joss.theoj.org/papers/d12ca1f4198dffa2642a30b2ab01e16d/status.svg
:targe... | PypiClean |
/invenio_app_ils-1.0.0a60.tar.gz/invenio_app_ils-1.0.0a60/invenio_app_ils/patrons/views.py | from elasticsearch import VERSION as ES_VERSION
from flask import Blueprint, current_app
from flask_login import current_user
from invenio_circulation.search.api import search_by_patron_item_or_document
from webargs import fields
from webargs.flaskparser import use_kwargs
from invenio_app_ils.circulation.search import... | PypiClean |
/vultr-python-client-1.0.2.tar.gz/vultr-python-client-1.0.2/vultr_python_client/paths/instances/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from vultr_python_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import r... | PypiClean |
/awesomediff-test-1.0.0.tar.gz/awesomediff-test-1.0.0/awesomediff/solvers.py | from awesomediff.core import variable
from awesomediff.core import evaluate
from awesomediff.func import sin
from awesomediff.func import cos
from awesomediff.func import tan
from awesomediff.func import log
from awesomediff.func import sqrt
from awesomediff.func import exp
from awesomediff.func import sinh
from awesom... | PypiClean |
/HkmCodePy_hkmConfig-0.0.2-py3-none-any.whl/hkmConfig/Helpers/ConfigHelper.py | def hkmUpdateYaml(newValue):
key_ = []
if isinstance(newValue,dict):
for key,value in newValue.items():
f = hkmUpdateYaml(value)
if isinstance(f,list):
[key_.append(key.replace('.','_@_')+"."+x) for x in f]
else:
if not f:
... | PypiClean |
/masked_ai-1.0.15.tar.gz/masked_ai-1.0.15/README.md | # Masked-AI

[](https://badge.fury.io/py/masked-ai)
Masked-AI is a Python SDK and CLI wrappers that enable the usage of public LLM (Language Model) APIs such as Ope... | PypiClean |
/craft-parts-1.24.1.tar.gz/craft-parts-1.24.1/craft_parts/state_manager/pull_state.py | from typing import Any, Dict, List, Optional
from overrides import override
from .step_state import StepState
class PullState(StepState):
"""Context information for the pull step."""
assets: Dict[str, Any] = {}
outdated_files: Optional[List[str]] = None
outdated_dirs: Optional[List[str]] = None
... | PypiClean |
/PyKat-1.2.94.tar.gz/PyKat-1.2.94/pykat/commands.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy
import warnings
import pykat
import pykat.external.six as six
import pykat.exceptions as pkex
if six.PY2:
import exceptions
from pykat.components impo... | PypiClean |
/django-ug-4.2.41.tar.gz/django-ug-4.2.41/django/db/models/sql/subqueries.py | from django.core.exceptions import FieldError
from django.db.models.sql.constants import CURSOR, GET_ITERATOR_CHUNK_SIZE, NO_RESULTS
from django.db.models.sql.query import Query
__all__ = ["DeleteQuery", "UpdateQuery", "InsertQuery", "AggregateQuery"]
class DeleteQuery(Query):
"""A DELETE SQL query."""
comp... | PypiClean |
/djangoautorouter-0.1.tar.gz/djangoautorouter-0.1/auto_router/core.py | import importlib
from inspect import isclass
from rest_framework.routers import DefaultRouter
from django.urls import path, include
from django.conf import settings
class AutoRouter:
def __init__(self, endpoint: str, namespace: str, module: str = None) -> None:
self.endpoint: str = endpoint
self... | PypiClean |
/amundsencommon_azure-0.3.9-py3-none-any.whl/amundsen_common/models/user.py |
from typing import Optional, Dict
import attr
from marshmallow import ValidationError, validates_schema, pre_load
from marshmallow_annotations.ext.attrs import AttrsSchema
"""
TODO: Explore all internationalization use cases and
redesign how User handles names
TODO - Delete pre processing of the Data
Once all of th... | PypiClean |
/grizzly_loadtester_ls-1.1.0-py3-none-any.whl/grizzly_ls/__main__.py | import sys
import argparse
import logging
from typing import NoReturn, List
from .server import GrizzlyLanguageServer
def parse_arguments() -> argparse.Namespace:
parser = argparse.ArgumentParser(prog='grizzly-ls')
parser.add_argument(
'--socket',
action='store_true',
required=False... | PypiClean |
/let_me_answer_for_you-0.1.2-py3-none-any.whl/let_me_answer_for_you/chatbot.py |
__all__ = ['ChatBot']
# Cell
from .dialog_system import DialogSystem
import logging
from unittest.mock import patch
from collections import defaultdict
from os import system
import pandas as pd
logging.basicConfig(
#filename='example.log',
format='%(asctime)s %(levelname)s:%(message)s',
level=logging.ER... | PypiClean |
/rainbow_optical_flow-2022.4.6-py3-none-any.whl/rainbow/optical_flow/third_party/gma/core/utils/augmentor.py | import numpy as np
import random
import math
from PIL import Image
import cv2
cv2.setNumThreads(0)
cv2.ocl.setUseOpenCL(False)
import torch
from torchvision.transforms import ColorJitter
import torch.nn.functional as F
class FlowAugmentor:
def __init__(self, crop_size, min_scale=-0.2, max_scale=0.5, do_flip=Tru... | PypiClean |
/dsnd3756_probability-1.3756-py3-none-any.whl/dsnd3756_probability/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/mmpm-3.0.tar.gz/mmpm-3.0/gui/src/app/components/mmpm-local-packages/mmpm-local-packages.component.ts | import { Component, ViewChild, OnInit } from "@angular/core";
import { MatTableDataSource } from "@angular/material/table";
import { SelectionModel } from "@angular/cdk/collections";
import { RestApiService } from "src/app/services/rest-api.service";
import { MatSort } from "@angular/material/sort";
import { MatPaginat... | PypiClean |
/py-popgen-0.1.13.tar.gz/py-popgen-0.1.13/pgpipe/eigenstrat_fstats.py | import os
import sys
import argparse
import logging
import subprocess
import random
import string
import shutil
# Import PPP modules and scripts
from pgpipe.eigenstrat_wrapper import *
from pgpipe.model import read_model_file, pops_not_in_model
from pgpipe.logging_module import initLogger, logArgs
from pgpipe.misc imp... | PypiClean |
/ams_dott_runtime-1.1.0-py3-none-win_amd64.whl/ams_dott_runtime-1.1.0.data/data/dott_data/apps/python27/python-2.7.13/Lib/collections.py | __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py.
from _abcoll import *
import _abcoll
__all__ += _abcoll.__all__
from _collections import deque, ... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/models/drive_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_25 import models
class DriveGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value ... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/okd/plugins/module_utils/openshift_builds.py |
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from datetime import datetime, timezone, timedelta
import traceback
import time
from ansible.module_utils._text import to_native
from ansible_collections.community.okd.plugins.module_utils.openshift_common import AnsibleOpenshif... | PypiClean |
/django-acmin-1.0.2.tar.gz/django-acmin-1.0.2/acmin/static/acmin/js/base64.js | var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var base64DecodeChars = new Array(
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -... | PypiClean |
/QizNLP-0.1.4.tar.gz/QizNLP-0.1.4/qiznlp/model/multi_s2s_model.py | import os
import tensorflow as tf
from tensorflow.python.util import nest
import numpy as np
curr_dir = os.path.dirname(os.path.realpath(__file__))
from qiznlp.common.modules.common_layers import shape_list, mask_nonpad_from_embedding, add_timing_signal_1d, get_timing_signal_1d, shift_right, split_heads
from qiznlp.c... | PypiClean |
/cerespp-0.0.5.tar.gz/cerespp-0.0.5/README.md | # Ceres-plusplus
This package was written as an extension to the CERES reduction pipeline
(https://github.com/rabrahm/ceres) in the sense that it takes spectra reduced
by it and extracts some activity indicators (CCF FWHM, BIS, CONTRAST) and
calculates others (S index, Ha, HeI, NaID1D2)
It's been tested to work on FE... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/oos/secret_parameter.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['SecretParameterArgs', 'SecretParameter']
@pulumi.input_type
class SecretParameterArgs:
def __init__(__self__, *,
secret_param... | PypiClean |
/example_package_milkshark-0.0.1-py3-none-any.whl/autocad_parse/autocad1/autocad_parse.py | import json
import shutil
import openpyxl # excel 不能读取xls
import re
import os
BIG_TABLE_TITLE = ["编号", "名称及规格", "材料", "标准型号", "数量", "单位", "备注"]
SMALL_TABLE_TITLE = ["编号", "长度", "外径"]
class SmallTable:
title = ["编号", "长度", "外径"]
def __init__(self):
self.items = []
def add_item(self, id, length,... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/aiohttp/handlers/graphql_transport_ws_handler.py | from __future__ import annotations
from typing import TYPE_CHECKING, Any, Callable, Dict
from aiohttp import http, web
from strawberry.subscriptions import GRAPHQL_TRANSPORT_WS_PROTOCOL
from strawberry.subscriptions.protocols.graphql_transport_ws.handlers import (
BaseGraphQLTransportWSHandler,
)
if TYPE_CHECKIN... | PypiClean |
/py-caelus-2.0.0.tar.gz/py-caelus-2.0.0/caelus/io/dictfile.py | import os
import logging
from collections import Mapping
import six
from ..utils import osutils
from . import caelusdict
from . import parser
from . import printer
_lgr = logging.getLogger(__name__)
class DictMeta(type):
"""Create property methods and add validation for properties.
This metaclass implements... | PypiClean |
/pyfttt-0.3.2.tar.gz/pyfttt-0.3.2/README.rst | pyfttt
======
Python tools for interacting with IFTTT Webhooks Channel.
Installation
------------
::
pip install pyfttt
Command Line Tool
-----------------
``pyfttt`` is an included command line tool for sending Webhooks Channel
events. To see a list of available arguments, run ``pyfttt --help``,
which produc... | PypiClean |
/django-hudson-0.9.1.tar.gz/django-hudson-0.9.1/django_hudson/management/commands/hudson.py | import sys, os, pprint
from os import path
import coverage
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand
from django_hudson.management.commands.lint import Command as pylint
from django_hudson.xmlrunner import XmlDjangoTestSuiteRunner
from django_h... | PypiClean |
/plutonium-plugin-configui-web-1.1.1.tar.gz/plutonium-plugin-configui-web-1.1.1/plutonium_plugin_configui_web/wwwroot/sqlchemyforms/js/bootstrap-switch.min.js | (function(){var t=[].slice;!function(e,i){"use strict";var n;return n=function(){function t(t,i){null==i&&(i={}),this.$element=e(t),this.options=e.extend({},e.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is("... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ldpLabelAbortRequest_template.py | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class LdpLabelAbortRequest(Base):
__slots__ = ()
_SDM_NAME = "ldpLabelAbortRequest"
_SDM_ATT_MAP = {
"HeaderVersion": "ldpLabelAbortRequest.header.version-1",
"HeaderPduLengthinOctets": "ldpLabelAbortRequest.he... | PypiClean |
/azure-mgmt-web-7.1.0.zip/azure-mgmt-web-7.1.0/azure/mgmt/web/v2019_08_01/aio/operations/_app_service_plans_operations.py | import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
R... | PypiClean |
/units-calculator-1.0.4.tar.gz/units-calculator-1.0.4/units_calculator/engine/engine.py |
from __future__ import annotations
import copy
import math
from collections import defaultdict
from typing import Any, Dict, List, Optional, Tuple, Type, Union, cast
from ordered_set import OrderedSet # type: ignore
UNITS_CHARACTERS_BLACKLIST = "*/ "
UNITS_START_CHARACTERS_BLACKLIST = "0123456789.e+-^()j" + UNITS_... | PypiClean |
/seg_torch-0.1.7-py3-none-any.whl/segmentation/models/fcn32.py | from __future__ import absolute_import, division, print_function
import torch
from ..encoders.squeeze_extractor import *
class FCN32(torch.nn.Module):
def __init__(self, n_classes, pretrained_model: SqueezeExtractor):
super(FCN32, self).__init__()
self.pretrained_model = pretrained_model
... | PypiClean |
/thoth-adviser-0.56.3.tar.gz/thoth-adviser-0.56.3/docs/source/predictors/hill_climbing.rst | .. _hill_climbing:
Hill climbing predictor
-----------------------
.. note::
Check :ref:`high level predictor docs <predictor>` for predictor basics.
Another simple predictor is based on an optimization technique called
:class:`hill climbing <thoth.adviser.predictors.HillClimbing>`
(see `Wikipedia <https://en.wik... | PypiClean |
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/python/framework/graph_to_function_def.py | """Utility to convert a Graph to a FunctionDef."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
from tensorflow.core.framework import function_pb2
from tensorflow.core.framework import op_def_pb2
from tensorflow.python.framework import errors_... | PypiClean |
/azure-servicebus-7.11.1.zip/azure-servicebus-7.11.1/samples/sync_samples/session_pool_receive.py |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | PypiClean |
/text_models-1.0.7.tar.gz/text_models-1.0.7/text_models/inhouse/reader.py |
# 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 applicable law or agreed to in writing, software
# distributed under the... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/eslint/lib/util/glob-util.js | "use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const fs = require("fs"),
path = require("path"),
GlobSync = require("./glob"),
shell = require("shelljs"),
p... | PypiClean |
/pandoraPlugintools-0.0.11.tar.gz/pandoraPlugintools-0.0.11/README.md | # Python: module plugintools for PandoraFMS Developers
## Example
``` python
import pandoraPlugintools as pt
# Agent example
agent_data = {
"agent_name" : "agentname",
"agent_alias" : "alias",
"parent_agent_name" : "parent agent",
"description" : "agente de pruebas",
"versio... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/private_link_service/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class PrivateLinkService(
_cdktf_9a9027ec.TerraformResou... | PypiClean |
/persuader_technology_automata_exchange-0.1.8-py3-none-any.whl/exchange/rate/ExchangeRateHolder.py | from core.exchange.ExchangeRate import ExchangeRate
from exchange.rate.InstantRate import InstantRate
class ExchangeRateHolder:
def __init__(self, *args):
self.exchange_rates = {}
self.__parse_args(args)
def __parse_args(self, args):
if len(args) == 1 and type(args[0]) is list:
... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/eslint/lib/rules/utils/ast-utils.js | "use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const esutils = require("esutils");
const espree = require("espree");
const escapeRegExp = require("escape-string-regexp");
co... | PypiClean |
/geventcron-1.5.tar.gz/geventcron-1.5/README.md | # GeventCron
### 原理:
gevent有个spawn_later()函数,专为定时任务打造...
他的`缺点`就是,别让gevent调度堵塞了....尽量让你业务逻辑,采用gevent patch模块
正在尝试下,借助spawn_later周期功能,解决堵塞的问题, [查看更多GeventCron相关信息](http://xiaorui.cc)
### 安装方法:
```
pip install geventcron
or
python setup.py install
```
### 使用方法:
```
import time
import requests
import threading
i... | PypiClean |
/onecodex-0.11.0.tar.gz/onecodex-0.11.0/README.md | # One Codex API - Python Client Library and CLI
 [](https://codecov.io/gh/onecodex/onecodex) 
@r... | PypiClean |
/mindscope_utilities-0.1.9-py3-none-any.whl/mindscope_utilities/general_utilities.py | import pandas as pd
import numpy as np
from scipy.stats import norm
def get_time_array(t_start, t_end, sampling_rate=None, step_size=None, include_endpoint=True): # NOQA E501
'''
A function to get a time array between two specified timepoints at a defined sampling rate # NOQA E501
Deals with possibility... | PypiClean |
/ankidmpy-0.1.1.tar.gz/ankidmpy-0.1.1/README.md | # **ankidmpy**
**ankidmpy** ( pronounced "anki-dumpy" ) is a straightforward port of [anki-dm](https://github.com/OnkelTem/anki-dm) to `python`. The original **anki-dm** is written in `PHP` and is a tool to work with the [CrowdAnki plugin](https://github.com/Stvad/CrowdAnki) for the [Anki](https://apps.ankiweb.ne... | PypiClean |
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/static/codenerix/lib/angular/i18n/angular-locale_fr-cg.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"dimanche",
"lu... | PypiClean |
/ray_for_mars-1.12.1-cp38-cp38-manylinux2014_x86_64.whl/ray_for_mars-1.12.1.data/purelib/ray/_private/thirdparty/pathspec/util.py | import os
import os.path
import posixpath
import stat
from .compat import Collection, Iterable, string_types, unicode
NORMALIZE_PATH_SEPS = [
sep for sep in [os.sep, os.altsep] if sep and sep != posixpath.sep
]
"""
*NORMALIZE_PATH_SEPS* (:class:`list` of :class:`str`) contains the path
separators that need to be ... | PypiClean |
/appdynamics_bindeps_osx_x64-11.0-cp27-none-any.whl/appdynamics_bindeps/pb/Instrumentation_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from appdynamics_bindeps.google.protobuf import descriptor as _descriptor
from appdynamics_bindeps.google.protobuf import message as _message
from appdynamics_bindeps.google.protobuf import reflection as _reflection
from appdynamics_... | PypiClean |
/redturtle.agidtheme-2.2.3.tar.gz/redturtle.agidtheme-2.2.3/src/redturtle/agidtheme/theme/js/src/index.js | require(['jquery', 'ellipsed'], function($, ellipsed) {
'use strict';
var ellipsis = ellipsed.ellipsis;
// adding some <i> via js for fontawesome icons
var icons = [
{
selector: '#breadcrumbs-home a',
icon: 'fas fa-home',
prepend: true,
},
{
selector: '#document-toc .portle... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/es-abstract/2021/OrdinaryDefineOwnProperty.js | 'use strict';
var GetIntrinsic = require('get-intrinsic');
var $gOPD = require('gopd');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
var IsAccessorDescriptor = require('./IsAccessorDescriptor');... | PypiClean |
/django-adminlte-full-0.2.0.tar.gz/django-adminlte-full-0.2.0/adminlte_full/static/adminlte_full/plugins/moment/locale/az.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/django-adminfiles-1.0.1.tar.gz/django-adminfiles-1.0.1/adminfiles/parse.py | import re
from adminfiles import settings
from adminfiles.models import FileUpload
# Upload references look like: <<< upload-slug : key=val : key2=val2 >>>
# Spaces are optional, key-val opts are optional, can be any number
# extra indirection is for testability
def _get_upload_re():
return re.compile(r'%s\s*([\w... | PypiClean |
/auto_ds-0.0.1-py3-none-any.whl/auto_ds/models/catboost_method.py | import catboost
import optuna
import logging
import optuna.trial
from catboost.utils import eval_metric
from sklearn.model_selection import train_test_split
logger = logging.getLogger('')
logger.setLevel(logging.INFO)
def catboost_model(model_type, df_features,
df_target, categorical_index, optimi... | PypiClean |
/bp-neurotools-0.24.tar.gz/bp-neurotools-0.24/neurotools/resample/wrappers.py | import os
import nibabel as nib
from tempfile import gettempdir
import random
import numpy as np
from ..loading import load
import shutil
from nibabel.freesurfer.io import read_geometry
from ..transform.formats import geo_to_gifti, data_to_gifti
from .. import data_dr
resample_dr = os.path.join(data_dr, 'resample_fsav... | PypiClean |
/joulescope_ui-1.0.29.tar.gz/joulescope_ui-1.0.29/joulescope_ui/widgets/progress_bar/progress_bar_widget.py |
from PySide6 import QtWidgets, QtCore
from joulescope_ui import pubsub_singleton, register_decorator, N_, tooltip_format
import logging
@register_decorator('progress')
class ProgressBarWidget(QtWidgets.QDialog):
CAPABILITIES = []
SETTINGS = {
'progress': {
'dtype': 'float',
'b... | PypiClean |
/sign_language_datasets-0.1.8-py3-none-any.whl/sign_language_datasets/datasets/sign2mint/sign2mint.py | import json
import os
import tensorflow as tf
import tensorflow_datasets as tfds
from ..warning import dataset_warning
from ...datasets import SignDatasetConfig
import urllib.request
import cv2
from ...utils.signwriting.ocr import image_to_fsw
_DESCRIPTION = """
The specialist signs developed in the project break d... | PypiClean |
/purehg-2.4.2.tar.gz/mercurial-2.4.2/build/lib.linux-x86_64-2.7/hgext/hgk.py | import os
from mercurial import commands, util, patch, revlog, scmutil
from mercurial.node import nullid, nullrev, short
from mercurial.i18n import _
testedwith = 'internal'
def difftree(ui, repo, node1=None, node2=None, *files, **opts):
"""diff trees from two commits"""
def __difftree(repo, node1, node2, fil... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.