Saravanan666/pypi-org huggingface dataset:
Package: ghpr
Github-pr-dataProject to get data from github pull requests and transfrom it to a format that can be used forBookeeping of the commentsAnalysis of the commentsAI analysis of the commentsAI Categorization of the commentsDevelopment setupCreate a virtualenv with python3.6 (suggested location:./virtualEnv)Activate the virtualenvsource ./virtualEnv/bin/activateInstall requirementspip install -r requirements.txtSetup module in editable modepip install --editable .. Meaning no need to install the module every time when you want to change the code.ReferenceGithub API -https://docs.github.com/en/restGithub python SDK -https://pygithub.readthedocs.io/en/latest/Click command line interface -https://click.palletsprojects.com/en/8.0.x/documentation/CLIghprghpris the command line interface for the project.Supported parameters:This CLI supports the following parameters:OptionDescriptionDefault valueSupported ValuesRequired--tokenThe token to use for authentication.Yes--pr-linkThis is the pull request number.PR linkyes--copyCopy output in markdown formattruetrue/falseNo--copy-csvCopy output in csv formatfalsetrue/falseNo
Package: gh-pr-commenter
github-pr-log-commenterSimple script that posts a comment to a Github PR based on a jinja2 template. This template has two simple variables:{{pullRequestAuthor}}: Will be replaced by the author of the pull request{{contents}}: Will be replaced by the contents of a given file (e.g. a log)You need to define theGH_TOKENenvironment variable with at least the repo scope.usage:usage: github-pr-commenter.py [-h] repo prnumber template logfile

positional arguments:
  repo        Organization and repository (e.g. xbmc/repo-plugins)
  prnumber    PR number (e.g. 5)
  template    Jinja 2 template file to generate a comment from
  logfile     Log file to parse (e.g. mylog.log)

optional arguments:
  -h, --help  show this help message and exitExample template## Something was successfull
Hey @{{pullRequestAuthor}},
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.


<details>
  <summary>
    <strong>
     Expand log file
    </strong>
  </summary>

` ` `
{{contents}}
` ` `
Package: gh-pre
gh-preAn experimental tool that helps with Project Release Engineering, focused on
repository clusters (groups of repositories that need to be released in
particular order).ghextensioninstallpycontribs/gh-preConfigurationTo use the tool you need to configure the list of repositories it needs to check on each run:# ~/pre.ymlrepos:-ansible/ansible-compat-ansible/ansible-lint-ansible/ansible-navigator-ansible/ansible-creator-ansible/molecule-ansible/tox-ansible-ansible/pytest-ansible-ansible/ansible-development-environment-ansible/ansible-dev-tools-ansible/creator-eeThis will tell it which repositories to check for draft releases.UsageghpreIt can also be installed and executed as a Python package:pipinstallgh-pre
pre
Package: ghpro
# GHPROA couple of utilities for working with **G**it**H**ub **PRO**jects (IPython/Jupyter-related, mostly).This takes some utilities developed for the maintenance of [IPython](https://github.com/ipython/ipython),and makes them a bit more reusable as a standalone package.This is tailored for development practices in IPython and Jupyter projects,in particular:- all development is done through pull requests- all pull requests and issues are given milestones- backport branches have names like '4.x' and '1.3.x'Tools include:- summary stats about releases- manage and apply backports of pull requestsFor example, in your repo:github-stats --milestone 4.3To get a report about GitHub contributions for milestone 4.3.Orbackport-pr todo --milestone 4.4to see what PRs are marked for 4.4 that still need backporting,orbackport-pr apply 4.x 1234to backport PR #1234 onto branch 4.x## OriginsThese scripts started as part of IPython (specifically `ipython/tools`),and are forked as of ipython/ipython@99d29c2d556b9889b5040874e5e673ae2e5a032a.
Package: gh-pr-update-description
🔃 GitHub PR Update DescriptionPython script to attempt to refresh the github PR description with the top
commit.UsageRequires a github token available from git config, eg:gitconfiggithub.apitoken<yourtoken>❯pipinstallgh-pr-update-description

