<commit_before>
import math

################################################################################
## Class Triangle
################################################################################

class Triangle( object ):
    
    def __init__( self, sideA=0.0, sideB=0.0, sideC=0.0 ):
        """
        Initialize an object of type Triangle.
        """
        
        self.__sideA = 0.0
        self.__sideB = 0.0
        self.__sideC = 0.0
        self.__valid = False
        sideA=self.__sideA
        sideB=self.__sideB
        sideC=self.__sideC
        

    def __validate( self ):
        #
        # Check the three sides to determine if a Triangle is valid.
        #

        pass # REPLACE
    
    def __repr__( self ):
        """
        Return a string (the representation of a Triangle).
        """
        sideA=float(self.__sideA)
        sideB=float(self.__sideB)
        sideC=float(self.__sideC)
        return("{}:.2f, {}.2f, {}.2f".format(sideA,sideB,sideC))

    def __str__( self ):
        """
        Return a string (the representation of a Triangle).
        """
        #same as __repr__?
        sideA=float(self.__sideA)
        sideB=float(self.__sideB)
        sideC=float(self.__sideC)
        return("( {}, {}, {} )".format(sideA,sideB,sideC))

    def is_valid( self ):
        """
        Return a Boolean (is the Triangle valid?).
        """
        valid=True
        sideA=float(self.__sideA)
        sideB=float(self.__sideB)
        sideC=float(self.__sideC)
        perimeter=sideA=sideB+sideC
        largest_side=max(sideA,sideB,sideC)
        if perimeter<0 or perimeter==0:
            valid=False
            if perimeter-largest_side>largest_side:
                valid=True
        return valid

    def is_equilateral( self ):
        """
        Return a Boolean (is the Triangle an equilateral triangle?)
        """
        #An equilateral triangle has three sides whose lengths are equal. 
        equilateral=False
        if self.__sideA==self.__sideB==self.__sideC:
            equilater=True
        return equilateral

    def is_isosceles( self ):
        """
        Return a Boolean (is the Triangle an isosceles triangle?)
        """
        #An isosceles triangle has at least two sides whose lengths are equal
        isosceles=False
        if self.__sideA==self.__sideB and self.__sideA==self.__sideC or self.__sideB==self.__sideC and self.__sideA==self.__sideC:
            isosceles=True
        return isosceles

    def is_scalene( self ):
        """
        Return a Boolean (is the Triangle a scalene triangle?)
        """
        #A scalene triangle has no sides whose lengths are equal. 
        scalene=True
        if self.__sideA==self.__sideB or self.__sideA==self.__sideC or self.__sideB==self.__sideC:
            scalene=False
        return scalene<commit_msg>project09 fixed init, it was backwards, print str is working<commit_after>
import math

################################################################################
## Class Triangle
################################################################################

class Triangle( object ):
    
    def __init__( self, sideA=0.0, sideB=0.0, sideC=0.0 ):
        """
        Initialize an object of type Triangle.
        """
        
        self.__sideA = 0.0
        self.__sideB = 0.0
        self.__sideC = 0.0
        self.__valid = False
        
        self.__sideA=sideA
        self.__sideB=sideB
        self.__sideC=sideC
        

    def __validate( self ):
        #
        # Check the three sides to determine if a Triangle is valid.
        #
        sideA=float(self.__sideA)
        sideB=float(self.__sideB)
        sideC=float(self.__sideC)
        perimeter=sideA=sideB+sideC
        largest_side=max(sideA,sideB,sideC)
        if perimeter<0:
            self.__valid=False
            if perimeter-largest_side>largest_side:
                self.__valid=True
    
    def __repr__( self ):
        """
        Return a string (the representation of a Triangle).
        """
        return("{}, {}, {}".format(self.__sideA,self.__sideB,self.__sideC))

    def __str__( self ):
        """
        Return a string (the representation of a Triangle).
        """
        return("( {}, {}, {} )".format(self.__sideA,self.__sideB,self.__sideC))

    def is_valid( self ):
        """
        Return a Boolean (is the Triangle valid?).
        """
        return self.__valid

    def is_equilateral( self ):
        """
        Return a Boolean (is the Triangle an equilateral triangle?)
        """
        #An equilateral triangle has three sides whose lengths are equal. 
        equilateral=False
        if self.__sideA==self.__sideB==self.__sideC:
            equilateral=True
        return equilateral

    def is_isosceles( self ):
        """
        Return a Boolean (is the Triangle an isosceles triangle?)
        """
        #An isosceles triangle has at least two sides whose lengths are equal
        isosceles=False
        if self.__sideA==self.__sideB and self.__sideA==self.__sideC or self.__sideB==self.__sideC and self.__sideA==self.__sideC:
            isosceles=True
        return isosceles

    def is_scalene( self ):
        """
        Return a Boolean (is the Triangle a scalene triangle?)
        """
        #A scalene triangle has no sides whose lengths are equal. 
        scalene=True
        if self.__sideA==self.__sideB or self.__sideA==self.__sideC or self.__sideB==self.__sideC:
            scalene=False
        return scalene
{'fraction_non_alphanumeric': 0.15045838576307746, 'fraction_numerical': 0.005752291928815387, 'mean_word_length': 2.1135982092893117, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '315189', 'n_tokens_mistral': 1596, 'n_tokens_neox': 1528, 'n_words': 403}