id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/model/imagedb.py
# 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 distributed in the hope that it will be useful, # bu...
PypiClean
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitFamilyBaseDataAnalysisCircularReferencing.py
import threading import os import RevitFamilyBaseDataUtils as rFamBaseDataUtils from timer import Timer import Result as res def _ExtractParentFamilies(currentParent, treePath): ''' Find the index of the match in the root tree, any entries in the root tree list with a lower index are parents Note: Chang...
PypiClean
/EagleVision-0.0.5.tar.gz/EagleVision-0.0.5/eaglevision/similarity_eagle.py
import os import os.path import datetime import time from pathlib import Path import pandas as pd from functiondefextractor import core_extractor from functiondefextractor import condition_checker from similarity.similarity_io import SimilarityIO from eaglevision.base_eagle import BaseEagle class SimilarityEagle(Bas...
PypiClean
/LEPL-5.1.3.zip/LEPL-5.1.3/src/lepl/bin/bits.py
# pylint: disable-msg=R0903 # using __ methods if bytes is str: print('Binary parsing unsupported in this Python version') else: STRICT = 'strict' class Int(int): ''' An integer with a length (the number of bits). This extends Python's type system so that we can distin...
PypiClean
/Flask-DebugToolbar-0.13.1.tar.gz/Flask-DebugToolbar-0.13.1/src/flask_debugtoolbar/static/codemirror/util/closetag.js
(function() { /** Option that allows tag closing behavior to be toggled. Default is true. */ CodeMirror.defaults['closeTagEnabled'] = true; /** Array of tag names to add indentation after the start tag for. Default is the list of block-level html tags. */ CodeMirror.defaults['closeTagIndent'] = ['applet', 'bloc...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/g2p/generator.py
from __future__ import annotations import csv import functools import itertools import logging import os import queue import statistics import threading import time import typing from multiprocessing.pool import ThreadPool from pathlib import Path from queue import Queue from typing import TYPE_CHECKING, Dict, List, O...
PypiClean
/GradAttack-0.1.2.tar.gz/GradAttack-0.1.2/gradattack/models/covidmodel.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models class Flatten(nn.Module): def forward(self, input): return input.view(input.size(0), -1) class PEXP(nn.Module): def __init__(self, n_input, n_out): super(PEXP, self).__init__(...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/url_request.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
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/util/deprecated.py
import os, sys CHOICES = 'ignore', 'fail', 'warn', 'warn_once' DEFAULT = 'warn_once' ACTION = None HELP = """ Specify what to do when a project uses deprecated features: ignore: do nothing warn: print warning messages for each feature warn_once: print a warning message, but only once for each type of feature ...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/gw/graphite.rst
.. _graphite: Graphite ======== You can export statistics to a ``Graphite`` server (time series server). The connection should be defined in the Glances configuration file as following: .. code-block:: ini [graphite] host=localhost port=2003 # Prefix will be added for all measurement name # Ex:...
PypiClean
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/coherence/backends/lolcats_storage.py
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2008, Benjamin Kampmann <ben.kampmann@googlemail.com> """ This is a Media Backend that allows you to access the cool and cute pictures from lolcats.com. This is mainly meant as a Sample Media Backend to learn how to write a...
PypiClean
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/bio_db_parsers/uniprotParser.py
import re import copy from bioflow.utils.log_behavior import get_logger log = get_logger(__name__) interesting_lines = ['ID', 'AC', 'DE', 'GN', 'OX', 'DR'] interesting_xrefs = ['EMBL', 'GO', 'Pfam', 'Ensembl', 'KEGG', 'PDB', 'GeneID', 'SUPFAM'] names_to_ignore = [ 'Contains', 'Allergen', 'EC=', 'Fla...
PypiClean
/Eden-2.1.14.zip/Eden-2.1.14/eden/tutorialWinForms/calculatorRpn/calculatorRpn.py
# calculatorRpn.py from org.qquick.eden import * # --- Constants Digits = list ('0123456789') Operators = list ('+-*/') Open, Terminated, Entered = range (3) # --- Local nodes doDigitNodes = [Node (None) .tagged (digit) for digit in Digits] doOperatorNodes = [Node (None) .tagged (operator) for operator in Operato...
PypiClean
/APASVO-0.0.6.tar.gz/APASVO-0.0.6/apasvo/gui/views/FilterDesing.py
from PySide import QtCore from PySide import QtGui import matplotlib matplotlib.rcParams['backend'] = 'qt4agg' matplotlib.rcParams['backend.qt4'] = 'PySide' matplotlib.rcParams['patch.antialiased'] = False matplotlib.rcParams['agg.path.chunksize'] = 80000 from matplotlib.backends.backend_qt4agg import FigureCanvasQTAg...
PypiClean
/BullETS-0.1.1.tar.gz/BullETS-0.1.1/README.md
# BullETS ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/AlgoETS/BullETS/Build/main?label=Checks%20%28main%29) BullETS is a Python library designed to help with the development of algorithmic trading strategies. ## Upcoming features - Retrieve stock data - Trading portfolio managem...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/packaging/msi.py
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import SCons from SCons.Action import Action from SCons.Builder import Builder from xml.dom.minidom import Document from xml.sax.saxutils import escape from SCons.Tool.packaging import stripinstallbuilder # # Utility functions # def convert_to...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/control/blocks/cartesian_drive.py
from .robotcontroller import RobotControllerBlock from ..cartesian_drive import CartesianDriveSolver class CartesianDriveController(RobotControllerBlock): """Adapts a CartesianDriveSolver to a RobotControllerBlock. The robot's commanded position is updated by the solver. It is assumed that the solver is...
PypiClean
/BehaviorPattern-0.0.8.tar.gz/BehaviorPattern-0.0.8/README.md
BehaviorTool是一个Python包,提供了CombinePattern、ContinuePattern和SequencePattern三个类的实现行为模式挖掘。 ## 安装 你可以使用pip安装BahaviorPattern: ``` pip install BehaviorPattern ``` ## 使用 在你的Python代码中引入类,例如: ```python from BehaviorPattern. import CombinePattern, ContinuePattern, SequencePattern #--------------------------------- 组合行为模式挖掘 ...
PypiClean
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/examples/ip_lists.py
import smc.examples from smc import session from smc.elements.network import IPList from smc_info import * def upload_as_zip(name, filename): """ Upload an IPList as a zip file. Useful when IPList is very large. This is the default upload format for IPLists. :param str name: name of IPList :para...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/managed_lists/lists/plex_watchlist.py
import typing from collections.abc import MutableSet from typing import List, Optional, Type, Union from loguru import logger from flexget import plugin from flexget.entry import Entry from flexget.event import event PLUGIN_NAME = 'plex_watchlist' SUPPORTED_IDS = ['imdb_id', 'tmdb_id', 'tvdb_id', 'plex_guid'] logge...
PypiClean
/NodeGraphQt_QuiltiX_fork-0.6.0.tar.gz/NodeGraphQt_QuiltiX_fork-0.6.0/NodeGraphQt/qgraphics/node_text_item.py
from Qt import QtWidgets, QtCore, QtGui class NodeTextItem(QtWidgets.QGraphicsTextItem): """ NodeTextItem class used to display and edit the name of a NodeItem. """ def __init__(self, text, parent=None): super(NodeTextItem, self).__init__(text, parent) self._locked = False sel...
PypiClean
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/controllers/data_controller.py
from sqlalchemy.orm import Session from aiohttp import web import numpy as np import asyncio import logging import aiohttp from joule.models import (folder, DataStore, DataStream, InsufficientDecimationError, DataError, pipes) from joule.models.supervisor import Sup...
PypiClean
/NSoL-0.1.14.tar.gz/NSoL-0.1.14/nsol/similarity_measures.py
import skimage.measure import numpy as np class SimilarityMeasures(object): ## # Compute sum of absolute differences (symmetric) # \date 2017-08-04 10:09:05+0100 # # \param x numpy data array # \param x_ref reference numpy data array # # \return sum of abso...
PypiClean
/Jupytils-0.41100000000000003.tar.gz/Jupytils-0.41100000000000003/ExcelFormulas.ipynb
``` #======================================================================== # Description: Tokenise an Excel formula using an implementation of # E. W. Bachtal's algorithm, found here: # # http://ewbi.blogs.com/develops/2004/12/excel_formula_p.html # # Tested with Python v2....
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/python/analyzer.py
from noval import GetApp import noval.python.parser.codeparser as codeparser import threading import noval.python.parser.scope as scope import noval.util.utils as utils class PythonModuleAnalyzer(object): """description of class""" STATUS_START_ANALYZING = 0 STATUS_PARSING_SYNTAX = 1 STATUS_LOADIN...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/docs/rst/core.rst
.. _core: Core Tools ========== The core subpackage of *HydPy* essentially defines how models can and should be programmed, documented and applied. As can be seen in the side-bar, the list of modules contained in the core subpackage is quite large. The following paragraphs try to give some hints to novices, which ...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/Scans.py
import numpy as np import pandas as pd from contextlib import closing from functools import partial import gqcms def LagrangeScan( hubbard, operator, start: float, stop: float, step: float=0.05, method_str: str ="FCI", method_kwargs: dict = {} ) -> pd.DataFrame: """ Computes the energy and expectation va...
PypiClean
/LatticeJSON-0.1.6-py3-none-any.whl/latticejson/utils.py
from itertools import chain from warnings import warn def tree(latticejson, name=None): lattices = latticejson["lattices"] def _tree(name, prefix=""): string = f"{name}\n" if name in lattices: *other, last = lattices[name] for child in other: string += ...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/events/inlinequery.py
import inspect import re import asyncio from .common import EventBuilder, EventCommon, name_inner_event from .. import utils, helpers from ..tl import types, functions, custom from ..tl.custom.sendergetter import SenderGetter @name_inner_event class InlineQuery(EventBuilder): """ Occurs whenever you sign in...
PypiClean
/MCRAMP-0.0.3-py3-none-any.whl/mcramp/scat/guide.py
from .sprim import SPrim import numpy as np import pyopencl as cl import pyopencl.array as clarr import os import re class SGuide(SPrim): """ Scattering kernel for tapered rectangular Guide. Recreates the functionality of the Guide component in McStas. The path of the neutron through the guide is num...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/os/migrate/cinder.py
import cStringIO import hashlib import inspect import logging import os import random import threading import time import uuid import cloudferry from cloudferry import config from cloudferry import discover from cloudferry import model from cloudferry.model import compute from cloudferry.model import identity from clo...
PypiClean
/Oasys-Canvas-Core-1.0.7.tar.gz/Oasys-Canvas-Core-1.0.7/orangecanvas/scheme/signalmanager.py
import logging import itertools from collections import namedtuple, defaultdict, deque from operator import attrgetter from functools import partial from PyQt5.QtCore import QObject, QCoreApplication, QEvent from PyQt5.QtCore import pyqtSignal as Signal from .scheme import SchemeNode from functools import reduce ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Neo-Euler/Main/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.NeoEulerMathJax_Main={directory:"Main/Regular",family:"NeoEulerMathJax_Main",id:"NEOEULERMAIN",1:[0,0,333,0,0,""],32:[0,0,333,0,0,""],33:[690,11,295,90,204,"90 46c0 31 26 57 58 57c31 0 56 -26 56 -57s-25 -57 -56 -57c-32 0 -58 26 -58 57zM132 184l-27 383c-2 19 -3 41 -3 58c0 12 1 24 4 3...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/image/LightboxNano.js.uncompressed.js
define("dojox/image/LightboxNano", ["dojo", "dojo/fx"], function(dojo, fx) { var abs = "absolute", vis = "visibility", getViewport = function(){ // summary: Returns the dimensions and scroll position of the viewable area of a browser window var scrollRoot = (dojo.doc.compatMode == "BackCompat") ? dojo.body(...
PypiClean
/ARC_Alkali_Rydberg_Calculator-3.3.0-cp311-cp311-win_amd64.whl/arc/calculations_atom_pairstate.py
from __future__ import division, print_function, absolute_import from arc._database import sqlite3 from arc.wigner import Wigner6j, CG, WignerDmatrix from arc.alkali_atom_functions import ( _atomLightAtomCoupling, singleAtomState, compositeState, ) from scipy.constants import physical_constants, pi import ...
PypiClean
/CloudCRMSat-0.0.2.tar.gz/CloudCRMSat-0.0.2/cloudsat/web_tools.py
import os import re import requests from lxml import html from pandas import DataFrame from dateutil.rrule import rrule, DAILY from datetime import datetime, timedelta class OverpassNotFoundError(Exception): pass class InvalidDateForSatelliteError(Exception): pass class WebSiteOfflineError(Exception): ...
PypiClean
/JustCause-0.4.tar.gz/JustCause-0.4/src/justcause/learners/meta/tlearner.py
import copy from typing import Optional, Tuple, Union import numpy as np from sklearn.linear_model import LassoLars from ..utils import replace_factual_outcomes #: Type alias for predict_ite return type SingleComp = Union[Tuple[np.array, np.array, np.array], np.array] class TLearner: """Generic TLearner implem...
PypiClean
/ABBA-QuPath-RegistrationExporter-0.4.2.tar.gz/ABBA-QuPath-RegistrationExporter-0.4.2/regexport/actions/save_cells.py
from pathlib import Path import pandas as pd from PySide2.QtWidgets import QFileDialog, QCheckBox, QDialog, QAction from traitlets import HasTraits, Bool, directional_link from regexport.model import AppState class SaveCellsActionModel(HasTraits): text = "3. Save Cells" enabled = Bool(default_value=False) ...
PypiClean
/Finance-Hermes-0.3.6.tar.gz/Finance-Hermes-0.3.6/hermes/factors/technical/factor_liquidity_stock.py
import numpy as np import pandas as pd from alphakit.const import * from alphakit.factor import * from alphakit.portfolio import * from alphakit.data import * from hermes.factors.base import FactorBase, LongCallMixin, ShortCallMixin class FactorLiquidityStock(FactorBase, LongCallMixin, ShortCallMixin): def __in...
PypiClean
/LTB-Symm-1.0.0.tar.gz/LTB-Symm-1.0.0/src/ltbsymm/configuration.py
import time import numpy as np import scipy.sparse as sp from scipy.spatial import KDTree from tqdm import tqdm ''' This code is not using MPI ''' ''' I am sure this code is well commented! AS ''' class Pwl: def __init__(self, folder_name, sparse_flag=True, dtype=None): """ Define th...
PypiClean
/Abhilash1_optimizers-0.1.tar.gz/Abhilash1_optimizers-0.1/Abhilash1_optimizers/ADAM_modified_update.py
import math import numpy as np import pandas as pd import Abhilash1_optimizers.Activation as Activation import Abhilash1_optimizers.hyperparameters as hyperparameters import Abhilash1_optimizers.Moment_Initializer as Moment_Initializer class ADAMM(): def __init__(alpha,b_1,b_2,epsilon,noise_g): return hyp...
PypiClean
/CGRtools-4.1.34.tar.gz/CGRtools-4.1.34/README.rst
CGRTools ======== .. image:: https://zenodo.org/badge/14690494.svg :target: https://zenodo.org/badge/latestdoi/14690494 Tools for processing of reactions based on Condensed Graph of Reaction (CGR) approach. Basic operations: - Read/write/convert formats: MDL .RDF (RXN) and .SDF (MOL), .MRV, SMILES, INCHI (Li...
PypiClean
/ICS_IPA-1.1.58.tar.gz/ICS_IPA-1.1.58/README.md
# ICS_IPA This repo is designed to manage the library functions used for DataMining through mdf data files using the DataSpy product made by Intrepid Control System. The library contains a bunch of File I/O functions in a dll that allow users to parse through mdf data files using their own applications like Python, Ex...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dGlWindow.py
from wx import glcanvas import wx import dabo import dabo.ui if __name__ == "__main__": dabo.ui.loadUI("wx") import dControlMixin as cm from dabo.dLocalize import _ from dabo.ui import makeDynamicProperty try: from OpenGL.GL import * from OpenGL.GLUT import * openGL = True except ImportError: openGL = False exc...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/extensions/editable/bootstrap-table-editable.js
* @author zhixin wen <wenzhixin2010@gmail.com> * extensions: https://github.com/vitalets/x-editable */ const Utils = $.fn.bootstrapTable.utils $.extend($.fn.bootstrapTable.defaults, { editable: true, onEditableInit () { return false }, onEditableSave (field, row, rowIndex, oldValue, $el) { return f...
PypiClean
/HDDM-0.9.9.tar.gz/HDDM-0.9.9/hddm/plotting.py
from hddm.simulators import * from hddm.generate import * from hddm.utils import * import numpy as np import matplotlib.pyplot as plt from matplotlib.lines import Line2D import seaborn as sns import arviz as az import os import warnings # import pymc as pm # import hddm import pandas as pd from tqdm import tqdm imp...
PypiClean
/Bonerator-0.1.1.tar.gz/Bonerator-0.1.1/bonerator/content/content.py
from typing import Union class ContentBase(object): # def to_dict(self): # raise NotImplementedError def latex(self, indent=""): """ :param indent: 缩进 :return: LaTeX2e代码 """ raise NotImplementedError def latex3(self, indent=""): return self.latex...
PypiClean
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/command/base.py
import codecs import optparse import os.path import StringIO import sys import libbe import libbe.storage import libbe.ui.util.user import libbe.util.encoding import libbe.util.plugin class UserError (Exception): "An error due to improper BE usage." pass class UsageError (UserError): """A serious pars...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/sr.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Serbian (Cyrillic) language. */ /**#@+ @type String @example */ /** * Constains the dicti...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/customize/optimize.md
--- layout: docs title: Optimize description: Keep your projects lean, responsive, and maintainable so you can deliver the best experience and focus on more important jobs. group: customize toc: true --- ## Lean Sass imports When using Sass in your asset pipeline, make sure you optimize Bootstrap by only `@import`ing...
PypiClean
/AnyStrEnum-0.2.0-py3-none-any.whl/anystrenum/anystrenum.py
import abc from enum import Enum, EnumMeta, _EnumDict, auto from typing import List, Callable, AnyStr, Set, TypeVar, Type, Any SEP_ATTR = "__sep__" CONVERTER_ATTR = "__converter__" ITEM_TYPE_ATTR = '__item_type__' class BaseStrEnumItem(metaclass=abc.ABCMeta): sep: AnyStr converter: Callable[[AnyStr], AnyStr]...
PypiClean
/AIKIF-0.2.2.tar.gz/AIKIF-0.2.2/aikif/config.py
import os import sys fldrs = {} logs = {} params = {} """ # path for personal data location (TODO - you need to modify this line below!) if sys.platform == 'linux': if os.path.exists('/home/duncan'): hme = '/home/duncan/' core_folder = '/home/duncan/dev/src/python/AIKIF' print('config.py...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/rotator/PanFade.js.uncompressed.js
define("dojox/widget/rotator/PanFade", ["dijit","dojo","dojox","dojo/require!dojo/fx"], function(dijit,dojo,dojox){ dojo.provide("dojox.widget.rotator.PanFade"); dojo.require("dojo.fx"); (function(d){ // Constants used to identify which edge the pane pans in from. var DOWN = 0, RIGHT = 1, UP = 2, LEFT = 3; ...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.8/cluster.js
var cluster = {}; /** * The setupMaster is used to change the default 'fork' behavior. It takes * one option object argument. * @param settings {Object} */ cluster.setupMaster = function(settings) {} /** * Spawn a new worker process. This can only be called from the master * process. * @param env {Object} */ ...
PypiClean
/Metamorf-0.4.4.2.tar.gz/Metamorf-0.4.4.2/metamorf/engines/engine_upload.py
from metamorf.engines.engine import Engine from metamorf.tools.filecontroller import FileControllerFactory from metamorf.tools.connection import ConnectionFactory from metamorf.constants import * from metamorf.tools.metadata import Metadata from metamorf.tools.query import Query import os class EngineUpload(Engine): ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_response_py3.py
from msrest.serialization import Model class PlaceResponse(Model): """PlaceResponse. :param parent: :type parent: ~energycap.sdk.models.PlaceChild :param place_type: :type place_type: ~energycap.sdk.models.PlaceTypeResponse :param created_date: The date and time the place was created :ty...
PypiClean
/7Wonder-RL-Lib-0.1.1.tar.gz/7Wonder-RL-Lib-0.1.1/SevenWondersEnv/SevenWonEnv/envs/mainGameEnv/Personality.py
import random from sys import stdin from copy import deepcopy from SevenWonEnv.envs.mainGameEnv.stageClass import Stage from SevenWonEnv.envs.mainGameEnv.cardClass import Card class Personality: def __init__(self): pass def make_choice(self, player, age, options): pass class DQNAI(Personali...
PypiClean
/MFD%20Floods-0.1.14.tar.gz/MFD Floods-0.1.14/bin/gdal2tiles.py
from __future__ import print_function, division import math from multiprocessing import Pool from functools import partial import os import tempfile import threading import shutil import sys from uuid import uuid4 from xml.etree import ElementTree from osgeo import gdal from osgeo import osr try: from PIL impor...
PypiClean
/IPRA-3.17.51-py3-none-any.whl/ipra/Model/Robot/baseRobot.py
from abc import abstractmethod from tkinter import * #from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager from bs4 import BeautifulSoup import time import pandas as pd from ipra.Utility.StringUtility ...
PypiClean
/CleanerVersion-2.1.1.tar.gz/CleanerVersion-2.1.1/versions/deletion.py
from django.db.models.deletion import ( attrgetter, signals, sql, transaction, CASCADE, Collector, ) import versions.models class VersionedCollector(Collector): """ A Collector that can be used to collect and delete Versionable objects. The delete operation for Versionable objects is Versiona...
PypiClean
/NC_distributions-0.1.tar.gz/NC_distributions-0.1/NC_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution stde...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/gender_enum.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
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Updater/__init__.py
import json import os import urllib from _thread import start_new_thread import pip from packaging import version from Homevee.Item.Status import * from Homevee.Utils import Constants, NotificationManager from Homevee.Utils.Database import Database def get_homevee_update_version(): installed_version = Constants...
PypiClean
/MicroStark-0.0.0.0.1b1.tar.gz/MicroStark-0.0.0.0.1b1/stark/types/message.py
import os import asyncio from .user import User from .chat import Chat from ..client import Stark from stark.utils.patch import patch from pyrogram.enums import ParseMode from pyrogram.errors import MessageTooLong from pyrogram.types import Message, MessageEntity @patch(Message) class Message(Message): _client: ...
PypiClean
/CloudRepoAnalytics-2.0.0-py3-none-any.whl/flaskr/static/piechart.min.js
(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);w.acgraph.isNodeJS=true;return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}els...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/utils/point_sample.py
import torch from mmcv.ops import point_sample def get_uncertainty(mask_pred, labels): """Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred' for the foreground class in `classes`. Args: mask_pred (Tensor): ma...
PypiClean
/Flask-Migrate-4.0.4.tar.gz/Flask-Migrate-4.0.4/src/flask_migrate/cli.py
import click from flask.cli import with_appcontext from flask_migrate import list_templates as _list_templates from flask_migrate import init as _init from flask_migrate import revision as _revision from flask_migrate import migrate as _migrate from flask_migrate import edit as _edit from flask_migrate import merge as ...
PypiClean
/Chiplotle-0.4.1.tar.gz/Chiplotle-0.4.1/chiplotle/documentation/chapters/fundamentals/index.rst
Chiplotle fundamentals ====================== .. warning:: This section needs fleshing out. In addition to being an HPGL plotter driver, *Chiplotle* is a vector drawing librarly specifically designed to work with these HPGL plotters. While other drawing computer tools are designed to create art on the screen (or for ...
PypiClean
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/gdal_proximity.py
import sys from typing import Optional, Sequence from osgeo import gdal from osgeo_utils.auxiliary.util import GetOutputDriverFor def Usage(): print( """ Usage: gdal_proximity.py srcfile dstfile [-srcband n] [-dstband n] [-of format] [-co name=value]* [-ot Byte/UInt16...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Meta/M_Prop_Type.py
from _MOM import MOM from _TFL import TFL import _MOM._Meta import _TFL._Meta.M_Auto_Combine_Nested_Classes import _TFL._Meta.M_Auto_Update_Combined import _TFL._Meta.Once_Property import _TFL.normalized_indent from _TFL.predicate import first from _TFL.pyk ...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/trans/views/git.py
from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.utils.translation import gettext as _ from django.views.decorators.http import require_POST from weblate.trans.util import redirect_param from weblate.utils import messages from weblate.utils.erro...
PypiClean
/FlaskFarm-4.0.104-py3-none-any.whl/flaskfarm/lib/framework/static/js/ff_common1.js
var tmp = window.location.pathname.split('/'); if (tmp.length == 2) { var PACKAGE_NAME = tmp[1]; var MODULE_NAME = ""; var PAGE_NAME = ""; } else if (tmp.length == 3) { var PACKAGE_NAME = tmp[1]; var MODULE_NAME = tmp[2]; var PAGE_NAME = ""; } else if (tmp.length > 3){ var PACKAGE_NAME = tmp[1]; var MOD...
PypiClean
/KratosShapeOptimizationApplication-9.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ShapeOptimizationApplication/response_functions/mesh_based_packaging.py
import KratosMultiphysics as KM import KratosMultiphysics.ShapeOptimizationApplication as KSO from .packaging_response_base import PackagingResponseBase from ..custom_ios.wrl_io import WrlIO class MeshBasedPackaging(PackagingResponseBase): """ A class for mesh packaging response function. The mesh should cont...
PypiClean
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/testSuite/TestDel_parserBaseline.py
import sys from Scanner import Token from Scanner import Scanner from Scanner import Position class ErrorRec( object ): def __init__( self, l, c, s ): self.line = l self.col = c self.num = 0 self.str = s class Errors( object ): errMsgFormat = "file %(file)s : (%(line)d, %(c...
PypiClean
/Cooky-1.0.0.tar.gz/Cooky-1.0.0/cooky/payloads/generator.py
import os from cooky.payloads.payload import Payload, Registry class Generator(Payload): def __init__(self, name, initial, end, step): """ Base class for a generator payload, this type of payload iterates through a set of values be it numbers of strings. (The Generator base class implemen...
PypiClean
/HALEasy-0.4.3.tar.gz/HALEasy-0.4.3/LICENSE.md
The MIT License (MIT) Copyright (c) 2014 Matthew Clark <matt@mattclark.net> 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, co...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/ms/index.js
var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an error if val is not a non-empty st...
PypiClean
/K_AIKO-0.5.2-py3-none-any.whl/kaiko/tui/textboxes.py
import dataclasses from typing import Tuple import numpy from ..utils import datanodes as dn from ..utils import markups as mu from ..devices import engines from ..devices import clocks @dataclasses.dataclass(frozen=True) class Caret(mu.Pair): name = "caret" @dataclasses.dataclass class TextBoxWidgetSettings: ...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/board/hardkernel/odroidn2.py
"""Pin definitions for the Odroid N2.""" from adafruit_blinka.microcontroller.amlogic.s922x import pin GPIOX_0 = pin.GPIO476 GPIOX_1 = pin.GPIO477 GPIOX_2 = pin.GPIO478 GPIOX_3 = pin.GPIO479 GPIOX_4 = pin.GPIO480 GPIOX_5 = pin.GPIO481 GPIOX_6 = pin.GPIO482 GPIOX_7 = pin.GPIO483 GPIOX_8 = pin.GPIO484 GPIOX_9 = pin.GPI...
PypiClean
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/third_party/crc32c.py
# TODO(user): We would really benefit from having this as a c extension. import array CRC_TABLE = ( 0x00000000L, 0xf26b8303L, 0xe13b70f7L, 0x1350f3f4L, 0xc79a971fL, 0x35f1141cL, 0x26a1e7e8L, 0xd4ca64ebL, 0x8ad958cfL, 0x78b2dbccL, 0x6be22838L, 0x9989ab3bL, 0x4d43cfd0L, 0xbf284cd3L, 0xac78bf27L, 0x5e133...
PypiClean
/HoChiMinh-1.0.0-py3-none-any.whl/hochiminh/dev/font_to_image.py
import cv2 from PIL import Image, ImageDraw, ImageFont import numpy as np from copy import deepcopy from os import listdir from os.path import isfile, join from multiprocessing import Process from numpy.random import randint, choice class DatasetGenerator: def __init__(self, in_path, out_path): self.fo...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/rpc/OfflineRest.js.uncompressed.js
define("dojox/rpc/OfflineRest", ["dojo", "dojox", "dojox/data/ClientFilter", "dojox/rpc/Rest", "dojox/storage"], function(dojo, dojox) { // summary: // Makes the REST service be able to store changes in local // storage so it can be used offline automatically. var Rest = dojox.rpc.Rest; var namespace = "dojox_rpc...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","fr-ca",{title:"Instructions d'accessibilité",contents:"Contenu de l'aide. Pour fermer cette fenêtre, appuyez sur ESC.",legend:[{name:"Gé...
PypiClean
/ModEA-0.5.0.tar.gz/ModEA-0.5.0/README.md
[![PyPI version](https://badge.fury.io/py/ModEA.svg)](https://badge.fury.io/py/ModEA) [![DOI](https://zenodo.org/badge/157624013.svg)](https://zenodo.org/badge/latestdoi/157624013) [![Build Status](https://www.travis-ci.com/sjvrijn/ModEA.svg?branch=main)](https://www.travis-ci.com/sjvrijn/ModEA) [![Coverage Status](htt...
PypiClean
/Barak-0.3.2.tar.gz/Barak-0.3.2/barak/pyvpfit.py
import os import numpy as np from textwrap import wrap from constants import c_kms # the data types of the lines and regions numpy arrays: len_filename = 150 dtype_lines = [('name', 'S6'), ('z', 'f8'), ('zpar', 'S2'), ('b', 'f8'), ('bpar', 'S2'), ...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Common/Utils/TypedList.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/Alarmageddon-1.1.2-py3-none-any.whl/alarmageddon/config.py
import json class Config(dict): """Alarmageddon configuration object. A configuration object that both acts like a read-only dictionary and provides some methods to access application specific settings :param dictionary: A dictionary of the form {'env':{config options},...} :param environment_n...
PypiClean
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/management/commands/attachments_to_file.py
import os from django.core.management.base import BaseCommand, CommandError from hyperkitty.management.utils import setup_logging from hyperkitty.models.email import Attachment class Command(BaseCommand): help = """Move attachments from database to file system after setting HYPERKITTY_ATTACHMENT_FOLDER.""" ...
PypiClean
/Binomial_Gaussian_practice-1.0.tar.gz/Binomial_Gaussian_practice-1.0/Binomial_Gaussian_practice/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/Andy_mess_server-0.0.1-py3-none-any.whl/server/server.py
import sys import logging import argparse import configparser import os from PyQt5.QtWidgets import QApplication from PyQt5.QtCore import Qt import logs.server_log_config from common.variables import * from common.decorators import log from server.database import ServerStorage from server.core import MessageProcessor ...
PypiClean
/LinkPython-0.1.1.tar.gz/LinkPython-0.1.1/modules/link/GNU-GPL-v2.0.md
GNU General Public License ========================== _Version 2, June 1991_ _Copyright © 1989, 1991 Free Software Foundation, Inc.,_ _51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA_ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/it.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","it",{title:"Istruzioni di Accessibilità",contents:"Contenuti di Aiuto. Per chiudere questa finestra premi ESC.",legend:[{name:"Generale",...
PypiClean
/KiwoomDE-0.5.1-py3-none-any.whl/kiwoomde/models/_devguide.py
import re import pandas as pd from idebug import * from kiwoomde.database import * from kiwoomde import config from kiwoomde.base import BaseClass, BaseDataClass from kiwoomde.models.base import KWModel from kiwoomde.models._util import * def DevGuideModel(modelName): if modelName == 'TRList': retur...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/iron-fit-behavior/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/iron-fit-behavior/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 pa...
PypiClean
/Infomericaclass-1.0.0.tar.gz/Infomericaclass-1.0.0/inf/data/wiki/readme.md
## Data from Wikipedia The data were originally collected by a team lead by Steven Skiena as part of the project to build a classifier for race and ethnicity based on names. The team scraped Wikipedia to produce a novel database of over 140k name/race associations. For details of the how the data was collected, see [N...
PypiClean
/Lentil-0.7.0.tar.gz/Lentil-0.7.0/README.rst
Lentil ====== |build status| |coverage| |docs status| |pypi version| Lentil is a Python library for modeling the imaging chain of an optical system. It was originally developed at NASA's Jet Propulsion Lab by the Wavefront Sensing and Control group (383E) to provide an easy to use framework for simulating point spread...
PypiClean
/OCAICM-0.0.2.tar.gz/OCAICM-0.0.2/script/dnn_torch_utils.py
import torch import numpy as np import torch.nn.functional as F import torch.nn as nn import datetime import random from sklearn.metrics import roc_auc_score, confusion_matrix, precision_recall_curve, auc, \ mean_absolute_error, r2_score def statistical(y_true, y_pred, y_pro): c_mat = confusion_matrix(y_tru...
PypiClean
/Jalapeno-0.1.4.tar.gz/Jalapeno-0.1.4/Jalapeno_data/Sites/first/Pages/doc/writing.md
title: 开始一篇博客 pos: 4 ###New 现在你准备好了吗? 首先我们要在'pages'文件夹下创建一个空白文档'test.md',这里test只是一个名字,你可以给你的文章起任何名字,它将会影响到你未来网页的链接地址: yourwebsite.com/article/test ###Title 接着我们要编辑文档的开头,注意冒号后面要空格 title: 这里写文章标题 date: 这里写发表日期,格式为 YYYY-MM-DD tag: 这里是你的文章分类/标签名称 ###Content 接着我们编写正文,正文要与之前的开头用一个空行隔开 h...
PypiClean
/Mecoda_Orange-1.9.0-py3-none-any.whl/mecoda_orange/ictio.py
import pandas as pd import os import datetime from ictiopy import ictiopy from orangewidget.widget import OWBaseWidget, Output from orangewidget.settings import Setting from orangewidget import gui from orangewidget.utils.widgetpreview import WidgetPreview import Orange.data from Orange.data.pandas_compat import table...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/interfaces/storage/db.py
import os import json import datetime from typing import Dict import numpy as np from sqlalchemy import create_engine, types, UniqueConstraint from sqlalchemy.orm import scoped_session, sessionmaker, declarative_base from sqlalchemy import Column, Integer, String, DateTime, Boolean, Index, text from sqlalchemy.sql.sch...
PypiClean