id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/cloudforet_core-1.1.2rc1-py3-none-any.whl/spaceone/core/celery/tasks.py
from celery import Task, shared_task from celery.utils.log import get_logger from spaceone.core.error import ERROR_TASK_LOCATOR, ERROR_TASK_METHOD from spaceone.core.locator import Locator from spaceone.core.logger import set_logger from spaceone.core.transaction import Transaction _LOGGER = get_logger(__name__) cl...
PypiClean
/django-ckeditor-s3-0.1.0.tar.gz/django-ckeditor-s3-0.1.0/django_ckeditor_5/static/django_ckeditor_5/src/custom_plugins/sign/signediting.js
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import Widget from '@ckeditor/ckeditor5-widget/src/widget'; import {toWidget, toWidgetEditable} from '@ckeditor/ckeditor5-widget/src/utils'; import SignCommand from "./signcommand"; import './sign.css'; export default class SignEditing extends Plugin { sta...
PypiClean
/pymmcore_widgets-0.4.2-py3-none-any.whl/pymmcore_widgets/_exposure_widget.py
from __future__ import annotations from pymmcore import g_Keyword_CoreCamera, g_Keyword_CoreDevice from pymmcore_plus import CMMCorePlus from qtpy.QtCore import Qt from qtpy.QtWidgets import QApplication, QDoubleSpinBox, QHBoxLayout, QLabel, QWidget from superqt.utils import signals_blocked class ExposureWidget(QWid...
PypiClean
/bwsample-0.7.0.tar.gz/bwsample-0.7.0/README.md
[![PyPI version](https://badge.fury.io/py/bwsample.svg)](https://badge.fury.io/py/bwsample) [![PyPi downloads](https://img.shields.io/pypi/dm/bwsample)](https://img.shields.io/pypi/dm/bwsample) [![DOI](https://joss.theoj.org/papers/10.21105/joss.03324/status.svg)](https://doi.org/10.21105/joss.03324) [![DOI](https://ze...
PypiClean
/acryl-datahub-0.10.0.2rc2.tar.gz/acryl-datahub-0.10.0.2rc2/src/datahub/telemetry/telemetry.py
import errno import json import logging import os import platform import uuid from functools import wraps from pathlib import Path from typing import Any, Callable, Dict, List, Optional, TypeVar from mixpanel import Consumer, Mixpanel from typing_extensions import ParamSpec import datahub as datahub_package from data...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/airtest/core/android/recorder.py
import re import time import six from airtest.core.android.yosemite import Yosemite from airtest.core.android.constant import YOSEMITE_PACKAGE from airtest.core.error import AirtestError from airtest.utils.logger import get_logger from airtest.utils.nbsp import NonBlockingStreamReader from airtest.utils.snippet import...
PypiClean
/ads-deploy-2.11.1.tar.gz/ads-deploy-2.11.1/ads_deploy/util.py
import distutils.version import logging import os import pathlib import re import string import pytmc logger = logging.getLogger(__name__) ADS_IOC_LOCATION = pathlib.Path( os.environ.get('ADS_IOC_LOCATION', '/reg/g/pcds/epics/ioc/common/ads-ioc') ) def get_latest_ads_ioc(): """ Get the latest ADS IOC p...
PypiClean
/Products.HaufeWingDBG-4.1.9.tar.gz/Products.HaufeWingDBG-4.1.9/Products/HaufeWingDBG/utils.py
"""WingDBG utility methods""" import os import sys import string import random if sys.platform != 'win32': import pwd from zLOG import ERROR, LOG def findInternalWinghome(winghome): """Find the pathname of the internal winghome setting. On OS X, this may add components to the path that are normally hid...
PypiClean
/uberlimb-0.9.1.tar.gz/uberlimb-0.9.1/README.md
# ÜberLimb Generative art with CPPN networks. # Get started Install package with `pip install uberlimb[runtime]` ```python from uberlimb.renderer import Renderer from uberlimb.parameters import RendererParams renderer = Renderer(RendererParams()) renderer.render_frame().as_pillow().show() ``` Expected output: ![]...
PypiClean
/sofia_redux-1.3.3.tar.gz/sofia_redux-1.3.3/sofia_redux/scan/data/configurations/fifi_ls/spatial_cal/README
The spatial calibration data are usually delivered as an Excel spreadsheet named P006DeltaVectors.xlsx. The updates for new dates are added as separate tables below the existing data. The pipeline requires the linear coefficients of the x and y offset of the secondary array from the primary array (the red offset rela...
PypiClean
/nlu_bf-4.8.tar.gz/nlu_bf-4.8/nlu_bf/nlu/extractors/Extracteur_place_time.py
from nlu_bf.nlu.components import Component from nlu_bf.nlu import utils from nlu_bf.nlu.model import Metadata import os import pandas as pd import typing from typing import Any, Optional, Text, Dict import numpy as np import regex as re from time import strftime from datetime import datetime as dt from typing import A...
PypiClean
/person_tracking-0.1.9-py3-none-any.whl/person_tracking/fractal/deep_sort/linear_assignment.py
from __future__ import absolute_import import numpy as np from sklearn.utils.linear_assignment_ import linear_assignment from . import kalman_filter INFTY_COST = 1e+5 def min_cost_matching( distance_metric, max_distance, tracks, detections, track_indices=None, detection_indices=None): """Solve l...
PypiClean
/nonebot_plugin_xiuxian-0.4.33-py3-none-any.whl/nonebot_plugin_xiuxian/xiuxian_boss/__init__.py
import re from typing import Any, Tuple from nonebot import get_bot, on_command, on_regex, require from nonebot.params import RegexGroup, CommandArg from nonebot.adapters.onebot.v11 import ( Bot, MessageEvent, GROUP, Message, GroupMessageEvent, GROUP_ADMIN, GROUP_OWNER, ActionFailed, ...
PypiClean
/bquadpy-0.16.10.tar.gz/bquadpy-0.16.10/src/quadpy/c3/_hammer_stroud.py
from sympy import Rational as frac from sympy import sqrt from ..helpers import article from ._helpers import C3Scheme, register _source = article( authors=["Preston C. Hammer", "Arthur H. Stroud"], title="Numerical Evaluation of Multiple Integrals II", journal="Math. Comp.", number="12", year="19...
PypiClean
/ediri_vultr-2.15.1.tar.gz/ediri_vultr-2.15.1/ediri_vultr/get_plan.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * __all__ = [ 'GetPlanResult', 'AwaitableGetPlanResult', 'get_plan', 'get_plan_output', ] @pulumi.ou...
PypiClean
/qifparse-0.5.tar.gz/qifparse-0.5/README.rst
QIF Parser ============ .. image:: https://travis-ci.org/giacomos/qifparse.png?branch=master :target: https://travis-ci.org/giacomos/qifparse qifparse is a parser for Quicken interchange format files (.qif). Even if the qif format is: * quite old now * not supported for import by Quicken any more, * ambiguou...
PypiClean
/lepsen-core-0.2.0rc1.tar.gz/lepsen-core-0.2.0rc1/lepsen/core/forceload.md
# Lepsen - Forceload Module ## Version Resolution <details> `@function_tag(merge) lepsen:core/_private/main/1/features` ```yaml values: - "#lepsen:core/_private/feature/1/forceload" ``` `@function_tag(merge) lepsen:core/_private/feature/1/forceload` ```yaml values: - "#lepsen:core/_private/forceload/feature.1/e...
PypiClean
/archinstall-2.5.3.tar.gz/archinstall-2.5.3/docs/examples/python.rst
.. _examples.python: Python module ============= Archinstall supports running in `module mode <https://docs.python.org/3/library/__main__.html>`_. The way the library is invoked in module mode is limited to executing scripts under the **example** folder. It's therefore important to place any script or profile you wi...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortios/plugins/modules/fortios_webfilter_urlfilter.py
from __future__ import absolute_import, division, print_function # Copyright: (c) 2022 Fortinet # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
PypiClean
/future-0.18.3.tar.gz/future-0.18.3/src/past/types/olddict.py
import sys from past.utils import with_metaclass _builtin_dict = dict ver = sys.version_info[:2] class BaseOldDict(type): def __instancecheck__(cls, instance): return isinstance(instance, _builtin_dict) class olddict(with_metaclass(BaseOldDict, _builtin_dict)): """ A backport of the Python 3 ...
PypiClean
/center/models.py
from funcron.center.app import db from sqlalchemy import Column class CronInfos(db.Model): __tablename__ = "cron_infos" id: Column = db.Column(db.Integer, primary_key=True) task_name: Column = db.Column(db.String(64), nullable=False) task_keyword: Column = db.Column(db.String(65), nullable=False, defa...
PypiClean
/edc_fabric-0.1.5a1-py3-none-any.whl/edc_fabric/fabfile/mysql/tasks.py
import os from datetime import datetime from fabric.api import run, task, env, cd, put, sudo, warn from fabric.contrib.files import exists, sed from ..constants import MACOSX, LINUX from fabric.context_managers import prefix from fabric.colors import yellow def install_protocol_database(db_archive_name=None, dbnam...
PypiClean
/dsin100daysv34-6.0.1.tar.gz/dsin100daysv34-6.0.1/notebook/static/base/js/notificationarea.js
define([ 'jquery', 'base/js/notificationwidget', ], function($, notificationwidget) { "use strict"; // store reference to the NotificationWidget class var NotificationWidget = notificationwidget.NotificationWidget; /** * Construct the NotificationArea object. Options are: * even...
PypiClean
/tensorflow_riemopt-0.1.2-py3-none-any.whl/tensorflow_riemopt/manifolds/cholesky.py
import tensorflow as tf from tensorflow_riemopt.manifolds.manifold import Manifold from tensorflow_riemopt.manifolds import utils class Cholesky(Manifold): """Manifold of lower triangular matrices with positive diagonal elements. Lin, Zhenhua. "Riemannian Geometry of Symmetric Positive Definite Matrices ...
PypiClean
/pulumi_hcp-0.1.14.tar.gz/pulumi_hcp-0.1.14/pulumi_hcp/get_hvn_route.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ 'GetHvnRouteResult', 'AwaitableGetHvnRouteResult', 'get_hvn_route', 'get_hvn_route_output', ] @pulumi.output_type class GetHvnRoute...
PypiClean
/elasticsearch_pii_redacter-1.9.2-py3-none-any.whl/app/tracking.py
# pylint: disable=broad-exception-caught, too-many-arguments, too-many-instance-attributes, missing-function-docstring import logging from app.defaults import index_settings, status_mappings from app import elastic_api from app.exceptions import FatalException, MissingDocument, MissingIndex, ResultNotExpected from app....
PypiClean
/docker-fabric-0.5.0b3.tar.gz/docker-fabric-0.5.0b3/dockerfabric/utils/files.py
from __future__ import unicode_literals import shutil import tarfile import tempfile from fabric.api import run, sudo from fabric.context_managers import documented_contextmanager from dockermap.shortcuts import rm, chmod, chown from .output import single_line_stdout def _safe_name(tarinfo): return tarinfo.nam...
PypiClean
/Autoneuro-master_new-0.0.1.tar.gz/Autoneuro-master_new-0.0.1/application/prediction/predict.py
import os from fileOperations.file_methods import FileOperation from logger.appLogger import AppLogger from dataPreprocessing.preProcess import Preprocessor class CustomException(Exception): pass class Prediction(): """ This class shall be used for prediction. Written By: iNeuron Intelligenc...
PypiClean
/django-foundation-statics-5.4.7-2.tar.gz/django-foundation-statics-5.4.7-2/foundation_scss/static/js/foundation/foundation.interchange.js
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.interchange = { name : 'interchange', version : '{{VERSION}}', cache : {}, images_loaded : false, nodes_loaded : false, settings : { load_attr : 'interchange', named_queries : { 'default' : ...
PypiClean
/python-dvr-0.0.1.tar.gz/python-dvr-0.0.1/asyncio_dvrip.py
import os import struct import json import hashlib import asyncio from datetime import * from re import compile import time import logging class SomethingIsWrongWithCamera(Exception): pass class DVRIPCam(object): DATE_FORMAT = "%Y-%m-%d %H:%M:%S" CODES = { 100: "OK", 101: "Unknown error", ...
PypiClean
/kicad_backannotate-0.0.1.tar.gz/kicad_backannotate-0.0.1/kicad_backannotate/doc/generate_screenshots.py
from kicad_backannotate.gui.kicad_backannotate_gui import BackAnnotateMainWindow from PyQt5.QtWidgets import QApplication import sys from pkg_resources import resource_filename import os from PyQt5.QtGui import QPainter, QColor BOARD_FILE=resource_filename("kicad_backannotate.test","test_data/backannotate_project/b...
PypiClean
/autotest-0.16.4.tar.gz/autotest-0.16.4/client/shared/utils_memory.py
import glob import logging import math import re from autotest.client import utils # Returns total memory in kb def read_from_meminfo(key): cmd_result = utils.run('grep %s /proc/meminfo' % key, verbose=False) meminfo = cmd_result.stdout return int(re.search(r'\d+', meminfo).group(0)) def memtotal(): ...
PypiClean
/infi.dygraphs-0.14-py3-none-any.whl/infi/dygraphs/static/dygraphs/chart_models.js
ChartData = Backbone.Model.extend({ url: null, // url to load the data from headers: {}, // headers to send when loading data chart_data: [], // the currently loaded data points data_fields: null, // array of field names in the data (loaded from the server) char...
PypiClean
/tf-models-official-2.13.1.tar.gz/tf-models-official-2.13.1/official/nlp/modeling/networks/packed_sequence_embedding.py
"""An embedding network supporting packed sequences and position ids.""" # pylint: disable=g-classes-have-attributes import collections import tensorflow as tf from official.modeling import tf_utils from official.nlp.modeling import layers @tf.keras.utils.register_keras_serializable(package='Text') class PackedSequ...
PypiClean
/django-ezybaas-0.1.4.tar.gz/django-ezybaas-0.1.4/ezybaas/static/node_modules/vue/src/platforms/web/runtime/modules/style.js
import { getStyle, normalizeStyleBinding } from 'web/util/style' import { cached, camelize, extend, isDef, isUndef, hyphenate } from 'shared/util' const cssVarRE = /^--/ const importantRE = /\s*!important$/ const setProp = (el, name, val) => { /* istanbul ignore if */ if (cssVarRE.test(name)) { el.style.setPr...
PypiClean
/hash-artifacts-0.0.1.tar.gz/hash-artifacts-0.0.1/README.md
# Hash Artifacts This script computes the combined hash for one or more paths. A path can contain glob patterns, and can be a directory or a file. The script combines the path hashes deterministically, regardless the order of the paths. ## Usage To view information about the usage of this script, use the `-h` command...
PypiClean
/tensorflow_federated-0.61.0-py3-none-manylinux_2_31_x86_64.whl/tensorflow_federated/python/simulation/models/resnet_models.py
from collections.abc import Iterable import enum from typing import Optional import tensorflow as tf BATCH_NORM_DECAY = 0.997 BATCH_NORM_EPSILON = 1e-5 L2_WEIGHT_DECAY = 1e-4 def _check_iterable_with_positive_ints(structure): if not isinstance(structure, Iterable): return False return all(isinstance(a, int...
PypiClean
/testJvis-learn-0.0.6.tar.gz/testJvis-learn-0.0.6/Jvis/distances.py
import numba import numpy as np import scipy.stats from sklearn.metrics import pairwise_distances _mock_identity = np.eye(2, dtype=np.float64) _mock_cost = 1.0 - _mock_identity _mock_ones = np.ones(2, dtype=np.float64) @numba.njit() def sign(a): if a < 0: return -1 else: return 1 @numba.nji...
PypiClean
/django-phenotype-ontologies-1.1.0.tar.gz/django-phenotype-ontologies-1.1.0/CONTRIBUTING.rst
============ 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/genomics-geek/django...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/experiment.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._enums import * from ._inputs import * __all__ = ['ExperimentArgs', 'Experiment'] @pulumi.input_type class ExperimentArgs: def...
PypiClean
/ora2-5.2.5-py3-none-any.whl/openassessment/assessment/models/base.py
from collections import defaultdict from copy import deepcopy from hashlib import sha1 import json import logging import math from django.core.cache import cache from django.db import models from django.utils.functional import cached_property from django.utils.timezone import now from simple_history.models import His...
PypiClean
/m3-ZSI-2.1.tar.gz/m3-ZSI-2.1/ZSI/schema.py
from ZSI import _copyright, _seqtypes, _find_type, _get_element_nsuri_name, EvaluateException from ZSI.wstools.Namespaces import SCHEMA, SOAP from ZSI.wstools.Utility import SplitQName def _get_type_definition(namespaceURI, name, **kw): return SchemaInstanceType.getTypeDefinition(namespaceURI, name, **kw) def _g...
PypiClean
/sofia_redux-1.3.3.tar.gz/sofia_redux-1.3.3/sofia_redux/instruments/fifi_ls/split_grating_and_chop.py
from datetime import datetime import os from astropy import log from astropy.io import fits from astropy.table import Table from astropy.time import Time import numpy as np from sofia_redux.instruments.fifi_ls.make_header import make_header from sofia_redux.toolkit.utilities \ import (hdinsert, write_hdul, gethd...
PypiClean
/gfshare-1.1.0.tar.gz/gfshare-1.1.0/README.rst
python-gfshare ============== .. image:: https://travis-ci.org/lamby/python-gfshare.svg?branch=master :target: https://travis-ci.org/lamby/python-gfshare **Full documentation**: https://lamby.github.io/python-gfshare/ ---- This Python library implements `Shamir's method for secret sharing <https://en.wikipedia....
PypiClean
/lingvo_jax-0.11.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/lingvo/tasks/asr/fusion.py
"""Utilities for fusing language models with the decoder output.""" import lingvo.compat as tf from lingvo.core import base_layer from lingvo.core import layers from lingvo.core import py_utils from lingvo.tasks.lm import layers as lm_layers class FusionBase(base_layer.BaseLayer): """Base class for fusion with LMs...
PypiClean
/pretalx_media_ccc_de-1.1.1-py3-none-any.whl/pretalx_media_ccc_de/views.py
from django.contrib import messages from django.utils.translation import gettext_lazy as _ from django.views.generic import FormView from pretalx.common.mixins.views import PermissionRequired from pretalx.submission.models import Submission from .forms import MediaCCCDeSettingsForm, MediaCCCDeUrlForm from .recording i...
PypiClean
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/codemirror/mode/swift/swift.js
// Swift mode created by Michael Kaminsky https://github.com/mkaminsky11 (function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")) else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod) else mod(CodeMirror) }...
PypiClean
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/ext/Ext/build/widgets/grid/GroupingView-min.js
Ext.grid.GroupingView=Ext.extend(Ext.grid.GridView,{hideGroupedColumn:false,showGroupName:true,startCollapsed:false,enableGrouping:true,enableGroupingMenu:true,enableNoGroups:true,emptyGroupText:"(None)",ignoreAdd:false,groupTextTpl:"{text}",gidSeed:1000,initTemplates:function(){Ext.grid.GroupingView.superclass.initTem...
PypiClean
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/recentfiles/recentfiles.py
import os.path import wx from ..pluginapi import Plugin from ..action import ActionInfo, SeparatorInfo from ..publish import RideOpenSuite, RideFileNameChanged from ..publish.messages import RideNewProject, RideSaved def normalize_path(path): if os.path.basename(path).startswith('__init__.'): return os...
PypiClean
/zmicroservices-1.0.3.tar.gz/zmicroservices-1.0.3/Utils/XMLParser.py
import pprint import json import xml.etree.cElementTree as ET import Utilities def LateXML2Dict(node, ind=''): try: nodeSize = len(node) dDict = {} #print ind+"nodeSize:", nodeSize if nodeSize>0: childDict = {} for child_of_root in node: itDict = LateXML2Dict(child_of_root, ind+' ') ...
PypiClean
/duckietown-utils-ente-7.0.0.tar.gz/duckietown-utils-ente-7.0.0/src/duckietown_code_utils/augmented_reality_utils.py
from os.path import basename, isfile, splitext from sys import exit import cv2 import numpy as np from .logging_logger import logger from .paths import get_duckiefleet_root from .yaml_pretty import yaml_load # noinspection PyNoneFunctionAssignment,PyUnresolvedReferences class BaseAugmenter(object): """Base clas...
PypiClean
/aws-sam-cli-1.96.0.tar.gz/aws-sam-cli-1.96.0/samcli/lib/sync/sync_flow_factory.py
import logging from typing import TYPE_CHECKING, Callable, Dict, List, Optional, cast from botocore.exceptions import ClientError from samcli.commands.build.build_context import BuildContext from samcli.commands.exceptions import InvalidStackNameException from samcli.lib.bootstrap.nested_stack.nested_stack_manager im...
PypiClean
/wampyre-1.1.0.tar.gz/wampyre-1.1.0/README.rst
WAMPyre ======= .. image:: https://travis-ci.org/JohnDoee/wampyre.svg?branch=master :target: https://travis-ci.org/JohnDoee/wampyre WAMPyre is a Python WAMP router with a bit of a pluggable architecture. The goal is a basic router that allows for embedding into all-in-one applications. For every other situation, ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendars/item/calendar_view/item/instances/item/multi_value_extended_properties/count/count_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
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/media/tiny_mce/langs/vi.js
tinyMCE.addI18n({vi:{common:{"more_colors":"M\u00e0u kh\u00e1c","invalid_data":"L\u1ed7i: Gi\u00e1 tr\u1ecb nh\u1eadp v\u00e0o kh\u00f4ng h\u1ee3p l\u1ec7. (\u0110\u01b0\u1ee3c \u0111\u00e1nh d\u1ea5u \u0111\u1ecf)","popup_blocked":"Xin l\u1ed7i, Nh\u01b0ng ch\u1ebf \u0111\u1ed9 c\u1eeda s\u1ed5 popup \u0111\u00e3 b\u1...
PypiClean
/django_linux-2.2.8-py3-none-any.whl/django/utils/lorem_ipsum.py
import random COMMON_P = ( 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod ' 'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim ' 'veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea ' 'commodo consequat. Duis aute irure dolor in reprehen...
PypiClean
/CYLGame-1.6.32.tar.gz/CYLGame-1.6.32/CYLGame/www/static/ace/ext-modelist.js
ace.define("ace/ext/modelist",["require","exports","module"], function(require, exports, module) { "use strict"; var modes = []; function getModeForPath(path) { var mode = modesByName.text; var fileName = path.split(/[\/\\]/).pop(); for (var i = 0; i < modes.length; i++) { if (modes[i].supportsFile...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/notify_events/notify.py
import logging import os.path from notify_events import Message from homeassistant.components.notify import ( ATTR_DATA, ATTR_TITLE, BaseNotificationService, ) from homeassistant.const import CONF_TOKEN from .const import DOMAIN ATTR_LEVEL = "level" ATTR_PRIORITY = "priority" ATTR_FILES = "files" ATTR_...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/libs/response.py
import json from pandas import DataFrame from mindsdb.utilities.log import get_log from mindsdb.api.mysql.mysql_proxy.libs.constants.response_type import RESPONSE_TYPE from mindsdb_sql.parser.ast import ASTNode logger = get_log("main") class HandlerResponse: def __init__(self, resp_type: RESPONSE_TYPE, data_fr...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvm_cmd_update_devlist.py
from __future__ import absolute_import, division, print_function # Copyright 2019-2023 Fortinet, Inc. # # 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, or # (at ...
PypiClean
/youtube_search_python-1.6.6-py3-none-any.whl/youtubesearchpython/__future__/extras.py
import copy from typing import Union from youtubesearchpython.core import VideoCore from youtubesearchpython.core.comments import CommentsCore from youtubesearchpython.core.constants import ResultMode, ChannelRequestType from youtubesearchpython.core.hashtag import HashtagCore from youtubesearchpython.core.playlist im...
PypiClean
/napari-0.4.18rc3.tar.gz/napari-0.4.18rc3/docs/release/release_0_2_5.md
# napari 0.2.5 We're happy to announce the release of napari 0.2.5! napari is a fast, interactive, multi-dimensional image viewer for Python. It's designed for browsing, annotating, and analyzing large multi-dimensional images. It's built on top of Qt (for the GUI), vispy (for performant GPU-based rendering), and the ...
PypiClean
/dsin100daysv30-6.0.1.tar.gz/dsin100daysv30-6.0.1/notebook/static/components/MathJax/jax/output/SVG/autoload/mtable.js
MathJax.Hub.Register.StartupHook("SVG Jax Ready",function(){var c="2.7.5";var a=MathJax.ElementJax.mml,d=MathJax.OutputJax.SVG,b=d.BBOX;a.mtable.Augment({toSVG:function(aa){this.SVGgetStyles();var o=this.SVG(),ap=this.SVGgetScale(o);if(this.data.length===0){this.SVGsaveData(o);return o}var aN=this.getValues("columnalig...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/kubernetes/v20200101preview/get_connected_cluster.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetConnectedClusterResult', 'AwaitableGetConnectedClusterResult', 'get_connected_cluster', ] @pulumi.output_type class GetC...
PypiClean
/met-1.0.2.tar.gz/met-1.0.2/met.py
import sys import copy from operator import mul _version = "1.0.0" _vdate = "2019-09-29" if not sys.version_info < (3,): from functools import reduce def listprod( alist ): """Return the product of all elements of a list.""" if alist == []: return 1 else: return reduce(mul, alist) def fact(n): """Return t...
PypiClean
/python_can-4.2.2-py3-none-any.whl/can/interfaces/ics_neovi/neovi_bus.py
import logging import os import tempfile from collections import Counter, defaultdict, deque from itertools import cycle from threading import Event from warnings import warn from can import BusABC, Message from ...exceptions import ( CanError, CanInitializationError, CanOperationError, CanTimeoutErro...
PypiClean
/chavo-0.1.13.tar.gz/chavo-0.1.13/app/package_store/oscar/components/portfolio_materialize.py
class portfolio_materialize: def __init__(self, f, arg): print 'getting started' self.f = f self.arg = arg self.set_values() self.build_page() def set_values(self): print "I'm going to ask you several questions if you don't wish to answer just press enter as you go" self.name = raw_input('What is your ...
PypiClean
/aliby-0.1.64.tar.gz/aliby-0.1.64/src/agora/track_abc.py
import typing as t from abc import ABC from os.path import join import numpy as np from skimage.measure import regionprops_table from aliby.track.utils import calc_barycentre, pick_baryfun class FeatureCalculator(ABC): """ Base class for making use of regionprops-based features. If no features are offe...
PypiClean
/python_creole_atlassian-1.4.92-py3-none-any.whl/creole/parser/creol2html_rules.py
import re class InlineRules: """ All inline rules """ proto = r'http|https|ftp|nntp|news|mailto|telnet|file|irc' # New regex for finding uris, requires uri to free stand within whitespace or lineends. url = r'''(?P<url> (^ | (?<=\s)) (?P<escaped_url>~)? (?P<...
PypiClean
/django_postgres_extra-2.0.9rc8-py3-none-any.whl/psqlextra/backend/base_impl.py
import importlib from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db import DEFAULT_DB_ALIAS, connections from django.db.backends.postgresql.base import DatabaseWrapper from django.db.backends.postgresql.introspection import ( # type: ignore[import] DatabaseIntr...
PypiClean
/prosodic-1.6.2.tar.gz/prosodic-1.6.2/meters/meter_ryan.py
name = "Ryan's Meter" # # [Do not remove or uncomment the following line] Cs={} ############################################ ############################################ # STRUCTURE PARAMETERS # # Parameters subject to conscious control by the poet. Kiparsky & Hanson (1996) # call these "formally independent of phonol...
PypiClean
/visvis-1.13.0.tar.gz/visvis-1.13.0/functions/solidCone.py
import visvis as vv import numpy as np from visvis.utils.pypoints import Pointset def solidCone(translation=None, scaling=None, direction=None, rotation=None, N=16, M=16, axesAdjust=True, axes=None): """ solidCone(translation=None, scaling=None, direction=None, rotation=None, ...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/BloomEffect.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty import base64 @dataclasses.dataclass() class BloomEffect(BaseProperty): unknown_properties: dict[int, bytes] = dataclasses.field(default_factory...
PypiClean
/bigdl_orca-2.3.0b20230218-py3-none-manylinux1_x86_64.whl/bigdl/orca/tfpark/text/estimator/bert_ner.py
from bigdl.orca.tfpark.text.estimator import * from bigdl.dllib.utils.log4Error import invalidInputError def make_bert_ner_model_fn(optimizer): import tensorflow as tf from bigdl.orca.tfpark import ZooOptimizer def _bert_ner_model_fn(features, labels, mode, params): output_layer = bert_model(feat...
PypiClean
/openplc_desktop-0.9.8-py3-none-any.whl/openplc_desktop/runtime/runtime_commander.py
import paramiko from Qt import QtCore, QtWidgets, QtNetwork, Qt, pyqtSignal from img import Ico import cwidgets class RuntimeCommanderWidget(QtWidgets.QWidget): def __init__(self, parent, serverConn): QtWidgets.QWidget.__init__(self, parent) assert serverConn != None self.serverConn =...
PypiClean
/dj_dashboard-1.1.2.tar.gz/dj_dashboard-1.1.2/dj_dashboard/static/dj_dashboard/css/components/visit.js
;(function ($, window, document, undefined) { "use strict"; $.visit = $.fn.visit = function(parameters) { var $allModules = $.isFunction(this) ? $(window) : $(this), moduleSelector = $allModules.selector || '', time = new Date().getTime(), performance = [], ...
PypiClean
/ajenti.plugin.core-0.102.tar.gz/ajenti.plugin.core-0.102/ajenti_plugin_core/views/main.py
import json import logging import subprocess import os import pwd from jadi import component import aj from aj.api.http import get, HttpPlugin from aj.plugins import PluginManager, DirectoryPluginProvider from aj.auth import AuthenticationService from aj.api.endpoint import endpoint @component(HttpPlugin) class Hand...
PypiClean
/ioos_qc-2.1.0-py3-none-any.whl/ioos_qc/utils.py
import io import logging import json from typing import Any, Union from numbers import Real from geographiclib.geodesic import Geodesic from pathlib import Path from datetime import date, datetime from collections import OrderedDict as odict from collections.abc import Mapping import numpy as np import pandas as pd im...
PypiClean
/Teras-0.2.0-py3-none-any.whl/teras/layerflow/models/ctgan.py
import tensorflow as tf from tensorflow import keras from teras.losses.ctgan import generator_loss, discriminator_loss from tqdm import tqdm @keras.saving.register_keras_serializable(package="keras.layerflow.models") class CTGAN(keras.Model): """ CTGAN model with LayerFlow design. CTGAN is a state-of-the-...
PypiClean
/pyspectacle-3.1.2-py3-none-any.whl/spectacle/io.py
import rawpy import exifread import numpy as np import os from string import ascii_letters from pathlib import Path from matplotlib import pyplot as plt from .camera import load_camera, find_root_folder, load_json, write_json from .general import find_matching_file # Default save folder for results results_folder = Pa...
PypiClean
/aspose-words-cloud-23.7.0.tar.gz/aspose-words-cloud-23.7.0/asposewordscloud/models/requests/get_styles_request.py
import json from six.moves.urllib.parse import quote from asposewordscloud import * from asposewordscloud.models import * from asposewordscloud.models.requests import * from asposewordscloud.models.responses import * class GetStylesRequest(BaseRequestObject): """ Request model for get_styles operation. In...
PypiClean
/autosubmit_api-3.7.0-py3-none-any.whl/autosubmit_api/history/platform_monitor/slurm_monitor.py
# Copyright 2015-2020 Earth Sciences Department, BSC-CNS # This file is part of Autosubmit. # Autosubmit 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, or # (at your option)...
PypiClean
/git_stalk-1.6.0-py3-none-any.whl/git_stalk/stalk.py
# python stdlib from __future__ import print_function import datetime import os import re import sys from collections import namedtuple # 3rd party imports import requests from dateutil import tz from docopt import docopt, DocoptExit from prettytable import PrettyTable # Git Stalk imports from git_stalk import __vers...
PypiClean
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/syn/n1/f/rev_fu.py
d_rev_fu = {'fu-chien': 'fujian', 'fu-chou': 'fuzhou', 'fu-fu': 'fufu', 'fu-go': 'fire_balloon', 'fu-hsi': 'fu_xi', 'fu-hsin': 'fuxin', 'fu-kien': 'fujian', 'fu-lin': 'shunzhi_emperor', 'fu-manchu': 'fu_manchu', 'fu-nan': 'funan', 'fu-ping': 'fubing_system', 'fu-shou-lu': 'fu_lu_shou', 'fu-shun': 'fushun'...
PypiClean
/cryoloBM-1.5.3.tar.gz/cryoloBM-1.5.3/cryoloBM_tools/coords2cbox.py
from cryoloBM.bmtool import BMTool from argparse import ArgumentParser import argparse from typing import List import numpy as np from cryolo.utils import Filament, BoundBox from cryolo.CoordsIO import read_cbox_boxfile from glob import glob from cryolo.CoordsIO import write_cbox_file import os class Coords2CBOX(BMTo...
PypiClean
/ch_frb_wview_test_2-0.1.1.tar.gz/ch_frb_wview_test_2-0.1.1/ch_frb_wview/cnc_client.py
from __future__ import print_function import zmq import msgpack import time class CncClient(object): def __init__(self, ctx=None): if ctx is not None: self.ctx = ctx else: self.ctx = zmq.Context() def quit(self, servers): return self.send_with_timeout([['quit']]...
PypiClean
/custom_obj_detector-1.tar.gz/custom_obj_detector-1/deeplab/g3doc/cityscapes.md
# Running DeepLab on Cityscapes Semantic Segmentation Dataset This page walks through the steps required to run DeepLab on Cityscapes on a local machine. ## Download dataset and convert to TFRecord We have prepared the script (under the folder `datasets`) to convert Cityscapes dataset to TFRecord. The users are requ...
PypiClean
/m9s_nereid_webshop-6.0.4.tar.gz/m9s_nereid_webshop-6.0.4/static/js/lightbox.js
(function() { // Use local alias var $ = jQuery; var LightboxOptions = (function() { function LightboxOptions() { this.fadeDuration = 500; this.fitImagesInViewport = true; this.resizeDuration = 700; this.positionFromTop = 50; this....
PypiClean
/xrpl_py_23-0.1.0.tar.gz/xrpl_py_23-0.1.0/xrpl/models/requests/ledger_entry.py
from __future__ import annotations from dataclasses import dataclass, field from typing import Dict, List, Optional, Union from xrpl.models.base_model import BaseModel from xrpl.models.requests.request import Request, RequestMethod from xrpl.models.required import REQUIRED from xrpl.models.utils import require_kwargs...
PypiClean
/statham_schema-0.15.1-py3-none-any.whl/statham/schema/parser.py
from collections import defaultdict from functools import partial import inspect from itertools import chain import operator as op import re import string from typing import Any, Callable, DefaultDict, Dict, Iterable, List, Type, Union import unicodedata from statham.schema.constants import ( COMPOSITION_KEYWORDS,...
PypiClean
/cosmotm-1.11.tar.gz/cosmotm-1.11/README.md
# Cosmological Trajectories Method (CTM) module A Python module to compute the power spectrum and 2-point correlation function in real space using second-order CTM. Please see the [Documentation](https://ctm-module.readthedocs.io) for more details **Any queries please email**: <ctmcodehelp@gmail.com> ## Installatio...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/postcode/forms.py
from __future__ import unicode_literals from django import forms from django.forms.widgets import TextInput class PostcodeLookupWidget(forms.TextInput): group_class = 'postcode-lookup-group' class PostcodeLookupField(forms.CharField): """ Simple Wrapper over InputField """ widget = PostcodeLooku...
PypiClean
/django-suit-ckeditor-custom-1.0.11.tar.gz/django-suit-ckeditor-custom-1.0.11/suit_ckeditor/static/suit-ckeditor/ckeditor/plugins/specialchar/dialogs/lang/de.js
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","de",{euro:"Euro Zeichen",lsquo:"Hochkomma links",rsquo:"Hochkomma rechts",ldquo:"Anführungszeichen links",rdquo:"A...
PypiClean
/electionguard-1.4.0-py3-none-any.whl/electionguard_cli/cli_steps/input_retrieval_step_base.py
from typing import List, Type, TypeVar from os.path import isfile, isdir, join from os import listdir from io import TextIOWrapper from click import echo from electionguard.election import CiphertextElectionContext from electionguard.manifest import Manifest from electionguard.serialize import from_list_in_file, from_...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200601/public_ip_prefix.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['PublicIPPrefix'] class PublicIPPrefix(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/streamplot-1.0.tar.gz/streamplot-1.0/streamplot.py
import sys import time import collections import numpy as np try: import pyqtgraph as pg from pyqtgraph.Qt import QtGui, QtCore pg.setConfigOption('background', 'w') except Exception, e: print "Unable to import pyqtgraph" class LivePlotter(object): """ Creates instance of QT app for plotting Defines usefull met...
PypiClean
/django_ckeditor_improved-1.8.tar.gz/django_ckeditor_improved-1.8/ckeditorfiles/static/ckeditorfiles/plugins/specialchar/dialogs/lang/eo.js
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","eo",{euro:"Eŭrosigno",lsquo:"Supra 6-citilo",rsquo:"Supra 9-citilo",ldquo:"Supra 66-citilo",rdquo:"Supra 99-citilo",ndash:"Streketo"...
PypiClean
/ytda-0.0.18.tar.gz/ytda-0.0.18/youtube_api/parsers.py
import json import sys import datetime from collections import OrderedDict if sys.version_info[0] == 2: from collections import Iterable else: from collections.abc import Iterable from youtube_api.youtube_api_utils import parse_yt_datetime """ This script contains the parsers for the raw json responses from ...
PypiClean
/posteriorstacker-0.6.1.tar.gz/posteriorstacker-0.6.1/posteriorstacker.py
import numpy as np import matplotlib.pyplot as plt import ultranest, ultranest.stepsampler import argparse import sys __version__ = '0.6.1' class HelpfulParser(argparse.ArgumentParser): def error(self, message): sys.stderr.write('error: %s\n' % message) self.print_help() sys.exit(2) parse...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-code-frame/README.md
# babel-code-frame > Generate errors that contain a code frame that point to source locations. ## Install ```sh npm install --save-dev babel-code-frame ``` ## Usage ```js import codeFrame from 'babel-code-frame'; const rawLines = `class Foo { constructor() }`; const lineNumber = 2; const colNumber = 16; const ...
PypiClean