Prolog is being detected as Raku #6454
-
Example repo: https://github.com/cbarrick/practice Prolog and Perl notoriously use the same file extension: The issues page told me to open a discussion before opening an issue, so here I am. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is happening because one massive file is being detected as Raku and not Prolog because it's content doesn't match any of the heuristics for the https://github.com/cbarrick/practice/blob/master/reddit/dailyprogrammer/246-med/words.pl It's 3.64 MB so is by far the largest by bytes of code so if having a dispropotionate effect on the stats. You'll need to implement an override to either force the language, or ignore the file. |
Beta Was this translation helpful? Give feedback.
This is happening because one massive file is being detected as Raku and not Prolog because it's content doesn't match any of the heuristics for the
.pl
extension so it's falling through to the classifier which is not making a good guess, which isn't surprising given the content:https://github.com/cbarrick/practice/blob/master/reddit/dailyprogrammer/246-med/words.pl
It's 3.64 MB so is by far the largest by bytes of code so if having a dispropotionate effect on the stats.
You'll need to implement an override to either force the language, or ignore the file.