Level spacing statistics and integrable dynamics