rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
throw new IllegalStateException("impossible", e);
throw new AssertionError(e);
public Object clone() { BugInstance dup; try { dup = (BugInstance) super.clone(); // Do deep copying of mutable objects for (int i = 0; i < dup.annotationList.size(); ++i) { dup.annotationList.set(i, (BugAnnotation) dup.annotationList.get(i).clone()); } dup.propertyListHead = dup.propertyListTail = null; for (Iterator<BugProperty> i = propertyIterator(); i.hasNext(); ) { dup.addProperty((BugProperty) i.next().clone()); } return dup; } catch (CloneNotSupportedException e) { throw new IllegalStateException("impossible", e); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b569d4a55b20500a4cfcdda4b603427f998a74e2/BugInstance.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 288, 202, 202, 19865, 1442, 9417, 31, 9506, 202, 698, 288, 1082, 202, 26427, 273, 261, 19865, 1442, 13, 2240, 18, 14056, 5621, 25083, 202, 759, 2256, 4608, 893...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 3236, 1435, 288, 202, 202, 19865, 1442, 9417, 31, 9506, 202, 698, 288, 1082, 202, 26427, 273, 261, 19865, 1442, 13, 2240, 18, 14056, 5621, 25083, 202, 759, 2256, 4608, 893...
Template t = Runtime.getTemplate( templateName );
public static boolean templateExists( String templateName ) { try { Template t = Runtime.getTemplate( templateName ); return true; } catch( Exception e ) { return false; } }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/cebbd15b5b7862a8934fde63f5c50caa19526d97/Velocity.java/buggy/src/java/org/apache/velocity/app/Velocity.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1542, 4002, 12, 514, 15523, 262, 565, 288, 3639, 775, 3639, 288, 15604, 327, 638, 31, 3639, 289, 3639, 1044, 12, 1185, 425, 262, 3639, 288, 5411, 327, 629, 31, 3639, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1250, 1542, 4002, 12, 514, 15523, 262, 565, 288, 3639, 775, 3639, 288, 15604, 327, 638, 31, 3639, 289, 3639, 1044, 12, 1185, 425, 262, 3639, 288, 5411, 327, 629, 31, 3639, 28...
WorkingSetDescriptor[] descriptors= WorkbenchPlugin.getDefault() .getWorkingSetRegistry().getDescriptorsForNamespace(event.getBundle().getSymbolicName()); synchronized(updaters) { for (int i= 0; i < descriptors.length; i++) { WorkingSetDescriptor descriptor= descriptors[i]; List workingSets= getWorkingSetsForId(descriptor.getId()); if (workingSets.size() == 0) { continue; } IWorkingSetUpdater updater= getUpdater(descriptor); for (Iterator iter= workingSets.iterator(); iter.hasNext();) { IWorkingSet workingSet= (IWorkingSet)iter.next(); if (!updater.contains(workingSet)) { updater.add(workingSet);
if (event.getBundle().getState() == Bundle.ACTIVE) { WorkingSetDescriptor[] descriptors = WorkbenchPlugin.getDefault() .getWorkingSetRegistry().getDescriptorsForNamespace( event.getBundle().getSymbolicName()); synchronized (updaters) { for (int i = 0; i < descriptors.length; i++) { WorkingSetDescriptor descriptor = descriptors[i]; List workingSets = getWorkingSetsForId(descriptor.getId()); if (workingSets.size() == 0) { continue; } IWorkingSetUpdater updater = getUpdater(descriptor); for (Iterator iter = workingSets.iterator(); iter.hasNext();) { IWorkingSet workingSet = (IWorkingSet) iter.next(); if (!updater.contains(workingSet)) { updater.add(workingSet); }
public void bundleChanged(BundleEvent event) { if (event.getBundle().getState() != Bundle.ACTIVE) { return; } if (event.getBundle().getSymbolicName() == null) return; // If the workbench isn't running anymore simply return. if (!Workbench.getInstance().isRunning()) { return; } WorkingSetDescriptor[] descriptors= WorkbenchPlugin.getDefault() .getWorkingSetRegistry().getDescriptorsForNamespace(event.getBundle().getSymbolicName()); synchronized(updaters) { for (int i= 0; i < descriptors.length; i++) { WorkingSetDescriptor descriptor= descriptors[i]; List workingSets= getWorkingSetsForId(descriptor.getId()); if (workingSets.size() == 0) { continue; } IWorkingSetUpdater updater= getUpdater(descriptor); for (Iterator iter= workingSets.iterator(); iter.hasNext();) { IWorkingSet workingSet= (IWorkingSet)iter.next(); if (!updater.contains(workingSet)) { updater.add(workingSet); } } } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c0519039e1b5ba02e75a290f09029f9d1ed37d6f/AbstractWorkingSetManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/AbstractWorkingSetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3440, 5033, 12, 3405, 1133, 871, 13, 288, 202, 202, 430, 261, 2575, 18, 588, 3405, 7675, 588, 1119, 1435, 480, 8539, 18, 13301, 13, 288, 1082, 202, 2463, 31, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3440, 5033, 12, 3405, 1133, 871, 13, 288, 202, 202, 430, 261, 2575, 18, 588, 3405, 7675, 588, 1119, 1435, 480, 8539, 18, 13301, 13, 288, 1082, 202, 2463, 31, 202, 202, ...
long[] data = new long[170];
long[] data = new long[36];
private static final long[] mk_tokenSet_33() { long[] data = new long[170]; data[0]=720584758095491408L; data[1]=19043554009546769L; data[2]=4666287662003394952L; data[3]=4913147918581497856L; data[4]=8396959325669838928L; data[5]=1126451812400982L; data[6]=-7136571775889513934L; data[7]=576460765997580480L; data[8]=865183731141169152L; data[9]=-2998834386360598512L; data[10]=6775666242893120024L; data[11]=-2303590900162166268L; data[12]=3458766442362643714L; data[13]=-9222949799676084136L; data[14]=131L; data[15]=361411909712347664L; data[16]=9197085240081350022L; data[17]=2231237482240L; return data; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1525, 8526, 5028, 67, 2316, 694, 67, 3707, 1435, 288, 202, 202, 5748, 8526, 501, 273, 394, 1525, 63, 31779, 15533, 202, 202, 892, 63, 20, 65, 33, 27, 31777, 5193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1525, 8526, 5028, 67, 2316, 694, 67, 3707, 1435, 288, 202, 202, 5748, 8526, 501, 273, 394, 1525, 63, 31779, 15533, 202, 202, 892, 63, 20, 65, 33, 27, 31777, 5193, ...
return new CASTName(); }
return new CASTName(); }
protected IASTName createName() { return new CASTName(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/bcedb9a5c16dd4d172f27f0519a31f2ee9b1d68d/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 461, 752, 461, 1435, 288, 202, 202, 2463, 394, 6425, 882, 461, 5621, 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, ...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 461, 752, 461, 1435, 288, 202, 202, 2463, 394, 6425, 882, 461, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.BASE_SPECIFIER );
setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSetKey.BASE_SPECIFIER );
protected void baseSpecifier( IASTClassSpecifier astClassSpec) throws EndOfFileException, BacktrackException { consume(IToken.tCOLON); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.BASE_SPECIFIER ); boolean isVirtual = false; ASTAccessVisibility visibility = ASTAccessVisibility.PUBLIC; ITokenDuple nameDuple = null; baseSpecifierLoop : for (;;) { switch (LT(1)) { case IToken.t_virtual : consume(IToken.t_virtual); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.EMPTY ); isVirtual = true; break; case IToken.t_public : consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.EMPTY ); break; case IToken.t_protected : consume(); visibility = ASTAccessVisibility.PROTECTED; setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.EMPTY ); break; case IToken.t_private : visibility = ASTAccessVisibility.PRIVATE; consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.EMPTY ); break; case IToken.tCOLONCOLON : case IToken.tIDENTIFIER : nameDuple = name(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, Key.BASE_SPECIFIER ); break; case IToken.tCOMMA : try { astFactory.addBaseSpecifier( astClassSpec, isVirtual, visibility, nameDuple ); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "baseSpecifier_1::addBaseSpecifier", e ); //$NON-NLS-1$ throw backtrack; } isVirtual = false; visibility = ASTAccessVisibility.PUBLIC; nameDuple = null; consume(); setCompletionValues(astClassSpec.getOwnerScope(), CompletionKind.CLASS_REFERENCE, KeywordSets.Key.BASE_SPECIFIER ); continue baseSpecifierLoop; default : break baseSpecifierLoop; } } try { astFactory.addBaseSpecifier( astClassSpec, isVirtual, visibility, nameDuple ); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "baseSpecifier_2::addBaseSpecifier", e ); //$NON-NLS-1$ throw backtrack; } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/fb57293d470c0087b6edd9673084d38ceb95e5c2/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1026, 21416, 12, 3639, 467, 9053, 797, 21416, 3364, 797, 1990, 13, 3639, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 565, 288, 3639, 7865, 12, 1285, 969, 18, 88, 4935, 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, 4750, 918, 1026, 21416, 12, 3639, 467, 9053, 797, 21416, 3364, 797, 1990, 13, 3639, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 565, 288, 3639, 7865, 12, 1285, 969, 18, 88, 4935, 67...
}
}
public void doTag (XMLOutput output) throws MissingAttributeException, JellyTagException { // Check that this tag is used inside the body of // a DynaClass tag, so that it can access the // context of that tag DynaclassTag parentTag = (DynaclassTag) findAncestorWithClass( DynaclassTag.class ); if ( parentTag == null ) { throw new JellyTagException( "This tag must be enclosed inside a <dynaclass> tag" ); } // Check property name if (name == null) { throw new MissingAttributeException( "name" ); } // Lookup appropriate property class Class propClass = propertyClass; if (propClass == null) { // Check property type if (type == null) { throw new MissingAttributeException( "type" ); } if (type.equals("String")) { propClass = String.class; } else if (type.equals("Integer")) { propClass = Integer.TYPE; } else if (type.equals("Short")) { propClass = Short.TYPE; } else if (type.equals("Long")) { propClass = Long.TYPE; } else if (type.equals("Float")) { propClass = Float.TYPE; } else if (type.equals("Double")) { propClass = Double.TYPE; } else if (type.equals("Long")) { propClass = Long.TYPE; } if (propClass == null) { try { propClass = Class.forName(type); } catch (Exception e) { throw new JellyTagException ("Class " + type + " not found by Class.forName"); } } } // Create dynaproperty object with given name and type prop = new DynaProperty (name, propClass); // Add new property to dynaclass context parentTag.addDynaProperty(prop); }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/PropertyTag.java/clean/jelly-tags/dynabean/src/java/org/apache/commons/jelly/tags/dynabean/PropertyTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1805, 261, 4201, 1447, 876, 13, 1216, 10230, 1499, 503, 16, 804, 292, 715, 1805, 503, 288, 3639, 368, 2073, 716, 333, 1047, 353, 1399, 4832, 326, 1417, 434, 3639, 368, 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, 741, 1805, 261, 4201, 1447, 876, 13, 1216, 10230, 1499, 503, 16, 804, 292, 715, 1805, 503, 288, 3639, 368, 2073, 716, 333, 1047, 353, 1399, 4832, 326, 1417, 434, 3639, 368, 2...
resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window); moveMouseInputHandler = new FloatingMoveMouseInputHandler(window, applicationBarTitle); floatingAnimation = new FloatingAnimation(); }
resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window); moveMouseInputHandler = new FloatingMoveMouseInputHandler(window, applicationBarTitle); floatingAnimation = new FloatingAnimation(); }
private void initFloatingComponents() { window = new JModalWindow(descriptor.getWindowAnchestor(), null, false);// new JWindow(descriptor.getWindowAnchestor()); JPanel contentPane = new JPanel(new ExtendedTableLayout(new double[][]{{1, TableLayout.FILL, 1}, {1, TableLayout.FILL, 1}})); contentPane.setBorder(BorderFactory.createLineBorder(Color.GRAY)); window.setContentPane(contentPane); resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window); moveMouseInputHandler = new FloatingMoveMouseInputHandler(window, applicationBarTitle); floatingAnimation = new FloatingAnimation(); }
51282 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51282/af64b92abdde29d6ca1f7bfe4d12bcbc8ce142c1/FloatingContainer.java/buggy/mydoggy-plaf/src/main/java/org/noos/xing/mydoggy/plaf/ui/FloatingContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 28344, 7171, 1435, 288, 3639, 2742, 273, 394, 804, 20191, 3829, 12, 12628, 18, 588, 3829, 979, 343, 395, 280, 9334, 446, 16, 629, 1769, 759, 7734, 394, 804, 3829, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 28344, 7171, 1435, 288, 3639, 2742, 273, 394, 804, 20191, 3829, 12, 12628, 18, 588, 3829, 979, 343, 395, 280, 9334, 446, 16, 629, 1769, 759, 7734, 394, 804, 3829, 12, 1...
AST tmp923_AST_in = (AST)_t;
AST tmp933_AST_in = (AST)_t;
public final void createwidgetstate(AST _t) throws RecognitionException { AST createwidgetstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t319 = _t; AST tmp914_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { valueexpression(_t); _t = _retTree; break; } case BUTTON: { AST tmp915_AST_in = (AST)_t; match(_t,BUTTON); _t = _t.getNextSibling(); break; } case COMBOBOX: { AST tmp916_AST_in = (AST)_t; match(_t,COMBOBOX); _t = _t.getNextSibling(); break; } case CONTROLFRAME: { AST tmp917_AST_in = (AST)_t; match(_t,CONTROLFRAME); _t = _t.getNextSibling(); break; } case DIALOGBOX: { AST tmp918_AST_in = (AST)_t; match(_t,DIALOGBOX); _t = _t.getNextSibling(); break; } case EDITOR: { AST tmp919_AST_in = (AST)_t; match(_t,EDITOR); _t = _t.getNextSibling(); break; } case FILLIN: { AST tmp920_AST_in = (AST)_t; match(_t,FILLIN); _t = _t.getNextSibling(); break; } case FRAME: { AST tmp921_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); break; } case IMAGE: { AST tmp922_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getNextSibling(); break; } case MENU: { AST tmp923_AST_in = (AST)_t; match(_t,MENU); _t = _t.getNextSibling(); break; } case MENUITEM: { AST tmp924_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getNextSibling(); break; } case RADIOSET: { AST tmp925_AST_in = (AST)_t; match(_t,RADIOSET); _t = _t.getNextSibling(); break; } case RECTANGLE: { AST tmp926_AST_in = (AST)_t; match(_t,RECTANGLE); _t = _t.getNextSibling(); break; } case SELECTIONLIST: { AST tmp927_AST_in = (AST)_t; match(_t,SELECTIONLIST); _t = _t.getNextSibling(); break; } case SLIDER: { AST tmp928_AST_in = (AST)_t; match(_t,SLIDER); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp929_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case TEXT: { AST tmp930_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); break; } case TOGGLEBOX: { AST tmp931_AST_in = (AST)_t; match(_t,TOGGLEBOX); _t = _t.getNextSibling(); break; } case WINDOW: { AST tmp932_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } fld(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t322 = _t; AST tmp933_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp934_AST_in = (AST)_t; match(_t,WIDGETPOOL); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t322; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case NOERROR_KW: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp935_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASSIGN: { assign_opt(_t); _t = _retTree; break; } case EOF: case PERIOD: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t319; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 6587, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 6587, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 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, 225, 202, 482, 727, 918, 752, 6587, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 6587, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
if (jj_scan_token(XOR)) return true; if (jj_3R_251()) return true; return false; }
if (jj_scan_token(LBRACKET)) return true; if (jj_scan_token(RBRACKET)) return true; return false; }
final private boolean jj_3R_261() { if (jj_scan_token(XOR)) return true; if (jj_3R_251()) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5558, 21, 1435, 288, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 60, 916, 3719, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5558, 21, 1435, 288, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 60, 916, 3719, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 2...
if (attributeDescriptor.hasIdType()) {
if (myRefCountHolder != null && attributeDescriptor.hasIdType()) {
public void visitXmlAttributeValue(XmlAttributeValue value) { if (!(value.getParent() instanceof XmlAttribute)) return; XmlAttribute attribute = (XmlAttribute)value.getParent(); XmlTag tag = attribute.getParent(); final XmlElementDescriptor elementDescriptor = tag.getDescriptor(); if (elementDescriptor == null) return; final XmlAttributeDescriptor attributeDescriptor = elementDescriptor.getAttributeDescriptor(attribute); if (attributeDescriptor == null) return; String error = attributeDescriptor.validateValue(value, attribute.getValue()); if (error != null) { myResult.add(HighlightInfo.createHighlightInfo( HighlightInfoType.WRONG_REF, value, error)); return; } if (attributeDescriptor.hasIdType()) { String unquotedValue = getUnquotedValue(value, tag); final XmlTag xmlTag = myRefCountHolder.getTagById(unquotedValue); if (xmlTag == null || !xmlTag.isValid() || xmlTag == tag ) { myRefCountHolder.registerTagWithId(unquotedValue,tag); } else { XmlAttribute anotherTagIdValue = xmlTag.getAttribute("id", null); if (anotherTagIdValue!=null && getUnquotedValue(anotherTagIdValue.getValueElement(), xmlTag).equals(unquotedValue) ) { myResult.add(HighlightInfo.createHighlightInfo( HighlightInfoType.WRONG_REF, value, "Duplicate id reference") ); myResult.add(HighlightInfo.createHighlightInfo( HighlightInfoType.WRONG_REF, xmlTag.getAttribute("id",null).getValueElement(), "Duplicate id reference") ); return; } else { // tag previously has that id myRefCountHolder.registerTagWithId(unquotedValue,tag); } } } QuickFixProvider quickFixProvider = QuickFixProvider.NULL; if (attributeDescriptor instanceof QuickFixProvider) quickFixProvider = (QuickFixProvider)attributeDescriptor; checkReferences(value, quickFixProvider); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/28de9e24fa6a41f6e8117588d91f39fda3d0a706/XmlHighlightVisitor.java/clean/source/com/intellij/codeInsight/daemon/impl/analysis/XmlHighlightVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 4432, 14942, 12, 4432, 14942, 460, 13, 288, 565, 309, 16051, 12, 1132, 18, 588, 3054, 1435, 1276, 5714, 1499, 3719, 327, 31, 565, 5714, 1499, 1566, 273, 261, 4432, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 4432, 14942, 12, 4432, 14942, 460, 13, 288, 565, 309, 16051, 12, 1132, 18, 588, 3054, 1435, 1276, 5714, 1499, 3719, 327, 31, 565, 5714, 1499, 1566, 273, 261, 4432, 1499, ...
try { return pictReader.open(toRead); }
try { if (!isRGB(id) || !separated) { return pictReader.open(toRead); } else { return ImageTools.splitChannels(pictReader.open(toRead))[no%3]; } }
public BufferedImage openImage(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } // First initialize: if (separated) no /= 3; in.seek(offsets[no] + 12); byte[] toRead = new byte[4]; in.read(toRead); int blockSize = batoi(toRead); toRead = new byte[1]; in.read(toRead); // right now I'm gonna skip all the header info // check to see whether or not this is v2 data if (toRead[0] == 1) in.skipBytes(128); in.skipBytes(169); // read in the block of data toRead = new byte[blockSize]; int read = 0; int left = blockSize; while (left > 0) { int i = in.read(toRead, read, left); read += i; left -= i; } byte[] pixelData = new byte[blockSize]; int pixPos = 0; Dimension dim; try { dim = pictReader.getDimensions(toRead); } catch (Exception e) { dim = new Dimension(0, 0); } int length = toRead.length; int num, size, blockEnd; int totalBlocks = -1; // set to allow loop to start. int expectedBlock = 0; int pos = 0; int imagePos = 0; int imageSize = dim.width * dim.height; short[] flatSamples = new short[imageSize]; byte[] temp; boolean skipflag; // read in deep gray pixel data into an array, and create a // BufferedImage out of it // // First, checks the existence of a deep gray block. If it doesn't exist, // assume it is PICT data, and attempt to read it. // check whether or not there is deep gray data while (expectedBlock != totalBlocks) { skipflag = false; while (pos + 7 < length && (toRead[pos] != 73 || toRead[pos + 1] != 86 || toRead[pos + 2] != 69 || toRead[pos + 3] != 65 || toRead[pos + 4] != 100 || toRead[pos + 5] != 98 || toRead[pos + 6] != 112 || toRead[pos + 7] != 113)) { pos++; } if (pos + 32 > length) { // The header is 32 bytes long. if (expectedBlock == 0 && imageType[no] < 9) { // there has been no deep gray data, and it is supposed // to be a pict... *crosses fingers* try { return pictReader.open(toRead); } catch (Exception e) { e.printStackTrace(); throw new FormatException("No iPic comment block found", e); } } else { throw new FormatException("Expected iPic comment block not found"); } } pos += 8; // skip the block type we just found // Read info from the iPic comment. This serves as a // starting point to read the rest. temp = new byte[] { toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3] }; num = batoi(temp); if (num != expectedBlock) { throw new FormatException("Expected iPic block not found"); } expectedBlock++; temp = new byte[] { toRead[pos+4], toRead[pos+5], toRead[pos+6], toRead[pos+7] }; if (totalBlocks == -1) { totalBlocks = batoi(temp); } else { if (batoi(temp) != totalBlocks) { throw new FormatException("Unexpected totalBlocks numbein.read"); } } // skip to size pos += 16; temp = new byte[] { toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3] }; size = batoi(temp); pos += 8; blockEnd = pos + size; // copy into our data array. System.arraycopy(toRead, pos, pixelData, pixPos, size); pixPos += size; } int pixelValue = 0; pos = 0; // Now read the data and wrap it in a BufferedImage while (true) { if (pos + 1 < pixelData.length) { pixelValue = pixelData[pos] < 0 ? 256 + pixelData[pos] : (int) pixelData[pos] << 8; pixelValue += pixelData[pos + 1] < 0 ? 256 + pixelData[pos + 1] : (int) pixelData[pos + 1]; pos += 2; } else throw new FormatException("Malformed LIFF data"); flatSamples[imagePos] = (short) pixelValue; imagePos++; if (imagePos == imageSize) { // done, return it return ImageTools.makeImage(flatSamples, dim.width, dim.height, 1, false); } } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/8f565200fbae8beb706257ed0fa5b0fe39f55e8e/OpenlabReader.java/buggy/loci/formats/OpenlabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12362, 1696, 2040, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12362, 1696, 2040, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, 565, ...
public MapEntrySourceContainer( IPath backend, IPath local ) { fBackendPath = backend; fLocalPath = local;
public MapEntrySourceContainer() { fBackendPath = Path.EMPTY; fLocalPath = Path.EMPTY;
public MapEntrySourceContainer( IPath backend, IPath local ) { fBackendPath = backend; fLocalPath = local; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/af37524c7ae90496885c26ddfc66724b26d89db9/MapEntrySourceContainer.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1635, 1622, 1830, 2170, 12, 467, 743, 4221, 16, 467, 743, 1191, 262, 288, 202, 202, 74, 7172, 743, 273, 4221, 31, 202, 202, 74, 2042, 743, 273, 1191, 31, 202, 97, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 1622, 1830, 2170, 12, 467, 743, 4221, 16, 467, 743, 1191, 262, 288, 202, 202, 74, 7172, 743, 273, 4221, 31, 202, 202, 74, 2042, 743, 273, 1191, 31, 202, 97, 2, -100, ...
synchronized (dataSources) { dataSources.remove(dataSourceName); } }
removeStoredDataSource(); }
public void close() { synchronized (lock) { while (available.size() > 0) { PooledConnectionImpl pci = (PooledConnectionImpl)available.pop(); try { pci.close(); } catch (SQLException e) {} } available = null; while (used.size() > 0) { PooledConnectionImpl pci = (PooledConnectionImpl)used.pop(); pci.removeConnectionEventListener(connectionEventListener); try { pci.close(); } catch (SQLException e) {} } used = null; } synchronized (dataSources) { dataSources.remove(dataSourceName); } }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/7bf1c8b0ad5f2534362fb6938be28bb041d79c90/PoolingDataSource.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/optional/PoolingDataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1746, 1435, 202, 95, 202, 202, 22043, 261, 739, 13, 202, 202, 95, 1082, 202, 17523, 261, 5699, 18, 1467, 1435, 405, 374, 13, 1082, 202, 95, 9506, 202, 52, 22167, 1952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 1435, 202, 95, 202, 202, 22043, 261, 739, 13, 202, 202, 95, 1082, 202, 17523, 261, 5699, 18, 1467, 1435, 405, 374, 13, 1082, 202, 95, 9506, 202, 52, 22167, 1952, ...
List cookieKillers = (List)cookieQueue.remove(0);
List<String> cookieKillers = killers.remove(rl); if (null == cookieKillers) { return h; }
private Header addCookieKillers(Header h) { List cookieKillers = (List)cookieQueue.remove(0); for (Iterator i = cookieKillers.iterator(); i.hasNext(); ) { String killer = (String)i.next(); logger.debug("adding killer to header: " + killer); h.addField("Set-Cookie", killer); } return h; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/858eacdb9a813cb806a97a3e3ee503ae037263dc/SpywareHttpHandler.java/clean/tran/spyware/main/com/metavize/tran/spyware/SpywareHttpHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4304, 527, 6151, 19045, 414, 12, 1864, 366, 13, 565, 288, 3639, 987, 32, 780, 34, 3878, 19045, 414, 273, 8673, 414, 18, 4479, 12, 1321, 1769, 309, 261, 2011, 422, 3878, 19045, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4304, 527, 6151, 19045, 414, 12, 1864, 366, 13, 565, 288, 3639, 987, 32, 780, 34, 3878, 19045, 414, 273, 8673, 414, 18, 4479, 12, 1321, 1769, 309, 261, 2011, 422, 3878, 19045, 414...
break;
continue;
public static TimeLineGraph getLineGraph(Scenario t, String dimensionName, String baseline, String baselinePrefix, String current, ArrayList pointsOfInterest,ArrayList currentBuildIdPrefixes) { Display display = Display.getDefault(); Color black = display.getSystemColor(SWT.COLOR_BLACK); Color yellow = display.getSystemColor(SWT.COLOR_DARK_YELLOW); Color magenta = display.getSystemColor(SWT.COLOR_MAGENTA); String scenarioName = t.getScenarioName(); Dim[] dimensions = t.getDimensions(); Dim dim = null; for (int i = 0; i < dimensions.length; i++) { if (dimensions[i].getName().equals(dimensionName)) dim = dimensions[i]; } TimeLineGraph graph = new TimeLineGraph(scenarioName + ": " + dimensionName, dim); TimeSeries ts = null; try { ts = t.getTimeSeries(dim); int n = ts.getLength(); if (n > 0) { for (int j = 0; j < n; j++) { String buildID = ts.getLabel(j); int underscoreIndex = buildID.indexOf('_'); String label = (underscoreIndex != -1 && (buildID.equals(baseline) || buildID.equals(current))) ? buildID.substring(0, underscoreIndex) : buildID; double value = ts.getValue(j); if (buildID.equals(current)) { Color color = black; if (buildID.startsWith("N")) color = yellow; graph.addItem("main", label, dim.getDisplayValue(value), value, color, true, getDateFromBuildID(buildID), true); break; } if (pointsOfInterest.contains(buildID)) { graph.addItem("main", label, dim.getDisplayValue(value), value, black, false, getDateFromBuildID(buildID, false), true); continue; } if (buildID.equals(baseline)) { boolean drawBaseline = (baselinePrefix != null) ? false : true; graph.addItem("reference", label, dim.getDisplayValue(value), value, magenta, true, getDateFromBuildID(buildID, true), true, drawBaseline); continue; } if (baselinePrefix != null) { if (buildID.startsWith(baselinePrefix) && !buildID.equals(baseline) && getDateFromBuildID(buildID, true) < getDateFromBuildID(baseline, true)) { graph.addItem("reference", label, dim.getDisplayValue(value), value, magenta, false, getDateFromBuildID(buildID, true), false); continue; } } if (lastSevenNightlyBuildNames(t.getTimeSeriesLabels(), current).contains(buildID)) { graph.addItem("main", buildID, dim.getDisplayValue(value), value, yellow, false, getDateFromBuildID(buildID), false); continue; } else if (buildID.startsWith("N")) continue; for (int i=0;i<currentBuildIdPrefixes.size();i++){ if (buildID.startsWith(currentBuildIdPrefixes.get(i).toString())) { graph.addItem("main", buildID, dim.getDisplayValue(value), value, black, false, getDateFromBuildID(buildID), false); break; } } } } } catch (AssertionFailedError e) { // System.err.println("Unable to get result for: // "+t.getScenarioName()+" "+ts.toString()); } return graph; }
14684 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14684/81d0d466ef1d5b18525150074ffd61699e6ec679/Utils.java/clean/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/Utils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2647, 1670, 4137, 9851, 4137, 12, 21390, 268, 16, 514, 4968, 461, 16, 514, 14243, 16, 514, 14243, 2244, 16, 514, 783, 16, 2407, 3143, 951, 29281, 16, 19558, 783, 3116, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2647, 1670, 4137, 9851, 4137, 12, 21390, 268, 16, 514, 4968, 461, 16, 514, 14243, 16, 514, 14243, 2244, 16, 514, 783, 16, 2407, 3143, 951, 29281, 16, 19558, 783, 3116, 54...
return fDebugger.createAttachSession(config, exeFile[0], pid);
session = fDebugger.createAttachSession(config, exeFile[0], pid); } else { session = fDebugger.createCoreSession(config, exeFile[0], new Path(coreFile));
public ICDISession createDebuggerSession(ILaunch launch, IBinaryExecutable exe, IProgressMonitor monitor) throws CoreException { ILaunchConfiguration config = launch.getLaunchConfiguration(); IFile[] exeFile = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(exe.getPath()); if (exeFile.length == 0) { abort(InternalDebugCoreMessages.getString("CDebugAdapter.0"), null, -1); //$NON-NLS-1$ } int pid = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_ATTACH_PROCESS_ID, -1); String coreFile = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_COREFILE_PATH, (String)null); ICDISession session; try { if (pid == -1 && coreFile == null) { return fDebugger.createLaunchSession(config, exeFile[0]); } else if (pid != -1) { return fDebugger.createAttachSession(config, exeFile[0], pid); } return fDebugger.createCoreSession(config, exeFile[0], new Path(coreFile)); } catch (CDIException e) { abort(e.getLocalizedMessage(), e, -1); } throw new IllegalStateException(); // should never happen }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/61b7feb54d9bcea051384c18cd634c030213a511/CDebugAdapter.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CDebugAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 26899, 2565, 2157, 752, 24113, 2157, 12, 2627, 4760, 8037, 16, 467, 5905, 17709, 15073, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 2627, 4760, 1750, 642, 273, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26899, 2565, 2157, 752, 24113, 2157, 12, 2627, 4760, 8037, 16, 467, 5905, 17709, 15073, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 2627, 4760, 1750, 642, 273, 80...
getCanvas().redraw(Math.min(p1.x, p2.x), Math.min(p1.y, p2.y), Math.abs(p1.x - p2.x), Math.abs(p1.y - p2.y), true);
getCanvas().redraw(Math.min(p1.x, p2.x), Math.min(p1.y, p2.y), Math.abs(p1.x - p2.x) + 1, Math.abs(p1.y - p2.y) + 1, true);
public void mouseDragged(MouseEvent me) { if (selected != null) { getCanvas().redraw(Math.min(p1.x, p2.x), Math.min(p1.y, p2.y), Math.abs(p1.x - p2.x), Math.abs(p1.y - p2.y), true); selected.x = me.x; selected.y = me.y; } }
12846 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12846/72b2d39260a0aa6a2d09d024975fb3b214ac0cfb/Line.java/buggy/net.sourceforge.eclipsetrader.ui.views/src/net/sourceforge/eclipsetrader/ui/views/charts/tools/Line.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7644, 11728, 2423, 12, 9186, 1133, 1791, 13, 225, 288, 565, 309, 261, 8109, 480, 446, 13, 565, 288, 1377, 12006, 4423, 7675, 1118, 1899, 12, 10477, 18, 1154, 12, 84, 21, 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, 1071, 918, 7644, 11728, 2423, 12, 9186, 1133, 1791, 13, 225, 288, 565, 309, 261, 8109, 480, 446, 13, 565, 288, 1377, 12006, 4423, 7675, 1118, 1899, 12, 10477, 18, 1154, 12, 84, 21, 18, ...
setProperty((String) evalAttr("property", getProperty(),
setProperty((String) evalAttr("property", getPropertyExpr(),
private void evaluateExpressions() throws JspException { try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setMessage((String) evalAttr("message", getMessage(), String.class)); } catch (NullAttributeException ex) { setMessage(null); } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELMessagesPresentTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELMessagesPresentTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, ...
new ApiDifference("Field fin4 is now non-final in testlib.MembersChange", Severity.INFO, "testlib.MembersChange", null, "fin4")
new ApiDifference("Field fin4 is now non-final in testlib.MembersChange", Severity.INFO, "testlib.MembersChange", null, "fin4"), new ApiDifference("Field pub2 is now static in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "pub2"),
public void testFieldCheck() { ApiDifference[] expected = new ApiDifference[] { new ApiDifference("Field stat7 has been removed in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "stat7"), new ApiDifference("Accessibility of field fin2 has been weakened in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "fin2"), new ApiDifference("Accessibility of field stat4 has been weakened in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "stat4"), new ApiDifference("Added public field priv2 in testlib.MembersChange", Severity.INFO, "testlib.MembersChange", null, "priv2"), new ApiDifference("Accessibility of field stat5 has been weakened in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "stat5"), new ApiDifference("Field stat2 is now final in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "stat2"), new ApiDifference("Accessibility of field stat6 has been weakened in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "stat6"), new ApiDifference("Field stat2 is now static in testlib.MembersChange", Severity.ERROR, "testlib.MembersChange", null, "stat2"), new ApiDifference("Added public field stat8 in testlib.MembersChange", Severity.INFO, "testlib.MembersChange", null, "stat8"), new ApiDifference("Field fin4 is now non-final in testlib.MembersChange", Severity.INFO, "testlib.MembersChange", null, "fin4") }; verify(expected); }
1534 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1534/fc056ec355a1209cffbd19961b02bca5154e1daf/FieldSetCheckTest.java/clean/src/test/net/sf/clirr/checks/FieldSetCheckTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 974, 1564, 1435, 565, 288, 3639, 4458, 16220, 8526, 2665, 273, 394, 4458, 16220, 8526, 288, 5411, 394, 4458, 16220, 2932, 974, 610, 27, 711, 2118, 3723, 316, 1842, 2941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 974, 1564, 1435, 565, 288, 3639, 4458, 16220, 8526, 2665, 273, 394, 4458, 16220, 8526, 288, 5411, 394, 4458, 16220, 2932, 974, 610, 27, 711, 2118, 3723, 316, 1842, 2941, ...
TaskListView.getDefault().indicateSharedFolder("");
TaskListView.getFromActivePerspective().indicateSharedFolder("");
public void switchTaskDataFolder(String targetFolder) { MylarTaskListPlugin.getDefault().getTaskListSaveManager().saveTaskListAndContexts(); if (targetFolder.equals(MAIN_LOCAL_DATA_DIR)) { MylarSandboxPlugin.getDefault().getSharedDataDirectoryManager().setSharedDataDirectoryEnabled(false); // MylarTaskListPlugin.getDefault().setDataDirectory(MylarPlugin.getDefault().getDataDirectory()); (new ToggleContextCaptureAction()).resume(); // TODO: don't use // actions directly TaskListView.getDefault().indicateSharedFolder(""); MylarPlugin.getContextManager().setActivationHistorySuppressed(false); } else { String dataDirPath = MylarReportsPlugin.getDefault().getRootSharedDataDirectory() + File.separator + targetFolder; MylarSandboxPlugin.getDefault().getSharedDataDirectoryManager().setSharedDataDirectory(dataDirPath); MylarSandboxPlugin.getDefault().getSharedDataDirectoryManager().setSharedDataDirectoryEnabled(true); // MylarTaskListPlugin.getDefault().setDataDirectory(dataDirPath); (new ToggleContextCaptureAction()).pause(); TaskListView.getDefault().indicateSharedFolder(targetFolder); MylarPlugin.getContextManager().setActivationHistorySuppressed(true); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e5dab796c6efd0dc2b845a7eaada8eb3254ee0c8/SwitchTaskDataFolderAction.java/buggy/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/share/SwitchTaskDataFolderAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1620, 2174, 751, 3899, 12, 780, 1018, 3899, 13, 288, 202, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 1868, 7675, 588, 2174, 682, 4755, 1318, 7675, 5688, 2174, 682, 1876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1620, 2174, 751, 3899, 12, 780, 1018, 3899, 13, 288, 202, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 1868, 7675, 588, 2174, 682, 4755, 1318, 7675, 5688, 2174, 682, 1876, ...
Composite tablescomposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); tablescomposite.setLayout(layout);
Composite tablescomposite = new Composite( parent, SWT.NONE ); GridLayout layout = new GridLayout( ); tablescomposite.setLayout( layout );
private void createTableSelectionComposite( Composite parent ) { Composite tablescomposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); tablescomposite.setLayout(layout); { GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessVerticalSpace = true; tablescomposite.setLayoutData(data); } // Available Items Label dataSourceLabel = new Label( tablescomposite, SWT.LEFT ); dataSourceLabel.setText( JdbcPlugin.getResourceString( "tablepage.label.availableItems" ) );//$NON-NLS-1$ { GridData data = new GridData(); dataSourceLabel.setLayoutData(data); } availableDbObjectsTree = new Tree(tablescomposite, SWT.BORDER|SWT.MULTI ); { GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; data.heightHint = 150; availableDbObjectsTree.setLayoutData(data); } availableDbObjectsTree.addMouseListener(new MouseAdapter() { public void mouseDoubleClick(MouseEvent e) { populateEventData( e ); insertText( (String) e.data ); } }); availableDbObjectsTree.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { if ( event.widget.getClass() != null ) handleAvailabeTreeSelection(); } private void handleAvailabeTreeSelection() { TreeItem items[] = availableDbObjectsTree.getSelection(); for ( int i = 0; i <items.length; i++ ) { if ( items[i].getGrayed() ) { availableDbObjectsTree.setRedraw(false); availableDbObjectsTree.deselectAll(); availableDbObjectsTree.setRedraw(true); availableDbObjectsTree.redraw(); } } } }); // Group for selecting the Tables etc // Searching the Tables and Views Group selectTableGroup = new Group(tablescomposite, SWT.FILL); { GridLayout groupLayout = new GridLayout(); groupLayout.numColumns = 3; //groupLayout.horizontalSpacing = 10; groupLayout.verticalSpacing = 10; selectTableGroup.setLayout(groupLayout); GridData data = new GridData(GridData.FILL_HORIZONTAL); selectTableGroup.setLayoutData(data); } schemaLabel = new Label( selectTableGroup, SWT.LEFT ); schemaLabel.setText( JdbcPlugin.getResourceString("tablepage.label.schema") ); schemaCombo = new Combo( selectTableGroup, SWT.READ_ONLY ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; schemaCombo.setLayoutData( gd ); enableSchemaComponent( isSchemaSupported ); Label FilterLabel = new Label(selectTableGroup, SWT.LEFT); FilterLabel.setText(JdbcPlugin.getResourceString("tablepage.label.filter")); searchTxt = new Text(selectTableGroup, SWT.BORDER) ; { GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 2; searchTxt.setLayoutData(data); } // Select Type Label selectTypeLabel = new Label(selectTableGroup, SWT.NONE); selectTypeLabel.setText(JdbcPlugin.getResourceString("tablepage.label.selecttype")); // Filter Combo filterComboViewer = new ComboViewer(selectTableGroup, SWT.READ_ONLY); setFilterComboContents(filterComboViewer); filterComboViewer.getControl().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // Find Button Button findButton = new Button(selectTableGroup, SWT.NONE); findButton.setText(JdbcPlugin.getResourceString("tablepage.button.filter"));//$NON-NLS-1$ // Add listener to the find button findButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { PlatformUI.getWorkbench( ) .getDisplay( ) .asyncExec( new Runnable( ) { public void run( ) { populateAvailableDbObjects( ); } } ); } } ); setupIdentifierQuoteStringCheckBox( selectTableGroup ); setRootElement(); // Create the drag source on the tree addDragSupportToTree(); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a1d63df7ad61ba2dd517aea885b14083b21a8b5b/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 19565, 6233, 9400, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 3246, 80, 742, 362, 4974, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19565, 6233, 9400, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 3246, 80, 742, 362, 4974, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744...
throw new InserterException(InserterException.INVALID_URI);
throw new InserterException(InserterException.INVALID_URI, "Unknown key type: "+type, null);
private void tryCompress() throws InserterException { // First, determine how small it needs to be Bucket origData = block.getData(); Bucket data = origData; int blockSize; boolean dontCompress = ctx.dontCompress; long origSize = data.size(); String type = block.desiredURI.getKeyType().toUpperCase(); if(type.equals("SSK") || type.equals("KSK")) { blockSize = SSKBlock.DATA_LENGTH; } else if(type.equals("CHK")) { blockSize = CHKBlock.DATA_LENGTH; } else { throw new InserterException(InserterException.INVALID_URI); } Compressor bestCodec = null; Bucket bestCompressedData = null; if(origSize > blockSize && (!ctx.dontCompress) && (!dontCompress)) { // Try to compress the data. // Try each algorithm, starting with the fastest and weakest. // Stop when run out of algorithms, or the compressed data fits in a single block. int algos = Compressor.countCompressAlgorithms(); try { for(int i=0;i<algos;i++) { // Only produce if we are compressing *the original data* if(parent == cb) ctx.eventProducer.produceEvent(new StartedCompressionEvent(i)); Compressor comp = Compressor.getCompressionAlgorithmByDifficulty(i); Bucket result; result = comp.compress(origData, ctx.bf, Long.MAX_VALUE); if(result.size() < blockSize) { bestCodec = comp; data = result; if(bestCompressedData != null) ctx.bf.freeBucket(bestCompressedData); bestCompressedData = data; break; } if(bestCompressedData != null && result.size() < bestCompressedData.size()) { ctx.bf.freeBucket(bestCompressedData); bestCompressedData = result; data = result; bestCodec = comp; } else if(bestCompressedData == null && result.size() < data.size()) { bestCompressedData = result; bestCodec = comp; data = result; } } } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (CompressionOutputSizeException e) { // Impossible throw new Error(e); } } if(parent == cb) { ctx.eventProducer.produceEvent(new FinishedCompressionEvent(bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(), origSize, data.size())); } // Compressed data // Insert it... short codecNumber = bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(); if(block.getData().size() > Integer.MAX_VALUE) throw new InserterException(InserterException.INTERNAL_ERROR, "2GB+ should not encode to one block!", null); if((block.clientMetadata == null || block.clientMetadata.isTrivial())) { if(data.size() < blockSize) { // Just insert it SingleBlockInserter bi = new SingleBlockInserter(parent, data, codecNumber, block.desiredURI, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true); cb.onTransition(this, bi); bi.schedule(); cb.onBlockSetFinished(this); return; } } if (data.size() < ClientCHKBlock.MAX_COMPRESSED_DATA_LENGTH) { // Insert single block, then insert pointer to it if(reportMetadataOnly) { SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true); Metadata meta = new Metadata(Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); cb.onMetadata(meta, this); cb.onTransition(this, dataPutter); dataPutter.schedule(); cb.onBlockSetFinished(this); } else { MultiPutCompletionCallback mcb = new MultiPutCompletionCallback(cb, parent); SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, mcb, metadata, (int)origSize, -1, getCHKOnly, true); Metadata meta = new Metadata(Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } SingleBlockInserter metaPutter = new SingleBlockInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true); mcb.addURIGenerator(metaPutter); mcb.add(dataPutter); cb.onTransition(this, mcb); mcb.arm(); dataPutter.schedule(); metaPutter.schedule(); cb.onBlockSetFinished(this); } return; } // Otherwise the file is too big to fit into one block // We therefore must make a splitfile // Job of SplitHandler: when the splitinserter has the metadata, // insert it. Then when the splitinserter has finished, and the // metadata insert has finished too, tell the master callback. if(reportMetadataOnly) { SplitFileInserter sfi = new SplitFileInserter(parent, cb, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata); cb.onTransition(this, sfi); sfi.start(); } else { SplitHandler sh = new SplitHandler(); SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata); sh.sfi = sfi; cb.onTransition(this, sh); sfi.start(); } return; }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/c6aa82ac420d1cc2277bea0c09c5c8fcbaf51ad0/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 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, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621...
public void setKind( ContextKind kind );
public void setKind( int kind );
public void setKind( ContextKind kind );
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0ce4a707ab7219e9ddb15141d8f4a4ce46d3ee2a/IScannerContext.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/IScannerContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5677, 12, 509, 3846, 11272, 225, 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, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5677, 12, 509, 3846, 11272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
listener.frameRead(frameReadEvent);
protected void fireFrameRead() { for (int i = 0; i < listenerList.size(); ++i) { ReaderListener listener = (ReaderListener) listenerList.elementAt(i); // Lazily create the event: if (frameReadEvent == null) { frameReadEvent = new ReaderEvent(this); } listener.frameRead(frameReadEvent); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/5c391f9c605e6addfef9c6e9ce5b93d05ee97a0d/DefaultChemObjectReader.java/buggy/src/org/openscience/cdk/io/DefaultChemObjectReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4452, 3219, 1994, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2991, 682, 18, 1467, 5621, 965, 77, 13, 288, 5411, 5393, 2223, 2991, 273, 261, 2514, 2223, 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, 4750, 918, 4452, 3219, 1994, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2991, 682, 18, 1467, 5621, 965, 77, 13, 288, 5411, 5393, 2223, 2991, 273, 261, 2514, 2223, 13, ...
unit = new javax.swing.JLabel();
lblRealToByte = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); lblStorageAddress = new javax.swing.JLabel(); lblStorageSize = new javax.swing.JLabel(); lblEndian = new javax.swing.JLabel(); endian = new javax.swing.JLabel(); storageSize = new javax.swing.JLabel();
private void initComponents() { lblTable = new javax.swing.JLabel(); tableName = new javax.swing.JLabel(); lblCategory = new javax.swing.JLabel(); category = new javax.swing.JLabel(); lblStorageSize = new javax.swing.JLabel(); lblStorageAddress = new javax.swing.JLabel(); lblEndian = new javax.swing.JLabel(); lblConversion = new javax.swing.JLabel(); lblStorage = new javax.swing.JLabel(); lblByteToReal = new javax.swing.JLabel(); lblRealToByte = new javax.swing.JLabel(); lblUnit = new javax.swing.JLabel(); byteToReal = new javax.swing.JLabel(); realToByte = new javax.swing.JLabel(); unit = new javax.swing.JLabel(); storageAddress = new javax.swing.JLabel(); storageSize = new javax.swing.JLabel(); endian = new javax.swing.JLabel(); lblDescription = new javax.swing.JLabel(); description = new javax.swing.JLabel(); lblTable.setText("Table:"); lblTable.setFocusable(false); tableName.setText("Tablename (3D)"); tableName.setFocusable(false); lblCategory.setText("Category:"); lblCategory.setFocusable(false); category.setText("Category"); category.setFocusable(false); lblStorageSize.setText("Storage Size:"); lblStorageSize.setFocusable(false); lblStorageAddress.setText("Storage Address:"); lblStorageAddress.setFocusable(false); lblEndian.setText("Endian:"); lblEndian.setFocusable(false); lblConversion.setText("----------- Conversion -----------"); lblConversion.setFocusable(false); lblStorage.setText("---------- Storage ----------"); lblStorage.setFocusable(false); lblByteToReal.setText("Byte to Real:"); lblByteToReal.setFocusable(false); lblRealToByte.setText("Real to Byte:"); lblRealToByte.setFocusable(false); lblUnit.setText("Unit:"); lblUnit.setFocusable(false); byteToReal.setText("bytetoreal"); byteToReal.setFocusable(false); realToByte.setText("realtobyte"); realToByte.setFocusable(false); unit.setText("unit"); unit.setFocusable(false); storageAddress.setText("0x00"); storageAddress.setFocusable(false); storageSize.setText("uint16"); storageSize.setFocusable(false); endian.setText("little"); endian.setFocusable(false); lblDescription.setText("Description:"); lblDescription.setFocusable(false); description.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); description.setText("Description"); description.setVerticalAlignment(javax.swing.SwingConstants.TOP); description.setFocusable(false); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(description, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE) .add(lblDescription) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblConversion) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblByteToReal) .add(lblRealToByte) .add(lblUnit)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(byteToReal) .add(realToByte) .add(unit))) .add(layout.createSequentialGroup() .add(lblTable) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(tableName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblStorage) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(lblStorageAddress) .add(lblStorageSize) .add(lblEndian)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(endian) .add(storageSize) .add(storageAddress))) .add(layout.createSequentialGroup() .add(lblCategory) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(category))) .add(20, 20, 20))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblTable) .add(tableName)) .add(20, 20, 20) .add(lblConversion) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createSequentialGroup() .add(lblUnit) .add(40, 40, 40)) .add(layout.createSequentialGroup() .add(lblByteToReal) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(lblRealToByte)) .add(layout.createSequentialGroup() .add(unit) .add(40, 40, 40)) .add(layout.createSequentialGroup() .add(byteToReal) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(realToByte))) .add(26, 26, 26) .add(lblDescription)) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblCategory) .add(category)) .add(20, 20, 20) .add(lblStorage) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblStorageSize) .add(storageSize)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblStorageAddress) .add(storageAddress)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(lblEndian) .add(endian)))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(description, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); }// </editor-fold>//GEN-END:initComponents
51906 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51906/5e8082b86c184a6e5ec0dfdbab757d9a1567c0c8/TablePropertyPanel.java/clean/src/enginuity/swing/TablePropertyPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 14284, 1388, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 4775, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 14284, 4457, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14284, 1388, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 4775, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 14284, 4457, ...
return onMatch;
return on_match;
public int decide(Object event) { // let us not throw an exception // see also bug #17. if(!isStarted()) { return NEUTRAL; } try { if (evaluator.evaluate(event)) { return onMatch; } else { return onMismatch; } } catch (EvaluationException e) { addError("Evaluator "+evaluator.getName()+" threw an exception", e); return NEUTRAL; } }
45777 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45777/7e755b8978a294df3e6d9708c2e25dcac0c5d6c8/EvaluatorFilter.java/clean/logback-core/src/main/java/ch/qos/logback/core/filter/EvaluatorFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 16288, 12, 921, 871, 13, 288, 565, 368, 2231, 584, 486, 604, 392, 1520, 565, 368, 2621, 2546, 7934, 468, 4033, 18, 565, 309, 12, 5, 291, 9217, 10756, 288, 1377, 327, 12901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 16288, 12, 921, 871, 13, 288, 565, 368, 2231, 584, 486, 604, 392, 1520, 565, 368, 2621, 2546, 7934, 468, 4033, 18, 565, 309, 12, 5, 291, 9217, 10756, 288, 1377, 327, 12901, ...
new DBMediator(this.dbDriver, "false", this.dbLogin, this.dbPassword, this.conNumber);
new DBMediator( TestGlobal.dbDriverStr, "false", TestGlobal.dbLoginStr, TestGlobal.dbPasswordStr, TestGlobal.conNumber);
public void testDBMediatorURLFalse() { try { new DBMediator(this.dbDriver, "false", this.dbLogin, this.dbPassword, this.conNumber); assertTrue(false); } catch (InternalEVerlageError e) { assertTrue(true); } }
10993 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10993/3537db3fa32bbb6c4b610dd3c8e70a1864e7804c/DBMediatorTest.java/clean/everlage/test/de/everlage/ca/core/db/DBMediatorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2290, 13265, 10620, 1785, 8381, 1435, 288, 202, 202, 698, 288, 1082, 202, 2704, 2383, 13265, 10620, 12, 2211, 18, 1966, 4668, 16, 315, 5743, 3113, 333, 18, 1966, 5358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2290, 13265, 10620, 1785, 8381, 1435, 288, 202, 202, 698, 288, 1082, 202, 2704, 2383, 13265, 10620, 12, 2211, 18, 1966, 4668, 16, 315, 5743, 3113, 333, 18, 1966, 5358...
List notAllowedAddAssignmentUsers = new Vector();
List members = new Vector(); Hashtable user_row = new Hashtable();
public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException { String typeGradesString = new String(REF_TYPE_GRADES + Entity.SEPARATOR); String context = ref.substring(ref.indexOf(typeGradesString) + typeGradesString.length()); // get site title for display purpose String siteTitle = ""; try { Site s = SiteService.getSite(context); siteTitle = s.getTitle(); } catch (Exception e) { // ignore exception } short rowNum = 0; HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(siteTitle); // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(rb.getString("download.spreadsheet.title")); // empty line row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(""); // site title row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(rb.getString("download.spreadsheet.site") + siteTitle); // download time row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue( rb.getString("download.spreadsheet.date") + TimeService.newTime().toStringLocalFull()); // empty line row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(""); // the bold font HSSFFont font = wb.createFont(); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // the cell style with bold font HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // set up the header cells row = sheet.createRow(rowNum++); short cellNum = 0; // user enterprise id column HSSFCell cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(rb.getString("download.spreadsheet.column.userid")); // user name column cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(rb.getString("download.spreadsheet.column.name")); Iterator assignments = getAssignmentsForContext(context); List assignmentList = new Vector(); List allowAddAssignmentUsers = allowAddAssignmentUsers(context); // get the list of users who cannot add assignment List notAllowedAddAssignmentUsers = new Vector(); try { AuthzGroup group = AuthzGroupService.getAuthzGroup(SiteService.siteReference(context)); Set grants = group.getUsers(); for (Iterator iUserIds = grants.iterator(); iUserIds.hasNext();) { String userId = (String) iUserIds.next(); try { User u = UserDirectoryService.getUser(userId); // only return student if (!allowAddAssignmentUsers.contains(u)) { notAllowedAddAssignmentUsers.add(u); } } catch (Exception e) { M_log.warn(this + e.getMessage() + " userId = " + userId); } } } catch (Exception e) { M_log.warn(e.getMessage() + " context=" + context); } int index = 0; List members = new Vector(); while (assignments.hasNext()) { Assignment a = (Assignment) assignments.next(); // for column header, check allow grade permission based on each assignment if (allowGradeSubmission(a.getReference())) { String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if ((deleted == null || deleted.equals("")) && (!a.getDraft()) && (a.getOpenTime().before(TimeService.newTime()))) { if (members.size() == 0 && notAllowedAddAssignmentUsers.size()!=0 && a.getAccess().equals(Assignment.AssignmentAccess.SITE)) { List allowAddSubmissionUsers = allowAddSubmissionUsers(a.getReference()); for (int i = 0; i < allowAddSubmissionUsers.size(); i++) { User allowAddSubmissionUser = (User) allowAddSubmissionUsers.get(i); if (!allowAddAssignmentUsers.contains(allowAddSubmissionUser)) { members.add(allowAddSubmissionUser); } } } assignmentList.add(index, a); cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(a.getTitle()); index++; } } } // if members are still empty, use "users not allowed to create assignment" list if (members.size() == 0) { members = notAllowedAddAssignmentUsers; } // is there a grade or not User member = null; for (Iterator it = members.iterator(); it.hasNext();) { // create one row for each user row = sheet.createRow(rowNum++); cellNum = 0; member = (User) it.next(); // show user's enterprise id row.createCell(cellNum++).setCellValue(member.getDisplayId()); // show user's name row.createCell(cellNum++).setCellValue(member.getSortName()); for (int i = 0; i < assignmentList.size(); i++) { // type for this assignment Assignment a = (Assignment) assignmentList.get(i); int assignmentType = a.getContent().getTypeOfGrade(); AssignmentSubmission submission = getSubmission(a.getReference(), member); if (submission != null) { if (submission.getGraded() && submission.getGradeReleased()) { // graded and released if (assignmentType == 3) { try { // numeric cell type? String grade = submission.getGradeDisplay(); Float.parseFloat(grade); cell = row.createCell(cellNum++); cell.setCellType(0); cell.setCellValue(Float.parseFloat(grade)); style = wb.createCellStyle(); style.setDataFormat(wb.createDataFormat().getFormat("#,##0.0")); cell.setCellStyle(style); } catch (Exception e) { // if the grade is not numeric, let's make it as String type cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(submission.getGrade()); } } else { // String cell type cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(submission.getGrade()); } } else { // no grade available yet cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(""); } } // if else { // no submission yet cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(rb.getString("listsub.nosub")); } // if } // for } // for // output Blob b = new Blob(); try { wb.write(b.outputStream()); } catch (IOException e) { M_log.debug(this + "Can not output the grade spread sheet. "); } return b.getBytes(); } // getGradesSpreadsheet
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/558c749f3588601869106ae4b9c24ce1d560a563/BaseAssignmentService.java/buggy/assignment/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 7162, 354, 5489, 28719, 8118, 12, 780, 1278, 13, 1216, 3124, 21106, 503, 16, 8509, 503, 202, 95, 202, 202, 780, 618, 14571, 5489, 780, 273, 394, 514, 12, 10771, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 7162, 354, 5489, 28719, 8118, 12, 780, 1278, 13, 1216, 3124, 21106, 503, 16, 8509, 503, 202, 95, 202, 202, 780, 618, 14571, 5489, 780, 273, 394, 514, 12, 10771, 67...
if ("all".equals(name)) {
if ("all".equals(toNode)) {
public void processPacket(Packet packet) { // Only respond to incoming messages. TODO: handle disco, presence, etc. if (packet instanceof Message) { Message message = (Message)packet; String name = message.getTo().getNode(); // Check to see if trying to broadcast to all connected users. if ("all".equals(name)) { if (allowedUsers.size() > 0) { // See if the user is allowed to send the message. String address = message.getFrom().toBareJID(); if (!allowedUsers.contains(address)) { Message error = new Message(); if (message.getID() != null) { error.setID(message.getID()); } error.setError(PacketError.Condition.not_allowed); error.setTo(message.getFrom()); error.setSubject("Error sending broadcast message"); error.setBody("Not allowed to send a broadcast message to " + message.getTo()); ComponentManager.getInstance().sendPacket(error); return; } } sessionManager.sendServerMessage(message.getSubject(), message.getBody()); } // See if the name is a group. // Otherwise, the address is recognized so send an error message back. else { Message error = new Message(); if (message.getID() != null) { error.setID(message.getID()); } error.setTo(message.getFrom()); error.setError(PacketError.Condition.not_allowed); error.setSubject("Error sending broadcast message"); error.setBody("Not allowed to send a broadcast message to " + message.getTo()); ComponentManager.getInstance().sendPacket(error); } } }
51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/660e1c3c6368def0e3fc64b47d9055f963e91f80/BroadcastPlugin.java/buggy/src/plugins/broadcast/src/java/org/jivesoftware/messenger/plugin/BroadcastPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 6667, 12, 6667, 4414, 13, 288, 3639, 368, 5098, 6846, 358, 6935, 2743, 18, 2660, 30, 1640, 1015, 2894, 16, 9805, 16, 5527, 18, 3639, 309, 261, 11482, 1276, 2350, 13, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 6667, 12, 6667, 4414, 13, 288, 3639, 368, 5098, 6846, 358, 6935, 2743, 18, 2660, 30, 1640, 1015, 2894, 16, 9805, 16, 5527, 18, 3639, 309, 261, 11482, 1276, 2350, 13, 28...
public ArrayList getDDSchemas() throws DCMException { ArrayList schemas = new ArrayList(); ArrayList schemasChk = new ArrayList(); Vector hcSchemas; try { // retrive conversions for DD tables List ddTables = DDServiceClient.getDDTables(); for (int i = 0; i < ddTables.size(); i++) { Hashtable schema = (Hashtable) ddTables.get(i); String tblId = (String) schema.get("tblId"); String schemaUrl = Properties.ddURL + "/GetSchema?id=TBL" + tblId; Schema sc = new Schema(); sc.setId("TBL" + tblId); sc.setSchema(schemaUrl); sc.setTable((String) schema.get("shortName")); sc.setDataset((String) schema.get("dataSet")); schemas.add(sc); schemasChk.add(schema.get("xml_schema")); } } catch (Exception e) { _logger.error("Error getting DD schemas",e); throw new DCMException(BusinessConstants.EXCEPTION_GENERAL); } return schemas; }
6392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6392/e3c3f1527a65076cb9d1fe5e545a2a1ee617ebaa/SchemaManager.java/clean/src/eionet/gdem/dcm/business/SchemaManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19558, 588, 40, 3948, 7753, 1435, 15069, 5528, 49, 503, 95, 202, 202, 1076, 7432, 7753, 33, 2704, 19558, 5621, 202, 202, 1076, 7432, 7753, 782, 79, 33, 2704, 19558, 5621, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19558, 588, 40, 3948, 7753, 1435, 15069, 5528, 49, 503, 95, 202, 202, 1076, 7432, 7753, 33, 2704, 19558, 5621, 202, 202, 1076, 7432, 7753, 782, 79, 33, 2704, 19558, 5621, 202, ...
public void startLayout(Graphics g) {
public void startLayout(final Graphics g, Dimension d) {
public void startLayout(Graphics g) { if (shouldLayout()) { //Uu.p("really starting new thread"); //Uu.p("threaded = " + threaded); //done = false; graphics = g; if (threaded) { new Thread(this).start(); } else { run(); } } else { //Uu.p("layout already in progress. skipping layout"); } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a821099cb0ae20c2cf9015c8152b89c95600f113/LayoutThread.java/buggy/src/java/org/xhtmlrenderer/swing/LayoutThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 3744, 12, 6385, 16830, 314, 16, 13037, 302, 13, 288, 3639, 309, 261, 13139, 3744, 10756, 288, 5411, 368, 57, 89, 18, 84, 2932, 266, 1230, 5023, 394, 2650, 8863, 5411, 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, 918, 787, 3744, 12, 6385, 16830, 314, 16, 13037, 302, 13, 288, 3639, 309, 261, 13139, 3744, 10756, 288, 5411, 368, 57, 89, 18, 84, 2932, 266, 1230, 5023, 394, 2650, 8863, 5411, 36...
+ previous.getRows().size()), rows, null, idField);
+ previous.getRows().size()), rows, null, idField, sizeQuery);
protected DBBatch getBatch(DBBatch previous) throws SQLException { String tempSql = sql; if (previous != null) { int whereIndex = sql.toUpperCase().indexOf(" WHERE "); tempSql = tempSql + (whereIndex == -1 ? " WHERE " : " AND ") + idField + " > " + previous.getLastId(); } tempSql = tempSql + " ORDER BY " + idField + " LIMIT " + BATCH_SIZE; Connection c = db.getConnection(); Statement s = c.createStatement(); ResultSet r = s.executeQuery(tempSql); List rows = new ArrayList(); ResultSetMetaData rMeta = r.getMetaData(); int columnCount = rMeta.getColumnCount(); while (r.next()) { Map row = new HashMap(); for (int i = 1; i <= columnCount; i++) { String columnName = rMeta.getColumnName(i); row.put(columnName, r.getObject(i)); } rows.add(row); } c.close(); return new DBBatch((previous == null ? 0 : previous.getOffset() + previous.getRows().size()), rows, null, idField); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/2face880a2db88cf84fea1b945343607c6121e17/DirectDBReader.java/buggy/intermine/src/java/org/intermine/dataconversion/DirectDBReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2383, 4497, 28812, 12, 2290, 4497, 2416, 13, 1216, 6483, 288, 3639, 514, 1906, 5101, 273, 1847, 31, 3639, 309, 261, 11515, 480, 446, 13, 288, 5411, 509, 1625, 1016, 273, 1847, 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, 4750, 2383, 4497, 28812, 12, 2290, 4497, 2416, 13, 1216, 6483, 288, 3639, 514, 1906, 5101, 273, 1847, 31, 3639, 309, 261, 11515, 480, 446, 13, 288, 5411, 509, 1625, 1016, 273, 1847, 18, ...
ExecutionContext context )
ExecutionContext context, boolean fromGrid )
public static void handleOnCreate( CellContent content, IRowData rowData, ExecutionContext context ) { try { ReportItemDesign cellDesign = ( ReportItemDesign ) content .getGenerateBy( ); ICellInstance cell = new CellInstance( content, rowData, context ); if ( handleJS( cell, cellDesign.getOnCreate( ), context ).didRun( ) ) return; ICellEventHandler eh = getEventHandler( cellDesign, context ); if ( eh != null ) eh.onCreate( cell, context.getReportContext( ) ); } catch ( Exception e ) { addException( context, e ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c332d326b9697aa0e37846b9b0c7fd09f3641e6f/CellScriptExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/CellScriptExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 1398, 1684, 12, 8614, 1350, 913, 16, 467, 1999, 751, 24124, 16, 1082, 202, 3210, 1042, 819, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 1180, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 1398, 1684, 12, 8614, 1350, 913, 16, 467, 1999, 751, 24124, 16, 1082, 202, 3210, 1042, 819, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 1180, ...
global.getErr().print("js> "); global.getErr().flush();
ps.print("js> "); ps.flush();
public static void processSource(Context cx, String filename) { if (filename == null || filename.equals("-")) { if (filename == null) { // print implementation version getOut().println(cx.getImplementationVersion()); } // Use the interpreter for interactive input cx.setOptimizationLevel(-1); BufferedReader in = new BufferedReader (new InputStreamReader(global.getIn())); int lineno = 1; boolean hitEOF = false; while (!hitEOF) { int startline = lineno; if (filename == null) global.getErr().print("js> "); global.getErr().flush(); String source = ""; // Collect lines of source to compile. while (true) { String newline; try { newline = in.readLine(); } catch (IOException ioe) { global.getErr().println(ioe.toString()); break; } if (newline == null) { hitEOF = true; break; } source = source + newline + "\n"; lineno++; if (cx.stringIsCompilableUnit(source)) break; } Script script = loadScriptFromSource(cx, source, "<stdin>", lineno, null); if (script != null) { Object result = evaluateScript(script, cx, global); if (result != Context.getUndefinedValue()) { try { global.getErr().println(Context.toString(result)); } catch (RhinoException rex) { errorReporter.reportException(rex); } } NativeArray h = global.history; h.put((int)h.getLength(), h, source); } } global.getErr().println(); } else { processFile(cx, global, filename); } System.gc(); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/f33158e1f3ca50dd2d54de255aa8870a9f06997d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1207, 1830, 12, 1042, 9494, 16, 514, 1544, 13, 565, 288, 3639, 309, 261, 3459, 422, 446, 747, 1544, 18, 14963, 2932, 10951, 3719, 288, 5411, 309, 261, 3459, 422, 446, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1207, 1830, 12, 1042, 9494, 16, 514, 1544, 13, 565, 288, 3639, 309, 261, 3459, 422, 446, 747, 1544, 18, 14963, 2932, 10951, 3719, 288, 5411, 309, 261, 3459, 422, 446, 13...
append(entry.sent_msgs_seqno).append(", first=").append(hdr.first).append(')')); if(Global.copy) entry.sent_msgs.add(entry.sent_msgs_seqno, msg.copy()); else entry.sent_msgs.add(entry.sent_msgs_seqno, msg);
append(seqno));
public void down(Event evt) { switch (evt.getType()) { case Event.MSG: // Add UnicastHeader, add to AckSenderWindow and pass down Message msg = (Message) evt.getArg(); Object dst = msg.getDest(); /* only handle unicast messages */ if (dst == null || ((Address) dst).isMulticastAddress()) { break; } if(loopback && dst.equals(local_addr)) { Message copy=msg.copy(); copy.setSrc(local_addr); passUp(new Event(Event.MSG, copy)); return; } Entry entry; synchronized(connections) { entry=(Entry)connections.get(dst); if(entry == null) { entry=new Entry(); connections.put(dst, entry); } } synchronized(entry) { // threads will only sync if they access the same entry UnicastHeader hdr=new UnicastHeader(UnicastHeader.DATA, entry.sent_msgs_seqno); if(entry.sent_msgs == null) { // first msg to peer 'dst' hdr.first=true; entry.sent_msgs=new AckSenderWindow(this, timeout, this, timer); // use the protocol stack's timer } msg.putHeader(name, hdr); if(trace) log.trace(new StringBuffer().append(local_addr).append(" --> DATA(").append(dst).append(": #"). append(entry.sent_msgs_seqno).append(", first=").append(hdr.first).append(')')); if(Global.copy) entry.sent_msgs.add(entry.sent_msgs_seqno, msg.copy()); // add *including* UnicastHeader else entry.sent_msgs.add(entry.sent_msgs_seqno, msg); // add *including* UnicastHeader entry.sent_msgs_seqno++; num_msgs_sent++; num_bytes_sent+=msg.getLength(); } msg=null; return; // AckSenderWindow will send message for us case Event.BECOME_SERVER: operational=true; break; case Event.VIEW_CHANGE: // remove connections to peers that are not members anymore ! Vector new_members=((View)evt.getArg()).getMembers(); Vector left_members; synchronized(members) { left_members=Util.determineLeftMembers(members, new_members); members.removeAllElements(); if(new_members != null) members.addAll(new_members); } // Remove all connections for members that left between the current view and the new view // See DESIGN for details boolean rc; if(use_gms && left_members.size() > 0) { Object mbr; for(int i=0; i < left_members.size(); i++) { mbr=left_members.elementAt(i); rc=removeConnection(mbr); if(rc && trace) log.trace("removed " + mbr + " from connection table, members " + left_members + " left"); } } break; } passDown(evt); // Pass on to the layer below us }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/2b965b68ffc9d0020e5286ab648e3befd17d88b3/UNICAST.java/buggy/src/org/jgroups/protocols/UNICAST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2588, 12, 1133, 6324, 13, 288, 3639, 1620, 261, 73, 11734, 18, 588, 559, 10756, 288, 3639, 648, 2587, 18, 11210, 30, 368, 1436, 1351, 12544, 1864, 16, 527, 358, 22322, 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, 2588, 12, 1133, 6324, 13, 288, 3639, 1620, 261, 73, 11734, 18, 588, 559, 10756, 288, 3639, 648, 2587, 18, 11210, 30, 368, 1436, 1351, 12544, 1864, 16, 527, 358, 22322, 12021, ...
if (element instanceof ProblemMarker)
if (element instanceof ConcreteMarker)
public Font getFont(Object element) { if (element instanceof ProblemMarker) return null; return JFaceResources.getFontRegistry().getBold( JFaceResources.DEFAULT_FONT); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d3c79480171af7dee611c76772d985b0e170865b/MarkerViewLabelProvider.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerViewLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10063, 18776, 12, 921, 930, 13, 288, 202, 202, 430, 261, 2956, 1276, 21685, 7078, 13, 1082, 202, 2463, 446, 31, 202, 202, 2463, 804, 11824, 3805, 18, 588, 5711, 4243, 7675, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 10063, 18776, 12, 921, 930, 13, 288, 202, 202, 430, 261, 2956, 1276, 21685, 7078, 13, 1082, 202, 2463, 446, 31, 202, 202, 2463, 804, 11824, 3805, 18, 588, 5711, 4243, 7675, 58...
if ( bindings != null ) { List postGoals = bindings.getPostGoals( goal ); results = resolveGoalDecorators( postGoals, includedGoals, results, context, pluginManager ); }
results = resolveGoalDecorators( goal, false, includedGoals, results, context, pluginManager );
private List resolveWithPrereqs( List work, Set includedGoals, List results, MavenGoalExecutionContext context, PluginManager pluginManager ) { if ( !work.isEmpty() ) { String goal = (String) work.remove( 0 ); MojoDescriptor descriptor = context.getMojoDescriptor( goal ); if ( descriptor.alwaysExecute() || !includedGoals.contains( goal ) ) { GoalDecoratorBindings bindings = context.getGoalDecoratorBindings(); if ( bindings != null ) { List preGoals = bindings.getPreGoals( goal ); results = resolveGoalDecorators( preGoals, includedGoals, results, context, pluginManager ); } results = resolveWithPrereqs( work, includedGoals, results, context, pluginManager ); includedGoals.add( goal ); results.add( goal ); if ( bindings != null ) { List postGoals = bindings.getPostGoals( goal ); results = resolveGoalDecorators( postGoals, includedGoals, results, context, pluginManager ); } } } return results; }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/a949eb66dedc63459e4897d50c37374814750c66/GoalResolutionPhase.java/clean/maven-core/src/main/java/org/apache/maven/lifecycle/goal/phase/GoalResolutionPhase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 2245, 1190, 2050, 822, 12926, 12, 987, 1440, 16, 1000, 5849, 5741, 1031, 16, 987, 1686, 16, 17176, 27716, 3210, 1042, 819, 16, 6258, 1318, 1909, 1318, 262, 565, 288, 3639, 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, 377, 3238, 987, 2245, 1190, 2050, 822, 12926, 12, 987, 1440, 16, 1000, 5849, 5741, 1031, 16, 987, 1686, 16, 17176, 27716, 3210, 1042, 819, 16, 6258, 1318, 1909, 1318, 262, 565, 288, 3639, 309,...
content= StubUtility.genStub(fType, curr, false, imports);
content= StubUtility.genStub(fType, curr, false, false, imports);
public void execute(IProgressMonitor monitor) throws CoreException, InterruptedException { try { if (monitor == null) { monitor= new NullProgressMonitor(); } monitor.beginTask(CodeManipulationMessages.getString("AddMethodStubOperation.description"), fMethods.length + 2); //$NON-NLS-1$ fOverrideAll= (fOverrideQuery == null); fReplaceAll= (fReplaceQuery == null); List existingMethods= Arrays.asList(fType.getMethods()); ArrayList createdMethods= new ArrayList(); ImportsStructure imports= new ImportsStructure(fType.getCompilationUnit()); String lineDelim= StubUtility.getLineDelimiterUsed(fType); int indent= StubUtility.getIndentUsed(fType) + 1; ITypeHierarchy typeHierarchy= fType.newSupertypeHierarchy(new SubProgressMonitor(monitor, 1)); boolean overrideAllFinals= false; for (int i= 0; i < fMethods.length; i++) { try { String content; IMethod curr= fMethods[i]; if (StubUtility.findMethod(curr, createdMethods) != null) { // ignore duplicated methods continue; } IMethod inheritedMethod= StubUtility.findInHierarchy(typeHierarchy, curr); if (inheritedMethod == null) { // create method without super call content= StubUtility.genStub(fType, curr, false, imports); } else { int flags= inheritedMethod.getFlags(); if (Flags.isFinal(flags) || Flags.isPrivate(flags)) { // ask before overwriting final methods if (!queryOverrideFinalMethods(inheritedMethod)) { continue; } } content= StubUtility.genStub(fType, inheritedMethod, imports); } IMethod sibling= null; IMethod existing= StubUtility.findMethod(curr, existingMethods); if (existing != null) { // ask before replacing a method if (!queryReplaceMethods(existing)) { continue; } int idx= existingMethods.indexOf(existing) + 1; if (idx < existingMethods.size()) { sibling= (IMethod) existingMethods.get(idx); } existing.delete(false, null); } else if (curr.isConstructor() && !existingMethods.isEmpty()) { // add constructors at the beginning sibling= (IMethod) existingMethods.get(1); } String formattedContent= StubUtility.codeFormat(content, indent, lineDelim) + lineDelim; IMethod newMethod= fType.createMethod(formattedContent, sibling, true, null); createdMethods.add(newMethod); } finally { monitor.worked(1); if (monitor.isCanceled()) { throw new InterruptedException(); } } } int nCreated= createdMethods.size(); if (nCreated > 0) { imports.create(fDoSave, null); monitor.worked(1); fCreatedMethods= (IMethod[]) createdMethods.toArray(new IMethod[nCreated]); } } finally { monitor.done(); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b316d8fb061df472ae50d97f16ca73af83c5e36d/AddMethodStubOperation.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/codemanipulation/AddMethodStubOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 16, 7558, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 10259, 422, 446, 13, 288, 9506, 202, 10259, 33, 394, 4112, 5491, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 16, 7558, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 10259, 422, 446, 13, 288, 9506, 202, 10259, 33, 394, 4112, 5491, ...
input = new BufferedInputStream(new FileInputStream(testLog));
input = new BufferedInputStream(loadTestLog(logName));
public void testGetPropertiesOnlyModifications() throws IOException, ParseException { CVS cvs = new CVS(); cvs.setMailAliases(new Hashtable()); cvs.setProperty("property"); cvs.setPropertyOnDelete("propertyOnDelete"); File testLog = new File("test/net/sourceforge/cruisecontrol/sourcecontrols/cvslog1-11mods.txt"); BufferedInputStream input = new BufferedInputStream(new FileInputStream(testLog)); cvs.parseStream(input); input.close(); Hashtable table = cvs.getProperties(); assertNotNull("Table of properties shouldn't be null.", table); assertEquals("Should be one property.", 1, table.size()); assertTrue("Property was not set.", table.containsKey("property")); //negative test CVS cvs2 = new CVS(); cvs2.setMailAliases(new Hashtable()); cvs2.setPropertyOnDelete("propertyOnDelete"); input = new BufferedInputStream(new FileInputStream(testLog)); cvs2.parseStream(input); input.close(); table = cvs2.getProperties(); assertNotNull("Table of properties shouldn't be null.", table); assertEquals("Shouldn't be any properties.", 0, table.size()); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/8fb81ec32230330d1df22f4d2a4ef8dcaff5b152/CVSTest.java/clean/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 2297, 3386, 28340, 1435, 5411, 1216, 1860, 16, 10616, 288, 3639, 385, 14640, 276, 6904, 273, 394, 385, 14640, 5621, 3639, 276, 6904, 18, 542, 6759, 9667, 12, 2704, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 2297, 3386, 28340, 1435, 5411, 1216, 1860, 16, 10616, 288, 3639, 385, 14640, 276, 6904, 273, 394, 385, 14640, 5621, 3639, 276, 6904, 18, 542, 6759, 9667, 12, 2704, 1...
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setEnabled(b);
public void setEnabled(boolean b) throws NotImplementedException { throw new Error("not implemented"); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/030f234365d7fd52f6b14483c6fc238ec6dea29c/JTableHeader.java/clean/javax/swing/table/JTableHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 12888, 12, 6494, 324, 13, 3639, 1216, 10051, 503, 1377, 288, 3639, 5016, 1523, 1042, 1721, 273, 336, 10451, 1494, 1864, 6747, 5621, 5016, 1523, 1841, 1161, 273, 1721, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4202, 1071, 918, 12888, 12, 6494, 324, 13, 3639, 1216, 10051, 503, 1377, 288, 3639, 5016, 1523, 1042, 1721, 273, 336, 10451, 1494, 1864, 6747, 5621, 5016, 1523, 1841, 1161, 273, 1721, 18, 588, ...
public OldTestClassRunner(Test test) { super(); fTest= test;
public OldTestClassRunner(Class<?> klass) { this(new TestSuite(klass.asSubclass(TestCase.class)));
public OldTestClassRunner(Test test) { super(); fTest= test; }
48424 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48424/0cdf29715af64edd05229c400f214417fecdef89/OldTestClassRunner.java/buggy/org/junit/internal/runners/OldTestClassRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18613, 4709, 797, 9709, 12, 4709, 1842, 13, 288, 202, 202, 9565, 5621, 202, 202, 74, 4709, 33, 1842, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18613, 4709, 797, 9709, 12, 4709, 1842, 13, 288, 202, 202, 9565, 5621, 202, 202, 74, 4709, 33, 1842, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public BirtViewerReportService( ServletConfig conf )
public BirtViewerReportService( ServletContext context )
public BirtViewerReportService( ServletConfig conf ) { try { ReportEngineService.initEngineInstance( conf ); } catch ( BirtException e ) { // TODO Auto-generated catch block e.printStackTrace( ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4ea91dbf969b6a2c94d239aeb7a50028eecd14bb/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 2714, 18415, 4820, 1179, 12, 7971, 809, 2195, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 4410, 1179, 18, 2738, 4410, 1442, 12, 2195, 11272, 202, 202, 97,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 2714, 18415, 4820, 1179, 12, 7971, 809, 2195, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 4410, 1179, 18, 2738, 4410, 1442, 12, 2195, 11272, 202, 202, 97,...
_loop1497:
_loop1501:
public final void getstate(AST _t) throws RecognitionException { AST getstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1495 = _t; AST tmp1108_AST_in = (AST)_t; match(_t,GET); _t = _t.getFirstChild(); findwhich(_t); _t = _retTree; AST tmp1109_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop1497: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCLUSIVELOCK: case NOLOCK: case SHARELOCK: { lockhow(_t); _t = _retTree; break; } case NOWAIT: { AST tmp1110_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } default: { break _loop1497; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 336, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 336, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 336, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
serverBug = BugzillaRepositoryUtil.getBug(repository, bugzillaInput.getProxySettings(), bug.getId());
serverBug = BugzillaRepositoryUtil.getBug(repository.getUrl(), repository.getUserName(), repository.getPassword(), bugzillaInput.getProxySettings(), bug.getId());
protected IStatus run(IProgressMonitor monitor) { final BugzillaReport serverBug; try { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository(BugzillaPlugin.REPOSITORY_KIND, bug.getRepositoryUrl()); serverBug = BugzillaRepositoryUtil.getBug(repository, bugzillaInput.getProxySettings(), bug.getId()); // If no bug was found on the server, throw an exception so that // the // user gets the same message that appears when there is a // problem reading the server. if (serverBug == null) throw new Exception(); } catch (Exception e) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Could not open bug.", "Bug #" + bug.getId() + " could not be read from the server."); } }); return new Status(IStatus.OK, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "Could not get the bug report from the server.", null); } PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { compareInput.setTitle("Bug #" + bug.getId()); compareInput.setLeft(bug); compareInput.setRight(serverBug); CompareUI.openCompareEditor(compareInput); } }); return new Status(IStatus.OK, BugzillaUiPlugin.PLUGIN_ID, IStatus.OK, "", null); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/77a8bc5b7d13d1a0a06b8006b85cd9c140b61857/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 6385, 16907, 15990, 4820, 1438, 19865, 31, 1082, 202, 698, 288, 9506, 202, 2174, 3305, 3352, 273, 8005, 7901, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 6385, 16907, 15990, 4820, 1438, 19865, 31, 1082, 202, 698, 288, 9506, 202, 2174, 3305, 3352, 273, 8005, 7901, 21...
if ((hit.getCorrespondingTask() == null || hit.getCorrespondingTask().getTaskData() == null)
if (!temp.contains(hit) && (hit.getCorrespondingTask() == null || hit.getCorrespondingTask().getTaskData() == null)
protected IStatus run(IProgressMonitor monitor) { monitor.beginTask(JOB_LABEL, queries.size()); for (AbstractRepositoryQuery repositoryQuery : queries) { TasksUiPlugin.getTaskListManager().getTaskList().notifyContainerUpdated(repositoryQuery); repositoryQuery.setStatus(null); monitor.setTaskName("Synchronizing: " + repositoryQuery.getSummary()); setProperty(IProgressConstants.ICON_PROPERTY, TaskListImages.REPOSITORY_SYNCHRONIZE); TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository( repositoryQuery.getRepositoryKind(), repositoryQuery.getRepositoryUrl()); if (repository == null) { repositoryQuery.setStatus(new Status(Status.ERROR, TasksUiPlugin.PLUGIN_ID, IStatus.OK, "No task repository found: " + repositoryQuery.getRepositoryUrl(), null)); } else { QueryHitCollector collector = new QueryHitCollector(TasksUiPlugin.getTaskListManager().getTaskList()); IStatus resultingStatus = connector.performQuery(repositoryQuery, repository, monitor, collector); if (resultingStatus.getException() == null) { repositoryQuery.updateHits(collector.getHits(), taskList); HashSet<AbstractQueryHit> hitsToSync = new HashSet<AbstractQueryHit>(); if (connector.getTaskDataHandler() != null) { for (AbstractQueryHit hit : collector.getHits()) { if ((hit.getCorrespondingTask() == null || hit.getCorrespondingTask().getTaskData() == null) && TasksUiPlugin.getDefault().getTaskDataManager().getTaskData( hit.getHandleIdentifier()) == null) { hitsToSync.add(hit); } if (hitsToSync.size() > NUM_HITS_TO_PRIME) break; } PrimeTaskData job = new PrimeTaskData(repository, hitsToSync); job.setPriority(Job.LONG); job.schedule(); } // for (AbstractQueryHit hit: collector.getHits()) { // if(hit.getCorrespondingTask() != null && // hit.getCorrespondingTask().getTaskData() == null && // tasks2syc.size() < 20) { // tasks2syc.add(hit.getCorrespondingTask()); // connector.getTaskDataHandler().getTaskData(repository, // hit.getHandleIdentifier()); // } // } if (synchTasks) { repositories.add(repository); // TODO: Should sync changed per repository not per // query // TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, // repository); } } else { repositoryQuery.setStatus(resultingStatus); } } repositoryQuery.setCurrentlySynchronizing(false); if (repositoryQuery.getStatus() == null) { repositoryQuery.setLastRefreshTimeStamp(DateUtil.getFormattedDate(new Date(), "MMM d, H:mm:ss")); } TasksUiPlugin.getTaskListManager().getTaskList().notifyContainerUpdated(repositoryQuery); monitor.worked(1); } for (TaskRepository repository : repositories) { TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, repository); } // HACK: force entire Task List to refresh in case containers need to // appear or disappear TasksUiPlugin.getTaskListManager().getTaskList().notifyContainerUpdated(null); if (queries != null && queries.size() > 0) { taskList.removeOrphanedHits(); } return Status.OK_STATUS; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/721b77562ac8c2cedb641a44b0266f4404650d85/SynchronizeQueryJob.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/SynchronizeQueryJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 10259, 18, 10086, 2174, 12, 18321, 67, 13545, 16, 6218, 18, 1467, 10663, 202, 202, 1884, 261, 7469, 3305, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 10259, 18, 10086, 2174, 12, 18321, 67, 13545, 16, 6218, 18, 1467, 10663, 202, 202, 1884, 261, 7469, 3305, 1138, ...
String getOperationMessage() {
protected String getOperationMessage() {
String getOperationMessage() { return IDEWorkbenchMessages.getString("ScrubLocalAction.progress"); //$NON-NLS-1$ }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4eac3d2cc275edceeff6f6f06f8d39203c7c731c/ScrubLocalAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 21162, 1079, 1435, 288, 3639, 327, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 1541, 18271, 2042, 1803, 18, 8298, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 21162, 1079, 1435, 288, 3639, 327, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 1541, 18271, 2042, 1803, 18, 8298, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 565, 289, 2, -10...
IFileEditorMapping[] allMappings = PlatformUI.getWorkbench() .getEditorRegistry().getFileEditorMappings();
IFileEditorMapping[] allMappings = ((EditorRegistry)PlatformUI.getWorkbench() .getEditorRegistry()).getUnifiedMappings();
private IFileEditorMapping[] getInput() { //Filter the mappings to be just those with a wildcard extension if (currentInput == null) { List wildcardEditors = new ArrayList(); IFileEditorMapping[] allMappings = PlatformUI.getWorkbench() .getEditorRegistry().getFileEditorMappings(); for (int i = 0; i < allMappings.length; i++) { if (allMappings[i].getName().equals("*"))//$NON-NLS-1$ wildcardEditors.add(allMappings[i]); } currentInput = new IFileEditorMapping[wildcardEditors.size()]; wildcardEditors.toArray(currentInput); } return currentInput; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7c31cc8a9100c84ac29dee7511df0f070fa1df4b/TypeFilteringDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 812, 6946, 3233, 8526, 12353, 1435, 288, 3639, 368, 1586, 326, 7990, 358, 506, 2537, 5348, 598, 279, 8531, 2710, 3639, 309, 261, 2972, 1210, 422, 446, 13, 288, 5411, 987, 8531,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 812, 6946, 3233, 8526, 12353, 1435, 288, 3639, 368, 1586, 326, 7990, 358, 506, 2537, 5348, 598, 279, 8531, 2710, 3639, 309, 261, 2972, 1210, 422, 446, 13, 288, 5411, 987, 8531,...
public static void diffControlsState(PipelineContext pipelineContext, ContentHandlerHelper ch, XFormsContainingDocument containingDocument, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2, Map valueChangeControlIds) {
public static void diffControlsState(ContentHandlerHelper ch, XFormsContainingDocument containingDocument, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2, Map valueChangeControlIds) {
public static void diffControlsState(PipelineContext pipelineContext, ContentHandlerHelper ch, XFormsContainingDocument containingDocument, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2, Map valueChangeControlIds) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if ((state1 != null && state2 != null && state1.size() != state2.size()) || (state2 == null)) { throw new IllegalStateException("Illegal state when comparing controls."); } final boolean isStaticReadonly = containingDocument.getReadonlyAppearance().equals(XFormsConstants.XXFORMS_READONLY_APPEARANCE_STATIC_VALUE); final AttributesImpl attributesImpl = new AttributesImpl(); final Iterator j = (state1 == null) ? null : state1.iterator(); for (Iterator i = state2.iterator(); i.hasNext();) { final XFormsControl xformsControl1 = (state1 == null) ? null : (XFormsControl) j.next(); final XFormsControl xformsControl2 = (XFormsControl) i.next(); // 1: Check current control if (!(xformsControl2 instanceof XFormsRepeatControl)) { // xforms:repeat doesn't need to be handled independently, iterations do it // Output diffs between controlInfo1 and controlInfo2 final boolean isValueChangeControl = valueChangeControlIds != null && valueChangeControlIds.get(xformsControl2.getEffectiveId()) != null; if ((!xformsControl2.equals(xformsControl1) || isValueChangeControl) && !(isStaticReadonly && xformsControl2.isReadonly() && xformsControl2 instanceof XFormsTriggerControl)) { // Don't send anything if nothing has changed // But we force a change for controls whose values changed in the request // Also, we don't output anything for triggers in static readonly mode attributesImpl.clear(); // Control id attributesImpl.addAttribute("", "id", "id", ContentHandlerHelper.CDATA, xformsControl2.getEffectiveId()); // Control children values if (!(xformsControl2 instanceof RepeatIterationControl)) { { final String labelValue1 = (xformsControl1 == null) ? null : xformsControl1.getLabel(); final String labelValue2 = xformsControl2.getLabel(); if (!((labelValue1 == null && labelValue2 == null) || (labelValue1 != null && labelValue2 != null && labelValue1.equals(labelValue2)))) { attributesImpl.addAttribute("", "label", "label", ContentHandlerHelper.CDATA, labelValue2 != null ? labelValue2 : ""); } } { final String helpValue1 = (xformsControl1 == null) ? null : xformsControl1.getHelp(); final String helpValue2 = xformsControl2.getHelp(); if (!((helpValue1 == null && helpValue2 == null) || (helpValue1 != null && helpValue2 != null && helpValue1.equals(helpValue2)))) { attributesImpl.addAttribute("", "help", "help", ContentHandlerHelper.CDATA, helpValue2 != null ? helpValue2 : ""); } } { final String hintValue1 = (xformsControl1 == null) ? null : xformsControl1.getHint(); final String hintValue2 = xformsControl2.getHint(); if (!((hintValue1 == null && hintValue2 == null) || (hintValue1 != null && hintValue2 != null && hintValue1.equals(hintValue2)))) { attributesImpl.addAttribute("", "hint", "hint", ContentHandlerHelper.CDATA, hintValue2 != null ? hintValue2 : ""); } } { final String alertValue1 = (xformsControl1 == null) ? null : xformsControl1.getAlert(); final String alertValue2 = xformsControl2.getAlert(); if (!((alertValue1 == null && alertValue2 == null) || (alertValue1 != null && alertValue2 != null && alertValue1.equals(alertValue2)))) { attributesImpl.addAttribute("", "alert", "alert", ContentHandlerHelper.CDATA, alertValue2 != null ? alertValue2 : ""); } } // Output xforms:output-specific information if (xformsControl2 instanceof XFormsOutputControl) { final XFormsOutputControl outputControlInfo1 = (XFormsOutputControl) xformsControl1; final XFormsOutputControl outputControlInfo2 = (XFormsOutputControl) xformsControl2; final String mediaTypeValue1 = (outputControlInfo1 == null) ? null : outputControlInfo1.getMediaTypeAttribute(); final String mediaTypeValue2 = outputControlInfo2.getMediaTypeAttribute(); if (!((mediaTypeValue1 == null && mediaTypeValue2 == null) || (mediaTypeValue1 != null && mediaTypeValue2 != null && mediaTypeValue1.equals(mediaTypeValue2)))) { attributesImpl.addAttribute("", "mediatype", "mediatype", ContentHandlerHelper.CDATA, mediaTypeValue2 != null ? mediaTypeValue2 : ""); } } } // Model item properties if (xformsControl1 == null || xformsControl1.isReadonly() != xformsControl2.isReadonly()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isReadonly())); } if (xformsControl1 == null || xformsControl1.isRequired() != xformsControl2.isRequired()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRequired())); } if (xformsControl1 == null || xformsControl1.isRelevant() != xformsControl2.isRelevant()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRelevant())); } if (xformsControl1 == null || xformsControl1.isValid() != xformsControl2.isValid()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isValid())); } final boolean isOutputControlWithValueAttribute = xformsControl2 instanceof XFormsOutputControl && ((XFormsOutputControl) xformsControl2).getValueAttribute() != null; if (!(xformsControl2 instanceof RepeatIterationControl) && !isOutputControlWithValueAttribute) { final String typeValue1 = (xformsControl1 == null) ? null : xformsControl1.getType(); final String typeValue2 = xformsControl2.getType(); if (xformsControl1 == null || !((typeValue1 == null && typeValue2 == null) || (typeValue1 != null && typeValue2 != null && typeValue1.equals(typeValue2)))) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, typeValue2 != null ? typeValue2 : ""); } } if (!(xformsControl2 instanceof RepeatIterationControl)) { // Regular control // Get current value if possible for this control // NOTE: We issue the new value in all cases because we don't have yet a mechanism to tell the // client not to update the value, unlike with attributes which can be missing if (xformsControl2 instanceof XFormsValueControl && !(xformsControl2 instanceof XFormsUploadControl)) { final XFormsValueControl xformsValueControl = (XFormsValueControl) xformsControl2; // Check if a "display-value" attribute must be added if (!isOutputControlWithValueAttribute) { final String displayValue = xformsValueControl.getDisplayValue(); if (displayValue != null) attributesImpl.addAttribute("", "display-value", "display-value", ContentHandlerHelper.CDATA, displayValue); } // Create element with text value ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); ch.text(xformsValueControl.convertToExternalValue(xformsValueControl.getValue())); ch.endElement(); } else if (!"case".equals(xformsControl2.getName())) { // No value, just output element with no content ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); } } else { // Repeat iteration final RepeatIterationControl repeatIterationInfo = (RepeatIterationControl) xformsControl2; attributesImpl.addAttribute("", "iteration", "iteration", ContentHandlerHelper.CDATA, Integer.toString(repeatIterationInfo.getIteration())); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-iteration", attributesImpl); } } // Handle itemsets if (xformsControl2 instanceof XFormsSelect1Control || xformsControl2 instanceof XFormsSelectControl) { final XFormsSelect1Control xformsSelect1Control1 = (XFormsSelect1Control) xformsControl1; final XFormsSelect1Control xformsSelect1Control2 = (XFormsSelect1Control) xformsControl2; if (itemsetsFull1 != null && xformsSelect1Control1 != null) { final Object items = xformsSelect1Control1.getItemset(); if (items != null) itemsetsFull1.put(xformsSelect1Control1.getEffectiveId(), items); } if (itemsetsFull2 != null && xformsSelect1Control2 != null) { final Object items = xformsSelect1Control2.getItemset(); if (items != null) itemsetsFull2.put(xformsSelect1Control2.getEffectiveId(), items); } } } // 2: Check children if any if (XFormsControls.isGroupingControl(xformsControl2.getName()) || xformsControl2 instanceof RepeatIterationControl) { final List children1 = (xformsControl1 == null) ? null : xformsControl1.getChildren(); final List children2 = (xformsControl2.getChildren() == null) ? Collections.EMPTY_LIST : xformsControl2.getChildren(); // Repeat grouping control if (xformsControl2 instanceof XFormsRepeatControl && children1 != null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Special case of repeat update final int size1 = children1.size(); final int size2 = children2.size(); if (size1 == size2) { // No add or remove of children diffControlsState(pipelineContext, ch, containingDocument, children1, xformsControl2.getChildren(), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 > size1) { // Size has grown // Copy template instructions for (int k = size1 + 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Diff the common subset diffControlsState(pipelineContext, ch, containingDocument, children1, children2.subList(0, size1), itemsetsFull1, itemsetsFull2, valueChangeControlIds); // Issue new values for new iterations diffControlsState(pipelineContext, ch, containingDocument, null, children2.subList(size1, size2), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 < size1) { // Size has shrunk final String repeatControlId = xformsControl2.getEffectiveId(); final int indexOfRepeatHierarchySeparator = repeatControlId.indexOf(XFormsConstants.REPEAT_HIERARCHY_SEPARATOR_1); final String templateId = (indexOfRepeatHierarchySeparator == -1) ? repeatControlId : repeatControlId.substring(0, indexOfRepeatHierarchySeparator); final String parentIndexes = (indexOfRepeatHierarchySeparator == -1) ? "" : repeatControlId.substring(indexOfRepeatHierarchySeparator + 1); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "delete-repeat-elements", new String[]{"id", templateId, "parent-indexes", parentIndexes, "count", "" + (size1 - size2)}); // Diff the remaining subset diffControlsState(pipelineContext, ch, containingDocument, children1.subList(0, size2), children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } else if (xformsControl2 instanceof XFormsRepeatControl && xformsControl1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle new sub-xforms:repeat // Copy template instructions final int size2 = children2.size(); for (int k = 2; k <= size2; k++) { // don't copy the first template, which is already copied when the parent is copied outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(pipelineContext, ch, containingDocument, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (xformsControl2 instanceof XFormsRepeatControl && children1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle repeat growing from size 0 (case of instance replacement, for example) // Copy template instructions final int size2 = children2.size(); for (int k = 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(pipelineContext, ch, containingDocument, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else { // Other grouping controls diffControlsState(pipelineContext, ch, containingDocument, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/4991b30415dcfb1b79b16bb5c46a194e21aa81a4/XFormsServer.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3122, 16795, 1119, 12, 1350, 1503, 2276, 462, 16, 1139, 18529, 24344, 2519, 4191, 2519, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 761, 4424, 5080, 21, 16, 1635, 761,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3122, 16795, 1119, 12, 1350, 1503, 2276, 462, 16, 1139, 18529, 24344, 2519, 4191, 2519, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 761, 4424, 5080, 21, 16, 1635, 761,...
if (addStudentAction == null) {
AbstractAction a = new AbstractAction() {
public AbstractAction getAddStudentAction(Icon icon) { if (addStudentAction == null) { addStudentAction = new AbstractAction() { AddStudentDialog dialog = new AddStudentDialog(symphonie, builder); public void actionPerformed(ActionEvent e) { dialog.setModal(true); dialog.setVisible(true); } }; } addStudentAction.putValue(Action.SMALL_ICON, icon); return addStudentAction; }
12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/c842b364d6a94077b64fae7a7404c364e26003c6/SymphonieActionFactory.java/buggy/dupratcated/src/fr/umlv/symphonie/view/SymphonieActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4115, 1803, 336, 986, 19943, 319, 1803, 12, 5554, 4126, 13, 288, 4202, 4115, 1803, 279, 273, 394, 4115, 1803, 1435, 288, 1377, 527, 19943, 319, 1803, 273, 394, 4115, 1803, 1435, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4115, 1803, 336, 986, 19943, 319, 1803, 12, 5554, 4126, 13, 288, 4202, 4115, 1803, 279, 273, 394, 4115, 1803, 1435, 288, 1377, 527, 19943, 319, 1803, 273, 394, 4115, 1803, 1435, 288...
setPriority(bugReport.getAttribute("Priority").getValue()); String status = bugReport.getAttribute("Status").getValue(); if (status.equals("RESOLVED")) { setCompleted(true);
try { setPriority(bugReport.getAttribute("Priority").getValue()); String status = bugReport.getAttribute("Status").getValue(); if (status.equals("RESOLVED")) { setCompleted(true); } } catch (NullPointerException npe) {
public void updateTaskDetails() { setPriority(bugReport.getAttribute("Priority").getValue()); String status = bugReport.getAttribute("Status").getValue(); if (status.equals("RESOLVED")) { setCompleted(true); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0953f565e6acc5ac5a39e0655804baa534ce64fe/BugzillaTask.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/BugzillaTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 2174, 3790, 1435, 288, 202, 202, 542, 8183, 12, 925, 4820, 18, 588, 1499, 2932, 8183, 20387, 24805, 10663, 202, 202, 780, 1267, 273, 7934, 4820, 18, 588, 1499, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 2174, 3790, 1435, 288, 202, 202, 542, 8183, 12, 925, 4820, 18, 588, 1499, 2932, 8183, 20387, 24805, 10663, 202, 202, 780, 1267, 273, 7934, 4820, 18, 588, 1499, 2932, ...
for (int i = 0; i < ifs.length; i++) {
for (int i = 0; i < ifs.length; i++) {
public void print(Options iopt, ClassDoc c) { opt = (Options)iopt.clone(); // Process class-local options (through @opt tags) opt.setOptions(c); String cs = name(c); // Print generalization (through the Java superclass) ClassDoc s = c.superclass(); if (s != null && !s.toString().equals("java.lang.Object")) { if (!opt.matchesHideExpression(c.toString()) && !opt.matchesHideExpression(s.toString()) && !hidden(c) && !hidden(s)) { opt.w.println("\t//" + c + " extends " + s); opt.w.println("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];"); } } // Print generalizations (through @extends tags) Tag tags[] = c.tags("extends"); for (int i = 0; i < tags.length; i++) { if (!opt.matchesHideExpression(c.toString()) && !opt.matchesHideExpression(tags[i].text())) { opt.w.println("\t//" + c + " extends " + tags[i].text()); opt.w.println("\t" + name(tags[i].text()) + " -> " + cs + " [dir=back,arrowtail=empty];"); } } // Print realizations (Java interfaces) ClassDoc ifs[] = c.interfaces(); for (int i = 0; i < ifs.length; i++) { if (!opt.matchesHideExpression(c.toString()) && !opt.matchesHideExpression(ifs[i].toString()) && !hidden(c) && !hidden(ifs[i])) { opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];"); opt.w.println("\t//" + c + " implements " + ifs[i]); } } // Print other associations relation("assoc", c, cs, "arrowhead=none"); relation("navassoc", c, cs, "arrowhead=open"); relation("has", c, cs, "arrowhead=none, arrowtail=ediamond"); relation("composed", c, cs, "arrowhead=none, arrowtail=diamond"); relation("depend", c, cs, "arrowhead=open, style=dashed"); }
47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/01b5ee673e70f9ae7ebf822a9eb42a9566990d57/UmlGraph.java/buggy/src/org/umlgraph/doclet/UmlGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1172, 12, 1320, 2527, 337, 16, 27785, 276, 13, 288, 202, 202, 3838, 273, 261, 1320, 13, 1594, 337, 18, 14056, 5621, 202, 202, 759, 4389, 667, 17, 3729, 702, 261, 10064, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 12, 1320, 2527, 337, 16, 27785, 276, 13, 288, 202, 202, 3838, 273, 261, 1320, 13, 1594, 337, 18, 14056, 5621, 202, 202, 759, 4389, 667, 17, 3729, 702, 261, 10064, ...
return httpResponse; }
return httpResponse; }
public final HTTPResponse processResponse(HTTPResponse httpResponse) throws IOException, ModuleException { httpResponse.getData(); httpResponse.getInputStream().close(); final int statusCode = httpResponse.getStatusCode(); final String message = httpResponse.getOriginalURI() + " -> " + statusCode + " " + httpResponse.getReasonLine(); final Logger logger = m_threadState.getThreadContext(); switch (statusCode) { case HttpURLConnection.HTTP_MOVED_PERM: case HttpURLConnection.HTTP_MOVED_TEMP: case 307: // It would be possible to perform the check // automatically, but for now just chuck out some // information. logger.output(message + " [Redirect, ensure the next URL is " + httpResponse.getHeader("Location") + "]"); break; default: logger.output(message); break; } return httpResponse; }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/7e63be890610711e88a8116def09bfea70c32c4e/HTTPRequest.java/buggy/src/net/grinder/plugin/http/HTTPRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 29695, 1207, 1064, 12, 3693, 1064, 15001, 13, 202, 565, 1216, 1860, 16, 5924, 503, 202, 95, 202, 565, 15001, 18, 588, 751, 5621, 202, 565, 15001, 18, 588, 4348, 7675, 441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29695, 1207, 1064, 12, 3693, 1064, 15001, 13, 202, 565, 1216, 1860, 16, 5924, 503, 202, 95, 202, 565, 15001, 18, 588, 751, 5621, 202, 565, 15001, 18, 588, 4348, 7675, 441...
return resample((FlatField) data, res, range);
return resample((FlatField) data, res, range, true);
public Data getData(int[] pos, int dim, DataCache cache) { if (dim != 2) return null; int[] p = new int[pos.length]; for (int i=0; i<p.length; i++) p[i] = min[i] + step[i] * pos[i] - 1; Data data = parent.getData(p, dim, cache); if (data == null || !(data instanceof FlatField)) return null; int[] res = resX > 0 && resY > 0 ? new int[] {resX, resY} : null; return resample((FlatField) data, res, range); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/9959ff208aa86686c706b1d6657d86ad100d12ce/DataSampling.java/clean/loci/visbio/data/DataSampling.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 4303, 12, 474, 8526, 949, 16, 509, 2464, 16, 1910, 1649, 1247, 13, 288, 565, 309, 261, 3509, 480, 576, 13, 327, 446, 31, 565, 509, 8526, 293, 273, 394, 509, 63, 917, 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, 1071, 1910, 4303, 12, 474, 8526, 949, 16, 509, 2464, 16, 1910, 1649, 1247, 13, 288, 565, 309, 261, 3509, 480, 576, 13, 327, 446, 31, 565, 509, 8526, 293, 273, 394, 509, 63, 917, 18, ...
return this; }
return this; }
protected BindingSite getBinderProxy() { return this; }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/58e8bb8b6b85c3ba06f165be059c1b105683d23c/NodeAgent.java/buggy/core/src/org/cougaar/core/node/NodeAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15689, 4956, 2882, 14055, 3886, 1435, 288, 1377, 327, 333, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15689, 4956, 2882, 14055, 3886, 1435, 288, 1377, 327, 333, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public List run(Integer executionPeriodId) throws FenixServiceException {
public List run(Integer executionPeriodId) throws FenixServiceException, ExcepcaoPersistencia {
public List run(Integer executionPeriodId) throws FenixServiceException { List infoExecutionDegreeList = null; try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); IPersistentExecutionDegree executionDegreeDAO = sp.getIPersistentExecutionDegree(); IPersistentExecutionPeriod persistentExecutionPeriod = sp.getIPersistentExecutionPeriod(); if (executionPeriodId == null) { throw new FenixServiceException("nullId"); } IExecutionPeriod executionPeriod = (IExecutionPeriod) persistentExecutionPeriod.readByOID( ExecutionPeriod.class, executionPeriodId); List executionDegrees = executionDegreeDAO.readByExecutionYear(executionPeriod .getExecutionYear().getYear()); Iterator iterator = executionDegrees.iterator(); infoExecutionDegreeList = new ArrayList(); while (iterator.hasNext()) { IExecutionDegree executionDegree = (IExecutionDegree) iterator.next(); infoExecutionDegreeList.add(InfoExecutionDegree.newInfoFromDomain(executionDegree)); } } catch (ExcepcaoPersistencia ex) { throw new FenixServiceException(ex); } return infoExecutionDegreeList; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/9a9d542b80c90f557c72ca15d71ef11d9be498a8/ReadExecutionDegreesByExecutionPeriodId.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/manager/executionCourseManagement/ReadExecutionDegreesByExecutionPeriodId.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 1086, 12, 4522, 4588, 5027, 548, 13, 1216, 478, 275, 697, 15133, 16, 1312, 311, 2436, 6033, 12771, 28115, 288, 3639, 987, 1123, 3210, 22885, 682, 273, 446, 31, 3639, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 1086, 12, 4522, 4588, 5027, 548, 13, 1216, 478, 275, 697, 15133, 16, 1312, 311, 2436, 6033, 12771, 28115, 288, 3639, 987, 1123, 3210, 22885, 682, 273, 446, 31, 3639, 775, 288, ...
if(expectedSize != -1 && archiveSize != expectedSize) {
if((expectedSize != -1) && (archiveSize != expectedSize)) {
public void extractToCache(FreenetURI key, short archiveType, Bucket data, ArchiveContext archiveContext, ArchiveStoreContext ctx) throws ArchiveFailureException, ArchiveRestartException { Logger.minor(this, "Extracting "+key); ctx.removeAllCachedItems(); // flush cache anyway long expectedSize = ctx.getLastSize(); long archiveSize = data.size(); /** Set if we need to throw a RestartedException rather than returning success, * after we have unpacked everything. */ boolean throwAtExit = false; if(expectedSize != -1 && archiveSize != expectedSize) { throwAtExit = true; ctx.setLastSize(archiveSize); } byte[] expectedHash = ctx.getLastHash(); if(expectedHash != null) { byte[] realHash; try { realHash = BucketTools.hash(data); } catch (IOException e) { throw new ArchiveFailureException("Error reading archive data: "+e, e); } if(!Arrays.equals(realHash, expectedHash)) throwAtExit = true; ctx.setLastHash(realHash); } if(data.size() > maxArchiveSize) throw new ArchiveFailureException("Archive too big"); if(archiveType != Metadata.ARCHIVE_ZIP) throw new ArchiveFailureException("Unknown or unsupported archive algorithm "+archiveType); ZipInputStream zis = null; try { zis = new ZipInputStream(data.getInputStream()); // MINOR: Assumes the first entry in the zip is a directory. ZipEntry entry; byte[] buf = new byte[4096]; HashSet names = new HashSet(); boolean gotMetadata = false; outer: while(true) { entry = zis.getNextEntry(); if(entry == null) break; if(entry.isDirectory()) continue; String name = entry.getName(); if(names.contains(name)) { Logger.error(this, "Duplicate key "+name+" in archive "+key); continue; } long size = entry.getSize(); if(size > maxArchivedFileSize) { addErrorElement(ctx, key, name, "File too big: "+maxArchivedFileSize+" greater than current archived file size limit "+maxArchivedFileSize); } else { // Read the element long realLen = 0; TempStoreElement temp = makeTempStoreBucket(size); Bucket output = temp.bucket; OutputStream out = output.getOutputStream(); int readBytes; while((readBytes = zis.read(buf)) > 0) { out.write(buf, 0, readBytes); readBytes += realLen; if(readBytes > maxArchivedFileSize) { addErrorElement(ctx, key, name, "File too big: "+maxArchivedFileSize+" greater than current archived file size limit "+maxArchivedFileSize); out.close(); temp.finalize(); continue outer; } } out.close(); if(name.equals(".metadata")) gotMetadata = true; addStoreElement(ctx, key, name, temp); names.add(name); } } // If no metadata, generate some if(!gotMetadata) { generateMetadata(ctx, key, names); } if(throwAtExit) throw new ArchiveRestartException("Archive changed on re-fetch"); } catch (IOException e) { throw new ArchiveFailureException("Error reading archive: "+e.getMessage(), e); } finally { if(zis != null) { try { zis.close(); } catch (IOException e) { Logger.error(this, "Failed to close stream: "+e, e); } } } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/ArchiveManager.java/buggy/src/freenet/client/ArchiveManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2608, 774, 1649, 12, 42, 2842, 278, 3098, 498, 16, 3025, 5052, 559, 16, 7408, 501, 16, 13124, 1042, 5052, 1042, 16, 13124, 2257, 1042, 1103, 13, 1216, 13124, 14389, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2608, 774, 1649, 12, 42, 2842, 278, 3098, 498, 16, 3025, 5052, 559, 16, 7408, 501, 16, 13124, 1042, 5052, 1042, 16, 13124, 2257, 1042, 1103, 13, 1216, 13124, 14389, 16, 1...
TdsStatement stmt = null; if (String.valueOf(TdsDefinitions.SYBASE).equals(
if (String.valueOf(TdsDefinitions.SQLSERVER).equals(
public TdsConnection(Properties props) throws SQLException, TdsException { host = props.getProperty(Tds.PROP_HOST); serverType = Integer.parseInt(props.getProperty(Tds.PROP_SERVERTYPE)); port = Integer.parseInt(props.getProperty(Tds.PROP_PORT)); database = props.getProperty(Tds.PROP_DBNAME); String user = props.getProperty(Tds.PROP_USER); String password = props.getProperty(Tds.PROP_PASSWORD); initialProps = props; warningChain = new SQLWarningChain(); if (user == null) { user = props.getProperty(Tds.PROP_USER.toLowerCase()); if (user == null) { throw new SQLException("Need a username."); } props.put(Tds.PROP_USER, user); } if (password == null) { password = props.getProperty(Tds.PROP_PASSWORD.toLowerCase()); if (password == null) { throw new SQLException("Need a password."); } props.put(Tds.PROP_PASSWORD, password); } Tds tmpTds = this.allocateTds(false); tdsVer = tmpTds.getTdsVer(); serverVer = tmpTds.getDatabaseMajorVersion(); database = tmpTds.getDatabase(); lastUpdateCount = tmpTds.lastUpdateCount(); freeTds(tmpTds); TdsStatement stmt = null; if (String.valueOf(TdsDefinitions.SYBASE).equals( props.getProperty(Tds.PROP_SERVERTYPE))) { maxPrecision = 38; // Sybase default } else { try { stmt = new TdsStatement(this); ResultSet rs = stmt.executeQuery("SELECT @@MAX_PRECISION"); rs.next(); maxPrecision = rs.getByte(1); } finally { if (stmt != null) { stmt.close(); } } } }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/035709deec1c9214eeb0bf57507c4371d3d0784e/TdsConnection.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 2377, 1952, 12, 2297, 3458, 13, 5411, 1216, 6483, 16, 399, 2377, 503, 288, 3639, 1479, 273, 3458, 18, 588, 1396, 12, 56, 2377, 18, 15811, 67, 8908, 1769, 3639, 1438, 559, 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, 399, 2377, 1952, 12, 2297, 3458, 13, 5411, 1216, 6483, 16, 399, 2377, 503, 288, 3639, 1479, 273, 3458, 18, 588, 1396, 12, 56, 2377, 18, 15811, 67, 8908, 1769, 3639, 1438, 559, 273...
public void resume(Object fDest) {
public void resume(Object fDest) {
public void resume(Object fDest) { startCommand(mCommandResume, fDest); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/4f81787a2d23f94f26be1df973be28848897fde6/PerlDB.java/clean/org.epic.debug/src/org/epic/debug/PerlDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10774, 12, 921, 284, 9378, 13, 202, 95, 202, 202, 1937, 2189, 12, 81, 2189, 20911, 16, 284, 9378, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10774, 12, 921, 284, 9378, 13, 202, 95, 202, 202, 1937, 2189, 12, 81, 2189, 20911, 16, 284, 9378, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
} else { contentProvider.setFiltering(false); }
}
protected void expandPreviouslyExpandedCategories() { boolean showAll = settings.getBoolean(SHOW_ALL_ENABLED); if (showAllCheck != null) { showAllCheck.setSelection(showAll); contentProvider.setFiltering(!showAll); } else { contentProvider.setFiltering(false); } String[] expandedCategoryPaths = settings.getArray(STORE_EXPANDED_CATEGORIES_ID); if (expandedCategoryPaths == null || expandedCategoryPaths.length == 0) return; List categoriesToExpand = new ArrayList(expandedCategoryPaths.length); for (int i = 0; i < expandedCategoryPaths.length; i++) { WizardCollectionElement category = wizardCategories.findChildCollection( new Path(expandedCategoryPaths[i])); if (category != null) // ie.- it still exists categoriesToExpand.add(category); } if (!categoriesToExpand.isEmpty()) viewer.setExpandedElements(categoriesToExpand.toArray()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/649cc7025075bd62f19564473e20fb17ee70ffae/NewWizardNewPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4542, 8351, 715, 17957, 10487, 1435, 288, 202, 202, 6494, 2405, 1595, 273, 1082, 202, 4272, 18, 588, 5507, 12, 16677, 67, 4685, 67, 13560, 1769, 202, 565, 309, 261, 4500, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4542, 8351, 715, 17957, 10487, 1435, 288, 202, 202, 6494, 2405, 1595, 273, 1082, 202, 4272, 18, 588, 5507, 12, 16677, 67, 4685, 67, 13560, 1769, 202, 565, 309, 261, 4500, ...
settings.setBannedIps(new String[] {"*.*.*.*"}); settings.setAllowedIps(new String[] {"127.*.*.*", "18.239.0.*"}); settings.setPort(PORT); settings.setDirectories(new File[0]);
FilterSettings.BLACK_LISTED_IP_ADDRESSES.setValue( new String[] {"*.*.*.*"}); FilterSettings.WHITE_LISTED_IP_ADDRESSES.setValue( new String[] {"127.*.*.*", "18.239.0.*"}); ConnectionSettings.PORT.setValue(PORT); SharingSettings.setDirectories(new File[0]);
public static void setSettings() { //Setup LimeWire backend. For testing other vendors, you can skip all //this and manually configure a client to listen on port 6667, with //incoming slots and no connections. SettingsManager settings=SettingsManager.instance(); //To keep LimeWire from connecting to the outside network, we filter out //all addresses but localhost and 18.239.0.*. The latter is used in //pongs for testing. TODO: it would be nice to have a way to prevent //BootstrapServerManager from adding defaults and connecting. settings.setBannedIps(new String[] {"*.*.*.*"}); settings.setAllowedIps(new String[] {"127.*.*.*", "18.239.0.*"}); settings.setPort(PORT); settings.setDirectories(new File[0]); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(true); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(false); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(true); UltrapeerSettings.MAX_LEAVES.setValue(1); ConnectionSettings.NUM_CONNECTIONS.setValue(3); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); ConnectionSettings.USE_GWEBCACHE.setValue(false); ConnectionSettings.WATCHDOG_ACTIVE.setValue(false); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/af6552190dbe08263169d8bbcf277965b115c243/ServerSideDynamicQueryTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/ServerSideDynamicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 2628, 1435, 288, 3639, 368, 7365, 511, 494, 15249, 4221, 18, 225, 2457, 7769, 1308, 331, 409, 1383, 16, 1846, 848, 2488, 777, 3639, 368, 2211, 471, 10036, 5068, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 2628, 1435, 288, 3639, 368, 7365, 511, 494, 15249, 4221, 18, 225, 2457, 7769, 1308, 331, 409, 1383, 16, 1846, 848, 2488, 777, 3639, 368, 2211, 471, 10036, 5068, 279, ...
inlinedSomething = true;
inlinedSomething = true;
private boolean maybeInlineMethod(OPT_InlineDecision inlDec, OPT_Instruction callSite) { if (inlDec.isNO()) { return false; } //-#if RVM_WITH_OSR // Insert OsrBarrier point before the callsite which is going to be // inlined, attach the OsrBarrier instruction to callsite's scratch // object, then the callee can find this barrier // verify it if (this.osrGuardedInline) { if (VM.VerifyAssertions) VM._assert(lastOsrBarrier != null); callSite.scratchObject = lastOsrBarrier; } //-#endif // Execute the inline decision. // NOTE: It is tempting to wrap the call to OPT_Inliner.execute in // a try/catch block that suppresses MagicNotImplemented failures // by "backing out" the attempted inlining of a method that contained // an unimplemented magic. Unfortunately, this is somewhat hard to do // cleanly, since exceptional control flow can inject control flow graph // edges from inlinedContext to blocks in the enclosing caller CFG. // These are not easy to find and remove because inlinedContext is not // well-formed (the exception was thrown while generating the IR, in // particular before calling finalPass, therefore the inlined CFG // is not formed and finding all of its member blocks is somewhat awkward). // We could write code to deal with this, but since in practice the // opt compiler implements all but a few fringe magics, it is just fine // to completely give up rather than take heroic measures here. // In a few cases we do care about, we use NoInlinePragma to // prevent the opt compiler from inlining a method that contains an // unimplemented magic. OPT_GenerationContext inlinedContext = OPT_Inliner.execute(inlDec, gc, currentBBLE.block.exceptionHandlers, callSite); inlinedSomething = true; // TODO: We're currently not keeping track if any of the // enclosing exception handlers are actually reachable from // this inlined callee. // Therefore we simply force all of them to be generated wrt // the state of the local variables in currentBBLE. // This can result in generating unreachable handlers // (if no PEI can reach them) and in generating suboptimal // catch blocks (by merging in currentBBLE's local state // into catch blocks that can't actually be reached from the inlined CFG). // I strongly suspect it's not worth worrying about this..... // dead code elimination should zap the unreachable handlers, // and we shouldn't care too much about the // optimization possibilities lost by the extra local rectification. // Especially since the odds of currentBBLE actually having // unreachable handler blocks is darn close to zero. --dave 9/21/99. // NOTE: No need to add CFG edges (they were added as needed // during generation of the callee) if (currentBBLE.handlers != null) { for (int i = 0; i < currentBBLE.handlers.length; i++) { blocks.rectifyLocals(_localState, currentBBLE.handlers[i]); } } if (inlinedContext.epilogue != null) { // Wrap a synthetic BBLE around OPT_GenerationContext.epilogue and // pass it as from to getOrCreateBlock. // This causes any compensation code inserted by getOrCreateBlock // into the epilogue of the inlined method (see inlineTest7) BasicBlockLE epilogueBBLE = new BasicBlockLE(); epilogueBBLE.block = inlinedContext.epilogue; if (inlinedContext.result != null) { // If the call has a result, _callHelper allocated a new // temp for it and pushed it onto the expression stack. // But, since we successfully inlined the call and // inlinedContext.epilogue != null, // we can use inlinedContext.result to obtain better // downstream information about the inlined callee's return value. // Therefore we'll pop the old callSite.result off the stack // and push result instead. // NOTE: It's critical that we pop callSite.result // _before_ we copy the stack state into epilogueBBLE! // Otherwise we'll end up with bogus code in the inlined // method's prologue due to stack saving!!!! VM_TypeReference resultType = Call.getResult(callSite).type; pop(resultType); // throw away callSite.result } blocks.rectifyStacks(currentBBLE.block, stack, epilogueBBLE); if (inlinedContext.result != null) { VM_TypeReference resultType = Call.getResult(callSite).type; push(inlinedContext.result, resultType); } epilogueBBLE.copyIntoLocalState(_localState); BasicBlockLE afterBBLE = blocks.getOrCreateBlock(bcodes.index(), epilogueBBLE, stack, _localState); // Create the InliningBlockLE and initialize fallThrough links. InliningBlockLE inlinedCallee = new InliningBlockLE(inlinedContext); currentBBLE.fallThrough = inlinedCallee; currentBBLE.block.insertOut(inlinedCallee.gc.cfg.firstInCodeOrder()); inlinedCallee.epilogueBBLE = epilogueBBLE; epilogueBBLE.fallThrough = afterBBLE; epilogueBBLE.block.insertOut(epilogueBBLE.fallThrough.block); } else { // All exits from the callee were via throws. // Therefore the next basic block is unreachable (unless // there is a branch to it from somewhere else in the current method, // which will naturally be handled when we generate the branch). InliningBlockLE inlinedCallee = new InliningBlockLE(inlinedContext); currentBBLE.fallThrough = inlinedCallee; currentBBLE.block.insertOut(inlinedCallee.gc.cfg.firstInCodeOrder()); } endOfBasicBlock = true; return true; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/9f7e15228c35a04a33dad4f1d51fe26cef5732fc/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 6944, 10870, 1305, 12, 15620, 67, 10870, 15861, 316, 80, 1799, 16, 19694, 16456, 67, 11983, 745, 4956, 13, 288, 565, 309, 261, 267, 80, 1799, 18, 291, 3417, 10756, 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, 3238, 1250, 6944, 10870, 1305, 12, 15620, 67, 10870, 15861, 316, 80, 1799, 16, 19694, 16456, 67, 11983, 745, 4956, 13, 288, 565, 309, 261, 267, 80, 1799, 18, 291, 3417, 10756, 288, 1377, ...
public OpOr() { super();
public OpOr(StaticContext context) { super(context);
public OpOr() { super(); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/OpOr.java/buggy/src/org/exist/xpath/OpOr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6066, 1162, 1435, 288, 202, 202, 9565, 5621, 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, 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, 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, 225, 202, 482, 6066, 1162, 1435, 288, 202, 202, 9565, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ( shouldUpdate ) { getRepositoryMetadataManager().deploy( metadata, distributionRepository ); }
getRepositoryMetadataManager().deploy( metadata, distributionRepository );
public void execute() throws MojoExecutionException { RepositoryMetadata metadata = new PluginMappingMetadata( getProject().getGroupId() ); ArtifactRepository distributionRepository = getProject().getDistributionManagementArtifactRepository(); if ( distributionRepository == null ) { throw new MojoExecutionException( "No distribution repository specified. You must specify a <distributionManagement/> section with a valid <repository/> specified within." ); } try { getRepositoryMetadataManager().resolve( metadata, distributionRepository, getLocalRepository() ); boolean shouldUpdate = updatePluginMap( metadata ); if ( shouldUpdate ) { getRepositoryMetadataManager().deploy( metadata, distributionRepository ); } } catch ( RepositoryMetadataManagementException e ) { throw new MojoExecutionException( "Failed to install " + metadata, e ); } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/1e1efffcbab9eccc76a991a4f6c06838014b27b8/PluginMappingDeployMojo.java/clean/maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/metadata/PluginMappingDeployMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 6281, 2277, 1982, 273, 394, 6258, 3233, 2277, 12, 11080, 7675, 588, 8722, 1435, 11272, 3639, 14022, 3305, 7006, 3305, 273, 11080, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 6281, 2277, 1982, 273, 394, 6258, 3233, 2277, 12, 11080, 7675, 588, 8722, 1435, 11272, 3639, 14022, 3305, 7006, 3305, 273, 11080, 7...
public HTTPResponse Post(String file, NVPair form_data[], NVPair headers[]) throws IOException, ModuleException
public HTTPResponse Post(String file) throws IOException, ModuleException
public HTTPResponse Post(String file, NVPair form_data[], NVPair headers[]) throws IOException, ModuleException { int idx; for (idx=0; idx<headers.length; idx++) if (headers[idx] != null && headers[idx].getName().equalsIgnoreCase("Content-type")) break; if (idx == headers.length) { headers = Util.resizeArray(headers, idx+1); headers[idx] = new NVPair("Content-type", "application/x-www-form-urlencoded"); } return Post(file, Codecs.nv2query(form_data), headers); }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/2e8e36b63411970834aecf05409423b070256a69/HTTPConnection.java/buggy/src/HTTPClient/HTTPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29695, 5616, 12, 780, 585, 16, 423, 58, 4154, 646, 67, 892, 63, 6487, 423, 58, 4154, 1607, 63, 5717, 7734, 1216, 1860, 16, 5924, 503, 565, 288, 202, 474, 2067, 31, 202, 1884, 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, 29695, 5616, 12, 780, 585, 16, 423, 58, 4154, 646, 67, 892, 63, 6487, 423, 58, 4154, 1607, 63, 5717, 7734, 1216, 1860, 16, 5924, 503, 565, 288, 202, 474, 2067, 31, 202, 1884, 26...
if (converter != null) { return converter.getAsObject(context, component, (String) value); } return value;
return convertStringToValue(context, component, converter, submittedValue, "value");
public static Object convertStringToValue(FacesContext context, UIComponent component, Converter converter, Object value, String attributeName) { if ((value instanceof String) == false || value == null) { return value; } if (converter == null) { ValueBinding valueBinding = component .getValueBinding(attributeName); if (valueBinding == null) { return value; } if (valueBinding.getValue(context) != null) { Class converterType = valueBinding.getType(context); if (converterType == null || converterType == String.class || converterType == Object.class) { return value; } try { Application application = context.getApplication(); converter = application.createConverter(converterType); } catch (Exception e) { throw new FacesException( "Can not create converter for type '" + converterType + "'.", e); } } } if (converter != null) { return converter.getAsObject(context, component, (String) value); } return value; // throw new ConverterException("No converter !"); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ValuesTools.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/tools/ValuesTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1765, 23282, 620, 12, 17268, 1042, 819, 16, 5411, 18907, 1794, 16, 14768, 6027, 16, 1033, 460, 16, 5411, 514, 9734, 13, 288, 3639, 309, 14015, 1132, 1276, 514, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1765, 23282, 620, 12, 17268, 1042, 819, 16, 5411, 18907, 1794, 16, 14768, 6027, 16, 1033, 460, 16, 5411, 514, 9734, 13, 288, 3639, 309, 14015, 1132, 1276, 514, 13, 422, ...
if (getTable() != null) {
if (getTable() != null) {
public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCref = ruby.getCRef(); // s.a. ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { valueList = new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil())); ruby.getScope().setLocalValues(valueList); ruby.getScope().setLocalNames(getTable()); } else { valueList = null; //ruby.getScope().getLocalValues(); ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); } RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); try { if (callNode != null) { //if (call_node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); //} int i = callNode.getCount(); if (i > (args != null ? args.size() : 0)) { int size = 0; if (args != null) size = args.size(); throw new RubyArgumentException(ruby, getFile() + ":" + getLine() +"wrong # of arguments(" + size + " for " + i + ")"); } if (callNode.getRest() == -1) { int opt = i; Node optNode = callNode.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } // +++ ruby.getRubyFrame().setArgs(valueList != null ? new DelegateList(valueList, 2, valueList.size()) : null); // --- } if (valueList != null) { if (i > 0) { for (int j = 0; j < i; j++) { valueList.set(j + 2, args.get(j)); } } args.inc(i); if (callNode.getOptNode() != null) { Node optNode = callNode.getOptNode(); while (optNode != null && args.size() != 0) { ((AssignableNode) optNode.getHeadNode()).assign(ruby, recv, args.getRuby(0), true); args.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (callNode.getRest() >= 0) { RubyArray array = null; if (args.size() > 0) { array = RubyArray.newArray(ruby, args); } else { array = RubyArray.newArray(ruby, 0); } valueList.set(callNode.getRest(), array); } } } return recv.eval(callBody); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } finally { RubyVarmap.pop(ruby); ruby.getScope().pop(); if (savedCref != null) { ruby.setCRef(savedCref); } } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 514, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 202, 202, 430, 261, 1968, 422, 446, 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, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 514, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 202, 202, 430, 261, 1968, 422, 446, 13, 288, ...
return jjStopAtPos(0, 47);
return jjStopAtPos(0, 50);
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 10: return jjStopAtPos(0, 7); case 12: return jjStopAtPos(0, 8); case 13: return jjStopAtPos(0, 6); case 35: return jjStopAtPos(0, 54); case 36: return jjStopAtPos(0, 57); case 40: return jjStopAtPos(0, 47); case 41: return jjStopAtPos(0, 48); case 44: return jjStopAtPos(0, 58); case 47: return jjMoveStringLiteralDfa1_0(0x2L, 0x0L); case 58: return jjStopAtPos(0, 59); case 59: return jjStopAtPos(0, 53); case 60: return jjMoveStringLiteralDfa1_0(0x1000000000000000L, 0x0L); case 61: return jjStopAtPos(0, 61); case 64: return jjStopAtPos(0, 55); case 91: jjmatchedKind = 51; return jjMoveStringLiteralDfa1_0(0x0L, 0x1L); case 93: return jjStopAtPos(0, 52); case 96: return jjStopAtPos(0, 56); case 65: case 97: return jjMoveStringLiteralDfa1_0(0x20300004000L, 0x0L); case 66: case 98: return jjMoveStringLiteralDfa1_0(0x10000200000L, 0x0L); case 67: case 99: return jjMoveStringLiteralDfa1_0(0x2400800000L, 0x0L); case 68: case 100: return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L); case 69: case 101: return jjMoveStringLiteralDfa1_0(0x402000L, 0x0L); case 70: case 102: return jjMoveStringLiteralDfa1_0(0x882000000L, 0x0L); case 71: case 103: return jjMoveStringLiteralDfa1_0(0x48000040000L, 0x0L); case 73: case 105: return jjMoveStringLiteralDfa1_0(0x1000008000L, 0x0L); case 76: case 108: return jjMoveStringLiteralDfa1_0(0x400L, 0x0L); case 79: case 111: return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L); case 80: case 112: return jjMoveStringLiteralDfa1_0(0x1180800L, 0x0L); case 82: case 114: return jjMoveStringLiteralDfa1_0(0x100000020000L, 0x0L); case 83: case 115: return jjMoveStringLiteralDfa1_0(0x4c000000L, 0x0L); case 84: case 116: return jjMoveStringLiteralDfa1_0(0x80020000000L, 0x0L); case 85: case 117: return jjMoveStringLiteralDfa1_0(0x1000L, 0x0L); case 86: case 118: return jjMoveStringLiteralDfa1_0(0x10000000L, 0x0L); case 87: case 119: return jjMoveStringLiteralDfa1_0(0x200000000000L, 0x0L); case 123: return jjStopAtPos(0, 49); case 125: return jjStopAtPos(0, 50); default : return jjMoveNfa_0(3, 0); }}
4167 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4167/c836f8ba4db292fc47b3c10e890ac860f91b3e6b/VhdlParserCoreTokenManager.java/buggy/src/_generated/net/sourceforge/veditor/parser/VhdlParserCoreTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 1728, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 2371, 1769, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 1728, 30, 540, 327, 10684, 4947, 861, 1616, 12, 20, 16, 2371, 1769, 1...
final ConnectionInterceptor next, final SecurityDomain securityDomain) { this.next = next; this.securityDomain = securityDomain; }
final ConnectionInterceptor next, final SecurityDomain securityDomain) { this.next = next; this.securityDomain = securityDomain; }
public SubjectInterceptor( final ConnectionInterceptor next, final SecurityDomain securityDomain) { this.next = next; this.securityDomain = securityDomain; } // SubjectInterceptor constructor
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/aee780fd2f220ae6864db486839f571cb0932649/SubjectInterceptor.java/buggy/modules/core/src/java/org/apache/geronimo/connector/outbound/SubjectInterceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9912, 10281, 12, 202, 202, 6385, 4050, 10281, 1024, 16, 202, 202, 6385, 6036, 3748, 4373, 3748, 13, 288, 202, 202, 2211, 18, 4285, 273, 1024, 31, 202, 202, 2211, 18, 7462, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9912, 10281, 12, 202, 202, 6385, 4050, 10281, 1024, 16, 202, 202, 6385, 6036, 3748, 4373, 3748, 13, 288, 202, 202, 2211, 18, 4285, 273, 1024, 31, 202, 202, 2211, 18, 7462, 374...
log.error(ex);
System.err.println(ex);
public void mouseDragged(MouseEvent e) { ObjectOutputStream os; int x=e.getX(), y=e.getY(); DrawCommand comm=new DrawCommand(DrawCommand.DRAW, x, y, draw_color.getRed(), draw_color.getGreen(), draw_color.getBlue()); if(no_channel) { drawPoint(comm); return; } try { out.reset(); os=new ObjectOutputStream(out); os.writeObject(comm); os.flush(); channel.send(new Message(null, null, out.toByteArray())); Thread.yield(); // gives the repainter some breath } catch(Exception ex) { log.error(ex); } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/5ad015d9a78e1da3350d9b398b46b2f5d4508564/Draw.java/clean/src/org/jgroups/demos/Draw.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 7644, 11728, 2423, 12, 9186, 1133, 425, 13, 288, 5411, 23438, 225, 1140, 31, 5411, 509, 1171, 619, 33, 73, 18, 588, 60, 9334, 677, 33, 73, 18, 588, 61, 5621, 5411, 10184, 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, 540, 1071, 918, 7644, 11728, 2423, 12, 9186, 1133, 425, 13, 288, 5411, 23438, 225, 1140, 31, 5411, 509, 1171, 619, 33, 73, 18, 588, 60, 9334, 677, 33, 73, 18, 588, 61, 5621, 5411, 10184, 2...
throw new Exception("ERROR: Sun and Mozilla give different "+ alg );
throw new Exception("ERROR: " + javaVendorName.substring(0,3) + " and Mozilla give different "+ alg );
public static void doHMAC(SecretKeyFacade sk, String alg) throws Exception { String clearText = new String("Hi There"); //Get the Mozilla-JSS HMAC Mac macJSS = Mac.getInstance(alg, "Mozilla-JSS"); macJSS.init(sk); macJSS.update(clearText.getBytes()); byte[] resultJSS = macJSS.doFinal(clearText.getBytes()); //Get the SunJCE HMAC Mac macSunJCE = Mac.getInstance(alg, "SunJCE"); macSunJCE.init(sk); macSunJCE.update(clearText.getBytes()); byte[] resultSunJCE = macSunJCE.doFinal(clearText.getBytes()); //Check to see if HMACs are equal if ( java.util.Arrays.equals(resultJSS, resultSunJCE) ) { System.out.println("Sun and Mozilla give same " + alg); } else { throw new Exception("ERROR: Sun and Mozilla give different "+ alg ); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/2c88207a24bea2d0af88356473969a2e94d3f349/HMACTest.java/clean/security/jss/org/mozilla/jss/tests/HMACTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 741, 25624, 12, 24526, 12467, 4343, 16, 514, 11989, 13, 377, 1216, 1185, 288, 7734, 514, 2424, 1528, 273, 394, 514, 2932, 25009, 6149, 8863, 3639, 368, 967, 326, 19058, 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, 1071, 760, 918, 741, 25624, 12, 24526, 12467, 4343, 16, 514, 11989, 13, 377, 1216, 1185, 288, 7734, 514, 2424, 1528, 273, 394, 514, 2932, 25009, 6149, 8863, 3639, 368, 967, 326, 19058, 10...
DefaultGraphCell source = (DefaultGraphCell)getParent(sourcePort); DefaultGraphCell target = (DefaultGraphCell)getParent(targetPort);
protected Object[] handleInsert(Object[] cells) { if(cells==null) return super.handleInsert(cells); for(int i=0; i<cells.length; i++) { if((cells[i] instanceof Edge)) { Edge edge = (Edge)cells[i]; Port sourcePort = (Port) edge.getSource(); Port targetPort = (Port) edge.getTarget(); DefaultGraphCell source = (DefaultGraphCell)getParent(sourcePort); DefaultGraphCell target = (DefaultGraphCell)getParent(targetPort); sourcePort.addEdge(edge); targetPort.addEdge(edge); } } return super.handleInsert(cells); }
9100 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9100/52304c032e58a6f9c1e6959fd799e29e9b27b4f0/SpemGraphAdapter.java/buggy/apes2/src/java/org/ipsquad/apes/adapters/SpemGraphAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 8526, 1640, 4600, 12, 921, 8526, 5983, 13, 202, 95, 202, 202, 430, 12, 14741, 631, 2011, 13, 327, 2240, 18, 4110, 4600, 12, 14741, 1769, 202, 202, 1884, 12, 474, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8526, 1640, 4600, 12, 921, 8526, 5983, 13, 202, 95, 202, 202, 430, 12, 14741, 631, 2011, 13, 327, 2240, 18, 4110, 4600, 12, 14741, 1769, 202, 202, 1884, 12, 474, 277, ...
private synchronized void addFeaturesFromDasResponse(DasResponse d) { String coordSys = d.getCoordinateSystem(); //logger.finest(d); List features = d.getFeatures() ; if ( coordSys.equals("PDBresnum")) { // convert PDB resnum coordinates to UniProt coordinates for (int j=0; j<features.size();j++){ HashMap feat = (HashMap)features.get(j); String startOrig = (String)feat.get("START"); String endOrig = (String)feat.get("END"); //logger.finest("pdbresnum feature: "+feat); String startNew = getUniProtCoord(startOrig,chain); String endNew = getUniProtCoord(endOrig,chain); feat.put("START",startNew); feat.put("END",endNew); //logger.finest("uniprot feature: "+feat); allFeatures.add(feat) ; } } else if ( coordSys.equals("UniProt")) { // UniProt features can stay in their coordinate system for (int j=0; j<features.size();j++){ HashMap feat = (HashMap)features.get(j); //Feature feat = (Feature)features.get(j); //logger.finest("got feature: "+feat); allFeatures.add(feat) ; } } notifyAll(); }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/68009b217b215d4594c6a36de50424b5225e9cde/FeatureFetcher.java/buggy/src/org/biojava/spice/Feature/FeatureFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 527, 8696, 1265, 40, 345, 1064, 12, 40, 345, 1064, 302, 13, 288, 202, 780, 2745, 12712, 273, 302, 18, 588, 13503, 3163, 5621, 202, 759, 4901, 18, 926, 395, 12, 72, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 527, 8696, 1265, 40, 345, 1064, 12, 40, 345, 1064, 302, 13, 288, 202, 780, 2745, 12712, 273, 302, 18, 588, 13503, 3163, 5621, 202, 759, 4901, 18, 926, 395, 12, 72, 17...
if (projects == null || projects.isEmpty())
if (projects == null || projects.isEmpty()) {
boolean saveDirtyEditors() { // Get the items to close. List projects = getSelectedResources(); if (projects == null || projects.isEmpty()) // no action needs to be taken since no projects are selected return false; // Collect all the dirty editors that are associated to the projects that are // to be closed. final List dirtyEditors = getDirtyEditors(projects); // See which editors should be saved. final List saveEditors = getEditorsToSave(dirtyEditors); if (saveEditors == null) // the operation was cancelled return false; // Save and close the dirty editors. BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { Iterator iter = dirtyEditors.iterator(); while (iter.hasNext()) { IEditorPart editor = (IEditorPart) iter.next(); IWorkbenchPage page = editor.getEditorSite().getPage(); if (saveEditors.contains(editor)) { // do a direct save vs. using page.saveEditor, so that // progress dialogs do not flash up on the screen multiple // times editor.doSave(new NullProgressMonitor()); } page.closeEditor(editor, false); } } }); return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CloseResourceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 1923, 10785, 4666, 1383, 1435, 288, 3639, 368, 968, 326, 1516, 358, 1746, 18, 3639, 987, 10137, 273, 16625, 3805, 5621, 3639, 309, 261, 13582, 422, 446, 747, 10137, 18, 291, 1921, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1923, 10785, 4666, 1383, 1435, 288, 3639, 368, 968, 326, 1516, 358, 1746, 18, 3639, 987, 10137, 273, 16625, 3805, 5621, 3639, 309, 261, 13582, 422, 446, 747, 10137, 18, 291, 1921, 1...
public void testCaseFunctions() {
public void testCaseFunctions() {
public void testCaseFunctions() { assertEquals("capitalise(String) failed", CAP_FOO, StringUtils.capitalise(FOO) ); assertEquals("capitalise(empty-string) failed", "", StringUtils.capitalise("") ); assertEquals("capitaliseAllWords(String) failed", "Foo Bar Baz", StringUtils.capitaliseAllWords(SENTENCE) ); assertEquals("capitaliseAllWords(empty-string) failed", "", StringUtils.capitaliseAllWords("") ); assertEquals("uncapitalise(String) failed", FOO, StringUtils.uncapitalise(CAP_FOO) ); assertEquals("uncapitalise(empty-string) failed", "", StringUtils.uncapitalise("") ); assertEquals("uncapitaliseAllWords(String) failed", SENTENCE, StringUtils.uncapitaliseAllWords("Foo Bar Baz") ); assertEquals("uncapitaliseAllWords(empty-string) failed", "", StringUtils.uncapitaliseAllWords("") ); assertEquals("upperCase(String) failed", "FOO TEST THING", StringUtils.upperCase("fOo test THING") ); assertEquals("upperCase(empty-string) failed", "", StringUtils.upperCase("") ); assertEquals("lowerCase(String) failed", "foo test thing", StringUtils.lowerCase("fOo test THING") ); assertEquals("lowerCase(empty-string) failed", "", StringUtils.lowerCase("") ); assertEquals("swapCase(empty-string) failed", "", StringUtils.swapCase("") ); assertEquals("swapCase(String-with-numbers) failed", "a123RgYu", StringUtils.swapCase("A123rGyU") ); assertEquals("swapCase(String) failed", "Hello aPACHE", StringUtils.swapCase("hELLO Apache") ); }
7060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7060/c2d07cc3f0eb7db5e45c21b1c698715e27fcb64e/StringUtilsTest.java/buggy/src/test/org/apache/commons/lang/StringUtilsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 7503, 1435, 565, 288, 3639, 1815, 8867, 2932, 5909, 7053, 784, 12, 780, 13, 2535, 3113, 5397, 29720, 67, 3313, 51, 16, 5778, 18, 5909, 7053, 784, 12, 3313, 51, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 7503, 1435, 565, 288, 3639, 1815, 8867, 2932, 5909, 7053, 784, 12, 780, 13, 2535, 3113, 5397, 29720, 67, 3313, 51, 16, 5778, 18, 5909, 7053, 784, 12, 3313, 51, 13...
public void setOptions(Options options);
public void setOptions(Options options) { this.options = options; }
public void setOptions(Options options);
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/10b9dbd251116313987e7e320c6f776243e7a3c6/OperationClient.java/buggy/modules/kernel/src/org/apache/axis2/client/OperationClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 16526, 12, 1320, 702, 1769, 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, 0, 0, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 16526, 12, 1320, 702, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText();
public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText();
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
_t = __t2242;
_t = __t2243;
public final void runstoredprocedurestate(AST _t) throws RecognitionException { AST runstoredprocedurestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2242 = _t; AST tmp2151_AST_in = (AST)_t; match(_t,RUN); _t = _t.getFirstChild(); AST tmp2152_AST_in = (AST)_t; match(_t,STOREDPROCEDURE); _t = _t.getNextSibling(); AST tmp2153_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { assign_equal(_t); _t = _retTree; break; } case EOF: case PERIOD: case NOERROR_KW: case Parameter_list: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp2154_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case Parameter_list: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { parameterlist(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2242; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1086, 22601, 685, 8153, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1086, 22601, 685, 8153, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 22601, 685, 8153, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1086, 22601, 685, 8153, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, ...
Asserts.notNull(file, "No such file to load");
assert file != null : "No such file to load";
public void loadFile(File file, boolean wrap) { Asserts.notNull(file, "No such file to load"); try { BufferedReader source = new BufferedReader(new FileReader(file)); loadScript(file.getPath(), source, wrap); source.close(); } catch (IOException ioExcptn) { throw IOError.fromException(this, ioExcptn); } }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/Ruby.java/clean/src/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26953, 12, 812, 585, 16, 1250, 2193, 13, 288, 3639, 1815, 585, 480, 446, 294, 315, 2279, 4123, 585, 358, 1262, 14432, 3639, 775, 288, 5411, 10633, 1084, 273, 394, 10633, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26953, 12, 812, 585, 16, 1250, 2193, 13, 288, 3639, 1815, 585, 480, 446, 294, 315, 2279, 4123, 585, 358, 1262, 14432, 3639, 775, 288, 5411, 10633, 1084, 273, 394, 10633, 12, ...
return gAsHexString; }
return gAsHexString; }
public String getGAsHexString() { return gAsHexString; }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/0400e73e7503ab43211657c44d8448afd6346cce/DSAGroup.java/clean/src/freenet/crypt/DSAGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7162, 1463, 14866, 1435, 288, 202, 202, 2463, 314, 1463, 14866, 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,...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7162, 1463, 14866, 1435, 288, 202, 202, 2463, 314, 1463, 14866, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode());
args = ArgsUtil.setupArgs(runtime, threadContext, this, iVisited.getArgsNode());
public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(threadContext); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = eval(iVisited.getReceiverNode()); args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode()); } finally { ArgsUtil.endCallArgs(threadContext, tmpBlock); } Asserts.notNull(receiver.getMetaClass(), receiver.getClass().getName()); result = receiver.getMetaClass().call(receiver, iVisited.getName(), args, CallType.NORMAL); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1477, 907, 12, 1477, 907, 277, 30019, 13, 288, 3639, 3914, 1853, 1768, 273, 6634, 1304, 18, 10086, 1477, 2615, 12, 5930, 1042, 1769, 3639, 15908, 10340, 921, 5971, 273, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1477, 907, 12, 1477, 907, 277, 30019, 13, 288, 3639, 3914, 1853, 1768, 273, 6634, 1304, 18, 10086, 1477, 2615, 12, 5930, 1042, 1769, 3639, 15908, 10340, 921, 5971, 273, 4...
public Delegator(Scriptable obj) { this.obj = obj;
public Delegator() {
public Delegator(Scriptable obj) { this.obj = obj; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/48b46eb3845fd6cf8fa13cd3def581f9a0ff4339/Delegator.java/buggy/src/org/mozilla/javascript/Delegator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24117, 639, 12, 3651, 429, 1081, 13, 288, 3639, 333, 18, 2603, 273, 1081, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 1071, 24117, 639, 12, 3651, 429, 1081, 13, 288, 3639, 333, 18, 2603, 273, 1081, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
String getProblemsTitle() {
protected String getProblemsTitle() {
String getProblemsTitle() { return IDEWorkbenchMessages.getString("CloseResourceAction.title"); //$NON-NLS-1$ }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4eac3d2cc275edceeff6f6f06f8d39203c7c731c/CloseResourceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CloseResourceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 3570, 19122, 4247, 1435, 288, 3639, 327, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 4605, 1420, 1803, 18, 2649, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 3570, 19122, 4247, 1435, 288, 3639, 327, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 4605, 1420, 1803, 18, 2649, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 565, 289, 2, -100...
private String rewriteScmConnection( String scmConnection, String tag )
private void rewriteScmConnection( Scm scm, String tag )
private String rewriteScmConnection( String scmConnection, String tag ) { if ( scmConnection != null ) { if ( scmConnection.startsWith( "svn" ) ) { if ( scmConnection.endsWith( "trunk/" ) ) { scmConnection = scmConnection.substring( 0, scmConnection.length() - "trunk/".length() ); } if ( scmConnection.endsWith( "branches/" ) ) { scmConnection = scmConnection.substring( 0, scmConnection.length() - "branches/".length() ); } scmConnection += "tags/" + tag; } } return scmConnection; }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/22f9a34107d27782bab8e88b50b54708304b73dc/ProjectScmRewriter.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/helpers/ProjectScmRewriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10738, 1541, 81, 1952, 12, 2850, 81, 29207, 16, 514, 1047, 262, 565, 288, 3639, 309, 261, 29207, 1952, 480, 446, 262, 3639, 288, 5411, 309, 261, 29207, 1952, 18, 17514, 1190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10738, 1541, 81, 1952, 12, 2850, 81, 29207, 16, 514, 1047, 262, 565, 288, 3639, 309, 261, 29207, 1952, 480, 446, 262, 3639, 288, 5411, 309, 261, 29207, 1952, 18, 17514, 1190, ...
float east, west, north, south; int i;
public String read(Link link) throws IOException { Debug.message("link", "LinkMapRequest: read()"); float east, west, north, south; int i; float ver = link.dis.readFloat(); if (ver != version) { if (ver == .1) {// Big differece.... throw new IOException("LinkMapRequest: Versions do not match! DANGER!"); } else { Debug.message("link", "LinkMapRequest: Versions do not match"); } } float lat = link.dis.readFloat(); float lon = link.dis.readFloat(); center = new LatLonPoint(lat, lon); scale = link.dis.readFloat(); height = link.dis.readInt(); width = link.dis.readInt(); int length = link.dis.readInt(); boundingPolys = new LinkBoundingPoly[length]; for (i = 0; i < boundingPolys.length; i++) { boundingPolys[i] = new LinkBoundingPoly(link.dis); } properties = new LinkProperties(link); return link.readDelimiter(false); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/2419f21f3cca678ab2c0f7da5e9a3cef0bdffbf7/LinkMapRequest.java/clean/src/openmap/com/bbn/openmap/layer/link/LinkMapRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 855, 12, 2098, 1692, 13, 1216, 1860, 288, 3639, 4015, 18, 2150, 2932, 1232, 3113, 315, 2098, 863, 691, 30, 855, 1435, 8863, 3639, 1431, 19720, 16, 27697, 16, 21435, 16, 24516, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 12, 2098, 1692, 13, 1216, 1860, 288, 3639, 4015, 18, 2150, 2932, 1232, 3113, 315, 2098, 863, 691, 30, 855, 1435, 8863, 3639, 1431, 19720, 16, 27697, 16, 21435, 16, 24516, ...
for (int j=0; j < bitstreams.length; j++)
for (int j = 0; j < bitstreams.length; j++)
public WorkflowItem startWorkflow() throws SQLException, AuthorizeException { // FIXME Check auth // Set accession date DCDate d = DCDate.getCurrent(); item.addDC("date", "accessioned", null, d.toString()); // Get non-internal format bitstreams Bitstream[] bitstreams = item.getNonInternalBitstreams(); // Create provenance description String provMessage = "Submitted by" + item.getSubmitter().getFullName() + " (" + item.getSubmitter().getEmail() + "). DSpace accession date:" + d.toString() + "\n Submission has " + bitstreams.length + " bitstreams:\n"; // Add sizes and checksums of bitstreams for (int j=0; j < bitstreams.length; j++) { provMessage = provMessage + bitstreams[j].getName() + ": " + bitstreams[j].getSize() + " bytes, checksum: " + bitstreams[j].getChecksum() + " (" + bitstreams[j].getChecksumAlgorithm()+ ")\n"; } // Add message to the DC item.addDC("description", "provenance", "en", provMessage); return null; }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/85c7430ba7691f831fafc420459d280408310eb9/WorkspaceItem.java/clean/dspace/src/org/dspace/content/WorkspaceItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11363, 1180, 787, 8484, 1435, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 368, 9852, 2073, 1357, 3639, 368, 1000, 2006, 285, 1509, 3639, 21533, 1626, 302, 273, 21533, 1626, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11363, 1180, 787, 8484, 1435, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 368, 9852, 2073, 1357, 3639, 368, 1000, 2006, 285, 1509, 3639, 21533, 1626, 302, 273, 21533, 1626, 18, ...
while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { if (c == '\n') { } else if (c == '/' && in.match('*')) { if (in.match('/')) return getToken(); reportSyntaxError("msg.nested.comment", null); return ERROR; }
while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ;
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') if ((flags & TSF_NEWLINES) != 0) break; } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') isUnicodeEscapeStart = true; else c = '\\'; // always unread the 'u' or whatever, we need // to start the string below at the <backslash>. in.unread(); } if (isUnicodeEscapeStart || Character.isJavaIdentifierStart((char)c)) { in.startString(); boolean containsEscape = isUnicodeEscapeStart; do { c = in.read(); if (c == '\\') { c = in.read(); containsEscape = (c == 'u'); } } while (Character.isJavaIdentifierPart((char)c)); in.unread(); int result; String str = in.getString(); // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence after an identifier, we can report // an error here. if (containsEscape) { char ca[] = str.toCharArray(); int L = str.length(); int destination = 0; for (int i = 0; i != L;) { c = ca[i]; ++i; if (c == '\\' && i != L && ca[i] == 'u') { boolean goodEscape = false; if (i + 4 < L) { int val = xDigitToInt(ca[i + 1]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 2]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 3]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 4]); if (val >= 0) { c = (char)val; i += 5; goodEscape = true; } } } } } if (!goodEscape) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } } ca[destination] = (char)c; ++destination; } str = new String(ca, 0, destination); } else // Return the corresponding token if it's a keyword if ((result = stringToKeyword(str)) != EOF) { return result; } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { int base = 10; in.startString(); if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { c = in.read(); base = 16; // restart the string, losing leading 0x in.startString(); } else if (isDigit(c)) { base = 8; } } while (0 <= xDigitToInt(c)) { if (base < 16) { if (isAlpha(c)) break; /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; Context.reportWarning( Context.getMessage("msg.bad.octal.literal", errArgs), getSourceName(), in.getLineno(), getLine(), getOffset()); base = 10; } } c = in.read(); } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { c = in.read(); if (c == '+' || c == '-') { c = in.read(); } if (!isDigit(c)) { in.getString(); // throw away string in progress reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = in.getString(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. StringBuffer stringBuf = null; int quoteChar = c; int val = 0; c = in.read(); in.startString(); // start after the first " while(c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); in.getString(); // throw away the string in progress reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character; revert to the // slow method of building a string. if (stringBuf == null) { // Don't include the backslash in.unread(); stringBuf = new StringBuffer(in.getString()); in.read(); } switch (c = in.read()) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; case 'v': c = '\u000B'; break; // \v a late addition to the ECMA spec. // '\v' doesn't seem to be valid Java. default: if (isDigit(c) && c < '8') { val = c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); } } in.unread(); if (val > 0377) { reportSyntaxError("msg.oct.esc.too.large", null); return ERROR; } c = val; } else if (c == 'u') { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. Do some manual * match (OK because we're in a string) to avoid * multi-char match on the underlying stream. */ int c1 = in.read(); c = xDigitToInt(c1); if (c < 0) { in.unread(); c = 'u'; } else { int c2 = in.read(); c = (c << 4) | xDigitToInt(c2); if (c < 0) { in.unread(); stringBuf.append('u'); c = c1; } else { int c3 = in.read(); c = (c << 4) | xDigitToInt(c3); if (c < 0) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); c = c2; } else { int c4 = in.read(); c = (c << 4) | xDigitToInt(c4); if (c < 0) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); stringBuf.append((char)c2); c = c3; } else { // got 4 hex digits! Woo Hoo! } } } } } else if (c == 'x') { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ int c1 = in.read(); c = xDigitToInt(c1); if (c < 0) { in.unread(); c = 'x'; } else { int c2 = in.read(); c = (c << 4) | xDigitToInt(c2); if (c < 0) { in.unread(); stringBuf.append('x'); c = c1; } else { // got 2 hex digits } } } } } if (stringBuf != null) stringBuf.append((char) c); c = in.read(); } if (stringBuf != null) this.string = stringBuf.toString(); else { in.unread(); // miss the trailing " this.string = in.getString(); in.read(); } return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { if (c == '\n') { } else if (c == '/' && in.match('*')) { if (in.match('/')) return getToken(); reportSyntaxError("msg.nested.comment", null); return ERROR; } } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { // We don't try to use the in.startString/in.getString // approach, because escaped characters (which break it) // seem likely to be common. StringBuffer re = new StringBuffer(); while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { re.append((char) c); c = in.read(); } re.append((char) c); } StringBuffer flagsBuf = new StringBuffer(); while (true) { if (in.match('g')) flagsBuf.append('g'); else if (in.match('i')) flagsBuf.append('i'); else if (in.match('m')) flagsBuf.append('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = re.toString(); this.regExpFlags = flagsBuf.toString(); return OBJECT; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': case '-': if (in.match('=')) { if (c == '+') { this.op = ADD; return ASSIGN; } else { this.op = SUB; return ASSIGN; } } else if (in.match((char) c)) { if (c == '+') { return INC; } else { return DEC; } } else if (c == '-') { return SUB; } else { return ADD; } default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/dbed2ec489b1786b82c0f2679e3dfb5b832e27e4/TokenStream.java/buggy/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
Class keyClass = ClassHelper.loadClass((String) key, getClass()); component = registry.getService(keyClass); } catch (ClassNotFoundException e) { throw new ObjectNotFoundException("Component class not found: " + key.toString());
component = registry.getService((String)key, Object.class); logger.debug("Called " + key + " obtained " + component.getClass().getName()); } catch (ApplicationRuntimeException are) { throw new ObjectNotFoundException("Component not found for " + key, are);
public Object getComponent(Object key) throws ObjectNotFoundException { if (registry == null) { throw new IllegalStateException("HiveMind registry has not been set"); } if (key == null) { throw new ObjectNotFoundException("Component not found for null key"); } Object component = null; if (key instanceof String) { try { Class keyClass = ClassHelper.loadClass((String) key, getClass()); component = registry.getService(keyClass); } catch (ClassNotFoundException e) { throw new ObjectNotFoundException("Component class not found: " + key.toString()); } } else if (key instanceof Class) { component = registry.getService((Class) key); } if (component == null) { throw new ObjectNotFoundException("Component not found for key: " + key.toString()); } return component; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/03b37865bd8312cb467a542d79b4c086e3ee7a81/HiveMindContext.java/clean/mule-extras/hivemind/src/java/org/mule/extras/hivemind/HiveMindContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 10322, 12, 921, 498, 13, 1216, 1033, 3990, 565, 288, 3639, 309, 261, 9893, 422, 446, 13, 288, 5411, 604, 394, 5477, 2932, 44, 688, 49, 728, 4023, 711, 486, 2118, 444, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 10322, 12, 921, 498, 13, 1216, 1033, 3990, 565, 288, 3639, 309, 261, 9893, 422, 446, 13, 288, 5411, 604, 394, 5477, 2932, 44, 688, 49, 728, 4023, 711, 486, 2118, 444, 8863, ...
"(" + getKey() + ") " + new java.sql.Timestamp(getInvalidationTime().getTime());
"(" + getKey() + ") " + new java.sql.Timestamp(getInvalidationTime().getTime()) + " from cache " + cacheID;
public String toString() { return "CachedEntityInvalidation: " + getType().getName() + "(" + getKey() + ") " + new java.sql.Timestamp(getInvalidationTime().getTime());}
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/0da243b436f213f3cfc3af3dd4109b0678bd015f/CachedEntityInvalidation.java/buggy/source/org/jasig/portal/concurrency/caching/CachedEntityInvalidation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 1762, 1435, 288, 565, 327, 315, 9839, 1943, 27946, 30, 315, 397, 3130, 7675, 17994, 1435, 397, 1377, 12452, 397, 3579, 1435, 397, 9369, 315, 397, 394, 2252, 18, 4669, 18, 4921, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 514, 1762, 1435, 288, 565, 327, 315, 9839, 1943, 27946, 30, 315, 397, 3130, 7675, 17994, 1435, 397, 1377, 12452, 397, 3579, 1435, 397, 9369, 315, 397, 394, 2252, 18, 4669, 18, 4921, 12, ...
{ super(); }
{ super(); }
public ItemTag() { super(); }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/71c78d7920b2b31393f2bd956eca17455acdc37f/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4342, 1805, 1435, 202, 95, 202, 202, 9565, 5621, 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, 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, 225, 202, 482, 4342, 1805, 1435, 202, 95, 202, 202, 9565, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
throw new TypeError(runtime, "Wrong argument type " + arg.getMetaClass().getName() + " (expected Module).");
throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module).");
public void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { runtime.secure(4); } if (!(arg instanceof RubyModule)) { throw new TypeError(runtime, "Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); } RubyModule module = (RubyModule) arg; Map moduleMethods = module.getMethods(); // Make sure the module we include does not already exist for (RubyModule p = this; p != null; p = p.getSuperClass()) { // XXXEnebo - Lame equality check (cause: IncludedModule?) if (p.getMethods() == moduleMethods) { return; } } // Include new module setSuperClass(module.newIncludeClass(getSuperClass())); // Try to include all included modules from module just added for (RubyModule p = module.getSuperClass(); p != null; p = p.getSuperClass()) { includeModule(p); } clearMethodCache(); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2341, 3120, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 1842, 42, 9808, 2932, 2978, 8863, 3639, 309, 16051, 291, 29048, 10756, 288, 5411, 3099, 18, 8869, 12, 24, 1769, 3639, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2341, 3120, 12, 7937, 10340, 921, 1501, 13, 288, 3639, 1842, 42, 9808, 2932, 2978, 8863, 3639, 309, 16051, 291, 29048, 10756, 288, 5411, 3099, 18, 8869, 12, 24, 1769, 3639, 289...
public synchronized void reset() throws SecurityException
public synchronized void reset() throws SecurityException
public synchronized void reset() throws SecurityException { /* Throw a SecurityException if the caller does not have the * permission to control the logging infrastructure. */ checkAccess(); properties = new Properties(); Iterator iter = loggers.values().iterator(); while (iter.hasNext()) { WeakReference ref; Logger logger; ref = (WeakReference) iter.next(); if (ref != null) { logger = (Logger) ref.get(); if (logger == null) iter.remove(); else if (logger != rootLogger) logger.setLevel(null); } } rootLogger.setLevel(Level.INFO); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/01e11568dbfe1a60a5c39a0f1fed54700d98a09a/LogManager.java/clean/libraries/javalib/java/util/logging/LogManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 2715, 1435, 565, 1216, 17780, 225, 288, 565, 1748, 3743, 279, 17780, 309, 326, 4894, 1552, 486, 1240, 326, 377, 380, 4132, 358, 3325, 326, 2907, 316, 26150, 18, 377, 1195...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 2715, 1435, 565, 1216, 17780, 225, 288, 565, 1748, 3743, 279, 17780, 309, 326, 4894, 1552, 486, 1240, 326, 377, 380, 4132, 358, 3325, 326, 2907, 316, 26150, 18, 377, 1195...
private void createPropertyChangeMethods(JClass parent) { parent.addImport("java.beans.PropertyChangeEvent"); parent.addImport("java.beans.PropertyChangeListener"); //-- add vector to hold listeners String vName = "propertyChangeListeners"; JMember jMember = new JMember(SGTypes.Vector, vName); jMember.getModifiers().makePrivate(); parent.addMember(jMember); JSourceCode jsc = parent.getConstructor(0).getSourceCode(); jsc.add("propertyChangeListeners = new Vector();"); //---------------------------------/ //- notifyPropertyChangeListeners -/ //---------------------------------/ JMethod jMethod = new JMethod(null,"notifyPropertyChangeListeners"); jMethod.getModifiers().makeProtected(); String desc = "Notifies all registered "+ "PropertyChangeListeners when a bound property's value "+ "changes."; JDocComment jdc = jMethod.getJDocComment(); JDocDescriptor jdDesc = null; jdc.appendComment(desc); jMethod.addParameter(new JParameter(SGTypes.String, "fieldName")); jdDesc = jdc.getParamDescriptor("fieldName"); jdDesc.setDescription("the name of the property that has changed."); jMethod.addParameter(new JParameter(SGTypes.Object, "oldValue")); jdDesc = jdc.getParamDescriptor("oldValue"); jdDesc.setDescription("the old value of the property."); jMethod.addParameter(new JParameter(SGTypes.Object, "newValue")); jdDesc = jdc.getParamDescriptor("newValue"); jdDesc.setDescription("the new value of the property."); parent.addMethod(jMethod); jsc = jMethod.getSourceCode(); jsc.add("java.beans.PropertyChangeEvent event = new "); jsc.append("java.beans.PropertyChangeEvent"); jsc.append("(this, fieldName, oldValue, newValue);"); jsc.add(""); jsc.add("for (int i = 0; i < "); jsc.append(vName); jsc.append(".size(); i++) {"); jsc.indent(); jsc.add("((java.beans.PropertyChangeListener) "); jsc.append(vName); jsc.append(".elementAt(i))."); jsc.append("propertyChange(event);"); jsc.unindent(); jsc.add("}"); //-----------------------------/ //- addPropertyChangeListener -/ //-----------------------------/ JType jType = new JClass("java.beans.PropertyChangeListener"); jMethod = new JMethod(null,"addPropertyChangeListener"); desc = "Registers a PropertyChangeListener with this class."; jdc = jMethod.getJDocComment(); jdc.appendComment(desc); jMethod.addParameter(new JParameter(jType, "pcl")); desc = "The PropertyChangeListener to register."; jdDesc = jdc.getParamDescriptor("pcl"); jdDesc.setDescription(desc); parent.addMethod(jMethod); jsc = jMethod.getSourceCode(); jsc.add(vName); jsc.append(".addElement(pcl);"); //--------------------------------/ //- removePropertyChangeListener -/ //--------------------------------/ jMethod = new JMethod(JType.Boolean,"removePropertyChangeListener"); desc = "Removes the given PropertyChangeListener "+ "from this classes list of ProperyChangeListeners."; jdc = jMethod.getJDocComment(); jdc.appendComment(desc); jMethod.addParameter(new JParameter(jType, "pcl")); desc = "The PropertyChangeListener to remove."; jdDesc = jdc.getParamDescriptor("pcl"); jdDesc.setDescription(desc); desc = "true if the given PropertyChangeListener was removed."; jdc.addDescriptor(JDocDescriptor.createReturnDesc(desc)); parent.addMethod(jMethod); jsc = jMethod.getSourceCode(); jsc.add("return "); jsc.append(vName); jsc.append(".removeElement(pcl);"); } //-- createPropertyChangeMethods
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/90b23199c1cf3fd5d356503515071261f7bb74a5/SourceFactory.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/SourceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 31318, 3043, 4712, 12, 46, 797, 982, 13, 288, 202, 202, 2938, 18, 1289, 5010, 2932, 6290, 18, 2196, 634, 18, 1396, 20930, 8863, 202, 202, 2938, 18, 1289, 5010, 2932, 6290, 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, 3238, 918, 31318, 3043, 4712, 12, 46, 797, 982, 13, 288, 202, 202, 2938, 18, 1289, 5010, 2932, 6290, 18, 2196, 634, 18, 1396, 20930, 8863, 202, 202, 2938, 18, 1289, 5010, 2932, 6290, 18...
public synchronized int onSendRequestAfter(Request request, int rdvValue, UniversalBody destination) throws RenegotiateSessionException { //System.out.println("[CIC] onSendRequestAfter"); // if return value is RESEDN, receiver have to recover --> resend the message if (rdvValue == FTManagerCIC.RESEND_MESSAGE) { try { //System.out.println("[CIC] Receiver is recovering : request is resent"); request.resetSendCounter(); Thread.sleep(FTManagerCIC.TIME_TO_RESEND); int rdvValueBis = sendRequest(request, destination); return this.onSendRequestAfter(request, rdvValueBis, destination); } catch (RenegotiateSessionException e1) { throw e1; } catch (InterruptedException e) { e.printStackTrace(); } } int currentCheckpointIndex = this.checkpointIndex; // update checkpoint index if (rdvValue > currentCheckpointIndex) { this.nextMax = Math.max(this.nextMax, rdvValue); // log this in-transit message in the rdvValue-currentIndex next checkpoints this.extendRequestLog(rdvValue); try { //System.out.println(">>>>>> LOGGING REQUEST IN " + (currentCheckpointIndex+1)); //must make deep copy of paramteres request.getMethodCall().makeDeepCopyOfArguments(); //must reset the send counter (this request has not been forrwarded) request.resetSendCounter(); MessageLog log = new RequestLog(request, destination); for (int i = currentCheckpointIndex + 1; i <= rdvValue; i++) { ((Vector) (this.requestToResend.get(i))).add(log); } } catch (IOException e) { e.printStackTrace(); } } return 0; }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/e249ba646c84a168ac3f762dbcbe1c6e2bc975f1/FTManagerCIC.java/clean/src/org/objectweb/proactive/core/body/ft/protocols/cic/FTManagerCIC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22043, 474, 265, 3826, 691, 4436, 12, 691, 2293, 16, 267, 313, 15679, 620, 16, 984, 14651, 2250, 10590, 13, 15069, 16290, 27445, 3840, 2157, 503, 95, 759, 3163, 18, 659, 18, 8222, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22043, 474, 265, 3826, 691, 4436, 12, 691, 2293, 16, 267, 313, 15679, 620, 16, 984, 14651, 2250, 10590, 13, 15069, 16290, 27445, 3840, 2157, 503, 95, 759, 3163, 18, 659, 18, 8222, 2932, ...
return scope;
return global;
public static ScriptableObject getScope() { return scope; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8d348ad77ead316774c893fbf3cadb3ad8c1050a/Main.java/clean/js/rhino/org/mozilla/javascript/tools/shell/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22780, 921, 19203, 1435, 288, 3639, 327, 2552, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22780, 921, 19203, 1435, 288, 3639, 327, 2552, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
yaccValue = "|"; src.unread(c);
src.unread(c); yaccValue = new Token("|", getPosition(null, false));
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082...
AST tmp1700_AST_in = (AST)_t;
AST tmp1704_AST_in = (AST)_t;
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t106 = _t; AST tmp1617_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t106; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t107 = _t; AST tmp1618_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t107; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t108 = _t; AST tmp1619_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t108; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t109 = _t; AST tmp1620_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t109; _t = _t.getNextSibling(); break; } case ASC: { AST __t110 = _t; AST tmp1621_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t110; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t111 = _t; AST tmp1622_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t111; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t112 = _t; AST tmp1623_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t112; _t = _t.getNextSibling(); break; } case CANDO: { AST __t113 = _t; AST tmp1624_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t113; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t114 = _t; AST tmp1625_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t114; _t = _t.getNextSibling(); break; } case CANSET: { AST __t115 = _t; AST tmp1626_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t115; _t = _t.getNextSibling(); break; } case CAPS: { AST __t116 = _t; AST tmp1627_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t116; _t = _t.getNextSibling(); break; } case CHR: { AST __t117 = _t; AST tmp1628_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t117; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t118 = _t; AST tmp1629_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t118; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t119 = _t; AST tmp1630_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t119; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t120 = _t; AST tmp1631_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t120; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t121 = _t; AST tmp1632_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t121; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t122 = _t; AST tmp1633_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t122; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t123 = _t; AST tmp1634_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t123; _t = _t.getNextSibling(); break; } case DATE: { AST __t124 = _t; AST tmp1635_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t124; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t125 = _t; AST tmp1636_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t125; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t126 = _t; AST tmp1637_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t126; _t = _t.getNextSibling(); break; } case DAY: { AST __t127 = _t; AST tmp1638_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t127; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t128 = _t; AST tmp1639_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t128; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t129 = _t; AST tmp1640_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t129; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t130 = _t; AST tmp1641_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t130; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t131 = _t; AST tmp1642_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t131; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t132 = _t; AST tmp1643_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t132; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t133 = _t; AST tmp1644_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t133; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t134 = _t; AST tmp1645_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t134; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t135 = _t; AST tmp1646_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t135; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t136 = _t; AST tmp1647_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t136; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t137 = _t; AST tmp1648_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t137; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t138 = _t; AST tmp1649_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t138; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t139 = _t; AST tmp1650_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t139; _t = _t.getNextSibling(); break; } case EXP: { AST __t140 = _t; AST tmp1651_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t140; _t = _t.getNextSibling(); break; } case FILL: { AST __t141 = _t; AST tmp1652_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t141; _t = _t.getNextSibling(); break; } case FIRST: { AST __t142 = _t; AST tmp1653_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t142; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t143 = _t; AST tmp1654_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t143; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t144 = _t; AST tmp1655_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t144; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t145 = _t; AST tmp1656_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t145; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t146 = _t; AST tmp1657_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t146; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t147 = _t; AST tmp1658_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t147; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t148 = _t; AST tmp1659_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t149 = _t; AST tmp1660_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t150 = _t; AST tmp1661_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t150; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t151 = _t; AST tmp1662_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t151; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t152 = _t; AST tmp1663_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t152; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t153 = _t; AST tmp1664_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t153; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t154 = _t; AST tmp1665_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t154; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t155 = _t; AST tmp1666_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t155; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t156 = _t; AST tmp1667_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t156; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t157 = _t; AST tmp1668_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t157; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t158 = _t; AST tmp1669_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t158; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t159 = _t; AST tmp1670_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t159; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t160 = _t; AST tmp1671_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t160; _t = _t.getNextSibling(); break; } case INDEX: { AST __t161 = _t; AST tmp1672_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t161; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t162 = _t; AST tmp1673_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t162; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t163 = _t; AST tmp1674_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t163; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t164 = _t; AST tmp1675_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t164; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t165 = _t; AST tmp1676_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t165; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t166 = _t; AST tmp1677_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t166; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t167 = _t; AST tmp1678_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t167; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t168 = _t; AST tmp1679_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t168; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t169 = _t; AST tmp1680_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t169; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t170 = _t; AST tmp1681_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t170; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t171 = _t; AST tmp1682_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t171; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t172 = _t; AST tmp1683_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t172; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t173 = _t; AST tmp1684_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t173; _t = _t.getNextSibling(); break; } case LAST: { AST __t174 = _t; AST tmp1685_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t174; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t175 = _t; AST tmp1686_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t175; _t = _t.getNextSibling(); break; } case LC: { AST __t176 = _t; AST tmp1687_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t176; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t177 = _t; AST tmp1688_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t177; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t178 = _t; AST tmp1689_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t178; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t179 = _t; AST tmp1690_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t179; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t180 = _t; AST tmp1691_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t180; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t181 = _t; AST tmp1692_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t181; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t182 = _t; AST tmp1693_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t182; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t183 = _t; AST tmp1694_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t183; _t = _t.getNextSibling(); break; } case LOG: { AST __t184 = _t; AST tmp1695_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t184; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t185 = _t; AST tmp1696_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t185; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t186 = _t; AST tmp1697_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t186; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t187 = _t; AST tmp1698_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t187; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t188 = _t; AST tmp1699_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t188; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t189 = _t; AST tmp1700_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t189; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t190 = _t; AST tmp1701_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t190; _t = _t.getNextSibling(); break; } case MONTH: { AST __t191 = _t; AST tmp1702_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t191; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t192 = _t; AST tmp1703_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t192; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t193 = _t; AST tmp1704_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t193; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t194 = _t; AST tmp1705_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t194; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t195 = _t; AST tmp1706_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t195; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t196 = _t; AST tmp1707_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t196; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t197 = _t; AST tmp1708_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t197; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t198 = _t; AST tmp1709_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t198; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t199 = _t; AST tmp1710_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t199; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t200 = _t; AST tmp1711_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t200; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t201 = _t; AST tmp1712_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t201; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t202 = _t; AST tmp1713_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t202; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t203 = _t; AST tmp1714_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t203; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t204 = _t; AST tmp1715_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t204; _t = _t.getNextSibling(); break; } case ROUND: { AST __t205 = _t; AST tmp1716_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t205; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t206 = _t; AST tmp1717_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t206; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t207 = _t; AST tmp1718_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t207; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t208 = _t; AST tmp1719_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t208; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t209 = _t; AST tmp1720_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t209; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t210 = _t; AST tmp1721_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t210; _t = _t.getNextSibling(); break; } case SQRT: { AST __t211 = _t; AST tmp1722_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t211; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t212 = _t; AST tmp1723_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t212; _t = _t.getNextSibling(); break; } case STRING: { AST __t213 = _t; AST tmp1724_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t213; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t214 = _t; AST tmp1725_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t214; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t215 = _t; AST tmp1726_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t215; _t = _t.getNextSibling(); break; } case TRIM: { AST __t216 = _t; AST tmp1727_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t216; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t217 = _t; AST tmp1728_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t217; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t218 = _t; AST tmp1729_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t218; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t219 = _t; AST tmp1730_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t219; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t220 = _t; AST tmp1731_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t220; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t221 = _t; AST tmp1732_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t221; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t222 = _t; AST tmp1733_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t222; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t223 = _t; AST tmp1734_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t223; _t = _t.getNextSibling(); break; } case YEAR: { AST __t224 = _t; AST tmp1735_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t224; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1501, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1501, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1501, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1501, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
return field == null ? 0 : field.getByteValue(obj);
return field == null ? 0 : field.getByteValueUnchecked(obj);
private static int GetByteField(int envJREF, int objJREF, int fieldIndex1) { if (traceJNI) VM.sysWrite("JNI called: GetByteField \n"); int fieldIndex = fieldIndex1-1; VM_JNIEnvironment env = VM_Thread.getCurrentThread().getJNIEnv(); try { Object obj = env.getJNIRef(objJREF); VM_Field field = VM_JNIEnvironment.getFieldAtIndex(obj, fieldIndex); return field == null ? 0 : field.getByteValue(obj); } catch (Throwable unexpected) { if (traceJNI) unexpected.printStackTrace(System.err); env.recordException(unexpected); return 0; } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/73161e4dae0f3ded1857fa907d0bcad371a5c509/VM_JNIFunctions.java/clean/rvm/src/vm/jni/VM_JNIFunctions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 968, 3216, 974, 12, 474, 1550, 46, 10771, 16, 509, 1081, 46, 10771, 16, 509, 31762, 21, 13, 288, 565, 309, 261, 5129, 46, 50, 45, 13, 8251, 18, 9499, 3067, 2932, 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, 3238, 760, 509, 968, 3216, 974, 12, 474, 1550, 46, 10771, 16, 509, 1081, 46, 10771, 16, 509, 31762, 21, 13, 288, 565, 309, 261, 5129, 46, 50, 45, 13, 8251, 18, 9499, 3067, 2932, 46, ...
cfw.addALoad(scopeArg);
void pushRegExpArray(ClassFileWriter cfw, ScriptOrFnNode n, int contextArg, int scopeArg) { int regexpCount = n.getRegexpCount(); if (regexpCount == 0) badTree(); cfw.addPush(regexpCount); cfw.add(ByteCode.ANEWARRAY, "java/lang/Object"); cfw.addALoad(contextArg); cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/ScriptRuntime", "checkRegExpProxy", "(Lorg/mozilla/javascript/Context;" +")Lorg/mozilla/javascript/RegExpProxy;"); // Stack: proxy, array cfw.add(ByteCode.DUP); cfw.addALoad(contextArg); cfw.addALoad(scopeArg); cfw.addInvoke(ByteCode.INVOKESTATIC, mainClassName, REGEXP_INIT_METHOD_NAME, REGEXP_INIT_METHOD_SIGNATURE); for (int i = 0; i != regexpCount; ++i) { // Stack: proxy, array cfw.add(ByteCode.DUP2); cfw.addALoad(contextArg); cfw.addALoad(scopeArg); cfw.add(ByteCode.GETSTATIC, mainClassName, getCompiledRegexpName(n, i), "Ljava/lang/Object;"); // Stack: compiledRegExp, scope, cx, proxy, array, proxy, array cfw.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/RegExpProxy", "wrapRegExp", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); // Stack: wrappedRegExp, array, proxy, array cfw.addPush(i); cfw.add(ByteCode.SWAP); cfw.add(ByteCode.AASTORE); // Stack: proxy, array } // remove proxy cfw.add(ByteCode.POP); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8df24a01d813540ecdfcd8a3a380c84cc9993734/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1817, 13673, 1076, 12, 797, 812, 2289, 6080, 91, 16, 7739, 1162, 5372, 907, 290, 16, 7682, 509, 819, 4117, 16, 509, 2146, 4117, 13, 565, 288, 3639, 509, 7195, 1380, 273, 290, 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, 918, 1817, 13673, 1076, 12, 797, 812, 2289, 6080, 91, 16, 7739, 1162, 5372, 907, 290, 16, 7682, 509, 819, 4117, 16, 509, 2146, 4117, 13, 565, 288, 3639, 509, 7195, 1380, 273, 290, 18, ...
setInstanceDocumentInfo(new DocumentWrapper(instanceDocument, null, new Configuration()), initialize);
setInstanceDocumentInfo(new DocumentWrapper(Dom4jUtils.normalizeTextNodes(instanceDocument), null, new Configuration()), initialize);
public void setInstanceDocument(Document instanceDocument, boolean initialize) { setInstanceDocumentInfo(new DocumentWrapper(instanceDocument, null, new Configuration()), initialize); }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/d1d9a2a351b42f7b78b5695fd7276942d699b697/XFormsInstance.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1442, 2519, 12, 2519, 791, 2519, 16, 1250, 4046, 13, 288, 3639, 444, 1442, 2519, 966, 12, 2704, 4319, 3611, 12, 8832, 24, 78, 1989, 18, 12237, 1528, 3205, 12, 1336, 2519...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1442, 2519, 12, 2519, 791, 2519, 16, 1250, 4046, 13, 288, 3639, 444, 1442, 2519, 966, 12, 2704, 4319, 3611, 12, 8832, 24, 78, 1989, 18, 12237, 1528, 3205, 12, 1336, 2519...