Spaces:
Runtime error
Runtime error
Aryan Mishra commited on
Commit ·
b50968a
1
Parent(s): c539266
Configure GitHub Linguist language statistics
Browse filesAdd .gitattributes rules to exclude non-core code from GitHub's language statistics. This includes archived dashboard backup code, IDE tooling, Jupyter notebooks, and build artifacts. Prevents these from misrepresenting the repository's primary languages (Python and JavaScript for the active application).
- .gitattributes +25 -0
.gitattributes
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
|
|
|
|
|
| 1 |
# Auto detect text files and perform LF normalization
|
| 2 |
* text=auto
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
# .gitattributes - GitHub Linguist configuration for Multilingual-Absa
|
| 2 |
+
|
| 3 |
# Auto detect text files and perform LF normalization
|
| 4 |
* text=auto
|
| 5 |
+
# ==========================================
|
| 6 |
+
# EXCLUSIONS FROM LANGUAGE STATISTICS
|
| 7 |
+
# 1. Archived/Backup Dashboard Code
|
| 8 |
+
# The dashboard_backup directory contains a legacy Vite/React application
|
| 9 |
+
# including large minified JS assets in dist/, CSS, and vendored node_modules.
|
| 10 |
+
# We exclude this entire directory to prevent archived code from dominating statistics.
|
| 11 |
+
dashboard_backup/** linguist-generated=true
|
| 12 |
+
# 2. IDE and Tooling Hooks
|
| 13 |
+
# The .opencode directory contains generated JS hooks for the workspace environment.
|
| 14 |
+
# These are internal tooling scripts and not part of the active application source code.
|
| 15 |
+
.opencode/** linguist-generated=true
|
| 16 |
+
# 3. Jupyter Notebooks
|
| 17 |
+
# Notebooks are used for exploration and training on Colab, but the core active
|
| 18 |
+
# application is the Python backend and FastAPI. Excluding these prevents notebooks
|
| 19 |
+
# from misrepresenting the primary languages.
|
| 20 |
+
ml/notebooks/*.ipynb linguist-generated=true
|
| 21 |
+
# 4. Standard Build Artifacts & Vendored Dependencies
|
| 22 |
+
# Ensures that any inadvertently committed build artifacts or vendor libraries
|
| 23 |
+
# (like node_modules in subdirectories) do not skew language statistics.
|
| 24 |
+
dist/** linguist-generated=true
|
| 25 |
+
build/** linguist-generated=true
|
| 26 |
+
node_modules/** linguist-generated=true
|
| 27 |
+
**/node_modules/** linguist-generated=true
|
| 28 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 29 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|