Problem: Sentence1: His threat to kill me was quite explicit.
Sentence2: Earthquakes are a constant threat in Japan.
Q: Does the term threat mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: Cover the grave with flowers.
Sentence2: She covered herself with glory.
Q: Does the term cover mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: They stopped selling in exact sizes in order to reduce inventory.
Sentence2: They carried a vast inventory of hardware.
Q: Does the term inventory mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: A candy sampler.
Sentence2: A sampler of French poets.
Q: Does the term sampler mean the same thing in both these sentences?

Answer:
the same meaning