Diversity, tolerance, and maturation of the adaptive immune response