yoeo / guesslang

Detect the programming language of a source code
https://guesslang.readthedocs.io
MIT License
773 stars 110 forks source link

Request for `diff` `log` and `less` #39

Open ghost opened 2 years ago

ghost commented 2 years ago

As a web designer who's always compiling, I'd really benefit from diff log and less support.

yoeo commented 2 years ago

Diff: :heavy_check_mark: more than enough files publicly available for training https://github.com/search?q=extension%3Adiff :warning: Diff support could clash with basically all the other languages. As Diff code is other languages code with special markups

LESS: :heavy_check_mark: more than enough files publicly available for training https://github.com/search?q=extension%3Aless :warning: Could clash with CSS. Other languages should be fine.

Log: I'm not sure about which kind of files/logs you are referring to @4086606

ghost commented 2 years ago

Here's a log file: https://gist.github.com/4086606/d8df1e4c56eb3f0e5b8f95690d637fd7#file-exthost-log

yoeo commented 2 years ago

Thanks for the example.

Log: :heavy_check_mark: more than enough files publicly available for training https://github.com/search?p=100&q=extension%3Alog&type=Code :warning: different log files can have different structures depending on the log source, and the model that I use works poorly when the training files don't have the same underlying structure.

To sum it up:

ghost commented 2 years ago

Alright that's fine by me. Thanks for the quick replies