<commit_before># For more information see: http://emberjs.com/guides/routing/
ETahi.Router.map ()->
  @route('flow_manager')
  @resource 'paper', { path: '/papers/:paper_id' }, ->
    @route('edit')
    @route('manage')
    @route('submit')

  @route('task', {path: '/papers/:paper_id/tasks/:task_id'})
  @route('paper_new', { path: '/papers/new' })
  @route('signin', {path: '/users/sign_in'})
  @route('signup', {path: '/users/sign_up'})
  @route('profile', {path: '/profile'})

  @resource('affiliation')
  @resource('author')

  @resource 'admin', ->
    @resource 'journal', path: '/journals/:journal_id', ->
      @resource 'manuscript_manager_template', path: '/manuscript_manager_templates', ->
        @route('new')
        @route('edit', path: '/:template_id/edit')

ETahi.Router.reopen
  rootURL: '/'
  location: 'history'<commit_msg>Add a guard to pushState for friendly browsers only<commit_after># For more information see: http://emberjs.com/guides/routing/
ETahi.Router.map ()->
  @route('flow_manager')
  @resource 'paper', { path: '/papers/:paper_id' }, ->
    @route('edit')
    @route('manage')
    @route('submit')

  @route('task', {path: '/papers/:paper_id/tasks/:task_id'})
  @route('paper_new', { path: '/papers/new' })
  @route('signin', {path: '/users/sign_in'})
  @route('signup', {path: '/users/sign_up'})
  @route('profile', {path: '/profile'})

  @resource('affiliation')
  @resource('author')

  @resource 'admin', ->
    @resource 'journal', path: '/journals/:journal_id', ->
      @resource 'manuscript_manager_template', path: '/manuscript_manager_templates', ->
        @route('new')
        @route('edit', path: '/:template_id/edit')

if window.history and window.history.pushState
  ETahi.Router.reopen
    rootURL: '/'
    location: 'history'
{'fraction_non_alphanumeric': 0.2116788321167883, 'fraction_numerical': 0.0, 'mean_word_length': 4.241176470588235, 'pattern_counts': {'":': 0, '<': 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': '3505145', 'n_tokens_mistral': 624, 'n_tokens_neox': 608, 'n_words': 111}