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.

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 based on Ragel, which is both faster and more accurate. This new branch will become Ohcount 2.0.

Version 2.0 Beta is recommended for users who are interested in contributing patches to Ohcount.

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:

Some basic instructions for building this version of Ohcount on Ubuntu Linux are available:

Ohcount 1.0.2

This is the original version of Ohcount, which currently runs on the Ohloh website. We recommend this version to users who want to compare results with those shown on the Ohloh website.

This version of Ohcount is available as a tarball:

All development on this version has ended. Patches to this version of Ohcount will be accepted only if they can be easily adapted to the 2.0 codebase.

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:

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.