<commit_before>const router = require('express').Router()

const {
  DEFAULT_COLLECTION_QUERY,
  APP_PERMISSIONS,
  QUERY_FIELDS,
  QUERY_DATE_FIELDS,
} = require('./constants')
// const { renderInteractionList } = require('./controllers/list')
const {
  exportCollection,
} = require('../../modules/search/middleware/collection')
const { getRequestBody } = require('../../middleware/collection')

const { setDefaultQuery, handleRoutePermissions } = require('../middleware')
// const {
//   getInteractionCollection,
//   getInteractionsRequestBody,
//   getInteractionSortForm,
// } = require('./middleware/collection')

const subAppRouter = require('./router.sub-app')

router.use(handleRoutePermissions(APP_PERMISSIONS))

// router.get(
//   '/',
//   setDefaultQuery(DEFAULT_COLLECTION_QUERY),
//   getInteractionsRequestBody,
//   getInteractionCollection,
//   getInteractionSortForm,
//   renderInteractionList
// )

router.get(
  '/export',
  setDefaultQuery(DEFAULT_COLLECTION_QUERY),
  getRequestBody(QUERY_FIELDS, QUERY_DATE_FIELDS),<commit_msg>Add todo comments around actions post launch<commit_after>const router = require('express').Router()

const {
  DEFAULT_COLLECTION_QUERY,
  APP_PERMISSIONS,
  QUERY_FIELDS,
  QUERY_DATE_FIELDS,
} = require('./constants')
// TODO: After the React collection list has gone live and the users are
// happy we must remove the commented out code below
// const { renderInteractionList } = require('./controllers/list')
const {
  exportCollection,
} = require('../../modules/search/middleware/collection')
const { getRequestBody } = require('../../middleware/collection')

const { setDefaultQuery, handleRoutePermissions } = require('../middleware')
// TODO: After the React collection list has gone live and the users are
// happy we must remove the commented out code below
// const {
//   getInteractionCollection,
//   getInteractionsRequestBody,
//   getInteractionSortForm,
// } = require('./middleware/collection')

const subAppRouter = require('./router.sub-app')

router.use(handleRoutePermissions(APP_PERMISSIONS))
// TODO: After the React collection list has gone live and the users are
// happy we must remove the commented out code below
// router.get(
//   '/',
//   setDefaultQuery(DEFAULT_COLLECTION_QUERY),
//   getInteractionsRequestBody,
//   getInteractionCollection,
//   getInteractionSortForm,
//   renderInteractionList
// )

router.get(
  '/export',
  setDefaultQuery(DEFAULT_COLLECTION_QUERY),
  getRequestBody(QUERY_FIELDS, QUERY_DATE_FIELDS),
{'fraction_non_alphanumeric': 0.13055555555555556, 'fraction_numerical': 0.0, 'mean_word_length': 4.552863436123348, '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': '3287381', 'n_tokens_mistral': 751, 'n_tokens_neox': 744, 'n_words': 155}