id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Ajango-1.0.0.tar.gz/Ajango-1.0.0/ajango/database/columns/__init__.py | """ Modul zarzadzania kolumnami. """
from django.core.management.base import CommandError
from ajango.core.factory import FactoryBase
from ajango.core.generable import Generable
from ajango.core.hybrid import Hybrid, get_str_object_factory
import abc
class ColumnFactoryObject(FactoryBase):
... | PypiClean |
/NMR_peaks_picking-0.1-py3-none-any.whl/nmrglue/fileio/nmrml.py | import base64
import zlib
from warnings import warn
import numpy as np
def read(filename, data_dtype=None):
"""
Read a nmrML file.
Parameters
----------
filename : str
Name of nmrML file to read.
data_dtype : str, optional
NumPy data type of the data. None, the default, will ... | PypiClean |
/DBSP_DRP-1.0.0-py3-none-any.whl/dbsp_drp/table_edit.py | import os
from datetime import datetime
from typing import Union, Tuple, List
from astropy.table import Table
import matplotlib.pyplot as plt
from numpy import ma
from PySide2 import QtCore, QtGui, QtWidgets
from PySide2.QtCore import Qt
from astropy.coordinates import Angle, SkyCoord, EarthLocation, AltAz, ICRS
fro... | PypiClean |
/KratosStructuralMechanicsApplication-9.4-cp310-cp310-win_amd64.whl/KratosMultiphysics/StructuralMechanicsApplication/structural_mechanics_custom_scipy_base_solver.py | import KratosMultiphysics
# Import applications
import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication
# Import base class file
from KratosMultiphysics.StructuralMechanicsApplication.structural_mechanics_solver import MechanicalSolver
# Import scipy modules
import KratosMultiphysi... | PypiClean |
/OBP_reliability_pillar_4-0.0.14-py3-none-any.whl/OBP_reliability_pillar_4/dynamodb/dynamodb_pitr_enabled.py | import logging
from botocore.exceptions import ClientError
from OBP_reliability_pillar_4.dynamodb.utils import list_dynamodb_tables
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
# Checks compliance for dynamodb-pitr-enabled
def dynamodb_pitr_enabled(self) -> dict:
"""
:param self:
... | PypiClean |
/Clorm-1.4.1-py3-none-any.whl/clorm/_clingo.py |
import functools
import itertools
import clingo as oclingo
from .util.wrapper import init_wrapper, make_class_wrapper
from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Sequence, Tuple, Type, Union, cast, overload
from .orm import *
__all__ = ["ClormControl", "ClormModel", "ClormSolveHandle", "_expand_... | PypiClean |
/KalaPy-0.4.2.tar.gz/KalaPy-0.4.2/docs/source/package.rst | Packages
========
A KalaPy project is a collection of several packages. A package represents
either a web application (e.g. a wiki or a blog) or an addon package. The
resources provided by an addon package will be served as resources of the
original package. This way, you can build a highly modular web applications
qu... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/fp16_utils/fp16util.py | import torch
import torch.nn as nn
from torch.autograd import Variable
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
class tofp16(nn.Module):
"""
Utility module that implements::
def forward(self, input):
return input.half()
"""
def __init__(self):
... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/specialchar/dialogs/lang/cs.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("specialchar","cs",{euro:"Znak eura",lsquo:"Počáteční uvozovka jednoduchá",rsquo:"Koncová uvozovka jednoduchá",ldquo:"Počáteční u... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/core/relational.py | from __future__ import annotations
import typing
from ..logic.boolalg import Boolean, BooleanAtom, false, true
from ..utilities import ordered
from .evalf import EvalfMixin
from .evaluate import global_evaluate
from .expr import Expr
from .function import _coeff_isneg
from .symbol import Dummy, Symbol
from .sympify i... | PypiClean |
/DeCiDa-1.1.5.tar.gz/DeCiDa-1.1.5/decida/SelectionDialog.py | import tkinter as tk
from decida.DialogBase import DialogBase
from decida.entry_emacs_bindings import entry_emacs_bindings
class SelectionDialog(DialogBase):
"""
**synopsis**:
*SelectionDialog* is a generic dialog for incorporating
a panel of check-boxes, radio-switch boxes, and entry boxes.
... | PypiClean |
/DataProfiler-0.10.3-py3-none-any.whl/dataprofiler/data_readers/graph_data.py | import csv
from typing import Dict, List, Optional, Union, cast
import networkx as nx
from . import data_utils
from .base_data import BaseData
from .csv_data import CSVData
from .filepath_or_buffer import FileOrBufferHandler
class GraphData(BaseData):
"""GraphData class to identify, read, and load graph data.""... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap-fileinput/js/locales/LANG.js | (function ($) {
"use strict";
$.fn.fileinputLocales['_LANG_'] = {
fileSingle: 'file',
filePlural: 'files',
browseLabel: 'Browse …',
removeLabel: 'Remove',
removeTitle: 'Clear selected files',
cancelLabel: 'Cancel',
cancelTitle: 'Abort ongoing uploa... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/__init__.py | import re
import string
from collections import OrderedDict
from typing import Any, Collection, List, Optional, Sequence, TypeVar, Union
from ..generator import Generator
from ..typing import OrderedDictType
from ..utils.distribution import choices_distribution, choices_distribution_unique
_re_hash = re.compile(r"#"... | PypiClean |
/KqlmagicCustom-0.1.114.post13-py3-none-any.whl/Kqlmagic/parser.py |
from typing import Tuple, Dict, List, Any
import itertools
import configparser as CP
from datetime import timedelta, datetime
import dateutil.parser
from traitlets import TraitType
from traitlets.config.configurable import Configurable
from ._debug_utils import debug_print
from .dependencies import Dependencies
fr... | PypiClean |
/Deliverance.Rewrite-0.6.3.tar.gz/Deliverance.Rewrite-0.6.3/deliverance/pyref.py | import os
import new
from string import Template
from UserDict import DictMixin
from tempita import html_quote
from deliverance.exceptions import DeliveranceSyntaxError
from deliverance.util.importstring import simple_import
from deliverance.util.nesteddict import NestedDict
from deliverance.util import filetourl
__al... | PypiClean |
/Nereid-2.8.0.3.tar.gz/Nereid-2.8.0.3/nereid/contrib/sitemap.py | from math import ceil
from tempfile import NamedTemporaryFile
import pytz
from lxml import etree
from lxml.builder import E
from nereid.helpers import send_file, url_for
from werkzeug.utils import cached_property
class SitemapIndex(object):
"""A collection of Sitemap objects
To add a sitemap index to one of... | PypiClean |
/FeinCMS-23.8.0.tar.gz/FeinCMS-23.8.0/feincms/templatetags/applicationcontent_tags.py | from django import template
from django.template import TemplateSyntaxError
from django.template.defaulttags import kwarg_re
from django.urls import NoReverseMatch
from django.utils.encoding import smart_str
from feincms.content.application.models import (
ApplicationContent,
app_reverse as do_app_reverse,
)
f... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Scanner/LaTeX.py | import os.path
import re
import SCons.Node.FS
import SCons.Util
import SCons.Warnings
from . import ScannerBase, FindPathDirs
# list of graphics file extensions for TeX and LaTeX
TexGraphics = ['.eps', '.ps']
#LatexGraphics = ['.pdf', '.png', '.jpg', '.gif', '.tif']
LatexGraphics = [ '.png', '.jpg', '.gif', '.tif']... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/dizoo/classic_control/cartpole/config/cartpole_r2d2_residual_config.py | from easydict import EasyDict
collector_env_num = 8
evaluator_env_num = 8
cartpole_r2d2__residual_config = dict(
exp_name='cartpole_r2d2_residual_seed0',
env=dict(
collector_env_num=collector_env_num,
evaluator_env_num=evaluator_env_num,
n_evaluator_episode=evaluator_env_num,
st... | PypiClean |
/Web/Charts/Pie/Pie.js |
//----------------------------------------------------------
function OnClick(d) {
CallPython(g_node_id, "OnChartSelection", { event_id: d.data.event_id, ctrl_key: d3.event.ctrlKey });
}
//----------------------------------------------------------
// global data
var g_data = null;
var g_title_text = null;
// ... | PypiClean |
/EccoDDE-0.9.1.zip/EccoDDE-0.9.1/README.txt | ============================
Scripting Ecco using EccoDDE
============================
EccoDDE is a very thin wrapper over the DDE API of the Ecco Pro personal
information manager for Windows. Unlike other Python interfaces to Ecco,
it does not provide any higher-level objects to represent items, folders, etc.,
but i... | PypiClean |
/FESTIM-0.11.1-py3-none-any.whl/festim/meshing/mesh_from_refinements.py | import fenics as f
from festim import Mesh1D
class MeshFromRefinements(Mesh1D):
"""
1D mesh with iterative refinements (on the left hand side of the domain)
Args:
initial_number_of_cells (float): initial number of cells before
refinement
size (float): total size of the 1D mesh
... | PypiClean |
/Flask_JSONRPC-2.2.2-py3-none-any.whl/flask_jsonrpc/contrib/browse/static/js/libs/handlebars-v1.1.2.js | var Handlebars = (function() {
// handlebars/safe-string.js
var __module4__ = (function() {
"use strict";
var __exports__;
// Build out our basic SafeString type
function SafeString(string) {
this.string = string;
}
SafeString.prototype.toString = function() {
return "" + this.string;
};
__exp... | PypiClean |
/KomiDL-0.7.1.tar.gz/KomiDL-0.7.1/komidl/extractors/nhentai.py | """This module contains the NHentai extractor class"""
import os
import re
from komidl.exceptions import ExtractorFailed
from .extractor import Extractor
class NHentaiEX(Extractor):
"""
An extractor for NHentai.net
"""
def __init__(self):
super().__init__()
self.name = "NHentai"
... | PypiClean |
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/docs/source/benchmark_docs/theory.rst | .. _theory:
=====================
The Theory Benchmark
=====================
| **Task:** controlling number of flips in RLS on LeadingOnes
| **Cost:** number of iterations until solution
| **Number of hyperparameters to control:** one float
| **State Information:** user specified, highly flexible
| **Noise Level:** f... | PypiClean |
/HTSQL-MSSQL-2.3.3.tar.gz/HTSQL-MSSQL-2.3.3/src/htsql_mssql/core/tr/encode.py |
from htsql.core.tr.flow import LiteralCode, FormulaCode
from htsql.core.tr.fn.signature import ReplaceSig, ConcatenateSig, LikeSig
from htsql.core.tr.fn.encode import EncodeContains
class MSSQLEncodeContains(EncodeContains):
def __call__(self):
lop = self.state.encode(self.binding.lop)
rop = se... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/grid/_Layout.js | if(!dojo._hasResource["dojox.grid._Layout"]){
dojo._hasResource["dojox.grid._Layout"]=true;
dojo.provide("dojox.grid._Layout");
dojo.require("dojox.grid.cells");
dojo.require("dojox.grid._RowSelector");
dojo.declare("dojox.grid._Layout",null,{constructor:function(_1){
this.grid=_1;
},cells:[],structure:null,defaultWidt... | PypiClean |
/IpfsML-1.0.2.tar.gz/IpfsML-1.0.2/nft_storage/model/error_response_error.py | import re # noqa: F401
import sys # noqa: F401
from nft_storage.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
va... | PypiClean |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Transform/Text/Vectors.py | from torchtext import vocab
from LAMDA_SSL.Base.Transformer import Transformer
import torch
class Vectors(Transformer):
def __init__(self,name='840B', cache=None, url=None, unk_init=None,pad_init=None, max_vectors=None,lower_case_backup=True,
pad_token='<pad>',unk_token='<unk>'):
# >> Param... | PypiClean |
/7Wonder-RL-Lib-0.1.1.tar.gz/7Wonder-RL-Lib-0.1.1/docs/_static/doctools.js | "use strict";
const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([
"TEXTAREA",
"INPUT",
"SELECT",
"BUTTON",
]);
const _ready = (callback) => {
if (document.readyState !== "loading") {
callback();
} else {
document.addEventListener("DOMContentLoaded", callback);
}
};
/**
* Small JavaScript module... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/Controls/AdhocDeviceFrame.py | import json
import os
from tkinter import Label, Entry, Button, StringVar
from LabExT.Utils import get_configuration_file_path
from LabExT.View.Controls.CustomFrame import CustomFrame
from LabExT.Wafer.Device import Device
class AdhocDeviceFrame(CustomFrame):
"""A control that allows to specify a device."""
... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/interfaces/model/model_controller.py | import os
import sys
import json
import base64
import datetime as dt
from copy import deepcopy
from multiprocessing.pool import ThreadPool
import pandas as pd
from dateutil.parser import parse as parse_datetime
from sqlalchemy import func, null
import numpy as np
import mindsdb.interfaces.storage.db as db
from minds... | PypiClean |
/CASCADe_jitter-0.9.5-py3-none-any.whl/cascade_jitter/jitter.py | import os
import numpy as np
import pathlib
import math
#import configparser
from typing import Tuple
from tqdm.auto import tqdm
from skimage.registration import phase_cross_correlation
#from skimage.transform import warp
#from skimage._shared.utils import safe_as_int
#from skimage.transform import rotate
#from skimage... | PypiClean |
/AoikRegistryEditor-0.1.0-py3-none-any.whl/aoikregistryeditor/aoikregistryeditor.py | from __future__ import absolute_import
import os.path
import sys
import webbrowser
#
def pythonpath_init():
"""
Prepare "sys.path" for import resolution.
@return: None.
"""
# Get this file's directory path
my_dir = os.path.dirname(os.path.abspath(__file__))
# Remove some paths from "sys... | PypiClean |
/Choco-1.0.5.tar.gz/Choco-1.0.5/choco/ext/beaker_cache.py |
from choco import errors
from choco.cache import CacheImpl
try:
from beaker import cache as beaker_cache
except:
has_beaker = False
else:
has_beaker = True
_beaker_cache = None
class BeakerCacheImpl(CacheImpl):
"""A :class:`.CacheImpl` provided for the Beaker caching system.
This plugin is u... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_vo.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 |
/Kiwiii-server-0.7.0.tar.gz/Kiwiii-server-0.7.0/kiwiii/stats/graphgen.py |
import os
import time
import networkx as nx
import community
def graph_loader(datatable, index_label,
node_keys=None, edge_keys=("weight",)):
""" load graph JSON file
Args:
datatable: JSON object
node_keys: list of node keys
edge_keys: list of edge keys
Returns... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/jinja2/jinja2/meta.py | from jinja2 import nodes
from jinja2.compiler import CodeGenerator
from jinja2._compat import string_types, iteritems
class TrackingCodeGenerator(CodeGenerator):
"""We abuse the code generator for introspection."""
def __init__(self, environment):
CodeGenerator.__init__(self, environment, '<introspec... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/webdav.py |
import os
from pymongo import MongoClient
from wsgidav import util, wsgidav_app
from wsgidav.dav_error import DAVError, HTTP_NOT_FOUND, HTTP_FORBIDDEN
from wsgidav.dc.base_dc import BaseDomainController
from wsgidav.dav_provider import DAVProvider
from wsgidav.fs_dav_provider import FolderResource, FileResource
from... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/embedders/embedders.py | import sys
from typing import Optional
import torch
from torch.nn import functional as F
from BIT_DL.pytorch.modules.embedders import embedder_utils
from BIT_DL.pytorch.modules.embedders.embedder_base import (
EmbedderBase, EmbeddingDropout)
__all__ = [
"WordEmbedder",
]
class WordEmbedder(EmbedderBase):
... | PypiClean |
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/config.py | import json
import os
import sys
import urllib
import warnings
from argparse import REMAINDER, ArgumentParser, _ArgumentGroup
from configparser import ConfigParser
from logging import (
CRITICAL,
DEBUG,
ERROR,
INFO,
NOTSET,
WARNING,
Logger,
basicConfig,
config,
getLogger,
)
from ... | PypiClean |
/EMD_signal-1.5.1-py3-none-any.whl/PyEMD/checks.py | import logging
import math
import numpy as np
from scipy import stats
from scipy.signal import find_peaks
# helper function: Find mean period of an IMF
def mean_period(data):
"""Return mean-period of signal."""
peaks = len(find_peaks(data, height=0)[0])
return len(data) / peaks if peaks > 0 else len(data... | PypiClean |
/Discord%20Anti-Spam-1.8.1.tar.gz/Discord Anti-Spam-1.8.1/antispam/plugins/anti_mass_mention.py | import datetime
import logging
from typing import Union
import attr
from antispam import AntiSpamHandler, GuildNotFound, PluginCache
from antispam.base_plugin import BasePlugin
from antispam.exceptions import MemberNotFound
from antispam.util import get_aware_time
log = logging.getLogger(__name__)
@attr.s
class Ma... | PypiClean |
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/sklearn_extensions/linear_model.py | import numbers
import numpy as np
import warnings
from collections.abc import Iterable
from scipy.stats import norm
from econml.sklearn_extensions.model_selection import WeightedKFold, WeightedStratifiedKFold
from econml.utilities import ndim, shape, reshape, _safe_norm_ppf, check_input_arrays
from sklearn import clone... | PypiClean |
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/core.py |
import re
from datetime import datetime, timedelta
from random import choice
import logging
import ibid
from ibid.config import IntOption, ListOption, DictOption
from ibid.plugins import Processor, handler
from ibid.plugins.identity import identify
class Addressed(Processor):
priority = -1500
addressed = Fa... | PypiClean |
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/app/general/model.py | from types import MethodType
from .orm import Config,LoadCase,Joint,Frame,Area,\
JointLoad,JointRestraint,\
FrameLoadDistributed,FrameLoadConcentrated,FrameLoadTemperature,FrameLoadStrain,\
AreaLoadToFrame,\
ResultModalPeriod,ResultJointDisplacement,ResultJointReaction,ResultFrameForce,ResultModalDisplacement
from hy... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/webz_handler/webz_handler.py | import os
import time
from typing import Any, Dict
import pandas as pd
import webzio
from dotty_dict import dotty
from mindsdb_sql import parse_sql
from mindsdb.integrations.handlers.webz_handler.webz_tables import (
WebzPostsTable,
WebzReviewsTable,
)
from mindsdb.integrations.libs.api_handler import APIHand... | PypiClean |
/JaqalPaq-1.2.0a1.tar.gz/JaqalPaq-1.2.0a1/src/jaqalpaq/core/algorithm/walkers.py | from collections import defaultdict
from itertools import chain
from .used_qubit_visitor import UsedQubitIndicesVisitor
from .visitor import Visitor
from jaqalpaq.core.locus import Locus
from jaqalpaq.error import JaqalError
from jaqalpaq.core.block import BlockStatement, LoopStatement
from jaqalpaq.core.branch import... | PypiClean |
/KratosConstitutiveLawsApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ConstitutiveLawsApplication/set_up_pre_stressed_oriented_composite_materials.py | import KratosMultiphysics as KM
import KratosMultiphysics.ConstitutiveLawsApplication as CLApp
from pathlib import Path
import math
def Factory(settings, Model):
if not isinstance(settings, KM.Parameters):
raise Exception(
"expected input shall be a Parameters object, encapsulating a json strin... | PypiClean |
/Djaizz-23.6.21.1-py3-none-any.whl/djaizz/model/models/ml/keras/pre_trained/vision/image_classification.py | from io import BytesIO
from sys import version_info
from typing import Union
from django.db.models.fields import CharField
from django.utils.functional import classproperty
from gradio.interface import Interface
from gradio.inputs import Image as ImageInput, Slider as SliderInput
from gradio.outputs import Label as L... | PypiClean |
/2ppy-0.4.0-py3-none-any.whl/tuprolog/core/parsing/__init__.py | from tuprolog import logger
# noinspection PyUnresolvedReferences
import jpype.imports
# noinspection PyUnresolvedReferences
import it.unibo.tuprolog.core.parsing as _parsing
from tuprolog.core import Term, Struct, Constant, Var, Atom, Numeric, Integer, Real, Clause
from tuprolog.jvmutils import InputStream
from tuprol... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/recording_result.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
vali... | PypiClean |
/Flask-TemplateSupport-2.0.1.tar.gz/Flask-TemplateSupport-2.0.1/README.rst | Flask-TemplateSupport
=====================
Template support for flask application, a collection for useful extra filters and functions,
and an easy way to register them.
Quickstart
~~~~~~~~~~
Install ``flask_template_support`` using ``pip``:
::
$ pip install Flask-TemplateSupport
.. _section-1:
Example usag... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/plugins/ContextMenu/lang/nl.js | {
"Cut": "Knippen",
"Copy": "Kopiëren",
"Paste": "Plakken",
"_Image Properties...": "Eigenschappen afbeelding...",
"_Modify Link...": "Hyperlin_k aanpassen...",
"Chec_k Link...": "Controleer hyperlin_k...",
"_Remove Link...": "Ve_rwijder hyperlink...",
"C_ell Properties...": "C_eleigenschappen...",
"R... | PypiClean |
/MJOLNIRGui-0.9.10.tar.gz/MJOLNIRGui-0.9.10/src/main/python/Views/SubtractionManager.py | from re import sub
import sys
sys.path.append('..')
try:
from MJOLNIRGui.src.main.python.DataModels import DataSetModel,SelectionModel,DataFileModel,DataFileInfoModel,subtractionSettings
from MJOLNIRGui.src.main.python.MJOLNIR_Data import GuiDataFile,GuiDataSet
from MJOLNIRGui.src.main.python._tools import... | PypiClean |
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/My_Python_scripts/Scrapy/demo_download_Microbiome_pdf_essential.py | import requests
import json
from lxml import etree
import time
import datetime
#获取网页相应内容
def get_one_page(url):
try:
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'}
response = requests.get(url, headers=heade... | PypiClean |
/AFStatsd-1.1.0.tar.gz/AFStatsd-1.1.0/afstatsd/afclient.py | from __future__ import absolute_import, print_function
"""
The AppFirst Statsd Transport
"""
__all__=['AFTransport', 'Statsd', 'UDPTransport']
import sys
import os
import errno
try:
import ctypes
except ImportError:
ctypes = None
try:
import win32file
import win32con
except ImportError:
win32fi... | PypiClean |
/Fuzzython-0.1.0.tar.gz/Fuzzython-0.1.0/rules/rule.py | from predicate import Predicate
__author__ = ''
class Rule(object):
"""
Base class for fuzzy rules
"""
__COUNT = 0
__slots__ = ('_antecedent', '_consequent', '_weight', '_number')
def __init__(self, antecedent, consequent, weight=1):
"""
Initialize a rule
:param ant... | PypiClean |
/GALFITools-1.0.0.tar.gz/GALFITools-1.0.0/src/galfitools/mge/mge1d.py |
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from os import path
import mgefit
from mgefit.mge_fit_1d import mge_fit_1d
from scipy.special import gammaincinv
#check modify
def main():
rad,me=np.genfromtxt("Blackout.txt",unpack=True)
#rad,me=np.genfromtxt("Blueout.txt",unp... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot_example/application_admin.py | from camelot.view.art import Icon
from camelot.admin.application_admin import ApplicationAdmin
from camelot.admin.section import Section
from camelot.core.utils import ugettext_lazy as _
# begin application admin
class MyApplicationAdmin(ApplicationAdmin):
name = 'Camelot Video Store'
# begin sections
def ge... | PypiClean |
/ConGen-0.0.5.tar.gz/ConGen-0.0.5/src/python-congen-git/build/lib/congen/exporters/CocoplanExporter.py | import csv
import math
import os
import wx
from exporters.Exporter import Exporter
class CocoplanExporter(Exporter):
def export(self):
self.export_pu()
def export_pu(self):
assert len(self.cost_layers) == 1, "Exactly one cost layer must be present!"
pu_rows = [["id", "cost", "xloc"... | PypiClean |
/Jinja2-3.1.2-py3-none-any.whl/jinja2/sandbox.py | import operator
import types
import typing as t
from _string import formatter_field_name_split # type: ignore
from collections import abc
from collections import deque
from string import Formatter
from markupsafe import EscapeFormatter
from markupsafe import Markup
from .environment import Environment
from .exceptio... | PypiClean |
/DecisionTreeClassifier-0.0.7.tar.gz/DecisionTreeClassifier-0.0.7/README.md | *First iteration of a decision tree classifier that can handle string variables.*
## Overview
- This is an implementation of a Decision Tree Classifier for both numerical and categorical features. It is comprised of several classes:
- DecisionNodeNumerical: Represents a numerical decision node, which holds a fea... | PypiClean |
/Fern2-1.4.1.tar.gz/Fern2-1.4.1/fern/data/data_tokenize.py | """data tokenize"""
from typing import *
import re
from collections import Counter
import jieba
import pandas as pd
from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer
SPECIAL_TOKEN = [
'[pad]', # 占位符
'[cls]', # 分类符
'[sep]', # 分割符号
'[ukn]', # 未知token
]
def str2word(str... | PypiClean |
/EasyModbusSilaaCooling-1.0.5.tar.gz/EasyModbusSilaaCooling-1.0.5/README.md | # EasyModbusSilaaCooling
This package is modification of the easymodbus package by Stefan Rossmann from "Stefan Rossmann Engineering" and customized to control a Helios KWL EC 170 W by Modbus TCP/IP.
The modfied lines are:
line 741:
length = len(values)*2+7
instead of length = 6
line 791:
length_lsb = length&0xFF;
... | PypiClean |
/Digger%20CLI-1.0.tar.gz/Digger CLI-1.0/diggercli/dg.py | from __future__ import print_function, unicode_literals
import os
from pprint import pprint
import re
from datetime import datetime
import threading
import shutil
import sys
import time
import json
import configparser
import random
import requests
import click
from pathlib import Path
from collections import OrderedDic... | PypiClean |
/Dts-OpenFisca-Core-34.8.0.tar.gz/Dts-OpenFisca-Core-34.8.0/openfisca_core/variables.py |
import datetime
import inspect
import re
import textwrap
from typing import Optional
import numpy as np
from sortedcontainers.sorteddict import SortedDict
from datetime import date
from openfisca_core import periods
from openfisca_core.entities import Entity
from openfisca_core import errors
from openfisca_core.inde... | PypiClean |
/Bank%20Package%20-%20Aamir%20and%20Conrad-1.0.1.tar.gz/Bank Package - Aamir and Conrad-1.0.1/Bank/cards/credit.py | from datetime import datetime
from . import card as cc
# Custom Exception Classes
class NegativeValueError(Exception):
pass
class InvalidPinCodeError(Exception):
pass
class StaffAuthenticationError(Exception):
pass
class credit(cc.card):
'''
Contains credit card class attributes and methods
... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/lorem/pl_PL/__init__.py | from typing import Dict
from .. import Provider as LoremProvider
class Provider(LoremProvider):
"""Implement lorem provider for ``pl_PL`` locale.
Source: https://pl.wiktionary.org/wiki/Indeks%3APolski_-_Najpopularniejsze_s%C5%82owa_1-2000
"""
word_list = (
"w",
"z",
"być",
... | PypiClean |
/FrUCToSA-0.3.2.tar.gz/FrUCToSA-0.3.2/fructosa/sensors.py |
#######################################################################
#
# Copyright (C) 2020 David Palao
#
# This file is part of FrUCToSA.
#
# FrUCToSA 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, ei... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/marketing/reports.js | const reports = new Vue({
el: '#reports',
delimiters: ["[[", "]]"],
mixins: [TwilioMixin],
data: {
toggle: 'yes',
filter_data: {},
account_usage: {
"total": 0,
"mms": 0,
"voice": 0,
"sms": 0,
"email": 0
},
... | PypiClean |
/Brain-Brew-0.3.10.tar.gz/Brain-Brew-0.3.10/brain_brew/representation/yaml/note_model_field.py | from dataclasses import dataclass, field
from typing import List, Union
from brain_brew.configuration.anki_field import AnkiField
from brain_brew.configuration.representation_base import RepresentationBase
from brain_brew.interfaces.yamale_verifyable import YamlRepr
NAME = AnkiField("name")
ORDINAL = AnkiField("ord",... | PypiClean |
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/launcher/launch.py |
# DeepSpeed Team
"""
DeepSpeed launcher, this is similar to torch's distributed.launch but supports
additional features such as arbitrary gpu exclusion.
deepspeed.launcher.launch is intended to be run on a single worker node and
will spawn several worker sub-processes depending on how many devices/ranks
are on the wo... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/th/gregorian.js | define(
"dojo/cldr/nls/th/gregorian", //begin v1.x content
{
"months-format-narrow": [
"ม.ค.",
"ก.พ.",
"มี.ค.",
"เม.ย.",
"พ.ค.",
"มิ.ย.",
"ก.ค.",
"ส.ค.",
"ก.ย.",
"ต.ค.",
"พ.ย.",
"ธ.ค."
],
"field-weekday": "วันในสัปดาห์",
"dateFormatItem-yQQQ": "QQQ y",
"dateFormatItem-yMEd": "EEE d/M/yyyy",... | PypiClean |
/JPype1-1.4.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/jpype/protocol.py | import _jpype
import datetime
import decimal
import sys
import _jpype
from . import _jclass
from . import _jcustomizer
# Copies of all private base types for reference
_JClass = _jpype._JClass
_JObject = _jpype._JObject
_JException = _jpype._JException
_JNumberLong = _jpype._JNumberLong
_JNumberFloat = _jpype._JNumber... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/utils.py | import os
import gc
import re
import ast
import copy
import json
import time
import base64
import select
import shutil
import string
import logging
import tarfile
import datetime
import requests
import tempfile
import traceback
import subprocess
from osgeo import ogr
from PIL import Image
from io import BytesIO, Strin... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/gui/errordialog.py | import functools
import io
import logging
import os
import platform
import sys
import traceback
import urllib
import urllib.parse
import urllib.request
from urllib.error import HTTPError, URLError
from urllib.request import urlopen
from cellprofiler_core.preferences import get_headless
ED_STOP = "Stop"
ED_CONTINUE = ... | PypiClean |
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/viz/streamlit_viz/viz_building_blocks/token_features.py | import nlu
from nlu.discovery import Discoverer
from typing import List, Optional
import streamlit as st
import pandas as pd
from nlu.pipe.viz.streamlit_viz.streamlit_utils_OS import StreamlitUtilsOS
from nlu.pipe.viz.streamlit_viz.gen_streamlit_code import get_code_for_viz
from nlu.pipe.viz.streamlit_viz.styles import... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/config/routing.py | from routes import Mapper
def make_map(config):
"""Create, configure and return the routes Mapper"""
map = Mapper(directory=config['pylons.paths']['controllers'],
always_scan=config['debug'])
map.minimization = False
map.explicit = False
# The ErrorController route (handles 404/50... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/views/decorators/csrf.py | import warnings
from django.middleware.csrf import CsrfViewMiddleware, get_token
from django.utils.decorators import decorator_from_middleware, available_attrs
from functools import wraps
csrf_protect = decorator_from_middleware(CsrfViewMiddleware)
csrf_protect.__name__ = "csrf_protect"
csrf_protect.__doc__ = """
Thi... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_transaction_links/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/FatBotSlim-0.2.tar.gz/FatBotSlim-0.2/fatbotslim/irc/codes.py | # Error replies.
ERR_NOSUCHNICK = '401'
ERR_NOSUCHSERVER = '402'
ERR_NOSUCHCHANNEL = '403'
ERR_CANNOTSENDTOCHAN = '404'
ERR_TOOMANYCHANNELS = '405'
ERR_WASNOSUCHNICK = '406'
ERR_TOOMANYTARGETS = '407'
ERR_NOORIGIN = '409'
ERR_NORECIPIENT = '411'
ERR_NOTEXTTOSEND = '412'
ERR_NOTOPLEVEL = '413'
ERR_WILDTOPLEVEL = '414'
E... | PypiClean |
/HTMLTestRunner-rv-1.1.2.tar.gz/HTMLTestRunner-rv-1.1.2/README.md | # HTMLTestRunner
```text
HTMLTestRunner for python3
A TestRunner for use with the Python unit testing framework.
It generates a HTML report to show the result at a glance.
It logs stdout to *.txt file with timestamp
Easy to find bugs
```
#[<span style="color: grey;"> Click here for HTMLTestRunner-rv documentation</s... | PypiClean |
/MedCLIP-0.0.3.tar.gz/MedCLIP-0.0.3/README.md | # MedCLIP
[](https://badge.fury.io/py/medclip)
[](https://pepy.tech/project/medclip)

:
"""Split ``request`` into ``non_stream, stream``... | PypiClean |
/ISPy-solar-0.2.3.tar.gz/ISPy-solar-0.2.3/ISPy/vis/show_hazel.py | import numpy as np
import matplotlib.pyplot as pl
import h5py
import time
from readout_fn import *
def xyplot(ix,iy):
pl.close(2)
fig, ax = pl.subplots(figsize=(10,6), nrows=2, ncols=2,num = 'OBSERVED & SYNTHETIC PROFILES')
ax = ax.flatten()
ix = int(np.ceil(ix))
iy = int(np.ceil(iy))
for i in range(0,4):
ax[i... | PypiClean |
/JO_AutoMl_Sathishmahi-0.0.5-py3-none-any.whl/JO_AutoMl/handle_missing_value_in_catData.py | import sys
import pandas as pd
from sklearn.linear_model import LogisticRegression
from JO_AutoMl.all_names import handle_miss_val_cat_dict as dic
from JO_AutoMl.exception import CustomException
class replace_nan_categorical_data:
def __init__(self):
pass
def _replace_nan_most_frequncy_data(self, da... | PypiClean |
/Chandler-debugPlugin-1.0.tar.gz/Chandler-debugPlugin-1.0/debug/SharingMenu.py |
import wx, logging
from application import schema, dialogs
from i18n import MessageFactory
from osaf import sharing, dumpreload
from osaf.activity import Activity
from osaf.framework.blocks.Block import Block
from osaf.framework.blocks import BlockEvent, MenuItem, Menu
from chandlerdb.item.Item import Item
_ = Mes... | PypiClean |
/Flask-Hashids-1.0.2.tar.gz/Flask-Hashids-1.0.2/README.md | # Flask-Hashids
Hashids integration for Flask applications, it is based on the [Hashid](https://github.com/davidaurelio/hashids-python) package available on [PyPi](https://pypi.org/project/hashids/). With this extension you can conveniently use integer ids for your application logic or database tables and hash them be... | PypiClean |
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/sandbox/pfun.py | import h5py
import numpy as np
from ImageD11 import sparseframe, cImageD11
def moments( bfrm ):
I = bfrm[:, cImageD11.s2D_I]
s = bfrm[:, cImageD11.s2D_sI] / I
f = bfrm[:, cImageD11.s2D_fI] / I
n = bfrm[:, cImageD11.s2D_1]
a = I / n
return s, f, a, n
def newpks(hf, scans=None, npixels=1, monito... | PypiClean |
/matchengine-V2-2.0.1.tar.gz/matchengine-V2-2.0.1/matchengine/internals/load.py | import csv
import json
import logging
import os
from argparse import Namespace
from contextlib import ExitStack
import yaml
from bson import json_util
from matchengine.internals.database_connectivity.mongo_connection import MongoDBConnection
logging.basicConfig(level=logging.INFO)
log = logging.getLogger('matchengin... | PypiClean |
/MaxSmart%20CLI-1.0.2.tar.gz/MaxSmart CLI-1.0.2/explorer.py | from socket import *
import select
import json
import time
import requests
from requests import Request
from datetime import datetime
import time
import random
from maxsmart_http import MaxsmartHttp
def toDayString(day):
if day == 0:
return 'Sun'
elif day == 1:
return 'Mon'
elif day == 2:
... | PypiClean |
/Heimdallr-0.2.7-py36-none-any.whl/heimdallr/utilities/server/teams_status.py | import json
import logging
import random
from typing import List
import msal
import requests
__all__ = ["team_members_status"]
from dash import html
from dash.html import Div, H3, H4, H2
def team_members_status(access_token) -> List[html.Div]:
"""
Get the status of all teams in the tenant
"""
membe... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/1232.a384d23c2e18e9886a98.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[1232],{1232:function(e){function t(e){return r("(",e,")?")}function r(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const n="boolean byte word String",i="Keyb... | PypiClean |
/Catactor-0.1.2.tar.gz/Catactor-0.1.2/shell_scripts/preprocessing_one_to_multi/visualization_GSE111586_multi.sh | set -euxo pipefail
#python ../../script/cATACter.py --original-filter --supervised distal --clabel id_order_distal --cindex global_index --rindex local_index --rlabel '' --verbose \
# --row global_ng_list/global_cell_ng_1_2C_cluster.csv,global_ng_list/global_cell_ng_1_3C_cluster.csv,global_ng_list/global_cell_ng_1_4B_c... | PypiClean |
/NetFetch-3.0.3.tar.gz/NetFetch-3.0.3/README.rst | NetFetch
========
Networked file storage and retrieval with optional password protection and compression using Redis.
Files are stored with a key of originating hostname and an absolute path to filename.
Files may be stored with a password, in which they are encrypted and the same password must be used to retrieve... | PypiClean |
/CIMtools-4.0.8.tar.gz/CIMtools-4.0.8/README.rst | CIMtools
=========
ChemoInformatics Modeling tools distributive.
Include ISIDA Fragmentor python wrapper and RDtool atom-to-atom mapper python wrapper.
INSTALL
=======
Linux Debian based
------------------
* Install python3.7, virtualenv and git::
sudo apt install python3.7 python3.7-dev git python3-virtuale... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/paper-button/README.md |
[](https://travis-ci.org/PolymerElements/paper-button)
[](https://beta.webcomponents.org/element/PolymerElements/paper-button)
##<... | PypiClean |
/ModbusGuiApp-1.1-py3-none-any.whl/modbus_gui_app/communication/modbus_connection.py | import asyncio
import logging
import re
from datetime import datetime
import aiohttp
from modbus_gui_app.communication.request_serializer import read_coils_serialize, \
read_discrete_inputs_serialize, read_holding_registers_serialize, read_input_registers_serialize
from modbus_gui_app.communication.request_serial... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.