def read_container(self,parent_buffer,parent_result):
        container_result = []
        nobuffer = False
        overlap = False
        self.overlap_range = 512 # bytes
        container_hit = False
        passes = 1
        container_buffer = ""
        # TODO: find better way to handle zip contents
        # for now: ugly hack, but working
        # this slows down because the zip is re-opened on each item
        # if "!" is in filename, it is a zip item
#        if "!" in self.current_file:
#            import zipfile, tempfile
#            zip, item = self.current_file.split("!")
#            zipitem = tempfile.SpooledTemporaryFile(prefix='Fido')
            #with zipstream.open(item) as source:
#            try:
#                source = zipstream.open(item)
#                self.copy_stream(source, target)
#                target.seek(0)
#                self.identify_contents(item_name, target, self.container_type(matches))
#            finally:
#                source.close()
        #exit()
        # in case argument 'nocontainer' is set
        # read default bofbuffer
        if self.nocontainer or self.current_filesize <= self.bufsize or self.current_file == "STDIN":
            passes = 1
            nobuffer = True
        else:
            passes = int(float(self.current_filesize / self.container_bufsize) + 1)
        pos = 0
        for i in xrange(passes):
            if nobuffer is True:
                container_buffer = parent_buffer
            else:
                if i == 0:
                    pos = 0
                else:
                    pos = ((self.container_bufsize * i) - self.overlap_range)
                    overlap = True
                container_buffer = self.buffered_read(pos, overlap)
            for (container_id,container_regexes) in self.sequenceSignature.iteritems():
                # set hitcounter in case a container entry
                # has more than one regex
                hitcounter = 0
                if len(container_regexes) > 0:
                    for container_regex in container_regexes:
                        if re.search(container_regex, container_buffer):
                            hitcounter += 1
                            # if the hitcounter matches the number of regexes
                            # then it must be a positive hit, else continue
                            # to match the rest of the sequences
                            if hitcounter < len(container_regexes):
                                continue
                            self.matchtype = "container"
                            for container_puid in self.puidMapping[container_id]:
                                for container_format in self.formats:
                                    if container_format.find('puid').text == container_puid:
                                        if self.as_good_as_any(container_format, parent_result):
                                            for container_sig in self.get_signatures(container_format):
                                                container_result.append((container_format, container_sig))
                                            break
        return container_result
Starts connection. Connects to proxy, supplies login and password to it
dataset/ETHPy150Open openpreserve/fido/fido/fido.py/Fido.read_container--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/xmpppy/xmpp/transports.py/HTTPPROXYsocket.connect