id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/OSolntseva_client-0.0.1.tar.gz/OSolntseva_client-0.0.1/client/client/client_database.py
import datetime import os 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 traceback try: class ClientDatabase: ''' Класс - оболочка для работы с базо...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/deploy.sh
set -e # Exit with nonzero exit code if anything fails SOURCE_BRANCH="master" TARGET_BRANCH="gh-pages" function doCompile { cd site/_themes yarn yarn build mv dist/js ../assets/js/themes cd ../assets/js/themes FILE=../../../_includes/themes.html echo "" > $FILE for f in *.js; do ...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/interop/entrez.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/DocUp-0.5.tar.gz/DocUp-0.5/docup.py
# docup- a script that uses Markdown to make HTML 4 files from plaintext # files in Markdown format and zip them up for uploading to pypi. # # See the Readme for pre-requisites and install info. # # Author: Anthony Darius Bashi # email: bashia@uvic.ca import sys import os import socket import httplib import base64 im...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/writers/outputparameters.py
class outputparameters(object): boolean_attribues = [ 'omit_xml_declaration', 'standalone', 'indent', 'byte_order_mark', 'canonical_form', ] string_attributes = [ 'method', 'version', 'encoding', 'doctype_system', 'doctype_public', 'media_type', ] sequence_att...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/tools/verifuzz.py
from benchexec.tools.sv_benchmarks_util import get_data_model_from_task, ILP32, LP64 import benchexec.tools.template import benchexec.result as result class Tool(benchexec.tools.template.BaseTool2): """ VeriFuzz """ def executable(self, tool_locator): return tool_locator.find_executable("ver...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/methods/messages/search_messages.py
from typing import Union, List, AsyncGenerator, Optional import pyrogram from pyrogram import raw, types, utils, enums # noinspection PyShadowingBuiltins async def get_chunk( client, chat_id: Union[int, str], query: str = "", filter: "enums.MessagesFilter" = enums.MessagesFilter.EMPTY, offset: i...
PypiClean
/DAQBrokerServer-0.0.2-py3-none-any.whl/dataAPI.py
import time import json import traceback import multiprocessing import sqlite3 from sqlalchemy import text from sqlalchemy import bindparam from flask import Blueprint from flask import request from flask import render_template from flask import session from flask import jsonify from flask import current_app from flask...
PypiClean
/GPGame-2020.0.2.tar.gz/GPGame-2020.0.2/README.md
# GPGame GPGame is an abstraction layer on the Kivy GPU accelerated engine. ## Installation To install GPGame with pip, run the following command. ```bash python3 -m pip install GPGame ``` To install GPGame from github, run the following command. ```bash python3 -m pip install git+https://github.com/Nv7-GitHub/GPGame....
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/iron-behaviors/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/iron-behaviors/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 ...
PypiClean
/AppNexus-client-0.8.1.tar.gz/AppNexus-client-0.8.1/docs/source/reference.rst
API reference ############# Client ====== .. automodule:: appnexus.client :members: :undoc-members: Cursor ====== .. automodule:: appnexus.cursor :members: :undoc-members: Exceptions ========== .. automodule:: appnexus.exceptions :members: :undoc-members: Model ===== .. automodule:: appn...
PypiClean
/KratosFluidDynamicsApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/FluidDynamicsApplication/symbolic_generation/compressible_navier_stokes/compressible_navier_stokes_symbolic_generator.py
import sympy import KratosMultiphysics import KratosMultiphysics.sympy_fe_utilities as KratosSympy from KratosMultiphysics.FluidDynamicsApplication.symbolic_generation.compressible_navier_stokes.src import generate_convective_flux from KratosMultiphysics.FluidDynamicsApplication.symbolic_generation.compressible_navier...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/reg/lag/create.py
from typing import Optional from functools import partial import pandas as pd from dero.ext_pandas import _to_list_if_str from dero.ext_pandas.filldata import add_missing_group_rows, drop_missing_group_rows def create_lagged_variables(df, lag_cols, id_col: Optional[str] = None, date_col='Date', num_lags=1, ...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/bitcoin.py
import hashlib from typing import List, Tuple, TYPE_CHECKING, Optional, Union from enum import IntEnum from .util import bfh, bh2u, BitcoinException, assert_bytes, to_bytes, inv_dict from . import version from . import segwit_addr from . import constants from . import ecc from .crypto import sha256d, sha256, hash_160...
PypiClean
/APIAlchemy-1.3.1.tar.gz/APIAlchemy-1.3.1/src/apialchemy/vendors/appdynamics/__init__.py
import os import re import urllib3 from urllib import parse from appd.request import AppDynamicsClient from .. import BaseService class Service(BaseService): application = None def __init__(self, scheme, conn_str): super(Service, self).__init__(scheme, conn_str) pattern = re.compile( ...
PypiClean
/ImoT_tools-1.2.0.tar.gz/ImoT_tools-1.2.0/imot_tools/io/plot.py
import pathlib import matplotlib.axes as axes import matplotlib.colors as colors import matplotlib.cm as cm import mpl_toolkits.axes_grid1 as ax_grid import pandas as pd import pkg_resources as pkg import imot_tools.util.argcheck as chk @chk.check(dict(name=chk.is_instance(str), N=chk.allow_None(chk.is_integer))) d...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Converter/BackendConverter.py
import numpy as np import copy import warnings from grid2op.dtypes import dt_float, dt_int from grid2op.Backend import Backend from grid2op.Exceptions import Grid2OpException, BackendError ERROR_NB_ELEMENTS = ( "Impossible to make a BackendConverter with backends having different number of {}." ) ERROR_ELEMENT_C...
PypiClean
/NDBC-1.2.0.tar.gz/NDBC-1.2.0/docs/html/readme.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> <title>NDBC &#8212; NDBC 1.1.1 documentation</title> <link rel="stylesheet" t...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/ui/dom/Toolbar.js.uncompressed.js
define("dojox/drawing/ui/dom/Toolbar", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.drawing.ui.dom.Toolbar"); dojo.deprecated("dojox.drawing.ui.dom.Toolbar", "It may not even make it to the 1.4 release.", 1.4); (function(){ dojo.declare("dojox.drawing.ui.dom.Toolbar", [], { // NOTE: ...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/FoundationClassifier/models/sknet.py
import torch from torch import nn #from thop import profile #from thop import clever_format class SKConv(nn.Module): def __init__(self, features, M=2, G=32, r=16, stride=1 ,L=32): """ Constructor Args: features: input channel dimensionality. M: the number of branchs. ...
PypiClean
/DynaMIT-1.1.5.tar.gz/DynaMIT-1.1.5/dynamit/utils.py
from __future__ import print_function from __future__ import division from builtins import range, str, zip from Bio import SeqIO from Bio.Alphabet import IUPAC from numpy import array, log, sqrt, mean from sklearn import metrics import matplotlib.cm as cmx import matplotlib.colors as colors def getClassInstance(ful...
PypiClean
/Moshu_QtMesseger_server-0.1-py3-none-any.whl/server/common/metaclasses.py
import dis class ServerMaker(type): ''' Метакласс, проверяющий что в результирующем классе нет клиентских вызовов таких как: connect. Также проверяется, что серверный сокет является TCP и работает по IPv4 протоколу. ''' def __init__(cls, clsname, bases, clsdict): # Список методов, кото...
PypiClean
/OASYS1-WOFRY-1.0.41.tar.gz/OASYS1-WOFRY-1.0.41/orangecontrib/wofry/widgets/beamline_elements/ow_ideal_lens.py
import numpy from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from syned.beamline.optical_elements.ideal_elements.ideal_lens import IdealLens from wofryimpl.beamline.optical_elements.ideal_elements.ideal_lens import WOIdealLens from orangecontri...
PypiClean
/FuzzManager-0.5.1-py3-none-any.whl/Reporter/Reporter.py
import functools import logging import os import platform import time from abc import ABC import requests import requests.exceptions from FTB.ConfigurationFiles import ConfigurationFiles LOG = logging.getLogger(__name__) def remote_checks(wrapped): """Decorator to perform error checks before using remote featu...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/StatusBar.js
define("dojox/editor/plugins/StatusBar",["dojo","dijit","dojox","dijit/_Widget","dijit/_TemplatedMixin","dijit/_editor/_Plugin","dojo/_base/connect","dojo/_base/declare","dojox/layout/ResizeHandle"],function(_1,_2,_3){ _1.experimental("dojox.editor.plugins.StatusBar"); _1.declare("dojox.editor.plugins._StatusBar",[_2._...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-th-TH.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/IIN_Enum-0.0.0.6-py3-none-any.whl/IIN_Enum-0.0.0.6.dist-info/LICENSE.md
Attribution-NonCommercial-ShareAlike 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a law...
PypiClean
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/test/unit/evaluate_basis/cppcode.py
"This module provides simple C++ code for verification of UFC code." # Copyright (C) 2010 Kristian B. Oelgaard # # This file is part of FFC. # # FFC is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, eith...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/reddit_handler/reddit_handler.py
import praw import pandas as pd from datetime import datetime from mindsdb.integrations.libs.api_handler import APIHandler from mindsdb.integrations.libs.response import ( HandlerStatusResponse as StatusResponse, HandlerResponse as Response, RESPONSE_TYPE ) from mindsdb.utilities.config import Config from m...
PypiClean
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/analysis/plot3DNetwork.py
from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import argparse # import matplotlib.pyplot as plt # from mpl_toolkits.mplot3d import Axes3D from AdaptivePELE.utilities import utilities def parseArgs(): desc = "Write the conformation network to a PDB file\n" ...
PypiClean
/OCAICM-0.0.2.tar.gz/OCAICM-0.0.2/script/graph_model.py
import time import gc from dgl.data.utils import Subset import pandas as pd from dgl.data.chem import csv_dataset, smiles_to_bigraph, MoleculeCSVDataset from gnn_utils import AttentiveFPBondFeaturizer, AttentiveFPAtomFeaturizer, collate_molgraphs, \ EarlyStopping, set_random_seed, Meter from torch.nn import BCEWith...
PypiClean
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/parse/uvvis.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import re from ..model import Compound, UvvisSpectrum, UvvisPeak from .common import hyphen from .base import BaseParser from ..utils import first from .ac...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_account_body_line_edit.py
from msrest.serialization import Model class BillAccountBodyLineEdit(Model): """BillAccountBodyLineEdit. All required parameters must be populated in order to send to Azure. :param body_line_id: The bodyline's id for an existing bodyline <span class='property-internal'>Required (defined)</span> ...
PypiClean
/Naun-0.0.7.tar.gz/Naun-0.0.7/README.md
# Nuan This is a standard package created in python for the use of facial-detection and facial-recognition. Moreover, you'll need the following mentioned liberaries in your system: cv2, dlib, face_recognition, time, os, sys, pkg_resources, numpy & PIL. The code works around importing a picture, and verifying it with...
PypiClean
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/examples/legacy/README.md
# Legacy Examples The scripts and instructions here are for torchdistill <= v0.3.3. ## 1. ImageNet (ILSVRC 2012): Image Classification ### 1.1 Download the datasets As the terms of use do not allow to distribute the URLs, you will have to create an account [here](http://image-net.org/download) to get the URLs, and rep...
PypiClean
/CS333-Final-Project-0.0.12.tar.gz/CS333-Final-Project-0.0.12/README.md
# CS333 Final Project [![image](https://img.shields.io/badge/-PyPI-brightgreen)](https://pypi.org/project/CS333-Final-Project/) CS333 Testing and DevOps Final Project Author: Colin Martires Date: 4/30/2023 ## Technologies Used * Testing Framework * Python unittest * Source Control * GitHub * Package D...
PypiClean
/OTPpy-0.1.2.tar.gz/OTPpy-0.1.2/README.md
OTPpy ===== OTP library for Python 3 : HOTP and TOTP ( RFC4226 &amp; RFC6238 ) Easy to use OTP 2FA check and generator, counter-based or time-based * Fully compatible with standards * Can manage 4 to 8 digits * Can manage SHA1, SHA256 or SHA512 hash functions (as in RFC6238) Compatible with Google Authenticator (de...
PypiClean
/Actflow-0.2.3.1-py3-none-any.whl/tools/max_t.py
import numpy as np import scipy.stats as stats import multiprocessing as mp from statsmodels.distributions.empirical_distribution import ECDF from functools import partial def max_t(input_arr, nullmean=0, alpha=.05, tail=2, permutations=1000, nproc=1, pvals=True, output_nulldist=False, nan_policy='propagate'): "...
PypiClean
/GlobalPayments.Api-1.0.9.tar.gz/GlobalPayments.Api-1.0.9/globalpayments/api/builders/__init__.py
from globalpayments.api import ServicesContainer from globalpayments.api.builders.validations import Validations from globalpayments.api.entities import ( Address, TransactionReference, ) from globalpayments.api.entities.enums import ( AddressType, PaymentMethodType, ReportType, TransactionModif...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pkg_resources/_vendor/six.py
# Copyright (c) 2010-2015 Benjamin Peterson # # 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
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/it.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","it",{euro:"Simbolo Euro",lsquo:"Virgoletta singola sinistra",rsquo:"Virgoletta singola destra",ldquo:"Virgolette a...
PypiClean
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/instrumental/drivers/cameras/pixelfly.py
from future.utils import PY2 import os.path import numpy as np from scipy.interpolate import interp1d import win32event from nicelib import NiceLib, Sig, NiceObject, load_lib, RetHandler from . import Camera from .. import ParamSet from ..util import check_units from ...errors import Error, TimeoutError, LibError fr...
PypiClean
/MTGA-0.9.5-py3-none-any.whl/mtga/set_data/arenasup.py
import sys from mtga.models.card import Card from mtga.models.card_set import Set import inspect FactoryofMomirVig = Card(name="factory_of_momir_vig", pretty_name="Factory of Momir Vig", cost=[], color_identity=[], card_type="Artifact", sub_types="", abilities=[121336...
PypiClean
/ConfigValidator-0.2.0.tar.gz/ConfigValidator-0.2.0/configvalidator/tools/exceptions.py
from six import string_types class ConfigValidatorException(Exception): """ base class for all ConfigValidator Exceptions """ def __init__(self, error_msg, exception=None): assert isinstance(error_msg, string_types) assert isinstance(exception, Exception) or exception is None ...
PypiClean
/Eupompos-0.1.1-py3-none-any.whl/eupompos/pyparserstate.py
# something's wrong with the way pylint understands the import statement : # pylint: disable=import-error import copy from eupompos.pyfuncdecl import FunctionDeclaration ################################################################################ class DocstringsBlock(object): """ DocstringsBlock cla...
PypiClean
/Auto_FOX-1.0.0b1-py3-none-any.whl/FOX/armc/schemas.py
from __future__ import annotations import os from functools import partial from collections import abc from typing import ( Any, SupportsInt, Type, Mapping, Collection, Sequence, SupportsFloat, Generator, Callable, Union, Optional, Tuple, FrozenSet, Iterable, Dict, TypeVar, List, cast, TYPE_CHECKING, ) im...
PypiClean
/GBT_parser-1.0.3-py3-none-any.whl/cantools/autosar/end_to_end.py
from typing import Optional, Union import crccheck # type: ignore from ..database.can.message import Message def compute_profile2_crc(payload : Union[bytes, bytearray], msg_or_data_id: Union[int, Message]) -> Optional[int]: """Compute the CRC checksum for profile 2 of the AUTOSAR end-...
PypiClean
/KolejkaJudge-0.1.202211021413-py3-none-any.whl/kolejka/judge/tasks/build/base.py
import shlex from kolejka.judge import config from kolejka.judge.paths import * from kolejka.judge.typing import * from kolejka.judge.validators import * from kolejka.judge.commands import * from kolejka.judge.tasks.base import TaskBase __all__ = [ 'BuildTask', 'SolutionBuildTask', 'ToolBuildTask', ...
PypiClean
/IPRA-3.17.51-py3-none-any.whl/ipra/Model/Robot/bocgRobot.py
import time from bs4 import BeautifulSoup from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.wait import WebDriverWait import ...
PypiClean
/MyAutoman-1.7.3.tar.gz/MyAutoman-1.7.3/Automan/Automan_model_params_opt.py
import pandas as pd import numpy as np import xgboost as xgb import lightgbm as lgb import random import warnings from hyperopt import hp, fmin, tpe, Trials from matplotlib import pyplot as plt from scipy.stats import ks_2samp from sklearn.linear_model import LogisticRegression from scipy import stats import re from pa...
PypiClean
/Muphoten-0.1.0.tar.gz/Muphoten-0.1.0/muphoten/mosaic.py
import shutil, subprocess import numpy as np from astropy.io import fits from muphoten.astrometry import scamp from muphoten.utils import rm_p def create_mosaic(file_list, inputimage, outputDir, outName, config, useweight=False, verbose='NORMAL', astrometry=False): """Create a ...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/flask/mongo_sessions.py
import re from datetime import datetime from bson.objectid import ObjectId try: import cPickle as pickle except ImportError: import pickle from itsdangerous import Signer, BadSignature, want_bytes from flask.sessions import SessionMixin from werkzeug.datastructures import CallbackDict from flask.sessions imp...
PypiClean
/Grammaticomastix-0.0.1rc2-py3-none-any.whl/grammaticomastix/dchars/languages/lat/dcharacter.py
# problem with Pylint : # pylint: disable=E0611 # many errors like "No name 'extensions' in module 'dchars'" from dchars.errors.errors import DCharsError from dchars.utilities.sortingvalue import SortingValue from dchars.dcharacter import DCharacterMotherClass from dchars.languages.lat.symbols import SYMB_DIACRITICS f...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/vtc/invoice_list.py
from util import * from electrum_vtc.i18n import _ from electrum_vtc.util import block_explorer_URL, format_satoshis, format_time from electrum_vtc.plugins import run_hook class InvoiceList(MyTreeWidget): filter_columns = [0, 1, 2, 3] # Date, Requestor, Description, Amount def __init__(self, parent): ...
PypiClean
/BasicLibrary.PY-0.5.12.tar.gz/BasicLibrary.PY-0.5.12/BasicLibrary/io/fileHelper.py
import os import pathlib import shutil from BasicLibrary.data.randomHelper import RandomHelper from BasicLibrary.enums import RandomEnum from BasicLibrary.io.pathHelper import PathHelper class FileHelper: """ """ @staticmethod def get_base_name(file_name): """ 获取给定路径的文件名称部分(带扩展名) ...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/particles/particles.js
var pJS = function (tag_id, params) { var canvas_el = document.querySelector('#' + tag_id + ' > .particles-js-canvas-el'); /* particles.js variables with default values */ this.pJS = { canvas: { el: canvas_el, w: canvas_el.offsetWidth, h: canvas_el.offsetHeight ...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/OWAnnotateProjection.py
from enum import IntEnum from types import SimpleNamespace from typing import Dict, Tuple, Optional from itertools import chain import numpy as np import pyqtgraph as pg from AnyQt.QtGui import QColor from AnyQt.QtCore import Qt, QRectF, QObject from Orange.data import Table, Domain, DiscreteVariable, ContinuousVari...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/DataComposerInterface.py
import os import subprocess import sys from nuitka.containers.OrderedDicts import OrderedDict from nuitka.Options import isExperimental from nuitka.Tracing import data_composer_logger from nuitka.utils.Execution import withEnvironmentVarsOverridden from nuitka.utils.FileOperations import changeFilenameExtension, getFi...
PypiClean
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/web3/_utils/events.py
from abc import ( ABC, abstractmethod, ) import itertools from eth_abi import ( decode_abi, decode_single, encode_single, ) from eth_utils import ( encode_hex, event_abi_to_log_topic, is_list_like, keccak, to_dict, to_hex, to_tuple, ) import web3 from web3._utils.encodi...
PypiClean
/DeltaPI_FantasticFour-1.0.0-py3-none-any.whl/DeltaPI/AutoDiff/AutoDiff.py
import numpy as np class AutoDiff(): ''' Class to use for automatic differentiation, forward mode Addresses the following need. 1) The user has some function which maps some number of input variables, for example x and y, to a single output value, f(x,y). 2) The user would like to calculate ...
PypiClean
/Charisma_toolbox-0.0.2-py3-none-any.whl/orangecontrib/extension/utils/owplotguiAKWeller.py
import os from AnyQt.QtWidgets import ( QWidget, QToolButton, QVBoxLayout, QHBoxLayout, QGridLayout, QMenu, QAction, QSizePolicy, QLabel, QStyledItemDelegate, QStyle, QListView ) from AnyQt.QtGui import QIcon, QColor, QFont from AnyQt.QtCore import Qt, pyqtSignal, QSize, QRect, QPoint, QMimeData from Orange.d...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/el.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/Flask-Dance-7.0.0.tar.gz/Flask-Dance-7.0.0/docs/providers.rst
Providers ========= Flask-Dance comes with pre-set OAuth consumer configurations for a few popular OAuth providers. Flask-Dance also works with providers that aren't in this list: see the :ref:`Custom <custom-provider>` section at the bottom of the page. We also welcome pull requests to add new pre-set provider configu...
PypiClean
/MNN_FMA-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl/MNN/tools/mnn_fb/Normalize.py
# namespace: MNN import flatbuffers class Normalize(object): __slots__ = ['_tab'] @classmethod def GetRootAsNormalize(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Normalize() x.Init(buf, n + offset) return x # Normalize ...
PypiClean
/BUDEFF-1.0.0.tar.gz/BUDEFF-1.0.0/src/budeff/force_field.py
import json import pathlib import warnings from .calculate_energy import PyAtomData def assign_force_field(ampal_obj, ff): """Assigns force field parameters to Atoms in the AMPAL object. Parameters ---------- ampal_obj : AMPAL Object Any AMPAL object with a `get_atoms` method. ff: BuffF...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_plotters/artists/networkartist.py
from typing import Dict from typing import Tuple from typing import List from typing import Union from typing import Optional from typing_extensions import Literal from matplotlib.collections import LineCollection, PatchCollection from matplotlib.patches import Circle from compas.datastructures import Network from co...
PypiClean
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/participant_1_1_0.py
from protocols.protocol import ProtocolElement from protocols.protocol import SearchRequest from protocols.protocol import SearchResponse from protocols.protocol import avro_parse import avro.schema version = '1.1.0' class AdoptedStatus(object): """ adoptedin means adopted into the family adoptedout mea...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/action_list_response.py
import re # noqa: F401 import sys # noqa: F401 from openapi_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
/IBATS_Common-0.20.11-py3-none-any.whl/ibats_common/example/ma_cross_stg.py
from ibats_common.common import BacktestTradeMode, ContextKey, Direction, CalcMode from ibats_common.strategy import StgBase from ibats_common.strategy_handler import strategy_handler_factory from ibats_local_trader.agent.md_agent import * from ibats_local_trader.agent.td_agent import * logger = logging.getLogger(__na...
PypiClean
/Cryptonet-0.0.5.tar.gz/Cryptonet-0.0.5/cryptonet/__init__.py
from spore import Spore # from . import defaultStructures from cryptonet.seeknbuild import SeekNBuild from cryptonet.chain import Chain from cryptonet.utilities import global_hash from cryptonet.database import Database from cryptonet.errors import ValidationError from cryptonet.datastructs import * from cryptonet.mine...
PypiClean
/Nano-Utils-2.3.4.tar.gz/Nano-Utils-2.3.4/nanoutils/hdf5_utils.py
from __future__ import annotations import sys import abc from collections import Counter from collections.abc import Generator, MappingView, Iterator, Iterable, Set as AbstractSet from typing import NoReturn, ClassVar, Any, TypeVar, Generic, TYPE_CHECKING if sys.version_info >= (3, 9): from collections.abc import...
PypiClean
/Makima-0.1.9.1-py3-none-any.whl/makima/mac/call_mac_api/KeyCodes.py
class KeyCodes: kVK_ANSI_A = 0x00 kVK_ANSI_S = 0x01 kVK_ANSI_D = 0x02 kVK_ANSI_F = 0x03 kVK_ANSI_H = 0x04 kVK_ANSI_G = 0x05 kVK_ANSI_Z = 0x06 kVK_ANSI_X = 0x07 kVK_ANSI_C = 0x08 kVK_ANSI_V = 0x09 kVK_ANSI_B = 0x0B kVK_ANSI_Q = 0x0C kVK_ANSI_W = 0x0D kVK_ANSI_E = 0...
PypiClean
/FE_777-0.0.0.tar.gz/FE_777-0.0.0/FE_777/FE_777.py
import numpy as np import pandas as pd import os, sys, gc, time, datetime # merge inplace def pd_merge(d1, d2, on, how = 'left'): keys = on if type(on) is list else [on] d2 = d1[keys].merge(d2, on = keys, how = how) # uid in d2 must unique if len(d2) != len(d1): print('[***] error, uid in d2 is not...
PypiClean
/Downpour-0.2.tar.gz/Downpour-0.2/downpour/web/work.py
from downpour.web import common, auth from twisted.web import static, server import os, shutil class Root(common.AuthenticatedResource): def __init__(self, *args, **kwargs): common.AuthenticatedResource.__init__(self, *args, **kwargs) def getChild(self, path, request): if not self.is_logged_i...
PypiClean
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_198212.py
from __future__ import unicode_literals name = '198212' division_schema = { '110000': '北京市', '110101': '东城区', '110102': '西城区', '110103': '崇文区', '110104': '宣武区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110110': '燕山区', '11022...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/plugins/filter/_FilterExpr.js
define("dojox/grid/enhanced/plugins/filter/_FilterExpr",["dojo/_base/declare","dojo/_base/lang","dojo/date","./_DataExprs"],function(_1,_2,_3,_4){ var _5=_1("dojox.grid.enhanced.plugins.filter.LogicAND",_4._BiOpExpr,{_name:"and",_calculate:function(_6,_7,_8,_9){ var _a=_6.applyRow(_8,_9).getValue()&&_7.applyRow(_8,_9)....
PypiClean
/Easy_GRID-0.0.13.tar.gz/Easy_GRID-0.0.13/Easy_GRID/GUI_Anchor.py
import numpy as np from .GUI_ClassFun import * from .CPU_ClassFun import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * class Panel_Anchor(QWidget): def __init__(self, img, map): super().__init__() self.setMouseTracking(True) self.zoom = 1 '''at...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/nightingale.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 nightingale(path): """Florence Nightingale's data on deaths from various causes in the Crimea...
PypiClean
/githubkit-0.10.7-py3-none-any.whl/githubkit/auth/oauth.py
from time import sleep from dataclasses import field, dataclass from datetime import datetime, timezone, timedelta from typing import ( TYPE_CHECKING, Any, Dict, List, Union, Callable, ClassVar, Optional, Coroutine, Generator, AsyncGenerator, cast, ) import httpx from g...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/@popperjs/core/lib/createPopper.js
import getCompositeRect from "./dom-utils/getCompositeRect.js"; import getLayoutRect from "./dom-utils/getLayoutRect.js"; import listScrollParents from "./dom-utils/listScrollParents.js"; import getOffsetParent from "./dom-utils/getOffsetParent.js"; import getComputedStyle from "./dom-utils/getComputedStyle.js"; import...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/429.1740ba41553de85e3d49.min.js
(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[429],{429:function(e){e.exports=function(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override pa...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/classes/ui/Menu.js
(function(tinymce) { var is = tinymce.is, DOM = tinymce.DOM, each = tinymce.each, walk = tinymce.walk; /** * This class is base class for all menu types like DropMenus etc. This class should not * be instantiated directly other menu controls should inherit from this one. * * @class tinymce.ui.Menu * @exten...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/ug-CN.js
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: 'جەزملەش', clear: 'قۇرۇقداش' }, datepicker: { now: 'ھازىرقى ۋاقىت', today: 'بۈگۈن', cancel: 'بىكار قىلىش', clear: 'قۇرۇقداش', ...
PypiClean
/Flask-Exceptions-1.2.3.tar.gz/Flask-Exceptions-1.2.3/flask_exceptions/extension.py
from functools import wraps DEFAULT_PREFIX = 'exceptions' def exception(message): """Exception method convenience wrapper.""" def decorator(method): """Inner decorator so we can accept arguments.""" @wraps(method) def wrapper(self, *args, **kwargs): """Innermost decorato...
PypiClean
/OASYS1-WISEr-1.0.8.tar.gz/OASYS1-WISEr-1.0.8/orangecontrib/wise2/widgets/tools/ow_wise_wavefront_to_wofry.py
import numpy from PyQt5.QtWidgets import QApplication, QMessageBox from PyQt5.QtCore import QRect from orangewidget.settings import Setting from orangewidget import gui from oasys.widgets import gui as oasysgui from oasys.widgets.widget import AutomaticWidget from wofry.propagator.wavefront1D.generic_wavefront impo...
PypiClean
/FastFlask-1.2.32-py3-none-any.whl/jinja2/environment.py
import os import sys import typing import typing as t import weakref from collections import ChainMap from functools import lru_cache from functools import partial from functools import reduce from types import CodeType from markupsafe import Markup from . import nodes from .compiler import CodeGenerator from .compil...
PypiClean
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/constructors/jsuint16array.py
from ..base import * try: import numpy except: pass @Js def Uint16Array(): TypedArray = (PyJsInt8Array, PyJsUint8Array, PyJsUint8ClampedArray, PyJsInt16Array, PyJsUint16Array, PyJsInt32Array, PyJsUint32Array, PyJsFloat32Array, PyJsFloat64Array) a = arguments[0] ...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcommon/view/MultiModuleWindow.py
from qdarkstyle import DarkPalette from qtpy import QtCore, QtWidgets from .AboutDialog import AboutDialog from .CheckUpdatesDialog import CheckUpdatesDialog from .PickModulesDialog import PickModulesDialog class MultiModuleWindow(QtWidgets.QMainWindow): sigPickModules = QtCore.Signal() sigOpenUserDir = QtCo...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/gherkin/gherkin.js
// Following Objs from Brackets implementation: https://github.com/tregusti/brackets-gherkin/blob/master/main.js //var Quotes = { // SINGLE: 1, // DOUBLE: 2 //}; //var regex = { // keywords: /(Feature| {2}(Scenario|In order to|As|I)| {4}(Given|When|Then|And))/ //}; (function(mod) { if (typeof exports == "object"...
PypiClean
/Hack_IP-1.0.8-py3-none-any.whl/hackip/__main__.py
import socket import os import sys import re from colorama import Fore, Back, Style , init from termcolor import colored import platform import psutil from pyfiglet import Figlet from requests import get from geolite2 import geolite2 init() ''' Fore: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. Back...
PypiClean
/Mako-1.2.4.tar.gz/Mako-1.2.4/doc/build/inheritance.rst
.. _inheritance_toplevel: =========== Inheritance =========== .. note:: Most of the inheritance examples here take advantage of a feature that's new in Mako as of version 0.4.1 called the "block". This tag is very similar to the "def" tag but is more streamlined for usage with inheritance. Note that al...
PypiClean
/AutoReduce-0.2.0.tar.gz/AutoReduce-0.2.0/autoreduce/ode.py
from .system import System import numpy as np from sympy import lambdify from scipy.integrate import odeint import time class ODE(System): ''' To solve the Model using scipy.odeint ''' def __init__(self, x, f, params = None, C = None, g = None, h = None, u = None, params_values = None,...
PypiClean
/FlaskFarm-4.0.104-py3-none-any.whl/flaskfarm/lib/plugin/model_setting.py
import traceback from datetime import datetime from framework import F def get_model_setting(package_name, logger, table_name=None): class ModelSetting(F.db.Model): __tablename__ = '%s_setting' % package_name if table_name is None else table_name __table_args__ = {'mysql_collate': 'utf8_general_...
PypiClean
/GooseTypes-0.1.1.tar.gz/GooseTypes-0.1.1/doc/conf.tmpl.py
from datetime import date as _date import re as _re from textwrap import dedent as _dedent import docutils.parsers.rst as _rst # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.pat...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml/yaml/serializer.py
__all__ = ['Serializer', 'SerializerError'] from .error import YAMLError from .events import * from .nodes import * class SerializerError(YAMLError): pass class Serializer: ANCHOR_TEMPLATE = 'id%03d' def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tag...
PypiClean
/Fred-Frechet-1.14.5.tar.gz/Fred-Frechet-1.14.5/Fred/stabbing.py
import numpy as np import math from scipy import optimize import random def rejection_sampling(dim, radius, center, n): points = [] if radius == 0: points.append(center) else: for i in range(n): while True: p = np.random.uniform(low=0.0, high=1.0, size=dim) * 2 -...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/pt_BR.py
languages={'vi': 'vietnamita', 'el': 'grego', 'eo': 'esperanto', 'en': u'ingl\xeas', 'zh': u'chin\xeas', 'af': u'afric\xe2ner', 'sw': u'sua\xedli', 'ca': u'catal\xe3o', 'am': u'am\xe1rico', 'gu': 'guzarate', 'sv': 'sueco', 'cs': 'tcheco', 'ar': u'ar\xe1bico', 'mk': u'maced\xf4nio', 'ga': u'irland\xeas', 'eu': 'basco',...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/optimizers/fused_adam.py
import torch from PMTD.maskrcnn_benchmark.apex.apex.multi_tensor_apply import multi_tensor_applier class FusedAdam(torch.optim.Optimizer): """Implements Adam algorithm. Currently GPU-only. Requires Apex to be installed via ``pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cu...
PypiClean
/IMAPClient-2.3.1.zip/IMAPClient-2.3.1/imapclient/interact.py
# Copyright (c) 2020, Menno Smits # Released subject to the New BSD License # Please see http://en.wikipedia.org/wiki/BSD_licenses from __future__ import unicode_literals from getpass import getpass from optparse import OptionParser from six import iteritems from .config import parse_config_file, create_client_fr...
PypiClean
/CatKit-0.5.4-py3-none-any.whl/catkit/pawprint/operations.py
import numpy as np import networkx as nx def raw_properties( atoms=None, atoms_parameters=None, connectivity=None): """Return all atom properties without manipulation.""" fingerprint = np.concatenate(atoms_parameters) return fingerprint def periodic_convolution( atoms=No...
PypiClean