id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayMarketingToolFengdieActivityCreateRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayMarketingToolFengdieActivityCreateModel import AlipayMarketingToolFengdieActivityCreateModel class AlipayMarketingToolFengdieActivityCreateRequest(object): def __init_...
PypiClean
/MatPlotTheme-0.1.2.zip/MatPlotTheme-0.1.2/matplottheme/style/default.py
class Style(object): ''' This class is a collection of all painting methods provided by the default style of MatPlotTheme. :param palette: The palette used for coloring. ''' def __init__(self, palette): self.set_palette(palette) def set_palette(self, palette): ''' ...
PypiClean
/PyAFS-0.1.1.tar.gz/PyAFS-0.1.1/afs/acl.py
from afs import _acl from afs._acl import READ, WRITE, INSERT, LOOKUP, DELETE, LOCK, ADMINISTER, \ USR0, USR1, USR2, USR3, USR4, USR5, USR6, USR7 from afs._acl import getCallerAccess _canonical = { "read": "rl", "write": "rlidwk", "all": "rlidwka", "mail": "lik", "none": "", } _reverseCanonica...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/encoding-down/LICENSE.md
# The MIT License (MIT) **Copyright © 2012-present [Contributors](CONTRIBUTORS.md).** 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 ...
PypiClean
/tootorch-1.9-py3-none-any.whl/tootourch/visualization.py
import h5py import numpy as np import json from saliency.attribution_methods import * from models import SimpleCNNDeconv import matplotlib.pyplot as plt def visualize_saliencys(origin_imgs, results, probs, preds, classes, names, target, row, col, savedir=None, **kwargs): ''' Visualize selectivity logs A...
PypiClean
/keras-core-0.1.5.tar.gz/keras-core-0.1.5/keras_core/src/optimizers/sgd.py
from keras_core.src import ops from keras_core.src.api_export import keras_core_export from keras_core.src.optimizers import optimizer @keras_core_export("keras_core.optimizers.SGD") class SGD(optimizer.Optimizer): """Gradient descent (with momentum) optimizer. Update rule for parameter `w` with gradient `g`...
PypiClean
/flat_api-1.0.0.tar.gz/flat_api-1.0.0/flat_api/model/class_assignment_update_microsoft_graph.py
import re # noqa: F401 import sys # noqa: F401 from flat_api.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, valid...
PypiClean
/df_script_parser-0.2.0.tar.gz/df_script_parser-0.2.0/df_script_parser/tools.py
from pathlib import Path import typing as tp import logging from black import format_file_in_place, FileMode, WriteBack from df_script_parser.dumpers_loaders import yaml_dumper_loader from df_script_parser.processors.dict_processors import Disambiguator from df_script_parser.processors.recursive_parser import Recursi...
PypiClean
/pulumi_scaleway-0.3.1a1656517281.tar.gz/pulumi_scaleway-0.3.1a1656517281/pulumi_scaleway/baremetal_server.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * __all__ = ['BaremetalServerArgs', 'BaremetalServer'] @pulumi.input_type class BaremetalServerArgs: def __init__(__self__, ...
PypiClean
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/cvt/modeling_tf_cvt.py
import collections.abc from dataclasses import dataclass from typing import Dict, Optional, Tuple, Union import tensorflow as tf from ...modeling_tf_outputs import TFImageClassifierOutputWithNoAttention from ...modeling_tf_utils import ( TFModelInputType, TFPreTrainedModel, TFSequenceClassificationLoss, ...
PypiClean
/jupyterhub-sdp-0.9.0.1.tar.gz/jupyterhub-sdp-0.9.0.1/docs/source/getting-started/spawners-basics.md
# Spawners and single-user notebook servers Since the single-user server is an instance of `jupyter notebook`, an entire separate multi-process application, there are many aspect of that server can configure, and a lot of ways to express that configuration. At the JupyterHub level, you can set some values on the Spaw...
PypiClean
/fenrir-screenreader-1.9.6.post1.tar.gz/fenrir-screenreader-1.9.6.post1/src/fenrirscreenreader/core/inputManager.py
# Fenrir TTY screen reader # By Chrys, Storm Dragon, and contributers. from fenrirscreenreader.core import debug from fenrirscreenreader.core import inputData import os, inspect, time currentdir = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe())))) fenrirPath = os.path.dirname(...
PypiClean
/dataone.libclient-3.5.2-py3-none-any.whl/d1_client/aio/iter/base_async.py
"""Base for Async ObjectList and EventLog Iterator. """ import asyncio import logging import d1_common.types.exceptions import d1_client.aio.async_client PAGE_SIZE_ERROR_STR = """ The remote node returned a result page that contains fewer than the requested number of records. As pages are downloaded concurrently by ...
PypiClean
/opps-polls-0.1.6.tar.gz/opps-polls-0.1.6/opps/polls/admin.py
from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ from django.utils import timezone from .models import (Poll, Choice, PollPost, PollBox, PollBoxPolls, PollConfig) from opps.core.admin import PublishableAdmin from opps.core.admin impo...
PypiClean
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/nitter.py
from __future__ import unicode_literals from .common import SelfhostedInfoExtractor from ..utils import ( parse_count, unified_strdate, unified_timestamp, remove_end, determine_ext, ExtractorError, ) class NitterSHIE(SelfhostedInfoExtractor): _VALID_URL = r'nitter:(?P<host>[^:]+):(?P<id>\...
PypiClean
/latin_databases-0.1.16.tar.gz/latin_databases-0.1.16/latin/unidecode2/x033.py
data = ( 'apartment', # 0x00 'alpha', # 0x01 'ampere', # 0x02 'are', # 0x03 'inning', # 0x04 'inch', # 0x05 'won', # 0x06 'escudo', # 0x07 'acre', # 0x08 'ounce', # 0x09 'ohm', # 0x0a 'kai-ri', # 0x0b 'carat', # 0x0c 'calorie', # 0x0d 'gallon', # 0x0e 'gamma', # 0x0f 'gig...
PypiClean
/zohocrmsdk2_0-5.1.0.tar.gz/zohocrmsdk2_0-5.1.0/zcrmsdk/src/com/zoho/crm/api/roles/role.py
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants except Exception: from ..exception import SDKException from ..util import Constants class Role(object): def __init__(self): """Creates an instance of Role""" self.__display_label = No...
PypiClean
/django-newcache-0.2.4.tar.gz/django-newcache-0.2.4/newcache.py
"Modified memcached cache backend" import time from threading import local from django.core.cache.backends.base import BaseCache, InvalidCacheBackendError from django.utils.hashcompat import sha_constructor from django.utils.encoding import smart_str from django.conf import settings try: from django.utils impor...
PypiClean
/django-lightweight-0.2.tar.gz/django-lightweight-0.2/django/core/files/images.py
import struct import zlib from django.core.files import File class ImageFile(File): """ A mixin for use alongside django.core.files.base.File, which provides additional features for dealing with images. """ @property def width(self): return self._get_image_dimensions()[0] @prope...
PypiClean
/dvha-edit-0.7.post1.tar.gz/dvha-edit-0.7.post1/dvhaedit/dialogs.py
# dialogs.py """ Classes used to edit pydicom datasets """ # Copyright (c) 2020 Dan Cutright # This file is part of DVHA DICOM Editor, released under a BSD license. # See the file LICENSE included with this distribution, also # available at https://github.com/cutright/DVHA-DICOM-Editor import wx import re from ...
PypiClean
/nvidia_modulus.launch-0.2.0-py3-none-any.whl/modulus/launch/logging/wandb.py
import logging import os import wandb from typing import Literal from pathlib import Path from datetime import datetime from wandb import AlertLevel from modulus.distributed import DistributedManager from .utils import create_ddp_group_tag DEFAULT_WANDB_CONFIG = "~/.netrc" logger = logging.getLogger(__name__) _WANDB_...
PypiClean
/TethysCluster-0.1.6.tar.gz/TethysCluster-0.1.6/tethyscluster/threadpool.py
import time import Queue import thread import traceback import workerpool from tethyscluster import exception from tethyscluster import progressbar from tethyscluster.logger import log class DaemonWorker(workerpool.workers.Worker): """ Improved Worker that sets daemon = True by default and also handles c...
PypiClean
/pulp-cookbook-0.1.0b9.tar.gz/pulp-cookbook-0.1.0b9/pulp_cookbook/metadata.py
import tarfile import json class CookbookMetadata: """ Represents metadata extracted from a cookbook tar archive. Attributes: metadata (dict): content of the 'metadata.json' file of a cookbook """ def __init__(self, metadata): self.metadata = metadata @property def nam...
PypiClean
/django-invoicing-4.3.1.tar.gz/django-invoicing-4.3.1/invoicing/migrations/0017_auto_20180619_1349.py
from django.db import migrations, models import django_countries.fields from internationalflavor.vat_number import VATNumberField class Migration(migrations.Migration): dependencies = [ ('invoicing', '0016_update_credit_notes'), ] operations = [ migrations.AddField( model_na...
PypiClean
/real_estate_scrape-0.1.5-py3-none-any.whl/realestatescrape/__init__.py
import logging import os import re from datetime import datetime, timezone import matplotlib.pyplot as plt import pandas as pd import requests from lxml import html csvfile = "data.csv" plotfile = "data.png" sites = [ { "name": "redfin", "xpath": "//div[@class='statsValue']//span/text()", }, ...
PypiClean
/hist-2.6.1.tar.gz/hist-2.6.1/noxfile.py
from __future__ import annotations import shutil import sys from pathlib import Path import nox ALL_PYTHONS = ["3.7", "3.8", "3.9", "3.10"] nox.options.sessions = ["lint", "tests"] DIR = Path(__file__).parent.resolve() @nox.session(reuse_venv=True) def lint(session): """ Run the linter. """ sess...
PypiClean
/django_cos-0.4.0.tar.gz/django_cos-0.4.0/django_cos/blocks/metadata_blocks.py
import json # Django Imports from django import forms from django.utils.translation import ugettext_lazy as _ # Wagtail Imports from wagtail.core import blocks # Django COS Imports from django_cos import schema from django_cos.blocks.base_blocks import MultiSelectBlock class OpenHoursValue(blocks.StructValue): ""...
PypiClean
/odoo12_addon_website_event_crm-12.0.1.0.1-py3-none-any.whl/odoo/addons/website_event_crm/readme/CONFIGURE.rst
This module allows you to configure opportunity stages to enable some automations. To advance automatically to the next stage when the opportunity is invited to view an event category on the website: #. Go to *CRM > Sales > My pipeline*. #. Hover over one stage name and click on its cogs icon. #. Choose *Edit Stage...
PypiClean
/cihaidata-unihan-0.4.2.tar.gz/cihaidata-unihan-0.4.2/README.rst
*cihaidata-unihan* - tool to build `unihan`_ into `simple data format` CSV format. Part of the `cihai`_ project. |pypi| |docs| |build-status| |coverage| |license| Unihan's data is disperved across multiple files in the format of:: U+3400 kCantonese jau1 U+3400 kDefinition (same as U+4E18 丘) hillock or mound ...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/checks/utils.py
from pygments.lexers.markup import RstLexer from pygments.token import Token from weblate.checks.models import CHECKS def highlight_pygments(source: str, unit): """ Highlight syntax characters using pygments. This is not really a full syntax highlighting, we're only interested in non-translatable s...
PypiClean
/cv3-beta-1.2.0.tar.gz/cv3-beta-1.2.0/cv3/draw.py
import cv2 import warnings import numpy as np from typing import List from . import opt from ._utils import ( type_decorator, _relative_check, _relative_handle, _process_color, _handle_rect_coords, COLORS_RGB_DICT ) __all__ = [ 'rectangle', 'polylines', 'fill_poly', 'circle', ...
PypiClean
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/lodash/template.js
var assignInWith = require('./assignInWith'), attempt = require('./attempt'), baseValues = require('./_baseValues'), customDefaultsAssignIn = require('./_customDefaultsAssignIn'), escapeStringChar = require('./_escapeStringChar'), isError = require('./isError'), isIterateeCall = require('./_isIt...
PypiClean
/superset-2.0.0-custom-test-0.0.1.tar.gz/superset-2.0.0-custom-test-0.0.1/superset/embedded/view.py
import json from typing import Callable from flask import abort from flask_appbuilder import expose from flask_login import AnonymousUserMixin, LoginManager from superset import event_logger, is_feature_enabled, security_manager from superset.embedded.dao import EmbeddedDAO from superset.superset_typing import FlaskR...
PypiClean
/ait_core-2.5.0.tar.gz/ait_core-2.5.0/README.rst
.. image:: https://github.com/NASA-AMMOS/AIT-Core/actions/workflows/full_build.yaml/badge.svg?branch=master :target: https://github.com/NASA-AMMOS/AIT-Core/actions :alt: Build and Lint Status .. image:: https://readthedocs.org/projects/ait-core/badge/?version=latest :target: https://ait-core.readthedocs.io/...
PypiClean
/anteater-0.23.tar.gz/anteater-0.23/README.md
# Anteater - CI/CD Gate Check Framework ![anteater](http://i.imgur.com/BPvV3Gz.png) [![Build Status](https://travis-ci.org/anteater/anteater.svg?branch=master)](https://travis-ci.org/anteater/anteater) [![Documentation Status](https://readthedocs.org/projects/anteater/badge/?version=latest)](http://anteater.readthedo...
PypiClean
/sio/client_manager.py
import asyncio import typing from typing import ( Any, AsyncGenerator, AsyncIterator, Dict, Self, ) from aiokafka.errors import KafkaConnectionError from async_generator import asynccontextmanager from socketio.asyncio_pubsub_manager import AsyncPubSubManager from ..kafka.utils import get_kafka_co...
PypiClean
/panda3d_lion_render-0.1.0-py3-none-any.whl/lionrender/renderpass.py
import panda3d.core as p3d class Pass: def __init__( self, name, pipe=None, engine=None, window=None, camera=None, scene=None, shader=None, frame_buffer_properties=None, clear_color=p3d.LColor(0...
PypiClean
/localstack_core-2.2.0-py3-none-any.whl/localstack/aws/api/secretsmanager/__init__.py
import sys from datetime import datetime from typing import Dict, List, Optional if sys.version_info >= (3, 8): from typing import TypedDict else: from typing_extensions import TypedDict from localstack.aws.api import RequestContext, ServiceException, ServiceRequest, handler BooleanType = bool ClientRequestT...
PypiClean
/mindfoundry.client.analyze-1.20.4.tar.gz/mindfoundry.client.analyze-1.20.4/src/mindfoundry/client/analyze/swagger/models/future.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.future_output_of_your_request import FutureOutputOfYourRequest from ..models.status import Status from ..types import UNSET, Unset T = TypeVar("T", bound="Future") @attr.s(auto_attribs=True) class Future: """ Attributes: ...
PypiClean
/odooku_odoo_base-11.0.7-py35-none-any.whl/odoo/addons/web/static/lib/bootstrap/js/tab.js
+function ($) { 'use strict'; // TAB CLASS DEFINITION // ==================== var Tab = function (element) { this.element = $(element) } Tab.VERSION = '3.3.4' Tab.TRANSITION_DURATION = 150 Tab.prototype.show = function () { var $this = this.element var $ul = $this.closest('ul:no...
PypiClean
/py_tgcalls_kaizoku-0.9.5-cp39-cp39-win_amd64.whl/pytgcalls/node_modules/tr46/index.js
"use strict"; var punycode = require("punycode"); var mappingTable = require("./lib/mappingTable.json"); var PROCESSING_OPTIONS = { TRANSITIONAL: 0, NONTRANSITIONAL: 1 }; function normalize(str) { // fix bug in v8 return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000'); } fu...
PypiClean
/bmlx-argo-workflows-1.0.5.tar.gz/bmlx-argo-workflows-1.0.5/docs/V1SecretEnvSource.md
# V1SecretEnvSource SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **na...
PypiClean
/lj_api_client-0.1.1-py3-none-any.whl/lj_api_client/client.py
from typing import List import requests as rq from pydantic import validate_arguments from lj_api_client import utils, resources, schemas, exceptions class Client: DEFAULT_HOST = "https://public-api.livejourney.io" def __init__(self, api_key, host=None, api_version='v1'): if not host: h...
PypiClean
/optbuild-0.2.1.tar.gz/optbuild-0.2.1/lib/optbuild.py
from __future__ import division, absolute_import, print_function from six import viewitems, string_types, with_metaclass __version__ = "$Revision: 1.30 $" from distutils.spawn import find_executable from functools import partial import optparse import signal from subprocess import Popen, PIPE import sys from autolog ...
PypiClean
/toga_django-0.2.15-py3-none-any.whl/toga_django/app.py
import base64 import marshal import os import py_compile import tempfile from django.conf.urls import url from django.shortcuts import render from django.utils.safestring import mark_safe from toga.interface.app import App as AppInterface from toga.interface.widgets.base import Widget from .window import Window from...
PypiClean
/wpt-superset-1.0.1.tar.gz/wpt-superset-1.0.1/superset/data/energy.py
"""Loads datasets, dashboards and slices in a new superset instance""" # pylint: disable=C,R,W import gzip import os import textwrap import pandas as pd from sqlalchemy import Float, String from superset import db from superset.connectors.sqla.models import SqlMetric from superset.utils import core as utils from .hel...
PypiClean
/vectorhub_nightly-1.2.0.2021.6.2.1.17.47.427274-py3-none-any.whl/vectorhub/encoders/text/tfhub/use_lite.py
import warnings import numpy as np from datetime import date from ....base import catch_vector_errors from ....doc_utils import ModelDefinition from ....import_utils import is_all_dependency_installed from ....models_dict import MODEL_REQUIREMENTS from ..base import BaseText2Vec from .use import USE2Vec if is_all_depe...
PypiClean
/django_linux-2.2.8-py3-none-any.whl/django/contrib/sitemaps/views.py
import datetime from calendar import timegm from functools import wraps from django.contrib.sites.shortcuts import get_current_site from django.core.paginator import EmptyPage, PageNotAnInteger from django.http import Http404 from django.template.response import TemplateResponse from django.urls import reverse from dj...
PypiClean
/pytello-hsu-3.0.0.tar.gz/pytello-hsu-3.0.0/README.md
# Read Me For this to work you need Python 3.6 and above and Windows 10. At the begining of the your file you create you need to add the following command: import pytello-hsu Also to get this on your computer you need to do the following command: pip install pytello-hsu When programming you must use the "init()" c...
PypiClean
/itch-framework-0.0.1.tar.gz/itch-framework-0.0.1/itch/stage.py
import itch.costume from itch.event_receiver import EventReceiver import itch.sprite import pygame import itch.data_view import itch.utils class DataContainer: pass class PendingEvent: def __init__(self, name, mouse_coords): self.name = name self.mouse_coords = mouse_coords class Stage(Even...
PypiClean
/flask-magic-0.0.53.tar.gz/flask-magic-0.0.53/flask_magic/plugins/publisher/static/Magic/Plugin/Publisher/mdeditor/bower_components/codemirror/mode/haskell/haskell.js
CodeMirror.defineMode("haskell", function() { function switchState(source, setState, f) { setState(f); return f(source, setState); } // These should all be Unicode extended, as per the Haskell 2010 report var smallRE = /[a-z_]/; var largeRE = /[A-Z]/; var digitRE = /[0-9]/; var hexitRE = /[0-9A-...
PypiClean
/fake_bpy_module_2.82-20230117-py3-none-any.whl/bl_ui/properties_data_speaker.py
import sys import typing import bpy_types import rna_prop_ui GenericType = typing.TypeVar("GenericType") class DataButtonsPanel: bl_context = None ''' ''' bl_region_type = None ''' ''' bl_space_type = None ''' ''' def poll(self, context): ''' ''' pass class ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/ibm/spectrum_virtualize/plugins/modules/ibm_sv_manage_snapshotpolicy.py
# Copyright (C) 2022 IBM CORPORATION # Author(s): Shilpi Jain <shilpi.jain1@ibm.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: ibm_sv_manage_snaps...
PypiClean
/vais-frontend-20220519051104.tar.gz/vais-frontend-20220519051104/vais_frontend/c.ed246a19.js
import{aD as t,a7 as e,aE as i,aF as o,aG as s,Q as n,S as a,aH as r,aI as l,aJ as d,a as c,f as h,e as p,$ as u,r as f,n as g,o as v,m as y,aK as m,af as _,aL as b,c as w,aM as k,aN as x,aO as z,d as T}from"./main-e088bb19.js";import{i as S}from"./c.4cc25ce4.js";import{a as R}from"./c.166c4b5c.js";import"./c.e9faf9fb....
PypiClean
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM15/IEC61968/Common/ActivityRecord.py
from CIM15.IEC61970.Core.IdentifiedObject import IdentifiedObject class ActivityRecord(IdentifiedObject): """Records activity for an entity at a point in time; activity may be for an event that has already occurred or for a planned activity.Records activity for an entity at a point in time; activity may be for an...
PypiClean
/nobinobi-child-0.1.4.14.tar.gz/nobinobi-child-0.1.4.14/nobinobi_child/static/vendor/adminLTE/plugins/input-mask/jquery.inputmask.numeric.extensions.js
(function ($) { //number aliases $.extend($.inputmask.defaults.aliases, { 'decimal': { mask: "~", placeholder: "", repeat: "*", greedy: false, numericInput: false, isNumeric: true, digits: "*", //number of fractionalDigi...
PypiClean
/keywords-0.0.1.zip/keywords-0.0.1/keywords.py
import re from nltk import RegexpParser, pos_tag class KeyWords(object): def __init__(self, corpus=None, stop_words=[], alpha=0.5): if alpha < 0.0 or alpha > 1.0: raise ValueError("Alpha should be between 0-1") self.stop_words = stop_words stop_word_regex_list = [] for wo...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/sites/item/term_store/sets/item/parent_group/sets/item/children/item/relations/item/to_term/to_term_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
/views_dataviz-0.10.0.tar.gz/views_dataviz-0.10.0/views_dataviz/pcoord.py
from typing import List, Dict, Tuple import pandas as pd import matplotlib.pyplot as plt import numpy as np def plot_parallel_coordinates( df: pd.DataFrame, columns: List[str], linecolors: Dict[str, str] = None, linestyles: Dict[str, str] = None, reverse: List[str] = None, figsize: Tuple[floa...
PypiClean
/pyPINTS-1.1.9-py3-none-any.whl/pints/extension_engine.py
# PINTS: Peak Identifier for Nascent Transcripts Starts # Copyright (c) 2019-2022. Li Yao at the Yu Lab. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, ...
PypiClean
/pyblp-1.1.0.tar.gz/pyblp-1.1.0/docs/notebooks/api/.ipynb_checkpoints/data-checkpoint.ipynb
# Loading Data Example ``` import pyblp pyblp.__version__ ``` Any number of functions can be used to load the example data into memory. In this example, we'll first use [NumPy](https://numpy.org/). ``` import numpy as np blp_product_data = np.recfromcsv(pyblp.data.BLP_PRODUCTS_LOCATION, encoding='utf-8') blp_agent...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/profiler/internal/flops_registry.py
"""Register flops statistics for various TensorFlow operations. """ from tensorflow.python.framework import graph_util from tensorflow.python.framework import ops # List of all ops which have implemented flops statistics. IMPLEMENTED_OPS = set([ # Unary ops "Reciprocal", "Square", "Rsqrt", "Log", "Neg", "Assi...
PypiClean
/jot_iris-1.20.7-py3-none-any.whl/listener/logs_web_socket.py
import logging import asyncio import tornado import tornado.websocket class WebsocketStreamHandler(logging.StreamHandler): def __init__(self, websocket, on_close, logger): super().__init__(self) self.websocket = websocket self.loop = websocket.loop self.on_close = on_close ...
PypiClean
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_latest/chunk.21bdce81c44342769b60.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[5374,4074,655,4159,9978,272,4328,7082,129,1422,4823],{99257:(t,e,r)=>{"use strict";r(65233);var o=r(15112),l=r(9672),s=r(87156);(0,l.k)({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:...
PypiClean
/django_cool-1.2.8-py3-none-any.whl/cool/views/utils.py
import copy from collections import OrderedDict from importlib import import_module from django.conf import settings from django.core.validators import ( BaseValidator, ProhibitNullCharactersValidator, ) from django.db import models from django.db.models import NOT_PROVIDED from django.shortcuts import render from...
PypiClean
/tulip_python-5.7.2-cp37-cp37m-win_amd64.whl/tulip/plugins/layout/h3/h3math.py
import math import numpy as np """ Scaling factor for compute_radius(), compute_hyperbolic_area(), compute_delta_theta() and compute_delta_phi(). """ K = 2.0 """ The 3D coordinate structure """ class Point4d(object): """ The constructor for Point4d :param float x: the x coordinate for a node in cart...
PypiClean
/odoo12_addon_base_user_role-12.0.2.1.3-py3-none-any.whl/odoo/addons/base_user_role/readme/DESCRIPTION.rst
This module was written to extend the standard functionality regarding users and groups management. It helps creating well-defined user roles and associating them to users. It can become very hard to maintain a large number of user profiles over time, juggling with many technical groups. For this purpose, this module ...
PypiClean
/django-tenancy-0.3.1a3.tar.gz/django-tenancy-0.3.1a3/tenancy/models.py
from __future__ import unicode_literals import copy import logging from abc import ABCMeta from collections import OrderedDict from contextlib import contextmanager import django from django.apps import apps from django.core.exceptions import ImproperlyConfigured from django.db import connection, models from django.d...
PypiClean
/Seeed_grove.py-0.2.tar.gz/Seeed_grove.py-0.2/grove/grove_imu_9dof_icm20600_ak09918.py
from __future__ import division from __future__ import print_function from ctypes import * from ctypes import util import sys from grove.i2c import Bus ICM20600_I2C_ADDR0 = 0x68 ICM20600_I2C_ADDR1 = 0x69 ICM20600_RANGE_250_DPS, \ ICM20600_RANGE_500_DPS, \ ICM20600_RANGE_1K_DPS, \ ICM20600_RANGE_2K_DPS = 0, 1, ...
PypiClean
/sshx-0.33.5.tar.gz/sshx-0.33.5/README.md
# sshx (SSH eXtensions) [![Build Status](https://www.travis-ci.com/WqyJh/sshx.svg?branch=master)](https://www.travis-ci.com/github/WqyJh/sshx) [![codecov](https://codecov.io/gh/WqyJh/sshx/branch/master/graph/badge.svg)](https://codecov.io/gh/WqyJh/sshx) [![license](https://img.shields.io/badge/LICENCE-GPLv3-brightgree...
PypiClean
/orchestrator_core-1.2.3rc3.tar.gz/orchestrator_core-1.2.3rc3/orchestrator/utils/functional.py
import itertools from typing import Callable, Iterable, List, Optional, Sequence, Set, TypeVar, Union import more_itertools import structlog logger = structlog.get_logger(__name__) def first_available_or_next(values: Iterable[int], start: int = 0) -> int: """Return first available value or the next logical va...
PypiClean
/galaxy-lib-19.5.2.tar.gz/galaxy-lib-19.5.2/galaxy/tools/cwl/schema.py
import os from collections import namedtuple from six.moves.urllib.parse import urldefrag from .cwltool_deps import ( ensure_cwltool_available, load_tool, LoadingContext, schema_salad, workflow, ) RawProcessReference = namedtuple("RawProcessReference", ["process_object", "uri"]) ProcessDefinition...
PypiClean
/pyluna-radiology-0.3.3.tar.gz/pyluna-radiology-0.3.3/luna/radiology/refined_table/generate.py
import glob, shutil, os, uuid, subprocess, sys, argparse, time import click from checksumdir import dirhash from luna.common.CodeTimer import CodeTimer from luna.common.config import ConfigSet from luna.common.sparksession import SparkConfig from luna.common.custom_logger import init_logger import luna.common.consta...
PypiClean
/azureml_designer_core-0.0.77-py3-none-any.whl/azureml/designer/core/model/constants.py
class ModelSpecConstants: # Top level keys in model_spec FLAVOR_KEY = "flavor" FLAVOR_EXTRAS_KEY = "flavor_extras" MODEL_FILE_KEY = "model_file" CONDA_FILE_KEY = "conda_file" LOCAL_DEPENDENCIES_KEY = "local_dependencies" INPUTS_KEY = "inputs" OUTPUTS_KEY = "outputs" SERVING_CONFIG_...
PypiClean
/itinerum-tripkit-0.0.26.tar.gz/itinerum-tripkit-0.0.26/README.md
# itinerum-tripkit Documentation for library usage: https://itinerum-tripkit.readthedocs.io/ This library serves as a framework to process data from the Itinerum platform and hardware GPS loggers (e.g., QStarz). It can be used both through as a library in Jupyter to explore datasets interactively or imported as a mod...
PypiClean
/galaxy_data-23.0.5-py3-none-any.whl/galaxy/model/search.py
import logging import re from json import dumps from typing import Dict import parsley from sqlalchemy import and_ from sqlalchemy.orm import aliased from galaxy.model import ( ExtendedMetadata, ExtendedMetadataIndex, History, HistoryAnnotationAssociation, HistoryDatasetAssociation, HistoryDat...
PypiClean
/tupak-0.2.3.tar.gz/tupak-0.2.3/tupak/core/sampler/nestle.py
from __future__ import absolute_import import numpy as np from pandas import DataFrame from .base_sampler import NestedSampler class Nestle(NestedSampler): """tupak wrapper `nestle.Sampler` (http://kylebarbary.com/nestle/) All positional and keyword arguments (i.e., the args and kwargs) passed to `run_s...
PypiClean
/CeroCoinClient-2.0.1.tar.gz/CeroCoinClient-2.0.1/PrimeGenerator/PrimeGenerator.py
__version__ = '1.9.0' __author__ = "Avinash Kak (kak@purdue.edu)" __date__ = '2018-March-18' __url__ = 'https://engineering.purdue.edu/kak/distCeroCoin/CeroCoinClient-1-9.0.html' __copyright__ = "(C) 2018 Avinash Kak. Python Software Foundation." __doc__ = ''' Call syntax: PrimeGenerator.py width...
PypiClean
/django-centralniak-slugfield-0.1.5.tar.gz/django-centralniak-slugfield-0.1.5/README.rst
django-centralniak-slugfield ============================ This tiny project adds new Django field type ``CentralniakSlugField`` that automatically creates and/or updates slug on save. The slug method supports far more regional characters then the core Django one (yes, cyrillic alphabet is supported). Project was so...
PypiClean
/django-templateselector-0.2.0.tar.gz/django-templateselector-0.2.0/.eggs/pytest-3.2.1-py2.7.egg/_pytest/skipping.py
from __future__ import absolute_import, division, print_function import os import sys import traceback import py from _pytest.config import hookimpl from _pytest.mark import MarkInfo, MarkDecorator from _pytest.outcomes import fail, skip, xfail, TEST_OUTCOME def pytest_addoption(parser): group = parser.getgroup...
PypiClean
/fastllama_python_test-0.1.tar.gz/fastllama_python_test-0.1/scripts/convert-lora-to-ggml.py
from io import BufferedWriter import json import os import re import struct import sys from typing import Any, Mapping, MutableMapping, Sequence, Tuple import argparse import torch from convert import DATA_TYPE_TO_FTYPE, NUMPY_TYPE_TO_DATA_TYPE, DataType HF_SUBLAYER_TO_GGML: Mapping[str, str] = { "self_attn.q_pr...
PypiClean
/collective.js.extjs-1.4.0.tar.gz/collective.js.extjs-1.4.0/collective/js/extjs/resources/ux/ColumnHeaderGroup.js
Ext.ns('Ext.ux.grid'); Ext.ux.grid.ColumnHeaderGroup = Ext.extend(Ext.util.Observable, { constructor: function(config){ this.config = config; }, init: function(grid){ Ext.applyIf(grid.colModel, this.config); Ext.apply(grid.getView(), this.viewConfig); }, viewConfig: { ...
PypiClean
/l2rpn_baselines-0.8.0.tar.gz/l2rpn_baselines-0.8.0/l2rpn_baselines/utils/deepQAgent.py
import os import warnings import numpy as np from tqdm import tqdm from grid2op.Exceptions import Grid2OpException from grid2op.Agent import AgentWithConverter from grid2op.Converter import IdToAct from l2rpn_baselines.utils.replayBuffer import ReplayBuffer from l2rpn_baselines.utils.trainingParam import TrainingPar...
PypiClean
/mera_tvm_host_only-1.3.1-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/_ffi/_ctypes/packed_func.py
"""Function configuration API.""" import ctypes import traceback from numbers import Number, Integral from ..base import _LIB, get_last_ffi_error, py2cerror, check_call from ..base import c_str, string_types from ..runtime_ctypes import DataType, TVMByteArray, Device, ObjectRValueRef from . import ndarray as _nd from ...
PypiClean
/ROPGadget-7.4-py3-none-any.whl/ropgadget/ropchain/arch/ropmakerx86.py
import re class ROPMakerX86(object): def __init__(self, binary, gadgets, liboffset=0x0): self.__binary = binary self.__gadgets = gadgets # If it's a library, we have the option to add an offset to the addresses self.__liboffset = liboffset self.__generate() def __l...
PypiClean
/pyFoamd-0.1.0-py3-none-any.whl/pyfoamd/functions/getMonitor.py
from pathlib import Path import numpy as np import pyfoamd.types as pt from pyfoamd import userMsg import logging logger = logging.getLogger('pf') def getMonitor(name=None, startTime='latestTime', dataFileName=None, logPath=None, workingDir=Path.cwd()): """ Get an ofMonitor object from a log file writte...
PypiClean
/dsin100daysv31-6.0.1.tar.gz/dsin100daysv31-6.0.1/notebook/static/custom/custom.js
* * * Placeholder for custom user javascript * mainly to be overridden in profile/static/custom/custom.js * This will always be an empty file in IPython * * User could add any javascript in the `profile/static/custom/custom.js` file. * It will be executed by the ipython notebook at load time. * * Same thing w...
PypiClean
/TurboGears-1.5.1.tar.gz/TurboGears-1.5.1/turbogears/i18n/data/en_PH.py
languages={'gv': 'Manx', 'gu': 'Gujarati', 'rom': 'Romany', 'alg': 'Algonquian Languages', 'ale': 'Aleut', 'sco': 'Scots', 'mni': 'Manipuri', 'gd': 'Scottish Gaelic', 'ga': 'Irish', 'mno': 'Manobo Languages', 'osa': 'Osage', 'gn': 'Guarani', 'gl': 'Gallegan', 'mwr': 'Marwari', 'ty': 'Tahitian', 'tw': 'Twi', 'tt': 'Tat...
PypiClean
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/data/experimental/ops/parsing_ops.py
"""Experimental `dataset` API for parsing example.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.data.ops import dataset_ops from tensorflow.python.data.util import structure from tensorflow.python.framework import dtypes from ten...
PypiClean
/aliyun-python-sdk-cdn-3.8.8.tar.gz/aliyun-python-sdk-cdn-3.8.8/aliyunsdkcdn/request/v20180510/AddCdnDomainRequest.py
from aliyunsdkcore.request import RpcRequest from aliyunsdkcdn.endpoint import endpoint_data class AddCdnDomainRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Cdn', '2018-05-10', 'AddCdnDomain') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", end...
PypiClean
/pywe-oauth-1.1.2.tar.gz/pywe-oauth-1.1.2/pywe_oauth/oauth.py
import shortuuid from pywe_base import BaseWechat from six.moves import urllib_parse class Oauth(BaseWechat): def __init__(self): super(Oauth, self).__init__() # 网页授权获取用户基本信息, Refer: http://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html # 移动应用微信登录开发指南, Refer: https://open....
PypiClean
/wxPython-zombie-3.1.5.6.tar.gz/wxPython-zombie-3.1.5.6/wx/tools/wxget_docs_demo.py
from __future__ import (division, absolute_import, print_function, unicode_literals) import sys import os import subprocess import webbrowser import tarfile if sys.version_info >= (3,): from urllib.error import HTTPError import urllib.request as urllib2 import urllib.parse as urlparse from urllib.reque...
PypiClean
/esse3_student-3.7.0-py3-none-any.whl/esse3_student/tui/reservations.py
import asyncio from esse3_student import cli from textual.app import ComposeResult from textual.binding import Binding from textual.widgets import Static, Button, Footer, Checkbox from textual.containers import Container, Horizontal, Vertical from textual.screen import Screen from rich import box from rich.table imp...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/pure1/Pure1_1_0/models/blade_array_status.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.pure1.Pure1_1_0 import models class BladeArrayStatus(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is ...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/iam/models/model_user_info_response.py
# template file: ags_py_codegen # AccelByte Gaming Services Iam Service (7.1.0) # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: d...
PypiClean
/bio-minos-0.9.1.tar.gz/bio-minos-0.9.1/minos/multi_sample_pipeline.py
import logging import os import shutil from cluster_vcf_records import vcf_file_read from minos import dependencies, utils, vcf_file_split_deletions class Error (Exception): pass class MultiSamplePipeline: def __init__(self, ref_fasta, input_data_tsv, output_dir, max_alleles_per_...
PypiClean
/pycopy-utokenize-2.0.tar.gz/pycopy-utokenize-2.0/utokenize.py
from token import * from ucollections import namedtuple import uio COMMENT = N_TOKENS + 0 NL = N_TOKENS + 1 ENCODING = N_TOKENS + 2 tok_name[COMMENT] = "COMMENT" tok_name[NL] = "NL" tok_name[ENCODING] = "ENCODING" class TokenInfo(namedtuple("TokenInfo", ("type", "string", "start", "end", "line"))): def __str__...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/ops/dcn/deform_pool.py
import torch import torch.nn as nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from . import deform_pool_cuda class DeformRoIPoolingFunction(Function): @staticmethod def forward(ctx, data, ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/identity_governance/entitlement_management/connected_organizations/item/internal_sponsors/get_user_owned_objects/get_user_owned_objects_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
/tccli-intl-en-3.0.779.1.tar.gz/tccli-intl-en-3.0.779.1/tccli/services/gme/gme_client.py
import os import sys import six import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli import __version__ from tccli.utils import Utils from tccli.exceptions import ConfigurationError, ClientError, ParamError from tencentcloud.common import credential from tencent...
PypiClean