<commit_before>'use strict';

// include dependencies
const unit = require('unit.js');
const express = require('express');
const acceptable = require('../index');
const noop = () => {};
const app = express();

app.use(acceptable('json', 'txt'));

app.get('/test', (req, res, next) => {
  res.format({
    json: () => {
      return res.status(200).send(req.headers);
    },
    default: () => {
      return res.status(200).send(req.headers.accept);
    },
  }); // end res.format
}); // end app.get

app.use((e, req, res, next) => {
  return res.status(406).send('Not Acceptable');
});<commit_msg>lint update sort-keys<commit_after>'use strict';

// include dependencies
const unit = require('unit.js');
const express = require('express');
const acceptable = require('../index');
const noop = () => {};
const app = express();

app.use(acceptable('json', 'txt'));

app.get('/test', (req, res, next) => {
  res.format({
    default: () => {
      return res.status(200).send(req.headers.accept);
    },
    json: () => {
      return res.status(200).send(req.headers);
    },
  }); // end res.format
}); // end app.get

app.use((e, req, res, next) => {
  return res.status(406).send('Not Acceptable');
});
{'fraction_non_alphanumeric': 0.22674418604651161, 'fraction_numerical': 0.014950166112956811, 'mean_word_length': 3.530075187969925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5344403', 'n_tokens_mistral': 405, 'n_tokens_neox': 390, 'n_words': 86}