def METHOD_NAME():
    command = "("
    # search all the files
    for search_pattern in PATTERNS_TO_SEARCH:
        command = command + f"grep -r {search_pattern} {ROOT_DIR_TO_SEARCH};"
    command += ")"
    # omit certain patterns
    for omit_pattern in PATTENRS_TO_OMIT:
        command += f" | grep -v {omit_pattern}"
    # strip the line
    for replace_pattern in PATTERNS_TO_REPLACE:
        command += f" | sed {replace_pattern}"
    # omit some other patterns after replacement
    for omit_pattern_after_replacement in PATTERNS_TO_OMIT_AFTER_REPLACEMENT:
        command += f" | grep -v {omit_pattern_after_replacement}"
    return set(
        subprocess.run(command, shell=True, capture_output=True)
        .stdout.decode("utf-8")
        .split("\n")[:-1]
    )