Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /display/TR/ohcount taken on 2016-08-26. The original wiki at wiki.opf-labs.org is being decommissioned.

ohcount

Added by Andrew Jackson · last edited by Andrew Jackson · on Apr 12, 2012 (view change)

Summary

Purpose Analyses plain text files, looking for code (scripting languages etc.)
Homepage
https://github.com/blackducksw/ohcount
License
GNU General Public License Version 2
Debian Package http://packages.debian.org/stable/ohcount
On Ohloh http://www.ohloh.net/p/ohcount

Description

A summary of the tool, focussing on aspects useful for digital preservation.

User Experiences

e.g. links to AQuA/SCAPE/Hackathon issues that use the tool

Use ohcount to detect source code text files

NOTE that although it has some clever built-in parser stuff, it doesn't get the right answer unless the file extension is correct. If you feed it a file with the wrong extension (I swapped JS for C) then it still reports all the text as being JavaScript.

This indicates that a Bayesian approach is probably required: http://stackoverflow.com/questions/475033/detecting-programming-language-from-a-snippet;

News Feeds

Release Feed

Link to any RSS feed that is updated when new releases occur, if any, e.g:

Could not retrieve http://sourceforge.net/api/file/index/project-id/XXXX/mtime/desc/limit/20/rss - Page not permitted. Service Unavailable

Activity Feed

Link to any RSS feed that is updated when issue or code updates occur, if any, e.g:

Recent Commits to ohcount:master
Merge pull request #41 from blackducksw/ubuntu_14
Update README for compatibility with Ubuntu 14.04
Update Ohcount to work with Ubuntu 14
Merge pull request #27 from nnsathish/master
Removes whitespace from expected output file
Merge pull request #30 from chris-morgan/rust
Adds a Javascript test file with Java Emacs mode