<commit_before><?php
function main(){
	require_once('config.php');
	
	$all = 0;
	$main = null;
	$imglist = null;
	$imgrand = array();
	if (is_dir($dir) && $dh = opendir($dir)) {
		while (($files = readdir($dh)) !== false) {
			$file[] = $files;
		}
		
		for($i=0;$i<count($file);$i++) {
			if(preg_match('/\.png$/',$file[$i])){
				$size = floor(filesize($file[$i]) / 1024);
				if($color > $size){ // 50kb以下
					$colorsize = 'success';
				}else {
					if($color2 < $size){ // 100kb以上
						$colorsize = 'danger';
					}else{
						$colorsize = 'warning'; // 50kb以上
					}
				}
				$imglist.= '
					<div class="col-sm-12 col-md-2">
						<a href="delete.php?file='.$file[$i].'"><span class="glyphicon glyphicon-trash"></span></a>
						<div class="thumbnail">
							<div class="imgbox">
								<a href="'.$dir.$file[$i].'" class="thumbnail">
									<img src="'.$dir.$file[$i].'" class="imgbox2"><commit_msg>fix<commit_after><?php
function main(){
	require_once('config.php');
	
	$all = 0;
	$main = null;
	$imglist = null;
	$imgrand = array();
	if (is_dir($dir) && $dh = opendir($dir)) {
		while (($files = readdir($dh)) !== false) {
			$file[] = $files;
		}
		
		for($i=0;$i<count($file);$i++) {
			if(preg_match('/\.png$/',$file[$i])){
				$size = floor(filesize($dir.$file[$i]) / 1024);
				if($color > $size){ // 50kb以下
					$colorsize = 'success';
				}else {
					if($color2 < $size){ // 100kb以上
						$colorsize = 'danger';
					}else{
						$colorsize = 'warning'; // 50kb以上
					}
				}
				$imglist.= '
					<div class="col-sm-12 col-md-2">
						<a href="delete.php?file='.$file[$i].'"><span class="glyphicon glyphicon-trash"></span></a>
						<div class="thumbnail">
							<div class="imgbox">
								<a href="'.$dir.$file[$i].'" class="thumbnail">
									<img src="'.$dir.$file[$i].'" class="imgbox2">
{'fraction_non_alphanumeric': 0.25424657534246575, 'fraction_numerical': 0.019726027397260273, 'mean_word_length': 2.935344827586207, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 23, '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': '552086', 'n_tokens_mistral': 916, 'n_tokens_neox': 711, 'n_words': 119}