<commit_before><?php
/**
* @package Acitivity Checker
*
* @author <NAME>
* @copyright 2015
* @version 1.2
* @license BSD 3-clause
*/

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
{
	$ssi = true;
	require_once(dirname(__FILE__) . '/SSI.php');
}
elseif (!defined('SMF'))
	exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
	

global $smcFunc, $db_prefix, $modSettings, $sourcedir, $boarddir, $settings, $db_package_log, $package_cache;

  $defaults = array(
    'activity_checker_cats'=> 0,
	'activity_checker_inactive_group'=> 0,
	'activity_checker_inactive_time'=> 4,
	'activity_checker_categories' => 0,
	'activity_checker_inactive_group' => 0,
	'activity_checker_active_group' => 0,
	'activity_checker_inactive_pm_enable' => 0,
	'activity_checker_inactive_pm_from' => 0,
	'activity_checker_inactive_pm_bcc' => 0,
	'activity_checker_inactive_pm_subject' => 0,
	'activity_checker_inactive_pm_message' => 0,
	'activity_checker_email_enable' => 0,
	'activity_checker_email_subject' => 0,
	'activity_checker_email_message' => 0,
  );
  
  $updates = array(
    'activity_checker_version' => '1.0',
  );
  
  foreach ($defaults as $index => $value)
    if (!isset($modSettings[$index]))
      $updates[$index] = $value;
  
  updateSettings($updates);

?><commit_msg>Corrected version number<commit_after><?php
/**
* @package Acitivity Checker
*
* @author <NAME>
* @copyright 2015
* @version 1.0.1
* @license BSD 3-clause
*/

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
{
	$ssi = true;
	require_once(dirname(__FILE__) . '/SSI.php');
}
elseif (!defined('SMF'))
	exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
	

global $smcFunc, $db_prefix, $modSettings, $sourcedir, $boarddir, $settings, $db_package_log, $package_cache;

  $defaults = array(
    'activity_checker_cats'=> 0,
	'activity_checker_inactive_group'=> 0,
	'activity_checker_inactive_time'=> 4,
	'activity_checker_categories' => 0,
	'activity_checker_inactive_group' => 0,
	'activity_checker_active_group' => 0,
	'activity_checker_inactive_pm_enable' => 0,
	'activity_checker_inactive_pm_from' => 0,
	'activity_checker_inactive_pm_bcc' => 0,
	'activity_checker_inactive_pm_subject' => 0,
	'activity_checker_inactive_pm_message' => 0,
	'activity_checker_email_enable' => 0,
	'activity_checker_email_subject' => 0,
	'activity_checker_email_message' => 0,
  );
  
  $updates = array(
    'activity_checker_version' => '1.0.1',
  );
  
  foreach ($defaults as $index => $value)
    if (!isset($modSettings[$index]))
      $updates[$index] = $value;
  
  updateSettings($updates);

?>
{'fraction_non_alphanumeric': 0.15955473098330242, 'fraction_numerical': 0.017810760667903526, 'mean_word_length': 5.624078624078624, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 43, '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': '1029645', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1007, 'n_words': 186}