<commit_before><?php
  include_once 'constants.php';

  function createBasicHead($title = '', $script_location = null, $styles = []) {

    $toReturn = '<head>
    <title>' . $GLOBALS['name']['short'] . ' | ' . $title . '</title>
    <link rel="stylesheet" type="text/css" href="' . $GLOBALS['locations']['main_style'] . '">';
    
    foreach($styles as $style) {
      $toReturn .= '<link rel="stylesheet" type="text/css" href="' . $GLOBALS['locations']['styles'] . $style . '">';
    }
    
    if ($script_location) {
      $toReturn .= '<script src="' . $GLOBALS['locations']['lib'] . 'require.js"></script>
          <script>
            require.config({
              paths: {
                lib: "' . $GLOBALS['admin_root'] . 'lib",
                js: "' . $GLOBALS['admin_root'] . 'js"
              }
            });
            require(["js/' . $script_location . '"]);
            </script>';
    }

    $toReturn .= '</head>';

    return $toReturn;
  }
  
?><commit_msg>formatting for head to match html<commit_after><?php
  include_once 'constants.php';

  function createBasicHead($title = '', $script_location = null, $styles = []) {

    $toReturn = '<head>
    <title>' . $GLOBALS['name']['short'] . ' | ' . $title . '</title>
    <link rel="stylesheet" type="text/css" href="' . $GLOBALS['locations']['main_style'] . '">';
    
    foreach($styles as $style) {
      $toReturn .= '
    <link rel="stylesheet" type="text/css" href="' . $GLOBALS['locations']['styles'] . $style . '">';
    }
    
    if ($script_location) {
      $toReturn .= '
    <script src="' . $GLOBALS['locations']['lib'] . 'require.js"></script>
    <script>
      require.config({
        paths: {
          lib: "' . $GLOBALS['admin_root'] . 'lib",
          js: "' . $GLOBALS['admin_root'] . 'js"
        }
      });
      require(["js/' . $script_location . '"]);
    </script>';
    }

    $toReturn .= '
  </head>' . "\n";

    return $toReturn;
  }
?>
{'fraction_non_alphanumeric': 0.22529441884280593, 'fraction_numerical': 0.0, 'mean_word_length': 2.300675675675676, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4185312', 'n_tokens_mistral': 642, 'n_tokens_neox': 621, 'n_words': 110}