id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/types/messages_and_media/thumbnail.py
from typing import List, Optional, Union import pyrogram from pyrogram import raw from pyrogram.file_id import FileId, FileType, FileUniqueId, FileUniqueType, ThumbnailSource from ..object import Object class Thumbnail(Object): """One size of a photo or a file/sticker thumbnail. Parameters: file_id...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/dvips.py
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import SCons.Action import SCons.Builder import SCons.Tool.dvipdf import SCons.Util def DviPsFunction(target = None, source= None, env=None): result = SCons.Tool.dvipdf.DviPdfPsFunction(PSAction,target,source,env) return result def DviPsStrFuncti...
PypiClean
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/coherence/upnp/devices/wan_device_client.py
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2010 Frank Scholz <dev@coherence-project.org> from coherence.upnp.devices.wan_connection_device_client import WANConnectionDeviceClient from coherence.upnp.services.clients.wan_common_interface_config_client import WANComm...
PypiClean
/GenomeTreeTk-0.1.6.tar.gz/GenomeTreeTk-0.1.6/genometreetk/main.py
import csv import logging import sys import dendropy from biolib.common import check_file_exists, make_sure_path_exists from biolib.external.execute import check_dependencies from biolib.newick import parse_label from biolib.taxonomy import Taxonomy from genometreetk.arb import Arb from genometreetk.bootstrap import...
PypiClean
/EclipsingBinaries-4.0.2-py3-none-any.whl/docs/pipeline.rst
Pipeline ======== Usage ----- The reason to use the pipeline is for automatic data reduction, finding comparison stars, multi-aperture photometry, etc. To run the pipeline, simply run:: EB_pipeline -h This will output the options available to a user for inputs that are allowed or required. Inputs ------ Ther...
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/category_update.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
/Bussator-0.2.tar.gz/Bussator-0.2/README.md
# Bussator [![pipeline status](https://gitlab.com/mardy/bussator/badges/master/pipeline.svg)](https://gitlab.com/mardy/bussator/commits/master) [![coverage report](https://gitlab.com/mardy/bussator/badges/master/coverage.svg)](https://gitlab.com/mardy/bussator/commits/master) Bussator is a WSGI application which impl...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/unit_test/EDT_SFT_0048_1.py
from os import system import matplotlib.pyplot as plt from typing import List from box_library.transfert_function_box import get_coeff_vector, euler, trapeze _ = system('cls') # =========== Differential methods =========== def differentiate(order: int, last_index: int, vector: List[float], last_derivatives: List[...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/backends/sqlite3/_functions.py
import functools import random import statistics from datetime import timedelta from hashlib import sha1, sha224, sha256, sha384, sha512 from math import ( acos, asin, atan, atan2, ceil, cos, degrees, exp, floor, fmod, log, pi, radians, sin, sqrt, tan, ) f...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/legacy/workflow/Images.py
import os import random from multiprocessing.dummy import Pool as ThreadPool import requests from pathlib import Path from functools import lru_cache @lru_cache(maxsize=None) def validateGoogleMapsAPI(key: str)->bool: """Validate a Google Maps API key. The `@lru_cache` decorator automatically creates a ...
PypiClean
/BasicLibrary.PY-0.5.12.tar.gz/BasicLibrary.PY-0.5.12/BasicLibrary/dataBase/databaseClient.py
from BasicLibrary.configHelper import ConfigHelper as ch from BasicLibrary.data.dictHelper import DictHelper from BasicLibrary.dataBase.databaseDDL import DatabaseDDL from BasicLibrary.dataBase.databaseMate import DatabaseMate from BasicLibrary.model.container import Container class DatabaseClient: """ 向外暴露的主...
PypiClean
/LFT-0.1.1-py3-none-any.whl/lft/event/mediators/delayed_event_mediator.py
import asyncio from typing import Set, Optional from lft.event import (Event, EventSimulator, EventMediator, EventInstantMediatorExecutor, EventReplayerMediatorExecutor, EventRecorderMediatorExecutor) __all__ = ("DelayedHandlerMixin", "DelayedEventMediator", "DelayedHandler", "DelayedEventInstan...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/mask2former/mask2former_r50_lsj_8x2_50e_coco-panoptic.py
_base_ = [ '../_base_/datasets/coco_panoptic.py', '../_base_/default_runtime.py' ] num_things_classes = 80 num_stuff_classes = 53 num_classes = num_things_classes + num_stuff_classes model = dict( type='Mask2Former', backbone=dict( type='ResNet', depth=50, num_stages=4, out_i...
PypiClean
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/tl/functions/messages.py
from ...tl.tlobject import TLObject from ...tl.tlobject import TLRequest from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime if TYPE_CHECKING: from ...tl.types import TypeChatBannedRights, TypeChatReactions, TypeDataJSON, TypeDialogFilter, TypeInlineBotSwitc...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Gyre-Termes/Marks/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.GyreTermesMathJax_Marks={directory:"Marks/Regular",family:"GyreTermesMathJax_Marks",testString:"\u00A0\u02DB\u02DD\u0305\u0309\u030F\u0311\u0323\u0326\u032C\u032D\u032E\u032F\u0330\u0331",32:[0,0,250,0,0],160:[0,0,250,0,0],731:[17,245,333,81,261],733:[676,-505,333,37,427],77...
PypiClean
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/SigTools/LearningTools.py
__all__ = [ 'binomial', 'seqste', 'all_pairs', 'one_versus_rest', 'infer_classes', 'logistic', 'invlogistic', 'cg', 'invcg', 'dprime', 'running_mean', 'running_cov', 'svd', 'lda', 'csp', 'csp_itfe', 'confuse', 'balanced_loss', 'class_loss', 'eeop', 'linkern', 'sqdist', 'rbfkern', 'guesswidth', 'kview', 'pred...
PypiClean
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/pym/bob/intermediate.py
import asyncio import hashlib import os.path import struct from abc import ABC, abstractmethod from .input import DigestHasher from .languages import getLanguage, ScriptLanguage from .scm import getScm, ScmOverride from .state import BobState from .utils import asHexStr, getPlatformTag # Fully dumped: Package-/Build...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-fab/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/paper-fab/CONTRIBUTING.md#filing-issues --> ### Description <!-- Example: The `paper-foo` element causes the page to turn pink when clicked. --> ### Expected outcome <!-- Example: The page stays the same color. --> ### Actual outcome <!-- Example: The page turns...
PypiClean
/ExtProxy-1.0.3.tar.gz/ExtProxy-1.0.3/README.md
# ExtProxy [![license](https://img.shields.io/github/license/SeaHOH/extproxy)](https://github.com/SeaHOH/extproxy/blob/master/LICENSE) [![release status](https://img.shields.io/github/v/release/SeaHOH/extproxy?include_prereleases&sort=semver)](https://github.com/SeaHOH/extproxy/releases) [![code size](https://img.shiel...
PypiClean
/MatchZoo-2.2.0.tar.gz/MatchZoo-2.2.0/matchzoo/contrib/models/bimpm.py
from keras.models import Model from keras.layers import Dense, Concatenate, Dropout from keras.layers import Bidirectional, LSTM from matchzoo.engine.param import Param from matchzoo.engine.param_table import ParamTable from matchzoo.engine.base_model import BaseModel from matchzoo.contrib.layers import MultiPerspect...
PypiClean
/Data_mining_platform-1.2.tar.gz/Data_mining_platform-1.2/codes/FeatureSelect.py
from sklearn.model_selection import GridSearchCV,cross_val_score, ShuffleSplit from sklearn.ensemble import RandomForestRegressor ,RandomForestClassifier import numpy as np import pandas as pd from codes.Tools import * from scipy.stats import pearsonr from minepy import MINE import dcor from sklearn.discriminant_analys...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/17797.82a2f2183302fa63a7a8.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[17797],{51913:function(n,e,t){var o=t(87537),s=t.n(o),r=t(23645),l=t.n(r),a=t(61667),c=t.n(a),i=new URL(t(77794),t.b),u=l()(s()),h=c()(i);u.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;color:#dc...
PypiClean
/Kreveik-0.6.0.tar.gz/Kreveik-0.6.0/kreveik/genetic/__init__.py
def score(element,scorer=None): """ If a scorer is specified, the score of the element calculated with that scorer is returned. If scorer is not set, then the element is scored with the scorer specified in its definition. """ if scorer == None: element.score = element.scorer(e...
PypiClean
/BitstampClient-2.2.10.tar.gz/BitstampClient-2.2.10/README.rst
.. image:: https://badge.fury.io/py/BitstampClient.svg :target: https://badge.fury.io/py/BitstampClient ====================== bitstamp-python-client ====================== Python package to communicate with the bitstamp.net API (v1 and v2). Compatible with Python 2.7+ and Python 3.3+ Overview ======== There ...
PypiClean
/Apycula-0.9.0a1.tar.gz/Apycula-0.9.0a1/doc/sdram.md
# SDRAM Gowin devices with the R suffic such as the GW1NR-9 have built-in SDRAM. This SDRAM is a System-in-Package wirdebonded of the shelf SDRAM module. So there isn't so much to fuzz, you just have to know the pinout and the model. Gowin has been so kind as to provide LiteX with [the details](https://github.com/lit...
PypiClean
/K40Silence-0.0.1.tar.gz/K40Silence-0.0.1/src/core/svg_io.py
import os from ..svgelements import (SVG, Group, Path, Shape, SVGImage, SVGText) MILS_PER_MM = 39.3701 def plugin(kernel, lifecycle=None): if lifecycle == "register": kernel.register("load/SVGLoader", SVGLoader) class SVGLoader: @staticmethod def load_types(): yield "Scalable Vector Gr...
PypiClean
/fangnao-0.1.0.tar.gz/FangNao-0.1.0/docs/apis/usage_of_inputfactory.py
# # Usage of `input_factory` module # + import numpy as np import matplotlib.pyplot as plt import brainpy as nn # - # ## constant_current() # `constant_current()` function helps you to format constant current in several periods. # # For example, if you want to get an input in which 0-100 ms is zero, 100-400 ms is ...
PypiClean
/360monitoringcli-1.0.19-py3-none-any.whl/cli360monitoring/lib/servernotifications.py
import json from prettytable import PrettyTable from datetime import datetime from .api import apiGet from .config import Config from .functions import printError, printWarn class ServerNotifications(object): def __init__(self, config: Config, format: str = 'table'): self.config = config self.fo...
PypiClean
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/dooders/sdk/models/arena.py
from typing import TYPE_CHECKING, Generator import networkx as nx from pydantic import BaseModel from sklearn.decomposition import PCA from dooders.sdk.models import Dooder if TYPE_CHECKING: from dooders.sdk.base.reality import BaseSimulation gene_embedding = PCA(n_components=3) class Attributes(BaseModel): ...
PypiClean
/Freddie-0.9.8-py3-none-any.whl/freddie/db/fields.py
from typing import Any, Iterable, List, Type, Union from peewee import ( Expression, Field as DBField, FieldAccessor, ForeignKeyField, MetaField, Model, Query, ) class ManyToManyAccessor(FieldAccessor): field: 'ManyToManyField' def __get__( self, instance: Model, instance...
PypiClean
/Bgp-0.2.tar.gz/Bgp-0.2/bgp/bgplib.py
# http://trac.secdev.org/scapy/ticket/162 # scapy.contrib.description = BGP # scapy.contrib.status = loads import pdb from scapy.packet import * from scapy.fields import * from scapy.layers.inet import TCP class BGPIPField(Field): """Represents how bgp dose an ip prefix in (length, prefix)""" def mask2iplen(self...
PypiClean
/KqlmagicCustom-0.1.114.post13-py3-none-any.whl/Kqlmagic/kusto_client.py
from typing import Dict import re import uuid import json from .my_aad_helper_msal import _MyAadHelper, ConnKeysKCSB from .kql_response import KqlQueryResponse, KqlError from .constants import Constants, ConnStrKeys, Cloud from ._version import __version__ from .log import logger from .exceptions import KqlEngineErr...
PypiClean
/KiMoPack_noqt-6.13.7-py3-none-any.whl/KiMoPack_noqt/plot_func.py
version = "6.13.7" Copyright = '@Jens Uhlig' if 1: #Hide imports import os from os import walk import sys import pandas import numpy as np from numpy import power, log10, shape import numbers import matplotlib import matplotlib.colors as colors import matplotlib.pyplot as plt import matplotlib.cm as cm imp...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/discussion/axelrods_tournaments.rst
Background to Axelrod's Tournament ================================== `In the 1980s, professor of Political Science Robert Axelrod ran a tournament inviting strategies from collaborators all over the world for the Iterated Prisoner's Dilemma <http://en.wikipedia.org/wiki/The_Evolution_of_Cooperation#Axelrod.27s_tourna...
PypiClean
/DOMESTIC_CATS-1.0.4-py3-none-any.whl/Domestic-Cats/RFC.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab pd.set_option('display.max_rows', 1000) from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier #Read in Table of Merged Features known_transients = pd.read_csv("Data...
PypiClean
/LiveSync-0.2.2-py3-none-any.whl/livesync/folder.py
import asyncio import subprocess import sys from dataclasses import dataclass from pathlib import Path from typing import List, Optional import pathspec import watchfiles KWONLY_SLOTS = {'kw_only': True, 'slots': True} if sys.version_info >= (3, 10) else {} def run_subprocess(command: str, *, quiet: bool = False) -...
PypiClean
/NeuroTS-3.4.0-py3-none-any.whl/neurots/preprocess/utils.py
# Copyright (C) 2022 Blue Brain Project, EPFL # # 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 your option) any later version. # # This program is di...
PypiClean
/Md-Notes-api-1.0.0.tar.gz/Md-Notes-api-1.0.0/README.md
# Getting Started with MdNotes ## Getting Started ### Introduction API for Markdown Notes app. ### Install the Package The package is compatible with Python versions `2 >=2.7.9` and `3 >=3.4`. Install the package from PyPi using the following pip command: ```python pip install Md-Notes-api==1.0.0 ``` You can als...
PypiClean
/LFT-0.1.1-py3-none-any.whl/lft/app/node.py
from typing import IO, Dict, Type, OrderedDict from lft.app.data import DefaultDataFactory from lft.app.epoch import RotateEpoch from lft.app.vote import DefaultVoteFactory from lft.app.network import Network from lft.app.logger import Logger from lft.consensus.messages.data import Data from lft.event import EventSyste...
PypiClean
/FuXi-1.4.production.tar.gz/FuXi-1.4.production/lib/DLP/CompletionReasoning.py
__author__ = 'chimezieogbuji' import sys from FuXi.Syntax.InfixOWL import * from FuXi.DLP import SkolemizeExistentialClasses, \ SKOLEMIZED_CLASS_NS, \ LloydToporTransformation, \ ...
PypiClean
/EasyModeler-2.2.6.zip/EasyModeler-2.2.6/emlib/emlib.py
import sys import os import copy import csv import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import math from scipy.integrate import odeint import scipy import logging import datetime from matplotlib.dates import MONDAY, SATURDAY from matplotlib.dates import MonthLocator , Wee...
PypiClean
/FullContact-AIO-0.0.8.tar.gz/FullContact-AIO-0.0.8/README.md
FullContact.py ============== [![PyPI version](https://badge.fury.io/py/FullContact-AIO.svg)](https://badge.fury.io/py/FullContact-AIO) [![Build Status](https://api.travis-ci.org/fullcontact/fullcontact.py.svg?branch=master)](https://travis-ci.org/fullcontact/fullcontact.py) A Python interface for the [FullContact AP...
PypiClean
/NonlinearLeastSquares-2.0.2.tar.gz/NonlinearLeastSquares-2.0.2/ExamplesStructureFromCameraMotion/bundle_adjust_sfm_with_uncalibrated_cameras_translations_only.py
## bundle_adjust_sfm_with_uncalibrated_cameras_translations_only.py ## This script demonstrates how to use the sparse-bundle-adjustment capabilities ## of the NonlinearLeastSquares module for solving problems that require estimating ## both the scene structure and the camera parameters for the case when the...
PypiClean
/BlastRadius-0.1.23.tar.gz/BlastRadius-0.1.23/blastradius/server/static/js/svg-pan-zoom.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
PypiClean
/Django-Gtts-0.4.tar.gz/Django-Gtts-0.4/gTTS/templatetags/gTTS.py
from django import template from django.conf import settings try: # Django 2 from django.contrib.staticfiles.templatetags.staticfiles import static except ModuleNotFoundError: # Django 3 from django.templatetags.static import static from gtts import gTTS from os import path, makedirs, remove from dateti...
PypiClean
/Cryptonet-0.0.5.tar.gz/Cryptonet-0.0.5/cryptonet/utilities.py
import hashlib import sys import sha3 import time import pprint as pprint_module from binascii import hexlify, unhexlify import cryptonet from cryptonet.debug import debug from cryptonet.errors import ChainError, ValidationError #============================================================================== # GENERAL...
PypiClean
/Beeswarm-0.7.18.tar.gz/Beeswarm-0.7.18/beeswarm/drones/honeypot/capabilities/ssh.py
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/options/bioseqcutter.py
from logging import debug def _beginOptionCallback(options,opt,value,parser): def beginCutPosition(seq): debug("begin = %s" % value ) if hasattr(options, 'taxonomy') and options.taxonomy is not None: environ = {'taxonomy' : options.taxonomy,'sequence':seq} else: envi...
PypiClean
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/radosgw_admin/role.py
import logging from copy import deepcopy import RhcsQeSdk.core.cli.fabfile as fabfile from RhcsQeSdk.core.utilities import core_utils logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( "%(asctime)s - %(levelname)s - %(name)s:%(lineno)d - %(message)s" ) stream_hand...
PypiClean
/LiPD-0.2.8.9.tar.gz/LiPD-0.2.8.9/docs/_build/html/_static/doctools.js
* select a different prefix for underscore */ $u = _.noConflict(); /** * make the code below compatible with browsers without * an installed firebug like debugger if (!window.console || !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "...
PypiClean
/NuInfoSys-1.0.0.tar.gz/NuInfoSys-1.0.0/README.md
# NuInfoSys currently INCOMPLETE -- kekw malding ## Future Goals * Custom Images (DOTS files) * Custom Animations (Chaining DOTS files) * Image + Animation Designer Web App / Software * A way to know if the current animation list would require too much memory would be really cool, but would take some investigation ## C...
PypiClean
/JATA-0.3.5-py3-none-any.whl/pixplot/web/assets/vendor/dist/tweenlite.min.js
!function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a,f=e[b];if(f)return"undefined"!=typeof module&&module.exports&&(module.exports=f),f;var g,h,i,j,k,l=function(a){var b,c=a.split("."),d=e;for(b=0;b<c.length;b++)d[c[b]]=d=d[c[b]]||{};return d},m=l("com.greensock"),n=1e-10,o=funct...
PypiClean
/Abhishek-1.0.1.tar.gz/Abhishek-1.0.1/TOPSIS/topsis.py
import sys import csv import pandas as pd import os import copy para_num=len(sys.argv) if para_num!=5: print("Incorrect number of paramters") exit(0) inputData=sys.argv[1] try: s=open(inputData) except FileNotFoundError: raise Exception("File doesn't exist") data=pd.read_csv(inputDa...
PypiClean
/ModularTorch-0.1.4.tar.gz/ModularTorch-0.1.4/modular_torch/Utils.py
import torch import os from torch.utils.tensorboard import SummaryWriter import datetime import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots def save_model_weights(model: torch.nn.Module, model_name: str, save_path: ...
PypiClean
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/static/admin/js/bs4_filters.js
var AdminFilters = function(element, filtersElement, filterGroups, activeFilters) { var $root = $(element); var $container = $('.filters', $root); var lastCount = 0; function getCount(name) { var idx = name.indexOf('_'); if (idx === -1) { return 0; } return...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/geos/prototypes/threadsafe.py
import threading from django.contrib.gis.geos.base import GEOSBase from django.contrib.gis.geos.libgeos import ( CONTEXT_PTR, error_h, lgeos, notice_h, ) class GEOSContextHandle(GEOSBase): """Represent a GEOS context handle.""" ptr_type = CONTEXT_PTR destructor = lgeos.finishGEOS_r def __init__(...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/migrations/operations/special.py
from djmodels.db import router from .base import Operation class SeparateDatabaseAndState(Operation): """ Take two lists of operations - ones that will be used for the database, and ones that will be used for the state change. This allows operations that don't support state change to have it applied,...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/auth/views.py
from urllib.parse import urlparse, urlunparse from django.conf import settings # Avoid shadowing the login() and logout() views below. from django.contrib.auth import ( REDIRECT_FIELD_NAME, get_user_model, login as auth_login, logout as auth_logout, update_session_auth_hash, ) from django.contrib.auth.decorato...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/iceR.py
from genice2.cell import cellvectors import genice2.lattices desc = {"ref": {"Methane A": 'Maynard-Casely 2010', "R": 'Mochizuki 2014'}, "usage": "No options available.", "brief": "Hypothetical ice R.", "test": ({"args": "", "options": "--depol=optimal"},) ...
PypiClean
/OGER-1.5.tar.gz/OGER-1.5/oger/er/entity_recognition.py
# Nico Colic, September 2015 # Modified by Lenz Furrer, 2015--2016 ''' Entity Recognition core. ''' import re import csv import pickle import os.path import logging from ..ctrl import parameters from ..nlp.tokenize import Text_processing from ..util import misc, stream from . import term_normalization as normaliz...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/db/backends/creation.py
import hashlib import sys import time from django.conf import settings from django.db.utils import load_backend from django.utils.encoding import force_bytes from django.utils.six.moves import input # The prefix to put on the default database name when creating # the test database. TEST_DATABASE_PREFIX = 'test_' cl...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/sc_msg_dailyevent_pb2.py
from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import msg_base_pb2 as ...
PypiClean
/Appium-Flutter-Finder-0.4.0.tar.gz/Appium-Flutter-Finder-0.4.0/appium_flutter_finder/flutter_finder.py
import base64 import json from appium.webdriver.webelement import WebElement class FlutterElement(WebElement): pass class FlutterFinder: def by_ancestor(self, serialized_finder, matching, match_root=False, first_match_only=False): return self._by_ancestor_or_descendant( type_='Ancestor',...
PypiClean
/LimeReport-qt-6-4-1.7.5.tar.gz/LimeReport-qt-6-4-1.7.5/LimeReport/translations/limereport_zh.ts
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="zh_CN"> <context> <name>$ClassName$</name> <message> <source>$ClassName$</source> <translation>$ClassName$</translation> </message> </context> <context> <name>ChartAxisEditor</name> <message> <so...
PypiClean
/IntelliCoder-0.5.2.tar.gz/IntelliCoder-0.5.2/intellicoder/msbuild/builders.py
from __future__ import division, absolute_import, print_function from logging import getLogger import os from itertools import chain from subprocess import CalledProcessError from ..init import _ from ..utils import replace_ext from .locators import VSPath, VCPath, SDKPath logging = getLogger(__name__) class Buil...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_history_response.py
from msrest.serialization import Model class BillHistoryResponse(Model): """BillHistoryResponse. :param bill_id: The bill's bill id :type bill_id: int :param billing_period: The bill's billing period :type billing_period: int :param begin_date: The bill's begin date :type begin_date: dat...
PypiClean
/NCParse-1.0.1.tar.gz/NCParse-1.0.1/src/gcode.py
from operator import truediv import re from typing import Type from src.gcodesegment import GCodeSegment # extract letter-digit pairs g_pattern = re.compile('([A-Z])([-+]?[0-9.]+)') # white spaces and comments start with ';' and in '()' clean_pattern = re.compile('\(.*?\)|;.*') class GCode(object): # represents a...
PypiClean
/NlpToolkit-Math-1.0.18.tar.gz/NlpToolkit-Math-1.0.18/Math/Matrix.py
from __future__ import annotations import copy import random import math from Math.MatrixNotPositiveDefinite import MatrixNotPositiveDefinite from Math.MatrixNotSquare import MatrixNotSquare from Math.Eigenvector import Eigenvector from Math.MatrixDimensionMismatch import MatrixDimensionMismatch from Math.Vector impor...
PypiClean
/Flask-WebSub-0.4.tar.gz/Flask-WebSub-0.4/flask_websub/hub/__init__.py
import functools import itertools from .blueprint import build_blueprint, A_DAY from .tasks import make_request_retrying, send_change_notification, \ subscribe, unsubscribe from .storage import SQLite3HubStorage __all__ = ('Hub', 'SQLite3HubStorage') class Hub: """This is the API to the hub p...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bower/packages/bower-config/CHANGELOG.md
# Changelog ## 1.4.2 - Prevent errors when expanded env variable does not exist ## 1.4.2 - Update minimist to 0.2.1 to fix security issue ## 1.4.0 - Change default shorthand resolver from git:// to https:// ## 1.3.1 - Ignore hook scripts for environment variable expansion ## 1.3.0 - 2015-12-07 - Allow the use...
PypiClean
/AaioAPI-1.0.2.tar.gz/AaioAPI-1.0.2/README.md
<h1><img src="https://aaio.io/assets/landing/img/logo-m.svg" width=30 height=30> AAIO</h1> A Library for easy work with [Aaio API](https://wiki.aaio.io/), in the Python programming language. Библиотека для легкой работы с [Aaio API](https://wiki.aaio.io/), на языке программирования Python. ## What is available in...
PypiClean
/Flask%20of%20Cinema-1.0.0.tar.gz/Flask of Cinema-1.0.0/static/js/toasts.js
(function($, anim) { 'use strict'; let _defaults = { html: '', displayLength: 4000, inDuration: 300, outDuration: 375, classes: '', completeCallback: null, activationPercent: 0.8 }; class Toast { constructor(options) { /** * Options for the toast * @member T...
PypiClean
/BifacialSimu-1.2.0-py3-none-any.whl/BifacialSimu_src/Vendor/bifacial_radiance/spectral_utils.py
import numpy as np import pandas as pd from collections.abc import Iterable import os from scipy import integrate class spectral_property(object): """ WRITE DOCSTRING HERE """ def load_file(filepath): with open(filepath, 'r') as infile: meta = next(infile)[:-1] dat...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/amp/opt.py
import contextlib import warnings from .scaler import LossScaler, master_params from ._amp_state import maybe_print import numpy as np class OptimWrapper(object): def __init__(self, optimizer, amp_handle, num_loss): self._optimizer = optimizer self._amp_handle = amp_handle self._num_loss ...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/x_to_nwb/conversion_utils.py
import math from pkg_resources import get_distribution, DistributionNotFound import os from subprocess import Popen, PIPE import numpy as np from pynwb.icephys import CurrentClampStimulusSeries, VoltageClampStimulusSeries, CurrentClampSeries, \ VoltageClampSeries, IZeroClampSeries try: from pynwb.form.backen...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/editor/editor.py
import os import time import wx from . import selection from . import images #---------------------------- def ForceBetween(min, val, max): if val > max: return max if val < min: return min return val def LineTrimmer(lineOfText): if len(lineOfText) == 0: return "" ...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/backbones/hrnet.py
import logging import torch.nn as nn from mmcv.cnn import constant_init, kaiming_init from mmcv.runner import load_checkpoint from torch.nn.modules.batchnorm import _BatchNorm from ..registry import BACKBONES from ..utils import build_conv_layer, build_norm_layer from .resnet import BasicBlock, Bottleneck class HRM...
PypiClean
/FireSpark-0.0.26.tar.gz/FireSpark-0.0.26/README.md
FireSpark ========= FireSpark aims to provide Magna ML/MAS team a flexible and standardized library supporting data processing, management, dataset curation, and ETL related activities. A dataset created using FireSpark is stored in [Apache Parquet](https://parquet.apache.org/) format. On top of a Parquet schema, Fi...
PypiClean
/AbPyTools-0.3.2.tar.gz/AbPyTools-0.3.2/abpytools/core/chain_collection.py
from .chain import Chain import numpy as np import logging from abpytools.utils import PythonConfig, Download import json import os import pandas as pd from .helper_functions import numbering_table_sequences, numbering_table_region, numbering_table_multiindex from operator import itemgetter from urllib import parse fro...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/timing/Streamer.js.uncompressed.js
define("dojox/timing/Streamer", ["./_base"], function(){ dojo.experimental("dojox.timing.Streamer"); dojox.timing.Streamer = function( /* function */input, /* function */output, /* int */interval, /* int */minimum, /* array */initialData ){ // summary // Streamer will take an input function that pushes...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/uilayer/uicomponents/VertScrollBar.py
# Copyright (c) 2017, Thierry Lemeunier <thierry at lemeunier dot net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice...
PypiClean
/Ibidas-0.1.26.tar.gz/Ibidas-0.1.26/ibidas/__init__.py
__all__ = ["Rep","Read", "Write", "Import", "Export", "Connect","_","CyNetwork",'Unpack', "Addformat", "Array","Tuple","Combine","HArray", "Stack","Intersect","Union","Except","Difference", "Pos","Argsort","Rank","IsMissing","CumSum", "Any","All", "Max","Min", ...
PypiClean
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/blend.py
from csc.divisi.tensor import DictTensor, Tensor from csc.divisi.ordered_set import OrderedSet from csc.divisi.labeled_view import LabeledView from csc.divisi.normalized_view import MeanSubtractedView from itertools import chain, izip import logging from math import sqrt, ceil def partial_list_repr(lst, max_len): ...
PypiClean
/Elpotrero-1.6.2.tar.gz/Elpotrero-1.6.2/elpotrero/_files/tree/scripts/readmes/install.README
Make sure to set remotehost.prd in /etc/hosts file, otherwise you are going to be trying to connect to it and not getting the right server address. You should also temporarily set up remotehost.com as well while you are waiting for the DNS file to be propagated through the system, just make sure to change it back to n...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-textile.js
(function(Prism) { // We don't allow for pipes inside parentheses // to not break table pattern |(. foo |). bar | var modifierRegex = '(?:\\([^|)]+\\)|\\[[^\\]]+\\]|\\{[^}]+\\})+'; var modifierTokens = { 'css': { pattern: /\{[^}]+\}/, inside: { rest: Prism.languages.css } }, 'class-id': { patt...
PypiClean
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/geometry/svgtools.py
from copy import deepcopy from itertools import chain from xml.dom.minidom import parse from svg.path import (parse_path, CubicBezier, QuadraticBezier, Arc, Move, Close, Path) import shapely from shapely.affinity import scale, affine_transform, translate from shapely.geometry import Point, Pol...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/backend/model_management/models/__init__.py
import inspect from enum import Enum from pydantic import BaseModel from typing import Literal, get_origin from .base import ( # noqa: F401 BaseModelType, ModelType, SubModelType, ModelBase, ModelConfigBase, ModelVariantType, SchedulerPredictionType, ModelError, SilenceWarnings, ...
PypiClean
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/jpackages/JPackageClient.py
import math from JumpScale import j from JPackageObject import JPackageObject from Domain import Domain try: import JumpScale.baselib.circus except: pass try: import JumpScale.baselib.expect except: pass from JumpScale.baselib import platforms class JPackageClient(): sourcesFile = None ""...
PypiClean
/Newsroom-1.0-py3-none-any.whl/newsroom/static/dist/navigations_js.9448ce7dce72c6bc137f.js
webpackJsonp([7],{ /***/ 1: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.notify = exports.now = undefined; exports.createStore = createStore; exports.render = render; exports.gettext = gettext; exports.getProductQuer...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/doc/sphinx/source/doc/delegates.rst
.. _doc-delegates: ############# Delegates ############# `Delegates` are a cornerstone of the Qt model/delegate/view framework. A delegate is used to display and edit data from a `model`. In the Camelot framework, every field of an `Entity` has an associated delegate that specifies how the field will be displaye...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/preprocessing/cropping.py
import SimpleITK as sitk import numpy as np import shutil from batchgenerators.utilities.file_and_folder_operations import * from multiprocessing import Pool from collections import OrderedDict def create_nonzero_mask(data): from scipy.ndimage import binary_fill_holes assert len(data.shape) == 4 or len(data....
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/messages_and_media/video_note.py
from datetime import datetime from typing import List import fipper from fipper import raw, utils from fipper import types from fipper.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class VideoNote(Object): """A video note. Parameters: file_id (``str``): ...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/job.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/EntityPalette.js
define("dojox/editor/plugins/EntityPalette",["dojo","dijit","dojox","dijit/_Widget","dijit/_TemplatedMixin","dijit/_PaletteMixin","dojo/_base/connect","dojo/_base/declare","dojo/i18n","dojo/i18n!dojox/editor/plugins/nls/latinEntities"],function(_1,_2,_3){ _1.experimental("dojox.editor.plugins.EntityPalette"); _1.declar...
PypiClean
/NiMARE-0.2.0rc2.tar.gz/NiMARE-0.2.0rc2/nimare/extract/utils.py
from __future__ import division import logging import os import os.path as op import numpy as np import pandas as pd import requests from fuzzywuzzy import fuzz from nimare.utils import _uk_to_us LGR = logging.getLogger(__name__) def get_data_dirs(data_dir=None): """Return the directories in which NiMARE look...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/extensions/views/extensionManagerView.es6.172b5ba315a2.js
(function() { /** * An item in the list of registered extensions. * * This will contain information on the extension and actions for toggling * the enabled state, reloading the extension, or configuring the extension. */ const ExtensionItem = Djblets.Config.ListItem.extend({ defaults: _.defaults({ ex...
PypiClean
/FireWorks-2.0.3.tar.gz/FireWorks-2.0.3/fireworks/utilities/fw_utilities.py
import contextlib import datetime import errno import logging import multiprocessing import os import socket import string import sys import traceback from logging import Formatter, Logger from multiprocessing.managers import BaseManager from typing import Tuple from fireworks.fw_config import DS_PASSWORD, FW_BLOCK_FO...
PypiClean
/Abhilash1_optimizers-0.1.tar.gz/Abhilash1_optimizers-0.1/Abhilash1_optimizers/ClassicMomentum.py
import math import numpy as np import Abhilash1_optimizers.Activation as Activation import Abhilash1_optimizers.hyperparameters as hyperparameters import Abhilash1_optimizers.Moment_Initializer as Moment_Initializer #Adamax varaiation of ADAM with L**p norm over L**2 norm(p->infinity) class Momentum(): def __init__...
PypiClean
/Behaviour-0.1a4.tar.gz/Behaviour-0.1a4/example/machine/readme.txt
Machine Example --------------- This is the same example as used in "Behaviour-Driven Testing with RSpec" by Bruce Tate, translated from RSpec (Ruby) to Behaviour (Python). The original article may be found at http://www.ibm.com/developerworks/web/library/wa-rspec/. Listing 10 differs as it is impossible to get the ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/trackers/botsort/reid_multibackend.py
import torch.nn as nn import torch from pathlib import Path import numpy as np from itertools import islice import torchvision.transforms as transforms import cv2 import sys import torchvision.transforms as T from collections import OrderedDict, namedtuple import gdown from os.path import exists as file_exists from u...
PypiClean