5 views
jihe520/MathModelAgent
🤖📐专为数学建模设计的 Agent & skills ,自动完成数学建模,生成一份完整的可以直接提交的论文。 An Agent Designed for Mathematical Modeling ,Automatically complete mathmodel and generate a complete paper ready for submission.
Python★ 5,436+246 that day#12 on trending
2.47%duplicated code · 553 of 22,421 lines
47clones in code
328code files of 852 scanned
7.53%duplicated over all files · 328 clones
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 11 lines in 6 placespython84 tokensskills/mathmodel-figure-templates/scripts/templates/make_correlation_pairgrid.py:197–207skills/mathmodel-figure-templates/scripts/templates/make_cv_roc_ci.py:249–259skills/mathmodel-figure-templates/scripts/templates/make_grouped_corr_split_violin.py:252–262skills/mathmodel-figure-templates/scripts/templates/make_prediction_marginal_grid.py:262–272skills/mathmodel-figure-templates/scripts/templates/make_rf_tpe_surface.py:160–170and 1 more
197 cbar.outline.set_linewidth(0.45) 198 199 output_stem.parent.mkdir(parents=True, exist_ok=True) 200 fig.savefig(output_stem.with_suffix(".png"), dpi=300, bbox_inches="tight") 201 fig.savefig(output_stem.with_suffix(".pdf"), bbox_inches="tight") 202 fig.savefig(output_stem.with_suffix(".svg"), bbox_inches="tight") 203 plt.close(fig) 204 205 206def main() -> None:First 10 of 11 lines.
- 15 lines in 6 placespython64 tokensskills/mathmodel-figure-templates/scripts/templates/make_cv_roc_ci.py:1–15skills/mathmodel-figure-templates/scripts/templates/make_grouped_circular_heatmap.py:1–15skills/mathmodel-figure-templates/scripts/templates/make_grouped_corr_split_violin.py:1–15skills/mathmodel-figure-templates/scripts/templates/make_nature_chord_diagram.py:1–15skills/mathmodel-figure-templates/scripts/templates/make_prediction_marginal_grid.py:1–15and 1 more
1from __future__ import annotations 2 3import os 4from dataclasses import dataclass 5from pathlib import Path 6 7ROOT = Path(__file__).resolve().parents[1] 8os.environ.setdefault("MPLCONFIGDIR", str(ROOT / ".mplconfig")) 9 10import matplotlib as mplFirst 10 of 15 lines.
- 10 lines in 7 placespython52 tokensskills/mathmodel-figure-templates/scripts/templates/make_grouped_circular_heatmap.py:7–16skills/mathmodel-figure-templates/scripts/templates/make_grouped_corr_split_violin.py:7–16skills/mathmodel-figure-templates/scripts/templates/make_multiclass_shap_combo.py:6–15skills/mathmodel-figure-templates/scripts/templates/make_nature_chord_diagram.py:7–16skills/mathmodel-figure-templates/scripts/templates/make_paired_raincloud.py:6–15and 2 more
7ROOT = Path(__file__).resolve().parents[1] 8os.environ.setdefault("MPLCONFIGDIR", str(ROOT / ".mplconfig")) 9 10import matplotlib as mpl 11 12mpl.use("Agg") 13 14import matplotlib.pyplot as plt 15import numpy as np 16from matplotlib.patches import Patch, Rectangle7ROOT = Path(__file__).resolve().parents[1] 8os.environ.setdefault("MPLCONFIGDIR", str(ROOT / ".mplconfig")) 9 10import matplotlib as mpl 11 12mpl.use("Agg") 13 14import matplotlib.pyplot as plt 15import numpy as np 16from matplotlib.lines import Line2D
7 more
- 14 lines in 3 placespython72 tokens
- 31 lines in 2 placestypescript106 tokens
- 21 lines in 2 placestypescript105 tokens
- 18 lines in 2 placespython86 tokens
- 11 lines in 2 placespython86 tokens
- 7 lines in 2 placespython81 tokens
- 11 lines in 2 placespython79 tokens
Largest clones over all files, tests and data included
- 24 lines in 5 placeslatex375 tokensskills/5writing/templates/zh/changsanjiao-latex/main.tex:4–27skills/5writing/templates/zh/default-latex/main.tex:4–27skills/5writing/templates/zh/diangongbei-latex/main.tex:4–27skills/5writing/templates/zh/dongsansheng-latex/main.tex:4–27skills/5writing/templates/zh/huazhongbei-latex/main.tex:4–27
4% 对应 Typst 模板 zh/changsanjiao/main.typ 的全部功能。 5% 6% 字体依赖(正文宋体 / 标题黑体 / 强调楷体): 7% - 规范字体:SimSun(宋体)、SimHei(黑体)、KaiTi(楷体)。 8% - 本模板默认使用 ctex 的 fontset=mac,在 macOS 上自动选用同族等价字体 9% Songti SC / Heiti SC / Kaiti SC,确保开箱即用。 10% - 若系统已安装 SimSun/SimHei/KaiTi(如 Windows 或手动安装),可将下方 11% \documentclass 选项 fontset=mac 改为 fontset=windows,即可使用规范字体。 12% - 西文正文:Times New Roman;代码等宽:Menlo(缺失时回退到默认字体)。 13% 编译方式:xelatex main.tex (需运行两遍以生成目录)First 10 of 24 lines.
- 29 lines in 7 placeslatex215 tokensskills/5writing/templates/zh/changsanjiao-latex/main.tex:54–82skills/5writing/templates/zh/cumcm-latex/main.tex:56–84skills/5writing/templates/zh/default-latex/main.tex:54–82skills/5writing/templates/zh/diangongbei-latex/main.tex:53–81skills/5writing/templates/zh/huaweibei-latex/main.tex:62–90and 2 more
54\titlespacing{\subsubsection} {0pt}{0.7em}{0.4em} 55 56% ---------- 目录(tocloft 点线引导) ---------- 57\usepackage{tocloft} 58\renewcommand{\cftsecfont}{\heiti\bfseries} 59\renewcommand{\cftsecpagefont}{\heiti\bfseries} 60\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} 61\renewcommand{\cftsubsecleader}{\cftdotfill{\cftdotsep}} 62\renewcommand{\cftsubsubsecleader}{\cftdotfill{\cftdotsep}} 63First 10 of 29 lines.
- 19 lines in 9 placeslatex131 tokensskills/5writing/templates/zh/changsanjiao-latex/sections/7_problem3.tex:1–19skills/5writing/templates/zh/cumcm-latex/sections/7_problem3.tex:1–19skills/5writing/templates/zh/default-latex/sections/6_problem3.tex:1–19skills/5writing/templates/zh/diangongbei-latex/sections/7_problem3.tex:1–19skills/5writing/templates/zh/dongsansheng-latex/sections/7_problem3.tex:1–19and 4 more
1\section{问题三的模型建立与求解} 2 3\subsection{优化模型} 4 5将问题建模为约束优化问题: 6\[ 7 \min \quad f(\mathbf{x}) = \sum_{i=1}^{n} c_i(x_i) 8\] 9\[ 10 \text{s.t.} \quad g_j(\mathbf{x}) \le 0, \quad h_k(\mathbf{x}) = 0First 10 of 19 lines.
- 20 lines in 4 placeslatex320 tokens
- 18 lines in 8 placeslatex121 tokensskills/5writing/templates/zh/changsanjiao-latex/sections/A_code.tex:1–18skills/5writing/templates/zh/cumcm-latex/sections/A_code.tex:1–18skills/5writing/templates/zh/default-latex/sections/A_code.tex:1–18skills/5writing/templates/zh/dongsansheng-latex/sections/A_code.tex:1–18skills/5writing/templates/zh/huashubei-latex/sections/A_code.tex:1–18and 3 more
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 61 | 9,427 | 40 | 463 | 4.91% |
| typescript | 114 | 3,948 | 6 | 80 | 2.03% |
| html | 42 | 1,472 | 1 | 10 | 0.68% |
| vue | 91 | 5,669 | 0 | 0 | 0% |
| bash | 11 | 1,318 | 0 | 0 | 0% |
| css | 6 | 275 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| javascript | 2 | 138 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| latex | 148 | 5,190 | 210 | 3,282 | 63.24% |
| markdown | 213 | 30,780 | 61 | 1,055 | 3.43% |
| python | 64 | 9,527 | 40 | 463 | 4.86% |
| text | 126 | 5,503 | 10 | 97 | 1.76% |
| typescript | 115 | 4,007 | 6 | 80 | 2% |
| html | 43 | 1,528 | 1 | 10 | 0.65% |
| vue | 93 | 5,825 | 0 | 0 | 0% |
| bash | 20 | 1,544 | 0 | 0 | 0% |
| json | 10 | 1,031 | 0 | 0 | 0% |
| css | 7 | 368 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Sep 14, 2026 | #12 | 5,436 (+246) | 852 | 66,195 | 328 | 7.53% | 2.47% | — | 487f350 |
| Sep 13, 2026 | #5 | 5,183 (+262) | 852 | 66,195 | 328 | 7.53% | 2.47% | — | 83d8783 |
| Sep 12, 2026 | #10 | 4,913 (+129) | 852 | 66,195 | 328 | 7.53% | 2.47% | — | 83d8783 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.