This code shows how to execute a task that takes a long time to complete in a PyQt5 application using three methods: subclassing `QThread`, combining `QObject` and `moveToThread`, and using `QRunnable`. Each method involves a loop that runs for five cycles, pausing for one second in each cycle. The main program waits until the task is finished before terminating.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence