St Andrews Research Repository

St Andrews University Home
View Item 
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  •   St Andrews Research Repository
  • University of St Andrews Research
  • University of St Andrews Research
  • University of St Andrews Research
  • View Item
  • Login
JavaScript is disabled for your browser. Some features of this site may not work without it.

inspect4py : a knowledge extraction framework for Python code repositories

Thumbnail
View/Open
Code_inspector_4_pages_MSR_2022.pdf (543.3Kb)
Date
04/03/2022
Author
Filgueira, Rosa
Garijo, Daniel
Keywords
Code mining
Software code
Software classification
Software documentation
Code understanding
QA75 Electronic computers. Computer science
QA76 Computer software
ZA4050 Electronic information resources
NS
Metadata
Show full item record
Altmetrics Handle Statistics
Abstract
This work presents inspect4py, a static code analysis framework designed to automatically extract the main features, metadata and documentation of Python code repositories. Given an input folder with code, inspect4py uses abstract syntax trees and state of the art tools to find all functions, classes, tests, documentation, call graphs, module dependencies and control flows within all code files in that repository. Using these findings, inspect4py infers different ways of invoking a software component. We have evaluated our framework on 95 annotated repositories, obtaining promising results for software type classification (over 95% F1-score). With inspect4py, we aim to ease the understandability and adoption of software repositories by other researchers and developers.
Citation
Filgueira , R & Garijo , D 2022 , inspect4py : a knowledge extraction framework for Python code repositories . in The 2022 Mining Software Repositories Conference . ACM , 2022 Mining Software Repositories Conference (MSR 2022) , Pittsburgh , Pennsylvania , United States , 23/05/22 .
 
conference
 
Publication
The 2022 Mining Software Repositories Conference
Type
Conference item
Rights
Copyright © 2022 Association of Computing Machinery. This work has been made available online in accordance with publisher policies or with permission. Permission for further reuse of this content should be sought from the publisher or the rights holder. This is the author created accepted manuscript following peer review and may differ slightly from the final published version. The final published version of this work is available at https://dl.acm.org/.
Collections
  • University of St Andrews Research
URL
https://github.com/SoftwareUnderstanding/inspect4py
https://doi.org/10.5281/zenodo.5907936
URI
http://hdl.handle.net/10023/25075

Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.

Advanced Search

Browse

All of RepositoryCommunities & CollectionsBy Issue DateNamesTitlesSubjectsClassificationTypeFunderThis CollectionBy Issue DateNamesTitlesSubjectsClassificationTypeFunder

My Account

Login

Open Access

To find out how you can benefit from open access to research, see our library web pages and Open Access blog. For open access help contact: openaccess@st-andrews.ac.uk.

Accessibility

Read our Accessibility statement.

How to submit research papers

The full text of research papers can be submitted to the repository via Pure, the University's research information system. For help see our guide: How to deposit in Pure.

Electronic thesis deposit

Help with deposit.

Repository help

For repository help contact: Digital-Repository@st-andrews.ac.uk.

Give Feedback

Cookie policy

This site may use cookies. Please see Terms and Conditions.

Usage statistics

COUNTER-compliant statistics on downloads from the repository are available from the IRUS-UK Service. Contact us for information.

© University of St Andrews Library

University of St Andrews is a charity registered in Scotland, No SC013532.

  • Facebook
  • Twitter