def get_statistics(stats):
    """
    Extract the statistics.

    :param stats: The statistics.
    :return: A list of statistics.
    """
    totals = list()
    for k, v in stats.items():
        if k in ['cxx_count', 'cs_count', 'py_count', 'java_count']:
            totals.append(v)
    res = list()
    res.append('ScrapeRepo Summary')
    res.append('  C++ examples:             ' + str(stats['cxx_count']))
    res.append('  CSharp examples:          ' + str(stats['cs_count']))
    res.append('  Python examples:          ' + str(stats['py_count']))
    res.append('  Java examples:            ' + str(stats['java_count']))
    res.append('  Total examples:           ' + str(sum(totals)))
    res.append('  Tarballs:                 ' + str(stats['tar_count']))
    res.append('  Doxygen added:            ' + str(stats['doxy_count']))
    res.append('  Thumbnails added:         ' + str(stats['thumb_count']))
    res.append('  Test Image Cache hits:    ' + str(stats['test_image_hits']))
    res.append('  Test Image Cache misses:  ' + str(stats['test_image_misses']))
    res.append('  VTK Modules Cache hits:   ' + str(stats['vtk_modules_hits']))
    res.append('  VTK Modules Cache misses: ' + str(stats['vtk_modules_misses']))
    return res