id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/ordering_service/interface.py | from MGP_SDK.ordering_service.orders import Orders
from MGP_SDK.ordering_service.pipelines import Pipelines
class Interface:
"""
The primary interface for interacting with the Orders class.
Args:
username (string) = The username of your user
password (string) = The password associated with... | PypiClean |
/FireWorks-2.0.3.tar.gz/FireWorks-2.0.3/fireworks/user_objects/firetasks/script_task.py |
import builtins
import shlex
import subprocess
import sys
from typing import Dict, List, Optional, Union
from fireworks.core.firework import FiretaskBase, FWAction
if sys.version_info[0] > 2:
basestring = str
__author__ = "Anubhav Jain"
__copyright__ = "Copyright 2013, The Materials Project"
__maintainer__ = "A... | PypiClean |
/Eden-2.1.14.zip/Eden-2.1.14/eden/edenLib/openGl/learn/separatedIndexed3D/transformations.py | import math as mt
import numpy as np
def getTranslMat (translVec):
return np.matrix ([
[1, 0, 0, translVec [0]],
[0, 1, 0, translVec [1]],
[0, 0, 1, translVec [2]],
[0, 0, 0, 1],
], dtype = np.float32)
def getScalMat (scalVec):
return np.matrix ([
[scalVec [0], 0, 0, 0],
[0, scalVec [1], 0, 0],
[0, ... | PypiClean |
/CoreTracker-1.5.3.tar.gz/CoreTracker-1.5.3/coretracker/coreutils/AncestralRecon.py | from abc import ABCMeta, abstractmethod
import utils
from collections import defaultdict, Counter
import numpy as np
import operator
from letterconfig import *
def init_back_table(dct):
"""Get back table for the current genetic code"""
back_table = defaultdict(list)
for aa, codon in zip(dct.forward_table.... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/gdal_pansharpen.py |
import os
import os.path
import sys
from numbers import Real
from typing import List, Optional, Sequence, Union
from osgeo import gdal
from osgeo_utils.auxiliary.util import GetOutputDriverFor
def Usage():
print(
"Usage: gdal_pansharpen [--help-general] pan_dataset {spectral_dataset[,band=num]}+ out_dat... | PypiClean |
/Neodroid-0.4.9-py36-none-any.whl/neodroid/environments/droid_environment/unity_environment.py | import logging
from pathlib import Path
from typing import Mapping, Union
from neodroid import DEFAULT_ENVIRONMENTS_PATH, __version__
from neodroid.factories.motion_reactions import verify_motion_reactions
from neodroid.utilities import launch_environment
from neodroid.utilities.spaces import ActionSpace, ObservationS... | PypiClean |
/Flask-Login-0.6.2.tar.gz/Flask-Login-0.6.2/src/flask_login/login_manager.py | from datetime import datetime
from datetime import timedelta
from flask import abort
from flask import current_app
from flask import flash
from flask import g
from flask import has_app_context
from flask import redirect
from flask import request
from flask import session
from .config import AUTH_HEADER_NAME
from .con... | PypiClean |
/NCBIQuery-1.51.tar.gz/NCBIQuery-1.51/README.md | # NCBIQuery
Python tool of National Center for Biotechnology Information (NCBI) paper query based on [E-utilities](https://dataguide.nlm.nih.gov/eutilities/utilities.html).
Installing
============
pip install NCBIQuery
Usage
=====
See [PubMed Help](https://pubmed.ncbi.nlm.nih.gov/help/) for detailed search... | PypiClean |
/HuhuSeg-0.6.1-py3-none-any.whl/huhu_seg/bow.py |
import numpy
import json
from .segmentor import Segmentor
from .textrank import TextRank
class Corpura:
def __init__(self, corpura = None) :
if corpura is not None :
self.dictionary = self.corpura2dict(corpura)
else :
self.dictionary = dict()
def load_dict(self, p... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/__main__.py | from __future__ import absolute_import, unicode_literals, print_function
import os
import sys
__file__ = os.path.normpath(os.path.abspath(__file__))
__path__ = os.path.dirname(__file__)
python_sitelib_path = os.path.normpath(__path__)
if python_sitelib_path not in sys.path:
sys.path.insert(0, python_sitelib_path)... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/snpcall/combine_splited_gvcf_by_GATK.py | __author__ = 'Sergei F. Kliver'
import argparse
from RouToolPa.Tools.GATK import CatVariants
parser = argparse.ArgumentParser()
parser.add_argument("-o", "--output", action="store", dest="output", required=True,
help="Output gvcf file")
parser.add_argument("-r", "--reference", action="store", des... | PypiClean |
/JT_Techfield-0.0.11-py3-none-any.whl/JT/ActivationFunctions.py | import numpy as np
class Activation:
def __init__(self):
self.hyperparameters = {}
self.Eval = self.Evaluate
self.__call__ = self.Evaluate
self.D = self.Derivative
def __init_subclass__(cls):
cls.Eval = cls.Evaluate
cls.__call__ = cls.Evaluate
cls.D = cls.Derivative
def SetHyperParameters(se... | PypiClean |
/CFML-0.0.3-cp37-cp37m-win_amd64.whl/CFML_api/API_Crystal_Metrics.py |
import CFML_api.crysfml_api
import CFML_api.FortranBindedClass
class Cell(CFML_api.FortranBindedClass):
""" A class used to describe the crystal cell type(Crystal_Cell_type) in CFML.
...
Attributes
----------
lattpar : ndarray(dtype='float32', ndim=1)
Array containing the lattice paramet... | PypiClean |
/Flask-AppBuilder-redirect-2.1.13.tar.gz/Flask-AppBuilder-redirect-2.1.13/flask_appbuilder/static/appbuilder/js/html5shiv.js | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(... | PypiClean |
/NREL_sup3r-0.1.0-py3-none-any.whl/sup3r/utilities/regridder_cli.py | import copy
import click
import logging
from inspect import signature
import os
from sup3r.utilities import ModuleName
from sup3r.version import __version__
from sup3r.utilities.regridder import RegridOutput
from sup3r.utilities.cli import BaseCLI
logger = logging.getLogger(__name__)
@click.group()
@click.version_... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-vim.min.js | Prism.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,"function":/\w+(?=\()/,keyword:/\b(?:ab|abbreviate|abc|abclear|abo|aboveleft|al|all|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|ar|args|argu|argument|as|ascii|bad|badd|ba|ball|bd|bdelete|be|bel|belowright... | PypiClean |
/DigenpyWeb-0.0.1.linux-i686.tar.gz/usr/local/lib/python2.7/dist-packages/digenpyweb/static/js/bootstrap.min.js | !function(a){a(function(){"use strict",a.support.transition=function(){var b=document.body||document.documentElement,c=b.style,d=c.transition!==undefined||c.WebkitTransition!==undefined||c.MozTransition!==undefined||c.MsTransition!==undefined||c.OTransition!==undefined;return d&&{end:function(){var b="TransitionEnd";re... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Taskmaster.py |
from __future__ import print_function
import sys
__doc__ = """
Generic Taskmaster module for the SCons build engine.
=====================================================
This module contains the primary interface(s) between a wrapping user
interface and the SCons build engine. There are two key cl... | PypiClean |
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/docs/patterns/urlprocessors.rst | Using URL Processors
====================
.. versionadded:: 0.7
Flask 0.7 introduces the concept of URL processors. The idea is that you
might have a bunch of resources with common parts in the URL that you
don't always explicitly want to provide. For instance you might have a
bunch of URLs that have the language c... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/forms.py | from __future__ import unicode_literals
from django import forms
from django.db import models
from django.forms import widgets, fields, ValidationError, ModelForm
from django.forms.utils import flatatt
from django.utils.safestring import mark_safe
from django.utils.encoding import force_text
from django.utils.html impo... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/hydrolysis/src/ast-utils/jsdoc.ts | 'use strict';
import * as doctrine from 'doctrine';
/**
* An annotated JSDoc block tag, all fields are optionally processed except for
* the tag:
*
* @TAG {TYPE} NAME DESC
*
* `line` and `col` indicate the position of the first character of text that
* the tag was extracted from - relative to the first cha... | PypiClean |
/MultiSim-0.10.0.tar.gz/MultiSim-0.10.0/multisim/parts/hex_condensing_polynome.py | import numpy as np
import sklearn as _skl
from ..simenv import SimEnv
from ..precomp_funs import (
make_poly_transf_combs_for_nb,
extract_pca_results,
condensing_hex_solve,
)
class HEXCondPoly(SimEnv):
r"""
type: Plate HEX for water/flue gas heat transfer with condensation.
Can be added to t... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/environments/classic/acrobot.py | __author__ = 'Tom Schaul, tom@idsia.ch'
"""
Adaptation of the Acrobot Environment
from the "FAReinforcement" library
of Jose Antonio Martin H. (version 1.0).
"""
from scipy import pi, array, cos, sin
from pybrain.rl.environments.episodic import EpisodicTask
class AcrobotTask(EpisodicTask):
""" TODO: not cu... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/punycode.d.ts | declare module 'punycode' {
/**
* The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
* characters to the equivalent string of Unicode codepoints.
*
* ```js
* punycode.decode('maana-pta'); // 'mañana'
* punycode.decode('--dqo34... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/terms/cellTerm.py | from __future__ import division
from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
from fipy.terms.nonDiffusionTerm import _NonDiffusionTerm
from fipy.tools import inline
from fipy.tools import numerix
from fipy.terms import AbstractBaseClassError
from fipy.variables.cellVariable import CellVar... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/happiness.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def happiness(path):
"""happiness
Data loads lazily. Type data(happiness) into the console.
... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-bg-BG.js | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... | PypiClean |
/parts/Top/Hairs/Curvy.py | def Curvy(color):
return (
'<path fill-rule="evenodd" clip-rule="evenodd"'
' d="M100.9 42.4649C91.1017 48.4722 82.3857 56.3274 76.5872 65.3603C73.8254 69.6629 71.5533 74.1996 69.4363 78.7576C68.3741 81.0448 67.405 83.3601 66.4761 85.6894C65.8896 87.1595 64.989 88.745 65.836 90.2879C66.3528 89.985... | PypiClean |
/Braindecode-0.7.tar.gz/Braindecode-0.7/braindecode/models/eegresnet.py |
import numpy as np
import torch
from torch import nn
from torch.nn import init
from torch.nn.functional import elu
from .functions import transpose_time_to_spat, squeeze_final_output
from .modules import Expression, AvgPool2dWithConv, Ensure4d
class EEGResNet(nn.Sequential):
"""Residual Network for EEG.
X... | PypiClean |
/MindustryCompiler-2.1-py3-none-any.whl/compiler/yacc/grammar/InstrASM/radar.py | from .._start import grammar, YaccProduction
from .. import asmError as err
from ...classes import AsmInst, KeyWord
from compiler import CompilationException
from compiler.lex import keywords
# uradar enemy any any distance 0 order result
# radar enemy any flying distance turret1 sortOrder result
@grammar
def radarRe... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/assignments/assignment.py | from mathics.builtin.base import BinaryOperator, Builtin
from mathics.core.assignment import (
ASSIGNMENT_FUNCTION_MAP,
AssignmentException,
assign_store_rules_by_tag,
normalize_lhs,
)
from mathics.core.atoms import String
from mathics.core.attributes import (
A_HOLD_ALL,
A_HOLD_FIRST,
A_PRO... | PypiClean |
/MetaPython-0.2.2.tar.gz/MetaPython-0.2.2/metapython/parse.py | from __future__ import with_statement
import token
import tokenize
from operator import itemgetter
from cStringIO import StringIO
NESTING_OPS = {
'(':')',
'{':'}',
'[':']' }
CLOSING_OPS = set(NESTING_OPS.values())
KEYWORDS = [
'for', 'while', 'if', 'else', 'import', 'from' ]
SUITE_HEADERS = set([
... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/docs/source/preprocessing/transformation.rst | Data Transformations
********************
Transformations
==================
.. autoclass:: ai4water.preprocessing.transformations.Transformation
:members:
:undoc-members:
:show-inheritance:
.. automethod:: __init__
.. autoclass:: ai4water.preprocessing.transformations.Transformations
:members:
:un... | 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/matrices/Determinant.py | from itertools import combinations, product
import numpy as np
class Determinant:
"""
This class can be used to generate ONVs from a list of occupied orbitals
and generate all n-tuply exited determinants
:param alpha_occ: list of occupied alpha orbitals
:param beta_occ: list of occupied beta orbi... | PypiClean |
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/packutil/managers.py | import os
import subprocess
import re
from .py25compat import namedtuple, next
from . import versioning
class HGRepoManager(versioning.VersionManagement, object):
"""
An abstract class defining some interfaces for working with
Mercurial repositories.
"""
def __init__(self, location='.'):
s... | PypiClean |
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/cogs/audio/sql_statements.py | from typing import Final
# TODO: https://github.com/Cog-Creators/Red-DiscordBot/pull/3195#issuecomment-567821701
# Thanks a lot Sinbad!
__all__ = [
# PRAGMA Statements
"PRAGMA_SET_temp_store",
"PRAGMA_SET_journal_mode",
"PRAGMA_SET_read_uncommitted",
"PRAGMA_FETCH_user_version",
"PRAGMA_SET_us... | PypiClean |
/OTLModel/Classes/IOKaart.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.AIMObject import AIMObject
from OTLMOW.OTLModel.Datatypes.KlIOBitSnelheid import KlIOBitSnelheid
from OTLMOW.OTLModel.Datatypes.KlIOKaartMerk import KlIOKaartMerk
from OTLMOW.OTLModel.Datatypes.KlIOKaartModelnaam import KlIOK... | PypiClean |
/IVisual-alt-0.2.4.tar.gz/IVisual-alt-0.2.4/ivisual/data/glowcomm.js | var vp;
define(["nbextensions/jquery-ui.custom.min","nbextensions/glow.1.1.min"], function() {
/*jslint plusplus: true */
console.log("glowscript loading");
window.__context = { glowscript_container: $("#glowscript").removeAttr("id") };
//var scene = canvas();
var glowObjs = [];
//scene.title.text("fps = frames/sec... | PypiClean |
/FairCore-5.0.2.tar.gz/FairCore-5.0.2/F/DICT/__init__.py | import json
import random
from F.LOG import Log
Log = Log("FCoRE.DICT")
"""
-> "dict" object extension/helper functions
"""
SORT_BY_VALUE = lambda dictObj: {k: v for k, v in sorted(dictObj.items(), key=lambda item: item[1], reverse=False)}
SORT_BY_KEY = lambda dictObj, reversed: {k: v for k, v in sorted(dictObj.item... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/uix/anchorlayout.py | __all__ = ('AnchorLayout', )
from kivy.uix.layout import Layout
from kivy.properties import OptionProperty, VariableListProperty
class AnchorLayout(Layout):
'''Anchor layout class. See the module documentation for more information.
'''
padding = VariableListProperty([0, 0, 0, 0])
'''Padding between ... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/datasets/_npctr.py | __all__ = ["NPCTRCatchments"]
from typing import Union, List, Tuple
from ai4water.backend import pd, os, np
from ._datasets import Datasets
from .utils import check_attributes, sanity_check, check_st_en
class NPCTRCatchments(Datasets):
"""
High-resolution streamflow and weather data (2013–2019) for seven s... | PypiClean |
/LMRt-0.8.6.tar.gz/LMRt-0.8.6/README.rst | .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2655097.svg
:target: https://doi.org/10.5281/zenodo.2655097
.. image:: https://img.shields.io/github/last-commit/fzhu2e/LMRt/master
:target: https://github.com/fzhu2e/LMRt
.. image:: https://img.shields.io/github/license/fzhu2e/LMRt
:target: https://gi... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/currency/el_GR/__init__.py | from .. import Provider as CurrencyProvider
class Provider(CurrencyProvider):
# Source https://el.wikipedia.org/wiki/Κατάλογος_νομισμάτων_των_χωρών_του_κόσμου
# Format: (code, name)
currencies = (
("AED", "Ντιρχάμ των Ηνωμένων Αραβικών Εμιράτων"),
("AFN", "Αφγάνι"),
("ALL", "Λεκ"),... | PypiClean |
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/elements/network.py | from smc.base.model import Element, ElementCreator
from smc.api.exceptions import (
MissingRequiredInput,
CreateElementFailed,
ElementNotFound,
FetchElementFailed,
)
from smc.base.util import element_resolver
from smc.compat import is_smc_version_less_than
class Host(Element):
"""
Class repres... | PypiClean |
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/contour.py | import functools
from numbers import Integral
import numpy as np
from numpy import ma
import matplotlib as mpl
from matplotlib import _api, docstring
from matplotlib.backend_bases import MouseButton
import matplotlib.path as mpath
import matplotlib.ticker as ticker
import matplotlib.cm as cm
import matplotlib.colors ... | PypiClean |
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/bin/medpy_extract_min_max.py | # build-in modules
import argparse
import logging
import sys
import os
# third-party modules
# path changes
# own modules
from medpy.core import Logger
from medpy.io import load
# information
__author__ = "Oskar Maier"
__version__ = "r0.2, 2011-12-13"
__email__ = "oskar.maier@googlemail.com"
__status__ = "Release"... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/documentation/PUBLICATIONS.rst | Publications
============
.. attention:: If you use FiPy in your research, please cite:
J. E. Guyer, D. Wheeler & J. A. Warren,
"FiPy: Partial Differential Equations with Python,"
*Computing in Science & Engineering* **11** (3) pp. 6-15 (2009),
`doi:10.1109/MCSE.2009.52 <http://dx.doi.org/10.1109/MCSE.200... | PypiClean |
/ACTIONet-0.1.1.tar.gz/ACTIONet-0.1.1/README.md | # This branch is currently non functional due to changes to core. Please use the R branch for the time being.
# Installation
### Setting Up the Environment (Preinstallation)
**For Linux Users**
Verify that the cmake version you are using is >=3.19.
For the optimal performance on Intel-based architectures, installin... | PypiClean |
/Flask-FileUpload-0.5.0.tar.gz/Flask-FileUpload-0.5.0/flask_fileupload/storage/s3storage.py | import boto3
from werkzeug.utils import secure_filename
from .utils import convert_to_snake_case
from . import AbstractStorage, StorageExists, StorageNotExists, StorageNotAllowed
#Enhancement: Upload needs to have proper permissons public/private
#Enhancement: The get_existing_files method needs to handle subfolders
... | PypiClean |
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/docs/rst/HydPy-A.rst |
.. _HydPy-A:
HydPy-A (RIMO/RIDO)
===================
Many hydrologists use linear system approaches to solve flood routing
problems approximately. Famous examples are the Unit Hydrograph approach
and the Muskingum flood routing method. One can understand the Unit
Hydrograph approach as a moving average process (MA... | PypiClean |
/DLRN-0.26.1.tar.gz/DLRN-0.26.1/dlrn/api/prom_metrics.py |
from dlrn.api import app
from dlrn.config import ConfigOptions
from dlrn.db import closeSession
from dlrn.db import Commit
from dlrn.db import getSession
from flask import g
from flask import Response
from prometheus_client.core import CounterMetricFamily
from prometheus_client.core import REGISTRY
from prometheus_c... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/os/storage/cinder_storage.py |
import copy
from itertools import ifilter
from cinderclient.v1 import client as cinder_client
from cinderclient import exceptions as cinder_exc
from cloudferry.lib.base import storage
from cloudferry.lib.os.identity import keystone
from cloudferry.lib.os.storage import filters as cinder_filters
from cloudferry.lib.u... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/implementations/phone_models.md |
(phone_models)=
# Phone model alignments
With the `--use_phone_model` flag, an ngram language model for phones will be constructed and used to generate phone transcripts with alignments. The phone language model uses bigrams and higher orders (up to 4), with no unigrams included to speed up transcription (and becaus... | PypiClean |
/COAsT-3.2.1.tar.gz/COAsT-3.2.1/coast/diagnostics/tidegauge_analysis.py | import numpy as np
import xarray as xr
from ..data.tidegauge import Tidegauge
from .._utils import general_utils, stats_util, crps_util
import matplotlib.dates as mdates
import utide as ut
import scipy.signal as signal
class TidegaugeAnalysis:
"""
This contains analysis methods suitable for use with the datas... | PypiClean |
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/config/image_tiled.py |
import logging
import numpy as np
from .image import ImageBuilder, FlattenNoiseVariance, RegisterImageType
from .util import GetRNG
from .value import ParseValue, GetAllParams
from .stamp import BuildStamps, _ParseDType
from .noise import AddSky, AddNoise
from ..errors import GalSimConfigError, GalSimConfigValueError... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/or_IN/__init__.py | from .. import Provider as PersonProvider
class Provider(PersonProvider):
formats_female = (
"{{first_name_female}} {{last_name}}",
"{{first_name_unisex}} {{last_name}}",
"{{prefix_female}} {{first_name_unisex}} {{last_name}}",
"{{prefix_female}} {{first_name_female}} {{last_name}}... | PypiClean |
/Deliverance.Rewrite-0.6.3.tar.gz/Deliverance.Rewrite-0.6.3/deliverance/editor/media/editarea/edit_area/reg_syntax/coldfusion.js | editAreaLoader.load_syntax["coldfusion"] = {
'COMMENT_SINGLE' : {1 : '//', 2 : '#'}
,'COMMENT_MULTI' : {'<!--' : '-->'}
,'COMMENT_MULTI2' : {'<!---' : '--->'}
,'QUOTEMARKS' : {1: "'", 2: '"'}
,'KEYWORD_CASE_SENSITIVE' : false
,'KEYWORDS' : {
'statements' : [
'include', 'require', 'include_once', 'require_on... | PypiClean |
/GML_distributions-0.1.tar.gz/GML_distributions-0.1/GML_distributions/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/mlr/models/gbr_xgboost.py | import logging
import os
from xgboost import XGBRegressor
from esmvaltool.diag_scripts.mlr.models import MLRModel
from esmvaltool.diag_scripts.mlr.models.gbr_base import GBRModel
logger = logging.getLogger(os.path.basename(__file__))
@MLRModel.register_mlr_model('gbr_xgboost')
class XGBoostGBRModel(GBRModel):
... | PypiClean |
/Bubot_AuthService-0.0.8-py3-none-any.whl/BubotObj/OcfDevice/subtype/AuthService/static/ui/js/chunk-4578c45e.77717224.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4578c45e"],{"065a":function(t,e,i){},"2d00d":function(t,e,i){"use strict";var s=i("065a"),a=i.n(s);a.a},"462e":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.value?i("div",[t.dialog?i("v-snackb... | PypiClean |
/EVALLIES-0.2.9.tar.gz/EVALLIES-0.2.9/evallies/database.py |
#################################################################################
# This file is part of EVALLIES. #
# #
# EVALLIES is a python package for lifelong learning speaker diarization.... | PypiClean |
/CUQIpy-0.4.0-py3-none-any.whl/cuqi/pde/_pde.py | from abc import ABC, abstractmethod
import scipy
from inspect import getsource
from scipy.interpolate import interp1d
import numpy as np
class PDE(ABC):
"""
Parametrized PDE abstract base class
Parameters
-----------
PDE_form : callable function
Callable function which returns a tuple o... | PypiClean |
/IVisual-alt-0.2.4.tar.gz/IVisual-alt-0.2.4/README.md | # IVisual
VPython API for IPython Notebook
IVisual provides VPython visual API for inline use in an IPython Notebook. You might find it most useful for
performing 3D visualizations of VPython visual simulations that can be viewed inline in an IPython Notebook.
Typical usage often looks like this in an IPython Noteboo... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/nopt/lib/nopt.js |
var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
? function () { console.error.apply(console, arguments) }
: function () {}
var url = require("url")
, path = require("path")
, Stream = require("stream").Stream
, abbrev = require("abbrev")
, os = require("os")
module.exports = exports = nopt
e... | PypiClean |
/Flask-Restless-NG-3.0.0.tar.gz/Flask-Restless-NG-3.0.0/flask_restless/views/base.py | import math
import re
from collections import defaultdict
from functools import partial
from functools import wraps
from http import HTTPStatus
from itertools import chain
from typing import Set
from typing import Tuple
from urllib.parse import urlparse
from urllib.parse import urlunparse
from flask import Response
fr... | PypiClean |
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/core/graph.py | import logging
import weakref
from collections import defaultdict
from copy import deepcopy
import numpy as np
import scipy.sparse as ssp
import nngt
import nngt.analysis as na
from nngt import save_to_file
from nngt.io.graph_loading import _load_from_file, _library_load, di_get_edges
from nngt.io.io_helpers import... | PypiClean |
/MPInterfaces_Latest-2.0.3.tar.gz/MPInterfaces_Latest-2.0.3/README.rst | .. image:: https://travis-ci.org/henniggroup/MPInterfaces.svg?branch=master
.. image:: https://codecov.io/gh/henniggroup/MPInterfaces/coverage.svg?branch=master
MPinterfaces is a python package that enables high throughput Density
Functional Theory(DFT) analysis of arbitrary material interfaces(two dimensional
materia... | PypiClean |
/Argot-0.6.tar.gz/Argot-0.6/argot/markup.py | import re
import sys
import random
# simplejson could potentially be all over the place
try: import json as simplejson # python 2.6
except ImportError:
try: import simplejson
except ImportError:
try: from django.utils import simplejson
except: simplejson = None
# pygments syntax highlighter
fr... | PypiClean |
/LEPL-5.1.3.zip/LEPL-5.1.3/src/lepl/lexer/lines/_test/pithon.py | from lepl.matchers.variables import TraceVariables
# The contents of this file are subject to the Mozilla Public License
# (MPL) Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/pages/mycourses.py |
""" Index page """
import flask
from collections import OrderedDict
from inginious.frontend.pages.utils import INGIniousAuthPage
class MyCoursesPage(INGIniousAuthPage):
""" Index page """
def GET_AUTH(self): # pylint: disable=arguments-differ
""" Display main course list page """
return se... | PypiClean |
/My_Client_Student-0.0.1.tar.gz/My_Client_Student-0.0.1/client/client/add_contact.py | from logging import getLogger
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton
LOGGER = getLogger('client')
class AddContactDialog(QDialog):
"""Класс диаллога выбора контакта для добавления"""
def __init__(self, transport, database):
"""Функция инициали... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/currency/es/__init__.py | from .. import Provider as CurrencyProvider
class Provider(CurrencyProvider):
# Format: (code, name)
currencies = (
("AED", "Dírham de los Emiratos Árabes Unidos"),
("AFN", "Afghaní"),
("ALL", "Lek albanés"),
("AMD", "Dram armenio"),
("ANG", "Florín de las Antillas Hola... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/UnpackAndAttachOsdREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(description="Python script using Redfish API with OEM extension either... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/lib/util/json2.js | // Create a JSON object only if one does not already exist. We create the
// methods in a closure to avoid creating global variables.
define( 'util/json2', [], function(){} );
var JSON;
if (!JSON) {
JSON = {};
}
(function () {
function f(n) {
// Format integers to have at least two digits.
... | PypiClean |
/ObjectRoles-0.6X.zip/ObjectRoles-0.6X/ez_setup/README.txt | This directory exists so that Subversion-based projects can share a single
copy of the ``ez_setup`` bootstrap module for ``setuptools``, and have it
automatically updated in their projects when ``setuptools`` is updated.
For your convenience, you may use the following svn:externals definition::
ez_setup svn://svn... | PypiClean |
/Clone-ChatGPT-1.3.0.tar.gz/Clone-ChatGPT-1.3.0/src/pandora/flask/static/_next/static/chunks/webpack-c9a868e8e0796ec6.js | !function(){"use strict";var e,t,r,n,o,i,u,c={},a={};function d(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}},n=!0;try{c[e].call(r.exports,r,r.exports,d),n=!1}finally{n&&delete a[e]}return r.loaded=!0,r.exports}d.m=c,d.amdD=function(){throw Error("define cannot be used indirect")},... | PypiClean |
/AutoSteper-2.1.1-py3-none-any.whl/autosteper/autosteper.py | import warnings
from autosteper.cage import blk_list, Cage, name2seq
from autosteper.checker import Checker
from autosteper.generator import Generator
from autosteper.optimizers import *
from autosteper.tools import get_low_e_ranks
class AutoSteper():
def __init__(self, para: dict):
self.cage = Cage(pris... | PypiClean |
/MagCalibration_jdickerson80-1.2.0-py3-none-any.whl/magCalibration/scripts/measurePxAvg_fit.py | import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import os
import sys
import mrcfile
import scipy
import csv
import pandas as pd
import math
import subprocess
import time
from matplotlib.widgets import Slider
from scipy import ndimage
from scipy.signal import savgol_filter
from scipy.signal i... | PypiClean |
/Corrfunc-2.5.1.tar.gz/Corrfunc-2.5.1/docs/source/modules/rr_autocorrelations.rst | .. _rr_autocorrelations:
Notes on the Random-Random Term in Autocorrelations
===================================================
The following discussion is adapted from `this notebook <http://nbviewer.jupyter.org/gist/lgarrison/1efabe4430429996733a9d29397423d2>`_ by `Lehman Garrison <https://lgarrison.github.io>`_.
... | PypiClean |
/BackuPy-1.10.1-py3-none-any.whl/backupy/statusbar.py |
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along ... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.10/events.js | var events = {};
/**
* To access the EventEmitter class,
* require('events').EventEmitter.
* @constructor
*/
events.EventEmitter = function() {}
/**
* Adds a listener to the end of the listeners array for the specified
* event.
* @param event
* @param listener
*/
events.EventEmitter.prototype.addList... | PypiClean |
/FitsGeo-1.0.0.tar.gz/FitsGeo-1.0.0/examples/example3/snowman.py | import fitsgeo as fg
# Create main scene, with axis
fg.create_scene(ax_length=5, background=fg.WHITE)
# Define materials
fg.MAT_WATER.color = "lightgray"
ice = fg.MAT_WATER
carbon = fg.Material.database("MAT_CARBON", color="black")
poly = fg.Material.database("MAT_PARAFFIN", color="orange")
# Create all objects for ... | PypiClean |
/ConnectorDB-0.3.5.tar.gz/ConnectorDB-0.3.5/connectordb/_connectorobject.py | class ConnectorObject(object):
"""Users, devices and streams are all built upon the base `ConnectorObject`.
The methods from ConnectorObject can be accessed from any user, device or stream.
Do not use this object directly. The API is accessed using the ConnectorDB class (below).
"""
def __init__(s... | PypiClean |
/DeCiDa-1.1.5.tar.gz/DeCiDa-1.1.5/decida/PlotBasem.py | from __future__ import print_function
from builtins import str
from builtins import zip
from builtins import range
from builtins import object
import sys
import os
import os.path
import stat
import re
import math
import subprocess
import warnings
import tkinter as tk
import tkinter.messagebox
import tkinter.filedialog
... | PypiClean |
/CherryPy-18.8.0.tar.gz/CherryPy-18.8.0/cherrypy/lib/gctools.py | import gc
import inspect
import sys
import time
try:
import objgraph
except ImportError:
objgraph = None
import cherrypy
from cherrypy import _cprequest, _cpwsgi
from cherrypy.process.plugins import SimplePlugin
class ReferrerTree(object):
"""An object which gathers all referrers of an object to a give... | PypiClean |
/conpot-0.6.0-py3-none-any.whl/conpot/protocols/ftp/ftp_base_handler.py |
from gevent import monkey; monkey.patch_all()
import socketserver
import gevent
from gevent import queue
from gevent import select
import conpot.core as conpot_core
from conpot.core.filesystem import FilesystemError
import logging
import errno
import time
import fs
from datetime import datetime
import os
from fs impor... | PypiClean |
/CUQIpy-0.4.0-py3-none-any.whl/cuqi/problem/_problem.py | from __future__ import annotations
import numpy as np
import time
from typing import Tuple
import cuqi
from cuqi import config
from cuqi.distribution import Distribution, Gaussian, InverseGamma, LMRF, GMRF, Lognormal, Posterior, Beta, JointDistribution, Gamma, CMRF
from cuqi.density import Density
from cuqi.model impo... | PypiClean |
/GPy_ABCD-1.2.1-py3-none-any.whl/GPy_ABCD/Kernels/changeWindowThreePart.py | from paramz.caching import Cache_this
from paramz.transformations import Logexp, Logistic
from GPy.kern.src.kern import CombinationKernel
from GPy.core.parameterization import Param
from copy import deepcopy
import numpy as np
from GPy_ABCD.Kernels.sigmoidalKernels import SigmoidalKernel, SigmoidalIndicatorKernel
cl... | PypiClean |
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/web3/providers/websocket.py | import asyncio
import json
import logging
import os
from threading import (
Thread,
)
import websockets
from web3.exceptions import (
ValidationError,
)
from web3.providers.base import (
JSONBaseProvider,
)
RESTRICTED_WEBSOCKET_KWARGS = {'uri', 'loop'}
DEFAULT_WEBSOCKET_TIMEOUT = 10
def _start_event_lo... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-haml.js | ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var constantOtherSymbol = exports.c... | PypiClean |
/FFEAT-1.0.0-py3-none-any.whl/ffeat/_common/selection/Elitism.py | from typing import Union, Callable
import torch as t
from ffeat import Pipe, flow, STANDARD_REPRESENTATION
_IFU = Union[int, float]
class Elitism(Pipe):
"""
Elitism operator. Copy elites from the population, provided pipes and then copies them back.
"""
def __init__(self,
num_elites:... | PypiClean |
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/usage_snapshot.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 UsageSnapshot:
default_attributes = {
'id': None, # int64 - Usage snapshot ID
'start_at':... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/stencil/_Base.js | define(["dijit","dojo","dojox","dojo/require!dojo/fx/easing"],function(_1,_2,_3){
_2.provide("dojox.drawing.stencil._Base");
_2.require("dojo.fx.easing");
_3.drawing.stencil._Base=_3.drawing.util.oo.declare(function(_4){
_2.mixin(this,_4);
this.style=_4.style||_3.drawing.defaults.copy();
if(_4.stencil){
this.stencil=_4... | PypiClean |
/EnigmaOPTest0.0.5-0.0.17.tar.gz/EnigmaOPTest0.0.5-0.0.17/src/EnigmaOP0/Rotors.py | def Rotor():
lst=[]
lst=({0: 31, 1: 110, 2: 113, 3: 46, 4: 50, 5: 115, 6: 29, 7: 69, 8: 111, 9: 58, 10: 33, 11: 24, 12: 60, 13: 23, 14: 51, 15: 86, 16: 22, 17: 8, 18: 112, 19: 67, 20: 52, 21: 47, 22: 9, 23: 126, 24: 81, 25: 75, 26: 96, 27: 45, 28: 17, 29: 18, 30: 49, 31: 11, 32: 73, 33: 25, 34: 0, 35: 72, 36: 2... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tree/ReformulationSequenceCreation.py | from nuitka.nodes.BuiltinIteratorNodes import ExpressionBuiltinIter1
from nuitka.nodes.BuiltinNextNodes import ExpressionBuiltinNext1
from nuitka.nodes.BuiltinTypeNodes import ExpressionBuiltinTuple
from nuitka.nodes.ConstantRefNodes import makeConstantRefNode
from nuitka.nodes.ContainerMakingNodes import (
makeExp... | PypiClean |
/NeuNorm-1.6.2.tar.gz/NeuNorm-1.6.2/documentation/build/html/_static/underscore-1.3.1.js |
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `global` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Establish the object that gets returned to break out of a loop itera... | PypiClean |
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/core/fe_model/section/beam_section.py | import numpy as np
from sympy import re
from hyperstatic.core.fe_model.material.isotropy import IsotropicMaterial
class BeamSection(object):
def __init__(self,name:str,material:IsotropicMaterial,shape:str,sizes,A,As2,As3,J,I22,I33,W22,W33):
self.__name=name
self.__material=material
self... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/en-gb.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/logger/event_handler/LogFileMessageEventHandler.py | import logging
import os
from enarksh.DataLayer import DataLayer
class LogFileMessageEventHandler:
"""
An event handler for a LogFileMessage received events.
"""
@staticmethod
# ------------------------------------------------------------------------------------------------------------------
... | PypiClean |
/MDAKit-1.0.0-py3-none-any.whl/MDKit/tools/rg.py | import os
import argparse
import numpy as np
import mdtraj as md
import tqdm
'''
units: nm
'''
def cal_rg_PDB(pdbfile:str, selection='all'):
"""Calculate the Residue Gyration value for single PDB file.
Args:
pdbfile (str): Input PDB files.
selection (str, optional): Selection group to calcula... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.