def real_sendall(self, data, *args, **kw):

            if not self.truesock:
                raise UnmockedError()

            if not self.is_http:
                return self.truesock.sendall(data, *args, **kw)

            self.truesock.connect(self._address)

            self.truesock.setblocking(1)
            self.truesock.sendall(data, *args, **kw)

            should_continue = True
            while should_continue:
                try:
                    received = self.truesock.recv(self._bufsize)
                    self.fd.write(received)
                    should_continue = bool(received.strip())

                except socket.error as e:
                    if e.errno == EAGAIN:
                        continue
                    break

            self.fd.seek(0)
sanitize filenames, normalizing paths, i.e.:
dataset/ETHPy150Open gabrielfalcao/HTTPretty/httpretty/core.py/fakesock.socket.real_sendall--crossover with--dataset/ETHPy150Open ensime/ensime-sublime/patch.py/PatchSet._normalize_filenames