shiyu-coder/Kronos

Kronos: A Foundation Model for the Language of Financial Markets

Python★ 41,825+363 that day#8 on trending

Analyzed October 20, 2026 at 67b630e (master) with jscpd v5 in 1.2s.

C55.2/100
Project health12,063 lines of code (M)
Duplication40
12.6% in python, bash, perl
Dead code93
0.4%
Complexity47
59.4%

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.87%duplicated code · 372 of 5,414 lines
27clones in code
25code files of 87 scanned
35.16%duplicated over all files · 108 clones

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

Largest clones in the code

  • 41 lines in 2 placespython236 tokens
    199    data_type='val',
    200    lookback_window=config.lookback_window,
    201    predict_window=config.predict_window,
    202    clip=config.clip,
    203    seed=config.seed + 1,
    204    train_ratio=config.train_ratio,
    205    val_ratio=config.val_ratio,
    206    test_ratio=config.test_ratio
    207)
    208
    

    First 10 of 41 lines.

  • 24 lines in 2 placespython227 tokens
    88    print("pre_trained_tokenizer=False, randomly initializing Tokenizer architecture")
    89import json
    90cfg_path = os.path.join(self.config.pretrained_tokenizer_path, 'config.json')
    91with open(cfg_path, 'r') as f:
    92    arch = json.load(f)
    93tokenizer = KronosTokenizer(
    94    d_in=arch.get('d_in', 6),
    95    d_model=arch.get('d_model', 256),
    96    n_heads=arch.get('n_heads', 4),
    97    ff_dim=arch.get('ff_dim', 512),
    

    First 10 of 24 lines.

  • 22 lines in 2 placespython210 tokens
    311cfg_path = os.path.join(config.pretrained_tokenizer_path, 'config.json')
    312with open(cfg_path, 'r') as f:
    313    arch = json.load(f)
    314tokenizer = KronosTokenizer(
    315    d_in=arch.get('d_in', 6),
    316    d_model=arch.get('d_model', 256),
    317    n_heads=arch.get('n_heads', 4),
    318    ff_dim=arch.get('ff_dim', 512),
    319    n_enc_layers=arch.get('n_enc_layers', 4),
    320    n_dec_layers=arch.get('n_dec_layers', 4),
    

    First 10 of 22 lines.

7 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
python144,512273728.24%
bash10734000%
perl1168000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
python2911,209641,52113.57%
json3465,2584327,28541.81%
markdown4694171.01%
csv32,519000%
markup11,238000%
bash13772000%
perl1168000%
yaml171000%
text19000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Oct 20, 2026#841,825 (+363)8781,93810835.16%6.87%C 55.267b630e

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