<commit_before><?php
//authors: <NAME>

	// see also http://code.tutsplus.com/tutorials/image-resizing-made-easy-with-php--net-10362
	include('resize-class.php');
	
	if (isset($_FILES['datei']))
	{
		 move_uploaded_file($_FILES['datei']['tmp_name'], 'upload/'.basename($_FILES['datei']['name']));
	}

	//$name -> basename($_FILES['datei']['name']);

	// *** 1) Initialize / load image
	$resizeObj = new resize('upload/'.basename($_FILES['datei']['name']));
	 
	// *** 2) Resize image (options: exact, portrait, landscape, auto, crop)
	$resizeObj -> resizeImage(150, 150, 'landscape');

	// *** 3) Save image
	$resizeObj -> saveImage('upload/thumbnail/'.basename($_FILES['datei']['name']), 100);

?><commit_msg>Fixed thumbail-issue<commit_after><?php
//authors: <NAME>

	// see also http://code.tutsplus.com/tutorials/image-resizing-made-easy-with-php--net-10362
	include('resize-class.php');
	
	if (isset($_FILES['datei']))
	{
		 move_uploaded_file($_FILES['datei']['tmp_name'], 'upload/'.basename($_FILES['datei']['name']));
	}

	//$name -> basename($_FILES['datei']['name']);

	// *** 1) Initialize / load image
	$resizeObj = new resize('upload/'.basename($_FILES['datei']['name']));
	 
	// *** 2) Resize image (options: exact, portrait, landscape, auto, crop)
	$resizeObj -> resizeImage(150, 150, 'landscape');

	// *** 3) Save image
	$resizeObj -> saveImage('upload/thumb/'.basename($_FILES['datei']['name']), 100);

?>
{'fraction_non_alphanumeric': 0.2410400562192551, 'fraction_numerical': 0.023893183415319746, 'mean_word_length': 5.008438818565401, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '7273816', 'n_tokens_mistral': 552, 'n_tokens_neox': 483, 'n_words': 79}