This is a Common Lisp utility for submitting code to Stanford's MOSS (Measure Of Software Similarity) software similarity detection system. It allows submitting multiple source code files in order to generate a similarity report. The MOSS system only runs on Stanford's servers - you cannot run your own instance. Hence the need for a submission script. This one is mostly a Common Lisp rewrite of a PHP script written by Philipp Helo Rehs (available here).
CL-MOSS is ASDF-based. If you have Quicklisp installed, you can check out CL-MOSS into your
local-projects directory (or make an appropriate symlink) and then run:
CL-USER> (ql:quickload :cl-moss)
Below is a sample usage session:
CL-MOSS> (defparameter *moss* (moss-initialize "<user-id>")) CL-MOSS> (set-language *moss* :lisp) ; string value is also fine CL-MOSS> (add-base-file *moss* "project/example.lisp") CL-MOSS> (add-by-wildcard *moss* "project/src/*.lisp") CL-MOSS> (set-comment-string *moss* "Let's analyze some code similarities!") CL-MOSS> (send *moss*) -> "http://moss.stanford.edu/results/<submission-id>"
Last step should yield a URL where you can view the results of the analysis of your submitted files.
- Wojciech S. Gac <email@example.com>