Given a list of languages, return a mapping of {language: count of occurences}
(languages)
| 250 | |
| 251 | |
| 252 | def tally_languages(languages): |
| 253 | """ |
| 254 | Given a list of languages, return a mapping of {language: count |
| 255 | of occurences} |
| 256 | """ |
| 257 | # TODO: consider aggregating related langauges (C/C++, etc) |
| 258 | return Counter(languages) |
| 259 | |
| 260 | |
| 261 | TALLYABLE_ATTRS = set([ |