Question: "machinery" used in the same way in the following two sentences?

The complex machinery of negotiation.

The machinery of command labored and brought forth an order.
Answer: the same meaning
Question: "nick" used in the same way in the following two sentences?

He's just been released from Shadwell nick prison after doing ten years for attempted murder.

He's in the nick.
Answer: the same meaning
Question: "circus" used in the same way in the following two sentences?

They used the elephants to help put up the circus.

The circus will be in town next week.
Answer: different meanings
Question: "do" used in the same way in the following two sentences?

Do research.

Will $100 do?
Answer:
different meanings