❯gh-pr-update-description
Abouttoupdatedescriptiononhttps://github.com/foo/bar/pull/128,ready?[Y/n]:
PRsuccessfullyupdated🎉!
Package: ghpusher
gh-pusherA tool to push changes to a gh-pages branch.Install$pipinstallghpusherUsage$ gh-pusher --help
Usage: gh-pusher [OPTIONS]

  Publish documentation changes to a github changes branch.

  Move a directory of built documentation from the build directory to  the
  base on the repository on the target github pages branch. If there are any
  changes to the documention, they will be added in a commit under the same
  author and commit message as the last commit message on the active branch.

Options:
  --target-branch TEXT  Branch to publish documentation.
  --build-dir PATH      Directory containing documentation to publish.
                        [required]

  --git-binary PATH     Path to git binary.
  --repo-base PATH      Path to base of repository.
  --help                Show this message and exit.
Package: gh-py
GH-PYgh-py gh extensions, now made easy in python.gh-py makes it possible to write gh extensions, and interact with the gh cli directly from python.Installationgh-py can be installed in a few different ways.From GH.To use this method, you'll have to have at least gh version 2.0.0 or newer installed.gh extension install JessicaTegner/gh-pyfrom pipgh-py is also available on pip.$ pip install gh-pyFrom GitHubYou can also clone and install gh-py from GitHub, useful if you want to contribute to gh-py development.$git clone https://github.com/JessicaTegner/gh-py.git
$ cd gh-py
$ poetry installUsage:Creating your extensionTo get started, create your extension scaffolding.$ gh py create gh-example
# or if you installed through pip
$ gh-py create gh-example
Installing extension environment.
Extension environment installed.
Creating extension gh-example
Creating scaffolding...
Created extension gh-exampleThen go into your newly created directory, and take a look.extension.py - Here is the entry point to your extension.gh-example (or what ever else you called your extension) - This is the file that is the bridge between ghs extension system and our python world.pyproject.toml - Basic pyproject.toml file, used to describe our project to poetry.Useful tips while developing your extensionWhen using gh-py's scaffolding, you have the full power ofpoetryat your disposal.That means you can add, update, change or remove dependencies as you wish.The way to do it here, is to use the build in poetry command in the scaffolding, like so:# Here's some examples.
# Note the "gh-example" is the executable for your extension.

$ gh-example poetry add requests
$ gh-example poetry remove requestsWhen you update your extension down the line, the scaffolding will take care to update the extension environment, when the end user updates your extension.Note: For this to work, it is important tonotcommit the generatedpoetry.lockfile.Publishing your ExtensionAfter writing your python code, the way to publish your extension, is as with any other.# setup a git repository
$ git init -b main
$ git add .
$ git commit -m "Initial extension code."
# then create the repository on GitHub
$ gh repo createContributingContributions are welcome. When opening a PR, please keep the following guidelines in mind:Before implementing, please open an issue for discussion.Make sure you have tests for the new logic.Add yourself to contributors atREADME.mdunless you are already there. In that case tweak your contributions.ContributorsJessica Tegner- MaintainerLicensePy-GH is available under MIT license. See LICENSE for more details.
Package: ghq
ghqGauss-Hermite quadrature in JAXInstalled easily from PyPI:pip install ghqNumerical IntegrationUnivariate Gaussian integralsGauss-Hermite quadrature is a method for numerically integrating functions of the form:$$
\int_{-\infty}^{\infty} f(x)  \mathbf{N}(x \mid \mu, \sigma^2) dx \approx \sum_{i=1}^\mathsf{degree} w_i f(x_i),
$$where $\lbrace x_i, w_i \rbrace_{i=1}^\mathsf{degree}$ are chosendeterministically.  The integral approximation can be executed easily withghq:ghq.univariate(f,mu,sigma,degree=32)wheref: Callable[[float], Array]is a JAX vectorisable function anddegreeis an optional argument controlling the number of function evalutions, increasingdegreeincreases the accuracy of the integral. (Note that the output offcan be multivariate but the input is univariate).Univariate unbounded integralsMore generally, we can use an importance-sampling-like approach to integrate functions of the form:$$
\int_{-\infty}^{\infty} f(x) dx = \int_{-\infty}^{\infty} \frac{f(x)}{\mathbf{N}(x \mid \mu, \sigma^2)}  \mathbf{N}(x \mid \mu, \sigma^2)  dx \approx \sum_{i=1}^\mathsf{degree} w_i \frac{f(x_i)}{\mathbf{N}(x_i \mid \mu, \sigma^2)},
$$and withghq:ghq.univariate_importance(f,mu,sigma,degree=32)Univariate half-bounded integralsConsider lower-bounded integrals of the form:$$
\int_{a}^{\infty} f(x) dx =\int_{-\infty}^{\infty} f(a + e^y) e^y  dy \approx \sum_{i=1}^\mathsf{degree} w_i \frac{f(a + e^{y_i}) e^{y_i}}{\mathbf{N}(y_i \mid \mu, \sigma^2)},
$$where we use the transformation $y = \log(x - a)$ to map the lower-bounded integral to an unbounded integral. This can be approximated withghq:ghq.univariate_importance(f,mu,sigma,degree=32,lower=a)or for upper-bounded integrals over $[-\infty, b)$ using transformation $y = \log(b - x)$:ghq.univariate_importance(f,mu,sigma,degree=32,upper=b)Univariate bounded integralsFor doubly-bounded integrals in $[a, b)$ we have$$
\int_{a}^{b} f(x) dx = \int_{-\infty}^{\infty} f\left(a + (b-a)\text{logit}^{-1}(y)\right)  (b-a)  \text{logit}^{-1}(y)  \left(1-\text{logit}^{-1}(y)\right)  dy,
$$where we use the transfomation $y=\text{logit}(\frac{x-a}{b-a})$ with $\text{logit}(u)=\log\frac{u}{1-u}$ and $\text{logit}^{-1}(v) = \frac{1}{1+e^{-v}}$.Inghqwe have:ghq.univariate_importance(f,mu,sigma,degree=32,lower=a,upper=b).TheStan reference manualprovides an excellent reference for transformations of variables.Multivariate Gaussian integrals$$
\int f(x)  \mathbf{N}(x \mid \mu, \Sigma) dx,
$$inghqis:ghq.multivariate(f,mu,Sigma,degree=32)wheref: Callable[[Array], Array]is a function that takes a multivariate input.
Beware though that multivariate Gauss-Hermite quadrature has complexity
$O(\text{degree}^d)$ where $d$ is the dimension of the integral, so it is not feasible
for high-dimensional integrals.Multivariate unbounded integralsComing soon...CitationIf you useghqin your research, please cite it using the following BibTeX entry:@software{ghq,author={Duffield, Samuel},title={ghq: Gauss-Hermite quadrature in JAX},year={2024},url={https://github.com/SamDuffield/ghq}}
Package: gh-reader
Extractorsnameargumentsnotesincrementalcommitsowner, namesupportedissuesowner, namesupportedissues_prowner, namesame schema as issuessupportedlabelsowner, namepull_requestsidssupportedrepositoryowner, namestargazersowner, nameusersidsissue_commentsidsAlso included in issue_events recordssupported^†issue_eventsidssupported^†issue_labelsidssupported†: Updates to these records do not affect the updatedAt field of their parent
issue. Because issue updates are used to pull event updates, edits to records
like IssueComment events may not get picked up in incremental updates.
Package: ghrelease
Author:Stefan EletzhoferAbstractThis is a little tool to help me with releasing stuff to GitHub.Synopsisghrelease - a GitHub release helper

Usage:
    ghrelease --version
    ghrelease [options] list <reponame>
    ghrelease [options] create --tag=TAG [--name=RELEASE_NAME] [--body=FILE] [--draft | --prerelease] <reponame> [<file>...]
    ghrelease [options] upload --tag=TAG <reponame> <file>...
    ghrelease [options] open (--tag=TAG | --latest) <reponame>

The `list` command lists available releases.

The `create` command creates new releases, optionally uploading some assets.

The `upload` command uploads assets to a existing release.  It's not possible to
replace assets -- the command will complain if you're trying to upload an existing
asset.

The `open` command opens the release's web page in the system default browser.

Options:
    -h --help           show this help
    -u --user=USER      github login name
    -p --password=PASS  github password
    --password-env=ENV  read password from system environment [default: GHRELEASE_PASS]
    --user-env=ENV      read user name from system environment [default: GHRELEASE_USER]
    --owner=OWNER       github owner [defaults to the user name]
    --debug             debug logging
    -v, --verbose       print more textExamplesListing all releases of a given repository:$ ghrelease --user fred --pass s3kr17 list some-repo
RELEASE    release-name (v0.3) @ https://github.com/fred/some-repo/releases/tag/v0.3
PRERELEASE release-name (v0.2) @ https://github.com/fred/some-repo/releases/tag/v0.2
PRERELEASE release-name (v0.1) @ https://github.com/fred/some-repo/releases/tag/v0.1Passing credentials via command line is insecure and ugly:$ export GHRELEASE_USER=fred
$ export GHRELEASE_PASS=s3kr71
$ ghrelease list some-repo
RELEASE    release-name (v0.3) @ https://github.com/fred/some-repo/releases/tag/v0.3
PRERELEASE release-name (v0.2) @ https://github.com/fred/some-repo/releases/tag/v0.2
PRERELEASE release-name (v0.1) @ https://github.com/fred/some-repo/releases/tag/v0.1Creating a new release for tagv0.4namedsuper-duper, using the local
filedocs/changelog.rstas release notes, uploading some zip file:$ ghrelease create some-repo v0.4 --name super-duper --body docs/changelog.rst super-duper-0-4.zip
Release created:
RELEASE    super-duper (v0.4) @ https://github.com/fred/some-repo/releases/tag/v0.4
uploading super-duper-0-4.zip (application/octet-stream) ...Open the web page of that release:$ ghrelease open --tag v0.4 some-repoUploading assets to an existing release:$ ghrelease upload some-repo --tag v0.4 super-duper-0-4-docs.zip LICENSE
uploading file super-duper-0-4-docs.zip (application/octet-stream) ...
uploading file LICENSE (application/octet-stream) ...
Package: gh-release-install
Github release installergh-release-installis a CLI helper to install Github releases on your system.
It can be used for pretty much anything, to install a formatter in your CI, deploy
some binary using an orcherstration tool, or on your desktop.This project was mainly created to...# ...turn this mess:wget--quiet--output-document=-"https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz"\|tar--extract--xz--directory=/usr/local/bin--strip-components=1--wildcards'shellcheck*/shellcheck'\&&chmod+x/usr/local/bin/shellcheck

wget--quiet--output-document=/usr/local/bin/shfmt"https://github.com/mvdan/sh/releases/download/v3.2.1/shfmt_v3.2.1_linux_amd64"\&&chmod+x/usr/local/bin/shfmt# Into this:pip3installgh-release-install

gh-release-install\"koalaman/shellcheck"\"shellcheck-{tag}.linux.x86_64.tar.xz"--extract"shellcheck-{tag}/shellcheck"\"/usr/bin/shellcheck"gh-release-install\"mvdan/sh"\"shfmt_{tag}_linux_amd64"\"/usr/bin/shfmt"Features:Download releases from Github.Extract zip or tarball on the fly.Pin to a desired version or get thelatestversion.Keep track of the local tools version using a version file.InstallationInstall the package from pip:pipinstallgh-release-install
gh-release-install--helpOr with with pipx:pipxinstallgh-release-install
gh-release-install--helpUsageusage:gh-release-install[-h][--extract<filename>][--version<version>][--version-file<filename>][--checksum<hash>:<digest|asset>][-v][-q]REPOSITORYASSETDESTINATION

InstallGitHubreleasefileonyoursystem.

positionalarguments:REPOSITORYGithubREPOSITORYorg/repotogetthereleasefrom.ASSETReleaseASSETfilename.Maycontainvariablessuchas'{version}'or'{tag}'.DESTINATIONPathtosavethedownloadedfile.IfDESTINATIONisadirectory,theassetnamewillbeusedasfilenameinthatdirectory.Maycontainvariablessuchas'{version}'or'{tag}'.

optionalarguments:-h,--helpshowthishelpmessageandexit--extract<filename>Extractthe<filename>fromthereleaseassetarchiveandinstalltheextractedfileinstead.Maycontainvariablessuchas'{version}'or'{tag}'.(default:None)--version<version>Desiredreleaseversiontoinstall.Whenusing'latest'theinstallerwillguessthelatestversionfromtheGithubAPI.(default:latest)--version-file<filename>Tracktheversioninstalledonthesystemusingafile.Maycontainvariablessuchas'{destination}'.(default:None)--checksum<hash>:<digest|asset>AssetchecksumusedtoverifythedownloadedASSET.<hash>canbeoneofmd5,sha1,sha224,sha256,sha384,sha512.<digest|asset>caneitherbetheexpectedchecksum,orthefilenameofanchecksumfileinthereleaseassets.(default:None)-v,--verboseIncreasetheverbosity.(default:0)-q,--quietDisablelogging.(default:None)templatevariables:{tag}Releasetagname.{version}Releasetagnamewithoutleading'v'.{destination}DESTINATIONpath,includingtheassetfilenameifpathisadirectory.

examples:gh-release-install'mvdan/sh'\'shfmt_{tag}_linux_amd64'\'/usr/local/bin/shfmt'\--version'v3.3.1'gh-release-install'prometheus/prometheus'\'prometheus-{version}.linux-amd64.tar.gz'\--extract'prometheus-{version}.linux-amd64/prometheus'\'/usr/local/bin/prometheus'\--version-file'{destination}.version'\--checksum'sha256:sha256sums.txt'
Package: ghreport
ghreport - Generate useful reports from GitHub repository issuesThis utility generates reports that can be useful to identify issues in
your repository that may be stale, or that may need a response.It can also generate a chart of open bug counts over time.See CONTRIBUTING.md for build instructions, or install from PyPI with:python -m pip install ghreportUseghreport -hfor help.For an example report, seehttps://github.com/gramster/ghreport/blob/main/example.mdor you can see these in an automated form for my teams athttps://github.com/gramster/python-reportsDevelopmentThis project usesflit. First installflit:python -m pip install flitThen to build:flit buildTo install locally:flit installTo publish to PyPI:flit publishVersion History0.1 Initial release0.2 More control flags0.3 Add -o option0.4 Apply strftime to output file name0.5 Added markdown support0.6 Remove hardcoded owner from query0.8 Better team option0.9 Add proper markdown line rule0.11 Fix 3rd party report; exclude issues created by team from other reports0.12 Fix typo0.14 Only fetch open issues0.15 Fix non-async sleep.0.16 Added ability to get LLM training data.
Package: ghscard
ghscardSummaryDemoQuick StartCLI Tool InstallationGenerate card data filesAdd widget to an HTML fileFor more informationDependenciesTested environmentDocumentationSummaryghscardis a JavaScript widget to generate interactive GitHub user/repository/organization cards for static web pages (like GitHub pages/Read the Docs).DemoPopular Repositories on GitHubhttps://thombashi.github.io/Quick StartCLI Tool InstallationInstallghscardCLI tool fromPyPIviapip(Python package manager) command.pip install ghscardGenerate card data filesExecuteghscard gencommand to generate a GitHub user/organization/repository card data file.$ ghscard gen thombashi -o data
[INFO] ghscard gen: written user data to 'data/thombashi.json'$ ghscard gen Microsoft/TypeScript -o data
[INFO] ghscard gen: written repository data to 'data/Microsoft_TypeScript.json'Add widget to an HTML fileExample:<!doctype html><html><body><tableborder="0"><tr><td><divclass='ghscard'src='data/thombashi.json'></div></td><td><divclass="ghscard"src="data/Microsoft_TypeScript.json"></div></td></tr></table><scriptsrc='//cdn.jsdelivr.net/gh/thombashi/ghscard@master/dist/ghscard.min.js'></script></body></html>The above HTML rendered as follows:Output:CDNVersion specifichttps://cdn.jsdelivr.net/npm/ghscard@<version>/dist/ghscard.min.jse.g.https://cdn.jsdelivr.net/npm/ghscard@0.4.1/dist/ghscard.min.jsLatest versionhttps://cdn.jsdelivr.net/gh/thombashi/ghscard@master/dist/ghscard.min.jsFor more informationMore examples are available athttps://ghscard.rtfd.io/en/latest/pages/usage/index.htmlDependenciesCLI Tool DependenciesPython 3.5+appconfigpyclickDateTimeRangelogbookmsgfypathvalidatePyGithubrequestsretryrequeststypepyTested environmentTested Web BrowsersWeb browserVersionGoogle Chrome57.0or newerMozilla Firefox52.0or newerDocumentationhttps://ghscard.rtfd.io/
Package: ghsdk
Github v3 API Python SDKThis software is a 100% pure Python interface to Github v3 API which provides OAuth2.0 authentication and API calling wrapper.You can find docs and source code at:http://michaelliao.github.io/githubpy/Developed and mantained by Michael Liao. Please feel free to report bugs and your suggestions at:https://github.com/michaelliao/githubpy/
Package: ghsearcher
GitHub Searcherghsearcher is a utility for searching GitHub from the command line.UsageInstall with pippip install ghsearcher(Optional) you can either export an environment variable named "GH_TOKEN" or include it in a local .env file to ensure you can make the most requests. See"Creating a personal access token"for more information on how to do so.usage: ghsearcher [-h] [-v] [--debug]
                  [-e {users,code,issues,commits,labels,repos,topics}] [-o OUTPUT_FILE]
                  -q QUERY [QUERY ...]

Search for things in GitHub

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --debug               Set this if you would like to see verbose logging.
  -e {users,code,issues,commits,labels,repos,topics}, --endpoint {users,code,issues,commits,labels,repos,topics}
                        Endpoint you would like to search
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        File name for where you want the JSON output to go. eg:
                        output/test will output a file in the output dir with the file
                        name test-2022-01-01.json
  -q QUERY [QUERY ...], --query QUERY [QUERY ...]
                        Query you would like to use to searchTo learn about building queries you can check the following documentaiton for GitHubs search queries:https://docs.github.com/en/rest/reference/search#constructing-a-search-queryHere is a simple example. The Kafka project is trying to better track if users are having issues with implementing their kafka into thier project so the create a data pipeline with the following to find issues in other repos featuring Kafka.This example finds all issues including "Kafka" created on or after 2022-01-18 and outputting it to kafka_output_file-(todays date).json# The source is a repo and it is running against the gh_dorks_test.txt file
ghsearcher -e issues -q "Kafka created:>2022-01-18" -o kafka_output_file
Package: ghs-gendaqapi-py
GEN DAQ API - Python DriverSetup, control and acquire data from the Genesis Highspeed systems via python.The GEN DAQ API can be used to control the HBM GEN Series tethered mainframes.RequirementsPython 3.10+InstallationUse the package managerpipto installGEN DAQ API - Python Driverpackage.pipinstallghs-gendaqapi-pyUsageReferexamplesfor detailed use cases.
Referdocumentationfor detailed API documentationfromghsapiimportghsapi# create Gen Daq API's objectgen=ghsapi.GHS()# connect to mainframegen.ghs_connect(IP_ADDRESS,PORT_NO)# disconnect from mainframegen.ghs_disconnect()Development environment setupBelow are the steps to follow to setup devlopement enviroment for system integration and testing.RequirementsPython 3.10+Anaconda/MinicondaClone repogitclonehttps://github.com/hbk-world/ghs-gendaqapi-python.gitVirtual Environmentcondacreate--name<env>--filespec-file.txtInstall dependenciespipinstall-rrequirements.txtRun example filesEdit files inexamplesto enter mainframe IP and Port numberpythonexamples\FILENAMETestingEdit files infunctionaltestto enter mainframe IP and Port numberUnit testpythonunittest\FILENAMEFunctional testpythonfunctionaltest\FILENAME