-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Befunge samples and .bf heuristics #5210
Conversation
Although |
lib/linguist/heuristics.yml
Outdated
- extensions: ['.bf'] | ||
rules: | ||
- language: Beef | ||
pattern: '^using\s+(System|Beefy)(\.(.*))?;\s*$' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't just ^using\s+(System|Beefy)
work fine? (Same logic for 3 lines down as well.) Also should there be a \s*
before using
?
Added heuristics for `.bf` extension. Added the `.bf` extension to Befunge. Added the following Befunge-93 samples: * aturley.bf by Andrew Turley (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/aturley.bf * beer7.bf by Wim Rijnders (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/beer7.bf * befunge3.bf by Ben Olmstead (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/befunge3.bf * cascade.bf by Chris Pressey (CC0 license), fetched from https://github.com/catseye/Befunge-93/blob/master/eg/cascade.bf And Befunge-98: * mycorand.bf by Matti Niemenmaa (MIT license), fetched from https://github.com/Deewiant/Mycology/blob/master/mycorand.bf
Co-authored-by: John Gardner <gardnerjohng@gmail.com>
Co-authored-by: John Gardner <gardnerjohng@gmail.com>
Looks like the classifier cross-validation is struggling with one of the Befunge samples causing the test to fail:
|
Description
Added heuristics for
.bf
extension.Added the
.bf
extension to Befunge.Added the following Befunge-93 samples:
And Befunge-98:
For future reference: I have not included the (rarer) extensions
.b93
and.b98
, but there are samples for it under liberal licenses here:Checklist: