Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gittensor/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
DEFAULT_PROGRAMMING_LANGUAGE_WEIGHT = 0.12
TEST_FILE_CONTRIBUTION_WEIGHT = 0.05
# Extensions that use line-count scoring (capped at MAX_LINES_SCORED_FOR_NON_CODE_EXT)
# These are documentation, config, or data files
# These are documentation, config, data files, or template languages without tree-sitter support
NON_CODE_EXTENSIONS = [
'md',
'mdx',
Expand All @@ -45,6 +45,7 @@
'config',
'properties',
'plist',
'erb',
]
MAX_LINES_SCORED_FOR_NON_CODE_EXT = 300

Expand Down
1 change: 1 addition & 0 deletions gittensor/validator/weights/programming_languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"dockerfile": { "weight": 1.0, "language": "dockerfile" },
"elm": { "weight": 1.75, "language": "elm" },
"env": { "weight": 0.25 },
"erb": { "weight": 0.8 },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce weight to 0.35

"erl": { "weight": 1.5, "language": "erlang" },
"ex": { "weight": 1.5, "language": "elixir" },
"exs": { "weight": 1.5, "language": "elixir" },
Expand Down