Saravanan666/pypi-org huggingface dataset:
Package: jarn.jenkins
OverviewThis is a recipe to set up and configureJenkinsin aJettyservlet
container.NoteThe recipe is currently not compatible with Python 2.7 due to an
incompatibility in theiw.recipe.templaterecipe used internally.Basic setupA basic buildout configuration using this recipe looks like this:[buildout]

parts =
    jetty-download
    jenkins-download
    jenkins

[jetty-download]
recipe = hexagonit.recipe.download
url = http://download.eclipse.org/jetty/7.2.2.v20101205/dist/jetty-distribution-7.2.2.v20101205.tar.gz
strip-top-level-dir = true

[jenkins-download]
recipe = hexagonit.recipe.download
url = http://mirrors.jenkins-ci.org/war/1.397/jenkins.war
download-only = true

[jenkins]
recipe = jarn.jenkins
jetty-location = ${jetty-download:location}
jenkins-location = ${jenkins-download:location}This will download both Jetty and Jenkins and create an executable Jetty
environment inparts/jenkins. It will also create a control script inbin/jenkins. The name of the script is the name of the section.To test the setup runbin/jenkins fgand check the console output. By
default this will run a Jetty server on port 8070. The jenkins instance is
accessible in a browser athttp://127.0.0.1:8070/jenkins/.Jenkins will write all its log files intovar/jenkins/log. All its
configuration including jobs and past runs will go intovar/jenkins/data.
The directory name invarwill have the name of the recipe section.OptionsThe recipe supports the following options:hostName or IP address of the Jetty server, e.g.some.server.com.
Defaults to127.0.0.1.portServer port. Defaults to8070.java-optsOptional. Parameters to pass to the Java Virtual Machine (JVM) used to
run Jetty. Each option is specified on a separated line.
If you run into memory problems it’s typical to pass:[jenkins]
...
java-opts =
  -Xms512M
  -Xmx1024M
