In sentence a), "they" refers to "the authorities." The authorities denied authorization to the demonstrators because the authorities feared violence would occur.

In sentence b), "they" refers to "the demonstrators." The authorities denied authorization to the demonstrators because the demonstrators appeared to be hostile and ready for a fight.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence