<commit_before># User Interface

## Prerequisites
* [Bower](http://bower.io) installed for Polymer package management
* [http-server](https://www.npmjs.org/package/http-server) installed to serve the ui locally
* Titan-Rexster server started at http://localhost:8182

### Installing and Configuring Titan-Rexster Server
1. Download [Titan-Rexster server](https://github.com/thinkaurelius/titan/wiki/Downloads) - use version 0.4.4 referred to as "Titan Server (All + Rexster)"
2. Open a Terminal, cd to the Titan download, and unzip it
3. Move the server directory to another location, if desired
4. To start the server:

	titan-server-0.4.4/bin/titan.sh start
	
5. Open a Chrome window and go to the URL:

	http://localhost:8182/doghouse/main/graph/graph
	
6. Click the section labeled "tp:gremlin"
7. In the "script" textbox type:
	
	g.loadGraphSON('<path_to_ui_directory>/resources/metasploit_short.json')
	
8. Click "Execute"

## Build and Start Locally
1. Open a terminal and cd into the ui directory
2. To start the ui server run:

	http-server ./
	
3. Open a Chrome window and go to the URL:

	http://0.0.0.0:8080
	

## Usage<commit_msg>Another README fix.<commit_after># User Interface

## Prerequisites
* [Bower](http://bower.io) installed for Polymer package management
* [http-server](https://www.npmjs.org/package/http-server) installed to serve the ui locally
* Titan-Rexster server started at http://localhost:8182

### Installing and Configuring Titan-Rexster Server
1. Download [Titan-Rexster server](https://github.com/thinkaurelius/titan/wiki/Downloads) - use version 0.4.4 referred to as "Titan Server (All + Rexster)"
2. Open a Terminal, cd to the Titan download, and unzip it
3. Move the server directory to another location, if desired
4. To start the server:

	titan-server-0.4.4/bin/titan.sh start
	
5. Open a Chrome window and go to the URL:

	http://localhost:8182/doghouse/main/graph/graph
	
6. Click the section labeled "tp:gremlin"
7. In the "script" textbox type:

	g.loadGraphSON('path-to-ui-directory/resources/metasploit_short.json')
	
8. Click "Execute"

## Build and Start Locally
1. Open a terminal and cd into the ui directory
2. To start the ui server run:

	http-server ./
	
3. Open a Chrome window and go to the URL:

	http://0.0.0.0:8080
	

## Usage
{'fraction_non_alphanumeric': 0.11009174311926606, 'fraction_numerical': 0.028833551769331587, 'mean_word_length': 3.9782608695652173, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6970994', 'n_tokens_mistral': 794, 'n_tokens_neox': 729, 'n_words': 263}