<commit_before>'use strict';

const querystring = require('querystring');

module.exports = (Organism) => {
  return (req, res) => {
    let queryData = '';
    req.on('data', (data) => {
      queryData += data;
    });

    req.on('end', () => {
      const obj = querystring.parse(queryData);
      Organism.create(obj, (err, data) => callback(err, data, res));
    });
  };
};
<commit_msg>create OK<commit_after>'use strict';

const querystring = require('querystring');
const callback = require('./action-callback-http-200');

module.exports = (Organism) => {
  return (req, res) => {
    Organism.create(req.body, (err, data) => {
      callback(err, data, res);
    });
  }
};


{'fraction_non_alphanumeric': 0.20145985401459854, 'fraction_numerical': 0.004379562043795621, 'mean_word_length': 3.3417721518987342, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2281381', 'n_tokens_mistral': 236, 'n_tokens_neox': 226, 'n_words': 46}