<commit_before>import angr

######################################
# recvfrom
######################################

class recvfrom(angr.SimProcedure):
    #pylint:disable=arguments-differ

    def run(self, fd, dst, length, flags, src_addr, addrlen): #pylint:disable=unused-argument
        bytes_recvd = self.state.posix.read(fd, dst, self.state.se.eval(length))
        return bytes_recvd
<commit_msg>Fix recvfrom<commit_after>import angr

######################################
# recvfrom
######################################

class recvfrom(angr.SimProcedure):
    # pylint:disable=arguments-differ,unused-argument

    def run(self, fd, dst, length, flags, src_addr, addrlen):
        simfd = self.state.posix.get_fd(fd)
        if simfd is None:
            return -1

        return simfd.read(dst, length)

{'fraction_non_alphanumeric': 0.27506112469437655, 'fraction_numerical': 0.0012224938875305623, 'mean_word_length': 4.496644295302014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4491398', 'n_tokens_mistral': 253, 'n_tokens_neox': 244, 'n_words': 47}