Saravanan666/pypi-org huggingface dataset:
Package: singstat
This is an unofficial Python package for interacting with APIs available atSingStat.gov.sg.Installing the packageInstall the package usingpip:pip install singstatUsing the packageThe main steps are:Import the Client class.Instantiate an object from the Client class.Call a function on that object.For more information,refer to the documentation.Usage overviewInteracting withSingStat.gov.sg’s API is done through a client.This client contains several public functions, one function per endpoint. A
function’s name is the same as its corresponding endpoint’s ending path.Most functions accept named arguments, where an argument corresponds with a
parameter that the endpoint accepts.ReferenceSingStat.gov.sg’s Developer Guide
Package: singularity-energy
Python Singularity Energy SDKThis package is the Python integration for real time energy data powered bySingularityRead the full documentation on ourreadthedocs pageExamplesHere are a couple examples you can use to get started:from datetime import datetime, timedelta
from singularity import SingularityAPI, Regions, APIException


singularity = SingularityAPI('API_KEY')


end = datetime.utcnow()
start = end - timedelta(hours=4)
events, pagination = singularity.search_region_events(
  Regions.ISONE,
  'carbon_intensity',
  start.isoformat() + 'Z',
  end.isoformat() + 'Z'
)
Package: singularity-hpc
Singularity Registry HPC (shpc)Singularity HPC is optimized for managing containers in an HPC environment. Currently, this includes
module technologies:LmodEnvironment ModulesAnd container technologies:SingularityPodmanDockerYou can use shpc if you are:a linux administrator wanting to manage containers as modules for your clustera cluster user that wants to maintain your own folder of custom modulesa cluster user that simply wants to pull Singularity images as GitHub packages.A module technology is required in all cases.📖️ Read thedocumentation📖️
⭐️ Browse thecontainer module collection⭐️😁️ Contributors 😁️We use theall-contributorstool to generate a contributors graphic below.Vanessasaurus💻Daniel S. Katz💻Audrey Stott💻Alec Scott💻manbat💻Marco De La Pierre💻Alexandre Strube💻Xavier Delaruelle💻SarahBeecroft💻Matthieu Muffato💻Georgia Stuart💻Patrick Hüther💻Cristian Di Pietrantonio💻🎨️ Previous Art 🎨️There are other tools that you might be interested in!VA Research Computinghas a similar system, but I couldn't find any code.Community CollectionsSpackinstalls modules for software built from source (not containers).LicenseThis code is licensed under the MPL 2.0LICENSE.
Package: singularity-pipeline
singularity-pipelineDescriptionsingularity-pipelineis a Python-based tool for describing, building and running Singularity container-based pipelines.This tool has been built as part of the Pipeline Interoperability initiative of theEnhanceR project.Source:https://github.com/kav2k/singularity-pipeline/PyPi:https://pypi.python.org/pypi/singularity-pipeline/Note that the script is still rough around the edges.Installingpipinstallsingularity-pipelineRunningSee usage instructions withsingularity-pipelinehelp
Package: singularitytechnologies.singularity-cli
Singularity Technologies CLIThis CLI is desinged to help Engineers engage with our API and platform much
more easily.The CLI handles HMAC signature generation and sets all necessary headers
autonomously.Its highly recomended that you use the CLI rather than cURL commands.The CLI has been tested on Ubuntu. If you require support or bug fixes for OSX
or Windows operating systems please open an issue!Pull Requests are always welcome!InstallationThe CLI can easily be installed using pip:pip3 install singularitytechnologies.singularity-cliWe only officially support usage with Python3.5+Config fileThe CLI will look for a config json file in the location:$HOME/.singularity/config.jsonWhich should contain the following:{
  "api_key": <key>,
  "secret": <secret>
}If you'd like to store your config elsewhere, simply set the environment
variable:SINGULARITY_CONFIG_PATH=<path>UsageA full list of commands can be seen by simply using the following command:singularity-cliYou can test your connection to the API by using our PING command:singularity-cli pingA successful connection should return the responsepongSee thisblog postfor a short demonstration on how to use the various
features of the CLI.
Package: singularity-tunel
# Singularity TunelApplication and general cluster tools using Singularity containers.## IntroductionManager and recipe generator for local Singularity containers## Deployment
You should clone the repo, and build the container (or you can also just clone and then use docker-compose and it will be pulled from Docker Hub).`bash git clonehttps://github.com/singularityhub/singularity-tunelcdsingularity-tuneldocker build-tvanessa/tunel . `## Deployment
You can use docker compose to deploy:`bashdocker-composeup-d`and then go to127.0.0.1(localhost).## Endpoints
Here are some useful endpoints:### Views/: the root will show all containers available. When the user selects, he/she is taken to a screen to see input arguments./containers/random: will return a random container/container/container.img: will show metadata about a container.### API
The following are considered API, meaning they return a text or json response, not intended for the user to interact with./api/containers: a list of all available containers/api/container/<string:name>: a json object with container args, labels, and links./api/container/args/<string:name>: json of just container args/api/container/labels/<string:name>: json of juist container labels/container/run/container.img: Is the base for running a container, this one would be container.img. Arguments can be added as POST (eg,?name=Amy)
Package: singular-launcher
A Singular Experiment LauncherSingular is a quality of life package that enables rapid deployment of code on a slurm cluster with singularity installed and password enabled login. Running experiments on your cluster is as simple as a single command in the terminal using singular. See below for an example and install instructions.InstallationSingular can be installed using the pip package.pipinstallsingular-launcherUsageYou may configure singular to remember the ssh credentials to your cluster using the following example.singularset--ssh-usernameusername--ssh-passwordpassword--ssh-hostcompute.example.comRunning your first command on your cluster is then as simple as one line in the terminal.singularremoteecho"my first command"Certain workloads require uploading certain data files into the singularity image on the remote machine before running experiments. This can be done with the following command.singularupload--recursive--exclude"*.pkl"./local_dirremote_dir/in/imageAdditionally, you can download files from the remote machine with a single command. The following command will download the results folder inside the remote singularity image to a location in the current local working directory. The remote path is always taken with respect to the singularity image path.singulardownload--recursive--exclude"*.pkl"results./ExperimentationA typical experiment creation pipeline involved working on code locally, testing the code locally, then running in on a server. This can be done easily using singular.pythondo_my_experiment.pyOnce your code is ready for deployment, tell singular how to install your code from github.singularset--git-urlhttps://github.com/username/repo
singularset--git-target/code/repo
singularset--install-command"pip install -e {git_target}"Then, point singular to where your code working directory is stored locally.singularset--sync-from/home/username/repoThen test your code in a local copy of the singularity to make sure it works as expected.singularlocal--syncpython/code/repo/do_my_experiment.pyThen run it on the cluster.singularremote--syncpython/code/repo/do_my_experiment.pyIn this example, the sync flag tells singular to copy code from your repository on the local disk to code folder in your remote singularity image. This is especially helpful when changes aren't committed.
Package: singular-wrap-text
singular_wrap_textsingular_wrap_texté um simples quebrador de texto para qualquer ocasião escrito em Python.
Insere quebras de linha.FunçõesWrapText-construtorque recebe o texto a ser quebrado.
Pode receber 2 (dois) valores:length_wrapquantidade de caracteres a contar para inserir a quebra de linha (trecho). Por padrão quebra o texto a cada50caracteres.break_typeindica o tipo de quebra a ser inserida. Por padrão insere'\n'. Para html, recomendo setar este argumento com'<br>'.get()- Retorna o texto contendo as quebras de linha.Exemplos:from singular_wrap_text.wraptext import WrapText

