<commit_before>package python.object;
import python.error.ExceptionManager;
import python.error.UnsupportedException;

public class PythonBoolean extends python.object.PythonObject
{
    private boolean value;

    public boolean getValue() {
        return value;
    }

    public PythonBoolean(String str)
    {
        value = Boolean.parseBoolean(str);
    }

    public PythonBoolean(boolean val)
    {
        value = val;
    }

    @Override
    public python.object.PythonObject apply(python.object.PythonObject second, String op) {
        python.object.PythonInteger integer = new python.object.PythonInteger(getValue()? 1:0);
        switch (op){
            case "+":
                if(second instanceof python.object.PythonComplex )
                {
                    python.object.PythonComplex number = (python.object.PythonComplex) second;
                    return number.apply(integer, "+");
                }
                if(second instanceof PythonBoolean){
                    python.object.PythonInteger bool = new python.object.PythonInteger(((PythonBoolean) second).getValue()?1:0);
                    return integer.apply(bool, "+");
                }
                if(second instanceof python.object.PythonNumber ) {
                    python.object.PythonNumber number = (python.object.PythonNumber) second;
                    return integer.apply(number, "+");
                }
                break;
            case "-":
                if(second instanceof python.object.PythonComplex )
                {
                    python.object.PythonComplex number = (python.object.PythonComplex) second;
                    number = (python.object.PythonComplex) number.apply("-");
                    return number.apply(integer.apply("-"), "-");
                }
                if(second instanceof PythonBoolean){
                    python.object.PythonInteger bool = new python.object.PythonInteger(((PythonBoolean) second).getValue()?1:0);
                    return integer.apply(bool, "-");
                }
                if(second instanceof python.object.PythonNumber ) {
                    python.object.PythonNumber number = (python.object.PythonNumber) second;
                    return integer.apply(number, "-");
                }
                break;
            case "/":
                if(second instanceof python.object.PythonComplex )
                {
                    python.object.PythonComplex thisAsComplex = new python.object.PythonComplex(integer.getValue(), 0);
                    return thisAsComplex.apply(number, "/");
                }
                if(second instanceof PythonBoolean){
                    python.object.PythonInteger bool = new python.object.PythonInteger(((PythonBoolean) second).getValue()?1:0);
                    return integer.apply(bool, "/");
                }
                if(second instanceof python.object.PythonNumber ) {
                    python.object.PythonNumber number = (python.object.PythonNumber) second;
                    return integer.apply(number, "/");
                }
                break;
            case "//":
                if(second instanceof PythonBoolean){<commit_msg>Initial Commit<commit_after>package python.object;
import python.error.ExceptionManager;
import python.error.UnsupportedException;

public class PythonBoolean extends python.object.PythonObject
{
    private boolean value;

    public boolean getValue() {
        return value;
    }

    public PythonBoolean(String str)
    {
        value = Boolean.parseBoolean(str);
    }

    public PythonBoolean(boolean val)
    {
        value = val;
    }

    @Override
    public python.object.PythonObject apply(python.object.PythonObject second, String op) {
        python.object.PythonInteger integer = new python.object.PythonInteger(getValue()? 1:0);
        switch (op){
            case "+":
                if(second instanceof python.object.PythonComplex )
                {
                    python.object.PythonComplex number = (python.object.PythonComplex) second;
                    return number.apply(integer, "+");
                }
                if(second instanceof PythonBoolean){
                    python.object.PythonInteger bool = new python.object.PythonInteger(((PythonBoolean) second).getValue()?1:0);
                    return integer.apply(bool, "+");
                }
                if(second instanceof python.object.PythonNumber ) {
                    python.object.PythonNumber number = (python.object.PythonNumber) second;
                    return integer.apply(number, "+");
                }
                break;
            case "-":
                if(second instanceof python.object.PythonComplex )
                {
                    python.object.PythonComplex number = (python.object.PythonComplex) second;
                    number = (python.object.PythonComplex) number.apply("-");
                    return number.apply(integer.apply("-"), "-");
                }
                if(second instanceof PythonBoolean){
                    python.object.PythonInteger bool = new python.object.PythonInteger(((PythonBoolean) second).getValue()?1:0);
                    return integer.apply(bool, "-");
                }
                if(second instanceof python.object.PythonNumber ) {
                    python.object.PythonNumber number = (python.object.PythonNumber) second;
                    return integer.apply(number, "-");
                }
                break;
            case "/":
                if(second instanceof python.object.PythonComplex )
                {
                    python.object.PythonComplex thisAsComplex = new python.object.PythonComplex(integer.getValue(), 0);
                    return integer.apply(thisAsComplex, "/");
                }
                if(second instanceof PythonBoolean){
                    python.object.PythonInteger bool = new python.object.PythonInteger(((PythonBoolean) second).getValue()?1:0);
                    return integer.apply(bool, "/");
                }
                if(second instanceof python.object.PythonNumber ) {
                    python.object.PythonNumber number = (python.object.PythonNumber) second;
                    return integer.apply(number, "/");
                }
                break;
            case "//":
                if(second instanceof PythonBoolean){
{'fraction_non_alphanumeric': 0.10021718895439032, 'fraction_numerical': 0.0027924294135898233, 'mean_word_length': 1.6728855721393034, 'pattern_counts': {'":': 8, '<': 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': '2642809', 'n_tokens_mistral': 1562, 'n_tokens_neox': 1401, 'n_words': 282}