aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://aboutcode.org/scancode/
2.14k stars 552 forks source link

Declare ngram variable in select_ngrams #3976

Closed JonoYang closed 2 weeks ago

JonoYang commented 2 weeks ago

This PR declares the variable ngram in the function select_ngrams to avoid running into an exception