<commit_before><?php
	
	$objectURL = "www.seomoz.org";
	
	//Add your accessID here
	$AccessID = '';
	
	//Add your secretKey here
	$SecretKey = '';
	

    include '../bootstrap.php';
	
	$authenticator = new Authenticator();
	$authenticator->setAccessID($AccessID);
	$authenticator->setSecretKey($SecretKey);
	
	
	/*$urlMetricsService = new URLMetricsService();
	$response = $urlMetricsService->getUrlMetrics($objectURL);
	var_dump($response);*/
	
	$linksService = new LinksService($authenticator);
	$response = $linksService->getLinks($objectURL, LINKS_SCOPE_PAGE_TO_PAGE, null, LINKS_SORT_PAGE_AUTHORITY, LINKS_COL_URL, 0 , 10);
	var_dump($response);	
	
	/*
	$anchorTextService = new AnchorTextService($authenticator);
	$response = $anchorTextService->getAnchorText($objectURL, ANCHOR_SCOPE_TERM_TO_PAGE, ANCHOR_SORT_DOMAINS_LINKING_PAGE, ANCHOR_COL_TERM_OR_PHRASE + ANCHOR_COL_INTERNAL_PAGES_LINK);
	var_dump($response);
	*/
	
	/*
	$topPagesService = new TopPagesService();
	$response = $topPagesService->getTopPages($objectURL, TOPPAGES_COL_ALL, 0, 3);
	var_dump($response);
	*/
	
?><commit_msg>fixes bug in sample code where the URLMetricsService and TopPagesService didn't not have the proper arguments passed to the constructor<commit_after><?php
	
	$objectURL = "www.seomoz.org";
	
	//Add your accessID here
	$AccessID = '';
	
	//Add your secretKey here
	$SecretKey = '';
	

    include '../bootstrap.php';
	
	$authenticator = new Authenticator();
	$authenticator->setAccessID($AccessID);
	$authenticator->setSecretKey($SecretKey);
	
	
	/*$urlMetricsService = new URLMetricsService($authenticator);
	$response = $urlMetricsService->getUrlMetrics($objectURL);
	var_dump($response);*/
	
	$linksService = new LinksService($authenticator);
	$response = $linksService->getLinks($objectURL, LINKS_SCOPE_PAGE_TO_PAGE, null, LINKS_SORT_PAGE_AUTHORITY, LINKS_COL_URL, 0 , 10);
	var_dump($response);	
	
	/*
	$anchorTextService = new AnchorTextService($authenticator);
	$response = $anchorTextService->getAnchorText($objectURL, ANCHOR_SCOPE_TERM_TO_PAGE, ANCHOR_SORT_DOMAINS_LINKING_PAGE, ANCHOR_COL_TERM_OR_PHRASE + ANCHOR_COL_INTERNAL_PAGES_LINK);
	var_dump($response);
	*/
	
	/*
	$topPagesService = new TopPagesService($authenticator);
	$response = $topPagesService->getTopPages($objectURL, TOPPAGES_COL_ALL, 0, 3);
	var_dump($response);
	*/
	
?>
{'fraction_non_alphanumeric': 0.12768595041322314, 'fraction_numerical': 0.004132231404958678, 'mean_word_length': 5.082914572864322, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6864530', 'n_tokens_mistral': 909, 'n_tokens_neox': 807, 'n_words': 133}