id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/doc/sphinx/source/scripts/obitaxonomy.rst | .. automodule:: obitaxonomy
:py:mod:`obitaxonomy` specific options
---------------------------------------
.. cmdoption:: -a <TAXON_INFOS>, --add-taxon=<TAXON_INFOS>
Adds a new taxon to the taxonomy. The new taxon
is described by three values separ... | PypiClean |
/MLMetrics-0.2-py3-none-any.whl/mlmetrics/ranking.py |
import numpy as np
import pandas as pd
def get_df_top_k(df, col_user="user", col_item="item", col_rating="rating", k=3):
"""
Truncate user-item-rating dataframe by top K rating
Every user will only keep top K best rating items
"""
grouped_user_top_k_df = df.groupby(col_user, as_index=False)\
... | PypiClean |
/DubSplitter-0.4.0-py3-none-any.whl/dubSplitter/functions/slicer.py | import os
from colorama import Fore, Style
from pydub.exceptions import CouldntEncodeError
from pydub.silence import split_on_silence
from .path import mkdir, process_path, invalid_file_character_escape
from .stringEx import string_omit
from .voiceRecognition import recognition_with_whisper
from ..constants import te... | PypiClean |
/Demomgr-1.10.1-py3-none-any.whl/demomgr/threads/read_folder.py |
import os
import time
from demomgr.demo_data_manager import DemoDataManager
from demomgr.demo_info import DemoInfo
from demomgr.threads._threadsig import THREADSIG
from demomgr.threads._base import _StoppableBaseThread
from demomgr import constants as CNST
class ThreadReadFolder(_StoppableBaseThread):
"""
Thread t... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_tags_tag_transactions/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 |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/child_process.d.ts | declare module 'child_process' {
import { ObjectEncodingOptions } from 'node:fs';
import { EventEmitter, Abortable } from 'node:events';
import * as net from 'node:net';
import { Writable, Readable, Stream, Pipe } from 'node:stream';
import { URL } from 'node:url';
type Serializable = string | o... | PypiClean |
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/makers/GeneticAlgorithmMusicMaker.py | from typing import Optional, Union
import abjad
from .. import mutate
from ..core.GeneticAlgorithm import GeneticAlgorithm
class GeneticAlgorithmMusicMaker():
r"""Uses two :class:`auxjad.GeneticAlgorithm`'s, one for pitch and another
for attack points, in order to create musical cells. At each call of
:... | PypiClean |
/NEMO_rs2_access-1.5.1-py3-none-any.whl/NEMO_rs2_access/api.py | from argparse import Namespace
from datetime import datetime, timedelta
from typing import Dict, List
from NEMO.models import Area
from NEMO.utilities import export_format_datetime, quiet_int
from django.utils import timezone
from drf_excel.mixins import XLSXFileMixin
from rest_framework import status
from rest_framew... | PypiClean |
/NNTools-0.1.0.tar.gz/NNTools-0.1.0/nntools/utils/plotting.py | import math
import matplotlib.pyplot as plt
import numpy as np
import torch
from matplotlib import cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
from torchvision.utils import make_grid, draw_segmentation_masks
def plt_cmap(confMap, cmap_name='RdYlGn'):
n_classes = confMap.shape[0]
cmap = cm.get_... | PypiClean |
/GSEIMIITB-1.1.tar.gz/GSEIMIITB-1.1/src/grc/gui/canvas/param.py |
from __future__ import absolute_import
import numbers
from .drawable import Drawable
from .. import ParamWidgets, Utils, Constants
from ...core.params import Param as CoreParam
class Param(CoreParam):
"""The graphical parameter."""
make_cls_with_base = classmethod(Drawable.make_cls_with_base.__func__)
... | PypiClean |
/Flask-Velox-2014.04.25.tar.gz/Flask-Velox-2014.04.25/flask_velox/mixins/sqla/delete.py | from flask import flash, request
from flask_velox.mixins.template import TemplateMixin
from flask_velox.mixins.context import ContextMixin
from flask_velox.mixins.sqla.object import SingleObjectMixin
from werkzeug.routing import RequestRedirect
class DeleteObjectMixin(SingleObjectMixin, ContextMixin, TemplateMixin):
... | PypiClean |
/ElectroMagneticPythonGpu-0.0.0.tar.gz/ElectroMagneticPythonGpu-0.0.0/EMpy_gpu/modesolvers/interface.py | from builtins import range
from builtins import object
import numpy
class ModeSolver(object):
def solve(self, *argv):
raise NotImplementedError()
class Mode(object):
def get_x(self, x=None, y=None):
raise NotImplementedError()
def get_y(self, x=None, y=None):
rai... | PypiClean |
/MLTA-0.0.5.tar.gz/MLTA-0.0.5/README.md | # MLTA
Machine Learning Driven Technical Analysis Library in Python.
## Motivation
Technical Analysis has long been a stable for generating insights for trading. While the predictive power of each individual indicator is up for a debate, it is no denying that technical indicators are useful tools to create summary sta... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/utilities/connection_info.py | from typing import Dict
from joule.errors import ApiError
class ConnectionInfo:
"""
Encapsulates database connection information
"""
def __init__(self, username: str, password: str, port: int, database: str, host: str, nilmdb_url):
"""
Attributes:
username (str): database ... | PypiClean |
/ASF_IPC-2.1.0.tar.gz/ASF_IPC-2.1.0/README.md | # ASF_IPC
[](https://github.com/deluxghost/ASF_IPC/blob/master/LICENSE)
[](https://pypi.python.org/pypi/ASF-IPC)
[:
"""
Compute the distance preservation metric for the embedded data. The range ... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/integrations/flask_oauth2/authorization_server.py | from werkzeug.utils import import_string
from flask import Response, json
from flask import request as flask_req
from authlib.oauth2 import (
AuthorizationServer as _AuthorizationServer,
)
from authlib.oauth2.rfc6750 import BearerTokenGenerator
from authlib.common.security import generate_token
from .requests impor... | PypiClean |
/ML_Translator-0.0.1.tar.gz/ML_Translator-0.0.1/ML_Translator/__init__.py | from io import BytesIO
# import gradio as gr
# Def_04 Docx file to translated_Docx file
#from transformers import MarianMTModel, MarianTokenizer
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import nltk
from nltk.tokenize import sent_tokenize
from nltk.tokenize import LineTokenizer
nltk.download('punkt'... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/environments/twoplayergames/gomokuplayers/moduledecision.py | __author__ = 'Tom Schaul, tom@idsia.ch'
from scipy import zeros, ones
from pybrain.rl.environments.twoplayergames import GomokuGame
from randomplayer import RandomGomokuPlayer
from pybrain.utilities import drawGibbs
class ModuleDecidingPlayer(RandomGomokuPlayer):
""" A Go-Moku player that plays according to th... | PypiClean |
/dokos-1.0.6.tar.gz/dokos-1.0.6/README.md | # Dokos
[](https://gitlab.cylab.be/cylab/dokos/-/commits/main)
[](https://gitlab.cylab.be/cylab/dokos/-/releases)
A simple Python brute-force login cracker. Basica... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/settings.py | import os
from local_settings import LocalConfig
class BaseConfig(LocalConfig):
SYSTEM_MESSAGE_CATEGORIES = [
'success' # 0 - GREEN
'info', # 1 - BLUE
'warning', # 2 - YELLOW
'danger', # 3 - RED
]
ADMIN_PER_PAGE = 5
... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/jobs/job_analysis.py |
import logging
import os
from jade.common import JOBS_OUTPUT_DIR
from jade.enums import JobCompletionStatus
from jade.exceptions import ExecutionError, InvalidParameter
from jade.result import ResultsSummary
from jade.utils.utils import load_data
logger = logging.getLogger(__name__)
class JobAnalysis:
"""Prov... | PypiClean |
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/permission.py | import builtins
import datetime
from files_sdk.api import Api
from files_sdk.list_obj import ListObj
from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError
class Permission:
default_attributes = {
'id': None, # int64 - Permission ID
'path': None, ... | PypiClean |
/MagnetiCalc-1.15.2.tar.gz/MagnetiCalc-1.15.2/magneticalc/View_Menu.py |
# ISC License
#
# Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# TH... | PypiClean |
/BigchainDBNext-2.2.2.1.tar.gz/BigchainDBNext-2.2.2.1/bigchaindb/models.py |
from bigchaindb.backend.schema import validate_language_key
from bigchaindb.common.exceptions import (InvalidSignature,
DuplicateTransaction)
from bigchaindb.common.schema import validate_transaction_schema
from bigchaindb.common.transaction import Transaction
from bigchaindb.... | PypiClean |
/Generator_Name-0.0.4.tar.gz/Generator_Name-0.0.4/Generador_Nombre/__init__.py | from pytransform import pyarmor_runtime
pyarmor_runtime()
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x07\x00\x42\x0d\x0d\x0a\x04\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\xd8\x08\x00\x00\x00\x00\x00\x18\x86\x40\xc4\xc0\x31\xe4\x2e\xc6\x0b\x5c\xd0\x6d\x48\xda\xf1\xec\x00... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/torch_utilities/generators/to_tensor_generator.py | from typing import Iterable, Iterator, Tuple, Union, MutableMapping
import numpy
import torch
from draugr.torch_utilities.datasets import NonSequentialDataset
from draugr.torch_utilities.tensors import to_tensor
from torch.utils.data.dataloader import DataLoader
from warg import passes_kws_to
__author__ = "Christian... | PypiClean |
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/datasets/pipelines/normalization.py | import mmcv
import numpy as np
from ..registry import PIPELINES
@PIPELINES.register_module()
class Normalize:
"""Normalize images with the given mean and std value.
Required keys are the keys in attribute "keys", added or modified keys are
the keys in attribute "keys" and these keys with postfix '_norm_... | PypiClean |
/Bubot_AuthService-0.0.8-py3-none-any.whl/BubotObj/OcfDevice/subtype/AuthService/static/ui/js/chunk-2a0f19ce.54589815.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a0f19ce"],{"1cc8":function(t,e,r){},"4bd4":function(t,e,r){"use strict";r("4de4"),r("7db0"),r("4160"),r("caad"),r("07ac"),r("2532"),r("159b"),r("4795");var n=r("5530"),i=r("58df"),a=r("7e2b"),s=r("3206");e["a"]=Object(i["a"])(a["a"],Object(s["b"])("form... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/versioneer.py | from __future__ import absolute_import, division, print_function, unicode_literals
### NOTE #################################################################################
# This file has to stay format compatible to Python 2, or pip under Python 2 will
# not be able to detect that OctoPrint requires Python 3 but in... | PypiClean |
/Bookbank-0.0.1.tar.gz/Bookbank-0.0.1/bookbank/models.py | from bookbank.core import db, flask_bcrypt
from flask.ext.security import UserMixin, RoleMixin, SQLAlchemyUserDatastore
# __all__ = []
roles_users = db.Table('roles_users',
db.Column('user_id', db.Integer(), db.ForeignKey('user.id')),
db.Column('role_id', db.Integer(), d... | PypiClean |
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/transformers/torch/file_utils.py | import copy
import fnmatch
import importlib.util
import io
import json
import os
import re
import shutil
import sys
import tarfile
import tempfile
import operator
import types
import functools
from collections import OrderedDict, UserDict
from contextlib import contextmanager
from dataclasses import fields
from enum im... | PypiClean |
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/databases/implementations/db_writer.py | import octobot_commons.databases.bases.base_database as base_database
import octobot_commons.databases.document_database_adaptors as adaptors
import octobot_commons.errors as commons_errors
import octobot_commons.logging as commons_logging
class DBWriter(base_database.BaseDatabase):
MAX_ROWS_BUFFER_SIZE = 500
... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/pilot/impl/pilot_manager.py | import sys
import os
import time
import threading
import logging
import pdb
import Queue
import uuid
import traceback
import urlparse
from bigjob import logger
import pilot
from pilot.api import ComputeDataService, State
from pilot.impl.pilotdata_manager import DataUnit
from pilot.impl.pilotcompute_manager import Com... | PypiClean |
/ExplorerFromWSL-1.0.0.tar.gz/ExplorerFromWSL-1.0.0/README.md | # explorer-from-wsl
call explorer.exe from wsl shell by unix-style path
## install
```bash
$ python3 -m pip install ExplorerFromWSL
```
## uninstall
```bash
$ python3 -m pip uninstall ExplorerFromWSL
```
## usage
### wsl shell command
#### open current directory
```bash
$ explorer .
```
or, simply
```bash
$ e... | PypiClean |
/Connectome_Utilities-0.4.0-py3-none-any.whl/conntility/analysis/library/diffusion_mapping.py | import numpy
from tqdm import tqdm
from scipy.sparse import issparse
def similarity_matrix(C):
"""Turns a L x N connectivity matrix into a L x L similarity matrix. I.e. evaluates how similar the
individual _rows_ of the input matrix are.
Additionally returns a normalized version of the similarity that is... | PypiClean |
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/handlers/geotiff.py | import rasterio
import numpy as np
import pandas as pd
from affine import Affine
from pyproj import Transformer
from rex.utilities.parse_keys import parse_keys
from reVX.utilities.exceptions import GeoTiffKeyError
class Geotiff:
"""GeoTIFF handler object."""
def __init__(self, fpath, chunks=(128, 128)):
... | PypiClean |
/DeepSpectrumLite-1.0.2.tar.gz/DeepSpectrumLite-1.0.2/src/deepspectrumlite/cli/predict.py | import logging
import click
from .utils import add_options
import os
import sys
import tensorflow as tf
from tensorflow import keras
import math
from tensorflow.keras import backend as K
from tensorflow.python.saved_model import loader_impl
from deepspectrumlite import AugmentableModel, DataPipeline, HyperParameterList... | PypiClean |
/NDBC-1.2.0.tar.gz/NDBC-1.2.0/CHANGELOG.rst | =========
Changelog
=========
Version 1.2.0
=============
- feat: Updated documentation links for PyPI publishing
- feat: Added documentation workflow
Version 1.1.2
=============
- bug(fix) Update `pandas.read_csv` function call to avoid deprecated positional arguments
Version 1.1.1
=============
- bug(fix) Correct ... | PypiClean |
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/pypop/prv.py | import pandas
import numpy
from hashlib import sha1
from warnings import warn
from collections import OrderedDict
from csv import writer as csvwriter
from io import StringIO
from pypop.utils.io import zipopen
from pypop.utils.pandas import HDFStoreContext
from pypop.utils.exceptions import WrongLoaderError
from pypo... | PypiClean |
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/skills/mycroft_skill/mycroft_skill.py | """Common functionality relating to the implementation of mycroft skills."""
from copy import deepcopy
import sys
import re
import traceback
from itertools import chain
from os import walk
from os.path import join, abspath, dirname, basename, exists
from pathlib import Path
from threading import Event, Timer
from xdg... | PypiClean |
/Invoice-GUBS-0.0.0.2.tar.gz/Invoice-GUBS-0.0.0.2/src/InvoiceOcrGubs/script.py | import cv2
import argparse
import re
import ctypes
from PIL import Image
import img2pdf
import os
import pytesseract
import pymongo
from pdf2image import convert_from_path
import math
from typing import Tuple, Union
import cv2
import numpy as np
from deskew import determine_skew
def rotate(
image: np.ndarra... | PypiClean |
/ADLES-1.4.0.tar.gz/ADLES-1.4.0/adles/vsphere/vm.py | import logging
import os
from pyVmomi import vim
from adles import utils
from adles.vsphere.folder_utils import find_in_folder
# Docs: https://goo.gl/CRhYEX
class VM:
""" Represents a VMware vSphere Virtual Machine instance.
.. warning:: You must call :meth:`create` if a vim.VirtualMachine object
... | PypiClean |
/htpolynet-1.0.7.3.tar.gz/htpolynet-1.0.7.3/docs/source/example-tutorials/shortbuilds/3-VE-STY/introduction.rst | .. _ve_introduction:
Introduction
============
The first step is to get to a clean working directory, and then use ``htpolynet fetch-example`` to setup this example.
.. code-block:: console
$ mkdir my_vinyl_ester
$ cd my_vinyl_ester
$ htpolynet fetch-example -n 3
$ ls
3-bisgma-styrene-thermoset/
$... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/vcs/__init__.py | from __future__ import absolute_import
import errno
import logging
import os
import shutil
import sys
from pip._vendor import pkg_resources
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._internal.exceptions import BadCommand
from pip._internal.utils.misc import (
ask_path_exists, backup... | PypiClean |
/ISPy-solar-0.2.3.tar.gz/ISPy-solar-0.2.3/ISPy/spec/atlas.py | import numpy as np
import os
import scipy.io.idl as idl
import astropy.units as u
import astropy.constants as const
class atlas:
"""
Class to load (FTS) spectral atlas
Parameters
----------
None
Attributes
----------
cont : array_like
full atlas continuum intensities in units ... | PypiClean |
/EagleSCR-0.2.0.tar.gz/EagleSCR-0.2.0/README.md | pyEagleSCR
--
pyEagleSCR is a pure Python parser for the scripting language used by [AutoDesk/CADSoft Eagle's PCB schematic/layout tool](https://www.autodesk.com/products/eagle).
For now, it aims to support only the functionality needed to parse symbols and packages, to ease use of part specifications in other tools l... | PypiClean |
/LI-AWS-Deploy-3.4.18.tar.gz/LI-AWS-Deploy-3.4.18/tools/settings.py | from __future__ import print_function, unicode_literals, with_statement, nested_scopes
# Linha de comando para o prompt
################################
TERMINAL_CMD = "li"
# Configurações do Projeto
##########################
CONFIG_FILE = "li-config"
ENV_NAME = "LI_PROJECT_PATH"
STAGE_DB = "db-staging.awsli.com.b... | PypiClean |
/Autoneuro-0.0.1.tar.gz/Autoneuro-0.0.1/EDA.py | import numpy as np
import pandas as pd
import logger
'''from sklearn.decomposition import PCA
from imblearn.over_sampling import RandomOverSampler, SMOTE
from imblearn.under_sampling import RandomUnderSampler
from sklearn.feature_selection import VarianceThreshold
from sklearn.preprocessing import StandardScaler
from s... | PypiClean |
/Minio_hung-0.0.7.1.tar.gz/Minio_hung-0.0.7.1/README.md |
# Minio-hung: Print your buckets and .csv files from Minio
## Powered by Ly Duc Hung (FPT Infomation System)
### Bản update nho nhỏ bớt cục súc hơn & bớt mất dạy hơn (Còn nếu bạn chưa biết thì oke bỏ qua đi đừng quan tâm làm gì).
# How to install?
```
pip install Minio-hung
```
## or
Windows
```
py -m pip install M... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/template/base.py | import logging
import re
from enum import Enum
from inspect import getcallargs, getfullargspec, unwrap
from django.template.context import ( # NOQA: imported for backwards compatibility
BaseContext, Context, ContextPopException, RequestContext,
)
from django.utils.formats import localize
from django.utils.html im... | PypiClean |
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/parse/nmr.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import copy
import logging
import re
from ..model import Compound, NmrSpectrum, NmrPeak
from ..utils import first
from .actions import join, merge, strip_stop, fix_whit... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/specs/tunneling_app.rst | This work is licensed under a Creative Commons Attribution 3.0 Unported
License.
http://creativecommons.org/licenses/by/3.0/legalcode
=============
Tunneling App
=============
https://blueprints.launchpad.net/dragonflow/+spec/Tunneling-app
The tunneling app is taking care for the processing of segmented overlay... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/object-assign/index.js | 'use strict';
/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) {
if (val === null || val === undefined) {
throw new TypeError('Objec... | PypiClean |
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/src/EIMTC/models/_graphdapp.py | from tensorflow.keras.models import Model
from tensorflow.keras.layers import Layer, BatchNormalization, Concatenate, Dropout, Dense, Softmax
from tensorflow.keras import activations
import tensorflow as tf
class GraphDApp(Model):
'''
# GraphDApp Model
## Parameters
- `n_classes` (int): Number of... | PypiClean |
/Cross_Matching-0.1.4.tar.gz/Cross_Matching-0.1.4/Cross_Matching/Cross_Match.py |
import numpy as np
import astropy.units as u
from astropy.coordinates import SkyCoord
import warnings
warnings.filterwarnings('error')
# Function to work out the xy cartesian distance. (only works for cartesian).
def radii_distance(x1,x2,y1,y2):
return np.sqrt((x1-x2)**2+(y1-y2)**2)
# Function to work out the d... | PypiClean |
/OGER-1.5.tar.gz/OGER-1.5/oger/doc/pubmed.py |
# Nico Colic, 2015--2017
# Modified by Adrian van der Lek and Lenz Furrer, 2016--2017
'''
Loaders for different formats provided by PubMed.
'''
__all__ = ['MedlineLoader',
'PXMLLoader', 'PXMLFetcher', 'PMCLoader', 'PMCFetcher']
import gzip
import logging
import itertools as it
from urllib import reque... | PypiClean |
/DiPAS-2.0.tar.gz/DiPAS-2.0/docs/source/conventions.rst | Conventions
===========
Regarding the various conventions we mostly follow MADX in order to provide a smooth transition from one program to the
other and hence the user may refer to [1]_ (Chapter 1) for details.
* Units for the various physical quantities follow the MADX definitions (see [1]_, Chapter 1.8).
* The pha... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/sqlacodegen_wrapper/sqlacodegen/sqlacodegen/als_safrs_310/codegen/codegenZ.py | from __future__ import unicode_literals, division, print_function, absolute_import
import inspect
import re
import sys, logging
from collections import defaultdict
from importlib import import_module
from inspect import FullArgSpec # val-311
from keyword import iskeyword
import sqlalchemy
import sqlalchemy.exc
from ... | PypiClean |
/Beetstream-1.2.0.tar.gz/Beetstream-1.2.0/beetsplug/beetstream/dummy.py | from beetsplug.beetstream.utils import *
from beetsplug.beetstream import app
from flask import request, Response
import xml.etree.cElementTree as ET
# Fake endpoint to avoid some apps errors
@app.route('/rest/scrobble', methods=["GET", "POST"])
@app.route('/rest/scrobble.view', methods=["GET", "POST"])
@app.route('/r... | PypiClean |
/DroneConnect-0.1.5.tar.gz/DroneConnect-0.1.5/bin/droneconnect_client.py |
from __future__ import print_function
from optparse import OptionParser
import grpc
import droneconnect_pb2
import sys, time
import gpxpy
import gpxpy.gpx
def readGPXFile(pathFile):
""" Reads the route contained within the .gpx file .
Returns:
The full contents of the route gpx file as a sequence of ... | PypiClean |
/NeoDym-0.2.1.tar.gz/NeoDym-0.2.1/neodym/message.py | __author__ = "Brian Wiborg <baccenfutter@c-base.org"
__date__ = "2013/08/31"
__license__ = "GNU/AGPL-3.0"
import logging
import UserDict
import hashlib
import json
from neodym.exceptions import (AlreadyInitialized, MalformedMessage,
UnregisteredMessage, UnknownAttribute)
class Registe... | PypiClean |
/AeoLiS-2.1.1.tar.gz/AeoLiS-2.1.1/aeolis/bed.py | from __future__ import absolute_import, division
import logging
import numpy as np
import aeolis.gridparams
from matplotlib import pyplot as plt
# package modules
from aeolis.utils import *
#import matplotlib.pyplot as plt
# initialize logger
logger = logging.getLogger(__name__)
def initialize(s, p):
'''Initi... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/auth/models.py | from __future__ import unicode_literals
import re
import warnings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail import send_mail
from django.core import validators
from django.db import models
from django.db.models.manager import EmptyManager
from django.utils.crypto import get_random_s... | PypiClean |
/ConferenceCorpus-0.1.1.tar.gz/ConferenceCorpus-0.1.1/corpus/utils/progress.py | import time
from corpus.utils.download import Profiler
import getpass
import os
import sys
import psutil
class Progress(object):
'''
Progress Display
'''
def __init__(self,progressSteps:int=None,expectedTotal:int=None,showDots:bool=False,msg:str=None,showMemory=False):
'''
Constructor
... | PypiClean |
/Ldtools-0.8.1.tar.gz/Ldtools-0.8.1/ldtools/utils.py | from __future__ import print_function
# py3
try:
import urlparse
except ImportError:
import urllib.parse as urlparse
# py3
try:
import urllib2
except:
import urllib.request as urllib2 # used in other modules
import rdflib
from rdflib.namespace import split_uri
import logging
logger = logging.getLo... | PypiClean |
/OTLModel/Classes/Onderdeel/PTRegelaar.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.ImplementatieElement.AIMNaamObject import AIMNaamObject
from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument
from OTLMOW.OTLModel.Datatypes.KlPTRegelaarMerk import KlPTRegelaarMerk
from OTLMOW.OTLModel.Datatypes.KlPT... | PypiClean |
/ORE_strhub-0.0.1-py3-none-any.whl/strhub/models/base.py |
import math
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Optional, Tuple, List
import pytorch_lightning as pl
import torch
import torch.nn.functional as F
from nltk import edit_distance
from pytorch_lightning.utilities.types import EPOCH_OUTPUT, STEP_OUTPUT
from timm.optim ... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/dashboard.py | from __future__ import unicode_literals
from django.template.loader import render_to_string
from django.core.urlresolvers import reverse
from cubane.lib.ident import camel_to_ident
from cubane.lib.acl import Acl
def render_dashboard_widget_to_html(widget_context):
"""
Render given widget context to HTML.
... | PypiClean |
/CallingGPT-0.0.1.0.tar.gz/CallingGPT-0.0.1.0/README.md | # CallingGPT
[](https://pypi.python.org/pypi/CallingGPT)
GPT's Function Calling Demo, a experiment of self-hosted ChatGPT-Plugins-like platform.
> Recommend reading: [function-calling](https://platform.openai.com/docs/guides/gpt/function-calling)
## Abstract
Ope... | PypiClean |
/Ibidas-0.1.26.tar.gz/Ibidas-0.1.26/ibidas/representor.py | import sys
import copy
import itertools
from collections import defaultdict
import numpy
from query_graph import Node
from itypes import rtypes
from constants import *
from thirdparty import tableprint, console
_delay_import_(globals(),"utils","util","context","infix")
_delay_import_(globals(),"itypes", "dimensions",... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/interfaces/triggers/triggers_controller.py | from mindsdb_sql.parser.ast import Identifier
from mindsdb_sql import parse_sql, ParsingException
from mindsdb.interfaces.storage import db
from mindsdb.interfaces.database.projects import ProjectController
from mindsdb.utilities.context import context as ctx
from mindsdb.api.mysql.mysql_proxy.controllers.session_co... | PypiClean |
/Finit_Automaton-0.1-py3-none-any.whl/mypackage/dfa.py | from __future__ import annotations
from typing import Tuple, List, Union, Dict
from PySimpleAutomata import automata_IO
from os import path
from mypackage.StateFa import StateFa
from mypackage.fa_interface import InterfaceFa
class Dfa(InterfaceFa):
"""
Create deterministic finite automaton
"""
... | PypiClean |
/Avenue-0.2.2.tar.gz/Avenue-0.2.2/src/avenue/processors.py | from __future__ import absolute_import, division, print_function
from pandora import CONVERTERS
from pandora import Path
class Match(object):
def __init__(self, score=None, kwargs=None):
self.score = score or list()
self.kwargs = kwargs or dict()
def update(self, result):
if type(res... | PypiClean |
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/geneset/utils.py | from typing import List, Tuple, NamedTuple
import numpy as np
from orangecontrib.bioinformatics.utils import ensure_type
from orangecontrib.bioinformatics.utils.statistics import Hypergeometric
def filename(hierarchy, organism): # type: (Tuple[str, str], str) -> str
"""Obtain a filename for given hierarchy and... | PypiClean |
/GameTools-0.2.0.tar.gz/GameTools-0.2.0/README.md |   
# GameTools
GameTools is a collection of packages that helps you create your game.
## Features
|Feature|Description|St... | PypiClean |
/ChemListem-0.1.0.tar.gz/ChemListem-0.1.0/chemlistem/chebiobo.py | import re
import io
import sys
import time
import json
defre = re.compile("\"(.*)\" \\[(.*)\\]")
xrefre = re.compile("([^\"]+?)( \"(.*)\")?")
relre = re.compile("([a-z_]+) (CHEBI:\d+)( ! (.*))?")
synre = re.compile("\"(.*)\" ([A-Za-z_ ]+) \\[(.*?):?\\]")
def _unescape(s):
return (s.replace("\\\"", "\"")
.replace("... | PypiClean |
/KL_Audit_supportV1.9-1.0-py3-none-any.whl/AuditModule/common/AppConstants.py | from datetime import datetime
from AuditModule.common.configuration_settings import config
class AuditLogsConstants:
def __init__(self):
pass
audit_time_date_format = "%Y-%m-%d %H:%M:%S.%f"
epoch_date = datetime(1970, 1, 1)
application_type_json = {"login_handler": {"application_type": "login... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/numerical/fd/fd_numpy.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from numpy import asarray
from scipy.sparse import diags
from scipy.sparse.linalg import spsolve
from compas.numerical import connectivity_matrix
from compas.numerical import normrow
__all__ = ["fd_numpy"]
... | PypiClean |
/ArteomSer-0.9.0.tar.gz/ArteomSer-0.9.0/Am_serializer/unpack_utils.py | import inspect
import builtins
import types
from Am_serializer.constants import PRIMITIVES
from types import FunctionType, LambdaType, CodeType, CellType, GeneratorType, ModuleType
def is_function(obj):
return inspect.isfunction(obj) or inspect.ismethod(obj) or isinstance(obj, LambdaType)
def is_iterable(obj):
... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/vue/vue.js |
(function (mod) {
"use strict";
if (typeof exports === "object" && typeof module === "object") {// CommonJS
mod(require("../../lib/codemirror"),
require("../../addon/mode/overlay"),
require("../xml/xml"),
require("../javascript/javascript"),
require("../coffeescript/coffeescript... | PypiClean |
/LIGGGHTSER-0.2.2.tar.gz/LIGGGHTSER-0.2.2/README.md | LIGGGHTSER is a program that is able to automatically deal with data file printed or dumped by LIGGGHTS software, now we add some useful function like automatically get information from remote server.
Auther: Di
E-mail: wangdi931010@gmail.com
Github: https://github.com/DiWang1010
------------------About read files-... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/runtime/odata/type.py | import datetime
import uuid
class ODataType(object):
primitive_types = {
bool: "Edm.Boolean",
int: "Edm.Int32",
str: "Edm.String",
datetime.datetime: "Edm.DateTimeOffset",
uuid.UUID: "Edm.Guid"
}
"""Primitive OData data type mapping"""
def __init__(self):
... | PypiClean |
/JCC-3.13.tar.gz/JCC-3.13/helpers3/linux.py |
import sys, os, os.path, re
import distutils, setuptools
from setuptools import dist, extension
from setuptools.command import build_ext
from setuptools.extension import Library as _Library
def patch_setuptools(with_setuptools):
try:
from setuptools.command.build_ext import sh_link_shared_object
... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/nls/dijit-all_pt.js | dojo.provide("dijit.nls.dijit-all_pt");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.pt");dojo.nls.colors.pt={"lightsteelblue":"azul-aço claro","orangered":"vermelho alaranjado","midnightblue":"azul meia-noite","cadetblue":"azul cadet","seashell":"seashell","slategrey":"cinza... | PypiClean |
/LabToolkit-0.1.3.tar.gz/LabToolkit-0.1.3/CONTRIBUTING.rst | .. highlight:: shell
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com... | PypiClean |
/GitPython-3.1.34-py3-none-any.whl/git/index/util.py | from functools import wraps
import os
import struct
import tempfile
from types import TracebackType
from git.compat import is_win
import os.path as osp
# typing ----------------------------------------------------------------------
from typing import Any, Callable, TYPE_CHECKING, Optional, Type
from git.types imp... | PypiClean |
/Meraki_Auto_Sync-1.190-py3-none-any.whl/autosync/main.py | import asyncio
import datetime
import sys
import time
import pandas as pd
from tabulate import tabulate
from autosync import const, lib, model, utils
# from autosync.const import appcfg, meraki_sdk
from autosync.model import golden_nets, meraki_nets
def completioninfo():
"""
Prints table of infomration after a... | PypiClean |
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/fields/find_renderers.py | from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2014, G. Klyne"
__license__ = "MIT (http://opensource.org/licenses/MIT)"
import logging
log = logging.getLogger(__name__)
import re
... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/lib/x509.py |
from datetime import datetime
import sys
import util
from util import profiler, print_error
import ecdsa
import hashlib
# algo OIDs
ALGO_RSA_SHA1 = '1.2.840.113549.1.1.5'
ALGO_RSA_SHA256 = '1.2.840.113549.1.1.11'
ALGO_RSA_SHA384 = '1.2.840.113549.1.1.12'
ALGO_RSA_SHA512 = '1.2.840.113549.1.1.13'
ALGO_ECDSA_SHA256... | PypiClean |
/CellOrientationLinearElasticity-1.0.tar.gz/CellOrientationLinearElasticity-1.0/simulation/simulation.py | from ngsolve import *
from ngsolve.bvp import BVP
import netgen.meshing as nm
import math
def epsilon(u):
""""Convenience function for the deformation tensor in linear elasticity
This function needs ngsolve Grad function to work. As such, it can process GridFunctions and also
symbolic TestFunction... | PypiClean |
/MirrorHerokuX-6.0.3-py3-none-any.whl/bot/modules/cancel_mirror.py | from telegram.ext import CommandHandler
from bot import download_dict, dispatcher, download_dict_lock, DOWNLOAD_DIR
from bot.helper.ext_utils.fs_utils import clean_download
from bot.helper.telegram_helper.bot_commands import BotCommands
from bot.helper.telegram_helper.filters import CustomFilters
from bot.helper.teleg... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/DataSamples/DataReadFromFile.py |
import codecs
import csv
import json
import DataCeiling as dc
import DataRoom as dr
class ReadDataFromFile:
def __init__(self, filePath):
'''
Class constructor.
:param filePath: Fully qualified file path to json formatted data file.
:type filePath: str
'''
self.... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/InlineEditBox.js | if(!dojo._hasResource["dijit.InlineEditBox"]){
dojo._hasResource["dijit.InlineEditBox"]=true;
dojo.provide("dijit.InlineEditBox");
dojo.require("dojo.i18n");
dojo.require("dijit._Widget");
dojo.require("dijit._Container");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.TextBox");
dojo.requireLocalization("... | PypiClean |
/Brainfeatures-0.0.4.tar.gz/Brainfeatures-0.0.4/brainfeatures/feature_generation/wavelet_feature_generator.py | from pywt._extensions._pywt import (DiscreteContinuousWavelet,
ContinuousWavelet, Wavelet, _check_dtype)
from pywt._functions import (integrate_wavelet, scale2frequency,
central_frequency)
from pywt import wavedec, dwt_max_level, wavelist
import numpy as np
from brainfeatures.feature_generation.abstract_featur... | PypiClean |
/LISA_CNN_ExplainerV5-0.0.4.tar.gz/LISA_CNN_ExplainerV5-0.0.4/README.md | # Explain LISA
It takes the following.
img: local path of img to be explained
class_names: the classes available as predictions for the given model
img_shape: shape of the image accepts by the neural network
model: the model to be explained get from tf.keras.models.load_model("your model path")
img1: local path backgro... | PypiClean |
/CAMSA-1.3.tar.gz/CAMSA-1.3/camsa/libs/js/comparative.js | function format_detailed_child_row(ap, sources, conflicts, assemblies_to_ids) {
var table = '<table class="table table-condensed" cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">';
table += '<thead><tr>';
table += '<th class="text-center col-lg-1">Id</th>';
// table += '<th>Sources... | PypiClean |
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/inference/score_function.py |
import mxnet as mx
from mxfusion.common.exceptions import InferenceError
from .inference_alg import InferenceAlgorithm
from .variational import StochasticVariationalInference
from ..components.variables import VariableType
class ScoreFunctionInference(StochasticVariationalInference):
"""
Implemented follow... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.