(tags, string)
| 778 | return list(set(tags)) |
| 779 | |
| 780 | def extract_xml_data(tags, string): |
| 781 | data = {} |
| 782 | |
| 783 | for tag in tags: |
| 784 | pattern = f"<{tag}>(.*?)</{tag}>" |
| 785 | match = re.search(pattern, string, re.DOTALL) |
| 786 | if match: |
| 787 | data[tag] = match.group(1).strip() |
| 788 | else: |
| 789 | data[tag] = "" |
| 790 | |
| 791 | return data |
| 792 | |
| 793 | # Function to perform the completion with exponential backoff |
| 794 | def perform_completion_with_backoff( |
no outgoing calls
no test coverage detected
searching dependent graphs…