Nirjas: An open source framework for extracting metadata from the source code

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bhardwaj, Ayush, Sahil, Pratap, Kaushlendra, Mishra, Gaurav
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909322236133376
author Bhardwaj, Ayush
Sahil
Pratap, Kaushlendra
Mishra, Gaurav
author_facet Bhardwaj, Ayush
Sahil
Pratap, Kaushlendra
Mishra, Gaurav
contents Metadata and comments are critical elements of any software development process. In this paper, we explain how metadata and comments in source code can play an essential role in comprehending software. We introduce a Python-based open-source framework, Nirjas, which helps in extracting this metadata in a structured manner. Various syntaxes, types, and widely accepted conventions exist for adding comments in source files of different programming languages. Edge cases can create noise in extraction, for which we use Regex to accurately retrieve metadata. Non-Regex methods can give results but often miss accuracy and noise separation. Nirjas also separates different types of comments, source code, and provides details about those comments, such as line number, file name, language used, total SLOC, etc. Nirjas is a standalone Python framework/library and can be easily installed via source or pip (the Python package installer). Nirjas was initially created as part of a Google Summer of Code project and is currently developed and maintained under the FOSSology organization.
format Preprint
id arxiv_https___arxiv_org_abs_2409_14609
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Nirjas: An open source framework for extracting metadata from the source code
Bhardwaj, Ayush
Sahil
Pratap, Kaushlendra
Mishra, Gaurav
Software Engineering
Information Retrieval
Metadata and comments are critical elements of any software development process. In this paper, we explain how metadata and comments in source code can play an essential role in comprehending software. We introduce a Python-based open-source framework, Nirjas, which helps in extracting this metadata in a structured manner. Various syntaxes, types, and widely accepted conventions exist for adding comments in source files of different programming languages. Edge cases can create noise in extraction, for which we use Regex to accurately retrieve metadata. Non-Regex methods can give results but often miss accuracy and noise separation. Nirjas also separates different types of comments, source code, and provides details about those comments, such as line number, file name, language used, total SLOC, etc. Nirjas is a standalone Python framework/library and can be easily installed via source or pip (the Python package installer). Nirjas was initially created as part of a Google Summer of Code project and is currently developed and maintained under the FOSSology organization.
title Nirjas: An open source framework for extracting metadata from the source code
topic Software Engineering
Information Retrieval
url https://arxiv.org/abs/2409.14609