printRow("package", p.getPackageName(), 1000 * p.getTotalBugs() / p.size(), p.getTotalBugs(), p.size()); for (ClassStats c : p.getClassStats()) if (c.getTotalBugs() > 4){
printRow("package", p.getPackageName(), (100 * p.getTotalBugs() / p.size())/10.0d, p.getTotalBugs(), p.size()); for (ClassStats c : p.getClassStats()) if (c.getTotalBugs() > 4) {
	public static void main(String args[]) throws Exception {		Project project = new Project();		BugCollection origCollection = new SortedBugCollection();		int argCount = 0;		if (argCount == args.length)			origCollection.readXML(System.in, project);		else			origCollection.readXML(args[argCount], project);		ProjectStats stats = origCollection.getProjectStats();		printRow("kind", "name", "density/KNCSS", "bugs", "NCSS");		printRow("project", origCollection.getCurrentAppVersion().getReleaseName(), 1000 * stats.getTotalBugs() / stats.getCodeSize(), stats.getTotalBugs(),				stats.getCodeSize());		for (PackageStats p : stats.getPackageStats()) if (p.getTotalBugs() > 4) {							printRow("package", p.getPackageName(), 1000 * p.getTotalBugs()					/ p.size(), p.getTotalBugs(), p.size());			for (ClassStats c : p.getClassStats()) if (c.getTotalBugs() > 4){				printRow("class", c.getName(), 1000 * c.getTotalBugs()						/ c.size(), c.getTotalBugs(), c.size());			}		}	}