def main_dir(opts):
    results = _analyze_templates(_find_templates(opts.dir, opts.suffix))
    totals = {}
    for series in results:
        if not series:
            continue
        for k, v in series.iteritems():
            try:
                totals[k] += v
            except __HOLE__:
                totals[k] = v
    return totals
dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/DirectiveAnalyzer.py/main_dir