<commit_before>---
layout: default
title: Installation
---
h2. Installation

This page explains how to install the standard Ruby or JRuby flavors of rubyrep.

h2. Which flavor?

If you just want to get started in the quickest way, choose JRuby.

For more background information, here a comparison between both flavors:

|_. &nbsp; |_. Standard Ruby flavor|_. JRuby flavor|
|Capabilities|\2=. exactly the same|
|Performance|slower|*faster* (by about one third)[1]|
|Ease of installation|harder|*easier* (more "info":installation.html)| 

fn1. rubyrep command startup time under JRuby is slower though (around 9 seconds). Under standard Ruby it is not noticable.

h2. Installing the JRuby version

Pre-condition: Java is installed (tested with version 1.6; version 1.5 might also work).

# Download the latest JRuby rubyrep package from "Rubyforge":http://rubyforge.org/frs/?group_id=7932.
  (There are different files available. Choose the ZIP package.)
# Unzip
# Done

The @rubyrep@ command (through which everything is controlled) is available in the created folder.

h2. Installing the standard Ruby version

# Install the Ruby environment[1]
# Install the database driver.
  Normally 
  @sudo gem install postgres@
  or
  @sudo gem install mysql@
  will do the trick.
# Install rubyrep
  @sudo gem install rubyrep@

After installation, the @rubyrep@ command will be placed in the path.

fn1.
Explanation not in the scope of this document, refer to "this site":http://www.techotopia.com/index.php/Getting_and_Installing_Ruby for some pointers.

h2. Next Steps

Next step would be to configure rubyrep for whatever you want it to do.
Head to the "tutorial":tutorial.html for guides to typical scenarios.
<commit_msg>Updated with installation instructions for rubyrep version 2.0.0<commit_after>---
layout: default
title: Installation
---
h2. Installation

This page explains how to install the standard Ruby or JRuby flavors of rubyrep.

h2. Which flavor?

If you just want to get started in the quickest way, choose JRuby.

For more background information, here a comparison between both flavors:

|_. &nbsp; |_. Standard Ruby flavor|_. JRuby flavor|
|Capabilities|\2=. exactly the same|
|Performance|slower|*faster* (by about one third)[1]|
|Ease of installation|harder|*easier* (more "info":installation.html)| 

fn1. rubyrep command startup time under JRuby is slower though (around 9 seconds). Under standard Ruby it is not noticable.

h2. Installing the JRuby version

Pre-condition: Java is installed (tested with version 1.8).

# Download the latest JRuby rubyrep package from "Bintray":https://bintray.com/rubyrep/rubyrep/rubyrep-jruby.
# Unzip
# Done

The @rubyrep@ command (through which everything is controlled) is available in the created folder.

h2. Installing the standard Ruby version

# Install the Ruby environment[1]
# Install the database driver.
  Normally 
  @sudo gem install pg@
  or
  @sudo gem install mysql2@
  will do the trick.
# Install rubyrep
  @sudo gem install rubyrep@

After installation, the @rubyrep@ command will be placed in the path.

fn1.
Explanation not in the scope of this document, refer to "this site":http://www.techotopia.com/index.php/Getting_and_Installing_Ruby for some pointers.

h2. Next Steps

Next step would be to configure rubyrep for whatever you want it to do.
Head to the "tutorial":tutorial.html for guides to typical scenarios.

{'fraction_non_alphanumeric': 0.07719505008839128, 'fraction_numerical': 0.01060695344725987, 'mean_word_length': 4.432, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '470442', 'n_tokens_mistral': 1067, 'n_tokens_neox': 961, 'n_words': 443}