multimodal-art-projection/YuE
YuE2: frontier music generation with symbolic planning, zero-shot covers, and agentic music editing.
Python★ 8,570+559 that day#3 on trending
0.39%duplicated code · 22 of 5,654 lines
2clones in code
30code files of 90 scanned
2.1%duplicated over all files · 15 clones
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 14 lines in 2 placespython92 tokens
276_hf_fields = frozenset({ 277 "model_type", "architectures", "auto_map", "transformers_version", 278 "dtype", "torch_dtype", "return_dict", "output_hidden_states", 279 "output_attentions", "use_cache", "tie_word_embeddings", "torchscript", 280 "is_decoder", "is_encoder_decoder", "add_cross_attention", 281 "bos_token_id", "eos_token_id", "pad_token_id", "decoder_start_token_id", 282 "attn_implementation", 283}) 284 285def to_dict(self):First 10 of 14 lines.
- 8 lines in 2 placespython51 tokens
122 abc_ids = tokenizer.encode(request.abc) 123 abc_ids = list(abc_ids) 124 if any(type(token) is not int or not 0 <= token < EOD for token in abc_ids): 125 raise ValueError("ABC IDs must remain inside the ordinary text vocabulary") 126 return base + [ABC_START] + abc_ids + [ABC_END, MUSIC_START] 127 128 129def negative_prefix(request, tokenizer, abc_ids=None):134 raise ValueError("Symbolic CFG must retain the exact positive-branch ABC IDs") 135 abc_ids = list(abc_ids) 136 if any(type(token) is not int or not 0 <= token < EOD for token in abc_ids): 137 raise ValueError("ABC IDs must remain inside the ordinary text vocabulary") 138 return base + [ABC_START] + abc_ids + [ABC_END, MUSIC_START] 139 140 141def chunk_ranges(frames, prefix_tokens, context=CONTEXT):
Largest clones over all files, tests and data included
- 26 lines in 2 placesmarkupmarkup240 tokens
6<g transform="translate(22 24) scale(0.72)"><svg xmlns="http://www.w3.org/2000/svg" width="208" height="66.56" viewBox="0 0 150 48" version="1.1" x="0" y="0"> 7 8 <defs /> 9 <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 10 <g transform="translate(-85.000000, -394.000000)" fill="#003366"> 11 <g transform="translate(85.000000, 394.000000)"> 12 <path d="M55.3086103,18.6756346 L57.4121845,18.6756346 L57.4121845,36.9408158 L55.3086103,36.9408158 L55.3086103,28.5521722 L44.3546323,28.5521… 13 <g> 14 <path d="M21.8056633,9.75708916 C22.0307714,9.47522304 22.1096554,8.97402083 22.1096554,8.97402083 L8.60990367,8.97402083 C8.60990367,8.974… 15 <path d="M21.022114,10.9041785 C21.2731961,10.6819564 21.5262022,10.2307782 21.5262022,10.2307782 L9.16834491,10.2307782 C9.16834491,10.230…First 10 of 26 lines.
- 17 lines in 2 placestxtdocs and examples191 tokens
5Permission is hereby granted, free of charge, to any person obtaining a copy 6of this software and associated documentation files (the "Software"), to deal 7in the Software without restriction, including without limitation the rights 8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9copies of the Software, and to permit persons to whom the Software is 10furnished to do so, subject to the following conditions: 11 12The above copyright notice and this permission notice shall be included in all 13copies or substantial portions of the Software. 14First 10 of 17 lines.
- 16 lines in 2 placesmarkupmarkup167 tokens
39<g transform="translate(151 158)"><svg xmlns="http://www.w3.org/2000/svg" width="94" height="28" viewBox="61 158 282 84" fill="none" x="0" y="6"> 40<path d="M69 220H88V234H69V220Z" fill="#FE655D" /> 41<path d="M69 202H88V216H69V202Z" fill="#FE7E77" /> 42<path d="M69 184H88V198H69V184Z" fill="#FF9791" /> 43<path d="M69 166H88V180H69V166Z" fill="#FFAFAB" /> 44<path d="M133 220H152V234H133V220Z" fill="#FE655D" /> 45<path d="M110 202H129V216H110V202Z" fill="#FE7E77" /> 46<path d="M92 184H110V198H92V184Z" fill="#FF9791" /> 47<path d="M133 202H152V216H133V202Z" fill="#FE7E77" /> 48<path d="M133 184H152V198H133V184Z" fill="#FF9791" />First 10 of 16 lines.
- 26 lines in 4 placesjsondocs and examples55 tokens
- 8 lines in 2 placesbashdocs and examples107 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 20 | 4,836 | 2 | 22 | 0.45% |
| bash | 9 | 644 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 40 | 7,109 | 6 | 64 | 0.9% |
| json | 2 | 955 | 4 | 104 | 10.89% |
| markup | 3 | 610 | 3 | 48 | 7.87% |
| bash | 19 | 754 | 1 | 8 | 1.06% |
| txt | 2 | 42 | 1 | 17 | 40.48% |
| markdown | 15 | 1,688 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| text | 4 | 73 | 0 | 0 | 0% |
| toml | 1 | 41 | 0 | 0 | 0% |
| yaml | 2 | 39 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 15, 2026 | #3 | 8,570 (+559) | 90 | 11,503 | 15 | 2.1% | 0.39% | — | 0edaf2f |
| Sep 14, 2026 | #6 | 7,887 (+487) | 90 | 11,503 | 15 | 2.1% | 0.39% | — | 88da114 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.