rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
bugzillaRepositoryConnector.attachContext(repository, modifiedTask, "", TasksUiPlugin.getDefault().getProxySettings());
bugzillaRepositoryConnector.attachContext(repository, modifiedTask, "");
public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) {// // Attach context if (getAttachContext()) { IWorkbench wb = PlatformUI.getWorkbench(); IProgressService ps = wb.getProgressService(); try { ps.busyCursorWhile(new IRunnableWithProgress() { public void run(IProgressMonitor pm) { try { bugzillaRepositoryConnector.attachContext(repository, modifiedTask, "", TasksUiPlugin.getDefault().getProxySettings()); } catch (Exception e) { MylarStatusHandler.fail(e, "Failed to attach task context.\n\n" + e.getMessage(), true); } } }); } catch (InvocationTargetException e1) { MylarStatusHandler.fail(e1.getCause(), "Failed to attach task context.\n\n" + e1.getMessage(), true); } catch (InterruptedException e1) { // ignore } } if (modifiedTask != null) { // TODO: This is set to null in order for update // to bypass // ui override check with user // Need to change how this is achieved. //modifiedTask.setTaskData(null); TasksUiPlugin.getSynchronizationManager().synchronize(connector, modifiedTask, true, new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { close(); TaskUiUtil.openEditor(modifiedTask, false); } }); Set<AbstractRepositoryQuery> queriesWithHandle = TasksUiPlugin.getTaskListManager() .getTaskList().getQueriesForHandle(modifiedTask.getHandleIdentifier()); // Sync Queries that have this task TasksUiPlugin.getSynchronizationManager().synchronize(connector, queriesWithHandle, null, Job.SHORT, 0, false); // Sync any tasks that might have changed as a // result of this action // TODO: removed since we don't have a way to exclude currently submitted task // and others will be synched later by background sync anyway (or manual sync) //TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, repository); } else { TaskUiUtil.openRepositoryTask(repository.getUrl(), BugzillaTaskEditor.this .getRepositoryTaskData().getId(), repository.getUrl() + IBugzillaConstants.URL_GET_SHOW_BUG + BugzillaTaskEditor.this.getRepositoryTaskData().getId()); close(); } return; } else if (event.getJob().getResult().getCode() == Status.INFO) { WebBrowserDialog.openAcceptAgreement(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event .getJob().getResult().getMessage(), event.getJob().getResult().getException() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } else if (event.getJob().getResult().getCode() == Status.ERROR) { MessageDialog.openError(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event.getResult() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } } }); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/101ff7c2d10bb2298dc26374711a5c44d3a01761/BugzillaTaskEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 2731, 12, 6385, 467, 2278, 20930, 871, 13, 288, 9506, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 6862, 202, 482,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2731, 12, 6385, 467, 2278, 20930, 871, 13, 288, 9506, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 3810, 1905, 12, 2704, 10254, 1435, 288, 6862, 202, 482,...
abortTransaction();
public void run() { // first, set a local variable to the current transactor thread so we know // when it's time to quit because another thread took over. Transactor localrtx = (Transactor) Thread.currentThread(); // spans whole execution loop - close connections in finally clause try { // while this thread is serving requests while (localrtx == rtx) { // root object reference Object root; // object reference to ressolve request path Object currentElement; // Get req and res into local variables to avoid memory caching problems // in unsynchronized method. RequestTrans req = getRequest(); ResponseTrans res = getResponse(); // request path object RequestPath requestPath = new RequestPath(app); int tries = 0; boolean done = false; String error = null; while (!done && localrtx == rtx) { currentElement = null; // catch errors in path resolution and script execution try { // initialize scripting engine initScriptingEngine(); // update scripting prototypes scriptingEngine.updatePrototypes(); // Transaction name is used for logging etc. StringBuffer txname = new StringBuffer(app.getName()); txname.append(":").append(req.getMethod().toLowerCase()).append(":"); txname.append((error == null) ? req.getPath() : "error"); // begin transaction localrtx.begin(txname.toString()); String action = null; root = app.getDataRoot(); initGlobals(root, requestPath); if (error != null) { res.error = error; } switch (reqtype) { case HTTP: if (session.message != null) { // bring over the message from a redirect res.message = session.message; session.message = null; } // catch redirect in path resolution or script execution try { // catch object not found in path resolution try { if (error != null) { // there was an error in the previous loop, call error handler currentElement = root; // do not reset the requestPath so error handler can use the original one // get error handler action String errorAction = app.props.getProperty("error", "error"); action = getAction(currentElement, errorAction, req); if (action == null) { throw new RuntimeException(error); } } else if ((req.getPath() == null) || "".equals(req.getPath().trim())) { currentElement = root; requestPath.add(null, currentElement); action = getAction(currentElement, null, req); if (action == null) { throw new FrameworkException("Action not found"); } } else { // march down request path... StringTokenizer st = new StringTokenizer(req.getPath(), "/"); int ntokens = st.countTokens(); // limit path to < 50 tokens if (ntokens > 50) { throw new RuntimeException("Path too long"); } String[] pathItems = new String[ntokens]; for (int i = 0; i < ntokens; i++) pathItems[i] = st.nextToken(); currentElement = root; requestPath.add(null, currentElement); for (int i = 0; i < ntokens; i++) { if (currentElement == null) { throw new FrameworkException("Object not found."); } if (pathItems[i].length() == 0) { continue; } // if we're at the last element of the path, // try to interpret it as action name. if (i == (ntokens - 1) && !req.getPath().endsWith("/")) { action = getAction(currentElement, pathItems[i], req); } if (action == null) { currentElement = getChildElement(currentElement, pathItems[i]); // add object to request path if suitable if (currentElement != null) { // add to requestPath array requestPath.add(pathItems[i], currentElement); } } } if (currentElement == null) { throw new FrameworkException("Object not found."); } if (action == null) { action = getAction(currentElement, null, req); } if (action == null) { throw new FrameworkException("Action not found"); } } } catch (FrameworkException notfound) { if (error != null) { // we already have an error and the error template wasn't found, // display it instead of notfound message throw new RuntimeException(); } // The path could not be resolved. Check if there is a "not found" action // specified in the property file. res.status = 404; String notFoundAction = app.props.getProperty("notfound", "notfound"); currentElement = root; action = getAction(currentElement, notFoundAction, req); if (action == null) { throw new FrameworkException(notfound.getMessage()); } } // register path objects with their prototype names in // res.handlers Map macroHandlers = res.getMacroHandlers(); int l = requestPath.size(); Prototype[] protos = new Prototype[l]; for (int i = 0; i < l; i++) { Object obj = requestPath.get(i); protos[i] = app.getPrototype(obj); // immediately register objects with their direct prototype name if (protos[i] != null) { macroHandlers.put(protos[i].getName(), obj); macroHandlers.put(protos[i].getLowerCaseName(), obj); } } // in a second pass, we register path objects with their indirect // (i.e. parent prototype) names, starting at the end and only // if the name isn't occupied yet. for (int i = l - 1; i >= 0; i--) { if (protos[i] != null) { protos[i].registerParents(macroHandlers, requestPath.get(i)); } } ///////////////////////////////////////////////////////////////////////////// // end of path resolution section ///////////////////////////////////////////////////////////////////////////// // beginning of execution section // set the req.action property, cutting off the _action suffix req.setAction(action.substring(0, action.lastIndexOf("_action"))); // reset skin recursion detection counter skinDepth = 0; // try calling onRequest() function on object before // calling the actual action try { if (scriptingEngine.hasFunction(currentElement, "onRequest")) { scriptingEngine.invoke(currentElement, "onRequest", new Object[0], ScriptingEngine.ARGS_WRAP_DEFAULT); } } catch (RedirectException redir) { throw redir; } // reset skin recursion detection counter skinDepth = 0; // do the actual action invocation if (req.isXmlRpc()) { XmlRpcRequestProcessor xreqproc = new XmlRpcRequestProcessor(); XmlRpcServerRequest xreq = xreqproc.decodeRequest(req.getServletRequest() .getInputStream()); Vector args = xreq.getParameters(); args.add(0, xreq.getMethodName()); result = scriptingEngine.invoke(currentElement, action, args.toArray(), ScriptingEngine.ARGS_WRAP_XMLRPC); res.writeXmlRpcResponse(result); } else { scriptingEngine.invoke(currentElement, action, new Object[0], ScriptingEngine.ARGS_WRAP_DEFAULT); } } catch (RedirectException redirect) { // if there is a message set, save it on the user object for the next request if (res.message != null) { session.message = res.message; } } // check if we're still the one and only or if the waiting thread has given up on us already commitTransaction(); done = true; break; case XMLRPC: case EXTERNAL: try { currentElement = root; if (functionName.indexOf('.') > -1) { StringTokenizer st = new StringTokenizer(functionName, "."); int cnt = st.countTokens(); for (int i = 1; i < cnt; i++) { String next = st.nextToken(); currentElement = getChildElement(currentElement, next); } if (currentElement == null) { throw new FrameworkException("Method name \"" + functionName + "\" could not be resolved."); } functionName = st.nextToken(); } if (reqtype == XMLRPC) { // check XML-RPC access permissions String proto = app.getPrototypeName(currentElement); app.checkXmlRpcAccess(proto, functionName); } // reset skin recursion detection counter skinDepth = 0; result = scriptingEngine.invoke(currentElement, functionName, args, ScriptingEngine.ARGS_WRAP_XMLRPC); commitTransaction(); } catch (Exception x) { abortTransaction(); app.logEvent("Exception in " + Thread.currentThread() + ": " + x); // If the transactor thread has been killed by the invoker thread we don't have to // bother for the error message, just quit. if (localrtx != rtx) { return; } this.exception = x; } done = true; break; case INTERNAL: // if thisObject is an instance of NodeHandle, get the node object itself. if ((thisObject != null) && thisObject instanceof NodeHandle) { thisObject = ((NodeHandle) thisObject).getNode(app.nmgr.safe); // see if a valid node was returned if (thisObject == null) { reqtype = NONE; abortTransaction(); done = true; break; } } // avoid going into transaction if called function doesn't exist. boolean functionexists = true; // this only works for the (common) case that method is a plain // method name, not an obj.method path if (functionName.indexOf('.') < 0) { functionexists = scriptingEngine.hasFunction(thisObject, functionName); } if (!functionexists) { // function doesn't exist, nothing to do here. reqtype = NONE; abortTransaction(); } else { try { // reset skin recursion detection counter skinDepth = 0; result = scriptingEngine.invoke(thisObject, functionName, args, ScriptingEngine.ARGS_WRAP_DEFAULT); commitTransaction(); } catch (Exception x) { abortTransaction(); app.logEvent("Exception in " + Thread.currentThread() + ": " + x); // If the transactor thread has been killed by the invoker thread we don't have to // bother for the error message, just quit. if (localrtx != rtx) { return; } this.exception = x; } } done = true; break; } // switch (reqtype) } catch (AbortException x) { // res.abort() just aborts the transaction and // leaves the respons untouched abortTransaction(); done = true; } catch (ConcurrencyException x) { res.reset(); if (++tries < 8) { // try again after waiting some period abortTransaction(); try { // wait a bit longer with each try int base = 800 * tries; Thread.sleep((long) (base + (Math.random() * base * 2))); } catch (Exception ignore) { } } else { abortTransaction(); if (error == null) error = "Application too busy, please try again later"; // error in error action. use traditional minimal error message res.writeErrorReport(app.getName(), error); done = true; } } catch (Throwable x) { String txname = localrtx.getTransactionName(); abortTransaction(); // If the transactor thread has been killed by the invoker thread we don't have to // bother for the error message, just quit. if (localrtx != rtx) { return; } res.reset(); // check if we tried to process the error already, // or if this is an XML-RPC request if (error == null) { app.errorCount += 1; // set done to false so that the error will be processed done = false; error = x.getMessage(); if ((error == null) || (error.length() == 0)) { error = x.toString(); } if (error == null) { error = "Unspecified error"; } if (x instanceof ScriptingException) { x = ((ScriptingException) x).getWrappedException(); } app.logError(txname + ": " + error, x); if (req.isXmlRpc()) { // if it's an XML-RPC exception immediately generate error response if (!(x instanceof Exception)) { // we need an exception to pass to XML-RPC responder x = new Exception(x.toString(), x); } res.writeXmlRpcError((Exception) x); done = true; } } else { // error in error action. use traditional minimal error message res.writeErrorReport(app.getName(), error); done = true; } } } // exit execution context scriptingEngine.exitContext(); notifyAndWait(); } } finally { localrtx.closeConnections(); } }
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/be96b27a881ca49f459bd0f322813f797dd544c0/RequestEvaluator.java/buggy/src/helma/framework/core/RequestEvaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 368, 1122, 16, 444, 279, 1191, 2190, 358, 326, 783, 906, 3362, 2650, 1427, 732, 5055, 3639, 368, 1347, 518, 1807, 813, 358, 9706, 2724, 4042, 2650, 23151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 368, 1122, 16, 444, 279, 1191, 2190, 358, 326, 783, 906, 3362, 2650, 1427, 732, 5055, 3639, 368, 1347, 518, 1807, 813, 358, 9706, 2724, 4042, 2650, 23151...
throws JspException {
throws JspException {
public void writePrevious(PageContext pageContext, String text) throws JspException { JspWriter writer = pageContext.getOut(); if (writer instanceof BodyContent){ writer = ((BodyContent) writer).getEnclosingWriter(); } try { writer.print(text); } catch (IOException e) { TagUtils.getInstance().saveException(pageContext, e); throw new JspException (messages.getMessage("write.io", e.toString())); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/ebb20c4a2662be87e84c7757232a8dc5562bcfb0/TagUtils.java/buggy/src/share/org/apache/struts/taglib/TagUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 8351, 12, 1964, 1042, 21442, 16, 514, 977, 13, 3639, 1216, 27485, 288, 3639, 19300, 2289, 2633, 273, 21442, 18, 588, 1182, 5621, 3639, 309, 261, 6299, 1276, 5652, 1350, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 8351, 12, 1964, 1042, 21442, 16, 514, 977, 13, 3639, 1216, 27485, 288, 3639, 19300, 2289, 2633, 273, 21442, 18, 588, 1182, 5621, 3639, 309, 261, 6299, 1276, 5652, 1350, 1...
getToolBarAndMenus().stateChange();
dialog.setResizable(false); noReceiversWarningPanel.setOkActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { dialog.setVisible(false); } }); dialog.getContentPane().add(noReceiversWarningPanel); dialog.pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); dialog.setLocation( (screenSize.width / 2) - (dialog.getWidth() / 2), (screenSize.height / 2) - (dialog.getHeight() / 2)); dialog.show(); dialog.dispose(); if (noReceiversWarningPanel.getModel().isManualMode()) { toggleReceiversPanel(); } else if (noReceiversWarningPanel.getModel().isSimpleReceiverMode()) { int port = noReceiversWarningPanel.getModel().getSimplePort(); Class receiverClass = noReceiversWarningPanel.getModel().getSimpleReceiverClass(); try { Receiver simpleReceiver = (Receiver) receiverClass.newInstance(); simpleReceiver.setName("Simple Receiver"); Method portMethod = simpleReceiver.getClass().getMethod( "setPort", new Class[] { int.class }); portMethod.invoke( simpleReceiver, new Object[] { new Integer(port) }); simpleReceiver.setThreshold(Level.DEBUG); PluginRegistry.startPlugin(simpleReceiver); receiversPanel.updateReceiverTreeInDispatchThread(); } catch (Exception e) { LogLog.error("Error creating Receiver", e); getStatusBar().setMessage( "An error occurred creating your Receiver"); } } else if (noReceiversWarningPanel.getModel().isLoadConfig()) { final URL url = noReceiversWarningPanel.getModel().getConfigToLoad(); if (url != null) { LogLog.debug("Initialiazing Log4j with " + url.toExternalForm()); new Thread( new Runnable() { public void run() { try { OptionConverter.selectAndConfigure( url, null, LogManager.getLoggerRepository()); } catch (Exception e) { LogLog.error("Error initializing Log4j", e); } LogManager.getLoggerRepository().getRootLogger() .addAppender(handler); receiversPanel.updateReceiverTreeInDispatchThread(); } }).start(); } }
public void run() { receiversPanel.setVisible(!receiversPanel.isVisible()); receiversPanel.invalidate(); receiversPanel.validate(); getToolBarAndMenus().stateChange(); }
47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/b54ae2d71e43a69daf790a961daae563371a163a/LogUI.java/clean/src/java/org/apache/log4j/chainsaw/LogUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 22686, 5537, 18, 542, 6207, 12, 5, 8606, 6760, 5537, 18, 291, 6207, 10663, 1850, 22686, 5537, 18, 5387, 340, 5621, 1850, 22686, 5537, 18, 5662, 5621, 185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 22686, 5537, 18, 542, 6207, 12, 5, 8606, 6760, 5537, 18, 291, 6207, 10663, 1850, 22686, 5537, 18, 5387, 340, 5621, 1850, 22686, 5537, 18, 5662, 5621, 185...
LineRange range = whatToMove;
LineRange range = toMove;
protected boolean checkAvailable(Editor editor, PsiFile file) { //if (!(file instanceof PsiJavaFile)) return false; final boolean available = super.checkAvailable(editor, file); if (!available) return false; LineRange range = whatToMove; range = expandLineRangeToCoverPsiElements(range, editor, file); if (range == null) return false; final int startOffset = editor.logicalPositionToOffset(new LogicalPosition(range.startLine, 0)); final int endOffset = editor.logicalPositionToOffset(new LogicalPosition(range.endLine+1, 0)); final PsiElement[] statements = CodeInsightUtil.findStatementsInRange(file, startOffset, endOffset); if (statements.length == 0) return false; range.firstElement = statements[0]; range.lastElement = statements[statements.length-1]; if (!checkMovingInsideOutside(file, editor, range)) { insertOffset = -1; return true; } //calcInsertOffset(file, editor, range); return true; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/02c2f546504510bdbd05916539ae0061487b89de/StatementMover.java/buggy/source/com/intellij/openapi/editor/actions/moveUpDown/StatementMover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 866, 5268, 12, 6946, 4858, 16, 453, 7722, 812, 585, 13, 288, 565, 368, 430, 16051, 12, 768, 1276, 453, 7722, 5852, 812, 3719, 327, 629, 31, 565, 727, 1250, 2319, 273, 2240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 5268, 12, 6946, 4858, 16, 453, 7722, 812, 585, 13, 288, 565, 368, 430, 16051, 12, 768, 1276, 453, 7722, 5852, 812, 3719, 327, 629, 31, 565, 727, 1250, 2319, 273, 2240, ...
recv.stopReceiving(); try { _log.debug("Destroying I2P session..."); session.destroySession(); _log.debug("I2P session destroyed"); } catch (I2PSessionException e) {
_log.debug("Shutting down SAM RAW session handler"); recv.stopRawReceiving(); try { _log.debug("Destroying I2P session..."); session.destroySession(); _log.debug("I2P session destroyed"); } catch (I2PSessionException e) {
public void run() { _log.debug("SAM RAW session handler running"); synchronized (runningLock) { while (stillRunning) { try { runningLock.wait(); } catch (InterruptedException ie) {} } _log.debug("Shutting down SAM RAW session handler"); recv.stopReceiving(); try { _log.debug("Destroying I2P session..."); session.destroySession(); _log.debug("I2P session destroyed"); } catch (I2PSessionException e) { _log.error("Error destroying I2P session", e); } } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/7b03c95cfd85cf41cc4a19a116d9b1a94eb588cd/SAMRawSession.java/clean/apps/sam/java/src/net/i2p/sam/SAMRawSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 565, 389, 1330, 18, 4148, 2932, 55, 2192, 29118, 1339, 1838, 3549, 8863, 202, 565, 3852, 261, 8704, 2531, 13, 288, 202, 202, 17523, 261, 334, 737, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 565, 389, 1330, 18, 4148, 2932, 55, 2192, 29118, 1339, 1838, 3549, 8863, 202, 565, 3852, 261, 8704, 2531, 13, 288, 202, 202, 17523, 261, 334, 737, 7...
measures[i] = new RolapStoredMeasure( this, null, measuresLevel, xmlMeasure.name, xmlMeasure.formatString, xmlMeasure.column, xmlMeasure.aggregator);
final RolapStoredMeasure measure = measures[i] = new RolapStoredMeasure( this, null, measuresLevel, xmlMeasure.name, xmlMeasure.formatString, xmlMeasure.column, xmlMeasure.aggregator);
RolapCube( RolapSchema schema, MondrianDef.Schema xmlSchema, MondrianDef.Cube xmlCube) { this.schema = schema; this.name = xmlCube.name; this.fact = xmlCube.fact; if (fact.getAlias() == null) { throw Util.newError( "Must specify alias for fact table of cube " + getUniqueName()); } this.dimensions = new RolapDimension[xmlCube.dimensions.length + 1]; this.hierarchies = new RolapHierarchy[xmlCube.dimensions.length + 1]; RolapDimension measuresDimension = new RolapDimension(schema, Dimension.MEASURES_NAME, 0, DimensionType.StandardDimension); this.dimensions[0] = measuresDimension; this.measuresHierarchy = measuresDimension.newHierarchy(null, false); if (!Util.isEmpty(xmlSchema.measuresCaption)) { measuresDimension.setCaption(xmlSchema.measuresCaption); this.measuresHierarchy.setCaption(xmlSchema.measuresCaption); } RolapLevel measuresLevel = this.measuresHierarchy.newLevel("MeasuresLevel", 0); for (int i = 0; i < xmlCube.dimensions.length; i++) { MondrianDef.CubeDimension xmlCubeDimension = xmlCube.dimensions[i]; // Look up usages of shared dimensions in the schema before // consulting the XML schema (which may be null). dimensions[i + 1] = getOrCreateDimension(xmlCubeDimension, schema, xmlSchema); hierarchies[i + 1] = (RolapHierarchy) dimensions[i + 1].getHierarchy(); } RolapStoredMeasure measures[] = new RolapStoredMeasure[ xmlCube.measures.length]; for (int i = 0; i < xmlCube.measures.length; i++) { MondrianDef.Measure xmlMeasure = xmlCube.measures[i]; measures[i] = new RolapStoredMeasure( this, null, measuresLevel, xmlMeasure.name, xmlMeasure.formatString, xmlMeasure.column, xmlMeasure.aggregator); if (!Util.isEmpty(xmlMeasure.formatter)) { // there is a special cell formatter class try { Class clazz = Class.forName(xmlMeasure.formatter); Constructor ctor = clazz.getConstructor(new Class[0]); CellFormatter cellFormatter = (CellFormatter) ctor.newInstance(new Object[0]); measures[i].setFormatter(cellFormatter); } catch (Exception e) { e.printStackTrace(); } } if (!Util.isEmpty(xmlMeasure.caption)) { // there is a special caption string measures[i].setProperty("$caption", xmlMeasure.caption); } } this.measuresHierarchy.memberReader = new CacheMemberReader( new MeasureMemberSource(measuresHierarchy, measures)); init(); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a991d79eb8f7549e43f0a63841ea303bdb40c35e/RolapCube.java/buggy/src/main/mondrian/rolap/RolapCube.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 4984, 438, 39, 4895, 12, 202, 202, 4984, 438, 3078, 1963, 16, 490, 1434, 566, 304, 3262, 18, 3078, 2025, 3078, 16, 202, 202, 49, 1434, 566, 304, 3262, 18, 39, 4895, 2025, 39, 489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4984, 438, 39, 4895, 12, 202, 202, 4984, 438, 3078, 1963, 16, 490, 1434, 566, 304, 3262, 18, 3078, 2025, 3078, 16, 202, 202, 49, 1434, 566, 304, 3262, 18, 39, 4895, 2025, 39, 489...
sourceRoot = sourceRoot.replaceAll("/", "-");
{ sourceRoot = sourceRoot.replaceAll( "/", "-" ); }
private void addSourceRoots( XMLWriter writer, File projectBaseDir, File basedir, List sourceRoots, String output ) { for ( Iterator it = sourceRoots.iterator(); it.hasNext(); ) { String sourceRoot = (String) it.next(); if ( new File( sourceRoot ).isDirectory() ) { writer.startElement( "classpathentry" ); writer.addAttribute( "kind", "src" ); sourceRoot = toRelative( projectBaseDir, sourceRoot ); if (!projectBaseDir.equals(basedir)) sourceRoot = sourceRoot.replaceAll("/", "-"); writer.addAttribute( "path", sourceRoot ); if ( output != null ) { writer.addAttribute( "output", toRelative( projectBaseDir, output ) ); } writer.endElement(); } } }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/64887493fef1a5f1af7d6c568b8054cd9f155c01/EclipseWriter.java/buggy/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 1830, 17540, 12, 3167, 2289, 2633, 16, 1387, 1984, 2171, 1621, 16, 1387, 15573, 16, 987, 1084, 17540, 16, 514, 876, 262, 565, 288, 3639, 364, 261, 4498, 518, 273, 1084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 1830, 17540, 12, 3167, 2289, 2633, 16, 1387, 1984, 2171, 1621, 16, 1387, 15573, 16, 987, 1084, 17540, 16, 514, 876, 262, 565, 288, 3639, 364, 261, 4498, 518, 273, 1084, ...
ClientMetadata dm = new ClientMetadata(); ClientKey key; try { key = ClientKey.getBaseKey(origURI); } catch (MalformedURLException e2) { throw new FetchException(FetchException.INVALID_URI, "Invalid URI: "+origURI); } LinkedList metaStrings = origURI.listMetaStrings(); FetchResult fr = realRun(dm, 0, key, metaStrings, ctx.dontEnterImplicitArchives, ctx.localRequestOnly); if(metaStrings.isEmpty()) return fr; throw new FetchException(FetchException.HAS_MORE_METASTRINGS); } catch (ArchiveRestartException e) { archiveContext = new ArchiveContext();
return runOnce(); } catch (FetchException e) { lastThrown = e; tracker.merge(e); if(e.isFatal()) throw e; Logger.normal(this, "Possibly retrying "+this+" despite "+e, e);
public FetchResult run() throws FetchException { for(int i=0;i<ctx.maxArchiveRestarts;i++) { try { ClientMetadata dm = new ClientMetadata(); ClientKey key; try { key = ClientKey.getBaseKey(origURI); } catch (MalformedURLException e2) { throw new FetchException(FetchException.INVALID_URI, "Invalid URI: "+origURI); } LinkedList metaStrings = origURI.listMetaStrings(); FetchResult fr = realRun(dm, 0, key, metaStrings, ctx.dontEnterImplicitArchives, ctx.localRequestOnly); if(metaStrings.isEmpty()) return fr; // Still got some meta-strings throw new FetchException(FetchException.HAS_MORE_METASTRINGS); } catch (ArchiveRestartException e) { archiveContext = new ArchiveContext(); continue; } catch (MetadataParseException e) { throw new FetchException(e); } catch (ArchiveFailureException e) { if(e.getMessage().equals(ArchiveFailureException.TOO_MANY_LEVELS)) throw new FetchException(FetchException.TOO_DEEP_ARCHIVE_RECURSION); throw new FetchException(e); } } throw new FetchException(FetchException.TOO_MANY_ARCHIVE_RESTARTS); }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/Fetcher.java/buggy/src/freenet/client/Fetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8065, 1253, 1086, 1435, 1216, 8065, 503, 288, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 5900, 18, 1896, 7465, 15057, 87, 31, 77, 27245, 288, 1082, 202, 698, 288, 950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8065, 1253, 1086, 1435, 1216, 8065, 503, 288, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 5900, 18, 1896, 7465, 15057, 87, 31, 77, 27245, 288, 1082, 202, 698, 288, 950...
return ! c.getAutoCommit();
return !c.getAutoCommit();
public boolean isInTransaction() throws ObjectStoreException { Connection c = null; try { c = getConnection(); return ! c.getAutoCommit(); } catch (SQLException e) { throw new ObjectStoreException("Error finding transaction status", e); } finally { releaseConnection(c); } }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/be90eb9e0d8c6624a4922dd569d6c73b4ae3046a/ObjectStoreWriterFlyMineImpl.java/clean/intermine/src/java/org/intermine/objectstore/intermine/ObjectStoreWriterFlyMineImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 8048, 3342, 1435, 1216, 1033, 21151, 288, 3639, 4050, 276, 273, 446, 31, 3639, 775, 288, 5411, 276, 273, 6742, 5621, 5411, 327, 401, 71, 18, 588, 4965, 5580, 5621, 3639, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 8048, 3342, 1435, 1216, 1033, 21151, 288, 3639, 4050, 276, 273, 446, 31, 3639, 775, 288, 5411, 276, 273, 6742, 5621, 5411, 327, 401, 71, 18, 588, 4965, 5580, 5621, 3639, 289, ...
ModelAndView modelAndView = execute("/test", null);
ModelAndView modelAndView = execute("/test/test", null);
public void testSimpleControllerSuccess() throws Exception { ModelAndView modelAndView = execute("/test", null); assertNotNull(modelAndView); }
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/ec8428beed9d55121015b550a80c58624d3dc975/SimpleGrailsControllerTests.java/clean/grails/test/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5784, 2933, 4510, 1435, 1216, 1185, 288, 202, 202, 1488, 1876, 1767, 938, 1876, 1767, 273, 1836, 2932, 19, 3813, 3113, 446, 1769, 202, 202, 11231, 5962, 12, 2284, 187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 1842, 5784, 2933, 4510, 1435, 1216, 1185, 288, 202, 202, 1488, 1876, 1767, 938, 1876, 1767, 273, 1836, 2932, 19, 3813, 3113, 446, 1769, 202, 202, 11231, 5962, 12, 2284, 187...
doArrayStore(s, ir, REF_STORE, 2);
doArrayStore(s, ir, REF_STORE, LOG_BYTES_IN_ADDRESS);
static void convert (OPT_IR ir, OPT_Options options) { for (OPT_Instruction s = ir.firstInstructionInCodeOrder(); s != null; s = s.nextInstructionInCodeOrder()) { switch (s.getOpcode()) { case GETSTATIC_opcode: { OPT_LocationOperand loc = GetStatic.getClearLocation(s); OPT_RegisterOperand result = GetStatic.getClearResult(s); OPT_Operand address = ir.regpool.makeJTOCOp(ir,s); OPT_Operand offset = GetStatic.getClearOffset(s); Load.mutate(s, OPT_IRTools.getLoadOp(loc.getFieldRef()), result, address, offset, loc); } break; case PUTSTATIC_opcode: { OPT_LocationOperand loc = PutStatic.getClearLocation(s); OPT_Operand value = PutStatic.getClearValue(s); OPT_Operand address = ir.regpool.makeJTOCOp(ir,s); OPT_Operand offset = PutStatic.getClearOffset(s); Store.mutate(s, OPT_IRTools.getStoreOp(loc.getFieldRef()), value, address, offset, loc); } break; case PUTFIELD_opcode: { OPT_LocationOperand loc = PutField.getClearLocation(s); OPT_Operand value = PutField.getClearValue(s); OPT_Operand address = PutField.getClearRef(s); OPT_Operand offset = PutField.getClearOffset(s); Store.mutate(s, OPT_IRTools.getStoreOp(loc.getFieldRef()), value, address, offset, loc, PutField.getClearGuard(s)); } break; case GETFIELD_opcode: { OPT_LocationOperand loc = GetField.getClearLocation(s); OPT_RegisterOperand result = GetField.getClearResult(s); OPT_Operand address = GetField.getClearRef(s); OPT_Operand offset = GetField.getClearOffset(s); Load.mutate(s, OPT_IRTools.getLoadOp(loc.getFieldRef()), result, address, offset, loc, GetField.getClearGuard(s)); } break; case INT_ALOAD_opcode: doArrayLoad(s, ir, INT_LOAD, 2); break; case LONG_ALOAD_opcode: doArrayLoad(s, ir, LONG_LOAD, 3); break; case FLOAT_ALOAD_opcode: doArrayLoad(s, ir, FLOAT_LOAD, 2); break; case DOUBLE_ALOAD_opcode: doArrayLoad(s, ir, DOUBLE_LOAD, 3); break; case REF_ALOAD_opcode: doArrayLoad(s, ir, REF_LOAD, 2); break; case BYTE_ALOAD_opcode: doArrayLoad(s, ir, BYTE_LOAD, 0); break; case UBYTE_ALOAD_opcode: doArrayLoad(s, ir, UBYTE_LOAD, 0); break; case USHORT_ALOAD_opcode: doArrayLoad(s, ir, USHORT_LOAD, 1); break; case SHORT_ALOAD_opcode: doArrayLoad(s, ir, SHORT_LOAD, 1); break; case INT_ASTORE_opcode: doArrayStore(s, ir, INT_STORE, 2); break; case LONG_ASTORE_opcode: doArrayStore(s, ir, LONG_STORE, 3); break; case FLOAT_ASTORE_opcode: doArrayStore(s, ir, FLOAT_STORE, 2); break; case DOUBLE_ASTORE_opcode: doArrayStore(s, ir, DOUBLE_STORE, 3); break; case REF_ASTORE_opcode: doArrayStore(s, ir, REF_STORE, 2); break; case BYTE_ASTORE_opcode: doArrayStore(s, ir, BYTE_STORE, 0); break; case SHORT_ASTORE_opcode: doArrayStore(s, ir, SHORT_STORE, 1); break; case CALL_opcode: s = callHelper(s, ir); break; case SYSCALL_opcode: OPT_CallingConvention.expandSysCall(s, ir); break; case TABLESWITCH_opcode: s = tableswitch(s, ir); break; case LOOKUPSWITCH_opcode: s = lookup(s, ir); break; case OBJARRAY_STORE_CHECK_opcode: s = OPT_DynamicTypeCheckExpansion.arrayStoreCheck(s, ir, true); break; case OBJARRAY_STORE_CHECK_NOTNULL_opcode: s = OPT_DynamicTypeCheckExpansion.arrayStoreCheck(s, ir, false); break; case CHECKCAST_opcode: case CHECKCAST_UNRESOLVED_opcode: s = OPT_DynamicTypeCheckExpansion.checkcast(s, ir); break; case CHECKCAST_NOTNULL_opcode: s = OPT_DynamicTypeCheckExpansion.checkcastNotNull(s, ir); break; case MUST_IMPLEMENT_INTERFACE_opcode: s = OPT_DynamicTypeCheckExpansion.mustImplementInterface(s, ir); break; case IG_CLASS_TEST_opcode: IfCmp.mutate(s, INT_IFCMP, null, getTIB(s, ir, InlineGuard.getClearValue(s), InlineGuard.getClearGuard(s)), getTIB(s, ir, InlineGuard.getGoal(s).asType()), OPT_ConditionOperand.NOT_EQUAL(), InlineGuard.getClearTarget(s), InlineGuard.getClearBranchProfile(s)); break; case IG_METHOD_TEST_opcode: { OPT_MethodOperand methOp = InlineGuard.getClearGoal(s).asMethod(); OPT_RegisterOperand t1 = getTIB(s, ir, InlineGuard.getClearValue(s), InlineGuard.getClearGuard(s)); OPT_Operand t2 = getTIB(s, ir, methOp.getTarget().getDeclaringClass()); IfCmp.mutate(s, INT_IFCMP, null, getInstanceMethod(s, ir, t1, methOp.getTarget()), getInstanceMethod(s, ir, t2, methOp.getTarget()), OPT_ConditionOperand.NOT_EQUAL(), InlineGuard.getClearTarget(s), InlineGuard.getClearBranchProfile(s)); break; } case INSTANCEOF_opcode: case INSTANCEOF_UNRESOLVED_opcode: s = OPT_DynamicTypeCheckExpansion.instanceOf(s, ir); break; case INSTANCEOF_NOTNULL_opcode: s = OPT_DynamicTypeCheckExpansion.instanceOfNotNull(s, ir); break; case INT_ZERO_CHECK_opcode: { TrapIf.mutate(s, TRAP_IF, ZeroCheck.getClearGuardResult(s), ZeroCheck.getClearValue(s), I(0), OPT_ConditionOperand.EQUAL(), OPT_TrapCodeOperand.DivByZero()); } break; case LONG_ZERO_CHECK_opcode: { TrapIf.mutate(s, TRAP_IF, ZeroCheck.getClearGuardResult(s), ZeroCheck.getClearValue(s), I(0), OPT_ConditionOperand.EQUAL(), OPT_TrapCodeOperand.DivByZero()); } break; case BOUNDS_CHECK_opcode: { // get array_length from array_ref OPT_RegisterOperand array_length = InsertGuardedUnary(s, ir, ARRAYLENGTH, VM_TypeReference.Int, BoundsCheck.getClearRef(s), BoundsCheck.getClearGuard(s)); // In UN-signed comparison, a negative index will look like a very // large positive number, greater than array length. // Thus length LLT index is false iff 0 <= index <= length TrapIf.mutate(s, TRAP_IF, BoundsCheck.getClearGuardResult(s), array_length.copyD2U(), BoundsCheck.getClearIndex(s), OPT_ConditionOperand.LOWER_EQUAL(), OPT_TrapCodeOperand.ArrayBounds()); } break; case GET_CLASS_OBJECT_opcode: { OPT_Operand TIB = getTIB(s, ir, (OPT_TypeOperand)Unary.getClearVal(s)); OPT_RegisterOperand type = ir.regpool.makeTemp(VM_TypeReference.VM_Type); s.insertBefore(Unary.create(GET_TYPE_FROM_TIB, type, TIB)); // Get the java.lang.Class object from the VM_Type object // TODO: Valid location operand? Load.mutate(s, REF_LOAD, Unary.getClearResult(s), type.copyD2U(), I(VM_Entrypoints.classForTypeField.getOffset()), null); } break; case RESOLVE_MEMBER_opcode: s = resolveMember(s, ir); break; default: break; } } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/30bac9a2beda5e64a2be507cecdcadd78680f981/OPT_ConvertToLowLevelIR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/hir2lir/OPT_ConvertToLowLevelIR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1765, 261, 15620, 67, 7937, 9482, 16, 16456, 67, 1320, 702, 13, 288, 565, 364, 261, 15620, 67, 11983, 272, 273, 9482, 18, 3645, 11983, 382, 1085, 2448, 5621, 1850, 272, 480, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1765, 261, 15620, 67, 7937, 9482, 16, 16456, 67, 1320, 702, 13, 288, 565, 364, 261, 15620, 67, 11983, 272, 273, 9482, 18, 3645, 11983, 382, 1085, 2448, 5621, 1850, 272, 480, 4...
if (router.getIdentity().equals(_context.router().getRouterInfo().getIdentity())) {
if (router.getIdentity().equals(getContext().router().getRouterInfo().getIdentity())) {
protected void sendSearch(RouterInfo router) { if (router.getIdentity().equals(_context.router().getRouterInfo().getIdentity())) { // don't search ourselves if (_log.shouldLog(Log.ERROR)) _log.error(getJobId() + ": Dont send search to ourselves - why did we try?"); return; } else { if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Send search to " + router.getIdentity().getHash().toBase64()); } if (_isLease || false) // moo sendLeaseSearch(router); else sendRouterSearch(router); }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/SearchJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1366, 2979, 12, 8259, 966, 4633, 13, 288, 3639, 309, 261, 10717, 18, 588, 4334, 7675, 14963, 12, 29120, 7675, 10717, 7675, 588, 8259, 966, 7675, 588, 4334, 1435, 3719, 288, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 2979, 12, 8259, 966, 4633, 13, 288, 3639, 309, 261, 10717, 18, 588, 4334, 7675, 14963, 12, 29120, 7675, 10717, 7675, 588, 8259, 966, 7675, 588, 4334, 1435, 3719, 288, 541...
protected void createDescriptionFileGroup(Composite parent) { // destination specification group fDescriptionFileGroup= new Composite(parent, SWT.NONE); GridLayout layout= new GridLayout(); layout.numColumns= 3; fDescriptionFileGroup.setLayout(layout); fDescriptionFileGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL)); fDescriptionFileLabel= new Label(fDescriptionFileGroup, SWT.NONE); fDescriptionFileLabel.setText(JarPackagerMessages.getString("JarOptionsPage.descriptionFile.label")); //$NON-NLS-1$ // destination name entry field fDescriptionFileText= new Text(fDescriptionFileGroup, SWT.SINGLE | SWT.BORDER); fDescriptionFileText.addListener(SWT.Modify, this); GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); data.widthHint= SIZING_TEXT_FIELD_WIDTH; fDescriptionFileText.setLayoutData(data); // destination browse button fDescriptionFileBrowseButton= new Button(fDescriptionFileGroup, SWT.PUSH); fDescriptionFileBrowseButton.setText(JarPackagerMessages.getString("JarOptionsPage.browseButton.text")); //$NON-NLS-1$ fDescriptionFileBrowseButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); fDescriptionFileBrowseButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { handleDescriptionFileBrowseButtonPressed(); } });// new Label(parent, SWT.NONE); // vertical spacer }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/3b9a6c1ab1a5256330521197eb604a55766a1d63/JarOptionsPage.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 3291, 812, 1114, 12, 9400, 982, 13, 288, 202, 202, 759, 2929, 7490, 1041, 202, 202, 74, 3291, 812, 1114, 33, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 3291, 812, 1114, 12, 9400, 982, 13, 288, 202, 202, 759, 2929, 7490, 1041, 202, 202, 74, 3291, 812, 1114, 33, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, ...
String reversePath = new StringBuffer(storePath).reverse().toString(); /* Pathes can be found twice (search from one or the other side) * so they will occur in reversed order. We only handle the * lexicographically smaller path (This is an arbitrary choice) */
String reversePath = new StringBuffer(storePath).reverse().toString(); /* * Pathes can be found twice (search from one or the other side) * so they will occur in reversed order. We only handle the * lexicographically smaller path (This is an arbitrary choice) */
private static void checkAndStore(Vector newPath) { String newPathString = ""; for (int f = 0; f < newPath.size(); f++) { if ((newPath.elementAt(f)) instanceof org.openscience.cdk.Atom) { newPathString += convertSymbol(((Atom)newPath.elementAt(f)).getSymbol()); } else newPathString += (String)newPath.elementAt(f); } //logger.debug("Checking for existence of Path " + newPathString); String storePath = new String(newPathString); String reversePath = new StringBuffer(storePath).reverse().toString(); /* Pathes can be found twice (search from one or the other side) * so they will occur in reversed order. We only handle the * lexicographically smaller path (This is an arbitrary choice) */ if (reversePath.compareTo(newPathString) < 0) { /* reversePath is smaller than newPath so we keep reversePath */ storePath = reversePath; } if (!pathes.containsKey(storePath)) { pathes.put(storePath, storePath); if (debug) { debugCounter++; //logger.debug("Storing path no. " + debugCounter + ": " + storePath + ", Hash: " + storePath.hashCode()); } } else { //logger.debug("Path " + storePath + " already contained"); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/5d724f3afbc7e278614265f76f99a7cb5d37b10b/Fingerprinter.java/buggy/src/org/openscience/cdk/fingerprint/Fingerprinter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 30970, 2257, 12, 5018, 14954, 13, 202, 95, 202, 202, 780, 14954, 780, 273, 1408, 31, 202, 202, 1884, 261, 474, 284, 273, 374, 31, 284, 411, 14954, 18, 1467, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 30970, 2257, 12, 5018, 14954, 13, 202, 95, 202, 202, 780, 14954, 780, 273, 1408, 31, 202, 202, 1884, 261, 474, 284, 273, 374, 31, 284, 411, 14954, 18, 1467, 5621, ...
if( isConnected && currentTracker != null ) {
if( isConnected && currentTracker != null && !currentTracker.isDeprecated() ) {
public boolean isConnected(){ long now = System.currentTimeMillis(); synchronized(this) { if( isConnected && currentTracker != null ) { timeLastConnected = now; return true; } return false; } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/92061e70ef36714b61c11ad2640dd5689d28deb3/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 20854, 1435, 95, 377, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 377, 202, 22043, 12, 2211, 13, 288, 202, 377, 202, 430, 12, 20854, 597, 783, 8135, 480, 446, 597, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 20854, 1435, 95, 377, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 377, 202, 22043, 12, 2211, 13, 288, 202, 377, 202, 430, 12, 20854, 597, 783, 8135, 480, 446, 597, 40...
ManagedBuildManager.saveBuildInfo(project, false);
ManagedBuildManager.saveBuildInfo(project, true); ManagedBuildManager.removeBuildInfo(project); try { project.close(null); } catch (CoreException e) { fail("Failed on project close: " + e.getLocalizedMessage()); } try { project.open(null); } catch (CoreException e) { fail("Failed on project open: " + e.getLocalizedMessage()); } buildInfo = ManagedBuildManager.getBuildInfo(project);
public void testScannerInfoInterface(){ // Open the test project IProject project = null; try { project = createProject(projectName); IProjectDescription description = project.getDescription(); // Make sure it has a managed nature if (description != null) { assertTrue(description.hasNature(ManagedCProjectNature.MNG_NATURE_ID)); } } catch (CoreException e) { fail("Failed to open project in 'testScannerInfoInterface': " + e.getLocalizedMessage()); } //These are the expected path settings final String[] expectedPaths = new String[5]; // This first path is a built-in, so it will not be manipulated by build manager expectedPaths[0] = "/usr/gnu/include"; expectedPaths[1] = (new Path("/usr/include")).toOSString(); expectedPaths[2] = (new Path("/opt/gnome/include")).toOSString(); expectedPaths[3] = (new Path("C:\\home\\tester/include")).toOSString(); expectedPaths[4] = project.getLocation().append( "Sub Config\\\"..\\includes\"" ).toOSString(); // Create a new target in the project based on the sub target ITarget baseTarget = ManagedBuildManager.getTarget(project, "test.sub"); assertNotNull(baseTarget); ITarget newTarget = null; try { newTarget = ManagedBuildManager.createTarget(project, baseTarget); } catch (BuildException e) { fail("Failed adding new target to project: " + e.getLocalizedMessage()); } assertNotNull(newTarget); // Copy over the configs IConfiguration[] baseConfigs = baseTarget.getConfigurations(); for (int i = 0; i < baseConfigs.length; ++i) { newTarget.createConfiguration(baseConfigs[i], baseConfigs[i].getId() + "." + i); } // Change the default configuration to the sub config IConfiguration[] configs = newTarget.getConfigurations(); assertEquals(4, configs.length); IManagedBuildInfo buildInfo = ManagedBuildManager.getBuildInfo(project); buildInfo.setDefaultConfiguration(newTarget.getConfiguration(configs[0].getId())); // Save the build info ManagedBuildManager.saveBuildInfo(project, false); // Use the plugin mechanism to discover the supplier of the path information IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(CCorePlugin.PLUGIN_ID + ".ScannerInfoProvider"); if (extensionPoint == null) { fail("Failed to retrieve the extension point ScannerInfoProvider."); } // Find the first IScannerInfoProvider that supplies build info for the project IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(project); assertNotNull(provider); // Now subscribe (note that the method will be called after a change provider.subscribe(project, new IScannerInfoChangeListener () { public void changeNotification(IResource project, IScannerInfo info) { // Test the symbols: expect "BUILTIN" from the manifest, and "DEBUG" and "GNOME=ME" // from the overidden settings Map definedSymbols = info.getDefinedSymbols(); assertTrue(definedSymbols.containsKey("BUILTIN")); assertTrue(definedSymbols.containsKey("DEBUG")); assertTrue(definedSymbols.containsKey("GNOME")); assertTrue(definedSymbols.containsValue("ME")); assertEquals((String)definedSymbols.get("BUILTIN"), ""); assertEquals((String)definedSymbols.get("DEBUG"), ""); assertEquals((String)definedSymbols.get("GNOME"), "ME"); // Test the includes path String[] actualPaths = info.getIncludePaths(); assertTrue(Arrays.equals(expectedPaths, actualPaths)); } }); // Check the build information before we change it IScannerInfo currentSettings = provider.getScannerInformation(project); Map currentSymbols = currentSettings.getDefinedSymbols(); // It should simply contain the built-in assertTrue(currentSymbols.containsKey("BUILTIN")); assertEquals((String)currentSymbols.get("BUILTIN"), ""); String[] currentPaths = currentSettings.getIncludePaths(); assertTrue(Arrays.equals(expectedPaths, currentPaths)); // Add some defined symbols programmatically String[] expectedSymbols = {"DEBUG", "GNOME = ME "}; IConfiguration defaultConfig = buildInfo.getDefaultConfiguration(newTarget); ITool[] tools = defaultConfig.getTools(); ITool subTool = null; for (int i = 0; i < tools.length; i++) { ITool tool = tools[i]; if("tool.sub".equalsIgnoreCase(tool.getId())) { subTool = tool; break; } } assertNotNull(subTool); IOption symbolOpt = null; IOption[] opts = subTool.getOptions(); for (int i = 0; i < opts.length; i++) { IOption option = opts[i]; if (option.getValueType() == IOption.PREPROCESSOR_SYMBOLS) { symbolOpt = option; break; } } assertNotNull(symbolOpt); IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(project); assertFalse(info.isDirty()); ManagedBuildManager.setOption(defaultConfig, symbolOpt, expectedSymbols); assertTrue(info.isDirty()); info.setDirty(false); assertFalse(info.isDirty()); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/18b49394c46cbbecf041078a70e83e4975d004a7/ManagedBuildCoreTests.java/clean/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuild/core/tests/ManagedBuildCoreTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11338, 966, 1358, 1435, 95, 202, 202, 759, 3502, 326, 1842, 1984, 202, 202, 45, 4109, 1984, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 4406, 273, 752, 4109, 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, 482, 918, 1842, 11338, 966, 1358, 1435, 95, 202, 202, 759, 3502, 326, 1842, 1984, 202, 202, 45, 4109, 1984, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 4406, 273, 752, 4109, 12, ...
if(ret == JOptionPane.CLOSED_OPTION || ret == JOptionPane.CANCEL_OPTION || ret == JOptionPane.NO_OPTION)
if((ret == JOptionPane.CLOSED_OPTION) || (ret == JOptionPane.CANCEL_OPTION) || (ret == JOptionPane.NO_OPTION))
public boolean askDeconnectionConfirmation() { int ret = JOptionPane.showOptionDialog((java.awt.Component)null, I18n.getMessage("thaw.warning.isWriting"), "Thaw - "+I18n.getMessage("thaw.warning.title"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, (javax.swing.Icon)null, (java.lang.Object[])null, (java.lang.Object)null); if(ret == JOptionPane.CLOSED_OPTION || ret == JOptionPane.CANCEL_OPTION || ret == JOptionPane.NO_OPTION) return false; return true; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Core.java/buggy/src/thaw/core/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6827, 1799, 265, 944, 17597, 1435, 288, 202, 202, 474, 325, 273, 804, 1895, 8485, 18, 4500, 1895, 6353, 12443, 6290, 18, 2219, 88, 18, 1841, 13, 2011, 16, 6862, 1082, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6827, 1799, 265, 944, 17597, 1435, 288, 202, 202, 474, 325, 273, 804, 1895, 8485, 18, 4500, 1895, 6353, 12443, 6290, 18, 2219, 88, 18, 1841, 13, 2011, 16, 6862, 1082, 42...
throw nvae; } switch (alt21) { case 1 : {
mDIGITS();
public void mEXPONENT_PART() throws RecognitionException { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:170:26: ( ('e'|'E') ( ('+'|'-'))? DIGITS ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:170:26: ('e'|'E') ( ('+'|'-'))? DIGITS { if ( input.LA(1)=='E'||input.LA(1)=='e' ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:170:36: ( ('+'|'-'))? int alt21=2; int LA21_0 = input.LA(1); if ( LA21_0=='+'||LA21_0=='-' ) { alt21=1; } else if ( (LA21_0>='0' && LA21_0<='9') ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("170:36: ( (\'+\'|\'-\'))?", 21, 0, input); throw nvae; } switch (alt21) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:170:38: ('+'|'-') { if ( input.LA(1)=='+'||input.LA(1)=='-' ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } } break; } mDIGITS(); } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 16109, 15624, 67, 15055, 1435, 1216, 9539, 288, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 16109, 15624, 67, 15055, 1435, 1216, 9539, 288, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, ...
ht.put(new Integer(nodeId),node); } setModel(new DefaultTreeModel(root)); }
ht.put(new Integer(nodeId),node); } setModel(new DefaultTreeModel(root)); }
private void readVersionOne(Reader r) throws IOException, FileNotFoundException, NumberFormatException { // This hash table has keys of Id's and a pointer as a value // it is used for parent lookup Hashtable ht = new Hashtable(); // Special Case Root Node // tree specific stuff int rootId = ReaderUtils.getInteger(r); // node stuff TreeNode root = makeNodeVersionOne(r); // add the new node to the hash table ht.put(new Integer(rootId),root); // Read in all the other nodes while(r.ready()) { // again read in the tree specific stuff int nodeId = ReaderUtils.getInteger(r); int parentId = ReaderUtils.getInteger(r); // get the parent OperatorNode parent = (OperatorNode)ht.get(new Integer(parentId)); // read in the node OperatorNode node = makeNodeVersionOne(r); String s = node.toString(); addChild(parent,node); // add that node to the hash table ht.put(new Integer(nodeId),node); } setModel(new DefaultTreeModel(root)); }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/a346ed7f83eb1c70b9abfdfce06d4248fd83a1ab/OperatorWindow.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/operatorwindow/OperatorWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 1444, 3335, 12, 2514, 436, 13, 1216, 1860, 16, 13707, 16, 12100, 288, 202, 202, 759, 1220, 1651, 1014, 711, 1311, 434, 3124, 1807, 471, 279, 4407, 487, 279, 460, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 1444, 3335, 12, 2514, 436, 13, 1216, 1860, 16, 13707, 16, 12100, 288, 202, 202, 759, 1220, 1651, 1014, 711, 1311, 434, 3124, 1807, 471, 279, 4407, 487, 279, 460, 20...
handCursor.dispose(); busyCursor.dispose();
if (getHandCursor() != null) getHandCursor().dispose(); if (getBusyCursor() != null) getBusyCursor().dispose();
protected Control createDialogArea(Composite parent) { handCursor = new Cursor(parent.getDisplay(), SWT.CURSOR_HAND); busyCursor = new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT); getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { handCursor.dispose(); busyCursor.dispose(); } }); Composite outer = (Composite) super.createDialogArea(parent); createTable(outer); createColumns(); createInfoArea(outer); GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL); gridData.grabExcessVerticalSpace = true; gridData.grabExcessHorizontalSpace = true; // suggest a height for the table gridData.heightHint = convertVerticalDLUsToPixels(TABLE_HEIGHT); table.setLayoutData(gridData); return outer; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/aad51dfaddc72e86744ea23938d289b2a66a7393/AboutFeaturesDialog.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 2349, 6688, 273, 394, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 1769, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 2349, 6688, 273, 394, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 1769, 202, 202, ...
public void insertUpdate(DocumentEvent e) { notifyChangeListeners(); } public void removeUpdate(DocumentEvent e) { notifyChangeListeners(); } public void changedUpdate(DocumentEvent e) { notifyChangeListeners(); }
public void insertUpdate(DocumentEvent e) { notifyChangeListeners(); } public void removeUpdate(DocumentEvent e) { notifyChangeListeners(); } public void changedUpdate(DocumentEvent e) { notifyChangeListeners(); }
public IntegerOptionComponent (IntegerOption opt, String text, Frame parent) { super(opt, text, parent); _jtf = new JTextField(); _jtf.setText(_option.format(DrJava.getConfig().getSetting(_option))); _jtf.getDocument().addDocumentListener(new DocumentListener() { public void insertUpdate(DocumentEvent e) { notifyChangeListeners(); } public void removeUpdate(DocumentEvent e) { notifyChangeListeners(); } public void changedUpdate(DocumentEvent e) { notifyChangeListeners(); } }); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ceab110c30960ba2658eb606c0fd95b01dad5a65/IntegerOptionComponent.java/buggy/drjava/src/edu/rice/cs/drjava/ui/config/IntegerOptionComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2144, 1895, 1841, 261, 4522, 1895, 2153, 16, 514, 977, 16, 8058, 982, 13, 288, 565, 2240, 12, 3838, 16, 977, 16, 982, 1769, 565, 389, 78, 6632, 273, 394, 804, 16157, 5621, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2144, 1895, 1841, 261, 4522, 1895, 2153, 16, 514, 977, 16, 8058, 982, 13, 288, 565, 2240, 12, 3838, 16, 977, 16, 982, 1769, 565, 389, 78, 6632, 273, 394, 804, 16157, 5621, 565, ...
cmbKeys.setEnabled(cbExternalize.getSelection()); if (cmbKeys.getItemCount() > 0) { sResult = buildString(); txtValue.setText(getDisplayValue()); txtCurrent.setText(getCurrentPropertyValue()); }
if ( cbExternalize.getSelection( ) ) { cmbKeys.setEnabled( true ); if ( cmbKeys.getItemCount( ) > 0 ) { sResult = buildString( ); txtValue.setText( getDisplayValue( ) ); txtCurrent.setText( getCurrentPropertyValue( ) ); } } else { cmbKeys.setEnabled( false ); txtValue.setText( sInputValue ); txtCurrent.setText( "" ); }
public void widgetSelected(SelectionEvent e) { if (e.getSource().equals(btnAccept)) { bWasCancelled = false; sResult = buildString(); shell.dispose(); } else if (e.getSource().equals(btnCancel)) { sResult = null; shell.dispose(); } else if (e.getSource().equals(cbExternalize)) { cmbKeys.setEnabled(cbExternalize.getSelection()); if (cmbKeys.getItemCount() > 0) { sResult = buildString(); txtValue.setText(getDisplayValue()); txtCurrent.setText(getCurrentPropertyValue()); } } else if (e.getSource().equals(cmbKeys)) { sResult = buildString(); txtValue.setText(getDisplayValue()); txtCurrent.setText(getCurrentPropertyValue()); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4c623ac46badc9750aa68e62b26507e67e86db95/ExternalizedTextEditorDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/ExternalizedTextEditorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 565, 288, 3639, 309, 261, 73, 18, 588, 1830, 7675, 14963, 12, 11898, 5933, 3719, 3639, 288, 5411, 324, 14992, 21890, 273, 629, 31, 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, 3604, 7416, 12, 6233, 1133, 425, 13, 565, 288, 3639, 309, 261, 73, 18, 588, 1830, 7675, 14963, 12, 11898, 5933, 3719, 3639, 288, 5411, 324, 14992, 21890, 273, 629, 31, 5411, ...
public Interpreter createInterpreter(URL documentURL);
public Interpreter createInterpreter(URL documentURL, boolean svg12);
public Interpreter createInterpreter(URL documentURL);
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/7fad5ebfe25fe8a759f890114dd5c3cc8a2c47f3/InterpreterFactory.java/buggy/sources/org/apache/batik/script/InterpreterFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5294, 11599, 752, 30010, 12, 1785, 1668, 1785, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5294, 11599, 752, 30010, 12, 1785, 1668, 1785, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
t2.setDaemon(true);
private void initializeFragmentCleaner() { Thread t2 = new Thread() { public void run() { Hashtable owners = new Hashtable(); long wait_time; try { wait_time = (Integer.parseInt(getProperty( "org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore.fragment_cache_refresh" ))*60) * 1000; } catch( Exception e ) { wait_time = 60 * (1000 * 60); // default to one hour } while( true ) { try { if ( ! initialized ) { synchronized( initializationLock ) { if ( ! initialized ) { initializationLock.wait(); } } } // sleep for specified period of time sleep( wait_time ); //get each layout owner if ( null != definitions ) { if ( null != owners && owners.size() == 0 ) { for( int i=0; i<definitions.length; i++ ) { String ownerId = definitions[i].ownerID; String layoutOwnerId = definitions[i].defaultLayoutOwnerID; int userId = definitions[i].userID; String name = definitions[i].name; if ( null != ownerId ) { IPerson p = new PersonImpl(); p.setID( userId ); p.setAttribute( "username", ownerId ); owners.put(p, definitions[i]); } } } // cycle through each layout owner and clear out their // respective layouts so users fragments will be cleared for ( Enumeration e = owners.keys(); e.hasMoreElements(); ) { IPerson p = (IPerson) e.nextElement(); UserProfile profile = getUserProfileById(p, 1); // fix hard coded 1 later for profiling profile.setProfileId(1); Document layout = getFragmentLayout(p,profile); FragmentDefinition fragment = (FragmentDefinition) owners.get(p); updateCachedLayout( layout, profile, fragment ); } } } catch( Exception e ) { log.error(" *** Error - DLM Fragment cleaner problem: \n\n", e ); } } } }; t2.start(); }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/236232fdde17af307db93425dd5d2e3b5c550bb9/RDBMDistributedLayoutStore.java/clean/source/org/jasig/portal/layout/dlm/RDBMDistributedLayoutStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 268, 22, 18, 542, 12858, 12, 3767, 1769, 268, 22, 18, 542, 12858, 12, 3767, 1769, 268, 22, 18, 542, 12858, 12, 3767, 1769, 268, 22, 18, 542, 12858, 12, 3767, 1769, 6015, 270, 278, 22, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 268, 22, 18, 542, 12858, 12, 3767, 1769, 268, 22, 18, 542, 12858, 12, 3767, 1769, 268, 22, 18, 542, 12858, 12, 3767, 1769, 268, 22, 18, 542, 12858, 12, 3767, 1769, 6015, 270, 278, 22, 18, ...
public void add(IBugzillaBug entry) { list.add(entry); writeFile();
public boolean add(IBugzillaBug entry, boolean saveChosen) { try{ BugzillaOfflineStaus status = BugzillaOfflineStaus.SAVED; int index = -1; if ((index = find(entry.getId())) >= 0) { IBugzillaBug oldBug = list.get(index); if(oldBug instanceof BugReport && entry instanceof BugReport && !saveChosen){ CompareConfiguration config = new CompareConfiguration(); config.setLeftEditable(false); config.setRightEditable(false); config.setLeftLabel("Local Bug Report"); config.setRightLabel("Remote Bug Report"); config.setLeftImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT)); config.setRightImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_ELEMENT)); final BugzillaCompareInput in = new BugzillaCompareInput(config); in.setLeft((BugReport)oldBug); in.setRight((BugReport)entry); in.setTitle("Bug #" + oldBug.getId()); PlatformUI.getWorkbench().getProgressService().run(true, true, in); if(in.getCompareResult() == null){ return true; } else if(oldBug.hasChanges()){ if(!MessageDialog.openQuestion(null, "Update Local Copy", "Local copy of Bug# " + entry.getId() + " Has Changes.\nYour added comment will be saved, but all other changes will be lost .\nDo you want to continue?")){ return false; } ((BugReport)entry).setNewComment(((BugReport)oldBug).getNewComment()); ((BugReport)entry).setHasChanged(true); status = BugzillaOfflineStaus.CONFLICT; } else { DiffNode node = (DiffNode)in.getCompareResult(); IDiffElement[] children = node.getChildren(); if(children.length != 0){ for (IDiffElement element : children) { if(((DiffNode)element).getKind() == Differencer.CHANGE){ status = BugzillaOfflineStaus.SAVED_WITH_INCOMMING_CHANGES; break; } } } else { return true; } } } list.remove(index); } if(entry.hasChanges() && status != BugzillaOfflineStaus.CONFLICT){ status = BugzillaOfflineStaus.SAVED_WITH_OUTGOING_CHANGES; } list.add(entry); writeFile(); BugzillaPlugin.getDefault().fireOfflineStatusChanged(entry, status); return true; } catch (InterruptedException x) { } catch (InvocationTargetException x) { BugzillaPlugin.log(x); MessageDialog.openError(null, "Compare Failed", x.getTargetException().getMessage()); } return false;
public void add(IBugzillaBug entry) { // add the entry to the list and write the file to disk list.add(entry); writeFile(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/061af9510c0ba2869c85bcd4b75126b7b04e7249/OfflineReportsFile.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/offline/OfflineReportsFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 13450, 637, 15990, 19865, 1241, 13, 288, 202, 202, 759, 527, 326, 1241, 358, 326, 666, 471, 1045, 326, 585, 358, 4234, 202, 202, 1098, 18, 1289, 12, 4099, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 13450, 637, 15990, 19865, 1241, 13, 288, 202, 202, 759, 527, 326, 1241, 358, 326, 666, 471, 1045, 326, 585, 358, 4234, 202, 202, 1098, 18, 1289, 12, 4099, 1769, ...
Window oldWindow = cPart.getWindow(); if (oldWindow instanceof WorkbenchWindow) {
boolean wasDocked = cPart.isDocked(); Shell oldShell = cPart.getShell(); if (wasDocked) {
public void removePart(LayoutPart part) { // Reparent the part back to the main window Composite parent = mainLayout.getParent(); part.reparent(parent); // Replace part with a placeholder ILayoutContainer container = part.getContainer(); if (container != null) { String placeHolderId = part.getPlaceHolderId(); container.replace(part, new PartPlaceholder(placeHolderId)); // If the parent is root we're done. Do not try to replace // it with placeholder. if (container == mainLayout) return; // If the parent is empty replace it with a placeholder. LayoutPart[] children = container.getChildren(); if (children != null) { boolean allInvisible = true; for (int i = 0, length = children.length; i < length; i++) { if (!(children[i] instanceof PartPlaceholder)) { allInvisible = false; break; } } if (allInvisible && (container instanceof LayoutPart)) { // what type of window are we in? LayoutPart cPart = (LayoutPart) container; Window oldWindow = cPart.getWindow(); if (oldWindow instanceof WorkbenchWindow) { // PR 1GDFVBY: ViewStack not disposed when page // closed. if (container instanceof ViewStack) ((ViewStack) container).dispose(); // replace the real container with a // ContainerPlaceholder ILayoutContainer parentContainer = cPart.getContainer(); ContainerPlaceholder placeholder = new ContainerPlaceholder( cPart.getID()); placeholder.setRealContainer(container); parentContainer.replace(cPart, placeholder); } else if (oldWindow instanceof DetachedWindow) { DetachedPlaceHolder placeholder = new DetachedPlaceHolder( "", oldWindow.getShell().getBounds()); //$NON-NLS-1$ for (int i = 0, length = children.length; i < length; i++) { children[i].getContainer().remove(children[i]); children[i].setContainer(placeholder); placeholder.add(children[i]); } detachedPlaceHolderList.add(placeholder); oldWindow.close(); detachedWindowList.remove(oldWindow); } } } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e7b65bd7eaa667e716c4b78400bfcf61d65827b6/PerspectiveHelper.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1988, 12, 3744, 1988, 1087, 13, 288, 3639, 368, 868, 2938, 326, 1087, 1473, 358, 326, 2774, 2742, 3639, 14728, 982, 273, 2774, 3744, 18, 588, 3054, 5621, 3639, 1087, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 1988, 12, 3744, 1988, 1087, 13, 288, 3639, 368, 868, 2938, 326, 1087, 1473, 358, 326, 2774, 2742, 3639, 14728, 982, 273, 2774, 3744, 18, 588, 3054, 5621, 3639, 1087, 18, ...
addFileProperties(fileName, baseConf);
Configuration conf = addFileProperties(fileName, baseConf); if ((conf != null) && (!conf.isEmpty())) { baseConfigurationLoaded = true; }
public void addBaseFileName(String fileName) { addFileProperties(fileName, baseConf); }
7810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7810/298c635e262bad8e9c57ec788f42bd24eaeee7ba/BaseAndGlobalProperties.java/clean/easyconf/src/java/com/germinus/easyconf/BaseAndGlobalProperties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2171, 4771, 12, 780, 3968, 13, 288, 3639, 4659, 2195, 273, 18671, 2297, 12, 17812, 16, 1026, 3976, 1769, 309, 14015, 3923, 480, 446, 13, 597, 16051, 3923, 18, 291, 1921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2171, 4771, 12, 780, 3968, 13, 288, 3639, 4659, 2195, 273, 18671, 2297, 12, 17812, 16, 1026, 3976, 1769, 309, 14015, 3923, 480, 446, 13, 597, 16051, 3923, 18, 291, 1921, ...
String bugId = endComment.trim();
String bugId = m.group(3).trim();
private static IHyperlink extractHyperlink(String repositoryUrl, int lineOffset, Matcher m) { int start = m.start(); int end = m.end(); String bugText = m.group(); int ahead = 3; if (bugText.contains(BUG_HASH)) { int pound = bugText.indexOf(BUG_HASH); ahead = pound + 1; } String endComment = bugText.substring(ahead, bugText.length()); endComment = endComment.trim(); if (end == -1) end = bugText.length(); try { String bugId = endComment.trim(); start += lineOffset; end += lineOffset; IRegion sregion = new Region(start, end - start); return new BugzillaHyperLink(sregion, bugId, repositoryUrl); } catch (NumberFormatException e) { return null; } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/0f767acaf0d793f623d777727f510ef53555432a/BugzillaHyperlinkUtil.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaHyperlinkUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 467, 15996, 1232, 2608, 15996, 1232, 12, 780, 3352, 1489, 16, 509, 980, 2335, 16, 9757, 312, 13, 288, 202, 202, 474, 787, 273, 312, 18, 1937, 5621, 202, 202, 474, 679, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 15996, 1232, 2608, 15996, 1232, 12, 780, 3352, 1489, 16, 509, 980, 2335, 16, 9757, 312, 13, 288, 202, 202, 474, 787, 273, 312, 18, 1937, 5621, 202, 202, 474, 679, ...
okButton.setMnemonic('O'); okButton.setText("OK"); okButton.setText(L10N.getLocalString("dlg.ok_btn","OK")); okButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okButtonActionPerformed(evt); } });
okButton.setMnemonic('O'); okButton.setText("OK"); okButton.setText(L10N.getLocalString("dlg.ok_btn", "OK")); okButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okButtonActionPerformed(evt); } });
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; detectorTableScrollPane = new javax.swing.JScrollPane(); detectorTable = new javax.swing.JTable(); detectorDescriptionScrollPane = new javax.swing.JScrollPane(); detectorDescription = new javax.swing.JEditorPane(); jSeparator1 = new javax.swing.JSeparator(); okButton = new javax.swing.JButton(); cancelButton = new javax.swing.JButton(); spacer = new javax.swing.JLabel(); restoreDefaultsButton = new javax.swing.JButton(); getContentPane().setLayout(new java.awt.GridBagLayout()); setTitle("Configure Detectors"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); detectorTableScrollPane.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); detectorTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Bug Detector", "Speed", "Enabled" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.Boolean.class }; boolean[] canEdit = new boolean [] { false, false, true }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); populateTable(); detectorTable.getColumnModel().getColumn(ENABLED_COLUMN).setMaxWidth(60); detectorTable.getColumnModel().getColumn(SPEED_COLUMN).setMaxWidth(60); detectorTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); { DefaultTableModel m = (DefaultTableModel)detectorTable.getModel(); m.setColumnIdentifiers( new String[] { L10N.getLocalString("dlg.bugdetector_lbl", "Bug Detector"), L10N.getLocalString("dlg.speed_lbl", "Speed"), L10N.getLocalString("dlg.enabled_lbl", "Enabled"), }); } detectorTableScrollPane.setViewportView(detectorTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.8; gridBagConstraints.insets = new java.awt.Insets(6, 6, 2, 6); getContentPane().add(detectorTableScrollPane, gridBagConstraints); detectorDescriptionScrollPane.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); detectorDescriptionScrollPane.setPreferredSize(new java.awt.Dimension(110, 120)); detectorDescriptionScrollPane.setViewportView(detectorDescription); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 6); getContentPane().add(detectorDescriptionScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); getContentPane().add(jSeparator1, gridBagConstraints); okButton.setMnemonic('O'); okButton.setText("OK"); okButton.setText(L10N.getLocalString("dlg.ok_btn","OK")); okButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 0, 4, 2); getContentPane().add(okButton, gridBagConstraints); cancelButton.setMnemonic('C'); cancelButton.setText("Cancel"); cancelButton.setText(L10N.getLocalString("dlg.cancel_btn", "Cancel")); cancelButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 2, 4, 6); getContentPane().add(cancelButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(spacer, gridBagConstraints); restoreDefaultsButton.setText("Restore Defaults"); restoreDefaultsButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); restoreDefaultsButton.setText(L10N.getLocalString("dlg.restoredefaults_btn", "Restore Defaults")); restoreDefaultsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { restoreDefaultsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 0); getContentPane().add(restoreDefaultsButton, gridBagConstraints); pack(); }//GEN-END:initComponents
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/ConfigureDetectorsDialog.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/ConfigureDetectorsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 13826, 1388, 26360, 273, 394, 6863, 18, 5328, 310, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 13826, 1388, 26360, 273, 394, 6863, 18, 5328, 310, 18, ...
public byte getSpec2() {
public int getSpec2() {
public byte getSpec2() { return spec2; }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/e28ea8820dd3a8467cd09d01cc99ba3fe14dbf3a/Bid.java/buggy/java/src/ggz/cards/common/Bid.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 20189, 22, 1435, 288, 3639, 327, 857, 22, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 20189, 22, 1435, 288, 3639, 327, 857, 22, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return getRuntime().getNil();
return changesMade ? this : getRuntime().getNil();
public IRubyObject swapcase_bang() { char[] chars = getValue().toCharArray(); StringBuffer sb = new StringBuffer(chars.length); boolean changesMade = false; for (int i = 0; i < chars.length; i++) { if (!Character.isLetter(chars[i])) { sb.append(chars[i]); } else if (Character.isLowerCase(chars[i])) { changesMade = true; sb.append(Character.toUpperCase(chars[i])); } else { changesMade = true; sb.append(Character.toLowerCase(chars[i])); } } if (changesMade) { setValue(sb.toString()); return this; } return getRuntime().getNil(); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 7720, 3593, 67, 70, 539, 1435, 288, 202, 202, 3001, 8526, 5230, 273, 2366, 7675, 869, 15936, 5621, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 7549, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 7720, 3593, 67, 70, 539, 1435, 288, 202, 202, 3001, 8526, 5230, 273, 2366, 7675, 869, 15936, 5621, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 7549, 18, ...
Locale locale = ( Locale ) options.getOption( InputOptions.OPT_LOCALE );
Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );
public void extractResultSet( String docName, String resultSetId, Collection columns, Set filters, InputOptions options, OutputStream out ) throws ReportServiceException { IReportDocument doc = ReportEngineService.getInstance( ) .openReportDocument( getReportDesignName( options ), docName ); Locale locale = ( Locale ) options.getOption( InputOptions.OPT_LOCALE ); // TODO: Filters are not used... try { ReportEngineService.getInstance( ).extractData( doc, resultSetId, columns, locale, out ); doc.close( ); } catch ( RemoteException e ) { throw new ReportServiceException( e.getLocalizedMessage( ) ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1ff9aa843f70ddf72ba7891c54d9d7216c9063f5/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2608, 13198, 12, 514, 997, 461, 16, 514, 12168, 548, 16, 1082, 202, 2532, 2168, 16, 1000, 3415, 16, 2741, 1320, 702, 16, 1082, 202, 4632, 596, 262, 1216, 8706, 15133, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2608, 13198, 12, 514, 997, 461, 16, 514, 12168, 548, 16, 1082, 202, 2532, 2168, 16, 1000, 3415, 16, 2741, 1320, 702, 16, 1082, 202, 4632, 596, 262, 1216, 8706, 15133, 202...
session.getBreakpointManager().update();
session.getBreakpointManager().update(currentTarget);
public void update(Observable o, Object arg) { MIEvent miEvent = (MIEvent)arg; Session session = (Session)getSession(); List cdiList = new ArrayList(1); if (ignoreEventToken(miEvent.getToken())) { // Ignore the event if it is on the ignore list. } else if (miEvent instanceof MIStoppedEvent) { if (processSuspendedEvent((MIStoppedEvent)miEvent)) { cdiList.add(new SuspendedEvent(session, miEvent)); } } else if (miEvent instanceof MIRunningEvent) { if (processRunningEvent((MIRunningEvent)miEvent)) cdiList.add(new ResumedEvent(session, (MIRunningEvent)miEvent)); } else if (miEvent instanceof MIChangedEvent) { if (miEvent instanceof MIVarChangedEvent) { cdiList.add(new ChangedEvent(session, (MIVarChangedEvent)miEvent)); } else if (miEvent instanceof MIRegisterChangedEvent) { cdiList.add(new ChangedEvent(session, (MIRegisterChangedEvent)miEvent)); } else if (miEvent instanceof MIMemoryChangedEvent) { // We need to fire an event for all the register blocks // that may contain the modified addresses. MemoryManager mgr = (MemoryManager)session.getMemoryManager(); MemoryBlock[] blocks = mgr.getMemoryBlocks(miEvent.getMISession()); MIMemoryChangedEvent miMem = (MIMemoryChangedEvent)miEvent; Long[] addresses = miMem.getAddresses(); for (int i = 0; i < blocks.length; i++) { if (blocks[i].contains(addresses) && (! blocks[i].isFrozen() || blocks[i].isDirty())) { cdiList.add(new MemoryChangedEvent(session, blocks[i], miMem)); blocks[i].setDirty(false); } } } else if (miEvent instanceof MIBreakpointChangedEvent) { MIBreakpointChangedEvent bpoint = (MIBreakpointChangedEvent)miEvent; if (bpoint.getNumber() > 0) { cdiList.add(new ChangedEvent(session, bpoint)); } else { // Something change we do not know what // Let the breakpoint manager handle it with an update(). try { session.getBreakpointManager().update(); } catch (CDIException e) { } } } else if (miEvent instanceof MISharedLibChangedEvent) { cdiList.add(new ChangedEvent(session, (MISharedLibChangedEvent)miEvent)); } else if (miEvent instanceof MISignalChangedEvent) { MISignalChangedEvent sig = (MISignalChangedEvent)miEvent; String name = sig.getName(); if (name == null || name.length() == 0) { // Something change we do not know what // Let the signal manager handle it with an update(). try { session.getSignalManager().update(); } catch (CDIException e) { } } else { cdiList.add(new ChangedEvent(session, sig)); } } } else if (miEvent instanceof MIDestroyedEvent) { if (miEvent instanceof MIThreadExitEvent) { cdiList.add(new DestroyedEvent(session,(MIThreadExitEvent)miEvent)); } else if (miEvent instanceof MIInferiorSignalExitEvent) { cdiList.add(new ExitedEvent(session, (MIInferiorSignalExitEvent)miEvent)); } else if (miEvent instanceof MIInferiorExitEvent) { cdiList.add(new ExitedEvent(session, (MIInferiorExitEvent)miEvent)); } else if (miEvent instanceof MIGDBExitEvent) { cdiList.add(new DestroyedEvent(session)); } else if (miEvent instanceof MIDetachedEvent) { cdiList.add(new DisconnectedEvent(session)); } else if (miEvent instanceof MIBreakpointDeletedEvent) { MIBreakpointDeletedEvent bpoint = (MIBreakpointDeletedEvent)miEvent; if (bpoint.getNumber() > 0) { cdiList.add(new DestroyedEvent(session, bpoint)); } else { // Something was deleted we do not know what // Let the breakpoint manager handle it with an update(). try { session.getBreakpointManager().update(); } catch (CDIException e) { } } } else if (miEvent instanceof MISharedLibUnloadedEvent) { cdiList.add(new DestroyedEvent(session, (MISharedLibUnloadedEvent)miEvent)); } else if (miEvent instanceof MIVarDeletedEvent) { cdiList.add(new DestroyedEvent(session, (MIVarDeletedEvent)miEvent)); } } else if (miEvent instanceof MICreatedEvent) { if (miEvent instanceof MIBreakpointCreatedEvent) { MIBreakpointCreatedEvent bpoint = (MIBreakpointCreatedEvent)miEvent; if (bpoint.getNumber() > 0) { cdiList.add(new CreatedEvent(session, bpoint)); } else { // Something created we do not know what // Let the breakpoint manager handle it with an update(). try { session.getBreakpointManager().update(); } catch (CDIException e) { } } } else if (miEvent instanceof MIVarCreatedEvent) { cdiList.add(new CreatedEvent(session, (MIVarCreatedEvent)miEvent)); } else if (miEvent instanceof MIRegisterCreatedEvent) { cdiList.add(new CreatedEvent(session, (MIRegisterCreatedEvent)miEvent)); } else if (miEvent instanceof MIThreadCreatedEvent) { cdiList.add(new CreatedEvent(session, (MIThreadCreatedEvent)miEvent)); } else if (miEvent instanceof MIMemoryCreatedEvent) { cdiList.add(new CreatedEvent(session, (MIMemoryCreatedEvent)miEvent)); } else if (miEvent instanceof MISharedLibCreatedEvent) { cdiList.add(new CreatedEvent(session, (MISharedLibCreatedEvent)miEvent)); } } // Fire the event; ICDIEvent[] cdiEvents = (ICDIEvent[])cdiList.toArray(new ICDIEvent[0]); fireEvents(cdiEvents); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/cbf2f0c899b632244f6abb3b3ecd9a4169172a29/EventManager.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 12, 15279, 320, 16, 1033, 1501, 13, 288, 202, 202, 7492, 1133, 12837, 1133, 273, 261, 7492, 1133, 13, 3175, 31, 202, 202, 2157, 1339, 273, 261, 2157, 13, 588, 2157,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 12, 15279, 320, 16, 1033, 1501, 13, 288, 202, 202, 7492, 1133, 12837, 1133, 273, 261, 7492, 1133, 13, 3175, 31, 202, 202, 2157, 1339, 273, 261, 2157, 13, 588, 2157,...
itsData.itsCX = cx; itsData.itsScope = scope; itsData.itsThisObj = thisObj; itsData.itsInArgs = args; return Interpreter.interpret(itsData);
return Interpreter.interpret(cx, scope, thisObj, args, itsData);
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { scope = ScriptRuntime.initScript(cx, scope, this, thisObj, itsData.itsFromEvalCode); itsData.itsCX = cx; itsData.itsScope = scope; itsData.itsThisObj = thisObj; itsData.itsInArgs = args; return Interpreter.interpret(itsData); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/bdb5337527f41ea5ba4c1088fb9faa43224c3ad0/InterpretedScript.java/clean/org/mozilla/javascript/InterpretedScript.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 13491, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 2146, 273, 7739, 5576, 18, 2738, 3651, 12, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 13491, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 2146, 273, 7739, 5576, 18, 2738, 3651, 12, 71, ...
String functionName = template.getShortName().replace('.', '_');
String functionName = template.getBaseName().replace('.', '_');
public static String convertHsp(Resource template) throws IOException { String functionName = template.getShortName().replace('.', '_'); String body = processHspBody(template.getContent()); return composeFunction(functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", body); }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/73e377dde1801700541d910d78bcbe3b47f98693/HacHspConverter.java/clean/src/helma/scripting/rhino/HacHspConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1765, 44, 1752, 12, 1420, 1542, 13, 1216, 1860, 288, 3639, 514, 14117, 273, 1542, 18, 588, 29907, 7675, 2079, 2668, 1093, 16, 4427, 1769, 3639, 514, 1417, 273, 1207, 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, 377, 1071, 760, 514, 1765, 44, 1752, 12, 1420, 1542, 13, 1216, 1860, 288, 3639, 514, 14117, 273, 1542, 18, 588, 29907, 7675, 2079, 2668, 1093, 16, 4427, 1769, 3639, 514, 1417, 273, 1207, 44, ...
public void addCompletion(ContextGetter chooser){ addCompletion(chooser, DEFAULT_TAIL_TYPE);
public void addCompletion(String keyword){ addCompletion(keyword, DEFAULT_TAIL_TYPE);
public void addCompletion(ContextGetter chooser){ addCompletion(chooser, DEFAULT_TAIL_TYPE); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/1c79d54cacdbc503701cc0ce3a02e29c6f4ee3e9/CompletionVariant.java/buggy/codeInsight/impl/com/intellij/codeInsight/completion/CompletionVariant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 11238, 12, 1042, 8461, 5011, 13164, 15329, 565, 527, 11238, 12, 2599, 13164, 16, 3331, 67, 56, 6575, 67, 2399, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 11238, 12, 1042, 8461, 5011, 13164, 15329, 565, 527, 11238, 12, 2599, 13164, 16, 3331, 67, 56, 6575, 67, 2399, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100,...
id.put(((Texture) texture.get(unit)).getTextureId());
id.put(texture.get(unit).getTextureId());
public void delete(int unit) { if (unit < 0 || unit >= texture.size() || texture.get(unit) == null) return; id.clear(); id.put(((Texture) texture.get(unit)).getTextureId()); id.rewind(); ((Texture) texture.get(unit)).setTextureId(0); idCache[unit] = 0; GL11.glDeleteTextures(id); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/202ed4e817057ebf4f96d3e558d4978384c13760/LWJGLTextureState.java/clean/src/com/jme/scene/state/lwjgl/LWJGLTextureState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 12, 474, 2836, 13, 288, 3639, 309, 261, 4873, 411, 374, 747, 2836, 1545, 11428, 18, 1467, 1435, 747, 11428, 18, 588, 12, 4873, 13, 422, 446, 13, 5411, 327, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1430, 12, 474, 2836, 13, 288, 3639, 309, 261, 4873, 411, 374, 747, 2836, 1545, 11428, 18, 1467, 1435, 747, 11428, 18, 588, 12, 4873, 13, 422, 446, 13, 5411, 327, 31, 3639, ...
assertTrue("Vector creation failed", v.size() == 0); assertTrue("Wrong capacity", v.capacity() == 100);
assertEquals("Vector creation failed", 0, v.size()); assertEquals("Wrong capacity", 100, v.capacity());
public void test_ConstructorI() { // Test for method java.util.Vector(int) Vector v = new Vector(100); assertTrue("Vector creation failed", v.size() == 0); assertTrue("Wrong capacity", v.capacity() == 100); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/VectorTest.java/buggy/modules/luni/src/test/java/tests/api/java/util/VectorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 45, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 1367, 18, 5018, 12, 474, 13, 202, 202, 5018, 331, 273, 394, 5589, 12, 6625, 1769, 202, 202, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 45, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 1367, 18, 5018, 12, 474, 13, 202, 202, 5018, 331, 273, 394, 5589, 12, 6625, 1769, 202, 202, 1123...
textarea.paste();
textarea.cut();
public void actionPerformed(ActionEvent e) { textarea.paste(); }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/d52e035a95696affaffa43446f4d16d1fd885109/PdeEditor.java/buggy/app/PdeEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 5411, 19691, 18, 5150, 5621, 1850, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 6647, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 5411, 19691, 18, 5150, 5621, 1850, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); return; } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } System.err.println("WTF? Restart returned!?"); }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3443, 1891, 1435, 95, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1891, 1435, 2566, 8863, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12443, 2088, 422, 446, 13, 747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3443, 1891, 1435, 95, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1891, 1435, 2566, 8863, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12443, 2088, 422, 446, 13, 747...
"org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ARETURN); } else if (retType.equals(Scriptable.class)) { cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toObject",
"org/mozilla/javascript/JavaAdapter", "convertResult",
private static void generateReturnResult(ClassFileWriter cfw, Class retType) { // wrap boolean values with java.lang.Boolean, convert all other // primitive values to java.lang.Double. if (retType.equals(Boolean.TYPE)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toBoolean", "(Ljava/lang/Object;)", "Z"); cfw.add(ByteCode.IRETURN); } else if (retType.equals(Character.TYPE)) { // characters are represented as strings in JavaScript. // return the first character. // first convert the value to a string if possible. cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ICONST_0); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/String", "charAt", "(I)", "C"); cfw.add(ByteCode.IRETURN); } else if (retType.isPrimitive()) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toNumber", "(Ljava/lang/Object;)", "D"); String typeName = retType.getName(); switch (typeName.charAt(0)) { case 'b': case 's': case 'i': cfw.add(ByteCode.D2I); cfw.add(ByteCode.IRETURN); break; case 'l': cfw.add(ByteCode.D2L); cfw.add(ByteCode.LRETURN); break; case 'f': cfw.add(ByteCode.D2F); cfw.add(ByteCode.FRETURN); break; case 'd': cfw.add(ByteCode.DRETURN); break; default: throw new RuntimeException("Unexpected return type " + retType.toString()); } } else if (retType.equals(String.class)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ARETURN); } else if (retType.equals(Scriptable.class)) { cfw.add(ByteCode.ALOAD_0); // load 'this' to find scope from cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toObject", "(Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ARETURN); } else { // If it is a wrapped type, cast to Wrapper and call unwrap() cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper"); // skip 3 for IFEQ, 3 for CHECKCAST, and 5 for INVOKEINTERFACE cfw.add(ByteCode.IFEQ, 11); cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper"); cfw.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Wrapper", "unwrap", "()", "Ljava/lang/Object;"); // If Undefined, return null cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Undefined"); // skip 3 for IFEQ, 1 for ACONST_NULL, 1 for ARETURN cfw.add(ByteCode.IFEQ, 5); cfw.add(ByteCode.ACONST_NULL); cfw.add(ByteCode.ARETURN); // Now cast to return type String retTypeStr = retType.getName().replace('.', '/'); cfw.add(ByteCode.CHECKCAST, retTypeStr); cfw.add(ByteCode.ARETURN); } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/7283a9ddd8e13f70de01e5a8317983d850c1b269/JavaAdapter.java/buggy/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 990, 1253, 12, 797, 812, 2289, 6080, 91, 16, 4766, 2868, 1659, 325, 559, 13, 377, 288, 3639, 368, 2193, 1250, 924, 598, 2252, 18, 4936, 18, 5507, 16, 1765, 777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 990, 1253, 12, 797, 812, 2289, 6080, 91, 16, 4766, 2868, 1659, 325, 559, 13, 377, 288, 3639, 368, 2193, 1250, 924, 598, 2252, 18, 4936, 18, 5507, 16, 1765, 777, ...
IDropTarget dropTarget = target.drag(toSearch, draggedObject, position, dragRectangle); if (dropTarget != null) { return dropTarget; }
if (current instanceof Shell) { break; }
public static IDropTarget getDropTarget(Control toSearch, Object draggedObject, Point position, Rectangle dragRectangle) { for (Control current = toSearch; current != null; current = current.getParent()) { IDragOverListener target = (IDragOverListener)current.getData(DROP_TARGET_ID); if (target == null) { continue; } IDropTarget dropTarget = target.drag(toSearch, draggedObject, position, dragRectangle); if (dropTarget != null) { return dropTarget; } } // No controls could handle this event -- check for default targets Iterator iter = defaultTargets.iterator(); while (iter.hasNext()) { IDragOverListener next = (IDragOverListener)iter.next(); IDropTarget dropTarget = next.drag(toSearch, draggedObject, position, dragRectangle); if (dropTarget != null) { return dropTarget; } } // No default targets found either. return null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5c9ca443531ee1bb1d4f6c11b8dadb08daa3f30e/DragUtil.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dnd/DragUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1599, 1764, 2326, 31900, 2326, 12, 3367, 358, 2979, 16, 1033, 8823, 2423, 921, 16, 4686, 1754, 16, 13264, 8823, 19463, 13, 288, 9506, 202, 1884, 261, 3367, 783, 273, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1599, 1764, 2326, 31900, 2326, 12, 3367, 358, 2979, 16, 1033, 8823, 2423, 921, 16, 4686, 1754, 16, 13264, 8823, 19463, 13, 288, 9506, 202, 1884, 261, 3367, 783, 273, 358, ...
for (int i = 0; i < mFiles.length; i++) {
final int len = mFiles.length; for (int i = 0; i < len; i++) {
private void findDuplicates() { if (LOG.isDebugEnabled()) { LOG.debug("Analysis phase"); } // It's been a while since my CS degree, but I think this is // somewhere near O(LOC^2). // It may be possible to do this *much* smarter, // but I don't have the Knuth bible at hand right now :-) for (int i = 0; i < mFiles.length; i++) { final String path = mFiles[i].getPath(); getMessageCollector().reset(); final MessageDispatcher dispatcher = getMessageDispatcher(); dispatcher.fireFileStarted(path); for (int j = 0; j <= i; j++) { findDuplicatesInFiles(i, j); } fireErrors(path); dispatcher.fireFileFinished(path); } }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/9aa72722de7b5a4ffb5d50945c7bce8b58f25e8e/StrictDuplicateCodeCheck.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/duplicates/StrictDuplicateCodeCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1104, 23897, 1435, 565, 288, 3639, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 5411, 2018, 18, 4148, 2932, 9418, 6855, 8863, 3639, 289, 3639, 368, 2597, 1807, 2118, 279, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1104, 23897, 1435, 565, 288, 3639, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 5411, 2018, 18, 4148, 2932, 9418, 6855, 8863, 3639, 289, 3639, 368, 2597, 1807, 2118, 279, 1...
};
}
public void handleException(Throwable e) { // IMPORTANT: Do not call the super implementation, since // it opens a modal dialog, and may cause *syncExecs to run // too early. };
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/801f6710a3dc70db8f284839e7283ebdac6a9c73/SWTUtil.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/SWTUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 20879, 12, 15155, 425, 13, 288, 9506, 202, 759, 21840, 6856, 30, 2256, 486, 745, 326, 2240, 4471, 16, 3241, 9506, 202, 759, 518, 10400, 279, 13010, 6176, 16, 471, 2026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 20879, 12, 15155, 425, 13, 288, 9506, 202, 759, 21840, 6856, 30, 2256, 486, 745, 326, 2240, 4471, 16, 3241, 9506, 202, 759, 518, 10400, 279, 13010, 6176, 16, 471, 2026, ...
for ( int i = 0; i < cmd.length; i++ ) {
for (int i = 0; i < cmd.length; i++) {
public Process exec(Project project, String[] cmd, String[] env) throws IOException { // Need to quote arguments with spaces, and to escape quote characters String[] newcmd = new String[cmd.length]; for ( int i = 0; i < cmd.length; i++ ) { newcmd[i] = Commandline.quoteArgument(cmd[i]); } if (project != null) { project.log("Execute:Java11CommandLauncher: " + Commandline.toString(newcmd), Project.MSG_DEBUG); } return Runtime.getRuntime().exec(newcmd, env); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/c6c232893c39257745a8f7a618bcdb5c59791cae/Execute.java/buggy/src/main/org/apache/tools/ant/taskdefs/Execute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 4389, 1196, 12, 4109, 1984, 16, 514, 8526, 1797, 16, 514, 8526, 1550, 13, 1216, 1860, 3639, 288, 5411, 368, 12324, 358, 3862, 1775, 598, 7292, 16, 471, 358, 4114, 3862, 3949, 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, 540, 1071, 4389, 1196, 12, 4109, 1984, 16, 514, 8526, 1797, 16, 514, 8526, 1550, 13, 1216, 1860, 3639, 288, 5411, 368, 12324, 358, 3862, 1775, 598, 7292, 16, 471, 358, 4114, 3862, 3949, 5411, ...
myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated", displayPath));
text2 = SvnBundle.message("progres.text2.updated", displayPath);
public void handleEvent(SVNEvent event, double progress) { if (event == null || event.getFile() == null) { return; } String path = event.getFile().getAbsolutePath(); String displayPath = event.getFile().getName(); if (event.getAction() == SVNEventAction.UPDATE_ADD || event.getAction() == SVNEventAction.ADD) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.added", displayPath)); myUpdatedFiles.getGroupById(FileGroup.CREATED_ID).add(path); } else if (event.getAction() == SVNEventAction.UPDATE_DELETE) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.deleted", displayPath)); myUpdatedFiles.getGroupById(FileGroup.REMOVED_FROM_REPOSITORY_ID).add(path); } else if (event.getAction() == SVNEventAction.UPDATE_UPDATE) { if (event.getContentsStatus() == SVNStatusType.CONFLICTED || event.getPropertiesStatus() == SVNStatusType.CONFLICTED) { myUpdatedFiles.getGroupById(FileGroup.MERGED_WITH_CONFLICT_ID).add(path); myProgressIndicator.setText2(SvnBundle.message("progress.text2.conflicted", displayPath)); } else if (event.getContentsStatus() == SVNStatusType.MERGED || event.getPropertiesStatus() == SVNStatusType.MERGED) { myProgressIndicator.setText2(SvnBundle.message("progres.text2.merged", displayPath)); myUpdatedFiles.getGroupById(FileGroup.MERGED_ID).add(path); } else if (event.getContentsStatus() == SVNStatusType.CHANGED || event.getPropertiesStatus() == SVNStatusType.CHANGED) { myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated", displayPath)); myUpdatedFiles.getGroupById(FileGroup.UPDATED_ID).add(path); } else if (event.getContentsStatus() == SVNStatusType.UNCHANGED && event.getPropertiesStatus() == SVNStatusType.UNCHANGED) { myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated", displayPath)); } else { myProgressIndicator.setText2(""); myUpdatedFiles.getGroupById(FileGroup.UNKNOWN_ID).add(path); } } else if (event.getAction() == SVNEventAction.UPDATE_EXTERNAL) { myExternalsCount++; if (myUpdatedFiles.getGroupById(SvnStatusEnvironment.EXTERNAL_ID) == null) { myUpdatedFiles.registerGroup(new FileGroup(SvnBundle.message("status.group.name.externals"), SvnBundle.message("status.group.name.externals"), false, SvnStatusEnvironment.EXTERNAL_ID, true)); } myUpdatedFiles.getGroupById(SvnStatusEnvironment.EXTERNAL_ID).add(path); myProgressIndicator.setText(SvnBundle.message("progress.text.updating.external.location", event.getFile().getAbsolutePath())); } else if (event.getAction() == SVNEventAction.RESTORE) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.restored.file", displayPath)); myUpdatedFiles.getGroupById(FileGroup.RESTORED_ID).add(path); } else if (event.getAction() == SVNEventAction.UPDATE_COMPLETED && event.getRevision() >= 0) { myExternalsCount--; myProgressIndicator.setText2(SvnBundle.message("progres.text2.updated.to.revision", event.getRevision())); if (myExternalsCount == 0) { myExternalsCount = 1; WindowManager.getInstance().getStatusBar(myVCS.getProject()).setInfo( SvnBundle.message("status.text.updated.to.revision", event.getRevision())); } } else if (event.getAction() == SVNEventAction.SKIP) { myProgressIndicator.setText2(SvnBundle.message("progress.text2.skipped.file", displayPath)); if (myUpdatedFiles.getGroupById(SKIP_ID) == null) { myUpdatedFiles.registerGroup(new FileGroup(SvnBundle.message("update.group.name.skipped"), SvnBundle.message("update.group.name.skipped"), false, SKIP_ID, true)); } myUpdatedFiles.getGroupById(SKIP_ID).add(path); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/6981bc6c2a3864cebebfbe92932457a0d4c63c4e/AbstractSvnUpdateIntegrateEnvironment.java/clean/plugins/svn4idea/src/org/jetbrains/idea/svn/update/AbstractSvnUpdateIntegrateEnvironment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 1133, 12, 23927, 50, 1133, 871, 16, 1645, 4007, 13, 288, 1377, 309, 261, 2575, 422, 446, 747, 871, 18, 29925, 1435, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 1133, 12, 23927, 50, 1133, 871, 16, 1645, 4007, 13, 288, 1377, 309, 261, 2575, 422, 446, 747, 871, 18, 29925, 1435, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, ...
final Type componentType,
final Class componentClass,
private void generateComponentProperties(final LwComponent lwComponent, final Type componentType, final GeneratorAdapter generator, final int componentLocal) throws CodeGenerationException { final Class componentClass = getComponentClass(lwComponent.getComponentClassName(), myLoader); // introspected properties final LwIntrospectedProperty[] introspectedProperties = lwComponent.getAssignedIntrospectedProperties(); for (int i = 0; i < introspectedProperties.length; i++) { final LwIntrospectedProperty property = introspectedProperties[i]; if (property instanceof LwIntroComponentProperty) { continue; } final String propertyClass = property.getPropertyClassName(); final PropertyCodeGenerator propGen = (PropertyCodeGenerator) myPropertyCodeGenerators.get(propertyClass); if (propGen != null && propGen.generateCustomSetValue(lwComponent, componentClass, property, generator, componentLocal)) { continue; } generator.loadLocal(componentLocal); Object value = lwComponent.getPropertyValue(property); Type setterArgType; if (propertyClass.equals(Integer.class.getName())) { generator.push(((Integer) value).intValue()); setterArgType = Type.INT_TYPE; } else if (propertyClass.equals(Boolean.class.getName())) { generator.push(((Boolean) value).booleanValue()); setterArgType = Type.BOOLEAN_TYPE; } else if (propertyClass.equals(Double.class.getName())) { generator.push(((Double) value).doubleValue()); setterArgType = Type.DOUBLE_TYPE; } else { if (propGen == null) { continue; } propGen.generatePushValue(generator, value); setterArgType = getSetterArgType(property); } generator.invokeVirtual(componentType, new Method(property.getWriteMethodName(), Type.VOID_TYPE, new Type[] { setterArgType } )); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0a8c7f6f897798de90c99991927c43760777d651/AsmCodeGenerator.java/clean/UIDesignerCore/src/com/intellij/uiDesigner/compiler/AsmCodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1841, 2297, 12, 6385, 511, 91, 1841, 14589, 1841, 16, 4766, 2398, 727, 1659, 1794, 797, 16, 4766, 2398, 727, 10159, 4216, 4456, 16, 4766, 2398, 727, 509, 1794, 2042, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1841, 2297, 12, 6385, 511, 91, 1841, 14589, 1841, 16, 4766, 2398, 727, 1659, 1794, 797, 16, 4766, 2398, 727, 10159, 4216, 4456, 16, 4766, 2398, 727, 509, 1794, 2042, 13, ...
throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null));
throw cx.reportRuntimeError0("msg.bad.uri");
private static String decode(Context cx, String str, String reservedSet) { int start, k = 0; char C, H; int V; int B; char[] octets = new char[6]; StringBuffer R; int j, n; R = new StringBuffer(); while (k < str.length()) { C = str.charAt(k); if (C == '%') { start = k; if ((k + 2) >= str.length()) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); if (!isHex(str.charAt(k + 1)) || !isHex(str.charAt(k + 2))) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); B = unHex(str.charAt(k + 1)) * 16 + unHex(str.charAt(k + 2)); k += 2; if ((B & 0x80) == 0) C = (char)B; else { n = 1; while ((B & (0x80 >>> n)) != 0) n++; if ((n == 1) || (n > 6)) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); octets[0] = (char)B; if ((k + 3 * (n - 1)) >= str.length()) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); for (j = 1; j < n; j++) { k++; if (str.charAt(k) != '%') throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); if (!isHex(str.charAt(k + 1)) || !isHex(str.charAt(k + 2))) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); B = unHex(str.charAt(k + 1)) * 16 + unHex(str.charAt(k + 2)); if ((B & 0xC0) != 0x80) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); k += 2; octets[j] = (char)B; } V = utf8ToOneUcs4Char(octets, n); if (V >= 0x10000) { V -= 0x10000; if (V > 0xFFFFF) throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); C = (char)((V & 0x3FF) + 0xDC00); H = (char)((V >>> 10) + 0xD800); R.append(H); } else C = (char)V; } if (reservedSet.indexOf(C) != -1) { for (int x = 0; x < (k - start + 1); x++) R.append(str.charAt(start + x)); } else R.append(C); } else R.append(C); k++; } return R.toString(); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/e737c6d867e82d4ba7fd00e7e388c9c8da824ff0/NativeGlobal.java/buggy/js/rhino/org/mozilla/javascript/NativeGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 2495, 12, 1042, 9494, 16, 514, 609, 16, 514, 8735, 694, 13, 288, 3639, 509, 787, 16, 417, 273, 374, 31, 3639, 1149, 385, 16, 670, 31, 3639, 509, 776, 31, 3639, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 2495, 12, 1042, 9494, 16, 514, 609, 16, 514, 8735, 694, 13, 288, 3639, 509, 787, 16, 417, 273, 374, 31, 3639, 1149, 385, 16, 670, 31, 3639, 509, 776, 31, 3639, 509, ...
if (key != null && value != null) {
private static HttpMethod createMethod(String url, HTTPCallRequest request) throws IllegalArgumentException { // Check preconditions MandatoryArgumentChecker.check("url", url, "request", request); // Get the HTTP method (like GET and POST) and parameters HTTPMethod method = request.getMethod(); PropertyReader parameters = request.getParameters(); // HTTP POST request if (method == HTTPMethod.POST) { PostMethod postMethod = new PostMethod(url); // Loop through the parameters Iterator keys = parameters.getNames(); while (keys.hasNext()) { // Get the parameter key String key = (String) keys.next(); // Get the value Object value = parameters.get(key); // Add this parameter key/value combination, but only if both the // key and the value are not null. A general rule in XINS is that // if a parameter (input or output) has the empty string as the // value, this is equivalent to having the parameter not set at // all. if (key != null && value != null) { postMethod.addParameter(key, value.toString()); } } return postMethod; // HTTP GET request } else if (method == HTTPMethod.GET) { GetMethod getMethod = new GetMethod(url); // Loop through the parameters FastStringBuffer query = new FastStringBuffer(255); Iterator keys = parameters.getNames(); while (keys.hasNext()) { // Get the parameter key String key = (String) keys.next(); // Get the value Object value = parameters.get(key); // Add this parameter key/value combination, but only if both the // key and the value are not null. A general rule in XINS is that // if a parameter (input or output) has the empty string as the // value, this is equivalent to having the parameter not set at // all. if (key != null && value != null) { if (key != null && value != null) { if (query.getLength() > 0) { query.append(","); } query.append(URLEncoding.encode(key)); query.append("="); query.append(URLEncoding.encode(value.toString())); } } if (query.getLength() > 0) { getMethod.setQueryString(query.toString()); } return getMethod; // Unrecognized HTTP method (only GET and POST are supported) } else { throw new Error("Unrecognized method \"" + method + "\"."); } }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/99138564708185f692900df3bb84a6cbadf01b05/HTTPServiceCaller.java/buggy/src/java-common/org/xins/common/http/HTTPServiceCaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 17069, 752, 1305, 12, 780, 1850, 880, 16, 4766, 1850, 2239, 1477, 691, 590, 13, 282, 1216, 2754, 288, 1377, 368, 2073, 675, 6381, 1377, 490, 10018, 1379, 8847, 18, 1893, 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, 565, 3238, 760, 17069, 752, 1305, 12, 780, 1850, 880, 16, 4766, 1850, 2239, 1477, 691, 590, 13, 282, 1216, 2754, 288, 1377, 368, 2073, 675, 6381, 1377, 490, 10018, 1379, 8847, 18, 1893, 2932, ...
public void draw(Shape shape) { try { // NOTE: we could also do the others: Rectangle2D, RoundRectangle2D, Arc2D and Ellipse2D // but I am not sure how to ONLY draw those elements without filling them. if (shape instanceof Line2D) { // faster draw of single line segments Line2D line = (Line2D)shape; drawLine(line.getX1(), line.getY1(), line.getX2(), line.getY2()); return; } if (shape instanceof Rectangle2D) { Rectangle2D rect = (Rectangle2D)shape; drawRect(rect.getMinX(), rect.getMinY(), rect.getWidth(), rect.getHeight()); return; } /* FREEHEP-379 if (shape instanceof Arc2D) { Arc2D arc = (Arc2D)shape; drawArc(arc.getMinX(), arc.getMinHeight(), arc.getWidth(), arc.getHeight(), arc.getAngleStart(), arc.getAngleExtend()); return; }*/ if (shape instanceof CubicCurve2D) { CubicCurve2D curve = (CubicCurve2D)shape; writePen((BasicStroke)getStroke(), getColor()); points[0].x = toUnit(curve.getX1()); points[0].y = toUnit(curve.getY1()); points[1].x = toUnit(curve.getCtrlX1()); points[1].y = toUnit(curve.getCtrlY1()); points[2].x = toUnit(curve.getCtrlX2()); points[2].y = toUnit(curve.getCtrlY2()); points[3].x = toUnit(curve.getX2()); points[4].y = toUnit(curve.getY2()); os.writeTag(new PolyBezier(imageBounds, 4, points)); return; } writePen((BasicStroke)getStroke(), getColor()); writePath(shape); os.writeTag(new StrokePath(imageBounds)); } catch (IOException e) { handleException(e); } }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/EMFGraphics2D.java/buggy/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFGraphics2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3724, 12, 8500, 2179, 13, 288, 7734, 775, 288, 13491, 368, 5219, 30, 732, 3377, 2546, 741, 326, 10654, 30, 13264, 22, 40, 16, 11370, 19463, 22, 40, 16, 24881, 22, 40, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3724, 12, 8500, 2179, 13, 288, 7734, 775, 288, 13491, 368, 5219, 30, 732, 3377, 2546, 741, 326, 10654, 30, 13264, 22, 40, 16, 11370, 19463, 22, 40, 16, 24881, 22, 40, 471, ...
public org.quickfix.field.OrderBookingQty getOrderBookingQty() throws FieldNotFound { org.quickfix.field.OrderBookingQty value = new org.quickfix.field.OrderBookingQty();
public quickfix.field.OrderBookingQty getOrderBookingQty() throws FieldNotFound { quickfix.field.OrderBookingQty value = new quickfix.field.OrderBookingQty();
public org.quickfix.field.OrderBookingQty getOrderBookingQty() throws FieldNotFound { org.quickfix.field.OrderBookingQty value = new org.quickfix.field.OrderBookingQty(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/clean/src/java/src/quickfix/fix44/Confirmation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 9084, 310, 53, 4098, 11973, 9084, 310, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 9084, 310, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 9084, 310, 53, 4098, 11973, 9084, 310, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 9084, 310, 5...
this.backup.restore(h);
this.backup.restore(h);
public void restore(BackupIOHandler h) { this.backup.restore(h); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/4e977ee3e3e3974b7361df9a369df80536c6f8dc/LaunchBackup.java/clean/contrib/backup/src/main/java/org/apache/jackrabbit/backup/LaunchBackup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5217, 12, 6248, 4294, 1503, 366, 13, 288, 377, 202, 2211, 18, 9572, 18, 13991, 12, 76, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5217, 12, 6248, 4294, 1503, 366, 13, 288, 377, 202, 2211, 18, 9572, 18, 13991, 12, 76, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public org.quickfix.field.SettlType getSettlType() throws FieldNotFound { org.quickfix.field.SettlType value = new org.quickfix.field.SettlType();
public quickfix.field.SettlType getSettlType() throws FieldNotFound { quickfix.field.SettlType value = new quickfix.field.SettlType();
public org.quickfix.field.SettlType getSettlType() throws FieldNotFound { org.quickfix.field.SettlType value = new org.quickfix.field.SettlType(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/clean/src/java/src/quickfix/fix44/Confirmation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 559, 336, 694, 6172, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 559, 460, 273, 394, 2358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 559, 336, 694, 6172, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 694, 6172, 559, 460, 273, 394, 2358,...
print("subgraph cluster_" + getName() + " {\n");
print("subgraph cluster_" + getName() + " {\n label=\"" + self.getIdent() + "\";\n");
public Object visitPipeline(SIRPipeline self, JFieldDeclaration[] fields, JMethodDeclaration[] methods, JMethodDeclaration init) { NamePair pair = new NamePair(); // Print this within a subgraph. print("subgraph cluster_" + getName() + " {\n"); // Walk through each of the elements in the pipeline. Iterator iter = self.getChildren().iterator(); while (iter.hasNext()) { SIROperator oper = (SIROperator)iter.next(); NamePair p2 = (NamePair)oper.accept(this); printEdge(pair.last, p2.first); // Update the known edges. if (pair.first == null) pair.first = p2.first; pair.last = p2.last; } print("}\n"); return pair; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/5749f0aeed9b20747e1324b4fbc6c6f1f7aba6f3/StreamItDot.java/buggy/streams/src/at/dms/kjc/StreamItDot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 8798, 12, 2320, 54, 8798, 365, 16, 27573, 804, 974, 6094, 8526, 1466, 16, 27573, 804, 1305, 6094, 8526, 2590, 16, 27573, 804, 1305, 6094, 1208, 13, 565, 288, 3639, 1770,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 8798, 12, 2320, 54, 8798, 365, 16, 27573, 804, 974, 6094, 8526, 1466, 16, 27573, 804, 1305, 6094, 8526, 2590, 16, 27573, 804, 1305, 6094, 1208, 13, 565, 288, 3639, 1770,...
buttonData.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT);
private void setButtonSize(Button button, GridData buttonData) { buttonData.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT); int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); buttonData.widthHint = Math.max(widthHint, button.computeSize( SWT.DEFAULT, SWT.DEFAULT, true).x); button.setLayoutData(buttonData); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ff9766620c37e7b908d6ba9cf2c948d423981dd1/TableSortDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSortDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3616, 1225, 12, 3616, 3568, 16, 7145, 751, 3568, 751, 13, 288, 9079, 509, 1835, 7002, 273, 1765, 14457, 8914, 3477, 774, 18079, 12, 734, 3529, 2918, 18, 20068, 67, 10023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 3616, 1225, 12, 3616, 3568, 16, 7145, 751, 3568, 751, 13, 288, 9079, 509, 1835, 7002, 273, 1765, 14457, 8914, 3477, 774, 18079, 12, 734, 3529, 2918, 18, 20068, 67, 10023, ...
protected static void debug(Log log, String id, String msg) { log.debug( _formatMsg(id, msg) );
protected static void debug(Log log, String msg) { log.debug( _formatMsg("internal", msg) );
protected static void debug(Log log, String id, String msg) { log.debug( _formatMsg(id, msg) ); } // protected static void debug(log, id, msg)
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/55bb56d00e6b00db1efccde519d13722f4bfaae8/GrouperLog.java/clean/grouper/src/grouper/edu/internet2/middleware/grouper/GrouperLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 760, 918, 1198, 12, 1343, 613, 16, 514, 612, 16, 514, 1234, 13, 288, 565, 613, 18, 4148, 12, 389, 2139, 3332, 12, 350, 16, 1234, 13, 11272, 225, 289, 368, 4750, 760, 918, 1198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 760, 918, 1198, 12, 1343, 613, 16, 514, 612, 16, 514, 1234, 13, 288, 565, 613, 18, 4148, 12, 389, 2139, 3332, 12, 350, 16, 1234, 13, 11272, 225, 289, 368, 4750, 760, 918, 1198, ...
workingMemory.fireAllRules();
long start = System.currentTimeMillis(); workingMemory.fireAllRules(); System.out.println( System.currentTimeMillis() - start );
public static void main(final String[] args) throws Exception { try { PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( WaltzBenchmark.class.getResourceAsStream( "waltz.drl" ) ) ); Package pkg = builder.getPackage(); //add the package to a rulebase final RuleBase ruleBase = RuleBaseFactory.newRuleBase(); ruleBase.addPackage( pkg ); WorkingMemory workingMemory = ruleBase.newWorkingMemory(); //this.loadLines( workingMemory, "waltz12.dat" ); Stage stage = new Stage(Stage.START); workingMemory.assertObject( stage ); workingMemory.fireAllRules(); } catch (Throwable t) { t.printStackTrace(); } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/5782252b717a66e8bb34a76a2e9817a322062e08/WaltzBenchmark.java/clean/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzBenchmark.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 6385, 514, 8526, 833, 13, 1216, 1185, 288, 3639, 775, 288, 5411, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 5411, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 6385, 514, 8526, 833, 13, 1216, 1185, 288, 3639, 775, 288, 5411, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 5411, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, ...
int ifIndex = tmpIfArray[i].getIfIndex();
int index = tmpIfArray[i].getIfIndex();
private void updateInterface(Connection dbc, Date now, DbNodeEntry node, InetAddress target, InetAddress ifaddr, List protocols, IfSnmpCollector snmpc) throws SQLException { Category log = ThreadCategory.getInstance(getClass()); CapsdConfigFactory cFactory = CapsdConfigFactory.getInstance(); PollerConfigFactory pollerCfgFactory = PollerConfigFactory.getInstance(); if (log.isDebugEnabled()) { log.debug("updateInterface: updating interface " + ifaddr.getHostAddress() + "(targetIf=" + target.getHostAddress() + ")"); } boolean isAlias = false; boolean reparentFlag = false; DbNodeEntry duplicateNodeEntry = null; boolean deleteDuplicateNodeFlag = false; boolean newIpIfEntry = false; // Attempt to load IP Interface entry from the database // DbIpInterfaceEntry dbIpIfEntry = DbIpInterfaceEntry.get(dbc, node.getNodeId(), ifaddr); if (dbIpIfEntry == null) { // // Reparenting // // This sub-interface was not previously associated with this node. If // the sub-interface is already associated with another node we must do // one of the following: // // 1. If the target interface (the one being rescanned) appears to be an // interface alias all of the interfaces under the sub-interface's node // will be reparented under the nodeid of the target interface. // // 2. If however the interface is not an alias, only the sub-interface will // be reparented under the nodeid of the interface being rescanned. // // In the reparenting process, the database ipinterface, snmpinterface // and ifservices table entries associated with the reparented interface // will be "updated" to reflect the new nodeid. If the old node has // no remaining interfaces following the reparenting it will be marked // as deleted. // // Special case: Need to skip interface reparenting for '0.0.0.0' // interfaces as well as loopback interfaces ('127.*.*.*'). int oldNodeId = -1; if (!ifaddr.getHostAddress().equals("0.0.0.0") && !ifaddr.getHostAddress().startsWith("127.")) { oldNodeId = cFactory.getInterfaceDbNodeId(dbc, ifaddr); } else { if (log.isDebugEnabled()) log.debug("updateInterface: interface " + ifaddr.getHostAddress() + " is NOT eligible for reparenting."); } if (oldNodeId != -1) { if (log.isDebugEnabled()) log.debug("updateInterface: interface " + ifaddr.getHostAddress() + " is however under nodeid " + oldNodeId); // Determine if target interface is an alias or not? isAlias = isInterfaceAlias(target, snmpc); if (isAlias) { // the target interface is not exist in the ipAddrTable of this node. // Do nothing if (log.isDebugEnabled()) log.debug("updateInterface: target interface " + ifaddr.getHostAddress() + " is an alias, reparenting all interfaces from node " + oldNodeId + " to node " + node.getNodeId()); // Its an alias, move all the interfaces associated with the // sub-interface's nodeid under the target's nodeid duplicateNodeEntry = DbNodeEntry.get(dbc, oldNodeId); if (duplicateNodeEntry != null) { // Retrieve list of interfaces associated with the old node DbIpInterfaceEntry[] tmpIfArray = duplicateNodeEntry.getInterfaces(dbc); // Reparent each interface under the targets' nodeid for (int i=0; i<tmpIfArray.length; i++) { InetAddress addr = tmpIfArray[i].getIfAddress(); int ifIndex = tmpIfArray[i].getIfIndex(); // Skip non-IP or loopback interfaces if (!addr.getHostAddress().equals("0.0.0.0") && !addr.getHostAddress().startsWith("127.")) { continue; } if (log.isDebugEnabled()) log.debug("updateInterface: reparenting interface " + tmpIfArray[i].getIfAddress().getHostAddress() + " under node " + node.getNodeId()); reparentInterface(dbc, addr, ifIndex, node.getNodeId(), oldNodeId); // Create interfaceReparented event createInterfaceReparentedEvent(node, oldNodeId, addr); } } // Set reparent flag reparentFlag = true; } else { // // target interface is not an alias. Check if the updating interface // exists in the ipAddrTable of the oldNode. If it is not in the old // node, reparent the interface to the new node. Otherwise, it is a // duplicate interface, and add it to the new node and create an // interfaceAdded event and duplicateInterface event. // duplicateNodeEntry = DbNodeEntry.get(dbc, oldNodeId); if (duplicateNodeEntry != null) { if (isInIpAddrTable(ifaddr, duplicateNodeEntry)) { dbIpIfEntry = addDuplicateInterface(node, ifaddr, protocols, snmpc); // Attempt to load IP Interface entry from the database // since dbIpIfEntry is used later in the following // program. // if (dbIpIfEntry != null) { newIpIfEntry = true; if (log.isDebugEnabled()) log.debug("updateInterface: interface " + ifaddr.getHostAddress() + " is added to node: " + node.getNodeId()); } } else { // // It is not in the ipAddrTable of the oldNodeId, issue SQL update to // move the sub-interface and its services under its new parent node // if (log.isDebugEnabled()) log.debug("updateInterface: target interface " + ifaddr.getHostAddress() + " is not exist on nodeID: " + oldNodeId +". Reparenting " + ifaddr.getHostAddress() + " under nodeid " + node.getNodeId()); // Get ifindex for this address int ifIndex = -1; if (snmpc != null && !snmpc.failed() && snmpc.hasIpAddrTable()) { ifIndex = IpAddrTable.getIfIndex(snmpc.getIpAddrTable().getEntries(), ifaddr.getHostAddress()); } if (log.isDebugEnabled()) log.debug("updateInterface: interface " + ifaddr.getHostAddress() + " has ifIndex " + ifIndex); reparentInterface(dbc, ifaddr, ifIndex, node.getNodeId(), oldNodeId); // Create interfaceReparented event createInterfaceReparentedEvent(node, oldNodeId, ifaddr); // Set reparent flag reparentFlag = true; } } } // Delete the old node id if it has no additional IP interfaces // under it...non-IP interfaces do not count as they are only // discoverable via SNMP. // if (duplicateNodeEntry == null) duplicateNodeEntry = DbNodeEntry.get(dbc, oldNodeId); if (duplicateNodeEntry != null) { DbIpInterfaceEntry[] duplicateNodeInterfaces = duplicateNodeEntry.getInterfaces(dbc); if (log.isDebugEnabled()) log.debug("updateInterface: checking if there are any remaining IP interfaces for this dup node."); // Determine IP interface count remaining under this node int ipCount = 0; int nonIpCount = 0; for (int ii=0; ii<duplicateNodeInterfaces.length; ii++) { InetAddress addr = duplicateNodeInterfaces[ii].getIfAddress(); if (log.isDebugEnabled()) log.debug("updateInterface: remaining interface address: " + addr.getHostAddress()); // Increment count if address is not "0.0.0.0" and // is not a loopback address if (!addr.getHostAddress().equals("0.0.0.0") && !addr.getHostAddress().startsWith("127.")) { ipCount ++; } else { nonIpCount ++; } } if (log.isDebugEnabled()) log.debug("updateInterface: ipCount=" + ipCount + " nonIpCount=" + nonIpCount); // If no IP interfaces left we can delete the old // node entry if (ipCount == 0) { if (log.isDebugEnabled()) log.debug("updateInterface: old nodeid " + oldNodeId + " has no IP interfaces associated with it, deleting..."); // If any non IP interface entries remain we must // first mark them as deleted. if (nonIpCount > 0) { if (log.isDebugEnabled()) log.debug("updateInterface: dup nodeid " + oldNodeId + " has at least one non-IP interface associated with it, deleting all non-IP interfaces..."); for (int ii=0; ii<duplicateNodeInterfaces.length; ii++) { if (log.isDebugEnabled()) log.debug("updateInterface: deleting non-IP interface with ifIndex " + duplicateNodeInterfaces[ii].getIfIndex() + " from dup node " + oldNodeId); duplicateNodeInterfaces[ii].setManagedState(DbIpInterfaceEntry.STATE_DELETED); duplicateNodeInterfaces[ii].store(dbc); } } // Delete any remaining snmpInterface table entries if (log.isDebugEnabled()) log.debug("updateInterface: deleting any remaining snmpInterface table entries for old node " + oldNodeId); PreparedStatement delete = dbc.prepareStatement("DELETE FROM snmpinterface WHERE nodeid=?"); try { delete.setInt(1, oldNodeId); delete.executeUpdate(); } finally { try { delete.close(); } catch (SQLException e) { // Do nothing } } // Now mark the node as deleted duplicateNodeEntry.setNodeType(DbNodeEntry.NODE_TYPE_DELETED); duplicateNodeEntry.store(dbc); deleteDuplicateNodeFlag = true; } } } } // // IMPORTANT: Notice that from here on event if the target interface was // an alias resulting in the reparenting of multiple interfaces under the // target interface's node, we only actually update the current sub-interface. // This is ok because this method, updateInterface() should be called // for each sub-interface retrieved via SNMP...and these interfaces no // longer need to be reparented so they will be updated as normal. if (reparentFlag) { // Interface was reparented, now we can load its interface entry dbIpIfEntry = DbIpInterfaceEntry.get(dbc, node.getNodeId(), ifaddr); } else if (dbIpIfEntry == null) { // Interface not found with this nodeId so create new interface entry if (log.isDebugEnabled()) log.debug("updateInterface: interface " + ifaddr + " not in database under nodeid " + node.getNodeId() + ", creating new interface object."); dbIpIfEntry = DbIpInterfaceEntry.create(node.getNodeId(), ifaddr); newIpIfEntry = true; } // Clone the existing database entry so we have access to the values // of the database fields associated with the interface in the event // that something has changed. DbIpInterfaceEntry originalIpIfEntry = DbIpInterfaceEntry.clone(dbIpIfEntry); // Create IP interface entry representing latest information // retrieved for the interface via the collector // DbIpInterfaceEntry currIpIfEntry = DbIpInterfaceEntry.create(node.getNodeId(), ifaddr); // Hostname currIpIfEntry.setHostname(ifaddr.getHostName()); // Managed state // NOTE: (reference internal bug# 201) // If the ip is 'managed', it might still be 'not polled' based // on the poller configuration. // // Try to avoid re-evaluating the ip against filters for // each service, try to get the first package here and use // that for service evaluation // // At this point the ip is already/ in the database, so package filter // evaluation should go through OK // org.opennms.netmgt.config.poller.Package ipPkg = null; if(cFactory.isAddressUnmanaged(ifaddr)) currIpIfEntry.setManagedState(DbIpInterfaceEntry.STATE_UNMANAGED); else { boolean ipToBePolled = false; ipPkg = pollerCfgFactory.getFirstPackageMatch(ifaddr.getHostAddress()); if (ipPkg != null) ipToBePolled = true; if (ipToBePolled) currIpIfEntry.setManagedState(DbIpInterfaceEntry.STATE_MANAGED); else currIpIfEntry.setManagedState(DbIpInterfaceEntry.STATE_NOT_POLLED); } // If SNMP data collection is available set SNMP Primary state // as well as ifIndex and ifStatus. Also retrieve ifType (loopback // interfaces will be skipped). // int ifType = -1; if (snmpc != null && !snmpc.failed()) { int ifIndex = snmpc.getIfIndex(ifaddr); if(ifIndex != -1) { currIpIfEntry.setIfIndex(ifIndex); int status = snmpc.getAdminStatus(ifIndex); currIpIfEntry.setStatus(status); ifType = snmpc.getIfType(ifIndex); // For new interfaces simply set 'isSnmpPrimary' field to secondary for now. // Following the interface updates the primary SNMP interface will be determined // and the value of the 'isSnmpPrimary' field set to 'P' (primary) for that // interface. if (newIpIfEntry) currIpIfEntry.setPrimaryState(DbIpInterfaceEntry.SNMP_SECONDARY); else currIpIfEntry.setPrimaryState(originalIpIfEntry.getPrimaryState()); } else { // No ifIndex found so set primary state to NOT_ELIGIBLE currIpIfEntry.setPrimaryState(DbIpInterfaceEntry.SNMP_NOT_ELIGIBLE); } } // Update any fields which have changed dbIpIfEntry.setLastPoll(now); dbIpIfEntry.updateHostname(currIpIfEntry.getHostname()); dbIpIfEntry.updateManagedState(currIpIfEntry.getManagedState()); dbIpIfEntry.updateStatus(currIpIfEntry.getStatus()); dbIpIfEntry.updatePrimaryState(currIpIfEntry.getPrimaryState()); dbIpIfEntry.updateIfIndex(currIpIfEntry.getIfIndex()); // Set event flags // NOTE: Must set these flags prior to call to DbIpInterfaceEntry.store() // method which will cause the change map to be cleared. boolean ifIndexChangedFlag = false; boolean ipHostnameChangedFlag = false; if (dbIpIfEntry.hasIfIndexChanged()) ifIndexChangedFlag = true; if (dbIpIfEntry.hasHostnameChanged()) ipHostnameChangedFlag = true; // Update the database dbIpIfEntry.store(dbc); // If the interface was not already in the database under // the node being rescanned or some other node send a // nodeGainedInterface event. if (newIpIfEntry && !reparentFlag) { createNodeGainedInterfaceEvent(dbIpIfEntry); } // If an interface has been reparented send associated events else if (reparentFlag) { // Duplicate node deleted? if (deleteDuplicateNodeFlag) { createDuplicateNodeDeletedEvent(duplicateNodeEntry); } // InterfaceIndexChanged event // if (log.isDebugEnabled()) log.debug("updateInterface: ifIndex changed: " + ifIndexChangedFlag); if (ifIndexChangedFlag) { createInterfaceIndexChangedEvent(dbIpIfEntry, originalIpIfEntry); m_ifIndexOnNodeChangedFlag = true; } // IPHostNameChanged event // if (log.isDebugEnabled()) log.debug("updateInterface: hostname changed: " + ipHostnameChangedFlag); if (ipHostnameChangedFlag) { createIpHostNameChangedEvent(dbIpIfEntry, originalIpIfEntry); } } // If the interface is not new check to see if the interface's // ifIndex or ipHostname have changed. else { // InterfaceIndexChanged event // if (log.isDebugEnabled()) log.debug("updateInterface: ifIndex changed: " + ifIndexChangedFlag); if (ifIndexChangedFlag) { createInterfaceIndexChangedEvent(dbIpIfEntry, originalIpIfEntry); m_ifIndexOnNodeChangedFlag = true; } // IPHostNameChanged event // if (log.isDebugEnabled()) log.debug("updateInterface: hostname changed: " + ipHostnameChangedFlag); if (ipHostnameChangedFlag) { createIpHostNameChangedEvent(dbIpIfEntry, originalIpIfEntry); } } // Retrieve from the database the interface's service list DbIfServiceEntry[] dbSupportedServices = dbIpIfEntry.getServices(dbc); // add newly supported protocols // // NOTE!!!!!: (reference internal bug# 201) // If the ip is 'managed', the service can still be 'not polled' // based on the poller configuration - at this point the ip is already // in the database, so package filter evaluation should go through OK // Iterator iproto = protocols.iterator(); while(iproto.hasNext()) { IfCollector.SupportedProtocol p = (IfCollector.SupportedProtocol)iproto.next(); Number sid = (Number)cFactory.getServiceIdentifier(p.getProtocolName()); // Only adding newly supported services so check against the service // list retrieved from the database boolean found = false; for (int i=0; i<dbSupportedServices.length && !found; i++) { if (dbSupportedServices[i].getServiceId() == sid.intValue()) found = true; } if (!found) { DbIfServiceEntry ifSvcEntry = DbIfServiceEntry.create(node.getNodeId(), ifaddr, sid.intValue()); // now fill in the entry // if(cFactory.isAddressUnmanaged(ifaddr)) ifSvcEntry.setStatus(DbIfServiceEntry.STATUS_UNMANAGED); else { boolean svcToBePolled = false; if (ipPkg != null) { svcToBePolled = pollerCfgFactory.isPolled(p.getProtocolName(), ipPkg); if (!svcToBePolled) svcToBePolled = pollerCfgFactory.isPolled(ifaddr.getHostAddress(), p.getProtocolName()); } if (svcToBePolled) ifSvcEntry.setStatus(DbIfServiceEntry.STATUS_ACTIVE); else ifSvcEntry.setStatus(DbIfServiceEntry.STATUS_NOT_POLLED); } // Set qualifier if available. Currently the qualifier field // is used to store the port at which the protocol was found. // if (p.getQualifiers() != null && p.getQualifiers().get("port") != null) { try { Integer port = (Integer)p.getQualifiers().get("port"); if (log.isDebugEnabled()) log.debug("addInterfaces: got a port qualifier: " + port); ifSvcEntry.setQualifier(port.toString()); } catch (ClassCastException ccE) { // Do nothing } } ifSvcEntry.setSource(DbIfServiceEntry.SOURCE_PLUGIN); ifSvcEntry.setNotify(DbIfServiceEntry.NOTIFY_ON); int ifIndex = dbIpIfEntry.getIfIndex(); if (ifIndex > 0) ifSvcEntry.setIfIndex(ifIndex); ifSvcEntry.store(); // Generate nodeGainedService event createNodeGainedServiceEvent(node, dbIpIfEntry, p.getProtocolName()); // If this interface already existed in the database and SNMP // service has been gained then create interfaceSupportsSNMP event if (!newIpIfEntry && p.getProtocolName().equalsIgnoreCase("SNMP")) { createInterfaceSupportsSNMPEvent(dbIpIfEntry); } } } // end while(more protocols) // // If SNMP info is available update the snmpInterface table entry with // anything that has changed. // if (snmpc != null && !snmpc.failed() && dbIpIfEntry.getIfIndex() != -1) { if (log.isDebugEnabled()) log.debug("updateInterface: updating snmp interface for nodeId/ifIndex=" + + node.getNodeId() + "/" + dbIpIfEntry.getIfIndex()); // Create and load SNMP Interface entry from the database // boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), dbIpIfEntry.getIfIndex()); if (dbSnmpIfEntry == null) { // SNMP Interface not found with this nodeId, create new interface if (log.isDebugEnabled()) log.debug("updateInterface: SNMP interface index " + dbIpIfEntry.getIfIndex() + " not in database, creating new interface object."); dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), dbIpIfEntry.getIfIndex()); newSnmpIfTableEntry = true; } // Create SNMP interface entry representing latest information // retrieved for the interface via the collector // DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), dbIpIfEntry.getIfIndex()); // Find the ifTable entry for this interface IfTable ift = snmpc.getIfTable(); Iterator ifiter = ift.getEntries().iterator(); IfTableEntry ifte = null; while(ifiter.hasNext()) { ifte = (IfTableEntry)ifiter.next(); // index // SnmpInt32 sint = (SnmpInt32)ifte.get(IfTableEntry.IF_INDEX); if(sint != null) { if (dbIpIfEntry.getIfIndex() == sint.getValue()) break; } } // Make sure we have a valid IfTableEntry object if (ifte != null) { // IP address and netmask // // WARNING: IfSnmpCollector.getIfAddressAndMask() ONLY returns // the FIRST IP address and mask for a given interface as specified // in the ipAddrTable. // InetAddress[] aaddrs = snmpc.getIfAddressAndMask(dbIpIfEntry.getIfIndex()); // Address array should NEVER be null but just in case.. // if(aaddrs == null) { log.warn("updateInterface: unable to retrieve address and netmask for nodeId/ifIndex: " + node.getNodeId() + "/" + dbIpIfEntry.getIfIndex()); aaddrs = new InetAddress[2]; // Set interface address to current interface aaddrs[0] = ifaddr; // Set netmask to NULL aaddrs[1] = null; } // IP address // currSnmpIfEntry.setIfAddress(aaddrs[0]); // netmask // if (aaddrs[1] != null) { if (log.isDebugEnabled()) log.debug("updateInterface: interface " + aaddrs[0].getHostAddress() + " has netmask: " + aaddrs[1].getHostAddress()); currSnmpIfEntry.setNetmask(aaddrs[1]); } // type // SnmpInt32 sint = (SnmpInt32)ifte.get(IfTableEntry.IF_TYPE); currSnmpIfEntry.setType(sint.getValue()); // description String str = SystemGroup.getPrintableString((SnmpOctetString)ifte.get(IfTableEntry.IF_DESCR)); if (log.isDebugEnabled()) log.debug("updateInterface: " + ifaddr + " has ifDescription: " + str); if(str != null && str.length() > 0) currSnmpIfEntry.setDescription(str); // physical address StringBuffer sbuf = new StringBuffer(); SnmpOctetString ostr = (SnmpOctetString)ifte.get(IfTableEntry.IF_PHYS_ADDR); if ( ostr != null && ostr.getLength() > 0) { byte[] bytes = ostr.getString(); for(int i = 0; i < bytes.length; i++) { sbuf.append(Integer.toHexString(((int)bytes[i] >> 4) & 0xf)); sbuf.append(Integer.toHexString((int)bytes[i] & 0xf)); } } String physAddr = sbuf.toString().trim(); if (log.isDebugEnabled()) log.debug("updateInterface: " + ifaddr + " has phys address: -" + physAddr + "-"); if (physAddr.length() == 12) { currSnmpIfEntry.setPhysicalAddress(physAddr); } // speed SnmpUInt32 uint = (SnmpUInt32)ifte.get(IfTableEntry.IF_SPEED); currSnmpIfEntry.setSpeed((int)uint.getValue()); // admin status sint = (SnmpInt32)ifte.get(IfTableEntry.IF_ADMIN_STATUS); currSnmpIfEntry.setAdminStatus(sint.getValue()); // oper status sint = (SnmpInt32)ifte.get(IfTableEntry.IF_OPER_STATUS); currSnmpIfEntry.setOperationalStatus(sint.getValue()); // name (from interface extensions table) SnmpOctetString snmpIfName = snmpc.getIfName(dbIpIfEntry.getIfIndex()); if (snmpIfName != null) { String ifName = SystemGroup.getPrintableString(snmpIfName); if (ifName!= null && ifName.length() > 0) currSnmpIfEntry.setName(ifName); } } // end if valid ifTable entry // Update any fields which have changed //dbSnmpIfEntry.updateIfIndex(currSnmpIfEntry.getIfIndex()); dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); dbSnmpIfEntry.updateNetmask(currSnmpIfEntry.getNetmask()); dbSnmpIfEntry.updatePhysicalAddress(currSnmpIfEntry.getPhysicalAddress()); dbSnmpIfEntry.updateDescription(currSnmpIfEntry.getDescription()); dbSnmpIfEntry.updateName(currSnmpIfEntry.getName()); dbSnmpIfEntry.updateType(currSnmpIfEntry.getType()); dbSnmpIfEntry.updateSpeed(currSnmpIfEntry.getSpeed()); dbSnmpIfEntry.updateAdminStatus(currSnmpIfEntry.getAdminStatus()); dbSnmpIfEntry.updateOperationalStatus(currSnmpIfEntry.getOperationalStatus()); // If this is a new interface or if any of the following // key fields have changed set the m_snmpIfTableChangedFlag // variable to TRUE. This will potentially trigger an event // which will cause the poller to reinitialize the primary // SNMP interface for the node. if (!m_snmpIfTableChangedFlag && newSnmpIfTableEntry || //dbSnmpIfEntry.hasIfIndexChanged() || dbSnmpIfEntry.hasIfAddressChanged() || dbSnmpIfEntry.hasTypeChanged() || dbSnmpIfEntry.hasNameChanged() || dbSnmpIfEntry.hasDescriptionChanged() || dbSnmpIfEntry.hasPhysicalAddressChanged()) { m_snmpIfTableChangedFlag = true; } // Update the database dbSnmpIfEntry.store(dbc); } // end if snmp info available }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/0e7443998b3e72f95c103107e157f155e623f2e5/RescanProcessor.java/buggy/src/services/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1358, 12, 1952, 225, 9881, 16, 6862, 377, 2167, 3639, 2037, 16, 6862, 377, 8408, 907, 1622, 756, 16, 6862, 377, 14218, 1018, 16, 6862, 377, 14218, 309, 4793, 16, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1358, 12, 1952, 225, 9881, 16, 6862, 377, 2167, 3639, 2037, 16, 6862, 377, 8408, 907, 1622, 756, 16, 6862, 377, 14218, 1018, 16, 6862, 377, 14218, 309, 4793, 16, 6...
Class.forName("java.security.AccessController");
Utils.ClassForName("java.security.AccessController");
static private Properties loadPropertiesFile( final String resourceName, Properties defaults) throws IOException { // This static method should eventually be moved to a thread-specific class // so that we can cache the ContextClassLoader and bottleneck all properties file // loading throughout Xalan. Properties props = new Properties(defaults); InputStream is = null; BufferedInputStream bis = null; Class accessControllerClass = null; try { try { try { // This Class was introduced in JDK 1.2. With the re-architecture of // security mechanism ( starting in JDK 1.2 ), we have option of // giving privileges to certain part of code using doPrivileged block. // In JDK1.1.X applications won't be having security manager and if // there is security manager ( in applets ), code need to be signed // and trusted for having access to resources. accessControllerClass = Class.forName("java.security.AccessController"); // If we are here means user is using JDK >= 1.2. // Using doPrivileged to be able to read property file without opening // up secured container permissions like J2EE container is = ( InputStream) java .security .AccessController .doPrivileged( new java .security .PrivilegedAction() { public Object run() { try { java.lang.reflect.Method getCCL = Thread.class.getMethod( "getContextClassLoader", NO_CLASSES); if (getCCL != null) { ClassLoader contextClassLoader = (ClassLoader) getCCL.invoke( Thread.currentThread(), NO_OBJS); return ( contextClassLoader.getResourceAsStream( PROP_DIR + resourceName)); } } catch (Exception e) { } return null; } }); } catch (ClassNotFoundException e) { //User may be using older JDK ( JDK <1.2 ). Allow him/her to use it. // But don't try to use doPrivileged try { java.lang.reflect.Method getCCL = Thread.class.getMethod( "getContextClassLoader", NO_CLASSES); if (getCCL != null) { ClassLoader contextClassLoader = (ClassLoader) getCCL.invoke( Thread.currentThread(), NO_OBJS); is = contextClassLoader.getResourceAsStream( PROP_DIR + resourceName); } } catch (Exception exception) { } } } catch (Exception e) { } if (is == null) { if (accessControllerClass != null) { is = ( InputStream) java .security .AccessController .doPrivileged( new java .security .PrivilegedAction() { public Object run() { return OutputPropertiesFactory .class .getResourceAsStream( resourceName); } }); } else { // User may be using older JDK ( JDK < 1.2 ) is = OutputPropertiesFactory.class.getResourceAsStream( resourceName); } } bis = new BufferedInputStream(is); props.load(bis); } catch (IOException ioe) { if (defaults == null) { throw ioe; } else { throw new WrappedRuntimeException( XMLMessages.createXMLMessage( XMLErrorResources.ER_COULD_NOT_LOAD_RESOURCE, new Object[] { resourceName }), ioe); //"Could not load '"+resourceName+"' (check CLASSPATH), now using just the defaults ", ioe); } } catch (SecurityException se) { // Repeat IOException handling for sandbox/applet case -sc if (defaults == null) { throw se; } else { throw new WrappedRuntimeException( XMLMessages.createXMLMessage( XMLErrorResources.ER_COULD_NOT_LOAD_RESOURCE, new Object[] { resourceName }), se); //"Could not load '"+resourceName+"' (check CLASSPATH, applet security), now using just the defaults ", se); } } finally { if (bis != null) { bis.close(); } if (is != null) { is.close(); } } // Note that we're working at the HashTable level here, // and not at the Properties level! This is important // because we don't want to modify the default properties. // NB: If fixupPropertyString ends up changing the property // name or value, we need to remove the old key and re-add // with the new key and value. However, then our Enumeration // could lose its place in the HashTable. So, we first // clone the HashTable and enumerate over that since the // clone will not change. When we migrate to Collections, // this code should be revisited and cleaned up to use // an Iterator which may (or may not) alleviate the need for // the clone. Many thanks to Padraig O'hIceadha // <padraig@gradient.ie> for finding this problem. Bugzilla 2000. Enumeration keys = ((Properties) props.clone()).keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); // Now check if the given key was specified as a // System property. If so, the system property // overides the default value in the propery file. String value = null; try { value = System.getProperty(key); } catch (SecurityException se) { // No-op for sandbox/applet case, leave null -sc } if (value == null) value = (String) props.get(key); String newKey = fixupPropertyString(key, true); String newValue = null; try { newValue = System.getProperty(newKey); } catch (SecurityException se) { // No-op for sandbox/applet case, leave null -sc } if (newValue == null) newValue = fixupPropertyString(value, false); else newValue = fixupPropertyString(newValue, false); if (key != newKey || value != newValue) { props.remove(key); props.put(newKey, newValue); } } return props; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/349d2c167085eaaed60de24d968d8b25f7f51548/OutputPropertiesFactory.java/clean/src/org/apache/xml/serializer/OutputPropertiesFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 6183, 1262, 2297, 812, 12, 3639, 727, 514, 9546, 16, 3639, 6183, 3467, 13, 3639, 1216, 1860, 565, 288, 3639, 368, 1220, 760, 707, 1410, 18011, 506, 10456, 358, 279, 2650, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 6183, 1262, 2297, 812, 12, 3639, 727, 514, 9546, 16, 3639, 6183, 3467, 13, 3639, 1216, 1860, 565, 288, 3639, 368, 1220, 760, 707, 1410, 18011, 506, 10456, 358, 279, 2650, 17, ...
idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refReg = ref.getRegister();
checkBounds(ref, idx); FPUHelper.ensureStackCapacity(os, eContext, vstack, 1);
public final void visit_faload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); // flush vstack onto operand stack because result // is also on stack vstack.push(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register refReg = ref.getRegister(); checkBounds(ref, idx); //IMPROVE: load to ST if (idx.getKind() == Item.Kind.CONSTANT) { final int offset = idx.getValue(); //os.writeMOV(INTSIZE, refReg, refReg, offset+VmArray.DATA_OFFSET // * 4); os.writePUSH(refReg, offset + VmArray.DATA_OFFSET * 4); idx.release(eContext); } else { //os.writeMOV(INTSIZE, refReg, refReg, idx.getRegister(), 2, // VmArray.DATA_OFFSET * 4); os.writePUSH(refReg, idx.getRegister(), 2, VmArray.DATA_OFFSET * 4); ref.release(eContext); idx.release(eContext); } // do not release ref, it is recycled into the result vstack.push1(FloatItem.createStack()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 3757, 67, 74, 287, 6189, 1435, 288, 3639, 3094, 1180, 2067, 273, 19510, 18, 5120, 1702, 5621, 3639, 3941, 1180, 1278, 273, 19510, 18, 5120, 1957, 5621, 3639, 368, 3663, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 3757, 67, 74, 287, 6189, 1435, 288, 3639, 3094, 1180, 2067, 273, 19510, 18, 5120, 1702, 5621, 3639, 3941, 1180, 1278, 273, 19510, 18, 5120, 1957, 5621, 3639, 368, 3663, 19...
int n = m_Elements.length; int bn = b.m_Elements.length;
public final double dotMultiply(AlgVector b) { int n = m_Elements.length; int bn = b.m_Elements.length; double sum = 0.0; for(int i = 0; i < n; i++) { sum += m_Elements[i] * b.m_Elements[i]; } return sum; }
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/9acf7b89b7ebdbd4ef663e17723177b8f4db83d8/AlgVector.java/buggy/weka/core/AlgVector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1645, 3928, 26040, 12, 21883, 5018, 324, 13, 288, 4202, 509, 290, 273, 312, 67, 3471, 18, 2469, 31, 565, 509, 18254, 273, 324, 18, 81, 67, 3471, 18, 2469, 31, 565, 1645, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1645, 3928, 26040, 12, 21883, 5018, 324, 13, 288, 4202, 509, 290, 273, 312, 67, 3471, 18, 2469, 31, 565, 509, 18254, 273, 324, 18, 81, 67, 3471, 18, 2469, 31, 565, 1645, 21...
if(treeViewer.getControl().isDisposed())
if(treeViewer.getControl().isDisposed()) {
private void createRefreshJob() { refreshJob = new WorkbenchJob("Refresh Filter"){//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(treeViewer.getControl().isDisposed()) return Status.CANCEL_STATUS; String text = getFilterString(); if (text == null) // filter text not being used return Status.OK_STATUS; boolean initial = initialText != null && initialText.equals(text); if (initial) { patternFilter.setPattern(null); } else if (text != null){ patternFilter.setPattern(text); } treeViewer.getControl().setRedraw(false); treeViewer.refresh(true); treeViewer.getControl().setRedraw(true); if (text.length() > 0 && !initial) { treeViewer.expandAll(); TreeItem[] items = getViewer().getTree().getItems(); if (items.length > 0) treeViewer.getTree().showItem(items[0]); // to prevent scrolling // enabled toolbar - there is text to clear // and the list is currently being filtered updateToolbar(true); } else { // disabled toolbar - there is no text to clear // and the list is currently not filtered updateToolbar(false); } return Status.OK_STATUS; } }; refreshJob.setSystem(true); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/FilteredTree.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8323, 2278, 1435, 288, 202, 202, 9144, 2278, 273, 394, 4147, 22144, 2278, 2932, 8323, 4008, 7923, 95, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 20308, 261, 5836...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8323, 2278, 1435, 288, 202, 202, 9144, 2278, 273, 394, 4147, 22144, 2278, 2932, 8323, 4008, 7923, 95, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 20308, 261, 5836...
static String replace(String s,String find,String replace)
static String replace(String s, String find, String replace)
static String replace(String s,String find,String replace) { // let's be optimistic int found = s.indexOf(find); if (found == -1) { return s; } StringBuffer sb = new StringBuffer(s.length()); int start = 0; for (;;) { for (; start < found; start++) { sb.append(s.charAt(start)); } if (found == s.length()) { break; } sb.append(replace); start += find.length(); found = s.indexOf(find,start); if (found == -1) { found = s.length(); } } return sb.toString(); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapUtil.java/buggy/src/main/mondrian/rolap/RolapUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 514, 1453, 12, 780, 272, 16, 514, 1104, 16, 514, 1453, 13, 565, 288, 3639, 368, 2231, 1807, 506, 5213, 5846, 3639, 509, 1392, 273, 272, 18, 31806, 12, 4720, 1769, 3639, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 514, 1453, 12, 780, 272, 16, 514, 1104, 16, 514, 1453, 13, 565, 288, 3639, 368, 2231, 1807, 506, 5213, 5846, 3639, 509, 1392, 273, 272, 18, 31806, 12, 4720, 1769, 3639, 309, 261, ...
String getProblemsTitle() {
protected String getProblemsTitle() {
String getProblemsTitle() { return IDEWorkbenchMessages.getString("ScrubLocalAction.problemsTitle"); //$NON-NLS-1$ }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4eac3d2cc275edceeff6f6f06f8d39203c7c731c/ScrubLocalAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/ScrubLocalAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 3570, 19122, 4247, 1435, 288, 3639, 327, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 1541, 18271, 2042, 1803, 18, 29812, 4247, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 3570, 19122, 4247, 1435, 288, 3639, 327, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 1541, 18271, 2042, 1803, 18, 29812, 4247, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 565, ...
new KJASSwingConsole().show();
new KJASSwingConsole().setVisible(true);
public static void main(String args[]) { new KJASSwingConsole().show(); }
1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/3c4f6971fa27606ee0863d05007e827e2363a763/KJASSwingConsole.java/buggy/khtml/java/org/kde/kjas/server/KJASSwingConsole.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 3639, 394, 1475, 46, 8423, 91, 310, 10215, 7675, 542, 6207, 12, 3767, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 3639, 394, 1475, 46, 8423, 91, 310, 10215, 7675, 542, 6207, 12, 3767, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -10...
public FiltersAction(TableView view, Dialog dialog) {
public FiltersAction(MarkerView view) {
public FiltersAction(TableView view, Dialog dialog) { super(Messages.getString("filtersAction.title")); //$NON-NLS-1$ setImageDescriptor(ImageFactory.getImageDescriptor("clcl16/filter_ps.gif")); //$NON-NLS-1$ setToolTipText(Messages.getString("filtersAction.tooltip")); //$NON-NLS-1$ this.view = view; this.dialog = dialog; setEnabled(true); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ea57ee1b804071939d5791d4c2986826074efe0c/FiltersAction.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FiltersAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14475, 1803, 12, 1388, 1767, 1476, 16, 17242, 6176, 13, 288, 202, 202, 9565, 12, 5058, 18, 588, 780, 2932, 6348, 1803, 18, 2649, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14475, 1803, 12, 1388, 1767, 1476, 16, 17242, 6176, 13, 288, 202, 202, 9565, 12, 5058, 18, 588, 780, 2932, 6348, 1803, 18, 2649, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, ...
void fireAll(int trigVecIndx) {
void fireAll(int trigVecIndx, Object row[]) {
void fireAll(int trigVecIndx) { Object row[] = new Object[1]; row[0] = new String("Statement-level"); fireAll(trigVecIndx, row); }
49087 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49087/004da3301b8316db985eecc6652835b1e05e6f72/Table.java/buggy/base-one/trunk/src/org/hsqldb/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4452, 1595, 12, 474, 23142, 12991, 3866, 92, 16, 1033, 1027, 63, 5717, 288, 3639, 1033, 1027, 8526, 273, 394, 1033, 63, 21, 15533, 3639, 1027, 63, 20, 65, 273, 394, 514, 2932, 3406...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4452, 1595, 12, 474, 23142, 12991, 3866, 92, 16, 1033, 1027, 63, 5717, 288, 3639, 1033, 1027, 8526, 273, 394, 1033, 63, 21, 15533, 3639, 1027, 63, 20, 65, 273, 394, 514, 2932, 3406...
includeModule(getRuntime().getClasses().getComparableModule()); includeModule(getRuntime().getClasses().getEnumerableModule());
includeModule(getRuntime().getModule("Comparable")); includeModule(getRuntime().getModule("Enumerable"));
protected void initializeClass() { includeModule(getRuntime().getClasses().getComparableModule()); includeModule(getRuntime().getClasses().getEnumerableModule()); defineMethod("<=>", Arity.singleArgument(), "op_cmp"); defineMethod("==", Arity.singleArgument(), "equal"); defineMethod("===", Arity.singleArgument(), "veryEqual"); defineMethod("+", Arity.singleArgument(), "op_plus"); defineMethod("*", Arity.singleArgument(), "op_mul"); defineMethod("%", Arity.singleArgument(), "format"); defineMethod("[]", Arity.optional(), "aref"); defineMethod("[]=", Arity.optional(), "aset"); defineMethod("=~", Arity.singleArgument(), "match"); defineMethod("~", Arity.noArguments(), "match2"); defineMethod("capitalize", Arity.noArguments()); defineMethod("capitalize!", Arity.noArguments(), "capitalize_bang"); defineMethod("casecmp", Arity.singleArgument()); defineMethod("center", Arity.singleArgument()); defineMethod("chop", Arity.noArguments()); defineMethod("chop!", Arity.noArguments(), "chop_bang"); defineMethod("chomp", Arity.optional()); defineMethod("chomp!", Arity.optional(), "chomp_bang"); defineMethod("clone", Arity.noArguments(), "rbClone"); defineMethod("concat", Arity.singleArgument()); defineMethod("count", Arity.optional()); defineMethod("delete", Arity.optional()); defineMethod("delete!", Arity.optional(), "delete_bang"); defineMethod("downcase", Arity.noArguments()); defineMethod("downcase!", Arity.noArguments(), "downcase_bang"); defineMethod("dump", Arity.noArguments()); defineMethod("dup", Arity.noArguments()); defineMethod("each_line", Arity.optional()); defineMethod("each_byte", Arity.noArguments()); defineMethod("empty?", Arity.noArguments(), "empty"); defineMethod("gsub", Arity.optional()); defineMethod("gsub!", Arity.optional(), "gsub_bang"); defineMethod("hash", Arity.noArguments()); defineMethod("hex", Arity.noArguments()); defineMethod("include?", Arity.singleArgument(), "include"); defineMethod("index", Arity.optional()); defineMethod("initialize", Arity.optional(), "initialize"); defineMethod("initialize_copy", Arity.singleArgument(), "replace"); defineMethod("inspect", Arity.noArguments()); defineMethod("length", Arity.noArguments()); defineMethod("ljust", Arity.singleArgument()); defineMethod("lstrip", Arity.noArguments()); defineMethod("lstrip!", Arity.noArguments(), "lstrip_bang"); defineMethod("match", Arity.singleArgument(), "match3"); defineMethod("oct", Arity.noArguments()); defineMethod("replace", Arity.singleArgument()); defineMethod("reverse", Arity.noArguments()); defineMethod("reverse!", Arity.noArguments(), "reverse_bang"); defineMethod("rindex", Arity.optional()); defineMethod("rjust", Arity.singleArgument()); defineMethod("rstrip", Arity.noArguments()); defineMethod("rstrip!", Arity.noArguments(), "rstrip_bang"); defineMethod("scan", Arity.singleArgument()); defineMethod("slice!", Arity.optional(), "slice_bang"); defineMethod("split", Arity.optional()); defineMethod("strip", Arity.noArguments()); defineMethod("strip!", Arity.noArguments(), "strip_bang"); defineMethod("succ", Arity.noArguments()); defineMethod("succ!", Arity.noArguments(), "succ_bang"); defineMethod("squeeze", Arity.optional()); defineMethod("squeeze!", Arity.optional(), "squeeze_bang"); defineMethod("sub", Arity.optional()); defineMethod("sub!", Arity.optional(), "sub_bang"); defineMethod("sum", Arity.optional()); defineMethod("swapcase", Arity.noArguments()); defineMethod("swapcase!", Arity.noArguments(), "swapcase_bang"); defineMethod("to_f", Arity.noArguments()); defineMethod("to_i", Arity.noArguments()); defineMethod("to_s", Arity.noArguments()); defineMethod("to_str", Arity.noArguments()); defineMethod("to_sym", Arity.noArguments()); defineMethod("tr", Arity.twoArguments()); defineMethod("tr!", Arity.twoArguments(), "tr_bang"); defineMethod("tr_s", Arity.twoArguments()); defineMethod("tr_s!", Arity.twoArguments(), "tr_s_bang"); defineMethod("unpack", Arity.singleArgument()); defineMethod("upcase", Arity.noArguments()); defineMethod("upcase!", Arity.noArguments(), "upcase_bang"); defineMethod("upto", Arity.singleArgument()); defineAlias("<<", "concat"); defineAlias("each", "each_line"); defineAlias("eql?", "=="); defineAlias("intern", "to_sym"); defineAlias("next", "succ"); defineAlias("next!", "succ!"); defineAlias("size", "length"); defineAlias("slice", "[]"); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/ca6b16e996ea9af83ce593594b9c69b9364a9924/StringMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/StringMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4046, 797, 1435, 288, 3639, 2341, 3120, 12, 588, 5576, 7675, 588, 4818, 7675, 588, 799, 10207, 3120, 10663, 3639, 2341, 3120, 12, 588, 5576, 7675, 588, 4818, 7675, 588, 3572, 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, 4750, 918, 4046, 797, 1435, 288, 3639, 2341, 3120, 12, 588, 5576, 7675, 588, 4818, 7675, 588, 799, 10207, 3120, 10663, 3639, 2341, 3120, 12, 588, 5576, 7675, 588, 4818, 7675, 588, 3572, 2...
if(getRowAdapter(handle)!=null)
if ( handle instanceof RowHandle && getRowAdapter( handle ) != null )
private String getBackgroundImage(DesignElementHandle handle ) { if(getRowAdapter(handle)!=null) { return getRowAdapter(handle).getBackgroundImage(handle); } return ""; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/682c38b50c5ceb9f9e26d1868e85fa2221d269ce/TableGridLayer.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/layer/TableGridLayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 336, 8199, 2040, 12, 15478, 1046, 3259, 1640, 262, 202, 95, 202, 202, 430, 12, 588, 1999, 4216, 12, 4110, 13, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 2463, 11835, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 336, 8199, 2040, 12, 15478, 1046, 3259, 1640, 262, 202, 95, 202, 202, 430, 12, 588, 1999, 4216, 12, 4110, 13, 5, 33, 2011, 13, 202, 202, 95, 1082, 202, 2463, 11835, 42...
NumberExpander.expandNumber(n, wordRelation);
NumberExpander.expandNumber(n, wordRelation,tokenItem);
private void romanToWords(WordRelation wordRelation, Item tokenItem, String romanString) { String punctuation = (String) tokenItem.findFeature("p.punc"); if (punctuation.equals("")) { /* no preceeding punctuation */ String n = String.valueOf(NumberExpander.expandRoman(romanString)); if (kingLike(tokenItem)) { wordRelation.addWord(tokenItem, "the"); NumberExpander.expandOrdinal(n, wordRelation); } else if (sectionLike(tokenItem)) { NumberExpander.expandNumber(n, wordRelation); } else { NumberExpander.expandLetters(romanString, wordRelation); } } else { NumberExpander.expandLetters(romanString, wordRelation); } }
49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/460d07833503253a5c476790f8921bd1e3c702a9/TokenToWords.java/buggy/java/de/dfki/lt/mary/modules/en/TokenToWords.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 24137, 304, 774, 7363, 12, 3944, 3963, 2076, 3963, 16, 4342, 1147, 1180, 16, 514, 24137, 304, 780, 13, 288, 3639, 514, 22472, 273, 261, 780, 13, 1147, 1180, 18, 4720, 4595, 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, 918, 24137, 304, 774, 7363, 12, 3944, 3963, 2076, 3963, 16, 4342, 1147, 1180, 16, 514, 24137, 304, 780, 13, 288, 3639, 514, 22472, 273, 261, 780, 13, 1147, 1180, 18, 4720, 4595, 2...
fileName = fn + "." + getFileExtension();
fileName = fn + getFileExtension();
public boolean performFinish( ) { final IPath containerName = newReportFileWizardPage.getContainerFullPath( ); String fn = newReportFileWizardPage.getFileName( ); final String fileName; if ( !fn.endsWith( "." + getFileExtension() ) ) //$NON-NLS-1$ { fileName = fn + "." + getFileExtension(); //$NON-NLS-1$ } else { fileName = fn; } InputStream streamFromPage = null; URL url = Platform.find( Platform.getBundle( ReportPlugin.REPORT_UI ), new Path( "/templates/blank_report.rptdesign" ) );//$NON-NLS-1$ if ( url != null ) { try { streamFromPage = url.openStream( ); } catch ( IOException e1 ) { //ignore. } } final InputStream stream = streamFromPage; IRunnableWithProgress op = new IRunnableWithProgress( ) { public void run( IProgressMonitor monitor ) throws InvocationTargetException { try { doFinish( containerName, fileName, stream, monitor ); } catch ( CoreException e ) { throw new InvocationTargetException( e ); } finally { monitor.done( ); } } }; try { getContainer( ).run( true, false, op ); } catch ( InterruptedException e ) { return false; } catch ( InvocationTargetException e ) { Throwable realException = e.getTargetException( ); ExceptionHandler.handle( realException ); return false; } return true; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f714d7eaed30b0b844c3069afe39af2394e43d4a/NewTemplateWizard.java/clean/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewTemplateWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 12, 262, 202, 95, 202, 202, 6385, 467, 743, 20408, 273, 394, 4820, 812, 27130, 1964, 18, 588, 2170, 24173, 12, 11272, 202, 202, 780, 2295, 273, 394, 4820, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 12, 262, 202, 95, 202, 202, 6385, 467, 743, 20408, 273, 394, 4820, 812, 27130, 1964, 18, 588, 2170, 24173, 12, 11272, 202, 202, 780, 2295, 273, 394, 4820, 8...
rndDef.getCodomainChainDef()); */
rndDef.getSpatialDomainEnhancement());
public Renderer( Pixels pixelsObj, ome.model.display.RenderingDef renderingDefObj, PixelBuffer bufferObj, PixelsStats pixel_stats ) throws Exception // FIXME what exceptions? { if (metadata == null || rndDef == null || buffer == null) throw new IllegalArgumentException("No null values please."); metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; pixelStats = pixel_stats; //Grab pixels metadata -- create default display options if none //available. PixelsDimensions pixelsDims = metadata.getPixelsDimensions(); //Create and configure the quantum strategies. QuantumDef qd = rndDef.getQuantization(); quantumManager = new QuantumManager(metadata.getSizeC().intValue()); ChannelBinding[] cBindings= getChannelBindings(); quantumManager.initStrategies(qd, metadata.getPixelsType(), pixelStats, cBindings); //Compute the location stats. computeLocationStats(getDefaultPlaneDef()); //Create and configure the codomain chain. /* FIXME don't have yet codomainChain = new CodomainChain(qd.getCdStart().intValue(), qd.getCdStop().intValue(), rndDef.getCodomainChainDef()); */ //Create an appropriate rendering strategy. int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/fd28d948457cceff10335f38f67f7866ed76e809/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17589, 12, 5411, 26070, 87, 8948, 2675, 16, 2398, 320, 3501, 18, 2284, 18, 5417, 18, 14261, 3262, 9782, 3262, 2675, 16, 5411, 26070, 1892, 1613, 2675, 16, 5411, 26070, 87, 4195, 495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17589, 12, 5411, 26070, 87, 8948, 2675, 16, 2398, 320, 3501, 18, 2284, 18, 5417, 18, 14261, 3262, 9782, 3262, 2675, 16, 5411, 26070, 1892, 1613, 2675, 16, 5411, 26070, 87, 4195, 495...
saveLine(currentLine, previousLine, c, box, minimumLineHeight,
saveLine(currentLine, previousLine, c, box, minimumLineHeight,
public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int)c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); LineBox previousLine = null; InlineBox currentIB = null; InlineBox previousIB = null; List elementStack = new ArrayList(); if (box instanceof AnonymousBlockBox) { List pending = ((BlockBox)box.getParent()).getPendingInlineElements(); if (pending != null) { currentIB = addNestedInlineBoxes(currentLine, pending, maxAvailableWidth); elementStack = pending; } } CalculatedStyle parentStyle = c.getCurrentStyle(); int indent = (int)parentStyle.getFloatPropertyProportionalWidth(CSSName.TEXT_INDENT, maxAvailableWidth, c); remainingWidth -= indent; currentLine.x = indent; if (! box.getStyle().isCleared()) { remainingWidth -= c.getBlockFormattingContext().getFloatDistance( c, currentLine, remainingWidth); } List pendingFloats = new ArrayList(); int pendingLeftMBP = 0; int pendingRightMBP = 0; int start = pushPseudoClasses(c, contentList); if (c.getFirstLinesTracker().hasStyles()) { c.getFirstLinesTracker().pushStyles(c); } for (int i = start; i < contentList.size(); i++) { Object o = contentList.get(i); if (o instanceof StylePush) { StylePush sp = (StylePush) o; CascadedStyle cascaded = sp.getStyle(c); c.pushStyle(cascaded); CalculatedStyle style = c.getCurrentStyle(); previousIB = currentIB; currentIB = new InlineBox(sp.getElement(), style, maxAvailableWidth); currentIB.calculateHeight(c); elementStack.add(new InlineBoxInfo(cascaded, currentIB)); if (previousIB == null) { currentLine.addChild(currentIB); } else { previousIB.addInlineChild(currentIB); } //To break the line well, assume we don't just want to paint padding on next line pendingLeftMBP += style.getLeftMarginBorderPadding(c, maxAvailableWidth); pendingRightMBP += style.getRightMarginBorderPadding(c, maxAvailableWidth); continue; } if (o instanceof StylePop) { CalculatedStyle style = c.getCurrentStyle(); int rightMBP = style.getRightMarginBorderPadding(c, maxAvailableWidth); pendingRightMBP -= rightMBP; remainingWidth -= rightMBP; elementStack.remove(elementStack.size()-1); currentIB.setEndsHere(true); previousIB = currentIB; currentIB = currentIB.getParent() instanceof LineBox ? null : (InlineBox)currentIB.getParent(); c.popStyle(); continue; } Content content = (Content) o; if (mustBeTakenOutOfFlow(content)) { processOutOfFlowContent(c, content, currentLine, remainingWidth, pendingFloats); } else if (isInlineBlock(content)) { Box inlineBlock = Boxing.layout(c, content); if (inlineBlock.getWidth() > remainingWidth && currentLine.isContainsContent()) { saveLine(currentLine, previousLine, c, box, minimumLineHeight, maxAvailableWidth, elementStack, pendingFloats); inlineBlock = Boxing.layout(c, content); previousLine = currentLine; currentLine = newLine(c, previousLine, box); currentIB = addNestedInlineBoxes(currentLine, elementStack, maxAvailableWidth); previousIB = currentIB.getParent() instanceof LineBox ? null : (InlineBox)currentIB.getParent(); remainingWidth = maxAvailableWidth; if (!box.getStyle().isCleared()) { remainingWidth -= c.getBlockFormattingContext().getFloatDistance( c, currentLine, remainingWidth); } } if (currentIB == null) { currentLine.addChild(inlineBlock); } else { currentIB.addInlineChild(inlineBlock); } currentLine.setContainsContent(true); remainingWidth -= inlineBlock.getWidth(); } else { TextContent text = (TextContent)content; LineBreakContext lbContext = new LineBreakContext(); lbContext.setMaster(TextUtil.transformText(text.getText(), c.getCurrentStyle())); do { lbContext.reset(); int fit = 0; if (lbContext.getStart() == 0) { fit += pendingLeftMBP; } if (hasTrimmableLeadingSpace(currentLine, c.getCurrentStyle(), lbContext)) { lbContext.setStart(lbContext.getStart() + 1); } InlineText inlineText = layoutText(c, remainingWidth - fit, lbContext); if (! lbContext.isUnbreakable() || (lbContext.isUnbreakable() && currentLine.isContainsContent())) { currentIB.addInlineChild(inlineText); currentLine.setContainsContent(true); lbContext.setStart(lbContext.getEnd()); remainingWidth -= inlineText.getWidth(); } if (lbContext.isNeedsNewLine()) { saveLine(currentLine, previousLine, c, box, minimumLineHeight, maxAvailableWidth, elementStack, pendingFloats); previousLine = currentLine; currentLine = newLine(c, previousLine, box); currentIB = addNestedInlineBoxes(currentLine, elementStack, maxAvailableWidth); previousIB = currentIB.getParent() instanceof LineBox ? null : (InlineBox)currentIB.getParent(); remainingWidth = maxAvailableWidth; if (!box.getStyle().isCleared()) { remainingWidth -= c.getBlockFormattingContext().getFloatDistance( c, currentLine, remainingWidth); } } } while (! lbContext.isFinished()); } } saveLine(currentLine, previousLine, c, box, minimumLineHeight, maxAvailableWidth, elementStack, pendingFloats); if (box instanceof AnonymousBlockBox) { ((BlockBox)box.getParent()).setPendingInlineElements( elementStack.size() == 0 ? null : elementStack); } // XXX what does this do? if (!c.shrinkWrap()) box.contentWidth = maxAvailableWidth; box.setHeight(currentLine.y + currentLine.getHeight()); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/ceb21dee5f070c3ac63d70ae7b6eb22a7c0b4641/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3511, 1350, 12, 3744, 1042, 276, 16, 8549, 3919, 16, 987, 913, 682, 13, 288, 3639, 509, 943, 5268, 2384, 273, 276, 18, 588, 2482, 4877, 7675, 2819, 31, 3639, 509, 4463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3511, 1350, 12, 3744, 1042, 276, 16, 8549, 3919, 16, 987, 913, 682, 13, 288, 3639, 509, 943, 5268, 2384, 273, 276, 18, 588, 2482, 4877, 7675, 2819, 31, 3639, 509, 4463, ...
"Button.margin", new InsetsUIResource(2, 14, 2, 14),
"Button.margin", new InsetsUIResource(2, 2, 2, 2),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x66, 0x66, 0x99); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.lightGray), "Button.border", BorderUIResource.getEtchedBorderUIResource(), "Button.darkShadow", new ColorUIResource(Color.darkGray), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "Button.focus", midPurple, "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.black), "Button.highlight", new ColorUIResource(Color.white), "Button.light", new ColorUIResource(Color.lightGray.brighter()), "Button.margin", new InsetsUIResource(2, 14, 2, 14), "Button.shadow", new ColorUIResource(Color.gray), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(Color.lightGray), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.darkShadow", new ColorUIResource(Color.darkGray), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(Color.black), "CheckBox.highlight", new ColorUIResource(Color.white), "CheckBox.icon", BasicIconFactory.getCheckBoxIcon(), "CheckBox.light", new ColorUIResource(Color.lightGray.brighter()), "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.shadow", new ColorUIResource(Color.gray), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(Color.lightGray), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", BasicIconFactory.getCheckBoxMenuItemIcon(), "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(Color.black), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(lightPurple), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.black), "ColorChooser.background", new ColorUIResource(Color.lightGray), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(Color.black), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", new Integer(66), "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", new Integer(71), "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", new Integer(82), "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(Color.lightGray), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.disabledBackground", new ColorUIResource(Color.lightGray), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(lightPurple), "ComboBox.selectionForeground", new ColorUIResource(Color.black), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "Desktop.background", new ColorUIResource(175, 163, 236), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", new BasicBorders.MarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.red), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.lightGray), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", new Integer(67), "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", // XXX Don't use gif "FileChooser.detailsViewIcon", new IconUIResource(new ImageIcon("icons/DetailsView.gif")), "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.helpButtonMnemonic", new Integer(72), "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", // XXX Don't use gif "FileChooser.homeFolderIcon", new IconUIResource(new ImageIcon("icons/HomeFolder.gif")), // XXX Don't use gif "FileChooser.listViewIcon", new IconUIResource(new ImageIcon("icons/ListView.gif")), "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", // XXX Don't use gif "FileChooser.newFolderIcon", new IconUIResource(new ImageIcon("icons/NewFolder.gif")), "FileChooser.openButtonMnemonic", new Integer(79), "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", new Integer(83), "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", // XXX Don't use gif "FileChooser.upFolderIcon", new IconUIResource(new ImageIcon("icons/UpFolder.gif")), "FileChooser.updateButtonMnemonic", new Integer(85), "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", // XXX Don't use gif "FileView.computerIcon", new IconUIResource(new ImageIcon("icons/Computer.gif")), // XXX Don't use gif "FileView.directoryIcon", new IconUIResource(new ImageIcon("icons/Directory.gif")), // XXX Don't use gif "FileView.fileIcon", new IconUIResource(new ImageIcon("icons/File.gif")), // XXX Don't use gif "FileView.floppyDriveIcon", new IconUIResource(new ImageIcon("icons/Floppy.gif")), // XXX Don't use gif "FileView.hardDriveIcon", new IconUIResource(new ImageIcon("icons/HardDrive.gif")), "FocusManagerClassName", "TODO", "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(162, 167, 241), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.black), "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null, null), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), // XXX Don't use gif "InternalFrame.icon", new IconUIResource(new ImageIcon("icons/JavaCup.gif")), "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.lightGray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.black), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.PLAIN, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(Color.lightGray), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(Color.gray), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(Color.black), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "ctrl \\", "clearSelection", "PAGE_DOWN", "scrollDown", "shift PAGE_DOWN","scrollDownExtendSelection", "END", "selectLastRow", "HOME", "selectFirstRow", "shift END", "selectLastRowExtendSelection", "shift HOME", "selectFirstRowExtendSelection", "UP", "selectPreviousRow", "ctrl /", "selectAll", "ctrl A", "selectAll", "DOWN", "selectNextRow", "shift UP", "selectPreviousRowExtendSelection", "ctrl SPACE", "selectNextRowExtendSelection", "shift DOWN", "selectNextRowExtendSelection", "KP_UP", "selectPreviousRow", "shift PAGE_UP","scrollUpExtendSelection", "KP_DOWN", "selectNextRow" }), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0xCC, 0xCC, 0xFF), "List.selectionForeground", new ColorUIResource(Color.black), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.acceleratorForeground", new ColorUIResource(Color.black), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(Color.lightGray), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(Color.black), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.selectionBackground", new ColorUIResource(lightPurple), "Menu.selectionForeground", new ColorUIResource(Color.black), "MenuBar.background", new ColorUIResource(Color.lightGray), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(Color.black), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(Color.black), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(Color.lightGray), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(Color.black), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(lightPurple), "MenuItem.selectionForeground", new ColorUIResource(Color.black), "OptionPane.background", new ColorUIResource(Color.lightGray), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.cancelButtonText", "Cancel", // XXX Don't use gif "OptionPane.errorIcon", new IconUIResource(new ImageIcon("icons/Error.gif")), "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(Color.black), // XXX Don't use gif "OptionPane.informationIcon", new IconUIResource(new ImageIcon("icons/Inform.gif")), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(Color.black), "OptionPane.minimumSize", new DimensionUIResource(262, 90), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", // XXX Don't use gif "OptionPane.questionIcon", new IconUIResource(new ImageIcon("icons/Question.gif")), // XXX Don't use gif "OptionPane.warningIcon", new IconUIResource(new ImageIcon("icons/Warn.gif")), "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(Color.lightGray), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(Color.white), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept")}, "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(lightPurple), "PasswordField.selectionForeground", new ColorUIResource(Color.black), "PopupMenu.background", new ColorUIResource(Color.lightGray), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(Color.black), "ProgressBar.background", new ColorUIResource(Color.lightGray), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.darkGray), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(midPurple), "ProgressBar.selectionBackground", new ColorUIResource(lightPurple), "ProgressBar.selectionForeground", new ColorUIResource(Color.lightGray), "ProgressBar.repaintInterval", new Integer(250), "ProgressBar.cycleTime", new Integer(6000), "RadioButton.background", new ColorUIResource(Color.lightGray), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(Color.darkGray), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(Color.black), "RadioButton.highlight", new ColorUIResource(Color.white), "RadioButton.icon", BasicIconFactory.getRadioButtonIcon(), "RadioButton.light", new ColorUIResource(Color.lightGray.brighter()), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(Color.gray), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(Color.black), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(Color.lightGray), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(Color.black), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(lightPurple), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.black), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "positiveUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "negativeUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(Color.lightGray), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(Color.lightGray), "ScrollBar.thumbDarkShadow", new ColorUIResource(Color.black), "ScrollBar.thumbHighlight", new ColorUIResource(Color.white), "ScrollBar.thumbLightShadow", new ColorUIResource(Color.gray), "ScrollBar.track", new ColorUIResource(224, 224, 224), "ScrollBar.trackHighlight", new ColorUIResource(Color.black), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(Color.lightGray), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(Color.black), "Separator.background", new ColorUIResource(Color.white), "Separator.foreground", new ColorUIResource(Color.gray), "Separator.highlight", new ColorUIResource(Color.white), "Separator.shadow", new ColorUIResource(Color.gray), "Slider.background", new ColorUIResource(Color.lightGray), "Slider.focus", new ColorUIResource(Color.black), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "positiveBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "negativeUnitIncrement", "KP_UP", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_RIGHT", "positiveUnitIncrement" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(Color.lightGray), "Slider.highlight", new ColorUIResource(Color.white), "Slider.shadow", new ColorUIResource(Color.gray), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(10), "Slider.tickHeight", new Integer(12), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncremnent", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement" }), "SplitPane.background", new ColorUIResource(Color.lightGray), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", new ColorUIResource(Color.white), "SplitPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(Color.LIGHT_GRAY), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(Color.darkGray), "TabbedPane.focus", new ColorUIResource(Color.black), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "navigateLeft", "KP_UP", "navigateUp", "ctrl DOWN", "requestFocusForVisibleComponent", "UP", "navigateUp", "KP_DOWN", "navigateDown", "RIGHT", "navigateRight", "KP_LEFT", "navigateLeft", "ctrl KP_DOWN", "requestFocusForVisibleComponent", "KP_RIGHT", "navigateRight", "DOWN", "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(Color.black), "TabbedPane.highlight", new ColorUIResource(Color.lightGray), "TabbedPane.lightHighlight", new ColorUIResource(Color.white), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(Color.gray), "TabbedPane.tabbedPaneTabAreaInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabInsets", new InsetsUIResource(1, 4, 1, 4), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollRightExtendSelection", "shift KP_RIGHT", " selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection" }), "Table.background", new ColorUIResource(Color.white), "Table.focusCellBackground", new ColorUIResource(Color.white), "Table.focusCellForeground", new ColorUIResource(Color.black), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(Color.white), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(Color.black), "Table.gridColor", new ColorUIResource(Color.gray), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(lightPurple), "Table.selectionForeground", new ColorUIResource(Color.black), "TableHeader.background", new ColorUIResource(Color.lightGray), "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(Color.black), "TextArea.background", new ColorUIResource(Color.white), "TextArea.border", new BasicBorders.MarginBorder(), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(lightPurple), "TextArea.selectionForeground", new ColorUIResource(Color.black), "TextField.background", new ColorUIResource(Color.white), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.inactiveForeground", new ColorUIResource(Color.gray), "TextField.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "notify-field-accept"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, InputEvent.SHIFT_DOWN_MASK), "selection-backward"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, InputEvent.SHIFT_DOWN_MASK), "selection-forward"), }, "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(lightPurple), "TextField.selectionForeground", new ColorUIResource(Color.black), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", new BasicBorders.MarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.keyBindings", new JTextComponent.KeyBinding[] { new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), "caret-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), "caret-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0), "page-up"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0), "page-down"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "insert-break"), new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "insert-tab") }, "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.lightGray), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(Color.black), "ToggleButton.background", new ColorUIResource(Color.lightGray), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "SPACE", "pressed", "released SPACE", "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(Color.black), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(Color.lightGray), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.dockingBackground", new ColorUIResource(Color.lightGray), "ToolBar.dockingForeground", new ColorUIResource(11, 30, 143), "ToolBar.floatingBackground", new ColorUIResource(Color.lightGray), "ToolBar.floatingForeground", new ColorUIResource(113, 171, 212), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(Color.black), "ToolBar.separatorSize", new DimensionUIResource(20, 20), "ToolTip.background", new ColorUIResource(122, 178, 241), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(Color.black), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(Color.white), "Tree.changeSelectionWithFocus", Boolean.TRUE, "Tree.closedIcon", new IconUIResource(new ImageIcon("icons/TreeClosed.png")), "Tree.collapsedIcon", new IconUIResource(new ImageIcon("icons/TreeCollapsed.png")), "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLast", "ctrl KP_UP", "selectPreviousChangeLead", "shift END", "selectLastExtendSelection", "HOME", "selectFirst", "ctrl END", "selectLastChangeLead", "ctrl /", "selectAll", "LEFT", "selectParent", "shift HOME", "selectFirstExtendSelection", "UP", "selectPrevious", "ctrl KP_DOWN", "selectNextChangeLead", "RIGHT", "selectChild", "ctrl HOME", "selectFirstChangeLead", "DOWN", "selectNext", "ctrl KP_LEFT", "scrollLeft", "shift UP", "selectPreviousExtendSelection", "F2", "startEditing", "ctrl LEFT", "scrollLeft", "ctrl KP_RIGHT","scrollRight", "ctrl UP", "selectPreviousChangeLead", "shift DOWN", "selectNextExtendSelection", "ENTER", "toggle", "KP_UP", "selectPrevious", "KP_DOWN", "selectNext", "ctrl RIGHT", "scrollRight", "KP_LEFT", "selectParent", "KP_RIGHT", "selectChild", "ctrl DOWN", "selectNextChangeLead", "ctrl A", "selectAll", "shift KP_UP", "selectPreviousExtendSelection", "shift KP_DOWN","selectNextExtendSelection", "ctrl SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_UP", "scrollUpExtendSelection", "ctrl \\", "clearSelection", "shift SPACE", "extendSelection", "ctrl PAGE_UP", "scrollUpChangeLead", "shift PAGE_UP","scrollUpExtendSelection", "SPACE", "toggleSelectionPreserveAnchor", "ctrl shift PAGE_DOWN", "scrollDownExtendSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl PAGE_DOWN", "scrollDownChangeLead" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.expandedIcon", new IconUIResource(new ImageIcon("icons/TreeExpanded.png")), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(Color.gray), "Tree.leafIcon", new IconUIResource(new ImageIcon("icons/TreeLeaf.png")), "Tree.leftChildIndent", new Integer(7), "Tree.openIcon", new IconUIResource(new ImageIcon("icons/TreeOpen.png")), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(lightPurple), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(Color.black), "Tree.textBackground", new ColorUIResource(Color.lightGray), "Tree.textForeground", new ColorUIResource(Color.black), "Viewport.background", new ColorUIResource(Color.lightGray), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12), }; defaults.putDefaults(uiDefaults); }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/ad7faaeacbc1bee9c151157d2dc0cf81585881af/BasicLookAndFeel.java/clean/libjava/javax/swing/plaf/basic/BasicLookAndFeel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 368, 1021, 805, 10176, 471, 5782, 292, 10555, 358, 999, 4259, 8925, 5405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1841, 7019, 12, 3060, 73, 643, 87, 3467, 13, 225, 288, 565, 1033, 8526, 5915, 7019, 31, 3639, 368, 1021, 805, 10176, 471, 5782, 292, 10555, 358, 999, 4259, 8925, 5405, ...
+ name + "\"");
+ name + '"');
private static void dumpICode(InterpreterData idata) { if (Context.printICode) { try { int iCodeLength = idata.itsICodeTop; byte iCode[] = idata.itsICode; String[] strings = idata.itsStringTable; out = new PrintWriter(new FileOutputStream("icode.txt", true)); out.println("ICode dump, for " + idata.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + idata.itsMaxStack); for (int pc = 0; pc < iCodeLength; ) { out.print("[" + pc + "] "); int token = iCode[pc] & 0xff; String tname = icodeToName(token); int old_pc = pc; ++pc; int icodeLength = icodeTokenLength(token); switch (token) { default: if (icodeLength != 1) Context.codeBug(); out.println(tname); break; case TokenStream.GOSUB : case TokenStream.GOTO : case TokenStream.IFEQ : case TokenStream.IFNE : { int newPC = getTarget(iCode, pc); out.println(tname + " " + newPC); pc += 2; break; } case TokenStream.TRY : { int catch_offset = getShort(iCode, pc); int finally_offset = getShort(iCode, pc + 2); int catch_pc = (catch_offset == 0) ? -1 : pc - 1 + catch_offset; int finally_pc = (finally_offset == 0) ? -1 : pc - 1 + finally_offset; out.println(tname + " " + catch_pc + " " + finally_pc); pc += 4; break; } case TokenStream.RETSUB : case TokenStream.ENUMINIT : case TokenStream.ENUMNEXT : case TokenStream.VARINC : case TokenStream.VARDEC : case TokenStream.GETVAR : case TokenStream.SETVAR : case TokenStream.NEWTEMP : case TokenStream.USETEMP : { int slot = (iCode[pc] & 0xFF); out.println(tname + " " + slot); pc++; break; } case TokenStream.CALLSPECIAL : { int line = getShort(iCode, pc); String name = strings[getIndex(iCode, pc + 2)]; int count = getIndex(iCode, pc + 4); out.println(tname + " " + count + " " + line + " " + name); pc += 6; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc); Object regexp = idata.itsRegExpLiterals[i]; out.println(tname + " " + regexp); pc += 2; break; } case TokenStream.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpretedFunction f = idata.itsNestedFunctions[i]; out.println(tname + " " + f); pc += 2; break; } case TokenStream.NEW : case TokenStream.CALL : { int count = getIndex(iCode, pc + 2); String name = strings[getIndex(iCode, pc)]; out.println(tname + " " + count + " \"" + name + "\""); pc += 4; break; } case SHORTNUMBER_ICODE : { int value = getShort(iCode, pc); out.println(tname + " " + value); pc += 2; break; } case INTNUMBER_ICODE : { int value = getInt(iCode, pc); out.println(tname + " " + value); pc += 4; break; } case TokenStream.NUMBER : { int index = getIndex(iCode, pc); double value = idata.itsDoubleTable[index]; out.println(tname + " " + value); pc += 2; break; } case TokenStream.TYPEOFNAME : case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.SETNAME : case TokenStream.NAME : case TokenStream.NAMEINC : case TokenStream.NAMEDEC : case TokenStream.STRING : out.println(tname + " \"" + strings[getIndex(iCode, pc)] + "\""); pc += 2; break; case LINE_ICODE : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; break; } } if (old_pc + icodeLength != pc) Context.codeBug(); } out.close(); } catch (IOException x) {} } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/860b9096de59c2eb2dd2526fe38dc8524d6b82a9/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 612, 396, 13, 288, 3639, 309, 261, 1042, 18, 1188, 45, 1085, 13, 288, 5411, 775, 288, 7734, 509, 277, 1085, 1782, 273, 612, 396, 18, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 612, 396, 13, 288, 3639, 309, 261, 1042, 18, 1188, 45, 1085, 13, 288, 5411, 775, 288, 7734, 509, 277, 1085, 1782, 273, 612, 396, 18, 12...
file.recalculateCHK(queueManager);
file.recalculateCHK(this.queueManager);
public void actionPerformed(ActionEvent e) { if(fileList == null) return; String keys = ""; Vector files = null; java.io.File destination = null; if (e.getSource() == gotoIndex) { if (selectedRows.length <= 0) return; thaw.plugins.index.File file = (thaw.plugins.index.File)fileList.getFileList().get(selectedRows[0]); if (file.getParentId() == -1) { Logger.notice(this, "No parent ? abnormal"); return; } Index parent = tree.getRoot().getIndex(file.getParentId()); if (parent == null) { Logger.notice(this, "Cannot find again the parent ?! Id: "+Integer.toString(file.getParentId())); return; } tables.setList(parent); int row; row = parent.getFilePosition(file); if (row < 0) Logger.notice(this, "File not found in the index ?! Index : "+parent.getPublicKey()+" ; File: " +file.getPublicKey()); else setSelectedRows(row, row); return; } if(e.getSource() == downloadFiles) { FileChooser fileChooser ; if (config.getValue("lastDestinationDirectory") == null) fileChooser = new FileChooser(); else fileChooser = new FileChooser(config.getValue("lastDestinationDirectory")); fileChooser.setTitle(I18n.getMessage("thaw.plugin.fetch.destinationDirectory")); fileChooser.setDirectoryOnly(true); fileChooser.setDialogType(JFileChooser.SAVE_DIALOG); destination = fileChooser.askOneFile(); if(destination == null) return; config.setValue("lastDestinationDirectory", destination.getPath()); } if(e.getSource() == removeFiles) { files = fileList.getFileList(); } for(int i = 0 ; i < selectedRows.length ; i++) { if(e.getSource() == removeFiles) { Index index = (Index)fileList; thaw.plugins.index.File file = (thaw.plugins.index.File)files.get(selectedRows[i]); if (file.getTransfer() != null) file.getTransfer().stop(queueManager); index.removeFile(file); } if(e.getSource() == insertFiles) { Index index = (Index)fileList; thaw.plugins.index.File file = index.getFile(selectedRows[i]); file.insertOnFreenet(queueManager); } if(e.getSource() == downloadFiles) { thaw.plugins.index.File file = fileList.getFile(selectedRows[i]); if (file == null) { Logger.notice(this, "File disappeared ?"); continue; } file.download(destination.getPath(), queueManager); } if(e.getSource() == copyFileKeys) { thaw.plugins.index.File file = fileList.getFile(selectedRows[i]); if(file.getPublicKey() != null) keys = keys + file.getPublicKey() + "\n"; } if(e.getSource() == recalculateKeys) { thaw.plugins.index.File file = fileList.getFile(selectedRows[i]); file.recalculateCHK(queueManager); } } if(e.getSource() == copyFileKeys) { Toolkit tk = Toolkit.getDefaultToolkit(); StringSelection st = new StringSelection(keys); Clipboard cp = tk.getSystemClipboard(); cp.setContents(st, null); } }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/FileTable.java/clean/src/thaw/plugins/index/FileTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 430, 12, 768, 682, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 780, 1311, 273, 1408, 31, 9506, 202, 5018, 1390, 273, 446...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 430, 12, 768, 682, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 780, 1311, 273, 1408, 31, 9506, 202, 5018, 1390, 273, 446...
preAuthenticatedSessions.remove(session.getAddress().getResource());
boolean preauth_removed = preAuthenticatedSessions.remove(session.getAddress().getResource()) != null;
public void removeSession(ClientSession session) { // Do nothing if session is null or if the server is shutting down. Note: When the server // is shutting down the serverName will be null. if (session == null || serverName == null) { return; } if (anonymousSessions.remove(session.getAddress().getResource()) != null) { // Fire session event. SessionEventDispatcher.dispatchEvent(session, SessionEventDispatcher.EventType.anonymous_session_destroyed); } else { // If this is a non-anonymous session then remove the session from the SessionMap String username = session.getAddress().getNode(); if (username != null) { SessionMap sessionMap = sessions.get(username); if (sessionMap != null) { synchronized (username.intern()) { sessionMap.removeSession(session); } if (sessionMap.isEmpty()) { sessions.remove(username); } } if (sessionMap != null) { // Fire session event. SessionEventDispatcher.dispatchEvent(session, SessionEventDispatcher.EventType.session_destroyed); } } } // Remove the session from the pre-Authenticated sessions list (if present) preAuthenticatedSessions.remove(session.getAddress().getResource()); // If the user is still available then send an unavailable presence Presence presence = session.getPresence(); if (presence.isAvailable()) { Presence offline = new Presence(); offline.setFrom(session.getAddress()); offline.setTo(new JID(null, serverName, null)); offline.setType(Presence.Type.unavailable); router.route(offline); } }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/e983d2b9e54eee202b8a2ca63bd2f97a1c5a47a6/SessionManager.java/buggy/src/java/org/jivesoftware/wildfire/SessionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 2157, 12, 1227, 2157, 1339, 13, 288, 3639, 368, 2256, 5083, 309, 1339, 353, 446, 578, 309, 326, 1438, 353, 24376, 2588, 18, 3609, 30, 5203, 326, 1438, 3639, 368, 353, 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, 1206, 2157, 12, 1227, 2157, 1339, 13, 288, 3639, 368, 2256, 5083, 309, 1339, 353, 446, 578, 309, 326, 1438, 353, 24376, 2588, 18, 3609, 30, 5203, 326, 1438, 3639, 368, 353, 2...
Picture p = mAlbum.getPicture( index ); File f = p.getSource(); if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) { ImageIcon icon = getThumbnail( p ); setIcon( icon ); setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() );
if (value != null && index != -1) { Picture p = mAlbum.getPicture( index ); File f = p.getSource(); if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) { ImageIcon icon = getThumbnail( p ); setIcon( icon ); setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() ); } String text = f.getName(); if ( GalleryRemote.getInstance().properties.getShowPath() ) { text += " [" + f.getParent() + "]"; } setText( text ); } else { setText("dummy");
public Component getListCellRendererComponent( JList list, Object value, int index, boolean selected, boolean hasFocus ) { super.getListCellRendererComponent( list, value, index, selected, hasFocus ); Picture p = mAlbum.getPicture( index ); File f = p.getSource(); if ( GalleryRemote.getInstance().properties.getShowThumbnails() ) { ImageIcon icon = getThumbnail( p ); setIcon( icon ); setIconTextGap( 4 + GalleryRemote.getInstance().properties.getThumbnailSize().width - icon.getIconWidth() ); } String text = f.getName(); if ( GalleryRemote.getInstance().properties.getShowPath() ) { text += " [" + f.getParent() + "]"; } setText( text ); return this; }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/1b6c0b12ba817b49a0f014dce850d37ab0818f02/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 5435, 10033, 4020, 6747, 1841, 12, 9506, 202, 46, 682, 666, 16, 1033, 460, 16, 509, 770, 16, 9506, 202, 6494, 3170, 16, 1250, 711, 9233, 262, 288, 1082, 202, 9565, 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, 3196, 202, 482, 5435, 10033, 4020, 6747, 1841, 12, 9506, 202, 46, 682, 666, 16, 1033, 460, 16, 509, 770, 16, 9506, 202, 6494, 3170, 16, 1250, 711, 9233, 262, 288, 1082, 202, 9565, 18, 588, ...
Action instance = (Action) actions.get(className); if (instance != null) {
Action instance = null; synchronized (actions) { instance = (Action) actions.get(className); if (instance != null) { if (log.isTraceEnabled()) { log.trace(" Returning existing Action instance"); } return (instance); }
protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException { // Acquire the Action instance we will be using (if there is one) String className = mapping.getType(); if (log.isDebugEnabled()) { log.debug(" Looking for Action instance for class " + className); } Action instance = (Action) actions.get(className); if (instance != null) { if (log.isTraceEnabled()) { log.trace(" Returning existing Action instance of class '" + className + "'"); } return (instance); } // Create a new Action instance if necessary if (log.isTraceEnabled()) { log.trace(" Creating new Action instance of class '" + className + "'"); } synchronized (actions) { try { instance = (Action) RequestUtils.applicationInstance(className); instance.setServlet(this.servlet); actions.put(className, instance); } catch (Throwable t) { log.error(getInternal().getMessage("actionCreate", mapping.getPath()), t); response.sendError (HttpServletResponse.SC_INTERNAL_SERVER_ERROR, getInternal().getMessage("actionCreate", mapping.getPath())); return (null); } } return (instance); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/a970eb90c1e49f7a5edeef8a8d8edb62cea3e5a2/RequestProcessor.java/clean/src/share/org/apache/struts/action/RequestProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4382, 1207, 1803, 1684, 12, 2940, 18572, 590, 16, 29159, 12446, 766, 16, 29159, 4382, 3233, 2874, 13, 3639, 1216, 1860, 288, 3639, 368, 28822, 326, 4382, 791, 732, 903, 506, 1450, 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, 4750, 4382, 1207, 1803, 1684, 12, 2940, 18572, 590, 16, 29159, 12446, 766, 16, 29159, 4382, 3233, 2874, 13, 3639, 1216, 1860, 288, 3639, 368, 28822, 326, 4382, 791, 732, 903, 506, 1450, 2...
_context.jobQueue().addJob(new LeaveTunnel(_context, cfg));
_leaveJob.add(cfg);
public void joinInboundGateway(HopConfig cfg) { if (_log.shouldLog(Log.INFO)) _log.info("Joining as inbound gateway: " + cfg); TunnelGateway.QueuePreprocessor preproc = new TrivialRouterPreprocessor(_context); TunnelGateway.Sender sender = new InboundSender(_context, cfg); TunnelGateway.Receiver receiver = new InboundGatewayReceiver(_context, cfg); TunnelGateway gw = new TunnelGateway(_context, preproc, sender, receiver); TunnelId recvId = cfg.getReceiveTunnel(); synchronized (_inboundGateways) { _inboundGateways.put(recvId, gw); } int numParticipants = 0; synchronized (_participatingConfig) { _participatingConfig.put(recvId, cfg); numParticipants = _participatingConfig.size(); } _context.statManager().addRateData("tunnel.participatingTunnels", numParticipants, 0); _context.statManager().addRateData("tunnel.joinInboundGateway", 1, 0); if (cfg.getExpiration() > _lastParticipatingExpiration) _lastParticipatingExpiration = cfg.getExpiration(); _context.jobQueue().addJob(new LeaveTunnel(_context, cfg)); }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/c17433cb9342d6d49730c0ed662f8cb0369629bb/TunnelDispatcher.java/clean/router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1233, 20571, 5197, 12, 27461, 809, 2776, 13, 288, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5923, 3719, 5411, 389, 1330, 18, 1376, 2932, 4572, 310, 487, 13357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1233, 20571, 5197, 12, 27461, 809, 2776, 13, 288, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5923, 3719, 5411, 389, 1330, 18, 1376, 2932, 4572, 310, 487, 13357, ...
z ^= ((rNToGo == 1) ? 1 : 0);
z ^= ( ( rNToGo == 1 ) ? 1 : 0 );
private void setupRandPartB() { if (ch2 != chPrev) { currentState = RAND_PART_A_STATE; count = 1; setupRandPartA(); } else { count++; if (count >= 4) { z = ll8[tPos]; tPos = tt[tPos]; if (rNToGo == 0) { rNToGo = rNums[rTPos]; rTPos++; if (rTPos == 512) { rTPos = 0; } } rNToGo--; z ^= ((rNToGo == 1) ? 1 : 0); j2 = 0; currentState = RAND_PART_C_STATE; setupRandPartC(); } else { currentState = RAND_PART_A_STATE; setupRandPartA(); } } }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2InputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2InputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 54, 464, 1988, 38, 1435, 288, 3639, 309, 261, 343, 22, 480, 462, 9958, 13, 288, 5411, 17773, 273, 534, 4307, 67, 15055, 67, 37, 67, 7998, 31, 5411, 1056, 273, 404, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 54, 464, 1988, 38, 1435, 288, 3639, 309, 261, 343, 22, 480, 462, 9958, 13, 288, 5411, 17773, 273, 534, 4307, 67, 15055, 67, 37, 67, 7998, 31, 5411, 1056, 273, 404, 31...
for (int i = 0; i < markers.length; i++) { ConcreteMarker marker = markers[i];
for (int i = 0; i < markers.length; i++) { ConcreteMarker marker = markers[i];
public void clearCache() { for (int i = 0; i < markers.length; i++) { ConcreteMarker marker = markers[i]; marker.clearCache(); } markerTable = null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/2bc2f7e05493c8f842d6d73cc7cb85357120cefd/MarkerList.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19346, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11754, 18, 2469, 31, 277, 27245, 288, 5411, 735, 6883, 7078, 5373, 273, 11754, 63, 77, 15533, 5411, 5373, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19346, 1435, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11754, 18, 2469, 31, 277, 27245, 288, 5411, 735, 6883, 7078, 5373, 273, 11754, 63, 77, 15533, 5411, 5373, ...
int mod = gen.getModifiers(md.getModifiers());
int mod = MemberCodeGen.getModifiers(md.getModifiers());
private CtMember compileMethod(Parser p, MethodDecl md) throws CompileError { int mod = gen.getModifiers(md.getModifiers()); CtClass[] plist = gen.makeParamList(md); CtClass[] tlist = gen.makeThrowsList(md); recordParams(plist, Modifier.isStatic(mod)); md = p.parseMethod2(stable, md); try { if (md.isConstructor()) { CtConstructor cons = new CtConstructor(plist, gen.getThisClass()); cons.setModifiers(mod); md.accept(gen); cons.getMethodInfo().setCodeAttribute( bytecode.toCodeAttribute()); cons.setExceptionTypes(tlist); return cons; } else { Declarator r = md.getReturn(); CtClass rtype = gen.lookupClass(r); recordReturnType(rtype, false); CtMethod method = new CtMethod(rtype, r.getVariable().get(), plist, gen.getThisClass()); method.setModifiers(mod); gen.setThisMethod(method); md.accept(gen); if (md.getBody() != null) method.getMethodInfo().setCodeAttribute( bytecode.toCodeAttribute()); else method.setModifiers(mod | Modifier.ABSTRACT); method.setExceptionTypes(tlist); return method; } } catch (NotFoundException e) { throw new CompileError(e.toString()); } }
56357 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56357/cb8289a695f07fc5cd9e41fdddb0551d988cad0f/Javac.java/clean/src/main/javassist/compiler/Javac.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 30714, 4419, 4074, 1305, 12, 2678, 293, 16, 2985, 3456, 3481, 13, 3639, 1216, 16143, 668, 565, 288, 3639, 509, 681, 273, 8596, 1085, 7642, 18, 588, 11948, 12, 1264, 18, 588, 11948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30714, 4419, 4074, 1305, 12, 2678, 293, 16, 2985, 3456, 3481, 13, 3639, 1216, 16143, 668, 565, 288, 3639, 509, 681, 273, 8596, 1085, 7642, 18, 588, 11948, 12, 1264, 18, 588, 11948, ...
logger.info("UniqueID The Id is " + id + " and the address is " + vmID); }
logger.info("UniqueID The Id is " + id + " and the address is " + vmID); }
public void echo() { logger.info("UniqueID The Id is " + id + " and the address is " + vmID); }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/1bd4ada33b51ed3962ad046c6081510aee643f54/UniqueID.java/buggy/src/org/objectweb/proactive/core/UniqueID.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3376, 1435, 288, 565, 1194, 18, 1376, 2932, 31118, 1021, 3124, 353, 315, 397, 612, 397, 315, 471, 326, 1758, 353, 315, 397, 4268, 734, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3376, 1435, 288, 565, 1194, 18, 1376, 2932, 31118, 1021, 3124, 353, 315, 397, 612, 397, 315, 471, 326, 1758, 353, 315, 397, 4268, 734, 1769, 225, 289, 2, -100, -100, -100, -1...
public RuleDescr rule() throws RecognitionException { RuleDescr rule; Token loc=null; Token any=null; String ruleName = null; rule = null; String consequence = ""; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:212:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* 'end' opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:212:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* 'end' opt_eol { following.push(FOLLOW_opt_eol_in_rule539); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,27,FOLLOW_27_in_rule545); following.push(FOLLOW_word_in_rule549); ruleName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_rule551); opt_eol(); following.pop(); rule = new RuleDescr( ruleName, null ); rule.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:218:17: ( rule_attributes[rule] )? int alt19=2; switch ( input.LA(1) ) { case 29: case 31: alt19=1; break; case EOL: case 21: case 32: case 33: case 34: case 35: case 36: alt19=1; break; case 28: alt19=1; break; case 30: alt19=1; break; default: NoViableAltException nvae = new NoViableAltException("218:17: ( rule_attributes[rule] )?", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:218:25: rule_attributes[rule] { following.push(FOLLOW_rule_attributes_in_rule562); rule_attributes(rule); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_rule572); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:221:17: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? int alt22=2; int LA22_0 = input.LA(1); if ( LA22_0==28 ) { alt22=1; } else if ( LA22_0==30 ) { alt22=2; } else { NoViableAltException nvae = new NoViableAltException("221:17: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 22, 0, input); throw nvae; } switch (alt22) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:221:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_rule580); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:221:36: ( ':' )? int alt20=2; int LA20_0 = input.LA(1); if ( LA20_0==29 ) { int LA20_1 = input.LA(2); if ( !( expander != null ) ) { alt20=1; } else if ( expander != null ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("221:36: ( \':\' )?", 20, 1, input); throw nvae; } } else if ( (LA20_0>=EOL && LA20_0<=28)||(LA20_0>=30 && LA20_0<=54) ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("221:36: ( \':\' )?", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:221:36: ':' { match(input,29,FOLLOW_29_in_rule582); } break; } following.push(FOLLOW_opt_eol_in_rule585); opt_eol(); following.pop(); AndDescr lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt21=2; switch ( input.LA(1) ) { case EOL: case INT: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 14: case 15: case 16: case 17: case 18: case 19: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 53: case 54: alt21=1; break; case 20: int LA21_2 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 2, input); throw nvae; } break; case 30: int LA21_4 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 4, input); throw nvae; } break; case 50: int LA21_5 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 5, input); throw nvae; } break; case 51: int LA21_6 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 6, input); throw nvae; } break; case 52: int LA21_7 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 7, input); throw nvae; } break; case ID: int LA21_8 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 8, input); throw nvae; } break; default: NoViableAltException nvae = new NoViableAltException("226:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 0, input); throw nvae; } switch (alt21) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:227:33: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "rule", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_rule603); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:228:35: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_rule612); normal_lhs_block(lhs); following.pop(); } break; } } break; } match(input,30,FOLLOW_30_in_rule633); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:232:24: ( ':' )? int alt23=2; int LA23_0 = input.LA(1); if ( LA23_0==29 ) { alt23=1; } else if ( (LA23_0>=EOL && LA23_0<=28)||(LA23_0>=30 && LA23_0<=54) ) { alt23=2; } else { NoViableAltException nvae = new NoViableAltException("232:24: ( \':\' )?", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:232:24: ':' { match(input,29,FOLLOW_29_in_rule635); } break; } following.push(FOLLOW_opt_eol_in_rule639); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:233:17: ( options {greedy=false; } : any= . )* loop24: do { int alt24=2; int LA24_0 = input.LA(1); if ( LA24_0==26 ) { alt24=2; } else if ( (LA24_0>=EOL && LA24_0<=25)||(LA24_0>=27 && LA24_0<=54) ) { alt24=1; } switch (alt24) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:233:44: any= . { any=(Token)input.LT(1); matchAny(input); consequence = consequence + " " + any.getText(); } break; default : break loop24; } } while (true); if ( expander != null ) { String expanded = runThenExpander( consequence ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } match(input,26,FOLLOW_26_in_rule674); following.push(FOLLOW_opt_eol_in_rule676); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/afa2dad261bf082d1acd2655e8290f80c6bffb15/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
return -1;
return;
public int mulligan(String playerName) { if (!playerName.equals(getActivePlayerName())) { return -1; } return game.mulligan(); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/c8c5d04f1da33f842af024348878243346d9261d/Server.java/buggy/Colossus/net/sf/colossus/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 312, 420, 360, 304, 12, 780, 7291, 461, 13, 565, 288, 3639, 309, 16051, 14872, 461, 18, 14963, 12, 588, 3896, 12148, 461, 1435, 3719, 3639, 288, 5411, 327, 31, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 312, 420, 360, 304, 12, 780, 7291, 461, 13, 565, 288, 3639, 309, 16051, 14872, 461, 18, 14963, 12, 588, 3896, 12148, 461, 1435, 3719, 3639, 288, 5411, 327, 31, 3639, 289, 363...
if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().removePreferenceChangeListener(preferencesListener);
private INodeChangeListener getNodeChangeListener() { return new IEclipsePreferences.INodeChangeListener() { /* (non-Javadoc) * @see org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener#added(org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent) */ public void added(NodeChangeEvent event) { if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().addPreferenceChangeListener(preferencesListener); } /* (non-Javadoc) * @see org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener#removed(org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent) */ public void removed(NodeChangeEvent event) { if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().removePreferenceChangeListener(preferencesListener); } }; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ee8d14907e1e77c4d065379865d4c3cfe3696bf1/ScopedPreferenceStore.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/preferences/ScopedPreferenceStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 21176, 15744, 5973, 15744, 1435, 288, 202, 202, 2463, 394, 10897, 71, 10472, 12377, 18, 23184, 15744, 1435, 288, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21176, 15744, 5973, 15744, 1435, 288, 202, 202, 2463, 394, 10897, 71, 10472, 12377, 18, 23184, 15744, 1435, 288, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946,...
syntheticNamespace( candidatePrefix, uri );
syntheticNamespace( candidatePrefix, uri, considerCreatingDefault );
protected final String ensureMapping ( String uri, String candidatePrefix ) { assert uri != null; assert candidatePrefix == null || candidatePrefix.length() > 0; // Can be called for no-namespaced things if (uri.length() == 0) return null; String prefix = (String) _uriMap.get( uri ); if (prefix != null) return prefix; // // I try prefixes from a number of places, in order: // // 1) What was passed in // 2) The optional suggestions (for uri's) // 3) The default mapping is allowed // 4) ns#++ // if (candidatePrefix == null || !tryPrefix( candidatePrefix )) { if (_suggestedPrefixes != null && _suggestedPrefixes.containsKey( uri ) && tryPrefix( (String) _suggestedPrefixes.get( uri ) )) { candidatePrefix = (String) _suggestedPrefixes.get( uri ); } else if (_useDefaultNamespace && tryPrefix( "" )) candidatePrefix = ""; else { String basePrefix = QNameHelper.suggestPrefix( uri ); candidatePrefix = basePrefix; for ( int i = 1 ; ; i++ ) { if (tryPrefix( candidatePrefix )) break; candidatePrefix = basePrefix + i; } } } assert candidatePrefix != null; syntheticNamespace( candidatePrefix, uri ); addMapping( candidatePrefix, uri ); return candidatePrefix; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/d9f0a1570ec83c9c4ae30b71b275b0aff2188139/Saver.java/clean/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Saver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 514, 3387, 3233, 261, 514, 2003, 16, 514, 5500, 2244, 262, 565, 288, 3639, 1815, 2003, 480, 446, 31, 3639, 1815, 5500, 2244, 422, 446, 747, 5500, 2244, 18, 2469, 1435, 405, 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, 727, 514, 3387, 3233, 261, 514, 2003, 16, 514, 5500, 2244, 262, 565, 288, 3639, 1815, 2003, 480, 446, 31, 3639, 1815, 5500, 2244, 422, 446, 747, 5500, 2244, 18, 2469, 1435, 405, 3...
public boolean execute(final Flags prefix, final Context context,
public void execute(final Flags prefix, final Context context,
public boolean execute(final Flags prefix, final Context context, final TokenSource source, final Typesetter typesetter) throws GeneralException { String message = source.scanTokens(context).toText(); String help = context.getToks("errhelp").toText(); prefix.clear(); throw new FixedHelpingException(message, help); }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/eb1aab511c6c3c43b19c0de86545f73f089e3526/Errmessage.java/clean/ExTeX/src/java/de/dante/extex/interpreter/primitives/info/Errmessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 6385, 10104, 1633, 16, 727, 1772, 819, 16, 5411, 727, 3155, 1830, 1084, 16, 727, 7658, 11214, 1953, 11214, 13, 5411, 1216, 9544, 503, 288, 3639, 514, 883, 273, 1084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 6385, 10104, 1633, 16, 727, 1772, 819, 16, 5411, 727, 3155, 1830, 1084, 16, 727, 7658, 11214, 1953, 11214, 13, 5411, 1216, 9544, 503, 288, 3639, 514, 883, 273, 1084, ...
MaltPercentDialog maltPercent = new MaltPercentDialog(owner); maltPercent.setModal(true); maltPercent.setVisible(true);
ScaleRecipeDialog scaleRecipe = new ScaleRecipeDialog(owner); scaleRecipe.setModal(true); scaleRecipe.setVisible(true);
public void actionPerformed(ActionEvent evt) { MaltPercentDialog maltPercent = new MaltPercentDialog(owner); maltPercent.setModal(true); maltPercent.setVisible(true); }
51683 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51683/595e2c465e03931b6041138c6055378752eb9d98/StrangeSwing.java/clean/src/ca/strangebrew/ui/swing/StrangeSwing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 288, 6862, 9506, 202, 49, 2390, 8410, 6353, 312, 2390, 8410, 273, 394, 490, 2390, 8410, 6353, 12, 8443, 1769, 6862, 9506, 202, 81, 2390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 288, 6862, 9506, 202, 49, 2390, 8410, 6353, 312, 2390, 8410, 273, 394, 490, 2390, 8410, 6353, 12, 8443, 1769, 6862, 9506, 202, 81, 2390, ...
public void run() throws Exception { Log log = LogFactory.getLog(MisfireExample.class); log.info("------- Initializing -------------------"); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete -----------"); log.info("------- Scheduling Jobs -----------"); // jobs can be scheduled before start() has been called // get a "nice round" time a few seconds in the future... long ts = TriggerUtils.getNextGivenSecondDate(null, 15).getTime(); // statefulJob1 will run every three seconds // (but it will delay for ten seconds) JobDetail job = new JobDetail("statefulJob1", "group1", StatefulDumbJob.class); job.getJobDataMap().put(MisfireJob.EXECUTION_DELAY, 10000L); SimpleTrigger trigger = new SimpleTrigger("trigger1", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 3000L); Date ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // statefulJob2 will run every three seconds // (but it will delay for ten seconds) job = new JobDetail("statefulJob2", "group1", StatefulDumbJob.class); job.getJobDataMap().put(MisfireJob.EXECUTION_DELAY, 10000L); trigger = new SimpleTrigger("trigger2", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 3000L); trigger .setMisfireInstruction(SimpleTrigger.MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); log.info("------- Starting Scheduler ----------------"); // jobs don't start firing until start() has been called... sched.start(); log.info("------- Started Scheduler -----------------"); try { // sleep for ten minutes for triggers to file.... Thread.sleep(600L * 1000L); } catch (Exception e) { } log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.numJobsExecuted() + " jobs."); }
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/51ce7552fa3eb48cf96a05bff5bca6616477f94b/MisfireExample.java/buggy/examples/src/java/org/quartz/examples/example5/MisfireExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 1216, 1185, 288, 202, 202, 1343, 613, 273, 1827, 1733, 18, 588, 1343, 12, 49, 7396, 577, 10908, 18, 1106, 1769, 202, 202, 1330, 18, 1376, 2932, 17082, 10188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 1216, 1185, 288, 202, 202, 1343, 613, 273, 1827, 1733, 18, 588, 1343, 12, 49, 7396, 577, 10908, 18, 1106, 1769, 202, 202, 1330, 18, 1376, 2932, 17082, 10188, ...
bCodeStream[classFileOffset++] = OPC_ldiv;
bCodeStream[classFileOffset++] = Opcodes.OPC_ldiv;
final public void ldiv() { if (DEBUG) System.out.println(position + "\t\tldiv"); //$NON-NLS-1$ countLabels = 0; stackDepth -= 2; if (classFileOffset >= bCodeStream.length) { resizeByteArray(); } position++; bCodeStream[classFileOffset++] = OPC_ldiv;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 328, 2892, 1435, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 88, 1236, 427, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 1883, 5888, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 328, 2892, 1435, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 88, 1236, 427, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 1883, 5888, ...
task.start();
task.start(); */
public void actionPerformed(ActionEvent actionEvent) { // Check whether an error flag is set if (model.isError() && view.tableHistoryList.getRowCount() > 0) { Exception ex = model.getException(); ex.printStackTrace(); DefaultExceptionHandler.handle(view, ex); return; } if (view.tableHistoryList.getRowCount() == 0) { view.messageUndo("clearHistory"); return; } int okCancle = view.messageUndo("clearHistory"); if (okCancle == 0){ //Button OK was press logger.debug("Button OK was press."); // delete records whit contition cdelete > 0 Task task = model.clearDatabase(); new DefaultProgressBar(task, view, true) { @Override public void afterStopping() { //load data try { model.searchWholeHistoryData(); reloadData(1,model.getDisplayRows()); view.totalResultValueLabel.setText("0"); } catch (Exception ex) { ex.printStackTrace(); DefaultExceptionHandler.handle(view, ex); } } }; task.start(); } }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/0b56f55818efa65218a71d26f51540a4ea1c611d/WholeHistoryCtrl.java/buggy/trunk/src/net/sf/plantlore/client/history/WholeHistoryCtrl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3639, 1071, 918, 26100, 12, 1803, 1133, 1301, 1133, 13, 4202, 288, 377, 202, 282, 368, 2073, 2856, 392, 555, 2982, 353, 444, 377, 202, 282, 309, 261, 2284, 18, 291, 668, 1435, 597, 1476, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3639, 1071, 918, 26100, 12, 1803, 1133, 1301, 1133, 13, 4202, 288, 377, 202, 282, 368, 2073, 2856, 392, 555, 2982, 353, 444, 377, 202, 282, 309, 261, 2284, 18, 291, 668, 1435, 597, 1476, 18,...
log.error(ex);
System.err.println(ex);
void processMessage(Message msg) { long i; i=((Long)msg.getObject()).longValue(); if(prev_value + 1 != i) { log.error("** processMessage(): removed seqno (" + i + ") is not 1 greater than " + "previous value (" + prev_value + ')'); System.exit(0); } prev_value++; if(trace && i % 1000 == 0) System.out.println("Removed " + i); if(i == num_msgs) { stop=System.currentTimeMillis(); long total=stop-start; double msgs_per_sec=num_msgs / (total/1000.0); double msgs_per_ms=num_msgs / (double)total; System.out.println("Inserting and removing " + num_msgs + " messages into NakReceiverWindow took " + total + "ms"); System.out.println("Msgs/sec: " + msgs_per_sec + ", msgs/ms: " + msgs_per_ms); System.out.println("<enter> to terminate"); try { System.in.read(); } catch(Exception ex) { log.error(ex); } System.exit(0); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/NakReceiverWindowStressTest.java/buggy/tests/other/org/jgroups/tests/NakReceiverWindowStressTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 1079, 12, 1079, 1234, 13, 288, 3639, 1525, 277, 31, 3639, 277, 33, 12443, 3708, 13, 3576, 18, 588, 921, 1435, 2934, 5748, 620, 5621, 3639, 309, 12, 10001, 67, 1132, 397, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 1079, 12, 1079, 1234, 13, 288, 3639, 1525, 277, 31, 3639, 277, 33, 12443, 3708, 13, 3576, 18, 588, 921, 1435, 2934, 5748, 620, 5621, 3639, 309, 12, 10001, 67, 1132, 397, 404,...
for(KeyValue keyValue:dataMappingsForTaskStartingSet) {
for(KeyValue keyValue:dataMappingsForTaskStartingSet.values()) {
public Map<String, String> getDataMappingsForTaskStarting() { Map<String, String> map = new HashMap<String, String>(); for(KeyValue keyValue:dataMappingsForTaskStartingSet) { map.put(keyValue.getKey(), keyValue.getValue()); } return map; }
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/bf553d039c76df4dda992fcd93ab4e5513802a33/YTask.java/clean/yawl/src/au/edu/qut/yawl/elements/YTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 780, 16, 514, 34, 4303, 7742, 1290, 2174, 11715, 1435, 288, 377, 202, 863, 32, 780, 16, 514, 34, 852, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 377, 202, 1884, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 780, 16, 514, 34, 4303, 7742, 1290, 2174, 11715, 1435, 288, 377, 202, 863, 32, 780, 16, 514, 34, 852, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 377, 202, 1884, 12, ...
}
} catch (AlreadyBoundException e) { e.printStackTrace(); }
public void runtimeRegistered(RuntimeRegistrationEvent event) { ProActiveRuntime proActiveRuntimeRegistered; String protocol; String host; int port = 0; String nodeName = null; String url = null; protocol = event.getProtocol(); proActiveRuntimeRegistered = event.getRegisteredRuntime(); host = UrlBuilder.getHostNameorIP(proActiveRuntimeRegistered.getVMInformation() .getInetAddress()); port = UrlBuilder.getPortFromUrl(proActiveRuntimeRegistered.getURL()); nodeName = "IC2DNode-" + Integer.toString(new java.util.Random(System.currentTimeMillis()).nextInt()); if (port != 0) { url = UrlBuilder.buildUrl(host, nodeName, protocol, port); } else { url = UrlBuilder.buildUrl(host, nodeName, protocol); } if (event.getCreatorID().equals("ic2d")) { try { proActiveRuntimeRegistered.createLocalNode(url, false, null, this.getName(), ProActive.getJobId()); } catch (NodeException e1) { logger.log(e1, false); } } String jobId = proActiveRuntimeRegistered.getJobID(); MonitoredJob monitoredJob = new MonitoredJob(jobId); String full_host = host; if (port != 0) { full_host = host + ":" + port; } // monitor the host where is launched the runtime if (launcherFrame.isGraphicalMonitoring()) { ic2dPanel.getWorldPanel().monitoredHostAdded(full_host, protocol); ic2dPanel.getWorldPanel().getMonitorThread().updateHosts(); } else { ic2dPanel.getWorldPanel().getMonitorThread().addObjectToSkip(monitoredJob); } if (launcherFrame.isJobMonitoring()) { jobMonitorFrame.getPanel().addMonitoredHost(UrlBuilder.removePortFromHost( host), UrlBuilder.getPortFromUrl(url)); jobMonitorFrame.getPanel().updateHosts(); } else { jobMonitorFrame.getPanel().addObjectToSkip(monitoredJob); } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/4242d2f168af6f752c3ba2085f78c188e9c90086/IC2DFrame.java/buggy/src/org/objectweb/proactive/ic2d/gui/IC2DFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3099, 10868, 12, 5576, 7843, 1133, 871, 13, 288, 3639, 1186, 3896, 5576, 450, 3896, 5576, 10868, 31, 3639, 514, 1771, 31, 3639, 514, 1479, 31, 3639, 509, 1756, 273, 374, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3099, 10868, 12, 5576, 7843, 1133, 871, 13, 288, 3639, 1186, 3896, 5576, 450, 3896, 5576, 10868, 31, 3639, 514, 1771, 31, 3639, 514, 1479, 31, 3639, 509, 1756, 273, 374, 31, ...
Token xsp; xsp = jj_scanpos; if (jj_3R_339()) { jj_scanpos = xsp; if (jj_3R_340()) return true; }
if (jj_3R_82()) return true;
final private boolean jj_3R_179() { if (jj_scan_token(FOR)) return true; if (jj_scan_token(LPAREN)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_339()) { jj_scanpos = xsp; if (jj_3R_340()) return true; } if (jj_scan_token(RPAREN)) return true; if (jj_3R_84()) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 28814, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 7473, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 28814, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 7473, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48,...
final ASTNode elementBeforeNext1 = elementBeforeNext; runTransaction(prevElement, elementBeforeNext1, new Runnable() { public void run() { delete(elementBeforeNext1); replace(prevElement, text); } });
delete(prevElement); replace(elementBeforeNext, text);
public static void removeChildren(CompositeElement parent, ASTNode first, ASTNode last) { if (DO_OUTPUT) { System.out.println("CodeEditUtil.removeChildrenBefore\n" + parent.getPsi().getContainingFile().getText()); } checkAllWhiteSpaces(parent); ASTNode lastChild = last == null ? null : last.getTreeNext(); final ASTNode prevElement = TreeUtil.prevLeaf(first); final ASTNode nextElement = findElementAfter(last == null ? parent : last, false); if (nextElement != null) { saveIndents(nextElement); } boolean adjustWSBefore = containLineBreaks(first, lastChild); if (!mustKeepFirstIndent(prevElement, parent)) { adjustWSBefore = true; } parent.removeRange(first, lastChild); if (!adjustWSBefore && parent.getTextLength() == 0 && prevElement != null && isWS(prevElement) && !prevElement.textContains('\n')) { adjustWSBefore = true; } final PsiFile file = parent.getPsi().getContainingFile(); final CodeStyleSettings.IndentOptions options = CodeStyleSettingsManager.getSettings(file.getProject()) .getIndentOptions(file.getFileType()); if (nextElement != null) { ASTNode elementBeforeNext = TreeUtil.prevLeaf(nextElement); if (prevElement != null && isWS(prevElement) && isWS(elementBeforeNext) && prevElement != elementBeforeNext) { if (!elementBeforeNext.textContains('\n') && prevElement.textContains('\n')) { /* void foo1(){} static void foo2(){} remove static */ delete(elementBeforeNext); } else { final String text = composeNewWS(prevElement.getText(), elementBeforeNext.getText(), options); final ASTNode elementBeforeNext1 = elementBeforeNext; runTransaction(prevElement, elementBeforeNext1, new Runnable() { public void run() { delete(elementBeforeNext1); replace(prevElement, text); } }); } } elementBeforeNext = TreeUtil.prevLeaf(nextElement); if (isWS(elementBeforeNext) && whiteSpaceHasInvalidPosition(elementBeforeNext)) { final ASTNode elementBeforeNext2 = elementBeforeNext; runTransaction(elementBeforeNext, FormatterUtil.getWsCandidate(nextElement), new Runnable() { public void run() { final String text = elementBeforeNext2.getText(); delete(elementBeforeNext2); FormatterUtil.replaceWhiteSpace(text, nextElement, ElementType.WHITE_SPACE); } }); } if (adjustWSBefore) { adjustWhiteSpaceBefore(nextElement, true, true, true, false); } } else { final ASTNode fileNode = SourceTreeToPsiMap.psiElementToTree(parent.getPsi().getContainingFile()); ASTNode lastLeaf = TreeUtil.findLastLeaf(fileNode); if (isWS(lastLeaf)) { delete(lastLeaf); } } checkAllWhiteSpaces(parent); if (DO_OUTPUT) { System.out.println("CodeEditUtil.removeChildren\n" + parent.getPsi().getContainingFile().getText()); } //removeChildrenOld(parent,first, last); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f04d3d407d46b301cf89717725315bb2082c17ec/CodeEditUtil.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1206, 4212, 12, 9400, 1046, 982, 16, 9183, 907, 1122, 16, 9183, 907, 1142, 13, 288, 565, 309, 261, 3191, 67, 15527, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 1085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1206, 4212, 12, 9400, 1046, 982, 16, 9183, 907, 1122, 16, 9183, 907, 1142, 13, 288, 565, 309, 261, 3191, 67, 15527, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 1085, ...
MessageDialog.openInformation(null, "Context Retrieval", "Task context was successfully retrieved.");
IWorkbenchSite site = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart().getSite(); if (site instanceof IViewSite) { IStatusLineManager statusLineManager = ((IViewSite)site).getActionBars().getStatusLineManager(); statusLineManager.setMessage(TaskListImages.getImage(TaskListImages.TASKLIST), "Context retrieved for: " + task.getDescription()); } else { MylarStatusHandler.log("could not get part", this); }
public final boolean performFinish() { IRemoteContextDelegate delegate = wizardPage.getSelectedContext(); AbstractRepositoryConnector connector = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector( this.repository.getKind()); try { if (connector.retrieveContext(repository, task, delegate)) { MessageDialog.openInformation(null, "Context Retrieval", "Task context was successfully retrieved."); } else { MessageDialog.openError(null, "Context Retrieval", "Retrieval of task context FAILED. See error log for details."); } } catch (IOException e) { MessageDialog.openError(null, "Context Retrieval", "Retrieval of task context FAILED.\n" + e.getMessage()); } return true; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/261b581313c36765e296ed0d0f32386846114922/ContextRetrieveWizard.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/ContextRetrieveWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1250, 3073, 11641, 1435, 288, 202, 202, 45, 5169, 1042, 9586, 7152, 273, 24204, 1964, 18, 588, 7416, 1042, 5621, 202, 202, 7469, 3305, 7487, 8703, 273, 8005, 7901, 2174, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 3073, 11641, 1435, 288, 202, 202, 45, 5169, 1042, 9586, 7152, 273, 24204, 1964, 18, 588, 7416, 1042, 5621, 202, 202, 7469, 3305, 7487, 8703, 273, 8005, 7901, 2174, 68...