Saravanan666/pypi-org huggingface dataset:
Package: hmako
Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Mako’s
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
Python (i.e. Python Server Page) language, which refines the familiar ideas
of componentized layout and inheritance to produce one of the most
straightforward and flexible models available, while also maintaining close
ties to Python calling and scoping semantics.Nutshell<%inherit file="base.html"/>
<%
    rows = [[v for v in range(0,10)] for row in range(0,10)]
%>
<table>
    % for row in rows:
        ${makerow(row)}
    % endfor
</table>

<%def name="makerow(row)">
    <tr>
    % for name in row:
        <td>${name}</td>\
    % endfor
    </tr>
</%def>PhilosophyPython is a great scripting language. Don’t reinvent the wheel…your templates can handle it !DocumentationSee documentation for Mako athttp://www.makotemplates.org/docs/LicenseMako is licensed under an MIT-style license (see LICENSE).
Other incorporated projects may be licensed under different licenses.
All licenses allow for non-commercial and commercial use.
Package: hmclab
HMC LabAndrea Zunino, Lars Gebraad, Andreas FichtnerHMC Labis a numerical laboratory for research in Bayesian seismology, written in Python and Julia. Jump toDocker one-command setup.Website:https://hmclab.sciencePython documentation:https://python.hmclab.scienceSource code:https://github.com/larsgeb/hmclabDocker image:https://hub.docker.com/repository/docker/larsgebraad/hmclabBug reports:https://github.com/larsgeb/hmclab/issuesIt provides all the ingredients to set up probabilistic (and deterministic) inverse
problems, appraise them, and analyse them. This includes a plethora of prior
distributions, different physical modelling modules and various MCMC (and
other) algorithms.In particular it provides prior distributions, physics and appraisal algorithms.Prior distributions:NormalLaplaceUniformArbitrary composites of other priorsBayes ruleUser supplied distributionsPhysics:Linear equationsStraight ray tomography3d source location2d elastic full-waveform inversionUser supplied physicsAlgorithms:Hamiltonian Monte Carlo (and variations)Random Walk Metropolis HastingsStein Variational Gradient DescentGradient descentInterfaces to non-linear optimization methods from SciPyAnimated versions of various algorithmsDocker one-command setupTo get staerting with the tutorial and example notebooks, one can use a single command
in Docker. This will pull a Docker image based on the Jupyter Datascience stack. The
final container is approximately 5GB.dockerrun-p9123:9123larsgebraad/hmclab\start-notebook.sh--NotebookApp.token='hmclab'\--NotebookApp.port='9123'--LabApp.default_url='/lab/tree/Home.ipynb'Then either copy-past the link from your terminal, or navigate manually tohttp://127.0.0.1:9123/lab/tree/Home.ipynb?token=hmclab.Online tutorial notebooksAll tutorial notebooks can also be accessed online in a non-interactive fashion. Simply
usehttps://python.hmclab.scienceor use the following links:Tutorials:Getting started.ipynbTuning Hamiltonian Monte Carlo.ipynbSeparate priors per dimension.ipynbCreating your own inverse problem.ipynbRunning parallel Markov chains.ipynbDemos:Sampling linear equationsSampling sparse linear equationsLocating quakes on Grimsvötn, IcelandElastic 2d FWIThe long way around: installing the package on your systemFor full installation instructions, including creating a proper Python environment,see the installation instructions.Start with making sure that you have HDF5 or h5py installed properly.Directly to your environment:pip install -e git+git@github.com:larsgeb/hmclab.git@master#egg=hmclabFrom the project root directory:pip install -e .Development dependenciesIf you want to develop within this repo, we recommend a few extra packages. They can also be installed using pip.In Bash:pip install -e git+git@github.com:larsgeb/hmclab.git@master#egg=hmclab[dev] # from github repo
pip install -e .[dev] # from local clone... or Zsh (which requires escapes for brackets):pip install -e git+git@github.com:larsgeb/hmclab.git@master#egg=hmclab\[dev\] # from github repo
pip install -e .\[dev\] # from local clone
Package: hmc_loss
HMC-lossAbstructPython-implemented hierarchical multi-class validation metrics: HMC-loss
. Original paper is(Bi&Kwok,
2012).Installpip install hmc_lossRequirementnumpyNetwork XHow to useThis metrics is implemented like scikit-learn metrics.from hmc_loss import hmc_loss_score, get_cost_list
import numpy as np

# Generate label data(2-D array of numpy)
true_label = np.random.randint(2, size(100, 100))
pred_label = np.random.randint(2, size(100, 100))

