<commit_before>const Type = require("./type");

module.exports = class ExpTernary {
    constructor(op, matchexp1, matchexp2, matchexp3) {
        this.matchexp1 = matchexp1;
        this.matchexp2 = matchexp2;
        this.matchexp3 = matchexp3;
    }

    analyze(context) {
        this.matchexp1.analyze(context);
        if (this.matchexp1.type !== Type.BOOL) {<commit_msg>Minor adjustment to exp_ternary class.<commit_after>const Type = require("./type");

module.exports = class ExpTernary {
    constructor(matchexp1, matchexp2, matchexp3) {
        this.matchexp1 = matchexp1;
        this.matchexp2 = matchexp2;
        this.matchexp3 = matchexp3;
    }

    analyze(context) {
        this.matchexp1.analyze(context);
        if (this.matchexp1.type !== Type.BOOL) {
{'fraction_non_alphanumeric': 0.12097812097812098, 'fraction_numerical': 0.028314028314028315, 'mean_word_length': 2.949238578680203, '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': '4694537', 'n_tokens_mistral': 278, 'n_tokens_neox': 276, 'n_words': 45}