diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 20408047c7..b5b0dfcdd5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,6 +1,9 @@ # Code owners .github/CODEOWNERS @exercism/maintainers-admin +# The code sample shown in the code check when people sign up to Exercism +docs/SIGN_UP_SNIPPET.txt @exercism/maintainers-admin + # Changes to `fetch-configlet` should be made in the `exercism/configlet` repo bin/fetch-configlet @exercism/maintainers-admin diff --git a/docs/SIGN_UP_SNIPPET.txt b/docs/SIGN_UP_SNIPPET.txt new file mode 100644 index 0000000000..f09178592e --- /dev/null +++ b/docs/SIGN_UP_SNIPPET.txt @@ -0,0 +1,9 @@ +def most_common_word(text) + counts = Hash.new(0) + best = "" + text.downcase.split(" ").each do |word| + counts[word] += 1 + best = word if counts[word] > counts[best] + end + "\"#{best}\" appears #{counts[best]} times" +end