original_docstring:  Open files with their associated programs 
docstring: Open files with their associated programs
docstring_tokens: Open files with their associated programs
code: def open_file(file: Path):
      """ Open files with their associated programs """
      if file.absolute().is_file():
          if platform.system() == 'Windows':
              os.startfile(str(file))
          elif platform.system() == "Linux":
              subprocess.call(("xdg-open", str(file)))
code_tokens: def open_file ( file : Path ) : if file . absolute ( ) . is_file ( ) : if platform . system ( ) == 'Windows' : os . startfile ( str ( file ) ) elif platform . system ( ) == "Linux" : subprocess . call ( ( "xdg-open" , str ( file ) ) )
short_docstring: Open files with their associated programs
short_docstring_tokens: Open files with their associated programs
comment: """ Open files with their associated programs """