rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if (!element.toString().startsWith("[")) { | try { | private static void addDisk(Object element, DefaultMutableTreeNode root, DataFactory df, String identifier) { IJ.showStatus("Retrieving " + identifier + " attributes."); if (element == null) return; OMEXMLNode xml = null; if (!element.toString().startsWith("[")) { xml = (OMEXMLNode) element; } String[] tempAttrs = null; String[] tempValues = null; try { tempAttrs = xml.getAttributeNames(); tempValues = xml.getAttributeValues(); } catch (NullPointerException n) { } // NodeList is a list of child DOM elements NodeList tempChilds = null; Object[] childs = null; String[] names = null; try { tempChilds = xml.getDOMElement().getChildNodes(); childs = new Object[tempChilds.getLength()]; } catch (NullPointerException n) { } try { for (int i=0; i<tempChilds.getLength(); i++) { String tmp = tempChilds.item(i).toString(); String id = tmp.substring(1, tmp.indexOf(" ")); String tmpId = tmp; if (tmp.indexOf(">") >= 0) tmpId = tmp.substring(1, tmp.indexOf(">")); if (tmpId.length() < id.length()) id = tmpId; if (!id.endsWith("Node")) { id = id + "Node"; } if (!id.startsWith("Attribute") && !id.startsWith("CustomAttributes") && !id.startsWith("Dataset") && !id.startsWith("Feature") && !id.startsWith("Image") && !id.equals("OMENode") && !id.startsWith("Project")) { if (id.indexOf(":") != -1) { id = id.substring(0, id.indexOf(":")); } id = "org.openmicroscopy.xml.st." + id + "Node"; } else { if (id.indexOf(":") != -1) { id = id.substring(0, id.indexOf(":")) + "Node"; } id = "org.openmicroscopy.xml." + id; } // construct a new node using this class Class toConstruct = Class.forName(id.trim()); Constructor construct = toConstruct.getDeclaredConstructor(new Class[] {Element.class}); childs[i] = construct.newInstance(new Object[] {(Element) tempChilds.item(i)}); } names = new String[childs.length]; for (int i=0; i<childs.length; i++) { String tmp = childs[i].toString(); names[i] = tmp.substring(tmp.lastIndexOf(".")+1, tmp.lastIndexOf("@")); } } catch (Throwable t) { } if (df != null && tempAttrs != null) { Criteria criteria = makeAttributeFields(tempAttrs); criteria.addWantedField("id"); criteria.addFilter("id", (new Integer( ((ImageGroup) element).getID())).toString()); element = df.retrieve(identifier, criteria); } DefaultMutableTreeNode node = new DefaultMutableTreeNode(new XMLObject( identifier, XMLObject.ELEMENT)); root.add(node); if (tempAttrs != null && tempValues != null) { for (int i=0; i<tempValues.length; i++) { node.add(new DefaultMutableTreeNode(new XMLObject(tempAttrs[i], tempValues[i], XMLObject.ATTRIBUTE))); } } if (tempChilds != null) { for (int i=0; i<childs.length; i++) { String newName = (names == null) ? null : names[i]; addDisk(childs[i], node, df, newName); } } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/a9f08f4144d9b190b40353d537c4cdbd539859c8/MetaPanel.java/clean/loci/plugins/ome/MetaPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
527,
6247,
12,
921,
930,
16,
2989,
19536,
12513,
1365,
16,
565,
1910,
1733,
3013,
16,
514,
2756,
13,
288,
565,
467,
46,
18,
4500,
1482,
2932,
3848,
6282,
315,
397,
2756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
527,
6247,
12,
921,
930,
16,
2989,
19536,
12513,
1365,
16,
565,
1910,
1733,
3013,
16,
514,
2756,
13,
288,
565,
467,
46,
18,
4500,
1482,
2932,
3848,
6282,
315,
397,
2756,... |
return errorStream != null ? errorStream : System.err; } | return new PrintStream(((RubyIO) ruby.getGlobalVar("$stderr")).getOutStream()); } | public PrintStream getErrorStream() { return errorStream != null ? errorStream : System.err; } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21677,
7926,
1228,
1435,
288,
202,
202,
2463,
555,
1228,
480,
446,
692,
555,
1228,
294,
2332,
18,
370,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21677,
7926,
1228,
1435,
288,
202,
202,
2463,
555,
1228,
480,
446,
692,
555,
1228,
294,
2332,
18,
370,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (type_group_desc[i].equalsIgnoreCase(desc)) return i; | if (typeGroupCode[i].equalsIgnoreCase(desc)) return i; | public static final int getType(String desc) { for (int i=0;i<type_group_desc.length;i++) { if (type_group_desc[i].equalsIgnoreCase(desc)) return i; } for (int i=0;i<typeGroupLongDesc.length;i++) { if (typeGroupLongDesc[i].equalsIgnoreCase(desc)) return i; } return 0; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/69bdb7125ae9d2696e6120a9766a01ea6f4581ea/GroupByMeta.java/buggy/kettle/src/be/ibridge/kettle/trans/step/groupby/GroupByMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
509,
3130,
12,
780,
3044,
13,
202,
95,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
723,
67,
1655,
67,
5569,
18,
2469,
31,
77,
27245,
202,
202,
95,
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,
760,
727,
509,
3130,
12,
780,
3044,
13,
202,
95,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
723,
67,
1655,
67,
5569,
18,
2469,
31,
77,
27245,
202,
202,
95,
1082,
... |
control.setFocus(); | public void setFocus() { annotationList.setFocus(); control.setFocus(); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/2f311d8850e77319e2a33e47aad4903e7b75e5cd/DetailsView.java/buggy/eclipsePlugin/src/de/tobject/findbugs/view/DetailsView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
31480,
1435,
288,
202,
202,
11495,
682,
18,
542,
9233,
5621,
202,
202,
7098,
18,
542,
9233,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
31480,
1435,
288,
202,
202,
11495,
682,
18,
542,
9233,
5621,
202,
202,
7098,
18,
542,
9233,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
} if ( nodeUri == null ) { nodeUri = ""; | public boolean matches(Object node, ContextSupport contextSupport) { Navigator nav = contextSupport.getNavigator(); String nodeUri = null; String nodeName = null; if ( nav.isDocument( node ) ) { if ( matchesAnyName ) { return true; } return false; } else if ( nav.isNamespace( node ) ) { if ( matchesAnyName ) { return true; } return false; } else if ( nav.isElement( node ) ) { nodeUri = nav.getElementNamespaceUri( node ); nodeName = nav.getElementName( node ); } else if ( nav.isAttribute( node ) ) { nodeUri = nav.getAttributeNamespaceUri( node ); nodeName = nav.getAttributeName( node ); } else { return false; } if ( nodeUri == null ) { nodeUri = ""; } if ( matchesAnyNamespace ) { return matchesAnyName || getLocalName().equals( nodeName ); } else { String myPrefix = getPrefix(); String myUri = null; if ( myPrefix != null && myPrefix.length() > 0 ) { myUri = nav.translateNamespacePrefixToUri( myPrefix, node ); } if ( myUri == null ) { myUri = contextSupport.translateNamespacePrefixToUri( myPrefix ); } if ( matchesNamespaceURIs( myUri, nodeUri ) ) { boolean result = matchesAnyName || getLocalName().equals( nodeName ); return result; } } return false; /* return ( testUri.equals( nodeUri ) && getLocalName().equals( nodeName ) ); */ } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/c3baaa751c94b11a609b2927776d9a5b66c176cf/DefaultNameStep.java/clean/src/java/main/org/jaxen/expr/DefaultNameStep.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1885,
12,
921,
756,
16,
21821,
1772,
6289,
819,
6289,
13,
565,
288,
3639,
423,
13061,
8775,
225,
273,
819,
6289,
18,
588,
22817,
5621,
3639,
514,
756,
3006,
225,
273,
446,
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,
1250,
1885,
12,
921,
756,
16,
21821,
1772,
6289,
819,
6289,
13,
565,
288,
3639,
423,
13061,
8775,
225,
273,
819,
6289,
18,
588,
22817,
5621,
3639,
514,
756,
3006,
225,
273,
446,
3... | |
Driver.debug("supportsMinimumSQLGrammar TRUE"); | if (Driver.logDebug) Driver.debug("supportsMinimumSQLGrammar TRUE"); | public boolean supportsMinimumSQLGrammar() throws SQLException { Driver.debug("supportsMinimumSQLGrammar TRUE"); return true; } | 45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
13042,
3997,
18576,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
28064,
13042,
3997,
18576,
5383,
8863,
202,
202,
2463,
638,
31,
202,
97,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
6146,
13042,
3997,
18576,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
28064,
13042,
3997,
18576,
5383,
8863,
202,
202,
2463,
638,
31,
202,
97,
2,
-100,
-100... |
if (seek(file) == false) | if (seek(byteBuffer) == false) | public void read(RandomAccessFile file) throws TagException, IOException { int size; ID3v22Frame next; if (seek(file) == false) { throw new TagNotFoundException("ID3v2.20 tag not found"); } logger.info("Reading tag from file"); //Read the flags byte flags = file.readByte(); unsynchronization = (flags & MASK_V22_UNSYNCHRONIZATION) != 0; compression = (flags & MASK_V22_COMPRESSION) != 0; //@todo if unsynchronization bit set what do we do //@todo if compression bit set should we ignore // Read the size byte[] buffer = new byte[FIELD_TAG_SIZE_LENGTH]; file.read(buffer, 0, FIELD_TAG_SIZE_LENGTH); size = byteArrayToSize(buffer); long filePointer = file.getFilePointer(); readFrames(file, filePointer, size); } | 40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/ID3v22Tag.java/buggy/src/org/jaudiotagger/tag/id3/ID3v22Tag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
12,
8529,
26933,
585,
13,
3639,
1216,
4034,
503,
16,
1860,
565,
288,
3639,
509,
963,
31,
3639,
1599,
23,
90,
3787,
3219,
1024,
31,
3639,
309,
261,
16508,
12,
7229,
1892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
12,
8529,
26933,
585,
13,
3639,
1216,
4034,
503,
16,
1860,
565,
288,
3639,
509,
963,
31,
3639,
1599,
23,
90,
3787,
3219,
1024,
31,
3639,
309,
261,
16508,
12,
7229,
1892,... |
ok = true; | if (bf == null || !bf.isInternal()) { ok = true; } else { log.info("Attempt to upload file format marked as internal system use only"); } | private void processChooseFile(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { File temp = null; FileUploadRequest wrapper = null; SubmissionInfo subInfo = null; boolean ok = false; String buttonPressed = null; BitstreamFormat bf = null; Bitstream b = null; /* * To distinguish between an IOException caused by a problem with the * file upload and one caused by displaying a JSP, we do all the upload * handling in a try/catch block */ try { // Wrap multipart request to get the submission info wrapper = new FileUploadRequest(request); subInfo = getSubmissionInfo(context, wrapper); buttonPressed = UIUtil.getSubmitButton(wrapper, "submit_next"); if ((subInfo != null) && buttonPressed.equals("submit_next")) { // Create the bitstream Item item = subInfo.submission.getItem(); temp = wrapper.getFile("file"); if (temp != null && temp.length() > 0) { // Read the temp file into a bitstream InputStream is = new BufferedInputStream( new FileInputStream(temp)); // do we already have a bundle? Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length < 1) { // set bundle's name to ORIGINAL b = item.createSingleBitstream(is, "ORIGINAL"); } else { // we have a bundle already, just add bitstream b = bundles[0].createBitstream(is); } // Strip all but the last filename. It would be nice // to know which OS the file came from. String noPath = wrapper.getFilesystemName("file"); while (noPath.indexOf('/') > -1) { noPath = noPath.substring(noPath.indexOf('/') + 1); } while (noPath.indexOf('\\') > -1) { noPath = noPath.substring(noPath.indexOf('\\') + 1); } b.setName(noPath); b.setSource(wrapper.getFilesystemName("file")); b.setDescription(wrapper.getParameter("description")); // Identify the format bf = FormatIdentifier.guessFormat(context, b); b.setFormat(bf); // Update to DB b.update(); item.update(); ok = true; } } } catch (IOException ie) { // Problem with uploading log.warn(LogManager.getHeader(context, "upload_error", ""), ie); } if (subInfo == null) { // In any event, if we don't have the submission info, the request // was malformed log.warn(LogManager.getHeader(context, "integrity_error", UIUtil .getRequestLogInfo(request))); } else if (buttonPressed.equals("submit_cancel")) { doCancellation(request, response, subInfo, SubmitServlet.CHOOSE_FILE, SubmitServlet.UPLOAD_FILES); } else if (buttonPressed.equals("submit_prev")) { // Slightly tricky; if the user clicks on "previous," // and they haven't uploaded any files yet, the previous // screen is the edit metadata 2 page. If there are // upload files, we go back to the file list page, // without uploading the file they've specified. if (subInfo.submission.getItem().getBundles("ORIGINAL").length > 0) { // Have files, go to list showUploadFileList(request, response, subInfo, false, false); } else { // No files, go back to last edit metadata page Collection c = subInfo.submission.getCollection(); int lastPage = EDIT_METADATA_1 + inputsReader.getNumberInputPages( c.getHandle() ) - 1; doStep(context, request, response, subInfo, lastPage); } } else if (buttonPressed.equals("submit_next")) { // "Next" pressed - the actual upload was handled above. if (ok) { // Uploaded etc. OK if (bf != null) { // Format was identified showUploadFileList(request, response, subInfo, true, false); } else { // Format couldn't be identified showGetFileFormat(context, request, response, subInfo, b); } context.complete(); } else { // If we get here, there was a problem uploading, but we // still know which submission we're dealing with showProgressAwareJSP(request, response, subInfo, "/submit/upload-error.jsp"); } } else { doStepJump(context, wrapper, response, subInfo); } // Remove temp file if it's still around if (temp != null) { temp.delete(); } } | 25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/c0ade494ab0cc847eff4752b2792868e5744497c/SubmitServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
24529,
812,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
1387,
1906,
273,
446,
31,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
24529,
812,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
1387,
1906,
273,
446,
31,
363... |
line = line.replaceFirst("[bool]", "").trim(); | line = line.replaceFirst("\\[bool\\]", "").trim(); | private static Vector parseResponse(String response) { Vector parameters = new Vector(); BufferedReader reader = new BufferedReader(new StringReader(response)); while (true) { String line = null; try { line = reader.readLine(); } catch (IOException e) { } if (line == null) break; line = line.trim(); final int STRING = 0; final int BOOL = 1; int type = STRING; if (line.startsWith("[bool]")) { type = BOOL; line = line.replaceFirst("[bool]", "").trim(); } int pos = line.indexOf(' '); String key; String value; if (pos > 0) { key = line.substring(0, pos).trim(); value = line.substring(pos + 1).trim(); } else { key = line; value = ""; } if (type == BOOL) parameters.add(new BoolParameter(key, value)); else parameters.add(new StringParameter(key, value)); } return parameters; } | 51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/c81eb52620dbc6d5da6c13d8c0f5b328834f8bbe/ParameterDialog.java/clean/src/gui/ParameterDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5589,
28880,
12,
780,
766,
13,
565,
288,
3639,
5589,
1472,
273,
394,
5589,
5621,
3639,
10633,
2949,
273,
5411,
394,
10633,
12,
2704,
26227,
12,
2740,
10019,
3639,
1323,
261,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
28880,
12,
780,
766,
13,
565,
288,
3639,
5589,
1472,
273,
394,
5589,
5621,
3639,
10633,
2949,
273,
5411,
394,
10633,
12,
2704,
26227,
12,
2740,
10019,
3639,
1323,
261,
37... |
public ActionForward editEvaluationMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); Integer objectCode = getObjectCode(request); Integer evaluationMethodCode = getParameter(request, "evaluationMethodCode"); DynaActionForm evaluationForm = (DynaActionForm) form; InfoEvaluationMethod infoEvaluationMethod = new InfoEvaluationMethod(); infoEvaluationMethod.setIdInternal(evaluationMethodCode); infoEvaluationMethod.setEvaluationElements((String) evaluationForm.get("evaluationElements")); infoEvaluationMethod .setEvaluationElementsEn((String) evaluationForm.get("evaluationElementsEn")); Object args[] = { objectCode, evaluationMethodCode, infoEvaluationMethod }; UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); try { ServiceManagerServiceFactory.executeService(userView, "EditEvaluation", args); } catch (FenixServiceException e) { throw new FenixActionException(e); } return viewEvaluationMethod(mapping, form, request, response); // BEFORE // HttpSession session = request.getSession(false); // Integer objectCode = getObjectCode(request); // String curricularCourseCodeString = // request.getParameter("curricularCourseCode"); // Integer curricularCourseCode = new // Integer(curricularCourseCodeString); // // DynaActionForm evaluationForm = (DynaActionForm) form; // // InfoCurriculum infoCurriculumNew = new InfoCurriculum(); // infoCurriculumNew.setIdInternal(curricularCourseCode); // infoCurriculumNew.setEvaluationElements((String) // evaluationForm.get("evaluationElements")); // infoCurriculumNew.setEvaluationElementsEn((String) // evaluationForm.get("evaluationElementsEn")); // // Object args[] = { objectCode, curricularCourseCode, // infoCurriculumNew }; // // UserView userView = (UserView) // session.getAttribute(SessionConstants.U_VIEW); // GestorServicos serviceManager = GestorServicos.manager(); // try { // ServiceManagerServiceFactory.executeService(userView, // "EditEvaluation", args); // // } catch (FenixServiceException e) { // throw new FenixActionException(e); // } // return viewEvaluationMethod(mapping, form, request, response); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
13468,
1305,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
1586,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
13468,
1305,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
1586,
5... | ||
Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); | Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); | public List readProjectsForUser(CmsDbContext dbc, CmsUser user) throws CmsDataAccessException { List projects = new ArrayList(); ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; try { // create the statement conn = m_sqlManager.getConnection(dbc); stmt = m_sqlManager.getPreparedStatement(conn, "C_PROJECTS_READ_BYUSER"); stmt.setString(1, user.getId().toString()); res = stmt.executeQuery(); while (res.next()) { projects.add(new CmsProject(res, m_sqlManager)); } } catch (SQLException e) { throw new CmsDbSqlException(Messages.get().container( Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); } finally { m_sqlManager.closeAll(dbc, conn, stmt, res); } return (projects); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/546c122e43ad901e06bfec1c2164259c3ce08c8b/CmsProjectDriver.java/clean/src/org/opencms/db/generic/CmsProjectDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
15298,
19894,
12,
4747,
4331,
1042,
9881,
16,
25492,
729,
13,
1216,
2149,
751,
9773,
288,
3639,
987,
10137,
273,
394,
2407,
5621,
3639,
10842,
400,
273,
446,
31,
3639,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
15298,
19894,
12,
4747,
4331,
1042,
9881,
16,
25492,
729,
13,
1216,
2149,
751,
9773,
288,
3639,
987,
10137,
273,
394,
2407,
5621,
3639,
10842,
400,
273,
446,
31,
3639,
169... |
public org.quickfix.field.CPRegType getCPRegType() throws FieldNotFound { org.quickfix.field.CPRegType value = new org.quickfix.field.CPRegType(); | public quickfix.field.CPRegType getCPRegType() throws FieldNotFound { quickfix.field.CPRegType value = new quickfix.field.CPRegType(); | public org.quickfix.field.CPRegType getCPRegType() throws FieldNotFound { org.quickfix.field.CPRegType value = new org.quickfix.field.CPRegType(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/clean/src/java/src/quickfix/fix44/News.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
1927,
52,
1617,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
460,
273,
394,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
1927,
52,
1617,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4258,
1617,
559,
460,
273,
394,
235... |
System.err.println("annotation is\n"+contents); | XSAnnotationImpl traverseAnnotationDecl(Element annotationDecl, Object[] parentAttrs, boolean isGlobal, XSDocumentInfo schemaDoc) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(annotationDecl, isGlobal, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); String contents = null; for (Element child = DOMUtil.getFirstChildElement(annotationDecl); child != null; child = DOMUtil.getNextSiblingElement(child)) { String name = DOMUtil.getLocalName(child); // the only valid children of "annotation" are // "appinfo" and "documentation" if (!((name.equals(SchemaSymbols.ELT_APPINFO)) || (name.equals(SchemaSymbols.ELT_DOCUMENTATION)))) { reportSchemaError("src-annotation", new Object[]{name}, child); } else { // the annotation, as we currently know it, is a Text child Node textContent = child.getFirstChild(); if(textContent != null && textContent.getNodeType() == Node.TEXT_NODE) { contents = ((Text)textContent).getData(); } } // General Attribute Checking // There is no difference between global or local appinfo/documentation, // so we assume it's always global. attrValues = fAttrChecker.checkAttributes(child, true, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc); } // if contents was null, must have been some kind of error; // nothing to contribute to PSVI if (contents == null) return null; // find the grammar; fSchemaHandler must be known! SchemaGrammar grammar = fSchemaHandler.getGrammar(schemaDoc.fTargetNamespace); // fish out local attributes passed from parent Vector annotationLocalAttrs = (Vector)parentAttrs[XSAttributeChecker.ATTIDX_NONSCHEMA]; // optimize for case where there are no local attributes if(annotationLocalAttrs != null && !annotationLocalAttrs.isEmpty()) { StringBuffer localStrBuffer = new StringBuffer(64); localStrBuffer.append(" "); // Vector should contain rawname value pairs int i=0; while(i<annotationLocalAttrs.size()) { localStrBuffer.append((String)annotationLocalAttrs.elementAt(i++)) .append("=\""); String value = (String)annotationLocalAttrs.elementAt(i++); // search for pesky "s and >s within attr value: value = processAttValue(value); localStrBuffer.append(value) .append("\""); } localStrBuffer.append(" "); // and now splice it into place; immediately after the annotation token, for simplicity's sake StringBuffer contentBuffer = new StringBuffer(contents.length() + localStrBuffer.length()); int annotationTokenEnd = contents.indexOf(SchemaSymbols.ELT_ANNOTATION); // annotation must occur somewhere or we're in big trouble... if(annotationTokenEnd == -1) return null; annotationTokenEnd += SchemaSymbols.ELT_ANNOTATION.length(); contentBuffer.append(contents.substring(0,annotationTokenEnd)); contentBuffer.append(localStrBuffer.toString()); contentBuffer.append(contents.substring(annotationTokenEnd, contents.length())); System.err.println("annotation is\n"+contentBuffer); return new XSAnnotationImpl(contentBuffer.toString(), grammar); } else { System.err.println("annotation is\n"+contents); return new XSAnnotationImpl(contents, grammar); } } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/45df967b59b57aec594a52214c5b3597ce08606a/XSDAbstractTraverser.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
55,
3257,
2828,
10080,
3257,
3456,
12,
1046,
3204,
3456,
16,
1033,
8526,
982,
8262,
16,
27573,
1250,
353,
5160,
16,
1139,
55,
2519,
966,
1963,
1759,
13,
288,
3639,
368,
9544,
3601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
55,
3257,
2828,
10080,
3257,
3456,
12,
1046,
3204,
3456,
16,
1033,
8526,
982,
8262,
16,
27573,
1250,
353,
5160,
16,
1139,
55,
2519,
966,
1963,
1759,
13,
288,
3639,
368,
9544,
3601,
... | |
public LocaleManager(IPerson person, String acceptLanguage) { this(person); this.browserLocales = parseLocales(acceptLanguage); | public LocaleManager(IPerson person) { this.person = person; jvmLocale = Locale.getDefault(); if (localeAware) { portalLocales = loadPortalLocales(); try { userLocales = LocaleStoreFactory.getLocaleStoreImpl().getUserLocales(person); } catch (Exception e) { log.error("Error populating userLocals", e); } } | public LocaleManager(IPerson person, String acceptLanguage) { this(person); this.browserLocales = parseLocales(acceptLanguage); } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/08043273fa4afdbfed41d8831e4a2873036a8a54/LocaleManager.java/buggy/source/org/jasig/portal/i18n/LocaleManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6458,
1318,
12,
2579,
3565,
6175,
16,
514,
16623,
13,
288,
3639,
333,
12,
12479,
1769,
3639,
333,
18,
11213,
13310,
273,
1109,
13310,
12,
9436,
3779,
1769,
565,
289,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6458,
1318,
12,
2579,
3565,
6175,
16,
514,
16623,
13,
288,
3639,
333,
12,
12479,
1769,
3639,
333,
18,
11213,
13310,
273,
1109,
13310,
12,
9436,
3779,
1769,
565,
289,
2,
-100,
-100,
... |
if (Context.useJSObject && jsObjectClass != null && | else if (Context.useJSObject && jsObjectClass != null && | public static int getConversionWeight(Object fromObj, Class to) { int fromCode = NativeJavaObject.getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to == Boolean.TYPE) { result = CONVERSION_NONE; } else { result = 1 + NativeJavaObject.getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { result = 3; } else { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } if (Context.useJSObject && jsObjectClass != null && jsObjectClass.isAssignableFrom(to)) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive()) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + NativeJavaObject.getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof NativeJavaObject) { javaObj = ((NativeJavaObject)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (Context.useJSObject && jsObjectClass != null && jsObjectClass.isAssignableFrom(to)) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to.isPrimitive()) { result = 3 + NativeJavaObject.getSizeRank(to); } break; } return result; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/a66a71b8d7fdff3115a1305db27d683777b6080b/NativeJavaObject.java/clean/js/rhino/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
16717,
5852,
921,
18,
588,
6479,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
16717,
5852,
921,
18,
588,
6479,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273... |
{ progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); } | { progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); } | void showProgressNotifier(String imageName) { progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
5491,
14889,
12,
780,
29842,
13,
202,
95,
202,
202,
8298,
14889,
273,
394,
10980,
14889,
12,
2211,
16,
29842,
1769,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
8298,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2405,
5491,
14889,
12,
780,
29842,
13,
202,
95,
202,
202,
8298,
14889,
273,
394,
10980,
14889,
12,
2211,
16,
29842,
1769,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
8298,... |
assertTrue(sec.allowUpdate(obj)); | assertTrue(sec.allowUpdate(obj,obj.getDetails())); | public <T extends IObject> T updateObject(T obj) { assertTrue(sec.allowUpdate(obj)); return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/SecuritySystemTest.java/buggy/components/server/test/ome/server/utests/sec/SecuritySystemTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
411,
56,
3231,
467,
921,
34,
399,
1089,
921,
12,
56,
1081,
13,
288,
9506,
202,
11231,
5510,
12,
3321,
18,
5965,
1891,
12,
2603,
10019,
9506,
202,
2463,
446,
31,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
411,
56,
3231,
467,
921,
34,
399,
1089,
921,
12,
56,
1081,
13,
288,
9506,
202,
11231,
5510,
12,
3321,
18,
5965,
1891,
12,
2603,
10019,
9506,
202,
2463,
446,
31,
1082,
202,
... |
public void put (String name, Object value) { ObjectStreamField field = currentObjectStreamClass.getField (name); if (field == null) throw new IllegalArgumentException (); if (value != null && ! field.getType ().isAssignableFrom (value.getClass ())) throw new IllegalArgumentException (); objs[field.getOffset ()] = value; } | public void put(String name, float value) { ObjectStreamField field = getField(name); | public PutField putFields() throws IOException { if (currentPutField == null) { currentPutField = new PutField () { private byte[] prim_field_data = new byte[currentObjectStreamClass.primFieldSize]; private Object[] objs = new Object[currentObjectStreamClass.objectFieldCount]; public void put (String name, boolean value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'Z'); prim_field_data[field.getOffset ()] = (byte)(value ? 1 : 0); } public void put (String name, byte value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'B'); prim_field_data[field.getOffset ()] = value; } public void put (String name, char value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'C'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, double value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'D'); int off = field.getOffset (); long l_value = Double.doubleToLongBits (value); prim_field_data[off++] = (byte)(l_value >>> 52); prim_field_data[off++] = (byte)(l_value >>> 48); prim_field_data[off++] = (byte)(l_value >>> 40); prim_field_data[off++] = (byte)(l_value >>> 32); prim_field_data[off++] = (byte)(l_value >>> 24); prim_field_data[off++] = (byte)(l_value >>> 16); prim_field_data[off++] = (byte)(l_value >>> 8); prim_field_data[off] = (byte)l_value; } public void put (String name, float value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'F'); int off = field.getOffset (); int i_value = Float.floatToIntBits (value); prim_field_data[off++] = (byte)(i_value >>> 24); prim_field_data[off++] = (byte)(i_value >>> 16); prim_field_data[off++] = (byte)(i_value >>> 8); prim_field_data[off] = (byte)i_value; } public void put (String name, int value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'I'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 24); prim_field_data[off++] = (byte)(value >>> 16); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, long value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'J'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 52); prim_field_data[off++] = (byte)(value >>> 48); prim_field_data[off++] = (byte)(value >>> 40); prim_field_data[off++] = (byte)(value >>> 32); prim_field_data[off++] = (byte)(value >>> 24); prim_field_data[off++] = (byte)(value >>> 16); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, short value) { ObjectStreamField field = currentObjectStreamClass.getField (name); checkType (field, 'S'); int off = field.getOffset (); prim_field_data[off++] = (byte)(value >>> 8); prim_field_data[off] = (byte)value; } public void put (String name, Object value) { ObjectStreamField field = currentObjectStreamClass.getField (name); if (field == null) throw new IllegalArgumentException (); if (value != null && ! field.getType ().isAssignableFrom (value.getClass ())) throw new IllegalArgumentException (); objs[field.getOffset ()] = value; } public void write (ObjectOutput out) throws IOException { // Apparently Block data is not used with PutField as per // empirical evidence against JDK 1.2. Also see Mauve test // java.io.ObjectInputOutput.Test.GetPutField. boolean oldmode = setBlockDataMode (false); out.write (prim_field_data); for (int i = 0; i < objs.length; ++ i) out.writeObject (objs[i]); setBlockDataMode (oldmode); } private void checkType (ObjectStreamField field, char type) throws IllegalArgumentException { if (TypeSignature.getEncodingOfClass(field.getType ()).charAt(0) != type) throw new IllegalArgumentException (); } }; } return currentPutField; } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/aa9a1e51dfe3c217d861f0795af77c53a43ecefb/ObjectOutputStream.java/clean/libjava/java/io/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4399,
974,
1378,
2314,
1435,
1216,
1860,
225,
288,
565,
309,
261,
2972,
6426,
974,
422,
446,
13,
1377,
288,
202,
2972,
6426,
974,
273,
394,
4399,
974,
1832,
202,
225,
288,
202,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4399,
974,
1378,
2314,
1435,
1216,
1860,
225,
288,
565,
309,
261,
2972,
6426,
974,
422,
446,
13,
1377,
288,
202,
2972,
6426,
974,
273,
394,
4399,
974,
1832,
202,
225,
288,
202,
56... |
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); | public quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { quickfix.field.LegSymbolSfx value = new quickfix.field.LegSymbolSfx(); | public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... |
descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | private void createDescriptionArea(Composite parent) { Label label = new Label(parent, SWT.NONE); label.setText(MarkerMessages.propertiesDialog_description_text); descriptionText = new Text(parent, (SWT.SINGLE | SWT.BORDER)); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.widthHint = convertHorizontalDLUsToPixels(400); descriptionText.setLayoutData(gridData); descriptionText.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(); } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5dfab9acd886f09a1ca9341cff1d740dc40e3c35/DialogMarkerProperties.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
3291,
5484,
12,
9400,
982,
13,
288,
3639,
5287,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3291,
5484,
12,
9400,
982,
13,
288,
3639,
5287,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,... |
}.execute(); | }.execute().throwException(); | public void testCompletion(final String[] filesBefore, final String fileAfter) { new WriteCommandAction(myProjectFixture.getProject()) { protected void run(final Result result) throws Throwable { configureByFiles(filesBefore); new CodeCompletionHandler().invoke(getProject(), myEditor, myFile); checkResultByFile(fileAfter, false); } }.execute(); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/917627441266ff23997bbf899055ce83e23a6f09/CodeInsightTestFixtureImpl.java/buggy/source/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
11238,
12,
6385,
514,
8526,
1390,
4649,
16,
727,
514,
585,
4436,
13,
288,
565,
394,
2598,
2189,
1803,
12,
4811,
4109,
26392,
18,
588,
4109,
10756,
288,
1377,
4750,
918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
11238,
12,
6385,
514,
8526,
1390,
4649,
16,
727,
514,
585,
4436,
13,
288,
565,
394,
2598,
2189,
1803,
12,
4811,
4109,
26392,
18,
588,
4109,
10756,
288,
1377,
4750,
918,
... |
parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters,this); | parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters,this,isRawType()); | public ResolvedMember[] getDeclaredMethods() { if (parameterizedMethods != null) return parameterizedMethods; if (isParameterizedType() || isRawType()) { ResolvedMember[] delegateMethods = delegate.getDeclaredMethods(); UnresolvedType[] parameters = getTypesForMemberParameterization(); parameterizedMethods = new ResolvedMember[delegateMethods.length]; for (int i = 0; i < delegateMethods.length; i++) { parameterizedMethods[i] = delegateMethods[i].parameterizedWith(parameters,this); } return parameterizedMethods; } else { return delegate.getDeclaredMethods(); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/65e1b7ce15ceae73abf8cb928e2091d0087334a0/ReferenceType.java/buggy/weaver/src/org/aspectj/weaver/ReferenceType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22776,
4419,
8526,
11959,
4712,
1435,
288,
202,
202,
430,
261,
6775,
1235,
4712,
480,
446,
13,
327,
17629,
4712,
31,
202,
202,
430,
261,
291,
1662,
13091,
1435,
747,
353,
4809,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22776,
4419,
8526,
11959,
4712,
1435,
288,
202,
202,
430,
261,
6775,
1235,
4712,
480,
446,
13,
327,
17629,
4712,
31,
202,
202,
430,
261,
291,
1662,
13091,
1435,
747,
353,
4809,
... |
reader = new DADMLReader(superdb); ((DADMLReader)reader).setQuery(type, index); Molecule m = (Molecule)reader.read((ChemObject)new Molecule()); | DADMLReader reader = new DADMLReader(superdb); reader.setQuery(type, index); Molecule m = (Molecule)reader.read(new Molecule()); | public DADMLTest(String superdb, String type, String index) { logger = new LoggingTool(this); LoggingTool.configureLog4j(); try { ChemObjectReader reader; logger.info("SuperDB: ", superdb); logger.info("index type: ", type); logger.info("index: ", index); reader = new DADMLReader(superdb); ((DADMLReader)reader).setQuery(type, index); Molecule m = (Molecule)reader.read((ChemObject)new Molecule()); MoleculeViewer2D mv = new MoleculeViewer2D(m); mv.display(); AtomicTable at = new AtomicTable(m); at.display(); } catch(Exception exc) { logger.error(exc.toString()); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/8c263499fdf227138858bf3ef02348ca2e3b8933/DADMLTest.java/clean/src/org/openscience/cdk/test/internet/DADMLTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
463,
1880,
1495,
4709,
12,
780,
2240,
1966,
16,
514,
618,
16,
514,
770,
13,
288,
1377,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
1377,
10253,
6364,
18,
14895,
1343,
24,
78,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
463,
1880,
1495,
4709,
12,
780,
2240,
1966,
16,
514,
618,
16,
514,
770,
13,
288,
1377,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
1377,
10253,
6364,
18,
14895,
1343,
24,
78,
562... |
if(transformer.isSourceTypeSupported(returnPayload.getClass())) { | if (transformer.isSourceTypeSupported(returnPayload.getClass())) { | protected UMOMessage applyResponseTransformer(UMOMessage returnMessage) throws TransformerException { UMOTransformer transformer = endpoint.getResponseTransformer(); if(transformer==null) transformer = component.getDescriptor().getResponseTransformer(); if(transformer==null) return returnMessage; if((returnMessage==null)) { if(transformer.isAcceptNull()) { returnMessage = new MuleMessage(new NullPayload(), RequestContext.getProperties()); } else { return null; } } Object returnPayload = returnMessage.getPayload(); if(transformer.isSourceTypeSupported(returnPayload.getClass())) { Object result = transformer.transform(returnPayload); if(result instanceof UMOMessage) { returnMessage = (UMOMessage)result; } else { returnMessage = new MuleMessage(result, returnMessage.getProperties()); } } else { if(logger.isDebugEnabled()) { logger.debug("Response transformer: " + transformer + " doesn't support the result payload: " + returnMessage.getPayload().getClass()); } } return returnMessage; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/d3ae8e5c87ba5be6a093aa5d0494fe8254df9e52/AbstractMessageReceiver.java/buggy/src/java/org/mule/providers/AbstractMessageReceiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
587,
5980,
1079,
2230,
1064,
8319,
12,
2799,
51,
1079,
327,
1079,
13,
1216,
21684,
288,
3639,
587,
5980,
8319,
8360,
273,
2494,
18,
588,
1064,
8319,
5621,
3639,
309,
12,
21523,
631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
587,
5980,
1079,
2230,
1064,
8319,
12,
2799,
51,
1079,
327,
1079,
13,
1216,
21684,
288,
3639,
587,
5980,
8319,
8360,
273,
2494,
18,
588,
1064,
8319,
5621,
3639,
309,
12,
21523,
631,... |
public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) { return isSetField(field); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityListRequest.java/clean/src/java/src/quickfix/fix44/SecurityListRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public FactoryConfigurationError(Exception e) { super(); this.exception = e; } | public FactoryConfigurationError() { super(); this.exception = null; } | public FactoryConfigurationError(Exception e) { super(); this.exception = e; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/71b81e173cf0d28231f3c055e29844754af0b7bd/FactoryConfigurationError.java/buggy/src/javax/xml/parsers/FactoryConfigurationError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7822,
1750,
668,
12,
503,
425,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
4064,
273,
425,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7822,
1750,
668,
12,
503,
425,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
4064,
273,
425,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); | public quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { quickfix.field.LegStrikeCurrency value = new quickfix.field.LegStrikeCurrency(); | public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositionsAck.java/clean/src/java/src/quickfix/fix44/RequestForPositionsAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623... |
} | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CommentNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/CommentNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/CommentNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
9821,
907,
5621,
565,
309,
261,
5906,
480,
446,
13,
225,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
9821,
907,
5621,
565,
309,
261,
5906,
480,
446,
13,
225,
288,
3639,
325,
18,
5906,
273,
2325,
18,
14056,
... | |
public ProgressData( int per, String descrip, boolean finished, String forwardingURL ) { this(per,descrip,finished); this.forwardingURL = forwardingURL; | public ProgressData( int per, String descrip, boolean finished ) { percent = per; description = descrip; done = finished; | public ProgressData( int per, String descrip, boolean finished, String forwardingURL ) { this(per,descrip,finished); this.forwardingURL = forwardingURL; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/1f2b82679ab6ad1f8f98a5ad040856f512c7231e/ProgressData.java/buggy/gemma-util/src/main/java/ubic/gemma/util/progress/ProgressData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10980,
751,
12,
509,
1534,
16,
514,
302,
1052,
84,
16,
1250,
6708,
16,
514,
20635,
1785,
262,
288,
3639,
333,
12,
457,
16,
72,
1052,
84,
16,
13527,
1769,
3639,
333,
18,
11565,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10980,
751,
12,
509,
1534,
16,
514,
302,
1052,
84,
16,
1250,
6708,
16,
514,
20635,
1785,
262,
288,
3639,
333,
12,
457,
16,
72,
1052,
84,
16,
13527,
1769,
3639,
333,
18,
11565,
3... |
public static final String getPropertyName( String cssPropertyName ) { if ( cssPropertyName == null ) return null; String name = cssPropertyName.toLowerCase( ); if ( CssPropertyConstants.ATTR_FONT_FAMILY.equals( name ) ) return IStyleModel.FONT_FAMILY_PROP; if ( CssPropertyConstants.ATTR_FONT_SIZE.equals( name ) ) return IStyleModel.FONT_SIZE_PROP; if ( CssPropertyConstants.ATTR_FONT_STYLE.equals( name ) ) return IStyleModel.FONT_STYLE_PROP; if ( CssPropertyConstants.ATTR_FONT_VARIANT.equals( name ) ) return IStyleModel.FONT_VARIANT_PROP; if ( CssPropertyConstants.ATTR_FONT_WEIGTH.equals( name ) ) return IStyleModel.FONT_WEIGHT_PROP; if ( CssPropertyConstants.ATTR_TEXT_ALIGN.equals( name ) ) return IStyleModel.TEXT_ALIGN_PROP; if ( CssPropertyConstants.ATTR_TEXT_INDENT.equals( name ) ) return IStyleModel.TEXT_INDENT_PROP; if ( CssPropertyConstants.ATTR_LETTER_SPACING.equals( name ) ) return IStyleModel.LETTER_SPACING_PROP; if ( CssPropertyConstants.ATTR_WORD_SPACING.equals( name ) ) return IStyleModel.WORD_SPACING_PROP; if ( CssPropertyConstants.ATTR_TEXT_TRANSFORM.equals( name ) ) return IStyleModel.TEXT_TRANSFORM_PROP; if ( CssPropertyConstants.ATTR_WHITE_SPACE.equals( name ) ) return IStyleModel.WHITE_SPACE_PROP; if ( CssPropertyConstants.ATTR_MARGIN_TOP.equals( name ) ) return IStyleModel.MARGIN_TOP_PROP; if ( CssPropertyConstants.ATTR_MARGIN_RIGHT.equals( name ) ) return IStyleModel.MARGIN_RIGHT_PROP; if ( CssPropertyConstants.ATTR_MARGIN_BOTTOM.equals( name ) ) return IStyleModel.MARGIN_BOTTOM_PROP; if ( CssPropertyConstants.ATTR_MARGIN_LEFT.equals( name ) ) return IStyleModel.MARGIN_LEFT_PROP; if ( CssPropertyConstants.ATTR_PADDING_TOP.equals( name ) ) return IStyleModel.PADDING_TOP_PROP; if ( CssPropertyConstants.ATTR_PADDING_RIGHT.equals( name ) ) return IStyleModel.PADDING_RIGHT_PROP; if ( CssPropertyConstants.ATTR_PADDING_BOTTOM.equals( name ) ) return IStyleModel.PADDING_BOTTOM_PROP; if ( CssPropertyConstants.ATTR_PADDING_LEFT.equals( name ) ) return IStyleModel.PADDING_LEFT_PROP; if ( CssPropertyConstants.ATTR_COLOR.equals( name ) ) return IStyleModel.COLOR_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_COLOR.equals( name ) ) return IStyleModel.BACKGROUND_COLOR_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_IMAGE.equals( name ) ) return IStyleModel.BACKGROUND_IMAGE_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_REPEAT.equals( name ) ) return IStyleModel.BACKGROUND_REPEAT_PROP; if ( CssPropertyConstants.ATTR_BACKGROUND_ATTACHEMNT.equals( name ) ) return IStyleModel.BACKGROUND_ATTACHMENT_PROP; if ( CssPropertyConstants.ATTR_ORPHANS.equals( name ) ) return IStyleModel.ORPHANS_PROP; if ( CssPropertyConstants.ATTR_WIDOWS.equals( name ) ) return IStyleModel.WIDOWS_PROP; if ( CssPropertyConstants.ATTR_DISPLAY.equals( name ) ) return IStyleModel.DISPLAY_PROP; if ( CssPropertyConstants.ATTR_PAGE_BREAK_BEFORE.equals( name ) ) return IStyleModel.PAGE_BREAK_BEFORE_PROP; if ( CssPropertyConstants.ATTR_PAGE_BREAK_AFTER.equals( name ) ) return IStyleModel.PAGE_BREAK_AFTER_PROP; if ( CssPropertyConstants.ATTR_PAGE_BREAK_INSIDE.equals( name ) ) return IStyleModel.PAGE_BREAK_INSIDE_PROP; if ( CssPropertyConstants.ATTR_VERTICAL_ALIGN.equals( name ) ) return IStyleModel.VERTICAL_ALIGN_PROP; if ( CssPropertyConstants.ATTR_LINE_HEIGHT.equals( name ) ) return IStyleModel.LINE_HEIGHT_PROP; if ( CssPropertyConstants.ATTR_BORDER_BOTTOM_COLOR.equals( name ) ) return IStyleModel.BORDER_BOTTOM_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_BOTTOM_STYLE.equals( name ) ) return IStyleModel.BORDER_BOTTOM_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_BOTTOM_WIDTH.equals( name ) ) return IStyleModel.BORDER_BOTTOM_WIDTH_PROP; if ( CssPropertyConstants.ATTR_BORDER_LEFT_COLOR.equals( name ) ) return IStyleModel.BORDER_LEFT_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_LEFT_STYLE.equals( name ) ) return IStyleModel.BORDER_LEFT_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_LEFT_WIDTH.equals( name ) ) return IStyleModel.BORDER_LEFT_WIDTH_PROP; if ( CssPropertyConstants.ATTR_BORDER_RIGHT_COLOR.equals( name ) ) return IStyleModel.BORDER_RIGHT_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_RIGHT_STYLE.equals( name ) ) return IStyleModel.BORDER_RIGHT_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_RIGHT_WIDTH.equals( name ) ) return IStyleModel.BORDER_RIGHT_WIDTH_PROP; if ( CssPropertyConstants.ATTR_BORDER_TOP_COLOR.equals( name ) ) return IStyleModel.BORDER_TOP_COLOR_PROP; if ( CssPropertyConstants.ATTR_BORDER_TOP_STYLE.equals( name ) ) return IStyleModel.BORDER_TOP_STYLE_PROP; if ( CssPropertyConstants.ATTR_BORDER_TOP_WIDTH.equals( name ) ) return IStyleModel.BORDER_TOP_WIDTH_PROP; return null; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e9642c0515de5486d51361ae53a7ec1d3830834a/CssPropertyUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/CssPropertyUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
27190,
12,
514,
3747,
13073,
262,
202,
95,
202,
202,
430,
261,
3747,
13073,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
780,
508,
273,
3747,
13073,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
27190,
12,
514,
3747,
13073,
262,
202,
95,
202,
202,
430,
261,
3747,
13073,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
780,
508,
273,
3747,
13073,
18,
... | ||
compoundEdit.addEdit(ins); | compoundEdit.undos.add(ins); | public void contentInserted(int offset, int length, String text, boolean clearDirty) { Edit toMerge = null; if(compoundEdit != null) { int size = compoundEdit.getSize(); if(size != 0) toMerge = (Edit)compoundEdit.undos.elementAt(size - 1); } else { if(undoPos != 0) toMerge = (Edit)undos.elementAt(undoPos - 1); } if(!clearDirty && toMerge instanceof Insert) { Insert ins = (Insert)toMerge; if(ins.offset == offset) { ins.str = text.concat(ins.str); ins.length += length; return; } else if(ins.offset + ins.length == offset) { ins.str = ins.str.concat(text); ins.length += length; return; } } Insert ins = new Insert(offset,length,text,clearDirty); if(clearDirty) { if(clearDirtyEdit != null) clearDirtyEdit.clearDirty = false; clearDirtyEdit = ins; } if(compoundEdit != null) compoundEdit.addEdit(ins); else addEdit(ins); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/9c96f31f160f26f4f03fe5dd8f26377bc097a37c/UndoManager.java/buggy/org/gjt/sp/jedit/buffer/UndoManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
913,
27329,
12,
474,
1384,
16,
509,
769,
16,
514,
977,
16,
1250,
2424,
10785,
13,
202,
95,
202,
202,
4666,
358,
6786,
273,
446,
31,
202,
202,
430,
12,
22585,
4666,
480,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
913,
27329,
12,
474,
1384,
16,
509,
769,
16,
514,
977,
16,
1250,
2424,
10785,
13,
202,
95,
202,
202,
4666,
358,
6786,
273,
446,
31,
202,
202,
430,
12,
22585,
4666,
480,... |
fAddGetterSetter= new AddGetterSetterAction(editor); | fAddGetterSetter= new AddGetterSetterAction(editor); fAddGetterSetter.setActionDefinitionId(IJavaEditorActionDefinitionIds.CREATE_GETTER_SETTER); fAddGetterSetter.editorStateChanged(); editor.setAction("AddGetterSetter", fAddGetterSetter); | public GenerateActionGroup(CompilationUnitEditor editor, String groupName) { fSite= editor.getSite(); fEditorIsOwner= true; fGroupName= groupName; ISelectionProvider provider= fSite.getSelectionProvider(); ISelection selection= provider.getSelection(); fAddImport= new AddImportOnSelectionAction(editor); fAddImport.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_IMPORT); fAddImport.update(); editor.setAction("AddImport", fAddImport); //$NON-NLS-1$ fOrganizeImports= new OrganizeImportsAction(editor); fOrganizeImports.setActionDefinitionId(IJavaEditorActionDefinitionIds.ORGANIZE_IMPORTS); fOrganizeImports.editorStateChanged(); editor.setAction("OrganizeImports", fOrganizeImports); //$NON-NLS-1$ fOverrideMethods= new OverrideMethodsAction(editor); fOverrideMethods.setActionDefinitionId(IJavaEditorActionDefinitionIds.OVERRIDE_METHODS); fOverrideMethods.editorStateChanged(); editor.setAction("OverrideMethods", fOverrideMethods); //$NON-NLS-1$ fAddGetterSetter= new AddGetterSetterAction(editor); fAddUnimplementedConstructors= new AddUnimplementedConstructorsAction(editor); fAddUnimplementedConstructors.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_UNIMPLEMENTED_CONTRUCTORS); fAddUnimplementedConstructors.editorStateChanged(); editor.setAction("AddUnimplementedConstructors", fAddUnimplementedConstructors); //$NON-NLS-1$ fAddJavaDocStub= new AddJavaDocStubAction(editor); fAddJavaDocStub.editorStateChanged(); fSurroundWithTryCatch= new SurroundWithTryCatchAction(editor); fSurroundWithTryCatch.setActionDefinitionId(IJavaEditorActionDefinitionIds.SURROUND_WITH_TRY_CATCH); fSurroundWithTryCatch.update(selection); provider.addSelectionChangedListener(fSurroundWithTryCatch); editor.setAction("SurroundWithTryCatch", fSurroundWithTryCatch); //$NON-NLS-1$ fExternalizeStrings= new ExternalizeStringsAction(editor); fExternalizeStrings.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTERNALIZE_STRINGS); fExternalizeStrings.editorStateChanged(); editor.setAction("ExternalizeStrings", fExternalizeStrings); //$NON-NLS-1$ fConvertToWindows= new ConvertLineDelimitersAction(editor, "\r\n"); //$NON-NLS-1$ fConvertToWindows.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_WINDOWS); editor.setAction("ConvertLineDelimitersToWindows", fConvertToWindows); //$NON-NLS-1$ fConvertToUNIX= new ConvertLineDelimitersAction(editor, "\n"); //$NON-NLS-1$ fConvertToUNIX.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_UNIX); editor.setAction("ConvertLineDelimitersToUNIX", fConvertToUNIX); //$NON-NLS-1$ fConvertToMac= new ConvertLineDelimitersAction(editor, "\r"); //$NON-NLS-1$ fConvertToMac.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_MAC); editor.setAction("ConvertLineDelimitersToMac", fConvertToMac); //$NON-NLS-1$ } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6b03c57aa598d2685029fc15a528b708a5160137/GenerateActionGroup.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6654,
1803,
1114,
12,
19184,
2802,
6946,
4858,
16,
514,
11619,
13,
288,
202,
202,
74,
4956,
33,
4858,
18,
588,
4956,
5621,
202,
202,
74,
6946,
2520,
5541,
33,
638,
31,
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,
6654,
1803,
1114,
12,
19184,
2802,
6946,
4858,
16,
514,
11619,
13,
288,
202,
202,
74,
4956,
33,
4858,
18,
588,
4956,
5621,
202,
202,
74,
6946,
2520,
5541,
33,
638,
31,
202,
... |
this.data = data; } | this.data = data; } | public ListData(Object[] data) { this.data = data; } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/d2d4f44da9f511edc3e25fe84cced5cae93b74f6/ListDV.java/clean/src/org/apache/xerces/impl/dv/xs/ListDV.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
751,
12,
921,
8526,
501,
13,
288,
3639,
333,
18,
892,
273,
501,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
751,
12,
921,
8526,
501,
13,
288,
3639,
333,
18,
892,
273,
501,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public Transport doCompositeConnect(URI location) throws Exception { URI brokerURI; String host; Map options; CompositeData data = URISupport.parseComposite(location); if( data.getComponents().length==1 && "broker".equals(data.getComponents()[0].getScheme()) ) { brokerURI = data.getComponents()[0]; CompositeData brokerData = URISupport.parseComposite(brokerURI); host = (String)brokerData.getParameters().get("brokerName"); if( host == null ) host = "localhost"; if( brokerData.getPath()!=null ) host = data.getPath(); options = data.getParameters(); location = new URI("vm://"+host); } else { // If using the less complex vm://localhost?broker.persistent=true form try { host = location.getHost(); options = URISupport.parseParamters(location); String config = (String) options.remove("brokerConfig"); if( config != null ) { brokerURI = new URI(config); } else { Map brokerOptions = IntrospectionSupport.extractProperties(options, "broker."); brokerURI = new URI("broker://()/"+host+"?"+URISupport.createQueryString(brokerOptions)); } } catch (URISyntaxException e1) { throw IOExceptionSupport.create(e1); } location = new URI("vm://"+host); } VMTransportServer server = (VMTransportServer) servers.get(host); //validate the broker is still active if( !validateBroker(host) || server == null ) { BrokerService broker = BrokerRegistry.getInstance().lookup(host); if (broker == null) { try { if( brokerFactoryHandler !=null ) { broker = brokerFactoryHandler.createBroker(brokerURI); } else { broker = BrokerFactory.createBroker(brokerURI); } broker.start(); } catch (URISyntaxException e) { throw IOExceptionSupport.create(e); } brokers.put(host, broker); } server = (VMTransportServer) servers.get(host); if (server == null) { server = (VMTransportServer) bind(location, true); TransportConnector connector = new TransportConnector(broker.getBroker(), server); connector.start(); connectors.put(host, connector); } }else { } VMTransport vmtransport = server.connect(); IntrospectionSupport.setProperties(vmtransport, options); Transport transport = vmtransport; if (vmtransport.isMarshal()) { HashMap optionsCopy = new HashMap(options); transport = new MarshallingTransportFilter(transport, createWireFormat(options), createWireFormat(optionsCopy)); } if( !options.isEmpty() ) { throw new IllegalArgumentException("Invalid connect parameters: "+options); } return transport; } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/5a429d90bbfeb27d012127cc5d03f67b0ef7ed98/VMTransportFactory.java/buggy/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6568,
2896,
9400,
5215,
12,
3098,
3562,
13,
15069,
503,
95,
3098,
21722,
3098,
31,
780,
2564,
31,
863,
2116,
31,
9400,
5139,
361,
396,
33,
3098,
6289,
18,
2670,
9400,
12,
3562,
1769,
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,
1071,
6568,
2896,
9400,
5215,
12,
3098,
3562,
13,
15069,
503,
95,
3098,
21722,
3098,
31,
780,
2564,
31,
863,
2116,
31,
9400,
5139,
361,
396,
33,
3098,
6289,
18,
2670,
9400,
12,
3562,
1769,
4... | ||
String key = (String)index.get(new Integer(id)); index.remove(new Integer(id)); cache.remove(key); | if (max_objects > 0) { String key = (String)index.get(new Integer(id)); index.remove(new Integer(id)); cache.remove(key); } | public void remove(int id) { String key = (String)index.get(new Integer(id)); index.remove(new Integer(id)); cache.remove(key); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f2e34ed570a252dc2d2b732c2c600f40c1eb8075/CmsCache.java/clean/src/com/opencms/file/CmsCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
1206,
12,
474,
612,
13,
202,
95,
202,
225,
514,
498,
273,
261,
780,
13,
1615,
18,
588,
12,
2704,
2144,
12,
350,
10019,
202,
225,
770,
18,
4479,
12,
2704,
2144,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
1206,
12,
474,
612,
13,
202,
95,
202,
225,
514,
498,
273,
261,
780,
13,
1615,
18,
588,
12,
2704,
2144,
12,
350,
10019,
202,
225,
770,
18,
4479,
12,
2704,
2144,
1... |
private void viewBugDetailsItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewBugDetailsItemActionPerformed String view = getView(); if (view.equals("BugTree")) { checkBugDetailsVisibility(); } }//GEN-LAST:event_viewBugDetailsItemActionPerformed | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/20d4fcba199a7f0794ac868634a88239a9a6a294/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1476,
19865,
3790,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
1945,
19865,
3790,
1180,
19449,
3639,
514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
19865,
3790,
1180,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
1945,
19865,
3790,
1180,
19449,
3639,
514,... | ||
Object returnValue = super.invokeMethod(target, methodName, arguments, callback); | this.returnValue = super.invokeMethod(target, methodName, arguments, callback); | public Object beforeInvoke(Object target, String methodName, Object[] arguments) { InvocationCallback callback = new InvocationCallback(); Object returnValue = super.invokeMethod(target, methodName, arguments, callback); // if the method was invoked as dynamic // don't invoke true target if (callback.isInvoked()) { doInvoke = false; return returnValue; } else { doInvoke = true; return null; } } | 52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/aac2ac692981606177dc53266f1e3b37add4e357/AbstractDynamicMethodsInterceptor.java/clean/src/persistence/org/codehaus/groovy/grails/metaclass/AbstractDynamicMethodsInterceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1865,
10969,
12,
921,
1018,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
9267,
2428,
1348,
273,
394,
11298,
2428,
5621,
202,
202,
921,
7750,
273,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1865,
10969,
12,
921,
1018,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
9267,
2428,
1348,
273,
394,
11298,
2428,
5621,
202,
202,
921,
7750,
273,
22... |
submitButton = toolkit.createButton(buttonComposite, LABEL_CREATE, SWT.NONE); GridData submitButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); submitButton.setLayoutData(submitButtonData); submitButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { submitBug(); } }); submitButton.addListener(SWT.FocusIn, new GenericListener()); | super.addActionButtons(buttonComposite); | protected void addActionButtons(Composite buttonComposite) { FormToolkit toolkit = new FormToolkit(buttonComposite.getDisplay()); searchDuplicatesButton = toolkit.createButton(buttonComposite, LABEL_SEARCH_DUPS, SWT.NONE); GridData searchDuplicatesButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); searchDuplicatesButton.setLayoutData(searchDuplicatesButtonData); searchDuplicatesButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { searchForDuplicates(); } }); submitButton = toolkit.createButton(buttonComposite, LABEL_CREATE, SWT.NONE); GridData submitButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); submitButton.setLayoutData(submitButtonData); submitButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { submitBug(); } }); submitButton.addListener(SWT.FocusIn, new GenericListener()); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/4e7172a75633ba13686435c39b49c339dd5b9e32/NewBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14745,
14388,
12,
9400,
3568,
9400,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
3072,
2389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14745,
14388,
12,
9400,
3568,
9400,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
3072,
2389... |
SmilesGenerator sg = new SmilesGenerator(); | public void testBug791091() { SmilesGenerator sg = new SmilesGenerator(); String smiles = ""; Molecule molecule = new Molecule(); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("C")); molecule.addAtom(new Atom("N")); molecule.addBond(0, 1, 1.0); molecule.addBond(1, 2, 1.0); molecule.addBond(2, 4, 1.0); molecule.addBond(4, 0, 1.0); molecule.addBond(4, 3, 1.0); fixCarbonHCount(molecule); try { smiles = sg.createSMILES(molecule); } catch (Exception exc) { System.out.println(exc); if (!standAlone) { fail(); } } if (standAlone) { System.err.println("SMILES: " + smiles); } assertEquals("N1(C)CCC1", smiles); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/99fe3519d35ad1fd276844ab16fa237c545a01fc/SmilesGeneratorTest.java/buggy/src/org/openscience/cdk/test/smiles/SmilesGeneratorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
7235,
2163,
12416,
1435,
202,
95,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
780,
3029,
1449,
273,
1408,
31,
202,
202,
2966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19865,
7235,
2163,
12416,
1435,
202,
95,
202,
202,
9552,
1449,
3908,
11150,
273,
394,
9425,
1449,
3908,
5621,
202,
202,
780,
3029,
1449,
273,
1408,
31,
202,
202,
2966... | |
(new NodeTransformer(compilerEnv)).transform(tree); | new NodeTransformer().transform(tree); | public Object compile(Scriptable scope, CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction, Object staticSecurityDomain) { this.compilerEnv = compilerEnv; (new NodeTransformer(compilerEnv)).transform(tree); if (Token.printTrees) { System.out.println(tree.toStringTree(tree)); } if (returnFunction) { tree = tree.getFunctionNode(0); } Context cx = Context.getContext(); SecurityController sc = cx.getSecurityController(); Object dynamicDomain; if (sc != null) { dynamicDomain = sc.getDynamicSecurityDomain(staticSecurityDomain); } else { if (staticSecurityDomain != null) { throw new IllegalArgumentException(); } dynamicDomain = null; } scriptOrFn = tree; itsData = new InterpreterData(sc, dynamicDomain, compilerEnv.getLanguageVersion(), scriptOrFn.getSourceName(), encodedSource); itsData.topLevel = true; if (returnFunction) { generateFunctionICode(); return createFunction(cx, scope, itsData, false); } else { itsData.itsFromEvalCode = compilerEnv.isFromEval(); generateICodeFromTree(scriptOrFn); return new InterpretedScript(itsData); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/d65a74793ce3fab46a10f0a143ed326996c78192/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2151,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4074,
12,
3651,
429,
2146,
16,
12900,
12972,
28248,
87,
5274,
3491,
16,
12900,
7739,
1162,
5372,
907,
2151,
16,
12900,
514,
3749,
1830,
16,
12900,
1250,
327,
2083,
16,
12900,
... |
return NLS.bind(CommonNavigatorMessages.Navigator_statusLineMultiSelect, new Object[]{new Integer(aSize)}); | return NLS.bind( CommonNavigatorMessages.Navigator_statusLineMultiSelect, new Object[] { new Integer(aSize) }); | protected final String getDefaultStatusBarMessage(int aSize) { return NLS.bind(CommonNavigatorMessages.Navigator_statusLineMultiSelect, new Object[]{new Integer(aSize)}); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c93d807ed962723d90daba76fc2003e2c1801cbc/NavigatorContentServiceDescriptionProvider.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceDescriptionProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
514,
4829,
1482,
5190,
1079,
12,
474,
279,
1225,
13,
288,
202,
202,
2463,
29117,
18,
4376,
12,
6517,
22817,
5058,
18,
22817,
67,
2327,
1670,
5002,
3391,
16,
394,
1033,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
514,
4829,
1482,
5190,
1079,
12,
474,
279,
1225,
13,
288,
202,
202,
2463,
29117,
18,
4376,
12,
6517,
22817,
5058,
18,
22817,
67,
2327,
1670,
5002,
3391,
16,
394,
1033,
6... |
String[] names= new String[]{}; String[][] signatures= new String[][]{}; | public void test103() throws Exception{ String[] names= new String[]{}; String[][] signatures= new String[][]{};// Disabled test: Convert to new type constraints infrastructure// validatePassingTest("C", new String[]{"A", "B", "C"}, "I", true, names, signatures, null); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b7c3f3480ba721ada9a3fc3b41916599bd22ee95/ExtractInterfaceTests.java/buggy/org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractInterfaceTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
23494,
1435,
1216,
1185,
95,
202,
202,
780,
8526,
1257,
33,
394,
514,
8526,
2916,
31,
202,
202,
780,
63,
6362,
65,
14862,
33,
394,
514,
63,
6362,
65,
2916,
31,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23494,
1435,
1216,
1185,
95,
202,
202,
780,
8526,
1257,
33,
394,
514,
8526,
2916,
31,
202,
202,
780,
63,
6362,
65,
14862,
33,
394,
514,
63,
6362,
65,
2916,
31,
75... | |
} | return null; | public static IScope getContainingScope( IASTNode node ){ if( node == null ) return null; while( node != null ){ if( node instanceof IASTDeclaration ){ IASTNode parent = node.getParent(); if( parent instanceof IASTTranslationUnit ){ return ((IASTTranslationUnit)parent).getScope(); } else if( parent instanceof IASTDeclarationStatement ){ return getContainingScope( (IASTStatement) parent ); } else if( parent instanceof IASTForStatement ){ return ((IASTForStatement)parent).getScope(); } else if( parent instanceof IASTCompositeTypeSpecifier ){ return ((IASTCompositeTypeSpecifier)parent).getScope(); } else if( parent instanceof ICASTKnRFunctionDeclarator ){ parent = ((IASTDeclarator)parent).getParent(); if ( parent instanceof IASTFunctionDefinition ) { return ((IASTCompoundStatement)((IASTFunctionDefinition)parent).getBody()).getScope(); } } } else if( node instanceof IASTStatement ) return getContainingScope( (IASTStatement) node ); else if( node instanceof IASTParameterDeclaration ){ IASTNode parent = node.getParent(); if( parent instanceof IASTStandardFunctionDeclarator ){ parent = ((IASTDeclarator)parent).getParent(); if ( parent instanceof IASTFunctionDefinition ) { return ((IASTCompoundStatement)((IASTFunctionDefinition)parent).getBody()).getScope(); } } } else if( node instanceof IASTEnumerator ){ //put the enumerators in the same scope as the enumeration node = node.getParent(); } node = node.getParent(); } return null; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/dd8c9f0af7f091058203506cbd0fd9295cd527e0/CVisitor.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
3876,
336,
24344,
3876,
12,
467,
9053,
907,
756,
262,
95,
202,
565,
309,
12,
756,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
17523,
12,
756,
480,
446,
262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
3876,
336,
24344,
3876,
12,
467,
9053,
907,
756,
262,
95,
202,
565,
309,
12,
756,
422,
446,
262,
1082,
202,
2463,
446,
31,
202,
202,
17523,
12,
756,
480,
446,
262,... |
while (ptr < buffer.length()) { | while (ptr < bufferLen) { | public String nextToken() { StringBuffer retval = new StringBuffer(); while (ptr < buffer.length()) { if (buffer.charAt(ptr) == '\n') { retval.append(buffer.charAt(ptr)); ptr++; break; } else { retval.append(buffer.charAt(ptr)); ptr++; } } return retval.toString(); } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/StringTokenizer.java/buggy/src/gov/nist/core/StringTokenizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9617,
1435,
288,
202,
202,
780,
1892,
5221,
273,
394,
6674,
5621,
202,
202,
17523,
261,
6723,
411,
1613,
18,
2469,
10756,
288,
1082,
202,
430,
261,
4106,
18,
3001,
861,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
9617,
1435,
288,
202,
202,
780,
1892,
5221,
273,
394,
6674,
5621,
202,
202,
17523,
261,
6723,
411,
1613,
18,
2469,
10756,
288,
1082,
202,
430,
261,
4106,
18,
3001,
861,
1... |
closeHandlers(holder); | closeHandlersClient(holder); | private boolean callProtocolHandlers(ContextHolder holder, Direction direction, RequestOrResponse type, boolean responseExpected) { if (direction == Direction.OUTBOUND) { int i = 0; try { while (i<soapHandlers.size()) { if (soapHandlers.get(i). handleMessage(holder.getSMC()) == false) { if (responseExpected) { // reverse and call handle message/response holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,false); if (i>0) { callProtocolHandleMessage(holder, i-1, 0); } callLogicalHandleMessage(holder, logicalHandlers.size()-1, 0); } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, i, 0); closeLogicalHandlers(holder, logicalHandlers.size()-1 , 0); } return false; } i++; } } catch (RuntimeException re) { logger.log(Level.FINER, "exception in handler chain", re); if (responseExpected && re instanceof ProtocolException) { insertFaultMessage(holder, (ProtocolException) re); // reverse direction and handle fault holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,false); try { if (i == 0 || // still on first handler callProtocolHandleFault(holder, i-1, 0)) { callLogicalHandleFault(holder, logicalHandlers.size()-1, 0); } } catch (ProtocolException re1) { addIgnoreFaultProperty(holder); re = re1; } catch (RuntimeException re2) { re = re2; } } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, i, 0); closeLogicalHandlers(holder, logicalHandlers.size()-1, 0); } throw re; } } else { // inbound case, H(x) -> H(x-1) -> ... H(1) -> H(0) int i = soapHandlers.size()-1; try { while (i >= 0) { if (soapHandlers.get(i). handleMessage(holder.getSMC()) == false) { // reverse and call handle message/response holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,true); if (responseExpected && i != soapHandlers.size()-1) { callProtocolHandleMessage(holder, i+1, soapHandlers.size()-1); } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, soapHandlers.size()-1, i); } return false; } i--; } } catch (RuntimeException re) { logger.log(Level.FINER, "exception in handler chain", re); if (responseExpected && re instanceof ProtocolException) { insertFaultMessage(holder, (ProtocolException) re); // reverse direction and handle fault holder.getSMC().put(MessageContext.MESSAGE_OUTBOUND_PROPERTY,true); try { if (i < soapHandlers.size()-1) { callProtocolHandleFault(holder, i+1, soapHandlers.size()-1); } } catch (ProtocolException re1) { addIgnoreFaultProperty(holder); re = re1; } catch (RuntimeException re2) { re = re2; } } if (type == RequestOrResponse.RESPONSE) { closeHandlers(holder); } else { closeProtocolHandlers(holder, soapHandlers.size()-1, i); } throw re; } } return true; } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/6509ab3fb8bbe54639b360dda964b0533675e731/HandlerChainCaller.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/handler/HandlerChainCaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
745,
5752,
6919,
12,
1042,
6064,
10438,
16,
3639,
15280,
4068,
16,
1567,
1162,
1064,
618,
16,
1250,
766,
6861,
13,
288,
3639,
309,
261,
9855,
422,
15280,
18,
5069,
19318,
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,
1250,
745,
5752,
6919,
12,
1042,
6064,
10438,
16,
3639,
15280,
4068,
16,
1567,
1162,
1064,
618,
16,
1250,
766,
6861,
13,
288,
3639,
309,
261,
9855,
422,
15280,
18,
5069,
19318,
13,
... |
domain = null; | public void streamClosed() { if (parentSession != null) { parentSession.streamClosed(this); } // end of if (parentSession != null) parentSession = null; authState = Authorization.NOT_AUTHORIZED; resource = null; sessionId = null; domain = null; repository = null; } | 21045 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21045/e01cbb1cbd667c6029bf9f423eca6e1e4337c4f7/XMPPResourceConnection.java/clean/src/tigase/xmpp/XMPPResourceConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1407,
7395,
1435,
288,
202,
202,
430,
261,
2938,
2157,
480,
446,
13,
288,
1082,
202,
2938,
2157,
18,
3256,
7395,
12,
2211,
1769,
202,
202,
97,
368,
679,
434,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1407,
7395,
1435,
288,
202,
202,
430,
261,
2938,
2157,
480,
446,
13,
288,
1082,
202,
2938,
2157,
18,
3256,
7395,
12,
2211,
1769,
202,
202,
97,
368,
679,
434,
309,
261,
... | |
System.err.println("Node doesn't exist"); | protected void normalizeTree(Set tree) { if (tree.isEmpty()) { return; } int change = getMaxRankMove(tree, true); Iterator iterator = tree.iterator(); while (iterator.hasNext()) { Object node = iterator.next(); setTreeSet(node, tree); try { shiftRank(node, change, tree); } catch (NullPointerException e) { // Node no longer exists, ignore // System.err.println("Node doesn't exist"); } } } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/9ab6a5347672fd6ae9c2f6608ddd3e068b6c0db9/GraphSpanningTree.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/graph/GraphSpanningTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
918,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
3883,
2471,
12,
694,
3163,
18,
370,
18,
8222,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
918,
3163,
18,
370,
18,
8222,
2932,
907,
3302,
1404,
1005,
8863,
3883,
2471,
12,
694,
3163,
18,
370,
18,
8222,
293... | |
for (Iterator<Comment> it = getRepositoryTaskData().getComments().iterator(); it.hasNext();) { final Comment comment = it.next(); | for (Iterator<TaskComment> it = getRepositoryTaskData().getComments().iterator(); it.hasNext();) { final TaskComment taskComment = it.next(); | protected void createCommentLayout(Composite composite, final ScrolledForm form) { Section section = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_COMMENTS); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); ImageHyperlink hyperlink = toolkit.createImageHyperlink(section, SWT.NONE); hyperlink.setBackgroundMode(SWT.INHERIT_NONE); hyperlink.setBackground(section.getTitleBarBackground()); hyperlink.setImage(TaskListImages.getImage(TaskListImages.EXPAND_ALL)); hyperlink.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent e) { revealAllComments(); } }); section.setTextClient(hyperlink); // Additional (read-only) Comments Area Composite addCommentsComposite = toolkit.createComposite(section); section.setClient(addCommentsComposite); GridLayout addCommentsLayout = new GridLayout(); addCommentsLayout.numColumns = 1; addCommentsComposite.setLayout(addCommentsLayout); // addCommentsComposite.setBackground(background); GridDataFactory.fillDefaults().grab(true, false).applyTo(addCommentsComposite); // End Additional (read-only) Comments Area // Date lastSynced = new Date(); // if(this.getEditorInput() instanceof ExistingBugEditorInput) { // ExistingBugEditorInput input = // (ExistingBugEditorInput)this.getEditorInput(); // lastSynced = input.getRepositoryTask().getLastSynchronized(); // } StyledText styledText = null; for (Iterator<Comment> it = getRepositoryTaskData().getComments().iterator(); it.hasNext();) { final Comment comment = it.next(); // skip comment 0 as it is the description if (comment.getNumber() == 0) continue; ExpandableComposite expandableComposite = toolkit.createExpandableComposite(addCommentsComposite, ExpandableComposite.TREE_NODE); // if (comment.getCreated().after(lastSynced)) { if (!it.hasNext()) { expandableComposite.setExpanded(true); } expandableComposite.setText(comment.getNumber() + ": " + comment.getAuthorName() + ", " + comment.getCreated()); expandableComposite.addExpansionListener(new ExpansionAdapter() { public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); expandableComposite.setLayout(new GridLayout()); expandableComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Composite ecComposite = toolkit.createComposite(expandableComposite); GridLayout ecLayout = new GridLayout(); ecLayout.marginHeight = 0; ecLayout.marginBottom = 10; ecLayout.marginLeft = 10; ecComposite.setLayout(ecLayout); ecComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); expandableComposite.setClient(ecComposite); // toolkit.paintBordersFor(expandableComposite); // TODO: Attachments are no longer 'attached' to Comments // if (comment.hasAttachment()) { // // Link attachmentLink = new Link(ecComposite, SWT.NONE); // // String attachmentHeader; // // if (!comment.isObsolete()) { // attachmentHeader = " Attached: " + // comment.getAttachmentDescription() + " [<a>view</a>]"; // } else { // attachmentHeader = " Deprecated: " + // comment.getAttachmentDescription(); // } // // String result = MessageFormat.format(attachmentHeader, new // // String[] { node // // .getLabelText() }); // // attachmentLink.addSelectionListener(new SelectionAdapter() { // /* // * (non-Javadoc) // * // * @see // org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) // */ // public void widgetSelected(SelectionEvent e) { // String address = repository.getUrl() + "/attachment.cgi?id=" + // comment.getAttachmentId() // + "&action=view"; // TaskUiUtil.openUrl(address, address, address); // // } // }); // // attachmentLink.setText(attachmentHeader); // // } TextViewer viewer = addRepositoryText(repository, ecComposite, comment.getText()); styledText = viewer.getTextWidget(); GridDataFactory.fillDefaults().hint(DESCRIPTION_WIDTH, SWT.DEFAULT).applyTo(styledText); // code for outline commentStyleText.add(styledText); texts.add(textsindex, styledText); textHash.put(comment, styledText); textsindex++; } Section sectionAdditionalComments = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE); sectionAdditionalComments.setText(LABEL_SECTION_NEW_COMMENT); sectionAdditionalComments.setExpanded(true); sectionAdditionalComments.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); sectionAdditionalComments.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite newCommentsComposite = toolkit.createComposite(sectionAdditionalComments); newCommentsComposite.setLayout(new GridLayout()); newCommentsComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); addCommentsText = toolkit.createText(newCommentsComposite, getRepositoryTaskData().getNewComment(), SWT.MULTI | SWT.V_SCROLL | SWT.WRAP); IThemeManager themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); Font newCommnetFont = themeManager.getCurrentTheme().getFontRegistry().get( TaskListColorsAndFonts.TASK_EDITOR_FONT); addCommentsText.setFont(newCommnetFont); toolkit.paintBordersFor(newCommentsComposite); GridData addCommentsTextData = new GridData(GridData.FILL_HORIZONTAL); addCommentsTextData.widthHint = DESCRIPTION_WIDTH; addCommentsTextData.heightHint = DESCRIPTION_HEIGHT; addCommentsTextData.grabExcessHorizontalSpace = true; addCommentsText.setLayoutData(addCommentsTextData); addCommentsText.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = addCommentsText.getText(); if (!(getRepositoryTaskData().getNewComment().equals(sel))) { getRepositoryTaskData().setNewComment(sel); changeDirtyStatus(true); } validateInput(); } }); addCommentsText.addListener(SWT.FocusIn, new NewCommentListener()); addCommentsTextBox = addCommentsText; sectionAdditionalComments.setClient(newCommentsComposite); // TODO: move into ExistingBugEditor commands section // // if they aren't already on the cc list create an add self check box // // RepositoryTaskAttribute owner = // getReport().getAttribute(RepositoryTaskAttribute.USER_ASSIGNED); // // // Don't add addselfcc check box if the user is the bug owner // if (owner != null && // owner.getValue().indexOf(repository.getUserName()) != -1) { // return; // } // // Don't add addselfcc if already there // RepositoryTaskAttribute ccAttribute = // getReport().getAttribute(RepositoryTaskAttribute.USER_CC); // if (ccAttribute != null && // ccAttribute.getValues().contains(repository.getUserName())) { // return; // } // RepositoryTaskAttribute addselfcc = // getReport().getAttribute(BugzillaReportElement.ADDSELFCC.getKeyString()); // if (addselfcc == null) { // // addselfcc = // // // BugzillaRepositoryUtil.makeNewAttribute(BugzillaReportElement.ADDSELFCC); // getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC.getKeyString(), // "0"); // } else { // addselfcc.setValue("0"); // } // // final Button addSelfButton = // toolkit.createButton(newCommentsComposite, "Add " + // repository.getUserName() // + " to CC list", SWT.CHECK); // // addSelfButton.addSelectionListener(new SelectionAdapter() { // // @Override // public void widgetSelected(SelectionEvent e) { // if (addSelfButton.getSelection()) { // getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC.getKeyString(), // "1"); // // connector.getAttributeFactory().setAttributeValue(getReport(), // // BugzillaReportElement.ADDSELFCC.getKeyString(), "1"); // } else { // getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC.getKeyString(), // "0"); // } // } // }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bb57294d5136ab3c4d634a89c7815c55a6e0145f/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/editors/AbstractRepositoryTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
4469,
3744,
12,
9400,
9635,
16,
727,
2850,
25054,
1204,
646,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
27676,
16,
16429,
429,
9400,
18,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
4469,
3744,
12,
9400,
9635,
16,
727,
2850,
25054,
1204,
646,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
27676,
16,
16429,
429,
9400,
18,
14... |
if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } | private void establishRelationshipForSet(DefaultGrailsDomainClassProperty property) { // is it a relationship Class relatedClassType = getRelatedClassType( property.getName() ); if(relatedClassType != null) { // set the referenced type in the property property.setReferencedPropertyType(relatedClassType); // if the related class is the same as this class // its a circular one-to-many if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } // if the related type is a domain class // then figure out what kind of relationship it is else if(GrailsClassUtils.isDomainClass( relatedClassType )) { // check the relationship defined in the referenced type // if it is also a Set/domain class etc. Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; // if the related type has a relationships map it may be a many-to-many // figure out if there is a many-to-many relationship defined if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; // retrieve the relationship property for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } // if there is one defined get the type if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } // otherwise figure out if there is a one-to-many relationship by retrieving any properties that are of the related type // if there is more than one property then (for the moment) ignore the relationship if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); // if its a many-to-many figure out the owning side of the relationship if(property.isManyToMany()) { establishOwnerOfManyToMany(property, relatedClassType); } } // otherwise set it to not persistent as you can't persist // relationships to non-domain classes else { property.setPersistant(false); } } else { // no relationship defined for set. // set not persistent property.setPersistant(false); } } | 26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/fe351f9f0f376d45dd59d502c6d56321bf14f907/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
3639,
368,
353,
518,
279,
5232,
3639,
1659,
3746,
18328,
273,
21531,
18328,
12,
1272,
18,
17994,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
3639,
368,
353,
518,
279,
5232,
3639,
1659,
3746,
18328,
273,
21531,
18328,
12,
1272,
18,
17994,
... | |
Object previousURI = prefixesToURIs.put(prefix, uri); | Object previousURI = (prefix.length() == 0 && seenEmptyStringMapping) ? uri : prefixesToURIs.put(prefix, uri); if (prefix.length() == 0 && uri == null) { seenEmptyStringMapping = true; } | public void addPrefix(String prefix, String uri) { if (!"xml".equals(prefix) && !"xmlns".equals(prefix)) { uri = (uri.length() == 0) ? null : uri; Object previousURI = prefixesToURIs.put(prefix, uri); namespaceSupport.declarePrefix(prefix, uri); if (previousURI != null) { int index = 1; while (prefixesToURIs.containsKey(prefix + "_" + index)) { ++index; } prefixesToURIs.put(prefix + "_" + index, previousURI); } } } | 11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/0a14600de64a5ab74c34451ab3c3c1398b1c8894/XMLHelperImpl.java/clean/plugins/org.eclipse.emf.ecore.xmi/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
2244,
12,
780,
1633,
16,
514,
2003,
13,
282,
288,
565,
309,
261,
4442,
2902,
9654,
14963,
12,
3239,
13,
597,
29054,
16741,
9654,
14963,
12,
3239,
3719,
565,
288,
1377,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
2244,
12,
780,
1633,
16,
514,
2003,
13,
282,
288,
565,
309,
261,
4442,
2902,
9654,
14963,
12,
3239,
13,
597,
29054,
16741,
9654,
14963,
12,
3239,
3719,
565,
288,
1377,
2... |
switch (this.encoding) | switch (this.encoding) { case ENCODING_EXTERNAL: case ENCODING_UTF_8: inputEncoding = "UTF-8"; break; case ENCODING_ISO_8859_1: inputEncoding = "ISO-8859-1"; break; case ENCODING_UCS_2_12: inputEncoding = "UTF-16BE"; break; case ENCODING_UCS_2_21: inputEncoding = "UTF-16LE"; break; } require("version"); parseEq(); checkLegalVersion(version = readLiteral(flags)); if (!version.equals("1.0")) { if (version.equals("1.1")) | private String parseXMLDecl (boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { case ENCODING_EXTERNAL: case ENCODING_UTF_8: inputEncoding = "UTF-8"; break; case ENCODING_ISO_8859_1: inputEncoding = "ISO-8859-1"; break; case ENCODING_UCS_2_12: inputEncoding = "UTF-16BE"; break; case ENCODING_UCS_2_21: inputEncoding = "UTF-16LE"; break; } // Read the version. require ("version"); parseEq (); checkLegalVersion (version = readLiteral (flags)); if (!version.equals ("1.0")){ if(version.equals ("1.1")){ handler.warn ("expected XML version 1.0, not: " + version); xmlVersion = XML_11; }else { error("illegal XML version", version, "1.0 or 1.1"); } } else xmlVersion = XML_10; // Try reading an encoding declaration. boolean white = tryWhitespace (); if (tryRead ("encoding")) { if (!white) error ("whitespace required before 'encoding='"); parseEq (); encodingName = readLiteral (flags); if (!ignoreEncoding) setupDecoding (encodingName); } // Try reading a standalone declaration if (encodingName != null) white = tryWhitespace (); if (tryRead ("standalone")) { if (!white) error ("whitespace required before 'standalone='"); parseEq (); standalone = readLiteral (flags); if ("yes".equals (standalone)) docIsStandalone = true; else if (!"no".equals (standalone)) error ("standalone flag must be 'yes' or 'no'"); } skipWhitespace (); require ("?>"); if (inputEncoding == null) { inputEncoding = encodingName; } handler.xmlDecl(version, encodingName, "yes".equals(standalone), inputEncoding); return encodingName; } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1109,
4201,
3456,
261,
6494,
2305,
4705,
13,
565,
1216,
14366,
16,
1860,
565,
288,
202,
780,
202,
1589,
31,
202,
780,
202,
5999,
461,
273,
446,
31,
202,
780,
202,
10145,
1245... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1109,
4201,
3456,
261,
6494,
2305,
4705,
13,
565,
1216,
14366,
16,
1860,
565,
288,
202,
780,
202,
1589,
31,
202,
780,
202,
5999,
461,
273,
446,
31,
202,
780,
202,
10145,
1245... |
Account account = Provisioning.getInstance().getAccountByName(address); | Account account = Provisioning.getInstance().get(AccountBy.NAME, address); | public static Account getAccount(String userName) throws ServiceException { String address = getAddress(userName); Account account = Provisioning.getInstance().getAccountByName(address); if (account == null) { throw new IllegalArgumentException("Could not find account for '" + address + "'"); } return account; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0ee2b6e1f68cd07e42780d9098bdde2e9d6d3bd7/TestUtil.java/buggy/ZimbraServer/src/java/com/zimbra/qa/unittest/TestUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6590,
23393,
12,
780,
12065,
13,
565,
1216,
16489,
288,
3639,
514,
1758,
273,
14808,
12,
1355,
461,
1769,
3639,
6590,
2236,
273,
26423,
18,
588,
1442,
7675,
588,
12,
3032,
858,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6590,
23393,
12,
780,
12065,
13,
565,
1216,
16489,
288,
3639,
514,
1758,
273,
14808,
12,
1355,
461,
1769,
3639,
6590,
2236,
273,
26423,
18,
588,
1442,
7675,
588,
12,
3032,
858,... |
dialog.setStatus(finalReason); | public void setBlocked(IStatus reason) { //The UI operation has been blocked. Open a progress dialog //to report the situation and give the user an opportunity to cancel. final IStatus finalReason = reason; dialog = new BlockedJobsDialog(null, EventLoopProgressMonitor.this); dialog.setBlockOnOpen(false); dialog.setStatus(finalReason); WorkbenchJob dialogJob = new WorkbenchJob(WorkbenchMessages.getString("EventLoopProgressMonitor.OpenDialogJobName")){ //$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(dialog == null) return Status.CANCEL_STATUS; dialog.open(); return Status.OK_STATUS; } }; //Wait 3 second to prevent too many dialogs. dialogJob.setSystem(true); dialogJob.schedule(3000); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e6af75d1024403d1ef1e4ec4c9024c6f7fac26a7/EventLoopProgressMonitor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EventLoopProgressMonitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
9506,
202,
759,
1986,
6484,
1674,
711,
2118,
14547,
18,
225,
3502,
279,
4007,
6176,
202,
202,
759,
869,
2605,
326,
20886,
471,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
9506,
202,
759,
1986,
6484,
1674,
711,
2118,
14547,
18,
225,
3502,
279,
4007,
6176,
202,
202,
759,
869,
2605,
326,
20886,
471,
84... | |
pn.sendAsync(reject); | try { pn.sendAsync(reject); } catch (NotConnectedException e1) { Logger.minor(this, "Lost connection rejecting SwapRequest (locked) from "+pn); } | public boolean handleSwapRequest(Message m) { PeerNode pn = (PeerNode)m.getSource(); long uid = m.getLong(DMT.UID); Long luid = new Long(uid); long oid = uid+1; // We have two separate IDs so we can deal with two visits // separately. This is because we want it to be as random // as possible. // This means we can and should check for the same ID being // sent twice. RecentlyForwardedItem item = (RecentlyForwardedItem) recentlyForwardedIDs.get(luid); if(item != null) { Logger.minor(this, "Rejecting - same ID as previous request"); // Reject Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedRecognizedID++; return true; } if(pn.shouldRejectSwapRequest()) { Logger.minor(this, "Advised to reject SwapRequest by PeerNode - rate limit"); // Reject Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedRateLimit++; return true; } Logger.minor(this, "SwapRequest from "+pn+" - uid="+uid); int htl = m.getInt(DMT.HTL)-1; // Either forward it or handle it if(htl == 0) { Logger.minor(this, "Accepting?... "+uid); // Accept - handle locally if(!lock()) { Logger.minor(this, "Can't obtain lock on "+uid); // Reject Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedAlreadyLocked++; return true; } try { // Locked, do it IncomingSwapRequestHandler isrh = new IncomingSwapRequestHandler(m, pn); Logger.minor(this, "Handling... "+uid); Thread t = new Thread(isrh, "Incoming swap request handler for port "+node.portNumber); t.setDaemon(true); t.start(); return true; } catch (Error e) { unlock(); throw e; } catch (RuntimeException e) { unlock(); throw e; } } else { m.set(DMT.HTL, htl); m.set(DMT.UID, oid); Logger.minor(this, "Forwarding... "+uid); while(true) { try { // Forward PeerNode randomPeer = node.peers.getRandomPeer(pn); if(randomPeer == null) { Logger.minor(this, "Late reject "+uid); Message reject = DMT.createFNPSwapRejected(uid); pn.sendAsync(reject); swapsRejectedNowhereToGo++; return true; } Logger.minor(this, "Forwarding "+uid+" to "+randomPeer); addForwardedItem(uid, oid, pn, randomPeer); node.usm.send(randomPeer, m); return true; } catch (NotConnectedException e) { // Try again } } } } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/db3bc8d8624526da4116ed2c6e8583678d958aa9/LocationManager.java/clean/src/freenet/node/LocationManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1640,
12521,
691,
12,
1079,
312,
13,
288,
3639,
10669,
907,
11059,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
3639,
1525,
4555,
273,
312,
18,
588,
3708,
12,
40,
6152,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
12521,
691,
12,
1079,
312,
13,
288,
3639,
10669,
907,
11059,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
3639,
1525,
4555,
273,
312,
18,
588,
3708,
12,
40,
6152,... |
String hrefUrl = getHref(); if (handler.importStackContains(hrefUrl)) { throw new org.xml.sax.SAXException( XSLMessages.createMessage( getStylesheetInclErr(), new Object[]{ hrefUrl })); } handler.pushImportURL(hrefUrl); int savedStylesheetType = handler.getStylesheetType(); handler.setStylesheetType(this.getStylesheetType()); handler.pushNewNamespaceSupport(); | public void startElement( StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) throws org.xml.sax.SAXException { setPropertiesFromAttributes(handler, rawName, attributes, this); String hrefUrl = getHref(); if (handler.importStackContains(hrefUrl)) { throw new org.xml.sax.SAXException( XSLMessages.createMessage( getStylesheetInclErr(), new Object[]{ hrefUrl })); //"(StylesheetHandler) "+hrefUrl+" is directly or indirectly importing itself!"); } handler.pushImportURL(hrefUrl); int savedStylesheetType = handler.getStylesheetType(); handler.setStylesheetType(this.getStylesheetType()); handler.pushNewNamespaceSupport(); try { parse(handler, uri, localName, rawName, attributes); } finally { handler.setStylesheetType(savedStylesheetType); handler.popImportURL(); handler.popNamespaceSupport(); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ff34dc56b8ded0e7e5a0d7759ea10488295fac96/ProcessorInclude.java/clean/src/org/apache/xalan/processor/ProcessorInclude.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
13591,
12,
1850,
29483,
2963,
1503,
1838,
16,
514,
2003,
16,
514,
11927,
16,
514,
1831,
461,
16,
9055,
1677,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13591,
12,
1850,
29483,
2963,
1503,
1838,
16,
514,
2003,
16,
514,
11927,
16,
514,
1831,
461,
16,
9055,
1677,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
... | |
_writer.write(GT_CR); | else { _writer.write(GT_CR); } | private void closeStartTag(boolean content) throws SAXException { try { // Take special care when outputting empty tags in HTML documents. if (!content) { if (_outputType == TextOutput.HTML) { // HTML: output empty element as <tag> or <tag></tag> if (!_emptyElements.containsKey(_element.toLowerCase())){ _writer.write(GT_LT_SL); _writer.write(_element); } _writer.write(GT_CR); } else { // XML: output empty element as <tag/> _writer.write(SL_GT); } } else { _writer.write('>'); } _startTagOpen = false; } catch (IOException e) { throw new SAXException(e); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/bc6f2655872cf459278fe9a276086471dcf2e0c3/DefaultSAXOutputHandler.java/buggy/src/org/apache/xalan/xsltc/runtime/DefaultSAXOutputHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1746,
30512,
12,
6494,
913,
13,
1216,
14366,
288,
3639,
775,
288,
5411,
368,
17129,
4582,
7671,
1347,
876,
1787,
1008,
2342,
316,
3982,
7429,
18,
5411,
309,
16051,
1745,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1746,
30512,
12,
6494,
913,
13,
1216,
14366,
288,
3639,
775,
288,
5411,
368,
17129,
4582,
7671,
1347,
876,
1787,
1008,
2342,
316,
3982,
7429,
18,
5411,
309,
16051,
1745,
13,
28... |
public boolean isCallerSideMethod(final String className, | public boolean isCallerSideMethod(final ClassMetaData classMetaData, | public boolean isCallerSideMethod(final String className, final MethodMetaData methodMetaData) { if (className == null) throw new IllegalArgumentException("class name can not be null"); if (methodMetaData == null) throw new IllegalArgumentException("method meta-data can not be null"); for (Iterator it = m_aspectMap.values().iterator(); it.hasNext();) { AspectDefinition aspectDef = (AspectDefinition)it.next(); if (aspectDef.isAbstract()) { continue; } List weavingRules = aspectDef.getAdviceWeavingRules(); for (Iterator it2 = weavingRules.iterator(); it2.hasNext();) { AdviceWeavingRule weavingRule = (AdviceWeavingRule)it2.next(); if (weavingRule.matchCallerSidePointcut(className, methodMetaData)) { return true; } } } return false; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/AspectWerkzDefinition.java/buggy/aspectwerkz/src/main/org/codehaus/aspectwerkz/definition/AspectWerkzDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
11095,
8895,
1305,
12,
6385,
1659,
6998,
667,
6998,
16,
4766,
1377,
727,
2985,
6998,
707,
6998,
13,
288,
3639,
309,
261,
12434,
422,
446,
13,
604,
394,
2754,
2932,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
11095,
8895,
1305,
12,
6385,
1659,
6998,
667,
6998,
16,
4766,
1377,
727,
2985,
6998,
707,
6998,
13,
288,
3639,
309,
261,
12434,
422,
446,
13,
604,
394,
2754,
2932,
1106,
... |
container.setLayout( WidgetUtil.createGridLayout( 5 ) ); | container.setLayout( WidgetUtil.createGridLayout( 5 ,15) ); | public void buildUI( Composite parent ) { super.buildUI( parent ); container.setLayout( WidgetUtil.createGridLayout( 5 ) ); // Defines providers. IDescriptorProvider beforeProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_BEFORE_PROP, ReportDesignConstants.STYLE_ELEMENT ); IDescriptorProvider masterProvider = new SimpleComboPropertyDescriptorProvider( StyleHandle.MASTER_PAGE_PROP, ReportDesignConstants.STYLE_ELEMENT ); IDescriptorProvider afterProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_AFTER_PROP, ReportDesignConstants.STYLE_ELEMENT ); IDescriptorProvider insideProvider = new ComboPropertyDescriptorProvider( StyleHandle.PAGE_BREAK_INSIDE_PROP, ReportDesignConstants.STYLE_ELEMENT ); // Defines sections. ComboSection beforeSection = new ComboSection( beforeProvider.getDisplayName( ), container, true ); ComboSection insideSection = new ComboSection( insideProvider.getDisplayName( ), container, true ); masterSection = new SimpleComboSection( masterProvider.getDisplayName( ), container, true ); ComboSection afterSection = new ComboSection( afterProvider.getDisplayName( ), container, true ); sepSection = new SeperatorSection(container,SWT.HORIZONTAL); beforeSection.setProvider( beforeProvider ); masterSection.setProvider( masterProvider ); afterSection.setProvider( afterProvider ); insideSection.setProvider( insideProvider ); // Sets widths. beforeSection.setWidth( 200 ); masterSection.setWidth( 200 ); afterSection.setWidth( 200 ); insideSection.setWidth( 200 ); // Sets layout num. beforeSection.setLayoutNum( 2 ); afterSection.setLayoutNum( 3 ); // Sets fill grid num. masterSection.setGridPlaceholder( 3, true ); afterSection.setGridPlaceholder( 1, true ); insideSection.setGridPlaceholder( 3, true ); // Adds sections into container page. addSection( PageSectionId.SECION_PAGE_BREAK_BEFORE, beforeSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_PAGE_BREAK_AFTER, afterSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_PAGE_BREAK_INSIDE, insideSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_SEPERATOR, sepSection ); //$NON-NLS-1$ addSection( PageSectionId.SECION_MASTER_PAGE, masterSection ); //$NON-NLS-1$ createSections( ); layoutSections( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b1c54a82f7e0fded60b986c55329f90d6daefd16/SectionPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/page/SectionPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
... |
Client.session.utilisateur(e, u); | if(Client.fsm.editerUtilisateur()) { Client.session.utilisateur(e, u); } | void editerUtilisateur(Edition e, Utilisateur u) { Client.session.utilisateur(e, u); } | 57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/da6099451ef8e9920f1e5873d636a7860d1228f1/HI.java/clean/src/client/HI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1675,
2165,
1304,
24954,
12,
41,
1460,
425,
16,
3564,
24954,
582,
13,
288,
3639,
309,
12,
1227,
18,
2556,
81,
18,
329,
2165,
1304,
24954,
10756,
288,
2445,
18,
3184,
18,
1367,
2495... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1675,
2165,
1304,
24954,
12,
41,
1460,
425,
16,
3564,
24954,
582,
13,
288,
3639,
309,
12,
1227,
18,
2556,
81,
18,
329,
2165,
1304,
24954,
10756,
288,
2445,
18,
3184,
18,
1367,
2495... |
public void startPoll(CachedUrlSet cus, PollTally state, boolean isReplayPoll) { | public void startPoll(CachedUrlSet cus, PollTally state, boolean isReplayPoll) { | public void startPoll(CachedUrlSet cus, PollTally state, boolean isReplayPoll) { NodeState nodeState = getNodeState(cus); PollSpec spec = state.getPollSpec(); int status = isReplayPoll ? PollState.REPAIRING : PollState.RUNNING; PollState pollState = new PollState(state.getType(), spec.getLwrBound(), spec.getUprBound(), status, state.getStartTime(), Deadline.in(state.getDuration()), state.isMyPoll()); ( (NodeStateImpl) nodeState).addPollState(pollState); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/8d493a11db22a4db627941f321123ea8a926d0df/NodeManagerImpl.java/clean/src/org/lockss/state/NodeManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
19085,
12,
9839,
1489,
694,
27964,
16,
19160,
56,
1230,
919,
16,
1250,
353,
26481,
19085,
13,
288,
565,
2029,
1119,
756,
1119,
273,
5973,
1119,
12,
71,
407,
1769,
565,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
19085,
12,
9839,
1489,
694,
27964,
16,
19160,
56,
1230,
919,
16,
1250,
353,
26481,
19085,
13,
288,
565,
2029,
1119,
756,
1119,
273,
5973,
1119,
12,
71,
407,
1769,
565,
1... |
return hasLineNumbers; } | return hasLineNumbers; } | public boolean hasLineNumbers() { return hasLineNumbers; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/LineNumberMap.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/LineNumberMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1670,
10072,
1435,
288,
202,
2463,
711,
1670,
10072,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
377,
1071,
1250,
711,
1670,
10072,
1435,
288,
202,
2463,
711,
1670,
10072,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
BSFEngine engine = null; | BSFEngine engine; | public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE); String source = (String) args.get(AbstractWorkflow.BSF_SOURCE); int row = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_ROW)); int col = TextUtils.parseInt((String) args.get(AbstractWorkflow.BSF_COL)); String script = (String) args.get(AbstractWorkflow.BSF_SCRIPT); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); BSFManager mgr = new BSFManager(); ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader != null) { mgr.setClassLoader(loader); } mgr.registerBean("entry", entry); mgr.registerBean("context", context); mgr.registerBean("transientVars", transientVars); mgr.registerBean("propertySet", ps); BSFEngine engine = null; try { engine = mgr.loadScriptingEngine(language); } catch (BSFException e) { String message = "Could not load scripting engine for BSF language: " + language; throw new WorkflowException(message, e); } try { engine.eval(source, row, col, script); } catch (BSFException e) { String message = "BSF script/function could not run"; throw new WorkflowException(message, e); } } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/f5fa083c1b3902dfe51a2092ad2e5a5f58d99107/BSFFunctionProvider.java/clean/src/java/com/opensymphony/workflow/util/bsf/BSFFunctionProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
863,
12315,
5555,
16,
1635,
833,
16,
4276,
694,
4250,
13,
1216,
11363,
503,
288,
3639,
514,
2653,
273,
261,
780,
13,
833,
18,
588,
12,
7469,
8484,
18,
12692,
42,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
863,
12315,
5555,
16,
1635,
833,
16,
4276,
694,
4250,
13,
1216,
11363,
503,
288,
3639,
514,
2653,
273,
261,
780,
13,
833,
18,
588,
12,
7469,
8484,
18,
12692,
42,
... |
tableModel.prevPage(); | tableSorter.prevPage(); | public void prevPage() { if (tableModel != null) { //FIXME: try { tableModel.prevPage(); } catch (RemoteException ex) { ex.printStackTrace(); } catch (DBLayerException ex) { ex.printStackTrace(); } setChanged(); notifyObservers("PAGE_CHANGED"); } } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/79474780ff5293efcaffed00518796cfdb817aad/AppCore.java/buggy/trunk/src/net/sf/plantlore/client/AppCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2807,
1964,
1435,
288,
3639,
309,
261,
2121,
1488,
480,
446,
13,
3639,
288,
5411,
368,
25810,
30,
5411,
775,
288,
7734,
1014,
24952,
18,
10001,
1964,
5621,
5411,
289,
1044,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2807,
1964,
1435,
288,
3639,
309,
261,
2121,
1488,
480,
446,
13,
3639,
288,
5411,
368,
25810,
30,
5411,
775,
288,
7734,
1014,
24952,
18,
10001,
1964,
5621,
5411,
289,
1044,
261... |
if ( expandDbObjectsTree && item != null && item.length > 0 ) | if ( expandDbObjectsTree && item != null && item.length > 0 ) | protected void populateTableList( String schemaName ,TreeItem schemaTreeItem ) { if ( schemaTreeItem != null ) { removeTreeItem( schemaTreeItem ); } String namePattern = null; String[] tableType = null; cachedSearchTxt = searchTxt.getText( ); namePattern = SQLUtility.getTailoredSearchText( searchTxt.getText( ) ); String dbtype = getSelectedDbType( ); cachedDbType = dbtype; if ( dbtype != null ) { if ( DbType.TABLE_STRING.equalsIgnoreCase( dbtype ) || DbType.VIEW_STRING.equalsIgnoreCase( dbtype ) ) { tableType = new String[]{ dbtype }; } } String catalogName = metaDataProvider.getCatalog(); ArrayList tableList = new ArrayList(); ResultSet tablesRs = null; ArrayList procedureRs = null; if (schemaName != null && schemaName.trim().length() > 0) { // For each schema Get the List of Tables { if( metaDataProvider.isProcedureSupported() ) procedureRs = metaDataProvider.getAllProcedure( catalogName, schemaName, namePattern ); if( !DbType.PROCEDURE_STRING.equalsIgnoreCase(dbtype)) tablesRs = metaDataProvider.getAlltables(catalogName,schemaName,namePattern,tableType); tableList = new ArrayList(); try { // Create the schema Node Image image = tableImage; if ( tablesRs != null ) { int numberOfTable; Preferences preferences = JdbcPlugin.getDefault( ).getPluginPreferences( ); if ( preferences.contains( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA ) ) { numberOfTable = preferences.getInt( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA ); } else { numberOfTable = DateSetPreferencePage.DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA; preferences.setValue( DateSetPreferencePage.USER_MAX_NUM_OF_TABLE_EACH_SCHEMA, numberOfTable ); } int count = 0; while ( tablesRs.next( ) && count < numberOfTable) { // tablesRs.getString("TABLE_NAME") must be called // before // tablesRs.getString("TABLE_TYPE"). This is because // once using JDBC-ODBC-SQLSERVER // the index of "TABLE_NAME" is higher than that of // "TABLE_TYPE".And when connection // is built using JDBC-ODBC-SQLSERVER the // ResultSet.getString() method, if being called // use a low index, then called using a high index, // will result in an exception. String tableName = tablesRs.getString( "TABLE_NAME" ); String type = tablesRs.getString( "TABLE_TYPE" ); if ( type.equalsIgnoreCase( "SYSTEM TABLE" ) ) continue; int dbType = DbObject.TABLE_TYPE; if ( type.equalsIgnoreCase( "TABLE" ) ) { image = tableImage; dbType = DbObject.TABLE_TYPE; } else if ( type.equalsIgnoreCase( "VIEW" ) ) { image = viewImage; dbType = DbObject.VIEW_TYPE; } DbObject dbObject = new DbObject( getTableNameWithSchema( schemaName, tableName ), tableName, dbType, image ); tableList.add( dbObject ); count ++; } } if ( needToCreateProcedureNode( dbtype, procedureRs )) { String fullyQualifiedTableName = "STORED PROCEDURES"; if ( schemaName != null && schemaName.trim( ).length( ) > 0 ) { fullyQualifiedTableName = schemaName + "." + "STORED PROCEDURES"; } DbObject dbObject = new DbObject( fullyQualifiedTableName,"STORED PROCEDURES", DbObject.PROCEDURE_TYPE, tableImage); tableList.add( dbObject ); } if ( schemaTreeItem != null ) { TreeItem item[] = Utility.createTreeItems( schemaTreeItem, tableList, SWT.NONE, null ); //expand table TreeItem if ( expandDbObjectsTree && item != null && item.length > 0 ) { availableDbObjectsTree.showItem( item[0] ); } } } catch(SQLException e) { e.printStackTrace(); } } } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/cb59eec61fac3f70118834d4b7418d08c64f26a0/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
6490,
1388,
682,
12,
514,
21960,
269,
2471,
1180,
1963,
2471,
1180,
262,
202,
95,
202,
202,
430,
261,
1963,
2471,
1180,
480,
446,
262,
202,
202,
95,
1082,
202,
4479,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
6490,
1388,
682,
12,
514,
21960,
269,
2471,
1180,
1963,
2471,
1180,
262,
202,
95,
202,
202,
430,
261,
1963,
2471,
1180,
480,
446,
262,
202,
202,
95,
1082,
202,
4479,
247... |
InputStream in = null; | try { InputStream propStream = new BufferedInputStream( new FileInputStream( configFile ) ); props.load( propStream ); propStream.close(); } catch ( IOException e ) { throw (IOException) new IOException( "File " + configFile + "exists " + "but is unreadable" ) .initCause( e ); } String rmiPort = props.getProperty( PlasticHubListener .PLASTIC_RMI_PORT_KEY ); /* Examine it to see if it describes a living or dead hub. */ | public ServerSet( File configFile ) throws IOException, RemoteException { configFile_ = configFile; serverIdValue_ = this.toString(); /* Check if the config file already exists. */ if ( configFile != null && configFile.exists() ) { Properties props = new Properties(); InputStream in = null; boolean badFile = false; try { in = new FileInputStream( configFile ); props.load( in ); String rmiPort = props.getProperty( PlasticHubListener .PLASTIC_RMI_PORT_KEY ); if ( rmiPort != null ) { try { new Client( "localhost", Integer.parseInt( rmiPort ) ); } catch ( NumberFormatException e ) { badFile = true; } catch ( Exception e ) { logger_.warning( "Moribund " + configFile + " - deleting" ); configFile_.delete(); } } else { badFile = true; } } finally { if ( in != null ) { in.close(); } } if ( configFile.exists() ) { String msg = badFile ? "File " + configFile + " exists but hub doesn't seem " + "to be running - delete it?" : "Hub described at " + configFile + " is already running"; throw new IOException( msg ); } } /* Start an RMI server on a suitable port. */ int rmiPort = Server.DEFAULT_PORT - 1; Server rmiServer = null; RemoteException rmiBindError = null; for ( int i = 0; i < 20 && rmiServer == null; i++ ) { rmiPort++; try { rmiServer = new Server( rmiPort ); } catch ( RemoteException e ) { rmiBindError = e; } } if ( rmiServer == null ) { throw rmiBindError; } rmiPort_ = rmiPort; rmiServer_ = rmiServer; /* Start an XML-RPC server on a suitable port. */ int xrPort = 2112 - 1; WebServer xrServer = null; RuntimeException xrBindError = null; for ( int i = 0; i < 20 && xrServer == null; i++ ) { xrPort++; try { xrServer = new WebServer( xrPort ); xrServer.start(); } catch ( RuntimeException e ) { xrBindError = e; } } if ( xrServer == null ) { throw xrBindError; } xmlrpcServer_ = xrServer; xmlrpcUrl_ = new URL( "http://" + InetAddress.getLocalHost().getHostName() + ":" + xrPort + "/" ); /* Write the config file if requested to. */ if ( configFile != null ) { storeConfig( configFile ); } /* Arrange to delete the config file on shutdown. */ Runtime.getRuntime().addShutdownHook( new Thread() { public void run() { ServerSet.this.stop(); } } ); } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/0b9dbcdcdc38f33b95459eaf5877ff33cf3f3510/ServerSet.java/buggy/plastic/src/main/uk/ac/starlink/plastic/ServerSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3224,
694,
12,
1387,
12247,
262,
1216,
1860,
16,
18361,
288,
3639,
12247,
67,
273,
12247,
31,
3639,
28638,
620,
67,
273,
333,
18,
10492,
5621,
3639,
1748,
2073,
309,
326,
642,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3224,
694,
12,
1387,
12247,
262,
1216,
1860,
16,
18361,
288,
3639,
12247,
67,
273,
12247,
31,
3639,
28638,
620,
67,
273,
333,
18,
10492,
5621,
3639,
1748,
2073,
309,
326,
642,
585,
... |
customNTDefs.store(customNodeTypesResource.getOutputStream(), nsReg); | out = customNodeTypesResource.getOutputStream(); customNTDefs.store(out, nsReg); | public synchronized void unregisterNodeType(QName name) throws NoSuchNodeTypeException, RepositoryException { if (!registeredNTDefs.containsKey(name)) { throw new NoSuchNodeTypeException(name.toString()); } if (builtInNTDefs.contains(name)) { throw new RepositoryException(name.toString() + ": can't unregister built-in node type."); } /** * todo check if this node type (or any node type that has dependencies * on this node type) is currently referenced by nodes in the repository. * * this is absolutely necessary in order to guarantee integrity of * repository content. * * throw exception until this is can be done (using search) */ boolean isReferenced = true; if (isReferenced) { throw new RepositoryException("not yet implemented"); } NodeTypeDef ntd = (NodeTypeDef) registeredNTDefs.get(name); registeredNTDefs.remove(name); // remove effective node type from aggregates cache entCache.remove(new QName[]{name}); // remove poperty & child node definitions PropDef[] pda = ntd.getPropertyDefs(); for (int i = 0; i < pda.length; i++) { PropDefId id = new PropDefId(pda[i]); propDefs.remove(id); } ChildNodeDef[] nda = ntd.getChildNodeDefs(); for (int i = 0; i < nda.length; i++) { NodeDefId id = new NodeDefId(nda[i]); nodeDefs.remove(id); } // persist removal of node type definition customNTDefs.remove(name); try { customNTDefs.store(customNodeTypesResource.getOutputStream(), nsReg); } catch (IOException ioe) { String error = "internal error: failed to write custom node type definition to " + customNodeTypesResource.getPath(); log.error(error, ioe); throw new RepositoryException(error, ioe); } catch (FileSystemException fse) { String error = "internal error: failed to write custom node type definition to " + customNodeTypesResource.getPath(); log.error(error, fse); throw new RepositoryException(error, fse); } // @todo remove also any node types & aggregates which have dependencies on this node type // notify listeners notifyUnregistered(name); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/8925e66cb3bda21854a46b800ad11cdca5716e78/NodeTypeRegistry.java/clean/src/java/org/apache/jackrabbit/core/nodetype/NodeTypeRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
10232,
15101,
12,
13688,
508,
13,
5411,
1216,
5823,
907,
14144,
16,
13367,
288,
3639,
309,
16051,
14327,
1784,
14554,
18,
12298,
653,
12,
529,
3719,
288,
5411,
604,
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,
3852,
918,
10232,
15101,
12,
13688,
508,
13,
5411,
1216,
5823,
907,
14144,
16,
13367,
288,
3639,
309,
16051,
14327,
1784,
14554,
18,
12298,
653,
12,
529,
3719,
288,
5411,
604,
394,
... |
throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); | if( cls.getTypeInfo().isForwardDeclaration() && cls.getTypeSymbol() == decl ){ cls = (IContainerSymbol) decl; } else if( decl.getTypeInfo().isForwardDeclaration() && decl.getTypeSymbol() == cls ){ } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } | static private ISymbol ResolveAmbiguities( LookupData data ) throws ParserSymbolTableException{ ISymbol decl = null; ISymbol obj = null; IContainerSymbol cls = null; if( data.foundItems == null ){ return null; } int size = data.foundItems.size(); Iterator iter = data.foundItems.iterator(); boolean needDecl = true; if( size == 0){ return null; } else if (size == 1) { decl = (ISymbol) iter.next(); //if it is a function we need to check its parameters if( !decl.isType( TypeInfo.t_function ) ){ data.foundItems.clear(); return decl; } needDecl = false; } LinkedList functionList = null; for( int i = size; i > 0; i-- ){ //if we if( needDecl ){ decl = (ISymbol) iter.next(); } else { needDecl = true; } if( decl.isType( TypeInfo.t_function ) ){ if( functionList == null){ functionList = new LinkedList(); } functionList.add( decl ); } else { //if this is a class-name, other stuff hides it if( decl.isType( TypeInfo.t_class, TypeInfo.t_enumeration ) ){ if( cls == null ) { cls = (IContainerSymbol) decl; } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } else { //an object, can only have one of these if( obj == null ){ obj = decl; } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } } decl = null; } data.foundItems.clear(); int numFunctions = ( functionList == null ) ? 0 : functionList.size(); boolean ambiguous = false; if( cls != null ){ //the class is only hidden by other stuff if they are from the same scope if( obj != null && cls.getContainingSymbol() != obj.getContainingSymbol()){ ambiguous = true; } if( functionList != null ){ Iterator fnIter = functionList.iterator(); IParameterizedSymbol fn = null; for( int i = numFunctions; i > 0; i-- ){ fn = (IParameterizedSymbol) fnIter.next(); if( cls.getContainingSymbol()!= fn.getContainingSymbol()){ ambiguous = true; break; } } } } if( obj != null && !ambiguous ){ if( numFunctions > 0 ){ ambiguous = true; } else { return obj; } } else if( numFunctions > 0 ) { if( data.parameters == null ){ //we have no parameter information, if we only have one function, return //that, otherwise we can't decide between them if( numFunctions == 1){ return (ISymbol) functionList.getFirst(); } else { data.foundItems.addAll( functionList ); return null; } } else { return ResolveFunction( data, functionList ); } } if( ambiguous ){ throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } else { return cls; } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/87e177ade2808f11880bc590985f061763470df8/ParserSymbolTable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/ParserSymbolTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
4437,
3284,
9910,
30706,
8810,
1961,
12,
8834,
751,
501,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
5127,
3284,
3496,
273,
446,
31,
202,
202,
5127,
3284,
1081,
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,
3845,
3238,
4437,
3284,
9910,
30706,
8810,
1961,
12,
8834,
751,
501,
262,
1216,
6783,
5335,
1388,
503,
95,
202,
202,
5127,
3284,
3496,
273,
446,
31,
202,
202,
5127,
3284,
1081,
202,
... |
table.addKeyListener( new KeyAdapter( ) { | if ( modifier instanceof ITableAreaModifier ) { table.addKeyListener( new KeyAdapter( ) { | private void createTableViewer( int tableStyle ) { Table table = new Table( this, tableStyle | SWT.FULL_SELECTION | SWT.BORDER ); table.setLayoutData( new GridData( GridData.FILL_BOTH ) ); tableViewer = new TableViewer( table ); table.addKeyListener( new KeyAdapter( ) { /** * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased( KeyEvent e ) { if ( e.keyCode == SWT.DEL && e.stateMask == 0 && !getSelection( ).isEmpty( ) && modifier.removeItem( getSelection( ).toArray( ) ) ) { tableViewer.refresh( ); updateButtons( ); } } } ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9def0d3f4770404bae8ad9c41d93b5cca9b94576/TableArea.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/swt/custom/TableArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
19565,
18415,
12,
509,
1014,
2885,
262,
202,
95,
202,
202,
1388,
1014,
273,
394,
3555,
12,
333,
16,
1014,
2885,
9506,
202,
96,
348,
8588,
18,
18111,
67,
1090,
15445,
950... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
19565,
18415,
12,
509,
1014,
2885,
262,
202,
95,
202,
202,
1388,
1014,
273,
394,
3555,
12,
333,
16,
1014,
2885,
9506,
202,
96,
348,
8588,
18,
18111,
67,
1090,
15445,
950... |
SwingUtilities.invokeLater(new Runnable() { public void run() { new SchedaView(view, true, (JasperPrint) value) .setVisible(true); } }); | new SchedaView(view, true, (JasperPrint) value) .setVisible(true); | public void actionPerformed(ActionEvent actionEvent) { try { if (model.getTableModel().getSelection().values().size() < 1) { JOptionPane.showMessageDialog(view, L10n.getString("Message.CheckAnOccurrence"), L10n.getString("Message.CheckAnOccurrenceTitle"), JOptionPane.INFORMATION_MESSAGE); return; } final JasperReport schedaReport; InputStream schedaIs = this.getClass().getClassLoader().getResourceAsStream( "net/sf/plantlore/client/resources/SchedaA6.jasper"); try { ObjectInputStream schedaOis = new ObjectInputStream( schedaIs); schedaReport = (JasperReport) schedaOis.readObject(); } catch (FileNotFoundException ex) { logger.error("Problem loading jasper report resource: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Error.InternalProblem") + "\n" + ex.getMessage(), L10n .getString("Error.InternalProblemTitle"), JOptionPane.INFORMATION_MESSAGE); return; } catch (IOException ex) { logger.error("Problem loading jasper report resource: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Error.InternalProblem") + ex.getMessage(), L10n .getString("Error.InternalProblemTitle"), JOptionPane.INFORMATION_MESSAGE); return; } catch (ClassNotFoundException ex) { logger.error("Problem loading jasper report resource: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Error.InternalProblem") + ex.getMessage(), L10n .getString("Error.InternalProblemTitle"), JOptionPane.INFORMATION_MESSAGE); return; } prefs = Preferences.userNodeForPackage(AppCoreCtrl.class); String h1 = prefs.get("HEADER_ONE", "Set the first header in settings, please."); String h2 = prefs.get("HEADER_TWO", "Set the second header in settings, please."); final HashMap params = new HashMap(); params.put("HEADER_ONE", h1); params.put("HEADER_TWO", h2); Task task = new Task() { JasperPrint jasperPrint; public Object task() throws JRException { jasperPrint = JasperFillManager.fillReport( schedaReport, params, new JasperDataSource(model.getDatabase(), model .getTableModel().getSelection())); fireStopped(jasperPrint); return jasperPrint; } }; ProgressBar pb = new ProgressBar(task, view, true) { public void exceptionHandler(final Exception ex) { logger.error("Error while filling jasper report in SchedaAction: "+ ex); ex.printStackTrace(); SwingUtilities.invokeLater(new Runnable() { public void run() { JOptionPane.showMessageDialog(view.getParent(), L10n.getString("Print.Message.BrokenReport") + "\n" + ex.getMessage(), L10n.getString("Print.Message.BrokenReport"), JOptionPane.WARNING_MESSAGE); } }); getTask().stop(); } public void afterStopped(final Object value) { SwingUtilities.invokeLater(new Runnable() { public void run() { new SchedaView(view, true, (JasperPrint) value) .setVisible(true); } }); } }; task.start(); } catch (Exception ex) { logger.error("Broken report: " + ex); JOptionPane.showMessageDialog(view, L10n .getString("Print.Message.BrokenReport") + "\n" + ex.getMessage(), L10n .getString("Print.Message.BrokenReport"), JOptionPane.WARNING_MESSAGE); ex.printStackTrace(); } } | 57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/abc9578bcfdca31e80420b2aaa8f8aba4dd53fa6/AppCoreCtrl.java/buggy/trunk/src/net/sf/plantlore/client/AppCoreCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
1301,
1133,
13,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
2284,
18,
588,
1388,
1488,
7675,
588,
6233,
7675,
2372,
7675,
1467,
1435,
411,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
1301,
1133,
13,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
2284,
18,
588,
1388,
1488,
7675,
588,
6233,
7675,
2372,
7675,
1467,
1435,
411,
404,
... |
org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); | org.exist.xquery.parser.XQueryAST tmp331_AST = null; tmp331_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp331_AST); | public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp387_AST = null; tmp387_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp387_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 127: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(127); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 139: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(139); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 144: { org.exist.xquery.parser.XQueryAST tmp395_AST = null; tmp395_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp395_AST); match(144); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 145: { org.exist.xquery.parser.XQueryAST tmp396_AST = null; tmp396_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp396_AST); match(145); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 140: { org.exist.xquery.parser.XQueryAST tmp397_AST = null; tmp397_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp397_AST); match(140); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp398_AST = null; tmp398_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp398_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp399_AST = null; tmp399_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp399_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp400_AST = null; tmp400_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp400_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp401_AST = null; tmp401_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp401_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case VERSION: { org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST); match(VERSION); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case XQUERY: { org.exist.xquery.parser.XQueryAST tmp403_AST = null; tmp403_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp403_AST); match(XQUERY); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp404_AST = null; tmp404_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp404_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp405_AST = null; tmp405_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp405_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp406_AST = null; tmp406_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp406_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp408_AST = null; tmp408_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp408_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp410_AST = null; tmp410_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp410_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp411_AST = null; tmp411_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp411_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp412_AST = null; tmp412_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp412_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp413_AST = null; tmp413_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp413_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp414_AST = null; tmp414_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp414_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp415_AST = null; tmp415_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp415_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp416_AST = null; tmp416_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp416_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp417_AST = null; tmp417_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp417_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp418_AST = null; tmp418_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp418_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp419_AST = null; tmp419_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp419_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp420_AST = null; tmp420_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp420_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp421_AST = null; tmp421_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp421_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp422_AST = null; tmp422_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp422_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp423_AST = null; tmp423_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp423_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp424_AST = null; tmp424_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp424_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp425_AST = null; tmp425_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp425_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp426_AST = null; tmp426_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp426_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp427_AST = null; tmp427_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp427_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp428_AST = null; tmp428_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp428_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp429_AST = null; tmp429_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp429_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp430_AST = null; tmp430_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp430_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp431_AST = null; tmp431_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp431_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
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,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,... |
Result result = runQuery( "with member [Measures].[Accumulated Sales] as 'Sum(YTD(),[Measures].[Store Sales])'" + nl + "select" + nl + " {[Measures].[Store Sales],[Measures].[Accumulated Sales]} on columns," + nl + " {Descendants([Time].[1997],[Time].[Month])} on rows" + nl + "from Sales"); | runQueryCheckResult(sampleQueries[7]); | public void testSample7() { Result result = runQuery( "with member [Measures].[Accumulated Sales] as 'Sum(YTD(),[Measures].[Store Sales])'" + nl + "select" + nl + " {[Measures].[Store Sales],[Measures].[Accumulated Sales]} on columns," + nl + " {Descendants([Time].[1997],[Time].[Month])} on rows" + nl + "from Sales"); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/7509e0f25235fd2cb529aabfa3408833d5f3a58b/FoodMartTestCase.java/buggy/src/main/mondrian/test/FoodMartTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
27,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
8973,
5283,
690,
25996,
65,
487,
296,
3495,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
27,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
8973,
5283,
690,
25996,
65,
487,
296,
3495,
12,... |
} else if (e.getType() == PipelineEvent.INSERT) { int addedRow = e.getRow(); layoutTask(addedRow); for (int i = addedRow + 1; i < model.getTaskCount(); i++) { TaskPanel task = (TaskPanel) taskDisplayList.get(i); task.setTaskIndex(i); } addItemsToTaskComboBox(); TaskPanel addedTask = (TaskPanel) taskDisplayList.get(addedRow); Rectangle rect = addedTask.getBounds(); JViewport jvp = scrollPane.getViewport(); Rectangle rectSpn = jvp.getViewRect(); if (!rectSpn.contains(rect)) { Point p = new Point(0, rect.y); jvp.setViewPosition(p); } | scrollTo(movedTask); | public void pipelineChanged(PipelineEvent e) { if (e.getType() == PipelineEvent.DELETE) { int deletedRow = e.getRow(); TaskPanel deletedTask = (TaskPanel) taskDisplayList .remove(deletedRow); tasksPanel.remove(deletedTask); tasksLayout.removeRow(deletedRow + 1); for (int i = deletedRow; i < model.getTaskCount(); i++) { TaskPanel task = (TaskPanel) taskDisplayList.get(i); task.setTaskIndex(i); } addItemsToTaskComboBox(); } else if (e.getType() == PipelineEvent.INSERT) { int addedRow = e.getRow(); layoutTask(addedRow); for (int i = addedRow + 1; i < model.getTaskCount(); i++) { TaskPanel task = (TaskPanel) taskDisplayList.get(i); task.setTaskIndex(i); } addItemsToTaskComboBox(); TaskPanel addedTask = (TaskPanel) taskDisplayList.get(addedRow); Rectangle rect = addedTask.getBounds(); JViewport jvp = scrollPane.getViewport(); Rectangle rectSpn = jvp.getViewRect(); if (!rectSpn.contains(rect)) { Point p = new Point(0, rect.y); jvp.setViewPosition(p); } } else { layoutTasks(); } tasksPanel.invalidate(); tasksPanel.validate(); System.out.println(this.taskDisplayList); } | 57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/b463d727cb26ba83f550f6fea3373e25edbe21ce/PipelineEditor.java/clean/clients/JavaGE/src/org/genepattern/gpge/ui/tasks/pipeline/PipelineEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5873,
5033,
12,
8798,
1133,
425,
13,
288,
9506,
202,
430,
261,
73,
18,
588,
559,
1435,
422,
13671,
1133,
18,
6460,
13,
288,
1082,
202,
474,
4282,
1999,
273,
425,
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,
482,
918,
5873,
5033,
12,
8798,
1133,
425,
13,
288,
9506,
202,
430,
261,
73,
18,
588,
559,
1435,
422,
13671,
1133,
18,
6460,
13,
288,
1082,
202,
474,
4282,
1999,
273,
425,
18,
58... |
VM.assert(size <= GC_MAX_SMALL_SIZE); VM.assert(VM_Processor.getCurrentProcessor().backingSLHeap == this); | VM._assert(size <= GC_MAX_SMALL_SIZE); VM._assert(VM_Processor.getCurrentProcessor().backingSLHeap == this); | protected VM_Address allocateZeroedMemory(int size) throws VM_PragmaUninterruptible { if (VM.VerifyAssertions) { VM.assert(size <= GC_MAX_SMALL_SIZE); VM.assert(VM_Processor.getCurrentProcessor().backingSLHeap == this); } return allocateFastPath(size); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f852e312fd5d6396bdeff809dda7a5e06d3d3bed/VM_SegregatedListHeap.java/buggy/rvm/src/vm/memoryManagers/watson/common/heaps/VM_SegregatedListHeap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
1887,
10101,
7170,
329,
6031,
12,
474,
963,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
288,
1377,
8251,
18,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
1887,
10101,
7170,
329,
6031,
12,
474,
963,
13,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
288,
1377,
8251,
18,
11... |
private void store(long index, IRubyObject value) { | private IRubyObject store(long index, IRubyObject value) { | private void store(long index, IRubyObject value) { modify(); if (index < 0) { index += getLength(); if (index < 0) { throw getRuntime().newIndexError("index " + (index - getLength()) + " out of array"); } } autoExpand(index + 1); list.set((int) index, value); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyArray.java/clean/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
1707,
12,
5748,
770,
16,
15908,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
1615,
411,
374,
13,
288,
5411,
770,
1011,
9888,
5621,
5411,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
1707,
12,
5748,
770,
16,
15908,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
1615,
411,
374,
13,
288,
5411,
770,
1011,
9888,
5621,
5411,
309,
261,
... |
public PostCompilerSetting getSetting() { return (PostCompilerSetting) this.extensionSetting; | public PreCompilerSetting getSetting() { return (PreCompilerSetting) this.extensionSetting; | public PostCompilerSetting getSetting() { return (PostCompilerSetting) this.extensionSetting; } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/1ee4a149e0c86595e88d0d025db1c86a8ca2527b/PreCompiler.java/clean/enough-polish-build/source/src/de/enough/polish/precompile/PreCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5616,
9213,
5568,
20569,
1435,
288,
202,
202,
2463,
261,
3349,
9213,
5568,
13,
333,
18,
6447,
5568,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
5616,
9213,
5568,
20569,
1435,
288,
202,
202,
2463,
261,
3349,
9213,
5568,
13,
333,
18,
6447,
5568,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assertEquals(loadedModel.getModelName(), "aLoadedModel"); | assertEquals(loadedModel.getModelName(), "cdkLMModel1"); | public void testModelLoadSave() throws QSARModelException { double[][] x = getXData(); double[] y = getYData(); LinearRegressionModel lrm = new LinearRegressionModel(x, y); lrm.build(); lrm.saveModel(lrm.getModelName(), "lmtest.Rda"); LinearRegressionModel loadedModel = new LinearRegressionModel(); loadedModel.loadModel("lmtest.Rda", "aLoadedModel"); assertEquals(loadedModel.getModelName(), "aLoadedModel"); assertNotNull(loadedModel.getModel()); double[] coeff = loadedModel.getCoefficients(); assertTrue(coeff != null); assertEquals(coeff[0], 0.5079196, .000001); assertEquals(coeff[1], 0.0017640, .000001); assertEquals(coeff[2], 0.0038752, .000001); assertEquals(coeff[3], -0.00228948, .000001); /* Test predictions */ Double[][] newx = { {new Double(9.81536768251), new Double(3.82849269659), new Double(7.22212024421)}, {new Double(0.197449829806), new Double(0.324130354642), new Double(2.8329420321)}, {new Double(0.548460836141), new Double(7.28037586863), new Double(8.13728493983)}, {new Double(1.76049278788), new Double(6.41731766803), new Double(5.53986167864)}, {new Double(3.4541825491), new Double(9.78038580407), new Double(3.58954097059)} }; loadedModel.setParameters("newdata", newx); loadedModel.setParameters("interval", "confidence"); loadedModel.predict(); RList predList = loadedModel.getModelPredict(); double[] preds = predList.at("fit").asDoubleArray(); assertTrue(preds != null); assertEquals(preds[0], 0.5235362, 0.0000001); assertEquals(preds[1], 0.5030381, 0.0000001); assertEquals(preds[2], 0.5184706, 0.0000001); assertEquals(preds[3], 0.5232108, 0.0000001); assertEquals(preds[4], 0.5436967, 0.0000001); assertEquals(predList.at("df").asInt(), 96, 0.1); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/f86f33319129d67eb5b6609f3c4a56de3a056ea0/LinearRegressionModelTest.java/buggy/src/org/openscience/cdk/test/qsar/model/R2/LinearRegressionModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1488,
2563,
4755,
1435,
1216,
2238,
55,
985,
1488,
503,
288,
3639,
1645,
63,
6362,
65,
619,
273,
6538,
751,
5621,
3639,
1645,
8526,
677,
273,
10448,
751,
5621,
3639,
1392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1488,
2563,
4755,
1435,
1216,
2238,
55,
985,
1488,
503,
288,
3639,
1645,
63,
6362,
65,
619,
273,
6538,
751,
5621,
3639,
1645,
8526,
677,
273,
10448,
751,
5621,
3639,
1392... |
List<AntProperty> properties = new ArrayList<AntProperty>(); | final List<AntProperty> properties = new ArrayList<AntProperty>(); | public AntProperty[] getParams() { if (myParams == null) { List<AntProperty> properties = new ArrayList<AntProperty>(); for (AntElement element : getChildren()) { if (element instanceof AntProperty) { properties.add((AntProperty)element); } } myParams = properties.toArray(new AntProperty[properties.size()]); } return myParams; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8db64e6f6295a85b1ed9bb2320343787f08b11ba/AntCallImpl.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntCallImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18830,
1396,
8526,
13281,
1435,
288,
565,
309,
261,
4811,
1370,
422,
446,
13,
288,
1377,
727,
987,
32,
14925,
1396,
34,
1790,
273,
394,
2407,
32,
14925,
1396,
34,
5621,
1377,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18830,
1396,
8526,
13281,
1435,
288,
565,
309,
261,
4811,
1370,
422,
446,
13,
288,
1377,
727,
987,
32,
14925,
1396,
34,
1790,
273,
394,
2407,
32,
14925,
1396,
34,
5621,
1377,
364,
... |
private AutoUnboxingVisitor(BaseInspection inspection, InspectionManager inspectionManager, boolean isOnTheFly) { | private AutoUnboxingVisitor(BaseInspection inspection, InspectionManager inspectionManager, boolean isOnTheFly){ | private AutoUnboxingVisitor(BaseInspection inspection, InspectionManager inspectionManager, boolean isOnTheFly) { super(inspection, inspectionManager, isOnTheFly); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/e8f88fb4a3a61a65ed3157c65fd40dce00c8b17b/AutoUnboxingInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk/AutoUnboxingInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
8064,
984,
2147,
310,
7413,
12,
2171,
14985,
2763,
7017,
16,
22085,
7017,
1318,
2763,
7017,
1318,
16,
1250,
28181,
1986,
42,
715,
15329,
5411,
2240,
12,
2679,
7017,
16,
2763,
7017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
3238,
8064,
984,
2147,
310,
7413,
12,
2171,
14985,
2763,
7017,
16,
22085,
7017,
1318,
2763,
7017,
1318,
16,
1250,
28181,
1986,
42,
715,
15329,
5411,
2240,
12,
2679,
7017,
16,
2763,
7017,
... |
public MessageConsumer createConsumer(Session session, Destination destination) throws JMSException | public MessageConsumer createConsumer(Session session, Destination destination, boolean topic) throws JMSException | public MessageConsumer createConsumer(Session session, Destination destination) throws JMSException { return createConsumer(session, destination, null, false, null); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2da07b2e68f6a70ecd7a3eef319a983cbe6e6067/Jms11Support.java/clean/providers/jms/src/java/org/mule/providers/jms/Jms11Support.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
5869,
752,
5869,
12,
2157,
1339,
16,
10691,
2929,
16,
1250,
3958,
13,
1216,
20343,
565,
288,
3639,
327,
752,
5869,
12,
3184,
16,
2929,
16,
446,
16,
629,
16,
446,
1769,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
5869,
752,
5869,
12,
2157,
1339,
16,
10691,
2929,
16,
1250,
3958,
13,
1216,
20343,
565,
288,
3639,
327,
752,
5869,
12,
3184,
16,
2929,
16,
446,
16,
629,
16,
446,
1769,
565,
... |
} catch (NonExistingServiceException e) { if (e.getMessage().equals("noCurricularCourse")) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("noExecutionYear")) { errors.add("chosenExecutionYear", new ActionError( "error.coordinator.chosenExecutionYear", executionYear)); saveErrors(request, errors); } else { throw new NonExistingActionException(e); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("nullExecutionYearName")) { errors.add("nullName", new ActionError("error.coordinator.noExecutionYear")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculumInExecutionYear", executionYear)); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagementExecutionYears"); } request.setAttribute("infoCurriculum", infoCurriculum); request.setAttribute("canEdit", "false"); | } catch (NonExistingServiceException e) { if (e.getMessage().equals("noCurricularCourse")) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("noExecutionYear")) { errors.add("chosenExecutionYear", new ActionError( "error.coordinator.chosenExecutionYear", executionYear)); saveErrors(request, errors); } else { throw new NonExistingActionException(e); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("nullExecutionYearName")) { errors.add("nullName", new ActionError("error.coordinator.noExecutionYear")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculumInExecutionYear", executionYear)); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagementExecutionYears"); } request.setAttribute("infoCurriculum", infoCurriculum); request.setAttribute("canEdit", "false"); | public ActionForward viewCurricularCourseInformationHistory(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = getUserView(request); Integer infoCurricularCourseCode = getAndSetIntegerToRequest("infoCurricularCourseCode", request); String executionYear = getAndSetStringToRequest("executionYear", request); getAndSetIntegerToRequest("degreeCurricularPlanID", request); getAndSetStringToRequest("infoCurricularCourseName", request); InfoCurriculum infoCurriculum = null; ActionErrors errors = new ActionErrors(); Object[] args = { null, infoCurricularCourseCode, executionYear }; try { infoCurriculum = (InfoCurriculum) ServiceUtils.executeService(userView, "ReadCurriculumHistoryByCurricularCourseCodeAndExecutionYearName", args); } catch (NonExistingServiceException e) { if (e.getMessage().equals("noCurricularCourse")) { errors.add("chosenCurricularCourse", new ActionError( "error.coordinator.chosenCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("noExecutionYear")) { errors.add("chosenExecutionYear", new ActionError( "error.coordinator.chosenExecutionYear", executionYear)); saveErrors(request, errors); } else { throw new NonExistingActionException(e); } } catch (FenixServiceException e) { if (e.getMessage().equals("nullCurricularCourse")) { errors.add("nullCode", new ActionError("error.coordinator.noCurricularCourse")); saveErrors(request, errors); } else if (e.getMessage().equals("nullExecutionYearName")) { errors.add("nullName", new ActionError("error.coordinator.noExecutionYear")); saveErrors(request, errors); } else { throw new FenixActionException(e); } } if (infoCurriculum == null) { errors.add("noCurriculum", new ActionError("error.coordinator.noCurriculumInExecutionYear", executionYear)); saveErrors(request, errors); } if (!errors.isEmpty()) { return mapping.findForward("degreeCurricularPlanManagementExecutionYears"); } request.setAttribute("infoCurriculum", infoCurriculum); request.setAttribute("canEdit", "false"); return mapping.findForward("viewCurricularCourseInformation"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/c5a62c2f5472dc0e8aecc07bdde634af957d104c/DegreeCurricularPlanManagementDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/coordinator/DegreeCurricularPlanManagementDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1476,
2408,
1512,
2490,
39,
3117,
5369,
5623,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1476,
2408,
1512,
2490,
39,
3117,
5369,
5623,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
4... |
reportError("msg.trail.backslash", "", state); | reportError("msg.trail.backslash", ""); | parseTerm(CompilerState state) { char[] src = state.cpbegin; char c = src[state.cp++]; int nDigits = 2; int parenBaseCount = state.parenCount; int num, tmp; RENode term; int termStart; int ocp = state.cp; switch (c) { /* assertions and atoms */ case '^': state.result = new RENode(REOP_BOL); state.progLength++; return true; case '$': state.result = new RENode(REOP_EOL); state.progLength++; return true; case '\\': if (state.cp < state.cpend) { c = src[state.cp++]; switch (c) { /* assertion escapes */ case 'b' : state.result = new RENode(REOP_WBDRY); state.progLength++; return true; case 'B': state.result = new RENode(REOP_WNONBDRY); state.progLength++; return true; /* Decimal escape */ case '0':/* * Under 'strict' ECMA 3, we interpret \0 as NUL and don't accept octal. * However, (XXX and since Rhino doesn't have a 'strict' mode) we'll just * behave the old way for compatibility reasons. * (see http://bugzilla.mozilla.org/show_bug.cgi?id=141078) * */ /* octal escape */ num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': termStart = state.cp - 1; num = getDecimalValue(c, state); /* * n > 9 and > count of parentheses, * then treat as octal instead. */ if ((num > 9) && (num > state.parenCount)) { state.cp = termStart; num = 0; while (state.cp < state.cpend) { c = src[state.cp]; if ((c >= '0') && (c <= '7')) { state.cp++; tmp = 8 * num + (c - '0'); if (tmp > 0377) break; num = tmp; } else break; } c = (char)(num); doFlat(state, c); break; } /* otherwise, it's a back-reference */ state.result = new RENode(REOP_BACKREF); state.result.parenIndex = num - 1; state.progLength += 3; break; /* Control escape */ case 'f': c = 0xC; doFlat(state, c); break; case 'n': c = 0xA; doFlat(state, c); break; case 'r': c = 0xD; doFlat(state, c); break; case 't': c = 0x9; doFlat(state, c); break; case 'v': c = 0xB; doFlat(state, c); break; /* Control letter */ case 'c': if (((state.cp + 1) < state.cpend) && Character.isLetter(src[state.cp + 1])) c = (char)(src[state.cp++] & 0x1F); else { /* back off to accepting the original '\' as a literal */ --state.cp; c = '\\'; } doFlat(state, c); break; /* UnicodeEscapeSequence */ case 'u': nDigits += 2; // fall thru... /* HexEscapeSequence */ case 'x': { int n = 0; int i; for (i = 0; (i < nDigits) && (state.cp < state.cpend); i++) { int digit; c = src[state.cp++]; if (!isHex(c)) { /* * back off to accepting the original * 'u' or 'x' as a literal */ state.cp -= (i + 2); n = src[state.cp++]; break; } n = (n << 4) | unHex(c); } c = (char)(n); } doFlat(state, c); break; /* Character class escapes */ case 'd': state.result = new RENode(REOP_DIGIT); state.progLength++; break; case 'D': state.result = new RENode(REOP_NONDIGIT); state.progLength++; break; case 's': state.result = new RENode(REOP_SPACE); state.progLength++; break; case 'S': state.result = new RENode(REOP_NONSPACE); state.progLength++; break; case 'w': state.result = new RENode(REOP_ALNUM); state.progLength++; break; case 'W': state.result = new RENode(REOP_NONALNUM); state.progLength++; break; /* IdentityEscape */ default: state.result = new RENode(REOP_FLAT); state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } break; } else { /* a trailing '\' is an error */ reportError("msg.trail.backslash", "", state); return false; } case '(': { RENode result = null; termStart = state.cp; if ((state.cp < state.cpend) && (src[state.cp] == '?') && ( (src[state.cp + 1] == '=') || (src[state.cp + 1] == '!') || (src[state.cp + 1] == ':') )) { ++state.cp; switch (src[state.cp++]) { case '=': result = new RENode(REOP_ASSERT); /* ASSERT, <next>, ... ASSERTTEST */ state.progLength += 4; break; case '!': result = new RENode(REOP_ASSERT_NOT); /* ASSERTNOT, <next>, ... ASSERTNOTTEST */ state.progLength += 4; break; } } else { result = new RENode(REOP_LPAREN); /* LPAREN, <index>, ... RPAREN, <index> */ state.progLength += 6; result.parenIndex = state.parenCount++; } if (!parseDisjunction(state)) return false; if ((state.cp == state.cpend) || (src[state.cp] != ')')) { reportError("msg.unterm.paren", "", state); return false; } else ++state.cp; if (result != null) { result.kid = state.result; state.result = result; } break; } case '[': state.result = new RENode(REOP_CLASS); termStart = state.cp; state.result.startIndex = termStart; while (true) { if (state.cp == state.cpend) { reportError("msg.unterm.class", "", state); return false; } if (src[state.cp] == '\\') state.cp++; else { if (src[state.cp] == ']') { state.result.kidlen = state.cp - termStart; break; } } state.cp++; } state.result.index = state.classCount++; /* * Call calculateBitmapSize now as we want any errors it finds * to be reported during the parse phase, not at execution. */ if (!calculateBitmapSize(state, state.result, src, termStart, state.cp++)) return false; state.progLength += 3; /* CLASS, <index> */ break; case '.': state.result = new RENode(REOP_DOT); state.progLength++; break; case '*': case '+': case '}': case '?': reportError("msg.bad.quant", String.valueOf(src[state.cp - 1]), state); return false; default: state.result = new RENode(REOP_FLAT); state.result.chr = c; state.result.length = 1; state.result.flatIndex = state.cp - 1; state.progLength += 3; break; } term = state.result; boolean hasQ = false; if (state.cp < state.cpend) { switch (src[state.cp]) { case '+': state.result = new RENode(REOP_QUANT); state.result.min = 1; state.result.max = -1; /* <PLUS>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '*': state.result = new RENode(REOP_QUANT); state.result.min = 0; state.result.max = -1; /* <STAR>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '?': state.result = new RENode(REOP_QUANT); state.result.min = 0; state.result.max = 1; /* <OPT>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 8; hasQ = true; break; case '{': { int min = 0; int max = -1; int errIndex = state.cp++; state.result = new RENode(REOP_QUANT); c = src[state.cp]; if (isDigit(c)) { ++state.cp; min = getDecimalValue(c, state); c = src[state.cp]; } else { reportError("msg.bad.quant", String.valueOf(src[state.cp]), state); return false; } if ((min >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp]), state); return false; } if (c == ',') { c = src[++state.cp]; if (isDigit(c)) { ++state.cp; max = getDecimalValue(c, state); c = src[state.cp]; if ((max >> 16) != 0) { reportError("msg.overlarge.max", String.valueOf(src[state.cp]), state); return false; } if (min > max) { reportError("msg.max.lt.min", String.valueOf(src[state.cp]), state); return false; } } if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp]), state); return false; } } else { max = min; if (max == 0) { reportError("msg.zero.quant", String.valueOf(src[state.cp]), state); return false; } } state.result.min = min; state.result.max = max; /* QUANT, <min>, <max>, <parencount>, <parenindex>, <next> ... <ENDCHILD> */ state.progLength += 12; if (c == '}') { hasQ = true; break; } else { reportError("msg.unterm.quant", String.valueOf(src[state.cp]), state); return false; } } } } if (!hasQ) return true; ++state.cp; state.result.kid = term; state.result.parenIndex = parenBaseCount; state.result.parenCount = state.parenCount - parenBaseCount; if ((state.cp < state.cpend) && (src[state.cp] == '?')) { ++state.cp; state.result.greedy = false; } else state.result.greedy = true; return true; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/10f7bc1e8d7b13b30c167a7687ada1d9a0c79b5e/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
4065,
12,
9213,
1119,
919,
13,
565,
288,
3639,
1149,
8526,
1705,
273,
919,
18,
4057,
10086,
31,
3639,
1149,
276,
273,
1705,
63,
2019,
18,
4057,
9904,
15533,
3639,
509,
290,
9537,
... |
public RequestSenseData requestSense() throws SCSIException, | public SenseData requestSense() throws SCSIException, | public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/af3e25629c7bca20276f004befd3b45af9fa6102/SCSITest.java/clean/fs/src/test/org/jnode/test/fs/SCSITest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
348,
3558,
751,
590,
29713,
1435,
1216,
8795,
2320,
503,
16,
5411,
23334,
16,
7558,
288,
3639,
727,
1160,
8526,
501,
273,
394,
1160,
63,
8303,
15533,
3639,
727,
385,
2290,
276,
1966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
3558,
751,
590,
29713,
1435,
1216,
8795,
2320,
503,
16,
5411,
23334,
16,
7558,
288,
3639,
727,
1160,
8526,
501,
273,
394,
1160,
63,
8303,
15533,
3639,
727,
385,
2290,
276,
1966... |
System.out.println ("-->atkText_get_text: " + start_offset + "," + end_offset); | if (DEBUG) System.out.println ("-->atkText_get_text: " + start_offset + "," + end_offset); | int atkText_get_text (int atkObject, int start_offset, int end_offset) { System.out.println ("-->atkText_get_text: " + start_offset + "," + end_offset); int parentResult = 0; if (OS.g_type_is_a (parentType, ATK_TEXT_TYPE)) { int superType = OS.g_type_interface_peek_parent (OS.ATK_TEXT_GET_IFACE (atkObject)); AtkTextIface textIface = new AtkTextIface (); OS.memmove (textIface, superType); if (textIface.get_text != 0) { parentResult = OS.call (textIface.get_text, atkObject, start_offset, end_offset); } } AccessibleObject object = getAccessibleObject (atkObject); if (object != null) { int result = object.atkText_get_text (start_offset, end_offset); if (result != AccessibleObject.NO_ANSWER) return result; } return parentResult; } | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/1fba1047c47b152366f4b2d823cbf695aad8436a/AccessibleType.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
622,
79,
1528,
67,
588,
67,
955,
261,
474,
622,
79,
921,
16,
509,
787,
67,
3348,
16,
509,
679,
67,
3348,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
7566,
413,
34,
25815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
622,
79,
1528,
67,
588,
67,
955,
261,
474,
622,
79,
921,
16,
509,
787,
67,
3348,
16,
509,
679,
67,
3348,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
7566,
413,
34,
25815,
... |
if(Mouse.getEventButtonState()) { | if(Mouse.getEventButton() != -1 && Mouse.getEventButtonState()) { | private void readBufferedMouse() { // iterate all events, use the last button down while(Mouse.next()) { if(Mouse.getEventButtonState()) { lastButton = Mouse.getEventButton(); } } updateState(); } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/db332762f584f9dbaee0227613924a413843950d/MouseTest.java/buggy/src/java/org/lwjgl/test/input/MouseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
17947,
9186,
1435,
288,
565,
368,
7401,
777,
2641,
16,
999,
326,
1142,
3568,
2588,
565,
1323,
12,
9186,
18,
4285,
10756,
288,
1377,
309,
12,
9186,
18,
588,
1133,
3616,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
855,
17947,
9186,
1435,
288,
565,
368,
7401,
777,
2641,
16,
999,
326,
1142,
3568,
2588,
565,
1323,
12,
9186,
18,
4285,
10756,
288,
1377,
309,
12,
9186,
18,
588,
1133,
3616,
1... |
protected int convertHeightInCharsToPixels(int chars) { return convertVerticalDLUsToPixels(chars * 8); | public static int convertHeightInCharsToPixels(FontMetrics fontMetrics, int chars) { return fontMetrics.getHeight() * chars; | protected int convertHeightInCharsToPixels(int chars) { return convertVerticalDLUsToPixels(chars * 8);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d9f7a617ed98e778f2d85eb7cd8f6aa746530e2c/Dialog.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/Dialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
509,
1765,
2686,
382,
7803,
774,
18079,
12,
474,
5230,
13,
288,
202,
2463,
1765,
15704,
8914,
3477,
774,
18079,
12,
7549,
380,
1725,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
509,
1765,
2686,
382,
7803,
774,
18079,
12,
474,
5230,
13,
288,
202,
2463,
1765,
15704,
8914,
3477,
774,
18079,
12,
7549,
380,
1725,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
final String implementationURL ) { m_extensionName = extensionName; m_specificationVendor = specificationVendor; | final String implementationURL) { this.extensionName = extensionName; this.specificationVendor = specificationVendor; | public Extension( final String extensionName, final String specificationVersion, final String specificationVendor, final String implementationVersion, final String implementationVendor, final String implementationVendorId, final String implementationURL ) { m_extensionName = extensionName; m_specificationVendor = specificationVendor; if( null != specificationVersion ) { try { m_specificationVersion = new DeweyDecimal( specificationVersion ); } catch( final NumberFormatException nfe ) { final String error = "Bad specification version format '" + specificationVersion + "' in '" + extensionName + "'. (Reason: " + nfe + ")"; throw new IllegalArgumentException( error ); } } m_implementationURL = implementationURL; m_implementationVendor = implementationVendor; m_implementationVendorID = implementationVendorId; if( null != implementationVersion ) { try { m_implementationVersion = new DeweyDecimal( implementationVersion ); } catch( final NumberFormatException nfe ) { final String error = "Bad implementation version format '" + implementationVersion + "' in '" + extensionName + "'. (Reason: " + nfe + ")"; throw new IllegalArgumentException( error ); } } if( null == m_extensionName ) { throw new NullPointerException( "extensionName property is null" ); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/dcbaa15ab6c7d08e5bfb0c8a5531095913ab875e/Extension.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/extension/Extension.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10021,
12,
727,
514,
2710,
461,
16,
8227,
727,
514,
7490,
1444,
16,
8227,
727,
514,
7490,
14786,
16,
8227,
727,
514,
4471,
1444,
16,
8227,
727,
514,
4471,
14786,
16,
8227,
727,
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,
377,
1071,
10021,
12,
727,
514,
2710,
461,
16,
8227,
727,
514,
7490,
1444,
16,
8227,
727,
514,
7490,
14786,
16,
8227,
727,
514,
4471,
1444,
16,
8227,
727,
514,
4471,
14786,
16,
8227,
727,
51... |
ResultSet rs = conn.ExecSQL(sb.toString()); | ResultSet rs = conn.ExecSQL(null, sb.toString()); | public Object fetch(int oid) throws SQLException { try { Object obj = ourClass.newInstance(); // NB: we use java.lang.reflect here to prevent confusion with // the org.postgresql.Field java.lang.reflect.Field f[] = ourClass.getDeclaredFields(); boolean hasOID=false; int oidFIELD=-1; StringBuffer sb = new StringBuffer("select"); char sep=' '; for(int i=0;i<f.length;i++) { String n = f[i].getName(); if(n.equals("oid")) { hasOID=true; oidFIELD=i; } sb.append(sep); sb.append(n); sep=','; } sb.append(" from "); sb.append(tableName); sb.append(" where oid="); sb.append(oid); DriverManager.println("store: "+sb.toString()); ResultSet rs = conn.ExecSQL(sb.toString()); if(rs!=null) { if(rs.next()) { for(int i=0;i<f.length;i++) { f[i].set(obj,rs.getObject(i+1)); } } rs.close(); } else throw new PSQLException("postgresql.unexpected"); return obj; } catch(IllegalAccessException iae) { throw new SQLException(iae.toString()); } catch(InstantiationException ie) { throw new SQLException(ie.toString()); } } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Serialize.java/buggy/src/interfaces/jdbc/org/postgresql/util/Serialize.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2158,
12,
474,
7764,
13,
1216,
6483,
225,
288,
565,
775,
288,
1377,
1033,
1081,
273,
3134,
797,
18,
2704,
1442,
5621,
5411,
368,
20096,
30,
732,
999,
2252,
18,
4936,
18,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2158,
12,
474,
7764,
13,
1216,
6483,
225,
288,
565,
775,
288,
1377,
1033,
1081,
273,
3134,
797,
18,
2704,
1442,
5621,
5411,
368,
20096,
30,
732,
999,
2252,
18,
4936,
18,
173... |
Logger.warning(this, "getPath() : destinationDir == null"); | public String getPath() { if(destinationDir != null) return destinationDir + File.separator + filename; Logger.warning(this, "getPath() : destinationDir == null"); return null; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/074225bedc141cfdf7bd6cadd32a8820b50f16e9/FCPClientGet.java/buggy/src/thaw/fcp/FCPClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
4339,
1435,
288,
202,
202,
430,
12,
10590,
1621,
480,
446,
13,
1082,
202,
2463,
2929,
1621,
397,
1387,
18,
11287,
397,
1544,
31,
9506,
202,
3328,
18,
8551,
12,
2211,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
4339,
1435,
288,
202,
202,
430,
12,
10590,
1621,
480,
446,
13,
1082,
202,
2463,
2929,
1621,
397,
1387,
18,
11287,
397,
1544,
31,
9506,
202,
3328,
18,
8551,
12,
2211,
16,
... | |
public void run() { int lineNr = 0; String line = null; while (!m_stopThread) { try { lineNr = m_lineReader.getLineNumber(); line = m_lineReader.readLine(); } catch (IOException e) { messages.addElement(e.toString()); m_stopThread = true; } if (line != null) { messages.addElement(lineNr + ":\t" + line); } else { try { Thread.sleep(100); } catch (InterruptedException e1) { m_stopThread = true; } } } try { m_pipedIn.close(); } catch (IOException e) { e.printStackTrace(); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/55d19245237b3960088284d63408f9ccd59b7f87/CmsSetupLoggingThread.java/buggy/src/org/opencms/setup/CmsSetupLoggingThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2681,
1435,
95,
474,
1369,
18726,
33,
20,
31,
780,
1369,
33,
2011,
31,
17523,
12,
5,
81,
67,
5681,
3830,
15329,
698,
95,
1369,
18726,
33,
81,
67,
1369,
2514,
18,
588,
31063,
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,
6459,
2681,
1435,
95,
474,
1369,
18726,
33,
20,
31,
780,
1369,
33,
2011,
31,
17523,
12,
5,
81,
67,
5681,
3830,
15329,
698,
95,
1369,
18726,
33,
81,
67,
1369,
2514,
18,
588,
31063,
56... | ||
if (temp == null) { break; } if (temp.indexOf("=") != -1) { temp = MessageBodyParser .unMime(temp, false); } else if (temp.indexOf("MIME") != -1 || temp.indexOf( "mime") != -1) { temp = in.readLine(); temp = in.readLine(); if (temp.startsWith("--" + boundary)) { for (;;) { temp = in.readLine(); if(temp == null) break; else if(temp.equals("")) break; } } } else if (temp.startsWith("--" + boundary) && !temp.substring(14, 15). equals("-") && !temp.substring(14,15). equals(" ")) { break; } else if (temp.equals(".")) { break; } } break; } } | public static void getMailForReply(String whichBox, int whichmail, JTextArea jtarea) { String temp = null, boundary = null; boolean wait = true; try { BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(whichBox))); int i = 0; for (;;) { temp = in.readLine(); if (temp == null) { break; } else if (temp.equals(".")) { i++; } else if (temp.startsWith("From: ") && i == whichmail) { wait = false; } else if (temp.equals("") && i == whichmail && !wait) { for (;;) { jtarea.append(">" + temp + "\n"); temp = in.readLine(); if (temp == null) { break; } if (temp.indexOf("=") != -1) { temp = MessageBodyParser .unMime(temp, false); } else if (temp.indexOf("MIME") != -1 || temp.indexOf( "mime") != -1) { temp = in.readLine(); temp = in.readLine(); if (temp.startsWith("--" + boundary)) { for (;;) { temp = in.readLine(); if(temp == null) break; else if(temp.equals("")) break; } } } else if (temp.startsWith("--" + boundary) && !temp.substring(14, 15). equals("-") && !temp.substring(14,15). equals(" ")) { break; } else if (temp.equals(".")) { break; } } break; } } in.close(); } catch (IOException ioe) { System.out.println(ioe); } } | 3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/c309d11ff2a137ecffec677cdfe68e356932cfa8/Mailbox.java/buggy/mail/Mailbox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
31991,
1290,
7817,
12,
780,
1492,
3514,
16,
509,
1492,
4408,
16,
6862,
1082,
202,
46,
1528,
5484,
525,
88,
5036,
13,
288,
202,
202,
780,
225,
1906,
273,
446,
16,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
31991,
1290,
7817,
12,
780,
1492,
3514,
16,
509,
1492,
4408,
16,
6862,
1082,
202,
46,
1528,
5484,
525,
88,
5036,
13,
288,
202,
202,
780,
225,
1906,
273,
446,
16,
7... | |
if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET) | if (firstErrorOffset == FIRST_ERROR_UNSET){ | protected void failParse() { try { if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET) firstErrorOffset = LA(1).getOffset(); } catch (EndOfFileException eof) { // do nothing } finally { parsePassed = false; } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/226defa14a6967e9fb25044745732169a2192074/ExpressionParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2321,
3201,
1435,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
3645,
668,
2335,
422,
21786,
67,
3589,
67,
11271,
67,
2124,
4043,
13,
9506,
202,
3645,
668,
2335,
273,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2321,
3201,
1435,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
3645,
668,
2335,
422,
21786,
67,
3589,
67,
11271,
67,
2124,
4043,
13,
9506,
202,
3645,
668,
2335,
273,
29... |
libraryHandle.getThemes().add(defaultcopy); libraryHandle.getThemes().add(theme1copy); | defaultcopy1.setName("defaultTheme1"); theme1copy1.setName("theme11"); libraryHandle.getThemes().add(defaultcopy1); libraryHandle.getThemes().add(theme1copy1); | public void testCopyPasteTheme() throws Exception { openLibrary(LibC); ThemeHandle defaulttheme = libraryHandle.findTheme("defaultTheme"); ThemeHandle theme1 = libraryHandle.findTheme("theme1"); assertNotNull(defaulttheme); assertNotNull(theme1); ThemeHandle defaultcopy = ((Theme)defaulttheme.copy()).handle(libraryHandle.getModule()); ThemeHandle theme1copy = ((Theme)theme1.copy()).handle(libraryHandle.getModule()); try { libraryHandle.getThemes().add(defaultcopy); fail(); } catch(NameException e) { assertNotNull(e); } defaultcopy.setName("defaultTheme1"); theme1copy.setName("theme11"); libraryHandle.getThemes().add(defaultcopy); libraryHandle.getThemes().add(theme1copy); assertEquals("defaultTheme1",libraryHandle.getThemes().get(2).getName()); assertEquals("theme11",libraryHandle.getThemes().get(3).getName()); //paste themes to another library openLibrary(LibB); libraryHandle.getThemes().add(defaultcopy); libraryHandle.getThemes().add(theme1copy); assertEquals("defaultTheme1",libraryHandle.getThemes().get(2).getName()); assertEquals("theme11",libraryHandle.getThemes().get(3).getName()); } | 58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/6a3426426d9e9449e97566a819e6e415c06772b2/ThemeTest.java/buggy/plugins/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/ThemeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
225,
1071,
918,
1842,
2951,
52,
14725,
8335,
1435,
1216,
1185,
3639,
288,
377,
202,
565,
1696,
9313,
12,
5664,
39,
1769,
377,
202,
565,
19745,
3259,
805,
7997,
273,
5313,
3259,
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,
1377,
202,
225,
1071,
918,
1842,
2951,
52,
14725,
8335,
1435,
1216,
1185,
3639,
288,
377,
202,
565,
1696,
9313,
12,
5664,
39,
1769,
377,
202,
565,
19745,
3259,
805,
7997,
273,
5313,
3259,
18,
... |
if (page == INITIAL_PAGE) { | if (page == ADD_PAGE) { | protected Map referenceData(HttpServletRequest request, int page) throws Exception { Map model = new HashMap(); Presentation presentation = (Presentation) request.getSession().getAttribute(getCommandName()); String baseUrl = this.getServerConfigurationService().getServerUrl(); model.put("baseUrl", baseUrl); model.put("currentPage", getCurrentPageNumber(presentation, page)); model.put("totalPages", getTotalPages(presentation, page)); model.put("allowGuests", Config.getInstance().getProperties().getProperty("allowGuests")); if (page == INITIAL_PAGE) { Agent agent = getAuthManager().getAgent(); model.put("templates", getPresentationManager().findTemplatesByOwner(agent, PortalService.getCurrentSiteId())); model.put("publishedTemplates", getPresentationManager().findPublishedTemplates(PortalService.getCurrentSiteId())); return model; } if (page == PROPERTY_PAGE) { PresentationTemplate template = getPresentationManager().getPresentationTemplate(presentation.getTemplate().getId()); presentation.setTemplate(template); SchemaNode schema = loadSchema(presentation.getTemplate().getPropertyPage(), model).getChild(presentation.getTemplate().getDocumentRoot()); //make sure schema for properties is set correctly for both add, or edit if (presentation.getProperties() == null) { presentation.setProperties(new ElementBean(presentation.getTemplate().getDocumentRoot(), schema)); } else { presentation.getProperties().setCurrentSchema(schema); } } if (page == PRESETATION_FREE_FORM_PAGES) { if (presentation.getPages() == null) { presentation.setPages( getPresentationManager().getPresentationPagesByPresentation(presentation.getId())); } if (presentation.getPages().size() == 0) { presentation.setPages(new ArrayList()); } } if (page == PRESENTATION_ITEMS) { Map artifacts = new HashMap(); Map artifactCache = new HashMap(); Agent agent = getAuthManager().getAgent(); PresentationTemplate template = getPresentationManager().getPresentationTemplate(presentation.getTemplate().getId()); presentation.setTemplate(template); model.put("types", template.getSortedItems()); for (Iterator i = template.getSortedItems().iterator(); i.hasNext();) { PresentationItemDefinition itemDef = (PresentationItemDefinition) i.next(); if (artifactCache.containsKey(itemDef.getType()) && !itemDef.getHasMimeTypes()){ artifacts.put(itemDef.getId().getValue(), artifactCache.get(itemDef.getType())); } else { Collection itemArtifacts = getPresentationManager().loadArtifactsForItemDef(itemDef, agent); if (!itemDef.getHasMimeTypes()) { // cache only full list artifactCache.put(itemDef.getType(), itemArtifacts); } artifacts.put(itemDef.getId().getValue(), itemArtifacts); } } model.put("artifacts", artifacts); Collection items = new ArrayList(); for (Iterator i = presentation.getPresentationItems().iterator(); i.hasNext();) { PresentationItem item = (PresentationItem) i.next(); items.add(item.getDefinition().getId().getValue() + "." + item.getArtifactId()); } model.put("items", items); return model; } if (page == PRESENTATION_AUTHORIZATIONS) { Agent viewer = new AgentImpl(); model.put("viewer", new AgentImpl()); model.put(BindException.ERROR_KEY_PREFIX + "viewer", new BindException(viewer,"viewer")); String siteId = getWorksiteManager().getCurrentWorksiteId().getValue(); String filter = request.getParameter("filterSelect"); if (filter != null) { List members = getAgentManager().getWorksiteAgents(siteId); model.put("members", members); model.put("filterSelect", filter); } model.put("roles", getAgentManager().getWorksiteRoles(siteId)); } return model; } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/f4e38de6cef0c724edb6a06233afad94b49e1073/AddPresentationController.java/buggy/presentation/tool/src/java/org/theospi/portfolio/presentation/control/AddPresentationController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1635,
2114,
751,
12,
2940,
18572,
590,
16,
509,
1363,
13,
1216,
1185,
288,
1377,
1635,
938,
273,
394,
4317,
5621,
1377,
25130,
367,
22525,
273,
261,
6351,
367,
13,
590,
18,
588,
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,
565,
4750,
1635,
2114,
751,
12,
2940,
18572,
590,
16,
509,
1363,
13,
1216,
1185,
288,
1377,
1635,
938,
273,
394,
4317,
5621,
1377,
25130,
367,
22525,
273,
261,
6351,
367,
13,
590,
18,
588,
2... |
myPOP3ShowAsImap = aPOP3ShowAsImap; } | if (a instanceof Account_POP3) { ((Account_POP3)a).setShowAsIMAP(aPOP3ShowAsImap); } } | public void setPOP3ShowAsImap(boolean aPOP3ShowAsImap) { myPOP3ShowAsImap = aPOP3ShowAsImap; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b13c667b376deb4a8f2c235ffd847b57616d23c4/ServerStructure.java/buggy/grendel/sources/grendel/prefs/base/ServerStructure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
30374,
23,
5706,
1463,
20827,
12,
6494,
279,
30374,
23,
5706,
1463,
20827,
13,
288,
565,
3399,
30374,
23,
5706,
1463,
20827,
273,
279,
30374,
23,
5706,
1463,
20827,
31,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
444,
30374,
23,
5706,
1463,
20827,
12,
6494,
279,
30374,
23,
5706,
1463,
20827,
13,
288,
565,
3399,
30374,
23,
5706,
1463,
20827,
273,
279,
30374,
23,
5706,
1463,
20827,
31,
22... |
public org.quickfix.field.EventDate getEventDate() throws FieldNotFound { org.quickfix.field.EventDate value = new org.quickfix.field.EventDate(); | public quickfix.field.EventDate getEventDate() throws FieldNotFound { quickfix.field.EventDate value = new quickfix.field.EventDate(); | public org.quickfix.field.EventDate getEventDate() throws FieldNotFound { org.quickfix.field.EventDate value = new org.quickfix.field.EventDate(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1626,
9832,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1626,
460,
273,
394,
2358,
18,
19525,
904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1626,
9832,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1626,
460,
273,
394,
2358,
18,
19525,
904,
... |
solutionPanel = new SolutionPanel(frame, solver, this); | solutionPanel = new SolutionPanel(frame, solver, this, this); | private void createContents() { JPanel rootPanel = new JPanel(); rootPanel.setPreferredSize(new Dimension(600, 500)); frame.getContentPane().add(rootPanel); rootPanel.setLayout(new GridBagLayout()); rootPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); GridBagConstraints rc = new GridBagConstraints(); rc.gridx = 0; rc.fill = GridBagConstraints.BOTH; rc.weightx = 1.0; // Set up the info lines configInfo = new JLabel(); configInfo.setHorizontalAlignment(JLabel.CENTER); rc.weighty = 0.0; rootPanel.add(configInfo, rc); JLabel usageInfo = new JLabel("(Use File/New to reconfigure)"); usageInfo.setHorizontalAlignment(JLabel.CENTER); rootPanel.add(usageInfo, rc); // Set up the object panel JPanel objectPanel = new JPanel(); objectPanel.setLayout(new BoxLayout(objectPanel, BoxLayout.LINE_AXIS)); objectPanel.setBorder(BorderFactory.createEmptyBorder(10,0,10,0)); rc.weighty = 1.0; rootPanel.add(objectPanel, rc); // Set up the topic panel topicPanel = new ObjectPanel("Topics", new EditTopicWindow(frame), solver, this); objectPanel.add(topicPanel); objectPanel.add(Box.createRigidArea(new Dimension(10, 0))); // Set up the person panel personPanel = new ObjectPanel("Persons", new EditPersonWindow(frame), solver, this); objectPanel.add(personPanel); objectPanel.add(Box.createRigidArea(new Dimension(10, 0))); // Set up the role panel rolePanel = new ObjectPanel("Roles", new EditRoleWindow(frame), solver, this); objectPanel.add(rolePanel); // Set up the solution panel solutionPanel = new SolutionPanel(frame, solver, this); rc.weighty = 0.0; rootPanel.add(solutionPanel, rc); // Make sure that the solution panel gets informed about all name changes. NameChangeListener listener = solutionPanel.getNameChangeListener(); personPanel.addNameChangeListener(listener); topicPanel.addNameChangeListener(listener); rolePanel.addNameChangeListener(listener); } | 13096 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13096/f93bba80106986868cf60850520776bb1345d36c/MainWindow.java/buggy/trunk/openSess/MainWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
752,
6323,
1435,
225,
288,
565,
24048,
1365,
5537,
273,
394,
24048,
5621,
565,
1365,
5537,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
28133,
16,
6604,
10019,
565,
2623,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
752,
6323,
1435,
225,
288,
565,
24048,
1365,
5537,
273,
394,
24048,
5621,
565,
1365,
5537,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
28133,
16,
6604,
10019,
565,
2623,
18,
588... |
return true; | public void setDragData(DragSourceEvent anEvent, IStructuredSelection aSelection) { if (LocalSelectionTransfer.getInstance().isSupportedType( anEvent.dataType)) { anEvent.data = aSelection; if (DEBUG) { System.out .println("ResourceDragAdapterAssistant.dragSetData set LocalSelectionTransfer"); //$NON-NLS-1$ } } else if (ResourceTransfer.getInstance().isSupportedType( anEvent.dataType)) { anEvent.data = getSelectedResources(aSelection); if (DEBUG) { System.out .println("ResourceDragAdapterAssistant.dragSetData set ResourceTransfer"); //$NON-NLS-1$ } } else if (FileTransfer.getInstance().isSupportedType(anEvent.dataType)) { IResource[] resources = getSelectedResources(aSelection); // Get the path of each file and set as the drag data final int length = resources.length; int actualLength = 0; String[] fileNames = new String[length]; for (int i = 0; i < length; i++) { IPath location = resources[i].getLocation(); // location may be null. See bug 29491. if (location != null) { fileNames[actualLength++] = location.toOSString(); } } if (actualLength == 0) { return; } // was one or more of the locations null? if (actualLength < length) { String[] tempFileNames = fileNames; fileNames = new String[actualLength]; for (int i = 0; i < actualLength; i++) { fileNames[i] = tempFileNames[i]; } } anEvent.data = fileNames; if (DEBUG) { System.out .println("ResourceDragAdapterAssistant.dragSetData set FileTransfer"); //$NON-NLS-1$ } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/76423e6866ed14a355f5dc7722b5b5eee2576d26/ResourceDragAdapterAssistant.java/buggy/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2463,
638,
31,
918,
2463,
638,
31,
444,
11728,
751,
12,
11728,
1830,
1133,
2463,
638,
31,
392,
1133,
16,
1082,
202,
45,
30733,
6233,
2463,
638,
31,
279,
6233,
13,
2463,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2463,
638,
31,
918,
2463,
638,
31,
444,
11728,
751,
12,
11728,
1830,
1133,
2463,
638,
31,
392,
1133,
16,
1082,
202,
45,
30733,
6233,
2463,
638,
31,
279,
6233,
13,
2463,
638,
... | |
stringBuffer.append(TEXT_275); | stringBuffer.append(TEXT_280); | public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenNode genNode = (GenNode) genElement;GenDiagram genDiagram = genNode.getDiagram();Palette palette = genDiagram.getPalette();boolean isXYLayout = ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions(genNode);final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];class NodeEditPartHelper { private final List myInnerLabels = new LinkedList(); private final List myAllInnerLabels = new LinkedList(); private final List myExternalLabels = new LinkedList(); private final List myPinnedCompartments = new LinkedList(); private final List myFloatingCompartments = new LinkedList(); private GenNodeLabel myPrimaryLabel; private boolean myHasChildrenInListCompartments = false; public NodeEditPartHelper(GenNode genNode){ myPrimaryLabel = null; for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { GenNodeLabel next = (GenNodeLabel) labels.next(); if (myPrimaryLabel == null){ myPrimaryLabel = next; } if (next instanceof GenExternalNodeLabel) { myExternalLabels.add(next); } else { myAllInnerLabels.add(next); if (next.getViewmap() instanceof ParentAssignedViewmap) { myInnerLabels.add(next); } } } for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){ GenCompartment next = (GenCompartment) compartments.next(); if (next.getViewmap() instanceof ParentAssignedViewmap){ myPinnedCompartments.add(next); } else { myFloatingCompartments.add(next); } myHasChildrenInListCompartments |= next.isListLayout() && !next.getChildNodes().isEmpty(); } } public boolean hasChildrenInListCompartments(){ return myHasChildrenInListCompartments; } public boolean hasInnerFixedLabels(){ return !myInnerLabels.isEmpty(); } public boolean hasPinnedCompartments(){ return !myPinnedCompartments.isEmpty(); } public boolean hasFixedChildren(){ return hasInnerFixedLabels() || hasPinnedCompartments(); } public boolean hasExternalLabels(){ return !myExternalLabels.isEmpty(); } public GenNodeLabel getPrimaryLabel(){ return myPrimaryLabel; } public Iterator getInnerFixedLabels(){ return myInnerLabels.iterator(); } public Iterator getExternalLabels(){ return myExternalLabels.iterator(); } public Iterator getPinnedCompartments(){ return myPinnedCompartments.iterator(); } public Iterator getAllInnerLabels() { return myAllInnerLabels.iterator(); }}final NodeEditPartHelper myHelper = new NodeEditPartHelper(genNode); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); importManager.emitPackageStatement(stringBuffer); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_5); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.NodeEditPart")); stringBuffer.append(TEXT_8); {GenCommonBase genCommonBase = genNode; stringBuffer.append(TEXT_9); stringBuffer.append(TEXT_10); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_11); } stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_14); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_17); stringBuffer.append(TEXT_18); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_29); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_32); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_35); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_39); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_41); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_44); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_45); } else { stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_48); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_50); } stringBuffer.append(TEXT_51); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_54); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_55); } else { stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_58); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_60); }} stringBuffer.append(TEXT_61); } /*restrict local vars used in component edit policy*/ stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_78); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_89); if (palette != null) { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_95); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_97); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_98); } stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_101); }/*when there's palette*/ stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_104); if (palette != null) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_106); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_111); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_113); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_114); } stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_117); }/*when there's palette*/ stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_126); String figureQualifiedClassName = null;Viewmap viewmap = genNode.getViewmap();if (viewmap instanceof FigureViewmap) { figureQualifiedClassName = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassName == null || figureQualifiedClassName.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); stringBuffer.append(TEXT_128); if (isXYLayout) { stringBuffer.append(TEXT_129); } /* use flow layout*/ stringBuffer.append(TEXT_130); } else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_131); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_132); } else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); stringBuffer.append(TEXT_133); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_134); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_135); if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ stringBuffer.append(TEXT_136); } stringBuffer.append(TEXT_137); } stringBuffer.append(TEXT_138); if (figureQualifiedClassName != null) { stringBuffer.append(TEXT_139); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_140); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_141); } stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_144); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_154); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_156); if (!isXYLayout) { String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); stringBuffer.append(TEXT_157); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_158); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_159); } else { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_163); } stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_167); if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_169); for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); final String labelEditPart = importManager.getImportedName(genLabel.getEditPartQualifiedClassName()); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); stringBuffer.append(TEXT_170); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_171); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_172); stringBuffer.append(childSetterName); stringBuffer.append(TEXT_173); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_174); }for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_175); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_177); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_178); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_179); } // for pinned compartments stringBuffer.append(TEXT_180); //XXX: ignore labels assuming that they never may be removedfor (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_181); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_183); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_184); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_185); } // for pinned compartments stringBuffer.append(TEXT_186); } // if myHelper.hasFixedChildren() stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_188); GenNodeLabel firstEditableLabel = null; for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (!genLabel.isReadOnly()) { firstEditableLabel = genLabel; break; } } if (firstEditableLabel != null) { stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_192); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName(firstEditableLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_195); } stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_203); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_207); for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (genLabel.isReadOnly()) { continue; } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_209); } stringBuffer.append(TEXT_210); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_212); for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { GenNodeLabel next = (GenNodeLabel) externalLabels.next(); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_214); } stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_219); }if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_221); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_224); } if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_225); } stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_227); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_230); } if (myHelper.hasFixedChildren()){ stringBuffer.append(TEXT_231); } stringBuffer.append(TEXT_232); } stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_254); /*@ include file="adapters/propertySource.javajetinc"*/ stringBuffer.append(TEXT_255); stringBuffer.append(TEXT_256); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_260); stringBuffer.append(TEXT_261); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_265); final String primaryView = "getDiagramNode()"; stringBuffer.append(TEXT_266); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_267); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_270); stringBuffer.append(primaryView); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_279); } stringBuffer.append(TEXT_280); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_281); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_282); } stringBuffer.append(TEXT_283); stringBuffer.append(TEXT_284); stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_286); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_287); stringBuffer.append(primaryView); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_289); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_290); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_294); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_295); stringBuffer.append(primaryView); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_298); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_301); stringBuffer.append(TEXT_302); stringBuffer.append(TEXT_303); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_304); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_305); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_307); stringBuffer.append(TEXT_308); stringBuffer.append(TEXT_309); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_311); stringBuffer.append(TEXT_312); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_318); stringBuffer.append(TEXT_319); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_321); stringBuffer.append(TEXT_322); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_324); stringBuffer.append(TEXT_325); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_327); stringBuffer.append(TEXT_328); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_333); stringBuffer.append(TEXT_334); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_337); /*XXX: probably, this should go to a separate jet-template along with GraphicalNodeEditPolicy*/ if (palette != null) { for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_338); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_341); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_344); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); if (containmentFeature == null) { stringBuffer.append(TEXT_345); } else { stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_349); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_350); { GenFeature _feature = containmentFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_351); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_352); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_353); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_354); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_355); } else { stringBuffer.append(TEXT_356); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_357); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_358); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_359); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_360); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_361); }} } GenFeature childFeature = modelFacet.getChildMetaFeature(); if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { { GenFeature _feature = childFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_362); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_363); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_364); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_365); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_366); } else { stringBuffer.append(TEXT_367); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_368); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_370); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_371); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_372); }} } }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_373); if (linkConstraints != null) { stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_375); stringBuffer.append(_source); stringBuffer.append(TEXT_376); stringBuffer.append(_target); stringBuffer.append(TEXT_377); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_378); } } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_381); { GenFeature _feature = metaFeature; String _ownerInstance = "domainElement"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_382); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_383); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_384); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_385); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_386); } else { stringBuffer.append(TEXT_387); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_388); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_390); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_391); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_392); }} }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_393); if (linkConstraints != null) { stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_395); stringBuffer.append(_source); stringBuffer.append(TEXT_396); stringBuffer.append(_target); stringBuffer.append(TEXT_397); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_398); } else { stringBuffer.append(TEXT_399); } stringBuffer.append(TEXT_400); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_401); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_404); } stringBuffer.append(TEXT_405); } //outgoing links for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_406); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_410); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_411); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_413); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_414); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_416); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_417); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_418); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_419); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenClass linkClass = modelFacet.getMetaClass(); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); stringBuffer.append(TEXT_421); stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_422); stringBuffer.append(linkClass.getClassifierAccessorName()); stringBuffer.append(TEXT_423); /*XXX: Class name DomainElementInitializer should be user-customizable*/ stringBuffer.append(TEXT_424); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); stringBuffer.append(TEXT_425); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_426); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { stringBuffer.append(TEXT_427); } stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_431); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_432); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); GenFeature childFeature = modelFacet.getChildMetaFeature(); GenFeature targetFeature = modelFacet.getTargetMetaFeature(); //source/link features seem to be pointing from link to its ends, not vice versa. //Anyway, if there is containment feature and it is not opposite to either the source/target, we should add containment, //otherwise we will have problems with saving uncontained EObjects. boolean addSource = sourceFeature != null; boolean addTarget = targetFeature != null; boolean addChild = childFeature != null && childFeature != containmentFeature && !childFeature.isDerived(); if (containmentFeature != null) { if (sourceFeature != null && sourceFeature.getEcoreFeature() instanceof EReference == true) { EReference sourceEcoreFeature = (EReference)sourceFeature.getEcoreFeature(); if (sourceEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addSource = false; } } if (targetFeature != null && targetFeature.getEcoreFeature() instanceof EReference == true) { EReference targetEcoreFeature = (EReference)targetFeature.getEcoreFeature(); if (targetEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addTarget = false; } } stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_435); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_438); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_439); } if (addChild) { stringBuffer.append(TEXT_440); stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_441); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_442); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_443); } if (addSource) { { GenFeature _feature = sourceFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_444); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_445); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_446); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_447); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_448); } else { stringBuffer.append(TEXT_449); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_450); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_451); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_452); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_453); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_454); }} } stringBuffer.append(TEXT_455); stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_456); stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_457); stringBuffer.append(sourceFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_458); } if (addTarget) { { GenFeature _feature = targetFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_459); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_460); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_461); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_462); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_463); } else { stringBuffer.append(TEXT_464); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_465); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_466); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_467); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_468); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_469); }} } stringBuffer.append(TEXT_470); stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_471); stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_472); stringBuffer.append(targetFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_473); } stringBuffer.append(TEXT_474); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_475); stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_476); stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_477); stringBuffer.append(metaFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_478); } stringBuffer.append(TEXT_479); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_480); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_481); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_482); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_483); } stringBuffer.append(TEXT_484); { String _source = "source.getElement()"; String _target = "target.getElement()"; stringBuffer.append(TEXT_485); if (linkConstraints != null) { stringBuffer.append(TEXT_486); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_487); stringBuffer.append(_source); stringBuffer.append(TEXT_488); stringBuffer.append(_target); stringBuffer.append(TEXT_489); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_490); } }/*when there's palette*/ if (genNode.getViewmap() instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); stringBuffer.append(TEXT_491); stringBuffer.append(classBody); stringBuffer.append(TEXT_492); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_493); } } stringBuffer.append(TEXT_494); importManager.emitSortedImports(); stringBuffer.append(TEXT_495); return stringBuffer.toString(); } | 7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/41ff79477b1b3c386bb3c9c99a88391ac573362c/NodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5... |
dialog.run(true, true, runnable); setUserInterfaceActive(true); | dialog.run(true, true, runnable); | public void run() { try { dialog.setOpenOnRun(false); setUserInterfaceActive(false); dialog.run(true, true, runnable); setUserInterfaceActive(true); } catch (InvocationTargetException e) { invokes[0] = e; } catch (InterruptedException e) { interrupt[0] = e; } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0fbd7457aaf4129371830b6144e0afab319555fb/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
202,
12730,
18,
542,
3678,
1398,
1997,
12,
5743,
1769,
6862,
202,
542,
1299,
1358,
3896,
12,
5743,
1769,
6862,
202,
12730,
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,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
202,
12730,
18,
542,
3678,
1398,
1997,
12,
5743,
1769,
6862,
202,
542,
1299,
1358,
3896,
12,
5743,
1769,
6862,
202,
12730,
18,
... |
String commandline = createCommandline(); | Commandline commandline = createCommandline(); | public void bootstrap() throws CruiseControlException { String commandline = createCommandline(); LOG.debug("Executing commandline [" + commandline + "]"); executeCommandLine(commandline); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/9a2a2265bbed9582d4204149a67417b6477ece56/P4Bootstrapper.java/clean/main/src/net/sourceforge/cruisecontrol/bootstrappers/P4Bootstrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7065,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
3498,
1369,
28305,
273,
22957,
1369,
5621,
3639,
2018,
18,
4148,
2932,
22134,
28305,
8247,
397,
28305,
397,
9870,
1769,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7065,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
3498,
1369,
28305,
273,
22957,
1369,
5621,
3639,
2018,
18,
4148,
2932,
22134,
28305,
8247,
397,
28305,
397,
9870,
1769,
36... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.