Saravanan666/pypi-org huggingface dataset:
Package: docAMR
Setupmake an environment with python 3.7activate environmentpip install -r requirements.txtCreate docAMR representationLink to NAACL 2022 paper DOCAMR: Multi-Sentence AMR Representation and Evaluationhttps://aclanthology.org/2022.naacl-main.256.pdfTo create docAMR representation from gold AMR3.0 data and the coref annotation in xml format:python doc_amr.py 
--amr3-path <path to AMR3 data> 
--coref-fof <file-with-list-of-xml-annotations-files> 
--out-amr <output file> 
--rep <representation><path to AMR3 data>should point to uncompressed LDC data directory for LDC2020T02 with its original directory structure.<file-with-list-of-xml-annotations-files>is one of the_coref.foffiles included in this repository.Default value for--repis'docAMR'. Other values can be:'no-merge','merge-names','merge-all'. Use--helpto read the descriptions of these representations.To create docAMR representation from dcoument AMRs with no nodes mergedpython doc_amr.py
       --in-doc-amr-unmerged <path to document-level AMRs un no-merge format>
       --rep <representation>
       --out-amr <output file>To create docAMR representation from dcoument AMRs with pairwise edges between a representative node in the chain and the rest of the nodes in the chain:python doc_amr.py
       --in-doc-amr-pairwise <path to document-level AMR with pairwise coref edges>
       --pairwise-coref-rel <relation label indicating coref edges>
       --rep <representation>
       --out-amr <output file>default value for--pairwise-coref-relissame-asEvaluate docAMR (docSmatch)Use docSmatch the same way as the standard Smatch.python docSmatch/smatch.py -f <amr1> <amr2>It assumes that:sntrelations connect sentences to the root. Moreover, it assumes that the numeric suffix of:sntis the sentence number and that the matching sentence numbers in the two AMRs are aligned.You can also get a detailed score breakdown for the accuracy of coreference prediction:python docSmatch/smatch.py -f <amr1> <amr2> --coref-subscoreThis will ouput the normal smatch score as 'Overall Score', as well as a 'Coref Score' indicating the quality of cross sentential edges and nodes.
