def calculate_scala_record_genfiles(namespace, source):
  basepath = namespace.replace('.', '/')
  name = os.path.splitext(os.path.basename(source))[0]
  return [os.path.join(basepath, name)]
Returns the generated file basenames, add .java or .scala to get the full path.
dataset/ETHPy150Open pantsbuild/pants/contrib/spindle/src/python/pants/contrib/spindle/tasks/spindle_gen.py/calculate_scala_record_genfiles