def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("SourceFilename", default="").endswith(".doc"),
                    event.deep_get("SourceFilename", default="").endswith(".docx"),
                    event.deep_get("SourceFilename", default="").endswith(".jpeg"),
                    event.deep_get("SourceFilename", default="").endswith(".jpg"),
                    event.deep_get("SourceFilename", default="").endswith(".lnk"),
                    event.deep_get("SourceFilename", default="").endswith(".pdf"),
                    event.deep_get("SourceFilename", default="").endswith(".png"),
                    event.deep_get("SourceFilename", default="").endswith(".pst"),
                    event.deep_get("SourceFilename", default="").endswith(".rtf"),
                    event.deep_get("SourceFilename", default="").endswith(".xls"),
                    event.deep_get("SourceFilename", default="").endswith(".xlsx"),
                ]
            ),
            any(
                [
                    ".doc." in event.deep_get("TargetFilename", default=""),
                    ".docx." in event.deep_get("TargetFilename", default=""),
                    ".jpeg." in event.deep_get("TargetFilename", default=""),
                    ".jpg." in event.deep_get("TargetFilename", default=""),
                    ".lnk." in event.deep_get("TargetFilename", default=""),
                    ".pdf." in event.deep_get("TargetFilename", default=""),
                    ".png." in event.deep_get("TargetFilename", default=""),
                    ".pst." in event.deep_get("TargetFilename", default=""),
                    ".rtf." in event.deep_get("TargetFilename", default=""),
                    ".xls." in event.deep_get("TargetFilename", default=""),
                    ".xlsx." in event.deep_get("TargetFilename", default=""),
                ]
            ),
            not any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".backup"),
                    event.deep_get("TargetFilename", default="").endswith(".bak"),
                    event.deep_get("TargetFilename", default="").endswith(".old"),
                    event.deep_get("TargetFilename", default="").endswith(".orig"),
                    event.deep_get("TargetFilename", default="").endswith(".temp"),
                    event.deep_get("TargetFilename", default="").endswith(".tmp"),
                ]
            ),
            not all(
                [
                    ":\\ProgramData\\Anaconda3\\" in event.deep_get("TargetFilename", default=""),
                    event.deep_get("TargetFilename", default="").endswith(".c~"),
                ]
            ),
        ]
    ):
        return True
    return False
