<commit_before>=Snitch 
Snitch is an subversion post-commit service integration helper. I just
 made that up. Subversion has a post-commit hook which is executed
 each time you commit a change to a repository. Snitch makes it really
 easy to hook into the post-commit and send the commit message along
 with the files changed to various services on the web. 

 Currently, snitch works with campfire and twitter. I'll be adding in
 SMS, email, some day but feel free to do it yourself and send me a
 patch. 

==Installation:

NOTE: the twitter gem will not work with a 0.5+ version of hpricot at this time due to a xml parsing bug

1. sudo gem install hpricot --source http://code.whytheluckystiff.net -v 0.4.86 
	
2. sudo gem install twitter tinder snitch
   sudo gem sources -a http://gems.github.com/ 
   sudo gem install mojombo-grit open4 mime-types

3. Create a configuration file (default is /home/deploy/.snitch) that
looks like the following (be sure to fill in all the values). Be sure
that none of the tabs from below get stay in the config file. It gets
parse by yaml so formatting is important.

	# SNITCH START
	# what is the location of svnlook (you can find this on *nix boxes by typing `which svnlook`)
	svnlook: /usr/bin/svnlook

	# what services would you like to send commit messages to?
	services:
	  :campfire:
	    :subdomain: 
	    :login: 
	    :password: 
	    :room: Development
	  :twitter:
	    :login: 
	    :password: 
	# SNITCH END

4. Create or edit the post-commit file inside yo ur repository to look
like the following. Be sure to edit the CONFIG_FILE variable to
wherever you created your config file in step 3.

	#!/bin/sh
	REPOS="$1"
	REV="$2"<commit_msg>Return readme to original linebreaks, finish off git stuff.<commit_after>=Snitch
Snitch is an subversion post-commit service integration helper. I just made that up. Subversion has a post-commit hook which is executed each time you commit a change to a repository. Snitch makes it really easy to hook into the post-commit and send the commit message along with the files changed to various services on the web. 

Currently, snitch works with campfire and twitter. I'll be adding in SMS, email, some day but feel free to do it yourself and send me a patch. 

==Installation:

NOTE: the twitter gem will not work with a 0.5+ version of hpricot at this time due to a xml parsing bug

1. sudo gem install hpricot --source http://code.whytheluckystiff.net -v 0.4.86 
	
2. sudo gem install twitter tinder snitch

   Needed for the git support:

   sudo gem sources -a http://gems.github.com/ 
   sudo gem install mojombo-grit open4 mime-types


3. Create a configuration file (default is /home/deploy/.snitch) that looks like the following (be sure to fill in all the values). Be sure that none of the tabs from below get stay in the config file. It gets parse by yaml so formatting is important.

	# SNITCH START
	# what is the location of svnlook (you can find this on *nix boxes by typing `which svnlook`)
	svnlook: /usr/bin/svnlook

  # If you want git support, comment out the line above and uncomment this one:
  # git: true

	# what services would you like to send commit messages to?
	services:
	  :campfire:
	    :subdomain: 
	    :login: 
	    :password: 
	    :room: Development
	  :twitter:
	    :login: 
	    :password: 
	# SNITCH END

4. Create or edit the post-commit file inside your repository to look like the following. Be sure to edit the CONFIG_FILE variable to wherever you created your config file in step 3.

	#!/bin/sh
	REPOS="$1"
	REV="$2"
{'fraction_non_alphanumeric': 0.06024774774774775, 'fraction_numerical': 0.007882882882882882, 'mean_word_length': 3.40272614622057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7000481', 'n_tokens_mistral': 1098, 'n_tokens_neox': 993, 'n_words': 543}