MOSS A Measure Of Software Similarity Computer Center Slides: 8 Download presentation MOSS A Measure Of Software Similarity Computer Center, CS, NCTU 架構 MOSS SERVER RESULT PAGES PERL SCRIPT WEB BROWSER CODE 2 Computer Center, CS, NCTU 使用方法 Submit code to Moss server by a perl script 支援的語言 C, C++, Java, C#, Python, Visual Basic, Javascript, FORTRAN, ML, Haskell, Lisp, Scheme, Pascal, Modula 2, Ada, Perl, TCL, Matlab, VHDL, Verilog, Spice, MIPS assembly, a 8086 assembly, HCL 2. 以檔案為單位比對 moss -l cc hw 1/*. cpp 排除老師提供的 template moss -b template. cc *. cc 以資料夾為單位比對 moss -d hw 1/*/*. cpp hw 1/*/*. h 在超過 N 個檔案出現 moss -m N 的忽略 (N預設為 10) 辨識改過名字的變數 O 3 辨識更動過的 註解/空白/縮排 O 辨識i++和i=i+1; X 辨識cout與printf X Computer Center, CS, NCTU 5 Computer Center, CS, NCTU 6 Computer Center, CS, NCTU 申請帳號 q http: //moss. stanford. edu q moss@moss. stanford. edu q registeruser mail username@domain q http: //www. cs. nctu. edu. tw/~hchung/public/moss. ppt q http: //java. csie. nctu. edu. tw/~tfliao/moss/Moodle. MOSS. pptx q http: //java. csie. nctu. edu. tw/~tfliao/moss/decompress_MOSS. pptx 7 Computer Center, CS, NCTU 8 FAQ