vitalets / github-trending-repos

Track GitHub trending repositories in your favorite programming language by native GitHub notifications!
2.69k stars 107 forks source link

Suggest for correction trending repo detection #123

Closed Insolita closed 5 years ago

Insolita commented 5 years ago

Hi, i have been subscribed on some bots during long time, and in my opinion there are many super-starred famous repos presented in trends again and again. I think that calculation should have in mind the whole number of stars too. So if new repo with 0 star got 50 stars at week - it is more important trend than repo with 5000 starts got 50 stars at week Thanks for attention

vitalets commented 5 years ago

Hi @Insolita ! Good catch. I think there are even two options:

  1. As you suggested - calc relative star growth
  2. Maybe just filter out repos already having many stars (e.g. > 5k) stars - as they are really not a new trend.

What do you think?

Insolita commented 5 years ago

I thought about both variants, and first of it seems more universal, because in different languages star barriers are different (This opinion based on top-world star ratings - just compare highest star numbers Elixir http://git-awards.com/users?utf8=%E2%9C%93&type=world&language=elixir Javascript http://git-awards.com/users?utf8=%E2%9C%93&type=world&language=javascript
and D http://git-awards.com/users?utf8=%E2%9C%93&type=world&language=d)

other way - is experimental survey of both variants with familiar languages

vitalets commented 5 years ago

Agree. Absolute stars value depends on lang. I think even relative stars growth stars_per_week / total_stars also should be different for different languages. If we set the constant for all languages, I assume we can miss some trends.

I'm thinking about 2 more options:

  1. exclude 10 the most popular repos in every lang. They can be retrieved with GitHub API and shown here.
  2. Just increase the caching period from 30 days to 2(3?) months. In that case if some super-star repo appears in trends again after 2 months, it looks like not a big issue. Moreover, there are number of newcomers who never heard about some popular repos yet and for them it would be useful.