drepr/old_code/prototype/drepr/models/variable.py
def cmp_size(self, another: 'Variable') -> int:
        """Return 0 if two variables have same size, 1 if size of current var is greater than other and 0 otherwise"""
        default_upper_bound = 1000
        x_size = self.get_estimated_size(default_upper_bound)
        y_size = another.get_estimated_size(default_upper_bound)
        if x_size > y_size:
            return 1

        if x_size < y_size:
            return -1

        return 0
Return 0 if two variables have same size, 1 if size of current var is greater than other and 0 otherwise
Return 0 if two variables have same size, 1 if size of current var is greater than other and 0 otherwise
Return 0 if two variables have same size 1 if size of current var is greater than other and 0 otherwise
def cmp_size(self, another: 'Variable') -> int:
        default_upper_bound = 1000
        x_size = self.get_estimated_size(default_upper_bound)
        y_size = another.get_estimated_size(default_upper_bound)
        if x_size > y_size:
            return 1
        if x_size < y_size:
            return -1
        return 0
def cmp_size ( self , another : 'Variable' ) -> int : default_upper_bound = 1000 x_size = self . get_estimated_size ( default_upper_bound ) y_size = another . get_estimated_size ( default_upper_bound ) if x_size > y_size : return 1 if x_size < y_size : return - 1 return 0
Return 0 if two variables have same size, 1 if size of current var is greater than other and 0 otherwise
Return 0 if two variables have same size 1 if size of current var is greater than other and 0 otherwise
"""Return 0 if two variables have same size, 1 if size of current var is greater than other and 0 otherwise"""
self
another
'Variable'