Skip to content
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 Turing samples and improve heuristic #5020

Merged
merged 1 commit into from
Sep 29, 2020

Conversation

smola
Copy link
Contributor

@smola smola commented Sep 21, 2020

Description

Add random Turing samples that were previously misclassified as other
languages (e.g. Raku).

Remove ^\s*class\b pattern from Raku for .t files, to avoid matching all Turing files using classes.

Checklist:

  • I am fixing a misclassified language
    • I have included a new sample for the misclassified language: (see above)
    • I have included a change to the heuristics to distinguish my language from others using the same extension.

@smola
Copy link
Contributor Author

smola commented Sep 21, 2020

Cross-validation results change (more info):

< samples/Turing/simplegame.t BAD(Terra)
< samples/Turing/turing.t BAD(Terra)
---
> samples/Turing/BlockTower.t GOOD
> samples/Turing/simplegame.t GOOD
> samples/Turing/start.t GOOD
> samples/Turing/turing.t GOOD

Add random Turing samples that were previously misclassified as other
languages (e.g. Raku).

* Turing/BlockTower.t
  * Source: https://github.com/tmachad/Turing-Projects/blob/a284496988d36f4458ea347351eaaa71aa3520e2/BlockTower.t
  * License: MIT
* Turing/start.t
  * Source: https://raw.githubusercontent.com/null-dev/Hyper/master/HyperEditor/start.t
  * License: MIT

Remove ^\s*class\b pattern from Raku for .t files, to avoid matching all
Turing files using classes.
@smola smola changed the title Add Turing samples Add Turing samples and improve heuristic Sep 21, 2020
@lildude lildude merged commit 59e10a2 into github-linguist:master Sep 29, 2020
@smola smola deleted the turing-samples branch September 30, 2020 18:26
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants