Saravanan666/pypi-org huggingface dataset:
Package: mathterpreter
mathterpreterA lightweight and basic maths interpreterExample usageBasic usagefrommathterpreterimportinterpretprint(interpret("54-3*(2+1)-3",use_decimals=False))Step by stepfrommathterpreterimportLexer,Parserlexer=Lexer("54-3*(2+1)-3",use_decimals=False)tokens=lexer.tokenize()parser=Parser(tokens)tree=parser.parse()result=tree.evaluate()print(result)use_decimalsdetermines whether numbers should be handled asdecimal.Decimalrather thanfloatfor more accurate but slower calculations.
Defaults toTrueCommand linepython3-mmathterpreter54-3*(2+1)-3# orecho54-3*(2+1)-3|python3-mmathterpreterSyntax:OperationSyntaxAdditiona+bSubtractiona-bMultiplicationa*bDivisiona/bExponentiationa^bath roota√borasqrtbStandard Form:aE+b(shorthand fora*10^b)Constants:Symbol(s)Valueπ/pi3.141592653589793e2.718281828459045All constants are just replaced with their value, wrapped in brackets.
Package: mathtext
title: MathText
app_file: app.py
sdk: gradio
sdk_version: 3.15.0
license: agpl-3.0MathText NLUNatural Language Understanding for math symbols, digits, and words with a Gradio user interface and REST API.Setup your Python environmentLaunch aterminalon linux (or thegit-bashapplication on Windows).
Then create a virtualenv with whatever python version you have available on your system.Any python version greater than3.7should work.
Most of us on Linux systems use Python3.9:gitclonegit@gitlab.com:tangibleai/community/mathtextcdmathtext
pipinstall--upgradevirtualenvpoetry
python-mvirtualenv.venv
ls-halYou should see a new.venv/directory.
It will contain your python interpreter and a fewsite-packageslikepipanddistutils.Now activate your new virtual environment by sourcing.venv/bin/activate(on Linux) or.venv/scripts/activate(on Windows).source.venv/bin/activate||source.venv/scripts/activateDeveloper installationOnce you have a shiny new virtual environment activated you can install themathtextin--editablemode.
This way, when you edit the files and have the package change immediately.Make sure you are already within your clonedmathtextproject directory.
And makes sure your virtual environment is activated.
You should see the name of your virtual environment in parentheses within your command line prompt, like(.venv) $.
Then when you install MathText it will be available to any other application within that environment.pipinstall--editable.User installationIf you don't want to contribute to the MathText source code and you just want to import and run the MathText modules, you can install it from a binary wheel on PyPi.pipinstallmathtextUsageSentiment classificationDirectory structure with notesmathtext
    mathtext: mathtext code
        data: training and test sets for various tasks
        models: scripts to create models and store in/retrieve from object storage
        utils: utility functions
            checkers.py: T/F evaluations
            converters.py: Change the data type from one to another
            extractors.py: Looks for specific values or value types in a message
            formatters.py: Attempts to format text in a standardized way
        api_gradio.py: gradio api
        predict_intent.py: functions to run multilabel recognizer on message
        text_processing.py: evaluations that use sequences of utils
    scripts: setup scripts
        api_scaling.sh: makes calls to local api
        api_scaling.py: makes async http requests to the local api
        build.sh
        plot_calls.py: Functions for plotting data
        pyproject.template
    tests: various tests
        __init.py
        test_cases_all.py
    .git*: various git files
    app.py: ties all of the api components together for huggingface
    LICENSE.md: license
    pyproject.toml: pyproject file
    README.md: this
    requirements.txt: project dependencies
Package: math-tokenizer
DescriptionThis is a simple and lightweighted tokenizer for mathematical functions
written in pure Python. It was tested with Python >= 3.4.version 1.0.1Featurestokenize mathematical functionFuture featurescreate own rulesInstallationThe package is available viapippipinstallmath-tokenizerUpdateYou can also update on the latest version viapip```bash pip
install math-tokenizer â€“upgrade
Package: mathtoolspy
Python librarymathtoolspyA fast, efficient Python library for mathematically operations, like
integration, solver, distributions and other useful functions.Example Usage>>>frommathtoolspy.integrationimportgauss_kronrod>>>fct=lambdax:exp(-x*x)>>>integrator=gauss_kronrod()>>>integrator(fct,-1.0,2.0)1.62890552357InstallThe latest stable version can always be installed or updated via pip:$pipinstallmathtoolspyIf the above fails, please try easy_install instead:$easy_installmathtoolspyExamples# Simplest example possiblea,b,c,d,e=1,4,-6,-6,1fct=lambdax:a*x*x*x*x+b*x*x*x+c*x*x+d*x+eopt=Optimizer1Dim(minimize_algorithm=brent)result=opt.optimize(fct,constraint=Constraint(-10.0,-2.0),initila_value=1.0)>>>result.xmin-3.70107061641>>>result.fmin-74.1359364077>>>result.number_of_function_calls40Development VersionThe latest development version can be installed directly from GitHub:$pipinstall--upgradegit+https://github.com/pbrisk/mathtoolspy.gitContributionsIssuesandPull Requestsare always welcome.LicenseCode and documentation are available according to the Apache Software License (seeLICENSE).
Package: mathtraq
# What Is It?This is a python script that builds custom mp3 files containing random arithmetic equations. You specify howmany equations you want, parameters for the operands, the operator and the answer (i.e. decimals to round to), as well asthe pause length between the question and the answer and between equations themselves, and you get an mp3 file that satisfies those parameters.Why? Because I suck at arithmetic and I'm too lazy to sit and just practice. Now I can practice on the go like all the cool kids.# How to useUse python 3.6. Untested with python 2.An example run would be:```python run.py  10#0(1)1000{+-}-50(2)60?5000(2) 10#10(0)99{*}10(0)99?4000(0)```This assumes you're in the directory where the Mathtraq package has been installed.The following is copied from the help output of the app itself:```usage: run.py [-h] [-j OUTPUT_JSON] [-o OUTPUT_MP3] [-d MAX_DIGITS][-b BUFFER_SIZE] [-v {0,1,2,3}][-p pause_between_questions]template [template ...]Create an mp3 to practice arithmetic on the gopositional arguments:template              Example: 10#0(1)1000{+/-}-50(2)60?3000(2) will create10 questions where the lhs is between 0 and 1000 withmaximum 1 decimal place and the rhs is between -50 and60 with a maximum of 2 decimal places. They will be amix of addition, division and subtraction, and a3000ms pause will occur before the answer is given.The answer will be rounded to 2 decimal places. Notethat one * in the ops is multiplcation. Two * means'to the power of' and three means both multiplicationand powersoptional arguments:-h, --help            show this help message and exit-j OUTPUT_JSON, --json OUTPUT_JSONSpecify a file to which the equation data will bewritten in JSON format-o OUTPUT_MP3, --output OUTPUT_MP3MP3 file output (default: ['mathtraq.mp3'])-d MAX_DIGITS, --digits MAX_DIGITSMaximum digits (precision) (default: [600])-b BUFFER_SIZE, --buffer_size BUFFER_SIZEMathtraq works by concatenating a number of smallfiles. This argument specifies how many to join at atime. (default: [600])-v {0,1,2,3}, --verbosity {0,1,2,3}0 is no output and 3 is a lot (default: [1])-p pause_between_questions, --ms_pause pause_between_questionsMilliseconds to pause after each question. Rounds downto nearest 500, minimum 500 (default: [500])If you get an error whilst wanting a lot of precision, try raising theprecision (-d argument)```# Notes:* Uses mp3cat (https://github.com/dmulholland/mp3cat) to concatenate the files - developed by Darren Mulholland* Uses mpmath (http://mpmath.org/) to achieve arbitrary number length - developed by Fredrik Johansson* You can replace the audio files for the sound bites - just make sure they're all the same bitrate. Feel free to share them if you do- I've slightly modified my own voice but still... no one wants to hear themselves speak.* Add more places (eg. 'septillion') by adding the mp3 file into the placE_values folder, adding the name of the place value into the audio.place_names list between the current highest and the default 'somethings', and finally add an entry into audio.audio_segments pointing to the audio file.
Package: mathusla-tracker
MATHUSLA Particle Trackera time-based tracking library for particle physics experimentsProjectsNameDescriptionLocation (demo/)StatusPrototypeMATHUSLA Test Stand at P1prototype/FUNCTIONALBoxMATHUSLA Full Boxbox/INCOMPLETEModuleBoxMATHUSLA Full Box with Modulesmodule_box/INCOMPLETEThe tracking library comes with a project directorydemowhich holds the MATHUSLA Test Stand Prototype tracking code (seedemo/prototype). More projects to be added soon.Tracking ScriptThe tracking script is a configuration file which allows the user to specify details of the tracking algorithm. Here is a list of allowed keys and their associated value types.KeyValue TypeDescriptionverbose-outputbooleantype of output to terminaldraw-eventsbooleantype of event display modegeometry-filefile pathpath toGDMLgeometry filegeometry-map-filefile pathpath to geometry mapgeometry-default-time-errorpositiverealdefault time resolution of detector volumesstatistics-directorydirectory pathpath to output statisticsstatistics-file-prefixprefix stringprefix name for output filestatistics-file-extensionextension stringextension to file (or filetype)data-directorydirectory pathpath to ROOT data to be processeddata-file-extensionextension stringextension to file (or filetype)data-position-keysstring for each of R4data key read-in for positiondata-position-error-keysstring for each of R4data key read-in for position errordata-detector-keystringdata key read-in for detectordata-track-id-keystringdata key read-in for track iddata-parent-id-keystringdata key read-in for parent iddata-momentum-keysstring for each of R4data key read-in for momentumtime-smearingbooleanmode for smearing time input on resolutionlayer-axisR3 coordinatedirection for track parameterizationlayer-depthpositivereallayer size for geometry approximationline-widthpositiverealtolerance for line approximationseed-sizepositiveintegernumber of points per seedevent-density-limitpositivereal < 1density limit before event is droppedBuildingThe tracker comes with a simple build script calledinstallwhich allows for build customization of the tracking library.Here is a list of useful command line options:ActionOptions for./installBuild OnlynoneBuild and Auto Run--run(see below)Clean CMake Build--cmake --cleanMore Options--helpAfter a successful run of./install, the entire tracking library is built and all of thedemoprojects are installed. Thebuilddirectory is created which stores all of the binaries and libraries associated with the tracker.At the moment the tracking library only comes with one complete "project tracker" so running./install --runwill automatically run theprototypeexecutable frombuild/demo/. Here is a list of command line options that thePrototypeuses:ActionShort OptionsLong OptionsGeometry File-g <filepath>--geometry=<filepath>Detector Map-m <filepath>--map=<filepath>ROOT Data Directory-d <directory>--data=<directory>Custom Tracking Script-s <file>--script=<file>Quiet Mode-q--quietHelp-h--helpThe tracking script can provide the all of the detail above to the tracker and will eventually replace all command line arguments.
Package: mathw
功能描述自动生成数学作业，并保存为PDF。加减法series = 'Add'等级名称公式说明1加法a+b=20以内，非负2减法a-b=20以内，非负3加法、减法a+b= 或 a-b=20以内，非负4连加a+b+c=30以内，非负5连减a-b-c=30以内，非负6连加、连减a+b+c= 或 a-b-c=30以内，非负7连加减a+b-c= 或 a-b+c=30以内，非负8负数相加-a-b=30以内9加法、减法a-b= 或 -a+b=30以内10加法、减法-a-b= 或 -a+b= 或 a-b=30以内11连减法a-b-c= 或 -a-b-c=30以内12连加减a+b-c= 或 a-b+c=30以内13连加减-a+b-c= 或 -a-b+c=30以内14负负得正a+(-b)= 或 a-(-b)=40以内15负负得正-a+(-b)= 或 -a-(-b)=40以内16符号混合a+b+c=40以内,abc可以带负号17加法填空a+?=b40以内18减法填空a-?=b40以内19加法填空、减法填空a+?=b 或 a-?=b40以内20加后填空a+b+?=c 或 a+b-?=c40以内21加法填空、减法填空-a+?=b 或 -a-?=b40以内22加减法填空a-b+?=c 或 a-b-?=c40以内23加减法填空-a-b+?=c 或 -a-b-?=c40以内24加减法填空-a+b+?=c 或 -a+b-?=c40以内25加减法填空-a+b+?=-c 或 -a-b+?=-c40以内26中间填空a+?+b=c 或 a-?-b=c40以内27中间填空-a+?+b=-c 或 -a-?-b=c40以内28填空混合a+b+?=c 或 ?+a+b=c 或 a+?+b=c40以内，abc可以带负号乘除法series = 'Mult'等级名称公式说明1乘法基础a×b=ab是1位数，非负2乘法基础a×b=ab是1位数3乘法填空a×?=c 或 ?×b =cab是1位数，非负4乘法填空a×?=c 或 ?×b =cab是1位数5除法基础c÷a=a是1位数，非负6除法基础c÷a=a是1位数7除法填空c÷?=b 或 ?÷a=bab是1位数，非负8除法填空-正负c÷?=b 或 ?÷a=bab是1位数9四则运算a×b+c×d= 或 a×b-c×d=abcd是1位数10四则填空a×?+c×d=e 或 a×b-?×d=eabcd是1位数11四则运算a×b+c÷d= 或 a×b-c÷d=abd是1位数12四则填空a×?+c÷d=e 或 a×b+c÷?=e 或 a×b-?÷d=eabd是1位数13四则运算(a+b)×c= 或 a×(b+c)=abc是1位数14四则填空(a+?)×c=d 或 (a+b)×?=dabc是1位数15四则运算(a+b)×(c+d)=abcd是1位数16四则填空(a+?)×(c+d)=e 或 (a+b)×(?+d)=eabcd是1位数17连乘a×b×c=abc是1位数18连乘填空?×b×c=d 或 a×?×c=d 或 a×b×?=dabc是1位数19乘法a×b=ab是两位数20乘法填空a×?=c 或 ?×b=cab是两位数21除法a÷b=b是两位数22除法填空a÷?=c 或 ?÷b=cbc是两位数使用方法frommathwimportMathWorkif__name__=='__main__':# 生成作业并保存成PDFMathWork(series='Add',# Add - 加减法；Mult - 乘除法level=4,# 等级pageNum=40# 页数).go()
Package: mathwords
Math-WordsMost people use words.  Many people also use calculators.  It seems logical, then, that calculators should also be able to use words.  This project is aimed at working in that direction.To launch in interactive mode (with a really crappy REPL), usepython -m mathwords.Sample queries:twelve plus three->fifteensix raised to the power of three->two hundred sixteeneight minus a billion->negative nine hundred ninety nine million nine hundred ninety nine thousand nine hundred ninety twoone hundred and forty four divided by two to the three->eighteeneight divided by five->one point sixsquare root of the common log of ten quadrillion->four
Package: mathy
Solve math problems with machine learning and planning algorithms.ResourcesMathy's website has rich documentation with visualizations and examples that can be directly executed in Google Colab:https://mathy.aiMathy Corecontains the expression parser and base rules for mathyMathy Envscontains the RL environments for solving problems step-by-stepContributorsMathy wouldn't be possible without the wonderful contributions of the following people:Justin DuJardinGuillem Duran BallesterThis project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: mathy-alpha-sm
Solve math problems with machine learning and planning algorithms.WebsiteMathy's website has rich documentation with visualizations and examples that can be directly executed in Google Colab:https://mathy.aiContributorsMathy wouldn't be possible without the wonderful contributions of the following people:Justin DuJardinGuillem Duran BallesterThis project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: mathy-core
mathy_core: parse and manipulate math expressionsMathy core is a python package (with type annotations) for working with math problems. It has a tokenizer for converting plain text into tokens, a parser for converting tokens into expression trees, a rule-based system for manipulating the trees, a layout system for visualizing trees, and a set of problem generation functions that can be used to generate datasets for ML training.🚀 QuickstartYou can installmathy_corefrom pip:pipinstallmathy_core📖 DocumentationCheck outhttps://core.mathy.aifor API documentation, examples, and more!ExamplesConsider a few examples to get a feel for what Mathy core does.Evaluate an expressionArithmetic is a snap.frommathy_coreimportExpressionParserexpression=ExpressionParser().parse("4 + 2")assertexpression.evaluate()==6Evaluate with variablesVariable values can be specified when evaluating an expression.frommathy_coreimportExpressionParser,MathExpressionexpression:MathExpression=ExpressionParser().parse("4x + 2y")assertexpression.evaluate({"x":2,"y":5})==18Transform an expressionExpressions can be changed using rules based on the properties of numbers.frommathy_coreimportExpressionParserfrommathy_core.rulesimportDistributiveFactorOutRuleinput="4x + 2x"output="(4 + 2) * x"parser=ExpressionParser()input_exp=parser.parse(input)output_exp=parser.parse(output)# Verify that the rule transforms the tree as expectedchange=DistributiveFactorOutRule().apply_to(input_exp)assertstr(change.result)==output# Verify that both trees evaluate to the same valuectx={"x":3}assertinput_exp.evaluate(ctx)==output_exp.evaluate(ctx)DevelopmentInstall the prerequisites in a virtual environment (python3 required)shtools/setup.shRun the test suite and view code-coverage statisticsshtools/test.shThe tests cover ~90% of the code so they're a good reference for how to use the various APIs.Semantic VersioningBefore Mathy Core reaches v1.0 the project is not guaranteed to have a consistent API, which means that types and classes may move around or be removed. That said, we try to be predictable when it comes to breaking changes, so the project uses semantic versioning to help users avoid breakage.Specifically, new releases increase thepatchsemver component for new features and fixes, and theminorcomponent when there are breaking changes. If you don't know much about semver strings, they're usually formatted{major}.{minor}.{patch}so increasing thepatchcomponent means incrementing the last number.Consider a few examples:From VersionTo VersionChanges are Breaking0.2.00.2.1No0.3.20.3.6No0.3.10.3.17No0.2.20.3.0YesIf you are concerned about breaking changes, you can pin the version in your requirements so that it does not go beyond the current semverminorcomponent, for example if the current version was0.1.37:mathy_core>=0.1.37,<0.2.0ContributorsMathy Core wouldn't be possible without the wonderful contributions of the following people:Justin DuJardinJT StukesThis project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: mathy-envs
mathy_envs: Learning environments for solving math problemsMathy environments present users/agents with a prompt problem, and are asked to simplify it according to some problem-specific criteria using combinations of simple actions based on the Properties of Numbers.🚀 QuickstartYou can installmathy_envsfrom pip:pipinstallmathy_envsSemantic VersioningMathy Envs tries to be predictable when it comes to breaking changes, so the project uses semantic versioning to help users avoid breakage.Specifically, new releases increase thepatchsemver component for new features and fixes, and theminorcomponent when there are breaking changes. If you don't know much about semver strings, they're usually formatted{major}.{minor}.{patch}so increasing thepatchcomponent means incrementing the last number.Consider a few examples:From VersionTo VersionChanges are Breaking0.2.00.2.1No0.3.20.3.6No0.3.10.3.17No0.2.20.3.0YesIf you are concerned about breaking changes, you can pin the version in your requirements so that it does not go beyond the current semverminorcomponent, for example if the current version was0.1.37:mathy_envs>=0.1.37,<0.2.0ContributorsMathy Envs wouldn't be possible without the wonderful contributions of the following people:Justin DuJardinGuillem Duran BallesterThis project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: mathy-pydoc
mathy_pydocIMPORTANTThis is a fork of the pydoc_markdown repo to use the legacy version for Mathy's simple API doc needs. See the official repo for the latest stable updates:https://github.com/NiklasRosenstein/pydoc-markdown–insipired by the [Keras] DocumentationInstallationpip install mathy_pydocUsagemathy_pydoc generates plain Markdown files from Python modules using themathy_pydoccommand. Specify one or more module names on the command-line.
Supports the+syntax to include members of the module (or++to include
members of the members, etc.)mathy_pydoc mypackage+ mypackage.mymodule+ > docs.mdSyntaxCross-referencesSymbols in the same namespace may be referenced by using a hash-symbol (#)
directly followed by the symbols' name, including relative references. Note that
using parentheses for function names is encouraged and will be ignored and
automatically added when converting docstrings. Examples:#ClassName.memberor#mod.function().For absolute references for modules or members in names that are not available
in the current global namespace,#::mod.membermust be used (note the two
preceeding two double-colons).For long reference names where only some part of the name should be displayed,
the syntax#X~some.reference.namecan be used, whereXis the number of
elements to keep. IfXis omitted, it will be assumed 1. Example:#~some.reference.nameresults in onlynamebeing displayed.In order to append additional characters that are not included in the actual
reference name, another hash-symbol can be used, like#Signal#s.SectionsSections can be generated with the Markdown# <Title>syntax. It is important
to add a whitespace after the hash-symbol (#), as otherwise it would represent
a cross-reference. Some special sections alter the rendered result of their
content, includingArguments (1)Parameters (1)Attributes (1)Members (1)Raises (2)Returns (2)(1): Lines beginning with<ident> [(<type>[, ...])]:are treated as
argument/parameter or attribute/member declarations. Types listed inside the
parenthesis (optional) are cross-linked, if possible. For attribute/member
declarations, the identifier is typed in a monospace font.(2): Lines beginning with<type>[, ...]:are treated as raise/return type
declarations and the type names are cross-linked, if possible.Lines following a name's description are considered part of the most recent
documentation unless separated by another declaration or an empty line.<type>placeholders can also be tuples in the form(<type>[, ...]).Code BlocksGitHub-style Markdown code-blocks with language annotations can be used.```python
>>> for i in range(100):
...
```
Package: mati
mati-pythonMatiPython3.6+ client libraryInstallpip install matiTestingmake venv
source venv/bin/activate
make testCreate VerificationfrommatiimportClientclient=Client('api_key','secret_key')verification=client.verifications.create('some_flow_id',company_id='some_id',)Upload documentsfrommati.typesimport(PageType,UserValidationFile,ValidationInputType,ValidationType,)# Load documentsfront=open('ine_front.jpg','rb')back=open('ine_back.jpg','rb')live=open('liveness.mp4','rb')# Create document with metadatauser_validation_file=UserValidationFile(filename='ine_front.jpg',content=front,input_type=ValidationInputType.document_photo,validation_type=ValidationType.national_id,country='MX',group=0,#The group is important when create your metamap)user_validation_file_back=UserValidationFile(filename='ine_back.jpg',content=back,input_type=ValidationInputType.document_photo,validation_type=ValidationType.national_id,country='MX',page=PageType.back,group=0,)user_validation_live=UserValidationFile(filename='liveness.MOV',content=live,input_type=ValidationInputType.selfie_video,group=1,)# Send documentation for validationresp=client.verifications.upload_validation_data([user_validation_file,user_validation_file_back,user_validation_live,],verification.identity,)Verification statusRetrieve the verification when its completeverification=client.verifications.retrieve('verification_id')