# Generate test graph(Di-Graph of NetworkX)
graph = nx.gnc_graph(100)
# Generate element list of graph node
label_list = list(range(100))
# Calculate cost of each node in graph
cost_list = get_cost_list(graph, 0, label_list)
# Calculate HMC-loss
hmc_loss_score(true_label, pred_label, graph, 0, label_list, cost_list, alpha=0.5, beta=1.5)LicenceMITAuthorTaske HAMANO
Package: hmc.theme
Introduction============The Plone_ Diazo_ based theme for Cleveland State University's Human Motion andControl Lab, hmc.csuohio.edu_... image:: img/front-page.png.. _Plone: http://www.plone.org.. _Diazo: http://www.diazo.org.. _hmc.csuohio.edu: http://hmc.csuohio.eduInstallation============Stop Plone::bin/plonectl stopAdd the product to your buildout.cfg::eggs =...hmc.themeRerun buildout::bin/buildoutStart Plone::bin/plonectl startLog into your Plone website. In **Site Setup > Add-ons** activate Diazosupport, the ``hmc.theme``, and ``plonetheme.diazo_suburst``.plonetheme.diazo_sunburst_ is an external dependency... image:: img/add-ons.pngIn **Theming > Advanced** choose the ``plonetheme.diazo_sunburst`` theme baseas the base. Note that this will remove formatting from the site setup paneland things get jumbled up, which is a known issue... image:: img/theme-base.pngFinally, in **Theming > Themes** enable the HMC theme... image:: img/activate-theme.png.. _plonetheme.diazo_sunburst: https://pypi.python.org/pypi/plonetheme.diazo_sunburst/0.0.8Other=====This product may contain traces of nuts.Changelog=========0.1.1 (January 9, 2014)----------------------- Fixed minor error in setup.py.0.1.0 (January 9, 2014)----------------------- Initial release
Package: hmdata
Human-Data-UtilsInstallTo install hmdata:$pipinstallhmdataList of DataTotalCaptureTotalCaptureThe TotalCapture dataset is designed for 3D pose estimation from markerless multi-camera capture, It is the first dataset to have fully synchronised muli-view video, IMU and Vicon labelling for a large number of frames (∼1.9M), for many subjects, activities and viewpoints.Please check the information on this page:TotalCapture DatasetData PreparationTo request access to the TotalCapture Dataset, or for other queries please contact:a.gilbert@surrey.ac.uk.Download the TotalCapture Dataset and prepare in the following format:datafolder/
    |-> S1/
        |-> gyro_mag/
            |-> acting1_Xsens_AuxFields.sensors
            |-> acting2_Xsens_AuxFields.sensors
            |-> ...
        |-> imu/
            |-> s2_acting1_calib_imu_bone.txt
            |-> s2_acting1_calib_imu_ref.txt
            |-> s2_acting1_Xsens.sensors
            |-> ...
        |-> video/
            |-> acting1/
                |-> TC_S2_acting1_cam1.mp4
                |-> ...
                |-> TC_S2_acting1_cam8.mp4
            |-> acting2/
            |-> .../
            |-> walking3/
        |-> vicon/
            |-> acting1/
                |-> gt_skel_gbl_pos.txt
                |-> gt_skel_gbl_ori.txt
            |-> ...
    |->.../
    |->S5/Data PreprocessConvert all videos to images:$cdexample
