def line_is_partially_commented(self, line, ext):
        flag = False
        if ext in ("java", "js", "c", "cpp", "cc", "scala"):
            if re.match(r"^(\+|\-)(.*)(/\*)(.*)\*/", line) or \
                    re.match(r"^(\+|\-)(.*)//", line):
                flag = True
        elif ext in ("py", "rb"):
            if re.match(r"^(\+|\-)(.*)\#", line):
                flag = True
        elif ("xml", "html") in ext:
            if re.match(r"^(\+|\-)(.*)(<\!\-\-)(.*)(\-\->)", line):
                flag = True
        elif ext == "sql":
            if re.match(r"^(\+|\-)(.*)(/\*)(.*)(\*/)", line) or \
                    re.match(r"^(\+|\-)(.*)(\-\-\s)", line):
                flag = True
        elif ext == "php":
            if re.match(r"^(\+|\-)(.*)(/\*)(.*)\*/", line) or \
                    re.match(r"^(\+|\-)(.*)//", line) or \
                    re.match(r"^(\+|\-)(.*)\#", line):
                flag = True
        elif ext == "m":
            if re.match(r'^(\+|\-)(.*)(%)', line) or \
                    re.match(r"^(\+|\-)(.*)(%\{)(.*)(%\})", line):
                flag = True
        else:
            self.logger.warning("GitQuerier: impossible to identify comments for extension: " + ext)

        return flag
dataset/ETHPy150Open SOM-Research/Gitana/gitquerier.py/GitQuerier.line_is_partially_commented/swapped operands of `in`