[{"data":1,"prerenderedAt":689},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-Usagi-org\u002Fai-goofish-monitor":249,"page-views-\u002Ftrending\u002FUsagi-org\u002Fai-goofish-monitor":687},[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":272},"Usagi-org\u002Fai-goofish-monitor","https:\u002F\u002Fgithub.com\u002FUsagi-org\u002Fai-goofish-monitor",[253,267],{"date":254,"rank":255,"stars":256,"starsToday":257,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":257,"healthScore":265,"healthGrade":266},"2026-11-04",6,16699,228,"77f8d75869acd65f9dba72731b95c7c49ea67bdf",317,32284,40,498,1.54,1,78.8,"B",{"date":268,"rank":269,"stars":270,"starsToday":271,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":257,"healthScore":265,"healthGrade":266},"2026-11-06",3,17802,240,{"date":268,"generatedAt":273,"name":250,"url":251,"description":274,"language":275,"stars":270,"starsToday":271,"defaultBranch":276,"headSha":258,"durationMs":277,"total":278,"formats":282,"topClones":333,"code":470,"health":568,"complexity":604,"deadCode":649},"2026-11-06T05:21:38.798Z","基于 Playwright 和AI实现的闲鱼多任务实时\u002F定时监控与智能分析系统，配备了功能完善的后台管理UI。帮助用户从闲鱼海量商品中，找到心仪产品。","Python","master",1111,{"sources":259,"lines":260,"tokens":279,"clones":261,"duplicatedLines":262,"duplicatedTokens":280,"percentage":263,"percentageTokens":281},178930,2831,1.58,[283,290,297,302,307,313,318,323,326,330],{"format":284,"sources":285,"lines":286,"clones":287,"duplicatedLines":288,"percentage":289},"python",103,15171,28,377,2.49,{"format":291,"sources":292,"lines":293,"clones":294,"duplicatedLines":295,"percentage":296},"typescript",87,6020,5,53,0.88,{"format":298,"sources":299,"lines":300,"clones":269,"duplicatedLines":301,"percentage":264},"html",31,2408,24,{"format":303,"sources":269,"lines":304,"clones":305,"duplicatedLines":301,"percentage":306},"yaml",222,2,10.81,{"format":308,"sources":309,"lines":310,"clones":264,"duplicatedLines":311,"percentage":312},"markdown",8,949,7,0.74,{"format":314,"sources":255,"lines":315,"clones":264,"duplicatedLines":316,"percentage":317},"bash",648,13,2.01,{"format":319,"sources":320,"lines":321,"clones":322,"duplicatedLines":322,"percentage":322},"vue",54,5645,0,{"format":324,"sources":269,"lines":325,"clones":322,"duplicatedLines":322,"percentage":322},"javascript",459,{"format":327,"sources":328,"lines":329,"clones":322,"duplicatedLines":322,"percentage":322},"json",9,253,{"format":331,"sources":269,"lines":332,"clones":322,"duplicatedLines":322,"percentage":322},"css",175,[334,356,376,404,413,424,433,443,451,461],{"format":284,"lines":335,"tokens":336,"first":337,"others":341,"copies":305,"excerpt":345,"kind":355},32,148,{"name":338,"start":339,"end":340},"src\u002Fdomain\u002Fmodels\u002Ftask.py",183,214,[342],{"name":338,"start":343,"end":344},251,282,{"lines":346,"total":335},[347,348,349,350,351,352,348,353,354,351],"@model_validator(mode=\"before\")","@classmethod","def normalize_legacy_keyword_payload(cls, values):","    return _normalize_payload_keywords(values)","","@field_validator(\"min_price\", \"max_price\", mode=\"before\")","def convert_price_to_str(cls, value):","    return _normalize_price_value(value)","code",{"format":284,"lines":311,"tokens":357,"first":358,"others":361,"copies":269,"excerpt":367,"kind":355},64,{"name":338,"start":359,"end":360},125,131,[362,364],{"name":338,"start":332,"end":363},181,{"name":338,"start":365,"end":366},306,312,{"lines":368,"total":311},[369,370,371,372,373,374,375],"account_state_file: Optional[str] = None","account_strategy: Literal[\"auto\", \"fixed\", \"rotate\"] = \"auto\"","free_shipping: bool = True","new_publish_option: Optional[str] = None","region: Optional[str] = None","decision_mode: Literal[\"ai\", \"keyword\"] = \"ai\"","keyword_rules: List[str] = Field(default_factory=list)",{"format":284,"lines":377,"tokens":378,"first":379,"others":383,"copies":269,"excerpt":390,"excerptSecond":400,"kind":403},10,60,{"name":380,"start":381,"end":382},"tests\u002Funit\u002Ftest_ai_handler_analysis.py",56,65,[384,387],{"name":380,"start":385,"end":386},101,110,{"name":380,"start":388,"end":389},227,236,{"lines":391,"total":377},[392,351,393,394,395,396,351,397,398,399],"    )","monkeypatch.setattr(ai_handler, \"client\", _build_fake_client(fake_create))","monkeypatch.setattr(ai_handler, \"MODEL_NAME\", \"fake-model\")","monkeypatch.setattr(ai_handler, \"ENABLE_RESPONSE_FORMAT\", True)","monkeypatch.setattr(app_config, \"ENABLE_RESPONSE_FORMAT\", True)","result = asyncio.run(","    ai_handler.get_ai_analysis(","        {\"商品信息\": {\"商品ID\": \"2\", \"商品标题\": \"测试商品2\"}},",{"lines":401,"total":377},[392,351,393,394,395,396,351,397,398,402],"        {\"商品信息\": {\"商品ID\": \"3\", \"商品标题\": \"测试商品3\"}},","tests",{"format":314,"lines":316,"tokens":405,"first":406,"others":409,"copies":305,"kind":355},119,{"name":407,"start":408,"end":336},"start.sh",136,[410],{"name":407,"start":411,"end":412},201,213,{"format":284,"lines":414,"tokens":415,"first":416,"others":420,"copies":305,"kind":355},18,118,{"name":417,"start":418,"end":419},"src\u002Finfrastructure\u002Fpersistence\u002Fsqlite_bootstrap.py",264,281,[421],{"name":422,"start":423,"end":295},"src\u002Fservices\u002Fprice_history_service.py",36,{"format":284,"lines":425,"tokens":426,"first":427,"others":429,"copies":305,"kind":355},17,111,{"name":338,"start":428,"end":304},206,[430],{"name":338,"start":431,"end":432},342,358,{"format":284,"lines":434,"tokens":435,"first":436,"others":439,"copies":305,"kind":355},20,109,{"name":338,"start":437,"end":438},176,195,[440],{"name":338,"start":441,"end":442},307,326,{"format":291,"lines":444,"tokens":445,"first":446,"others":448,"copies":305,"kind":355},19,95,{"name":447,"start":305,"end":434},"web-ui\u002Fsrc\u002Fcomponents\u002Fui\u002Fdialog\u002FDialogContent.vue",[449],{"name":450,"start":305,"end":434},"web-ui\u002Fsrc\u002Fcomponents\u002Fui\u002Fdialog\u002FDialogScrollContent.vue",{"format":284,"lines":425,"tokens":452,"first":453,"others":457,"copies":305,"kind":403},84,{"name":454,"start":455,"end":456},"tests\u002Funit\u002Ftest_ai_client.py",123,139,[458],{"name":380,"start":459,"end":460},126,143,{"format":284,"lines":462,"tokens":463,"first":464,"others":466,"copies":305,"kind":403},22,82,{"name":380,"start":465,"end":386},89,[467],{"name":380,"start":468,"end":469},184,205,{"sources":257,"lines":471,"tokens":472,"clones":434,"duplicatedLines":389,"duplicatedTokens":473,"percentage":264,"percentageTokens":474,"formats":475,"topClones":494,"generated":566},23602,134575,1582,1.18,[476,482,486,487,490,491,492],{"format":284,"sources":477,"lines":478,"clones":479,"duplicatedLines":480,"percentage":481},57,9919,11,146,1.47,{"format":291,"sources":483,"lines":484,"clones":294,"duplicatedLines":295,"percentage":485},79,4556,1.16,{"format":298,"sources":299,"lines":300,"clones":269,"duplicatedLines":301,"percentage":264},{"format":314,"sources":305,"lines":488,"clones":264,"duplicatedLines":316,"percentage":489},570,2.28,{"format":319,"sources":320,"lines":321,"clones":322,"duplicatedLines":322,"percentage":322},{"format":324,"sources":269,"lines":325,"clones":322,"duplicatedLines":322,"percentage":322},{"format":331,"sources":305,"lines":493,"clones":322,"duplicatedLines":322,"percentage":322},45,[495,501,508,524,528,532,536,540,549,556],{"format":284,"lines":335,"tokens":336,"first":496,"others":497,"copies":305,"excerpt":499,"kind":355},{"name":338,"start":339,"end":340},[498],{"name":338,"start":343,"end":344},{"lines":500,"total":335},[347,348,349,350,351,352,348,353,354,351],{"format":284,"lines":311,"tokens":357,"first":502,"others":503,"copies":269,"excerpt":506,"kind":355},{"name":338,"start":359,"end":360},[504,505],{"name":338,"start":332,"end":363},{"name":338,"start":365,"end":366},{"lines":507,"total":311},[369,370,371,372,373,374,375],{"format":314,"lines":316,"tokens":405,"first":509,"others":510,"copies":305,"excerpt":512,"kind":355},{"name":407,"start":408,"end":336},[511],{"name":407,"start":411,"end":412},{"lines":513,"total":316},[514,515,516,517,518,519,520,521,522,523],"Linux (Debian\u002FUbuntu) 解决办法:","1) 安装 Python 与 pip:","   sudo apt-get update","   sudo apt-get install -y python3 python3-pip python3-venv","2) 安装 Node.js 与 npm (LTS):","   curl -fsSL https:\u002F\u002Fdeb.nodesource.com\u002Fsetup_lts.x | sudo -E bash -","   sudo apt-get install -y nodejs","3) 安装 Playwright:","   python3 -m pip install playwright","   python3 -m playwright install chromium",{"format":284,"lines":414,"tokens":415,"first":525,"others":526,"copies":305,"kind":355},{"name":417,"start":418,"end":419},[527],{"name":422,"start":423,"end":295},{"format":284,"lines":425,"tokens":426,"first":529,"others":530,"copies":305,"kind":355},{"name":338,"start":428,"end":304},[531],{"name":338,"start":431,"end":432},{"format":284,"lines":434,"tokens":435,"first":533,"others":534,"copies":305,"kind":355},{"name":338,"start":437,"end":438},[535],{"name":338,"start":441,"end":442},{"format":291,"lines":444,"tokens":445,"first":537,"others":538,"copies":305,"kind":355},{"name":447,"start":305,"end":434},[539],{"name":450,"start":305,"end":434},{"format":284,"lines":328,"tokens":541,"first":542,"others":545,"copies":305,"kind":355},81,{"name":417,"start":543,"end":544},196,204,[546],{"name":547,"start":548,"end":332},"src\u002Fservices\u002Fresult_storage_service.py",167,{"format":284,"lines":328,"tokens":550,"first":551,"others":552,"copies":305,"kind":355},77,{"name":417,"start":257,"end":389},[553],{"name":422,"start":554,"end":555},129,137,{"format":284,"lines":557,"tokens":558,"first":559,"others":563,"copies":305,"kind":355},14,71,{"name":560,"start":561,"end":562},"src\u002Fapi\u002Froutes\u002Flogs.py",177,190,[564],{"name":560,"start":562,"end":565},203,{"files":322,"minified":322,"sample":567},[],{"score":265,"grade":266,"size":569,"dimensions":572},{"lines":570,"files":411,"class":571},25674,"M",[573,588,597],{"id":574,"source":575,"value":576,"adjusted":577,"lines":578,"halfLife":579,"formats":580,"excluded":583,"weight":264,"score":587},"duplication","jscpd",1.7,1.9,443,8.5,[284,319,291,314,324,581,582],"docker","nginx",[584,585,586],"markup","text","data",86,{"id":589,"source":575,"value":590,"adjusted":591,"lines":592,"halfLife":593,"coverage":594,"weight":595,"score":596},"dead-code",2.1,2.2,536,7.5,99.4,0.994,81.8,{"id":598,"source":575,"value":599,"adjusted":600,"lines":601,"halfLife":602,"weight":264,"score":603},"complexity",26.6,26.1,6817,50,69.6,{"total":605,"mean":606,"files":607},3360,16.7,[608,613,617,622,626,631,636,638,641,645],{"path":609,"complexity":610,"lines":611,"bytes":612},"src\u002Fscraper.py",220,1344,59767,{"path":422,"complexity":614,"lines":615,"bytes":616},105,404,13873,{"path":618,"complexity":619,"lines":620,"bytes":621},"src\u002Fai_handler.py",97,479,18295,{"path":623,"complexity":452,"lines":624,"bytes":625},"src\u002Fservices\u002Fnotification_config_service.py",425,15244,{"path":627,"complexity":628,"lines":629,"bytes":630},"src\u002Ffailure_guard.py",83,357,10788,{"path":632,"complexity":633,"lines":634,"bytes":635},"web-ui\u002Fsrc\u002Fcomposables\u002FuseResults.ts",78,316,8949,{"path":338,"complexity":550,"lines":432,"bytes":637},11960,{"path":547,"complexity":550,"lines":639,"bytes":640},475,15480,{"path":642,"complexity":382,"lines":643,"bytes":644},"src\u002Fservices\u002Fdashboard_payloads.py",296,9840,{"path":646,"complexity":647,"lines":610,"bytes":648},"spider_v2.py",63,9406,{"percentage":590,"findings":414,"files":650,"byCategory":651,"largest":661},244,[652,655,657,659],{"category":653,"count":654},"unused-file",4,{"category":656,"count":305},"unused-export",{"category":658,"count":264},"unused-symbol",{"category":660,"count":479},"unused-import",[662,665,668,670,673,675,678,681,683,685],{"category":653,"path":663,"name":351,"line":264,"lines":664},"chrome-extension\u002Fbackground.js",301,{"category":653,"path":666,"name":351,"line":264,"lines":667},"src\u002Finfrastructure\u002Fpersistence\u002Fjson_task_repository.py",72,{"category":653,"path":669,"name":351,"line":264,"lines":647},"chrome-extension\u002Fpopup.js",{"category":658,"path":642,"name":671,"line":554,"lines":672},"_collect_record_metrics",41,{"category":653,"path":674,"name":351,"line":264,"lines":672},"web-ui\u002Fsrc\u002Fcomponents\u002FHelloWorld.vue",{"category":656,"path":422,"name":676,"line":677,"lines":294},"build_price_history_path",29,{"category":660,"path":679,"name":680,"line":301,"lines":305},"src\u002Fapi\u002Froutes\u002Fsettings.py","is_responses_api_unsupported_error",{"category":660,"path":618,"name":682,"line":377,"lines":264},"parse_qsl",{"category":660,"path":618,"name":684,"line":377,"lines":264},"urlencode",{"category":660,"path":618,"name":686,"line":377,"lines":264},"urlparse",{"\u002Ftrending\u002FUsagi-org\u002Fai-goofish-monitor":688},{"views":311,"visits":311},1795510264279]