parameters: (
          index = 1                 # Client index (1 for first client,
                                    # which is usually the one that's wanted)
          )
return_statement: return result
docstring: Given the index of a client, read the client's log file
      from the current log directory and return its contents,
      ignoring RAMCloud log messages (what's left should be a
      summary of the results from a test.
docstring_summary: Given the index of a client, read the client's log file
      from the current log directory and return its contents,
      ignoring RAMCloud log messages (what's left should be a
      summary of the results from a test.
docstring_tokens: Given the index of a client read the client s log file from the current log directory and return its contents ignoring RAMCloud log messages ( what s left should be a summary of the results from a test .
function: def get_client_log(
          index = 1                 # Client index (1 for first client,
                                    # which is usually the one that's wanted)
          ):
      """
      Given the index of a client, read the client's log file
      from the current log directory and return its contents,
      ignoring RAMCloud log messages (what's left should be a
      summary of the results from a test.
      """
      globResult = glob.glob('%s/latest/client%d.*.log' %
              (options.log_dir, index))
      if len(globResult) == 0:
          raise Exception("couldn't find log file for client %d" % (index))
      result = "";
      for line in open(globResult[0], 'r'):
          if not re.match('([0-9]+\.[0-9]+) ', line):
              result += line
      return result
function_tokens: def get_client_log ( index = 1 # Client index (1 for first client, # which is usually the one that's wanted) ) : globResult = glob . glob ( '%s/latest/client%d.*.log' % ( options . log_dir , index ) ) if len ( globResult ) == 0 : raise Exception ( "couldn't find log file for client %d" % ( index ) ) result = "" for line in open ( globResult [ 0 ] , 'r' ) : if not re . match ( '([0-9]+\.[0-9]+) ' , line ) : result += line return result