Package: docannometa
Python documentation annotation metadataDocument symbols via annotation metadata, as described byPEP 727.This will become an alias to the same functionality intyping_extensionsif and when it is
implemented.InstallationpipinstalldocannometaUsagefromtypingimportAnnotatedfromdocannometaimportDocdefrepeat(text:Annotated[str,Doc("String to repeat")],n:Annotated[int,Doc("Number of times to repeat")],)->Annotated[str,Doc("Result string of length `n * len(text)`")]:"""Repeat a string multiple times then concatenate."""returntext*n
Package: docargs
docargsA package to check that you have documented all your parameters.Docargs is written with continuous integration in mind: It will raise an error
if you have not documented all your function arguments. It's easy to forget, but
it's also important not to - so you should automate a test of it!To use, simplypip install docargs, and rundocargs mypackage/**/*py. Alternatively, docargs integrates with flake8, so runningflake8 mypackagewill also work.To see it in action, check out the travis CI configuration
on thisrepositoryCurrently,docargsonly works withnumpydoc-style docstrings.
Package: docassemble.ALAnyState
docassemble.ALAnyStateA ALWeaver capability package and docassemble.AssemblyLine runtime package that provides a simple
look and feel that is lightly customized to each state. It displays the state's seal and uses the
state's name in the navigation bar.The goal is to also show a rudimentary listing of the court/venue tailored to each state.AuthorQuinten Steenhuis,qsteenhuis@suffolk.edu
Package: docassemble.ALDashboard
ALDashboard: a docassemble Admin and Configuration ToolA single tool and interview to centralizes some tedious Docassemble admin configuration tasksInstall the Document Assembly Line packages (support files forCourt Forms Online)Searchable user management - reset passwords and change privileges.Installing or updating several packages at once.Listing and viewing the contents of an (unencrypted) interview to facilitate debugging errors on production servers.View analytics/stats captured withstore_variable_snapshot.List the files inside a particular package installed on the server.Gather files from a user who left the organization/unknown username and password.Review screen generatorvalidate DOCX Jinja2 templatesGenerating acustom bootstrap themefor your interviews.Ideas:Add a link to the dispatch directive for an existing file in an existing package.Generating translation files [TBD].To use, you must create a docassemble API key and add it to your
configuration, like this:install packages api key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxSome screenshotsMain pageManage usersBulk install packages from GitHubBulk update packagesView / search sessions by user and interview nameView interview stats captured withstore_variables_snapshot()Generate a bootstrap theme
Package: docassemble.ALToolbox
ALToolboxThis repository is used to host small Python modules, widgets, and JavaScript web components js files that enhance Docassemble interviews. These modules were
built as part of the Suffolk University Law School LIT Lab'sDocument Assembly Line project.
They are placed here
rather than inhttps://github.com/SuffolkLitLab/docassemble-AssemblyLinebecause we believe these small components can easily be used
by anyone, regardless of whether they use any other code from the Document Assembly Line project.If you want to add a small function to this project, consider adding it to the existing misc.py to avoid creating too many module files.DocumentationRead thedocumentation for the functions and componentsto learn
how to use these components in your ownDocassembleprojects.Suffolk LIT Lab Document Assembly LineThe Assembly Line Project is a collection of volunteers, students, and institutions who joined together
during the COVID-19 pandemic to help increase access to the court system. Our vision is mobile-friendly,
easy to useguidedonline forms that help empower litigants to access the court remotely.Our signature project isCourtFormsOnline.org.We designed a step-by-step, assembly line style process for automating court forms on top of Docassemble
and built several tools along the way thatyoucan use in your home jurisdiction.This package containsruntime codeandpre-written questionsto support authoring robust,
consistent, and attractive Docassemble interviews that help complete court forms.Read more on ourdocumentation page.Related repositorieshttps://github.com/SuffolkLitLab/docassemble-AssemblyLinehttps://github.com/SuffolkLitLab/docassemble-ALWeaverhttps://github.com/SuffolkLitLab/docassemble-ALMassachusettshttps://github.com/SuffolkLitLab/docassemble-MassAccesshttps://github.com/SuffolkLitLab/docassemble-ALThemeTemplatehttps://github.com/SuffolkLitLab/EfileProxyServerContributors:@plocket@nonprofittechy@purplesky2016@brycestevenwilley
Package: docassemble.ALWeaver
Assembly Line Weaver: Suffolk LIT Lab Document Assembly LineThe Assembly Line Project is a collection of volunteers, students, and institutions who joined together
during the COVID-19 pandemic to help increase access to the court system. Our vision is mobile-friendly,
easy to useguidedonline forms that help empower litigants to access the court remotely.Our signature project isCourtFormsOnline.org.We designed a step-by-step, assembly line style process for automating court forms on top of Docassemble
and built several tools along the way thatyoucan use in your home jurisdiction.This package contains anautomation and rapid prototyping toolto support authoring robust,
consistent, and attractive Docassemble interviews that help complete court forms. Upload a labeled
PDF or DOCX file, and the Assembly Line Weaver will produce a runnable, clean code, draft of a
Docassemble interview that you can continue to edit and refine.Read more on ourdocumentation page.Related repositorieshttps://github.com/SuffolkLitLab/docassemble-AssemblyLinehttps://github.com/SuffolkLitLab/docassemble-ALMassachusettshttps://github.com/SuffolkLitLab/docassemble-MassAccesshttps://github.com/SuffolkLitLab/docassemble-ALThemeTemplatehttps://github.com/SuffolkLitLab/EfileProxyServerDocumentationhttps://suffolklitlab.org/docassemble-AssemblyLine-documentation/History2021-11-03Add support forpluralnames for people in PDF files2021-10-15Handle overflow in addendumMultiple choice radio/checkbox fieldsDOCX validation2021-09-09Improved internationalizationSimplified PDF checker2021-04-14 Multiple fixes:Migrated to more flexible Mako template structure for generated
interview blocksPackage can be installed (for test purposes) after being
generatedVarious refactors and code cleanupSimplified and improved generated code and order of blocksAdded version number/date stamp to generated code2021-03-09 Extensive improvements:Improvements to review screensQuestion/field editing and reorderingImprovements to YAML structureGenerate interstitial screensRefactoring and bug fixes2021-02-09 Combine yes/no variables; more flexible handling of people variables and assistance with gathering varying numbers w/ less code2021-01-29 Bug fixes; migration to AssemblyLine complete2021-01-25 Bug fixes, start migration toAssemblyLinedependency and away from MAVirtualCourtAuthorsQuinten Steenhuis,qsteenhuis@suffolk.eduMichelleBryce WilleyLilyDavid ColarussoNharika SinghInstallation requirementsCreate a Docassemble API key and add it your configuration like this:install packages api key: 123458abcdefghijlklmno99A
Package: docassemble.assemblylinewizard
docassemble.assemblylinewizardA tool to help generate draft interviews for the docassemble platform. Tightly linked tohttps://github.com/SuffolkLITLab/docassemble-AssemblyLine. Currently linked tohttps://github.com/SuffolkLITLab/docassemble-MassAccessbut moving to be more jurisdiction independent.History2021-04-14 Multiple fixes:Migrated to more flexible Mako template structure for generated
interview blocksPackage can be installed (for test purposes) after being
generatedVarious refactors and code cleanupSimplified and improved generated code and order of blocksAdded version number/date stamp to generated code2021-03-09 Extensive improvements:Improvements to review screensQuestion/field editing and reorderingImprovements to YAML structureGenerate interstitial screensRefactoring and bug fixes2021-02-09 Combine yes/no variables; more flexible handling of people variables and assistance with gathering varying numbers w/ less code2021-01-29 Bug fixes; migration to AssemblyLine complete2021-01-25 Bug fixes, start migration toAssemblyLinedependency and away from MAVirtualCourtAuthorsQuinten Steenhuis,qsteenhuis@suffolk.eduMichelleBryce WilleyLily YangDavid ColarussoNharika SinghInstallation requirementsCreate a Docassemble API key and add it your configuration like this:install packages api key: 123458abcdefghijlklmno99A
Package: docassemble.blosign
docassemble.blosignA docassemble extension that allows you to sign pdf documents withBlosignInstallationInstall this package from within your Docassemble package management screen.ConfigurationThis package use a Personal Access Token (PAT) to authenticate with the Blosing API. See Blosign documentation for detailsTo configure Doccassemble to access your Blosign account, go into the configuration screen of you docassemble instance and add the following configuration lines.blosign:
  token: { Your personal access token }
  test-mode: TrueTest ModeIf you settest-mode: True, the extension will use sandbox environment on the Blosing API.If you settest-mode: False, the extension will use production environment on the Blosing API.UsageInclude the module in your interview.---
