Code files for generating training data file