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 |
|---|---|---|---|---|---|---|
private AnAction convert(ActionStub stub) { synchronized (myLock) { LOG.assertTrue(myAction2Id.contains(stub)); myAction2Id.remove(stub); LOG.assertTrue(myId2Action.contains(stub.getId())); AnAction action = (AnAction)myId2Action.remove(stub.getId()); LOG.assertTrue(action != null); LOG.assertTrue(action.equals(stub)); Object obj; String className = stub.getClassName(); try { obj = Class.forName(className, true, stub.getLoader()).newInstance(); } catch (ClassNotFoundException e) { throw new IllegalStateException("class with name \"" + className + "\" not found"); } catch (Exception e) { throw new IllegalStateException("cannot create class \"" + className + "\""); } if (!(obj instanceof AnAction)) { throw new IllegalStateException("class with name \"" + className + "\" should be instance of " + AnAction.class.getName()); } stub.initAction((AnAction)obj); ((AnAction)obj).getTemplatePresentation().setText(stub.getText()); myId2Action.put(stub.getId(), obj); myAction2Id.put(obj, stub.getId()); return (AnAction)obj; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
6283,
12,
1803,
11974,
12847,
15329,
22043,
12,
4811,
2531,
15329,
4842,
18,
11231,
5510,
12,
4811,
1803,
22,
548,
18,
12298,
12,
12847,
10019,
4811,
1803,
22,
548,
18,
4479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
1803,
6283,
12,
1803,
11974,
12847,
15329,
22043,
12,
4811,
2531,
15329,
4842,
18,
11231,
5510,
12,
4811,
1803,
22,
548,
18,
12298,
12,
12847,
10019,
4811,
1803,
22,
548,
18,
4479,
... | ||
final PsiExpressionList argumentList = methodCallExpression .getArgumentList(); if(argumentList == null){ | final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); final PsiExpression qualifierExpression = methodExpression.getQualifierExpression(); if (qualifierExpression == null) { | private static boolean isListGetLookup(PsiElement element, String indexName, String arrayName){ ForCanBeForeachFix.indexName = indexName; if(!(element instanceof PsiExpression && expressionIsListGetLookup( (PsiExpression) element))){ return false; } final PsiExpression expression = (PsiExpression) element; PsiMethodCallExpression methodCallExpression = (PsiMethodCallExpression) ParenthesesUtils.stripParentheses(expression); if(!arrayName .equals(methodCallExpression.getMethodExpression() .getQualifierExpression().getText())){ return false; } final PsiExpressionList argumentList = methodCallExpression .getArgumentList(); if(argumentList == null){ return false; } PsiExpression[] expressions = argumentList.getExpressions(); if(expressions.length != 1){ return false; } return indexName.equals(expressions[0].getText()); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8629082a2f885120180c8da4e7204776468af6a2/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
1250,
28106,
967,
6609,
12,
52,
7722,
1046,
930,
16,
4766,
9079,
514,
12753,
16,
4766,
9079,
514,
526,
461,
15329,
5411,
2457,
2568,
1919,
13573,
497,
8585,
18,
1615,
461,
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,
540,
3238,
760,
1250,
28106,
967,
6609,
12,
52,
7722,
1046,
930,
16,
4766,
9079,
514,
12753,
16,
4766,
9079,
514,
526,
461,
15329,
5411,
2457,
2568,
1919,
13573,
497,
8585,
18,
1615,
461,
273,... |
if (boundDescriptors.size() == 0) | if (boundDescriptors.size() == 0) { | public INavigatorContentDescriptor[] bindExtensions(String[] extensionIds, boolean isRoot) { if (extensionIds == null || extensionIds.length == 0) return NO_DESCRIPTORS; for (int i = 0; i < extensionIds.length; i++) assistant.bindExtensions(extensionIds, isRoot); Set boundDescriptors = new HashSet(); INavigatorContentDescriptor descriptor; for (int i = 0; i < extensionIds.length; i++) { descriptor = CONTENT_DESCRIPTOR_REGISTRY .getContentDescriptor(extensionIds[i]); if (descriptor != null) boundDescriptors.add(descriptor); } if (boundDescriptors.size() == 0) return NO_DESCRIPTORS; return (INavigatorContentDescriptor[]) boundDescriptors .toArray(new INavigatorContentDescriptor[boundDescriptors .size()]); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NavigatorContentService.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2120,
13061,
1350,
3187,
8526,
1993,
7513,
12,
780,
8526,
2710,
2673,
16,
1082,
202,
6494,
19371,
13,
288,
202,
202,
430,
261,
6447,
2673,
422,
446,
747,
2710,
2673,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2120,
13061,
1350,
3187,
8526,
1993,
7513,
12,
780,
8526,
2710,
2673,
16,
1082,
202,
6494,
19371,
13,
288,
202,
202,
430,
261,
6447,
2673,
422,
446,
747,
2710,
2673,
18,
2469,
... |
} else throw new IllegalStateException("Unknown sort order: " + groupBy); currentGroup = new BugInstanceGroup(groupBy, groupName); currentGroupNode = new DefaultMutableTreeNode(currentGroup); bugTreeModel.insertNodeInto(currentGroupNode, bugRootNode, bugRootNode.getChildCount()); insertIntoGroup(member); } public void addToGroup(Object member_) { BugInstance member = (BugInstance) member_; insertIntoGroup(member); } private void insertIntoGroup(BugInstance member) { currentGroup.incrementMemberCount(); DefaultMutableTreeNode bugNode = new BugTreeNode(member); bugTreeModel.insertNodeInto(bugNode, currentGroupNode, currentGroupNode.getChildCount()); Iterator j = member.annotationIterator(); while (j.hasNext()) { BugAnnotation annotation = (BugAnnotation) j.next(); DefaultMutableTreeNode annotationNode = new DefaultMutableTreeNode(annotation); bugTreeModel.insertNodeInto(annotationNode, bugNode, bugNode.getChildCount()); } } }; Grouper grouper = new Grouper(callback); Comparator groupComparator = getGroupComparator(groupBy); grouper.group(sortedCollection, groupComparator); bugTreeModel.nodeStructureChanged(bugRootNode); this.setCursor(orig); | } else throw new IllegalStateException("Unknown sort order: " + groupBy); currentGroup = new BugInstanceGroup(groupBy, groupName); currentGroupNode = new DefaultMutableTreeNode(currentGroup); bugTreeModel.insertNodeInto(currentGroupNode, bugRootNode, bugRootNode.getChildCount()); insertIntoGroup(member); } public void addToGroup(Object member_) { BugInstance member = (BugInstance) member_; insertIntoGroup(member); } private void insertIntoGroup(BugInstance member) { currentGroup.incrementMemberCount(); DefaultMutableTreeNode bugNode = new BugTreeNode(member); bugTreeModel.insertNodeInto(bugNode, currentGroupNode, currentGroupNode.getChildCount()); Iterator j = member.annotationIterator(); while (j.hasNext()) { BugAnnotation annotation = (BugAnnotation) j.next(); DefaultMutableTreeNode annotationNode = new DefaultMutableTreeNode(annotation); bugTreeModel.insertNodeInto(annotationNode, bugNode, bugNode.getChildCount()); } } }; Grouper grouper = new Grouper(callback); Comparator groupComparator = getGroupComparator(groupBy); grouper.group(sortedCollection, groupComparator); bugTreeModel.nodeStructureChanged(bugRootNode); this.setCursor(orig); | private void populateAnalysisRunTreeModel(AnalysisRun analysisRun, final String groupBy) { //System.out.println("Populating bug tree for order " + groupBy); // Set busy cursor - this is potentially a time-consuming operation Cursor orig = this.getCursor(); this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); final DefaultTreeModel bugTreeModel = analysisRun.getTreeModel(groupBy); final DefaultMutableTreeNode bugRootNode = (DefaultMutableTreeNode) bugTreeModel.getRoot(); // Delete all children from root node bugRootNode.removeAllChildren(); // Sort the instances TreeSet sortedCollection = new TreeSet(getBugInstanceComparator(groupBy)); sortedCollection.addAll(analysisRun.getBugInstances()); // The grouper callback is what actually adds the group and bug // nodes to the tree. Grouper.Callback callback = new Grouper.Callback() { private BugInstanceGroup currentGroup; private DefaultMutableTreeNode currentGroupNode; public void startGroup(Object member_) { BugInstance member = (BugInstance) member_; String groupName; if (groupBy == GROUP_BY_CLASS) groupName = member.getPrimaryClass().getClassName(); else if (groupBy == GROUP_BY_PACKAGE) { groupName = member.getPrimaryClass().getPackageName(); if (groupName.equals("")) groupName = "Unnamed package"; } else if (groupBy == GROUP_BY_BUG_TYPE) { String desc = member.toString(); String shortBugType = desc.substring(0, desc.indexOf(':')); String bugTypeDescription = I18N.instance().getBugTypeDescription(shortBugType); groupName = shortBugType + ": " + bugTypeDescription; } else throw new IllegalStateException("Unknown sort order: " + groupBy); currentGroup = new BugInstanceGroup(groupBy, groupName); currentGroupNode = new DefaultMutableTreeNode(currentGroup); bugTreeModel.insertNodeInto(currentGroupNode, bugRootNode, bugRootNode.getChildCount()); insertIntoGroup(member); } public void addToGroup(Object member_) { BugInstance member = (BugInstance) member_; insertIntoGroup(member); } private void insertIntoGroup(BugInstance member) { currentGroup.incrementMemberCount(); DefaultMutableTreeNode bugNode = new BugTreeNode(member); bugTreeModel.insertNodeInto(bugNode, currentGroupNode, currentGroupNode.getChildCount()); // Insert annotations Iterator j = member.annotationIterator(); while (j.hasNext()) { BugAnnotation annotation = (BugAnnotation) j.next(); DefaultMutableTreeNode annotationNode = new DefaultMutableTreeNode(annotation); bugTreeModel.insertNodeInto(annotationNode, bugNode, bugNode.getChildCount()); } } }; // Create the grouper, and execute it to populate the bug tree Grouper grouper = new Grouper(callback); Comparator groupComparator = getGroupComparator(groupBy); grouper.group(sortedCollection, groupComparator); // Let the tree know it needs to update itself bugTreeModel.nodeStructureChanged(bugRootNode); // Now we're done this.setCursor(orig); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/a6faccf1f33035b730d9878d13d0da9fa199f1f8/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
9418,
1997,
2471,
1488,
12,
9418,
1997,
6285,
1997,
16,
727,
514,
13197,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
7049,
27967,
7934,
2151,
364,
1353,
315,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
9418,
1997,
2471,
1488,
12,
9418,
1997,
6285,
1997,
16,
727,
514,
13197,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
7049,
27967,
7934,
2151,
364,
1353,
315,
397,
... |
ManagedBuilderCorePlugin.log(e); | private void deleteDepFile(IResource deletedFile) { // Get the project relative path of the file String fileName = getFileName(deletedFile); fileName += DOT + DEP_EXT; IPath projectRelativePath = deletedFile.getProjectRelativePath().removeLastSegments(1); IPath depFilePath = getBuildWorkingDir().append(projectRelativePath).append(fileName); IResource depFile = project.findMember(depFilePath); if (depFile != null && depFile.exists()) { try { depFile.delete(true, new SubProgressMonitor(monitor, 1)); } catch (CoreException e) { // This had better be allowed during a build ManagedBuilderCorePlugin.log(e); } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/efcd048454a70317d7e6818ce4fd75966e67ba00/GnuMakefileGenerator.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1430,
16316,
812,
12,
45,
1420,
4282,
812,
13,
288,
202,
202,
759,
968,
326,
1984,
3632,
589,
434,
326,
585,
202,
202,
780,
3968,
273,
13807,
12,
8600,
812,
1769,
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,
1152,
918,
1430,
16316,
812,
12,
45,
1420,
4282,
812,
13,
288,
202,
202,
759,
968,
326,
1984,
3632,
589,
434,
326,
585,
202,
202,
780,
3968,
273,
13807,
12,
8600,
812,
1769,
202,
... | |
if(log.isDebugEnabled()) log.debug("[" + local_addr + "] received msg, hdr is " + hdr); | if(log.isTraceEnabled()) log.trace("[" + local_addr + "] received msg, hdr is " + hdr); | private void unfragment(Message msg) { FragmentationTable frag_table=null; Address sender=msg.getSrc(); Message assembled_msg; FragHeader hdr=(FragHeader)msg.removeHeader(getName()); byte[] m; ByteArrayInputStream bis; ObjectInputStream ois; if(log.isDebugEnabled()) log.debug("[" + local_addr + "] received msg, hdr is " + hdr); frag_table=fragment_list.get(sender); if(frag_table == null) { frag_table=new FragmentationTable(sender); try { fragment_list.add(sender, frag_table); } catch(IllegalArgumentException x) { // the entry has already been added, probably in parallel from another thread frag_table=fragment_list.get(sender); } } m=frag_table.add(hdr.id, hdr.frag_id, hdr.num_frags, msg.getBuffer()); if(m != null) { try { bis=new ByteArrayInputStream(m); ois=new ObjectInputStream(bis); assembled_msg=new Message(); assembled_msg.readExternal(ois); if(log.isInfoEnabled()) log.info("assembled_msg is " + assembled_msg); assembled_msg.setSrc(sender); // needed ? YES, because fragments have a null src !! passUp(new Event(Event.MSG, assembled_msg)); } catch(Exception e) { if(log.isErrorEnabled()) log.error("exception is " + e); } } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/FRAG.java/clean/src/org/jgroups/protocols/FRAG.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
640,
11956,
12,
1079,
1234,
13,
288,
3639,
18009,
367,
1388,
10111,
67,
2121,
33,
2011,
31,
3639,
5267,
5793,
33,
3576,
18,
588,
7740,
5621,
3639,
2350,
20489,
1259,
67,
3576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
11956,
12,
1079,
1234,
13,
288,
3639,
18009,
367,
1388,
10111,
67,
2121,
33,
2011,
31,
3639,
5267,
5793,
33,
3576,
18,
588,
7740,
5621,
3639,
2350,
20489,
1259,
67,
3576,
... |
JOptionPane.showInternalMessageDialog((MessagePanel)Pooka.getMainPanel().getContentPanel(), newMessage, title, JOptionPane.PLAIN_MESSAGE); | String displayMessage = formatMessage(newMessage); JOptionPane.showInternalMessageDialog((MessagePanel)Pooka.getMainPanel().getContentPanel(), displayMessage, title, JOptionPane.PLAIN_MESSAGE); | public void showMessage(String newMessage, String title) { JOptionPane.showInternalMessageDialog((MessagePanel)Pooka.getMainPanel().getContentPanel(), newMessage, title, JOptionPane.PLAIN_MESSAGE); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/0311317077eecdf11739f5105225194ff0ece12e/PookaDesktopPaneUIFactory.java/buggy/net/suberic/pooka/gui/PookaDesktopPaneUIFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2405,
1079,
12,
780,
394,
1079,
16,
514,
2077,
13,
288,
565,
514,
2562,
1079,
273,
20925,
12,
2704,
1079,
1769,
804,
1895,
8485,
18,
4500,
3061,
1079,
6353,
12443,
1079,
5537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
1079,
12,
780,
394,
1079,
16,
514,
2077,
13,
288,
565,
514,
2562,
1079,
273,
20925,
12,
2704,
1079,
1769,
804,
1895,
8485,
18,
4500,
3061,
1079,
6353,
12443,
1079,
5537,
... |
if (polygon.contains(new Point((int) currentAtom.getX2d(), (int) currentAtom.getY2d()))) | if (polygon.contains(new Point((int) ((Point2d)r2dm.getRenderingCoordinate(currentAtom)).x, (int) ((Point2d)r2dm.getRenderingCoordinate(currentAtom)).y))) | IAtomContainer getContainedAtoms(Polygon polygon) { IAtom currentAtom; IBond currentBond; IAtomContainer selectedPart = new org.openscience.cdk.AtomContainer(); IAtomContainer atomCon = ChemModelManipulator.getAllInOneContainer(chemModel); for (int i = 0; i < atomCon.getAtomCount(); i++) { currentAtom = atomCon.getAtomAt(i); logger.debug("Atom: ", currentAtom); if (polygon.contains(new Point((int) currentAtom.getX2d(), (int) currentAtom.getY2d()))) { selectedPart.addAtom(currentAtom); } } IBond[] bonds = atomCon.getBonds(); for (int i = 0; i < bonds.length; i++) { currentBond = bonds[i]; for (int j = 0; j < selectedPart.getAtomCount(); j++) { currentAtom = selectedPart.getAtomAt(j); if (selectedPart.contains(currentBond.getConnectedAtom(currentAtom))) { selectedPart.addBond(currentBond); break; } } } return selectedPart; } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/948cfaa939b42d113ae5ceb65b72ea94d1b4e017/AbstractController2D.java/clean/src/org/openscience/cdk/controller/AbstractController2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
13922,
336,
660,
8707,
14280,
12,
11787,
7154,
13,
202,
95,
202,
202,
45,
3641,
783,
3641,
31,
202,
202,
45,
9807,
783,
9807,
31,
202,
202,
45,
3641,
2170,
3170,
1988,
273,
394,
2358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13922,
336,
660,
8707,
14280,
12,
11787,
7154,
13,
202,
95,
202,
202,
45,
3641,
783,
3641,
31,
202,
202,
45,
9807,
783,
9807,
31,
202,
202,
45,
3641,
2170,
3170,
1988,
273,
394,
2358,
... |
((BugReport) entry).setNewComment(((BugReport) oldBug).getNewComment()); ((BugReport) entry).setHasChanged(true); status = BugzillaOfflineStatus.CONFLICT; | ((BugzillaReport) entry).setNewComment(((BugzillaReport) oldBug).getNewComment()); ((BugzillaReport) entry).setHasChanged(true); status = BugzillaOfflineStatus.CONFLICT; | public BugzillaOfflineStatus add(IBugzillaBug entry, boolean saveChosen) throws CoreException { BugzillaOfflineStatus status = BugzillaOfflineStatus.SAVED; try { // check for bug and do a compare int index = -1; if ((index = find(entry.getRepositoryUrl(), entry.getId())) >= 0) { IBugzillaBug oldBug = list.get(index); if (oldBug instanceof BugReport && entry instanceof BugReport && !saveChosen ) { CompareConfiguration config = new CompareConfiguration(); config.setLeftEditable(false); config.setRightEditable(false); config.setLeftLabel("Local Bug Report"); config.setRightLabel("Remote Bug Report"); config.setLeftImage(PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_ELEMENT)); config.setRightImage(PlatformUI.getWorkbench().getSharedImages().getImage( ISharedImages.IMG_OBJ_ELEMENT)); final BugzillaCompareInput in = new BugzillaCompareInput(config); in.setLeft((BugReport) oldBug); in.setRight((BugReport) entry); in.setTitle("Bug #" + oldBug.getId()); try { in.run(null); // running in new job inside a job causes shell to popup // up, losing focus // PlatformUI.getWorkbench().getProgressService().run(true, // true, in); } catch (InterruptedException x) { // cancelled by user // TODO: Check how errors are handled return BugzillaOfflineStatus.ERROR; } catch (InvocationTargetException x) { BugzillaPlugin.log(x); MessageDialog.openError(null, "Compare Failed", x.getTargetException().getMessage()); return BugzillaOfflineStatus.ERROR; } if (in.getCompareResult() == null) { status = BugzillaOfflineStatus.SAVED; } else if (oldBug.hasChanges()) { if (!MessageDialog .openQuestion( null, "Update Local Copy", "Local copy of Bug# " + entry.getId() + " Has Changes.\nWould you like to override local changes? Note: if you select No, your added comment will be saved with the updated bug, but all other changes will be lost.")) { ((BugReport) entry).setNewComment(((BugReport) oldBug).getNewComment()); ((BugReport) entry).setHasChanged(true); status = BugzillaOfflineStatus.CONFLICT; } else { ((BugReport) entry).setHasChanged(false); status = BugzillaOfflineStatus.SAVED; } } else { DiffNode node = (DiffNode) in.getCompareResult(); IDiffElement[] children = node.getChildren(); if (children.length != 0) { for (IDiffElement element : children) { if (((DiffNode) element).getKind() == Differencer.CHANGE) { status = BugzillaOfflineStatus.SAVED_WITH_INCOMMING_CHANGES; break; } } } else { status = BugzillaOfflineStatus.SAVED; // do we ever get here? } } // Display.getDefault().asyncExec(new Runnable(){ // public void run() { // // CompareUI.openCompareDialog(in); // } // }); } list.remove(index); } if (entry.hasChanges() && status != BugzillaOfflineStatus.CONFLICT) { status = BugzillaOfflineStatus.SAVED_WITH_OUTGOING_CHANGES; } // add the entry to the list and write the file to disk list.add(entry); writeFile(); } catch (Exception e) { IStatus runtimestatus = new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, "failed to add of offline report", e); throw new CoreException(runtimestatus); } return status; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/021b803558816829652dd500f5695e5bfd03ae6c/OfflineReportsFile.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/internal/OfflineReportsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
15990,
23106,
1482,
527,
12,
13450,
637,
15990,
19865,
1241,
16,
1250,
1923,
782,
8918,
13,
1216,
30015,
288,
9506,
202,
19865,
15990,
23106,
1482,
1267,
273,
16907,
15990,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16907,
15990,
23106,
1482,
527,
12,
13450,
637,
15990,
19865,
1241,
16,
1250,
1923,
782,
8918,
13,
1216,
30015,
288,
9506,
202,
19865,
15990,
23106,
1482,
1267,
273,
16907,
15990,
... |
vars.setLocalVariable(_resultIndex, null); transformer.executeChildTemplates(this, true); | transformer.executeChildTemplates(this, true); vars.setStackFrame(oldStackFrame); m_callerFrameSize = 0; | public void execute(TransformerImpl transformer, XObject[] args) throws TransformerException { XPathContext xctxt = transformer.getXPathContext(); VariableStack vars = xctxt.getVarStack(); // Set parameters. NodeList children = this.getChildNodes(); int numparams =0; for (int i = 0; i < args.length; i ++) { Node child = children.item(i); if (children.item(i) instanceof ElemParam) { numparams++; ElemParam param = (ElemParam)children.item(i); vars.setLocalVariable (param.m_index, args[i]); } } if (numparams < args.length) throw new TransformerException ("function called with too many args"); // Removed ElemTemplate 'push' and 'pop' of RTFContext, in order to avoid losing the RTF context // before a value can be returned. ElemExsltFunction operates in the scope of the template that called // the function. // xctxt.pushRTFContext(); if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(this); // Be sure the return value is not set (so can verify that only one result // is generated per ElemExsltFunction execute). vars.setLocalVariable(_resultIndex, null); transformer.executeChildTemplates(this, true); if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEndEvent(this); // Following ElemTemplate 'pop' removed -- see above. // xctxt.popRTFContext(); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/078246d63e1c24f64893f4db615d8dcaf6f38d29/ElemExsltFunction.java/buggy/src/org/apache/xalan/templates/ElemExsltFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
8319,
2828,
8360,
16,
1139,
921,
8526,
833,
13,
1850,
1216,
21684,
225,
288,
565,
10172,
1042,
25465,
273,
8360,
18,
588,
14124,
1042,
5621,
565,
7110,
2624,
4153,
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,
282,
1071,
918,
1836,
12,
8319,
2828,
8360,
16,
1139,
921,
8526,
833,
13,
1850,
1216,
21684,
225,
288,
565,
10172,
1042,
25465,
273,
8360,
18,
588,
14124,
1042,
5621,
565,
7110,
2624,
4153,
27... |
case DIFFERENCE_NONE : tableItem.setImage(0, IMAGE_BLANK); break; } | case DIFFERENCE_NONE: tableItem.setImage(0, IMAGE_BLANK); break; } | private void buildKeySequenceAssignmentsTable() { tableAssignmentsForKeySequence.removeAll(); for (Iterator iterator = keySequenceAssignments.iterator(); iterator.hasNext();) { KeySequenceAssignment keySequenceAssignment = (KeySequenceAssignment) iterator.next(); KeySequenceBindingNode.Assignment assignment = keySequenceAssignment.assignment; String commandString = null; int difference = DIFFERENCE_NONE; if (assignment.hasPreferenceCommandIdInFirstKeyConfiguration || assignment.hasPreferenceCommandIdInInheritedKeyConfiguration) { String preferenceCommandId; if (assignment.hasPreferenceCommandIdInFirstKeyConfiguration) preferenceCommandId = assignment.preferenceCommandIdInFirstKeyConfiguration; else preferenceCommandId = assignment.preferenceCommandIdInInheritedKeyConfiguration; if (assignment.hasPluginCommandIdInFirstKeyConfiguration || assignment.hasPluginCommandIdInInheritedKeyConfiguration) { String pluginCommandId; if (assignment.hasPluginCommandIdInFirstKeyConfiguration) pluginCommandId = assignment.pluginCommandIdInFirstKeyConfiguration; else pluginCommandId = assignment.pluginCommandIdInInheritedKeyConfiguration; if (preferenceCommandId != null) { difference = DIFFERENCE_CHANGE; commandString = commandUniqueNamesById.get(preferenceCommandId) + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = "Unassigned"; //$NON-NLS-1$ } if (pluginCommandId != null) commandString += " (was: " + commandUniqueNamesById.get(pluginCommandId) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ else commandString += " (was: " + "Unassigned" + ")"; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ } else { if (preferenceCommandId != null) { difference = DIFFERENCE_ADD; commandString = commandUniqueNamesById.get(preferenceCommandId) + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = "Unassigned"; //$NON-NLS-1$ } } } else { String pluginCommandId; if (assignment.hasPluginCommandIdInFirstKeyConfiguration) pluginCommandId = assignment.pluginCommandIdInFirstKeyConfiguration; else pluginCommandId = assignment.pluginCommandIdInInheritedKeyConfiguration; if (pluginCommandId != null) { difference = DIFFERENCE_NONE; commandString = commandUniqueNamesById.get(pluginCommandId) + ""; //$NON-NLS-1$ } else { difference = DIFFERENCE_MINUS; commandString = "Unassigned"; //$NON-NLS-1$ } } TableItem tableItem = new TableItem(tableAssignmentsForKeySequence, SWT.NULL); switch (difference) { case DIFFERENCE_ADD : tableItem.setImage(0, IMAGE_PLUS); break; case DIFFERENCE_CHANGE : tableItem.setImage(0, IMAGE_CHANGE); break; case DIFFERENCE_MINUS : tableItem.setImage(0, IMAGE_MINUS); break; case DIFFERENCE_NONE : tableItem.setImage(0, IMAGE_BLANK); break; } String contextId = keySequenceAssignment.contextId; if (contextId == null) tableItem.setText(1, Util.translateString(RESOURCE_BUNDLE, "general")); //$NON-NLS-1$ else tableItem.setText(1, (String) contextUniqueNamesById.get(contextId)); //$NON-NLS-1$ tableItem.setText(2, commandString); if (difference == DIFFERENCE_MINUS) tableItem.setForeground(new Color(getShell().getDisplay(), RGB_MINUS)); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/KeysPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1361,
653,
4021,
18628,
1388,
1435,
288,
202,
202,
2121,
18628,
19759,
4021,
18,
4479,
1595,
5621,
202,
202,
1884,
261,
3198,
2775,
273,
498,
4021,
18628,
18,
9838,
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,
1152,
918,
1361,
653,
4021,
18628,
1388,
1435,
288,
202,
202,
2121,
18628,
19759,
4021,
18,
4479,
1595,
5621,
202,
202,
1884,
261,
3198,
2775,
273,
498,
4021,
18628,
18,
9838,
5621,
... |
return components[n]; | return component[n]; | public Component getComponent (int n) { if (n < 0 || n >= componentCount) throw new ArrayIndexOutOfBoundsException("no such component"); return components[n]; } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/42de8277e53eabea04a48598c12ed6d488412a7b/Container.java/buggy/libjava/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5435,
10322,
261,
474,
290,
13,
225,
288,
565,
309,
261,
82,
411,
374,
747,
290,
1545,
1794,
1380,
13,
1377,
604,
394,
1510,
30548,
2932,
2135,
4123,
1794,
8863,
565,
327,
1794,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5435,
10322,
261,
474,
290,
13,
225,
288,
565,
309,
261,
82,
411,
374,
747,
290,
1545,
1794,
1380,
13,
1377,
604,
394,
1510,
30548,
2932,
2135,
4123,
1794,
8863,
565,
327,
1794,
6... |
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(L10n.getString("wholeHistoryPanel"))); | jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(L10n.getString("History.Whole.Panel"))); | private void initComponents() { jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tableHistoryList = new javax.swing.JTable(); previousButton = new javax.swing.JButton(); nextButton = new javax.swing.JButton(); totalResultLabel = new javax.swing.JLabel(); totalResultValueLabel = new javax.swing.JLabel(); toDisplayLabel = new javax.swing.JLabel(); toDisplayValueTextField = new javax.swing.JTextField(); displayedLabel = new javax.swing.JLabel(); displayedValueLabel = new javax.swing.JLabel(); clearHistoryButton = new javax.swing.JButton(); detailsButton = new javax.swing.JButton(); undoToDateButton = new javax.swing.JButton(); okButton = new javax.swing.JButton(); closeButton = new javax.swing.JButton(); helpButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(L10n.getString("wholeHistoryPanel"))); tableHistoryList.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(tableHistoryList); previousButton.setText(L10n.getString("prevButton")); nextButton.setText(L10n.getString("nextButton")); totalResultLabel.setText(L10n.getString("totalResult")); totalResultValueLabel.setText(((Integer)model.getResultRows()).toString()); toDisplayLabel.setText(L10n.getString("toDisplay")); toDisplayValueTextField.setText(((Integer)model.getDisplayRows()).toString()); toDisplayValueTextField.setAutoscrolls(false); displayedLabel.setText(L10n.getString("displayed")); displayedValueLabel.setText(model.getCurrentDisplayRows()); clearHistoryButton.setText(L10n.getString("clearHistory")); clearHistoryButton.setInheritsPopupMenu(true); detailsButton.setText(L10n.getString("detailsHistory")); undoToDateButton.setText(L10n.getString("undoToDate")); org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup() .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel1Layout.createSequentialGroup() .add(previousButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 69, Short.MAX_VALUE) .add(totalResultLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(totalResultValueLabel) .add(34, 34, 34) .add(toDisplayLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(toDisplayValueTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(40, 40, 40) .add(displayedLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(displayedValueLabel) .add(146, 146, 146)) .add(jPanel1Layout.createSequentialGroup() .addContainerGap(534, Short.MAX_VALUE) .add(detailsButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(undoToDateButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(clearHistoryButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(nextButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 876, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup() .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 222, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(toDisplayValueTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(toDisplayLabel) .add(totalResultValueLabel) .add(totalResultLabel) .add(nextButton) .add(previousButton) .add(displayedLabel) .add(displayedValueLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(25, 25, 25) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(clearHistoryButton) .add(undoToDateButton) .add(detailsButton)) .addContainerGap()) ); okButton.setText(L10n.getString("Ok")); closeButton.setText(L10n.getString("Close")); helpButton.setText(L10n.getString("Help")); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(helpButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 586, Short.MAX_VALUE) .add(okButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(closeButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(helpButton) .add(closeButton) .add(okButton)) .addContainerGap()) ); pack(); }// </editor-fold>//GEN-END:initComponents | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/a703e434dd2ef4e13937a2f0264addf431af02ff/WholeHistoryView.java/buggy/trunk/src/net/sf/plantlore/client/history/WholeHistoryView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
17871,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
7171,
1435,
288,
3639,
17871,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
101... |
_cnt101++; | _cnt105++; | public final void mINT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = INT; int _saveIndex; { int _cnt98=0; _loop98: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { mDIGIT(false); } else { if ( _cnt98>=1 ) { break _loop98; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt98++; } while (true); } { _loop102: do { if ((LA(1)=='.')) { match('.'); { int _cnt101=0; _loop101: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { mDIGIT(false); } else { if ( _cnt101>=1 ) { break _loop101; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt101++; } while (true); } } else { break _loop102; } } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/32e91f543a4cc859a507386b6fc4459018aeb3c6/XPathLexer.java/buggy/src/org/exist/parser/XPathLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
3217,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
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,
225,
202,
482,
727,
918,
312,
3217,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31... |
return stateCount; } | return stateCount; } | public int getStateCount() { return stateCount; } | 49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/b75bd9ce7dc8dd663c21f2c0b6dbe12b678016a4/DataType.java/clean/trunk/src/dr/evolution/datatype/DataType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8997,
1380,
1435,
288,
202,
202,
2463,
919,
1380,
31,
202,
97,
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,
... | [
1,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8997,
1380,
1435,
288,
202,
202,
2463,
919,
1380,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
previousPatterns = new String[] { pattern }; | previousPatterns = new String[] { patternStr }; | public boolean performAction() { fLineManager.setErrorMessage(null); boolean isCaseSensitive = caseSensitiveButton.getSelection(); // get the pattern String pattern = patternCombo.getText(); // Get search flags int searchFlags = 0; if (searchForButtons[searchAllButtonIndex].getSelection()) searchFlags |= PDOMSearchPatternQuery.FIND_ALL_TYPES; else { for (int i = 0; i < searchForButtons.length; ++i) { if (searchForButtons[i].getSelection()) searchFlags |= ((Integer)searchForButtons[i].getData()).intValue(); } } for (int i = 0; i < limitToButtons.length; ++i) { if (limitToButtons[i].getSelection()) searchFlags |= ((Integer)limitToButtons[i].getData()).intValue(); } // get the list of elements for the scope List elements = new ArrayList(); String scopeDescription = ""; //$NON-NLS-1$ switch (getContainer().getSelectedScope()) { case ISearchPageContainer.SELECTED_PROJECTS_SCOPE: if (structuredSelection != null) { scopeDescription = CSearchMessages.getString("ProjectScope"); //$NON-NLS-1$ for (Iterator i = structuredSelection.iterator(); i.hasNext();) { ICProject project = getProject(i.next()); if (project != null) elements.add(project); } } break; case ISearchPageContainer.SELECTION_SCOPE: if( structuredSelection != null) { scopeDescription = CSearchMessages.getString("SelectionScope"); //$NON-NLS-1$ for (Iterator i = structuredSelection.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof IResource) elements.add(CoreModel.getDefault().create((IResource)obj)); else if (obj instanceof ICElement) elements.add(obj); } break; } break; case ISearchPageContainer.WORKSPACE_SCOPE: scopeDescription = CSearchMessages.getString("WorkspaceScope"); //$NON-NLS-1$ // Don't add anything break; case ISearchPageContainer.WORKING_SET_SCOPE: IWorkingSet[] workingSets= getContainer().getSelectedWorkingSets(); scopeDescription = CSearchMessages.getFormattedString("WorkingSetScope", CSearchUtil.toString(workingSets)); //$NON-NLS-1$ for (int i = 0; i < workingSets.length; ++i) { IAdaptable[] wsElements = workingSets[i].getElements(); for (int j = 0; j < wsElements.length; ++j) { ICProject project = getProject(wsElements[j]); if (project != null) elements.add(project); } } break; } ICElement[] scope = elements.isEmpty() ? null : (ICElement[])elements.toArray(new ICElement[elements.size()]); PDOMSearchPatternQuery job = new PDOMSearchPatternQuery(scope, scopeDescription, pattern, isCaseSensitive, searchFlags); NewSearchUI.activateSearchResultView(); NewSearchUI.runQueryInBackground(job); // Save our settings IDialogSettings settings = getDialogSettings(); settings.put(STORE_CASE_SENSITIVE, isCaseSensitive); if (previousPatterns == null) previousPatterns = new String[] { pattern }; else { // Add only if we don't have it already boolean addit = true; for (int i = 0; i < previousPatterns.length; ++i) { if (pattern.equals(previousPatterns[i])) { addit = false; break; } } if (addit) { // Insert it into the beginning of the list String[] newPatterns = new String[previousPatterns.length + 1]; System.arraycopy(previousPatterns, 0, newPatterns, 1, previousPatterns.length); newPatterns[0] = pattern; previousPatterns = newPatterns; } } settings.put(STORE_PREVIOUS_PATTERNS, previousPatterns); settings.put(STORE_SEARCH_FLAGS, searchFlags); return true; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2aedbfe181c0d0cd1f42ab5420c116d5120cf186/PDOMSearchPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/PDOMSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
1803,
1435,
288,
202,
565,
284,
1670,
1318,
18,
542,
14935,
12,
2011,
1769,
202,
565,
1250,
353,
2449,
14220,
273,
20975,
3616,
18,
588,
6233,
5621,
202,
565,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
3073,
1803,
1435,
288,
202,
565,
284,
1670,
1318,
18,
542,
14935,
12,
2011,
1769,
202,
565,
1250,
353,
2449,
14220,
273,
20975,
3616,
18,
588,
6233,
5621,
202,
565,
368,
... |
public VariableByteInputStream(byte[] data, int offset, int length) { is = new ByteArrayInputStream(data, offset, length); | public VariableByteInputStream() { | public VariableByteInputStream(byte[] data, int offset, int length) { is = new ByteArrayInputStream(data, offset, length); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/31167aa387bb2d591946940b8fba00662b4c8930/VariableByteInputStream.java/buggy/src/org/exist/util/VariableByteInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7110,
3216,
4348,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
769,
13,
288,
202,
202,
291,
273,
394,
16180,
12,
892,
16,
1384,
16,
769,
1769,
202,
97,
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,
225,
202,
482,
7110,
3216,
4348,
12,
7229,
8526,
501,
16,
509,
1384,
16,
509,
769,
13,
288,
202,
202,
291,
273,
394,
16180,
12,
892,
16,
1384,
16,
769,
1769,
202,
97,
2,
-100,
-100,
-100,
... |
result += "Student=" + getStudentIdInternal() + ";"; | result += "Student=" + getKeyStudent() + ";"; | public String toString() { String result = "[Candidacy:"; result += "Theme=" + getThemeIdInternal() + ";"; result += "Motivation=" + getMotivation() + ";"; result += "Student=" + getStudentIdInternal() + ";"; result += "CaseStudyChoices" + getCaseStudyChoices() + ";"; result += "CurricularCourse=" + getCurricularCourseIdInternal() + ";"; result += "Seminary:=" + getSeminaryIdInternal() + ";"; result += "Modality=" + getModalityIdInternal() + "]"; return result; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/e9a2319fbb18e0572edd87c6155f310f5a929b8f/Candidacy.java/buggy/src/net/sourceforge/fenixedu/domain/Seminaries/Candidacy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
514,
563,
273,
5158,
39,
3339,
3505,
2773,
31,
3639,
563,
1011,
315,
8335,
1546,
397,
27077,
548,
3061,
1435,
397,
11430,
31,
3639,
563,
1011,
315,
24749... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1762,
1435,
288,
3639,
514,
563,
273,
5158,
39,
3339,
3505,
2773,
31,
3639,
563,
1011,
315,
8335,
1546,
397,
27077,
548,
3061,
1435,
397,
11430,
31,
3639,
563,
1011,
315,
24749... |
_log.warn("Client " + _dest + " is local, but we can't find a valid LeaseSet? perhaps its being rebuilt?"); | if (_log.shouldLog(Log.WARN)) _log.warn("Client " + _dest + " is local, but we can't find a valid LeaseSet? perhaps its being rebuilt?"); | public void runJob() { try { if (getContext().clientManager().isLocal(_dest)) { LeaseSet ls = _facade.lookupLeaseSetLocally(_dest); if (ls != null) { _log.warn("Client " + _dest + " is local, so we're republishing it"); if (!ls.isCurrent(Router.CLOCK_FUDGE_FACTOR)) { _log.warn("Not publishing a LOCAL lease that isn't current - " + _dest, new Exception("Publish expired LOCAL lease?")); } else { getContext().jobQueue().addJob(new StoreJob(getContext(), _facade, _dest, ls, new OnSuccess(getContext()), new OnFailure(getContext()), REPUBLISH_LEASESET_TIMEOUT)); } } else { _log.warn("Client " + _dest + " is local, but we can't find a valid LeaseSet? perhaps its being rebuilt?"); } requeue(REPUBLISH_LEASESET_DELAY); return; } else { _log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet"); } _facade.stopPublishing(_dest); } catch (RuntimeException re) { _log.error("Uncaught error republishing the leaseSet", re); _facade.stopPublishing(_dest); throw re; } } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/bc626ece2d2f61e1246a0c597f733962ed58b0db/RepublishLeaseSetJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/RepublishLeaseSetJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
775,
288,
5411,
309,
261,
29120,
7675,
2625,
1318,
7675,
291,
2042,
24899,
10488,
3719,
288,
7734,
23175,
694,
7180,
273,
389,
507,
5065,
18,
8664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
2278,
1435,
288,
3639,
775,
288,
5411,
309,
261,
29120,
7675,
2625,
1318,
7675,
291,
2042,
24899,
10488,
3719,
288,
7734,
23175,
694,
7180,
273,
389,
507,
5065,
18,
8664,
... |
log.info("------- Initialization Complete ------------"); | log.info("------- Initialization Complete ------------"); | public void run() throws Exception { Log log = LogFactory.getLog(JobExceptionExample.class); log.info("------- Initializing ----------------------"); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete ------------"); log.info("------- Scheduling Jobs -------------------"); // jobs can be scheduled before start() has been called // get a "nice round" time a few seconds in the future... long ts = TriggerUtils.getNextGivenSecondDate(null, 15).getTime(); // badJob1 will run every three seconds // this job will throw an exception and refire // immediately JobDetail job = new JobDetail("badJob1", "group1", BadJob1.class); SimpleTrigger trigger = new SimpleTrigger("trigger1", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 3000L); Date ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // badJob2 will run every three seconds // this job will throw an exception and never // refire job = new JobDetail("badJob2", "group1", BadJob2.class); trigger = new SimpleTrigger("trigger2", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 3000L); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); log.info("------- Starting Scheduler ----------------"); // jobs don't start firing until start() has been called... sched.start(); log.info("------- Started Scheduler -----------------"); try { // sleep for 60 seconds Thread.sleep(60L * 1000L); } catch (Exception e) { } log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.numJobsExecuted() + " jobs."); } | 55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/51ce7552fa3eb48cf96a05bff5bca6616477f94b/JobExceptionExample.java/buggy/examples/src/java/org/quartz/examples/example6/JobExceptionExample.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
1216,
1185,
288,
202,
202,
1343,
613,
273,
1827,
1733,
18,
588,
1343,
12,
2278,
503,
10908,
18,
1106,
1769,
202,
202,
1330,
18,
1376,
2932,
17082,
10188,
6894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
1216,
1185,
288,
202,
202,
1343,
613,
273,
1827,
1733,
18,
588,
1343,
12,
2278,
503,
10908,
18,
1106,
1769,
202,
202,
1330,
18,
1376,
2932,
17082,
10188,
6894,
... |
IASTNode def = testF2(file, offset); | IASTNode def = testCtrl_F3(file, offset); | public void testBug101287() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("int abc;\n"); //$NON-NLS-1$ buffer.append("int main(int argc, char **argv) {\n"); //$NON-NLS-1$ buffer.append("abc\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testBug101287.c", code); //$NON-NLS-1$ int offset = code.indexOf("abc\n"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "abc"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 3); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "abc"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 3); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a80f774ac034fed44b578ede9c708e773e1fabcf/CPPSelectionTestsDOMIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsDOMIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
15168,
6030,
27,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
474,
20011,
9747,
82,
8863,
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,
482,
918,
1842,
19865,
15168,
6030,
27,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
474,
20011,
9747,
82,
8863,
4329,
3993... |
if (flt != null && _fault == null) _fault = flt; _child = null; _compensations.addAll(compenstations); | if (flt != null && _fault == null) _fault = flt; _child = null; _compensations.addAll(compenstations); | public void completed(FaultData flt, Set<CompensationHandler> compenstations) { // Set the fault to the activity's choice, if and only if no previous fault // has been detected (first fault wins). if (flt != null && _fault == null) _fault = flt; _child = null; _compensations.addAll(compenstations); if (flt == null) stopEventHandlers(); else terminateEventHandlers(); instance(ACTIVE.this); } | 47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/5a424b5c30fb33ea6a31f42e354ed700333c104e/SCOPE.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/SCOPE.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
5951,
12,
7083,
751,
26901,
16,
1000,
32,
2945,
25159,
1503,
34,
1161,
275,
31478,
13,
288,
2868,
368,
1000,
326,
12530,
358,
326,
5728,
1807,
6023,
16,
309,
471,
1338,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
1071,
918,
5951,
12,
7083,
751,
26901,
16,
1000,
32,
2945,
25159,
1503,
34,
1161,
275,
31478,
13,
288,
2868,
368,
1000,
326,
12530,
358,
326,
5728,
1807,
6023,
16,
309,
471,
1338,
309,
... |
ruby.getIter().push(ruby.isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); funcall(getRuby().intern("initialize"), args); ruby.getIter().pop(); } | ruby.getIter().push( ruby.isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); funcall(getRuby().intern("initialize"), args); ruby.getIter().pop(); } | public void callInit(RubyObject[] args) { ruby.getIter().push(ruby.isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); funcall(getRuby().intern("initialize"), args); ruby.getIter().pop(); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/clean/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
745,
2570,
12,
54,
10340,
921,
8526,
833,
13,
288,
3639,
22155,
18,
588,
2360,
7675,
6206,
12,
27768,
18,
291,
1768,
6083,
1435,
692,
19817,
2360,
18,
11844,
67,
3670,
294,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
2570,
12,
54,
10340,
921,
8526,
833,
13,
288,
3639,
22155,
18,
588,
2360,
7675,
6206,
12,
27768,
18,
291,
1768,
6083,
1435,
692,
19817,
2360,
18,
11844,
67,
3670,
294,
1... |
} else if (testName.equalsIgnoreCase("fromUnicode")) { | } else if (testName.equalsIgnoreCase("fromUnicode")) { | public void processModules() { try { int testFromUnicode = 0; String testName = t.getName().toString(); int testToUnicode = 0; // Iterate through and get each of the test case to process for (Iterator iter = t.getDataIterator(); iter.hasNext();) { DataMap testcase = (DataMap) iter.next(); if (testName.equalsIgnoreCase("toUnicode")) { TestToUnicode(testcase, testToUnicode); testToUnicode++; } else if (testName.equalsIgnoreCase("fromUnicode")) { TestFromUnicode(testcase, testFromUnicode); testFromUnicode++; } else if (testName.equalsIgnoreCase("getUnicodeSet")) { TestGetUnicodeSet(testcase); } else { warnln("Could not load the test cases for conversion"); continue; } } } catch (Exception e) { e.printStackTrace(); } } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/10a1c2dccc10797aec24b0d077f1f602b14882d6/TestConversion.java/clean/icu4j/src/com/ibm/icu/dev/test/charset/TestConversion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
7782,
1435,
288,
3639,
775,
288,
2398,
509,
1842,
1265,
16532,
273,
374,
31,
5411,
514,
1842,
461,
273,
268,
18,
17994,
7675,
10492,
5621,
5411,
509,
1842,
774,
16532,
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,
377,
1071,
918,
1207,
7782,
1435,
288,
3639,
775,
288,
2398,
509,
1842,
1265,
16532,
273,
374,
31,
5411,
514,
1842,
461,
273,
268,
18,
17994,
7675,
10492,
5621,
5411,
509,
1842,
774,
16532,
27... |
"Item 1", "Item 2", "Item 3"} ); | "Item 1", "Item 2", "Item 3", "Item 4", "Item 5"} ); | public static final Chart createAxisTitleScript( ) { ChartWithAxes cwaBar = ChartWithAxesImpl.create( ); cwaBar.setScript( "function beforeDrawAxisTitle(axis, title, scriptContext)" //$NON-NLS-1$ + "{title.getCaption( ).setValue( \"Axis Title By JavaScript\");" //$NON-NLS-1$ + "title.getCaption( ).getColor( ).set( 32, 168, 255 );}" //$NON-NLS-1$ ); cwaBar.getTitle( ).getLabel( ).getCaption( ).setValue( "Axis Title Script Chart" ); //$NON-NLS-1$ cwaBar.getLegend( ).setVisible( false ); // X-Axis Axis xAxisPrimary = cwaBar.getPrimaryBaseAxes( )[0]; xAxisPrimary.setType( AxisType.TEXT_LITERAL ); xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); xAxisPrimary.getTitle( ).setVisible( true ); // Y-Axis Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary ); yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL ); yAxisPrimary.setType( AxisType.LINEAR_LITERAL ); yAxisPrimary.getTitle( ).setVisible( true ); // Data Set TextDataSet categoryValues = TextDataSetImpl.create( new String[]{ "Item 1", "Item 2", "Item 3"} ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ NumberDataSet orthoValues = NumberDataSetImpl.create( new double[]{ 8, 18, -15 } ); // X-Series Series seCategory = SeriesImpl.create( ); seCategory.setDataSet( categoryValues ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); xAxisPrimary.getSeriesDefinitions( ).add( sdX ); sdX.getSeries( ).add( seCategory ); // Y-Series BarSeries bs = (BarSeries) BarSeriesImpl.create( ); bs.setDataSet( orthoValues ); bs.getLabel( ).setVisible( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); yAxisPrimary.getSeriesDefinitions( ).add( sdY ); sdY.getSeries( ).add( bs ); return cwaBar; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/87be376b194f799be46893d03147e84946c9d70b/AxisTitleScript.java/buggy/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/view/models/AxisTitleScript.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
14804,
752,
6558,
4247,
3651,
12,
262,
202,
95,
202,
202,
7984,
1190,
26494,
14098,
69,
5190,
273,
14804,
1190,
26494,
2828,
18,
2640,
12,
11272,
202,
202,
71,
91,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
727,
14804,
752,
6558,
4247,
3651,
12,
262,
202,
95,
202,
202,
7984,
1190,
26494,
14098,
69,
5190,
273,
14804,
1190,
26494,
2828,
18,
2640,
12,
11272,
202,
202,
71,
91,
6... |
Extent blockSize = Extent.fromIntSignExtend(BlockAllocator.blockSize(blockSizeClass[sizeClass])); | Extent blockSize = Extent.fromIntSignExtend(BlockAllocator .blockSize(blockSizeClass[sizeClass])); | protected final Address makeFreeListFromLiveBits(Address block, int sizeClass) throws InlinePragma { Extent cellBytes = Extent.fromIntSignExtend(cellSize[sizeClass]); Address cellCursor = block.plus(blockHeaderSize[sizeClass]); Extent blockSize = Extent.fromIntSignExtend(BlockAllocator.blockSize(blockSizeClass[sizeClass])); Address end = block.plus(blockSize); Address nextFree = Address.zero(); Address nextCellCursor = cellCursor.plus(cellBytes); Address liveCursor = alignToLiveStride(cellCursor); Address liveWordCursor = getLiveWordAddress(liveCursor); boolean isLive = false; while (liveCursor.LT(end)) { Word live = liveWordCursor.loadWord(); if (!live.isZero()) { for (int i=0; i < BITS_IN_WORD; i++) { if (!(live.and(Word.one().lsh(i)).isZero())) isLive = true; liveCursor = liveCursor.plus(BYTES_PER_LIVE_BIT); if (liveCursor.GE(nextCellCursor)) { if (!isLive) { free(cellCursor, block, sizeClass, nextFree); nextFree = cellCursor; } cellCursor = nextCellCursor; nextCellCursor = nextCellCursor.plus(cellBytes); isLive = false; } } } else { liveCursor = liveCursor.plus(BYTES_PER_LIVE_WORD); while (liveCursor.GE(nextCellCursor)) { // while (nextCellCursor.LT(liveCursor)) { if (!isLive) { free(cellCursor, block, sizeClass, nextFree); nextFree = cellCursor; } cellCursor = nextCellCursor; nextCellCursor = nextCellCursor.plus(cellBytes); isLive = false; } } liveWordCursor = liveWordCursor.plus(BYTES_IN_WORD); } return nextFree; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/SegregatedFreeList.java/buggy/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
5267,
1221,
9194,
682,
1265,
12328,
6495,
12,
1887,
1203,
16,
4766,
15604,
509,
963,
797,
13,
565,
1216,
16355,
2050,
9454,
288,
565,
6419,
319,
2484,
2160,
273,
6419,
319,
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,
282,
4750,
727,
5267,
1221,
9194,
682,
1265,
12328,
6495,
12,
1887,
1203,
16,
4766,
15604,
509,
963,
797,
13,
565,
1216,
16355,
2050,
9454,
288,
565,
6419,
319,
2484,
2160,
273,
6419,
319,
18,... |
public org.quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound { org.quickfix.field.MaturityMonthYear value = new org.quickfix.field.MaturityMonthYear(); | public quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound { quickfix.field.MaturityMonthYear value = new quickfix.field.MaturityMonthYear(); | public org.quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound { org.quickfix.field.MaturityMonthYear value = new org.quickfix.field.MaturityMonthYear(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassStatusRequest.java/clean/src/java/src/quickfix/fix43/OrderMassStatusRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
2108,
270,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15947,
2336,
5445,
5593,
2108,
270,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
55... |
_target.detachChild(_particles); | ParticleUtil.stopAndRemove(_particles); | public void destroy () { if (_particles != null) { _target.detachChild(_particles); } } | 8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/294894fced0e711b17d24e6733f59b623ad60aeb/ParticleInfluenceViz.java/clean/src/java/com/threerings/bang/game/client/effect/ParticleInfluenceViz.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5546,
1832,
565,
288,
3639,
309,
261,
67,
2680,
8383,
480,
446,
13,
288,
5411,
6393,
3711,
1304,
18,
5681,
1876,
3288,
24899,
2680,
8383,
1769,
3639,
289,
565,
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,
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,
5546,
1832,
565,
288,
3639,
309,
261,
67,
2680,
8383,
480,
446,
13,
288,
5411,
6393,
3711,
1304,
18,
5681,
1876,
3288,
24899,
2680,
8383,
1769,
3639,
289,
565,
289,
2,
-100,
... |
public ProfileManagerHandler(ProfileManager profileManager) { | public ProfileManagerHandler(ProfileManager profileManager, IdUpgrader idUpgrader) { | public ProfileManagerHandler(ProfileManager profileManager) { super(); this.profileManager = profileManager; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/fa66ecbbf2829e4f5c09fc9d0f2bbdab1d26cb2c/ProfileManagerBinding.java/buggy/intermine/webtasks/main/src/org/intermine/web/ProfileManagerBinding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11357,
1318,
1503,
12,
4029,
1318,
3042,
1318,
16,
3124,
1211,
22486,
612,
1211,
22486,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
5040,
1318,
273,
3042,
1318,
31,
565,
289,
2,
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,
11357,
1318,
1503,
12,
4029,
1318,
3042,
1318,
16,
3124,
1211,
22486,
612,
1211,
22486,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
5040,
1318,
273,
3042,
1318,
31,
565,
289,
2,
-100,... |
: new PluginVersionIdentifier(version).toString(); | : new Version(version).toString(); | private Map computeBundleGroupMap() { // use tree map to get predicable order Map ids = new TreeMap(); IBundleGroupProvider[] providers = Platform.getBundleGroupProviders(); for (int i = 0; i < providers.length; ++i) { IBundleGroup[] groups = providers[i].getBundleGroups(); for (int j = 0; j < groups.length; ++j) { IBundleGroup group = groups[j]; AboutInfo info = new AboutInfo(group); String version = info.getVersionId(); version = version == null ? "0.0.0" //$NON-NLS-1$ : new PluginVersionIdentifier(version).toString(); String versionedFeature = group.getIdentifier() + ":" + version; //$NON-NLS-1$ ids.put(versionedFeature, info); } } return ids; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5f7b3b00ded0b091c24d9c1ef44a8833385a5b38/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1635,
3671,
3405,
1114,
863,
1435,
288,
202,
202,
759,
999,
2151,
852,
358,
336,
3479,
335,
429,
1353,
202,
202,
863,
3258,
273,
394,
16381,
5621,
202,
202,
45,
3405,
1114,
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,
225,
202,
1152,
1635,
3671,
3405,
1114,
863,
1435,
288,
202,
202,
759,
999,
2151,
852,
358,
336,
3479,
335,
429,
1353,
202,
202,
863,
3258,
273,
394,
16381,
5621,
202,
202,
45,
3405,
1114,
2... |
messageType = packet.getClass().getName()+ " Received"; | messageType = packet.getClass().getName() + " Received"; | private void addReadPacketToTable(SimpleDateFormat dateFormatter, Packet packet) { String messageType = null; String from = packet.getFrom(); String type = ""; Icon packetTypeIcon; receivedPackets++; if (packet instanceof IQ) { packetTypeIcon = iqPacketIcon; messageType = "IQ Received (class=" + packet.getClass().getName() + ")"; type = ((IQ) packet).getType().toString(); receivedIQPackets++; } else if (packet instanceof Message) { packetTypeIcon = messagePacketIcon; messageType = "Message Received"; type = ((Message) packet).getType().toString(); receivedMessagePackets++; } else if (packet instanceof Presence) { packetTypeIcon = presencePacketIcon; messageType = "Presence Received"; type = ((Presence) packet).getType().toString(); receivedPresencePackets++; } else { packetTypeIcon = unknownPacketTypeIcon; messageType = packet.getClass().getName()+ " Received"; receivedOtherPackets++; } messagesTable.addRow( new Object[] { packet.toXML(), dateFormatter.format(new Date()), packetReceivedIcon, packetTypeIcon, messageType, type, "", from}); // Update the statistics table updateStatistics(); } | 966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/878aee904393c62651527642b23dc553a8ce14d3/EnhancedDebugger.java/buggy/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
1994,
6667,
774,
1388,
12,
5784,
11878,
1509,
5074,
16,
11114,
4414,
13,
288,
3639,
514,
22402,
273,
446,
31,
3639,
514,
628,
273,
4414,
18,
588,
1265,
5621,
3639,
514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
1994,
6667,
774,
1388,
12,
5784,
11878,
1509,
5074,
16,
11114,
4414,
13,
288,
3639,
514,
22402,
273,
446,
31,
3639,
514,
628,
273,
4414,
18,
588,
1265,
5621,
3639,
514,
... |
public void ejbActivate() throws RemoteException {} | public void ejbActivate() throws RemoteException { } | public void ejbActivate() throws RemoteException {} | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/RegionBean.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/RegionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18024,
21370,
1435,
1216,
18361,
2618,
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,
0,
0,
0,
0,
0,
0,... | [
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18024,
21370,
1435,
1216,
18361,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (refreshBackgrounds) { Control[] children= list.getChildren(); boolean dark= (children.length % 2) == 1; for (int i= 0; i < children.length; i++) { JobItem ji= (JobItem) children[i]; ji.updateBackground(dark); dark= !dark; } } | private void relayout(boolean layout, boolean refreshBackgrounds) { if (layout) { Point size= list.computeSize(list.getClientArea().x, SWT.DEFAULT); list.setSize(size); scroller.setMinSize(size); } if (refreshBackgrounds) { Control[] children= list.getChildren(); boolean dark= (children.length % 2) == 1; for (int i= 0; i < children.length; i++) { JobItem ji= (JobItem) children[i]; ji.updateBackground(dark); dark= !dark; } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f500f02733f7d460b51141f6c21b6a91e85a9bca/NewProgressViewer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/NewProgressViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1279,
2012,
12,
6494,
3511,
16,
1250,
4460,
8199,
87,
13,
288,
202,
202,
430,
261,
6741,
13,
288,
1082,
202,
2148,
963,
33,
666,
18,
9200,
1225,
12,
1098,
18,
588,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1279,
2012,
12,
6494,
3511,
16,
1250,
4460,
8199,
87,
13,
288,
202,
202,
430,
261,
6741,
13,
288,
1082,
202,
2148,
963,
33,
666,
18,
9200,
1225,
12,
1098,
18,
588,
122... | |
return (IParent)enum; } private IParent createClass(Parent parent, SimpleDeclaration simpleDeclaration, ClassSpecifier classSpecifier, boolean isTemplate){ String className = (classSpecifier.getName() == null ) ? "" : classSpecifier.getName().toString(); int kind; switch( classSpecifier.getClassKey() ) { case ClassKey.t_class: kind = ICElement.C_CLASS; break; case ClassKey.t_struct: kind = ICElement.C_STRUCT; break; default: kind = ICElement.C_UNION; break; } Structure element; if(!isTemplate){ Structure classElement = new Structure( (CElement)parent, kind, className ); element = classElement; } else { ClassTemplate classTemplate = new ClassTemplate( (CElement)parent, className ); element = classTemplate; } parent.addChild((ICElement) element); String type; if( classSpecifier.getName() != null ) { type = simpleDeclaration.getDeclSpecifier().getTypeName(); element.setIdPos( classSpecifier.getName().getStartOffset(), classSpecifier.getName().length() ); } else { type = classSpecifier.getClassKeyToken().getImage(); element.setIdPos(classSpecifier.getClassKeyToken().getOffset(), classSpecifier.getClassKeyToken().getLength()); } element.setTypeName( type ); element.setPos(classSpecifier.getStartingOffset(), classSpecifier.getTotalLength()); | this.newElements.put(element, element.getElementInfo()); | private IParent createEnumeration(Parent parent, EnumerationSpecifier enumSpecifier){ // create element String enumName = (enumSpecifier.getName() == null ) ? "" : enumSpecifier.getName().toString(); Enumeration enum = new Enumeration ((ICElement)parent, enumName ); // add to parent parent.addChild((ICElement)enum); List enumItems = enumSpecifier.getEnumeratorDefinitions(); Iterator i = enumItems.iterator(); while (i.hasNext()){ // create sub element EnumeratorDefinition enumDef = (EnumeratorDefinition) i.next(); Enumerator element = new Enumerator (enum, enumDef.getName().toString()); // add to parent enum.addChild(element); // set enumerator position element.setIdPos(enumDef.getName().getStartOffset(), enumDef.getName().length()); element.setPos(enumDef.getStartingOffset(), enumDef.getTotalLength()); } // set enumeration position if(enumSpecifier.getName() != null ){ enum.setIdPos(enumSpecifier.getName().getStartOffset(), enumSpecifier.getName().length()); }else { enum.setIdPos(enumSpecifier.getStartToken().getOffset(), enumSpecifier.getStartToken().getLength()); } enum.setPos(enumSpecifier.getStartingOffset(), enumSpecifier.getTotalLength()); enum.setTypeName(enumSpecifier.getStartToken().getImage()); return (IParent)enum; } private IParent createClass(Parent parent, SimpleDeclaration simpleDeclaration, ClassSpecifier classSpecifier, boolean isTemplate){ // create element String className = (classSpecifier.getName() == null ) ? "" : classSpecifier.getName().toString(); int kind; switch( classSpecifier.getClassKey() ) { case ClassKey.t_class: kind = ICElement.C_CLASS; break; case ClassKey.t_struct: kind = ICElement.C_STRUCT; break; default: kind = ICElement.C_UNION; break; } Structure element; if(!isTemplate){ Structure classElement = new Structure( (CElement)parent, kind, className ); element = classElement; } else { ClassTemplate classTemplate = new ClassTemplate( (CElement)parent, className ); element = classTemplate; } // add to parent parent.addChild((ICElement) element); String type; // set element position if( classSpecifier.getName() != null ) { type = simpleDeclaration.getDeclSpecifier().getTypeName(); element.setIdPos( classSpecifier.getName().getStartOffset(), classSpecifier.getName().length() ); } else { type = classSpecifier.getClassKeyToken().getImage(); element.setIdPos(classSpecifier.getClassKeyToken().getOffset(), classSpecifier.getClassKeyToken().getLength()); } element.setTypeName( type ); element.setPos(classSpecifier.getStartingOffset(), classSpecifier.getTotalLength()); return element; } private void createTypeDef(Parent parent, Declarator declarator, SimpleDeclaration simpleDeclaration){ // create the element String declaratorName = declarator.getName().toString(); TypeDef typedef = new TypeDef( parent, declaratorName ); String type = getType(simpleDeclaration, declarator); typedef.setTypeName(type); // add to parent parent.addChild((CElement)typedef); // set positions typedef.setIdPos(declarator.getName().getStartOffset(), declarator.getName().length()); typedef.setPos(simpleDeclaration.getStartingOffset(), simpleDeclaration.getTotalLength()); } private VariableDeclaration createVariableSpecification(Parent parent, SimpleDeclaration simpleDeclaration, Declarator declarator){ String declaratorName = declarator.getName().toString(); DeclSpecifier declSpecifier = simpleDeclaration.getDeclSpecifier(); VariableDeclaration element = null; if(parent instanceof IStructure){ // field Field newElement = new Field( parent, declaratorName ); newElement.setMutable(declSpecifier.isMutable()); newElement.setVisibility(simpleDeclaration.getAccessSpecifier().getAccess()); element = newElement; } else { if(declSpecifier.isExtern()){ // variableDeclaration VariableDeclaration newElement = new VariableDeclaration( parent, declaratorName ); element = newElement; } else { // variable Variable newElement = new Variable( parent, declaratorName ); element = newElement; } } element.setTypeName ( getType(simpleDeclaration, declarator) ); element.setConst(declSpecifier.isConst()); element.setVolatile(declSpecifier.isVolatile()); element.setStatic(declSpecifier.isStatic()); // add to parent parent.addChild( element ); // set position element.setIdPos( declarator.getName().getStartOffset(), declarator.getName().length() ); element.setPos(simpleDeclaration.getStartingOffset(), simpleDeclaration.getTotalLength()); return element; } private FunctionDeclaration createFunctionSpecification(Parent parent, SimpleDeclaration simpleDeclaration, Declarator declarator, ParameterDeclarationClause pdc, boolean isTemplate){ String declaratorName = declarator.getName().toString(); DeclSpecifier declSpecifier = simpleDeclaration.getDeclSpecifier(); // getParameterTypes List parameterList = pdc.getDeclarations(); String[] parameterTypes = new String[parameterList.size()]; FunctionDeclaration element = null; for( int j = 0; j< parameterList.size(); ++j ) { ParameterDeclaration param = (ParameterDeclaration )parameterList.get(j); parameterTypes[j] = new String(getType(param, (Declarator)param.getDeclarators().get(0))); } if( parent instanceof IStructure ) { if (simpleDeclaration.isFunctionDefinition()) { // method Method newElement = new Method( parent, declaratorName ); newElement.setVisibility(simpleDeclaration.getAccessSpecifier().getAccess()); element = newElement; } else { // method declaration if(!isTemplate){ MethodDeclaration newElement = new MethodDeclaration( parent, declaratorName ); newElement.setVisibility(simpleDeclaration.getAccessSpecifier().getAccess()); element = newElement; }else { MethodTemplate newElement = new MethodTemplate(parent, declaratorName); newElement.setVisibility(simpleDeclaration.getAccessSpecifier().getAccess()); element = newElement; } } } else if(( parent instanceof ITranslationUnit ) || ( parent instanceof INamespace )) { if (simpleDeclaration.isFunctionDefinition()) { // if it belongs to a class, then create a method // else create a function // this will not be known until we have cross reference information // function Function newElement = new Function( parent, declaratorName ); element = newElement; } else { // functionDeclaration if(!isTemplate){ FunctionDeclaration newElement = new FunctionDeclaration( parent, declaratorName ); element = newElement; } else { FunctionTemplate newElement = new FunctionTemplate( parent, declaratorName ); element = newElement; } } } element.setParameterTypes(parameterTypes); element.setReturnType( getType(simpleDeclaration, declarator) ); element.setVolatile(declSpecifier.isVolatile()); element.setStatic(declSpecifier.isStatic()); element.setConst(declarator.isConst()); // add to parent parent.addChild( element ); // hook up the offsets element.setIdPos( declarator.getName().getStartOffset(), declarator.getName().length() ); element.setPos(simpleDeclaration.getStartingOffset(), simpleDeclaration.getTotalLength()); return element; } private VariableDeclaration createPointerToFunction(Parent parent, SimpleDeclaration simpleDeclaration, Declarator declarator, ParameterDeclarationClause pdc, boolean isTemplate){ String declaratorName = declarator.getDeclarator().getName().toString(); DeclSpecifier declSpecifier = simpleDeclaration.getDeclSpecifier(); // getParameterTypes List parameterList = pdc.getDeclarations(); String[] parameterTypes = new String[parameterList.size()]; VariableDeclaration element = null; for( int j = 0; j< parameterList.size(); ++j ) { ParameterDeclaration param = (ParameterDeclaration )parameterList.get(j); parameterTypes[j] = new String(getType(param, (Declarator)param.getDeclarators().get(0))); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f3b8a1b3ea1f4879b0d6905496124a433cf11586/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,
2971,
817,
752,
21847,
12,
3054,
982,
16,
13864,
21416,
2792,
21416,
15329,
202,
202,
759,
752,
930,
202,
202,
780,
2792,
461,
273,
261,
7924,
21416,
18,
17994,
1435,
422,
446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2971,
817,
752,
21847,
12,
3054,
982,
16,
13864,
21416,
2792,
21416,
15329,
202,
202,
759,
752,
930,
202,
202,
780,
2792,
461,
273,
261,
7924,
21416,
18,
17994,
1435,
422,
446,... |
ResourceSet result; | public void testPathExpression() { try { XQueryService service = storeXMLStringAndGetQueryService("numbers.xml", numbers); ResourceSet result; boolean exceptionThrown = false; String message = ""; try { result = queryAndAssert(service, "('a', 'b', 'c')/position()", -1, null); } catch (XMLDBException e) { exceptionThrown = true; message = e.getMessage(); } assertTrue("Exception wanted: " + message, exceptionThrown); exceptionThrown = false; message = ""; try { result = queryAndAssert(service, "for $a in (<a/>, <b/>, doh, <c/>) return $a", -1, null); } catch (XMLDBException e) { exceptionThrown = true; message = e.getMessage(); } assertTrue("Exception wanted: " + message, exceptionThrown); result = queryAndAssert(service, "()/position()", 0, null); } catch (XMLDBException e) { fail(e.getMessage()); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/69c950317f245a3798d33eb856f532d8763f7353/XPathQueryTest.java/buggy/src/org/exist/xquery/test/XPathQueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
743,
2300,
1435,
288,
3639,
775,
288,
5411,
1139,
1138,
1179,
1156,
273,
1171,
1707,
4201,
780,
14042,
1138,
1179,
2932,
13851,
18,
2902,
3113,
5600,
1769,
4766,
565,
1250,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
743,
2300,
1435,
288,
3639,
775,
288,
5411,
1139,
1138,
1179,
1156,
273,
1171,
1707,
4201,
780,
14042,
1138,
1179,
2932,
13851,
18,
2902,
3113,
5600,
1769,
4766,
565,
1250,... | |
return MOVE_FOLDED; | return DefUseEffect.MOVE_FOLDED; | private static byte float2Long(OPT_Instruction s) { if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isFloatConstant()) { // CONSTANT: FOLD float val = op.asFloatConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC((long)val)); return MOVE_FOLDED; } } return UNCHANGED; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
1431,
22,
3708,
12,
15620,
67,
11983,
272,
13,
288,
565,
309,
261,
8955,
67,
14639,
13,
288,
1377,
16456,
67,
10265,
1061,
273,
20324,
18,
588,
3053,
12,
87,
1769,
1377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1160,
1431,
22,
3708,
12,
15620,
67,
11983,
272,
13,
288,
565,
309,
261,
8955,
67,
14639,
13,
288,
1377,
16456,
67,
10265,
1061,
273,
20324,
18,
588,
3053,
12,
87,
1769,
1377... |
if (jj_3R_283()) return true; | if (jj_3R_284()) return true; | final private boolean jj_3R_265() { if (jj_3R_283()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_308()) { jj_scanpos = xsp; break; } } return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0b7f9842c42a34509d077a5e1d655daf0b8192d6/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30281,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
5193,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
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,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30281,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
5193,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
2... |
if (Lexer.isSurrogatePair(high, low)) { | if (Character.isSurrogatePair(high, low)) { | public int codePointAt(int strIndex, CharSequence testString, int rightBound) { /* * We store information about number of codepoints * we read at variable readCharsForCodePoint. */ int curChar; readCharsForCodePoint = 1; if (strIndex < rightBound - 1) { char high = testString.charAt(strIndex++); char low = testString.charAt(strIndex); if (Lexer.isSurrogatePair(high, low)) { char [] curCodePointUTF16 = new char [] {high, low}; curChar = Lexer.codePointAt(curCodePointUTF16, 0); readCharsForCodePoint = 2; } else { curChar = high; } } else { curChar = testString.charAt(strIndex); } return curChar; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4c58a60009678e2d97111b84c8692e6317ed3112/DecomposedCharSet.java/buggy/modules/regex/src/main/java/java/util/regex/DecomposedCharSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
18614,
861,
12,
474,
609,
1016,
16,
9710,
1842,
780,
16,
5411,
509,
2145,
3499,
13,
288,
7734,
1748,
540,
380,
1660,
1707,
1779,
2973,
1300,
434,
981,
4139,
540,
380,
732,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18614,
861,
12,
474,
609,
1016,
16,
9710,
1842,
780,
16,
5411,
509,
2145,
3499,
13,
288,
7734,
1748,
540,
380,
1660,
1707,
1779,
2973,
1300,
434,
981,
4139,
540,
380,
732,
85... |
setValues("", "Oracle", "Native", "", "", "1526", "", ""); | setValues("", "Oracle", "Native", "", "", "1521", "", ""); | public void setDefault() { setValues("", "Oracle", "Native", "", "", "1526", "", ""); } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/2e697cbb8a30771f76efe6612258f97e020e69c9/DatabaseMeta.java/buggy/kettle/src/be/ibridge/kettle/core/database/DatabaseMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
1435,
202,
95,
202,
202,
542,
1972,
2932,
3113,
315,
23601,
3113,
315,
9220,
3113,
23453,
23453,
315,
3600,
5558,
3113,
23453,
1408,
1769,
202,
97,
2,
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,
225,
202,
482,
918,
9277,
1435,
202,
95,
202,
202,
542,
1972,
2932,
3113,
315,
23601,
3113,
315,
9220,
3113,
23453,
23453,
315,
3600,
5558,
3113,
23453,
1408,
1769,
202,
97,
2,
-100,
-100,
-10... |
public int compare( Integer a, Integer b ) { | public int compare( Integer a, Integer b ) { | private void setupMapping() { int numRows = baseModel.getRowCount(); viewToModelMapping = new ArrayList(numRows); for (int i = 0; i < numRows; i++) viewToModelMapping.add(new Integer(i)); Collections.sort( viewToModelMapping, new Comparator<Integer>() { public int compare( Integer a, Integer b ) { if ((sortDirection == SORT_NO_ORDER) || (sortColumn == -1)) return a.compareTo(b); Comparable first = (Comparable)baseModel.getValueAt( a.intValue(), sortColumn ); Comparable second = (Comparable)baseModel.getValueAt( b.intValue(), sortColumn ); if (sortDirection == SORT_ASCENDING_ORDER) return first.compareTo(second); else return second.compareTo(first); } }); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/389f950598d29ac1fde0f8b1d301497e2f4e28f2/DefaultSortedTableModel.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/DefaultSortedTableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3875,
3233,
1435,
288,
202,
202,
474,
12934,
273,
1026,
1488,
18,
588,
26359,
5621,
202,
202,
1945,
774,
1488,
3233,
273,
394,
2407,
12,
2107,
4300,
1769,
202,
202,
1884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
3233,
1435,
288,
202,
202,
474,
12934,
273,
1026,
1488,
18,
588,
26359,
5621,
202,
202,
1945,
774,
1488,
3233,
273,
394,
2407,
12,
2107,
4300,
1769,
202,
202,
1884,
... |
return numberUnit(c, false); | return numberUnit(false); | protected int dotNumber() throws IOException { int c; loop: for (;;) { switch (c = inputBuffer.next()) { default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(c, false); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/9275bbcced0ae3e1d23dc6e4de73913cf9ca452f/Scanner.java/buggy/sources/org/apache/batik/css/parser/Scanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
3928,
1854,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
2798,
30,
364,
261,
25708,
13,
288,
5411,
1620,
261,
71,
273,
810,
1892,
18,
4285,
10756,
288,
5411,
805,
30,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
3928,
1854,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
2798,
30,
364,
261,
25708,
13,
288,
5411,
1620,
261,
71,
273,
810,
1892,
18,
4285,
10756,
288,
5411,
805,
30,
773... |
writer.openTag( HTMLTags.TAG_TABLE ); | writer.openTag( HTMLTags.TAG_TABLE ); | public void start( IReportItemContent item ) { ITableContent tableObj = (ITableContent) item; assert tableObj != null; reportEmitter.push( tableObj ); if ( reportEmitter.isHidden( ) ) { return; } logger.log( Level.FINE, "[HTMLTableEmitter] Start table" ); //$NON-NLS-1$ int type; DimensionType x = tableObj.getX( ); DimensionType y = tableObj.getY( ); StringBuffer styleBuffer = new StringBuffer( ); StyleDesign mergedStyle = tableObj.getMergedStyle( ); addDefaultTableStyles( mergedStyle, styleBuffer ); type = checkElementType( x, y, mergedStyle, styleBuffer ); writer.openTag( HTMLTags.TAG_TABLE ); // style string setStyleName( tableObj.getStyle( ) ); if ( type == ELEMENT_INLINE ) { styleBuffer.append( "display: inline;" ); //$NON-NLS-1$ } handleShrink( ELEMENT_BLOCK, mergedStyle, tableObj.getHeight( ), tableObj.getWidth( ), styleBuffer ); handleStyle( tableObj, styleBuffer ); // bookmark setBookmark( null, tableObj.getBookmarkValue( ) ); // table caption String caption = tableObj.getCaption( ); if ( caption != null && caption.length( ) > 0 ) { writer.openTag( HTMLTags.TAG_CAPTION ); writer.text( caption ); writer.closeTag( HTMLTags.TAG_CAPTION ); } currentData = new PersistData( ); statusStack.push( currentData ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/778c80860c81c271b4b70edb2450e2750fe6c140/HTMLTableEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLTableEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
467,
4820,
1180,
1350,
761,
262,
202,
95,
202,
202,
1285,
429,
1350,
1014,
2675,
273,
261,
1285,
429,
1350,
13,
761,
31,
202,
202,
11231,
1014,
2675,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12,
467,
4820,
1180,
1350,
761,
262,
202,
95,
202,
202,
1285,
429,
1350,
1014,
2675,
273,
261,
1285,
429,
1350,
13,
761,
31,
202,
202,
11231,
1014,
2675,
480,
446,
... |
public org.quickfix.field.Commission getCommission() throws FieldNotFound { org.quickfix.field.Commission value = new org.quickfix.field.Commission(); | public quickfix.field.Commission getCommission() throws FieldNotFound { quickfix.field.Commission value = new quickfix.field.Commission(); | public org.quickfix.field.Commission getCommission() throws FieldNotFound { org.quickfix.field.Commission value = new org.quickfix.field.Commission(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/buggy/src/java/src/quickfix/fix40/NewOrderList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
799,
3951,
336,
799,
3951,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
799,
3951,
460,
273,
394,
2358,
18,
19525,
904... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
799,
3951,
336,
799,
3951,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
799,
3951,
460,
273,
394,
2358,
18,
19525,
904... |
int headerSpace=0; | int headerSpace = 0; | public static void sendDIR(HttpServletRequest request, HttpServletResponse response, ReqState rs) throws DODSException, PPTException, JDOMException, BESException, IOException { if (Debug.isSet("showResponse")) System.out.println("sendDIR request = " + request); String name, collectionName; String size; String lastModified; String link; String responseLinks; Iterator it; Element childDataset; String requestURL = rs.getRequestURL(); // clean up the url if(requestURL.endsWith("/")) requestURL = requestURL.substring(0,requestURL.length()-1); PrintWriter pw = new PrintWriter(response.getOutputStream()); // Make shure the dataset name is not null if(rs.getDataset() == null) name = "/"; else name = rs.getDataset(); // Get the catalog for this collection Element dataset = BesAPI.showCatalog(name).getRootElement(); // Compute White Space required for correct formating int headerSpace=0; it = dataset.getChildren("dataset").iterator(); while(it.hasNext()){ childDataset = (Element) it.next(); name = childDataset.getChildTextTrim("name"); if(headerSpace < name.length()) headerSpace = name.length(); } headerSpace += 10; // get the name of the collection name = dataset.getChildTextTrim("name"); // Figure out what the link to the parent directory looks like.// if (name.endsWith("/"))// collectionName = name.substring(0, name.length() - 1);// else collectionName = name; String baseName; if(collectionName.endsWith("/")) baseName = collectionName.substring(0,collectionName.length()-1); else baseName = collectionName; if(baseName.lastIndexOf("/") > 0) baseName = baseName.substring(baseName.lastIndexOf("/"),baseName.length()); // Strip off the basename to make the link link = requestURL.substring(0, requestURL.lastIndexOf(baseName)); // Set up the page. printHTMLHeader(collectionName, headerSpace, link, pw); // Build a line in the page for each child dataset/collection it = dataset.getChildren("dataset").iterator(); while(it.hasNext()){ childDataset = (Element) it.next(); name = childDataset.getChildTextTrim("name"); size = childDataset.getChildTextTrim("size"); lastModified = childDataset.getChild("lastmodified").getChildTextTrim("date") + " " + childDataset.getChild("lastmodified").getChildTextTrim("time"); // Is it a collection? if(childDataset.getAttributeValue("thredds_collection").equalsIgnoreCase("true")){ link = requestURL+"/"+name+"/"; responseLinks = " " + " - "+ " - "+ " - "+ " - "+ " - "; name += "/"; size = " -"; } else { /// It must be a dataset link = requestURL+"/"+name+".html"; // Build response links responseLinks = " " + "<a href=\"" + requestURL + "/" + name + ".ddx" + "\">ddx</a> "+ "<a href=\"" + requestURL + "/" + name + ".dds" + "\">dds</a> "+ "<a href=\"" + requestURL + "/" + name + ".das" + "\">das</a> "+ "<a href=\"" + requestURL + "/" + name + ".info" + "\">info</a> "+ "<a href=\"" + requestURL + "/" + name + ".html" + "\">html</a> "; size = computeSizeString(size); } pw.print("<A HREF=\""); pw.print(link); pw.print("\">" + name + "</a>" + getWhiteSpacePadding(name,headerSpace)); pw.print(lastModified); pw.print(" " + size); pw.print(responseLinks); pw.print("\n"); } printHTMLFooter(pw); pw.flush(); } | 1283 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1283/0c547718a34127a8728d7fdcc6cd65e3912be445/S4Dir.java/clean/src/opendap/olfs/S4Dir.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1366,
4537,
12,
2940,
18572,
590,
16,
1171,
9079,
12446,
766,
16,
1171,
9079,
17945,
1119,
3597,
13,
5411,
1216,
463,
1212,
55,
503,
16,
453,
1856,
503,
16,
804,
8168,
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,
918,
1366,
4537,
12,
2940,
18572,
590,
16,
1171,
9079,
12446,
766,
16,
1171,
9079,
17945,
1119,
3597,
13,
5411,
1216,
463,
1212,
55,
503,
16,
453,
1856,
503,
16,
804,
8168,
5... |
private TrustSet[] outgoingTrust(Message msg){ TrustSet[] set = new TrustSet[1]; TrustSet policySet; try { policySet = acps.getOutgoingTrust (msg.getOriginator().toString(), msg.getTarget().toString()); } catch(Exception ex) { System.out.println("Warning: no msg outgoing trust for type = " + msg.getClass()); return null; } if(policySet!=null){ set[0] = policySet; } if(msg instanceof DirectiveMessage) { Directive directive[] = ((DirectiveMessage)msg).getDirectives(); set = new TrustSet[directive.length+1]; set[0] = policySet; TrustSet policy; for(int i = 0; i < directive.length; i++) { policy = acps.getOutgoingTrust (directive[i].getSource().toString(), directive[i].getDestination().toString()); if(set[i+1] == null){ set[i+1] = policy; }else{ if(directive[i] instanceof Task) { Task task = (Task)directive[i];// if(matchOutVerb(task.getDestination().toString(),// task.getSource().toString(),// task.getVerb())) { set[i+1] = policy;// } else {// compare(set[i+1], policy);// } } else compare(set[i+1], policy); } } } return set; } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/dc9fd5855e50eaadd5520fad9ce9335764830777/SecurityAspect.java/buggy/securityservices/src/com/nai/security/crypto/SecurityAspect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
14146,
694,
8526,
31891,
14146,
12,
49,
403,
346,
351,
1055,
15329,
14146,
694,
8526,
542,
33,
2704,
14146,
694,
63,
21,
15533,
14146,
694,
5086,
694,
31,
698,
95,
202,
5086,
694,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14146,
694,
8526,
31891,
14146,
12,
49,
403,
346,
351,
1055,
15329,
14146,
694,
8526,
542,
33,
2704,
14146,
694,
63,
21,
15533,
14146,
694,
5086,
694,
31,
698,
95,
202,
5086,
694,
33,
... | ||
private boolean allPlaced(Vector rings) { for (int f = 0; f < rings.size(); f++) { if (!((Ring)rings.elementAt(f)).flags[CDKConstants.ISPLACED]) { | private boolean allPlaced(Vector rings) { for (int f = 0; f < rings.size(); f++) { if (!((Ring)rings.elementAt(f)).flags[CDKConstants.ISPLACED]) { | private boolean allPlaced(Vector rings) { for (int f = 0; f < rings.size(); f++) { if (!((Ring)rings.elementAt(f)).flags[CDKConstants.ISPLACED]) { logger.debug("allPlaced->Ring " + f + " not placed"); return false; } } return true; } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/0207507cbcff0172e0dc48407a71dcf4d56c8695/StructureDiagramGenerator.java/buggy/src/org/openscience/cdk/layout/StructureDiagramGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
777,
6029,
72,
12,
5018,
26537,
13,
202,
95,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
26537,
18,
1467,
5621,
284,
27245,
202,
202,
95,
1082,
202,
430,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
777,
6029,
72,
12,
5018,
26537,
13,
202,
95,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
26537,
18,
1467,
5621,
284,
27245,
202,
202,
95,
1082,
202,
430,
1... |
boolean multiFile = (bundles.length > 2); | private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); out.print("<table align=center class=\"miscTable\"><tr>"); out.println("<td class=evenRowEvenCol><P><strong>Files in This Item:</strong></P>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<P>There are no files associated with this item.</P>"); } else { // if item contains multiple non-license bundles, display bitstream description boolean multiFile = (bundles.length > 2); boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs= item.getBundles("THUMBNAIL"); // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; i < bits.length && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals("text/html"); primaryBitstream = bits[i]; } } } out.println("<table cellpadding=6><tr><th class=\"standard\">File</th>"); if (multiFile) { out.println("<th class=\"standard\">Description</th>"); } out.println("<th class=\"standard\">Size</th class=\"standard\"><th class=\"standard\">Format</th></tr>"); // if primary bitstream is html, display a link for only that one to HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print(desc != null ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out.print("</td><td class=\"standard\"><A TARGET=_blank HREF=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(URLEncoder.encode(primaryBitstream.getName())); out.print("\">View/Open</A></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length ; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print(desc != null ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out.print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be (persistent ID if item has Handle) String bsLink = "<A TARGET=_blank HREF=\"" + request.getContextPath(); if (handle != null && bitstreams[k].getSequenceID() > 0) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + URLEncoder.encode(bitstreams[k].getName()) + "\">"; // is there a thumbnail bundle? if(thumbs.length > 0) { String tName = bitstreams[k].getName()+".jpg"; Bitstream tb = thumbs[0].getBitstreamByName(tName); if( tb != null ) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + URLEncoder.encode(tb.getName()); out.print(bsLink); out.print("<img src=\""+ myPath + "\" "); out.print("alt=\"" + tName + "\"></A><BR>"); } } out.print(bsLink + "View/Open</A></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/28ca6b34b92eee92e74215b1b1eaffcf832232af/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
5775,
16320,
1435,
565,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
5775,
16320,
1435,
565,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
69... | |
assertEquals("domain1", ((EventType)_receiver.addedOffers.get(0)).domain_name); assertEquals("type1", ((EventType)_receiver.addedOffers.get(0)).type_name); | assertEquals("domain1", ((EventType) _receiver.addedOffers.get(0)).domain_name); assertEquals("type1", ((EventType) _receiver.addedOffers.get(0)).type_name); | public void testObtainOfferedTypes_NONE_NOW_UPDATES_ON() throws Exception { StructuredPushSender _sender = new StructuredPushSender(this, testEvent_); StructuredPushReceiver _receiver = new StructuredPushReceiver(this); _sender.connect(channel_, false); _receiver.connect(channel_, false); _receiver.pushSupplier_.obtain_offered_types(ObtainInfoMode.NONE_NOW_UPDATES_ON); EventType[] offers = new EventType[] {new EventType("domain1", "type1")}; _sender.pushConsumer_.offer_change(offers, EMPTY_EVENT_TYPE); Thread.sleep(1000); assertEquals(1, _receiver.addedOffers.size()); assertEquals("domain1", ((EventType)_receiver.addedOffers.get(0)).domain_name); assertEquals("type1", ((EventType)_receiver.addedOffers.get(0)).type_name); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b2aa91a672be3f8bd14c3402b93d9a1d919f304c/StructuredEventChannelTest.java/clean/test/regression/src/org/jacorb/test/notification/StructuredEventChannelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
20019,
10513,
329,
2016,
67,
9826,
67,
27091,
67,
8217,
55,
67,
673,
1435,
1216,
1185,
288,
3639,
7362,
2862,
7621,
12021,
389,
15330,
273,
394,
7362,
2862,
7621,
12021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20019,
10513,
329,
2016,
67,
9826,
67,
27091,
67,
8217,
55,
67,
673,
1435,
1216,
1185,
288,
3639,
7362,
2862,
7621,
12021,
389,
15330,
273,
394,
7362,
2862,
7621,
12021,
... |
Enum enum = (Enum) findEnum(validValues, enumName); return enum == null ? null : enum.toString(); | Enum en = (Enum) findEnum(validValues, enumName); return en == null ? null : en.toString(); | protected String getStringObject(String enumName) { Enum enum = (Enum) findEnum(validValues, enumName); return enum == null ? null : enum.toString(); } public static ScriptType fromString (String enumName) { return (ScriptType) findEnum(validValues, enumName); } | 10685 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10685/aaf205c9a4e7b69cb44c9956939cb621aa45e2d0/Enum.java/clean/aggagent/src/org/cougaar/lib/aggagent/util/Enum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
4997,
921,
12,
780,
2792,
461,
13,
565,
288,
1377,
6057,
2792,
273,
261,
3572,
13,
1104,
3572,
12,
877,
1972,
16,
2792,
461,
1769,
1377,
327,
2792,
422,
446,
692,
446,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
4997,
921,
12,
780,
2792,
461,
13,
565,
288,
1377,
6057,
2792,
273,
261,
3572,
13,
1104,
3572,
12,
877,
1972,
16,
2792,
461,
1769,
1377,
327,
2792,
422,
446,
692,
446,
294,
... |
iVisited.accept(_Payload); | _Payload.visitBlockArgNode(iVisited); | public void visitBlockArgNode(BlockArgNode iVisited) { iVisited.accept(_Payload); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/clean/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1768,
4117,
907,
12,
1768,
4117,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1768,
4117,
907,
12,
1768,
4117,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
switchOffsets = getSwitchOffsets(); switchLabels = getSwitchLabels(); | public void sawOpcode(int seen) { int[] switchOffsets = null; int[] switchLabels = null; switch (seen) { case TABLESWITCH: case LOOKUPSWITCH: switchPC = getPC(); switchOffsets = getSwitchOffsets(); switchLabels = getSwitchLabels(); inSwitch = true; reachable = false; nextIndex = 0; break; default: } if (inSwitch && nextIndex >= switchOffsets.length) inSwitch = false; if (inSwitch) { if (getPC() == switchPC + switchOffsets[nextIndex] && switchOffsets[nextIndex] != getDefaultSwitchOffset() ) { if (nextIndex > 0 && reachable) { int endOfPreviousCase = lineNumbers.getSourceLine(getPC() - 1); int startOfNextCase = lineNumbers.getSourceLine(getPC()); int previousLabel = switchLabels[nextIndex - 1]; int nextLabel = switchLabels[nextIndex]; if (!(previousLabel == 10 && nextLabel == 13) && !(previousLabel == 13 && nextLabel == 10) && startOfNextCase - endOfPreviousCase <= 2) { System.out.println("Reached the switch for " + switchLabels[nextIndex] + " at line number " + startOfNextCase + " in " + getFullyQualifiedMethodName()); } /* System.out.println("switchPC: " + switchPC); System.out.println("nextIndex: " + nextIndex); System.out.println("switchOffset[nextIndex]: " + switchOffsets[nextIndex]); for(int i = 0; i < switchOffsets.length; i++) System.out.println(" " + switchLabels[i] + " " + (switchPC + switchOffsets[i])); */ } do { nextIndex++; if (nextIndex >= switchOffsets.length) { inSwitch = false; break; } } while (getPC() == switchPC + switchOffsets[nextIndex]); } } switch (seen) { case TABLESWITCH: case LOOKUPSWITCH: case ATHROW: case RETURN: case ARETURN: case IRETURN: case LRETURN: case DRETURN: case FRETURN: case GOTO_W: case GOTO: reachable = false; break; default: reachable = true; } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/6d70bd9a89bdc9e3f750cca00635d7ff7180c1d4/SwitchFallthrough.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/SwitchFallthrough.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
474,
8526,
1620,
13830,
273,
446,
31,
202,
202,
474,
8526,
1620,
5888,
273,
446,
31,
202,
202,
9610,
261,
15156,
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,
225,
202,
482,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
474,
8526,
1620,
13830,
273,
446,
31,
202,
202,
474,
8526,
1620,
5888,
273,
446,
31,
202,
202,
9610,
261,
15156,
13,
288,
... | |
CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXT, | CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LABEL, TOOL_TIP_LABEL_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_LABEL, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LABEL ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ), new LabelToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXT, | private static PaletteContainer createContentCategory( ) { PaletteCategory category = new PaletteCategory( IPreferenceConstants.PALETTE_CONTENT, CONTENTS_LABEL, null ); List entries = new ArrayList( ); CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXT, TOOL_TIP_TEXT_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_TEXT, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TEXT ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ), new TextToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LABEL, TOOL_TIP_LABEL_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_LABEL, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LABEL ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ), new LabelToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_DATA, TOOL_TIP_DATA_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_DATA, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_DATA ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ), new DataToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_IMAGE, TOOL_TIP_IMAGE_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_IMAGE, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_IMAGE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_IMAGE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_IMAGE ), new ImageToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_GRID, TOOL_TIP_GRID_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_GRID, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_GRID ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_GRID ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_GRID ), new GridToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LIST, TOOL_TIP_LIST_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_LIST, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LIST ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LIST ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LIST ), new ListToolExtends( ) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TABLE, TOOL_TIP_TABLE_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_TABLE, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TABLE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TABLE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TABLE ), new TableToolExtends( ) ); entries.add( combined ); category.addAll( entries ); return category; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9aa585f3b2eb65e8ec5a78c2a773a1c399b937c1/DesignerPaletteFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/DesignerPaletteFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
453,
8786,
2170,
752,
1350,
4457,
12,
262,
202,
95,
202,
202,
25863,
4457,
3150,
273,
394,
453,
8786,
4457,
12,
467,
9624,
2918,
18,
4066,
15146,
1448,
67,
9689,
16,
950... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
453,
8786,
2170,
752,
1350,
4457,
12,
262,
202,
95,
202,
202,
25863,
4457,
3150,
273,
394,
453,
8786,
4457,
12,
467,
9624,
2918,
18,
4066,
15146,
1448,
67,
9689,
16,
950... |
this.project = project; | this.project = project.duplicate(); | public FindBugs(BugReporter bugReporter, Project project) { if (bugReporter == null) throw new IllegalArgumentException("null bugReporter"); if (project == null) throw new IllegalArgumentException("null project"); this.bugReporter = new ErrorCountingBugReporter(bugReporter); this.project = project; this.classObserverList = new LinkedList<ClassObserver>(); // Create a no-op progress callback. this.progressCallback = new FindBugsProgress() { public void reportNumberOfArchives(int numArchives) { } public void finishArchive() { } public void startAnalysis(int numClasses) { } public void finishClass() { } public void finishPerClassAnalysis() { } }; // Class screener this.classScreener = new ClassScreener(); addClassObserver(bugReporter); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/15b3fbd22ffdbdca8e5a273efdda895c4a8f2270/FindBugs.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4163,
31559,
12,
19865,
13289,
7934,
13289,
16,
5420,
1984,
13,
288,
202,
202,
430,
261,
925,
13289,
422,
446,
13,
1082,
202,
12849,
394,
2754,
2932,
2011,
7934,
13289,
8863,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4163,
31559,
12,
19865,
13289,
7934,
13289,
16,
5420,
1984,
13,
288,
202,
202,
430,
261,
925,
13289,
422,
446,
13,
1082,
202,
12849,
394,
2754,
2932,
2011,
7934,
13289,
8863,
20... |
assertNull("No errors should be found.", ctx.getValidationError().getValue()); | assertNoErrorsFound(); | public void testObjectToShortPrimitiveConverter() { ctx.bindValue(BeansObservables.observeValue(dataObject, "objectVal"), BeansObservables.observeValue(dataObject, "shortPrimitiveVal"), null); dataObject.setShortPrimitiveVal((short) 110); assertEquals("short value does not match", 110, dataObject.getShortPrimitiveVal()); assertEquals("Object value does not match", new Short((short) 110), dataObject.getObjectVal()); assertNull("No errors should be found.", ctx.getValidationError().getValue()); dataObject.setObjectVal(new Short((short) 70)); assertEquals("short value does not match", 70, dataObject.getShortPrimitiveVal()); assertEquals("Object value does not match", new Short((short) 70), dataObject.getObjectVal()); assertNull("No errors should be found.", ctx.getValidationError().getValue()); dataObject.setObjectVal(null); assertEquals("short value does not match", 70, dataObject.getShortPrimitiveVal()); assertNull("Object value does not match", dataObject.getObjectVal()); assertNotNull("Errors should be found.", ctx.getValidationError().getValue()); Object object = new Object(); dataObject.setObjectVal(object); assertEquals("short value does not match", 70, dataObject.getShortPrimitiveVal()); assertSame("Object value does not match", object, dataObject.getObjectVal()); assertNotNull("Errors should be found.", ctx.getValidationError().getValue()); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/646de6c1228ca0820a97e225df84d75e3993e272/DefaultBindSupportFactoryShortPrimitiveTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/internal/databinding/provisional/factories/DefaultBindSupportFactoryShortPrimitiveTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
921,
774,
4897,
9840,
5072,
1435,
288,
3639,
1103,
18,
4376,
620,
12,
14495,
26199,
1538,
18,
12199,
537,
620,
12,
892,
921,
16,
315,
1612,
3053,
6,
3631,
4823,
634,
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,
1071,
918,
1842,
921,
774,
4897,
9840,
5072,
1435,
288,
3639,
1103,
18,
4376,
620,
12,
14495,
26199,
1538,
18,
12199,
537,
620,
12,
892,
921,
16,
315,
1612,
3053,
6,
3631,
4823,
634,
26... |
String urlArg =(0 < arg.length) ? arg[0] : "http: | if (1 > arg.length) { printUsage(); System.exit(-1); } String urlArg =(2 == arg.length) ? arg[1] : "http: | public static void main (String[] arg) { String urlArg =(0 < arg.length) ? arg[0] : "http://www.mozilla.org/"; EmbeddedMozilla gecko = new EmbeddedMozilla("Embedded Mozilla", urlArg); } // main() | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/a8e9d5219a8efee08ea2ac19910d03dcb8870b8f/EmbeddedMozilla.java/clean/java/webclient/classes/org/mozilla/webclient/test/EmbeddedMozilla.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
8526,
1501,
13,
288,
202,
202,
780,
880,
4117,
273,
12,
20,
411,
1501,
18,
2469,
13,
692,
1501,
63,
20,
65,
294,
315,
2505,
2207,
5591,
18,
8683,
15990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
261,
780,
8526,
1501,
13,
288,
202,
202,
780,
880,
4117,
273,
12,
20,
411,
1501,
18,
2469,
13,
692,
1501,
63,
20,
65,
294,
315,
2505,
2207,
5591,
18,
8683,
15990... |
return null; | ClassDescriptor classDescriptor = new ClassDescriptor(javaClass.getClassName()); try { return Global.getAnalysisCache().getClassAnalysis(ClassContext.class, classDescriptor); } catch (CheckedAnalysisException e) { throw new IllegalStateException("Could not get ClassContext for JavaClass", e); } | public ClassContext getClassContext(JavaClass javaClass) { // TODO return null; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/59b6ca97b8cf6c23057cab1520202391cede6a2f/AnalysisCacheToAnalysisContextAdapter.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/AnalysisCacheToAnalysisContextAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1659,
1042,
2900,
1042,
12,
5852,
797,
2252,
797,
13,
288,
202,
202,
759,
2660,
3196,
202,
2463,
446,
31,
202,
97,
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,
225,
202,
482,
1659,
1042,
2900,
1042,
12,
5852,
797,
2252,
797,
13,
288,
202,
202,
759,
2660,
3196,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
jjCheckNAddStates(68, 70); | jjCheckNAddStates(89, 91); | 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/8e9e155e88430402b0d51d6b344267b73292ca2c/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,... |
public <T extends IObject> Map findAnnotations( | public <T extends IObject> Map<Long, Set<? extends IObject>> findAnnotations( | public <T extends IObject> Map findAnnotations( @NotNull Class<T> rootNodeType, @NotNull @Validate(Long.class) Set<Long> rootNodeIds, @Validate(Long.class) Set<Long> annotatorIds, Map options); | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/dc049d0769f78d30527024bfadfcc7adcbdc82cb/IPojos.java/buggy/components/common/src/ome/api/IPojos.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
411,
56,
3231,
467,
921,
34,
1635,
32,
3708,
16,
1000,
12880,
3231,
467,
921,
9778,
1104,
5655,
12,
5411,
632,
5962,
1659,
32,
56,
34,
10181,
559,
16,
2398,
632,
5962,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
411,
56,
3231,
467,
921,
34,
1635,
32,
3708,
16,
1000,
12880,
3231,
467,
921,
9778,
1104,
5655,
12,
5411,
632,
5962,
1659,
32,
56,
34,
10181,
559,
16,
2398,
632,
5962,
632,
... |
mergeJob.setInputKeyClass(IntWritable.class); mergeJob.setInputValueClass(IntWritable.class); | public static void launch() throws Exception { // // Generate distribution of ints. This is the answer key. // int countsToGo = counts; int dist[] = new int[range]; for (int i = 0; i < range; i++) { double avgInts = (1.0 * countsToGo) / (range - i); dist[i] = (int) Math.max(0, Math.round(avgInts + (Math.sqrt(avgInts) * r.nextGaussian()))); countsToGo -= dist[i]; } if (countsToGo > 0) { dist[dist.length-1] += countsToGo; } // // Write the answer key to a file. // FileSystem fs = FileSystem.get(conf); Path testdir = new Path("mapred.loadtest"); fs.mkdirs(testdir); Path randomIns = new Path(testdir, "genins"); fs.mkdirs(randomIns); Path answerkey = new Path(randomIns, "answer.key"); SequenceFile.Writer out = new SequenceFile.Writer(fs, answerkey, IntWritable.class, IntWritable.class); try { for (int i = 0; i < range; i++) { out.append(new IntWritable(i), new IntWritable(dist[i])); } } finally { out.close(); } // // Now we need to generate the random numbers according to // the above distribution. // // We create a lot of map tasks, each of which takes at least // one "line" of the distribution. (That is, a certain number // X is to be generated Y number of times.) // // A map task emits Y key/val pairs. The val is X. The key // is a randomly-generated number. // // The reduce task gets its input sorted by key. That is, sorted // in random order. It then emits a single line of text that // for the given values. It does not emit the key. // // Because there's just one reduce task, we emit a single big // file of random numbers. // Path randomOuts = new Path(testdir, "genouts"); fs.delete(randomOuts); JobConf genJob = new JobConf(conf); genJob.setInputPath(randomIns); genJob.setInputKeyClass(IntWritable.class); genJob.setInputValueClass(IntWritable.class); genJob.setInputFormat(SequenceFileInputFormat.class); genJob.setMapperClass(RandomGenMapper.class); genJob.setOutputPath(randomOuts); genJob.setOutputKeyClass(IntWritable.class); genJob.setOutputValueClass(IntWritable.class); genJob.setOutputFormat(TextOutputFormat.class); genJob.setReducerClass(RandomGenReducer.class); genJob.setNumReduceTasks(1); JobClient.runJob(genJob); // // Next, we read the big file in and regenerate the // original map. It's split into a number of parts. // (That number is 'intermediateReduces'.) // // We have many map tasks, each of which read at least one // of the output numbers. For each number read in, the // map task emits a key/value pair where the key is the // number and the value is "1". // // We have a single reduce task, which receives its input // sorted by the key emitted above. For each key, there will // be a certain number of "1" values. The reduce task sums // these values to compute how many times the given key was // emitted. // // The reduce task then emits a key/val pair where the key // is the number in question, and the value is the number of // times the key was emitted. This is the same format as the // original answer key (except that numbers emitted zero times // will not appear in the regenerated key.) The answer set // is split into a number of pieces. A final MapReduce job // will merge them. // // There's not really a need to go to 10 reduces here // instead of 1. But we want to test what happens when // you have multiple reduces at once. // int intermediateReduces = 10; Path intermediateOuts = new Path(testdir, "intermediateouts"); fs.delete(intermediateOuts); JobConf checkJob = new JobConf(conf); checkJob.setInputPath(randomOuts); checkJob.setInputFormat(TextInputFormat.class); checkJob.setMapperClass(RandomCheckMapper.class); checkJob.setOutputPath(intermediateOuts); checkJob.setOutputKeyClass(IntWritable.class); checkJob.setOutputValueClass(IntWritable.class); checkJob.setOutputFormat(SequenceFileOutputFormat.class); checkJob.setReducerClass(RandomCheckReducer.class); checkJob.setNumReduceTasks(intermediateReduces); JobClient.runJob(checkJob); // // OK, now we take the output from the last job and // merge it down to a single file. The map() and reduce() // functions don't really do anything except reemit tuples. // But by having a single reduce task here, we end up merging // all the files. // Path finalOuts = new Path(testdir, "finalouts"); fs.delete(finalOuts); JobConf mergeJob = new JobConf(conf); mergeJob.setInputPath(intermediateOuts); mergeJob.setInputKeyClass(IntWritable.class); mergeJob.setInputValueClass(IntWritable.class); mergeJob.setInputFormat(SequenceFileInputFormat.class); mergeJob.setMapperClass(MergeMapper.class); mergeJob.setOutputPath(finalOuts); mergeJob.setOutputKeyClass(IntWritable.class); mergeJob.setOutputValueClass(IntWritable.class); mergeJob.setOutputFormat(SequenceFileOutputFormat.class); mergeJob.setReducerClass(MergeReducer.class); mergeJob.setNumReduceTasks(1); JobClient.runJob(mergeJob); // // Finally, we compare the reconstructed answer key with the // original one. Remember, we need to ignore zero-count items // in the original key. // boolean success = true; Path recomputedkey = new Path(finalOuts, "part-00000"); SequenceFile.Reader in = new SequenceFile.Reader(fs, recomputedkey, conf); int totalseen = 0; try { IntWritable key = new IntWritable(); IntWritable val = new IntWritable(); for (int i = 0; i < range; i++) { if (dist[i] == 0) { continue; } if (! in.next(key, val)) { System.err.println("Cannot read entry " + i); success = false; break; } else { if ( !((key.get() == i ) && (val.get() == dist[i]))) { System.err.println("Mismatch! Pos=" + key.get() + ", i=" + i + ", val=" + val.get() + ", dist[i]=" + dist[i]); success = false; } totalseen += val.get(); } } if (success) { if (in.next(key, val)) { System.err.println("Unnecessary lines in recomputed key!"); success = false; } } } finally { in.close(); } int originalTotal = 0; for (int i = 0; i < dist.length; i++) { originalTotal += dist[i]; } System.out.println("Original sum: " + originalTotal); System.out.println("Recomputed sum: " + totalseen); // // Write to "results" whether the test succeeded or not. // Path resultFile = new Path(testdir, "results"); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fs.create(resultFile))); try { bw.write("Success=" + success + "\n"); System.out.println("Success=" + success); } finally { bw.close(); } fs.delete(testdir); } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/48264173e88fdcd9b42c4d801117c3b7cb289242/TestMapRed.java/clean/src/test/org/apache/hadoop/mapred/TestMapRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
8037,
1435,
1216,
1185,
288,
3639,
368,
3639,
368,
6654,
7006,
434,
15542,
18,
225,
1220,
353,
326,
5803,
498,
18,
3639,
368,
3639,
509,
6880,
28302,
273,
6880,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
8037,
1435,
1216,
1185,
288,
3639,
368,
3639,
368,
6654,
7006,
434,
15542,
18,
225,
1220,
353,
326,
5803,
498,
18,
3639,
368,
3639,
509,
6880,
28302,
273,
6880,
31,
3639,
... | |
if ( event.getPropertyName( ).equals( StyleHandle.PADDING_TOP_PROP ) | if ( event.getPropertyName( ) .equals( StyleHandle.PADDING_TOP_PROP ) | public void elementChanged( DesignElementHandle focus, NotificationEvent ev ) { if ( !isActive( ) ) { return; } switch ( ev.getEventType( ) ) { case NotificationEvent.CONTENT_EVENT : { markDirty( true ); if ( focus instanceof TableHandle || focus instanceof TableGroupHandle ) { addListenerToChildren( ); } refreshChildren( ); refreshVisuals( ); if ( ( (ContentEvent) ev ).getAction( ) == ContentEvent.REMOVE ) { //this.getViewer( ).select( this ); reselectTable(); } break; } case NotificationEvent.PROPERTY_EVENT : { markDirty( true ); reLayout( ); PropertyEvent event = (PropertyEvent) ev; if ( event.getPropertyName( ).startsWith( "border" ) )//$NON-NLS-1$ { refreshVisuals( ); } if ( event.getPropertyName( ).equals( StyleHandle.PADDING_TOP_PROP ) || event.getPropertyName( ) .equals( StyleHandle.PADDING_BOTTOM_PROP ) || event.getPropertyName( ) .equals( StyleHandle.PADDING_LEFT_PROP ) || event.getPropertyName( ) .equals( StyleHandle.PADDING_RIGHT_PROP ) ) { invalidParent( ); } if ( event.getPropertyName( ).equals( ReportItemHandle.WIDTH_PROP ) || event.getPropertyName( ) .equals( ReportItemHandle.HEIGHT_PROP ) ) { invalidParent( ); } refresh( ); break; } case NotificationEvent.ELEMENT_DELETE_EVENT : case NotificationEvent.LAYOUT_CHANGED_EVENT : { markDirty( true ); refresh( ); break; } case NotificationEvent.STYLE_EVENT : { markDirty( true ); invalidParent( ); refresh( ); } default : break; } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2fb414324feef970747b41ab61dd51a84da876e3/TableEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/TableEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
430,
261,
401,
291,
3896,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
430,
261,
401,
291,
3896,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
20... |
return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); List result = new ArrayList(); HashSet emitted = all ? null : new HashSet(); for (int i = 0; i < members.size(); i++) { Object o = members.get(i); if (o instanceof Member) { evaluator.setContext((Member) o); } else { evaluator.setContext((Member[]) o); } final List result2 = (List) args[1].evaluate(evaluator); if (all) { result.addAll(result2); } else { for (int j = 0; j < result2.size(); j++) { Object row = result2.get(j); if (emitted.add(row)) { result.add(row); } } } } return result; } }; | return new IntersectFunDef(dummyFunDef, all); | protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { final boolean all = getLiteralArg(args, 2, "", new String[] {"ALL"}, dummyFunDef).equalsIgnoreCase("ALL"); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); List result = new ArrayList(); HashSet emitted = all ? null : new HashSet(); for (int i = 0; i < members.size(); i++) { Object o = members.get(i); if (o instanceof Member) { evaluator.setContext((Member) o); } else { evaluator.setContext((Member[]) o); } final List result2 = (List) args[1].evaluate(evaluator); if (all) { result.addAll(result2); } else { for (int j = 0; j < result2.size(); j++) { Object row = result2.get(j); if (emitted.add(row)) { result.add(row); } } } } return result; } }; } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/3041f930b5fc4bf6aa3339845b828801c1d8b366/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
478,
318,
3262,
752,
22783,
3262,
12,
2966,
8526,
833,
16,
478,
318,
3262,
9609,
22783,
3262,
13,
288,
7734,
727,
1250,
777,
273,
336,
6177,
4117,
12,
1968,
16,
576,
16,
23453,
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,
2398,
4750,
478,
318,
3262,
752,
22783,
3262,
12,
2966,
8526,
833,
16,
478,
318,
3262,
9609,
22783,
3262,
13,
288,
7734,
727,
1250,
777,
273,
336,
6177,
4117,
12,
1968,
16,
576,
16,
23453,
3... |
protected void aboutToLaunch(final String message) { String msg = ResourceUtil.getFormattedString("TestRunnerViewPart.message.launching", message); //$NON-NLS-1$// setInfoMessage(msg); firePropertyChange(IWorkbenchPart.PROP_TITLE); } | 52916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52916/939c2626f5ef7c6550d3a506ac6dd14b7667f498/TestRunnerViewPart.java/clean/src/main/org/testng/eclipse/ui/TestRunnerViewPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
21071,
774,
9569,
12,
6385,
780,
2150,
15329,
780,
3576,
33,
1420,
1304,
18,
588,
18298,
780,
2932,
4709,
9709,
1767,
1988,
18,
2150,
18,
20738,
310,
3113,
2150,
1769,
759,
8,
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,
4750,
6459,
21071,
774,
9569,
12,
6385,
780,
2150,
15329,
780,
3576,
33,
1420,
1304,
18,
588,
18298,
780,
2932,
4709,
9709,
1767,
1988,
18,
2150,
18,
20738,
310,
3113,
2150,
1769,
759,
8,
3993... | ||
result = (byte[])variant.get(0); | result = (String)variant.get(0); | public byte[] getContent(CmsElementCache elementCache, CmsObject cms, CmsElementDefinitionCollection elDefs, String elementName, Hashtable parameters, String methodParameter) throws CmsException { byte[] result = null; // get our own cache directives A_CmsCacheDirectives cd = getCacheDirectives(); // streaming boolean streamable = cms.getRequestContext().isStreaming(); // cacheKey with the methodeParameter so we have variantes for each parameter String cacheKey = cd.getCacheKey(cms, parameters); if (cacheKey != null){ cacheKey += methodParameter; } CmsElementVariant variant = null; if(cd.isInternalCacheable()){ if(cd.isTimeCritical() && (m_timestamp < cd.getTimeout().getLastChange())){ clearVariantCache(); }else{ variant = getVariant(cacheKey); } if(variant != null){ result = (byte[])variant.get(0); } } if(variant == null){ // this methode was not found in the variant cache // we have to generate it by calling the methode in the template class // Get template class. I_CmsTemplate templateClass = null; try { templateClass = getTemplateClass(cms, m_className); } catch(Throwable e) { if(com.opencms.core.I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_CRITICAL, toString() + " Could not load my template class \"" + m_className + "\". "); A_OpenCms.log(C_OPENCMS_CRITICAL, e.toString()); return e.toString().getBytes(); } } // now call the method Object methodResult = null; try{ methodResult = templateClass.getClass().getMethod(m_methodName, new Class[] { CmsObject.class, String.class, A_CmsXmlContent.class, Object.class}).invoke(templateClass, new Object[] {cms, methodParameter, null, parameters}); }catch(NoSuchMethodException exc) { throwException("[CmsMethodElemtent] User method " + m_methodName + " was not found in class " + templateClass.getClass().getName() + ".", CmsException.C_XML_NO_USER_METHOD); }catch(InvocationTargetException targetEx) { // the method could be invoked, but throwed a exception // itself. Get this exception and throw it again. Throwable e = targetEx.getTargetException(); if(!(e instanceof CmsException)) { // Only print an error if this is NO CmsException throwException("User method " + m_methodName + " throwed an exception. " + e, CmsException.C_UNKNOWN_EXCEPTION); }else { // This is a CmsException // Error printing should be done previously. throw (CmsException)e; } }catch(Exception exc2) { throwException("User method " + m_methodName + " was found but could not be invoked. " + exc2, CmsException.C_XML_NO_USER_METHOD); } if(methodResult != null){ if(methodResult instanceof String){ //Gridnine AB Aug 7, 2002 try { result = ((String)methodResult).getBytes( cms.getRequestContext().getEncoding()); } catch (UnsupportedEncodingException uee) { throw new CmsException(CmsException.C_LAUNCH_ERROR, uee); } }else if(methodResult instanceof byte[]){ result = (byte[])methodResult; }else if(methodResult instanceof Integer){ result = ((Integer)methodResult).toString().getBytes(); }else if(methodResult instanceof CmsProcessedString){ // result stays null but we have to write to the variant cache variant = new CmsElementVariant(); //Gridnine AB Aug 5, 2002 variant.add(((CmsProcessedString)methodResult).toString()); addVariant(cacheKey, variant); }else { throwException("User method " + m_methodName + " in class " + templateClass.getClass().getName() + " returned an unsupported Object: " + methodResult.getClass().getName(), CmsException.C_XML_PROCESS_ERROR); } } if((result != null)&&(cacheKey != null)&&(cd.isInternalCacheable())){ variant = new CmsElementVariant(); //Gridnine AB Aug 5, 2002 variant.add(result, cms.getRequestContext().getEncoding()); addVariant(cacheKey, variant); } } if(streamable) { try { cms.getRequestContext().getResponse().getOutputStream().write(result); } catch(Exception e) { if(com.opencms.core.I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(C_OPENCMS_CRITICAL, this.toString() + " Error while streaming!"); } } result = null; } return result; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/22722cf6710dc0cc05628e12c18ae7a3572cca10/CmsMethodElement.java/buggy/src/com/opencms/template/cache/CmsMethodElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
1046,
1649,
930,
1649,
16,
14371,
6166,
16,
2149,
1046,
1852,
2532,
415,
14554,
16,
514,
14453,
16,
18559,
1472,
16,
514,
707,
1662,
13,
1216,
11228,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
5154,
12,
4747,
1046,
1649,
930,
1649,
16,
14371,
6166,
16,
2149,
1046,
1852,
2532,
415,
14554,
16,
514,
14453,
16,
18559,
1472,
16,
514,
707,
1662,
13,
1216,
11228,
225... |
System.out.println("<IC>: traverseUnique(\""+uelem.getNodeName()+"\")"); | System.out.println("<IC>: traverseUnique(\""+uelem.getNodeName()+"\") ["+uname+']'); | private void traverseUnique(Element uelem, XMLElementDecl edecl) throws Exception { // create identity constraint if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: traverseUnique(\""+uelem.getNodeName()+"\")"); } String ename = getElementNameFor(uelem); Unique unique = new Unique(ename); // get selector and fields traverseIdentityConstraint(unique, uelem); // add to element decl edecl.unique.addElement(unique); } // traverseUnique(Element,XMLElementDecl) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/e89a9e0cce9f87433bc35a22ba37ca71c145a6f6/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
6303,
12,
1046,
582,
10037,
16,
1139,
11155,
3456,
425,
8840,
13,
540,
1216,
1185,
288,
3639,
368,
752,
4215,
4954,
3639,
309,
261,
9394,
67,
29413,
67,
15199,
55,
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,
3238,
918,
10080,
6303,
12,
1046,
582,
10037,
16,
1139,
11155,
3456,
425,
8840,
13,
540,
1216,
1185,
288,
3639,
368,
752,
4215,
4954,
3639,
309,
261,
9394,
67,
29413,
67,
15199,
55,
13,
... |
Table table = simpleValue.getTable(); | private static void bindSimpleValue(GrailsDomainClassProperty grailsProp, SimpleValue simpleValue,Mappings mappings) { // set type simpleValue.setTypeName(grailsProp.getType().getName()); Column column = new Column(); column.setValue(simpleValue); bindColumn(grailsProp, column); Table table = simpleValue.getTable(); if(table != null) table.addColumn(column); simpleValue.addColumn(column); } | 51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/c2697e297cf4ea4d41820d17d78fa6c08272c413/GrailsDomainBinder.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1388,
1014,
273,
4143,
620,
18,
588,
1388,
5621,
760,
1388,
1014,
273,
4143,
620,
18,
588,
1388,
5621,
918,
1388,
1014,
273,
4143,
620,
18,
588,
1388,
5621,
1993,
5784,
620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1388,
1014,
273,
4143,
620,
18,
588,
1388,
5621,
760,
1388,
1014,
273,
4143,
620,
18,
588,
1388,
5621,
918,
1388,
1014,
273,
4143,
620,
18,
588,
1388,
5621,
1993,
5784,
620,
... | |
priority = toCopy.getAttribute(IMarker.PRIORITY, IMarker.PRIORITY_NORMAL); done = -1; if (toCopy.getAttribute(IMarker.USER_EDITABLE, true)) { done = 0; if (toCopy.getAttribute(IMarker.DONE, false)) { done = 1; } } | public TaskMarker(IMarker toCopy) { super(toCopy); priority = toCopy.getAttribute(IMarker.PRIORITY, IMarker.PRIORITY_NORMAL); done = -1; if (toCopy.getAttribute(IMarker.USER_EDITABLE, true)) { done = 0; if (toCopy.getAttribute(IMarker.DONE, false)) { done = 1; } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/03cabc4b5cf32d8dfe9593aeb2ae39615ba675ac/TaskMarker.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3837,
7078,
12,
3445,
1313,
264,
358,
2951,
13,
288,
202,
202,
9565,
12,
869,
2951,
1769,
9506,
202,
8457,
273,
358,
2951,
18,
588,
1499,
12,
3445,
1313,
264,
18,
19804,
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,
225,
202,
482,
3837,
7078,
12,
3445,
1313,
264,
358,
2951,
13,
288,
202,
202,
9565,
12,
869,
2951,
1769,
9506,
202,
8457,
273,
358,
2951,
18,
588,
1499,
12,
3445,
1313,
264,
18,
19804,
16,
... | |
if(console.isVisible()) { | if (console.isVisible()) { | void interrupted(Context cx) { synchronized(swingMonitor) { if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting++; if(nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); while(nonDispatcherWaiting) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| //shouldDispatchTo(comp)) { comp.dispatchEvent(event); //} } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } if(this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch(InterruptedException exc) { return; } } } } else { while(isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch(InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; } do { currentContext = cx; DebuggableEngine engine = cx.getDebuggableEngine(); Thread thread = Thread.currentThread(); statusBar.setText("Thread: " + thread.toString()); ThreadState state = (ThreadState)threadState.get(thread); int stopAtFrameDepth = -1; if(state != null) { stopAtFrameDepth = state.stopAtFrameDepth; } if(runToCursorFile != null && thread == runToCursorThread) { int frameCount = engine.getFrameCount(); if(frameCount > 0) { DebugFrame frame = engine.getFrame(0); String sourceName = frame.getSourceName(); if(sourceName != null) { if(sourceName.equals(runToCursorFile)) { int lineNumber = frame.getLineNumber(); if(lineNumber == runToCursorLine) { stopAtFrameDepth = -1; runToCursorFile = null; } else { FileWindow w = getFileWindow(sourceName); if(w == null || !w.isBreakPoint(lineNumber)) { return; } else { runToCursorFile = null; } } } } } else { } } if(stopAtFrameDepth > 0) { if (engine.getFrameCount() > stopAtFrameDepth) { break; } } if(state != null) { state.stopAtFrameDepth = -1; } threadState.remove(thread); int frameCount = engine.getFrameCount(); this.frameIndex = frameCount -1; int line = 0; if(frameCount == 0) { break; } DebugFrame frame = engine.getFrame(0); String fileName = frame.getSourceName(); engine.setBreakNextLine(false); line = frame.getLineNumber(); int enterCount = 0; boolean isDispatchThread = java.awt.EventQueue.isDispatchThread(); if(!isDispatchThread) { // detach cx from its thread so the debugger (in the awt // dispatcher thread) can enter it if necessary cx.exit(); while(Context.getCurrentContext() != null) { Context.exit(); enterCount++; } } if(fileName != null && !fileName.equals("<stdin>")) { FileWindow w = (FileWindow)getFileWindow(fileName); if(w != null) { SetFilePosition action = new SetFilePosition(this, w, line); swingInvoke(action); } else { Vector v = (Vector)sourceNames.get(fileName); String source = ((SourceEntry)v.elementAt(0)).source.toString(); CreateFileWindow action = new CreateFileWindow(this, fileName, source, line); swingInvoke(action); } } else { if(console.isVisible()) { final JSInternalConsole finalConsole = console; swingInvoke(new Runnable() { public void run() { finalConsole.show(); } }); } } swingInvoke(new EnterInterrupt(this, cx)); swingInvoke(new UpdateContext(this, cx)); int returnValue; if(!isDispatchThread) { synchronized(monitor) { this.returnValue = -1; try { while(this.returnValue == -1) { monitor.wait(); } returnValue = this.returnValue; } catch(InterruptedException exc) { break; } } } else { java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); this.returnValue = -1; while(this.returnValue == -1) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| // shouldDispatchTo(comp)) { //comp.dispatchEvent(event); //} comp.dispatchEvent(event); } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } } catch(InterruptedException exc) { } } returnValue = this.returnValue; } swingInvoke(new ExitInterrupt(this)); if(!isDispatchThread) { // reattach cx to its thread Context current; if((current = Context.enter(cx)) != cx) { System.out.println("debugger error: cx = " + cx + " current = " + current); } while(enterCount > 0) { Context.enter(); enterCount--; } } switch(returnValue) { case STEP_OVER: engine.setBreakNextLine(true); stopAtFrameDepth = engine.getFrameCount(); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); break; case STEP_INTO: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; case STEP_OUT: stopAtFrameDepth = engine.getFrameCount() -1; if(stopAtFrameDepth > 0) { engine.setBreakNextLine(true); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); } break; case RUN_TO_CURSOR: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; } } while(false); synchronized(swingMonitor) { isInterrupted = false; if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
15711,
12,
1042,
9494,
13,
288,
3639,
3852,
12,
5328,
310,
7187,
13,
288,
5411,
309,
12,
6290,
18,
2219,
88,
18,
1133,
3183,
18,
291,
5325,
3830,
10756,
288,
7734,
7393,
2520,
1594... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
15711,
12,
1042,
9494,
13,
288,
3639,
3852,
12,
5328,
310,
7187,
13,
288,
5411,
309,
12,
6290,
18,
2219,
88,
18,
1133,
3183,
18,
291,
5325,
3830,
10756,
288,
7734,
7393,
2520,
1594... |
if(ASS)ER.T(null!=state,"invalid cmd state while creating menu item",this); | if(AS.S)ER.T(null!=state,"invalid cmd state while creating menu item",this); | private void addMenuItem( int id, String text, MenuItem menuitem ) { CmdState state = _commandTyrant.findCmdState(id); if(ASS)ER.T(null!=state,"invalid cmd state while creating menu item",this); _items[id].menuItem = menuitem.submenu().addItem(text,state.name,_commandTyrant); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/2de73cf99dce60cce549e7757f841284b68d1220/CommandView.java/clean/js/jsdj/classes/com/netscape/jsdebugging/ifcui/CommandView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
12958,
12,
509,
612,
16,
514,
977,
16,
25085,
3824,
1726,
262,
565,
288,
3639,
13328,
1119,
919,
273,
389,
3076,
56,
93,
6890,
18,
4720,
5931,
1119,
12,
350,
1769,
3639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
12958,
12,
509,
612,
16,
514,
977,
16,
25085,
3824,
1726,
262,
565,
288,
3639,
13328,
1119,
919,
273,
389,
3076,
56,
93,
6890,
18,
4720,
5931,
1119,
12,
350,
1769,
3639,... |
try { r = new BufferedReader(new InputStreamReader(strm, parseCharset), 32768); } catch (UnsupportedEncodingException e) { throw new Error(e); } | r = new BufferedReader(new InputStreamReader(strm, parseCharset), 32768); | public String getCharset(Bucket bucket, String parseCharset) throws DataFilterException, IOException { InputStream strm = bucket.getInputStream(); Writer w = new NullWriter(); Reader r; try { r = new BufferedReader(new InputStreamReader(strm, parseCharset), 32768); } catch (UnsupportedEncodingException e) { throw new Error(e); } CSSParser parser = new CSSParser(r, w, false, new NullFilterCallback()); try { parser.parse(); } catch (Throwable t) { // Ignore ALL errors! Logger.minor(this, "Caught "+t+" trying to detect MIME type with "+parseCharset); } r.close(); return parser.detectedCharset; } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/b0855b1abf45bb746b0d2b0c68b2bf315d24eb8f/CSSReadFilter.java/buggy/src/freenet/clients/http/filter/CSSReadFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
30428,
12,
4103,
2783,
16,
514,
1109,
9652,
13,
1216,
1910,
1586,
503,
16,
1860,
288,
202,
202,
4348,
609,
81,
273,
2783,
18,
588,
4348,
5621,
202,
202,
2289,
341,
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,
225,
202,
482,
514,
30428,
12,
4103,
2783,
16,
514,
1109,
9652,
13,
1216,
1910,
1586,
503,
16,
1860,
288,
202,
202,
4348,
609,
81,
273,
2783,
18,
588,
4348,
5621,
202,
202,
2289,
341,
273,
... |
return (this.namespace != null && !"".equals(this.namespace)) | return (this.namespace != null && !"".equals(this.namespace.getPrefix()) && !(OMConstants.XMLNS_NS_PREFIX.equals(this.attrName))) | public String getNodeName() { return (this.namespace != null && !"".equals(this.namespace)) ? this.namespace.getPrefix()+ ":" + this.attrName : this.attrName; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/34aa79b0575613a05e52194c7d830c01195b3dc0/AttrImpl.java/clean/modules/doom/src/org/apache/axis2/om/impl/dom/AttrImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
21812,
1435,
288,
3639,
327,
261,
2211,
18,
4937,
480,
446,
597,
401,
3660,
18,
14963,
12,
2211,
18,
4937,
18,
588,
2244,
10756,
597,
401,
12,
1872,
2918,
18,
4201,
3156,
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,
377,
1071,
514,
21812,
1435,
288,
3639,
327,
261,
2211,
18,
4937,
480,
446,
597,
401,
3660,
18,
14963,
12,
2211,
18,
4937,
18,
588,
2244,
10756,
597,
401,
12,
1872,
2918,
18,
4201,
3156,
67,... |
e.printStackTrace(); | throw new RuntimeException(e); | protected Object getFromCache(String path) { Object valueObject = null; try { valueObject = valueObjectrepository.get(path); if(null != valueObject){ valueObject = valueObject.getClass().newInstance(); } } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } return valueObject; } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/96203859ed3520dbfda505500b93cc0690d6e3ab/ValueObjectFactory.java/clean/mifos/src/org/mifos/framework/util/helpers/ValueObjectFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
11859,
1649,
12,
780,
589,
13,
288,
202,
202,
921,
460,
921,
273,
446,
31,
202,
202,
698,
288,
9506,
460,
921,
273,
460,
921,
9071,
18,
588,
12,
803,
1769,
9506,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
11859,
1649,
12,
780,
589,
13,
288,
202,
202,
921,
460,
921,
273,
446,
31,
202,
202,
698,
288,
9506,
460,
921,
273,
460,
921,
9071,
18,
588,
12,
803,
1769,
9506,
309,... |
TreeList newBody = new TreeList(transform(impl.body, impl.symbol())); | TreeList newBody = new TreeList(); | public Tree transform0(Tree tree) { switch (tree) { case ClassDef(int mods, //: Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree.Template impl): Symbol sym = tree.symbol();// if (impl.symbol().isNone())// throw new Error("no symbol for " + tree); TreeList newBody = new TreeList(transform(impl.body, impl.symbol())); // Add members (accessors and instantiators) NewMember[] toAdd = membersToAdd(sym); for (int i = 0; i < toAdd.length; ++i) { switch (toAdd[i]) { case TypeAccessor(Symbol memSym, Symbol accSym): newBody.append(typeAccessorBody(memSym, accSym)); break; case TypeConstructor(Symbol memSym, Symbol tcSym): newBody.append(tConstructorVal(memSym, tcSym)); break; case Instantiator(Symbol memSym, Symbol insSym): newBody.append(instantiatorBody(memSym, insSym)); break; case ClassInitialiser(Symbol memSym, Symbol ciSym, Symbol tcSym): newBody.append(classInitialiser(memSym, ciSym, tcSym)); break; } } Symbol pConst = sym.primaryConstructor(); return gen.ClassDef(sym, transform(impl.parents, pConst), impl.symbol(), newBody.toArray()); case DefDef(_, _, _, _, _, Tree rhs): Symbol symbol = getSymbolFor(tree); // TODO maybe use "overrides" method instead of name // to identify the "getType" method. if (symbol.name == Names.getType) { // Correct the body of the getType method which, // until now, was a placeholder (introduced by // RefCheck). rhs = scalaClassType(symbol.pos, symbol.owner().type(), symbol, EENV); } return gen.DefDef(symbol, transform(rhs, symbol)); case ValDef(_, _, Tree tpe, Literal(AConstant.ZERO)): // transform default values: // val x: T = _ // becomes // val x: T = asValue(T).defaultValue() Symbol symbol = getSymbolFor(tree); Tree defaultValue = gen.mkRef(tree.pos, typeAsValue(tree.pos, tpe.type, currentOwner, EENV), defs.TYPE_DEFAULTVALUE()); Tree rhs = gen.mkApply__(tree.pos, defaultValue); return gen.ValDef(symbol, rhs); case ValDef(_, _, _, Tree rhs): Symbol symbol = getSymbolFor(tree); return gen.ValDef(symbol, transform(rhs, symbol)); case New(Apply(TypeApply(Tree fun, Tree[] targs), Tree[] vargs)): if (fun.symbol() == ARRAY_CONSTRUCTOR && false) { // Transform array creations: // new Array[T](size) // becomes // asValue(T).newArray[T](size) assert targs.length == 1; assert vargs.length == 1; Tree newArrayfun = gen.mkRef(tree.pos, typeAsValue(targs[0].pos, targs[0].type, currentOwner, EENV), defs.TYPE_NEWARRAY()); return gen.mkApplyTV(newArrayfun, targs, vargs); } else return super.transform(tree); case Apply(TypeApply(Tree fun, Tree[] targs), Tree[] vargs): Symbol funSym = fun.symbol(); if (funSym == defs.ANY_IS) { assert targs.length == 1 && vargs.length == 0; Type type = targs[0].type; Tree expr = transform(qualifierOf(fun)); return isTrivialType(type) ? super.transform(tree) : genInstanceTest(tree.pos, expr, type); } else if (funSym == defs.ANY_AS) { // Transform instance tests: // e.asInstanceOf[T] // becomes: // asValue(T).checkCastability(e).asInstanceOf[T] // unless T is a "simple" type for which a Java // instance test is sufficient, in which case the // expression is left as is. assert targs.length == 1 && vargs.length == 0; Type type = targs[0].type; Tree expr = transform(qualifierOf(fun)); return isTrivialType(type) ? super.transform(tree) : genTypeCast(tree.pos, expr, type); } else { // Transform applications to pass types as values: // f[T1, ...](v1, ...) // becomes // f[T1, ...](asValue(T1), ..., v1, ...) if (funSym == ARRAY_CONSTRUCTOR) return super.transform(tree); else { Tree[] newVArgs = transform(vargs); Tree[] finalVArgs = new Tree[newVArgs.length + targs.length]; for (int i = 0; i < targs.length; ++i) finalVArgs[i] = typeAsValue(targs[i].pos, targs[i].type, currentOwner, EENV); System.arraycopy(newVArgs, 0, finalVArgs, targs.length, newVArgs.length); return gen.mkApplyTV(tree.pos, transform(fun), targs, finalVArgs); } } default: return super.transform(tree); } } | 49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/1f2e15f4e5c472d9c8b2361dae68d090cfdc9ee5/TypesAsValuesPhase.java/buggy/sources/scalac/transformer/TypesAsValuesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4902,
2510,
20,
12,
2471,
2151,
13,
288,
5411,
1620,
261,
3413,
13,
288,
5411,
648,
1659,
3262,
12,
474,
15546,
16,
368,
30,
12900,
1770,
508,
16,
12900,
4902,
18,
9382,
559,
3262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4902,
2510,
20,
12,
2471,
2151,
13,
288,
5411,
1620,
261,
3413,
13,
288,
5411,
648,
1659,
3262,
12,
474,
15546,
16,
368,
30,
12900,
1770,
508,
16,
12900,
4902,
18,
9382,
559,
3262... |
log.error(s); | System.err.println(s); | void error(String s) { log.error(s); } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TotalOrder.java/buggy/src/org/jgroups/demos/TotalOrder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
555,
12,
780,
272,
13,
288,
202,
3163,
18,
370,
18,
8222,
12,
87,
1769,
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,
... | [
1,
1,
1,
1,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
555,
12,
780,
272,
13,
288,
202,
3163,
18,
370,
18,
8222,
12,
87,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
protected DOMValidationConfiguration(SymbolTable symbolTable) { this(symbolTable, null); } | protected DOMValidationConfiguration() { this(null, null); } | protected DOMValidationConfiguration(SymbolTable symbolTable) { this(symbolTable, null); } // <init>(SymbolTable) | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/1c4de17b1f3119d9fa1b7eb49ae1037fe0e5ceb6/DOMValidationConfiguration.java/buggy/src/org/apache/xerces/dom/DOMValidationConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4703,
4354,
1750,
12,
5335,
1388,
26086,
13,
288,
3639,
333,
12,
7175,
1388,
16,
446,
1769,
565,
289,
368,
411,
2738,
34,
12,
5335,
1388,
13,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4703,
4354,
1750,
12,
5335,
1388,
26086,
13,
288,
3639,
333,
12,
7175,
1388,
16,
446,
1769,
565,
289,
368,
411,
2738,
34,
12,
5335,
1388,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
if (name.startsWith("is")) { return DomReflectionUtil.canHaveIsPropertyGetterPrefix(method.getGenericReturnType()); } return false; | return name.startsWith("is") && DomReflectionUtil.canHaveIsPropertyGetterPrefix(returnType); | public static boolean isGetter(final Method method) { final String name = method.getName(); if (method.getParameterTypes().length != 0) { return false; } final Class<?> returnType = method.getReturnType(); if (name.startsWith("get")) { return returnType != void.class; } if (name.startsWith("is")) { return DomReflectionUtil.canHaveIsPropertyGetterPrefix(method.getGenericReturnType()); } return false; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/54db96a7e7eb53da6fe993c656f312cdf31aaaa7/DomImplUtil.java/buggy/dom/impl/src/com/intellij/util/xml/impl/DomImplUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
353,
8461,
12,
6385,
2985,
707,
13,
288,
565,
727,
514,
508,
273,
707,
18,
17994,
5621,
565,
309,
261,
2039,
18,
588,
1662,
2016,
7675,
2469,
480,
374,
13,
288,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
353,
8461,
12,
6385,
2985,
707,
13,
288,
565,
727,
514,
508,
273,
707,
18,
17994,
5621,
565,
309,
261,
2039,
18,
588,
1662,
2016,
7675,
2469,
480,
374,
13,
288,
1377,
... |
Long cachedTime = (Long)this.cachedTime.get(url); | Long cachedTime = (Long) this.cachedTime.get(url); | public SyndFeed getFeed(String url) throws FeedException, IOException { SyndFeedInput input = new SyndFeedInput(); SyndFeed feed = null; long diff = CACHE_TIME+1; // check if the url is in the cachedStore if (cachedStore.containsKey(url)) { Long cachedTime = (Long)this.cachedTime.get(url); diff = System.currentTimeMillis() - cachedTime.longValue(); } if (diff > CACHE_TIME) { feed = input.build(new XmlReader(new URL(url))); cachedStore.put(url, feed); cachedTime.put(url, new Long(System.currentTimeMillis())); } return (SyndFeed)cachedStore.get(url); } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/5d0835b09b03cba5088029b34a0e957978af5e32/RssServiceImpl.java/clean/src/org/gridsphere/services/core/rss/impl/RssServiceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16091,
72,
8141,
13683,
329,
12,
780,
880,
13,
1216,
14013,
503,
16,
1860,
288,
3639,
16091,
72,
8141,
1210,
810,
273,
394,
16091,
72,
8141,
1210,
5621,
3639,
16091,
72,
8141,
4746,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16091,
72,
8141,
13683,
329,
12,
780,
880,
13,
1216,
14013,
503,
16,
1860,
288,
3639,
16091,
72,
8141,
1210,
810,
273,
394,
16091,
72,
8141,
1210,
5621,
3639,
16091,
72,
8141,
4746,... |
Document messageCollection; | Document messageCollection; | private void init() throws PluginException { Document pluginDescriptor; // a.k.a, "findbugs.xml" Document messageCollection; // a.k.a., "messages.xml" try { URL descriptorURL = findResource("findbugs.xml"); if (descriptorURL == null) throw new PluginException("Couldn't find \"findbugs.xml\" in plugin"); SAXReader reader = new SAXReader(); pluginDescriptor = reader.read(descriptorURL); } catch (DocumentException e) { throw new PluginException("Couldn't parse \"findbugs.xml\"", e); } try { URL messageURL = null; Locale locale = Locale.getDefault(); String language = locale.getLanguage(); String country = locale.getCountry(); if (!country.equals("")) messageURL = findResource("messages_" + language + "_" + country + ".xml"); if (messageURL == null) messageURL = findResource("messages_" + language + ".xml"); if (messageURL == null) messageURL = findResource("messages.xml"); if (messageURL == null) throw new PluginException("Couldn't find messages.xml"); SAXReader reader = new SAXReader(); messageCollection = reader.read(messageURL); } catch (DocumentException e) { throw new PluginException("Couldn't parse \"messages.xml\"", e); } // Create a DetectorFactory for all Detector nodes try { detectorFactoryList = new ArrayList<DetectorFactory>(); List detectorNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/Detector"); for (Iterator i = detectorNodeList.iterator(); i.hasNext(); ) { Node detectorNode = (Node) i.next(); String className = detectorNode.valueOf("@class"); String disabled = detectorNode.valueOf("@disabled"); //System.out.println("Found detector: class="+className+", disabled="+disabled); if (!disabled.equals("true")) { Class detectorClass = loadClass(className); DetectorFactory factory = new DetectorFactory(detectorClass); detectorFactoryList.add(factory); } } } catch (ClassNotFoundException e) { throw new PluginException("Could not instantiate detector class", e); } // Create BugPatterns bugPatternList = new ArrayList<BugPattern>(); List bugPatternNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/BugPattern"); for (Iterator i = bugPatternNodeList.iterator(); i.hasNext(); ) { Node bugPatternNode = (Node) i.next(); String type = bugPatternNode.valueOf("@type"); String abbrev = bugPatternNode.valueOf("@abbrev"); String category = bugPatternNode.valueOf("@category"); // Find the matching element in messages.xml String query = "/MessageCollection/BugPattern[@type='" + type + "']"; Node messageNode = (Node) messageCollection.selectSingleNode(query); if (messageNode == null) throw new PluginException("messages.xml missing BugPattern element for type " + type); String shortDesc = getChildText(messageNode, "ShortDescription"); String longDesc = getChildText(messageNode, "LongDescription"); String detailText = getChildText(messageNode, "Details"); BugPattern bugPattern = new BugPattern(type, abbrev, category, shortDesc, longDesc, detailText); bugPatternList.add(bugPattern); } // Create BugCodes bugCodeList = new ArrayList<BugCode>(); List bugCodeNodeList = messageCollection.selectNodes("/MessageCollection/BugCode"); for (Iterator i = bugCodeNodeList.iterator(); i.hasNext(); ) { Node bugCodeNode = (Node) i.next(); String abbrev = bugCodeNode.valueOf("@abbrev"); if (abbrev.equals("")) throw new PluginException("BugCode element with missing abbrev attribute"); String description = bugCodeNode.getText(); BugCode bugCode = new BugCode(abbrev, description); bugCodeList.add(bugCode); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/3cb92fa7bb0429d72883de34c069311bad68a1db/PluginLoader.java/clean/findbugs/src/java/edu/umd/cs/findbugs/PluginLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
1216,
6258,
503,
288,
202,
202,
2519,
1909,
3187,
31,
368,
279,
18,
79,
18,
69,
16,
315,
4720,
19381,
18,
2902,
6,
202,
202,
2519,
883,
2532,
31,
368,
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,
225,
202,
1152,
918,
1208,
1435,
1216,
6258,
503,
288,
202,
202,
2519,
1909,
3187,
31,
368,
279,
18,
79,
18,
69,
16,
315,
4720,
19381,
18,
2902,
6,
202,
202,
2519,
883,
2532,
31,
368,
279,... |
public static void suggestFieldNames(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, int modifiers, char[][] excludedNames, INamingRequestor requestor) { | public static void suggestFieldNames(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, int modifiers, char[] internalPrefix, char[][] excludedNames, INamingRequestor requestor) { | public static void suggestFieldNames(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, int modifiers, char[][] excludedNames, INamingRequestor requestor) { boolean isStatic = Flags.isStatic(modifiers); Map options = javaProject.getOptions(true); CompilerOptions compilerOptions = new CompilerOptions(options); AssistOptions assistOptions = new AssistOptions(options); suggestNames( packageName, qualifiedTypeName, dim, isStatic ? assistOptions.staticFieldPrefixes : assistOptions.fieldPrefixes, isStatic ? assistOptions.staticFieldSuffixes : assistOptions.fieldSuffixes, excludedNames, getNameScanner(compilerOptions), requestor); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/990424c900c7463d4257bff26a1ccc6812106204/InternalNamingConventions.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/InternalNamingConventions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19816,
20393,
12,
45,
5852,
4109,
2252,
4109,
16,
1149,
8526,
9929,
16,
1149,
8526,
9348,
7947,
16,
509,
2464,
16,
509,
10429,
16,
1149,
63,
6362,
65,
8845,
1557,
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,
225,
202,
482,
760,
918,
19816,
20393,
12,
45,
5852,
4109,
2252,
4109,
16,
1149,
8526,
9929,
16,
1149,
8526,
9348,
7947,
16,
509,
2464,
16,
509,
10429,
16,
1149,
63,
6362,
65,
8845,
1557,
16... |
store.setIsUpdating( projectId ); store.setUpdateDone( projectId ); | public void testTheAssociationBetweenTheProjectAndItsBuilds() throws Exception { ContinuumStore store = (ContinuumStore) lookup( ContinuumStore.ROLE ); lookup( JdoFactory.ROLE ); // ---------------------------------------------------------------------- // Set up projects // ---------------------------------------------------------------------- String projectId = addMavenTwoProject( "Association Test Project", "scm:association" ); store.setIsUpdating( projectId ); store.setUpdateDone( projectId ); String projectIdFoo = addMavenTwoProject( "Foo Project", "scm:association-foo" ); store.setIsUpdating( projectIdFoo ); store.setUpdateDone( projectIdFoo ); String projectIdBar = addMavenTwoProject( "Bar Project", "scm:association-bar" ); store.setIsUpdating( projectIdBar ); store.setUpdateDone( projectIdBar ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- List expectedBuilds = new ArrayList(); for ( int i = 0; i < 10; i++ ) { expectedBuilds.add( 0, store.createBuild( projectId, false ) ); store.createBuild( projectIdFoo, false ); store.createBuild( projectIdBar, false ); store.createBuild( projectIdFoo, false ); } // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- ContinuumBuild build = store.getLatestBuildForProject( projectId ); assertNotNull( build ); assertEquals( build.getId(), (String) expectedBuilds.get( 9 ) ); Collection actualBuilds = store.getBuildsForProject( projectId, 0, 0 ); assertEquals( "builds.size", expectedBuilds.size(), actualBuilds.size() ); Iterator expectedIt = expectedBuilds.iterator(); Iterator actualIt = actualBuilds.iterator(); for ( int i = 0; expectedIt.hasNext(); i++ ) { String expectedBuildId = (String) expectedIt.next(); String actualBuildId = ((ContinuumBuild) actualIt.next()).getId(); assertEquals( "builds[" + i + "]", expectedBuildId, actualBuildId ); } } | 48499 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48499/0c204fa9f061fa3a3338a6c4ad59e9157a6275b8/ModelloJPoxContinuumStoreTest.java/clean/continuum-core/src/test/java/org/apache/maven/continuum/store/ModelloJPoxContinuumStoreTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1986,
7174,
11831,
1986,
4109,
1876,
45,
3428,
7746,
1435,
3639,
1216,
1185,
565,
288,
3639,
1816,
6860,
379,
2257,
1707,
273,
261,
660,
6860,
379,
2257,
13,
3689,
12,
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,
1986,
7174,
11831,
1986,
4109,
1876,
45,
3428,
7746,
1435,
3639,
1216,
1185,
565,
288,
3639,
1816,
6860,
379,
2257,
1707,
273,
261,
660,
6860,
379,
2257,
13,
3689,
12,
18... | |
return RubyBoolean.newBoolean(getRuntime(), this == obj); | return getRuntime().newBoolean(this == obj); | public IRubyObject equal(IRubyObject obj) { if (isNil()) { return RubyBoolean.newBoolean(getRuntime(), obj.isNil()); } return RubyBoolean.newBoolean(getRuntime(), this == obj); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
3959,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
309,
261,
291,
12616,
10756,
288,
5411,
327,
19817,
5507,
18,
2704,
5507,
12,
588,
5576,
9334,
1081,
18,
291,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
3959,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
309,
261,
291,
12616,
10756,
288,
5411,
327,
19817,
5507,
18,
2704,
5507,
12,
588,
5576,
9334,
1081,
18,
291,
126... |
return stringWriter.toString(); | return stringWriter.toString(); | public static String getStackTrace(Throwable e) { StringWriter stringWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(stringWriter); e.printStackTrace(printWriter); return stringWriter.toString(); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/c0bb520283a2c4cf358115b1da1e4cc8a0d39527/ExceptionHandlerGUI.java/clean/src/edu/sc/seis/fissuresUtil/exceptionHandlerGUI/ExceptionHandlerGUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
22798,
12,
15155,
425,
13,
288,
202,
780,
2289,
225,
533,
2289,
273,
394,
17436,
5621,
202,
5108,
2289,
1172,
2289,
273,
394,
14071,
12,
1080,
2289,
1769,
202,
73,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
22798,
12,
15155,
425,
13,
288,
202,
780,
2289,
225,
533,
2289,
273,
394,
17436,
5621,
202,
5108,
2289,
1172,
2289,
273,
394,
14071,
12,
1080,
2289,
1769,
202,
73,
18,
1... |
editorMem.putString(IWorkbenchConstants.TAG_TITLE,input.getName()); | editorMem.putString(IWorkbenchConstants.TAG_TITLE,editor.getTitle()); editorMem.putString(IWorkbenchConstants.TAG_NAME,input.getName()); | public void saveState(final IMemento memento) { // Save the editor area workbooks layout/relationship IMemento editorAreaMem = memento.createChild(IWorkbenchConstants.TAG_AREA); editorPresentation.saveState(editorAreaMem); // Save the active workbook id editorAreaMem.putString(IWorkbenchConstants.TAG_ACTIVE_WORKBOOK, editorPresentation.getActiveEditorWorkbookID()); // Save each open editor. final int errors[] = new int[1]; IEditorReference editors[] = editorPresentation.getEditors(); for (int i = 0; i < editors.length; i++) { IEditorReference editorReference = (IEditorReference)editors[i]; final IEditorPart editor = editorReference.getEditor(false); if(editor == null) { IMemento editorMem = memento.createChild(IWorkbenchConstants.TAG_EDITOR); editorMem.putMemento(((Editor)editorReference).getMemento()); continue; } final EditorSite site = (EditorSite)editor.getEditorSite(); if(site.getPane() instanceof MultiEditorInnerPane) continue; Platform.run(new SafeRunnable() { public void run() { // Get the input. IEditorInput input = editor.getEditorInput(); IPersistableElement persistable = input.getPersistable(); if (persistable == null) return; // Save editor. IMemento editorMem = memento.createChild(IWorkbenchConstants.TAG_EDITOR); editorMem.putString(IWorkbenchConstants.TAG_TITLE,input.getName()); editorMem.putString(IWorkbenchConstants.TAG_ID, editor.getSite().getId()); editorMem.putString(IWorkbenchConstants.TAG_TOOLTIP, editor.getTitleToolTip()); //$NON-NLS-1$ if(!site.getReuseEditor()) editorMem.putString(IWorkbenchConstants.TAG_PINNED,"true"); EditorPane editorPane = (EditorPane) ((EditorSite) editor.getEditorSite()).getPane(); editorMem.putString(IWorkbenchConstants.TAG_WORKBOOK, editorPane.getWorkbook().getID()); if (editor == page.getActivePart()) editorMem.putString(IWorkbenchConstants.TAG_ACTIVE_PART, "true"); //$NON-NLS-1$ if (editorPane == editorPane.getWorkbook().getVisibleEditor()) editorMem.putString(IWorkbenchConstants.TAG_FOCUS, "true"); //$NON-NLS-1$ if (input instanceof IFileEditorInput) { IFile file = ((IFileEditorInput)input).getFile(); editorMem.putString(IWorkbenchConstants.TAG_PATH,file.getFullPath().toString()); } // Save input. IMemento inputMem = editorMem.createChild(IWorkbenchConstants.TAG_INPUT); inputMem.putString(IWorkbenchConstants.TAG_FACTORY_ID, persistable.getFactoryId()); persistable.saveState(inputMem); } public void handleException(Throwable e) { errors[0]++; } }); } if (errors[0] > 0) { String message = WorkbenchMessages.getString("EditorManager.multipleErrors"); //$NON-NLS-1$ if (errors[0] == 1) message = WorkbenchMessages.getString("EditorManager.oneError"); //$NON-NLS-1$ MessageDialog.openError(null, WorkbenchMessages.getString("Error"), message); //$NON-NLS-1$ } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/eef18522c7725a0a0c15d310903b2a7eb290a090/EditorManager.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
1119,
12,
6385,
6246,
820,
83,
312,
820,
83,
13,
288,
202,
202,
759,
7074,
326,
4858,
5091,
1440,
12567,
3511,
19,
12873,
202,
202,
3445,
820,
83,
4858,
5484,
3545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
1119,
12,
6385,
6246,
820,
83,
312,
820,
83,
13,
288,
202,
202,
759,
7074,
326,
4858,
5091,
1440,
12567,
3511,
19,
12873,
202,
202,
3445,
820,
83,
4858,
5484,
3545,... |
IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); | IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); | public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException { Assert.isNotNull(perspectiveId); // If the specified window has the requested perspective open, then the window // is given focus and the perspective is shown. The page's input is ignored. WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page.getOpenedPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } } // If another window that has the workspace root as input and the requested // perpective open and active, then the window is given focus. IAdaptable input = WorkbenchPlugin.getPluginWorkspace().getRoot(); IWorkbenchWindow[] windows = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { win = (WorkbenchWindow) windows[i]; if (window != win) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { boolean inputSame = false; if (input == null) inputSame = (page.getInput() == null); else inputSame = input.equals(page.getInput()); if (inputSame) { Perspective persp = page.getActivePerspective(); if (perspectiveId.equals(persp.getDesc().getId())) { Shell shell = win.getShell(); shell.open(); if(shell.getMinimized()) shell.setMinimized(false); return page; } } } } } // Otherwise the requested perspective is opened and shown in the specified // window or in a new window depending on the current user preference for opening // perspectives, and that window is given focus. win = (WorkbenchWindow) window; if (win != null) { IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); int mode = store.getInt(IPreferenceConstants.OPEN_PERSP_MODE); IWorkbenchPage page = win.getActiveWorkbenchPage(); IPerspectiveDescriptor persp = null; if (page != null) persp = page.getPerspective(); // Only open a new window if user preference is set and the window // has an active perspective. if (IPreferenceConstants.OPM_NEW_WINDOW == mode && persp != null) { IWorkbenchWindow newWindow = openWorkbenchWindow(perspectiveId, input); return newWindow.getActivePage(); } else { IPerspectiveDescriptor desc = getPerspectiveRegistry().findPerspectiveWithId(perspectiveId); if (desc == null) throw new WorkbenchException(WorkbenchMessages.getString("WorkbenchPage.ErrorRecreatingPerspective")); //$NON-NLS-1$ win.getShell().open(); if (page == null) page = win.openPage(perspectiveId, input); else page.setPerspective(desc); return page; } } // Just throw an exception.... throw new WorkbenchException(WorkbenchMessages.format("Workbench.showPerspectiveError", new Object[] { perspectiveId })); //$NON-NLS-1$ } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2421,
22144,
1964,
2405,
14781,
16772,
12,
780,
26651,
548,
16,
467,
2421,
22144,
3829,
2742,
13,
1216,
4147,
22144,
503,
288,
202,
202,
8213,
18,
291,
5962,
12,
10422,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
2421,
22144,
1964,
2405,
14781,
16772,
12,
780,
26651,
548,
16,
467,
2421,
22144,
3829,
2742,
13,
1216,
4147,
22144,
503,
288,
202,
202,
8213,
18,
291,
5962,
12,
10422,
167... |
Timestamp dTS = new ElapsedMillisecondTimestamp(); Timestamp rTS = null; | Timestamp dTS = new ElapsedMillisecondTimestamp(); Timestamp rTS = null; | public static void main(String [] args) { GregorianCalendar calendar = new GregorianCalendar(); TimeIndexFactory factory = new TimeIndexFactory(); Properties properties = new Properties(); properties.setProperty("name", "index-Test5"); properties.setProperty("filename", "/tmp/test5"); IndexView index = factory.create(IndexType.INLINE, properties); /* Item 0 */ // ZERO timestamp Timestamp dTS = new ElapsedMillisecondTimestamp(); // now Timestamp rTS = null; // A chunk of data DataItem data = null; long id = 0; List annotations = null; IndexItem item = null; /* Item 0 */ data = new StringItem("quite a lot of stuff"); rTS = new MillisecondTimestamp(); index.addItem(data, dTS); delay(100); /* Item 1 */ data = new StringItem("on item 1"); // work out elasped time dTS = TimeCalculator.elapsedSince(rTS); index.addItem(data, dTS); delay(100); /* Item 2 */ data = new StringItem("this is the voice of the mysterons"); // work out elasped time dTS = TimeCalculator.elapsedSince(rTS); index.addItem(data, dTS); delay(100); factory.close(index); printIndex(index); } | 8679 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8679/d00ccf8a44ed142be850d3e37f41ba078b1c31d1/Test5.java/buggy/timeindexing/uk/ti/Test5.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
5378,
833,
13,
288,
202,
31560,
7335,
5686,
273,
394,
28033,
5621,
202,
950,
1016,
1733,
3272,
273,
394,
2647,
1016,
1733,
5621,
202,
2297,
1790,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
12,
780,
5378,
833,
13,
288,
202,
31560,
7335,
5686,
273,
394,
28033,
5621,
202,
950,
1016,
1733,
3272,
273,
394,
2647,
1016,
1733,
5621,
202,
2297,
1790,
273,
394,
... |
String sPrefix = ""; | String sPrefix = ""; | public Composite getSeriesDataSheet(Composite parent, SeriesDefinition seriesdefinition, IUIServiceProvider builder, Object oContext) { Query query = null; if (seriesdefinition.getDesignTimeSeries().getDataDefinition().size() > 0) { query = ((Query) seriesdefinition.getDesignTimeSeries().getDataDefinition().get(0)); } else { query = QueryImpl.create(""); seriesdefinition.getDesignTimeSeries().getDataDefinition().add(query); } String sPrefix = ""; // If container is Axis, chart is of type ChartWithAxes if (seriesdefinition.eContainer() instanceof org.eclipse.birt.chart.model.component.impl.AxisImpl) { // If container of container is Chart, series is Base Series if (seriesdefinition.eContainer().eContainer() instanceof Chart) { sPrefix = "X "; } else { sPrefix = "Y "; } } else { // If container of container is Chart, series is Base Series if (seriesdefinition.eContainer().eContainer() instanceof Chart) { sPrefix = "Base "; } else { sPrefix = "Orthogonal "; } } String sTitle = query.getDefinition(); if (sTitle == null || "".equals(sTitle)) { sTitle = sPrefix + "Series Definition"; } else { sTitle = sPrefix + "Series Definition (" + sTitle + ")"; } return new DataDefinitionComposite(parent, SWT.NONE, query, seriesdefinition, builder, oContext, sTitle); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7793e94b4d7fab5891f226c6c937e37d85bebad8/SeriesUIProvider.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/SeriesUIProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14728,
336,
6485,
751,
8229,
12,
9400,
982,
16,
9225,
1852,
4166,
6907,
16,
3639,
467,
5370,
16300,
2089,
16,
1033,
320,
1042,
13,
565,
288,
3639,
2770,
843,
273,
446,
31,
3639,
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,
14728,
336,
6485,
751,
8229,
12,
9400,
982,
16,
9225,
1852,
4166,
6907,
16,
3639,
467,
5370,
16300,
2089,
16,
1033,
320,
1042,
13,
565,
288,
3639,
2770,
843,
273,
446,
31,
3639,
3... |
throw new FetchException(FetchException.TOO_MUCH_RECURSION); | throw new FetchException(FetchException.TOO_MUCH_RECURSION, "Too much recursion: "+recursionLevel+" > "+ctx.maxRecursionLevel); | public SingleFileFetcher(ClientGetter get, GetCompletionCallback cb, ClientMetadata metadata, ClientKey key, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential) throws FetchException { Logger.minor(this, "Creating SingleFileFetcher for "+key); this.cancelled = false; this.dontTellClientGet = dontTellClientGet; this.token = token; this.parent = get; //this.uri = uri; //this.key = ClientKey.getBaseKey(uri); //metaStrings = uri.listMetaStrings(); this.key = key; this.metaStrings = metaStrings; this.ctx = ctx; retryCount = 0; this.rcb = cb; this.clientMetadata = metadata; this.maxRetries = maxRetries; thisKey = key.getURI(); this.actx = actx; this.recursionLevel = recursionLevel + 1; if(recursionLevel > ctx.maxRecursionLevel) throw new FetchException(FetchException.TOO_MUCH_RECURSION); this.decompressors = new LinkedList(); parent.addBlock(); if(isEssential) parent.addMustSucceedBlocks(1); } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/da3961d0811efe76d7e9490afee84a6faab9be20/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10326,
812,
16855,
12,
1227,
8461,
336,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1982,
16,
2445,
653,
498,
16,
10688,
2191,
7957,
16,
8065,
264,
1042,
1103,
16,
13124,
1042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10326,
812,
16855,
12,
1227,
8461,
336,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1982,
16,
2445,
653,
498,
16,
10688,
2191,
7957,
16,
8065,
264,
1042,
1103,
16,
13124,
1042,
... |
Stack oldStack = context.getClassStack(); context.setClassStack(moduleStack); | RubyModule oldParent = context.setRubyClass(parent); | public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg = runtime.newProc(); } context.getScopeStack().push(); if (body.getLocalNames() != null) { context.getScopeStack().resetLocalVariables(body.getLocalNames()); } context.pushDynamicVars(); Stack oldStack = context.getClassStack(); // replace class stack with appropriate execution scope context.setClassStack(moduleStack); try { if (argsNode != null) { prepareArguments(runtime, receiver, args); } if (optionalBlockArg != null) { context.getScopeStack().setValue(argsNode.getBlockArgNode().getCount(), optionalBlockArg); } getArity().checkArity(runtime, args); traceCall(runtime, receiver, name); return receiver.eval(body.getBodyNode()); } catch (ReturnJump rj) { if (rj.getTarget() == this) { return rj.getReturnValue(); } throw rj; } finally { // restore class stack context.setClassStack(oldStack); context.popDynamicVars(); context.getScopeStack().pop(); traceReturn(runtime, receiver, name); } } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/abfe85d15f992ecf4447b155d177050fe2239c3b/DefaultMethod.java/clean/src/org/jruby/internal/runtime/methods/DefaultMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
745,
12,
54,
10340,
3099,
16,
15908,
10340,
921,
5971,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
4884,
1042,
819,
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,
1071,
15908,
10340,
921,
745,
12,
54,
10340,
3099,
16,
15908,
10340,
921,
5971,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
4884,
1042,
819,
273,
... |
public void runTest() { testLua2(); } }); | public void runTest() { testLua2(); } | public void runTest() { testLua2(); } }); | 47685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47685/cca1f7fd682b668919ea4380d6dcc96ced88770c/LuaTest.java/buggy/test/LuaTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
4709,
1435,
288,
1842,
48,
11886,
22,
5621,
289,
15549,
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,
... | [
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,
540,
1071,
918,
1086,
4709,
1435,
288,
1842,
48,
11886,
22,
5621,
289,
15549,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public org.quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { org.quickfix.field.LegInstrRegistry value = new org.quickfix.field.LegInstrRegistry(); | public quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { quickfix.field.LegInstrRegistry value = new quickfix.field.LegInstrRegistry(); | public org.quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { org.quickfix.field.LegInstrRegistry value = new org.quickfix.field.LegInstrRegistry(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
336,
8329,
382,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
701,
4243,
336,
8329,
382,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
46... |
+ OBJ16_PATH + "data_set.gif" ); | + OBJ16_PATH + "data_set.gif" ); | private final static void declareImages( ) { // common icons declareImage( ISharedImages.IMG_OBJS_ERROR_TSK, ICONS_PATH + PROGRESS_PATH + "error_tsk.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_OBJ_FOLDER, ICONS_PATH + OBJ16_PATH + "fldr_obj.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_COPY, ICONS_PATH + ETOOL16_PATH + "copy_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_CUT, ICONS_PATH + ETOOL16_PATH + "cut_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_UNDO, ICONS_PATH + ETOOL16_PATH + "undo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_REDO, ICONS_PATH + ETOOL16_PATH + "redo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_PASTE, ICONS_PATH + ETOOL16_PATH + "paste_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_DELETE, ICONS_PATH + ETOOL16_PATH + "delete_edit.gif" ); //$NON-NLS-1$ declareImage(IReportGraphicConstants.ICON_ELEMENT_TEMPLATEITEM,ICONS_PATH + OBJ16_PATH + "templatereportitem.gif"); declareImage( IReportGraphicConstants.ICON_NEW_REPORT, ICONS_PATH + OBJ16_PATH + "new_report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_LIBRARY, ICONS_PATH + OBJ16_PATH + "new_library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_TEMPLATE, ICONS_PATH + OBJ16_PATH + "new_template.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_FILE, ICONS_PATH + EVIEW16_PATH + "report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_QUIK_EDIT, ICONS_PATH + EVIEW16_PATH + "quick_edit.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PERSPECTIVE, ICONS_PATH + EVIEW16_PATH + "report_perspective.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PROJECT, ICONS_PATH + OBJ16_PATH + "report_project.gif" ); //$NON-NLS-1$ // element icons declareImage( IReportGraphicConstants.ICON_ELEMENT_CELL, ICONS_PATH + OBJ16_PATH + "cell.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA, ICONS_PATH + OBJ16_PATH + "data.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GRID, ICONS_PATH + PAL_PATH + "grid.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXTDATA, ICONS_PATH + PAL_PATH + "textdata.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GROUP, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_IMAGE, ICONS_PATH + PAL_PATH + "image.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LABEL, ICONS_PATH + PAL_PATH + "label.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LINE, ICONS_PATH + OBJ16_PATH + "line.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST, ICONS_PATH + PAL_PATH + "list.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST_GROUP, ICONS_PATH + OBJ16_PATH + "list_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_MASTERPAGE, ICONS_PATH + OBJ16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_GRAPHICMASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_CASCADING_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ROW, ICONS_PATH + OBJ16_PATH + "row.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCALAR_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_SIMPLE_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_STYLE, ICONS_PATH + OBJ16_PATH + "style.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE, ICONS_PATH + PAL_PATH + "table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE_GROUP, ICONS_PATH + OBJ16_PATH + "table_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXT, ICONS_PATH + PAL_PATH + "text.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY, ICONS_PATH + OBJ16_PATH + "library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY_REFERENCED, ICONS_PATH + OBJ16_PATH + "library_referenced.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_THEME, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // outline icons declareImage( IReportGraphicConstants.ICON_NODE_BODY, ICONS_PATH + OBJ16_PATH + "body_icon.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_MASTERPAGES, ICONS_PATH + OBJ16_PATH + "master_pages.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_STYLES, ICONS_PATH + OBJ16_PATH + "styles.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_HEADER, ICONS_PATH + OBJ16_PATH + "header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DETAILS, ICONS_PATH + OBJ16_PATH + "details.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_FOOTER, ICONS_PATH + OBJ16_PATH + "footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUPS, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_HEADER, ICONS_PATH + OBJ16_PATH + "group_header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_FOOTER, ICONS_PATH + OBJ16_PATH + "group_footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_LIBRARIES, ICONS_PATH + OBJ16_PATH + "library_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_THEMES, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // layout icons declareImage( IReportGraphicConstants.ICON_LAYOUT_NORMAL, ICONS_PATH + EVIEW16_PATH + "normal_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_RULER, ICONS_PATH + EVIEW16_PATH + "show_rulers.gif" ); //$NON-NLS-1$ // border icons declareImage( IReportGraphicConstants.ICON_BORDER_ALL, ICONS_PATH + OBJ16_PATH + "borders_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_NOBORDER, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ // missing image icons declareImage( IReportGraphicConstants.ICON_MISSING_IMG, ICONS_PATH + PROGRESS_PATH + "missing_image.gif" ); //$NON-NLS-1$ // data explore icons declareImage( IReportGraphicConstants.ICON_DATA_EXPLORER_VIEW, ICONS_PATH + EVIEW16_PATH + "data_explorer_view.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SETS, ICONS_PATH + OBJ16_PATH + "data_set_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SOURCES, ICONS_PATH + OBJ16_PATH + "data_source_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_PARAMETERS, ICONS_PATH + OBJ16_PATH + "parameter_folder.gif" ); //$NON-NLS-1$ // ********************************************************** // expression icons declareImage( IReportGraphicConstants.ICON_EXPRESSION_DATA_TABLE, ICONS_PATH + OBJ16_PATH + "data_table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_DATA_COLUMN, ICONS_PATH + OBJ16_PATH + "data_column.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_OPERATOR, ICONS_PATH + OBJ16_PATH + "operator.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_GLOBAL, ICONS_PATH + OBJ16_PATH + "global.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_METHOD, ICONS_PATH + OBJ16_PATH + "method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_METHOD, ICONS_PATH + OBJ16_PATH + "static_method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_MEMBER, ICONS_PATH + OBJ16_PATH + "property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_MEMBER, ICONS_PATH + OBJ16_PATH + "static_property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_BUILDER, ICONS_PATH + OBJ16_PATH + "expression.gif" ); //$NON-NLS-1$ // data wizards declareImage( IReportGraphicConstants.ICON_WIZARD_DATASOURCE, ICONS_PATH + WIZBAN_PATH + "datasource_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARD_DATASET, ICONS_PATH + WIZBAN_PATH + "dataset_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARDPAGE_DATASETSELECTION, ICONS_PATH + WIZBAN_PATH + "dataset_wizard_table.gif" ); //$NON-NLS-1$ // ///////////////////attribute image declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH, ICONS_PATH + OBJ16_PATH + "bold.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "bold_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE, ICONS_PATH + OBJ16_PATH + "italic.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "italic_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE, ICONS_PATH + OBJ16_PATH + "underline.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "underline_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH, ICONS_PATH + OBJ16_PATH + "lineSthrough.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "lineSthrough_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_NONE, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_FRAME, ICONS_PATH + OBJ16_PATH + "border_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER, ICONS_PATH + OBJ16_PATH + "center_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "center_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY, ICONS_PATH + OBJ16_PATH + "justified_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "justified_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT, ICONS_PATH + OBJ16_PATH + "left_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "left_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT, ICONS_PATH + OBJ16_PATH + "right_align.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "right_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TOP_MARGIN, ICONS_PATH + MISC_PATH + "top_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BOTTOM_MARGIN, ICONS_PATH + MISC_PATH + "bottom_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_LEFT_MARGIN, ICONS_PATH + MISC_PATH + "left_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_RIGHT_MARGIN, ICONS_PATH + MISC_PATH + "right_margin.gif" ); //$NON-NLS-1$ // ********************************************************** // Preview icons declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS, ICONS_PATH + PROGRESS_PATH + "params_ecl_show.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS_HIDE, ICONS_PATH + PROGRESS_PATH + "params_ecl_hide.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_REFRESH, ICONS_PATH + ETOOL16_PATH + "refresh.gif" ); //$NON-NLS-1$ // Auto Text Icon declareImage( IReportGraphicConstants.ICON_AUTOTEXT, ICONS_PATH + OBJ16_PATH + "autotext.gif" ); //$NON-NLS-1$ // Parameter dialog icon declareImage( IReportGraphicConstants.ICON_DEFAULT, ICONS_PATH + OBJ16_PATH + "default.gif" ); //$NON-NLS-1$ // Data editor dialog icons declareImage( IReportGraphicConstants.ICON_DATAEDIT_DLG_TITLE_BANNER, ICONS_PATH + OBJ16_PATH + "prop_dialog_title.gif" ); //$NON-NLS-1$ // Open file icon declareImage( IReportGraphicConstants.ICON_OPEN_FILE, ICONS_PATH + ETOOL16_PATH + "open_file.gif" ); //$NON-NLS-1$ declareImage( "TableRowSelector", ICONS_PATH + OBJ16_PATH + "tablerowselector.gif" ); //$NON-NLS-1$ //$NON-NLS-2$ declareImage( IReportGraphicConstants.ICON_ENABLE_LOCAL_PROPERTIES, ICONS_PATH + OBJ16_PATH + "property_reference.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_TEMPLATE_NO_PREVIEW, ICONS_PATH + MISC_PATH + "no_preview.gif" ); //$NON-NLS-1$ } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/fc4e6f5b2530a52954d5ca28772ebf46d133b052/ReportPlatformUIImages.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlatformUIImages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
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,
1152,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
... |
handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); | handleExecutionFailure( rm, rootProject, e, task, System.currentTimeMillis() - buildStartTime ); | private void executeTaskSegments( List taskSegments, ReactorManager rm, MavenSession session, MavenProject rootProject, EventDispatcher dispatcher, MavenExecutionResponse response ) throws ArtifactNotFoundException, MojoExecutionException, LifecycleExecutionException, MojoFailureException, ArtifactResolutionException { for ( Iterator it = taskSegments.iterator(); it.hasNext(); ) { TaskSegment segment = (TaskSegment) it.next(); if ( segment.aggregate() ) { if ( !rm.isBlackListed( rootProject ) ) { line(); getLogger().info( "Building " + rootProject.getName() ); getLogger().info( " " + segment ); line(); // !! This is ripe for refactoring to an aspect. // Event monitoring. String event = MavenEvents.PROJECT_EXECUTION; long buildStartTime = System.currentTimeMillis(); dispatcher.dispatchStart( event, rootProject.getId() + " ( " + segment + " )" ); try { // only call once, with the top-level project (assumed to be provided as a parameter)... for ( Iterator goalIterator = segment.getTasks().iterator(); goalIterator.hasNext(); ) { String task = (String) goalIterator.next(); try { executeGoal( task, session, rootProject, response ); } catch ( MojoExecutionException e ) { // TODO: should this be removed? handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } catch ( ArtifactResolutionException e ) { // TODO: should this be removed? handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } catch ( MojoFailureException e ) { handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } catch ( ArtifactNotFoundException e ) { handleExecutionFailure( rm, rootProject, e, task, buildStartTime ); } } rm.registerBuildSuccess( rootProject, System.currentTimeMillis() - buildStartTime ); dispatcher.dispatchEnd( event, rootProject.getId() + " ( " + segment + " )" ); } catch ( LifecycleExecutionException e ) { dispatcher.dispatchError( event, rootProject.getId() + " ( " + segment + " )", e ); throw e; } } else { line(); getLogger().info( "SKIPPING " + rootProject.getName() ); getLogger().info( " " + segment ); getLogger().info( "This project has been banned from further executions due to previous failures." ); line(); } } else { List sortedProjects = session.getSortedProjects(); response.setExecutedMultipleProjects( true ); // iterate over projects, and execute on each... for ( Iterator projectIterator = sortedProjects.iterator(); projectIterator.hasNext(); ) { MavenProject currentProject = (MavenProject) projectIterator.next(); if ( !rm.isBlackListed( currentProject ) ) { line(); getLogger().info( "Building " + currentProject.getName() ); getLogger().info( " " + segment ); line(); // !! This is ripe for refactoring to an aspect. // Event monitoring. String event = MavenEvents.PROJECT_EXECUTION; long buildStartTime = System.currentTimeMillis(); dispatcher.dispatchStart( event, currentProject.getId() + " ( " + segment + " )" ); try { for ( Iterator goalIterator = segment.getTasks().iterator(); goalIterator.hasNext(); ) { String task = (String) goalIterator.next(); try { executeGoal( task, session, currentProject, response ); } catch ( MojoExecutionException e ) { // TODO: should this be removed? handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } catch ( ArtifactResolutionException e ) { // TODO: should this be removed? handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } catch ( MojoFailureException e ) { handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } catch ( ArtifactNotFoundException e ) { handleExecutionFailure( rm, currentProject, e, task, buildStartTime ); } } rm.registerBuildSuccess( currentProject, System.currentTimeMillis() - buildStartTime ); dispatcher.dispatchEnd( event, currentProject.getId() + " ( " + segment + " )" ); } catch ( LifecycleExecutionException e ) { dispatcher.dispatchError( event, currentProject.getId() + " ( " + segment + " )", e ); throw e; } } else { line(); getLogger().info( "SKIPPING " + currentProject.getName() ); getLogger().info( " " + segment ); getLogger().info( "This project has been banned from further executions due to previous failures." ); line(); } } } } } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/ce8f50cc0a6e4cf8320f652fc92a50225625e246/DefaultLifecycleExecutor.java/clean/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1836,
2174,
7946,
12,
987,
1562,
7946,
16,
868,
3362,
1318,
6692,
16,
17176,
2157,
1339,
16,
4766,
1377,
17176,
4109,
1365,
4109,
16,
31153,
7393,
16,
4766,
1377,
17176,
3210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
2174,
7946,
12,
987,
1562,
7946,
16,
868,
3362,
1318,
6692,
16,
17176,
2157,
1339,
16,
4766,
1377,
17176,
4109,
1365,
4109,
16,
31153,
7393,
16,
4766,
1377,
17176,
3210,
... |
String desc = " Critical hit on " + en.getLocationAbbr(loc) + ". "; | StringBuffer desc = new StringBuffer(); desc.append( " Critical hit on " ) .append( en.getLocationAbbr(loc) ) .append( ". " ); | private String criticalEntity(Entity en, int loc) { String desc = " Critical hit on " + en.getLocationAbbr(loc) + ". "; int hits = 0; int roll = Compute.d6(2); desc += "Roll = " + roll + ";"; if (roll <= 7) { desc += " no effect."; return desc; } else if (roll >= 8 && roll <= 9) { hits = 1; desc += " 1 location."; } else if (roll >= 10 && roll <= 11) { hits = 2; desc += " 2 locations."; } else if (roll == 12) { if (en instanceof Tank) { hits = 3; desc += " 3 locations."; } else if (en.locationIsLeg(loc)) { desc += "<<<LIMB BLOWN OFF>>> " + en.getLocationName(loc) + " blown off."; if (en.getInternal(loc) > 0) { destroyLocation(en, loc); } return desc; } else if (loc == Mech.LOC_RARM || loc == Mech.LOC_LARM) { desc += "<<<LIMB BLOWN OFF>>> " + en.getLocationName(loc) + " blown off."; destroyLocation(en, loc); return desc; } else if (loc == Mech.LOC_HEAD) { desc += "<<<HEAD BLOWN OFF>>> " + en.getLocationName(loc) + " blown off."; destroyLocation(en, loc); en.crew.setDoomed(true); desc += "\n*** " + en.getDisplayName() + " PILOT KILLED! ***"; return desc; } else { // torso hit hits = 3; desc += " 3 locations."; } } // vehicle handle crits in their own 'special' way if (en instanceof Tank) { Tank tank = (Tank)en; for (int x = 0; x < hits && !tank.isDoomed(); x++) { switch (Compute.d6(1)) { case 1 : desc += "\n <<<CRITICAL HIT>>> Crew stunned for 3 turns"; // Carried units can't unload from a stunned transport. // Units that escape a transport don't need to un-stun. tank.stunCrew(); break; case 2 : // this one's ridiculous. the 'main weapon' jams. Mounted mWeap = tank.getMainWeapon(); if (mWeap == null) { desc += "\n No main weapon crit, because no main weapon!"; } else { desc += "\n <<<CRITICAL HIT>>> " + mWeap.getName() + " jams for 1 turn."; tank.setJammedWeapon(mWeap); } break; case 3 : desc += "\n <<<CRITICAL HIT>>> Engine destroyed. Immobile."; tank.immobilize(); // Does the hovercraft sink? Hex te_hex = game.board.getHex( en.getPosition() ); if ( en.getMovementType() == Entity.MovementType.HOVER && te_hex.levelOf(Terrain.WATER) > 0 ) { desc += destroyEntity(en, "a watery grave", false); } break; case 4 : desc += "\n <<<CRITICAL HIT>>> Crew killed"; desc += destroyEntity(en, "crew death", true); en.getCrew().setDoomed(true); break; case 5 : desc += "\n <<<CRITICAL HIT>>> Fuel Tank / Engine Shielding Hit (Vehicle Explodes)"; desc += destroyEntity(en, "fuel tank explosion", false, false); en.getCrew().setDoomed(true); break; case 6 : desc += "\n <<<CRITICAL HIT>>> Power plant hit. BOOM!"; desc += destroyEntity(en, "power plant destruction", false, false); en.getCrew().setDoomed(true); break; } } } else { // transfer criticals, if needed while (hits > 0 && en.canTransferCriticals(loc) && en.getTransferLocation(loc) != Entity.LOC_DESTROYED) { loc = en.getTransferLocation(loc); desc += "\n Location is empty, so criticals transfer to " + en.getLocationAbbr(loc) +"."; } // roll criticals while (hits > 0) { if (en.getHittableCriticals(loc) <= 0) { desc += "\n Location has no more hittable critical slots."; break; } int slot = Compute.randomInt(en.getNumberOfCriticals(loc)); CriticalSlot cs = en.getCritical(loc, slot); if (cs == null || !cs.isHittable()) { continue; } cs.setHit(true); switch(cs.getType()) { case CriticalSlot.TYPE_SYSTEM : desc += "\n <<<CRITICAL HIT>>> on " + Mech.systemNames[cs.getIndex()] + "."; switch(cs.getIndex()) { case Mech.SYSTEM_COCKPIT : // boink! en.crew.setDoomed(true); desc += "\n*** " + en.getDisplayName() + " PILOT KILLED! ***"; break; case Mech.SYSTEM_ENGINE : en.engineHitsThisRound++; boolean engineExploded = false; StringBuffer descBuffer = new StringBuffer(); if ( en.engineHitsThisRound >= 2 ) { engineExploded = checkEngineExplosion(en, descBuffer); } desc += descBuffer.toString(); if ( !engineExploded ) { int numEngineHits = 0; numEngineHits += en.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_CT); numEngineHits += en.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_RT); numEngineHits += en.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_LT); if ( numEngineHits > 2 ) { // third engine hit desc += destroyEntity(en, "engine destruction"); } } break; case Mech.SYSTEM_GYRO : if (en.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_GYRO, loc) > 1) { // gyro destroyed game.addPSR(new PilotingRollData(en.getId(), PilotingRollData.AUTOMATIC_FAIL, 3, "gyro destroyed")); } else { // first gyro hit game.addPSR(new PilotingRollData(en.getId(), 3, "gyro hit")); } break; case Mech.ACTUATOR_UPPER_LEG : case Mech.ACTUATOR_LOWER_LEG : case Mech.ACTUATOR_FOOT : // leg/foot actuator piloting roll game.addPSR(new PilotingRollData(en.getId(), 1, "leg/foot actuator hit")); break; case Mech.ACTUATOR_HIP : // hip piloting roll game.addPSR(new PilotingRollData(en.getId(), 2, "hip actuator hit")); break; } break; case CriticalSlot.TYPE_EQUIPMENT : Mounted mounted = en.getEquipment(cs.getIndex()); EquipmentType eqType = mounted.getType(); boolean hitBefore = mounted.isHit(); desc += "\n <<<CRITICAL HIT>>> on " + mounted.getDesc() + "."; mounted.setHit(true); // If the item is the ECM suite of a Mek Stealth system // then it's destruction turns off the stealth. if ( !hitBefore && eqType instanceof MiscType && eqType.hasFlag(MiscType.F_ECM) && mounted.getLinkedBy() != null ) { Mounted stealth = mounted.getLinkedBy(); desc += "\n " + stealth.getType().getName() + " will stop functioning at end of turn."; stealth.setMode( "Off" ); } // Handle equipment explosions. if (eqType.isExplosive() && !hitBefore) { desc += explodeEquipment(en, loc, slot); } break; } hits--; } } return desc; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/5f077104f6d702810b2c4490ff78502719c53f73/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
11239,
1943,
12,
1943,
570,
16,
509,
1515,
13,
288,
3639,
6674,
3044,
273,
394,
6674,
5621,
3044,
18,
6923,
12,
315,
3639,
385,
15197,
6800,
603,
315,
262,
263,
6923,
12,
570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
11239,
1943,
12,
1943,
570,
16,
509,
1515,
13,
288,
3639,
6674,
3044,
273,
394,
6674,
5621,
3044,
18,
6923,
12,
315,
3639,
385,
15197,
6800,
603,
315,
262,
263,
6923,
12,
570... |
System.out.println("testDbHandleEquality"); | System.out.println("test- testDbHandleEquality"); | public void testDbHandleEquality() throws Exception { System.out.println(); System.out.println("testDbHandleEquality"); db1 = createDatabase(dbName); db2 = gds.get_new_isc_db_handle();// gds.isc_attach_database(dbName, db2, dpb_length, dpb); gds.isc_attach_database(dbName, db2, c); System.out.println("rdb_id1: " + ((isc_db_handle_impl)db1).getRdb_id()); System.out.println("rdb_id2: " + ((isc_db_handle_impl)db2).getRdb_id()); System.out.println("isc_detach_database"); gds.isc_detach_database(db1); gds.isc_detach_database(db2); System.out.println("isc_attach_database");// gds.isc_attach_database(dbName, db1, dpb_length, dpb); gds.isc_attach_database(dbName, db1, c); dropDatabase(db1); } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/f95bfd6ee37ab19e341d5544efb72e22f83ecff2/TestGds.java/buggy/src/org/firebirdsql/jgds/TestGds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4331,
3259,
20273,
1435,
1216,
1185,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
3813,
17,
1842,
4331,
3259,
20273,
8863,
3639,
1319,
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,
377,
1071,
918,
1842,
4331,
3259,
20273,
1435,
1216,
1185,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
3813,
17,
1842,
4331,
3259,
20273,
8863,
3639,
1319,
2... |
this.address = address; | public EmailAddress( String address ) { this.address = address; } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/b5b99c769a21d3602ee35948cf004925f03464ba/EmailAddress.java/clean/src/main/org/apache/tools/ant/taskdefs/email/EmailAddress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8166,
1887,
12,
514,
1758,
262,
565,
288,
6647,
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,
0,
0,
0,... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8166,
1887,
12,
514,
1758,
262,
565,
288,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
true, true); | true); | public Message marshalResponse(Object returnObject, Object[] signatureArgs) throws WebServiceException { // Note all exceptions are caught and rethrown with a WebServiceException try { // Sample RPC message // .. // <soapenv:body> // <m:opResponse xmlns:m="urn://api"> // <m:param xsi:type="data:foo" xmlns:data="urn://mydata" >...</m:param> // </m:op> // </soapenv:body> // // Important points. // 1) RPC has an operation element under the body. This is the name of the // wsdl operation. // 2) The data blocks are located underneath the operation element. (In doc/lit // the data elements are underneath the body. // 3) The name of the data blocks (m:param) are defined by the wsdl:part not the // schema. // 4) The type of the data block (data:foo) is defined by schema (thus there is // JAXB type rendering. Since we are using JAXB to marshal the data, // we always generate an xsi:type attribute. This is an implemenation detail // and is not defined by any spec. // Get the operation information ParameterDescription[] pds =operationDesc.getParameterDescriptions(); Set<Package> packages = endpointDesc.getPackages(); // Create the message MessageFactory mf = (MessageFactory)FactoryRegistry.getFactory(MessageFactory.class); Message m = mf.create(protocol); // Indicate the style and operation element name. This triggers the message to // put the data blocks underneath the operation element m.setStyle(Style.RPC); // TODO Is there an annotation for the operation element response ? String localPart = operationDesc.getName().getLocalPart() + "Response"; QName responseOp = new QName(operationDesc.getName().getNamespaceURI(), localPart); m.setOperationElement(responseOp); // Put the return object onto the message Class returnType = MethodMarshallerUtils.getActualReturnType(operationDesc); if (returnType != void.class) { MethodMarshallerUtils.toMessage(returnObject, returnType, operationDesc.getResultTargetNamespace(), operationDesc.getResultPartName(), packages, m, true); // forceXSI since this is rpc/lit } // Convert the holder objects into a list of JAXB objects for marshalling List<PDElement> pvList = MethodMarshallerUtils.getPDElements(pds, signatureArgs, false, // output true, // use partName since this is rpc/lit true); // forceXSI since this is rpc/lit // Put values onto the message MethodMarshallerUtils.toMessage(pvList, m, packages); return m; } catch(Exception e) { throw ExceptionFactory.makeWebServiceException(e); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/066ff1ac24e892b5739f781c5db4c68ec12cd314/RPCLitMethodMarshaller.java/clean/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/RPCLitMethodMarshaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
10893,
1064,
12,
921,
327,
921,
16,
1033,
8526,
3372,
2615,
13,
5411,
1216,
2999,
15133,
288,
3639,
368,
3609,
777,
4798,
854,
13537,
471,
22225,
82,
598,
279,
2999,
15133,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
10893,
1064,
12,
921,
327,
921,
16,
1033,
8526,
3372,
2615,
13,
5411,
1216,
2999,
15133,
288,
3639,
368,
3609,
777,
4798,
854,
13537,
471,
22225,
82,
598,
279,
2999,
15133,
36... |
public void selected() { /*fireSelected(false);*/ } | public void selected() { fireSelected(false); } | private void initComponents() { _root = new Composite(_parent, SWT.NONE); _root.setLayout(new GridLayout(1, true)); _tree = new Tree(_root, SWT.BORDER | SWT.SINGLE); _tree.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); _colSubject = new TreeColumn(_tree, SWT.LEFT); _colType = new TreeColumn(_tree, SWT.LEFT); _colAuthor = new TreeColumn(_tree, SWT.LEFT); _colChannel = new TreeColumn(_tree, SWT.LEFT); _colDate = new TreeColumn(_tree, SWT.LEFT); _colTags = new TreeColumn(_tree, SWT.LEFT); _tree.addListener(SWT.MeasureItem, new Listener() { public void handleEvent(Event evt) { if (evt.index == 1) { MessageFlagBar bar = (MessageFlagBar)_itemToMsgFlags.get(evt.item); if (bar != null) { Image imgs[] = bar.getFlags(); int width = _tree.getGridLineWidth() * 2; for (int i = 0; i < imgs.length; i++) width += imgs[i].getBounds().width + FLAG_SPACING; evt.width = width; //evt.height = sz.y; } } } }); _tree.addListener(SWT.PaintItem, new Listener() { public void handleEvent(Event evt) { if (evt.index == 1) { MessageFlagBar bar = (MessageFlagBar)_itemToMsgFlags.get(evt.item); if (bar != null) { Image imgs[] = bar.getFlags(); String tt = bar.getTooltip(); int off = evt.x; _browser.getUI().debugMessage("paint height:" + evt.height + " y:" + evt.y + " x:" + evt.x); for (int i = 0; i < imgs.length; i++) { Rectangle sz = imgs[i].getBounds(); int excess = evt.height-sz.height; if (excess > 1) evt.gc.drawImage(imgs[i], off, evt.y + excess/2); else evt.gc.drawImage(imgs[i], off, evt.y + excess/2); off += imgs[i].getBounds().width + FLAG_SPACING; } } } } }); _tree.setHeaderVisible(true); _tree.setLinesVisible(true); _menu = new Menu(_tree); _tree.setMenu(_menu); _view = new MenuItem(_menu, SWT.PUSH); _view.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { viewSelected(); } public void widgetSelected(SelectionEvent selectionEvent) { viewSelected(); } }); _markRead = new MenuItem(_menu, SWT.PUSH); _markRead.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { markRead(); } public void widgetSelected(SelectionEvent selectionEvent) { markRead(); } }); _markAllRead = new MenuItem(_menu, SWT.PUSH); _markAllRead.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { markAllRead(); } public void widgetSelected(SelectionEvent selectionEvent) { markAllRead(); } }); Composite filterRow = new Composite(_root, SWT.BORDER); filterRow.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); filterRow.setLayout(new GridLayout(6, false)); _filterLabel = new Label(filterRow, SWT.NONE); _filterLabel.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, false)); _filterAge = new Combo(filterRow, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER); _filterAge.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false)); _filterAge.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { if (_filterAge.getSelectionIndex() == AGE_CUSTOM) pickDate(); else applyFilter(); } public void widgetSelected(SelectionEvent selectionEvent) { if (_filterAge.getSelectionIndex() == AGE_CUSTOM) pickDate(); else applyFilter(); } }); _filterTagLabel = new Label(filterRow, SWT.NONE); _filterTagLabel.setLayoutData(new GridData(GridData.END, GridData.CENTER, false, false)); _filterTag = new Combo(filterRow, SWT.DROP_DOWN | SWT.BORDER); _filterTag.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false)); _filterTag.addTraverseListener(new TraverseListener() { public void keyTraversed(TraverseEvent evt) { if (evt.detail == SWT.TRAVERSE_RETURN) applyFilter(); } }); _filterTag.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { applyFilter(); } public void widgetSelected(SelectionEvent selectionEvent) { applyFilter(); } }); _filterUnreadOnly = new Button(filterRow, SWT.CHECK); _filterUnreadOnly.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { applyFilter(); } public void widgetSelected(SelectionEvent selectionEvent) { applyFilter(); } }); _filterAdvanced = new Button(filterRow, SWT.PUSH); _filterAdvanced.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false)); _filterAdvanced.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent selectionEvent) { editFilter(); } public void widgetSelected(SelectionEvent selectionEvent) { editFilter(); } }); SyndieTreeListener lsnr = new SyndieTreeListener(_tree) { public void resized() { resizeCols(); } public void selected() { /*fireSelected(false);*/ } public void returnHit() { fireSelected(true); } public void doubleclick() { fireSelected(true); } public boolean collapseOnReturn() { return false; } }; _tree.addSelectionListener(lsnr); _tree.addControlListener(lsnr); _tree.addTraverseListener(lsnr); _tree.addKeyListener(lsnr); _tree.addMouseListener(lsnr); _browser.getTranslationRegistry().register(this); _browser.getThemeRegistry().register(this); } | 27487 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27487/9c1bebf433dc822c5f6693e81e1d9faaaf7725f7/MessageTree.java/buggy/src/syndie/gui/MessageTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
389,
3085,
273,
394,
14728,
24899,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
389,
3085,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
7171,
1435,
288,
3639,
389,
3085,
273,
394,
14728,
24899,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
389,
3085,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
638,
10... |
byte[] padded = new byte[width * oldHeight * c]; int clip = (width - oldWidth) / 2; | if (xpad == 0 && totalX > 0) xpad = totalX; if (ypad == 0 && totalY > 0) ypad = totalY; | public static byte[] padImage(byte[] b, boolean interleaved, int c, int oldWidth, int width, int height) { boolean needsPadding = (oldWidth != width) || ((b.length / (oldWidth*c)) != height); if (needsPadding) { int oldHeight = b.length / (oldWidth * c); // adjust to correct width byte[] padded = new byte[width * oldHeight * c]; int clip = (width - oldWidth) / 2; for (int i=0; i<oldHeight; i++) { System.arraycopy(b, i*oldWidth*c, padded, i*width*c, clip < 0 ? width*c : oldWidth*c); } // adjust to correct height byte[] rtn = new byte[width * height * c]; clip = (height - oldHeight) / 2; if (clip < 0) { clip *= -1; for (int i=0; i<height; i++) { System.arraycopy(padded, (i+clip)*width*c, rtn, i*width*c, width*c); } } else { for (int i=clip; i<height+clip; i++) { System.arraycopy(padded, i*width*c, rtn, (i-clip)*width*c, width*c); } } return rtn; } return b; } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/23ac7e153f199dc75b71ab8259e74911eaa82fa8/ImageTools.java/buggy/loci/formats/ImageTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1160,
8526,
4627,
2040,
12,
7229,
8526,
324,
16,
1250,
1554,
22593,
16,
509,
276,
16,
565,
509,
1592,
2384,
16,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
1250,
4260,
9485,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
4627,
2040,
12,
7229,
8526,
324,
16,
1250,
1554,
22593,
16,
509,
276,
16,
565,
509,
1592,
2384,
16,
509,
1835,
16,
509,
2072,
13,
225,
288,
565,
1250,
4260,
9485,... |
for (Iterator i = projectContentExtensions.iterator(); i.hasNext(); ) { | for (Iterator i = projectContentExtensions.iterator(); i.hasNext();) { | public void testFindValidExtensions() { contentService.activateExtensions(new String[] { TEST_EXTENSION_ID, RESOURCE_EXTENSION_ID }, true); ITreeContentProvider contentServiceContentProvider = contentService .createCommonContentProvider(); ILabelProvider contentServiceLabelProvider = contentService .createCommonLabelProvider(); ITreeContentProvider[] rootContentProviders = ((NavigatorContentService) contentService) .findRootContentProviders(ResourcesPlugin.getWorkspace() .getRoot()); assertEquals("Ensure there is only one root content provider.", 1, rootContentProviders.length); Set projectContentExtensions = contentService.findContentExtensionsByTriggerPoint(project); assertEquals("Ensure there are two content providers for an IProject.", 2, projectContentExtensions.size()); boolean found = false; INavigatorContentExtension ext; for (Iterator i = projectContentExtensions.iterator(); i.hasNext(); ) { ext = (INavigatorContentExtension) i.next(); if (((SafeDelegateTreeContentProvider) ext.getContentProvider()) .getDelegateContentProvider() instanceof TestContentProvider) { TestContentProvider testContentProvider = (TestContentProvider) ((SafeDelegateTreeContentProvider) ext.getContentProvider()) .getDelegateContentProvider(); Object[] projectChildren = testContentProvider .getChildren(project); assertEquals( "There should be one test-type child of the project.", 1, projectChildren.length); assertEquals("Parent", contentServiceLabelProvider .getText(projectChildren[0])); Object[] testRootChildren = contentServiceContentProvider .getChildren(projectChildren[0]); assertEquals( "There should be one test-type child of the root test-type item.", 3, testRootChildren.length); found = true; } } assertTrue("The test content provider was not found.", found); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/aa8664756ad43f4cca8fb1d64f5c180694088a19/INavigatorContentServiceTests.java/clean/tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/INavigatorContentServiceTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3125,
1556,
7513,
1435,
288,
202,
202,
1745,
1179,
18,
10014,
7513,
12,
2704,
514,
8526,
288,
22130,
67,
12796,
67,
734,
16,
9506,
202,
11395,
67,
12796,
67,
734,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3125,
1556,
7513,
1435,
288,
202,
202,
1745,
1179,
18,
10014,
7513,
12,
2704,
514,
8526,
288,
22130,
67,
12796,
67,
734,
16,
9506,
202,
11395,
67,
12796,
67,
734,
1... |
synchronized (getTreeLock()) { | public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); // Show visible owned windows. synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get()); if (w != null) { if (w.isVisible()) w.getPeer().setVisible(true); } else // Remove null weak reference from ownedWindows. // Unfortunately this can't be done in the Window's // finalize method because there is no way to guarantee // synchronous access to ownedWindows there. e.remove(); } } validate(); super.show(); toFront(); KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.setGlobalFocusedWindow (this); if (!shown) { FocusTraversalPolicy policy = getFocusTraversalPolicy (); Component initialFocusOwner = null; if (policy != null) initialFocusOwner = policy.getInitialComponent (this); if (initialFocusOwner != null) initialFocusOwner.requestFocusInWindow (); shown = true; } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/6e4ec07c0968941d3ef04ac8c304cb201d8d0993/Window.java/buggy/java/awt/Window.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
3852,
261,
588,
2471,
2531,
10756,
288,
225,
3852,
261,
588,
2471,
2531,
10756,
288,
1071,
3852,
261,
588,
2471,
2531,
10756,
288,
918,
3852,
261,
588,
2471,
2531,
10756,
288,
2405,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
261,
588,
2471,
2531,
10756,
288,
225,
3852,
261,
588,
2471,
2531,
10756,
288,
1071,
3852,
261,
588,
2471,
2531,
10756,
288,
918,
3852,
261,
588,
2471,
2531,
10756,
288,
2405,
1435,
... | |
if (parent != null) return parent.getForeground(); return null; | return parent == null ? null : parent.getForeground(); | public Color getForeground() { if (foreground != null) return foreground; if (parent != null) return parent.getForeground(); return null; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/fb0219dcce2e53020800c655562b5f7351b0579b/Component.java/clean/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5563,
2812,
479,
2915,
1435,
225,
288,
565,
309,
261,
1405,
2915,
480,
446,
13,
1377,
327,
16231,
31,
565,
309,
261,
2938,
480,
446,
13,
1377,
327,
982,
18,
588,
23206,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5563,
2812,
479,
2915,
1435,
225,
288,
565,
309,
261,
1405,
2915,
480,
446,
13,
1377,
327,
16231,
31,
565,
309,
261,
2938,
480,
446,
13,
1377,
327,
982,
18,
588,
23206,
5621,
565,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.