<commit_before><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<title>Error | EmeraldView</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css"
href="<?php echo url::base() ?>views/default/css/reset.css">

<link rel="stylesheet" type="text/css" media="screen"
href="<?php echo url::base() ?>libraries/treeview/jquery.treeview.css">

<link rel="stylesheet" type="text/css"
href="<?php echo url::base() ?>views/default/css/style.css">

<link rel="stylesheet" type="text/css" media="print"
href="<?php echo url::base() ?>views/default/css/style-print.css">

<script type="text/javascript"
src="<?php echo url::base() ?>libraries/jquery.js"></script>

<script type="text/javascript"
src="<?php echo url::base() ?>libraries/treeview/jquery.treeview.js"></script>

<script type="text/javascript"
src="<?php echo url::base() ?>views/default/js/default.js"></script>

</head>

<body>

<div id="header">
    <span id="header-logo">
      <a href="<?php echo url::base() ?>">
        <img src="<?php echo url::base() ?>images/emeraldview2.png"
        alt="EmeraldView logo" />
      </a>
    </span>
    <div id="header-emeraldview-title">
      <div>EmeraldView</div>
    </div>
</div>

  <div id="main-content">
    <h1>Server error</h1>

    <div id="framework_error" style="width:42em;margin:20px auto;">
    <h3><?php echo html::specialchars($error) ?></h3>
    <p><?php echo html::specialchars($description) ?></p>
    <?php if ( ! empty($line) AND ! empty($file)): ?>
    <p><?php echo Kohana::lang('core.error_file_line', $file, $line) ?></p>
    <?php endif ?>
    <p><code class="block"><?php echo $message ?></code></p>
    <?php if ( ! empty($trace)): ?>
    <h3><?php echo Kohana::lang('core.stack_trace') ?></h3>
    <?php echo $trace ?>
    <?php endif ?>
    </div>
  </div>

<div id="footer">
  <div id="footer-url">URL: <?php echo url::site( url::current( true ) ) ?></div>

  <div>Copyright &copy; <?php echo date('Y') ?>

  <?php
  if (
    EmeraldviewConfig::get('institution_name')
    && EmeraldviewConfig::get('institution_url')
  ) {
    $inst_name = EmeraldviewConfig::get('institution_name');
    $inst_url  = EmeraldviewConfig::get('institution_url');

    echo 'by ';
    echo html::anchor( $inst_url, $inst_name );
  }
  elseif (EmeraldviewConfig::get('institution_name')) {
    echo 'by ' . EmeraldviewConfig::get('institution_name') ;
  }
  ?>

  </div><commit_msg>add separate 500 error message for IN_PRODUCTION<commit_after><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<title>Error | EmeraldView</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css"
href="<?php echo url::base() ?>views/default/css/reset.css">

<link rel="stylesheet" type="text/css"
href="<?php echo url::base() ?>views/default/css/style.css">

<link rel="stylesheet" type="text/css" media="print"
href="<?php echo url::base() ?>views/default/css/style-print.css">

<script type="text/javascript"
src="<?php echo url::base() ?>libraries/jquery.js"></script>

<script type="text/javascript"
src="<?php echo url::base() ?>views/default/js/default.js"></script>

</head>

<body>

<div id="header">
    <span id="header-logo">
      <a href="<?php echo url::base() ?>">
        <img src="<?php echo url::base() ?>images/emeraldview2.png"
        alt="EmeraldView logo" />
      </a>
    </span>
    <div id="header-emeraldview-title">
      <div>EmeraldView</div>
    </div>
</div>

  <div id="main-content">
    <?php if ( IN_PRODUCTION ): ?>
      <h1>Error</h1>
      
      <p>
        We're sorry, our system encountered an error. Please try again later.
      </p>
    <?php else: ?>
      <h1>Server error</h1>

      <div id="framework_error" style="width:42em;margin:20px auto;">
      <h3><?php echo html::specialchars($error) ?></h3>
      <p><?php echo html::specialchars($description) ?></p>
      <?php if ( ! empty($line) AND ! empty($file)): ?>
      <p><?php echo Kohana::lang('core.error_file_line', $file, $line) ?></p>
      <?php endif ?>
      <p><code class="block"><?php echo $message ?></code></p>
      <?php if ( ! empty($trace)): ?>
      <h3><?php echo Kohana::lang('core.stack_trace') ?></h3>
      <?php echo $trace ?>
      <?php endif ?>
      </div>
    <?php endif; ?>
  </div>

<div id="footer">
  <div id="footer-url">URL: <?php echo url::site( url::current( true ) ) ?></div>

  <div>Copyright &copy; <?php echo date('Y') ?>

  <?php
  if (
    EmeraldviewConfig::get('institution_name')
    && EmeraldviewConfig::get('institution_url')
  ) {
    $inst_name = EmeraldviewConfig::get('institution_name');
    $inst_url  = EmeraldviewConfig::get('institution_url');

    echo 'by ';
    echo html::anchor( $inst_url, $inst_name );
  }
  elseif (EmeraldviewConfig::get('institution_name')) {
    echo 'by ' . EmeraldviewConfig::get('institution_name') ;
  }
  ?>

  </div>
{'fraction_non_alphanumeric': 0.21665351223362272, 'fraction_numerical': 0.00808997632202052, 'mean_word_length': 4.043781094527363, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1667690', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1796, 'n_words': 354}