def dist_abs(self, src, tar):
if tar == src:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>elif not src:<EOL><INDENT>return len(tar)<EOL><DEDENT>elif not tar:<EOL><INDENT>return len(src)<EOL><DEDENT>src_bag = Counter(src)<EOL>tar_bag = Counter(tar)<EOL>return max(<EOL>sum((src_bag - tar_bag).values()),<EOL>sum((tar_bag - src_bag).values()),<EOL>)<EOL>
Return the bag distance between two strings.

        Parameters
        ----------
        src : str
            Source string for comparison
        tar : str
            Target string for comparison

        Returns
        -------
        int
            Bag distance

        Examples
        --------
        >>> cmp = Bag()
        >>> cmp.dist_abs('cat', 'hat')
        1
        >>> cmp.dist_abs('Niall', 'Neil')
        2
        >>> cmp.dist_abs('aluminum', 'Catalan')
        5
        >>> cmp.dist_abs('ATCG', 'TAGC')
        0
        >>> cmp.dist_abs('abcdefg', 'hijklm')
        7
        >>> cmp.dist_abs('abcdefg', 'hijklmno')
        8