Saravanan666/pypi-org huggingface dataset:
Package: jusTextnext
jusText-nextThis is not intended for public wide. I created this because I can’t wait the
original package to release new version.Please use original packagehttps://github.com/miso-belica/jusTextProgram jusText is a tool for removing boilerplate content, such as navigation
links, headers, and footers from HTML pages. It isdesignedto preserve
mainly text containing full sentences and it is therefore well suited for
creating linguistic resources such as Web corpora. You cantry it online.This is a fork of original (currently unmaintained) code ofjusTexthosted
on Google Code.Adaptations of the algorithm to other languages:C++GoJavaSome libraries using jusText:chirplazynlpoff-topic-memento-toolkitpearsreadability calculatorskySome currently (Jan 2020) maintained alternatives:dragnethtml2textinscriptisnewspaperpython-readabilitytrafilaturaInstallationMake sure you havePython2.7+/3.5+ andpip(Windows,Linux) installed.
Run simply:$[sudo]pipinstalljustextDependencieslxml (version depends on your Python version)Usage$python-mjustext-sCzech-otext.txthttp://www.zdrojak.cz/clanky/automaticke-zabezpeceni/$python-mjustext-sEnglish-oplain_text.txtenglish_page.html$python-mjustext--help# for more infoPython APIimportrequestsimportjustextresponse=requests.get("http://planet.python.org/")paragraphs=justext.justext(response.content,justext.get_stoplist("English"))forparagraphinparagraphs:ifnotparagraph.is_boilerplate:printparagraph.textTestingRun tests via$py.test-2.7&&py.test-3.5&&py.test-3.6&&py.test-3.7&&py.test-3.8&&py.test-3.9AcknowledgementsThis software has been developed at theNatural Language Processing CentreofMasaryk University in Brnowith a financial support fromPRESEMTandLexical Computing Ltd.It also relates toPhD researchof Jan Pomikálek.Changelog for jusText3.0.0 (2021-05-23)
-INCOMPATIBLE CHANGE:Dropped support for Python 3.4 and below.2.2.0 (2016-03-06)INCOMPATIBLE CHANGE:Stop words are case insensitive.INCOMPATIBLE CHANGE:Dropped support for Python 3.2BUG FIX:Preserve new lines from original text in paragraphs.2.1.1 (2014-05-27)BUG FIX:Functiondecode_htmlnow respects parametererrorswhen falling todefault_encoding#9.2.1.0 (2014-01-25)FEATURE:Added XPath selector to the paragrahs. XPath selector is also available in detailed output asxpathattribute of<p>tag#5.2.0.0 (2013-08-26)FEATURE:Added pluggable DOM preprocessor.FEATURE:Added support for Python 3.2+.INCOMPATIBLE CHANGE:Paragraphs are instances ofjustext.paragraph.Paragraph.INCOMPATIBLE CHANGE:Script ‘justext’ removed in favour of
commandpython-mjustext.FEATURE:It’s possible to enter an URI as input document in CLI.FEATURE:It is possible to pass unicode string directly.1.2.0 (2011-08-08)FEATURE:Character counts used instead of word counts where possible in
order to make the algorithm work well in the language independent
mode (without a stoplist) for languages where counting words is
not easy (Japanese, Chinese, Thai, etc).BUG FIX:More robust parsing of meta tags containing the information about
used charset.BUG FIX:Corrected decoding of HTML entities &#128; to &#159;1.1.0 (2011-03-09)First public release.
Package: justfile
Just Read, Just Write, Just RightFree software: MIT licenseJustFile is a Python library that provides a function to either read, write, or append.It’s pretty straight-foward. No creating a file handle. nowith-syntax. Just reading from
a path.Example>>> from justfile.io import read
>>> nginx_content = read('/etc/nginx/nginx.conf')
>>> nginx_content
[[ Whatever's in /etc/nginx/nginx.conf ]]

>>> # But what if it doesn't exist?

>>> not_found = read('/file/not/found.txt')
>>> not_found
 NoneInstallationpip install justfileYou can also install the in-development version with:pip install https://gitlab.com/src-r-r/python-justfile/-/archive/master/python-justfile-master.zipDocumentationhttps://python-justfile.readthedocs.io/DevelopmentTo run the all tests run:python3 -m noseNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append tox
Package: justhacking
░░█ █░█ █▀ ▀█▀   █░█ █░█ █▀▀ █▄▀ ▄█ █▄░█ █▀▀
█▄█ █▄█ ▄█ ░█░   █▀█ ▀▀█ █▄▄ █░█ ░█ █░▀█ █▄█▶️pipinstallationIF you don't have 'pip' or 'python3' installed - install them !Installjustinghackingwith simple command :pip install justhackingCommand works for (& in)Windows - Command Prompt | Linux & Mac OS - Terminal▶️Git cloneinstallationClone thisrepositorywithgit:git clone https://github.com/Divinemonk/justhacking/Then follow these commandscd justhacking
pip install -r requirements.py
python3 install setup.py🪛 UsageOpen terminal or command line and type :justhackingDone ! - Your fake hacking / hacking simulation setup is ready !!
Package: just-heic
Convert heic files to jpg files fixing orientation and preserving date times.just_heicto_jpgfile.heicfile.jpgjust_heicto_jpgsrc_folderdest_folder-r-t-vjust_heicto_jpg--helpChange created time to the exif metadata date taken.just_heicto_date_takensrc_folder-r--ext.jpgjust_heicto_date_taken--helpInstallpip install just_heic
Package: justic
Let me explain what was inside my head as I start this:There are a bunch of templates that defined some basic views, like a list-view,
a card-view or some grid-view. And the content files will be in another folder.
Every file contains some data and define the template for the render. The
structure of the files will be the structure of the output html files.And there it is.Still under development!InstallpipinstalljusticExamplepython-mjusticexamplepython-mhttp.server--directoryexample/buildContent filesThe content are simple python files with a specific structure. There are three
important sections:JUSTIC (__JUSTIC__)For settings for the Justic class. This will be inherited to the sub
directory.META (__META__)Parameters for the current instance, like the template name or build file.OTHERSAll other capitalized variable will be passed to the template.All Parameters:__JUSTIC__={'remove_build_prefix':'content','default_template':'index.html',}__META__={'target':'content','targets':['content'],'static':'static','template':'foo.html',}TITLE='Foo'SITEURL=''DevelopmentVirtual environment windows:python -m venv venv
venv\Scripts\activateVirtual environment linux:python3 -m venv venv
source venv/bin/activateSetup project:python -m pip install --upgrade pip wheel setuptools coverage pytest flake8 pylint tox
python -m pip install -e .Run single test with code coverage:coverage run --source=justic -m pytest
coverage report -mRun test for multiple python versions:tox -p autoCheck syntax:python -m flake8 justic
python -m pylint --rcfile=setup.cfg justicCreate package Jenkins will do it:git tag -a 0.1.7 -m "version 0.1.7"
git push --follow-tagsNo Jenkins?:python -m pip install --upgrade twine
python setup.py sdist bdist_wheel
python -m twine check dist/*
python -m twine upload dist/*ToDocopy static don’t work for sub directoryimprove test
Package: justice-augment-python-sdk
Justice Augment Python SDKPython SDK for Justice Augment Project.Development SetupSet these local environment variables:IAM_CLIENT_ID- IAM client idIAM_CLIENT_SECRET- IAM client secretADMIN_USERNAME-(optional)user/admin usernameADMIN_PASSWORD-(optional)user/admin passwordThen run:$makebuildIt will create a docker image with env variables interpolated intox.inifile for testing.To test it, run this command:$maketestAfter that, you can cleanup the working directory with this command:$makecleanHow to useTo use this SDK you can install it from pip with this command:$pipinstalljustice-augment-python-sdkAlternatively, you can addjustice-augment-python-sdkas dependency inrequirements.txt.
Then you install it with this command:$pipinstall-rrequirements.txtAfter that you can import the package, and use it like this:Justice packageimportosfromjusticeimportJusticeendpoint="https://demo.accelbyte.io"namespace='accelbyte'core=Justice(namespace,endpoint)wallet_id='some-wallet-string-id'resp=core.wallet.get_wallet(wallet_id)my_wallet=resp.json()print("Wallet balance:{0}{1}".format(my_wallet['balance'],my_wallet['currencyCode']))Do not forget to setIAM_CLIENT_IDandIAM_CLIENT_SECRETin your local environment variables if you want to try it in your local machine.BuiltInDB packagefromdatastoreimportMongoDBaugment_mongoclient=MongoDB(endpoint=<INSERT_YOUR_MONGODB_URL_HERE>)collection_name="sample-collection"data={"name":"sample-name","description":"sample-description"}augment_mongoclient.builtin_db[collection_name].insert_one(data)print(data)Ifendpointparameter inBuiltInDBobject initializationis not set, default value pointing to AccelByte's Justice demo mongoDB will be used.Commit Message GuidelinesWe usehttps://www.conventionalcommits.org/as a guidelines to write commit message. You use this format to write your commit message:<type>(optional scope): <description>
<BLANK LINE>
<optional-body>
<BLANK LINE>
<optional-footer>Any line of the commit message cannot be longer than 100 characters!Samples:docs(changelog): update changelog to beta.5fix(login): add the missing username field

We made login system without username field in our Database!TypeMust be one of the following:build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)ci: Changes to our CI configuration files and scripts (example scopes: Circle, BrowserStack, SauceLabs)docs: Documentation only changesfeat: A new featurefix: A bug fixperf: A code change that improves performancerefactor: A code change that neither fixes a bug nor adds a featuretest: Adding missing tests or correcting existing testschore: Repository maintenance
Package: justicia
JusticiaThis is the implementation of our AAAI2021and2022papers where we have proposed a formal approach to verify the fairness of machine learning classifiers.DocumentationPython tutorials are available indoc.InstallInstall python dependencies (prerequisite)pip install -r requirements.txtInstall the python librarypip install justiciaOther dependenciesPGMPYSSAT solver. Checkout to the compatible version.git clone https://github.com/NTU-ALComLab/ssatABC.git
cd ssatABC
git checkout 91a93a57c08812e3fe24aabd71219b744d2355adPySATCitationsPlease cite following papers.@inproceedings{ghosh2022algorithmic,
author={Ghosh, Bishwamittra and Basu, Debabrota and Meel, Kuldeep S.},
title={Algorithmic Fairness Verification with Graphical Models},
booktitle={Proceedings of AAAI},
month={2},
year={2022},
}

@inproceedings{ghosh2021justicia,
author={Ghosh, Bishwamittra and Basu, Debabrota and Meel, Kuldeep S.},
title={Justicia: A Stochastic {SAT} Approach to Formally Verify Fairness},
booktitle={Proceedings of AAAI},
month={2},
year={2021},
}ContactBishwamittra Ghosh(bghosh@u.nus.edu)Issues, questions, bugs, etc.Please click on "issues" at the top andcreate a new issue. All issues are responded to promptly.
Package: justify
Json JustifydocscoveragetestspackageInstallationThis project only supports python3 version python2 support may come in upcomming versionsvia pip# if under linux machienepip3installjustify# if under windowspipinstalljustifyvia github#cloning git repogitclonegit@github.com:AngrySoilder/json-justify.gitcdjson-justifypython3setup.pyinstallBasic UsageThe basic usage of json_justify is shown here which is used to validate data from sourcefromjson_justifyimportJsonManagerfromjson_justify.fieldsimportString,Number,Boolean,ArrayclassJs(JsonManager):name=String("name")age=Number("age")male=Boolean("male")friends=Array("friends")data={"name":"john doe","age":120,"male":False,"friends":["Jelly","Kelly"]}# This will return Truejs=Js(data=data)data.is_valid()ContributingContributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.Report BugsReport bugs athttps://github.com/AngrySoilder/json-justify/issuesIf you are reporting a bug, please include:Your operating system name and version.Any details about your local setup that might be helpful in troubleshooting.If you can, provide detailed steps to reproduce the bug.If you don’t have steps to reproduce the bug, just note your observations in
as much detail as you can. Questions to start a discussion about the issue
are welcome.Submit FeedbackThe best way to send feedback is to file an issue athttps://github.com/AngrySoilder/json-justify/issuesIf you are proposing a feature:Explain in detail how it would work.Keep the scope as narrow as possible, to make it easier to implement.Remember that this is a volunteer-driven project, and that contributions
are welcome :)
Package: justinascalculator
This is a simple calculator, that can do addition, subtraction, multiplication, division, raising by power and taking the (n) root of a number.Introduction:
This package was built as a Turing College task for 1.5 subproject. Each action updates the number in calculator's memory and returns result.Usage:
Functions:
memory: returns or sets a number in memory
reset_memory: resets memory to 0
addition(float or int): adds number to memory
subtraction(float or int): subtract numbers
multiplication(float or int): multiply numbers
division(float or int): divides numbers
nth_root(float or int): takes the (n)'th root of numbers
power(float or int): raises numbers by powerInstallation:
Install the package from pypi using: pip install justinascalculatorInitialise:
from calculator.Calculator import Calculator
calculator = Calculator()License:
This project is licensed underhttps://opensource.org/licenses/MIT
Package: justindex
# pip install justindex# >>> from justindex import index>>>index((len(s),s)forsin'a b'.split())defaultdict(<class'list'>, {1: ['a', 'b']})>>>index((len(s),s)forsin''.split())defaultdict(<class'list'>,{})>>>sorted(index((len(s),s)forsin'a b cc'.split()).items())[(1,['a','b']),(2,['cc'])]
Package: justinm.cdk-constructs
Welcome to your CDK TypeScript project!This is a blank project for TypeScript development with CDK.Thecdk.jsonfile tells the CDK Toolkit how to execute your app.Useful commandsnpm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
Package: justkeydding
JustkeyddingInstall through pippip install justkeyddingAfter installing, you can run thejustkeyddingmodule itself to compute outputs:# Getting global key of an input
python -m justkeydding /path/to/input

# Getting the local keys
python -m justkeydding /path/to/input --local

# Annotate the file
python -m justkeydding /path/to/input --local --annotateSupported input files are:symbolic: MusicXML, Humdrum(**kern), MEI, ABC (all handled throughmusic21)midi: MIDI and/or MID (handled throughmido)audio: WAV (handled throughmadmom)Currently,--annotateonly works for symbolic inputs.
Package: justlog
justlogA simple library for logging with Python3BasicsFor a quick example, refer to the test.py on thegithub repositoryWith justlog, everything is handled within a single class:LoggerSpawn an instance of this class to start logging quickly.fromjustlogimportjustlog,settingslogger=justlog.Logger(settings.Settings())Instances must be initialized with aSettingsinstance that can be customized before or after instantiation.SyntaxLoggerlog(message)message: The message to logWill use the current log level set within theSettingsclass:logger.settings.current_log_leveldebug(message)message: The message to logSets thecurrent_log_leveltoSeverity.DBGand calls thelog()functioninfo(message)message: The message to logSets thecurrent_log_leveltoSeverity.INFand calls thelog()functionwarning(message)message: The message to logSets thecurrent_log_leveltoSeverity.WRNand calls thelog()functionerror(message)message: The message to logSets thecurrent_log_leveltoSeverity.ERRand calls thelog()functionSettingsappname: strUsed as a default for various other settings like the log pathcurrent_log_level: SeveritySets the current log level. Influences colors and fields.Log levels:DBGINFWRNERRcolorized_logs: BoolEnables or disables the log coloration for differentSeveritylog_format: FormatSets the log format typeTEXTJSONlog_output: [Output]Defines where the logs are output. Must be a list, can include many.STDOUTSTDERRTCPFILESYSLOGHTTPstring_format: strDefines the template and fields for logs output in theTEXTformattimestamp_formatSets the$TIMESTAMPvariable format usingstfrtime codesupdate_field(key: str, value: str)Adds or updates a field that will be output to the logs. Fields can be reffered using the$symbol within thestring_formatdelete_field(key: str)Removes a fieldtcp_output_host(host: str)Sets the tcp output hosttcp_output_port(port: int)Sets the tcp output porthttp_url(url: str)Sets the http output urlhttp_headers(header: dict)Optional headers to pass to the post requesthttp_print_response(bool)Prints the http call response to stdout when TrueBuiltin Variables$TIMESTAMPWill print the current time in the format defined by thetimestamp_formatsetting usingstfrtime codes$CURRENT_LOG_LEVELWill print the current log level based on thecurrent_log_levelsetting at the moment of the call.$messageWill print the message.Quickstartfromjustlogimportjustlog,settingsfromjustlog.classesimportSeverity,Output,Formatlogger_stdout=justlog.Logger(settings.Settings())logger_stdout.settings.colorized_logs=Truelogger_stdout.settings.log_output=[Output.STDOUT]logger_stdout.settings.update_field("application","sample")logger_stdout.settings.update_field("timestamp","$TIMESTAMP")logger_stdout.settings.update_field("level","$CURRENT_LOG_LEVEL")logger_stdout.settings.string_format="[ $timestamp ] :: Level: $CURRENT_LOG_LEVEL, application: $application :: $message"logger_stdout.info("Information")logger_stdout.error("Error")logger_stdout.warning("Warning")logger_stdout.debug("Debug")
Package: just-logger
just-loggerA logging tool is used to record all kinds of logs during program running.demo# Initialize.logger=Logger('demo',level=LogLevel.DEBUG)# global log-levellogger.add_stream_handler(LogLevel.DEBUG)# log-level for console base on global levellogger.add_file_handler('demo.log',LogLevel.INFO)# log-level for log file base on global levellogger.log('Hello world!',LogLevel.INFO)logger.log('Caution please!',LogLevel.WARNING)logger.log('Error was found!',LogLevel.ERROR)logger.log('Fatal error!',LogLevel.CRITICAL)logger.log('Debugger!',LogLevel.DEBUG)# Cannot be recorded in log file, but can be showed on console.obj={'code':0,'message':'success','data':{'content':'only for testing.'}}logger.log(json.dumps(obj,ensure_ascii=False,indent=4),LogLevel.INFO)
Package: justmerge
Helping you find GitHub Pull Requests that are ready to merge and do so.⚠️EXPERIMENTAL!️️⚠️AboutIt uses the GitHub v3 API to figure out which pull requests are ready to
merge and then just merges them. There are many options that filters and
prevents etc. but one of the most important is that it has a list of
“inclusive users” and by default these arepyupandrenovate.
Any ready-to-merge pull requests made by any other users will be ignored
and left to manual scrutiny.How to useYou need a.tomlfile. There’s asample one that looks like this.With yourmy.tomlfile ready, runjustmerge my.toml. But first
you needa GitHub Personal access token.
Generate a new one and either use it as an environment variable…:GITHUB_ACCESS_TOKEN=f011af46d1cae0879b150b174af4c081167313456 justmerge my.tomlOr, put it into a.envfile.ConfigurationNEEDS MORE WORK
Package: just-mining-com-api
Just-Mining-PyPython wrapper for just-mining.com API.Official documentation:https://docs.just-mining.com/Installpython -m pip install -U just-mining-com-apiUsagefrom just_mining_com_api import JustMining

if __name__ == '__main__':
    API_KEY = 'MY_JUST_MINING_API_KEY'
    jm = JustMining(API_KEY)

    masternodes = jm.masternodes()
    print(f"Masternodes: {len(masternodes)}")
    print(masternodes)

    clouds = jm.clouds()
    print(f"Clouds: {len(clouds)}")
    print(clouds)

    cloud_id = 'CLOUD_ID'
    cloud = jm.clouds(cloud_id)
    print(f"Cloud {cloud_id}:")
    print(cloud)

    stackings = jm.stakings()
    print(f"Stackings: {len(stackings)}")
    print(stackings)

    currency_code = 'OSMO'
    stacking = jm.stakings(currency_code)
    print(f"Stacking {currency_code}:")
    print(stacking)

    lendings = jm.lendings()
    print(f"Lendings: {len(lendings)}")
    print(lendings)

    currency_code = 'USDT'
    lending = jm.lendings(currency_code)
    print(f"Lending {currency_code}:")
    print(lending)

    wallets = jm.wallets()
    print(f"Wallets: {len(wallets)}")
    print(wallets)

    wallet_addresses = jm.wallet_addresses()
    print(f"Wallet addresses: {len(wallet_addresses)}")
    print(wallet_addresses)

    operations = jm.operations()
    print(f"Operations: {len(operations)}")
    print(operations)

    operation_id = 'OPERATION_ID'
    operation = jm.operations(operation_id)
    print(f"Operation {operation}")
    print(operation)
Package: justml
JustML provides automatic machine learning model selection, training and deployment in the cloud.JustML finds the right scikit-learn or xgboost estimator for a given supervised machine learning problem, along with the optimal hyperparameters. It also selects data and feature preprocessors in order to build a complete machine learning pipeline. The selected models are fitted and deployed on JustML computing infrastructure and can be used to generate new predictions. For more information, checkhttps://justml.io.Usage examples can be found athttps://nbviewer.jupyter.org/gist/justmlio/796d210e31eedaaddb40cdb12a17ad80.
Package: justmltools
justmltoolsThis Python package is a library for recurring tasks in machine learning projects.It provides the following features:standardized path layout for machine learning input and output dataeasy data transfer between a local file system and anMLflow repositoryeasy data transfer between a local file system and anAWS S3 bucketeasy data transfer from a GitLab repository to the local file systemInstallationFromPyPi:pip3 install justmltoolsDocumentationFind documentation on when and how to use justmltools in theWiki.
Package: justnow
justnowjustnowis a systemd.timer inspired event parser in pure Python. The library consists of alarkgrammar definition and some code to parse and generate datetimes.UsageBelow is a snippet of the basic usage.importdatetimefromjustnow.parserimportEventParserreference_date=datetime.datetime(2020,1,1)# "sat *-*-* 14:00:00" => Generate all Saturdays at 14:00:00parser=EventParser("sat *-*-* 14:00:00",reference_date=reference_date)next(parser)# datetime.datetime(2020, 1, 4, 14, 0)# "sat *-02-29" => Generate all Saturdays which occur on a leap yearparser=EventParser("sat *-02-29",reference_date=reference_date)list(parser.get_next_n(limit=2))# [datetime.datetime(2020, 2, 29, 0, 0), datetime.datetime(2048, 2, 29, 0, 0)]Thejustnowgrammar defines atime eventand is made of up 3 sections:Weekday sectionThis section allows for a comma separated list of weekday names and weekday ranges.Weekday namesThe following are valid tokens for the weekday section:montuewedthufriMonTueWedThuFrimondaytuesdaywednesdaythursdayfridayWeekday rangesA weekday range consists of two day names separated by two full stops.For examplemon..wedwill evaluate into mon, tue and wed.Date sectionThe date section is made up of 3 sub sections, namely:A year sectionA month sectionA day sectionEach of the above sub sections can be either:One of more fixed length strings made up of integers separated by a comma. The length is 4 for years and 2 for months and days.A wildcard*Time sectionThe time section is made up of 3 sub sections, namely:A hour sectionA minute sectionA second sectionEach of the above sub sections can be either:One of more strings made up of 2 integers separated by a comma.A wildcard*Named Eventsjustnowalso supports a set of built in named events including:@minutely@hourly@daily@monthly@weekly@yearly@quarterly@semiannually@annually