<commit_before><?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

//this script may only be included - so its better to die if called directly.
$access->check_script($_SERVER['SCRIPT_NAME'], basename(__FILE__));

if (is_file('.svn/entries')) {
	$svn = File('.svn/entries');
	if(count($svn) > 2) {
		// Standard SVN client
		$smarty->assign('svnrev', $svn[3]);
		$smarty->assign('lastup', strtotime($svn[9]));
	} else {
		// Check for Tortoise 1.7+ SVN client, if sqlite3 is present
		if(extension_loaded('sqlite3')) {
			$location = '.svn/wc.db';
			if (is_file($location)) {
				$handle = new SQLite3($location);

				// Assign svnrev
				$query = "select max(changed_revision) as svnrev from nodes";
				$result = $handle->query($query); 
				$resx = $result->fetchArray(SQLITE3_ASSOC);
				$svnrev = $resx['svnrev'];
				var_dump($svnrev);
				$smarty->assign('svnrev', $svnrev);
				
				// Assign lastup
				/* Must figure out how to convert changed_date(?) to a proper datetime
				$query = "select max(changed_date) as lastup from nodes";
				$result = $handle->query($query); 
				$resx = $result->fetchArray(SQLITE3_ASSOC);
				$lastupTime = $resx['lastup'];
				var_dump($lastupTime);
				$smarty->assign('lastup', $lastupTime);
				*/
			}
		}<commit_msg>[FIX] Get rid of debug code<commit_after><?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

//this script may only be included - so its better to die if called directly.
$access->check_script($_SERVER['SCRIPT_NAME'], basename(__FILE__));

if (is_file('.svn/entries')) {
	$svn = File('.svn/entries');
	if(count($svn) > 2) {
		// Standard SVN client
		$smarty->assign('svnrev', $svn[3]);
		$smarty->assign('lastup', strtotime($svn[9]));
	} else {
		// Check for Tortoise 1.7+ SVN client, if sqlite3 is present
		if(extension_loaded('sqlite3')) {
			$location = '.svn/wc.db';
			if (is_file($location)) {
				$handle = new SQLite3($location);

				// Assign svnrev
				$query = "select max(changed_revision) as svnrev from nodes";
				$result = $handle->query($query); 
				$resx = $result->fetchArray(SQLITE3_ASSOC);
				$svnrev = $resx['svnrev'];
				$smarty->assign('svnrev', $svnrev);
				
				// Assign lastup
				/* Must figure out how to convert changed_date(?) to a proper datetime
				$query = "select max(changed_date) as lastup from nodes";
				$result = $handle->query($query); 
				$resx = $result->fetchArray(SQLITE3_ASSOC);
				$lastupTime = $resx['lastup'];
				var_dump($lastupTime);
				$smarty->assign('lastup', $lastupTime);
				*/
			}
		}
{'fraction_non_alphanumeric': 0.15905245346869712, 'fraction_numerical': 0.012182741116751269, 'mean_word_length': 3.6846275752773376, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2818537', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1005, 'n_words': 272}