<commit_before>store.js
========

store.js exposes a simple API for cross browser local store

	// Store 'marcus' at 'username'
	store.set('username', 'marcus')
	
	// Get 'username'
	store.get('username')
	
	// Delete 'username'
	store.del('username')
	
	// Clear all keys
	store.clear()
	
	// Use JSON to stash an object (see http://www.json.org/json2.js)
	store.set('user', JSON.stringify({ name: 'marcus', likes: 'javascript' }))
	
	// Use JSON to retrieve an object (see http://www.json.org/json2.js)
	var user = JSON.parse(store.get('user'))
	alert(user.name + ' likes ' + user.likes)

Tests
-----
Go to test.html in your browser.

So far tested in

 - Tested Firefox 3.6
 - Tested in Chrome 5
 - Tested in Safari 5
 - Tested in IE7

TODO
----
I wrote store.js in the past hour looking at https://developer.mozilla.org/en/dom/store and http://msdn.microsoft.com/en-us/library/ms531424.aspx. I haven't tested it yet though.

 - I believe underlying APIs can throw under certain conditions. Where do we need try/catch?
 - Test in IE6
 - Test in IE8
 - Test in Firefox 2.0
 - Test in Firefox 3.0
 - Test in Firefox 3.5
 - Test in Safari 2
 - Test in Safari 3
 - Test in Safari 4
 - Test in Chrome 4
 - Test in Opera 9
 - Test in Opera 10<commit_msg>Now tested in Firefox 2.0/3.0/3.6, Chrome 5, Safari 4/5, IE6/7/8. Does not work in Opera 10 or Firefox 1.0 yet<commit_after>store.js
========

store.js exposes a simple API for cross browser local store

	// Store 'marcus' at 'username'
	store.set('username', 'marcus')
	
	// Get 'username'
	store.get('username')
	
	// Delete 'username'
	store.del('username')
	
	// Clear all keys
	store.clear()
	
	// Use JSON to stash an object (see http://www.json.org/json2.js)
	store.set('user', JSON.stringify({ name: 'marcus', likes: 'javascript' }))
	
	// Use JSON to retrieve an object (see http://www.json.org/json2.js)
	var user = JSON.parse(store.get('user'))
	alert(user.name + ' likes ' + user.likes)

Tests
-----
Go to test.html in your browser.

So far tested in

 - Tested in Firefox 2.0
 - Tested in Firefox 3.0
 - Tested in Firefox 3.6
 - Tested in Chrome 5
 - Tested in Safari 4
 - Tested in Safari 5
 - Tested in IE6
 - Tested in IE7
 - Tested in IE8

TODO
----

 - I believe underlying APIs can throw under certain conditions. Where do we need try/catch?
 - Fix for Firefox 1.0 (borken)
 - Fix for Opera 10 (borken)
 - Test in Firefox 3.5
 - Test in Safari 2
 - Test in Safari 3
 - Test in Chrome 4
 - Test in Opera 9
{'fraction_non_alphanumeric': 0.1305578011317704, 'fraction_numerical': 0.0274858528698464, 'mean_word_length': 2.8551401869158877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, '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': '6971761', 'n_tokens_mistral': 914, 'n_tokens_neox': 822, 'n_words': 317}