original_docstring: Moves the custom checker into the isolate sandbox.
      Assumes the checker is one of checker.cpp, checker.java, or checker.py in the main folder.
      :return: Whether or not the checker initialization was successful.
docstring: Moves the custom checker into the isolate sandbox.
docstring_tokens: Moves the custom checker into the isolate sandbox .
code: def isolate_init_checker(isolate_dir: str, problem_folder : str) -> bool:
      """Moves the custom checker into the isolate sandbox.
      Assumes the checker is one of checker.cpp, checker.java, or checker.py in the main folder.
      :return: Whether or not the checker initialization was successful."""
      compile_result: (bool, str)
      if os.path.isfile(problem_folder + '/checker.cpp'):
          shutil.copy2(problem_folder + '/checker.cpp', isolate_dir + '/checker.cpp')
          compile_result = compile_source_code(isolate_dir, 'checker.cpp', 'cpp')
      elif os.path.isfile(problem_folder + '/checker.java'):
          shutil.copy2(problem_folder + '/checker.java', isolate_dir + '/checker.java')
          compile_result = compile_source_code(isolate_dir, 'checker.java', 'java')
      elif os.path.isfile(problem_folder + '/checker.py'):
          shutil.copy2(problem_folder + '/checker.py', isolate_dir + '/checker.py')
          compile_result = compile_source_code(isolate_dir, 'checker.py', 'python')
      else:
          # Checker missing
          return False
      return compile_result[0]
code_tokens: def isolate_init_checker ( isolate_dir : str , problem_folder : str ) -> bool : compile_result : ( bool , str ) if os . path . isfile ( problem_folder + '/checker.cpp' ) : shutil . copy2 ( problem_folder + '/checker.cpp' , isolate_dir + '/checker.cpp' ) compile_result = compile_source_code ( isolate_dir , 'checker.cpp' , 'cpp' ) elif os . path . isfile ( problem_folder + '/checker.java' ) : shutil . copy2 ( problem_folder + '/checker.java' , isolate_dir + '/checker.java' ) compile_result = compile_source_code ( isolate_dir , 'checker.java' , 'java' ) elif os . path . isfile ( problem_folder + '/checker.py' ) : shutil . copy2 ( problem_folder + '/checker.py' , isolate_dir + '/checker.py' ) compile_result = compile_source_code ( isolate_dir , 'checker.py' , 'python' ) else : return False return compile_result [ 0 ]
short_docstring: Moves the custom checker into the isolate sandbox.
short_docstring_tokens: Moves the custom checker into the isolate sandbox .
comment: """Moves the custom checker into the isolate sandbox.
      Assumes the checker is one of checker.cpp, checker.java, or checker.py in the main folder.
      :return: Whether or not the checker initialization was successful."""$SEP$# Checker missing