(nsmy-wide-finder"A basic map/reduce approach to the wide finder using agents. Optimized for being idiomatic and readable rather than speed. NOTE: Originally from: http://technomancy.us/130 but updated to use pmap."(:use[clojure.contrib.duck-streams :only[readerread-lines]]))(defre#"GET /(\d+) ")(defncount-line"Increment the relevant entry in the counts map."[line](if-let[[_ hit](re-findreline)]{hit1}{}))(defncount-lines"Grab a chunk of lines and ..."[seq](applymerge-with +
(mapcount-line(take20seq))))(defnmy-find-widely"Return a map of pages to hit counts in filename."[filename](applymerge-with +
(pmapcount-lines(line-seq(readerfilename)))))