But the angry residents in this village 180 miles south of Shanghai had learned their lessons , too , they said , having studied reports of riots in towns near and far that have swept rural China in recent months .