Why is the repeating_penalty implemented using the full context rather than a generated token?

In paper, repetition_penalty calculated only using generated tokens. But, In RepetitionPenaltyLogitProcessor implementation, input_ids(context + generated tokens) used. Why?