Design a DeepValidator class that leverages the deepdiff library to compare complex Python objects. You must…
Design a DeepValidator class that leverages the deepdiff library to compare complex Python objects. You must…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Examples: Input: {'a': 1} , {'a': 1} - Output: 0 Input: {'a': 1} , {'a': '1'} - Output: ValueError (type change) Input: {'x': 1} …
The task
Examples: Input: `{'a': 1}`, `{'a': 1}` -> Output: `0` Input: `{'a': 1}`, `{'a': '1'}` -> Output: `ValueError` (type change) Input: `{'x': 1}`, `{'x': 2, 'y': 3}` -> Output: `1` (one item added)
Part of Essacheez/r2e-code-instruct-qwen3.5.