<commit_before>Disqus API 1.1

Please see http://groups.google.com/group/disqus-dev/web/api-1-1 for more information.

Sample usage::

	require('disqus/disqus.php');
	
	$dsq = new DisqusAPI($user_api_key, $forum_api_key);
	$username = $dsq->get_user_name();


To run the included unit tests you will need to install PHPUnit::

	php disqus/tests.php <your user_api_key><commit_msg>Improve example to show error handling<commit_after>Disqus API 1.1

Please see http://groups.google.com/group/disqus-dev/web/api-1-1 for more information.

Sample usage::

	require('disqus/disqus.php');
	
	$dsq = new DisqusAPI($user_api_key, $forum_api_key);
	if (($username = $dsq->get_user_name()) === false)
	{
	    throw new Exception($dsq->get_last_error());
	}


To run the included unit tests you will need to install PHPUnit::

	php disqus/tests.php <your user_api_key>
{'fraction_non_alphanumeric': 0.1306884480746791, 'fraction_numerical': 0.009334889148191364, 'mean_word_length': 4.644736842105263, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, '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': '1810819', 'n_tokens_mistral': 326, 'n_tokens_neox': 309, 'n_words': 77}