<commit_before>rpi_node
========

A node application to get up and running with Raspberry Pi and Cassandra


## Install node.js
```sh
ssh pi@192.168.1.100 (Your Paspberry Pi ip address)
```

```sh
wget http://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz
tar xvf node-v0.10.35.tar.gz
cd node-v0.10.35
./configure
make (It takes a while to compile - 2+ hours)
sudo make install
```

## Install Java (If necessary)
```sh
sudo apt-get update && sudo apt-get install oracle-java7-jdk
```

## Install Cassandra
```sh
http://downloads.datastax.com/community/dsc-cassandra-2.1.2-bin.tar.gz
tar -zxvf dsc-cassandra-2.1.2-bin.tar.gz
./dsc-cassandra-2.1.2/bin/cassandra
```

## Prepare Cassandra

```javascript<commit_msg>Updated Readme for Cassandra configuration<commit_after>rpi_node
========

A node application to get up and running with Raspberry Pi and Cassandra


## Install node.js
```sh
ssh pi@192.168.1.100 (Your Paspberry Pi ip address)
```

```sh
wget http://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz
tar xvf node-v0.10.35.tar.gz
cd node-v0.10.35
./configure
make (It takes a while to compile - 2+ hours)
sudo make install
```

## Install Java (If necessary)
```sh
sudo apt-get update && sudo apt-get install oracle-java7-jdk
```

## Install Cassandra
```sh
http://downloads.datastax.com/community/dsc-cassandra-2.1.2-bin.tar.gz
tar -zxvf dsc-cassandra-2.1.2-bin.tar.gz
./dsc-cassandra-2.1.2/bin/cassandra
```

Edit the ./conf/cassandra.yaml and the the 'broadcast_rpc_address' to the ipaddress of the Raspberry Pi. You should be able to connect DataStax DevCenter to it.

## Prepare Cassandra

```javascript
{'fraction_non_alphanumeric': 0.1523219814241486, 'fraction_numerical': 0.05077399380804953, 'mean_word_length': 3.896969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2384702', 'n_tokens_mistral': 675, 'n_tokens_neox': 607, 'n_words': 163}