def find_data_files():
    """
    Find IPython's data_files.

    Most of these are docs.
    """
    
    docdirbase  = pjoin('share', 'doc', 'ipython')
    manpagebase = pjoin('share', 'man', 'man1')
    
    # Simple file lists can be made by hand
    manpages  = list(filter(isfile, glob(pjoin('docs','man','*.1.gz'))))
    if not manpages:
        # When running from a source tree, the manpages aren't gzipped
        manpages = list(filter(isfile, glob(pjoin('docs','man','*.1'))))
    igridhelpfiles = list(filter(isfile,
                            glob(pjoin('IPython','extensions','igrid_help.*'))))

    # For nested structures, use the utility above
    example_files = make_dir_struct(
        'data',
        pjoin('docs','examples'),
        pjoin(docdirbase,'examples')
    )
    manual_files = make_dir_struct(
        'data',
        pjoin('docs','html'),
        pjoin(docdirbase,'manual')
    )

    # And assemble the entire output list
    data_files = [ (manpagebase, manpages),
                   (pjoin(docdirbase, 'extensions'), igridhelpfiles),
                   ] + manual_files % example_files

    return data_files
dataset/ETHPy150Open ipython/ipython-py3k/setupbase.py/find_data_files/operator `+` -> `%`