rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
for(int i = 0; i<fLocationPaths.length; i++) {
for (int i = 0; i < fLocationPaths.length; i++) {
public void endElement(QName element, XSTypeDefinition type, boolean nillable, Object value, short valueType, ShortList itemValueType) { if (DEBUG_METHODS2) { System.out.println(toString()+"#endElement("+ "element={"+element+"},"+ ")"); } for(int i = 0; i<fLocationPaths.length; i++) { // go back a step fCurrentStep[i] = fStepIndexes[i].pop(); // don't do anything, if not matching if (fNoMatchDepth[i] > 0) { fNoMatchDepth[i]--; } // signal match, if appropriate else { int j=0; for(; j<i && ((fMatched[j] & MATCHED) != MATCHED); j++); if ((j<i) || (fMatched[j] == 0) || ((fMatched[j] & MATCHED_ATTRIBUTE) == MATCHED_ATTRIBUTE)) { continue; } // only certain kinds of matchers actually // match element content. This permits // them a way to override this to do nothing // and hopefully save a few operations. handleContent(type, nillable, value, valueType, itemValueType); fMatched[i] = 0; } if (DEBUG_STACK) { System.out.println(toString()+": "+fStepIndexes[i]); } } } // endElement(QName)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d640d8edaef4c9a06e10ea07efc41c41d8814e96/XPathMatcher.java/buggy/src/org/apache/xerces/impl/xs/identity/XPathMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14840, 12, 13688, 930, 16, 1139, 55, 559, 1852, 618, 16, 1250, 515, 80, 429, 16, 1033, 460, 16, 3025, 13692, 16, 7925, 682, 761, 17930, 13, 288, 3639, 309, 261, 9394, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14840, 12, 13688, 930, 16, 1139, 55, 559, 1852, 618, 16, 1250, 515, 80, 429, 16, 1033, 460, 16, 3025, 13692, 16, 7925, 682, 761, 17930, 13, 288, 3639, 309, 261, 9394, 67, 2...
final IMemento preferences, final BindingManager bindingManager) {
final IMemento preferences, final BindingManager bindingManager, final ICommandService commandService) {
private static final void readBindingsFromPreferences( final IMemento preferences, final BindingManager bindingManager) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog = null; if (preferences != null) { final IMemento[] preferenceMementos = preferences .getChildren(ELEMENT_KEY_BINDING); int preferenceMementoCount = preferenceMementos.length; for (int i = preferenceMementoCount - 1; i >= 0; i--) { final IMemento memento = preferenceMementos[i]; // Read out the command id. String commandId = memento.getString(ATTRIBUTE_COMMAND_ID); if ((commandId == null) || (commandId.length() == 0)) { commandId = memento.getString(ATTRIBUTE_COMMAND); } if ((commandId != null) && (commandId.length() == 0)) { commandId = null; } // Read out the scheme id. String schemeId = memento .getString(ATTRIBUTE_KEY_CONFIGURATION_ID); if ((schemeId == null) || (schemeId.length() == 0)) { schemeId = memento.getString(ATTRIBUTE_CONFIGURATION); if ((schemeId == null) || (schemeId.length() == 0)) { // The scheme id should never be null. This is invalid. final String message = "Key bindings need a scheme or key configuration: '" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); } } // Read out the context id. String contextId = memento.getString(ATTRIBUTE_CONTEXT_ID); if (LEGACY_DEFAULT_SCOPE.equals(contextId)) { contextId = null; } else if ((contextId == null) || (contextId.length() == 0)) { contextId = memento.getString(ATTRIBUTE_SCOPE); if (LEGACY_DEFAULT_SCOPE.equals(contextId)) { contextId = null; } } if ((contextId == null) || (contextId.length() == 0)) { contextId = IContextIds.CONTEXT_ID_WINDOW; } // Read out the key sequence. String keySequenceText = memento .getString(ATTRIBUTE_KEY_SEQUENCE); KeySequence keySequence = null; if ((keySequenceText == null) || (keySequenceText.length() == 0)) { keySequenceText = memento.getString(ATTRIBUTE_STRING); if ((keySequenceText == null) || (keySequenceText.length() == 0)) { /* * The key sequence should never be null. This is * pointless */ final String message = "Key bindings need a key sequence or string: '" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } // The key sequence is in the old-style format. keySequence = convert2_1Sequence(parse2_1Sequence(keySequenceText)); } else { // The key sequence is in the new-style format. try { keySequence = KeySequence.getInstance(keySequenceText); } catch (final ParseException e) { final String message = "Could not parse: '" //$NON-NLS-1$ + keySequenceText + "': '" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } if (keySequence.isEmpty() || !keySequence.isComplete()) { final String message = "Key bindings cannot use an empty or incomplete key sequence: '" //$NON-NLS-1$ + keySequence + "': '" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } } // Read out the locale and platform. String locale = memento.getString(ATTRIBUTE_LOCALE); if ((locale != null) && (locale.length() == 0)) { locale = null; } String platform = memento.getString(ATTRIBUTE_PLATFORM); if ((platform != null) && (platform.length() == 0)) { platform = null; } final Binding binding = new KeyBinding(keySequence, commandId, schemeId, contextId, locale, platform, null, Binding.USER); bindingManager.addBinding(binding); } } // If there were any warnings, then log them now. if (warningsToLog != null) { final String message = "Warnings while parsing the key bindings from the preference store."; //$NON-NLS-1$ final IStatus status = new MultiStatus( WorkbenchPlugin.PI_WORKBENCH, 0, (IStatus[]) warningsToLog .toArray(new IStatus[warningsToLog.size()]), message, null); WorkbenchPlugin.log(message, status); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 918, 855, 10497, 1265, 12377, 12, 1082, 202, 6385, 6246, 820, 83, 12750, 16, 727, 15689, 1318, 5085, 1318, 13, 288, 202, 202, 20308, 1082, 380, 971, 4573, 16, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 918, 855, 10497, 1265, 12377, 12, 1082, 202, 6385, 6246, 820, 83, 12750, 16, 727, 15689, 1318, 5085, 1318, 13, 288, 202, 202, 20308, 1082, 380, 971, 4573, 16, 333, ...
update("shutdown");
update("shutdown;");
public void drop() { if (m_server != null) m_server.stop(); update("shutdown"); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/7fc2867031a646336a69eb6ad11ecd8b103f983e/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3640, 1435, 288, 3639, 309, 261, 81, 67, 3567, 480, 446, 13, 5411, 312, 67, 3567, 18, 5681, 5621, 3639, 1089, 2932, 15132, 4868, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 3640, 1435, 288, 3639, 309, 261, 81, 67, 3567, 480, 446, 13, 5411, 312, 67, 3567, 18, 5681, 5621, 3639, 1089, 2932, 15132, 4868, 1769, 565, 289, 2, -100, -100, -100, -100, -1...
}
public String toString(Instances t) { int i; int cindex = t.classIndex(); StringBuffer text = new StringBuffer(); for (i=0;i<attributes.length;i++) { if (i != cindex) { int l = t.attribute(i).name().length(); if (missing[i]) { text.append("? "); for (int j=0;j<(l-1);j++) { text.append(" "); } } else { String ss = t.attribute(i).value((int)attributes[i]); StringBuffer sb = new StringBuffer(ss); if (l < ss.length()) { sb.setLength(l); } else { for (int j=0;j < (l-ss.length()); j++) { sb.append(" "); } } text.append(sb.toString()+" "); } } } return text.toString(); }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/52dc75274e5c7f04e244a7575c102dd477a1ee27/DecisionTable.java/buggy/trunk/weka/classifiers/rules/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 12, 5361, 268, 13, 288, 1377, 509, 277, 31, 1377, 509, 276, 1615, 273, 268, 18, 1106, 1016, 5621, 1377, 6674, 977, 273, 394, 6674, 5621, 5411, 364, 261, 77, 33, 20, 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, 514, 1762, 12, 5361, 268, 13, 288, 1377, 509, 277, 31, 1377, 509, 276, 1615, 273, 268, 18, 1106, 1016, 5621, 1377, 6674, 977, 273, 394, 6674, 5621, 5411, 364, 261, 77, 33, 20, 3...
}
}
public boolean isSelected( HttpServletRequest req ) { boolean selected = false; HttpSession ses = req.getSession(false); // first look for menu state in request params, then attributes String itemKey = req.getParameter(RollerMenuModel.MENU_ITEM_KEY ); if (null == itemKey) { itemKey = (String)req.getAttribute(RollerMenuModel.MENU_ITEM_KEY); } ActionMapping amapping = (ActionMapping)req.getAttribute(Globals.MAPPING_KEY); if (itemKey != null && itemKey.equals(mName)) { selected = true; } else if (mForward != null && amapping != null) { ServletContext ctx = RollerContext.getServletContext(); ModuleConfig mConfig = RequestUtils.getModuleConfig(req, ctx); List fconfigs = new ArrayList(); fconfigs.add(mConfig.findForwardConfig(mForward)); if (mSubforwards != null) { String[] subforwards = mSubforwards.split(","); for (int i=0; i<subforwards.length; i++) { fconfigs.add(mConfig.findForwardConfig(subforwards[i])); } } for (Iterator iter = fconfigs.iterator(); iter.hasNext();) { ForwardConfig fconfig = (ForwardConfig)iter.next(); String fwdPath = fconfig.getPath(); int end = fwdPath.indexOf(".do"); fwdPath = (end == -1) ? fwdPath : fwdPath.substring(0, end); if (fwdPath.equals(amapping.getPath())) { selected = true; break; } } } // still not found, look for menu state in session attributes if (ses != null && selected) { ses.setAttribute(mMenuId+"_"+RollerMenuModel.MENU_ITEM_KEY, mName); } return selected; }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/b326cd23d23aa6ea7acc2f016ad1f8b19c974a8a/MenuItemImpl.java/clean/src/org/apache/roller/ui/core/tags/menu/MenuItemImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20956, 12, 9984, 1111, 262, 202, 95, 202, 202, 6494, 3170, 273, 629, 31, 3639, 26166, 24138, 273, 1111, 18, 588, 2157, 12, 5743, 1769, 7734, 368, 1122, 2324, 364, 3824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20956, 12, 9984, 1111, 262, 202, 95, 202, 202, 6494, 3170, 273, 629, 31, 3639, 26166, 24138, 273, 1111, 18, 588, 2157, 12, 5743, 1769, 7734, 368, 1122, 2324, 364, 3824, ...
cancel("No Corefile selected", ICDTLaunchConfigurationConstants.ERR_NO_COREFILE);
cancel(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.No_Corefile_selected"), ICDTLaunchConfigurationConstants.ERR_NO_COREFILE);
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask("Launching postmortem debugger", IProgressMonitor.UNKNOWN); // check for cancellation if (monitor.isCanceled()) { return; } IFile exeFile = getProgramFile(config); ICDebugConfiguration debugConfig = getDebugConfig(config); ICDISession dsession = null; ICProject cproject = getCProject(config); IPath corefile = getCoreFilePath((IProject) cproject.getResource()); if (corefile == null) { cancel("No Corefile selected", ICDTLaunchConfigurationConstants.ERR_NO_COREFILE); } Process debugger = null; IProcess debuggerProcess = null; try { dsession = debugConfig.getDebugger().createCoreSession(config, exeFile, corefile); debugger = dsession.getSessionProcess(); } catch (CDIException e) { abort("Failed Launching CDI Debugger", e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); } if ( debugger != null ) { debuggerProcess = DebugPlugin.newProcess(launch, debugger, "Debug Console"); launch.removeProcess(debuggerProcess); } // set the source locator setSourceLocator(launch, config); CDebugModel.newCoreFileDebugTarget( launch, dsession.getCurrentTarget(), renderTargetLabel(debugConfig), debuggerProcess, exeFile); monitor.done(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e18d7494d05c2df37d92c9fd60d82ec6edb98ab2/CoreFileLaunchDelegate.java/buggy/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CoreFileLaunchDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, ...
if( formatStr==null ) format = NumberFormat.getInstance( locale ); else {
if( formatStr!=null ) {
protected String formatValue(Object valueToFormat) throws JspException { Format format = null; Object value = valueToFormat; Locale locale = RequestUtils.retrieveUserLocale( pageContext, this.localeKey ); if ( value instanceof java.lang.String ) { return (String)value; } else if ( value instanceof Number ) { boolean formatStrFromResources = false; if( formatStr==null ) { if( ( value instanceof Byte ) || ( value instanceof Short ) || ( value instanceof Integer ) || ( value instanceof Long ) || ( value instanceof BigInteger ) ) formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, INT_FORMAT_KEY ); else if( ( value instanceof Float ) || ( value instanceof Double ) || ( value instanceof BigDecimal ) ) formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, FLOAT_FORMAT_KEY ); if( formatStr!=null ) formatStrFromResources = true; } if( formatStr==null ) format = NumberFormat.getInstance( locale ); else { try { format = NumberFormat.getNumberInstance( locale ); if( formatStrFromResources ) ( ( DecimalFormat ) format ).applyLocalizedPattern( formatStr ); else ( ( DecimalFormat ) format ).applyPattern( formatStr ); } catch( IllegalArgumentException _e ) { JspException e = new JspException(messages.getMessage("write.format", formatStr)); RequestUtils.saveException(pageContext, e); throw e; } } } else if ( value instanceof java.util.Date ) { if( formatStr==null ) { if ( value instanceof java.sql.Timestamp ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, TIMESTAMP_FORMAT_KEY ); } else if ( value instanceof java.sql.Date ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, DATE_FORMAT_KEY ); } else if ( value instanceof java.sql.Time ) { formatStr = RequestUtils.message(pageContext, this.bundle, this.localeKey, TIME_FORMAT_KEY ); } } if( formatStr!=null ) format = new SimpleDateFormat( formatStr, locale ); } if( format!=null ) return format.format( value ); else return value.toString(); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/c46d980a8aca226532311c621cc01785fe8e906a/WriteTag.java/clean/src/share/org/apache/struts/taglib/bean/WriteTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 740, 620, 12, 921, 30605, 1630, 13, 1216, 27485, 288, 3639, 4077, 740, 273, 446, 31, 3639, 1033, 460, 273, 30605, 1630, 31, 3639, 6458, 2573, 273, 1567, 1989, 18, 17466, 1299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 740, 620, 12, 921, 30605, 1630, 13, 1216, 27485, 288, 3639, 4077, 740, 273, 446, 31, 3639, 1033, 460, 273, 30605, 1630, 31, 3639, 6458, 2573, 273, 1567, 1989, 18, 17466, 1299, ...
public Rectangle getTrimRect(Composite window, int side) {
public Rectangle getTrimRect(Composite window, int areaId) {
public Rectangle getTrimRect(Composite window, int side) { Rectangle bb = window.getBounds(); Rectangle cr = window.getClientArea(); Rectangle tr = window.computeTrim(cr.x, cr.y, cr.width, cr.height); // Place the Client Area 'within' its window Geometry.moveRectangle(cr, new Point(bb.x - tr.x, bb.y - tr.y)); int[] trimSizes = getTrimSizes(cr.width, cr.height); // Adjust the trim sizes to incorporate the margins for sides that // don't currently have trim if (trimSizes[TOP] == 0) trimSizes[TOP] = marginHeight; if (trimSizes[BOTTOM] == 0) trimSizes[BOTTOM] = marginHeight; if (trimSizes[LEFT] == 0) trimSizes[LEFT] = marginWidth; if (trimSizes[RIGHT] == 0) trimSizes[RIGHT] = marginWidth; Rectangle trimRect = new Rectangle(0, 0, 0, 0); int layoutSide = convertSwtConstantToAreaId(side); switch (layoutSide) { case TOP: trimRect.x = cr.x; trimRect.width = cr.width; trimRect.y = cr.y; trimRect.height = trimSizes[TOP]; break; case BOTTOM: trimRect.x = cr.x; trimRect.width = cr.width; trimRect.y = (cr.y + cr.height) - trimSizes[BOTTOM]; trimRect.height = trimSizes[BOTTOM]; break; case LEFT: trimRect.x = cr.x; trimRect.width = trimSizes[LEFT]; trimRect.y = cr.y + trimSizes[TOP]; trimRect.height = cr.height - (trimSizes[TOP] + trimSizes[BOTTOM]); break; case RIGHT: trimRect.x = (cr.x + cr.width) - trimSizes[RIGHT]; trimRect.width = trimSizes[RIGHT]; trimRect.y = cr.y + trimSizes[TOP]; trimRect.height = cr.height - (trimSizes[TOP] + trimSizes[BOTTOM]); break; } return trimRect; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c02ce808ddcd3a887071a5c31104b81c396819e2/TrimLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13264, 336, 14795, 6120, 12, 9400, 2742, 16, 509, 4889, 13, 288, 202, 202, 19463, 7129, 273, 2742, 18, 588, 5694, 5621, 202, 202, 19463, 4422, 273, 2742, 18, 588, 1227, 5484, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13264, 336, 14795, 6120, 12, 9400, 2742, 16, 509, 4889, 13, 288, 202, 202, 19463, 7129, 273, 2742, 18, 588, 5694, 5621, 202, 202, 19463, 4422, 273, 2742, 18, 588, 1227, 5484, ...
return UNCHANGED;
return DefUseEffect.UNCHANGED;
private static byte intBitsAsFloat(OPT_Instruction s) { if (CF_FLOAT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, FLOAT_MOVE, Unary.getClearResult(s), FC(Float.intBitsToFloat(val))); return MOVE_FOLDED; } } return UNCHANGED; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1160, 509, 6495, 1463, 4723, 12, 15620, 67, 11983, 272, 13, 288, 565, 309, 261, 8955, 67, 15640, 13, 288, 1377, 16456, 67, 10265, 1061, 273, 20324, 18, 588, 3053, 12, 87, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1160, 509, 6495, 1463, 4723, 12, 15620, 67, 11983, 272, 13, 288, 565, 309, 261, 8955, 67, 15640, 13, 288, 1377, 16456, 67, 10265, 1061, 273, 20324, 18, 588, 3053, 12, 87, 176...
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen();
public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen();
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationInstructionAck.java/buggy/src/java/src/quickfix/fix44/AllocationInstructionAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 28799, 1528, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 460, 273, 394, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 28799, 1528, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 460, 273, 394, 235...
String style = "solid"; switch (area.getRuleStyle()) { case EN_DOTTED: style = "dotted"; break; case EN_DASHED: style = "dashed"; break; case EN_SOLID: break; case EN_DOUBLE: style = "double"; break; case EN_GROOVE: style = "groove"; break; case EN_RIDGE: style = "ridge"; break; case EN_NONE: style = "none"; break; default: style = "--NYI--"; }
protected void renderLeader(Leader area) { String style = "solid"; switch (area.getRuleStyle()) { case EN_DOTTED: style = "dotted"; break; case EN_DASHED: style = "dashed"; break; case EN_SOLID: break; case EN_DOUBLE: style = "double"; break; case EN_GROOVE: style = "groove"; break; case EN_RIDGE: style = "ridge"; break; case EN_NONE: style = "none"; break; default: style = "--NYI--"; } atts.clear(); addAreaAttributes(area); addTraitAttributes(area); addAttribute("offset", area.getOffset()); addAttribute("ruleStyle", style); addAttribute("ruleThickness", area.getRuleThickness()); startElement("leader", atts); endElement("leader"); super.renderLeader(area); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a6b0f3efb8f28af85523dc007893ad08157c5635/XMLRenderer.java/buggy/src/java/org/apache/fop/render/xml/XMLRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1743, 15254, 12, 15254, 5091, 13, 288, 3639, 514, 2154, 273, 315, 30205, 14432, 3639, 1620, 261, 5036, 18, 588, 2175, 2885, 10756, 288, 5411, 648, 6693, 67, 17591, 6404, 30, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 15254, 12, 15254, 5091, 13, 288, 3639, 514, 2154, 273, 315, 30205, 14432, 3639, 1620, 261, 5036, 18, 588, 2175, 2885, 10756, 288, 5411, 648, 6693, 67, 17591, 6404, 30, 77...
return page.openStream();
URLConnection conn = page.openConnection(); String type = conn.getContentType(); if (type != null) setContentType(type); InputStream stream = conn.getInputStream(); return new BufferedInputStream(stream);
protected InputStream getStream(URL page) throws IOException { return page.openStream(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/JEditorPane.java/buggy/core/src/classpath/javax/javax/swing/JEditorPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 225, 5037, 13741, 12, 1785, 1363, 13, 565, 1216, 1860, 1377, 288, 202, 565, 1976, 1952, 1487, 273, 1363, 18, 3190, 1952, 5621, 225, 514, 618, 273, 1487, 18, 588, 8046, 5621, 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, 282, 4750, 225, 5037, 13741, 12, 1785, 1363, 13, 565, 1216, 1860, 1377, 288, 202, 565, 1976, 1952, 1487, 273, 1363, 18, 3190, 1952, 5621, 225, 514, 618, 273, 1487, 18, 588, 8046, 5621, 309, ...
vPhaseReport.addElement(r); vPhaseReport.addAll( destroyEntity(swarmer, "a watery grave", false));
addReport(r); addReport( destroyEntity(swarmer, "a watery grave", false));
private void drownSwarmer(Entity entity, Coords pos) { // Any swarming infantry will be destroyed. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Only *platoons* drown while swarming. if (!(swarmer instanceof BattleArmor)) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setPosition( pos ); Report r = new Report(2165); r.subject = entity.getId(); r.indent(); r.add(entity.getShortName(), true); vPhaseReport.addElement(r); vPhaseReport.addAll( destroyEntity(swarmer, "a watery grave", false)); entityUpdate( swarmerId ); } } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 302, 26253, 55, 905, 6592, 12, 1943, 1522, 16, 10320, 87, 949, 13, 288, 3639, 368, 5502, 272, 905, 11987, 8286, 304, 698, 903, 506, 17689, 18, 3639, 727, 509, 272, 905, 6592,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 302, 26253, 55, 905, 6592, 12, 1943, 1522, 16, 10320, 87, 949, 13, 288, 3639, 368, 5502, 272, 905, 11987, 8286, 304, 698, 903, 506, 17689, 18, 3639, 727, 509, 272, 905, 6592,...
manager.update(true);
updateManager(manager);
public WorkbenchActivitySupport() { mutableActivityManager = ActivityManagerFactory.getMutableActivityManager(); proxyActivityManager = new ProxyActivityManager(mutableActivityManager); mutableActivityManager.addActivityManagerListener(new IActivityManagerListener() { private Set lastEnabled = new HashSet(mutableActivityManager.getEnabledActivityIds()); /* (non-Javadoc) * @see org.eclipse.ui.activities.IActivityManagerListener#activityManagerChanged(org.eclipse.ui.activities.ActivityManagerEvent) */ public void activityManagerChanged(ActivityManagerEvent activityManagerEvent) { Set activityIds = mutableActivityManager.getEnabledActivityIds(); // only update the windows if we've not processed this new enablement state already. if (!activityIds.equals(lastEnabled)) { lastEnabled = new HashSet(activityIds); // refresh the managers on all windows. IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { if (windows[i] instanceof WorkbenchWindow) { final WorkbenchWindow window = (WorkbenchWindow) windows[i]; WorkbenchJob job = new WorkbenchJob(window.getShell().getDisplay(), ActivityMessages.getString("ManagerJob")) { //$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { IContributionManager manager = window.getMenuBarManager(); if (manager != null) manager.update(true); manager = window.getCoolBarManager(); if (manager != null) manager.update(true); manager = window.getToolBarManager(); if (manager != null) manager.update(true); manager = window.getStatusLineManager(); if (manager != null) manager.update(true); return Status.OK_STATUS; } }; job.setSystem(true); job.schedule(); } } } } }); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4dd90155ddf8107b3b465a7558ab3121d6bd2652/WorkbenchActivitySupport.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ws/WorkbenchActivitySupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4147, 22144, 6193, 6289, 1435, 288, 202, 202, 5146, 6193, 1318, 273, 9621, 20012, 18, 588, 19536, 6193, 1318, 5621, 202, 202, 5656, 6193, 1318, 273, 394, 7659, 6193, 1318, 12, 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, 4147, 22144, 6193, 6289, 1435, 288, 202, 202, 5146, 6193, 1318, 273, 9621, 20012, 18, 588, 19536, 6193, 1318, 5621, 202, 202, 5656, 6193, 1318, 273, 394, 7659, 6193, 1318, 12, 5...
Statistics stats = calcium.getStats();
StatsGlobal stats = calcium.getStatsGlobal();
public void solve(){ ResourceManager manager= new ProActiveManager(descriptorPath, nameVN); //ResourceManager manager= new MultiThreadedManager(1); this.root = new Farm<SciTask>(new Seq<SciTask>(new SciExecute())); Calcium<SciTask> calcium = new Calcium<SciTask>(manager, root); SciTask sciTask; for(int i=0; i<10; i++){ sciTask = new SciTask("ScilabTask" + i); SciDoubleMatrix sciMatrix = new SciDoubleMatrix("M", 1, 1, new double[]{i}); sciTask.addDataIn(sciMatrix); sciTask.addDataOut(sciMatrix); sciTask.setJob(sciMatrix.getName() + "=" + sciMatrix.getName() + "* 2;"); calcium.inputParameter(sciTask); } calcium.eval(); try { SciTask res = calcium.getResult(); while(res != null){ for(int i=0; i< res.getListDataOut().size(); i++){ SciData sciData = (SciData) res.getListDataOut().get(i); System.out.println(sciData.toString()); } res = calcium.getResult(); } } catch (ParameterException e) { e.printStackTrace(); } catch (PanicException e) { e.printStackTrace(); } Statistics stats = calcium.getStats(); System.out.println(stats); }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/ee6019fbaaf0ddee12dede81b2ba96d9c0b6d5c0/SciTestCalcium.java/clean/src/org/objectweb/proactive/ext/scilab/test/SciTestCalcium.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12439, 1435, 95, 202, 202, 1420, 1318, 3301, 33, 394, 1186, 3896, 1318, 12, 12628, 743, 16, 508, 58, 50, 1769, 202, 202, 759, 1420, 1318, 3301, 33, 394, 5991, 1315, 20528...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12439, 1435, 95, 202, 202, 1420, 1318, 3301, 33, 394, 1186, 3896, 1318, 12, 12628, 743, 16, 508, 58, 50, 1769, 202, 202, 759, 1420, 1318, 3301, 33, 394, 5991, 1315, 20528...
public void applyFix(Project project, ProblemDescriptor descriptor) {
public void applyFix(@NotNull Project project, ProblemDescriptor descriptor) {
public static LocalQuickFix createEditFileTemplateFix(final FileTemplate templateToEdit, final LocalQuickFix replaceTemplateFix) { return new LocalQuickFix() { public String getName() { return InspectionsBundle.message("default.file.template.edit.template"); } public String getFamilyName() { return getName(); } public void applyFix(Project project, ProblemDescriptor descriptor) { final FileTemplateConfigurable configurable = new FileTemplateConfigurable(); SwingUtilities.invokeLater(new Runnable(){ public void run() { configurable.setTemplate(templateToEdit, null); } }); boolean ok = ShowSettingsUtil.getInstance().editConfigurable(project, configurable); if (ok) { replaceTemplateFix.applyFix(project, descriptor); } } }; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/5e3bf238da74cceaaf2e526c0df625a68f8895a5/DefaultFileTemplateUsageInspection.java/buggy/inspections/impl/com/intellij/codeInspection/defaultFileTemplateUsage/DefaultFileTemplateUsageInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3566, 13663, 8585, 752, 4666, 812, 2283, 8585, 12, 6385, 1387, 2283, 1542, 774, 4666, 16, 727, 3566, 13663, 8585, 1453, 2283, 8585, 13, 288, 565, 327, 394, 3566, 13663, 8585, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3566, 13663, 8585, 752, 4666, 812, 2283, 8585, 12, 6385, 1387, 2283, 1542, 774, 4666, 16, 727, 3566, 13663, 8585, 1453, 2283, 8585, 13, 288, 565, 327, 394, 3566, 13663, 8585, 1...
private String complete(String partial) {
CompletionInfo complete(String partial) {
private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine cl = new CommandLine(partial); String cmd = ""; if (cl.hasNext()) { cmd = cl.next(); if (!cmd.trim().equals("") && cl.hasNext()) try { // get command's help info Class cmdClass = getCommandClass(cmd); Help.Info info = Help.getInfo(cmdClass); // perform completion result = cmd + " " + info.complete(cl); // prepend // command // name and // space // again } catch (ClassNotFoundException ex) { throw new CompletionException( "Command class not found"); } catch (HelpException ex) { ex.printStackTrace(); throw new CompletionException( "Command class not found"); } } if (result == null) // assume this is the alias to be called result = defaultArg.complete(cmd); if (!partial.equals(result) && !dirty) { // performed direct // completion without // listing dirty = true; // indicate we want to have a new prompt for (int i = 0; i < partial.length() + currentPrompt.length(); i++) System.out.print("\b"); // clear line (cheap approach) } } catch (CompletionException ex) { System.out.println(); // next line System.err.println(ex.getMessage()); // print the error (optional) // this debug output is to trace where the Exception came from //ex.printStackTrace(System.err); result = partial; // restore old value dirty = true; // we need a new prompt } if (dirty) { dirty = false; System.out.print(currentPrompt + result); // print the prompt and go // on with normal // operation } return result; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/f2385c6a19065b00b78132ca332505dc23e536aa/CommandShell.java/buggy/shell/src/shell/org/jnode/shell/CommandShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 20735, 966, 3912, 12, 780, 4702, 13, 288, 3639, 368, 18975, 358, 444, 326, 783, 13220, 358, 333, 5972, 3639, 775, 288, 5411, 19433, 1989, 18, 588, 13220, 1318, 7675, 4861, 13220, 12, 2211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20735, 966, 3912, 12, 780, 4702, 13, 288, 3639, 368, 18975, 358, 444, 326, 783, 13220, 358, 333, 5972, 3639, 775, 288, 5411, 19433, 1989, 18, 588, 13220, 1318, 7675, 4861, 13220, 12, 2211...
this.className = className; this.methodName = methodName; this.methodSignature = methodSignature; this.isStatic = isStatic;
super(className, methodName, methodSignature, isStatic);
public MethodDescriptor(String className, String methodName, String methodSignature, boolean isStatic) { this.className = className; this.methodName = methodName; this.methodSignature = methodSignature; this.isStatic = isStatic; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/e92ee72b5d271951d67eec672917038dff687320/MethodDescriptor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/classfile/MethodDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2985, 3187, 12, 780, 2658, 16, 514, 4918, 16, 514, 707, 5374, 16, 1250, 16116, 13, 288, 202, 202, 2211, 18, 12434, 273, 2658, 31, 202, 202, 2211, 18, 2039, 461, 273, 4918, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2985, 3187, 12, 780, 2658, 16, 514, 4918, 16, 514, 707, 5374, 16, 1250, 16116, 13, 288, 202, 202, 2211, 18, 12434, 273, 2658, 31, 202, 202, 2211, 18, 2039, 461, 273, 4918, 3...
public void accept(Visitor visitor)
public void accept( Visitor visitor )
public void accept(Visitor visitor) { visitor.visit(this); }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/dafd3898f12439bed0508a098c5a5f235ef5b6d2/DefaultMultiplyExpr.java/clean/jaxen/src/java/main/org/jaxen/expr/DefaultMultiplyExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2791, 12, 17360, 8000, 262, 565, 288, 3639, 8000, 18, 11658, 12, 2211, 1769, 565, 289, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2791, 12, 17360, 8000, 262, 565, 288, 3639, 8000, 18, 11658, 12, 2211, 1769, 565, 289, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
list = substringEnumerator.enumerate( ( SubstringNode ) leaf );
list = substringEnumerator.enumerate( leaf );
public NamingEnumeration enumerate( ExprNode node ) throws NamingException { NamingEnumeration list = null; if ( node instanceof ScopeNode ) { list = scopeEnumerator.enumerate( ( ScopeNode ) node ); } else if ( node instanceof AssertionNode ) { throw new IllegalArgumentException( "Cannot produce enumeration " + "on an AssertionNode" ); } else if ( node.isLeaf() ) { LeafNode leaf = ( LeafNode ) node; switch( leaf.getAssertionType() ) { case( LeafNode.APPROXIMATE ): list = enumEquality( ( SimpleNode ) node ); break; case( LeafNode.EQUALITY ): list = enumEquality( ( SimpleNode ) node ); break; case( LeafNode.EXTENSIBLE ): // N O T I M P L E M E N T E D Y E T ! throw new NotImplementedException(); case( LeafNode.GREATEREQ ): list = enumGreater( ( SimpleNode ) node, true ); break; case( LeafNode.LESSEQ ): list = enumGreater( ( SimpleNode ) node, false ); break; case( LeafNode.PRESENCE ): list = enumPresence( ( PresenceNode ) node ); break; case( LeafNode.SUBSTRING ): list = substringEnumerator.enumerate( ( SubstringNode ) leaf ); break; default: throw new IllegalArgumentException( "Unknown leaf assertion" ); } } else { BranchNode branch = ( BranchNode ) node; switch( branch.getOperator() ) { case( BranchNode.AND ): list = enumConj( branch ); break; case( BranchNode.NOT ): list = enumNeg( branch ); break; case( BranchNode.OR ): list = enumDisj( branch ); break; default: throw new IllegalArgumentException( "Unknown branch logical operator" ); } } return list; }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/729f3ff316fb0d10b5043e5d9d0d5268622146f8/ExpressionEnumerator.java/clean/core/src/main/java/org/apache/ldap/server/db/ExpressionEnumerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18884, 21847, 4241, 12, 8074, 907, 756, 262, 1216, 26890, 565, 288, 3639, 18884, 21847, 666, 273, 446, 31, 3639, 309, 261, 756, 1276, 5468, 907, 262, 3639, 288, 5411, 666, 273, 2146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18884, 21847, 4241, 12, 8074, 907, 756, 262, 1216, 26890, 565, 288, 3639, 18884, 21847, 666, 273, 446, 31, 3639, 309, 261, 756, 1276, 5468, 907, 262, 3639, 288, 5411, 666, 273, 2146...
void addCachedProcedure(String key, String sql, ProcEntry proc) { super.addCachedProcedure(key, sql, proc);
void addCachedProcedure(String key, ProcEntry proc) { super.addCachedProcedure(key, proc);
void addCachedProcedure(String key, String sql, ProcEntry proc) { super.addCachedProcedure(key, sql, proc); addCachedProcedure(key); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/b5cd15c90fe3726d847f9deada42484508574c70/ConnectionJDBC3.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC3.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 9839, 17213, 12, 780, 498, 16, 514, 1847, 16, 18470, 1622, 5418, 13, 288, 3639, 2240, 18, 1289, 9839, 17213, 12, 856, 16, 1847, 16, 5418, 1769, 3639, 527, 9839, 17213, 12, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 9839, 17213, 12, 780, 498, 16, 514, 1847, 16, 18470, 1622, 5418, 13, 288, 3639, 2240, 18, 1289, 9839, 17213, 12, 856, 16, 1847, 16, 5418, 1769, 3639, 527, 9839, 17213, 12, 856...
FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush();
FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOException ioe) { } finally { if(null != bw) { try { bw.close(); } catch(IOException ioe) { }
protected void saveSuiteContent(final File file, final XMLStringBuffer content) { FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); bw.write(content.getStringBuffer().toString()); bw.flush(); } catch(IOException ioe) { } finally { if(null != bw) { try { bw.close(); } catch(IOException ioe) { } } if(null != fw) { try { fw.close(); } catch(IOException ioe) { } } } }
55140 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55140/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/clean/src/main/org/testng/eclipse/util/CustomSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1923, 13587, 1350, 12, 6385, 1387, 585, 16, 727, 3167, 780, 1892, 913, 13, 288, 1377, 24639, 7600, 33, 446, 31, 1377, 22490, 12986, 33, 446, 31, 1377, 775, 288, 3639, 7600, 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, 4750, 918, 1923, 13587, 1350, 12, 6385, 1387, 585, 16, 727, 3167, 780, 1892, 913, 13, 288, 1377, 24639, 7600, 33, 446, 31, 1377, 22490, 12986, 33, 446, 31, 1377, 775, 288, 3639, 7600, 3...
sql.append('\\').append('r');
buf[len++] = '\\'; buf[len++] = 'r';
protected static String sqlEscape(String str) { if (str.length() == 0) return "''"; //TODO "NULL",too ? final int len = str.length(); StringBuffer sql = new StringBuffer(len * 2); synchronized (sql) { //only for StringBuffer sql.append('\''); for (int i = 0; i < len; i++) { char c = str.charAt(i); switch (c) { case '\u0000': sql.append('\\').append('0'); break; case '\n': sql.append('\\').append('n'); break; case '\r': sql.append('\\').append('r'); break; case '\u001a': sql.append('\\').append('Z'); break; case '"': case '\'': case '\\': sql.append('\\'); // fall through default: sql.append(c); break; } } sql.append('\''); return sql.toString(); } }
14299 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14299/1011df0c6bac238574246588263d7bc9627c321d/SqlWriter.java/buggy/src/org/mediawiki/importer/SqlWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 514, 1847, 8448, 12, 780, 609, 13, 288, 202, 202, 430, 261, 701, 18, 2469, 1435, 422, 374, 13, 1082, 202, 2463, 2491, 4970, 31, 368, 6241, 315, 8560, 3113, 16431, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 514, 1847, 8448, 12, 780, 609, 13, 288, 202, 202, 430, 261, 701, 18, 2469, 1435, 422, 374, 13, 1082, 202, 2463, 2491, 4970, 31, 368, 6241, 315, 8560, 3113, 16431, 692, ...
url = prefix + resp.encodeRedirectURL(encodeParams(req, url));
url = resp.encodeRedirectURL(encodeParams(req, prefix + url));
public static String encodeRedirectURL(HttpServletRequest req, HttpServletResponse resp, String url) { if (s_log.isDebugEnabled()) { s_log.debug("encodeRedirectURL: before: " + url); } if (url.startsWith("/")) { String prefix = DispatcherHelper.getDispatcherServletPath(); url = prefix + resp.encodeRedirectURL(encodeParams(req, url)); } else { url = resp.encodeRedirectURL(encodeParams(req, url)); } if (s_log.isDebugEnabled()) { s_log.debug("encodeRedirectURL: after: " + url); } return url; }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/a5b420add4cf2bf6b4491f432c00a1852102f23d/URLRewriter.java/clean/archive/core-platform/src/com/arsdigita/util/URLRewriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2017, 5961, 1785, 12, 2940, 18572, 1111, 16, 4766, 6647, 12446, 1718, 16, 4766, 6647, 514, 880, 13, 288, 3639, 309, 261, 87, 67, 1330, 18, 291, 2829, 1526, 10756, 288, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2017, 5961, 1785, 12, 2940, 18572, 1111, 16, 4766, 6647, 12446, 1718, 16, 4766, 6647, 514, 880, 13, 288, 3639, 309, 261, 87, 67, 1330, 18, 291, 2829, 1526, 10756, 288, 5...
public void close() throws SQLException { dbConnection.commit(); dbConnection.close(); dbConnection = null;
public synchronized void close() throws SQLException { if (dbConnection != null) { dbConnection.commit(); dbConnection.close(); dbConnection = null; }
public void close() throws SQLException { dbConnection.commit(); dbConnection.close(); dbConnection = null; }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/698d253ae5b5157bcc53223d2bb8aafc01037997/PopulateDb.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/component/PopulateDb.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1435, 1216, 6483, 288, 3639, 1319, 1952, 18, 7371, 5621, 3639, 1319, 1952, 18, 4412, 5621, 3639, 1319, 1952, 273, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1746, 1435, 1216, 6483, 288, 3639, 1319, 1952, 18, 7371, 5621, 3639, 1319, 1952, 18, 4412, 5621, 3639, 1319, 1952, 273, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100...
public void setControlContents(Control control, String contents, int cursorPosition);
public void setControlContents(Control control, String contents, int cursorPosition);
public void setControlContents(Control control, String contents, int cursorPosition);
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f518e8d3acd86253d225a0c479d0ab55464a50a4/IControlContentAdapter.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/IControlContentAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3367, 6323, 12, 3367, 3325, 16, 514, 2939, 16, 509, 3347, 2555, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3367, 6323, 12, 3367, 3325, 16, 514, 2939, 16, 509, 3347, 2555, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent);
RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent);
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 968, 1305, 2250, 1253, 6272, 2250, 12, 54, 10340, 548, 612, 16, 509, 1158, 338, 13, 288, 202, 202, 967, 1305, 2250, 1253, 563, 273, 394, 968, 1305, 2250, 1253, 12, 2211, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 968, 1305, 2250, 1253, 6272, 2250, 12, 54, 10340, 548, 612, 16, 509, 1158, 338, 13, 288, 202, 202, 967, 1305, 2250, 1253, 563, 273, 394, 968, 1305, 2250, 1253, 12, 2211, 16, ...
boolean synPredMatched1258 = false;
boolean synPredMatched50 = false;
public final void value() throws RecognitionException, TokenStreamException { Token s = null; Token n = null; Token m = null; try { // for error handling boolean synPredMatched1254 = false; if (((_tokenSet_15.member(LA(1))) && (LA(2)==NL||LA(2)==ADR) && (_tokenSet_7.member(LA(3))))) { int _m1254 = mark(); synPredMatched1254 = true; inputState.guessing++; try { { switch ( LA(1)) { case HASH_REF: { match(HASH_REF); break; } case SCALAR_REF: { match(SCALAR_REF); break; } case CODE_REF: { match(CODE_REF); break; } case REF: { match(REF); break; } case FILE_REF: { match(FILE_REF); break; } case GLOB: { match(GLOB); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } catch (RecognitionException pe) { synPredMatched1254 = false; } rewind(_m1254); inputState.guessing--; } if ( synPredMatched1254 ) { refs(); } else { boolean synPredMatched1256 = false; if (((LA(1)==STRING) && (LA(2)==NL) && (_tokenSet_10.member(LA(3))))) { int _m1256 = mark(); synPredMatched1256 = true; inputState.guessing++; try { { match(STRING); match(NL); } } catch (RecognitionException pe) { synPredMatched1256 = false; } rewind(_m1256); inputState.guessing--; } if ( synPredMatched1256 ) { s = LT(1); match(STRING); if ( inputState.guessing==0 ) { setVal(s.getText(),"Scalar");printConsole(" VAL:"+s.getText()+"\n"); } match(NL); } else { boolean synPredMatched1258 = false; if (((LA(1)==NUMBER) && (LA(2)==NL) && (_tokenSet_10.member(LA(3))))) { int _m1258 = mark(); synPredMatched1258 = true; inputState.guessing++; try { { match(NUMBER); match(NL); } } catch (RecognitionException pe) { synPredMatched1258 = false; } rewind(_m1258); inputState.guessing--; } if ( synPredMatched1258 ) { n = LT(1); match(NUMBER); if ( inputState.guessing==0 ) { setVal(n.getText(),"Scalar");printConsole(" VAL_NUM:"+n.getText()+"\n"); } match(NL); } else { boolean synPredMatched1260 = false; if (((LA(1)==FILE_HANDLE) && (LA(2)==PAREN_OP) && (LA(3)==PURE_NAME))) { int _m1260 = mark(); synPredMatched1260 = true; inputState.guessing++; try { { match(FILE_HANDLE); } } catch (RecognitionException pe) { synPredMatched1260 = false; } rewind(_m1260); inputState.guessing--; } if ( synPredMatched1260 ) { fileHandle(); match(NL); } else { boolean synPredMatched1262 = false; if (((LA(1)==NL) && (_tokenSet_10.member(LA(2))) && (_tokenSet_7.member(LA(3))))) { int _m1262 = mark(); synPredMatched1262 = true; inputState.guessing++; try { { match(NL); } } catch (RecognitionException pe) { synPredMatched1262 = false; } rewind(_m1262); inputState.guessing--; } if ( synPredMatched1262 ) { match(NL); if ( inputState.guessing==0 ) { setVal("undef","Scalar"); } } else { boolean synPredMatched1265 = false; if (((_tokenSet_16.member(LA(1))) && (_tokenSet_9.member(LA(2))) && ((LA(3) >= ARRAY_NAME && LA(3) <= CHAR_ESC)))) { int _m1265 = mark(); synPredMatched1265 = true; inputState.guessing++; try { { { match(_tokenSet_16); } match(EQ); } } catch (RecognitionException pe) { synPredMatched1265 = false; } rewind(_m1265); inputState.guessing--; } if ( synPredMatched1265 ) { { int _cnt1268=0; _loop1268: do { if ((_tokenSet_16.member(LA(1)))) { { m = LT(1); match(_tokenSet_16); } if ( inputState.guessing==0 ) { appendVal(m.getText()); } } else { if ( _cnt1268>=1 ) { break _loop1268; } else {throw new NoViableAltException(LT(1), getFilename());} } _cnt1268++; } while (true); } match(EQ); { boolean synPredMatched1271 = false; if (((_tokenSet_15.member(LA(1))) && (LA(2)==NL||LA(2)==ADR) && (_tokenSet_7.member(LA(3))))) { int _m1271 = mark(); synPredMatched1271 = true; inputState.guessing++; try { { switch ( LA(1)) { case HASH_REF: { match(HASH_REF); break; } case SCALAR_REF: { match(SCALAR_REF); break; } case CODE_REF: { match(CODE_REF); break; } case REF: { match(REF); break; } case FILE_REF: { match(FILE_REF); break; } case GLOB: { match(GLOB); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } catch (RecognitionException pe) { synPredMatched1271 = false; } rewind(_m1271); inputState.guessing--; } if ( synPredMatched1271 ) { refs(); } else if (((LA(1) >= ARRAY_NAME && LA(1) <= CHAR_ESC)) && (_tokenSet_7.member(LA(2))) && (_tokenSet_7.member(LA(3)))) { val_nonl(); match(NL); } else { throw new NoViableAltException(LT(1), getFilename()); } } } else if (((LA(1) >= ARRAY_NAME && LA(1) <= CHAR_ESC)) && (_tokenSet_7.member(LA(2))) && (_tokenSet_7.member(LA(3)))) { val_nonl(); match(NL); } else { throw new NoViableAltException(LT(1), getFilename()); } }}}}} } catch (RecognitionException ex) { if (inputState.guessing==0) { reportError(ex); consume(); consumeUntil(_tokenSet_10); } else { throw ex; } } }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/a218f60abae15bc939b1dd72416a2f89a981f921/PerlParserSimple.java/clean/org.epic.debug/src/org/epic/debug/varparser/PerlParserSimple.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 460, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 1345, 225, 272, 273, 446, 31, 202, 202, 1345, 225, 290, 273, 446, 31, 202, 202, 1345, 225, 312, 273, 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, 225, 202, 482, 727, 918, 460, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 1345, 225, 272, 273, 446, 31, 202, 202, 1345, 225, 290, 273, 446, 31, 202, 202, 1345, 225, 312, 273, 44...
assertEquals(query.toString(), TemplateHelper.getPrecomputeQuery(t, indexes).toString());
String precomputeQuery = TemplateHelper.getPrecomputeQuery(t, indexes).toString(); assertEquals(expIql, precomputeQuery);
public void testPrecomputeQuery() throws Exception { Iterator i = templates.keySet().iterator(); TemplateQuery t = (TemplateQuery) templates.get("employeeByName"); String queryXml = "<query name=\"\" model=\"testmodel\" view=\"Employee Employee.name\"><node path=\"Employee\" type=\"Employee\"></node></query>"; Map pathToQueryNode = new HashMap(); Query query = MainHelper.makeQuery(PathQuery.fromXml(queryXml), new HashMap(), pathToQueryNode); List indexes = new ArrayList(); assertEquals(query.toString(), TemplateHelper.getPrecomputeQuery(t, indexes).toString()); assertTrue(indexes.size() == 1); System.out.println("pathToQueryNode: " + pathToQueryNode); List expIndexes = new ArrayList(Collections.singleton(pathToQueryNode.get("Employee.name"))); assertEquals(expIndexes.toString(), indexes.toString()); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/ea87e0f8bab3b8697066dd362fed78eb38e5acc1/TemplateHelperTest.java/buggy/testmodel/webapp/test/src/org/intermine/web/TemplateHelperTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1386, 9200, 1138, 1435, 1216, 1185, 288, 3639, 4498, 277, 273, 5539, 18, 856, 694, 7675, 9838, 5621, 3639, 5035, 1138, 268, 273, 261, 2283, 1138, 13, 5539, 18, 588, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1386, 9200, 1138, 1435, 1216, 1185, 288, 3639, 4498, 277, 273, 5539, 18, 856, 694, 7675, 9838, 5621, 3639, 5035, 1138, 268, 273, 261, 2283, 1138, 13, 5539, 18, 588, 2932,...
new SynteticCodeBlock(statementsUnderCase, null, mySettings, Formatter.getInstance().createNormalIndent(), null);
new SynteticCodeBlock(statementsUnderCase, null, mySettings, indentUnderCase, null);
private Block createCaseBlock(final List<Block> statementsUnderCase, final AbstractJavaBlock caseBlock) { final SynteticCodeBlock blockUnderCase = statementsUnderCase.isEmpty() ? null : new SynteticCodeBlock(statementsUnderCase, null, mySettings, Formatter.getInstance().createNormalIndent(), null); Block[] caseBlocks = blockUnderCase == null ? new Block[] {caseBlock}: new Block[]{caseBlock, blockUnderCase}; return new SynteticCodeBlock(Arrays.asList(caseBlocks), null, mySettings, Formatter.getInstance().getNoneIndent(), null); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/228fdf97cca863c2bb920e7e0d25a1409f506224/SimpleJavaBlock.java/buggy/source/com/intellij/psi/formatter/newXmlFormatter/java/SimpleJavaBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3914, 752, 2449, 1768, 12, 6385, 987, 32, 1768, 34, 6317, 14655, 2449, 16, 727, 4115, 5852, 1768, 648, 1768, 13, 288, 565, 727, 16455, 496, 7943, 1085, 1768, 1203, 14655, 2449, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3914, 752, 2449, 1768, 12, 6385, 987, 32, 1768, 34, 6317, 14655, 2449, 16, 727, 4115, 5852, 1768, 648, 1768, 13, 288, 565, 727, 16455, 496, 7943, 1085, 1768, 1203, 14655, 2449, 273,...
public void setAttribute(String name, Object value) throws JellyTagException {
public void setAttribute(String name, Object value) throws JellyTagException {
public void setAttribute(String name, Object value) throws JellyTagException { boolean isVariableName = false; if (variableNameAttribute != null ) { if ( variableNameAttribute.equals( name ) ) { if (value == null) { var = null; } else { var = value.toString(); } isVariableName = true; } } if (! isVariableName) { // #### strictly speaking we could // know what attributes are specified at compile time // so this dynamic set is unnecessary setAttributesSet.add(name); // we could maybe implement attribute specific validation here super.setAttribute(name, value); } }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/DynamicBeanTag.java/clean/src/java/org/apache/commons/jelly/impl/DynamicBeanTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4730, 12, 780, 508, 16, 1033, 460, 13, 1216, 804, 292, 715, 1805, 503, 288, 7734, 1250, 353, 21519, 273, 629, 31, 3639, 309, 261, 6105, 461, 1499, 480, 446, 262, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4730, 12, 780, 508, 16, 1033, 460, 13, 1216, 804, 292, 715, 1805, 503, 288, 7734, 1250, 353, 21519, 273, 629, 31, 3639, 309, 261, 6105, 461, 1499, 480, 446, 262, 288, 5411, ...
line.substring(line.lastIndexOf("#") + 1, line.lastIndexOf(" "));
line.substring(line.lastIndexOf("#") + 1, line.lastIndexOf(" "));
protected List parseChangeDescriptions(InputStream is) throws IOException { ArrayList changelists = new ArrayList(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); // Find first Changelist item if there is one. String line; while ((line = readToNotPast(reader, "text: Change", "exit:")) != null) { P4Modification changelist = new P4Modification(); if (line.startsWith("error:")) { throw new IOException("Error reading P4 stream: P4 says: " + line); } else if (line.startsWith("exit: 1")) { throw new IOException("Error reading P4 stream: P4 says: " + line); } else if (line.startsWith("exit: 0")) { return changelists; } else if (line.startsWith("text: Change")) { StringTokenizer st = new StringTokenizer(line); st.nextToken(); // skip 'text:' text st.nextToken(); // skip 'Change' text changelist.revision = st.nextToken(); st.nextToken(); // skip 'by' text // split user@client StringTokenizer st2 = new StringTokenizer(st.nextToken(), "@"); changelist.userName = st2.nextToken(); changelist.client = st2.nextToken(); st.nextToken(); // skip 'on' text String date = st.nextToken() + ":" + st.nextToken(); try { changelist.modifiedTime = P4_REVISION_DATE.parse(date); } catch (ParseException xcp) { changelist.modifiedTime = new Date(); } } line = reader.readLine(); // get past a 'text:' StringBuffer descriptionBuffer = new StringBuffer(); // Use this since we don't want the final (empty) line String previousLine = null; while ((line = reader.readLine()) != null && line.startsWith("text:") && !line.startsWith("text: Affected files ...")) { if (previousLine != null) { if (descriptionBuffer.length() > 0) { descriptionBuffer.append('\n'); } descriptionBuffer.append(previousLine); } try { previousLine = line.substring(5).trim(); } catch (Exception e) { LOG.error( "Error parsing Perforce description, line that caused problem was: [" + line + "]"); } } changelist.comment = descriptionBuffer.toString(); // Ok, read affected files if there are any. if (line != null) { reader.readLine(); // read past next 'text:' while ((line = readToNotPast(reader, "info1:", "text:")) != null && line.startsWith("info1:")) { String fileName = line.substring(7, line.lastIndexOf(" ") - 2); Modification.ModifiedFile affectedFile = changelist.createModifiedFile(fileName, null); affectedFile.action = line.substring(line.lastIndexOf(" ") + 1); affectedFile.revision = line.substring(line.lastIndexOf("#") + 1, line.lastIndexOf(" ")); } } changelists.add(changelist); } return changelists; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/594e3ced43d14271b52c531473a684ef0242bd67/P4.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/P4.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 1109, 3043, 16844, 12, 4348, 353, 13, 1216, 1860, 288, 3639, 2407, 9435, 292, 1486, 273, 394, 2407, 5621, 3639, 10633, 2949, 273, 394, 10633, 12, 2704, 15322, 12, 291, 10019, 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, 4750, 987, 1109, 3043, 16844, 12, 4348, 353, 13, 1216, 1860, 288, 3639, 2407, 9435, 292, 1486, 273, 394, 2407, 5621, 3639, 10633, 2949, 273, 394, 10633, 12, 2704, 15322, 12, 291, 10019, 3...
auth = new Authentication(); auth.setEmail(properties.getProperty("email")); auth.setPassword(properties.getProperty("password"));
RequestContext requestContext = RequestContext.getRequestContext(); requestContext.setSharedSecret(properties.getProperty("secret")); AuthInterface authInterface = flickr.getAuthInterface(); Auth auth = authInterface.checkToken(properties.getProperty("token")); requestContext.setAuth(auth);
public void setUp() throws ParserConfigurationException, IOException { Flickr.debugStream = true; InputStream in = null; try { in = getClass().getResourceAsStream("/setup.properties"); Properties properties = new Properties(); properties.load(in); REST rest = new REST(); rest.setHost(properties.getProperty("host")); flickr = new Flickr(properties.getProperty("apiKey"), rest); auth = new Authentication(); auth.setEmail(properties.getProperty("email")); auth.setPassword(properties.getProperty("password")); } finally { IOUtilities.close(in); } }
5074 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5074/ec4da2808f85d9301a1bbf9deec78f08b03a2311/GroupsInterfaceTest.java/buggy/test/src/com/aetrion/flickr/GroupsInterfaceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 1216, 6783, 10737, 16, 1860, 288, 3639, 29458, 18, 4148, 1228, 273, 638, 31, 3639, 5037, 316, 273, 446, 31, 3639, 775, 288, 5411, 316, 273, 2900, 7675, 588, 1420, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 1216, 6783, 10737, 16, 1860, 288, 3639, 29458, 18, 4148, 1228, 273, 638, 31, 3639, 5037, 316, 273, 446, 31, 3639, 775, 288, 5411, 316, 273, 2900, 7675, 588, 1420, ...
return RubyFixnum.newFixnum(filename.getRuntime(), file.length());
return filename.getRuntime().newFixnum(file.length());
public static IRubyObject size(IRubyObject recv, RubyString filename) { File file = new File(filename.getValue()); if (!file.exists()) { throw ErrnoError.getErrnoError(recv.getRuntime(), "ENOENT", "No such file: " + filename.getValue()); } return RubyFixnum.newFixnum(filename.getRuntime(), file.length()); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 963, 12, 7937, 10340, 921, 10665, 16, 19817, 780, 1544, 13, 288, 3639, 1387, 585, 273, 394, 1387, 12, 3459, 18, 24805, 10663, 7734, 309, 16051, 768, 18, 1808...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 963, 12, 7937, 10340, 921, 10665, 16, 19817, 780, 1544, 13, 288, 3639, 1387, 585, 273, 394, 1387, 12, 3459, 18, 24805, 10663, 7734, 309, 16051, 768, 18, 1808...
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(status, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
private void initComponents() { jProgressBar1 = new javax.swing.JProgressBar(); jScrollPane1 = new javax.swing.JScrollPane(); status = new javax.swing.JTextArea(); cancel = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle(L10n.getString("Common.Progress")); status.setBackground(javax.swing.UIManager.getDefaults().getColor("Panel.background")); status.setColumns(20); status.setEditable(false); status.setRows(2); status.setTabSize(2); status.setAutoscrolls(false); status.setBorder(null); status.setEnabled(false); status.setFocusable(false); jScrollPane1.setViewportView(status); cancel.setText(L10n.getString("Common.Cancel")); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE) .add(jProgressBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, cancel)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(jProgressBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancel) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/81aae31bd01a84c0d47500101586f8c72a7e454f/SimpleProgressBar2.java/clean/trunk/src/net/sf/plantlore/common/SimpleProgressBar2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 525, 31547, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 31547, 5621, 3639, 525, 26360, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 26360, 5621, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 525, 31547, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 31547, 5621, 3639, 525, 26360, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 26360, 5621, 363...
public final void emitSTDtoc (int RT, int offset, int Rz) { if (fits(offset, 16)) { emitSTD(RT, offset, JTOC); } else if (0 == (offset&0x8000)) { emitADDIS(Rz, JTOC, offset>>16); emitSTD(RT, offset&0xFFFF, Rz); } else { emitADDIS(Rz, JTOC, (offset>>16)+1); emitSTD(RT, offset|0xFFFF0000, Rz); }
public final void emitSTDtoc (int RT, Offset offset, int Rz) { emitSTDtoc (RT, offset.toInt(), Rz);
public final void emitSTDtoc (int RT, int offset, int Rz) { if (fits(offset, 16)) { emitSTD(RT, offset, JTOC); } else if (0 == (offset&0x8000)) { emitADDIS(Rz, JTOC, offset>>16); emitSTD(RT, offset&0xFFFF, Rz); } else { emitADDIS(Rz, JTOC, (offset>>16)+1); emitSTD(RT, offset|0xFFFF0000, Rz); } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_Assembler.java/clean/rvm/src/vm/arch/powerPC/compilers/baseline/VM_Assembler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 3626, 882, 40, 1391, 261, 474, 13060, 16, 509, 1384, 16, 509, 534, 94, 13, 288, 565, 309, 261, 18352, 12, 3348, 16, 2872, 3719, 288, 1377, 3626, 882, 40, 12, 12185, 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, 282, 1071, 727, 918, 3626, 882, 40, 1391, 261, 474, 13060, 16, 509, 1384, 16, 509, 534, 94, 13, 288, 565, 309, 261, 18352, 12, 3348, 16, 2872, 3719, 288, 1377, 3626, 882, 40, 12, 12185, 16...
protected void processForeignData( IForeignContent foreign )
protected void processForeignData( IForeignContent foreign)
protected void processForeignData( IForeignContent foreign ) { if(foreign.getChildren( )!=null && foreign.getChildren( ).size( )>0) { return; } HashMap styleMap = new HashMap( ); HTMLStyleProcessor htmlProcessor = new HTMLStyleProcessor( this.rootPath ); Object rawValue = foreign.getRawValue(); Document doc = null; if ( null != rawValue ) { doc = new TextParser( ).parse( foreign.getRawValue( ).toString( ), ( String )textTypeMapping.get( foreign.getRawType( ) ) ); } Element body = null; if ( doc != null ) { Node node = doc.getFirstChild( ); //The following must be true if ( node instanceof Element ) { body = (Element) node; } } if ( body != null ) { htmlProcessor.execute( body, styleMap ); processNodes( body, checkEscapeSpace( doc ), styleMap, foreign ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/92d42bda9855f6337d7e0fe61d147296f04f7850/HTML2Content.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 7816, 751, 12, 467, 7816, 1350, 5523, 262, 202, 95, 202, 202, 430, 12, 12774, 18, 588, 4212, 12, 262, 5, 33, 2011, 597, 5523, 18, 588, 4212, 12, 262, 18, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 7816, 751, 12, 467, 7816, 1350, 5523, 262, 202, 95, 202, 202, 430, 12, 12774, 18, 588, 4212, 12, 262, 5, 33, 2011, 597, 5523, 18, 588, 4212, 12, 262, 18, 1467, ...
Token xsp; xsp = jj_scanpos; if (jj_3_3()) { jj_scanpos = xsp; if (jj_3_4()) { jj_scanpos = xsp; if (jj_3_5()) { jj_scanpos = xsp; if (jj_3_6()) { jj_scanpos = xsp; if (jj_3_7()) { jj_scanpos = xsp; if (jj_3_8()) { jj_scanpos = xsp; if (jj_3_9()) { jj_scanpos = xsp; if (jj_3_10()) { jj_scanpos = xsp; if (jj_3_11()) { jj_scanpos = xsp; if (jj_3_12()) { jj_scanpos = xsp; if (jj_3_13()) { jj_scanpos = xsp; if (jj_3_14()) { jj_scanpos = xsp; if (jj_3_15()) { jj_scanpos = xsp; if (jj_3_16()) { jj_scanpos = xsp; if (jj_3_17()) { jj_scanpos = xsp; if (jj_3_18()) return true; } } } } } } } } } } } } } } }
if (jj_scan_token(NOT)) return true; if (jj_3R_43()) return true;
static final private boolean jj_3R_67() { Token xsp; xsp = jj_scanpos; if (jj_3_3()) { jj_scanpos = xsp; if (jj_3_4()) { jj_scanpos = xsp; if (jj_3_5()) { jj_scanpos = xsp; if (jj_3_6()) { jj_scanpos = xsp; if (jj_3_7()) { jj_scanpos = xsp; if (jj_3_8()) { jj_scanpos = xsp; if (jj_3_9()) { jj_scanpos = xsp; if (jj_3_10()) { jj_scanpos = xsp; if (jj_3_11()) { jj_scanpos = xsp; if (jj_3_12()) { jj_scanpos = xsp; if (jj_3_13()) { jj_scanpos = xsp; if (jj_3_14()) { jj_scanpos = xsp; if (jj_3_15()) { jj_scanpos = xsp; if (jj_3_16()) { jj_scanpos = xsp; if (jj_3_17()) { jj_scanpos = xsp; if (jj_3_18()) return true; } } } } } } } } } } } } } } } return false; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/9befe20e19a1c795e3084b85df3ae067ddf49066/ExpressionParser.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9599, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 67, 23, 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, 282, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9599, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 67, 23, 10756, ...
return (String)value;
String v = (String) value; return value == null ? EMPTY_STRING : v;
public String getStringValue() { return (String)value; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6fa98d379b63450495211d7ba640d92d92d75294/Option.java/buggy/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Option.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 27509, 1435, 288, 202, 202, 2463, 261, 780, 13, 1132, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 27509, 1435, 288, 202, 202, 2463, 261, 780, 13, 1132, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sortFields[i] = new SortField(null, SortField.SCORE, !orderSpecs[i]);
sortFields[i] = new SortField(null, SortField.SCORE, orderSpecs[i]);
Hits executeQuery(Query query, QName[] orderProps, boolean[] orderSpecs) throws IOException { try { readWriteLock.readLock().acquire(); } catch (InterruptedException e) { throw new IOException("Unable to obtain read lock on search index."); } SortField[] sortFields = new SortField[orderProps.length]; for (int i = 0; i < orderProps.length; i++) { String prop = null; if (QueryConstants.JCR_SCORE.equals(orderProps[i])) { sortFields[i] = new SortField(null, SortField.SCORE, !orderSpecs[i]); } else { try { prop = orderProps[i].toJCRName(nsMappings); } catch (NoPrefixDeclaredException e) { // will never happen } sortFields[i] = new SortField(prop, SortField.STRING, !orderSpecs[i]); } } Hits hits = null; try { if (sortFields.length > 0) { hits = persistentIndex.getIndexSearcher().search(query, new Sort(sortFields)); } else { hits = persistentIndex.getIndexSearcher().search(query); } } finally { readWriteLock.readLock().release(); } return hits; }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/c5dadbfc99a3c4902ad583a44def11f54c3d5284/SearchIndex.java/buggy/src/java/org/apache/jackrabbit/core/search/lucene/SearchIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 670, 1282, 14304, 12, 1138, 843, 16, 11794, 16723, 8526, 1353, 5047, 16, 11794, 1250, 8526, 1353, 15999, 13, 1216, 1860, 288, 3639, 775, 288, 5411, 855, 3067, 2531, 18, 896, 2531, 7675, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 670, 1282, 14304, 12, 1138, 843, 16, 11794, 16723, 8526, 1353, 5047, 16, 11794, 1250, 8526, 1353, 15999, 13, 1216, 1860, 288, 3639, 775, 288, 5411, 855, 3067, 2531, 18, 896, 2531, 7675, 1...
public final void deletePatch(IPatch bankData, int selectedPatchNum) { deletePatch((Patch) bankData, selectedPatchNum);
protected void deletePatch(Patch single, int patchNum) { setPatchName(single, patchNum, " ");
public final void deletePatch(IPatch bankData, int selectedPatchNum) { deletePatch((Patch) bankData, selectedPatchNum); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/69c1cb99169f53a0628a6dc5e93da046c5780131/BankDriver.java/buggy/JSynthLib/core/BankDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1430, 7332, 12, 2579, 505, 11218, 751, 16, 509, 3170, 7332, 2578, 13, 288, 3639, 1430, 7332, 12443, 7332, 13, 11218, 751, 16, 3170, 7332, 2578, 1769, 565, 289, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1430, 7332, 12, 2579, 505, 11218, 751, 16, 509, 3170, 7332, 2578, 13, 288, 3639, 1430, 7332, 12443, 7332, 13, 11218, 751, 16, 3170, 7332, 2578, 1769, 565, 289, 2, -100, ...
public RubyArray newArray(IRubyObject[] objects);
public RubyArray newArray();
public RubyArray newArray(IRubyObject[] objects);
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/1278c5bb3507a052d150d814f15453542ae41aed/IRuby.java/buggy/src/org/jruby/IRuby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 11653, 12, 7937, 10340, 921, 8526, 2184, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 11653, 12, 7937, 10340, 921, 8526, 2184, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
try { sleep(TIMEOUT); } catch (InterruptedException e) { } }
try { sleep(TIMEOUT); } catch (InterruptedException e) { } }
public void run() { try { sleep(TIMEOUT); } catch (InterruptedException e) { } }
10123 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10123/f0379f8bdbd16177c59938ae9cc120c66d007e75/GeronimoServerBehaviour.java/clean/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 698, 288, 9506, 202, 19607, 12, 9503, 1769, 1082, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 1082, 202, 97, 202, 202, 97, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 698, 288, 9506, 202, 19607, 12, 9503, 1769, 1082, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 1082, 202, 97, 202, 202, 97, 2, -100, -100, ...
scatterseries.setMarker( ( (LineSeries) series ).getMarker( ) );
scatterseries.getMarkers( ) .addAll( ( (LineSeries) series ).getMarkers( ) );
private Series getConvertedSeries( Series series ) { // Do not convert base series if ( series.getClass( ) .getName( ) .equals( "org.eclipse.birt.chart.model.component.impl.SeriesImpl" ) ) //$NON-NLS-1$ { return series; } ScatterSeries scatterseries = (ScatterSeries) ScatterSeriesImpl.create( ); scatterseries.getLineAttributes( ).setVisible( false ); if ( series instanceof LineSeries ) { scatterseries.setMarker( ( (LineSeries) series ).getMarker( ) ); } else if ( series instanceof BarSeries || series instanceof PieSeries || series instanceof StockSeries ) { // Use the default marker } else { Marker marker = AttributeFactory.eINSTANCE.createMarker( ); marker.setSize( 5 ); marker.setType( MarkerType.BOX_LITERAL ); marker.setVisible( true ); scatterseries.setMarker( marker ); } // Copy generic series properties scatterseries.setLabel( series.getLabel( ) ); if ( series.getLabelPosition( ).equals( Position.INSIDE_LITERAL ) || series.getLabelPosition( ).equals( Position.OUTSIDE_LITERAL ) ) { scatterseries.setLabelPosition( Position.ABOVE_LITERAL ); } else { scatterseries.setLabelPosition( series.getLabelPosition( ) ); } scatterseries.setVisible( series.isVisible( ) ); if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_Triggers( ) ) ) { scatterseries.getTriggers( ).addAll( series.getTriggers( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataPoint( ) ) ) { scatterseries.setDataPoint( series.getDataPoint( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataDefinition( ) ) ) { scatterseries.getDataDefinition( ).add( series.getDataDefinition( ) .get( 0 ) ); } // Copy series specific properties if ( series instanceof BarSeries ) { scatterseries.getLineAttributes( ) .setColor( ( (BarSeries) series ).getRiserOutline( ) ); } else if ( series instanceof PieSeries ) { scatterseries.getLineAttributes( ) .setColor( ( (PieSeries) series ).getSliceOutline( ) ); } else if ( series instanceof StockSeries ) { scatterseries.getLineAttributes( ) .setColor( ( (StockSeries) series ).getLineAttributes( ) .getColor( ) ); } if ( scatterseries.getLineAttributes( ).getColor( ) == null ) { scatterseries.getLineAttributes( ) .setColor( ColorDefinitionImpl.BLACK( ) ); } return scatterseries; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/19ce577831c04d72ef814b03296b091fefd68db5/ScatterChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/ScatterChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 9225, 336, 22063, 6485, 12, 9225, 4166, 262, 202, 95, 202, 202, 759, 2256, 486, 1765, 1026, 4166, 202, 202, 430, 261, 4166, 18, 588, 797, 12, 262, 9506, 202, 18, 17994, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 9225, 336, 22063, 6485, 12, 9225, 4166, 262, 202, 95, 202, 202, 759, 2256, 486, 1765, 1026, 4166, 202, 202, 430, 261, 4166, 18, 588, 797, 12, 262, 9506, 202, 18, 17994, 12, ...
Atom a = new Atom("C");
Atom a = builder.newAtom("C");
public void testGetFractX3d() { Atom a = new Atom("C"); a.setFractionalPoint3d(new Point3d(0.5, 0.6, 0.7)); assertEquals(0.5, a.getFractX3d(), 0.001); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/2569471249d8066c9cb1c037569a570e039ed288/AtomTest.java/buggy/src/org/openscience/cdk/test/AtomTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 42, 14266, 60, 23, 72, 1435, 288, 3639, 7149, 279, 273, 2089, 18, 2704, 3641, 2932, 39, 8863, 3639, 279, 18, 542, 13724, 287, 2148, 23, 72, 12, 2704, 4686, 23, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 42, 14266, 60, 23, 72, 1435, 288, 3639, 7149, 279, 273, 2089, 18, 2704, 3641, 2932, 39, 8863, 3639, 279, 18, 542, 13724, 287, 2148, 23, 72, 12, 2704, 4686, 23, 7...
if(sender != null) return sender.hashCode() + (int)id; else return (int)id;
if(sender != null) return sender.hashCode() + (int)id; else return (int)id;
public int hashCode() { if(sender != null) return sender.hashCode() + (int)id; else return (int)id; }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/462c7e2ed6980678c603a434a8eb5bc2e6749ac2/Gossip.java/buggy/src/org/jgroups/protocols/pbcast/Gossip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13374, 1435, 288, 202, 430, 12, 15330, 480, 446, 13, 202, 565, 327, 5793, 18, 2816, 1085, 1435, 397, 261, 474, 13, 350, 31, 202, 12107, 202, 565, 327, 261, 474, 13, 350, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 13374, 1435, 288, 202, 430, 12, 15330, 480, 446, 13, 202, 565, 327, 5793, 18, 2816, 1085, 1435, 397, 261, 474, 13, 350, 31, 202, 12107, 202, 565, 327, 261, 474, 13, 350, 31...
Context cx = Context.getCurrentContext(); RegExpImpl res = getImpl(cx);
Object executeRegExp(Scriptable scopeObj, String str, int indexp[], int matchType) { NativeRegExp re = this; Context cx = Context.getCurrentContext(); RegExpImpl res = getImpl(cx); /* * Initialize a CompilerState to minimize recursive argument traffic. */ MatchState state = new MatchState(); state.inputExhausted = false; state.anchoring = false; state.flags = re.flags; state.scope = scopeObj; char[] charArray = str.toCharArray(); int start = indexp[0]; if (start > charArray.length) start = charArray.length; int index = start; state.cpbegin = 0; state.cpend = charArray.length; state.start = start; state.skipped = 0; state.input = charArray; state.parenCount = 0; state.maybeParens = new SubString[re.parenCount]; state.parens = new SubString[re.parenCount]; // We allocate the elements of "parens" and "maybeParens" lazily in // the Java port since we don't have arenas. /* * Call the recursive matcher to do the real work. Return null on mismatch * whether testing or not. On match, return an extended Array object. */ index = matchRegExp(state, ren, index); if (index == -1) { if (matchType != PREFIX || !state.inputExhausted) return null; return Undefined.instance; } int i = index - state.cpbegin; indexp[0] = i; int matchlen = i - (start + state.skipped); int ep = index; index -= matchlen; Object result; Scriptable obj; if (matchType == TEST) { /* * Testing for a match and updating cx.regExpImpl: don't allocate * an array object, do return true. */ result = Boolean.TRUE; obj = null; } else { /* * The array returned on match has element 0 bound to the matched * string, elements 1 through state.parenCount bound to the paren * matches, an index property telling the length of the left context, * and an input property referring to the input string. */ Scriptable scope = getTopLevelScope(scopeObj); result = ScriptRuntime.newObject(cx, scope, "Array", null); obj = (Scriptable) result; String matchstr = new String(charArray, index, matchlen); obj.put(0, obj, matchstr); } if (state.parenCount > re.parenCount) throw new RuntimeException(); if (state.parenCount == 0) { res.parens.setSize(0); res.lastParen = SubString.emptySubString; } else { SubString parsub = null; int num; res.parens.setSize(state.parenCount); for (num = 0; num < state.parenCount; num++) { parsub = state.parens[num]; res.parens.setElementAt(parsub, num); if (matchType == TEST) continue; String parstr = parsub == null ? "": parsub.toString(); obj.put(num+1, obj, parstr); } res.lastParen = parsub; } if (! (matchType == TEST)) { /* * Define the index and input properties last for better for/in loop * order (so they come after the elements). */ obj.put("index", obj, new Integer(start + state.skipped)); obj.put("input", obj, str); } if (res.lastMatch == null) { res.lastMatch = new SubString(); res.leftContext = new SubString(); res.rightContext = new SubString(); } res.lastMatch.charArray = charArray; res.lastMatch.index = index; res.lastMatch.length = matchlen; res.leftContext.charArray = charArray; if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* * JS1.2 emulated Perl4.0.1.8 (patch level 36) for global regexps used * in scalar contexts, and unintentionally for the string.match "list" * psuedo-context. On "hi there bye", the following would result: * * Language while(/ /g){print("$`");} s/ /$`/g * perl4.036 "hi", "there" "hihitherehi therebye" * perl5 "hi", "hi there" "hihitherehi therebye" * js1.2 "hi", "there" "hihitheretherebye" * * Insofar as JS1.2 always defined $` as "left context from the last * match" for global regexps, it was more consistent than perl4. */ res.leftContext.index = start; res.leftContext.length = state.skipped; } else { /* * For JS1.3 and ECMAv2, emulate Perl5 exactly: * * js1.3 "hi", "hi there" "hihitherehi therebye" */ res.leftContext.index = 0; res.leftContext.length = start + state.skipped; } res.rightContext.charArray = charArray; res.rightContext.index = ep; res.rightContext.length = state.cpend - ep; return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8b34980fb3adc3beae5bcea5913d426dc2e366c8/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1033, 1836, 13673, 12, 3651, 429, 2146, 2675, 16, 514, 609, 16, 509, 770, 84, 63, 6487, 12900, 509, 845, 559, 13, 288, 3639, 16717, 13673, 283, 273, 333, 31, 3639, 1772, 9494, 273, 1772...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1836, 13673, 12, 3651, 429, 2146, 2675, 16, 514, 609, 16, 509, 770, 84, 63, 6487, 12900, 509, 845, 559, 13, 288, 3639, 16717, 13673, 283, 273, 333, 31, 3639, 1772, 9494, 273, 1772...
if (type != null && type.isResolved() && type.isClassType() && target != null) { if (type == target.getDeclaringClass()) { if (isPreciseType) { methOp.refine(target, true); } } else { VM_Method vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), ref); if (vmeth != null && vmeth != target) { methOp.refine(vmeth, isPreciseType); }
if (type != null && type.isResolved() && type.isClassType()) { VM_Method vmeth = target; if (target == null || type != target.getDeclaringClass()) { vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), ref); } if (vmeth != null) { methOp.refine(vmeth, isPreciseType || type.asClass().isFinal());
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcodes.reset(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcodes.index(); int code = bcodes.nextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " " + code + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; //-#if RVM_WITH_OSR lastOsrBarrier = null; //-#endif switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcodes.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcodes.getShortValue())); break; case JBC_ldc: push(getConstantOperand(bcodes.getConstantIndex())); break; case JBC_ldc_w: push(getConstantOperand(bcodes.getWideConstantIndex())); break; case JBC_ldc2_w: pushDual(getConstantOperand(bcodes.getWideConstantIndex())); break; case JBC_iload: s = do_iload(bcodes.getLocalNumber()); break; case JBC_lload: s = do_lload(bcodes.getLocalNumber()); break; case JBC_fload: s = do_fload(bcodes.getLocalNumber()); break; case JBC_dload: s = do_dload(bcodes.getLocalNumber()); break; case JBC_aload: s = do_aload(bcodes.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.IntArray); s = _aloadHelper(INT_ALOAD, ref, index, VM_TypeReference.Int); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.LongArray); s = _aloadHelper(LONG_ALOAD, ref, index, VM_TypeReference.Long); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.FloatArray); s = _aloadHelper(FLOAT_ALOAD, ref, index, VM_TypeReference.Float); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.DoubleArray); s = _aloadHelper(DOUBLE_ALOAD, ref, index, VM_TypeReference.Double); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getRefTypeOf(ref).getArrayElementType(); if (VM.VerifyAssertions) VM._assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM._assert(type == VM_TypeReference.ByteArray || type == VM_TypeReference.BooleanArray); } if (type == VM_TypeReference.ByteArray) s = _aloadHelper(BYTE_ALOAD, ref, index, VM_TypeReference.Byte); else s = _aloadHelper(UBYTE_ALOAD, ref, index, VM_TypeReference.Boolean); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.CharArray); s = _aloadHelper(USHORT_ALOAD, ref, index, VM_TypeReference.Char); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.ShortArray); s = _aloadHelper(SHORT_ALOAD, ref, index, VM_TypeReference.Short); } break; case JBC_istore: s = do_store(bcodes.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcodes.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcodes.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcodes.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcodes.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.IntArray); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Int), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.LongArray); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Long), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.FloatArray); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Float), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.DoubleArray); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Double), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getRefTypeOf(ref).getArrayElementType(); if (VM.VerifyAssertions) VM._assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM._assert(type == VM_TypeReference.ByteArray || type == VM_TypeReference.BooleanArray); } if (type == VM_TypeReference.ByteArray) type = VM_TypeReference.Byte; else type = VM_TypeReference.Boolean; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.CharArray); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Char), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.ShortArray); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Short), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, VM_TypeReference.Int); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, VM_TypeReference.Long); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, VM_TypeReference.Float); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, VM_TypeReference.Double); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, VM_TypeReference.Int); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, VM_TypeReference.Long); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, VM_TypeReference.Float); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, VM_TypeReference.Double); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, VM_TypeReference.Int); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, VM_TypeReference.Long); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, VM_TypeReference.Float); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, VM_TypeReference.Double); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), VM_TypeReference.Int); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), VM_TypeReference.Long); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, VM_TypeReference.Float); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, VM_TypeReference.Double); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), VM_TypeReference.Int); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), VM_TypeReference.Long); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, VM_TypeReference.Float); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_TypeReference.Double); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), VM_TypeReference.Int); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), VM_TypeReference.Long); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), VM_TypeReference.Float); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), VM_TypeReference.Double); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, VM_TypeReference.Int); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, VM_TypeReference.Long); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, VM_TypeReference.Int); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, VM_TypeReference.Long); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, VM_TypeReference.Int); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, VM_TypeReference.Long); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, VM_TypeReference.Int); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, VM_TypeReference.Long); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, VM_TypeReference.Int); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, VM_TypeReference.Long); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, VM_TypeReference.Int); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, VM_TypeReference.Long); } break; case JBC_iinc: { int index = bcodes.getLocalNumber(); s = do_iinc(index, bcodes.getIncrement()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), VM_TypeReference.Long); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), VM_TypeReference.Float); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), VM_TypeReference.Double); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), VM_TypeReference.Int); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), VM_TypeReference.Float); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), VM_TypeReference.Double); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), VM_TypeReference.Int); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), VM_TypeReference.Long); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), VM_TypeReference.Double); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), VM_TypeReference.Int); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), VM_TypeReference.Long); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), VM_TypeReference.Float); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), VM_TypeReference.Byte); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), VM_TypeReference.Char); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), VM_TypeReference.Short); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, VM_TypeReference.Int); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, VM_TypeReference.Int); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, VM_TypeReference.Int); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, VM_TypeReference.Int); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, VM_TypeReference.Int); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcodes.getBranchOffset(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcodes.getBranchOffset()); break; case JBC_ret: s = _retHelper(bcodes.getLocalNumber()); break; case JBC_tableswitch: { bcodes.alignSwitch(); OPT_Operand op0 = popInt(); int defaultoff = bcodes.getDefaultSwitchOffset(); int low = bcodes.getLowSwitchValue(); int high = bcodes.getHighSwitchValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int match = bcodes.computeTableSwitchOffset(v1, low, high); int offset = match == 0 ? defaultoff : match; bcodes.skipTableSwitchOffsets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), null, number*2); for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcodes.getTableSwitchOffset(i))); } bcodes.skipTableSwitchOffsets(number); // Set branch probabilities//-#if RVM_WITH_OSR VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex-bciAdjustment);//-#else VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex);//-#endif if (sp == null) { float approxProb = 1.0f/(float)(number+1); // number targets + default TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_lookupswitch: { bcodes.alignSwitch(); OPT_Operand op0 = popInt(); int defaultoff = bcodes.getDefaultSwitchOffset(); int numpairs = bcodes.getSwitchLength(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int match = bcodes.computeLookupSwitchOffset(v1, numpairs); int offset = match == 0 ? defaultoff : match; bcodes.skipLookupSwitchPairs(numpairs); if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } // Construct switch s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), null, numpairs*3); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand(bcodes.getLookupSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcodes.getLookupSwitchOffset(i))); } bcodes.skipLookupSwitchPairs(numpairs); // Set branch probabilities//-#if RVM_WITH_OSR VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex-bciAdjustment);//-#else VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex);//-#endif if (sp == null) { float approxProb = 1.0f/(float)(numpairs+1); // num targets + default LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_TypeReference retType = op0.getType(); if (retType.isWordType()) { VM._assert(gc.method.getReturnType().isWordType()); } else { // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.findCommonSuperclass if (retType != VM_TypeReference.JavaLangObject) { assertIsAssignable(gc.method.getReturnType(), retType); } } } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeStaticFieldRef(ref); OPT_Operand offsetOp; VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); // use results of field analysis to refine type of result VM_Type ft = fieldType.peekResolvedType(); if (ft != null && ft.isClassType()) { VM_TypeReference concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } // optimization: // if the field is final and either initialized or // in the bootimage, then get the value at compile time. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage())) { try { if (fieldType.isPrimitiveType()) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); break; } else { VM_TypeReference rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_TypeReference.JavaLangString) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } } s = GetStatic.create(GETSTATIC, t, offsetOp, fieldOp); push(t.copyD2U(), fieldType); } break; case JBC_putstatic: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeStaticFieldRef(ref); OPT_Operand offsetOp; if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); } VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_Operand r = pop(fieldType); s = PutStatic.create(PUTSTATIC, r, offsetOp, fieldOp); } break; case JBC_getfield: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeInstanceFieldRef(ref); OPT_Operand offsetOp; VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); // use results of field analysis to refine type. VM_Type ft = fieldType.peekResolvedType(); if (ft != null && ft.isClassType()) { VM_TypeReference concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } } OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; s = GetField.create(GETFIELD, t, op1, offsetOp, fieldOp, getCurrentGuard()); push(t.copyD2U(), fieldType); } break; case JBC_putfield: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeInstanceFieldRef(ref); VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_Operand offsetOp; if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); } OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; s = PutField.create(PUTFIELD, val, obj, offsetOp, fieldOp, getCurrentGuard()); } break; case JBC_invokevirtual: { VM_MethodReference ref = bcodes.getMethodReference(); // See if this is a magic method (Address, Word, etc.) // If it is, generate the inline code and we are done. if (ref.getType().isMagicType()) { boolean generated = OPT_GenerateMagic.generateMagic(this, gc, ref); if (generated) break; // all done. } // A non-magical invokevirtual. Create call instruction. boolean unresolved = ref.needsDynamicLink(bcodes.method()); VM_Method target = ref.peekResolvedMethod(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(ref, target); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) { lastOsrBarrier = _createOsrBarrier(); } //-#endif s = _callHelper(ref, methOp); // Handle possibility of dynamic linking. Must be done before null_check! if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { if (VM.VerifyAssertions) VM._assert(target != null); Call.setAddress(s, new OPT_AddressConstantOperand(target.getOffset())); } // null check receiver OPT_Operand receiver = Call.getParam(s, 0); clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Use compile time type of receiver to try reduce the number of targets. // If we succeed, we'll update meth and s's method operand. boolean isExtant = false; boolean isPreciseType = false; VM_TypeReference tr = null; if (receiver.isRegister()) { OPT_RegisterOperand rop = receiver.asRegister(); isExtant = rop.isExtant(); isPreciseType = rop.isPreciseType(); tr = rop.type; } else if (receiver.isStringConstant()) { isExtant = true; isPreciseType = true; tr = VM_TypeReference.JavaLangString; } else if (VM.VerifyAssertions) { VM._assert(false, "unexpected receiver"); } VM_Type type = tr.peekResolvedType(); if (type != null && type.isResolved() && type.isClassType() && target != null) { if (type == target.getDeclaringClass()) { if (isPreciseType) { methOp.refine(target, true); } } else { VM_Method vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), ref); if (vmeth != null && vmeth != target) { methOp.refine(vmeth, isPreciseType); } } } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, isExtant), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { VM_MethodReference ref = bcodes.getMethodReference(); VM_Method target = ref.resolveInvokeSpecial(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.SPECIAL(ref, target)); // Handle possibility of dynamic linking. Must be done before null_check! // NOTE: different definition of unresolved due to semantics of invokespecial. if (target == null) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(target.getOffset())); } // null check receiver OPT_Operand receiver = Call.getParam(s, 0); clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Consider inlining it. if (maybeInlineMethod(shouldInline(s, false), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { VM_MethodReference ref = bcodes.getMethodReference(); // See if this is a magic method (VM_Magic, Address, Word, etc.) // If it is, generate the inline code and we are done. if (ref.getType().isMagicType()) { boolean generated = OPT_GenerateMagic.generateMagic(this, gc, ref); if (generated) break; } // A non-magical invokestatic. Create call instruction. boolean unresolved = ref.needsDynamicLink(bcodes.method()); VM_Method target = ref.peekResolvedMethod(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.STATIC(ref, target)); // Handle possibility of dynamic linking. if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(target.getOffset())); } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, false), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { VM_MethodReference ref = bcodes.getMethodReference(); bcodes.alignInvokeInterface(); VM_Method resolvedMethod = null; resolvedMethod = ref.peekInterfaceMethod(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.INTERFACE(ref, resolvedMethod)); OPT_RegisterOperand receiver = Call.getParam(s, 0).asRegister(); VM_Class receiverType = (VM_Class)receiver.type.peekResolvedType(); // null check on this parameter of call // TODO: Strictly speaking we need to do dynamic linking of the interface // type BEFORE we do the null check. FIXME. clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // Depending on the implementation of interface dispatching // we are using, we may have to make this test explicit // in the calling sequence if we can't prove at compile time // that it is not needed. if (requiresImplementsTest) { if (resolvedMethod == null) { // Sigh. Can't even resolve the reference to figure out what interface // method we are trying to call. Therefore we must make generate a call // to an out-of-line typechecking routine to handle it at runtime. OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, receiver.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; VM_Method target = VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod; OPT_Instruction callCheck = Call.create2(CALL, null, new OPT_AddressConstantOperand(target.getOffset()), OPT_MethodOperand.STATIC(target), new OPT_IntConstantOperand(ref.getId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test rectifyStateWithErrorHandler(); // Can raise incompatible class change error. } else { // We know what interface method the program wants to invoke. // Attempt to avoid inserting the type check by seeing if the // known static type of the receiver implements the desired interface. VM_Type interfaceType = resolvedMethod.getDeclaringClass(); if (receiverType != null && receiverType.isResolved() && !receiverType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.includesType(interfaceType.getTypeRef(), receiverType.getTypeRef()); requiresImplementsTest = doesImplement != YES; } } } // Attempt to resolve the interface call to a particular virtual method. // This is independent of whether or not the static type of the receiver is // known to implement the interface and it is not that case that being able // to prove one implies the other. VM_Method vmeth = null; if (receiverType != null && receiverType.isInitialized() && !receiverType.isInterface()) { vmeth = OPT_ClassLoaderProxy.lookupMethod(receiverType, ref); } if (vmeth != null) { VM_MethodReference vmethRef = vmeth.getMemberRef().asMethodReference(); // We're going to virtualize the call. Must inject the // DTC to ensure the receiver implements the interface if // requiresImplementsTest is still true. // Note that at this point requiresImplementsTest => resolvedMethod != null if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, receiver.copyU2U(), makeTypeOperand(resolvedMethod.getDeclaringClass()), getCurrentGuard())); rectifyStateWithErrorHandler(); // Can raise incompatible class change error. } OPT_MethodOperand mop = OPT_MethodOperand.VIRTUAL(vmethRef, vmeth); if (receiver.isPreciseType()) { mop.refine(vmeth, true); } Call.setMethod(s, mop); boolean unresolved = vmethRef.needsDynamicLink(bcodes.method()); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(vmeth.getOffset())); } // Attempt to inline virtualized call. if (maybeInlineMethod(shouldInline(s, receiver.isExtant()), s)) { return; } } else { // We can't virtualize the call; // try to inline a predicted target for the interface invocation // inline code will include DTC to ensure receiver implements the interface. if (resolvedMethod != null && maybeInlineMethod(shouldInline(s, false), s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, receiver.copyU2U(), makeTypeOperand(resolvedMethod.getDeclaringClass()), getCurrentGuard())); // don't have to rectify with error handlers; rectify call below subsusmes. } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { VM_TypeReference klass = bcodes.getTypeReference(); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; OPT_TypeOperand klassOp; VM_Class klassType = (VM_Class)klass.peekResolvedType(); if (klassType != null && (klassType.isInitialized() || klassType.isInBootImage())) { klassOp = makeTypeOperand(klassType); operator = NEW; } else { operator = NEW_UNRESOLVED; klassOp = makeTypeOperand(klass); } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { VM_Type array = bcodes.getPrimitiveArrayType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array.getTypeRef()); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangNegativeArraySizeException); } break; case JBC_anewarray: { VM_TypeReference elementTypeRef = bcodes.getTypeReference(); s = generateAnewarray(elementTypeRef); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM._assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_TypeReference type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.findCommonSuperclass if (type != VM_TypeReference.JavaLangObject) assertIsAssignable(VM_TypeReference.JavaLangThrowable, type); } if (!gc.method.isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { VM_TypeReference typeRef = bcodes.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_Operand op2 = pop(); if (typeRef.isWordType()) { op2 = op2.copy(); if (op2 instanceof OPT_RegisterOperand) { ((OPT_RegisterOperand)op2).type = typeRef; } push(op2); if (DBG_CF) db("skipped gen of checkcast to word type "+typeRef); break; } if (VM.VerifyAssertions) VM._assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_TypeReference type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } if (!gc.options.NO_CHECKCAST) { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, op2, makeTypeOperand(typeRef)); } else { OPT_TypeOperand typeOp = makeTypeOperand(typeRef.peekResolvedType()); if (isNonNull(op2)) { s = TypeCheck.create(CHECKCAST_NOTNULL, op2, typeOp, getGuard(op2)); } else { s = TypeCheck.create(CHECKCAST, op2, typeOp); } } } op2 = op2.copy(); if (op2 instanceof OPT_RegisterOperand) { ((OPT_RegisterOperand)op2).type = typeRef; } push(op2); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangClassCastException); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { VM_TypeReference typeRef = bcodes.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM._assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_TypeReference type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.includesType(typeRef, type); if (answer == YES && isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db(op2 + " instanceof " + typeRef + " is always true "); break; } else if (answer == NO) { if (DBG_CF) db(op2 + " instanceof " + typeRef + " is always false "); push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, makeTypeOperand(typeRef), op2); } else { OPT_TypeOperand typeOp = makeTypeOperand(typeRef.peekResolvedType()); if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_monitorenter: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; if (VM.VerifyAssertions) VM._assert(op0.isRef()); if (gc.options.MONITOR_NOP) { s = null; } else { s = MonitorOp.create(MONITORENTER, op0, getCurrentGuard()); } } break; case JBC_monitorexit: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; if (gc.options.MONITOR_NOP) { s = null; } else { s = MonitorOp.create(MONITOREXIT, op0, getCurrentGuard()); } rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangIllegalMonitorStateException); } break; case JBC_wide: { int widecode = bcodes.getWideOpcode(); int index = bcodes.getWideLocalNumber(); switch (widecode) { case JBC_iload: s = do_iload(index); break; case JBC_lload: s = do_lload(index); break; case JBC_fload: s = do_fload(index); break; case JBC_dload: s = do_dload(index); break; case JBC_aload: s = do_aload(index); break; case JBC_istore: s = do_store(index, popInt()); break; case JBC_lstore: s = do_store(index, popLong()); break; case JBC_fstore: s = do_store(index, popFloat()); break; case JBC_dstore: s = do_store(index, popDouble()); break; case JBC_astore: s = do_astore(index); break; case JBC_iinc: s = do_iinc(index, bcodes.getWideIncrement()); break; case JBC_ret: s = _retHelper(index); break; default: OPT_OptimizingCompilerException.UNREACHABLE(); break; } } break; case JBC_multianewarray: { VM_TypeReference arrayType = bcodes.getTypeReference(); OPT_TypeOperand typeOp = makeTypeOperand(arrayType); int dimensions = bcodes.getArrayDimension(); // Step 1: Create an int array to hold the dimensions. OPT_TypeOperand dimArrayType = makeTypeOperand(VM_Array.IntArray); OPT_RegisterOperand dimArray = gc.temps.makeTemp(VM_TypeReference.IntArray); markGuardlessNonNull(dimArray); dimArray.setPreciseType(); appendInstruction(NewArray.create(NEWARRAY, dimArray, dimArrayType, new OPT_IntConstantOperand(dimensions))); // Step 2: Assign the dimension values to dimArray for (int i = dimensions; i > 0; i--) { OPT_LocationOperand loc = new OPT_LocationOperand(VM_TypeReference.Int); appendInstruction(AStore.create(INT_ASTORE, popInt(), dimArray.copyD2U(), new OPT_IntConstantOperand(i - 1), loc, new OPT_TrueGuardOperand())); } // Step 3: Actually create the multiD array OPT_RegisterOperand result = gc.temps.makeTemp(arrayType); markGuardlessNonNull(result); result.setPreciseType(); appendInstruction(NewArray.create(NEWOBJMULTIARRAY, result, typeOp, dimArray.copyD2U())); push(result.copyD2U()); rectifyStateWithErrorHandler(); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangNegativeArraySizeException); } break; case JBC_ifnull: s = _refIfNullHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifnonnull: s = _refIfNullHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto_w: { int offset = bcodes.getWideBranchOffset(); if (offset != 5) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr_w: s = _jsrHelper(bcodes.getWideBranchOffset()); break; //-#if RVM_WITH_OSR case JBC_impdep1: { int pseudo_opcode = bcodes.nextPseudoInstruction(); switch (pseudo_opcode) { case PSEUDO_LoadIntConst: { int value = bcodes.readIntConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadIntConst "+value); push(new OPT_IntConstantOperand(value)); // used for PSEUDO_InvokeStatic to recover the type info param1 = param2; param2 = value; break; } case PSEUDO_LoadLongConst: { long value = bcodes.readLongConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadLongConst "+value); // put on jtoc Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateLongLiteral(value)); pushDual(new OPT_LongConstantOperand(value, offset)); break; } case PSEUDO_LoadWordConst: { Address a; //-#if RVM_FOR_32_ADDR a = Address.fromIntSignExtend(bcodes.readIntConst()); //-#endif //-#if RVM_FOR_64_ADDR a = Address.fromLong(bcodes.readLongConst()); //-#endif push(new OPT_AddressConstantOperand(a)); if (VM.TraceOnStackReplacement) VM.sysWrite("PSEUDO_LoadWordConst 0x"); VM.sysWrite(a); VM.sysWriteln(); break; } case PSEUDO_LoadFloatConst: { int ibits = bcodes.readIntConst(); float value = Float.intBitsToFloat(ibits); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadFloatConst "+value); Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateFloatLiteral(ibits)); push(new OPT_FloatConstantOperand(value, offset)); break; } case PSEUDO_LoadDoubleConst: { long lbits = bcodes.readLongConst(); double value = VM_Magic.longBitsAsDouble(lbits); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadDoubleConst "+ lbits); // put on jtoc Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateDoubleLiteral(lbits)); pushDual(new OPT_DoubleConstantOperand(value, offset)); break; } case PSEUDO_LoadRetAddrConst: { int value = bcodes.readIntConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadRetAddrConst "+value); push(new ReturnAddressOperand(value)); break; } case PSEUDO_InvokeStatic: { /* pseudo invoke static for getRefAt and cleanRefAt, both must be resolved already */ VM_Method meth = null; int targetidx = bcodes.readIntConst(); switch (targetidx) { case GETREFAT: meth = VM_Entrypoints.osrGetRefAtMethod; break; case CLEANREFS: meth = VM_Entrypoints.osrCleanRefsMethod; break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("pseudo_invokestatic, unknown target index "+targetidx); OPT_OptimizingCompilerException.UNREACHABLE(); break; } if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_Invoke "+meth+"\n"); s = _callHelper(meth.getMemberRef().asMethodReference(), OPT_MethodOperand.STATIC(meth)); Call.setAddress(s, new OPT_AddressConstantOperand(meth.getOffset())); /* try to set the type of return register */ if (targetidx == GETREFAT) { Object realObj = OSR_ObjectHolder.getRefAt(param1, param2); if (VM.VerifyAssertions) VM._assert(realObj != null); VM_TypeReference klass = VM_Magic.getObjectType(realObj).getTypeRef(); OPT_RegisterOperand op0 = gc.temps.makeTemp(klass); Call.setResult(s, op0); pop(); // pop the old one and push the new return type. push(op0.copyD2U(), klass); } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } case PSEUDO_InvokeCompiledMethod: { int cmid = bcodes.readIntConst(); int origBCIdx = bcodes.readIntConst(); // skip it VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid); VM_Method meth = cm.getMethod(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_InvokeCompiledMethod "+meth+"\n"); /* the bcIndex should be adjusted to the original */ s = _callHelper(meth.getMemberRef().asMethodReference(), OPT_MethodOperand.COMPILED(meth, cm.getOsrJTOCoffset())); // adjust the bcindex of s to the original bytecode's index // it should be able to give the correct exception handling s.bcIndex = origBCIdx + bciAdjustment; rectifyStateWithExceptionHandlers(); break; } case PSEUDO_ParamInitEnd: { // indicates the place to insert method prologue and stack // overflow checks. // opt compiler should consider this too break; } default: if (VM.TraceOnStackReplacement) VM.sysWriteln("OSR Error, no such pseudo opcode : "+pseudo_opcode); OPT_OptimizingCompilerException.UNREACHABLE(); break; } break; } //-#endif default: OPT_OptimizingCompilerException.UNREACHABLE(); break; } if (s != null && !currentBBLE.isSelfRegen()) { appendInstruction(s); } // check runoff if (VM.VerifyAssertions) VM._assert(bcodes.index() <= runoff); if (!endOfBasicBlock && bcodes.index() == runoff) { if (DBG_BB || DBG_SELECTED) db("runoff occurred! current basic block: " + currentBBLE + ", runoff = " + runoff); endOfBasicBlock = fallThrough = true; } if (endOfBasicBlock) { if (currentBBLE.isSelfRegen()) { // This block ended in a goto that jumped into the middle of it. // Through away all out edges from this block, they're out of date // because we're going to have to regenerate this block. currentBBLE.block.deleteOut(); if (DBG_CFG || DBG_SELECTED) db("Deleted all out edges of " + currentBBLE.block); return; } if (fallThrough) { if (VM.VerifyAssertions) VM._assert(bcodes.index() < bcodes.length()); // Get/Create fallthrough BBLE and record it as // currentBBLE's fallThrough. currentBBLE.fallThrough = getOrCreateBlock(bcodes.index()); currentBBLE.block.insertOut(currentBBLE.fallThrough.block); } return; } } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/d39c426a7f7023313ccdb451220f278b51bbd411/OPT_BC2IR.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1265, 12, 474, 15065, 13, 288, 565, 309, 261, 2290, 43, 67, 9676, 747, 2383, 43, 67, 4803, 2056, 13, 288, 1377, 1319, 2932, 3441, 1776, 981, 1368, 315, 397, 783, 9676, ...
public void setEditor( IEditorPart editor ) { if ( editor != null ) {
public void setEditor(IEditorPart editor) { if (editor != null) {
public void setEditor( IEditorPart editor ) { if ( editor != null ) { fEditor = editor; final IWorkbenchPage page = editor.getSite().getPage(); page.addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this ); page.addPartListener( this ); // initialize selection Runnable r = new Runnable() { public void run() { fSelection = page.getSelection( IDebugUIConstants.ID_DEBUG_VIEW ); } }; CDebugUIPlugin.getStandardDisplay().asyncExec( r ); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/da21b108846414112f482bc83d071fba5b66087a/DebugTextHover.java/clean/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/editors/DebugTextHover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 6946, 12, 467, 6946, 1988, 4858, 262, 288, 202, 202, 430, 261, 4858, 480, 446, 262, 288, 1082, 202, 74, 6946, 273, 4858, 31, 1082, 202, 6385, 467, 2421, 22144, 1964,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 6946, 12, 467, 6946, 1988, 4858, 262, 288, 202, 202, 430, 261, 4858, 480, 446, 262, 288, 1082, 202, 74, 6946, 273, 4858, 31, 1082, 202, 6385, 467, 2421, 22144, 1964,...
srcOffset -= WORDSIZE; dstOffset -= WORDSIZE;
srcOffset=srcOffset.sub(WORDSIZE); dstOffset=dstOffset.sub(WORDSIZE);
private final void genParameterCopy (int srcOffset, int dstOffset) { int gpr = 0; // number of general purpose registers unloaded int fpr = 0; // number of floating point registers unloaded byte T = T0; // next GPR to get a parameter if (!method.isStatic()) { // handle "this" parameter if (gpr < NUM_PARAMETER_GPRS) { asm.emitMOV_RegDisp_Reg(SP, dstOffset, T); T = T1; // at most 2 parameters can be passed in general purpose registers gpr++; } else { // no parameters passed in registers asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); } srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; } VM_TypeReference [] types = method.getParameterTypes(); int [] fprOffset = new int [NUM_PARAMETER_FPRS]; // to handle floating point parameters in registers boolean [] is32bit = new boolean [NUM_PARAMETER_FPRS]; // to handle floating point parameters in registers for (int i=0; i<types.length; i++) { VM_TypeReference t = types[i]; if (t.isLongType()) { if (gpr < NUM_PARAMETER_GPRS) { asm.emitMOV_RegDisp_Reg(SP, dstOffset, T); // hi mem := lo register (== hi order word) T = T1; // at most 2 parameters can be passed in general purpose registers gpr++; srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; if (gpr < NUM_PARAMETER_GPRS) { asm.emitMOV_RegDisp_Reg(SP, dstOffset, T); // lo mem := hi register (== lo order word) gpr++; } else { asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); // lo mem from caller's stackframe asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); } } else { asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); // hi mem from caller's stackframe asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); // lo mem from caller's stackframe asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); } srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; } else if (t.isFloatType()) { if (fpr < NUM_PARAMETER_FPRS) { fprOffset[fpr] = dstOffset; is32bit[fpr] = true; fpr++; } else { asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); } srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; } else if (t.isDoubleType()) { if (fpr < NUM_PARAMETER_FPRS) { srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; fprOffset[fpr] = dstOffset; is32bit[fpr] = false; fpr++; } else { asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); // hi mem from caller's stackframe asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); // lo mem from caller's stackframe asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); } srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; } else { // t is object, int, short, char, byte, or boolean if (gpr < NUM_PARAMETER_GPRS) { asm.emitMOV_RegDisp_Reg(SP, dstOffset, T); T = T1; // at most 2 parameters can be passed in general purpose registers gpr++; } else { asm.emitMOV_Reg_RegDisp(S0, SP, srcOffset); asm.emitMOV_RegDisp_Reg(SP, dstOffset, S0); } srcOffset -= WORDSIZE; dstOffset -= WORDSIZE; } } for (int i=fpr-1; 0<=i; i--) { // unload the floating point register stack (backwards) if (is32bit[i]) { asm.emitFSTP_RegDisp_Reg(SP, fprOffset[i], FP0); } else { asm.emitFSTP_RegDisp_Reg_Quad(SP, fprOffset[i], FP0); } } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 918, 3157, 1662, 2951, 261, 474, 29211, 16, 509, 3046, 2335, 13, 288, 565, 509, 314, 683, 273, 374, 31, 225, 368, 1300, 434, 7470, 13115, 10285, 640, 4230, 565, 509, 284, 683...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 3157, 1662, 2951, 261, 474, 29211, 16, 509, 3046, 2335, 13, 288, 565, 509, 314, 683, 273, 374, 31, 225, 368, 1300, 434, 7470, 13115, 10285, 640, 4230, 565, 509, 284, 683...
cat1task4 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true);
cat1task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true);
public void setUp() throws PartInitException { try { MylarTaskListPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView( "org.eclipse.mylar.tasks.ui.views.TaskListView"); TaskListManager manager = MylarTaskListPlugin.getTaskListManager(); cat1 = new TaskCategory("First Category", manager.getTaskList()); cat1task1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true); cat1task1.setPriority(Task.PriorityLevel.P1.toString()); cat1task1.setCompleted(true); cat1task1.setContainer(cat1); manager.getTaskList().moveToContainer(cat1, cat1task1); cat1task1sub1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1", true); cat1task1sub1.setPriority(Task.PriorityLevel.P1.toString()); cat1task1sub1.setCompleted(true); cat1task1sub1.setParent(cat1task1); cat1task1.addSubTask(cat1task1sub1); cat1task2 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true); cat1task2.setPriority(Task.PriorityLevel.P2.toString()); cat1task2.setContainer(cat1); manager.getTaskList().moveToContainer(cat1, cat1task2); cat1task3 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true); cat1task3.setPriority(Task.PriorityLevel.P3.toString()); cat1task3.setCompleted(true); cat1task3.setContainer(cat1); manager.getTaskList().moveToContainer(cat1, cat1task3); cat1task4 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true); cat1task4.setPriority(Task.PriorityLevel.P4.toString()); cat1task4.setContainer(cat1); manager.getTaskList().moveToContainer(cat1, cat1task4); cat1task5 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true); cat1task5.setPriority(Task.PriorityLevel.P5.toString()); cat1task5.setCompleted(true); cat1task5.setContainer(cat1); manager.getTaskList().moveToContainer(cat1, cat1task5); manager.getTaskList().addCategory(cat1); assertEquals(cat1.getChildren().size(), 5); cat2 = new TaskCategory("Second Category", manager.getTaskList()); cat2task1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true); cat2task1.setPriority(Task.PriorityLevel.P1.toString()); cat2task1.setContainer(cat2); manager.getTaskList().moveToContainer(cat2, cat2task1); cat2task1sub1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1", true); cat2task1sub1.setPriority(Task.PriorityLevel.P1.toString()); cat2task1sub1.setParent(cat2task1); cat2task1.addSubTask(cat2task1sub1); cat2task2 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true); cat2task2.setPriority(Task.PriorityLevel.P2.toString()); cat2task2.setCompleted(true); cat2task2.setContainer(cat2); manager.getTaskList().moveToContainer(cat2, cat2task2); cat2task3 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true); cat2task3.setPriority(Task.PriorityLevel.P3.toString()); cat2task3.setContainer(cat2); manager.getTaskList().moveToContainer(cat2, cat2task3); cat2task4 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true); cat2task4.setPriority(Task.PriorityLevel.P4.toString()); cat2task4.setCompleted(true); cat2task4.setContainer(cat2); manager.getTaskList().moveToContainer(cat2, cat2task4); cat2task5 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true); cat2task5.setPriority(Task.PriorityLevel.P5.toString()); cat2task5.setContainer(cat2); manager.getTaskList().moveToContainer(cat2, cat2task5); manager.getTaskList().addCategory(cat2); manager.saveTaskList(); } catch (Exception e) { e.printStackTrace(); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/TaskListUiTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListUiTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 1216, 6393, 2570, 503, 288, 202, 202, 698, 288, 1082, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 1216, 6393, 2570, 503, 288, 202, 202, 698, 288, 1082, 202, 12062, 7901, 2174, 682, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3...
TransformerImpl transformer = (TransformerImpl)xctxt.getOwnerObject();
TransformerImpl transformer = (TransformerImpl) xctxt.getOwnerObject();
public XObject execute(XPathContext xctxt) throws org.xml.sax.SAXException { // TransformerImpl transformer = (TransformerImpl)xctxt; TransformerImpl transformer = (TransformerImpl)xctxt.getOwnerObject(); XNodeSet nodes = null; Node context = xctxt.getCurrentNode(); Document docContext = (Node.DOCUMENT_NODE == context.getNodeType()) ? (Document)context : context.getOwnerDocument(); if(null == docContext) { // path.error(context, XPATHErrorResources.ER_CONTEXT_HAS_NO_OWNERDOC); //"context does not have an owner document!"); } String xkeyname = getArg0().execute(xctxt).str(); QName keyname = new QName(xkeyname, xctxt.getNamespaceContext()); XObject arg = getArg1().execute(xctxt); boolean argIsNodeSet = (XObject.CLASS_NODESET == arg.getType()); KeyManager kmgr = transformer.getKeyManager(); if(argIsNodeSet) { Hashtable usedrefs = null; NodeIterator ni = arg.nodeset(); Node pos; UnionPathIterator upi = new UnionPathIterator(); while(null != (pos = ni.nextNode())) { String ref = DOMHelper.getNodeData(pos); if(null == ref) continue; if(null == usedrefs) usedrefs = new Hashtable(); if(usedrefs.get(ref) != null) { continue; // We already have 'em. } else { // ISTRUE being used as a dummy value. usedrefs.put(ref, ISTRUE); } LocPathIterator nl = kmgr.getNodeSetByKey(xctxt, docContext, keyname, ref, xctxt.getNamespaceContext()); upi.addIterator(nl); //mnodeset.addNodesInDocOrder(nl, xctxt); needed?? } upi.initContext(xctxt); nodes = new XNodeSet(upi); } else { String ref = arg.str(); LocPathIterator nl = kmgr.getNodeSetByKey(xctxt, docContext, keyname, ref, xctxt.getNamespaceContext()); nodes = new XNodeSet(nl); } return nodes; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/FuncKey.java/clean/src/org/apache/xalan/templates/FuncKey.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1139, 921, 1836, 12, 14124, 1042, 25465, 13, 377, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 225, 288, 3639, 368, 11519, 2828, 8360, 273, 261, 8319, 2828, 13, 92, 20364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1139, 921, 1836, 12, 14124, 1042, 25465, 13, 377, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 225, 288, 3639, 368, 11519, 2828, 8360, 273, 261, 8319, 2828, 13, 92, 20364...
wc .setAttribute( IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, "org.eclipse.pde.ui.workbenchClasspathProvider" );
wc.setAttribute( IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, "org.eclipse.pde.ui.workbenchClasspathProvider" );
public void initializeFrom( ILaunchConfiguration configuration ) { final ILaunchConfiguration config = configuration; final ILaunchConfigurationTab[] tabs = getTabs( ); BusyIndicator.showWhile( Display.getCurrent( ), new Runnable( ) { public void run( ) { try { String id = config .getAttribute( IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, (String) null ); if ( id == null && config instanceof ILaunchConfigurationWorkingCopy ) { ILaunchConfigurationWorkingCopy wc = (ILaunchConfigurationWorkingCopy) config; wc .setAttribute( IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER, "org.eclipse.pde.ui.workbenchClasspathProvider" ); //$NON-NLS-1$ } } catch ( CoreException e ) { } for ( int i = 0; i < tabs.length; i++ ) { tabs[i].initializeFrom( config ); } } } ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/93f83d28c012c9318e61bf947b01279cec0512a3/ReportTabGroup.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launching/ReportTabGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 1265, 12, 467, 9569, 1750, 1664, 262, 202, 95, 202, 202, 6385, 467, 9569, 1750, 642, 273, 1664, 31, 202, 202, 6385, 467, 9569, 1750, 5661, 8526, 10920, 273, 3181, 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, 918, 4046, 1265, 12, 467, 9569, 1750, 1664, 262, 202, 95, 202, 202, 6385, 467, 9569, 1750, 642, 273, 1664, 31, 202, 202, 6385, 467, 9569, 1750, 5661, 8526, 10920, 273, 3181, 5...
public List getModifications(Date lastBuild, Date now) { ArrayList modifications = new ArrayList(); try { Properties systemProps = System.getProperties(); if(serverPath != null) { systemProps.put("SSDIR", serverPath); } String[] env = new String[systemProps.size()]; int index = 0; Iterator systemPropIterator = systemProps.keySet().iterator(); while(systemPropIterator.hasNext()) { String propName = (String) systemPropIterator.next(); env[index] = propName + "=" + systemProps.get(propName); index++; } log.info("Vss: getting modifications for " + vsspath); Process p = Runtime.getRuntime().exec(getCommandLine(lastBuild, now), env); p.waitFor(); p.getInputStream().close(); p.getOutputStream().close(); p.getErrorStream().close(); parseTempFile(modifications); } catch (Exception e) { e.printStackTrace(); } if (_property != null && modifications.size() > 0) { _properties.put(_property, "true"); } return modifications;
public List getModifications(Date lastBuild, Date now) { ArrayList modifications = new ArrayList(); try { Properties systemProps = System.getProperties(); if(serverPath != null) { systemProps.put("SSDIR", serverPath); } String[] env = new String[systemProps.size()]; int index = 0; Iterator systemPropIterator = systemProps.keySet().iterator(); while(systemPropIterator.hasNext()) { String propName = (String) systemPropIterator.next(); env[index] = propName + "=" + systemProps.get(propName); index++; } log.info("Vss: getting modifications for " + vsspath); Process p = Runtime.getRuntime().exec(getCommandLine(lastBuild, now), env); p.waitFor(); p.getInputStream().close(); p.getOutputStream().close(); p.getErrorStream().close(); parseTempFile(modifications); } catch (Exception e) { e.printStackTrace(); } if (_property != null && modifications.size() > 0) { _properties.put(_property, "true"); } return modifications;
public List getModifications(Date lastBuild, Date now) { //(PENDING) extract buildHistoryCommand, execHistoryCommand // See CVSElement ArrayList modifications = new ArrayList(); try { Properties systemProps = System.getProperties(); if(serverPath != null) { systemProps.put("SSDIR", serverPath); } String[] env = new String[systemProps.size()]; int index = 0; Iterator systemPropIterator = systemProps.keySet().iterator(); while(systemPropIterator.hasNext()) { String propName = (String) systemPropIterator.next(); env[index] = propName + "=" + systemProps.get(propName); index++; } log.info("Vss: getting modifications for " + vsspath); Process p = Runtime.getRuntime().exec(getCommandLine(lastBuild, now), env); p.waitFor(); p.getInputStream().close(); p.getOutputStream().close(); p.getErrorStream().close(); parseTempFile(modifications); } catch (Exception e) { e.printStackTrace(); } if (_property != null && modifications.size() > 0) { _properties.put(_property, "true"); } return modifications; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/05428420207cd58e83f94f0d979a29aed3ec64f7/Vss.java/buggy/main/src/net/sourceforge/cruisecontrol/sourcecontrols/Vss.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 2037, 13, 288, 202, 202, 759, 12, 25691, 13, 2608, 1361, 5623, 2189, 16, 1196, 5623, 2189, 202, 202, 759, 2164, 385, 14640, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 2037, 13, 288, 202, 202, 759, 12, 25691, 13, 2608, 1361, 5623, 2189, 16, 1196, 5623, 2189, 202, 202, 759, 2164, 385, 14640, 10...
for (int x=0; x<sizes.length; ++x) {
for (int x = 0; x < sizes.length; ++x) {
public void testMeasureLatencyEcho() throws Exception { EchoServer _echoServer = EchoServerHelper.narrow(getORB().resolve_initial_references("EchoServer")); final Any _data = testUtils_.getSizedTestData(100); TestEventGenerator _gen = new TestEventGenerator() { public Any getNextEvent() { return _data; } }; int[] sizes = new int[] {1, 32, 64, 128, 256, 512, 1024}; for (int x=0; x<sizes.length; ++x) { measureLatencyEcho(_gen, _echoServer, sizes[x]); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/daae1b86a196ce34b8466256a2014d4fbb54bbc3/PerformanceTest.java/clean/test/regression/src/org/jacorb/test/notification/perf/PerformanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7197, 21461, 19704, 1435, 1216, 1185, 288, 3639, 28995, 2081, 389, 12946, 2081, 273, 5411, 28995, 2081, 2276, 18, 82, 7815, 12, 588, 916, 38, 7675, 10828, 67, 6769, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7197, 21461, 19704, 1435, 1216, 1185, 288, 3639, 28995, 2081, 389, 12946, 2081, 273, 5411, 28995, 2081, 2276, 18, 82, 7815, 12, 588, 916, 38, 7675, 10828, 67, 6769, 67, 1...
Complex[] inputSeq = new Complex[NPoint]; if (NPoint < windowSize) {
if (NPoint < windowSize) {
private Spectrum process (AudioFrame input) throws IllegalArgumentException { /** * Create complex input sequence equivalent to the real * input sequence. * If the number of points is less than the window size, * we incur in aliasing. If it's greater, we pad the input * sequence with zeros. */ double[] in = input.getAudioSamples(); if (in.length != windowSize) { throw new IllegalArgumentException ("Window size is incorrect: in.length == " + in.length + ", windowSize == " + windowSize); } Complex[] inputSeq = new Complex[NPoint]; if (NPoint < windowSize) { for (int i = 0; i < NPoint; i++) { inputSeq[i]= new Complex(in[i]); } for (int i = NPoint; i < windowSize; i++) { inputSeq[i % NPoint].addComplex(inputSeq[i % NPoint], new Complex(in[i])); } } else { for (int i = 0; i < windowSize; i++) { inputSeq[i] = new Complex(in[i]); } for (int i = windowSize; i < NPoint; i++) { inputSeq[i] = new Complex(); } } /** * Create output sequence. */ double[] outputSpectrum = new double[NPoint >> 1]; /** * Start Fast Fourier Transform recursion */ recurseFFT(inputSeq, outputSpectrum, NPoint, false); /** * Return the power spectrum */ Spectrum output = new Spectrum(outputSpectrum); if (getDump()) { System.out.println(Util.dumpDoubleArray (outputSpectrum, "SPEC_MAGNITUDE")); } return output; }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/648a7ad34e7a74e09a51de33691772df4f99e7c9/SpectrumAnalyzer.java/clean/sphinx4/edu/cmu/sphinx/frontend/SpectrumAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 348, 13324, 1207, 261, 12719, 3219, 810, 13, 225, 202, 15069, 2754, 288, 202, 26873, 202, 380, 1788, 7233, 810, 3102, 7680, 358, 326, 2863, 202, 380, 810, 3102, 18, 202, 380, 971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 348, 13324, 1207, 261, 12719, 3219, 810, 13, 225, 202, 15069, 2754, 288, 202, 26873, 202, 380, 1788, 7233, 810, 3102, 7680, 358, 326, 2863, 202, 380, 810, 3102, 18, 202, 380, 971, ...
option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload", "Click here");
option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload"+extras, "Click here");
public static void handleDownload(ToadletContext context, Bucket data, BucketFactory bucketFactory, String mimeType, String requestedMimeType, String forceString, boolean forceDownload, String basePath, FreenetURI key) throws ToadletContextClosedException, IOException { if(requestedMimeType != null) mimeType = requestedMimeType; long now = System.currentTimeMillis(); boolean force = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } try { if((!force) && (!forceDownload)) { FilterOutput fo = ContentFilter.filter(data, bucketFactory, mimeType, new URI(basePath + URLEncoder.encode(key.toString(false))), null); data = fo.data; mimeType = fo.type; } if (forceDownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment; filename=\"" + key.getPreferredFilename() + "\""); context.sendReplyHeaders(200, "OK", headers, "application/x-msdownload", data.size()); context.writeData(data); } else { // Send the data, intact context.sendReplyHeaders(200, "OK", new MultiValueTable(), mimeType, data.size()); context.writeData(data); } } catch (URISyntaxException use1) { /* shouldn't happen */ use1.printStackTrace(); Logger.error(FProxyToadlet.class, "could not create URI", use1); } catch (UnsafeContentTypeException e) { HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content"); HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-alert"); infobox.addChild("div", "class", "infobox-header", e.getRawTitle()); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild(e.getHTMLExplanation()); infoboxContent.addChild("p", "Your options are:"); HTMLNode optionList = infoboxContent.addChild("ul"); HTMLNode option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain", "Click here"); option.addChild("#", " to open the file as plain text (this should not be dangerous but it may be garbled)."); // FIXME: is this safe? See bug #131 option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload", "Click here"); option.addChild("#", " to force your browser to download the file to disk."); option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?force=" + getForceValue(key, now), "Click here"); option.addChild("#", " to open the file as " + mimeType + "."); option = optionList.addChild("li"); option.addChild("a", "href", "/", "Click here"); option.addChild("#", " to go to the FProxy home page."); byte[] pageBytes = pageNode.generate().getBytes(); context.sendReplyHeaders(200, "OK", new MultiValueTable(), "text/html; charset=utf-8", pageBytes.length); context.writeData(pageBytes); } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/f466a9cbfdb3a13d7bde7e38d0a46b0f45645263/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
if (isCurrentlyFinal(callee, true)) { if (OPT_ClassLoadingDependencyManager.TRACE || OPT_ClassLoadingDependencyManager.DEBUG) { VM_Class.OptCLDepManager.report("PREEX_INLINE: Inlined "+callee+ " into "+caller+"\n"); } VM_Class.OptCLDepManager.addNotOverriddenDependency(callee, state.getCompiledMethod()); return false; }
if (isCurrentlyFinal(callee, true)) { if (OPT_ClassLoadingDependencyManager.TRACE || OPT_ClassLoadingDependencyManager.DEBUG) { VM_Class.OptCLDepManager.report("PREEX_INLINE: Inlined "+callee+ " into "+caller+"\n"); } VM_Class.OptCLDepManager.addNotOverriddenDependency(callee, state.getCompiledMethod()); return false; }
protected boolean candidateNeedsGuard(VM_Method caller, VM_Method callee, OPT_CompilationState state) { // for now, guard all inlined interface invocations. // TODO: is this too strict? Does pre-existance apply? if (state.isInvokeInterface()) return true; if (needsGuard(callee)) { // check pre-existance if (state.getIsExtant() && state.getOptions().PREEX_INLINE) { if (isCurrentlyFinal(callee, true)) { // use pre-existence !! if (OPT_ClassLoadingDependencyManager.TRACE || OPT_ClassLoadingDependencyManager.DEBUG) { VM_Class.OptCLDepManager.report("PREEX_INLINE: Inlined "+callee+ " into "+caller+"\n"); } VM_Class.OptCLDepManager.addNotOverriddenDependency(callee, state.getCompiledMethod()); return false; } } return true; } return false; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/ee6c26e56a27af846fd4e211951a59cb84a14877/OPT_ProfileDirectedInlineOracle.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/ipa/inlining/OPT_ProfileDirectedInlineOracle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 5500, 26419, 16709, 12, 7397, 67, 1305, 4894, 16, 8251, 67, 1305, 14425, 16, 4405, 1377, 16456, 67, 19184, 1119, 919, 13, 288, 565, 368, 364, 2037, 16, 11026, 777, 316, 22316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 5500, 26419, 16709, 12, 7397, 67, 1305, 4894, 16, 8251, 67, 1305, 14425, 16, 4405, 1377, 16456, 67, 19184, 1119, 919, 13, 288, 565, 368, 364, 2037, 16, 11026, 777, 316, 22316,...
private Dimension getDimension(Cube cube, String s) throws OLAPException { for (Iterator iterator = cube.getCubeDimensionAssociation().iterator(); iterator.hasNext();) { CubeDimensionAssociation cubeDimension = (CubeDimensionAssociation) iterator.next(); if (cubeDimension.getDimension().getName().equals(s)) { return cubeDimension.getDimension(); } } return null; }
private Dimension getDimension(Connection someConnection, String name) throws OLAPException { final Collection dimensions = someConnection.getDimensions(); for (Iterator iterator = dimensions.iterator(); iterator.hasNext();) { Dimension dimension = (Dimension) iterator.next(); if (dimension.getName().equals(name)) { return dimension; } } return null; }
private Dimension getDimension(Cube cube, String s) throws OLAPException { for (Iterator iterator = cube.getCubeDimensionAssociation().iterator(); iterator.hasNext();) { CubeDimensionAssociation cubeDimension = (CubeDimensionAssociation) iterator.next(); if (cubeDimension.getDimension().getName().equals(s)) { return cubeDimension.getDimension(); } } return null; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/7d6a0c3d02156aab207b5017ce3ba65883fef640/JolapTest.java/buggy/src/main/mondrian/test/JolapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13037, 20283, 12, 39, 4895, 18324, 16, 514, 272, 13, 1216, 531, 48, 2203, 503, 288, 202, 202, 1884, 261, 3198, 2775, 273, 18324, 18, 588, 39, 4895, 8611, 7174, 7675, 9838, 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, 225, 202, 1152, 13037, 20283, 12, 39, 4895, 18324, 16, 514, 272, 13, 1216, 531, 48, 2203, 503, 288, 202, 202, 1884, 261, 3198, 2775, 273, 18324, 18, 588, 39, 4895, 8611, 7174, 7675, 9838, 56...
UCA.UCAContents cc = collator.getContents(UCA.FIXED_CE, nfd);
UCA.UCAContents cc = collator.getContents(UCA.FIXED_CE, Default.nfd);
static void checkCE_overlap() throws IOException { /*PrintWriter diLog = new PrintWriter( new BufferedWriter( new OutputStreamWriter( new FileOutputStream(UCA_GEN_DIR + "DisjointIgnorables.txt"), "UTF8"), 32*1024)); */ PrintWriter diLog = Utility.openPrintWriter(UCA_GEN_DIR, "DisjointIgnorables2.js", Utility.UTF8_WINDOWS); diLog.write('\uFEFF'); //diLog = new PrintWriter(new FileOutputStream(UCA_GEN_DIR + "DisjointIgnorables.txt")); Normalizer nfd = new Normalizer(Normalizer.NFD, UNICODE_VERSION); int[] ces = new int[50]; int[] secondariesZP = new int[400]; Vector[] secondariesZPsample = new Vector[400]; int[] remapZP = new int[400]; int[] secondariesNZP = new int[400]; Vector[] secondariesNZPsample = new Vector[400]; int[] remapNZP = new int[400]; for (int i = 0; i < secondariesZP.length; ++i) { secondariesZPsample[i] = new Vector(); secondariesNZPsample[i] = new Vector(); } int zpCount = 0; int nzpCount = 0; /* for (char ch = 0; ch < 0xFFFF; ++ch) { byte type = collator.getCEType(ch); if (type >= UCA.FIXED_CE) continue; if (SKIP_CANONICAL_DECOMPOSIBLES && nfd.hasDecomposition(ch)) continue; String s = String.valueOf(ch); int len = collator.getCEs(s, true, ces); */ UCA.UCAContents cc = collator.getContents(UCA.FIXED_CE, nfd); int[] lenArray = new int[1]; Set sortedCodes = new TreeSet(); Set mixedCEs = new TreeSet(); while (true) { String s = cc.next(ces, lenArray); if (s == null) break; // process all CEs. Look for controls, and for mixed ignorable/non-ignorables int ccc; for (int kk = 0; kk < s.length(); kk += UTF32.count16(ccc)) { ccc = UTF32.char32At(s,kk); byte cat = ucd.getCategory(ccc); if (cat == Cf || cat == Cc || cat == Zs || cat == Zl || cat == Zp) { sortedCodes.add(CEList.toString(ces, lenArray[0]) + "\t" + ucd.getCodeAndName(s)); break; } } int len = lenArray[0]; int haveMixture = 0; for (int j = 0; j < len; ++j) { int ce = ces[j]; int pri = collator.getPrimary(ce); int sec = collator.getSecondary(ce); if (pri == 0) { secondariesZPsample[sec].add(secondariesZP[sec], s); secondariesZP[sec]++; } else { secondariesNZPsample[sec].add(secondariesNZP[sec], s); secondariesNZP[sec]++; } if (haveMixture == 3) continue; if (collator.isVariable(ce)) haveMixture |= 1; else haveMixture |= 2; if (haveMixture == 3) { mixedCEs.add(CEList.toString(ces, len) + "\t" + ucd.getCodeAndName(s)); } } } for (int i = 0; i < secondariesZP.length; ++i) { if (secondariesZP[i] != 0) { remapZP[i] = zpCount; zpCount++; } if (secondariesNZP[i] != 0) { remapNZP[i] = nzpCount; nzpCount++; } } diLog.println(); diLog.println("# Proposed Remapping (see doc about Japanese characters)"); diLog.println(); int bothCount = 0; for (int i = 0; i < secondariesZP.length; ++i) { if ((secondariesZP[i] != 0) || (secondariesNZP[i] != 0)) { char sign = ' '; if (secondariesZP[i] != 0 && secondariesNZP[i] != 0) { sign = '*'; bothCount++; } if (secondariesZP[i] != 0) { showSampleOverlap(diLog, false, sign + "ZP ", secondariesZPsample[i]); // i, 0x20 + nzpCount + remapZP[i], } if (secondariesNZP[i] != 0) { if (i == 0x20) { diLog.println("(omitting " + secondariesNZP[i] + " NZP with values 0020 -- values don't change)"); } else { showSampleOverlap(diLog, true, sign + "NZP", secondariesNZPsample[i]); // i, 0x20 + remapNZP[i], } } diLog.println(); } } diLog.println("ZP Count = " + zpCount + ", NZP Count = " + nzpCount + ", Collisions = " + bothCount); diLog.close(); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/39e1d2518d1c65a21b4d5999d7f351a73c869755/WriteCollationData.java/clean/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 866, 1441, 67, 17946, 1435, 1216, 1860, 288, 3639, 1748, 5108, 2289, 4314, 1343, 273, 394, 14071, 12, 5411, 394, 22490, 12, 7734, 394, 24248, 12, 10792, 394, 12942, 12, 57, 3587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 866, 1441, 67, 17946, 1435, 1216, 1860, 288, 3639, 1748, 5108, 2289, 4314, 1343, 273, 394, 14071, 12, 5411, 394, 22490, 12, 7734, 394, 24248, 12, 10792, 394, 12942, 12, 57, 3587...
boolean isProxyInjectionMode = System.getProperty("selenium.proxyInjectionMode")!=null && System.getProperty("selenium.proxyInjectionMode").equals("true");
boolean isProxyInjectionMode = System.getProperty("selenium.proxyInjectionMode") != null && System.getProperty("selenium.proxyInjectionMode").equals("true");
public static Test suite() { boolean isProxyInjectionMode = System.getProperty("selenium.proxyInjectionMode")!=null && System.getProperty("selenium.proxyInjectionMode").equals("true"); String forcedBrowserMode = System.getProperty("selenium.forcedBrowserMode"); if (forcedBrowserMode==null) { forcedBrowserMode = "none"; } try {// TODO This class extends TestCase to workaround MSUREFIRE-113 // http://jira.codehaus.org/browse/MSUREFIRE-113// Once that bug is fixed, this class should be a TestSuite, not a TestCase TestSuite supersuite = new TestSuite(ClientDriverSuite.class.getName()); TestSuite suite = new TestSuite(ClientDriverSuite.class.getName()); suite.addTestSuite(ApacheMyFacesSuggestTest.class); if (isProxyInjectionMode) {// once frames support is added to the main trunk, we will be able to run the following in non-proxy injection mode: suite.addTestSuite(TestFramesClick.class); suite.addTestSuite(TestFramesOpen.class); suite.addTestSuite(TestFramesNested.class); } suite.addTest(I18nTest.suite()); suite.addTestSuite(RealDealIntegrationTest.class); suite.addTestSuite(TestErrorChecking.class); suite.addTestSuite(TestJavascriptParameters.class); suite.addTestSuite(TestClick.class); suite.addTestSuite(GoogleTestSearch.class); suite.addTestSuite(GoogleTest.class); suite.addTestSuite(TestCheckUncheck.class); suite.addTestSuite(TestClick.class); suite.addTestSuite(TestXPathLocators.class); suite.addTestSuite(TestClickJavascriptHref.class); suite.addTestSuite(TestCommandError.class); suite.addTestSuite(TestComments.class); suite.addTestSuite(TestFailingAssert.class); suite.addTestSuite(TestFailingVerifications.class); suite.addTestSuite(TestFocusOnBlur.class); suite.addTestSuite(TestGoBack.class); suite.addTestSuite(TestImplicitLocators.class); suite.addTestSuite(TestLocators.class); suite.addTestSuite(TestOpen.class); suite.addTestSuite(TestPatternMatching.class); suite.addTestSuite(TestPause.class); if (!isProxyInjectionMode) { suite.addTestSuite(TestSelectWindow.class); } suite.addTestSuite(TestStore.class); suite.addTestSuite(TestSubmit.class); suite.addTestSuite(TestType.class); suite.addTestSuite(TestVerifications.class); suite.addTestSuite(TestWait.class); suite.addTestSuite(TestSelect.class); suite.addTestSuite(TestEditable.class); if (!isProxyInjectionMode || forcedBrowserMode.equals("*piiexplore")) { // BUG in PI mode propogation of state suite.addTestSuite(TestPrompt.class); suite.addTestSuite(TestConfirmations.class); suite.addTestSuite(TestAlerts.class); suite.addTestSuite(TestRefresh.class); } suite.addTestSuite(TestVisibility.class); suite.addTestSuite(TestMultiSelect.class); if (!isProxyInjectionMode) { suite.addTestSuite(TestWaitInPopupWindow.class); } suite.addTestSuite(TestWaitFor.class); suite.addTestSuite(TestWaitForNot.class); ClientDriverTestSetup setup = new ClientDriverTestSetup(suite); supersuite.addTest(setup); return supersuite; } catch (RuntimeException e) { e.printStackTrace(); throw e; } }
50930 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50930/7f72236bc3559146844f6f17165ded6e995fe80f/ClientDriverSuite.java/clean/clients/java/src/test/java/com/thoughtworks/selenium/ClientDriverSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 3639, 1250, 353, 3886, 12039, 2309, 273, 2332, 18, 588, 1396, 2932, 1786, 17327, 18, 5656, 12039, 2309, 7923, 5, 33, 2011, 3639, 597, 2332, 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, 225, 202, 482, 760, 7766, 11371, 1435, 288, 3639, 1250, 353, 3886, 12039, 2309, 273, 2332, 18, 588, 1396, 2932, 1786, 17327, 18, 5656, 12039, 2309, 7923, 5, 33, 2011, 3639, 597, 2332, 18, 588,...
if (line.getIndex() == index) return line;
if ((line.getNode1() == atNode) || (line.getNode2() == atNode)) { if (count == 0) lines = new Line[ 1 ]; else { Line[] newLines = new Line[ lines.length + 1 ]; System.arraycopy(lines, 0, newLines, 0, lines.length); lines = newLines; } lines[ count++ ] = line; }
public Line get(int index) { Enumeration list = lineTable.elements(); if (list == null) return null; while (list.hasMoreElements()) { Line line = (Line)list.nextElement(); if (line.getIndex() == index) return line; } return null; }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/96b1bb77f22226b8ff30eac5a3196e7150e17ac1/LineCache.java/buggy/src/openmap/com/bbn/openmap/graphicLoader/netmap/LineCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5377, 336, 12, 474, 770, 13, 288, 3639, 13864, 666, 273, 980, 1388, 18, 6274, 5621, 3639, 309, 261, 1098, 422, 446, 13, 327, 446, 31, 3639, 1323, 261, 1098, 18, 5332, 7417, 3471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5377, 336, 12, 474, 770, 13, 288, 3639, 13864, 666, 273, 980, 1388, 18, 6274, 5621, 3639, 309, 261, 1098, 422, 446, 13, 327, 446, 31, 3639, 1323, 261, 1098, 18, 5332, 7417, 3471, ...
public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:694:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:694:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints1699); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:695:17: ( constraint[constraints] | predicate[constraints] ) int alt48=2; int LA48_0 = input.LA(1); if ( LA48_0==EOL||LA48_0==15 ) { alt48=1; } else if ( LA48_0==ID ) { int LA48_2 = input.LA(2); if ( LA48_2==32 ) { int LA48_3 = input.LA(3); if ( LA48_3==ID ) { int LA48_8 = input.LA(4); if ( LA48_8==53 ) { alt48=2; } else if ( LA48_8==EOL||LA48_8==15||(LA48_8>=24 && LA48_8<=25)||(LA48_8>=43 && LA48_8<=51) ) { alt48=1; } else { NoViableAltException nvae = new NoViableAltException("695:17: ( constraint[constraints] | predicate[constraints] )", 48, 8, input); throw nvae; } } else if ( LA48_3==EOL||LA48_3==15 ) { alt48=1; } else { NoViableAltException nvae = new NoViableAltException("695:17: ( constraint[constraints] | predicate[constraints] )", 48, 3, input); throw nvae; } } else if ( LA48_2==EOL||LA48_2==15||(LA48_2>=24 && LA48_2<=25)||(LA48_2>=43 && LA48_2<=51) ) { alt48=1; } else { NoViableAltException nvae = new NoViableAltException("695:17: ( constraint[constraints] | predicate[constraints] )", 48, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("695:17: ( constraint[constraints] | predicate[constraints] )", 48, 0, input); throw nvae; } switch (alt48) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:695:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1704); constraint(constraints); following.pop(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:695:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1707); predicate(constraints); following.pop(); } break; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:696:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop50: do { int alt50=2; alt50 = dfa50.predict(input); switch (alt50) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:696:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints1715); opt_eol(); following.pop(); match(input,24,FOLLOW_24_in_constraints1717); following.push(FOLLOW_opt_eol_in_constraints1719); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:696:39: ( constraint[constraints] | predicate[constraints] ) int alt49=2; int LA49_0 = input.LA(1); if ( LA49_0==EOL||LA49_0==15 ) { alt49=1; } else if ( LA49_0==ID ) { int LA49_2 = input.LA(2); if ( LA49_2==32 ) { int LA49_3 = input.LA(3); if ( LA49_3==ID ) { int LA49_8 = input.LA(4); if ( LA49_8==53 ) { alt49=2; } else if ( LA49_8==EOL||LA49_8==15||(LA49_8>=24 && LA49_8<=25)||(LA49_8>=43 && LA49_8<=51) ) { alt49=1; } else { NoViableAltException nvae = new NoViableAltException("696:39: ( constraint[constraints] | predicate[constraints] )", 49, 8, input); throw nvae; } } else if ( LA49_3==EOL||LA49_3==15 ) { alt49=1; } else { NoViableAltException nvae = new NoViableAltException("696:39: ( constraint[constraints] | predicate[constraints] )", 49, 3, input); throw nvae; } } else if ( LA49_2==EOL||LA49_2==15||(LA49_2>=24 && LA49_2<=25)||(LA49_2>=43 && LA49_2<=51) ) { alt49=1; } else { NoViableAltException nvae = new NoViableAltException("696:39: ( constraint[constraints] | predicate[constraints] )", 49, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("696:39: ( constraint[constraints] | predicate[constraints] )", 49, 0, input); throw nvae; } switch (alt49) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:696:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1722); constraint(constraints); following.pop(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:696:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1725); predicate(constraints); following.pop(); } break; } } break; default : break loop50; } } while (true); following.push(FOLLOW_opt_eol_in_constraints1733); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 6237, 1435, 1216, 9539, 288, 6647, 987, 6237, 31, 540, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 6237, 1435, 1216, 9539, 288, 6647, 987, 6237, 31, 540, 202, 202, 11967, 273, 394, 2407, 5621, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582...
VM_Atom methodDescriptor) { return VM_MethodDictionary.getValue(findOrCreateMethodId(classDescriptor, methodName, methodDescriptor));
VM_Atom methodDescriptor, ClassLoader classloader) { return VM_MethodDictionary.getValue(findOrCreateMethodId(classDescriptor, methodName, methodDescriptor, classloader));
static VM_Method findOrCreateMethod(VM_Atom classDescriptor, VM_Atom methodName, VM_Atom methodDescriptor) { return VM_MethodDictionary.getValue(findOrCreateMethodId(classDescriptor, methodName, methodDescriptor)); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b50ef93406b2ef984f8285babf993d262ec89fae/VM_ClassLoader.java/clean/rvm/src/vm/classLoader/VM_ClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 8251, 67, 1305, 1104, 17717, 1305, 12, 7397, 67, 3641, 667, 3187, 16, 4405, 1377, 8251, 67, 3641, 4918, 16, 4405, 1377, 8251, 67, 3641, 707, 3187, 13, 288, 565, 327, 8251, 67, 1305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 8251, 67, 1305, 1104, 17717, 1305, 12, 7397, 67, 3641, 667, 3187, 16, 4405, 1377, 8251, 67, 3641, 4918, 16, 4405, 1377, 8251, 67, 3641, 707, 3187, 13, 288, 565, 327, 8251, 67, 1305...
public static Number objectCountWithQualifier(EOEditingContext ec, String entityName, EOQualifier qualifier) {
public static Number objectCountWithQualifier(EOEditingContext ec, String entityName, EOQualifier qualifier) {
public static Number objectCountWithQualifier(EOEditingContext ec, String entityName, EOQualifier qualifier) { EOAttribute attribute = EOEnterpriseObjectClazz.objectCountAttribute(); return _objectCountWithQualifierAndAttribute(ec, entityName, qualifier, attribute); }
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/34bd76e4415f130e75e7bb5959a34935299de2cf/ERXEOControlUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOControlUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3588, 733, 1380, 1190, 16185, 12, 41, 51, 28029, 1042, 6557, 16, 5411, 514, 14868, 16, 512, 51, 16185, 12327, 13, 288, 3639, 512, 51, 1499, 1566, 273, 512, 51, 30699, 921, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3588, 733, 1380, 1190, 16185, 12, 41, 51, 28029, 1042, 6557, 16, 5411, 514, 14868, 16, 512, 51, 16185, 12327, 13, 288, 3639, 512, 51, 1499, 1566, 273, 512, 51, 30699, 921, 14...
noResults = true;
noResults = true;
void addConvId(int cid, boolean truth) { if (truth) { if (prohibitedConvIds.contains(cid)) { noResults = true; } if (cid == 0) { convId = cid; } else { if (DBQueryOperation.mLog.isDebugEnabled()) { DBQueryOperation.mLog.debug("Query requested two conflicting convIDs, this is now a no-results-query"); } convId = Integer.MAX_VALUE; noResults = true; } } else { if (convId == cid) { noResults = true; } prohibitedConvIds.add(cid); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/3dc62a7ec16f68262bfbb9bffba7a63beb284247/DbLeafNode.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/DbLeafNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 17467, 548, 12, 474, 7504, 16, 1250, 16512, 13, 288, 3639, 309, 261, 313, 795, 13, 288, 540, 202, 430, 261, 685, 29993, 17467, 2673, 18, 12298, 12, 13478, 3719, 288, 540, 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, 377, 918, 527, 17467, 548, 12, 474, 7504, 16, 1250, 16512, 13, 288, 3639, 309, 261, 313, 795, 13, 288, 540, 202, 430, 261, 685, 29993, 17467, 2673, 18, 12298, 12, 13478, 3719, 288, 540, 202,...
throw new MojoExecutionException( "Failed to load release information from file: " + ReleaseProgressTracker.getReleaseProgressFilename(), e );
throw new MojoExecutionException( "Failed to load release information from file: " + ReleaseProgressTracker.getReleaseProgressFilename(), e );
protected ReleaseProgressTracker getReleaseProgress() throws MojoExecutionException { if ( releaseProgress == null ) { try { releaseProgress = ReleaseProgressTracker.load( basedir ); } catch ( IOException e ) { throw new MojoExecutionException( "Failed to load release information from file: " + ReleaseProgressTracker.getReleaseProgressFilename(), e ); } } return releaseProgress; }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/b73908aa3bc83f4038c4df7fed660648a024f3bf/PerformReleaseMojo.java/buggy/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 10819, 5491, 8135, 336, 7391, 5491, 1435, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 3992, 5491, 422, 446, 262, 3639, 288, 5411, 775, 5411, 288, 7734, 3992, 5491, 273, 10819, 5491, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 10819, 5491, 8135, 336, 7391, 5491, 1435, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 3992, 5491, 422, 446, 262, 3639, 288, 5411, 775, 5411, 288, 7734, 3992, 5491, 273, 10819, 5491, ...
((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear();
((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .getSeriesDefinitions().clear();
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { if(sNewSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) axes.get(i)).setPercent(true); } else { ((Axis) axes.get(i)).setPercent(false); } EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); if((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } } } } } else if(currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Stock Chart") || currentChart.getType().equals("Scatter Chart")) { if(!currentChart.getType().equals("Line Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.TEXT_LITERAL); currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { if(sNewSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) axes.get(i)).setPercent(true); } else { ((Axis) axes.get(i)).setPercent(false); } EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); if((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(helperModel.getSampleData()); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); if((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/588e7d9d61e91804070df10605592e7dbd22ac16/BarChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984,...
return createRestrictedPermissionSet( document, DocumentPermissionSetDomainObject.TYPE_ID__RESTRICTED_1, false );
return getRestrictedPermissionSet( document, DocumentPermissionSetDomainObject.TYPE_ID__RESTRICTED_1, false );
public DocumentPermissionSetDomainObject getPermissionSetRestrictedOne( DocumentDomainObject document ) { return createRestrictedPermissionSet( document, DocumentPermissionSetDomainObject.TYPE_ID__RESTRICTED_1, false ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7b632b962fde2a8944b567ff61a263b85de4a8f3/DocumentPermissionSetMapper.java/buggy/server/src/imcode/server/document/DocumentPermissionSetMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4319, 5041, 694, 3748, 921, 24981, 694, 18784, 3335, 12, 4319, 3748, 921, 1668, 262, 288, 3639, 327, 336, 18784, 5041, 694, 12, 1668, 16, 4319, 5041, 694, 3748, 921, 18, 2399, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4319, 5041, 694, 3748, 921, 24981, 694, 18784, 3335, 12, 4319, 3748, 921, 1668, 262, 288, 3639, 327, 336, 18784, 5041, 694, 12, 1668, 16, 4319, 5041, 694, 3748, 921, 18, 2399, 67, ...
throw newEvalException(dummyFunDef, "Parameter name must be a string constant");
throw newEvalException( dummyFunDef, "Parameter name must be a string constant");
protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String parameterName; if (args[0] instanceof Literal && args[0].getCategory() == Category.String) { parameterName = (String) ((Literal) args[0]).getValue(); } else { throw newEvalException(dummyFunDef, "Parameter name must be a string constant"); } Exp typeArg = args[1]; Hierarchy hierarchy; int type; switch (typeArg.getCategory()) { case Category.Hierarchy: case Category.Dimension: hierarchy = typeArg.getType().getHierarchy(); if (hierarchy == null || !isConstantHierarchy(typeArg)) { throw newEvalException(dummyFunDef, "Invalid hierarchy for parameter '" + parameterName + "'"); } type = Category.Member; break; case Category.Symbol: hierarchy = null; String s = (String) ((Literal) typeArg).getValue(); if (s.equalsIgnoreCase("NUMERIC")) { type = Category.Numeric; break; } else if (s.equalsIgnoreCase("STRING")) { type = Category.String; break; } // fall through and throw error default: // Error is internal because the function call has already been // type-checked. throw newEvalException(dummyFunDef, "Invalid type for parameter '" + parameterName + "'; expecting NUMERIC, STRING or a hierarchy"); } Exp exp = args[2]; if (exp.getCategory() != type) { String typeName = Category.instance.getName(type).toUpperCase(); throw newEvalException(dummyFunDef, "Default value of parameter '" + parameterName + "' is inconsistent with its type, " + typeName); } if (type == Category.Member) { Hierarchy expHierarchy = exp.getType().getHierarchy(); if (expHierarchy != hierarchy) { throw newEvalException(dummyFunDef, "Default value of parameter '" + parameterName + "' must belong to the hierarchy " + hierarchy); } } String parameterDescription = null; if (args.length > 3) { if (args[3] instanceof Literal && args[3].getCategory() == Category.String) { parameterDescription = (String) ((Literal) args[3]).getValue(); } else { throw newEvalException(dummyFunDef, "Description of parameter '" + parameterName + "' must be a string constant"); } } return new ParameterFunDef(dummyFunDef, parameterName, hierarchy, type, exp, parameterDescription); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/9a688e588ec59e84012f03e73f06a05a27fccd8e/ParameterFunDef.java/buggy/src/main/mondrian/olap/fun/ParameterFunDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 478, 318, 3262, 752, 22783, 3262, 12, 2966, 8526, 833, 16, 478, 318, 3262, 9609, 22783, 3262, 13, 288, 5411, 514, 15524, 31, 5411, 309, 261, 1968, 63, 20, 65, 1276, 14392, 597, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 478, 318, 3262, 752, 22783, 3262, 12, 2966, 8526, 833, 16, 478, 318, 3262, 9609, 22783, 3262, 13, 288, 5411, 514, 15524, 31, 5411, 309, 261, 1968, 63, 20, 65, 1276, 14392, 597, 10...
public void getData() { int i; log.logDebug(toString(), Messages.getString("CombinationLookupDialog.Log.GettingKeyInfo")); //$NON-NLS-1$ if (input.getKeyField()!=null) for (i=0;i<input.getKeyField().length;i++) { TableItem item = wKey.table.getItem(i); if (input.getKeyField()[i]!=null) item.setText(1, input.getKeyField()[i]); if (input.getKeyLookup()[i]!=null) item.setText(2, input.getKeyLookup()[i]); } wReplace.setSelection( input.replaceFields() ); wHashcode.setSelection( input.useHash() ); wHashfield.setEnabled(input.useHash()); wHashfield.setVisible(input.useHash()); wlHashfield.setEnabled(input.useHash()); setAutoinc(); if (input.getTablename()!=null) wTable.setText( input.getTablename() ); if (input.getTechnicalKeyField()!=null) wTk.setText(input.getTechnicalKeyField()); wAutoinc.setSelection( input.isUseAutoinc() ); if (input.getSequenceFrom()!=null) wSeq.setText(input.getSequenceFrom()); if (input.getDatabase()!=null) wConnection.setText(input.getDatabase().getName()); else if (transMeta.nrDatabases()==1) { wConnection.setText( transMeta.getDatabase(0).getName() ); } if (input.getHashField()!=null) wHashfield.setText(input.getHashField()); wCommit.setText(""+input.getCommitSize()); //$NON-NLS-1$ wKey.setRowNums(); wKey.optWidth(true); wStepname.selectAll(); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/8752f3f5e66d59d9e3a97e797cef7bc045d25df6/CombinationLookupDialog.java/clean/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4303, 1435, 202, 95, 202, 202, 474, 277, 31, 202, 202, 1330, 18, 1330, 2829, 12, 10492, 9334, 4838, 18, 588, 780, 2932, 26062, 6609, 6353, 18, 1343, 18, 19213, 653, 966, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4303, 1435, 202, 95, 202, 202, 474, 277, 31, 202, 202, 1330, 18, 1330, 2829, 12, 10492, 9334, 4838, 18, 588, 780, 2932, 26062, 6609, 6353, 18, 1343, 18, 19213, 653, 966, ...
test = new DateMidnight(2004, 8, 16);
test = new DateMidnight(2004, 9, 16);
public void testPropertyRoundHalfEvenMonthOfYear() { DateMidnight test = new DateMidnight(2004, 7, 16); DateMidnight copy = test.monthOfYear().roundHalfEvenCopy(); assertEquals("2004-08-00T00:00:00.000+01:00", copy.toString()); test = new DateMidnight(2004, 8, 16); copy = test.monthOfYear().roundHalfEvenCopy(); assertEquals("2004-08-00T00:00:00.000+01:00", copy.toString()); test = new DateMidnight(2004, 7, 17); copy = test.monthOfYear().roundHalfEvenCopy(); assertEquals("2004-08-00T00:00:00.000+01:00", copy.toString()); test = new DateMidnight(2004, 7, 15); copy = test.monthOfYear().roundHalfEvenCopy(); assertEquals("2004-07-00T00:00:00.000+01:00", copy.toString()); }
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/4bcc1e7fd773ac2509f9f7087fce1010f8948d57/TestDateMidnight_Properties.java/clean/JodaTime/src/test/org/joda/time/TestDateMidnight_Properties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1396, 11066, 16168, 8321, 5445, 19091, 1435, 288, 3639, 2167, 20711, 18840, 1842, 273, 394, 2167, 20711, 18840, 12, 6976, 24, 16, 2371, 16, 2872, 1769, 3639, 2167, 20711, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1396, 11066, 16168, 8321, 5445, 19091, 1435, 288, 3639, 2167, 20711, 18840, 1842, 273, 394, 2167, 20711, 18840, 12, 6976, 24, 16, 2371, 16, 2872, 1769, 3639, 2167, 20711, 1...
Calendar c = new GregorianCalendar(year, month, day, hour, minute, second); c.setTimeZone(TimeZone.getTimeZone("UTC")); return c;
return getTimeStamp(year, month, day, hour, minute, second, TimeZone.getTimeZone("UTC"));
private Calendar getUtcTimeStamp(int year, int month, int day, int hour, int minute, int second) { Calendar c = new GregorianCalendar(year, month, day, hour, minute, second); c.setTimeZone(TimeZone.getTimeZone("UTC")); return c; }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/1767d639ccd72514f6c22f90185d2090cac4fcd4/SessionScheduleTest.java/buggy/test/quickfix/SessionScheduleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5542, 23037, 5111, 21536, 12, 474, 3286, 16, 509, 3138, 16, 509, 2548, 16, 509, 6126, 16, 509, 8044, 16, 509, 2205, 13, 288, 3639, 5542, 276, 273, 394, 28033, 12, 6874, 16, 3138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5542, 23037, 5111, 21536, 12, 474, 3286, 16, 509, 3138, 16, 509, 2548, 16, 509, 6126, 16, 509, 8044, 16, 509, 2205, 13, 288, 3639, 5542, 276, 273, 394, 28033, 12, 6874, 16, 3138, ...
public void setBackground(Color c) {}
public void setBackground(Color c) { Component.this.setBackground(c); }
public void setBackground(Color c) {}
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/fb0219dcce2e53020800c655562b5f7351b0579b/Component.java/clean/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 31217, 12, 2957, 276, 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, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 31217, 12, 2957, 276, 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, -100,...
public void testMavenLifecycleManager() throws Exception
public void testMavenLifecycleManager() throws Exception
public void testMavenLifecycleManager() throws Exception { MavenGoalPhaseManager mlm = (MavenGoalPhaseManager) lookup( MavenGoalPhaseManager.ROLE ); List lifecyclePhases = mlm.getLifecyclePhases(); assertEquals( 6, lifecyclePhases.size() ); }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/a949eb66dedc63459e4897d50c37374814750c66/MavenLifecycleManagerTest.java/clean/maven-core/src/test/java/org/apache/maven/lifecycle/MavenLifecycleManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 49, 7638, 9977, 1318, 1435, 3639, 1216, 1185, 565, 288, 3639, 17176, 27716, 11406, 1318, 12931, 81, 273, 261, 49, 7638, 27716, 11406, 1318, 13, 3689, 12, 17176, 27716, 1140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 49, 7638, 9977, 1318, 1435, 3639, 1216, 1185, 565, 288, 3639, 17176, 27716, 11406, 1318, 12931, 81, 273, 261, 49, 7638, 27716, 11406, 1318, 13, 3689, 12, 17176, 27716, 1140...
static_initMimer()
protected void setUp() throws IOException { databaseServices = new DatabaseService[]{ static_initMySql(), static_initSqlServer(), static_initMimer() }; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/aca9d942dfb6a698cacf46e93c41d1a44ec71ff9/TestDatabaseService.java/buggy/server/src/imcode/server/db/TestDatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1860, 288, 3639, 2063, 5676, 273, 394, 5130, 1179, 63, 7073, 5411, 760, 67, 2738, 12062, 5101, 9334, 5411, 760, 67, 2738, 5101, 2081, 9334, 10402, 289, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1860, 288, 3639, 2063, 5676, 273, 394, 5130, 1179, 63, 7073, 5411, 760, 67, 2738, 12062, 5101, 9334, 5411, 760, 67, 2738, 5101, 2081, 9334, 10402, 289, 31, 5...
static BreakIterator createBreakInstance(Locale where, int kind, String rulesName, String dictionaryName) { ResourceBundle bundle = ICULocaleData.getResourceBundle("BreakIteratorRules", where); String[] classNames = bundle.getStringArray("BreakIteratorClasses"); String rules = bundle.getString(rulesName); if (classNames[kind].equals("RuleBasedBreakIterator")) { return new RuleBasedBreakIterator(rules); } else if (classNames[kind].equals("DictionaryBasedBreakIterator")) { try { Object t = bundle.getObject(dictionaryName); URL url = (URL)t; InputStream dictionary = url.openStream(); return new DictionaryBasedBreakIterator(rules, dictionary); } catch(IOException e) { } catch(MissingResourceException e) { } return new RuleBasedBreakIterator(rules); } else throw new IllegalArgumentException("Invalid break iterator class \"" + classNames[kind] + "\"");
private static BreakIterator createBreakInstance(Locale locale, int kind) { String prefix = KIND_NAMES[kind]; return createBreakInstance(locale, kind, prefix + "BreakRules", prefix + "BreakDictionary");
static BreakIterator createBreakInstance(Locale where, int kind, String rulesName, String dictionaryName) {// System.out.println("rulesName: "+rulesName);// System.out.println("dictionaryName: "+dictionaryName); ResourceBundle bundle = ICULocaleData.getResourceBundle("BreakIteratorRules", where); String[] classNames = bundle.getStringArray("BreakIteratorClasses"); String rules = bundle.getString(rulesName); if (classNames[kind].equals("RuleBasedBreakIterator")) { return new RuleBasedBreakIterator(rules); } else if (classNames[kind].equals("DictionaryBasedBreakIterator")) { try { // System.out.println(dictionaryName); Object t = bundle.getObject(dictionaryName); // System.out.println(t); URL url = (URL)t; InputStream dictionary = url.openStream(); return new DictionaryBasedBreakIterator(rules, dictionary); } catch(IOException e) { } catch(MissingResourceException e) { } return new RuleBasedBreakIterator(rules); } else throw new IllegalArgumentException("Invalid break iterator class \"" + classNames[kind] + "\""); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/61874c359683fe8a7443e59e0ddc1089f0b2163a/BreakIteratorFactory.java/buggy/icu4j/src/com/ibm/icu/text/BreakIteratorFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 17030, 3198, 752, 7634, 1442, 12, 3916, 1625, 16, 4766, 2398, 509, 3846, 16, 4766, 2398, 514, 2931, 461, 16, 4766, 2398, 514, 3880, 461, 13, 288, 759, 1377, 2332, 18, 659, 18, 8222...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17030, 3198, 752, 7634, 1442, 12, 3916, 1625, 16, 4766, 2398, 509, 3846, 16, 4766, 2398, 514, 2931, 461, 16, 4766, 2398, 514, 3880, 461, 13, 288, 759, 1377, 2332, 18, 659, 18, 8222...
p[i]=(Peer) nominalPeer.get(i);
p[i]=(Peer) nominalPeer.get(i-1);
public Peer[] getHandshakeIPs(){ Peer[] p=null; if(detectedPeer == null && nominalPeer.size() == 0) return new Peer[0]; if( ! nominalPeer.contains(detectedPeer)){ p= new Peer[1+nominalPeer.size()]; p[0]=detectedPeer; for(int i=1;i<nominalPeer.size()+1;i++) p[i]=(Peer) nominalPeer.get(i); }else{ p = (Peer[]) nominalPeer.toArray(new Peer[nominalPeer.size()]); } // Hack for two nodes on the same IP that can't talk over inet for routing reasons InetAddress localhost = node.localhostAddress; InetAddress nodeIP = node.getPrimaryIPAddress(); if(nodeIP.equals(localhost)) return p; InetAddress peerIP = detectedPeer.getAddress(); if(peerIP.equals(localhost)) return p; if(nodeIP.equals(peerIP)) { Peer[] newPeers = new Peer[p.length+1]; System.arraycopy(p, 0, newPeers, 0, p.length); newPeers[newPeers.length-1] = new Peer(node.localhostAddress, detectedPeer.getPort()); p = newPeers; } return p; }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/fa21fc2b2e82ab4c1d7f97de65394dfb49e03cbd/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 8526, 336, 14545, 18246, 1435, 95, 377, 202, 6813, 8526, 293, 33, 2011, 31, 377, 202, 377, 202, 430, 12, 8238, 828, 6813, 422, 446, 597, 12457, 1490, 6813, 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, 377, 1071, 10669, 8526, 336, 14545, 18246, 1435, 95, 377, 202, 6813, 8526, 293, 33, 2011, 31, 377, 202, 377, 202, 430, 12, 8238, 828, 6813, 422, 446, 597, 12457, 1490, 6813, 18, 1467, 1435, ...
String dateStr = Integer.toString(DateFromTime(this.date)); String hourStr = Integer.toString(HourFromTime(this.date)); String minStr = Integer.toString(MinFromTime(this.date)); String secStr = Integer.toString(SecFromTime(this.date)); int year = YearFromTime(this.date);
String dateStr = Integer.toString(DateFromTime(date)); String hourStr = Integer.toString(HourFromTime(date)); String minStr = Integer.toString(MinFromTime(date)); String secStr = Integer.toString(SecFromTime(date)); int year = YearFromTime(date);
private String jsFunction_toUTCString() { if (this.date != this.date) return jsFunction_NaN_date_str; StringBuffer result = new StringBuffer(60); String dateStr = Integer.toString(DateFromTime(this.date)); String hourStr = Integer.toString(HourFromTime(this.date)); String minStr = Integer.toString(MinFromTime(this.date)); String secStr = Integer.toString(SecFromTime(this.date)); int year = YearFromTime(this.date); String yearStr = Integer.toString(year > 0 ? year : -year); result.append(days[WeekDay(this.date)]); result.append(", "); if (dateStr.length() == 1) result.append("0"); result.append(dateStr); result.append(" "); result.append(months[MonthFromTime(this.date)]); if (year < 0) result.append(" -"); else result.append(" "); int i; for (i = yearStr.length(); i < 4; i++) result.append("0"); result.append(yearStr); if (hourStr.length() == 1) result.append(" 0"); else result.append(" "); result.append(hourStr); if (minStr.length() == 1) result.append(":0"); else result.append(":"); result.append(minStr); if (secStr.length() == 1) result.append(":0"); else result.append(":"); result.append(secStr); result.append(" GMT"); return result.toString(); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/fb69c14ae4e860dfb5b5df7d866e510acca73ed9/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 869, 11471, 780, 1435, 288, 3639, 309, 261, 2211, 18, 712, 480, 333, 18, 712, 13, 5411, 327, 3828, 2083, 67, 21172, 67, 712, 67, 701, 31, 3639, 6674, 563, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 869, 11471, 780, 1435, 288, 3639, 309, 261, 2211, 18, 712, 480, 333, 18, 712, 13, 5411, 327, 3828, 2083, 67, 21172, 67, 712, 67, 701, 31, 3639, 6674, 563, 2...
public static Message createFNPRoutedRejected(long uid) {
public static Message createFNPRoutedRejected(long uid, short htl) {
public static Message createFNPRoutedRejected(long uid) { Message msg = new Message(FNPRoutedRejected); msg.set(UID, uid); return msg; }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/67ffc74c653c146c3327643dba419ef696af844a/DMT.java/buggy/src/freenet/io/comm/DMT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2350, 752, 19793, 52, 4583, 329, 19902, 12, 5748, 4555, 16, 3025, 366, 6172, 13, 288, 3639, 2350, 1234, 273, 394, 2350, 12, 19793, 52, 4583, 329, 19902, 1769, 3639, 1234, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2350, 752, 19793, 52, 4583, 329, 19902, 12, 5748, 4555, 16, 3025, 366, 6172, 13, 288, 3639, 2350, 1234, 273, 394, 2350, 12, 19793, 52, 4583, 329, 19902, 1769, 3639, 1234, 18, ...
public org.quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { org.quickfix.field.OrigClOrdID value = new org.quickfix.field.OrigClOrdID();
public quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { quickfix.field.OrigClOrdID value = new quickfix.field.OrigClOrdID();
public org.quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { org.quickfix.field.OrigClOrdID value = new org.quickfix.field.OrigClOrdID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix42/OrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 336, 4741, 2009, 15383, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 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, 4741, 2009, 15383, 734, 336, 4741, 2009, 15383, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734...
protected JFrame createUI(String suiteName) { JFrame frame= createFrame("JUnit"); JMenuBar mb= new JMenuBar(); createMenus(mb); frame.setJMenuBar(mb); JLabel suiteLabel= new JLabel("Test class name:"); fSuiteCombo= createSuiteCombo(); fRun= createRunButton(); frame.getRootPane().setDefaultButton(fRun); Component browseButton= createBrowseButton(); fUseLoadingRunner= createUseLoaderCheckBox(); fProgressIndicator= new ProgressBar(); fCounterPanel= createCounterPanel(); JLabel failureLabel= new JLabel("Errors and Failures:"); fFailures= new DefaultListModel(); fTestViewTab= createTestRunViews(); JPanel failedPanel= createFailedPanel(); fFailureView= createFailureDetailView(); JScrollPane tracePane= new JScrollPane(fFailureView.getComponent(), JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); fStatusLine= createStatusLine(); fQuitButton= createQuitButton(); fLogo= createLogo(); JPanel panel= new JPanel(new GridBagLayout()); addGrid(panel, suiteLabel, 0, 0, 2, GridBagConstraints.HORIZONTAL, 1.0, GridBagConstraints.WEST); addGrid(panel, fSuiteCombo, 0, 1, 1, GridBagConstraints.HORIZONTAL, 1.0, GridBagConstraints.WEST); addGrid(panel, browseButton, 1, 1, 1, GridBagConstraints.NONE, 0.0, GridBagConstraints.WEST); addGrid(panel, fRun, 2, 1, 1, GridBagConstraints.HORIZONTAL, 0.0, GridBagConstraints.CENTER); addGrid(panel, fUseLoadingRunner, 0, 2, 3, GridBagConstraints.HORIZONTAL, 1.0, GridBagConstraints.WEST); addGrid(panel, new JSeparator(), 0, 3, 3, GridBagConstraints.HORIZONTAL, 1.0, GridBagConstraints.WEST); addGrid(panel, fProgressIndicator, 0, 4, 2, GridBagConstraints.HORIZONTAL, 1.0, GridBagConstraints.WEST); addGrid(panel, fLogo, 2, 4, 1, GridBagConstraints.NONE, 0.0, GridBagConstraints.NORTH); addGrid(panel, fCounterPanel, 0, 5, 2, GridBagConstraints.NONE, 0.0, GridBagConstraints.CENTER); JSplitPane splitter= new JSplitPane(JSplitPane.VERTICAL_SPLIT, fTestViewTab, tracePane); addGrid(panel, splitter, 0, 6, 2, GridBagConstraints.BOTH, 1.0, GridBagConstraints.WEST); addGrid(panel, failedPanel, 2, 6, 1, GridBagConstraints.HORIZONTAL, 0.0, GridBagConstraints.NORTH/*CENTER*/); addGrid(panel, fStatusLine, 0, 8, 2, GridBagConstraints.HORIZONTAL, 1.0, GridBagConstraints.CENTER); addGrid(panel, fQuitButton, 2, 8, 1, GridBagConstraints.HORIZONTAL, 0.0, GridBagConstraints.CENTER); frame.setContentPane(panel); frame.pack(); frame.setLocation(200, 200); return frame; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/4b4449dde49cdcaed9ae00d1ac057ecfeb8d8c23/TestRunner.java/buggy/org.eclipse.jdt.core.tests.model/workspace/Converter/junit/swingui/TestRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 804, 3219, 752, 5370, 12, 780, 11371, 461, 13, 288, 1082, 202, 46, 3219, 2623, 33, 752, 3219, 2932, 46, 2802, 8863, 1082, 202, 46, 4599, 5190, 4903, 33, 394, 804, 4599, 5190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 804, 3219, 752, 5370, 12, 780, 11371, 461, 13, 288, 1082, 202, 46, 3219, 2623, 33, 752, 3219, 2932, 46, 2802, 8863, 1082, 202, 46, 4599, 5190, 4903, 33, 394, 804, 4599, 5190,...
field.setDouble(obj, val);
field.setDouble(obj, val);
final void setDoubleField(Object obj, double val) { try { field.setDouble(obj, val); } catch(IllegalAccessException x) { throw new InternalError(x.getMessage()); } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/2eabe6e28fc1df9b1f8ee2409c68329ce4d1c386/ObjectStreamField.java/clean/java/io/ObjectStreamField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 444, 5265, 974, 12, 921, 1081, 16, 1645, 1244, 13, 225, 288, 1377, 775, 1377, 288, 202, 225, 652, 18, 542, 5265, 12, 2603, 16, 1244, 1769, 1377, 289, 1377, 1044, 12, 12195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 444, 5265, 974, 12, 921, 1081, 16, 1645, 1244, 13, 225, 288, 1377, 775, 1377, 288, 202, 225, 652, 18, 542, 5265, 12, 2603, 16, 1244, 1769, 1377, 289, 1377, 1044, 12, 12195, ...
int value = fStringPool.addString(child.getFirstChild().getNodeValue());
int value = fStringPool.addString(child.getFirstChild().getFirstChild().getNodeValue());
private void traverseSchema(Element root) throws Exception { // is there anything to do? if (root == null) { return; } // run through children for (Element child = XUtil.getFirstChildElement(root); child != null; child = XUtil.getNextSiblingElement(child)) { //System.out.println("child: "+child.getNodeName()+' '+child.getAttribute(ATT_NAME)); // // Element type // String name = child.getNodeName(); if (name.equals(ELT_COMMENT)) { traverseComment(child); } else if (name.equals(ELT_DATATYPEDECL)) { traverseDatatypeDecl(child); } else if (name.equals(ELT_ARCHETYPEDECL)) { traverseTypeDecl(child); } else if (name.equals(ELT_ELEMENTDECL)) { // && child.getAttribute(ATT_REF).equals("")) { traverseElementDecl(child); } else if (name.equals(ELT_ATTRGROUPDECL)) { traverseAttrGroup(child); } else if (name.equals(ELT_MODELGROUPDECL)) { traverseModelGroup(child); } // // Entities // else if (name.equals(ELT_TEXTENTITYDECL) || name.equals(ELT_EXTERNALENTITYDECL) || name.equals(ELT_UNPARSEDENTITYDECL)) { int entityName = fStringPool.addSymbol(child.getAttribute(ATT_NAME)); if (name.equals(ELT_TEXTENTITYDECL)) { int value = fStringPool.addString(child.getFirstChild().getNodeValue()); fEntityPool.addEntityDecl(entityName, value, -1, -1, -1, -1, true); } else { int publicId = fStringPool.addString(child.getAttribute("public")); int systemId = fStringPool.addString(child.getAttribute("system")); if (name.equals(ELT_EXTERNALENTITYDECL)) { fEntityPool.addEntityDecl(entityName, -1, -1, publicId, systemId, -1, true); } else { int notationName = fStringPool.addSymbol(child.getAttribute("notation")); fEntityPool.addEntityDecl(entityName, -1, -1, publicId, systemId, notationName, true); } } } // // Notation // else if (name.equals(ELT_NOTATIONDECL)) { int notationName = fStringPool.addSymbol(child.getAttribute(ATT_NAME)); int publicId = fStringPool.addString(child.getAttribute("public")); int systemId = fStringPool.addString(child.getAttribute("system")); fEntityPool.addNotationDecl(notationName, publicId, systemId, true); } } // for each child node cleanupForwardReferences(); } // traverseSchema(Element)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/6bda924149a946affdf11f8aa9c2550586774a55/XSchemaValidator.java/buggy/src/org/apache/xerces/validators/schema/XSchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10080, 3078, 12, 1046, 1365, 13, 1216, 1185, 288, 3639, 368, 353, 1915, 6967, 358, 741, 35, 3639, 309, 261, 3085, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 1086...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10080, 3078, 12, 1046, 1365, 13, 1216, 1185, 288, 3639, 368, 353, 1915, 6967, 358, 741, 35, 3639, 309, 261, 3085, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 368, 1086...
ArrayList dirtyParts = new ArrayList(); ArrayList dirtyEditorsInput = new ArrayList(); IWorkbenchWindow windows[] = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchPage pages[] = windows[i].getPages(); for (int j = 0; j < pages.length; j++) { WorkbenchPage page = (WorkbenchPage) pages[j]; ISaveablePart[] parts = page.getDirtyParts(); for (int k = 0; k < parts.length; k++) { ISaveablePart part = parts[k]; if (part.isSaveOnCloseNeeded()) { if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; if (!dirtyEditorsInput.contains(editor .getEditorInput())) { dirtyParts.add(editor); dirtyEditorsInput.add(editor .getEditorInput()); } } else { dirtyParts.add(part); } } } }
XMLMemento mem = recordWorkbenchState(); saveMementoToFile(mem);
public void run() { // Collect dirtyParts ArrayList dirtyParts = new ArrayList(); ArrayList dirtyEditorsInput = new ArrayList(); IWorkbenchWindow windows[] = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchPage pages[] = windows[i].getPages(); for (int j = 0; j < pages.length; j++) { WorkbenchPage page = (WorkbenchPage) pages[j]; ISaveablePart[] parts = page.getDirtyParts(); for (int k = 0; k < parts.length; k++) { ISaveablePart part = parts[k]; if (part.isSaveOnCloseNeeded()) { if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; if (!dirtyEditorsInput.contains(editor .getEditorInput())) { dirtyParts.add(editor); dirtyEditorsInput.add(editor .getEditorInput()); } } else { dirtyParts.add(part); } } } } } if (dirtyParts.size() > 0) { IWorkbenchWindow w = getActiveWorkbenchWindow(); if (w == null) w = windows[0]; result[0] = EditorManager.saveAll(dirtyParts, finalConfirm, false, w); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/bc508e6d12aaf5e44777fe0ae256945be5760cc6/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 759, 9302, 9603, 4305, 9506, 202, 19558, 9603, 4305, 273, 394, 2407, 5621, 9506, 202, 19558, 9603, 4666, 1383, 1210, 273, 394, 2407, 5621, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 759, 9302, 9603, 4305, 9506, 202, 19558, 9603, 4305, 273, 394, 2407, 5621, 9506, 202, 19558, 9603, 4666, 1383, 1210, 273, 394, 2407, 5621, 9506, ...
assertDateCreatedAfter(cms, destination, timestamp);
assertDateCreatedAfter(cms, resName, timestamp);
public void testCopyFolderAsNew() throws Throwable { CmsObject cms = getCmsObject(); echo("Testing copy of a folder as new (i.e. no siblings)"); String source = "/folder2/"; String destination = "/folder2_copy/"; long timestamp = System.currentTimeMillis(); storeResources(cms, source); cms.copyResource(source, destination, CmsResource.COPY_AS_NEW); List subresources; Iterator i; subresources = getSubtree(cms, source); // iterate through the subresources i = subresources.iterator(); while (i.hasNext()) { CmsResource res = (CmsResource)i.next(); String resName = cms.getSitePath(res); assertFilter(cms, resName, OpenCmsTestResourceFilter.FILTER_EQUAL); } subresources = getSubtree(cms, destination); setMapping(destination, source); // prepare filter without sibling count OpenCmsTestResourceConfigurableFilter filter = new OpenCmsTestResourceConfigurableFilter(OpenCmsTestResourceFilter.FILTER_COPY_AS_NEW); filter.disableSiblingCountTest(); // iterate through the subresources i = subresources.iterator(); while (i.hasNext()) { CmsResource res = (CmsResource)i.next(); String resName = cms.getSitePath(res); // project must be current project assertProject(cms, resName, cms.getRequestContext().currentProject()); // state must be "new" assertState(cms, resName, CmsResource.STATE_NEW); // date created must be new assertDateCreatedAfter(cms, destination, timestamp); // user created must be current user assertUserCreated(cms, source, cms.getRequestContext().currentUser()); // assert lock state assertLock(cms, resName); // must have sibling count of 1 assertSiblingCount(cms, resName, 1); // now assert the filter for the rest of the attributes assertFilter(cms, resName, filter); } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/0a325deda5c054061b5c35a9c0aa5deed3c6eaad/TestCopy.java/clean/test/org/opencms/file/TestCopy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2951, 3899, 1463, 1908, 1435, 1216, 4206, 288, 3639, 14371, 6166, 273, 28287, 5621, 2398, 3376, 2932, 22218, 1610, 434, 279, 3009, 487, 394, 261, 77, 18, 73, 18, 1158, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2951, 3899, 1463, 1908, 1435, 1216, 4206, 288, 3639, 14371, 6166, 273, 28287, 5621, 2398, 3376, 2932, 22218, 1610, 434, 279, 3009, 487, 394, 261, 77, 18, 73, 18, 1158, 14...
98, 20, 21, 22, 23, 24, 25, 0, 0, 0,
98, 99, 100, 22, 23, 24, 25, 0, 0, 0,
private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
{
private RrCSG reg_4() { RrCSG result = this; if(complexity != 4) return result; RrCSG temp; if(c1.complexity == 1) { temp = c2.reg_3(); if(temp.complexity <= 2) { if(op == RrCSGOp.UNION) result = union(c1, temp).reg_3(); else result = intersection(c1, temp).reg_3(); }else { // c1 can only equal at most one leaf of c2 as all three c2 leaves // must be distinct because reg_3() didn't simplify c2. if(c1 == c2.c1) { result = c1; } else if(c1 == c2.c2.c1 || c1 == c2.c2.c2) { if(c1 == c2.c2.c2) c2.c2.c2 = c2.c2.c1; int ops = 0; if(op == RrCSGOp.UNION) ops++; if(c2.op == RrCSGOp.UNION) ops += 2; if(c2.c2.op == RrCSGOp.UNION) ops += 4; switch(ops) { case 0: result = c2; break; case 1: case 6: result = c1; break; case 2: case 5: case 7: result.c2.c2 = c2.c2.c2; break; case 3: case 4: result.c2 = c2.c1; break; default: System.err.println("reg_4() 1: addition doesn't work..."); } } } } else { int type = 0; if(c1.c1 == c2.c1) type++; else if(c1.c1 == c2.c2) { type++; temp = c2.c2; c2.c2 = c2.c1; c2.c1 = temp; } if(c1.c2 == c2.c2) { type++; temp = c2.c2; c2.c1 = c2.c2; c2.c2 = temp; temp = c1.c2; c1.c1 = c1.c2; c1.c2 = temp; } else if(c1.c2 == c2.c1) { type++; temp = c1.c2; c1.c2 = c1.c1; c1.c1 = temp; } int ops = 0; if(op == RrCSGOp.UNION) ops += 4; if(c1.op == RrCSGOp.UNION) ops++; if(c2.op == RrCSGOp.UNION) ops += 2; switch(type) { case 0: break; case 1: switch(ops) { case 0: result = intersection(c1, c2.c2); break; case 1: result = intersection(c1.c1, c2.c2); break; case 2: case 5: result = c1; case 3: result = union(c1.c1, intersection(c1.c2, c2.c2)); break; case 4: result = intersection(c1.c1, union(c1.c2, c2.c2)); break; case 6: result = union(c1.c1, c2.c2); break; case 7: result = union(c1, c2.c2); break; default: System.err.println("reg_4() 2: addition doesn't work..."); } break; case 2: break; default: System.err.println("reg_4() 4: addition doesn't work..."); } } return result; }
14824 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14824/82f6054b2a8e68f52b808151bf7e3ddbefc35a9d/RrCSG.java/buggy/reprap/host/src/org/reprap/geometry/polygons/RrCSG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 534, 86, 4596, 43, 960, 67, 24, 1435, 202, 5411, 202, 202, 54, 86, 4596, 43, 563, 273, 333, 31, 9506, 202, 430, 12, 14259, 560, 480, 1059, 13, 1082, 202, 2463, 563, 31, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 534, 86, 4596, 43, 960, 67, 24, 1435, 202, 5411, 202, 202, 54, 86, 4596, 43, 563, 273, 333, 31, 9506, 202, 430, 12, 14259, 560, 480, 1059, 13, 1082, 202, 2463, 563, 31, 9...
return new JavaModelStatus(IJavaModelStatusConstants.NAME_COLLISION);
return new JavaModelStatus( IJavaModelStatusConstants.NAME_COLLISION, Util.bind("status.nameCollision", fDOMNode.getName()));
protected IJavaModelStatus verifyNameCollision() { IJavaElement parent = getParentElement(); int type = parent.getElementType(); if (type == IJavaElement.TYPE) { if (((IType) parent).getType(fDOMNode.getName()).exists()) { return new JavaModelStatus(IJavaModelStatusConstants.NAME_COLLISION); } } else if (type == IJavaElement.COMPILATION_UNIT) { if (((ICompilationUnit) parent).getType(fDOMNode.getName()).exists()) { return new JavaModelStatus(IJavaModelStatusConstants.NAME_COLLISION); } } return JavaModelStatus.VERIFIED_OK;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3fcde8161bb2f59eff89b2d65e8096f5b841cf50/CreateTypeOperation.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateTypeOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 467, 5852, 1488, 1482, 3929, 461, 13535, 1951, 1435, 288, 202, 45, 5852, 1046, 982, 273, 5089, 1046, 5621, 202, 474, 618, 273, 982, 18, 588, 17481, 5621, 202, 430, 261, 723, 422, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 467, 5852, 1488, 1482, 3929, 461, 13535, 1951, 1435, 288, 202, 45, 5852, 1046, 982, 273, 5089, 1046, 5621, 202, 474, 618, 273, 982, 18, 588, 17481, 5621, 202, 430, 261, 723, 422, 467, ...
throws SQLException {
throws SQLException {
public Key selectTriggerForFireTime(Connection conn, long fireTime) throws SQLException { PreparedStatement ps = null; ResultSet rs = null; try { ps = conn.prepareStatement(rtp(SELECT_TRIGGER_FOR_FIRE_TIME)); ps.setString(1, STATE_WAITING); ps.setBigDecimal(2, new BigDecimal(String.valueOf(fireTime))); rs = ps.executeQuery(); if (rs.next()) { return new Key(rs.getString(COL_TRIGGER_NAME), rs .getString(COL_TRIGGER_GROUP)); } else { return null; } } finally { closeResultSet(rs); closeStatement(ps); } }
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/StdJDBCDelegate.java/buggy/src/java/org/quartz/impl/jdbcjobstore/StdJDBCDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1929, 2027, 6518, 1290, 9723, 950, 12, 1952, 1487, 16, 1525, 4452, 950, 13, 5411, 1216, 6483, 288, 3639, 16913, 4250, 273, 446, 31, 3639, 10842, 3597, 273, 446, 31, 3639, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1929, 2027, 6518, 1290, 9723, 950, 12, 1952, 1487, 16, 1525, 4452, 950, 13, 5411, 1216, 6483, 288, 3639, 16913, 4250, 273, 446, 31, 3639, 10842, 3597, 273, 446, 31, 3639, 775, 288, ...
kernelModule.getRuby().defineGlobalFunction( "method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", RubyObject.class));
Ruby ruby = kernelModule.getRuby(); ruby.defineGlobalFunction("method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", RubyObject.class)); ruby.defineGlobalFunction("eval", CallbackFactory.getOptMethod(RubyObject.class, "eval", RubyString.class));
public static void createObjectClass(RubyModule kernelModule) { // TODO: convert to CallbackFactory invokes. Callback clone = new ReflectionCallbackMethod(RubyObject.class, "rbClone"); Callback dup = new ReflectionCallbackMethod(RubyObject.class, "dup"); Callback equal = new ReflectionCallbackMethod(RubyObject.class, "equal", RubyObject.class); Callback respond_to = new ReflectionCallbackMethod(RubyObject.class, "respond_to", RubySymbol.class); Callback extend = new ReflectionCallbackMethod(RubyObject.class, "extend", RubyObject[].class, true); Callback freeze = new ReflectionCallbackMethod(RubyObject.class, "freeze"); Callback frozen = new ReflectionCallbackMethod(RubyObject.class, "frozen"); Callback id = new ReflectionCallbackMethod(RubyObject.class, "id"); Callback inspect = new ReflectionCallbackMethod(RubyObject.class, "inspect"); Callback instance_eval = new ReflectionCallbackMethod(RubyObject.class, "instance_eval", RubyObject[].class, true); Callback instance_of = new ReflectionCallbackMethod(RubyObject.class, "instance_of", RubyModule.class); Callback kind_of = new ReflectionCallbackMethod(RubyObject.class, "kind_of", RubyModule.class); Callback method = new ReflectionCallbackMethod(RubyObject.class, "method", RubyObject.class); Callback methods = new ReflectionCallbackMethod(RubyObject.class, "methods"); Callback private_methods = new ReflectionCallbackMethod(RubyObject.class, "private_methods"); Callback protected_methods = new ReflectionCallbackMethod(RubyObject.class, "protected_methods"); Callback taint = new ReflectionCallbackMethod(RubyObject.class, "taint"); Callback tainted = new ReflectionCallbackMethod(RubyObject.class, "tainted"); Callback to_a = new ReflectionCallbackMethod(RubyObject.class, "to_a"); Callback to_s = new ReflectionCallbackMethod(RubyObject.class, "to_s"); Callback type = new ReflectionCallbackMethod(RubyObject.class, "type"); Callback untaint = new ReflectionCallbackMethod(RubyObject.class, "untaint"); kernelModule.defineMethod("=~", CallbackFactory.getFalseMethod()); kernelModule.defineMethod("==", equal); kernelModule.defineMethod("respond_to?", respond_to); kernelModule.defineMethod("class", type); kernelModule.defineMethod("clone", clone); kernelModule.defineMethod("dup", dup); kernelModule.defineMethod("eql?", equal); kernelModule.defineMethod("extend", extend); kernelModule.defineMethod("freeze", freeze); kernelModule.defineMethod("frozen?", frozen); kernelModule.defineMethod("hash", id); kernelModule.defineMethod("id", id); kernelModule.defineMethod("__id__", id); kernelModule.defineMethod("inspect", inspect); kernelModule.defineMethod("instance_eval", instance_eval); kernelModule.defineMethod("instance_of?", instance_of); kernelModule.defineMethod("is_a?", kind_of); kernelModule.defineMethod("kind_of?", kind_of); kernelModule.defineMethod("method", method); kernelModule.defineMethod("methods", methods); kernelModule.defineMethod("private_methods", private_methods); kernelModule.defineMethod("protected_methods", protected_methods); kernelModule.defineMethod("public_methods", methods); kernelModule.defineMethod("nil?", CallbackFactory.getFalseMethod()); kernelModule.defineMethod("send", CallbackFactory.getOptMethod(RubyObject.class, "send", RubyString.class)); kernelModule.defineMethod("__send__", CallbackFactory.getOptMethod(RubyObject.class, "send", RubyString.class)); kernelModule.defineMethod("taint", taint); kernelModule.defineMethod("tainted?", tainted); kernelModule.defineMethod("to_a", to_a); kernelModule.defineMethod("to_s", to_s); kernelModule.defineMethod("type", type); kernelModule.defineMethod("untaint", untaint); kernelModule.defineAlias("===", "=="); kernelModule.defineAlias("equal?", "=="); kernelModule.getRuby().defineGlobalFunction( "method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", RubyObject.class)); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/b3fad11fe9fed3c3b955874e822c0e093e06dfc8/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 17109, 797, 12, 54, 10340, 3120, 5536, 3120, 13, 288, 3639, 368, 2660, 30, 1765, 358, 8444, 1733, 18058, 18, 3639, 8444, 3236, 273, 394, 5685, 2428, 1305, 12, 54, 10340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 17109, 797, 12, 54, 10340, 3120, 5536, 3120, 13, 288, 3639, 368, 2660, 30, 1765, 358, 8444, 1733, 18058, 18, 3639, 8444, 3236, 273, 394, 5685, 2428, 1305, 12, 54, 10340, ...
DefaultMutableTreeNode catDeadlocks = new DefaultMutableTreeNode("Deadlocks");
DefaultMutableTreeNode catDeadlocks = new DefaultMutableTreeNode(new Category("Deadlocks"));
private int checkForDeadlocks(DefaultMutableTreeNode threadDump) throws IOException { boolean finished = false; boolean found = false; int deadlocks = 0; int lineCounter = 0; StringBuffer dContent = new StringBuffer(); DefaultMutableTreeNode catDeadlocks = new DefaultMutableTreeNode("Deadlocks"); while(bis.ready() && !finished) { String line = bis.readLine(); if(!found && !line.trim().equals("")) { if (line.startsWith("Found one Java-level deadlock")) { found = true; dContent.append("<pre>"); dContent.append(line); dContent.append("\n"); } else if(lineCounter < maxCheckLines) { finished = true; } else { lineCounter++; } } else if(found) { if(line.startsWith("Found one Java-level deadlock")) { if(dContent.length() > 0) { deadlocks++; createCategoryNode(catDeadlocks, "Deadlock No. " + (deadlocks), null, dContent); } dContent = new StringBuffer(); } else if(line.startsWith("Found") && (line.trim().endsWith("deadlocks.") || line.trim().endsWith("deadlock."))) { finished = true; } else { dContent.append(line); dContent.append("\n"); } } } if(dContent.length() > 0) { deadlocks++; createCategoryNode(catDeadlocks, "Deadlock No. " + (deadlocks), null, dContent); } if(deadlocks > 0) { threadDump.add(catDeadlocks); } return(deadlocks); }
45685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45685/fbe958e65ef0eb66c898ac114d833f9a0c91c012/JDK14Parser.java/clean/tda/src/java/com/pironet/tda/JDK14Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 13855, 11852, 23581, 12, 1868, 19536, 12513, 2650, 10628, 13, 1216, 1860, 288, 3639, 1250, 6708, 273, 629, 31, 3639, 1250, 1392, 273, 629, 31, 3639, 509, 8363, 23581, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 13855, 11852, 23581, 12, 1868, 19536, 12513, 2650, 10628, 13, 1216, 1860, 288, 3639, 1250, 6708, 273, 629, 31, 3639, 1250, 1392, 273, 629, 31, 3639, 509, 8363, 23581, 273, 374, ...
public org.quickfix.field.UnderlyingSecurityAltID getUnderlyingSecurityAltID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityAltID value = new org.quickfix.field.UnderlyingSecurityAltID();
public quickfix.field.UnderlyingSecurityAltID getUnderlyingSecurityAltID() throws FieldNotFound { quickfix.field.UnderlyingSecurityAltID value = new quickfix.field.UnderlyingSecurityAltID();
public org.quickfix.field.UnderlyingSecurityAltID getUnderlyingSecurityAltID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityAltID value = new org.quickfix.field.UnderlyingSecurityAltID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/buggy/src/java/src/quickfix/fix44/Quote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 10833, 765, 6291, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 10833, 765, 6291, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6...
String ConfPoolServer = Utility.getDomainPref( "billboard_server", host );
IMCPoolInterface billref = IMCServiceRMI.getBillboardIMCPoolInterface(request) ;
private void listConferences( HttpServletRequest request, HttpServletResponse response, String languagePrefix ) throws ServletException, IOException { String host = request.getHeader( "Host" ); String imcserver = Utility.getDomainPref( "adminserver", host ); String eMailServerMaster = Utility.getDomainPref( "servermaster_email", host ); boolean noErrors = true; /* * 0 = startDate to endDate * 1 = all * 2 = all upp to endDate * 3 = all down to startDate */ int listByDateMode = 0; /* * 0 = all date !not in use * 1 = create date * 2 = modified date */ String listMode = request.getParameter( "LISTMOD" ); String startDate = request.getParameter( "START_DATE" ); String endDate = request.getParameter( "END_DATE" ); /* lets se if any errors in requared fields or if some is missing */ try { if ( listMode != null ) { int mode = Integer.parseInt( listMode ); if ( !(mode == 1 || mode == 2 ) ) { noErrors = false; } } else { noErrors = false; } } catch ( NumberFormatException e ) { noErrors = false; } if ( startDate != null ) { if ( startDate.length() > 0 ) { if ( !isDateInRightFormat( startDate ) ) { noErrors = false; } } else { startDate = "0"; // Stored Procedure expects 0 then no startDate } } else { noErrors = false; // no startDate field submited } if ( endDate != null ) { if ( endDate.length() > 0 ) { if ( !isDateInRightFormat( endDate ) ) { noErrors = false; } } else { endDate = "0"; // Stored Procedure expects 0 then no endDate } } else { noErrors = false; // no endDate field submited } // lets generate response page if ( noErrors ) { String ConfPoolServer = Utility.getDomainPref( "billboard_server", host );//"conference_server" //lets get htmltemplate for conferencerow String htmlConferenceElement = IMCServiceRMI.parseDoc( imcserver, null, this.TEMPLATE_CONF_ELEMENT, languagePrefix ); String htmlForumElement = IMCServiceRMI.parseDoc( imcserver, null, this.TEMPLATE_FORUM_ELEMENT, languagePrefix ); String htmlDebateElement = IMCServiceRMI.parseDoc( imcserver, null, this.TEMPLATE_DEBATE_ELEMENT, languagePrefix ); String[][] listOfBillBoards = IMCServiceRMI.sqlQueryMulti( imcserver, "ListBillBoards" );//ListConferenses // lets create conferencelist StringBuffer conferencesListTag = new StringBuffer(); Hashtable billBoardTags = new Hashtable(); Hashtable forumTags = new Hashtable(); Hashtable debateTags = new Hashtable(); for ( int i = 0 ; i < listOfBillBoards.length ; i++ ) { String metaId = listOfBillBoards[i][0]; String sprocetForum = "B_AdminStatistics1 " + metaId + ", '" + startDate + "', '" + endDate + "', " + listMode; String[][] queryResultForum = BillBoardManager.getStatistics( ConfPoolServer, sprocetForum ); //lets create sectionList for this conference StringBuffer sectionList = new StringBuffer(); for ( int j = 0 ; j < queryResultForum.length ; j++ ) { String forumId = queryResultForum[j][0]; String sprocetDebate = "B_AdminStatistics2 " + metaId + ", " + forumId + ", '" + startDate + "', '" + endDate + "', " + listMode; String[][] queryResultDebate = BillBoardManager.getStatistics( ConfPoolServer, sprocetDebate ); // lets create debatelist for this forum StringBuffer debateList = new StringBuffer(); for ( int k = 0 ; k < queryResultDebate.length ; k++ ) { debateTags.put( "DEBATE", queryResultDebate[k][1] ); debateTags.put( "DATE", queryResultDebate[k][2] ); } forumTags.put("SECTION", queryResultForum[j][1] ); forumTags.put("DEBATE_LIST", debateList.toString() ); sectionList.append( (Parser.parseTags( new StringBuffer( htmlForumElement ), '#', " <>\n\r\t", (java.util.Map)forumTags, true, 1 )).toString() ); } if ( queryResultForum.length > 0 ) { billBoardTags.put( "SERVLET_URL", MetaInfo.getServletPath( request ) ); billBoardTags.put( "META_ID", metaId ); billBoardTags.put( "BILLBOARD", listOfBillBoards[i][1] ); billBoardTags.put( "SECTION_LIST", sectionList.toString() ); conferencesListTag.append( (Parser.parseTags( new StringBuffer( htmlConferenceElement ), '#', " <>\n\r\t", (java.util.Map) billBoardTags, true, 1 )).toString() ); } } //Lets generate the html page VariableManager vm = new VariableManager(); vm.addProperty( "BILLBOARD_LIST", conferencesListTag.toString() ); this.sendHtml( request, response, vm, this.TEMPLATE_LIST ); } else { sendErrorMessage( imcserver, eMailServerMaster, languagePrefix , this.ERROR_HEADER, 10, response ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/AdminBillBoard.java/clean/servlets/billBoard/AdminBillBoard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 442, 2980, 12, 9984, 590, 16, 12446, 766, 16, 514, 2653, 2244, 262, 565, 1216, 16517, 16, 1860, 288, 3639, 514, 1479, 273, 590, 18, 588, 1864, 12, 315, 2594, 6, 11272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 442, 2980, 12, 9984, 590, 16, 12446, 766, 16, 514, 2653, 2244, 262, 565, 1216, 16517, 16, 1860, 288, 3639, 514, 1479, 273, 590, 18, 588, 1864, 12, 315, 2594, 6, 11272, ...
}else{
} else {
public Object getProperty(String key) throws IllegalArgumentException { if (state == START_ELEMENT_STATE || state == END_ELEMENT_STATE) { if (OPTIMIZATION_ENABLED.equals(key)){ return Boolean.TRUE; }else{ return null; } }else if (state==TEXT_STATE){ if (IS_BINARY.equals(key)){ return Boolean.FALSE; }else{ return null; } }else if (state==DELEGATED_STATE){ return childReader.getProperty(key); }else{ return null; } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/3090d058a9d9b24006d3fe8f77bf986df782e1ae/ADBXMLStreamReaderImpl.java/buggy/modules/adb/src/org/apache/axis2/databinding/utils/reader/ADBXMLStreamReaderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3911, 12, 780, 498, 13, 1216, 2754, 288, 3639, 309, 261, 2019, 422, 10485, 67, 10976, 67, 7998, 747, 919, 422, 7273, 67, 10976, 67, 7998, 13, 288, 5411, 309, 261, 15620, 344...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3911, 12, 780, 498, 13, 1216, 2754, 288, 3639, 309, 261, 2019, 422, 10485, 67, 10976, 67, 7998, 747, 919, 422, 7273, 67, 10976, 67, 7998, 13, 288, 5411, 309, 261, 15620, 344...
List topics() throws Exception
List topics()
List topics() throws Exception { int postsPerPage = SystemGlobals.getIntValue(ConfigKeys.POST_PER_PAGE); List tmpTopics = TopicRepository.getRecentTopics(); this.forums = new ArrayList(postsPerPage); for (Iterator iter = tmpTopics.iterator(); iter.hasNext(); ) { Topic t = (Topic)iter.next(); if (TopicsCommon.isTopicAccessible(t.getForumId())) { // Get name of forum that the topic refers to Forum f = ForumRepository.getForum(t.getForumId()); forums.add(f); } else { iter.remove(); } } JForumExecutionContext.getRequest().removeAttribute("template"); return TopicsCommon.prepareTopics(tmpTopics); }
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/RecentTopicsAction.java/clean/src/net/jforum/view/forum/RecentTopicsAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 682, 11204, 1435, 1216, 1185, 202, 95, 202, 202, 474, 10775, 13005, 273, 2332, 19834, 18, 588, 1702, 620, 12, 809, 2396, 18, 3798, 67, 3194, 67, 11219, 1769, 202, 202, 682, 1853, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 682, 11204, 1435, 1216, 1185, 202, 95, 202, 202, 474, 10775, 13005, 273, 2332, 19834, 18, 588, 1702, 620, 12, 809, 2396, 18, 3798, 67, 3194, 67, 11219, 1769, 202, 202, 682, 1853, 1...
return instance_methods(args, Visibility.PUBLIC);
return instance_methods(args, Visibility.PUBLIC);
public RubyArray public_instance_methods(IRubyObject[] args) { return instance_methods(args, Visibility.PUBLIC); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 1071, 67, 1336, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 13, 288, 377, 202, 2463, 791, 67, 5163, 12, 1968, 16, 27791, 18, 14939, 1769, 565, 289, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 1076, 1071, 67, 1336, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 13, 288, 377, 202, 2463, 791, 67, 5163, 12, 1968, 16, 27791, 18, 14939, 1769, 565, 289, 2, -100, -100, -100...
activationsBySourcePriority[i] = null;
activationsByExpression.remove(expression); } if (activationsByExpression.isEmpty()) { activationsByExpressionBySourcePriority[i] = null;
final void deactivateHandler(final IHandlerActivation activation) { // First we update the handlerActivationsByCommandId map. final String commandId = activation.getCommandId(); final Object value = handlerActivationsByCommandId.get(commandId); if (value instanceof Collection) { final Collection handlerActivations = (Collection) value; if (handlerActivations.contains(activation)) { handlerActivations.remove(activation); if (handlerActivations.isEmpty()) { handlerActivationsByCommandId.remove(commandId); updateCommand(commandId, null); } else if (handlerActivations.size() == 1) { final IHandlerActivation remainingActivation = (IHandlerActivation) handlerActivations .iterator().next(); handlerActivationsByCommandId.put(commandId, remainingActivation); updateCommand( commandId, (evaluate(remainingActivation) ? remainingActivation : null)); } else { updateCommand(commandId, resolveConflicts(commandId, handlerActivations)); } } } else if (value instanceof IHandlerActivation) { if (value == activation) { handlerActivationsByCommandId.remove(commandId); updateCommand(commandId, null); } } // Next we update the source priority bucket sort of activations. final int sourcePriority = activation.getSourcePriority(); for (int i = 1; i <= 32; i++) { if ((sourcePriority & (1 << i)) != 0) { final Set activations = activationsBySourcePriority[i]; if (activations == null) { continue; } activations.remove(activation); if (activations.isEmpty()) { activationsBySourcePriority[i] = null; } } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5cfb5f88a049bbc9efcf0fade7d5687d0ec50ed3/HandlerAuthority.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/HandlerAuthority.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 918, 18790, 1503, 12, 6385, 467, 1503, 14857, 10027, 13, 288, 202, 202, 759, 5783, 732, 1089, 326, 1838, 12241, 1012, 858, 2189, 548, 852, 18, 202, 202, 6385, 514, 1296, 548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6385, 918, 18790, 1503, 12, 6385, 467, 1503, 14857, 10027, 13, 288, 202, 202, 759, 5783, 732, 1089, 326, 1838, 12241, 1012, 858, 2189, 548, 852, 18, 202, 202, 6385, 514, 1296, 548, ...
getInitImplMethodName(fn), INIT_SIGNATURE);
getFunctionInitMethodName(fn), FUNCTION_INIT_SIGNATURE);
private void generateFunctionConstructor(ClassFileWriter cfw) { final byte SCOPE_ARG = 1; final byte CONTEXT_ARG = 2; final byte ID_ARG = 3; cfw.startMethod("<init>", FUNCTION_CONSTRUCTOR_SIGNATURE, ClassFileWriter.ACC_PUBLIC); cfw.addALoad(0); cfw.addInvoke(ByteCode.INVOKESPECIAL, SUPER_CLASS_NAME, "<init>", "()V"); cfw.addLoadThis(); cfw.addILoad(ID_ARG); cfw.add(ByteCode.PUTFIELD, cfw.getClassName(), ID_FIELD_NAME, "I"); cfw.addLoadThis(); cfw.addALoad(CONTEXT_ARG); cfw.addALoad(SCOPE_ARG); int start = (scriptOrFnNodes[0].getType() == Token.SCRIPT) ? 1 : 0; int end = scriptOrFnNodes.length; if (start == end) badTree(); boolean generateSwitch = (2 <= end - start); int switchStart = 0; int switchStackTop = 0; if (generateSwitch) { cfw.addILoad(ID_ARG); // do switch from (start + 1, end - 1) mapping start to // the default case switchStart = cfw.addTableSwitch(start + 1, end - 1); } for (int i = start; i != end; ++i) { if (generateSwitch) { if (i == start) { cfw.markTableSwitchDefault(switchStart); switchStackTop = cfw.getStackTop(); } else { cfw.markTableSwitchCase(switchStart, i - 1 - start, switchStackTop); } } OptFunctionNode fn = (OptFunctionNode)scriptOrFnNodes[i]; cfw.addInvoke(ByteCode.INVOKEVIRTUAL, mainClassName, getInitImplMethodName(fn), INIT_SIGNATURE); cfw.add(ByteCode.RETURN); } // 4 = this + scope + context + id cfw.stopMethod((short)4, null); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/1fe8179c7b117d3fca54e638920b3966b511a838/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2083, 6293, 12, 797, 812, 2289, 6080, 91, 13, 565, 288, 3639, 727, 1160, 19296, 67, 10973, 273, 404, 31, 3639, 727, 1160, 13862, 67, 10973, 273, 576, 31, 3639, 727, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 2083, 6293, 12, 797, 812, 2289, 6080, 91, 13, 565, 288, 3639, 727, 1160, 19296, 67, 10973, 273, 404, 31, 3639, 727, 1160, 13862, 67, 10973, 273, 576, 31, 3639, 727, 116...
restoreEditor(this,editorMemento,errors);
IStatus status = restoreEditor(this,editorMemento);
public IEditorPart getEditor(boolean restore) { if(part != null) return part; if(!restore || editorMemento == null) return null; int errors[] = new int[1]; restoreEditor(this,editorMemento,errors); Workbench workbench = (Workbench)window.getWorkbench(); if(errors[0] > 0) { editorMemento = null; page.closeEditor(this,false); if(!workbench.isStarting()) { MessageDialog.openInformation( window.getShell(), WorkbenchMessages.getString("EditorManager.unableToRestoreEditorTitle"), //$NON-NLS-1$ WorkbenchMessages.format("EditorManager.unableToRestoreEditorMessage",new String[]{getName()})); //$NON-NLS-1$ } } setPane(this.pane); this.pane = null; editorMemento = null; tooltip = null; return part; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/49a9dbfbab938deb979d8dde7bb398e791ff2406/EditorManager.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 6946, 1988, 336, 6946, 12, 6494, 5217, 13, 288, 1082, 202, 430, 12, 2680, 480, 446, 13, 9506, 202, 2463, 1087, 31, 1082, 202, 430, 12, 5, 13991, 747, 4858, 49, 820, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 6946, 1988, 336, 6946, 12, 6494, 5217, 13, 288, 1082, 202, 430, 12, 2680, 480, 446, 13, 9506, 202, 2463, 1087, 31, 1082, 202, 430, 12, 5, 13991, 747, 4858, 49, 820, 83...