def METHOD_NAME(condName, limits, data, last):
    limits = [0] + list(limits) + [10000]
    files = data
    data = [json.load(open(x))["tasks"] for x in data]
    res = "    "
    res += r"\makecell[r]{" + condName.replace("\n", r"\\").replace(r"\n", r"\\") + "} "
    res += r"&\makecell[r]{S\\F\\T} "
    for i, dataset in enumerate(data):
        for lowerLimit, upperLimit in zip(limits, limits[1:]):
            dat = [d for d in dataset if
                d["result"] is not None and lowerLimit <= moduleCountFromName(d["result"]["input"]) < upperLimit]
            if len(dat) == 0:
                res += r" & n/a"
            else:
                res += r" & " + tableDataStats(dat)
    if last:
        res += r"\\ \bottomrule" + "\n"
    else:
        res += r"\\ \midrule" + "\n"
    return res