id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/mysql-connector-python-dd-2.0.2.tar.gz/mysql-connector-python-dd-2.0.2/lib/mysql/connector/authentication.py
# MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special exceptions to the terms and # conditions of the GPLv2 as it is applied to this software, see the # FOSS License Exception # <http://www.mysql.com/...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md
## 6.3.0 (2019-08-12) ### New features `sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard. ## 6.2.1 (2019-07-21) ### Bug fixes Fix bug causing Acorn to treat some characters as identifier characters that shouldn't b...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/app_list_item_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 app_list_item, base_collection_pagination_count_response class AppListItemCollectionResponse(base_collection_pagination_c...
PypiClean
/tiamat_pip-1.11.0-py3-none-any.whl/tiamatpip/ext/pip/_vendor/pygments/lexers/_mapping.py
LEXERS = { 'ABAPLexer': ('pip._vendor.pygments.lexers.business', 'ABAP', ('abap',), ('*.abap', '*.ABAP'), ('text/x-abap',)), 'AMDGPULexer': ('pip._vendor.pygments.lexers.amdgpu', 'AMDGPU', ('amdgpu',), ('*.isa',), ()), 'APLLexer': ('pip._vendor.pygments.lexers.apl', 'APL', ('apl',), ('*.apl', '*.aplf', '*.a...
PypiClean
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/isis_neighbor_attribute/neighbors/neighbor/subTLVs/subTLVs_/bandwidth_constraints/state/__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
/plone.formwidget.hcaptcha-1.0.2.tar.gz/plone.formwidget.hcaptcha-1.0.2/src/plone/formwidget/hcaptcha/interfaces.py
from plone.formwidget.hcaptcha.i18n import _ from z3c.form import interfaces from zope import schema from zope.interface import Interface from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary display_themes = SimpleVocabulary( [ SimpleTerm(value=u"light", title=_(u"light")), SimpleTerm(va...
PypiClean
/django_uwsgi_taskmanager-2.3.5-py3-none-any.whl/taskmanager/management/commands/restart_despooled_tasks.py
import datetime from taskmanager.management.base import LoggingBaseCommand from os.path import exists from taskmanager.models import Task class Command(LoggingBaseCommand): """Command to re-start all tasks being in a SPOOLED state, but missing the spooler file. This happens when a container restarts and no v...
PypiClean
/django-m2m-history-0.3.6.tar.gz/django-m2m-history-0.3.6/m2m_history/descriptors.py
import warnings import django from django.contrib.contenttypes.models import ContentType from django.db import models from django.db.models import Q from django.db.models.fields.related import ManyRelatedObjectsDescriptor, ReverseManyRelatedObjectsDescriptor, \ cached_property, create_many_related_manager, router, ...
PypiClean
/collective.cmcicpaiement-1.0b1.zip/collective.cmcicpaiement-1.0b1/collective/cmcicpaiement/aller.py
from zope import component from zope import schema from zope import interface from Products.Five.browser import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile #cmf from Products.CMFCore.utils import getToolByName #plone from plone.registry.interfaces import IRegistry from plone.uu...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/types/updates.py
from ...tl.tlobject import TLObject from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime if TYPE_CHECKING: from ...tl.types import TypeChat, TypeDialog, TypeEncryptedMessage, TypeMessage, TypeUpdate, TypeUser from ...tl.types.updates import TypeState c...
PypiClean
/scrape-glosbe-dict-0.1.1.tar.gz/scrape-glosbe-dict-0.1.1/scrape_glosbe_dict/__main__.py
# pylint: disable=invalid-name from pathlib import Path from typing import Optional import cchardet import logzero import typer from logzero import logger from set_loglevel import set_loglevel from textwrap import dedent from tqdm import tqdm from scrape_glosbe_dict import __version__, scrape_glosbe_dict from scrape_...
PypiClean
/apache-airflow-zack-1.10.15.9.tar.gz/apache-airflow-zack-1.10.15.9/airflow/contrib/operators/cassandra_to_gcs.py
from __future__ import unicode_literals import json from builtins import str from base64 import b64encode from datetime import datetime from decimal import Decimal from six import text_type, binary_type, PY3 from tempfile import NamedTemporaryFile from uuid import UUID from cassandra.util import Date, Time, SortedSet...
PypiClean
/rea-0.1.1.tar.gz/rea-0.1.1/ReaFlagHandler.py
# --------------------------------------------------------------------- # ---- Import --------------------------------------------------------- # --------------------------------------------------------------------- import copy import numpy as np from rea.Utilities import as_column_major_storage from .fortran import f...
PypiClean
/acapy_peopledata_did-0.1.0-py3-none-any.whl/peopledata_did/v1_0/routes/data_agreement_auditor_functions_routes.py
import logging from aiohttp import web from aiohttp_apispec import docs, querystring_schema, response_schema from aries_cloudagent.messaging.models.base import BaseModelError from aries_cloudagent.storage.error import StorageError from dexa_sdk.managers.ada_manager import V2ADAManager from dexa_sdk.utils import clean_...
PypiClean
/Benchmarker-4.0.1.tar.gz/Benchmarker-4.0.1/README.rst
===================== Benchmarker.py README ===================== | $Release: 4.0.1 $ | $License: Public Domain $ | $Copyright: copyright(c) 2010-2011 kuwata-lab.com all rights reserved $ Overview ======== Benchmarker.py is an awesome benchmarking tool for Python. * Easy to use * Pretty good output (including JSO...
PypiClean
/pyCTQW-1.1.0.tar.gz/pyCTQW-1.1.0/docs/pyCTQW.MPI.Graph3P.rst
=========================== :class:`pyCTQW.MPI.Graph3P` =========================== .. currentmodule:: pyCTQW.MPI .. autoclass:: pyCTQW.MPI.Graph3P :show-inheritance: Method Summary --------------- .. autosummary:: :toctree: stub :template: method.rst Graph3P.createH Graph3P.createInitState Graph3P.destroy ...
PypiClean
/odoo13_addon_sales_team_security-13.0.3.0.1-py3-none-any.whl/odoo/addons/sales_team_security/models/res_partner.py
from lxml import etree from odoo import api, fields, models class ResPartner(models.Model): _inherit = "res.partner" # add indexes for better performance on record rules user_id = fields.Many2one(index=True) team_id = fields.Many2one(index=True) @api.model def fields_view_get( self...
PypiClean
/cameras-dashboard-20221009112053.tar.gz/cameras-dashboard-20221009112053/cameras_dashboard/c.62305b3f.js
import{U as t,V as e,aE as r,ay as o,ah as l,G as n,K as i,az as a,$ as c,aA as s,aC as d,r as h,n as u,aB as p,d as f}from"./main-d07cb663.js";import{T as m}from"./c.c11921c6.js";var g={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__tes...
PypiClean
/django-basic-cms-0.3.16.tar.gz/django-basic-cms-0.3.16/basic_cms/static/pages/ckeditor/_source/plugins/uicolor/dialogs/uicolor.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'uicolor', function( editor ) { var dialog, picker, pickerContents, // Actual UI color value. uiColor = editor.getUiColor(); function setNewPicke...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/tr46/LICENSE.md
The MIT License (MIT) Copyright (c) 2016 Sebastian Mayr 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, p...
PypiClean
/zgw-consumers-0.26.2.tar.gz/zgw-consumers-0.26.2/README.rst
.. zgw_consumers documentation master file, created by startproject. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to ZGW Consumers' documentation! ======================================== :Version: 0.26.2 :Source: https://github.com/mayk...
PypiClean
/tungsten-prometheus-exporter-0.1.2.tar.gz/tungsten-prometheus-exporter-0.1.2/tungsten_prometheus_exporter/metric.py
from collections import UserList, UserDict import logging from gevent.pool import Pool, Group import requests from requests.packages.urllib3.util import Retry from requests.adapters import HTTPAdapter from keystoneauth1.session import Session from jsonpath_rw import parse, Fields from prometheus_client import Enum ...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/bosch_shc/config_flow.py
from __future__ import annotations from collections.abc import Mapping import logging from os import makedirs from typing import Any, cast from boschshcpy import SHCRegisterClient, SHCSession from boschshcpy.exceptions import ( SHCAuthenticationError, SHCConnectionError, SHCRegistrationError, SHCSessi...
PypiClean
/knowledge_repo-0.9.3-py3-none-any.whl/knowledge_repo/app/utils/posts.py
from ..proxies import db_session from ..models import ( Comment, PageView, Post, Tag, User, Vote, ) from flask import current_app from sqlalchemy import func, distinct, or_ import math def get_query_param_set(params): """ Strip, lowercase, and remove empty params to be used in a query ...
PypiClean
/cdktf-cdktf-provider-google-9.0.1.tar.gz/cdktf-cdktf-provider-google-9.0.1/src/cdktf_cdktf_provider_google/folder_access_approval_settings/__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 FolderAccessApprovalSettings( _cdktf_9a9027ec.Terr...
PypiClean
/lexoffice-0.0.1.tar.gz/lexoffice-0.0.1/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/mbGDML-0.1.1-py3-none-any.whl/mbgdml/_gdml/desc.py
from functools import partial import multiprocessing as mp import numpy as np import scipy as sp from ..logger import GDMLLogger try: import torch except ImportError: _HAS_TORCH = False else: _HAS_TORCH = True Pool = mp.get_context("fork").Pool log = GDMLLogger(__name__) def _pbc_diff(diffs, lat_and_i...
PypiClean
/waymo_open_dataset_2_0_0-1.0.1-cp35-cp35m-manylinux2010_x86_64.whl/waymo_open_dataset/utils/transform_utils.py
"""Utils to manage geometry transforms.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf __all__ = ['get_yaw_rotation', 'get_rotation_matrix', 'get_transform'] def get_yaw_rotation(yaw, name=None): """Gets a rotation matrix gi...
PypiClean
/aiokafka-0.8.1.tar.gz/aiokafka-0.8.1/README.rst
aiokafka ======== .. image:: https://github.com/aio-libs/aiokafka/actions/workflows/tests.yml/badge.svg?branch=master :target: https://github.com/aio-libs/aiokafka/actions/workflows/tests.yml?query=branch%3Amaster :alt: |Build status| .. image:: https://codecov.io/github/aio-libs/aiokafka/coverage.svg?branch=ma...
PypiClean
/cloudbiolinux-0.3a.tar.gz/cloudbiolinux-0.3a/utils/s3_multipart_upload.py
import os import sys import glob import subprocess import contextlib import functools import multiprocessing from multiprocessing.pool import IMapIterator from optparse import OptionParser import boto def main(transfer_file, bucket_name, s3_key_name=None, use_rr=True, make_public=True, cores=None): if s3...
PypiClean
/dash_ifc_wtg-0.0.3.tar.gz/dash_ifc_wtg-0.0.3/README.md
# Dash IFC WTG Dash IFC WTG is a Dash component library. Get started with: 1. Install Dash and its dependencies: https://dash.plotly.com/installation 2. Run `python usage.py` 3. Visit http://localhost:8050 in your web browser ## Contributing See [CONTRIBUTING.md](./CONTRIBUTING.md) ### Install dependencies If you...
PypiClean
/beem-blurt-discord-0.24.26.tar.gz/beem-blurt-discord-0.24.26/beembase/objects.py
import json from math import floor import decimal from beemgraphenebase.py23 import py23_bytes, bytes_types, integer_types, string_types, text_type from collections import OrderedDict from beemgraphenebase.types import ( Uint8, Int16, Uint16, Uint32, Uint64, Varint32, Int64, String, Bytes, Void, Array, Poin...
PypiClean
/adafruit-circuitpython-minimqtt-7.4.1.tar.gz/adafruit-circuitpython-minimqtt-7.4.1/examples/esp32spi/minimqtt_pub_sub_blocking_esp32spi.py
import os import time import board import busio from digitalio import DigitalInOut import neopixel from adafruit_esp32spi import adafruit_esp32spi import adafruit_esp32spi.adafruit_esp32spi_socket as socket import adafruit_minimqtt.adafruit_minimqtt as MQTT # Add settings.toml to your filesystem CIRCUITPY_WIFI_SSID ...
PypiClean
/authok-python-1.22.1.tar.gz/authok-python-1.22.1/authok/v3/management/rules_configs.py
from .rest import RestClient class RulesConfigs(object): """RulesConfig endpoint implementation. Args: domain (str): Your AuthOK domain, e.g: 'username.cn.authok.cn' token (str): Management API v1 Token telemetry (bool, optional): Enable or disable Telemetry (defaults to...
PypiClean
/django-happystamp-0.3.tar.gz/django-happystamp-0.3/happystamp/gcm.py
import requests import json from django.core.exceptions import ImproperlyConfigured from django.conf import settings import django.dispatch post_push=django.dispatch.Signal(providing_args=["message", "reg_id", "error", "kwargs"]) class BaseGCMMessage(object): def __init__(self): self.api_key = settings....
PypiClean
/neptune-cli-2.8.23-1.tar.gz/neptune-cli-2.8.23/neptune/internal/client_library/threads/action_executor.py
from future.builtins import object, str import logging import threading import traceback from multiprocessing.pool import ThreadPool from neptune.internal.common.utils.str import to_unicode class ActionExecutor(object): def __init__(self, thread_pool_size, experiment_id, api_service, actions_map, ...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/ais_supla_mqtt/config_flow.py
import logging import aiohttp import voluptuous as vol import yarl from homeassistant import config_entries from homeassistant.components import ais_cloud from homeassistant.components.ais_dom import ais_global from homeassistant.components.http import current_request from homeassistant.components.http.view import H...
PypiClean
/robomeshcat-1.1.1.tar.gz/robomeshcat-1.1.1/README.md
# RoboMeshCat [![](https://anaconda.org/conda-forge/robomeshcat/badges/version.svg)](https://anaconda.org/conda-forge/robomeshcat) [![PyPI version](https://badge.fury.io/py/robomeshcat.svg)](https://badge.fury.io/py/robomeshcat) ![](https://anaconda.org/conda-forge/robomeshcat/badges/downloads.svg) [![License](https:/...
PypiClean
/satellite-copernicus-0.1.1.tar.gz/satellite-copernicus-0.1.1/weather/utils/episem.py
import datetime from datetime import timedelta, datetime import numpy as np __author__ = 'Marcelo Ferreira da Costa Gomes' """ Return Brazilian epidemiological week from passed date """ def extractweekday(x=datetime): # Extract weekday as [Sun-Sat] |-> [0-6] # isoweekday() returns weekday with [Mon-Sun] as ...
PypiClean
/auto_name_enum-2.0.0-py3-none-any.whl/auto_name_enum-2.0.0.dist-info/LICENSE.md
# MIT License Copyright (c) `2020` - `2022` `Tucker Beck` 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,...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/prelude-ls/lib/Num.js
var max, min, negate, abs, signum, quot, rem, div, mod, recip, pi, tau, exp, sqrt, ln, pow, sin, tan, cos, asin, acos, atan, atan2, truncate, round, ceiling, floor, isItNaN, even, odd, gcd, lcm; max = curry$(function(x$, y$){ return x$ > y$ ? x$ : y$; }); min = curry$(function(x$, y$){ return x$ < y$ ? x$ : y$; });...
PypiClean
/amcp_pylib-0.2.2-py3-none-any.whl/amcp_pylib/core/syntax/parser.py
from .scanner import Scanner from .token import Token from .token_types import TokenType from .command_group import CommandGroup from .command_argument import CommandArgument class Parser: """ Class providing lexical token processing and syntactic validation. """ scanner: Scanner = None def __in...
PypiClean
/python_ndn-0.4.1-py3-none-any.whl/ndn/app_support/light_versec/checker.py
from __future__ import annotations from typing import Callable, Iterator from ...encoding import Name, BinaryStr, FormalName, NonStrictName, Component from ...security import Keychain from ..security_v2 import parse_certificate from . import binary as bny from .compiler import top_order __all__ = ['UserFn', 'LvsModel...
PypiClean
/salt-ssh-9000.tar.gz/salt-ssh-9000/salt/states/mysql_database.py
import logging import sys log = logging.getLogger(__name__) # pylint: disable=undefined-variable def __virtual__(): """ Only load if the mysql module is available in __salt__ """ if "mysql.db_exists" in __salt__: return True return (False, "mysql module could not be loaded") def _get_m...
PypiClean
/pdb2pqr_htmd_propka30-0.0.4.tar.gz/pdb2pqr_htmd_propka30-0.0.4/pdb2pqr/propka30/Source/rotate.py
#propka3.0, revision 182 2011-08-09 #------------------------------------------------------------------------------------------------------- #-- -- #-- ...
PypiClean
/syntaxnet_with_tensorflow-0.2-cp27-cp27mu-manylinux1_x86_64.whl/syntaxnet_with_tensorflow-0.2.data/purelib/tensorflow/python/framework/dtypes.py
"""Library of dtypes (Tensor element types).""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from tensorflow.core.framework import types_pb2 class DType(object): """Represents the type of the elements in a `Tensor`. The followi...
PypiClean
/exactly-0.15.0-py3-none-any.whl/exactly_lib/impls/instructions/multi_phase/environ/impl.py
import enum import re from abc import ABC, abstractmethod from typing import Dict, Mapping from typing import Sequence, Optional, FrozenSet from exactly_lib.impls.instructions.multi_phase.utils import instruction_embryo as embryo from exactly_lib.symbol.sdv_structure import SymbolUsage, SymbolReference from exactly_li...
PypiClean
/Quizlet%20API-0.1.0.tar.gz/Quizlet API-0.1.0/quizlet/entities.py
from __future__ import unicode_literals, absolute_import from tortilla.utils import Bunch __all__ = ['Set', 'Class', 'User'] class Entity(Bunch): """ A base Quizlet Entity. Attributes: endpoint(:obj:`.QuizletAPI`): An api's endpoint that points to this object. Allows makes requests from ...
PypiClean
/scrapy_redis_ironman-0.1.0-py3-none-any.whl/scrapy_redis_bloomfilter/scheduler.py
import importlib import six from scrapy.utils.misc import load_object from . import connection, defaults from .defaults import BLOOMFILTER_BIT, BLOOMFILTER_HASH_NUMBER # TODO: add SCRAPY_JOB support. class Scheduler(object): """Redis-based scheduler Settings -------- SCHEDULER_PERSIST : bool (defau...
PypiClean
/django-base-hashtag-learning-0.1.3.tar.gz/django-base-hashtag-learning-0.1.3/base/models.py
from django.db import models from schools.models import School, Faculty from common import common_helpers def get_first_faculty(): return Faculty.objects.all()[0].pk class QIManager(models.Manager): # get a QI based on the pk def get_qi(self, pk): return self.get(pk=pk) def get_all_qis(se...
PypiClean
/unicms-0.30.2-py3-none-any.whl/cms/publications/migrations/0009_auto_20210401_0620.py
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cmspublications', '0008_auto_20210308_1404'), ] operations = [ ...
PypiClean
/pymine_net-0.2.2-py3-none-any.whl/pymine_net/packets/v_1_18_1/play/explosion.py
from __future__ import annotations from typing import List, Tuple from pymine_net.types.buffer import Buffer from pymine_net.types.packet import ClientBoundPacket __all__ = ("PlayExplosion",) class PlayExplosion(ClientBoundPacket): """Sent when an explosion occurs (creepers, TNT, and ghast fireballs). (Server...
PypiClean
/jac_nlp-1.4.1.9.tar.gz/jac_nlp-1.4.1.9/jac_nlp/bi_enc/bi_enc.py
import os import torch from typing import Dict, List, Union from fastapi import HTTPException from transformers import AutoModel, AutoConfig, AutoTokenizer import traceback import numpy as np from jaseci.jsorc.live_actions import jaseci_action from jaseci.utils.utils import model_base_path import random import json imp...
PypiClean
/aliyun-python-sdk-trademark-1.2.1.tar.gz/aliyun-python-sdk-trademark-1.2.1/aliyunsdktrademark/request/v20180724/StoreMaterialTemporarilyRequest.py
from aliyunsdkcore.request import RpcRequest class StoreMaterialTemporarilyRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Trademark', '2018-07-24', 'StoreMaterialTemporarily','trademark') def get_ContactEmail(self): return self.get_query_params().get('ContactEmail') def set_ContactEmail(...
PypiClean
/caellion-python-commons-0.1.85.tar.gz/caellion-python-commons-0.1.85/doxygen-docs/search/all_9.js
var searchData= [ ['int_5fto_5fb36_77',['int_to_b36',['../classcaellion_1_1pycommons_1_1encoding_1_1base36_1_1_base36_coder.html#a8c39e0b1216998dc42c403d67a3c3022',1,'caellion::pycommons::encoding::base36::Base36Coder']]], ['invalid_5fset_5fversion_78',['invalid_set_version',['../namespaceversion-check.html#a824793...
PypiClean
/Geode_GEM-0.12.0-py3-none-any.whl/geode_gem/widgets/editor.py
# Filesystem from pathlib import Path from os import R_OK, W_OK, access # Geode from geode_gem.widgets.common import GeodeGtkCommon # GObject from gi.repository import Gtk, GtkSource, Pango # Typing from typing import Union TEXTVIEW_CSS = """ textview { font-family: %(family)s; font-size: %(size)dpt; ...
PypiClean
/mozi-2.0.3.tar.gz/mozi-2.0.3/doc/vae.md
Variational Autoencoder ===== You can try the Variational Autoencoder [Example](../example/mnist_vae.py) running on Mnist. ```python import os import theano import theano.tensor as T import numpy as np from mozi.datasets.mnist import Mnist from mozi.model import Sequential from mozi.layers.vae import VariationalAutoe...
PypiClean
/piwebapi_restapi-0.0.6-py3-none-any.whl/piwebapi/models/pi_data_server_license.py
from pprint import pformat from six import iteritems class PIDataServerLicense(object): swagger_types = { 'amount_left': 'str', 'amount_used': 'str', 'name': 'str', 'total_amount': 'str', 'links': 'PIDataServerLicenseLinks', 'web_exception': 'PIWebException', } attribute_map = { 'amount_left': 'Amou...
PypiClean
/sevenbridges-cwl-1.1.4.tar.gz/sevenbridges-cwl-1.1.4/sbg/cwl/serialize/inspector.py
import re import dis import types import inspect import textwrap import itertools import functools class Function(object): def_re = re.compile(r'^\s*def\s+') deco_re = re.compile(r'^\s*(?P<deco>@([^\d\W]\w*\.?)+)', re.UNICODE) brace_re = re.compile(r'^\s*\(') empty_brace_re = re.compile(r'^\s*\(\s*\)'...
PypiClean
/distributions_Jason-0.1.tar.gz/distributions_Jason-0.1/distributions_Jason/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
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/eslint/lib/rules/key-spacing.js
"use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = require("./utils/ast-utils"); //----------------------------------------------------------------------------...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/autocomplete_piggy.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_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
/ss-acryl-datahub-0.9.6.4.post15.tar.gz/ss-acryl-datahub-0.9.6.4.post15/src/datahub/ingestion/source/usage/clickhouse_usage.py
import collections import dataclasses import logging from datetime import datetime from typing import Dict, Iterable, List from dateutil import parser from pydantic.fields import Field from pydantic.main import BaseModel from sqlalchemy import create_engine from sqlalchemy.engine import Engine import datahub.emitter....
PypiClean
/pdfo-1.0.tar.gz/pdfo-1.0/fsrc/original/lincoa/README.txt
The code was sent by Professor Powell to Zaikun Zhang on December 14th, 2013. The file "email.txt" is the original email. For more information on LINCOA, you might contact Professor Powell (mjdp@cam.ac.uk). December 15th, 2013 Zaikun Zhang (www.zhangzk.net) Below are the remarks from Professor ...
PypiClean
/faradaysec-4.5.1.tar.gz/faradaysec-4.5.1/faraday/server/web.py
import logging import multiprocessing import sys from signal import SIGABRT, SIGILL, SIGINT, SIGSEGV, SIGTERM, SIG_DFL, SIGUSR1, signal # Related third party imports import twisted.web from autobahn.twisted.websocket import listenWS from twisted.internet import reactor, error from twisted.web.http import proxiedLogFor...
PypiClean
/descarteslabs_dynamic_compute-0.8.0.tar.gz/descarteslabs_dynamic_compute-0.8.0/descarteslabs/dynamic_compute/dot.py
from numbers import Number from typing import Type, Union import numpy as np from .compute_map import ComputeMap from .image_stack import ImageStack from .image_stack import dot as image_stack_dot from .mosaic import Mosaic from .mosaic import dot as mosaic_dot def type_resolver(t: Type) -> Type: # Identify t w...
PypiClean
/toptica_lasersdk-3.1.0.tar.gz/toptica_lasersdk-3.1.0/toptica/lasersdk/asyncio/dlcpro/v2_2_0.py
from typing import Tuple from typing import Optional from toptica.lasersdk.asyncio.client import UserLevel from toptica.lasersdk.asyncio.client import Client from toptica.lasersdk.asyncio.client import DecopError from toptica.lasersdk.asyncio.client import DeviceNotFoundError from toptica.lasersdk.asyncio.client im...
PypiClean
/gigs_client-0.0.1-py3-none-any.whl/gigs_client/models/portings_list200_response.py
from __future__ import annotations import pprint import re # noqa: F401 import json from typing import Any, Optional from pydantic import BaseModel, Field class PortingsList200Response(BaseModel): """ PortingsList200Response """ object: Optional[Any] = Field(..., description="Type of object is alway...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/lodash/wrapperLodash.js
var LazyWrapper = require('./_LazyWrapper'), LodashWrapper = require('./_LodashWrapper'), baseLodash = require('./_baseLodash'), isArray = require('./isArray'), isObjectLike = require('./isObjectLike'), wrapperClone = require('./_wrapperClone'); /** Used for built-in method references. */ var objec...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/applications/item/application_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/basic_probability_distributions-0.1.tar.gz/basic_probability_distributions-0.1/basic_probability_distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/SpacePY_X-1.1.4.5-py3-none-any.whl/spacexpython/utils.py
import ast import json import sys import requests import cachepy from bs4 import BeautifulSoup from tinydb import TinyDB, Query from tinydb.storages import MemoryStorage sys.path.append('../') from .exceptions import * clientcache = cachepy.Cache() APIcache = cachepy.Cache() appcache = cachepy.Cache() def jsonPa...
PypiClean
/edu-airflow-1.10.5.tar.gz/edu-airflow-1.10.5/airflow/contrib/executors/mesos_executor.py
from future import standard_library from builtins import str from queue import Queue import mesos.interface from mesos.interface import mesos_pb2 import mesos.native from airflow.configuration import conf from airflow.executors.base_executor import BaseExecutor from airflow.settings import Session from airflow.util...
PypiClean
/llama_hub-0.0.26-py3-none-any.whl/llama_hub/tools/notebooks/gmail-Copy1.ipynb
``` # Setup OpenAI Agent import openai openai.api_key = 'sk-your-key' from llama_index.agent import OpenAIAgent # Import and initialize our tool spec from llama_hub.tools.gmail.base import GmailToolSpec tool_spec = GmailToolSpec() # Create the Agent with our tools agent = OpenAIAgent.from_tools(tool_spec.to_tool_lis...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/caniuse-lite/data/regions/RE.js
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0.006013,"23":0,"24":0,"25":0,"26":0.012026,"27":0,"28":0,"29":0.006013,"30":0,"31":0,"32":0,"33":0,"34":0.072156,"35":0,"36":0,"37":0,"38":0.066143,"39":0.012026,"40":0.006013...
PypiClean
/acl-0.2.tar.gz/acl-0.2/LICENSE.rst
License ======= Copyright 2012, AOL Inc. 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, soft...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/postcss-discard-unused/node_modules/postcss/CHANGELOG.md
# Change Log This project adheres to [Semantic Versioning](http://semver.org/). ## 5.1.18 * Fix TypeScript definitions for case of multiple PostCSS versions in `node_modules` (by Chris Eppstein). ## 5.2.17 * Add `postcss-sass` suggestion to syntax error on `.sass` input. ## 5.2.16 * Better error on wrong argument ...
PypiClean
/pro-football_reference_web_scrape_v2-0.2.0.tar.gz/pro-football_reference_web_scrape_v2-0.2.0/README.md
# pro-football-reference-web-scraper Web scraper to retrieve player and team data from Pro Football Reference. [![License](https://img.shields.io/github/license/mjk2244/pro-football-reference-web-scraper)](https://opensource.org/licenses/Apache-2.0) ![GitHub issues](https://img.shields.io/github/issues/mjk2244/pro-f...
PypiClean
/dash_iconify-0.1.2-py3-none-any.whl/dash_iconify/dash_iconify.min.js
window.dash_iconify=function(e){function t(t){for(var n,o,i=t[0],u=t[1],c=0,a=[];c<i.length;c++)o=i[c],r[o]&&a.push(r[o][0]),r[o]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(p&&p(t);a.length;)a.shift()()}var n={},r={1:0};function o(e){return i.p+""+({0:"async-DashIconify"}[e]||e)+".js"}funct...
PypiClean
/ago-0.0.95.tar.gz/ago-0.0.95/README.rst
What are human readable timedeltas? =============================================== ago.py makes customizable human readable timedeltas, for example: Testing past tense:: Russell commented 1 year, 127 days, 16 hours ago You replied 1 year, 127 days ago Testing future tense:: Program will shutdown in 2 days, 3 ...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/iot1click-projects/update-placement.rst
**To update the "attributes" key-value pairs of a placement** The following ``update-placement`` example update the "attributes" key-value pairs of a placement. :: aws iot1click-projects update-placement \ --cli-input-json file://update-placement.json Contents of ``update-placement.json``:: { ...
PypiClean
/zf_sampleSprider-0.2.0-py3-none-any.whl/sampleSprider_old/SampleSprider4_Comics1.py
from bs4 import BeautifulSoup import requests import re from urllib.request import urlretrieve import os import sys import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') log = logging.getLogger(__name__) # 该程序设置了运行参数,主程序不再改动,从数组第二个参数开始设置,分别为漫画章节目录地址 漫画...
PypiClean
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/fs-extra/CHANGELOG.md
Unreleased ---------- ### Added ### Removed ### Changed ### Fixed 1.0.0 / 2016-11-01 ------------------ After five years of development, we finally have reach the 1.0.0 milestone! Big thanks goes to [Ryan Zim](https://github.com/RyanZim) for leading the charge on this release! ### Added - `walkSync()` ### Chan...
PypiClean
/fsm-pull-0.2.29.tar.gz/fsm-pull-0.2.29/fsm_pull/fsm.py
import json import os import time from concurrent import futures from datetime import datetime from typing import Optional import pytz from docopt import docopt from loguru import logger from tqdm import tqdm from fsm_pull import __version__ from fsm_pull.connection import Connection def convert_date(date_string: s...
PypiClean
/django-mssql-azure-backend-1.0.14.tar.gz/django-mssql-azure-backend-1.0.14/sql_server/pyodbc/introspection.py
import pyodbc as Database from django.db.backends.base.introspection import ( BaseDatabaseIntrospection, FieldInfo, TableInfo, ) from django.db.models.indexes import Index SQL_AUTOFIELD = -777555 SQL_BIGAUTOFIELD = -777444 class DatabaseIntrospection(BaseDatabaseIntrospection): # Map type codes to Django Fi...
PypiClean
/pycat-real-0.35.tar.gz/pycat-real-0.35/pycat/xterm_colors.py
import numpy as np from . import config from itertools import chain import six import logging XTERM_256_SHORT_TO_RGB = { # Primary 3-bit (8 colors). Unique representation! 0: (0x00, 0x00, 0x00), 1: (0x80, 0x00, 0x00), 2: (0x00, 0x80, 0x00), 3: (0x80, 0x80, 0x00), 4: (0x00, 0x00, 0x80), 5: (...
PypiClean
/lib-V5-0.0.0.tar.gz/lib-V5-0.0.0/lib_py_parse/utils/parsing_utils.py
import lib_py_parse.utils.exceptions as exceptions import lib_py_parse.utils.constants as constants def indent_multiline_str(indent_str, multiline_str): return '\n'.join( [ f'{indent_str}{x}' for x in multiline_str.splitlines() ] ) def get_fmt_str_e...
PypiClean
/symbolicai-0.2.50-py3-none-any.whl/symai/backend/engine_crawler.py
from typing import Callable, List from .base import Engine from .driver.webclient import connect_browsers, dump_page_source, page_loaded class CrawlerEngine(Engine): def __init__(self, debug: bool = False): super().__init__() self.debug = debug self.driver_handler = None def _init_cr...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/custom_body_force/hdf5_output_tool.py
import KratosMultiphysics import h5py import numpy as np class Hdf5OutputTool: def __init__(self, model, settings, ): default_settings = KratosMultiphysics.Parameters(""" { "model_part_name" : "main_model_part", "file_name" : "output_file", ...
PypiClean
/ansys_dpf_composites-0.3.0-py3-none-any.whl/ansys/dpf/composites/data_sources.py
from dataclasses import dataclass import os import pathlib from typing import Callable, Dict, List, Optional, Sequence, Union, cast from ansys.dpf.core import DataSources from ._typing_helper import PATH as _PATH __all__ = ( "CompositeDefinitionFiles", "ContinuousFiberCompositesFiles", "ShortFiberComposi...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/acorn-walk/README.md
# Acorn AST walker An abstract syntax tree walker for the [ESTree](https://github.com/estree/estree) format. ## Community Acorn is open source software released under an [MIT license](https://github.com/acornjs/acorn/blob/master/acorn-walk/LICENSE). You are welcome to [report bugs](https://github.com/acornjs/acorn/...
PypiClean
/dho_distributions-0.1.tar.gz/dho_distributions-0.1/dho_distributions/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
/scikit_image_arm64-0.17.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/skimage/morphology/convex_hull.py
from itertools import product import numpy as np from scipy.spatial import ConvexHull from ..measure.pnpoly import grid_points_in_poly from ._convex_hull import possible_hull from ..measure._label import label from ..util import unique_rows from .._shared.utils import warn __all__ = ['convex_hull_image', 'convex_hull_...
PypiClean
/py-droplets-0.18.1.tar.gz/py-droplets-0.18.1/droplets/droplets.py
from __future__ import annotations import logging import math import warnings from abc import ABCMeta, abstractmethod from pathlib import Path from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Tuple, TypeVar import numpy as np from numba.extending import register_jitable from numpy.lib.recfunctions imp...
PypiClean
/gofish-1.6.4.tar.gz/gofish-1.6.4/README.md
# GoFish <bR> <p align='center'> <br/> <img src="https://github.com/richteague/gofish/blob/master/docs/_static/logo.png" width="596" height="527"><br/> <br> <b>Fishing for molecular line detections in protoplanetary disks.</b> <br> For more information, read the documentation. <br> <br> <a href="http:...
PypiClean
/pynetsnmp-2-0.1.7.tar.gz/pynetsnmp-2-0.1.7/pynetsnmp/netsnmp.py
import logging import os import sys import logging from six import text_type, int2byte from ctypes import * from ctypes.util import find_library from . import CONSTANTS from .CONSTANTS import * if sys.version_info > (3,): long = int def _getLogger(name): return logging.getLogger("zen.pynetsnmp.%s" % name) ...
PypiClean
/pylOpenSSL-20.0.4-py3-none-any.whl/OpenSSL/_util.py
import os import sys import warnings from typing import Any, Callable, NoReturn, Type, Union from cryptography.hazmat.bindings.openssl.binding import Binding StrOrBytesPath = Union[str, bytes, os.PathLike] binding = Binding() ffi = binding.ffi lib = binding.lib # This is a special CFFI allocator that does not both...
PypiClean
/designate-16.0.0.tar.gz/designate-16.0.0/doc/source/user/importexport.rst
.. Copyright 2021 Red Hat 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 w...
PypiClean
/dash_mp_components-0.4.37.tar.gz/dash_mp_components-0.4.37/dash_mp_components/BibjsonFilter.py
from dash.development.base_component import Component, _explicitize_args class BibjsonFilter(Component): """A BibjsonFilter component. Component for rendering, sorting, and filtering a list of citations in bibjson format List of bibjson entries are parsed and rendered as BibCards Expects bibjson in the format us...
PypiClean
/fiddler-client-2.0.0.tar.gz/fiddler-client-2.0.0/fiddler/api/model_artifact_deploy.py
import json import math import os from abc import ABC, abstractmethod from pathlib import Path from typing import Callable, Dict, List, Optional from fiddler.constants import CONTENT_TYPE_OCTET_STREAM_HEADER, \ MULTI_PART_CHUNK_SIZE from fiddler.libs.http_client import RequestClient from fiddler.schema.model_deplo...
PypiClean