Skip to content

Commit 15aa0d5

Browse files
chamecobmcutler
authored andcommitted
Temporarily remove blobbing from plagiarism to prepare for integration with Submitty (#39)
* Restrict reports to top matches * Compare in the correct order * Avoid blobify altogether at first to determine course of action * Increase winnowing bounds for C * Fix tilde/exclamation mark lexer bug for C * Add depth counter * Update version
1 parent fdd3698 commit 15aa0d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lichen.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: lichen
2-
version: 0.2.3
2+
version: 0.2.4
33
synopsis: Plagiarism Detection and Other Static Analysis
44
description: Please see README.md
55
homepage: https://github.com/Submitty/AnalysisTools

src/Lichen/Config/Languages.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ langDummy :: Language
5555
langDummy = Language [] dummy (WinnowConfig 0 0) (const $ pure ()) dummy
5656

5757
langC :: Language
58-
langC = Language [".c", ".h", ".cpp", ".hpp", ".C", ".H", ".cc"] C.lex (WinnowConfig 9 5) (smartRead :: String -> Erring C.Tok) dummy
58+
langC = Language [".c", ".h", ".cpp", ".hpp", ".C", ".H", ".cc"] C.lex (WinnowConfig 16 9) (smartRead :: String -> Erring C.Tok) dummy
5959

6060
langPython :: Language
6161
langPython = Language [".py"] Python.lex (WinnowConfig 16 9) (smartRead :: String -> Erring Python.Tok) Python.parse

src/Lichen/Plagiarism/Render/Compare.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ renderBoth dir (fp, t) (fp', t') = do
6666
s' <- T.IO.readFile (dir </> sq t')
6767
let es = T.replace "\t" " " s
6868
es' = T.replace "\t" " " s'
69-
(p, p') = blobify (toPosList es fp) (toPosList es' fp')
69+
(p, p') = (toPosList es fp, toPosList es' fp')
7070
return (mconcat . fmap colorize $ splitInto es p, mconcat . fmap colorize $ splitInto es' p')
7171

7272
renderCompare :: (Show a, Eq a) => FilePath -> (Double, (Fingerprints, a), (Fingerprints, a)) -> IO H.Html

0 commit comments

Comments
 (0)