<commit_before>class @Router extends Backbone.Router
  routes:
    "demand/:sidebar(/:slide)" : "demand"
    "costs/:sidebar(/:slide)"  : "costs"
    "overview/:sidebar(/:slide)": "overview"
    "supply/:sidebar(/:slide)" : "supply"
    "flexibility/:sidebar(/:slide)" : "flexibility"
    "data/:sidebar(/:slide)" : "data"
    "report" : "report"
    ":tab/:sidebar(/:slide)" : "load_slides"
    "" : "load_default_slides"

  demand:  (sidebar, slide) => @load_slides('demand', sidebar, slide)
  costs:   (sidebar, slide) => @load_slides('costs', sidebar, slide)
  overview: (sidebar, slide) => @load_slides('overview', sidebar, slide)
  supply:  (sidebar, slide) => @load_slides('supply', sidebar, slide)
  flexibility:  (sidebar, slide) => @load_slides('flexibility', sidebar, slide)
  data:  (sidebar, slide) => @load_slides('data', sidebar, slide)

  # root:

  report: =>
    # pass

  load_slides: (tab, sidebar, slide) ->
    url = "/scenario/#{_.compact([tab, sidebar, slide]).join('/')}"
    $.ajax<commit_msg>Remove redudant routes to support the new "overview" section<commit_after>class @Router extends Backbone.Router
  routes:
    "report" : "report"
    ":tab/:sidebar(/:slide)" : "load_slides"
    "" : "load_default_slides"
    
  report: =>
    # pass

  load_slides: (tab, sidebar, slide) ->
    url = "/scenario/#{_.compact([tab, sidebar, slide]).join('/')}"
    $.ajax
{'fraction_non_alphanumeric': 0.19582433405327573, 'fraction_numerical': 0.0, 'mean_word_length': 4.091575091575091, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 13, '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': '2125651', 'n_tokens_mistral': 491, 'n_tokens_neox': 481, 'n_words': 98}