Remove unnecessary codes in example files.