Saravanan666/pypi-org huggingface dataset:
Package: claming
What is it?Package for clean text to alfabeth only, clean text to number only, clean name, split name, clean nik, validation format nik and text scoring similarityInstallationpipinstallclamingHow to useImport packagefromclamingimportCleansing,MatchingDefine functionclean=Cleansing()match=Matching()Alfabeth onlyuser params case sensitive : upper, lower, capitalize or title, default is capitalizeclean.alfabeth_only('+62 adalah kode negara Indonesia',case_sensitive='capitalize')# Result# Adalah kode negara indonesiaNumber onlyuser params output_type : int or str, default is intclean.number_only("+6281234123412",output_type='int')# Result# 6281234123412Clean namecase sensitive : upper, lower, capitalize or title, default is upperclean.clean_name(' John D3ve.r  Smith')# Result# {'input': ' John D3ve.r  Smith', 'output': 'JOHN DVER SMITH'}Clean NIKuser params output_type : int or str, default is strclean.clean_nik(3212300808080003)# Result# {'input': '3212300808080003', 'output': '3212300808080003', 'description': 'NIK format is correct'}Split namecase sensitive : upper, lower, capitalize or title, default is uppernum_split : number of split 2 or 3, default is 3when num_split is 2 : then the first name will be the first word and the last name will be the second until the last wordwhen num_split is 3 : then the first name will be the first word, the middle name will be the second word and the last name will be the third until the last wordclean.split_name(' John D3ve.r  Smith',num_split=3)# Result# {'original_name': ' John D3ve.r  Smith', 'full_name': 'JOHN DVER SMITH', 'first_name': 'JOHN', 'middle_name': 'DVER', 'last_name': 'SMITH'}clean.split_name(' John D3ve.r  Smith',num_split=2)# Result# {'original_name': ' John D3ve.r  Smith', 'full_name': 'JOHN DVER SMITH', 'first_name': 'JOHN', 'last_name': 'DVER SMITH'}Text similaritymatch.exact_match('JOHN DVER SMITH','JOHN DVER SMITH')# Result# {'first_text': 'JOHN DVER SMITH', 'second_text': 'JOHN DVER SMITH', 'score': 1, 'max_score': 1}match.levenshtein_match('JOHN DVER SMITH','JOHN DVER SMITH')# Result# {'first_text': 'JOHN DVER SMITH', 'second_text': 'JOHN DVER SMITH', 'score': 1.0, 'max_score': 1}match.part_exact_match('JOHN DVER SMITH','JOHN DVER SMITH')# Result# {'first_text': 'JOHN DVER SMITH', 'second_text': 'JOHN DVER SMITH', 'score': 1.0, 'max_score': 1}match.part_levenshtein_match('JOHN DVER SMITH','JOHN DVER SMITH')# Result# {'first_text': 'JOHN DVER SMITH', 'second_text': 'JOHN DVER SMITH', 'score': 3.0, 'max_score': 3}match.all_method_match('JOHN DVER SMITH','JOHN DVER SMITH')# Result# {'first_text': 'JOHN DVER SMITH', 'second_text': 'JOHN DVER SMITH', 'first_text_clean': 'JOHN DVER SMITH', 'second_text_clean': 'JOHN DVER SMITH', 'exact_match': {'score': 1, 'max_score': 1}, 'levenshtein': {'score': 1.0, 'max_score': 1}, 'part_exact_match': {'score': 3, 'max_score': 3}, 'part_levenshtein': {'score': 3.0, 'max_score': 3}}
Package: claml2transmart
This package contains a mapper that reads ontologies in Classification Markup Language (ClaML) format
and translates them to the data model of theTranSMARTplatform,
an open source data sharing and analytics platform for translational biomedical research.It also provides a utility that applies the mapper and writes the translated data,
usingtransmart-loader, to tab-separated files
that can be loaded into a TranSMART database using thetransmart-copytool.The packages uses thepython-clamlpackage for reading ClaML files.⚠️ Note: this is a very preliminary version, still under development.
Issues can be reported athttps://github.com/thehyve/python_claml2transmart/issues.InstallationThe package requires Python 3.6.To installclaml2transmart, do:pipinstallclaml2transmartOr from source:gitclonehttps://github.com/thehyve/python_claml2transmart.gitcdpython_claml2transmartpipinstall.Run tests (including coverage) with:pythonsetup.pytestUsageRead ontology from an XML file in ClaML format and write the output in transmart-copy
format to/path/to/output. The output directory should be
empty of not existing (then it will be created).claml2transmart[--code-prefix]<system><input.xml>/path/to/outputWith--code_prefix, the concept code is used as prefix for the concept label.Example: the ICD-10-GM (German modification of ICD-10) is available aticd10gm2019syst-claml.zip.# Unzip and navigate to the classification directorymkdiricd10gm2019syst-clamlcdicd10gm2019sys-clamlunzip../icd10gm2019syst-claml.zip# create an output directorymkdiroutput# apply the mappingclaml2transmarthttp://dimdi.de/icd10gm2019Klassifikationsdateien/icd10gm2019syst_claml_20180921.xmloutputThis generates the directoriesi2b2metadataandi2b2demodatain theoutputdirectory.
The generated data can be loaded usingtransmart-copy:#Downloadtransmart-copy:curl -f -L https://repo.thehyve.nl/service/local/repositories/releases/content/org/transmartproject/transmart-copy/17.1-HYVE-5.9-RC3/transmart-copy-17.1-HYVE-5.9-RC3.jar -o transmart-copy.jar#LoaddataPGUSER=tm_cz PGPASSWORD=tm_cz java -jar transmart-copy.jar -d outputAcknowledgementThis project was funded by the German Ministry of Education and Research (BMBF) as part of the project
DIFUTURE - Data Integration for Future Medicine within the German Medical Informatics Initiative (grant no. 01ZZ1804D).LicenseCopyright (c) 2019 The Hyve B.V.The ClaML ontology to TranSMART loader is licensed under the MIT License. See the fileLICENSE.
Package: clamor
InstallationDocumentationFeaturesExample# Coming soonContributingBefore you contribute, please read ourContribution GuidelinesCreditsClamor is currently being developed and maintained byValeandWambo.In no particular order, we want to credit these amazing people for their invaluable contributions.Roman Gräffor the gateway codebase,reviews on issues and pull requests, andgenerally being a helpful and lovely person to work withFilip M.for his contributions to the wrappers of various Discord models,and doing a great job as a staff member of theClamor Discord GuildG3bEfor addressing and fixing various bugs of the library,and his time he spends on moderating theClamor Discord GuildStufor being a gatekeeper at theClamor Discord GuildZomatreefor his contributions to the command framework,and often being around on theClamor Discord Guildall the people being around on Discord, supporting the library. You rock!
Package: clamps
clampsNote:I only have playstations, so I don't know if this will work with
other joysticks.This is actually something I did long ago, but finally decided to make
it a module available on PyPi.SetupThis requiressdl2inorder to work:brewinstallsdl2# macosaptinstalllibsdl2-dev# linuxThis package will install the python bindingsPySDL2from pypi.Tested:Works with joystick connected via USB cableWorks with joystick connected via bluetoothWorks with PS4 controllerWorks with PS5 controllerExampleSo really, there is no difference betweenPS4JoystickamdPS5Joystick,
but both classes exist. Originally I hoped there would be a difference,
like access to the gyros and accelerometers, but there isn't.#!/usr/bin/env python3importtimefromclampsimportPS4Joystickdefmain():importtimejs=PS4Joystick()# or PS5Joystick()whilejs.valid:try:ps4=js.get()print(ps4,"\n----------------------\n")time.sleep(0.1)ifps4.buttons.padisTrue:breakexceptKeyboardInterrupt:print('js exiting ...')breakif__name__=="__main__":main()Output ofget()is anamedtuplewith the following fields:JS(info=JSInfo(num_buttons=16,num_axes=6,num_hats=0),leftstick=Axis(x=-0.003936767578125,y=0.011749267578125),rightstick=Axis(x=-0.01177978515625,y=-0.050994873046875),triggers=Axis(x=0.0,y=0.0),buttons=PS4Buttons(x=False,circle=False,square=False,triangle=False,share=False,ps=False,options=False,L3=False,R3=False,L1=False,R1=False,dp_up=False,dp_down=False,dp_left=False,dp_right=False,pad=True))How to pair a DUALSHOCK 4 wireless controller with a supported deviceTo pair your wireless controller with a supported device using Bluetooth for the first time, turn on pairing mode.Make sure the player indicator on the controller is off.
If the player indicator is on, press and hold the PS button until it turns off. If a USB is connected to the controller, disconnect it.While pressing and holding the SHARE button, press and hold the PS Button until the light bar flashes.Enable Bluetooth on your device, and then select the controller from the list of Bluetooth devices. When pairing is complete, the light bar blinks, and then the player indicator lights up.MIT LicenseCopyright (c) 2014 Kevin WalchkoPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: clams
Create simple, nested, command-line interfaces with Clams (Command Line
Applications Made Simple).Installationpip install clamsExampleA simple example withhelloandgoodbyesubcommands.  This can be
found at/demo/salutation.py.fromclamsimportarg,Commandsalutation=Command('salutation')@salutation.register('hello')@arg('name',nargs='?')# same interface as argparse's ``add_argument``defhandler(name):print'Hello%s'%(nameor'Nick')@salutation.register('goodbye')@arg('name',nargs='?')defhandler(name):print'Goodbye%s'%(nameor'Nick')if__name__=='__main__':salutation.init()salutation.parse_args()Usage:$cddemo$./salutation.pyhelloHello Nick$./salutation.pyhelloJasonHello Jason$./salutation.pygoodbye"my friend."Goodbye my friend.DocumentationClams documentation isavailable on ReadTheDocsand can be found locally in the/docsdirectory.Issue Reporting and Contact InformationIf you have any problems with this software, please take a moment to report
them athttps://github.com/unbservices/clamsor by email tonick@unb.services.If you are a security researcher or believe you have found a security
vulnerability in this software, please contact us by email atnick@unb.services.ContributingContributions are always welcome, whether it’s reporting a bug or sending a
pull request.  If you want to help, but don’t know where to start, email me atnick@unb.servicesand I’ll try to point you in the right direction.Copyright and License InformationCopyright (c) 2015 Nick ZarczynskiThis project is licensed under the MIT license.  Please see the LICENSE file
for more information.
Package: clams-python
CLAMS projectCLAMS projectaims at free and open-source software platform for computational analysis and metadata generation applications for multimedia material. We believe free and open AI-based multimedia processing platform can bring many benefits of technical advancement to libraries, archives, and museums. To achieve interoperability between various computational applications developed be different vendors, which is absolutely necessary for using applications together supported by user-friendly workflow engines, we are also developing JSON-based MultiMedia Interchange Format (MMIF)clams-pythonclams-pythonis a Python implementation of the CLAMS SDK.clams-pythonprovides CLAMS app developers with the following assistance ;handling MMIF files for input and output specification for CLAMS appsa base Python class to start developing a CLAMS appa flask-based wrapper to run a Python CLAMS app as an HTTP web appcookie-cutter shell command that sets up everything and starts a new CLAMS app projectStart now fromGetting Started!For more ...Version history and patch notesCLAMS Python API documentationMMIF-specific Python API documentationPublic CLAMS App Directory
Package: clams-utils
# clams-utilsRepository that holds a collection of smaller helper/utility code of CLAMS platform.
Use PyPI release to install the package.` bash pip installclams-utils`## Usage
At the moment, the package contains the following packages and modules:clams_utils.aapb: package that contains helper functions for AAPB datagoldretriver: downloader module for “gold” release data from [aapb-annotation](https://github.com/clamsproject/aapb-annotations) repository.
Package: clang
This is the python bindings subdir of llvm clang repository.https://github.com/llvm/llvm-project/tree/main/clang/bindings/pythonThis is a non-official packaging directly from the debian packages for the purpose of creating a pypi package.Build repository athttps://github.com/trolldbois/python-clang/Install withpip install clang
pip install clang==14You will need to install llvm libclang libraries, which are not packaged with this package.
Package: clang-5
# python-clang5Python bindings for clang from clang release branchesThis is the python bindings subdir of llvm clang repository.https://github.com/llvm-mirror/clang/tree/master/bindings/pythonSpecifically, it's from the **release_50** branch.This is a non-official fork. Mainly for Pypi packaging purposes.The pypi package is not official either.Test:-----You may need to alter `LD_LIBRARY_PATH` so that the Clang library can befound. The unit tests are designed to be run with `nosetests`. For example:```shell$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \LD_LIBRARY_PATH=$(llvm-config --libdir) \nosetests -vtests.cindex.test_index.test_create ... ok...```Credit to [trolldbois/python-clang](https://github.com/trolldbois/python-clang)for the original repository, which is no longer maintained. This isn't a forkbecause I am not maintaining the older branches from that repository.
Package: clang-api-doc
clang-api-docGenerate C API documentation using libclang Python bindings.For an example see thedocumentation.Why?Ideally, code should be self-documenting. To me that means little to no documentation should be needed in
the code itself, as it strongly tends to harm readability if the code already explains itself. The
remaining use-cases for documentation are typicallyAPI references, in particular assumed usage contractsusage examplesinstallation instructionsgeneral introductionsThis project focuses on generating API references, as the other use-cases tend to be written separate from
the code.The markdown-files generated byclang-api-doccan be used in any way you wish to create your final
documentation, for examplemkdocssphinxtransform to a different format usingpandocInstallationTheclang-api-docpackage is on PyPI, so you can usepip,poetry, or whatever you like to install it,
for examplepip install clang-api-doc.To install it locally and in editable mode, simply install poetry and runpoetry installand to load the
virtual environment runpoetry shell.CLI usageSimply callclang-api-doconce per file you wish to document, e.g.clang-api-doc-i'include/mylib/first.h'-o'docs/first.md'clang-api-doc-i'include/mylib/second.h'-o'docs/second.md'or once per folder, e.g.clang-api-doc-i'include/mylib/'-o'docs/'Python package usagefromclang_api_docimportclang_api_docforfile_in,file_outinzip(input_files,output_files):clang_api_doc.transform_file(file_in,file_out)
Package: clang-build-ext
Clang Build ExtensionTheclang-build-extextension builds Python extensions using a Clang compiler stack.
Either system LLVM/Clang orkarellen-llvm-clangpackage can be used.Beyond compiler the additional functionality is currently undocumented.How to UseAdd the following to thesetup.pyscript:fromsetuptoolsimportsetupfromkarellen.clang_build_extimportClangBuildExt,ClangBuildClib...setup(...,cmdclass={"build_ext":ClangBuildExt,"build_clib":ClangBuildClib},))
Package: clang-format
clang-format Python distributionThis project packages theclang-formatutility as a Python package. It allows you to installclang-formatdirectly from PyPI:python -m pip install clang-formatThis projects intends to release a new PyPI package for each major and minor release ofclang-format.Use with pipxYou can usepipxto run clang-format, as well. For example,pipx run clang-format <args>will run clang-format without any previous install required on any machine with pipx (including all default GitHub Actions / Azure runners, avoiding requiring a pre-install step or evenactions/setup-python).Use from pre-commitApre-commithook is alsoprovided, use like this:-repo:https://github.com/pre-commit/mirrors-clang-formatrev:v17.0.6hooks:-id:clang-formattypes_or:[c++,c,cuda]In contrast to many other pre-commit hooks, the versioning of the hook matches the versioning ofclang-format.If you are required to stick with a given major/minor version ofclang-formatwith your pre-commit-hook, you can usethis alternative hook repositorythat also receives backports of older versions of clang-format.
Currently, all major/minor versions of LLVM >= 10 are supported.
It is best to subscribe to releases of the hook repository to get notified of new backport releases, aspre-commit's auto-upgrade functionality will not work in that case.Building new releasesTheclang-format-wheel repositoryprovides the logic to build and publish binary wheels of theclang-formatutility.In order to add a new release, the following steps are necessary:Edit theversion fileto reflect the new version.Make a GitHub release to trigger theGitHub Actions release workflow. Alternatively, the workflow can be triggered manually.On manual triggers, the following input variables are available:use_qemu: Whether to build targets that require emulation (default:true)llvm_version: Override the LLVM version (default:"")wheel_version: Override the wheel packaging version (default"0")deploy_to_testpypi: Whether to deploy to TestPyPI instead of PyPI (default:false)The repository with the precommit hook is automatically updated using a scheduled Github Actions workflow.AcknowledgementsThis repository extends the great work of several other projects:clang-formatitself isprovided by the LLVM projectunder the Apache 2.0 License with LLVM exceptions.The build logic is based onscikit-buildwhich greatly reduces the amount of low level code necessary to packageclang-format.Thescikit-buildpackaging examples ofCMakeandNinjawere very helpful in packagingclang-format.The CI build process is controlled bycibuildwheelwhich makes building wheels across a number of platforms a pleasant experience (!)Special thanks goes to mgevaert who initiated this project and maintained it until 2021.We are grateful for the generous provisioning with CI resources that GitHub currently offers to Open Source projects.
Package: clang-format-all
Format All The Things!This is a python script that will runclang-format -ion your code.Basic usage:clang_format_all --config config.yamlThe yaml file should look like this:root_dir: "."

