clean code from text data generation/loading