<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<?php
$env_var_is_hidden = [
  'FOO'               => FALSE,
  'ci_base_url'       => FALSE,
  'ci_proxy_ips'      => FALSE,
  'db_hostname'       => FALSE,
  'db_username'       => FALSE,
  'db_password'       => <PASSWORD>,
  'AWS_PHP_CACHE_DIR' => FALSE,
  'aws_account_id'    => FALSE,
  'aws_access_key'    => FALSE,
  'aws_secret_key'    => 6,
  'aws_region'        => FALSE,
  'aws_s3_bucket'     => FALSE,
  'ga'                => FALSE,
  'email_source'      => FALSE,
  'email_admin'       => FALSE,
  'email_debug'       => FALSE,
  'email_source'      => FALSE,
  'api_key'           => 6,
];
?>

<?php
// ob_start();
// phpinfo(INFO_ENVIRONMENT);
// $variable = ob_get_contents();
// ob_get_clean();
?>

<!-- <div class="embed-responsive embed-responsive-4by3">
  <iframe src="data:text/html;charset=utf-8,<?php echo htmlentities($variable); ?>"></iframe>
</div>
<br>
<br> -->

<div class="panel panel-default">
  <div class="panel-heading">Environment Vars</div>

  <table class="table">
    <thead>
      <tr>
        <th>Variable</th>
        <th>Value</th>
      </tr>
    </thead>

    <tbody>
      <?php foreach ($env_var_is_hidden as $env_var => $is_hidden): ?>
      <tr>
        <th scope="row"><samp><?php echo $env_var; ?></samp></th>
        <td>
          <samp>
            <?php
            $value = getenv($env_var);
            if ($is_hidden)
            {
              echo substr($value, 0, $is_hidden);
              $len = strlen($value);

              // ✱ HEAVY ASTERISK: <NAME>
              // ✕ MULTIPLICATION X
              // • BULLET
              // ● BLACK CIRCLE
              // ○ WHITE CIRCLE
              for ($i = 4; $i < $len; $i++) echo 'x';
            }
            else echo $value;
            ?>
          </samp>
        </td>
      </tr>
      <?php endforeach; ?>
    </tbody>
  </table>
</div>

<commit_msg>Settings word-break: break-word;<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<?php
$env_var_is_hidden = [
  'FOO'               => FALSE,
  'ci_base_url'       => FALSE,
  'ci_proxy_ips'      => FALSE,
  'db_hostname'       => FALSE,
  'db_username'       => FALSE,
  'db_password'       => <PASSWORD>,
  'AWS_PHP_CACHE_DIR' => FALSE,
  'aws_account_id'    => FALSE,
  'aws_access_key'    => FALSE,
  'aws_secret_key'    => 6,
  'aws_region'        => FALSE,
  'aws_s3_bucket'     => FALSE,
  'ga'                => FALSE,
  'email_source'      => FALSE,
  'email_admin'       => FALSE,
  'email_debug'       => FALSE,
  'email_source'      => FALSE,
  'api_key'           => 6,
];
?>

<?php
// ob_start();
// phpinfo(INFO_ENVIRONMENT);
// $variable = ob_get_contents();
// ob_get_clean();
?>

<!-- <div class="embed-responsive embed-responsive-4by3">
  <iframe src="data:text/html;charset=utf-8,<?php echo htmlentities($variable); ?>"></iframe>
</div>
<br>
<br> -->

<div class="panel panel-default">
  <div class="panel-heading">Environment Vars</div>

  <table class="table">
    <thead>
      <tr>
        <th>Variable</th>
        <th>Value</th>
      </tr>
    </thead>

    <tbody style="word-break: break-word;">
      <?php foreach ($env_var_is_hidden as $env_var => $is_hidden): ?>
      <tr>
        <th scope="row"><samp><?php echo $env_var; ?></samp></th>
        <td>
          <samp>
            <?php
            $value = getenv($env_var);
            if ($is_hidden)
            {
              echo substr($value, 0, $is_hidden);
              $len = strlen($value);

              // ✱ HEAVY ASTERISK: Zapf Dingbats
              // ✕ MULTIPLICATION X
              // • BULLET
              // ● BLACK CIRCLE
              // ○ WHITE CIRCLE
              for ($i = 4; $i < $len; $i++) echo 'x';
            }
            else echo $value;
            ?>
          </samp>
        </td>
      </tr>
      <?php endforeach; ?>
    </tbody>
  </table>
</div>


{'fraction_non_alphanumeric': 0.1790557508789553, 'fraction_numerical': 0.004018081366147665, 'mean_word_length': 1.836894586894587, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 126, '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': '3492065', 'n_tokens_mistral': 1431, 'n_tokens_neox': 1401, 'n_words': 279}