<commit_before>'use strict';

const common = require('../common');
const genbankParser = require('genbank-parser');

module.exports = {
  find(dna, filename) {
    let reference = common.getBasename(filename);

    return dna.find(dna => {
      return getReference(common.getFilename(dna)) === reference;
    });
  },

  getProperty(filename, content) {
    return common.getTargetProperty(filename);
  },

  process(filename, content) {
    let toReturn;
    const parsed = genbankParser(contents);
    if (parsed.some(p => p.success !== true)) {
      throw new Error('Error parsing genbank');
    }
    toReturn = {
      seq: parsed
    };
    return toReturn;
  },

  jpath: ['biology', 'dna']
};
<commit_msg>fix dna type (typo)<commit_after>'use strict';

const common = require('../common');
const genbankParser = require('genbank-parser');

module.exports = {
  find(dna, filename) {
    let reference = common.getBasename(filename);

    return dna.find(dna => {
      return getReference(common.getFilename(dna)) === reference;
    });
  },

  getProperty(filename, content) {
    return common.getTargetProperty(filename);
  },

  process(filename, content) {
    let toReturn;
    const parsed = genbankParser(content);
    if (parsed.some(p => p.success !== true)) {
      throw new Error('Error parsing genbank');
    }
    toReturn = {
      seq: parsed
    };
    return toReturn;
  },

  jpath: ['biology', 'dna']
};

{'fraction_non_alphanumeric': 0.15191637630662022, 'fraction_numerical': 0.0, 'mean_word_length': 3.325301204819277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3184592', 'n_tokens_mistral': 456, 'n_tokens_neox': 444, 'n_words': 97}