Thousands of people have been detained across the country in recent months, with authorities rounding up politicians, activists, student leaders, even shoppers waiting in queues to buy food who made complaints police officers decided were out of line.