<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/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/invitations':       'InvitationController.find',
  'POST   /noo/community/:communityId/invite':            'InvitationController.create',
  'GET    /noo/community/:communityId/activity':          'ActivityController.findForCommunity',
  'GET    /noo/community/:communityId/tags':              'TagController.findForCommunity',
  'DELETE /noo/community/:communityId/tag/:tagId':        'TagController.removeFromCommunity',

  '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/rsvp':                        'PostController.rsvp',
  '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/network/:networkId':       'PostController.checkFreshnessForNetwork',
  'POST   /noo/freshness/posts/tag/:tagName':             'PostController.checkFreshnessForTagInAllCommunities',

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

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

  'GET    /noo/activity':                                 'ActivityController.find',
  'POST   /noo/activity':                                 'ActivityController.update',
  'POST   /noo/activity/mark-all-read':                   'ActivityController.markAllRead',
  'POST   /noo/activity/:activityId':                     'ActivityController.update',

  'GET    /noo/network/:networkId':                       'NetworkController.findOne',
  'GET    /noo/network/:networkId/posts':                 'PostController.findForNetwork',
  'GET    /noo/network/:networkId/communities':           'CommunityController.findForNetwork',
  'GET    /noo/network/:networkId/members':               'UserController.findForNetwork',
  'POST   /noo/network':                                  'NetworkController.create',
  'POST   /noo/network/validate':                         'NetworkController.validate',
  'POST   /noo/network/:networkId':                       'NetworkController.update',

  'GET    /noo/community/:communityId/tag/:tagName':       'TagController.findOneInCommunity',
  'POST   /noo/community/:communityId/tag/:tagName/follow':'TagController.follow',
  'GET    /noo/community/:communityId/tags/followed':      'TagController.findFollowed',
  'GET    /noo/community/:communityId/tags/leftnav':       'TagController.findForLeftNav',
  'GET    /noo/tag/:tagName':                              'TagController.findOne',
  'GET    /noo/tag/:tagName/summary':                      'TagController.findOneSummary',
  'GET    /noo/tag/:tagName/posts':                        'PostController.findForTagInAllCommunities',
  'POST   /noo/community/:communityId/tag/:tagName/reset': 'TagController.resetNewPostCount',

  'GET    /noo/search':                                   'SearchController.show',
  'GET    /noo/search/fulltext':                          'SearchController.showFullText',
  'GET    /noo/autocomplete':                             'SearchController.autocomplete',

  'GET    /noo/invitation/:token':                        'InvitationController.findOne',
  'POST   /noo/invitation/:token':                        'InvitationController.use',

  'POST   /noo/waitlist':                                 'MessageController.createWaitlistRequest',

  'GET    /noo/admin/login':                              'AdminSessionController.create',
  'GET    /noo/admin/login/oauth':                        'AdminSessionController.oauth',
  'GET    /noo/admin/logout':                             'AdminSessionController.destroy',
  'GET    /noo/admin':                                    'AdminController.index',
  'GET    /noo/admin/metrics':                            'AdminController.metrics',
  'GET    /noo/admin/raw-metrics':                        'AdminController.rawMetrics',
  'GET    /noo/admin/login-as/:userId':                   'AdminController.loginAsUser',

  'POST   /noo/hook/comment':                             'CommentController.createFromEmail',
  'POST   /noo/hook/message':                             'MessageController.relayFromEmail',
  'POST   /noo/hook/post':                                'PostController.createFromEmail',
  'POST   /noo/hook/postForm':                            'PostController.createFromEmailForm',

  'POST   /noo/login':                                    'SessionController.create',
  'GET    /noo/login/token':                              'SessionController.createWithToken',<commit_msg>fix route for tag summary<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/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/invitations':       'InvitationController.find',
  'POST   /noo/community/:communityId/invite':            'InvitationController.create',
  'GET    /noo/community/:communityId/activity':          'ActivityController.findForCommunity',
  'GET    /noo/community/:communityId/tags':              'TagController.findForCommunity',
  'DELETE /noo/community/:communityId/tag/:tagId':        'TagController.removeFromCommunity',

  '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/rsvp':                        'PostController.rsvp',
  '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/network/:networkId':       'PostController.checkFreshnessForNetwork',
  'POST   /noo/freshness/posts/tag/:tagName':             'PostController.checkFreshnessForTagInAllCommunities',

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

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

  'GET    /noo/activity':                                 'ActivityController.find',
  'POST   /noo/activity':                                 'ActivityController.update',
  'POST   /noo/activity/mark-all-read':                   'ActivityController.markAllRead',
  'POST   /noo/activity/:activityId':                     'ActivityController.update',

  'GET    /noo/network/:networkId':                       'NetworkController.findOne',
  'GET    /noo/network/:networkId/posts':                 'PostController.findForNetwork',
  'GET    /noo/network/:networkId/communities':           'CommunityController.findForNetwork',
  'GET    /noo/network/:networkId/members':               'UserController.findForNetwork',
  'POST   /noo/network':                                  'NetworkController.create',
  'POST   /noo/network/validate':                         'NetworkController.validate',
  'POST   /noo/network/:networkId':                       'NetworkController.update',

  'GET    /noo/community/:communityId/tag/:tagName':        'TagController.findOneInCommunity',
  'POST   /noo/community/:communityId/tag/:tagName/follow': 'TagController.follow',
  'GET    /noo/community/:communityId/tags/followed':       'TagController.findFollowed',
  'GET    /noo/community/:communityId/tags/leftnav':        'TagController.findForLeftNav',
  'GET    /noo/tag/:tagName':                               'TagController.findOne',
  'GET    /noo/community/:communityId/tag/:tagName/summary':'TagController.findOneSummary',
  'GET    /noo/tag/:tagName/posts':                         'PostController.findForTagInAllCommunities',
  'POST   /noo/community/:communityId/tag/:tagName/reset':  'TagController.resetNewPostCount',

  'GET    /noo/search':                                   'SearchController.show',
  'GET    /noo/search/fulltext':                          'SearchController.showFullText',
  'GET    /noo/autocomplete':                             'SearchController.autocomplete',

  'GET    /noo/invitation/:token':                        'InvitationController.findOne',
  'POST   /noo/invitation/:token':                        'InvitationController.use',

  'POST   /noo/waitlist':                                 'MessageController.createWaitlistRequest',

  'GET    /noo/admin/login':                              'AdminSessionController.create',
  'GET    /noo/admin/login/oauth':                        'AdminSessionController.oauth',
  'GET    /noo/admin/logout':                             'AdminSessionController.destroy',
  'GET    /noo/admin':                                    'AdminController.index',
  'GET    /noo/admin/metrics':                            'AdminController.metrics',
  'GET    /noo/admin/raw-metrics':                        'AdminController.rawMetrics',
  'GET    /noo/admin/login-as/:userId':                   'AdminController.loginAsUser',

  'POST   /noo/hook/comment':                             'CommentController.createFromEmail',
  'POST   /noo/hook/message':                             'MessageController.relayFromEmail',
  'POST   /noo/hook/post':                                'PostController.createFromEmail',
  'POST   /noo/hook/postForm':                            'PostController.createFromEmailForm',

  'POST   /noo/login':                                    'SessionController.create',
  'GET    /noo/login/token':                              'SessionController.createWithToken',
{'fraction_non_alphanumeric': 0.1261046511627907, 'fraction_numerical': 0.00011627906976744187, 'mean_word_length': 1.9045930428909152, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '606014', 'n_tokens_mistral': 4907, 'n_tokens_neox': 4764, 'n_words': 593}