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
Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop];
Object rhs = state.stack[i + 1]; Object lhs = state.stack[i];
private static int do_eq(Object[] stack, double[] sDbl, int stackTop, int op) { --stackTop; boolean result; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; if (rhs == DBL_MRK) { if (lhs == DBL_MRK) { result = (sDbl[stackTop] == sDbl[stackTop + 1]); } else { result = ScriptRuntime.eqNumber(sDbl[stackTop + 1], lhs); } } else { if (lhs == DBL_MRK) { result = ScriptRuntime.eqNumber(sDbl[stackTop], rhs); } else { result = ScriptRuntime.eq(lhs, rhs); } } result ^= (op == Token.NE); stack[stackTop] = (result) ? Boolean.TRUE : Boolean.FALSE; return stackTop; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 741, 67, 11253, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 11794, 509, 1061, 13, 565, 288, 3639, 1493, 3772, 3401, 31, 3639, 1250, 563,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 741, 67, 11253, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 11794, 509, 1061, 13, 565, 288, 3639, 1493, 3772, 3401, 31, 3639, 1250, 563,...
else if ( e.getSource( ).equals( cmbDataSet ) )
else if ( e.getSource( ).equals( btnNewData ) )
public void widgetSelected( SelectionEvent e ) { if ( e.getSource( ).equals( btnUseReportData ) ) { // Skip when selection is false if ( !btnUseReportData.getSelection( ) ) { return; } try { switchDataSet( null ); } catch ( ChartException e1 ) { ChartWizard.displayException( e1 ); } cmbDataSet.setEnabled( false ); btnNewData.setEnabled( false ); btnFilters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnParameters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnBinding.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); } else if ( e.getSource( ).equals( btnUseDataSet ) ) { // Skip when selection is false if ( !btnUseDataSet.getSelection( ) ) { return; } if ( cmbDataSet.getText( ).length( ) == 0 ) { cmbDataSet.setItems( getDataServiceProvider( ).getAllDataSets( ) ); cmbDataSet.select( 0 ); } if ( cmbDataSet.getText( ).length( ) != 0 ) { try { int bCancel = switchDataSet( cmbDataSet.getText( ) ); if ( bCancel == Window.CANCEL ) { btnUseReportData.setSelection( true ); btnUseDataSet.setSelection( false ); return; } } catch ( ChartException e1 ) { ChartWizard.displayException( e1 ); } } cmbDataSet.setEnabled( true ); btnNewData.setEnabled( getDataServiceProvider( ).isInvokingSupported( ) ); btnFilters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnParameters.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); btnBinding.setEnabled( hasDataSet( ) && getDataServiceProvider( ).isInvokingSupported( ) ); } else if ( e.getSource( ).equals( cmbDataSet ) ) { try { ColorPalette.getInstance( ).restore( ); int bCancel = switchDataSet( cmbDataSet.getText( ) ); if ( bCancel == Window.CANCEL ) { String[] datasetNames = cmbDataSet.getItems( ); for ( int i = 0; i < datasetNames.length; i++ ) { if ( datasetNames[i].equals( getDataServiceProvider( ).getBoundDataSet( ) ) ) { cmbDataSet.select( i ); return; } } } } catch ( ChartException e1 ) { ChartWizard.displayException( e1 ); } } else if ( e.getSource( ).equals( btnNewData ) ) { // Bring up the dialog to create a dataset int result = getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_NEW_DATASET ); if ( result == Window.CANCEL ) { return; } String[] sAllDS = getDataServiceProvider( ).getAllDataSets( ); if ( sAllDS.length == cmbDataSet.getItemCount( ) ) { return; } else { String currentDataSet = cmbDataSet.getText( ); cmbDataSet.setItems( sAllDS ); cmbDataSet.setText( currentDataSet ); } } else if ( e.getSource( ).equals( btnFilters ) ) { if ( getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_FILTER ) == Window.OK ) { refreshTablePreview( ); doLivePreview( ); } } else if ( e.getSource( ).equals( btnParameters ) ) { if ( getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_PARAMETER ) == Window.OK ) { refreshTablePreview( ); doLivePreview( ); } } else if ( e.getSource( ).equals( btnBinding ) ) { if ( getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_BINDING ) == Window.OK ) { refreshTablePreview( ); doLivePreview( ); } } else if ( e.getSource( ) instanceof MenuItem ) { MenuItem item = (MenuItem) e.getSource( ); IAction action = (IAction) item.getData( ); action.setChecked( !action.isChecked( ) ); action.run( ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8005353d33409f5164b0bfcc523207bf2c5c497b/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 430, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 10638, 3727, 4820, 751, 262, 262, 202, 202, 95, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 430, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 10638, 3727, 4820, 751, 262, 262, 202, 202, 95, 1082, 20...
HTMLNode restartForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword });
HTMLNode restartForm = ctx.addFormChild(content.addChild("p"), "/", "confirmRestartForm");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { boolean advancedDarknetOutputEnabled = core.getToadletContainer().isAdvancedDarknetEnabled(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Add a Bookmark"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Confirm Bookmark Addition")); HTMLNode addForm = ctx.getPageMaker().getContentNode(infobox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); addForm.addChild("#", "Please confirm that you want to add the key " + request.getParam("newbookmark") + " to your bookmarks and enter the description that you would prefer:"); addForm.addChild("br"); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", request.getParam("newbookmark") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "name", request.getParam("desc") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "addbookmark", "Add bookmark" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.getParam(GenericReadFilterCallback.magicHTTPEscapeString).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Link to external resources"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode warnbox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "External link")); HTMLNode externalLinkForm = ctx.getPageMaker().getContentNode(warnbox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); // FIXME: has request.getParam(GenericReadFilterCallback.magicHTTPEscapeString) been sanityzed ? final String target = request.getParam(GenericReadFilterCallback.magicHTTPEscapeString); externalLinkForm.addChild("#", "Please confirm that you want to go to " + target + ". WARNING: You are leaving FREENET! Clicking on this link WILL seriously jeopardize your anonymity!. It is strongly recommended not to do so!"); externalLinkForm.addChild("br"); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", GenericReadFilterCallback.magicHTTPEscapeString, target }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "Go", "Go to the specified link" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.isParameterSet("managebookmarks")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Bookmark Manager"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { infoboxContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode manageForm = infoboxContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); HTMLNode bookmarkList = manageForm.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); HTMLNode bookmark = bookmarkList.addChild("li", "style", "clear: right;"); /* TODO */ bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "delete_" + b.hashCode(), "Delete", "float: right;" }); bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "edit_" + b.hashCode(), "Edit", "float: right;" }); bookmark.addChild("a", "href", '/' + b.getKey(), b.getDesc()); } manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "managebookmarks", "yes" }); } contentNode.addChild(createBookmarkEditForm(ctx.getPageMaker(), MODE_ADD, null, "", "")); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("exit")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Shutdown")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to shut down your Freenet node?"); HTMLNode shutdownForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "shutdownconfirm", "Shut down" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("restart")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Restart")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you want to restart your Freenet node?"); HTMLNode restartForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restartconfirm", "Restart" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet FProxy Homepage of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isTestnetEnabled()) { HTMLNode testnetBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Testnet Mode!")); HTMLNode testnetContent = ctx.getPageMaker().getContentNode(testnetBox); testnetContent.addChild("#", "This node runs in testnet mode. This WILL seriously jeopardize your anonymity!"); } String useragent = (String)ctx.getHeaders().get("user-agent"); if (useragent != null) { useragent = useragent.toLowerCase(); if ((useragent.indexOf("msie") > -1) && (useragent.indexOf("opera") == -1)) { HTMLNode browserWarningBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Security Risk!")); HTMLNode browserWarningContent = ctx.getPageMaker().getContentNode(browserWarningBox); browserWarningContent.addChild("#", "You appear to be using Microsoft Internet Explorer. This means that some sites within Freenet may be able to compromise your anonymity!"); } } // Alerts contentNode.addChild(core.alerts.createAlerts()); // Fetch-a-key box HTMLNode fetchKeyBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "Fetch a Key")); HTMLNode fetchKeyContent = ctx.getPageMaker().getContentNode(fetchKeyBox); fetchKeyContent.addAttribute("id", "keyfetchbox"); HTMLNode fetchKeyForm = fetchKeyContent.addChild("form", new String[] { "action", "method" }, new String[] { "/", "get" }); fetchKeyForm.addChild("#", "Key: "); fetchKeyForm.addChild("input", new String[] { "type", "size", "name" }, new String[] { "text", "80", "key" }); fetchKeyForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Fetch" }); // Bookmarks HTMLNode bookmarkBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode bookmarkContent = ctx.getPageMaker().getContentNode(bookmarkBox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { bookmarkContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode bookmarkList = bookmarkContent.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); bookmarkList.addChild("li").addChild("a", "href", '/' + b.getKey(), b.getDesc()); } } bookmarkContent.addChild("div", "id", "bookmarkedit").addChild("a", new String[] { "href", "class" }, new String[] { "?managebookmarks", "interfacelink" }, "Edit my bookmarks"); // Version info and Quit Form HTMLNode versionBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Version Information & Node Control")); HTMLNode versionContent = ctx.getPageMaker().getContentNode(versionBox); versionContent.addChild("#", "Freenet " + Version.nodeVersion + " Build #" + Version.buildNumber() + " r" + Version.cvsRevision); versionContent.addChild("br"); if(NodeStarter.extBuildNumber < NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER) { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + '(' + NodeStarter.RECOMMENDED_EXT_BUILD_NUMBER + ") r" + NodeStarter.extRevisionNumber); } else { versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + " r" + NodeStarter.extRevisionNumber); } versionContent.addChild("br"); HTMLNode shutdownForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); shutdownForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "exit" }); shutdownForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Shutdown the node" }); if(node.isUsingWrapper()){ HTMLNode restartForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); restartForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "restart" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart2", "Restart the node" }); } // Activity HTMLNode activityBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Current Activity")); HTMLNode activityContent = ctx.getPageMaker().getContentNode(activityBox); HTMLNode activityList = activityContent.addChild("ul", "id", "activity"); activityList.addChild("li", "Inserts: " + node.getNumInserts()); activityList.addChild("li", "Requests: " + node.getNumRequests()); activityList.addChild("li", "Transferring Requests: " + node.getNumTransferringRequests()); if (advancedDarknetOutputEnabled) { activityList.addChild("li", "ARK Fetch Requests: " + node.getNumARKFetchers()); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 6494, 16111, 40, 1313, 2758, 1447, 1526, ...
fs.put("URI", uri.toString(false));
fs.put("URI", uri.toString(false, false));
public SimpleFieldSet getFieldSet() { SimpleFieldSet fs = new SimpleFieldSet(); fs.put("Identifier", identifier); if(uri != null) fs.put("URI", uri.toString(false)); return fs; }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/1c876261ab73159d57a26624667ec7bf7acd15b8/PutFetchableMessage.java/clean/src/freenet/node/fcp/PutFetchableMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 2662, 273, 394, 4477, 974, 694, 5621, 202, 202, 2556, 18, 458, 2932, 3004, 3113, 2756, 1769, 202, 202, 430, 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, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 2662, 273, 394, 4477, 974, 694, 5621, 202, 202, 2556, 18, 458, 2932, 3004, 3113, 2756, 1769, 202, 202, 430, 12,...
public static void setUrlBoost(float boost) { URL_BOOST = boost; }
public void setUrlBoost(float boost) { URL_BOOST = boost; }
public static void setUrlBoost(float boost) { URL_BOOST = boost; }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/329ff64e9d7295aff108f85e9a8103f5e5f8f398/BasicQueryFilter.java/clean/src/plugin/query-basic/src/java/org/apache/nutch/searcher/basic/BasicQueryFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 20211, 26653, 12, 5659, 14994, 13, 288, 1976, 67, 5315, 4005, 273, 14994, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 918, 20211, 26653, 12, 5659, 14994, 13, 288, 1976, 67, 5315, 4005, 273, 14994, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return 0;
return buildEntryLineNumber;
private int getLineNumber(IBuildEntry ibe, String tokenString) { if (!(ibe instanceof BuildEntry)) return 0; BuildEntry be = (BuildEntry)ibe; IDocument doc = ((BuildModel)be.getModel()).getDocument(); try { if (tokenString == null) // we are interested in the build entry name // (getLineOfOffset is 0-indexed, need 1-indexed) return doc.getLineOfOffset(be.getOffset()) + 1; // extract the full entry String entry = doc.get(be.getOffset(), be.getLength()); int valueIndex = entry.indexOf('=') + 1; if (valueIndex == 0 || valueIndex == entry.length()) return 0; // remove the entry name entry = entry.substring(valueIndex); int entryTokenOffset = entry.indexOf(tokenString); if (entryTokenOffset == -1) return 0; // check to see if single occurence if (entryTokenOffset == entry.lastIndexOf(tokenString)) return doc.getLineOfOffset(be.getOffset() + valueIndex + entryTokenOffset) + 1; // multiple occurences, must comb through to find exact location // skip ahead to 1st occurence entry = entry.substring(entryTokenOffset); int currOffset = be.getOffset() + valueIndex + entryTokenOffset; while (true) { // tokenize string using ',' as a delimiter, trim out whitespace and '\' characters // during comparison if (entry.charAt(0) == '\\') { currOffset++; entry = entry.substring(1); } int cci = entry.indexOf(','); if (cci == -1) { if (entry.trim().equals(tokenString)) return doc.getLineOfOffset(currOffset + entry.indexOf(tokenString)) + 1; return 0; } String ct = entry.substring(0, cci).trim(); if (ct.equals(tokenString)) return doc.getLineOfOffset(currOffset) + 1; entry = entry.substring(++cci); currOffset += cci; } } catch (BadLocationException e) { } return 0; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/a6f454c5d638c8d1e73081336f008bf44d0d46a2/BuildErrorReporter.java/buggy/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/BuildErrorReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 26089, 12, 45, 3116, 1622, 277, 2196, 16, 514, 1147, 780, 13, 288, 202, 202, 430, 16051, 12, 495, 73, 1276, 3998, 1622, 3719, 1082, 202, 2463, 374, 31, 202, 202, 3116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 26089, 12, 45, 3116, 1622, 277, 2196, 16, 514, 1147, 780, 13, 288, 202, 202, 430, 16051, 12, 495, 73, 1276, 3998, 1622, 3719, 1082, 202, 2463, 374, 31, 202, 202, 3116, ...
if ( !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) && !currentChart.getType( ) .equals( BarChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ), axisTypes ) ); }
currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ), axisTypes ) );
private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); // Cache series to keep attributes during conversion ChartCacheManager.getInstance( ) .cacheSeries( ChartUIUtil.getAllOrthogonalSeriesDefinitions( helperModel ) ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( BubbleChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( DifferenceChart.TYPE_LITERAL ) || currentChart.getType( ).equals( GanttChart.TYPE_LITERAL ) ) { currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); ArrayList axisTypes = new ArrayList( ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0, seriesIndex = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, seriesIndex++ ); ( (LineSeries) series ).setPaletteLineColor( true ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); axisTypes.add( ( (Axis) axes.get( i ) ).getType( ) ); } } if ( !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) && !currentChart.getType( ) .equals( BarChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ), axisTypes ) ); } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( ChartUIUtil.getDimensionType( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ).isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); // series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, j ); series.getLabel( ).setVisible( false ); ( (LineSeries) series ).setPaletteLineColor( true ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( ChartUIUtil.getDimensionType( sNewDimension ) ) ) { currentChart.setDimension( ChartUIUtil.getDimensionType( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && ChartUIUtil.getDimensionType( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } EList seriesdefinitions = ChartUIUtil.getOrthogonalSeriesDefinitions( currentChart, 0 ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series.setStacked( false );// Stacked is unsupported in 3D } } return currentChart; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ecbaa443bf6e36778a5ac5055cf333ae97fdda86/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
public org.quickfix.field.LegSwapType getLegSwapType() throws FieldNotFound { org.quickfix.field.LegSwapType value = new org.quickfix.field.LegSwapType();
public quickfix.field.LegSwapType getLegSwapType() throws FieldNotFound { quickfix.field.LegSwapType value = new quickfix.field.LegSwapType();
public org.quickfix.field.LegSwapType getLegSwapType() throws FieldNotFound { org.quickfix.field.LegSwapType value = new org.quickfix.field.LegSwapType(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 12521, 559, 336, 8329, 12521, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 12521, 559, 460, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 12521, 559, 336, 8329, 12521, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 12521, 559, 460, 273, 394, ...
UMOMessage requestMessage = new MuleMessage(eventContext.getTransformedMessage());
UMOMessage requestMessage = new MuleMessage(eventContext.getTransformedMessage(), eventContext.getMessage());
public Object onCall(UMOEventContext eventContext) throws Exception { UMOMessage requestMessage = new MuleMessage(eventContext.getTransformedMessage()); UMOMessage responseMessage = requestMessage; Object builtMessage; if(descriptor.getOutboundRouter().hasEndpoints() ) { List endpoints = new ArrayList(); for (Iterator iterator = descriptor.getOutboundRouter().getRouters().iterator(); iterator.hasNext();) { UMOOutboundRouter router = (UMOOutboundRouter) iterator.next(); endpoints.addAll(router.getEndpoints()); } for (Iterator iterator = endpoints.iterator(); iterator.hasNext();) { UMOEndpoint endpoint = (UMOEndpoint) iterator.next(); boolean rsync = eventContext.getBooleanProperty( MuleProperties.MULE_REMOTE_SYNC_PROPERTY, endpoint.isRemoteSync()); if(!rsync) { logger.info("Endpoint: " + endpoint + " is not remoteSync enabled. Message builder finishing"); if(eventContext.isSynchronous()) { responseMessage = eventContext.sendEvent(requestMessage, endpoint); } else { eventContext.dispatchEvent(requestMessage, endpoint); responseMessage=null; } break; } else { responseMessage = eventContext.sendEvent(requestMessage, endpoint); builtMessage = buildMessage(requestMessage, responseMessage); responseMessage = new MuleMessage(builtMessage, responseMessage.getProperties()); requestMessage = responseMessage; } } } else { logger.info("There are currently no endpoints configured on component: " + descriptor.getName()); } eventContext.setStopFurtherProcessing(true); return responseMessage; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/5ca0e18b8620775bc5a69929f971205864e68bea/AbstractMessageBuilder.java/clean/src/java/org/mule/components/builder/AbstractMessageBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 603, 1477, 12, 2799, 51, 1133, 1042, 871, 1042, 13, 1216, 1185, 288, 3639, 587, 5980, 1079, 590, 1079, 273, 394, 490, 725, 1079, 12, 2575, 1042, 18, 588, 4059, 329, 1079, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 1477, 12, 2799, 51, 1133, 1042, 871, 1042, 13, 1216, 1185, 288, 3639, 587, 5980, 1079, 590, 1079, 273, 394, 490, 725, 1079, 12, 2575, 1042, 18, 588, 4059, 329, 1079, 93...
if ( mphandle.getPropertyHandle( SimpleMasterPageHandle.FOOTER_HEIGHT_PROP ) .isSet( ) )
if ( mphandle.getPropertyHandle( SimpleMasterPageHandle.FOOTER_HEIGHT_PROP ).isSet( ) )
private Rectangle getConstraint( ) { IFigure parent = ( (MasterPageEditPart) getParent( ) ).getFigure( ); Rectangle region = parent.getClientArea( ); Rectangle rect = new Rectangle( ); rect.height = -1; rect.width = region.width; //Define the default height value of header and footer SimpleMasterPageHandle mphandle = ( (SimpleMasterPageHandle) ( (MasterPageEditPart) getParent( ) ) .getModel( ) ); if ( ( (ReportElementModel) getModel( ) ).getSlotId( ) == SimpleMasterPageHandle.PAGE_HEADER_SLOT ) { if ( mphandle.getPropertyHandle( SimpleMasterPageHandle.HEADER_HEIGHT_PROP ) .isSet( ) ) { DimensionHandle handle = mphandle.getHeaderHeight( ); rect.height = (int) DEUtil.convertoToPixel( handle ); } } else { if ( mphandle.getPropertyHandle( SimpleMasterPageHandle.FOOTER_HEIGHT_PROP ) .isSet( ) ) { DimensionHandle handle = mphandle.getFooterHeight( ); rect.height = (int) DEUtil.convertoToPixel( handle ); } } if ( ( (ReportElementModel) getModel( ) ).getSlotId( ) == SimpleMasterPageHandle.PAGE_HEADER_SLOT ) { rect.setLocation( 0, 0 ); } else { rect.setLocation( -1, -1 ); } return rect; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b2cd38f54c41102df8e5cc48dffd4769a2f974cd/AreaEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/AreaEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13264, 336, 5806, 12, 262, 202, 95, 202, 202, 5501, 15906, 982, 273, 261, 261, 7786, 1964, 4666, 1988, 13, 5089, 12, 262, 262, 18, 588, 42, 15906, 12, 11272, 202, 202, 19463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13264, 336, 5806, 12, 262, 202, 95, 202, 202, 5501, 15906, 982, 273, 261, 261, 7786, 1964, 4666, 1988, 13, 5089, 12, 262, 262, 18, 588, 42, 15906, 12, 11272, 202, 202, 19463,...
public List getStats()
public List<KitStat> getStats()
public List getStats() { return statList; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/Kit.java/clean/code/src/java/pcgen/core/Kit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 31752, 1435, 202, 95, 202, 202, 2463, 610, 682, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 31752, 1435, 202, 95, 202, 202, 2463, 610, 682, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
checkCanonicalization("foo.com/pa%20th","foo.com/pa+th");
checkCanonicalization("foo.com checkCanonicalization("foo.com
public void testUrlStringToKey() { // simple strip of http:// checkCanonicalization("http://foo.com/","foo.com/");// would be nice to handle other protocols...// // simple strip of https://// checkCanonicalization("https://foo.com/","foo.com/");//// // simple strip of ftp://// checkCanonicalization("ftp://foo.com/","foo.com/");//// // simple strip of rtsp://// checkCanonicalization("rtsp://foo.com/","foo.com/"); // strip leading 'www.' checkCanonicalization("http://www.foo.com/","foo.com/"); // add trailing '/' with empty path checkCanonicalization("http://www.foo.com","foo.com/"); // strip leading 'www##.' checkCanonicalization("http://www12.foo.com/","foo.com/"); // strip leading 'www##.' with no protocol checkCanonicalization("www12.foo.com/","foo.com/"); // leave alone an url with no protocol but non-empty path checkCanonicalization("foo.com/","foo.com/"); // add trailing '/' with empty path and without protocol checkCanonicalization("foo.com","foo.com/"); // add trailing '/' to with empty path and no protocol, plus massage checkCanonicalization("www12.foo.com","foo.com/"); // do not add trailing '/' non-empty path and without protocol checkCanonicalization("foo.com/boo","foo.com/boo"); // replace escaped ' ' with '+' in path checkCanonicalization("foo.com/pa%20th/","foo.com/pa+th/"); // replace escaped ' ' with '+' in path plus keep trailing slash checkCanonicalization("foo.com/pa%20th","foo.com/pa+th"); // replace escaped ' ' with '+' in path plus keep trailing slash and query checkCanonicalization("foo.com/pa%20th?a=b","foo.com/pa+th?a=b"); // replace escaped ' ' with '+' in path but not in query key checkCanonicalization("foo.com/pa%20th?a%20a=b","foo.com/pa+th?a%20a=b"); // replace escaped ' ' with '+' in path but not in query value checkCanonicalization("foo.com/pa%20th?a=b%20b","foo.com/pa+th?a=b%20b"); // replace escaped ' ' with '+' in path, unescape legal '!' in path // no change in query escaping checkCanonicalization("foo.com/pa%20t%21h?a%20a=b","foo.com/pa+t!h?a%20a=b"); // replace escaped ' ' with '+' in path, leave illegal '%02' in path // no change in query escaping checkCanonicalization("foo.com/pa%20t%02h?a%20a=b","foo.com/pa+t%02h?a%20a=b"); // strip jsessionid String sid1 = "jsessionid=0123456789abcdefghijklemopqrstuv"; String sid2 = "PHPSESSID=9682993c8daa2c5497996114facdc805"; String sid3 = "sid=9682993c8daa2c5497996114facdc805"; String sid4 = "ASPSESSIONIDAQBSDSRT=EOHBLBDDPFCLHKPGGKLILNAM"; String sid5 = "CFID=12412453&CFTOKEN=15501799"; //String sid6 = "CFID=3304324&CFTOKEN=57491900&jsessionid=a63098d96360$B0$D9$A"; String fore = "http://foo.com/bar?bo=lo&"; String aft = "&gum=yum"; String want = "foo.com/bar?bo=lo&gum=yum";// String fore = "http://www.archive.org/index.html?";// String aft = "";// String want = "archive.org/index.html"; checkCanonicalization(fore + sid1 + aft,want); checkCanonicalization(fore + sid2 + aft,want); checkCanonicalization(fore + sid3 + aft,want); checkCanonicalization(fore + sid4 + aft,want); checkCanonicalization(fore + sid5 + aft,want); //checkCanonicalization(fore + sid6 + aft,want); // strip port 80 checkCanonicalization("http://www.chub.org:80/foo","chub.org/foo"); // but not other ports... checkCanonicalization("http://www.chub.org:8080/foo","chub.org:8080/foo"); }
54068 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54068/0a44587e8cb9e622ebc12e2eb4d3b57f3dcd634f/UrlCanonicalizerTest.java/clean/src/java/org/archive/wayback/util/UrlCanonicalizerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1489, 23282, 653, 1435, 288, 202, 202, 759, 4143, 2569, 434, 1062, 2207, 202, 202, 1893, 15512, 1588, 2932, 2505, 2207, 11351, 18, 832, 19, 15937, 11351, 18, 832, 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, 482, 918, 1842, 1489, 23282, 653, 1435, 288, 202, 202, 759, 4143, 2569, 434, 1062, 2207, 202, 202, 1893, 15512, 1588, 2932, 2505, 2207, 11351, 18, 832, 19, 15937, 11351, 18, 832, 489...
DumpVisitor lVisitor = new DumpVisitor(); lScript.accept(lVisitor); ruby.getRuntime().getOutputStream().println(lVisitor.dump());
protected static void runInterpreter(Reader iReader2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file IRubyObject lArgv = JavaUtil.convertJavaToRuby(ruby, args); ruby.setVerbose(warning); ruby.defineReadonlyVariable("$VERBOSE", warning ? ruby.getTrue() : ruby.getNil()); ruby.defineGlobalConstant("ARGV", lArgv); ruby.defineReadonlyVariable("$-p", (sDoPrint ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$-n", (sDoLoop ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$-a", (sDoSplit ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$-l", (sDoLine ? ruby.getTrue() : ruby.getNil())); ruby.defineReadonlyVariable("$*", lArgv); ruby.defineVariable(new RubyGlobal.StringGlobalVariable(ruby, "$0", RubyString.newString(ruby, iFileName))); ruby.initLoad(sLoadDirectories); //require additional libraries int lNbRequire = sRequireFirst.size(); try { for (int i = 0; i < lNbRequire; i++) RubyKernel.require(ruby.getRubyTopSelf(), new RubyString(ruby, (String) sRequireFirst.get(i))); // +++ INode lScript = ruby.parse(iReader2Eval, iFileName); // DumpVisitor laVisitor = new DumpVisitor(); // lScript.accept(laVisitor); // ruby.getRuntime().getOutputStream().println(laVisitor.dump()); if (sDoPrint) { // FIXME lScript = new ParserSupport().appendPrintToBlock(lScript); // ruby.getParserHelper().rb_parser_append_print(); } if (sDoLoop) { // FIXME lScript = new ParserSupport().appendWhileLoopToBlock(lScript, sDoLine, sDoSplit); // ruby.getParserHelper().rb_parser_while_loop(sDoLine, sDoSplit); } if (sCheckOnly) { DumpVisitor lVisitor = new DumpVisitor(); lScript.accept(lVisitor); ruby.getRuntime().getOutputStream().println(lVisitor.dump()); } else { ruby.eval(lScript); } } catch (RaiseException rExcptn) { ruby.getRuntime().printError(rExcptn.getException()); } catch (ThrowJump throwJump) { ruby.getRuntime().printError(throwJump.getNameError()); } catch (RubyBugException lBug) { ruby.getRuntime().getErrorStream().print(lBug.getMessage()); } }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/615c030e9e2e4f7129fe3e92d877dd15dd313c3d/Main.java/buggy/org/jruby/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 1086, 30010, 12, 2514, 277, 2514, 22, 13904, 16, 514, 277, 4771, 16, 514, 8526, 833, 13, 288, 3639, 368, 9190, 2509, 3639, 19817, 22155, 273, 19817, 18, 588, 1868, 1442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1086, 30010, 12, 2514, 277, 2514, 22, 13904, 16, 514, 277, 4771, 16, 514, 8526, 833, 13, 288, 3639, 368, 9190, 2509, 3639, 19817, 22155, 273, 19817, 18, 588, 1868, 1442, ...
}
}
private final boolean load(int offset, boolean changeEntity) throws IOException { if (DEBUG_BUFFER) { System.out.print("(load, "+offset+": "); print(); System.out.println(); } // read characters int length = fCurrentEntity.ch.length - offset; if (DEBUG_BUFFER) System.out.println(" length to try to read: "+length); int count = fCurrentEntity.reader.read(fCurrentEntity.ch, offset, length); if (DEBUG_BUFFER) System.out.println(" length actually read: "+count); // reset count and position boolean entityChanged = false; if (count != -1) { if (count != 0) { fCurrentEntity.count = count + offset; fCurrentEntity.position = offset; } } // end of this entity else { fCurrentEntity.count = offset; fCurrentEntity.position = offset; entityChanged = true; if (changeEntity) { endEntity(); if (fCurrentEntity == null) { throw new EOFException(); } // handle the trailing edges if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true); } } } if (DEBUG_BUFFER) { System.out.print(")load, "+offset+": "); print(); System.out.println(); } return entityChanged; } // load(int):boolean
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/5267740c125e986be50ccb373b73513366a34f0a/XMLEntityManager.java/buggy/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 727, 1250, 1262, 12, 474, 1384, 16, 1250, 2549, 1943, 13, 5411, 1216, 1860, 288, 5411, 309, 261, 9394, 67, 11302, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 12, 945, 16, 13773,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 727, 1250, 1262, 12, 474, 1384, 16, 1250, 2549, 1943, 13, 5411, 1216, 1860, 288, 5411, 309, 261, 9394, 67, 11302, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 12, 945, 16, 13773,...
match(input,21,FOLLOW_21_in_lhs_not2474); following.push(FOLLOW_lhs_column_in_lhs_not2478);
match(input,21,FOLLOW_21_in_lhs_not2477); following.push(FOLLOW_lhs_column_in_lhs_not2481);
public NotDescr lhs_not() throws RecognitionException { NotDescr d; Token loc=null; PatternDescr column = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:17: (loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:17: loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,55,FOLLOW_55_in_lhs_not2471); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:27: ( '(' column= lhs_column ')' | column= lhs_column ) int alt58=2; int LA58_0 = input.LA(1); if ( LA58_0==21 ) { alt58=1; } else if ( LA58_0==ID ) { alt58=2; } else { NoViableAltException nvae = new NoViableAltException("873:27: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:28: '(' column= lhs_column ')' { match(input,21,FOLLOW_21_in_lhs_not2474); following.push(FOLLOW_lhs_column_in_lhs_not2478); column=lhs_column(); following.pop(); match(input,23,FOLLOW_23_in_lhs_not2481); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:57: column= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_not2487); column=lhs_column(); following.pop(); } break; } d = new NotDescr( (ColumnDescr) column ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2288, 16198, 8499, 67, 902, 1435, 1216, 9539, 288, 6647, 2288, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 6830, 16198, 1057, 273, 446, 31, 1171, 202, 202, 72, 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, 377, 1071, 2288, 16198, 8499, 67, 902, 1435, 1216, 9539, 288, 6647, 2288, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 6830, 16198, 1057, 273, 446, 31, 1171, 202, 202, 72, 273, 446, ...
PsiFile myContainingFile = getContainingFile(); if (myContainingFile!=null) { if(myContainingFile.getFileType() == StdFileTypes.JSPX && namespace.equals(XmlUtil.XHTML_URI)) { descriptor = new JspXHTMLDescriptor(descriptor);
if (descriptor!=null) { PsiFile myContainingFile = getContainingFile(); if (myContainingFile!=null) { if(myContainingFile.getFileType() == StdFileTypes.JSPX && namespace.equals(XmlUtil.XHTML_URI)) { descriptor = new JspXHTMLDescriptor(descriptor); }
private XmlNSDescriptor getMetaDataDescriptor(final XmlFile file, String namespace) { XmlNSDescriptor descriptor; descriptor = (XmlNSDescriptor)file.getDocument().getMetaData(); PsiFile myContainingFile = getContainingFile(); if (myContainingFile!=null) { if(myContainingFile.getFileType() == StdFileTypes.JSPX && namespace.equals(XmlUtil.XHTML_URI)) { descriptor = new JspXHTMLDescriptor(descriptor); } } return descriptor; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/46394cd3505fdde81b3a4dc107061b2ea2dde3af/XmlTagImpl.java/clean/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5714, 3156, 3187, 23028, 3187, 12, 6385, 5714, 812, 585, 16, 514, 1981, 13, 288, 565, 5714, 3156, 3187, 4950, 31, 565, 4950, 273, 261, 4432, 3156, 3187, 13, 768, 18, 588, 2519, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5714, 3156, 3187, 23028, 3187, 12, 6385, 5714, 812, 585, 16, 514, 1981, 13, 288, 565, 5714, 3156, 3187, 4950, 31, 565, 4950, 273, 261, 4432, 3156, 3187, 13, 768, 18, 588, 2519, 76...
DesignElement persistentDesignElement = designElementService.find( vect.getDesignElement() );
DesignElement persistentDesignElement = null; DesignElement maybeExistingDesignElement = vect.getDesignElement(); if ( maybeExistingDesignElement instanceof CompositeSequence ) { persistentDesignElement = compositeSequenceService .find( ( CompositeSequence ) maybeExistingDesignElement ); } else if ( maybeExistingDesignElement instanceof Reporter ) { persistentDesignElement = reporterService.find( ( Reporter ) maybeExistingDesignElement ); }
private ExpressionExperiment persistExpressionExperiment( ExpressionExperiment entity ) { if ( entity == null ) return null; if ( entity.getOwner() == null ) { entity.setOwner( defaultOwner ); } if ( entity.getAccession() != null && entity.getAccession().getExternalDatabase() != null ) { entity.setAccession( persistDatabaseEntry( entity.getAccession() ) ); } else { log.warn( "Null accession for expressionExperiment" ); } for ( ExperimentalDesign experimentalDesign : ( Collection<ExperimentalDesign> ) entity .getExperimentalDesigns() ) { // type for ( OntologyEntry type : ( Collection<OntologyEntry> ) experimentalDesign.getTypes() ) { type.setId( persistOntologyEntry( type ).getId() ); } for ( ExperimentalFactor experimentalFactor : ( Collection<ExperimentalFactor> ) experimentalDesign .getExperimentalFactors() ) { for ( OntologyEntry annotation : ( Collection<OntologyEntry> ) experimentalFactor.getAnnotations() ) { annotation.setId( persistOntologyEntry( annotation ).getId() ); } OntologyEntry category = experimentalFactor.getCategory(); if ( category == null ) { log.debug( "No 'category' for ExperimentalDesign" ); } else { persistOntologyEntry( category ); log.debug( "ExperimentalDesign.category=" + category.getId() ); } for ( FactorValue factorValue : ( Collection<FactorValue> ) experimentalFactor.getFactorValues() ) { factorValue.setId( persistFactorValue( factorValue ).getId() ); } } } for ( BioAssay bA : ( Collection<BioAssay> ) entity.getBioAssays() ) { bA.setId( persistBioAssay( bA ).getId() ); } for ( ExpressionExperimentSubSet subset : ( Collection<ExpressionExperimentSubSet> ) entity.getSubsets() ) { for ( BioAssay bA : ( Collection<BioAssay> ) subset.getBioAssays() ) { bA.setId( persistBioAssay( bA ).getId() ); } } for ( DesignElementDataVector vect : ( Collection<DesignElementDataVector> ) entity .getDesignElementDataVectors() ) { DesignElement persistentDesignElement = designElementService.find( vect.getDesignElement() ); if ( persistentDesignElement == null ) { throw new IllegalStateException( vect.getDesignElement() + " does not have a persistent version" ); } ArrayDesign ad = persistentDesignElement.getArrayDesign(); ad.setId( this.persistArrayDesign( ad ).getId() ); vect.setDesignElement( persistentDesignElement ); } return expressionExperimentService.findOrCreate( entity ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/9397da70dbc0f11cc0ef54ef44534f3cbd21c5cb/PersisterHelper.java/clean/src/impl/edu/columbia/gemma/loader/loaderutils/PersisterHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5371, 22338, 3898, 2300, 22338, 12, 5371, 22338, 1522, 262, 288, 3639, 309, 261, 1522, 422, 446, 262, 327, 446, 31, 3639, 309, 261, 1522, 18, 588, 5541, 1435, 422, 446, 262, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5371, 22338, 3898, 2300, 22338, 12, 5371, 22338, 1522, 262, 288, 3639, 309, 261, 1522, 422, 446, 262, 327, 446, 31, 3639, 309, 261, 1522, 18, 588, 5541, 1435, 422, 446, 262, 288, ...
viewer.setSelection(restoreSelection(memento), true);
viewer.setSelection(restoreSelection(memento));
public void createPartControl(Composite parent) { viewer = new TableViewer(createTable(parent)); restoreColumnWidths(memento); createColumns(viewer.getTable()); getContentProvider().setFilter(getFilter()); viewer.setContentProvider(new TableContentProvider(getSite(), getContentProvider())); viewer.setLabelProvider(new TableViewLabelProvider(getVisibleFields())); viewer.setSorter(getSorter()); //create the actions before the input is set on the viewer but after the //sorter and filter are set so the actions will be enabled correctly. createActions(); viewer.setInput(getViewerInput()); viewer.setSelection(restoreSelection(memento), true); Scrollable scrollable = (Scrollable) viewer.getControl(); ScrollBar bar = scrollable.getVerticalBar(); if (bar != null) { bar.setSelection(restoreVerticalScrollBarPosition(memento)); } bar = scrollable.getHorizontalBar(); if (bar != null) { bar.setSelection(restoreHorizontalScrollBarPosition(memento)); } MenuManager mgr = initContextMenu(); Menu menu = mgr.createContextMenu(viewer.getControl()); viewer.getControl().setMenu(menu); getSite().registerContextMenu(mgr, viewer); initActionBars(getViewSite().getActionBars()); registerGlobalActions(getViewSite().getActionBars()); viewer.addOpenListener(new IOpenListener() { public void open(OpenEvent event) { handleOpenEvent(event); } }); viewer.getControl().addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { handleKeyPressed(e); } }); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ea57ee1b804071939d5791d4c2986826074efe0c/TableView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 25256, 273, 394, 3555, 18415, 12, 2640, 1388, 12, 2938, 10019, 202, 202, 13991, 1494, 22407, 12, 81, 820, 83, 1769, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 25256, 273, 394, 3555, 18415, 12, 2640, 1388, 12, 2938, 10019, 202, 202, 13991, 1494, 22407, 12, 81, 820, 83, 1769, 202...
return RubyString.newString(runtime, sb.toString());
return getRuntime().newString(sb.toString());
public RubyString inspect() { final String sep = ", "; final String arrow = "=>"; final StringBuffer sb = new StringBuffer("{"); boolean firstEntry = true; for (Iterator iter = valueMap.entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); IRubyObject key = (IRubyObject) entry.getKey(); IRubyObject value = (IRubyObject) entry.getValue(); if (!firstEntry) { sb.append(sep); } sb.append(key.callMethod("inspect")).append(arrow); sb.append(value.callMethod("inspect")); firstEntry = false; } sb.append("}"); return RubyString.newString(runtime, sb.toString()); }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyHash.java/clean/src/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 5334, 1435, 288, 3639, 727, 514, 5478, 273, 3104, 13636, 3639, 727, 514, 12274, 273, 29199, 2984, 31, 3639, 727, 6674, 2393, 273, 394, 6674, 2932, 95, 8863, 3639, 1250, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 5334, 1435, 288, 3639, 727, 514, 5478, 273, 3104, 13636, 3639, 727, 514, 12274, 273, 29199, 2984, 31, 3639, 727, 6674, 2393, 273, 394, 6674, 2932, 95, 8863, 3639, 1250, ...
public void endEntity(String name) throws XNIException;
public void endEntity(String name, Augmentations augs) throws XNIException;
public void endEntity(String name) throws XNIException;
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/c142befb61e52fe4cf95c40bd1466d0d99b41900/XMLEntityHandler.java/buggy/src/org/apache/xerces/impl/XMLEntityHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 1943, 12, 780, 508, 13, 1216, 1139, 50, 45, 503, 31, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 1943, 12, 780, 508, 13, 1216, 1139, 50, 45, 503, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for ( Iterator iterator = project.getPlugins().iterator(); iterator.hasNext() && dom == null; )
for ( Iterator iterator = project.getPlugins().iterator(); iterator.hasNext(); )
private static PlexusConfiguration getProjectDefinedPluginConfiguration( MavenProject project, String goalId ) { Xpp3Dom dom = null; // ---------------------------------------------------------------------- // I would like to be able to lookup the Plugin object using a key but // we have a limitation in modello that will be remedied shortly. So // for now I have to iterate through and see what we have. // ---------------------------------------------------------------------- if ( project.getPlugins() != null ) { String pluginId = getPluginId( goalId ); for ( Iterator iterator = project.getPlugins().iterator(); iterator.hasNext() && dom == null; ) { org.apache.maven.model.Plugin plugin = (org.apache.maven.model.Plugin) iterator.next(); // TODO: groupID not handled if ( pluginId.equals( plugin.getArtifactId() ) ) { dom = (Xpp3Dom) plugin.getConfiguration(); // TODO: much less of this magic is needed - make the mojoDescriptor just store the first and second part int index = goalId.indexOf( ':' ); if ( index >= 0 ) { String goalName = goalId.substring( index + 1 ); for ( Iterator j = plugin.getGoals().iterator(); j.hasNext() && dom == null; ) { Goal goal = (Goal) j.next(); if ( goal.getId().equals( goalName ) ) { Xpp3Dom goalConfiguration = (Xpp3Dom) goal.getConfiguration(); if ( goalConfiguration != null ) { dom = Xpp3DomUtils.mergeXpp3Dom( Xpp3DomUtils.copyXpp3Dom( goalConfiguration ), dom ); } else { dom = new Xpp3Dom( "configuration" ); } } } } } } } PlexusConfiguration configuration; if ( dom == null ) { configuration = new XmlPlexusConfiguration( "configuration" ); } else { configuration = new XmlPlexusConfiguration( dom ); } return configuration; }
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/7573893dac30b278dd642520da216ca3d400f278/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 453, 4149, 407, 1750, 11080, 8116, 3773, 1750, 12, 17176, 4109, 1984, 16, 514, 17683, 548, 262, 565, 288, 3639, 1139, 11858, 23, 8832, 4092, 273, 446, 31, 3639, 368, 8879, 1346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 4149, 407, 1750, 11080, 8116, 3773, 1750, 12, 17176, 4109, 1984, 16, 514, 17683, 548, 262, 565, 288, 3639, 1139, 11858, 23, 8832, 4092, 273, 446, 31, 3639, 368, 8879, 1346...
if (isDocumented.apply(member) && isRelevant(sym))
if (isRelevant(member))
public static Symbol[] members(Symbol sym, SymbolBooleanFunction isDocumented) { if (isContainer(sym) && !isLazy(sym)) { List memberList = new LinkedList(); SymbolIterator i = new UnloadLazyIterator(sym.members().iterator(false)); while (i.hasNext()) { Symbol member = i.next(); if (isDocumented.apply(member) && isRelevant(sym)) memberList.add(member); } return (Symbol[]) memberList.toArray(new Symbol[memberList.size()]); } else return new Symbol[0]; }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/278d0ef80e8d4c681f350afbbe14f2e076d6a2c1/ScalaSearch.java/buggy/sources/scala/tools/scaladoc/ScalaSearch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8565, 8526, 4833, 12, 5335, 5382, 16, 4766, 282, 8565, 5507, 2083, 353, 2519, 329, 13, 288, 202, 430, 261, 291, 2170, 12, 8117, 13, 597, 401, 291, 14443, 12, 8117, 3719, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8565, 8526, 4833, 12, 5335, 5382, 16, 4766, 282, 8565, 5507, 2083, 353, 2519, 329, 13, 288, 202, 430, 261, 291, 2170, 12, 8117, 13, 597, 401, 291, 14443, 12, 8117, 3719, 288,...
paragraph.add(String.valueOf(pageN));
paragraph.add(new Chunk(String.valueOf(pageN), before.font()));
public final Paragraph paragraph() { Paragraph paragraph = new Paragraph(before); if (numbered) { paragraph.add(String.valueOf(pageN)); } if (after != null) { paragraph.add(after); } paragraph.setAlignment(alignment); return paragraph; }
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/b9dd8b792488d140f2cf6b9c741554a04b598e6b/HeaderFooter.java/buggy/src/com/lowagie/text/HeaderFooter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 24963, 10190, 1435, 288, 3639, 24963, 10190, 273, 394, 24963, 12, 5771, 1769, 3639, 309, 261, 2696, 329, 13, 288, 5411, 10190, 18, 1289, 12, 2704, 13021, 12, 780, 18, 1132, 951...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24963, 10190, 1435, 288, 3639, 24963, 10190, 273, 394, 24963, 12, 5771, 1769, 3639, 309, 261, 2696, 329, 13, 288, 5411, 10190, 18, 1289, 12, 2704, 13021, 12, 780, 18, 1132, 951...
Menu aMenu = systemMenuManager.createContextMenu(paneFolder .getControl().getParent()); systemMenuManager.update(true); aMenu.setLocation(point.x, point.y); aMenu.setVisible(true); }
Menu aMenu = systemMenuManager.createContextMenu(paneFolder .getControl().getParent()); systemMenuManager.update(true); aMenu.setLocation(point.x, point.y); aMenu.setVisible(true); }
protected void showSystemMenu(Point point) { Menu aMenu = systemMenuManager.createContextMenu(paneFolder .getControl().getParent()); systemMenuManager.update(true); aMenu.setLocation(point.x, point.y); aMenu.setVisible(true); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21BasicStackPresentation.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2405, 3163, 4599, 12, 2148, 1634, 13, 288, 3639, 9809, 279, 4599, 273, 2619, 4599, 1318, 18, 2640, 27315, 12, 29009, 3899, 7734, 263, 588, 3367, 7675, 588, 3054, 10663, 3639, 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, 2405, 3163, 4599, 12, 2148, 1634, 13, 288, 3639, 9809, 279, 4599, 273, 2619, 4599, 1318, 18, 2640, 27315, 12, 29009, 3899, 7734, 263, 588, 3367, 7675, 588, 3054, 10663, 3639, 2...
if (e.time <= doubleClickExpirationTime) { control.removeMouseListener(mouseListener); cancelEditing(); handleDoubleClickEvent(); } else if (mouseListener != null) { control.removeMouseListener(mouseListener); }
if (e.time <= doubleClickExpirationTime) { control.removeMouseListener(mouseListener); cancelEditing(); handleDoubleClickEvent(); } else if (mouseListener != null) { control.removeMouseListener(mouseListener);
public void mouseDown(MouseEvent e) { // time wrap? // check for expiration of doubleClickTime if (e.time <= doubleClickExpirationTime) { control.removeMouseListener(mouseListener); cancelEditing(); handleDoubleClickEvent(); } else if (mouseListener != null) { control.removeMouseListener(mouseListener); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ac452c0ee48b0cf574b83d694d7aa6bfa0068215/AbstractViewerEditor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractViewerEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9944, 202, 482, 918, 7644, 4164, 12, 9186, 1133, 425, 13, 288, 6862, 1082, 202, 759, 813, 2193, 35, 6862, 1082, 202, 759, 866, 364, 7686, 434, 1645, 6563, 950, 6862, 1082, 202, 430, 261, 73,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9944, 202, 482, 918, 7644, 4164, 12, 9186, 1133, 425, 13, 288, 6862, 1082, 202, 759, 813, 2193, 35, 6862, 1082, 202, 759, 866, 364, 7686, 434, 1645, 6563, 950, 6862, 1082, 202, 430, 261, 73,...
if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_322()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(RPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
if (jj_scan_token(COMMA)) return true; if (jj_3R_47()) return true;
final private boolean jj_3R_283() { if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_322()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(RPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/buggy/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, 6030, 23, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 15111, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 6030, 23, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 15111, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374...
private boolean tryProcess(byte[] buf, int offset, int length, NodePeer pn) { Logger.minor(this,"Entering tryProcess: "+buf+","+offset+","+length+","+pn); /** * E_pcbc_session(H(seq+random+data)) E_pcfb_session(seq+random+data) * * So first two blocks are the hash, PCBC encoded (meaning the * first one is ECB, and the second one is ECB XORed with the * ciphertext and plaintext of the first block). */ BlockCipher sessionCipher = pn.getSessionCipher(); int blockSize = sessionCipher.getBlockSize() >> 3; if(sessionCipher.getKeySize() != sessionCipher.getBlockSize()*2) throw new IllegalStateException("Block size must be half key size"); MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } int digestLength = md.getDigestLength(); if(digestLength != 2*blockSize) throw new IllegalStateException("Block size must be half digest length!"); byte[] packetHash = new byte[digestLength]; System.arraycopy(buf, offset, packetHash, 0, digestLength); // Decrypt the sequence number and see if it's plausible // Verify the hash later PCFBMode pcfb; pcfb = new PCFBMode(sessionCipher); // Set IV to the hash, after it is encrypted pcfb.reset(packetHash); //Logger.minor(this,"IV:\n"+HexUtil.bytesToHex(packetHash)); byte[] seqBuf = new byte[4]; System.arraycopy(buf, offset+digestLength, seqBuf, 0, 4); //Logger.minor(this, "Encypted sequence number: "+HexUtil.bytesToHex(seqBuf)); pcfb.blockDecipher(seqBuf, 0, 4); //Logger.minor(this, "Decrypted sequence number: "+HexUtil.bytesToHex(seqBuf)); int seqNumber = ((((((seqBuf[0] & 0xff) << 8) + (seqBuf[1] & 0xff)) << 8) + (seqBuf[2] & 0xff)) << 8) + (seqBuf[3] & 0xff); int targetSeqNumber = pn.lastReceivedSequenceNumber(); Logger.minor(this, "Target seq: "+targetSeqNumber); Logger.minor(this, "Sequence number: "+seqNumber+"="+Integer.toHexString(seqNumber)); if(seqNumber == -1) { // Ack/resendreq-only packet } else { // Now is it credible? // As long as it's within +/- 256, this is valid. if(targetSeqNumber != -1 && Math.abs(targetSeqNumber - seqNumber) > MAX_PACKETS_IN_FLIGHT) return false; } Logger.minor(this, "Sequence number received: "+seqNumber); // Plausible, so lets decrypt the rest of the data byte[] plaintext = new byte[length-(4+digestLength)]; System.arraycopy(buf, offset+digestLength+4, plaintext, 0, length-(digestLength+4)); pcfb.blockDecipher(plaintext, 0, length-(digestLength+4)); //Logger.minor(this, "Plaintext:\n"+HexUtil.bytesToHex(plaintext)); md.update(seqBuf); md.update(plaintext); byte[] realHash = md.digest(); // Now decrypt the original hash // First block byte[] temp = new byte[blockSize]; System.arraycopy(buf, offset, temp, 0, blockSize); sessionCipher.decipher(temp, temp); System.arraycopy(temp, 0, packetHash, 0, blockSize); // Second block System.arraycopy(buf, offset+blockSize, temp, 0, blockSize); // Un-PCBC for(int i=0;i<blockSize;i++) { temp[i] ^= (buf[offset+i] ^ packetHash[i]); } //Logger.minor(this, "Encrypted second block of hash: "+HexUtil.bytesToHex(temp)); sessionCipher.decipher(temp, temp); //Logger.minor(this, "Decrypted second block of hash: "+HexUtil.bytesToHex(temp)); System.arraycopy(temp, 0, packetHash, blockSize, blockSize); // Check the hash if(!java.util.Arrays.equals(packetHash, realHash)) { Logger.minor(this, "Packet possibly from "+pn+" hash does not match:\npacketHash="+ HexUtil.bytesToHex(packetHash)+"\n realHash="+HexUtil.bytesToHex(realHash)+" ("+(length-digestLength)+" bytes payload)"); return false; } if(seqNumber != -1 && pn.alreadyReceived(seqNumber)) { pn.queueAck(seqNumber); Logger.normal(this, "Received packet twice: "+seqNumber); return true; } for(int i=0;i<md.getDigestLength();i++) { packetHash[i] ^= buf[offset+i]; } node.random.acceptEntropyBytes(myPacketDataSource, packetHash, 0, md.getDigestLength(), 0.5); // Lots more to do yet! processDecryptedData(plaintext, seqNumber, pn); return true; }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/d6f2b27b0068d0738bbd2f1afae8c1cc0bef24f4/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6494, 698, 2227, 12, 7229, 8526, 4385, 16, 474, 3348, 16, 474, 2469, 16, 907, 6813, 7449, 15329, 3328, 18, 17364, 12, 2211, 10837, 10237, 310, 698, 2227, 2773, 15, 4385, 15, 15937, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6494, 698, 2227, 12, 7229, 8526, 4385, 16, 474, 3348, 16, 474, 2469, 16, 907, 6813, 7449, 15329, 3328, 18, 17364, 12, 2211, 10837, 10237, 310, 698, 2227, 2773, 15, 4385, 15, 15937, 15, ...
} else if (this.installdata.kind.equalsIgnoreCase("standard-kunststoff") || this.installdata.kind.equalsIgnoreCase("web-kunststoff"))
} else if ( this.installdata.kind.equalsIgnoreCase("standard-kunststoff") || this.installdata.kind.equalsIgnoreCase("web-kunststoff"))
protected void loadLookAndFeel() throws Exception { if (this.installdata.kind.equalsIgnoreCase("standard") || this.installdata.kind.equalsIgnoreCase("web")) { if (getClass().getResourceAsStream("/res/useNativeLAF") != null) { String nlaf = UIManager.getSystemLookAndFeelClassName(); UIManager.setLookAndFeel(nlaf); } if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { // We simply put our nice theme MetalLookAndFeel.setCurrentTheme(new IzPackMetalTheme()); ButtonFactory.useHighlightButtons(); this.installdata.buttonsHColor = new Color(182, 182, 204); } lnf = "swing"; } else if (this.installdata.kind.equalsIgnoreCase("standard-kunststoff") || this.installdata.kind.equalsIgnoreCase("web-kunststoff")) { ButtonFactory.useHighlightButtons(); // We change the highlight color for the buttons this.installdata.buttonsHColor = new Color(255, 255, 255); // Some reflection ... Class laf = Class.forName("com.incors.plaf.kunststoff.KunststoffLookAndFeel"); Class mtheme = Class.forName("javax.swing.plaf.metal.MetalTheme"); Class[] params = {mtheme}; Class theme = Class.forName("com.izforge.izpack.gui.IzPackKMetalTheme"); Method setCurrentThemeMethod = laf.getMethod("setCurrentTheme", params); // We invoke and place Kunststoff as our L&F LookAndFeel kunststoff = (LookAndFeel) laf.newInstance(); MetalTheme ktheme = (MetalTheme) theme.newInstance(); Object[] kparams = {ktheme}; UIManager.setLookAndFeel(kunststoff); setCurrentThemeMethod.invoke(kunststoff, kparams); lnf = "kunststoff"; } ButtonFactory.useButtonIcons(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1262, 9794, 1876, 2954, 292, 1435, 1216, 1185, 225, 288, 565, 309, 261, 2211, 18, 5425, 892, 18, 9224, 18, 14963, 5556, 2932, 10005, 7923, 747, 1377, 333, 18, 5425, 892, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1262, 9794, 1876, 2954, 292, 1435, 1216, 1185, 225, 288, 565, 309, 261, 2211, 18, 5425, 892, 18, 9224, 18, 14963, 5556, 2932, 10005, 7923, 747, 1377, 333, 18, 5425, 892, 18, ...
if (jj_3_60()) jj_scanpos = xsp;
if (jj_3_59()) jj_scanpos = xsp;
final private boolean jj_3_62() { if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3_60()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d1775300ef3c91eaadbc0bf2706207627b5dc993/SoarParser.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/parser/SoarParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 8898, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5718, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 8898, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5718, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 98...
public void print(IWContext iwc) throws Exception { if (getLanguage().equals("HTML")) { println("<select name=\"" + getName() + "\" " + getAttributeString() + " >"); Iterator iter = theElements.iterator(); while (iter.hasNext()) { SelectOption option = (SelectOption) iter.next(); if (_allSelected) option.setSelected(true); option._print(iwc); } println("</select>"); } else if (getLanguage().equals("WML")) { println("<select name=\"" + getName() + "\" " + getAttributeString() + " >"); Iterator iter = theElements.iterator(); while (iter.hasNext()) { SelectOption option = (SelectOption) iter.next(); if (_allSelected) option.setSelected(true); option._print(iwc); } println("</select>"); } }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/9a57a747bd2e180ab97aac8e8a104e4d1d107ca2/GenericSelect.java/clean/src/java/com/idega/presentation/ui/GenericSelect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1172, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 430, 261, 588, 3779, 7675, 14963, 2932, 4870, 6, 3719, 288, 1082, 202, 8222, 2932, 32, 4025, 508, 13186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1172, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 430, 261, 588, 3779, 7675, 14963, 2932, 4870, 6, 3719, 288, 1082, 202, 8222, 2932, 32, 4025, 508, 13186,...
&& (!ISources.ACTIVE_WORKBENCH_WINDOW_NAME.equals(name))) {
&& (!ISources.ACTIVE_WORKBENCH_WINDOW_SHELL_NAME.equals(name))) {
protected final void updateEvaluationContext(final String name, final Object value) { /* * Bug 84056. If we update the active workbench window, then we risk * falling back to that shell when the active shell has registered as * "none". */ if ((name != null) && (!ISources.ACTIVE_WORKBENCH_WINDOW_NAME.equals(name))) { /* * We need to track shell activation ourselves, as some special * contexts are automatically activated in response to different * types of shells becoming active. */ if (ISources.ACTIVE_SHELL_NAME.equals(name)) { checkWindowType((Shell) value, (Shell) getVariable(ISources.ACTIVE_SHELL_NAME)); } // Update the evaluation context itself. changeVariable(name, value); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a831dea76fba37dc4e6790cda1c9ce144736d4e4/ContextAuthority.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ContextAuthority.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 918, 1089, 13468, 1042, 12, 6385, 514, 508, 16, 1082, 202, 6385, 1033, 460, 13, 288, 202, 202, 20308, 1082, 380, 16907, 1725, 7132, 4313, 18, 971, 732, 1089, 326, 2695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 1089, 13468, 1042, 12, 6385, 514, 508, 16, 1082, 202, 6385, 1033, 460, 13, 288, 202, 202, 20308, 1082, 380, 16907, 1725, 7132, 4313, 18, 971, 732, 1089, 326, 2695, ...
Set result = new HashSet();
Set<Replica> result = new HashSet<Replica>();
public Set getPeerReplicas() { Set result = new HashSet(); result.addAll( peerReplicas ); return result; }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/cfc1e0db255153cb8ed18cd1e735fa4815ad666b/ReplicationConfiguration.java/clean/mitosis/src/main/java/org/apache/directory/mitosis/configuration/ReplicationConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 29875, 17248, 1435, 565, 288, 3639, 1000, 32, 14222, 34, 563, 273, 394, 6847, 32, 14222, 34, 5621, 3639, 563, 18, 1289, 1595, 12, 4261, 17248, 11272, 3639, 327, 563, 31, 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, 1071, 1000, 29875, 17248, 1435, 565, 288, 3639, 1000, 32, 14222, 34, 563, 273, 394, 6847, 32, 14222, 34, 5621, 3639, 563, 18, 1289, 1595, 12, 4261, 17248, 11272, 3639, 327, 563, 31, 565, ...
final LegacyLocationInfo locationInfo = new LegacyLocationInfo();
private final void readObjectContributions( final IConfigurationElement[] configurationElements, final int configurationElementCount) { final List warningsToLog = new ArrayList(1); for (int i = 0; i < configurationElementCount; i++) { final IConfigurationElement element = configurationElements[i]; // Read the object contribution identifier. final String id = readRequired(element, ATT_ID, warningsToLog, "Object contributions need an id"); //$NON-NLS-1$ if (id == null) { continue; } // Read the object class. This influences the visibility. final String objectClass = readRequired(element, ATT_OBJECTCLASS, warningsToLog, "Object contributions need an object class", id); //$NON-NLS-1$ if (objectClass == null) { continue; } // TODO Read the name filter. This influences the visibility. // final String nameFilter = readOptional(element, // ATT_NAME_FILTER); // TODO Read the object class. This influences the visibility. // final boolean adaptable = readBoolean(element, // ATT_ADAPTABLE, // false); final LegacyLocationInfo locationInfo = new LegacyLocationInfo(); // TODO Read the filter elements. // TODO Read the enablement elements. // TODO Figure out an appropriate visibility expression. // Read the visibility element, if any. final Expression visibleWhenExpression = readVisibility(element, id, warningsToLog); // Read all of the child elements from the registry. readActionsAndMenus(element, id, warningsToLog, locationInfo, visibleWhenExpression, null); } logWarnings( warningsToLog, "Warnings while parsing the object contributions from the 'org.eclipse.ui.popupMenus' extension point"); //$NON-NLS-1$ }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/53fd921b075353dcdae81adede44ada3923165c4/LegacyActionPersistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 17362, 442, 15326, 12, 1082, 202, 6385, 467, 1750, 1046, 8526, 1664, 3471, 16, 1082, 202, 6385, 509, 1664, 1046, 1380, 13, 288, 202, 202, 6385, 987, 5599, 774, 1343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 17362, 442, 15326, 12, 1082, 202, 6385, 467, 1750, 1046, 8526, 1664, 3471, 16, 1082, 202, 6385, 509, 1664, 1046, 1380, 13, 288, 202, 202, 6385, 987, 5599, 774, 1343, ...
if (xslFileStream != null) { try { xslFileStream.close(); } catch (IOException e) { }
try { xslFileStream.close(); } catch (IOException e) {
protected void writeFile(Element cruisecontrolLog, String path) throws CruiseControlException { FileInputStream xslFileStream = null; OutputStream out = null; try { //Make sure that the xsltFile exists try { xslFileStream = new FileInputStream(this.xsltFile); } catch (IOException ioe) { throw new CruiseControlException("Error reading the xsltFile: " + this.xsltFile, ioe); } //construct a FileWriter to the outputFile path location try { out = new FileOutputStream(path); } catch (IOException ioe) { throw new CruiseControlException("Unable to write to the file location: " + path); } //Prepare the transformer TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource(xslFileStream)); //cruisecontrolLog.get XMLLogHelper helper = new XMLLogHelper(cruisecontrolLog); String logFileName = helper.getLogFileName(); LOG.info("Transforming the log file: " + logFileName + " to: " + path + " using the xslt: " + this.xsltFile); //perform the transform, writing out the results to the output location transformer.transform(new JDOMSource(cruisecontrolLog), new StreamResult(out)); } catch (TransformerException te) { throw new CruiseControlException("An error occurred during the transformation process", te); } catch (Exception ioe) { throw new CruiseControlException("An unexpected exception occurred, unable to publish the log file.", ioe); } finally { //clean up if (xslFileStream != null) { try { xslFileStream.close(); } catch (IOException e) { //Do nothing } } if (out != null) { try { out.close(); } catch (IOException e) { //Do Nothing } } } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/82fa18574757069795139c57bd59b9fdd50cb91b/XSLTLogPublisher.java/clean/main/src/net/sourceforge/cruisecontrol/publishers/XSLTLogPublisher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 13286, 12, 1046, 4422, 89, 291, 31313, 922, 1343, 16, 514, 589, 13, 1216, 385, 8653, 784, 3367, 503, 288, 1377, 11907, 20791, 812, 1228, 273, 446, 31, 1377, 8962, 596, 273, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 13286, 12, 1046, 4422, 89, 291, 31313, 922, 1343, 16, 514, 589, 13, 1216, 385, 8653, 784, 3367, 503, 288, 1377, 11907, 20791, 812, 1228, 273, 446, 31, 1377, 8962, 596, 273, 4...
if (dist<r2)
if (dist<=r2)
boolean picked(int x, int y) { float dx = (x-radius); float dx2 = dx*dx; float dy = (y-radius); float dy2 = dy*dy; float dist = dx2+dy2; float r2 = radius*radius; if (dist<r2) { puck = new PlanePoint(x,y); return true; } return false; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/a2a21d76a209874f3fbc606dd5d78ce4ddf85319/HSVWheel.java/clean/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/HSVWheel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6494, 25534, 12, 474, 619, 16, 509, 677, 13, 202, 95, 202, 202, 5659, 6633, 273, 261, 92, 17, 11282, 1769, 202, 202, 5659, 6633, 22, 273, 6633, 14, 13437, 31, 202, 202, 5659, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6494, 25534, 12, 474, 619, 16, 509, 677, 13, 202, 95, 202, 202, 5659, 6633, 273, 261, 92, 17, 11282, 1769, 202, 202, 5659, 6633, 22, 273, 6633, 14, 13437, 31, 202, 202, 5659, 773...
public boolean removeAttribute ( QName attrName ) { if (preCheck()) { _locale.enter(); try { return _removeAttribute( attrName ); } finally { _locale.exit(); } } else synchronized ( _locale ) { _locale.enter(); try { return _removeAttribute( attrName ); } finally { _locale.exit(); } } }
public boolean removeAttribute ( QName attrName ) { if (preCheck()) { _cur._locale.enter(); try { return _removeAttribute( attrName ); } finally { _cur._locale.exit(); } } else synchronized ( _cur._locale ) { _cur._locale.enter(); try { return _removeAttribute( attrName ); } finally { _cur._locale.exit(); } } }
public boolean removeAttribute ( QName attrName ) { if (preCheck()) { _locale.enter(); try { return _removeAttribute( attrName ); } finally { _locale.exit(); } } else synchronized ( _locale ) { _locale.enter(); try { return _removeAttribute( attrName ); } finally { _locale.exit(); } } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/78d5fcf8af10b9b5bb990c642b2118f8c482db5e/Cursor.java/clean/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 18831, 261, 16723, 11583, 262, 288, 309, 261, 1484, 1564, 10756, 288, 389, 6339, 18, 2328, 5621, 775, 288, 327, 389, 4479, 1499, 12, 11583, 11272, 289, 3095, 288, 389, 6339, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18831, 261, 16723, 11583, 262, 288, 309, 261, 1484, 1564, 10756, 288, 389, 6339, 18, 2328, 5621, 775, 288, 327, 389, 4479, 1499, 12, 11583, 11272, 289, 3095, 288, 389, 6339, 1...
if (unitIncrement < 0) throw new IllegalArgumentException("Unit increment less than zero."); int range = maximum - minimum; if (unitIncrement > range) { if (range == 0) unitIncrement = 1; else unitIncrement = range; } if (unitIncrement == lineIncrement) return; lineIncrement = unitIncrement; ScrollbarPeer sp = (ScrollbarPeer)getPeer(); if (sp != null) sp.setLineIncrement(lineIncrement);
setLineIncrement (unitIncrement);
setUnitIncrement(int unitIncrement){ if (unitIncrement < 0) throw new IllegalArgumentException("Unit increment less than zero."); int range = maximum - minimum; if (unitIncrement > range) { if (range == 0) unitIncrement = 1; else unitIncrement = range; } if (unitIncrement == lineIncrement) return; lineIncrement = unitIncrement; ScrollbarPeer sp = (ScrollbarPeer)getPeer(); if (sp != null) sp.setLineIncrement(lineIncrement);}
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/3fe1c14284ce32b79d0e66441aec6a45a77ff684/Scrollbar.java/buggy/libjava/java/awt/Scrollbar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 2802, 10798, 12, 474, 2836, 10798, 15329, 225, 309, 261, 4873, 10798, 411, 374, 13, 565, 604, 394, 2754, 2932, 2802, 5504, 5242, 2353, 3634, 1199, 1769, 225, 509, 1048, 273, 4207, 300, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 2802, 10798, 12, 474, 2836, 10798, 15329, 225, 309, 261, 4873, 10798, 411, 374, 13, 565, 604, 394, 2754, 2932, 2802, 5504, 5242, 2353, 3634, 1199, 1769, 225, 509, 1048, 273, 4207, 300, 52...
myRawRowKeyPaths = _map.getList("rawRowKeyPaths", true); myRefreshesRefetchedObjects = _map.getBoolean("refreshesRefetchedObjects"); myRequiresAllQualifierBindingVariables = _map.getBoolean("requiresAllQualifierBindingVariables"); myUsesDistinct = _map.getBoolean("usesDistinct");
myRawRowKeyPaths = _map.getList("rawRowKeyPaths", true); myRefreshesRefetchedObjects = _map.getBoolean("refreshesRefetchedObjects"); myRequiresAllQualifierBindingVariables = _map.getBoolean("requiresAllQualifierBindingVariables"); myUsesDistinct = _map.getBoolean("usesDistinct");
public void loadFromMap(EOModelMap _map) throws EOModelException { myFetchSpecMap = _map; // "entityName" = myEntity myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit"); Map qualifierMap = _map.getMap("qualifier"); if (qualifierMap != null) { myQualifier = EOQualifierFactory.qualifierForMap(new EOModelMap(qualifierMap)); } myRawRowKeyPaths = _map.getList("rawRowKeyPaths", true); myRefreshesRefetchedObjects = _map.getBoolean("refreshesRefetchedObjects"); myRequiresAllQualifierBindingVariables = _map.getBoolean("requiresAllQualifierBindingVariables"); myUsesDistinct = _map.getBoolean("usesDistinct"); List sortOrderings = _map.getList("sortOrderings"); if (sortOrderings != null) { Iterator sortOrderingsIter = sortOrderings.iterator(); while (sortOrderingsIter.hasNext()) { EOModelMap sortOrderingMap = new EOModelMap((Map) sortOrderingsIter.next()); EOSortOrdering sortOrdering = new EOSortOrdering(); sortOrdering.loadFromMap(sortOrderingMap); addSortOrdering(sortOrdering); } } }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/d39ae6aad0341c8bf84f634fb6d078b5ba63e8f8/EOFetchSpecification.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOFetchSpecification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 24935, 863, 12, 41, 51, 1488, 863, 389, 1458, 13, 1216, 512, 51, 1488, 503, 288, 565, 3399, 5005, 1990, 863, 273, 389, 1458, 31, 565, 368, 315, 1096, 461, 6, 273, 3399, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 24935, 863, 12, 41, 51, 1488, 863, 389, 1458, 13, 1216, 512, 51, 1488, 503, 288, 565, 3399, 5005, 1990, 863, 273, 389, 1458, 31, 565, 368, 315, 1096, 461, 6, 273, 3399, 194...
connector.synchronizeChanged(repository);
TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, repository);
public IStatus run(IProgressMonitor monitor) { try { if (monitor == null) { monitor = new NullProgressMonitor(); } taskList = taskListManager.getTaskList(); if (repositories == null) { repositories = TasksUiPlugin.getRepositoryManager().getAllRepositories(); } monitor.beginTask(LABEL_TASK, repositories.size()); for (final TaskRepository repository : repositories) { if (monitor.isCanceled()) { scheduleDelay = -1; throw new OperationCanceledException(); } final AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager() .getRepositoryConnector(repository.getKind()); if (connector == null) { monitor.worked(1); continue; } Set<AbstractRepositoryQuery> queries = Collections.unmodifiableSet(taskList .getRepositoryQueries(repository.getUrl())); if (queries.size() > 0) { if (connector != null) { JobChangeAdapter jobAdapter = new JobChangeAdapter() { @Override public void done(IJobChangeEvent event) { connector.synchronizeChanged(repository); } }; connector.synchronize(queries, jobAdapter, Job.DECORATE, 0, false); } } else { connector.synchronizeChanged(repository); } monitor.worked(1); } } finally { count++; if (count == Long.MAX_VALUE) count = 0; if (monitor != null) { monitor.done(); } } return Status.OK_STATUS; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/72d80f551ca060c2734122d72e119e0cdf881f12/ScheduledTaskListSynchJob.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduledTaskListSynchJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 10259, 422, 446, 13, 288, 9506, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 10259, 422, 446, 13, 288, 9506, 202, 10259, 273, 394, 4112, 5491, 7187, 5621, 1082...
public void end(String endpointName, String endpointName1) throws Exception
public void end(String s, String s1) throws Exception
public void end(String endpointName, String endpointName1) throws Exception { UMOEncryptionStrategy s = (UMOEncryptionStrategy)digester.peek(); ((UMOSecurityManager)digester.peek(1)).addEncryptionStrategy(name, s); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2c89154af17bc537ae7355b4bb41cac62469ac41/MuleXmlConfigurationBuilder.java/clean/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 679, 12, 780, 272, 16, 514, 272, 21, 13, 1216, 1185, 5411, 288, 7734, 587, 5980, 7894, 4525, 272, 273, 261, 2799, 51, 7894, 4525, 13, 5606, 7654, 18, 347, 3839, 5621, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 679, 12, 780, 272, 16, 514, 272, 21, 13, 1216, 1185, 5411, 288, 7734, 587, 5980, 7894, 4525, 272, 273, 261, 2799, 51, 7894, 4525, 13, 5606, 7654, 18, 347, 3839, 5621, 7734, ...
if(ids != null && ids.length > 0) {
if (ids != null && ids.length > 0) {
protected Object[] getChildren() { if(children != null) return children; Context cx = Context.enter(); try { Object value = getObject(); if(value == null) return children = empty; if(value == ScriptableObject.NOT_FOUND || value == Undefined.instance) { return children = empty; } if(value instanceof Scriptable) { Scriptable scrip = (Scriptable)value; Scriptable proto = scrip.getPrototype(); Scriptable parent = scrip.getParentScope(); if(value instanceof NativeCall) { if(name != null && name.equals("this")) { // this is the local variables table root // don't show the __parent__ property parent = null; } else if(!(parent instanceof NativeCall)) { // don't bother showing [object Global] as // the __parent__ property which just creates // more noise parent = null; } } if(proto != null) { if(builtin == null) { builtin = new Scriptable[6]; builtin[0] = ScriptableObject.getObjectPrototype(scrip); builtin[1] = ScriptableObject.getFunctionPrototype(scrip); builtin[2] = ScriptableObject.getClassPrototype(scrip, "String"); builtin[3] = ScriptableObject.getClassPrototype(scrip, "Boolean"); builtin[4] = ScriptableObject.getClassPrototype(scrip, "Array"); builtin[5] = ScriptableObject.getClassPrototype(scrip, "Number"); } for(int i = 0; i < builtin.length; i++) { if(proto == builtin[i]) { proto = null; break; } } } if(scrip.has(0, scrip)) { int len = 0; try { Scriptable start = scrip; Scriptable obj = start; Object result = Undefined.instance; do { if(obj.has("length", start)) { result = obj.get("length", start); if (result != Scriptable.NOT_FOUND) break; } obj = obj.getPrototype(); } while (obj != null); if(result instanceof Number) { len = ((Number)result).intValue(); } } catch(Exception exc) { } if(parent != null) { len++; } if(proto != null) { len++; } children = new VariableNode[len]; int i = 0; int j = 0; if(proto != null) { children[i++] = new VariableNode(scrip, "__proto__"); j++; } if(parent != null) { children[i++] = new VariableNode(scrip, "__parent__"); j++; } for(; i < len; i++) { children[i] = new VariableNode(scrip, i-j); } } else { int len = 0; Hashtable t = new Hashtable(); Object[] ids = scrip.getIds(); if(proto != null) t.put("__proto__", "__proto__"); if(parent != null) t.put("__parent__", "__parent__"); if(ids.length > 0) { for(int j = 0; j < ids.length; j++) { t.put(ids[j], ids[j]); } } ids = new Object[t.size()]; Enumeration e = t.keys(); int j = 0; while(e.hasMoreElements()) { ids[j++] = e.nextElement().toString(); } if(ids != null && ids.length > 0) { java.util.Arrays.sort(ids, new java.util.Comparator() { public int compare(Object l, Object r) { return l.toString().compareToIgnoreCase(r.toString()); } }); len = ids.length; } children = new VariableNode[len]; for(int i = 0; i < len; i++) { Object id = ids[i]; children[i] = new VariableNode(scrip, id.toString()); } } } } catch (Exception exc) { exc.printStackTrace(); } finally { cx.exit(); } return children; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b9766e81693411fa600b26b9a0763dcf621b2770/VariableModel.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/VariableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 8526, 10268, 1435, 288, 3639, 309, 12, 5906, 480, 446, 13, 327, 2325, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 775, 288, 5411, 1033, 460, 273, 6455, 5621, 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, 4750, 1033, 8526, 10268, 1435, 288, 3639, 309, 12, 5906, 480, 446, 13, 327, 2325, 31, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 775, 288, 5411, 1033, 460, 273, 6455, 5621, 5411, ...
ArrayList modifications = processSourceControlElements(currentDate, _lastBuild);
public void execute() throws BuildException { try { Date currentDate = new Date(); _lastModified = _lastBuild.getTime(); long currentTime = currentDate.getTime(); while (tooMuchRepositoryActivity(currentTime)) { long sleepTime = calculateSleepTime(currentTime); log("[modificationset] Too much repository activity...sleeping for: " + (sleepTime / 1000.0) + " seconds."); Thread.sleep(sleepTime); currentDate = new Date(); } ArrayList modifications = processSourceControlElements(currentDate, _lastBuild); //If there aren't any modifications, then a build is not necessary, so // we will terminate this build by throwing a BuildException. That will // kill the Ant process and return control to MasterBuild. if (modifications.isEmpty()) { getProject().setProperty(BUILDUNNECESSARY, "true"); throw new BuildException("No Build Necessary"); } getProject().setProperty(SNAPSHOTTIMESTAMP, _simpleDateFormat.format(currentDate)); getProject().setProperty(USERS, emailsAsCommaDelimitedList()); writeFile(modifications); } catch (InterruptedException ie) { throw new BuildException(ie); } catch (IOException ioe) { throw new BuildException(ioe); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/86fe602394674275ad5a21ce41c3dc14be4ad634/ModificationSet.java/buggy/main/src/net/sourceforge/cruisecontrol/ModificationSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 18463, 288, 202, 202, 698, 288, 1082, 202, 1626, 783, 1626, 273, 394, 2167, 5621, 1082, 202, 67, 2722, 4575, 273, 389, 2722, 3116, 18, 588, 950, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 18463, 288, 202, 202, 698, 288, 1082, 202, 1626, 783, 1626, 273, 394, 2167, 5621, 1082, 202, 67, 2722, 4575, 273, 389, 2722, 3116, 18, 588, 950, 5621, 1...
org.eclipse.jdt.core.util.IClassFileReader classFileReader = org.eclipse.jdt.core.ToolFactory.createDefaultClassFileReader(EVAL_DIRECTORY + File.separator + "A.class", org.eclipse.jdt.core.util.IClassFileReader.ALL); org.eclipse.jdt.core.util.IMethodInfo[] methodInfos = classFileReader.getMethodInfos();
IClassFileReader classFileReader = ToolFactory.createDefaultClassFileReader(EVAL_DIRECTORY + File.separator + "A.class", IClassFileReader.ALL); IMethodInfo[] methodInfos = classFileReader.getMethodInfos();
public void test025() { try { String sourceA = "public class A {\n" + " public static void main(String[] args) {\n" + " int i = 6;\n" + " if (i\n" + " > 5) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; compileAndDeploy(sourceA, "A"); org.eclipse.jdt.core.util.IClassFileReader classFileReader = org.eclipse.jdt.core.ToolFactory.createDefaultClassFileReader(EVAL_DIRECTORY + File.separator + "A.class", org.eclipse.jdt.core.util.IClassFileReader.ALL); org.eclipse.jdt.core.util.IMethodInfo[] methodInfos = classFileReader.getMethodInfos(); assertEquals("wrong size", 2, methodInfos.length); org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1]; assertEquals("wrong name", "main", new String(methodInfo.getName())); org.eclipse.jdt.core.util.ICodeAttribute codeAttribute = methodInfo.getCodeAttribute(); assertNotNull("No code attribute", codeAttribute); org.eclipse.jdt.core.util.ILineNumberAttribute lineNumberAttribute = codeAttribute.getLineNumberAttribute(); assertNotNull("No code line number attribute", lineNumberAttribute); int[][] lineNumberTable = lineNumberAttribute.getLineNumberTable(); assertEquals("wrong size", 5, lineNumberTable.length); assertEquals("wrong pc[0]", 0, lineNumberTable[0][0]); assertEquals("wrong line[0]", 3, lineNumberTable[0][1]); assertEquals("wrong pc[1]", 3, lineNumberTable[1][0]); assertEquals("wrong line[1]", 4, lineNumberTable[1][1]); assertEquals("wrong pc[2]", 4, lineNumberTable[2][0]); assertEquals("wrong line[2]", 5, lineNumberTable[2][1]); assertEquals("wrong pc[3]", 8, lineNumberTable[3][0]); assertEquals("wrong line[3]", 6, lineNumberTable[3][1]); assertEquals("wrong pc[4]", 15, lineNumberTable[4][0]); assertEquals("wrong line[4]", 8, lineNumberTable[4][1]); } finally { removeTempClass("A"); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3826deb7274f8b670a1e803be5c591bc377a58f3/ClassFileReaderTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 20, 2947, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 1084, 37, 273, 9506, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 9506, 202, 6, 202, 482, 760, 918, 2774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20, 2947, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 1084, 37, 273, 9506, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 9506, 202, 6, 202, 482, 760, 918, 2774, ...
Object o = jdkFieldAcc.get(null);
/* Consistency check. */ if (jdkFieldAcc == null) fail("internal inconistency: jdkFieldAcc == null"); int modifs = jdkFieldAcc.getModifiers(); /* This crash, realistically, should never occur. */ if (! Modifier.isStatic(modifs)) fail("Consistency failure: About to try to access an instance field (via jdkFieldAcc) as if it were a static one! The culprit is the field " + jdkFieldAcc.toString()); Object o; try { o = jdkFieldAcc.get(null); } catch (NullPointerException npe) { fail("Got a NullPointerException while using reflection to retrieve the value of the field " + jdkFieldAcc.toString() + ": " + npe.toString()); o = null; }
public static void createBootImageObjects(Vector typeNames, String bootImageTypeNamesFile) throws IllegalAccessException, ClassNotFoundException { VM_Callbacks.notifyBootImage(typeNames.elements()); long startTime = 0; long stopTime = 0; // // Create types. // if (verbose >= 1) say("loading"); if (profile) startTime = System.currentTimeMillis(); for (Enumeration e = typeNames.elements(); e.hasMoreElements(); ) { // // get type name // String typeName = (String) e.nextElement(); if (verbose >= 4) say("typeName:", typeName); // // create corresponding rvm type // VM_Type type; try { VM_TypeReference tRef = VM_TypeReference.findOrCreate(typeName); type = tRef.resolve(); } catch (NoClassDefFoundError ncdf) { ncdf.printStackTrace(); fail(bootImageTypeNamesFile + " contains a class named \"" + typeName + "\", but we can't find a class with that name: " + ncdf); return; // NOTREACHED } catch (IllegalArgumentException ila) { /* We should've caught any illegal type names at the data validation * stage, when we read these in. If not, though, * VM_TypeReference.findOrCreate() will do its own sanity check. */ ila.printStackTrace(); fail(bootImageTypeNamesFile + " is supposed to contain type names. It contains \"" + typeName + "\", which does not parse as a legal type name: " + ila); return; // NOTREACHED } type.markAsBootImageClass(); // // convert type name from internal form to external form // ie: Ljava/lang/Object; --> java.lang.Object // [Ljava/lang/Object; --> [Ljava.lang.Object; // // NOTE: duplicate functionality. There is a method that does the same. // typeName = typeName.replace('/','.'); if (typeName.startsWith("L")) typeName = typeName.substring(1, typeName.length() - 1); // // record name/type pair for later lookup by getRvmType() // bootImageTypes.put(typeName, type); } if (profile) { stopTime = System.currentTimeMillis(); System.out.println("PROF: \tloading types "+(stopTime-startTime)+" ms"); } if (verbose >= 1) say(String.valueOf(bootImageTypes.size()), " types"); // // Lay out fields and method tables. // if (profile) startTime = System.currentTimeMillis(); if (verbose >= 1) say("resolving"); for (Enumeration e = bootImageTypes.elements(); e.hasMoreElements(); ) { VM_Type type = (VM_Type) e.nextElement(); if (verbose >= 2) say("resolving " + type); // The resolution is supposed to be cached already. type.resolve(); } if (profile) { stopTime = System.currentTimeMillis(); System.out.println("PROF: \tresolving types "+(stopTime-startTime)+" ms"); } // Set tocRegister early so opt compiler can access it to // perform fixed_jtoc optimization (compile static addresses into code). // In the boot image, the bootrecord comes first followed by a VM_Address array and then the TOC. // To do this, we must fully simulate the alignment logic in the allocation code! VM_BootRecord bootRecord = VM_BootRecord.the_boot_record; VM_Class rvmBRType = getRvmType(bootRecord.getClass()).asClass(); VM_Array intArrayType = VM_Array.getPrimitiveArrayType(10); VM_Address bp = bootImageAddress.add(rvmBRType.getInstanceSize()); int align = VM_ObjectModel.getAlignment(intArrayType); int offset = VM_ObjectModel.getOffsetForAlignment(intArrayType); int mod = bp.add(offset).toInt() & (align-1); int delta = (align - mod) & (align-1); bootRecord.tocRegister = bp.add(delta).add(intArrayType.getInstanceSize(0)); // // Compile methods and populate jtoc with literals, TIBs, and machine code. // if (profile) startTime = System.currentTimeMillis(); if (verbose >= 1) say("instantiating"); if (PARALLELIZE < 1) { int count = 0; for (Enumeration e = bootImageTypes.elements(); e.hasMoreElements(); ) { VM_Type type = (VM_Type) e.nextElement(); count++; if (verbose >= 1) say(count + " instantiating " + type); long start2 = System.currentTimeMillis(); type.instantiate(); long stop2 = System.currentTimeMillis(); if (profile && stop2 - start2 > classCompileThreshold) System.out.println("PROF:\t\t"+type+" took "+((stop2 - start2+500)/1000)+" seconds to instantiate"); } } else { if (verbose >= 1) say("parallelizing with " + PARALLELIZE + " threads"); BootImageWorker.startup(bootImageTypes.elements()); BootImageWorker [] workers = new BootImageWorker[PARALLELIZE]; for (int i=0; i<workers.length; i++) { workers[i].id = i; workers[i].start(); } try { for (int i=0; i<workers.length; i++) workers[i].join(); } catch (InterruptedException ie) { say("InterruptedException while instantiating"); } } if (profile) { stopTime = System.currentTimeMillis(); System.out.println("PROF: \tinstantiating types "+(stopTime-startTime)+" ms"); } // Do the portion of JNIEnvironment initialization that can be done // at bootimage writing time. VM_CodeArray[] functionTable = BuildJNIFunctionTable.buildTable(); VM_JNIEnvironment.initFunctionTable(functionTable); // // Collect the VM class Field to JDK class Field correspondence // This will be needed when building the images of each object instance // and for processing the static fields of the boot image classes // if (verbose >= 1) say("field info gathering"); if (profile) startTime = System.currentTimeMillis(); bootImageTypeFields = new HashMap(bootImageTypes.size()); // First retrieve the jdk Field table for each class of interest for (Enumeration e = bootImageTypes.elements(); e.hasMoreElements(); ) { VM_Type rvmType = (VM_Type) e.nextElement(); FieldInfo fieldInfo; if (!rvmType.isClassType()) continue; // arrays and primitives have no static or instance fields Class jdkType = getJdkType(rvmType); if (jdkType == null) continue; // won't need the field info Key key = new Key(jdkType); fieldInfo = (FieldInfo)bootImageTypeFields.get(key); if (fieldInfo != null) { fieldInfo.rvmType = rvmType; } else { if (verbose >= 1) say("making fieldinfo for " + rvmType); fieldInfo = new FieldInfo(); fieldInfo.jdkFields = jdkType.getDeclaredFields(); fieldInfo.jdkType = jdkType; fieldInfo.rvmType = rvmType; bootImageTypeFields.put(key, fieldInfo); // Now do all the superclasses if they don't already exist // Can't add them in next loop as Iterator's don't allow updates to collection for (Class cls = jdkType.getSuperclass(); cls != null; cls = cls.getSuperclass()) { key = new Key(cls); fieldInfo = (FieldInfo)bootImageTypeFields.get(key); if (fieldInfo != null) { break; } else { if (verbose >= 1) say("making fieldinfo for " + jdkType); fieldInfo = new FieldInfo(); fieldInfo.jdkFields = cls.getDeclaredFields(); fieldInfo.jdkType = cls; fieldInfo.rvmType = null; bootImageTypeFields.put(key, fieldInfo); } } } } // Now build the one-to-one instance and static field maps for (Iterator iter = bootImageTypeFields.values().iterator(); iter.hasNext();) { FieldInfo fieldInfo = (FieldInfo)iter.next(); VM_Type rvmType = fieldInfo.rvmType; if (rvmType == null) { if (verbose >= 1) say("bootImageTypeField entry has no rvmType:"+fieldInfo.jdkType); continue; } Class jdkType = fieldInfo.jdkType; if (verbose >= 1) say("building static and instance fieldinfo for " + rvmType); // First the static fields // VM_Field rvmFields[] = rvmType.getStaticFields(); fieldInfo.jdkStaticFields = new Field[rvmFields.length]; for (int j = 0; j < rvmFields.length; j++) { String rvmName = rvmFields[j].getName().toString(); for (int k = 0; k < fieldInfo.jdkFields.length; k++) { Field f = fieldInfo.jdkFields[k]; if (f.getName().equals(rvmName)) { fieldInfo.jdkStaticFields[j] = f; f.setAccessible(true); break; } } } // Now the instance fields // rvmFields = rvmType.getInstanceFields(); fieldInfo.jdkInstanceFields = new Field[rvmFields.length]; for (int j = 0; j<rvmFields.length; j++) { String rvmName = rvmFields[j].getName().toString(); // We look only in the JDK type that corresponds to the // VM_Type of the field's declaring class. // This is the only way to correctly handle private fields. jdkType = getJdkType(rvmFields[j].getDeclaringClass()); if (jdkType == null) continue; FieldInfo jdkFieldInfo = (FieldInfo)bootImageTypeFields.get(new Key(jdkType)); if (jdkFieldInfo == null) continue; Field[] jdkFields = jdkFieldInfo.jdkFields; for (int k = 0; k <jdkFields.length; k++) { Field f = jdkFields[k]; if (f.getName().equals(rvmName)) { fieldInfo.jdkInstanceFields[j] = f; f.setAccessible(true); break; } } } } if (profile) { stopTime = System.currentTimeMillis(); System.out.println("PROF: \tcreating type mapping "+(stopTime-startTime)+" ms"); } // // Create stack, thread, and processor context in which rvm will begin // execution. // int initProc = VM_Scheduler.PRIMORDIAL_PROCESSOR_ID; VM_Thread startupThread = new VM_Thread(new byte[STACK_SIZE_BOOT]); VM_Scheduler.processors[initProc].activeThread = startupThread; // sanity check for bootstrap loader int idx = startupThread.stack.length - 1; if (VM.LittleEndian) { startupThread.stack[idx--] = (byte)0xde; startupThread.stack[idx--] = (byte)0xad; startupThread.stack[idx--] = (byte)0xba; startupThread.stack[idx--] = (byte)0xbe; } else { startupThread.stack[idx--] = (byte)0xbe; startupThread.stack[idx--] = (byte)0xba; startupThread.stack[idx--] = (byte)0xad; startupThread.stack[idx--] = (byte)0xde; } // // Tell rvm where to find itself at execution time. // This may not be the same place it was at build time, ie. if image is // moved to another machine with different directory structure. // VM_ClassLoader.setVmRepositories(bootImageRepositoriesAtExecutionTime); // // Finally, populate jtoc with static field values. // This is equivalent to the VM_Class.initialize() phase that would have // executed each class's static constructors at run time. We simulate // this by copying statics created in the host rvm into the appropriate // slots of the jtoc. // if (verbose >= 1) say("populating jtoc with static fields"); if (profile) startTime = System.currentTimeMillis(); for (Enumeration e = bootImageTypes.elements(); e.hasMoreElements(); ) { VM_Type rvmType = (VM_Type) e.nextElement(); if (verbose >= 1) say(" jtoc for ", rvmType.toString()); if (!rvmType.isClassType()) continue; // arrays and primitives have no static fields Class jdkType = getJdkType(rvmType); if (jdkType == null && verbose >= 1) { say("host has no class \"" + rvmType + "\""); } VM_Field rvmFields[] = rvmType.getStaticFields(); for (int j = 0; j < rvmFields.length; ++j) { VM_Field rvmField = rvmFields[j]; VM_TypeReference rvmFieldType = rvmField.getType(); int rvmFieldSlot = (rvmField.getOffset() >>> 2); String rvmFieldName = rvmField.getName().toString(); Field jdkFieldAcc = null; if (jdkType != null) jdkFieldAcc = getJdkFieldAccessor(jdkType, j, STATIC_FIELD); if (jdkFieldAcc == null) { if (jdkType != null) { if (verbose >= 2) traceContext.push(rvmFieldType.toString(), jdkType.getName(), rvmFieldName); if (verbose >= 2) traceContext.traceFieldNotInHostJdk(); if (verbose >= 2) traceContext.pop(); } VM_Statics.setSlotContents(rvmFieldSlot, 0); if (!VM.runningTool) bootImage.countNulledReference(); continue; } if (verbose >= 2) say(" populating jtoc slot ", String.valueOf(rvmFieldSlot), " with ", rvmField.toString()); if (rvmFieldType.isPrimitiveType()) { // field is logical or numeric type if (rvmFieldType.isBooleanType()) { VM_Statics.setSlotContents(rvmFieldSlot, jdkFieldAcc.getBoolean(null) ? 1 : 0); } else if (rvmFieldType.isByteType()) { VM_Statics.setSlotContents(rvmFieldSlot, jdkFieldAcc.getByte(null)); } else if (rvmFieldType.isCharType()) { VM_Statics.setSlotContents(rvmFieldSlot, jdkFieldAcc.getChar(null)); } else if (rvmFieldType.isShortType()) { VM_Statics.setSlotContents(rvmFieldSlot, jdkFieldAcc.getShort(null)); } else if (rvmFieldType.isIntType()) { try { VM_Statics.setSlotContents(rvmFieldSlot, jdkFieldAcc.getInt(null)); } catch (IllegalArgumentException ex) { System.err.println( "type " + rvmType + ", field " + rvmField); throw ex; } } else if (rvmFieldType.isLongType()) { // note: Endian issues handled in setSlotContents. VM_Statics.setSlotContents(rvmFieldSlot, jdkFieldAcc.getLong(null)); } else if (rvmFieldType.isFloatType()) { float f = jdkFieldAcc.getFloat(null); VM_Statics.setSlotContents(rvmFieldSlot, Float.floatToIntBits(f)); } else if (rvmFieldType.isDoubleType()) { double d = jdkFieldAcc.getDouble(null); // note: Endian issues handled in setSlotContents. VM_Statics.setSlotContents(rvmFieldSlot, Double.doubleToLongBits(d)); } else if (rvmFieldType.equals(VM_TypeReference.Address) || rvmFieldType.equals(VM_TypeReference.Word) || rvmFieldType.equals(VM_TypeReference.Extent) || rvmFieldType.equals(VM_TypeReference.Offset)){ Object o = jdkFieldAcc.get(null); String msg = " static field " + rvmField.toString(); boolean warn = rvmFieldType.equals(VM_TypeReference.Address); //-#if RVM_FOR_32_ADDR VM_Statics.setSlotContents(rvmFieldSlot, getWordValue(o, msg, warn).toInt()); //-#endif //-#if RVM_FOR_64_ADDR VM_Statics.setSlotContents(rvmFieldSlot, getWordValue(o, msg, warn).toLong()); //-#endif } else { fail("unexpected primitive field type: " + rvmFieldType); } } else { // field is reference type Object o = jdkFieldAcc.get(null); if (verbose >= 3) say(" setting with ", String.valueOf(VM_Magic.objectAsAddress(o).toInt())); VM_Statics.setSlotContents(rvmFieldSlot, o); } } } if (profile) { stopTime = System.currentTimeMillis(); System.out.println("PROF: \tinitializing jtoc "+(stopTime-startTime)+" ms"); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/d38029f9cf8cd400a716cc185d68b6d9ecec475d/BootImageWriter.java/buggy/rvm/src/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 752, 15817, 2040, 4710, 12, 5018, 618, 1557, 16, 4766, 5411, 514, 4835, 2040, 559, 1557, 812, 13, 377, 1216, 11900, 16, 10403, 288, 1850, 8251, 67, 10617, 18, 12336, 15817...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 15817, 2040, 4710, 12, 5018, 618, 1557, 16, 4766, 5411, 514, 4835, 2040, 559, 1557, 812, 13, 377, 1216, 11900, 16, 10403, 288, 1850, 8251, 67, 10617, 18, 12336, 15817...
zj = (bsBuff >> (bsLive-1)) & 1;
zj = (bsBuff >> (bsLive - 1)) & 1;
private void getAndMoveToFrontDecode() { char[] yy = new char[256]; int i, j, nextSym, limitLast; int EOB, groupNo, groupPos; limitLast = baseBlockSize * blockSize100k; origPtr = bsGetIntVS(24); recvDecodingTables(); EOB = nInUse+1; groupNo = -1; groupPos = 0; /* Setting up the unzftab entries here is not strictly necessary, but it does save having to do it later in a separate pass, and so saves a block's worth of cache misses. */ for (i = 0; i <= 255; i++) { unzftab[i] = 0; } for (i = 0; i <= 255; i++) { yy[i] = (char) i; } last = -1; { int zt, zn, zvec, zj; if (groupPos == 0) { groupNo++; groupPos = G_SIZE; } groupPos--; zt = selector[groupNo]; zn = minLens[zt]; zvec = bsR(zn); while (zvec > limit[zt][zn]) { zn++; { { while (bsLive < 1) { int zzi; char thech = 0; try { thech = (char)bsStream.read(); } catch(IOException e) { compressedStreamEOF(); } if(thech == -1) { compressedStreamEOF(); } zzi = thech; bsBuff = (bsBuff << 8) | (zzi & 0xff); bsLive += 8; } } zj = (bsBuff >> (bsLive-1)) & 1; bsLive--; } zvec = (zvec << 1) | zj; } nextSym = perm[zt][zvec - base[zt][zn]]; } while(true) { if (nextSym == EOB) { break; } if (nextSym == RUNA || nextSym == RUNB) { char ch; int s = -1; int N = 1; do { if (nextSym == RUNA) { s = s + (0+1) * N; } else if (nextSym == RUNB) { s = s + (1+1) * N; } N = N * 2; { int zt, zn, zvec, zj; if (groupPos == 0) { groupNo++; groupPos = G_SIZE; } groupPos--; zt = selector[groupNo]; zn = minLens[zt]; zvec = bsR(zn); while (zvec > limit[zt][zn]) { zn++; { { while (bsLive < 1) { int zzi; char thech = 0; try { thech = (char)bsStream.read(); } catch(IOException e) { compressedStreamEOF(); } if(thech == -1) { compressedStreamEOF(); } zzi = thech; bsBuff = (bsBuff << 8) | (zzi & 0xff); bsLive += 8; } } zj = (bsBuff >> (bsLive-1)) & 1; bsLive--; } zvec = (zvec << 1) | zj; }; nextSym = perm[zt][zvec - base[zt][zn]]; } } while (nextSym == RUNA || nextSym == RUNB); s++; ch = seqToUnseq[yy[0]]; unzftab[ch] += s; while (s > 0) { last++; ll8[last] = ch; s--; }; if (last >= limitLast) { blockOverrun(); } continue; } else { char tmp; last++; if (last >= limitLast) { blockOverrun(); } tmp = yy[nextSym-1]; unzftab[seqToUnseq[tmp]]++; ll8[last] = seqToUnseq[tmp]; /* This loop is hammered during decompression, hence the unrolling. for (j = nextSym-1; j > 0; j--) yy[j] = yy[j-1]; */ j = nextSym-1; for (; j > 3; j -= 4) { yy[j] = yy[j-1]; yy[j-1] = yy[j-2]; yy[j-2] = yy[j-3]; yy[j-3] = yy[j-4]; } for (; j > 0; j--) { yy[j] = yy[j-1]; } yy[0] = tmp; { int zt, zn, zvec, zj; if (groupPos == 0) { groupNo++; groupPos = G_SIZE; } groupPos--; zt = selector[groupNo]; zn = minLens[zt]; zvec = bsR(zn); while (zvec > limit[zt][zn]) { zn++; { { while (bsLive < 1) { int zzi; char thech = 0; try { thech = (char)bsStream.read(); } catch(IOException e) { compressedStreamEOF(); } zzi = thech; bsBuff = (bsBuff << 8) | (zzi & 0xff); bsLive += 8; } } zj = (bsBuff >> (bsLive-1)) & 1; bsLive--; } zvec = (zvec << 1) | zj; }; nextSym = perm[zt][zvec - base[zt][zn]]; } continue; } } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/CBZip2InputStream.java/clean/src/main/org/apache/tools/bzip2/CBZip2InputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 22909, 7607, 774, 9580, 6615, 1435, 288, 3639, 1149, 8526, 9016, 273, 394, 1149, 63, 5034, 15533, 3639, 509, 277, 16, 525, 16, 1024, 11901, 16, 1800, 3024, 31, 3639, 509, 512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22909, 7607, 774, 9580, 6615, 1435, 288, 3639, 1149, 8526, 9016, 273, 394, 1149, 63, 5034, 15533, 3639, 509, 277, 16, 525, 16, 1024, 11901, 16, 1800, 3024, 31, 3639, 509, 512, ...
return components[n];
return component[n];
public Component getComponent (int n) { if (n < 0 || n >= componentCount) throw new ArrayIndexOutOfBoundsException("no such component"); return components[n]; }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/42de8277e53eabea04a48598c12ed6d488412a7b/Container.java/clean/libjava/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 10322, 261, 474, 290, 13, 225, 288, 565, 309, 261, 82, 411, 374, 747, 290, 1545, 1794, 1380, 13, 1377, 604, 394, 1510, 30548, 2932, 2135, 4123, 1794, 8863, 565, 327, 1794, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5435, 10322, 261, 474, 290, 13, 225, 288, 565, 309, 261, 82, 411, 374, 747, 290, 1545, 1794, 1380, 13, 1377, 604, 394, 1510, 30548, 2932, 2135, 4123, 1794, 8863, 565, 327, 1794, 6...
assertCompileErrorDuringJUnitCount(0);
public void compileEnded() { assertCompileEndCount(0); assertCompileStartCount(1); assertInteractionsResettingCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); assertCompileErrorDuringJUnitCount(0); compileEndCount++; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/1acb7e79f21833d9f8611e81be6afdbc403d9516/GlobalModelTestCase.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModelTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4074, 28362, 1435, 288, 1377, 1815, 9937, 1638, 1380, 12, 20, 1769, 1377, 1815, 9937, 1685, 1380, 12, 21, 1769, 1377, 1815, 2465, 4905, 7013, 1787, 1380, 12, 20, 1769, 1377, 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, 4074, 28362, 1435, 288, 1377, 1815, 9937, 1638, 1380, 12, 20, 1769, 1377, 1815, 9937, 1685, 1380, 12, 21, 1769, 1377, 1815, 2465, 4905, 7013, 1787, 1380, 12, 20, 1769, 1377, 18...
public String getToken(Reader in) throws IOException {
public String getToken(Reader in) throws IOException {
public String getToken(Reader in) throws IOException { int ch = -1; if (pushed != -2) { ch = pushed; pushed = -2; } else ch = in.read(); if (ch == -1) { return null; } lineEnd = ""; StringBuffer line = new StringBuffer(); int state = 0; while (ch != -1) { if (state == 0) { if (ch == '\r') { state = 1; } else if (ch == '\n') { lineEnd = "\n"; break; } else { line.append((char) ch); } } else { state = 0; if (ch == '\n') { lineEnd = "\r\n"; } else { pushed = ch; lineEnd = "\r"; } break; } ch = in.read(); } if (ch == -1 && state == 1) { lineEnd = "\r"; } if (includeDelims) { line.append(lineEnd); } return line.toString(); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/01a0be022dda5f39aabf77afc4fb7c1d4c468218/TokenFilter.java/clean/src/main/org/apache/tools/ant/filters/TokenFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 9162, 12, 2514, 316, 13, 5411, 1216, 1860, 3639, 288, 5411, 509, 462, 273, 300, 21, 31, 5411, 309, 261, 6206, 329, 480, 300, 22, 13, 288, 7734, 462, 273, 18543, 31, 7734, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 9162, 12, 2514, 316, 13, 5411, 1216, 1860, 3639, 288, 5411, 509, 462, 273, 300, 21, 31, 5411, 309, 261, 6206, 329, 480, 300, 22, 13, 288, 7734, 462, 273, 18543, 31, 7734, 1...
/* * Bug in GTK. For some reason, when the label is * wrappable and its container is resized, it does not * cause the label to be wrapped. The fix is to * determine the size that will wrap the label * and expilictly set that size to force the label * to wrap. * * This part of the fix forces the label to be * resized so that it will draw wrapped. */ if (labelHandle != 0) { int labelWidth = OS.GTK_WIDGET_WIDTH (labelHandle); int labelHeight = OS.GTK_WIDGET_HEIGHT (labelHandle); OS.gtk_widget_set_size_request (labelHandle, labelWidth, labelHeight); }
void resizeHandle (int width, int height) { /* * Bug in GTK. For some reason, when the label is * wrappable and its container is resized, it does not * cause the label to be wrapped. The fix is to * determine the size that will wrap the label * and expilictly set that size to force the label * to wrap. * * This part of the fix causes the label to be * resized to the preferred size but it still * won't draw properly. */ if (labelHandle != 0) OS.gtk_widget_set_size_request (labelHandle, -1, -1); if (frameHandle != 0) OS.gtk_widget_set_size_request (frameHandle, width, height); super.resizeHandle (width, height); /* * Bug in GTK. For some reason, when the label is * wrappable and its container is resized, it does not * cause the label to be wrapped. The fix is to * determine the size that will wrap the label * and expilictly set that size to force the label * to wrap. * * This part of the fix forces the label to be * resized so that it will draw wrapped. */ if (labelHandle != 0) { int labelWidth = OS.GTK_WIDGET_WIDTH (labelHandle); int labelHeight = OS.GTK_WIDGET_HEIGHT (labelHandle); OS.gtk_widget_set_size_request (labelHandle, labelWidth, labelHeight); }}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/a7e4b861fe4903bb00afe7707e13ec662f4495f5/Label.java/clean/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 7041, 3259, 261, 474, 1835, 16, 509, 2072, 13, 288, 202, 20308, 202, 14, 16907, 316, 19688, 47, 18, 225, 2457, 2690, 3971, 16, 1347, 326, 1433, 353, 202, 14, 2193, 19586, 471, 2097, 147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 7041, 3259, 261, 474, 1835, 16, 509, 2072, 13, 288, 202, 20308, 202, 14, 16907, 316, 19688, 47, 18, 225, 2457, 2690, 3971, 16, 1347, 326, 1433, 353, 202, 14, 2193, 19586, 471, 2097, 147...
super(workbenchWindow.getShell(), associatedControl);
super(workbenchWindow.getShell(), associatedControl, AssociatedWindow.TRACK_OUTER_BOTTOM_RHS);
ProgressFloatingWindow(WorkbenchWindow workbenchWindow, Control associatedControl) { super(workbenchWindow.getShell(), associatedControl); this.window = workbenchWindow; //Workaround for Bug 50917 if("carbon".equals(SWT.getPlatform())) //$NON-NLS-1$ setShellStyle(SWT.NO_TRIM | SWT.ON_TOP ); else setShellStyle(SWT.NO_TRIM); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f4ddecebf080b9a12fc07328e132394359390e74/ProgressFloatingWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressFloatingWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5491, 28344, 3829, 12, 2421, 22144, 3829, 1440, 22144, 3829, 16, 1082, 202, 3367, 3627, 3367, 13, 288, 202, 202, 9565, 12, 1252, 22144, 3829, 18, 588, 13220, 9334, 3627, 3367, 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, 5491, 28344, 3829, 12, 2421, 22144, 3829, 1440, 22144, 3829, 16, 1082, 202, 3367, 3627, 3367, 13, 288, 202, 202, 9565, 12, 1252, 22144, 3829, 18, 588, 13220, 9334, 3627, 3367, 1769, ...
throw Util.newInternal("Unexpected value type: " + value);
throw new XmlaException( CLIENT_FAULT_FC, HSB_BAD_RESTRICTION_VALUE_CODE, HSB_BAD_RESTRICTION_VALUE_FAULT_FS, Util.newInternal("Unexpected value type: " + value));
protected void emit(Row row, XmlaResponse response) { for (int i = 0; i < restrictedColumns.length; i++) { RowsetDefinition.Column column = restrictedColumns[i]; Object value = row.get(column.name); if (value == null) { return; } final Object requiredValue = restrictions.get(column.name); String[] requiredValues, values; if (requiredValue instanceof String) { requiredValues = new String[] {(String) requiredValue}; } else if (requiredValue instanceof String[]) { requiredValues = (String[]) requiredValue; } else { throw Util.newInternal("Restriction value is of wrong type: " + requiredValue); } if (value instanceof String) { values = new String[] {(String) value}; } else if (value instanceof String[]) { values = (String[]) value; } else { throw Util.newInternal("Unexpected value type: " + value); } if (!haveCommonMember(requiredValues, values)) { return; } } SaxWriter writer = response.getWriter(); writer.startElement("row"); for (int i = 0; i < rowsetDefinition.columnDefinitions.length; i++) { RowsetDefinition.Column column = rowsetDefinition.columnDefinitions[i]; Object value = row.get(column.name); if (value == null) { if (!column.nullable) { throw Util.newInternal("Value required for column " + column.name + " of rowset " + rowsetDefinition.name); } } else if (value instanceof XmlElement[]) { XmlElement[] elements = (XmlElement[]) value; for (int j = 0; j < elements.length; j++) { emitXmlElement(writer, elements[j]); } } else if (value instanceof Object[]) { Object[] values = (Object[]) value; for (int j = 0; j < values.length; j++) { writer.startElement(column.name); writer.characters(values[j].toString()); writer.endElement(); } } else { writer.startElement(column.name); writer.characters(value.toString()); writer.endElement(); } } writer.endElement(); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/41e43f806f666da1ff483ebb20820e61433739e2/Rowset.java/buggy/src/main/mondrian/xmla/Rowset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3626, 12, 1999, 1027, 16, 5714, 69, 1064, 766, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 15693, 3380, 18, 2469, 31, 277, 27245, 288, 5411, 6556, 542, 1852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3626, 12, 1999, 1027, 16, 5714, 69, 1064, 766, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 15693, 3380, 18, 2469, 31, 277, 27245, 288, 5411, 6556, 542, 1852, ...
PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response,"", true, 8192, true);
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { log.debug("Entering"); WebsiteData weblog = null; WeblogPreviewRequest previewRequest = null; try { previewRequest = new WeblogPreviewRequest(request); // lookup weblog specified by preview request weblog = previewRequest.getWeblog(); if(weblog == null) { throw new RollerException("unable to lookup weblog: "+ previewRequest.getWeblogHandle()); } } catch (Exception e) { // some kind of error parsing the request or getting weblog log.error("error creating preview request", e); response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } // try getting the preview theme log.debug("preview theme = "+previewRequest.getThemeName()); Theme previewTheme = previewRequest.getTheme(); // construct a temporary Website object for this request // and set the EditorTheme to our previewTheme WebsiteData tmpWebsite = new WebsiteData(); tmpWebsite.setData(weblog); if(previewTheme != null && previewTheme.isEnabled()) { tmpWebsite.setEditorTheme(previewTheme.getName()); } else if(Theme.CUSTOM.equals(previewRequest.getThemeName())) { tmpWebsite.setEditorTheme(Theme.CUSTOM); } Template page = null; try { // we just want to show the default view page = tmpWebsite.getDefaultPage(); if(page == null) { throw new RollerException("Weblog's default page was null"); } } catch(RollerException re) { // couldn't get page response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); log.error("Error getting default page for preview", re); return; } log.debug("preview page found, dealing with it"); // set the content type response.setContentType("text/html; charset=utf-8"); // looks like we need to render content Map model = new HashMap(); try { RollerContext rollerContext = RollerContext.getRollerContext(); // populate the rendering model Map initData = new HashMap(); initData.put("request", request); initData.put("pageRequest", previewRequest); // page context for helpers which use jsp tags :/ PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response,"", true, 8192, true); initData.put("pageContext", pageContext); // standard weblog models ModelLoader.loadPageModels(model, initData); // special handling for site wide weblog if (rollerContext.isSiteWideWeblog(tmpWebsite.getHandle())) { ModelLoader.loadSiteModels(model, initData); } // add helpers ModelLoader.loadUtilityHelpers(model, initData); ModelLoader.loadWeblogHelpers(model, initData); // weblog's custom models ModelLoader.loadCustomModels(tmpWebsite, model, initData); // ick, gotta load pre-3.0 model stuff as well :( ModelLoader.loadOldModels(model, request, response, pageContext, previewRequest); } catch (RollerException ex) { log.error("ERROR loading model for page", ex); if(!response.isCommitted()) response.reset(); response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); return; } // lookup Renderer we are going to use Renderer renderer = null; try { log.debug("Looking up renderer"); renderer = RendererManager.getRenderer("velocityWeblogPage", page.getId()); } catch(Exception e) { // nobody wants to render my content :( log.error("Couldn't find renderer for page "+page.getId(), e); if(!response.isCommitted()) response.reset(); response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } // render content. use default size of about 24K for a standard page CachedContent rendererOutput = new CachedContent(24567); try { log.debug("Doing rendering"); renderer.render(model, rendererOutput.getCachedWriter()); // flush rendered output and close rendererOutput.flush(); rendererOutput.close(); } catch(Exception e) { // bummer, error during rendering log.error("Error during rendering for page "+page.getId(), e); if(!response.isCommitted()) response.reset(); response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } // post rendering process // flush rendered content to response log.debug("Flushing response output"); response.setContentLength(rendererOutput.getContent().length); response.getOutputStream().write(rendererOutput.getContent()); log.debug("Exiting"); }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/90a3f9042d2ee51fbfd56ba44502b460f6665a62/PreviewServlet.java/clean/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 565, 1216, 16517, 16, 1860, 288, 7734, 613, 18, 4148, 2932, 10237, 310, 8863, 7734, 1660, 12343, 751, 3311, 1330, 273, 446, 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, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 565, 1216, 16517, 16, 1860, 288, 7734, 613, 18, 4148, 2932, 10237, 310, 8863, 7734, 1660, 12343, 751, 3311, 1330, 273, 446, 31,...
throw new PSQLException("postgresql.con.kerb4");
throw new PSQLException("postgresql.con.kerb4", PSQLState.CONNECTION_REJECTED);
private void openConnectionV3(String p_host, int p_port, Properties p_info, String p_database, String p_url, Driver p_d, String p_password) throws SQLException { PGProtocolVersionMajor = 3; if (Driver.logDebug) Driver.debug("Using Protocol Version3"); // Now we need to construct and send an ssl startup packet try { if (useSSL) { if (Driver.logDebug) Driver.debug("Asking server if it supports ssl"); pgStream.SendInteger(8,4); pgStream.SendInteger(80877103,4); // now flush the ssl packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int beresp = pgStream.ReceiveChar(); if (Driver.logDebug) Driver.debug("Server response was (S=Yes,N=No): "+(char)beresp); switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'N': // Server does not support ssl throw new PSQLException("postgresql.con.sslnotsupported"); case 'S': // Server supports ssl if (Driver.logDebug) Driver.debug("server does support ssl"); Driver.makeSSL(pgStream); break; default: throw new PSQLException("postgresql.con.sslfail"); } } } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // Now we need to construct and send a startup packet try { new StartupPacket(PGProtocolVersionMajor, PGProtocolVersionMinor, PG_USER, p_database).writeTo(pgStream); // now flush the startup packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pgStream.ReceiveChar(); String salt = null; byte [] md5Salt = new byte[4]; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // int l_elen = pgStream.ReceiveIntegerR(4); if (l_elen > 30000) { //if the error length is > than 30000 we assume this is really a v2 protocol //server so try again with a v2 connection //need to create a new connection and try again try { pgStream = new PGStream(p_host, p_port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed", e); } openConnectionV2(p_host, p_port, p_info, p_database, p_url, p_d, p_password); return; } throw new PSQLException("postgresql.con.misc",encoding.decode(pgStream.Receive(l_elen-4))); case 'R': // Get the message length int l_msgLen = pgStream.ReceiveIntegerR(4); // Get the type of request areq = pgStream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pgStream.ReceiveChar(); rst[1] = (byte)pgStream.ReceiveChar(); salt = new String(rst, 0, 2); if (Driver.logDebug) Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { md5Salt[0] = (byte)pgStream.ReceiveChar(); md5Salt[1] = (byte)pgStream.ReceiveChar(); md5Salt[2] = (byte)pgStream.ReceiveChar(); md5Salt[3] = (byte)pgStream.ReceiveChar(); salt = new String(md5Salt, 0, 4); if (Driver.logDebug) Driver.debug("MD5 salt=" + salt); } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (Driver.logDebug) Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: if (Driver.logDebug) Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_SCM: if (Driver.logDebug) Driver.debug("postgresql: SCM"); throw new PSQLException("postgresql.con.scm"); case AUTH_REQ_PASSWORD: if (Driver.logDebug) Driver.debug("postgresql: PASSWORD"); pgStream.SendChar('p'); pgStream.SendInteger(5 + p_password.length(), 4); pgStream.Send(p_password.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_CRYPT: if (Driver.logDebug) Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, p_password); pgStream.SendChar('p'); pgStream.SendInteger(5 + crypted.length(), 4); pgStream.Send(crypted.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_MD5: if (Driver.logDebug) Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, p_password, md5Salt); pgStream.SendChar('p'); pgStream.SendInteger(5 + digest.length, 4); pgStream.Send(digest); pgStream.SendChar(0); pgStream.flush(); break; default: throw new PSQLException("postgresql.con.auth", new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } int beresp; do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'Z': //ready for query break; case 'K': int l_msgLen = pgStream.ReceiveIntegerR(4); if (l_msgLen != 12) throw new PSQLException("postgresql.con.setup"); pid = pgStream.ReceiveIntegerR(4); ckey = pgStream.ReceiveIntegerR(4); break; case 'E': int l_elen = pgStream.ReceiveIntegerR(4); throw new PSQLException("postgresql.con.backend",encoding.decode(pgStream.Receive(l_elen-4))); case 'N': int l_nlen = pgStream.ReceiveIntegerR(4); addWarning(encoding.decode(pgStream.Receive(l_nlen-4))); break; case 'S': //TODO: handle parameter status messages int l_len = pgStream.ReceiveIntegerR(4); String l_pStatus = encoding.decode(pgStream.Receive(l_len-4)); if (Driver.logDebug) Driver.debug("ParameterStatus="+ l_pStatus); break; default: if (Driver.logDebug) Driver.debug("invalid state="+ (char)beresp); throw new PSQLException("postgresql.con.setup"); } } while (beresp != 'Z'); // read ReadyForQuery if (pgStream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup"); //TODO: handle transaction status char l_tStatus = (char)pgStream.ReceiveChar(); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. BaseResultSet resultSet = execSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, p_info.getProperty("charSet")); //In 7.3 we are forced to do a second roundtrip to handle the case //where a database may not be running in autocommit mode //jdbc by default assumes autocommit is on until setAutoCommit(false) //is called. Therefore we need to ensure a new connection is //initialized to autocommit on. //We also set the client encoding so that the driver only needs //to deal with utf8. We can only do this in 7.3 because multibyte //support is now always included if (haveMinimumServerVersion("7.3")) { BaseResultSet acRset = //TODO: if protocol V3 we can set the client encoding in startup execSQL("set client_encoding = 'UNICODE'"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 24982, 58, 23, 12, 780, 293, 67, 2564, 16, 509, 293, 67, 655, 16, 6183, 293, 67, 1376, 16, 514, 293, 67, 6231, 16, 514, 293, 67, 718, 16, 9396, 293, 67, 72, 16, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24982, 58, 23, 12, 780, 293, 67, 2564, 16, 509, 293, 67, 655, 16, 6183, 293, 67, 1376, 16, 514, 293, 67, 6231, 16, 514, 293, 67, 718, 16, 9396, 293, 67, 72, 16, 51...
new TestDescriptor(TEST12, "constructor calls super", 1, rule),
new TestDescriptor(TEST12, "constructor calls super", 0, rule), new TestDescriptor(TEST13, "constructor calls super, no args", 1, rule),
public void testAll() { runTests(new TestDescriptor[] { new TestDescriptor(TEST1, "simple failure case", 1, rule), new TestDescriptor(TEST2, "private constructor", 0, rule), new TestDescriptor(TEST3, "constructor with arguments", 0, rule), new TestDescriptor(TEST4, "constructor with contents", 0, rule), new TestDescriptor(TEST5, "constructor throws exception", 0, rule), new TestDescriptor(TEST6, "two constructors", 0, rule), new TestDescriptor(TEST7, "inner class with unnecessary constructor", 1, rule), new TestDescriptor(TEST8, "inner and outer both have unnecessary constructors", 2, rule), new TestDescriptor(TEST9, "inner and outer, both ok", 0, rule), new TestDescriptor(TEST10, "inner ok, outer bad", 1, rule), new TestDescriptor(TEST11, "inner ok due to nonpublic constructor", 0, rule), new TestDescriptor(TEST12, "constructor calls super", 1, rule), }); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/15f5640f6bbf050ce50178932add6ef2fa3f1703/UnnecessaryConstructorRuleTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/UnnecessaryConstructorRuleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 4202, 1086, 14650, 12, 2704, 7766, 3187, 8526, 288, 6647, 394, 7766, 3187, 12, 16961, 21, 16, 315, 9647, 5166, 648, 3113, 404, 16, 1720, 3631, 6647, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 4202, 1086, 14650, 12, 2704, 7766, 3187, 8526, 288, 6647, 394, 7766, 3187, 12, 16961, 21, 16, 315, 9647, 5166, 648, 3113, 404, 16, 1720, 3631, 6647, 394,...
found = resolver.lookupMethod(targetClass, thisMethod, mname, types, dims, cnames, false);
found = resolver.lookupMethod(targetClass, thisClass, thisMethod, mname, types, dims, cnames);
public void atMethodCallCore(CtClass targetClass, String mname, ASTList args, boolean isStatic, boolean isSpecial, int aload0pos, MemberResolver.Method found) throws CompileError { int nargs = getMethodArgsLength(args); int[] types = new int[nargs]; int[] dims = new int[nargs]; String[] cnames = new String[nargs]; if (!isStatic && found != null && found.isStatic()) { bytecode.addOpcode(POP); isStatic = true; } int stack = bytecode.getStackDepth(); // generate code for evaluating arguments. atMethodArgs(args, types, dims, cnames); // used by invokeinterface int count = bytecode.getStackDepth() - stack + 1; if (found == null) found = resolver.lookupMethod(targetClass, thisMethod, mname, types, dims, cnames, false); if (found == null) { String msg; if (mname.equals(MethodInfo.nameInit)) msg = "constructor not found"; else msg = "Method " + mname + " not found in " + targetClass.getName(); throw new CompileError(msg); } atMethodCallCore2(targetClass, mname, isStatic, isSpecial, aload0pos, count, found); }
56357 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56357/138cb0ca97dde654454bd1f90f35a5ad2380fbc1/MemberCodeGen.java/buggy/src/main/javassist/compiler/MemberCodeGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 622, 12592, 4670, 12, 39, 88, 797, 14563, 16, 514, 312, 529, 16, 13491, 9183, 682, 833, 16, 1250, 16116, 16, 1250, 353, 12193, 16, 13491, 509, 279, 945, 20, 917, 16, 8596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 622, 12592, 4670, 12, 39, 88, 797, 14563, 16, 514, 312, 529, 16, 13491, 9183, 682, 833, 16, 1250, 16116, 16, 1250, 353, 12193, 16, 13491, 509, 279, 945, 20, 917, 16, 8596, ...
public static Element encodeItem(Element parent, ZimbraSoapContext lc, MailItem item, int fields)
public static Element encodeItem(Element parent, ZimbraSoapContext lc, MailItem item)
public static Element encodeItem(Element parent, ZimbraSoapContext lc, MailItem item, int fields) throws ServiceException { if (item instanceof Folder) return encodeFolder(parent, lc, (Folder) item, fields); else if (item instanceof Tag) return encodeTag(parent, lc, (Tag) item, fields); else if (item instanceof Note) return encodeNote(parent, lc, (Note) item, fields); else if (item instanceof Contact) return encodeContact(parent, lc, (Contact) item, null, false, null, fields); else if (item instanceof Appointment) return encodeApptSummary(parent, lc, (Appointment) item, fields); else if (item instanceof Conversation) return encodeConversationSummary(parent, lc, (Conversation) item, fields); else if (item instanceof WikiItem) return encodeWiki(parent, lc, (WikiItem) item, fields, -1); else if (item instanceof Document) return encodeDocument(parent, lc, (Document) item, fields, -1); else if (item instanceof Message) { OutputParticipants output = (fields == NOTIFY_FIELDS ? OutputParticipants.PUT_BOTH : OutputParticipants.PUT_SENDERS); return encodeMessageSummary(parent, lc, (Message) item, output, fields); } return null; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/01d25914dbc17e5d816319e1df78b7f18143b2e2/ToXML.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ToXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3010, 2017, 1180, 12, 1046, 982, 16, 2285, 381, 15397, 20601, 1042, 9109, 16, 11542, 1180, 761, 13, 565, 1216, 16489, 288, 3639, 309, 261, 1726, 1276, 12623, 13, 5411, 327, 201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 2017, 1180, 12, 1046, 982, 16, 2285, 381, 15397, 20601, 1042, 9109, 16, 11542, 1180, 761, 13, 565, 1216, 16489, 288, 3639, 309, 261, 1726, 1276, 12623, 13, 5411, 327, 201...
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
public static String showInputDialog(Component parentComponent, Object message)
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); pane.setIcon(icon); pane.setSelectionValues(selectionValues); pane.setInitialSelectionValue(initialSelectionValue); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7d00a0887a14efd1decaed4a9310cdaa2e752aa/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 2405, 1210, 6353, 12, 1841, 982, 1841, 16, 4766, 4202, 1033, 883, 16, 514, 2077, 16, 4766, 4202, 509, 22402, 16, 16011, 4126, 16, 4766, 4202, 1033, 8526, 4421, 1972, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 2405, 1210, 6353, 12, 1841, 982, 1841, 16, 4766, 4202, 1033, 883, 16, 514, 2077, 16, 4766, 4202, 509, 22402, 16, 16011, 4126, 16, 4766, 4202, 1033, 8526, 4421, 1972, 16, ...
if(m.count() != count())
if(m.count() != count() || m.hashCode() != hashCode())
public boolean equals(Object obj) { if(!(obj instanceof IPersistentMap)) return false; IPersistentMap m = (IPersistentMap)obj; if(m.count() != count()) return false; for(ISeq s = seq();s!=null;s = s.rest()) { IMapEntry e = (IMapEntry) s.first(); IMapEntry me = m.find(e.key()); if(me == null || !RT.equal(e.val(),me.val())) return false; } return true;}
52334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52334/be12a746746c53c1f00758df7daa1fa5edc03935/APersistentMap.java/clean/src/jvm/clojure/lang/APersistentMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 565, 309, 12, 5, 12, 2603, 1276, 2971, 6572, 863, 3719, 3639, 327, 629, 31, 565, 2971, 6572, 863, 312, 273, 261, 2579, 6572, 863, 13, 2603, 31, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 565, 309, 12, 5, 12, 2603, 1276, 2971, 6572, 863, 3719, 3639, 327, 629, 31, 565, 2971, 6572, 863, 312, 273, 261, 2579, 6572, 863, 13, 2603, 31, 56...
{ if (req.getParameter("action")!= null) { this.sendPostcardMail(req,res); return; } HttpSession session = req.getSession(true); String qRow = req.getParameter("qr"); String metaId = req.getParameter("meta_id"); String[] pCStuff = {qRow,metaId}; session.setAttribute("postCardStuff",pCStuff); req.setAttribute("externalClass","QuoteLineCollector"); req.setAttribute("qFile",QUOTE_FILE); req.setAttribute("qLine",qRow); RequestDispatcher rd = req.getRequestDispatcher("GetDoc"); rd.forward(req,res);
{ if (req.getParameter("action")!= null) { this.sendPostcardMail(req,res); return; }
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { //ok the user was satisfied, so now we just have to send the mail if (req.getParameter("action")!= null) { this.sendPostcardMail(req,res); return; } //ok its the first time lets load the page for that HttpSession session = req.getSession(true); //lets get the params we need later on String qRow = req.getParameter("qr"); String metaId = req.getParameter("meta_id"); String[] pCStuff = {qRow,metaId}; session.setAttribute("postCardStuff",pCStuff); //the stuf GetDoc needs to get the quoteline req.setAttribute("externalClass","QuoteLineCollector"); req.setAttribute("qFile",QUOTE_FILE); req.setAttribute("qLine",qRow); RequestDispatcher rd = req.getRequestDispatcher("GetDoc"); rd.forward(req,res); return; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/PostcardServlet.java/buggy/servlets/PostcardServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 202, 95, 202, 202, 759, 601, 326, 729, 1703, 18958, 16, 1427, 2037, 732, 2537, 1240, 358, 1366, 326, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 202, 95, 202, 202, 759, 601, 326, 729, 1703, 18958, 16, 1427, 2037, 732, 2537, 1240, 358, 1366, 326, 47...
table.add(IWDeveloper.getText("Create New Bundle"),1,1); table.add(IWDeveloper.getText("Bundle Identifier"),1,2); table.add(name,2,2); table.add(new Parameter(NEW_BUNDLE_PARAMETER,"dummy")); table.add(new SubmitButton("Create",this.NEW_BUNDLE_PARAMETER,"save"),2,3); doBusiness(iwc); table.add(getRegisteredBundles(iwc),1,4); table.mergeCells(1,4,2,4); }
table.add(IWDeveloper.getText("Create New Bundle"), 1, 1); table.add(IWDeveloper.getText("Bundle Identifier"), 1, 2); table.add(name, 2, 2); table.add(new Parameter(NEW_BUNDLE_PARAMETER, "dummy")); table.add(new SubmitButton("Create", this.NEW_BUNDLE_PARAMETER, "save"), 2, 3); doBusiness(iwc); table.add(getRegisteredBundles(iwc), 1, 4); table.mergeCells(1, 4, 2, 4); }
public void main(IWContext iwc)throws Exception{ add(IWDeveloper.getTitleTable(this.getClass())); getParentPage().setBackgroundColor("#FFFFFF"); Form form = new Form(); form.maintainParameter(IWDeveloper.actionParameter); add(form); Table table = new Table(2,4); table.setAlignment(2,3,"right"); form.add(table); TextInput name = new TextInput(this.NEW_BUNDLE_NAME_PARAMETER); //TextInput path = new TextInput(this.NEW_BUNDLE_PATH_PARAMETER); table.add(IWDeveloper.getText("Create New Bundle"),1,1); table.add(IWDeveloper.getText("Bundle Identifier"),1,2); table.add(name,2,2); //table.add("Bundle Directory Name",2,2); //table.add(path,2,2); table.add(new Parameter(NEW_BUNDLE_PARAMETER,"dummy")); table.add(new SubmitButton("Create",this.NEW_BUNDLE_PARAMETER,"save"),2,3); doBusiness(iwc); table.add(getRegisteredBundles(iwc),1,4); table.mergeCells(1,4,2,4); }
11362 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11362/3ca1d274c003725a3259e54bc06f6d9925e3fd23/BundleCreator.java/clean/src/java/com/idega/development/presentation/BundleCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 15069, 1185, 95, 1377, 527, 12, 45, 59, 28145, 18, 588, 4247, 1388, 12, 2211, 18, 588, 797, 1435, 10019, 1377, 5089, 1964, 7675, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 15069, 1185, 95, 1377, 527, 12, 45, 59, 28145, 18, 588, 4247, 1388, 12, 2211, 18, 588, 797, 1435, 10019, 1377, 5089, 1964, 7675, 542, ...
if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data);
public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (data != null) writer.write(data); writer.write("-->"); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e); e2.initCause(e); throw e2; } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/62ae4fb5ad2e0e8ef50b5eec08f076b8fb9b365a/XMLStreamWriterImpl.java/clean/gnu/xml/stream/XMLStreamWriterImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 4469, 12, 780, 501, 13, 565, 1216, 21526, 225, 288, 565, 775, 1377, 288, 3639, 679, 1685, 1046, 5621, 7734, 309, 261, 892, 480, 446, 597, 501, 18, 31806, 2932, 413, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 4469, 12, 780, 501, 13, 565, 1216, 21526, 225, 288, 565, 775, 1377, 288, 3639, 679, 1685, 1046, 5621, 7734, 309, 261, 892, 480, 446, 597, 501, 18, 31806, 2932, 413, 792...
catch (Exception e) {
catch (Throwable e) {
public void test() throws Throwable { selenium.setContext("Test Failing Verifications", "info"); /* Test Failing Verifications */ // open|./tests/html/test_verifications.html| selenium.open("./tests/html/test_verifications.html"); boolean sawThrow4 = false; try { selenium.assertLocation("/tests/html/not_test_verifications.html"); } catch (Exception e) { sawThrow4 = true; } verifyTrue(sawThrow4); boolean sawThrow6 = false; try { // assertValue|theText|not the text value assertEquals("not the text value", selenium.getValue("theText")); } catch (Exception e) { sawThrow6 = true; } verifyTrue(sawThrow6); boolean sawThrow8 = false; try { // assertNotValue|theText|the text value assertNotEquals("the text value", selenium.getValue("theText")); } catch (Exception e) { sawThrow8 = true; } verifyTrue(sawThrow8); boolean sawThrow10 = false; try { // assertValue|theHidden|not the hidden value assertEquals("not the hidden value", selenium.getValue("theHidden")); } catch (Exception e) { sawThrow10 = true; } verifyTrue(sawThrow10); boolean sawThrow12 = false; try { // assertText|theSpan|this is not the span assertEquals("this is not the span", selenium.getText("theSpan")); } catch (Exception e) { sawThrow12 = true; } verifyTrue(sawThrow12); boolean sawThrow14 = false; try { // assertTextPresent|this is not the span| assertTrue(this.getText().indexOf("this is not the span")!=-1); } catch (Exception e) { sawThrow14 = true; } verifyTrue(sawThrow14); boolean sawThrow16 = false; try { // assertTextNotPresent|this is the span| assertFalse(this.getText().indexOf("this is the span")!=-1); } catch (Exception e) { sawThrow16 = true; } verifyTrue(sawThrow16); boolean sawThrow18 = false; try { selenium.assertElementPresent("notTheSpan"); } catch (Exception e) { sawThrow18 = true; } verifyTrue(sawThrow18); boolean sawThrow20 = false; try { selenium.assertElementNotPresent("theSpan"); } catch (Exception e) { sawThrow20 = true; } verifyTrue(sawThrow20); boolean sawThrow22 = false; try { // assertTable|theTable.1.0|a assertEquals("a", selenium.getTable("theTable.1.0")); } catch (Exception e) { sawThrow22 = true; } verifyTrue(sawThrow22); boolean sawThrow24 = false; try { selenium.assertSelected("theSelect", "index=2"); } catch (Exception e) { sawThrow24 = true; } verifyTrue(sawThrow24); boolean sawThrow26 = false; try { selenium.assertSelected("theSelect", "value=opt*3"); } catch (Exception e) { sawThrow26 = true; } verifyTrue(sawThrow26); boolean sawThrow28 = false; try { selenium.assertSelected("theSelect", "third option"); } catch (Exception e) { sawThrow28 = true; } verifyTrue(sawThrow28); boolean sawThrow30 = false; try { String[] tmp2 = {"first\\\\,option", "second option"}; // assertSelectOptions|theSelect|first\\\\,option,second option assertEquals(tmp2, selenium.getSelectOptions("theSelect")); } catch (Exception e) { sawThrow30 = true; } verifyTrue(sawThrow30); boolean sawThrow32 = false; try { // assertAttribute|theText@class|bar assertEquals("bar", selenium.getAttribute("theText@class")); } catch (Exception e) { sawThrow32 = true; } verifyTrue(sawThrow32); boolean sawThrow34 = false; try { // assertNotAttribute|theText@class|foo assertNotEquals("foo", selenium.getAttribute("theText@class")); } catch (Exception e) { sawThrow34 = true; } verifyTrue(sawThrow34); checkForVerificationErrors(); }
25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestFailingVerifications.java/clean/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestFailingVerifications.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 8911, 310, 6160, 6640, 3113, 315, 1376, 8863, 225, 1748, 7766, 8911, 310, 6160, 6640, 1195, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 8911, 310, 6160, 6640, 3113, 315, 1376, 8863, 225, 1748, 7766, 8911, 310, 6160, 6640, 1195, 1082, ...
0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 216, 492, 492, 0, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 492, 0, 0, 492, 492, 492, 492,
0, 0, 0, 41, 41, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 492, 492, 492,
private static final short[] yyTable2() { return new short[] { 472, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 327, 472, 476, 476, 476, 472, 472, 0, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 0, 0, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 473, 472, 472, 472, 472, 472, 472, 472, 472, 0, 473, 0, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 473, 0, 0, 0, 473, 473, 0, 473, 473, 473, 473, 78, 473, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 86, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 473, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 473, 0, 0, 473, 0, 0, 0, 278, 278, 0, 473, 278, 278, 278, 79, 278, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 278, 0, 0, 278, 0, 0, 0, 655, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 327, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 492, 473, 473, 473, 473, 473, 473, 473, 473, 0, 492, 0, 0, 473, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 251, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 469, 0, 0, 0, 0, 0, 412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 324, 0, 0, 469, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 0, 492, 327, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 58, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 469, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 412, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 470, 0, 678, 0, 90, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 470, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 476, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 90, 90, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 476, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 476, 0, 0, 90, 207, 0, 0, 106, 47, 48, 49, 0, 619, 232, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 0, 0, 14, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 91, 14, 91, 91, 91, 91, 91, 91, 91, 0, 470, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 91, 14, 0, 91, 91, 91, 91, 0, 91, 0, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 476, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 476, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 473, 0, 0, 0, 90, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 14, 14, 14, 0, 0, 0, 14, 14, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 91, 91, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 279, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 323, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 323, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 323, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 323, 278, 91, 0, 0, 91, 91, 91, 91, 0, 91, 492, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 492, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 492, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 91, 0, 0, 91, 91, 91, 91, 0, 91, 52, 91, 91, 91, 91, 91, 91, 0, 0, 0, 52, 91, 0, 0, 0, 492, 0, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 52, 0, 0, 0, 323, 323, 323, 323, 323, 323, 323, 0, 0, 323, 0, 0, 0, 52, 52, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 0, 323, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 52, 0, 0, 0, 0, 323, 0, 0, 323, 323, 323, 323, 0, 323, 0, 323, 323, 323, 323, 323, 323, 0, 492, 0, 0, 323, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 216, 492, 492, 0, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 52, 0, 0, 52, 52, 52, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 52, 52, 52, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 41, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 41, 41, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 41, 0, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 350, 350, 0, 0, 350, 350, 350, 350, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 350, 350, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 423, 41, 350, 0, 350, 350, 0, 0, 0, 0, 423, 0, 0, 41, 41, 41, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 423, 423, 0, 0, 423, 423, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 423, 0, 423, 423, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 492, 492, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 350, 350, 350, 492, 350, 492, 492, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 350, 350, 0, 350, 350, 350, 350, 350, 0, 0, 32, 0, 492, 492, 492, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 0, 0, 350, 0, 0, 32, 0, 350, 261, 0, 0, 0, 0, 0, 0, 423, 423, 423, 0, 0, 423, 423, 423, 32, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 32, 424, 423, 0, 0, 0, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 492, 492, 492, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 492, 0, 273, 273, 0, 492, 273, 273, 273, 273, 273, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 0, 0, 279, 32, 32, 0, 32, 0, 273, 0, 273, 273, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 279, 279, 273, 273, 279, 279, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 88, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 279, 279, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 83, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 0, 0, 273, 273, 273, 0, 273, 280, 0, 280, 280, 0, 0, 0, 0, 0, 273, 273, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 273, 273, 273, 273, 273, 0, 494, 0, 0, 0, 0, 0, 280, 280, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 0, 0, 273, 0, 494, 0, 0, 273, 0, 0, 0, 279, 279, 279, 0, 0, 279, 279, 279, 0, 279, 494, 494, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 197, 0, 0, 0, 494, 0, 0, 0, 0, 0, 197, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 0, 0, 279, 494, 0, 0, 0, 279, 197, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 197, 197, 280, 280, 280, 197, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 197, 0, 0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 0, 0, 0, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 197, 280, 280, 280, 0, 0, 280, 0, 373, 373, 0, 280, 373, 373, 373, 373, 373, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 494, 494, 0, 0, 494, 494, 494, 216, 494, 0, 0, 0, 0, 373, 0, 373, 373, 216, 494, 494, 0, 0, 0, 0, 0, 0, 0, 494, 494, 0, 494, 494, 494, 494, 494, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 373, 373, 216, 216, 216, 216, 216, 322, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 216, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 197, 197, 197, 0, 0, 197, 197, 197, 0, 197, 322, 0, 216, 216, 0, 290, 0, 0, 0, 197, 197, 0, 0, 0, 0, 290, 0, 0, 197, 197, 0, 197, 197, 197, 197, 197, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 290, 290, 290, 290, 290, 290, 290, 197, 197, 0, 0, 197, 197, 0, 0, 0, 0, 290, 290, 290, 197, 290, 290, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 0, 373, 373, 373, 0, 373, 290, 0, 290, 290, 0, 0, 0, 0, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 373, 373, 0, 373, 373, 373, 373, 373, 0, 56, 0, 0, 0, 0, 0, 290, 290, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 0, 0, 373, 373, 373, 0, 0, 373, 0, 56, 0, 0, 373, 0, 0, 0, 216, 216, 216, 0, 0, 216, 216, 216, 0, 216, 56, 56, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 216, 216, 216, 216, 216, 0, 0, 0, 0, 0, 202, 0, 0, 0, 56, 0, 0, 0, 0, 0, 202, 0, 0, 0, 0, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 0, 0, 216, 216, 322, 0, 0, 216, 56, 0, 0, 0, 216, 202, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 290, 202, 202, 290, 290, 290, 202, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 290, 290, 290, 290, 290, 0, 0, 202, 0, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 0, 0, 0, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 0, 202, 290, 290, 290, 0, 0, 290, 0, 286, 286, 0, 290, 286, 286, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 410, 56, 0, 0, 0, 0, 286, 0, 286, 286, 410, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 286, 286, 410, 410, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 202, 202, 0, 0, 202, 202, 202, 0, 202, 410, 0, 410, 410, 0, 411, 0, 0, 0, 202, 202, 0, 0, 0, 0, 411, 0, 0, 202, 202, 0, 202, 202, 202, 202, 202, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 411, 411, 411, 411, 411, 411, 411, 202, 202, 0, 0, 202, 202, 0, 0, 0, 0, 411, 411, 411, 202, 411, 411, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 0, 286, 286, 286, 0, 286, 411, 0, 411, 411, 0, 0, 0, 0, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 286, 286, 0, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 0, 0, 286, 0, 0, 0, 0, 286, 0, 0, 0, 410, 410, 410, 0, 0, 410, 410, 410, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 0, 0, 410, 410, 410, 0, 0, 410, 0, 0, 0, 0, 410, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 411, 411, 411, 0, 0, 411, 411, 411, 0, 411, 0, 175, 0, 174, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 411, 411, 411, 411, 411, 0, 0, 0, 0, 0, 193, 0, 0, 0, 177, 0, 185, 0, 0, 0, 193, 0, 0, 0, 0, 0, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 0, 0, 411, 411, 411, 0, 176, 411, 184, 193, 193, 0, 411, 193, 193, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 0, 0, 189, 189, 189, 189, 189, 0, 189, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 189, 189, 189, 0, 189, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 189, 189, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 186, 186, 0, 0, 186, 186, 186, 186, 186, 0, 186, 0, 0, 0, 0, 508, 509, 0, 0, 510, 0, 186, 186, 186, 0, 186, 186, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 186, 186, 0, 0, 0, 0, 0, 193, 193, 193, 0, 0, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 186, 186, 0, 0, 193, 193, 0, 193, 193, 193, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 0, 0, 193, 193, 189, 189, 189, 193, 0, 189, 189, 189, 193, 189, 0, 0, 0, 0, 0, 0, 334, 329, 0, 189, 189, 332, 330, 608, 331, 0, 333, 0, 189, 189, 0, 189, 189, 189, 189, 189, 0, 0, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 187, 0, 189, 189, 328, 0, 0, 189, 0, 0, 187, 0, 189, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 0, 0, 186, 186, 186, 0, 186, 0, 0, 0, 0, 327, 0, 0, 187, 187, 186, 186, 187, 187, 187, 187, 187, 0, 187, 186, 186, 0, 186, 186, 186, 186, 186, 0, 0, 187, 187, 187, 0, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 188, 0, 186, 186, 187, 187, 0, 186, }; }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 1059, 9060, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 1059, 9060, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565...
bankDriver.putPatch(bankData,p,col*bankDriver.getNumPatches()/bankDriver.getNumColumns()+row);
bankDriver.checkAndPutPatch(bankData,p,col*bankDriver.getNumPatches()/bankDriver.getNumColumns()+row);
public void setPatchAt(Patch p,int row,int col) { bankDriver.putPatch(bankData,p,col*bankDriver.getNumPatches()/bankDriver.getNumColumns()+row); fireTableCellUpdated (row, col); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/aafe9dbe3c00332b9bb389b9020a24757bd96d7a/PatchGridModel.java/clean/JSynthLib/core/PatchGridModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 7332, 861, 12, 7332, 293, 16, 474, 1027, 16, 474, 645, 13, 565, 288, 3639, 11218, 4668, 18, 1893, 1876, 6426, 7332, 12, 10546, 751, 16, 84, 16, 1293, 14, 10546, 4668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 7332, 861, 12, 7332, 293, 16, 474, 1027, 16, 474, 645, 13, 565, 288, 3639, 11218, 4668, 18, 1893, 1876, 6426, 7332, 12, 10546, 751, 16, 84, 16, 1293, 14, 10546, 4668, ...
} catch ( CoreException _ex )
} catch ( CoreException _ex )
private File getConfigDir( ILaunchConfiguration config ) { if ( fConfigDir == null ) try { if ( config.getAttribute( "usefeatures", false ) ) { String root = getProductPath( ).toString( ); if ( PDECore.getDefault( ).getModelManager( ) .isOSGiRuntime( ) ) root = root + "/configuration"; fConfigDir = new File( root ); } else { fConfigDir = ReportLauncherUtils.createConfigArea( config .getName( ) ); } } catch ( CoreException _ex ) { fConfigDir = ReportLauncherUtils.createConfigArea( config .getName( ) ); } if ( !fConfigDir.exists( ) ) fConfigDir.mkdirs( ); return fConfigDir; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/8b9756089bd39ac79cb8f82862d9ee44f9de43e2/ReportLaunchConfigurationDelegate.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1387, 4367, 1621, 12, 467, 9569, 1750, 642, 262, 202, 95, 202, 202, 430, 261, 284, 809, 1621, 422, 446, 262, 1082, 202, 698, 1082, 202, 95, 9506, 202, 430, 261, 642, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1387, 4367, 1621, 12, 467, 9569, 1750, 642, 262, 202, 95, 202, 202, 430, 261, 284, 809, 1621, 422, 446, 262, 1082, 202, 698, 1082, 202, 95, 9506, 202, 430, 261, 642, 18, 58...
} else { this.displayButtons = new AbstractButton[0]; }
} else this.displayButtons = new AbstractButton[0];
public TopWindowManager(ManageableTopWindow window, AbstractButton[] displayButtons) { if (window == null) throw new NullPointerException("No window."); this.window = window; if (displayButtons != null) { ArrayList actualButtons = new ArrayList(displayButtons.length); for (int i = 0; i < displayButtons.length; ++i) if (displayButtons[i] != null) actualButtons.add(displayButtons[i]); this.displayButtons = new AbstractButton[actualButtons.size()]; actualButtons.toArray(this.displayButtons); } else { this.displayButtons = new AbstractButton[0]; } setInitialState(); attachWindowListeners(); attachButtonsListeners(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cf83d7e74fdf42d9c4357c3e575c08395991a878/TopWindowManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TopWindowManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7202, 3829, 1318, 12, 21258, 429, 3401, 3829, 2742, 16, 1082, 202, 7469, 3616, 8526, 202, 5417, 14388, 13, 225, 202, 95, 202, 202, 430, 261, 5668, 422, 446, 13, 202, 12849, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7202, 3829, 1318, 12, 21258, 429, 3401, 3829, 2742, 16, 1082, 202, 7469, 3616, 8526, 202, 5417, 14388, 13, 225, 202, 95, 202, 202, 430, 261, 5668, 422, 446, 13, 202, 12849, 39...
return (IPresentablePart) item.getData(TAB_DATA); }
return (IPresentablePart) item.getData(TAB_DATA); }
protected final IPresentablePart getPartForTab(CTabItem item) { return (IPresentablePart) item.getData(TAB_DATA); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21EditorStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21EditorStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 2971, 1581, 429, 1988, 13657, 1290, 5661, 12, 1268, 378, 1180, 761, 13, 288, 3639, 327, 261, 2579, 1581, 429, 1988, 13, 761, 18, 588, 751, 12, 28899, 67, 4883, 1769, 565, 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, 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, 727, 2971, 1581, 429, 1988, 13657, 1290, 5661, 12, 1268, 378, 1180, 761, 13, 288, 3639, 327, 261, 2579, 1581, 429, 1988, 13, 761, 18, 588, 751, 12, 28899, 67, 4883, 1769, 565, 289...
public void finish() throws IOException {
public void finish() throws IOException {
public void finish() throws IOException { this.writeEOFRecord(); }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/TarOutputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/tar/TarOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4076, 1435, 1216, 1860, 288, 3639, 333, 18, 2626, 12706, 2115, 5621, 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...
[ 1, 1, 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, 377, 1071, 918, 4076, 1435, 1216, 1860, 288, 3639, 333, 18, 2626, 12706, 2115, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
variantList = new ArrayList();
variantList = new ArrayList<String>();
public List getVariants() { //Initialize lazily if (variantList == null) { variantList = new ArrayList(); } return (ArrayList) variantList; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/Spell.java/clean/code/src/java/pcgen/core/spell/Spell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 21165, 1435, 202, 95, 202, 202, 759, 7520, 25047, 202, 202, 430, 261, 8688, 682, 422, 446, 13, 202, 202, 95, 1082, 202, 8688, 682, 273, 394, 2407, 5621, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 21165, 1435, 202, 95, 202, 202, 759, 7520, 25047, 202, 202, 430, 261, 8688, 682, 422, 446, 13, 202, 202, 95, 1082, 202, 8688, 682, 273, 394, 2407, 5621, 202, 202, ...
doc = new Document( ( (OdaDataSetHandle) getContainer( ).getModel( ) ).getQueryText( ) );
doc = new Document( getQueryText() );
private void createTextualQueryComposite( Composite parent ) { Composite composite = new Composite(parent, SWT.FILL); GridLayout layout = new GridLayout(); layout.numColumns = 1; composite.setLayout(layout); CompositeRuler ruler = new CompositeRuler( ); LineNumberRulerColumn lineNumbers = new LineNumberRulerColumn( ); ruler.addDecorator( 0, lineNumbers ); viewer = new SourceViewer( composite, ruler, SWT.H_SCROLL | SWT.V_SCROLL ); sourceViewerConfiguration = new JdbcSQLSourceViewerConfiguration( ( (OdaDataSetHandle) getContainer( ).getModel( ) ) ); viewer.configure( sourceViewerConfiguration ); doc = new Document( ( (OdaDataSetHandle) getContainer( ).getModel( ) ).getQueryText( ) ); DefaultPartitioner partitioner = new DefaultPartitioner( new SQLPartitionScanner( ), new String[]{ SQLPartitionScanner.SINGLE_LINE_COMMENT1, SQLPartitionScanner.SINGLE_LINE_COMMENT2, SQLPartitionScanner.MULTI_LINE_COMMENT, IDocument.DEFAULT_CONTENT_TYPE } ); partitioner.connect( doc ); doc.setDocumentPartitioner( partitioner ); viewer.setDocument( doc ); viewer.getTextWidget( ).setFont( JFaceResources.getTextFont( ) ); attachMenus( viewer ); GridData data = new GridData(GridData.FILL_BOTH); viewer.getControl().setLayoutData(data); // Add drop support to the viewer addDropSupportToViewer(); if(isExternalEditorConfigured()) { Button btnExternalEditor = new Button(composite, SWT.NONE); btnExternalEditor.setText("Edit with external editor"); btnExternalEditor.addSelectionListener(this); } // add support of additional accelerated key viewer.getTextWidget( ).addKeyListener( new KeyListener( ) { public void keyPressed( KeyEvent e ) { if ( isUndoKeyPress( e ) ) { viewer.doOperation( ITextOperationTarget.UNDO ); } else if ( isRedoKeyPress( e ) ) { viewer.doOperation( ITextOperationTarget.REDO ); } } private boolean isUndoKeyPress( KeyEvent e ) { // CTRL + z return ( ( e.stateMask & SWT.CONTROL ) > 0 ) && ( ( e.keyCode == 'z' ) || ( e.keyCode == 'Z' ) ); } private boolean isRedoKeyPress( KeyEvent e ) { // CTRL + y return ( ( e.stateMask & SWT.CONTROL ) > 0 ) && ( ( e.keyCode == 'y' ) || ( e.keyCode == 'Y' ) ); } public void keyReleased( KeyEvent e ) { // do nothing } } ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b62e4bd10720f8a72b33925f846876b0df562025/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1528, 1462, 1138, 9400, 12, 14728, 982, 262, 202, 95, 1082, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 29818, 1769, 3639, 7145, 3744, 3511, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1528, 1462, 1138, 9400, 12, 14728, 982, 262, 202, 95, 1082, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 29818, 1769, 3639, 7145, 3744, 3511, 273,...
super(parent, context, createSearchScope(p), IJavaElementSearchConstants.CONSIDER_INTERFACES);
super(parent, context, IJavaSearchConstants.INTERFACE, createSearchScope(p));
public SuperInterfaceSelectionDialog(Shell parent, IRunnableContext context, ListDialogField list, IJavaProject p) { super(parent, context, createSearchScope(p), IJavaElementSearchConstants.CONSIDER_INTERFACES); fList= list; //to restore the content of the dialog field if the dialog is canceled fOldContent= fList.getElements(); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/115d4c27e01ab0e5561b5a0538c83bfc0c7d992d/SuperInterfaceSelectionDialog.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/SuperInterfaceSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14845, 1358, 6233, 6353, 12, 13220, 982, 16, 467, 20013, 1042, 819, 16, 987, 6353, 974, 666, 16, 467, 5852, 4109, 293, 13, 288, 202, 202, 9565, 12, 2938, 16, 819, 16, 30396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14845, 1358, 6233, 6353, 12, 13220, 982, 16, 467, 20013, 1042, 819, 16, 987, 6353, 974, 666, 16, 467, 5852, 4109, 293, 13, 288, 202, 202, 9565, 12, 2938, 16, 819, 16, 30396, ...
if (!(part instanceof ISaveablePart)) return false;
if (!(part instanceof ISaveablePart)) { return false; }
public boolean isDirty() { if (!(part instanceof ISaveablePart)) return false; return ((ISaveablePart) part).isDirty(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPartReference.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 25206, 1435, 288, 3639, 309, 16051, 12, 2680, 1276, 4437, 836, 429, 1988, 3719, 5411, 327, 629, 31, 3639, 327, 14015, 45, 4755, 429, 1988, 13, 1087, 2934, 291, 10785, 5621, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 25206, 1435, 288, 3639, 309, 16051, 12, 2680, 1276, 4437, 836, 429, 1988, 3719, 5411, 327, 629, 31, 3639, 327, 14015, 45, 4755, 429, 1988, 13, 1087, 2934, 291, 10785, 5621, 56...
if (next == null && prev == null) return null; if (next == null || prev == null)
if ((next == null) && (prev == null)) return null; if ((next == null) || (prev == null))
public DoublyLinkedList.Item remove(DoublyLinkedList.Item i) { if (i.getParent() == null) return null; // not in list if(isEmpty()) { Logger.error(this, "Illegal ERROR: Removing from an empty list!!"); throw new IllegalStateException("Illegal ERROR: Removing from an empty list!!"); } if (i.getParent() != this) throw new PromiscuousItemException(i, i.getParent()); DoublyLinkedList.Item next = i.getNext(), prev = i.getPrev(); if (next == null && prev == null) return null; // not in the list if (next == null || prev == null) throw new NullPointerException("next="+next+", prev="+prev); // partially in the list?! if(next.getPrev() != i || prev.getNext() != i) { String msg = "Illegal ERROR: i="+i+", next="+next+", next.prev="+next.getPrev()+", prev="+prev+", prev.next="+prev.getNext(); Logger.error(this, msg); throw new IllegalStateException(msg); } prev.setNext(next); next.setPrev(prev); i.setNext(null); i.setPrev(null); --size; i.setParent(null); return i; }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/DoublyLinkedListImpl.java/buggy/src/freenet/support/DoublyLinkedListImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2256, 440, 93, 13174, 682, 18, 1180, 1206, 12, 3244, 440, 93, 13174, 682, 18, 1180, 277, 13, 288, 377, 202, 430, 261, 77, 18, 588, 3054, 1435, 422, 446, 13, 327, 446, 31, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2256, 440, 93, 13174, 682, 18, 1180, 1206, 12, 3244, 440, 93, 13174, 682, 18, 1180, 277, 13, 288, 377, 202, 430, 261, 77, 18, 588, 3054, 1435, 422, 446, 13, 327, 446, 31, 368, ...
int pStart, int plen) { while (plen-- > 0) { char tchar = text.charAt(tStart++); char pchar = p.charAt(pStart++);
int pStart, int plen) { while (plen-- > 0) { char tchar = text.charAt(tStart++); char pchar = p.charAt(pStart++);
protected boolean regExpRegionMatches(String text, int tStart, String p, int pStart, int plen) { while (plen-- > 0) { char tchar = text.charAt(tStart++); char pchar = p.charAt(pStart++); /* process wild cards */ if (!fIgnoreWildCards) { /* skip single wild cards */ if (pchar == fSingleWildCard) { continue; } } if (pchar == tchar) continue; if (fIgnoreCase) { if (Character.toUpperCase(tchar) == Character .toUpperCase(pchar)) continue; // comparing after converting to upper case doesn't handle all cases; // also compare after converting to lower case if (Character.toLowerCase(tchar) == Character .toLowerCase(pchar)) continue; } return false; } return true; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c93d807ed962723d90daba76fc2003e2c1801cbc/StringMatcher.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/StringMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 31223, 5165, 6869, 12, 780, 977, 16, 509, 268, 1685, 16, 514, 293, 16, 5411, 509, 293, 1685, 16, 509, 886, 275, 13, 288, 3639, 1323, 261, 28907, 413, 405, 374, 13, 288, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 31223, 5165, 6869, 12, 780, 977, 16, 509, 268, 1685, 16, 514, 293, 16, 5411, 509, 293, 1685, 16, 509, 886, 275, 13, 288, 3639, 1323, 261, 28907, 413, 405, 374, 13, 288, 54...
if(status == SSKInsertSender.TIMED_OUT || status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD || status == SSKInsertSender.INTERNAL_ERROR) {
if((status == SSKInsertSender.TIMED_OUT) || (status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD) || (status == SSKInsertSender.INTERNAL_ERROR)) {
private void realRun() { runThread = Thread.currentThread(); // Send Accepted Message accepted = DMT.createFNPSSKAccepted(uid, pubKey == null); try { source.send(accepted, null); } catch (NotConnectedException e1) { Logger.minor(this, "Lost connection to source"); return; } if(pubKey == null) { // Wait for pub key Logger.minor(this, "Waiting for pubkey on "+uid); MessageFilter mfPK = MessageFilter.create().setType(DMT.FNPSSKPubKey).setField(DMT.UID, uid).setSource(source).setTimeout(PUBKEY_TIMEOUT); try { Message pk = node.usm.waitFor(mfPK, null); if(pk == null) { Logger.normal(this, "Failed to receive FNPSSKPubKey for "+uid); return; } byte[] pubkeyAsBytes = ((ShortBuffer)pk.getObject(DMT.PUBKEY_AS_BYTES)).getData(); try { pubKey = new DSAPublicKey(pubkeyAsBytes); Logger.minor(this, "Got pubkey on "+uid+" : "+pubKey); Message confirm = DMT.createFNPSSKPubKeyAccepted(uid); try { source.sendAsync(confirm, null, 0, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); return; } } catch (IOException e) { Logger.error(this, "Invalid pubkey from "+source+" on "+uid); Message msg = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_SSK_ERROR); try { source.send(msg, null); } catch (NotConnectedException ee) { // Ignore } return; } } catch (DisconnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); return; } } try { key.setPubKey(pubKey); block = new SSKBlock(data, headers, key, false); } catch (SSKVerifyException e1) { Logger.error(this, "Invalid SSK from "+source, e1); Message msg = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_SSK_ERROR); try { source.send(msg, null); } catch (NotConnectedException e) { // Ignore } return; } SSKBlock storedBlock = node.fetch(key); if(storedBlock != null && !storedBlock.equals(block)) { Message msg = DMT.createFNPSSKDataFound(uid, storedBlock.getRawHeaders(), storedBlock.getRawData()); try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); } block = storedBlock; } Logger.minor(this, "Got block for "+key+" for "+uid); if(htl == 0) { Message msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, null); } catch (NotConnectedException e) { // Ignore } canCommit = true; finish(); return; } if(htl > 0) sender = node.makeInsertSender(block, htl, uid, source, false, closestLoc, true); boolean receivedRejectedOverload = false; while(true) { synchronized(sender) { try { if(sender.getStatus() == SSKInsertSender.NOT_FINISHED) sender.wait(5000); } catch (InterruptedException e) { // Ignore } } if((!receivedRejectedOverload) && sender.receivedRejectedOverload()) { receivedRejectedOverload = true; // Forward it Message m = DMT.createFNPRejectedOverload(uid, false); try { source.send(m, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } if(sender.hasRecentlyCollided()) { // Forward collision data = sender.getData(); headers = sender.getHeaders(); try { block = new SSKBlock(data, headers, key, true); } catch (SSKVerifyException e1) { // Is verified elsewhere... throw new Error("Impossible: "+e1); } Message msg = DMT.createFNPSSKDataFound(uid, headers, data); try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } int status = sender.getStatus(); if(status == SSKInsertSender.NOT_FINISHED) { continue; } // Local RejectedOverload's (fatal). // Internal error counts as overload. It'd only create a timeout otherwise, which is the same thing anyway. // We *really* need a good way to deal with nodes that constantly R_O! if(status == SSKInsertSender.TIMED_OUT || status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD || status == SSKInsertSender.INTERNAL_ERROR) { Message msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } // Might as well store it anyway. if(status == SSKInsertSender.TIMED_OUT || status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD) canCommit = true; finish(); return; } if(status == SSKInsertSender.ROUTE_NOT_FOUND || status == SSKInsertSender.ROUTE_REALLY_NOT_FOUND) { Message msg = DMT.createFNPRouteNotFound(uid, sender.getHTL()); try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(); return; } if(status == SSKInsertSender.SUCCESS) { Message msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(); return; } // Otherwise...? Logger.error(this, "Unknown status code: "+sender.getStatusString()); Message msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, null); } catch (NotConnectedException e) { // Ignore } finish(); return; } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SSKInsertHandler.java/buggy/src/freenet/node/SSKInsertHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2863, 1997, 1435, 288, 3639, 1086, 3830, 273, 4884, 18, 2972, 3830, 5621, 7734, 368, 2479, 8662, 329, 3639, 2350, 8494, 273, 463, 6152, 18, 2640, 19793, 52, 1260, 47, 18047, 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, 918, 2863, 1997, 1435, 288, 3639, 1086, 3830, 273, 4884, 18, 2972, 3830, 5621, 7734, 368, 2479, 8662, 329, 3639, 2350, 8494, 273, 463, 6152, 18, 2640, 19793, 52, 1260, 47, 18047, 12...
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER && (Report.should_report("parser", 2))) { Report.report(2,"Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName . identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type [ ] // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= & InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= < ActualTypeArgumentList > // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList , ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= ? WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName . identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName . identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName . identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName . identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName . identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName ; // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName ; // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName . identifier ; // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName . * ; // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= ; // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= < TypeParameterList > // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList , TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= { ClassBodyDeclarationsopt } // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= ; // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators ; // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId [ ] // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= [ IdentifierList ] // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } Flags f = a.flags(); if (f.contains(Flags.ATOMIC)) { List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(nf.Atomic(pos(), nf.Here(pos()), b)); b = b.statements(ss); a = a.flags(f.clear(Flags.ATOMIC)); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier ( FormalParameterListopt ) // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator [ ] // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters , LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters , FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= ; // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName ( FormalParameterListopt ) // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= { EnumConstantsopt ,opt EnumBodyDeclarationsopt } // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants , EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= ( ArgumentListopt ) // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= ; ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ; // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt @ interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= { AnnotationTypeElementDeclarationsopt } // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier ( ) DefaultValueopt ; // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= ; // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= @ TypeName ( ElementValuePairsopt ) // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs , ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName = ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= { ElementValuesopt ,opt } // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues , ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= @ TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= @ TypeName ( ElementValue ) // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= { VariableInitializersopt ,opt } // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers , VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= { BlockStatementsopt } // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration ; // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if ( Expression ) Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= ; // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier : Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression ; // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression ; // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression : Expression ; // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression : // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant : // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default : // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while ( Expression ) Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while ( Expression ) ; // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt ; // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt ; // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt ; // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression ; // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized ( Expression ) Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch ( FormalParameter ) Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type . class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void . class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName . this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= ( Expression ) // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList , Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: DimExprs ::= DimExpr // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExprs DimExpr // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 338: DimExpr ::= [ Expression ] // case 338: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 339: Dims ::= [ ] // case 339: { btParser.setSym1(new Integer(1)); break; } // // Rule 340: Dims ::= Dims [ ] // case 340: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 341: FieldAccess ::= Primary . identifier // case 341: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 342: FieldAccess ::= super . identifier // case 342: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 343: FieldAccess ::= ClassName . super . identifier // case 343: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 344: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 344: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 345: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 345: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 346: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 346: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) // case 347: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 348: PostfixExpression ::= Primary // case 348: break; // // Rule 349: PostfixExpression ::= ExpressionName // case 349: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 350: PostfixExpression ::= PostIncrementExpression // case 350: break; // // Rule 351: PostfixExpression ::= PostDecrementExpression // case 351: break; // // Rule 352: PostIncrementExpression ::= PostfixExpression ++ // case 352: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 353: PostDecrementExpression ::= PostfixExpression -- // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 354: UnaryExpression ::= PreIncrementExpression // case 354: break; // // Rule 355: UnaryExpression ::= PreDecrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= + UnaryExpression // case 356: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 357: UnaryExpression ::= - UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 359: PreIncrementExpression ::= ++ UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 360: PreDecrementExpression ::= -- UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 361: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 361: break; // // Rule 362: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 365: MultiplicativeExpression ::= UnaryExpression // case 365: break; // // Rule 366: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 369: AdditiveExpression ::= MultiplicativeExpression // case 369: break; // // Rule 370: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 371: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 372: ShiftExpression ::= AdditiveExpression // case 372: break; // // Rule 373: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 374: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 374: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 376: RelationalExpression ::= ShiftExpression // case 376: break; // // Rule 377: RelationalExpression ::= RelationalExpression < ShiftExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 378: RelationalExpression ::= RelationalExpression > ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 381: EqualityExpression ::= RelationalExpression // case 381: break; // // Rule 382: EqualityExpression ::= EqualityExpression == RelationalExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 383: EqualityExpression ::= EqualityExpression != RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 384: AndExpression ::= EqualityExpression // case 384: break; // // Rule 385: AndExpression ::= AndExpression & EqualityExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 386: ExclusiveOrExpression ::= AndExpression // case 386: break; // // Rule 387: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 388: InclusiveOrExpression ::= ExclusiveOrExpression // case 388: break; // // Rule 389: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 390: ConditionalAndExpression ::= InclusiveOrExpression // case 390: break; // // Rule 391: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 392: ConditionalOrExpression ::= ConditionalAndExpression // case 392: break; // // Rule 393: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 394: ConditionalExpression ::= ConditionalOrExpression // case 394: break; // // Rule 395: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 396: AssignmentExpression ::= ConditionalExpression // case 396: break; // // Rule 397: AssignmentExpression ::= Assignment // case 397: break; // // Rule 398: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 398: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 399: LeftHandSide ::= ExpressionName // case 399: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 400: LeftHandSide ::= FieldAccess // case 400: break; // // Rule 401: LeftHandSide ::= ArrayAccess // case 401: break; // // Rule 402: AssignmentOperator ::= = // case 402: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 403: AssignmentOperator ::= *= // case 403: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 404: AssignmentOperator ::= /= // case 404: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= %= // case 405: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= += // case 406: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= -= // case 407: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= <<= // case 408: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= > > = // case 409: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= > > > = // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= &= // case 411: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= ^= // case 412: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= |= // case 413: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 414: Expression ::= AssignmentExpression // case 414: break; // // Rule 415: ConstantExpression ::= Expression // case 415: break; // // Rule 416: Dimsopt ::= $Empty // case 416: { btParser.setSym1(new Integer(0)); break; } // // Rule 417: Dimsopt ::= Dims // case 417: break; // // Rule 418: Catchesopt ::= $Empty // case 418: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 419: Catchesopt ::= Catches // case 419: break; // // Rule 420: identifieropt ::= $Empty // case 420: btParser.setSym1(null); break; // // Rule 421: identifieropt ::= identifier // case 421: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 422: ForUpdateopt ::= $Empty // case 422: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 423: ForUpdateopt ::= ForUpdate // case 423: break; // // Rule 424: Expressionopt ::= $Empty // case 424: btParser.setSym1(null); break; // // Rule 425: Expressionopt ::= Expression // case 425: break; // // Rule 426: ForInitopt ::= $Empty // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 427: ForInitopt ::= ForInit // case 427: break; // // Rule 428: SwitchLabelsopt ::= $Empty // case 428: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 429: SwitchLabelsopt ::= SwitchLabels // case 429: break; // // Rule 430: SwitchBlockStatementGroupsopt ::= $Empty // case 430: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 431: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 431: break; // // Rule 432: VariableModifiersopt ::= $Empty // case 432: { btParser.setSym1(Flags.NONE); break; } // // Rule 433: VariableModifiersopt ::= VariableModifiers // case 433: break; // // Rule 434: VariableInitializersopt ::= $Empty // case 434: btParser.setSym1(null); break; // // Rule 435: VariableInitializersopt ::= VariableInitializers // case 435: break; // // Rule 436: ElementValuesopt ::= $Empty // case 436: btParser.setSym1(null); break; // // Rule 437: ElementValuesopt ::= ElementValues // case 437: bad_rule = 437; break; // // Rule 438: ElementValuePairsopt ::= $Empty // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuePairsopt ::= ElementValuePairs // case 439: bad_rule = 439; break; // // Rule 440: DefaultValueopt ::= $Empty // case 440: btParser.setSym1(null); break; // // Rule 441: DefaultValueopt ::= DefaultValue // case 441: break; // // Rule 442: AnnotationTypeElementDeclarationsopt ::= $Empty // case 442: btParser.setSym1(null); break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 443: bad_rule = 443; break; // // Rule 444: AbstractMethodModifiersopt ::= $Empty // case 444: { btParser.setSym1(Flags.NONE); break; } // // Rule 445: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 445: break; // // Rule 446: ConstantModifiersopt ::= $Empty // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: ConstantModifiersopt ::= ConstantModifiers // case 447: break; // // Rule 448: InterfaceMemberDeclarationsopt ::= $Empty // case 448: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 449: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 449: break; // // Rule 450: ExtendsInterfacesopt ::= $Empty // case 450: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 451: ExtendsInterfacesopt ::= ExtendsInterfaces // case 451: break; // // Rule 452: InterfaceModifiersopt ::= $Empty // case 452: { btParser.setSym1(Flags.NONE); break; } // // Rule 453: InterfaceModifiersopt ::= InterfaceModifiers // case 453: break; // // Rule 454: ClassBodyopt ::= $Empty // case 454: btParser.setSym1(null); break; // // Rule 455: ClassBodyopt ::= ClassBody // case 455: break; // // Rule 456: Argumentsopt ::= $Empty // case 456: btParser.setSym1(null); break; // // Rule 457: Argumentsopt ::= Arguments // case 457: bad_rule = 457; break; // // Rule 458: EnumBodyDeclarationsopt ::= $Empty // case 458: btParser.setSym1(null); break; // // Rule 459: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 459: bad_rule = 459; break; // // Rule 460: ,opt ::= $Empty // case 460: btParser.setSym1(null); break; // // Rule 461: ,opt ::= , // case 461: break; // // Rule 462: EnumConstantsopt ::= $Empty // case 462: btParser.setSym1(null); break; // // Rule 463: EnumConstantsopt ::= EnumConstants // case 463: bad_rule = 463; break; // // Rule 464: ArgumentListopt ::= $Empty // case 464: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 465: ArgumentListopt ::= ArgumentList // case 465: break; // // Rule 466: BlockStatementsopt ::= $Empty // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 467: BlockStatementsopt ::= BlockStatements // case 467: break; // // Rule 468: ExplicitConstructorInvocationopt ::= $Empty // case 468: btParser.setSym1(null); break; // // Rule 469: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 469: break; // // Rule 470: ConstructorModifiersopt ::= $Empty // case 470: { btParser.setSym1(Flags.NONE); break; } // // Rule 471: ConstructorModifiersopt ::= ConstructorModifiers // case 471: break; // // Rule 472: ...opt ::= $Empty // case 472: btParser.setSym1(null); break; // // Rule 473: ...opt ::= ... // case 473: break; // // Rule 474: FormalParameterListopt ::= $Empty // case 474: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 475: FormalParameterListopt ::= FormalParameterList // case 475: break; // // Rule 476: Throwsopt ::= $Empty // case 476: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 477: Throwsopt ::= Throws // case 477: break; // // Rule 478: MethodModifiersopt ::= $Empty // case 478: { btParser.setSym1(Flags.NONE); break; } // // Rule 479: MethodModifiersopt ::= MethodModifiers // case 479: break; // // Rule 480: FieldModifiersopt ::= $Empty // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: FieldModifiersopt ::= FieldModifiers // case 481: break; // // Rule 482: ClassBodyDeclarationsopt ::= $Empty // case 482: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 483: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 483: break; // // Rule 484: Interfacesopt ::= $Empty // case 484: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 485: Interfacesopt ::= Interfaces // case 485: break; // // Rule 486: Superopt ::= $Empty // case 486: btParser.setSym1(null); break; // // Rule 487: Superopt ::= Super // case 487: break; // // Rule 488: TypeParametersopt ::= $Empty // case 488: btParser.setSym1(null); break; // // Rule 489: TypeParametersopt ::= TypeParameters // case 489: break; // // Rule 490: ClassModifiersopt ::= $Empty // case 490: { btParser.setSym1(Flags.NONE); break; } // // Rule 491: ClassModifiersopt ::= ClassModifiers // case 491: break; // // Rule 492: Annotationsopt ::= $Empty // case 492: btParser.setSym1(null); break; // // Rule 493: Annotationsopt ::= Annotations // case 493: bad_rule = 493; break; // // Rule 494: TypeDeclarationsopt ::= $Empty // case 494: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 495: TypeDeclarationsopt ::= TypeDeclarations // case 495: break; // // Rule 496: ImportDeclarationsopt ::= $Empty // case 496: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 497: ImportDeclarationsopt ::= ImportDeclarations // case 497: break; // // Rule 498: PackageDeclarationopt ::= $Empty // case 498: btParser.setSym1(null); break; // // Rule 499: PackageDeclarationopt ::= PackageDeclaration // case 499: break; // // Rule 500: WildcardBoundsOpt ::= $Empty // case 500: btParser.setSym1(null); break; // // Rule 501: WildcardBoundsOpt ::= WildcardBounds // case 501: bad_rule = 501; break; // // Rule 502: AdditionalBoundListopt ::= $Empty // case 502: btParser.setSym1(null); break; // // Rule 503: AdditionalBoundListopt ::= AdditionalBoundList // case 503: bad_rule = 503; break; // // Rule 504: TypeBoundopt ::= $Empty // case 504: btParser.setSym1(null); break; // // Rule 505: TypeBoundopt ::= TypeBound // case 505: bad_rule = 505; break; // // Rule 506: TypeArgumentsopt ::= $Empty // case 506: btParser.setSym1(null); break; // // Rule 507: TypeArgumentsopt ::= TypeArguments // case 507: bad_rule = 507; break; // // Rule 508: Type ::= DataType PlaceTypeSpecifieropt // case 508: { // Just parse the placetype and drop it for now. break; } // // Rule 509: Type ::= nullable < Type > // case 509: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 510: Type ::= future < Type > // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 511: DataType ::= PrimitiveType // case 511: break; // // Rule 512: DataType ::= ClassOrInterfaceType // case 512: break; // // Rule 513: DataType ::= ArrayType // case 513: break; // // Rule 514: PlaceTypeSpecifier ::= @ PlaceType // case 514: break; // // Rule 515: PlaceType ::= place // case 515: break; // // Rule 516: PlaceType ::= activity // case 516: break; // // Rule 517: PlaceType ::= method // case 517: break; // // Rule 518: PlaceType ::= current // case 518: break; // // Rule 519: PlaceType ::= PlaceExpression // case 519: break; // // Rule 520: ClassOrInterfaceType ::= TypeName DepParametersopt // case 520: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 521: DepParameters ::= ( DepParameterExpr ) // case 521: break; // // Rule 522: DepParameterExpr ::= ArgumentList WhereClauseopt // case 522: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 523: DepParameterExpr ::= WhereClause // case 523: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 524: WhereClause ::= : Expression // case 524: break; // // Rule 526: X10ArrayType ::= Type [ . ] // case 526: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 527: X10ArrayType ::= Type reference [ . ] // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 528: X10ArrayType ::= Type value [ . ] // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 529: X10ArrayType ::= Type [ DepParameterExpr ] // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 530: X10ArrayType ::= Type reference [ DepParameterExpr ] // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type value [ DepParameterExpr ] // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 532: ObjectKind ::= value // case 532: bad_rule = 532; break; // // Rule 533: ObjectKind ::= reference // case 533: bad_rule = 533; break; // // Rule 534: MethodModifier ::= atomic // case 534: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 535: MethodModifier ::= extern // case 535: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 536: ClassDeclaration ::= ValueClassDeclaration // case 536: break; // // Rule 537: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 537: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ ] ArrayInitializer // case 539: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] Expression // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); Expr initializer = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] ( FormalParameter ) MethodBody // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); X10Formal f = (X10Formal) btParser.getSym(8); Block body = (Block) btParser.getSym(10); New initializer = makeInitializer( pos(btParser.getFirstToken(7), btParser.getLastToken(10)), a, f, body ); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= ( FormalParameter ) MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now ( Clock ) Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked ( ClockList ) Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 572: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 573: WhenStatement ::= when ( Expression ) Statement // case 573: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 574: WhenStatement ::= WhenStatement or ( Expression ) Statement // case 574: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 575: ForEachStatement ::= foreach ( FormalParameter : Expression ) Statement // case 575: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 576: AtEachStatement ::= ateach ( FormalParameter : Expression ) Statement // case 576: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 577: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: FinishStatement ::= finish Statement // case 578: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 579: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 579: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 580: ClockedStatementNoShortIf ::= clocked ( ClockList ) StatementNoShortIf // case 580: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 581: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 581: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 582: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 582: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 583: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 584: WhenStatementNoShortIf ::= WhenStatement or ( Expression ) StatementNoShortIf // case 584: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 585: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) StatementNoShortIf // case 585: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 586: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) StatementNoShortIf // case 586: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 587: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 587: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 588: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 589: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 589: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 590: PlaceExpression ::= here // case 590: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 591: PlaceExpression ::= this // case 591: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 592: PlaceExpression ::= Expression // case 592: break; // // Rule 593: PlaceExpression ::= ArrayAccess // case 593: bad_rule = 593; break; // // Rule 594: NextStatement ::= next ; // case 594: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 595: AwaitStatement ::= await Expression ; // case 595: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 596: ClockList ::= Clock // case 596: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 597: ClockList ::= ClockList , Clock // case 597: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 598: Clock ::= identifier // case 598: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 599: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 599: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 600: MethodInvocation ::= Primary -> identifier ( ArgumentListopt ) // case 600: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 601: RelationalExpression ::= RelationalExpression instanceof Type // case 601: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 602: ExpressionName ::= here // case 602: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 603: IdentifierList ::= IdentifierList , identifier // case 603: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 604: IdentifierList ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 605: Primary ::= FutureExpression // case 605: break; // // Rule 606: Primary ::= [ ArgumentList ] // case 606: { Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); List a = (List) btParser.getSym(2); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, a); btParser.setSym1(tuple); break; } // // Rule 607: AssignmentExpression ::= Expression -> Expression // case 607: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); //System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 608: Primary ::= Expression : Expression // case 608: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); btParser.setSym1(regionCall); break; } // // Rule 609: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 609: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 610: FieldModifier ::= mutable // case 610: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 611: FieldModifier ::= const // case 611: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 612: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName ( ArgumentListopt ) ( ArgumentListopt ) // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= $Empty // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= $Empty // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= $Empty // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= $Empty // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= $Empty // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: PlaceExpressionSingleListopt ::= $Empty // case 631: btParser.setSym1(null); break; // // Rule 632: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 632: break; // // Rule 633: ArgumentListopt ::= $Empty // case 633: btParser.setSym1(null); break; // // Rule 634: ArgumentListopt ::= ArgumentList // case 634: break; // // Rule 635: DepParametersopt ::= $Empty // case 635: btParser.setSym1(null); break; // // Rule 636: DepParametersopt ::= DepParameters // case 636: break; // // Rule 637: Unsafeopt ::= $Empty // case 637: btParser.setSym1(null); break; // // Rule 638: Unsafeopt ::= unsafe // case 638: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 639: ParamIdopt ::= $Empty // case 639: btParser.setSym1(null); break; // // Rule 640: ParamIdopt ::= identifier // case 640: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/0c6c148f7be6e4cc0e87c12a307232047c894d1b/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
result.append(Messages.get().key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE2_0));
result.append(key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE2_0));
protected String getComboCronExpressions() { StringBuffer result = new StringBuffer(8); // 0 0 3 * * ? (daily at 3 am) result.append("0 0 3 * * ?:"); result.append(Messages.get().key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE1_0)); // 0 0/30 * * * ? (daily every thirty minutes) result.append("|0 0/30 * * * ?:"); result.append(Messages.get().key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE2_0)); // 0 30 8 ? * 4 (every Wednesday at 8:30 am) result.append("|0 30 8 ? * 4:"); result.append(Messages.get().key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE3_0)); // 0 15 18 15 * ? (on the 15th day of the month at 6:15 pm) result.append("|0 15 18 15 * ?:"); result.append(Messages.get().key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE4_0)); // 0 45 15 ? * 1 2005-2006 (every Sunday from the year 2005 to 2006 at 3:45 pm) result.append("|0 45 15 ? * 1 2005-2006:"); result.append(Messages.get().key(Messages.GUI_EDITOR_CRONJOB_EXAMPLE5_0)); return result.toString(); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a1ee18842d07f694071241e9375bd3964ce7db2f/CmsEditScheduledJobInfoDialog.java/clean/src-modules/org/opencms/workplace/tools/scheduler/CmsEditScheduledJobInfoDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 336, 16156, 18586, 8927, 1435, 288, 3639, 6674, 563, 273, 394, 6674, 12, 28, 1769, 7734, 368, 374, 374, 890, 380, 380, 692, 261, 26790, 622, 890, 2125, 13, 3639, 563, 18, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 336, 16156, 18586, 8927, 1435, 288, 3639, 6674, 563, 273, 394, 6674, 12, 28, 1769, 7734, 368, 374, 374, 890, 380, 380, 692, 261, 26790, 622, 890, 2125, 13, 3639, 563, 18, 692...
InputDialog dialog = new InputDialog( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogTitle, NLS.bind(IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogMessage, resource.getName()), getAutoNewNameFor(originalName, workspace).lastSegment().toString(), validator); dialog.setBlockOnOpen(true); dialog.open(); if (dialog.getReturnCode() == Window.CANCEL) { returnValue[0] = null; } else { returnValue[0] = dialog.getValue(); } } }); if (returnValue[0] == null) { throw new OperationCanceledException(); } return prefix.append(returnValue[0]); }
InputDialog dialog = new InputDialog( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogTitle, NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogMessage, resource.getName()), getAutoNewNameFor( originalName, workspace).lastSegment() .toString(), validator); dialog.setBlockOnOpen(true); dialog.open(); if (dialog.getReturnCode() == Window.CANCEL) { returnValue[0] = null; } else { returnValue[0] = dialog.getValue(); } } }); if (returnValue[0] == null) { throw new OperationCanceledException(); } return prefix.append(returnValue[0]); }
private IPath getNewNameFor(final IPath originalName, final IWorkspace workspace) { final IResource resource = workspace.getRoot().findMember(originalName); final IPath prefix = resource.getFullPath().removeLastSegments(1); final String returnValue[] = { "" }; //$NON-NLS-1$ parentShell.getDisplay().syncExec(new Runnable() { public void run() { IInputValidator validator = new IInputValidator() { public String isValid(String string) { if (resource.getName().equals(string)) { return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_nameMustBeDifferent; } IStatus status = workspace.validateName(string, resource.getType()); if (!status.isOK()) { return status.getMessage(); } if (workspace.getRoot().exists(prefix.append(string))) { return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_nameExists; } return null; } }; InputDialog dialog = new InputDialog( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogTitle, NLS.bind(IDEWorkbenchMessages.CopyFilesAndFoldersOperation_inputDialogMessage, resource.getName()), getAutoNewNameFor(originalName, workspace).lastSegment().toString(), validator); dialog.setBlockOnOpen(true); dialog.open(); if (dialog.getReturnCode() == Window.CANCEL) { returnValue[0] = null; } else { returnValue[0] = dialog.getValue(); } } }); if (returnValue[0] == null) { throw new OperationCanceledException(); } return prefix.append(returnValue[0]); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/48cbfd568805d8302ff76e177e1533df1b92a834/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 743, 12654, 461, 1290, 12, 6385, 467, 743, 2282, 461, 16, 5411, 727, 467, 8241, 6003, 13, 288, 3639, 727, 467, 1420, 1058, 273, 6003, 18, 588, 2375, 7675, 4720, 4419, 12, 883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 743, 12654, 461, 1290, 12, 6385, 467, 743, 2282, 461, 16, 5411, 727, 467, 8241, 6003, 13, 288, 3639, 727, 467, 1420, 1058, 273, 6003, 18, 588, 2375, 7675, 4720, 4419, 12, 883...
return RubySymbol.newSymbol(input.getRuby(), input.unmarshalString());
return RubySymbol.newSymbol(input.getRuntime(), input.unmarshalString());
public static RubySymbol unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubySymbol.newSymbol(input.getRuby(), input.unmarshalString()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubySymbol.java/clean/org/jruby/RubySymbol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5335, 11401, 1265, 12, 9593, 1228, 810, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 327, 19817, 5335, 18, 2704, 5335, 12, 2630, 18, 588, 5576, 9334, 810, 18, 318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5335, 11401, 1265, 12, 9593, 1228, 810, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 327, 19817, 5335, 18, 2704, 5335, 12, 2630, 18, 588, 5576, 9334, 810, 18, 318, ...
return namedOffsets.getNameOffset();
return offsets.getNameOffset();
public int getNameOffset() { return namedOffsets.getNameOffset(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/ASTNamespaceDefinition.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTNamespaceDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1723, 2335, 1435, 565, 288, 3639, 327, 8738, 18, 17994, 2335, 5621, 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,...
[ 1, 1, 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, 377, 1071, 509, 1723, 2335, 1435, 565, 288, 3639, 327, 8738, 18, 17994, 2335, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
in = new SequenceInputStream(new ByteArrayInputStream(peerInfoHash), in);
public void connection(I2PSocket socket, InputStream in, OutputStream out) throws IOException { // inside this Peer constructor's handshake is where you'd deal with the other // side saying they want to communicate with another torrent - aka multitorrent // support, but because of how the protocol works, we can get away with just reading // ahead the first $LOOKAHEAD_SIZE bytes to figure out which infohash they want to // talk about, and we can just look for that in our list of active torrents. byte peerInfoHash[] = null; try { peerInfoHash = readHash(in); _log.info("infohash read from " + socket.getPeerDestination().calculateHash().toBase64() + ": " + Base64.encode(peerInfoHash)); } catch (IOException ioe) { _log.info("Unable to read the infohash from " + socket.getPeerDestination().calculateHash().toBase64()); throw ioe; } in = new SequenceInputStream(new ByteArrayInputStream(peerInfoHash), in); if (coordinator != null) { // single torrent capability MetaInfo meta = coordinator.getMetaInfo(); if (DataHelper.eq(meta.getInfoHash(), peerInfoHash)) { if (coordinator.needPeers()) { Peer peer = new Peer(socket, in, out, coordinator.getID(), coordinator.getMetaInfo()); coordinator.addPeer(peer); } else socket.close(); } else { // its for another infohash, but we are only single torrent capable. b0rk. throw new IOException("Peer wants another torrent (" + Base64.encode(peerInfoHash) + ") while we only support (" + Base64.encode(meta.getInfoHash()) + ")"); } } else { // multitorrent capable, so lets see what we can handle for (Iterator iter = coordinators.iterator(); iter.hasNext(); ) { PeerCoordinator cur = (PeerCoordinator)iter.next(); MetaInfo meta = cur.getMetaInfo(); if (DataHelper.eq(meta.getInfoHash(), peerInfoHash)) { if (cur.needPeers()) { Peer peer = new Peer(socket, in, out, cur.getID(), cur.getMetaInfo()); cur.addPeer(peer); return; } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Rejecting new peer for " + cur.snark.torrent); socket.close(); return; } } } // this is only reached if none of the coordinators match the infohash throw new IOException("Peer wants another torrent (" + Base64.encode(peerInfoHash) + ") while we don't support that hash"); } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/3989638f2dc6d1749827facabfb3af21e52a1b2e/PeerAcceptor.java/buggy/apps/i2psnark/java/src/org/klomp/snark/PeerAcceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1459, 12, 45, 22, 52, 4534, 2987, 16, 7682, 5037, 316, 16, 8962, 596, 13, 565, 1216, 1860, 225, 288, 565, 368, 4832, 333, 10669, 3885, 1807, 11942, 353, 1625, 1846, 14271, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1459, 12, 45, 22, 52, 4534, 2987, 16, 7682, 5037, 316, 16, 8962, 596, 13, 565, 1216, 1860, 225, 288, 565, 368, 4832, 333, 10669, 3885, 1807, 11942, 353, 1625, 1846, 14271, 10...
nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterPage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributePage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterGroup")|| nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterCollection") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeCollection") ) { data = new String [] { "Description","DisplayName","InternalName"};
nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterPage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributePage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterCollection") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeCollection")) { data = new String[]{"Description", "DisplayName", "InternalName"};
private void doOnSelection() { lastSelectedNode = (DatasetViewTreeNode) this.getLastSelectedPathComponent(); if (lastSelectedNode == null) return; String [] data = null; BaseNamedConfigurationObject nodeObject = (BaseNamedConfigurationObject)lastSelectedNode.getUserObject(); String nodeObjectClass = nodeObject.getClass().getName(); if (nodeObjectClass.equals("org.ensembl.mart.lib.config.DatasetView") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterPage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributePage") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterGroup")|| nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeGroup") || nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterCollection") || nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeCollection") ) { data = new String [] { "Description","DisplayName","InternalName"}; } else if (nodeObjectClass.equals("org.ensembl.mart.lib.config.FilterDescription")) { data = new String[]{ "Description", "DisplayName", "InternalName", "isSelectable", "Legal Qualifiers", "Qualifier", "Table Constraint", "Type"}; } else if (nodeObjectClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) { data = new String[]{ "Description", "DisplayName", "InternalName", "Field", "Table Constraint", "Max Length", "Source","Homepage URL","Linkout URL"}; } attrTableModel = new DatasetViewAttributeTableModel((DatasetViewTreeNode) this.getLastSelectedPathComponent(),data, nodeObjectClass); attrTableModel.addTableModelListener(new AttrTableModelListener()); // model.setObject(nodeObject); attrTable.setModel(attrTableModel); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/082dd174b481a0310ab6715ad2ee8e75b718027c/DatasetViewTree.java/buggy/src/java/org/ensembl/mart/vieweditor/DatasetViewTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1398, 6233, 1435, 288, 3639, 1142, 7416, 907, 273, 261, 10656, 1767, 12513, 13, 333, 18, 588, 3024, 7416, 743, 1841, 5621, 3639, 309, 261, 2722, 7416, 907, 422, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1398, 6233, 1435, 288, 3639, 1142, 7416, 907, 273, 261, 10656, 1767, 12513, 13, 333, 18, 588, 3024, 7416, 743, 1841, 5621, 3639, 309, 261, 2722, 7416, 907, 422, 446, 13, ...
try
String version = constructVersion(); if ( version != null )
public void storeInLocalRepository( ArtifactRepository localRepository ) throws ArtifactMetadataRetrievalException { try { String path = getLocalRepositoryLocation( localRepository ).getPath(); File file = new File( path ); // TODO: this should be centralised before the resolution of the artifact file.getParentFile().mkdirs(); FileUtils.fileWrite( path, constructVersion() ); lastModified = file.lastModified(); } catch ( IOException e ) { throw new ArtifactMetadataRetrievalException( "Unable to retrieve metadata", e ); } }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/884a29b92ddab90b7ed2eb8b95c3c6cc2c581da9/AbstractVersionArtifactMetadata.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/metadata/AbstractVersionArtifactMetadata.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 382, 2042, 3305, 12, 14022, 3305, 1191, 3305, 262, 3639, 1216, 14022, 2277, 27356, 503, 565, 288, 3639, 514, 1177, 273, 4872, 1444, 5621, 309, 261, 1177, 480, 446, 262, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 382, 2042, 3305, 12, 14022, 3305, 1191, 3305, 262, 3639, 1216, 14022, 2277, 27356, 503, 565, 288, 3639, 514, 1177, 273, 4872, 1444, 5621, 309, 261, 1177, 480, 446, 262, 3...
moduleHandle.addElement(moduleHandle.getElementFactory( ) .newElementFrom( elementHandle, null ),ModuleHandle.PARAMETER_SLOT);
elementHandle = moduleHandle.getElementFactory( ) .newElementFrom( elementHandle, null ); moduleHandle.addElement( elementHandle, ModuleHandle.PARAMETER_SLOT );
public boolean preHandleMouseUp( ) { if ( getRequest( ).getNewObjectType( ) instanceof ScalarParameterHandle ) { try { Object newHandle = InsertInLayoutUtil.performInsert( getRequest( ).getNewObject( ), getTargetEditPart( ) ); if ( newHandle == null ) return false; setModel( newHandle ); Object newObj = getRequest( ).getNewObject(); if( newObj instanceof Object[] && (( Object[])newObj).length>0) { newObj = (( Object[])newObj)[0]; } DesignElementHandle elementHandle = (DesignElementHandle) newObj; if ( elementHandle.getRoot( ) instanceof LibraryHandle ) { ModuleHandle moduleHandle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); LibraryHandle library = (LibraryHandle) elementHandle.getRoot( ); try { if ( UIUtil.includeLibrary( moduleHandle, library ) ) { moduleHandle.addElement(moduleHandle.getElementFactory( ) .newElementFrom( elementHandle, null ),ModuleHandle.PARAMETER_SLOT); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } } return super.preHandleMouseUp( ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } return false; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/bf4dbe7c0bf0d0dc52b025bc911850ad88070eea/BasePaletteFactory.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/BasePaletteFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 675, 3259, 9186, 1211, 12, 262, 202, 202, 95, 1082, 202, 430, 261, 4328, 12, 262, 18, 588, 1908, 17610, 12, 262, 1276, 15791, 1662, 3259, 262, 1082, 202, 95, 9506, 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, 3196, 202, 482, 1250, 675, 3259, 9186, 1211, 12, 262, 202, 202, 95, 1082, 202, 430, 261, 4328, 12, 262, 18, 588, 1908, 17610, 12, 262, 1276, 15791, 1662, 3259, 262, 1082, 202, 95, 9506, 202,...
public void readRep(Repository rep, long id_step, ArrayList databases, Hashtable counters) throws KettleException { try { long id_connection = rep.getStepAttributeInteger(id_step, "id_connection"); database = Const.findDatabase( databases, id_connection); procedure = rep.getStepAttributeString(id_step, "procedure"); int nrargs = rep.countNrStepAttributes(id_step, "arg_name"); allocate(nrargs); for (int i=0;i<nrargs;i++) { argument[i] = rep.getStepAttributeString(id_step, i, "arg_name"); argumentDirection[i] = rep.getStepAttributeString(id_step, i, "arg_direction"); argumentType[i] = Value.getType( rep.getStepAttributeString(id_step, i, "arg_type") ); } resultName = rep.getStepAttributeString(id_step, "result_name"); resultType = Value.getType( rep.getStepAttributeString(id_step, "result_type") ); } catch(Exception e) { throw new KettleException(Messages.getString("DBProcMeta.Exception.UnexpectedErrorReadingStepInfo"), e); } }
public void readRep(Repository rep, long id_step, ArrayList databases, Hashtable counters) throws KettleException { try { long id_connection = rep.getStepAttributeInteger(id_step, "id_connection"); database = Const.findDatabase(databases, id_connection); procedure = rep.getStepAttributeString(id_step, "procedure"); int nrargs = rep.countNrStepAttributes(id_step, "arg_name"); allocate(nrargs); for (int i = 0; i < nrargs; i++) { argument[i] = rep.getStepAttributeString(id_step, i, "arg_name"); argumentDirection[i] = rep.getStepAttributeString(id_step, i, "arg_direction"); argumentType[i] = Value.getType(rep.getStepAttributeString(id_step, i, "arg_type")); } resultName = rep.getStepAttributeString(id_step, "result_name"); resultType = Value.getType(rep.getStepAttributeString(id_step, "result_type")); autoCommit = rep.getStepAttributeBoolean(id_step, 0, "auto_commit", true); } catch (Exception e) { throw new KettleException(Messages.getString("DBProcMeta.Exception.UnexpectedErrorReadingStepInfo"), e); } }
public void readRep(Repository rep, long id_step, ArrayList databases, Hashtable counters) throws KettleException { try { long id_connection = rep.getStepAttributeInteger(id_step, "id_connection"); //$NON-NLS-1$ database = Const.findDatabase( databases, id_connection); procedure = rep.getStepAttributeString(id_step, "procedure"); //$NON-NLS-1$ int nrargs = rep.countNrStepAttributes(id_step, "arg_name"); //$NON-NLS-1$ allocate(nrargs); for (int i=0;i<nrargs;i++) { argument[i] = rep.getStepAttributeString(id_step, i, "arg_name"); //$NON-NLS-1$ argumentDirection[i] = rep.getStepAttributeString(id_step, i, "arg_direction"); //$NON-NLS-1$ argumentType[i] = Value.getType( rep.getStepAttributeString(id_step, i, "arg_type") ); //$NON-NLS-1$ } resultName = rep.getStepAttributeString(id_step, "result_name"); //$NON-NLS-1$ resultType = Value.getType( rep.getStepAttributeString(id_step, "result_type") ); //$NON-NLS-1$ } catch(Exception e) { throw new KettleException(Messages.getString("DBProcMeta.Exception.UnexpectedErrorReadingStepInfo"), e); //$NON-NLS-1$ } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/f06ab48f59f9490cf64cf9d615c2638237857e0e/DBProcMeta.java/clean/kettle/src/be/ibridge/kettle/trans/step/dbproc/DBProcMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 18933, 12, 3305, 2071, 16, 1525, 612, 67, 4119, 16, 2407, 16358, 16, 18559, 13199, 13, 202, 202, 15069, 1475, 278, 5929, 503, 202, 95, 202, 202, 698, 202, 202, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 18933, 12, 3305, 2071, 16, 1525, 612, 67, 4119, 16, 2407, 16358, 16, 18559, 13199, 13, 202, 202, 15069, 1475, 278, 5929, 503, 202, 95, 202, 202, 698, 202, 202, 95, ...
if(type instanceof PrimType) { if(type.equals(value.getSootType())) return AlwaysMatch.v; else return NeverMatch.v;
Type from=value.getSootType(); Type to=type; if(from instanceof PrimType || to instanceof PrimType) { if(from.equals(to)) return AlwaysMatch.v; if(from instanceof ByteType) from=ShortType.v(); if(from.equals(to)) return AlwaysMatch.v; if(from instanceof ShortType || from instanceof CharType) from=IntType.v(); if(from.equals(to)) return AlwaysMatch.v; if(from instanceof IntType) from=LongType.v(); if(from.equals(to)) return AlwaysMatch.v; if(from instanceof LongType) from=FloatType.v(); if(from.equals(to)) return AlwaysMatch.v; if(from instanceof FloatType) from=DoubleType.v(); if(from.equals(to)) return AlwaysMatch.v; return NeverMatch.v; } else { FastHierarchy hier=Scene.v().getFastHierarchy(); if(hier.canStoreType(from,to)) return AlwaysMatch.v;
public static Residue construct(ContextValue value,Type type) { if(type.equals(Scene.v().getSootClass("java.lang.Object").getType())) return AlwaysMatch.v; if(type instanceof PrimType) { if(type.equals(value.getSootType())) return AlwaysMatch.v; else return NeverMatch.v; } return new CheckType(value,type); }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/2097251817f3ebd383b0de6c51b77aa34f63fb2e/CheckType.java/buggy/aop/abc/src/abc/weaving/residues/CheckType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1124, 23965, 4872, 12, 1042, 620, 460, 16, 559, 618, 13, 288, 202, 430, 12, 723, 18, 14963, 12, 14370, 18, 90, 7675, 588, 55, 1632, 797, 2932, 6290, 18, 4936, 18, 921, 2038...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1124, 23965, 4872, 12, 1042, 620, 460, 16, 559, 618, 13, 288, 202, 430, 12, 723, 18, 14963, 12, 14370, 18, 90, 7675, 588, 55, 1632, 797, 2932, 6290, 18, 4936, 18, 921, 2038...
if (kind > 126) kind = 126;
if (kind > 127) kind = 127;
static private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 82; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 5); else if (curChar == 34) jjCheckNAddStates(6, 8); else if (curChar == 39) jjAddStates(9, 10); else if (curChar == 46) jjCheckNAdd(1); if ((0x3fe000000000000L & l) != 0L) { if (kind > 118) kind = 118; jjCheckNAddStates(11, 18); } else if (curChar == 48) jjAddStates(19, 22); if (curChar == 48) { if (kind > 114) kind = 114; jjCheckNAddStates(23, 30); } break; case 0: if (curChar == 46) jjCheckNAdd(1); break; case 1: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddStates(31, 33); break; case 3: if ((0x280000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddTwoStates(4, 5); break; case 6: if (curChar == 39) jjAddStates(9, 10); break; case 7: if ((0xffffff7fffffdbffL & l) != 0L) jjCheckNAdd(8); break; case 8: if (curChar == 39 && kind > 128) kind = 128; break; case 10: if ((0x8000008400000000L & l) != 0L) jjCheckNAdd(8); break; case 11: if (curChar == 48) jjCheckNAddTwoStates(12, 8); break; case 12: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 8); break; case 13: if ((0x3fe000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 8); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 8); break; case 15: if (curChar == 48) jjAddStates(34, 35); break; case 17: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(17, 8); break; case 19: if (curChar == 34) jjCheckNAddStates(6, 8); break; case 20: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddStates(6, 8); break; case 22: if ((0x8000008400000000L & l) != 0L) jjCheckNAddStates(6, 8); break; case 23: if (curChar == 34 && kind > 129) kind = 129; break; case 24: if (curChar == 48) jjCheckNAddStates(36, 39); break; case 25: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(36, 39); break; case 26: if ((0x3fe000000000000L & l) != 0L) jjCheckNAddStates(40, 43); break; case 27: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(40, 43); break; case 28: if (curChar == 48) jjAddStates(44, 45); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(46, 49); break; case 33: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 131) kind = 131; jjstateSet[jjnewStateCnt++] = 33; break; case 34: if (curChar != 48) break; if (kind > 114) kind = 114; jjCheckNAddStates(23, 30); break; case 35: if ((0xff000000000000L & l) == 0L) break; if (kind > 114) kind = 114; jjCheckNAdd(35); break; case 36: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(36, 37); break; case 38: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(50, 52); break; case 45: if ((0x3fe000000000000L & l) == 0L) break; if (kind > 118) kind = 118; jjCheckNAddStates(11, 18); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 118) kind = 118; jjCheckNAdd(46); break; case 47: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(53, 55); break; case 56: if (curChar == 48) jjAddStates(19, 22); break; case 58: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 122) kind = 122; jjstateSet[jjnewStateCnt++] = 58; break; case 60: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 123) kind = 123; jjAddStates(56, 57); break; case 63: if ((0x3ff000000000000L & l) != 0L) jjAddStates(58, 59); break; case 66: if ((0x3ff000000000000L & l) != 0L) jjAddStates(60, 62); break; case 71: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 5); break; case 72: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar != 46) break; if (kind > 126) kind = 126; jjCheckNAddStates(63, 65); break; case 74: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddStates(63, 65); break; case 75: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(75, 0); break; case 76: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(76, 77); break; case 78: if ((0x280000000000L & l) != 0L) jjCheckNAdd(79); break; case 79: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 127) kind = 127; jjCheckNAddTwoStates(79, 80); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 32: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 131) kind = 131; jjCheckNAdd(33); } if (curChar == 76) jjAddStates(66, 67); break; case 2: if ((0x2000000020L & l) != 0L) jjAddStates(68, 69); break; case 5: if ((0x104000001040L & l) != 0L && kind > 126) kind = 126; break; case 7: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAdd(8); break; case 9: if (curChar == 92) jjAddStates(70, 73); break; case 10: if ((0x54404610000000L & l) != 0L) jjCheckNAdd(8); break; case 16: if (curChar == 120) jjCheckNAdd(17); break; case 17: if ((0x7e0000007eL & l) != 0L) jjCheckNAddTwoStates(17, 8); break; case 18: if (curChar == 88) jjCheckNAdd(17); break; case 20: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(6, 8); break; case 21: if (curChar == 92) jjAddStates(74, 77); break; case 22: if ((0x54404610000000L & l) != 0L) jjCheckNAddStates(6, 8); break; case 29: if (curChar == 120) jjCheckNAdd(30); break; case 30: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(46, 49); break; case 31: if (curChar == 88) jjCheckNAdd(30); break; case 33: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 131) kind = 131; jjCheckNAdd(33); break; case 37: if ((0x100000001000L & l) != 0L && kind > 115) kind = 115; break; case 39: if ((0x20000000200000L & l) != 0L && kind > 116) kind = 116; break; case 41: if ((0x100000001000L & l) != 0L && kind > 117) kind = 117; break; case 42: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 41; break; case 43: if ((0x20000000200000L & l) != 0L && kind > 117) kind = 117; break; case 44: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 43; break; case 48: if ((0x20100000201000L & l) != 0L && kind > 119) kind = 119; break; case 50: if ((0x20000000200000L & l) != 0L && kind > 120) kind = 120; break; case 52: if ((0x100000001000L & l) != 0L && kind > 121) kind = 121; break; case 53: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 52; break; case 54: if ((0x20000000200000L & l) != 0L && kind > 121) kind = 121; break; case 55: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 54; break; case 57: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(58); break; case 58: if ((0x7e0000007eL & l) == 0L) break; if (kind > 122) kind = 122; jjCheckNAdd(58); break; case 59: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(60); break; case 60: if ((0x7e0000007eL & l) == 0L) break; if (kind > 123) kind = 123; jjCheckNAddTwoStates(60, 61); break; case 61: if ((0x20100000201000L & l) != 0L && kind > 123) kind = 123; break; case 62: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(63); break; case 63: if ((0x7e0000007eL & l) != 0L) jjCheckNAddTwoStates(63, 64); break; case 64: if ((0x20000000200000L & l) != 0L && kind > 124) kind = 124; break; case 65: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(66); break; case 66: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(60, 62); break; case 67: if ((0x100000001000L & l) != 0L && kind > 125) kind = 125; break; case 68: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if ((0x20000000200000L & l) != 0L && kind > 125) kind = 125; break; case 70: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 69; break; case 77: if ((0x2000000020L & l) != 0L) jjAddStates(78, 79); break; case 80: if ((0x104000001040L & l) != 0L && kind > 127) kind = 127; break; case 81: if (curChar == 76) jjAddStates(66, 67); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L) jjstateSet[jjnewStateCnt++] = 8; break; case 20: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(6, 8); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 82 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/380243817238f20dded6aa323a249c33dbaceae3/CPPParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, ...
return new Hashtable();
return new Hashtable<Object, Object>();
private Hashtable initHashtable(final Hashtable ht) { if (ht == null) { return new Hashtable(); } ht.clear(); return ht; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c368f3491d784d78e460550ca94d2325ab7ef78d/StateEdit.java/buggy/modules/swing/src/main/java/common/javax/swing/undo/StateEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 18559, 1208, 5582, 14544, 12, 6385, 18559, 14049, 13, 288, 3639, 309, 261, 647, 422, 446, 13, 288, 5411, 327, 394, 18559, 32, 921, 16, 1033, 34, 5621, 3639, 289, 3639, 14049, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 18559, 1208, 5582, 14544, 12, 6385, 18559, 14049, 13, 288, 3639, 309, 261, 647, 422, 446, 13, 288, 5411, 327, 394, 18559, 32, 921, 16, 1033, 34, 5621, 3639, 289, 3639, 14049, 18, ...
{ return 32; }
{ return 32; }
public int getMaxUserNameLength() throws SQLException { return 32; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7288, 15296, 1782, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 3847, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7288, 15296, 1782, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 3847, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public MenuElement[] getPath() {
public MenuElement[] getPath() {
public MenuElement[] getPath() { return path; } // getPath()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/MenuKeyEvent.java/clean/core/src/classpath/javax/javax/swing/event/MenuKeyEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9809, 1046, 8526, 4339, 1435, 288, 202, 202, 2463, 589, 31, 202, 97, 368, 4339, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9809, 1046, 8526, 4339, 1435, 288, 202, 202, 2463, 589, 31, 202, 97, 368, 4339, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if (getLength( content) <= 0) {
if (getLength( content) < 0) {
protected void checkValueSpace (String content) throws InvalidDatatypeValueException { if (getLength( content) <= 0) { throw new InvalidDatatypeValueException( "Value '"+content+"' is not encoded in Base64" ); } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/45e22dff1ad897916568881983b72f7b21d75377/Base64BinaryDatatypeValidator.java/buggy/src/org/apache/xerces/validators/datatype/Base64BinaryDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 866, 620, 3819, 261, 780, 913, 13, 1216, 1962, 20228, 9738, 288, 3639, 309, 261, 588, 1782, 12, 913, 13, 411, 374, 13, 288, 5411, 604, 394, 1962, 20228, 9738, 12, 315, 620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 866, 620, 3819, 261, 780, 913, 13, 1216, 1962, 20228, 9738, 288, 3639, 309, 261, 588, 1782, 12, 913, 13, 411, 374, 13, 288, 5411, 604, 394, 1962, 20228, 9738, 12, 315, 620, ...
throw new ContextException("Foreach: Cannot evaluate loop start");
throw new ContextException("#foreach: Cannot evaluate loop start");
public void write(FastWriter out, Context context) throws ContextException, IOException { Object l, limit, from; long loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (limit instanceof Macro) limit = ((Macro) limit).evaluate(context); if (Expression.isNumber(limit)) loopLimit = Expression.numberValue(limit); else throw new ContextException("Foreach: Cannot evaluate limit"); } if (index != null && indexFromExpr != null) { from = indexFromExpr; while (from instanceof Macro) from = ((Macro) from).evaluate(context); if (Expression.isNumber(from)) loopStart = Expression.numberValue(from); else throw new ContextException("Foreach: Cannot evaluate loop start"); } try { if (l instanceof Object[]) { Object[] alist = (Object[]) l; for (int i = 0; i < alist.length; i++) { target.setValue(context, alist[i]); if (index != null) index.setValue(context, new Long(loopIndex + loopStart)); body.write(out, context); ++loopIndex; if (loopLimit > 0 && loopIndex >= loopLimit) break; } } else { Iterator iter; try { iter = PropertyOperator.getIterator(l); } catch (Exception e) { throw new ContextException("The object used as the list of values in a foreach statement must have some way of returning a list type, or be a list type itself. See the documentation for PropertyOperator.getIterator() for more details. No such property was found on the supplied object: " + l + ": ", e); } while(iter.hasNext()) { target.setValue(context, iter.next()); if (index != null) index.setValue(context, new Long(loopIndex + loopStart)); body.write(out, context); ++loopIndex; if (loopLimit > 0 && loopIndex >= loopLimit) break; } } } catch (ContextException e) { String errorText = "Foreach: Unable to set list index"; context.getBroker().getLog("engine").error(errorText); writeWarning(errorText, out); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b361f35f3cd9fe5023b969ea9dd1ebdd30219a1/ForeachDirective.java/buggy/webmacro/src/org/webmacro/directive/ForeachDirective.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 12305, 2289, 596, 16, 1772, 819, 13, 377, 1216, 1772, 503, 16, 1860, 288, 565, 1033, 328, 16, 1800, 16, 628, 31, 565, 1525, 2798, 3039, 29711, 21, 16, 2798, 1685, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 12305, 2289, 596, 16, 1772, 819, 13, 377, 1216, 1772, 503, 16, 1860, 288, 565, 1033, 328, 16, 1800, 16, 628, 31, 565, 1525, 2798, 3039, 29711, 21, 16, 2798, 1685, ...
for (int x = 0; x < frames.length; x++){ MyInternalFrame mif = (MyInternalFrame)frames[x]; System.out.println(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " title " + mif.getTitle()); if (mif.getInternalId() > seq) { index = x;
for (int x = 0; x < myFrameList.size(); x++) { MyInternalFrame mif = (MyInternalFrame)myFrameList.get(x); if (mix.equals(mif)) { index = x + 1;
private void nextSession() { JInternalFrame[] frames = (JInternalFrame[])desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); MyInternalFrame mix = (MyInternalFrame)frames[index]; int seq = mix.getInternalId(); index = 0; for (int x = 0; x < frames.length; x++){ MyInternalFrame mif = (MyInternalFrame)frames[x]; System.out.println(" current index " + x + " count " + frames.length + " has focus " + mif.isActive() + " title " + mif.getTitle()); if (mif.getInternalId() > seq) { index = x; break; } } System.out.println(" current index " + index + " count " + desktop.getComponentCount()); if (index < desktop.getComponentCount() - 1) { try { frames[index].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } else { try { frames[0].setSelected(true); } catch (java.beans.PropertyVetoException e) { System.out.println(e.getMessage()); } } }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/fb26e5bd5e71c6a3bcd46b6ede17810b62d52813/Gui5250MDIFrame.java/clean/src/org/tn5250j/Gui5250MDIFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1024, 2157, 1435, 288, 1377, 804, 3061, 3219, 8526, 7793, 273, 261, 46, 3061, 3219, 63, 5717, 31949, 18, 588, 1595, 15162, 5621, 1377, 804, 3061, 3219, 312, 427, 273, 21304, 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, 565, 3238, 918, 1024, 2157, 1435, 288, 1377, 804, 3061, 3219, 8526, 7793, 273, 261, 46, 3061, 3219, 63, 5717, 31949, 18, 588, 1595, 15162, 5621, 1377, 804, 3061, 3219, 312, 427, 273, 21304, 18...
if (span < 0 || breakWeight >= View.ForcedBreakWeight)
int breakWeight = view.getBreakWeight(axis, pos, span); if (breakWeight >= ForcedBreakWeight)
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span == 0. We need to layout the row as if it had // a span of Integer.MAX_VALUE. if (span == 0) span = Integer.MAX_VALUE; Row: while (span > 0) { if (logicalView.getViewIndex(offset, Position.Bias.Forward) == - 1) break; View view = createView(fv, offset, span, rowIndex); if (view == null) break; int viewSpan = (int) view.getPreferredSpan(axis); int breakWeight = view.getBreakWeight(axis, x, span); row.append(view); offset += (view.getEndOffset() - view.getStartOffset()); x += viewSpan; span -= viewSpan; // Break if the line if the view does not fit in this row or the // line just must be broken. if (span < 0 || breakWeight >= View.ForcedBreakWeight) { int flowStart = fv.getFlowStart(axis); int flowSpan = fv.getFlowSpan(axis); adjustRow(fv, rowIndex, flowSpan, flowStart); int rowViewCount = row.getViewCount(); if (rowViewCount > 0) offset = row.getView(rowViewCount - 1).getEndOffset(); else offset = - 1; break Row; } } return offset != pos ? offset : - 1; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ba862f89183b5347853381927a04e1e399fae5db/FlowView.java/clean/core/src/classpath/javax/javax/swing/text/FlowView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 3511, 1999, 12, 5249, 1767, 10097, 16, 509, 15361, 16, 509, 949, 13, 565, 288, 1377, 4441, 1027, 273, 10097, 18, 588, 1767, 12, 492, 1016, 1769, 1377, 509, 2654, 273, 10097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 3511, 1999, 12, 5249, 1767, 10097, 16, 509, 15361, 16, 509, 949, 13, 565, 288, 1377, 4441, 1027, 273, 10097, 18, 588, 1767, 12, 492, 1016, 1769, 1377, 509, 2654, 273, 10097, ...
public String current_member_name() throws TypeMismatch, InvalidValue
public String current_member_name() throws TypeMismatch, InvalidValue
public String current_member_name() throws TypeMismatch, InvalidValue { if (isNull) throw new TypeMismatch(ISNULL); else return super.current_member_name(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/031055047d52e1cffbe5de5ce0c7da51215e931f/gnuDynValue.java/buggy/core/src/classpath/gnu/gnu/CORBA/DynAn/gnuDynValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 783, 67, 5990, 67, 529, 1435, 11794, 1216, 1412, 16901, 16, 1962, 620, 225, 288, 565, 309, 261, 291, 2041, 13, 1377, 604, 394, 1412, 16901, 12, 5127, 8560, 1769, 565, 469, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 783, 67, 5990, 67, 529, 1435, 11794, 1216, 1412, 16901, 16, 1962, 620, 225, 288, 565, 309, 261, 291, 2041, 13, 1377, 604, 394, 1412, 16901, 12, 5127, 8560, 1769, 565, 469, 13...
this.menuBar.addCommand(command);
if ( !this.menuBar.commandsList.contains( command ) ) { this.menuBar.addCommand(command); this.itemCommands.add( command ); }
protected void setItemCommands( Item item ) { this.focusedItem = item; if (item.commands != null) { Command[] commands = (Command[]) item.commands.toArray( new Command[item.commands.size()] ); for (int i = 0; i < commands.length; i++) { Command command = commands[i]; //System.out.println("scren: add ItemCommand " + command.getLabel() ); //#ifdef tmp.useExternalMenuBar this.menuBar.addCommand(command); //#else addCommand(command); //#endif } } //#ifdef tmp.useExternalMenuBar if (isShown()) { repaint(); } //#endif }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/c8a9c602a571c1bbe69328d470d4055535e86675/Screen.java/clean/enough-polish-j2me/source/src/de/enough/polish/ui/Screen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 18718, 9127, 12, 4342, 761, 262, 288, 202, 202, 2211, 18, 74, 14569, 1180, 273, 761, 31, 202, 202, 430, 261, 1726, 18, 7847, 480, 446, 13, 288, 1082, 202, 2189, 8526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18718, 9127, 12, 4342, 761, 262, 288, 202, 202, 2211, 18, 74, 14569, 1180, 273, 761, 31, 202, 202, 430, 261, 1726, 18, 7847, 480, 446, 13, 288, 1082, 202, 2189, 8526, ...
merge(database, clusters, k_c, dim_c); } assign(database, clusters); if (isVerbose()) { System.out.println("\nNumber of clusters: " + k_c + ". ");
public void run(Database<DoubleVector> database) throws IllegalStateException { long start = System.currentTimeMillis(); try { Progress progress = new Progress(database.size()); if (database.dimensionality() < dim) throw new IllegalStateException("Dimensionality of data < parameter l! " + "(" + database.dimensionality() + " < " + dim + ")"); // current number of seeds // todo int k_c = Math.min(database.size(), 15 * k); // current dimensionality associated with each seed int dim_c = database.dimensionality(); // pick k0 > k points from the db List<Cluster> clusters = initialSeeds(database, k_c); double beta = Math.exp(-Math.log((double) dim_c / (double) dim) * Math.log(1 / alpha) / Math.log((double) k_c / (double) k)); while (k_c > k) { // find partitioning induced by the seeds of the clusters assign(database, clusters); // determine current subspace associated eith each cluster for (Cluster cluster : clusters) { cluster.basis = findBasis(database, cluster, dim_c); } // reduce number of seeds and dimensionality associated with each seed k_c = (int) Math.max(k, k_c * alpha); dim_c = (int) Math.max(dim, dim_c * beta);// clusters = merge(clusters, k_c, dim_c); } assign(database, clusters);// print(clusters); } catch (Exception e) { throw new IllegalStateException(e); } long end = System.currentTimeMillis(); if (isTime()) { long elapsedTime = end - start; System.out.println(this.getClass().getName() + " runtime: " + elapsedTime + " milliseconds."); } }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/03ebe59f9c20167deaf818a03d91cee2e52e8afd/ORCLUS.java/clean/src/de/lmu/ifi/dbs/algorithm/ORCLUS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2691, 12, 6231, 16, 9566, 16, 417, 67, 71, 16, 2464, 67, 71, 1769, 289, 2683, 12, 6231, 16, 9566, 1769, 225, 309, 261, 291, 14489, 10756, 288, 2332, 18, 659, 18, 8222, 31458, 82, 1854, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2691, 12, 6231, 16, 9566, 16, 417, 67, 71, 16, 2464, 67, 71, 1769, 289, 2683, 12, 6231, 16, 9566, 1769, 225, 309, 261, 291, 14489, 10756, 288, 2332, 18, 659, 18, 8222, 31458, 82, 1854, 434...
if (jj_3R_272()) return true;
if (jj_3R_260()) return true;
final private boolean jj_3R_253() { if (jj_3R_272()) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/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, 30304, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 22, 4848, 10756, 327, 638, 31, 565, 327, 629, 31, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 30304, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 22, 4848, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -10...
p.add(addButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX));
private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.setOpaque(false); //make panel transparent return p; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/DatasetEditorBar.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetEditorBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 24048, 1361, 3616, 5537, 1435, 202, 95, 202, 202, 46, 5537, 293, 273, 394, 24048, 5621, 202, 202, 84, 18, 542, 3744, 12, 2704, 8549, 3744, 12, 84, 16, 8549, 3744, 18, 60, 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, 24048, 1361, 3616, 5537, 1435, 202, 95, 202, 202, 46, 5537, 293, 273, 394, 24048, 5621, 202, 202, 84, 18, 542, 3744, 12, 2704, 8549, 3744, 12, 84, 16, 8549, 3744, 18, 60, 6...
_workarea.add((Component)entry.getValue(), position);
_workarea.add((Component) entry.getValue(), position);
protected Component createPanels(boolean doSplash) { if (doSplash) { _splash.getStatusBar().showStatus("Making Project Browser: Navigator Pane"); _splash.getStatusBar().incProgress(5); } _navPane = new NavigatorPane(doSplash); /* Work in progress here to allow multiple details panes with ** different contents - Bob Tarling */ _eastPane = makeDetailsPane(BorderSplitPane.EAST, Vertical.getInstance()); _southPane = makeDetailsPane(BorderSplitPane.SOUTH, Horizontal.getInstance()); _southEastPane = makeDetailsPane(BorderSplitPane.SOUTHEAST, Horizontal.getInstance()); _northWestPane = makeDetailsPane(BorderSplitPane.NORTHWEST, Horizontal.getInstance()); _northPane = makeDetailsPane(BorderSplitPane.NORTH, Horizontal.getInstance()); _northEastPane = makeDetailsPane(BorderSplitPane.NORTHEAST, Horizontal.getInstance()); if (_southPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.SOUTH, _southPane); } if (_southEastPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.SOUTHEAST, _southEastPane); } if (_southWestPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.SOUTHWEST, _southWestPane); } if (_eastPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.EAST, _eastPane); } if (_westPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.WEST, _westPane); } if (_northWestPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.NORTHWEST, _northWestPane); } if (_northPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.NORTH, _northPane); } if (_northEastPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.NORTHEAST, _northEastPane); } if (_westPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.WEST, _westPane); } if (_southWestPane != null) { detailsPanesByCompassPoint.put(BorderSplitPane.SOUTHWEST, _southWestPane); } // The workarea is all the visible space except the menu, toolbar and status bar. // Workarea is layed out as a BorderSplitPane where the various components that make // up the argo application can be positioned. _workarea = new BorderSplitPane(); // create the todopane if (doSplash) { _splash.getStatusBar().showStatus("Making Project Browser: To Do Pane"); _splash.getStatusBar().incProgress(5); } _todoPane = new ToDoPane(doSplash); restorePanelSizes(); // There are various details panes all of which could hold // different tabs pages according to users settings. // Place each pane in the required border area. Iterator it = detailsPanesByCompassPoint.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); String position = (String)entry.getKey(); if (entry.getValue() instanceof DetailsPane) { DetailsPane detailsPane = (DetailsPane)entry.getValue(); TargetManager.getInstance().addTargetListener(detailsPane); } _workarea.add((Component)entry.getValue(), position); } _workarea.add(_navPane, BorderSplitPane.WEST); TabToDo todo = (TabToDo)getTab(TabToDo.class); //todo.setTree(_todoPane); _workarea.add(_todoPane, BorderSplitPane.SOUTHWEST); _workarea.add(_editorPane); // Toolbar boundry is the area between the menu and the status bar. It contains // the workarea at centre and the toolbar position north, south, east or west. JPanel toolbarBoundry = new JPanel(); toolbarBoundry.setLayout(new DockLayout()); // TODO - should save and restore the last positions of the toolbars toolbarBoundry.add(_menuBar.getFileToolbar(), BorderLayout.NORTH); toolbarBoundry.add(_menuBar.getEditToolbar(), BorderLayout.NORTH); toolbarBoundry.add(_menuBar.getViewToolbar(), BorderLayout.NORTH); toolbarBoundry.add(_menuBar.getCreateDiagramToolbar(), BorderLayout.NORTH); toolbarBoundry.add(_workarea, BorderLayout.CENTER); return toolbarBoundry; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ProjectBrowser.java/buggy/src_new/org/argouml/ui/ProjectBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5435, 752, 5537, 87, 12, 6494, 741, 16881, 961, 13, 288, 3639, 309, 261, 2896, 16881, 961, 13, 288, 5411, 389, 13106, 961, 18, 588, 1482, 5190, 7675, 4500, 1482, 2932, 49, 6159, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5435, 752, 5537, 87, 12, 6494, 741, 16881, 961, 13, 288, 3639, 309, 261, 2896, 16881, 961, 13, 288, 5411, 389, 13106, 961, 18, 588, 1482, 5190, 7675, 4500, 1482, 2932, 49, 6159, 5...