<commit_before>package org.codehaus.groovy.grails.cli;

import gant.Gant

class WarTests  extends AbstractCliTests {

	void testWAR() {
		Gant.main(["-f", "scripts/CreateApp.groovy"] as String[])
		
		
		System.setProperty("base.dir", appBase + File.separatorChar + System.getProperty("grails.cli.args"))
		Gant.main(["-f", "scripts/War.groovy"] as String[])
		
		assert new File("${appBase}/testapp/testapp-0.1.war").exists()
		
		ant.unzip(src:"${appBase}/testapp/testapp-0.1.war", dest:"${appBase}/unzipped")
		
		// test critical files
		assert new File("${appBase}/unzipped/WEB-INF/applicationContext.xml").exists()
		assert new File("${appBase}/unzipped/WEB-INF/sitemesh.xml").exists()
		assert new File("${appBase}/unzipped/WEB-INF/grails.xml").exists()
		assert new File("${appBase}/unzipped/WEB-INF/web.template.xml").exists()
		assert new File("${appBase}/unzipped/css/main.css").exists()
		assert new File("${appBase}/unzipped/js/application.js").exists()
		assert new File("${appBase}/unzipped/WEB-INF/grails-app/i18n/messages.properties").exists()
		assert new File("${appBase}/unzipped/WEB-INF/grails-app/views/error.gsp").exists()
		assert new File("${appBase}/unzipped/WEB-INF/grails-app/views/layouts/main.gsp").exists()
			
	}

}<commit_msg>fix for failing test<commit_after>package org.codehaus.groovy.grails.cli;

import gant.Gant

class WarTests  extends AbstractCliTests {

	void testWAR() {
		Gant.main(["-f", "scripts/CreateApp.groovy"] as String[])
		
		
		System.setProperty("base.dir", appBase + File.separatorChar + System.getProperty("grails.cli.args"))
		Gant.main(["-f", "scripts/War.groovy"] as String[])
		
		assert new File("${appBase}/testapp/testapp-0.1.war").exists()
		
		ant.unzip(src:"${appBase}/testapp/testapp-0.1.war", dest:"${appBase}/unzipped")
		
		// test critical files
		assert new File("${appBase}/unzipped/WEB-INF/applicationContext.xml").exists()
		assert new File("${appBase}/unzipped/WEB-INF/sitemesh.xml").exists()
		assert new File("${appBase}/unzipped/WEB-INF/grails.xml").exists()
		assert new File("${appBase}/unzipped/WEB-INF/web.template.xml").exists()
		assert new File("${appBase}/unzipped/css/main.css").exists()
		assert new File("${appBase}/unzipped/js/application.js").exists()
		assert new File("${appBase}/unzipped/WEB-INF/grails-app/i18n/messages.properties").exists()
			
	}

}
{'fraction_non_alphanumeric': 0.19293015332197616, 'fraction_numerical': 0.005110732538330494, 'mean_word_length': 4.771498771498772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4937589', 'n_tokens_mistral': 921, 'n_tokens_neox': 833, 'n_words': 111}