Nirjas: An open source framework for extracting metadata from the source code
<|reference_start|>Nirjas: An open source framework for extracting metadata from the source code: 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.<|reference_end|>
@article{bhardwaj2024nirjas:,
    title={Nirjas: An open source framework for extracting metadata from the source
  code},
    author={Ayush Bhardwaj, Sahil, Kaushlendra Pratap, Gaurav Mishra},
    journal={arXiv preprint arXiv:2409.14609},
    year={2024},
    doi={10.1109/Confluence52989.2022.9734222},
    archivePrefix={arXiv},
    eprint={2409.14609},
    primaryClass={cs.SE cs.IR}
}