...Changelog1.0b2 - 2011-03-15Passos.environinto the Jenkins process.
[newbery]1.0b1 - 2011-02-13Renamed fromcollective.recipe.hudsontojarn.jenkins, following the
Hudson to Jenkins renaming by the Jenkins community.
[hannosch]1.0a3 - 2010-09-10Added note about Python 2.7 incompatibility. Thanks to Rob Madole for
notifying me.
[hannosch]Updated example to version 1.375.
[hannosch]1.0a2 - 2010-03-04Configure theHUDSON_HOMEenvironment variable inside the jetty.xml
instead of the control script.
[hannosch]Simplify the example buildout a bit.
[hannosch]1.0a1 - 2010-03-04Better update handling.
[hannosch]Don’t configure a ContextDeployer which allows us to skip the contexts
examples cleanup.
[hannosch]Added basic package documentation.
[hannosch]Updated jetty configuration to match new class names caused by the move to
the Eclipse project.
[hannosch]Initial code, largely based on collective.recipe.solrinstance.
[hannosch]
Package: jarn.jsi18n
While internationalization in Zope/Plone is very mature there is no generally accepted way of doing i18n in JavaScript. Typically packages that contain Javascript code expose i18n by having hard-coded dictionaries or templates that dynamically create these dictionaries. While this is fine for small i18n catalogs, it easily gets tedious and is hard to update.This package provides the essentials for leveraging the i18n infrastructure in Plone inside your JavaScript code:Allows you to load arbitrary gettext catalogs from Plone.Provides you withMessage Factoriesvery similar to the ones used in your python code.Makes use of thelocal storageavailable in modern browsers to avoid reloading message catalogs.UsageYour package should depend onjarn.jsi18nand include it in its meta-data dependencies.In order to instantiate aMessageFactoryand use it you will need to load the i18n catalog. Typically, this will be done in a way similar to:$(document).ready(function () {
    jarn.i18n.loadCatalog('plone', 'el');
    _ = jarn.i18n.MessageFactory('plone')
});The second parameter inloadCatalogspecifying the language is optional, when omitted thelangattribute in thehtmltag is used.Now that we have a message factory we can use it to get translated strings:> _('Contributor');
Συντελεστήςor with keyword parameters:> _('Groups are: ${names}', {names: 'Jarnians'})
"Οι ομάδες είναι: Jarnians "You can if you wish load multiple catalogs (or languages for the same catalog) and instantiate their respective factories, for instance:> jarn.i18n.loadCatalog('plone', 'es');
> _es = jarn.i18n.MessageFactory('plone', 'es');
> _es('Contributor');
"Contribuyente"CachingIf the client browser supports local storage it will be used to store the catalogs that you load. This makes it possible to avoid making an ajax request every time in order to load the full catalog. The stored catalog is by default valid for 24 hours. You can set the time-to-live by callingjarn.i18n.setTTL(millis)passing in milliseconds for how long the local storage cache should remain valid. Note that if local storageissupported, and the cache has not expired, the browser will NOT reload a catalog even if it changes in the filesystem.Changelog1.1 - 2014-07-10Fix for Internet Explorer 8, defining Date.now() in jsi18n.js: IE8 does not know Date.now() by default
[kysr]1.0 - 2013-01-25courtesy release so people don’t get
version 0.11 over 0.3. Also, about time for a 1.0…0.3 - 2012-12-17Do not cache null catalog contents
[cambell-bika]simpler MessageFactory
[mmariani]0.2 - 2011-12-6A few bug fixes.
[ggozad]Test coverage with jasmine.js
[ggozad]0.11 - 2011-11-01Fix typos.0.1 - 2011-11-01First release.
Package: jarn.xmpp.twisted
Introductionjarn.xmpp.twistedprovides a basis for building XMPP applications with Plone.In short,jarn.xmpp.twistedincludes:Extensions to thewokkelpackage by implementing parts of the following XMPP extensions:XEP-0071XHTML-IM.XEP-0144Roster Item Exchange.XEP-0060Publish-Subscribe.XEP-0248PubSub Collection Nodes.XEP-0133Service Administration.ATwistedreactor that runs side-by-side with the Zope instance.Utilities that provide XMPP clients of two sorts, adeferredclient that initially connects, executes a task and disconnects as soon as it is done, as well as a normal client that remains connected and can respond to XMPP events.An XMPP component base class for writing custom components.jarn.xmpp.twistedis part of a suite, with the other packages being:jarn.xmpp.core, provides facilities for presence, messaging, chatting and microblogging.jarn.xmpp.collaborationprovides an XMPP protocol to do real-time collaborative editing as well as a Plone-targeted implementation.Installationjarn.xmpp.twistedrequires a working XMPP server installation. Please refer to thejarn.xmpp.coredocumentation on how to set it up.TestingSome of the included tests are functional tests that require a XMPP server running onlocalhostas well as an administrator account setup up on this server with JIDadmin@localhostand passwordadmin. If you wish to run those you have to specify alevel2 on your testrunner, i.e../bin/test -a 2 -s jarn.xmpp.twistedCreditsMost of this work was done using the 10% time available toJarn ASemployees for the development of open-source projects.Changelog0.1Stop reactor on system exit.
[hannosch, ggozad]0.1b1Allow HTTPS connections for http-binding.
[hannosch]0.1a3 - 2010-06-06Run tests requiring the EJABBERD layer only when level 2 is specified on the
testrunner.
[ggozad]Fix deferred client to work with remote server.
[ggozad]0.1a2 - 2010-05-11Made a release of wokkel athttp://dist.jarn.com/public, until
wokkel > 0.6.4 is released.
[ggozad]0.1a1 - 2010-05-09Initial release.
[ggozad]
Package: jarowinkler
JaroWinklerJaroWinkler is a library to calculate the Jaro and Jaro-Winkler similarity. It is easy to use, is far more performant than all alternatives and is designed to integrate seemingless withRapidFuzz.:zap: Quickstart>>>fromjarowinklerimport*>>>jaro_similarity("Johnathan","Jonathan")0.8796296296296297>>>jarowinkler_similarity("Johnathan","Jonathan")0.9037037037037037🚀 BenchmarksThe implementation is based on a novel approach to calculate the Jaro-Winkler similarity using bitparallelism. This is significantly faster than the original approach used in other libraries. The following benchmark shows the performance difference to jellyfish and python-Levenshtein.⚙️ InstallationYou can install this library fromPyPIwith pip:pip install jarowinklerJaroWinkler provides binary wheels for all common platforms.Source buildsFor a source build (for example from a SDist packaged) you only require a C++14 compatible compiler. You can install directly from GitHub if you would like.pip install git+https://github.com/maxbachmann/JaroWinkler.git@main📖 UsageAny algorithms in JaroWinkler can not only be used with strings, but with any arbitary sequences of hashable objects:fromjarowinklerimportjarowinkler_similarityjarowinkler_similarity("this is an example".split(),["this","is","a","example"])# 0.8666666666666667So as long as two objects have the same hash they are treated as similar. You can provide a__hash__method for your own object instances.classMyObject:def__init__(self,hash):self.hash=hashdef__hash__(self):returnself.hashjarowinkler_similarity([MyObject(1),MyObject(2)],[MyObject(1),MyObject(2),MyObject(3)])# 0.9111111111111111All algorithms provide ascore_cutoffparameter. This parameter can be used to filter out bad matches. Internally this allows JaroWinkler to select faster implementations in some places:jaro_similarity("Johnathan","Jonathan",score_cutoff=0.9)# 0.0jaro_similarity("Johnathan","Jonathan",score_cutoff=0.85)# 0.8796296296296297JaroWinkler can be used with RapidFuzz, which provides multiple methods to compute string metrics on collections of inputs. JaroWinkler implements the RapidFuzz C-API which allows RapidFuzz to call the functions without any of the usual overhead of python, which makes this even faster.fromrapidfuzzimportprocessprocess.cdist(["Johnathan","Jonathan"],["Johnathan","Jonathan"],scorer=jarowinkler_similarity)array([[1.,0.9037037],[0.9037037,1.]],dtype=float32)👍 ContributingPRs are welcome!Found a bug? Report it in form of anissueor even better fix it!Can make something faster? Great! Just avoid external dependencies and remember that existing functionality should still work.Something else that do you think is good? Do it! Just make sure that CI passes and everything from the README is still applicable (interface, features, and so on).Have no time to code? Tell your friends and subscribers about JaroWinkler. More users, more contributions, more amazing features.Thank you :heart:⚠️ LicenseCopyright 2021 - presentmaxbachmann.JaroWinkleris free and open-source software licensed under theMIT License.
Package: jaro-winkler
JaroWinklerOriginal, standard and customisable versions of the Jaro-Winkler functions.>>> import jaro
>>> jaro.jaro_winkler_metric(u'SHACKLEFORD', u'SHACKELFORD')
0.9818181
>>> help(jaro)

