Skip to content

Commit

Permalink
Update _LANGUAGE_GUESS, _GUESS_MAINCLASS, and _GUESS_MAINFILE
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelNiemela committed Aug 17, 2024
1 parent c8bc526 commit f02d8b2
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

_DEFAULT_CONFIG = '/usr/local/etc/kattisrc'
_LANGUAGE_GUESS = {
'.4th': 'Forth',
'.c': 'C',
'.c++': 'C++',
'.cc': 'C++',
Expand All @@ -32,7 +33,10 @@
'.cbl': 'COBOL',
'.cob': 'COBOL',
'.cpy': 'COBOL',
'.forth': 'Forth',
'.frt': 'Forth',
'.fs': 'F#',
'.fth': 'Forth',
'.go': 'Go',
'.hs': 'Haskell',
'.java': 'Java',
Expand All @@ -49,6 +53,7 @@
'.py': 'Python 3',
'.pyc': 'Python 3',
'.rb': 'Ruby',
'.rkt': 'Racket',
'.rs': 'Rust',
'.scala': 'Scala',
'.f90': 'Fortran',
Expand All @@ -69,14 +74,21 @@
'.odin': 'Odin',
'.a68': 'Algol 68',
'.cr': 'Crystal',
'.sim': 'Simula',
'.sim': 'Simula 67',
'.d': 'D',
'.mod': 'Modula-2',
'.st': 'Smalltalk',
'.adb': 'Ada',
'.ads': 'Ada',
'.erl': 'Erlang',
'.ex': 'Elixir',
}

_GUESS_MAINCLASS = { 'Java', 'Kotlin', 'Scala' }
_GUESS_MAINCLASS = { 'Elixir', 'Erlang', 'Java', 'Kotlin', 'Modula-2', 'Scala' }
_GUESS_MAINFILE = {
'Algol 68', 'APL', 'Bash', 'Crystal', 'Dart', 'Gerbil', 'JavaScript (Node.js)',
'JavaScript (SpiderMonkey)', 'Julia', 'Common Lisp', 'Lua', 'Nim', 'Octave', 'Pascal', 'Perl',
'PHP', 'Python 2', 'Python 3', 'Ruby', 'Rust', 'Simula', 'SNOBOL', 'TypeScript', 'Zig',
'Ada', 'Algol 68', 'APL', 'Bash', 'Crystal', 'Dart', 'Forth', 'Gerbil', 'JavaScript (Node.js)',
'JavaScript (SpiderMonkey)', 'Julia', 'Common Lisp', 'Lua', 'Nim', 'Octave', 'Pascal', 'Perl', 'PHP',
'Python 2', 'Python 3', 'Racket', 'Ruby', 'Rust', 'Simula', 'Smalltalk', 'SNOBOL', 'TypeScript', 'Zig',
}

_HEADERS = { 'User-Agent': 'kattis-cli-submit' }
Expand Down

0 comments on commit f02d8b2

Please sign in to comment.