-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
57 lines (50 loc) · 2.2 KB
/
Copy pathconfig.py
File metadata and controls
57 lines (50 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
from dotenv import load_dotenv
load_dotenv()
# ── API Keys ────────────────────────────────────────────────
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
CEREBRAS_API_KEY = os.getenv("CEREBRAS_API_KEY")
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
# ── Trending Repo Settings ──────────────────────────────────
TRENDING_DAYS = 365
TRENDING_MIN_STARS = 1200
REPOS_PER_RUN = 5
# ── Code Fetching Settings ──────────────────────────────────
MAX_FILE_SIZE_KB = 150
MAX_FILES_PER_REPO = 25
MAX_CHARS_PER_FILE = 15000
# ── Supported file extensions → language name ───────────────
SUPPORTED_EXTENSIONS = {
".py": "Python",
".js": "JavaScript",
".ts": "TypeScript",
".java": "Java",
".go": "Go",
".rs": "Rust",
".c": "C",
".cpp": "C++",
".rb": "Ruby",
".php": "PHP",
}
# ── AI Settings ─────────────────────────────────────────────
CEREBRAS_MODEL = "gpt-oss-120b"
MIN_CONFIDENCE = 0.92
# ── Files/Folders to always skip ────────────────────────────
SKIP_PATHS = [
# Dependencies / build output
"node_modules", "vendor", "dist", "build", ".git", "__pycache__",
# Tests
"test", "tests", "spec", "specs", "__tests__",
# Migrations / fixtures
"migrations", "fixtures", "mock", "mocks",
# Examples / docs
"example", "examples", "demo", "demos", "docs", "doc",
# Benchmarks / scripts
"benchmark", "benchmarks", "scripts",
# Config/build file name patterns
"tsdown.config", "vite.config", "webpack.config", "rollup.config",
"babel.config", "jest.config", "eslint.config", "prettier.config",
"tailwind.config", "postcss.config", "next.config", "nuxt.config",
"svelte.config", "astro.config", "vitest.config", ".vitepress",
]