id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/uilayer/uicomponents/BaseWindow.py
# Copyright (c) 2016, 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
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/bomregions2011.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def bomregions2011(path): """Australian and Related Historical Annual Climate Data, by region ...
PypiClean
/Flask-AppBuilder-redirect-2.1.13.tar.gz/Flask-AppBuilder-redirect-2.1.13/flask_appbuilder/api/convert.py
from marshmallow import fields from marshmallow_enum import EnumField from marshmallow_sqlalchemy import field_for from marshmallow_sqlalchemy.schema import ModelSchema class TreeNode: def __init__(self, data): self.data = data self.childs = list() def __repr__(self): return "{}.{}".f...
PypiClean
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/widgets/tools/ow_dabam_height_profile.py
import os, sys from PyQt5.QtWidgets import QApplication import orangecanvas.resources as resources from oasys.widgets.abstract.error_profile.abstract_dabam_height_profile import OWAbstractDabamHeightProfile from orangecontrib.srw.util.srw_objects import SRWPreProcessorData, SRWErrorProfileData import orangecontrib.s...
PypiClean
/BactInspectorMax-0.1.3-py3-none-any.whl/bactinspector/mash_functions.py
import os, glob, sys import pandas from bactinspector.utility_functions import add_new_file_extension, get_base_name, run_command import pandas as pd from io import StringIO def run_mash_sketch(file, filetype, output_dir = None, mash_path = ''): """ run mash sketch on a fasta file and return the path to the r...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/regression/linear_regression.py
import graphlab.connect as _mt import graphlab.toolkits._supervised_learning as _sl from graphlab.toolkits._supervised_learning import SupervisedLearningModel as \ _SupervisedLearningModel from graphlab.toolkits._internal_utils import _toolkit_repr_print, \ ...
PypiClean
/CrossTex-0.7.0.tar.gz/CrossTex-0.7.0/crosstex/style/common.py
from crosstex.objects import * _wordre = re.compile('(-+|\s+|\\\w+|\\\W+|\$[^\$]*\$|[{}])', re.IGNORECASE) _spacere = re.compile(r'^\s*$') _specialre = re.compile(r'^(\\.*|\$[^\$]*\$)$') _punctuationre = re.compile('([:!.?]|-{2,})[\'}\n]*$') _linkre = re.compile("[a-zA-Z][-+.a-zA-Z0-9]*://([:/?#[\]@!$&'()*+,;=a-zA-Z0-...
PypiClean
/GCN4LP-0.1-py3-none-any.whl/src/graph_att_gae/train.py
import scipy.sparse as sp import numpy as np import torch import time import os from configparser import ConfigParser import sys sys.path.append('/home/shiyan/project/gcn_for_prediction_of_protein_interactions/') from src.util.load_data import load_data, sparse_to_tuple, mask_test_edges, preprocess_graph from src.uti...
PypiClean
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/conv/parsers/nexo.py
import re from decimal import Decimal from ...config import config from ..dataparser import DataParser from ..exceptions import UnexpectedTypeError from ..out_record import TransactionOutRecord WALLET = "Nexo" ASSET_NORMALISE = { "NEXONEXO": "NEXO", "NEXOBNB": "NEXO", "NEXOBEP2": "NEXO", "USDTERC": ...
PypiClean
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest/mambutask.py
from ..mambugeturl import gettasksurl from .mambustruct import MambuStruct from .mamburestutils import MambuStructIterator mod_urlfunc = gettasksurl class MambuTask(MambuStruct): """A Task from Mambu. Don't instantiate this class directly. It's mostly used by MambuTasks to configure each of its elements...
PypiClean
/Another_One_Messenger_Server-0.9.tar.gz/Another_One_Messenger_Server-0.9/src/server/config_window.py
from PyQt5.QtWidgets import QDialog, QLabel, QLineEdit, QPushButton, QFileDialog, QMessageBox from PyQt5.QtCore import Qt import os class ConfigWindow(QDialog): '''Класс окно настроек.''' def __init__(self, config): super().__init__() self.config = config self.initUI() def initUI...
PypiClean
/NERO-nlp-0.0.8.tar.gz/NERO-nlp-0.0.8/NERO/Core.py
import pandas as pd import matplotlib.pyplot as plt class Corpus: """ The Corpus class containing functions to extract data from the corpus. """ def __init__(self, *args, **kwargs): self._data = self._load_data(kwargs['df']) # Main corpus/dataframe properties self.columns...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/tar/lib/pack.js
'use strict' // A readable tar stream creator // Technically, this is a transform stream that you write paths into, // and tar format comes out of. // The `add()` method is like `write()` but returns this, // and end() return `this` as well, so you can // do `new Pack(opt).add('files').add('dir').end().pipe(output) //...
PypiClean
/DecisionTree-3.4.3.tar.gz/DecisionTree-3.4.3/ExamplesRandomizedTrees/README_for_using_randomized_trees
README for using randomized trees ================================= This README is specifically for the code in the ExamplesRandomizedTrees subdirectory of the installation directory. See the README in the Examples subdirectory of the installation directory for the main examples for using the Deci...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/v8.d.ts
declare module 'v8' { import { Readable } from 'node:stream'; interface HeapSpaceInfo { space_name: string; space_size: number; space_used_size: number; space_available_size: number; physical_space_size: number; } // ** Signifies if the --zap_code_space option is ...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/audit/SQLAudit.py
import datetime from sqlalchemy import schema, types, orm, and_, or_, asc, desc from M2Crypto import EVP, RSA from binascii import hexlify from binascii import unhexlify from sqlalchemy import create_engine from linotp.lib.audit.base import AuditBase from pylons import config import logging.config import traceback i...
PypiClean
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/Flot/API.md
# Flot Reference # Consider a call to the plot function: ```js var plot = $.plot(placeholder, data, options) ``` The placeholder is a jQuery object or DOM element or jQuery expression that the plot will be put into. This placeholder needs to have its width and height set as explained in the [README](README.md) (go r...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/quickstart.rst
.. _quickstart: Quickstart ========== This page gives a good introduction in how to get started with Glances. Glances offers 3 modes: - Standalone - Client/Server - Web server Standalone Mode --------------- If you want to monitor your local machine, open a console/terminal and simply run: .. code-block:: console...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/cache/backend.py
import hashlib import hmac import io import logging import pickle import re import zlib from django.conf import settings from django.core.cache import cache from django.contrib.sites.models import Site from django.utils.encoding import force_bytes from djblets.cache.errors import MissingChunkError from djblets.secret...
PypiClean
/Dandelion-0.17.26-py3-none-any.whl/dandelion/ctc_theano.py
__author__ = 'dawei.leng' __version__ = '1.48' """ Another CTC implemented in theano. The `cost()` function of `CTC_Timescale` and `CTC_Logscale` classes return the average NLL over a batch samples given query sequences and score matrices. This implementation features: 1) batch / mask supported. 2) speed co...
PypiClean
/Astropysics-1.0.tar.gz/Astropysics-1.0/astropysics/gui/spectarget.py
from __future__ import division,with_statement import numpy as np try: import enthought from enthought.traits.api import HasTraits traitsflat = False except ImportError: import traits traitsflat = True if traitsflat: from traits.api import HasTraits,on_trait_change,Instance,Float,\ ...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/extra/numerated-headers/lib/numerated-headers-plugin.js
* Aloha Editor * Author & Copyright (c) 2010 Gentics Software GmbH * aloha-sales@gentics.com * Licensed unter the terms of http://www.aloha-editor.com/license.html */ define([ 'aloha/jquery', 'aloha/plugin', 'aloha/floatingmenu', 'i18n!numerated-headers/nls/i18n', 'i18n!aloha/nls/i18n', 'css!numerated-headers/css...
PypiClean
/OBP_reliability_pillar-0.2.0.tar.gz/OBP_reliability_pillar-0.2.0/OBP_reliability_pillar/ec2/ec2_instance_detailed_monitoring_enabled.py
import botocore import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger() # checks compliance.py for ec2 instance detailed monitoring enabled def ec2_instance_detailed_monitoring_enabled(self) -> dict: """ :param self: :return: """ logger.info(" ---Inside ec2 :: ec2_inst...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/doc/api_doc/inginious.client.rst
inginious.client package ======================== .. automodule:: inginious.client :members: :undoc-members: :show-inheritance: Submodules ---------- .. _inginious.client.client: inginious.client.client module ------------------------------ .. automodule:: inginious.client.client :members: :und...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/ta_IN/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = ( "{{first_name_female}}", "{{first_name_female}}", "{{first_name_female}}", "{{first_name_female}} {{last_name}}", "{{first_name_female}} {{last_name}}", ) formats_male = ( ...
PypiClean
/GNotifier-0.5.tar.gz/GNotifier-0.5/notifier/__init__.py
from restkit import Resource from simplejson import loads, dumps import urllib2 import socket def to_str(value): if isinstance(value, str): return value.decode('utf-8', 'ignore') return value.encode('utf-8', 'ignore') def notify(title, message='', url='http://localhost:5222', path='/', recipients=[]):...
PypiClean
/DTMC/spatialModel/Hub/HubSEIRSD.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from .HubSEIRD import HubSEIRD class HubSEIRSD(HubSEIRD): """ Object that represents the Hub Model with compartments S, E, I, R, and D. In this model, E is assumed to not be able to spread the virus. Parameters ---------- ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/survey.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def survey(path): """Student Survey Data This data frame contains the responses of 237 Statist...
PypiClean
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitFamilyReloadAdvancedUtils.py
from collections import namedtuple from timer import Timer import Result as res import Utility as util import RevitFamilyBaseDataUtils as rFamBaseDataUtils # tuples containing base family data and changed family data read from files changedFamily = namedtuple('changedFamily', 'name category filePath') #baseFamily = ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/README.md
CKEditor 4 ========== Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. http://ckeditor.com - See LICENSE.md for license information. CKEditor is a text editor to be used inside web pages. It's not a replacement for desktop text editors like Word or OpenOffice, but a component to be used a...
PypiClean
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/bot/dealer/respository.py
from typing import List from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy import Column, Integer, String, DateTime, Boolean, ForeignKey, func DB_URI = 'sqlite:///db.sqlite3' BASE = declarative_base() class DBConnect...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/config-forms.min.c5e2ea705623.js
(function(){window.Djblets=window.Djblets||{};Djblets.Config={};"use strict";Djblets.Config.ListItems=Backbone.Collection.extend({initialize(models,options){this.options=options},fetch(options){this.trigger("fetching");Backbone.Collection.prototype.fetch.call(this,options)}});"use strict";Djblets.Config.ListItem=Backbo...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/minimist/index.js
module.exports = function (args, opts) { if (!opts) opts = {}; var flags = { bools : {}, strings : {}, unknownFn: null }; if (typeof opts['unknown'] === 'function') { flags.unknownFn = opts['unknown']; } if (typeof opts['boolean'] === 'boolean' && opts['boolean']) { flags.allBoo...
PypiClean
/BUPTNetLogin-0.1.0.tar.gz/BUPTNetLogin-0.1.0/app/bupt_net_login.py
import argparse import requests as requests from lxml import etree from app import version from app.line_option import LineOption class BUPTNetLogin: def __init__(self): self.ngw = "http://ngw.bupt.edu.cn" self.ngw_login = self.ngw + "/login" self.ngw_logout = self.ngw + "/logout" ...
PypiClean
/Messenger_client_dmitry_vokh-1.0.0.tar.gz/Messenger_client_dmitry_vokh-1.0.0/client/database.py
import datetime from common.variables import * from sqlalchemy import create_engine, Table, Column, Integer, String, Text, MetaData, DateTime from sqlalchemy.orm import mapper, sessionmaker from sqlalchemy.sql import default_comparator import os class ClientDatabase: ''' Класс - оболочка для работы с базой д...
PypiClean
/Fumagalli_Motta_Tarantino_2020-0.5.3.tar.gz/Fumagalli_Motta_Tarantino_2020-0.5.3/Fumagalli_Motta_Tarantino_2020/Notebooks/Interactive.ipynb
``` %matplotlib notebook %config InlineBackend.figure_format ='svg' from ipywidgets import Layout, widgets from IPython.display import clear_output, display import Fumagalli_Motta_Tarantino_2020 as FMT20 def create_float_input( value: float, description: str, min_value=0.0, max_value=1.0, step=0.01 ) -> widgets.B...
PypiClean
/LinkPython-0.1.1.tar.gz/LinkPython-0.1.1/modules/pybind11/docs/benchmark.py
import datetime as dt import os import random nfns = 4 # Functions per class nargs = 4 # Arguments per function def generate_dummy_code_pybind11(nclasses=10): decl = "" bindings = "" for cl in range(nclasses): decl += "class cl%03i;\n" % cl decl += "\n" for cl in range(nclasses): ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/backbones/resnet.py
import warnings import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.cnn import build_conv_layer, build_norm_layer, build_plugin_layer from mmcv.runner import BaseModule from torch.nn.modules.batchnorm import _BatchNorm from ..builder import BACKBONES from ..utils import ResLayer class BasicBlock(Bas...
PypiClean
/CtrlF_TF-1.0b1.tar.gz/CtrlF_TF-1.0b1/src/ctrlf_tf/ctrlf_core.py
import copy from dataclasses import dataclass, fields from io import StringIO import sys from typing import Iterable, Tuple import numpy as np import pandas as pd import ctrlf_tf.pwm_utils import ctrlf_tf.str_utils import ctrlf_tf.parse_utils import ctrlf_tf.compile_utils import ctrlf_tf.site_call_utils __version__ ...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/contrib/multihead_attn/fast_encdec_multihead_attn_func.py
import torch import PMTD.maskrcnn_benchmark.apex.apex.contrib.multihead_attn.fast_encdec_multihead_attn class FastEncdecAttnFunc(torch.autograd.Function): @staticmethod def forward(ctx, use_time_mask, is_training, heads, inputs_q, inputs_kv, input_weights_q, input_weights_kv, output_weights, pad_mask, dropout...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/drawing/ui/Button.js
if(!dojo._hasResource["dojox.drawing.ui.Button"]){ dojo._hasResource["dojox.drawing.ui.Button"]=true; dojo.provide("dojox.drawing.ui.Button"); dojox.drawing.ui.Button=dojox.drawing.util.oo.declare(function(_1){ _1.subShape=true; dojo.mixin(this,_1); this.width=_1.data.width; this.height=_1.data.height; this.id=this.id|...
PypiClean
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/data/load/data_entry.py
from typing import List from typing import Any from typing import Tuple from typing import Union import weakref # Deeplodocus imports from deeplodocus.utils.notification import Notification from deeplodocus.data.load.source import Source from deeplodocus.data.load.source_wrapper import SourceWrapper from deeplodocus.d...
PypiClean
/Card%20Validator-1.0.0.zip/Card Validator-1.0.0/cardvalidator/formatter.py
import re def is_hipercard(n): """Checks if credit card number fits the visa format.""" n, length = str(n), len(str(n)) if length >= 13 and length <= 19: if re.match('^606282|3841\d{2}',''.join(n[:6])): return True return False def is_dankort(n): """Checks if credit card numbe...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/framework/parallel.py
import atexit import os import random import time import traceback import pickle from mpire.pool import WorkerPool from ditk import logging import tempfile import socket from os import path from typing import Callable, Dict, List, Optional, Tuple, Union, Set from threading import Thread from ding.framework.event_loop i...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/utils/parsers/movie.py
import re from datetime import datetime from loguru import logger from flexget.utils import qualities from flexget.utils.parsers.parser import TitleParser from flexget.utils.tools import str_to_int logger = logger.bind(name='movieparser') def diff_pos(string1, string2): """Returns first position where string1 ...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/nodes/gsfa_nodes.py
from __future__ import absolute_import from __future__ import print_function from __future__ import division import mdp from mdp import numx, NodeException, TrainingException from mdp.utils import (mult, symeig, pinv, SymeigException) from mdp.nodes import GeneralExpansionNode # For Python 2 & 3 compatibility try: ...
PypiClean
/Flask-SSLify-0.1.5.tar.gz/Flask-SSLify-0.1.5/README.rst
Flask-SSLify ============ This is a simple Flask extension that configures your Flask application to redirect all incoming requests to HTTPS. Redirects only occur when ``app.debug`` is ``False``. Usage ----- Usage is pretty simple:: from flask import Flask from flask_sslify import SSLify app = Flask(_...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/addon/fold/foldcode.js
(function() { "use strict"; function doFold(cm, pos, options) { var finder = options && (options.call ? options : options.rangeFinder); if (!finder) finder = cm.getHelper(pos, "fold"); if (!finder) return; if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0); var minSize = options && option...
PypiClean
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/editor/media/delivxml.js
editAreaLoader.load_syntax["delivxml"] = { 'COMMENT_SINGLE' : {} ,'COMMENT_MULTI' : {'<!--' : '-->'} ,'QUOTEMARKS' : {1: "'", 2: '"'} ,'KEYWORD_CASE_SENSITIVE' : true ,'KEYWORDS' : { 'values' : [ 'ruleset', 'server-settings', 'server', 'execute-pyref...
PypiClean
/IronPdf-2023.8.6-py37-none-any.whl/IronPdf-2023.8.6.data/data/IronPdf.Slim/dotnet-install.sh
# Stop script on NZEC set -e # Stop script if unbound variable found (use ${var:-} if intentional) set -u # By default cmd1 | cmd2 returns exit code of cmd2 regardless of cmd1 success # This is causing it to fail set -o pipefail # Use in the the functions: eval $invocation invocation='say_verbose "Calling: ${yellow:-...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/methods/messages/send_contact.py
from datetime import datetime from typing import Union import pyrogram from pyrogram import raw, utils from pyrogram import types class SendContact: async def send_contact( self: "pyrogram.Client", chat_id: Union[int, str], phone_number: str, first_name: str, last_name: s...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/printing/conventions.py
import collections import re _name_with_digits_p = re.compile(r'^([a-zA-Z]+)([0-9]+)$') def split_super_sub(text): """Split a symbol name into a name, superscripts and subscripts The first part of the symbol name is considered to be its actual 'name', followed by super- and subscripts. Each superscript...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tools/environments/Virtualenv.py
import os import sys from contextlib import contextmanager from nuitka.__past__ import unicode from nuitka.Tracing import my_print from nuitka.utils.Execution import check_call, executeProcess from nuitka.utils.FileOperations import ( getDirectoryRealPath, removeDirectory, withDirectoryChange, ) class Vi...
PypiClean
/MPD_sima-0.18.2.tar.gz/MPD_sima-0.18.2/doc/source/dev/meta.rst
Track object Documentation ========================== .. autodata:: sima.lib.track.SEPARATOR .. automodule:: sima.lib.track :members: Meta object Documentation ========================= Generic class and helper function --------------------------------- .. autoclass:: sima.lib.meta.Meta :members: :undo...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/ChimneyDetector/train.py
from lib.train_detector import Detector import argparse def get_args(): parser = argparse.ArgumentParser('EfficientDet-based chimney detection model') parser.add_argument('-c', '--compound_coef', type=int, default=4, help='Compund coefficient for the EfficientDet backbone, e.g., enter ...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/hh_cond_exp_destexhe.rst
hh_cond_exp_destexhe #################### hh_cond_exp_destexhe - Hodgin Huxley based model, Traub, Destexhe and Mainen modified Description +++++++++++ hh_cond_exp_destexhe is an implementation of a modified Hodkin-Huxley model, which is based on the hh_cond_exp_traub model. Differences to hh_cond_exp_traub: (1) ...
PypiClean
/Ceygen-0.3.tar.gz/Ceygen-0.3/doc/lu.rst
================================== LU Decomposition-powered Functions ================================== This module contains algebraic functions powered by the LU matrix decomposition (as provided by the <`Eigen/LU`_> include), most notably matrix inverse and determinant. .. module:: ceygen.lu .. function:: inv(x[,...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/quantum_mechanics/angular.py
from typing import List, Optional from sympy.physics.matrices import msigma from sympy.physics.quantum.cg import CG from sympy.physics.wigner import wigner_3j, wigner_6j from mathics.builtin.base import SympyFunction from mathics.core.atoms import Integer from mathics.core.attributes import ( # A_LISTABLE,; A_NUMERI...
PypiClean
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/editor/forms/measurements.py
from django.utils.datastructures import SortedDict from django import forms from django.contrib.contenttypes.models import ContentType from helmholtz.annotation.models import Descriptor from helmholtz.measurements.models import Parameter, GenericMeasurement, BoolMeasurement, IntegerMeasurement, FloatMeasurement, Strin...
PypiClean
/Flask-Occam-0.2.1.tar.gz/Flask-Occam-0.2.1/flask_occam/converters.py
import re from werkzeug.routing import BaseConverter from werkzeug.exceptions import NotFound # helpers # ------- MODELS = dict() def class_registry(cls): """ Function for dynamically getting class registry dictionary from specified model. """ try: return dict(cls._sa_registry._class_reg...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/solvers/inequalities.py
import collections import itertools from ..core import Dummy, Eq, Ge, Gt, Integer, Le, Lt, Ne, S, Symbol, oo from ..core.compatibility import iterable from ..core.relational import Relational from ..functions import Abs, Max, Min, Piecewise, sign from ..logic import And, Or, false, true from ..matrices import Matrix,...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/animation.py
__all__ = ('Animation', 'AnimationTransition') from math import sqrt, cos, sin, pi from collections import ChainMap from kivy.event import EventDispatcher from kivy.clock import Clock from kivy.compat import string_types, iterkeys from kivy.weakproxy import WeakProxy class Animation(EventDispatcher): '''Create a...
PypiClean
/DeepCell-CPU-0.12.9.tar.gz/DeepCell-CPU-0.12.9/deepcell/utils/backbone_utils.py
import copy from tensorflow.keras import backend as K from tensorflow.keras import applications from tensorflow.keras.backend import is_keras_tensor from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Conv2D, Conv3D, BatchNormalization from tensorflow.keras.layers import Activation, Ma...
PypiClean
/Flask-Inflate-0.3.tar.gz/Flask-Inflate-0.3/README.md
# Flask-Inflate A simple flask extension to automatically decompress gzipped (compressed) request data sent by clients. This doesn't read the whole data into memory, it just allows reading from the original data stream as it was never compressed. If the content is not gzipped, it will remain intact. ## Install `pip i...
PypiClean
/Claver-Message-Board-0.0.4.tar.gz/Claver-Message-Board-0.0.4/interface/settings/categories/AboutMenu.py
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, GdkPixbuf from interface.settings.SettingsMenuTemplate import SettingsMenuTemplate import interface.settings.Settings as settings class AboutMenu(SettingsMenuTemplate): __DEFAULT_CONTENT_WIDTH = 882 # ! NOTE !! - This is only true for 128...
PypiClean
/CubeLang-0.1.4-py3-none-any.whl/cli/entry.py
import sys from argparse import ArgumentParser from lark import UnexpectedCharacters from lark.exceptions import LarkError from .cube_builder import init_cube_args_parser, build_cube from .error_display import ErrorsOutput from .options import file_contents_type from .postprocessors_builder import init_postprocessors...
PypiClean
/Aruana-1.1.1-py3-none-any.whl/aruana/stopwords.py
english = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'h...
PypiClean
/Code_groupe1_laguilhon-0.0.1.tar.gz/Code_groupe1_laguilhon-0.0.1/src/Code/Algo_main_CelebA_vf.py
import numpy as np import matplotlib #mac matplotlib.use("TkAgg") import matplotlib.pyplot as plt import pandas as pd from PIL import Image from skimage import io, transform from skimage.transform import resize import os, time, sys, json, glob import csv import cv2 import math, random from importlib import reload i...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/manager/_ValueMixin.js.uncompressed.js
define("dojox/form/manager/_ValueMixin", [ "dojo/_base/lang", "dojo/_base/kernel", "dojo/_base/declare" ], function(lang, dojo, declare){ return declare("dojox.form.manager._ValueMixin", null, { // summary: // Form manager's mixin for getting/setting form values in the unified manner. // description: // This m...
PypiClean
/GoogleCalendarV3-0.1.7.tar.gz/GoogleCalendarV3-0.1.7/google_calendar_v3/google_calendar_v3.py
__author__ = 'static@siftcal.com (Ashutosh Priyadarshy)' from requests_oauthlib import OAuth2Session class GoogleCalendarAPI(object): def __init__(self, client_id=None, client_secret=None, acc_token=None, ref_token=None, expires_in=None, token_updater=None): """Construc...
PypiClean
/BlazeWeb-0.6.2-py3-none-any.whl/blazeweb/templating/jinja.py
from __future__ import with_statement from __future__ import absolute_import import logging from os import path from jinja2 import Environment, TemplateNotFound, BaseLoader, \ Template as j2Template, contextfilter from jinja2.utils import Markup from blazeweb.globals import settings from blazeweb.hierarchy import...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/conf/conf_files.py
from __future__ import print_function, division import warnings import numpy as np from astropy import log as logger from astropy.extern import six from ..util.functions import FreezableClass, bool2str, str2bool, is_numpy_array from ..filter import Filter class OutputConf(FreezableClass): def __init__(self): ...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/Entity.py
from __future__ import absolute_import, division from __future__ import print_function, unicode_literals from _MOM import MOM from _TFL import TFL import _MOM._Attr.Kind import _MOM._Attr.Manager import _MOM._Attr.Spec import _MOM._Attr.Type import _MOM._Meta.M_Entity im...
PypiClean
/NehorayRapid1-0.0.1-py3-none-any.whl/RapidBaseNe/Basic_Import_Libs.py
import easydict from easydict import EasyDict import PIL from PIL import Image import argparse import os import numpy import numpy as np import math import glob from glob import glob import random import importlib import collections from collections import OrderedDict import sys from datetime import datetime import cv2...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/CoroutineCodes.py
from .CodeHelpers import ( generateChildExpressionsCode, generateStatementSequenceCode, withObjectCodeTemporaryAssignment, ) from .Emission import SourceCodeCollector from .ErrorCodes import getErrorExitCode from .FunctionCodes import ( finalizeFunctionLocalVariables, getClosureCopyCode, getFunc...
PypiClean
/Flask-Monitoring-1.1.2.tar.gz/Flask-Monitoring-1.1.2/flask_monitoringdashboard/database/data_grouped.py
from numpy import median from flask_monitoringdashboard.database import Request def get_data_grouped(db_session, column, func, *where): """ Return the data for a specific endpoint. The result is grouped on column :param db_session: session for the database :param column: the column that is used for group...
PypiClean
/BladePy-0.1.3.zip/BladePy-0.1.3/bladepy_packages/data_structure/case_model.py
from PyQt4 import QtCore, QtGui from occ_modules.shape_properties import shape_colorlist, shape_colordictionary, shape_colordictionaryhex class CaseModel(QtCore.QAbstractItemModel): """ This is a creation of a model for the tree view list. It inherits the basic QAbstractItemModel classThe QAbstractItemMo...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/nls/dijit-all_ru.js
require({cache:{ 'dijit/form/nls/ru/validate':function(){ define( //begin v1.x content ({ invalidMessage: "Указано недопустимое значение.", missingMessage: "Это обязательное значение.", rangeMessage: "Это значение вне диапазона." }) //end v1.x content ); }, 'dijit/_editor/nls/ru/commands':function(){ define( //begi...
PypiClean
/Fabric39-1.15.3.post1.tar.gz/Fabric39-1.15.3.post1/sites/docs/tutorial.rst
===================== Overview and Tutorial ===================== Welcome to Fabric! This document is a whirlwind tour of Fabric's features and a quick guide to its use. Additional documentation (which is linked to throughout) can be found in the :ref:`usage documentation <usage-docs>` -- please make sure to check it...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/views/decorators/debug.py
from functools import wraps from django.http import HttpRequest def sensitive_variables(*variables): """ Indicate which variables used in the decorated function are sensitive so that those variables can later be treated in a special way, for example by hiding them when logging unhandled exceptions. ...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/deploy/environment.py
import logging as _logging import sys as _sys import graphlab as _gl from . import _internal_utils from ._artifact import Artifact as _Artifact from graphlab.util import _raise_error_if_not_of_type # We keep track of version. # ----------------------------------------------------------------------------- # # Version ...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/phylogenetics/collapse_by_support.py
__author__ = 'Sergei F. Kliver' import argparse from ete2 import Tree parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_tree_file", action="store", dest="input_tree_file", help="File with input trees to collapse") parser.add_argument("-o", "--output_tree_file", action="store...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/core/mod.py
from .function import Function from .numbers import nan class Mod(Function): """Represents a modulo operation on symbolic expressions. Receives two arguments, dividend p and divisor q. The convention used is the same as Python's: the remainder always has the same sign as the divisor. Examples ...
PypiClean
/BigchainDB-2.2.2.tar.gz/BigchainDB-2.2.2/bigchaindb/backend/connection.py
import logging from importlib import import_module from itertools import repeat import bigchaindb from bigchaindb.backend.exceptions import ConnectionError from bigchaindb.backend.utils import get_bigchaindb_config_value, get_bigchaindb_config_value_or_key_error from bigchaindb.common.exceptions import ConfigurationE...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/framework/middleware/functional/collector.py
from typing import TYPE_CHECKING, Callable, List, Tuple, Any from functools import reduce import treetensor.torch as ttorch from ding.envs import BaseEnvManager from ding.policy import Policy from ding.torch_utils import to_ndarray, get_shape0 if TYPE_CHECKING: from ding.framework import OnlineRLContext class Tr...
PypiClean
/GenMotion-0.0.4-py3-none-any.whl/genmotion/algorithm/action2motion/models/motion_vae.py
import torch import torch.nn as nn class GaussianGRU(nn.Module): def __init__(self, input_size, output_size, hidden_size, n_layers, batch_size, device): super(GaussianGRU, self).__init__() self.input_size = input_size self.output_size = output_size self.hidden_size = hidden_size ...
PypiClean
/Imap-CLI-0.7.tar.gz/Imap-CLI-0.7/imap_cli/scripts/imap_shell.py
import argparse import cmd import datetime import logging import os import sys import tempfile import threading import time import webbrowser import docopt import imap_cli from imap_cli import config from imap_cli import const from imap_cli import copy from imap_cli import fetch from imap_cli import flag from imap_cl...
PypiClean
/L_SpaceCurves-0.0.8.tar.gz/L_SpaceCurves-0.0.8/L_SpaceCurves/L_SpaceCurves.py
import turtle import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D class L_SpaceCurves(): import turtle def __init__(self, leng=None, letter='S', iter=1, speed=0, tipe=None, origin=(0, 0)): self.len = leng self.speed = speed self.tipe = tipe ...
PypiClean
/Devoir-0.1.1.tar.gz/Devoir-0.1.1/README.rst
Devoir — Quickly set up a working environment to edit a file ============================================================ |sources| |pypi| |documentation| |license| When editing a LaTeX file, I want the file being edited with `vim <http://www.vim.org>`_, the compiled file displayed using a pdf viewer, and latex being...
PypiClean
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/utilities.py
import numpy as np import pandas as pd import scipy.sparse import sparse as sp import itertools import inspect from operator import getitem from collections import defaultdict, Counter from sklearn import clone from sklearn.base import TransformerMixin, BaseEstimator from sklearn.linear_model import LassoCV, MultiTaskL...
PypiClean
/CountryGoogleScraper-0.2.10.tar.gz/CountryGoogleScraper-0.2.10/GoogleScraper/selenium_mode.py
import tempfile import threading from urllib.parse import quote import json import datetime import time import math import re import sys import os try: from selenium import webdriver from selenium.common.exceptions import TimeoutException, WebDriverException from selenium.common.exceptions import ElementN...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/layout/ToggleSplitter.js
if(!dojo._hasResource["dojox.layout.ToggleSplitter"]){ dojo._hasResource["dojox.layout.ToggleSplitter"]=true; dojo.provide("dojox.layout.ToggleSplitter"); dojo.experimental("dojox.layout.ToggleSplitter"); dojo.require("dijit.layout.BorderContainer"); dojo.declare("dojox.layout.ToggleSplitter",[dijit.layout._Splitter],{...
PypiClean
/Internet-in-a-Box-0.5.10.tar.gz/Internet-in-a-Box-0.5.10/iiab/iso639.py
iso6392 = { "roh": { "terminologic": "", "alpha2": "rm", "french": "romanche", "bibliographic": "roh", "english": "Romansh" }, "gv": { "terminologic": "", "alpha2": "gv", "french": "manx; mannois", "bibliographic": "glv", ...
PypiClean
/DiPAS-2.0.tar.gz/DiPAS-2.0/README.md
<div align="center"> <a href="https://gitlab.com/Dominik1123/dipas"> <img alt="dipas-logo" src="https://gitlab.com/Dominik1123/dipas/-/raw/develop/logo/logo.png" width="30%" style="display: block; margin-left: auto; margin-right: auto;" > </a> </div> [![pipeline](https://git...
PypiClean
/MFD%20Floods-0.1.14.tar.gz/MFD Floods-0.1.14/bin/rgb2pct.py
import os.path import sys from osgeo import gdal def Usage(): print('Usage: rgb2pct.py [-n colors | -pct palette_file] [-of format] source_file dest_file') sys.exit(1) def DoesDriverHandleExtension(drv, ext): exts = drv.GetMetadataItem(gdal.DMD_EXTENSIONS) return exts is not None and exts.lower()....
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/toolPanel/columnSelectionPanel.ts
module awk.grid { var utils = Utils; var svgFactory = SvgFactory.getInstance(); export class ColumnSelectionPanel { private gridOptionsWrapper: GridOptionsWrapper; private columnController: ColumnController; private cColumnList: any; layout: any; private eRootPane...
PypiClean
/BioCompass-0.9.2.tar.gz/BioCompass-0.9.2/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/latchsdk-1.0.0.zip/latch-1.0.0/latch.py
import json import logging class Error(object): def __init__(self, json_data): ''' Constructor ''' self.code = json_data['code'] self.message = json_data['message'] def get_code(self): return self.code def get_message(self): ...
PypiClean
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/widgets/gui/ow_srw_optical_element.py
import os, numpy from numpy import nan from PyQt5.QtCore import Qt from PyQt5.QtGui import QPalette, QColor, QFont, QPixmap from PyQt5.QtWidgets import QMessageBox, QDialogButtonBox, QDialog, QLabel, QSizePolicy import orangecanvas.resources as resources from orangewidget import gui from orangewidget import widget f...
PypiClean
/3d-converter-0.9.0.tar.gz/3d-converter-0.9.0/models_converter/formats/wavefront/writer.py
from models_converter.formats.universal import Scene from models_converter.interfaces import WriterInterface class Writer(WriterInterface): def __init__(self): self.writen = '' self.temp_vertices_offsets = { 'POSITION': 0, 'TEXCOORD': 0, 'NORMAL': 0 } ...
PypiClean