<commit_before>const home = {
  url: '/',
  controller: 'HomeCtrl as homeCtrl',
  templateUrl: 'home.html',
  title: 'Home'
};

const login = {
  guest: true,

  url: '/login',
  controller: 'LoginCtrl as loginCtrl',
  templateUrl: 'auth/login.html',
  title: 'Login'
};

const register = {
  guest: true,

  url: '/register',
  controller: 'RegisterCtrl as registerCtrl',
  templateUrl: 'auth/register.html',
  title: 'Register'
};

const account = {
  url: '/account',
  controller: 'AccountCtrl as accountCtrl',
  templateUrl: 'account.html',
  title: 'Account',
  resolve: {
    me: function (AccountService) {
      return AccountService.me();
    }
  }
};

const proposals = {
  url: '/proposals',
  controller: 'ProposalsCtrl as proposalCtrl',
  templateUrl: 'proposals/index.html',
  title: 'Proposals',
  resolve: {
    proposals: function (ProposalService) {
      return ProposalService.index();
    }
  }
};

const showProposal = {
  url: '/proposals/:id',
  controller: 'ProposalCtrl as proposalCtrl',
  templateUrl: 'proposals/show.html',
  title: 'Proposal',
  resolve: {
    proposal: function (ProposalService, $stateParams) {
      return ProposalService.get($stateParams.id);
    }
  }
};

const createProposal = {
  authenticate: false, //true,

  url: '/proposals/create',
  controller: 'CreateProposalCtrl as proposalCtrl',
  templateUrl: 'proposals/create.html',
  title: 'Submit proposal'
};

const projects = {
  url: '/projects',
  controller: 'ProjectsCtrl as projectCtrl',
  templateUrl: 'projects/index.html',
  title: 'Projects',
  resolve: {
    projects: function (ProjectService) {
      return ProjectService.index();
    }
  }
};

const showProject = {
  url: '/projects/:id',
  controller: 'ProjectCtrl as projectCtrl',
  templateUrl: 'projects/show.html',
  title: 'Project',
  resolve: {
    project: function (ProjectService, $stateParams) {
      return ProjectService.get($stateParams.id);
    }
  }
};

const createProject = {
  authenticate: false, //true,
  url: '/proposals/:id/project',<commit_msg>added route for edit proposal<commit_after>const home = {
  url: '/',
  controller: 'HomeCtrl as homeCtrl',
  templateUrl: 'home.html',
  title: 'Home'
};

const login = {
  guest: true,

  url: '/login',
  controller: 'LoginCtrl as loginCtrl',
  templateUrl: 'auth/login.html',
  title: 'Login'
};

const register = {
  guest: true,

  url: '/register',
  controller: 'RegisterCtrl as registerCtrl',
  templateUrl: 'auth/register.html',
  title: 'Register'
};

const account = {
  url: '/account',
  controller: 'AccountCtrl as accountCtrl',
  templateUrl: 'account.html',
  title: 'Account',
  resolve: {
    me: function (AccountService) {
      return AccountService.me();
    }
  }
};

const proposals = {
  url: '/proposals',
  controller: 'ProposalsCtrl as proposalCtrl',
  templateUrl: 'proposals/index.html',
  title: 'Proposals',
  resolve: {
    proposals: function (ProposalService) {
      return ProposalService.index();
    }
  }
};

const showProposal = {
  url: '/proposals/:id',
  controller: 'ProposalCtrl as proposalCtrl',
  templateUrl: 'proposals/show.html',
  title: 'Proposal',
  resolve: {
    proposal: function (ProposalService, $stateParams) {
      return ProposalService.get($stateParams.id);
    }
  }
};

const createProposal = {
  authenticate: false, //true,

  url: '/proposals/create',
  controller: 'CreateProposalCtrl as proposalCtrl',
  templateUrl: 'proposals/create.html',
  title: 'Submit proposal'
};

const editProposal = {
  authenticate: false, //true,

  url: '/proposals/:id/create',
  controller: 'EditProposalCtrl as proposalCtrl',
  templateUrl: 'proposals/edit.html',
  title: 'Edit proposal'
  resolve: {
    proposal: function (ProposalService, $stateParams) {
      return ProposalService.get($stateParams.id);
    },
};

const projects = {
  url: '/projects',
  controller: 'ProjectsCtrl as projectCtrl',
  templateUrl: 'projects/index.html',
  title: 'Projects',
  resolve: {
    projects: function (ProjectService) {
      return ProjectService.index();
    }
  }
};

const showProject = {
  url: '/projects/:id',
  controller: 'ProjectCtrl as projectCtrl',
  templateUrl: 'projects/show.html',
  title: 'Project',
  resolve: {
    project: function (ProjectService, $stateParams) {
      return ProjectService.get($stateParams.id);
    }
  }
};

const createProject = {
  authenticate: false, //true,
  url: '/proposals/:id/project',
{'fraction_non_alphanumeric': 0.1460775473399459, 'fraction_numerical': 0.0, 'mean_word_length': 3.776103336921421, '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': '3168216', 'n_tokens_mistral': 1440, 'n_tokens_neox': 1445, 'n_words': 334}