<commit_before><?php
	//this script is used to get id for items that need updating
	// for example json files made with a old version of the script.
	error_reporting(-1);
	ini_set('display_errors', true);

	$link = mysqli_connect("localhost", "root", "root", "tpb-scrape") or die(mysqli_error($link));

	$rand = rand(3211596, 9720658);
	$query = "SELECT * from scraper where scrape_date = 4 AND id > ".$rand."ASC limit 10";

	$resp = mysqli_query($link, $query) or die(mysqli_error($link));
	$arr = mysqli_fetch_assoc($resp);

	$arr = array();

	while ($row = mysqli_fetch_assoc($resp)) {
		$arr[] = $row["id"];
	}

	// var_dump($arr);
	echo json_encode($arr);
?><commit_msg>bug fix<commit_after><?php
	//this script is used to get id for items that need updating
	// for example json files made with a old version of the script.
	error_reporting(-1);
	ini_set('display_errors', true);

	$link = mysqli_connect("localhost", "root", "root", "tpb-scrape") or die(mysqli_error($link));

	$rand = rand(3211596, 9720658);
	$query = "SELECT * from scraper where scrape_date = 4 AND id > ".$rand." limit 10";

	$resp = mysqli_query($link, $query) or die(mysqli_error($link));
	$arr = mysqli_fetch_assoc($resp);

	$arr = array();

	while ($row = mysqli_fetch_assoc($resp)) {
		$arr[] = $row["id"];
	}

	// var_dump($arr);
	echo json_encode($arr);
?>
{'fraction_non_alphanumeric': 0.17300521998508575, 'fraction_numerical': 0.026845637583892617, 'mean_word_length': 4.7844827586206895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2917475', 'n_tokens_mistral': 529, 'n_tokens_neox': 478, 'n_words': 135}