Skip to content

SSCT-Lab/PyFPattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyFPattern

Mining Python Fix Patterns via Analyzing Fine-Grained Source Code Changes

Structure of the Directories:

※Data Set:

Data Set folder contains the experimental data, divided into five sub-sub-folders, according to the granularity of differences in the bug-fixing files.

Bug-fixing-1 and bug-fixing-2 contain single hunk bugs, and bug fix only add/del code statements.

Bug-fixing-3 and bug-fixing-4 mainly contain code changes in multiple locations but in a single function.

Bug-fixing-5 mainly contains code changes in multiple locations but in one file.

※Test Set:

Open Source Projects: four open source project datasets (tensorlayer,powerline,mopidy,flask)

QuixBugs (Python): https://jkoppel.github.io/QuixBugs/

※Source Code:

diffFile/miningPattern: Run this file. getHunks() function is used to filter single hunk bugs; compare_AST_distance() function is used to calculate the AST edit distance.

diffFile/reWriteName.py: This class is used in the data pre-processing phase to rename the source code.

ddg: Get program's data dependency graph

About

Mining Python Fix Patterns via Analyzing Fine-GrainedSource Code Change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages