<commit_before>var system = require('system');
var args = [];
var pages = [];
var webpage = require('webpage');
var tabs = 0;
var iterations = 0;
var throttle = 30;
var original_tabs = 0;
var final_tabs = 0;

if (system.args.length === 1) {
	final_tabs = original_tabs = tabs = 1;
    console.log('Try to pass some args when invoking this script!');
}else {
    final_tabs = original_tabs = tabs = system.args[1];
    console.log('The vlaue of tabls is '+tabs);
}

url = 'http://localhost:4000/';
args.push(url);

function handle_page(url,count){
	for(var i=0;i<count;i++){
		var current_page = webpage.create();
		current_page.open(url,function(){
			console.log('opening the tab '+url);
			setTimeout(function(){
				original_tabs++;
				console.log('closing the page ',current_page);
				// if(current_page != null){
				// 	current_page.close();
				// }
				if(original_tabs == final_tabs){
					phantom.exit(0);
				}
			},50000);
		});
	}
}
<commit_msg>changing url<commit_after>var system = require('system');
var args = [];
var pages = [];
var webpage = require('webpage');
var tabs = 0;
var iterations = 0;
var throttle = 30;
var original_tabs = 0;
var final_tabs = 0;

if (system.args.length === 1) {
	final_tabs = original_tabs = tabs = 1;
    console.log('Try to pass some args when invoking this script!');
}else {
    final_tabs = original_tabs = tabs = system.args[1];
    console.log('The vlaue of tabls is '+tabs);
}

url = 'http://scale-testing-autorefresh-716963887.us-east-1.elb.amazonaws.com/';
args.push(url);

function handle_page(url,count){
	for(var i=0;i<count;i++){
		var current_page = webpage.create();
		current_page.open(url,function(){
			console.log('opening the tab '+url);
			setTimeout(function(){
				original_tabs++;
				console.log('closing the page ',current_page);
				// if(current_page != null){
				// 	current_page.close();
				// }
				if(original_tabs == final_tabs){
					phantom.exit(0);
				}
			},50000);
		});
	}
}

{'fraction_non_alphanumeric': 0.16869918699186992, 'fraction_numerical': 0.023373983739837397, 'mean_word_length': 3.767554479418886, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3531844', 'n_tokens_mistral': 799, 'n_tokens_neox': 674, 'n_words': 161}