3 views

p1neappleXpress/OpenFlux

Network stack research tool. TCP tunnel with pluggable transports.

Go★ 1,428+355 that day#10 on trending

Analyzed September 13, 2026 at 4f1bdb5 (main) with jscpd 5.4.0 in 0.0s. Code duplication went from 5.02% on Sep 12 to 4.84% on Sep 13.

4.84%duplicated code · 336 of 6,947 lines
12clones in code
44code files of 56 scanned
4.43%duplicated over all files · 14 clones

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

Largest clones in the code

  • 221 lines in 2 placesgo1,622 tokens
    1package tunnel
    2
    3import (
    4    "fmt"
    5    "net"
    6    "sync"
    7    "sync/atomic"
    8    "syscall"
    9    "time"
    10
    

    First 10 of 221 lines.

  • 17 lines in 2 placesgo178 tokens
    114copy(pktCopy[16:20], []byte{10, 10, 10, 2})
    115
    116pktCopy[10] = 0
    117pktCopy[11] = 0
    118ipChecksumVal := network.IPChecksum(pktCopy[:20])
    119pktCopy[10] = byte(ipChecksumVal >> 8)
    120pktCopy[11] = byte(ipChecksumVal & 0xFF)
    121
    122ipHeaderLen := int(pktCopy[0]&0x0F) * 4
    123tcpHeader := pktCopy[ipHeaderLen:]
    

    First 10 of 17 lines.

  • 17 lines in 2 placesgo154 tokens
    346h.msgHandler = func(text string) {
    347    var data map[string]interface{}
    348    json.Unmarshal([]byte(text), &data)
    349
    350    if h.localID == 0 {
    351        if conv, ok := data["conversation"].(map[string]interface{}); ok {
    352            if parts, ok := conv["participants"].([]interface{}); ok {
    353                for _, p := range parts {
    354                    part := p.(map[string]interface{})
    355                    roles, _ := part["roles"].([]interface{})
    

    First 10 of 17 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
go255,313123366.32%
bash13845000%
swift5615000%
perl1174000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
go275,566133456.2%
bash15871160.69%
swift5615000%
markdown4492000%
perl1174000%
yaml2155000%
text242000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Sep 13, 2026#101,428 (+355)567,915144.43%4.84%—4f1bdb5
Sep 12, 2026#111,198 (+198)527,510144.67%5.02%—6443d42

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