def getInt(config, group, attr, default):
    if config.has_option(group, attr):
        try:
            result = config.getint(group, attr)
            return result
        except Exception:
            console.log((attr, group) % '%s of %s in config file should be int')
    return default
dataset/ETHPy150Open wangjeaf/CSSCheckStyle/ckstyle/command/CommandFileParser.py/getInt/swapped operands of `%`