[{"data":1,"prerenderedAt":704},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-shiyu-coder\u002FKronos":249,"page-views-\u002Ftrending\u002Fshiyu-coder\u002FKronos":702},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"name":250,"url":251,"appearances":252,"latest":268},"shiyu-coder\u002FKronos","https:\u002F\u002Fgithub.com\u002Fshiyu-coder\u002FKronos",[253],{"date":254,"rank":255,"stars":256,"starsToday":257,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-10-20",8,41825,363,"67b630e67f6a18c9e9be918d9b4337c960db1e9a",87,81938,108,28813,35.16,6.87,25,55.2,"C",{"date":254,"generatedAt":269,"name":250,"url":251,"description":270,"language":271,"stars":256,"starsToday":257,"defaultBranch":272,"headSha":258,"durationMs":273,"total":274,"formats":278,"topClones":321,"code":444,"health":592,"complexity":622,"deadCode":668},"2026-10-20T05:29:47.500Z","Kronos: A Foundation Model for the Language of Financial Markets","Python","master",1212,{"sources":259,"lines":260,"tokens":275,"clones":261,"duplicatedLines":262,"duplicatedTokens":276,"percentage":263,"percentageTokens":277},355922,99382,27.92,[279,286,293,300,305,308,312,315,318],{"format":280,"sources":281,"lines":282,"clones":283,"duplicatedLines":284,"percentage":285},"python",29,11209,64,1521,13.57,{"format":287,"sources":288,"lines":289,"clones":290,"duplicatedLines":291,"percentage":292},"json",34,65258,43,27285,41.81,{"format":294,"sources":295,"lines":296,"clones":297,"duplicatedLines":298,"percentage":299},"markdown",4,694,1,7,1.01,{"format":301,"sources":302,"lines":303,"clones":304,"duplicatedLines":304,"percentage":304},"csv",3,2519,0,{"format":306,"sources":297,"lines":307,"clones":304,"duplicatedLines":304,"percentage":304},"markup",1238,{"format":309,"sources":310,"lines":311,"clones":304,"duplicatedLines":304,"percentage":304},"bash",13,772,{"format":313,"sources":297,"lines":314,"clones":304,"duplicatedLines":304,"percentage":304},"perl",168,{"format":316,"sources":297,"lines":317,"clones":304,"duplicatedLines":304,"percentage":304},"yaml",71,{"format":319,"sources":297,"lines":320,"clones":304,"duplicatedLines":304,"percentage":304},"text",9,[322,355,378,401,409,414,423,429,434,439],{"format":287,"lines":323,"tokens":324,"first":325,"others":329,"copies":298,"excerpt":342,"kind":354},1088,3618,{"name":326,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_175135.json",1127,2214,[330,332,334,336,338,340],{"name":331,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_175909.json",{"name":333,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_180632.json",{"name":335,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_180745.json",{"name":337,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_180806.json",{"name":339,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181012.json",{"name":341,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181139.json",{"lines":343,"total":323},[344,345,346,347,348,349,350,351,352,353],"  }","],","\"actual_data\": [","  {","    \"timestamp\": \"2025-08-14T10:35:00\",","    \"open\": 123397.21,","    \"high\": 123588.0,","    \"low\": 123397.2,","    \"close\": 123479.47,","    \"volume\": 47.38644,","data",{"format":287,"lines":323,"tokens":324,"first":356,"others":358,"copies":369,"excerpt":370,"kind":354},{"name":357,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181240.json",[359,361,363,365,367],{"name":360,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181434.json",{"name":362,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181513.json",{"name":364,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181612.json",{"name":366,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181648.json",{"name":368,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_181800.json",6,{"lines":371,"total":323},[344,345,346,347,372,373,374,375,376,377],"    \"timestamp\": \"2025-08-15T15:45:00\",","    \"open\": 118810.01,","    \"high\": 118842.0,","    \"low\": 118770.0,","    \"close\": 118807.72,","    \"volume\": 27.15622,",{"format":287,"lines":379,"tokens":380,"first":381,"others":385,"copies":302,"excerpt":390,"kind":354},2207,7455,{"name":382,"start":383,"end":384},"webui\u002Fprediction_results\u002Fprediction_20250826_170831.json",33,2239,[386,388],{"name":387,"start":383,"end":384},"webui\u002Fprediction_results\u002Fprediction_20250826_171720.json",{"name":389,"start":383,"end":384},"webui\u002Fprediction_results\u002Fprediction_20250826_171913.json",{"lines":391,"total":379},[392,393,394,395,396,344,397,398,399,400],"    \"max\": 357.3","  },","  \"close\": {","    \"min\": 342.2,","    \"max\": 357.7","},","\"last_values\": {","  \"open\": 347.2,","  \"high\": 347.4,",{"format":287,"lines":379,"tokens":402,"first":403,"others":405,"copies":408,"kind":354},7335,{"name":404,"start":383,"end":384},"webui\u002Fprediction_results\u002Fprediction_20250826_174410.json",[406],{"name":407,"start":383,"end":384},"webui\u002Fprediction_results\u002Fprediction_20250826_174809.json",2,{"format":287,"lines":379,"tokens":402,"first":410,"others":411,"copies":408,"kind":354},{"name":331,"start":383,"end":384},[412],{"name":413,"start":383,"end":384},"webui\u002Fprediction_results\u002Fprediction_20250826_180308.json",{"format":287,"lines":415,"tokens":416,"first":417,"others":420,"copies":408,"kind":354},1091,3627,{"name":418,"start":419,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_172740.json",1124,[421],{"name":422,"start":419,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_173322.json",{"format":287,"lines":323,"tokens":324,"first":424,"others":426,"copies":408,"kind":354},{"name":425,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_163800.json",[427],{"name":428,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_164030.json",{"format":287,"lines":323,"tokens":324,"first":430,"others":432,"copies":408,"kind":354},{"name":431,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_164422.json",[433],{"name":382,"start":327,"end":328},{"format":287,"lines":323,"tokens":324,"first":435,"others":437,"copies":408,"kind":354},{"name":436,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_172153.json",[438],{"name":418,"start":327,"end":328},{"format":287,"lines":323,"tokens":324,"first":440,"others":442,"copies":408,"kind":354},{"name":441,"start":327,"end":328},"webui\u002Fprediction_results\u002Fprediction_20250826_173455.json",[443],{"name":404,"start":327,"end":328},{"sources":265,"lines":445,"tokens":446,"clones":447,"duplicatedLines":448,"duplicatedTokens":449,"percentage":264,"percentageTokens":450,"formats":451,"topClones":460,"generated":590},5414,33387,27,372,2609,7.81,[452,456,459],{"format":280,"sources":453,"lines":454,"clones":447,"duplicatedLines":448,"percentage":455},14,4512,8.24,{"format":309,"sources":457,"lines":458,"clones":304,"duplicatedLines":304,"percentage":304},10,734,{"format":313,"sources":297,"lines":314,"clones":304,"duplicatedLines":304,"percentage":304},[461,486,508,522,533,542,553,561,571,580],{"format":280,"lines":462,"tokens":463,"first":464,"others":468,"copies":408,"excerpt":473,"kind":485},41,236,{"name":465,"start":466,"end":467},"finetune_csv\u002Ffinetune_base_model.py",199,239,[469],{"name":470,"start":471,"end":472},"finetune_csv\u002Ffinetune_tokenizer.py",111,151,{"lines":474,"total":462},[475,476,477,478,479,480,481,482,483,484],"    data_type='val',","    lookback_window=config.lookback_window,","    predict_window=config.predict_window,","    clip=config.clip,","    seed=config.seed + 1,","    train_ratio=config.train_ratio,","    val_ratio=config.val_ratio,","    test_ratio=config.test_ratio",")","","code",{"format":280,"lines":487,"tokens":488,"first":489,"others":492,"copies":408,"excerpt":496,"kind":485},24,227,{"name":490,"start":491,"end":471},"finetune_csv\u002Ftrain_sequential.py",88,[493],{"name":490,"start":494,"end":495},174,197,{"lines":497,"total":487},[498,499,500,501,502,503,504,505,506,507],"    print(\"pre_trained_tokenizer=False, randomly initializing Tokenizer architecture\")","import json","cfg_path = os.path.join(self.config.pretrained_tokenizer_path, 'config.json')","with open(cfg_path, 'r') as f:","    arch = json.load(f)","tokenizer = KronosTokenizer(","    d_in=arch.get('d_in', 6),","    d_model=arch.get('d_model', 256),","    n_heads=arch.get('n_heads', 4),","    ff_dim=arch.get('ff_dim', 512),",{"format":280,"lines":509,"tokens":510,"first":511,"others":514,"copies":408,"excerpt":517,"kind":485},22,210,{"name":470,"start":512,"end":513},311,332,[515],{"name":490,"start":516,"end":471},90,{"lines":518,"total":509},[519,501,502,503,504,505,506,507,520,521],"cfg_path = os.path.join(config.pretrained_tokenizer_path, 'config.json')","    n_enc_layers=arch.get('n_enc_layers', 4),","    n_dec_layers=arch.get('n_dec_layers', 4),",{"format":280,"lines":523,"tokens":524,"first":525,"others":528,"copies":408,"kind":485},23,135,{"name":526,"start":527,"end":510},"finetune\u002Ftrain_predictor.py",188,[529],{"name":530,"start":531,"end":532},"finetune\u002Ftrain_tokenizer.py",226,248,{"format":280,"lines":453,"tokens":534,"first":535,"others":538,"copies":408,"kind":485},126,{"name":465,"start":536,"end":537},425,438,[539],{"name":490,"start":540,"end":541},211,224,{"format":280,"lines":543,"tokens":544,"first":545,"others":549,"copies":408,"kind":485},12,116,{"name":546,"start":547,"end":548},"webui\u002Fapp.py",510,521,[550],{"name":546,"start":551,"end":552},526,536,{"format":280,"lines":447,"tokens":261,"first":554,"others":557,"copies":408,"kind":485},{"name":465,"start":555,"end":556},146,172,[558],{"name":470,"start":559,"end":560},58,84,{"format":280,"lines":310,"tokens":562,"first":563,"others":567,"copies":408,"kind":485},100,{"name":564,"start":565,"end":566},"model\u002Fmodule.py",316,328,[568],{"name":564,"start":569,"end":570},357,369,{"format":280,"lines":509,"tokens":572,"first":573,"others":576,"copies":408,"kind":485},98,{"name":465,"start":574,"end":575},349,370,[577],{"name":470,"start":578,"end":579},263,284,{"format":280,"lines":581,"tokens":582,"first":583,"others":586,"copies":408,"kind":485},11,96,{"name":526,"start":584,"end":585},137,147,[587],{"name":465,"start":588,"end":589},315,326,{"files":304,"minified":304,"sample":591},[],{"score":266,"grade":267,"size":593,"dimensions":597},{"lines":594,"files":595,"class":596},12063,39,"M",[598,607,615],{"id":599,"source":600,"value":601,"adjusted":602,"lines":284,"halfLife":603,"formats":604,"excluded":605,"weight":297,"score":606},"duplication","jscpd",12.6,11.3,8.5,[280,309,313],[306,319,354],39.7,{"id":608,"source":600,"value":609,"adjusted":610,"lines":290,"halfLife":611,"coverage":612,"weight":613,"score":614},"dead-code",0.4,0.8,7.5,92.8,0.928,92.9,{"id":616,"source":600,"value":617,"adjusted":618,"lines":619,"halfLife":620,"weight":297,"score":621},"complexity",59.4,53.9,7160,50,47.4,{"total":623,"mean":624,"files":625},1275,32.7,[626,630,635,639,644,649,653,657,660,665],{"path":627,"complexity":556,"lines":628,"bytes":629},"examples\u002Fprediction_new_GUI.py",1625,65400,{"path":631,"complexity":632,"lines":633,"bytes":634},"examples\u002Fprediction_new.py",138,1333,52593,{"path":546,"complexity":636,"lines":637,"bytes":638},103,708,30464,{"path":640,"complexity":641,"lines":642,"bytes":643},"examples\u002Fget_date_new.py",80,661,24268,{"path":645,"complexity":646,"lines":647,"bytes":648},"examples\u002Fget_akshare_date_2024-2025_x.py",76,629,22761,{"path":564,"complexity":650,"lines":651,"bytes":652},69,562,23426,{"path":465,"complexity":654,"lines":655,"bytes":656},59,468,19127,{"path":490,"complexity":654,"lines":658,"bytes":659},361,15358,{"path":661,"complexity":662,"lines":663,"bytes":664},"examples\u002Frun_backtest_kronos.py",51,455,16811,{"path":470,"complexity":620,"lines":666,"bytes":667},358,13741,{"percentage":669,"findings":487,"files":670,"byCategory":671,"largest":676},0.38,30,[672,674],{"category":673,"count":297},"unused-export",{"category":675,"count":523},"unused-import",[677,682,685,687,689,692,694,696,698,701],{"category":673,"path":678,"name":679,"line":680,"lines":681},"finetune\u002Futils\u002Ftraining_utils.py","reduce_tensor",83,20,{"category":675,"path":683,"name":684,"line":297,"lines":297},"finetune\u002Fconfig.py","os",{"category":675,"path":530,"name":686,"line":369,"lines":297},"argparse",{"category":675,"path":530,"name":688,"line":298,"lines":297},"datetime",{"category":675,"path":465,"name":690,"line":691,"lines":297},"pickle",5,{"category":675,"path":465,"name":693,"line":457,"lines":297},"nn",{"category":675,"path":465,"name":695,"line":310,"lines":297},"gmtime",{"category":675,"path":465,"name":697,"line":310,"lines":297},"strftime",{"category":675,"path":465,"name":699,"line":700,"lines":297},"KronosPredictor",21,{"category":675,"path":470,"name":695,"line":581,"lines":297},{"\u002Ftrending\u002Fshiyu-coder\u002FKronos":703},{"views":304,"visits":304},1792485017307]