From a5926af518410a5c06f09817645f77990fa7cea2 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 24 Aug 2024 20:53:14 -0300 Subject: [PATCH] Comments --- src/heuristics.cr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/heuristics.cr b/src/heuristics.cr index ffafde6..11de614 100644 --- a/src/heuristics.cr +++ b/src/heuristics.cr @@ -1,7 +1,12 @@ require "yaml" -module Linguist # 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 include YAML::Serializable