Giter Site home page Giter Site logo

changevectorcollector's Introduction

ChangeVectorCollector

Uses the BIC information collected from DPminer to embed the BICs into a vector. The vector embedding is done by defining the type of changed nodes and their AST using an algorithm called Gumtree.


How to build: Gradle

 $ ./gradlew distZip 

or

 $ gradle distZip 

After the command do follwing to unzip the distZip:

 unzip ./build/distributions/change-vector-collector.zip 

The executable file is in build/distributions/change-vector-collector/bin

If you have trouble to build using gradlew, enter

$ gradle wrap

Project components

  1. making buggy training set
    a. -r --repo (get BIC to BBIC)
    1. description: collects BBIC from BIC, which is needed before gumvec collection. BBIC contains the information of changes of before BIC.
    2. example:
     ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -r -u "https://github.com/haidaros/defects4j-math" -i "/Users/jihoshin/Downloads/" -o "/Users/jihoshin/Downloads/" 
    b. -g --gumtree (BBIC to x and y)
    1. description: applies gumtree algorithm on BBICs and outputs change vectors and the information (label) file. 2.example:
     ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -g -u "https://github.com/apache/commons-math" -i "/Users/jihoshin/Downloads/" -o "/Users/jihoshin/Downloads/" 
  2. making clean training set
    a. -q --clean (repo to x and y)
    1. description: collects clean changes in a repo. This is used to collect clean train sets.
    2. example:
     ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -q -u "https://github.com/apache/commons-math" -i "/Users/jihoshin/Downloads/" -o "/Users/jihoshin/Downloads/" 
  3. making test set (combined)
    a. -a --all
    1. description: collects all changes (both buggy and clean) in a repo. This is used to collect test instances.
    2. example:
     ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -a -u "https://github.com/apache/opennlp" -i "./assets/" -o "./assets/" 
  4. miscellaneous
    a. -z --zero
    1. description: remove empty vectors and key duplications.
    2. example:
     ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -z -u "https://github.com/apache/tez" -i "./assets/rm_zero/out/" -o "./assets/rm_zero/out/out2/" 
    b. -l --local
    1. description: loads BBIC from an existing file in the local system.
    2. example:
     ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -l -u "https://github.com/apache/commons-math" -i "./assets/BBIC_commons-math.csv" 
    -o "./assets/"
    c. -d --defects4j
    1. description: makes test files for defects4j specifically (different in collecting BIC).
    2. example:
    ./ChangeVectorCollector/change-vector-collector/bin/change-vector-collector -d -u "https://github.com/apache/commons-csv" -i "./assets/d4j/" -o "./assets/d4j/" 

changevectorcollector's People

Contributors

shinjh0849 avatar hguisel avatar

Stargazers

kobe avatar

Watchers

James Cloos avatar  avatar

Forkers

kobeontheway

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.