Help on package jaro:NAMEjaro - Python translation of the original Jaro-Winkler functions.DESCRIPTIONThe Jaro-Winkler functions compare two strings and return a score indicating
    how closely the strings match. The score ranges from 0 (no match) to 1
    (perfect match).

    Two null strings ('') will compare as equal. Strings should be unicode
    strings, and will be compared as given; the caller is responsible for
    capitalisations and trimming leading/trailing spaces.

    You should normally only need to use either the jaro_metric() or
    jaro_winkler_metric() functions defined here. If you want to implement your
    own, non-standard metrics, look at the comments and functions in the jaro.py
    submodule.PACKAGE CONTENTS...
   jaro
   strcmp95
   ...FUNCTIONSjaro_metric(string1, string2)
        The standard, basic Jaro string metric.jaro_winkler_metric(string1, string2)
        The Jaro metric adjusted with Winkler's modification, which boosts
        the metric for strings whose prefixes match.original_metric(string1, string2)
        The same metric that would be returned from the reference Jaro-Winkler
        C code, taking as it does into account a typo table and adjustments for
        longer strings.
        ...custom_metric(string1, string2, typo_table, typo_scale,
                               boost_threshold, pre_len, pre_scale, longer_prob)
        Calculate the Jaro-Winkler metric with parameters of your own choosing.
        ...
Package: jarpc
jarpcWarning: project is in early development stage, expect bugs and frequent breaking changesjarpc - Just another python RPC library based on redis pubsub. It is built withaioredis.FeaturesClient,ServerandSlientconnection modes.ClientServerSlientCalling commandsyesnoyesReceiving commandsnoyesyesasyncronous response processing (AsyncIterator).encoding customization (marshal (default), json, msgpack, pickle, ...).InstallationLibrary can be installed from PyPi:pip install jarpcOr from repository:pip install git+https://github.com/IOMirea/jarpc.git#egg=jarpcExamplesClientimportasynciofromjarpcimportClientREDIS_HOST="localhost"REDIS_PORT=6379COMMAND_PING=0COMMAND_SLOW_PING=1COMMAND_FIX_BUGS=42asyncdefmain()->None:client=Client("example",default_timeout=5,default_expect_responses=1)asyncio.create_task(client.start((REDIS_HOST,REDIS_PORT)))awaitclient.wait_until_ready()ping_data={"message":input("Enter message to send or leave blank: ")}print("PING      ->",awaitclient.call(COMMAND_PING,ping_data))print("SLOW_PING ->",awaitclient.call(COMMAND_SLOW_PING,timeout=1))print("FIX_BUGS  ->",awaitclient.call(COMMAND_FIX_BUGS))# exitclient.close()if__name__=="__main__":asyncio.run(main())ServerimportosimportasynciofromjarpcimportServer,RequestREDIS_HOST="localhost"REDIS_PORT=6379COMMAND_PING=0COMMAND_SLOW_PING=1server=Server("example",node=f"example-{os.getpid()}")@server.command(COMMAND_PING)asyncdefping(req:Request,message:str="")->str:"""Responds with provided message argument or 'pong'."""print("Received PING command")return"pong"ifmessage==""elsemessage@server.command(COMMAND_SLOW_PING)asyncdefslow_ping(req:Request)->str:"""Responds with 'pong' after 2 seconds, too slow..."""print("Received SLOW_PING command")awaitasyncio.sleep(2)return"pong"if__name__=="__main__":server.run((REDIS_HOST,REDIS_PORT))SlientimportosimportasynciofromjarpcimportSlient,RequestREDIS_HOST="localhost"REDIS_PORT=6379COMMAND_PING=0loop=asyncio.get_event_loop()slient=Slient("example",loop=loop,node=f"example-{os.getpid()}",default_timeout=5,default_expect_responses=1,)@slient.command(COMMAND_PING)asyncdefping(req:Request,message:str="")->str:"""Responds with provided message argument or 'pong'."""print("Received PING command")return"pong"ifmessage==""elsemessageasyncdefcall_ping(slient:Slient)->None:awaitslient.wait_until_ready()print("PING ->",awaitslient.call(COMMAND_PING))if__name__=="__main__":loop.create_task(slient.start((REDIS_HOST,REDIS_PORT)))loop.create_task(call_ping(slient))# continue listening for commandsloop.run_forever()More examples can be found inexamples folder.DependenciesPython >= 3.6aioredisDocumentationDocumentation is available athttps://jarpc.readthedocs.ioSource codeSource code is available on GitHub:https://github.com/IOMirea/jarpcProtocol specificationSoonContributingFeel free to open an issue or submit a pull request.LicenseSource code is available under GPL v3.0 license, you can see ithere.
Package: jarpyvscode
jarpyvscodeDocumentationFind the docs athttps://jar1.gitlab.io/jarpyvscodeSteps to create projectCreate blank Visual Studio Code extensioncd~/repos
yocode# ? What type of extension do you want to create? (Use arrow keys)# ❯ New Extension (TypeScript)# ? What's the name of your extension? ()# ❯ jarpyvscode# ? What's the identifier of your extension? (jarpyvscode)# ❯ jarpyvscode# ? What's the description of your extension? ()# ❯ Jamil Raichouni's personal Visual Studio Code Extension# ? Initialize a git repository? (Y/n) n# ? Bundle the source code with webpack? (y/N) y# ? Which package manager to use? (Use arrow keys)# ❯ npm#   yarncdjarpyvscode
gitinit
touch.gitignorePut the following into the.gitignore:.vscode-test/
dist/
node_modules/
out/

