<commit_before># WARP 10 IDE Setup & Build  

## IDE Setup

### Eclipse Configuration
In order to avoid conflicts between gradle & Eclipse, please configure Eclipse default output path on another directory BEFORE importing the gradle project(bin for example in Preferences/Java/Build Path)

### Execute Gradle tasks
Generate Thrift source code with the tasks

    gradle warp10:generateThrift
    gradle token:generateThrift

### Import the project with Eclipse
Import the project in Eclipse as Gradle project.
If build/gen-java are not compiled on warp10 & token subproject, refresh it manually.

Warp10 should compile and run at this step.

### Import the project with IntelliJ
Open the project in IntelliJ with 'File/Open...'
The project should be imported as Gradle project by IntelliJ.<commit_msg>Add some lines on building.md about the setup of thrift on MAC OS for Warp10<commit_after># WARP 10 IDE Setup & Build  

## Install Thrift on MAC OS
The current version of thrift used by Warp10 is thrift 0.9.1. Download the tar.gz on the official Apache Thrift page (http://archive.apache.org/dist/thrift/0.9.1/). Then execute the following commands: 

	./configure --without-python --prefix=/opt/thrift CPPFLAGS='-I/usr/local/opt/openssl/include'
	make

Make may raise Errors and warning, do not care about it and exec: 

	sudo make install
  
Then add "/opt/thrift/bin" to your path before follwing the next steps

## IDE Setup

### Eclipse Configuration
In order to avoid conflicts between gradle & Eclipse, please configure Eclipse default output path on another directory BEFORE importing the gradle project(bin for example in Preferences/Java/Build Path)

### Execute Gradle tasks
Generate Thrift source code with the tasks

    gradle warp10:generateThrift
    gradle token:generateThrift

### Import the project with Eclipse
Import the project in Eclipse as Gradle project.
If build/gen-java are not compiled on warp10 & token subproject, refresh it manually.

Warp10 should compile and run at this step.

### Import the project with IntelliJ
Open the project in IntelliJ with 'File/Open...'
The project should be imported as Gradle project by IntelliJ.
{'fraction_non_alphanumeric': 0.06010171058714748, 'fraction_numerical': 0.012020342117429497, 'mean_word_length': 4.290953545232274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7093774', 'n_tokens_mistral': 602, 'n_tokens_neox': 558, 'n_words': 288}