<commit_before>__all__ = [
    'issue_to_dict',
    'label_to_dict'
]


def issue_to_dict(issue):
    result = {}

    if issue.closed_by:
        closed_by = issue.closed_by.name
    else:
        closed_by = None

    result['id'] = issue.id
    result['repository'] = issue.repository.name
    result['title'] = issue.title
    result['body'] = issue.body
    result['url'] = issue.html_url
    result['state'] = issue.state

    if issue.labels:
        labels = [label_to_dict(label) for label in issue.labels]
    else:<commit_msg>Also include author and assigne attribute in the issue dict.<commit_after>__all__ = [
    'issue_to_dict',
    'label_to_dict'
]


def issue_to_dict(issue):
    result = {}

    if issue.closed_by:
        closed_by = issue.closed_by.name
    else:
        closed_by = None

    if issue.user:
        author = issue.user.name
    else:
        author = None

    if issue.assignee:
        assignee = issue.assigne.name
    else:
        assignee = None

    result['id'] = issue.id
    result['repository'] = issue.repository.name
    result['author'] = author
    result['assign'] = assignee
    result['title'] = issue.title
    result['body'] = issue.body
    result['url'] = issue.html_url
    result['state'] = issue.state

    if issue.labels:
        labels = [label_to_dict(label) for label in issue.labels]
    else:
{'fraction_non_alphanumeric': 0.12096774193548387, 'fraction_numerical': 0.0, 'mean_word_length': 2.6015831134564644, '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': '5435594', 'n_tokens_mistral': 451, 'n_tokens_neox': 435, 'n_words': 94}