Ohloh Labs

Welcome to the Ohloh Labs developer site!

Ohloh Labs provides open source access to some of the tools that power the Ohloh website. Over time, we plan to release an increasing number of tools to the open source developer community. The first of these tools is Ohcount.

Note that the Ohloh Labs site only provides bug-tracking and other services for software released via Ohloh Labs, such as Ohcount. Do not report bugs in other parts of the Ohloh website to Ohloh Labs; report them as Ohloh suggestions instead. However, suggestions for support of new programming languages or improvements to the parsing of existing programming languages represent bugs in Ohcount; feel free to report those here.

Ohcount

Ohcount is a source code line counter.

Ohcount identifies source code files in most common programming languages, and prepares total counts of code and comments. It can operate on single files or entire directory trees. Ohcount can produce line-by-line analysis of files for detailed debugging.

Ohcount also detects the presence of common open source licenses in source code.

If you use Ohcount, please add it to your Ohloh stack:

System Requirements

Ohcount is supported on Ubuntu Linux 6.06 LTS and Mac OS X 10.4. It should work on other Unix-compatible platforms as well.

Ohcount is not compatible with Windows. There are no official plans for a port to Windows.

Ohcount 2.0 Beta

Ohcount has forked. We are implementing an entirely new parsing engine and several new features:

  • Ragel-based parsers. This leads to more accurate and faster parsing.
  • License detection. Ohcount now recognizes and reports common open source licenses.

Version 2.0 Beta is recommended for users who are interested in contributing patches to Ohcount. This version of Ohcount is currently undergoing testing on the Ohloh website.

This beta version of Ohcount is available via Git:

git clone git://labs.ohloh.net/git/ohcount.git

You can browse the latest Ohcount code online:

Ohcount has very particular build requirements (especially regarding the Ragel library). Be sure to read these build instructions:

Ohcount 1.0.2

This is the original version of Ohcount. It is stable and well-tested, and has simpler build dependencies than 2.0. It does not include license detection.

This version of Ohcount is available as a tarball:

All development on this version has ended. Patches are no longer accepted for this version of Ohcount.

You can find instructions for building this version of Ohcount on various Linux distributions below:

Documentation

The documentation for Ohcount 1.0.2 is online. We have not yet updated the documentation to reflect the 2.0 changes.

Contribute

You can contribute to Ohcount in many ways:

  • Source Code: If you would like to enhance Ohcount with additional features or improvements, read the HowToSubmitPatches page. Accepted contributions will be used on the live Ohloh website.
  • Wiki: This website is a Trac wiki, and we invite all users to create new pages or improve the existing content.

You must log in to the Ohloh Labs Trac website to submit patches or make changes. Anyone can register. The Ohloh Labs Trac website is unrelated to the Ohloh web site, and you cannot use your Ohloh account credentials to log in to the Ohloh Labs Trac website.

Contact

General discussion and support questions are handled in the Ohloh forums.

You can join us on IRC at irc.freenode.net in #ohloh.

You can also send us private email to Ohloh at mailto:info@ohloh.net.

Ohloh API

If you are looking for information on the Ohloh API, you can find it at http://www.ohloh.net/api.