def add_data(self, binary_data=False):
            for issue in self.issues:
                # Extract traffic
                self.extract_traffic(issue, binary_data)

                # Extract request and response
                raw_request_traffic = issue.xpath("RawTraffic/RequestTraffic")[0]
                raw_response_traffic = issue.xpath("RawTraffic/ResponseTraffic")[0]

                # Add request data
                if raw_request_traffic.text:
                    base64_flag = False
                    if 'base64' in raw_request_traffic.attrib:
                        if raw_request_traffic.attrib['base64'] == 'true':
                                base64_flag = True

                    # Check if base64
                    if base64_flag:
                        decoded_request_traffic = base64.b64decode(raw_request_traffic.text)
                        self.add_request_data(issue, decoded_request_traffic.decode(encoding="utf-8", errors="ignore"))
                    else:
                        self.add_request_data(issue, raw_request_traffic.text)

                # Add response data
                if raw_response_traffic.text:
                    base64_flag = False
                    if 'base64' in raw_response_traffic.attrib:
                        if raw_response_traffic.attrib['base64'] == 'true':
                            base64_flag = True

                    # Check if base64
                    if base64_flag:
                        decoded_response_traffic = base64.b64decode(raw_response_traffic.text)
                        self.add_response_data(
                            issue, decoded_response_traffic.decode(encoding="utf-8", errors="ignore"), True)
                    else:
                        self.add_response_data(issue, raw_response_traffic.text)
The connection was lost.
dataset/ETHPy150Open dorneanu/appvulnms/src/core/parser/AppVulnXMLParser.py/AppVulnXMLParser.add_data--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/abstract.py/FileDescriptor.connectionLost