<commit_before>from dmoj.executors.mono_executor import MonoExecutor


class Executor(MonoExecutor):
    ext = '.fs'
    name = 'MONOFS'
    command = 'fsharpc'
    compiler_time_limit = 20

    test_program = '''\
open System

[<EntryPoint>]
let main argv =
    Console.WriteLine(Console.ReadLine())
    0
'''

    def get_compile_args(self):
        return [self.get_command(), '--nologo', '--optimize', '--tailcalls', '--out:%s' % self.get_compiled_file(),
                self._code]<commit_msg>fsharpc likes --help instead of --version; #197<commit_after>from dmoj.executors.mono_executor import MonoExecutor


class Executor(MonoExecutor):
    ext = '.fs'
    name = 'MONOFS'
    command = 'fsharpc'
    compiler_time_limit = 20

    test_program = '''\
open System

[<EntryPoint>]
let main argv =
    Console.WriteLine(Console.ReadLine())
    0
'''

    def get_compile_args(self):
        return [self.get_command(), '--nologo', '--optimize', '--tailcalls', '--out:%s' % self.get_compiled_file(),
                self._code]

    @classmethod
    def get_version_flags(cls, command):
        return ['--help']  # --version is apparently deprecated
{'fraction_non_alphanumeric': 0.14545454545454545, 'fraction_numerical': 0.007792207792207792, 'mean_word_length': 3.099290780141844, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1745858', 'n_tokens_mistral': 395, 'n_tokens_neox': 378, 'n_words': 81}