def __new__(cls, text):
frame = inspect.getouterframes(inspect.currentframe())[<NUM_LIT:1>]<EOL>path = os.path.abspath(frame[<NUM_LIT:1>])<EOL>linenum = frame[<NUM_LIT:2>]<EOL>key = (path, linenum)<EOL>try:<EOL><INDENT>self = cls._all_instances[key]<EOL><DEDENT>except KeyError:<EOL><INDENT>indent, dedented_text = cls._dedent(text)<EOL>self = super(Baseline, cls).__new__(cls, dedented_text)<EOL>cls._all_instances[key] = self<EOL>self.z__path = path<EOL>self.z__linenum = linenum<EOL>self._indent = indent<EOL>self._updates = set()<EOL><DEDENT>else:<EOL><INDENT>if baseclass.__ne__(self, text):<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT><DEDENT>return self<EOL>
Construct and initialize Baseline instance.

        Determine source code location (path/line) for every instance
        constructed and return same instance for every unique location.
        Remove whitespace used to make the string look pretty in the
        source file (i.e. when multi-line, remove common indentation
        as well as the first and last lines).

        :param text: baselined string representation
        :type text: str or unicode
        :returns: normalized string representation
        :raises RuntimeError: when text differs for a specific location