Saravanan666/pypi-org huggingface dataset:
Package: wildcard.pdfpal
IntroductionThis package provides some nice integrations for PDF heavy web sites.Generates thumbnails from PDFAdds folder view for pdfs so it can use the generated thumbnailAdds OCR for PDF indexingEverything configurable so you can choose to not use thumbnail gen or OCRAbility to create searchable PDFs with HOCRuse the@@async-monitorurl to monitor asynchronous jobs that have yet to runOCROCR requires Ghostscript to be installed and Tesseract. Just you package management
to install these packages:# sudo apt-get install ghostscript tesseract-ocrThis will install tessact 2 not tesseract 3.Searchable PDFsRequires svn checkout of tesseract version 3.01 or 3.00 with the hocr configuration in place.
Take a look at this thread to find out how to configure hocrhttp://ubuntuforums.org/showthread.php?t=1647350In addition, you’ll need exactimage and pdftk installed# sudo apt-get install exactimage pdftk libtiff-toolsTo not use the latest tesseract version to will have to add this in your
instances declaration:environment-vars += AUTHORIZE_OLD_TESSERACT_VERSION truePlone 3Requires hashlibExtraYou can convert all at once by calling the url@@queue-up-all.Changelog0.7b6 ~ 2012-04-20-fix uninstall[vangheem]0.7b5 ~ 2012-04-19do not run conversion if documentviewer is installed
[vangheem]add better uninstall support
[vangheem]0.7b4 ~ 2012-04-09fix image url for album view.
[vangheem]0.7b3 ~ 2012-04-05fix content type spec for thumbnail response
[vangheem]display image thumb urls in in album view
[vangheem]0.7b2 ~ 2011-04-12more checks on reading files
[vangheem]provide button to manually index document
[vangheem]add ability to split pdf up into multiple PDFs
[vangheem]0.7b1 ~ 2011-01-06fixes for quality and size issues
[vangheem]0.6b2 ~ 2011-01-04fix async monitor view to work with plone.app.async = 1.0
It changed the order of some args in the job.
[vangheem]0.6b1 ~ 2011-01-04added ability to make PDFs searchable and make it work seamlessly
if wc.pageturner is installed so flex paper is created with the searchable
PDF version.0.5b5 ~ 2010-12-07did not conditionally import plone.app.async0.5b4 ~ 2010-12-06better info on async monitoronly reindex searchabletext when doing OCR so the modification date on
the object does not get set.make sure to catch exceptions so it doesn’t leave around files after a bad conversionadd colorbox for pdf folder view0.5b3 ~ 2010-12-02add ability to queue up all pdf files0.5b2 - 2010-12-02fix async monitor view0.5b1 - 2010-12-02Initial release
Package: wildcard.pfg.stripe
IntroductionThis package provides a Stripe payment processing (https://stripe.com/) field to PloneFormGen,
which will make forms buyable.  This is useful for donation websites and other simple use cases.The field allows you to select amount types and customize the look and feel
a bit.Requires signing up with stripe.comHow to useinstall and activate addon on siteon a PloneFormGen form, add aStripe Fieldenter necessary field settingsField DataWill send data for up to 10 fields to stripe with payment.Changelog1.1.0 (2016-01-12)fix parsing of some input amounts
[vangheem]1.1b6 (2015-04-09)set receipt_email on stripe api call so automatic
receipts can be sent out.1.1b5 (2015-01-05)warn users they can only include 10 fields1.1b4 (2015-01-05)be able to select metadata fields to include1.1b3 (2015-01-05)only count metadata value field if has value1.1b2 (2014-06-08)only send up to 10 metatdata fields, otherwise submission fails.1.1b1 (2014-05-08)send form data to stripe as metadata1.0a4 (2014-04-26)fix amounts field to get and save data consistently1.0a3 (2014-04-26)protect stripe secret betterhandle form errors better1.0a2 (2014-04-26)set some default prive levelshide unused fields1.0a1 (2014-04-26)initial release
Package: wildcard.readonly
IntroductionThis package provides a mechanism to easily have clients set to
work with readonly.This is mostly useful for preventing ReadOnlyError from cropping up
from write on read operations for a public read only site.WarningAlso make sure to set your zeo client zope.confread-only truesetting:<zodb_db main>
    <zeoclient>
    ...
    read-only true
    ...
    </zeoclient>
</zodb_db>To make this work along with buildout, use theread-onlyrecipe config option.
Also, make sure to disable product installation in your client configuration,
otherwise you’ll get errors on startup. Make sure to use
plone.app.zeoclient >= 4.2.12 as it includes the read-only config option:[client1]
recipe = plone.recipe.zope2instance
...
read-only = true
enable-product-installation = off
...UsageAbort all transactionsAborts transaction on IPubBeforeCommit event.Add this to the zcml-additional option for your client:[client1]
recipe = plone.recipe.zope2instance
...
zcml-additional =
    <include package="wildcard.readonly" file="readonly.zcml" />
...Doom all transactionsDooms the transaction on the IPubAfterTraversal event.Add this to the zcml-additional option for your client:[client1]
recipe = plone.recipe.zope2instance
...
zcml-additional =
    <include package="wildcard.readonly" file="readonly-doom.zcml" />
...Conditionally abort transactionsUseful when aborting all transactions prevents emails from getting sent out.
For instance, if you’re using PloneFormGen in your setup, dooming and aborting
will prevent mail from getting sent.Add this to the zcml-additional option for your client:[client1]
recipe = plone.recipe.zope2instance
...
zcml-additional =
    <include package="wildcard.readonly" file="readonly-conditional.zcml" />
...Handling sending mailSince mail is tied to transaction management, aborting all transactions will
also prevent sending mail on the site.Add this to the zcml-additional option for your client:[client1]
recipe = plone.recipe.zope2instance
...
zcml-additional =
    <include package="wildcard.readonly" file="mail.zcml" />
...Changelog1.0 (2014-02-26)be able to patch mail host to still send out emails1.0a2 (2012-07-29)fix packaging1.0a1 (2012-06-14)Initial release
Package: wildcard.recipe.insertinto
The package is meant to be used to insert text into files via buildout.Example usageInsert text:[insertinto]
recipe = wildcard.recipe.insertinto
example = ${buildout:directory}/file.conf insert-before "foo" "bar"
example2 = ${buildout:directory}/file.conf insert-after "foo" "bar"1.0a1 (2012-05-16)initial release
[vangheem]
Package: wildcard.templatedviews
IntroductionThis package allows you to define a set of views, schemas, and templates that
can be used as templates for a view on a Plone site.So basically, it just allows an easy mechanism to provide extra, reusable
templates that have settings attached to them. Each template that you fill
in the settings for, can then be referenced from another template view
on the site elsewhere.Basic exampleDefine your settings:>>> class ICustomSettings(Interface):
>>>     setting_one = schema.TextLine(title=u'Setting One')
>>>     setting_two = schema.Text(title=u'Setting Two', default=u'')Define a template view utility:>>> from wildcard.templatedviews.browser import BaseViewUtility
>>> from plone.app.form.widgets.wysiwygwidget import WYSIWYGWidget
>>> class CustomTemplateViewUtility(BaseViewUtility):
>>>     settings = ICustomSettings
>>>     _for = None
>>>     title = u'Custom Template'
>>>     description = u'a custom template settings.'
>>>     custom_widgets = (
>>>         ('setting_one', WYSIWYGWidget),
>>>     )And wire it up with zcml:>>> <browser:page
>>>   for="*"
>>>   name="custom-template"
>>>   class="wildcard.templatedviews.browser.BaseView"
>>>   template="templates/custom-template.pt"
>>>   permission="zope2.View"
>>> />
>>> <utility factory=".CustomTemplateViewUtility" name="custom-template" />
>>> <adapter
>>>   for="*"
>>>   provides=".ICustomSettings"
>>>   factory="wildcard.templatedviews.settings.TemplateViewSettings"
>>> />Then in yourcustom-template.pt, you can use the settings like this:>>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
>>>       xmlns:tal="http://xml.zope.org/namespaces/tal"
>>>       xmlns:metal="http://xml.zope.org/namespaces/metal"
>>>       xmlns:i18n="http://xml.zope.org/namespaces/i18n"
>>>       lang="en"
>>>       metal:use-macro="here/main_template/macros/master"
>>>       i18n:domain="plone">
>>> <body>
>>>
>>> <metal:main fill-slot="main" tal:define="settings python: view.settings">
>>>   <tal:main-macro metal:define-macro="main">
>>>     <h1 tal:content="python: settings.setting_one" />
>>>     <p tal:content="structure python: settings.setting_two" />
>>>   </tal:main-macro>
>>> </metal:main>
>>> </body>
>>> </html>You’ll also need to add the ‘templated-view’ view to the list of available
views on the content type you’d like to use this for.Now to use it after you’ve installed it, select “templated-view” from the
display drop down, then use the “Select Template” and “Template Settings”
to customize your templated view.Check out the source for more examples on how to use it.Changelog1.0b4 (2012-08-27)fix use of transform1.0b3 (2012-08-09)plone 4.1 compattransform uids1.0b2 (2011-10-25)if traversing to object doesn’t work, try
looking it up in the redirect storage1.0b1 (2011-04-13)provide save events for settings and selected templateallow ordering of fields1.0a2 (2010-04-10)fix issue when no utilty can be foundadd more utility methods to view1.0a1 (2011-03-20)Initial release
Package: wildcard.tinymceplugins.youtube
Introduction============This package provides a tinymce plugin for easily adding youtube videos.Only tested with latest Products.TinyMCE.Warning^^^^^^^You'll likely need to allow iframe as a custom tag via html filtering forthis plugin to work.Another warning^^^^^^^^^^^^^^^Due to the way most modern browsers help protect against XSS attacks, afteryou save a form where you added a video with tinymce, you'll likely see therendering of the video is blocked initially. Just reload the browser once moreto see the video added.See http://glicksoftware.com/blog/disable-html-filtering for tips on gettingaround this annoyance.Changelog=========1.0 (2015-03-10)----------------- default to prefer html51.0b1 (2014-02-06)------------------- be a little more smart about detecting the iframe element1.0a2 (2014-02-05)------------------- be smarter about parsing youtube urls1.0a1 (2014-02-04)------------------- Initial release
Package: wildcard.uberoverride
IntroductionThis package overrides the terrible UberSelectionWidget used in the collection
portlet into a tree widget.It’ll also convert the widget used in the collective.listingviews portlet to this
new tree widget.This is a port from a project done long ago and unfortunately, there are no
tests and it’s possible it won’t work perfect for you. You’re encouraged
to fix things and add issues to the tracker:https://github.com/collective/wildcard.uberoverrideMake pull requests if you’d like additional form fields overridden.Changelog1.0a1 (2013-05-16)Initial release
Package: wildcat
[![Build Status](https://travis-ci.org/skonb/wildcat_qdk.svg?branch=feature%2Ftravis_ci)](https://travis-ci.org/skonb/wildcat_qdk)Wildcat Python SDK===============================version number: 0.0.10author: Shumpei KobayashiOverview--------Wildcat Python SDK to Use AnnealersInstallation / Usage--------------------To install use pip:$ pip install wildcatOr clone the repo:$ git clone https://github.com/mdrft/wildcat.git$ python setup.py installContributing------------TBDExample-------To find an optimal arrangement with wildcat remote server:```pythonfrom wildcat.util.matrix import random_symmetric_matrixfrom wildcat.solver.ising_hamiltonian_solver import IsingHamiltonianSolverJij = random_symmetric_matrix(size=40)solver = IsingHamiltonianSolver(ising_interactions=Jij)def callback(arrangement):e = solver.hamiltonian_energy(arrangement)print("Energy: ", e)print("Spins: ", arrangement)solver.solve(callback)```To find an optimal arrangement with local annealer, specify LocalEndpoint:```pythonfrom wildcat.network.local_endpoint import LocalEndpointsolver.solve(callback, endpoint=LocalEndpoint())```You can adjust annealing strategy:```pythonfrom wildcat.network.local_endpoint import LocalEndpointfrom wildcat.annealer.simulated.simulated_annealer import SimulatedAnnealerfrom wildcat.annealer.simulated.single_spin_flip_strategy import SingleSpinFlipStrategyfrom wildcat.annealer.simulated.temperature_schedule import TemperatureSchedulefrom wildcat.util.matrix import hamiltonian_energydef update_callback(q):print(q)print(hamiltonian_energy(q))schedule = TemperatureSchedule(initial_temperature=10, last_temperature=0.1, scale=0.8)strategy = SingleSpinFlipStrategy(repetition=10, update_callback=update_callback)annealer = SimulatedAnnealer(schedule=schedule, strategy=strategy)local_endpoint = LocalEndpoint(annealer=annealer)```
Package: wildcatter
WildcatterReinforcement learning framework for well placement and optimizationFeaturesTODORequirementsTODOInstallationYou can installWildcatterviapipfromPyPI:$pipinstallwildcatterUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theApache 2.0 license,Wildcatteris free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: wildebeest
WildebeestWildebeest is a file processing framework. It is designed for IO-bound workflows that involve reading files into memory, processing their contents, and writing out the results. It makes running those workflows faster and more reliable by parallelizing across files, handling errors, making it easy to skip files that have already been processed, and keeping organized records of what was done.Wildebeest was developed for deep learning computer vision projects, so in addition to the general framework it also provides predefined components for image processing. However, it can be used for any project that involves processing data from many sources.Seethe docsfor more details.Wildebeest was known as Creevey until version 3.0.0.
Package: wildered
Wilderedwilderedis a personal, over-engineered, toy project for autocompleting your Python code using OpenAI GPT-3.5.InstallationYou can installwilderedwithpip.  You need to have Python version of 3.10 or above to usewildered.pip install wilderedBasic usageSuppose that you have two Python scripts:test.py:frompydanticimportBaseModelfrommodelsimportPointdeffind_y_intercept(point_1:Point,point_2:Point)->Point:"""Given two points, find and return the y intercept as Point object"""passmodels.py:fromtypingimportAny,NamedTuple,TypeAliasimportnumpy.typingasnptimportnumpyasnpclassPoint(NamedTuple):x:inty:intdefas_ndarray(self)->npt.NDArray:returnnp.array([self.x,self.y])We wish to implementfind_y_interceptintest.py. However, we cannot just copy paste the whole script, as the function depends on the definition ofPointobject, which is inmodels.py.Lets see whatwilderedcan do.First, we add directives to thetest.py.Newtest.py:frompydanticimportBaseModelimportwildered# You can choose not to import wildered if you wantfrommodelsimportPoint@wildered.hint([Point])@wildered.autocomplete()deffind_y_intercept(point_1:Point,point_2:Point)->Point:"""Given two points, find and return the y intercept as POint object"""passNow we run thewilderedcli command:wilderedtest.pywilderedwill format a prompt for you ready to be used for code completion LLM:I am writing a Python project and I need your help as a code assistant.
Below are the functions or classes that I am working on:

```python
def find_y_intercept(point_1: Point, point_2: Point) -> Point:
    """
    Given two points, find and return the y intercept as POint object
    """
    pass
```

Below are the tasks you need to accomplish:
'''
## Task 1
Implement find_y_intercept function. Follow instruction from docstrings and comments on how to implement the function. Ensure that your answer has type annotations. 

'''
Below are snippets of code in the current project that you may find useful:
```python
from typing import Any, NamedTuple, TypeAlias
import numpy.typing as npt
import numpy as np

class Point(NamedTuple):
    x: int
    y: int

    def as_ndarray(self) -> npt.NDArray:
        return np.array([self.x, self.y])
```

Your answer should only have the functions or class that you are told to implement. Do not repeat other code in your answerNote: Actual output may differ as prompt template changes over time.A more detailed documentation is still under development. Meanwhile you can learn more by runningwildered --helpFuture worksAutomatically detect dependencies instead of specifying all of them manually. Also detect the dependencies of the dependencies.Improving automatic integration of the LLM response into your project code.
Package: wilderness
WildernessIn wildness is the salvation of the world.— 
Aldo LeopoldWilderness is a light wrapper aroundargparsefor creating command
line applications with multiple subcommands, in the style ofGit.
Wilderness also makes it easy to generate man pages for your application.Wilderness is heavily inspired byCleoandargparse-manpage, but aims to stick as closely as possible
toargparseto avoid users having to learn a new API.InstallationWilderness is available on PyPI:$ pip install wildernessUsageBuilding command line applications with Wilderness is straightforward, but it
does expect a certain structure of the application. You can create
applications with or without subcommands, as illustrated with thefakegitandfakedfexamples, respectively.Creating wilderness applications consist of the following steps:Subclassing thewilderness.Applicationclass to hold the main
application.Adding one or morewilderness.Commandobjects for each of the
subcommands, optionally organized intowilderness.Groups.Minor changes tosetup.pyto build the manpages.ExamplesHere are some examples that use Wilderness to build command line applications:RepositoryDescriptionfakegitA multi-level command line application similar to GitfakedfAn application without subcommands similar to dfCleverCSVCleverCSV is a package for handling messy CSV filesVeldEasy command line analyticsAdd your example here by opening a pull request!NotesLicense: See the LICENSE file.Author:Gertjan van den Burg
Package: wildfire-evac
Wildfire Evacuation RL Gym EnvironmentA new reinforcement learning OpenAI Gym environment built for the simulation of wildfire evacuation. Check out thedocsand thedemo.How To UseFirst, install our package:pipinstallwildfire-evacTo use our wildfire evacuation environment, define the dimensions of your grid, where the populated areas are, the paths, and which populated areas can use which path. See an example below.# Create environmentkwargs={'num_rows':num_rows,'num_cols':num_cols,'populated_areas':populated_areas,'paths':paths,'paths_to_pops':paths_to_pops}env=gymnasium.make('wildfire_evac/WildfireEvacuation-v0',**kwargs)# Run a simple loop of the environmentenv.reset()for_inrange(10):# Take action and observationaction=env.action_space.sample()observation,reward,terminated,truncated,info=env.step(action)# Render environment and print rewardenv.render()print("Reward: "+str(reward))For more examples, check outexamples/.
Package: wildfly-py
wildfly-py=========This package provides Python binding for the WildFly Management API.Installation------------You can install stable version wildfly-py from PyPi.```bashpip install wildfly-py```You can install development version from GitHub.```bashpip install  git+git://github.com/cenx-cf/wildfly-py```Documentation------------Full documentation is hosted on [ReadTheDocs](http://wildfly-py.readthedocs.io/).Sources are available in the [docs](docs/) directory.License-------The project is licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
Package: wildhost
WildhostChecks wildcard domain names.Installpip install wildhostUsageImport the module>>>importwildhostPass a hostname to thecheckfunction.>>>wildhost.check('foo.bar.domain.tld')If none of the levels of the name are wildcards,Nonewill be returned.>>>wildhost.check('mail.google.com')This returnsNoneas neithergoogle.comnormail.google.comare wildcards.For a wildcard name, thelowestlevel wildcard name will be returned.>>>wildhost.check('foo.bar.spam.grok.sharefile.com')'sharefile.com'PerformanceThe module caches the wildcard results and uses them in further checks. For example:>>>wildhost.check('foo.bar.spam.grok.sharefile.com')# this will be a fresh check'sharefile.com'>>>wildhost.check('boom.blast.sharefile.com')# this will use the cache'sharefile.com'Oncesharefile.comis known to be a wildcard, any further subdomains ofsharefile.comwill be evaluated as wildcards as well. This is determined from a static check and therefore very fast.However, there is a caveat. In anunlikelyscenario,api.sharefile.comwill be missed, if it happens to be a valid subdomain.In such cases, when in doubt, use thewildcard.check_freshfunction to ignore the cache.>>>wildcard.check_fresh('api.sharefile.com')This will returnNoneif it is, in fact, not a wildcard.check_freshneeds to make network requests, where ascheckcaches the results and is very fast. Choose one that is suitable for the problem at hand.
Package: wildmatch
wildmatchThis CLI tool is intended to assist in filtering lists of paths by potentially arbitrary.gitignore-like configuration
files. It uses thepython-pathspeclibrary withargparseto
allow easier use in pipelines and automation.$wildmatch--help
usage:wildmatch[-h][-cCONF][-iINPUT][--version]Filterlistsofpathsbyarbitrary.gitignore-likeconfigurationfiles.

optionalarguments:-h,--helpshowthishelpmessageandexit-cCONF,--confCONFoptionallysettheconfigurationfiletofilterby,defaultsto.diffignore(default:.diffignore)-iINPUT,--inputINPUToptionallyspecifyaninputfiletofilterbytheconfigurationfile(default:None)--versionDisplaywildmatchversion(0.0.1).(default:False)InstallInstallation requires Python>=3.9.pipinstallwildmatch
Package: wild-nlp
Corrupt an input text to test NLP models' robustness.For details refer tohttps://nlp-demo.readthedocs.ioInstallationpip install wild-nlpSupported aspectsAll together we defined and implemented 11 aspects of text corruption.ArticlesRandomly removes or swaps articles into wrong ones.Digits2WordsConverts numbers into words. Handles floating numbers as well.MisspellingsMisspells words appearing in the Wikipedia list of:commonly misspelled English wordshomophonesPunctuationRandomly adds or removes specified punctuation marks.QWERTYSimulates errors made while writing on a QWERTY-type keyboard.RemoveCharRandomly removes:charactersfrom words orwhite spacesfrom sentencesSentimentMaskingReplaces random, single character with for example an asterisk in:negativeorpositivewords from Opinion Lexicon:http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.htmlSwapRandomly swaps two characters within a word, excluding punctuations.Change charRandomly change characters according to chosen dictionary, default is 'ocr' to simulate simple OCR errors.White spacesRandomly add or remove white spaces (listed as a parameter).Sub stringRandomly add a substring to simulate more comples signs.- All aspects can be chained together with the wildnlp.aspects.utils.compose function.Supported datasetsAspects can be applied to any text. Below is the list of datasets for which we already implemented processing pipelines.CoNLLThe CoNLL-2003 shared task data for language-independent named entity recognition.IMDBThe IMDB dataset containing movie reviews for a sentiment analysis. The dataset consists of 50 000 reviews of two classes, negative and positive.SNLIThe SNLI dataset supporting the task of natural language inference.SQuADThe SQuAD dataset for the Machine Comprehension problem.Usagefromwildnlp.aspects.dummyimportReverser,PigLatinfromwildnlp.aspects.utilsimportcomposefromwildnlp.datasetsimportSampleDataset# Create a dataset object and load the datasetdataset=SampleDataset()dataset.load()# Crate a composed corruptor function.# Functions will be applied in the same order they appear.composed=compose(Reverser(),PigLatin())# Apply the function to the datasetmodified=dataset.apply(composed)