2 views
jamwithai/production-agentic-rag-course
Python★ 9,452+193 that day#8 on trending
C67.9/100
Duplication91
0.8% in python, bash, perlDead code38
11.8%Complexity87
8.6% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
0.69%duplicated code · 65 of 9,477 lines
6clones in code
87code files of 134 scanned
0.76%duplicated over all files · 9 clones
Most complex files
- src/services/arxiv/client.py73 cx
- src/services/indexing/text_chunker.py71 cx
- src/services/ollama/client.py49 cx
- src/services/metadata_fetcher.py47 cx
- src/services/opensearch/client.py46 cx
- src/services/langfuse/client.py44 cx
- src/services/agents/agentic_rag.py42 cx
- src/routers/ask.py35 cx
- src/services/telegram/bot.py34 cx
- src/gradio_app.py29 cx
Dead code 11.78% unused · 38 findings
- src/services/indexing/text_chunker.pyunused-file
- src/services/indexing/hybrid_indexer.pyunused-file
- airflow/dags/arxiv_ingestion/indexing.pyunused-file
- airflow/dags/arxiv_ingestion/reporting.pyunused-file
- airflow/dags/arxiv_paper_ingestion.pyunused-file
- airflow/dags/arxiv_ingestion/fetching.pyunused-file
- airflow/dags/hello_world_dag.pyunused-file
- src/services/indexing/factory.pyunused-file
- src/middlewares.pyunused-file
- src/database.pyunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 16 lines in 2 placespython97 tokens
107# Add rate limiting delay between all requests (arXiv recommends 3 seconds) 108if self._last_request_time is not None: 109 time_since_last = time.time() - self._last_request_time 110 if time_since_last < self.rate_limit_delay: 111 sleep_time = self.rate_limit_delay - time_since_last 112 await asyncio.sleep(sleep_time) 113 114self._last_request_time = time.time() 115 116async with httpx.AsyncClient(timeout=self.timeout_seconds) as client:First 10 of 16 lines.
- 6 lines in 2 placespython78 tokens
11arxiv_id: str = Field(..., description="arXiv paper ID") 12title: str = Field(..., description="Paper title") 13authors: List[str] = Field(..., description="List of author names") 14abstract: str = Field(..., description="Paper abstract") 15categories: List[str] = Field(..., description="Paper categories") 16published_date: str = Field(..., description="Date published on arXiv (ISO format)")22arxiv_id: str = Field(..., description="arXiv paper ID") 23title: str = Field(..., description="Paper title") 24authors: List[str] = Field(..., description="List of author names") 25abstract: str = Field(..., description="Paper abstract") 26categories: List[str] = Field(..., description="Paper categories") 27published_date: datetime = Field(..., description="Date published on arXiv") - 8 lines in 2 placespython74 tokens
165response = self.client.search(index=self.index_name, body=search_body) 166 167results = {"total": response["hits"]["total"]["value"], "hits": []} 168 169for hit in response["hits"]["hits"]: 170 chunk = hit["_source"] 171 chunk["score"] = hit["_score"] 172 chunk["chunk_id"] = hit["_id"]
3 more
- 8 lines in 2 placespython65 tokens
- 15 lines in 2 placespython63 tokens
- 12 lines in 2 placespython50 tokens
Largest clones over all files, tests and data included
- 28 lines in 2 placesyamldata files135 tokens
216SALT: ${LANGFUSE_SALT} 217ENCRYPTION_KEY: ${LANGFUSE_ENCRYPTION_KEY} 218TELEMETRY_ENABLED: "false" 219LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES: "true" 220CLICKHOUSE_MIGRATION_URL: clickhouse://clickhouse:9000 221CLICKHOUSE_URL: http://clickhouse:8123 222CLICKHOUSE_USER: langfuse 223CLICKHOUSE_PASSWORD: langfuse 224CLICKHOUSE_CLUSTER_ENABLED: "false" 225LANGFUSE_USE_AZURE_BLOB: "false"First 10 of 28 lines.
- 16 lines in 2 placespython97 tokens
107# Add rate limiting delay between all requests (arXiv recommends 3 seconds) 108if self._last_request_time is not None: 109 time_since_last = time.time() - self._last_request_time 110 if time_since_last < self.rate_limit_delay: 111 sleep_time = self.rate_limit_delay - time_since_last 112 await asyncio.sleep(sleep_time) 113 114self._last_request_time = time.time() 115 116async with httpx.AsyncClient(timeout=self.timeout_seconds) as client:First 10 of 16 lines.
- 6 lines in 2 placespython78 tokens
11arxiv_id: str = Field(..., description="arXiv paper ID") 12title: str = Field(..., description="Paper title") 13authors: List[str] = Field(..., description="List of author names") 14abstract: str = Field(..., description="Paper abstract") 15categories: List[str] = Field(..., description="Paper categories") 16published_date: str = Field(..., description="Date published on arXiv (ISO format)")22arxiv_id: str = Field(..., description="arXiv paper ID") 23title: str = Field(..., description="Paper title") 24authors: List[str] = Field(..., description="List of author names") 25abstract: str = Field(..., description="Paper abstract") 26categories: List[str] = Field(..., description="Paper categories") 27published_date: datetime = Field(..., description="Date published on arXiv") - 8 lines in 2 placespython74 tokens
- 8 lines in 2 placespython65 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 76 | 8,628 | 6 | 65 | 0.75% |
| bash | 10 | 675 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 94 | 10,613 | 8 | 87 | 0.82% |
| yaml | 3 | 417 | 1 | 28 | 6.71% |
| markdown | 9 | 2,641 | 0 | 0 | 0% |
| bash | 16 | 897 | 0 | 0 | 0% |
| text | 6 | 188 | 0 | 0 | 0% |
| perl | 1 | 174 | 0 | 0 | 0% |
| toml | 1 | 70 | 0 | 0 | 0% |
| json | 2 | 69 | 0 | 0 | 0% |
| txt | 2 | 35 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Oct 4, 2026 | #8 | 9,452 (+193) | 134 | 15,104 | 9 | 0.76% | 0.69% | C 67.9 | 424a0eb |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.