ravindu644/Droidspaces-OSS
A lightweight, LXC-like container runtime for Android and Linux. Run full Linux distributions natively with zero performance penalty
Kotlin★ 3,158+135 that day#4 on trending
C60.7/100
Duplication60
6.3% in c, kotlin, bash, c-header, python, java, nix, makefile, prologDead coden/a
the languages dead code reads are under 5% of the codeComplexity61
36.1% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
6.53%duplicated code · 3,729 of 57,141 lines
460clones in code
316code files of 490 scanned
5.44%duplicated over all files · 520 clones
Most complex files
- src/config/parse.c155 cx
- src/main.c140 cx
- Android/app/src/main/assets/sparsemgr.sh129 cx
- src/daemon/session.c126 cx
- src/config/load.c124 cx
- Android/app/src/main/java/com/droidspaces/app/util/ContainerManager.kt123 cx
- src/monitor/monitor.c121 cx
- src/cli/options.c115 cx
- src/boot/init.c112 cx
- src/container/registry.c112 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.
Largest clones in the code
- 8 lines in 90 placesc164 tokenssrc/android/android.c:1–8src/android/firmware.c:1–8src/android/helpers.c:1–8src/android/socket.c:1–8src/android/spawn.c:1–8and 85 more
1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#define _GNU_SOURCE1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#include "droidspaces.h" - 8 lines in 30 placesc-header165 tokenssrc/android/internal.h:1–8src/cgroup/internal.h:1–8src/config/internal.h:1–8src/container/internal.h:1–8src/daemon/internal.h:1–8and 25 more
1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#ifndef DS_ANDROID_INTERNAL_H1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#ifndef DS_CGROUP_INTERNAL_H - 6 lines in 73 placesc52 tokenssrc/android/anland/anland.c:22–27src/android/anland/display_daemon.c:24–29src/android/helpers.c:5–10src/android/socket.c:5–10src/android/spawn.c:5–9and 68 more
22 * SPDX-License-Identifier: GPL-3.0-or-later 23 */ 24 25#include "droidspaces.h" 26 27#include "display_daemon.h"
7 more
- 6 lines in 30 placesc58 tokens
- 16 lines in 8 placesc123 tokens
- 7 lines in 17 placesc53 tokens
- 18 lines in 7 placesc126 tokens
- 8 lines in 15 placesc52 tokens
- 6 lines in 14 placesc51 tokens
- 7 lines in 6 placesc113 tokens
Largest clones over all files, tests and data included
- 8 lines in 90 placesc164 tokenssrc/android/android.c:1–8src/android/firmware.c:1–8src/android/helpers.c:1–8src/android/socket.c:1–8src/android/spawn.c:1–8and 85 more
1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#define _GNU_SOURCE1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#include "droidspaces.h" - 8 lines in 30 placesc-header165 tokenssrc/android/internal.h:1–8src/cgroup/internal.h:1–8src/config/internal.h:1–8src/container/internal.h:1–8src/daemon/internal.h:1–8and 25 more
1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#ifndef DS_ANDROID_INTERNAL_H1/* 2 * Droidspaces v7 - High-performance Container Runtime 3 * 4 * Copyright (C) 2026 ravindu644 <[email protected]> 5 * SPDX-License-Identifier: GPL-3.0-or-later 6 */ 7 8#ifndef DS_CGROUP_INTERNAL_H - 6 lines in 73 placesc52 tokenssrc/android/anland/anland.c:22–27src/android/anland/display_daemon.c:24–29src/android/helpers.c:5–10src/android/socket.c:5–10src/android/spawn.c:5–9and 68 more
22 * SPDX-License-Identifier: GPL-3.0-or-later 23 */ 24 25#include "droidspaces.h" 26 27#include "display_daemon.h" - 6 lines in 30 placesc58 tokens
- 16 lines in 8 placesc123 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 107 | 25,999 | 348 | 2,845 | 10.94% |
| kotlin | 152 | 25,083 | 79 | 623 | 2.48% |
| c-header | 33 | 2,019 | 31 | 245 | 12.13% |
| java | 6 | 1,097 | 2 | 16 | 1.46% |
| bash | 16 | 2,785 | 0 | 0 | 0% |
| python | 1 | 148 | 0 | 0 | 0% |
| prolog | 1 | 10 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| c | 110 | 26,053 | 349 | 2,865 | 11% |
| kotlin | 153 | 25,097 | 79 | 623 | 2.48% |
| markup | 83 | 11,241 | 48 | 357 | 3.18% |
| c-header | 33 | 2,019 | 31 | 245 | 12.13% |
| bash | 27 | 3,096 | 5 | 100 | 3.23% |
| markdown | 37 | 8,445 | 2 | 13 | 0.15% |
| java | 6 | 1,097 | 2 | 16 | 1.46% |
| ini | 6 | 82 | 2 | 31 | 37.8% |
| python | 8 | 1,568 | 1 | 11 | 0.7% |
| makefile | 3 | 593 | 1 | 153 | 25.8% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Dec 5, 2026 | #4 | 3,158 (+135) | 490 | 81,148 | 520 | 5.44% | 6.53% | C 60.7 | 624c9c5 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.