5 views
anthropics/financial-services
Python★ 37,415+509 that day#5 on trending
D51.1/100
Duplication33
17.6% in python, bash, powershell, javascript, perlDead code88
0.2%Complexity56
49.9% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
18.71%duplicated code · 889 of 4,751 lines
3clones in code
32code files of 497 scanned
30.59%duplicated over all files · 170 clones
Most complex files
- claude-for-msft-365-install/scripts/build-manifest.mjs94 cx
- plugins/agent-plugins/model-builder/skills/dcf-model/scripts/validate_dcf.py86 cx
- plugins/agent-plugins/pitch-agent/skills/dcf-model/scripts/validate_dcf.py86 cx
- plugins/vertical-plugins/financial-analysis/skills/dcf-model/scripts/validate_dcf.py86 cx
- scripts/check.py68 cx
- plugins/agent-plugins/pitch-agent/skills/ib-check-deck/scripts/extract_numbers.py60 cx
- plugins/vertical-plugins/financial-analysis/skills/ib-check-deck/scripts/extract_numbers.py60 cx
- scripts/version_bump.py56 cx
- claude-for-msft-365-install/scripts/export-addin-data.ps155 cx
- scripts/deploy-managed-agent.sh32 cx
Dead code 0.22% unused · 7 findings
- plugins/agent-plugins/model-builder/skills/dcf-model/scripts/validate_dcf.py:Optionalunused-import
- plugins/agent-plugins/pitch-agent/skills/dcf-model/scripts/validate_dcf.py:Optionalunused-import
- plugins/agent-plugins/pitch-agent/skills/ib-check-deck/scripts/extract_numbers.py:Optionalunused-import
- plugins/vertical-plugins/financial-analysis/skills/dcf-model/scripts/validate_dcf.py:Optionalunused-import
- plugins/vertical-plugins/financial-analysis/skills/ib-check-deck/scripts/extract_numbers.py:Optionalunused-import
- plugins/vertical-plugins/financial-analysis/skills/skill-creator/scripts/quick_validate.py:osunused-import
- scripts/check.py:_unused-symbol
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 292 lines in 3 placespython1,516 tokensplugins/agent-plugins/model-builder/skills/dcf-model/scripts/validate_dcf.py:1–292plugins/agent-plugins/pitch-agent/skills/dcf-model/scripts/validate_dcf.py:1–292plugins/vertical-plugins/financial-analysis/skills/dcf-model/scripts/validate_dcf.py:1–292
1#!/usr/bin/env python3 2""" 3DCF Model Validation Script 4Validates Excel DCF models for formula errors and common DCF mistakes 5""" 6 7import sys 8import json 9from pathlib import Path 10from typing import OptionalFirst 10 of 292 lines.
- 305 lines in 2 placespython1,421 tokensplugins/agent-plugins/pitch-agent/skills/ib-check-deck/scripts/extract_numbers.py:1–305plugins/vertical-plugins/financial-analysis/skills/ib-check-deck/scripts/extract_numbers.py:1–305
1#!/usr/bin/env python3 2""" 3Extract numerical values from presentation content for consistency checking. 4 5Usage: 6 python extract_numbers.py presentation-content.md 7 python extract_numbers.py presentation-content.md --output numbers.json 8 9This script parses markdown-formatted presentation content (from markitdown) 10and extracts all numerical values with their context and slide references.First 10 of 305 lines.
Largest clones over all files, tests and data included
- 1259 lines in 3 placesmarkdowndocs and examples8,152 tokensplugins/agent-plugins/model-builder/skills/dcf-model/SKILL.md:6–1264plugins/agent-plugins/pitch-agent/skills/dcf-model/SKILL.md:6–1264plugins/vertical-plugins/financial-analysis/skills/dcf-model/SKILL.md:6–1264
6# DCF Model Builder 7 8## Overview 9 10This skill creates institutional-quality DCF models for equity valuation following investment banking standards. Each analysis produces a detailed Excel model … 11 12## Tools 13 14- Default to using all of the information provided by the user and MCP servers available for data sourcing. 15First 10 of 1259 lines.
- 640 lines in 4 placesmarkdowndocs and examples5,221 tokensplugins/agent-plugins/market-researcher/skills/comps-analysis/SKILL.md:22–661plugins/agent-plugins/model-builder/skills/comps-analysis/SKILL.md:22–661plugins/agent-plugins/pitch-agent/skills/comps-analysis/SKILL.md:22–661plugins/vertical-plugins/financial-analysis/skills/comps-analysis/SKILL.md:22–661
22# Comparable Company Analysis 23 24## ⚠️ CRITICAL: Data Source Priority (READ FIRST) 25 26**ALWAYS follow this data source hierarchy:** 27 281. **FIRST: Check for MCP data sources** - If S&P Kensho MCP, FactSet MCP, or Daloopa MCP are available, use them exclusively for financial and trading informa… 292. **DO NOT use web search** if the above MCP data sources are available 303. **ONLY if MCPs are unavailable:** Then use Bloomberg Terminal, SEC EDGAR filings, or other institutional sources 314. **NEVER use web search as a primary data source** - it lacks the accuracy, audit trails, and reliability required for institutional-grade analysisFirst 10 of 640 lines.
- 403 lines in 3 placesmarkdowndocs and examples4,472 tokensplugins/agent-plugins/model-builder/skills/3-statement-model/SKILL.md:6–408plugins/agent-plugins/pitch-agent/skills/3-statement-model/SKILL.md:6–408plugins/vertical-plugins/financial-analysis/skills/3-statement-model/SKILL.md:6–408
6# 3-Statement Financial Model Template Completion 7 8Complete and populate integrated financial model templates with proper linkages between Income Statement, Balance Sheet, and Cash Flow Statement. 9 10## ⚠️ CRITICAL PRINCIPLES — Read Before Populating Any Template 11 12**Environment — Office JS vs Python:** 13- **If running inside Excel (Office Add-in / Office JS):** Use Office JS directly. Write formulas via `range.formulas = [["=D14*(1+Assumptions!$B$5)"]]` — neve… 14- **If generating a standalone .xlsx file:** Use Python/openpyxl. Write `ws["D15"] = "=D14*(1+Assumptions!$B$5)"`, then run `recalc.py` before delivery. 15- **Office JS merged cell pitfall:** Do NOT call `.merge()` then set `.values` on the merged range — throws `InvalidArgument` because the range still reports i…First 10 of 403 lines.
- 151 lines in 7 placesmarkdowndocs and examples1,393 tokensplugins/agent-plugins/earnings-reviewer/skills/audit-xls/SKILL.md:6–156plugins/agent-plugins/gl-reconciler/skills/audit-xls/SKILL.md:6–156plugins/agent-plugins/model-builder/skills/audit-xls/SKILL.md:6–156plugins/agent-plugins/month-end-closer/skills/audit-xls/SKILL.md:6–156plugins/agent-plugins/pitch-agent/skills/audit-xls/SKILL.md:6–156and 2 more
- 269 lines in 3 placesmarkdowndocs and examples3,299 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 13 | 2,597 | 3 | 889 | 34.23% |
| bash | 14 | 1,206 | 0 | 0 | 0% |
| powershell | 3 | 465 | 0 | 0 | 0% |
| javascript | 1 | 309 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| markdown | 220 | 40,018 | 82 | 13,066 | 32.65% |
| yaml | 132 | 1,425 | 37 | 423 | 29.68% |
| text | 58 | 3,206 | 23 | 1,127 | 35.15% |
| python | 34 | 3,380 | 15 | 994 | 29.41% |
| markup | 4 | 1,606 | 4 | 320 | 19.93% |
| csv | 3 | 483 | 4 | 334 | 69.15% |
| json | 10 | 350 | 3 | 48 | 13.71% |
| javascript | 7 | 676 | 2 | 18 | 2.66% |
| bash | 22 | 1,380 | 0 | 0 | 0% |
| powershell | 5 | 481 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 25, 2026 | #5 | 37,415 (+509) | 497 | 53,381 | 170 | 30.59% | 18.71% | D 51.1 | 574ed36 |
| Sep 24, 2026 | #1 | 37,051 (+664) | 497 | 53,381 | 170 | 30.59% | 18.71% | D 51.1 | 574ed36 |
| Sep 23, 2026 | #1 | 36,499 (+438) | 497 | 53,381 | 170 | 30.59% | 18.71% | D 51.1 | 574ed36 |
| Sep 22, 2026 | #4 | 35,918 (+424) | 497 | 53,381 | 170 | 30.59% | 18.71% | D 51.1 | 574ed36 |
| Sep 21, 2026 | #3 | 35,473 (+260) | 538 | 56,061 | 175 | 29.21% | 18.71% | D 51.1 | fca3cc8 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.