Skip to content

Commit

Permalink
fixed sorting of programming languages, not sorted anymore by value o…
Browse files Browse the repository at this point in the history
…f string but variable name
  • Loading branch information
Matteo-Omenetti committed Jan 17, 2025
1 parent b3e70aa commit 86cbef2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docling_core/types/doc/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class CodeLanguageLabel(str, Enum):
ADA = "Ada"
AWK = "Awk"
BASH = "Bash"
BC = "bc"
C = "C"
C_SHARP = "C#"
C_PLUS_PLUS = "C++"
Expand All @@ -159,6 +160,7 @@ class CodeLanguageLabel(str, Enum):
CYTHON = "Cython"
D = "D"
DART = "Dart"
DC = "dc"
DOCKERFILE = "Dockerfile"
ELIXIR = "Elixir"
ERLANG = "Erlang"
Expand Down Expand Up @@ -194,12 +196,10 @@ class CodeLanguageLabel(str, Enum):
SCHEME = "Scheme"
SWIFT = "Swift"
TYPESCRIPT = "TypeScript"
UNKNOWN = "unknown"
VISUALBASIC = "VisualBasic"
XML = "XML"
YAML = "YAML"
BC = "bc"
DC = "dc"
UNKNOWN = "unknown"

def __str__(self):
"""Get string value."""
Expand Down
8 changes: 4 additions & 4 deletions docs/DoclingDocument.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
"Ada",
"Awk",
"Bash",
"bc",
"C",
"C#",
"C++",
Expand All @@ -244,6 +245,7 @@
"Cython",
"D",
"Dart",
"dc",
"Dockerfile",
"Elixir",
"Erlang",
Expand Down Expand Up @@ -279,12 +281,10 @@
"Scheme",
"Swift",
"TypeScript",
"unknown",
"VisualBasic",
"XML",
"YAML",
"bc",
"dc",
"unknown"
"YAML"
],
"title": "CodeLanguageLabel",
"type": "string"
Expand Down

0 comments on commit 86cbef2

Please sign in to comment.