meu_texto = "Escrevendo um código numa única linha para testá-lo com a função WrapText."

# Exemplo 1
wt = WrapText(meu_texto, length_wrap=38)
print(wt.get())

>>Escrevendo um código numa única linha
para testá-lo com a função WrapText.

# Exemplo 2
wt = WrapText(meu_texto, length_wrap=38, break_type="<br>")

print(wt.get())

>>Escrevendo um código numa única linha<br>para testá-lo com a função WrapText.
Package: sinhala-sub
Sinhala Subtitles DownloaderThis Python library makes it easy to download Sinhala subtitles for TV series and movies. It currently supports two websites, Baiscope and Cineru.InstallationYou can install the library using pip:pip install sinhala_subUsageTo use the library, simply import it and call one of the following functions:search(query, site=None)Searches for available Sinhala subtitles for a given TV series or movie.fromsinhala_subimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles()# Search for  Sinhala subtitles for Pirates of the Caribbean movie"results=subtitles.search('Pirates of the Caribbean')# Print the list of available subtitle filesforresultinresults:print(result)search subtitles with mentioning website :results=subtitles.search('Pirates of the Caribbean',site='baiscopelk')query: The name of the TV series or movie.site: Optional. The website to search on. Can be "baiscopelk" or "cineru".Returns a list of available Sinhala subtitle files.download(page_url)Downloads a Sinhala subtitle file from a given URL.fromsinhala_subimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles()# Download Sinhala subtitles for the movie "Pirates of the Caribbean: Dead Men Tell No Tales"url='https://www.baiscopelk.com/pirates-of-the-caribbean-dead-men-tell-no-tales-2017-with-sinhala-subtitles/'subtitles.download(url)page_url: The URL of the subtitle file to download.ReturnsTrueif the download is successful,Falseotherwise.bulk(bulk_url)Downloads a bulk of Sinhala subtitle files from a given URL.fromsinhala_subimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles()# Download a bulk of Sinhala subtitles for the TV series "Supernatural"url='https://www.baiscopelk.com/tv-series/supernatural-2005/'subtitles.bulk(url)bulk_url: The URL of the subtitle file bulk to download.Returns a list of downloaded subtitle files.LicenseThis library is released under the MIT license.
Package: sinhala-subtitle
Sinhala Subtitles DownloaderThis Python library makes it easy to download Sinhala subtitles for TV series and movies. It currently supports two websites, Baiscope and Cineru.InstallationYou can install the library using pip:pip install sinhala_subtitleUsageTo use the library, simply import it and call one of the following functions:search(query, site=None)Searches for available Sinhala subtitles for a given TV series or movie.fromsinhala_subtitleimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles()# Search for  Sinhala subtitles for Pirates of the Caribbean movie"results=subtitles.search('Pirates of the Caribbean')# Print the list of available subtitle filesforresultinresults:print(result)search subtitles with mentioning website :results=subtitles.search('Pirates of the Caribbean',site='baiscopelk')query: The name of the TV series or movie.site: Optional. The website to search on. Can be "baiscopelk" or "cineru".Returns a list of available Sinhala subtitle files.download(page_url)Downloads a Sinhala subtitle file from a given URL.fromsinhala_subtitleimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles()# Download Sinhala subtitles for the movie "Pirates of the Caribbean: Dead Men Tell No Tales"url='https://www.baiscopelk.com/pirates-of-the-caribbean-dead-men-tell-no-tales-2017-with-sinhala-subtitles/'subtitles.download(url)page_url: The URL of the subtitle file to download.ReturnsTrueif the download is successful,Falseotherwise.bulk(bulk_url)Downloads a bulk of Sinhala subtitle files from a given URL.fromsinhala_subtitleimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles()# Download a bulk of Sinhala subtitles for the TV series "Supernatural"url='https://www.baiscopelk.com/tv-series/supernatural-2005/'subtitles.bulk(url)bulk_url: The URL of the subtitle file bulk to download.Returns a list of downloaded subtitle files.LicenseThis library is released under the MIT license.
Package: sinhala-subtitles
Sinhala Subtitles DownloaderThis Python library makes it easy to download Sinhala subtitles for TV series and movies. It currently supports two websites, Baiscope and Cineru.InstallationYou can install the library using pip:pip install sinhala_subtitlesUsageTo use the library, simply import it and call one of the following functions:search(query, site=None)Searches for available Sinhala subtitles for a given TV series or movie.fromsinhala_subtitlesimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles# Search for  Sinhala subtitles for Pirates of the Caribbean movie"results=subtitles.search('Pirates of the Caribbean')# Print the list of available subtitle filesforresultinresults:print(result)search subtitles with mentioning website :results=subtitles.search('Pirates of the Caribbean',site='baiscopelk')query: The name of the TV series or movie.site: Optional. The website to search on. Can be "baiscopelk" or "cineru".Returns a list of available Sinhala subtitle files.download(page_url)Downloads a Sinhala subtitle file from a given URL.fromsinhala_subtitlesimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles# Download Sinhala subtitles for the movie "Pirates of the Caribbean: Dead Men Tell No Tales"url='https://www.baiscopelk.com/pirates-of-the-caribbean-dead-men-tell-no-tales-2017-with-sinhala-subtitles/'subtitles.download(url)page_url: The URL of the subtitle file to download.ReturnsTrueif the download is successful,Falseotherwise.bulk(bulk_url)Downloads a bulk of Sinhala subtitle files from a given URL.fromsinhala_subtitlesimportSinhalaSubtitles# Create an instance of the SinhalaSubtitles classsubtitles=SinhalaSubtitles# Download a bulk of Sinhala subtitles for the TV series "Supernatural"url='https://www.baiscopelk.com/tv-series/supernatural-2005/'subtitles.bulk(url,download_path="Downloads")bulk_url: The URL of the subtitle file bulk to download.Returns a list of downloaded subtitle files.LicenseThis library is released under the MIT license.
Package: sink
SinkArch Linux AUR installer for the lazy.  Probably still a little buggy.  Please report any issues in
the GitHub issue tracker.usage: sink [-h] [-i] [-d DIR] [-y] [--debug] PKGNAME [PKGNAME ...]

