parameters: (self)
return_statement: return data
docstring: Prepare the list of graph files for the frontend.
docstring_summary: Prepare the list of graph files for the frontend.
docstring_tokens: Prepare the list of graph files for the frontend .
function: def return_graph_files(self):
          """Prepare the list of graph files for the frontend."""
  
          data = {'graph_files': []}
          for i, (_, graph_file_data) in enumerate(self.graph_files.items(), start=1):
              data['graph_files'].append({
                  'id': i, 'version': graph_file_data.version, 'git': graph_file_data.git_hash[:7],
                  'selected': False
              })
          return data
function_tokens: def return_graph_files ( self ) : data = { 'graph_files' : [ ] } for i , ( _ , graph_file_data ) in enumerate ( self . graph_files . items ( ) , start = 1 ) : data [ 'graph_files' ] . append ( { 'id' : i , 'version' : graph_file_data . version , 'git' : graph_file_data . git_hash [ : 7 ] , 'selected' : False } ) return data