Giter Site home page Giter Site logo

kenja's Introduction

Requirements

  • python 2.7+ (kenja doesn't support python 3 because GitPython does'nt support python 3)
  • Java

Dependencies

Kenja needs following libraries.

Installation

python setup.py

Manual Installation

git submodule init
git submodule update
cd parser/java
mvn assembly:assembly
cd -
cp parser/java/target/kenja-java-parser-0.1-jar-with-dependencies.jar kenja/lib/java-parser.jar
python setup.py install

How to use

Convert your git repository to historage

$kenja.historage.convert <your_repository_path> <path_of_historage_directory> <path_of_syntax_tree_directory>
  • Use path of empty directory for <path_of_historage_directory>
    • Historage (a Git repository) will be created here.
    • Kenja will make this directory automatically if you give non-existing directory.

Store syntax trees infromation [for DEBUG]

$kenja.historage.convert --synta-trees-dir=<path_of_syntax_tree_directory> <your_repository_path> <path_of_historage_directory> 
  • Information of syntax trees will be stored in the <path_of_syntax_tree_directory>
  • We recommend you to provide path of empty dir for <path_of_syntax_tree_directory>
    • Kenja will make a lot of files which contains syntax information to construct a historage.
    • Kenja will make this directory automatically if you give non-existing directory.

Detect extract method from your historage

$kenja.detection.extract_method all <historage_path>

Detect pull up method from your historage

$kenja.detection.pull_up_method all <historage_path>

Development

Install latest version of kenja

use install.sh

sh install.sh

Requirements

Apache Maven 2 or 3

kenja's People

Contributors

kvnnn avatar naogreentea avatar niyaton avatar umr00 avatar

Watchers

 avatar

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.