JiaFeiMiao-K-Cat/DiscImageStudio
C#★ 6,771+1,778 that day#8 on trending
C63.5/100
Duplication84
2.2% in csharp, powershell, pythonDead coden/a
the languages dead code reads are under 5% of the codeComplexity48
53.6% 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.73%duplicated code · 893 of 51,494 lines
83clones in code
246code files of 440 scanned
4.46%duplicated over all files · 272 clones
Most complex files
- src/DiscImageStudio.App/Controls/CalibrationPhotoCanvas.cs370 cx
- src/DiscImageStudio.App/ViewModels/CalibrationViewModel.cs261 cx
- src/DiscImageStudio.App/ViewModels/LivePreviewViewModel.cs238 cx
- tests/DiscImageStudio.ArchitectureTests/CalibrationPhotoViewModelTests.cs210 cx
- src/DiscImageStudio.Core/Calibration/CalibrationTarget.cs209 cx
- src/DvdImageSolver/Program.cs204 cx
- src/DiscImageStudio.Core/DvdTrackGeometry.cs200 cx
- src/DiscImageStudio.App/ViewModels/ShellViewModel.cs177 cx
- src/DiscImageStudio.App/MainWindow.xaml.cs174 cx
- src/DiscImageStudio.App/ViewModels/CalibrationRingViewModel.cs156 cx
Dead code 0% unused · 0 findings
No dead code found — everything here is reachable.
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: src/DvdImageSolver/Encoding/EfmPlusTables.Generated.cs.
Largest clones in the code
- 33 lines in 2 placescsharp273 tokens
779 destination[0] = checked((byte)(year - 1900)); 780 destination[1] = checked((byte)utc.Month); 781 destination[2] = checked((byte)utc.Day); 782 destination[3] = checked((byte)utc.Hour); 783 destination[4] = checked((byte)utc.Minute); 784 destination[5] = checked((byte)utc.Second); 785 destination[6] = 0; 786} 787 788private static void WriteVolumeDate(Span<byte> destination, DateTimeOffset timestamp)First 10 of 33 lines.
- 17 lines in 3 placescsharp94 tokenssrc/DiscImageStudio.App/Services/RecentJobStore.cs:102–118src/DiscImageStudio.App/Services/RecentProjectStore.cs:113–129src/DiscImageStudio.App/Services/RecentTemplateStore.cs:81–97
102private void Save(IReadOnlyList<RecentJobEntry> entries) 103{ 104 try 105 { 106 string? directory = Path.GetDirectoryName(_filePath); 107 if (!string.IsNullOrEmpty(directory)) 108 { 109 Directory.CreateDirectory(directory); 110 } 111First 10 of 17 lines.
- 14 lines in 2 placescsharp173 tokenssrc/DiscImageStudio.App/Controls/CalibrationPhotoCanvas.cs:646–659src/DiscImageStudio.App/Controls/CalibrationPhotoCanvas.cs:669–682
646 DrawRingSegment(dc, ring.RadiusMm, start - pad, sweep + 2 * pad, new Pen(DiscTheme.Trace, 1.6)); 647} 648for (int i = 0; i < points.Count; i++) 649{ 650 var position = WorldToView(new Point(points[i].X, points[i].Y)); 651 dc.DrawEllipse(DiscTheme.HubOutline, new Pen(DiscTheme.Outline, 1), position, 3.5, 3.5); 652 var label = Text((i + 1).ToString(CultureInfo.CurrentCulture), 11, DiscTheme.Handle); 653 Point at = position + new Vector(5, -label.Height); 654 dc.DrawRoundedRectangle(DiscTheme.Caption, null, new Rect(at.X - 2, at.Y, label.Width + 4, label.Height), 2, 2); 655 dc.DrawText(label, at);First 10 of 14 lines.
7 more
- 13 lines in 3 placescsharp75 tokens
- 18 lines in 2 placescsharp131 tokens
- 14 lines in 2 placescsharp124 tokens
- 19 lines in 2 placescsharp117 tokens
- 16 lines in 2 placescsharp106 tokens
- 8 lines in 2 placescsharp104 tokens
- 6 lines in 2 placescsharp103 tokens
Largest clones over all files, tests and data included
- 506 lines in 2 placestxtdocs and examples5,229 tokens
844-------------------------------------------------------------------- 845 846Developed by: 847 848 LLVM Team 849 850 University of Illinois at Urbana-Champaign 851 852 http://llvm.org 853First 10 of 506 lines.
- 383 lines in 2 placestxtdocs and examples3,971 tokens
461License notice for Mono 462------------------------------- 463 464http://www.mono-project.com/docs/about-mono/ 465 466Copyright (c) .NET Foundation Contributors 467 468MIT License 469 470Permission is hereby granted, free of charge, to any person obtaining a copyFirst 10 of 383 lines.
- 283 lines in 2 placestxtdocs and examples3,701 tokens
1350----------------------------------- 1351 1352Copyright 2019 LLVM Project 1353 1354Licensed under the Apache License, Version 2.0 (the "License") with LLVM Exceptions; 1355you may not use this file except in compliance with the License. 1356You may obtain a copy of the License at 1357 1358https://llvm.org/LICENSE.txt 1359First 10 of 283 lines.
- 17 lines in 15 placestxtdocs and examples191 tokens
- 19 lines in 5 placestxtdocs and examples234 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| csharp | 235 | 50,152 | 82 | 887 | 1.77% |
| python | 6 | 715 | 1 | 6 | 0.84% |
| powershell | 5 | 627 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| csharp | 342 | 75,924 | 160 | 1,663 | 2.19% |
| txt | 2 | 3,267 | 93 | 2,427 | 74.29% |
| markdown | 28 | 4,121 | 8 | 85 | 2.06% |
| powershell | 24 | 1,113 | 8 | 42 | 3.77% |
| json | 23 | 9,288 | 1 | 11 | 0.12% |
| python | 7 | 755 | 1 | 6 | 0.79% |
| yaml | 3 | 466 | 1 | 11 | 2.36% |
| text | 10 | 128 | 0 | 0 | 0% |
| mermaid | 1 | 14 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 5, 2026 | #8 | 6,771 (+1,778) | 440 | 95,076 | 272 | 4.46% | 1.73% | C 63.5 | 3a5cde6 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.