<commit_before>var cheerio = require('cheerio');

var EnrollmentInfoParser = function(htmlPage) {
    this.$ = cheerio.load(htmlPage);

    cap = resultsToArray(this.$, '[id=SSR_CLS_DTL_WRK_ENRL_CAP]');
    tot = resultsToArray(this.$, '[id=SSR_CLS_DTL_WRK_ENRL_TOT]');
    avail = resultsToArray(this.$, '[id=SSR_CLS_DTL_WRK_AVAILABLE_SEATS]');

    this.classCapacity = parseInt(cap.text(), 10);
    this.classTotal = parseInt(tot.text(), 10);
    this.classAvailable = parseInt(avail.text(), 10);
};
<commit_msg>Patched parsing method<commit_after>var cheerio = require('cheerio');

var EnrollmentInfoParser = function(htmlPage) {
    this.$ = cheerio.load(htmlPage);

    cap = resultsToArray(this.$, '[id=SSR_CLS_DTL_WRK_ENRL_CAP]');
    tot = resultsToArray(this.$, '[id=SSR_CLS_DTL_WRK_ENRL_TOT]');
    avail = resultsToArray(this.$, '[id=SSR_CLS_DTL_WRK_AVAILABLE_SEATS]');

    this.classCapacity = parseInt(cap[0], 10);
    this.classTotal = parseInt(tot[0], 10);
    this.classAvailable = parseInt(avail[0], 10);
};

{'fraction_non_alphanumeric': 0.1626095423563778, 'fraction_numerical': 0.014605647517039922, 'mean_word_length': 5.506329113924051, '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': '3744426', 'n_tokens_mistral': 411, 'n_tokens_neox': 399, 'n_words': 54}