id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/AICON-2.0.1-py3-none-any.whl/aicon/seebeck.py |
import scipy.constants
from scipy.integrate import quad
Boltzm = scipy.constants.Boltzmann
C_e = scipy.constants.e
def Upperlimit(x):
if x < 0:
return 100
else:
return x + 100
class Seebeck(object):
'''Seebeck coefficient class'''
def __init__(self, flag, RelaxTime):
sel... | PypiClean |
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/ieee4882.py | from lantz import Action, Feat, Driver
class IEEE4882Driver(Driver):
"""Implements mandatory functions for a IEE488.2 device.
You can use it as a mixin class.
"""
@Feat(read_once=True)
def idn(self):
"""Instrument identification.
"""
return self.parse_query('*IDN?',
... | PypiClean |
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glypher/glypher.py | import re
import sympy
import gtk, gobject
from sympy.core.numbers import Infinity
from sympy.core.numbers import ImaginaryUnit
try:
from sympy.polys.factortools import factor # 0.6.7
except:
from sympy.polys.polytools import factor # 0.7.1
import os
import codecs
import pkg_resources
import sys, traceback
fr... | PypiClean |
/Flask-Pretty-0.2.0.tar.gz/Flask-Pretty-0.2.0/README.md | # Flask-Pretty
[](https://pypi.python.org/pypi/flask-pretty)
[](https://pypi.python.org/pypi/flask-pretty)
[](https://py... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/validation_problem_source.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/Chiplotle3-0.4.3-py3-none-any.whl/chiplotle3/geometry/core/coordinatearray.py | from __future__ import division
from __future__ import print_function
from builtins import zip
from builtins import str
from past.utils import old_div
from chiplotle3.geometry.core.coordinate import Coordinate
from chiplotle3.geometry.core.coordinatearraypropertiesmixin import \
CoordinateArrayPropertiesMixin
import... | PypiClean |
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angularjs-toaster/toaster.min.js | !function(){"use strict";angular.module("toaster",[]).constant("toasterConfig",{limit:0,"tap-to-dismiss":!0,"close-button":!1,"newest-on-top":!0,"time-out":5e3,"icon-classes":{error:"toast-error",info:"toast-info",wait:"toast-wait",success:"toast-success",warning:"toast-warning"},"body-output-type":"","body-template":"... | PypiClean |
/GromacsWrapper-0.8.4.tar.gz/GromacsWrapper-0.8.4/scripts/gw-forcefield.py | from __future__ import print_function
from gromacs.fileformats import TOP
import numpy as np
import math
import copy, argparse
def scale_angles(mol, angles):
new_angles = {}
for dh in mol.angles:
atypes = dh.atom1.get_atomtype(), dh.atom2.get_atomtype(), dh.atom3.get_atomtype()
... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_mgh-mz.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 |
/Newton-Polygon-0.0.7.tar.gz/Newton-Polygon-0.0.7/newton_polygon/polygon.py | import matplotlib.pyplot as plt
import seaborn as sns
from wolframclient.evaluation import WolframLanguageSession
from wolframclient.language.expression import WLFunction
def _patched(self):
"""!
WLFunction method overriding.
"""
return "%s[%s]" % (repr(self.head), ", ".join(repr(x) for x in self.args... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/app-route/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/app-route/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page turns... | PypiClean |
/AList-2.0.0-py3-none-any.whl/alist/pages/list_anime.py | from tkinter import ttk, BOTH, StringVar, RIGHT, LEFT
from alist.pages.right_page import RightPage
from alist.utils import ScrollFrame
class ListAnime(RightPage):
def __init__(self, main):
super(ListAnime, self).__init__(main)
self.current_page = 1
self.current_display = ""
title... | PypiClean |
/BubbleDet-1.0.0.tar.gz/BubbleDet-1.0.0/examples/kink.py | import numpy as np
import matplotlib.pyplot as plt
from BubbleDet import BubbleConfig, ParticleConfig, BubbleDeterminant
# coordinates for constructing our custom bounce
dim = 1
xmin = 0
xmax = 20
xkink = (xmax + xmin) / 2
npoints = 1000
dx = (xmax - xmin) / (npoints - 1)
x = np.arange(0, npoints) * dx + xmin
# phi... | PypiClean |
/JiveData-0.1.tar.gz/JiveData-0.1/README.rst | JiveData
==============
The code that powers www.jivedata.com, our email alerts, and twitter notifications.
Installation
------------
Install JiveData with pip_::
$ pip install JiveData
or with easy_install::
$ easy_install JiveData
.. _pip: http://www.pip-installer.org/
To Run
------
To run the webapp:... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/tutorials/new_to_game_theory_and_or_python/tournament.rst | .. _creating_tournaments:
Creating and running a simple tournament
========================================
The following lines of code creates a list players playing simple
strategies::
>>> import axelrod as axl
>>> players = [axl.Cooperator(), axl.Defector(),
... axl.TitForTat(), axl.Grudger... | PypiClean |
/BoxKit-2023.6.7.tar.gz/BoxKit-2023.6.7/boxkit/library/_data.py |
import os
import string
import random
import shutil
import h5py
import h5pickle
import numpy
from boxkit import options
if options.DASK:
import dask.array as dsarray
if options.PYARROW:
import pyarrow
if options.ZARR:
import zarr
if options.CBOX:
from ..cbox.lib import boost as cbox
_DataBase... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-sv-SE.min.js | !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"sv-SE":{font:{bold:"Fet",italic:"Kur... | PypiClean |
/DjanJinja-0.8.tar.gz/DjanJinja-0.8/djanjinja/views.py | from functools import partial
from django import template
from django.conf import settings
from django.http import HttpResponse
from djanjinja import get_env
DEFAULT_CONTENT_TYPE = getattr(settings, 'DEFAULT_CONTENT_TYPE', 'text/html')
class RequestContext(template.RequestContext):
"""A ``RequestContext`... | PypiClean |
/HAllA-0.8.20-py3-none-any.whl/scripts/hallagram.py | import argparse
import sys
import numpy as np
from os.path import join
import pkg_resources
from halla.utils.report import generate_hallagram, generate_clustermap
from .loader import HAllAPartialLoader
def parse_argument(args):
parser = argparse.ArgumentParser(
description='HAllA clustermap/hallagram gene... | PypiClean |
/MORSM-2.0.0.tar.gz/MORSM-2.0.0/MORSM.py | import numpy as np
import matplotlib.pyplot as plt
import os
import argparse
import glob
import logging
import itertools
params = {'dh': 171, # set the grid spacing in your computational domain
'Xc': 175.489469137e3, # set north-south Cartesian location of the segment's center
'Yc': 127683.513753... | PypiClean |
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/causal_forest.py |
from .utilities import LassoCVWrapper, deprecated
from sklearn.linear_model import LogisticRegressionCV
from .dml import CausalForestDML
@deprecated("The CausalForest class has been deprecated by the econml.dml.CausalForestDML; "
"an upcoming release will remove support for the old class")
def CausalFore... | PypiClean |
/CBlog-0.1a.tar.bz2/CBlog-0.1a/README.html | <?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="g... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/__init__.py |
from amara.namespaces import XML_NAMESPACE, XMLNS_NAMESPACE
from version import version_info
__version__ = '.'.join(version_info)
#FIXME: Proper i18n soon
def _(text): return text
class Error(Exception):
message = ''
_message_table = None
# defer localization of the messages until needed
def __new... | PypiClean |
/Flask-ESearch-0.4.0.tar.gz/Flask-ESearch-0.4.0/src/flask_esearch/__init__.py | from elasticsearch import Elasticsearch
from flask import Flask
from flask import _app_ctx_stack as stack
class ESearch:
def __init__(self, app=None, **options):
"""
Initializes the ESearch object
Args:
app: Flask object
**options: dict options
"""
s... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/sass/sass.js | CodeMirror.defineMode("sass", function(config) {
var tokenRegexp = function(words){
return new RegExp("^" + words.join("|"));
};
var keywords = ["true", "false", "null", "auto"];
var keywordsRegexp = new RegExp("^" + keywords.join("|"));
var operators = ["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\... | PypiClean |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/messages/edit_inline_text.py |
from typing import Optional
import hikkapyro
from hikkapyro import raw, enums
from hikkapyro import types
from hikkapyro import utils
from .inline_session import get_session
class EditInlineText:
async def edit_inline_text(
self: "hikkapyro.Client",
inline_message_id: str,
text: str,
... | PypiClean |
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/github/StatusMessage.py |
# ########################## Copyrights and license ############################
# #
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
# ... | PypiClean |
/HiCMatrix-15-py3-none-any.whl/hicmatrix/lib/h5.py | from os import unlink
import os
import logging
log = logging.getLogger(__name__)
import tables
from scipy.sparse import csr_matrix, triu
import numpy as np
from hicmatrix.utilities import toString
from .matrixFile import MatrixFile
class H5(MatrixFile, object):
def __init__(self, pMatrixFile):
super().... | PypiClean |
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/Tools/EESCodeGenerator/EES_parser.py | from rply import LexerGenerator, ParserGenerator, Token
from rply.token import BaseBox
from EEETools.costants import get_html_string
class EESCodeAnalyzer:
def __init__(self):
self.__init_lexer_generator()
self.__init_parser_generator()
self.__init_lexer_generator(init_splitter=True)
... | PypiClean |
/Copreus-0.4.0.tar.gz/Copreus-0.4.0/copreus/drivers/pollinginput.py | import RPi.GPIO as GPIO
from copreus.baseclasses.adriver import ADriver
from copreus.baseclasses.apolling import APolling
from copreus.schema.pollinginput import get_schema
from enum import Enum
import collections
import math
class PollingInput(ADriver, APolling):
"""Generic driver that polls the value of a pin a... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/model/create/primitives.py | from klampt import Geometry3D,GeometricPrimitive,Mass
from klampt.math import vectorops
def box(width,depth,height,center=None,R=None,t=None,world=None,name=None,mass=float('inf'),type='TriangleMesh'):
"""Makes a box with dimensions width x depth x height. The box is centered
at (0,0,0) by default.
Args:... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/render/mapserver/factories.py |
from os.path import join
from typing import List, Type, Iterable, Tuple
from uuid import uuid4
try:
from itertools import izip_longest
except ImportError:
from itertools import zip_longest as izip_longest
from django.conf import settings
from django.utils.module_loading import import_string
from eoxserver.co... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/_editor/html.js | if(!dojo._hasResource["dijit._editor.html"]){
dojo._hasResource["dijit._editor.html"]=true;
dojo.provide("dijit._editor.html");
dijit._editor.escapeXml=function(_1,_2){
_1=_1.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""");
if(!_2){
_1=_1.replace(/'/gm,"'");
}
return _1;
}... | PypiClean |
/Dowell%20Mail-1.0.2.tar.gz/Dowell Mail-1.0.2/docs/_build/html/_static/javascripts/lunr/lunr.ro.js | !function(e,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... | PypiClean |
/Mecoda_Orange-1.9.0-py3-none-any.whl/mecoda_orange/natusfera.py | from orangewidget.widget import OWBaseWidget, Output
from orangewidget.settings import Setting
from orangewidget import gui
from orangewidget.utils.widgetpreview import WidgetPreview
import Orange.data
from Orange.data.pandas_compat import table_from_frame
from mecoda_nat import get_obs, get_dfs
from typing import Opti... | PypiClean |
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/services/converter/payload/conversationDirectoryPayload.py | import os
from typing import List, Union
from .payloadObject import PayLoadObject, PayLoadStatus
from ...organizer.source import SourceObject
from gailbot.core.utils.general import paths_in_dir, is_directory, copy
from gailbot.core.utils.logger import makelogger
from gailbot.workspace.manager import WorkspaceManager
fr... | PypiClean |
/FairCore-5.0.2.tar.gz/FairCore-5.0.2/README.md | ## FairCore
My goal? A base package with little to zero third-party
dependencies. I only made one exception, for DATE based functions (which uses, python-dateutil>=2.7.5).
Outside that, everything else is built on-top of python3 built-in modules.
Boo to bloat.
##### F Systems
* CLASS - Wrapped Functions. Routines.... | PypiClean |
/NlpToolkit-WordSenseDisambiguation-1.0.3.tar.gz/NlpToolkit-WordSenseDisambiguation-1.0.3/WordSenseDisambiguation/ParseTree/Lesk.py | from random import randrange
import random
from AnnotatedSentence.AnnotatedWord import ViewLayerType
from AnnotatedTree.ParseTreeDrawable import ParseTreeDrawable
from AnnotatedTree.Processor.Condition.IsTurkishLeafNode import IsTurkishLeafNode
from AnnotatedTree.Processor.NodeDrawableCollector import NodeDrawableColl... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/encoding/digests/SHA1.js | define("dojox/encoding/digests/SHA1",["./_base"],function(_1){
var _2=8,_3=(1<<_2)-1;
function R(n,c){
return (n<<c)|(n>>>(32-c));
};
function FT(t,b,c,d){
if(t<20){
return (b&c)|((~b)&d);
}
if(t<40){
return b^c^d;
}
if(t<60){
return (b&c)|(b&d)|(c&d);
}
return b^c^d;
};
function KT(t){
return (t<20)?1518500249:(t<40)?... | PypiClean |
/Fathom-Workloads-1.0rc0.tar.gz/Fathom-Workloads-1.0rc0/fathom/vgg/vgg.py |
from math import sqrt
import tensorflow as tf
from fathom.nn import default_runstep
from fathom.imagenet import imagenet
class VGG(imagenet.ImagenetModel):
"""VGG Network."""
def build_hyperparameters(self):
# TODO: put these into runstep options or somewhere else
# Parameters
self.learning_rate = 0.0... | PypiClean |
/MySEAS-0.0.5.1.tar.gz/MySEAS-0.0.5.1/SEAS/Engine/Components/characterPolyControllerComp.py | from SEAS.Engine.Core import *
from SEAS.Engine.Setup import *
import math
class CharacterPolyController:
def start(self):
self.trns = SEAS.getScene().getComponent('TransformPoly')
self.hitb = SEAS.getScene().getComponent('HitboxPoly')
def update(self):
pass
def move(s... | PypiClean |
/NEURON_gpu-8.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/rxdmath.py | import math
import numpy
import functools
import copy
import sys
from .rxdException import RxDException
from . import initializer
def _vectorized(f, objs):
if hasattr(objs, "__len__"):
return numpy.array([f(obj) for obj in objs])
else:
return f(objs)
def _vectorized2(f, objs1, objs2):
if... | PypiClean |
/Basicenssembleargumentation-0.0.1.tar.gz/Basicenssembleargumentation-0.0.1/EnsArg/argumentation.py |
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.tree import DecisionTreeRegressor
from sklearn.metrics import accuracy_s... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/sequence_clusters/expansion/extract_families_graphs_from_hclust_input.py | __author__ = 'Sergei F. Kliver'
import os
import argparse
from multiprocessing import Pool
from RouToolPa.Collections.General import SynDict
from RouToolPa.Routines.File import check_path
"""
def call_hcluster(input, output, edge_weight, edge_density):
hcluster_options = " -w %i -s %f" % (edge_weight, edge_dens... | PypiClean |
/KratosCoSimulationApplication-9.4-cp39-cp39-win_amd64.whl/KratosMultiphysics/CoSimulationApplication/co_simulation_analysis.py | import KratosMultiphysics as KM
from KratosMultiphysics.analysis_stage import AnalysisStage
# CoSimulation imports
import KratosMultiphysics.CoSimulationApplication.factories.solver_wrapper_factory as solver_wrapper_factory
import KratosMultiphysics.CoSimulationApplication.co_simulation_tools as cs_tools
import Kratos... | PypiClean |
/MelodieStudio-0.2.0.tar.gz/MelodieStudio-0.2.0/README.md | # README
[](https://travis-ci.com/SongminYu)
This project is supposed to be developed as a general framework that can be used to establish agent-based models for
specific uses. Current main contribut... | PypiClean |
/Flask-Foundation-2.1.tar.gz/Flask-Foundation-2.1/flask_foundation/static/js/foundation/foundation.orbit.js | ;(function ($, window, document, undefined) {
'use strict';
var noop = function() {};
var Orbit = function(el, settings) {
// Don't reinitialize plugin
if (el.hasClass(settings.slides_container_class)) {
return this;
}
var self = this,
container,
slides_container = el,
... | PypiClean |
/FTIRE_jweng-0.1.4-py3-none-any.whl/FTIRE/FT3.py | import numpy as np
from scipy import stats
import scipy.linalg as la
import FTIRE
__all__ = ['FT']
#%%
class FT:
"""FT method to apply for X and Y"""
def __init__(self, X, y, d = 1, m = 30, weighted = False, W = None, spX = False):
self.d = d
self.m = m
self.X = np.array(X)
sel... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/docs/source/library/index.rst | #################
Library Reference
#################
.. pilot/impl/pilot_manager.py defines:
.. class ComputeDataService
..
.. pilot/impl/pilotdata_manager.py defines
.. class PilotData
.. class PilotDataService
.. class DataUnit
..
.. pilot/impl/pilotcompute_manager.py defines
.. class PilotCompute
..... | PypiClean |
/Aston-0.7.1.tar.gz/Aston-0.7.1/aston/peak/integrators.py | import multiprocessing
import functools
import numpy as np
from aston.trace.trace import Trace
from aston.peak.peak import Peak, PeakComponent
from aston.peak.peak_models import peak_models
from aston.peak.peak_fitting import guess_initc, fit
def simple_integrate(ts, peak_list, base_ts=None, intname='simple'):
""... | PypiClean |
/NEMO_keycloak-1.3.1-py3-none-any.whl/NEMO_keycloak/services/client.py | import logging
from datetime import datetime
from functools import partial
from typing import Dict
from django.utils import timezone
from NEMO_keycloak.keycloak.admin import KeycloakAdmin
from NEMO_keycloak.keycloak.authz import KeycloakAuthz
from NEMO_keycloak.keycloak.openid_connect import KeycloakOpenidConnect
fro... | PypiClean |
/FFEAT-1.0.0-py3-none-any.whl/ffeat/measure/FitnessQuantile.py | from typing import Union
import torch as t
from ffeat import Pipe, STANDARD_REPRESENTATION
from .Base import Base
class FitnessQuantile(Pipe, Base):
"""
Measure the fitness quantile.
"""
def __init__(self, quantile: Union[float, t.Tensor], reporter = None):
"""
Measure the fitness qua... | PypiClean |
/Kotti-2.0.9.tar.gz/Kotti-2.0.9/docs/developing/basic/developer-manual.rst | .. _developer-manual:
Developer manual
================
Read the :ref:`Configuration` section first to understand which hooks both integrators and developers can use to customize and extend Kotti.
.. contents::
Screencast tutorial
-------------------
Here's a screencast that guides you through the process of creat... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/xpath/functions/nodesets.py | from amara import tree
from amara.xpath import datatypes
from amara.xpath.functions import builtin_function
from amara.xpath.locationpaths import relative_location_path
__all__ = ('last_function', 'position_function', 'count_function',
'id_function', 'local_name_function', 'namespace_uri_function',
... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/SliceCodes.py | from nuitka import Options
from nuitka.PythonVersions import python_version
from .CodeHelpers import (
generateChildExpressionsCode,
generateExpressionCode,
generateExpressionsCode,
withObjectCodeTemporaryAssignment,
)
from .ErrorCodes import getErrorExitBoolCode, getErrorExitCode
from .IndexCodes impo... | PypiClean |
/FirstAlexaSkills-0.2.0.tar.gz/FirstAlexaSkills-0.2.0/docs/index.rst | .. FirstAlexaSkills documentation master file, created by
sphinx-quickstart on Tue Mar 14 21:58:22 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to FirstAlexaSkills
===========================
``FirstAlexaSkills`` is a Python pac... | PypiClean |
/Baygon-0.5.1.tar.gz/Baygon-0.5.1/docs/docs/guide/syntax.md | # Config File Syntax
## Base
Each config file should start with the version of the syntax which is `1`. Then the mandatory `tests` dictionary must exist. The following is a minimal example composed of 1 test which tests if the output is 3 when the binary is run with two arguments `1` and `2`:
```yaml
version: 1
test... | PypiClean |
/Exegol-4.2.5.tar.gz/Exegol-4.2.5/exegol/console/cli/ExegolCompleter.py | from argparse import Namespace
from typing import Tuple
from exegol.config.DataCache import DataCache
from exegol.manager.UpdateManager import UpdateManager
from exegol.utils.DockerUtils import DockerUtils
def ContainerCompleter(prefix: str, parsed_args: Namespace, **kwargs) -> Tuple[str, ...]:
"""Function to dy... | PypiClean |
/FuzzingTool-3.14.0-py3-none-any.whl/fuzzingtool/core/bases/base_scanner.py |
from abc import abstractmethod
from queue import Queue
from .job_provider import JobProvider
from ...objects import Payload, Result, ScannerResult
class BaseScanner(JobProvider):
"""Base scanner (ABC)
Attributes:
payloads_queue: The payload queue for new requests
"""
def __init__(self):
... | PypiClean |
/MSOIsHH2os-1.0.tar.gz/MSOIsHH2os-1.0/flood_tool/geo.py | from numpy import array, asarray, mod, sin, cos, tan, sqrt, arctan2, floor, rad2deg, deg2rad, stack, pi
from scipy.linalg import inv
import numpy as np
__all__ = ['get_easting_northing_from_gps_lat_long',
'get_gps_lat_long_from_easting_northing']
class Ellipsoid(object):
""" Data structure for a globa... | PypiClean |
/nudenetupdated-2.2.10.tar.gz/nudenetupdated-2.2.10/src/nudenetupdated/detector.py | import cv2
import numpy as np
from nudenetupdated.utils.detector import preprocess_image
from nudenetupdated.utils.download import load_detector_classes, load_detector_model
class Detector:
def detect_labels(self, img_path, mode="default", min_prob=None):
detection_model = load_detector_model()
c... | PypiClean |
/MDAnalysisData-0.8.1.tar.gz/MDAnalysisData-0.8.1/docs/usage.rst |
.. -*- coding: utf-8 -*-
.. _usage:
=======
Usage
=======
All datasets in :mod:`MDAnalysisData` are accessible via ``fetch_*``
functions in the :mod:`MDAnalysisData.datasets` module. Datasets are
organized in submodules by the type of simulations that they
represent. The currently included datasets are:
.. curre... | PypiClean |
/FoundryDataBrowser-190903.1.tar.gz/FoundryDataBrowser-190903.1/README.md | Foundry Data Browser
====================
A ScopeFoundry data browser that includes viewers for many of the experiement
data types at the Molecular Foundry
ScopeFoundry is a Python platform for controlling custom laboratory
experiments and visualizing scientific data
<http://www.scopefoundry.org>
Maintainer
-----... | PypiClean |
/Mopidy-Spotify-Tunigo-1.0.0.tar.gz/Mopidy-Spotify-Tunigo-1.0.0/mopidy_spotify_tunigo/library.py | from __future__ import unicode_literals
from mopidy import backend, httpclient
from mopidy.models import Ref
from mopidy_spotify_tunigo import translator
from tunigo import Tunigo
class SpotifyTunigoLibraryProvider(backend.LibraryProvider):
root_directory = Ref.directory(
uri='spotifytunigo:directory',... | PypiClean |
/OBP_security_pillar-0.2.1-py3-none-any.whl/OBP_security_pillar/ec2/instance_in_vpc.py | import botocore
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
def instance_in_vpc(self) -> dict:
"""
:param self:
:return:
"""
logger.info(" ---Inside ec2 : instance_in_vpc()")
self.refresh_session()
result = True
failReason = ''
offenders = ... | PypiClean |
/Longbow-1.5.2.tar.gz/Longbow-1.5.2/longbow/shellwrappers.py | import os
import shutil
import subprocess
import logging
import time
import longbow.exceptions as exceptions
LOG = logging.getLogger("longbow.corelibs.shellwrappers")
def checkconnections(jobs):
"""Test that connections to HPC machines can be established.
This method will test that connections to hosts spe... | PypiClean |
/AirStrip-2.0.2.tar.gz/AirStrip-2.0.2/airstrip/boilerplates/helpers.py |
from puke import *
import re
import json
import os
# ==================================================================
# Global helpers for puke
# ==================================================================
# ------------------------------------------------------------------
# Common yak soup
# -------------... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/8184.741e3d56.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[8184],{51911:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(45649)),a=n(80184),i=(0,r.default)((0,a.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.4... | PypiClean |
/NSoL-0.1.14.tar.gz/NSoL-0.1.14/nsol/reader_parameter_study.py |
import os
import numpy as np
import re
import natsort
import pysitk.python_helper as ph
from nsol.parameter_study import ParameterStudy
from nsol.definitions import REGEX_FILENAMES
from nsol.definitions import FILENAME_EXTENSION
class ReaderParameterStudy(ParameterStudy):
def __init__(self, directory, name):
... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/markupsafe/markupsafe/_constants.py | HTML_ENTITIES = {
"AElig": 198,
"Aacute": 193,
"Acirc": 194,
"Agrave": 192,
"Alpha": 913,
"Aring": 197,
"Atilde": 195,
"Auml": 196,
"Beta": 914,
"Ccedil": 199,
"Chi": 935,
"Dagger": 8225,
"Delta": 916,
"ETH": 208,
"Eacute": 201,
"Ecirc": 202,
"Egrave":... | PypiClean |
/GTW-1.2.6.tar.gz/GTW-1.2.6/_RST/_TOP/Auth.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from _GTW import GTW
from _TFL import TFL
from _GTW._RST.Auth_Mixin import Errors
import _GTW.Notification
import _GTW._RST.HTTP_Method
import _GTW._RST._TOP.Dir
import _GTW._RST._T... | PypiClean |
/Honeybadger_Extensions-0.1.2-py3-none-any.whl/honeybadger_extensions/flask.py | from __future__ import print_function, absolute_import
import logging
from six import iteritems
from flask import request_started, request_tearing_down, got_request_exception
from flask import current_app, session, request as _request
from honeybadger import payload
from honeybadger.utils import filter_dict
from .ba... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/ghg_factors_response.py |
from msrest.serialization import Model
class GHGFactorsResponse(Model):
"""GHGFactorsResponse.
:param ghg_factor_id: The identifier for ghg factor
:type ghg_factor_id: int
:param ghg_factor: The ghg factor
:type ghg_factor: float
:param ghg_co2_factor: The ghg CO2 factor
:type ghg_co2_fa... | PypiClean |
/Calibrator_KS1200-0.0.7-py3-none-any.whl/Calibrator_KS1200/func_lib.py | from array import array
import struct
import serial
# from serial.tools.list_ports import *
inbuff=bytearray()
parval=100.0
fa=[] # список float array
for i in range(50):
fa.append([i+0.1])
ia=[] # список integer array
for i in range(50):
ia.append([i])
# -------- записываем в mBus--------------
# comportname - имя... | PypiClean |
/CUQIpy-0.4.0-py3-none-any.whl/cuqi/sampler/_mh.py | import numpy as np
import cuqi
from cuqi.sampler import ProposalBasedSampler
class MH(ProposalBasedSampler):
"""Metropolis Hastings sampler.
Allows sampling of a target distribution by random-walk sampling of a proposal distribution along with an accept/reject step.
Parameters
----------
target... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/models_library/iaf_psc_delta.rst | iaf_psc_delta
#############
iaf_psc_delta - Current-based leaky integrate-and-fire neuron model with delta-kernel post-synaptic currents
Description
+++++++++++
iaf_psc_delta is an implementation of a leaky integrate-and-fire model
where the potential jumps on each spike arrival.
The threshold crossing is followed... | PypiClean |
/bareon-0.0.1a3.tar.gz/bareon-0.0.1a3/bareon/drivers/deploy/generic.py |
import json
import os
import re
from oslo_config import cfg
from bareon.drivers.deploy.base import BaseDeployDriver
from bareon.drivers.deploy import mixins
from bareon import errors
from bareon.openstack.common import log as logging
from bareon.utils import fs as fu
from bareon.utils import grub as gu
from bareon.u... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/backends/mysql/introspection.py | from collections import namedtuple
import sqlparse
from MySQLdb.constants import FIELD_TYPE
from django.db.backends.base.introspection import BaseDatabaseIntrospection
from django.db.backends.base.introspection import FieldInfo as BaseFieldInfo
from django.db.backends.base.introspection import TableInfo as BaseTableI... | PypiClean |
/Darwinex-ticks-0.1.5.tar.gz/Darwinex-ticks-0.1.5/darwinex_ticks/__main__.py |
import argparse
try:
import configparser
except ImportError:
import ConfigParser as configparser
from .core import *
__version__ = "0.1.5"
__author__ = "Antonio Rodriguez (Paduel)"
def _download(args=None):
args = _argparser(args)
if not args.user:
try:
_config = configparser.... | PypiClean |
/Gaussian_Binomial_Tool-0.1.tar.gz/Gaussian_Binomial_Tool-0.1/Gaussian_Binomial_Tool/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 |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Algorithm/Classification/ReMixMatch.py | import copy
from LAMDA_SSL.Base.InductiveEstimator import InductiveEstimator
from LAMDA_SSL.Base.DeepModelMixin import DeepModelMixin
from sklearn.base import ClassifierMixin
import torch
import numpy as np
from LAMDA_SSL.utils import class_status
from LAMDA_SSL.utils import one_hot
from LAMDA_SSL.Augmentation.Vision.M... | PypiClean |
/EPViz-0.0.0.tar.gz/EPViz-0.0.0/visualization/preprocessing/edf_loader.py | import pyedflib
from visualization.preprocessing.eeg_info import EegInfo
def _check_label(label, label_list):
""" Checks if a label is in the label list.
Args:
label - the label
label_list - the list to check
Returns:
The label if it is there, else ""
"""
... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/model/employee_payroll_run.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/passport/en_US/__init__.py | import random
from datetime import date, timedelta
from typing import Tuple
from .. import Provider as PassportProvider
class Provider(PassportProvider):
"""Implement passport provider for ``en_US`` locale.
Sources:
- https://travel.state.gov/content/travel/en/passports/passport-help/next-generation-p... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/control/address.py | from .. util import data_file, log
def number(s):
try:
return data_file.loads(s)
except:
return s
class Address:
class Segment:
def __init__(self, name):
self.name = name
def set(self, root, *value):
self._set(root, (value[0] if len(value) == 1 el... | PypiClean |
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/plugins/loader/directoryloader.py | import os
import pip
from cryptography.fernet import Fernet
from typing import Dict, List, Union, TypedDict, Tuple
from dataclasses import dataclass
from .pluginLoader import PluginLoader
from ..suite import PluginSuite
from gailbot.core.utils.logger import makelogger
from gailbot.core.utils.general import (
filepa... | PypiClean |
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/command/rst2html/__init__.py |
# Copyright © 2015-2023 Chris Warrick and others.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merg... | PypiClean |
/Dixit-0.1.1-py3-none-any.whl/dixit/static/js/magnifier.js | var native_widths = new Array();
var native_heights = new Array();
//Now the mousemove function
function magnifyHandler(e) {
//When the user hovers on the image, the script will first calculate
//the native dimensions if they don't exist. Only after the native dimensions
//are available, the script will sh... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.8/process.js | var process = {};
process.__proto__ = events.EventEmitter;
/**
* Note: this function is only available on POSIX platforms (i.e. not
* Windows)
* @param id
*/
process.setuid = function(id) {}
/**
* On the next loop around the event loop call this callback.
* @param callback
*/
process.nextTick = function(callba... | PypiClean |
/NumIntM-0.0.2.tar.gz/NumIntM-0.0.2/README.txt | Hi!, with this package you can use different methods in order to aproximate the numerical integration of a function,
using methods like: Trapezoidal method, Simpson rule, Newton cotes method and Compound trapezoidal method.
You can invoke the following methods:
1.- funcion(x) --- by defult is: funcion(x) = 1/(1+(x**... | PypiClean |
/Corrfunc-2.5.1.tar.gz/Corrfunc-2.5.1/docs/source/development/contributors.rst | .. _contributor_list:
**************************
Package contributors
**************************
Corrfunc project coordinator
===============================
* Manodeep Sinha
Lead developers
==========================
* Manodeep Sinha
Core package contributors
==========================
* Manodeep Sinha (@manode... | PypiClean |
/Delorean-1.0.0.tar.gz/Delorean-1.0.0/README.rst |
.. image:: http://delorean.readthedocs.org/en/latest/_static/delorean.png
Delorean: Time Travel Made Easy
===============================
`Delorean` is a library for clearing up the inconvenient truths that arise dealing with datetimes in Python. Understanding that timing is a delicate enough of a problem `delorean... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/data_preprocessing_tools/genome_labeling2.py | import glob as glb
import sys
import numpy as np
from sklearn.decomposition import KernelPCA as pca_f
import os
import matplotlib as mpl
mpl.use("WebAgg")
import matplotlib.pyplot as plt
from scipy.spatial.distance import pdist
import scipy.cluster.hierarchy as sch
import time
import copy
def genome_label(bed_file_lis... | PypiClean |
/AllanTools-2019.9.tar.gz/AllanTools-2019.9/allantools/allantools.py | import os
import json
import numpy as np
#import scipy.stats # used in confidence_intervals()
#import scipy.signal # decimation in lag-1 acf
from . import ci # edf, confidence intervals
# Get version number from json metadata
pkginfo_path = os.path.join(os.path.dirname(__file__),
'allantoo... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/core/system/fs.py | import sys
import os
import os.path
import hashlib
import re
import fnmatch
import time
import shutil
import errno
import tempfile
import codecs
import cPickle as pickle
from stat import ST_MTIME
# We import only jumpscale as the j.system.fs is used before jumpscale is initialized. Thus the q cannot be imported yet
... | PypiClean |
/Flask-Camp-0.0.25.tar.gz/Flask-Camp-0.0.25/flask_camp/_utils.py | import json
import typing as t
from http import HTTPStatus
from flask import current_app, request, Response
from werkzeug.exceptions import NotFound
from werkzeug.local import LocalProxy
current_api = LocalProxy(lambda: current_app.extensions["flask-camp"])
get_cooked_document = LocalProxy(lambda: current_api.get_co... | PypiClean |
/FSlash-0.17.0.tar.gz/FSlash-0.17.0/fslash/core/mailbox.py |
import asyncio
from queue import SimpleQueue
from threading import RLock
from typing import Any, Awaitable, Callable, Generic, Optional, TypeVar
from fslash.system import CancellationToken, OperationCanceledError
from .aio import Continuation, from_continuations, start_immediate
Msg = TypeVar("Msg")
Reply = TypeVa... | PypiClean |
/Dhelpers-0.1.5rc1.tar.gz/Dhelpers-0.1.5rc1/Dlib/Dpowers/events/sending/keybpower/__init__.py |
from ... import adaptionmethod, hotkeys, NamedKey, Layout
from ..event_sender import AdaptivePRSenderShifted
class KeyboardAdaptor(AdaptivePRSenderShifted):
"""Send key events to the system via the chosen backend.
See `Dpowers.events.keybutton_names.py
<https://github.com/dp0s/Dpowers/tree/master/Dl... | PypiClean |
/ModernRelay-0.0.3.tar.gz/ModernRelay-0.0.3/README.rst | Modern Relay
============
Welcome to Modern Relay's documentation! The intention for this project is to build a mail relay that works seamlessly in
the new IT landscape of cloud providers, API access, and the security measures that come with them. I've found that
federating Microsoft 365 tenants and requiring MFA for ... | PypiClean |
/Herring-0.1.49.tar.gz/Herring-0.1.49/herring/herring_loader.py | import os
from pprint import pformat
import tempfile
import shutil
import sys
from herring.herring_file import HerringFile
from herring.support.mkdir_p import mkdir_p
from herring.support.path import Path
from herring.support.simple_logger import info, debug
from herring.support.utils import find_files
from herring.... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.