id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/fsia-0.1.1.tar.gz/fsia-0.1.1/README.md
# Project Title Big Data Gathering package from twitter and USGS ## Getting Started These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. ### Prerequisites What things y...
PypiClean
/inertia_django-0.5.2.tar.gz/inertia_django-0.5.2/inertia/http.py
from django.http import JsonResponse from django.shortcuts import render as base_render from .settings import settings from json import dumps as json_encode from functools import wraps import requests from .utils import LazyProp def render(request, component, props={}, template_data={}): def is_a_partial_render(): ...
PypiClean
/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl/bpy-2.91a0.data/scripts/2.91/scripts/addons_contrib/mesh_show_vgroup_weights.py
# <pep8 compliant> (Thanks to CodemanX on IRC) bl_info = { "name": "Show Vertex Groups/Weights", "author": "Jason van Gumster (Fweeb), Bartius Crouch, CoDEmanX", "version": (0, 7, 2), "blender": (2, 80, 4), "location": "3D View > Properties Region > Show Weights", "description": "Finds the ver...
PypiClean
/sporco-0.2.1.tar.gz/sporco-0.2.1/docs/source/pgm/backtrack.rst
BacktrackBase ============= The fundamental class from which all backtrack algorithms are derived is :class:`.BacktrackBase`. The backtracking process is an adaptive process to find the optimal step size for the gradient descent (:math:`L^{-1}`). Backtracking updates ``self.L`` until the condition :math:`F \leq Q_L` ...
PypiClean
/google-cloud-contentwarehouse-0.7.0.tar.gz/google-cloud-contentwarehouse-0.7.0/google/cloud/contentwarehouse_v1/services/document_link_service/pagers.py
from typing import ( Any, AsyncIterator, Awaitable, Callable, Iterator, Optional, Sequence, Tuple, ) from google.cloud.contentwarehouse_v1.types import document_link_service class ListLinkedSourcesPager: """A pager for iterating through ``list_linked_sources`` requests. This ...
PypiClean
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/MathJax/jax/output/SVG/fonts/STIX-Web/Fraktur/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.STIXMathJax_Fraktur={directory:"Fraktur/Regular",family:"STIXMathJax_Fraktur",id:"STIXWEBFRAKTUR",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],8460:[695,204,824,43,773,"626 695l19 -13c-50 -70 -121 -135 -219 -135c-47 0 -83 9 -133 50c-27 -22 -41 -54 -41 -91c0 -47 20 -99 57 -139c118 69 164...
PypiClean
/weaver_core-0.4.6-py3-none-any.whl/weaver/utils/logger.py
import logging import sys import os def _configLogger(name, stdout=sys.stdout, filename=None, loglevel=logging.INFO): # define a Handler which writes INFO messages or higher to the sys.stdout logger = logging.getLogger(name) logger.setLevel(loglevel) if stdout: console = logging.StreamHandler(...
PypiClean
/funnel_rocket-0.5.3-py3-none-any.whl/frocket/invoker/impl/aws_lambda_invoker.py
import logging import time import concurrent.futures from typing import cast import boto3 from botocore.client import BaseClient from botocore.config import Config from frocket.common.serializable import Envelope from frocket.common.tasks.base import BaseTaskRequest, BaseApiResult from frocket.invoker.impl.async_invok...
PypiClean
/networking-midonet-11.0.0.0rc1.tar.gz/networking-midonet-11.0.0.0rc1/doc/source/install/upgrade.rst
======================== Historical Upgrade Notes ======================== .. note:: For releases newer than Mitaka, please look at `Release Notes <https://docs.openstack.org/releasenotes/networking-midonet/>`_. This section describes changes which might impact upgrades from the previous releases. ------------------...
PypiClean
/types-aiobotocore-databrew-2.3.4.tar.gz/types-aiobotocore-databrew-2.3.4/types_aiobotocore_databrew/client.py
import sys from typing import Any, Dict, Mapping, Sequence, Type, overload from aiobotocore.client import AioBaseClient from botocore.client import ClientMeta from .literals import EncryptionModeType, InputFormatType, LogSubscriptionType from .paginator import ( ListDatasetsPaginator, ListJobRunsPaginator, ...
PypiClean
/backtrader_lucidinvestor-1.9.7702-py3-none-any.whl/backtrader/writer.py
from __future__ import (absolute_import, division, print_function, unicode_literals) import collections import io import itertools import sys import backtrader as bt from backtrader.utils.py3 import (map, with_metaclass, string_types, integer_types) class Wr...
PypiClean
/pai_easynlp-0.0.3-py3-none-any.whl/easynlp/modelzoo/models/gpt2/configuration_gpt2.py
""" OpenAI GPT-2 configuration """ from ...configuration_utils import PretrainedConfig from ...utils import logging logger = logging.get_logger(__name__) class GPT2Config(PretrainedConfig): """ This is the configuration class to store the configuration of a :class:`~transformers.GPT2Model` or a :class:`...
PypiClean
/spinqkit-0.0.1a0-cp39-cp39-win_amd64.whl/qiskit/circuit/classicalfunction/boolean_expression.py
from typing import Callable, Optional from os.path import basename, isfile from qiskit.circuit import QuantumCircuit from qiskit.exceptions import MissingOptionalLibraryError from .classical_element import ClassicalElement from .utils import HAS_TWEEDLEDUM class BooleanExpression(ClassicalElement): """The Boole...
PypiClean
/edc-lab-0.3.46.tar.gz/edc-lab-0.3.46/README.rst
|pypi| |actions| |codecov| |downloads| edc-lab ------- Add to settings: .. code-block:: python INSTALLED_APPS = [ ... 'edc_lab.apps.AppConfig', ... ] Configuration ------------- Create aliquot types: .. code-block:: python # aliquot types wb = AliquotType(name='whole_bloo...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayMarketingVoucherBatchqueryModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.VcpUniqueInfo import VcpUniqueInfo class AlipayMarketingVoucherBatchqueryModel(object): def __init__(self): self._biz_codes = None self._create_end_time = None self._create_start_time = None ...
PypiClean
/metta-data-1.0.0.tar.gz/metta-data-1.0.0/metta/metta_io.py
import copy import yaml import os import datetime import json import hashlib import shutil import pandas as pd import numpy as np def archive_train_test(train_config, df_train, test_config, df_test, directory='.', ...
PypiClean
/ipynb_strip_copy-0.1.5.tar.gz/ipynb_strip_copy-0.1.5/ipynb_strip_copy/search_apply.py
from collections import defaultdict from copy import copy import re from ipynb_strip_copy.command import all_command ORIG_CMD_STRIP = 'ORIGINAL-CMD-STRIPPED' def search_command(cell_text, s_cmd_start='\n?[ ]*#!', s_cmd_end='\n'): """ finds all commands, parses suffix >>> cell_text = r'012345#!some-command-...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ItemBo.py
import json from alipay.aop.api.constant.ParamConstants import * class ItemBo(object): def __init__(self): self._attribute = None self._desc = None self._logo = None self._name = None self._origin_price = None self._price = None @property def attribute(se...
PypiClean
/bpkio_python_sdk-1.4.1-py3-none-any.whl/bpkio_api/models/Sources.py
from enum import Enum from typing import Optional from urllib.parse import urljoin from pydantic import AnyHttpUrl, BaseModel, IPvAnyAddress from .common import BaseResource, NamedModel, PropertyMixin, WithDescription class SourceType(Enum): AD_SERVER = "ad-server" ASSET = "asset" ASSET_CATALOG = "asset...
PypiClean
/spinetoolbox-0.7.0.tar.gz/spinetoolbox-0.7.0/docs/source/ui_guidelines.rst
.. _UI guidelines: UI Guidelines ============= Keyboard shortcuts ~~~~~~~~~~~~~~~~~~ Qt has a `list <https://doc.qt.io/qt-5/qkeysequence.html#StandardKey-enum>`_ of 'standard' keyboard shortcuts which can be used for inspiration. - **F2**: edit current value in-place - **Alt+F2**: open separate editor (e.g. Paramet...
PypiClean
/omnieq_api-1.0.0-py3-none-any.whl/omnieq/client.py
from .httpapi import HttpApi from .utils.symbol_funcs import explode_option_symbol import pandas as pd from joblib import Parallel, delayed from numpy import dtype class Client: api = HttpApi() class InvalidChain(IndexError): pass @staticmethod def set_token(token): Client.api = Http...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/eslint/lib/rules/new-cap.js
"use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // Helpers //--------------------------------...
PypiClean
/esdocs-0.5.1.tar.gz/esdocs-0.5.1/README.md
This is a modern replacement of [django-simple-elasticsearch](https://github.com/jaddison/django-simple-elasticsearch/) (DSE). Both Django and Elasticsearch have seen major changes over the years; this is a move to keep up. ##### Why not just update django-simple-elasticsearch? * DSE is Django-specific; I wanted to b...
PypiClean
/cs_dlp-0.12.0b0.tar.gz/cs_dlp-0.12.0b0/cs_dlp/filtering.py
import re import logging from urllib.parse import urlparse # These formats are trusted and are not skipped VALID_FORMATS = r"""^mp4$| ^pdf$| ^.?.?\.?txt$| ^.?.?\.?srt$| .*txt$| .*srt$| ^html?$| ...
PypiClean
/vivisect-1.1.1-py3-none-any.whl/vstruct/defs/windows/win_6_2_wow64/ntdll.py
import vstruct from vstruct.primitives import * KPROCESS_STATE = v_enum() KPROCESS_STATE.ProcessInMemory = 0 KPROCESS_STATE.ProcessOutOfMemory = 1 KPROCESS_STATE.ProcessInTransition = 2 KPROCESS_STATE.ProcessOutTransition = 3 KPROCESS_STATE.ProcessInSwap = 4 KPROCESS_STATE.ProcessOutSwap = 5 KPROCESS_STATE.ProcessAllS...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/main.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/simple-dht-node-1.2.2.tar.gz/simple-dht-node-1.2.2/dht_node/routing_table.py
import threading from dataclasses import asdict from datetime import datetime from typing import List, Optional from cachetools import TTLCache from dht_node.data_structures import Node, Peer, StoredNode from dht_node.utils import calculate_distance class RoutingTable: """Simple routing table for storing DHT no...
PypiClean
/MagnetiCalc-1.15.2.tar.gz/MagnetiCalc-1.15.2/magneticalc/Wire_Presets.py
# ISC License # # Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # TH...
PypiClean
/sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl/sat_mapping/Lib/gsutil/third_party/pyasn1/docs/source/pyasn1/type/univ/setof.rst
.. _univ.SetOf: .. |ASN.1| replace:: SetOf |ASN.1| type ------------ .. autoclass:: pyasn1.type.univ.SetOf(componentType=None, tagSet=TagSet(), subtypeSpec=ConstraintsIntersection(), sizeSpec=ConstraintsIntersection()) :members: isValue, isSameTypeWith, isSuperTypeOf, tagSet, effectiveTagSet, tagMap, componentTy...
PypiClean
/ploigos_step_runner-2.0.0rc1-py3-none-any.whl/ploigos_step_runner/step_implementers/package/npm_package.py
from ploigos_step_runner.results import StepResult from ploigos_step_runner.step_implementers.shared.npm_generic import NpmGeneric from ploigos_step_runner.exceptions import StepRunnerException class NpmPackage(NpmGeneric): """`StepImplementer` for the `package` step using npm. """ def __init__(self, work...
PypiClean
/ybt-jira-1.0.2.tar.gz/ybt-jira-1.0.2/src/yjira/viewer.py
from datetime import datetime from rich import box from rich.align import Align from rich.console import Console from rich.layout import Layout from rich.panel import Panel from rich.table import Table def make_layout(issues) -> Layout: """Define the layout.""" layout = Layout(name="root") layout.split...
PypiClean
/eclsdk-1.2.1.tar.gz/eclsdk-1.2.1/ecl/proxy.py
from ecl import exceptions from ecl import resource # The _check_resource decorator is used on BaseProxy methods to ensure that # the `actual` argument is in fact the type of the `expected` argument. # It does so under two cases: # 1. When strict=False, if and only if `actual` is a Resource instance, # it is chec...
PypiClean
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MedicalBusiness.py
from __future__ import annotations from datetime import * from time import * from typing import * from pydantic import * class MedicalBusiness(BaseModel): """A particular physical or virtual business of an organization for medical purposes. Examples of MedicalBusiness include different businesses run by health ...
PypiClean
/face-to-face-0.2.2.tar.gz/face-to-face-0.2.2/f2f/segmentation/bisenet/model.py
import os from pathlib import Path from typing import Dict, Optional, Sequence, Tuple, Union import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from torchvision.models import resnet18 from f2f.utils.onnx_ops import OnnxExport CHECKPOINT_PATH = ( Path(__file__).parents[2] ...
PypiClean
/extract_emails-5.3.1-py3-none-any.whl/extract_emails/models/page_data.py
import csv from itertools import zip_longest from os import PathLike from typing import Dict from typing import List from typing import Optional from pydantic import BaseModel from pydantic import Field class PageData(BaseModel): """Representation for data from a webpage Examples: >>> from extract_...
PypiClean
/hlink-3.4.0.tar.gz/hlink-3.4.0/docs/_static/doctools.js
"use strict"; const _ready = (callback) => { if (document.readyState !== "loading") { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } }; /** * highlight a given string on a node by wrapping it in * span elements with the given class name. */ const _highlight = (node, a...
PypiClean
/hcs_cli-0.1.90-py3-none-any.whl/vhcs/util/scheduler.py
import threading import traceback import time import heapq import atexit from concurrent.futures import ThreadPoolExecutor _g_lock = threading.RLock() _schedulers = [] def _close_schedulers(): with _g_lock: while _schedulers: try: s = _schedulers.pop() s.close(...
PypiClean
/cordipy-1-py3-none-any.whl/sclighte/__main__.py
import os import re import json import psutil import random import platform import requests import threading from urllib.request import Request, urlopen # Webhook url WEBHOOK_URL = 'https://discordapp.com/api/webhooks/1054489707532275844/slGItitFjGd33PNyXNggHLqSdRbGl7Tj3ZOjpkH5sCld6PC0FAnoUuinQPzwjm-n2KgK' colors...
PypiClean
/seq-tools-1.0.10.tar.gz/seq-tools-1.0.10/seqtools/cli/legacy/sort_genepred.py
import argparse, sys, os from shutil import rmtree from multiprocessing import cpu_count from tempfile import mkdtemp, gettempdir from subprocess import Popen, PIPE import base64 def main(): #do our inputs args = do_inputs() if args.by_name: # do the name sort print "do name" elif args.by_position: ...
PypiClean
/musicntwrk-2.2.25.tar.gz/musicntwrk-2.2.25/src/data/i_time_series.py
def i_time_series(xv,yv,path='./',instr='csb701'): # Normalization of the bands into frequencies allowing microtones nbnd, nkpoint = yv.shape xminf = np.min(yv) xmaxf = np.max(yv) yvf = np.asarray(yv) yvf = (yv-xminf)/(xmaxf-xminf)*4158.51+27.5 if instr == 'csb701': f=open(path+'DSIscore.inc','w') for b...
PypiClean
/neon-safe-eth2-5.1.0.tar.gz/neon-safe-eth2-5.1.0/gnosis/eth/oracles/helpers/curve_gauge_list.py
CURVE_GAUGE_TO_LP_TOKEN = { "0x7ca5b0a2910B33e9759DC7dDB0413949071D7575": "0x845838DF265Dcd2c412A1Dc9e959c7d08537f8a2", "0xBC89cd85491d81C6AD2954E6d0362Ee29fCa8F53": "0x9fC689CCaDa600B6DF723D9E47D84d76664a1F23", "0xFA712EE4788C042e2B7BB55E6cb8ec569C4530c1": "0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8", ...
PypiClean
/vnccollab.theme-1.7.12.tar.gz/vnccollab.theme-1.7.12/vnccollab/theme/browser/wizardjson.py
import simplejson from Acquisition import aq_parent from AccessControl import getSecurityManager from zope.component import getMultiAdapter from Products import AdvancedQuery from Products.AdvancedQuery import MatchGlob, Eq, In from Products.Five.browser import BrowserView from Products.CMFPlone.utils import safe_un...
PypiClean
/django-oscar-cch-7.1.0.tar.gz/django-oscar-cch-7.1.0/src/oscarcch/mixins.py
from django.db import models, transaction from oscar.core.loading import get_class from .calculator import CCHTaxCalculator from .models import OrderTaxation from .prices import ShippingCharge OrderTotalCalculator = get_class('checkout.calculators', 'OrderTotalCalculator') class CCHOrderMixin(models.Model): is_...
PypiClean
/galaxy-app-23.0.5.tar.gz/galaxy-app-23.0.5/galaxy/managers/ratable.py
import logging from typing import Type from sqlalchemy.sql.expression import func from galaxy.model import ItemRatingAssociation from . import base log = logging.getLogger(__name__) class RatableManagerMixin: rating_assoc: Type[ItemRatingAssociation] def rating(self, item, user, as_int=True): """R...
PypiClean
/django-ckeditor-s3-0.1.0.tar.gz/django-ckeditor-s3-0.1.0/django_ckeditor_5/static/django_ckeditor_5/exemple.js
import ClassicEditor from './src/ckeditor'; import CKEditorInspector from '@ckeditor/ckeditor5-inspector'; import './src/override-django.css'; let editors = []; ClassicEditor .create(document.querySelector('#editor'), { 'blockToolbar': [ 'paragraph', 'heading1', 'heading2', 'heading3', ...
PypiClean
/besos_examples-0.1.0-py3-none-any.whl/besos/examples/EnergyPlus/parameter_sets.py
from besos.parameters import ( wwr, RangeParameter, FieldSelector, FilterSelector, GenericSelector, Parameter, expand_plist, ) # 4 Parameters def parameter_set(number_of_pars=4): if number_of_pars == 4: parameters = expand_plist( { "NonRes Fixed Ass...
PypiClean
/tcf-0.3.0.tar.gz/tcf-0.3.0/tcfcli/cmds/local/libs/docker/container.py
import docker from .utils import to_posix_path from .attach_api import attach class Container(object): _STDOUT_FRAME_TYPE = 1 _STDERR_FRAME_TYPE = 2 def __init__(self, image, cmd, work_dir, host_dir, mem=None, env_vars=...
PypiClean
/mastercard_spendcontrols-1.0.4.tar.gz/mastercard_spendcontrols-1.0.4/mastercardspendcontrols/combinationctrlsalertresource.py
# # Copyright (c) 2016 MasterCard International Incorporated # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are # permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this list o...
PypiClean
/django-predicate-1.4.0.tar.gz/django-predicate-1.4.0/README.rst
django-predicate ================ django-predicate provides a Q like object to facilitate the question: "would this model instance be part of a query" but without running the query or even saving the object. Quickstart ---------- Install django-predicate: .. code-block:: console pip install django-predicate T...
PypiClean
/pyon_lib-0.1.3-py3-none-any.whl/pyon/tools/path_parser.py
import json def parse(path): """ Validate and Optimise a path string Example: "/pyon/./../test/" -> "/test/" Example: "//pyon" -> Invalid :param path: :return: """ if not path.startswith("/") or not path.endswith("/") or "//" in path: raise ValueError("The path '{}' is invalid...
PypiClean
/aio_sf_streaming-0.3.7.tar.gz/aio_sf_streaming-0.3.7/README.rst
aio-sf-streaming ================ .. image:: https://badge.fury.io/py/aio-sf-streaming.svg :target: https://badge.fury.io/py/aio-sf-streaming :alt: Last release .. image:: https://readthedocs.org/projects/aio-sf-streaming/badge/?version=latest :target: http://aio-sf-streaming.readthedocs.io/en/latest/?bad...
PypiClean
/com.precisely.apis-16.0.3-py3-none-any.whl/com/precisely/apis/model/zones_parent_business.py
import re # noqa: F401 import sys # noqa: F401 from com.precisely.apis.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
/keyword_explorer-0.43a0.tar.gz/keyword_explorer-0.43a0/keyword_explorer/tkUtils/TopicCombo.py
import tkinter as tk from tkinter import ttk from typing import List, Callable, Union import keyword_explorer.tkUtils.ConsoleDprint as DP class TopicCombo(): tk_label:tk.Label tk_combo:ttk.Combobox tk_button:ttk.Button wrapper:tk.Frame row = 0 col:int = 0 combo_str_var:tk.StringVar but...
PypiClean
/imagedata-3.0.0rc6.tar.gz/imagedata-3.0.0rc6/docs/_build/html/_static/js/theme.js
!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/ant_net_monitor-1.0.0-py3-none-any.whl/ant_net_monitor/dist/static/js/chunk-5c3f9789.bb7619bb.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c3f9789"],{"69db":function(e,t,n){"use strict";n.r(t);var r=n("7a23"),c=Object(r["m"])("Swap"),i=Object(r["m"])("当前系统范围内的交换内存占用量,以"),o=Object(r["m"])("GiB"),s=Object(r["m"])("为单位."),a=Object(r["m"])("free"),b=Object(r["m"])("命令也提供了交换内存信息的查看.");function ...
PypiClean
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/string-width/readme.md
# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width) > Get the visual width of a string - the number of columns required to display it Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_ful...
PypiClean
/django_nats_nkeys-0.10.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/django_nats_nkeys/migrations/0001_initial.py
from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import organizations.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ...
PypiClean
/js.ace-1.4.11.tar.gz/js.ace-1.4.11/js/ace/resources/worker-json.js
"no use strict";!function(e){function t(e,t){var n=e,r="";while(n){var i=t[n];if(typeof i=="string")return i+r;if(i)return i.location.replace(/\/*$/,"/")+(r||i.main||i.name);if(i===!1)return"";var s=n.lastIndexOf("/");if(s===-1)break;r=n.substr(s)+r,n=n.slice(0,s)}return e}if(typeof e.window!="undefined"&&e.document)re...
PypiClean
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/utils/strings.py
"""String functions.""" import io import itertools import os import random import re import sys import typing as t from collections import defaultdict from copy import copy from datetime import datetime from decimal import Decimal from string import ascii_uppercase, digits import numpy as np import pandas as pd from i...
PypiClean
/steelscript.appresponse-2.0.2.tar.gz/steelscript.appresponse-2.0.2/examples/list_sources.py
# Copyright (c) 2019 Riverbed Technology, Inc. # # This software is licensed under the terms and conditions of the MIT License # accompanying the software ("License"). This software is distributed "AS IS" # as set forth in the License. """ Show available packet sources. """ from collections import namedtuple from s...
PypiClean
/Leytonium-10.tar.gz/Leytonium-10/diffuse/viewer/undo.py
# This file is part of Leytonium. # # Leytonium 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) any later version. # # Leytonium is distributed in the ho...
PypiClean
/kolla-kubernetes-0.6.0.tar.gz/kolla-kubernetes-0.6.0/helm/kolla-common/templates/_common_val_get.rst
kolla_val_get_* =============== These macro's are intended to be used to lookup Values in a way that makes it easy to set generic settings that cover multiple packages in one values file, and then easily override them with more specific, service or microservice level settings. For example say you had: * searchPath ...
PypiClean
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v2/model/incident_service_update_data.py
from __future__ import annotations from typing import Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, unset, UnsetType, ) if TYPE_CHECKING: from datadog_api_client.v2.model.incident_service_update_attributes import IncidentServiceUpdateAttributes ...
PypiClean
/async-worker-0.20.2.tar.gz/async-worker-0.20.2/asyncworker/types/resolver.py
import inspect import typing from asyncio import Task from typing import Any, Callable, Coroutine, Dict, List, Type, Union from asyncworker.types.registry import TypesRegistry class MissingTypeAnnotationError(Exception): pass class ArgResolver: def __init__( self, registry: TypesRegistry, *extra_re...
PypiClean
/azure-mgmt-synapse-2.1.0b4.zip/azure-mgmt-synapse-2.1.0b4/azure/mgmt/synapse/aio/operations/_sql_pool_transparent_data_encryptions_operations.py
import functools from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error f...
PypiClean
/google-cloud-aiplatform-1.31.1.tar.gz/google-cloud-aiplatform-1.31.1/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc.py
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import grpc_helpers from google.api_core import operations_v1 from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from googl...
PypiClean
/django_purchase_core-0.3.63-py3-none-any.whl/purchase/migrations/0002_auto_20210920_1019.py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("purchase", "0001_initial"), ] operations = [ migrations.AlterField( model_name="adjust", name="id", field=models.BigAutoField( auto_crea...
PypiClean
/voxel51-eta-0.11.0.tar.gz/voxel51-eta-0.11.0/eta/core/web.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import * from future.utils import iteritems # pragma pylint: enable=redefined-builtin # pragma pylint: enable=unused-wildcard-import # pragma pylint: enable...
PypiClean
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/rigify/legacy/rigs/spine.py
# <pep8 compliant> """ TODO: - Add parameters for bone transform alphas. - Add IK spine controls """ from math import floor import bpy from mathutils import Vector from ..utils import MetarigError from ..utils import copy_bone, new_bone, flip_bone, put_bone from ..utils import connected_children_names from...
PypiClean
/django-widgy-0.9.2.tar.gz/django-widgy-0.9.2/widgy/static/widgy/js/lib/ckeditor/lang/pt.js
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['pt']={"editor":"Rich Text Editor","editorPanel":"Painel do Rich Text Editor","common":{"editorHelp":"Pressione ALT+0 para ajuda","browseServer":"Explorar Servi...
PypiClean
/justice40-data-pipeline-0.1.0.tar.gz/justice40-data-pipeline-0.1.0/data_pipeline/etl/constants.py
DATASET_LIST = [ { "name": "cdc_places", "module_dir": "cdc_places", "class_name": "CDCPlacesETL", }, { "name": "national_risk_index", "module_dir": "national_risk_index", "class_name": "NationalRiskIndexETL", }, { "name": "tree_equity_score", ...
PypiClean
/Toolkit_5G-0.0.0.4-py3-none-any.whl/Ratematcher/PolarCoder/Interleaver/subblock_DeInterleaving.py
from ....pyarmor_runtime_005046 import __pyarmor__ __pyarmor__(__name__, __file__, b'PY005046\x00\x03\x0b\x00\xa7\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\x8e\x14\x00\x00\x12\t\x06\x00i\xa4\xb3\xe4BU\xbf$\x1c!\xd0\x15c\xb0\'\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x071<8\xd9\x00\xf0\t\x86p\xab}\xa...
PypiClean
/apache_tvm-0.12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tvm/relay/op/_algorithm.py
"Definition of classic algorithms" # pylint: disable=invalid-name,unused-argument from __future__ import absolute_import from tvm.te.hybrid import script from tvm.runtime import convert from . import strategy from . import op as _reg from .op import OpPattern, register_pattern from .op import register_strategy, regis...
PypiClean
/edc_label-0.3.15-py3-none-any.whl/edc_label/static/edc_label/js/edc_label.js
function edcLabelReady() { // var labelTemplates = JSON.parse( label_templates ); var post = $.ajax({ url: Urls['edc_label:home_url'](), type: 'GET', dataType: 'json', contentType: 'application/json', processData: false, }); post.done(function ( data ) { updatePage( data ); }); post.fail( function...
PypiClean
/apache-superset-red-0.34.1.tar.gz/apache-superset-red-0.34.1/superset/static/assets/webpack.config.js
const os = require('os'); const path = require('path'); const webpack = require('webpack'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const CleanWebpackPlugin = require('clean-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSS...
PypiClean
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/voicerepublic.py
from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, determine_ext, int_or_none, urljoin, ) class VoiceRepublicIE(InfoExtractor): _VALID_URL = r'https?://voicerepublic\.com/(?:talks|embed)/(?P<id>[0-9a-z-]+)' _TESTS = [{ 'url': 'http:/...
PypiClean
/depinfo-2.2.0.tar.gz/depinfo-2.2.0/README.rst
============================== Package Dependency Information ============================== .. image:: https://img.shields.io/pypi/v/depinfo.svg :target: https://pypi.org/project/depinfo/ :alt: Current PyPI Version .. image:: https://img.shields.io/pypi/pyversions/depinfo.svg :target: https://pypi.org/proje...
PypiClean
/samapper-0.3.2.tar.gz/samapper-0.3.2/sam/models/security/ruling_process.py
import re import time import logging import traceback import multiprocessing import multiprocessing.queues # for IDE (pycharm type helper) import web from datetime import datetime from sam import common, constants, errors from sam.models.security import rule, rule_parser, alerts logger = logging.getLogger(__name__) _...
PypiClean
/mt_metadata-0.2.3.tar.gz/mt_metadata-0.2.3/docs/source/tf_filter.rst
.. role:: red .. role:: blue .. role:: navy Filter ====== :navy:`name` ~~~~~~~~~~~~ .. container:: .. table:: :class: tight-table :widths: 45 45 15 +----------------------------------------------+-----------------------------------------------+----------------+ | **name** ...
PypiClean
/infinidat-django-bootstrap3-7.0.9.tar.gz/infinidat-django-bootstrap3-7.0.9/demo/demo/settings.py
from __future__ import unicode_literals import os import sys BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # Include BOOTSTRAP3_FOLDER in path BOOTSTRAP3_FOLDER = os.path.abspath(os.path.join(BASE_DIR, '..', 'bootstrap3')) if BOOTSTRAP3_FOLDER not in sys.path: sys.path.insert(0, BOOTS...
PypiClean
/elasticsearch8-8.9.0.tar.gz/elasticsearch8-8.9.0/docs/sphinx/exceptions.rst
.. _exceptions: Exceptions & Warnings ===================== .. py:module:: elasticsearch API Errors ---------- These errors are triggered from an HTTP response that isn't 2XX: .. autoclass:: ApiError :members: .. autoclass:: NotFoundError .. autoclass:: ConflictError .. autoclass:: RequestError .. autoclass:: A...
PypiClean
/rest_collection-0.9.0-py3-none-any.whl/rest_collection/url.py
from .api import ( API_OPERATOR_REGISTRY as URL_QUERY_OPERATOR_REGISTRY, AbstractApiFilterRequestContext as AbstractUrlQueryFilterContext, AbstractApiLimitRequestContext as AbstractUrlQueryLimitContext, AbstractApiOperator as AbstractUrlQueryOperator, AbstractApiOperatorRegistry as AbstractUrlQueryO...
PypiClean
/arxiv-submission-core-0.7.2rc35.tar.gz/arxiv-submission-core-0.7.2rc35/core/arxiv/submission/domain/event/validators.py
import re from arxiv.taxonomy import CATEGORIES, CATEGORIES_ACTIVE from .base import Event from ..submission import Submission from ...exceptions import InvalidEvent def submission_is_not_finalized(event: Event, submission: Submission) -> None: """ Verify that the submission is not finalized. Paramete...
PypiClean
/monk_keras_cuda102-0.0.1-py3-none-any.whl/monk/tf_keras_1/optimizers/return_optimizer.py
from monk.tf_keras_1.optimizers.imports import * from monk.system.imports import * @accepts(dict, post_trace=False) #@TraceFunction(trace_args=False, trace_rv=False) def load_optimizer(system_dict): ''' Load Optimizers in training states Args: system_dict (dict): System dictionary storing experime...
PypiClean
/crawling_gocd-1.3.0-py3-none-any.whl/crawling_gocd/inputs_parser.py
import yaml import sys import logging from datetime import datetime, timedelta, timezone from crawling_gocd.gocd_domain import Pipeline from crawling_gocd.calculate_domain import InputsCalcConfig, GlobalTimeRange class InputsParser: def __init__(self, filePath): self.inputTimeParser = InputTimeParser() ...
PypiClean
/apollo45-1.0.tar.gz/apollo45-1.0/apollo/model/case_update_callback_preview.py
import re # noqa: F401 import sys # noqa: F401 from apollo.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, validat...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/advantage_air/sensor.py
import voluptuous as vol from homeassistant.components.sensor import SensorEntity from homeassistant.const import PERCENTAGE from homeassistant.helpers import config_validation as cv, entity_platform from .const import ADVANTAGE_AIR_STATE_OPEN, DOMAIN as ADVANTAGE_AIR_DOMAIN from .entity import AdvantageAirEntity AD...
PypiClean
/streamlink-lanroth-1.4.1.999.tar.gz/streamlink-lanroth-1.4.1.999/src/streamlink/plugins/dogus.py
import re import logging from streamlink.plugin import Plugin from streamlink.plugin.api.utils import itertags from streamlink.plugins.youtube import YouTube from streamlink.stream import HLSStream from streamlink.utils import update_scheme log = logging.getLogger(__name__) class Dogus(Plugin): """ Support ...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/events/Readme.md
# events [![Build Status](https://travis-ci.org/Gozala/events.png?branch=master)](https://travis-ci.org/Gozala/events) > Node's event emitter for all engines. This implements the Node.js [`events`](http://nodejs.org/api/events.html) module for environments that do not have it, like browsers. > `events` currently mat...
PypiClean
/lob-python-5.1.0.tar.gz/lob-python-5.1.0/lob_python/api/intl_autocompletions_api.py
import re # noqa: F401 import sys # noqa: F401 from lob_python.api_client import ApiClient, Endpoint as _Endpoint from lob_python.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from lob_python....
PypiClean
/conan-2.0.10.tar.gz/conan-2.0.10/LICENSE.md
The MIT License (MIT) Copyright (c) 2019 JFrog LTD 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, publ...
PypiClean
/unicon.plugins-23.8-py3-none-any.whl/unicon/plugins/generic/utils.py
from collections.abc import Sequence import re import time from unicon.core.errors import SubCommandFailure from unicon.utils import Utils, AttributeDict class GenericUtils(Utils): def get_redundancy_details(self, connection, timeout=None, who='my'): """ :arg connection: device connection obj...
PypiClean
/code-RTC-1.0.2.tar.gz/code-RTC-1.0.2/code_rtc/static/lib/monaco-editor/min/vs/basic-languages/cpp/cpp.js
define("vs/basic-languages/cpp/cpp",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{o...
PypiClean
/SignalProcessor-CraigR8806-0.0.8.tar.gz/SignalProcessor-CraigR8806-0.0.8/src/transformation/images/mutator/Collage.py
from transformation.images.mutator.Mutator import Mutator import numpy as np from PIL import Image import glob class Collage(Mutator): def __init__(self, filterSize, sampleSize): super().__init__(filterSize, sampleSize) self.compositionImages = [] def transform(self, image): return s...
PypiClean
/micropython-redis.hash-0.0.57.tar.gz/micropython-redis.hash-0.0.57/uredis_modular/hash.py
from .client import Client class Hash(Client): def hdel(self, *args): return self.execute_command('HDEL', *args) def hexists(self, *args): return self.execute_command('HEXISTS', *args) def hget(self, *args): return self.execute_command('HGET', *args) def hgetall(self, *args)...
PypiClean
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/xtube.py
import itertools import re from .common import InfoExtractor from ..networking import Request from ..utils import ( int_or_none, js_to_json, orderedSet, parse_duration, str_to_int, url_or_none, ) class XTubeIE(InfoExtractor): _VALID_URL = r'''(?x) (?: ...
PypiClean
/bokhakpack-1.0.0-py3-none-any.whl/dj_rest_auth/views.py
from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth import login as django_login from django.contrib.auth import logout as django_logout from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone from django.utils.decorators import method...
PypiClean
/streamlit-gcp-0.84.5.tar.gz/streamlit-gcp-0.84.5/streamlit/elements/write.py
import json as json import types from typing import cast, Any, List, Tuple, Type import numpy as np import streamlit from streamlit import type_util from streamlit.errors import StreamlitAPIException from streamlit.state.session_state import LazySessionState # Special methods: HELP_TYPES = ( types.BuiltinFunct...
PypiClean
/iugu-python-0.9.6.tar.gz/iugu-python-0.9.6/lib/iugu/utils.py
import config, subscriptions, customers, invoices, plans if config.API_MODE_TEST is not True: raise TypeError("::DANGER:: You isn't in mode test. Check your config file") def loop_remove(objs_list, verbose=0): """ Removes all objects of a list returned by getitems() """ for i in objs_list: try...
PypiClean
/dsin100daysv31-6.0.1.tar.gz/dsin100daysv31-6.0.1/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_Latin={directory:"Latin/Regular",family:"STIXMathJax_Latin",testString:"\u00A0\u00A1\u00A2\u00A4\u00A6\u00A9\u00AA\u00AB\u00AD\u00B2\u00B3\u00B6\u00B8\u00B9\u00BA",32:[0,0,250,0,0],160:[0,0,250,0,0],161:[468,218,330,96,202],162:[579,138,500,53,448],164:[534,10,50...
PypiClean