#When true, files will only be checked. None will be modified.
check_all: true

file_extensions: ['.cpp', '.cc', '.C', 'CPP', '.c++', 'cp', '.cxx', '.h', '.hh', '.hpp']

exclude_dirs:
  - "fmt"
  - "simple_gpio"   
  - "build"This tool uses clang-format. For supported languages/options supported in clang-format lookhere
Package: clang-format-docs
clang-format-docsRunclang-formaton C++ code blocks in documentation files.
This project is derivative work ofblacken-docs. License fromblacken-docsis included inLICENSE_blacken_docsinstallpipinstallclang-format-docsUsageclang-format-docswill take markdown files and search for C++ code blocks e.g```c++
    void hello(){
        std::cout << "Hello world\n"
    }
    ```and format them usingclang-format, i.eclang-format-docsfile.mdwill rewrite the file with clang-format applied. Also note that you can pass in a different format style usingclang-format-docs --style=LLVM file.mdor using a clang-format config fileclang-format-docs -style=file:my_clang_format.txt file.mdUsage with pre-commitSeepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/finsberg/clang-format-docsrev:v0.2.1hooks:-id:clang-format-docsadditional_dependencies:[clang-format==14.0.6]
Package: clang-html
clang-htmlA visualizer for LLVM's linting tool: clang-tidy.Getting Started with pipInstall it:python -m pip install clang-htmlIn your shell:# Call it as python module
python -m clang_html [logfile.log] [-o clang.html] [-d list.html]

