<commit_before>'use strict';
/* eslint camelcase: 0 */

module.exports = function(keyword, name, description, line) {
  return {
    token: 'feature',
    keyword: keyword,
    name: name,
    description: description,
    line: line,
    scenarios: []
  };
}<commit_msg>Use a contructor for feature objects to allow ease of expanding functionality.<commit_after>'use strict';
/* eslint camelcase: 0 */

function Feature(keyword, name, description, line) {
  this.token = 'feature';
  this.keyword = keyword;
  this.name = name;
  this.description = description;
  this.line = line;
  this.scenarios = [];
  this.tags = [];
};

module.exports = function(keyword, name, description, line) {
  return new Feature(keyword, name, description, line);
}
{'fraction_non_alphanumeric': 0.13386880856760375, 'fraction_numerical': 0.002677376171352075, 'mean_word_length': 3.986666666666667, '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': '4795720', 'n_tokens_mistral': 226, 'n_tokens_neox': 222, 'n_words': 66}