def METHOD_NAME(classes, source_dir):
    """For each class, figure out which target it is associated with based
       on the file path."""
    for cl in classes.values():
        cl['target'] = get_target(source_dir, cl['filepath'])