def __is_in_comment(self, region):
        """Determines if the entire region is encapsulated by a comment."""
        point = region.begin()
        if self.view.scope_name(point).find('comment') != -1:
            comment_region = self.view.extract_scope(point)
            if comment_region.begin() <= region.begin() and comment_region.end() >= region.end():
                return True

        return False
dataset/ETHPy150Open lifted-studios/AutoCopyright/UpdateCopyrightCommand.py/UpdateCopyrightCommand.__is_in_comment/original