Andy Verprauskus [Sun, 21 Jun 2009 16:03:52 +0000 (09:03 -0700)]
[CHANGE] complete last commit, add second necessary test
Andy Verprauskus [Sat, 20 Jun 2009 06:56:16 +0000 (23:56 -0700)]
[NEW] add tests (currently broken) for source_file_list
Andy Verprauskus [Fri, 19 Jun 2009 22:20:47 +0000 (15:20 -0700)]
[FIX] temp fix for missing language in language_percents
Andy Verprauskus [Fri, 19 Jun 2009 22:19:08 +0000 (15:19 -0700)]
[CHANGE] change src/diff.c for mitchell
mitchell [Thu, 11 Jun 2009 12:11:46 +0000 (05:11 -0700)]
Edited build to build on Mac OSX.
mitchell [Wed, 10 Jun 2009 11:47:11 +0000 (04:47 -0700)]
Fixed build regexen to compile on Mac OSX.
Andy Verprauskus [Fri, 5 Jun 2009 15:37:35 +0000 (08:37 -0700)]
Merge branch 'master' of git@github.com:andyverprauskus/ohcount
Andy Verprauskus [Fri, 5 Jun 2009 15:37:13 +0000 (08:37 -0700)]
[FIX] make src/parsers/compile work on MACOS
andy verprauskus [Mon, 1 Jun 2009 19:53:12 +0000 (12:53 -0700)]
[FIX] force build to use bash instead of default shell, makes build work on ubuntu
mitchell [Wed, 27 May 2009 01:43:05 +0000 (21:43 -0400)]
Since directories are added to SourceFileLists, don't mistake as extensions.
mitchell [Sun, 24 May 2009 19:18:43 +0000 (15:18 -0400)]
Updated test/unit/sourcefile_test.h for completeness.
mitchell [Sun, 24 May 2009 18:50:16 +0000 (14:50 -0400)]
Added documentation to src/ohcount.h noting gestalts require Ruby extension.
mitchell [Sun, 24 May 2009 18:41:12 +0000 (14:41 -0400)]
Removed gestalt options from C ohcount (use ruby/gestalt.rb).
mitchell [Sun, 24 May 2009 18:39:15 +0000 (14:39 -0400)]
Fixed license detection for source files with no parsed languages.
mitchell [Sun, 24 May 2009 16:24:24 +0000 (12:24 -0400)]
Changed build to use platform-specific Ruby include directory via mkmf.
mitchell [Sun, 24 May 2009 15:59:45 +0000 (11:59 -0400)]
ruby/gestalt.rb will print gestalts if it is run.
mitchell [Sun, 24 May 2009 14:56:57 +0000 (10:56 -0400)]
Remove ruby/ohcount.so in build clean.
mitchell [Sun, 24 May 2009 14:55:05 +0000 (10:55 -0400)]
Added gestalt_test.rb helper and run it on build of Ruby extension.
mitchell [Sun, 24 May 2009 05:10:00 +0000 (01:10 -0400)]
Forgot to delete hash/*.h files in build.
mitchell [Sun, 24 May 2009 05:07:04 +0000 (01:07 -0400)]
Added documentation for compiling Ruby extension; src/ohcount.h
mitchell [Sun, 24 May 2009 04:59:03 +0000 (00:59 -0400)]
Added gestalts.
mitchell [Sun, 24 May 2009 04:56:53 +0000 (00:56 -0400)]
Removed hash header include guards; they're unnecessary.
mitchell [Sun, 24 May 2009 04:56:18 +0000 (00:56 -0400)]
Added Ruby interface.
mitchell [Sat, 23 May 2009 22:41:08 +0000 (18:41 -0400)]
Renamed ParsedLanguage->language to ParsedLanguage->name.
mitchell [Sat, 23 May 2009 19:09:39 +0000 (15:09 -0400)]
Added extra Doxygen doc; src/sourcefile.c
mitchell [Sat, 23 May 2009 19:08:58 +0000 (15:08 -0400)]
Changed BINARY from NULL to "\1" for faster binary file detection.
mitchell [Fri, 22 May 2009 22:30:04 +0000 (18:30 -0400)]
Added #include guards for src/hash/ headers.
mitchell [Wed, 20 May 2009 19:51:13 +0000 (15:51 -0400)]
Add option to build file to build Ohcount as shared library.
mitchell [Mon, 18 May 2009 21:09:49 +0000 (17:09 -0400)]
Use diskpath field if necessary for getting file contents; src/sourcefile.c
mitchell [Mon, 18 May 2009 20:43:03 +0000 (16:43 -0400)]
Parsing SourceFileLists in src/sourcefile.c is much more memory efficient.
mitchell [Sun, 17 May 2009 22:54:13 +0000 (18:54 -0400)]
Added doc/html and bin/ to .gitignore.
mitchell [Sun, 17 May 2009 21:50:04 +0000 (17:50 -0400)]
Reduced calling of 'strlen' in loops for speed in src/detector.c.
mitchell [Sun, 17 May 2009 18:42:21 +0000 (14:42 -0400)]
Modified build file to create 'bin/' directory if it does not exist.
mitchell [Sun, 17 May 2009 18:40:13 +0000 (14:40 -0400)]
Added Ohcount's output build files to .gitignore.
mitchell [Sun, 17 May 2009 18:39:38 +0000 (14:39 -0400)]
Fixed build script to generate headers when none are present.
mitchell [Sun, 17 May 2009 18:34:29 +0000 (14:34 -0400)]
Removed all Ruby parts of Ohcount.
mitchell [Sun, 17 May 2009 18:31:07 +0000 (14:31 -0400)]
Modified .gitignore to not ignore doc/ directory.
mitchell [Sun, 17 May 2009 18:29:03 +0000 (14:29 -0400)]
Initial import of files for generating Doxygen documentation.
mitchell [Sun, 17 May 2009 18:25:14 +0000 (14:25 -0400)]
Initial import of build script.
mitchell [Sun, 17 May 2009 18:24:42 +0000 (14:24 -0400)]
Modified existing test/expected_licenses for C code.
mitchell [Sun, 17 May 2009 18:21:20 +0000 (14:21 -0400)]
Initial import of C tests.
mitchell [Sun, 17 May 2009 18:15:44 +0000 (14:15 -0400)]
Initial import of C source code.
Robin Luckey [Fri, 8 May 2009 01:12:47 +0000 (18:12 -0700)]
[NEW] More disambiguation cleanup to support Limbo
Robin Luckey [Fri, 8 May 2009 01:02:12 +0000 (18:02 -0700)]
Merge branch 'limbo'
Conflicts:
test/unit/detector_test.rb
Mechiel Lukkien [Tue, 21 Apr 2009 12:15:36 +0000 (14:15 +0200)]
and add the modified files too...
Mechiel Lukkien [Tue, 21 Apr 2009 12:07:51 +0000 (14:07 +0200)]
add support for Limbo.
it adds a parser, adjusts the detector (there is now extension clash
between matlab/limbo/objective c, and another for for limbo/basic).
there are also sample limbo files (in public domain) and a test.
all tests pass with this.
it has been tested on a large body of limbo code (mixed with C,
makefile, shell, awk):
http://code.google.com/p/inferno-os/
more info on Limbo:
http://www.vitanuova.com/inferno/papers/limbo.html
Robin Luckey [Fri, 8 May 2009 00:34:12 +0000 (17:34 -0700)]
[FIX] Clean up the mess in Objective-C/Matlab/Octave disambiguation. Fixes Ticket 299.
James Webber [Tue, 21 Apr 2009 10:09:42 +0000 (11:09 +0100)]
Unit test cmake parser.
James Webber [Tue, 21 Apr 2009 10:09:23 +0000 (11:09 +0100)]
Add CMake parser.
James Webber [Tue, 21 Apr 2009 07:47:15 +0000 (08:47 +0100)]
Test detection mappings for cmake.
James Webber [Tue, 21 Apr 2009 07:46:30 +0000 (08:46 +0100)]
Detect *.cmake, CMakeLists.txt as cmake script.
James Webber [Tue, 21 Apr 2009 07:09:41 +0000 (08:09 +0100)]
Output of file -b for xml can contain two spaces and no version.
unwesen [Thu, 7 May 2009 23:12:45 +0000 (16:12 -0700)]
[NEW] Boost license detection
Robin Luckey [Thu, 7 May 2009 23:10:52 +0000 (16:10 -0700)]
[NEW] Test file for z80
Robin Luckey [Thu, 7 May 2009 23:04:18 +0000 (16:04 -0700)]
[NEW] .z80 files now detected as assembler
Robin Luckey [Thu, 7 May 2009 23:02:16 +0000 (16:02 -0700)]
[FIX] Clean up the alphabetic sort on the language extensions map
Robin Luckey [Thu, 7 May 2009 22:53:16 +0000 (15:53 -0700)]
[FIX] Remove unnecessary i9 file
Robin Luckey [Thu, 7 May 2009 22:50:05 +0000 (15:50 -0700)]
Merge git://github.com/vmlemon/ohcount into vmlemon
Robin Luckey [Thu, 7 May 2009 22:44:58 +0000 (15:44 -0700)]
[CHANGE] Change the default sort order of gestalts: type, counts desc, name
[CHANGE] bin/ohcount -g outputs bare gestalt records on each line for easier scripting
Robin Luckey [Thu, 7 May 2009 21:43:26 +0000 (14:43 -0700)]
[FIX] BlitzMax entry in the language map was incorrect.
Should have been listed by *name*, not by its *extension*.
jason [Thu, 7 May 2009 21:23:20 +0000 (14:23 -0700)]
[CHANGE] Gestalt redesign.
Tyson Key [Thu, 16 Apr 2009 18:40:09 +0000 (19:40 +0100)]
Really, really add the test cases this time. I hate Git. :(
Tyson Key [Thu, 16 Apr 2009 18:15:12 +0000 (19:15 +0100)]
Sync the tree. Hopefully adding the i9 License changes works this time.
Tyson Key [Thu, 16 Apr 2009 18:11:30 +0000 (19:11 +0100)]
Add a sample file containing the i9 License header
Tyson Key [Thu, 16 Apr 2009 18:07:16 +0000 (19:07 +0100)]
Update license_map.rb to add i9 License
Robin Luckey [Tue, 14 Apr 2009 18:30:13 +0000 (11:30 -0700)]
[FIX] Cleanup the progress reporting for bin/ohcount -g
Robin Luckey [Tue, 14 Apr 2009 00:32:29 +0000 (17:32 -0700)]
Merge branch 'glassfish'
Robin Luckey [Tue, 14 Apr 2009 00:32:02 +0000 (17:32 -0700)]
[FIX] Names of some platforms and tools have changed
Sylvestre Ledru [Tue, 7 Apr 2009 18:15:55 +0000 (20:15 +0200)]
Test for cecill license
Sylvestre Ledru [Tue, 7 Apr 2009 18:11:29 +0000 (20:11 +0200)]
Handle cecill licenses
Sylvestre Ledru [Tue, 7 Apr 2009 20:16:15 +0000 (22:16 +0200)]
Scilab added
Sylvestre Ledru [Tue, 7 Apr 2009 18:11:11 +0000 (20:11 +0200)]
Manage Scilab language
Robin Luckey [Thu, 26 Mar 2009 23:39:38 +0000 (16:39 -0700)]
[NEW] New platforms for detecting various Java application servers
Benjamin Kramer [Sat, 21 Mar 2009 15:10:20 +0000 (16:10 +0100)]
[FIX] Parse diff output ourselves instead of computing it twice
Robin Luckey [Fri, 20 Mar 2009 15:31:15 +0000 (08:31 -0700)]
[FIX] Alternate diff implementation for very large files.
Our in-memory split and call to LCS::Diff could take literally days
to complete for large files.
We now put the buffers into temp files, and shell out to the console
to let the `diff` program handle it whenever a buffer exceeds 100K.
Olly Betts [Mon, 9 Mar 2009 04:18:56 +0000 (17:18 +1300)]
Check contents of .st files actually looks like Smalltalk.
Robin Luckey [Tue, 10 Mar 2009 19:11:23 +0000 (12:11 -0700)]
[FIX] BSD license detection was completely fubar. Many fixes:
1. If we match both 2-clause and 3-clause, choose 3-clause.
Previously, we were doing the reverse.
2. Test case test/src_licenses/bsd_2clause_ish_t2 was obviously
a 3-clause license but the test was checking for 2-clause.
This has been changed.
Note that the online descriptions of the various BSD licenses
on Ohloh have been edited by the community and now do not match
the definitions used in Ohcount. This will have to be fixed.
Robin Luckey [Tue, 10 Mar 2009 16:41:48 +0000 (09:41 -0700)]
[FIX] Removing trailing whitespace through regex is far too slow. Use strip().
Robin Luckey [Mon, 9 Mar 2009 17:33:17 +0000 (10:33 -0700)]
[FIX] License detection didn't work in cases with trailing whitespace
Jason Riedy [Mon, 2 Mar 2009 22:38:33 +0000 (17:38 -0500)]
Add parsing support for GNU Octave.
This likely should use the Matlab(TM) parser machine, but I'm not
skilled enough with Ragel. This parser also allows Matlab(TM)'s block
comments, although those are not currently supported by GNU Octave.
It'd be nice to separate documentation comment blocks and test comment
blocks, but not necessary yet.
Signed-off-by: Jason Riedy <jason@acm.org>
Jason Riedy [Mon, 2 Mar 2009 22:36:40 +0000 (17:36 -0500)]
PARSER_DOC should mention that ragel_parsers.c must be modified.
Adding new parsers is not entirely automatic.
Signed-off-by: Jason Riedy <jason@acm.org>
Jason Riedy [Mon, 2 Mar 2009 22:35:57 +0000 (17:35 -0500)]
A few Matlab(TM) parser modifications.
There is a very old style of commenting that hides the comment beyond
the line continuation sequence '...'. Also, the next patch adds an
GNU Octave-specific parser, so remove GNU Octave features. The double
quotes are not detected by the detector, so keep those.
Signed-off-by: Jason Riedy <jason@acm.org>
Jason Riedy [Mon, 2 Mar 2009 22:02:56 +0000 (17:02 -0500)]
Differentiate between Matlab(TM) and GNU Octave in the detector.
GNU Octave is a sufficiently different language that it's work checking
directly. Also, GNU Octave files may not run in Matlab; GNU Octave
extends the syntax. One caveat is that the detector does not detect
use of GNU Octave's doubly quoted strings, "foo". Some files may be
mis-identified if "foo" is the only Octave-ism.
Signed-off-by: Jason Riedy <jason@acm.org>
Robin Luckey [Wed, 25 Feb 2009 22:17:05 +0000 (14:17 -0800)]
[NEW] LocDeltaList + LocDeltaList => LocDeltaList
Robin Luckey [Mon, 23 Feb 2009 16:33:19 +0000 (08:33 -0800)]
Merge branch 'master' of git://github.com/d0k/ohcount
Benjamin Kramer [Sat, 21 Feb 2009 14:03:56 +0000 (15:03 +0100)]
[FIX] license listing failed due to missing namespace
Robin Luckey [Thu, 19 Feb 2009 23:06:39 +0000 (15:06 -0800)]
[NEW] Version 2.0.1 - Internal support for LOC delta between two source files
Robin Luckey [Thu, 19 Feb 2009 23:02:48 +0000 (15:02 -0800)]
Merge branch 'master' of congo:dev/ohcount
Robin Luckey [Wed, 18 Feb 2009 23:44:36 +0000 (15:44 -0800)]
[NEW] Implement LocList += LocDelta and LocList += LocDeltaList
This lets us use LocList to keep a running total of LocDeltas
Robin Luckey [Sat, 31 Jan 2009 16:03:22 +0000 (08:03 -0800)]
[FIX] Many fixes to GemSpec:
- Now includes all files (was missing rules.rb, platforms.rb)
- RDoc now builds properly (no missing README warnings, no
duplicated files)
- Removed the [always misplaced] /rules folder and put its
contents into the /lib/gestalt folder.
Robin Luckey [Sat, 31 Jan 2009 14:32:21 +0000 (06:32 -0800)]
[FIX] Improvements to the build process:
- accurate dependencies, for more reliable, efficient builds
- ragel output files are kept in ragel_parsers directory
- Rakefile cleanups
Nicolas Pierron [Tue, 27 Jan 2009 00:22:05 +0000 (01:22 +0100)]
[NEW] Add support for "Nix".
Michael Adam [Fri, 30 Jan 2009 21:23:16 +0000 (22:23 +0100)]
Don't fail the "perl -w" detector test on my openSUSE 11 box.
This system's file returns "script text for ..." instead
of "script text executable for ..."
Michael
Robin Luckey [Thu, 29 Jan 2009 02:43:18 +0000 (18:43 -0800)]
[CHANGE] Some corrections to old comments.
Robin Luckey [Thu, 29 Jan 2009 02:15:50 +0000 (18:15 -0800)]
[CHANGE] Clean up source_file.rb -- remove the clone_and_rename() method
Robin Luckey [Thu, 29 Jan 2009 01:50:39 +0000 (17:50 -0800)]
[FIX] No one really uses it, but clean up and test Language class
Robin Luckey [Thu, 29 Jan 2009 01:14:52 +0000 (17:14 -0800)]
[CHANGE] Move more of Ohcount to the new Loc classes. Remove LanguageFacts class.
Robin Luckey [Thu, 29 Jan 2009 00:11:29 +0000 (16:11 -0800)]
[CHANGE] Begin moving Ohcount accross to new Loc classes. Rake passes. Removed SlocInfo class.
Robin Luckey [Wed, 28 Jan 2009 22:53:50 +0000 (14:53 -0800)]
[FIX] Unneccessarily diff'ing every file twice.
Robin Luckey [Wed, 28 Jan 2009 22:43:06 +0000 (14:43 -0800)]
[NEW] General objects for keeping track of line counts and line count deltas.