10.1.0 • Published 2 years ago

bugfinder-framework v10.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

BugFinder-Framework

This is a framework dedicated to automating finding bugs in source artefacts based on measurements and machine learning algorithms.

This framework´s main use case is researching correlations between measurements and bug occurrence. It addresses reusability, modifiability and portability (adaptability, installibility and replaceability) of components needed to research correlations between source artefact measurements and bug occurrence.

Different researchers should be able to exchange components of the bugfinder program and therefore be able to distribute research among researchers world wide. With all needed components given you should be able to automatically analyse code and find localities with high bug probability.

Table of Contents

Quick start

The best way to start is to clone the bugFinder repository and make changes there.
You can change components for locality-recording, locality-preprocessing, quantification, annotation and preprocessing.

Introduction

The whole process beginning with recording until classification of localities is designed with a pipeline: Machine_Learning_Pipeline

This project supports the learning phase. This framework defines all interfaces for each step of the pipeline. Researchers want to develop or use others´ implementation of the components needed to realise this machine learning pipeline. Please see the main repository: bugFinder repository for whole documentation.

Recording by example

All used examples in the following documentations are already implemented and ready to use.

Record all features. F.e. record all Lines Of Code for each file in each Commit.

  1. You first need to record all localities, CommitPaths, of a repository. A CommitPath is a path in a commit.

  2. After that you can preprocess your CommitPaths. For example filtering all the paths you do not want to quantify, like .txt-, .md-files and only keep CommitPaths with paths in src ending with .ts.

  3. After that you want to quantify your CommitPaths, f.e. with the SonarQubeQuantifier. Therefore getting a map of CommitPaths to SonarQubeMeasurements.

  4. You might also want to annotate your localities so that you have labels needed for suppervised learning algorithms. You can label your CommitPaths with analyzing the Commit-message for semantic key words like "bug, fix, error, fail" indicating a correction of a bug.

Now you have a database of localities, quantifications (features) and annotations (classes).

Preprocessing by example

Preprocess your data from the recording phase.

F.e.: Find the last 3 changes of a CommitPath with a bug indicating commit message. Those changes are localities by them self: CommitPaths. Now you can analyse the changes made before a CommitPath got a bug. F.e. the max. added Lines Of Code in a change.

In the training phase you might find statistical correlation between the amount of lines of codes added in one single change and the likelyhood of a bug beeing fixed later in that file. Therefore indicating a bug added in that file.

Training

Training is give by a template project: @see bugFinder-machineLearning
You want to train a model to be able to predict bugs using the dataset generated by the previous steps.

Component realisations available

You can find different components realisations open source on github and npm. Search for bugfinder-*

Shared

DB

Recording

LocalityRecorder (and therefore localities)

npm search: bugfinder-localityrecorder-*

LocalityPreprocessors

npm search: bugfinder-$LOCALITY_CLASS-localityPreprocessor-*

Quantifier

npm search: bugfinder-$LOCALITY_CLASS-quantifier-*

Annotator

npm search: bugfinder-$LOCALITY_CLASS-annotator-*

Preprocessor

npm search: bugfinder-$LOCALITY_CLASS-$ANNOTATION_TYPE-$QUANTIFICATION_TYPE-preprocessor-*

Machine Learning

10.0.0

3 years ago

10.0.1

2 years ago

10.0.2

2 years ago

10.1.0

2 years ago

9.12.0

3 years ago

9.10.1

3 years ago

9.13.0

3 years ago

9.13.1

3 years ago

9.13.2

3 years ago

9.11.0

3 years ago

9.9.0

3 years ago

9.10.0

3 years ago

9.8.2

3 years ago

9.8.1

3 years ago

9.8.0

3 years ago

9.7.0

3 years ago

9.8.3

3 years ago

9.6.0

3 years ago

9.5.0

3 years ago

9.4.0

3 years ago

9.3.0

3 years ago

9.0.3

3 years ago

9.2.0

3 years ago

9.0.2

3 years ago

9.1.0

3 years ago

8.5.0

3 years ago

8.7.0

3 years ago

8.6.0

3 years ago

8.4.1

3 years ago

8.4.0

3 years ago

8.4.2

3 years ago

8.3.2

3 years ago

8.3.1

3 years ago

8.1.0

3 years ago

8.3.0

3 years ago

8.2.1

3 years ago

8.2.0

3 years ago

8.1.1

3 years ago

8.0.0

3 years ago

7.0.0

3 years ago

5.1.0

3 years ago

6.0.0

3 years ago

3.1.0

3 years ago

4.0.0

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

2.1.1

3 years ago

1.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago