google-deepmind/mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.

C++★ 17,017+574 that day#3 on trending

Analyzed November 10, 2026 at a937a4f (main) with jscpd v5 in 4.9s.

E34.5/100
Project health558,486 lines of code (L)
Duplication43
10.3% in cpp, python, c, c-header, csharp, cmake, typescript, bash, latex, javascript, objectivec, makefile
Dead code6
31.3%
Complexity41
64.8%

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

4.71%duplicated code · 14,998 of 318,700 lines
1,177clones in code
654code files of 1,682 scanned
14.19%duplicated over all files · 6,000 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 58 generated files: doc/_static/onthispage_mjwarp.js, doc/includes/references.h, doc/js/linenumbers.js, include/mujoco/experimental/usd/mjcPhysics/actuator.h, include/mujoco/experimental/usd/mjcPhysics/api.h, include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h, include/mujoco/experimental/usd/mjcPhysics/equalityAPI.h, include/mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h, include/mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h, include/mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h, include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h, include/mujoco/experimental/usd/mjcPhysics/jointAPI.h, include/mujoco/experimental/usd/mjcPhysics/keyframe.h, include/mujoco/experimental/usd/mjcPhysics/materialAPI.h, include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h, include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h, include/mujoco/experimental/usd/mjcPhysics/siteAPI.h, include/mujoco/experimental/usd/mjcPhysics/tendon.h, include/mujoco/experimental/usd/mjcPhysics/tokens.h, mjx/mujoco/mjx/warp/bvh.py and 38 more.

Largest clones in the code

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python14475,6204907,95910.52%
cpp169110,0803293,2062.91%
c4880,7672772,6763.31%
c-header20240,424648882.2%
csharp758,56510941.1%
bash81,73451468.42%
objectivec56021162.66%
typescript25321132.44%
javascript1376000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
cpp311255,9133,17431,83512.44%
markup46989,7761,20141,39746.11%
python252119,07075413,61911.44%
c4981,6482812,7133.32%
c-header22661,6042106,50410.56%
rest4554,2031962,2294.11%
csharp13224,4271151,3175.39%
cmake677,678151,27716.63%
markdown426,049141191.97%
typescript83,85711982.54%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 10, 2026#317,017 (+574)1,682715,6516,00014.19%4.71%E 34.5a937a4f

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