def parseGithubRepos(repos):
    parsedRepos = []
    displayForks = request.args.get('forks')
    for repo in repos:
        parsedRepo = {'name': repo['full_name'], 'description': repo['description'], 'issues': repo['open_issues'], 'owner': repo['owner']['login'], 'stars': repo['stargazers_count'], 'forks': repo['forks_count'], 'url': repo['html_url'], 'size': repo['size'], 'language': repo['language']}
        if (parsedRepo['description'] == None):
            parsedRepo['description'] = 'No description provided'
        if (displayForks == 'hidden'):
            if (repo['fork'] == False):
                parsedRepos.append(parsedRepo)
        else:
            parsedRepos.append(parsedRepo)
    parsedRepos.sort(key=(lambda repo: repo['stars']), reverse=True)
    return parsedRepos
def parseGithubRepos(repos):
    parsedRepos = []
    displayForks = request.args.get('forks')
    for repo in repos:
        parsedRepo = {'name': repo['full_name'], 'description': repo['description'], 'issues': repo['open_issues'], 'owner': repo['owner']['login'], 'stars': repo['stargazers_count'], 'forks': repo['forks_count'], 'url': repo['html_url'], 'size': repo['size'], 'language': repo['language']}
        if (parsedRepo['description'] == None):
            parsedRepo['description'] = 'No description provided'
        if (displayForks == 'hidden'):
            if (repo['fork'] == False):
                parsedRepos.append(parsedRepo)
        else:
            parsedRepos.append(parsedRepo)
    parsedRepos.sort(key=(lambda repo: repo['stars']), reverse=True)
    return parsedRepos