$bashvideo2images.shdata_dirnum_of_processes
Package: hmda_tools
Tools to make analyzing HMDA data much easier.HMDA“HMDA” refers to theHome Mortgage Disclosure Act, a law that requires
financial institutions to maintain and annually disclose data about home
purchases, home purchase pre-approvals, home improvement, and refinance applications. This data is made public and is available from the US Government at theFFIEC HMDA Productssite.DocumentationDocumentation can be found athttps://hmda-tools.readthedocs.org/.ContributorsClinton DreisbachRoss KarchnerDiego Lapiduz
Package: hmd-cli-build
Generic build tool for NeuronSphere compliant projects.Declaring Build StepsA NeuronSphere Project declares which HMD CLI commands are required to build it in the./meta-data/manifest.jsonfile.
The packagehmd-cli-buildinstalls a general build command,hmd buildthat handles calling each required command in order.
Thehmd buildcommand reads the./meta-data/manifest.json, and attempts to run the HMD tools
listed in thebuild.commandssection.
The tools listed must be installed separately (most are included in theneuronspherepackage).Example:{"name":"example-project","build":{"commands":[["mickey"],["python"]]}}In the above example,hmd buildwill first runhmd mickey buildand thenhmd python build.
If a build command errors or fails, the entire build will exit and fail.
All subsequent commands listed will not be called.
Build commands are run sequentially in the order listed.
It is not possible to run commands in parallel.Strict ModeBy default,hmd buildruns withHMD_BUILD_STRICT_MODE=true, or instrict mode.
While instrict mode, the build will error and fail if one of the listed build commands is not installed.
This behavior is desirable on a CI or build server, but not for local development.
You can turn offstrict modeby settingHMD_BUILD_STRICT_MODE=false.
This will be set for you when you runhmd configureafter installing theneuronspherepackage.Whenstrict modeis disabled,hmd buildwill only warn about a missing command and continue on to the next command.
Package: hmd-cli-configure
HMD CLI ConfigureThis package is a command line utility for configuring your local environment to use other HMD CLI tools.
All configuration for HMD CLI tools is done via a dotenv file located at$HMD_HOME/.config/hmd.env.
The path$HMD_HOMEmust be set by you to a directory that will be used with HMD tools only, and be present in your session.
It is a good idea to set this in a.bash_profileor similar file.UsageIn order to set an environment variable in thehmd.envfile, you would use theset-envcommand and providekeyandvaluearguments.hmd configure set-env <key> <value>This will update or append the following line inhmd.env:key='value'.Common VariablesThere are some common variables that you might what to set upon first installation.HMD_GH_USERNAME: the GitHub username to use when connecting; primarily used byhmd-cli-mickeyto fetch remote templatesHMD_GH_PASSWORD: either a GitHub PAT or absolute path to file containing only the PAT. The entire file contents will be read and used.
Package: hmd-cli-neuronsphere
A CLI tool for controlling the Local NeuronSphere.Additional RequirementsDocker ComposeDockerConfigurationRequired Environment Variables:HMD_HOME: folder to store data and configuration for Local NeuronSphereHMD_REPO_HOME: folder containing NeuronSphere compliant projects, it is mounted into some servicesCommandshmd neuronsphere up: starts all enabled services in the Local NeuronSpherehmd neuronsphere down: stops all enabled services in the Local NeuronSpherehmd neuronsphere run: run within a NeuronSphere Microservice project to run it locally for testinghmd neuronsphere update-images: pull down updated images to runIncluded ServicesAll services are enabled by default.Gateway Proxy Server: used to forward calls to running NeuronSphere MicroservicesPostgres Database: relational storage backend for running NeuronSphere MicroservicesDynamoDB: NoSQL storage backend for running NeuronSphere MicroservicesJupyter Lab Server: used to run Jupyter Notebooks, mounts HMD_REPO_HOME for project access, located athttp://localhost:8888/NeuronSphere Transform Service: a local instance of the NeuronSphere Transform service to test NeuronSphere Transforms locallyTrino: a Trino database instance to use with local Transformshttp://localhost:8081Airflow: an Airflow instance used by the Transform Service, located athttp://localhost:175/Explorer Portal: an instance of the NeuronSphere Explorer portal for local dashboard development, located athttp://localhost:8088/Minio Object Storage:http://localhost:9001SQS Queues:http://localhost:9235The following environment variables disable certain services by setting them to‘false’.
For example,hmd configure set-env HMD_LOCAL_NEURONSPHERE_ENABLE_TRINO falsewill disable Trino.HMD_LOCAL_NEURONSPHERE_ENABLE_TRINO: disables Trino servicesHMD_LOCAL_NEURONSPHERE_ENABLE_AIRFLOW: disables AirflowHMD_LOCAL_NEURONSPHERE_ENABLE_TRANSFORM: disables Transform ServiceHMD_LOCAL_NEURONSPHERE_ENABLE_DYNAMODB: disables DynamoDbHMD_LOCAL_NEURONSPHERE_ENABLE_APACHE_SUPERSET: disables Explorer portalDisabled services are not started and removed the next time you runhmd neuronsphere up.
Package: hmd-cli-repo
A CLI application for creating NeuronSphere-compliant project repositories from templates.  This tool is also
the base for multi-repository operations.Additional RequirementsGit## Basic Usagehmd repo createwill provide prompts to choose which Project Type Category and then Project Type you want to create.
After having selected a Project Type, you will be prompted for any additional information need to create the project, i.e. a name for the project.After all prompts have been answered, it will render a series of templates into a folder with the Project Name.
This will be a standard Git repository and all generated files will be committed for you.  Depending on configuration,
this may create a remote repository and push the initial code as well.Commandshmd repo create: create a NeuronSphere-compliant repository based on chosen Project Typehmd repo add: overlay a new Project Type onto an existing repository in a new branchhmd repo configure: configures hmd-cli-repo specific environment variables in$HMD_HOME/.config/hmd.envhmd repo pull-all: pull all changes and new repositories from a GitHub organization locally into$HMD_REPO_HOMEhmd repo create-remote: create a remote repository for an existing local repo, will setoriginremote in Git to new remote.TODO: more descriptions and examples of these commandsEnvironment VariablesThis command must be run with a valid HMD_HOME set and configured.Optional VariablesHMD_REPO_ORG_NAME: a common org code prefix to prepend to all create repo names.HMD_REPO_REMOTE_GITHUB_ENABLED: if set to “true”, a remote repository will be created in GitHub upon runninghmd repo createHMD_GH_USERNAME: the GitHub username to useHMD_GH_PASSWORD: the GitHub PAT to useHMD_GH_ORG_NAME: the GitHub Organization to create the repository in
Package: hmeasure
READMEDescriptionA Python translation of the R packagehmeasure(GitHub) (CRAN).InstallationTo install the hmeasure library use pip:pip install hmeasureor install directly from source:python setup.py installUsage>>> import numpy
>>> from hmeasure import h_score
>>> rng = numpy.random.default_rng(66)
>>> y_true = rng.integers(low=0, high=2, size=10)
>>> y_true
array([1, 1, 0, 1, 1, 0, 1, 1, 1, 0])
>>> # y_pred random sampled in interval [0, 1)
>>> y_pred = (1 - 0) * rng.random(10) + 0
>>> y_pred
array([0.84901876, 0.10282827, 0.43752488, 0.46004468, 0.90878931,
...    0.79177719, 0.5297229 , 0.13803906, 0.73166264, 0.22959056])
>>> h_score(y_true, y_pred)
0.18889596344769588
>>> n1, n0 = y_true.sum(), y_true.shape[0]-y_true.sum()
>>> h_score(y_true, y_pred, severity_ratio=(n1/n0))
0.18889596344769588
>>> h_score(y_true, y_pred, severity_ratio=0.7)
0.13502616807120948
>>> h_score(y_true, y_pred, severity_ratio=-0.7)
0.18310946512079307
>>> h_score(y_true, y_pred, severity_ratio=0.1)
0.001212529211507385
>>> h_score(y_true, y_pred, severity_ratio=0.5)
0.10750123502531805Questions and commentsIn case of questions or comments, write an email:ldanov@users.noreply.github.com
Package: hmeta
HTML meta element: description, keywords, author, copyright, robots, refresh,
content-type, expires, publisher and all.# Pyhmeta 0.2 news:
W3 validator Passed (This document was successfully checked as XHTML 1.0 Strict!)
expires, publisher and all meta elements add.
new color style.Install:sudo python setup.py installUse- Kullanım:>>> import hmeta
>>> hmeta.des("HTML meta elements builder")
<head>
<meta name="description" content="HTML meta elements builder" />
</head>
>>> hmeta.aut("Samet Aras")
<head>
<meta name="author" content="Samet Aras" />
</head>
>>> hmeta.publ("Samet Aras")
<head>
<meta name="publisher" content="Samet Aras" />
</head>
>>> hmeta.refresh(15,"http://www.python.org")
<head>
<meta http-equiv="refresh" content="15; url=http://www.python.org" />
</head>
>>> hmeta.all()
<head>
<meta name="description" content="HTML Meta Element" />
<meta name="keywords" content="html,meta,element" />
<meta name="author" content="Samet Aras" />
<meta name="copyright" content="&copy; 2009" />
<meta name="robots" content="ALL" />
<meta http-equiv="refresh" content="10; url=http://www.python.org" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="expires" content="Tue, 13 Oct 2009 07:55:47" />
<meta name="publisher" content="Samet Aras" />
</head>
Would you like HTML file [Y/N] ?y
Congratulations, created your HTML file.
PATH:  /home/samet/Masaüstü/pyhmeta/hmeta.html
Would you like hmeta.html with working your default web browser ? [Y/N]y
hmeta.html working...   OK.
Package: hmg
Hangman Multiplayer GameGetting started »·Report Bug·Request FeatureA simple hangman game built with Python 🐍HMGis my first project I do in Python using sockets, so if you find some error I would appreciate if you let me know through issues tracker.DemoInstallation$ pip install hmgThis installs two execuables. Thehmg-serverand thehmg-client. You can check the cli help for more options:$ hmg-server --help
usage: hmg-server [-h] [-H HOST] [-p PORT] [-w WORD]

