4 views

cs341-illinois/coursebook

Open Source Introductory Systems Programming Textbook for the University of Illinois

TeX★ 3,187+572 that day#8 on trending

Analyzed September 30, 2026 at 61c706f (master) with jscpd 5.4.0 in 0.2s. Code duplication stayed at 1.6% across 2 appearances since Sep 29.

C57.1/100
Project health18,492 lines of code (M)
Duplication94
0.5% in latex, bash, python, perl
Dead coden/a
the languages dead code reads are under 5% of the code
Complexity35
81.9%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

1.6%duplicated code · 26 of 1,630 lines
2clones in code
20code files of 120 scanned
58.84%duplicated over all files · 564 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.

Largest clones in the code

  • 18 lines in 2 placespython92 tokens
    17def replace_suffix(content, suffix_old, suffix_new):
    18    ret = content
    19    if content.endswith(suffix_old):
    20        ret = content[:-len(suffix_old)] + suffix_new
    21    return ret
    22
    23def deserialize(x):
    24    """
    25    Takes a panflute element x and returns
    26    a basic stringified version of that element
    

    First 10 of 18 lines.

  • 8 lines in 2 placespython59 tokens
    34if type(elem) == Image:
    35    # Get the number of chars for the alt tag
    36    alt_name = ''.join(map(deserialize, elem._content.list))
    37    alt_length = len(elem._content)
    38    # No alt means no compile
    39    # Accessibility by default
    40    if alt_length == 0 or alt_name.lower() == default_image_alt:
    41        raise NoAltTagException(elem.url)
    
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python55932264.38%
bash14863000%
perl1174000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
markup5279,08255357,78273.07%
latex3416,8188730.43%
python55932264.38%
yaml317412715.52%
bash14863000%
markdown10698000%
perl1174000%
text117000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Sep 30, 2026#83,187 (+572)12098,41956458.84%1.6%C 57.161c706f
Sep 29, 2026#42,615 (+195)12098,41956458.84%1.6%C 57.161c706f

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.