<commit_before># DAMM

The GO package provides the computation of a decimal checksum using the
method proposed by <NAME> in 2004.

## Examples

The function CheckDigit computes and returns it in a string.

    c, err := CheckDigit("12345678901")

The argument must contain only decimal digits. Otherwise an error is
reported.

The function Validate verifies digits with the check digit appended.

    ok := Validate("123456789018")

The function returns true if the argument contains only decimal digits and
the appended check digit is correct.

## Algorithm

More information about the algorithm can be found in Wikipedia.

http://en.wikipedia.org/wiki/Damm_algorithm<commit_msg>README.md improved by the introduction<commit_after># Package damm

The Go language package damm computes a check digit for a string of
decimal digits. It uses an algorithm proposed by <NAME> in
2004.

## Examples

The function CheckDigit computes and returns it in a string.

    c, err := CheckDigit("12345678901")

The argument must contain only decimal digits. Otherwise an error is
reported.

The function Validate verifies digits with the check digit appended.

    ok := Validate("123456789018")

The function returns true if the argument contains only decimal digits and
the appended check digit is correct.

## Algorithm

More information about the algorithm can be found in Wikipedia.

http://en.wikipedia.org/wiki/Damm_algorithm
{'fraction_non_alphanumeric': 0.053558844256518676, 'fraction_numerical': 0.03805496828752643, 'mean_word_length': 4.461538461538462, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4766167', 'n_tokens_mistral': 412, 'n_tokens_neox': 351, 'n_words': 186}