if (VERSION_INSENSITIVE) { System.out.println("Using version-insensitive bug comparator"); }  String origResultsFile = argv[0]; String newResultsFile = argv[1]; String outputFile = argv[2];
String origResultsFile = argv[argCount++]; String newResultsFile = argv[argCount++]; String outputFile = argv[argCount++];
	public static void main(String[] argv) throws Exception {		if (argv.length != 3) {			System.err.println("Usage: " + MergeResults.class.getName() + " <orig results> <new results> <output file>");			System.exit(1);		}		if (VERSION_INSENSITIVE) {			System.out.println("Using version-insensitive bug comparator");		}		String origResultsFile = argv[0];		String newResultsFile = argv[1];		String outputFile = argv[2];		MergeResults mergeResults = new MergeResults(origResultsFile, newResultsFile) {			final Set<String> updateCategorySet = new HashSet<String>();			protected boolean preserveUnconditionally(BugInstance bugInstance) {				return UPDATE_CATEGORIES && !updateCategorySet.contains(bugInstance.getAbbrev());			}			protected void lostWithAnnotation(BugInstance bugInstance) {				System.out.println("Losing a bug with an annotation:");				System.out.println(bugInstance.getMessage());				SourceLineAnnotation srcLine = bugInstance.getPrimarySourceLineAnnotation();				if (srcLine != null)					System.out.println("\t" + srcLine.toString());				System.out.println(bugInstance.getAnnotationText());			}			public void execute() {				if (UPDATE_CATEGORIES) {					DetectorFactoryCollection.instance(); // as a side effect, loads detector plugins					for (Iterator<BugInstance> i = getNewCollection().iterator(); i.hasNext();) {						// All bugs not in categories contained in the						// original set will be preserved unconditionally.						updateCategorySet.add(i.next().getAbbrev());					}					System.out.println("Updating only categories: " + updateCategorySet);				}				super.execute();			}		};		mergeResults.execute();		System.out.println(mergeResults.getNumPreserved() + " preserved, " +		        mergeResults.getNumAlreadyAnnotated() + " already annotated, " +		        mergeResults.getNumLost() + " lost (" +		        mergeResults.getNumLostWithAnnotations() + " lost with annotations)");		SortedBugCollection result = mergeResults.getNewCollection();		result.writeXML(outputFile, mergeResults.getProject());	}