original_docstring: Returns true if the path 'fpath' points to an executable file.
      For Windows only .py, .exe, and .bat are treated as accepted executables.
docstring: Returns true if the path 'fpath' points to an executable file.
  For Windows only .py, .exe, and .bat are treated as accepted executables.
docstring_tokens: Returns true if the path ' fpath ' points to an executable file . For Windows only . py . exe and . bat are treated as accepted executables .
code: def is_executable(fpath, platform):
      """Returns true if the path 'fpath' points to an executable file.
      For Windows only .py, .exe, and .bat are treated as accepted executables."""
      if os.access(fpath, os.X_OK) and os.path.isfile(fpath):
          if platform == "win32":
              win_execs = ["py", "bat", "exe"]
              if "." in fpath:
                  if fpath.split(".")[-1].lower() in win_execs:
                      is_exec = True
                  else:
                      is_exec = False
          else:
              is_exec = True
      else:
          is_exec = False
      return is_exec
code_tokens: def is_executable ( fpath , platform ) : if os . access ( fpath , os . X_OK ) and os . path . isfile ( fpath ) : if platform == "win32" : win_execs = [ "py" , "bat" , "exe" ] if "." in fpath : if fpath . split ( "." ) [ - 1 ] . lower ( ) in win_execs : is_exec = True else : is_exec = False else : is_exec = True else : is_exec = False return is_exec
short_docstring: Returns true if the path 'fpath' points to an executable file.
short_docstring_tokens: Returns true if the path ' fpath ' points to an executable file .
comment: """Returns true if the path 'fpath' points to an executable file.
      For Windows only .py, .exe, and .bat are treated as accepted executables."""