<commit_before>const BaseChecker = require('./../base-checker');

class BaseDecprecation extends BaseChecker {
    constructor(reporter) {
        super(reporter);
        this.active = false;
        this.deprecationVersion(); // to ensure we have one.
    }

    exitPragmaDirective(ctx) {
        const pragma = ctx.children[1].getText();
        const value = ctx.children[2].getText();
        if(pragma === 'solidity') {
            var contextVersion = value.replace(/[^0-9.]/g, '').split('.');
            var deprecationAt = this.deprecationVersion().split('.');
            this.active =
              contextVersion[0] > deprecationAt[0] ||
              contextVersion[1] > deprecationAt[1] ||
              contextVersion[2] >= deprecationAt[2];
            this.version = value;
        }
    }

    deprecationVersion() {
        throw new Error('Implementations must supply a deprecation version!');
    }
}

module.exports = BaseDecprecation;<commit_msg>Fix typo in class name<commit_after>const BaseChecker = require('./../base-checker');

class BaseDeprecation extends BaseChecker {
    constructor(reporter) {
        super(reporter);
        this.active = false;
        this.deprecationVersion(); // to ensure we have one.
    }

    exitPragmaDirective(ctx) {
        const pragma = ctx.children[1].getText();
        const value = ctx.children[2].getText();
        if(pragma === 'solidity') {
            var contextVersion = value.replace(/[^0-9.]/g, '').split('.');
            var deprecationAt = this.deprecationVersion().split('.');
            this.active =
              contextVersion[0] > deprecationAt[0] ||
              contextVersion[1] > deprecationAt[1] ||
              contextVersion[2] >= deprecationAt[2];
            this.version = value;
        }
    }

    deprecationVersion() {
        throw new Error('Implementations must supply a deprecation version!');
    }
}

module.exports = BaseDeprecation;
{'fraction_non_alphanumeric': 0.1375064135454079, 'fraction_numerical': 0.01026167265264238, 'mean_word_length': 2.3562822719449223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '812729', 'n_tokens_mistral': 554, 'n_tokens_neox': 546, 'n_words': 109}