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/REQ/Use ohcount to detect source code text files taken on 2019-01-19. The original wiki at wiki.opf-labs.org is being decommissioned.

Use ohcount to detect source code text files

Created by Andrew Jackson on Sep 28, 2011 · last edited by Paul Wheatley · on Sep 29, 2011 (view history) · 13 versions
Title This solution uses a tool called ohcount to spot source code files, and compares the results with those from file.
Detailed description A detailed description of the Solution. Feel free to include links to further information (eg. OPF blog posts!). Note that a Solution is a specific digital preservation application of a software tool or tools. It might for example be a scripted tool, or a myExperiment workflow. See also http://www.ohloh.net/p/planets-suite
Solution Champion Andrew Jackson
Corresponding Issue(s) Ability to automatically identify script files
Tool/code link https://github.com/openplanets/AQuA/tree/master/spotting-code
Tool Registry Link  ohcount
Evaluation https://github.com/openplanets/AQuA/blob/master/spotting-code/README.md
CO: Only tested on partially annotated test corpus, but looks very promising. Will be trying it out when back in the office.
Dev: Needs larger/broader test corpus to get a better impression of accuracy
CO: Potential to build up identification workflow using a combination of tools to build up a complete ID picture

Results Summary

file

ohcount

Notes

The full test corpus cannot be shared, unfortunately, but the Perl files that failed were from mod_perl:

./Perl/mod_perl-1.30/t/net/perl/dirty-lib
./Perl/mod_perl-1.30/t/net/perl/dirty-script.cgi
./Perl/mod_perl-1.30/t/net/perl/dirty-test.cgi
./Perl/mod_perl-1.30/t/net/perl/echo