options:
  -h, --help            show this help message and exit
  -H HOST, --host HOST
  -p PORT, --port PORT
  -w WORD, --word WORD  Word to use instead of internet (usefull for testing)

$ hmg-client --help
usage: hmg-client [-h] [-H HOST] [-p PORT] [-c BOARD_CHAR]

options:
  -h, --help            show this help message and exit
  -H HOST, --host HOST
  -p PORT, --port PORT
  -c BOARD_CHAR, --board-char BOARD_CHAR
                        Char used for fill boardRunningFirst run server. Also you can run server on another host, for example in my Raspberry Pi:$ hmg-server --host 0.0.0.0Now start the players in different terminals or computers:For server executed without--hostargument, just:$ hmg-clientFor server executed with--hostargument:$ hmg-client --host 192.168.1.15The192.168.1.15is the RPi IP.Enjoy 🎮 🎉 !DevelopersRunpip install -e ".[dev]"to install all dependencies used by the development environment.Check themakecommand for useful tasks such as tests and lint.$ make
flake8           Execute flake8
tests            Execute unit tests
format           Execute black formater
format-check     Execute black formater without modify filesContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.Acknowledgmentsrich: an awesome Python library for text and formatting in the terminal ❤️.API Palabras Aleatorias: for the words used in game 🙂.
Package: hm-hardware-defs
Helium Hardware DefinitionsThis repository contains the python file that contains a GPIO map for all of the different hardware combinations to be supported by the Nebra Helium Hotspot Software.All numbers below are their GPIO / BCM Numbers, not physical pin numbers.Note: Light hotspot software will also work on all models listed as type "full".Nebra HotspotsModelENV IdentifierSPI BusReset PinStatus LEDButtonTypeCellularNotesNebra Indoor Hotspot Gen 1NEBHNT-IN11.2382526FullFalseCM3 basedNebra Outdoor Hotspot Gen 1NEBHNT-OUT11.2382524FullTrueCM3 basedNebra Pi 0 Light Hotspot SNEBHNT-LGT-ZS1.2222423LightFalseSPI Based EthernetNebra Pi 0 Light Hotspot XNEBHNT-LGT-ZX1.2222423LightFalseUSB Based EthernetNebra Beaglebone Light HotspotNEBHNT-BBB1.0603130LightFalseIn PlanningNebra Pocket Beagle Light HotspotNEBHNT-PBB1.0603130LightFalseIn PlanningNebra Hotspot HAT RockPi4NEBHNT-HHRK41.0149156154FullFalseIn PlanningNebra Hotspot HAT RPiNEBHNT-HHRPI0.0222423FullFalseShould be compatible with 3+ & 4Nebra Hotspot HAT RPi LIGHTNEBHNT-HHRPL0.0222423LightFalseLight is compatible with all 40 pin headersNebra Hotspot HAT Tinkerboard 2NEBHNT-HHTK2.0167163162FullFalseLight would be compatible on TK1Third Party HotspotsWe may be adding in support for other vendor's hotspots to use our software soon. Here are the variables for those.These would also depend on their SOCs being supported by Balena.ModelSOC/SBCENV IdentifierSPI BusReset PinStatus LEDButtonTypeCellularNotesRak Hotspot MinerBCM2711 (Pi4 2gb RAM)COMP-RAKHMFullFalseOnly Compatible with V2 hotspots with ECC Key.OG Helium HotspotBCM2711 (Pi4 2gb RAM)COMP-HELIUMFullFalseSyncrobit Hotspot 1 (Pi)FullFalseSyncrobit Hotspot 2 (RK)FullFalseBobcat Miner 300FullFalseSensecap M1BCM2711 (Pi4 2gb RAM)COMP-SENSECAPFullFalseDIY HotspotsThe following DIY options are also supported for light hotspot software only.Please note, DIY Hotspots do not earn HNT.ModelSOC/SBCENV IdentifierSPI BusReset PinStatus LEDButtonTypeCellularNotesPi Supply IoT LoRa Gateway HATRPiDIY-PISLGH0.022LightFalseAny pi with 40 pin headerRAK2287RPiDIY-RAK22870.017LightFalseAny pi with 40 pin headerInstallThis package is automatically built and published toour PyPI repousing GitHub Actions. Installing the package is as simple as:pip install hm-hardware-defsYou can also install a specific version using:pip install hm-hardware-defs==0.1.4UsageYou can use the hardware definitions within your project by importing the package into your python script as follows:fromhm_hardware_defs.variantimportvariant_definitionsImportant NotesThis package is used in a number of Nebra software repos:hm-pktfwdhm-confighm-diagContributingIf there is hardware that you would like to be supported that is not listed here, please complete one of the following:Create an issue on this repository which has the name of the Hotspot, or DIY solution. With at a minimum a link to a pinout of the device and which SBC it is to be used with.Fork this repository and add the device to the array invariant.py, update the table above and then create a pull request.