rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
public DataSetIterator( DataSet ds ) throws IllegalArgumentException, ChartException
public DataSetIterator( Double[] dda )
public DataSetIterator( DataSet ds ) throws IllegalArgumentException, ChartException { Object oContent = ds.getValues( ); if ( ds instanceof NumberDataSet ) { iDataType = IConstants.NUMERICAL; if ( oContent instanceof Collection ) { iContentType = IConstants.COLLECTION; co = (Collection) oContent; } else if ( oContent instanceof double[] ) { iContentType = IConstants.PRIMITIVE_ARRAY; da = (double[]) oContent; } else if ( oContent instanceof Double[] ) { iContentType = IConstants.NON_PRIMITIVE_ARRAY; dda = (Double[]) oContent; } else if ( oContent instanceof Number ) { iContentType = IConstants.PRIMITIVE_ARRAY; da = new double[]{ ( (Number) oContent ).doubleValue( ) }; } } else if ( ds instanceof DateTimeDataSet ) { iDataType = IConstants.DATE_TIME; if ( oContent instanceof Collection ) { iContentType = IConstants.COLLECTION; co = (Collection) oContent; } else if ( oContent instanceof long[] ) { iContentType = IConstants.PRIMITIVE_ARRAY; la = (long[]) oContent; cReused = Calendar.getInstance( ); } else if ( oContent instanceof Calendar[] ) { iContentType = IConstants.NON_PRIMITIVE_ARRAY; ca = (Calendar[]) oContent; } updateDateTimeValues( ); } else if ( ds instanceof TextDataSet ) { iDataType = IConstants.TEXT; if ( oContent instanceof Collection ) { iContentType = IConstants.COLLECTION; co = (Collection) oContent; } else if ( oContent instanceof String[] ) { iContentType = IConstants.NON_PRIMITIVE_ARRAY; sa = (String[]) oContent; } } else if ( ds instanceof StockDataSet ) { iDataType = IConstants.OTHER; if ( oContent instanceof Collection ) { iContentType = IConstants.COLLECTION; co = (Collection) oContent; } else if ( oContent instanceof Object[] ) { iContentType = IConstants.NON_PRIMITIVE_ARRAY; oa = (Object[]) oContent; } iDataType = IConstants.UNDEFINED; } if ( iContentType == IConstants.UNDEFINED ) { throw new IllegalArgumentException( MessageFormat.format( ResourceBundle.getBundle( Messages.ENGINE, Locale.getDefault( ) // LOCALE? ) .getString( "exception.process.content.dataset" ), //$NON-NLS-1$ new Object[]{ oContent, ds } ) ); } if ( co != null ) { it = co.iterator( ); } iRowCount = getRowCountInternal( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae8909f5c697c610266e491d0af9a02eed14e2e4/DataSetIterator.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/DataSetIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14065, 3198, 12, 14065, 3780, 262, 1216, 2754, 16, 1082, 202, 7984, 503, 202, 95, 202, 202, 921, 320, 1350, 273, 3780, 18, 588, 1972, 12, 11272, 202, 202, 430, 261, 3780, 1276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14065, 3198, 12, 14065, 3780, 262, 1216, 2754, 16, 1082, 202, 7984, 503, 202, 95, 202, 202, 921, 320, 1350, 273, 3780, 18, 588, 1972, 12, 11272, 202, 202, 430, 261, 3780, 1276...
ASTNode lastChild = last == null ? null : last.getTreeNext(); final ASTNode prevElement = TreeUtil.prevLeaf(first); final ASTNode nextElement = findElementAfter(last == null ? parent : last, false); final ArrayList<PsiElement> dirtyElements = new ArrayList<PsiElement>(); if (nextElement != null) { saveIndents(nextElement, dirtyElements); } try { boolean adjustWSBefore = containLineBreaks(first, lastChild); if (!mustKeepFirstIndent(prevElement, parent)) { adjustWSBefore = true; } parent.removeRange(first, lastChild); if (!adjustWSBefore && parent.getTextLength() == 0 && prevElement != null && isWS(prevElement) && !prevElement.textContains('\n')) { adjustWSBefore = true; } final PsiFile file = parent.getPsi().getContainingFile(); final CodeStyleSettings.IndentOptions options = CodeStyleSettingsManager.getSettings(file.getProject()) .getIndentOptions(file.getFileType()); if (nextElement != null) { adjustSpacePositions(nextElement, prevElement, options); if (prevElement != null) { FormatterUtil.join(prevElement, TreeUtil.nextLeaf(prevElement)); } if (adjustWSBefore) { adjustWhiteSpaceBefore(nextElement, true, true, true, false); } } else { final ASTNode fileNode = SourceTreeToPsiMap.psiElementToTree(parent.getPsi().getContainingFile()); ASTNode lastLeaf = TreeUtil.findLastLeaf(fileNode); if (isWS(lastLeaf)) { delete(lastLeaf); } } } finally { clearIndentInfo(dirtyElements);
if (Formatter.getInstance().isActive()) { parent.removeRange(first, findLastChild(last)); } else { removeChildrenAndAdjustWhiteSpaces(first, last, parent);
public static void removeChildren(CompositeElement parent, ASTNode first, ASTNode last) { checkAllWhiteSpaces(parent); ASTNode lastChild = last == null ? null : last.getTreeNext(); final ASTNode prevElement = TreeUtil.prevLeaf(first); final ASTNode nextElement = findElementAfter(last == null ? parent : last, false); final ArrayList<PsiElement> dirtyElements = new ArrayList<PsiElement>(); if (nextElement != null) { saveIndents(nextElement, dirtyElements); } try { boolean adjustWSBefore = containLineBreaks(first, lastChild); if (!mustKeepFirstIndent(prevElement, parent)) { adjustWSBefore = true; } parent.removeRange(first, lastChild); if (!adjustWSBefore && parent.getTextLength() == 0 && prevElement != null && isWS(prevElement) && !prevElement.textContains('\n')) { adjustWSBefore = true; } final PsiFile file = parent.getPsi().getContainingFile(); final CodeStyleSettings.IndentOptions options = CodeStyleSettingsManager.getSettings(file.getProject()) .getIndentOptions(file.getFileType()); if (nextElement != null) { adjustSpacePositions(nextElement, prevElement, options); if (prevElement != null) { FormatterUtil.join(prevElement, TreeUtil.nextLeaf(prevElement)); } if (adjustWSBefore) { adjustWhiteSpaceBefore(nextElement, true, true, true, false); } } else { final ASTNode fileNode = SourceTreeToPsiMap.psiElementToTree(parent.getPsi().getContainingFile()); ASTNode lastLeaf = TreeUtil.findLastLeaf(fileNode); if (isWS(lastLeaf)) { delete(lastLeaf); } } } finally { clearIndentInfo(dirtyElements); } checkAllWhiteSpaces(parent); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/7a52f4da42ba88dd7975588bd16a0bb46effc9d2/CodeEditUtil.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1206, 4212, 12, 9400, 1046, 982, 16, 9183, 907, 1122, 16, 9183, 907, 1142, 13, 288, 565, 866, 1595, 13407, 12077, 12, 2938, 1769, 565, 9183, 907, 30006, 273, 1142, 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, 282, 1071, 760, 918, 1206, 4212, 12, 9400, 1046, 982, 16, 9183, 907, 1122, 16, 9183, 907, 1142, 13, 288, 565, 866, 1595, 13407, 12077, 12, 2938, 1769, 565, 9183, 907, 30006, 273, 1142, 422, ...
File[] files = new File[fileNames.length];
File[] files = new File[fileNames.length];
protected File[] getFiles(String[] fileNames) { File[] files = new File[fileNames.length]; for (int i = 0; i < fileNames.length; i++) { files[i] = new File(fileNames[i]); } return files; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/48cbfd568805d8302ff76e177e1533df1b92a834/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1387, 8526, 18262, 12, 780, 8526, 27375, 13, 288, 3639, 1387, 8526, 1390, 273, 394, 1387, 63, 768, 1557, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 27375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 8526, 18262, 12, 780, 8526, 27375, 13, 288, 3639, 1387, 8526, 1390, 273, 394, 1387, 63, 768, 1557, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 27375, ...
db.requestFocus();
debugGui.requestFocus();
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if (cmd.equals("Cancel")) { setVisible(false); value = null; } else if (cmd.equals("Select")) { if (list.getSelectedIndex() < 0) { return; } try { value = (String)list.getSelectedValue(); } catch (ArrayIndexOutOfBoundsException exc) { return; } setVisible(false); ScriptItem item = (ScriptItem)functionNames.get(value); if (item != null) { SourceInfo si = item.getSourceInfo(); String url = si.getUrl(); int lineNumber = item.getFirstLine(); FileWindow w = db.getFileWindow(url); if (w == null) { CreateFileWindow.action(db, si, lineNumber).run(); w = db.getFileWindow(url); w.setPosition(-1); } int start = w.getPosition(lineNumber-1); int end = w.getPosition(lineNumber)-1; w.textArea.select(start); w.textArea.setCaretPosition(start); w.textArea.moveCaretPosition(end); try { w.show(); db.requestFocus(); w.requestFocus(); w.textArea.requestFocus(); } catch (Exception exc) { } } } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 1...
temp_end_name ="TEMP"+i;
temp_end_name ="C"+temp_end_name+i;
public void transform () { Table temp_end = new Table(); ArrayList unwanted = new ArrayList(); Table converted_ref = null; boolean single = false; for (int i=0; i<getUnits().length; i++){ TransformationUnit unit = getUnits()[i]; Table temp_start = new Table(); String temp_end_name; if(unit.single){ single=true; temp_end_name ="TEMP"+i; unit.transform(temp_start,temp_end_name); converted_ref=unit.temp_end; unit.temp_end.setName(temp_end_name); unit.temp_end_name=temp_end_name; continue; } if (i == 0){ temp_start = start_table; } else {temp_start=temp_end;} boolean final_table = false; temp_end_name ="TEMP"+i; if (single == true){ temp_start = start_table; unit.ref_table=converted_ref; unit.cardinality="n1"; single=false; } //unit.temp_start.key=unit.ref_table.key; unit.transform(temp_start, temp_end_name); if (i== getUnits().length-1){ unit.temp_end.setName(final_table_name); final_table=true; } else { unit.temp_end.setName(temp_end_name); } if (unit.is_extension){ unit.temp_start.key=unit.extension_key; } if (unit.has_extension){ unit.temp_start.extension=unit.central_extension; } unit.temp_end.final_table=final_table; unit.temp_end.temp_name=temp_end_name; temp_end=unit.temp_end; units.set(i,unit); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/974d9a0953dd2fb50dad07d79ae27c7e6d430ccd/Transformation.java/clean/src/java/org/ensembl/mart/builder/Transformation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2510, 1832, 288, 9506, 202, 1388, 1906, 67, 409, 273, 394, 3555, 5621, 202, 202, 19558, 30264, 273, 394, 2407, 5621, 3639, 3555, 5970, 67, 1734, 273, 446, 31, 202, 202, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2510, 1832, 288, 9506, 202, 1388, 1906, 67, 409, 273, 394, 3555, 5621, 202, 202, 19558, 30264, 273, 394, 2407, 5621, 3639, 3555, 5970, 67, 1734, 273, 446, 31, 202, 202, 6...
protected AbstractID3v2FrameBody readBody(String identifier, RandomAccessFile file, int frameSize)
protected AbstractID3v2FrameBody readBody(String identifier, ByteBuffer byteBuffer, int frameSize)
protected AbstractID3v2FrameBody readBody(String identifier, RandomAccessFile file, int frameSize) throws InvalidFrameException, IOException { /* Use reflection to map id to frame body, which makes things much easier * to keep things up to date,although slight performance hit. */ logger.finest("Creating framebody:start"); AbstractID3v2FrameBody frameBody = null; try { Class c = Class.forName("org.jaudiotagger.tag.id3.framebody.FrameBody" + identifier); Class[] constructorParameterTypes = {((Class) Class.forName("java.io.RandomAccessFile")), Integer.TYPE }; Object[] constructorParameterValues = {file, new Integer(frameSize) }; Constructor construct = c.getConstructor(constructorParameterTypes); frameBody = (AbstractID3v2FrameBody) (construct.newInstance(constructorParameterValues)); } //No class defind for this frame type,use FrameUnsupported catch (ClassNotFoundException cex) { logger.info("Identifier not recognised:" + identifier + " using FrameBodyUnsupported"); frameBody = new FrameBodyUnsupported(file, frameSize); } //An error has occurred during frame instantiation find out real exception and then throw frame away if invalid catch (InvocationTargetException ite) { ite.getCause().printStackTrace(); logger.severe("invocation target exception:"+ite.getCause().getMessage()); throw new InvalidFrameException(ite.getCause().getMessage()); } //No Method should not happen catch (NoSuchMethodException sme) { logger.severe("no such method:"+sme.getMessage()); throw new RuntimeException(sme.getMessage()); } //Instantiate Interfrace/Abstract should not happen catch (InstantiationException ie) { logger.severe("instantiation exception:"+ie.getMessage()); throw new RuntimeException(ie.getMessage()); } //Private Constructor shouild not happen catch (IllegalAccessException iae) { logger.severe("illegal access exception :"+iae.getMessage()); throw new RuntimeException(iae.getMessage()); } logger.finest("Created framebody:end" + frameBody.getIdentifier()); return frameBody; }
40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/AbstractID3v2Frame.java/buggy/src/org/jaudiotagger/tag/id3/AbstractID3v2Frame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4115, 734, 23, 90, 22, 3219, 2250, 855, 2250, 12, 780, 2756, 16, 7400, 21734, 16, 509, 2623, 1225, 13, 3639, 1216, 1962, 3219, 503, 16, 1860, 565, 288, 3639, 1748, 2672, 5463, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4115, 734, 23, 90, 22, 3219, 2250, 855, 2250, 12, 780, 2756, 16, 7400, 21734, 16, 509, 2623, 1225, 13, 3639, 1216, 1962, 3219, 503, 16, 1860, 565, 288, 3639, 1748, 2672, 5463, 358...
new OutputStreamWriter( new FileOutputStream(logFileName), logXmlEncoding));
new OutputStreamWriter(new FileOutputStream(logFileName), logXmlEncoding));
protected void writeLogFile(Element logElement) throws CruiseControlException { BufferedWriter logWriter = null; try { debug("Writing log file [" + logFileName + "]"); XMLOutputter outputter = null; if (logXmlEncoding == null) { outputter = new XMLOutputter(" ", true); logWriter = new BufferedWriter( new OutputStreamWriter( new FileOutputStream(logFileName))); } else { outputter = new XMLOutputter(" ", true, logXmlEncoding); logWriter = new BufferedWriter( new OutputStreamWriter( new FileOutputStream(logFileName), logXmlEncoding)); } outputter.output(new Document(logElement), logWriter); logWriter = null; } catch (IOException e) { throw new CruiseControlException(e); } finally { logWriter = null; } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/fd158509e4f6aa010e583ca0516756a1c2532047/Project.java/buggy/main/src/net/sourceforge/cruisecontrol/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 19103, 12, 1046, 613, 1046, 13, 3639, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 22490, 613, 2289, 273, 446, 31, 3639, 775, 288, 5411, 1198, 2932, 18835, 613, 585, 8247,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 19103, 12, 1046, 613, 1046, 13, 3639, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 22490, 613, 2289, 273, 446, 31, 3639, 775, 288, 5411, 1198, 2932, 18835, 613, 585, 8247,...
public static boolean isAssignable(Class cls, Class toClass) { if (toClass == null) {
public static boolean isAssignable(Class[] classArray, Class[] toClassArray) { if (ArrayUtils.isSameLength(classArray, toClassArray) == false) {
public static boolean isAssignable(Class cls, Class toClass) { if (toClass == null) { return false; } // have to check for null, as isAssignableFrom doesn't if (cls == null) { return !(toClass.isPrimitive()); } if (cls.equals(toClass)) { return true; } if (cls.isPrimitive()) { if (toClass.isPrimitive() == false) { return false; } if (Integer.TYPE.equals(cls)) { return Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Long.TYPE.equals(cls)) { return Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Boolean.TYPE.equals(cls)) { return false; } if (Double.TYPE.equals(cls)) { return false; } if (Float.TYPE.equals(cls)) { return Double.TYPE.equals(toClass); } if (Character.TYPE.equals(cls)) { return Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Short.TYPE.equals(cls)) { return Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } if (Byte.TYPE.equals(cls)) { return Short.TYPE.equals(toClass) || Integer.TYPE.equals(toClass) || Long.TYPE.equals(toClass) || Float.TYPE.equals(toClass) || Double.TYPE.equals(toClass); } // should never get here return false; } return toClass.isAssignableFrom(cls); }
7060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7060/0eeb7c904c84d44bab0101d568e22bfa8177c34c/ClassUtils.java/buggy/src/java/org/apache/commons/lang/ClassUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 8540, 12, 797, 2028, 16, 1659, 358, 797, 13, 288, 3639, 309, 261, 869, 797, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 368, 1240, 358, 866, 364, 446, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 8540, 12, 797, 2028, 16, 1659, 358, 797, 13, 288, 3639, 309, 261, 869, 797, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 368, 1240, 358, 866, 364, 446, 16,...
if ( !isEditModeEnabled()) {
if (!isEditModeEnabled()) {
public void eraseTargetFeedback(Request request) { if ( !isEditModeEnabled()) { return; } super.eraseTargetFeedback(request); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/ConnectionEditPart.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/ConnectionEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 22038, 2326, 15888, 12, 691, 590, 13, 288, 202, 202, 430, 261, 401, 291, 4666, 2309, 1526, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 9565, 18, 264, 448, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 22038, 2326, 15888, 12, 691, 590, 13, 288, 202, 202, 430, 261, 401, 291, 4666, 2309, 1526, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 9565, 18, 264, 448, ...
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1].split("\\swhere\\s"); sb.append(second[0]); if (second.length == 1) { return sb.toString(); } else if (second.length == 2) { // where sb.append("\n where "); sb.append(second[1]); return sb.toString(); } } throw new InternalException("Assumptions about the number of " + "\"froms\" and \"wheres\" in sql query failed. "); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/eb1076fdd0ffc70d64cfdf60fab495fd57a62014/OmeroInterceptor.java/clean/components/server/src/ome/tools/hibernate/OmeroInterceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 780, 265, 7543, 3406, 12, 780, 4669, 15329, 202, 202, 759, 1937, 202, 202, 780, 20460, 70, 33, 2704, 21253, 5621, 202, 202, 780, 8526, 3645, 33, 4669, 18, 4939, 2932, 1695, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 265, 7543, 3406, 12, 780, 4669, 15329, 202, 202, 759, 1937, 202, 202, 780, 20460, 70, 33, 2704, 21253, 5621, 202, 202, 780, 8526, 3645, 33, 4669, 18, 4939, 2932, 1695, 87...
buffer.append("
buffer.append("
private void writeHeader(OutputStream writer, String fileName){ writeBOM(writer); Calendar c = Calendar.getInstance(); StringBuffer buffer =new StringBuffer(); buffer.append("// ***************************************************************************" + LINESEP); buffer.append("// *" + LINESEP); buffer.append("// * Copyright (C) "+c.get(Calendar.YEAR) +" International Business Machines" + LINESEP); buffer.append("// * Corporation and others. All Rights Reserved."+LINESEP); buffer.append("// * Tool: com.ibm.icu.dev.tool.cldr.LDML2ICUConverter.java" + LINESEP); // buffer.append("// * Date & Time: " + c.get(Calendar.YEAR) + "/" + (c.get(Calendar.MONTH)+1) + "/" + c.get(Calendar.DAY_OF_MONTH) + " " + c.get(Calendar.HOUR_OF_DAY) + COLON + c.get(Calendar.MINUTE)+ LINESEP);// String ver = LDMLUtilities.getCVSVersion(fileName);// if(ver==null) {// ver = "";// } else {// ver = " v" + ver;// } buffer.append("// * Source File: " + fileName + LINESEP); buffer.append("// *" + LINESEP); buffer.append("// ***************************************************************************" + LINESEP); writeLine(writer, buffer.toString()); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/90d357a7612a0fee1860528005a32007392efc2a/LDML2ICUConverter.java/clean/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 1864, 12, 4632, 2633, 16, 514, 3968, 15329, 3639, 1045, 38, 1872, 12, 6299, 1769, 3639, 5542, 276, 273, 5542, 18, 588, 1442, 5621, 3639, 6674, 1613, 273, 2704, 6674, 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, 377, 3238, 918, 1045, 1864, 12, 4632, 2633, 16, 514, 3968, 15329, 3639, 1045, 38, 1872, 12, 6299, 1769, 3639, 5542, 276, 273, 5542, 18, 588, 1442, 5621, 3639, 6674, 1613, 273, 2704, 6674, 5621...
throw runtime.newLoadError("No such file to load -- " + file);
throw runtime.newLoadError("no such file to load -- " + file);
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + suffixes[i]; break; } } if(library == null) { library = findLibrary(file); if(library != null) { loadName = file; } } library = tryLoadExtension(library,file); if (library == null) { throw runtime.newLoadError("No such file to load -- " + file); } try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file); } }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13706, 2563, 12, 780, 585, 13, 288, 3639, 18694, 5313, 273, 446, 31, 3639, 514, 1262, 461, 273, 585, 31, 7734, 368, 5083, 4671, 16, 775, 18333, 3639, 364, 261, 474, 277, 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, 918, 13706, 2563, 12, 780, 585, 13, 288, 3639, 18694, 5313, 273, 446, 31, 3639, 514, 1262, 461, 273, 585, 31, 7734, 368, 5083, 4671, 16, 775, 18333, 3639, 364, 261, 474, 277, 273,...
fsBackup = formatspecifier;
public FormatSpecifierDialog(Shell shellParent, FormatSpecifier formatspecifier, String sTitle) { super(); if (formatspecifier == null) { this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier(); fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier); } else { this.formatspecifier = (FormatSpecifier) EcoreUtil.copy(formatspecifier); fsBackup = formatspecifier; } shell = new Shell(shellParent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; shell.setLayout(new FillLayout()); placeComponents(); shell.setText("Format Specifier - " + sTitle); shell.pack(); UIHelper.centerOnScreen(shell); shell.layout(); shell.open(); while (!shell.isDisposed()) { if (!shell.getDisplay().readAndDispatch()) { shell.getDisplay().sleep(); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7793e94b4d7fab5891f226c6c937e37d85bebad8/FormatSpecifierDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4077, 21416, 6353, 12, 13220, 5972, 3054, 16, 4077, 21416, 740, 2793, 1251, 16, 514, 272, 4247, 13, 565, 288, 3639, 2240, 5621, 3639, 309, 261, 2139, 2793, 1251, 422, 446, 13, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4077, 21416, 6353, 12, 13220, 5972, 3054, 16, 4077, 21416, 740, 2793, 1251, 16, 514, 272, 4247, 13, 565, 288, 3639, 2240, 5621, 3639, 309, 261, 2139, 2793, 1251, 422, 446, 13, 3639,...
ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject());
ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject());
public void visitForNode(ForNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // XXX ruby.getBlock().flags &= ~RubyBlock.BLOCK_D_SCOPE; Block tmpBlock = ArgsUtil.beginCallArgs(ruby); IRubyObject recv = eval(iVisited.getIterNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); ruby.setSourceFile(file); ruby.setSourceLine(line); result = recv.getInternalClass().call(recv.toRubyObject(), "each", null, 0); return; } catch (RetryException rExcptn) { } } } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { result = ruby.getNil(); } finally { ruby.getIterStack().pop(); ruby.getBlock().pop(); } }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/8db42974495981011f558bcce15e2dfc28681a76/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 31058, 12, 31058, 277, 30019, 13, 288, 3639, 22155, 18, 588, 1768, 2624, 7675, 6206, 12, 77, 30019, 18, 588, 1537, 907, 9334, 394, 18176, 1305, 12, 77, 30019, 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, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 31058, 12, 31058, 277, 30019, 13, 288, 3639, 22155, 18, 588, 1768, 2624, 7675, 6206, 12, 77, 30019, 18, 588, 1537, 907, 9334, 394, 18176, 1305, 12, 77, 30019, 18, 588, ...
}
}
private void loadInnerPageIfPossible(final String srcAttribute) { if( srcAttribute.length() != 0 ) { URL url = null; try { url = getPage().getFullyQualifiedUrl(srcAttribute); } catch( final MalformedURLException e ) { getLog().error("Bad url in src attribute of " + getTagName() + ": url=["+srcAttribute+"]", e); } try { getPage().getWebClient().getPage(enclosedWindow_, new WebRequestSettings(url)); } catch (final FailingHttpStatusCodeException e){ // do nothing } catch( final IOException e ) { getLog().error("IOException when getting content for " + getTagName() + ": url=["+url.toExternalForm()+"]", e); } } }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/c602d6915fe48c87f864c84196b346afe16003bd/BaseFrame.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/BaseFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 2857, 1964, 2047, 13576, 12, 6385, 514, 1705, 1499, 13, 288, 3639, 309, 12, 1705, 1499, 18, 2469, 1435, 480, 374, 262, 288, 5411, 1976, 880, 273, 446, 31, 5411, 775, 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, 3238, 918, 1262, 2857, 1964, 2047, 13576, 12, 6385, 514, 1705, 1499, 13, 288, 3639, 309, 12, 1705, 1499, 18, 2469, 1435, 480, 374, 262, 288, 5411, 1976, 880, 273, 446, 31, 5411, 775, 28...
public String getFileListFunction() { // if mode is "listonly", only the list will be shown boolean listonly = "listonly".equals(getSettings().getExplorerMode()); // if mode is "projectview", all changed files in that project will be shown boolean projectView = "projectview".equals(getSettings().getExplorerMode()); // if mode is "vfslinks", the vfs links to a target file will be shown boolean vfslinkView = "vfslink".equals(getSettings().getExplorerMode()); String currentFolder = getSettings().getExplorerFolder(); if (vfslinkView) { boolean found = true; try { getCms().readFileHeader(currentFolder); } catch (CmsException e) { // file was not readable found = false; } if (found) { // file / folder exists and is readable currentFolder = "vfslink:" + currentFolder; } else { // show the root folder in case of an error and reset the state currentFolder = "/"; vfslinkView = false; } } long check = getCms().getFileSystemFolderChanges(); boolean newTreePlease = getSettings().getExplorerChecksum() != check; // get the currentFolder Id CmsUUID currentFolderId = CmsUUID.getNullUUID(); if (! vfslinkView) { try { currentFolderId = (getCms().readFolder(currentFolder)).getId(); } catch (CmsException e) { // we use the null UUID } } // start creating content StringBuffer content = new StringBuffer(2048); content.append("function initialize() {\n"); if (listonly) { content.append("top.openfolderMethod='openthisfolderflat';\n"); } else { content.append("top.openfolderMethod='openthisfolder';\n"); } if (projectView || vfslinkView) { content.append("top.projectView=true;\n"); } else { content.append("top.projectView=false;\n"); } // show kontext if (getSettings().getExplorerContext()) { content.append("top.showKon=true;\n"); } else { content.append("top.showKon=false;\n"); } // the flaturl if (getSettings().getExplorerFlaturl() != null) { content.append("top.flaturl='"); content.append(getSettings().getExplorerFlaturl()); content.append("';\n"); } else if (!listonly) { content.append("top.flaturl='';\n"); } // the help_url content.append("top.head.helpUrl='explorer/index.html';\n"); // the project content.append("top.setProject("); content.append(getSettings().getProject()); content.append(");\n"); // the onlineProject content.append("top.setOnlineProject("); content.append(I_CmsConstants.C_PROJECT_ONLINE_ID); content.append(");\n"); // set the checksum for the tree content.append("top.setChecksum("); content.append(check); content.append(");\n"); // set the writeAccess for the current Folder boolean writeAccess = true; if (! vfslinkView) { try { CmsFolder test = getCms().readFolder(currentFolder); writeAccess = test.getProjectId() == getSettings().getProject(); } catch (CmsException e) { writeAccess = false; } } content.append("top.enableNewButton("); content.append(writeAccess); content.append(");\n"); // the folder content.append("top.setDirectory(\""); content.append(currentFolderId.hashCode()); content.append("\",\""); content.append(currentFolder); content.append("\");\n"); content.append("top.rD();\n\n"); // now check which filelist colums we want to show int preferences = getDefaultPreferences(); boolean showTitle = (preferences & I_CmsWpConstants.C_FILELIST_TITLE) > 0; boolean showPermissions = (preferences & I_CmsWpConstants.C_FILELIST_PERMISSIONS) > 0; boolean showSize = (preferences & I_CmsWpConstants.C_FILELIST_SIZE) > 0; boolean showDateLastModified = (preferences & I_CmsWpConstants.C_FILELIST_DATE_LASTMODIFIED) > 0; boolean showUserWhoLastModified = (preferences & I_CmsWpConstants.C_FILELIST_USER_LASTMODIFIED) > 0; boolean showDateCreated = (preferences & I_CmsWpConstants.C_FILELIST_DATE_CREATED) > 0; boolean showUserWhoCreated = (preferences & I_CmsWpConstants.C_FILELIST_USER_CREATED) > 0; // now get the entries for the filelist Vector resources = getRessources(getSettings().getExplorerMode(), getSettings().getExplorerFolder()); // if a folder contains to much entrys we split them to pages of C_ENTRYS_PER_PAGE length int startat = 0; int stopat = resources.size(); int selectedPage = 1; int numberOfPages = 0; int maxEntrys = C_ENTRYS_PER_PAGE; if (!(listonly || projectView || vfslinkView)) { selectedPage = getSettings().getExplorerPage(); if (stopat > maxEntrys) { // we have to splitt numberOfPages = (stopat / maxEntrys) + 1; if (selectedPage > numberOfPages) { // the user has changed the folder and then selected a page for the old folder selectedPage = 1; } startat = (selectedPage - 1) * maxEntrys; if ((startat + maxEntrys) < stopat) { stopat = startat + maxEntrys; } } } for (int i = startat; i < stopat; i++) { CmsResource res = (CmsResource)resources.elementAt(i); CmsLock lock = getCms().getLock(res); String path = getCms().readAbsolutePath(res); content.append("top.aF("); // position 1: name content.append("\""); content.append(res.getResourceName()); content.append("\","); // position 2: path if (projectView || vfslinkView) { content.append("\""); // TODO: Check this (won't work with new repository) content.append(path); content.append("\","); } else { //is taken from top.setDirectory content.append("\"\","); } // position 3: title if (showTitle) { String title = ""; try { title = getCms().readProperty(getCms().readAbsolutePath(res), I_CmsConstants.C_PROPERTY_TITLE); } catch (CmsException e) { } if (title == null) { title = ""; } content.append("\""); if (title != null) content.append(Encoder.escapeHtml(title)); content.append("\","); } else { content.append("\"\","); } // position 4: type content.append(res.getType()); content.append(","); // position 5: link type content.append(res.isHardLink() ? 0 : 1); content.append(","); // position 6: size if (res.isFolder() || (!showSize)) { content.append("\"\","); } else { content.append(res.getLength()); content.append(","); } // position 7: state content.append(res.getState()); content.append(","); // position 8: project //int projectId = lock.isNullLock() ? res.getProjectId() : lock.getProjectId(); int projectId = lock.isNullLock() ? getCms().getRequestContext().currentProject().getId() : lock.getProjectId(); content.append(projectId); content.append(","); // position 9: date of last modification if (showDateLastModified) { content.append("\""); content.append(getSettings().getMessages().getDateTime(res.getDateLastModified())); content.append("\","); } else { content.append("\"\","); } // position 10: user who last modified the resource if (showUserWhoLastModified) { content.append("\""); try { content.append(getCms().readUser(res.getUserLastModified()).getName()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } else { content.append("\"\","); } // position 11: date of creation if (showDateCreated) { content.append("\""); content.append(getSettings().getMessages().getDateTime(res.getDateCreated())); content.append("\","); } else { content.append("\"\","); } // position 12 : user who created the resource if (showUserWhoCreated) { content.append("\""); try { content.append(getCms().readUser(res.getUserCreated()).getName()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } else { content.append("\"\","); } // position 13: permissions if (showPermissions) { content.append("\""); try { content.append(getCms().getPermissions(getCms().readAbsolutePath(res)).getPermissionString()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } else { content.append("\"\","); } // position 14: locked by if (lock.isNullLock()) { content.append("\"\","); } else { content.append("\""); try { //content.append(getCms().lockedBy(res).getName()); content.append(getCms().readUser(lock.getUserId()).getName()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } //int lockedInProject = lock.isNullLock() ? res.getProjectId() : lock.getProjectId(); int lockedInProject = lock.isNullLock() ? getCms().getRequestContext().currentProject().getId() : lock.getProjectId(); String lockedInProjectName = ""; try { lockedInProjectName = getCms().readProject(lockedInProject).getName(); } catch (CmsException exc) { // ignore the exception - this is an old project so ignore it } // position 15: name of project where resource belongs to content.append("\""); content.append(lockedInProjectName); content.append("\","); // position 16: id of project where resource belongs to content.append(lockedInProject); content.append(");\n"); } // now the tree, only if changed if (newTreePlease && (!(listonly || vfslinkView))) { content.append("\ntop.rT();\n"); List tree = null; try { tree = getCms().getFolderTree(); } catch (CmsException e) { tree = new Vector(); } int startAt = 1; CmsUUID parentId = CmsUUID.getNullUUID(); boolean grey = false; if (CmsProject.isOnlineProject(getSettings().getProject())) { // all easy: we are in the onlineProject CmsFolder rootFolder = (CmsFolder)tree.get(0); content.append("top.aC(\""); content.append(rootFolder.getId().hashCode()); content.append("\", "); content.append("\""); content.append(getSettings().getMessages().key("title.rootfolder")); content.append("\", \""); content.append(rootFolder.getParentId().hashCode()); content.append("\", false);\n"); for (int i = startAt; i < tree.size(); i++) { CmsFolder folder = (CmsFolder)tree.get(i); content.append("top.aC(\""); // id content.append(folder.getId().hashCode()); content.append("\", "); // name content.append("\""); content.append(folder.getResourceName()); content.append("\", \""); // parentId content.append(folder.getParentId().hashCode()); content.append("\", false);\n"); } } else { // offline Project Hashtable idMixer = new Hashtable(); CmsFolder rootFolder = (CmsFolder)tree.get(0); String folderToIgnore = null; if (! CmsProject.isOnlineProject(rootFolder.getProjectId())) { //startAt = 2; grey = false; /* CmsFolder folder = (CmsFolder)tree.get(1); CmsUUID id = rootFolder.getId(); idMixer.put(folder, id); */ } else { grey = true; } content.append("top.aC(\""); content.append(rootFolder.getId().hashCode()); content.append("\", "); content.append("\""); content.append(getSettings().getMessages().key("title.rootfolder")); content.append("\", \""); content.append(rootFolder.getParentId().hashCode()); content.append("\", "); content.append(grey); content.append(");\n"); for (int i = startAt; i < tree.size(); i++) { CmsFolder folder = (CmsFolder)tree.get(i); if ((folder.getState() == I_CmsConstants.C_STATE_DELETED) || (getCms().readAbsolutePath(folder).equals(folderToIgnore))) { // if the folder is deleted - ignore it and the following online res folderToIgnore = getCms().readAbsolutePath(folder); } else { if (! CmsProject.isOnlineProject(folder.getProjectId())) { grey = false; parentId = folder.getParentId(); try { // the next res is the same res in the online-project: ignore it! if (getCms().readAbsolutePath(folder).equals(getCms().readAbsolutePath((CmsFolder)tree.get(i + 1)))) { i++; idMixer.put(tree.get(i), folder.getId()); } } catch (IndexOutOfBoundsException exc) { // ignore the exception, this was the last resource } } else { grey = true; parentId = folder.getParentId(); if (idMixer.containsKey(parentId)) { parentId = (CmsUUID) idMixer.get(parentId); } } content.append("top.aC(\""); // id content.append(folder.getId().hashCode()); content.append("\", "); // name content.append("\""); content.append(folder.getResourceName()); content.append("\", \""); // parentId content.append(parentId.hashCode()); content.append("\", "); content.append(grey); content.append(");\n"); } } } } if (listonly || projectView) { // only show the filelist content.append("top.dUL(document);\n"); } else { // update all frames content.append("top.dU(document,"); content.append(numberOfPages); content.append(","); content.append(selectedPage); content.append("); \n"); } content.append("}\n"); return content.toString(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/008b108d0d073c21517bc13c99df468417369491/CmsExplorer.java/buggy/src/org/opencms/workplace/CmsExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6034, 682, 2083, 1435, 288, 7734, 368, 309, 1965, 353, 315, 1098, 3700, 3113, 1338, 326, 666, 903, 506, 12188, 3639, 1250, 666, 3700, 273, 315, 1098, 3700, 9654, 14963, 12, 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, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6034, 682, 2083, 1435, 288, 7734, 368, 309, 1965, 353, 315, 1098, 3700, 3113, 1338, 326, 666, 903, 506, 12188, 3639, 1250, 666, 3700, 273, 315, 1098, 3700, 9654, 14963, 12, 588...
this.scope = scope;
this.scope = helper.getScope( ); this.helper = helper;
public JSResultSetRow( ExprManager exprManager, IResultIterator odiResult, Scriptable scope ) { this.exprManager = exprManager; this.odiResult = odiResult; this.currRowIndex = -1; this.valueCacheMap = new HashMap( ); this.scope = scope; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bc30645dcde6329911aefabdae3765e33bd95d0e/JSResultSetRow.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSResultSetRow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6756, 13198, 1999, 12, 8074, 1318, 3065, 1318, 16, 467, 1253, 3198, 320, 3211, 1253, 16, 1082, 202, 3651, 429, 2146, 262, 202, 95, 202, 202, 2211, 18, 8638, 1318, 273, 3065, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6756, 13198, 1999, 12, 8074, 1318, 3065, 1318, 16, 467, 1253, 3198, 320, 3211, 1253, 16, 1082, 202, 3651, 429, 2146, 262, 202, 95, 202, 202, 2211, 18, 8638, 1318, 273, 3065, 1...
store_queries_[0] = new DMDServiceQuery(); store_queries_[0].setMIMEType("audio/x-mp3"); store_queries_[0].setIOMethod("File"); store_queries_[0].setIOMode(DMDHandler.ALL_IO);
store_offers_[0] = new DMDServiceOffer(CLASS_NAME, "audio/x-mp3", null, "File", DMDHandler.ALL_IO);
public DinomedaProvider() { store_queries_ = new DMDServiceQuery[STORES]; store_queries_[0] = new DMDServiceQuery(); store_queries_[0].setMIMEType("audio/x-mp3"); store_queries_[0].setIOMethod("File"); store_queries_[0].setIOMode(DMDHandler.ALL_IO); store_queries_[1] = new DMDServiceQuery(); store_queries_[1].setMIMEType("application/x-pdf"); store_queries_[1].setIOMethod("File"); store_queries_[1].setIOMode(DMDHandler.ALL_IO); store_queries_[2] = new DMDServiceQuery(); store_queries_[2].setMIMEType("image/png"); store_queries_[2].setIOMethod("File"); store_queries_[2].setIOMode(DMDHandler.ALL_IO); store_queries_[3] = new DMDServiceQuery(); store_queries_[3].setMIMEType("text/html"); store_queries_[3].setIOMethod("File"); store_queries_[3].setIOMode(DMDHandler.ALL_IO); mapper_queries_ = new DMDServiceQuery[MAPPERS]; mapper_queries_[0] = new DMDServiceQuery(); mapper_queries_[0].setMIMEType("audio/x-mp3"); mapper_queries_[0].setNameMapping("Dinomeda"); mapper_queries_[1] = new DMDServiceQuery(); mapper_queries_[1].setMIMEType("application/x-pdf"); mapper_queries_[1].setNameMapping("Dinomeda"); mapper_queries_[2] = new DMDServiceQuery(); mapper_queries_[2].setMIMEType("image/png"); mapper_queries_[2].setNameMapping("Dinomeda"); mapper_queries_[3] = new DMDServiceQuery(); mapper_queries_[3].setMIMEType("text/html"); mapper_queries_[3].setNameMapping("Dinomeda"); }
10978 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10978/6adbdd9f27a670b125d33c9530877d38b3588c46/DinomedaProvider.java/clean/dinomeda/src/org/dinopolis/utils/metadata/dinomeda/DinomedaProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 463, 267, 362, 329, 69, 2249, 1435, 225, 288, 565, 1707, 67, 13748, 67, 273, 394, 463, 6188, 1179, 1138, 63, 31487, 7031, 15533, 3639, 1707, 67, 13748, 67, 63, 20, 65, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 463, 267, 362, 329, 69, 2249, 1435, 225, 288, 565, 1707, 67, 13748, 67, 273, 394, 463, 6188, 1179, 1138, 63, 31487, 7031, 15533, 3639, 1707, 67, 13748, 67, 63, 20, 65, 273, 394, ...
" [pc: 0, pc: 13] local: args index: 0 type: java/lang/String[]\n" +
" [pc: 0, pc: 13] local: args index: 0 type: java.lang.String[]\n" +
public void test013() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " boolean b = false;\n" + " if (false\n" + " || !b) { \n" + " System.out.println();\n" + " }\n" + " }\n" + "}"; String expectedOutput = " /* Method descriptor #15 ([Ljava/lang/String;)V */\n" + " public static void main(String[] args);\n" + " /* Stack: 1, Locals: 2 */\n" + " Code attribute:\n" + " 0 iconst_0\n" + " 1 istore_1\n" + " 2 iload_1\n" + " 3 ifne 12\n" + " 6 getstatic #21 <Field java.lang.System#out java.io.PrintStream>\n" + " 9 invokevirtual #26 <Method java.io.PrintStream#println() void>\n" + " 12 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 3]\n" + " [pc: 2, line: 5]\n" + " [pc: 6, line: 6]\n" + " [pc: 12, line: 8]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 13] local: args index: 0 type: java/lang/String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n"; checkClassFile("A", source, expectedOutput); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/9ba8652d2cebf2117416af5e39a70e172556117b/ClassFileReaderTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1611, 23, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1611, 23, 1435, 288, 202, 202, 780, 1084, 273, 1082, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 1082, 202, 6, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1...
stateImage[slot] = inactive[which[slot]];
stateImage[slot] = inactive[which[slot]];
private void setState(int slot, int newState, boolean updateAfter) { //if (inactive == null) return; state[slot] = newState; switch (newState) { case INACTIVE: stateImage[slot] = inactive[which[slot]]; break; case ACTIVE: stateImage[slot] = active[which[slot]]; break; case ROLLOVER: stateImage[slot] = rollover[which[slot]]; message(title[which[slot]]); break; } if (updateAfter) repaint(); // changed for swing from update(); }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/800b63ae0b47a6e0154949678e9b0acedc631880/PdeEditorButtons.java/clean/app/PdeEditorButtons.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 12947, 12, 474, 4694, 16, 509, 15907, 16, 1250, 1089, 4436, 13, 288, 565, 368, 430, 261, 27366, 422, 446, 13, 327, 31, 565, 919, 63, 14194, 65, 273, 15907, 31, 565, 1620, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 12947, 12, 474, 4694, 16, 509, 15907, 16, 1250, 1089, 4436, 13, 288, 565, 368, 430, 261, 27366, 422, 446, 13, 327, 31, 565, 919, 63, 14194, 65, 273, 15907, 31, 565, 1620, 2...
fBuiltInTypes.put(LONG, longDV);
types.put(LONG, longDV);
void createBuiltInTypes() { // all schema simple type names final String ANYSIMPLETYPE = "anySimpleType"; final String ANYURI = "anyURI"; final String BASE64BINARY = "base64Binary"; final String BOOLEAN = "boolean"; final String BYTE = "byte"; final String DATE = "date"; final String DATETIME = "dateTime"; final String DAY = "gDay"; final String DECIMAL = "decimal"; final String DOUBLE = "double"; final String DURATION = "duration"; final String ENTITY = "ENTITY"; final String ENTITIES = "ENTITIES"; final String FLOAT = "float"; final String HEXBINARY = "hexBinary"; final String ID = "ID"; final String IDREF = "IDREF"; final String IDREFS = "IDREFS"; final String INT = "int"; final String INTEGER = "integer"; final String LONG = "long"; final String NAME = "Name"; final String NEGATIVEINTEGER = "negativeInteger"; final String MONTH = "gMonth"; final String MONTHDAY = "gMonthDay"; final String NCNAME = "NCName"; final String NMTOKEN = "NMTOKEN"; final String NMTOKENS = "NMTOKENS"; final String LANGUAGE = "language"; final String NONNEGATIVEINTEGER= "nonNegativeInteger"; final String NONPOSITIVEINTEGER= "nonPositiveInteger"; final String NORMALIZEDSTRING = "normalizedString"; final String NOTATION = "NOTATION"; final String POSITIVEINTEGER = "positiveInteger"; final String QNAME = "QName"; final String SHORT = "short"; final String STRING = "string"; final String TIME = "time"; final String TOKEN = "token"; final String UNSIGNEDBYTE = "unsignedByte"; final String UNSIGNEDINT = "unsignedInt"; final String UNSIGNEDLONG = "unsignedLong"; final String UNSIGNEDSHORT = "unsignedShort"; final String YEAR = "gYear"; final String YEARMONTH = "gYearMonth"; final XSFacets facets = new XSFacets(); fBuiltInTypes = new Hashtable(); //REVISIT: passing "anyType" here. XSSimpleTypeDecl anySimpleType = XSSimpleTypeDecl.fAnySimpleType; fBuiltInTypes.put(ANYSIMPLETYPE, anySimpleType); XSSimpleTypeDecl stringDV = new XSSimpleTypeDecl(anySimpleType, STRING, XSSimpleTypeDecl.DV_STRING, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false ); fBuiltInTypes.put(STRING, stringDV); fBuiltInTypes.put(BOOLEAN, new XSSimpleTypeDecl(anySimpleType, STRING, XSSimpleTypeDecl.DV_BOOLEAN, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_FINITE, false)); XSSimpleTypeDecl decimalDV = new XSSimpleTypeDecl(anySimpleType, DECIMAL, XSSimpleTypeDecl.DV_DECIMAL, XSSimpleType.ORDERED_TOTAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, true); fBuiltInTypes.put(DECIMAL, decimalDV); fBuiltInTypes.put(ANYURI, new XSSimpleTypeDecl(anySimpleType, ANYURI, XSSimpleTypeDecl.DV_ANYURI, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(BASE64BINARY, new XSSimpleTypeDecl(anySimpleType, BASE64BINARY, XSSimpleTypeDecl.DV_BASE64BINARY, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(DURATION, new XSSimpleTypeDecl(anySimpleType, DURATION, XSSimpleTypeDecl.DV_DURATION, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(DATETIME, new XSSimpleTypeDecl(anySimpleType, DATETIME, XSSimpleTypeDecl.DV_DATETIME, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(TIME, new XSSimpleTypeDecl(anySimpleType, TIME, XSSimpleTypeDecl.DV_TIME, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(DATE, new XSSimpleTypeDecl(anySimpleType, DATE, XSSimpleTypeDecl.DV_DATE, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(YEARMONTH, new XSSimpleTypeDecl(anySimpleType, YEARMONTH, XSSimpleTypeDecl.DV_GYEARMONTH, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(YEAR, new XSSimpleTypeDecl(anySimpleType, YEAR, XSSimpleTypeDecl.DV_GYEAR, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(MONTHDAY, new XSSimpleTypeDecl(anySimpleType, MONTHDAY, XSSimpleTypeDecl.DV_GMONTHDAY, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(DAY, new XSSimpleTypeDecl(anySimpleType, DAY, XSSimpleTypeDecl.DV_GDAY, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(MONTH, new XSSimpleTypeDecl(anySimpleType, MONTH, XSSimpleTypeDecl.DV_GMONTH, XSSimpleType.ORDERED_PARTIAL, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); facets.fractionDigits = 0; XSSimpleTypeDecl integerDV = new XSSimpleTypeDecl(decimalDV, INTEGER, URI_SCHEMAFORSCHEMA, (short)0); integerDV.applyFacets1(facets , XSSimpleType.FACET_FRACTIONDIGITS, (short)0); fBuiltInTypes.put(INTEGER, integerDV); facets.maxInclusive = "0"; XSSimpleTypeDecl nonPositiveDV = new XSSimpleTypeDecl(integerDV, NONPOSITIVEINTEGER, URI_SCHEMAFORSCHEMA, (short)0); nonPositiveDV.applyFacets1(facets , XSSimpleType.FACET_MAXINCLUSIVE, (short)0); fBuiltInTypes.put(NONPOSITIVEINTEGER, nonPositiveDV); facets.maxInclusive = "-1"; XSSimpleTypeDecl negativeDV = new XSSimpleTypeDecl(integerDV, NEGATIVEINTEGER, URI_SCHEMAFORSCHEMA, (short)0); negativeDV.applyFacets1(facets , XSSimpleType.FACET_MAXINCLUSIVE, (short)0); fBuiltInTypes.put(NEGATIVEINTEGER, negativeDV); facets.maxInclusive = "9223372036854775807"; facets.minInclusive = "-9223372036854775808"; XSSimpleTypeDecl longDV = new XSSimpleTypeDecl(integerDV, LONG, URI_SCHEMAFORSCHEMA, (short)0); longDV.applyFacets1(facets , (short)(XSSimpleType.FACET_MAXINCLUSIVE | XSSimpleType.FACET_MININCLUSIVE), (short)0 ); fBuiltInTypes.put(LONG, longDV); facets.maxInclusive = "2147483647"; facets.minInclusive = "-2147483648"; XSSimpleTypeDecl intDV = new XSSimpleTypeDecl(longDV, INT, URI_SCHEMAFORSCHEMA, (short)0); intDV.applyFacets1(facets, (short)(XSSimpleType.FACET_MAXINCLUSIVE | XSSimpleType.FACET_MININCLUSIVE), (short)0 ); fBuiltInTypes.put(INT, intDV); facets.maxInclusive = "32767"; facets.minInclusive = "-32768"; XSSimpleTypeDecl shortDV = new XSSimpleTypeDecl(intDV, SHORT , URI_SCHEMAFORSCHEMA, (short)0); shortDV.applyFacets1(facets, (short)(XSSimpleType.FACET_MAXINCLUSIVE | XSSimpleType.FACET_MININCLUSIVE), (short)0 ); fBuiltInTypes.put(SHORT, shortDV); facets.maxInclusive = "127"; facets.minInclusive = "-128"; XSSimpleTypeDecl byteDV = new XSSimpleTypeDecl(shortDV, BYTE , URI_SCHEMAFORSCHEMA, (short)0); byteDV.applyFacets1(facets, (short)(XSSimpleType.FACET_MAXINCLUSIVE | XSSimpleType.FACET_MININCLUSIVE), (short)0 ); fBuiltInTypes.put(BYTE, byteDV); facets.minInclusive = "0" ; XSSimpleTypeDecl nonNegativeDV = new XSSimpleTypeDecl(integerDV, NONNEGATIVEINTEGER , URI_SCHEMAFORSCHEMA, (short)0); nonNegativeDV.applyFacets1(facets, XSSimpleType.FACET_MININCLUSIVE, (short)0 ); fBuiltInTypes.put(NONNEGATIVEINTEGER, nonNegativeDV); facets.maxInclusive = "18446744073709551615" ; XSSimpleTypeDecl unsignedLongDV = new XSSimpleTypeDecl(nonNegativeDV, UNSIGNEDLONG , URI_SCHEMAFORSCHEMA, (short)0); unsignedLongDV.applyFacets1(facets, XSSimpleType.FACET_MAXINCLUSIVE, (short)0 ); fBuiltInTypes.put(UNSIGNEDLONG, unsignedLongDV); facets.maxInclusive = "4294967295" ; XSSimpleTypeDecl unsignedIntDV = new XSSimpleTypeDecl(unsignedLongDV, UNSIGNEDINT , URI_SCHEMAFORSCHEMA, (short)0); unsignedIntDV.applyFacets1(facets, XSSimpleType.FACET_MAXINCLUSIVE, (short)0 ); fBuiltInTypes.put(UNSIGNEDINT, unsignedIntDV); facets.maxInclusive = "65535" ; XSSimpleTypeDecl unsignedShortDV = new XSSimpleTypeDecl(unsignedIntDV, UNSIGNEDSHORT , URI_SCHEMAFORSCHEMA, (short)0); unsignedShortDV.applyFacets1(facets, XSSimpleType.FACET_MAXINCLUSIVE, (short)0 ); fBuiltInTypes.put(UNSIGNEDSHORT, unsignedShortDV); facets.maxInclusive = "255" ; XSSimpleTypeDecl unsignedByteDV = new XSSimpleTypeDecl(unsignedShortDV, UNSIGNEDBYTE , URI_SCHEMAFORSCHEMA, (short)0); unsignedByteDV.applyFacets1(facets, XSSimpleType.FACET_MAXINCLUSIVE, (short)0 ); fBuiltInTypes.put(UNSIGNEDBYTE, unsignedByteDV); facets.minInclusive = "1" ; XSSimpleTypeDecl positiveIntegerDV = new XSSimpleTypeDecl(nonNegativeDV, POSITIVEINTEGER , URI_SCHEMAFORSCHEMA, (short)0); positiveIntegerDV.applyFacets1(facets, XSSimpleType.FACET_MININCLUSIVE, (short)0 ); fBuiltInTypes.put(POSITIVEINTEGER, positiveIntegerDV); fBuiltInTypes.put(FLOAT, new XSSimpleTypeDecl(anySimpleType, FLOAT, XSSimpleTypeDecl.DV_FLOAT, XSSimpleType.ORDERED_TOTAL, true, XSSimpleType.CARDINALITY_FINITE, true)); fBuiltInTypes.put(DOUBLE, new XSSimpleTypeDecl(anySimpleType, DOUBLE, XSSimpleTypeDecl.DV_DOUBLE, XSSimpleType.ORDERED_TOTAL, true, XSSimpleType.CARDINALITY_FINITE, true)); fBuiltInTypes.put(HEXBINARY, new XSSimpleTypeDecl(anySimpleType, HEXBINARY, XSSimpleTypeDecl.DV_HEXBINARY, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(NOTATION, new XSSimpleTypeDecl(anySimpleType, NOTATION, XSSimpleTypeDecl.DV_NOTATION, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); facets.whiteSpace = XSSimpleType.WS_REPLACE; XSSimpleTypeDecl normalizedDV = new XSSimpleTypeDecl(stringDV, NORMALIZEDSTRING , URI_SCHEMAFORSCHEMA, (short)0); normalizedDV.applyFacets1(facets, XSSimpleType.FACET_WHITESPACE, (short)0 ); fBuiltInTypes.put(NORMALIZEDSTRING, normalizedDV); facets.whiteSpace = XSSimpleType.WS_COLLAPSE; XSSimpleTypeDecl tokenDV = new XSSimpleTypeDecl(normalizedDV, TOKEN , URI_SCHEMAFORSCHEMA, (short)0); tokenDV.applyFacets1(facets, XSSimpleType.FACET_WHITESPACE, (short)0 ); fBuiltInTypes.put(TOKEN, tokenDV); facets.whiteSpace = XSSimpleType.WS_COLLAPSE; facets.pattern = "([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]+)(-[a-zA-Z]+)*"; XSSimpleTypeDecl languageDV = new XSSimpleTypeDecl(tokenDV, LANGUAGE , URI_SCHEMAFORSCHEMA, (short)0); languageDV.applyFacets1(facets, (short)(XSSimpleType.FACET_WHITESPACE | XSSimpleType.FACET_PATTERN) ,(short)0); fBuiltInTypes.put(LANGUAGE, languageDV); facets.whiteSpace = XSSimpleType.WS_COLLAPSE; XSSimpleTypeDecl nameDV = new XSSimpleTypeDecl(tokenDV, NAME , URI_SCHEMAFORSCHEMA, (short)0); nameDV.applyFacets1(facets, XSSimpleType.FACET_WHITESPACE, (short)0, XSSimpleTypeDecl.SPECIAL_TOKEN_NAME); fBuiltInTypes.put(NAME, nameDV); facets.whiteSpace = XSSimpleType.WS_COLLAPSE; XSSimpleTypeDecl ncnameDV = new XSSimpleTypeDecl(nameDV, NCNAME , URI_SCHEMAFORSCHEMA, (short)0) ; ncnameDV.applyFacets1(facets, XSSimpleType.FACET_WHITESPACE, (short)0, XSSimpleTypeDecl.SPECIAL_TOKEN_NCNAME); fBuiltInTypes.put(NCNAME, ncnameDV); fBuiltInTypes.put(QNAME, new XSSimpleTypeDecl(anySimpleType, QNAME, XSSimpleTypeDecl.DV_QNAME, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false)); fBuiltInTypes.put(ID, new XSSimpleTypeDecl(ncnameDV, ID, XSSimpleTypeDecl.DV_ID, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false )); XSSimpleTypeDecl idrefDV = new XSSimpleTypeDecl(ncnameDV, IDREF , XSSimpleTypeDecl.DV_IDREF, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false); fBuiltInTypes.put(IDREF, idrefDV); facets.minLength = 1; XSSimpleTypeDecl tempDV = new XSSimpleTypeDecl(null, URI_SCHEMAFORSCHEMA, (short)0, idrefDV); XSSimpleTypeDecl idrefsDV = new XSSimpleTypeDecl(tempDV, IDREFS, URI_SCHEMAFORSCHEMA, (short)0); idrefsDV.applyFacets1(facets, XSSimpleType.FACET_MINLENGTH, (short)0); fBuiltInTypes.put(IDREFS, idrefsDV); XSSimpleTypeDecl entityDV = new XSSimpleTypeDecl(ncnameDV, ENTITY , XSSimpleTypeDecl.DV_ENTITY, XSSimpleType.ORDERED_FALSE, false, XSSimpleType.CARDINALITY_COUNTABLY_INFINITE, false); fBuiltInTypes.put(ENTITY, entityDV); facets.minLength = 1; tempDV = new XSSimpleTypeDecl(null, URI_SCHEMAFORSCHEMA, (short)0, entityDV); XSSimpleTypeDecl entitiesDV = new XSSimpleTypeDecl(tempDV, ENTITIES, URI_SCHEMAFORSCHEMA, (short)0); entitiesDV.applyFacets1(facets, XSSimpleType.FACET_MINLENGTH, (short)0); fBuiltInTypes.put(ENTITIES, entitiesDV); facets.whiteSpace = XSSimpleType.WS_COLLAPSE; XSSimpleTypeDecl nmtokenDV = new XSSimpleTypeDecl(tokenDV, NMTOKEN, URI_SCHEMAFORSCHEMA, (short)0); nmtokenDV.applyFacets1(facets, XSSimpleType.FACET_WHITESPACE, (short)0, XSSimpleTypeDecl.SPECIAL_TOKEN_NMTOKEN); fBuiltInTypes.put(NMTOKEN, nmtokenDV); facets.minLength = 1; tempDV = new XSSimpleTypeDecl(null, URI_SCHEMAFORSCHEMA, (short)0, nmtokenDV); XSSimpleTypeDecl nmtokensDV = new XSSimpleTypeDecl(tempDV, NMTOKENS, URI_SCHEMAFORSCHEMA, (short)0); nmtokensDV.applyFacets1(facets, XSSimpleType.FACET_MINLENGTH, (short)0); fBuiltInTypes.put(NMTOKENS, nmtokensDV); }//createBuiltInTypes()
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/8878baf15277284e47b284a45edff4668430692e/SchemaDVFactoryImpl.java/clean/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 752, 16409, 382, 2016, 1435, 288, 3639, 368, 777, 1963, 4143, 618, 1257, 3639, 727, 514, 16743, 31669, 900, 2399, 377, 273, 315, 2273, 5784, 559, 14432, 3639, 727, 514, 16743, 3098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 16409, 382, 2016, 1435, 288, 3639, 368, 777, 1963, 4143, 618, 1257, 3639, 727, 514, 16743, 31669, 900, 2399, 377, 273, 315, 2273, 5784, 559, 14432, 3639, 727, 514, 16743, 3098, ...
public er.bugtracker.Component component() { return (er.bugtracker.Component)storedValueForKey("component");
public Component component() { return (Component)storedValueForKey("component");
public er.bugtracker.Component component() { return (er.bugtracker.Component)storedValueForKey("component"); }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/e2f6d086a1ca4f9bae07e93767b99fcb6f6fa2ac/_TestItem.java/clean/Common/Applications/BugTracker/Frameworks/BTBusinessLogic/Sources/er/bugtracker/_TestItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6445, 18, 925, 16543, 18, 1841, 1794, 1435, 288, 3639, 327, 261, 264, 18, 925, 16543, 18, 1841, 13, 22601, 620, 19759, 2932, 4652, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6445, 18, 925, 16543, 18, 1841, 1794, 1435, 288, 3639, 327, 261, 264, 18, 925, 16543, 18, 1841, 13, 22601, 620, 19759, 2932, 4652, 8863, 565, 289, 2, -100, -100, -100, -100, -100, ...
if (disableIO) { Session.this.disableIO(); }
public void receiveRPY(Message message) { try { if (disableIO) { Session.this.disableIO(); } Element topElement = processMessage(message); // is this RPY a <greeting> String elementName = topElement.getTagName(); if (elementName == null) { throw new BEEPException(ERR_MALFORMED_XML_MSG); // is this RPY a <profile> } else if (elementName.equals("profile")) { try { String uri = topElement.getAttribute("uri"); if (uri == null) { throw new BEEPException("Malformed profile"); } String encoding = topElement.getAttribute("encoding"); if (encoding == null) { encoding = Constants.ENCODING_NONE; } // see if there is data and then turn it into a message Node dataNode = topElement.getFirstChild(); String data = null; if (dataNode != null) { data = dataNode.getNodeValue(); if (data.length() > MAX_PCDATA_SIZE) { throw new BEEPException("Element's PCDATA " + "exceeds the " + "maximum size"); } } channel.setEncoding(encoding); channel.setProfile(uri); channel.setStartData(data); // set the state channel.setState(Channel.STATE_OK); channels.put(channel.getNumberAsString(), channel); /** * @todo something with data */ // release the block waiting for the channel // to start or close synchronized (this) { this.notify(); } // I'm not sure why this is being done. if (TuningProfile.isTuningProfile(uri)) { Log.logEntry(Log.SEV_DEBUG, CORE, "Disabling this I/O thread"); Session.this.disableIO(); } } catch (Exception x) { throw new BEEPException(x.getMessage()); } } else { throw new BEEPException(ERR_UNKNOWN_OPERATION_ELEMENT_MSG); } } catch (BEEPException e) { terminate("Problem with RPY: " + e.getMessage()); } }
11902 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11902/ec0bb015b8710a43b12a0230262e65a59578ad13/Session.java/clean/src/org/beepcore/beep/core/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 6798, 54, 16235, 12, 1079, 883, 13, 3639, 288, 5411, 775, 288, 7734, 309, 261, 8394, 4294, 13, 288, 10792, 3877, 18, 2211, 18, 8394, 4294, 5621, 7734, 289, 7734, 3010, 1760, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6798, 54, 16235, 12, 1079, 883, 13, 3639, 288, 5411, 775, 288, 7734, 309, 261, 8394, 4294, 13, 288, 10792, 3877, 18, 2211, 18, 8394, 4294, 5621, 7734, 289, 7734, 3010, 1760, ...
event.text = "";
event.text = "";
void doBackspace() { Event event = new Event();event.text = ""; if (selection.x != selection.y) { event.start = selection.x; event.end = selection.y; sendKeyEvent(event); } else if (caretOffset > 0) { int line = content.getLineAtOffset(caretOffset); int lineOffset = content.getOffsetAtLine(line); if (caretOffset == lineOffset) { lineOffset = content.getOffsetAtLine(line - 1); event.start = lineOffset + content.getLine(line - 1).length(); event.end = caretOffset; } else { event.start = caretOffset - 1; event.end = caretOffset; } sendKeyEvent(event); }}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/aade523ef1dc5fd1c84ac8f836346b4b6063d6ae/StyledText.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 741, 2711, 2981, 1435, 288, 202, 1133, 871, 273, 394, 2587, 5621, 2575, 18, 955, 273, 1408, 31, 202, 430, 261, 10705, 18, 92, 480, 4421, 18, 93, 13, 288, 202, 202, 2575, 18, 1937, 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, 918, 741, 2711, 2981, 1435, 288, 202, 1133, 871, 273, 394, 2587, 5621, 2575, 18, 955, 273, 1408, 31, 202, 430, 261, 10705, 18, 92, 480, 4421, 18, 93, 13, 288, 202, 202, 2575, 18, 1937, 273...
if (type == Node.PRE_INC || type == Node.POST_INC) {
if ((incrDecrMask & Node.DECR_FLAG) == 0) {
public static Object elemIncrDecr(Object obj, Object index, Scriptable scope, int type) { Object value = getElem(obj, index, scope); if (value == Undefined.instance) return value; boolean post = (type == Node.POST_INC || type == Node.POST_DEC); double number; if (value instanceof Number) { number = ((Number)value).doubleValue(); } else { number = toNumber(value); if (post) { // convert result to number value = new Double(number); } } if (type == Node.PRE_INC || type == Node.POST_INC) { ++number; } else { --number; } Number result = new Double(number); setElem(obj, index, result, scope); if (post) { return value; } else { return result; } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/7bdde7c0fc43a86feb9c8ba45689d5c166af147d/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 3659, 382, 3353, 1799, 86, 12, 921, 1081, 16, 1033, 770, 16, 4766, 1377, 22780, 2146, 16, 509, 618, 13, 565, 288, 3639, 1033, 460, 273, 4774, 3269, 12, 2603, 16, 770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3659, 382, 3353, 1799, 86, 12, 921, 1081, 16, 1033, 770, 16, 4766, 1377, 22780, 2146, 16, 509, 618, 13, 565, 288, 3639, 1033, 460, 273, 4774, 3269, 12, 2603, 16, 770, ...
fail("should throw UnsupportedEncodingException");
fail("should throw SecurityException");
public void test_ConstructorLjava_lang_StringLjava_lang_String() throws IOException { Formatter f = null; try { f = new Formatter((String) null, Charset.defaultCharset().name()); fail("should throw NullPointerException"); } catch (NullPointerException e1) { // expected } try { f = new Formatter("notexist", null); fail("should throw NullPointerException"); } catch (NullPointerException e2) { // expected } f = new Formatter("notexist", Charset.defaultCharset().name()); assertEquals(f.locale(), Locale.getDefault()); f.close(); try { f = new Formatter("notexist", "ISO 1111-1"); fail("should throw UnsupportedEncodingException"); } catch (UnsupportedEncodingException e1) { // expected } f = new Formatter(fileWithContent.getPath(), "UTF-16BE"); assertEquals(0, fileWithContent.length()); f.close(); try { f = new Formatter(readOnly.getPath(), "UTF-16BE"); fail("should throw FileNotFoundException"); } catch (FileNotFoundException e) { // expected } SecurityManager oldsm = System.getSecurityManager(); try { System.setSecurityManager(new MockSecurityManager()); f = new Formatter(secret.getPath(), "UTF-16BE"); fail("should throw UnsupportedEncodingException"); } catch (SecurityException se) { // expected } finally { System.setSecurityManager(oldsm); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/237eac70f2970bc83ef1674f1b8a991f130e72ab/FormatterTest.java/clean/modules/luni/src/test/java/tests/api/java/util/FormatterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 4936, 67, 780, 21159, 67, 4936, 67, 780, 1435, 1082, 202, 15069, 1860, 288, 202, 202, 5074, 284, 273, 446, 31, 202, 202, 698, 288, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 4936, 67, 780, 21159, 67, 4936, 67, 780, 1435, 1082, 202, 15069, 1860, 288, 202, 202, 5074, 284, 273, 446, 31, 202, 202, 698, 288, 1082, 202, ...
myBuffer[myPos] = (byte) b;
myBuffer[myPos] = b;
private void unread(int b) throws IOException { myPos++; if (myPos >= myBuffer.length) throw new IOException("Push back buffer is full"); myBuffer[myPos] = (byte) b; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0efdfaf75b9b2d2471dd76eb7cd89c140ab8231d/LineReader.java/clean/util/src/com/intellij/util/text/LineReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 19541, 12, 474, 324, 13, 1216, 1860, 288, 565, 3399, 1616, 9904, 31, 565, 309, 261, 4811, 1616, 1545, 3399, 1892, 18, 2469, 13, 1377, 604, 394, 1860, 2932, 7621, 1473, 1613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 19541, 12, 474, 324, 13, 1216, 1860, 288, 565, 3399, 1616, 9904, 31, 565, 309, 261, 4811, 1616, 1545, 3399, 1892, 18, 2469, 13, 1377, 604, 394, 1860, 2932, 7621, 1473, 1613, ...
if (TreeUtil.skipElementsBack(child, ElementType.WHITE_SPACE_OR_COMMENT_BIT_SET) == null) { return ChildRole.PRECEDING_COMMENT; } else { return ChildRole.NONE; }
return ChildRole.NONE;
public int getChildRole(ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaTokenType.DOC_COMMENT || i == JavaDocElementType.DOC_COMMENT) { return getChildRole(child, ChildRole.DOC_COMMENT); } else if (i == JavaTokenType.C_STYLE_COMMENT || i == JavaTokenType.END_OF_LINE_COMMENT) { if (TreeUtil.skipElementsBack(child, ElementType.WHITE_SPACE_OR_COMMENT_BIT_SET) == null) { return ChildRole.PRECEDING_COMMENT; } else { return ChildRole.NONE; } } else if (i == JavaElementType.MODIFIER_LIST) { return ChildRole.MODIFIER_LIST; } else if (i == JavaElementType.TYPE) { return getChildRole(child, ChildRole.TYPE); } else if (i == JavaTokenType.IDENTIFIER) { return getChildRole(child, ChildRole.NAME); } else if (i == JavaTokenType.EQ) { return getChildRole(child, ChildRole.INITIALIZER_EQ); } else if (i == JavaTokenType.SEMICOLON) { return getChildRole(child, ChildRole.CLOSING_SEMICOLON); } else { if (ElementType.EXPRESSION_BIT_SET.isInSet(child.getElementType())) { return ChildRole.INITIALIZER; } return ChildRole.NONE; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/984ae8c4e331e8880490078c1eb957c430b9337a/FieldElement.java/clean/source/com/intellij/psi/impl/source/tree/java/FieldElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8154, 2996, 12, 9053, 907, 1151, 13, 288, 565, 2018, 18, 11231, 5510, 12, 3624, 18, 588, 2471, 3054, 1435, 422, 333, 1769, 565, 467, 17481, 277, 273, 1151, 18, 588, 17481, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8154, 2996, 12, 9053, 907, 1151, 13, 288, 565, 2018, 18, 11231, 5510, 12, 3624, 18, 588, 2471, 3054, 1435, 422, 333, 1769, 565, 467, 17481, 277, 273, 1151, 18, 588, 17481, 56...
RubyString newString = newString(getValue()); return newString.swapcase_bang();
RubyString newString = newString(getValue()); IRubyObject swappedString = newString.swapcase_bang(); if (swappedString.isNil() == true) { return newString; } return (RubyString) swappedString;
public RubyString swapcase() { RubyString newString = newString(getValue()); return newString.swapcase_bang(); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 780, 7720, 3593, 1435, 288, 202, 202, 54, 10340, 780, 394, 780, 273, 394, 780, 12, 24805, 10663, 202, 202, 2463, 394, 780, 18, 22270, 3593, 67, 70, 539, 5621, 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, 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, 19817, 780, 7720, 3593, 1435, 288, 202, 202, 54, 10340, 780, 394, 780, 273, 394, 780, 12, 24805, 10663, 202, 202, 2463, 394, 780, 18, 22270, 3593, 67, 70, 539, 5621, 202, 97, ...
{ selectionMode = mode; }
{ selectionMode = mode; }
public void setSelectionMode(int mode) { selectionMode = mode; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/DefaultTreeSelectionModel.java/buggy/libraries/javalib/javax/swing/tree/DefaultTreeSelectionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 6233, 2309, 12, 474, 1965, 13, 225, 288, 565, 4421, 2309, 273, 1965, 31, 225, 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...
[ 1, 1, 1, 1, 1, 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, 282, 1071, 918, 444, 6233, 2309, 12, 474, 1965, 13, 225, 288, 565, 4421, 2309, 273, 1965, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Logger.error(this, "Unknown: "+state);
Logger.error(this, "Unknown: "+state, new Exception("debug"));
public void onSuccess(ClientPutState state) { Logger.minor(this, "onSuccess("+state+")"); synchronized(this) { if(finished) return; if(state == sfi) { Logger.minor(this, "Splitfile insert succeeded"); splitInsertSuccess = true; } else if(state == metadataPutter) { Logger.minor(this, "Metadata insert succeeded"); metaInsertSuccess = true; } else { Logger.error(this, "Unknown: "+state); } if(splitInsertSuccess && metaInsertSuccess) { Logger.minor(this, "Both succeeded"); finished = true; } else return; } cb.onSuccess(this); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/21208e342489c2a0c49f6715dd86892930851371/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 265, 4510, 2932, 15, 2019, 9078, 2225, 1769, 1082, 202, 22043, 12, 2211, 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, 3196, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 265, 4510, 2932, 15, 2019, 9078, 2225, 1769, 1082, 202, 22043, 12, 2211, 13, 28...
if ((-32768 <= inlinedValue) && (inlinedValue <= 32767)) { this.sipush(inlinedValue); return; } this.ldc(inlinedValue);
public void generateInlinedValue(int inlinedValue) { switch (inlinedValue) { case -1 : this.iconst_m1(); break; case 0 : this.iconst_0(); break; case 1 : this.iconst_1(); break; case 2 : this.iconst_2(); break; case 3 : this.iconst_3(); break; case 4 : this.iconst_4(); break; case 5 : this.iconst_5(); break; default : if ((-128 <= inlinedValue) && (inlinedValue <= 127)) { this.bipush((byte) inlinedValue); return; } if ((-32768 <= inlinedValue) && (inlinedValue <= 32767)) { this.sipush(inlinedValue); return; } this.ldc(inlinedValue); }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/48c062bdb9d6c67e0ab7ada621b2e78159b00da7/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 2103, 382, 22316, 620, 12, 474, 316, 22316, 620, 13, 288, 202, 9610, 261, 267, 22316, 620, 13, 288, 202, 202, 3593, 300, 21, 294, 1082, 202, 2211, 18, 3950, 334, 67, 81, 21, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2103, 382, 22316, 620, 12, 474, 316, 22316, 620, 13, 288, 202, 9610, 261, 267, 22316, 620, 13, 288, 202, 202, 3593, 300, 21, 294, 1082, 202, 2211, 18, 3950, 334, 67, 81, 21, 562...
public BugReport getBug(int id) throws IOException, MalformedURLException, LoginException { BufferedReader in = null; try { // create a new input stream for getting the bug String url = bugzillaUrl + "/show_bug.cgi?id=" + id; // allow the use to only see the operations that they can do to a bug if they have // their user name and password in the preferences if(BugzillaPreferencePage.getUserName() != null && !BugzillaPreferencePage.getUserName().equals("") && BugzillaPreferencePage.getPassword() != null && !BugzillaPreferencePage.getPassword().equals("")) { /* * The UnsupportedEncodingException exception for * URLEncoder.encode() should not be thrown, since every * implementation of the Java platform is required to support * the standard charset "UTF-8" */ url += "&GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(BugzillaPreferencePage.getUserName(), "UTF-8") + "&Bugzilla_password=" + URLEncoder.encode(BugzillaPreferencePage.getPassword(), "UTF-8"); } URL bugUrl = new URL(url); URLConnection cntx = BugzillaPlugin.getDefault().getUrlConnection(bugUrl); if(cntx != null){ InputStream input = cntx.getInputStream(); if(input != null) { in = new BufferedReader(new InputStreamReader(input)); // get the actual bug fron the server and return it BugReport bug = BugParser.parseBug(in, id, BugzillaPlugin.getDefault().getServerName(), BugzillaPlugin.getDefault().isServerCompatability218(), BugzillaPreferencePage.getUserName(), BugzillaPreferencePage.getPassword()); return bug; } } // TODO handle the error return null; } catch (MalformedURLException e) { throw e; } catch (IOException e) { throw e; } catch(LoginException e) { throw e; } catch(Exception e) { // throw an exception if there is a problem reading the bug from the server// e.printStackTrace();// throw new IOException(e.getMessage()); BugzillaPlugin.log(new Status( IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Problem getting report", e)); return null; } finally { try { if(in != null) in.close(); } catch(IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID,IStatus.ERROR,"Problem closing the stream", e)); } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/de4b42dba8b1b8b770b413f9f9d24bdc30fccd38/BugzillaRepository.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 4820, 2882, 637, 12, 474, 612, 13, 1216, 1860, 16, 20710, 16, 11744, 503, 202, 95, 202, 202, 17947, 2514, 316, 273, 446, 31, 202, 202, 698, 288, 25083, 202, 759, 752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 4820, 2882, 637, 12, 474, 612, 13, 1216, 1860, 16, 20710, 16, 11744, 503, 202, 95, 202, 202, 17947, 2514, 316, 273, 446, 31, 202, 202, 698, 288, 25083, 202, 759, 752, ...
else
} else {
double classifyFoldCV(Instances fold, int [] fs) throws Exception { int i; int ruleCount = 0; int numFold = fold.numInstances(); int numCl = m_theInstances.classAttribute().numValues(); double [][] class_distribs = new double [numFold][numCl]; double [] instA = new double [fs.length]; double [] normDist; hashKey thekey; double acc = 0.0; int classI = m_theInstances.classIndex(); Instance inst; if (m_classIsNominal) normDist = new double [numCl]; else normDist = new double [2]; // first *remove* instances for (i=0;i<numFold;i++) { inst = fold.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); thekey = new hashKey(instA); if ((class_distribs[i] = (double [])m_entries.get(thekey)) == null) { System.out.println("Shouldnt get here!"); System.exit(1); } else { if (m_classIsNominal) class_distribs[i][(int)inst.classValue()] -= inst.weight(); else { class_distribs[i][0] -= (inst.classValue() * inst.weight()); class_distribs[i][1] -= inst.weight(); } ruleCount++; } } // now classify instances for (i=0;i<numFold;i++) { inst = fold.instance(i); System.arraycopy(class_distribs[i],0,normDist,0,normDist.length); if (m_classIsNominal) { boolean ok = false; for (int j=0;j<normDist.length;j++) if (!Utils.eq(normDist[j],0.0)) { ok = true; break; } if (ok) { Utils.normalize(normDist); if (Utils.maxIndex(normDist) == inst.classValue()) acc += inst.weight(); } else if (inst.classValue() == m_majority) acc += inst.weight(); } else { if (Utils.eq(normDist[1],0.0)) acc += ((inst.weight() * (m_majority - inst.classValue())) * (inst.weight() * (m_majority - inst.classValue()))); else { double t = (normDist[0] / normDist[1]); acc += ((inst.weight() * (t - inst.classValue())) * (inst.weight() * (t - inst.classValue()))); } } } // now re-insert instances for (i=0;i<numFold;i++) { inst = fold.instance(i); if (m_classIsNominal) { class_distribs[i][(int)inst.classValue()] += inst.weight(); } else { class_distribs[i][0] += (inst.classValue() * inst.weight()); class_distribs[i][1] += inst.weight(); } } return acc; }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/5a67514c4d5c4fc3fa7a8c909b19b0a2e5c0c206/DecisionTable.java/buggy/trunk/weka/classifiers/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1645, 19974, 15592, 22007, 12, 5361, 11590, 16, 509, 5378, 2662, 13, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 509, 1720, 1380, 273, 374, 31, 565, 509, 818, 15592, 273, 11590, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1645, 19974, 15592, 22007, 12, 5361, 11590, 16, 509, 5378, 2662, 13, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 509, 1720, 1380, 273, 374, 31, 565, 509, 818, 15592, 273, 11590, 18, 2...
break;
continue Loop;
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/34e9dc56b7553f450b9015c8f4135584139686cf/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701...
app.start();
stub.startApplet();
public void run() { app.start(); }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/3ea62068168d1d5e148e98e6c40ca7f4f9a004b0/KJASAppletStub.java/clean/khtml/java/org/kde/kjas/server/KJASAppletStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 7168, 18, 1937, 23696, 5621, 3639, 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, 540, 1071, 918, 1086, 1435, 288, 5411, 7168, 18, 1937, 23696, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return ((flags & (ABORT | ALLBITS)) == 0);
} return (flags & (ALLBITS | ABORT | ERROR)) == 0;
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h) { int rate = -1; if ((flags & (FRAMEBITS | ALLBITS)) != 0) { rate = 0; } else if ((flags & SOMEBITS) != 0) { rate = 10; } if (rate > 0) { repaint(10, x, y, w, h); } return ((flags & (ABORT | ALLBITS)) == 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1316, 1891, 12, 2040, 3774, 16, 509, 2943, 16, 509, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 13, 288, 202, 202, 474, 4993, 273, 300, 21, 31, 202, 202, 430, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1316, 1891, 12, 2040, 3774, 16, 509, 2943, 16, 509, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 13, 288, 202, 202, 474, 4993, 273, 300, 21, 31, 202, 202, 430, 140...
return "Preference\tname="+name+" value="+value;
return "Preference["+name+"\t"+value + "]\t";
public String toString() { return "Preference\tname="+name+" value="+value; }
51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/88e385691e6268c3a24bfd1b5f36507e51f49aaa/Preference.java/buggy/ecologylab/services/messages/Preference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 202, 95, 202, 202, 2463, 315, 9624, 64, 88, 529, 1546, 15, 529, 9078, 460, 1546, 15, 1132, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 202, 95, 202, 202, 2463, 315, 9624, 64, 88, 529, 1546, 15, 529, 9078, 460, 1546, 15, 1132, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
private ImageCanvas(Composite coParent) { super(coParent, SWT.NONE); addPaintListener(this); rSize = new Rectangle(0, 0, img.getImageData().width, img.getImageData().height); }
private ImageCanvas( Composite coParent ) { super( coParent, SWT.NONE ); addPaintListener( this ); rSize = new Rectangle( 0, 0, img.getImageData( ).width, img.getImageData( ).height ); }
private ImageCanvas(Composite coParent) { super(coParent, SWT.NONE); addPaintListener(this); rSize = new Rectangle(0, 0, img.getImageData().width, img.getImageData().height); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7bbb5f8e436400ad036f258e77dafe9d7604aff3/MessageComposite.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/composites/MessageComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 3421, 12971, 12, 9400, 1825, 3054, 13, 3639, 288, 5411, 2240, 12, 2894, 3054, 16, 348, 8588, 18, 9826, 1769, 5411, 527, 12699, 2223, 12, 2211, 1769, 5411, 436, 1225, 273, 394, 13264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 3421, 12971, 12, 9400, 1825, 3054, 13, 3639, 288, 5411, 2240, 12, 2894, 3054, 16, 348, 8588, 18, 9826, 1769, 5411, 527, 12699, 2223, 12, 2211, 1769, 5411, 436, 1225, 273, 394, 13264...
protected void expandEntityRef (Node node, Node parent, Node reference){
protected final void expandEntityRef (Node node, Node parent, Node reference){
protected void expandEntityRef (Node node, Node parent, Node reference){ Node kid, next; for (kid = node.getFirstChild(); kid != null; kid = next) { next = kid.getNextSibling(); if (node.getNodeType() == Node.TEXT_NODE) { expandEntityRef(kid, parent, reference); } else { parent.insertBefore(kid, reference); } } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/d0a84b89431225b6b219791f080fd746010eb728/DOMNormalizer.java/clean/src/org/apache/xerces/dom/DOMNormalizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 918, 4542, 1943, 1957, 261, 907, 756, 16, 2029, 982, 16, 2029, 2114, 15329, 3639, 2029, 17395, 16, 1024, 31, 3639, 364, 261, 79, 350, 273, 756, 18, 588, 3759, 1763, 5621, 173...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 4542, 1943, 1957, 261, 907, 756, 16, 2029, 982, 16, 2029, 2114, 15329, 3639, 2029, 17395, 16, 1024, 31, 3639, 364, 261, 79, 350, 273, 756, 18, 588, 3759, 1763, 5621, 173...
MappedByteBuffer region;
MappedByteBuffer region = null;
public byte[] getRegion(Integer arg0, Long arg1) { errorIfNotLoaded(); MappedByteBuffer region; try { region = buffer.getRegion(arg0, arg1); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException("Unimplemented exception."); } return bufferAsByteArrayWithExceptionIfNull( region ); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/65a3b02bf58c957397c6c8ccacffb5f328940fc9/RawPixelsBean.java/clean/components/server/src/ome/services/RawPixelsBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 24289, 12, 4522, 1501, 20, 16, 3407, 1501, 21, 13, 565, 288, 3639, 555, 10288, 8835, 5621, 7734, 22806, 12242, 3020, 273, 446, 31, 3639, 775, 3639, 288, 5411, 3020, 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, 1160, 8526, 24289, 12, 4522, 1501, 20, 16, 3407, 1501, 21, 13, 565, 288, 3639, 555, 10288, 8835, 5621, 7734, 22806, 12242, 3020, 273, 446, 31, 3639, 775, 3639, 288, 5411, 3020, 273,...
partService.addPartListener(selectionService);
public WWinPartService(IWorkbenchWindow window) { selectionService = new WindowSelectionService(window); partService.addPartListener(selectionService); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/84b7a0b5d51aa090cec82d1595fe66b1b8986bef/WWinPartService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPartService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 18049, 1988, 1179, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 3639, 4421, 1179, 273, 394, 6076, 6233, 1179, 12, 5668, 1769, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 18049, 1988, 1179, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 3639, 4421, 1179, 273, 394, 6076, 6233, 1179, 12, 5668, 1769, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -10...
public static Element getElement(Element elem, String path) { List elems = getElements(elem, path); if (elems.size() == 0) return null; else return (Element) elems.get(0); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/Util.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3845, 1046, 21336, 12, 1046, 10037, 16, 780, 803, 15329, 202, 202, 682, 292, 7424, 33, 588, 3471, 12, 10037, 16, 803, 1769, 202, 202, 430, 12, 292, 7424, 18, 1467, 1435, 631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 1046, 21336, 12, 1046, 10037, 16, 780, 803, 15329, 202, 202, 682, 292, 7424, 33, 588, 3471, 12, 10037, 16, 803, 1769, 202, 202, 430, 12, 292, 7424, 18, 1467, 1435, 631, ...
this.formatter.lastLocalDeclarationSourceStart = -1;
void redoAlignment(AlignmentException e){ if (e.relativeDepth > 0) { // if exception targets a distinct context e.relativeDepth--; // record fact that current context got traversed this.currentAlignment = this.currentAlignment.enclosing; // pop currentLocation throw e; // rethrow } // reset scribe/scanner to restart at this given location this.resetAt(this.currentAlignment.location); this.scanner.resetTo(this.currentAlignment.location.inputOffset, this.scanner.eofPosition); // clean alignment chunkKind so it will think it is a new chunk again this.currentAlignment.chunkKind = 0; this.formatter.lastLocalDeclarationSourceStart = -1; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/61d2e9bd09460e9985288e8ef72cfc838f3c761c/Scribe.java/clean/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 24524, 11535, 12, 11535, 503, 425, 15329, 202, 202, 430, 261, 73, 18, 11626, 6148, 405, 374, 13, 288, 368, 309, 1520, 5774, 279, 10217, 819, 1082, 202, 73, 18, 11626, 6148, 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, 225, 202, 6459, 24524, 11535, 12, 11535, 503, 425, 15329, 202, 202, 430, 261, 73, 18, 11626, 6148, 405, 374, 13, 288, 368, 309, 1520, 5774, 279, 10217, 819, 1082, 202, 73, 18, 11626, 6148, 4...
fOwnReaders.addElement(reader);
fReaderStack.push(reader);
public String setupCurrentEntity(String name, XMLInputSource xmlInputSource, boolean literal, boolean isExternal) throws IOException, XNIException { // get information final String publicId = xmlInputSource.getPublicId(); String literalSystemId = xmlInputSource.getSystemId(); String baseSystemId = xmlInputSource.getBaseSystemId(); String encoding = xmlInputSource.getEncoding(); Boolean isBigEndian = null; boolean declaredEncoding = false; // create reader InputStream stream = null; Reader reader = xmlInputSource.getCharacterStream(); // First chance checking strict URI String expandedSystemId = expandSystemId(literalSystemId, baseSystemId, fStrictURI); if (baseSystemId == null) { baseSystemId = expandedSystemId; } if (reader == null) { stream = xmlInputSource.getByteStream(); if(stream != null && encoding != null) declaredEncoding = true; if (stream == null) { URL location = new URL(expandedSystemId); URLConnection connect = location.openConnection(); stream = connect.getInputStream(); // REVISIT: If the URLConnection has external encoding // information, we should be reading it here. It's located // in the charset parameter of Content-Type. -- mrglavas if (connect instanceof HttpURLConnection) { String redirect = connect.getURL().toString(); // E43: Check if the URL was redirected, and then // update literal and expanded system IDs if needed. if (!redirect.equals(expandedSystemId)) { literalSystemId = redirect; expandedSystemId = redirect; } } } // wrap this stream in RewindableInputStream stream = new RewindableInputStream(stream); // perform auto-detect of encoding if necessary if (encoding == null) { // read first four bytes and determine encoding final byte[] b4 = new byte[4]; int count = 0; for (; count<4; count++ ) { b4[count] = (byte)stream.read(); } if (count == 4) { Object [] encodingDesc = getEncodingName(b4, count); encoding = (String)(encodingDesc[0]); isBigEndian = (Boolean)(encodingDesc[1]); stream.reset(); int offset = 0; // Special case UTF-8 files with BOM created by Microsoft // tools. It's more efficient to consume the BOM than make // the reader perform extra checks. -Ac if (count > 2 && encoding.equals("UTF-8")) { int b0 = b4[0] & 0xFF; int b1 = b4[1] & 0xFF; int b2 = b4[2] & 0xFF; if (b0 == 0xEF && b1 == 0xBB && b2 == 0xBF) { // ignore first three bytes... stream.skip(3); } } reader = createReader(stream, encoding, isBigEndian); } else { reader = createReader(stream, encoding, isBigEndian); } } // use specified encoding else { encoding = encoding.toUpperCase(Locale.ENGLISH); // If encoding is UTF-8, consume BOM if one is present. if (encoding.equals("UTF-8")) { final int[] b3 = new int[3]; int count = 0; for (; count < 3; ++count) { b3[count] = stream.read(); if (b3[count] == -1) break; } if (count == 3) { if (b3[0] != 0xEF || b3[1] != 0xBB || b3[2] != 0xBF) { // First three bytes are not BOM, so reset. stream.reset(); } } else { stream.reset(); } } // If encoding is UCS-4, we still need to read the first four bytes // in order to discover the byte order. else if (encoding.equals("ISO-10646-UCS-4")) { final int[] b4 = new int[4]; int count = 0; for (; count < 4; ++count) { b4[count] = stream.read(); if (b4[count] == -1) break; } stream.reset(); // Ignore unusual octet order for now. if (count == 4) { // UCS-4, big endian (1234) if (b4[0] == 0x00 && b4[1] == 0x00 && b4[2] == 0x00 && b4[3] == 0x3C) { isBigEndian = Boolean.TRUE; } // UCS-4, little endian (1234) else if (b4[0] == 0x3C && b4[1] == 0x00 && b4[2] == 0x00 && b4[3] == 0x00) { isBigEndian = Boolean.FALSE; } } } // If encoding is UCS-2, we still need to read the first four bytes // in order to discover the byte order. else if (encoding.equals("ISO-10646-UCS-2")) { final int[] b4 = new int[4]; int count = 0; for (; count < 4; ++count) { b4[count] = stream.read(); if (b4[count] == -1) break; } stream.reset(); if (count == 4) { // UCS-2, big endian if (b4[0] == 0x00 && b4[1] == 0x3C && b4[2] == 0x00 && b4[3] == 0x3F) { isBigEndian = Boolean.TRUE; } // UCS-2, little endian else if (b4[0] == 0x3C && b4[1] == 0x00 && b4[2] == 0x3F && b4[3] == 0x00) { isBigEndian = Boolean.FALSE; } } } reader = createReader(stream, encoding, isBigEndian); } // read one character at a time so we don't jump too far // ahead, converting characters from the byte stream in // the wrong encoding if (DEBUG_ENCODINGS) { System.out.println("$$$ no longer wrapping reader in OneCharReader"); } //reader = new OneCharReader(reader); } // we've seen a new Reader. put it in a list, so that // we can close it later. fOwnReaders.addElement(reader); // push entity on stack if (fCurrentEntity != null) { fEntityStack.push(fCurrentEntity); } // create entity fCurrentEntity = new ScannedEntity(name, new XMLResourceIdentifierImpl(publicId, literalSystemId, baseSystemId, expandedSystemId), stream, reader, encoding, literal, false, isExternal); fCurrentEntity.setDeclaredEncoding(declaredEncoding); fEntityScanner.setCurrentEntity(fCurrentEntity); fResourceIdentifier.setValues(publicId, literalSystemId, baseSystemId, expandedSystemId); return encoding; } //setupCurrentEntity(String, XMLInputSource, boolean, boolean): String
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/c79409ecff1e8cc01e8489bd13dfd911b959b694/XMLEntityManager.java/clean/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3875, 3935, 1943, 12, 780, 508, 16, 3167, 1210, 1830, 2025, 1210, 1830, 16, 7734, 1250, 7158, 16, 1250, 353, 6841, 13, 5411, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3875, 3935, 1943, 12, 780, 508, 16, 3167, 1210, 1830, 2025, 1210, 1830, 16, 7734, 1250, 7158, 16, 1250, 353, 6841, 13, 5411, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 368...
public SearchTerm generateSearchTerm(String searchProperty, String operationProperty, String pattern) throws java.text.ParseException { SearchTerm term = null; try { String className = Pooka.getProperty(searchProperty + ".class", ""); Class stClass = Class.forName(className); // ****** Create a StringTerm. if (stringTermClass.isAssignableFrom(stClass)) { boolean ignoreCase = Pooka.getProperty(searchProperty + ".ignoreCase", "false").equals("true"); // check for the special cases. if (className.equals("javax.mail.search.RecipientStringTerm")) { String recipientType = Pooka.getProperty(searchProperty + ".recipientType", "to"); if (recipientType.equalsIgnoreCase("to")) term = new RecipientStringTerm(javax.mail.Message.RecipientType.TO, pattern); else if (recipientType.equalsIgnoreCase("cc")) term = new RecipientStringTerm(javax.mail.Message.RecipientType.CC, pattern); else if (recipientType.equalsIgnoreCase("toorcc")) term = new OrTerm(new RecipientStringTerm(javax.mail.Message.RecipientType.CC, pattern), new RecipientStringTerm(javax.mail.Message.RecipientType.TO, pattern)); } else if (className.equals("javax.mail.search.HeaderTerm")) { term = new HeaderTerm(Pooka.getProperty(searchProperty + ".header", ""), pattern); } else { // default case for StringTerms java.lang.reflect.Constructor termConst = stClass.getConstructor(new Class[] {Class.forName("java.lang.String")}); term = (SearchTerm) termConst.newInstance(new Object[] { pattern}); } } // ********** Create a FlagTerm else if (flagTermClass.isAssignableFrom(stClass)) { term = new FlagTerm(getFlags(Pooka.getProperty(searchProperty + ".flag", "")), Pooka.getProperty(searchProperty + ".value", "true").equalsIgnoreCase("true")); } // ********** Create a DateTerm else if (dateTermClass.isAssignableFrom(stClass)) { java.util.Date compareDate = dateFormat.parse(pattern); int comparison = 0; String operationPropertyType = Pooka.getProperty(operationProperty, ""); if (operationPropertyType.equalsIgnoreCase("equals") || operationPropertyType.equalsIgnoreCase("notEquals")) comparison = DateTerm.EQ; else if (operationPropertyType.equalsIgnoreCase("before")) comparison = DateTerm.LT; else if (operationPropertyType.equalsIgnoreCase("after")) comparison = DateTerm.GT; java.lang.reflect.Constructor termConst = stClass.getConstructor(new Class[] {Integer.TYPE , Class.forName("java.util.Date")}); term = (SearchTerm) termConst.newInstance(new Object[] { new Integer(comparison), compareDate }); } // ********** Default Case, no term known. else { // default case for any term. term = (SearchTerm) stClass.newInstance(); } // *********** Handles not cases. String operationPropertyValue = Pooka.getProperty(operationProperty, ""); if (operationPropertyValue.equalsIgnoreCase("not") || operationPropertyValue.equalsIgnoreCase("notEquals")) term = new NotTerm(term); } catch (ClassNotFoundException cnfe) { showError(Pooka.getProperty("error.search.generatingSearchTerm", "Error generating SearchTerm: "), cnfe); } catch (NoSuchMethodException nsme) { showError(Pooka.getProperty("error.search.generatingSearchTerm", "Error generating SearchTerm: "), nsme); } catch (InstantiationException ie) { showError(Pooka.getProperty("error.search.generatingSearchTerm", "Error generating SearchTerm: "), ie); } catch (IllegalAccessException iae) { showError(Pooka.getProperty("error.search.generatingSearchTerm", "Error generating SearchTerm: "), iae); } catch (java.lang.reflect.InvocationTargetException ite) { showError(Pooka.getProperty("error.search.generatingSearchTerm", "Error generating SearchTerm: "), ite); } return term; }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/ff0a0cf7309fbaf4be64661e867d47999594b128/SearchTermManager.java/buggy/net/suberic/pooka/SearchTermManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2979, 4065, 7163, 2979, 4065, 12, 780, 3072, 1396, 16, 780, 7624, 1396, 16, 780, 4951, 13, 15069, 6290, 18, 955, 18, 13047, 95, 202, 2979, 4065, 6408, 33, 2011, 31, 202, 698, 95, 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, 1071, 2979, 4065, 7163, 2979, 4065, 12, 780, 3072, 1396, 16, 780, 7624, 1396, 16, 780, 4951, 13, 15069, 6290, 18, 955, 18, 13047, 95, 202, 2979, 4065, 6408, 33, 2011, 31, 202, 698, 95, 202, ...
public Unit getUnit() {
public Unit getUnit() {
public Unit getUnit() { return unit; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/234acdada6bb523025df2bf64c707be9ba3f57d5/ColumnLocation.java/clean/wicket/src/java/wicket/markup/html/tree/table/ColumnLocation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8380, 19194, 1435, 288, 202, 202, 2463, 2836, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8380, 19194, 1435, 288, 202, 202, 2463, 2836, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public void sawInt(int seen) {}
public void sawInt(int seen) { }
public void sawInt(int seen) {}
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/DismantleBytecode.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/visitclass/DismantleBytecode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 1702, 12, 474, 5881, 13, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 1702, 12, 474, 5881, 13, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
PlatformUI.getWorkbench();
PlatformUI.getWorkbench();
public WorkbenchWindow(int number) { super(null); this.number = number; // Make sure there is a workbench. This call will throw // an exception if workbench not created yet. PlatformUI.getWorkbench(); // Add contribution managers that are exposed to other plugins. addMenuBar(); addCoolBar(SWT.FLAT); addStatusLine(); actionPresentation = new ActionPresentation(this); // register with the tracker getExtensionTracker() .registerHandler( actionSetHandler, ExtensionTracker .createExtensionPointFilter(getActionSetExtensionPoint())); fireWindowOpening(); // set the shell style setShellStyle(getWindowConfigurer().getShellStyle()); // Fill the action bars fillActionBars(FILL_ALL_ACTION_BARS); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4147, 22144, 3829, 12, 474, 1300, 13, 288, 3639, 2240, 12, 2011, 1769, 3639, 333, 18, 2696, 273, 1300, 31, 3639, 368, 4344, 3071, 1915, 353, 279, 1440, 22144, 18, 1220, 745, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4147, 22144, 3829, 12, 474, 1300, 13, 288, 3639, 2240, 12, 2011, 1769, 3639, 333, 18, 2696, 273, 1300, 31, 3639, 368, 4344, 3071, 1915, 353, 279, 1440, 22144, 18, 1220, 745, 903, ...
new Class[]{PsiWhiteSpace.class});
new Class[]{ PsiWhiteSpace.class});
private static void replaceSimplifiableImplicitReturn(PsiIfStatement statement, Project project) throws IncorrectOperationException{ final PsiExpression condition = statement.getCondition(); final String conditionText = condition.getText(); final PsiElement nextStatement = PsiTreeUtil.skipSiblingsForward(statement, new Class[]{PsiWhiteSpace.class}); final String newStatement = "return " + conditionText + ';'; replaceStatement(project, newStatement, statement); nextStatement.delete(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3837c95856454e21e9059f3aa91174a1e2c65526/SimplifyIfElseIntention.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/trivialif/SimplifyIfElseIntention.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1453, 24490, 8424, 15787, 990, 12, 52, 7722, 2047, 3406, 3021, 16, 4766, 12900, 5420, 1984, 13, 5411, 1216, 657, 6746, 10602, 95, 3639, 727, 453, 7722, 2300, 2269, 273, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1453, 24490, 8424, 15787, 990, 12, 52, 7722, 2047, 3406, 3021, 16, 4766, 12900, 5420, 1984, 13, 5411, 1216, 657, 6746, 10602, 95, 3639, 727, 453, 7722, 2300, 2269, 273, 30...
catalogLocationField.setText(getDisplayValue(getNextCatalog().getCatalogLocation()));
catalogLocationField.setText(URIHelper.URIToLocation(getDisplayValue(getNextCatalog().getCatalogLocation())));
protected Control createNextCatalogPanel(Composite parent) { ModifyListener modifyListener = new ModifyListener() { public void modifyText(ModifyEvent e) { updateWidgets(e.widget); } }; Composite composite = new Composite(parent, SWT.NONE); GridData gd = new GridData(GridData.FILL_BOTH); composite.setLayoutData(gd); GridLayout layout = new GridLayout(); composite.setLayout(layout); Composite group = new Composite(composite, SWT.NONE); gd = new GridData(GridData.FILL_HORIZONTAL); group.setLayoutData(gd); layout = new GridLayout(2, false); group.setLayout(layout); Label resourceLocationLabel = new Label(group, SWT.NONE); resourceLocationLabel.setText(XMLCatalogMessages.UI_LABEL_CATALOG_URI_COLON); // filler new Label(group, SWT.NONE); catalogLocationField = new Text(group, SWT.SINGLE | SWT.BORDER); catalogLocationField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); catalogLocationField.setText(getDisplayValue(getNextCatalog().getCatalogLocation())); // WorkbenchHelp.setHelp(resourceLocationField, // XMLBuilderContextIds.XMLP_ENTRY_URI); catalogLocationField.addModifyListener(modifyListener); browseButton = createBrowseButton(group); browseButton.addSelectionListener(new DropDownSelectionListener(catalogLocationField)); errorMessageLabel = new Label(group, SWT.NONE); errorMessageLabel.setForeground(color); errorMessageLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); updateWidgets(null); return composite; }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/723abdcd8ca1d5ccc7e492d432d805680871fa56/EditCatalogEntryDialog.java/buggy/bundles/org.eclipse.wst.xml.ui/src-catalog/org/eclipse/wst/xml/ui/internal/catalog/EditCatalogEntryDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 8888, 752, 2134, 9769, 5537, 12, 9400, 982, 13, 288, 1082, 202, 11047, 2223, 5612, 2223, 273, 394, 9518, 2223, 1435, 288, 9506, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8888, 752, 2134, 9769, 5537, 12, 9400, 982, 13, 288, 1082, 202, 11047, 2223, 5612, 2223, 273, 394, 9518, 2223, 1435, 288, 9506, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425...
if(!Class.forName( "org.apache.taglibs.display.ColumnDecorator").isAssignableFrom(c)) throw new JspException("column decorator class is not a subclass of ColumnDecorator." );
if( !Class.forName( "org.apache.taglibs.display.ColumnDecorator" ).isAssignableFrom( c ) ) throw new JspException( "column decorator class is not a subclass of ColumnDecorator." );
private ColumnDecorator loadColumnDecorator(String columnDecorator) throws JspException { if (columnDecorator == null || columnDecorator.length() == 0) return null; try { Class c = Class.forName(columnDecorator); // paulsenj - removed 'jakarta' from class name if(!Class.forName( "org.apache.taglibs.display.ColumnDecorator").isAssignableFrom(c)) throw new JspException("column decorator class is not a subclass of ColumnDecorator." ); return (ColumnDecorator) c.newInstance(); } catch( Exception e ) { throw new JspException( e.toString() ); } }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/21f7757c1937c03a504c7e090499e3d1e3c7e6a0/TableTag.java/clean/_OLD/displaytag08/src/org/apache/taglibs/display/TableTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 4753, 10361, 1262, 1494, 10361, 12, 780, 1057, 10361, 13, 1216, 27485, 282, 288, 1377, 309, 261, 2827, 10361, 422, 446, 747, 1057, 10361, 18, 2469, 1435, 422, 374, 13, 3639, 327, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 4753, 10361, 1262, 1494, 10361, 12, 780, 1057, 10361, 13, 1216, 27485, 282, 288, 1377, 309, 261, 2827, 10361, 422, 446, 747, 1057, 10361, 18, 2469, 1435, 422, 374, 13, 3639, 327, 44...
if (prevState != STATE_INIT) {
if (state != STATE_INIT) {
public boolean standaloneSet() { if (prevState != STATE_INIT) { return realReader.standaloneSet(); } else { return false; } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/bf61d07d2be2da52e5ef61343e44f7e908585903/StreamWrapper.java/clean/modules/core/src/org/apache/axis2/util/StreamWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 17676, 694, 1435, 288, 3639, 309, 261, 2019, 480, 7442, 67, 12919, 13, 288, 5411, 327, 2863, 2514, 18, 10145, 12451, 694, 5621, 3639, 289, 469, 288, 5411, 327, 629, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 17676, 694, 1435, 288, 3639, 309, 261, 2019, 480, 7442, 67, 12919, 13, 288, 5411, 327, 2863, 2514, 18, 10145, 12451, 694, 5621, 3639, 289, 469, 288, 5411, 327, 629, 31, 3639, ...
if (adapter != null)
if (adapter != null) {
public IStructuredSelection convertToResources( IStructuredSelection originalSelection) { List result = new ArrayList(); Iterator elements = originalSelection.iterator(); while (elements.hasNext()) { Object currentElement = elements.next(); if (currentElement instanceof IResource) { // already a resource result.add(currentElement); } else if (currentElement instanceof IAdaptable) { Object adapter = ((IAdaptable) currentElement) .getAdapter(IResource.class); if (adapter != null) result.add(adapter); // add the converted resource } else { IAdapterManager adapterManager = Platform.getAdapterManager(); ResourceMapping mapping = (ResourceMapping) adapterManager .getAdapter(currentElement, ResourceMapping.class); ResourceTraversal[] traversals = null; try { traversals = mapping.getTraversals( ResourceMappingContext.LOCAL_CONTEXT, new NullProgressMonitor()); } catch (CoreException e) { IDEWorkbenchPlugin.log(e.getLocalizedMessage(), e .getStatus()); } if (traversals != null) { ResourceTraversal traversal = null; IResource[] resources = null; for (int i = 0; i < traversals.length; i++) { traversal = traversals[i]; resources = traversal.getResources(); if (resources != null) { for (int j = 0; j < resources.length; j++) { result.add(resources[j]); }// for }// if }// for }// if } } // all that can be converted are done, answer new selection if (result.isEmpty()) return StructuredSelection.EMPTY; return new StructuredSelection(result.toArray()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/IDESelectionConversionService.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDESelectionConversionService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 30733, 6233, 8137, 3805, 12, 1082, 202, 45, 30733, 6233, 2282, 6233, 13, 288, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 3198, 2186, 273, 2282, 6233, 18, 9838, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 30733, 6233, 8137, 3805, 12, 1082, 202, 45, 30733, 6233, 2282, 6233, 13, 288, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 3198, 2186, 273, 2282, 6233, 18, 9838, 5...
dimensions = new int[3];
dimensions = new int[5];
protected void initFile(String id) throws FormatException, IOException { currentId = id; numImages = 0; dimensions = new int[3]; // get the matching files FilePattern fp = new FilePattern(new File(id)); files = fp.getFiles(); imageCounts = new int[files.length]; // determine the total number of images and build a list of dimensions // for each file int[][] dims = new int[files.length][3]; for (int i=0; i<files.length; i++) { imageCounts[i] = reader.getImageCount(files[i]); numImages += imageCounts[i]; dims[i][0] = reader.getSizeZ(files[i]); dims[i][1] = reader.getSizeC(files[i]); dims[i][2] = reader.getSizeT(files[i]); } // determine how many varying dimensions there are boolean varyZ = false; boolean varyC = false; boolean varyT = false; for (int i=1; i<dims.length; i++) { varyZ = dims[i][0] != dims[i-1][0]; varyC = dims[i][1] != dims[i-1][1]; varyT = dims[i][2] != dims[i-1][2]; } if (!varyZ && !varyC && !varyT) { dimensions[0] = dims[0][0]; dimensions[1] = dims[0][1]; dimensions[2] = dims[0][2]; String o = getDimensionOrder(id); if (o.endsWith("Z")) dimensions[0] *= files.length; else if (o.endsWith("C")) dimensions[1] *= files.length; else dimensions[2] *= files.length; } else { for (int j=0; j<3; j++) { int max = 0; int maxIndex = 0; for (int i=0; i<dims.length; i++) { if (dims[i][j] > max) { max = dims[i][j]; maxIndex = i; } } dimensions[j] = dims[maxIndex][j]; } } }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/2df09d33bfdc966378aae0cc09cb503afb983bc2/FileStitcher.java/buggy/loci/formats/FileStitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 783, 548, 273, 612, 31, 565, 818, 8946, 273, 374, 31, 565, 5769, 273, 394, 509, 63, 25, 15533, 565, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 783, 548, 273, 612, 31, 565, 818, 8946, 273, 374, 31, 565, 5769, 273, 394, 509, 63, 25, 15533, 565, 368, ...
AST tmp1487_AST_in = (AST)_t;
AST tmp1488_AST_in = (AST)_t;
public final void procedurestate(AST _t) throws RecognitionException { AST procedurestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST p = null; AST id = null; AST __t1005 = _t; p = _t==ASTNULL ? null :(AST)_t; match(_t,PROCEDURE); _t = _t.getFirstChild(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.procedureBegin(p, id); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXTERNAL: { AST __t1007 = _t; AST tmp1481_AST_in = (AST)_t; match(_t,EXTERNAL); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1010: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CDECL_KW: { AST tmp1482_AST_in = (AST)_t; match(_t,CDECL_KW); _t = _t.getNextSibling(); break; } case PASCAL_KW: { AST tmp1483_AST_in = (AST)_t; match(_t,PASCAL_KW); _t = _t.getNextSibling(); break; } case STDCALL_KW: { AST tmp1484_AST_in = (AST)_t; match(_t,STDCALL_KW); _t = _t.getNextSibling(); break; } case ORDINAL: { AST __t1009 = _t; AST tmp1485_AST_in = (AST)_t; match(_t,ORDINAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1009; _t = _t.getNextSibling(); break; } case PERSISTENT: { AST tmp1486_AST_in = (AST)_t; match(_t,PERSISTENT); _t = _t.getNextSibling(); break; } default: { break _loop1010; } } } while (true); } _t = __t1007; _t = _t.getNextSibling(); break; } case PRIVATE: { AST tmp1487_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case IN_KW: { AST tmp1488_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1489_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EOF: { AST tmp1490_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } case END: { AST __t1012 = _t; AST tmp1491_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PROCEDURE: { AST tmp1492_AST_in = (AST)_t; match(_t,PROCEDURE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1012; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.procedureEnd(p); } _t = __t1005; _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, 12131, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 12131, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12131, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 12131, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 90...
if (secondLine.startsWith("'")) {
if (secondToken.startsWith("'")) {
protected void populateDummyTargets(IFile makefile, boolean force) throws CoreException, IOException { if (makefile == null || !makefile.exists()) return; // Found that bad boy, so let's get its contents InputStream contentStream = makefile.getContents(false); Reader in = new InputStreamReader(contentStream); StringBuffer inBuffer = null; int chunkSize = contentStream.available(); inBuffer = new StringBuffer(chunkSize); char[] readBuffer = new char[chunkSize]; int n = in.read(readBuffer); while (n > 0) { inBuffer.append(readBuffer); n = in.read(readBuffer); } contentStream.close(); // The rest of this operation is equally expensive, so // if we are doing an incremental build, only update the // files that do not have a comment if (inBuffer == null) return; String inBufferString = inBuffer.toString(); if (!force && inBufferString.startsWith(COMMENT_SYMBOL)) { return; } // Reconstruct the buffer tokens into useful chunks of dependency information Vector bufferTokens = new Vector(Arrays.asList(inBufferString.split("\\s"))); //$NON-NLS-1$ Vector deps = new Vector(bufferTokens.size()); Iterator tokenIter = bufferTokens.iterator(); while (tokenIter.hasNext()) { String token = (String)tokenIter.next(); if (token.lastIndexOf("\\") == token.length() - 1 && token.length() > 1) { //$NON-NLS-1$ // This is escaped so keep adding to the token until we find the end while (tokenIter.hasNext()) { String nextToken = (String)tokenIter.next(); token += WHITESPACE + nextToken; if (!nextToken.endsWith("\\")) { //$NON-NLS-1$ break; } } } deps.add(token); } deps.trimToSize(); // Now find the header file dependencies and make dummy targets for them boolean save = false; StringBuffer outBuffer = null; // If we are doing an incremental build, only update the files that do not have a comment String firstLine; try { firstLine = (String) deps.get(0); } catch (ArrayIndexOutOfBoundsException e) { // This makes no sense so bail return; } // Put the generated comments in the output buffer if (!firstLine.startsWith(COMMENT_SYMBOL)) { outBuffer = addDefaultHeader(); } else { outBuffer = new StringBuffer(); } // Some echo implementations misbehave and put the -n and newline in the output if (firstLine.startsWith("-n")) { //$NON-NLS-1$ // Now let's parse: // Win32 outputs -n '<path>/<file>.d <path>/' // POSIX outputs -n <path>/<file>.d <path>/ // Get the dep file name String secondLine; try { secondLine = (String) deps.get(1); } catch (ArrayIndexOutOfBoundsException e) { secondLine = new String(); } if (secondLine.startsWith("'")) { //$NON-NLS-1$ // This is the Win32 implementation of echo (MinGW without MSYS) outBuffer.append(secondLine.substring(1) + WHITESPACE); } else { outBuffer.append(secondLine + WHITESPACE); } // The relative path to the build goal comes next String thirdLine; try { thirdLine = (String) deps.get(2); } catch (ArrayIndexOutOfBoundsException e) { thirdLine = new String(); } int lastIndex = thirdLine.lastIndexOf("'"); //$NON-NLS-1$ if (lastIndex != -1) { if (lastIndex == 0) { outBuffer.append(WHITESPACE); } else { outBuffer.append(thirdLine.substring(0, lastIndex - 1)); } } else { outBuffer.append(thirdLine); } // followed by the actual dependencies String fourthLine; try { fourthLine = (String) deps.get(3); } catch (ArrayIndexOutOfBoundsException e) { fourthLine = new String(); } outBuffer.append(fourthLine + WHITESPACE); // Now do the rest try { Iterator iter = deps.listIterator(4); while (iter.hasNext()) { String nextElement = (String)iter.next(); if (nextElement.endsWith("\\")) { //$NON-NLS-1$ outBuffer.append(nextElement + NEWLINE + WHITESPACE); } else { outBuffer.append(nextElement + WHITESPACE); } } } catch (IndexOutOfBoundsException e) { } } else { outBuffer.append(inBuffer); } outBuffer.append(NEWLINE); save = true; // Dummy targets to add to the makefile Iterator dummyIter = deps.iterator(); while (dummyIter.hasNext()) { String dummy = (String)dummyIter.next(); IPath dep = new Path(dummy); String extension = dep.getFileExtension(); if (info.isHeaderFile(extension)) { /* * The formatting here is * <dummy_target>: */ outBuffer.append(dummy + COLON + NEWLINE + NEWLINE); } } // Write them out to the makefile if (save) { Util.save(outBuffer, makefile); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1f3eb70d4a037e51ad7611cfb0f142c2346af97b/GnuMakefileGenerator.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 6490, 20094, 9432, 12, 45, 812, 1221, 768, 16, 1250, 2944, 13, 1216, 30015, 16, 1860, 288, 202, 202, 430, 261, 6540, 768, 422, 446, 747, 401, 6540, 768, 18, 1808, 10756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 20094, 9432, 12, 45, 812, 1221, 768, 16, 1250, 2944, 13, 1216, 30015, 16, 1860, 288, 202, 202, 430, 261, 6540, 768, 422, 446, 747, 401, 6540, 768, 18, 1808, 10756,...
if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); }
tuple[7] = null;
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[ 0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[ 1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[ 2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[ 3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[ 4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[ 5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[ 6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[ 7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[ 8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[ 9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + " e.description " + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " )" + " left outer join pg_description e on" + " (" + " e.objoid = a.attrelid"); if (connection.haveMinimumServerVersion("7.2")) { sql.append( " and e.objsubid = a.attnum" + " and e.classoid = (select oid from pg_class where relname = \'pg_class\')"); } sql.append( " ) " + "order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/a37a041491f33325f13ae5003bcb58d662916e37/DatabaseMetaData.java/clean/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 5589, 331, 273, 394, 5589, 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, 282, 1071, 2252, 18, 4669, 18, 13198, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 5589, 331, 273, 394, 5589, 5621, 202...
IVirtualReference[] hardReferences = super.getReferences();
IVirtualReference[] hardReferences = getNonManifestReferences();
public IVirtualReference[] getReferences() { IVirtualReference[] hardReferences = super.getReferences(); List dynamicReferences = J2EEModuleVirtualComponent.getManifestReferences(this, hardReferences); IVirtualReference[] references = null; if (dynamicReferences == null) { references = hardReferences; } else { references = new IVirtualReference[hardReferences.length + dynamicReferences.size()]; System.arraycopy(hardReferences, 0, references, 0, hardReferences.length); for (int i = 0; i < dynamicReferences.size(); i++) { references[hardReferences.length + i] = (IVirtualReference) dynamicReferences.get(i); } } return references; }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/03d19ee685eb2fddd0187be5c0adcdc7e30d882f/J2EEModuleVirtualComponent.java/clean/plugins/org.eclipse.jst.j2ee/j2eecreation/org/eclipse/jst/j2ee/componentcore/J2EEModuleVirtualComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 6466, 2404, 8526, 5561, 2980, 1435, 288, 202, 202, 45, 6466, 2404, 8526, 7877, 8221, 273, 2240, 18, 588, 8221, 5621, 202, 202, 682, 5976, 8221, 273, 804, 22, 9383, 3120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 6466, 2404, 8526, 5561, 2980, 1435, 288, 202, 202, 45, 6466, 2404, 8526, 7877, 8221, 273, 2240, 18, 588, 8221, 5621, 202, 202, 682, 5976, 8221, 273, 804, 22, 9383, 3120, ...
com.sun.opengl.impl.NativeLibLoader.disableLoading();
public void run() { displayMessage("Loading native libraries"); // Load core JOGL native library loadLibrary(nativeLibDir, "jogl"); if (!nativeLibInfo.isMacOS()) { // borrowed from NativeLibLoader // Must pre-load JAWT on all non-Mac platforms to // ensure references from jogl_awt shared object // will succeed since JAWT shared object isn't in // default library path try { System.loadLibrary("jawt"); } catch (UnsatisfiedLinkError ex) { // Accessibility technologies load JAWT themselves; safe to continue // as long as JAWT is loaded by any loader if (ex.getMessage().indexOf("already loaded") == -1) { displayError("Unable to load JAWT"); throw ex; } } } // Load AWT-specific native code loadLibrary(nativeLibDir, "jogl_awt"); // disable JOGL loading from elsewhere com.sun.opengl.impl.NativeLibLoader.disableLoading(); displayMessage("Starting applet " + subAppletDisplayName); // start the subapplet startSubApplet(); }
48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/945e2ae3d234815b43f83049c9d597cb61585797/JOGLAppletLauncher.java/clean/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 2562, 1079, 2932, 10515, 6448, 14732, 8863, 1850, 368, 4444, 2922, 804, 51, 11261, 6448, 5313, 1850, 1262, 9313, 12, 13635, 5664, 1621, 16, 315, 78, 717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 1850, 2562, 1079, 2932, 10515, 6448, 14732, 8863, 1850, 368, 4444, 2922, 804, 51, 11261, 6448, 5313, 1850, 1262, 9313, 12, 13635, 5664, 1621, 16, 315, 78, 717, ...
public void getResponse(CommunityResponse response) {
public void getResponse(CommunityResponse resp) { Object response = resp.getContent();
public void getResponse(CommunityResponse response) { if (!(response instanceof Set)) { String errorString = "Unexpected community response class:" + response.getClass().getName() + " - Should be a Set"; _log.error(errorString); throw new RuntimeException(errorString); } status.value = (Set) response; s.release(); }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/6e7ccd20d84a078067104ccc7f6c3bd6d0c5ab42/LdapUserServiceImpl.java/buggy/securityservices/src/org/cougaar/core/security/acl/user/LdapUserServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6476, 12, 12136, 13352, 1064, 766, 13, 288, 202, 225, 309, 16051, 12, 2740, 1276, 1000, 3719, 288, 202, 565, 514, 555, 780, 273, 315, 7762, 19833, 766, 667, 2773, 202, 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, 225, 202, 482, 918, 6476, 12, 12136, 13352, 1064, 766, 13, 288, 202, 225, 309, 16051, 12, 2740, 1276, 1000, 3719, 288, 202, 565, 514, 555, 780, 273, 315, 7762, 19833, 766, 667, 2773, 202, 13...
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID();
public quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { quickfix.field.NoSecurityAltID value = new quickfix.field.NoSecurityAltID();
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/clean/src/java/src/quickfix/fix43/Email.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734, 336, 2279, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734, 336, 2279, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734...
AST tmp777_AST_in = (AST)_t;
AST tmp776_AST_in = (AST)_t;
public final void choosestate(AST _t) throws RecognitionException { AST choosestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST fi = null; AST __t215 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,CHOOSE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ROW: { AST tmp774_AST_in = (AST)_t; match(_t,ROW); _t = _t.getNextSibling(); break; } case FIELD: { AST tmp775_AST_in = (AST)_t; match(_t,FIELD); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { int _cnt221=0; _loop221: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t218 = _t; fi = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); fld(_t,CQ.UPDATING); _t = _retTree; if ( inputState.guessing==0 ) { action.formItem(fi); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HELP: { AST __t220 = _t; AST tmp776_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t220; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t218; _t = _t.getNextSibling(); } else { if ( _cnt221>=1 ) { break _loop221; } else {throw new NoViableAltException(_t);} } _cnt221++; } while (true); } { _loop226: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AUTORETURN: { AST tmp777_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case COLOR: { AST __t223 = _t; AST tmp778_AST_in = (AST)_t; match(_t,COLOR); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t223; _t = _t.getNextSibling(); break; } case GOON: { goonphrase(_t); _t = _retTree; break; } case KEYS: { AST __t224 = _t; AST tmp779_AST_in = (AST)_t; match(_t,KEYS); _t = _t.getFirstChild(); fld(_t,CQ.UPDATING); _t = _retTree; _t = __t224; _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp780_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case PAUSE: { AST __t225 = _t; AST tmp781_AST_in = (AST)_t; match(_t,PAUSE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t225; _t = _t.getNextSibling(); break; } default: { break _loop226; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t215; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/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, 24784, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 24784, 395, 340, 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, 24784, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 24784, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
return new Character((char) ((ConstantInteger) c).getBytes());
return (Character)(char) ((ConstantInteger) c).getBytes();
private Object readAnnotationValue(DataInputStream bytes) throws IOException { try { char tag = (char) bytes.readUnsignedByte(); if (DEBUG) System.out.println("tag: " + tag); switch (tag) { case '[': { int sz = bytes.readUnsignedShort(); if (DEBUG) System.out.println("Array of " + sz + " entries"); Object[] result = new Object[sz]; for (int i = 0; i < sz; i++) result[i] = readAnnotationValue(bytes); return result; } case 'B': case 'C': case 'D': case 'F': case 'I': case 'J': case 'S': case 'Z': case 's': case 'c': int cp_index = bytes.readUnsignedShort(); Constant c = getConstantPool().getConstant(cp_index); switch (tag) { case 'B': return new Byte((byte) ((ConstantInteger) c).getBytes()); case 'C': return new Character((char) ((ConstantInteger) c).getBytes()); case 'D': return new Double(((ConstantDouble) c).getBytes()); case 'F': return new Float(((ConstantFloat) c).getBytes()); case 'I': return new Integer(((ConstantInteger) c).getBytes()); case 'J': return new Long(((ConstantLong) c).getBytes()); case 'S': return new Character((char) ((ConstantInteger) c).getBytes()); case 'Z': return Boolean.valueOf(((ConstantInteger) c).getBytes() != 0); case 's': return ((ConstantUtf8) c).getBytes(); case 'c': String cName = ((ConstantUtf8)c).getBytes().replace('/','.'); if (cName.startsWith("L") && cName.endsWith(";")) cName = cName.substring(1,cName.length()-1); if (DEBUG) System.out.println("cName: " + cName); return cName; default: if (DEBUG) System.out.println("Impossible"); throw new IllegalStateException("Impossible"); } case '@': throw new IllegalArgumentException("Not ready to handle annotations as elements of annotations"); case 'e': { int cp1= bytes.readUnsignedShort(); ConstantUtf8 c1 = (ConstantUtf8) getConstantPool().getConstant(cp1); String cName = c1.getBytes().replace('/','.'); if (cName.startsWith("L") && cName.endsWith(";")) cName = cName.substring(1,cName.length()-1); int cp2= bytes.readUnsignedShort(); ConstantUtf8 c2 = (ConstantUtf8) getConstantPool().getConstant(cp2); String result = cName +"." + c2.getBytes(); // System.out.println(result); return result; } default: if (DEBUG) System.out.println("Unexpected tag of " + tag); throw new IllegalArgumentException("Unexpected tag of " + tag); } } catch (RuntimeException e) { if (DEBUG) { System.out.println("Problem processing annotation " + e.getMessage()); e.printStackTrace(); } throw e; } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/af419cfd6becf3774814b9e2450a3232d5752f99/AnnotationVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/visitclass/AnnotationVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1033, 855, 3257, 620, 12, 751, 4348, 1731, 13, 1082, 202, 15069, 1860, 288, 202, 202, 698, 288, 202, 202, 3001, 1047, 273, 261, 3001, 13, 1731, 18, 896, 13290, 3216, 5621, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1033, 855, 3257, 620, 12, 751, 4348, 1731, 13, 1082, 202, 15069, 1860, 288, 202, 202, 698, 288, 202, 202, 3001, 1047, 273, 261, 3001, 13, 1731, 18, 896, 13290, 3216, 5621, 20...
writeUTF8(out, value != null ? value : "");
out.writeUTF(value != null ? value : "");
protected void serializeData(DataOutput out) throws IOException { out.writeInt(mId); out.writeBoolean(mReplace); int numAttrs = mAttrs != null ? mAttrs.size() : 0; out.writeShort((short) numAttrs); for (Iterator it = mAttrs.entrySet().iterator(); it.hasNext(); ) { Map.Entry entry = (Map.Entry) it.next(); writeUTF8(out, (String) entry.getKey()); String value = (String) entry.getValue(); writeUTF8(out, value != null ? value : ""); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ddf77284d1a02cd7ececff001a8f5a16e2683f79/ModifyContact.java/clean/ZimbraServer/src/java/com/zimbra/cs/redolog/op/ModifyContact.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4472, 751, 12, 751, 1447, 596, 13, 1216, 1860, 288, 3639, 596, 18, 2626, 1702, 12, 81, 548, 1769, 3639, 596, 18, 2626, 5507, 12, 81, 5729, 1769, 3639, 509, 818, 8262, 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, 4750, 918, 4472, 751, 12, 751, 1447, 596, 13, 1216, 1860, 288, 3639, 596, 18, 2626, 1702, 12, 81, 548, 1769, 3639, 596, 18, 2626, 5507, 12, 81, 5729, 1769, 3639, 509, 818, 8262, 273, ...
int startOffsetDiff = element1.getTextRange().getStartOffset() - element.getTextRange().getStartOffset();
int startOffsetDiff = element.getTextRange().getStartOffset() - element1.getTextRange().getStartOffset();
public int compare(PsiElement element, PsiElement element1) { int startOffsetDiff = element1.getTextRange().getStartOffset() - element.getTextRange().getStartOffset(); return startOffsetDiff != 0 ? startOffsetDiff : element1.getTextRange().getEndOffset() - element.getTextRange().getEndOffset(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2a2ea0c9eb4e271b9c0425e31566c34a56000d4d/FoldingPolicy.java/buggy/codeInsight/impl/com/intellij/codeInsight/folding/impl/FoldingPolicy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 509, 3400, 12, 52, 7722, 1046, 930, 16, 453, 7722, 1046, 930, 21, 13, 288, 3639, 509, 18245, 5938, 273, 930, 18, 588, 1528, 2655, 7675, 588, 1685, 2335, 1435, 300, 930, 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, 4202, 1071, 509, 3400, 12, 52, 7722, 1046, 930, 16, 453, 7722, 1046, 930, 21, 13, 288, 3639, 509, 18245, 5938, 273, 930, 18, 588, 1528, 2655, 7675, 588, 1685, 2335, 1435, 300, 930, 21, 18, ...
492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741,
89, 387, 234, 524, 589, 538, 364, 61, 597, 234, 518, 642, 721, 429, 456, 457, 594, 234, 492, 741,
private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 814, 190, 190, 591, 601, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 782, 552, 234, 234, 216, 283, 284, 190, 253, 617, 274, 356, 249, 461, 732, 652, 265, 466, 492, 109, 109, 551, 300, 442, 281, 291, 275, 435, 337, 109, 362, 492, 337, 442, 190, 660, 661, 422, 62, 588, 221, 215, 218, 617, 423, 424, 783, 217, 786, 492, 469, 387, 382, 217, 606, 353, 244, 441, 60, 362, 362, 248, 393, 342, 394, 362, 109, 444, 253, 285, 79, 79, 110, 110, 353, 69, 79, 210, 210, 210, 492, 492, 225, 210, 210, 354, 492, 210, 235, 235, 455, 247, 235, 455, 210, 69, 492, 70, 309, 363, 221, 442, 455, 656, 247, 109, 649, 216, 492, 71, 338, 470, 387, 535, 338, 79, 210, 210, 253, 279, 360, 210, 269, 492, 361, 216, 61, 324, 230, 492, 492, 326, 327, 261, 657, 447, 782, 366, 308, 492, 262, 579, 264, 394, 89, 492, 492, 363, 363, 456, 457, 458, 456, 457, 460, 598, 217, 492, 279, 230, 40, 456, 457, 462, 260, 261, 492, 564, 356, 392, 455, 291, 492, 210, 217, 79, 684, 438, 87, 440, 190, 391, 856, 64, 234, 234, 284, 308, 653, 492, 716, 40, 89, 89, 217, 256, 691, 234, 67, 234, 234, 441, 264, 64, 239, 369, 239, 420, 65, 237, 771, 237, 237, 55, 492, 492, 356, 356, 67, 335, 240, 439, 240, 240, 487, 273, 87, 87, 65, 456, 457, 465, 265, 295, 307, 308, 242, 345, 492, 243, 391, 391, 391, 387, 363, 402, 346, 221, 343, 297, 441, 492, 762, 397, 398, 344, 487, 766, 481, 278, 481, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 81, 623, 0, 0, 0, 0, 78, 0, 270, 78, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 0, 78, 0, 644, 790, 0, 616, 0, 84, 644, 163, 0, 0, 163, 163, 163, 0, 0, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 95, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 678, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 508, 509, 473, 0, 510, 0, 0, 0, 0, 0, 0, 160, 473, 161, 162, 472, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 309, 473, 175, 176, 473, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 322, 323, 473, 473, 0, 86, 95, 473, 0, 95, 95, 95, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 96, 0, 0, 309, 0, 0, 0, 0, 314, 315, 0, 412, 0, 473, 0, 473, 0, 0, 412, 322, 323, 0, 0, 95, 0, 0, 0, 0, 95, 95, 95, 95, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 473, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 96, 0, 0, 96, 96, 96, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 476, 96, 0, 476, 0, 0, 96, 96, 96, 96, 0, 0, 0, 0, 0, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 513, 514, 274, 0, 515, 0, 0, 0, 0, 0, 0, 160, 274, 161, 162, 476, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 175, 176, 274, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 274, 274, 0, 0, 0, 274, 520, 509, 0, 0, 521, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 274, 0, 274, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 608, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 274, 334, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 324, 477, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 547, 514, 477, 477, 548, 0, 0, 477, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 477, 0, 477, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 478, 186, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 478, 169, 0, 478, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 478, 478, 0, 175, 176, 478, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 0, 0, 0, 478, 0, 478, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 655, 0, 0, 0, 478, 334, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 324, 350, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 602, 509, 350, 350, 603, 0, 0, 350, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 492, 186, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 604, 514, 0, 0, 605, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 492, 169, 0, 492, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 175, 176, 492, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 645, 509, 0, 0, 646, 0, 0, 0, 492, 0, 492, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647, 514, 0, 0, 648, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 278, 167, 168, 278, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 857, 509, 0, 0, 858, 0, 0, 0, 278, 0, 278, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 286, 170, 171, 172, 173, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 859, 514, 0, 0, 860, 0, 286, 0, 0, 286, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 286, 286, 169, 0, 0, 286, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 286, 186, 286, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 0, 251, 251, 251, 286, 251, 286, 251, 286, 251, 286, 286, 286, 286, 286, 286, 286, 251, 286, 472, 251, 251, 251, 251, 251, 251, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 76, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 472, 0, 84, 0, 472, 309, 310, 311, 312, 313, 314, 315, 0, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 309, 333, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 322, 323, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 0, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 86, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 576, 5026, 16, 225, 576, 5026, 16, 225, 890, 12416, 16, 225, 576, 5540, 16, 225, 576, 5026,...
needShowAll = this.primaryWizards.length > 0; if (needShowAll) {
if (this.primaryWizards.length > 0) {
public NewWizardNewPage( NewWizardSelectionPage mainPage, IWorkbench aWorkbench, WizardCollectionElement wizardCategories, WorkbenchWizardElement[] primaryWizards) { this.page = mainPage; this.wizardCategories = wizardCategories; this.primaryWizards = primaryWizards; trimPrimaryWizards(); needShowAll = this.primaryWizards.length > 0; if (needShowAll) { if (allPrimary(wizardCategories)) { this.wizardCategories = null; // dont bother considering the categories as all wizards are primary needShowAll = false; } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4cf956cf14a1861582124e1ddfcf2b85ce3aa055/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, 482, 1166, 27130, 1908, 1964, 12, 202, 202, 1908, 27130, 6233, 1964, 2774, 1964, 16, 202, 202, 45, 2421, 22144, 279, 2421, 22144, 16, 202, 202, 27130, 2532, 1046, 24204, 10487, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1166, 27130, 1908, 1964, 12, 202, 202, 1908, 27130, 6233, 1964, 2774, 1964, 16, 202, 202, 45, 2421, 22144, 279, 2421, 22144, 16, 202, 202, 27130, 2532, 1046, 24204, 10487, 16, 2...
if(ref.get() == null)
if(ref.get() == null) {
public synchronized void unregisterContentService(INavigatorContentService aContentService) { for (Iterator iter = registeredContentServices.iterator(); iter.hasNext();) { WeakReference ref = (WeakReference) iter.next(); if(ref.get() == null) iter.remove(); else { if(ref.get() == aContentService) { iter.remove(); return; } } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NavigatorContentServiceTransfer.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/dnd/NavigatorContentServiceTransfer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 10232, 1350, 1179, 12, 706, 13061, 1350, 1179, 279, 1350, 1179, 13, 288, 565, 202, 202, 1884, 261, 3198, 1400, 273, 4104, 1350, 5676, 18, 9838, 5621, 1400, 18, 5332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 10232, 1350, 1179, 12, 706, 13061, 1350, 1179, 279, 1350, 1179, 13, 288, 565, 202, 202, 1884, 261, 3198, 1400, 273, 4104, 1350, 5676, 18, 9838, 5621, 1400, 18, 5332, ...
MylarTaskListPlugin.getTaskListManager().addListener(TASK_REFERESH_LISTENER);
MylarTaskListPlugin.getTaskListManager().addChangeListener(TASK_REFERESH_LISTENER); MylarTaskListPlugin.getTaskListManager().addActivityListener(TASK_ACTIVITY_LISTENER);
public TaskListView() { INSTANCE = this; MylarTaskListPlugin.getTaskListManager().addListener(TASK_REFERESH_LISTENER); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7a02ea5ac86b141070faf2ee4a0538a40f6dc6e1/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3837, 682, 1767, 1435, 288, 202, 202, 13341, 273, 333, 31, 202, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 1289, 2223, 12, 15580, 67, 30269, 41, 2664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3837, 682, 1767, 1435, 288, 202, 202, 13341, 273, 333, 31, 202, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 1289, 2223, 12, 15580, 67, 30269, 41, 2664, ...
return types [ type ];
return types[type];
public String getTypeString(int type) { try { return types [ type ]; } catch (ArrayIndexOutOfBoundsException ex) { return "unknown type (" + type + ")"; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/MessageHeader.java/clean/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 3130, 780, 12, 474, 618, 13, 225, 288, 565, 775, 1377, 288, 3639, 327, 1953, 63, 723, 15533, 1377, 289, 565, 1044, 261, 1076, 30548, 431, 13, 1377, 288, 3639, 327, 315, 8172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 514, 3130, 780, 12, 474, 618, 13, 225, 288, 565, 775, 1377, 288, 3639, 327, 1953, 63, 723, 15533, 1377, 289, 565, 1044, 261, 1076, 30548, 431, 13, 1377, 288, 3639, 327, 315, 8172,...
updateProgress( progress.getMinimum() );
setProgress( progress.getMinimum() );
public void uploadPictures() { mGalleryComm.setURLString( (String) url.getSelectedItem() ); mGalleryComm.setUsername( username.getText() ); mGalleryComm.setPassword( password.getText() ); int index = album.getSelectedIndex(); Hashtable h = (Hashtable) mAlbumList.get( index ); mGalleryComm.setAlbum( (String) h.get( "name" ) ); picturesList.disable(); mGalleryComm.uploadFiles( mAlbum.getFileList() ); mInProgress = true; updateUI(); progress.setMaximum( mAlbum.sizePictures() ); progress.setStringPainted( true ); mTimer = new javax.swing.Timer( ONE_SECOND, new ActionListener() { public void actionPerformed( ActionEvent evt ) { updateProgress( mGalleryComm.getUploadedCount() ); updateStatus( mGalleryComm.getStatus() ); if ( mGalleryComm.done() ) { mTimer.stop(); updateProgress( progress.getMinimum() ); progress.setStringPainted( false ); mAlbum.clearPictures(); mInProgress = false; picturesList.enable(); updateUI(); } } } ); mTimer.start(); }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/defaeed9367b72ab37cdc42d18a8183c9fc5464b/MainFrame.java/buggy/gallery_remote/com/gallery/GalleryRemote/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3617, 52, 28636, 1435, 288, 202, 202, 81, 18511, 12136, 18, 542, 1785, 780, 12, 261, 780, 13, 880, 18, 588, 7416, 1180, 1435, 11272, 202, 202, 81, 18511, 12136, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3617, 52, 28636, 1435, 288, 202, 202, 81, 18511, 12136, 18, 542, 1785, 780, 12, 261, 780, 13, 880, 18, 588, 7416, 1180, 1435, 11272, 202, 202, 81, 18511, 12136, 18, 542, ...
return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ?
return toString().indexOf(stringValue(args[0]).toString()) != -1 ?
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : getRuntime().newFixnum(getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0 ? RubyRegexp.last_match(getRuntime().getCurrentContext().getBackref()) : getRuntime().getNil(); } else if (args[0] instanceof RubyString) { return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ? args[0] : getRuntime().getNil(); } else if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); return begLen == null ? getRuntime().getNil() : substr((int) begLen[0], (int) begLen[1]); } int idx = (int) args[0].convertToInteger().getLongValue(); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : getRuntime().newFixnum(getValue().charAt(idx)); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
int z = 0; int t = 0; for (int i=0; i<dims.length; i++) { z += (dims[i][2] == 1) ? 0 : dims[i][2]; t += (dims[i][3] == 1) ? 0 : dims[i][3]; } if (t == 0) t++; if (z == 0) z++; while ((z*t) < numImages) { z++; } OMETools.setPixels(ome, new Integer(dims[dims.length - 1][0]), new Integer(dims[dims.length - 1][1]), new Integer(z), new Integer(1), new Integer(t), type, new Boolean(!littleEndian), "XYZTC"); }
}
private void initMetadata(String xml) { Vector elements = new Vector(); // first parse each element in the XML string while (xml.length() > 2) { String el = xml.substring(1, xml.indexOf(">")); xml = xml.substring(xml.indexOf(">") + 1); elements.add(el); } // the first element contains version information String token = (String) elements.get(0); String key = token.substring(0, token.indexOf("\"")); String value = token.substring(token.indexOf("\"") + 1, token.length()-1); metadata.put(key, value); int ndx = 1; int imageCounter = -2; int dimCounter = 0; int lutCounter = 0; while (ndx < elements.size()) { token = (String) elements.get(ndx); // only try to parse the element if we know it // contains a key/value pair if (token.indexOf("=") != -1) { while (token.length() > 2) { if (key.equals("Element Name")) { imageCounter++; dimCounter = 0; lutCounter = 0; } key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); key = key.trim(); value = value.trim(); if (key.equals("NumberOfElements")) { dims[imageCounter][dimCounter] = Integer.parseInt(value); dimCounter++; if (dimCounter == 6) dimCounter = 0; } if (key.equals("Resolution")) { int val = Integer.parseInt(value); if ((val % 8) != 0) val += (8 - (val % 8)); dims[imageCounter][5] = val; } if (key.equals("LUTName")) lutCounter++; if (lutCounter == 3) { dims[imageCounter][4] = lutCounter; lutCounter = 0; } token = token.substring(token.indexOf("\"", token.indexOf("\"") + 1) + 1); metadata.put(key + " (image " + imageCounter + ")", value); } } ndx++; } int originalNumImages = numImages; for (int i=1; i<=originalNumImages; i++) { if (dims[i-1][2] == 0) dims[i-1][2] = 1; if (dims[i-1][3] == 0) dims[i-1][3] = 1; numImages += ((dims[i-1][2]*dims[i-1][3]) - 1); } // initialize OME-XML if (ome != null) { String type = "int8"; switch (dims[dims.length - 1][5]) { case 12: type = "int16"; break; case 16: type = "int16"; break; case 32: type = "float"; break; } int z = 0; int t = 0; for (int i=0; i<dims.length; i++) { z += (dims[i][2] == 1) ? 0 : dims[i][2]; t += (dims[i][3] == 1) ? 0 : dims[i][3]; } if (t == 0) t++; if (z == 0) z++; while ((z*t) < numImages) { z++; } OMETools.setPixels(ome, new Integer(dims[dims.length - 1][0]), // SizeX new Integer(dims[dims.length - 1][1]), // SizeY new Integer(z), // SizeZ new Integer(1), // SizeC new Integer(t), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC"); // DimensionOrder } }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/91859a26506b8a1d312b398da2c3ecd94e02fa60/LIFReader.java/buggy/loci/formats/LIFReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 288, 565, 5589, 2186, 273, 394, 5589, 5621, 565, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 565, 1323, 261, 2902, 18, 2469, 1435, 405, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 288, 565, 5589, 2186, 273, 394, 5589, 5621, 565, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 565, 1323, 261, 2902, 18, 2469, 1435, 405, 57...
if (!args[0].isKindOf(getRuntime().getClasses().getNilClass()) && !args[0].isKindOf(getRuntime().getClasses().getStringClass())) {
if (!args[0].isKindOf(getRuntime().getClass("NilClass")) && !args[0].isKindOf(getRuntime().getClass("String"))) {
public RubyArray readlines(IRubyObject[] args) { IRubyObject[] separatorArgument; if (args.length > 0) { if (!args[0].isKindOf(getRuntime().getClasses().getNilClass()) && !args[0].isKindOf(getRuntime().getClasses().getStringClass())) { throw getRuntime().newTypeError(args[0], getRuntime().getClasses().getStringClass()); } separatorArgument = new IRubyObject[] { args[0] }; } else { separatorArgument = IRubyObject.NULL_ARRAY; } RubyArray result = getRuntime().newArray(); IRubyObject line; while (! (line = internalGets(separatorArgument)).isNil()) { result.append(line); } return result; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyIO.java/buggy/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 17546, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 15908, 10340, 921, 8526, 4182, 1379, 31, 3639, 309, 261, 1968, 18, 2469, 405, 374, 13, 288, 5411, 309, 16051, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 17546, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 15908, 10340, 921, 8526, 4182, 1379, 31, 3639, 309, 261, 1968, 18, 2469, 405, 374, 13, 288, 5411, 309, 16051, 196...
if ( user == null ) method = FORBIDDEN; } }
if (len > 0) { char[] buffer = new char[2048]; int count; int l = 0;
public void run( ) { String req; String first; String line; String contentType = "text/xml"; String name = null; String username = null; String password = null; int method = BAD_REQUEST; int len = 0; StringBuffer input = new StringBuffer( ); File tempFile = null; BrokerPool brokerPool = null; try { brokerPool = BrokerPool.getInstance( ); } catch ( EXistException e ) { throw new RuntimeException( e.getMessage( ) ); } // the main loop of this thread while ( true ) { while ( ( sock == null ) && !terminate ) synchronized ( this ) { try { wait( 500 ); } catch ( InterruptedException ie ) { } } if ( terminate ) break; try { BufferedReader in = new BufferedReader( new InputStreamReader( sock .getInputStream( ) ) ); len = -1; contentType = "text/xml"; // parse http-header while ( true ) { req = in.readLine( ); if ( req == null ) break; StringTokenizer tok = new StringTokenizer( req, " " ); if ( !tok.hasMoreTokens( ) ) break; first = tok.nextToken( ); if ( first.equals( "GET" ) ) { method = GET; name = tok.nextToken( ); } else if ( first.equals( "POST" ) ) { method = POST; name = tok.nextToken( ); } else if ( first.equals( "HEAD" ) ) { method = HEAD; name = tok.nextToken( ); } else if ( first.equals( "PUT" ) ) { method = PUT; name = tok.nextToken( ); } else if ( req.toUpperCase( ).startsWith( "CONTENT-LENGTH:" ) ) { try { len = Integer.parseInt( tok.nextToken( ) ); } catch ( NumberFormatException nf ) { HttpServer.LOG.warn( nf ); method = BAD_REQUEST; break; } } else if ( req.toUpperCase( ).startsWith( "CONTENT-TYPE:" ) ) contentType = tok.nextToken( ); else if ( req.toUpperCase( ).startsWith( "AUTHORIZATION:" ) ) { String auth = req.substring( "AUTHORIZATION:".length( ) ).trim( ); byte[] c = Base64.decode( auth.substring( 6 ).getBytes( ) ); String s = new String( c ); int p = s.indexOf( ':' ); username = s.substring( 0, p ); password = s.substring( p + 1 ); user = checkUser( brokerPool, username, password ); if ( user == null ) method = FORBIDDEN; } } // get request body if ( len > 0 ) { char[] buffer = new char[2048]; int count; int l = 0; if ( method == PUT ) { // put may send a lot of data, so save it // to a temporary file first. tempFile = File.createTempFile( "exist", ".xml" ); BufferedWriter fout = new BufferedWriter( new FileWriter( tempFile ) ); do { count = in.read( buffer ); if ( count > 0 ) fout.write( buffer, 0, count ); l += count; } while ( l < len ); fout.close( ); } else { do { count = in.read( buffer ); if ( count > 0 ) input.append( buffer, 0, count ); l += count; } while ( l < len ); } } if ( user == null ) // no user specified: assume guest identity user = new User( "guest", "guest", "guest" ); try { broker = brokerPool.get( ); broker.setUser(user); } catch ( EXistException e ) { throw new RuntimeException( e.getMessage( ) ); } try { // select method switch ( method ) { case FORBIDDEN: errorReply( FORBIDDEN ); break; case BAD_REQUEST: errorReply( BAD_REQUEST ); break; case GET: get( name, len ); break; case POST: post( input.toString( ), name, len, contentType ); break; case PUT: put( tempFile, name, len ); break; default: errorReply( BAD_REQUEST ); break; } } finally { brokerPool.release( broker ); broker = null; user = null; } in.close( ); input = new StringBuffer( ); } catch ( IOException io ) { HttpServer.LOG.warn( io ); } sock = null; xslStyle = null; pool.release( this ); } pool.release( this ); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/HttpServerConnection.java/buggy/src/org/exist/http/HttpServerConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 12, 225, 262, 288, 3639, 514, 1111, 31, 3639, 514, 1122, 31, 3639, 514, 980, 31, 3639, 514, 5064, 273, 315, 955, 19, 2902, 14432, 3639, 514, 508, 273, 446, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 12, 225, 262, 288, 3639, 514, 1111, 31, 3639, 514, 1122, 31, 3639, 514, 980, 31, 3639, 514, 5064, 273, 315, 955, 19, 2902, 14432, 3639, 514, 508, 273, 446, 31, 3639, ...
setDataSet((DataSet)newValue); return; case TypePackage.STOCK_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue);
setDataSet((DataSet) newValue);
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.STOCK_SERIES__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case TypePackage.STOCK_SERIES__LABEL: setLabel((Label)newValue); return; case TypePackage.STOCK_SERIES__DATA_DEFINITION: getDataDefinition().clear(); getDataDefinition().addAll((Collection)newValue); return; case TypePackage.STOCK_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier((Object)newValue); return; case TypePackage.STOCK_SERIES__DATA_POINT: setDataPoint((DataPoint)newValue); return; case TypePackage.STOCK_SERIES__DATA_SET: setDataSet((DataSet)newValue); return; case TypePackage.STOCK_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue); return; case TypePackage.STOCK_SERIES__LABEL_POSITION: setLabelPosition((Position)newValue); return; case TypePackage.STOCK_SERIES__STACKED: setStacked(((Boolean)newValue).booleanValue()); return; case TypePackage.STOCK_SERIES__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case TypePackage.STOCK_SERIES__TRANSLUCENT: setTranslucent(((Boolean)newValue).booleanValue()); return; case TypePackage.STOCK_SERIES__FILL: setFill((Fill)newValue); return; case TypePackage.STOCK_SERIES__LINE_ATTRIBUTES: setLineAttributes((LineAttributes)newValue); return; } eDynamicSet(eFeature, newValue); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/StockSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/StockSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 3...
if (entry.isDirectory()) { continue; } compiler.parse(new InputStreamReader(m_zis), entry.getName());
String name = entry.getName(); if (entry.isDirectory() || !name.endsWith(".pdl")) { continue; } compiler.parse(new InputStreamReader(m_zis) { public void close() { } }, name);
public void parse(PDLCompiler compiler) { while (true) { try { final ZipEntry entry = m_zis.getNextEntry(); if (entry == null) { break; } if (entry.isDirectory()) { continue; } compiler.parse(new InputStreamReader(m_zis), entry.getName()); } catch (IOException e) { throw new UncheckedWrapperException(e); } } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/1d13143fee9f73f02b2f2f4c7b1b04c92f3ac7d9/ZipSource.java/buggy/archive/packaging/src/com/arsdigita/persistence/pdl/ZipSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 12, 52, 8914, 9213, 5274, 13, 288, 3639, 1323, 261, 3767, 13, 288, 5411, 775, 288, 7734, 727, 23652, 1241, 273, 312, 67, 94, 291, 18, 588, 2134, 1622, 5621, 7734, 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, 1071, 918, 1109, 12, 52, 8914, 9213, 5274, 13, 288, 3639, 1323, 261, 3767, 13, 288, 5411, 775, 288, 7734, 727, 23652, 1241, 273, 312, 67, 94, 291, 18, 588, 2134, 1622, 5621, 7734, 309, ...
} this.autoCommit = autoCommit;
} this.autoCommit = autoCommit;
public void setAutoCommit(boolean autoCommit) throws SQLException { if (this.autoCommit == autoCommit) return; if (autoCommit) ExecSQL("end"); else { if (haveMinimumServerVersion("7.1")){ ExecSQL("begin;"+getIsolationLevelSQL()); }else{ ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } this.autoCommit = autoCommit; }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21780, 5580, 12, 6494, 3656, 5580, 13, 1216, 6483, 288, 202, 430, 261, 2211, 18, 6079, 5580, 422, 3656, 5580, 13, 202, 565, 327, 31, 202, 430, 261, 6079, 5580, 13, 202, 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, 377, 1071, 918, 21780, 5580, 12, 6494, 3656, 5580, 13, 1216, 6483, 288, 202, 430, 261, 2211, 18, 6079, 5580, 422, 3656, 5580, 13, 202, 565, 327, 31, 202, 430, 261, 6079, 5580, 13, 202, 565, ...
public void close(IMylarContextNode node) {
public void close(IMylarElement node) {
public void close(IMylarContextNode node) { IWorkbenchPage page = Workbench.getInstance().getActiveWorkbenchWindow().getActivePage(); if (page != null) { IEditorReference[] references = page.getEditorReferences(); for (int i = 0; i < references.length; i++) { IEditorPart part = references[i].getEditor(false); if (part != null) { if (part.getEditorInput() instanceof IFileEditorInput) { IFileEditorInput input = (IFileEditorInput)part.getEditorInput(); if ((input.getFile().getFullPath().toString()).equals(node.getElementHandle())) { if (part instanceof FormEditor) { ((FormEditor)part).close(true); } else if (part instanceof AbstractTextEditor) { ((AbstractTextEditor)part).close(true); } } } } } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f5bfb4859762da1543c326b182b2de34d0d94c08/AntUiBridge.java/clean/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/xml/ant/AntUiBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 12, 3445, 93, 7901, 1046, 756, 13, 288, 3639, 467, 2421, 22144, 1964, 1363, 273, 4147, 22144, 18, 588, 1442, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 12, 3445, 93, 7901, 1046, 756, 13, 288, 3639, 467, 2421, 22144, 1964, 1363, 273, 4147, 22144, 18, 588, 1442, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 56...
TestRunner.run(JolapTest.class); }
TestRunner.run(JolapTest.class); }
public static void main(String[] args) { TestRunner.run(JolapTest.class); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/JolapTest.java/buggy/testsrc/main/mondrian/test/JolapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 202, 4709, 9709, 18, 2681, 12, 46, 355, 438, 4709, 18, 1106, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 202, 4709, 9709, 18, 2681, 12, 46, 355, 438, 4709, 18, 1106, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -1...
return page.getWorkbenchWindow(); }
return page.getWorkbenchWindow(); }
public IWorkbenchWindow getWorkbenchWindow() { return page.getWorkbenchWindow();}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8d60afdb91e0f186e6c20fde9d4843c10516e942/PartSite.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 2421, 22144, 3829, 29026, 22144, 3829, 1435, 288, 202, 2463, 1363, 18, 588, 2421, 22144, 3829, 5621, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 467, 2421, 22144, 3829, 29026, 22144, 3829, 1435, 288, 202, 2463, 1363, 18, 588, 2421, 22144, 3829, 5621, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public void testHtmlChildren() { setUpHTML(); fModel.getStructuredDocument().set("<html></html>"); // set text Element htmlElement = fModel.getDocument().getDocumentElement(); CMElementDeclaration htmlDecl = fModelQuery.getCMElementDeclaration(htmlElement); // HTML's children are within a group CMContent contents = htmlDecl.getContent(); assertTrue("content type is not a group", contents.getNodeType() == CMNode.GROUP); CMGroup group = (CMGroup) contents; int operator = group.getOperator(); CMNodeList childList = group.getChildNodes(); int max = contents.getMaxOccur(); int min = contents.getMinOccur(); // the group should be allowed once, with a sequence whose first entry is the declaration for HEAD assertTrue("occurrance of group", min == 1 && max == 1); assertTrue("relationship in group", operator == CMGroup.SEQUENCE); assertTrue("content descriptor type, position 0", contents.getNodeType() == CMNode.GROUP); assertTrue("child order (HEAD first)", childList.item(0).getNodeName().equalsIgnoreCase(HTML40Namespace.ElementName.HEAD)); assertTrue("content descriptor type, position 1", childList.item(1).getNodeType() == CMNode.GROUP); // The second child should be a group as well, containing BODY and FRAMESET with an // operator of CMGroup.CHOICE assertTrue("content descriptor type, position 1 - relationship of group", ((CMGroup) childList.item(1)).getOperator() == CMGroup.CHOICE); }
58500 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58500/e34dbc1fbd5f387bbec36b311fcbd6faeb741a6c/ModelQueryTester.java/buggy/tests/org.eclipse.jst.jsp.ui.tests/src/org/eclipse/jst/jsp/ui/tests/modelquery/ModelQueryTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 225, 1842, 4353, 4212, 1435, 225, 288, 202, 202, 542, 1211, 4870, 5621, 202, 202, 74, 1488, 18, 588, 30733, 2519, 7675, 542, 2932, 32, 2620, 4695, 2620, 2984, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 225, 1842, 4353, 4212, 1435, 225, 288, 202, 202, 542, 1211, 4870, 5621, 202, 202, 74, 1488, 18, 588, 30733, 2519, 7675, 542, 2932, 32, 2620, 4695, 2620, 2984, 1769, ...
/*@bgen(jjtree) EnumDeclaration */ ASTEnumDeclaration jjtn000 = new ASTEnumDeclaration(this, JJTENUMDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); Token t; try { label_6: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: ; break; default: jj_la1[13] = jj_gen; break label_6; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case PUBLIC: jj_consume_token(PUBLIC); jjtn000.setPublic(); break; case PROTECTED: jj_consume_token(PROTECTED); jjtn000.setProtected(); break; case PRIVATE: jj_consume_token(PRIVATE); jjtn000.setPrivate(); break; case STATIC: jj_consume_token(STATIC); jjtn000.setStatic(); break; case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; default: jj_la1[14] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } t = jj_consume_token(IDENTIFIER); if (!t.image.equals("enum")) { { if (true) throw new ParseException("ERROR: expecting enum"); } } if (!this.isJDK15) { { if (true) throw new ParseException("ERROR: Can't use enum as a keyword in pre-JDK 1.5 target"); } } jj_consume_token(IDENTIFIER); jj_consume_token(LBRACE); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case IMPLEMENTS: jj_consume_token(IMPLEMENTS); NameList(); break; default: jj_la1[15] = jj_gen; ; } EnumElement(); label_7: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case COMMA: ; break; default: jj_la1[16] = jj_gen; break label_7; } jj_consume_token(COMMA); EnumElement(); } jj_consume_token(RBRACE); jj_consume_token(SEMICOLON); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { { if (true) throw (RuntimeException) jjte000; } } if (jjte000 instanceof ParseException) { { if (true) throw (ParseException) jjte000; } } { if (true) throw (RuntimeException) jjte000; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); }
/*@bgen(jjtree) EnumDeclaration */ ASTEnumDeclaration jjtn000 = new ASTEnumDeclaration(this, JJTENUMDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: ; break; default: jj_la1[13] = jj_gen; break label_6;
final public void EnumDeclaration() throws ParseException { /*@bgen(jjtree) EnumDeclaration */ ASTEnumDeclaration jjtn000 = new ASTEnumDeclaration(this, JJTENUMDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); Token t; try { label_6: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: ; break; default: jj_la1[13] = jj_gen; break label_6; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case PUBLIC: jj_consume_token(PUBLIC); jjtn000.setPublic(); break; case PROTECTED: jj_consume_token(PROTECTED); jjtn000.setProtected(); break; case PRIVATE: jj_consume_token(PRIVATE); jjtn000.setPrivate(); break; case STATIC: jj_consume_token(STATIC); jjtn000.setStatic(); break; case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; default: jj_la1[14] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } t = jj_consume_token(IDENTIFIER); if (!t.image.equals("enum")) { { if (true) throw new ParseException("ERROR: expecting enum"); } } if (!this.isJDK15) { { if (true) throw new ParseException("ERROR: Can't use enum as a keyword in pre-JDK 1.5 target"); } } jj_consume_token(IDENTIFIER); jj_consume_token(LBRACE); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case IMPLEMENTS: jj_consume_token(IMPLEMENTS); NameList(); break; default: jj_la1[15] = jj_gen; ; } EnumElement(); label_7: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case COMMA: ; break; default: jj_la1[16] = jj_gen; break label_7; } jj_consume_token(COMMA); EnumElement(); } jj_consume_token(RBRACE); jj_consume_token(SEMICOLON); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { { if (true) throw (RuntimeException) jjte000; } } if (jjte000 instanceof ParseException) { { if (true) throw (ParseException) jjte000; } } { if (true) throw (RuntimeException) jjte000; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
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, 1071, 918, 6057, 6094, 1435, 1216, 10616, 288, 3639, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 6057, 6094, 1195, 3639, 9183, 3572, 6094, 10684, 5088, 3784, 273, 394, 9183, 3572, 6094...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 1071, 918, 6057, 6094, 1435, 1216, 10616, 288, 3639, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 6057, 6094, 1195, 3639, 9183, 3572, 6094, 10684, 5088, 3784, 273, 394, 9183, 3572, 6094...
final List<Registration> students = new ArrayList(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { if (registration.getDegreeType().equals(degreeType)) { students.add(registration); } } return students;
final List<Registration> students = new ArrayList(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { if (registration.getDegreeType().equals(degreeType)) { students.add(registration); }
public static List<Registration> readStudentsByDegreeType(DegreeType degreeType) { final List<Registration> students = new ArrayList(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { if (registration.getDegreeType().equals(degreeType)) { students.add(registration); } } return students; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1eab5569eea9b71f208c0d25e856d5bdea5a3e8c/Registration.java/buggy/src/net/sourceforge/fenixedu/domain/student/Registration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 987, 32, 7843, 34, 855, 19943, 4877, 858, 22885, 559, 12, 22885, 559, 10782, 559, 13, 288, 3639, 727, 987, 32, 7843, 34, 10068, 4877, 273, 394, 2407, 5621, 3639, 364, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 987, 32, 7843, 34, 855, 19943, 4877, 858, 22885, 559, 12, 22885, 559, 10782, 559, 13, 288, 3639, 727, 987, 32, 7843, 34, 10068, 4877, 273, 394, 2407, 5621, 3639, 364, 261...
logger.finer("importedFile="+importedFile);
protected String getSchedulePath(String indivExportedName, String indivScheduleID, String indivFileName) { // calculate the import prefix String projectID = getValue("Project_ID"); if (projectID == null || projectID.length() == 0) return null; String importPrefix = "/Import_"+projectID; //*debug*/ System.out.println("importPrefix="+importPrefix); // import all data. DataImporter.refreshPrefix(importPrefix); //*debug*/ System.out.println("refreshPrefix done"); // calculate the name of the import directory. String teamDirectory = getValue("Team_Directory"); if (teamDirectory == null || teamDirectory.length() == 0) return null; teamDirectory = teamDirectory.replace('\\', '/'); String importDir = teamDirectory+"/data/"+projectID; //*debug*/ System.out.println("importDir="+importDir); // calculate the full name of the imported file. indivFileName = indivFileName.replace('\\', '/'); int slashPos = indivFileName.lastIndexOf('/'); if (slashPos == -1) return null; String importedFile = importDir + "/" + indivFileName.substring(slashPos+1); //*debug*/ System.out.println("importedFile="+importedFile); File f = new File(importedFile); // calculate the fully qualified name of the imported schedule. String dataPrefix = null; try { dataPrefix = DataImporter.getPrefix(importPrefix, f); } catch (IOException ioe) { return null; } //*debug*/ System.out.println("dataPrefix="+dataPrefix); String indivSchedPath = dataPrefix + indivExportedName; // prepend the task list ID if it is available. if (indivScheduleID != null && indivScheduleID.length() != 0) indivSchedPath = indivScheduleID + EVTaskListXML.XMLID_FLAG + indivSchedPath; return indivSchedPath; }
5494 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5494/c5eb24077877703cd40839b391a7020729945fe4/wizard.java/clean/teamdash/src/teamdash/templates/setup/wizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1194, 18, 926, 264, 2932, 29266, 812, 1546, 15, 29266, 812, 1769, 1194, 18, 926, 264, 2932, 29266, 812, 1546, 15, 29266, 812, 1769, 1194, 18, 926, 264, 2932, 29266, 812, 1546, 15, 29266, 812, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1194, 18, 926, 264, 2932, 29266, 812, 1546, 15, 29266, 812, 1769, 1194, 18, 926, 264, 2932, 29266, 812, 1546, 15, 29266, 812, 1769, 1194, 18, 926, 264, 2932, 29266, 812, 1546, 15, 29266, 812, ...
sg.setGroupType("Text");
sg.setGroupType(DataType.TEXT_LITERAL);
public static final SeriesGrouping create() { final SeriesGrouping sg = DataFactory.eINSTANCE.createSeriesGrouping(); sg.setAggregateExpression("Sum"); sg.setGroupingInterval(2); sg.setEnabled(false); sg.setGroupType("Text"); return sg; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/869b9dc91ef4dd13d07f589c6394484a744642f0/SeriesGroupingImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/SeriesGroupingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 9225, 21014, 752, 1435, 565, 288, 3639, 727, 9225, 21014, 11150, 273, 1910, 1733, 18, 73, 13341, 18, 2640, 6485, 21014, 5621, 3639, 11150, 18, 542, 11490, 2300, 2932, 3495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 9225, 21014, 752, 1435, 565, 288, 3639, 727, 9225, 21014, 11150, 273, 1910, 1733, 18, 73, 13341, 18, 2640, 6485, 21014, 5621, 3639, 11150, 18, 542, 11490, 2300, 2932, 3495, ...
public boolean tryAquireWrite () { synchronized ( m_lock ) { if ( m_numReadLocksHeld == 0 ) { m_numReadLocksHeld = -1;
public boolean tryAquireWrite () { synchronized (lock) { if (numReadLocksHeld == 0) { numReadLocksHeld = -1;
public boolean tryAquireWrite () { synchronized ( m_lock ) { if ( m_numReadLocksHeld == 0 ) { m_numReadLocksHeld = -1; return true; } else { return false; } } }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/62d71000b6d84642b07f67c825f685d42190715c/ReadWriteLock.java/clean/src/java/org/logicalcobwebs/proxool/util/ReadWriteLock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 775, 37, 1039, 3067, 1832, 565, 288, 3639, 3852, 261, 312, 67, 739, 262, 3639, 288, 5411, 309, 261, 312, 67, 2107, 1994, 19159, 44, 488, 422, 374, 262, 5411, 288, 7734, 312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 775, 37, 1039, 3067, 1832, 565, 288, 3639, 3852, 261, 312, 67, 739, 262, 3639, 288, 5411, 309, 261, 312, 67, 2107, 1994, 19159, 44, 488, 422, 374, 262, 5411, 288, 7734, 312,...
public void removeInvitationListener(InvitationListener listener) { synchronized (invitationsListeners) { if (invitationsListeners.contains(listener)) { invitationsListeners.remove(listener); } // If there are no more listeners to notifiy for room invitations // then proceed to cancel/release this monitor if (invitationsListeners.size() == 0) { cancel(); } } }
47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/dd754e5a7f5cf0b0701477a405d7afae1c12feae/MultiUserChat.java/buggy/source/org/jivesoftware/smackx/muc/MultiUserChat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1206, 19896, 2223, 12, 19896, 2223, 2991, 13, 288, 5411, 3852, 261, 5768, 18282, 5583, 13, 288, 7734, 309, 261, 5768, 18282, 5583, 18, 12298, 12, 12757, 3719, 288, 10792, 2198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 19896, 2223, 12, 19896, 2223, 2991, 13, 288, 5411, 3852, 261, 5768, 18282, 5583, 13, 288, 7734, 309, 261, 5768, 18282, 5583, 18, 12298, 12, 12757, 3719, 288, 10792, 2198, ...
Preferences.VERTICAL_SPACING.cur = VERTICAL_SPACING_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.VERTICAL_SPACING.restoreTemporaryToCurrent();
setIntPref(signature, Preferences.VERTICAL_SPACING, VERTICAL_SPACING_VALIDATOR);
public synchronized void execute(Vector signature) { String variableName = (String) signature.elementAt(1); if (variableName.equals(Preferences.DESKTOP_BACKGROUND_COLOR.getCommand())) { Preferences.DESKTOP_BACKGROUND_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.DESKTOP_BACKGROUND_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.PANEL_BACKGROUND_COLOR.getCommand())) { Preferences.PANEL_BACKGROUND_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.PANEL_BACKGROUND_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.TEXTAREA_BACKGROUND_COLOR.getCommand())) { Preferences.TEXTAREA_BACKGROUND_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.TEXTAREA_BACKGROUND_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.TEXTAREA_FOREGROUND_COLOR.getCommand())) { Preferences.TEXTAREA_FOREGROUND_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.TEXTAREA_FOREGROUND_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.SELECTED_CHILD_COLOR.getCommand())) { Preferences.SELECTED_CHILD_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.SELECTED_CHILD_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.LINE_NUMBER_COLOR.getCommand())) { Preferences.LINE_NUMBER_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.LINE_NUMBER_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.LINE_NUMBER_SELECTED_COLOR.getCommand())) { Preferences.LINE_NUMBER_SELECTED_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.LINE_NUMBER_SELECTED_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.LINE_NUMBER_SELECTED_CHILD_COLOR.getCommand())) { Preferences.LINE_NUMBER_SELECTED_CHILD_COLOR.cur = parseColor((String) signature.elementAt(2)); Preferences.LINE_NUMBER_SELECTED_CHILD_COLOR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.PRINT_ENVIRONMENT.getCommand())) { Preferences.PRINT_ENVIRONMENT.cur = BOOLEAN_VALIDATOR.getValidValue((String) signature.elementAt(2)); Preferences.PRINT_ENVIRONMENT.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.SHOW_LINE_NUMBERS.getCommand())) { Preferences.SHOW_LINE_NUMBERS.cur = BOOLEAN_VALIDATOR.getValidValue((String) signature.elementAt(2)); Preferences.SHOW_LINE_NUMBERS.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.IS_MAXIMIZED.getCommand())) { Preferences.IS_MAXIMIZED.cur = BOOLEAN_VALIDATOR.getValidValue((String) signature.elementAt(2)); Preferences.IS_MAXIMIZED.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.NEW_DOC_ON_STARTUP.getCommand())) { Preferences.NEW_DOC_ON_STARTUP.cur = BOOLEAN_VALIDATOR.getValidValue((String) signature.elementAt(2)); Preferences.NEW_DOC_ON_STARTUP.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.INDENT.getCommand())) { Preferences.INDENT.cur = INDENT_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.INDENT.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.VERTICAL_SPACING.getCommand())) { Preferences.VERTICAL_SPACING.cur = VERTICAL_SPACING_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.VERTICAL_SPACING.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.LEFT_MARGIN.getCommand())) { Preferences.LEFT_MARGIN.cur = LEFT_MARGIN_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.LEFT_MARGIN.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.TOP_MARGIN.getCommand())) { Preferences.TOP_MARGIN.cur = TOP_MARGIN_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.TOP_MARGIN.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.RIGHT_MARGIN.getCommand())) { Preferences.RIGHT_MARGIN.cur = RIGHT_MARGIN_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.RIGHT_MARGIN.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.BOTTOM_MARGIN.getCommand())) { Preferences.BOTTOM_MARGIN.cur = BOTTOM_MARGIN_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.BOTTOM_MARGIN.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.UNDO_QUEUE_SIZE.getCommand())) { Preferences.UNDO_QUEUE_SIZE.cur = UNDO_QUEUE_SIZE_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.UNDO_QUEUE_SIZE.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.RECENT_FILES_LIST_SIZE.getCommand())) { Preferences.RECENT_FILES_LIST_SIZE.cur = RECENT_FILES_LIST_SIZE_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.RECENT_FILES_LIST_SIZE.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.FONT_SIZE.getCommand())) { Preferences.FONT_SIZE.cur = FONT_SIZE_VALIDATOR.getValidValue((String) signature.elementAt(2)).intValue(); Preferences.FONT_SIZE.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.FONT_FACE.getCommand())) { Preferences.FONT_FACE.cur = (String) signature.elementAt(2); Preferences.FONT_FACE.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.LINE_WRAP.getCommand())) { Preferences.LINE_WRAP.cur = (String) signature.elementAt(2); Preferences.LINE_WRAP.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.LINE_END.getCommand())) { Preferences.LINE_END.cur = (String) signature.elementAt(2); Preferences.LINE_END.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.OPEN_ENCODING.getCommand())) { Preferences.OPEN_ENCODING.cur = (String) signature.elementAt(2); Preferences.OPEN_ENCODING.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.SAVE_ENCODING.getCommand())) { Preferences.SAVE_ENCODING.cur = (String) signature.elementAt(2); Preferences.SAVE_ENCODING.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.OPEN_FORMAT.getCommand())) { Preferences.OPEN_FORMAT.cur = (String) signature.elementAt(2); Preferences.OPEN_FORMAT.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.SAVE_FORMAT.getCommand())) { Preferences.SAVE_FORMAT.cur = (String) signature.elementAt(2); Preferences.SAVE_FORMAT.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.MOST_RECENT_OPEN_DIR.getCommand())) { Preferences.MOST_RECENT_OPEN_DIR.cur = (String) signature.elementAt(2); Preferences.MOST_RECENT_OPEN_DIR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.MOST_RECENT_SAVE_DIR.getCommand())) { Preferences.MOST_RECENT_SAVE_DIR.cur = (String) signature.elementAt(2); Preferences.MOST_RECENT_SAVE_DIR.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.OWNER_NAME.getCommand())) { Preferences.OWNER_NAME.cur = (String) signature.elementAt(2); Preferences.OWNER_NAME.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.OWNER_EMAIL.getCommand())) { Preferences.OWNER_EMAIL.cur = (String) signature.elementAt(2); Preferences.OWNER_EMAIL.restoreTemporaryToCurrent(); } else if (variableName.equals(Preferences.TIME_ZONE_FOR_SAVING_DATES.getCommand())) { Preferences.TIME_ZONE_FOR_SAVING_DATES.cur = (String) signature.elementAt(2); Preferences.TIME_ZONE_FOR_SAVING_DATES.restoreTemporaryToCurrent(); } else if (variableName.equals(COMMAND_RECENT_FILE)) { if (RecentFilesList.docInfoList.size() < Preferences.RECENT_FILES_LIST_SIZE.cur) { try { // Create a new DocumentInfo object DocumentInfo docInfo = new DocumentInfo( (String) signature.elementAt(2), (String) signature.elementAt(3), (String) signature.elementAt(4), (String) signature.elementAt(5), (String) signature.elementAt(6), (String) signature.elementAt(7), (String) signature.elementAt(8), (String) signature.elementAt(9), (String) signature.elementAt(10), (String) signature.elementAt(11), Integer.parseInt((String) signature.elementAt(12)), Integer.parseInt((String) signature.elementAt(13)), Integer.parseInt((String) signature.elementAt(14)), Integer.parseInt((String) signature.elementAt(15)), Integer.parseInt((String) signature.elementAt(16)), (String) signature.elementAt(17), (String) signature.elementAt(18) ); RecentFilesList.docInfoList.addElement(docInfo); } catch (ArrayIndexOutOfBoundsException e) {} } } else if (variableName.equals(COMMAND_ENCODING)) { Preferences.ENCODINGS.addElement((String) signature.elementAt(2)); } }
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/e24a42ed0dfb51866c96fe6c7b5a33b3c93e59b1/SetPrefCommand.java/buggy/outliner/src/com/organic/maynard/outliner/SetPrefCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1836, 12, 5018, 3372, 13, 288, 202, 202, 780, 17834, 273, 261, 780, 13, 3372, 18, 2956, 861, 12, 21, 1769, 202, 202, 430, 261, 6105, 461, 18, 14963, 12, 12377, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1836, 12, 5018, 3372, 13, 288, 202, 202, 780, 17834, 273, 261, 780, 13, 3372, 18, 2956, 861, 12, 21, 1769, 202, 202, 430, 261, 6105, 461, 18, 14963, 12, 12377, 18...
private static int getNumberOfWaysToTerrain(Legion legion, MasterHex hex, char terrainType)
private static int getNumberOfWaysToTerrain(Legion legion, MasterHex hex, char terrainType)
private static int getNumberOfWaysToTerrain(Legion legion, MasterHex hex, char terrainType) { // if moves[i] is true, then a roll of i can get us to terrainType. boolean[] moves = new boolean[7]; //consider normal moves int block = Game.ARCHES_AND_ARROWS; for (int j = 0; j < 6; j++) { if (hex.getExitType(j) == MasterHex.BLOCK) { // Only this path is allowed. block = j; } } findNormalMovesToTerrain(legion, legion.getPlayer(), hex, 6, block, Game.NOWHERE, terrainType, moves); // consider tower teleport if (hex.getTerrain() == 'T' && legion.numLords() > 0 && moves[6] == false) { // hack: assume that we can always tower teleport to the terrain we // want to go to. // TODO: check to make sure there's an open terrain to teleport to. // (probably want a lookup table for this) moves[6] = true; } int count = 0; for (int i =0; i < moves.length; i++) if (moves[i]) count++; return count; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/57f0ec43774c40c3a885097fd33cbd0e232f6650/SimpleAI.java/buggy/Colossus/SimpleAI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 14981, 59, 8271, 774, 56, 264, 7596, 12, 8329, 285, 4553, 285, 16, 4766, 7734, 13453, 7037, 3827, 16, 4766, 7734, 1149, 19272, 7596, 559, 13, 565, 288, 3639, 368, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 14981, 59, 8271, 774, 56, 264, 7596, 12, 8329, 285, 4553, 285, 16, 4766, 7734, 13453, 7037, 3827, 16, 4766, 7734, 1149, 19272, 7596, 559, 13, 565, 288, 3639, 368, 309, 1...
assertEquals(expectedNrOfSubMenuEntries, menuManager.getItems().length);
assertEquals(expectedNrOfSubMenuEntries+1, menuManager.getItems().length);
public void testGetSubMenuManagerContainsAllCategoriesPlusNewCategory() { // setup MoveToCategoryMenuContributor moveToMenuContrib = new MoveToCategoryMenuContributor(); List<ITaskListElement> selectedElements = new Vector<ITaskListElement>(); selectedElements.add(cat1task1); int nrOfCategoriesMinusArchiveContainer = manager.getTaskList().getCategories().size() - 1; int expectedNrOfSubMenuEntries = nrOfCategoriesMinusArchiveContainer + 1; NewCategoryAction newCatActon = new NewCategoryAction(null); // execute sytem under test MenuManager menuManager = moveToMenuContrib.getSubMenuManager(selectedElements); IContributionItem[] items = menuManager.getItems(); IContributionItem item = items[menuManager.getItems().length-1]; // assert assertEquals(expectedNrOfSubMenuEntries, menuManager.getItems().length); if (item instanceof NewCategoryAction) { NewCategoryAction action = (NewCategoryAction) item; assertEquals(newCatActon.getText(), action.getText()); } // teardown }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/21eae7b0bb004eaf529abbd5dbbfc58c07567df3/TaskListUiTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1676, 4599, 1318, 10846, 1595, 10487, 13207, 1908, 4457, 1435, 288, 202, 202, 759, 3875, 202, 202, 7607, 774, 4457, 4599, 442, 19293, 13863, 4599, 442, 665, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1676, 4599, 1318, 10846, 1595, 10487, 13207, 1908, 4457, 1435, 288, 202, 202, 759, 3875, 202, 202, 7607, 774, 4457, 4599, 442, 19293, 13863, 4599, 442, 665, 273, ...
indentStrategy = (PyAutoIndentStrategy)editConfiguration.getAutoIndentStrategy(null, null);
indentStrategy = (PyAutoIndentStrategy)editConfiguration.getAutoIndentStrategy(null, IDocument.DEFAULT_CONTENT_TYPE);
public PyEdit() { super(); modelListeners = new ArrayList(); colorCache = new ColorCache(PydevPrefs.getPreferences()); if (getDocumentProvider() == null) { setDocumentProvider(new PyDocumentProvider()); } editConfiguration = new PyEditConfiguration(colorCache); setSourceViewerConfiguration(editConfiguration); indentStrategy = (PyAutoIndentStrategy)editConfiguration.getAutoIndentStrategy(null, null); setRangeIndicator(new DefaultRangeIndicator()); // enables standard vertical ruler }
1319 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1319/46f4537ccb62b764a878e75128abd84e94f9720a/PyEdit.java/clean/org.python.pydev/src/org/python/pydev/editor/PyEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4707, 4666, 1435, 288, 202, 202, 9565, 5621, 202, 202, 2284, 5583, 273, 394, 2407, 5621, 202, 202, 3266, 1649, 273, 394, 5563, 1649, 12, 9413, 5206, 1386, 2556, 18, 588, 12377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4707, 4666, 1435, 288, 202, 202, 9565, 5621, 202, 202, 2284, 5583, 273, 394, 2407, 5621, 202, 202, 3266, 1649, 273, 394, 5563, 1649, 12, 9413, 5206, 1386, 2556, 18, 588, 12377, ...
root.detachChild(particleMesh); particleMesh = ParticleFactory.buildParticles("particles", particles);
ParticleMesh omesh = particleMesh; particleNode.detachChild(particleMesh); particleMesh = ParticleFactory.buildParticles(omesh.getName(), particles);
public void resetManager(int particles) { root.detachChild(particleMesh); particleMesh = ParticleFactory.buildParticles("particles", particles); ColorRGBA rgba = makeColorRGBA(startColorPanel.getBackground()); rgba.a = (Integer.parseInt(startAlphaSpinner.getValue().toString()) / 255f); particleMesh.setStartColor(rgba); rgba = makeColorRGBA(endColorPanel.getBackground()); rgba.a = (Integer.parseInt(endAlphaSpinner.getValue().toString()) / 255f); particleMesh.setEndColor(rgba); int val = startSizeSlider.getValue(); particleMesh.setStartSize(val / 10f); val = endSizeSlider.getValue(); particleMesh.setEndSize(val / 10f); val = minAgeSlider.getValue(); particleMesh.setMinimumLifeTime((float) val); val = maxAgeSlider.getValue(); particleMesh.setMaximumLifeTime((float) val); val = speedSlider.getValue(); particleMesh.getParticleController().setSpeed((float) val * .1f); val = gravXSlider.getValue(); particleMesh.getGravityForce().x = (float) val * 0.001f; val = gravYSlider.getValue(); particleMesh.getGravityForce().y = (float) val * 0.001f; val = gravZSlider.getValue(); particleMesh.getGravityForce().z = (float) val * 0.001f; val = emitXSlider.getValue(); particleMesh.getEmissionDirection().x = (float) val * .1f; val = emitYSlider.getValue(); particleMesh.getEmissionDirection().y = (float) val * .1f; val = emitZSlider.getValue(); particleMesh.getEmissionDirection().z = (float) val * .1f; particleMesh.updateRotationMatrix(); val = angleSlider.getValue(); particleMesh.setMaximumAngle((float) val * FastMath.DEG_TO_RAD); val = minAngleSlider.getValue(); particleMesh.setMinimumAngle((float) val * FastMath.DEG_TO_RAD); val = randomSlider.getValue(); particleMesh.setRandomMod((float) val * .1f); val = rateSlider.getValue(); particleMesh.setReleaseRate(val); val = rateVarSlider.getValue(); particleMesh.setReleaseVariance((float) val * .01f); particleMesh.getParticleController() .setRepeatType(spawnBox.isSelected() ? Controller.RT_WRAP : Controller.RT_CLAMP); particleMesh.getParticleController().setControlFlow(rateBox.isSelected()); rateSlider.setMaximum(particles * 5); rateSlider.setValue(particles); val = velocitySlider.getValue(); particleMesh.setInitialVelocity((float) val * .01f); updateVelocityLabels(); val = spinSlider.getValue(); particleMesh.setParticleSpinSpeed((float) val * .01f); updateSpinLabels(); root.attachChild(particleMesh); root.updateRenderState(); regenCode(); validate(); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/d656126e2e043076896ac9355fbafe66b14e79b1/RenParticleEditor.java/clean/src/jmetest/effects/RenParticleEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 1318, 12, 474, 28312, 13, 288, 3639, 1365, 18, 8238, 497, 1763, 12, 2680, 3711, 16748, 1769, 3639, 20036, 16748, 273, 6393, 3711, 1733, 18, 3510, 1988, 8383, 2932, 2680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2715, 1318, 12, 474, 28312, 13, 288, 3639, 1365, 18, 8238, 497, 1763, 12, 2680, 3711, 16748, 1769, 3639, 20036, 16748, 273, 6393, 3711, 1733, 18, 3510, 1988, 8383, 2932, 2680, ...
if (arg.equals("-debug")) { cx.setOptimizationLevel(-1); cx.setGeneratingDebug(true); invokeDebugger(cx, scope); continue; }
public static String[] processOptions(Context cx, String args[]) { cx.setTargetPackage(""); // default to no package for (int i=0; i < args.length; i++) { String arg = args[i]; if (!arg.startsWith("-")) { String[] result = new String[args.length - i]; for (int j=i; j < args.length; j++) result[j-i] = args[j]; return result; } if (arg.equals("-version")) { if (++i == args.length) usage(arg); double d = cx.toNumber(args[i]); if (d != d) usage(arg); cx.setLanguageVersion((int) d); continue; } if (arg.equals("-opt") || arg.equals("-O")) { if (++i == args.length) usage(arg); double d = cx.toNumber(args[i]); if (d != d) usage(arg); cx.setOptimizationLevel((int)d); continue; } if (arg.equals("-e")) { processStdin = false; if (++i == args.length) usage(arg); Reader reader = new StringReader(args[i]); evaluateReader(cx, scope, reader, "<command>", 1); continue; } if (arg.equals("-w")) { errorReporter.setIsReportingWarnings(true); continue; } if (arg.equals("-f")) { processStdin = false; if (++i == args.length) usage(arg); if (args[i].equals("-")) processStdin = false; processSource(cx, args[i]); continue; } if (arg.equals("-debug")) { // XXX check for bad combinations with -opt cx.setOptimizationLevel(-1); cx.setGeneratingDebug(true); invokeDebugger(cx, scope); continue; } usage(arg); } return new String[0]; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/a73c6e75ae2fab8328356d16318be7fab782905c/Main.java/clean/org/mozilla/javascript/tools/shell/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 1207, 1320, 12, 1042, 9494, 16, 514, 833, 63, 5717, 288, 3639, 9494, 18, 542, 2326, 2261, 2932, 8863, 565, 368, 805, 358, 1158, 2181, 3639, 364, 261, 474, 277, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 1207, 1320, 12, 1042, 9494, 16, 514, 833, 63, 5717, 288, 3639, 9494, 18, 542, 2326, 2261, 2932, 8863, 565, 368, 805, 358, 1158, 2181, 3639, 364, 261, 474, 277, 33,...
private void initInstance2( ResultSetCache resultCache, OdiAdapter odiAdpater, BaseQuery query, int startIndex, int endIndex, IResultClass rsMeta, SortSpec sortSpec ) throws DataException { int length = endIndex - startIndex; if ( query.getMaxRows( ) == 0 || length <= query.getMaxRows( ) ) query.setMaxRows( length ); int oldIndex = resultCache.getCurrentIndex( ); // There is one point needs to be noticed that in OdiAdapter, // it fetches the next row, not current row. So the resultCache.moveTo( startIndex - 1 ); initInstance( odiAdpater, query, rsMeta, sortSpec ); resultCache.moveTo( oldIndex ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1158de75370f7a640934ae35aa86b3dd77970d08/SmartCache.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/SmartCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1442, 22, 12, 10842, 1649, 563, 1649, 16, 1082, 202, 51, 3211, 4216, 320, 3211, 1871, 84, 2045, 16, 3360, 1138, 843, 16, 509, 10588, 16, 1082, 202, 474, 13818, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1442, 22, 12, 10842, 1649, 563, 1649, 16, 1082, 202, 51, 3211, 4216, 320, 3211, 1871, 84, 2045, 16, 3360, 1138, 843, 16, 509, 10588, 16, 1082, 202, 474, 13818, 16,...
if ((flag & 1) != 0) {
if ((n & 1) != 0) {
vValue Sort(vDescriptor n) { long flag = n.mkInteger().value; vTableElem a[] = new vTableElem[t.size()]; // make array of key/val pairs int i = 0; for (Enumeration e = t.keys(); e.hasMoreElements(); ) { vValue key = (vValue)e.nextElement(); vValue val = (vValue)t.get(key); if ((flag & 1) != 0) { a[i++] = new vTableElem(key, val); // sort by key } else { a[i++] = new vTableElem(val, key); // sort by value } } iUtil.sort(a); // sort array of pairs vValue b[]; if (flag <= 2) { // return list of lists b = new vValue[t.size()]; vValue pair[] = new vValue[2]; for (i = 0; i < t.size(); i++) { if ((flag & 1) != 0) { // sorted by key pair[0] = a[i].sortkey; pair[1] = a[i].other; } else { // sorted by value pair[0] = a[i].other; pair[1] = a[i].sortkey; } b[i] = iNew.List(pair); } } else { // return 2x-long list b = new vValue[2 * t.size()]; int j = 0; for (i = 0; i < t.size(); i++) { if ((flag & 1) != 0) { // sorted by key b[j++] = a[i].sortkey; b[j++] = a[i].other; } else { // sorted by value b[j++] = a[i].other; b[j++] = a[i].sortkey; } } } return iNew.List(b); // turn results into Icon list}
4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/0c600b0c2c0d6aa01a7dd2458754682b9ec64405/vTable.java/buggy/jcon/vTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 331, 620, 5928, 12, 90, 3187, 290, 13, 288, 565, 1525, 2982, 273, 290, 18, 24816, 4522, 7675, 1132, 31, 565, 331, 1388, 7498, 279, 8526, 273, 394, 331, 1388, 7498, 63, 88, 18, 1467, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 331, 620, 5928, 12, 90, 3187, 290, 13, 288, 565, 1525, 2982, 273, 290, 18, 24816, 4522, 7675, 1132, 31, 565, 331, 1388, 7498, 279, 8526, 273, 394, 331, 1388, 7498, 63, 88, 18, 1467, 1435, ...
protected void runTest(Object testDoc, Object context, Element test) throws Exception { String xpathStr = test.attributeValue( "select" ); String debugStr = test.attributeValue( "debug" ); boolean debug = this.verbose; if ( debugStr != null ) { if ( "true".equals( debugStr ) || "on".equals( debugStr ) ) { debug = true; } } log( debug, " Select :: " + xpathStr ); this.executionContext.push( xpathStr ); String count = test.attributeValue( "count" ); String exception = test.attributeValue( "exception" ); BaseXPath xpath = new BaseXPath( xpathStr ); if ( count != null ) { int expectedSize = Integer.parseInt( count ); try { List results = xpath.selectNodes( getContext( context ) ); log ( debug, " Expected Size :: " + expectedSize ); log ( debug, " Result Size :: " + results.size() ); if ( expectedSize != results.size() ) { log ( debug, " ## FAILED" ); log ( debug, " ## xpath: " + xpath + " = " + xpath.debug() ); Iterator resultIter = results.iterator(); while ( resultIter.hasNext() ) { log ( debug, " --> " + resultIter.next() ); } } assertEquals( this.executionContext.toString(), expectedSize, results.size() ); } catch (UnsupportedAxisException e) { log ( debug, " ## SKIPPED -- Unsupported Axis" ); } catch (JaxenException e) { // If an exception attribute was switched on, this is the desired behaviour.. if (exception !=null && (exception.equals("on") || exception.equals("true"))) { log (debug, " Caught expected exception "+e.getMessage()); } else throw e; } } Iterator valueOfIter = test.elementIterator( "valueOf" ); while ( valueOfIter.hasNext() ) { //Element valueOf = test.element( "valueOf" ); Element valueOf = (Element) valueOfIter.next(); if ( valueOf != null ) { debugStr = valueOf.attributeValue( "debug" ); if ( debugStr != null ) { if ( "true".equals( debugStr ) || "on".equals( debugStr ) ) { debug = true; } } try { Object newContext = xpath.selectSingleNode( getContext( context ) ); log ( debug, " New Context :: " + abbreviate( newContext ) ); String valueOfXPathStr = valueOf.attributeValue( "select" ); log( debug, " Select :: " + valueOfXPathStr ); this.executionContext.push( valueOfXPathStr ); BaseXPath valueOfXPath = new BaseXPath( valueOfXPathStr ); Object node = valueOfXPath.selectSingleNode( getContext( newContext ) ); String expected = valueOf.getText(); String result = StringFunction.evaluate( node, getNavigator() ); log ( debug, " Expected :: " + expected ); log ( debug, " Result :: " + result ); if ( ! expected.equals( result ) ) { log ( debug, " ## FAILED" ); } assertEquals( this.executionContext.toString(), expected, result ); this.executionContext.pop(); } catch (UnsupportedAxisException e) { log ( debug, " ## SKIPPED -- Unsupported Axis" ); } } } this.executionContext.pop(); }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/12589bc25ae0923f2442e663095f1f4badeb40ab/XPathTestBase.java/clean/jaxen/src/java/test/org/jaxen/XPathTestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1086, 4709, 12, 921, 1842, 1759, 16, 21821, 1033, 819, 16, 21821, 3010, 1842, 13, 1216, 1185, 565, 288, 3639, 514, 6748, 1585, 273, 1842, 18, 4589, 620, 12, 315, 4025, 6, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 4709, 12, 921, 1842, 1759, 16, 21821, 1033, 819, 16, 21821, 3010, 1842, 13, 1216, 1185, 565, 288, 3639, 514, 6748, 1585, 273, 1842, 18, 4589, 620, 12, 315, 4025, 6, 112...
return clone; }
return clone; }
public RubyModule getSingletonClassClone() { if (!isSingleton()) { return this; } RubyModule clone = new RubyClass(getRuby(), getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); //clone.setMethods(); // st_foreach(RCLASS(klass)->m_tbl, clone_method, clone->m_tbl); clone.setSingleton(true); return clone; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 3120, 31662, 797, 10930, 1435, 288, 202, 202, 430, 16051, 291, 19571, 10756, 288, 1082, 202, 2463, 333, 31, 202, 202, 97, 202, 202, 54, 10340, 3120, 3236, 273, 394, 19817...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3120, 31662, 797, 10930, 1435, 288, 202, 202, 430, 16051, 291, 19571, 10756, 288, 1082, 202, 2463, 333, 31, 202, 202, 97, 202, 202, 54, 10340, 3120, 3236, 273, 394, 19817...
File sourcePath = getFileFromURL(sourcePathAttributeValue, getLocationData());
File sourcePath = getFileFromURL(sourcePathAttributeValue, JavaProcessor.this.getLocationData());
private Processor getProcessor(PipelineContext context) { try { // Read config input into a String, cache if possible ProcessorInput input = getInputByName(INPUT_CONFIG); final Config config = (Config) readCacheInputAsObject(context, input, new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { Document configDocument = readInputAsDOM4J(context, INPUT_CONFIG); Element configElement = configDocument.getRootElement(); Config config = new Config(); config.clazz = configElement.attributeValue("class"); // Get source path String sourcePathAttributeValue = configElement.attributeValue("sourcepath"); if (sourcePathAttributeValue == null) sourcePathAttributeValue = "."; File sourcePath = getFileFromURL(sourcePathAttributeValue, getLocationData()); if (!sourcePath.isDirectory()) throw new ValidationException("Invalid sourcepath attribute: cannot find directory for URL: " + sourcePathAttributeValue, (LocationData) configElement.getData()); try { config.sourcepath = sourcePath.getCanonicalPath(); } catch (IOException e) { throw new ValidationException("Invalid sourcepath attribute: cannot find directory for URL: " + sourcePathAttributeValue, (LocationData) configElement.getData()); } return config; } }); // Check if need to compile String sourceFile = config.sourcepath + "/" + config.clazz.replace('.', '/') + ".java"; String destinationDirectory = SystemUtils.getTemporaryDirectory().getAbsolutePath(); String destinationFile = destinationDirectory + "/" + config.clazz.replace('.', '/') + ".class"; boolean fileUpToDate = new File(sourceFile).lastModified() < new File(destinationFile).lastModified(); // Compile if (!fileUpToDate) { StringWriter javacOutput = new StringWriter(); final ArrayList argLst = new ArrayList(); final String[] cmdLine; { argLst.add("-g"); final String cp = buildClassPath(context); if (cp != null) { argLst.add("-classpath"); argLst.add(cp); } if (config.sourcepath != null && config.sourcepath.length() > 0) { argLst.add("-sourcepath"); argLst.add(config.sourcepath); } argLst.add("-d"); final File tmp = SystemUtils.getTemporaryDirectory(); final String tmpPth = tmp.getAbsolutePath(); argLst.add(tmpPth); final String fnam = config.sourcepath + "/" + config.clazz.replace('.', '/') + ".java"; argLst.add(fnam); cmdLine = new String[argLst.size()]; argLst.toArray(cmdLine); } if (logger.isDebugEnabled()) { logger.debug("Compiling class '" + config.clazz + "'"); logger.debug("javac " + argLst.toString()); } Throwable thrown = null; int exitCode = 1; try { // Get compiler class, either user-specified or default to Sun compiler String compilerMain = getPropertySet().getString(COMPILER_CLASS_PROPERTY, DEFAULT_COMPILER_MAIN); ClassLoader classLoader; { URL compilerJarURL = getPropertySet().getURL(COMPILER_JAR_PROPERTY); if (compilerJarURL != null) { // 1: Always honor user-specified compiler JAR if present // Use special class loader pointing to this URL classLoader = new URLClassLoader(new URL[]{compilerJarURL}, JavaProcessor.class.getClassLoader()); if (logger.isDebugEnabled()) logger.debug("Java processor using user-specified compiler JAR: " + compilerJarURL.toExternalForm()); } else { // 2: Try to use the class loader that loaded this class classLoader = JavaProcessor.class.getClassLoader(); try { Class.forName(compilerMain, true, classLoader); logger.debug("Java processor using current class loader"); } catch (ClassNotFoundException e) { // Class not found // 3: Try to get to Sun tools.jar String javaHome = System.getProperty("java.home"); if (javaHome != null) { File javaHomeFile = new File(javaHome); if (javaHomeFile.getName().equals("jre")) { File toolsFile = new File(javaHomeFile.getParentFile(), "lib" + File.separator + "tools.jar"); if (toolsFile.exists()) { // JAR file exists, will use it to load compiler class classLoader = new URLClassLoader(new URL[]{toolsFile.toURL()}, JavaProcessor.class.getClassLoader()); if (logger.isDebugEnabled()) logger.debug("Java processor using default tools.jar under " + toolsFile.toString()); } } } } } } // Load compiler class using class loader defined above Class compilerClass = Class.forName(compilerMain, true, classLoader); // Get method and run compiler Method compileMethod = compilerClass.getMethod("compile", new Class[]{String[].class, PrintWriter.class}); Object result = compileMethod.invoke(null, new Object[]{cmdLine, new PrintWriter(javacOutput)}); exitCode = ((Integer) result).intValue(); } catch (final Throwable t) { thrown = t; } if (exitCode != 0) { String javacOutputString = "\n" + javacOutput.toString(); javacOutputString = StringUtils.replace(javacOutputString, "\n", "\n "); throw new OXFException("Error compiling '" + argLst.toString() + "'" + javacOutputString, thrown); } } // Try to get sourcepath info InternalCacheKey sourcepathKey = new InternalCacheKey(JavaProcessor.this, "javaFile", config.sourcepath); Object sourcepathValidity = new Long(0); Sourcepath sourcepath = (Sourcepath) ObjectCache.instance() .findValid(context, sourcepathKey, sourcepathValidity); // Create classloader if (sourcepath == null || (sourcepath.callNameToProcessorClass.containsKey(config.clazz) && !fileUpToDate)) { if (logger.isDebugEnabled()) logger.debug("Creating classloader for sourcepath '" + config.sourcepath + "'"); sourcepath = new Sourcepath(); sourcepath.classLoader = new URLClassLoader (new URL[]{SystemUtils.getTemporaryDirectory().toURL(), new File(config.sourcepath).toURL()}, this.getClass().getClassLoader()); ObjectCache.instance().add(context, sourcepathKey, sourcepathValidity, sourcepath); } // Get processor class Class processorClass = (Class) sourcepath.callNameToProcessorClass.get(config.clazz); if (processorClass == null) { processorClass = sourcepath.classLoader.loadClass(config.clazz); sourcepath.callNameToProcessorClass.put(config.clazz, processorClass); } // Create processor from class Thread.currentThread().setContextClassLoader(processorClass.getClassLoader()); return (Processor) processorClass.newInstance(); } catch (final IOException e) { throw new OXFException(e); } catch (final IllegalAccessException e) { throw new OXFException(e); } catch (final InstantiationException e) { throw new OXFException(e); } catch (final ClassNotFoundException e) { throw new OXFException(e); } }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/8e87beb256760333bcd891029c855aff4a8543c8/JavaProcessor.java/buggy/src/java/org/orbeon/oxf/processor/JavaProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15476, 336, 5164, 12, 8798, 1042, 819, 13, 288, 3639, 775, 288, 5411, 368, 2720, 642, 810, 1368, 279, 514, 16, 1247, 309, 3323, 5411, 15476, 1210, 810, 273, 12353, 5911, 12, 15934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15476, 336, 5164, 12, 8798, 1042, 819, 13, 288, 3639, 775, 288, 5411, 368, 2720, 642, 810, 1368, 279, 514, 16, 1247, 309, 3323, 5411, 15476, 1210, 810, 273, 12353, 5911, 12, 15934, ...