id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/configuration/g2p.rst |
.. _configuration_g2p:
*****************
G2P Configuration
*****************
Global options
==============
.. csv-table::
:widths: 20, 20, 60
:header: "Parameter", "Default value", "Notes"
:escape: '
"punctuation", "、。।,@<>'"'(),.:;¿?¡!\\&%#*~【】,…‥「」『』〝〟″⟨⟩♪・‹›«»~′$+=", "Characters to treat as punctua... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/typescript/lib/lib.es2015.reflect.d.ts |
declare namespace Reflect {
/**
* Calls the function with the specified object as the this value
* and the elements of specified array as the arguments.
* @param target The function to call.
* @param thisArgument The object to be used as the this object.
* @param argumentsList An array of... | PypiClean |
/Jupytils-0.41100000000000003.tar.gz/Jupytils-0.41100000000000003/ShowExcel.ipynb | ```
#You must include the following in your
#%run "../PyUtils/common.ipynb"
import os;
import openpyxl
import string
from openpyxl.utils import *;
#(_get_column_letter, column_index_from_string)
#openpyxl.utils.get_column_interval(34) # returns 'AH'
#column_index_from_string('AH') #returns 34
#http://openpyxl.readt... | PypiClean |
/aleksis_core-3.1.5-py3-none-any.whl/aleksis/core/tasks.py | import time
from datetime import timedelta
from django.conf import settings
from django.core import management
from .celery import app
from .util.notifications import _send_due_notifications as _send_due_notifications
from .util.notifications import send_notification as _send_notification
@app.task
def send_notific... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/plugins/lists/editor_plugin_src.js | (function() {
var each = tinymce.each, Event = tinymce.dom.Event, bookmark;
// Skips text nodes that only contain whitespace since they aren't semantically important.
function skipWhitespaceNodes(e, next) {
while (e && (e.nodeType === 8 || (e.nodeType === 3 && /^[ \t\n\r]*$/.test(e.nodeValue)))) {
e = next(e);... | PypiClean |
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/client/dialogs.py | import asyncio
import inspect
import itertools
import typing
from .. import helpers, utils, hints, errors
from ..requestiter import RequestIter
from ..tl import types, functions, custom
_MAX_CHUNK_SIZE = 100
if typing.TYPE_CHECKING:
from .telegramclient import TelegramClient
def _dialog_message_key(peer, messa... | PypiClean |
/Gbtestapi-0.1a10-py3-none-any.whl/gailbot/services/converter/result/transcribe.py |
import os
from typing import TypedDict, List, Dict
from src.gailbot.core.utils.general import (
write_csv,
read_csv,
write_json,
get_name,
make_dir,
read_json,
paths_in_dir,
is_directory,
is_file,
)
from src.gailbot.core.utils.logger import makelogger
from src.gailbot.configs impor... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/arctic_ocean/utils.py | import logging
import os
import shutil
import matplotlib as mpl
import numpy as np
import pyproj
import seawater as sw
from cdo import Cdo
from cmocean import cm as cmo
from matplotlib import pylab as plt
from matplotlib.colors import LinearSegmentedColormap
from esmvaltool.diag_scripts.shared import ProvenanceLogger... | PypiClean |
/BlueWhale3-Timeseries-0.3.13.tar.gz/BlueWhale3-Timeseries-0.3.13/doc/widgets/difference.md | Difference
==========
Make the time series stationary by replacing it with 1st or 2nd order discrete difference along its values.
**Inputs**
- Time series: Time series as output by [As Timeseries](as_timeseries.md) widget.
**Outputs**
- Time series: Differences of input time series.
:
if n is None:
#If coefficient of variation i... | PypiClean |
/Braindecode-0.7.tar.gz/Braindecode-0.7/braindecode/datautil/serialization.py |
import os
import json
import warnings
from glob import glob
import mne
import pandas as pd
from joblib import Parallel, delayed
from ..datasets.base import BaseDataset, BaseConcatDataset, WindowsDataset
def save_concat_dataset(path, concat_dataset, overwrite=False):
warnings.warn('"save_concat_dataset()" is de... | PypiClean |
/Barista-0.0.22.tar.gz/Barista-0.0.22/barista/assets.py |
import json
import datetime
empty = ""
def package(name, version, **kwargs):
"""For package.json"""
return json.dumps({
"name": name,
"version": kwargs.get('version', ''),
"description": kwargs.get('desc', ''),
"main": "js/app.js",
"scripts": {
"test": "tes... | PypiClean |
/CMinx-1.1.9.tar.gz/CMinx-1.1.9/docs/source/config.rst | .. Copyright 2022 CMakePP
..
.. Licensed under the Apache License, Version 2.0 (the "License");
.. you may not use this file except in compliance with the License.
.. You may obtain a copy of the License at
..
.. http://www.apache.org/licenses/LICENSE-2.0
..
.. Unless required by applicable law or agreed to in writing,... | PypiClean |
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/api/hyperion.densities.AlphaDisk.rst | =================================
hyperion.densities.AlphaDisk
=================================
.. currentmodule:: hyperion.densities
.. autoclass:: AlphaDisk
.. rubric:: Attributes
.. autosummary::
~AlphaDisk.mass
~AlphaDisk.rho_0
~AlphaDisk.rmin
~AlphaDisk.rmax
~AlphaDisk.p
... | PypiClean |
/M2CryptoWin64-0.21.1-3.tar.gz/M2CryptoWin64-0.21.1-3/M2Crypto/SSL/Checker.py | __all__ = ['SSLVerificationError', 'NoCertificate', 'WrongCertificate',
'WrongHost', 'Checker']
from M2Crypto import util, EVP, m2
import re
class SSLVerificationError(Exception):
pass
class NoCertificate(SSLVerificationError):
pass
class WrongCertificate(SSLVerificationError):
pass
class Wr... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/utils/group/planar.py |
import numpy as np
from netket.utils.types import Array
from netket.utils.moduletools import export, hide_unexported
from ._point_group import PGSymmetry, PointGroup
from ._semigroup import Identity
hide_unexported(__name__)
__all__ = [
"rotation_group",
"dihedral",
]
@export
def rotation(angle: float) ... | PypiClean |
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/separator.py | from EEETools.MainModules import Block
import xml.etree.ElementTree as ETree
from EEETools import costants
class Separator(Block):
def __init__(self, inputID, main_class):
Block.__init__(self, inputID, main_class)
self.type = "separator"
def is_ready_for_calculation(self):
return len... | PypiClean |
/KalaPy-0.4.2.tar.gz/KalaPy-0.4.2/kalapy/i18n/format.py | from datetime import datetime
from decimal import Decimal
from babel import numbers, dates
from kalapy.i18n.utils import get_locale
def format_date(date=None, format='medium'):
"""Returns a date formated according to the given format in the context
of current locale. If `date` is None, current date is assum... | PypiClean |
/Graphnix-0.1.1.tar.gz/Graphnix-0.1.1/graphnix/control/colour.py | from __future__ import annotations
from typing import Tuple, Optional, Union
from statistics import mean
from math import ceil
from dataclasses import dataclass
@dataclass(frozen=True)
class TextColour:
foreground: Optional[Tuple[int]] = None
background: Optional[Tuple[int]] = None
def __postinit__(self, for... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/controller/CommunicationChannel.py | import asyncio
from typing import Mapping
import numpy as np
from imswitch.imcommon.framework import Signal, SignalInterface
from imswitch.imcommon.model import pythontools, APIExport, SharedAttributes
from imswitch.imcommon.model import initLogger
import numpy as np
from PIL import Image
from io import BytesIO... | PypiClean |
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/pyprof/parse/nvvp.py | import sys
class NVVP(object):
"""
This class gets kernel information from the SQL (nvvp) database.
"""
driverT = "CUPTI_ACTIVITY_KIND_DRIVER"
runtimeT = "CUPTI_ACTIVITY_KIND_RUNTIME"
kernelT = "CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL"
markerT = "CUPTI_ACTIVITY_KIND_MARKER"
stringT = "StringTable"
def __init_... | PypiClean |
/DateTime-4.9.tar.gz/DateTime-4.9/README.rst | .. image:: https://github.com/zopefoundation/DateTime/workflows/tests/badge.svg
:target: https://github.com/zopefoundation/DateTime/actions?query=workflow%3Atests
:alt: CI status
.. image:: https://img.shields.io/pypi/v/DateTime.svg
:target: https://pypi.org/project/DateTime/
:alt: Curr... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_header_update_py3.py |
from msrest.serialization import Model
class BillHeaderUpdate(Model):
"""Bill header values to update.
All required parameters must be populated in order to send to Azure.
:param begin_date: Required.
:type begin_date: ~energycap.sdk.models.BillHeaderUpdateBeginDateChild
:param end_date: Requir... | PypiClean |
/CensusData-1.15.tar.gz/CensusData-1.15/docs/notebooks/.ipynb_checkpoints/example3-checkpoint.ipynb | Example 3: Downloading State Data
============================================================
For this example, we will be running a simple linear regression model,
so we need an additional import:
```
import pandas as pd
import censusdata
pd.set_option('display.expand_frame_repr', False)
pd.set_option('display.pre... | PypiClean |
/JMI_FeatureSelection_primitive-2.0.1.tar.gz/JMI_FeatureSelection_primitive-2.0.1/JMI_FeatureSelection_primitive/JMIFeatSelector.py | import os
import JMI_FeatureSelection_primitive
import numpy as np
import scipy.io
from supervised_learning import SupervisedLearnerPrimitiveBase
class JMIFeatSelector(SupervisedLearnerPrimitiveBase):
"""
This class implements a feature selection method:
It automatically select features that best fit the labels
... | PypiClean |
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/services/organizer/settings/objects/settingObject.py | from typing import Dict, List, Union, TypedDict, Optional
from .engineObject import EngineSetObj
from .pluginObject import PluginSuiteSetObj
from ..interface import (
load_watson_setting,
load_whisper_setting,
load_google_setting,
EngineSettingInterface,
PluginSettingsInterface,
)
from gailbot.core.... | PypiClean |
/DigiCore-1.1.3.tar.gz/DigiCore-1.1.3/alibabacloud_tea_util/models.py | from Tea.model import TeaModel
class RuntimeOptions(TeaModel):
"""
The common runtime options model
"""
def __init__(
self,
autoretry: bool = None,
ignore_ssl: bool = None,
max_attempts: int = None,
backoff_policy: str = None,
backoff_period: int = None,... | PypiClean |
/EyeTrackFatigue-0.2.3.tar.gz/EyeTrackFatigue-0.2.3/README.md | # FAEyeTON
demo library for CODE-AI-2022 project. Contains pre-build and pre-release version of project code.
video files for analisyng https://drive.google.com/drive/folders/1q1-hidf9jFaUkVxr9sHEhlKVLcE5Y9TL?usp=sharing
programm notation:
class called: ClassName
methods called: method_name
variables called: variab... | PypiClean |
/Biomatters_Azimuth-0.2.6-py3-none-any.whl/azimuth/predict.py | import numpy as np
import sklearn
from sklearn.metrics import roc_curve, auc
import sklearn.metrics
import sklearn.model_selection
import copy
from . import util
import time
from . import metrics as ranking_metrics
import azimuth.models.regression
import azimuth.models.ensembles
import azimuth.models.DNN
import azimuth... | PypiClean |
/LilypondToBandVideoConverter-1.1.1.tar.gz/LilypondToBandVideoConverter-1.1.1/lilypondtobvc/src/convertermodules/lilypondfilegenerator.py |
#====================
# IMPORTS
#====================
import re
from basemodules.simplelogging import Logging
from basemodules.simpletypes import Boolean, Integer, Map, Natural, \
Object, Real, String, StringList, \
StringMap, StringSet
from bas... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_se-se.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 |
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/ump/ump/edge_wave.py | """示例ump边裁价格波动特征模块"""
from ultron.ump.trade.ml_feature import FeatureWave
from ultron.ump.ump.base import ump_edge_make_xy, BuyUmpMixin
from ultron.ump.ump.edge_base import EdgeBase
from ultron.ump.model.principles import Principles
class WaveFiter(Principles):
"""
内部类,只需要实现make_xy,且使用ump_edge_make_xy装饰
... | PypiClean |
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/fbapkg/basefbapkg.py |
from __future__ import absolute_import
import logging
import re # !!! import is never used
from optlang.symbolics import Zero, add # !!! add is never used
import json as _json # !!! import is never used
from cobra.core import (
Gene,
Metabolite,
Model,
Reaction,
) # !!! none of these imports are u... | PypiClean |
/Lightflow-1.11.1.tar.gz/Lightflow-1.11.1/lightflow/models/datastore.py | from pymongo import MongoClient
from pymongo.errors import ConnectionFailure
from bson.binary import Binary
from bson.objectid import ObjectId
import pickle
from datetime import datetime
from gridfs import GridFS
from urllib.parse import quote_plus
from lightflow.logger import get_logger
from .mongo_proxy import Mongo... | PypiClean |
/MultiSim-0.10.0.tar.gz/MultiSim-0.10.0/multisim/parts/pipe_nonopt.py | import numpy as np
from ..simenv import SimEnv
from .. import precomp_funs as _pf
class PipeNonOpt(SimEnv):
"""
type: Single Pipe
Can be added to the simulation environment by using the following method:
.add_part(Pipe, name, volume=..., grid_points=..., outer_diameter=...,
shell_thickne... | PypiClean |
/3dtrees_nbingo-0.1.5-py3-none-any.whl/agglomerate/batch_agglomerate_3d.py | from typing import Callable, Optional, List, Dict, Iterable, Tuple
from agglomerate.agglomerate_3d import Agglomerate3D, TREE_SCORE_OPTIONS
from itertools import product
from data.data_loader import DataLoader
import multiprocessing as mp
import pandas as pd
import numpy as np
from tqdm import tqdm
class BatchAgglome... | PypiClean |
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/preprocess/transform.py | from typing import Callable
import re
from bs4 import BeautifulSoup
from sklearn.feature_extraction.text import strip_accents_unicode
from Orange.util import wrap_callback, dummy_callback
from orangecontrib.text import Corpus
from orangecontrib.text.preprocess import Preprocessor
from orangecontrib.text.i18n_config ... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/utils/output_grabber.py | import os
import sys
import platform
from fitbenchmarking.utils.log import get_logger
LOGGER = get_logger()
IPYTHON = True
try:
get_ipython
except NameError:
IPYTHON = False
class OutputGrabber:
"""
Class used to grab outputs for stdout and stderr
"""
def __init__(self, options):
se... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/conf/admin/forms/general.py | from django import forms
from django.utils.translation import gettext_lazy as _, pgettext_lazy
from ....admin.forms import YesNoSwitch
from .base import SettingsForm
class GeneralSettingsForm(SettingsForm):
settings = [
"forum_name",
"forum_address",
"index_header",
"index_title",... | PypiClean |
/CUQIpy-0.4.0-py3-none-any.whl/cuqi/likelihood/_likelihood.py | from __future__ import annotations
from typing import Union
from cuqi.model import Model
from cuqi.utilities import get_non_default_args
from cuqi.geometry import _DefaultGeometry
from cuqi.density import Density, EvaluatedDensity
import warnings
from copy import copy
class Likelihood(Density):
"""Likelihood funct... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/fa_IR.py |
languages={'gv': u'\u0645\u0627\u0646\u06cc', 'gu': u'\u06af\u062c\u0631\u0627\u062a\u06cc', 'sco': u'\u0627\u0633\u06a9\u0627\u062a\u0644\u0646\u062f\u06cc', 'afa': u'\u0627\u0641\u0631\u06cc\u0642\u0627 \u0648 \u0622\u0633\u06cc\u0627\u06cc\u06cc (\u063a\u06cc\u0631\u0647)', 'ga': u'\u0627\u06cc\u0631\u0644\u0646\u0... | PypiClean |
/Aruna-Python-API-1.1.0rc6.tar.gz/Aruna-Python-API-1.1.0rc6/aruna/api/storage/services/v1/endpoint_service_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from aruna.api.storage.services.v1 import endpoint_service_pb2 as aruna_dot_api_dot_storage_dot_services_dot_v1_dot_endpoint__service__pb2
class EndpointServiceStub(object):
"""EndpointService
Contains all methods that g... | PypiClean |
/GrokIMDB-0.1.tar.gz/GrokIMDB-0.1/README.txt | ********
GrokIMDB
********
This is a nifty little demo application for Grok.
It provides a userinterface to fetch and edit data retrieved from the
Internet Movie Database (IMDb).
Prerequisites
=============
You need
- Python 2.4 and
-`setuptools`
to run this application. Rumors are, that also Python 2.5 w... | PypiClean |
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obisplit.py | from obitools.options import getOptionManager
from obitools.format.options import addInOutputOption
from obitools.fasta import formatFasta
from obitools.fastq import formatFastq
def addSplitOptions(optionManager):
group = optionManager.add_option_group('Obisplit specific options')
group.add_option('-p','--pre... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/tiki/tiki.js | CodeMirror.defineMode('tiki', function(config) {
function inBlock(style, terminator, returnTokenizer) {
return function(stream, state) {
while (!stream.eol()) {
if (stream.match(terminator)) {
state.tokenize = inText;
break;
}
stream.next();
}
if (ret... | PypiClean |
/AutoYOLObile-0.0.10.tar.gz/AutoYOLObile-0.0.10/ModelOpt/AutoYOLO/utils/torch_utils.py | import math
import os
import time
from copy import deepcopy
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.nn.functional as F
from ModelOpt.AutoYOLO.utils import profile_local
def init_seeds(seed=0):
torch.manual_seed(seed)
# Reduce randomness (may be slower on Tesla G... | PypiClean |
/MAZE_sim-0.1.1-py3-none-any.whl/maze/adsorbate.py | import warnings
import numpy as np
from ase import Atom, Atoms
from ase.data import atomic_numbers, covalent_radii
from ase.neighborlist import NeighborList, natural_cutoffs
from scipy.optimize import minimize
from sklearn.cluster import MeanShift
class Adsorbate(Atoms):
"""
This is an adsorbate class which r... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/yolof_head.py | import torch
import torch.nn as nn
from mmcv.cnn import (ConvModule, bias_init_with_prob, constant_init, is_norm,
normal_init)
from mmcv.runner import force_fp32
from mmdet.core import anchor_inside_flags, multi_apply, reduce_mean, unmap
from ..builder import HEADS
from .anchor_head import Anchor... | PypiClean |
/Notesh-0.7-py3-none-any.whl/notesh/widgets/color_picker.py | from __future__ import annotations
from random import randint
from textual.app import ComposeResult
from textual.color import Color
from textual.containers import Grid, Horizontal, Vertical
from textual.events import MouseScrollDown, MouseScrollUp
from textual.message import Message, MessageTarget
from textual.reacti... | PypiClean |
/FoneAstra-3.0.1.tar.gz/FoneAstra-3.0.1/fa/static/fa/flot/jquery.colorhelpers.js | (function($) {
$.color = {};
// construct color object with some convenient chainable helpers
$.color.make = function (r, g, b, a) {
var o = {};
o.r = r || 0;
o.g = g || 0;
o.b = b || 0;
o.a = a != null ? a : 1;
o.add = function (c, d) {
for (var... | PypiClean |
/Flask-Intercom-0.1.0.tar.gz/Flask-Intercom-0.1.0/flask_intercom/extension.py |
import hashlib
import hmac
import logging
import itsdangerous
import requests
from flask import Response, abort, request
from six.moves.http_client import BAD_REQUEST, OK
from .signals import namespace
logger = logging.getLogger('Flask-Intercom')
BASE_URL = 'https://api.intercom.io'
class Intercom(object):
... | PypiClean |
/GMM-0.3.3.tar.gz/GMM-0.3.3/docs/html/_static/searchtools.js | * helper function to return a node containing the
* search summary for a given text. keywords is a list
* of stemmed words, hlwords is the list of normal, unstemmed
* words. the first one is used to find the occurance, the
* latter for highlighting it.
*/
jQuery.makeSearchSummary = function(text, keywords, hlwor... | PypiClean |
/LbSoftConfDb2Server-1.2.8.tar.gz/LbSoftConfDb2Server-1.2.8/README.md | LHCb Software configuration Database 2
====================================


Neo4j database used to store the dependencies of the LHCb software projects.
The pr... | PypiClean |
/Flask_OAuthlib-0.9.6-py3-none-any.whl/flask_oauthlib/contrib/client/application.py | import os
import contextlib
import warnings
try:
from urllib.parse import urljoin
except ImportError:
from urlparse import urljoin
from flask import current_app, redirect, request
from requests_oauthlib import OAuth1Session, OAuth2Session
from requests_oauthlib.oauth1_session import TokenMissing
from oauthlib.... | PypiClean |
/GoogleAppEngineCloudStorageClient-1.9.22.1.tar.gz/GoogleAppEngineCloudStorageClient-1.9.22.1/cloudstorage/rest_api.py | __all__ = ['add_sync_methods']
import logging
import os
import random
import time
from . import api_utils
try:
from google.appengine.api import app_identity
from google.appengine.ext import ndb
except ImportError:
from google.appengine.api import app_identity
from google.appengine.ext import ndb
def _make... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/postcss-load-config/src/index.d.ts | import Processor from 'postcss/lib/processor';
import { Plugin, ProcessOptions, Transformer } from 'postcss';
import { Options as ConfigOptions } from "lilconfig";
declare function postcssrc(
ctx?: postcssrc.ConfigContext,
path?: string,
options?: ConfigOptions
): Promise<postcssrc.Result>;
declare namespace po... | PypiClean |
/MPInterfaces_Latest-2.0.3.tar.gz/MPInterfaces_Latest-2.0.3/mpinterfaces/mat2d/friction/startup.py | from __future__ import print_function, division, unicode_literals
import math
import os
import numpy as np
from pymatgen.core.structure import Structure
from pymatgen.io.vasp.inputs import Incar
from mpinterfaces import VASP_STD_BIN, VDW_KERNEL, QUEUE_SYSTEM
import mpinterfaces.utils as utl
__author__ = "Michael As... | PypiClean |
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/docs/usage/tutorials/RCO.rst | ===========================================
Route Constrained Optimization using KD_Lib
===========================================
`Paper <https://arxiv.org/abs/1904.09149>`_
* The route constrained optimization algorithm considers knowledge distillation from the perspective of curriculum learning by routing
* Inste... | PypiClean |
/AutoGator-0.3.0.tar.gz/AutoGator-0.3.0/autogator/profiles.py | from pathlib import Path
from typing import List
import numpy as np
from pydantic import BaseModel
from autogator import AUTOGATOR_DATA_DIR
from autogator.hardware import StageConfiguration
PROFILES_DIR = AUTOGATOR_DATA_DIR / "profiles"
PROFILES_DIR.mkdir(parents=True, exist_ok=True)
CALIBRATION_DIR = AUTOGATOR_DAT... | PypiClean |
/AoikRegistryEditor-0.1.0-py3-none-any.whl/aoikregistryeditor/tkinterutil/text.py | from __future__ import absolute_import
from tkinter import Spinbox
from tkinter import Text
from tkinter.ttk import Combobox
from tkinter.ttk import Entry
from tkinter.ttk import Scrollbar
from tkinter.constants import ACTIVE
from tkinter.constants import DISABLED
from tkinter.constants import END
from tkinter.constan... | PypiClean |
/ELLIPTIc-1.0.1-py3-none-any.whl/elliptic/Kernel/Expression.py | from contextlib import contextmanager
from anytree import NodeMixin
from typing import Iterable, Iterator, Type
from .Context import ContextDelegate, Context
class EllipticNode(NodeMixin):
"""Base class for representing a node in the DSL tree.
"""
last_id: int = 0
def __init__(self) -> None:
... | PypiClean |
/BS4_for_aiogram-0.0.0.5-py3-none-any.whl/bs4/dammit.py | # Use of this source code is governed by the MIT license.
__license__ = "MIT"
import codecs
from html.entities import codepoint2name
import re
import logging
import string
# Import a library to autodetect character encodings.
chardet_type = None
# Available from http://cjkpython.i18n.org/.
#
# TODO: This doesn't wor... | PypiClean |
/KayleeVC-0.1.1.tar.gz/KayleeVC-0.1.1/kayleevc/gui.py |
import sys
import gi
from gi.repository import GObject
# Gtk
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
class GTKTrayInterface(GObject.GObject):
__gsignals__ = {
'command' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,))
}
idle_text = "Kaylee - Idle"
... | PypiClean |
/CMash-0.3.0.tar.gz/CMash-0.3.0/scripts/MakeStreamingDNADatabase.py | import os
import sys
# The following is for ease of development (so I don't need to keep re-installing the tool)
try:
from CMash import MinHash as MH
except ImportError:
try:
import MinHash as MH
except ImportError:
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from CMash impo... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/campaigns/models.py | import logging
import os
from io import BytesIO
from tempfile import NamedTemporaryFile
from adminsortable.models import SortableMixin
from annoying.fields import JSONField
from django.apps import apps as django_apps
from django.contrib.sites.models import Site
from django.core.files.base import ContentFile
from djang... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/hpc/hpc_submitter.py |
import copy
import itertools
import logging
import os
import sys
import time
from datetime import timedelta
from pathlib import Path
from jade.enums import JobCompletionStatus, Status
from jade.events import (
StructuredLogEvent,
EVENT_CATEGORY_HPC,
EVENT_NAME_HPC_SUBMIT,
EVENT_NAME_HPC_JOB_ASSIGNED,
... | PypiClean |
/Flask-Odoo-0.4.2.tar.gz/Flask-Odoo-0.4.2/src/flask_odoo/__init__.py | import ast
import ssl
import logging
import xmlrpc.client
from flask import _app_ctx_stack, current_app
from .model import make_model_base
from . import types
__version__ = "0.4.2"
logger = logging.getLogger(__name__)
class Odoo:
"""Stores Odoo XML-RPC server proxies and authentication information
inside ... | PypiClean |
/KratosStructuralMechanicsApplication-9.4-cp310-cp310-win_amd64.whl/KratosMultiphysics/StructuralMechanicsApplication/structural_mechanics_prebuckling_solver.py | import KratosMultiphysics
# Import applications
import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication
# Import base class file
from KratosMultiphysics.StructuralMechanicsApplication.structural_mechanics_solver import MechanicalSolver
from KratosMultiphysics import eigen_solver_fa... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/collection_list_response.py | import re # noqa: F401
import sys # noqa: F401
from openapi_client.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,
... | PypiClean |
/NQPV-0.4b1-py3-none-any.whl/nqpv/vsystem/syntax/vparser.py |
from __future__ import annotations
from typing import Any, List
import ply.yacc as yacc
from nqpv.vsystem.log_system import LogSystem, RuntimeErrorWithLog
from .pos_info import PosInfo
from .vlexer import tokens, lexer
from . import ast
# program declaration section
def p_scope(p):
'''
scope : cmd
... | PypiClean |
/AnDOcreator-0.1-py3-none-any.whl/script/AnDOcreator.py | import pandas as pd
import argparse
import os
import sys
# columns required
COLUMNS = ["experiments_name", "subjects_names",
"years", "months", "days",
"sessions_numbers", "comments"
]
def create_Struct(csv_file, pathToDir):
"""
Create structure with csvfile given in argument... | PypiClean |
/EnrichPy-0.1.002.tar.gz/EnrichPy-0.1.002/enrichpy/lifetime.py | import math
import numpy
import scipy.interpolate
def main_sequence_life(mass):
"""Rough approxiamtion of main sequence lifetime in years.
tauMS ~ 10^10 years * (M/Msun)^-2.5
mass in solar masses.
"""
return 1.e10 * mass**-2.5
def mass_from_main_sequence_life(life):
"""Approximate mass ... | PypiClean |
/Dgram-1.0.0.tar.gz/Dgram-1.0.0/dgram/asyncio_storage/memory_storage.py | from dgram.asyncio_storage.base_storage import StateStorageBase, StateContext
class StateMemoryStorage(StateStorageBase):
def __init__(self) -> None:
self.data = {}
#
# {chat_id: {user_id: {'state': None, 'data': {}}, ...}, ...}
async def set_state(self, chat_id, user_id, stat... | PypiClean |
/Methanal-0.9.0.tar.gz/Methanal-0.9.0/methanal/widgets.py | import time
from warnings import warn
from axiom.item import SQLAttribute
from epsilon.extime import FixedOffset, Time
from epsilon.structlike import record
from methanal.errors import InvalidIdentifier
from methanal.imethanal import IColumn
from methanal.model import Value
from methanal.util import getArgsDict
from m... | PypiClean |
/DE_DataBaseConnect-0.0.74.tar.gz/DE_DataBaseConnect-0.0.74/DE_DataBase.py | import os
import sqlalchemy
import cx_Oracle as ora
import sqlite3 as sq3
import psycopg2 as ps2
import mysql.connector as mysql
import pymssql as mssql
import redshift_connector as reds
import fdb
#import azure
# Reponsabilidades desta classe:
# Apenas se conectar a uma das bases de dados abaixo especificadas
# Bases... | PypiClean |
/MainApp-0.1.tar.gz/MainApp-0.1/test/DesignView.py | from Tkinter import Text, Scrollbar, Tk, Button, Label
import Tkinter
import webbrowser
from py_w3c.validators.html.validator import HTMLValidator
root = Tk()
root.title("Editor's View")
text = Text(root, wrap="word", background="white", borderwidth=0, highlightthickness=0)
vsb = Scrollbar(root, orient="vertical", bor... | PypiClean |
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis/__init__.py |
from eureqa.analysis.components import *
from eureqa.analysis.cards import Card
from eureqa.data_source import DataSource
from eureqa.analysis.analysis_file import AnalysisFile
from eureqa.utils import utils
import warnings
class Analysis(object):
"""Represents an analysis on the server.
:var str `~eureqa.a... | PypiClean |
/Integral-0.1.0.tar.gz/Integral-0.1.0/integral/backend/generate_overloads.py | import os
import json
import ctypes
PWD = os.path.abspath(os.path.dirname(__file__))
FUNCTION_POINTERS_TEMPLATE = """
#cython: language_level=3
from cpython.long cimport PyLong_FromVoidPtr
cimport scipy.special.cython_special as sc
functions = {{
{FUNCTIONS}
}}
"""
NUMBA_OVERLOADS_TEMPLATE = """
import ctypes
im... | PypiClean |
/EOmaps-7.0-py3-none-any.whl/eomaps/draw.py | import logging
from contextlib import contextmanager
import numpy as np
import matplotlib.pyplot as plt
from .shapes import Shapes
from .helpers import register_modules
_log = logging.getLogger(__name__)
@contextmanager
def autoscale_turned_off(ax=None):
"""Contextmanager to revert axis-limits."""
ax = ax ... | PypiClean |
/GsuiteToMd-1.3.0.tar.gz/GsuiteToMd-1.3.0/docs/build/html/_static/language_data.js | var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
/* Non-minified version JS is _stemmer.js if file is provided */
/**
* Porter Stemmer
*/
var Stemm... | PypiClean |
/EasyNMT-2.0.2.tar.gz/EasyNMT-2.0.2/README.md | # EasyNMT - Easy to use, state-of-the-art Neural Machine Translation
This package provides easy to use, state-of-the-art machine translation for more than 100+ languages. The highlights of this package are:
- Easy installation and usage: Use state-of-the-art machine translation with 3 lines of code
- Automatic downloa... | PypiClean |
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/conf/init-user-db.sh | set -e
cat >>$PGDATA/postgresql.conf <<EOF
wal_level = logical # Adds information necessary to support logical decoding
wal_compression = on # Compresses full-page writes written in WAL file.
archive_mode = on # Allows archiving of WAL files using archive_command.
archive_command = 'test -f /archive/%f.bz2 || (b... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/ConstantCodes.py | import os
import sys
from nuitka import Options
from nuitka.PythonVersions import python_version
from nuitka.Serialization import ConstantAccessor
from nuitka.utils.Distributions import getDistributionTopLevelPackageNames
from nuitka.Version import getNuitkaVersionTuple
from .CodeHelpers import withObjectCodeTemporar... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Node/FS.py |
__revision__ = "src/engine/SCons/Node/FS.py 2014/07/05 09:42:21 garyo"
import fnmatch
import os
import re
import shutil
import stat
import sys
import time
import codecs
import SCons.Action
import SCons.Debug
from SCons.Debug import logInstanceCreation
import SCons.Errors
import SCons.Memoize
import SCons.Node
impor... | PypiClean |
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/sersic.py |
import numpy as np
import math
from . import _galsim
from .gsobject import GSObject
from .gsparams import GSParams
from .utilities import lazy_property, doc_inherit
from .position import PositionD
from .errors import GalSimRangeError, GalSimIncompatibleValuesError, convert_cpp_errors
class Sersic(GSObject):
r"""... | PypiClean |
/AsyncDex-1.1.tar.gz/AsyncDex-1.1/asyncdex/exceptions.py | from datetime import datetime
from typing import Dict, List, Optional, TYPE_CHECKING, Type
import aiohttp
from aiohttp import ClientResponseError
from .constants import routes
from .utils import AttrDict
if TYPE_CHECKING: # pragma: no cover
from .models.abc import Model
class AsyncDexException(Exception):
... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/adapters/history_item.py | from euphorie.client import MessageFactory as _
from euphorie.client.model import SessionEvent
from euphorie.client.model import show_timezone
from euphorie.client.model import SurveySession
from json import JSONDecodeError
from json import loads
from logging import getLogger
from plone import api
from plone.memoize.in... | PypiClean |
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/conv/parsers/polygonscan.py |
from decimal import Decimal
from ..dataparser import DataParser
from ..out_record import TransactionOutRecord
from .etherscan import _get_note
WALLET = "Polygon chain"
WORKSHEET_NAME = "PolygonScan"
def parse_polygonscan(data_row, _parser, **_kwargs):
row_dict = data_row.row_dict
data_row.timestamp = DataP... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/request_list.py |
from electrum_vtc.i18n import _
from electrum_vtc.util import block_explorer_URL, format_satoshis, format_time, age
from electrum_vtc.plugins import run_hook
from electrum_vtc.paymentrequest import PR_UNPAID, PR_PAID, PR_UNKNOWN, PR_EXPIRED
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from util import MyTreeW... | PypiClean |
/FreqDemod-0.2.1.tar.gz/FreqDemod-0.2.1/docs/license.rst | License
=======
::
FreqDemod and freqdemod
This package provides functions for analyzing and plotting the
time-dependent frequency and amplitude of a sinusoidally oscillating signal.
Copyright (C) 2014 John Marohn, Cornell University
This program is free software: you can redistribute it a... | PypiClean |
/LiBai-0.1.1.tar.gz/LiBai-0.1.1/libai/tokenizer/tokenization_gpt2.py | import json
import logging
import os
from functools import lru_cache
from io import open
import regex as re
from .build import TOKENIZER_REGISTRY
from .tokenization_base import PreTrainedTokenizer
logger = logging.getLogger(__name__)
VOCAB_FILES_NAMES = {
"vocab_file": "vocab.json",
"merges_file": "merges.t... | PypiClean |
/CoAPthon-4.0.2.tar.gz/CoAPthon-4.0.2/coapthon/layers/requestlayer.py | from coapthon.messages.response import Response
from coapthon import defines
__author__ = 'Giacomo Tanganelli'
class RequestLayer(object):
"""
Class to handle the Request/Response layer
"""
def __init__(self, server):
self._server = server
def receive_request(self, transaction):
... | PypiClean |
/MPInterfaces-2020.6.19.tar.gz/MPInterfaces-2020.6.19/mpinterfaces/database.py |
from __future__ import division, print_function, unicode_literals, \
absolute_import
"""
Put data into mongo database
"""
from six.moves import range
import sys
import os
import json
import logging
import socket
import string
import datetime
import numpy as np
from pymatgen.core.structure import Structure
fro... | PypiClean |
/GroopM-0.3.4.tar.gz/GroopM-0.3.4/groopm/cluster.py |
__author__ = "Michael Imelfort"
__copyright__ = "Copyright 2012/2013"
__credits__ = ["Michael Imelfort"]
__license__ = "GPL3"
__maintainer__ = "Michael Imelfort"
__email__ = "mike@mikeimelfort.com"
###############################################################################
from sys import stdout, exit
from colo... | PypiClean |
/Flask-Dogpile-Cache-0.2.tar.gz/Flask-Dogpile-Cache-0.2/flask_dogpile_cache.py | from dogpile.cache import make_region
from functools import wraps
from types import NoneType
__version__ = '0.2'
class NotInitialized(object):
pass
class DogpileCache(object):
FUNC_REGION_NAME_ATTR = 'dogpile_cache_region_name'
def __init__(self, app=None, config=None, wrappers_debug=None,
... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/manager/config/models/manager.py | from typing import List, Union, Any
from dero.mixins.repr import ReprMixin
from dero.manager.logic.get import _get_from_nested_obj_by_section_path
from dero.manager.logic.set import _set_in_nested_obj_by_section_path
from dero.manager.config.models.interfaces import ConfigSectionOrConfig
from dero.manager.config.model... | PypiClean |
/Allegra-0.63.zip/Allegra-0.63/lib/sync_stdio.py |
"http://laurentszyster.be/blog/sync_stdio/"
import sys
from allegra import prompt, loginfo, async_loop, finalization, thread_loop
logger = loginfo.logger
class Sync_stdio (thread_loop.Thread_loop):
def __init__ (self):
self.async_loop_catch = async_loop._catched
async_loop._catc... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/Hubbard.py | from matplotlib.pyplot import fill
import numpy as np
import scipy.linalg as sp
from gqcms.matrices import Determinant
from typing import List
class Hubbard:
def __init__(
self,
sites: int,
t: float,
U: float,
circular: bool,
nalpha: int = None,
nbeta: int =... | PypiClean |
/Mopidy-3.4.1-py3-none-any.whl/mopidy/models/__init__.py | from mopidy.models import fields
from mopidy.models.immutable import ImmutableObject, ValidatedImmutableObject
from mopidy.models.serialize import ModelJSONEncoder, model_json_decoder
__all__ = [
"ImmutableObject",
"Ref",
"Image",
"Artist",
"Album",
"Track",
"TlTrack",
"Playlist",
"... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.