<commit_before>module.exports = function(app) {
  var express = require('express');
  var storiesRouter = express.Router();

  storiesRouter.get('/', function(req, res) {
    res.send({
      'drafts': [
        {
          'id': 1,
          'firstLine': 'Open Draft',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'canContribute': true,
          'snippetCount': 1,
        },
        {
          'id': 2,
          'firstLine': 'Draft You Just Contributed To',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'canContribute': false,
          'snippetCount': 4,
        },
      ]
    });
  });

  storiesRouter.post('/', function(req, res) {
    res.status(201).end();
  });

  storiesRouter.get('/:id', function(req, res) {
    res.send({
      'stories': {
        id: req.params.id
      }
    });
  });

  storiesRouter.put('/:id', function(req, res) {
    res.send({
      'stories': {
        id: req.params.id
      }
    });
  });

  storiesRouter.delete('/:id', function(req, res) {
    res.status(204).end();
  });

  app.use('/api/v1/drafts', storiesRouter);
};
<commit_msg>Draft fixtures with each kind of status.<commit_after>module.exports = function(app) {
  var express = require('express');
  var storiesRouter = express.Router();

  storiesRouter.get('/', function(req, res) {
    res.send({
      'drafts': [
        {
          'id': 1,
          'firstLine': 'Open Draft',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'contributionStatus': 'available',
          'snippetCount': 1,
        },
        {
          'id': 2,
          'firstLine': 'Draft You Just Contributed To',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'contributionStatus': 'cooldown',
          'snippetCount': 4,
        },
        {
          'id': 3,
          'firstLine': 'Draft You Locked',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'contributionStatus': 'lockOwned',
          'snippetCount': 9,
        },
        {
          'id': 4,
          'firstLine': 'Draft Someone Else Locked',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'contributionStatus': 'locked:<EMAIL>',
          'snippetCount': 3,
        },
        {
          'id': 5,
          'firstLine': 'Draft with a Bad Status',
          'creatorEmail': '<EMAIL>',
          'createdAt': '2015-01-02T14:00:00',
          'contributionStatus': 'wtf',
          'snippetCount': 15,
        },
      ]
    });
  });

  storiesRouter.post('/', function(req, res) {
    res.status(201).end();
  });

  storiesRouter.get('/:id', function(req, res) {
    res.send({
      'stories': {
        id: req.params.id
      }
    });
  });

  storiesRouter.put('/:id', function(req, res) {
    res.send({
      'stories': {
        id: req.params.id
      }
    });
  });

  storiesRouter.delete('/:id', function(req, res) {
    res.status(204).end();
  });

  app.use('/api/v1/drafts', storiesRouter);
};

{'fraction_non_alphanumeric': 0.18779790276453764, 'fraction_numerical': 0.04035589450270099, 'mean_word_length': 1.917516218721038, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4516632', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1051, 'n_words': 183}