<commit_before>package com.github.rnewson.couchdb.lucene;

import org.apache.log4j.Logger;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;

class JSLog extends ScriptableObject {

    private final Logger logger = Logger.getLogger(LogAdapter.class);

    public JSLog() {
        String[] names = { "error", "warn", "info", "debug", "trace" };
        defineFunctionProperties(names, JSLog.class, ScriptableObject.DONTENUM);
    }

    @Override
    public String getClassName() {
        return "LogAdapter";
    }

    public void error(String mesg) {
        logger.error(mesg);
    }
    
    public void warn(String mesg) {
        logger.warn(mesg);
    }

    public void info(String mesg) {
        logger.info(mesg);
    }

    public void debug(String mesg) {
        logger.debug(mesg);
    }

    public void trace(String mesg) {
        logger.trace(mesg);
    }
}

<commit_msg>fix compilation error.<commit_after>package com.github.rnewson.couchdb.lucene;

import org.apache.log4j.Logger;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;

class JSLog extends ScriptableObject {

    private final Logger logger = Logger.getLogger(JSLog.class);

    public JSLog() {
        String[] names = { "error", "warn", "info", "debug", "trace" };
        defineFunctionProperties(names, JSLog.class, ScriptableObject.DONTENUM);
    }

    @Override
    public String getClassName() {
        return "LogAdapter";
    }

    public void error(String mesg) {
        logger.error(mesg);
    }
    
    public void warn(String mesg) {
        logger.warn(mesg);
    }

    public void info(String mesg) {
        logger.info(mesg);
    }

    public void debug(String mesg) {
        logger.debug(mesg);
    }

    public void trace(String mesg) {
        logger.trace(mesg);
    }
}


{'fraction_non_alphanumeric': 0.11390532544378698, 'fraction_numerical': 0.0009861932938856016, 'mean_word_length': 2.9474708171206228, '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': '12417', 'n_tokens_mistral': 635, 'n_tokens_neox': 611, 'n_words': 130}