willfaust/Madeira
Run x86-64 Windows PC games on jailed iOS via FEX-Emu + Wine + DXMT
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- research/madeira-d3d12/src/pe/madeira_d3d12.c4528 cx
- app/Madeira/HardwareInput.swift526 cx
- app/Madeira/ContentView.swift517 cx
- app/Madeira/Library.swift475 cx
- research/madeira-d3d12/src/unix/madeira_ir_unix.mm414 cx
- app/Madeira/WineProcessBridge.m271 cx
- research/madeira-d3d12/src/pe/madeira_d3d12_stubs.h253 cx
- app/Madeira/Winios/Winios.m246 cx
- app/Madeira/DockInstallers.swift225 cx
- research/madeira-d3d12/src/unix/madeira_ags.cpp177 cx
Dead code 49.26% unused · 2 findings
- app/Madeira/madeira-jit.jsunused-file
- research/remote-metal/schema/wire_schema.py:sysunused-import
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 8 generated files: app/Madeira/ConfigCatalog.generated.swift, build/crypto-unix/gnutls_symtab_ios.c, build/x64-tests/asmconf_tests.h, research/madeira-d3d12/src/pe/madeira_d3d12_stubs.h, research/madeira-d3d12/src/pe/tri_metallib.h, research/madeira-d3d12/tests/windows/tri_dxil.h, research/madeira-d3d12/tests/windows/vfetch_dxil.h, research/remote-metal/wmt_wire.h.
Largest clones in the code
- 47 lines in 7 placesc1,679 tokensbuild/x86-tests/wma-x86.c:178–224build/x86-tests/wma-x86.c:178–224build/x86-tests/wma-x86.c:227–274build/x86-tests/wma-x86.c:289–336build/x86-tests/wma-x86.c:351–398and 2 more
1780x26, 0x1e, 0xb0, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1790x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1800x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1810x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1820x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1830x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1840x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1850x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1860x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 1870x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e,First 10 of 47 lines.
- 6 lines in 101 placesc86 tokensbuild/ntdll-unix/env_ios.c:344–349build/ntdll-unix/env_ios.c:471–476build/ntdll-unix/env_ios.c:480–485build/ntdll-unix/env_ios.c:489–494build/ntdll-unix/env_ios.c:545–550and 96 more
344 STARTS_WITH( var, "XDG_" )); 345} 346 347 348/*********************************************************************** 349 * is_ignored_env_var471 return ret; 472} 473 474 475/*********************************************************************** 476 * ntdll_get_build_dir (ntdll.so) - 60 lines in 3 placesc2,132 tokens
2270x00, 0x06, 0x02, 0xc0, 0x69, 0xa0, 0x26, 0x25, 0xeb, 0x4e, 0x4e, 0x4e, 2280x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2290x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2300x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2310x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2320x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2330x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2340x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2350x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 2360x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e, 0x4e,First 10 of 60 lines.
7 more
- 21 lines in 4 placesc737 tokens
- 60 lines in 2 placesc2,131 tokens
- 60 lines in 2 placesc2,126 tokens
- 60 lines in 2 placesc2,126 tokens
- 18 lines in 7 placesc275 tokens
- 24 lines in 3 placesc766 tokens
- 22 lines in 3 placesc757 tokens
Largest clones over all files, tests and data included
- 21 lines in 19 placesc-headertests953 tokensresearch/madeira-d3d12/tests/windows/tri_dxil.h:89–109research/madeira-d3d12/tests/windows/tri_dxil.h:289–309research/madeira-d3d12/tests/windows/tri_dxil.h:371–391research/madeira-d3d12/tests/windows/tri_dxil.h:768–788research/madeira-d3d12/tests/windows/tri_dxil.h:848–869and 14 more
890x46,0x57,0x26,0x37,0x37,0x25,0x50,0x03,0x00,0x00,0x00,0x00,0x79,0x18,0x00,0x00, 900x4c,0x00,0x00,0x00,0x33,0x08,0x80,0x1c,0xc4,0xe1,0x1c,0x66,0x14,0x01,0x3d,0x88, 910x43,0x38,0x84,0xc3,0x8c,0x42,0x80,0x07,0x79,0x78,0x07,0x73,0x98,0x71,0x0c,0xe6, 920x00,0x0f,0xed,0x10,0x0e,0xf4,0x80,0x0e,0x33,0x0c,0x42,0x1e,0xc2,0xc1,0x1d,0xce, 930xa1,0x1c,0x66,0x30,0x05,0x3d,0x88,0x43,0x38,0x84,0x83,0x1b,0xcc,0x03,0x3d,0xc8, 940x43,0x3d,0x8c,0x03,0x3d,0xcc,0x78,0x8c,0x74,0x70,0x07,0x7b,0x08,0x07,0x79,0x48, 950x87,0x70,0x70,0x07,0x7a,0x70,0x03,0x76,0x78,0x87,0x70,0x20,0x87,0x19,0xcc,0x11, 960x0e,0xec,0x90,0x0e,0xe1,0x30,0x0f,0x6e,0x30,0x0f,0xe3,0xf0,0x0e,0xf0,0x50,0x0e, 970x33,0x10,0xc4,0x1d,0xde,0x21,0x1c,0xd8,0x21,0x1d,0xc2,0x61,0x1e,0x66,0x30,0x89, 980x3b,0xbc,0x83,0x3b,0xd0,0x43,0x39,0xb4,0x03,0x3c,0xbc,0x83,0x3c,0x84,0x03,0x3b,2890x21,0xc3,0x73,0x19,0x7b,0xab,0x73,0xa3,0x2b,0x93,0x9b,0x9b,0x12,0xdc,0x01,0x00, 2900x79,0x18,0x00,0x00,0x4c,0x00,0x00,0x00,0x33,0x08,0x80,0x1c,0xc4,0xe1,0x1c,0x66, 2910x14,0x01,0x3d,0x88,0x43,0x38,0x84,0xc3,0x8c,0x42,0x80,0x07,0x79,0x78,0x07,0x73, 2920x98,0x71,0x0c,0xe6,0x00,0x0f,0xed,0x10,0x0e,0xf4,0x80,0x0e,0x33,0x0c,0x42,0x1e, 2930xc2,0xc1,0x1d,0xce,0xa1,0x1c,0x66,0x30,0x05,0x3d,0x88,0x43,0x38,0x84,0x83,0x1b, 2940xcc,0x03,0x3d,0xc8,0x43,0x3d,0x8c,0x03,0x3d,0xcc,0x78,0x8c,0x74,0x70,0x07,0x7b, 2950x08,0x07,0x79,0x48,0x87,0x70,0x70,0x07,0x7a,0x70,0x03,0x76,0x78,0x87,0x70,0x20, 2960x87,0x19,0xcc,0x11,0x0e,0xec,0x90,0x0e,0xe1,0x30,0x0f,0x6e,0x30,0x0f,0xe3,0xf0, 2970x0e,0xf0,0x50,0x0e,0x33,0x10,0xc4,0x1d,0xde,0x21,0x1c,0xd8,0x21,0x1d,0xc2,0x61, 2980x1e,0x66,0x30,0x89,0x3b,0xbc,0x83,0x3b,0xd0,0x43,0x39,0xb4,0x03,0x3c,0xbc,0x83,First 10 of 21 lines, the second copy on the right.
- 121 lines in 2 placesc-header5,768 tokensresearch/madeira-d3d12/src/pe/tri_metallib.h:73–193research/madeira-d3d12/src/pe/tri_metallib.h:433–553
730x05,0x28,0x50,0x10,0x05,0x32,0x02,0x50,0x04,0xc5,0x50,0x06,0xa5,0x50,0x18,0x00, 740x00,0x00,0xb1,0x18,0x00,0x00,0xa9,0x00,0x00,0x00,0x33,0x08,0x80,0x1c,0xc4,0xe1, 750x1c,0x66,0x14,0x01,0x3d,0x88,0x43,0x38,0x84,0xc3,0x8c,0x42,0x80,0x07,0x79,0x78, 760x07,0x73,0x98,0x71,0x0c,0xe6,0x00,0x0f,0xed,0x10,0x0e,0xf4,0x80,0x0e,0x33,0x0c, 770x42,0x1e,0xc2,0xc1,0x1d,0xce,0xa1,0x1c,0x66,0x30,0x05,0x3d,0x88,0x43,0x38,0x84, 780x83,0x1b,0xcc,0x03,0x3d,0xc8,0x43,0x3d,0x8c,0x03,0x3d,0xcc,0x78,0x8c,0x74,0x70, 790x07,0x7b,0x08,0x07,0x79,0x48,0x87,0x70,0x70,0x07,0x7a,0x70,0x03,0x76,0x78,0x87, 800x70,0x20,0x87,0x19,0xcc,0x11,0x0e,0xec,0x90,0x0e,0xe1,0x30,0x0f,0x6e,0x30,0x0f, 810xe3,0xf0,0x0e,0xf0,0x50,0x0e,0x33,0x10,0xc4,0x1d,0xde,0x21,0x1c,0xd8,0x21,0x1d, 820xc2,0x61,0x1e,0x66,0x30,0x89,0x3b,0xbc,0x83,0x3b,0xd0,0x43,0x39,0xb4,0x03,0x3c,4330x04,0x65,0x50,0x0a,0xc5,0x50,0x18,0x00,0x00,0x00,0xb1,0x18,0x00,0x00,0xa9,0x00, 4340x00,0x00,0x33,0x08,0x80,0x1c,0xc4,0xe1,0x1c,0x66,0x14,0x01,0x3d,0x88,0x43,0x38, 4350x84,0xc3,0x8c,0x42,0x80,0x07,0x79,0x78,0x07,0x73,0x98,0x71,0x0c,0xe6,0x00,0x0f, 4360xed,0x10,0x0e,0xf4,0x80,0x0e,0x33,0x0c,0x42,0x1e,0xc2,0xc1,0x1d,0xce,0xa1,0x1c, 4370x66,0x30,0x05,0x3d,0x88,0x43,0x38,0x84,0x83,0x1b,0xcc,0x03,0x3d,0xc8,0x43,0x3d, 4380x8c,0x03,0x3d,0xcc,0x78,0x8c,0x74,0x70,0x07,0x7b,0x08,0x07,0x79,0x48,0x87,0x70, 4390x70,0x07,0x7a,0x70,0x03,0x76,0x78,0x87,0x70,0x20,0x87,0x19,0xcc,0x11,0x0e,0xec, 4400x90,0x0e,0xe1,0x30,0x0f,0x6e,0x30,0x0f,0xe3,0xf0,0x0e,0xf0,0x50,0x0e,0x33,0x10, 4410xc4,0x1d,0xde,0x21,0x1c,0xd8,0x21,0x1d,0xc2,0x61,0x1e,0x66,0x30,0x89,0x3b,0xbc, 4420x83,0x3b,0xd0,0x43,0x39,0xb4,0x03,0x3c,0xbc,0x83,0x3c,0x84,0x03,0x3b,0xcc,0xf0,First 10 of 121 lines, the second copy on the right.
- 502 lines in 2 placestxtdocs and examples4,778 tokens
1 GNU LESSER GENERAL PUBLIC LICENSE 2 Version 2.1, February 1999 3 4 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 5 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 Everyone is permitted to copy and distribute verbatim copies 7 of this license document, but changing it is not allowed. 8 9[This is the first released version of the Lesser GPL. It also counts 10 as the successor of the GNU Library Public License, version 2, henceFirst 10 of 502 lines.
- 102 lines in 2 placesc-header4,693 tokens
- 482 lines in 2 placestxtdocs and examples4,628 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 68 | 99,674 | 580 | 5,349 | 5.37% |
| python | 43 | 8,918 | 25 | 289 | 3.24% |
| objectivec | 7 | 6,145 | 13 | 113 | 1.84% |
| bash | 48 | 3,641 | 10 | 97 | 2.66% |
| swift | 32 | 15,080 | 2 | 17 | 0.11% |
| c-header | 36 | 2,975 | 2 | 19 | 0.64% |
| cpp | 3 | 907 | 2 | 19 | 2.09% |
| javascript | 1 | 331 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c-header | 23 | 10,262 | 182 | 3,439 | 33.51% |
| c | 19 | 17,136 | 33 | 244 | 1.42% |
| objectivec | 15 | 7,566 | 22 | 196 | 2.59% |
| txt | 25 | 3,191 | 19 | 1,863 | 58.38% |
| swift | 33 | 15,347 | 2 | 17 | 0.11% |
| diff | 8 | 2,069 | 2 | 22 | 1.06% |
| markdown | 23 | 7,375 | 1 | 185 | 2.51% |
| bash | 21 | 1,117 | 1 | 9 | 0.81% |
| cpp | 5 | 630 | 0 | 0 | 0% |
| python | 2 | 343 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 30, 2026 | #9 | 1,135 (+81) | 182 | 65,732 | 262 | 9.09% | 4.28% | D 46 | d5a8e0a |
| Sep 28, 2026 | #7 | 868 (+83) | 146 | 51,232 | 262 | 11.63% | 4.77% | D 43.9 | 8c050d0 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.