rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
regex = OCTAL_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); | String translatePattern(String regex, boolean commentsAllowed) { regex = COMMENT_PATTERN.matcher(regex).replaceAll(""); regex = HEX_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"x0$1"); regex = OCTAL_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); regex = OCTAL_THREE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); if (commentsAllowed) { regex = SPACE_IN_CHARACTER_CLASS_PATTERN.matcher(regex).replaceAll("$1\\\\x20$2"); regex = SHARP_IN_CHARACTER_CLASS_PATTERN.matcher(regex).replaceAll("$1\\\\x23$2"); } return regex; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/4d62d6f77d06ba34dda2ae56b8598e93f8ae39ad/RegexpTranslator.java/buggy/src/org/jruby/RegexpTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
4204,
3234,
12,
780,
3936,
16,
1250,
5678,
5042,
13,
288,
202,
202,
7584,
273,
19400,
67,
10831,
18,
22761,
12,
7584,
2934,
2079,
1595,
2932,
8863,
202,
202,
7584,
273,
23971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
4204,
3234,
12,
780,
3936,
16,
1250,
5678,
5042,
13,
288,
202,
202,
7584,
273,
19400,
67,
10831,
18,
22761,
12,
7584,
2934,
2079,
1595,
2932,
8863,
202,
202,
7584,
273,
23971,
... | |
} | } | public void updateStatus(String status) { Element processorList; try { SAXBuilder builder = new SAXBuilder(false); Document document = builder.build(new StringReader(status)); processorList = document.getRootElement().getChild("processorList"); Map changes = new HashMap(); for (Iterator i = processorList.getChildren("processor").iterator(); i.hasNext();) { Element processorElement = (Element) i.next(); Processor processor = ((ScuflGraphModel) getModel()).getModel().locateProcessor( processorElement.getAttributeValue("name")); Map attributes = graphModel.getAttributes(processor); if (attributes != null) { // Get the first child of the processor element. List childElementList = processorElement.getChildren(); if (childElementList.isEmpty() == false) { Element firstChildElement = (Element) childElementList.get(0); Color statusColour = getStatusColour(firstChildElement.getName()); Color existing = GraphConstants.getBackground(attributes); boolean iterating = (firstChildElement.getName().equalsIgnoreCase("invokingwithiteration")); if (statusColour != existing || iterating) { if (!iterating) { Map newColour = new HashMap(); // Insert progress cancellation - should fix partial colour bars after iterations newColour.put("progress","-1"); newColour.put("statuscolour1",statusColour); //GraphConstants.setBackground(newColour, statusColour); changes.put(processor, newColour); } else { int iterationNumber = Integer.parseInt(firstChildElement.getAttributeValue("IterationNumber")); int iterationTotal = Integer.parseInt(firstChildElement.getAttributeValue("IterationTotal")); int progress = (100*iterationNumber)/iterationTotal; System.out.println("Progress : "+progress); Map newStuff = new HashMap(); newStuff.put("progress",progress+""); newStuff.put("statuscolour1",GraphColours.getColour("gold", Color.GREEN)); newStuff.put("statuscolour2",GraphColours.getColour("medium purple", Color.MAGENTA)); //GraphConstants.setBackground(newStuff,GraphColours.getColour("gold", Color.GREEN)); changes.put(processor, newStuff); } } } } } if (!changes.isEmpty()) { graphModel.edit(changes, null, null, null); } } catch (Exception e) { // TODO Handle exceptions e.printStackTrace(); } } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/616692a3dea6585d031744ab88d3fb5a40c5112a/WorkflowEditor.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/graph/WorkflowEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1482,
12,
780,
1267,
13,
202,
95,
202,
202,
1046,
6659,
682,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
55,
2501,
1263,
2089,
273,
394,
10168,
1263,
12,
5743,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1482,
12,
780,
1267,
13,
202,
95,
202,
202,
1046,
6659,
682,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
55,
2501,
1263,
2089,
273,
394,
10168,
1263,
12,
5743,
17... |
String probeIdentifier = null; | String probePre = null; | public void process(Reader reader) throws Exception { BufferedReader br = new BufferedReader(reader); //intentionally throw away first line String line = br.readLine(); while ((line = br.readLine()) != null) { String[] array = line.split("\",\"", -1); //keep trailing empty Strings if (line.length() == 0 || line.startsWith("#")) { continue; } String probeId = array[0].substring(1); String probeIdentifier = null; String dataSetId = null; String orgId = null; String chipInfo = array[1]; if (chipInfo.equals("Human Genome U133A Array")) { probeIdentifier = probeId.concat("HG-U133A:"); dataSetId = dataSet1.getIdentifier(); orgId = organism.getIdentifier(); } else if (chipInfo.equals("Human Genome U95Av2 Array")) { probeIdentifier = probeId.concat("HG-U95Av2:"); dataSetId = dataSet2.getIdentifier(); orgId = organism.getIdentifier(); } else if (chipInfo.equals("Mouse Genome 430 2.0 Array")) { probeIdentifier = probeId.concat("Mouse430:"); dataSetId = dataSet3.getIdentifier(); orgId = organismMM.getIdentifier(); } String geneEnsembl = array[17]; //don't create probe if no ensembl id is given in the file if (geneEnsembl.startsWith("ENSG") || geneEnsembl.startsWith("ENSMUSG")) { Item probe = createProbe("CompositeSequence", probeIdentifier, orgId, dataSource.getIdentifier(), dataSetId, writer); StringTokenizer st = new StringTokenizer(geneEnsembl, "///"); ReferenceList rf = new ReferenceList("genes"); while (st.hasMoreTokens()) { String token = st.nextToken(); Item gene = createGene("Gene", orgId, token.trim(), writer); rf.addRefId(gene.getIdentifier()); } probe.addCollection(rf); writer.store(ItemHelper.convert(probe)); } } } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/087ec3384b799c876e5cac992d4e5999f0a96fd3/AffyConverter.java/clean/flymine/model/cdnaclone/src/java/org/flymine/dataconversion/AffyConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
2514,
2949,
13,
1216,
1185,
288,
3639,
10633,
5186,
273,
394,
10633,
12,
10530,
1769,
3639,
368,
474,
22918,
604,
10804,
1122,
980,
3639,
514,
980,
273,
5186,
18,
896... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
2514,
2949,
13,
1216,
1185,
288,
3639,
10633,
5186,
273,
394,
10633,
12,
10530,
1769,
3639,
368,
474,
22918,
604,
10804,
1122,
980,
3639,
514,
980,
273,
5186,
18,
896... |
JobChangeAdapter listener = new JobChangeAdapter() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) { close(); String newTaskHandle = AbstractRepositoryTask.getHandle(repository.getUrl(), event .getJob().getResult().getMessage()); ITask newTask = TasksUiPlugin.getTaskListManager().getTaskList().getTask(newTaskHandle); if (newTask != null) { Calendar selectedDate = datePicker.getDate(); if(selectedDate != null) { TasksUiPlugin.getTaskListManager().setScheduledFor(newTask, selectedDate.getTime()); } newTask.setEstimatedTimeHours(estimated.getSelection()); Object selectedObject = null; if (TaskListView.getFromActivePerspective() != null) selectedObject = ((IStructuredSelection) TaskListView .getFromActivePerspective().getViewer().getSelection()) .getFirstElement(); if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().moveToContainer( ((TaskCategory) selectedObject), newTask); } TaskUiUtil.refreshAndOpenTaskListElement(newTask); } return; } else if (event.getJob().getResult().getCode() == Status.ERROR) { TracUiPlugin.handleTracException(event.getJob().getResult()); submitButton.setEnabled(true); showBusy(false); } } }); } }; | protected void submitBug() { if (!prepareSubmit()) { return; } final TracRepositoryConnector connector = (TracRepositoryConnector) TasksUiPlugin.getRepositoryManager().getRepositoryConnector( repository.getKind()); updateBug(); JobChangeAdapter listener = new JobChangeAdapter() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) { close(); String newTaskHandle = AbstractRepositoryTask.getHandle(repository.getUrl(), event .getJob().getResult().getMessage()); ITask newTask = TasksUiPlugin.getTaskListManager().getTaskList().getTask(newTaskHandle); if (newTask != null) { Calendar selectedDate = datePicker.getDate(); if(selectedDate != null) { //NewLocalTaskAction.scheduleNewTask(newTask); TasksUiPlugin.getTaskListManager().setScheduledFor(newTask, selectedDate.getTime()); } newTask.setEstimatedTimeHours(estimated.getSelection()); Object selectedObject = null; if (TaskListView.getFromActivePerspective() != null) selectedObject = ((IStructuredSelection) TaskListView .getFromActivePerspective().getViewer().getSelection()) .getFirstElement(); if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().moveToContainer( ((TaskCategory) selectedObject), newTask); } TaskUiUtil.refreshAndOpenTaskListElement(newTask); } return; } else if (event.getJob().getResult().getCode() == Status.ERROR) { TracUiPlugin.handleTracException(event.getJob().getResult()); submitButton.setEnabled(true); showBusy(false); } } }); } }; final TracTicket ticket; try { ticket = TracRepositoryConnector.getTracTicket(repository, getRepositoryTaskData()); } catch (InvalidTicketException e) { TracUiPlugin.handleTracException(e); submitButton.setEnabled(true); showBusy(false); return; } final boolean addToRoot = addToTaskListRoot.getSelection(); Job submitJob = new Job(SUBMIT_JOB_LABEL) { @Override protected IStatus run(IProgressMonitor monitor) { try { ITracClient server = connector.getClientManager().getRepository(repository); int id = server.createTicket(ticket); TracTask newTask = new TracTask(AbstractRepositoryTask.getHandle(repository.getUrl(), id), TracRepositoryConnector.getTicketDescription(ticket), true); if (addToRoot) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } else { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask); } java.util.List<TaskRepository> repositoriesToSync = new ArrayList<TaskRepository>(); repositoriesToSync.add(repository); TasksUiPlugin.getSynchronizationScheduler().synchNow(0, repositoriesToSync); return Status.OK_STATUS; } catch (Exception e) { return TracCorePlugin.toStatus(e); } } }; submitJob.addJobChangeListener(listener); submitJob.schedule(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1877f531fc9bd4e5f07b003ce4f07b2c5e9ac505/NewTracTaskEditor.java/buggy/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/NewTracTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4879,
19865,
1435,
288,
202,
202,
430,
16051,
9366,
11620,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
2197,
71,
3305,
7487,
8703,
273,
261,
1609,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4879,
19865,
1435,
288,
202,
202,
430,
16051,
9366,
11620,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
6385,
2197,
71,
3305,
7487,
8703,
273,
261,
1609,
71,
... | |
private Converter getConverter(final Function<Class<? extends Annotation>, Annotation> annotationProvider, | private Converter getConverter(final AnnotatedElement annotationProvider, | private Converter getConverter(final Function<Class<? extends Annotation>, Annotation> annotationProvider, Class parameter, final Factory<Converter> continuation) { final Resolve resolveAnnotation = (Resolve)annotationProvider.fun(Resolve.class); if (resolveAnnotation != null) { return DomResolveConverter.createConverter(resolveAnnotation.value()); } final Convert convertAnnotation = (Convert)annotationProvider.fun(Convert.class); final ConverterManager converterManager = myManager.getConverterManager(); if (convertAnnotation != null) { return converterManager.getConverterInstance(convertAnnotation.value()); } final Converter converter = continuation.create(); if (converter != null) { return converter; } return parameter == null ? null : converterManager.getConverterByClass(parameter); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/54db96a7e7eb53da6fe993c656f312cdf31aaaa7/DomInvocationHandler.java/buggy/dom/impl/src/com/intellij/util/xml/impl/DomInvocationHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
14768,
31173,
12,
6385,
23762,
1046,
3204,
2249,
16,
4766,
1659,
1569,
16,
4766,
727,
7822,
32,
5072,
34,
17378,
13,
288,
565,
727,
9910,
2245,
3257,
273,
261,
8460,
13,
11495,
2249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
14768,
31173,
12,
6385,
23762,
1046,
3204,
2249,
16,
4766,
1659,
1569,
16,
4766,
727,
7822,
32,
5072,
34,
17378,
13,
288,
565,
727,
9910,
2245,
3257,
273,
261,
8460,
13,
11495,
2249... |
public static void main(String[] args) { try { //System.err.println("entered main"); splashScreen = new SplashScreen("Initialising. Please wait...", 20); splashScreen.incProgress(); Browser f = new Browser(WIDTH, HEIGHT); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); if (args.length > 0 && args[0] != null) if (args[0].equals("-standalone") || f.workOffline() ) { f.standAlone = true; f.chooseNewLocalCorpus(); //f.dictionary = new Dictionary(); } else f.SERVER = args[0]; // SL: all this needs to be revamped to allow user to choose which // corpus server(s) to connect to. else if ( f.workOffline() ) if ( f.clProperties.getProperty("last.index.dir") == null) f.chooseNewLocalCorpus(); else f.setLocalCorpus(f.clProperties.getProperty("last.index.dir")); else if ( f.clProperties.getProperty("tec.client.server") != null ) f.SERVER = f.clProperties.getProperty("tec.client.server"); f.HEDBAS = "http://"+f.SERVER+"/tec/headers"; if ( f.clProperties.getProperty("tec.client.headers") != null ) f.HEDBAS = f.clProperties.getProperty("tec.client.headers"); //f.show(); if ( f.clProperties.getProperty("tec.client.port") != null ) f.PORTNUM = new Integer(f.clProperties.getProperty("tec.client.port")).intValue(); //f.setAdvSearchOptions(); f.pack(); splashScreen.dismiss(); f.setVisible(true); f.noApplet = true; //System.err.println("SERVER="+f.SERVER+" PORT="+f.PORTNUM+"\nHEADERS="+f.HEDBAS); } catch (Exception e){ System.err.println(e+" Usage: Browser HOSTNAME\n See also client.properties"); e.printStackTrace(); System.exit(1); }} | 55997 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55997/d9c398b6a96694293062ede8d2a45ea00b897817/Browser.java/clean/trunk/src/modnlp/tec/client/Browser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
775,
288,
1377,
368,
3163,
18,
370,
18,
8222,
2932,
2328,
329,
2774,
8863,
1377,
6121,
961,
7956,
273,
394,
29356,
7956,
2932,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
775,
288,
1377,
368,
3163,
18,
370,
18,
8222,
2932,
2328,
329,
2774,
8863,
1377,
6121,
961,
7956,
273,
394,
29356,
7956,
2932,
44... | ||
public void widgetSelected(SelectionEvent selectionEvent) { _translation.switchTranslation(translation); } | public void widgetSelected(SelectionEvent selectionEvent) { s.dispose(); } | public void widgetSelected(SelectionEvent selectionEvent) { _translation.switchTranslation(translation); } | 27487 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27487/11b93fac156f73d481a1162431aa5a53ab6bdc0b/Browser.java/clean/src/syndie/gui/Browser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3604,
7416,
12,
6233,
1133,
4421,
1133,
13,
288,
10792,
389,
10173,
18,
9610,
6717,
12,
10173,
1769,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3604,
7416,
12,
6233,
1133,
4421,
1133,
13,
288,
10792,
389,
10173,
18,
9610,
6717,
12,
10173,
1769,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
+ Project.getFormatedTime(now) | + DateUtil.getFormattedTime(now) | public void testBuild() throws Exception { Date now = new Date(); MockModificationSet modSet = new MockModificationSet(); modSet.setTimeOfCheck(now); MockSchedule sched = new MockSchedule(); project.setSchedule(sched); project.setLabel("1.2.2"); project.setName("myproject"); project.setWasLastBuildSuccessful(false); File logDir = new File(TEST_DIR + File.separator + "test-results"); logDir.mkdir(); project.getLog().setLogDir(TEST_DIR + File.separator + "test-results"); project.setLogXmlEncoding("ISO-8859-1"); MergeLogger logger = new MergeLogger(); logger.setFile(TEST_DIR + File.separator + "_auxLog1.xml"); project.getLog().addLogger(logger); logger = new MergeLogger(); logger.setDir(TEST_DIR + File.separator + "_auxLogs"); project.getLog().addLogger(logger); project.setLabelIncrementer(new DefaultLabelIncrementer()); project.setModificationSet(modSet); project.setLastBuild(formatTime(now)); project.setLastSuccessfulBuild(formatTime(now)); writeFile(TEST_DIR + File.separator + "_auxLog1.xml", "<one/>"); File auxLogsDirectory = new File(TEST_DIR + File.separator + "_auxLogs"); auxLogsDirectory.mkdir(); writeFile(TEST_DIR + File.separator + "_auxLogs/_auxLog2.xml", "<testsuite><properties><property/></properties><testcase/></testsuite>"); writeFile(TEST_DIR + File.separator + "_auxLogs/_auxLog3.xml", "<testsuite/>"); final ArrayList resultEvents = new ArrayList(); project.addBuildResultListener(new BuildResultListener() { public void handleBuildResult(BuildResultEvent event) { resultEvents.add(event); } }); final ArrayList progressEvents = new ArrayList(); project.addBuildProgressListener(new BuildProgressListener() { public void handleBuildProgress(BuildProgressEvent event) { progressEvents.add(event); } }); project.build(); filesToClear.add(project.getLog().getLastLogFile()); assertTrue(project.isLastBuildSuccessful()); String expected = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><cruisecontrol><modifications />" + "<info>" + "<property name=\"projectname\" value=\"myproject\" />" + "<property name=\"lastbuild\" value=\"" + Project.getFormatedTime(now) + "\" />" + "<property name=\"lastsuccessfulbuild\" value=\"" + project.getLastSuccessfulBuild() + "\" />" + "<property name=\"builddate\" value=\"" + new SimpleDateFormat(DateFormatFactory.getFormat()).format(now) + "\" />" + "<property name=\"cctimestamp\" value=\"" + Project.getFormatedTime(now) + "\" />" + "<property name=\"label\" value=\"1.2.2\" />" + "<property name=\"interval\" value=\"300\" />" + "<property name=\"lastbuildsuccessful\" value=\"false\" />" + "<property name=\"logdir\" value=\"" + logDir.getAbsolutePath() + "\" />" + "<property name=\"logfile\" value=\"" + "log" + Project.getFormatedTime(now) + "L1.2.2.xml\" />" + "</info><build /><one /><testsuite><testcase /></testsuite><testsuite /></cruisecontrol>"; assertEquals(expected, Util.readFileToString(project.getLog().getLastLogFile())); assertEquals("Didn't increment the label", "1.2.3", project.getLabel().intern()); //look for sourcecontrol properties java.util.Map props = sched.getBuildProperties(); assertNotNull("Build properties were null.", props); assertEquals("Build property count.", 8, props.size()); assertTrue("filemodified not found.", props.containsKey("filemodified")); assertTrue("fileremoved not found.", props.containsKey("fileremoved")); assertEquals(project.getLastSuccessfulBuild(), props.get("cclastgoodbuildtimestamp")); assertEquals(project.getLastBuild(), props.get("cclastbuildtimestamp")); assertTrue("cvstimestamp not passed.", props.containsKey("cvstimestamp")); // check that the proper events were fired assertEquals("Should be exactly one build result event", 1, resultEvents.size()); BuildResultEvent resultEvent = (BuildResultEvent) resultEvents.get(0); assertTrue("Should be successful build result event", resultEvent.isBuildSuccessful()); assertEquals("Should be exactly 6 build progress events", 6, progressEvents.size()); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/63dd79f033547566736111c08f631c0430c710a0/ProjectTest.java/clean/main/test/net/sourceforge/cruisecontrol/ProjectTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3116,
1435,
1216,
1185,
288,
3639,
2167,
2037,
273,
394,
2167,
5621,
3639,
7867,
13467,
694,
681,
694,
273,
394,
7867,
13467,
694,
5621,
3639,
681,
694,
18,
542,
950,
951... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3116,
1435,
1216,
1185,
288,
3639,
2167,
2037,
273,
394,
2167,
5621,
3639,
7867,
13467,
694,
681,
694,
273,
394,
7867,
13467,
694,
5621,
3639,
681,
694,
18,
542,
950,
951... |
setTimeLine(avgFileSize); | addTimeLine(avgFileSize); | public AvgFileSizeChart(CvsContent content) { super("file_size.png", I18n.tr("File Size")); List files = content.getFiles(); TimeLine avgFileSize = new AvgFileSizeTimeLineReport(files).getTimeLine(); setRangeLabel(avgFileSize.getRangeLabel()); setTimeLine(avgFileSize); getChart().setLegend(null); placeTitle(); } | 12751 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12751/7bcc0c38080f1aa779a4bcfdc98b14b21d7b5e3a/AvgFileSizeChart.java/buggy/statcvs-xml/src/net/sf/statcvs/output/xml/chart/AvgFileSizeChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8789,
75,
15100,
7984,
12,
39,
6904,
1350,
913,
13,
288,
202,
202,
9565,
2932,
768,
67,
1467,
18,
6446,
3113,
467,
2643,
82,
18,
313,
2932,
812,
6321,
7923,
1769,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8789,
75,
15100,
7984,
12,
39,
6904,
1350,
913,
13,
288,
202,
202,
9565,
2932,
768,
67,
1467,
18,
6446,
3113,
467,
2643,
82,
18,
313,
2932,
812,
6321,
7923,
1769,
1082,
202,
... |
offset = GET_OFFSET(program, pc); | offset = getOffset(program, pc); | executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; pushProgState(gData, 0, 0, null, currentContinuation_pc, currentContinuation_op); nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state = popProgState(gData); currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; pushProgState(gData, 0, 0, gData.backTrackLast, currentContinuation_pc, currentContinuation_op); if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state = popProgState(gData); gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } pushProgState(gData, min, max, null, currentContinuation_pc, currentContinuation_op); if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state = popProgState(gData); if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; if (new_max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state = popProgState(gData); if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { pushProgState(gData, state.min, state.max, null, state.continuation_pc, state.continuation_op); currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } int new_min = state.min, new_max = state.max; if (new_min != 0) new_min--; if (new_max != -1) new_max--; pushProgState(gData, new_min, new_max, null, state.continuation_pc, state.continuation_op); if (new_min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); popProgState(gData); pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/7ee5a14c0cac11724d22286034567fd418e25797/NativeRegExp.java/buggy/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
... |
break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; | private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/126c8b01768c9be523a6baffb01538d1aba40e1e/WMParser_implTokenManager.java/buggy/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
24,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | |
public String getUIClassID() { return uiClassID; } | public String getUIClassID() { return "FileChooserUI"; } | public String getUIClassID() { return uiClassID; } // getUIClassID() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
5370,
797,
734,
1435,
288,
202,
202,
2463,
5915,
797,
734,
31,
202,
97,
368,
336,
5370,
797,
734,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
5370,
797,
734,
1435,
288,
202,
202,
2463,
5915,
797,
734,
31,
202,
97,
368,
336,
5370,
797,
734,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (jtype == java.sql.Types.VARBINARY) { assertTrue(compareBytes(cstmt.getBytes(1), (byte[])datatypes[i][2]) == 0); } else if (datatypes[i][2] instanceof Number) { Number n = (Number)cstmt.getObject(1); assertEquals("Failed on " + datatypes[i][0], ((Number)cstmt.getObject(1)).doubleValue(), ((Number)datatypes[i][2]).doubleValue(),0.001); } else { assertEquals("Failed on " + datatypes[i][0], cstmt.getObject(1), datatypes[i][2]); } cstmt.executeUpdate(" drop procedure #freetds_outputTest"); | if (jtype == java.sql.Types.VARBINARY) { assertTrue(compareBytes(cstmt.getBytes(1), (byte[])datatypes[i][2]) == 0); } else if (datatypes[i][2] instanceof Number) { Number n = (Number)cstmt.getObject(1); assertEquals("Failed on " + datatypes[i][0], ((Number)cstmt.getObject(1)).doubleValue(), ((Number)datatypes[i][2]).doubleValue(),0.001); } else { assertEquals("Failed on " + datatypes[i][0], cstmt.getObject(1), datatypes[i][2]); } | public void testOutputParams() throws Exception { Connection cx = getConnection(); Statement stmt = cx.createStatement(); dropProcedure("#freetds_outputTest"); Object[][] datatypes = getDatatypes(); for (int i = 0; i < datatypes.length; i++) { for (int pass = 0; pass < 2; pass++) { String sql = "create procedure #freetds_outputTest " + "@a1 " + datatypes[i][0] + " = null out " + "as select @a1 = " + datatypes[i][1]; stmt.executeUpdate(sql); CallableStatement cstmt = cx.prepareCall("{call #freetds_outputTest[(?)]}"); int jtype = getType(datatypes[i][2]); if (jtype == java.sql.Types.NUMERIC || jtype == java.sql.Types.DECIMAL) { cstmt.registerOutParameter(1, jtype, 10); if (pass == 0) cstmt.setObject(1,datatypes[i][2],jtype,10); } else if (jtype == java.sql.Types.VARCHAR) { cstmt.registerOutParameter(1, jtype, 2000); if (pass == 0) cstmt.setObject(1,datatypes[i][2]); } else { cstmt.registerOutParameter(1, jtype); if (pass == 0) cstmt.setObject(1,datatypes[i][2]); } if (!cstmt.execute()) while(cstmt.getUpdateCount() != -1 && cstmt.getMoreResults()) ; if (jtype == java.sql.Types.VARBINARY) { assertTrue(compareBytes(cstmt.getBytes(1), (byte[])datatypes[i][2]) == 0); } else if (datatypes[i][2] instanceof Number) { Number n = (Number)cstmt.getObject(1); assertEquals("Failed on " + datatypes[i][0], ((Number)cstmt.getObject(1)).doubleValue(), ((Number)datatypes[i][2]).doubleValue(),0.001); } else { assertEquals("Failed on " + datatypes[i][0], cstmt.getObject(1), datatypes[i][2]); } cstmt.executeUpdate(" drop procedure #freetds_outputTest"); } // for (pass } // for (int } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/d7778cea5f73698713bc25ca0a6675f9e7e58e90/TimestampTest.java/buggy/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1447,
1370,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
7285,
17213,
2932,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1447,
1370,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
7285,
17213,
2932,
7,
... |
Tool tool = ToolManager.getCurrentTool(); String url = (String) toolSession.getAttribute(tool.getId() + Tool.HELPER_DONE_URL); toolSession.removeAttribute(tool.getId() + Tool.HELPER_DONE_URL); | public void doContinue(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); String content = params.getString("content"); if(content == null) { addAlert(state, "Please enter the contents of the text document"); return; } ToolSession toolSession = SessionManager.getCurrentToolSession(); Tool tool = ToolManager.getCurrentTool(); String url = (String) toolSession.getAttribute(tool.getId() + Tool.HELPER_DONE_URL); toolSession.removeAttribute(tool.getId() + Tool.HELPER_DONE_URL); ResourceToolActionPipe pipe = (ResourceToolActionPipe) toolSession.getAttribute(ResourceToolAction.ACTION_PIPE); pipe.setContent(content.getBytes()); pipe.setActionCanceled(false); pipe.setErrorEncountered(false); pipe.setActionCompleted(true); } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/8522ccdec00128524544b8cbc80ecc2db0ca8821/ResourcesHelperAction.java/clean/content/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
12378,
12,
1997,
751,
501,
13,
202,
95,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
892,
2934,
588,
18566,
2157,
1119,
261,
12443,
46,
2413... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
12378,
12,
1997,
751,
501,
13,
202,
95,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
892,
2934,
588,
18566,
2157,
1119,
261,
12443,
46,
2413... | |
public void removeActionListener(ActionListener l) { getModel().removeActionListener(l); } | public void removeActionListener(ActionListener l) { listenerList.remove(ActionListener.class, l); } | public void removeActionListener(ActionListener l) { getModel().removeActionListener(l); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
1803,
2223,
12,
1803,
2223,
328,
13,
288,
202,
202,
588,
1488,
7675,
4479,
1803,
2223,
12,
80,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
1803,
2223,
12,
1803,
2223,
328,
13,
288,
202,
202,
588,
1488,
7675,
4479,
1803,
2223,
12,
80,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (pdc == null){ | if (pdc == null){ | private void createElement(Parent parent, SimpleDeclaration simpleDeclaration, Declarator declarator){ // typedef if(simpleDeclaration.getDeclSpecifier().isTypedef()){ createTypeDef(parent, declarator, simpleDeclaration); } else { ParameterDeclarationClause pdc = declarator.getParms(); if (pdc == null){ createVariableSpecification(parent, simpleDeclaration, declarator); } else{ createFunctionSpecification(parent, simpleDeclaration, declarator, pdc, false); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/c4797175114f1018d008b9e2e9e33027cd71df77/CModelBuilder.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/CModelBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6310,
12,
3054,
982,
16,
4477,
6094,
4143,
6094,
16,
16110,
5880,
3496,
5880,
15329,
202,
202,
759,
618,
536,
202,
202,
430,
12,
9647,
6094,
18,
588,
3456,
21416,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6310,
12,
3054,
982,
16,
4477,
6094,
4143,
6094,
16,
16110,
5880,
3496,
5880,
15329,
202,
202,
759,
618,
536,
202,
202,
430,
12,
9647,
6094,
18,
588,
3456,
21416,
7675,
... |
private XQWSDescription getXQWSDescription(DBBroker broker, String path, HttpServletRequest request) throws PermissionDeniedException, XPathException | private XQWSDescription getXQWSDescription(DBBroker broker, String path, HttpServletRequest request) throws PermissionDeniedException, XPathException, SAXException, NotFoundException | private XQWSDescription getXQWSDescription(DBBroker broker, String path, HttpServletRequest request) throws PermissionDeniedException, XPathException { XQWSDescription description; //is there a description for this path if(XQWSDescriptionsCache.containsKey(path)) { //get the description from the cache description = (XQWSDescription)XQWSDescriptionsCache.get(path); //is the description is invalid, refresh it if(!description.isValid()) { description.refresh(request); } } else { //create a new description description = new XQWSDescription(broker, path, request); } //store description in the cache XQWSDescriptionsCache.put(path, description); //return the description return description; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/a8a9c0373ce955c1d30c069ff02437ddc5be4188/SOAPServer.java/buggy/src/org/exist/http/SOAPServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1139,
53,
2651,
3291,
6538,
53,
2651,
3291,
12,
2290,
11194,
8625,
16,
514,
589,
16,
9984,
590,
13,
1216,
8509,
15877,
16,
10172,
503,
16,
14366,
16,
12323,
565,
288,
377,
202,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1139,
53,
2651,
3291,
6538,
53,
2651,
3291,
12,
2290,
11194,
8625,
16,
514,
589,
16,
9984,
590,
13,
1216,
8509,
15877,
16,
10172,
503,
16,
14366,
16,
12323,
565,
288,
377,
202,
60... |
if(remoteSyncTimeout!=null) { | if (remoteSyncTimeout != null) { | public Object clone()// throws CloneNotSupportedException { UMOEndpoint clone = new MuleEndpoint(name, endpointUri, connector, transformer, type, createConnector, endpointEncoding, (properties == null ? null : new HashMap(properties))); clone.setTransactionConfig(transactionConfig); clone.setFilter(filter); clone.setSecurityFilter(securityFilter); if(remoteSync!=null) { clone.setRemoteSync(isRemoteSync()); } if(remoteSyncTimeout!=null) { clone.setRemoteSyncTimeout(getRemoteSyncTimeout()); } if (synchronous != null) { clone.setSynchronous(synchronous.booleanValue()); } clone.setDeleteUnacceptedMessages(deleteUnacceptedMessages); clone.setInitialState(initialState); if(initialised.get()) { try { clone.initialise(); } catch (InitialisationException e) { //this really should never happen as the endpoint is already initialised logger.error(e.getMessage(), e); } } return clone; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/f3db80de52533a7bcc1728c297f8d6cc6d1f68da/ImmutableMuleEndpoint.java/buggy/mule/src/java/org/mule/impl/ImmutableMuleEndpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
759,
1216,
12758,
25482,
565,
288,
3639,
587,
5980,
3293,
3236,
273,
394,
490,
725,
3293,
12,
529,
16,
4766,
2398,
2494,
3006,
16,
4766,
2398,
8703,
16,
4766,
2398... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
759,
1216,
12758,
25482,
565,
288,
3639,
587,
5980,
3293,
3236,
273,
394,
490,
725,
3293,
12,
529,
16,
4766,
2398,
2494,
3006,
16,
4766,
2398,
8703,
16,
4766,
2398... |
public Scanner( boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean checkNonExternalizedStringLiterals, boolean assertMode, boolean strictCommentMode, char[][] taskTags, char[][] taskPriorities) { this.eofPosition = Integer.MAX_VALUE; this.tokenizeComments = tokenizeComments; this.tokenizeWhiteSpace = tokenizeWhiteSpace; this.checkNonExternalizedStringLiterals = checkNonExternalizedStringLiterals; this.assertMode = assertMode; this.strictCommentMode = strictCommentMode; this.taskTags = taskTags; this.taskPriorities = taskPriorities; | public Scanner() { this(false /*comment*/, false /*whitespace*/, false /*nls*/, false /*assert*/, false /*strict comment*/, null/*taskTag*/, null/*taskPriorities*/); | public Scanner( boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean checkNonExternalizedStringLiterals, boolean assertMode, boolean strictCommentMode, char[][] taskTags, char[][] taskPriorities) { this.eofPosition = Integer.MAX_VALUE; this.tokenizeComments = tokenizeComments; this.tokenizeWhiteSpace = tokenizeWhiteSpace; this.checkNonExternalizedStringLiterals = checkNonExternalizedStringLiterals; this.assertMode = assertMode; this.strictCommentMode = strictCommentMode; this.taskTags = taskTags; this.taskPriorities = taskPriorities;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2fb6cfff97b8ea1de3242370faafe1da60fed9f6/Scanner.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
19074,
12,
202,
6494,
13672,
9051,
16,
225,
202,
6494,
13672,
23108,
16,
225,
202,
6494,
866,
3989,
6841,
1235,
780,
48,
11235,
16,
225,
202,
6494,
1815,
2309,
16,
202,
6494,
5490,
4469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
19074,
12,
202,
6494,
13672,
9051,
16,
225,
202,
6494,
13672,
23108,
16,
225,
202,
6494,
866,
3989,
6841,
1235,
780,
48,
11235,
16,
225,
202,
6494,
1815,
2309,
16,
202,
6494,
5490,
4469,... |
public void setLocalUsername(String localUsername){ this.localUsername=localUsername; | public void setLocalUsername(String localUsername) { this.localUsername = localUsername; | public void setLocalUsername(String localUsername){ this.localUsername=localUsername; } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/fbad105e7d9ea7ac1635b30918b5e8fc4f986ab5/JmsConnector.java/buggy/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27970,
8575,
12,
780,
1191,
8575,
15329,
3639,
333,
18,
3729,
8575,
33,
3729,
8575,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27970,
8575,
12,
780,
1191,
8575,
15329,
3639,
333,
18,
3729,
8575,
33,
3729,
8575,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public Hashtable getLocalNodeReceivedMessagesFromStatistic () { | public Hashtable getLocalNodeReceivedMessagesFromStatistic () { | public Hashtable getLocalNodeReceivedMessagesFromStatistic () { return localNodeReceivedMessageTypes; } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/1f4125bd4467d83bcbff54d12bdfbc175bb0f960/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18559,
6993,
907,
8872,
5058,
1265,
20673,
1832,
202,
95,
202,
202,
2463,
1191,
907,
8872,
1079,
2016,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18559,
6993,
907,
8872,
5058,
1265,
20673,
1832,
202,
95,
202,
202,
2463,
1191,
907,
8872,
1079,
2016,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public void scan(Folder folder, boolean manual) { | public void scan(Folder folder, boolean manual) { | public void scan(Folder folder, boolean manual) { // TODO / Ideas: // FolderScanner should only have ONE folder to be scanned at a time, // no queue. If this method gets called while scanning process is // running throw a IllegalStateException. A new scan should only be // startable swhen // 1. the former scan was finished or 2. the former scan was canceled synchronized (foldersToScan) { if (manual) { foldersToScan.add(0, folder); } else { foldersToScan.add(folder); } } synchronized (this) { notify(); } } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/6cb9bb7552e4e9ee12e7a642713b25293b4311a9/FolderScanner.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4135,
12,
3899,
3009,
16,
1250,
11297,
13,
288,
5411,
368,
2660,
342,
23062,
345,
30,
3639,
368,
12623,
11338,
1410,
1338,
1240,
15623,
3009,
358,
506,
22711,
622,
279,
813,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4135,
12,
3899,
3009,
16,
1250,
11297,
13,
288,
5411,
368,
2660,
342,
23062,
345,
30,
3639,
368,
12623,
11338,
1410,
1338,
1240,
15623,
3009,
358,
506,
22711,
622,
279,
813,
16... |
} catch(FinderException e){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Couldn't find username in database."); throw e; | } catch (FinderException e) { logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Couldn't find username in database."); throw e; | public void setUserStatus(Admin admin, String username, int status) throws AuthorizationDeniedException, FinderException { debug(">setUserStatus("+username+", "+status+")"); // Check if administrator is authorized to edit user. int caid = ILogSessionLocal.INTERNALCAID; try{ UserDataPK pk = new UserDataPK(username); UserDataLocal data1 = home.findByPrimaryKey(pk); caid = data1.getCAId(); if(!authorizedToCA(admin, caid)){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Administrator not authorized to change status of user with current CA."); throw new AuthorizationDeniedException("Administrator not authorized to set status to user with given CA."); } if(getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()){ if(!authorizedToEndEntityProfile(admin, data1.getEndEntityProfileId(), AvailableAccessRules.EDIT_RIGHTS)){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Administrator not authorized to change status"); throw new AuthorizationDeniedException("Administrator not authorized to edit user."); } } data1.setStatus(status); data1.setTimeModified((new java.util.Date()).getTime()); logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,("New status : " + status)); } catch(FinderException e){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Couldn't find username in database."); throw e; } debug("<setUserStatus("+username+", "+status+")"); } // setUserStatus | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/ccb0ad29d39a3f815cc97cd37d04cf533c4593c3/LocalUserAdminSessionBean.java/buggy/src/java/se/anatom/ejbca/ra/LocalUserAdminSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14365,
1482,
12,
4446,
3981,
16,
514,
2718,
16,
509,
1267,
13,
1216,
10234,
15877,
16,
19307,
503,
288,
3639,
1198,
2932,
34,
542,
1299,
1482,
2932,
15,
5053,
15,
3113,
13773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14365,
1482,
12,
4446,
3981,
16,
514,
2718,
16,
509,
1267,
13,
1216,
10234,
15877,
16,
19307,
503,
288,
3639,
1198,
2932,
34,
542,
1299,
1482,
2932,
15,
5053,
15,
3113,
13773,
... |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/b1293eda8454686e846e2a9837b348e2983bb423/RedoNode.java/buggy/src/org/jruby/ast/RedoNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
10582,
1435,
288,
3639,
327,
8984,
67,
7085,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rac.seek(this.fileStart+start); return new SharedRandomContentInputStream(fo, this.fileStart+start, start, end, rac.getInputStream()); | rac.seek(newFileStart); return new SharedRandomContentInputStream( fo, newFileStart, newFileEnd, rac.getInputStream()); | public InputStream newStream(long start, long end) { try { RandomAccessContent rac = fo.getContent().getRandomAccessContent(RandomAccessMode.READ); rac.seek(this.fileStart+start); return new SharedRandomContentInputStream(fo, this.fileStart+start, start, end, rac.getInputStream()); } catch (IOException e) { throw new RuntimeException(e); } } | 50122 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50122/a224eb6a5ec13b0376058b118c9683be87506a27/SharedRandomContentInputStream.java/buggy/sandbox/src/main/java/org/apache/commons/vfs/util/SharedRandomContentInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5037,
394,
1228,
12,
5748,
787,
16,
1525,
679,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
8529,
1862,
1350,
767,
71,
273,
18261,
18,
588,
1350,
7675,
588,
8529,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5037,
394,
1228,
12,
5748,
787,
16,
1525,
679,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
8529,
1862,
1350,
767,
71,
273,
18261,
18,
588,
1350,
7675,
588,
8529,
18... |
hc = ObjectUtil.hashCode(hc, querySeq); hc = ObjectUtil.hashCode(hc, sequenceDB); hc = ObjectUtil.hashCode(hc, searchParameters); hc = ObjectUtil.hashCode(hc, hits); hc = ObjectUtil.hashCode(hc, annotation); | hc = ObjectUtil.hashCode(hc, querySeq); hc = ObjectUtil.hashCode(hc, sequenceDB); hc = ObjectUtil.hashCode(hc, searchParameters); hc = ObjectUtil.hashCode(hc, hits); hc = ObjectUtil.hashCode(hc, annotation); | public int hashCode() { int hc = 0; hc = ObjectUtil.hashCode(hc, querySeq); hc = ObjectUtil.hashCode(hc, sequenceDB); hc = ObjectUtil.hashCode(hc, searchParameters); hc = ObjectUtil.hashCode(hc, hits); hc = ObjectUtil.hashCode(hc, annotation); return hc; } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/5d8f0472e505e38cb8a0a330aae9d45cebac1fbf/SequenceDBSearchResult.java/clean/src/org/biojava/bio/search/SequenceDBSearchResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13374,
1435,
565,
288,
202,
474,
11684,
273,
374,
31,
202,
28353,
273,
1033,
1304,
18,
2816,
1085,
12,
28353,
16,
843,
6926,
1769,
202,
28353,
273,
1033,
1304,
18,
2816,
1085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
13374,
1435,
565,
288,
202,
474,
11684,
273,
374,
31,
202,
28353,
273,
1033,
1304,
18,
2816,
1085,
12,
28353,
16,
843,
6926,
1769,
202,
28353,
273,
1033,
1304,
18,
2816,
1085,
... |
String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n"; | String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n"; | public WorkflowItem startWorkflow() throws SQLException, AuthorizeException { // FIXME Check auth // Set accession date DCDate d = DCDate.getCurrent(); item.addDC("date", "accessioned", null, d.toString()); // Get non-internal format bitstreams Bitstream[] bitstreams = item.getNonInternalBitstreams(); // Create provenance description String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n"; // Add sizes and checksums of bitstreams for (int j=0; j < bitstreams.length; j++) { provMessage = provMessage + bitstreams[j].getName() + ": " + bitstreams[j].getSize() + " bytes, checksum: " + bitstreams[j].getChecksum() + " (" + bitstreams[j].getChecksumAlgorithm()+ ")\n"; } // Add message to the DC item.addDC("description", "provenance", "en", provMessage); return null; } | 47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/85c7430ba7691f831fafc420459d280408310eb9/WorkspaceItem.java/clean/dspace/src/org/dspace/content/WorkspaceItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11363,
1180,
787,
8484,
1435,
3639,
1216,
6483,
16,
23859,
503,
565,
288,
3639,
368,
9852,
2073,
1357,
3639,
368,
1000,
2006,
285,
1509,
3639,
21533,
1626,
302,
273,
21533,
1626,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11363,
1180,
787,
8484,
1435,
3639,
1216,
6483,
16,
23859,
503,
565,
288,
3639,
368,
9852,
2073,
1357,
3639,
368,
1000,
2006,
285,
1509,
3639,
21533,
1626,
302,
273,
21533,
1626,
18,
... |
private boolean performCopyOperation(boolean isFolder) throws CmsException { // on folder copy display "please wait" screen, not for simple file copy if (isFolder && ! DIALOG_WAIT.equals(getParamAction())) { // return false, this will trigger the "please wait" screen return false; } // get the copy mode from request parameter int copyMode = I_CmsConstants.C_COPY_PRESERVE_SIBLING; try { copyMode = Integer.parseInt(getParamCopymode()); } catch (Exception e) { // can usually be ignored if (LOG.isInfoEnabled()) { LOG.info(e.getLocalizedMessage()); } } // calculate the target name String target = getParamTarget(); if (target == null) { target = ""; } boolean restoreSiteRoot = false; try { // check if a site root was added to the target name String sitePrefix = ""; if (CmsSiteManager.getSiteRoot(target) != null) { String siteRootFolder = getCms().getRequestContext().getSiteRoot(); if (siteRootFolder.endsWith("/")) { siteRootFolder = siteRootFolder.substring(0, siteRootFolder.length()-1); } sitePrefix = siteRootFolder; getCms().getRequestContext().saveSiteRoot(); getCms().getRequestContext().setSiteRoot("/"); restoreSiteRoot = true; } // calculate the target name target = CmsLinkManager.getAbsoluteUri(target, CmsResource.getParentFolder(getParamResource())); if (target.equals(getParamResource())) { throw new CmsVfsException(Messages.get().container(Messages.ERR_COPY_ONTO_ITSELF_1, target)); } try { CmsResource res = getCms().readResource(target, CmsResourceFilter.ALL); if (res.isFolder()) { // target folder already exists, so we add the current folder name if (! target.endsWith("/")) { target += "/"; } target = target + CmsResource.getName(getParamResource()); } } catch (CmsVfsResourceNotFoundException e) { // target folder does not already exist, so target name is o.k. if (LOG.isInfoEnabled()) { LOG.info(e.getLocalizedMessage()); } } // set the target parameter value setParamTarget(target); // delete existing target resource if confirmed by the user if (DIALOG_CONFIRMED.equals(getParamAction())) { getCms().deleteResource(target, I_CmsConstants.C_DELETE_OPTION_PRESERVE_SIBLINGS); } // copy the resource getCms().copyResource(sitePrefix + getParamResource(), target, copyMode); } finally { if (restoreSiteRoot) { getCms().getRequestContext().restoreSiteRoot(); } } return true; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/2fa0efcae8f9aa5971c7763269a3b033e9256d4b/CmsCopy.java/buggy/src/org/opencms/workplace/commons/CmsCopy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3073,
2951,
2988,
12,
6494,
31137,
13,
1216,
11228,
288,
3639,
368,
603,
3009,
1610,
2562,
315,
1802,
448,
2529,
6,
5518,
16,
486,
364,
4143,
585,
1610,
3639,
309,
261,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3073,
2951,
2988,
12,
6494,
31137,
13,
1216,
11228,
288,
3639,
368,
603,
3009,
1610,
2562,
315,
1802,
448,
2529,
6,
5518,
16,
486,
364,
4143,
585,
1610,
3639,
309,
261,
291,
... | ||
public static String getRoundIdColumnName(){ return "FIN_ASSESSMENT_ROUND_ID"; } | public static String getRoundIdColumnName() { return "FIN_ASSESSMENT_ROUND_ID"; } | public static String getRoundIdColumnName(){ return "FIN_ASSESSMENT_ROUND_ID"; } | 57001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57001/33e5c85ca31478329116ab80b95fd07320394530/AccountPhoneEntryBMPBean.java/buggy/src/java/com/idega/block/finance/data/AccountPhoneEntryBMPBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
4170,
772,
548,
8516,
1435,
95,
327,
315,
7263,
67,
3033,
1090,
1260,
3212,
67,
15092,
67,
734,
14432,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
4170,
772,
548,
8516,
1435,
95,
327,
315,
7263,
67,
3033,
1090,
1260,
3212,
67,
15092,
67,
734,
14432,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Log.logException(Log.ERROR, MODULE, e); | Log.logException(Log.LEVEL_ERROR, MODULE, e); | private void macOSXRegistration() { if (IS_MAC_OS_X) { try { Class theMacOSXAdapter; theMacOSXAdapter = Class.forName("com.gallery.GalleryRemote.util.MacOSXAdapter"); Class[] defArgs = {JFrame.class, String.class, String.class, String.class }; Method registerMethod = theMacOSXAdapter.getDeclaredMethod("registerMacOSXApplication", defArgs); if (registerMethod != null) { Object[] args = { this, "showAboutBox", "shutdown", "showPreferencesDialog" }; registerMethod.invoke(theMacOSXAdapter, args); } } catch (NoClassDefFoundError e) { Log.logException(Log.ERROR, MODULE, e); } catch (ClassNotFoundException e) { Log.logException(Log.ERROR, MODULE, e); } catch (Exception e) { Log.logException(Log.ERROR, MODULE, e); } } } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/d180d723a9e594086228e902568d740d7e8649d8/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5318,
4618,
60,
7843,
1435,
288,
202,
202,
430,
261,
5127,
67,
10875,
67,
4618,
67,
60,
13,
288,
1082,
202,
698,
288,
9506,
202,
797,
326,
9990,
4618,
60,
4216,
31,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5318,
4618,
60,
7843,
1435,
288,
202,
202,
430,
261,
5127,
67,
10875,
67,
4618,
67,
60,
13,
288,
1082,
202,
698,
288,
9506,
202,
797,
326,
9990,
4618,
60,
4216,
31,
95... |
if(file.inProject(cms.getRequestContext().currentProject())) { | if (cms.isInsideCurrentProject(file)) { | private String getState(CmsObject cms, CmsResource file, CmsXmlLanguageFile lang) throws CmsException { if(file.inProject(cms.getRequestContext().currentProject())) { int state = file.getState(); return lang.getLanguageValue("explorer.state" + state); } return lang.getLanguageValue("explorer.statenip"); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/acc42e5170bf6d7cb434a91d2c4d26e7be8194b1/CmsChgrp.java/clean/src/com/opencms/workplace/CmsChgrp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8997,
12,
4747,
921,
6166,
16,
7630,
585,
16,
16084,
3779,
812,
3303,
13,
202,
15069,
11228,
288,
202,
202,
430,
12,
768,
18,
267,
4109,
12,
6851,
18,
588,
21426,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8997,
12,
4747,
921,
6166,
16,
7630,
585,
16,
16084,
3779,
812,
3303,
13,
202,
15069,
11228,
288,
202,
202,
430,
12,
768,
18,
267,
4109,
12,
6851,
18,
588,
21426,
7675,
... |
for(Listable elt = _head.prev(), past = null; null != elt && past != _head.next(); elt = (past = elt).prev()) { if(null == o && null == elt.value()) { return ndx; } else if(o.equals(elt.value())) { return ndx; | if (null == o) { for(Listable elt = _head.prev(), past = null; null != elt && past != _head.next(); elt = (past = elt).prev()) { if (null == elt.value()) { return ndx; } ndx--; | public int lastIndexOf(Object o) { int ndx = _size-1; for(Listable elt = _head.prev(), past = null; null != elt && past != _head.next(); elt = (past = elt).prev()) { if(null == o && null == elt.value()) { return ndx; } else if(o.equals(elt.value())) { return ndx; } ndx--; } return -1; } | 55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/4ab1ffccbe4bdd1a76a3731f131877cb4264e01d/CursorableLinkedList.java/clean/src/java/org/apache/commons/collections/CursorableLinkedList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9550,
12,
921,
320,
13,
288,
3639,
509,
5346,
92,
273,
389,
1467,
17,
21,
31,
3639,
364,
12,
682,
429,
11572,
273,
389,
1978,
18,
10001,
9334,
8854,
273,
446,
31,
446,
480,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9550,
12,
921,
320,
13,
288,
3639,
509,
5346,
92,
273,
389,
1467,
17,
21,
31,
3639,
364,
12,
682,
429,
11572,
273,
389,
1978,
18,
10001,
9334,
8854,
273,
446,
31,
446,
480,... |
plugDescription.setRecordLoader(IRecordLoader.class.isAssignableFrom(plugDescription.getClass())); | try { plugDescription.setRecordLoader(IRecordLoader.class.isAssignableFrom(Class.forName(plugDescription .getIPlugClass()))); } catch (ClassNotFoundException e) { new RuntimeException("iplug class not in classpath", e); } | public static PlugDescription getPlugDescription() throws IOException { InputStream resourceAsStream = PlugServer.class.getResourceAsStream("/plugdescription.xml"); XMLSerializer serializer = new XMLSerializer(); PlugDescription plugDescription = (PlugDescription) serializer.deSerialize(resourceAsStream); plugDescription.setRecordLoader(IRecordLoader.class.isAssignableFrom(plugDescription.getClass())); return plugDescription; } | 12891 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12891/f9ad3e231cbbee1d8e0400671d1ac2bd849133d5/PlugServer.java/clean/src/java/de/ingrid/iplug/PlugServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3008,
637,
3291,
9774,
637,
3291,
1435,
1216,
1860,
288,
3639,
5037,
1058,
17052,
273,
3008,
637,
2081,
18,
1106,
18,
588,
1420,
17052,
2932,
19,
22045,
3384,
18,
2902,
8863,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3008,
637,
3291,
9774,
637,
3291,
1435,
1216,
1860,
288,
3639,
5037,
1058,
17052,
273,
3008,
637,
2081,
18,
1106,
18,
588,
1420,
17052,
2932,
19,
22045,
3384,
18,
2902,
8863,
3... |
else | } else { | public String getEncodeURL(String url) { if ((session != null) && (response != null)) { boolean redirect = false; if (forward != null) redirect = forward.getRedirect(); if (redirect) return response.encodeRedirectURL(url); else return response.encodeURL(url); } else return (url); } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/ef68ef66f0feb3bc08bb217fe9abcd99045ef301/ConfigHelper.java/clean/src/share/org/apache/struts/config/ConfigHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
5509,
1785,
12,
780,
880,
13,
288,
3639,
309,
14015,
3184,
480,
446,
13,
597,
261,
2740,
480,
446,
3719,
288,
5411,
1250,
3136,
273,
629,
31,
5411,
309,
261,
11565,
480,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
5509,
1785,
12,
780,
880,
13,
288,
3639,
309,
14015,
3184,
480,
446,
13,
597,
261,
2740,
480,
446,
3719,
288,
5411,
1250,
3136,
273,
629,
31,
5411,
309,
261,
11565,
480,... |
throw new ClassNotFoundException(NLS.bind(Msg.BUNDLE_CNFE_NOT_RESOLVED, getLocation(), name)); | throw new ClassNotFoundException(NLS.bind(Msg.BUNDLE_CNFE_NOT_RESOLVED, getBundleData().getLocation(), name)); | protected Class loadClass(String name, boolean checkPermission) throws ClassNotFoundException { if (checkPermission) { try { framework.checkAdminPermission(this, AdminPermission.CLASS); } catch (SecurityException e) { throw new ClassNotFoundException(); } } BundleLoader loader = checkLoader(); if (loader == null) throw new ClassNotFoundException(NLS.bind(Msg.BUNDLE_CNFE_NOT_RESOLVED, getLocation(), name)); //$NON-NLS-1$ return (loader.loadClass(name)); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/1a676127a2d559fbc46281bbe25f43e6df7efa2e/BundleHost.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleHost.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1659,
16038,
12,
780,
508,
16,
1250,
25300,
13,
1216,
10403,
288,
202,
202,
430,
261,
1893,
5041,
13,
288,
1082,
202,
698,
288,
9506,
202,
12303,
18,
1893,
4446,
5041,
12,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1659,
16038,
12,
780,
508,
16,
1250,
25300,
13,
1216,
10403,
288,
202,
202,
430,
261,
1893,
5041,
13,
288,
1082,
202,
698,
288,
9506,
202,
12303,
18,
1893,
4446,
5041,
12,
22... |
public void setInput (byte[] buf, int off, int len) | public void setInput (byte[] buf) | public void setInput (byte[] buf, int off, int len) { input.setInput (buf, off, len); totalIn += len; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7f307fb93603fe403e70ef06550dde0db394a5ac/Inflater.java/buggy/core/src/classpath/java/java/util/zip/Inflater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21687,
261,
7229,
8526,
1681,
13,
282,
288,
565,
810,
18,
542,
1210,
261,
4385,
16,
3397,
16,
562,
1769,
565,
2078,
382,
1011,
562,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21687,
261,
7229,
8526,
1681,
13,
282,
288,
565,
810,
18,
542,
1210,
261,
4385,
16,
3397,
16,
562,
1769,
565,
2078,
382,
1011,
562,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
... |
LINE_COLOR_COMMAND_NAME, LINE_COLOR_IMAGE_NAME); | LINE_COLOR_COMMAND_NAME, DiagramUIPropertiesImages.DESC_LINE_COLOR); | protected void changeLineColor(SelectionEvent event) { lineColor = changeColor(event, lineColorButton, IPreferenceConstants.PREF_LINE_COLOR, Properties.ID_LINECOLOR, LINE_COLOR_COMMAND_NAME, LINE_COLOR_IMAGE_NAME); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/e66f9c3483db21ee776650f0e5341a7a370f06cb/ColorsAndFontsPropertySection.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.properties/src/org/eclipse/gmf/runtime/diagram/ui/properties/sections/appearance/ColorsAndFontsPropertySection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2549,
1670,
2957,
12,
6233,
1133,
871,
13,
288,
202,
202,
1369,
2957,
273,
2549,
2957,
12,
2575,
16,
980,
2957,
3616,
16,
1082,
202,
45,
9624,
2918,
18,
3670,
42,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2549,
1670,
2957,
12,
6233,
1133,
871,
13,
288,
202,
202,
1369,
2957,
273,
2549,
2957,
12,
2575,
16,
980,
2957,
3616,
16,
1082,
202,
45,
9624,
2918,
18,
3670,
42,
67,
... |
IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2823, IEJBValidationContext.WARNING, ref, this); | IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2823, IEJBValidationContext.WARNING, ref, this); | public void validateSecurityRoleRefElement(IEJBValidationContext vc, EJBJar ejbJar, EnterpriseBean bean) { if (bean == null) { return; } /** * Need to build up a list of duplicate role names, but the validation message * needs to be registered against the duplicate SecurityRoleRef instance. * (Without the instance, we cannot get line numbers.) * * This class wrappers the SecurityRoleRef instance so that the wrapper's * implemention of equals compares the names, but the validation message will * still be able to get the ref from the duplicate name. */ class RoleRefWrapper { private SecurityRoleRef _ref = null; public RoleRefWrapper(SecurityRoleRef ref) { _ref = ref; } public boolean equals(Object o) { if (o instanceof RoleRefWrapper) { RoleRefWrapper other = (RoleRefWrapper) o; return _ref.getName().equals(other.getRoleRef().getName()); } return false; } public SecurityRoleRef getRoleRef() { return _ref; } } boolean areSRolesDefined = ((_securityRoles != null) && (_securityRoles.size() > 0)); List securityRoleRefs = bean.getSecurityRoleRefs(); if ((securityRoleRefs != null) && (securityRoleRefs.size() != 0)) { // Check that each security role ref refers to a security role, // if security roles are defined in the assembly descriptor, // and that each referenced security role exists. DuplicatesTable roleRefNames = new DuplicatesTable(); for (int i = 0; i < securityRoleRefs.size(); i++) { SecurityRoleRef ref = (SecurityRoleRef) securityRoleRefs.get(i); // Check that the role name is set (15.2.5.3) String roleName = ref.getName(); if ((roleName == null) || (roleName.equals(""))) { //$NON-NLS-1$ roleName = ""; //$NON-NLS-1$ String beanName = (bean.getName() == null) ? "" : bean.getName(); //$NON-NLS-1$ IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2822, IEJBValidationContext.WARNING, ref, new String[] { beanName }, this); vc.addMessage(message); } else { // Build up the list of names, to check for duplicates roleRefNames.add(new RoleRefWrapper(ref)); } // Check that the role link is set (15.3.3) String roleLink = ref.getLink(); boolean isLinkDefined = ((ref.eIsSet(CommonPackage.eINSTANCE.getSecurityRoleRef_Link())) && (roleLink != null) && (!roleLink.equals(""))); //$NON-NLS-1$ if ((areSRolesDefined) && (!isLinkDefined)) { // must have role link defined (15.3.3) IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2823, IEJBValidationContext.WARNING, ref, this); vc.addMessage(message); } else if ((!areSRolesDefined) && (isLinkDefined)) { // must not have role link defined (15.2.5.3) IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2827, IEJBValidationContext.WARNING, ref, this); vc.addMessage(message); } else if (areSRolesDefined && isLinkDefined) { // check that the role listed in the link exists. (15.3.3) Iterator iterator = _securityRoles.iterator(); boolean roleExists = false; while(iterator.hasNext()) { SecurityRole role = (SecurityRole)iterator.next(); if(role.getRoleName().equals(roleLink)) { roleExists = true; break; } } if (!roleExists) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2824, IEJBValidationContext.WARNING, ref, new String[] { roleName }, this); vc.addMessage(message); } } } // Check for duplicates // Check that there are no duplicate role-names. (15.3.1) if (roleRefNames.containsDuplicates()) { List duplicates = roleRefNames.getDuplicates(); Iterator iterator = duplicates.iterator(); while (iterator.hasNext()) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2820, IEJBValidationContext.WARNING, ((RoleRefWrapper) iterator.next()).getRoleRef(), this); vc.addMessage(message); } } roleRefNames.clear(); } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/EnterpriseBean20VRule.java/buggy/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EnterpriseBean20VRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1954,
4368,
2996,
1957,
1046,
12,
8732,
8877,
4354,
1042,
12802,
16,
12157,
10813,
18024,
10813,
16,
26919,
3381,
3931,
13,
288,
202,
202,
430,
261,
14496,
422,
446,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1954,
4368,
2996,
1957,
1046,
12,
8732,
8877,
4354,
1042,
12802,
16,
12157,
10813,
18024,
10813,
16,
26919,
3381,
3931,
13,
288,
202,
202,
430,
261,
14496,
422,
446,
13,
28... |
String resourcePath = getValidFileArgument(System.getProperty( "JnlpConstants.PROPERTY_NAME_RESOURCEDIR"), "resource path", false); pkgInfo.setResourcePath(resourcePath); | String resourceDir = System.getProperty( JnlpConstants.PROPERTY_NAME_RESOURCEDIR); if (resourceDir == null) { resourceDir = jnlpFile.getParent(); } pkgInfo.setResourcePath(resourceDir); | private static JnlpPackageInfo parseArguments(String[] args) throws IOException { String version = null; String release = null; boolean showLicense = false; String licenseDirName = null; String bannerJpgFileName = null; String panelJpgFileName = null; boolean shortcutEnabled = false; boolean associationEnabled = false; boolean systemCacheEnabled = false; JnlpPackageInfo pkgInfo = null; ///////////////////////////////////////////////////////////// // Check the jnlp file path argument. if (args.length < 1) { throw new IllegalArgumentException( "Please specify the jnlp file path."); } pkgInfo = new JnlpPackageInfo(); URL jnlp = null; if (args[0].startsWith("http://")) { try { jnlp = new URL(args[0]); } catch (MalformedURLException muE) { throw new IOException("Invalid url argument: " + muE.getMessage()); } pkgInfo.parseRemoteJnlpInfo(jnlp); } else { File jnlpFile = new File(args[0]); if (!jnlpFile.exists() || !jnlpFile.isFile()) { throw new IOException("invalid local jnlp file: " + jnlpFile.getPath()); } String resourcePath = getValidFileArgument(System.getProperty( "JnlpConstants.PROPERTY_NAME_RESOURCEDIR"), "resource path", false); pkgInfo.setResourcePath(resourcePath); pkgInfo.parseLocalJnlpInfo(jnlpFile.toURL()); } /* Set Localized information as titles, descriptions, etc. */ pkgInfo.setLocalizedInformation(); /* Check PackageName property. */ checkPackageNameArgument(pkgInfo); /* * Check OutputDir property. * If the OutputDir is not set, set default outputdir as current dir. */ checkOutputDirNameArgument(pkgInfo); /* Check Version property. */ version = System.getProperty(JnlpConstants.PROPERTY_NAME_VERSIONNO); if (version == null) { version = JnlpConstants.DEFAULT_VERSION_NUM; } pkgInfo.setVersion(version); /* Check Release property. */ release = System.getProperty(JnlpConstants.PROPERTY_NAME_RELEASENO); if (release == null) { release = JnlpConstants.DEFAULT_RELEASE_NUM; } pkgInfo.setRelease(release); /* * Check License property. If it's set, check if it points to a valid * file. */ licenseDirName = System.getProperty( JnlpConstants.PROPERTY_NAME_LICENSEDIR); licenseDirName = getValidFileArgument( licenseDirName, "license directory", true); if (licenseDirName != null) { showLicense = true; } pkgInfo.setShowLicense(showLicense); pkgInfo.setLicenseDirPath(licenseDirName); /* Check BannerJpgFile property. */ bannerJpgFileName = System.getProperty( JnlpConstants.PROPERTY_NAME_BANNERJPGFILE); bannerJpgFileName = getValidFileArgument( bannerJpgFileName, "Banner Jpeg File", true); pkgInfo.setBannerJpgFilePath(bannerJpgFileName); /* Check PanelJpgFile property. */ panelJpgFileName = System.getProperty( JnlpConstants.PROPERTY_NAME_PANELJPGFILE); panelJpgFileName = getValidFileArgument( panelJpgFileName, "Panel Jpeg File", true); pkgInfo.setPanelJpgFilePath(panelJpgFileName); /* Check MSSDKPath & RawMSIFile property. */ checkMSSDKPathArgument(pkgInfo); /* Check EnableShortcut property. */ shortcutEnabled = getBoolProperty( JnlpConstants.PROPERTY_NAME_ENABLESHORTCUT); pkgInfo.setShortcutEnabled(shortcutEnabled); /* Check EnableAssociation property. */ associationEnabled = getBoolProperty( JnlpConstants.PROPERTY_NAME_ENABLEASSOCIATION); pkgInfo.setAssociationEnabled(associationEnabled); /* Check EnableSystemCache property. */ systemCacheEnabled = getBoolProperty( JnlpConstants.PROPERTY_NAME_ENABLESYSTEMCACHE); pkgInfo.setSystemCacheEnabled(systemCacheEnabled); return pkgInfo; } | 4176 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4176/ba284121de9779e1e9811307b9b0d9c50e6f5249/Jnlp2Package.java/clean/src/packager/src/share/classes/org/jdesktop/jdic/packager/impl/Jnlp2Package.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
804,
24853,
2261,
966,
1109,
4628,
12,
780,
8526,
833,
13,
5411,
1216,
1860,
288,
3639,
514,
1177,
273,
446,
31,
3639,
514,
3992,
273,
446,
31,
3639,
1250,
2405,
13211,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
804,
24853,
2261,
966,
1109,
4628,
12,
780,
8526,
833,
13,
5411,
1216,
1860,
288,
3639,
514,
1177,
273,
446,
31,
3639,
514,
3992,
273,
446,
31,
3639,
1250,
2405,
13211,
273,
... |
if (searchString(srcText, m_searchText) || searchString(locText, m_searchText)) | if ( searchString(srcText, m_searchText, m_regexSearch) || searchString(locText, m_searchText, m_regexSearch)) | private void searchProject() { m_numFinds = 0; if (m_exactSearch) { int i; for (i=0; i<CommandThread.core.numEntries(); i++) { SourceTextEntry ste = CommandThread.core.getSTE(i); String srcText = ste.getSrcText(); String locText = ste.getTranslation(); if (searchString(srcText, m_searchText) || searchString(locText, m_searchText)) { // found a match - relay source and trans text foundString(i, null, srcText, locText); if (m_numFinds >= OConsts.ST_MAX_SEARCH_RESULTS) { break; } } } if (m_tmSearch) { ArrayList tmList = CommandThread.core.getTransMemory(); TransMemory tm; for (i=0; i<tmList.size(); i++) { tm = (TransMemory) tmList.get(i); String srcText = tm.source; String locText = tm.target; if (searchString(srcText, m_searchText) || searchString(locText, m_searchText)) { // found a match - relay source and trans text foundString(-1, tm.file, srcText, locText); if (m_numFinds >= OConsts.ST_MAX_SEARCH_RESULTS) { break; } } } } } else if( m_keywordSearch ) { ArrayList searchTokens = new ArrayList(); StaticUtils.tokenizeText(m_searchText, searchTokens); int i; for (i=0; i<CommandThread.core.numEntries(); i++) { SourceTextEntry ste = CommandThread.core.getSTE(i); List srcTokens = ste.getStrEntry().getSrcTokenList(); List transTokens = ste.getStrEntry().getTransTokenList(); if( StaticUtils.isSubset(searchTokens, srcTokens) || StaticUtils.isSubset(searchTokens, transTokens) ) { // found a match - relay source and trans text foundString(i, null, ste.getStrEntry().getSrcText(), ste.getStrEntry().getTranslation()); if (m_numFinds >= OConsts.ST_MAX_SEARCH_RESULTS) break; } } if (m_tmSearch) { ArrayList tmList = CommandThread.core.getTransMemory(); TransMemory tm; for (i=0; i<tmList.size(); i++) { tm = (TransMemory) tmList.get(i); List srcTokens = new ArrayList(); StaticUtils.tokenizeText(tm.source, srcTokens); List transTokens = new ArrayList(); StaticUtils.tokenizeText(tm.target, transTokens); if( StaticUtils.isSubset(searchTokens, srcTokens) || StaticUtils.isSubset(searchTokens, transTokens) ) { // found a match - relay source and trans text foundString(-1, tm.file, tm.source, tm.target); if (m_numFinds >= OConsts.ST_MAX_SEARCH_RESULTS) { break; } } } } } } | 8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/6dfdcc043879e580a8b6ffdf8e5bb3762026359a/SearchThread.java/clean/src/org/omegat/core/threads/SearchThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1623,
4109,
1435,
565,
288,
3639,
312,
67,
2107,
8947,
273,
374,
31,
3639,
309,
261,
81,
67,
17165,
2979,
13,
3639,
288,
5411,
509,
277,
31,
5411,
364,
261,
77,
33,
20,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1623,
4109,
1435,
565,
288,
3639,
312,
67,
2107,
8947,
273,
374,
31,
3639,
309,
261,
81,
67,
17165,
2979,
13,
3639,
288,
5411,
509,
277,
31,
5411,
364,
261,
77,
33,
20,
31,... |
final Throwable throwable = new DummyThrowable(); | final Throwable throwable = new DummyThrowable(); | public void testExceptionsPropagatedThroughProxy() throws Throwable { final Throwable throwable = new DummyThrowable(); mockDispatcher.dispatchThrowable = throwable; try { proxy.noArgVoidMethod(); } catch (Throwable ex) { assertSame("exception is caught by coreMock", throwable, ex); return; } fail("Should have thrown exception"); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/CoreMockTest.java/buggy/jmock/core/src/test/jmock/core/CoreMockTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11416,
11953,
690,
14287,
3886,
1435,
1216,
4206,
288,
202,
202,
6385,
4206,
10132,
273,
394,
28622,
15155,
5621,
202,
202,
22851,
6681,
18,
10739,
15155,
273,
10132,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11416,
11953,
690,
14287,
3886,
1435,
1216,
4206,
288,
202,
202,
6385,
4206,
10132,
273,
394,
28622,
15155,
5621,
202,
202,
22851,
6681,
18,
10739,
15155,
273,
10132,
3... |
} | public void paintRingBond(Bond bond, Ring ring, Color bondColor, Graphics graphics) { if (bond.getOrder() == 1.0) { paintSingleBond(bond, bondColor, graphics); } else if (bond.getOrder() == 2.0) { paintSingleBond(bond, bondColor, graphics); paintInnerBond(bond, ring, bondColor, graphics); } else if (bond.getOrder() == 3.0) { paintTripleBond(bond, bondColor, graphics); } else { logger.warn("Drawing bond as single even though it has order:" + bond.getOrder()); paintSingleBond(bond, bondColor, graphics); } } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/b7597d09b03980486670c72a7289affda9ea694b/Renderer2D.java/buggy/src/org/openscience/cdk/renderer/Renderer2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
10369,
9807,
12,
9807,
8427,
16,
25463,
9221,
16,
5563,
8427,
2957,
16,
16830,
17313,
13,
288,
565,
309,
261,
26425,
18,
588,
2448,
1435,
422,
404,
18,
20,
13,
288,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
10369,
9807,
12,
9807,
8427,
16,
25463,
9221,
16,
5563,
8427,
2957,
16,
16830,
17313,
13,
288,
565,
309,
261,
26425,
18,
588,
2448,
1435,
422,
404,
18,
20,
13,
288,
13... | |
notifyClients(); | if(!dontNotify) notifyClients(); | public synchronized void completedBlock() { successfulBlocks++; notifyClients(); } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/9c514d14b203e8119e76eb0ed41907d8ccfcea57/ClientRequest.java/buggy/src/freenet/client/async/ClientRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
5951,
1768,
1435,
288,
202,
202,
18418,
6450,
9904,
31,
202,
202,
12336,
12300,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
5951,
1768,
1435,
288,
202,
202,
18418,
6450,
9904,
31,
202,
202,
12336,
12300,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
jjCheckNAddStates(19, 22); | jjCheckNAddStates(29, 32); | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 78; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(53); } else if ((0x100002600L & l) != 0L) { if (kind > 26) kind = 26; jjCheckNAdd(9); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(65, 66); } else if (curChar == 45) jjCheckNAdd(53); else if (curChar == 33) { if (kind > 44) kind = 44; } else if (curChar == 61) jjstateSet[jjnewStateCnt++] = 45; else if (curChar == 62) jjstateSet[jjnewStateCnt++] = 43; else if (curChar == 60) jjstateSet[jjnewStateCnt++] = 40; else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 30; else if (curChar == 39) jjCheckNAddStates(0, 2); else if (curChar == 34) jjCheckNAddStates(3, 5); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 7; else if (curChar == 41) { if (kind > 9) kind = 9; jjCheckNAddStates(6, 8); } if ((0x2400L & l) != 0L) { if (kind > 30) kind = 30; } else if (curChar == 33) jjstateSet[jjnewStateCnt++] = 49; else if (curChar == 62) { if (kind > 40) kind = 40; } else if (curChar == 60) { if (kind > 38) kind = 38; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 28; break; case 1: if ((0x100000200L & l) != 0L) jjCheckNAddStates(6, 8); break; case 2: if ((0x2400L & l) != 0L && kind > 9) kind = 9; break; case 3: if (curChar == 10 && kind > 9) kind = 9; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 5: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 6; break; case 6: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 7: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 5; break; case 8: if (curChar == 35) jjstateSet[jjnewStateCnt++] = 7; break; case 9: if ((0x100002600L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAdd(9); break; case 10: if (curChar == 34) jjCheckNAddStates(3, 5); break; case 11: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddStates(3, 5); break; case 12: if (curChar == 34 && kind > 27) kind = 27; break; case 14: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(3, 5); break; case 15: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(9, 12); break; case 16: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(3, 5); break; case 17: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 18; break; case 18: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(16); break; case 19: if (curChar == 32) jjAddStates(13, 14); break; case 20: if (curChar == 10) jjCheckNAddStates(3, 5); break; case 21: if (curChar == 39) jjCheckNAddStates(0, 2); break; case 22: if ((0xffffff7fffffffffL & l) != 0L) jjCheckNAddStates(0, 2); break; case 24: if (curChar == 32) jjAddStates(15, 16); break; case 25: if (curChar == 10) jjCheckNAddStates(0, 2); break; case 26: if (curChar == 39 && kind > 27) kind = 27; break; case 27: if ((0x2400L & l) != 0L && kind > 30) kind = 30; break; case 28: if (curChar == 10 && kind > 30) kind = 30; break; case 29: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 28; break; case 30: if (curChar == 38 && kind > 36) kind = 36; break; case 31: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 30; break; case 39: if (curChar == 60 && kind > 38) kind = 38; break; case 40: if (curChar == 61 && kind > 39) kind = 39; break; case 41: if (curChar == 60) jjstateSet[jjnewStateCnt++] = 40; break; case 42: if (curChar == 62 && kind > 40) kind = 40; break; case 43: if (curChar == 61 && kind > 41) kind = 41; break; case 44: if (curChar == 62) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 61 && kind > 42) kind = 42; break; case 46: if (curChar == 61) jjstateSet[jjnewStateCnt++] = 45; break; case 49: if (curChar == 61 && kind > 43) kind = 43; break; case 50: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 49; break; case 51: if (curChar == 33 && kind > 44) kind = 44; break; case 52: if (curChar == 45) jjCheckNAdd(53); break; case 53: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(53); break; case 55: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 55) kind = 55; jjstateSet[jjnewStateCnt++] = 55; break; case 58: if ((0x3ff000000000000L & l) != 0L) jjAddStates(17, 18); break; case 62: if (curChar == 36 && kind > 13) kind = 13; break; case 64: if (curChar == 36) jjCheckNAddTwoStates(65, 66); break; case 66: if (curChar == 33 && kind > 14) kind = 14; break; case 67: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(65, 66); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(55); } else if (curChar == 92) jjCheckNAddStates(19, 22); else if (curChar == 123) jjstateSet[jjnewStateCnt++] = 57; else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 35; if (curChar == 110) jjAddStates(23, 24); else if (curChar == 103) jjAddStates(25, 26); else if (curChar == 108) jjAddStates(27, 28); else if (curChar == 101) jjstateSet[jjnewStateCnt++] = 47; else if (curChar == 111) jjstateSet[jjnewStateCnt++] = 37; else if (curChar == 97) jjstateSet[jjnewStateCnt++] = 33; break; case 6: if (kind > 16) kind = 16; break; case 11: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(3, 5); break; case 13: if (curChar == 92) jjAddStates(29, 33); break; case 14: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(3, 5); break; case 22: jjAddStates(0, 2); break; case 23: if (curChar == 92) jjAddStates(15, 16); break; case 32: if (curChar == 100 && kind > 36) kind = 36; break; case 33: if (curChar == 110) jjstateSet[jjnewStateCnt++] = 32; break; case 34: if (curChar == 97) jjstateSet[jjnewStateCnt++] = 33; break; case 35: if (curChar == 124 && kind > 37) kind = 37; break; case 36: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 35; break; case 37: if (curChar == 114 && kind > 37) kind = 37; break; case 38: if (curChar == 111) jjstateSet[jjnewStateCnt++] = 37; break; case 47: if (curChar == 113 && kind > 42) kind = 42; break; case 48: if (curChar == 101) jjstateSet[jjnewStateCnt++] = 47; break; case 54: case 55: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(55); break; case 56: if (curChar == 123) jjstateSet[jjnewStateCnt++] = 57; break; case 57: case 58: if ((0x7fffffe87fffffeL & l) != 0L) jjCheckNAddTwoStates(58, 59); break; case 59: if (curChar == 125 && kind > 56) kind = 56; break; case 60: if (curChar == 92) jjCheckNAddStates(19, 22); break; case 61: if (curChar == 92) jjCheckNAddTwoStates(61, 62); break; case 63: if (curChar == 92) jjCheckNAddTwoStates(63, 64); break; case 65: if (curChar == 92) jjAddStates(34, 35); break; case 68: if (curChar == 108) jjAddStates(27, 28); break; case 69: if (curChar == 116 && kind > 38) kind = 38; break; case 70: if (curChar == 101 && kind > 39) kind = 39; break; case 71: if (curChar == 103) jjAddStates(25, 26); break; case 72: if (curChar == 116 && kind > 40) kind = 40; break; case 73: if (curChar == 101 && kind > 41) kind = 41; break; case 74: if (curChar == 110) jjAddStates(23, 24); break; case 75: if (curChar == 101 && kind > 43) kind = 43; break; case 76: if (curChar == 116 && kind > 44) kind = 44; break; case 77: if (curChar == 111) jjstateSet[jjnewStateCnt++] = 76; break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 6: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; case 11: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(3, 5); break; case 22: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(0, 2); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 78 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/ParserTokenManager.java/buggy/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
public void setCrossVal(int folds) { | public void setCrossVal(int folds) { | public void setCrossVal(int folds) { m_CVFolds = folds; } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/f6f62667723170f4030ae82f079e537cd6065be3/DecisionTable.java/clean/classifiers/DecisionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
3984,
3053,
12,
474,
11590,
87,
13,
225,
288,
565,
312,
67,
22007,
15592,
87,
273,
11590,
87,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
3984,
3053,
12,
474,
11590,
87,
13,
225,
288,
565,
312,
67,
22007,
15592,
87,
273,
11590,
87,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (classStack.empty()) { | if (parentModule == null) { | public RubyModule getRubyClass() { if (classStack.empty()) { return null; } RubyModule rubyClass = (RubyModule) classStack.peek(); if (rubyClass.isIncluded()) { return ((IncludedModuleWrapper) rubyClass).getDelegate(); } return rubyClass; } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/abfe85d15f992ecf4447b155d177050fe2239c3b/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4170,
10340,
797,
1435,
288,
3639,
309,
261,
2938,
3120,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
19817,
3120,
22155,
797,
273,
261,
54,
10340,
3120,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4170,
10340,
797,
1435,
288,
3639,
309,
261,
2938,
3120,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
19817,
3120,
22155,
797,
273,
261,
54,
10340,
3120,
13,... |
public void processKeyEvent(KeyEvent evt) { // could make things somewhat easier... // ... but KeyEventWorkaround 'output contract' will // change in 4.1, so not a good idea //evt = KeyEventWorkaround.processKeyEvent(evt); //if(evt == null) // return; if(evt.getID() == KeyEvent.KEY_PRESSED) { switch(evt.getKeyCode()) { case KeyEvent.VK_UP: case KeyEvent.VK_DOWN: super.processKeyEvent(evt); if(browser.getMode() != VFSBrowser.BROWSER) browser.filesSelected(); break; case KeyEvent.VK_ENTER: browser.filesActivated((evt.isShiftDown() ? VFSBrowser.M_OPEN_NEW_VIEW : VFSBrowser.M_OPEN),false); evt.consume(); break; case KeyEvent.VK_LEFT: String directory = browser.getDirectory(); browser.setDirectory(MiscUtilities .getParentOfPath(directory)); evt.consume(); break; } } else if(evt.getID() == KeyEvent.KEY_TYPED) { if(evt.isControlDown() || evt.isAltDown() || evt.isMetaDown()) { return; } // hack... if(evt.isShiftDown() && evt.getKeyChar() == '\n') return; switch(evt.getKeyChar()) { case '~': browser.setDirectory(System.getProperty("user.home")); break; case '/': browser.rootDirectory(); break; case '-': View view = browser.getView(); Buffer buffer = view.getBuffer(); browser.setDirectory(buffer.getDirectory()); break; default: typeSelectBuffer.append(evt.getKeyChar()); doTypeSelect(typeSelectBuffer.toString(),true); timer.stop(); timer.setInitialDelay(750); timer.setRepeats(false); timer.start(); break; } return; } if(!evt.isConsumed()) super.processKeyEvent(evt); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/947f384b91ed9f72f1d77f28e79223f88278912c/BrowserView.java/buggy/org/gjt/sp/jedit/browser/BrowserView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
202,
95,
1082,
202,
759,
3377,
1221,
9198,
18016,
11304,
15857,
2777,
1082,
202,
759,
1372,
1496,
23737,
2421,
12716,
296,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
202,
95,
1082,
202,
759,
3377,
1221,
9198,
18016,
11304,
15857,
2777,
1082,
202,
759,
1372,
1496,
23737,
2421,
12716,
296,
2... | ||
if (kind > 59) kind = 59; | if (kind > 56) kind = 56; | private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 36; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(23); } else if ((0x100002600L & l) != 0L) { if (kind > 26) kind = 26; jjCheckNAdd(4); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; else if (curChar == 45) jjCheckNAdd(23); else if (curChar == 39) jjCheckNAddStates(68, 70); else if (curChar == 34) jjCheckNAddStates(71, 73); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if ((0x100002600L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAdd(4); break; case 5: if (curChar == 34) jjCheckNAddStates(71, 73); break; case 6: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddStates(71, 73); break; case 7: if (curChar == 34 && kind > 27) kind = 27; break; case 9: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 10: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(74, 77); break; case 11: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 12: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 13; break; case 13: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(11); break; case 14: if (curChar == 32) jjAddStates(78, 79); break; case 15: if (curChar == 10) jjCheckNAddStates(71, 73); break; case 16: if (curChar == 39) jjCheckNAddStates(68, 70); break; case 17: if ((0xffffff7fffffffffL & l) != 0L) jjCheckNAddStates(68, 70); break; case 19: if (curChar == 32) jjAddStates(13, 14); break; case 20: if (curChar == 10) jjCheckNAddStates(68, 70); break; case 21: if (curChar == 39 && kind > 27) kind = 27; break; case 22: if (curChar == 45) jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(23); break; case 25: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 59) kind = 59; jjstateSet[jjnewStateCnt++] = 25; break; case 26: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; break; case 30: if (curChar == 36 && kind > 13) kind = 13; break; case 32: if (curChar == 36) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 33 && kind > 14) kind = 14; break; case 35: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 59) kind = 59; jjCheckNAdd(25); } else if (curChar == 92) jjCheckNAddStates(80, 83); break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(71, 73); break; case 8: if (curChar == 92) jjAddStates(84, 88); break; case 9: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 17: jjAddStates(68, 70); break; case 18: if (curChar == 92) jjAddStates(13, 14); break; case 24: case 25: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 59) kind = 59; jjCheckNAdd(25); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L && kind > 60) kind = 60; break; case 28: if (curChar == 92) jjCheckNAddStates(80, 83); break; case 29: if (curChar == 92) jjCheckNAddTwoStates(29, 30); break; case 31: if (curChar == 92) jjCheckNAddTwoStates(31, 32); break; case 33: if (curChar == 92) jjAddStates(89, 90); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; case 6: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(71, 73); break; case 17: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(68, 70); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 36 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
21,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
21,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
Shell shell = new Shell(this.getShell(), SWT.NONE); | Shell shell = new Shell(this.getShell(), SWT.APPLICATION_MODAL); | private void createDropDownComponent(int iXLoc, int iYLoc) { Shell shell = new Shell(this.getShell(), SWT.NONE); shell.setLayout(new FillLayout()); shell.setSize(cnvSelection.getSize().x, 150); shell.setLocation(iXLoc, iYLoc); cmpDropDown = new Composite(shell, SWT.NONE); FillLayout fillDropDown = new FillLayout(); fillDropDown.type = SWT.VERTICAL; cmpDropDown.setLayout(fillDropDown); for (int iC = 0; iC < this.iLineStyles.length; iC++) { LineCanvas cnv = new LineCanvas(cmpDropDown, SWT.NONE, iLineStyles[iC], 1); cnv.setSize(cmpDropDown.getSize().x, cnvSelection.getSize().y); cnv.addMouseListener(this); } shell.open(); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3312cd0d7d4efb945ae26dd43efddc7cb433aa3c/LineStyleChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LineStyleChooserComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
7544,
4164,
1841,
12,
474,
277,
60,
1333,
16,
509,
277,
61,
1333,
13,
565,
288,
3639,
19433,
5972,
273,
394,
19433,
12,
2211,
18,
588,
13220,
9334,
348,
8588,
18,
25039,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
7544,
4164,
1841,
12,
474,
277,
60,
1333,
16,
509,
277,
61,
1333,
13,
565,
288,
3639,
19433,
5972,
273,
394,
19433,
12,
2211,
18,
588,
13220,
9334,
348,
8588,
18,
25039,... |
socket.setNeedClientAuth(_needClientAuth); socket.setWantClientAuth(_wantClientAuth); | protected ServerSocket newServerSocket(String host, int port,int backlog) throws IOException { SSLServerSocketFactory factory = null; SSLServerSocket socket = null; try { factory = createFactory(); socket = (SSLServerSocket) (host==null? factory.createServerSocket(port,backlog): factory.createServerSocket(port,backlog,InetAddress.getByName(host))); socket.setNeedClientAuth(_needClientAuth); socket.setWantClientAuth(_wantClientAuth); if(_cipherSuites != null && _cipherSuites.length >0) { socket.setEnabledCipherSuites(_cipherSuites); for ( int i=0; i<_cipherSuites.length; i++ ) { Log.debug("SslListener enabled ciphersuite: " + _cipherSuites[i]); } } } catch (IOException e) { throw e; } catch (Exception e) { Log.warn(Log.EXCEPTION, e); throw new IOException("Could not create JsseListener: " + e.toString()); } return socket; } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/a2e45b9f3e4964b37fb706acec915970cf7b84f8/SslSocketConnector.java/buggy/trunk/modules/jetty/src/main/java/org/mortbay/jetty/security/SslSocketConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3224,
4534,
394,
2081,
4534,
12,
780,
1479,
16,
509,
1756,
16,
474,
1473,
1330,
13,
1216,
1860,
565,
288,
3639,
7419,
2081,
4534,
1733,
3272,
273,
446,
31,
3639,
7419,
2081,
4534,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3224,
4534,
394,
2081,
4534,
12,
780,
1479,
16,
509,
1756,
16,
474,
1473,
1330,
13,
1216,
1860,
565,
288,
3639,
7419,
2081,
4534,
1733,
3272,
273,
446,
31,
3639,
7419,
2081,
4534,
... | |
public org.quickfix.field.MDReqRejReason getMDReqRejReason() throws FieldNotFound { org.quickfix.field.MDReqRejReason value = new org.quickfix.field.MDReqRejReason(); | public quickfix.field.MDReqRejReason getMDReqRejReason() throws FieldNotFound { quickfix.field.MDReqRejReason value = new quickfix.field.MDReqRejReason(); | public org.quickfix.field.MDReqRejReason getMDReqRejReason() throws FieldNotFound { org.quickfix.field.MDReqRejReason value = new org.quickfix.field.MDReqRejReason(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequestReject.java/buggy/src/java/src/quickfix/fix42/MarketDataRequestReject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
6188,
6113,
426,
78,
8385,
2108,
40,
6113,
426,
78,
8385,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
6188,
6113,
426... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
6188,
6113,
426,
78,
8385,
2108,
40,
6113,
426,
78,
8385,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
6188,
6113,
426... |
case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0)); | case Id_equals: return wrap_boolean(jsFunction_equals (ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_fromCharCode: return jsStaticFunction_fromCharCode(args); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(); case Id_valueOf: return realThis(thisObj, f). jsFunction_valueOf(); case Id_charAt: return jsFunction_charAt(ScriptRuntime.toString(thisObj), args); case Id_charCodeAt: return wrap_double( jsFunction_charCodeAt(ScriptRuntime.toString(thisObj), args)); case Id_indexOf: return wrap_int( jsFunction_indexOf(ScriptRuntime.toString(thisObj), args)); case Id_lastIndexOf: return wrap_int( jsFunction_lastIndexOf(ScriptRuntime.toString(thisObj), args)); case Id_split: return jsFunction_split(cx, ScriptRuntime.toString(thisObj), args, f); case Id_substring: return jsFunction_substring(cx, ScriptRuntime.toString(thisObj), args); case Id_toLowerCase: return jsFunction_toLowerCase(ScriptRuntime.toString(thisObj)); case Id_toUpperCase: return jsFunction_toUpperCase(ScriptRuntime.toString(thisObj)); case Id_substr: return jsFunction_substr(ScriptRuntime.toString(thisObj), args); case Id_concat: return jsFunction_concat(ScriptRuntime.toString(thisObj), args); case Id_slice: return jsFunction_slice(ScriptRuntime.toString(thisObj), args); case Id_bold: return realThis(thisObj, f). jsFunction_bold(); case Id_italics: return realThis(thisObj, f). jsFunction_italics(); case Id_fixed: return realThis(thisObj, f). jsFunction_fixed(); case Id_strike: return realThis(thisObj, f). jsFunction_strike(); case Id_small: return realThis(thisObj, f). jsFunction_small(); case Id_big: return realThis(thisObj, f). jsFunction_big(); case Id_blink: return realThis(thisObj, f). jsFunction_blink(); case Id_sup: return realThis(thisObj, f). jsFunction_sup(); case Id_sub: return realThis(thisObj, f). jsFunction_sub(); case Id_fontsize: return realThis(thisObj, f). jsFunction_fontsize(ScriptRuntime.toString(args, 0)); case Id_fontcolor: return realThis(thisObj, f). jsFunction_fontcolor(ScriptRuntime.toString(args, 0)); case Id_link: return realThis(thisObj, f). jsFunction_link(ScriptRuntime.toString(args, 0)); case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0)); case Id_equals: return wrap_boolean( jsFunction_equals(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_equalsIgnoreCase: return wrap_boolean( jsFunction_equalsIgnoreCase(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_match: return jsFunction_match(cx, thisObj, args, f); case Id_search: return jsFunction_search(cx, thisObj, args, f); case Id_replace: return jsFunction_replace(cx, thisObj, args, f); } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
sb.append( "\"" ); sb.append( name.getNamespaceURI() ); sb.append( "\"" ); | sb.append("\""); sb.append(name.getNamespaceURI()); sb.append("\""); | private static void addNamespace ( StringBuffer sb, QName name ) { if (name.getNamespaceURI() == null) sb.append( "<no namespace>" ); else { sb.append( "\"" ); sb.append( name.getNamespaceURI() ); sb.append( "\"" ); } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/6a1584bb1ad8f163dc69272874712dc74f03660e/Locale.java/buggy/src/store/org/apache/xmlbeans/impl/store/Locale.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
527,
3402,
261,
6674,
2393,
16,
16723,
508,
262,
565,
288,
3639,
309,
261,
529,
18,
588,
3402,
3098,
1435,
422,
446,
13,
5411,
2393,
18,
6923,
12,
3532,
2135,
1981,
2984... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
527,
3402,
261,
6674,
2393,
16,
16723,
508,
262,
565,
288,
3639,
309,
261,
529,
18,
588,
3402,
3098,
1435,
422,
446,
13,
5411,
2393,
18,
6923,
12,
3532,
2135,
1981,
2984... |
if(s1 >= 0) { s1 = Math.min(s1,states-2); | s1 = Math.min(s1,states-2); if(s1 >= 0) { | public LinearFilterRepresentation optimize() { int s1, s2; // remove unobservable states transposeSystem(); s1 = reduceParameters(false); transposeSystem(); cleanAll(); LinearPrinter.println("got reduction up to value " + s1); if(s1 >= 0) { // for now, leave at least 1 state s1 = Math.min(s1,states-2); removeUnobservableStates(s1); } LinearPrinter.println("After observable reduction, before reachable reduction: " + totalMatrix); // remove unreachable states s2 = reduceParameters(true); cleanAll(); LinearPrinter.println("got reduction up to value " + s2); LinearPrinter.println("Before QR algorithm: " + totalMatrix); if(s2 >= 0) { // for now, leave at least 1 state s2 = Math.min(s2,states-2); qr_Algorithm(s2); cleanAll(); zeroInitEntries(); cleanAll(); removeUnreachableStates(s2); } cleanAll(); LinearPrinter.println("After state reduction, before min param: " + totalMatrix); // minimally parametrize the system minParametrize(true); // put in reachable canonical form cleanAll(); LinearFilterRepresentation tempReachableRep = extractRep(); LinearCost tempReachableCost = tempReachableRep.getCost(); transposeSystem(); minParametrize(false); // put in observable cononical form transposeSystem(); cleanAll(); LinearFilterRepresentation tempObservableRep = extractRep(); LinearCost tempObservableCost = tempObservableRep.getCost(); if(tempObservableCost.lessThan(tempReachableCost)) { LinearPrinter.println("Observable rep is better"); return tempObservableRep; } else { LinearPrinter.println("Reachable rep is better"); return tempReachableRep; } // return extractRep(); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/f9758dedf70dfd95090237ce697e3739fa2abbf2/LinearOptimizer.java/clean/streams/src/at/dms/kjc/sir/statespace/LinearOptimizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13921,
1586,
13742,
10979,
1435,
288,
202,
474,
272,
21,
16,
272,
22,
31,
6862,
202,
759,
1206,
640,
12199,
16845,
5493,
202,
2338,
4150,
3163,
5621,
202,
87,
21,
273,
5459,
2402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13921,
1586,
13742,
10979,
1435,
288,
202,
474,
272,
21,
16,
272,
22,
31,
6862,
202,
759,
1206,
640,
12199,
16845,
5493,
202,
2338,
4150,
3163,
5621,
202,
87,
21,
273,
5459,
2402,
... |
case INT16: | case FormatReader.INT16: | public double getPixelValue(int x, int y) { int offset = ((sizeX * y) + x) * bytesPerPixel; switch(type) { case INT8: return data.get(offset); case INT16: return data.getShort(offset); case INT32: return data.getInt(offset); case FLOAT: return data.getFloat(offset); case DOUBLE: return data.getDouble(offset); case UINT8: return (short) (data.get(offset) & 0xFF); case UINT16: return (int) (data.getShort(offset) & 0xFFFF); case UINT32: return (long) (data.getInt(offset) & 0xFFFFFFFFL); } // This should never happen. throw new RuntimeException("Woah nelly! Something is very wrong."); } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/f900d398818eefec3108ce2138214e42901a0aa0/Plane2D.java/buggy/loci/formats/in/Plane2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1645,
1689,
3556,
620,
12,
474,
619,
16,
509,
677,
13,
288,
565,
509,
1384,
273,
14015,
1467,
60,
380,
677,
13,
397,
619,
13,
380,
31148,
9037,
31,
565,
1620,
12,
723,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1645,
1689,
3556,
620,
12,
474,
619,
16,
509,
677,
13,
288,
565,
509,
1384,
273,
14015,
1467,
60,
380,
677,
13,
397,
619,
13,
380,
31148,
9037,
31,
565,
1620,
12,
723,
13,
288,
... |
private ILabelProvider getLabelProvider() { | protected ILabelProvider getLabelProvider() { | private ILabelProvider getLabelProvider() { return (ILabelProvider)viewer.getLabelProvider(); } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/e891b6b5b1dd0389e7026001419569a2f9ac016d/GraphModelFactory.java/buggy/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/graphmodel/GraphModelFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2224,
2249,
11237,
2249,
1435,
288,
202,
202,
2463,
261,
45,
2224,
2249,
13,
25256,
18,
588,
2224,
2249,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2224,
2249,
11237,
2249,
1435,
288,
202,
202,
2463,
261,
45,
2224,
2249,
13,
25256,
18,
588,
2224,
2249,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ | currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue("-"); } init_p = true; first_p = false; currentLineNumber = 0; } // retry : while (true) { if (next_p == 1) { next_p = 0; if (args.getLength() > 0) { String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); /*if (ruby_inplace_mode) { rb_warn("Can't do inplace edit for stdio"); rb_defout = rb_stdout; }*/ } else { File file = new File(filename); try { RubyInputStream inStream = new RubyInputStream(new BufferedInputStream(new FileInputStream(file))); // FILE *fr = rb_fopen(fn, "r"); /*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); // prep_stdio(fr, FMODE_READABLE, rb_cFile); // prep_path(current_file, fn); } catch (FileNotFoundException fnfExcptn) { throw new IOError(runtime, fnfExcptn.getMessage()); } } /*if (binmode) rb_io_binmode(current_file);*/ } else { init_p = false; return false; } } //break; //} return true; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/49c17b4ec0ae2e046650a9ace532caa461a65f20/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5... |
public static int sysCall1(int ip, int toc, int p0) { if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); return -1; } | public static int sysCall1(int ip, int toc, int p0) { if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); return -1; } | public static int sysCall1(int ip, int toc, int p0) { if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); return -1; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/40e21dc6ed844793c7ae07ad49c4ba40eadcacf4/VM_Magic.java/buggy/rvm/src/vm/runtime/VM_Magic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
509,
225,
2589,
1477,
21,
12,
474,
2359,
16,
509,
17919,
16,
509,
293,
20,
13,
7682,
288,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
18,
11231,
12,
7397,
18,
4400,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
509,
225,
2589,
1477,
21,
12,
474,
2359,
16,
509,
17919,
16,
509,
293,
20,
13,
7682,
288,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
18,
11231,
12,
7397,
18,
4400,
67,... |
public org.quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { org.quickfix.field.LegMaturityMonthYear value = new org.quickfix.field.LegMaturityMonthYear(); | public quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { quickfix.field.LegMaturityMonthYear value = new quickfix.field.LegMaturityMonthYear(); | public org.quickfix.field.LegMaturityMonthYear getLegMaturityMonthYear() throws FieldNotFound { org.quickfix.field.LegMaturityMonthYear value = new org.quickfix.field.LegMaturityMonthYear(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataSnapshotFullRefresh.java/clean/src/java/src/quickfix/fix44/MarketDataSnapshotFullRefresh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15947,
2336,
5445,
5593,
336,
8329,
15947,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15947,
2336,
5445,
5593,
336,
8329,
15947,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
15... |
if (usingMotif) getTable().setRedraw(false); | if (usingMotif) { getTable().setRedraw(false); } | protected TableViewer createTableViewer(Composite parent, int style) { Table table = new Table(parent, SWT.SINGLE | (style & ~SWT.MULTI)); table.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); TableViewer tableViewer = new TableViewer(table) { /* (non-Javadoc) * @see org.eclipse.jface.viewers.TableViewer#internalRefresh(java.lang.Object) */ protected void internalRefresh(Object element) { boolean usingMotif = "motif".equals(SWT.getPlatform()); //$NON-NLS-1$ try { // This avoids a "graphic is disposed" error on Motif by not letting // it redraw while we remove entries. Some items in this table are // being removed and may have icons which may have already been // disposed elsewhere. if (usingMotif) getTable().setRedraw(false); super.internalRefresh(element); } finally { if (usingMotif) getTable().setRedraw(true); } } }; tableViewer.addFilter(new NamePatternFilter()); tableViewer.setContentProvider(new BasicStackListContentProvider()); tableViewer.setSorter(new BasicStackListViewerSorter()); tableViewer.setLabelProvider(new BasicStackListLabelProvider()); return tableViewer; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/BasicPartList.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/BasicPartList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3555,
18415,
19565,
18415,
12,
9400,
982,
16,
509,
2154,
13,
288,
3639,
3555,
1014,
273,
394,
3555,
12,
2938,
16,
348,
8588,
18,
20184,
571,
261,
4060,
473,
4871,
55,
8588,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3555,
18415,
19565,
18415,
12,
9400,
982,
16,
509,
2154,
13,
288,
3639,
3555,
1014,
273,
394,
3555,
12,
2938,
16,
348,
8588,
18,
20184,
571,
261,
4060,
473,
4871,
55,
8588,
18,
26... |
AST __t1038 = _t; AST tmp2211_AST_in = (AST)_t; | AST __t1042 = _t; AST tmp2215_AST_in = (AST)_t; | public final void defineparam_var(AST _t) throws RecognitionException { AST defineparam_var_AST_in = (_t == ASTNULL) ? null : (AST)_t; { if (_t==null) _t=ASTNULL; if ((_t.getType()==AS)) { AST __t1038 = _t; AST tmp2211_AST_in = (AST)_t; match(_t,AS); _t = _t.getFirstChild(); { boolean synPredMatched1042 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==HANDLE))) { AST __t1042 = _t; synPredMatched1042 = true; inputState.guessing++; try { { AST tmp2212_AST_in = (AST)_t; match(_t,HANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp2213_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case BYTE: case CHARACTER: case DOUBLE: case FLOAT: case LONG: case SHORT: case UNSIGNEDSHORT: { break; } default: { throw new NoViableAltException(_t); } } } datatype_dll(_t); _t = _retTree; } } catch (RecognitionException pe) { synPredMatched1042 = false; } _t = __t1042;inputState.guessing--; } if ( synPredMatched1042 ) { AST tmp2214_AST_in = (AST)_t; match(_t,HANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp2215_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case BYTE: case CHARACTER: case DOUBLE: case FLOAT: case LONG: case SHORT: case UNSIGNEDSHORT: { break; } default: { throw new NoViableAltException(_t); } } } datatype_dll(_t); _t = _retTree; } else if ((_t.getType()==CLASS)) { AST tmp2216_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp2217_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); } else if ((_tokenSet_38.member(_t.getType()))) { datatype_param(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t1038; _t = _t.getNextSibling(); } else if ((_tokenSet_39.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } { _loop1049: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } case DECIMALS: { AST __t1046 = _t; AST tmp2218_AST_in = (AST)_t; match(_t,DECIMALS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1046; _t = _t.getNextSibling(); break; } case LIKE: { AST __t1047 = _t; AST tmp2219_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp2220_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1047; _t = _t.getNextSibling(); break; } case INITIAL: { initial_constant(_t); _t = _retTree; break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case NOUNDO: { AST tmp2221_AST_in = (AST)_t; match(_t,NOUNDO); _t = _t.getNextSibling(); break; } case EXTENT: { extentphrase(_t); _t = _retTree; break; } default: if (_t==null) _t=ASTNULL; if ((_t.getType()==FORMAT)) { AST __t1045 = _t; AST tmp2222_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1045; _t = _t.getNextSibling(); } else { break _loop1049; } } } while (true); } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
891,
67,
1401,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
891,
67,
1401,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
891,
67,
1401,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
891,
67,
1401,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... |
mockLoader.expects(once()).method("load").with( eq(KEY) ) .will(returnValue(VALUE)); mockClock.expects(atLeastOnce()).method("getCurrentTime").withNoArguments() .after(mockLoader, "load") .will(returnValues(loadTime, fetchTime)); mockReloadPolicy.expects(atLeastOnce()).method("shouldReload").with( eq(loadTime), eq(fetchTime) ) .will(returnValue(false)); assertSame( "should be loaded object", VALUE, cache.lookup(KEY) ); assertSame( "should be cached object", VALUE, cache.lookup(KEY) ); } | mockLoader.expects(once()).method("load").with(eq(KEY)) .will(returnValue(VALUE)); mockClock.expects(atLeastOnce()).method("getCurrentTime").withNoArguments() .after(mockLoader, "load") .will(returnValues(loadTime, fetchTime)); mockReloadPolicy.expects(atLeastOnce()).method("shouldReload").with(eq(loadTime), eq(fetchTime)) .will(returnValue(false)); assertSame("should be loaded object", VALUE, cache.lookup(KEY)); assertSame("should be cached object", VALUE, cache.lookup(KEY)); } | public void testReturnsCachedObjectWithinTimeout() { mockLoader.expects(once()).method("load").with( eq(KEY) ) .will(returnValue(VALUE)); mockClock.expects(atLeastOnce()).method("getCurrentTime").withNoArguments() .after(mockLoader, "load") .will(returnValues(loadTime, fetchTime)); mockReloadPolicy.expects(atLeastOnce()).method("shouldReload").with( eq(loadTime), eq(fetchTime) ) .will(returnValue(false)); assertSame( "should be loaded object", VALUE, cache.lookup(KEY) ); assertSame( "should be cached object", VALUE, cache.lookup(KEY) ); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/TimedCacheTest.java/clean/jmock/examples/timed-cache/src/test/jmock/examples/timedcache/TimedCacheTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1356,
9839,
921,
18949,
2694,
1435,
288,
3639,
5416,
2886,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
945,
20387,
1918,
12,
7555,
12,
3297,
13,
262,
540,
202,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1356,
9839,
921,
18949,
2694,
1435,
288,
3639,
5416,
2886,
18,
12339,
87,
12,
8243,
1435,
2934,
2039,
2932,
945,
20387,
1918,
12,
7555,
12,
3297,
13,
262,
540,
202,
18,
... |
hapMapTranslate.put("NA11993.dup", "dup NA11993.dup 0 0 2 0"); | public PedFile(){ //hardcoded hapmap info this.families = new Hashtable(); hapMapTranslate = new Hashtable(90,1); hapMapTranslate.put("NA10846", "1334 NA10846 NA12144 NA12145 1 0" ); hapMapTranslate.put("NA12144", "1334 NA12144 0 0 1 0"); hapMapTranslate.put("NA12145", "1334 NA12145 0 0 2 0"); hapMapTranslate.put("NA10847", "1334 NA10847 NA12146 NA12239 2 0" ); hapMapTranslate.put("NA12146", "1334 NA12146 0 0 1 0"); hapMapTranslate.put("NA12239", "1334 NA12239 0 0 2 0"); hapMapTranslate.put("NA07029", "1340 NA07029 NA06994 NA07000 1 0" ); hapMapTranslate.put("NA06994", "1340 NA06994 0 0 1 0"); hapMapTranslate.put("NA07000", "1340 NA07000 0 0 2 0"); hapMapTranslate.put("NA07019", "1340 NA07019 NA07022 NA07056 2 0" ); hapMapTranslate.put("NA07022", "1340 NA07022 0 0 1 0"); hapMapTranslate.put("NA07056", "1340 NA07056 0 0 2 0"); hapMapTranslate.put("NA07048", "1341 NA07048 NA07034 NA07055 1 0" ); hapMapTranslate.put("NA07034", "1341 NA07034 0 0 1 0"); hapMapTranslate.put("NA07055", "1341 NA07055 0 0 2 0"); hapMapTranslate.put("NA06991", "1341 NA06991 NA06993 NA06985 2 0" ); hapMapTranslate.put("NA06993", "1341 NA06993 0 0 1 0"); hapMapTranslate.put("NA06993.dup", "dup NA06993.dup 0 0 1 0"); hapMapTranslate.put("NA06985", "1341 NA06985 0 0 2 0"); hapMapTranslate.put("NA10851", "1344 NA10851 NA12056 NA12057 1 0" ); hapMapTranslate.put("NA12056", "1344 NA12056 0 0 1 0"); hapMapTranslate.put("NA12057", "1344 NA12057 0 0 2 0"); hapMapTranslate.put("NA07348", "1345 NA07348 NA07357 NA07345 2 0" ); hapMapTranslate.put("NA07357", "1345 NA07357 0 0 1 0"); hapMapTranslate.put("NA07345", "1345 NA07345 0 0 2 0"); hapMapTranslate.put("NA10857", "1346 NA10857 NA12043 NA12044 1 0" ); hapMapTranslate.put("NA12043", "1346 NA12043 0 0 1 0"); hapMapTranslate.put("NA12044", "1346 NA12044 0 0 2 0"); hapMapTranslate.put("NA10859", "1347 NA10859 NA11881 NA11882 2 0" ); hapMapTranslate.put("NA11881", "1347 NA11881 0 0 1 0"); hapMapTranslate.put("NA11882", "1347 NA11882 0 0 2 0"); hapMapTranslate.put("NA10854", "1349 NA10854 NA11839 NA11840 2 0" ); hapMapTranslate.put("NA11839", "1349 NA11839 0 0 1 0"); hapMapTranslate.put("NA11840", "1349 NA11840 0 0 2 0"); hapMapTranslate.put("NA10856", "1350 NA10856 NA11829 NA11830 1 0" ); hapMapTranslate.put("NA11829", "1350 NA11829 0 0 1 0"); hapMapTranslate.put("NA11830", "1350 NA11830 0 0 2 0"); hapMapTranslate.put("NA10855", "1350 NA10855 NA11831 NA11832 2 0" ); hapMapTranslate.put("NA11831", "1350 NA11831 0 0 1 0"); hapMapTranslate.put("NA11832", "1350 NA11832 0 0 2 0"); hapMapTranslate.put("NA12707", "1358 NA12707 NA12716 NA12717 1 0" ); hapMapTranslate.put("NA12716", "1358 NA12716 0 0 1 0"); hapMapTranslate.put("NA12717", "1358 NA12717 0 0 2 0"); hapMapTranslate.put("NA10860", "1362 NA10860 NA11992 NA11993 1 0" ); hapMapTranslate.put("NA11992", "1362 NA11992 0 0 1 0"); hapMapTranslate.put("NA11993", "1362 NA11993 0 0 2 0"); hapMapTranslate.put("NA11993.dup", "dup NA11993.dup 0 0 2 0"); hapMapTranslate.put("NA10861", "1362 NA10861 NA11994 NA11995 2 0" ); hapMapTranslate.put("NA11994", "1362 NA11994 0 0 1 0"); hapMapTranslate.put("NA11995", "1362 NA11995 0 0 2 0"); hapMapTranslate.put("NA10863", "1375 NA10863 NA12264 NA12234 2 0" ); hapMapTranslate.put("NA12264", "1375 NA12264 0 0 1 0"); hapMapTranslate.put("NA12234", "1375 NA12234 0 0 2 0"); hapMapTranslate.put("NA10830", "1408 NA10830 NA12154 NA12236 1 0" ); hapMapTranslate.put("NA12154", "1408 NA12154 0 0 1 0"); hapMapTranslate.put("NA12236", "1408 NA12236 0 0 2 0"); hapMapTranslate.put("NA10831", "1408 NA10831 NA12155 NA12156 2 0" ); hapMapTranslate.put("NA12155", "1408 NA12155 0 0 1 0"); hapMapTranslate.put("NA12156", "1408 NA12156 0 0 2 0"); hapMapTranslate.put("NA12156.dup", "dup NA12156.dup 0 0 2 0"); hapMapTranslate.put("NA10835", "1416 NA10835 NA12248 NA12249 1 0" ); hapMapTranslate.put("NA12248", "1416 NA12248 0 0 1 0"); hapMapTranslate.put("NA12248.dup", "dup NA1248.dup 0 0 1 0"); hapMapTranslate.put("NA12249", "1416 NA12249 0 0 2 0"); hapMapTranslate.put("NA10838", "1420 NA10838 NA12003 NA12004 1 0" ); hapMapTranslate.put("NA12003", "1420 NA12003 0 0 1 0"); hapMapTranslate.put("NA12003.dup", "dup NA12003.dup 0 0 1 0"); hapMapTranslate.put("NA12004", "1420 NA12004 0 0 2 0"); hapMapTranslate.put("NA10839", "1420 NA10839 NA12005 NA12006 2 0" ); hapMapTranslate.put("NA12005", "1420 NA12005 0 0 1 0"); hapMapTranslate.put("NA12006", "1420 NA12006 0 0 2 0"); hapMapTranslate.put("NA12740", "1444 NA12740 NA12750 NA12751 2 0" ); hapMapTranslate.put("NA12750", "1444 NA12750 0 0 1 0"); hapMapTranslate.put("NA12751", "1444 NA12751 0 0 2 0"); hapMapTranslate.put("NA12752", "1447 NA12752 NA12760 NA12761 1 0" ); hapMapTranslate.put("NA12760", "1447 NA12760 0 0 1 0"); hapMapTranslate.put("NA12761", "1447 NA12761 0 0 2 0"); hapMapTranslate.put("NA12753", "1447 NA12753 NA12762 NA12763 2 0" ); hapMapTranslate.put("NA12762", "1447 NA12762 0 0 1 0"); hapMapTranslate.put("NA12763", "1447 NA12763 0 0 2 0"); hapMapTranslate.put("NA12801", "1454 NA12801 NA12812 NA12813 1 0" ); hapMapTranslate.put("NA12812", "1454 NA12812 0 0 1 0"); hapMapTranslate.put("NA12813", "1454 NA12813 0 0 2 0"); hapMapTranslate.put("NA12802", "1454 NA12802 NA12814 NA12815 2 0" ); hapMapTranslate.put("NA12814", "1454 NA12814 0 0 1 0"); hapMapTranslate.put("NA12815", "1454 NA12815 0 0 2 0"); hapMapTranslate.put("NA12864", "1459 NA12864 NA12872 NA12873 1 0" ); hapMapTranslate.put("NA12872", "1459 NA12872 0 0 1 0"); hapMapTranslate.put("NA12873", "1459 NA12873 0 0 2 0"); hapMapTranslate.put("NA12865", "1459 NA12865 NA12874 NA12875 2 0" ); hapMapTranslate.put("NA12874", "1459 NA12874 0 0 1 0"); hapMapTranslate.put("NA12875", "1459 NA12875 0 0 2 0"); hapMapTranslate.put("NA12878", "1463 NA12878 NA12891 NA12892 2 0" ); hapMapTranslate.put("NA12891", "1463 NA12891 0 0 1 0"); hapMapTranslate.put("NA12892", "1463 NA12892 0 0 2 0"); hapMapTranslate.put("NA18526", "chi1 NA18526 0 0 2 0"); hapMapTranslate.put("NA18524", "chi2 NA18524 0 0 1 0"); hapMapTranslate.put("NA18529", "chi3 NA18529 0 0 2 0"); hapMapTranslate.put("NA18558", "chi4 NA18558 0 0 1 0"); hapMapTranslate.put("NA18532", "chi5 NA18532 0 0 2 0"); hapMapTranslate.put("NA18561", "chi6 NA18561 0 0 1 0"); hapMapTranslate.put("NA18942", "jap1 NA18942 0 0 2 0"); hapMapTranslate.put("NA18940", "jap2 NA18940 0 0 1 0"); hapMapTranslate.put("NA18951", "jap3 NA18951 0 0 2 0"); hapMapTranslate.put("NA18943", "jap4 NA18943 0 0 1 0"); hapMapTranslate.put("NA18947", "jap5 NA18947 0 0 2 0"); hapMapTranslate.put("NA18944", "jap6 NA18944 0 0 1 0"); hapMapTranslate.put("NA18562", "chi7 NA18562 0 0 1 0"); hapMapTranslate.put("NA18537", "chi8 NA18537 0 0 2 0"); hapMapTranslate.put("NA18603", "chi9 NA18603 0 0 1 0"); hapMapTranslate.put("NA18540", "chi10 NA18540 0 0 2 0"); hapMapTranslate.put("NA18605", "chi11 NA18605 0 0 1 0"); hapMapTranslate.put("NA18542", "chi12 NA18542 0 0 2 0"); hapMapTranslate.put("NA18945", "jap7 NA18945 0 0 1 0"); hapMapTranslate.put("NA18949", "jap8 NA18949 0 0 2 0"); hapMapTranslate.put("NA18948", "jap9 NA18948 0 0 1 0"); hapMapTranslate.put("NA18952", "jap10 NA18952 0 0 1 0"); hapMapTranslate.put("NA18956", "jap11 NA18956 0 0 2 0"); hapMapTranslate.put("NA18545", "chi13 NA18545 0 0 2 0"); hapMapTranslate.put("NA18572", "chi46 NA18572 0 0 1 0"); hapMapTranslate.put("NA18547", "chi15 NA18547 0 0 2 0"); hapMapTranslate.put("NA18609", "chi16 NA18609 0 0 1 0"); hapMapTranslate.put("NA18550", "chi17 NA18550 0 0 2 0"); hapMapTranslate.put("NA18608", "chi18 NA18608 0 0 1 0"); hapMapTranslate.put("NA18964", "jap12 NA18964 0 0 2 0"); hapMapTranslate.put("NA18953", "jap13 NA18953 0 0 1 0"); hapMapTranslate.put("NA18968", "jap14 NA18968 0 0 2 0"); hapMapTranslate.put("NA18959", "jap15 NA18959 0 0 1 0"); hapMapTranslate.put("NA18969", "jap16 NA18969 0 0 2 0"); hapMapTranslate.put("NA18960", "jap17 NA18960 0 0 1 0"); hapMapTranslate.put("NA18552", "chi19 NA18552 0 0 2 0"); hapMapTranslate.put("NA18611", "chi20 NA18611 0 0 1 0"); hapMapTranslate.put("NA18555", "chi21 NA18555 0 0 2 0"); hapMapTranslate.put("NA18564", "chi22 NA18564 0 0 2 0"); hapMapTranslate.put("NA18961", "jap18 NA18961 0 0 1 0"); hapMapTranslate.put("NA18972", "jap19 NA18972 0 0 2 0"); hapMapTranslate.put("NA18965", "jap20 NA18965 0 0 1 0"); hapMapTranslate.put("NA18973", "jap21 NA18973 0 0 2 0"); hapMapTranslate.put("NA18966", "jap22 NA18966 0 0 1 0"); hapMapTranslate.put("NA18975", "jap23 NA18975 0 0 2 0"); hapMapTranslate.put("NA18566", "chi23 NA18566 0 0 2 0"); hapMapTranslate.put("NA18563", "chi24 NA18563 0 0 1 0"); hapMapTranslate.put("NA18570", "chi25 NA18570 0 0 2 0"); hapMapTranslate.put("NA18612", "chi26 NA18612 0 0 1 0"); hapMapTranslate.put("NA18571", "chi27 NA18571 0 0 2 0"); hapMapTranslate.put("NA18620", "chi28 NA18620 0 0 1 0"); hapMapTranslate.put("NA18976", "jap24 NA18976 0 0 2 0"); hapMapTranslate.put("NA18967", "jap25 NA18967 0 0 1 0"); hapMapTranslate.put("NA18978", "jap26 NA18978 0 0 2 0"); hapMapTranslate.put("NA18970", "jap27 NA18970 0 0 1 0"); hapMapTranslate.put("NA18980", "jap28 NA18980 0 0 2 0"); hapMapTranslate.put("NA18995", "jap29 NA18995 0 0 1 0"); hapMapTranslate.put("NA18621", "chi29 NA18621 0 0 1 0"); hapMapTranslate.put("NA18594", "chi30 NA18594 0 0 2 0"); hapMapTranslate.put("NA18622", "chi31 NA18622 0 0 1 0"); hapMapTranslate.put("NA18573", "chi32 NA18573 0 0 2 0"); hapMapTranslate.put("NA18623", "chi33 NA18623 0 0 1 0"); hapMapTranslate.put("NA18576", "chi34 NA18576 0 0 2 0"); hapMapTranslate.put("NA18971", "jap30 NA18971 0 0 1 0"); hapMapTranslate.put("NA18981", "jap31 NA18981 0 0 2 0"); hapMapTranslate.put("NA18974", "jap32 NA18974 0 0 1 0"); hapMapTranslate.put("NA18987", "jap33 NA18987 0 0 2 0"); hapMapTranslate.put("NA18990", "jap34 NA18990 0 0 1 0"); hapMapTranslate.put("NA18991", "jap35 NA18991 0 0 2 0"); hapMapTranslate.put("NA18577", "chi35 NA18577 0 0 2 0"); hapMapTranslate.put("NA18624", "chi36 NA18624 0 0 1 0"); hapMapTranslate.put("NA18579", "chi37 NA18579 0 0 2 0"); hapMapTranslate.put("NA18632", "chi38 NA18632 0 0 1 0"); hapMapTranslate.put("NA18582", "chi39 NA18582 0 0 2 0"); hapMapTranslate.put("NA18633", "chi40 NA18633 0 0 1 0"); hapMapTranslate.put("NA18994", "jap36 NA18994 0 0 1 0"); hapMapTranslate.put("NA18992", "jap37 NA18992 0 0 2 0"); hapMapTranslate.put("NA18997", "jap38 NA18997 0 0 2 0"); hapMapTranslate.put("NA18996", "jap39 NA18996 0 0 1 0"); hapMapTranslate.put("NA18635", "chi41 NA18635 0 0 1 0"); hapMapTranslate.put("NA18592", "chi42 NA18592 0 0 2 0"); hapMapTranslate.put("NA18636", "chi43 NA18636 0 0 1 0"); hapMapTranslate.put("NA18593", "chi44 NA18593 0 0 2 0"); hapMapTranslate.put("NA18637", "chi45 NA18637 0 0 1 0"); hapMapTranslate.put("NA19000", "jap40 NA19000 0 0 1 0"); hapMapTranslate.put("NA18998", "jap41 NA18998 0 0 2 0"); hapMapTranslate.put("NA19005", "jap42 NA19005 0 0 1 0"); hapMapTranslate.put("NA18999", "jap43 NA18999 0 0 2 0"); hapMapTranslate.put("NA19007", "jap44 NA19007 0 0 1 0"); hapMapTranslate.put("NA19003", "jap45 NA19003 0 0 2 0"); hapMapTranslate.put("NA18500", "Yoruba004 NA18500 NA18501 NA18502 1 0"); hapMapTranslate.put("NA18501", "Yoruba004 NA18501 0 0 1 0"); hapMapTranslate.put("NA18502", "Yoruba004 NA18502 0 0 2 0"); hapMapTranslate.put("NA18503", "Yoruba005 NA18503 NA18504 NA18505 1 0"); hapMapTranslate.put("NA18504", "Yoruba005 NA18504 0 0 1 0"); hapMapTranslate.put("NA18505", "Yoruba005 NA18505 0 0 2 0"); hapMapTranslate.put("NA18506", "Yoruba009 NA18506 NA18507 NA18508 1 0"); hapMapTranslate.put("NA18507", "Yoruba009 NA18507 0 0 1 0"); hapMapTranslate.put("NA18508", "Yoruba009 NA18508 0 0 2 0"); hapMapTranslate.put("NA18860", "Yoruba012 NA18860 NA18859 NA18858 1 0"); hapMapTranslate.put("NA18859", "Yoruba012 NA18859 0 0 1 0"); hapMapTranslate.put("NA18858", "Yoruba012 NA18858 0 0 2 0"); hapMapTranslate.put("NA18515", "Yoruba013 NA18515 NA18516 NA18517 1 0"); hapMapTranslate.put("NA18516", "Yoruba013 NA18516 0 0 1 0"); hapMapTranslate.put("NA18517", "Yoruba013 NA18517 0 0 2 0"); hapMapTranslate.put("NA18521", "Yoruba016 NA18521 NA18522 NA18523 1 0"); hapMapTranslate.put("NA18522", "Yoruba016 NA18522 0 0 1 0"); hapMapTranslate.put("NA18523", "Yoruba016 NA18523 0 0 2 0"); hapMapTranslate.put("NA18872", "Yoruba017 NA18872 NA18871 NA18870 1 0"); hapMapTranslate.put("NA18871", "Yoruba017 NA18871 0 0 1 0"); hapMapTranslate.put("NA18870", "Yoruba017 NA18870 0 0 2 0"); hapMapTranslate.put("NA18854", "Yoruba018 NA18854 NA18853 NA18852 1 0"); hapMapTranslate.put("NA18853", "Yoruba018 NA18853 0 0 1 0"); hapMapTranslate.put("NA18852", "Yoruba018 NA18852 0 0 2 0"); hapMapTranslate.put("NA18857", "Yoruba023 NA18857 NA18856 NA18855 1 0"); hapMapTranslate.put("NA18856", "Yoruba023 NA18856 0 0 1 0"); hapMapTranslate.put("NA18855", "Yoruba023 NA18855 0 0 2 0"); hapMapTranslate.put("NA18863", "Yoruba024 NA18863 NA18862 NA18861 1 0"); hapMapTranslate.put("NA18862", "Yoruba024 NA18862 0 0 1 0"); hapMapTranslate.put("NA18861", "Yoruba024 NA18861 0 0 2 0"); hapMapTranslate.put("NA18914", "Yoruba028 NA18914 NA18913 NA18912 1 0"); hapMapTranslate.put("NA18913", "Yoruba028 NA18913 0 0 1 0"); hapMapTranslate.put("NA18912", "Yoruba028 NA18912 0 0 2 0"); hapMapTranslate.put("NA19094", "Yoruba040 NA19094 NA19092 NA19093 2 0"); hapMapTranslate.put("NA19092", "Yoruba040 NA19092 0 0 1 0"); hapMapTranslate.put("NA19093", "Yoruba040 NA19093 0 0 2 0"); hapMapTranslate.put("NA19103", "Yoruba042 NA19103 NA19101 NA19102 1 0"); hapMapTranslate.put("NA19101", "Yoruba042 NA19101 0 0 1 0"); hapMapTranslate.put("NA19102", "Yoruba042 NA19102 0 0 2 0"); hapMapTranslate.put("NA19139", "Yoruba043 NA19139 NA19138 NA19137 1 0"); hapMapTranslate.put("NA19138", "Yoruba043 NA19138 0 0 1 0"); hapMapTranslate.put("NA19137", "Yoruba043 NA19137 0 0 2 0"); hapMapTranslate.put("NA19202", "Yoruba045 NA19202 NA19200 NA19201 2 0"); hapMapTranslate.put("NA19200", "Yoruba045 NA19200 0 0 1 0"); hapMapTranslate.put("NA19201", "Yoruba045 NA19201 0 0 2 0"); hapMapTranslate.put("NA19173", "Yoruba047 NA19173 NA19171 NA19172 1 0"); hapMapTranslate.put("NA19171", "Yoruba047 NA19171 0 0 1 0"); hapMapTranslate.put("NA19172", "Yoruba047 NA19172 0 0 2 0"); hapMapTranslate.put("NA19205", "Yoruba048 NA19205 NA19203 NA19204 1 0"); hapMapTranslate.put("NA19203", "Yoruba048 NA19203 0 0 1 0"); hapMapTranslate.put("NA19204", "Yoruba048 NA19204 0 0 2 0"); hapMapTranslate.put("NA19211", "Yoruba050 NA19211 NA19210 NA19209 1 0"); hapMapTranslate.put("NA19210", "Yoruba050 NA19210 0 0 1 0"); hapMapTranslate.put("NA19209", "Yoruba050 NA19209 0 0 2 0"); hapMapTranslate.put("NA19208", "Yoruba051 NA19208 NA19207 NA19206 1 0"); hapMapTranslate.put("NA19207", "Yoruba051 NA19207 0 0 1 0"); hapMapTranslate.put("NA19206", "Yoruba051 NA19206 0 0 2 0"); hapMapTranslate.put("NA19161", "Yoruba056 NA19161 NA19160 NA19159 1 0"); hapMapTranslate.put("NA19160", "Yoruba056 NA19160 0 0 1 0"); hapMapTranslate.put("NA19159", "Yoruba056 NA19159 0 0 2 0"); hapMapTranslate.put("NA19221", "Yoruba058 NA19221 NA19223 NA19222 2 0"); hapMapTranslate.put("NA19223", "Yoruba058 NA19223 0 0 1 0"); hapMapTranslate.put("NA19222", "Yoruba058 NA19222 0 0 2 0"); hapMapTranslate.put("NA19120", "Yoruba060 NA19120 NA19119 NA19116 1 0"); hapMapTranslate.put("NA19119", "Yoruba060 NA19119 0 0 1 0"); hapMapTranslate.put("NA19116", "Yoruba060 NA19116 0 0 2 0"); hapMapTranslate.put("NA19142", "Yoruba071 NA19142 NA19141 NA19140 1 0"); hapMapTranslate.put("NA19141", "Yoruba071 NA19141 0 0 1 0"); hapMapTranslate.put("NA19140", "Yoruba071 NA19140 0 0 2 0"); hapMapTranslate.put("NA19154", "Yoruba072 NA19154 NA19153 NA19152 1 0"); hapMapTranslate.put("NA19153", "Yoruba072 NA19153 0 0 1 0"); hapMapTranslate.put("NA19152", "Yoruba072 NA19152 0 0 2 0"); hapMapTranslate.put("NA19145", "Yoruba074 NA19145 NA19144 NA19143 1 0"); hapMapTranslate.put("NA19144", "Yoruba074 NA19144 0 0 1 0"); hapMapTranslate.put("NA19143", "Yoruba074 NA19143 0 0 2 0"); hapMapTranslate.put("NA19129", "Yoruba077 NA19129 NA19128 NA19127 2 0"); hapMapTranslate.put("NA19128", "Yoruba077 NA19128 0 0 1 0"); hapMapTranslate.put("NA19127", "Yoruba077 NA19127 0 0 2 0"); hapMapTranslate.put("NA19132", "Yoruba101 NA19132 NA19130 NA19131 2 0"); hapMapTranslate.put("NA19130", "Yoruba101 NA19130 0 0 1 0"); hapMapTranslate.put("NA19131", "Yoruba101 NA19131 0 0 2 0"); hapMapTranslate.put("NA19100", "Yoruba105 NA19100 NA19098 NA19099 2 0"); hapMapTranslate.put("NA19098", "Yoruba105 NA19098 0 0 1 0"); hapMapTranslate.put("NA19099", "Yoruba105 NA19099 0 0 2 0"); hapMapTranslate.put("NA19194", "Yoruba112 NA19194 NA19192 NA19193 1 0"); hapMapTranslate.put("NA19192", "Yoruba112 NA19192 0 0 1 0"); hapMapTranslate.put("NA19193", "Yoruba112 NA19193 0 0 2 0"); hapMapTranslate.put("NA19240", "Yoruba117 NA19240 NA19239 NA19238 2 0"); hapMapTranslate.put("NA19239", "Yoruba117 NA19239 0 0 1 0"); hapMapTranslate.put("NA19238", "Yoruba117 NA19238 0 0 2 0"); } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/d155bc2e22173f6914fe5f965208a4cd71c64c9c/PedFile.java/clean/edu/mit/wi/pedfile/PedFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
329,
812,
1435,
95,
3639,
368,
20379,
24808,
5622,
1458,
1123,
3639,
333,
18,
74,
14319,
273,
394,
18559,
5621,
3639,
5622,
863,
12818,
273,
394,
18559,
12,
9349,
16,
21,
1769,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
329,
812,
1435,
95,
3639,
368,
20379,
24808,
5622,
1458,
1123,
3639,
333,
18,
74,
14319,
273,
394,
18559,
5621,
3639,
5622,
863,
12818,
273,
394,
18559,
12,
9349,
16,
21,
1769,... | |
final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); | final VmAbstractHeap firstHeap = heapManager.getHeapList(); | final void gc() { // Prepare final VmBootHeap bootHeap = heapManager.getBootHeap(); final VmAbstractHeap firstHeap = heapManager.getFirstHeap(); stats.lastGCTime = System.currentTimeMillis(); final boolean locking = (writeBarrier != null); final boolean verbose = debug; helper.stopThreadsAtSafePoint(); heapManager.setGcActive(true); try { // Mark //helper.stopThreadsAtSafePoint(); //heapManager.setGcActive(true); try { if (verbose) { Unsafe.debug("<mark/>"); } markHeap(bootHeap, firstHeap, locking); } finally { //heapManager.setGcActive(false); //helper.restartThreads(); } // Sweep if (verbose) { Unsafe.debug("<sweep/>"); } sweep(firstHeap); // Cleanup if (verbose) { Unsafe.debug("<cleanup/>"); } cleanup(bootHeap, firstHeap); // Verification if (debug) { if (verbose) { Unsafe.debug("<verify/>"); } verify(bootHeap, firstHeap); } } finally { heapManager.setGcActive(false); heapManager.resetCurrentHeap(); helper.restartThreads(); } // Start the finalization process heapManager.triggerFinalization(); if (verbose) { Unsafe.debug("</gc free="); Unsafe.debug(heapManager.getFreeMemory()); Unsafe.debug("/>"); if (debug) { System.out.println(stats); } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/GCManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/GCManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
918,
8859,
1435,
288,
3639,
368,
7730,
3639,
727,
776,
81,
15817,
15648,
4835,
15648,
273,
10500,
1318,
18,
588,
15817,
15648,
5621,
3639,
727,
776,
81,
7469,
15648,
1122,
15648,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
918,
8859,
1435,
288,
3639,
368,
7730,
3639,
727,
776,
81,
15817,
15648,
4835,
15648,
273,
10500,
1318,
18,
588,
15817,
15648,
5621,
3639,
727,
776,
81,
7469,
15648,
1122,
15648,
273,
... |
TestHelper.waitMilliSeconds(200); | public void testAbortUpload() { // Create a 10 megs file TestHelper.createRandomFile(getFolderAtBart().getLocalBase(), 10000000); getFolderAtBart().forceScanOnNextMaintenance(); getFolderAtBart().maintain(); TestHelper.waitForCondition(2, new TestHelper.Condition() { public boolean reached() { return getContollerBart().getTransferManager() .getActiveUploads().length == 1; } }); TestHelper.waitMilliSeconds(200); assertEquals(1, bartModel.getRowCount()); // Upload requested + enqueud assertEquals(2, bartModelListener.events.size()); // Abort Download download = getContollerLisa().getTransferManager() .getActiveDownloads()[0]; download.abort(); TestHelper.waitForCondition(50, new TestHelper.Condition() { public boolean reached() { return bartModel.getRowCount() == 0; } }); // Wait for EDT TestHelper.waitMilliSeconds(500); // no active upload assertEquals(0, bartModel.getRowCount()); // Check correct events from model assertEquals(3, bartModelListener.events.size()); // Upload requested assertTrue(bartModelListener.events.get(0).getType() == TableModelEvent.INSERT); // Upload started assertTrue(bartModelListener.events.get(1).getType() == TableModelEvent.UPDATE); // Upload aborted assertTrue(bartModelListener.events.get(2).getType() == TableModelEvent.DELETE); TestHelper.waitMilliSeconds(500); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a49171da04ec10edf60306c84d71f188b2bbb3f8/UploadsTableModelTest.java/clean/src/test/de/dal33t/powerfolder/test/ui/UploadsTableModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13572,
4777,
1435,
288,
3639,
368,
1788,
279,
1728,
1791,
564,
585,
3639,
7766,
2276,
18,
2640,
8529,
812,
12,
588,
3899,
861,
38,
485,
7675,
588,
2042,
2171,
9334,
2130,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13572,
4777,
1435,
288,
3639,
368,
1788,
279,
1728,
1791,
564,
585,
3639,
7766,
2276,
18,
2640,
8529,
812,
12,
588,
3899,
861,
38,
485,
7675,
588,
2042,
2171,
9334,
2130,... | |
constructor.init_param_slots (); gnu.bytecode.CodeAttr code = constructor.getCode(); | gnu.bytecode.CodeAttr code = constructor.startCode(); | public static ClassType makeRecordType (String name, LList fnames) { ClassType superClass = ClassType.make("kawa.lang.Record"); String mangledName = Compilation.mangleNameIfNeeded(name); ClassType clas = new ClassType(mangledName); clas.setSuper(superClass); clas.access_flags = Access.PUBLIC; // Generate the (default) constructor. Method constructor = clas.addMethod ("<init>", Type.typeArray0, Type.void_type, Access.PUBLIC); Method superConstructor = superClass.addMethod ("<init>", Type.typeArray0, Type.void_type, Access.PUBLIC); constructor.init_param_slots (); gnu.bytecode.CodeAttr code = constructor.getCode(); code.emitPushThis(); code.emitInvokeSpecial(superConstructor); code.emitReturn(); if (! name.equals(mangledName)) { Method meth = clas.addMethod ("getTypeName", Type.typeArray0, Compilation.typeString, Access.PUBLIC); meth.init_param_slots (); code = meth.getCode(); code.emitPushString(name); code.emitReturn(); } //StringBuffer fnamesBuf = new StringBuffer(100); gnu.bytecode.Field fld; while (fnames != LList.Empty) { Pair pair = (Pair) fnames; String fname = pair.car.toString(); //fnamesBuf.append(fname); fnamesBuf.append('\n'); fld = clas.addField(Compilation.mangleNameIfNeeded(fname), Type.pointer_type, Access.PUBLIC); fld.setSourceName(fname.intern()); fnames = (LList) pair.cdr; } /* fld = clas.addField("$FieldNames$", Compilation.typeString, Access.PUBLIC|Access.STATIC|Access.FINAL); ConstantValueAttr attr = new ConstantValueAttr(fnamesBuf.toString()); attr.addToFrontOf(fld); */ byte[][] arrays = new byte[1][]; String[] names = new String[1]; names[0] = mangledName; arrays[0] = clas.writeToArray(); ArrayClassLoader loader = new ArrayClassLoader(names, arrays); try { Class reflectClass = loader.loadClass (mangledName, true); Type.registerTypeForClass(reflectClass, clas); return clas; } catch (ClassNotFoundException ex) { throw new InternalError (ex.toString()); } } | 37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/5964eda2ec7323c49dfc0df2a7f788303c337e5e/Record.java/clean/kawa/lang/Record.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1659,
559,
1221,
2115,
559,
261,
780,
508,
16,
511,
682,
25294,
13,
225,
288,
565,
1659,
559,
18846,
273,
1659,
559,
18,
6540,
2932,
79,
2219,
69,
18,
4936,
18,
2115,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1659,
559,
1221,
2115,
559,
261,
780,
508,
16,
511,
682,
25294,
13,
225,
288,
565,
1659,
559,
18846,
273,
1659,
559,
18,
6540,
2932,
79,
2219,
69,
18,
4936,
18,
2115,
8863,
... |
String rating = " (" + ratingStr + "/" + getNoOfTimesPlayed()+ ") "; return getName() + rating; | String rating = " (" + ratingStr + "/" + getNoOfTimesPlayed()+ ")"; String s = getName() + rating; if (getFile() == null) return "[" + s + "]"; return s; | public String toString() { String ratingStr = isRated() ? Integer.toString((int) getRating()) : "UNRATED"; String rating = " (" + ratingStr + "/" + getNoOfTimesPlayed()+ ") "; return getName() + rating; } | 11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/d9733b4f6877644a5494e9b64ab3c65bf864fda9/Track.java/clean/trunk/irate/irate/common/Track.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
514,
13953,
1585,
273,
353,
54,
690,
1435,
692,
2144,
18,
10492,
12443,
474,
13,
4170,
1776,
10756,
294,
315,
2124,
54,
6344,
14432,
565,
514,
13953,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
514,
13953,
1585,
273,
353,
54,
690,
1435,
692,
2144,
18,
10492,
12443,
474,
13,
4170,
1776,
10756,
294,
315,
2124,
54,
6344,
14432,
565,
514,
13953,
273,... |
" left join fetch rg.roles role " + " left join fetch role.operations op " + " left join fetch r.resourceType rt " + | " join fetch rg.roles role " + " join fetch role.operations op " + " join fetch r.resourceType rt " + | public Collection findSvcRes_orderName(Boolean fSystem) { String sql="select distinct r from Resource r " + " join fetch r.resourceGroups rg " + " left join fetch rg.roles role " + " left join fetch role.operations op " + " left join fetch r.resourceType rt " + "where " + " r.system=? and " + " (" + " rt.name = 'covalentEAMService' or " + " rt.name = 'covalentAuthzResourceGroup') and " + " (" + " op.name = 'viewService' or " + " op.name = 'viewResourceGroup') and " + " rg.groupType = 15 and " + " (rg.groupType != 15 or rg.clusterId!=-1) " + "order by r.sortName "; return getSession().createQuery(sql) .setBoolean(0, fSystem.booleanValue()) .list(); } | 52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/a386822d73c7433cfe76362838e375012dd85fae/ResourceDAO.java/buggy/src/org/hyperic/hibernate/dao/ResourceDAO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
1104,
17444,
607,
67,
1019,
461,
12,
5507,
284,
3163,
13,
565,
288,
3639,
514,
1847,
1546,
4025,
10217,
436,
628,
2591,
436,
315,
397,
10402,
315,
1233,
2158,
436,
18,
3146,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
1104,
17444,
607,
67,
1019,
461,
12,
5507,
284,
3163,
13,
565,
288,
3639,
514,
1847,
1546,
4025,
10217,
436,
628,
2591,
436,
315,
397,
10402,
315,
1233,
2158,
436,
18,
3146,
... |
stmt.close(); | localConn.close(); | public void testBatchUpdates0015() throws Exception { Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #SAfe0015(value VARCHAR(255) PRIMARY KEY)"); // Execute prepared batch PreparedStatement insStmt = con.prepareStatement( "INSERT INTO #SAfe0015(value) values (?)"); insStmt.setString(1, "Row 1"); insStmt.addBatch(); insStmt.setString(1, "Row 2"); insStmt.addBatch(); int[] res = insStmt.executeBatch(); assertEquals(2, res.length); assertEquals(1, res[0]); assertEquals(1, res[1]); // Execute an empty batch res = insStmt.executeBatch(); assertEquals(0, res.length); insStmt.close(); // Execute plain batch stmt.addBatch("UPDATE #SAfe0015 SET value='R1' WHERE value='Row 1'"); stmt.addBatch("UPDATE #SAfe0015 SET value='R2' WHERE value='Row 2'"); res = stmt.executeBatch(); assertEquals(2, res.length); assertEquals(1, res[0]); assertEquals(1, res[1]); // Execute an empty batch res = stmt.executeBatch(); assertEquals(0, res.length); stmt.close(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/3536f07067bcf3c572aa820c500e64c50499f6c5/SAfeTest.java/buggy/src/test/net/sourceforge/jtds/test/SAfeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4497,
5121,
713,
3600,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
5233,
3030,
713,
3600,
12,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4497,
5121,
713,
3600,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
5233,
3030,
713,
3600,
12,
11... |
public void setRepositoryClient(ITaskRepositoryClient repository) { | public void setRepositoryClient(TaskRepositoryClient repository) { | public void setRepositoryClient(ITaskRepositoryClient repository) { this.repositoryClient = repository; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/6b5074f0144dd8b4908c09a9d7586b451a372cce/AbstractRepositoryClientWizard.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/AbstractRepositoryClientWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3305,
1227,
12,
1285,
835,
3305,
1227,
3352,
13,
288,
202,
202,
2211,
18,
9071,
1227,
273,
3352,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3305,
1227,
12,
1285,
835,
3305,
1227,
3352,
13,
288,
202,
202,
2211,
18,
9071,
1227,
273,
3352,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
} else if (o instanceof Impact) { | } else if (o instanceof ImpactComponent) { | private void doPopup(MouseEvent e) { TreePath selPath = workspace.getPathForLocation(e.getX(), e.getY()); if (selPath == null) return; // set the selected node to be the node the mouse is pointing at workspace.setSelectionPath(selPath); popupNode = (DefaultMutableTreeNode) selPath.getLastPathComponent(); Object o = popupNode.getUserObject(); if (popupNode.isRoot()) { rootMenu.show(workspace, e.getX(), e.getY()); } else if (o instanceof SocietyComponent) { configureSocietyMenu(((SocietyComponent)o).isEditable()); societyMenu.show(workspace, e.getX(), e.getY()); } else if (o instanceof Impact) { impactMenu.show(workspace, e.getX(), e.getY()); } else if (o instanceof Metric) { metricMenu.show(workspace, e.getX(), e.getY()); } else if (o instanceof Experiment) { configureExperimentMenu(((Experiment)o)); experimentMenu.show(workspace, e.getX(), e.getY()); } else if (o instanceof String) { treeMenu.show(workspace, e.getX(), e.getY()); } } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/f94af58ea26e45e652a0675a1b989a8ae8feb7d3/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
741,
13770,
12,
9186,
1133,
425,
13,
288,
565,
4902,
743,
357,
743,
273,
6003,
18,
588,
743,
1290,
2735,
12,
73,
18,
588,
60,
9334,
425,
18,
588,
61,
10663,
565,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
741,
13770,
12,
9186,
1133,
425,
13,
288,
565,
4902,
743,
357,
743,
273,
6003,
18,
588,
743,
1290,
2735,
12,
73,
18,
588,
60,
9334,
425,
18,
588,
61,
10663,
565,
309,
261,
... |
ErrorDialog.openError((Shell) null, title, msg, status); | IStatus errStatus = StatusUtil.newStatus(status, msg); StatusManager.getManager().handle(errStatus, StatusManager.SHOW); | private void unableToLoadPerspective(IStatus status) { String title = WorkbenchMessages.Perspective_problemLoadingTitle; String msg = WorkbenchMessages.Perspective_errorLoadingState; if (status == null) { MessageDialog.openError((Shell) null, title, msg); } else { ErrorDialog.openError((Shell) null, title, msg, status); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/35492165b8206aabe441da70f8f0c8802b959190/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13496,
26883,
14781,
16772,
12,
45,
1482,
1267,
13,
288,
202,
202,
780,
2077,
273,
4147,
22144,
5058,
18,
14781,
16772,
67,
18968,
10515,
4247,
31,
202,
202,
780,
1234,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
13496,
26883,
14781,
16772,
12,
45,
1482,
1267,
13,
288,
202,
202,
780,
2077,
273,
4147,
22144,
5058,
18,
14781,
16772,
67,
18968,
10515,
4247,
31,
202,
202,
780,
1234,
27... |
public Connection connect(String url, java.util.Properties info) throws SQLException { if (url == null || !url.startsWith(FIREBIRD_PROTOCOL)) { return null; } // end of if () try { FBConnectionRequestInfo conCri = FBConnectionHelper.getCri(info, null); // extract the user String user = info.getProperty(USER); if (user == null) user = conCri.getStringProperty(GDS.isc_dpb_user_name); if (user == null) throw new SQLException( "User for database connection not specified."); // extract the password String password = info.getProperty(PASSWORD); if (password == null) password = conCri.getStringProperty(GDS.isc_dpb_password); if (password == null) throw new SQLException( "Password for database connection not specified."); // extract the database URL String databaseURL = url.substring(FIREBIRD_PROTOCOL.length()); FBDataSource dataSource = (FBDataSource)urlToDataSourceMap.get(databaseURL); if (dataSource == null) { FBManagedConnectionFactory factory = new FBManagedConnectionFactory(); factory.setDatabase(databaseURL); // set connection request info factory.setConnectionRequestInfo(FBConnectionHelper.getCri( info, factory.getDefaultConnectionRequestInfo())); dataSource = (FBDataSource)factory.createConnectionFactory(); // urlToDataSourceMap.put(databaseURL, dataSource); } // end of if () return dataSource.getConnection(user, password); } catch(javax.resource.ResourceException resex) { throw new SQLException(resex.getMessage()); } } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/9cf27406d17b25f7d34d0bda4d11841de282d260/FBDriver.java/buggy/src/org/firebirdsql/jdbc/FBDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
3077,
12,
780,
880,
16,
2252,
18,
1367,
18,
2297,
1123,
13,
3639,
1216,
6483,
565,
288,
3639,
309,
261,
718,
422,
446,
747,
401,
718,
18,
17514,
1190,
12,
1653,
862,
38,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
3077,
12,
780,
880,
16,
2252,
18,
1367,
18,
2297,
1123,
13,
3639,
1216,
6483,
565,
288,
3639,
309,
261,
718,
422,
446,
747,
401,
718,
18,
17514,
1190,
12,
1653,
862,
38,
7... | ||
public org.quickfix.field.NestedPartyID get(org.quickfix.field.NestedPartyID value) | public quickfix.field.NestedPartyID get(quickfix.field.NestedPartyID value) | public org.quickfix.field.NestedPartyID get(org.quickfix.field.NestedPartyID value) throws FieldNotFound { getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
8649,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
8649,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
... |
public void closeEntry() throws IOException { if (this.assemLen > 0) { for (int i = this.assemLen; i < this.assemBuf.length; ++i) { this.assemBuf[i] = 0; | public void closeEntry() throws IOException { if ( this.assemLen > 0 ) { for ( int i = this.assemLen; i < this.assemBuf.length; ++i ) { this.assemBuf[ i ] = 0; | public void closeEntry() throws IOException { if (this.assemLen > 0) { for (int i = this.assemLen; i < this.assemBuf.length; ++i) { this.assemBuf[i] = 0; } this.buffer.writeRecord(this.assemBuf); this.currBytes += this.assemLen; this.assemLen = 0; } if (this.currBytes < this.currSize) { throw new IOException("entry closed at '" + this.currBytes + "' before the '" + this.currSize + "' bytes specified in the header were written"); } } | 55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/TarOutputStream.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/tar/TarOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1622,
1435,
1216,
1860,
288,
3639,
309,
261,
2211,
18,
345,
12000,
2891,
405,
374,
13,
288,
5411,
364,
261,
474,
277,
273,
333,
18,
345,
12000,
2891,
31,
277,
411,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1622,
1435,
1216,
1860,
288,
3639,
309,
261,
2211,
18,
345,
12000,
2891,
405,
374,
13,
288,
5411,
364,
261,
474,
277,
273,
333,
18,
345,
12000,
2891,
31,
277,
411,
333,... |
System.out.println("field == "+ option.getFieldFromContext() ); } | public void setOption(Option option) { if (!allOptions.contains(option)) throw new IllegalArgumentException( "Option is unailable in filter: " + option); if (option == lastSelectedOption) return; updateDisplay(option); Option old = this.option; this.option = option; changeSupport.firePropertyChange(getPropertyName(), old, option); unassignPushOptions(); Filter oldFilter = filter; if (option == nullOption) { removeFilterFromQuery(filter); filter = null; } else { String value = null; if (option != null) { String tmp = option.getValueFromContext(); if (tmp != null && !"".equals(tmp)) { value = tmp; } if (value != null) { filter = new InputPageAwareBasicFilter(option, this); System.out.println("field == "+ option.getFieldFromContext() ); } setNodeLabel(fieldName, option.getDisplayName()); assignPushOptions(option.getPushActions()); } } lastSelectedOption = option; // query=null when used for dataset so must precheck if (query != null) updateQueryFilters(oldFilter, filter); } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/860996b435de4ed195ce438302089aea1201beca/TreeFilterWidget.java/clean/src/java/org/ensembl/mart/explorer/TreeFilterWidget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
14211,
12,
1895,
1456,
13,
288,
202,
202,
430,
16051,
454,
1320,
18,
12298,
12,
3482,
3719,
1082,
202,
12849,
394,
2754,
12,
9506,
202,
6,
1895,
353,
640,
1751,
316,
1034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
14211,
12,
1895,
1456,
13,
288,
202,
202,
430,
16051,
454,
1320,
18,
12298,
12,
3482,
3719,
1082,
202,
12849,
394,
2754,
12,
9506,
202,
6,
1895,
353,
640,
1751,
316,
1034... | |
public Object doInHibernate(Session session) throws HibernateException, SQLException { | public Object doInHibernate(Session session) throws HibernateException { | public Object doInHibernate(Session session) throws HibernateException, SQLException { return session.createCriteria( constraintOwningClass ) .add( Restrictions.eq( constraintPropertyName, propertyValue ) ) .list(); } | 54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/5d5dda883f01b0dde627bd15afab5335693b6227/ConstrainedPersistentProperty.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/validation/ConstrainedPersistentProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
1033,
741,
382,
44,
24360,
12,
2157,
1339,
13,
1216,
670,
24360,
503,
288,
13491,
327,
1339,
18,
2640,
7231,
12,
4954,
3494,
2093,
797,
262,
4766,
5411,
263,
1289,
12,
1124,
6192,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
1033,
741,
382,
44,
24360,
12,
2157,
1339,
13,
1216,
670,
24360,
503,
288,
13491,
327,
1339,
18,
2640,
7231,
12,
4954,
3494,
2093,
797,
262,
4766,
5411,
263,
1289,
12,
1124,
6192,
... |
public void setPressed(boolean p) { // cannot change PRESSED state unless button is enabled if (! isEnabled()) return; // if this call does not represent a CHANGE in state, then return if ((p && isPressed()) || (!p && !isPressed())) return; // make the change if (p) stateMask = stateMask | PRESSED; else stateMask = stateMask & (~PRESSED); // notify interested ChangeListeners fireStateChanged(); // setPressed(false) == mouse release on us, // if we were armed, we flip the selected state. if (!p && isArmed()) { fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand)); setSelected(! isSelected()); } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/e5d84bbc425bfa27c02d2ea711edecf39694ef10/JToggleButton.java/clean/javax/swing/JToggleButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
17004,
4638,
12,
6494,
293,
13,
225,
288,
225,
368,
2780,
2549,
453,
7031,
18204,
919,
3308,
3568,
353,
3696,
225,
309,
16051,
12047,
10756,
565,
327,
31,
565,
368,
309,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
17004,
4638,
12,
6494,
293,
13,
225,
288,
225,
368,
2780,
2549,
453,
7031,
18204,
919,
3308,
3568,
353,
3696,
225,
309,
16051,
12047,
10756,
565,
327,
31,
565,
368,
309,
333,
... | ||
public void setProperty(String key, String value) | public void setProperty(QName key, String value) | public void setProperty(String key, String value) { if(key.equals(OutputKeys.METHOD)) { setMethodDefaults(value); } m_properties.put(key, value); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/4d29408b0c0c3a57378d8e660f6677c62045db92/OutputProperties.java/buggy/src/org/apache/xalan/templates/OutputProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7486,
12,
13688,
498,
16,
514,
460,
13,
225,
288,
565,
309,
12,
856,
18,
14963,
12,
1447,
2396,
18,
5327,
3719,
565,
288,
1377,
19539,
7019,
12,
1132,
1769,
565,
289,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7486,
12,
13688,
498,
16,
514,
460,
13,
225,
288,
565,
309,
12,
856,
18,
14963,
12,
1447,
2396,
18,
5327,
3719,
565,
288,
1377,
19539,
7019,
12,
1132,
1769,
565,
289,
565,
... |
if(state == STATE_SERVER_AWAITING_REQUEST) { handleRequest(); } else if(state == STATE_CLIENT_AWAITING_RESPONSE) { handleResponse(); } else if(state == STATE_READY) { handleChunk(); } else { throw new IllegalStateException("Cannot handle read from state " + state); | boolean satisfied = true; while(satisfied) { if(state == STATE_SERVER_AWAITING_REQUEST) { satisfied = handleRequest(); } else if(state == STATE_CLIENT_AWAITING_RESPONSE) { satisfied = handleResponse(); } else if(state == STATE_READY) { satisfied = handleChunk(); } else { throw new IllegalStateException("Cannot handle read from state " + state); } | synchronized void handleRead() { // read a request if(state == STATE_SERVER_AWAITING_REQUEST) { handleRequest(); // read a response } else if(state == STATE_CLIENT_AWAITING_RESPONSE) { handleResponse(); // read a chunk } else if(state == STATE_READY) { handleChunk(); // we don't know what to read } else { throw new IllegalStateException("Cannot handle read from state " + state); } } | 10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/77b0e3d8356c1fb93cd710795e237e5fad999a7d/CTPConnection.java/buggy/source/ca/odell/glazedlists/net/CTPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
1640,
1994,
1435,
288,
3639,
368,
855,
279,
590,
3639,
309,
12,
2019,
422,
7442,
67,
4370,
67,
12999,
14113,
1360,
67,
5519,
13,
288,
5411,
15713,
5621,
10792,
368,
855,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
1640,
1994,
1435,
288,
3639,
368,
855,
279,
590,
3639,
309,
12,
2019,
422,
7442,
67,
4370,
67,
12999,
14113,
1360,
67,
5519,
13,
288,
5411,
15713,
5621,
10792,
368,
855,
279,
... |
v0 = value0[i]; if (isPathSelected(v0)) | int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) | public void removeSelectionPaths(TreePath[] value0) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { index = x; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0, index); System.arraycopy(selection, index + 1, temp, index, selection.length - index - 1); selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.length); fireValueChanged(new TreeSelectionEvent(this, v0, false, leadPath, value0[0])); } } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/5d72b6a15b486e2a0439d7d26a2205595690ecb9/DefaultTreeSelectionModel.java/buggy/libraries/javalib/javax/swing/tree/DefaultTreeSelectionModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
6233,
4466,
12,
2471,
743,
8526,
460,
20,
13,
202,
95,
202,
202,
474,
770,
273,
300,
21,
31,
202,
202,
2471,
743,
331,
20,
273,
446,
31,
202,
202,
1884,
261,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
6233,
4466,
12,
2471,
743,
8526,
460,
20,
13,
202,
95,
202,
202,
474,
770,
273,
300,
21,
31,
202,
202,
2471,
743,
331,
20,
273,
446,
31,
202,
202,
1884,
261,
47... |
final java.sql.Connection connection = star.getJdbcConnection(); String database = null; | String database = null; | private void assertRequestSql(CellRequest[] requests, final String pattern, final String trigger) { final RolapAggregationManager aggMan = AggregationManager.instance(); ArrayList pinnedSegments = new ArrayList(); RolapStar star = requests[0].getMeasure().table.star; final java.sql.Connection connection = star.getJdbcConnection(); String database = null; try { database = connection.getMetaData().getDatabaseProductName(); } catch (SQLException e) { } if (!database.equals("ACCESS")) { return; } star.setJdbcConnection( (java.sql.Connection) Proxy.newProxyInstance( null, new Class[]{java.sql.Connection.class}, new TriggerHandler(connection, trigger))); Bomb bomb; try { aggMan.loadAggregations(createBatch(requests), pinnedSegments); bomb = null; } catch (Bomb e) { bomb = e; } finally { star.setJdbcConnection(connection); } assertTrue(bomb != null); assertEquals(pattern, bomb.sql); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/f60827cec36d4c72ea0859312ecb1c1e71efa27d/TestAggregationManager.java/clean/src/main/mondrian/rolap/agg/TestAggregationManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1815,
691,
5101,
12,
4020,
691,
8526,
3285,
16,
727,
514,
1936,
16,
727,
514,
3080,
13,
288,
202,
202,
6385,
11714,
438,
12089,
1318,
10421,
5669,
273,
21100,
1318,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1815,
691,
5101,
12,
4020,
691,
8526,
3285,
16,
727,
514,
1936,
16,
727,
514,
3080,
13,
288,
202,
202,
6385,
11714,
438,
12089,
1318,
10421,
5669,
273,
21100,
1318,
18,
... |
Collection cRegisteredEntries = UIExtensionsImpl.instance( ) | Collection cRegisteredEntries = ChartUIExtensionsImpl.instance( ) | private void getSeriesAttributeUIProviders( ) { // Get collection of registered UI Providers Collection cRegisteredEntries = UIExtensionsImpl.instance( ) .getSeriesUIComponents( ); Iterator iterEntries = cRegisteredEntries.iterator( ); while ( iterEntries.hasNext( ) ) { ISeriesUIProvider provider = (ISeriesUIProvider) iterEntries.next( ); String sSeries = provider.getSeriesClass( ); htSeriesAttributeUIProviders.put( sSeries, provider ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/df749af233ec4b7ab4ff5a2378a06e2616f2033a/SeriesYSheetImpl.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/series/SeriesYSheetImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
336,
6485,
1499,
5370,
10672,
12,
262,
202,
95,
202,
202,
759,
968,
1849,
434,
4104,
6484,
30510,
202,
202,
2532,
276,
10868,
5400,
273,
6484,
7513,
2828,
18,
1336,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
336,
6485,
1499,
5370,
10672,
12,
262,
202,
95,
202,
202,
759,
968,
1849,
434,
4104,
6484,
30510,
202,
202,
2532,
276,
10868,
5400,
273,
6484,
7513,
2828,
18,
1336,
12,
... |
return negativeEntries; | return ( negativeEntries == null ) ? new ACL.Entry[0] : negativeEntries; | public ACL.Entry[] getNegativeEntries() { return negativeEntries; } | 53206 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53206/af1a0ea039223063b582cb44e55a4b58d1ec2836/ACL.java/clean/src/JAVA/classes/org/openafs/jafs/ACL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10098,
18,
1622,
8526,
11069,
8101,
5400,
1435,
225,
288,
565,
327,
261,
6092,
5400,
422,
446,
262,
692,
394,
10098,
18,
1622,
63,
20,
65,
294,
6092,
5400,
31,
225,
289,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10098,
18,
1622,
8526,
11069,
8101,
5400,
1435,
225,
288,
565,
327,
261,
6092,
5400,
422,
446,
262,
692,
394,
10098,
18,
1622,
63,
20,
65,
294,
6092,
5400,
31,
225,
289,
2,
-100,
... |
while (true) | while (currLineStart != end) | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); // WrappedLine does not represent the last possible offset in a line. // So we should never return that offset. Behavior observed in the RI. int end = getEndOffset() - 1; int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if (y > rect.y + rect.height) return end; // Note: rect.x and rect.width do not represent the width of painted // text but the area where text *may* be painted. This means the width // is most of the time identical to the component's width. while (true) { int currLineEnd = calculateBreakPosition(currLineStart, end); // If we're at the right y-position that means we're on the right // logical line and we should look for the character if (y >= rect.y && y < rect.y + lineHeight) { try { getDocument().getText(currLineStart, currLineEnd - currLineStart, s); } catch (BadLocationException ble) { // Shouldn't happen } return Utilities.getTabbedTextOffset(s, metrics, rect.x, (int) x, WrappedPlainView.this, currLineStart); } // Increment rect.y so we're checking the next logical line rect.y += lineHeight; // Increment currLineStart to the model position of the start // of the next logical line currLineStart = currLineEnd; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8e6a933c7311b8af73a149d26777089b7dc8bd68/WrappedPlainView.java/clean/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1476,
774,
1488,
12,
5659,
619,
16,
1431,
677,
16,
12383,
279,
16,
605,
1795,
8526,
324,
13,
565,
288,
1377,
10807,
272,
273,
9851,
1892,
5621,
1377,
13264,
4917,
273,
279,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1476,
774,
1488,
12,
5659,
619,
16,
1431,
677,
16,
12383,
279,
16,
605,
1795,
8526,
324,
13,
565,
288,
1377,
10807,
272,
273,
9851,
1892,
5621,
1377,
13264,
4917,
273,
279,
1... |
if (jj_scan_token(TRANSIENT)) return true; return false; } | if (jj_scan_token(FINAL)) return true; return false; } | final private boolean jj_3R_220() { if (jj_scan_token(TRANSIENT)) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
27246,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
28412,
3719,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
27246,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
28412,
3719,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,... |
} catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); | /* } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); */ | public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = threadContext.getPosition(); Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = null; try { recv = eval(iVisited.getIterNode()); } finally { threadContext.setPosition(position); ArgsUtil.endCallArgs(runtime, tmpBlock); } result = recv.getInternalClass().call(recv, "each", null, CallType.NORMAL); return; } catch (RetryJump rExcptn) { } } } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { result = runtime.getNil(); } finally { runtime.getIterStack().pop(); runtime.getBlockStack().pop(); } } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/18dd02018c952c97ac0dcbdcf0fd8626a29324f3/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31058,
12,
31058,
277,
30019,
13,
288,
3639,
2650,
1042,
18,
588,
1768,
2624,
7675,
6206,
12,
77,
30019,
18,
588,
1537,
907,
9334,
394,
18176,
1305,
12,
77,
30019,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31058,
12,
31058,
277,
30019,
13,
288,
3639,
2650,
1042,
18,
588,
1768,
2624,
7675,
6206,
12,
77,
30019,
18,
588,
1537,
907,
9334,
394,
18176,
1305,
12,
77,
30019,
18,
... |
idleHelper = new IDEIdleHelper(configurer); | activityHelper = IDEWorkbenchActivityHelper.getInstance(); idleHelper = new IDEIdleHelper(configurer); | public void initialize(IWorkbenchConfigurer configurer) { // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); // setup the event loop exception handler exceptionHandler = new IDEExceptionHandler(configurer); // register workspace adapters WorkbenchAdapterBuilder.registerAdapters(); // get the command line arguments String[] cmdLineArgs = Platform.getCommandLineArgs(); // include the workspace location in the title // if the command line option -showlocation is specified for (int i = 0; i < cmdLineArgs.length; i++) { if ("-showlocation".equalsIgnoreCase(cmdLineArgs[i])) { //$NON-NLS-1$ String name = null; if (cmdLineArgs.length > i + 1) name = cmdLineArgs[i+1]; if (name != null && name.indexOf("-") == -1) //$NON-NLS-1$ workspaceLocation = name; else workspaceLocation = Platform.getLocation().toOSString(); break; } } // register shared images declareWorkbenchImages(); // initialize the activity helper activityHelper = IDEWorkbenchActivityHelper.getInstance(); //initialize idle handler idleHelper = new IDEIdleHelper(configurer); // show Help button in JFace dialogs TrayDialog.setDialogHelpAvailable(true); // use this image for the help button in dialogs ImageRegistry reg = JFaceResources.getImageRegistry(); reg.put(Dialog.DLG_IMG_HELP, IDEInternalWorkbenchImages.getImageDescriptor( IDEInternalWorkbenchImages.IMG_LCL_LINKTO_HELP)); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fdc0bfc5b2792369a886e670b7c019c9a9664acb/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
45,
2421,
22144,
809,
11278,
642,
11278,
13,
288,
3639,
368,
1221,
3071,
732,
3712,
1923,
471,
5217,
6003,
919,
3639,
642,
11278,
18,
542,
4755,
1876,
10874,
12,
3767... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
45,
2421,
22144,
809,
11278,
642,
11278,
13,
288,
3639,
368,
1221,
3071,
732,
3712,
1923,
471,
5217,
6003,
919,
3639,
642,
11278,
18,
542,
4755,
1876,
10874,
12,
3767... |
PersistentObject po = (PersistentObject) old; if (po != null) { cascadeDelete(oid, po); | if (old != null) { cascadeDelete(obj, value); | public void set(final OID oid, Property prop, final Object value) { if (LOG.isDebugEnabled()) { trace("set", new Object[] {oid, prop.getName(), value}); } prop.dispatch(new Property.Switch() { public void onRole(Role role) { Object old = null; if (role.isComponent() || role.isReversable()) { old = get(oid, role); } addEvent(new SetEvent(Session.this, oid, role, value)); if (role.isComponent()) { PersistentObject po = (PersistentObject) old; if (po != null) { cascadeDelete(oid, po); } } if (role.isReversable()) { if (old != null) { reverseUpdateOld (oid, role, (PersistentObject) old); } if (value != null) { reverseUpdateNew (oid, role, (PersistentObject) value); } } } public void onAlias(Alias alias) { set(oid, alias.getTarget(), value); } public void onLink(Link link) { throw new Error("not implemented"); } }); if (LOG.isDebugEnabled()) { untrace("set"); } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/aa917d9730b075c22b50c9c9b74ff04fb373d38b/Session.java/buggy/archive/proto/src/com/arsdigita/persistence/proto/Session.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12,
6385,
18026,
7764,
16,
4276,
2270,
16,
727,
1033,
460,
13,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
5411,
2606,
2932,
542,
3113,
394,
1033,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12,
6385,
18026,
7764,
16,
4276,
2270,
16,
727,
1033,
460,
13,
288,
3639,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
5411,
2606,
2932,
542,
3113,
394,
1033,
8526,
... |
while(mode.length() < 7) mode.insert(0,'0'); | while(mode.length() < 7) { mode.insert(0,'0'); } | public void putNextEntry(TarEntry e) throws IOException { byte[] header = new byte[512]; String filename = e.getName(); String prefix = null; int pos, i; /* Split filename into name and prefix if necessary. */ byte[] filenameBytes = filename.getBytes("UTF8"); //$NON-NLS-1$ if (filenameBytes.length > 99) { int seppos = filename.lastIndexOf('/'); if(seppos == -1) throw new IOException("filename too long"); //$NON-NLS-1$ prefix = filename.substring(0, seppos); filename = filename.substring(seppos + 1); filenameBytes = filename.getBytes("UTF8"); //$NON-NLS-1$ if (filenameBytes.length > 99) throw new IOException("filename too long"); //$NON-NLS-1$ } /* Filename. */ pos = 0; System.arraycopy(filenameBytes, 0, header, 0, filenameBytes.length); pos += 100; /* File mode. */ StringBuffer mode = new StringBuffer(Long.toOctalString(e.getMode())); while(mode.length() < 7) mode.insert(0,'0'); for(i = 0; i < 7; i++) { header[pos + i] = (byte) mode.charAt(i); } pos += 8; /* UID. */ header[pos] = '0'; pos += 8; /* GID. */ header[pos] = '0'; pos += 8; /* Length of the file. */ String length = Long.toOctalString(e.getSize()); for(i = 0; i < length.length(); i++) { header[pos + i] = (byte) length.charAt(i); } pos += 12; /* mtime */ String mtime = Long.toOctalString(e.getTime()); for(i = 0; i < mtime.length(); i++) { header[pos + i] = (byte) mtime.charAt(i); } pos += 12; /* "Blank" out the checksum. */ for(i = 0; i < 8; i++) { header[pos + i] = ' '; } pos += 8; /* Link flag. */ header[pos] = (byte) e.getFileType(); pos += 1; /* Link destination. */ pos += 100; /* Add ustar header. */ String ustar = "ustar 00"; //$NON-NLS-1$ for(i = 0; i < ustar.length(); i++) { header[pos + i] = (byte) ustar.charAt(i); } header[pos + 5] = 0; pos += 8; /* Username. */ String uname = "nobody"; //$NON-NLS-1$ for(i = 0; i < uname.length(); i++) { header[pos + i] = (byte) uname.charAt(i); } pos += 32; /* Group name. */ String gname = "nobody"; //$NON-NLS-1$ for(i = 0; i < gname.length(); i++) { header[pos + i] = (byte) gname.charAt(i); } pos += 32; /* Device major. */ pos += 8; /* Device minor. */ pos += 8; /* File prefix. */ if(prefix != null) { byte[] prefixBytes = prefix.getBytes("UTF8"); //$NON-NLS-1$ if (prefixBytes.length > 155) throw new IOException("prefix too large"); //$NON-NLS-1$ System.arraycopy(prefixBytes, 0, header, pos, prefixBytes.length); } long sum = headerChecksum(header); pos = 100 + 8 + 8 + 8 + 12 + 12; String sumval = Long.toOctalString(sum); for(i = 0; i < sumval.length(); i++) { header[pos + i] = (byte) sumval.charAt(i); } cursize = 512; write(header, 0, 512); cursize = e.getSize(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TarOutputStream.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
2134,
1622,
12,
20464,
1622,
425,
13,
1216,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
780,
1544,
273,
425,
18,
17994,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
2134,
1622,
12,
20464,
1622,
425,
13,
1216,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
780,
1544,
273,
425,
18,
17994,
5621,
... |
node.findChildrenOfType(ASTVariableInitializer.class, results, true); if (results.size()>0) { setInInitializer = true; } return setInInitializer; | node.findChildrenOfType(ASTVariableInitializer.class, results, true); if (results.size()>0) { setInInitializer = true; } return setInInitializer; | private boolean initializedInDeclaration(SimpleNode node) { boolean setInInitializer = false; List results = new Vector(); node.findChildrenOfType(ASTVariableInitializer.class, results, true); if (results.size()>0) { setInInitializer = true; } return setInInitializer; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/6f8b9ddd901a227203b4c64ee3f57c8165772d3f/ImmutableFieldRule.java/clean/pmd/src/net/sourceforge/pmd/rules/design/ImmutableFieldRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
6454,
382,
6094,
12,
5784,
907,
756,
13,
288,
377,
202,
6494,
444,
382,
14729,
273,
629,
31,
3639,
987,
1686,
273,
394,
5589,
5621,
202,
202,
2159,
18,
4720,
4212,
18859,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
6454,
382,
6094,
12,
5784,
907,
756,
13,
288,
377,
202,
6494,
444,
382,
14729,
273,
629,
31,
3639,
987,
1686,
273,
394,
5589,
5621,
202,
202,
2159,
18,
4720,
4212,
18859,
12... |
public Field(Connection conn, String name, int oid, int length) { this(conn,name,oid,length,0); } | public Field(Connection conn, String name, int oid, int length,int mod) { this.conn = conn; this.name = name; this.oid = oid; this.length = length; this.mod = mod; } | public Field(Connection conn, String name, int oid, int length) { this(conn,name,oid,length,0); } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Field.java/buggy/src/interfaces/jdbc/org/postgresql/Field.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
12,
1952,
1487,
16,
514,
508,
16,
509,
7764,
16,
509,
769,
13,
565,
288,
202,
2211,
12,
4646,
16,
529,
16,
839,
16,
2469,
16,
20,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
12,
1952,
1487,
16,
514,
508,
16,
509,
7764,
16,
509,
769,
13,
565,
288,
202,
2211,
12,
4646,
16,
529,
16,
839,
16,
2469,
16,
20,
1769,
565,
289,
2,
-100,
-100,
-100,
-1... |
public static java.sql.Timestamp getWeekStart(java.sql.Timestamp stamp, int daysLater, int weeksLater) { Calendar tempCal = Calendar.getInstance(); tempCal.setTime(new java.util.Date(stamp.getTime())); tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), tempCal.get(Calendar.DAY_OF_MONTH), 0, 0, 0); tempCal.add(Calendar.DAY_OF_MONTH, daysLater); tempCal.set(Calendar.DAY_OF_WEEK, tempCal.getFirstDayOfWeek()); tempCal.add(Calendar.WEEK_OF_MONTH, weeksLater); java.sql.Timestamp retStamp = new java.sql.Timestamp(tempCal.getTime().getTime()); retStamp.setNanos(0); return retStamp; | public static java.sql.Timestamp getWeekStart(java.sql.Timestamp stamp) { return getWeekStart(stamp, 0, 0); | public static java.sql.Timestamp getWeekStart(java.sql.Timestamp stamp, int daysLater, int weeksLater) { Calendar tempCal = Calendar.getInstance(); tempCal.setTime(new java.util.Date(stamp.getTime())); tempCal.set(tempCal.get(Calendar.YEAR), tempCal.get(Calendar.MONTH), tempCal.get(Calendar.DAY_OF_MONTH), 0, 0, 0); tempCal.add(Calendar.DAY_OF_MONTH, daysLater); tempCal.set(Calendar.DAY_OF_WEEK, tempCal.getFirstDayOfWeek()); tempCal.add(Calendar.WEEK_OF_MONTH, weeksLater); java.sql.Timestamp retStamp = new java.sql.Timestamp(tempCal.getTime().getTime()); retStamp.setNanos(0); return retStamp; } | 55411 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55411/12aad676b69f0187294ba449482bd21bf2ba6fb7/UtilDateTime.java/buggy/framework/base/src/base/org/ofbiz/base/util/UtilDateTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2252,
18,
4669,
18,
4921,
336,
6630,
1685,
12,
6290,
18,
4669,
18,
4921,
14429,
16,
509,
4681,
20607,
16,
509,
17314,
20607,
13,
288,
3639,
5542,
1906,
3005,
273,
5542,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2252,
18,
4669,
18,
4921,
336,
6630,
1685,
12,
6290,
18,
4669,
18,
4921,
14429,
16,
509,
4681,
20607,
16,
509,
17314,
20607,
13,
288,
3639,
5542,
1906,
3005,
273,
5542,
18,
5... |
for(int i = 0; i < allFields.length; i++){ final PsiField field = allFields[i]; | for(final PsiField field : allFields){ | public void applyFix(Project project, ProblemDescriptor descriptor){ final PsiJavaCodeReferenceElement referenceElement = (PsiJavaCodeReferenceElement) descriptor.getPsiElement(); final String referencedClassName = referenceElement.getText(); final PsiClass iface = (PsiClass) referenceElement.resolve(); final PsiField[] allFields = iface.getAllFields(); final PsiClass implementingClass = (PsiClass) PsiTreeUtil.getParentOfType(referenceElement, PsiClass.class); final PsiManager manager = referenceElement.getManager(); final PsiSearchHelper searchHelper = manager.getSearchHelper(); final SearchScope searchScope = implementingClass.getUseScope(); for(int i = 0; i < allFields.length; i++){ final PsiField field = allFields[i]; final PsiReference[] references = searchHelper.findReferences(field, searchScope, false); for(int j = 0; j < references.length; j++){ final PsiReferenceExpression reference = (PsiReferenceExpression) references[j]; if(!reference.isQualified()){ final String referenceText = reference.getText(); replaceExpression(project, reference, referencedClassName + '.' + referenceText); } else{ final PsiExpression qualifier = reference.getQualifierExpression(); final String referenceName = reference.getReferenceName(); if(qualifier instanceof PsiReferenceExpression){ final PsiElement referent = ((PsiReference) qualifier).resolve(); if(!referent.equals(iface)){ replaceExpression(project, reference, referencedClassName + '.' + referenceName); } } else{ replaceExpression(project, reference, referencedClassName + '.' + referenceName); } } } } deleteElement(referenceElement); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2d46d291193579a7564649b4881c7ea8e02eda5b/StaticInheritanceInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/StaticInheritanceInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
15329,
5411,
727,
453,
7722,
5852,
1085,
2404,
1046,
2114,
1046,
273,
10792,
261,
52,
7722,
5852,
1085,
2404,
1046,
13,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
15329,
5411,
727,
453,
7722,
5852,
1085,
2404,
1046,
2114,
1046,
273,
10792,
261,
52,
7722,
5852,
1085,
2404,
1046,
13,
4950,
... |
idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize && callerCmid != -1) { samples[idx] = callerCmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); | if (callerCmid != -1) { idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize) { samples[idx] = callerCmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } | public final void update(int cmid, int callerCmid, int whereFrom) { int idx; int sampleNumber=-1; // the sample number of our insertion if (VM.UseEpilogueYieldPoints) { // New scheme: Use epilogue yieldpoints. We increment one sample // for every yieldpoint. On a prologue, we count the caller. // On backedges and epilogues, we count the current method. if (whereFrom == VM_Thread.PROLOGUE) { idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize && callerCmid != -1) { samples[idx] = callerCmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } } else { // loop backedge or epilogue. idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize) { samples[idx] = cmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } } } else { // Original scheme: No epilogue yieldpoints. We increment two samples // for every yieldpoint. On a prologue, we count both the caller // and callee. On backedges, we count the current method twice. if (whereFrom == VM_Thread.PROLOGUE) { // Increment both for this method and the caller idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize) { samples[idx] = cmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize && callerCmid != -1) { samples[idx] = callerCmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } } else { // loop backedge. We're only called once, so need to take // two samples to avoid penalizing methods with loops. idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize) { samples[idx] = cmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } idx = VM_Synchronization.fetchAndAdd(this, nextIndexOffset, 1); if (idx < sampleSize) { samples[idx] = cmid; sampleNumber = VM_Synchronization.fetchAndAdd(this, numSamplesOffset, 1); } } } // sampleNumber has the value before we incremented, add one to determine // which sample we were sampleNumber++; if (sampleNumber >= sampleSize) { passivate(); thresholdReached(); } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/032a0c42754e693fc1d95e64b74cd4be29bac95a/VM_MethodListener.java/buggy/rvm/src/vm/adaptive/runtimeMeasurements/listeners/VM_MethodListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1089,
12,
474,
5003,
350,
16,
509,
4894,
39,
13138,
16,
509,
1625,
1265,
13,
288,
565,
509,
2067,
31,
565,
509,
3296,
1854,
29711,
21,
31,
368,
326,
3296,
1300,
434,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1089,
12,
474,
5003,
350,
16,
509,
4894,
39,
13138,
16,
509,
1625,
1265,
13,
288,
565,
509,
2067,
31,
565,
509,
3296,
1854,
29711,
21,
31,
368,
326,
3296,
1300,
434,
3... |
startDaemons(); Event deleteEvent = element.createDeleteEvent(); | public void testOutagesClosedOnDelete(MockElement element) { startDaemons(); Event deleteEvent = element.createDeleteEvent(); // bring down so we create an outage in the outages table anticipateDown(element); element.bringDown(); verifyAnticipated(5000, false); m_outageAnticipator.anticipateOutageClosed(element, deleteEvent); // now delete the service m_eventMgr.sendEventToListeners(deleteEvent); m_network.removeElement(element); verifyAnticipated(5000); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1182,
1023,
7395,
1398,
2613,
12,
9865,
1046,
930,
13,
288,
7734,
787,
12858,
87,
5621,
7734,
2587,
1430,
1133,
273,
930,
18,
2640,
2613,
1133,
5621,
3639,
368,
5186,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1182,
1023,
7395,
1398,
2613,
12,
9865,
1046,
930,
13,
288,
7734,
787,
12858,
87,
5621,
7734,
2587,
1430,
1133,
273,
930,
18,
2640,
2613,
1133,
5621,
3639,
368,
5186,
310... | |
if (delay > MAX_RECONNECT_DELAY) | if ( (delay > MAX_RECONNECT_DELAY) || (delay <= 0) ) | protected boolean reconnect() { closeSocket(); if (_log.shouldLog(Log.INFO)) _log.info(getPrefix() + "Reconnecting..."); int i = 0; while (true) { long delay = BASE_RECONNECT_DELAY << i; i++; if (delay > MAX_RECONNECT_DELAY) delay = MAX_RECONNECT_DELAY; try { Thread.sleep(delay); } catch (InterruptedException ie) {} try { connect(); if (_log.shouldLog(Log.INFO)) _log.info(getPrefix() + "Reconnected on attempt " + i); return true; } catch (I2PSessionException ise) { if (_log.shouldLog(Log.ERROR)) _log.error(getPrefix() + "Error reconnecting on attempt " + i, ise); } } } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/51285efbc3ec4f8b9e21c8020cb4b7cf7989bad3/I2PSessionImpl.java/clean/core/java/src/net/i2p/client/I2PSessionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
11812,
1435,
288,
3639,
1746,
4534,
5621,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
389,
1330,
18,
1376,
12,
588,
2244,
1435,
397,
315,
20427,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
11812,
1435,
288,
3639,
1746,
4534,
5621,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
389,
1330,
18,
1376,
12,
588,
2244,
1435,
397,
315,
20427,
310,
... |
return PdfAction.gotoRemotePage(hyperlink, bookmark, false, false); | if(type==IHyperlinkAction.ACTION_HYPERLINK) { return PdfAction.gotoRemotePage(hyperlink, bookmark, false, false); } else { return new PdfAction(hyperlink); } | private PdfAction createPdfAction(String hyperlink, String bookmark, String target) { if ("_blank".equalsIgnoreCase(target)) //$NON-NLS-1$ //open the target in a new window { return new PdfAction(hyperlink); } else //open the target in current window { if (null == hyperlink) { return PdfAction.gotoLocalPage(bookmark, false); } else { return PdfAction.gotoRemotePage(hyperlink, bookmark, false, false); } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a3103afa955784a8c2feb86acaca41943214d6cd/PDFEmitter.java/clean/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9989,
1803,
752,
18562,
1803,
12,
780,
9512,
1232,
16,
514,
13696,
16,
514,
1018,
13,
202,
95,
202,
202,
430,
7566,
67,
12111,
9654,
14963,
5556,
12,
3299,
3719,
4329,
3993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9989,
1803,
752,
18562,
1803,
12,
780,
9512,
1232,
16,
514,
13696,
16,
514,
1018,
13,
202,
95,
202,
202,
430,
7566,
67,
12111,
9654,
14963,
5556,
12,
3299,
3719,
4329,
3993,
... |
return c; } | return c; } | private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1024,
71,
1435,
288,
202,
202,
474,
276,
273,
2865,
18,
896,
5621,
202,
202,
430,
261,
71,
422,
10147,
13,
288,
1082,
202,
71,
273,
300,
21,
31,
202,
202,
97,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1024,
71,
1435,
288,
202,
202,
474,
276,
273,
2865,
18,
896,
5621,
202,
202,
430,
261,
71,
422,
10147,
13,
288,
1082,
202,
71,
273,
300,
21,
31,
202,
202,
97,
202,
2... |
return HistoryID.createFromID(id); } | return HistoryID.createFromID(id); } | private HistoryID loadID(Node parent) throws ParseException { Element idnode = findElement(parent, "id"); ArrayList al = loadID(new ArrayList(), idnode); String[] id = new String[al.size()]; al.toArray(id); return HistoryID.createFromID(id); } | 43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/dd511f0f97892bf31dc2a7a1989480bf6b6b5308/DBStructSerializer.java/clean/src/net/java/sip/communicator/impl/history/DBStructSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
16058,
734,
1262,
734,
12,
907,
982,
13,
1216,
10616,
288,
202,
202,
1046,
612,
2159,
273,
1104,
1046,
12,
2938,
16,
315,
350,
8863,
202,
202,
19558,
524,
273,
1262,
734,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
16058,
734,
1262,
734,
12,
907,
982,
13,
1216,
10616,
288,
202,
202,
1046,
612,
2159,
273,
1104,
1046,
12,
2938,
16,
315,
350,
8863,
202,
202,
19558,
524,
273,
1262,
734,
12,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.