Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def score(repo):
    stars_per_day = float(repo.stars) / (datetime(*repo.fetch_ymd)
                                         - repo.creation_date).days
    return stars_per_day
        


src/p/r/Predicting-Code-Popularity-HEAD/choose_sample.py   Predicting-Code-Popularity(Download)
    filtered = [r for r in filtered if
                r.stars > 5 and
                classes.score(r) > (1 / 30)
                ]
    print 'exluding very unpopular:', len(filtered)
 
    score_pairs = [(classes.score(r), r) for r in filtered]