MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / tally_languages

Function tally_languages

src/summarycode/tallies.py:252–258  ·  view source on GitHub ↗

Given a list of languages, return a mapping of {language: count of occurences}

(languages)

Source from the content-addressed store, hash-verified

250
251
252def 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
261TALLYABLE_ATTRS = set([

Callers 1

language_talliesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected