id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Leafs/Hmacs/HMAC_MD5.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/editor/media/editarea/edit_area/reg_syntax.js
EditAreaLoader.prototype.get_regexp= function(text_array){ //res="( |=|\\n|\\r|\\[|\\(|µ|)("; res="(\\b)("; for(i=0; i<text_array.length; i++){ if(i>0) res+="|"; //res+="("+ tab_text[i] +")"; //res+=tab_text[i].replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\{|\})/g, "\\$1"); res+=this.get_escaped_regexp(te...
PypiClean
/Genshi-0.7.7-py3-none-any.whl/genshi/builder.py
import six from genshi.compat import numeric_types from genshi.core import Attrs, Markup, Namespace, QName, Stream, \ START, END, TEXT __all__ = ['Fragment', 'Element', 'ElementFactory', 'tag'] __docformat__ = 'restructuredtext en' class Fragment(object): """Represents a markup fragment,...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/mrs_subviz/src/viewers/canvas_interaction/cubeViewerCanvas/rectangleInteractions.py
import numpy import weakref from pubsub import pub import matplotlib.pyplot as _plt from matplotlib.widgets import RectangleSelector from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from .panOnClick import PanOnClick class RectangleInteractions(PanOnClick): def __init__(self, f...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Functions/condition_actions/actions.py
import json from Homevee.DeviceAPI import blind_control from Homevee.DeviceAPI.heating import heating_control from Homevee.DeviceAPI.rgb_control import rgb_control from Homevee.DeviceAPI.set_modes import set_modes from Homevee.DeviceAPI.wake_on_lan import wake_on_lan, wake_xbox_on_lan from Homevee.Item.Status import *...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/jquery/src/core.js
define([ "./var/deletedIds", "./var/slice", "./var/concat", "./var/push", "./var/indexOf", "./var/class2type", "./var/toString", "./var/hasOwn", "./var/support" ], function( deletedIds, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) { var version = "@VERSION", // Define a local copy ...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/google/protobuf/timestamp_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_blender/artists/curveartist.py
from typing import Any from typing import List from typing import Optional from typing import Union import bpy import compas_blender from compas.artists import CurveArtist from compas.geometry import Curve from compas.colors import Color from compas_blender.artists import BlenderArtist class CurveArtist(BlenderArti...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/visualize/utils/component.py
from AnyQt.QtCore import Qt, QRectF from AnyQt.QtGui import QColor, QFont from AnyQt.QtWidgets import QGraphicsEllipseItem import pyqtgraph as pg from Orange.widgets.visualize.owscatterplotgraph import ( OWScatterPlotBase, ScatterBaseParameterSetter ) from Orange.widgets.visualize.utils.customizableplot import Up...
PypiClean
/DtCrawlEngine-1.2.6.tar.gz/DtCrawlEngine-1.2.6/engine/website.py
from datetime import datetime, timedelta import socket from twisted.web import resource, static from twisted.application.service import IServiceCollection from scrapy.utils.misc import load_object from .interfaces import IPoller, IEggStorage, ISpiderScheduler from six.moves.urllib.parse import urlparse class Roo...
PypiClean
/LEOS9-0.0.tar.gz/LEOS9-0.0/src/libs/read_SP3_clks_5s.py
import numpy as np import datetime as dt def read_SP3_clks_5s_func(fname_prev,fname_curr,fname_next,gpstime_day,nsats): file=open(fname_prev, 'r') Lines = file.readlines() file.close() ntimes_sp3=len(np.arange(0,24*60*60,5)) clk_sp3_prev=np.zeros((ntimes_sp3,nsats))*np.nan gpstime_clks_sp3...
PypiClean
/Mega-pytorch-0.1.0.tar.gz/Mega-pytorch-0.1.0/README.md
<img src="./mega.png" width="450px"></img> ## Mega - Moving Average Equipped Gated Attention - Pytorch Implementation of the <a href="https://arxiv.org/abs/2209.10655">Mega</a> layer, the Single-head Attention with Multi-headed EMA layer that exists in the architecture that currently holds SOTA on Long Range Arena, b...
PypiClean
/KratosCoSimulationApplication-9.4-cp39-cp39-win_amd64.whl/KratosMultiphysics/CoSimulationApplication/convergence_criteria/relative_norm_initial_residual.py
import KratosMultiphysics as KM # Importing the base class from KratosMultiphysics.CoSimulationApplication.base_classes.co_simulation_convergence_criteria import CoSimulationConvergenceCriteria # CoSimulation imports import KratosMultiphysics.CoSimulationApplication.co_simulation_tools as cs_tools import KratosMultip...
PypiClean
/My_This_is_the_machine-0.0.7.tar.gz/My_This_is_the_machine-0.0.7/src/Time_Machine/Profile_Analysis.py
import numpy as np # Numpy import warnings # Allows to customize warnings from scipy.signal import savgol_filter import scipy.optimize class ProfileAnalysis(): def __init__(self, profile_data, standard_error, x, figure_pro...
PypiClean
/MaetInject-1.0.2-py3-none-any.whl/maetinject/maetinject.py
from wand.image import Image from wand.display import display import requests import shutil import argparse import os listdir = os.listdir MEATSPIN = 'meatspin.demo' # path to meatspin.gif def main(): parser = argparse.ArgumentParser( description='Image Meatspin injector') parser.add_argument('-f', ...
PypiClean
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/crikit/cri/error_correction.py
import numpy as _np import copy as _copy from scipy.signal import savgol_filter as _sg from crikit.cri.algorithms.kk import hilbertfft as _hilbert from crikit.preprocess.algorithms.als import AlsCvxopt as _AlsCvxopt from crikit.utils.datacheck import _rng_is_pix_vec class PhaseErrCorrectALS: """ Phase err...
PypiClean
/CCMetagen-1.4.0-py3-none-any.whl/CCMetagen-1.4.0.data/scripts/CCMetagen_extract_seqs.py
#imports import sys import pandas as pd import csv from argparse import ArgumentParser # help if len(sys.argv) == 1: print ("") print ("""Produces a fasta file containing the sequences assigned to a given taxon""") print ("For help and options, type: CCMetagen_extract_seqs.py -h") print ("") par...
PypiClean
/CLMsgr-0.0.0-pre-alpha-build-1.tar.gz/CLMsgr-0.0.0-pre-alpha-build-1/README.txt
# CLMsgr # > A Python Core for Command Line Messaging, with extensibility and modularity. > **Note:** This is a young project under active development. Some nasty bugs and drastic changes should be anticipated at this stage. **CLMsgr** tries to offload the work a everyday programmer has to do to message through a c...
PypiClean
/NN_team21-0.1.tar.gz/NN_team21-0.1/NN_team21/NeuralNetwork.py
class NeuralNetwork(): def __init__(self, loss='crossentropy', classifier='categorical', metric='accuracy', learning_rate=.04): import numpy as np import pandas as pd ALLOWED_LOSSES = ['crossentropy'] ALLOWED_CLASSIFIERS = ['binary', 'categorical'] ALLOWED_METRICS = ['ac...
PypiClean
/Msgr-1.0b1.tar.gz/Msgr-1.0b1/README.zh-CN.md
# Msgr Project # [README English](README.md) ## About the Msgr Library ## ## How to Use Msgr Library ## ```python ``` ## Msgr Class API References ## ### Msgr Class ### ## Licenses ## This project is licensed under two permissive licenses, please chose one or both of the licenses to your like. Although not nec...
PypiClean
/Colbert-0.30.tar.gz/Colbert-0.30/src/scripts/colbert_ecriture_facture.py
# Copyright (c) 2012 Stanislas Guerra <stanislas.guerra@gmail.com> # 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 # notic...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/plugins/softwareupdate/updaters/pip.py
__author__ = "Gina Häußge <osd@foosel.net>" __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" import collections import logging import threading from octoprint.util.pip import...
PypiClean
/FAaDO-0.0.4.tar.gz/FAaDO-0.0.4/fado/cli/fado_run.py
import argparse import importlib import itertools import logging import os import shutil import socket import subprocess import sys import time from distutils.dir_util import copy_tree from threading import Thread from fado.constants import * from fado.cli.arguments.arguments import FADOArguments from fado.runner impo...
PypiClean
/ApiPyTelegram-0.1.tar.gz/ApiPyTelegram-0.1/README.md
# ApiPyTelegram | apt telegram bots core for python. ## Installation Install my-project with pip ```bash pip install PyTelegramApi ``` ## Usage/Examples ```python import ApiPyTelegram ApiPyTelegram.apt() #you token goes here ApiPyTelegram.message.text(12345, "test you") # first arg is chat id ``` [Get us...
PypiClean
/CProfileV-1.0.7.tar.gz/CProfileV-1.0.7/cprofilev.py
import argparse import bottle import cProfile import os import pstats import re import sys import threading try: from cStringIO import StringIO except ImportError: try: from StringIO import StringIO except ImportError: # Python 3 compatibility. from io import StringIO VERSION = '...
PypiClean
/Final2x-core-1.0.5.tar.gz/Final2x-core-1.0.5/Final2x_core/src/SRFactory/REALESRGAN.py
from loguru import logger try: from src.SRFactory.SRBaseClass import SRBaseClass except ImportError: # for pip cli from Final2x_core.src.SRFactory.SRBaseClass import SRBaseClass class REALESRGAN(SRBaseClass): def __init__(self): super().__init__() self._init_SR_class() @logger.c...
PypiClean
/MarkMyImage-0.1.7.tar.gz/MarkMyImage-0.1.7/README.md
# Watermark A simple command-line tool to add a watermark to all images in a folder. This package uses the Python Imaging Library (PIL) to add a watermark (logo) with customizable position, transparency, rotation, and scale. ## Installation Install the package using pip: ``` pip install MarkMyImage ``` ## Usage ...
PypiClean
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/hooke/util/fit.py
from numpy import arange, ndarray from scipy import __version__ as _scipy_version from scipy.optimize import leastsq _strings = _scipy_version.split('.') # Don't convert third string to an integer in case of (for example) '0.7.2rc3' _SCIPY_VERSION = (int(_strings[0]), int(_strings[1]), _strings[2]) del _strings clas...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/es/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): # https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes language_names = [ "Afar", "Abjasio", "Avéstico", "Africaans", "Akánico", "Amhárico", "Aragonés", "Arábico", ...
PypiClean
/MishMash-0.3.3.tar.gz/MishMash-0.3.3/mishmash/console.py
from nicfit.console.ansi import Fg from eyed3.utils.prompt import prompt, parseIntList from .orm import Artist def selectArtist(heading, choices=None, multiselect=False, allow_create=True): color = Fg.green artist = None name = None menu_num = 0 if heading: print(heading) while artis...
PypiClean
/ExecFlowSDK-0.3.0.tar.gz/ExecFlowSDK-0.3.0/utils/datanodegenerator/README.md
# AiiDA DataNode Generator from SOFT7 (S7) Entities The DataNode Generator is a jinja2 template that accepts a S7 entity as input. ## Setup First, you need the SOFT7 (S7) package installed. This can be done either directly from GitHub: ```shell pip install git+https://github.com/SINTEF/soft7 ``` Or by first clonin...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ed_theme.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: ed_theme.py 72247 2012-07-28 22:32:37Z CJP $" __revision__ = "$Revision: 72247 $" #--------------------------------------------------------------------------# # Imports import os import wx # Local Imports import ed_glob import util import plugin from...
PypiClean
/CouchDB-1.2.tar.gz/CouchDB-1.2/couchdb/tools/dump.py
from __future__ import print_function from base64 import b64decode from optparse import OptionParser import sys from couchdb import __version__ as VERSION from couchdb import json from couchdb.client import Database from couchdb.multipart import write_multipart BULK_SIZE = 1000 def dump_docs(envelope, db, docs): ...
PypiClean
/DBSP_DRP-1.0.0-py3-none-any.whl/dbsp_drp/fluxing.py
import os from typing import List, Dict from pkg_resources import resource_filename import numpy as np from astropy.io import fits from pypeit import msgs from pypeit import pypmsgs from pypeit.par import pypeitpar from pypeit.specobjs import SpecObjs from pypeit import sensfunc from pypeit import fluxcalibrate from...
PypiClean
/LinuxServerSetup_TirsvadCLI-0.3-py3-none-any.whl/linuxServerSetup/tools/nginx.py
import os import subprocess import logging import argparse import pwd from packageManager.manager import packageManager class runBash(subprocess.Popen): def __init__(self, args, shell=True, stdin=None, stdout=open(os.devnull, 'wb'), stderr=open(os.devnull,"wb"), executable='/bin/bash', cwd=None, **kwargs): ...
PypiClean
/Bottlechest-0.7.1-cp34-cp34m-macosx_10_9_x86_64.whl/bottlechest/src/template/func/nanstd.py
"nanstd template" from copy import deepcopy import bottlechest as bn __all__ = ["nanstd"] FLOAT_DTYPES = [x for x in bn.dtypes if 'float' in x] INT_DTYPES = [x for x in bn.dtypes if 'int' in x] # Float dtypes (not axis=None) ---------------------------------------------- floats = {} floats['dtypes'] = FLOAT_DTYPES...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/ghg_building_rank_py3.py
from msrest.serialization import Model class GHGBuildingRank(Model): """GHGBuildingRank. :param place_info: :type place_info: ~energycap.sdk.models.PlaceInfo :param place_size: The place size :type place_size: int :param place_size_unit: :type place_size_unit: ~energycap.sdk.models.UnitC...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/message-box.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/real/simulation.py
import random import pygame from pygame.locals import * from math import hypot, sqrt from random import uniform, randint import time import threading from ElasticCollision.ec_real import momentum_trigonometry_real, momentum_angle_free_real from pygame.math import Vector2 # Screen size SIZE = (1024, 1024) # Screen ...
PypiClean
/DI-searching-0.0.0.tar.gz/DI-searching-0.0.0/disearch/problem/problem_handler.py
import numpy as np from typing import Any, Callable, Dict, List, Tuple from .utils import DataPool class ProblemHandler(): """ This class is used to provide a uniformed interface for the searching engine to interact with. It can store the searching space class, provide an entry to get a batch of scor...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcommon/controller/CheckUpdatesController.py
import os import traceback import requests from luddite import get_version_pypi from packaging import version import imswitch from imswitch.imcommon.framework import Signal, Thread from imswitch.imcommon.model import initLogger from .basecontrollers import WidgetController class CheckUpdatesController(WidgetControl...
PypiClean
/MeshLabXML-2018.3.tar.gz/MeshLabXML-2018.3/meshlabxml/remesh.py
#import meshlabxml as mlx from . import FilterScript from . import util from . import sampling from . import vert_color from . import select from . import delete from . import smooth def simplify(script, texture=True, faces=25000, target_perc=0.0, quality_thr=0.3, preserve_boundary=False, boundary_weight...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Neo-Euler/Variants/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.NeoEulerMathJax_Variants={directory:"Variants/Regular",family:"NeoEulerMathJax_Variants",id:"NEOEULERVARIANTS",32:[0,0,333,0,0,""],160:[0,0,333,0,0,""],8242:[559,-41,329,48,299,"290 472l-188 -414c-7 -15 -8 -17 -15 -17c-8 0 -39 10 -39 22c0 1 4 14 5 16l132 433c5 16 17 47 55 47c31 0 59...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/MSCommon/sdk.py
__revision__ = "src/engine/SCons/Tool/MSCommon/sdk.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" __doc__ = """Module to detect the Platform/Windows SDK PSDK 2003 R1 is the earliest version detected. """ import os import SCons.Errors import SCons.Util from . import common debug = commo...
PypiClean
/Lantz-0.3.zip/Lantz-0.3/docs/guides/ui-two-drivers.rst
.. _ui-two-drivers: ================================ Connecting two (or more) drivers ================================ Real application consists not only of a single instrument but many. In a custom UI, you can connect different drivers to different widgets. Consider the following interace for two signal generators. ...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/snpcall/create_gvcf_database.py
__author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Tools.GATK4 import GenomicsDBImport4 parser = argparse.ArgumentParser() parser.add_argument("-o", "--output_dbi_dir", action="store", dest="output_dbi_dir", required=True, help="Output directory to write database") parser.add_argument(...
PypiClean
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/doc/manpages/bob-query-meta.rst
.. _manpage-query-meta: bob-query-meta ============== .. only:: not man Name ---- bob-query-meta - Query metaEnvironment variables Synopsis -------- :: bob query-meta [-h] [-D DEFINES] [-c CONFIGFILE] [-r] [--sandbox | --no-sandbox] packages [packages ...] Des...
PypiClean
/DeepManufacturing-0.0.7.tar.gz/DeepManufacturing-0.0.7/ManufacturingNet/models/vit.py
import timm import datetime import os import sys import time import matplotlib.pyplot as plt import numpy as np from PIL import Image from sklearn.metrics import confusion_matrix import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.optim.lr_scheduler as scheduler...
PypiClean
/Fishconsole-3.0.6.tar.gz/Fishconsole-3.0.6/README.md
> 我利用了几乎所有的业余时间设计了Fishconsole Project,虽然现在十分拉跨,但正努力前行 - **导入的语法是from Fishconsole import (你需要的模块,非要我给你加粗你才听是吧)**,由pycharm+win10(20h1)+python3.8.13编写,随心更新,长期项目,始于2022年富有朝气的3月 - 它是一个集成各种python操作的一个快速开发的工具集,它有缓存读写,各类中文模块,可以帮助你快速开发,它使用中文变量编程,让开发不再困难 ---- # 🦈Fishconsole 小鱼控制台功能一览 ##### logs模块 - 原生控制台指定文字的颜色修改 - 可以染色...
PypiClean
/HDDM-0.9.9.tar.gz/HDDM-0.9.9/hddm/models/hddm_nn.py
import hddm from kabuki.hierarchical import ( Knode, ) # from kabuki.utils import stochastic_from_dist from hddm.models import HDDM from copy import deepcopy try: from hddm.torch.mlp_inference_class import load_torch_mlp except: print( "It seems that you do not have pytorch installed." + "...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/owcorrelations.py
from enum import IntEnum from operator import attrgetter from types import SimpleNamespace from itertools import combinations, groupby, chain import numpy as np from scipy.stats import spearmanr, pearsonr from sklearn.cluster import KMeans from AnyQt.QtCore import Qt, QItemSelectionModel, QItemSelection, \ QSize,...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/scayt/plugin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Spell Check As You Type (SCAYT). * Button name : Scayt. */ (function() { var commandName = 'scaytcheck', openPage = ''; // Checks if a value e...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/pilot/filemanagement/util/memory.py
import logging from collections import defaultdict from errno import ENOENT from stat import S_IFDIR, S_IFLNK, S_IFREG from sys import argv, exit from time import time from fuse import FUSE, FuseOSError, Operations, LoggingMixIn if not hasattr(__builtins__, 'bytes'): bytes = str class Memory(LoggingMixIn, Oper...
PypiClean
/CASCADe_jitter-0.9.5-py3-none-any.whl/cascade_jitter/initialize.py
import os import shutil from urllib.parse import urlencode from urllib.parse import urlparse from pathlib import Path import requests import zipfile import io import time from cascade_jitter import __path__ from cascade_jitter import __version__ as __CASCADE_JITTER_VERSION __all__ = ['check_cascade_version', 'setup_e...
PypiClean
/fairranktune-0.0.6.tar.gz/fairranktune-0.0.6/docs/index.md
# Home <div align="center"> <img src="https://raw.githubusercontent.com/KCachel/FairRankTune/main/.github/images/FairRankTune.png"> </div> <p align="center"> <!-- Python --> <a href="https://www.python.org" alt="Python"><img src="https://badges.aleen42.com/src/python.svg"></a> <!-- Version --> <a href="http...
PypiClean
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/bin/unique.py
import os import sys import argparse import numpy as np from AaronTools.const import UNIT from AaronTools.geometry import Geometry from AaronTools.fileIO import FileReader, read_types from AaronTools.utils.utils import get_filename, glob_files unique_parser = argparse.ArgumentParser( description="determine whic...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/detectors/two_stage.py
import warnings import torch from ..builder import DETECTORS, build_backbone, build_head, build_neck from .base import BaseDetector @DETECTORS.register_module() class TwoStageDetector(BaseDetector): """Base class for two-stage detectors. Two-stage detectors typically consisting of a region proposal network...
PypiClean
/Flask-SignalBus-0.5.20.tar.gz/Flask-SignalBus-0.5.20/docs/api.rst
API Reference ============= .. module:: flask_signalbus .. _signal-model: Signal Model ```````````` A *signal model* is an otherwise normal database model class (a subclass of ``db.Model``), which however has a ``send_signalbus_message`` method defined. For example:: from flask import Flask from flask_sqlalch...
PypiClean
/MUGAlyser-1.0.6a0.tar.gz/MUGAlyser-1.0.6a0/bin/meetup_info_main.py
import sys import pprint from argparse import ArgumentParser from mugalyser.meetup_api import MeetupAPI from traceback import print_exception from mugalyser.version import __programName__ from mugalyser.generator_utils import printCount from mugalyser.mugdata import printCursor from mugalyser.groups import Groups ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/lt.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['lt']={"dir":"ltr","editor":"Pilnas redaktorius","common":{"editorHelp":"Spauskite ALT 0 dėl pagalbos","browseServer":"Naršyti po serverį","url":"URL","protocol...
PypiClean
/CloudFirewall-0.1-py3-none-any.whl/agent/agent.py
import asyncio import logging import os import uuid import grpc from cloudfirewall.agent.service.agent_service import AgentService from cloudfirewall.common.path_utils import resolve_path SERVER_HOST = os.environ.get('SERVER_HOST', 'localhost') SERVER_PORT = int(os.environ.get('SERVER_PORT', '50051')) AGENT_KEY_PAT...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/commands/__init__.py
from __future__ import absolute_import from pip._internal.commands.completion import CompletionCommand from pip._internal.commands.configuration import ConfigurationCommand from pip._internal.commands.download import DownloadCommand from pip._internal.commands.freeze import FreezeCommand from pip._internal.commands.ha...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/python/project/pages/pythoninterpreter.py
from noval import _ import tkinter as tk from tkinter import ttk import noval.python.interpreter.interpretermanager as interpretermanager import noval.util.utils as utils import noval.consts as consts import noval.python.project.runconfiguration as runconfiguration import noval.project.property as projectproperty impor...
PypiClean
/Django-PeerReview-0.1.0.zip/Django-PeerReview-0.1.0/peerreview/static/bootstrap/js/bootstrap.js
!function ($) { $(function () { "use strict"; // jshint ;_; /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) * ======================================================= */ $.support.transition = (function () { var transitionEnd = (function () { var el = document.createElement(...
PypiClean
/InvoiceGenerator-1.1.0.tar.gz/InvoiceGenerator-1.1.0/README.rst
================ InvoiceGenerator ================ .. image:: https://travis-ci.org/creckx/InvoiceGenerator.svg :target: https://travis-ci.org/creckx/InvoiceGenerator This is library to generate a simple invoices. Currently supported formats are PDF and XML for Pohoda accounting system. PDF invoice is based on Rep...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/packages/chardet/langthaimodel.py
# 255: Control characters that usually does not exist in any text # 254: Carriage/Return # 253: symbol (punctuation) that does not belong to word # 252: 0 - 9 # The following result for thai was collected from a limited sample (1M). # Character Mapping Table: TIS620CharToOrderMap = ( 255,255,255,255,255,255,255,255,...
PypiClean
/MISP_maltego-1.4.7.tar.gz/MISP_maltego-1.4.7/TRANSFORM_HUB_DISCLAIMER.md
# MISP Maltego Remote Transform Disclaimer **When using the MISP Maltego transforms using the Transform Hub (not the locally installed version) you need to know you are are sending data, including your MISP URL and API key to 3rd parties.** The public Transform Distribution Server (TDS) is located on the Internet and ...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/g2p/phonetisaurus_trainer.py
from __future__ import annotations import collections import logging import os import queue import subprocess import threading import time from pathlib import Path from queue import Queue import dataclassy import numpy import pynini import pywrapfst import sqlalchemy from pynini.lib import rewrite from sqlalchemy.orm...
PypiClean
/OTLModel/Classes/Abstracten/DNB.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from abc import abstractmethod from OTLMOW.OTLModel.Classes.Abstracten.Voedingspunt import Voedingspunt from OTLMOW.OTLModel.Datatypes.DateField import DateField from OTLMOW.OTLModel.Datatypes.DtcAdres import DtcAdres from OTLMOW.OTLModel.Datatypes.DtcDo...
PypiClean
/FAT-Forensics-0.1.2.tar.gz/FAT-Forensics-0.1.2/fatf/utils/testing/arrays.py
import numpy as np __all__ = ['NUMERICAL_NP_ARRAY', 'NOT_NUMERICAL_NP_ARRAY', 'WIDE_NP_ARRAY', 'NUMERICAL_STRUCTURED_ARRAY', 'NOT_NUMERICAL_STRUCTURED_ARRAY', 'WIDE_STRUCTURED_ARRAY', 'BASE_NP_ARRAY', 'NOT_BASE_NP_ARRAY', 'BASE_ST...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/layout/_TabContainerBase.js
if(!dojo._hasResource["dijit.layout._TabContainerBase"]){ dojo._hasResource["dijit.layout._TabContainerBase"]=true; dojo.provide("dijit.layout._TabContainerBase"); dojo.require("dijit.layout.StackContainer"); dojo.require("dijit._Templated"); dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,di...
PypiClean
/NREL-erad-0.0.0a0.tar.gz/NREL-erad-0.0.0a0/erad/scenarios/abstract_scenario.py
from shapely.geometry import MultiPolygon, Polygon, LineString, Point from datetime import datetime from typing import * import shapely from erad.scenarios.common import AssetTypes class BaseScenario: """Base class for scenario defination. Attributes: geodata (MultiPolygon, Point, LineString): R...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@mapbox/node-pre-gyp/lib/publish.js
'use strict'; module.exports = exports = publish; exports.usage = 'Publishes pre-built binary (requires aws-sdk)'; const fs = require('fs'); const path = require('path'); const log = require('npmlog'); const versioning = require('./util/versioning.js'); const napi = require('./util/napi.js'); const s3_setup = requir...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/checkpoint/constants.py
# DeepSpeed Team """ Various symbolic constants used for model checkpointing """ ######################################### # Optimizer checkpoint keys ######################################### OPTIMIZER_STATE_DICT = "optimizer_state_dict" FP32_GROUPS = "fp32_groups" FP32_FLAT_GROUPS = 'fp32_flat_groups' BASE_OPTIMIZ...
PypiClean
/Cortecx-1.0.6.tar.gz/Cortecx-1.0.6/README.md
# Cortecx Cortecx is a Python NLP library facilitating the implementation of common NLP tasks. ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install Cortecx. ```bash pip install cortecx ``` ## Requirements - Numpy - Psutil - Python 3.6 + For Models: - Keras - Tensorflow ## Usag...
PypiClean
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/widgets/owimportdocuments.py
import sys import os import enum import warnings import logging import traceback from urllib.parse import urlparse from types import SimpleNamespace as namespace from concurrent.futures._base import TimeoutError from typing import List, Optional from AnyQt.QtCore import Qt, QEvent, QFileInfo, QThread from AnyQt.QtCor...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_my.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u1014\u1036\u1014\u1000\u103a", "\u100a\u1014\u1031" ...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/spearmint/chooser/CMAChooser.py
from cma import CMAEvolutionStrategy from spearmint import util import Locker def init(expt_dir, arg_string): args = util.unpack_args(arg_string) return CMAChooser(expt_dir, **args) """ Chooser module for the CMA-ES evolutionary optimizer. """ class CMAChooser: def __init__(self, expt_dir): rais...
PypiClean
/Arpeggio-2.0.2.tar.gz/Arpeggio-2.0.2/docs/troubleshooting.md
# Troubleshooting Guide Common problems and mistakes --- ## Left recursion and RecursionError If you get `RecursionError: maximum recursion depth exceeded while calling a Python object` it is a good indication that you have a [left recursion](https://en.wikipedia.org/wiki/Left_recursion) in the grammar. !!! note ...
PypiClean
/MAnorm2_utils-1.0.0.tar.gz/MAnorm2_utils-1.0.0/docs/html/_static/doctools.js
* select a different prefix for underscore */ $u = _.noConflict(); /** * make the code below compatible with browsers without * an installed firebug like debugger if (!window.console || !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "...
PypiClean
/FactoringTotal-1.0.1.tar.gz/FactoringTotal-1.0.1/tipo_cambio/cambio_scrap.py
from datetime import datetime, timedelta from bs4 import BeautifulSoup from .exceptions import InvalidCurrency, InvalidSource, InvalidYearException, NoDataFoundException import requests import pandas as pd import numpy as np class TipoCambioFactoring: ENDPOINT = 'http://www.sbs.gob.pe/app/stats/seriesH-tipo_cam...
PypiClean
/Cessa-1.2.5rc1.tar.gz/Cessa-1.2.5rc1/pyke/contexts.py
import sys from pyke import pattern, unique _Not_found = unique.unique('Not_found') # Set to a sequence (or frozenset) of variable names to trace their bindings: debug = () class simple_context(object): def __init__(self): self.bindings = {} self.undo_list = [] self.save_all_undo_count =...
PypiClean
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/GetPCIeDeviceInventoryREDFISH.py
import argparse import getpass import json import logging import re import requests import sys import time import warnings from datetime import datetime from pprint import pprint warnings.filterwarnings("ignore") parser = argparse.ArgumentParser(description='Python script using Redfish API to get either PCIe device...
PypiClean
/EasyPyKnn-0.2.0-py3-none-any.whl/EasyKnn/neighbors.py
from typing import List from EasyKnn.errors import ReadOnlyAttributeError, CriticalDeletionError from EasyKnn.dataset import Dataset from EasyKnn.point import Point class Neighbors: """ Neighbors class represent the response of the :meth:`Plan<EasyKnn.plan.Plan.neighbors>` method. It is used to store the...
PypiClean
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/core/engines/watson/recognition_results.py
# Standard library imports from typing import Dict, Any, List from gailbot.core.utils.logger import makelogger import itertools # Local imports # Third party imports logger = makelogger("recognition_result") class Alternative: """ Models the smallest unit of a transcription result. """ def __init__...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/number.js
if(!dojo._hasResource["dojo.number"]){ dojo._hasResource["dojo.number"]=true; dojo.provide("dojo.number"); dojo.require("dojo.i18n"); dojo.requireLocalization("dojo.cldr","number",null,"ROOT,ar,ca,cs,da,de,de-de,el,en,en-au,en-gb,en-us,es,es-es,fi,fr,he,hu,it,ja,ja-jp,ko,ko-kr,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/decorlib.py
__all__ = ['anythread',] #-----------------------------------------------------------------------------# # Imports import wx import threading #-----------------------------------------------------------------------------# # # <Found on PyPi: License: Public Domain> # Author: Ryan Kelly # # wxAnyThread: allow met...
PypiClean
/Modulimagen-0.1.2.tar.gz/Modulimagen-0.1.2/README.md
# (Modulimagen) modular image generator A python module that contains functions which can be mixed and applied in sequence for generating matrices (which can be converted into images) in a modular way. ## installation ``` pip install Modulimagen ``` ## available tools - **wave (width, height, scale, offset, orientat...
PypiClean
/Mopidy-dLeyna-2.0.2.tar.gz/Mopidy-dLeyna-2.0.2/docs/index.rst
************* Mopidy-dLeyna ************* Mopidy-dLeyna is a Mopidy_ extension that lets you play music from DLNA_ Digital Media Servers using the dLeyna_ D-Bus interface. This extension lets you browse, search, and stream music from your NAS, PC, or any other device running a UPnP/DLNA compliant media server. Compa...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/jquery/src/attributes/classes.js
define([ "../core", "../var/rnotwhite", "../var/strundefined", "../core/init" ], function( jQuery, rnotwhite, strundefined ) { var rclass = /[\t\r\n\f]/g; jQuery.fn.extend({ addClass: function( value ) { var classes, elem, cur, clazz, j, finalValue, i = 0, len = this.length, proceed = typeof value ===...
PypiClean
/ChatWEB-2023.4.25.9.26.25.tar.gz/ChatWEB-2023.4.25.9.26.25/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install LLM4GPT, run this command in your terminal: .. code-block:: console $ pip install llm4gpt This is the preferred method to install LLM4GPT, as it will always install the most recent stable release. If you don...
PypiClean
/Flask-WTF-1.1.1.tar.gz/Flask-WTF-1.1.1/docs/csrf.rst
.. currentmodule:: flask_wtf.csrf .. _csrf: CSRF Protection =============== Any view using :class:`~flask_wtf.FlaskForm` to process the request is already getting CSRF protection. If you have views that don't use ``FlaskForm`` or make AJAX requests, use the provided CSRF extension to protect those requests as well. ...
PypiClean
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/widgets/experimental_elements/random_generator.py
__author__ = 'labx' import math, random, numpy class AbstractRandom: def __init__(self, bins=1000): self.random_generator = random.Random() self.random_generator.seed() self.prefix = numpy.zeros(bins+1) self.points = numpy.zeros(bins+1) def random(self): n = len(self....
PypiClean
/NSoL-0.1.14.tar.gz/NSoL-0.1.14/nsol/solver_parameter_study.py
import os import re import six import itertools import numpy as np import SimpleITK as sitk import matplotlib.pyplot as plt from abc import ABCMeta, abstractmethod import pysitk.python_helper as ph from nsol.parameter_study import ParameterStudy from nsol.reader_parameter_study import ReaderParameterStudy ## # Abs...
PypiClean
/Alarmageddon-1.1.2-py3-none-any.whl/alarmageddon/publishing/http.py
import time import requests from alarmageddon.publishing.publisher import Publisher from alarmageddon.publishing.exceptions import PublishFailure class HttpPublisher(Publisher): """Creates an HTTP Publisher that publishes successes and/or failures to either one or two HTTP end points. If you want the s...
PypiClean
/CDF-0.32.tar.gz/CDF-0.32/cdf/attribute.py
import weakref # cdf extension modules. import internal import framework import entry class attribute(framework.hashablyUniqueObject): def __init__(self, parent = None, num = None): self._parent = None self._num = None self._cache = None if parent is not None: self.adop...
PypiClean
/CPAT-3.0.4.tar.gz/CPAT-3.0.4/.eggs/nose-1.3.7-py3.7.egg/nose/pyversion.py
import sys import os import traceback import types import inspect import nose.util __all__ = ['make_instancemethod', 'cmp_to_key', 'sort_list', 'ClassType', 'TypeType', 'UNICODE_STRINGS', 'unbound_method', 'ismethod', 'bytes_', 'is_base_exception', 'force_unicode', 'exc_to_unicode', 'f...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/pouchdb-find/CONTRIBUTING.md
How to contribute to pouchdb-find ======= CouchDB setup ------- For the HTTP tests you need the master branch of CouchDB running. See the CouchDB [Readme](https://github.com/apache/couchdb) for instructions on running. Then setup a 1 node cluster for testing - `./dev/run --with-admin-party-please --with-haproxy -n 1`...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wcs11Transaction.py
import os.path import logging import traceback #from eoxserver.core.util.xmltools import DOMElementToXML #from eoxserver.core.exceptions import InternalError from eoxserver.services.interfaces import OperationHandlerInterface from eoxserver.services.interfaces import VersionHandlerInterface from eoxserver.services....
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/@popperjs/core/dist/umd/enums.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Popper = {})); }(this, (function (ex...
PypiClean