id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/JPype1-1.4.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/jpype/_jobject.py
import _jpype __all__ = ['JObject'] class JObject(_jpype._JObject, internal=True): """ Base class for all object instances. It can be used to test if an object is a Java object instance with ``isinstance(obj, JObject)``. Calling ``JObject`` as a function can be used to covert or cast to specifi...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/dnd/move.js
if(!dojo._hasResource["dojo.dnd.move"]){ dojo._hasResource["dojo.dnd.move"]=true; dojo.provide("dojo.dnd.move"); dojo.require("dojo.dnd.Mover"); dojo.require("dojo.dnd.Moveable"); dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){ },within:false,markupFactory:function(_1,_2){ re...
PypiClean
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/classifier/cnn_1d.py
import os import torch import itertools import torch.nn as nn import torch.optim as optim import torch.nn.functional as func import ageas.classifier as classifier class Limited(nn.Module): """ Defining a CNN model treating input as 1D data with given hyperparameters Layer set number limited to max ==...
PypiClean
/FotoKilof-4.3.3-py3-none-any.whl/fotokilof/ini_save.py
import configparser import common import log def save(ini_data): """ save values into INI file """ # extract data file_ini = ini_data[0] main = ini_data[1] resize = ini_data[2] text = ini_data[3] rotate = ini_data[4] crop = ini_data[5] border = ini_data[6] color = ini_data[7] ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-uz-UZ.min.js
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"uz-UZ":{font:{bold:"қалин",italic:"К...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/backends/ddl_references.py
from copy import deepcopy class Reference: """Base class that defines the reference interface.""" def references_table(self, table): """ Return whether or not this instance references the specified table. """ return False def references_column(self, table, column): ...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/utils/__init__.py
import inspect import sys from AnyQt.QtCore import QObject from Orange.data.variable import TimeVariable from Orange.util import deepgetattr def vartype(var): if var.is_discrete: return 1 elif var.is_continuous: if isinstance(var, TimeVariable): return 4 return 2 elif...
PypiClean
/Genshi-0.7.7-py3-none-any.whl/genshi/filters/html.py
import re import six from genshi.core import Attrs, QName, stripentities from genshi.core import END, START, TEXT, COMMENT __all__ = ['HTMLFormFiller', 'HTMLSanitizer'] __docformat__ = 'restructuredtext en' class HTMLFormFiller(object): """A stream filter that can populate HTML forms from a dictionary of value...
PypiClean
/KingSnake-2.0.0.tar.gz/KingSnake-2.0.0/king_snake/player.py
from king_snake.errors import (FieldMustBeCastledError, FieldOccupiedError, IllegalMoveError, PawnMustCaptureError, TurnError) from king_snake.figures import Pawn, Rook, Knight, Bishop, Queen, Ki...
PypiClean
/GeoNDT-0.4.0.tar.gz/GeoNDT-0.4.0/docs/.build/html/readme.html
<!DOCTYPE html> <html class="writer-html4" lang="en" > <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Overview &mdash; GeoNDT Python library &#34;0.1.0&#34; documentation</title> <link rel="stylesheet" href="_static/css/theme.css" typ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/domexception/node_modules/webidl-conversions/README.md
# Web IDL Type Conversions on JavaScript Values This package implements, in JavaScript, the algorithms to convert a given JavaScript value according to a given [Web IDL](http://heycam.github.io/webidl/) [type](http://heycam.github.io/webidl/#idl-types). The goal is that you should be able to write code like ```js "u...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/GarageDetector/lib/efficientdet/model.py
import torch.nn as nn import torch from torchvision.ops.boxes import nms as nms_torch from lib.efficientnet import EfficientNet as EffNet from lib.efficientnet.utils import MemoryEfficientSwish, Swish from lib.efficientnet.utils_extra import Conv2dStaticSamePadding, MaxPool2dStaticSamePadding def nms(dets, thresh): ...
PypiClean
/Flask-LwAdmin-0.6.3.tar.gz/Flask-LwAdmin-0.6.3/HISTORY.rst
.. :changelog: History ------- 0.6.3 (2014-03-18) ++++++++++++++++++ - Bugfixes in macros (create / list / update) 0.6.2 (2013-12-31) ++++++++++++++++++ - Adding type bool display element 0.6.1 (2013-12-30) ++++++++++++++++++ - Active td in pager table for checkbox - Bugfix in pager macro 0.6.0 (2013-10-24) +++...
PypiClean
/Babel-2.12.1.tar.gz/Babel-2.12.1/docs/api/core.rst
Core Functionality ================== .. module:: babel.core The core API provides the basic core functionality. Primarily it provides the :class:`Locale` object and ways to create it. This object encapsulates a locale and exposes all the data it contains. All the core functionality is also directly importable fro...
PypiClean
/Benker-0.5.4.tar.gz/Benker-0.5.4/benker/parsers/cals/__init__.py
import re from lxml import etree from benker.box import Box from benker.common.lxml_iterwalk import iterwalk from benker.common.lxml_qname import QName from benker.parsers.base_parser import BaseParser from benker.parsers.cals.frame_styles import BORDER_NONE from benker.parsers.cals.frame_styles import BORDER_SOLID f...
PypiClean
/CDS-1.0.1.tar.gz/CDS-1.0.1/cds/modules/deposit/static/js/cds_deposit/avc/avc.module.js
function cdsDepositsConfig( $locationProvider, depositExtractedMetadataProvider, depositStatesProvider, depositStatusesProvider, depositActions, inheritedPropertiesProvider, taskRepresentationsProvider, urlBuilderProvider, typeReducerProvider, localStorageServiceProvider, sfErrorMessageProvider, ...
PypiClean
/GuangTestBeat-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/dowhy.py
import inspect import pandas as pd import numpy as np import warnings from econml.utilities import check_input_arrays, reshape_arrays_2dim, get_input_columns, MissingModule try: import dowhy from dowhy import CausalModel except ImportError as exn: dowhy = CausalModel = MissingModule("dowhy is no longer a de...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/src/lib/evaluateTailwindFunctions.js
import dlv from 'dlv' import didYouMean from 'didyoumean' import transformThemeValue from '../util/transformThemeValue' import parseValue from 'postcss-value-parser' import { normalizeScreens } from '../util/normalizeScreens' import buildMediaQuery from '../util/buildMediaQuery' import { toPath } from '../util/toPath' ...
PypiClean
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/sandbox/list_folder_images.py
from __future__ import print_function """ For a peak search interface Try to navigate the output of 'ls' in folders with lots of files Compress the list of names when there are a lot of numbers """ import re, os, time, sys try: from os import scandir except ImportError: class wrap: def __init__(se...
PypiClean
/GraphiPy-0.0.2a0-py3-none-any.whl/graphipy/graph/graph_neo4j.py
from py2neo import Graph import os import csv import pprint from graphipy.graph.graph_base import BaseGraph class NeoGraph(BaseGraph): def __init__(self, credentials): BaseGraph.__init__(self) self._type = "neo4j" self.graph = Graph(credentials) self.path = os.getcwd() + "\\csv" ...
PypiClean
/OPAF-0.9.2.tar.gz/OPAF-0.9.2/opaflib/miniPDF.py
import struct #For constructing a minimal pdf file ## PDF REference 3rd edition:: 3.2 Objects class PDFObject: def __init__(self): self.n=None self.v=None def __str__(self): raise Exception("Fail") ## PDF REference 3rd edition:: 3.2.1 Booleans Objects class PDFBool(PDFObject): def ...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/util/xmlmarshaller.py
from __future__ import print_function import sys from types import * import logging import xml.sax import xml.sax.handler import xml.sax.saxutils import datetime import noval.util.utillang as utillang import noval.util.objutils as objutils import noval.util.apputils as apputils import noval.util.logger as logger MODU...
PypiClean
/KalaPy-0.4.2.tar.gz/KalaPy-0.4.2/kalapy/db/engines/mysql/_database.py
import MySQLdb as dbapi from MySQLdb.converters import conversions from MySQLdb.constants import FIELD_TYPE from kalapy.db.engines import utils from kalapy.db.engines.relational import RelationalDatabase __all__ = ('DatabaseError', 'IntegrityError', 'Database') DatabaseError = dbapi.DatabaseError IntegrityError = ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/VariableRefNodes.py
from nuitka import Builtins, Variables from nuitka.ModuleRegistry import getOwnerFromCodeName from nuitka.PythonVersions import python_version from nuitka.tree.TreeHelpers import makeStatementsSequenceFromStatements from .ConstantRefNodes import makeConstantRefNode from .DictionaryNodes import ( ExpressionDictOper...
PypiClean
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/BulkUpload.py
from __future__ import absolute_import from .Core import * from ..Base import ( getXmlNodeBool, getXmlNodeFloat, getXmlNodeInt, getXmlNodeText, KalturaClientPlugin, KalturaEnumsFactory, KalturaObjectBase, KalturaObjectFactory, KalturaParams, KalturaServiceBase, ) ########## enu...
PypiClean
/DeepGlow-1.0.0.tar.gz/DeepGlow-1.0.0/paper/plots_paper.ipynb
``` from tensorflow import keras from matplotlib import pyplot as plt import matplotlib import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler import random import tensorflow as tf from matplotlib import rc from glob import glob rootdir = '/home/oliver/Documents/PhD/Projects/NNaglow/bo...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/gym_compat/scaler_attr_converter.py
import copy import numpy as np from grid2op.dtypes import dt_float from grid2op.gym_compat.utils import GYM_AVAILABLE, GYMNASIUM_AVAILABLE class __AuxScalerAttrConverter: """ This is a scaler that transforms a initial gym space `init_space` into its scale version. It can be use to scale the observation...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/reg/lag/remove.py
import pandas as pd from functools import partial from statsmodels.api import OLS class SimplifiedBase: def _set_attrs(self, attr_dict): for attr in attr_dict: setattr(self, attr, attr_dict[attr]) class SimplifiedRegressionResult(SimplifiedBase): direct_attrs = [ 'params', 'pva...
PypiClean
/Flask-Bootstrap-Components-0.2.0.tar.gz/Flask-Bootstrap-Components-0.2.0/flask_bootstrap_components/nav.py
from markupsafe import Markup from fnmatch import fnmatchcase from flask import request from .markup import * from .utils import url_or_url_for class NavItem: __slots__ = ["label", "target", "args", "preserve_args", "subendpoint_pattern"] def __init__(self, label, target, arg...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/dtl/filter/misc.js.uncompressed.js
define("dojox/dtl/filter/misc", [ "dojo/_base/lang", "dojo/_base/json", // dojo.toJson "../_base" ], function(lang,json,dd){ /*===== dd = dojox.dtl; =====*/ lang.getObject("dojox.dtl.filter.misc", true); lang.mixin(dd.filter.misc, { filesizeformat: function(value){ // summary: Format the value like a 'hu...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/data/encoders.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division import json import platform import uuid from compas.data.exceptions import DecoderError # We don't do this from `compas.IPY` to avoid circular imports if "ironpython" == platform.python_implementation().lower...
PypiClean
/FlyForms-1.0.0b1.tar.gz/FlyForms-1.0.0b1/docs/source/api/form.rst
.. _Form_api: .. module:: flyforms.core Forms ----- Class :py:class:`.Form` is the root class of FlyForms that provide the highest level API for data structures validation and mapping. All user-defined forms must inherit this class. Form class ~~~~~~~~~~ .. autoclass:: Form **Properties** .. autoattribut...
PypiClean
/Mapp-0.1.0.tar.gz/Mapp-0.1.0/mapp/performance/evaluation.py
from __future__ import division import sys, os, math, argparse #without append package path to sys.path mapp package couldn't be imported sys.path.append(os.path.dirname(os.path.realpath(__file__ + '/../../'))) from mapp.utils.common import MappFile, parse_mutations from mapp.utils.common import AminoAcids as aalist ...
PypiClean
/ISYlib-0.1.20150912c.tar.gz/ISYlib-0.1.20150912c/bin/isy_audit_pgm_x10.py
__author__ = "Peter Shipley" # # quick hack to check what X10 device are in use by which programs # # then report : # program name and X10 ids used # # summary list of all X10 ids # # TODO : add options # # print program's full path include parent folder opt_fullpath = True import xml.etree.ElementTre...
PypiClean
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/cogs/trivia/trivia.py
import asyncio import math import pathlib from collections import Counter from typing import List import io import yaml import discord from redbot.core import Config, commands, checks from redbot.cogs.bank import is_owner_if_bank_global from redbot.core.data_manager import cog_data_path from redbot.core.i18n import T...
PypiClean
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/tutorial/T3_configuration.py
from DeepPhysX.Sofa.Environment.SofaEnvironmentConfig import SofaEnvironmentConfig from DeepPhysX.Core.Network.BaseNetworkConfig import BaseNetworkConfig from DeepPhysX.Core.Database.BaseDatabaseConfig import BaseDatabaseConfig # Tutorial related imports from T1_environment import DummyEnvironment from T2_network impo...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/reg/lag/plot.py
import pandas as pd import matplotlib.pyplot as plt from dero.reg.interact import _interaction_tuple_to_var_name from dero.reg.iter import _set_interaction_tuples from dero.reg.hypothesis.lincom import hypothesis_test # TODO: make module flexible to not having interaction def interacted_lag_plot_from_reg_result_list...
PypiClean
/Emotion_recognition-1.0.2.tar.gz/Emotion_recognition-1.0.2/Emotion_recognition/utils/utils.py
from pickle import load, dump stopWords={'tenidos', 'serias', 'éramos', 'algunos', 'nuestras', 'habrias', 'somos', 'estamos', 'como', 'es', 'tuvimos', 'suyo', 'tuyas', 'seras', 'tendremos', 'estaré', 'hubieramos', 'seran', 'hubo', 'estadas', 'estuvimos', 'esten', 'mucho', 'habría', 'que', 'hubisteis', 'todo', 'tendré'...
PypiClean
/OctoBot-0.4.54.tar.gz/OctoBot-0.4.54/octobot/community/identifiers_provider.py
import octobot.constants as constants import octobot.enums as enums import octobot_commons.logging as logging import octobot_commons.configuration as configuration class IdentifiersProvider: ENABLED_ENVIRONMENT: str = None COMMUNITY_URL: str = None FEED_URL: str = None BACKEND_API_URL: str = None ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/glob2/glob2/impl.py
from __future__ import absolute_import import sys import os import re from os.path import join from . import fnmatch try: from itertools import imap except ImportError: imap = map class Globber(object): listdir = staticmethod(os.listdir) isdir = staticmethod(os.path.isdir) islink = staticmetho...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Variables/EnumVariable.py
from typing import Tuple, Callable import SCons.Errors __all__ = ['EnumVariable',] def _validator(key, val, env, vals) -> None: if val not in vals: raise SCons.Errors.UserError( 'Invalid value for option %s: %s. Valid values are: %s' % (key, val, vals)) def EnumVariable(key, help, default...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/EnableDisableBiosBootOrderDevicesREDFISH.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 either get current BIOS ...
PypiClean
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/widgets/utils/widgets.py
import os from AnyQt.QtWidgets import (QComboBox, QWidget, QHBoxLayout, QSizePolicy, QLineEdit, QDoubleSpinBox, QSpinBox, QTextEdit, QDateEdit, QGroupBox, QPushButton, QStyle, QFileDialog, QLabel, QGridLayout, Q...
PypiClean
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/fanery/_term.py
from inspect import ( # noqa ismodule as is_module, isfunction as is_function, isgenerator as is_generator, isbuiltin as is_builtin, isclass as is_class ) from os.path import isfile as _isfile, isdir as _isdir, basename as _basename from datetime import datetime, date from collections import Itera...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/xmpp/README
------------------------------------------------------------------------------- DojoX XMPP (Jabber Client) ------------------------------------------------------------------------------- Version .9 Release date: 07/05/2008 ------------------------------------------------------------------------------- Project state: ex...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/classes/tinymce.js
(function(win) { var whiteSpaceRe = /^\s*|\s*$/g, undefined, isRegExpBroken = 'B'.replace(/A(.)|B/, '$1') === '$1'; /** * Core namespace with core functionality for the TinyMCE API all sub classes will be added to this namespace/object. * * @static * @class tinymce * @example * // Using each method *...
PypiClean
/Godot-0.1.1.zip/Godot-0.1.1/godot/component/polygon.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from numpy import array from enthought.traits.api import \ Instance, Float, Bool, List, Trait, Tuple, on_trait_change from enthought.traits.u...
PypiClean
/HAFFET-0.1.2.tar.gz/HAFFET-0.1.2/sdapy/model_fitters.py
import os import numpy as np from scipy.optimize import minimize, curve_fit import matplotlib.pyplot as plt import emcee, time from multiprocessing import Pool, cpu_count from sdapy.functions import * from sdapy.corner_hack import quantile, corner_hack from sdapy.filters import central_wavelengths from sdapy import co...
PypiClean
/MACS_virtual_experiment-0.168.tar.gz/MACS_virtual_experiment-0.168/MACS_virtual_experiment/Demonstration/.ipynb_checkpoints/Demonstration of Virtual MACS expt object-checkpoint.ipynb
``` import sys import os import numpy as np cwd = os.getcwd() #Add the directory of the module to the path. sys.path.append('/'.join(cwd.split('/')[0:-1])) from virtualMACS import virtualMACS print('/'.join(cwd.split('/')[0:-1])) ``` # Initialize the object with a clear name and a cif file ``` testobj = virtualMACS('...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/plugins/coldcard/README.md
# Coldcard Hardware Wallet Plugin ## Just the glue please This code connects the public USB API and Electrum. Leverages all the good work that's been done by the Electrum team to support hardware wallets. ## Background The Coldcard has a larger screen (128x64) and a number pad. For this reason, all PIN code entry ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/timers.d.ts
declare module 'timers' { import { Abortable } from 'node:events'; import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises'; interface TimerOptions extends Abortable { /** * Set to `false` to indicate that...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/utils/testing/regression/summarize.py
import argparse import datetime import textwrap from pathlib import Path import yaml def read_resource_usage_file(recipe_dir): """Read resource usage from the log.""" resource_file = recipe_dir / 'run' / 'resource_usage.txt' usage = {} if not resource_file.exists(): return usage text = ...
PypiClean
/CRUDXWORKERTEJAS1899-0.4.tar.gz/CRUDXWORKERTEJAS1899-0.4/CRUD/settings.py
from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent TEMPLATE_DIR = Path.joinpath(BASE_DIR,'template') STATIC_DIR = Path.joinpath(BASE_DIR,'static') # Quick-start development settings - unsuitable for production # See https://docs...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-sql.js
Prism.languages.sql= { 'comment': { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: true }, 'string' : { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\])*\2/, greedy: true, lookbehind: true }, 'variable': /@[\w.$]+|@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, 'function': /\b(?:COUNT|SUM|...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/javascript/javascript.js
CodeMirror.defineMode("javascript", function(config, parserConfig) { var indentUnit = config.indentUnit; var jsonMode = parserConfig.json; var isTS = parserConfig.typescript; // Tokenizer var keywords = function(){ function kw(type) {return {type: type, style: "keyword"};} var A = kw("keyword a"), ...
PypiClean
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201810.py
from __future__ import unicode_literals name = '201810' division_schema = { '110000': '北京市', '110100': '市辖区', '110101': '东城区', '110102': '西城区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110111': '房山区', '110112': '通州区', '11011...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/torch_utils/network/res_block.py
from typing import Optional, Union import torch import torch.nn as nn from .nn_module import conv2d_block, fc_block class ResBlock(nn.Module): r""" Overview: Residual Block with 2D convolution layers, including 3 types: basic block: input channel: C x -> 3...
PypiClean
/FlaskFarm-4.0.104-py3-none-any.whl/flaskfarm/lib/support/base/string.py
import re import traceback from . import logger class SupportString(object): @classmethod def get_cate_char_by_first(cls, title): # get_first value = ord(title[0].upper()) if ord('가') <= value < ord('나'): return '가' if ord('나') <= value < ord('다'): return '나' if ord('다') <= v...
PypiClean
/Mako-1.2.4.tar.gz/Mako-1.2.4/doc/build/syntax.rst
.. _syntax_toplevel: ====== Syntax ====== A Mako template is parsed from a text stream containing any kind of content, XML, HTML, email text, etc. The template can further contain Mako-specific directives which represent variable and/or expression substitutions, control structures (i.e. conditionals and loops), serve...
PypiClean
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/charset_normalizer/md.py
from functools import lru_cache from typing import Optional, List from charset_normalizer.constant import UNICODE_SECONDARY_RANGE_KEYWORD from charset_normalizer.utils import is_punctuation, is_symbol, unicode_range, is_accentuated, is_latin, \ remove_accent, is_separator, is_cjk class MessDetectorPlugin: ""...
PypiClean
/ADMIRE_maastricht-1.1.1.1.zip/ADMIRE_maastricht-1.1.1.1/ADMIRE_maastricht/MatplotlibWidget5.py
__version__ = "1.0.0" from PyQt5.QtWidgets import QSizePolicy from PyQt5.QtCore import QSize from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as Canvas from matplotlib.figure import Figure from matplotlib import rcParams rcParams['font.size'] = 9 class MatplotlibWidget(Canvas): """ Matp...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ed_ipc.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: ed_ipc.py 72623 2012-10-06 19:33:06Z CJP $" __revision__ = "$Revision: 72623 $" #-----------------------------------------------------------------------------# # Imports import sys import wx import threading import socket import time #import select #...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/action2d/_IndicatorElement.js.uncompressed.js
define("dojox/charting/action2d/_IndicatorElement", ["dojo/_base/lang", "dojo/_base/declare", "../Element", "../plot2d/common", "../axis2d/common", "dojox/gfx"], function(lang, declare, Element, dcpc, dcac, gfx){ // all the code below should be removed when http://trac.dojotoolkit.org/ticket/11299 will be ava...
PypiClean
/BindingGP-0.0.36.tar.gz/BindingGP-0.0.36/bgp/gp.py
# @Time : 2019/11/12 15:13 # @Email : 986798607@qq.com # @Software: PyCharm # @License: GNU Lesser General Public License v3.0 """ Notes: This part are one copy from deap, change the random to numpy.random. """ import copy import operator import sys from collections import Counter from functools import ...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/multitask/fission/skip_hourglass/decompress.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 19-09-2021 """ import torch from torch import nn from neodroidvision.multitask.fission.skip_hourglass.modes import MergeMode, UpscaleMode __all__ = ["Decompress"] class Decompress(nn.Module): """ A helper Module that ...
PypiClean
/AnkiServer-2.0.6.tar.gz/AnkiServer-2.0.6/anki-bundled/anki/stdmodels.py
from anki.lang import _ from anki.consts import MODEL_CLOZE models = [] # Basic ########################################################################## def addBasicModel(col): mm = col.models m = mm.new(_("Basic")) fm = mm.newField(_("Front")) mm.addField(m, fm) fm = mm.newField(_("Back")) ...
PypiClean
/Octopost-1.0.1b0.tar.gz/Octopost-1.0.1b0/docs/module.rst
==================================== Code Documenation ==================================== ARPES ====== .. automodule:: arpes_model :members: DOS ====== .. automodule:: dos_model :members: Bandstructure ============== .. automodule:: bandstructure_model :members: Info ===== .. automodule:: output_read_mod...
PypiClean
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/security/views.py
import datetime import logging import re from flask import abort, current_app, flash, g, redirect, request, session, url_for from flask_babel import lazy_gettext from flask_login import login_user, logout_user import jwt from werkzeug.security import generate_password_hash from wtforms import PasswordField, validators...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/webcomponentsjs/ShadowDOM.min.js
"undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])...
PypiClean
/Bottlechest-0.7.1-cp34-cp34m-macosx_10_9_x86_64.whl/Bottlechest-0.7.1.dist-info/DESCRIPTION.rst
=========== Bottlechest =========== Introduction ============ Bottlechest is a fork of bottleneck (https://github.com/kwgoodman/bottleneck), specialized for use in Orange (https://github.com/biolab/orange3). Moving window functions, several other functions and all optimization of 3d arrays are removed to reduce the ...
PypiClean
/JoUtil-1.3.3-py3-none-any.whl/JoTools/txkj/parseXml.py
from ..utils.XmlUtil import XmlUtil # fixme 重写这个函数,速度更快 class ParseXml(object): """解析 xml 中的信息,将信息导出为 xml""" def __init__(self): self.__attrs = {"folder", "filename", "path", "segmented", "size", "source", "object"} # 所有的属性 self.__xml_info_dict = {} # xml 信息字典 self.__objects_info ...
PypiClean
/certfrtracker-1.6.3.tar.gz/certfrtracker-1.6.3/src/certfrtracker/html_parser.py
from bs4 import BeautifulSoup from re import sub import logging logger = logging.getLogger(__name__) def systems_parser(file_content) -> [str]: """ returns a string containing the content under the headers. separated by "|" for each line. :param file_content: str - html content :return: [str] """...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/5.9/dgram.js
var dgram = {}; /** * The dgram.Socket object is an [EventEmitter][] that encapsulates the * datagram functionality. * @constructor */ dgram.Socket = function() {} dgram.Socket.prototype = new events.EventEmitter(); /** * Tells the kernel to join a multicast group at the given multicastAddress * using the IP_AD...
PypiClean
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/retina_net/keras_retinanet/models/resnet.py
import keras import keras_resnet import keras_resnet.models from . import Backbone from . import retinanet class ResNetBackbone(Backbone): """ Describes backbone information and provides utility functions. """ def __init__(self, backbone): super(ResNetBackbone, self).__init__(backbone) s...
PypiClean
/KoiLang-1.2.0a0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl/kola/klvm/koilang.py
import os import sys from contextlib import contextmanager, suppress from functools import partial from threading import Lock from types import TracebackType, new_class from typing import (Any, Callable, Dict, Generator, List, Optional, Tuple, Type, TypeVar, Union, overload) from typing_extensions i...
PypiClean
/Finance-Hermes-0.3.6.tar.gz/Finance-Hermes-0.3.6/hermes/factors/technical/core/momentum.py
import numpy as np import pandas as pd from hermes.factors.technical.core.utilities import * def annealn(high, low, close, length=None, offset=None, **kwargs): length = int(length) if length and length > 0 else 14 offset = int(offset) if isinstance(offset, int) else 0 high_low_range = high - low high_...
PypiClean
/BioMine-0.9.5.zip/BioMine-0.9.5/biomine/webapi/entrez/entrezapi.py
import xml.etree.ElementTree as ET from biomine.webapi.webapi import webapi from biomine.variant.variant import variant from biomine.variant.mafvariant import mafvariant from biomine.variant.clinvarvariant import clinvarvariant import re class entrezapi(webapi): endpoint = "http://eutils.ncbi.nlm.nih.gov/entrez/euti...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-nr.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/FitsGeo-1.0.0.tar.gz/FitsGeo-1.0.0/fitsgeo/export.py
from .surface import created_surfaces from .material import created_materials from .cell import created_cells def phits_export( to_file=False, inp_name="example", export_surfaces=True, export_materials=True, export_cells=True): # TODO: improve export to file """ Function for printing defined sections in PHITS ...
PypiClean
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/SD_Lon/sdlon/sd_fixup.py
import datetime from datetime import date from functools import partial from operator import itemgetter from typing import List from typing import Optional from typing import Tuple from uuid import UUID import click import httpx from gql import gql from more_itertools import consume from more_itertools import flatten ...
PypiClean
/IsoCon-0.3.3.tar.gz/IsoCon-0.3.3/modules/nearest_neighbor_graph.py
from __future__ import print_function import os,sys import argparse import re import math import edlib import signal from multiprocessing import Pool import multiprocessing as mp import sys from modules.input_output import write_output def get_nearest_neighbors_helper(arguments): args, kwargs = arguments ret...
PypiClean
/OSLogManagement-0.0.1.tar.gz/OSLogManagement-0.0.1/README.md
# README.md Warning (bug not fixed): The LogManagemet package exports the terminal log in an unencrypted last_log.txt file, so it is exposed to plaintext in cases of forensic data recovery. Designed to create variables with results that you can obtain by filtering the log that your terminal gives you by OS commands. ...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/extra/browser/vendor/grid.locale.de.js
define(['aloha/jquery'], function(jQuery) { var $ = jQuery; ;(function($){ /** * jqGrid German Translation * Version 1.0.0 (developed for jQuery Grid 3.3.1) * Olaf Klöppel opensource@blue-hit.de * http://blue-hit.de/ * * Updated for jqGrid 3.8 * Andreas Flack * http://www.contentcontrol-berlin.de * * Dual...
PypiClean
/HY_sdk-0.2.56-py3-none-any.whl/hivisionai/hycv/utils.py
from PIL import Image import cv2 import numpy as np import math import warnings import csv import glob def cover_mask(image_path, mask_path, alpha=0.85, rate=0.1, if_save=True): """ 在图片右下角盖上水印 :param image_path: :param mask_path: 水印路径,以PNG方式读取 :param alpha: 不透明度,默认为0.85 :param rate: 水印比例,越小水印也...
PypiClean
/LDB_Inventory_Barcode-0.14.1.tar.gz/LDB_Inventory_Barcode-0.14.1/docs/supported-formats.rst
Supported Formats ========================= The following are the supported barcode formats. PRs for other code formats are welcome! Code 39 ------- .. inheritance-diagram:: barcode.codex.Code39 :parts: 1 .. autoclass:: barcode.codex.Code39 :members: Code 128 -------- .. versionadded:: 0.8beta1 .. inherita...
PypiClean
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/upload.py
from flask_babel import gettext from werkzeug.datastructures import FileStorage from wtforms import fields, ValidationError from wtforms.widgets import html_params, HTMLString from .filemanager import FileManager, ImageManager try: from wtforms.fields.core import _unset_value as unset_value except ImportError: ...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/permissions/roleAssignmentCollection.py
from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation from office365.sharepoint.base_entity_collection import BaseEntityCollection from office...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/classification/loss_functions/center_loss.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" """ import torch from torch import nn from torch.autograd.function import Function __all__ = ["CenterLoss", "CenterLossFunc"] class CenterLoss(nn.Module): """description""" def __init__(self, num_classes, feat_dim, size_average=True): ...
PypiClean
/Fo4doG_mess_client-0.0.2.tar.gz/Fo4doG_mess_client-0.0.2/client/client/add_contact.py
from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton import logging logger = logging.getLogger('client') class AddContactDialog(QDialog): ''' Диалог добавления пользователя в список контактов. Предлагает ...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/pyprof/prof/conv.py
from collections import OrderedDict from .utility import Utility from .base import OperatorLayerBase class Conv(OperatorLayerBase): """ # N = batch size # C,H,W = input channels, height, width # K,P,Q = output channels, height, width # R,S = filter height, width # g = groups """ #todo: refine winograd and FF...
PypiClean
/ERAlchemy-1.2.10.tar.gz/ERAlchemy-1.2.10/eralchemy/sqla.py
from eralchemy.models import Relation, Column, Table import sys from sqlalchemy.exc import CompileError if sys.version_info[0] == 3: unicode = str def relation_to_intermediary(fk): """Transform an SQLAlchemy ForeignKey object to it's intermediary representation. """ return Relation( right_col=for...
PypiClean
/Geode_GEM-0.12.0-py3-none-any.whl/geode_gem/widgets/stack.py
# Geode from geode_gem.widgets.common import GeodeGtkCommon from geode_gem.widgets.misc import GeodeGtkLabel # GObject from gi.repository import Gtk # ------------------------------------------------------------------------------ # Class # --------------------------------------------------------------------------...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/aiohttp/http_exceptions.py
from typing import Optional, Union from .typedefs import _CIMultiDict __all__ = ('HttpProcessingError',) class HttpProcessingError(Exception): """HTTP error. Shortcut for raising HTTP errors with custom code, message and headers. code: HTTP Error code. message: (optional) Error message. header...
PypiClean
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/bin/medpy_gradient.py
# build-in modules import argparse import logging # third-party modules import scipy from scipy.ndimage.filters import generic_gradient_magnitude, prewitt # path changes # own modules from medpy.io import load, save from medpy.core import Logger # information __author__ = "Oskar Maier" __version__ = "r0.2.0, 2011...
PypiClean
/Flask-User-pt-0.6.21.tar.gz/Flask-User-pt-0.6.21/flask_user/views.py
from datetime import datetime from flask import current_app, flash, redirect, request, url_for from flask_login import current_user, login_user, logout_user from .decorators import confirm_email_required, login_required from . import emails from . import signals from .translations import gettext as _ # Python version ...
PypiClean
/FairMongo-5.2.0.tar.gz/FairMongo-5.2.0/FCM/MCCore.py
from pymongo import MongoClient, bulk from pymongo.database import Database from FCM import MCServers from FCM.MCCollection import MCCollection from F import DICT, DATE from F.CLASS import FairClass from dateutil import parser import datetime from F.LOG import Log s = " " Log = Log(f"MCCore") """ -> THE MASTER BA...
PypiClean
/EvolutionaryParameterGrid-0.0.4.tar.gz/EvolutionaryParameterGrid-0.0.4/evolutionary_grid/EvolutionaryParameterGrid.py
import array import random import numpy from deap import base from deap import creator from deap import tools from deap.algorithms import varAnd def _mutIndividual(individual, up, indpb): for i, up in zip(range(len(up)), up): if random.random() < indpb: individual[i] = random.randint(0, up) ...
PypiClean
/EXIFnaming-0.0.21.tar.gz/EXIFnaming-0.0.21/README.md
# EXIFnaming [![Build Status](https://travis-ci.com/mvolkert/EXIFnaming.svg?branch=master)](https://travis-ci.com/mvolkert/EXIFnaming) [![PyPI version](https://badge.fury.io/py/EXIFnaming.svg)](https://badge.fury.io/py/EXIFnaming) ![PyPI - Downloads](https://img.shields.io/pypi/dm/EXIFnaming) <!---[![codecov](https://...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/TextBox.js
require({cache:{"url:dijit/form/templates/TextBox.html":"<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" data-dojo-attach-point='textbox,focusNode' autocomp...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/utils/classloader.py
from importlib import import_module from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.functional import cached_property def load_class(name, setting): """Import module and creates class given by name in string.""" try: module, attr = name.rspl...
PypiClean