This commit is contained in:
Roberto Alsina 2024-08-24 20:53:14 -03:00
parent fc9f834bc8
commit a5926af518

View File

@ -1,7 +1,12 @@
require "yaml" require "yaml"
module Linguist
# Use linguist's heuristics to disambiguate between languages # Use linguist's heuristics to disambiguate between languages
# This is *shamelessly* stolen from https://github.com/github-linguist/linguist
# and ported to Crystal. Deepest thanks to the authors of Linguist
# for licensing it liberally.
#
# Consider this code (c) 2017 GitHub, Inc. even if I wrote it.
module Linguist
class Heuristic class Heuristic
include YAML::Serializable include YAML::Serializable