<commit_before>import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  // auth
  this.route('login');
  this.route('logout'); // @todo
  this.route('forgotten'); // @todo

  // sites
  this.resource('sites', {path: '/'}, function() {
    // site
    this.resource('site', {path: ':site_id'}, function() {
      // content
      this.resource('posts', function () {
        this.route('new');
        this.resource('post', {path: ':post_id'}, function() {
          this.route('edit', {path: '/edit'});
        });
      });

      // this.resource('events', function () {
      //   this.route('event', {path: ':event_id'});
      // });

      this.resource('pages', function () {
        this.route('new');
        this.resource('page', {path: ':page_id'}, function() {
          this.route('edit', {path: '/edit'});
        });
      });

      // settings
      this.resource('settings', function () {
        this.route('general');

        this.resource('settings.activities', {path: '/activities'}, function () {
            this.route('activity', {path: ':activity_id'});
        });

        // this.resource('settings.members', {path: '/members'}, function () {
        //     this.route('member', {path: ':member_id'});
        // });

        this.route('images');
      });
    });
  });

  // error
  this.route('error404', {path: '/*path'});
});

export default Router;<commit_msg>cleanup<commit_after>import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  // auth
  this.route('login');
  this.route('logout'); // @todo
  this.route('forgotten'); // @todo

  // sites
  this.resource('sites', {path: '/'}, function() {
    // site
    this.resource('site', {path: ':site_id'}, function() {
      // content
      this.resource('posts', function () {
        this.route('new');
        this.resource('post', {path: ':post_id'}, function() {
          this.route('edit', {path: '/edit'});
        });
      });

      // this.resource('events', function () {
      //   this.route('event', {path: ':event_id'});
      // });

      this.resource('pages', function () {
        this.route('new');
        this.resource('page', {path: ':page_id'}, function() {
          this.route('edit', {path: '/edit'});
        });
      });

      // settings
      this.resource('settings', function () {
        this.route('general');

        this.resource('settings.activities', {path: '/activities'}, function () {
            this.route('activity', {path: ':activity_id'});
        });

        // this.resource('settings.members', {path: '/members'}, function () {
        //   this.route('member', {path: ':member_id'});
        // });

        this.route('images');
      });
    });
  });

  // error
  this.route('error404', {path: '/*path'});
});

export default Router;
{'fraction_non_alphanumeric': 0.22325581395348837, 'fraction_numerical': 0.0019933554817275745, 'mean_word_length': 2.4099660249150623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5579543', 'n_tokens_mistral': 933, 'n_tokens_neox': 897, 'n_words': 161}