<commit_before># SHOW CONTENT TITLE

renderPageTitle = ->
  $('#title-logo').addClass($('nav li.active:first > a > i').attr('class').replace('fa-lg', ''))
  $('#title-universe').text($('nav li.active:first > a > span').text())
  $('#title-functionnality').text('> ' + $('.breadcrumb li:last').text())


# DISPLAY LOADER

displayLoader = (element) ->
  element = "#content"  if typeof element is "undefined"
  $(element).html "<h1><i class=\"fa fa-cog fa-spin\"></i> Loading...</h1>"
  true


# CALL A URL TO CHANGE SOMETHING IN THE CONTEXT
# AND RELOAD HOMEPAGE

callAndReload = (action) ->
  displayLoader()
  $.post action, (response) ->
    if response.success
      Backbone.history.navigate "#", true
      window.location.reload()
    return

  return


# REFRESH NAV MENU
<commit_msg>Change title universe feeding<commit_after># SHOW CONTENT TITLE

renderPageTitle = ->
  $('#title-logo').addClass($('nav li.active:first > a > i').attr('class').replace('fa-lg', ''))
  $('#title-universe').text($('.breadcrumb li:nth-child(2)').text())
  $('#title-functionnality').text('> ' + $('.breadcrumb li:last').text())


# DISPLAY LOADER

displayLoader = (element) ->
  element = "#content"  if typeof element is "undefined"
  $(element).html "<h1><i class=\"fa fa-cog fa-spin\"></i> Loading...</h1>"
  true


# CALL A URL TO CHANGE SOMETHING IN THE CONTEXT
# AND RELOAD HOMEPAGE

callAndReload = (action) ->
  displayLoader()
  $.post action, (response) ->
    if response.success
      Backbone.history.navigate "#", true
      window.location.reload()
    return

  return


# REFRESH NAV MENU

{'fraction_non_alphanumeric': 0.19122257053291536, 'fraction_numerical': 0.003134796238244514, 'mean_word_length': 3.821752265861027, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, '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': '6200577', 'n_tokens_mistral': 552, 'n_tokens_neox': 541, 'n_words': 125}