When there is a dispute and the parties draw near for judgment, and a decision is given, declaring one party in the right and the other in the wrong,