Spaces:
Running
Running
as-cle-bert
commited on
Commit
•
0e24b58
1
Parent(s):
1f3aa7a
Update repos.py
Browse files
repos.py
CHANGED
@@ -54,5 +54,5 @@ def get_repo_info(username,token):
|
|
54 |
top_10_topics = top_ten_strings(topics)
|
55 |
top_10_langs_abs = sort_dict_by_value(languages)
|
56 |
sum_langs = sum(list(languages.values()))
|
57 |
-
top_10_langs = {l:
|
58 |
return repocount, gained_stars, gained_forks, top_10_topics, top_10_langs
|
|
|
54 |
top_10_topics = top_ten_strings(topics)
|
55 |
top_10_langs_abs = sort_dict_by_value(languages)
|
56 |
sum_langs = sum(list(languages.values()))
|
57 |
+
top_10_langs = {l: round(top_10_langs_abs[l]*100/sum_langs,2) for l in top_10_langs_abs}
|
58 |
return repocount, gained_stars, gained_forks, top_10_topics, top_10_langs
|