Download and install packages from AUR

positional arguments:
  PKGNAME            Packages to install from AUR

optional arguments:
  -h, --help         show this help message and exit
  -i, --install      Install the package, don't just download and unpack
  -d DIR, --dir DIR  Use this directory to build
  -y, --noconfirm    Do not confirm before installing packages, and do not review PKGBUILDs  NOT RECOMMENDED
  --debug            Show debug messages
Package: sinkaf
"Kötü söz sahibine aittir."-AnonimNedir?sinkafuygunsuz yorumların bulunmasını sağlayan bir python kütüphanesidir.Farkı nedir?Diğer algoritmalardan en büyük farkı, önceden belirlenmiş bir kelime listesinden cümlerlerdeki sözcükleri tek tek kontrol etmek yerine, makine öğrenmesi metodları kullanarak cümlenin genel anlamına bakabilmesidir. Aynı zamandasinkafbaya bi hızlı!Nasıl çalışıyor?Arka planda modelimizi eğitmek içinA corpus of Turkish offensive languageverisetini kullanıyoruz. Bu veriseti 36,000+ twitter yorumunun hakaret içerip içermediğini gösteren, Türkçe ile makine öğrenmesi denemeleri yapmak isteyenler için fevkaledenin fevkinde bir kaynak! Kendilerine teşekkür ediyoruz. Velhasıl...Nasıl yüklerim?pipinstallsinkafNasıl kullanırım?fromsinkafimportSinkafsnf=Sinkaf()snf.tahmin(["çok tatlı çocuk","çok şerefsiz çocuk"])# array([False,  True])snf.tahminlik(["çok tatlı çocuk","çok şerefsiz çocuk"])# array([0.09811712, 0.86237484])Alternatif modelBERTkullanılarak vektörize edilmiş veri üzerinde eğitilmiş modeller:bert_pre: Küfürlü cümlelerin saptanmasında düşük duyarlılık yüksek kesinlikbert_rec: Küfürlü cümlelerin saptanmasında yüksek duyarlılık az kesinliksnf=Sinkaf(model="bert_pre")snf.tahmin(["çok tatlı çocuk","çok şerefsiz çocuk"])# array([False,  True])snf.tahminlik(["çok tatlı çocuk","çok şerefsiz çocuk"])# array([0.26865139 0.85412345])İyi çalışıyor mu?Fena değil gibi ama tabi daha iyi kesinlikle olabilir.Detaylar için:sinkaf()sinkaf(model = "bert_pre")
Package: sinkhorn_knopp
sinkhorn_knopp--------[![Build Status](https://travis-ci.org/btaba/sinkhorn_knopp.svg?branch=master)](https://travis-ci.org/btaba/sinkhorn_knopp)To convert non-negative square matrices with total support into doubly stochastic matrices.```python>> import numpy as np>> from sinkhorn_knopp import sinkhorn_knopp as skp>> sk = skp.SinkhornKnopp()>> P = [[.011, .15], [1.71, .1]]>> P_ds = sk.fit(P)>> print P_ds[[ 0.06102561  0.93897439][ 0.93809928  0.06190072]]>> print np.sum(P_ds, axis=0)[ 0.99912489  1.00087511]>> print np.sum(P_ds, axis=1)[ 1.,  1.]```See http://msp.org/pjm/1967/21-2/pjm-v21-n2-p14-s.pdf for reference.## InstallEither:```shpip install sinkhorn_knopp```or```shgit clone https://github.com/btaba/sinkhorn_knoppcd sinkhorn_knopppython setup.py install```## UninstallDepending on the above, either:```shpip uninstall sinkhorn_knopp```or```shcd sinkhorn_knopppython setup.py install --record files.txtcat files.txt | xargs rm -rf```
Package: sinkhorn-rebasin
Re-basin via implicit Sinkhorn differentiationImplementation of paperRe-basin via implicit Sinkhorn differentiation(Accepted at CVPR 2023).Installationpip install sinkhorn-rebasinRunning the examplesBasicsModels alignmentLinear mode connectivityModels alignmentcd examples
python main_alignment_{mlp|cnn|resnet}.pyExampleLayer from $\theta_A$Layer from $\pi_{\mathcal{P}}(\theta_A)$Layer from $\theta_B$MLPVGGResNet18Linear mode connectivitycd examples
python main_lmc_{mlp|cnn|resnet}.pyDatasetModelAccuracy LMCCross Entropy Loss LMCMnistMLPMnistVGGImagenette-320ResNet18
Package: sinkove
Sinkove Python LibraryThis repository contains Sinkove's Python client.Installing the projectRequirementspython>= 3.10make>= 4.3Clone this repository.Go to the project folder and run the following command to create a new virtual environment.python-mvenv.venvActivate your new virtual environment.source./venv/bin/activateConfigure your environmet using make.makesetupTestsRunning tests on your systemDependenciesmake>= 4.3python== 3.10makesetup
maketestRunning test on dockermake>= 4.3docker>= 20.10.17pipinstalldagger-io
makedagger-testReleasesWe usebumpversionfor version management.bumpversionis a tool that
creates a new git tag for the current release and changes the code to
replace the version where it's necessary. After merging all the changes
into the branch main, to release a new version, follow these steps:Update the branch main locally.gitcheckoutmain
gitpulloriginmainActivate your previously configured virtual environment.source.venv/bin/activateRunbumpversionaccording to thesemantic versionpattern. You
have the optionsmajor,minorandpatch.bumpversionminorPush the generated tag to the remote.gitpushoriginmain--tagsThe CI/CD pipeline is configured to deploy a new package everytime a
new tag is pushed. You can check the pipeline progress on the Github Actions UI.
Package: sinlib
SinlibInstallationUsing pypipip install sinlibBasic usageTokenizerfromsinlibimportTokenizercorpus="""මේ අතර, පෙබරවාරි මාසයේ පළමු දින 08 තුළ පමණක් විදෙස් සංචාරකයන් 60,122 දෙනෙකු මෙරටට පැමිණ තිබේ.ඒ අනුව මේ වසරේ ගත වූ කාලය තුළ සංචාරකයන් 268‍,375 දෙනෙකු දිවයිනට පැමිණ ඇති බව සංචාරක සංවර්ධන අධිකාරිය සඳහන් කරයි.ඉන් වැඩි ම සංචාරකයන් පිරිසක් ඉන්දියාවෙන් පැමිණ ඇති අතර, එම සංඛ්‍යාව 42,768කි.ඊට අමතර ව රුසියාවෙන් සංචාරකයන් 39,914ක්, බ්‍රිතාන්‍යයෙන් 22,278ක් සහ ජර්මනියෙන් සංචාරකයන් 18,016 දෙනෙකු පැමිණ ඇති බව වාර්තා වේ."""tokenizer=Tokenizer()tokenizer.train([corpus])#encode text into tokensencoding=tokenizer("මේ අතර, පෙබරවාරි මාසයේ පළමු")#list tokens[tokenizer.token_id_to_token_map[id]foridinencoding]['මේ',' ','අ','ත','ර',',',' ','පෙ','බ','ර','වා','රි',' ','මා','ස','යේ',' ','ප','ළ','මු']Preprocessorsent=['මෙය සිංහල වාක්‍යක්','මෙය සිංහල වාක්‍යක් සමග english character එකක්','This is complete english sentence']print(sent)['මෙය සිංහල වාක්\u200dයක්','මෙය සිංහල වාක්\u200dයක් සමග english character එකක්','This is complete english sentence']fromsinlib.preprocessingimportget_sinhala_character_ratioget_sinhala_character_ratio(sent)[0.9,0.46875,0.0]
Package: sinling
A language processing tool for Sinhalese (සිංහල).Update 2020.11.01: Fixed pypi package. Use 'pip install sinling' to install sinling directly from repository.Update 2020.08.16: Add pypi package @ https://pypi.org/project/sinling/.Update 2020.08.16: Integrated Part of speech tagger and stemmer tool.Update 2019.07.21: This tool no longer requires java to run sinhala tokenizer.  All java code is ported to Python implementation for convenience.InstallationRun the following command in your virtualenv to install this package.pip install sinlingHow to useSinhala TokenizerfromsinlingimportSinhalaTokenizertokenizer=SinhalaTokenizer()sentence='...'# your sentencetokenizer.tokenize(sentence)Sinhala Stemmer (Experimental)fromsinlingimportSinhalaStemmerstemmer=SinhalaStemmer()word='...'# your sentencestemmer.stem(word)Please citesinhala-stemmerif you are using this implementation.Part-of-Speech TaggerfromsinlingimportSinhalaTokenizer,POSTaggertokenizer=SinhalaTokenizer()document='...'# may contain multiple sentencestokenized_sentences=[tokenizer.tokenize(f'{ss}.')forssintokenizer.split_sentences(document)]tagger=POSTagger()pos_tags=tagger.predict(tokenized_sentences)Word Joiner (Morphological Joiner)fromsinlingimportpreprocess,word_joinerw1=preprocess('මුනි')w2=preprocess('උතුමා')results=word_joiner.join(w1,w2)# Returns a list of possible results after applying join rules ['මුනිතුමා', ...]Word Splitter (Morphological Splitter) / corpus based -experimentalfromsinlingimportword_splitterword='...'results=word_splitter.split(word)# Returns a dict containing debug information, base word and affixVisithereto see some sample splits.ContributionsContactwayasas.13@cse.mrt.ac.lkif you would like to contribute to this project.LicenseApache License
Version 2.0, January 2004http://www.apache.org/licenses/