forked fromanuraghazra/github-readme-stats
- Notifications
You must be signed in to change notification settings - Fork0
Commit5577bbf
New top language algorithm implementation (anuraghazra#1732)
* Reduced vercel maxDuration* Implemented new algorithm for Top Langs* Revert "Reduced vercel maxDuration"This reverts commitb0bc626.* Added documentation* Fixed broken implementation* Update fetchTopLanguages.test.jsChanged tests* Now uses the general formulaThe parameters p and q can be set by the user.* Updated tests and added new test* Added new testNew test for order by repo count.* Updated documentationAdded explanation and examples for new options.* Updated documentationThis was overwritten in the merge commit.* docs: improve docs and fix tests* Renamed parametersRenamed `p` and `q` to `size_weight` and `count_weight`, respectively.* Updated the documentationChanges introduced inf2516d6---------Co-authored-by: rickstaa <rick.staa@outlook.com>1 parentda46a50 commit5577bbf
File tree
4 files changed
+104
-16
lines changed- api
- src/fetchers
- tests
4 files changed
+104
-16
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
| |||
46 | 48 |
| |
47 | 49 |
| |
48 | 50 |
| |
| 51 | + | |
| 52 | + | |
49 | 53 |
| |
50 | 54 |
| |
51 | 55 |
| |
|
Lines changed: 30 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
310 | 310 |
| |
311 | 311 |
| |
312 | 312 |
| |
| 313 | + | |
| 314 | + | |
313 | 315 |
| |
314 | 316 |
| |
315 | 317 |
| |
| |||
359 | 361 |
| |
360 | 362 |
| |
361 | 363 |
| |
362 |
| - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
363 | 383 |
| |
364 | 384 |
| |
365 | 385 |
| |
| |||
419 | 439 |
| |
420 | 440 |
| |
421 | 441 |
| |
422 |
| - | |
| 442 | + | |
423 | 443 |
| |
424 | 444 |
| |
425 | 445 |
| |
| |||
564 | 584 |
| |
565 | 585 |
| |
566 | 586 |
| |
567 |
| - | |
568 |
| - | |
569 |
| - | |
570 |
| - | |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 |
| - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
575 | 595 |
| |
576 | 596 |
| |
577 | 597 |
| |
|
Lines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 |
| |
59 | 64 |
| |
60 | 65 |
| |
| |||
101 | 106 |
| |
102 | 107 |
| |
103 | 108 |
| |
| 109 | + | |
| 110 | + | |
104 | 111 |
| |
105 | 112 |
| |
106 | 113 |
| |
| |||
111 | 118 |
| |
112 | 119 |
| |
113 | 120 |
| |
114 |
| - | |
| 121 | + | |
115 | 122 |
| |
116 | 123 |
| |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
117 | 129 |
| |
118 | 130 |
| |
119 | 131 |
| |
120 | 132 |
| |
121 | 133 |
| |
122 | 134 |
| |
123 | 135 |
| |
| 136 | + | |
124 | 137 |
| |
125 | 138 |
| |
126 | 139 |
| |
127 | 140 |
| |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
128 | 148 |
| |
129 | 149 |
| |
130 | 150 |
| |
|
Lines changed: 48 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
| 63 | + | |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
| 66 | + | |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
70 | 71 |
| |
71 |
| - | |
| 72 | + | |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
| 76 | + | |
75 | 77 |
| |
76 |
| - | |
| 78 | + | |
77 | 79 |
| |
78 | 80 |
| |
79 | 81 |
| |
| |||
85 | 87 |
| |
86 | 88 |
| |
87 | 89 |
| |
| 90 | + | |
88 | 91 |
| |
89 | 92 |
| |
90 | 93 |
| |
91 | 94 |
| |
92 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
93 | 117 |
| |
94 | 118 |
| |
95 | 119 |
| |
96 | 120 |
| |
97 | 121 |
| |
98 | 122 |
| |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
99 | 143 |
| |
100 | 144 |
| |
101 | 145 |
| |
|
0 commit comments
Comments
(0)