moss_makereadable — Format the raw output of moss into something more readable, and also perform optional filtering


moss_makereadable { file | url } [ min_percent1 [ min_percent2 ] ]


The required first parameter is either a file on the local filesystem or, more likely, a URL such as the one specified on the last line of output from runMoss. The next two optional parameters specify the minimum percentages students must match not to be filtered.


Unfortunately, the output of runMoss is a webpage of full paths to directories named according to student number, which is not easily human-readable. Also, there may be a large amount of information that is not really relevant and could be removed from consideration entirely.

Information is read from the file or URL specified. The paths embedded in the HTML are translated back into userids via reverse lookups in the classlists and a tag is added to indicate whether zero, one, or two of the students in the pair are enrolled in the current term according to the classlist file.

Filtering based on the percent matched is possible via two optional parameters. If one is specified, then only those pairs where one student matches at least that percent are kept. If two are specified, then one student must match at least minpercent1 percent and the other student must match at least minpercent2 percent.

After this, the program dumps the contents of a new HTML page to standard output. The end user will likely want to redirect this into an appropriate file.

Topic revision: r1 - 2016-01-11 - YiLee
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback