<commit_before># Requirements

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

# Dependencies
Kenja needs following libraries.

- [pyrem_torq](https://github.com/tos-kamiya/pyrem_torq)
- [GitPython](https://github.com/gitpython-developers/GitPython/)
- [kenja-java-parser](https://github.com/niyaton/kenja-java-parser/)

# 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.convert convert <your_repository_path> <path of working directory>
```

The direcotry ``base_repo`` is a historage converted by kenja.

## Detect extract method from your historage
```
$kenja.detection all <historage_path>
```

# Development
## Install latest version of kenja
use install.sh

```
sh install.sh
```

### Requirements
Apache Maven 2 or 3
<commit_msg>fix README<commit_after># Requirements

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

# Dependencies
Kenja needs following libraries.

- [pyrem_torq](https://github.com/tos-kamiya/pyrem_torq)
- [GitPython](https://github.com/gitpython-developers/GitPython/)
- [kenja-java-parser](https://github.com/niyaton/kenja-java-parser/)

# 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_working_directory> <path_of_syntax_tree_directory>
```

The direcotry ``base_repo`` is a historage converted by kenja.

## Detect extract method from your historage
```
$kenja.detection all <historage_path>
```

# Development
## Install latest version of kenja
use install.sh

```
sh install.sh
```

### Requirements
Apache Maven 2 or 3

{'fraction_non_alphanumeric': 0.12539899680802555, 'fraction_numerical': 0.00729594163246694, 'mean_word_length': 4.804232804232805, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6357402', 'n_tokens_mistral': 780, 'n_tokens_neox': 722, 'n_words': 190}