(short_name, full_name)
| 70 | return ".".join(method_name_lst) |
| 71 | |
| 72 | def name_matcher(short_name, full_name): # modified |
| 73 | # ex) `java.lang.Object` matches with `java.lang.Object`, `lang.Object`, `Object`, |
| 74 | # not with `bject` or `ang.Object` |
| 75 | type_depth = len(short_name) - 1 |
| 76 | truncated_full_name = full_name[-type_depth-1:] |
| 77 | return short_name == truncated_full_name |
| 78 | |
| 79 | def lenient_matcher(pred_expr, gt_answer): |
| 80 | if pred_expr == gt_answer: # Exact Matching |