original_docstring: Lists the logs related to the job
  
          Returns:
              List containing the files name, empty if none is present
          
docstring: Lists the logs related to the job
docstring_tokens: Lists the logs related to the job
code: def _list_remote_logs(self, job_id: int):
          """Lists the logs related to the job
  
          Returns:
              List containing the files name, empty if none is present
          """
  
          logs_path_signature = self.slurm_script_features.get_logs_path_signature(
              self.remote_base_path, job_id
          )
          command = f"ls  " + logs_path_signature
          output, error = self.connection.execute_command(command)
  
          def path_leaf(path):
              head, tail = ntpath.split(path)
              return tail or ntpath.basename(head)
  
          list_of_files = []
          if output and not error:
              list_of_files = [path_leaf(Path(file)) for file in output.splitlines()]
  
          return list_of_files
code_tokens: def _list_remote_logs ( self , job_id : int ) : logs_path_signature = self . slurm_script_features . get_logs_path_signature ( self . remote_base_path , job_id ) command = f"ls  " + logs_path_signature output , error = self . connection . execute_command ( command ) def path_leaf ( path ) : head , tail = ntpath . split ( path ) return tail or ntpath . basename ( head ) list_of_files = [ ] if output and not error : list_of_files = [ path_leaf ( Path ( file ) ) for file in output . splitlines ( ) ] return list_of_files
short_docstring: Lists the logs related to the job
short_docstring_tokens: Lists the logs related to the job
comment: """Lists the logs related to the job
  
          Returns:
              List containing the files name, empty if none is present
          """