<commit_before>CI.ajax.init()

display = (template, args, subpage, hash) ->
  klass = 'inner'

  header =
    $("<header></header>")
      .addClass(klass)
      .append(HAML.header(args))

  content =
    $("<main></main>")
      .removeClass('outer')
      .removeClass('inner')
      .addClass(klass)
      .append(HAML[template](args))

  footer =
    $("<footer></footer>")
      .addClass(klass)
      .append(HAML["footer_nav"](args))

  $('#main')
    .html("")
    .append(header)
    .append(content)
    .append(footer)


  if subpage
    $('#subpage').html(HAML["#{template}_#{subpage}"](args))
    $("##{subpage}").addClass('active')
  if $('#hash').length<commit_msg>remove classes from head, main, foot added earlier and place on app div instead<commit_after>CI.ajax.init()

display = (template, args, subpage, hash) ->
  klass = 'inner'

  header =
    $("<header></header>")
      .append(HAML.header(args))

  content =
    $("<main></main>")
      .removeClass('outer')
      .removeClass('inner')
      .append(HAML[template](args))

  footer =
    $("<footer></footer>")
      .append(HAML["footer_nav"](args))

  $('#main')
    .html("")
    .addClass(klass)
    .append(header)
    .append(content)
    .append(footer)


  if subpage
    $('#subpage').html(HAML["#{template}_#{subpage}"](args))
    $("##{subpage}").addClass('active')
  if $('#hash').length
{'fraction_non_alphanumeric': 0.22028985507246376, 'fraction_numerical': 0.0, 'mean_word_length': 3.236196319018405, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '3458793', 'n_tokens_mistral': 476, 'n_tokens_neox': 475, 'n_words': 76}