<commit_before>/* eslint key-spacing:0 */

/**
 * http://sailsjs.org/#/documentation/concepts/Routes/RouteTargetSyntax.html
 */

module.exports.routes = {
  'GET    /noo/user/status':                              'UserController.status',
  'GET    /noo/user/me':                                  'UserController.findSelf',
  'POST   /noo/user/password':                            'UserController.sendPasswordReset',
  'GET    /noo/user/:userId':                             'UserController.findOne',
  'POST   /noo/user':                                     'UserController.create',
  'POST   /noo/user/:userId':                             'UserController.update',
  'GET    /noo/user/:userId/contributions':               'UserController.contributions',
  'GET    /noo/user/:userId/thanks':                      'UserController.thanks',
  'GET    /noo/user/:userId/posts':                       'PostController.findForUser',
  'GET    /noo/user/:userId/followed-posts':              'PostController.findForFollowed',
  'GET    /noo/user/:userId/all-community-posts':         'PostController.findForAllForUser',
  'GET    /noo/user/:userId/onboarding':                  'OnboardingController.find',
  'POST   /noo/user/:userId/onboarding':                  'OnboardingController.update',
  'GET    /noo/user/:userId/projects':                    'ProjectController.findForUser',

  'GET    /noo/community':                                'CommunityController.find',
  'POST   /noo/community':                                'CommunityController.create',
  'POST   /noo/community/code':                           'CommunityController.joinWithCode',
  'POST   /noo/community/validate':                       'CommunityController.validate',
  'GET    /noo/community/:communityId':                   'CommunityController.findOne',
  'POST   /noo/community/:communityId':                   'CommunityController.update',
  'GET    /noo/community/:communityId/settings':          'CommunityController.findSettings',
  'GET    /noo/community/:communityId/settings/slack':    'CommunityController.addSlack',
  'GET    /noo/community/:communityId/moderators':        'CommunityController.findModerators',
  'POST   /noo/community/:communityId/moderators':        'CommunityController.addModerator',
  'DELETE /noo/community/:communityId/moderator/:userId': 'CommunityController.removeModerator',
  'GET    /noo/community/:communityId/members':           'UserController.findForCommunity',
  'DELETE /noo/community/:communityId/member/:userId':    'CommunityController.removeMember',
  'GET    /noo/community/:communityId/posts':             'PostController.findForCommunity',
  'GET    /noo/community/:communityId/projects':          'ProjectController.findForCommunity',
  'GET    /noo/community/:communityId/invitations':       'InvitationController.find',
  'POST   /noo/community/:communityId/invite':            'InvitationController.create',

  'GET    /noo/post/:postId':                             'PostController.findOne',
  'POST   /noo/post/:postId/comment':                     'CommentController.create',
  'GET    /noo/post/:postId/comments':                    'CommentController.findForPost',
  'POST   /noo/post/:postId/follow':                      'PostController.follow',
  'POST   /noo/post/:postId/fulfill':                     'PostController.fulfill',
  'POST   /noo/post/:postId/vote':                        'PostController.vote',
  'GET    /noo/post/:postId/voters':                      'UserController.findForPostVote',
  'POST   /noo/post/:postId/complain':                    'PostController.complain',
  'POST   /noo/post/:postId/respond':                     'PostController.respond',
  'POST   /noo/post':                                     'PostController.create',
  'POST   /noo/post/:postId':                             'PostController.update',
  'DELETE /noo/post/:postId':                             'PostController.destroy',
  // these route names correspond with the different cases for subject in the
  // frontend fetchPosts action
  'POST   /noo/freshness/posts/community/:communityId':   'PostController.checkFreshnessForCommunity',
  'POST   /noo/freshness/posts/person/:userId':           'PostController.checkFreshnessForUser',
  'POST   /noo/freshness/posts/all-posts/:userId':        'PostController.checkFreshnessForAllForUser',
  'POST   /noo/freshness/posts/followed-posts/:userId':   'PostController.checkFreshnessForFollowed',
  'POST   /noo/freshness/posts/project/:projectId':       'PostController.checkFreshnessForProject',
  'POST   /noo/freshness/posts/network/:networkId':       'PostController.checkFreshnessForNetwork',
  'POST   /noo/freshness/posts/tag/:communityId/:tagName':'PostController.checkFreshnessForNetwork',

  'POST   /noo/comment/:commentId/thank':                 'CommentController.thank',
  'DELETE /noo/comment/:commentId':                       'CommentController.destroy',

  'DELETE /noo/membership/:communityId':                  'CommunityController.leave',

  'GET    /noo/activity':                                 'ActivityController.find',<commit_msg>fix freshnessForTag route<commit_after>/* eslint key-spacing:0 */

/**
 * http://sailsjs.org/#/documentation/concepts/Routes/RouteTargetSyntax.html
 */

module.exports.routes = {
  'GET    /noo/user/status':                              'UserController.status',
  'GET    /noo/user/me':                                  'UserController.findSelf',
  'POST   /noo/user/password':                            'UserController.sendPasswordReset',
  'GET    /noo/user/:userId':                             'UserController.findOne',
  'POST   /noo/user':                                     'UserController.create',
  'POST   /noo/user/:userId':                             'UserController.update',
  'GET    /noo/user/:userId/contributions':               'UserController.contributions',
  'GET    /noo/user/:userId/thanks':                      'UserController.thanks',
  'GET    /noo/user/:userId/posts':                       'PostController.findForUser',
  'GET    /noo/user/:userId/followed-posts':              'PostController.findForFollowed',
  'GET    /noo/user/:userId/all-community-posts':         'PostController.findForAllForUser',
  'GET    /noo/user/:userId/onboarding':                  'OnboardingController.find',
  'POST   /noo/user/:userId/onboarding':                  'OnboardingController.update',
  'GET    /noo/user/:userId/projects':                    'ProjectController.findForUser',

  'GET    /noo/community':                                'CommunityController.find',
  'POST   /noo/community':                                'CommunityController.create',
  'POST   /noo/community/code':                           'CommunityController.joinWithCode',
  'POST   /noo/community/validate':                       'CommunityController.validate',
  'GET    /noo/community/:communityId':                   'CommunityController.findOne',
  'POST   /noo/community/:communityId':                   'CommunityController.update',
  'GET    /noo/community/:communityId/settings':          'CommunityController.findSettings',
  'GET    /noo/community/:communityId/settings/slack':    'CommunityController.addSlack',
  'GET    /noo/community/:communityId/moderators':        'CommunityController.findModerators',
  'POST   /noo/community/:communityId/moderators':        'CommunityController.addModerator',
  'DELETE /noo/community/:communityId/moderator/:userId': 'CommunityController.removeModerator',
  'GET    /noo/community/:communityId/members':           'UserController.findForCommunity',
  'DELETE /noo/community/:communityId/member/:userId':    'CommunityController.removeMember',
  'GET    /noo/community/:communityId/posts':             'PostController.findForCommunity',
  'GET    /noo/community/:communityId/projects':          'ProjectController.findForCommunity',
  'GET    /noo/community/:communityId/invitations':       'InvitationController.find',
  'POST   /noo/community/:communityId/invite':            'InvitationController.create',

  'GET    /noo/post/:postId':                             'PostController.findOne',
  'POST   /noo/post/:postId/comment':                     'CommentController.create',
  'GET    /noo/post/:postId/comments':                    'CommentController.findForPost',
  'POST   /noo/post/:postId/follow':                      'PostController.follow',
  'POST   /noo/post/:postId/fulfill':                     'PostController.fulfill',
  'POST   /noo/post/:postId/vote':                        'PostController.vote',
  'GET    /noo/post/:postId/voters':                      'UserController.findForPostVote',
  'POST   /noo/post/:postId/complain':                    'PostController.complain',
  'POST   /noo/post/:postId/respond':                     'PostController.respond',
  'POST   /noo/post':                                     'PostController.create',
  'POST   /noo/post/:postId':                             'PostController.update',
  'DELETE /noo/post/:postId':                             'PostController.destroy',
  // these route names correspond with the different cases for subject in the
  // frontend fetchPosts action
  'POST   /noo/freshness/posts/community/:communityId':   'PostController.checkFreshnessForCommunity',
  'POST   /noo/freshness/posts/person/:userId':           'PostController.checkFreshnessForUser',
  'POST   /noo/freshness/posts/all-posts/:userId':        'PostController.checkFreshnessForAllForUser',
  'POST   /noo/freshness/posts/followed-posts/:userId':   'PostController.checkFreshnessForFollowed',
  'POST   /noo/freshness/posts/project/:projectId':       'PostController.checkFreshnessForProject',
  'POST   /noo/freshness/posts/network/:networkId':       'PostController.checkFreshnessForNetwork',
  'POST   /noo/freshness/posts/tag/:communityId/:tagName':'PostController.checkFreshnessForTag',

  'POST   /noo/comment/:commentId/thank':                 'CommentController.thank',
  'DELETE /noo/comment/:commentId':                       'CommentController.destroy',

  'DELETE /noo/membership/:communityId':                  'CommunityController.leave',

  'GET    /noo/activity':                                 'ActivityController.find',
{'fraction_non_alphanumeric': 0.12969084192105776, 'fraction_numerical': 0.00019443904335990667, 'mean_word_length': 2.114441416893733, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1950207', 'n_tokens_mistral': 3016, 'n_tokens_neox': 2923, 'n_words': 363}