modules:
  - docassemble.blosing.blosing
---Ask your questions and call Blosing API:api.request_signatures(people, document, signInOrder=False, message=None, filename=None, expiryDate=None)You can see an interview example on<your docassemble>/interview?i=docassemble.blosign:data/questions/blosign_test.ymlAPI DocumentationVisit:https://api.blosing.com/v2/docs/
Package: docassemble.codigodamata
Código da MataPacote para Docassemble (usando Python e Markdown).Automação da análise jurídica e montagem de documentos ("document assembly") de atos jurídicos relacionados ao desmatamento ilegal (crimes contra a flora e correlatos previstos no art. 38 e seguintes da Lei 9.605/98). Seu objetivo é facilitar o trabalho de promotores de Justiça no âmbito do Projeto Olhos da Mata e, futuramente, de fiscais do Ibama, Semas, bem como de juízes com atribuição ou jurisdição em crimes relacionados ao desmatamento ilegal.https://codigodamata.consciencia.eco.br/
Package: docassemble.EFSPIntegration
docassemble-EFSPIntegrationA docassemble extension that talks toa proxy e-filing servereasily within a docassemble interview.Main interviews of import:any_filing_interview.yml: allows you to make any type of filing, initial or subsequentadmin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filingsIn progress!AuthorsQuinten Steenhuis (qsteenhuis@suffolk.edu)
Bryce Willey (bwilley@suffolk.edu)
Package: docassemble.GithubFeedbackForm
docassemble.GithubFeedbackFormA package that uses the GitHub API to gather feedback and then submit issues to Github that can be embedded
into a Docassemble interview. Makes it easy to collect per-page feedback.This package is designed to support the following workflow:Work is stored on a public GitHub repository, or at least, you setup a repository to collect feedback.There is one package per "interview"/"app".Each question block has a unique question ID.Preferably--questions are triggered in an interview order block. If you use a series ofmandatoryblocks instead of a single mandatory block, thevariablelisted in the bug report may not be as useful.Getting startedCreate a new GitHub user and create a personal access token on it. The personal access
token needs minimal permissions. Specifically, it needs to be allowed to make pull requests.
Pull request access is allowed for anyone by default when you create a new, public GitHub repository.Edit your config, and create a block like this:github issues:username:"YOUR_NEW_DEDICATED_ISSUE_CREATION_ACCOUNT"token:"..."# A valid GitHub personal access token associated with the username abovedefault repository owner:YOUR_GITHUB_USER_OR_ORG_HEREallowed repository owners:# List the repo that your account will be allowed to create issues on-YOUR_GITHUB_USER_OR_ORG_HERE-SECOND_GITHUB_USER_OR_ORGNote that it is important to provide a list of allowed repository owners.
This is used to prevent your form from being used to spam GitHub
repositories with feedback.Add a link on each page, in the footer orunderarea.You can use thefeedback_link()function to add a link, like this:[:comment-dots: Feedback](${ feedback_link(user_info()) } ){:target="_blank"}Optional parameters:i: the feedback form, like: docassemble.AssemblyLine:feedback.ymlgithub_repo: repo name, like: docassemble-AssemblyLinegithub_user: owner of the repo, like: suffolklitlabvariable: variable being sought, like: introquestion_id:  id of the current question, like: intropackage_version: version number of the current packagefilename: filename of the interview the user is providing feedback on.Each has a sensible default. Most likely, you will limit your custom
parameters to thegithub_repoif you want feedback links to work
from the docassemble playground.You will also need to include thegithub_issue.pymodule in your parent interview,
like this:---modules:-docassemble.GithubFeedbackForm.github_issueOptionally, create your own feedback.yml file. If you want a custom feedback.yml,
it should look like this, with whatever customizations you choose:include:-docassemble.GithubFeedbackForm:feedback.yml---code:|al_feedback_form_title = "Your title here"---code:|# This email will be used ONLY if there is no valid GitHub configal_error_email = "your_email@yourdomain.com"---template:al_how_to_get_legal_helpcontent:|If you need more help, these are free resources:... [INCLUDE STATE-SPECIFIC RESOURCES]You may also want to customize the metadata: title, exit url and override
any specific questions, add a logo, etc.AuthorQuinten Steenhuis,qsteenhuis@suffolk.edu
Package: docassemble.hmctshelper
This package contains interviews that help Litigants in Person
to complete court forms for HM Courts and Tribunals Service whensupport from a lawyer is not available.The package currently contains interviews to help a LIP:complete form N244 - an application notice
(https://www.gov.uk/government/publications/form-n244-application-notice)produce a witness statement in the correct prescribed format
Package: docassemble.income
Income Module for DocassembleIncludes examples at docassemble.income:interview_test.yml, docassemble.income:financial_statement.ymlClassesIncome(PeriodicValue)def amount(self, period_to_use=1):
        """Returns the amount earned over the specified period """IncomeList(DAList)def types(self):
        """Returns a set of the unique types of values stored in the list. Will fail if any items in the list leave the type field unspecified"""

    def owners(self, type=None):
        """Returns a set of the unique owners for the specified type of value stored in the list. If type is None, returns all unique owners in the IncomeList"""

    def total(self, period_to_use=1, type=None):
        """Returns the total periodic value in the list, gathering the list items if necessary.
    
    def market_value_total(self, type=None):
        """Returns the total market value of values in the list."""

    def balance_total(self, type=None):
    
    def matches(self, type):
        """Returns an IncomeList consisting only of elements matching the specified Income type, assisting in filling PDFs with predefined spaces"""Job(Income)def net_amount(self, period_to_use=1):
        """Returns the net amount (e.g., minus deductions). Only applies if value is non-hourly."""

    def gross_amount(self, period_to_use=1):
        """Gross amount is identical to value"""JobListdef gross_total(self, period_to_use=1, type=None):

    def net_total(self, period_to_use=1, type=None):SimpleValuedef amount(self):VehicleLike SimpleValue, but adds year_make_model methodValueListdef types(self):
        """Returns a set of the unique types of values stored in the list. Will fail if any items in the list leave the type field unspecified"""

    def total(self, type=None):VehicleListAssetLike Income, but the value field is optionalAssetListlist of AssetsUtility functionsrecent_years(years=15, order='descending',future=1):
    """Returns a list of the most recent years, continuing into the future. Defaults to most recent 15 years+1. Useful to populate
        a combobox of years where the most recent ones are most likely. E.g. automobile years or birthdate.
        Keyword paramaters: years, order (descending or ascending), future (defaults to 1)"""
        
asset_type_list() :
    """Returns a list of assset types for a multiple choice dropdown"""
    
income_type_list() :
    """Returns a list of income types for a multiple choice dropdown"""

def non_wage_income_list():
    """Returns a list of income types for a multiple choice dropdown, excluding wages"""

expense_type_list() :
    """Returns a list of expense types for a multiple choice dropdown"""
    
def flatten(listname,index=1):
    """Return just the nth item in an 2D list. Intended to use for multiple choice option lists in Docassemble.
        e.g., flatten(asset_type_list()) will return ['Savings','Certificate of Deposit'...] """

def income_period(frequency):
  """Returns the plain language translation of the income period, which is a number"""
Package: docassemble.InterviewStats
docassemble.InterviewStatsA docassemble interview that lets you view statistics from other saved interview responses.Getting StartedPull this package into yourdocassemble playground, or install it on yourdocassemble server.To generate data that this interview can consume, use thestore_variables_snapshot()function in your interview, i.e.store_variables_snapshot(data={'zip': users[0].address.zip}).Once you have reached thestore_variables_snapshotpoint in your target interview, start the stats interview.If you're in the playground, run thestats.ymlinterview.If you installed the package, go to the/start/InterviewStats/stats/URL to start the interview.Select the target interview in the drop down.You can export the data in a Excel format by clicking theDownloadlink on the stats page.Anonymous statsIf you would like to provide login-less access to stats for an interview
in yourdispatchdirective, you can do so as follows:Add a directive in your configuration file, like this:stats subscriptions:-cdc_moratorium:12345abcedfg17821309-209a:4859123jkljsafdsf0913132Where the value on the left corresponds to the key of an entry in yourdispatchdirective, and the value on the right is an arbitrary password you
create. I recommend using something likehttps://onlinehashtools.com/generate-random-md5-hashto create a random password to control access.You can add as many unique passwords as you want for each entry you share.
This means you can distribute multiple links without sharing the password.Then, someone can access the link to a specific interview's stats by
visiting this url:/start/InterviewStats/subscribe/?link=cdc_moratorium&auth=12345abcedfg17821309They will be directed immediately to download an XlSX file containing the
statistics.ExampleRoadmapCurrently, we can show simple grouping over all the data points in the interview stats. However, the
special visualization are only shown on based on thezipattribute. We're working to expand the
features available here in conjunction with ourEFiling Integration.If you have specific feature requests, feel free to open an issue or make a PR!AuthorsQuinten SteenhuisBryce Willey
Package: docassemble.KinshipConnector
Legal Aid of West Virginia's Kinship Connector.This tool is designed to assist the general public with educating themselves on the different types of kinship arrangements available to them.  Once the user chooses a document to create, the interview will guide the user in entering the information needed to complete either a 1) Temporary Care Agreement, 2) Infant Guardianship, or 3) Adoption packet.  Once completed, these packets will provide instructions to the users on the next steps in their kinship process, including when and where to sign and how to print and submit to the court (if necessary).This project was developed as part of a LSC TIG and made available for reproduction and modification pursuant to grant requirements.
Package: docassemblekvsession
Flask-KVSession is anMIT-licensedserver-side
session replacement forFlask’s signed
client-based session management. Instead of storing data on the client, only a
securely generated ID is stored on the client, while the actual session data
resides on the server.This has two major advantages:Clients no longer see the session informationIt is possible to securely destroy sessions to protect against replay
attacks.Other things are possible with server side session that are impossible with
clients side sessions, like inspecting and manipulating data in absence of the
client.Flask-KVSession uses thesimplekv-package
for storing session data on a variety of backends, includingredis,memcached, SQL databases usingSQLAlchemy,mongoDBor
just flat files.Integration with Flask is seamless, once the extension is loaded for a Flask
application, it transparently replaces Flask’s own Session management. Any
application working with sessions should work the same with Flask-KVSession
(if it does not, file a bug!).Documentation and developmentDevelopmenthappens on github,
you can find thedocumentation on PyPI.