Jeremy's behavior is under pretty tight stimulus control.
Stimulus control refers to the fact that an individual will behave one way when presented with a particular stimulus, and behave completely differently when that stimulus is absent. In Jeremy's case, he avoids any interaction with that German shepherd, but he is not afraid of dogs in general.