def nicer_name(self, fname):
        head, tail = os.path.split(fname)
        base, ext = os.path.splitext(tail)

        # Non templates keep their original name.
        if not self.is_template:
            return tail

        name = base.title().replace("-", " ").replace("_", " ")
        return name
Attempts to generate a nicer name from the filename.
dataset/ETHPy150Open ialbert/pyblue/pyblue/engine.py/File.nicer_name