

def get_repo_data(user):
    url = ('https://api.github.com/users/%s/repos' % user)
    req = urllib2.Request(url)
    user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:16.0.1) Gecko/20121011 Firefox/16.0.1'
    if (args.debug is True):
        logger.debug(('Using User-Agent %s' % user_agent))
    req.add_header('User-Agent', user_agent)
    page = urllib2.urlopen(req)
    page_content = page.read()
    page.close()
    return (page_content, page.info()['X-RateLimit-Remaining'])

dataset/ETHPy150Open wick2o/gitrecon/gitrecon.py get_repo_data/original