3 views
p1neappleXpress/OpenFlux
Network stack research tool. TCP tunnel with pluggable transports.
Go★ 1,428+355 that day#10 on trending
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" 10First 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
- 8 lines in 2 placesgo87 tokens
- 11 lines in 2 placesgo76 tokens
- 12 lines in 2 placesgo72 tokens
- 13 lines in 2 placesgo67 tokens
- 6 lines in 2 placesgo60 tokens
- 10 lines in 2 placesgo57 tokens
- 7 lines in 2 placesgo57 tokens
Largest clones over all files, tests and data included
- 221 lines in 2 placesgo1,622 tokens
1package tunnel 2 3import ( 4 "fmt" 5 "net" 6 "sync" 7 "sync/atomic" 8 "syscall" 9 "time" 10First 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.
- 20 lines in 2 placesbashdocs and examples108 tokens
- 8 lines in 2 placesgo87 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| go | 25 | 5,313 | 12 | 336 | 6.32% |
| bash | 13 | 845 | 0 | 0 | 0% |
| swift | 5 | 615 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| go | 27 | 5,566 | 13 | 345 | 6.2% |
| bash | 15 | 871 | 1 | 6 | 0.69% |
| swift | 5 | 615 | 0 | 0 | 0% |
| markdown | 4 | 492 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| yaml | 2 | 155 | 0 | 0 | 0% |
| text | 2 | 42 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 13, 2026 | #10 | 1,428 (+355) | 56 | 7,915 | 14 | 4.43% | 4.84% | — | 4f1bdb5 |
| Sep 12, 2026 | #11 | 1,198 (+198) | 52 | 7,510 | 14 | 4.67% | 5.02% | — | 6443d42 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.