<commit_before># Example 00_test

Simple test to demonstrate how isomorphic javascript works (most basic example). 

## To Install

	$ npm install

### Dev Dependencies
This uses an awesome library called `browserify` which to allow node-style modules to be used in the browser. See [node-brwserify](https://github.com/substack/node-browserify) for more information

## 1) To run server side
Assuming you have everything running installed and properly setup, run the following command:

	$ node index.js

The output should be:

	my string!
Not very exciting but, it proves that there are no errors. Now let's try it in the browser!

## 2) To run in the client (browser)
Run the following command to output a client side version:

	$ browserify index.js -o bundle.js
	
This should output a file called `bundle.js` which will contain all of our server side code. To see this in action, open `index.html` in a browser (such as chrome). 

In the browser console, you should see:
	
	my string!	<commit_msg>Updated ReadMe fixed typos and improved instructuions<commit_after># Example 00_test

Simple test to demonstrate how isomorphic javascript works (basic example). 

## To Install

	$ npm install

### Dev Dependencies
This uses an awesome library called `browserify` which allows node-style modules to be used in the browser. See [node-brwserify](https://github.com/substack/node-browserify) for more information

Run the following command to install `browserify` locally:

	$ npm install -g browserify

## 1) To run server side
Assuming you have everything installed and properly setup, run the following command:

	$ node index.js

The output should be:

	my string!

Not very exciting. In fact, quite boring. However, it proves that there are no errors and you are setup properly. Now, let's try this in the browser!

## 2) To run in the client (browser)
Run the following command to output a client side version (here's where `browserify` comes in):

	$ browserify index.js -o bundle.js
	
This should output a file called `bundle.js` which will contain all of our server side code which is wrapped up and exposed to the client. To see this in action, open `index.html` in a browser (such as chrome). 

When the page loads you should see the following statement in the console:
	
	my string!

You may be saying one of two phrases: "Holy bananas batman! What just happened!?" or "eh".

The general idea is we used `browserify` to wrap the server side javascript and exposed it to the browser. This also means you can start using `require` in your front-end code.

{'fraction_non_alphanumeric': 0.06279251170046801, 'fraction_numerical': 0.0031201248049922, 'mean_word_length': 4.1923076923076925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4008177', 'n_tokens_mistral': 706, 'n_tokens_neox': 655, 'n_words': 383}