# Call it directly
clang-tidy-html [logfile.log] [-o clang.html] [-d list.html]In your python terminal:>>> from pathlib import Path
>>> from clang_html import clang_tidy_visualizer

>>> clang_tidy_visualizer(Path("examples/sample.log"))
2021-04-23 12:30:40,619 - clang_html.clang_visualizer -     INFO - Writing results to clang.htmlLibrariesargparsebeautifulsoup4certifilxmlPrerequisitesInstallClang-Tidyto use for your C/C++ source files.On your local Linux machine, installation is as easy as:sudo apt install clang-tidyYou will need bash or some other terminal to execute the script. Download Python 3 or higherhere.When running clang-tidy on your files, be sure to pipe it into a new log file of checks:clang-tidy -checks=* [filename.c] | tee [newfile.log]If you are receiving the following error:Error while trying to load a compilation database:
Could not auto-detect compilation database for file "your_file.c"
No compilation database found in /your/directory or any parent directoryCreate a simple json file to be compiled into your project documentedhere.Running the script locallyClone or fork this repository to run the script on your native system.The script takes in one file argument of a txt or log file with your outputted clang-tidy checks.python -m clang_html [newfile.log] [-o clang.html] [-d list.html]Example OutputInside the same directory as clang_visualizer.py, you will find a new html file called 'clang.html'.You can also specify your custom file name when calling the script with[-o, --out] other_name.htmlorclang_tidy_visualizer(Path("sample.log"), Path("clang.html")).An example html output can be foundhere.The highlighting functionality uses your local session storage, which will save your changes on exit.ContributingFeel free to create a pull request for any updates or fixes to this repository.VersioningThis repository usesLLVM Clangfor versioning. By default, the script uses the latest information presented on LLVM's officialchecks list. Earlier versions should have support for the vast majority of checks.The-d --checks_dict_urlcommand-line option can link to another version (e.g., find v14.0.0 checks with:https://releases.llvm.org/14.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/list.html).AuthorsAustin HaleSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.