<commit_before><?php

date_default_timezone_set('America/Los_Angeles');

define('DISQUS_API_URL', 'http://dev.disqus.org:8000/api/');

require_once('PHPUnit/Framework.php');
require_once(dirname(__FILE__) . '/../disqus.php');
require_once(dirname(__FILE__) . '/../json.php');

define('USER_API_KEY', $_SERVER['argv'][count($_SERVER['argv'])-1]);

if (strlen(USER_API_KEY) != 64) {
	die('Syntax: phpunit tests.php <user_api_key>');
}

class DisqusAPITest extends PHPUnit_Framework_TestCase {
	public function test_get_user_name() {
		$dsq = new DisqusAPI(USER_API_KEY, null, DISQUS_API_URL);
		$response = $dsq->get_user_name();
		
		$this->assertTrue($response !== false, $dsq->get_last_error());
	}
<commit_msg>Port should be 9000<commit_after><?php

date_default_timezone_set('America/Los_Angeles');

define('DISQUS_API_URL', 'http://dev.disqus.org:9000/api/');

require_once('PHPUnit/Framework.php');
require_once(dirname(__FILE__) . '/../disqus.php');
require_once(dirname(__FILE__) . '/../json.php');

define('USER_API_KEY', $_SERVER['argv'][count($_SERVER['argv'])-1]);

if (strlen(USER_API_KEY) != 64) {
	die('Syntax: phpunit tests.php <user_api_key>');
}

class DisqusAPITest extends PHPUnit_Framework_TestCase {
	public function test_get_user_name() {
		$dsq = new DisqusAPI(USER_API_KEY, null, DISQUS_API_URL);
		$response = $dsq->get_user_name();
		
		$this->assertTrue($response !== false, $dsq->get_last_error());
	}

{'fraction_non_alphanumeric': 0.1874125874125874, 'fraction_numerical': 0.012587412587412588, 'mean_word_length': 6.7771739130434785, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5288930', 'n_tokens_mistral': 554, 'n_tokens_neox': 535, 'n_words': 73}