Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created September 15, 2009 04:42
Show Gist options
  • Save aalmiray/187117 to your computer and use it in GitHub Desktop.
Save aalmiray/187117 to your computer and use it in GitHub Desktop.
private def showWordCloud {
def counts = statusTableModel.filteredStatuses.inject([:]) { counts, status ->
status.split(/\s/).each{ counts.put(it, counts.get(it,0)+1) }
counts
}
log.info(counts)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment