MR
1 program
Added 2026-03-04T21:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: MR MapReduce Language
Provenance: commit 906d4b6398 · authored 2026-03-04T23:20:24+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Word Count
Provenance: commit 906d4b6398 · authored 2026-03-04T23:20:24+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
//wordcount.mr
#JobName = "WordCount"
//map function definition
def wordcount_map(offset, line) <(Int, Text) -> (Text, Int)> : Mapper
{
List<Text> words = split line by " ";
Int one = 1;
foreach word in words {
emit(word, one);
}
}
//reduce function definition
def wordcount_reduce (word, counts) <(Text , Int) -> (Text, Int)> : Reducer
{
Int total = 0;
foreach count in counts {
total = total + count;
}
emit(word, total);
}