nit - but I think this should be:

```
val allText = generatedFiles.map { file =>
```