*.vsixVersion controlBefore we continue, we store the fresh extension in an VCS.gitremoteaddorigingit@gitlab.com:jar1/jarpyvscode.git
gitadd.
gitcommit-m"Initial commit"Initialise Python poetry projectpoetryinit# Package name [jarpyvscode]:# ❯ jarpyvscode# Would you like to define your main dependencies interactively? (yes/no) [yes]# ❯ no# Would you like to define your development dependencies interactively? (yes/no) [yes]# ❯ noAdd dependencies:poetryaddclickjson5pandaspsutilloguru
poetryadd--devblackdoc8flake8flake8-builtinsflake8-docstringsflake8-isortflake8-quotesflake8-rst-docstringsisortjupyternotebookpydocstylepytestpytest-covpytest-xdistSphinxsphinx-autobuildsphinx-rtd-themeWE RECOMMEND INCLUDING THE FOLLOWING SECTIONS:FeaturesDescribe specific features of your extension including screenshots of your extension in
action. Image paths are relative to this README file.For example if there is an image subfolder under your extension project workspace:![feature X](images/feature-x.png)Tip: Many popular extensions utilize animations. This is an excellent way to show off
your extension! We recommend short, focused animations that are easy to follow.RequirementsIf you have any requirements or dependencies, add a section describing those and how to
install and configure them.Extension SettingsInclude if your extension adds any VS Code settings through thecontributes.configurationextension point.For example:This extension contributes the following settings:myExtension.enable: enable/disable this extensionmyExtension.thing: set toblahto do somethingKnown IssuesCalling out known issues can help limit users opening duplicate issues against your
extension.Release NotesseeCHANGELOG.mdFollowing extension guidelinesEnsure that you've read through the extensions guidelines and follow the best practices
for creating your extension.Extension Guidelines
Package: jarviceclient
The Jarvice CLI by Nimbix, Inc. This consists of two components:Python API for programmatically accessinghttps://api.jarvice.comor another JARVICE API servicejarviceclient, a command-line tool for calling the APIFor more information and the full API documentation, seehttps://api.jarvice.com.The easiest way to get set up:Create~/.jarvice.cfgwith the following contents:[auth]
username: username
apikey: apikey-from-portalThe JARVICE CLIInstallationThe easiest way to install is directly from PyPIpip install --user jarviceclientIf the installation was successful, you should have an executable calledjarvice_cliin your path after installing thejarviceclientpackage.Interacting with JobsLaunching a jobLaunch a job from the portal and save the JSON tojob.json. To launch it again, do the following:jarvice_cli submit -j job.jsonList a summary of your jobsjarvice_cli summarySee the output/error of a currently running jobjarvice_cli tail -number <jobnumber>See the output of a job that has endedjarvice_cli output -number <jobnumber>Get connection details (address, password)jarvice_cli connect -number <jobnumber>Cleanly shutdown a job (with shutdown signal)jarvice_cli shutdown -number <jobnumber>Force termination of a job (like kill -9)jarvice_cli terminate -number <jobnumber>Get the stats on your jobjarvice_cli info -number <jobnumber>Get the status of your jobjarvice_cli status -number <jobnumber>Perform a configured action on your jobjarvice_cli action -number <jobnumber> -action <action>Get a list of currently running jobsjarvice_cli jobsCleanly shutdown all currently running jobsjarvice_cli shutdown_allForce termination of a job (like kill -9)jarvice_cli terminate_allWait for a job to endjarvice_cli wait_for -number <jobnumber>Data Management for JARVICE Storage VaultThe default is drop.jarvice.com, for the Nimbix public cloudUploadjarvice_cli download -drop <source> -local <destination> [-storage <vault name>]Upload file or directory to drop.jarvice.comjarvice_cli upload -local <source> -drop <destination>Upload file or directory to an alternate vaultjarvice_cli upload -local <source> -drop <destination> -storage altvault.jarvice.comList files on drop.jarvice.comjarvice_cli lsorjarvice_cli ls -d <remote_dir>List files on an alternate vaultjarvice_cli ls -d <remote_dir> -storage altvault.jarvice.comQuerying JARVICE OptionsSee the available apps and a schema describing inputsjarvice_cli appsQuery available machine typesjarvice_cli machinesJarviceAPIJarviceAPI contains a Client and AuthenticatedClient for interacting with a JARVICE API, defaulting tohttps://api.jarvice.com
Package: jarviceclient3
The Jarvice CLI by Nimbix, Inc. This consists of two components:Python API for programmatically accessinghttps://api.jarvice.comjarviceclient, a command-line tool for calling the APIFor more information and the full API documentation, seehttps://api.jarvice.com.The easiest way to get set up:Create~/.jarvice.cfgwith the following contents:[auth]
username: username
apikey: apikey-from-portalThe JARVICE CLIInstallationThe easiest way to install is directly from PyPIpip install --user jarviceclientIf the installation was successful, you should have an executable calledjarvice_cliin your path after installing thejarviceclientpackage.Interacting with JobsLaunching a jobLaunch a job from the portal and save the JSON tojob.json. To launch it again, do the following:jarvice_cli submit -j job.jsonList a summary of your jobsjarvice_cli summarySee the output/error of a currently running jobjarvice_cli tail -number <jobnumber>See the output of a job that has endedjarvice_cli output -number <jobnumber>Get connection details (address, password)jarvice_cli connect -number <jobnumber>Cleanly shutdown a job (with shutdown signal)jarvice_cli shutdown -number <jobnumber>Force termination of a job (like kill -9)jarvice_cli terminate -number <jobnumber>Get the stats on your jobjarvice_cli info -number <jobnumber>Get the status of your jobjarvice_cli status -number <jobnumber>Perform a configured action on your jobjarvice_cli action -number <jobnumber> -action <action>Get a list of currently running jobsjarvice_cli jobsCleanly shutdown all currently running jobsjarvice_cli shutdown_allForce termination of a job (like kill -9)jarvice_cli terminate_allWait for a job to endjarvice_cli wait_for -number <jobnumber>Data Management for JARVICE Storage VaultThe default is drop.jarvice.com, for the Nimbix public cloudUploadjarvice_cli download -drop <source> -local <destination> [-storage <vault name>]Upload file or directory to drop.jarvice.comjarvice_cli upload -local <source> -drop <destination>Upload file or directory to an alternate vaultjarvice_cli upload -local <source> -drop <destination> -storage altvault.jarvice.comList files on drop.jarvice.comjarvice_cli lsorjarvice_cli ls -d <remote_dir>List files on an alternate vaultjarvice_cli ls -d <remote_dir> -storage altvault.jarvice.comQuerying JARVICE OptionsSee the available apps and a schema describing inputsjarvice_cli appsQuery available machine typesjarvice_cli machinesJarviceAPIJarviceAPI contains a Client and AuthenticatedClient for interacting withhttps://api.jarvice.com