Brevity is the soul of wit: Pruning long files for code generation