3 views
alphaXiv/OpenResearch
Turn your coding agents into research agents
Rust★ 5,078+939 that day#5 on trending
2.62%duplicated code · 3,430 of 130,820 lines
319clones in code
265code files of 430 scanned
2.56%duplicated over all files · 355 clones
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: ui/src/routeTree.gen.ts.
Largest clones in the code
- 26 lines in 7 placesrust149 tokenssrc/local/hf.rs:128–153src/local/k8s.rs:172–197src/local/localrun.rs:140–165src/local/modal.rs:132–157src/local/ray.rs:145–170and 2 more
128 let _ = hf::cancel_job(&token, &namespace, &job.id).await; 129 return Err(error); 130} 131let run = StoredRun { 132 id: run_id.clone(), 133 experiment_id: exp.id.clone(), 134 project_id: project.id.clone(), 135 status: "starting".to_string(), 136 backend_json: descriptor.to_json(), 137 command: run_command,First 10 of 26 lines.
- 26 lines in 5 placesrust140 tokenssrc/commands/supervise.rs:220–245src/commands/supervise.rs:381–406src/commands/supervise.rs:525–550src/commands/supervise.rs:667–692src/commands/supervise.rs:991–1016
220 job_id: String, 221 path: std::path::PathBuf, 222 run_id: String, 223 done: tokio::sync::watch::Receiver<bool>, 224) { 225 let mut log_file = match std::fs::OpenOptions::new() 226 .create(true) 227 .write(true) 228 .truncate(true) 229 .open(&path)First 10 of 26 lines.
- 10 lines in 4 placesrust137 tokens
89 .ok_or_else(|| anyhow!("Local project {} not found.", exp.project_id))?; 90if let Some(w) = crate::local::experiments::legacy_root_warning(&project, &exp) { 91 eprintln!("{w}"); 92} 93let run_command = Some(exp.run_command.clone()) 94 .filter(|c| !c.trim().is_empty()) 95 .or_else(|| project.run_command.clone().filter(|c| !c.trim().is_empty())) 96 .ok_or_else(|| anyhow!("{}", crate::invocation::no_run_command(&project.id)))?; 97 98let manifest = {72 .ok_or_else(|| anyhow!("Local project {} not found.", exp.project_id))?; 73if let Some(w) = crate::local::experiments::legacy_root_warning(&project, &exp) { 74 eprintln!("{w}"); 75} 76let run_command = Some(exp.run_command.clone()) 77 .filter(|c| !c.trim().is_empty()) 78 .or_else(|| project.run_command.clone().filter(|c| !c.trim().is_empty())) 79 .ok_or_else(|| anyhow!("{}", crate::invocation::no_run_command(&project.id)))?; 80 81let script =
7 more
- 9 lines in 6 placesrust56 tokens
- 15 lines in 3 placesrust136 tokens
- 8 lines in 3 placesrust136 tokens
- 6 lines in 6 placesrust51 tokens
- 10 lines in 5 placesrust62 tokens
- 36 lines in 2 placesrust238 tokens
- 31 lines in 2 placesrust222 tokens
Largest clones over all files, tests and data included
- 185 lines in 2 placespythondocs and examples1,402 tokens
1""" 2Supervised fine-tuning (SFT) the model. 3Run as: 4 5python -m scripts.chat_sft 6 7Or torchrun for training: 8 9torchrun --standalone --nproc_per_node=8 -m scripts.chat_sft -- --device-batch-size=16 10"""First 10 of 185 lines.
- 237 lines in 2 placespythondocs and examples1,358 tokens
263# Stopping condition to respect num_iterations, if given 264it += 1 265if 0 < args.num_iterations <= it and split == "train": 266 last_step = True 267 268# Update progress tracking (based on consumed, not cursor, to account for buffering) 269if split == "train": 270 current_epoch = epoch 271 if args.num_iterations > 0: 272 approx_progress = it / args.num_iterationsFirst 10 of 237 lines.
- 26 lines in 7 placesrust149 tokenssrc/local/hf.rs:128–153src/local/k8s.rs:172–197src/local/localrun.rs:140–165src/local/modal.rs:132–157src/local/ray.rs:145–170and 2 more
128 let _ = hf::cancel_job(&token, &namespace, &job.id).await; 129 return Err(error); 130} 131let run = StoredRun { 132 id: run_id.clone(), 133 experiment_id: exp.id.clone(), 134 project_id: project.id.clone(), 135 status: "starting".to_string(), 136 backend_json: descriptor.to_json(), 137 command: run_command,First 10 of 26 lines.
- 93 lines in 2 placespythondocs and examples569 tokens
- 26 lines in 5 placesrust140 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| rust | 115 | 94,587 | 286 | 3,068 | 3.24% |
| tsx | 80 | 25,761 | 30 | 328 | 1.27% |
| javascript | 8 | 1,569 | 2 | 22 | 1.4% |
| typescript | 45 | 6,792 | 1 | 12 | 0.18% |
| python | 3 | 1,005 | 0 | 0 | 0% |
| bash | 12 | 906 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| powershell | 1 | 26 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| rust | 115 | 94,587 | 286 | 3,068 | 3.24% |
| tsx | 80 | 25,761 | 30 | 328 | 1.27% |
| python | 44 | 9,641 | 19 | 722 | 7.49% |
| markup | 9 | 9,368 | 11 | 138 | 1.47% |
| bash | 27 | 1,437 | 4 | 86 | 5.98% |
| javascript | 33 | 4,606 | 3 | 33 | 0.72% |
| typescript | 46 | 7,062 | 1 | 12 | 0.17% |
| yaml | 8 | 922 | 1 | 11 | 1.19% |
| json | 12 | 7,417 | 0 | 0 | 0% |
| csv | 1 | 6,502 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 18, 2026 | #5 | 5,078 (+939) | 430 | 172,119 | 355 | 2.56% | 2.62% | — | 69768ff |
| Sep 17, 2026 | #9 | 4,569 (+1,017) | 430 | 171,974 | 355 | 2.56% | 2.62% | — | 10ad2e5 |
| Sep 16, 2026 | #5 | 3,567 (+531) | 427 | 169,859 | 352 | 2.58% | 2.62% | — | 955ebe7 |
| Sep 14, 2026 | #8 | 2,219 (+289) | 415 | 162,243 | 345 | 2.67% | 2.7% | — | 5d70426 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.