rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
private String importModule(CmsObject cms, I_CmsRegistry reg, CmsXmlTemplateFile xmlDocument, I_CmsSession session, String zipName) throws CmsException { String nav = (String)session.getValue(C_MODULE_NAV); Vector conflictFiles = null; if(nav == null) { // this is the first go. Try to import the module and if it dont't work return the corresponding errorpage String moduleName = reg.importGetModuleName(zipName); if(reg.moduleExists(moduleName)) { xmlDocument.setData("name", moduleName); xmlDocument.setData("version", "" + reg.getModuleVersion(moduleName)); session.removeValue(C_MODULE_NAV); return C_ERRORREPLACE; } Vector needs = reg.importCheckDependencies(zipName); if(!needs.isEmpty()) { // there are dependences not fulfilled xmlDocument.setData("name", moduleName); xmlDocument.setData("version", "" + reg.getModuleVersion(moduleName)); String preconditions = ""; for(int i = 0;i < needs.size();i++) { preconditions += "<br><br>" + needs.elementAt(i); } xmlDocument.setData("precondition", preconditions); session.removeValue(C_MODULE_NAV); return C_ERRORDEP; } conflictFiles = reg.importGetConflictingFileNames(zipName); if(!conflictFiles.isEmpty()) { // session.putValue(C_SESSION_MODULE_VECTOR, conflictFiles); session.putValue(C_MODULE_NAV, C_FILES); session.putValue(C_MODULE_FILENAME, zipName); return C_FILES; } } else { if(C_FILES.equals(nav)) { // zipName = (String)session.getValue(C_MODULE_FILENAME); conflictFiles = (Vector)session.getValue(C_SESSION_MODULE_VECTOR); session.removeValue(C_MODULE_NAV); } } Vector projectFiles = reg.importGetResourcesForProject(zipName); Thread doTheImport = new CmsAdminModuleImport(cms, reg, zipName, conflictFiles, projectFiles); doTheImport.start(); session.putValue(C_MODULE_THREAD, doTheImport); xmlDocument.setData("time", "10"); return C_WAIT; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/7ef5cd818fa7f6084c633624f91dbee5220b916b/CmsAdminModuleNew.java/buggy/src/com/opencms/workplace/CmsAdminModuleNew.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1930,
3120,
12,
4747,
921,
6166,
16,
467,
67,
4747,
4243,
960,
16,
16084,
2283,
812,
2025,
2519,
16,
467,
67,
4747,
2157,
1339,
16,
514,
3144,
461,
13,
1216,
11228,
288,
3639,
514,
8775,
273,
261,
780,
13,
3184,
18,
24805,
12,
39,
67,
12194,
67,
50,
5856,
1769,
3639,
5589,
7546,
2697,
273,
446,
31,
3639,
309,
12,
11589,
422,
446,
13,
288,
13491,
368,
333,
353,
326,
1122,
1960,
18,
6161,
358,
1930,
326,
1605,
471,
309,
518,
14046,
1404,
1440,
327,
326,
4656,
555,
2433,
5411,
514,
9780,
273,
960,
18,
5666,
967,
22542,
12,
4450,
461,
1769,
5411,
309,
12,
1574,
18,
2978,
4002,
12,
2978,
461,
3719,
288,
7734,
2025,
2519,
18,
542,
751,
2932,
529,
3113,
9780,
1769,
7734,
2025,
2519,
18,
542,
751,
2932,
1589,
3113,
1408,
397,
960,
18,
588,
3120,
1444,
12,
2978,
461,
10019,
7734,
1339,
18,
4479,
620,
12,
39,
67,
12194,
67,
50,
5856,
1769,
7734,
327,
385,
67,
3589,
21726,
31,
5411,
289,
5411,
5589,
4260,
273,
960,
18,
5666,
1564,
8053,
12,
4450,
461,
1769,
5411,
309,
12,
5,
20600,
18,
291,
1921,
10756,
288,
27573,
368,
1915,
854,
2447,
2369,
486,
16136,
13968,
7734,
2025,
2519,
18,
542,
751,
2932,
529,
3113,
9780,
1769,
7734,
2025,
2519,
18,
542,
751,
2932,
1589,
3113,
1408,
397,
960,
18,
588,
3120,
1444,
12,
2978,
461,
10019,
7734,
514,
675,
6381,
273,
1408,
31,
7734,
364,
12,
474,
277,
273,
374,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
3120,
12,
4747,
921,
6166,
16,
467,
67,
4747,
4243,
960,
16,
16084,
2283,
812,
2025,
2519,
16,
467,
67,
4747,
2157,
1339,
16,
514,
3144,
461,
13,
1216,
11228,
288,
3639,
514,
8775,
273,
261,
780,
13,
3184,
18,
24805,
12,
39,
67,
12194,
67,
50,
5856,
1769,
3639,
5589,
7546,
2697,
273,
446,
31,
3639,
309,
12,
11589,
422,
446,
13,
288,
13491,
368,
333,
353,
326,
1122,
1960,
18,
6161,
358,
1930,
326,
1605,
471,
309,
518,
14046,
1404,
1440,
327,
326,
4656,
555,
2433,
5411,
514,
9780,
273,
960,
18,
5666,
967,
22542,
12,
4450,
461,
1769,
5411,
309,
12,
1574,
18,
2978,
4002,
12,
2978,
461,
3719,
288,
7734,
2025,
2
] |
||
int numberOfConnected = getNumStatusConnectedPeerNodes(); int numberOfRoutingBackedOff = getNumStatusRoutingBackedOffPeerNodes(); int numberOfTooNew = getNumStatusTooNewPeerNodes(); int numberOfTooOld = getNumStatusTooOldPeerNodes(); int numberOfDisconnected = getNumStatusDisconnectedPeerNodes();
|
int numberOfConnected = getPeerNodeStatusSize(PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerNodeStatusSize(PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerNodeStatusSize(PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerNodeStatusSize(PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerNodeStatusSize(PEER_NODE_STATUS_DISCONNECTED);
|
public void maybeLogPeerNodeStatusSummary(long now) { if(now > nextPeerNodeStatusLogTime) { if((now - nextPeerNodeStatusLogTime) > (3*1000)) Logger.error(this,"maybeLogPeerNodeStatusSummary() not called for more than 3 seconds ("+(now - nextPeerNodeStatusLogTime)+"). PacketSender getting bogged down or something?"); int numberOfConnected = getNumStatusConnectedPeerNodes(); int numberOfRoutingBackedOff = getNumStatusRoutingBackedOffPeerNodes(); int numberOfTooNew = getNumStatusTooNewPeerNodes(); int numberOfTooOld = getNumStatusTooOldPeerNodes(); int numberOfDisconnected = getNumStatusDisconnectedPeerNodes(); int numberOfNeverConnected = getPeerNodeStatusSize(PEER_NODE_STATUS_NEVER_CONNECTED); Logger.normal(this, "Connected: "+numberOfConnected+" Routing Backed Off: "+numberOfRoutingBackedOff+" Too New: "+numberOfTooNew+" Too Old: "+numberOfTooOld+" Disconnected: "+numberOfDisconnected+" Never Connected: "+numberOfNeverConnected); nextPeerNodeStatusLogTime = now + peerNodeStatusLogInterval; } }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/2431d0b1bc995fad4854c9328232f11ed6d9e344/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6944,
1343,
6813,
907,
1482,
4733,
12,
5748,
2037,
13,
288,
1377,
309,
12,
3338,
405,
1024,
6813,
907,
1482,
1343,
950,
13,
288,
3639,
309,
12443,
3338,
300,
1024,
6813,
907,
1482,
1343,
950,
13,
405,
261,
23,
14,
18088,
3719,
1850,
4242,
18,
1636,
12,
2211,
10837,
19133,
1343,
6813,
907,
1482,
4733,
1435,
486,
2566,
364,
1898,
2353,
890,
3974,
7566,
15,
12,
3338,
300,
1024,
6813,
907,
1482,
1343,
950,
13,
9078,
2934,
225,
11114,
12021,
8742,
324,
717,
2423,
2588,
578,
5943,
7225,
1769,
3639,
509,
7922,
8932,
273,
11187,
1482,
8932,
6813,
3205,
5621,
3639,
509,
7922,
13966,
2711,
329,
7210,
273,
11187,
1482,
13966,
2711,
329,
7210,
6813,
3205,
5621,
3639,
509,
7922,
10703,
1908,
273,
11187,
1482,
10703,
1908,
6813,
3205,
5621,
3639,
509,
7922,
10703,
7617,
273,
11187,
1482,
10703,
7617,
6813,
3205,
5621,
3639,
509,
7922,
26303,
273,
11187,
1482,
26303,
6813,
3205,
5621,
3639,
509,
7922,
50,
6084,
8932,
273,
29875,
907,
1482,
1225,
12,
1423,
654,
67,
8744,
67,
8608,
67,
5407,
2204,
67,
29011,
1769,
3639,
4242,
18,
6130,
12,
2211,
16,
315,
8932,
30,
13773,
2696,
951,
8932,
9078,
225,
19349,
4297,
329,
15837,
30,
13773,
2696,
951,
13966,
2711,
329,
7210,
9078,
225,
15869,
1166,
30,
13773,
2696,
951,
10703,
1908,
9078,
225,
15869,
18613,
30,
13773,
2696,
951,
10703,
7617,
9078,
225,
3035,
8537,
30,
13773,
2696,
951,
26303,
9078,
225,
24496,
6683,
828,
30,
13773,
2696,
951,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6944,
1343,
6813,
907,
1482,
4733,
12,
5748,
2037,
13,
288,
1377,
309,
12,
3338,
405,
1024,
6813,
907,
1482,
1343,
950,
13,
288,
3639,
309,
12443,
3338,
300,
1024,
6813,
907,
1482,
1343,
950,
13,
405,
261,
23,
14,
18088,
3719,
1850,
4242,
18,
1636,
12,
2211,
10837,
19133,
1343,
6813,
907,
1482,
4733,
1435,
486,
2566,
364,
1898,
2353,
890,
3974,
7566,
15,
12,
3338,
300,
1024,
6813,
907,
1482,
1343,
950,
13,
9078,
2934,
225,
11114,
12021,
8742,
324,
717,
2423,
2588,
578,
5943,
7225,
1769,
3639,
509,
7922,
8932,
273,
11187,
1482,
8932,
6813,
3205,
5621,
3639,
509,
7922,
13966,
2711,
329,
7210,
273,
11187,
1482,
13966,
2711,
329,
7210,
6813,
3205,
2
] |
else {
|
catch (Exception e) {
|
public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException { String typeGradesString = new String(REF_TYPE_GRADES + Entity.SEPARATOR); String context = ref.substring(ref.indexOf(typeGradesString) + typeGradesString.length()); // get site title for display purpose String siteTitle = ""; try { Site s = SiteService.getSite(context); siteTitle = s.getTitle(); } catch (Exception e) { // ignore exception } if (allowGradeSubmission(context)) { short rowNum = 0; HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet(siteTitle); // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(rb.getString("download.spreadsheet.title")); // empty line row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(""); // site title row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(rb.getString("download.spreadsheet.site") + siteTitle); // download time row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue( rb.getString("download.spreadsheet.date") + TimeService.newTime().toStringLocalFull()); // empty line row = sheet.createRow(rowNum++); row.createCell((short) 0).setCellValue(""); // the bold font HSSFFont font = wb.createFont(); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // the cell style with bold font HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // set up the header cells row = sheet.createRow(rowNum++); short cellNum = 0; // user enterprise id column HSSFCell cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(rb.getString("download.spreadsheet.column.userid")); // user name column cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(rb.getString("download.spreadsheet.column.name")); Iterator assignments = getAssignmentsForContext(context); Vector assignmentTypeVector = new Vector(); Vector assignmentSubmissionVector = new Vector(); int index = 0; List members = new Vector(); while (assignments.hasNext()) { Assignment a = (Assignment) assignments.next(); String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if ((deleted == null || deleted.equals("")) && (!a.getDraft()) && (a.getOpenTime().before(TimeService.newTime()))) { if (index == 0) { List allowAddAssignmentUsers = allowAddAssignmentUsers(a.getContext()); List allowAddSubmissionUsers = allowAddSubmissionUsers(a.getReference()); for (int i = 0; i < allowAddSubmissionUsers.size(); i++) { User allowAddSubmissionUser = (User) allowAddSubmissionUsers.get(i); if (!allowAddAssignmentUsers.contains(allowAddSubmissionUser)) { members.add(allowAddSubmissionUser); } } } assignmentTypeVector.add(index, new Integer(a.getContent().getTypeOfGrade())); Iterator submissions = getSubmissions(a); List submissionList = new Vector(); while (submissions.hasNext()) { submissionList.add(submissions.next()); } assignmentSubmissionVector.add(index, submissionList); cell = row.createCell(cellNum++); cell.setCellStyle(style); cell.setCellValue(a.getTitle()); index++; } } // is there a grade or not AssignmentSubmission submissionWithGrade = null; List submitterIds = null; String submitterId = ""; User member = null; for (Iterator it = members.iterator(); it.hasNext();) { // create one row for each user row = sheet.createRow(rowNum++); cellNum = 0; member = (User) it.next(); // show user's enterprise id row.createCell(cellNum++).setCellValue(member.getDisplayId()); // show user's name row.createCell(cellNum++).setCellValue(member.getSortName()); for (int i = 0; i < assignmentSubmissionVector.size(); i++) { // type for this assignment int assignmentType = ((Integer) assignmentTypeVector.get(i)).intValue(); // submission for this assignment List submissions = (List) (assignmentSubmissionVector.get(i)); // initialize it for every assignment submissionWithGrade = null; for (int k = 0; k < submissions.size() && submissionWithGrade == null; k++) { AssignmentSubmission s = (AssignmentSubmission) submissions.get(k); submitterIds = (List) s.getSubmitterIds(); for (int a = 0; a < submitterIds.size(); a++) { submitterId = (String) submitterIds.get(a); if (submitterId.equals(member.getId())) { // found the member's submission to the assignment // show user's grade if ((s != null) && (s.getGraded()) && (s.getGradeReleased())) { submissionWithGrade = s; } } // if } // for } // for if (submissionWithGrade != null) { if (assignmentType == 3) { try { // numeric cell type? String grade = submissionWithGrade.getGradeDisplay(); Float.parseFloat(grade); cell = row.createCell(cellNum++); cell.setCellType(0); cell.setCellValue(Float.parseFloat(grade)); style = wb.createCellStyle(); style.setDataFormat(wb.createDataFormat().getFormat("#,##0.0")); cell.setCellStyle(style); } catch (Exception e) { // if the grade is not numeric, let's make it as String type cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(submissionWithGrade.getGrade()); } } else { // String cell type cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(submissionWithGrade.getGrade()); } } // if else { // no grade to show yet // String cell type // set value to be "" if there is no grade yet cell = row.createCell(cellNum++); cell.setCellType(1); cell.setCellValue(""); } // if } // for } // for Blob b = new Blob(); try { wb.write(b.outputStream()); } catch (IOException e) { M_log.debug(this + "Can not output the grade spread sheet. "); } return b.getBytes(); } else { return null; } } // getGradesSpreadsheet
|
54270 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54270/c01d6a46c4a4ed185de66a207d16feb5cf263018/BaseAssignmentService.java/buggy/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
7162,
354,
5489,
28719,
8118,
12,
780,
1278,
13,
1216,
3124,
21106,
503,
16,
8509,
503,
202,
95,
202,
202,
780,
618,
14571,
5489,
780,
273,
394,
514,
12,
10771,
67,
2399,
67,
24554,
26463,
397,
3887,
18,
4550,
1769,
202,
202,
780,
819,
273,
1278,
18,
28023,
12,
1734,
18,
31806,
12,
723,
14571,
5489,
780,
13,
397,
618,
14571,
5489,
780,
18,
2469,
10663,
202,
202,
759,
336,
2834,
2077,
364,
2562,
13115,
202,
202,
780,
2834,
4247,
273,
1408,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4956,
272,
273,
9063,
1179,
18,
588,
4956,
12,
2472,
1769,
1082,
202,
4256,
4247,
273,
272,
18,
588,
4247,
5621,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
759,
2305,
1520,
202,
202,
97,
202,
202,
430,
261,
5965,
14571,
323,
17865,
12,
2472,
3719,
202,
202,
95,
1082,
202,
6620,
1027,
2578,
273,
374,
31,
1082,
202,
44,
1260,
42,
23345,
17298,
273,
394,
670,
1260,
42,
23345,
5621,
1082,
202,
44,
1260,
4931,
2963,
6202,
273,
17298,
18,
2640,
8229,
12,
4256,
4247,
1769,
1082,
202,
759,
1788,
279,
1027,
471,
1378,
2690,
5983,
316,
518,
18,
17323,
854,
374,
2511,
18,
1082,
202,
44,
1260,
42,
1999,
1027,
273,
6202,
18,
2640,
1999,
12,
492,
2578,
9904,
1769,
1082,
202,
492,
18,
2640,
4020,
12443,
6620,
13,
374,
2934,
542,
27758,
12,
6731,
18,
588,
780,
2932,
7813,
18,
26007,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
7162,
354,
5489,
28719,
8118,
12,
780,
1278,
13,
1216,
3124,
21106,
503,
16,
8509,
503,
202,
95,
202,
202,
780,
618,
14571,
5489,
780,
273,
394,
514,
12,
10771,
67,
2399,
67,
24554,
26463,
397,
3887,
18,
4550,
1769,
202,
202,
780,
819,
273,
1278,
18,
28023,
12,
1734,
18,
31806,
12,
723,
14571,
5489,
780,
13,
397,
618,
14571,
5489,
780,
18,
2469,
10663,
202,
202,
759,
336,
2834,
2077,
364,
2562,
13115,
202,
202,
780,
2834,
4247,
273,
1408,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4956,
272,
273,
9063,
1179,
18,
588,
4956,
12,
2472,
1769,
1082,
202,
4256,
4247,
273,
272,
18,
588,
4247,
5621,
202,
202,
2
] |
private LogMath(double base) {
|
private LogMath(double base, boolean useTable) {
|
private LogMath(double base) { logBase = base; init(); }
|
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/ea157c9d01f5f5f439a1d29c2a7a9e8c8ad255b9/LogMath.java/clean/sphinx4/edu/cmu/sphinx/util/LogMath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
3238,
1827,
10477,
12,
9056,
1026,
13,
288,
202,
613,
2171,
273,
1026,
31,
202,
1208,
5621,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
3238,
1827,
10477,
12,
9056,
1026,
13,
288,
202,
613,
2171,
273,
1026,
31,
202,
1208,
5621,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST __t1235 = _t; AST tmp1611_AST_in = (AST)_t;
|
AST __t1240 = _t; AST tmp1613_AST_in = (AST)_t;
|
public final void altertablestate(AST _t) throws RecognitionException { AST altertablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1232 = _t; AST tmp1603_AST_in = (AST)_t; match(_t,ALTER); _t = _t.getFirstChild(); AST tmp1604_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); tbl(_t,CQ.SCHEMATABLESYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ADD: { AST tmp1605_AST_in = (AST)_t; match(_t,ADD); _t = _t.getNextSibling(); AST tmp1606_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getNextSibling(); sql_col_def(_t); _t = _retTree; break; } case DROP: { AST tmp1607_AST_in = (AST)_t; match(_t,DROP); _t = _t.getNextSibling(); AST tmp1608_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; break; } case ALTER: { AST tmp1609_AST_in = (AST)_t; match(_t,ALTER); _t = _t.getNextSibling(); AST tmp1610_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; { _loop1237: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORMAT: { AST __t1235 = _t; AST tmp1611_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1235; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case DEFAULT: { AST __t1236 = _t; AST tmp1612_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1236; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } default: { break _loop1237; } } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1232; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
10182,
7032,
80,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
10182,
7032,
80,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2138,
1578,
273,
389,
88,
31,
202,
202,
9053,
1853,
2313,
4630,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
18843,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2313,
3028,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7775,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
16187,
24899,
88,
16,
39,
53,
18,
55,
10390,
789,
2782,
22093,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
11689,
30,
202,
202,
95,
1082,
202,
9053,
1853,
2313,
6260,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
8355,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
9053,
1853,
2313,
7677,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
10182,
7032,
80,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
10182,
7032,
80,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2138,
1578,
273,
389,
88,
31,
202,
202,
9053,
1853,
2313,
4630,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
18843,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2313,
3028,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7775,
2
] |
applyMemento(labelProvider);
|
applyMemento(labelProvider);
|
public void restoreState(IMemento aMemento) { synchronized (this) { appliedMemento = aMemento; applyMemento(contentProvider); applyMemento(labelProvider); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/377029d74a7de25fc7c2c47d145c9fad2b1088ee/NavigatorContentExtension.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/extensions/NavigatorContentExtension.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5217,
1119,
12,
3445,
820,
83,
279,
49,
820,
83,
13,
288,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
438,
3110,
49,
820,
83,
273,
279,
49,
820,
83,
31,
1082,
202,
9010,
49,
820,
83,
12,
1745,
2249,
1769,
1082,
202,
9010,
49,
820,
83,
12,
1925,
2249,
1769,
3196,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5217,
1119,
12,
3445,
820,
83,
279,
49,
820,
83,
13,
288,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
438,
3110,
49,
820,
83,
273,
279,
49,
820,
83,
31,
1082,
202,
9010,
49,
820,
83,
12,
1745,
2249,
1769,
1082,
202,
9010,
49,
820,
83,
12,
1925,
2249,
1769,
3196,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println(ec.execute().getClasspath());
|
ec.execute(); System.out.println("plugin.build.classpath=" + ec.getClasspath()); System.out.println("plugin.id=" + ec.getRootPlugin().getId()); System.out.println("plugin.version=" + ec.getRootPlugin().getVersion());
|
public static void main(String[] argv) throws Exception { if (argv.length < 2 || (argv.length % 2 != 0)) { System.err.println("Usage: " + EclipseClasspath.class.getName() + " <eclipse dir> <root plugin directory> [<required plugin id> <required plugin dir> ...]"); System.exit(1); } EclipseClasspath ec = new EclipseClasspath(argv[0], argv[1]); for (int i = 2; i < argv.length; i += 2) { ec.addRequiredPlugin(argv[i], argv[i+1]); } System.out.println(ec.execute().getClasspath()); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/3334bb87c70c892c7820ab4c72e1e753d4ba487b/EclipseClasspath.java/clean/findbugs/src/tools/edu/umd/cs/findbugs/EclipseClasspath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
411,
576,
747,
261,
19485,
18,
2469,
738,
576,
480,
374,
3719,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
397,
20840,
10472,
17461,
18,
1106,
18,
17994,
1435,
397,
9506,
202,
6,
411,
20416,
1577,
34,
411,
3085,
1909,
1867,
34,
306,
32,
4718,
1909,
612,
34,
411,
4718,
1909,
1577,
34,
1372,
4279,
1769,
1082,
202,
3163,
18,
8593,
12,
21,
1769,
202,
202,
97,
202,
202,
23057,
10472,
17461,
6557,
273,
394,
20840,
10472,
17461,
12,
19485,
63,
20,
6487,
5261,
63,
21,
19226,
202,
202,
1884,
261,
474,
277,
273,
576,
31,
277,
411,
5261,
18,
2469,
31,
277,
1011,
576,
13,
288,
1082,
202,
557,
18,
1289,
3705,
3773,
12,
19485,
63,
77,
6487,
5261,
63,
77,
15,
21,
19226,
202,
202,
97,
202,
202,
3163,
18,
659,
18,
8222,
12,
557,
18,
8837,
7675,
588,
17461,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
411,
576,
747,
261,
19485,
18,
2469,
738,
576,
480,
374,
3719,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
397,
20840,
10472,
17461,
18,
1106,
18,
17994,
1435,
397,
9506,
202,
6,
411,
20416,
1577,
34,
411,
3085,
1909,
1867,
34,
306,
32,
4718,
1909,
612,
34,
411,
4718,
1909,
1577,
34,
1372,
4279,
1769,
1082,
202,
3163,
18,
8593,
12,
21,
1769,
202,
202,
97,
202,
202,
23057,
10472,
17461,
6557,
273,
394,
20840,
10472,
17461,
12,
19485,
63,
20,
6487,
5261,
63,
21,
19226,
202,
202,
1884,
261,
474,
277,
273,
2
] |
{ return type; }
|
{ return type; }
|
public String getType() { return type; }
|
58892 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58892/1ddb24d8268e3d7c5db571f233a27afea16f8fa5/PVTreeItem.java/buggy/applications/plugins/org.csstudio.diag.epics.pvtree/src/org/csstudio/diag/epics/pvtree/PVTreeItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3130,
1435,
565,
288,
3639,
327,
618,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
3130,
1435,
565,
288,
3639,
327,
618,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final WebClient webClient = new WebClient(BROWSER_VERSION); assertInstanceOf( webClient.getPage( new URL( "http: }
|
final WebClient webClient = new WebClient(BROWSER_VERSION); assertInstanceOf( webClient.getPage( new URL( "http: }
|
public void testYahoo() throws Exception { final WebClient webClient = new WebClient(BROWSER_VERSION); assertInstanceOf( webClient.getPage( new URL( "http://yahoo.com/" ) ), HtmlPage.class ); }
|
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/9e2c60a8ce0b582fbbf2238c9a9dc2cbd63ff15a/SanityCheck.java/buggy/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/SanityCheck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
61,
9795,
5161,
1435,
1216,
1185,
288,
202,
202,
6385,
2999,
1227,
3311,
1227,
273,
394,
2999,
1227,
12,
38,
24846,
67,
5757,
1769,
202,
202,
11231,
1442,
951,
12,
3311,
1227,
18,
588,
1964,
12,
394,
1976,
12,
315,
2505,
2207,
93,
9795,
5161,
18,
832,
4898,
262,
262,
16,
5430,
1964,
18,
1106,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
61,
9795,
5161,
1435,
1216,
1185,
288,
202,
202,
6385,
2999,
1227,
3311,
1227,
273,
394,
2999,
1227,
12,
38,
24846,
67,
5757,
1769,
202,
202,
11231,
1442,
951,
12,
3311,
1227,
18,
588,
1964,
12,
394,
1976,
12,
315,
2505,
2207,
93,
9795,
5161,
18,
832,
4898,
262,
262,
16,
5430,
1964,
18,
1106,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
io.inStream = new RubyInputStream(ruby.getRuntime().getInputStream());
|
io.inStream = new RubyInputStream(inStream);
|
public static RubyObject stdin(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.inStream = new RubyInputStream(ruby.getRuntime().getInputStream()); io.readable = true; return io; }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyIO.java/clean/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
8801,
12,
54,
10340,
22155,
16,
19817,
797,
22155,
797,
13,
288,
3639,
19817,
4294,
2527,
273,
394,
19817,
4294,
12,
27768,
16,
22155,
797,
1769,
3639,
2527,
18,
267,
1228,
273,
394,
19817,
4348,
12,
267,
1228,
1769,
3639,
2527,
18,
11018,
273,
638,
31,
3639,
327,
2527,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
921,
8801,
12,
54,
10340,
22155,
16,
19817,
797,
22155,
797,
13,
288,
3639,
19817,
4294,
2527,
273,
394,
19817,
4294,
12,
27768,
16,
22155,
797,
1769,
3639,
2527,
18,
267,
1228,
273,
394,
19817,
4348,
12,
267,
1228,
1769,
3639,
2527,
18,
11018,
273,
638,
31,
3639,
327,
2527,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
task.setReminderDate(new Date(now + 1000));
|
task.setScheduledForDate(new Date(now + 1000));
|
public void testPastReminder() { ITask task = new Task("1", "1", true); long now = new Date().getTime(); task.setReminderDate(new Date(now - 1000)); assertTrue(task.isPastReminder()); task.setReminderDate(new Date(now + 1000)); assertFalse(task.isPastReminder()); task.setReminderDate(new Date(now - 1000)); task.setCompleted(true); assertTrue(task.isPastReminder()); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bd286c2c8dec17d333d2bd4b3c597591028ee669/TaskListStandaloneTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
52,
689,
1933,
14055,
1435,
288,
202,
202,
1285,
835,
1562,
273,
394,
3837,
2932,
21,
3113,
315,
21,
3113,
638,
1769,
202,
202,
5748,
2037,
273,
394,
2167,
7675,
588,
950,
5621,
202,
202,
4146,
18,
542,
1933,
14055,
1626,
12,
2704,
2167,
12,
3338,
300,
4336,
10019,
202,
202,
11231,
5510,
12,
4146,
18,
291,
52,
689,
1933,
14055,
10663,
202,
202,
4146,
18,
542,
1933,
14055,
1626,
12,
2704,
2167,
12,
3338,
397,
4336,
10019,
202,
202,
11231,
8381,
12,
4146,
18,
291,
52,
689,
1933,
14055,
10663,
202,
202,
4146,
18,
542,
1933,
14055,
1626,
12,
2704,
2167,
12,
3338,
300,
4336,
10019,
202,
202,
4146,
18,
542,
9556,
12,
3767,
1769,
202,
202,
11231,
5510,
12,
4146,
18,
291,
52,
689,
1933,
14055,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
52,
689,
1933,
14055,
1435,
288,
202,
202,
1285,
835,
1562,
273,
394,
3837,
2932,
21,
3113,
315,
21,
3113,
638,
1769,
202,
202,
5748,
2037,
273,
394,
2167,
7675,
588,
950,
5621,
202,
202,
4146,
18,
542,
1933,
14055,
1626,
12,
2704,
2167,
12,
3338,
300,
4336,
10019,
202,
202,
11231,
5510,
12,
4146,
18,
291,
52,
689,
1933,
14055,
10663,
202,
202,
4146,
18,
542,
1933,
14055,
1626,
12,
2704,
2167,
12,
3338,
397,
4336,
10019,
202,
202,
11231,
8381,
12,
4146,
18,
291,
52,
689,
1933,
14055,
10663,
202,
202,
4146,
18,
542,
1933,
14055,
1626,
12,
2704,
2167,
12,
3338,
300,
4336,
10019,
202,
202,
4146,
18,
542,
9556,
12,
2
] |
assertTrue(s .equals("[63]zoo(42)bar{31}foo;[56]ghi(34)def{12}abc;{99}xyz[88]xyz(77)xyz;"));
|
assertEquals("[63]zoo(42)bar{31}foo;[56]ghi(34)def{12}abc;{99}xyz[88]xyz(77)xyz;", s );
|
public void testCaptureReplace() { String target, pattern, repl, s; Pattern p = null; Matcher m; target = "[31]foo;bar[42];[99]xyz"; pattern = "\\[([0-9]+)\\]([a-z]+)"; repl = "$2[$1]"; p = Pattern.compile(pattern); m = p.matcher(target); s = m.replaceFirst(repl); assertTrue(s.equals("foo[31];bar[42];[99]xyz")); s = m.replaceAll(repl); assertTrue(s.equals("foo[31];bar[42];xyz[99]")); target = "[31]foo(42)bar{63}zoo;[12]abc(34)def{56}ghi;{99}xyz[88]xyz(77)xyz;"; pattern = "\\[([0-9]+)\\]([a-z]+)\\(([0-9]+)\\)([a-z]+)\\{([0-9]+)\\}([a-z]+)"; repl = "[$5]$6($3)$4{$1}$2"; p = Pattern.compile(pattern); m = p.matcher(target); s = m.replaceFirst(repl); // System.out.println(s); assertTrue(s .equals("[63]zoo(42)bar{31}foo;[12]abc(34)def{56}ghi;{99}xyz[88]xyz(77)xyz;")); s = m.replaceAll(repl); // System.out.println(s); assertTrue(s .equals("[63]zoo(42)bar{31}foo;[56]ghi(34)def{12}abc;{99}xyz[88]xyz(77)xyz;")); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/29d6f3fc76f6010e7ca3f8412b46053d67b79029/ReplaceTest.java/buggy/modules/regex/src/test/java/tests/api/java/util/regex/ReplaceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
12372,
5729,
1435,
288,
202,
202,
780,
1018,
16,
1936,
16,
6831,
16,
272,
31,
202,
202,
3234,
293,
273,
446,
31,
202,
202,
6286,
312,
31,
202,
202,
3299,
273,
5158,
6938,
65,
11351,
31,
3215,
63,
9452,
15533,
63,
2733,
65,
17177,
14432,
202,
202,
4951,
273,
8422,
63,
3816,
20,
17,
29,
7941,
1695,
65,
3816,
69,
17,
94,
3737,
2225,
31,
202,
202,
26745,
273,
4662,
22,
13043,
21,
4279,
31,
202,
202,
84,
273,
6830,
18,
11100,
12,
4951,
1769,
202,
202,
81,
273,
293,
18,
22761,
12,
3299,
1769,
202,
202,
87,
273,
312,
18,
2079,
3759,
12,
26745,
1769,
202,
202,
11231,
5510,
12,
87,
18,
14963,
2932,
11351,
63,
6938,
15533,
3215,
63,
9452,
15533,
63,
2733,
65,
17177,
7923,
1769,
202,
202,
87,
273,
312,
18,
2079,
1595,
12,
26745,
1769,
202,
202,
11231,
5510,
12,
87,
18,
14963,
2932,
11351,
63,
6938,
15533,
3215,
63,
9452,
15533,
17177,
63,
2733,
4279,
10019,
202,
202,
3299,
273,
5158,
6938,
65,
11351,
12,
9452,
13,
3215,
95,
4449,
97,
94,
5161,
31,
63,
2138,
65,
18947,
12,
5026,
13,
536,
95,
4313,
97,
75,
12266,
31,
95,
2733,
97,
17177,
63,
5482,
65,
17177,
12,
4700,
13,
17177,
4868,
31,
202,
202,
4951,
273,
8422,
63,
3816,
20,
17,
29,
7941,
1695,
65,
3816,
69,
17,
94,
7941,
1695,
12,
3816,
20,
17,
29,
7941,
1695,
13,
3816,
69,
17,
94,
7941,
1695,
95,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12372,
5729,
1435,
288,
202,
202,
780,
1018,
16,
1936,
16,
6831,
16,
272,
31,
202,
202,
3234,
293,
273,
446,
31,
202,
202,
6286,
312,
31,
202,
202,
3299,
273,
5158,
6938,
65,
11351,
31,
3215,
63,
9452,
15533,
63,
2733,
65,
17177,
14432,
202,
202,
4951,
273,
8422,
63,
3816,
20,
17,
29,
7941,
1695,
65,
3816,
69,
17,
94,
3737,
2225,
31,
202,
202,
26745,
273,
4662,
22,
13043,
21,
4279,
31,
202,
202,
84,
273,
6830,
18,
11100,
12,
4951,
1769,
202,
202,
81,
273,
293,
18,
22761,
12,
3299,
1769,
202,
202,
87,
273,
312,
18,
2079,
3759,
12,
26745,
1769,
202,
202,
11231,
5510,
12,
87,
18,
14963,
2
] |
public DatasetViewTreeWidget(File file) { super("Dataset Tree " + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable try { this.setFrameIcon(createImageIcon("MartView_cube.gif")); URL url = file.toURL(); DSViewAdaptor adaptor = new URLDSViewAdaptor(url, true); // only view one in the file so get that one DatasetView view = adaptor.getDatasetViews()[0]; this.setTitle(view.getInternalName()); JFrame.setDefaultLookAndFeelDecorated(true); /* constraints = new GridBagConstraints(); GridBagLayout layout = new GridBagLayout(); this.getContentPane().setLayout(layout); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 10; constraints.weighty = 10; */ DatasetViewAttributesTable attrTable = new DatasetViewAttributesTable( view, this); //TableColumn column = attrTable.getColumnModel().getColumn(1); JScrollPane treeScrollPane = new JScrollPane(new DatasetViewTree(view, this, attrTable)); JScrollPane tableScrollPane = new JScrollPane(attrTable); JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, treeScrollPane, tableScrollPane); splitPane.setOneTouchExpandable(true); splitPane.setDividerLocation(150); //Provide minimum sizes for the two components in the split pane. Dimension minimumSize = new Dimension(100, 50); treeScrollPane.setMinimumSize(minimumSize); tableScrollPane.setMinimumSize(minimumSize); this.getContentPane().add(splitPane); //add(this.getContentPane(), new JScrollPane(new DatasetViewTree(view, this, attrTable)), constraints, 0, 0, 1, 1); //add(this.getContentPane(), new JScrollPane(attrTable), constraints, 1, 0, 1, 1); //...Then set the window size or call pack... setSize(500, 400); //Set the window's location. setLocation(xOffset * openFrameCount, yOffset * openFrameCount); } catch (Exception e) { e.printStackTrace(); } }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/082dd174b481a0310ab6715ad2ee8e75b718027c/DatasetViewTreeWidget.java/buggy/src/java/org/ensembl/mart/vieweditor/DatasetViewTreeWidget.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
10778,
1767,
2471,
4609,
12,
812,
585,
13,
288,
225,
2240,
2932,
10656,
4902,
315,
397,
261,
9904,
3190,
3219,
1380,
3631,
638,
16,
368,
455,
6934,
638,
16,
368,
7550,
87,
429,
638,
16,
368,
1896,
381,
6934,
638,
1769,
759,
3950,
8424,
225,
775,
288,
2211,
18,
542,
3219,
5554,
12,
2640,
2040,
5554,
2932,
49,
485,
1767,
67,
21186,
18,
13905,
7923,
1769,
1785,
880,
273,
585,
18,
869,
1785,
5621,
3948,
1767,
29888,
9087,
273,
394,
1976,
3948,
1767,
29888,
12,
718,
16,
638,
1769,
759,
1338,
1476,
1245,
316,
326,
585,
1427,
336,
716,
1245,
10656,
1767,
1476,
273,
9087,
18,
588,
10656,
9959,
1435,
63,
20,
15533,
2211,
18,
542,
4247,
12,
1945,
18,
588,
3061,
461,
10663,
46,
3219,
18,
542,
1868,
9794,
1876,
2954,
292,
7859,
690,
12,
3767,
1769,
20308,
11967,
273,
394,
13075,
5621,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
2211,
18,
588,
1350,
8485,
7675,
542,
3744,
12,
6741,
1769,
11967,
18,
5935,
273,
13075,
18,
38,
18307,
31,
11967,
18,
4865,
92,
273,
1728,
31,
11967,
18,
4865,
93,
273,
1728,
31,
225,
1195,
10656,
1767,
2498,
1388,
1604,
1388,
273,
394,
10778,
1767,
2498,
1388,
12,
225,
1476,
16,
333,
1769,
759,
1388,
1494,
1057,
273,
1604,
1388,
18,
588,
1494,
1488,
7675,
588,
1494,
12,
21,
1769,
46,
26360,
2151,
26360,
273,
394,
804,
26360,
12,
2704,
10778,
1767,
2471,
12,
1945,
16,
225,
333,
16,
1604,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
10778,
1767,
2471,
4609,
12,
812,
585,
13,
288,
225,
2240,
2932,
10656,
4902,
315,
397,
261,
9904,
3190,
3219,
1380,
3631,
638,
16,
368,
455,
6934,
638,
16,
368,
7550,
87,
429,
638,
16,
368,
1896,
381,
6934,
638,
1769,
759,
3950,
8424,
225,
775,
288,
2211,
18,
542,
3219,
5554,
12,
2640,
2040,
5554,
2932,
49,
485,
1767,
67,
21186,
18,
13905,
7923,
1769,
1785,
880,
273,
585,
18,
869,
1785,
5621,
3948,
1767,
29888,
9087,
273,
394,
1976,
3948,
1767,
29888,
12,
718,
16,
638,
1769,
759,
1338,
1476,
1245,
316,
326,
585,
1427,
336,
716,
1245,
10656,
1767,
1476,
273,
9087,
18,
588,
10656,
9959,
1435,
63,
20,
15533,
2211,
18,
542,
4247,
2
] |
||
if (window == window_id) {
|
if (window == window_id) {
|
static void configureNotify(long window, int x, int y, int w, int h) { // System.out.println("configureNotify: window =" + window ); if (window == window_id) { uds.configureWindow(x, y, w, h); } }
|
4416 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4416/1c580b7c710d7654ac4532426becd5fc1b7315e1/UnixDockService.java/buggy/src/incubator/floating-dock/src/unix/classes/org/jdesktop/jdic/dock/internal/impl/UnixDockService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
5068,
9168,
12,
5748,
2742,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
13,
377,
288,
3639,
368,
225,
2332,
18,
659,
18,
8222,
2932,
14895,
9168,
30,
2742,
273,
6,
397,
2742,
11272,
202,
430,
261,
5668,
422,
2742,
67,
350,
13,
202,
95,
5411,
582,
2377,
18,
14895,
3829,
12,
92,
16,
677,
16,
341,
16,
366,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
918,
5068,
9168,
12,
5748,
2742,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
13,
377,
288,
3639,
368,
225,
2332,
18,
659,
18,
8222,
2932,
14895,
9168,
30,
2742,
273,
6,
397,
2742,
11272,
202,
430,
261,
5668,
422,
2742,
67,
350,
13,
202,
95,
5411,
582,
2377,
18,
14895,
3829,
12,
92,
16,
677,
16,
341,
16,
366,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new PSQLException("postgresql.con.creobj", type, ex);
|
throw new PSQLException("postgresql.con.creobj", PSQLState.CONNECTION_FAILURE, type, ex);
|
public Object getObject(String type, String value) throws SQLException { try { Object o = objectTypes.get(type); // If o is null, then the type is unknown. // If o is not null, and it is a String, then its a class name that // extends PGobject. // // This is used to implement the org.postgresql unique types (like lseg, // point, etc). if (o != null && o instanceof String) { // 6.3 style extending PG_Object PGobject obj = null; obj = (PGobject)(Class.forName((String)o).newInstance()); obj.setType(type); obj.setValue(value); return (Object)obj; } } catch (SQLException sx) { // rethrow the exception. Done because we capture any others next sx.fillInStackTrace(); throw sx; } catch (Exception ex) { throw new PSQLException("postgresql.con.creobj", type, ex); } // should never be reached return null; }
|
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
6455,
12,
780,
618,
16,
514,
460,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
921,
320,
273,
733,
2016,
18,
588,
12,
723,
1769,
1082,
202,
759,
971,
320,
353,
446,
16,
1508,
326,
618,
353,
5917,
18,
1082,
202,
759,
971,
320,
353,
486,
446,
16,
471,
518,
353,
279,
514,
16,
1508,
2097,
279,
667,
508,
716,
1082,
202,
759,
3231,
22116,
1612,
18,
1082,
202,
759,
1082,
202,
759,
1220,
353,
1399,
358,
2348,
326,
2358,
18,
2767,
24330,
3089,
1953,
261,
5625,
328,
5680,
16,
1082,
202,
759,
1634,
16,
5527,
2934,
1082,
202,
430,
261,
83,
480,
446,
597,
320,
1276,
514,
13,
1082,
202,
95,
9506,
202,
759,
1666,
18,
23,
2154,
27147,
22116,
67,
921,
9506,
202,
18679,
1612,
1081,
273,
446,
31,
9506,
202,
2603,
273,
261,
18679,
1612,
21433,
797,
18,
1884,
461,
12443,
780,
13,
83,
2934,
2704,
1442,
10663,
9506,
202,
2603,
18,
542,
559,
12,
723,
1769,
9506,
202,
2603,
18,
542,
620,
12,
1132,
1769,
9506,
202,
2463,
261,
921,
13,
2603,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
14683,
261,
23116,
13280,
13,
202,
202,
95,
1082,
202,
759,
22225,
326,
1520,
18,
8677,
2724,
732,
7477,
1281,
10654,
1024,
1082,
202,
30319,
18,
5935,
382,
6332,
5621,
1082,
202,
12849,
13280,
31,
202,
202,
97,
202,
202,
14683,
261,
503,
431,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6455,
12,
780,
618,
16,
514,
460,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
921,
320,
273,
733,
2016,
18,
588,
12,
723,
1769,
1082,
202,
759,
971,
320,
353,
446,
16,
1508,
326,
618,
353,
5917,
18,
1082,
202,
759,
971,
320,
353,
486,
446,
16,
471,
518,
353,
279,
514,
16,
1508,
2097,
279,
667,
508,
716,
1082,
202,
759,
3231,
22116,
1612,
18,
1082,
202,
759,
1082,
202,
759,
1220,
353,
1399,
358,
2348,
326,
2358,
18,
2767,
24330,
3089,
1953,
261,
5625,
328,
5680,
16,
1082,
202,
759,
1634,
16,
5527,
2934,
1082,
202,
430,
261,
83,
480,
446,
597,
320,
1276,
514,
13,
1082,
2
] |
StringTokenizer expressionTokenizer = new StringTokenizer((String) exprs.peek(), Code.DELIM);
|
StringTokenizer expressionTokenizer = new StringTokenizer( (String) exprs.peek(), Code.DELIM);
|
protected void handleCodeOFA(long expressionCounter, long objectCounter, String variableName, String value, String type, Highlight h) { Reference objVal = (Reference) values.remove(new Long(objectCounter)); if (objVal == null && !objectCreation.empty()) { objVal = (Reference) objectCreation.peek(); } ObjectFrame obj = (ObjectFrame) objVal.getInstance(); /* * This is here because if the object is just under creation * (i.e. were are currently in constructor) it is possiple * there the reference in values don't have any instance as * it's reference point and then the ObjectFrame obj is null * after previous line. */ if (obj == null && !objectCreation.empty()) { objVal = (Reference) objectCreation.peek(); obj = (ObjectFrame) objVal.getInstance(); } Variable var = obj.getVariable(variableName); /* * This is a static field access if there isn't such variable in the object. * If the code is like this: * class Ware { * int i = 0; * static int z = 0; * Ware (int i) { * this.i = i; * z++; * } * } * access to z in (z++) is a object field access in Dynamic Java and thus * it is necessary to transfer those actions to static field accesses in * Jeliot side. */ if (var == null) { handleCodeSFA(expressionCounter, obj.getType(), variableName, value, type, h); return; } //command that waits for this expression int command = -1; int oper = -1; int size = commands.size(); //We find the command for (int i = size - 1; i >= 0; i--) { StringTokenizer commandTokenizer = new StringTokenizer((String) commands.elementAt(i), Code.DELIM); int comm = Integer.parseInt(commandTokenizer.nextToken()); long cid = Long.parseLong(commandTokenizer.nextToken()); if (expressionCounter == cid) { command = comm; commands.removeElementAt(i); break; } } /* * Look from the expression stack what expression should be shown next */ long expressionReference = 0; Highlight highlight = null; if (!exprs.empty()) { StringTokenizer expressionTokenizer = new StringTokenizer((String) exprs.peek(), Code.DELIM); oper = Integer.parseInt(expressionTokenizer.nextToken()); expressionReference = Long.parseLong(expressionTokenizer.nextToken()); //Make the location information for the location // token highlight = MCodeUtilities.makeHighlight(expressionTokenizer.nextToken()); } Value val = null; if (MCodeUtilities.isPrimitive(type)) { val = new Value(value, type); ValueActor va = var.getActor().getValue(); val.setActor(va); } else { if (value.equals("null")) { val = new Reference(); } else { Instance inst = (Instance) instances.get(MCodeUtilities.getHashCode(value)); if (inst != null) { val = new Reference(inst); } else { val = new Reference(); } } val.setActor(var.getActor().getValue()); variables.put(new Long(expressionCounter), var); } /* * Do different kind of things depending on in what expression the * variable is used. */ //If operator is assignment we just store the value if (oper == Code.A) { if (command == Code.TO) { variables.put(new Long(expressionCounter), var); } else { values.put(new Long(expressionCounter), val); } //If oper is other binary operator we will show it //on the screen with operator } else if (MCodeUtilities.isBinary(oper)) { int operator = MCodeUtilities.resolveBinOperator(oper); if (command == Code.LEFT) { director.beginBinaryExpression(val, operator, expressionReference, highlight); } else if (command == Code.RIGHT) { ExpressionActor ea = director.getCurrentScratch().findActor(expressionReference); if (ea != null) { director.rightBinaryExpression(val, ea, highlight); } else { values.put(new Long(expressionCounter), val); } } else { values.put(new Long(expressionCounter), val); } //If oper is a unary operator we will show it //on the screen with operator } else if (MCodeUtilities.isUnary(oper)) { if (oper == Code.PRIE || oper == Code.PRDE) { variables.put(new Long(expressionCounter), var); values.put(new Long(expressionCounter), val); } else if (oper == Code.PIE || oper == Code.PDE) { variables.put(new Long(expressionCounter), var); values.put(new Long(expressionReference), val); values.put(new Long(expressionCounter), val); } else { values.put(new Long(expressionCounter), val); int operator = MCodeUtilities.resolveUnOperator(oper); if (command == Code.RIGHT) { director.beginUnaryExpression(operator, val, expressionReference, highlight); } } //If it is something else we will store it for // later use. } else { values.put(new Long(expressionCounter), val); variables.put(new Long(expressionCounter), var); } }
|
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/4f8e3bd480c250109c4e88a15fb468e8d6463729/TheaterMCodeInterpreter.java/buggy/src/jeliot/mcode/TheaterMCodeInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1085,
51,
2046,
12,
5748,
2652,
4789,
16,
1525,
733,
4789,
16,
514,
17834,
16,
5411,
514,
460,
16,
514,
618,
16,
31386,
366,
13,
288,
3639,
6268,
1081,
3053,
273,
261,
2404,
13,
924,
18,
4479,
12,
2704,
3407,
12,
1612,
4789,
10019,
3639,
309,
261,
2603,
3053,
422,
446,
597,
401,
1612,
9906,
18,
5531,
10756,
288,
5411,
1081,
3053,
273,
261,
2404,
13,
733,
9906,
18,
347,
3839,
5621,
3639,
289,
3639,
1033,
3219,
1081,
273,
261,
921,
3219,
13,
1081,
3053,
18,
588,
1442,
5621,
3639,
1748,
540,
380,
1220,
353,
2674,
2724,
309,
326,
733,
353,
2537,
3613,
6710,
540,
380,
261,
77,
18,
73,
18,
4591,
854,
4551,
316,
3885,
13,
518,
353,
949,
87,
2444,
540,
380,
1915,
326,
2114,
316,
924,
2727,
1404,
1240,
1281,
791,
487,
540,
380,
518,
1807,
2114,
1634,
471,
1508,
326,
1033,
3219,
1081,
353,
446,
540,
380,
1839,
2416,
980,
18,
540,
1195,
3639,
309,
261,
2603,
422,
446,
597,
401,
1612,
9906,
18,
5531,
10756,
288,
5411,
1081,
3053,
273,
261,
2404,
13,
733,
9906,
18,
347,
3839,
5621,
5411,
1081,
273,
261,
921,
3219,
13,
1081,
3053,
18,
588,
1442,
5621,
3639,
289,
3639,
7110,
569,
273,
1081,
18,
588,
3092,
12,
6105,
461,
1769,
3639,
1748,
540,
380,
1220,
353,
279,
760,
652,
2006,
309,
1915,
5177,
1404,
4123,
2190,
316,
326,
733,
18,
540,
380,
971,
326,
981,
353,
3007,
333,
30,
540,
380,
667,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1085,
51,
2046,
12,
5748,
2652,
4789,
16,
1525,
733,
4789,
16,
514,
17834,
16,
5411,
514,
460,
16,
514,
618,
16,
31386,
366,
13,
288,
3639,
6268,
1081,
3053,
273,
261,
2404,
13,
924,
18,
4479,
12,
2704,
3407,
12,
1612,
4789,
10019,
3639,
309,
261,
2603,
3053,
422,
446,
597,
401,
1612,
9906,
18,
5531,
10756,
288,
5411,
1081,
3053,
273,
261,
2404,
13,
733,
9906,
18,
347,
3839,
5621,
3639,
289,
3639,
1033,
3219,
1081,
273,
261,
921,
3219,
13,
1081,
3053,
18,
588,
1442,
5621,
3639,
1748,
540,
380,
1220,
353,
2674,
2724,
309,
326,
733,
353,
2537,
3613,
6710,
540,
380,
261,
77,
18,
73,
18,
4591,
854,
4551,
316,
2
] |
psiManager.getElementFactory();
|
manager.getElementFactory();
|
public void doFix(Project project, ProblemDescriptor descriptor) throws IncorrectOperationException{ final PsiExpression variable = (PsiExpression) descriptor.getPsiElement(); final PsiMethod method = PsiTreeUtil.getParentOfType(variable, PsiMethod.class); assert method != null; final PsiCodeBlock body = method.getBody(); final PsiType type = variable.getType(); final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager codeStyleManager = psiManager.getCodeStyleManager(); final String originalVariableName = variable.getText(); final SuggestedNameInfo suggestions = codeStyleManager .suggestVariableName(VariableKind.LOCAL_VARIABLE, originalVariableName + '1', variable, type); final String[] names = suggestions.names; @NonNls final String baseName; if(names != null && names.length > 0){ baseName = names[0]; } else{ baseName = "value"; } final String variableName = codeStyleManager.suggestUniqueVariableName(baseName, method, false); final String className = type.getPresentableText(); final PsiElement[] children = body.getChildren(); final StringBuffer buffer = new StringBuffer(); for(int i = 1; i < children.length; i++){ replaceVariableName(children[i], variableName, originalVariableName, buffer); } final String replacementText = '{' + className + ' ' + variableName + " = " + originalVariableName + ';' + buffer; final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiCodeBlock block = elementFactory.createCodeBlockFromText(replacementText, null); body.replace(block); codeStyleManager.reformat(method); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4b42b074cf297292458172fa176168ee705ab721/AssignmentToMethodParameterInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/assignment/AssignmentToMethodParameterInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
741,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
13,
7734,
1216,
657,
6746,
10602,
95,
5411,
727,
453,
7722,
2300,
2190,
273,
10792,
261,
52,
7722,
2300,
13,
4950,
18,
588,
52,
7722,
1046,
5621,
5411,
727,
453,
7722,
1305,
707,
273,
10792,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
1305,
18,
1106,
1769,
5411,
1815,
707,
480,
446,
31,
5411,
727,
453,
7722,
1085,
1768,
1417,
273,
707,
18,
588,
2250,
5621,
5411,
727,
453,
7722,
559,
618,
273,
2190,
18,
588,
559,
5621,
5411,
727,
453,
7722,
1318,
23921,
1318,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4406,
1769,
5411,
727,
3356,
2885,
1318,
981,
2885,
1318,
273,
10792,
23921,
1318,
18,
588,
1085,
2885,
1318,
5621,
5411,
727,
514,
2282,
21519,
273,
2190,
18,
588,
1528,
5621,
5411,
727,
348,
28892,
461,
966,
17969,
273,
10792,
981,
2885,
1318,
18701,
263,
87,
8679,
21519,
12,
3092,
5677,
18,
14922,
67,
16444,
16,
4766,
1171,
2282,
21519,
397,
296,
21,
2187,
4766,
1171,
2190,
16,
618,
1769,
5411,
727,
514,
8526,
1257,
273,
17969,
18,
1973,
31,
5411,
632,
3989,
50,
3251,
727,
514,
16162,
31,
5411,
309,
12,
1973,
480,
446,
597,
1257,
18,
2469,
405,
374,
15329,
7734,
16162,
273,
1257,
63,
20,
15533,
5411,
289,
469,
95,
7734,
16162,
273,
315,
1132,
14432,
5411,
289,
5411,
727,
514,
17834,
273,
10792,
981,
2885,
1318,
18,
87,
8679,
6303,
21519,
12,
1969,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
741,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
13,
7734,
1216,
657,
6746,
10602,
95,
5411,
727,
453,
7722,
2300,
2190,
273,
10792,
261,
52,
7722,
2300,
13,
4950,
18,
588,
52,
7722,
1046,
5621,
5411,
727,
453,
7722,
1305,
707,
273,
10792,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6105,
16,
453,
7722,
1305,
18,
1106,
1769,
5411,
1815,
707,
480,
446,
31,
5411,
727,
453,
7722,
1085,
1768,
1417,
273,
707,
18,
588,
2250,
5621,
5411,
727,
453,
7722,
559,
618,
273,
2190,
18,
588,
559,
5621,
5411,
727,
453,
7722,
1318,
23921,
1318,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4406,
1769,
5411,
727,
3356,
2885,
1318,
981,
2885,
2
] |
: changeSupport.getPropertyChangeListeners(property);
|
: changeSupport.getPropertyChangeListeners();
|
public PropertyChangeListener[] getPropertyChangeListeners(String property) { return changeSupport == null ? new PropertyChangeListener[0] : changeSupport.getPropertyChangeListeners(property); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Component.java/clean/core/src/classpath/java/java/awt/Component.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4276,
15744,
8526,
3911,
3043,
5583,
12,
780,
1272,
13,
225,
288,
565,
327,
2549,
6289,
422,
446,
692,
394,
4276,
15744,
63,
20,
65,
1377,
294,
2549,
6289,
18,
588,
1396,
3043,
5583,
12,
4468,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4276,
15744,
8526,
3911,
3043,
5583,
12,
780,
1272,
13,
225,
288,
565,
327,
2549,
6289,
422,
446,
692,
394,
4276,
15744,
63,
20,
65,
1377,
294,
2549,
6289,
18,
588,
1396,
3043,
5583,
12,
4468,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (map.get(s[0]) == null) { map.put(s[0], new HashMap());
|
if (delimIndex != -1) { pre = prefix.substring(0, delimIndex); if (delimIndex < prefix.length() - 1) { post = prefix.substring(delimIndex + 1); } } else { pre = prefix;
|
private void add(Map map, String pattern, AbstractStatusHandler handler) { if (pattern == null) { if (map.get(ASTERISK) == null) { map.put(ASTERISK, new ArrayList()); } ((List) map.get(ASTERISK)).add(handler); } else { String s[] = pattern.split("\\.|$", 2); //$NON-NLS-1$ if (map.get(s[0]) == null) { map.put(s[0], new HashMap()); } add((Map) map.get(s[0]), (s[1].equals("") ? null : s[1]), handler); //$NON-NLS-1$ } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ec13157b7472055133c041ba0c35998639da53ec/StatusManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/statushandling/StatusManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
527,
12,
863,
852,
16,
514,
1936,
16,
4115,
1482,
1503,
1838,
13,
288,
1082,
202,
430,
261,
4951,
422,
446,
13,
288,
9506,
202,
430,
261,
1458,
18,
588,
12,
23638,
5127,
47,
13,
422,
446,
13,
288,
6862,
202,
1458,
18,
458,
12,
23638,
5127,
47,
16,
394,
2407,
10663,
9506,
202,
97,
9506,
202,
12443,
682,
13,
852,
18,
588,
12,
23638,
5127,
47,
13,
2934,
1289,
12,
4176,
1769,
1082,
202,
97,
469,
288,
9506,
202,
780,
272,
8526,
273,
1936,
18,
4939,
2932,
19978,
25203,
3113,
576,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
430,
261,
1458,
18,
588,
12,
87,
63,
20,
5717,
422,
446,
13,
288,
6862,
202,
1458,
18,
458,
12,
87,
63,
20,
6487,
394,
4317,
10663,
9506,
202,
97,
9506,
202,
1289,
12443,
863,
13,
852,
18,
588,
12,
87,
63,
20,
65,
3631,
25083,
202,
12,
87,
63,
21,
8009,
14963,
2932,
7923,
692,
446,
294,
272,
63,
21,
65,
3631,
1838,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
1152,
918,
527,
12,
863,
852,
16,
514,
1936,
16,
4115,
1482,
1503,
1838,
13,
288,
1082,
202,
430,
261,
4951,
422,
446,
13,
288,
9506,
202,
430,
261,
1458,
18,
588,
12,
23638,
5127,
47,
13,
422,
446,
13,
288,
6862,
202,
1458,
18,
458,
12,
23638,
5127,
47,
16,
394,
2407,
10663,
9506,
202,
97,
9506,
202,
12443,
682,
13,
852,
18,
588,
12,
23638,
5127,
47,
13,
2934,
1289,
12,
4176,
1769,
1082,
202,
97,
469,
288,
9506,
202,
780,
272,
8526,
273,
1936,
18,
4939,
2932,
19978,
25203,
3113,
576,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
430,
261,
1458,
18,
588,
12,
87,
63,
20,
5717,
422,
446,
13,
2
] |
return new Source(fileName);
|
return new FileSource(fileName);
|
public Source fileSource(String fileName) throws IOException { File sourceFile = new File(fileName); if (! sourceFile.exists()) { throw new FileNotFoundException(fileName); } if (! fileName.endsWith("." + sourceExt.fileExtension())) { throw new IOException("Source \"" + fileName + "\" does not have the extension \"." + sourceExt.fileExtension() + "\"."); } Compiler.report(2, "Loading class from " + sourceFile); return new Source(fileName); }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/fd00f96eef7557b99ae38835861f4944727a4dde/SourceLoader.java/buggy/src/polyglot/frontend/SourceLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4998,
585,
1830,
12,
780,
3968,
13,
1216,
1860,
288,
202,
812,
16338,
273,
394,
1387,
12,
17812,
1769,
202,
430,
16051,
16338,
18,
1808,
10756,
288,
202,
565,
604,
394,
13707,
12,
17812,
1769,
202,
97,
3639,
309,
16051,
3968,
18,
5839,
1190,
2932,
1199,
397,
1084,
2482,
18,
768,
3625,
1435,
3719,
288,
5411,
604,
394,
1860,
2932,
1830,
11843,
397,
3968,
397,
21394,
7023,
1552,
486,
1240,
326,
2710,
1239,
1199,
397,
21394,
1084,
2482,
18,
768,
3625,
1435,
397,
7023,
1199,
1769,
3639,
289,
202,
9213,
18,
6006,
12,
22,
16,
315,
10515,
667,
628,
315,
397,
16338,
1769,
202,
2463,
394,
1387,
1830,
12,
17812,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4998,
585,
1830,
12,
780,
3968,
13,
1216,
1860,
288,
202,
812,
16338,
273,
394,
1387,
12,
17812,
1769,
202,
430,
16051,
16338,
18,
1808,
10756,
288,
202,
565,
604,
394,
13707,
12,
17812,
1769,
202,
97,
3639,
309,
16051,
3968,
18,
5839,
1190,
2932,
1199,
397,
1084,
2482,
18,
768,
3625,
1435,
3719,
288,
5411,
604,
394,
1860,
2932,
1830,
11843,
397,
3968,
397,
21394,
7023,
1552,
486,
1240,
326,
2710,
1239,
1199,
397,
21394,
1084,
2482,
18,
768,
3625,
1435,
397,
7023,
1199,
1769,
3639,
289,
202,
9213,
18,
6006,
12,
22,
16,
315,
10515,
667,
628,
315,
397,
16338,
1769,
202,
2463,
394,
1387,
1830,
12,
17812,
1769,
565,
289,
2,
-100,
-100,
-100,
-100
] |
if (jj_scan_token(LOGICAL_OR)) return true;
|
if (jj_3R_56()) return true;
|
final private boolean jj_3R_53() { if (jj_scan_token(LOGICAL_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_52()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/983675edbbab0e381643fec9c2a3e765c2f88830/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
8643,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4313,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9401,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
8643,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4313,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9401,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
restoreTCCL(msgContext);
|
restoreThreadContext(tc);
|
public final void receive(MessageContext msgContext) throws AxisFault { MessageContext outMsgContext = Utils.createOutMessageContext(msgContext); outMsgContext.getOperationContext().addMessageContext(outMsgContext); try { saveTCCL(msgContext); invokeBusinessLogic(msgContext, outMsgContext); } finally { restoreTCCL(msgContext); } AxisEngine engine = new AxisEngine( msgContext.getConfigurationContext()); engine.send(outMsgContext); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/96a353c24553d31bf0a7d366711948039ba58560/AbstractInOutSyncMessageReceiver.java/clean/modules/kernel/src/org/apache/axis2/receivers/AbstractInOutSyncMessageReceiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
6798,
12,
1079,
1042,
1234,
1042,
13,
1216,
15509,
7083,
288,
3639,
2350,
1042,
596,
3332,
1042,
273,
6091,
18,
2640,
1182,
1079,
1042,
12,
3576,
1042,
1769,
3639,
596,
3332,
1042,
18,
588,
2988,
1042,
7675,
1289,
1079,
1042,
12,
659,
3332,
1042,
1769,
3639,
775,
288,
5411,
1923,
15988,
5017,
12,
3576,
1042,
1769,
5411,
4356,
13423,
20556,
12,
3576,
1042,
16,
596,
3332,
1042,
1769,
3639,
289,
3095,
288,
5411,
5217,
3830,
1042,
12,
5111,
1769,
3639,
289,
3639,
15509,
4410,
4073,
273,
7734,
394,
15509,
4410,
12,
13491,
1234,
1042,
18,
588,
1750,
1042,
10663,
3639,
4073,
18,
4661,
12,
659,
3332,
1042,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
918,
6798,
12,
1079,
1042,
1234,
1042,
13,
1216,
15509,
7083,
288,
3639,
2350,
1042,
596,
3332,
1042,
273,
6091,
18,
2640,
1182,
1079,
1042,
12,
3576,
1042,
1769,
3639,
596,
3332,
1042,
18,
588,
2988,
1042,
7675,
1289,
1079,
1042,
12,
659,
3332,
1042,
1769,
3639,
775,
288,
5411,
1923,
15988,
5017,
12,
3576,
1042,
1769,
5411,
4356,
13423,
20556,
12,
3576,
1042,
16,
596,
3332,
1042,
1769,
3639,
289,
3095,
288,
5411,
5217,
3830,
1042,
12,
5111,
1769,
3639,
289,
3639,
15509,
4410,
4073,
273,
7734,
394,
15509,
4410,
12,
13491,
1234,
1042,
18,
588,
1750,
1042,
10663,
3639,
4073,
18,
4661,
12,
659,
3332,
1042,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
sb.append(string[current]);
|
if (Character.digit(string[current], 10) >= 0) { String s = new String(string, current, 3); int i = Integer.parseInt(s); sb.append((char)i); current += 2; } else sb.append(string[current]); escaped = false;
|
nextToken() { if (putBack != null) { String s = putBack; putBack = null; return s; } int start = current; if (isDelim(current)) { /* This is whitespace */ while (current < string.length && isDelim(current)) current++; if (returnTokens) return new String(string, start, current - start); } boolean quoted = false; boolean escaped = false; StringBuffer sb = new StringBuffer(); while (true) { if (current == string.length) break; if (escaped) { sb.append(string[current]); } else if (quoted) { if (string[current] == '"') { current++; break; } else sb.append(string[current]); } else { if (string[current] == '"') quoted = true; else if (string[current] == '\\') escaped = true; else if (isDelim(current)) { break; } else sb.append(string[current]); } current++; } return sb.toString();}
|
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/fe5c7c24d67287cbe40c1fd98beb3b364b9be10b/MyStringTokenizer.java/clean/DNS/MyStringTokenizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9617,
1435,
288,
202,
430,
261,
458,
2711,
480,
446,
13,
288,
202,
202,
780,
272,
273,
1378,
2711,
31,
202,
202,
458,
2711,
273,
446,
31,
202,
202,
2463,
272,
31,
202,
97,
202,
474,
787,
273,
783,
31,
202,
430,
261,
291,
21445,
12,
2972,
3719,
288,
202,
202,
20308,
1220,
353,
7983,
1195,
202,
202,
17523,
261,
2972,
411,
533,
18,
2469,
597,
353,
21445,
12,
2972,
3719,
1082,
202,
2972,
9904,
31,
202,
202,
430,
261,
2463,
5157,
13,
1082,
202,
2463,
394,
514,
12,
1080,
16,
787,
16,
783,
300,
787,
1769,
202,
97,
202,
6494,
9298,
273,
629,
31,
202,
6494,
8345,
273,
629,
31,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
202,
17523,
261,
3767,
13,
288,
202,
202,
430,
261,
2972,
422,
533,
18,
2469,
13,
1082,
202,
8820,
31,
202,
202,
430,
261,
16502,
13,
288,
1082,
202,
18366,
18,
6923,
12,
1080,
63,
2972,
19226,
202,
202,
97,
202,
202,
12107,
309,
261,
15179,
13,
288,
1082,
202,
430,
261,
1080,
63,
2972,
65,
422,
4754,
13,
288,
9506,
202,
2972,
9904,
31,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
12107,
9506,
202,
18366,
18,
6923,
12,
1080,
63,
2972,
19226,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
430,
261,
1080,
63,
2972,
65,
422,
4754,
13,
4697,
202,
15179,
273,
638,
31,
1082,
202,
12107,
309,
261,
1080,
63,
2972,
65,
422,
5282,
13,
9506,
202,
16502,
273,
638,
31,
1082,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9617,
1435,
288,
202,
430,
261,
458,
2711,
480,
446,
13,
288,
202,
202,
780,
272,
273,
1378,
2711,
31,
202,
202,
458,
2711,
273,
446,
31,
202,
202,
2463,
272,
31,
202,
97,
202,
474,
787,
273,
783,
31,
202,
430,
261,
291,
21445,
12,
2972,
3719,
288,
202,
202,
20308,
1220,
353,
7983,
1195,
202,
202,
17523,
261,
2972,
411,
533,
18,
2469,
597,
353,
21445,
12,
2972,
3719,
1082,
202,
2972,
9904,
31,
202,
202,
430,
261,
2463,
5157,
13,
1082,
202,
2463,
394,
514,
12,
1080,
16,
787,
16,
783,
300,
787,
1769,
202,
97,
202,
6494,
9298,
273,
629,
31,
202,
6494,
8345,
273,
629,
31,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
2
] |
.getSelection();
|
.getSelection();
|
private void doRename() { IStructuredSelection selection = (IStructuredSelection) fLibraryViewer .getSelection(); if (selection.size() == 1) { IBuildEntry entry = (IBuildEntry) selection.getFirstElement(); String oldName = entry.getName().substring(7); RenameDialog dialog = new RenameDialog(fLibraryViewer.getControl() .getShell(), oldName); dialog.create(); dialog .getShell() .setText( PDEPlugin .getResourceString("EditableTablePart.renameTitle")); //$NON-NLS-1$ dialog.getShell().setSize(300, 150); if (dialog.open() == Dialog.OK) { entryModified(entry, dialog.getNewName()); } } }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/99df0a4ed1a722d3742eed3ce69d6544570a4490/RuntimeInfoSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/RuntimeInfoSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
16019,
1435,
288,
202,
202,
45,
30733,
6233,
4421,
273,
261,
45,
30733,
6233,
13,
284,
9313,
18415,
9506,
202,
18,
588,
6233,
5621,
202,
202,
430,
261,
10705,
18,
1467,
1435,
422,
404,
13,
288,
1082,
202,
45,
3116,
1622,
1241,
273,
261,
45,
3116,
1622,
13,
4421,
18,
588,
3759,
1046,
5621,
1082,
202,
780,
22916,
273,
1241,
18,
17994,
7675,
28023,
12,
27,
1769,
1082,
202,
16019,
6353,
6176,
273,
394,
19996,
6353,
12,
74,
9313,
18415,
18,
588,
3367,
1435,
6862,
202,
18,
588,
13220,
9334,
22916,
1769,
1082,
202,
12730,
18,
2640,
5621,
1082,
202,
12730,
6862,
202,
18,
588,
13220,
1435,
6862,
202,
18,
542,
1528,
12,
6862,
1082,
202,
52,
1639,
3773,
6862,
6862,
202,
18,
588,
1420,
780,
2932,
15470,
1388,
1988,
18,
18539,
4247,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
12730,
18,
588,
13220,
7675,
542,
1225,
12,
19249,
16,
18478,
1769,
1082,
202,
430,
261,
12730,
18,
3190,
1435,
422,
17242,
18,
3141,
13,
288,
9506,
202,
4099,
4575,
12,
4099,
16,
6176,
18,
588,
1908,
461,
10663,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
16019,
1435,
288,
202,
202,
45,
30733,
6233,
4421,
273,
261,
45,
30733,
6233,
13,
284,
9313,
18415,
9506,
202,
18,
588,
6233,
5621,
202,
202,
430,
261,
10705,
18,
1467,
1435,
422,
404,
13,
288,
1082,
202,
45,
3116,
1622,
1241,
273,
261,
45,
3116,
1622,
13,
4421,
18,
588,
3759,
1046,
5621,
1082,
202,
780,
22916,
273,
1241,
18,
17994,
7675,
28023,
12,
27,
1769,
1082,
202,
16019,
6353,
6176,
273,
394,
19996,
6353,
12,
74,
9313,
18415,
18,
588,
3367,
1435,
6862,
202,
18,
588,
13220,
9334,
22916,
1769,
1082,
202,
12730,
18,
2640,
5621,
1082,
202,
12730,
6862,
202,
18,
588,
13220,
1435,
6862,
202,
18,
542,
1528,
12,
6862,
2
] |
logger.info("\nLoan Broker Quote recieved: " + quote); System.out.println("Quote " + incQuotes() + " recieved: " + quote);
|
logger.info("\nLoan Broker Quote received: " + quote); System.out.println("Quote " + incQuotes() + " received: " + quote);
|
public Object receiveQuote(LoanQuote quote) { logger.info("\nLoan Broker Quote recieved: " + quote); System.out.println("Quote " + incQuotes() + " recieved: " + quote); //System.out.println("OQuote: " + incQuotes()); return null; }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/bdd4cc92cfec9163a9fde200061a53cdecde7563/AsyncLoanBroker.java/buggy/samples/loanbroker/src/java/org/mule/samples/loanbroker/AsyncLoanBroker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
6798,
10257,
12,
1504,
304,
10257,
3862,
13,
288,
3639,
1194,
18,
1376,
31458,
82,
1504,
304,
20438,
21695,
1950,
1385,
2155,
30,
315,
397,
3862,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
10257,
315,
397,
7290,
14292,
1435,
397,
315,
1950,
1385,
2155,
30,
315,
397,
3862,
1769,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
51,
10257,
30,
315,
397,
7290,
14292,
10663,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
6798,
10257,
12,
1504,
304,
10257,
3862,
13,
288,
3639,
1194,
18,
1376,
31458,
82,
1504,
304,
20438,
21695,
1950,
1385,
2155,
30,
315,
397,
3862,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
10257,
315,
397,
7290,
14292,
1435,
397,
315,
1950,
1385,
2155,
30,
315,
397,
3862,
1769,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
51,
10257,
30,
315,
397,
7290,
14292,
10663,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (font == null) {
|
if (font == null) {
|
public void paint(Graphics screen) { if (screen == null) return; //systemOut.println("paint()"); if (bgColor == null) { bgColor = PdeBase.getColor("editor.console.bgcolor", new Color(26, 26, 26)); fgColorOut = PdeBase.getColor("editor.console.fgcolor.output", new Color(153, 153, 153)); fgColorErr = PdeBase.getColor("editor.console.fgcolor.error", new Color(204, 51, 0)); scrollEnabledColor = PdeBase.getColor("editor.console.scrollbox.color.enabled", new Color(51, 51, 51)); scrollDisabledColor = PdeBase.getColor("editor.console.scrollbox.color.disabled", new Color(35, 35, 35)); screen.setFont(font); metrics = screen.getFontMetrics(); ascent = metrics.getAscent(); leading = ascent + metrics.getDescent(); //System.out.println(ascent + " " + leading); } Dimension size = getSize(); if ((size.width != sizeW) || (size.height != sizeH)) { // component has been resized if ((size.width > imageW) || (size.height > imageH)) { // nix the image and recreate, it's too small offscreen = null; } else { // who cares, just resize sizeW = size.width; sizeH = size.height; //setButtonBounds(); } } //systemErr.println("size h, w = " + sizeW + " " + sizeH); if (offscreen == null) { sizeW = size.width; sizeH = size.height; //setButtonBounds(); imageW = sizeW; imageH = sizeH; offscreen = createImage(imageW, imageH); } if (offscreen == null) return; Graphics g = offscreen.getGraphics(); /* if (font == null) { font = PdeBase.getFont("editor.console.font", new Font("Monospaced", Font.PLAIN, 11)); //font = new Font("SansSerif", Font.PLAIN, 10); g.setFont(font); metrics = g.getFontMetrics(); ascent = metrics.getAscent(); } */ g.setFont(font); g.setColor(bgColor); g.fillRect(0, 0, imageW, imageH); for (int i = 0; i < lineCount; i++) { //int ii = (firstLine + i) % maxLineCount; int ii = (firstLine + i) + scrollOffset; while (ii < 0) ii += maxLineCount; if (ii >= maxLineCount) ii = ii % maxLineCount; g.setColor(isError[ii] ? fgColorErr : fgColorOut); //System.out.println(leading); g.drawString(lines[ii], HINSET, VINSET + ascent + i*ascent); } final int SCROLL_INSET = 4; final int SCROLL_SIZE = 12; scrollRight = sizeW - SCROLL_INSET; scrollLeft = scrollRight - SCROLL_SIZE; scrollUpTop = SCROLL_INSET; scrollUpBottom = scrollUpTop + SCROLL_SIZE; scrollDownBottom = sizeH - SCROLL_INSET; if ((PdeBase.platform == PdeBase.MACOSX) || (PdeBase.platform == PdeBase.MACOS9)) { scrollDownBottom -= 16; // because size boxes intrude } scrollDownTop = scrollDownBottom - SCROLL_SIZE; g.setColor(scrollEnabledColor); g.fillRect(scrollLeft, scrollUpTop, SCROLL_SIZE, SCROLL_SIZE); g.setColor((scrollOffset != 0) ? scrollEnabledColor : scrollDisabledColor); g.fillRect(scrollLeft, scrollDownTop, SCROLL_SIZE, SCROLL_SIZE); screen.drawImage(offscreen, 0, 0, null); }
|
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/df97780d8cd68ab478975c2fd51dc1c885503e29/PdeEditorConsole.java/buggy/app/PdeEditorConsole.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
12,
17558,
5518,
13,
288,
565,
309,
261,
9252,
422,
446,
13,
327,
31,
377,
368,
4299,
1182,
18,
8222,
2932,
84,
1598,
1435,
8863,
565,
309,
261,
12370,
2957,
422,
446,
13,
288,
1377,
7611,
2957,
273,
453,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
12370,
3266,
3113,
4405,
394,
5563,
12,
5558,
16,
10659,
16,
10659,
10019,
1377,
10186,
2957,
1182,
273,
453,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
2137,
3266,
18,
2844,
3113,
4405,
565,
394,
5563,
12,
30305,
16,
4711,
23,
16,
4711,
23,
10019,
1377,
10186,
2957,
2524,
273,
453,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
2137,
3266,
18,
1636,
3113,
4405,
565,
394,
5563,
12,
21573,
16,
21119,
16,
374,
10019,
1377,
5532,
1526,
2957,
273,
225,
202,
52,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
12033,
2147,
18,
3266,
18,
5745,
3113,
4697,
394,
5563,
12,
10593,
16,
21119,
16,
21119,
10019,
1377,
5532,
8853,
2957,
273,
225,
202,
52,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
12033,
2147,
18,
3266,
18,
9278,
3113,
4697,
394,
5563,
12,
4763,
16,
13191,
16,
13191,
10019,
1377,
5518,
18,
542,
5711,
12,
5776,
1769,
1377,
4309,
273,
5518,
18,
588,
5711,
5653,
5621,
1377,
487,
2998,
273,
4309,
18,
588,
13665,
319,
5621,
1377,
7676,
273,
487,
2998,
397,
4309,
18,
588,
4217,
319,
5621,
1377,
368,
3163,
18,
659,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
12,
17558,
5518,
13,
288,
565,
309,
261,
9252,
422,
446,
13,
327,
31,
377,
368,
4299,
1182,
18,
8222,
2932,
84,
1598,
1435,
8863,
565,
309,
261,
12370,
2957,
422,
446,
13,
288,
1377,
7611,
2957,
273,
453,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
12370,
3266,
3113,
4405,
394,
5563,
12,
5558,
16,
10659,
16,
10659,
10019,
1377,
10186,
2957,
1182,
273,
453,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
2137,
3266,
18,
2844,
3113,
4405,
565,
394,
5563,
12,
30305,
16,
4711,
23,
16,
4711,
23,
10019,
1377,
10186,
2957,
2524,
273,
453,
323,
2171,
18,
588,
2957,
2932,
9177,
18,
8698,
18,
2137,
3266,
18,
2
] |
public void presentationSettingsChanging(IMylarContextListener.UpdateKind kind) { // don't care when the presentation settings are changing }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/89a1a475cceb656fd6a5e40312f5ddfcc313eef9/ActiveFoldingListener.java/clean/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/ui/editor/ActiveFoldingListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22525,
2628,
782,
18183,
12,
3445,
93,
7901,
1042,
2223,
18,
1891,
5677,
3846,
13,
288,
202,
202,
759,
2727,
1404,
7671,
1347,
326,
22525,
1947,
854,
12770,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22525,
2628,
782,
18183,
12,
3445,
93,
7901,
1042,
2223,
18,
1891,
5677,
3846,
13,
288,
202,
202,
759,
2727,
1404,
7671,
1347,
326,
22525,
1947,
854,
12770,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
cfw.addPush(incrDecrType);
|
cfw.addPush(incrDecrMask);
|
private void visitIncDec(Node node, boolean isInc) { int incrDecrType = node.getExistingIntProp(Node.INCRDECR_PROP); Node child = node.getFirstChild(); switch (child.getType()) { case Token.GETVAR: if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { boolean post = (incrDecrType == Node.POST_INC || incrDecrType == Node.POST_DEC); OptLocalVariable lVar = OptLocalVariable.get(child); short reg = lVar.getJRegister(); cfw.addDLoad(reg); if (post) { cfw.add(ByteCode.DUP2); } cfw.addPush(1.0); if (incrDecrType == Node.PRE_INC || incrDecrType == Node.POST_INC) { cfw.add(ByteCode.DADD); } else { cfw.add(ByteCode.DSUB); } if (!post) { cfw.add(ByteCode.DUP2); } cfw.addDStore(reg); break; } else if (hasVarsInRegs) { boolean post = (incrDecrType == Node.POST_INC || incrDecrType == Node.POST_DEC); OptLocalVariable lVar = OptLocalVariable.get(child); if (lVar == null) lVar = fnCurrent.getVar(child.getString()); short reg = lVar.getJRegister(); cfw.addALoad(reg); if (post) { cfw.add(ByteCode.DUP); } addObjectToDouble(); cfw.addPush(1.0); if (incrDecrType == Node.PRE_INC || incrDecrType == Node.POST_INC) { cfw.add(ByteCode.DADD); } else { cfw.add(ByteCode.DSUB); } addDoubleWrap(); if (!post) { cfw.add(ByteCode.DUP); } cfw.addAStore(reg); break; } // fallthrough case Token.NAME: cfw.addALoad(variableObjectLocal); cfw.addPush(child.getString()); // push name cfw.addPush(incrDecrType); addScriptRuntimeInvoke("nameIncrDecr", "(Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +"I)Ljava/lang/Object;"); break; case Token.GETPROP: { Node getPropChild = child.getFirstChild(); generateCodeFromNode(getPropChild, node); generateCodeFromNode(getPropChild.getNext(), node); cfw.addALoad(variableObjectLocal); cfw.addPush(incrDecrType); addScriptRuntimeInvoke("propIncrDecr", "(Ljava/lang/Object;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Scriptable;" +"I)Ljava/lang/Object;"); break; } case Token.GETELEM: { Node getElemChild = child.getFirstChild(); generateCodeFromNode(getElemChild, node); generateCodeFromNode(getElemChild.getNext(), node); cfw.addALoad(variableObjectLocal); cfw.addPush(incrDecrType); addScriptRuntimeInvoke("elemIncrDecr", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +"I)Ljava/lang/Object;"); break; } case Token.GET_REF: { Node refChild = child.getFirstChild(); generateCodeFromNode(refChild, node); cfw.addPush(incrDecrType); addScriptRuntimeInvoke( "referenceIncrDecr", "(Ljava/lang/Object;I)Ljava/lang/Object;"); break; } default: Codegen.badTree(); } }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/cb3a4fef51dd031baf4bc78bcf8cc452587ea3b7/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
14559,
1799,
12,
907,
756,
16,
1250,
8048,
71,
13,
565,
288,
3639,
509,
17633,
1799,
86,
559,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
706,
5093,
1639,
5093,
67,
15811,
1769,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
3624,
18,
588,
559,
10756,
288,
1850,
648,
3155,
18,
3264,
7716,
30,
5411,
309,
261,
2159,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
13,
480,
300,
21,
13,
288,
7734,
1250,
1603,
273,
261,
267,
3353,
1799,
86,
559,
422,
2029,
18,
3798,
67,
23213,
27573,
747,
17633,
1799,
86,
559,
422,
2029,
18,
3798,
67,
1639,
39,
1769,
7734,
12056,
2042,
3092,
328,
1537,
273,
12056,
2042,
3092,
18,
588,
12,
3624,
1769,
7734,
3025,
960,
273,
328,
1537,
18,
588,
46,
3996,
5621,
7734,
6080,
91,
18,
1289,
40,
2563,
12,
1574,
1769,
7734,
309,
261,
2767,
13,
288,
10792,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
22,
1769,
7734,
289,
7734,
6080,
91,
18,
1289,
7621,
12,
21,
18,
20,
1769,
7734,
309,
261,
267,
3353,
1799,
86,
559,
422,
2029,
18,
3670,
67,
23213,
10792,
747,
17633,
1799,
86,
559,
422,
2029,
18,
3798,
67,
23213,
13,
7734,
288,
10792,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
40,
8355,
1769,
7734,
289,
469,
288,
10792,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3948,
3457,
1769,
7734,
289,
7734,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
14559,
1799,
12,
907,
756,
16,
1250,
8048,
71,
13,
565,
288,
3639,
509,
17633,
1799,
86,
559,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
706,
5093,
1639,
5093,
67,
15811,
1769,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
3624,
18,
588,
559,
10756,
288,
1850,
648,
3155,
18,
3264,
7716,
30,
5411,
309,
261,
2159,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
13,
480,
300,
21,
13,
288,
7734,
1250,
1603,
273,
261,
267,
3353,
1799,
86,
559,
422,
2029,
18,
3798,
67,
23213,
27573,
747,
17633,
1799,
86,
559,
422,
2029,
18,
3798,
67,
1639,
39,
1769,
2
] |
protected Object doInvokeInternal(final Class clazz, String methodName, Object[] arguments) { List expressions = new ArrayList(); Matcher match = super.getPattern().matcher( methodName ); // find match match.find(); String[] queryParameters = null; int totalRequiredArguments = 0; // get the sequence clauses String querySequence = match.group(2); // if it contains operator and split boolean containsOperator = false; for (int i = 0; i < operators.length; i++) { Matcher currentMatcher = operatorPatterns[i].matcher( querySequence ); if(currentMatcher.find()) { containsOperator = true; operatorInUse = this.operators[i]; queryParameters = new String[2]; queryParameters[0] = currentMatcher.group(1); queryParameters[1] = currentMatcher.group(3) + currentMatcher.group(4); // loop through query parameters and create expressions // calculating the numBer of arguments required for the expression int argumentCursor = 0; for (int j = 0; j < queryParameters.length; j++) { GrailsMethodExpression currentExpression = GrailsMethodExpression.create(this.application,clazz,queryParameters[j]); totalRequiredArguments += currentExpression.argumentsRequired; // populate the arguments into the GrailsExpression from the argument list Object[] currentArguments = new Object[currentExpression.argumentsRequired]; if((argumentCursor + currentExpression.argumentsRequired) > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); for (int k = 0; k < currentExpression.argumentsRequired; k++,argumentCursor++) { currentArguments[k] = arguments[argumentCursor]; } try { currentExpression.setArguments(currentArguments); }catch(IllegalArgumentException iae) { LOG.debug(iae.getMessage(),iae); throw new MissingMethodException(methodName,clazz,arguments); } // add to list of expressions expressions.add(currentExpression); } break; } } // otherwise there is only one expression if(!containsOperator) { GrailsMethodExpression solo = GrailsMethodExpression.create(this.application, clazz,querySequence ); if(solo.argumentsRequired > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); totalRequiredArguments += solo.argumentsRequired; Object[] soloArgs = new Object[solo.argumentsRequired]; for (int i = 0; i < solo.argumentsRequired; i++) { soloArgs[i] = arguments[i]; } try { solo.setArguments(soloArgs); } catch(IllegalArgumentException iae) { LOG.debug(iae.getMessage(),iae); throw new MissingMethodException(methodName,clazz,arguments); } expressions.add(solo); } // if the total of all the arguments necessary does not equal the number of arguments // throw exception if(totalRequiredArguments > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); // calculate the remaining arguments Object[] remainingArguments = new Object[arguments.length - totalRequiredArguments]; if(remainingArguments.length > 0) { for (int i = 0, j = totalRequiredArguments; i < remainingArguments.length; i++,j++) { remainingArguments[i] = arguments[j]; } } if(LOG.isTraceEnabled()) LOG.trace("Calculated expressions: " + expressions); return doInvokeInternalWithExpressions(clazz, methodName, remainingArguments, expressions); }
|
50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
682,
8041,
273,
394,
2407,
5621,
202,
202,
6286,
845,
273,
2240,
18,
588,
3234,
7675,
22761,
12,
4918,
11272,
202,
202,
759,
1104,
845,
202,
202,
1916,
18,
4720,
5621,
9506,
202,
780,
8526,
31485,
273,
446,
31,
202,
202,
474,
2078,
3705,
4628,
273,
374,
31,
202,
202,
759,
336,
326,
3102,
14093,
202,
202,
780,
843,
4021,
273,
845,
18,
1655,
12,
22,
1769,
202,
202,
759,
309,
518,
1914,
3726,
471,
1416,
202,
202,
6494,
1914,
5592,
273,
629,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12213,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6286,
783,
6286,
273,
3726,
11268,
63,
77,
8009,
22761,
12,
843,
4021,
11272,
1082,
202,
430,
12,
2972,
6286,
18,
4720,
10756,
288,
9506,
202,
12298,
5592,
273,
638,
31,
9506,
202,
9497,
15435,
273,
333,
18,
30659,
63,
77,
15533,
6862,
9506,
202,
2271,
2402,
273,
394,
514,
63,
22,
15533,
9506,
202,
2271,
2402,
63,
20,
65,
273,
783,
6286,
18,
1655,
12,
21,
1769,
9506,
202,
2271,
2402,
63,
21,
65,
273,
783,
6286,
18,
1655,
12,
23,
13,
397,
783,
6286,
18,
1655,
12,
24,
1769,
6862,
9506,
202,
759,
2798,
3059,
843,
1472,
471,
752,
8041,
9506,
202,
759,
21046,
326,
818,
38,
264,
434,
1775,
1931,
364,
326,
2652,
9506,
202,
474,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
682,
8041,
273,
394,
2407,
5621,
202,
202,
6286,
845,
273,
2240,
18,
588,
3234,
7675,
22761,
12,
4918,
11272,
202,
202,
759,
1104,
845,
202,
202,
1916,
18,
4720,
5621,
9506,
202,
780,
8526,
31485,
273,
446,
31,
202,
202,
474,
2078,
3705,
4628,
273,
374,
31,
202,
202,
759,
336,
326,
3102,
14093,
202,
202,
780,
843,
4021,
273,
845,
18,
1655,
12,
22,
1769,
202,
202,
759,
309,
518,
1914,
3726,
471,
1416,
202,
202,
6494,
1914,
5592,
273,
629,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
||
if(issuerElem != null && issuerElem.getFirstElement() != null) {
|
if (issuerElem != null && issuerElem.getFirstElement() != null) {
|
public Assertion build(OMElement element, AssertionBuilderFactory factory) throws IllegalArgumentException { IssuedToken issuedToken = new IssuedToken(); //Extract Issuer OMElement issuerElem = element.getFirstChildWithName(Constants.ISSUER); if(issuerElem != null && issuerElem.getFirstElement() != null) { issuedToken.setIssuerEpr(issuerElem.getFirstElement()); } //Extract RSTTemplate OMElement rstTmplElem = element.getFirstChildWithName(Constants.ISSUER); if(rstTmplElem != null) { issuedToken.setIssuerEpr(rstTmplElem); } Policy policy = PolicyEngine.getPolicy(element); policy = (Policy) policy.normalize(false); for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) { processAlternative((List) iterator.next(), issuedToken); break; // since there should be only one alternative .. } return issuedToken; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/2a5ba4ec18e8e760a63eac472351a67a530ab5cf/IssuedTokenBuilder.java/buggy/modules/secpolicy/src/org/apache/ws/secpolicy/builders/IssuedTokenBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9067,
1361,
12,
51,
12310,
930,
16,
9067,
20692,
3272,
13,
1216,
2754,
288,
3639,
9310,
5957,
1345,
16865,
1345,
273,
394,
9310,
5957,
1345,
5621,
7734,
368,
4976,
23959,
3639,
531,
12310,
9715,
7498,
273,
930,
18,
588,
3759,
1763,
17557,
12,
2918,
18,
25689,
57,
654,
1769,
3639,
309,
261,
17567,
7498,
480,
446,
597,
9715,
7498,
18,
588,
3759,
1046,
1435,
480,
446,
13,
288,
5411,
16865,
1345,
18,
542,
16667,
41,
683,
12,
17567,
7498,
18,
588,
3759,
1046,
10663,
3639,
289,
7734,
368,
4976,
534,
882,
2283,
3639,
531,
12310,
13978,
56,
10514,
7498,
273,
930,
18,
588,
3759,
1763,
17557,
12,
2918,
18,
25689,
57,
654,
1769,
3639,
309,
12,
16114,
56,
10514,
7498,
480,
446,
13,
288,
5411,
16865,
1345,
18,
542,
16667,
41,
683,
12,
16114,
56,
10514,
7498,
1769,
3639,
289,
7734,
7436,
3329,
273,
7436,
4410,
18,
588,
2582,
12,
2956,
1769,
3639,
3329,
273,
261,
2582,
13,
3329,
18,
12237,
12,
5743,
1769,
7734,
364,
261,
3198,
2775,
273,
3329,
18,
588,
22111,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
5411,
1207,
21144,
12443,
682,
13,
2775,
18,
4285,
9334,
16865,
1345,
1769,
5411,
898,
31,
368,
3241,
1915,
1410,
506,
1338,
1245,
10355,
6116,
3639,
289,
7734,
327,
16865,
1345,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
9067,
1361,
12,
51,
12310,
930,
16,
9067,
20692,
3272,
13,
1216,
2754,
288,
3639,
9310,
5957,
1345,
16865,
1345,
273,
394,
9310,
5957,
1345,
5621,
7734,
368,
4976,
23959,
3639,
531,
12310,
9715,
7498,
273,
930,
18,
588,
3759,
1763,
17557,
12,
2918,
18,
25689,
57,
654,
1769,
3639,
309,
261,
17567,
7498,
480,
446,
597,
9715,
7498,
18,
588,
3759,
1046,
1435,
480,
446,
13,
288,
5411,
16865,
1345,
18,
542,
16667,
41,
683,
12,
17567,
7498,
18,
588,
3759,
1046,
10663,
3639,
289,
7734,
368,
4976,
534,
882,
2283,
3639,
531,
12310,
13978,
56,
10514,
7498,
273,
930,
18,
588,
3759,
1763,
17557,
12,
2918,
18,
25689,
57,
654,
1769,
3639,
309,
12,
16114,
2
] |
while (sentPackets.size() == 0) {
|
while (!done && sentPackets.size() == 0) {
|
private void processListeners() { while (!done) { Packet sentPacket; // Wait until a new packet has been sent synchronized(sentPackets) { while (sentPackets.size() == 0) { try { sentPackets.wait(); } catch (InterruptedException ie) { } } sentPacket = (Packet)sentPackets.removeLast(); } // Notify the listeners of the new sent packet int size = listeners.size(); for (int i=0; i<size; i++) { ListenerWrapper listenerWrapper = (ListenerWrapper)listeners.get(i); if (listenerWrapper != null) { listenerWrapper.notifyListener(sentPacket); } } } }
|
966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/4dfb2b08fad982ad760ed6e1ae56a43ebee809d1/PacketWriter.java/clean/source/org/jivesoftware/smack/PacketWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
5583,
1435,
288,
3639,
1323,
16051,
8734,
13,
288,
5411,
11114,
3271,
6667,
31,
5411,
368,
5838,
3180,
279,
394,
4414,
711,
2118,
3271,
5411,
3852,
12,
7569,
27328,
13,
288,
7734,
1323,
16051,
8734,
597,
3271,
27328,
18,
1467,
1435,
422,
374,
13,
288,
10792,
775,
288,
13491,
3271,
27328,
18,
7048,
5621,
10792,
289,
10792,
1044,
261,
24485,
503,
9228,
13,
288,
289,
7734,
289,
7734,
3271,
6667,
273,
261,
6667,
13,
7569,
27328,
18,
4479,
3024,
5621,
5411,
289,
5411,
368,
10918,
326,
4679,
434,
326,
394,
3271,
4414,
5411,
509,
963,
273,
4679,
18,
1467,
5621,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
31,
277,
27245,
288,
7734,
10652,
3611,
2991,
3611,
273,
261,
2223,
3611,
13,
16072,
18,
588,
12,
77,
1769,
7734,
309,
261,
12757,
3611,
480,
446,
13,
288,
10792,
2991,
3611,
18,
12336,
2223,
12,
7569,
6667,
1769,
7734,
289,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
1207,
5583,
1435,
288,
3639,
1323,
16051,
8734,
13,
288,
5411,
11114,
3271,
6667,
31,
5411,
368,
5838,
3180,
279,
394,
4414,
711,
2118,
3271,
5411,
3852,
12,
7569,
27328,
13,
288,
7734,
1323,
16051,
8734,
597,
3271,
27328,
18,
1467,
1435,
422,
374,
13,
288,
10792,
775,
288,
13491,
3271,
27328,
18,
7048,
5621,
10792,
289,
10792,
1044,
261,
24485,
503,
9228,
13,
288,
289,
7734,
289,
7734,
3271,
6667,
273,
261,
6667,
13,
7569,
27328,
18,
4479,
3024,
5621,
5411,
289,
5411,
368,
10918,
326,
4679,
434,
326,
394,
3271,
4414,
5411,
509,
963,
273,
4679,
18,
1467,
5621,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
31,
277,
27245,
288,
2
] |
Composite group = super.createEncodingGroup(parent, numColumns);
|
group = super.createEncodingGroup(parent, numColumns);
|
protected Composite createEncodingGroup(Composite parent, int numColumns) { Composite group = super.createEncodingGroup(parent, numColumns); String byteOrderLabel = IDEEncoding .getByteOrderMarkLabel(getContentDescription()); if (byteOrderLabel != null) { Label label = new Label(group, SWT.NONE); label .setText(NLS .bind( IDEWorkbenchMessages.WorkbenchPreference_encoding_encodingMessage, byteOrderLabel)); GridData layoutData = new GridData(); layoutData.horizontalSpan = numColumns + 1; label.setLayoutData(layoutData); } return group; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ec673dff9938f1e2722f57e4db20c627a46e34ed/ResourceEncodingFieldEditor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14728,
752,
4705,
1114,
12,
9400,
982,
16,
509,
30109,
13,
288,
202,
202,
9400,
1041,
273,
2240,
18,
2640,
4705,
1114,
12,
2938,
16,
30109,
1769,
202,
202,
780,
25410,
2224,
273,
1599,
41,
4705,
9506,
202,
18,
588,
3216,
2448,
3882,
2224,
12,
588,
1350,
3291,
10663,
202,
202,
430,
261,
7229,
2448,
2224,
480,
446,
13,
288,
1082,
202,
2224,
1433,
273,
394,
5287,
12,
1655,
16,
348,
8588,
18,
9826,
1769,
1082,
202,
1925,
6862,
202,
18,
542,
1528,
12,
5106,
6862,
1082,
202,
18,
4376,
12,
6862,
6862,
202,
10385,
2421,
22144,
5058,
18,
2421,
22144,
9624,
67,
5999,
67,
5999,
1079,
16,
6862,
6862,
202,
7229,
2448,
2224,
10019,
1082,
202,
6313,
751,
3511,
751,
273,
394,
7145,
751,
5621,
1082,
202,
6741,
751,
18,
18396,
6952,
273,
30109,
397,
404,
31,
1082,
202,
1925,
18,
542,
3744,
751,
12,
6741,
751,
1769,
202,
202,
97,
202,
202,
2463,
1041,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
14728,
752,
4705,
1114,
12,
9400,
982,
16,
509,
30109,
13,
288,
202,
202,
9400,
1041,
273,
2240,
18,
2640,
4705,
1114,
12,
2938,
16,
30109,
1769,
202,
202,
780,
25410,
2224,
273,
1599,
41,
4705,
9506,
202,
18,
588,
3216,
2448,
3882,
2224,
12,
588,
1350,
3291,
10663,
202,
202,
430,
261,
7229,
2448,
2224,
480,
446,
13,
288,
1082,
202,
2224,
1433,
273,
394,
5287,
12,
1655,
16,
348,
8588,
18,
9826,
1769,
1082,
202,
1925,
6862,
202,
18,
542,
1528,
12,
5106,
6862,
1082,
202,
18,
4376,
12,
6862,
6862,
202,
10385,
2421,
22144,
5058,
18,
2421,
22144,
9624,
67,
5999,
67,
5999,
1079,
16,
6862,
6862,
202,
7229,
2448,
2224,
10019,
1082,
2
] |
bonus_des = i; }
|
bonus_des = i; }
|
public void setBonus_des(int i) { bonus_des = i; }
|
12674 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12674/582883286af99e95ba63ad2c7c8f7ea0fc04e5e0/MetaInfo.java/buggy/jcubitainer/org/jcubitainer/meta/MetaInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15268,
22889,
67,
5489,
12,
474,
277,
13,
288,
202,
202,
18688,
407,
67,
5489,
273,
277,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15268,
22889,
67,
5489,
12,
474,
277,
13,
288,
202,
202,
18688,
407,
67,
5489,
273,
277,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return model.getProperty( IComponentCreationDataModelProperties.COMPONENT_NAME) .toString(); }
|
return model.getProperty( IComponentCreationDataModelProperties.COMPONENT_NAME) .toString(); }
|
public String getComponentName() { return model.getProperty( IComponentCreationDataModelProperties.COMPONENT_NAME) .toString(); }
|
10123 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10123/5b4e08ba2a090fa898152739fb4ce43af58e5df4/AbstractGeronimoJ2EEComponentOperation.java/buggy/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/operations/AbstractGeronimoJ2EEComponentOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
10322,
461,
1435,
288,
3639,
327,
938,
18,
588,
1396,
12,
7734,
467,
1841,
9906,
26349,
2297,
18,
22922,
67,
1985,
13,
7734,
263,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
10322,
461,
1435,
288,
3639,
327,
938,
18,
588,
1396,
12,
7734,
467,
1841,
9906,
26349,
2297,
18,
22922,
67,
1985,
13,
7734,
263,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while (sType == null) { final XMLType xmlType = complexType.getBaseType(); if (xmlType == null || !(xmlType instanceof ComplexType)) { break; } final ComplexType cType = (ComplexType) xmlType; AttributeDecl baseAttr = cType.getAttributeDecl(attr.getName()); sType = baseAttr.getSimpleType(); if (sType != null) { attr.setSimpleType(sType); } }
|
private void processAttributes(ComplexType complexType, FactoryState state) { if (complexType == null) return; Enumeration enumeration = complexType.getAttributeDecls(); XMLBindingComponent component = new XMLBindingComponent(_config); if (_binding != null) component.setBinding(_binding); while (enumeration.hasMoreElements()) { AttributeDecl attr = (AttributeDecl)enumeration.nextElement(); component.setView(attr); //-- if we have a new SimpleType...generate ClassInfo SimpleType sType = attr.getSimpleType(); // Look for referenced type (if any) for setting type, and use // it, if found. if (sType == null) { if (attr.getReference() != null) { attr.setSimpleType(attr.getReference().getSimpleType()); } } if (sType != null) { if ( ! (SimpleTypesFactory.isBuiltInType(sType.getTypeCode())) ) if (sType.getSchema() == component.getSchema()) { if (state.resolve(sType) == null) { if (sType.hasFacet(Facet.ENUMERATION)) { createSourceCode(sType, state.getSGStateInfo()); } } } } FieldInfo fieldInfo = memberFactory.createFieldInfo(component, state, _config.useJava50()); handleField(fieldInfo, state); } return; }
|
57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/a5bde9b47cf591716162d927812e9a726e213ec1/SourceFactory.java/clean/src/main/java/org/exolab/castor/builder/SourceFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1323,
261,
87,
559,
422,
446,
13,
288,
377,
727,
3167,
559,
2025,
559,
273,
7233,
559,
18,
588,
2171,
559,
5621,
309,
261,
2902,
559,
422,
446,
747,
401,
12,
2902,
559,
1276,
16060,
559,
3719,
288,
898,
31,
289,
565,
727,
16060,
559,
276,
559,
273,
261,
12795,
559,
13,
2025,
559,
31,
3601,
3456,
1026,
3843,
273,
276,
559,
18,
588,
1499,
3456,
12,
1747,
18,
17994,
10663,
282,
22907,
273,
1026,
3843,
18,
588,
5784,
559,
5621,
309,
261,
87,
559,
480,
446,
13,
288,
1604,
18,
542,
5784,
559,
12,
87,
559,
1769,
289,
282,
289,
565,
1323,
261,
87,
559,
422,
446,
13,
288,
377,
727,
3167,
559,
2025,
559,
273,
7233,
559,
18,
588,
2171,
559,
5621,
309,
261,
2902,
559,
422,
446,
747,
401,
12,
2902,
559,
1276,
16060,
559,
3719,
288,
898,
31,
289,
565,
727,
16060,
559,
276,
559,
273,
261,
12795,
559,
13,
2025,
559,
31,
3601,
3456,
1026,
3843,
273,
276,
559,
18,
588,
1499,
3456,
12,
1747,
18,
17994,
10663,
282,
22907,
273,
1026,
3843,
18,
588,
5784,
559,
5621,
309,
261,
87,
559,
480,
446,
13,
288,
1604,
18,
542,
5784,
559,
12,
87,
559,
1769,
289,
282,
289,
565,
1323,
261,
87,
559,
422,
446,
13,
288,
377,
727,
3167,
559,
2025,
559,
273,
7233,
559,
18,
588,
2171,
559,
5621,
309,
261,
2902,
559,
422,
446,
747,
401,
12,
2902,
559,
1276,
16060,
559,
3719,
288,
898,
31,
289,
565,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1323,
261,
87,
559,
422,
446,
13,
288,
377,
727,
3167,
559,
2025,
559,
273,
7233,
559,
18,
588,
2171,
559,
5621,
309,
261,
2902,
559,
422,
446,
747,
401,
12,
2902,
559,
1276,
16060,
559,
3719,
288,
898,
31,
289,
565,
727,
16060,
559,
276,
559,
273,
261,
12795,
559,
13,
2025,
559,
31,
3601,
3456,
1026,
3843,
273,
276,
559,
18,
588,
1499,
3456,
12,
1747,
18,
17994,
10663,
282,
22907,
273,
1026,
3843,
18,
588,
5784,
559,
5621,
309,
261,
87,
559,
480,
446,
13,
288,
1604,
18,
542,
5784,
559,
12,
87,
559,
1769,
289,
282,
289,
565,
1323,
261,
87,
559,
422,
446,
13,
288,
377,
727,
3167,
559,
2025,
559,
273,
7233,
2
] |
|
if (namespace != null)
|
if (namespace != null) {
|
public void parseContents(Parser parser) { final SymbolTable stable = parser.getSymbolTable(); String namespace = getAttribute("namespace"); String name = getAttribute("name"); QName qname = parser.getQName(name); final String prefix = qname.getPrefix(); boolean generated = false; if ((prefix != null) && (prefix.equals("xmlns"))) { reportError(this, parser, ErrorMsg.ILLEGAL_ATTR_NAME_ERR, name); return; } // Ignore attribute if preceeded by some other type of element final SyntaxTreeNode parent = getParent(); final Vector siblings = parent.getContents(); for (int i = 0; i < parent.elementCount(); i++) { SyntaxTreeNode item = (SyntaxTreeNode)siblings.elementAt(i); if (item == this) break; // These three objects result in one or more attribute output if (item instanceof XslAttribute) continue; if (item instanceof UseAttributeSets) continue; if (item instanceof LiteralAttribute) continue; if (item instanceof Text) continue; // These objects _can_ result in one or more attribute // The output handler will generate an error if not (at runtime) if (item instanceof If) continue; if (item instanceof Choose) continue; if (item instanceof CopyOf) continue; if (item instanceof VariableBase) continue; reportWarning(this, parser, ErrorMsg.STRAY_ATTRIBUTE_ERR, name); _ignore = true; } // Get namespace from namespace attribute? if ((namespace != null) && (namespace != Constants.EMPTYSTRING)) { // Prefix could be in symbol table _prefix = lookupPrefix(namespace); _namespace = new AttributeValueTemplate(namespace, parser); } // Get namespace from prefix in name attribute? else if ((prefix != null) && (prefix != Constants.EMPTYSTRING)) { _prefix = prefix; namespace = lookupNamespace(prefix); if (namespace != null) _namespace = new AttributeValueTemplate(namespace, parser); } // Common handling for namespaces: if (_namespace != null) { // Generate prefix if we have none if (_prefix == null) { if (prefix != null) { _prefix = prefix; } else { _prefix = stable.generateNamespacePrefix(); generated = true; } } if (_prefix == Constants.EMPTYSTRING) { name = qname.getLocalPart(); } else { name = _prefix+":"+qname.getLocalPart(); // PROBLEM: // The namespace URI must be passed to the parent element, // but we don't yet know what the actual URI is (as we only // know it as an attribute value template). New design needed. if ((parent instanceof LiteralElement) && (!generated)) { ((LiteralElement)parent).registerNamespace(_prefix, namespace, stable,false); } } } if (name.equals("xmlns")) { reportError(this, parser, ErrorMsg.ILLEGAL_ATTR_NAME_ERR, name); return; } if (parent instanceof LiteralElement) { ((LiteralElement)parent).addAttribute(this); } _name = AttributeValue.create(this, name, parser); parseChildren(parser); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ddbb116b3a67f82e811ca92d303beb50ad9fcf76/XslAttribute.java/clean/src/org/apache/xalan/xsltc/compiler/XslAttribute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
6323,
12,
2678,
2082,
13,
288,
202,
6385,
8565,
1388,
14114,
273,
2082,
18,
588,
5335,
1388,
5621,
202,
780,
1981,
273,
4061,
2932,
4937,
8863,
202,
780,
508,
273,
4061,
2932,
529,
8863,
202,
13688,
12621,
273,
2082,
18,
588,
13688,
12,
529,
1769,
202,
6385,
514,
1633,
273,
12621,
18,
588,
2244,
5621,
202,
6494,
4374,
273,
629,
31,
202,
430,
14015,
3239,
480,
446,
13,
597,
261,
3239,
18,
14963,
2932,
16741,
6,
20349,
288,
202,
565,
17887,
12,
2211,
16,
2082,
16,
1068,
3332,
18,
2627,
19384,
1013,
67,
12043,
67,
1985,
67,
9712,
16,
508,
1769,
202,
565,
327,
31,
202,
97,
202,
759,
8049,
1566,
309,
675,
5816,
635,
2690,
1308,
618,
434,
930,
202,
6385,
11517,
12513,
982,
273,
5089,
5621,
202,
6385,
5589,
14692,
273,
982,
18,
588,
6323,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
982,
18,
2956,
1380,
5621,
277,
27245,
288,
202,
565,
11517,
12513,
761,
273,
261,
8070,
12513,
13,
6044,
11603,
18,
2956,
861,
12,
77,
1769,
202,
565,
309,
261,
1726,
422,
333,
13,
898,
31,
202,
565,
368,
8646,
8925,
2184,
563,
316,
1245,
578,
1898,
1566,
876,
202,
565,
309,
261,
1726,
1276,
1139,
2069,
1499,
13,
1324,
31,
202,
565,
309,
261,
1726,
1276,
2672,
1499,
2785,
13,
1324,
31,
202,
565,
309,
261,
1726,
1276,
14392,
1499,
13,
1324,
31,
202,
565,
309,
261,
1726,
1276,
3867,
13,
1324,
31,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
6323,
12,
2678,
2082,
13,
288,
202,
6385,
8565,
1388,
14114,
273,
2082,
18,
588,
5335,
1388,
5621,
202,
780,
1981,
273,
4061,
2932,
4937,
8863,
202,
780,
508,
273,
4061,
2932,
529,
8863,
202,
13688,
12621,
273,
2082,
18,
588,
13688,
12,
529,
1769,
202,
6385,
514,
1633,
273,
12621,
18,
588,
2244,
5621,
202,
6494,
4374,
273,
629,
31,
202,
430,
14015,
3239,
480,
446,
13,
597,
261,
3239,
18,
14963,
2932,
16741,
6,
20349,
288,
202,
565,
17887,
12,
2211,
16,
2082,
16,
1068,
3332,
18,
2627,
19384,
1013,
67,
12043,
67,
1985,
67,
9712,
16,
508,
1769,
202,
565,
327,
31,
202,
97,
202,
759,
8049,
1566,
309,
675,
5816,
635,
2
] |
throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err));
|
throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err));
|
private void execute(final XMLConsumer consumer, MyJexlContext jexlContext, JXPathContext jxpathContext, StartElement macroCall, Event startEvent, Event endEvent) throws SAXException { Event ev = startEvent; LocatorFacade loc = new LocatorFacade(ev.location); consumer.setDocumentLocator(loc); while (ev != endEvent) { loc.setDocumentLocator(ev.location); if (ev instanceof Characters) { TextEvent text = (TextEvent)ev; Iterator iter = text.substitutions.iterator(); while (iter.hasNext()) { Object subst = iter.next(); char[] chars; if (subst instanceof char[]) { chars = (char[])subst; } else { JXTExpression expr = (JXTExpression)subst; try { Object val = getNode(expr, jexlContext, jxpathContext); if (val instanceof Node) { executeDOM(consumer, jexlContext, jxpathContext, (Node)val); continue; } else if (val instanceof NodeList) { NodeList nodeList = (NodeList)val; int len = nodeList.getLength(); for (int i = 0; i < len; i++) { Node n = nodeList.item(i); executeDOM(consumer, jexlContext, jxpathContext, n); } continue; } else if (val instanceof Node[]) { Node[] nodeList = (Node[])val; int len = nodeList.length; for (int i = 0; i < len; i++) { Node n = nodeList[i]; executeDOM(consumer, jexlContext, jxpathContext, n); } continue; } else if (val instanceof XMLizable) { ((XMLizable)val).toSAX(new IncludeXMLConsumer(consumer)); continue; } if (val != null) { chars = val.toString().toCharArray(); } else { chars = ArrayUtils.EMPTY_CHAR_ARRAY; } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } consumer.characters(chars, 0, chars.length); } } else if (ev instanceof EndElement) { EndElement endElement = (EndElement)ev; StartElement startElement = endElement.startElement; consumer.endElement(startElement.namespaceURI, startElement.localName, startElement.raw); } else if (ev instanceof EndPrefixMapping) { EndPrefixMapping endPrefixMapping = (EndPrefixMapping)ev; consumer.endPrefixMapping(endPrefixMapping.prefix); } else if (ev instanceof IgnorableWhitespace) { TextEvent text = (TextEvent)ev; characters(jexlContext, jxpathContext, text, new CharHandler() { public void characters(char[] ch, int offset, int len) throws SAXException { consumer.ignorableWhitespace(ch, offset, len); } }); } else if (ev instanceof SkippedEntity) { SkippedEntity skippedEntity = (SkippedEntity)ev; consumer.skippedEntity(skippedEntity.name); } else if (ev instanceof StartIf) { StartIf startIf = (StartIf)ev; Object val; try { val = getValue(startIf.test, jexlContext, jxpathContext, Boolean.TRUE); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } boolean result = false; if (val instanceof Boolean) { result = ((Boolean)val).booleanValue(); } else { result = (val != null); } if (!result) { ev = startIf.endInstruction.next; continue; } } else if (ev instanceof StartForEach) { StartForEach startForEach = (StartForEach)ev; final Object items = startForEach.items; Iterator iter = null; int begin, end, step; String var, varStatus; try { if (items != null) { JXTExpression expr = (JXTExpression)items; if (expr.compiledExpression instanceof CompiledExpression) { CompiledExpression compiledExpression = (CompiledExpression)expr.compiledExpression; Object val = compiledExpression.getPointer(jxpathContext, expr.raw).getNode(); // FIXME: workaround for JXPath bug if (val instanceof NativeArray) { iter = new JSIntrospector.NativeArrayIterator((NativeArray)val); } else { iter = compiledExpression.iteratePointers(jxpathContext); } } else if (expr.compiledExpression instanceof org.apache.commons.jexl.Expression) { org.apache.commons.jexl.Expression e = (org.apache.commons.jexl.Expression)expr.compiledExpression; Object result = e.evaluate(jexlContext); if (result != null) { iter = Introspector.getUberspect().getIterator( result, new Info(ev.location.getSystemId(), ev.location.getLineNumber(), ev.location.getColumnNumber())); } if (iter == null) { iter = EMPTY_ITER; } } else { // literal value iter = new Iterator() { Object val = items; public boolean hasNext() { return val != null; } public Object next() { Object res = val; val = null; return res; } public void remove() { } }; } } else { iter = NULL_ITER; } begin = startForEach.begin == null ? 0 : getIntValue(startForEach.begin, jexlContext, jxpathContext); end = startForEach.end == null ? Integer.MAX_VALUE : getIntValue(startForEach.end, jexlContext, jxpathContext); step = startForEach.step == null ? 1 : getIntValue(startForEach.step, jexlContext, jxpathContext); var = getStringValue(startForEach.var, jexlContext, jxpathContext); varStatus = getStringValue(startForEach.varStatus, jexlContext, jxpathContext); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } MyJexlContext localJexlContext = new MyJexlContext(jexlContext); MyVariables localJXPathVariables = new MyVariables((MyVariables)jxpathContext.getVariables()); int i = 0; // Move to the begin row while (i < begin && iter.hasNext()) { iter.next(); i++; } LoopTagStatus status = null; if (varStatus != null) { status = new LoopTagStatus(); status.begin = begin; status.end = end; status.step = step; status.first = true; localJexlContext.put(varStatus, status); localJXPathVariables.declareVariable(varStatus, status); } int skipCounter, count = 1; JXPathContext localJXPathContext = null; while (i <= end && iter.hasNext()) { Object value = iter.next(); if (value instanceof Pointer) { Pointer ptr = (Pointer)value; localJXPathContext = jxpathContext.getRelativeContext(ptr); try { value = ptr.getNode(); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, null); } } else { localJXPathContext = jxpathContextFactory.newContext(jxpathContext, value); } localJXPathContext.setVariables(localJXPathVariables); if (var != null) { localJexlContext.put(var, value); } if (status != null) { status.index = i; status.count = count; status.first = i == begin; status.current = value; status.last = (i == end || !iter.hasNext()); } execute(consumer, localJexlContext, localJXPathContext, macroCall, startForEach.next, startForEach.endInstruction); // Skip rows skipCounter = step; while (--skipCounter > 0 && iter.hasNext()) { iter.next(); } // Increase index i += step; count++; } ev = startForEach.endInstruction.next; continue; } else if (ev instanceof StartChoose) { StartChoose startChoose = (StartChoose)ev; StartWhen startWhen = startChoose.firstChoice; while (startWhen != null) { Object val; try { val = getValue(startWhen.test, jexlContext, jxpathContext, Boolean.TRUE); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } boolean result; if (val instanceof Boolean) { result = ((Boolean)val).booleanValue(); } else { result = (val != null); } if (result) { execute(consumer, jexlContext, jxpathContext, macroCall, startWhen.next, startWhen.endInstruction); break; } startWhen = startWhen.nextChoice; } if (startWhen == null && startChoose.otherwise != null) { execute(consumer, jexlContext, jxpathContext, macroCall, startChoose.otherwise.next, startChoose.otherwise.endInstruction); } ev = startChoose.endInstruction.next; continue; } else if (ev instanceof StartSet) { StartSet startSet = (StartSet)ev; Object value = null; String var = null; try { if (startSet.var != null) { var = getStringValue(startSet.var, jexlContext, jxpathContext); } if (startSet.value != null) { value = getNode(startSet.value, jexlContext, jxpathContext); } } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } if (value == null) { NodeList nodeList = toDOMNodeList("set", startSet, jexlContext, macroCall); // JXPath doesn't handle NodeList, so convert it to an array int len = nodeList.getLength(); Node[] nodeArr = new Node[len]; for (int i = 0; i < len; i++) { nodeArr[i] = nodeList.item(i); } value = nodeArr; } if (var != null) { jxpathContext.getVariables().declareVariable(var, value); jexlContext.put(var, value); } ev = startSet.endInstruction.next; continue; } else if (ev instanceof StartElement) { StartElement startElement = (StartElement)ev; StartDefine def = (StartDefine)definitions.get(startElement.qname); if (def != null) { Map attributeMap = new HashMap(); Iterator i = startElement.attributeEvents.iterator(); while (i.hasNext()) { String attributeName; Object attributeValue; AttributeEvent attrEvent = (AttributeEvent) i.next(); attributeName = attrEvent.localName; if (attrEvent instanceof CopyAttribute) { CopyAttribute copy = (CopyAttribute)attrEvent; attributeValue = copy.value; } else if (attrEvent instanceof SubstituteAttribute) { SubstituteAttribute substEvent = (SubstituteAttribute)attrEvent; if (substEvent.substitutions.size() == 1 && substEvent.substitutions.get(0) instanceof JXTExpression) { JXTExpression expr = (JXTExpression) substEvent.substitutions.get(0); Object val; try { val = getNode(expr, jexlContext, jxpathContext); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } attributeValue = val; } else { StringBuffer buf = new StringBuffer(); Iterator iterSubst = substEvent.substitutions.iterator(); while (iterSubst.hasNext()) { Subst subst = (Subst)iterSubst.next(); if (subst instanceof Literal) { Literal lit = (Literal)subst; buf.append(lit.value); } else if (subst instanceof JXTExpression) { JXTExpression expr = (JXTExpression)subst; Object val; try { val = getValue(expr, jexlContext, jxpathContext); } catch (Exception e) { throw new SAXParseException( e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException( err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } buf.append(val.toString()); } } attributeValue = buf.toString(); } } else { throw new Error("this shouldn't have happened"); } attributeMap.put(attributeName, attributeValue); } MyVariables parent = (MyVariables)jxpathContext.getVariables(); MyVariables vars = new MyVariables(parent); MyJexlContext localJexlContext = new MyJexlContext(jexlContext); HashMap macro = new HashMap(); macro.put("body", startElement); macro.put("arguments", attributeMap); localJexlContext.put("macro", macro); vars.declareVariable("macro", macro); Iterator iter = def.parameters.entrySet().iterator(); while (iter.hasNext()) { Map.Entry e = (Map.Entry)iter.next(); String key = (String)e.getKey(); StartParameter startParam = (StartParameter)e.getValue(); Object default_ = startParam.default_; Object val = attributeMap.get(key); if (val == null) { val = default_; } localJexlContext.put(key, val); vars.declareVariable(key, val); } JXPathContext localJXPathContext = jxpathContextFactory.newContext(null, jxpathContext.getContextBean()); localJXPathContext.setVariables(vars); call(ev.location, startElement, consumer, localJexlContext, localJXPathContext, def.body, def.endInstruction); ev = startElement.endElement.next; continue; } Iterator i = startElement.attributeEvents.iterator(); AttributesImpl attrs = new AttributesImpl(); while (i.hasNext()) { AttributeEvent attrEvent = (AttributeEvent) i.next(); if (attrEvent instanceof CopyAttribute) { CopyAttribute copy = (CopyAttribute)attrEvent; attrs.addAttribute(copy.namespaceURI, copy.localName, copy.raw, copy.type, copy.value); } else if (attrEvent instanceof SubstituteAttribute) { StringBuffer buf = new StringBuffer(); SubstituteAttribute substEvent = (SubstituteAttribute)attrEvent; Iterator iterSubst = substEvent.substitutions.iterator(); while (iterSubst.hasNext()) { Subst subst = (Subst)iterSubst.next(); if (subst instanceof Literal) { Literal lit = (Literal)subst; buf.append(lit.value); } else if (subst instanceof JXTExpression) { JXTExpression expr = (JXTExpression)subst; Object val; try { val = getValue(expr, jexlContext, jxpathContext); } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } buf.append(val.toString()); } } attrs.addAttribute(attrEvent.namespaceURI, attrEvent.localName, attrEvent.raw, attrEvent.type, buf.toString()); } } consumer.startElement(startElement.namespaceURI, startElement.localName, startElement.raw, attrs); } else if (ev instanceof StartFormatNumber) { StartFormatNumber startFormatNumber = (StartFormatNumber)ev; try { String result = startFormatNumber.format(jexlContext, jxpathContext); if (result != null) { char[] chars = result.toCharArray(); consumer.characters(chars, 0, chars.length); } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } else if (ev instanceof StartFormatDate) { StartFormatDate startFormatDate = (StartFormatDate)ev; try { String result = startFormatDate.format(jexlContext, jxpathContext); if (result != null) { char[] chars = result.toCharArray(); consumer.characters(chars, 0, chars.length); } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } else if (ev instanceof StartPrefixMapping) { StartPrefixMapping startPrefixMapping = (StartPrefixMapping)ev; consumer.startPrefixMapping(startPrefixMapping.prefix, startPrefixMapping.uri); } else if (ev instanceof StartComment) { StartComment startJXComment = (StartComment)ev; // Parse the body of the comment NodeList nodeList = toDOMNodeList("comment", startJXComment, jexlContext, macroCall); // JXPath doesn't handle NodeList, so convert it to an array int len = nodeList.getLength(); final StringBuffer buf = new StringBuffer(); Properties omit = XMLUtils.createPropertiesForXML(true); for (int i = 0; i < len; i++) { try { String str = XMLUtils.serializeNode(nodeList.item(i), omit); buf.append(StringUtils.substringAfter(str, ">")); // cut the XML header } catch (ProcessingException e) { throw new SAXParseException(e.getMessage(), startJXComment.location, e); } } char[] chars = new char[buf.length()]; buf.getChars(0, chars.length, chars, 0); consumer.comment(chars, 0, chars.length); ev = startJXComment.endInstruction.next; continue; } else if (ev instanceof EndCDATA) { consumer.endCDATA(); } else if (ev instanceof EndDTD) { consumer.endDTD(); } else if (ev instanceof EndEntity) { consumer.endEntity(((EndEntity)ev).name); } else if (ev instanceof StartCDATA) { consumer.startCDATA(); } else if (ev instanceof StartDTD) { StartDTD startDTD = (StartDTD)ev; consumer.startDTD(startDTD.name, startDTD.publicId, startDTD.systemId); } else if (ev instanceof StartEntity) { consumer.startEntity(((StartEntity)ev).name); } else if (ev instanceof StartOut) { StartOut startOut = (StartOut)ev; Object val; try { val = getNode(startOut.compiledExpression, jexlContext, jxpathContext, startOut.lenient); if (val instanceof Node) { executeDOM(consumer, jexlContext, jxpathContext, (Node)val); } else if (val instanceof NodeList) { NodeList nodeList = (NodeList)val; int len = nodeList.getLength(); for (int i = 0; i < len; i++) { Node n = nodeList.item(i); executeDOM(consumer, jexlContext, jxpathContext, n); } } else if (val instanceof Node[]) { Node[] nodeList = (Node[])val; int len = nodeList.length; for (int i = 0;i < len; i++) { Node n = nodeList[i]; executeDOM(consumer, jexlContext, jxpathContext, n); } } else if (val instanceof XMLizable) { ((XMLizable)val).toSAX(new IncludeXMLConsumer(consumer)); } else { char[] ch; if (val == null) { ch = ArrayUtils.EMPTY_CHAR_ARRAY; } else { ch = val.toString().toCharArray(); } consumer.characters(ch, 0, ch.length); } } catch (Exception e) { throw new SAXParseException(e.getMessage(), ev.location, e); } } else if (ev instanceof StartTemplate) { } else if (ev instanceof StartEval) { StartEval startEval = (StartEval)ev; JXTExpression expr = startEval.value; try { Object val = getNode(expr, jexlContext, jxpathContext); if (!(val instanceof StartElement)) { throw new Exception("macro invocation required instead of: " + val); } StartElement call = (StartElement)val; execute(consumer, jexlContext, jxpathContext, call, call.next, call.endElement); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } ev = startEval.endInstruction.next; continue; } else if (ev instanceof StartEvalBody) { StartEvalBody startEval = (StartEvalBody)ev; try { execute(consumer, jexlContext, jxpathContext, null, macroCall.next, macroCall.endElement); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } ev = startEval.endInstruction.next; continue; } else if (ev instanceof StartDefine) { StartDefine startDefine = (StartDefine)ev; definitions.put(startDefine.qname, startDefine); ev = startDefine.endInstruction.next; continue; } else if (ev instanceof StartImport) { StartImport startImport = (StartImport)ev; String uri; AttributeEvent e = startImport.uri; if (e instanceof CopyAttribute) { CopyAttribute copy = (CopyAttribute)e; uri = copy.value; } else { StringBuffer buf = new StringBuffer(); SubstituteAttribute substAttr = (SubstituteAttribute)e; Iterator i = substAttr.substitutions.iterator(); while (i.hasNext()) { Subst subst = (Subst)i.next(); if (subst instanceof Literal) { Literal lit = (Literal)subst; buf.append(lit.value); } else if (subst instanceof JXTExpression) { JXTExpression expr = (JXTExpression)subst; Object val; try { val = getValue(expr, jexlContext, jxpathContext); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } if (val == null) { val = ""; } buf.append(val.toString()); } } uri = buf.toString(); } Source input = null; StartDocument doc; try { input = resolver.resolveURI(uri); SourceValidity validity = null; synchronized (cache) { doc = (StartDocument)cache.get(input.getURI()); if (doc != null) { boolean recompile = false; if ( doc.compileTime == null) { recompile = true; } else { int valid = doc.compileTime.isValid(); if ( valid == SourceValidity.UNKNOWN ) { validity = input.getValidity(); valid = doc.compileTime.isValid(validity); } if ( valid != SourceValidity.VALID ) { recompile = true; } } if ( recompile ) { doc = null; // recompile } } } if (doc == null) { Parser parser = new Parser(); // call getValidity before using the stream is faster if the source is a SitemapSource if (validity == null) { validity = input.getValidity(); } SourceUtil.parse(this.manager, input, parser); doc = parser.getStartEvent(); doc.compileTime = validity; synchronized (cache) { cache.put(input.getURI(), doc); } } } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } finally { resolver.release(input); } JXPathContext selectJXPath = jxpathContext; MyJexlContext selectJexl = jexlContext; if (startImport.select != null) { try { Object obj = getValue(startImport.select, jexlContext, jxpathContext); selectJXPath = jxpathContextFactory.newContext(null, obj); selectJXPath.setVariables(variables); selectJexl = new MyJexlContext(jexlContext); fillContext(obj, selectJexl); } catch (Exception exc) { throw new SAXParseException(exc.getMessage(), ev.location, exc); } catch (Error err) { throw new SAXParseException(err.getMessage(), ev.location, new ErrorHolder(err)); } } try { execute(consumer, selectJexl, selectJXPath, macroCall, doc.next, doc.endDocument); } catch (Exception exc) { throw new SAXParseException( "Exception occurred in imported template " + uri + ": "+ exc.getMessage(), ev.location, exc); } ev = startImport.endInstruction.next; continue; } else if (ev instanceof StartDocument) { if (((StartDocument)ev).endDocument != null) { // if this isn't a document fragment consumer.startDocument(); } } else if (ev instanceof EndDocument) { consumer.endDocument(); } else if (ev instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction)ev; consumer.processingInstruction(pi.target, pi.data); } ev = ev.next; } }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/5825dcbb894fc7e13def0d7cbe9add87b9888009/JXTemplateGenerator.java/clean/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1836,
12,
6385,
3167,
5869,
4765,
16,
5411,
8005,
46,
338,
80,
1042,
525,
338,
80,
1042,
16,
804,
14124,
1042,
525,
18644,
1042,
16,
5411,
3603,
1046,
11522,
1477,
16,
2587,
787,
1133,
16,
2587,
679,
1133,
13,
5411,
1216,
14366,
288,
3639,
2587,
2113,
273,
787,
1133,
31,
3639,
2851,
639,
12467,
1515,
273,
394,
2851,
639,
12467,
12,
14965,
18,
3562,
1769,
3639,
4765,
18,
542,
2519,
5786,
12,
1829,
1769,
3639,
1323,
261,
14965,
480,
679,
1133,
13,
288,
5411,
1515,
18,
542,
2519,
5786,
12,
14965,
18,
3562,
1769,
5411,
309,
261,
14965,
1276,
3703,
9202,
13,
288,
7734,
3867,
1133,
977,
273,
261,
1528,
1133,
13,
14965,
31,
7734,
4498,
1400,
273,
977,
18,
1717,
30892,
18,
9838,
5621,
7734,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
10792,
1033,
27750,
273,
1400,
18,
4285,
5621,
10792,
1149,
8526,
5230,
31,
10792,
309,
261,
1717,
334,
1276,
1149,
63,
5717,
288,
13491,
5230,
273,
261,
3001,
63,
5717,
1717,
334,
31,
10792,
289,
469,
288,
13491,
804,
3983,
2300,
3065,
273,
261,
46,
3983,
2300,
13,
1717,
334,
31,
13491,
775,
288,
18701,
1033,
1244,
273,
5973,
12,
8638,
16,
525,
338,
80,
1042,
16,
4766,
565,
525,
18644,
1042,
1769,
18701,
309,
261,
1125,
1276,
2029,
13,
288,
27573,
1836,
8168,
12,
13230,
16,
525,
338,
80,
1042,
16,
4766,
3639,
525,
18644,
1042,
16,
261,
907,
13,
1125,
1769,
27573,
1324,
31,
18701,
289,
469,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
6385,
3167,
5869,
4765,
16,
5411,
8005,
46,
338,
80,
1042,
525,
338,
80,
1042,
16,
804,
14124,
1042,
525,
18644,
1042,
16,
5411,
3603,
1046,
11522,
1477,
16,
2587,
787,
1133,
16,
2587,
679,
1133,
13,
5411,
1216,
14366,
288,
3639,
2587,
2113,
273,
787,
1133,
31,
3639,
2851,
639,
12467,
1515,
273,
394,
2851,
639,
12467,
12,
14965,
18,
3562,
1769,
3639,
4765,
18,
542,
2519,
5786,
12,
1829,
1769,
3639,
1323,
261,
14965,
480,
679,
1133,
13,
288,
5411,
1515,
18,
542,
2519,
5786,
12,
14965,
18,
3562,
1769,
5411,
309,
261,
14965,
1276,
3703,
9202,
13,
288,
7734,
3867,
1133,
977,
273,
261,
1528,
1133,
13,
14965,
31,
7734,
4498,
2
] |
_length = -1; _state = STATE_HEADER_VALUE;
|
_length=-1; _state=STATE_HEADER_VALUE;
|
public boolean parseNext() throws IOException { if (_buffer==null) { _header = _buffers.getBuffer(_headerBufferSize); _buffer = _header; _tok0 = new View(_header); _tok1 = new View(_header); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); } if (_state == STATE_END) throw new IllegalStateException("STATE_END"); if (_state == STATE_CONTENT && _contentPosition == _contentLength) { _state = STATE_END; _handler.messageComplete(_contentPosition); return false; } int length=_buffer.length(); boolean fill_called=false; // Fill buffer if we can if (length == 0) { int filled = -1; if (_content!=null && _buffer!=_content) { _buffer=_content; filled=_buffer.length(); } if (_buffer.markIndex() == 0 && _buffer.putIndex() == _buffer.capacity()) throw new IOException("FULL"); if (_endp != null && filled<=0) { // Compress buffer if handling _content buffer // TODO check this is not moving data too much if (_buffer == _content) _buffer.compact(); if (_buffer.space() == 0) { throw new IOException("FULL"); } try { filled = _endp.fill(_buffer); fill_called=true; } catch(IOException ioe) { Log.debug(ioe); reset(true); throw new IOException("EOF"); } } if (filled < 0 && _state == STATE_EOF_CONTENT) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } if (filled < 0) { reset(true); throw new IOException("EOF"); } length=_buffer.length(); } // EventHandler header byte ch; byte[] array = _buffer.array(); Buffer cached = null; while (_state < STATE_END && length-->0) { ch = _buffer.get(); if (_eol == CARRIAGE_RETURN && ch == LINE_FEED) { _eol = LINE_FEED; continue; } _eol = 0; switch (_state) { case STATE_START: _contentLength = UNKNOWN_CONTENT; if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD0; } break; case STATE_FIELD0: if (ch == SPACE) { _tok0.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE1; continue; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_SPACE1: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD1; _response = ch >= '1' && ch <= '5'; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_FIELD1: if (ch == SPACE) { _tok1.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE2; continue; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer .sliceFromMark(), null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return fill_called; } break; case STATE_SPACE2: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD2; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return fill_called; } break; case STATE_FIELD2: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_response) _handler.startResponse(HttpVersions.CACHE.lookup(_tok0), BufferUtil .toInt(_tok1), _buffer.sliceFromMark()); else _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, HttpVersions.CACHE.lookup(_buffer.sliceFromMark())); _eol = ch; _state = STATE_HEADER; _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; return fill_called; } break; case STATE_HEADER: if (ch == COLON || ch == SPACE || ch == TAB) { // header value without name - continuation? _length = -1; _state = STATE_HEADER_VALUE; } else { // handler last header if any if (cached!=null || _tok0.length() > 0 || _tok1.length() > 0 || _multiLineValue != null) { Buffer header = cached!=null?cached:HttpHeaders.CACHE.lookup(_tok0); cached=null; Buffer value = _multiLineValue == null ? (Buffer) _tok1 : (Buffer) new ByteArrayBuffer(_multiLineValue); int ho = HttpHeaders.CACHE.getOrdinal(header); if (ho >= 0) { int vo = -1; switch (ho) { case HttpHeaders.CONTENT_LENGTH_ORDINAL: if (_contentLength != CHUNKED_CONTENT) { _contentLength = BufferUtil.toInt(value); if (_contentLength <= 0) _contentLength = HttpParser.NO_CONTENT; } break; case HttpHeaders.CONNECTION_ORDINAL: // TODO comma list of connections !!! value = HttpHeaderValues.CACHE.lookup(value); break; case HttpHeaders.TRANSFER_ENCODING_ORDINAL: value = HttpHeaderValues.CACHE.lookup(value); vo=HttpHeaderValues.CACHE.getOrdinal(value); if (HttpHeaderValues.CHUNKED_ORDINAL == vo) _contentLength = CHUNKED_CONTENT; else { // TODO avoid string conversion here String c = value.toString(); if (c.endsWith(HttpHeaderValues.CHUNKED)) _contentLength = CHUNKED_CONTENT; else if (c.indexOf(HttpHeaderValues.CHUNKED) >= 0) throw new HttpException(400,null); } break; case HttpHeaders.CONTENT_TYPE_ORDINAL: _hasContent = true; break; } } _handler.parsedHeader(header, value); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; } // now handle ch if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { // End of header // work out the _content demarcation if (_contentLength == UNKNOWN_CONTENT) { if (_hasContent || _response) _contentLength = EOF_CONTENT; else _contentLength = NO_CONTENT; } _contentPosition = 0; _eol = ch; switch (_contentLength) { case HttpParser.EOF_CONTENT: _state = STATE_EOF_CONTENT; if(_content==null && _buffers!=null) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; case HttpParser.CHUNKED_CONTENT: _state = STATE_CHUNKED_CONTENT; if (_content==null && _buffers!=null) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; case HttpParser.NO_CONTENT: _state = STATE_END; _handler.headerComplete(); // May recurse here ! _handler.messageComplete(_contentPosition); break; default: _state = STATE_CONTENT; if(_buffers!=null && _content==null && _buffer==_header && _contentLength>(_header.capacity()-_header.getIndex())) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; } return fill_called; } else { // New header _length = 1; _buffer.mark(); _state = STATE_HEADER_NAME; // try cached name! cached = HttpHeaders.CACHE.getBest(array, _buffer.markIndex(), length+1); if (cached!=null) { _length=cached.length(); _buffer.setGetIndex(_buffer.markIndex()+_length); length=_buffer.length(); } } } break; case STATE_HEADER_NAME: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _eol = ch; _state = STATE_HEADER; } else if (ch == COLON) { if (_length > 0 && cached==null) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _length = -1; _state = STATE_HEADER_VALUE; } else if (ch != SPACE && ch != TAB) { // Drag the mark if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; case STATE_HEADER_VALUE: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) { if (_tok1.length() == 0) _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); else { // Continuation line! // TODO - deal with CR LF and COLON? if (_multiLineValue == null) _multiLineValue = _tok1.toString(); _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); _multiLineValue += " " + _tok1.toString(); } } _eol = ch; _state = STATE_HEADER; } else if (ch != SPACE && ch != TAB) { if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; } } // end of HEADER states loop // Handle _content Buffer chunk; length = _buffer.length(); while (_state > STATE_END && length > 0) { if (_eol == CARRIAGE_RETURN && _buffer.peek() == LINE_FEED) { _eol = _buffer.get(); length = _buffer.length(); continue; } _eol = 0; switch (_state) { case STATE_EOF_CONTENT: chunk = _buffer.get(_buffer.length()); _contentPosition += chunk.length(); _handler.content(chunk); return fill_called; case STATE_CONTENT: { int remaining = _contentLength - _contentPosition; if (remaining == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _contentPosition += chunk.length(); _handler.content(chunk); return fill_called; } case STATE_CHUNKED_CONTENT: { ch = _buffer.peek(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) _eol = _buffer.get(); else if (ch <= SPACE) _buffer.get(); else { _chunkLength = 0; _chunkPosition = 0; _state = STATE_CHUNK_SIZE; } break; } case STATE_CHUNK_SIZE: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else _state = STATE_CHUNK; } else if (ch <= SPACE || ch == SEMI_COLON) _state = STATE_CHUNK_PARAMS; else if (ch >= '0' && ch <= '9') _chunkLength = _chunkLength * 16 + (ch - '0'); else if (ch >= 'a' && ch <= 'f') _chunkLength = _chunkLength * 16 + (10 + ch - 'a'); else if (ch >= 'A' && ch <= 'F') _chunkLength = _chunkLength * 16 + (10 + ch - 'A'); else throw new IOException("bad chunk char: " + ch); break; } case STATE_CHUNK_PARAMS: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else _state = STATE_CHUNK; } break; } case STATE_CHUNK: { int remaining = _chunkLength - _chunkPosition; if (remaining == 0) { _state = STATE_CHUNKED_CONTENT; break; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _contentPosition += chunk.length(); _chunkPosition += chunk.length(); _handler.content(chunk); return fill_called; } } length = _buffer.length(); } return fill_called; }
|
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/ca67d639c4b4cf51ddb7b16c09566ea524f43a6f/HttpParser.java/buggy/trunk/modules/jetty/src/main/java/org/mortbay/jetty/HttpParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
3374,
273,
389,
28101,
18,
588,
1892,
24899,
3374,
15384,
1769,
5411,
389,
4106,
273,
389,
3374,
31,
5411,
389,
17692,
20,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
21,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
20,
18,
542,
6426,
1016,
24899,
17692,
20,
18,
588,
1016,
10663,
5411,
389,
17692,
21,
18,
542,
6426,
1016,
24899,
17692,
21,
18,
588,
1016,
10663,
3639,
289,
7734,
309,
261,
67,
2019,
422,
7442,
67,
4415,
13,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
309,
261,
67,
2019,
422,
7442,
67,
9689,
597,
389,
1745,
2555,
422,
389,
1745,
1782,
13,
3639,
288,
5411,
389,
2019,
273,
7442,
67,
4415,
31,
5411,
389,
4176,
18,
2150,
6322,
24899,
1745,
2555,
1769,
5411,
327,
629,
31,
3639,
289,
7734,
509,
769,
33,
67,
4106,
18,
2469,
5621,
3639,
1250,
3636,
67,
11777,
33,
5743,
31,
7734,
368,
14192,
1613,
309,
732,
848,
3639,
309,
261,
2469,
422,
374,
13,
3639,
288,
5411,
509,
6300,
273,
300,
21,
31,
5411,
309,
261,
67,
1745,
5,
33,
2011,
597,
389,
4106,
5,
33,
67,
1745,
13,
5411,
288,
7734,
389,
4106,
33,
67,
1745,
31,
7734,
6300,
33,
67,
4106,
18,
2469,
5621,
5411,
289,
18701,
309,
261,
67,
4106,
18,
3355,
1016,
1435,
422,
374,
597,
389,
4106,
18,
458,
1016,
1435,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
3374,
273,
389,
28101,
18,
588,
1892,
24899,
3374,
15384,
1769,
5411,
389,
4106,
273,
389,
3374,
31,
5411,
389,
17692,
20,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
21,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
20,
18,
542,
6426,
1016,
24899,
17692,
20,
18,
588,
1016,
10663,
5411,
389,
17692,
21,
18,
542,
6426,
1016,
24899,
17692,
21,
18,
588,
1016,
10663,
3639,
289,
7734,
309,
261,
67,
2019,
422,
7442,
67,
4415,
13,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
309,
261,
67,
2019,
422,
7442,
67,
9689,
2
] |
Vector allEvents = new Vector(requestLogList.size());
|
Vector<Vector> allEvents = new Vector<Vector>(requestLogList.size());
|
public Vector generateRows(Object settings){ List<FirewallLog> requestLogList = (List<FirewallLog>) settings; Vector allEvents = new Vector(requestLogList.size()); Vector event; for( FirewallLog requestLog : requestLogList ){ event = new Vector(6); event.add( requestLog.getCreateDate() ); event.add( requestLog.getAction() ); event.add( requestLog.getClientAddr() + ":" + ((Integer)requestLog.getClientPort()).toString() ); event.add( requestLog.getReason() ); event.add( requestLog.getDirection().getDirectionName() ); event.add( requestLog.getServerAddr() + ":" + ((Integer)requestLog.getServerPort()).toString() ); allEvents.add( event ); } return allEvents; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/ff039aa0a88558bd57c3af5130d7d059b60c42c3/LogJPanel.java/clean/tran/firewall/main/com/metavize/tran/firewall/gui/LogJPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5589,
2103,
4300,
12,
921,
1947,
15329,
202,
565,
987,
32,
18950,
1343,
34,
590,
1343,
682,
273,
261,
682,
32,
18950,
1343,
23429,
1947,
31,
202,
565,
5589,
777,
3783,
273,
394,
5589,
12,
2293,
1343,
682,
18,
1467,
10663,
202,
565,
5589,
871,
31,
202,
377,
202,
565,
364,
12,
22829,
1343,
590,
1343,
294,
590,
1343,
682,
262,
95,
202,
202,
2575,
273,
394,
5589,
12,
26,
1769,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
1684,
1626,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
1803,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
1227,
3178,
1435,
397,
6153,
397,
14015,
4522,
13,
2293,
1343,
18,
588,
1227,
2617,
1435,
2934,
10492,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
8385,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
8212,
7675,
588,
8212,
461,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
2081,
3178,
1435,
397,
6153,
397,
14015,
4522,
13,
2293,
1343,
18,
588,
2081,
2617,
1435,
2934,
10492,
1435,
11272,
202,
202,
454,
3783,
18,
1289,
12,
871,
11272,
202,
565,
289,
202,
377,
202,
565,
327,
777,
3783,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5589,
2103,
4300,
12,
921,
1947,
15329,
202,
565,
987,
32,
18950,
1343,
34,
590,
1343,
682,
273,
261,
682,
32,
18950,
1343,
23429,
1947,
31,
202,
565,
5589,
777,
3783,
273,
394,
5589,
12,
2293,
1343,
682,
18,
1467,
10663,
202,
565,
5589,
871,
31,
202,
377,
202,
565,
364,
12,
22829,
1343,
590,
1343,
294,
590,
1343,
682,
262,
95,
202,
202,
2575,
273,
394,
5589,
12,
26,
1769,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
1684,
1626,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
1803,
1435,
11272,
202,
202,
2575,
18,
1289,
12,
590,
1343,
18,
588,
1227,
3178,
1435,
397,
6153,
397,
14015,
4522,
2
] |
elNotMatchTag.setValue(VALUE_KEY);
|
elNotMatchTag.setValueExpr(VALUE_KEY);
|
public void testMatchStringMatches() throws ServletException, JspException { TestFormBean formBean = new TestFormBean(); formBean.setStringProperty(VALUE_KEY); pageContext.setAttribute("testFormBean", formBean); pageContext.setAttribute(VAR_KEY, VALUE_KEY); elNotMatchTag.setName("testFormBean"); elNotMatchTag.setProperty(PROP_KEY); elNotMatchTag.setValue(VALUE_KEY); int startTagReturn = elNotMatchTag.doStartTag(); assertEquals("Match string matches comparison", false, startTagReturn == Tag.EVAL_BODY_INCLUDE); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/TestELNotMatchTag.java/clean/contrib/struts-el/src/test/org/apache/strutsel/taglib/logic/TestELNotMatchTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2060,
780,
6869,
1435,
27573,
1216,
16517,
16,
27485,
288,
3639,
7766,
1204,
3381,
646,
3381,
273,
394,
7766,
1204,
3381,
5621,
3639,
646,
3381,
18,
542,
780,
1396,
12,
4051,
67,
3297,
1769,
3639,
21442,
18,
542,
1499,
2932,
3813,
1204,
3381,
3113,
646,
3381,
1769,
3639,
21442,
18,
542,
1499,
12,
7716,
67,
3297,
16,
5848,
67,
3297,
1769,
3639,
415,
1248,
2060,
1805,
18,
542,
461,
2932,
3813,
1204,
3381,
8863,
3639,
415,
1248,
2060,
1805,
18,
542,
1396,
12,
15811,
67,
3297,
1769,
3639,
415,
1248,
2060,
1805,
18,
542,
620,
4742,
12,
4051,
67,
3297,
1769,
3639,
509,
787,
1805,
990,
273,
415,
1248,
2060,
1805,
18,
2896,
30512,
5621,
3639,
1815,
8867,
2932,
2060,
533,
1885,
5826,
3113,
629,
16,
8227,
787,
1805,
990,
422,
4034,
18,
41,
2669,
67,
16691,
67,
26003,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2060,
780,
6869,
1435,
27573,
1216,
16517,
16,
27485,
288,
3639,
7766,
1204,
3381,
646,
3381,
273,
394,
7766,
1204,
3381,
5621,
3639,
646,
3381,
18,
542,
780,
1396,
12,
4051,
67,
3297,
1769,
3639,
21442,
18,
542,
1499,
2932,
3813,
1204,
3381,
3113,
646,
3381,
1769,
3639,
21442,
18,
542,
1499,
12,
7716,
67,
3297,
16,
5848,
67,
3297,
1769,
3639,
415,
1248,
2060,
1805,
18,
542,
461,
2932,
3813,
1204,
3381,
8863,
3639,
415,
1248,
2060,
1805,
18,
542,
1396,
12,
15811,
67,
3297,
1769,
3639,
415,
1248,
2060,
1805,
18,
542,
620,
4742,
12,
4051,
67,
3297,
1769,
3639,
509,
787,
1805,
990,
273,
415,
1248,
2060,
1805,
18,
2896,
30512,
5621,
2
] |
IConfiguration newConfig = rootTarget.createConfiguration(baseConfig, testConfigName);
|
IConfiguration newConfig = rootTarget.createConfiguration(baseConfig, testConfigId);
|
public void testConfigurations() throws CoreException, BuildException { // Open the test project IProject project = createProject(projectName); // Make sure there is one and only one target with 2 configs ITarget[] definedTargets = ManagedBuildManager.getTargets(project); assertEquals(1, definedTargets.length); ITarget rootTarget = definedTargets[0]; IConfiguration[] definedConfigs = rootTarget.getConfigurations(); assertEquals(2, definedConfigs.length); IConfiguration baseConfig = definedConfigs[0]; // Create a new configuration IConfiguration newConfig = rootTarget.createConfiguration(baseConfig, testConfigName); assertEquals(3, rootTarget.getConfigurations().length); // There is only one tool ITool[] definedTools = newConfig.getTools(); assertEquals(1, definedTools.length); ITool rootTool = definedTools[0]; // Override options in the new configuration IOptionCategory topCategory = rootTool.getTopOptionCategory(); assertEquals("Root Tool", topCategory.getName()); IOption[] options = topCategory.getOptions(null); assertEquals(2, options.length); ManagedBuildManager.setOption(newConfig, options[0], listVal); ManagedBuildManager.setOption(newConfig, options[1], boolVal); IOptionCategory[] categories = topCategory.getChildCategories(); assertEquals(1, categories.length); options = categories[0].getOptions(null); assertEquals(2, options.length); ManagedBuildManager.setOption(newConfig, options[0], stringVal); ManagedBuildManager.setOption(newConfig, options[1], enumVal); // Save, close, reopen and test again ManagedBuildManager.saveBuildInfo(project); project.close(null); ManagedBuildManager.removeBuildInfo(project); project.open(null); // Test the values in the new configuration checkOptionReferences(project); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e09b94f945a1f60ed6ae4684263bbcff69ac9a60/ManagedBuildTests.java/clean/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
9698,
1435,
1216,
30015,
16,
18463,
288,
202,
202,
759,
3502,
326,
1842,
1984,
202,
202,
45,
4109,
1984,
273,
752,
4109,
12,
4406,
461,
1769,
9506,
202,
759,
4344,
3071,
1915,
353,
1245,
471,
1338,
1245,
1018,
598,
576,
6784,
202,
202,
1285,
826,
8526,
2553,
9432,
273,
10024,
3116,
1318,
18,
588,
9432,
12,
4406,
1769,
202,
202,
11231,
8867,
12,
21,
16,
2553,
9432,
18,
2469,
1769,
202,
202,
1285,
826,
1365,
2326,
273,
2553,
9432,
63,
20,
15533,
202,
202,
45,
1750,
8526,
2553,
8062,
273,
1365,
2326,
18,
588,
9698,
5621,
4697,
202,
11231,
8867,
12,
22,
16,
2553,
8062,
18,
2469,
1769,
202,
202,
45,
1750,
1026,
809,
273,
2553,
8062,
63,
20,
15533,
9506,
202,
759,
1788,
279,
394,
1664,
202,
202,
45,
1750,
21032,
273,
1365,
2326,
18,
2640,
1750,
12,
1969,
809,
16,
1842,
809,
461,
1769,
202,
202,
11231,
8867,
12,
23,
16,
1365,
2326,
18,
588,
9698,
7675,
2469,
1769,
202,
202,
759,
6149,
353,
1338,
1245,
5226,
202,
202,
45,
6364,
8526,
2553,
10348,
273,
21032,
18,
588,
10348,
5621,
202,
202,
11231,
8867,
12,
21,
16,
2553,
10348,
18,
2469,
1769,
202,
202,
45,
6364,
1365,
6364,
273,
2553,
10348,
63,
20,
15533,
9506,
202,
759,
1439,
702,
316,
326,
394,
1664,
202,
202,
45,
1895,
4457,
1760,
4457,
273,
1365,
6364,
18,
588,
3401,
1895,
4457,
5621,
202,
202,
11231,
8867,
2932,
2375,
13288,
3113,
1760,
4457,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9698,
1435,
1216,
30015,
16,
18463,
288,
202,
202,
759,
3502,
326,
1842,
1984,
202,
202,
45,
4109,
1984,
273,
752,
4109,
12,
4406,
461,
1769,
9506,
202,
759,
4344,
3071,
1915,
353,
1245,
471,
1338,
1245,
1018,
598,
576,
6784,
202,
202,
1285,
826,
8526,
2553,
9432,
273,
10024,
3116,
1318,
18,
588,
9432,
12,
4406,
1769,
202,
202,
11231,
8867,
12,
21,
16,
2553,
9432,
18,
2469,
1769,
202,
202,
1285,
826,
1365,
2326,
273,
2553,
9432,
63,
20,
15533,
202,
202,
45,
1750,
8526,
2553,
8062,
273,
1365,
2326,
18,
588,
9698,
5621,
4697,
202,
11231,
8867,
12,
22,
16,
2553,
8062,
18,
2469,
1769,
202,
202,
45,
1750,
1026,
809,
2
] |
VMRunnerConfiguration runConfig = new VMRunnerConfiguration( mainTypeName, classpath); runConfig.setProgramArguments(execArgs.getProgramArgumentsArray()); runConfig.setVMArguments(execArgs.getVMArgumentsArray()); runConfig.setWorkingDirectory(workingDirName); runConfig.setVMSpecificAttributesMap(vmAttributesMap);
|
VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, classpath); runConfig.setProgramArguments(execArgs.getProgramArgumentsArray()); runConfig.setVMArguments(execArgs.getVMArgumentsArray()); runConfig.setWorkingDirectory(workingDirName); runConfig.setVMSpecificAttributesMap(vmAttributesMap);
|
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor .beginTask( LaunchingMessages .getString("WOJavaLocalApplicationLaunchConfigurationDelegate.Launching..._1"), IProgressMonitor.UNKNOWN); //$NON-NLS-1$ // check for cancellation if (monitor.isCanceled()) { return; } JavaProject javaProject = (JavaProject) (this .getJavaProject(configuration).getAdapter(JavaProject.class)); String mainTypeName = verifyMainTypeName(configuration); IVMInstall vm = verifyVMInstall(configuration); IVMRunner runner = vm.getVMRunner(mode); if (runner == null) { if (mode == ILaunchManager.DEBUG_MODE) { abort( MessageFormat .format( LaunchingMessages .getString("WOJavaLocalApplicationLaunchConfigurationDelegate.JRE_{0}_does_not_support_debug_mode._1"), new String[] { vm.getName() }), null, IJavaLaunchConfigurationConstants.ERR_VM_RUNNER_DOES_NOT_EXIST); //$NON-NLS-1$ } else { abort( MessageFormat .format( LaunchingMessages .getString("WOJavaLocalApplicationLaunchConfigurationDelegate.JRE_{0}_does_not_support_run_mode._2"), new String[] { vm.getName() }), null, IJavaLaunchConfigurationConstants.ERR_VM_RUNNER_DOES_NOT_EXIST); //$NON-NLS-1$ } } File workingDir = verifyWorkingDirectory(configuration); String workingDirName = null; if (workingDir != null) { workingDirName = workingDir.getAbsolutePath(); } String launchArguments = configuration .getAttribute( WOJavaLocalApplicationLaunchConfigurationDelegate.ATTR_WOLIPS_LAUNCH_WOARGUMENTS, Preferences.getPREF_LAUNCH_GLOBAL()); ILaunchInfo[] launchInfo = Preferences .getLaunchInfoFrom(launchArguments); StringBuffer launchArgument = new StringBuffer(); String automatic = "Automatic"; for (int i = 0; i < launchInfo.length; i++) { boolean spaceBetweenParameterAndArgument = true; if (launchInfo[i].isEnabled()) { // -WOApplicationClassName String parameter = launchInfo[i].getParameter(); String argument = launchInfo[i].getArgument(); if (automatic.equals(argument)) { if ("-WOApplicationClassName".equals(parameter)) argument = mainTypeName; if ("-DWORoot=".equals(parameter)) { argument = VariablesPlugin.getDefault().getSystemRoot() .toOSString(); spaceBetweenParameterAndArgument = false; if (javaProject.isOnMacOSX()) { parameter = ""; argument = ""; } } if ("-DWORootDirectory=".equals(parameter)) { argument = VariablesPlugin.getDefault().getSystemRoot() .toOSString(); spaceBetweenParameterAndArgument = false; if (javaProject.isOnMacOSX()) { parameter = ""; argument = ""; } } if ("-DWOUserDirectory".equals(parameter)) { argument = workingDir.getAbsolutePath(); spaceBetweenParameterAndArgument = false; } if ("-NSProjectSearchPath".equals(parameter)) { argument = javaProject.getGeneratedByWOLips(Preferences .getPREF_NS_PROJECT_SEARCH_PATH()); } } launchArgument.append(parameter); if (spaceBetweenParameterAndArgument) launchArgument.append(" "); launchArgument.append(argument); launchArgument.append(" "); } } String debugGroups = configuration .getAttribute( WOJavaLocalApplicationLaunchConfigurationDelegate.ATTR_WOLIPS_LAUNCH_DEBUG_GROUPS, ""); if (debugGroups != null && debugGroups.length() > 0) { launchArgument.append(" -DNSDebugGroups=\"("); launchArgument.append(debugGroups); launchArgument.append(")\""); } // Program & VM args String pgmArgs = getProgramArguments(configuration) + " " + launchArgument.toString(); String vmArgs = getVMArguments(configuration); StringBuffer vmArgsBuffer = new StringBuffer(vmArgs); this.addVMArguments(vmArgsBuffer, configuration, launch, mode); ExecutionArguments execArgs = new ExecutionArguments(vmArgsBuffer .toString(), pgmArgs); // VM-specific attributes Map vmAttributesMap = getVMSpecificAttributesMap(configuration); // Classpath String[] classpath = getClasspath(configuration); // Create VM config VMRunnerConfiguration runConfig = new VMRunnerConfiguration( mainTypeName, classpath); runConfig.setProgramArguments(execArgs.getProgramArgumentsArray()); runConfig.setVMArguments(execArgs.getVMArgumentsArray()); runConfig.setWorkingDirectory(workingDirName); runConfig.setVMSpecificAttributesMap(vmAttributesMap); // Bootpath String[] bootpath = getBootpath(configuration); runConfig.setBootClassPath(bootpath); // check for cancellation if (monitor.isCanceled()) { return; } // stop in main prepareStopInMain(configuration); // Launch the configuration runner.run(runConfig, launch, monitor); // check for cancellation if (monitor.isCanceled()) { return; } // set the default source locator if required setDefaultSourceLocator(launch, configuration); monitor.done(); }
|
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/5527df38ebdd8fa6e34f6687c6663e99666c3d17/WOJavaLocalApplicationLaunchConfigurationDelegate.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.launching/java/org/objectstyle/wolips/launching/WOJavaLocalApplicationLaunchConfigurationDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8037,
12,
2627,
4760,
1750,
1664,
16,
514,
1965,
16,
1082,
202,
2627,
4760,
8037,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
10259,
9506,
202,
18,
10086,
2174,
12,
25083,
202,
9569,
310,
5058,
6862,
9506,
202,
18,
588,
780,
2932,
59,
51,
5852,
2042,
3208,
9569,
1750,
9586,
18,
9569,
310,
2777,
67,
21,
6,
3631,
467,
5491,
7187,
18,
14737,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
866,
364,
7272,
202,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5852,
4109,
2252,
4109,
273,
261,
5852,
4109,
13,
261,
2211,
9506,
202,
18,
588,
5852,
4109,
12,
7025,
2934,
588,
4216,
12,
5852,
4109,
18,
1106,
10019,
202,
202,
780,
2774,
7947,
273,
3929,
6376,
7947,
12,
7025,
1769,
202,
202,
45,
7397,
6410,
4268,
273,
3929,
7397,
6410,
12,
7025,
1769,
202,
202,
45,
7397,
9709,
8419,
273,
4268,
18,
588,
7397,
9709,
12,
3188,
1769,
202,
202,
430,
261,
18156,
422,
446,
13,
288,
1082,
202,
430,
261,
3188,
422,
467,
9569,
1318,
18,
9394,
67,
7038,
13,
288,
9506,
202,
18623,
12,
25083,
202,
1079,
1630,
6862,
9506,
202,
18,
2139,
12,
6862,
25083,
202,
9569,
310,
5058,
6862,
6862,
9506,
202,
18,
588,
780,
2932,
59,
51,
5852,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8037,
12,
2627,
4760,
1750,
1664,
16,
514,
1965,
16,
1082,
202,
2627,
4760,
8037,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
10259,
9506,
202,
18,
10086,
2174,
12,
25083,
202,
9569,
310,
5058,
6862,
9506,
202,
18,
588,
780,
2932,
59,
51,
5852,
2042,
3208,
9569,
1750,
9586,
18,
9569,
310,
2777,
67,
21,
6,
3631,
467,
5491,
7187,
18,
14737,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
866,
364,
7272,
202,
202,
430,
261,
10259,
18,
291,
23163,
10756,
288,
1082,
202,
2463,
31,
2
] |
if (firstAnyString == -1)
|
if (firstAnyString != -1)
|
public static String greaterEqualString(String pattern, String escape) throws StandardException { int firstAnyChar = pattern.indexOf(anyChar); int firstAnyString = pattern.indexOf(anyString); // // For Escape we don't utilize any of the stylish code // below but brute force walk the pattern to find out // what is there, while stripping escapes // if ((escape != null) && (escape.length() != 0)) { char escChar = escape.charAt(0); if (pattern.indexOf(escChar) != -1) { // we return a string stripping out the escape char // leaving the _? in place as normal chars. return greaterEqualString(pattern, escChar); } // drop through if no escape found } if (firstAnyChar == -1) { if (firstAnyString == -1) { return pattern; } else // no _, found % { return pattern.substring(0, firstAnyString); } } else if (firstAnyString == -1) { return pattern.substring(0, firstAnyChar); } else { return pattern.substring(0, (firstAnyChar > firstAnyString) ? firstAnyString : firstAnyChar); } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/baef65af168ba7eaa4ca93d6e8330a55926af6bc/Like.java/clean/java/engine/org/apache/derby/iapi/types/Like.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6802,
5812,
780,
12,
780,
1936,
16,
514,
4114,
13,
202,
565,
1216,
8263,
503,
202,
95,
202,
202,
474,
1122,
2961,
2156,
273,
1936,
18,
31806,
12,
2273,
2156,
1769,
202,
202,
474,
1122,
2961,
780,
273,
1936,
18,
31806,
12,
2273,
780,
1769,
202,
202,
759,
3196,
202,
759,
2457,
18025,
732,
2727,
1404,
1709,
554,
1281,
434,
326,
16253,
80,
1468,
981,
202,
202,
759,
5712,
1496,
5186,
624,
2944,
5442,
326,
1936,
358,
1104,
596,
202,
202,
759,
4121,
353,
1915,
16,
1323,
2569,
1382,
23802,
202,
202,
759,
202,
202,
430,
14015,
6939,
480,
446,
13,
597,
261,
6939,
18,
2469,
1435,
480,
374,
3719,
202,
202,
95,
1082,
202,
3001,
2904,
2156,
273,
4114,
18,
3001,
861,
12,
20,
1769,
1082,
202,
430,
261,
4951,
18,
31806,
12,
742,
2156,
13,
480,
300,
21,
13,
1082,
202,
95,
9506,
202,
759,
732,
327,
279,
533,
2569,
1382,
596,
326,
4114,
1149,
9506,
202,
759,
15086,
326,
389,
35,
316,
3166,
487,
2212,
5230,
18,
1171,
9506,
202,
2463,
6802,
5812,
780,
12,
4951,
16,
2904,
2156,
1769,
1082,
202,
97,
1082,
202,
759,
3640,
3059,
309,
1158,
4114,
1392,
202,
202,
97,
202,
202,
430,
261,
3645,
2961,
2156,
422,
300,
21,
13,
202,
202,
95,
1082,
202,
430,
261,
3645,
2961,
780,
422,
300,
21,
13,
1082,
202,
95,
9506,
202,
2463,
1936,
31,
1082,
202,
97,
1082,
202,
12107,
202,
759,
1158,
389,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
6802,
5812,
780,
12,
780,
1936,
16,
514,
4114,
13,
202,
565,
1216,
8263,
503,
202,
95,
202,
202,
474,
1122,
2961,
2156,
273,
1936,
18,
31806,
12,
2273,
2156,
1769,
202,
202,
474,
1122,
2961,
780,
273,
1936,
18,
31806,
12,
2273,
780,
1769,
202,
202,
759,
3196,
202,
759,
2457,
18025,
732,
2727,
1404,
1709,
554,
1281,
434,
326,
16253,
80,
1468,
981,
202,
202,
759,
5712,
1496,
5186,
624,
2944,
5442,
326,
1936,
358,
1104,
596,
202,
202,
759,
4121,
353,
1915,
16,
1323,
2569,
1382,
23802,
202,
202,
759,
202,
202,
430,
14015,
6939,
480,
446,
13,
597,
261,
6939,
18,
2469,
1435,
480,
374,
3719,
202,
202,
95,
1082,
2
] |
for (ImapMessage i4msg : i4set) { if (i4msg == null) continue;
|
if (!i4flags.isEmpty() || operation == STORE_REPLACE) { byte sflags = (operation != STORE_REPLACE ? i4msg.sflags : 0); int flags = (operation != STORE_REPLACE ? i4msg.flags : Flag.FLAG_UNREAD | (i4msg.flags & ~ImapMessage.IMAP_FLAGS)); long tags = (operation != STORE_REPLACE ? i4msg.tags : 0); for (ImapFlag i4flag : i4flags) { if (Tag.validateId(i4flag.mId)) tags = (operation == STORE_REMOVE ^ !i4flag.mPositive ? tags & ~i4flag.mBitmask : tags | i4flag.mBitmask); else if (!i4flag.mPermanent) sflags = (byte) (operation == STORE_REMOVE ^ !i4flag.mPositive ? sflags & ~i4flag.mBitmask : sflags | i4flag.mBitmask); else flags = (int) (operation == STORE_REMOVE ^ !i4flag.mPositive ? flags & ~i4flag.mBitmask : flags | i4flag.mBitmask); }
|
boolean doSTORE(String tag, String sequenceSet, List<String> flagList, byte operation, boolean silent, boolean byUID) throws IOException { if (!checkState(tag, ImapSession.STATE_SELECTED)) return CONTINUE_PROCESSING; else if (!mSession.getFolder().isWritable()) { sendNO(tag, "mailbox selected READ-ONLY"); return CONTINUE_PROCESSING; } String command = (byUID ? "UID STORE" : "STORE"); boolean allPresent = true; List<Tag> newTags = (operation != STORE_REMOVE ? new ArrayList<Tag>() : null); List<String> responses = new ArrayList<String>(); try { synchronized (mMailbox) { // if it was a STORE [+-]?FLAGS.SILENT, temporarily disable notifications if (silent) mSession.getFolder().disableNotifications(); // get sets of relevant messages and tags Set<ImapMessage> i4set = mSession.getFolder().getSubsequence(sequenceSet, byUID); allPresent = byUID || !i4set.contains(null); List<ImapFlag> i4flags = findOrCreateTags(flagList, newTags); for (ImapMessage i4msg : i4set) { if (i4msg == null) continue; if (!i4flags.isEmpty() || operation == STORE_REPLACE) { // FIXME: changed tag/flag mask could be precomputed outside the i4set loop byte sflags = (operation != STORE_REPLACE ? i4msg.sflags : 0); int flags = (operation != STORE_REPLACE ? i4msg.flags : Flag.FLAG_UNREAD | (i4msg.flags & ~ImapMessage.IMAP_FLAGS)); long tags = (operation != STORE_REPLACE ? i4msg.tags : 0); for (ImapFlag i4flag : i4flags) { if (Tag.validateId(i4flag.mId)) tags = (operation == STORE_REMOVE ^ !i4flag.mPositive ? tags & ~i4flag.mBitmask : tags | i4flag.mBitmask); else if (!i4flag.mPermanent) sflags = (byte) (operation == STORE_REMOVE ^ !i4flag.mPositive ? sflags & ~i4flag.mBitmask : sflags | i4flag.mBitmask); else flags = (int) (operation == STORE_REMOVE ^ !i4flag.mPositive ? flags & ~i4flag.mBitmask : flags | i4flag.mBitmask); } if (tags != i4msg.tags || flags != i4msg.flags) try { mMailbox.setTags(getContext(), i4msg.id, MailItem.TYPE_MESSAGE, flags, tags); } catch (MailServiceException.NoSuchItemException nsie) { i4msg.expunged = true; } // i4msg's permanent flags/tags will be updated via notification i4msg.setSessionFlags(sflags); } if (!silent) { StringBuffer result = new StringBuffer(); result.append(i4msg.seq).append(" FETCH (").append(i4msg.getFlags(mSession)); // 6.4.8: "However, server implementations MUST implicitly include // the UID message data item as part of any FETCH response // caused by a UID command..." if (byUID) result.append(" UID ").append(i4msg.uid); responses.add(result.append(')').toString()); mSession.getFolder().undirtyMessage(i4msg); } } } } catch (ServiceException e) { deleteTags(newTags); ZimbraLog.imap.warn(command + " failed", e); sendNO(tag, command + " failed"); return canContinue(e); } finally { mSession.getFolder().enableNotifications(); } for (String response : responses) sendUntagged(response); sendNotifications(false, false); // RFC 2180 4.2.1: "If the ".SILENT" suffix is used, and the STORE completed successfully for // all the non-expunged messages, the server SHOULD return a tagged OK." // RFC 2180 4.2.3: "If the ".SILENT" suffix is not used, and a mixture of expunged and non- // expunged messages are referenced, the server MAY set the flags and return // a FETCH response for the non-expunged messages along with a tagged NO." if (silent || allPresent) sendOK(tag, command + " completed"); else sendNO(tag, command + " completed"); return CONTINUE_PROCESSING; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/3c20b46d84fb970a4580fe8a0ff9f824a8fbf34d/ImapHandler.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/ImapHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
13651,
12,
780,
1047,
16,
514,
3102,
694,
16,
987,
32,
780,
34,
2982,
682,
16,
1160,
1674,
16,
1250,
10404,
16,
1250,
635,
3060,
13,
1216,
1860,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
4803,
2056,
3719,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
469,
309,
16051,
81,
2157,
18,
588,
3899,
7675,
291,
12061,
10756,
288,
5411,
1366,
3417,
12,
2692,
16,
315,
4408,
2147,
3170,
10746,
17,
10857,
8863,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
289,
3639,
514,
1296,
273,
261,
1637,
3060,
692,
315,
3060,
29656,
6,
294,
315,
13651,
8863,
3639,
1250,
777,
6351,
273,
638,
31,
3639,
987,
32,
1805,
34,
394,
3453,
273,
261,
7624,
480,
29656,
67,
22122,
692,
394,
2407,
32,
1805,
34,
1435,
294,
446,
1769,
3639,
987,
32,
780,
34,
7220,
273,
394,
2407,
32,
780,
34,
5621,
3639,
775,
288,
5411,
3852,
261,
81,
30239,
13,
288,
7734,
368,
309,
518,
1703,
279,
29656,
306,
18549,
26717,
17836,
18,
2320,
900,
1784,
16,
18917,
4056,
9208,
7734,
309,
261,
21862,
13,
10792,
312,
2157,
18,
588,
3899,
7675,
8394,
14111,
5621,
7734,
368,
336,
1678,
434,
9368,
2743,
471,
2342,
7734,
1000,
32,
20827,
1079,
34,
277,
24,
542,
273,
312,
2157,
18,
588,
3899,
7675,
588,
1676,
6178,
12,
6178,
694,
16,
635,
3060,
1769,
7734,
777,
6351,
273,
635,
3060,
747,
401,
77,
24,
542,
18,
12298,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
741,
13651,
12,
780,
1047,
16,
514,
3102,
694,
16,
987,
32,
780,
34,
2982,
682,
16,
1160,
1674,
16,
1250,
10404,
16,
1250,
635,
3060,
13,
1216,
1860,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
4803,
2056,
3719,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
469,
309,
16051,
81,
2157,
18,
588,
3899,
7675,
291,
12061,
10756,
288,
5411,
1366,
3417,
12,
2692,
16,
315,
4408,
2147,
3170,
10746,
17,
10857,
8863,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
289,
3639,
514,
1296,
273,
261,
1637,
3060,
692,
315,
3060,
29656,
6,
294,
315,
13651,
8863,
3639,
1250,
777,
6351,
273,
638,
31,
3639,
2
] |
else if (buffer[offset] != '\n') {
|
else { if ((buffer[offset] == '\n') || (buffer[offset] == Character.LINE_SEPARATOR) || (buffer[offset] == Character.PARAGRAPH_SEPARATOR)) { offset++; prevStart = lineStart; lineStart = offset; lineno++; return '\n'; }
|
int read() throws IOException { for(;;) { if (end == offset && !fill()) return -1; // Do only a bitmask + branch per character, at the cost of // three branches per low-bits-only character. if ((buffer[offset] & '\ufff0') == 0) { if (buffer[offset] == '\r') { // if the next character is a newline, skip past it. if ((offset + 1) < end) { if (buffer[offset + 1] == '\n') offset++; } else { // set a flag for fill(), in case the first char of the // next fill is a newline. lastWasCR = true; } } else if (buffer[offset] != '\n') { return (int) buffer[offset++]; } offset++; prevStart = lineStart; lineStart = offset; lineno++; return '\n'; } if ((buffer[offset] >= 128) && Character.getType(buffer[offset]) == Character.FORMAT) { hadCFSinceStringStart = true; offset++; } else break; } return (int) buffer[offset++]; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/f5c97061211cfc7567604de2424b1047182b8274/LineBuffer.java/buggy/src/org/mozilla/javascript/LineBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
855,
1435,
1216,
1860,
288,
202,
202,
1884,
12,
25708,
13,
288,
1082,
202,
430,
261,
409,
422,
1384,
597,
401,
5935,
10756,
9506,
565,
327,
300,
21,
31,
1082,
202,
759,
2256,
1338,
279,
24941,
397,
3803,
1534,
3351,
16,
622,
326,
6991,
434,
1082,
202,
759,
8925,
11483,
1534,
4587,
17,
6789,
17,
3700,
3351,
18,
1082,
202,
430,
14015,
4106,
63,
3348,
65,
473,
2337,
696,
1403,
20,
6134,
422,
374,
13,
288,
9506,
565,
309,
261,
4106,
63,
3348,
65,
422,
2337,
86,
6134,
288,
9506,
3639,
368,
309,
326,
1024,
3351,
353,
279,
9472,
16,
2488,
8854,
518,
18,
9506,
3639,
309,
14015,
3348,
397,
404,
13,
411,
679,
13,
288,
9506,
5411,
309,
261,
4106,
63,
3348,
397,
404,
65,
422,
2337,
82,
6134,
9506,
7734,
1384,
9904,
31,
9506,
3639,
289,
469,
288,
9506,
5411,
368,
444,
279,
2982,
364,
3636,
9334,
316,
648,
326,
1122,
1149,
434,
326,
9506,
5411,
368,
1024,
3636,
353,
279,
9472,
18,
9506,
5411,
1142,
14992,
5093,
273,
638,
31,
9506,
3639,
289,
9506,
565,
289,
9506,
565,
469,
309,
261,
4106,
63,
3348,
65,
480,
2337,
82,
6134,
288,
9506,
3639,
327,
261,
474,
13,
1613,
63,
3348,
9904,
15533,
9506,
565,
289,
9506,
565,
1384,
9904,
31,
9506,
565,
2807,
1685,
273,
29208,
31,
9506,
565,
29208,
273,
1384,
31,
9506,
565,
7586,
9904,
31,
9506,
565,
327,
2337,
82,
13506,
1082,
202,
97,
1082,
202,
430,
14015,
4106,
63,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
855,
1435,
1216,
1860,
288,
202,
202,
1884,
12,
25708,
13,
288,
1082,
202,
430,
261,
409,
422,
1384,
597,
401,
5935,
10756,
9506,
565,
327,
300,
21,
31,
1082,
202,
759,
2256,
1338,
279,
24941,
397,
3803,
1534,
3351,
16,
622,
326,
6991,
434,
1082,
202,
759,
8925,
11483,
1534,
4587,
17,
6789,
17,
3700,
3351,
18,
1082,
202,
430,
14015,
4106,
63,
3348,
65,
473,
2337,
696,
1403,
20,
6134,
422,
374,
13,
288,
9506,
565,
309,
261,
4106,
63,
3348,
65,
422,
2337,
86,
6134,
288,
9506,
3639,
368,
309,
326,
1024,
3351,
353,
279,
9472,
16,
2488,
8854,
518,
18,
9506,
3639,
309,
14015,
3348,
397,
404,
13,
411,
679,
13,
288,
9506,
2
] |
sideFs_ = FileSystem.getNamed("local", job_);
|
sideFs_ = FileSystem.getLocal(job_);
|
public void configure(JobConf job) { try { String argv = getPipeCommand(job); keyCols_ = getKeyColsFromPipeCommand(argv); debug_ = (job.get("stream.debug") != null); if (debug_) { System.out.println("PipeMapRed: stream.debug=true"); } joinDelay_ = job.getLong("stream.joindelay.milli", 0); job_ = job; fs_ = FileSystem.get(job_); if (job_.getBoolean("stream.sideoutput.localfs", false)) { //sideFs_ = new LocalFileSystem(job_); sideFs_ = FileSystem.getNamed("local", job_); } else { sideFs_ = fs_; } if (debug_) { System.out.println("kind :" + this.getClass()); System.out.println("split :" + StreamUtil.getCurrentSplit(job_)); System.out.println("fs :" + fs_.toString()); System.out.println("sideFs :" + sideFs_.toString()); } doPipe_ = getDoPipe(); if (!doPipe_) return; setStreamJobDetails(job); setStreamProperties(); if (debugFailEarly_) { throw new RuntimeException("debugFailEarly_"); } String[] argvSplit = splitArgs(argv); String prog = argvSplit[0]; String userdir = System.getProperty("user.dir"); File currentDir = new File(".").getAbsoluteFile(); File jobCacheDir = new File(currentDir.getParentFile().getParent(), "work"); if (new File(prog).isAbsolute()) { // we don't own it. Hope it is executable } else { new MustangFile(new File(jobCacheDir, prog).toString()).setExecutable(true, true); } if (job_.getInputValueClass().equals(BytesWritable.class)) { // TODO expose as separate config: // job or semistandard inputformat property optUseKey_ = false; } optSideEffect_ = getUseSideEffect(); if (optSideEffect_) { // during work: use a completely unique filename to avoid HDFS namespace conflicts // after work: rename to a filename that depends only on the workload (the FileSplit) // it's a friendly name and in case of reexecution it will clobber. // reexecution can be due to: other job, failed task and speculative task // See StreamJob.setOutputSpec(): if reducerNone_ aka optSideEffect then: // client has renamed outputPath and saved the argv's original output path as: if (useSingleSideOutputURI_) { finalOutputURI = new URI(sideOutputURI_); sideEffectPathFinal_ = null; // in-place, no renaming to final } else { sideFs_ = new PhasedFileSystem(sideFs_, job); String sideOutputPath = job_.get("stream.sideoutput.dir"); // was: job_.getOutputPath() String fileName = getSideEffectFileName(); // see HADOOP-444 for rationale sideEffectPathFinal_ = new Path(sideOutputPath, fileName); finalOutputURI = new URI(sideEffectPathFinal_.toString()); // implicit dfs: } // apply default scheme if(finalOutputURI.getScheme() == null) { finalOutputURI = new URI("file", finalOutputURI.getSchemeSpecificPart(), null); } boolean allowSocket = useSingleSideOutputURI_; sideEffectOut_ = getURIOutputStream(finalOutputURI, allowSocket); } // // argvSplit[0]: // An absolute path should be a preexisting valid path on all TaskTrackers // A relative path is converted into an absolute pathname by looking // up the PATH env variable. If it still fails, look it up in the // tasktracker's local working directory // if (!new File(argvSplit[0]).isAbsolute()) { PathFinder finder = new PathFinder("PATH"); finder.prependPathComponent(jobCacheDir.toString()); File f = finder.getAbsolutePath(argvSplit[0]); if (f != null) { argvSplit[0] = f.getAbsolutePath(); } f = null; } logprintln("PipeMapRed exec " + Arrays.asList(argvSplit)); logprintln("sideEffectURI_=" + finalOutputURI); Environment childEnv = (Environment) StreamUtil.env().clone(); addJobConfToEnvironment(job_, childEnv); addEnvironment(childEnv, job_.get("stream.addenvironment")); sim = Runtime.getRuntime().exec(argvSplit, childEnv.toArray()); /* // This way required jdk1.5 Builder processBuilder = new ProcessBuilder(argvSplit); Map<String, String> env = processBuilder.environment(); addEnvironment(env, job_.get("stream.addenvironment")); sim = processBuilder.start(); */ clientOut_ = new DataOutputStream(new BufferedOutputStream(sim.getOutputStream())); clientIn_ = new DataInputStream(new BufferedInputStream(sim.getInputStream())); clientErr_ = new DataInputStream(new BufferedInputStream(sim.getErrorStream())); startTime_ = System.currentTimeMillis(); } catch (Exception e) { logStackTrace(e); } }
|
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ed2da6b550c672b8d6867b05791a98214d3f9c30/PipeMapRed.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5068,
12,
2278,
3976,
1719,
13,
288,
565,
775,
288,
1377,
514,
5261,
273,
1689,
3151,
2189,
12,
4688,
1769,
1377,
498,
8011,
67,
273,
3579,
8011,
1265,
11546,
2189,
12,
19485,
1769,
1377,
1198,
67,
273,
261,
4688,
18,
588,
2932,
3256,
18,
4148,
7923,
480,
446,
1769,
1377,
309,
261,
4148,
67,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
11546,
863,
3715,
30,
1407,
18,
4148,
33,
3767,
8863,
1377,
289,
1377,
1233,
6763,
67,
273,
1719,
18,
588,
3708,
2932,
3256,
18,
30952,
728,
292,
528,
18,
81,
16607,
3113,
374,
1769,
1377,
1719,
67,
273,
1719,
31,
1377,
2662,
67,
273,
10931,
18,
588,
12,
4688,
67,
1769,
1377,
309,
261,
4688,
27799,
588,
5507,
2932,
3256,
18,
5564,
2844,
18,
3729,
2556,
3113,
629,
3719,
288,
3639,
368,
5564,
12432,
67,
273,
394,
3566,
11785,
12,
4688,
67,
1769,
3639,
4889,
12432,
67,
273,
10931,
18,
588,
2042,
12,
4688,
67,
1769,
1377,
289,
469,
288,
3639,
4889,
12432,
67,
273,
2662,
67,
31,
1377,
289,
1377,
309,
261,
4148,
67,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
9224,
282,
20514,
397,
333,
18,
588,
797,
10663,
3639,
2332,
18,
659,
18,
8222,
2932,
4939,
225,
20514,
397,
3961,
1304,
18,
588,
3935,
5521,
12,
4688,
67,
10019,
3639,
2332,
18,
659,
18,
8222,
2932,
2556,
377,
20514,
397,
2662,
27799,
10492,
10663,
3639,
2332,
18,
659,
18,
8222,
2932,
5564,
12432,
20514,
397,
4889,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5068,
12,
2278,
3976,
1719,
13,
288,
565,
775,
288,
1377,
514,
5261,
273,
1689,
3151,
2189,
12,
4688,
1769,
1377,
498,
8011,
67,
273,
3579,
8011,
1265,
11546,
2189,
12,
19485,
1769,
1377,
1198,
67,
273,
261,
4688,
18,
588,
2932,
3256,
18,
4148,
7923,
480,
446,
1769,
1377,
309,
261,
4148,
67,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
11546,
863,
3715,
30,
1407,
18,
4148,
33,
3767,
8863,
1377,
289,
1377,
1233,
6763,
67,
273,
1719,
18,
588,
3708,
2932,
3256,
18,
30952,
728,
292,
528,
18,
81,
16607,
3113,
374,
1769,
1377,
1719,
67,
273,
1719,
31,
1377,
2662,
67,
273,
10931,
18,
588,
12,
4688,
67,
1769,
1377,
309,
2
] |
this.setColumnSelectionAllowed( false ); this.setSelectionMode( ListSelectionModel.SINGLE_SELECTION ); propLabelFont = new Font( "Courier New", Font.BOLD, 12 ); defaultFont = new Font( "Default", Font.PLAIN, 12 );
|
this.setColumnSelectionAllowed(false); this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); propLabelFont = new Font("Courier New", Font.BOLD, 12); defaultFont = new Font("Default", Font.PLAIN, 12);
|
PropertiesJTable() { super(); this.setColumnSelectionAllowed( false ); this.setSelectionMode( ListSelectionModel.SINGLE_SELECTION ); propLabelFont = new Font( "Courier New", Font.BOLD, 12 ); defaultFont = new Font( "Default", Font.PLAIN, 12 ); }
|
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/DOMInspector.java/clean/src/java/org/xhtmlrenderer/swing/DOMInspector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
6183,
46,
1388,
1435,
288,
5411,
2240,
5621,
5411,
333,
18,
542,
1494,
6233,
5042,
12,
629,
11272,
5411,
333,
18,
542,
6233,
2309,
12,
987,
6233,
1488,
18,
20184,
67,
1090,
15445,
11272,
5411,
2270,
2224,
5711,
273,
394,
10063,
12,
315,
39,
24775,
1166,
3113,
10063,
18,
38,
11846,
16,
2593,
11272,
5411,
805,
5711,
273,
394,
10063,
12,
315,
1868,
3113,
10063,
18,
26549,
16,
2593,
11272,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
6183,
46,
1388,
1435,
288,
5411,
2240,
5621,
5411,
333,
18,
542,
1494,
6233,
5042,
12,
629,
11272,
5411,
333,
18,
542,
6233,
2309,
12,
987,
6233,
1488,
18,
20184,
67,
1090,
15445,
11272,
5411,
2270,
2224,
5711,
273,
394,
10063,
12,
315,
39,
24775,
1166,
3113,
10063,
18,
38,
11846,
16,
2593,
11272,
5411,
805,
5711,
273,
394,
10063,
12,
315,
1868,
3113,
10063,
18,
26549,
16,
2593,
11272,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Log.debug("MSN: Session timeout for "+msnSession.getRegistration().getUsername());
|
public void sessionTimeout(Session session) { Log.debug("MSN: Session timeout for "+msnSession.getRegistration().getUsername()); }
|
51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/242f6cb8b7c936c14d24a7b7994d1d4b486808f6/MsnSessionListener.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/protocols/msn/MsnSessionListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1339,
2694,
12,
2157,
1339,
13,
288,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1339,
2694,
12,
2157,
1339,
13,
288,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
} else
|
} else
|
private final void quoteFix(StringBuffer buf, String text, String patChars) { int len = text.length(); for (int index = 0; index < len; ++index) { char c = text.charAt(index); if (patChars.indexOf(c) != -1) { buf.append('\''); buf.append(c); buf.append('\''); } else buf.append(c); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/DecimalFormat.java/clean/core/src/classpath/java/java/text/DecimalFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
3862,
8585,
12,
780,
1892,
1681,
16,
514,
977,
16,
514,
9670,
7803,
13,
288,
202,
202,
474,
562,
273,
977,
18,
2469,
5621,
202,
202,
1884,
261,
474,
770,
273,
374,
31,
770,
411,
562,
31,
965,
1615,
13,
288,
1082,
202,
3001,
276,
273,
977,
18,
3001,
861,
12,
1615,
1769,
1082,
202,
430,
261,
16330,
7803,
18,
31806,
12,
71,
13,
480,
300,
21,
13,
288,
9506,
202,
4385,
18,
6923,
2668,
3730,
8284,
9506,
202,
4385,
18,
6923,
12,
71,
1769,
9506,
202,
4385,
18,
6923,
2668,
3730,
8284,
1082,
202,
97,
469,
9506,
202,
4385,
18,
6923,
12,
71,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1152,
727,
918,
3862,
8585,
12,
780,
1892,
1681,
16,
514,
977,
16,
514,
9670,
7803,
13,
288,
202,
202,
474,
562,
273,
977,
18,
2469,
5621,
202,
202,
1884,
261,
474,
770,
273,
374,
31,
770,
411,
562,
31,
965,
1615,
13,
288,
1082,
202,
3001,
276,
273,
977,
18,
3001,
861,
12,
1615,
1769,
1082,
202,
430,
261,
16330,
7803,
18,
31806,
12,
71,
13,
480,
300,
21,
13,
288,
9506,
202,
4385,
18,
6923,
2668,
3730,
8284,
9506,
202,
4385,
18,
6923,
12,
71,
1769,
9506,
202,
4385,
18,
6923,
2668,
3730,
8284,
1082,
202,
97,
469,
9506,
202,
4385,
18,
6923,
12,
71,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100
] |
return eDynamicGet( eFeature, resolve );
|
return super.eGet( featureID, resolve, coreType );
|
public Object eGet( EStructuralFeature eFeature, boolean resolve ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.INSETS__TOP : return new Double( getTop( ) ); case AttributePackage.INSETS__LEFT : return new Double( getLeft( ) ); case AttributePackage.INSETS__BOTTOM : return new Double( getBottom( ) ); case AttributePackage.INSETS__RIGHT : return new Double( getRight( ) ); } return eDynamicGet( eFeature, resolve ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/InsetsImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/InsetsImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
15952,
12,
512,
14372,
4595,
425,
4595,
16,
1250,
2245,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
10462,
294,
9506,
202,
2463,
394,
3698,
12,
13729,
12,
262,
11272,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
10066,
294,
9506,
202,
2463,
394,
3698,
12,
15930,
12,
262,
11272,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
28891,
294,
9506,
202,
2463,
394,
3698,
12,
2882,
352,
3599,
12,
262,
11272,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
11847,
294,
9506,
202,
2463,
394,
3698,
12,
16609,
12,
262,
11272,
202,
202,
97,
202,
202,
2463,
425,
9791,
967,
12,
425,
4595,
16,
2245,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
15952,
12,
512,
14372,
4595,
425,
4595,
16,
1250,
2245,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
10462,
294,
9506,
202,
2463,
394,
3698,
12,
13729,
12,
262,
11272,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
10066,
294,
9506,
202,
2463,
394,
3698,
12,
15930,
12,
262,
11272,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
28891,
294,
9506,
202,
2463,
394,
3698,
12,
2882,
352,
3599,
12,
262,
11272,
1082,
202,
3593,
3601,
2261,
18,
706,
28092,
972,
11847,
294,
9506,
202,
2463,
394,
3698,
12,
16609,
12,
262,
2
] |
e.putAttribute("timestamp",System.currentTimeMillis());
|
e.putAttribute(EDConst.TIME_ATT_NAME,System.currentTimeMillis());
|
public static void absorptionTest1(boolean verbose){ EDBus bus = new EDBus(); final StringBuffer buff = new StringBuffer(); EDNotifiable consumer0 = new EDNotifiable(){ public boolean notify(Notification e){ buff.append("2nd\n"); return false; } }; Filter f0 = new Filter(); f0.addConstraint("timestamp", new AttributeConstraint(Op.ANY,(AttributeValue)null)); bus.subscribe(f0,consumer0,new Integer(2)); EDNotifiable consumer1 = new EDNotifiable(){ public boolean notify(Notification e){ buff.append("1st\n"); return false; } }; Filter f1 = new Filter(); f1.addConstraint("timestamp", new AttributeConstraint(Op.ANY,(AttributeValue)null)); bus.subscribe(f1,consumer1,new Integer(1)); EDNotifiable consumer2 = new EDNotifiable(){ public boolean notify(Notification e){ buff.append("0th\n"); return true; } }; Filter f2 = new Filter(); f2.addConstraint("timestamp", new AttributeConstraint(Op.ANY,(AttributeValue)null)); bus.subscribe(f2,consumer2,new Integer(0)); Notification e = new Notification(); e.putAttribute("Name","Notification1"); e.putAttribute("timestamp",System.currentTimeMillis()); bus.publish(e); bus.shutdown(); if(verbose){ System.out.println(buff); } if(buff.toString().equals("0th\n")){ System.out.println("Absorption Test 1 Passed"); }else{ System.out.println("Absorption Test 1 Failed"); } }
|
14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/9c79b42b47b2d1217db40eb00e25ad8d5a83a73c/EDBusTester.java/buggy/ed/EDBusTester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2417,
280,
375,
4709,
21,
12,
6494,
3988,
15329,
202,
2056,
7086,
5766,
273,
394,
512,
2290,
407,
5621,
202,
6385,
6674,
6139,
273,
394,
6674,
5621,
202,
2056,
1248,
8424,
4765,
20,
273,
394,
15585,
1248,
8424,
1435,
95,
202,
202,
482,
1250,
5066,
12,
4386,
425,
15329,
1082,
565,
6139,
18,
6923,
2932,
22,
4880,
64,
82,
8863,
1082,
565,
327,
629,
31,
202,
202,
97,
9506,
565,
289,
31,
202,
1586,
284,
20,
273,
394,
4008,
5621,
202,
74,
20,
18,
1289,
5806,
2932,
5508,
3113,
9506,
394,
3601,
5806,
12,
3817,
18,
15409,
16,
12,
14942,
13,
2011,
10019,
202,
9274,
18,
9174,
12,
74,
20,
16,
13230,
20,
16,
2704,
2144,
12,
22,
10019,
202,
2056,
1248,
8424,
4765,
21,
273,
394,
15585,
1248,
8424,
1435,
95,
202,
202,
482,
1250,
5066,
12,
4386,
425,
15329,
1082,
565,
6139,
18,
6923,
2932,
21,
334,
64,
82,
8863,
1082,
565,
327,
629,
31,
202,
202,
97,
9506,
565,
289,
31,
202,
1586,
284,
21,
273,
394,
4008,
5621,
202,
74,
21,
18,
1289,
5806,
2932,
5508,
3113,
9506,
394,
3601,
5806,
12,
3817,
18,
15409,
16,
12,
14942,
13,
2011,
10019,
202,
9274,
18,
9174,
12,
74,
21,
16,
13230,
21,
16,
2704,
2144,
12,
21,
10019,
202,
2056,
1248,
8424,
4765,
22,
273,
394,
15585,
1248,
8424,
1435,
95,
202,
202,
482,
1250,
5066,
12,
4386,
425,
15329,
1082,
565,
6139,
18,
6923,
2932,
20,
451,
64,
82,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2417,
280,
375,
4709,
21,
12,
6494,
3988,
15329,
202,
2056,
7086,
5766,
273,
394,
512,
2290,
407,
5621,
202,
6385,
6674,
6139,
273,
394,
6674,
5621,
202,
2056,
1248,
8424,
4765,
20,
273,
394,
15585,
1248,
8424,
1435,
95,
202,
202,
482,
1250,
5066,
12,
4386,
425,
15329,
1082,
565,
6139,
18,
6923,
2932,
22,
4880,
64,
82,
8863,
1082,
565,
327,
629,
31,
202,
202,
97,
9506,
565,
289,
31,
202,
1586,
284,
20,
273,
394,
4008,
5621,
202,
74,
20,
18,
1289,
5806,
2932,
5508,
3113,
9506,
394,
3601,
5806,
12,
3817,
18,
15409,
16,
12,
14942,
13,
2011,
10019,
202,
9274,
18,
9174,
12,
74,
20,
16,
13230,
20,
16,
2704,
2
] |
public void writePropertyObject(CmsProject currentProject, CmsResource resource, CmsProperty property) throws CmsException { property.setStructureValue(CmsSqlManager.escape(property.getStructureValue())); property.setResourceValue(CmsSqlManager.escape(property.getResourceValue())); super.writePropertyObject(currentProject, resource, property); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/03c1b015a3a988f05149f1a874ced5f05f0a6f0a/CmsVfsDriver.java/buggy/src/org/opencms/db/mysql/CmsVfsDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
1396,
921,
12,
4747,
4109,
783,
4109,
16,
7630,
1058,
16,
18505,
1272,
13,
1216,
11228,
288,
3639,
1272,
18,
542,
6999,
620,
12,
4747,
5101,
1318,
18,
6939,
12,
4468,
18,
588,
6999,
620,
1435,
10019,
3639,
1272,
18,
542,
1420,
620,
12,
4747,
5101,
1318,
18,
6939,
12,
4468,
18,
588,
1420,
620,
1435,
10019,
7734,
2240,
18,
2626,
1396,
921,
12,
2972,
4109,
16,
1058,
16,
1272,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
1396,
921,
12,
4747,
4109,
783,
4109,
16,
7630,
1058,
16,
18505,
1272,
13,
1216,
11228,
288,
3639,
1272,
18,
542,
6999,
620,
12,
4747,
5101,
1318,
18,
6939,
12,
4468,
18,
588,
6999,
620,
1435,
10019,
3639,
1272,
18,
542,
1420,
620,
12,
4747,
5101,
1318,
18,
6939,
12,
4468,
18,
588,
1420,
620,
1435,
10019,
7734,
2240,
18,
2626,
1396,
921,
12,
2972,
4109,
16,
1058,
16,
1272,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
{ return context instanceof ModuleExp && ! isPrivate();
|
{ return (getFlag(STATIC_SPECIFIED) || (context instanceof ModuleExp && ((ModuleExp) context).isStatic()));
|
public boolean isStatic() { // This will soon be wrong. FIXME. Probably use isPublic instead. return context instanceof ModuleExp && ! isPrivate(); }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/73fa7364e047c3e01679f49c92d4b27e147d1d07/Declaration.java/clean/gnu/expr/Declaration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
16116,
1435,
225,
288,
368,
1220,
903,
17136,
506,
7194,
18,
225,
9852,
18,
225,
14610,
6906,
999,
19620,
3560,
18,
565,
327,
819,
1276,
5924,
2966,
597,
401,
30911,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16116,
1435,
225,
288,
368,
1220,
903,
17136,
506,
7194,
18,
225,
9852,
18,
225,
14610,
6906,
999,
19620,
3560,
18,
565,
327,
819,
1276,
5924,
2966,
597,
401,
30911,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (e.getPropertyName().equals("editor")) { ComboBoxEditor editor = comboBox.getEditor(); if (editor!=null && editor.getEditorComponent()!=null) { decorate((JTextComponent) editor.getEditorComponent(), document, adaptor); editor.getEditorComponent().addKeyListener(keyListener); }
|
if (!(e.getNewValue() instanceof AutoCompleteComboBoxEditor)) { comboBox.setEditor(new AutoCompleteComboBoxEditor((ComboBoxEditor) e.getNewValue(), stringConverter));
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("editor")) { ComboBoxEditor editor = comboBox.getEditor(); if (editor!=null && editor.getEditorComponent()!=null) { decorate((JTextComponent) editor.getEditorComponent(), document, adaptor); editor.getEditorComponent().addKeyListener(keyListener); } } }
|
47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/c2f0954df9e7b0f9b25f6d89557aef5d494e722c/AutoCompleteDecorator.java/buggy/src/java/org/jdesktop/swingx/autocomplete/AutoCompleteDecorator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
288,
7734,
309,
261,
73,
18,
588,
13073,
7675,
14963,
2932,
9177,
6,
3719,
288,
10792,
1286,
1075,
3514,
6946,
4858,
273,
16778,
3514,
18,
588,
6946,
5621,
10792,
309,
261,
9177,
5,
33,
2011,
597,
4858,
18,
588,
6946,
1841,
1435,
5,
33,
2011,
13,
288,
13491,
15752,
12443,
46,
1528,
1841,
13,
4858,
18,
588,
6946,
1841,
9334,
1668,
16,
9087,
1769,
13491,
4858,
18,
588,
6946,
1841,
7675,
1289,
653,
2223,
12,
856,
2223,
1769,
10792,
289,
7734,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2398,
1071,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
288,
7734,
309,
261,
73,
18,
588,
13073,
7675,
14963,
2932,
9177,
6,
3719,
288,
10792,
1286,
1075,
3514,
6946,
4858,
273,
16778,
3514,
18,
588,
6946,
5621,
10792,
309,
261,
9177,
5,
33,
2011,
597,
4858,
18,
588,
6946,
1841,
1435,
5,
33,
2011,
13,
288,
13491,
15752,
12443,
46,
1528,
1841,
13,
4858,
18,
588,
6946,
1841,
9334,
1668,
16,
9087,
1769,
13491,
4858,
18,
588,
6946,
1841,
7675,
1289,
653,
2223,
12,
856,
2223,
1769,
10792,
289,
7734,
289,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String temp = label9Text; temp = temp.replaceFirst("%s", keinServer); temp = temp.replaceFirst("%d", Integer.toString(ApplejuiceFassade. getInstance(). getAllServer(). size())); label9.setText(temp);
|
StringBuffer temp = new StringBuffer(label9Text); int pos = temp.indexOf("%s"); if (pos != -1){ temp.replace(pos, pos + 2, keinServer); } pos = temp.indexOf("%d"); if (pos != -1){ temp.replace(pos, pos + 2 , Integer.toString(ApplejuiceFassade. getInstance(). getAllServer(). size())); } label9.setText(temp.toString());
|
public void fireLanguageChanged() { try { keinServer = languageSelector.getFirstAttrbuteByTagName(new String[] { "javagui", "mainform", "keinserver"}); netzwerk.setText("<html><font><h2>" + ZeichenErsetzer.korrigiereUmlaute(languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "html7"})) + "</h2></font></html>"); label8.setText("<html><font><h2>" + ZeichenErsetzer.korrigiereUmlaute(languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "html13"})) + "</h2></font></html>"); deinClient.setText("<html><font><h2>" + ZeichenErsetzer.korrigiereUmlaute( languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "html1"})) + "</h2></font></html>"); firewallWarning = ZeichenErsetzer.korrigiereUmlaute( languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "firewallwarning", "caption"})); if (netInfo != null && netInfo.isFirewalled()) { warnungen.setVisible(true); warnungIcon.setVisible(true); label7.setText(firewallWarning); } else { warnungen.setVisible(false); warnungIcon.setVisible(false); label7.setText(""); } label9Text = ZeichenErsetzer.korrigiereUmlaute(languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "html10"})); String temp = label9Text; temp = temp.replaceFirst("%s", keinServer); temp = temp.replaceFirst("%d", Integer.toString(ApplejuiceFassade. getInstance(). getAllServer(). size())); label9.setText(temp); label10Text = ZeichenErsetzer.korrigiereUmlaute(languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "status", "status0"})); temp = label10Text; if (information != null) { temp = temp.replaceFirst("%d", Long.toString(information.getOpenConnections())); } else { temp = temp.replaceFirst("%d", "0"); } label10.setText(temp); label6Text = ZeichenErsetzer.korrigiereUmlaute(languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "status", "status2"})); temp = label6Text; if (netInfo != null) { temp = temp.replaceFirst("%d", netInfo.getAJUserGesamtAsStringWithPoints()); temp = temp.replaceFirst("%d", netInfo.getAJAnzahlDateienAsStringWithPoints()); temp = temp.replaceFirst("%s", netInfo.getAJGesamtShareWithPoints(0)); } else { temp = temp.replaceFirst("%d", "0"); temp = temp.replaceFirst("%d", "0"); temp = temp.replaceFirst("%s", "0 MB"); } label6.setText(temp); warnungen.setText("<html><font><h2>" + ZeichenErsetzer.korrigiereUmlaute( languageSelector. getFirstAttrbuteByTagName(new String[] {"mainform", "html15"})) + "</h2></font></html>"); } catch (Exception e) { if (logger.isEnabledFor(Level.ERROR)) { logger.error("Unbehandelte Exception", e); } } }
|
13641 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13641/aaf56034a48a4f9b3eca119dda240c1f68015d68/StartPanel.java/clean/AJClientGUI/src/de/applejuicenet/client/gui/StartPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4452,
3779,
5033,
1435,
288,
3639,
775,
288,
5411,
12519,
267,
2081,
273,
2653,
4320,
18,
588,
3759,
3843,
70,
624,
10401,
12,
2704,
514,
8526,
288,
7734,
315,
19207,
346,
4881,
3113,
315,
5254,
687,
3113,
315,
4491,
267,
3567,
6,
22938,
5411,
2901,
94,
2051,
79,
18,
542,
1528,
2932,
32,
2620,
4438,
5776,
4438,
76,
22,
2984,
397,
11794,
23587,
1354,
275,
29228,
542,
24355,
18,
79,
280,
86,
360,
77,
822,
57,
781,
69,
624,
12,
4923,
4320,
18,
7734,
7521,
3843,
70,
624,
10401,
12,
2704,
514,
8526,
12528,
5254,
687,
3113,
315,
2620,
27,
6,
31700,
397,
11794,
6823,
76,
22,
4695,
5776,
4695,
2620,
2984,
1769,
5411,
1433,
28,
18,
542,
1528,
2932,
32,
2620,
4438,
5776,
4438,
76,
22,
2984,
397,
21821,
23587,
1354,
275,
29228,
542,
24355,
18,
79,
280,
86,
360,
77,
822,
57,
781,
69,
624,
12,
4923,
4320,
18,
7734,
7521,
3843,
70,
624,
10401,
12,
2704,
514,
8526,
12528,
5254,
687,
3113,
315,
2620,
3437,
6,
31700,
397,
21821,
6823,
76,
22,
4695,
5776,
4695,
2620,
2984,
1769,
5411,
443,
267,
1227,
18,
542,
1528,
2932,
32,
2620,
4438,
5776,
4438,
76,
22,
2984,
397,
1171,
9079,
23587,
1354,
275,
29228,
542,
24355,
18,
79,
280,
86,
360,
77,
822,
57,
781,
69,
624,
12,
7734,
2653,
4320,
18,
7734,
7521,
3843,
70,
624,
10401,
12,
2704,
514,
8526,
12528,
5254,
687,
3113,
315,
2620,
21,
6,
31700,
397,
1171,
9079,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
3779,
5033,
1435,
288,
3639,
775,
288,
5411,
12519,
267,
2081,
273,
2653,
4320,
18,
588,
3759,
3843,
70,
624,
10401,
12,
2704,
514,
8526,
288,
7734,
315,
19207,
346,
4881,
3113,
315,
5254,
687,
3113,
315,
4491,
267,
3567,
6,
22938,
5411,
2901,
94,
2051,
79,
18,
542,
1528,
2932,
32,
2620,
4438,
5776,
4438,
76,
22,
2984,
397,
11794,
23587,
1354,
275,
29228,
542,
24355,
18,
79,
280,
86,
360,
77,
822,
57,
781,
69,
624,
12,
4923,
4320,
18,
7734,
7521,
3843,
70,
624,
10401,
12,
2704,
514,
8526,
12528,
5254,
687,
3113,
315,
2620,
27,
6,
31700,
397,
11794,
6823,
76,
22,
4695,
5776,
4695,
2620,
2984,
1769,
5411,
1433,
28,
2
] |
iv = new IntersectionValue( IntersectionValue.MIN, 0 );
|
iv = IntersectionValue.MIN_VALUE;
|
protected static final IntersectionValue getIntersection( Axis ax ) { IntersectionValue iv = null; AxisOrigin ao = ax.getOrigin( ); if ( ao.getType( ) == IntersectionType.MAX_LITERAL ) { iv = new IntersectionValue( IntersectionValue.MAX, 0 ); } else if ( ao.getType( ) == IntersectionType.MIN_LITERAL ) { iv = new IntersectionValue( IntersectionValue.MIN, 0 ); } else { iv = new IntersectionValue( IntersectionValue.VALUE, ao.getValue( ) ); } return iv; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/536b54a46b25aa99e427a2fbd8217e09108c905a/PlotWithAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWithAxes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
727,
5294,
3464,
620,
336,
23634,
12,
15509,
1740,
262,
202,
95,
202,
202,
23634,
620,
4674,
273,
446,
31,
202,
202,
6558,
7571,
18528,
273,
1740,
18,
588,
7571,
12,
11272,
202,
202,
430,
261,
18528,
18,
588,
559,
12,
262,
422,
5294,
3464,
559,
18,
6694,
67,
23225,
262,
202,
202,
95,
1082,
202,
427,
273,
394,
5294,
3464,
620,
12,
5294,
3464,
620,
18,
6694,
16,
374,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
18528,
18,
588,
559,
12,
262,
422,
5294,
3464,
559,
18,
6236,
67,
23225,
262,
202,
202,
95,
1082,
202,
427,
273,
394,
5294,
3464,
620,
12,
5294,
3464,
620,
18,
6236,
16,
374,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
427,
273,
394,
5294,
3464,
620,
12,
5294,
3464,
620,
18,
4051,
16,
18528,
18,
24805,
12,
262,
11272,
202,
202,
97,
202,
202,
2463,
4674,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
760,
727,
5294,
3464,
620,
336,
23634,
12,
15509,
1740,
262,
202,
95,
202,
202,
23634,
620,
4674,
273,
446,
31,
202,
202,
6558,
7571,
18528,
273,
1740,
18,
588,
7571,
12,
11272,
202,
202,
430,
261,
18528,
18,
588,
559,
12,
262,
422,
5294,
3464,
559,
18,
6694,
67,
23225,
262,
202,
202,
95,
1082,
202,
427,
273,
394,
5294,
3464,
620,
12,
5294,
3464,
620,
18,
6694,
16,
374,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
18528,
18,
588,
559,
12,
262,
422,
5294,
3464,
559,
18,
6236,
67,
23225,
262,
202,
202,
95,
1082,
202,
427,
273,
394,
5294,
3464,
620,
12,
5294,
3464,
620,
18,
6236,
16,
374,
11272,
202,
2
] |
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5)
|
protected void determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
|
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/43c15c42f75ddc945839eb4abd2827b784b47991/DefaultTreeCellEditor.java/buggy/libraries/javalib/javax/swing/tree/DefaultTreeCellEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4199,
2335,
12,
46,
2471,
460,
20,
16,
1033,
460,
21,
16,
1250,
460,
22,
16,
4766,
1250,
460,
23,
16,
1250,
460,
24,
16,
509,
460,
25,
13,
225,
288,
565,
368,
2660,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
918,
4199,
2335,
12,
46,
2471,
460,
20,
16,
1033,
460,
21,
16,
1250,
460,
22,
16,
4766,
1250,
460,
23,
16,
1250,
460,
24,
16,
509,
460,
25,
13,
225,
288,
565,
368,
2660,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testEnvironment() throws Exception { EnvironmentHelper helper = new EnvironmentHelper(); Properties p = helper.getEnvProperties();
|
public void testEnvironment() throws Exception { Properties p = EnvironmentHelper.getEnvironment();
|
public void testEnvironment() throws Exception { EnvironmentHelper helper = new EnvironmentHelper(); Properties p = helper.getEnvProperties(); assertNotNull(p); p.list(System.out); assertNotNull(p.getProperty("JAVA_HOME")); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/e21c5e0fe0a936abb35f2c75e686b5f73c5e977e/EnvironmentHelperTestCase.java/clean/mule/src/test/java/org/mule/test/util/EnvironmentHelperTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5494,
1435,
1216,
1185,
288,
3639,
7518,
2276,
4222,
273,
394,
7518,
2276,
5621,
3639,
6183,
293,
273,
4222,
18,
588,
3491,
2297,
5621,
3639,
25395,
12,
84,
1769,
3639,
293,
18,
1098,
12,
3163,
18,
659,
1769,
3639,
25395,
12,
84,
18,
588,
1396,
2932,
27264,
67,
14209,
7923,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5494,
1435,
1216,
1185,
288,
3639,
7518,
2276,
4222,
273,
394,
7518,
2276,
5621,
3639,
6183,
293,
273,
4222,
18,
588,
3491,
2297,
5621,
3639,
25395,
12,
84,
1769,
3639,
293,
18,
1098,
12,
3163,
18,
659,
1769,
3639,
25395,
12,
84,
18,
588,
1396,
2932,
27264,
67,
14209,
7923,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String tagName = tag.getName().trim(); String value = Strings.removeFormattingCharacters(tag.getValue().trim()); if (name.equals(tagName) && m_registeredAnnotations.containsKey(tagName)) { Class proxyClass = (Class) m_registeredAnnotations.get(tagName); Annotation annotation; try { annotation = (Annotation) proxyClass.newInstance(); } catch (Exception e) { throw new WrappedRuntimeException(e); } if (annotation.isTyped()) { StringBuffer buf = new StringBuffer(); buf.append('@'); buf.append(name); buf.append('('); buf.append(value); buf.append(')'); annotation.setValue(buf.toString()); } else { annotation.setValue(value); } annotation.setName(name); annotations.add(annotation);
|
RawAnnotation rawAnnotation = getRawAnnotation(name, tag); if (rawAnnotation != null) { annotations.add(instantiateAnnotation(rawAnnotation));
|
public Annotation[] getAnnotations(final String name, final JavaClass clazz) { DocletTag[] tags = clazz.getTags(); List annotations = new ArrayList(); for (int i = 0; i < tags.length; i++) { DocletTag tag = tags[i]; String tagName = tag.getName().trim(); String value = Strings.removeFormattingCharacters(tag.getValue().trim()); if (name.equals(tagName) && m_registeredAnnotations.containsKey(tagName)) { Class proxyClass = (Class) m_registeredAnnotations.get(tagName); Annotation annotation; try { annotation = (Annotation) proxyClass.newInstance(); } catch (Exception e) { throw new WrappedRuntimeException(e); } if (annotation.isTyped()) { StringBuffer buf = new StringBuffer(); buf.append('@'); buf.append(name); buf.append('('); buf.append(value); buf.append(')'); annotation.setValue(buf.toString()); } else { annotation.setValue(value); } annotation.setName(name); annotations.add(annotation); } } return (Annotation[]) annotations.toArray(new Annotation[] {}); }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/e8ce9c3ca6da98e2afca9082b04c7ed14168746b/AnnotationManager.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/annotation/AnnotationManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6090,
8526,
23656,
12,
6385,
514,
508,
16,
727,
29491,
4003,
13,
288,
3639,
3521,
1810,
1805,
8526,
2342,
273,
4003,
18,
588,
3453,
5621,
3639,
987,
5617,
273,
394,
2407,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2342,
18,
2469,
31,
277,
27245,
288,
5411,
3521,
1810,
1805,
1047,
273,
2342,
63,
77,
15533,
5411,
514,
7196,
273,
1047,
18,
17994,
7675,
5290,
5621,
5411,
514,
460,
273,
8139,
18,
4479,
23974,
11600,
12,
2692,
18,
24805,
7675,
5290,
10663,
5411,
309,
261,
529,
18,
14963,
12,
2692,
461,
13,
597,
312,
67,
14327,
5655,
18,
12298,
653,
12,
2692,
461,
3719,
288,
7734,
1659,
2889,
797,
273,
261,
797,
13,
312,
67,
14327,
5655,
18,
588,
12,
2692,
461,
1769,
7734,
6090,
3204,
31,
7734,
775,
288,
10792,
3204,
273,
261,
3257,
13,
2889,
797,
18,
2704,
1442,
5621,
7734,
289,
1044,
261,
503,
425,
13,
288,
10792,
604,
394,
24506,
11949,
12,
73,
1769,
7734,
289,
7734,
309,
261,
11495,
18,
291,
11985,
10756,
288,
10792,
6674,
1681,
273,
394,
6674,
5621,
10792,
1681,
18,
6923,
2668,
36,
8284,
10792,
1681,
18,
6923,
12,
529,
1769,
10792,
1681,
18,
6923,
2668,
2668,
1769,
10792,
1681,
18,
6923,
12,
1132,
1769,
10792,
1681,
18,
6923,
2668,
2506,
1769,
10792,
3204,
18,
542,
620,
12,
4385,
18,
10492,
10663,
7734,
289,
469,
288,
10792,
3204,
18,
542,
620,
12,
1132,
1769,
7734,
289,
7734,
3204,
18,
542,
461,
12,
529,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6090,
8526,
23656,
12,
6385,
514,
508,
16,
727,
29491,
4003,
13,
288,
3639,
3521,
1810,
1805,
8526,
2342,
273,
4003,
18,
588,
3453,
5621,
3639,
987,
5617,
273,
394,
2407,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2342,
18,
2469,
31,
277,
27245,
288,
5411,
3521,
1810,
1805,
1047,
273,
2342,
63,
77,
15533,
5411,
514,
7196,
273,
1047,
18,
17994,
7675,
5290,
5621,
5411,
514,
460,
273,
8139,
18,
4479,
23974,
11600,
12,
2692,
18,
24805,
7675,
5290,
10663,
5411,
309,
261,
529,
18,
14963,
12,
2692,
461,
13,
597,
312,
67,
14327,
5655,
18,
12298,
653,
12,
2692,
461,
3719,
288,
7734,
1659,
2889,
797,
273,
261,
797,
13,
312,
2
] |
String resourceId = ParamUtil.getString(req, "resourceId"); String assignmentType = ParamUtil.getString(req, "assignmentType"); String[] actionIds = StringUtil.split( ParamUtil.getString(req, "actionIds")); int actionPos = ParamUtil.getInteger(req, "actionPos"); String[] addUserIds = StringUtil.split( ParamUtil.getString(req, "addUserIds")); String[] removeUserIds = StringUtil.split( ParamUtil.getString(req, "removeUserIds")); if (assignmentType.equals("individual")) { String actionId = actionIds[actionPos]; actionIds = new String[] {actionId}; } for (int i = 0; i < addUserIds.length; i++) { PermissionServiceUtil.setUserPermissions( addUserIds[i], actionIds, resourceId); } for (int i = 0; i < removeUserIds.length; i++) { PermissionServiceUtil.unsetUserPermissions( removeUserIds[i], actionIds, resourceId); } String redirect = ParamUtil.getString(req, "redirect"); redirect += "&assignmentType=" + assignmentType + "&resourceId=" + resourceId; if (assignmentType.equals("individual") && redirect.indexOf("actionPos=" + actionPos + "&") != -1) { SessionMessages.add(req, "request_processed"); } res.sendRedirect(redirect);
|
PermissionServiceUtil.setUserPermissions(userId, actionIds, resourceId);
|
protected void updateUserPermissions(ActionRequest req, ActionResponse res) throws Exception { String resourceId = ParamUtil.getString(req, "resourceId"); String assignmentType = ParamUtil.getString(req, "assignmentType"); String[] actionIds = StringUtil.split( ParamUtil.getString(req, "actionIds")); int actionPos = ParamUtil.getInteger(req, "actionPos"); String[] addUserIds = StringUtil.split( ParamUtil.getString(req, "addUserIds")); String[] removeUserIds = StringUtil.split( ParamUtil.getString(req, "removeUserIds")); if (assignmentType.equals("individual")) { String actionId = actionIds[actionPos]; actionIds = new String[] {actionId}; } for (int i = 0; i < addUserIds.length; i++) { PermissionServiceUtil.setUserPermissions( addUserIds[i], actionIds, resourceId); } for (int i = 0; i < removeUserIds.length; i++) { PermissionServiceUtil.unsetUserPermissions( removeUserIds[i], actionIds, resourceId); } String redirect = ParamUtil.getString(req, "redirect"); redirect += "&assignmentType=" + assignmentType + "&resourceId=" + resourceId; if (assignmentType.equals("individual") && redirect.indexOf("actionPos=" + actionPos + "&") != -1) { // Show message only if the user stayed on the same page SessionMessages.add(req, "request_processed"); } res.sendRedirect(redirect); }
|
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/e1cab037a8cdaa75dc717f74b6f3b5d95492c7f6/EditUserPermissionsAction.java/clean/portal-ejb/src/com/liferay/portlet/communities/action/EditUserPermissionsAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
28213,
6521,
12,
1803,
691,
1111,
16,
4382,
1064,
400,
13,
202,
202,
15069,
1185,
288,
202,
202,
780,
15035,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
315,
3146,
548,
8863,
202,
202,
780,
6661,
559,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
315,
12960,
559,
8863,
202,
202,
780,
8526,
1301,
2673,
273,
14205,
18,
4939,
12,
1082,
202,
786,
1304,
18,
588,
780,
12,
3658,
16,
315,
1128,
2673,
7923,
1769,
202,
202,
474,
1301,
1616,
273,
3014,
1304,
18,
588,
4522,
12,
3658,
16,
315,
1128,
1616,
8863,
202,
202,
780,
8526,
527,
1299,
2673,
273,
14205,
18,
4939,
12,
1082,
202,
786,
1304,
18,
588,
780,
12,
3658,
16,
315,
1289,
1299,
2673,
7923,
1769,
202,
202,
780,
8526,
1206,
1299,
2673,
273,
14205,
18,
4939,
12,
1082,
202,
786,
1304,
18,
588,
780,
12,
3658,
16,
315,
4479,
1299,
2673,
7923,
1769,
202,
202,
430,
261,
12960,
559,
18,
14963,
2932,
22032,
5557,
6,
3719,
288,
1082,
202,
780,
1301,
548,
273,
1301,
2673,
63,
1128,
1616,
15533,
1082,
202,
1128,
2673,
273,
394,
514,
8526,
288,
1128,
548,
20451,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
527,
1299,
2673,
18,
2469,
31,
277,
27245,
288,
1082,
202,
5041,
1179,
1304,
18,
542,
1299,
6521,
12,
9506,
202,
1289,
1299,
2673,
63,
77,
6487,
1301,
2673,
16,
15035,
1769,
202,
202,
97,
202,
202,
1884,
261,
474,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28213,
6521,
12,
1803,
691,
1111,
16,
4382,
1064,
400,
13,
202,
202,
15069,
1185,
288,
202,
202,
780,
15035,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
315,
3146,
548,
8863,
202,
202,
780,
6661,
559,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
315,
12960,
559,
8863,
202,
202,
780,
8526,
1301,
2673,
273,
14205,
18,
4939,
12,
1082,
202,
786,
1304,
18,
588,
780,
12,
3658,
16,
315,
1128,
2673,
7923,
1769,
202,
202,
474,
1301,
1616,
273,
3014,
1304,
18,
588,
4522,
12,
3658,
16,
315,
1128,
1616,
8863,
202,
202,
780,
8526,
527,
1299,
2673,
273,
14205,
18,
4939,
12,
1082,
202,
786,
1304,
18,
588,
780,
12,
2
] |
value = calendar.get(Calendar.WEEK_OF_YEAR) - 1; if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); calendar.setFirstDayOfWeek(Calendar.SUNDAY);
|
formatWeekYear(Calendar.SUNDAY, toAppendTo);
|
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { case FORMAT_STRING: toAppendTo.append(token.getData()); break; case FORMAT_WEEK_LONG: toAppendTo.append(formatSymbols.getWeekdays()[calendar.get(Calendar.DAY_OF_WEEK)]); break; case FORMAT_WEEK_SHORT: toAppendTo.append(formatSymbols.getShortWeekdays()[calendar.get(Calendar.DAY_OF_WEEK)]); break; case FORMAT_MONTH_LONG: toAppendTo.append(formatSymbols.getMonths()[calendar.get(Calendar.MONTH)]); break; case FORMAT_MONTH_SHORT: toAppendTo.append(formatSymbols.getShortMonths()[calendar.get(Calendar.MONTH)]); break; case FORMAT_DAY: int value = calendar.get(Calendar.DAY_OF_MONTH); if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_HOUR: value = calendar.get(Calendar.HOUR_OF_DAY); if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_HOUR_M: value = calendar.get(Calendar.HOUR); if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_DAY_YEAR: value = calendar.get(Calendar.DAY_OF_YEAR); if (value < 10) { toAppendTo.append("00"); } else if (value < 100) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_MINUTES: value = calendar.get(Calendar.MINUTE); if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_MONTH: value = calendar.get(Calendar.MONTH) + 1; if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_MERIDIAN: if (calendar.get(Calendar.AM_PM) == Calendar.AM) { toAppendTo.append("AM"); } else { toAppendTo.append("PM"); } break; case FORMAT_SECONDS: value = calendar.get(Calendar.SECOND); if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_WEEK_YEAR_M: // GregorianCalendar uses Sunday by default; switch to Monday and back calendar.setFirstDayOfWeek(Calendar.MONDAY); // intentional fall-through case FORMAT_WEEK_YEAR_S: // Ruby uses zero-based weeks value = calendar.get(Calendar.WEEK_OF_YEAR) - 1; if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); // to clear MONDAY from above calendar.setFirstDayOfWeek(Calendar.SUNDAY); break; case FORMAT_DAY_WEEK: value = calendar.get(Calendar.DAY_OF_WEEK) - 1; toAppendTo.append(value); break; case FORMAT_YEAR_LONG: value = calendar.get(Calendar.YEAR); if (value < 10) { toAppendTo.append("000"); } else if (value < 100) { toAppendTo.append("00"); } else if (value < 1000) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_YEAR_SHORT: value = calendar.get(Calendar.YEAR) % 100; if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_ZONE_OFF: value = calendar.getTimeZone().getOffset(calendar.getTimeInMillis()); if (value < 0) { toAppendTo.append('+'); } else { toAppendTo.append('-'); } value = Math.abs(value); if (value / 3600000 < 10) { toAppendTo.append('0'); } toAppendTo.append(value / 3600000); value = value % 3600000 / 60000; if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); break; case FORMAT_ZONE_ID: toAppendTo.append(calendar.getTimeZone().getDisplayName(calendar.get(Calendar.DST_OFFSET) != 0, TimeZone.SHORT)); break; } } return toAppendTo; }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/e0ef4a00b8bf2b12e8991a00385ac0a14c9bb461/RubyDateFormat.java/buggy/src/org/jruby/util/RubyDateFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6674,
740,
12,
1626,
1509,
16,
6674,
358,
5736,
774,
16,
2286,
2555,
652,
2555,
13,
288,
3639,
5686,
18,
542,
950,
12,
712,
1769,
7734,
4498,
1400,
273,
7743,
3234,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
3155,
1147,
273,
261,
1345,
13,
1400,
18,
4285,
5621,
13491,
1620,
261,
2316,
18,
588,
1630,
10756,
288,
7734,
648,
10449,
67,
5804,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2316,
18,
588,
751,
10663,
10792,
898,
31,
7734,
648,
10449,
67,
20274,
67,
14639,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2139,
14821,
18,
588,
6630,
9810,
1435,
63,
11650,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
20274,
13,
19226,
10792,
898,
31,
7734,
648,
10449,
67,
20274,
67,
15993,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2139,
14821,
18,
588,
4897,
6630,
9810,
1435,
63,
11650,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
20274,
13,
19226,
10792,
898,
31,
7734,
648,
10449,
67,
13942,
67,
14639,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2139,
14821,
18,
588,
19749,
1435,
63,
11650,
18,
588,
12,
7335,
18,
13942,
13,
19226,
10792,
898,
31,
7734,
648,
10449,
67,
13942,
67,
15993,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2139,
14821,
18,
588,
4897,
19749,
1435,
63,
11650,
18,
588,
12,
7335,
18,
13942,
13,
19226,
10792,
898,
31,
7734,
648,
10449,
67,
10339,
30,
10792,
509,
460,
273,
5686,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6674,
740,
12,
1626,
1509,
16,
6674,
358,
5736,
774,
16,
2286,
2555,
652,
2555,
13,
288,
3639,
5686,
18,
542,
950,
12,
712,
1769,
7734,
4498,
1400,
273,
7743,
3234,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
3155,
1147,
273,
261,
1345,
13,
1400,
18,
4285,
5621,
13491,
1620,
261,
2316,
18,
588,
1630,
10756,
288,
7734,
648,
10449,
67,
5804,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2316,
18,
588,
751,
10663,
10792,
898,
31,
7734,
648,
10449,
67,
20274,
67,
14639,
30,
10792,
358,
5736,
774,
18,
6923,
12,
2139,
14821,
18,
588,
6630,
9810,
1435,
63,
11650,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
2
] |
Driver.debug("nullsAreSortedAtStart false");
|
if (Driver.logDebug) Driver.debug("nullsAreSortedAtStart false");
|
public boolean nullsAreSortedAtStart() throws SQLException { Driver.debug("nullsAreSortedAtStart false"); return false; }
|
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27778,
4704,
11739,
861,
1685,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
2011,
87,
4704,
11739,
861,
1685,
629,
8863,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
27778,
4704,
11739,
861,
1685,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
2011,
87,
4704,
11739,
861,
1685,
629,
8863,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} VM._assert(false, "unexpected receiver");
|
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcodes.reset(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcodes.index(); int code = bcodes.nextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " " + code + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; //-#if RVM_WITH_OSR lastOsrBarrier = null; //-#endif switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcodes.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcodes.getShortValue())); break; case JBC_ldc: push(getConstantOperand(bcodes.getConstantIndex())); break; case JBC_ldc_w: push(getConstantOperand(bcodes.getWideConstantIndex())); break; case JBC_ldc2_w: pushDual(getConstantOperand(bcodes.getWideConstantIndex())); break; case JBC_iload: s = do_iload(bcodes.getLocalNumber()); break; case JBC_lload: s = do_lload(bcodes.getLocalNumber()); break; case JBC_fload: s = do_fload(bcodes.getLocalNumber()); break; case JBC_dload: s = do_dload(bcodes.getLocalNumber()); break; case JBC_aload: s = do_aload(bcodes.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.IntArray); s = _aloadHelper(INT_ALOAD, ref, index, VM_TypeReference.Int); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.LongArray); s = _aloadHelper(LONG_ALOAD, ref, index, VM_TypeReference.Long); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.FloatArray); s = _aloadHelper(FLOAT_ALOAD, ref, index, VM_TypeReference.Float); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.DoubleArray); s = _aloadHelper(DOUBLE_ALOAD, ref, index, VM_TypeReference.Double); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getRefTypeOf(ref).getArrayElementType(); if (VM.VerifyAssertions) VM._assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM._assert(type == VM_TypeReference.ByteArray || type == VM_TypeReference.BooleanArray); } if (type == VM_TypeReference.ByteArray) s = _aloadHelper(BYTE_ALOAD, ref, index, VM_TypeReference.Byte); else s = _aloadHelper(UBYTE_ALOAD, ref, index, VM_TypeReference.Boolean); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.CharArray); s = _aloadHelper(USHORT_ALOAD, ref, index, VM_TypeReference.Char); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.ShortArray); s = _aloadHelper(SHORT_ALOAD, ref, index, VM_TypeReference.Short); } break; case JBC_istore: s = do_store(bcodes.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcodes.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcodes.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcodes.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcodes.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.IntArray); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Int), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.LongArray); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Long), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.FloatArray); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Float), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.DoubleArray); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Double), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getRefTypeOf(ref).getArrayElementType(); if (VM.VerifyAssertions) VM._assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM._assert(type == VM_TypeReference.ByteArray || type == VM_TypeReference.BooleanArray); } if (type == VM_TypeReference.ByteArray) type = VM_TypeReference.Byte; else type = VM_TypeReference.Boolean; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.CharArray); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Char), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.ShortArray); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Short), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, VM_TypeReference.Int); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, VM_TypeReference.Long); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, VM_TypeReference.Float); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, VM_TypeReference.Double); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, VM_TypeReference.Int); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, VM_TypeReference.Long); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, VM_TypeReference.Float); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, VM_TypeReference.Double); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, VM_TypeReference.Int); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, VM_TypeReference.Long); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, VM_TypeReference.Float); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, VM_TypeReference.Double); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), VM_TypeReference.Int); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), VM_TypeReference.Long); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, VM_TypeReference.Float); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, VM_TypeReference.Double); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), VM_TypeReference.Int); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), VM_TypeReference.Long); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, VM_TypeReference.Float); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_TypeReference.Double); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), VM_TypeReference.Int); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), VM_TypeReference.Long); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), VM_TypeReference.Float); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), VM_TypeReference.Double); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, VM_TypeReference.Int); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, VM_TypeReference.Long); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, VM_TypeReference.Int); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, VM_TypeReference.Long); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, VM_TypeReference.Int); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, VM_TypeReference.Long); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, VM_TypeReference.Int); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, VM_TypeReference.Long); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, VM_TypeReference.Int); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, VM_TypeReference.Long); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, VM_TypeReference.Int); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, VM_TypeReference.Long); } break; case JBC_iinc: { int index = bcodes.getLocalNumber(); s = do_iinc(index, bcodes.getIncrement()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), VM_TypeReference.Long); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), VM_TypeReference.Float); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), VM_TypeReference.Double); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), VM_TypeReference.Int); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), VM_TypeReference.Float); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), VM_TypeReference.Double); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), VM_TypeReference.Int); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), VM_TypeReference.Long); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), VM_TypeReference.Double); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), VM_TypeReference.Int); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), VM_TypeReference.Long); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), VM_TypeReference.Float); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), VM_TypeReference.Byte); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), VM_TypeReference.Char); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), VM_TypeReference.Short); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, VM_TypeReference.Int); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, VM_TypeReference.Int); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, VM_TypeReference.Int); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, VM_TypeReference.Int); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, VM_TypeReference.Int); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcodes.getBranchOffset(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcodes.getBranchOffset()); break; case JBC_ret: s = _retHelper(bcodes.getLocalNumber()); break; case JBC_tableswitch: { bcodes.alignSwitch(); OPT_Operand op0 = popInt(); int defaultoff = bcodes.getDefaultSwitchOffset(); int low = bcodes.getLowSwitchValue(); int high = bcodes.getHighSwitchValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int match = bcodes.computeTableSwitchOffset(v1, low, high); int offset = match == 0 ? defaultoff : match; bcodes.skipTableSwitchOffsets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), null, number*2); for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcodes.getTableSwitchOffset(i))); } bcodes.skipTableSwitchOffsets(number); // Set branch probabilities//-#if RVM_WITH_OSR VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex-bciAdjustment);//-#else VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex);//-#endif if (sp == null) { float approxProb = 1.0f/(float)(number+1); // number targets + default TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_lookupswitch: { bcodes.alignSwitch(); OPT_Operand op0 = popInt(); int defaultoff = bcodes.getDefaultSwitchOffset(); int numpairs = bcodes.getSwitchLength(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int match = bcodes.computeLookupSwitchOffset(v1, numpairs); int offset = match == 0 ? defaultoff : match; bcodes.skipLookupSwitchPairs(numpairs); if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } // Construct switch s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), null, numpairs*3); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand(bcodes.getLookupSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcodes.getLookupSwitchOffset(i))); } bcodes.skipLookupSwitchPairs(numpairs); // Set branch probabilities//-#if RVM_WITH_OSR VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex-bciAdjustment);//-#else VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex);//-#endif if (sp == null) { float approxProb = 1.0f/(float)(numpairs+1); // num targets + default LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_TypeReference retType = op0.getType(); if (retType.isWordType()) { VM._assert(gc.method.getReturnType().isWordType()); } else { // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.findCommonSuperclass if (retType != VM_TypeReference.JavaLangObject) { assertIsAssignable(gc.method.getReturnType(), retType); } } } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeStaticFieldRef(ref); OPT_Operand offsetOp; VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_IntConstantOperand(field.getOffset()); // use results of field analysis to refine type of result VM_Type ft = fieldType.peekResolvedType(); if (ft != null && ft.isClassType()) { VM_TypeReference concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } // optimization: // if the field is final and either initialized or // in the bootimage, then get the value at compile time. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage())) { try { if (fieldType.isPrimitiveType()) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); break; } else { VM_TypeReference rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_TypeReference.JavaLangString) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } } s = GetStatic.create(GETSTATIC, t, offsetOp, fieldOp); push(t.copyD2U(), fieldType); } break; case JBC_putstatic: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeStaticFieldRef(ref); OPT_Operand offsetOp; if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_IntConstantOperand(field.getOffset()); } VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_Operand r = pop(fieldType); s = PutStatic.create(PUTSTATIC, r, offsetOp, fieldOp); } break; case JBC_getfield: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeInstanceFieldRef(ref); OPT_Operand offsetOp; VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_IntConstantOperand(field.getOffset()); // use results of field analysis to refine type. VM_Type ft = fieldType.peekResolvedType(); if (ft != null && ft.isClassType()) { VM_TypeReference concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } } OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; s = GetField.create(GETFIELD, t, op1, offsetOp, fieldOp, getCurrentGuard()); push(t.copyD2U(), fieldType); } break; case JBC_putfield: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeInstanceFieldRef(ref); VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_Operand offsetOp; if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_IntConstantOperand(field.getOffset()); } OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; s = PutField.create(PUTFIELD, val, obj, offsetOp, fieldOp, getCurrentGuard()); } break; case JBC_invokevirtual: { VM_MethodReference ref = bcodes.getMethodReference(); // See if this is a magic method (Address, Word, etc.) // If it is, generate the inline code and we are done. if (ref.getType().isMagicType()) { boolean generated = OPT_GenerateMagic.generateMagic(this, gc, ref); if (generated) break; // all done. } // A non-magical invokevirtual. Create call instruction. boolean unresolved = ref.needsDynamicLink(bcodes.method()); VM_Method target = ref.peekResolvedMethod(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(ref, target); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) { lastOsrBarrier = _createOsrBarrier(); } //-#endif s = _callHelper(ref, methOp); // Handle possibility of dynamic linking. Must be done before null_check! if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { if (VM.VerifyAssertions) VM._assert(target != null); Call.setAddress(s, new OPT_IntConstantOperand(target.getOffset())); } // null check receiver OPT_Operand receiver = Call.getParam(s, 0); clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Use compile time type of receiver to try reduce the number of targets. // If we succeed, we'll update meth and s's method operand. boolean isExtant = false; boolean isPreciseType = false; VM_TypeReference tr = null; if (receiver.isRegister()) { OPT_RegisterOperand rop = receiver.asRegister(); isExtant = rop.isExtant(); isPreciseType = rop.isPreciseType(); tr = rop.type; } else if (receiver.isStringConstant()) { isExtant = true; isPreciseType = true; tr = VM_TypeReference.JavaLangString; } else if (VM.VerifyAssertions) { if (isPreciseType && target != null) { methOp.refine(target, true); } VM._assert(false, "unexpected receiver"); } VM_Type type = tr.peekResolvedType(); if (type != null && type.isResolved() && type.isClassType() && target != null && type != target.getDeclaringClass()) { VM_Method vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), ref); if (vmeth != null && vmeth != target) { methOp.refine(vmeth, isPreciseType); } } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, isExtant), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { VM_MethodReference ref = bcodes.getMethodReference(); VM_Method target = ref.resolveInvokeSpecial(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.SPECIAL(ref, target)); // Handle possibility of dynamic linking. Must be done before null_check! // NOTE: different definition of unresolved due to semantics of invokespecial. if (target == null) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_IntConstantOperand(target.getOffset())); } // null check receiver OPT_Operand receiver = Call.getParam(s, 0); clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Consider inlining it. if (maybeInlineMethod(shouldInline(s, false), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { VM_MethodReference ref = bcodes.getMethodReference(); // See if this is a magic method (VM_Magic, Address, Word, etc.) // If it is, generate the inline code and we are done. if (ref.getType().isMagicType()) { boolean generated = OPT_GenerateMagic.generateMagic(this, gc, ref); if (generated) break; } // A non-magical invokestatic. Create call instruction. boolean unresolved = ref.needsDynamicLink(bcodes.method()); VM_Method target = ref.peekResolvedMethod(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.STATIC(ref, target)); // Handle possibility of dynamic linking. if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_IntConstantOperand(target.getOffset())); } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, false), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { VM_MethodReference ref = bcodes.getMethodReference(); bcodes.alignInvokeInterface(); VM_Method resolvedMethod = null; resolvedMethod = ref.peekInterfaceMethod(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.INTERFACE(ref, resolvedMethod)); OPT_RegisterOperand receiver = Call.getParam(s, 0).asRegister(); VM_Class receiverType = (VM_Class)receiver.type.peekResolvedType(); // null check on this parameter of call // TODO: Strictly speaking we need to do dynamic linking of the interface // type BEFORE we do the null check. FIXME. clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // Depending on the implementation of interface dispatching // we are using, we may have to make this test explicit // in the calling sequence if we can't prove at compile time // that it is not needed. if (requiresImplementsTest) { if (resolvedMethod == null) { // Sigh. Can't even resolve the reference to figure out what interface // method we are trying to call. Therefore we must make generate a call // to an out-of-line typechecking routine to handle it at runtime. OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, receiver.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; VM_Method target = VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod; OPT_Instruction callCheck = Call.create2(CALL, null, new OPT_IntConstantOperand(target.getOffset()), OPT_MethodOperand.STATIC(target), new OPT_IntConstantOperand(ref.getId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test rectifyStateWithErrorHandler(); // Can raise incompatible class change error. } else { // We know what interface method the program wants to invoke. // Attempt to avoid inserting the type check by seeing if the // known static type of the receiver implements the desired interface. VM_Type interfaceType = resolvedMethod.getDeclaringClass(); if (receiverType != null && receiverType.isResolved() && !receiverType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.includesType(interfaceType.getTypeRef(), receiverType.getTypeRef()); requiresImplementsTest = doesImplement != YES; } } } // Attempt to resolve the interface call to a particular virtual method. // This is independent of whether or not the static type of the receiver is // known to implement the interface and it is not that case that being able // to prove one implies the other. VM_Method vmeth = null; if (receiverType != null && receiverType.isInitialized() && !receiverType.isInterface()) { vmeth = OPT_ClassLoaderProxy.lookupMethod(receiverType, ref); } if (vmeth != null) { VM_MethodReference vmethRef = vmeth.getMemberRef().asMethodReference(); // We're going to virtualize the call. Must inject the // DTC to ensure the receiver implements the interface if // requiresImplementsTest is still true. // Note that at this point requiresImplementsTest => resolvedMethod != null if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, receiver.copyU2U(), makeTypeOperand(resolvedMethod.getDeclaringClass()), getCurrentGuard())); rectifyStateWithErrorHandler(); // Can raise incompatible class change error. } OPT_MethodOperand mop = OPT_MethodOperand.VIRTUAL(vmethRef, vmeth); if (receiver.isPreciseType()) { mop.refine(vmeth, true); } Call.setMethod(s, mop); boolean unresolved = vmethRef.needsDynamicLink(bcodes.method()); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempInt(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_IntConstantOperand(vmeth.getOffset())); } // Attempt to inline virtualized call. if (maybeInlineMethod(shouldInline(s, receiver.isExtant()), s)) { return; } } else { // We can't virtualize the call; // try to inline a predicted target for the interface invocation // inline code will include DTC to ensure receiver implements the interface. if (resolvedMethod != null && maybeInlineMethod(shouldInline(s, false), s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, receiver.copyU2U(), makeTypeOperand(resolvedMethod.getDeclaringClass()), getCurrentGuard())); // don't have to rectify with error handlers; rectify call below subsusmes. } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { VM_TypeReference klass = bcodes.getTypeReference(); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; OPT_TypeOperand klassOp; VM_Class klassType = (VM_Class)klass.peekResolvedType(); if (klassType != null && (klassType.isInitialized() || klassType.isInBootImage())) { klassOp = makeTypeOperand(klassType); operator = NEW; } else { operator = NEW_UNRESOLVED; klassOp = makeTypeOperand(klass); } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { VM_Type array = bcodes.getPrimitiveArrayType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array.getTypeRef()); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangNegativeArraySizeException); } break; case JBC_anewarray: { VM_TypeReference elementTypeRef = bcodes.getTypeReference(); s = generateAnewarray(elementTypeRef); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM._assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_TypeReference type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.findCommonSuperclass if (type != VM_TypeReference.JavaLangObject) assertIsAssignable(VM_TypeReference.JavaLangThrowable, type); } if (!gc.method.isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { VM_TypeReference typeRef = bcodes.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_Operand op2 = pop(); if (typeRef.isWordType()) { op2 = op2.copy(); if (op2 instanceof OPT_RegisterOperand) { ((OPT_RegisterOperand)op2).type = typeRef; } push(op2); if (DBG_CF) db("skipped gen of checkcast to word type "+typeRef); break; } if (VM.VerifyAssertions) VM._assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_TypeReference type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } if (!gc.options.NO_CHECKCAST) { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, op2, makeTypeOperand(typeRef)); } else { OPT_TypeOperand typeOp = makeTypeOperand(typeRef.peekResolvedType()); if (isNonNull(op2)) { s = TypeCheck.create(CHECKCAST_NOTNULL, op2, typeOp, getGuard(op2)); } else { s = TypeCheck.create(CHECKCAST, op2, typeOp); } } } op2 = op2.copy(); if (op2 instanceof OPT_RegisterOperand) { ((OPT_RegisterOperand)op2).type = typeRef; } push(op2); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangClassCastException); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { VM_TypeReference typeRef = bcodes.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM._assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_TypeReference type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.includesType(typeRef, type); if (answer == YES && isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db(op2 + " instanceof " + typeRef + " is always true "); break; } else if (answer == NO) { if (DBG_CF) db(op2 + " instanceof " + typeRef + " is always false "); push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, makeTypeOperand(typeRef), op2); } else { OPT_TypeOperand typeOp = makeTypeOperand(typeRef.peekResolvedType()); if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_monitorenter: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; if (VM.VerifyAssertions) VM._assert(op0.isRef()); if (gc.options.MONITOR_NOP) { s = null; } else { s = MonitorOp.create(MONITORENTER, op0, getCurrentGuard()); } } break; case JBC_monitorexit: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; if (gc.options.MONITOR_NOP) { s = null; } else { s = MonitorOp.create(MONITOREXIT, op0, getCurrentGuard()); } rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangIllegalMonitorStateException); } break; case JBC_wide: { int widecode = bcodes.getWideOpcode(); int index = bcodes.getWideLocalNumber(); switch (widecode) { case JBC_iload: s = do_iload(index); break; case JBC_lload: s = do_lload(index); break; case JBC_fload: s = do_fload(index); break; case JBC_dload: s = do_dload(index); break; case JBC_aload: s = do_aload(index); break; case JBC_istore: s = do_store(index, popInt()); break; case JBC_lstore: s = do_store(index, popLong()); break; case JBC_fstore: s = do_store(index, popFloat()); break; case JBC_dstore: s = do_store(index, popDouble()); break; case JBC_astore: s = do_astore(index); break; case JBC_iinc: s = do_iinc(index, bcodes.getWideIncrement()); break; case JBC_ret: s = _retHelper(index); break; default: OPT_OptimizingCompilerException.UNREACHABLE(); break; } } break; case JBC_multianewarray: { VM_TypeReference arrayType = bcodes.getTypeReference(); OPT_TypeOperand typeOp = makeTypeOperand(arrayType); int dimensions = bcodes.getArrayDimension(); // Step 1: Create an int array to hold the dimensions. OPT_TypeOperand dimArrayType = makeTypeOperand(VM_Array.IntArray); OPT_RegisterOperand dimArray = gc.temps.makeTemp(VM_TypeReference.IntArray); markGuardlessNonNull(dimArray); dimArray.setPreciseType(); appendInstruction(NewArray.create(NEWARRAY, dimArray, dimArrayType, new OPT_IntConstantOperand(dimensions))); // Step 2: Assign the dimension values to dimArray for (int i = dimensions; i > 0; i--) { OPT_LocationOperand loc = new OPT_LocationOperand(VM_TypeReference.Int); appendInstruction(AStore.create(INT_ASTORE, popInt(), dimArray.copyD2U(), new OPT_IntConstantOperand(i - 1), loc, new OPT_TrueGuardOperand())); } // Step 3: Actually create the multiD array OPT_RegisterOperand result = gc.temps.makeTemp(arrayType); markGuardlessNonNull(result); result.setPreciseType(); appendInstruction(NewArray.create(NEWOBJMULTIARRAY, result, typeOp, dimArray.copyD2U())); push(result.copyD2U()); rectifyStateWithErrorHandler(); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangNegativeArraySizeException); } break; case JBC_ifnull: s = _refIfNullHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifnonnull: s = _refIfNullHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto_w: { int offset = bcodes.getWideBranchOffset(); if (offset != 5) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr_w: s = _jsrHelper(bcodes.getWideBranchOffset()); break; //-#if RVM_WITH_OSR case JBC_impdep1: { int pseudo_opcode = bcodes.nextPseudoInstruction(); switch (pseudo_opcode) { case PSEUDO_LoadIntConst: { int value = bcodes.readIntConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadIntConst "+value); push(new OPT_IntConstantOperand(value)); // used for PSEUDO_InvokeStatic to recover the type info param1 = param2; param2 = value; break; } case PSEUDO_LoadLongConst: { long value = bcodes.readLongConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadLongConst "+value); // put on jtoc int offset = VM_Statics.findOrCreateLongLiteral(value); pushDual(new OPT_LongConstantOperand(value, offset)); break; } case PSEUDO_LoadWordConst: { Address a; //-#if RVM_FOR_32_ADDR a = Address.fromIntSignExtend(bcodes.readIntConst()); //-#endif //-#if RVM_FOR_64_ADDR a = Address.fromLong(bcodes.readLongConst()); //-#endif push(new OPT_AddressConstantOperand(a)); if (VM.TraceOnStackReplacement) VM.sysWrite("PSEUDO_LoadWordConst 0x"); VM.sysWrite(a); VM.sysWriteln(); break; } case PSEUDO_LoadFloatConst: { int ibits = bcodes.readIntConst(); float value = Float.intBitsToFloat(ibits); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadFloatConst "+value); int offset = VM_Statics.findOrCreateFloatLiteral(ibits); push(new OPT_FloatConstantOperand(value, offset)); break; } case PSEUDO_LoadDoubleConst: { long lbits = bcodes.readLongConst(); double value = VM_Magic.longBitsAsDouble(lbits); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadDoubleConst "+ lbits); // put on jtoc int offset = VM_Statics.findOrCreateDoubleLiteral(lbits); pushDual(new OPT_DoubleConstantOperand(value, offset)); break; } case PSEUDO_LoadRetAddrConst: { int value = bcodes.readIntConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadRetAddrConst "+value); push(new ReturnAddressOperand(value)); break; } case PSEUDO_InvokeStatic: { /* pseudo invoke static for getRefAt and cleanRefAt, both must be resolved already */ VM_Method meth = null; int targetidx = bcodes.readIntConst(); switch (targetidx) { case GETREFAT: meth = VM_Entrypoints.osrGetRefAtMethod; break; case CLEANREFS: meth = VM_Entrypoints.osrCleanRefsMethod; break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("pseudo_invokestatic, unknown target index "+targetidx); OPT_OptimizingCompilerException.UNREACHABLE(); break; } if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_Invoke "+meth+"\n"); s = _callHelper(meth.getMemberRef().asMethodReference(), OPT_MethodOperand.STATIC(meth)); Call.setAddress(s, new OPT_IntConstantOperand(meth.getOffset())); /* try to set the type of return register */ if (targetidx == GETREFAT) { Object realObj = OSR_ObjectHolder.getRefAt(param1, param2); if (VM.VerifyAssertions) VM._assert(realObj != null); VM_TypeReference klass = VM_Magic.getObjectType(realObj).getTypeRef(); OPT_RegisterOperand op0 = gc.temps.makeTemp(klass); Call.setResult(s, op0); pop(); // pop the old one and push the new return type. push(op0.copyD2U(), klass); } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } case PSEUDO_InvokeCompiledMethod: { int cmid = bcodes.readIntConst(); int origBCIdx = bcodes.readIntConst(); // skip it VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid); VM_Method meth = cm.getMethod(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_InvokeCompiledMethod "+meth+"\n"); /* the bcIndex should be adjusted to the original */ s = _callHelper(meth.getMemberRef().asMethodReference(), OPT_MethodOperand.COMPILED(meth, cm.getOsrJTOCoffset())); // adjust the bcindex of s to the original bytecode's index // it should be able to give the correct exception handling s.bcIndex = origBCIdx + bciAdjustment; rectifyStateWithExceptionHandlers(); break; } case PSEUDO_ParamInitEnd: { // indicates the place to insert method prologue and stack // overflow checks. // opt compiler should consider this too break; } default: if (VM.TraceOnStackReplacement) VM.sysWriteln("OSR Error, no such pseudo opcode : "+pseudo_opcode); OPT_OptimizingCompilerException.UNREACHABLE(); break; } break; } //-#endif default: OPT_OptimizingCompilerException.UNREACHABLE(); break; } if (s != null && !currentBBLE.isSelfRegen()) { appendInstruction(s); } // check runoff if (VM.VerifyAssertions) VM._assert(bcodes.index() <= runoff); if (!endOfBasicBlock && bcodes.index() == runoff) { if (DBG_BB || DBG_SELECTED) db("runoff occurred! current basic block: " + currentBBLE + ", runoff = " + runoff); endOfBasicBlock = fallThrough = true; } if (endOfBasicBlock) { if (currentBBLE.isSelfRegen()) { // This block ended in a goto that jumped into the middle of it. // Through away all out edges from this block, they're out of date // because we're going to have to regenerate this block. currentBBLE.block.deleteOut(); if (DBG_CFG || DBG_SELECTED) db("Deleted all out edges of " + currentBBLE.block); return; } if (fallThrough) { if (VM.VerifyAssertions) VM._assert(bcodes.index() < bcodes.length()); // Get/Create fallthrough BBLE and record it as // currentBBLE's fallThrough. currentBBLE.fallThrough = getOrCreateBlock(bcodes.index()); currentBBLE.block.insertOut(currentBBLE.fallThrough.block); } return; } } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/7c173c1854385c6e74338c6f66ccedd487931599/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
1265,
12,
474,
15065,
13,
288,
565,
309,
261,
2290,
43,
67,
9676,
747,
2383,
43,
67,
4803,
2056,
13,
288,
1377,
1319,
2932,
3441,
1776,
981,
1368,
315,
397,
783,
9676,
900,
397,
315,
598,
1086,
3674,
315,
397,
1086,
3674,
1769,
565,
289,
565,
783,
9676,
900,
18,
542,
7823,
5621,
565,
20706,
8252,
1768,
273,
4159,
14287,
273,
629,
31,
565,
1142,
382,
701,
273,
446,
31,
565,
6533,
1145,
18,
6208,
12,
2080,
1016,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
368,
6753,
3455,
783,
9676,
900,
18,
8766,
731,
17,
869,
17,
712,
316,
648,
732,
775,
358,
11833,
1368,
4202,
368,
326,
7689,
434,
326,
1203,
732,
4565,
4551,
12516,
18,
225,
9587,
1283,
9702,
4202,
368,
3551,
3647,
3930,
8252,
1768,
353,
638,
3302,
1404,
4237,
584,
358,
1044,
333,
648,
18,
1377,
783,
9676,
900,
18,
8766,
273,
16170,
1016,
273,
6533,
1145,
18,
1615,
5621,
1377,
509,
981,
273,
6533,
1145,
18,
4285,
11983,
5621,
1377,
309,
261,
2290,
43,
67,
16283,
21045,
13,
288,
3639,
1319,
2932,
24979,
315,
397,
16170,
1016,
397,
315,
315,
397,
981,
397,
315,
294,
374,
92,
6,
397,
2144,
18,
869,
14866,
12,
710,
10019,
1377,
289,
1377,
16456,
67,
11983,
272,
273,
446,
31,
1377,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
4618,
54,
1377,
1142,
51,
11254,
5190,
10342,
273,
446,
31,
1377,
368,
17,
7,
409,
430,
1377,
1620,
261,
710,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
1265,
12,
474,
15065,
13,
288,
565,
309,
261,
2290,
43,
67,
9676,
747,
2383,
43,
67,
4803,
2056,
13,
288,
1377,
1319,
2932,
3441,
1776,
981,
1368,
315,
397,
783,
9676,
900,
397,
315,
598,
1086,
3674,
315,
397,
1086,
3674,
1769,
565,
289,
565,
783,
9676,
900,
18,
542,
7823,
5621,
565,
20706,
8252,
1768,
273,
4159,
14287,
273,
629,
31,
565,
1142,
382,
701,
273,
446,
31,
565,
6533,
1145,
18,
6208,
12,
2080,
1016,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
368,
6753,
3455,
783,
9676,
900,
18,
8766,
731,
17,
869,
17,
712,
316,
648,
732,
775,
358,
11833,
1368,
4202,
368,
326,
7689,
434,
326,
1203,
732,
4565,
2
] |
|
protected LongType( String typeName ) { super(typeName); }
|
private LongType() { super("long",createRangeFacet( IntegerType.theInstance, IntegerValueType.create("-9223372036854775808"), IntegerValueType.create("9223372036854775807"))); }
|
protected LongType( String typeName ) { super(typeName); }
|
45720 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45720/0709554caaad4cac83a66eb9e98e10c1ff2aa2a4/LongType.java/clean/xsdlib/src/com/sun/msv/datatype/xsd/LongType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3407,
559,
12,
514,
8173,
262,
288,
2240,
12,
723,
461,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
3407,
559,
12,
514,
8173,
262,
288,
2240,
12,
723,
461,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void handleBeforePrepare(List refsToAdd, List refsToRemove, Transaction tx) throws Exception { //We insert a tx record and //a row for each ref with + //and update the row for each delivery with "-" PreparedStatement psReference = null; PreparedStatement psMessage = null; Connection conn = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); //Insert the tx record if (!refsToAdd.isEmpty() || !refsToRemove.isEmpty()) { addTXRecord(conn, tx); } Iterator iter = refsToAdd.iterator(); boolean batch = usingBatchUpdates && refsToAdd.size() > 1; boolean messagesInBatch = false; if (batch) { psReference = conn.prepareStatement(insertMessageRef); psMessage = conn.prepareStatement(insertMessage); } while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair) iter.next(); if (!batch) { psReference = conn.prepareStatement(insertMessageRef); } prepareToAddReference(pair.channelId, pair.ref, tx, psReference); if (batch) { psReference.addBatch(); } else { int rows = psReference.executeUpdate(); if (trace) { log.trace("Inserted " + rows + " rows"); } psReference.close(); psReference = null; } if (!batch) { psMessage = conn.prepareStatement(insertMessage); } //Maybe we need to persist the message itself boolean added = checkStoreMessage(pair.ref, psMessage); if (batch) { if (added) { psMessage.addBatch(); messagesInBatch = true; } } else { if (added) { int rows = psMessage.executeUpdate(); if (trace) { log.trace("Inserted " + rows + " rows"); } } psMessage.close(); psMessage = null; } } if (batch) { int[] rowsReference = psReference.executeBatch(); if (trace) { logBatchUpdate(insertMessageRef, rowsReference, "inserted"); } if (messagesInBatch) { int[] rowsMessage = psMessage.executeBatch(); if (trace) { logBatchUpdate(insertMessage, rowsMessage, "inserted"); } } psReference.close(); psReference = null; psMessage.close(); psMessage = null; } iter = refsToRemove.iterator(); batch = usingBatchUpdates && refsToRemove.size() > 1; if (batch) { psReference = conn.prepareStatement(updateMessageRef); } while (iter.hasNext()) { ChannelRefPair pair = (ChannelRefPair) iter.next(); if (!batch) { psReference = conn.prepareStatement(updateMessageRef); } prepareToRemoveReference(pair.channelId, pair.ref, tx, psReference); if (batch) { psReference.addBatch(); } else { int rows = psReference.executeUpdate(); if (trace) { log.trace("updated " + rows + " rows"); } psReference.close(); psReference = null; } } if (batch) { int[] rows = psReference.executeBatch(); if (trace) { logBatchUpdate(updateMessageRef, rows, "updated"); } psReference.close(); psReference = null; } } catch (Exception e) { wrap.exceptionOccurred(); throw e; } finally { if (psReference != null) { try { psReference.close(); } catch (Throwable t) { } } if (psMessage != null) { try { psMessage.close(); } catch (Throwable t) { } } if (conn != null) { try { conn.close(); } catch (Throwable e) { } } wrap.end(); } }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7133c9662c41fb385b863c92214187907f2d1b0/JDBCPersistenceManager.java/buggy/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1640,
4649,
7543,
12,
682,
9047,
13786,
16,
987,
9047,
12765,
16,
5947,
2229,
13,
1216,
1185,
282,
288,
1377,
368,
3218,
2243,
279,
2229,
1409,
471,
1377,
368,
69,
1027,
364,
1517,
1278,
598,
397,
1377,
368,
464,
1089,
326,
1027,
364,
1517,
7912,
598,
7514,
1377,
16913,
4250,
2404,
273,
446,
31,
1377,
16913,
4250,
1079,
273,
446,
31,
1377,
4050,
1487,
273,
446,
31,
1377,
5947,
3611,
2193,
273,
394,
5947,
3611,
5621,
1377,
775,
1377,
288,
540,
1487,
273,
3780,
18,
588,
1952,
5621,
540,
368,
4600,
326,
2229,
1409,
540,
309,
16051,
9316,
13786,
18,
291,
1921,
1435,
747,
401,
9316,
12765,
18,
291,
1921,
10756,
540,
288,
5411,
527,
16556,
2115,
12,
4646,
16,
2229,
1769,
540,
289,
540,
4498,
1400,
273,
9047,
13786,
18,
9838,
5621,
540,
1250,
2581,
273,
1450,
4497,
5121,
597,
9047,
13786,
18,
1467,
1435,
405,
404,
31,
540,
1250,
2743,
382,
4497,
273,
629,
31,
540,
309,
261,
5303,
13,
540,
288,
5411,
4250,
2404,
273,
1487,
18,
9366,
3406,
12,
6387,
1079,
1957,
1769,
5411,
4250,
1079,
273,
1487,
18,
9366,
3406,
12,
6387,
1079,
1769,
540,
289,
540,
1323,
261,
2165,
18,
5332,
2134,
10756,
540,
288,
5411,
5307,
1957,
4154,
3082,
273,
261,
2909,
1957,
4154,
13,
1400,
18,
4285,
5621,
5411,
309,
16051,
5303,
13,
5411,
288,
9079,
4250,
2404,
273,
1487,
18,
9366,
3406,
12,
6387,
1079,
1957,
1769,
5411,
289,
5411,
2911,
13786,
2404,
12,
6017,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1640,
4649,
7543,
12,
682,
9047,
13786,
16,
987,
9047,
12765,
16,
5947,
2229,
13,
1216,
1185,
282,
288,
1377,
368,
3218,
2243,
279,
2229,
1409,
471,
1377,
368,
69,
1027,
364,
1517,
1278,
598,
397,
1377,
368,
464,
1089,
326,
1027,
364,
1517,
7912,
598,
7514,
1377,
16913,
4250,
2404,
273,
446,
31,
1377,
16913,
4250,
1079,
273,
446,
31,
1377,
4050,
1487,
273,
446,
31,
1377,
5947,
3611,
2193,
273,
394,
5947,
3611,
5621,
1377,
775,
1377,
288,
540,
1487,
273,
3780,
18,
588,
1952,
5621,
540,
368,
4600,
326,
2229,
1409,
540,
309,
16051,
9316,
13786,
18,
291,
1921,
1435,
747,
401,
9316,
12765,
18,
291,
1921,
10756,
540,
288,
5411,
527,
16556,
2
] |
||
popAddr(T0); popInt(T1);
|
popInt(T0); popAddr(T1);
|
private boolean generateInlineCode(VM_MethodReference methodToBeCalled) { VM_Atom methodName = methodToBeCalled.getName(); if (methodToBeCalled.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = methodToBeCalled.getParameterTypes(); // (1) Set up arguments according to OS calling convention int paramWords = methodToBeCalled.getParameterWords(); int gp = FIRST_OS_PARAMETER_GPR; int fp = FIRST_OS_PARAMETER_FPR; int stackIndex = paramWords; for (int i=0; i<args.length; i++) { VM_TypeReference t = args[i]; if (t.isLongType()) { stackIndex -= 2; if (VM.BuildFor64Addr) { peekLong(gp, gp, stackIndex); gp++; } else { peekInt(gp++, stackIndex); // lo register := lo mem (== hi order word) peekInt(gp++, stackIndex+1); // hi register := hi mem (== lo order word) } } else if (t.isFloatType()) { stackIndex -= 1; peekFloat(fp++, stackIndex); } else if (t.isDoubleType()) { stackIndex -= 2; peekDouble(fp++, stackIndex); } else if (t.isIntLikeType()) { stackIndex -= 1; peekInt(gp++, stackIndex); } else { // t is object stackIndex -= 1; peekAddr(gp++, stackIndex); } } if (VM.VerifyAssertions) { VM._assert(stackIndex == 0); // Laziness. We don't support sysCalls with so // many arguments that we would have to spill some to the stack. VM._assert(gp - 1 <= LAST_OS_PARAMETER_GPR); VM._assert(fp - 1 <= LAST_OS_PARAMETER_FPR); } // (2) Call it int paramBytes = paramWords * BYTES_IN_STACKSLOT; VM_Field ip = VM_Entrypoints.getSysCallField(methodName.toString()); generateSysCall(paramBytes, ip); // (3) Pop Java expression stack discardSlots(paramWords); // (4) Push return value (if any) VM_TypeReference rtype = methodToBeCalled.getReturnType(); if (rtype.isIntLikeType()) { pushInt(T0); } else if (rtype.isWordType() || rtype.isReferenceType()) { pushAddr(T0); } else if (rtype.isDoubleType()) { pushDouble(FIRST_OS_PARAMETER_FPR); } else if (rtype.isFloatType()) { pushFloat(FIRST_OS_PARAMETER_FPR); } else if (rtype.isLongType()) { pushLong(T0, VM.BuildFor64Addr?T0:T1); } } else if (methodName == VM_MagicNames.sysCallSigWait) { int ipOffset = VM_Entrypoints.registersIPField.getOffset(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffset(); popAddr(T0); // t0 := address of VM_Registers object VM_ForwardReference fr1 = asm.emitForwardBL(); fr1.resolve(asm); asm.emitMFLR(0); asm.emitSTAddr(0, ipOffset, T0 ); // store ip into VM_Registers Object asm.emitLAddr(T0, gprsOffset, T0); // TO <- registers.gprs[] asm.emitSTAddr(FP, FP<<LOG_BYTES_IN_ADDRESS, T0); peekInt(T0, 1); peekInt(T1, 0); generateSysCall1(2 * BYTES_IN_STACKSLOT); discardSlots(3); // 2 args + ip pushInt(T0); } else if (methodName == VM_MagicNames.getFramePointer) { pushAddr(FP); } else if (methodName == VM_MagicNames.getCallerFramePointer) { popAddr(T0); // pop frame pointer of callee frame asm.emitLAddr(T1, STACKFRAME_FRAME_POINTER_OFFSET, T0); // load frame pointer of caller frame pushAddr(T1); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.setCallerFramePointer) { popAddr(T1); // value popAddr(T0); // fp asm.emitSTAddr(T1, STACKFRAME_FRAME_POINTER_OFFSET, T0); // *(address+SFPO) := value } else if (methodName == VM_MagicNames.getCompiledMethodID) { popAddr(T0); // pop frame pointer of callee frame asm.emitLWZ (T1, STACKFRAME_METHOD_ID_OFFSET, T0); // load compiled method id pushInt(T1); // push method ID } else if (methodName == VM_MagicNames.setCompiledMethodID) { popInt(T1); // value popAddr(T0); // fp asm.emitSTW(T1, STACKFRAME_METHOD_ID_OFFSET, T0); // *(address+SNIO) := value } else if (methodName == VM_MagicNames.getNextInstructionAddress) { popAddr(T0); // pop frame pointer of callee frame asm.emitLAddr(T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0); // load frame pointer of caller frame pushAddr(T1); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.setNextInstructionAddress) { popAddr(T1); // value popAddr(T0); // fp asm.emitSTAddr(T1, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T0); // *(address+SNIO) := value } else if (methodName == VM_MagicNames.getReturnAddressLocation) { popAddr(T0); // pop frame pointer of callee frame asm.emitLAddr(T1, STACKFRAME_FRAME_POINTER_OFFSET, T0); // load frame pointer of caller frame asm.emitADDI (T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, T1); // get location containing ret addr pushAddr(T2); // push frame pointer of caller frame } else if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC) { pushAddr(JTOC); } else if (methodName == VM_MagicNames.getThreadId) { pushInt(TI); // push TI } else if (methodName == VM_MagicNames.setThreadId) { popInt(TI); // TI := (shifted) thread index } else if (methodName == VM_MagicNames.getProcessorRegister) { pushAddr(PROCESSOR_REGISTER); } else if (methodName == VM_MagicNames.setProcessorRegister) { popAddr(PROCESSOR_REGISTER); } else if (methodName == VM_MagicNames.getTimeBase) { if (VM.BuildFor64Addr) { asm.emitMFTB (T1); // T1 := time base } else { int label = asm.getMachineCodeIndex(); asm.emitMFTBU(T0); // T0 := time base, upper asm.emitMFTB (T1); // T1 := time base, lower asm.emitMFTBU(T2); // T2 := time base, upper asm.emitCMP (T0, T2); // T0 == T2? asm.emitBC (NE, label); // lower rolled over, try again } pushLong(T0,T1); } else if (methodName == VM_MagicNames.invokeMain) { popAddr(T0); // t0 := ip asm.emitMTCTR(T0); peekAddr(T0,0); // t0 := parameter asm.emitBCCTRL(); // call discardSlot(); // pop parameter } else if (methodName == VM_MagicNames.invokeClassInitializer) { popAddr(T0); // t0 := address to be called asm.emitMTCTR(T0); asm.emitBCCTRL(); // call } else if (methodName == VM_MagicNames.invokeMethodReturningVoid) { generateMethodInvocation(); // call method } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { generateMethodInvocation(); // call method pushInt(T0); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { generateMethodInvocation(); // call method pushLong(T0, VM.BuildFor64Addr?T0:T1); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { generateMethodInvocation(); // call method pushFloat(F0); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { generateMethodInvocation(); // call method pushDouble(F0); // push result } else if (methodName == VM_MagicNames.invokeMethodReturningObject) { generateMethodInvocation(); // call method pushAddr(T0); // push result } else if (methodName == VM_MagicNames.addressArrayCreate) { VM_Array type = methodToBeCalled.getType().resolve().asArray(); emit_resolved_newarray(type); } else if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); } else if (methodName == VM_MagicNames.addressArrayGet) { if (VM.BuildFor32Addr || methodToBeCalled.getType() == VM_TypeReference.CodeArray) { emit_iaload(); } else { emit_laload(); } } else if (methodName == VM_MagicNames.addressArraySet) { if (VM.BuildFor32Addr || methodToBeCalled.getType() == VM_TypeReference.CodeArray) { emit_iastore(); } else { emit_lastore(); } } else if (methodName == VM_MagicNames.getIntAtOffset) { popInt(T1); // pop offset popAddr(T0); // pop object asm.emitLIntX (T0, T1, T0); // *(object+offset) pushInt(T0); // push *(object+offset) } else if (methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset) { popInt(T1); // pop offset popAddr(T0); // pop object asm.emitLAddrX(T0, T1, T0); // *(object+offset) pushAddr(T0); // push *(object+offset) } else if (methodName == VM_MagicNames.getByteAtOffset) { popInt(T1); // pop offset popAddr(T0); // pop object asm.emitLBZX(T0, T1, T0); // load byte with zero extension. pushInt(T0); // push *(object+offset) } else if (methodName == VM_MagicNames.getCharAtOffset) { popInt(T1); // pop offset popAddr(T0); // pop object asm.emitLHZX(T0, T1, T0); // load char with zero extension. pushInt(T0); // push *(object+offset) } else if (methodName == VM_MagicNames.setIntAtOffset){ popInt(T2); // pop newvalue popInt(T1); // pop offset popAddr(T0); // pop object asm.emitSTWX(T2, T1, T0); // *(object+offset) = newvalue } else if (methodName == VM_MagicNames.setObjectAtOffset) { popAddr(T2); // pop newvalue popInt(T1); // pop offset popAddr(T0); // pop object asm.emitSTAddrX(T2, T1, T0); // *(object+offset) = newvalue } else if (methodName == VM_MagicNames.setByteAtOffset) { popInt(T2); // pop newvalue popInt(T1); // pop offset popAddr(T0); // pop object asm.emitSTBX(T2, T1, T0); // *(object+offset) = newvalue } else if (methodName == VM_MagicNames.setCharAtOffset) { popInt(T2); // pop newvalue popInt(T1); // pop offset popAddr(T0); // pop object asm.emitSTHX(T2, T1, T0); // *(object+offset) = newvalue } else if (methodName == VM_MagicNames.getLongAtOffset) { popInt(T2); // pop offset popAddr(T1); // pop object if (VM.BuildFor32Addr) { asm.emitLWZX (T0, T1, T2); // *(object+offset) asm.emitADDI(T2, BYTES_IN_INT, T2); // offset += 4 asm.emitLWZX (T1, T1, T2); // *(object+offset+4) } else { asm.emitLDX(T1, T1, T2); } pushLong(T0,T1); } else if ((methodName == VM_MagicNames.setLongAtOffset) || (methodName == VM_MagicNames.setDoubleAtOffset)) { popLong(T3, T2); popInt(T1); // pop offset popAddr(T0); // pop object if (VM.BuildFor32Addr) { asm.emitSTWX(T3, T1, T0); // *(object+offset) = newvalue low asm.emitADDI(T1, BYTES_IN_INT, T1); // offset += 4 asm.emitSTWX(T2, T1, T0); // *(object+offset) = newvalue high } else { asm.emitSTDX(T2, T1, T0); // *(object+offset) = newvalue } } else if (methodName == VM_MagicNames.getMemoryInt){ popAddr(T0); // address asm.emitLInt (T0, 0, T0); // *address pushInt(T0); // *sp := *address } else if (methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { popAddr(T0); // address asm.emitLAddr(T0, 0, T0); // *address pushAddr(T0); // *sp := *address } else if (methodName == VM_MagicNames.setMemoryInt ){ popInt(T1); // value popAddr(T0); // address asm.emitSTW(T1, 0, T0); // *address := value } else if (methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { popAddr(T1); // value popAddr(T0); // address asm.emitSTAddr(T1, 0, T0); // *address := value } else if (methodName == VM_MagicNames.prepareInt){ popInt(T1); // pop offset popAddr(T0); // pop object if (VM.BuildForSingleVirtualProcessor) { asm.emitLWZX (T0, T1, T0); // *(object+offset) } else { asm.emitLWARX(T0, T1, T0); // *(object+offset), setting processor's reservation address } //this Integer is not sign extended !! pushInt(T0); // push *(object+offset) } else if (methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress) { popInt(T1); // pop offset popAddr(T0); // pop object if (VM.BuildForSingleVirtualProcessor) { asm.emitLAddrX(T0, T1, T0); // *(object+offset) } else { if (VM.BuildFor32Addr) { asm.emitLWARX(T0, T1, T0); // *(object+offset), setting processor's reservation address } else { asm.emitLDARX(T0, T1, T0); } } pushAddr(T0); // push *(object+offset) } else if (methodName == VM_MagicNames.attemptInt){ popInt(T2); // pop newValue discardSlot(); // ignore oldValue popInt(T1); // pop offset popAddr(T0); // pop object if (VM.BuildForSingleVirtualProcessor) { asm.emitSTWX(T2, T1, T0); // store new value (on one VP this succeeds by definition) asm.emitLVAL(T0, 1); // T0 := true pushInt(T0); // push success of conditional store } else { asm.emitSTWCXr(T2, T1, T0); // store new value and set CR0 asm.emitLVAL(T0, 0); // T0 := false VM_ForwardReference fr = asm.emitForwardBC(NE); // skip, if store failed asm.emitLVAL(T0, 1); // T0 := true fr.resolve(asm); pushInt(T0); // push success of conditional store } } else if (methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress) { popAddr(T2); // pop newValue discardSlot(); // ignore oldValue popInt(T1); // pop offset popAddr(T0); // pop object if (VM.BuildForSingleVirtualProcessor) { asm.emitSTAddrX(T2, T1, T0); // store new value (on one VP this succeeds by definition) asm.emitLVAL(T0, 1); // T0 := true pushAddr(T0); // push success of conditional store } else { if (VM.BuildFor32Addr) { asm.emitSTWCXr(T2, T1, T0); // store new value and set CR0 } else { asm.emitSTDCXr(T2, T1, T0); // store new value and set CR0 } asm.emitLVAL(T0, 0); // T0 := false VM_ForwardReference fr = asm.emitForwardBC(NE); // skip, if store failed asm.emitLVAL(T0, 1); // T0 := true fr.resolve(asm); pushInt(T0); // push success of conditional store } } else if (methodName == VM_MagicNames.saveThreadState) { peekAddr(T0, 0); // T0 := address of VM_Registers object asm.emitLAddrToc(S0, VM_Entrypoints.saveThreadStateInstructionsField.getOffset()); asm.emitMTCTR(S0); asm.emitBCCTRL(); // call out of line machine code discardSlot(); // pop arg } else if (methodName == VM_MagicNames.threadSwitch) { peekAddr(T1, 0); // T1 := address of VM_Registers of new thread peekAddr(T0, 1); // T0 := address of previous VM_Thread object asm.emitLAddrToc(S0, VM_Entrypoints.threadSwitchInstructionsField.getOffset()); asm.emitMTCTR(S0); asm.emitBCCTRL(); discardSlots(2); // pop two args } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { peekAddr(T0, 0); // T0 := address of VM_Registers object asm.emitLAddrToc(S0, VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffset()); asm.emitMTLR(S0); asm.emitBCLR(); // branch to out of line machine code (does not return) } else if (methodName == VM_MagicNames.returnToNewStack) { peekAddr(FP, 0); // FP := new stackframe asm.emitLAddr(S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // fetch... asm.emitMTLR(S0); // ...return address asm.emitBCLR (); // return to caller } else if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // fetch parameter (address to branch to) into CT register // peekAddr(T0, 0); asm.emitMTCTR(T0); // restore volatile and non-volatile registers // (note that these are only saved for "dynamic bridge" methods) // int offset = frameSize; // restore non-volatile and volatile fprs for (int i = LAST_NONVOLATILE_FPR; i >= FIRST_VOLATILE_FPR; --i) asm.emitLFD(i, offset -= BYTES_IN_DOUBLE, FP); // restore non-volatile gprs for (int i = LAST_NONVOLATILE_GPR; i >= FIRST_NONVOLATILE_GPR; --i) asm.emitLAddr(i, offset -= BYTES_IN_ADDRESS, FP); // skip saved thread-id, processor, and scratch registers offset -= (FIRST_NONVOLATILE_GPR - LAST_VOLATILE_GPR - 1) * BYTES_IN_ADDRESS; // restore volatile gprs for (int i = LAST_VOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i) asm.emitLAddr(i, offset -= BYTES_IN_ADDRESS, FP); // pop stackframe asm.emitLAddr(FP, 0, FP); // restore link register asm.emitLAddr(S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(S0); asm.emitBCCTR(); // branch always, through count register } else if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) } else if (methodName == VM_MagicNames.getObjectType) { popAddr(T0); // get object pointer VM_ObjectModel.baselineEmitLoadTIB(asm,T0,T0); asm.emitLAddr(T0, TIB_TYPE_INDEX << LOG_BYTES_IN_ADDRESS, T0); // get "type" field from type information block pushAddr(T0); // *sp := type } else if (methodName == VM_MagicNames.getArrayLength) { popAddr(T0); // get object pointer asm.emitLInt(T0, VM_ObjectModel.getArrayLengthOffset(), T0); // get array length field pushInt(T0); // *sp := length } else if (methodName == VM_MagicNames.sync) { asm.emitSYNC(); } else if (methodName == VM_MagicNames.isync) { asm.emitISYNC(); } else if (methodName == VM_MagicNames.dcbst) { popAddr(T0); // address asm.emitDCBST(0, T0); } else if (methodName == VM_MagicNames.icbi) { popAddr(T0); // address asm.emitICBI(0, T0); } else if (methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { // no-op } else if (methodName == VM_MagicNames.wordToLong) { asm.emitLVAL(T0,0); pushAddr(T0); } else if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromIntSignExtend) { if (VM.BuildFor64Addr) { popInt(T0); pushAddr(T0); } // else no-op } else if (methodName == VM_MagicNames.wordFromIntZeroExtend) { if (VM.BuildFor64Addr) { asm.emitLWZ(T0, spTopOffset + BYTES_IN_STACKSLOT - BYTES_IN_INT, FP); pokeAddr(T0,0); } // else no-op } else if (methodName == VM_MagicNames.wordFromLong) { discardSlot(); } else if (methodName == VM_MagicNames.wordAdd) { if (VM.BuildFor64Addr && (methodToBeCalled.getParameterTypes()[0] == VM_TypeReference.Int)){ popInt(T0); } else { popAddr(T0); } popAddr(T1); asm.emitADD (T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { if (VM.BuildFor64Addr && (methodToBeCalled.getParameterTypes()[0] == VM_TypeReference.Int)){ popInt(T0); } else { popAddr(T0); } popAddr(T1); asm.emitSUBFC (T2, T0, T1); pushAddr(T2); } else if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(false, EQ); } else if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(false, NE); } else if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(false, LT); } else if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(false, LE); } else if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(false, GT); } else if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(false, GE); } else if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(true, LT); } else if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(true, LE); } else if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(true, GT); } else if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(true, GE); } else if (methodName == VM_MagicNames.wordIsZero) { // unsigned comparison generating a boolean asm.emitLVAL(T0, 0); pushAddr(T0); generateAddrComparison(false, EQ); } else if (methodName == VM_MagicNames.wordIsMax) { // unsigned comparison generating a boolean asm.emitLVAL(T0, -1); pushAddr(T0); generateAddrComparison(false, EQ); } else if (methodName == VM_MagicNames.wordZero) { asm.emitLVAL (T0, 0); pushAddr(T0); } else if (methodName == VM_MagicNames.wordOne) { asm.emitLVAL (T0, 1); pushAddr(T0); } else if (methodName == VM_MagicNames.wordMax) { asm.emitLVAL (T0, -1); pushAddr(T0); } else if (methodName == VM_MagicNames.wordAnd) { popAddr(T0); popAddr(T1); asm.emitAND(T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordOr) { popAddr(T0); popAddr(T1); asm.emitOR (T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordNot) { popAddr(T0); asm.emitLVAL(T1, -1); asm.emitXOR(T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordXor) { popAddr(T0); popAddr(T1); asm.emitXOR(T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordLsh) { popAddr(T0); popInt(T1); if (VM.BuildFor32Addr) asm.emitSLW (T2, T1, T0); else asm.emitSLD (T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordRshl) { popAddr(T0); popInt(T1); if (VM.BuildFor32Addr) asm.emitSRW (T2, T1, T0); else asm.emitSRD (T2, T1, T0); pushAddr(T2); } else if (methodName == VM_MagicNames.wordRsha) { popAddr(T0); popInt(T1); if (VM.BuildFor32Addr) asm.emitSRAW (T2, T1, T0); else asm.emitSRAD (T2, T1, T0); pushAddr(T2); } else { return false; } return true; }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/d9e2e9b31c6fee5180cb576d133b341942f8bc54/VM_Compiler.java/clean/rvm/src/vm/arch/powerPC/compilers/baseline/VM_Compiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
225,
2103,
10870,
1085,
12,
7397,
67,
1305,
2404,
707,
15360,
8185,
13,
288,
565,
8251,
67,
3641,
4918,
273,
707,
15360,
8185,
18,
17994,
5621,
1850,
309,
261,
2039,
15360,
8185,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
12712,
1477,
13,
288,
1377,
8251,
67,
7534,
8526,
833,
273,
707,
15360,
8185,
18,
588,
1662,
2016,
5621,
1377,
368,
261,
21,
13,
1000,
731,
1775,
4888,
358,
5932,
4440,
15797,
1377,
509,
579,
7363,
273,
707,
15360,
8185,
18,
588,
1662,
7363,
5621,
1377,
509,
4178,
273,
21786,
67,
4618,
67,
9819,
67,
43,
8025,
31,
1377,
509,
4253,
273,
21786,
67,
4618,
67,
9819,
67,
42,
8025,
31,
1377,
509,
2110,
1016,
273,
579,
7363,
31,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1968,
18,
2469,
31,
277,
27245,
288,
202,
7397,
67,
7534,
268,
273,
833,
63,
77,
15533,
202,
430,
261,
88,
18,
291,
3708,
559,
10756,
288,
202,
225,
2110,
1016,
3947,
576,
31,
1850,
309,
261,
7397,
18,
3116,
1290,
1105,
3178,
13,
288,
5411,
8032,
3708,
12,
6403,
16,
4178,
16,
2110,
1016,
1769,
5411,
4178,
9904,
31,
5411,
289,
469,
288,
202,
565,
8032,
1702,
12,
6403,
9904,
16,
2110,
1016,
1769,
1377,
368,
437,
1744,
519,
437,
1663,
261,
631,
10118,
1353,
2076,
13,
202,
565,
8032,
1702,
12,
6403,
9904,
16,
2110,
1016,
15,
21,
1769,
565,
368,
10118,
1744,
519,
10118,
1663,
261,
631,
437,
1353,
2076,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
225,
2103,
10870,
1085,
12,
7397,
67,
1305,
2404,
707,
15360,
8185,
13,
288,
565,
8251,
67,
3641,
4918,
273,
707,
15360,
8185,
18,
17994,
5621,
1850,
309,
261,
2039,
15360,
8185,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
12712,
1477,
13,
288,
1377,
8251,
67,
7534,
8526,
833,
273,
707,
15360,
8185,
18,
588,
1662,
2016,
5621,
1377,
368,
261,
21,
13,
1000,
731,
1775,
4888,
358,
5932,
4440,
15797,
1377,
509,
579,
7363,
273,
707,
15360,
8185,
18,
588,
1662,
7363,
5621,
1377,
509,
4178,
273,
21786,
67,
4618,
67,
9819,
67,
43,
8025,
31,
1377,
509,
4253,
273,
21786,
67,
4618,
67,
9819,
67,
42,
8025,
31,
1377,
509,
2110,
1016,
2
] |
context.setDefaultFunctionNamespace(deff.getText()); _t = __t211;
|
context.setDefaultFunctionNamespace(deff.getText()); _t = __t213;
|
public final void prolog(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST prolog_AST_in = (AST)_t; AST v = null; AST prefix = null; AST uri = null; AST defu = null; AST deff = null; AST qname = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VERSION_DECL: { AST __t207 = _t; v = _t==ASTNULL ? null :(AST)_t; match(_t,VERSION_DECL); _t = _t.getFirstChild(); if(!v.getText().equals("1.0")) throw new XPathException("Wrong XQuery version: require 1.0"); _t = __t207; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NAMESPACE_DECL: case DEF_NAMESPACE_DECL: case DEF_FUNCTION_NS_DECL: case GLOBAL_VAR: case FUNCTION_DECL: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 100: case 101: case LITERAL_parent: case LITERAL_ancestor: case 104: case 105: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { _loop213: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACE_DECL: { AST __t209 = _t; prefix = _t==ASTNULL ? null :(AST)_t; match(_t,NAMESPACE_DECL); _t = _t.getFirstChild(); uri = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.declareNamespace(prefix.getText(), uri.getText()); _t = __t209; _t = _t.getNextSibling(); break; } case DEF_NAMESPACE_DECL: { AST __t210 = _t; AST tmp22_AST_in = (AST)_t; match(_t,DEF_NAMESPACE_DECL); _t = _t.getFirstChild(); defu = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.declareNamespace("", defu.getText()); _t = __t210; _t = _t.getNextSibling(); break; } case DEF_FUNCTION_NS_DECL: { AST __t211 = _t; AST tmp23_AST_in = (AST)_t; match(_t,DEF_FUNCTION_NS_DECL); _t = _t.getFirstChild(); deff = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.setDefaultFunctionNamespace(deff.getText()); _t = __t211; _t = _t.getNextSibling(); break; } case GLOBAL_VAR: { AST __t212 = _t; qname = _t==ASTNULL ? null :(AST)_t; match(_t,GLOBAL_VAR); _t = _t.getFirstChild(); PathExpr enclosed = new PathExpr(context); expr(_t,enclosed); _t = _retTree; VariableDeclaration decl = new VariableDeclaration(context, qname.getText(), enclosed); path.add(decl); _t = __t212; _t = _t.getNextSibling(); break; } case FUNCTION_DECL: { functionDecl(_t,path); _t = _retTree; break; } default: { break _loop213; } } } while (true); } _retTree = _t; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
450,
1330,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
9506,
202,
9053,
450,
1330,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
331,
273,
446,
31,
202,
202,
9053,
1633,
273,
446,
31,
202,
202,
9053,
2003,
273,
446,
31,
202,
202,
9053,
1652,
89,
273,
446,
31,
202,
202,
9053,
443,
1403,
273,
446,
31,
202,
202,
9053,
12621,
273,
446,
31,
9506,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8456,
67,
23956,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3462,
27,
273,
389,
88,
31,
1082,
202,
90,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
5757,
67,
23956,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
6862,
25083,
202,
430,
12,
5,
90,
18,
588,
1528,
7675,
14963,
2932,
21,
18,
20,
6,
3719,
6862,
9506,
202,
12849,
394,
10172,
503,
2932,
13634,
1139,
1138,
1177,
30,
2583,
404,
18,
20,
8863,
6862,
6862,
202,
67,
88,
273,
1001,
88,
3462,
27,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
450,
1330,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
9506,
202,
9053,
450,
1330,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
331,
273,
446,
31,
202,
202,
9053,
1633,
273,
446,
31,
202,
202,
9053,
2003,
273,
446,
31,
202,
202,
9053,
1652,
89,
273,
446,
31,
202,
202,
9053,
443,
1403,
273,
446,
31,
202,
202,
9053,
12621,
273,
446,
31,
9506,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
2
] |
gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(spacer, gridBagConstraints);
|
gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(spacer, gridBagConstraints);
|
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; detectorTableScrollPane = new javax.swing.JScrollPane(); detectorTable = new javax.swing.JTable(); detectorDescriptionScrollPane = new javax.swing.JScrollPane(); detectorDescription = new javax.swing.JEditorPane(); jSeparator1 = new javax.swing.JSeparator(); okButton = new javax.swing.JButton(); cancelButton = new javax.swing.JButton(); spacer = new javax.swing.JLabel(); restoreDefaultsButton = new javax.swing.JButton(); getContentPane().setLayout(new java.awt.GridBagLayout()); setTitle("Configure Detectors"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); detectorTableScrollPane.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); detectorTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Bug Detector", "Speed", "Enabled" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.Boolean.class }; boolean[] canEdit = new boolean [] { false, false, true }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); populateTable(); detectorTable.getColumnModel().getColumn(ENABLED_COLUMN).setMaxWidth(60); detectorTable.getColumnModel().getColumn(SPEED_COLUMN).setMaxWidth(60); detectorTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); { DefaultTableModel m = (DefaultTableModel)detectorTable.getModel(); m.setColumnIdentifiers( new String[] { L10N.getLocalString("dlg.bugdetector_lbl", "Bug Detector"), L10N.getLocalString("dlg.speed_lbl", "Speed"), L10N.getLocalString("dlg.enabled_lbl", "Enabled"), }); } detectorTableScrollPane.setViewportView(detectorTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 0.8; gridBagConstraints.insets = new java.awt.Insets(6, 6, 2, 6); getContentPane().add(detectorTableScrollPane, gridBagConstraints); detectorDescriptionScrollPane.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); detectorDescriptionScrollPane.setPreferredSize(new java.awt.Dimension(110, 120)); detectorDescriptionScrollPane.setViewportView(detectorDescription); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(2, 6, 2, 6); getContentPane().add(detectorDescriptionScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); getContentPane().add(jSeparator1, gridBagConstraints); okButton.setMnemonic('O'); okButton.setText("OK"); okButton.setText(L10N.getLocalString("dlg.ok_btn","OK")); okButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 0, 4, 2); getContentPane().add(okButton, gridBagConstraints); cancelButton.setMnemonic('C'); cancelButton.setText("Cancel"); cancelButton.setText(L10N.getLocalString("dlg.cancel_btn", "Cancel")); cancelButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 2, 4, 6); getContentPane().add(cancelButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(spacer, gridBagConstraints); restoreDefaultsButton.setText("Restore Defaults"); restoreDefaultsButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); restoreDefaultsButton.setText(L10N.getLocalString("dlg.restoredefaults_btn", "Restore Defaults")); restoreDefaultsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { restoreDefaultsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 6, 4, 0); getContentPane().add(restoreDefaultsButton, gridBagConstraints); pack(); }//GEN-END:initComponents
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/ConfigureDetectorsDialog.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/ConfigureDetectorsDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
13826,
1388,
26360,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
13826,
1388,
273,
394,
6863,
18,
5328,
310,
18,
46,
1388,
5621,
3639,
13826,
3291,
26360,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
13826,
3291,
273,
394,
6863,
18,
5328,
310,
18,
46,
6946,
8485,
5621,
3639,
525,
6581,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
6581,
5621,
3639,
1529,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
3755,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
31896,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
5217,
7019,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
2252,
18,
2219,
88,
18,
6313,
5013,
3744,
10663,
3639,
14109,
2932,
11207,
8083,
18886,
8863,
3639,
527,
3829,
2223,
12,
2704,
2252,
18,
2219,
88,
18,
2575,
18,
3829,
4216,
1435,
288,
5411,
1071,
918,
2742,
15745,
12,
6290,
18,
2219,
88,
18,
2575,
18,
3829,
1133,
6324,
13,
288,
7734,
1746,
6353,
12,
73,
11734,
1769,
5411,
289,
3639,
15549,
3639,
13826,
1388,
26360,
18,
542,
8107,
12,
2704,
6863,
18,
5328,
310,
18,
8815,
18,
1919,
941,
8107,
12,
28384,
18,
5328,
310,
18,
8815,
18,
1919,
941,
8107,
18,
23085,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
13826,
1388,
26360,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
13826,
1388,
273,
394,
6863,
18,
5328,
310,
18,
46,
1388,
5621,
3639,
13826,
3291,
26360,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
13826,
3291,
273,
394,
6863,
18,
5328,
310,
18,
46,
6946,
8485,
5621,
3639,
525,
6581,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
6581,
5621,
3639,
1529,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
3755,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
2
] |
int len = parent.getLengths()[axis];
|
public synchronized Data getData(int[] pos, int dim, DataCache cache) { if (dim != 3) { System.err.println(name + ": invalid dimensionality (" + dim + ")"); return null; } // get some info from the parent transform ImageTransform it = (ImageTransform) parent; int w = it.getImageWidth(); int h = it.getImageHeight(); RealType xType = it.getXType(); RealType yType = it.getYType(); RealType zType = it.getZType(); FunctionType imageType = it.getType(); Unit[] imageUnits = it.getImageUnits(); RealTupleType xyz = null; try { xyz = new RealTupleType(xType, yType, zType); } catch (VisADException exc) { exc.printStackTrace(); } // convert spherical polar coordinates to cartesian coordinates for line double yawRadians = Math.PI * yaw / 180; double yawCos = Math.cos(yawRadians); double yawSin = Math.sin(yawRadians); double pitchRadians = Math.PI * (90 - pitch) / 180; double pitchCos = Math.cos(pitchRadians); double pitchSin = Math.sin(pitchRadians); // Let P1 = (x, y, z), P2 = -P1 float x = (float) (RADIUS3 * pitchSin * yawCos); float y = (float) (RADIUS3 * pitchSin * yawSin); float z = (float) (RADIUS3 * pitchCos); // compute location along P1-P2 line float q = (loc - 50) / 50; float lx = q * x; float ly = q * y; float lz = q * z; // choose a point P which doesn't lie on the line through P1 and P2 float px = 1, py = 1, pz = 1; float ax = x < 0 ? -x : x; float ay = y < 0 ? -y : y; float az = z < 0 ? -z : z; if (ax - ay < 0.1) py = -1; if (ax - az < 0.1) pz = -1; // calculate the vector R as the cross product between P - P1 and P2 - P1 float pp1x = px - x, pp1y = py - y, pp1z = pz - z; float p2p1x = -x - x, p2p1y = -y - y, p2p1z = -z - z; float rz = pp1x * p2p1y - pp1y * p2p1x; float rx = pp1y * p2p1z - pp1z * p2p1y; float ry = pp1z * p2p1x - pp1x * p2p1z; // R is now perpendicular to P2 - P1 // calculate the vector S as the cross product between R and P2 - P1 float sz = rx * p2p1y - ry * p2p1x; float sx = ry * p2p1z - rz * p2p1y; float sy = rz * p2p1x - rx * p2p1z; // S is now perpendicular to both R and the P2 - P1 // normalize R and S float rlen = (float) Math.sqrt(rx * rx + ry * ry + rz * rz); rx /= rlen; ry /= rlen; rz /= rlen; float slen = (float) Math.sqrt(sx * sx + sy * sy + sz * sz); sx /= slen; sy /= slen; sz /= slen; // now R and S are an orthonormal basis for the plane Gridded3DSet line = null; if (showLine) { // convert x=[-1,1] y=[-1,1] z=[-1,1] to x=[0,w] y=[0,h] z=[-1,1] float[][] lineSamples = { {w * (x + 1) / 2, w * (-x + 1) / 2}, {h * (y + 1) / 2, h * (-y + 1) / 2}, {z, -z} }; // construct line data object try { line = new Gridded3DSet(xyz, lineSamples, 2, null, null, null, false); } catch (VisADException exc) { exc.printStackTrace(); } } // compute slice data Data slice = null; if (compute) { // interpolate from parent data // compute plane corners from orthonormal basis float q1x = lx + T1COS * rx + T1SIN * sx; float q1y = ly + T1COS * ry + T1SIN * sy; float q1z = lz + T1COS * rz + T1SIN * sz; float q2x = lx + T2COS * rx + T2SIN * sx; float q2y = ly + T2COS * ry + T2SIN * sy; float q2z = lz + T2COS * rz + T2SIN * sz; float q3x = lx + T3COS * rx + T3SIN * sx; float q3y = ly + T3COS * ry + T3SIN * sy; float q3z = lz + T3COS * rz + T3SIN * sz; float q4x = lx + T4COS * rx + T4SIN * sx; float q4y = ly + T4COS * ry + T4SIN * sy; float q4z = lz + T4COS * rz + T4SIN * sz; float[][] planeSamples = { {w*(q1x + 1)/2, w*(q2x + 1)/2, w*(q3x + 1)/2, w*(q4x + 1)/2}, {h*(q1y + 1)/2, h*(q2y + 1)/2, h*(q3y + 1)/2, h*(q4y + 1)/2}, {q1z, q2z, q3z, q4z} }; // compute resampling grid for the current resolution int res1 = res - 1; float[][] grid = new float[2][res * res]; for (int j=0; j<res; j++) { for (int i=0; i<res; i++) { int index = j * res + i; grid[0][index] = (float) i / res1; grid[1][index] = (float) j / res1; } } // retrieve collapsed image stack from data cache int[] npos = getParentPos(pos); FlatField collapse = (FlatField) cache.getData(parent, npos, "collapse", 3); // if necessary, read in parent data int len = parent.getLengths()[axis]; FlatField[] fields = null; if (collapse == null) { fields = new FlatField[len]; for (int i=0; i<len; i++) { npos[axis] = i; Data data = parent.getData(npos, 2, cache); if (data == null || !(data instanceof FlatField)) { System.err.println(name + ": parent image plane #" + (i + 1) + " is not valid"); return null; } fields[i] = (FlatField) data; } try { // use image transform's recommended MathType and Units for (int i=0; i<len; i++) { fields[i] = VisUtil.switchType(fields[i], imageType, imageUnits); } // compile slices into a single volume and collapse collapse = VisUtil.collapse(VisUtil.makeField(fields, zType, -1, 1)); cache.putData(this, pos, "collapse", collapse); } catch (VisADException exc) { exc.printStackTrace(); } catch (RemoteException exc) { exc.printStackTrace(); } } // resample combined field onto arbitrary slice try { Gridded3DSet planeSet = new Gridded3DSet(xyz, planeSamples, 2, 2, null, null, null, false); Gridded3DSet gridSet = new Gridded3DSet(xyz, planeSet.gridToValue(grid), res, res, null, null, null, false); slice = collapse.resample(gridSet, Data.WEIGHTED_AVERAGE, Data.NO_ERRORS); } catch (VisADException exc) { exc.printStackTrace(); } catch (RemoteException exc) { exc.printStackTrace(); } } else { // construct bounding circle // compute circle coordinates from orthonormal basis int num = 32; float[][] samples = new float[3][num]; for (int i=0; i<num; i++) { double theta = i * 2 * Math.PI / num; float tcos = (float) (RADIUS3 * Math.cos(theta)); float tsin = (float) (RADIUS3 * Math.sin(theta)); float qx = lx + tcos * rx + tsin * sx; float qy = ly + tcos * ry + tsin * sy; float qz = lz + tcos * rz + tsin * sz; int ndx = (i < num / 2) ? i : (3 * num / 2 - i - 1); samples[0][ndx] = w * (qx + 1) / 2; samples[1][ndx] = h * (qy + 1) / 2; samples[2][ndx] = qz; } // construct bounding circle data object try { slice = new Gridded3DSet(xyz, samples, num / 2, 2, null, null, null, false); } catch (VisADException exc) { exc.printStackTrace(); } } Data[] data = showLine ? new Data[] {slice, line} : new Data[] {slice}; try { return new Tuple(data, false); } catch (VisADException exc) { exc.printStackTrace(); } catch (RemoteException exc) { exc.printStackTrace(); } return null; }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/6f30ffd6cab4956357e36ec8a5d52476a22b7b4b/ArbitrarySlice.java/buggy/loci/visbio/data/ArbitrarySlice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1910,
4303,
12,
474,
8526,
949,
16,
509,
2464,
16,
1910,
1649,
1247,
13,
288,
565,
309,
261,
3509,
480,
890,
13,
288,
1377,
2332,
18,
370,
18,
8222,
12,
529,
397,
6398,
2057,
29912,
7566,
397,
2464,
397,
7310,
1769,
1377,
327,
446,
31,
565,
289,
565,
368,
336,
2690,
1123,
628,
326,
982,
2510,
565,
3421,
4059,
518,
273,
261,
2040,
4059,
13,
982,
31,
565,
509,
341,
273,
518,
18,
588,
2040,
2384,
5621,
565,
509,
366,
273,
518,
18,
588,
2040,
2686,
5621,
565,
15987,
559,
619,
559,
273,
518,
18,
588,
60,
559,
5621,
565,
15987,
559,
677,
559,
273,
518,
18,
588,
61,
559,
5621,
565,
15987,
559,
998,
559,
273,
518,
18,
588,
62,
559,
5621,
565,
4284,
559,
21754,
273,
518,
18,
588,
559,
5621,
565,
8380,
8526,
1316,
7537,
273,
518,
18,
588,
2040,
7537,
5621,
565,
15987,
9038,
559,
14779,
273,
446,
31,
565,
775,
288,
14779,
273,
394,
15987,
9038,
559,
12,
92,
559,
16,
677,
559,
16,
998,
559,
1769,
289,
565,
1044,
261,
3282,
1880,
503,
3533,
13,
288,
3533,
18,
1188,
6332,
5621,
289,
565,
368,
1765,
272,
21570,
24244,
5513,
358,
24549,
5513,
364,
980,
565,
1645,
677,
2219,
25140,
273,
2361,
18,
1102,
380,
677,
2219,
342,
9259,
31,
565,
1645,
677,
2219,
39,
538,
273,
2361,
18,
14445,
12,
93,
2219,
25140,
1769,
565,
1645,
677,
2219,
55,
267,
273,
2361,
18,
21861,
12,
93,
2219,
25140,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1910,
4303,
12,
474,
8526,
949,
16,
509,
2464,
16,
1910,
1649,
1247,
13,
288,
565,
309,
261,
3509,
480,
890,
13,
288,
1377,
2332,
18,
370,
18,
8222,
12,
529,
397,
6398,
2057,
29912,
7566,
397,
2464,
397,
7310,
1769,
1377,
327,
446,
31,
565,
289,
565,
368,
336,
2690,
1123,
628,
326,
982,
2510,
565,
3421,
4059,
518,
273,
261,
2040,
4059,
13,
982,
31,
565,
509,
341,
273,
518,
18,
588,
2040,
2384,
5621,
565,
509,
366,
273,
518,
18,
588,
2040,
2686,
5621,
565,
15987,
559,
619,
559,
273,
518,
18,
588,
60,
559,
5621,
565,
15987,
559,
677,
559,
273,
518,
18,
588,
61,
559,
5621,
565,
15987,
559,
998,
559,
2
] |
|
NInt idc = virtual_poly.NInt_dynamic_cast(dc);
|
NInt dic = virtual_poly.NInt_dynamic_cast(ic);
|
public static void main(String argv[]) { NDouble d = new NDouble(3.5); NInt i = new NInt(2); // // These two natural 'copy' forms fail, only java and csharp // because no polymorphic return types are supported. // But we can live with this restriction, more or less. // // NDouble dc = d.copy(); // NInt ic = i.copy(); // // These two 'copy' forms work, but we end with plain NNumbers // NNumber dc = d.copy(); NNumber ic = i.copy(); // // The real problem is that there is no way to recover the // original NInt or NDouble objects, even when you try // to use the plain and natural C++ dynamic_cast operations, // since they fail: // NDouble ddc = virtual_poly.NDouble_dynamic_cast(dc); NInt idc = virtual_poly.NInt_dynamic_cast(dc); }
|
47242 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47242/8c7824b76e4dc85567abb6f2c7eff82f1251e62c/virtual_poly_runme.java/buggy/Examples/test-suite/java/virtual_poly_runme.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
423,
5265,
302,
273,
394,
423,
5265,
12,
23,
18,
25,
1769,
565,
423,
1702,
277,
273,
394,
423,
1702,
12,
22,
1769,
565,
368,
565,
368,
8646,
2795,
15145,
296,
3530,
11,
10138,
2321,
16,
1338,
2252,
471,
276,
674,
11441,
565,
368,
2724,
1158,
2952,
21976,
327,
1953,
854,
3260,
18,
377,
368,
12484,
732,
848,
8429,
598,
333,
9318,
16,
1898,
578,
5242,
18,
565,
368,
565,
368,
423,
5265,
6744,
273,
302,
18,
3530,
5621,
565,
368,
423,
1702,
13579,
273,
277,
18,
3530,
5621,
565,
368,
565,
368,
8646,
2795,
296,
3530,
11,
10138,
1440,
16,
1496,
732,
679,
225,
598,
7351,
423,
10072,
565,
368,
565,
423,
1854,
6744,
273,
302,
18,
3530,
5621,
565,
423,
1854,
13579,
273,
277,
18,
3530,
5621,
565,
368,
565,
368,
1021,
2863,
6199,
353,
716,
1915,
353,
1158,
4031,
358,
5910,
326,
377,
368,
2282,
423,
1702,
578,
423,
5265,
2184,
16,
5456,
1347,
1846,
775,
565,
368,
358,
999,
326,
7351,
471,
15145,
385,
9904,
5976,
67,
4155,
5295,
16,
377,
368,
3241,
2898,
2321,
30,
565,
368,
565,
423,
5265,
6957,
71,
273,
5024,
67,
16353,
18,
2908,
83,
1255,
67,
14507,
67,
4155,
12,
7201,
1769,
565,
423,
1702,
11681,
273,
5024,
67,
16353,
18,
50,
1702,
67,
14507,
67,
4155,
12,
335,
1769,
225,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
423,
5265,
302,
273,
394,
423,
5265,
12,
23,
18,
25,
1769,
565,
423,
1702,
277,
273,
394,
423,
1702,
12,
22,
1769,
565,
368,
565,
368,
8646,
2795,
15145,
296,
3530,
11,
10138,
2321,
16,
1338,
2252,
471,
276,
674,
11441,
565,
368,
2724,
1158,
2952,
21976,
327,
1953,
854,
3260,
18,
377,
368,
12484,
732,
848,
8429,
598,
333,
9318,
16,
1898,
578,
5242,
18,
565,
368,
565,
368,
423,
5265,
6744,
273,
302,
18,
3530,
5621,
565,
368,
423,
1702,
13579,
273,
277,
18,
3530,
5621,
565,
368,
565,
368,
8646,
2795,
296,
3530,
11,
10138,
1440,
16,
1496,
732,
679,
225,
598,
7351,
2
] |
public RubyModule defineModuleUnder(String name, RubyModule parentModule) {
|
public RubyModule defineModuleUnder(String name, SinglyLinkedList parentCRef) {
|
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { throw new MockException(); }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a1b8fc1d456e3d5c6e01579b88773383068aa85c/BaseMockRuby.java/buggy/test/org/jruby/test/BaseMockRuby.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
202,
202,
12849,
394,
7867,
503,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
16,
19817,
3120,
982,
3120,
13,
288,
202,
202,
12849,
394,
7867,
503,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} catch(ArrayIndexOutOfBoundsException exc) {
|
} catch (ArrayIndexOutOfBoundsException exc) {
|
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if(cmd.equals("Cancel")) { setVisible(false); value = null; } else if(cmd.equals("Select")) { if(list.getSelectedIndex() < 0) { return; } try { value = (String)list.getSelectedValue(); } catch(ArrayIndexOutOfBoundsException exc) { return; } setVisible(false); Main.SourceEntry sourceEntry = (Main.SourceEntry)functionMap.get(value); DebuggableScript script = sourceEntry.fnOrScript; if(script != null) { String sourceName = script.getSourceName(); int[] lns = script.getLineNumbers(); int lineNumber = -1; for (int i = 0; i != lns.length; ++i) { if(lineNumber == -1) { lineNumber = lns[i]; } else if(lns[i] < lineNumber) { lineNumber = lns[i]; } } FileWindow w = db.getFileWindow(sourceName); if(w == null) { (new CreateFileWindow(db, sourceName, sourceEntry.source.toString(), lineNumber)).run(); w = db.getFileWindow(sourceName); w.setPosition(-1); } int start = w.getPosition(lineNumber-1); int end = w.getPosition(lineNumber)-1; w.textArea.select(start); w.textArea.setCaretPosition(start); w.textArea.moveCaretPosition(end); try { w.show(); db.requestFocus(); w.requestFocus(); w.textArea.requestFocus(); } catch(Exception exc) { } } } }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
309,
12,
4172,
18,
14963,
2932,
6691,
6,
3719,
288,
5411,
16697,
12,
5743,
1769,
5411,
460,
273,
446,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
3391,
6,
3719,
288,
5411,
309,
12,
1098,
18,
588,
7416,
1016,
1435,
411,
374,
13,
288,
7734,
327,
31,
5411,
289,
5411,
775,
288,
7734,
460,
273,
261,
780,
13,
1098,
18,
588,
7416,
620,
5621,
5411,
289,
1044,
261,
1076,
30548,
3533,
13,
288,
7734,
327,
31,
5411,
289,
5411,
16697,
12,
5743,
1769,
5411,
12740,
18,
1830,
1622,
1084,
1622,
273,
261,
6376,
18,
1830,
1622,
13,
915,
863,
18,
588,
12,
1132,
1769,
5411,
4015,
8455,
3651,
2728,
273,
1084,
1622,
18,
4293,
1162,
3651,
31,
5411,
309,
12,
4263,
480,
446,
13,
288,
7734,
514,
28337,
273,
2728,
18,
588,
1830,
461,
5621,
7734,
509,
8526,
328,
2387,
273,
2728,
18,
588,
1670,
10072,
5621,
7734,
509,
13629,
273,
300,
21,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
480,
328,
2387,
18,
2469,
31,
965,
77,
13,
288,
10792,
309,
12,
1369,
1854,
422,
300,
21,
13,
288,
13491,
13629,
273,
328,
2387,
63,
77,
15533,
10792,
289,
469,
309,
12,
2370,
87,
63,
77,
65,
411,
13629,
13,
288,
13491,
13629,
273,
328,
2387,
63,
77,
15533,
10792,
289,
7734,
289,
7734,
1387,
3829,
341,
273,
1319,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
309,
12,
4172,
18,
14963,
2932,
6691,
6,
3719,
288,
5411,
16697,
12,
5743,
1769,
5411,
460,
273,
446,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
3391,
6,
3719,
288,
5411,
309,
12,
1098,
18,
588,
7416,
1016,
1435,
411,
374,
13,
288,
7734,
327,
31,
5411,
289,
5411,
775,
288,
7734,
460,
273,
261,
780,
13,
1098,
18,
588,
7416,
620,
5621,
5411,
289,
1044,
261,
1076,
30548,
3533,
13,
288,
7734,
327,
31,
5411,
289,
5411,
16697,
12,
5743,
1769,
5411,
12740,
18,
1830,
1622,
1084,
1622,
273,
261,
6376,
18,
1830,
1622,
2
] |
if (tracingEnabled) { logger.warn("Tracing is not supported for XSLT transformer bundled with Java 1.5."); }
|
private void updateCurrentTemplates(Document stylesheet) { assert resolver != null; try { boolean buggyXSLT = transformerFactory.getClass().getName(). equals("com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl") && System.getProperty("java.vm.version").startsWith("1.5."); if (!buggyXSLT) { transformerFactory.setURIResolver(tracingEnabled ? new TracingURIResolver(resolver) : resolver); } else { if (tracingEnabled) { logger.warn("Tracing is not supported for XSLT transformer bundled with Java 1.5."); } if (!(resolver instanceof JuxyURIResolver)) { logger.warn("Custom URI resolver is not supported for XSLT transformer bundled with Java 1.5."); } } DOMSource source = new DOMSource(stylesheet); // Setting system id to be in the current directory (we are using some file for that, // but it does not matter whether this file exists or not). // This system id is required to be able to resolve paths to // imported and included stylesheets source.setSystemId(new File("juxy-stylesheet.xsl").getCanonicalFile().toURI().toString()); currentTemplates = transformerFactory.newTemplates(source); } catch (TransformerConfigurationException ex) { throw new JuxyRuntimeException("Failed to create Templates object", ex); } catch (IOException e) { throw new JuxyRuntimeException("Failed to create Templates object", e); } }
|
3174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3174/57eb642d6d719c5c08c5f9e094f323ae2ab57e0c/TemplatesBuilderImpl.java/clean/src/org/tigris/juxy/builder/TemplatesBuilderImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
3935,
8218,
12,
2519,
13820,
13,
288,
565,
1815,
5039,
480,
446,
31,
565,
775,
288,
1377,
1250,
324,
5696,
93,
60,
4559,
56,
273,
8360,
1733,
18,
588,
797,
7675,
17994,
7675,
1850,
1606,
2932,
832,
18,
16924,
18,
3341,
18,
19211,
18,
92,
4316,
18,
7236,
18,
30903,
5111,
18,
313,
651,
18,
8319,
1733,
2828,
7923,
597,
1850,
2332,
18,
588,
1396,
2932,
6290,
18,
3489,
18,
1589,
20387,
17514,
1190,
2932,
21,
18,
25,
1199,
1769,
1377,
309,
16051,
925,
7797,
60,
4559,
56,
13,
288,
3639,
8360,
1733,
18,
542,
3098,
4301,
12,
20187,
1526,
692,
394,
17990,
3098,
4301,
12,
14122,
13,
294,
5039,
1769,
1377,
289,
469,
288,
3639,
309,
261,
20187,
1526,
13,
288,
1850,
1194,
18,
8935,
2932,
3403,
353,
486,
3260,
364,
20751,
8360,
324,
24467,
598,
5110,
404,
18,
25,
1199,
1769,
3639,
289,
3639,
309,
16051,
12,
14122,
1276,
804,
89,
1698,
3098,
4301,
3719,
288,
1850,
1194,
18,
8935,
2932,
3802,
3699,
5039,
353,
486,
3260,
364,
20751,
8360,
324,
24467,
598,
5110,
404,
18,
25,
1199,
1769,
3639,
289,
1377,
289,
1377,
4703,
1830,
1084,
273,
394,
4703,
1830,
12,
19403,
1769,
1377,
368,
13274,
2619,
612,
358,
506,
316,
326,
783,
1867,
261,
1814,
854,
1450,
2690,
585,
364,
716,
16,
1377,
368,
1496,
518,
1552,
486,
15177,
2856,
333,
585,
1704,
578,
486,
2934,
1377,
368,
1220,
2619,
612,
353,
1931,
358,
506,
7752,
358,
2245,
2953,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
3935,
8218,
12,
2519,
13820,
13,
288,
565,
1815,
5039,
480,
446,
31,
565,
775,
288,
1377,
1250,
324,
5696,
93,
60,
4559,
56,
273,
8360,
1733,
18,
588,
797,
7675,
17994,
7675,
1850,
1606,
2932,
832,
18,
16924,
18,
3341,
18,
19211,
18,
92,
4316,
18,
7236,
18,
30903,
5111,
18,
313,
651,
18,
8319,
1733,
2828,
7923,
597,
1850,
2332,
18,
588,
1396,
2932,
6290,
18,
3489,
18,
1589,
20387,
17514,
1190,
2932,
21,
18,
25,
1199,
1769,
1377,
309,
16051,
925,
7797,
60,
4559,
56,
13,
288,
3639,
8360,
1733,
18,
542,
3098,
4301,
12,
20187,
1526,
692,
394,
17990,
3098,
4301,
12,
14122,
13,
294,
5039,
1769,
1377,
289,
469,
288,
2
] |
|
if (activePart != null)
|
if (activePart != null) {
|
public void partClosed(IWorkbenchPart part) { IWorkbenchPart activePart = part.getSite().getPage().getActivePart(); if (activePart != null) // We are going to get a part activated message so don't bother setting the // action handler to null. This prevents enablement flash in the toolbar return; if (part == getActivePart()) setActionHandler(null); super.partClosed(part); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/RetargetAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/RetargetAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1087,
7395,
12,
45,
2421,
22144,
1988,
1087,
13,
288,
3639,
467,
2421,
22144,
1988,
2695,
1988,
273,
1087,
18,
588,
4956,
7675,
588,
1964,
7675,
588,
3896,
1988,
5621,
3639,
309,
261,
3535,
1988,
480,
446,
13,
288,
5411,
368,
1660,
854,
8554,
358,
336,
279,
1087,
14892,
883,
1427,
2727,
1404,
23440,
3637,
326,
2398,
368,
1301,
1838,
358,
446,
18,
1220,
17793,
4237,
475,
9563,
316,
326,
12748,
5411,
327,
31,
3639,
309,
261,
2680,
422,
11960,
1988,
10756,
5411,
22517,
1503,
12,
2011,
1769,
3639,
2240,
18,
2680,
7395,
12,
2680,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1087,
7395,
12,
45,
2421,
22144,
1988,
1087,
13,
288,
3639,
467,
2421,
22144,
1988,
2695,
1988,
273,
1087,
18,
588,
4956,
7675,
588,
1964,
7675,
588,
3896,
1988,
5621,
3639,
309,
261,
3535,
1988,
480,
446,
13,
288,
5411,
368,
1660,
854,
8554,
358,
336,
279,
1087,
14892,
883,
1427,
2727,
1404,
23440,
3637,
326,
2398,
368,
1301,
1838,
358,
446,
18,
1220,
17793,
4237,
475,
9563,
316,
326,
12748,
5411,
327,
31,
3639,
309,
261,
2680,
422,
11960,
1988,
10756,
5411,
22517,
1503,
12,
2011,
1769,
3639,
2240,
18,
2680,
7395,
12,
2680,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void invokePartner(final PartnerRoleMessageExchange pxeMex) { boolean isTwoWay = pxeMex.getMessageExchangePattern() == com.fs.pxe.bpel.iapi.MessageExchange.MessageExchangePattern.REQUEST_RESPONSE; try { Document doc = DOMUtils.newDocument(); // TODO handle message style Element op = doc.createElement(pxeMex.getOperationName()); op.appendChild(doc.importNode(DOMUtils.getFirstChildElement(pxeMex.getRequest().getMessage()), true)); final OMElement payload = OMUtils.toOM(op); Options options = new Options(); EndpointReference axisEPR = new EndpointReference(((MutableEndpoint)pxeMex.getEndpointReference()).getUrl()); __log.debug("Axis2 sending message to " + axisEPR.getAddress() + " using MEX " + pxeMex); __log.debug("Message: " + payload); options.setTo(axisEPR); final ServiceClient serviceClient = new ServiceClient(); serviceClient.setOptions(options); if (isTwoWay) { // Invoking in a separate thread even though we're supposed to wait for a synchronous reply // to force clear transaction separation. Future<OMElement> freply = _executorService.submit(new Callable<OMElement>() { public OMElement call() throws Exception { return serviceClient.sendReceive(payload); } }); OMElement reply = null; try { reply = freply.get(); } catch (Exception e) { __log.error("We've been interrupted while waiting for reply to MEX " + pxeMex + "!!!"); String errmsg = "Error sending message to Axis2 for PXE mex " + pxeMex; __log.error(errmsg, e); pxeMex.replyWithFailure(MessageExchange.FailureType.COMMUNICATION_ERROR, errmsg, null); } final Message response = pxeMex.createMessage(pxeMex.getOperation().getOutput().getMessage().getQName()); Element responseElmt = OMUtils.toDOM(reply); __log.debug("Received synchronous response for MEX " + pxeMex); __log.debug("Message: " + DOMUtils.domToString(responseElmt)); response.setMessage(OMUtils.toDOM(reply)); pxeMex.reply(response); } else serviceClient.sendRobust(payload); } catch (AxisFault axisFault) { String errmsg = "Error sending message to Axis2 for PXE mex " + pxeMex; __log.error(errmsg, axisFault); pxeMex.replyWithFailure(MessageExchange.FailureType.COMMUNICATION_ERROR, errmsg, null); } }
|
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/3d5d00371b775dabb3a8e74de457bb4956027a11/AxisInvoker.java/clean/axis2/src/main/java/com/fs/pxe/axis2/AxisInvoker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4356,
1988,
1224,
12,
6385,
6393,
1224,
2996,
1079,
11688,
293,
6554,
49,
338,
13,
288,
565,
1250,
353,
11710,
21831,
273,
293,
6554,
49,
338,
18,
24906,
11688,
3234,
1435,
422,
5411,
532,
18,
2556,
18,
4430,
73,
18,
17152,
292,
18,
77,
2425,
18,
1079,
11688,
18,
1079,
11688,
3234,
18,
5519,
67,
14508,
31,
565,
775,
288,
1377,
4319,
997,
273,
4703,
1989,
18,
2704,
2519,
5621,
1377,
368,
2660,
1640,
883,
2154,
1377,
3010,
1061,
273,
997,
18,
2640,
1046,
12,
4430,
73,
49,
338,
18,
588,
2988,
461,
10663,
1377,
1061,
18,
6923,
1763,
12,
2434,
18,
5666,
907,
12,
8168,
1989,
18,
588,
3759,
1763,
1046,
12,
4430,
73,
49,
338,
18,
588,
691,
7675,
24906,
1435,
3631,
638,
10019,
1377,
727,
531,
12310,
2385,
273,
28839,
1989,
18,
869,
1872,
12,
556,
1769,
1377,
5087,
702,
273,
394,
5087,
5621,
1377,
6961,
2404,
2654,
41,
8025,
273,
394,
6961,
2404,
12443,
12,
19536,
3293,
13,
4430,
73,
49,
338,
18,
588,
3293,
2404,
1435,
2934,
588,
1489,
10663,
1377,
1001,
1330,
18,
4148,
2932,
6558,
22,
5431,
883,
358,
315,
397,
2654,
41,
8025,
18,
588,
1887,
1435,
397,
315,
1450,
490,
2294,
315,
397,
293,
6554,
49,
338,
1769,
1377,
1001,
1330,
18,
4148,
2932,
1079,
30,
315,
397,
2385,
1769,
1377,
702,
18,
542,
774,
12,
4890,
41,
8025,
1769,
1377,
727,
1956,
1227,
1156,
1227,
273,
394,
1956,
1227,
5621,
1377,
1156,
1227,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
1988,
1224,
12,
6385,
6393,
1224,
2996,
1079,
11688,
293,
6554,
49,
338,
13,
288,
565,
1250,
353,
11710,
21831,
273,
293,
6554,
49,
338,
18,
24906,
11688,
3234,
1435,
422,
5411,
532,
18,
2556,
18,
4430,
73,
18,
17152,
292,
18,
77,
2425,
18,
1079,
11688,
18,
1079,
11688,
3234,
18,
5519,
67,
14508,
31,
565,
775,
288,
1377,
4319,
997,
273,
4703,
1989,
18,
2704,
2519,
5621,
1377,
368,
2660,
1640,
883,
2154,
1377,
3010,
1061,
273,
997,
18,
2640,
1046,
12,
4430,
73,
49,
338,
18,
588,
2988,
461,
10663,
1377,
1061,
18,
6923,
1763,
12,
2434,
18,
5666,
907,
12,
8168,
1989,
18,
588,
3759,
1763,
1046,
12,
4430,
73,
49,
2
] |
||
this.cr = cr;
|
public SymbolReader( TableClassResolver cr, TypeSystem ts, ErrorQueue eq) { this.ts = ts; this.cr = cr; this.eq = eq; current = null; }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/e414d802d383f8a4d7300493ce46984dbdecb299/SymbolReader.java/buggy/src/polyglot/visit/SymbolReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
2514,
12,
3555,
797,
4301,
4422,
16,
1412,
3163,
3742,
16,
1068,
3183,
7555,
13,
225,
288,
565,
333,
18,
3428,
273,
3742,
31,
4202,
333,
18,
11253,
273,
7555,
31,
565,
783,
273,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8565,
2514,
12,
3555,
797,
4301,
4422,
16,
1412,
3163,
3742,
16,
1068,
3183,
7555,
13,
225,
288,
565,
333,
18,
3428,
273,
3742,
31,
4202,
333,
18,
11253,
273,
7555,
31,
565,
783,
273,
446,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
typeCompiler().compileConst( mv(), _value );
|
if (_value instanceof RangeValue) { compileConstArray( (RangeValue) _value ); } else { typeCompiler().compileConst( mv(), _value ); }
|
protected final void compileConst( Object _value ) throws CompilerException { typeCompiler().compileConst( mv(), _value ); }
|
57629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57629/8b45354f66024907dbbca5c0cd6fdf5a7131c11c/ExpressionCompiler.java/clean/src/classes/sej/internal/bytecode/compiler/ExpressionCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
4074,
9661,
12,
1033,
389,
1132,
262,
1216,
28227,
202,
95,
202,
202,
723,
9213,
7675,
11100,
9661,
12,
7701,
9334,
389,
1132,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
727,
918,
4074,
9661,
12,
1033,
389,
1132,
262,
1216,
28227,
202,
95,
202,
202,
723,
9213,
7675,
11100,
9661,
12,
7701,
9334,
389,
1132,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m_importFolderName = importFolderName; m_importPath = importPath; m_cms = cms;
|
public CmsImportFolder(String importFolderName, String importPath, CmsObject cms) throws CmsException { try { m_importFolderName = importFolderName; m_importPath = importPath; m_cms = cms; // open the import resource getImportResource(); // first lock the destination path m_cms.lockResource(m_importPath); // import the resources if (m_zipStreamIn == null) { importResources(m_importResource, m_importPath); } else { importZipResource(m_zipStreamIn, m_importPath, false); } // all is done, unlock the resources m_cms.unlockResource(m_importPath); } catch (Exception e) { throw new CmsVfsException(Messages.get().container( Messages.ERR_IMPORT_FOLDER_2, importFolderName, importPath), e); } }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/3490d71abdd2f86b3a1412c7e7311ab55b31ba53/CmsImportFolder.java/buggy/src/org/opencms/db/CmsImportFolder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
5010,
3899,
12,
780,
1930,
26169,
16,
514,
30336,
16,
14371,
6166,
13,
565,
1216,
11228,
288,
3639,
775,
288,
5411,
312,
67,
5666,
26169,
273,
1930,
26169,
31,
5411,
312,
67,
5666,
743,
273,
30336,
31,
5411,
312,
67,
6851,
273,
6166,
31,
5411,
368,
1696,
326,
1930,
1058,
5411,
336,
5010,
1420,
5621,
5411,
368,
1122,
2176,
326,
2929,
589,
5411,
312,
67,
6851,
18,
739,
1420,
12,
81,
67,
5666,
743,
1769,
5411,
368,
1930,
326,
2703,
5411,
309,
261,
81,
67,
4450,
1228,
382,
422,
446,
13,
288,
7734,
1930,
3805,
12,
81,
67,
5666,
1420,
16,
312,
67,
5666,
743,
1769,
5411,
289,
469,
288,
7734,
1930,
9141,
1420,
12,
81,
67,
4450,
1228,
382,
16,
312,
67,
5666,
743,
16,
629,
1769,
5411,
289,
5411,
368,
777,
353,
2731,
16,
7186,
326,
2703,
5411,
312,
67,
6851,
18,
26226,
1420,
12,
81,
67,
5666,
743,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
604,
394,
2149,
25908,
503,
12,
5058,
18,
588,
7675,
3782,
12,
7734,
4838,
18,
9712,
67,
20445,
67,
17357,
67,
22,
16,
7734,
1930,
26169,
16,
7734,
30336,
3631,
425,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
5010,
3899,
12,
780,
1930,
26169,
16,
514,
30336,
16,
14371,
6166,
13,
565,
1216,
11228,
288,
3639,
775,
288,
5411,
312,
67,
5666,
26169,
273,
1930,
26169,
31,
5411,
312,
67,
5666,
743,
273,
30336,
31,
5411,
312,
67,
6851,
273,
6166,
31,
5411,
368,
1696,
326,
1930,
1058,
5411,
336,
5010,
1420,
5621,
5411,
368,
1122,
2176,
326,
2929,
589,
5411,
312,
67,
6851,
18,
739,
1420,
12,
81,
67,
5666,
743,
1769,
5411,
368,
1930,
326,
2703,
5411,
309,
261,
81,
67,
4450,
1228,
382,
422,
446,
13,
288,
7734,
1930,
3805,
12,
81,
67,
5666,
1420,
16,
312,
67,
5666,
743,
1769,
5411,
289,
469,
288,
7734,
1930,
9141,
1420,
12,
81,
2
] |
|
public JFrame(String title)
|
public JFrame()
|
public JFrame(String title) { super(title); frameInit(); }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/d092ccafae9945813bbf1be1db3d5e5bd006a90b/JFrame.java/buggy/libjava/javax/swing/JFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
3219,
1435,
565,
288,
202,
9565,
12,
2649,
1769,
202,
3789,
2570,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
804,
3219,
1435,
565,
288,
202,
9565,
12,
2649,
1769,
202,
3789,
2570,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (startMillis < afterMillis && repeatCount == 0) return null;
|
if (startMillis < afterMillis && repeatCount == 0) { return null; }
|
public Date getFireTimeAfter(Date afterTime) { if (complete) return null; if ((timesTriggered > repeatCount) && (repeatCount != REPEAT_INDEFINITELY)) return null; if (afterTime == null) afterTime = new Date(); if (repeatCount == 0 && afterTime.compareTo(getStartTime()) >= 0) return null; long startMillis = getStartTime().getTime(); long afterMillis = afterTime.getTime(); long endMillis = (getEndTime() == null) ? Long.MAX_VALUE : getEndTime() .getTime(); if (endMillis <= afterMillis) return null; if (startMillis < afterMillis && repeatCount == 0) return null; if (afterMillis < startMillis) return new Date(startMillis); long numberoftimesexecutedplusone = ((afterMillis - startMillis) / repeatInterval) + 1; if ((numberoftimesexecutedplusone > repeatCount) && (repeatCount != REPEAT_INDEFINITELY)) return null; Date time = new Date((numberoftimesexecutedplusone * repeatInterval) + startMillis); if (endMillis <= time.getTime()) return null; return time; }
|
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/SimpleTrigger.java/clean/src/java/org/quartz/SimpleTrigger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2167,
2812,
577,
950,
4436,
12,
1626,
1839,
950,
13,
288,
3639,
309,
261,
6226,
13,
327,
446,
31,
3639,
309,
14015,
8293,
6518,
329,
405,
7666,
1380,
13,
7734,
597,
261,
9374,
1380,
480,
2438,
31804,
67,
706,
12348,
1285,
2247,
61,
3719,
327,
446,
31,
3639,
309,
261,
5205,
950,
422,
446,
13,
1839,
950,
273,
394,
2167,
5621,
3639,
309,
261,
9374,
1380,
422,
374,
597,
1839,
950,
18,
9877,
774,
12,
588,
13649,
10756,
1545,
374,
13,
5411,
327,
446,
31,
3639,
1525,
787,
4814,
273,
31953,
7675,
588,
950,
5621,
3639,
1525,
1839,
4814,
273,
1839,
950,
18,
588,
950,
5621,
3639,
1525,
679,
4814,
273,
261,
588,
25255,
1435,
422,
446,
13,
692,
3407,
18,
6694,
67,
4051,
294,
9968,
950,
1435,
7734,
263,
588,
950,
5621,
3639,
309,
261,
409,
4814,
1648,
1839,
4814,
13,
327,
446,
31,
3639,
309,
261,
1937,
4814,
411,
1839,
4814,
597,
7666,
1380,
422,
374,
13,
288,
327,
446,
31,
289,
3639,
309,
261,
5205,
4814,
411,
787,
4814,
13,
327,
394,
2167,
12,
1937,
4814,
1769,
3639,
1525,
1300,
4401,
4485,
4177,
4817,
10103,
476,
273,
14015,
5205,
4814,
300,
787,
4814,
13,
342,
7666,
4006,
13,
397,
404,
31,
3639,
309,
14015,
2696,
4401,
4485,
4177,
4817,
10103,
476,
405,
7666,
1380,
13,
7734,
597,
261,
9374,
1380,
480,
2438,
31804,
67,
706,
12348,
1285,
2247,
61,
3719,
327,
446,
31,
3639,
2167,
813,
273,
394,
2167,
12443,
2696,
4401,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2167,
2812,
577,
950,
4436,
12,
1626,
1839,
950,
13,
288,
3639,
309,
261,
6226,
13,
327,
446,
31,
3639,
309,
14015,
8293,
6518,
329,
405,
7666,
1380,
13,
7734,
597,
261,
9374,
1380,
480,
2438,
31804,
67,
706,
12348,
1285,
2247,
61,
3719,
327,
446,
31,
3639,
309,
261,
5205,
950,
422,
446,
13,
1839,
950,
273,
394,
2167,
5621,
3639,
309,
261,
9374,
1380,
422,
374,
597,
1839,
950,
18,
9877,
774,
12,
588,
13649,
10756,
1545,
374,
13,
5411,
327,
446,
31,
3639,
1525,
787,
4814,
273,
31953,
7675,
588,
950,
5621,
3639,
1525,
1839,
4814,
273,
1839,
950,
18,
588,
950,
5621,
3639,
1525,
679,
4814,
273,
261,
588,
25255,
1435,
422,
446,
2
] |
public IBinding[] findBindings(Pattern pattern) throws CoreException { return findBindings(new Pattern[] { pattern });
|
public IBinding[] findBindings(Pattern pattern, IProgressMonitor monitor) throws CoreException { return findBindings(new Pattern[] { pattern }, monitor);
|
public IBinding[] findBindings(Pattern pattern) throws CoreException { return findBindings(new Pattern[] { pattern }); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/eac22a6a7b2b193bd4c0ad4650c9ae961bf29e5f/PDOM.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5250,
8526,
1104,
10497,
12,
3234,
1936,
13,
1216,
30015,
288,
202,
202,
2463,
1104,
10497,
12,
2704,
6830,
8526,
288,
1936,
15549,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
5250,
8526,
1104,
10497,
12,
3234,
1936,
13,
1216,
30015,
288,
202,
202,
2463,
1104,
10497,
12,
2704,
6830,
8526,
288,
1936,
15549,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rd.close();
|
private static String findJarServiceProviderName(String factoryId) { SecuritySupport ss = SecuritySupport.getInstance(); String serviceId = SERVICES_PATH + factoryId; InputStream is = null; // First try the Context ClassLoader ClassLoader cl = findClassLoader(); is = ss.getResourceAsStream(cl, serviceId); // If no provider found then try the current ClassLoader if (is == null) { ClassLoader current = ObjectFactory.class.getClassLoader(); if (cl != current) { cl = current; is = ss.getResourceAsStream(cl, serviceId); } } if (is == null) { // No provider found return null; } debugPrintln("found jar resource=" + serviceId + " using ClassLoader: " + cl); // Read the service provider name in UTF-8 as specified in // the jar spec. Unfortunately this fails in Microsoft // VJ++, which does not implement the UTF-8 // encoding. Theoretically, we should simply let it fail in // that case, since the JVM is obviously broken if it // doesn't support such a basic standard. But since there // are still some users attempting to use VJ++ for // development, we have dropped in a fallback which makes a // second attempt using the platform's default encoding. In // VJ++ this is apparently ASCII, which is a subset of // UTF-8... and since the strings we'll be reading here are // also primarily limited to the 7-bit ASCII range (at // least, in English versions), this should work well // enough to keep us on the air until we're ready to // officially decommit from VJ++. [Edited comment from // jkesselm] BufferedReader rd; try { rd = new BufferedReader(new InputStreamReader(is, "UTF-8")); } catch (java.io.UnsupportedEncodingException e) { rd = new BufferedReader(new InputStreamReader(is)); } String factoryClassName = null; try { // XXX Does not handle all possible input as specified by the // Jar Service Provider specification factoryClassName = rd.readLine(); rd.close(); } catch (IOException x) { // No provider found return null; } if (factoryClassName != null && ! "".equals(factoryClassName)) { debugPrintln("found in resource, value=" + factoryClassName); // Note: here we do not want to fall back to the current // ClassLoader because we want to avoid the case where the // resource file was found using one ClassLoader and the // provider class was instantiated using a different one. return factoryClassName; } // No provider found return null; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/8715306de914fc3a40ff4ab45e0b32a46907ce9a/ObjectFactory.java/buggy/src/org/apache/xalan/xsltc/dom/ObjectFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1104,
10813,
16300,
461,
12,
780,
3272,
548,
13,
565,
288,
3639,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1442,
5621,
3639,
514,
17130,
273,
12828,
55,
67,
4211,
397,
3272,
548,
31,
3639,
5037,
353,
273,
446,
31,
3639,
368,
5783,
775,
326,
1772,
9403,
3639,
9403,
927,
273,
1104,
7805,
5621,
3639,
353,
273,
5202,
18,
588,
1420,
17052,
12,
830,
16,
17130,
1769,
3639,
368,
971,
1158,
2893,
1392,
1508,
775,
326,
783,
9403,
3639,
309,
261,
291,
422,
446,
13,
288,
5411,
9403,
783,
273,
1033,
1733,
18,
1106,
18,
588,
7805,
5621,
5411,
309,
261,
830,
480,
783,
13,
288,
7734,
927,
273,
783,
31,
7734,
353,
273,
5202,
18,
588,
1420,
17052,
12,
830,
16,
17130,
1769,
5411,
289,
3639,
289,
3639,
309,
261,
291,
422,
446,
13,
288,
5411,
368,
2631,
2893,
1392,
5411,
327,
446,
31,
3639,
289,
3639,
1198,
5108,
2370,
2932,
7015,
7334,
1058,
1546,
397,
17130,
397,
9079,
315,
1450,
9403,
30,
315,
397,
927,
1769,
3639,
368,
2720,
326,
1156,
2893,
508,
316,
6380,
17,
28,
487,
1269,
316,
3639,
368,
326,
7334,
857,
18,
225,
1351,
24233,
333,
6684,
316,
31125,
3639,
368,
776,
46,
9904,
16,
1492,
1552,
486,
2348,
326,
6380,
17,
28,
3639,
368,
2688,
18,
1021,
479,
88,
6478,
16,
732,
1410,
8616,
2231,
518,
2321,
316,
3639,
368,
716,
648,
16,
3241,
326,
14131,
353,
28067,
715,
12933,
309,
518,
3639,
368,
3302,
1404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1104,
10813,
16300,
461,
12,
780,
3272,
548,
13,
565,
288,
3639,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1442,
5621,
3639,
514,
17130,
273,
12828,
55,
67,
4211,
397,
3272,
548,
31,
3639,
5037,
353,
273,
446,
31,
3639,
368,
5783,
775,
326,
1772,
9403,
3639,
9403,
927,
273,
1104,
7805,
5621,
3639,
353,
273,
5202,
18,
588,
1420,
17052,
12,
830,
16,
17130,
1769,
3639,
368,
971,
1158,
2893,
1392,
1508,
775,
326,
783,
9403,
3639,
309,
261,
291,
422,
446,
13,
288,
5411,
9403,
783,
273,
1033,
1733,
18,
1106,
18,
588,
7805,
5621,
5411,
309,
261,
830,
480,
783,
13,
288,
7734,
927,
273,
783,
31,
7734,
353,
273,
5202,
2
] |
|
if (member.isNil()) { throw new RubyBugException("uninitialized struct"); }
|
Asserts.assertTrue(!member.isNil(), "uninitialized struct");
|
public RubyString inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getInternalClass().toName()).append(' '); for (int i = 0; i < member.getLength(); i++) { if (i > 0) { sb.append(", "); } sb.append(member.entry(i).toId()).append("="); sb.append(values[i].callMethod("inspect")); } sb.append('>'); return RubyString.newString(runtime, sb.toString()); // OBJ_INFECT }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyStruct.java/buggy/org/jruby/RubyStruct.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
5334,
1435,
288,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
309,
261,
5990,
18,
291,
12616,
10756,
288,
5411,
604,
394,
19817,
19865,
503,
2932,
318,
13227,
1958,
8863,
3639,
289,
3639,
6674,
2393,
273,
394,
6674,
12,
6625,
1769,
3639,
2393,
18,
6923,
2932,
7,
32,
20387,
6923,
12,
588,
3061,
797,
7675,
869,
461,
1435,
2934,
6923,
2668,
28005,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
77,
405,
374,
13,
288,
7734,
2393,
18,
6923,
2932,
16,
315,
1769,
5411,
289,
5411,
2393,
18,
6923,
12,
5990,
18,
4099,
12,
77,
2934,
869,
548,
1435,
2934,
6923,
2932,
1546,
1769,
5411,
2393,
18,
6923,
12,
2372,
63,
77,
8009,
1991,
1305,
2932,
12009,
7923,
1769,
3639,
289,
3639,
2393,
18,
6923,
2668,
1870,
1769,
3639,
327,
19817,
780,
18,
2704,
780,
12,
9448,
16,
2393,
18,
10492,
10663,
368,
9730,
46,
67,
19212,
4239,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
780,
5334,
1435,
288,
3639,
19817,
1076,
3140,
273,
261,
54,
10340,
1076,
13,
3694,
3092,
12,
1106,
951,
9334,
10425,
5990,
972,
8863,
3639,
309,
261,
5990,
18,
291,
12616,
10756,
288,
5411,
604,
394,
19817,
19865,
503,
2932,
318,
13227,
1958,
8863,
3639,
289,
3639,
6674,
2393,
273,
394,
6674,
12,
6625,
1769,
3639,
2393,
18,
6923,
2932,
7,
32,
20387,
6923,
12,
588,
3061,
797,
7675,
869,
461,
1435,
2934,
6923,
2668,
28005,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3140,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
309,
261,
77,
405,
374,
13,
288,
7734,
2393,
18,
6923,
2932,
16,
315,
1769,
5411,
289,
5411,
2393,
18,
6923,
2
] |
public abstract void layout(boolean flushCache);
|
public void layout(boolean flushCache) { }
|
public abstract void layout(boolean flushCache);
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a44e3679b294ff539fce71b7e835499b2c444fa7/AbstractTabFolder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/newapi/AbstractTabFolder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
918,
3511,
12,
6494,
3663,
1649,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8770,
918,
3511,
12,
6494,
3663,
1649,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
priorityCombo.setFont(composite.getFont());
|
protected void createAttributesArea(Composite parent) { super.createAttributesArea(parent); Composite composite = new Composite(parent, SWT.NONE); composite.setFont(parent.getFont()); GridLayout layout = new GridLayout(); layout.numColumns = 3; composite.setLayout(layout); Label label = new Label(composite, SWT.NONE); label.setFont(composite.getFont()); label.setText(MarkerMessages.propertiesDialog_priority); priorityCombo = new Combo(composite, SWT.READ_ONLY); priorityCombo.setItems(new String[] { PRIORITY_HIGH, PRIORITY_NORMAL, PRIORITY_LOW }); // Prevent Esc and Return from closing the dialog when the combo is active. priorityCombo.addTraverseListener(new TraverseListener() { public void keyTraversed(TraverseEvent e) { if (e.detail == SWT.TRAVERSE_ESCAPE || e.detail == SWT.TRAVERSE_RETURN) { e.doit = false; } } }); priorityCombo.setFont(composite.getFont()); priorityCombo.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (getMarker() == null) { Map initialAttributes = getInitialAttributes(); initialAttributes.put(IMarker.PRIORITY, new Integer( getPriorityFromDialog())); } markDirty(); } }); completedCheckbox = new Button(composite, SWT.CHECK); completedCheckbox.setFont(composite.getFont()); completedCheckbox.setText(MarkerMessages.propertiesDialog_completed); GridData gridData = new GridData(); gridData.horizontalIndent = convertHorizontalDLUsToPixels(20); completedCheckbox.setLayoutData(gridData); completedCheckbox.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (getMarker() == null) { Map initialAttributes = getInitialAttributes(); initialAttributes.put(IMarker.DONE, new Boolean( completedCheckbox.getSelection())); } markDirty(); } }); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f3da5529b69d5518db0d661a991e15321ee4a223/DialogTaskProperties.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogTaskProperties.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
2498,
5484,
12,
9400,
982,
13,
288,
3639,
2240,
18,
2640,
2498,
5484,
12,
2938,
1769,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
18,
2107,
3380,
273,
890,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,
67,
8457,
1769,
3639,
4394,
16156,
273,
394,
1286,
1075,
12,
27676,
16,
348,
8588,
18,
6949,
67,
10857,
1769,
3639,
4394,
16156,
18,
542,
3126,
12,
2704,
514,
8526,
288,
30193,
67,
29996,
16,
30193,
67,
15480,
16,
7734,
30193,
67,
4130,
15549,
3639,
368,
19412,
512,
1017,
471,
2000,
628,
7647,
326,
6176,
1347,
326,
16778,
353,
2695,
18,
3639,
4394,
16156,
18,
1289,
29654,
2223,
12,
2704,
2197,
2476,
2223,
1435,
288,
5411,
1071,
918,
498,
1609,
7548,
12,
29654,
1133,
425,
13,
288,
7734,
309,
261,
73,
18,
8992,
422,
348,
8588,
18,
20060,
28489,
67,
24849,
13491,
747,
425,
18,
8992,
422,
348,
8588,
18,
20060,
28489,
67,
14033,
13,
288,
10792,
425,
18,
2896,
305,
273,
629,
31,
7734,
289,
5411,
289,
3639,
15549,
9079,
4394,
16156,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
2498,
5484,
12,
9400,
982,
13,
288,
3639,
2240,
18,
2640,
2498,
5484,
12,
2938,
1769,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
5621,
3639,
3511,
18,
2107,
3380,
273,
890,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
5287,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
9826,
1769,
3639,
1433,
18,
542,
5711,
12,
27676,
18,
588,
5711,
10663,
3639,
1433,
18,
542,
1528,
12,
7078,
5058,
18,
4738,
6353,
67,
8457,
1769,
3639,
4394,
16156,
273,
394,
1286,
1075,
12,
27676,
16,
2
] |
|
this.cg = new ClientGetter(this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.UPDATE_PRIORITY_CLASS, this, null); cg.start();
|
public NodeUpdater(Node n, boolean isAutoUpdateAllowed, FreenetURI URI, FreenetURI revocationURI) { super(); this.URI = URI; URI.setSuggestedEdition(Version.buildNumber()+1); this.revocationURI = revocationURI; this.revocationAlert = null; this.revocationDNFCounter = 0; this.node = n; node.nodeUpdater = this; this.currentVersion = Version.buildNumber(); this.availableVersion = currentVersion; this.hasBeenBlown = false; this.isRunning = true; this.isAutoUpdateAllowed = isAutoUpdateAllowed; this.cg = null; this.isFetching = false; this.alert= new UpdatedVersionAvailableUserAlert(currentVersion, this); alert.isValid(false); node.alerts.register(alert); FetcherContext tempContext = n.makeClient((short)0).getFetcherContext(); tempContext.allowSplitfiles = true; tempContext.dontEnterImplicitArchives = false; this.ctx = tempContext; ctxRevocation = n.makeClient((short)0).getFetcherContext(); ctxRevocation.allowSplitfiles = false; ctxRevocation.cacheLocalRequests = false; ctxRevocation.maxArchiveLevels = 1; // big enough ? ctxRevocation.maxOutputLength = 4096; ctxRevocation.maxTempLength = 4096; ctxRevocation.maxSplitfileBlockRetries = -1; // if we find content, try forever to get it. ctxRevocation.maxNonSplitfileRetries = 0; // but return quickly normally try{ USK myUsk=USK.create(URI.setSuggestedEdition(currentVersion)); ctx.uskManager.subscribe(myUsk, this, true); ctx.uskManager.startTemporaryBackgroundFetcher(myUsk); this.cg = new ClientGetter(this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.UPDATE_PRIORITY_CLASS, this, null); cg.start(); }catch(MalformedURLException e){ Logger.error(this,"The auto-update URI isn't valid and can't be used"); blow("The auto-update URI isn't valid and can't be used"); } catch (FetchException e) { Logger.error(this, "Not able to start the revocation fetcher."); blow("Cannot fetch the auto-update URI"); } }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/5859c6306e314e2f206e8b2a0755dd48185083d4/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
15305,
12,
907,
290,
16,
1250,
27079,
1891,
5042,
16,
478,
2842,
278,
3098,
3699,
16,
478,
2842,
278,
3098,
24158,
3098,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
3098,
273,
3699,
31,
202,
202,
3098,
18,
542,
55,
28892,
41,
1460,
12,
1444,
18,
3510,
1854,
1435,
15,
21,
1769,
202,
202,
2211,
18,
9083,
4431,
3098,
273,
24158,
3098,
31,
202,
202,
2211,
18,
9083,
4431,
13298,
273,
446,
31,
202,
202,
2211,
18,
9083,
4431,
8609,
4488,
2096,
273,
374,
31,
202,
202,
2211,
18,
2159,
273,
290,
31,
202,
202,
2159,
18,
2159,
15305,
273,
333,
31,
202,
202,
2211,
18,
2972,
1444,
273,
4049,
18,
3510,
1854,
5621,
202,
202,
2211,
18,
5699,
1444,
273,
23344,
31,
202,
202,
2211,
18,
5332,
25931,
38,
821,
82,
273,
629,
31,
202,
202,
2211,
18,
291,
7051,
273,
638,
31,
202,
202,
2211,
18,
291,
4965,
1891,
5042,
273,
27079,
1891,
5042,
31,
202,
202,
2211,
18,
26275,
273,
446,
31,
202,
202,
2211,
18,
291,
30806,
273,
629,
31,
9506,
202,
2211,
18,
11798,
33,
394,
19301,
1444,
5268,
1299,
13298,
12,
2972,
1444,
16,
333,
1769,
202,
202,
11798,
18,
26810,
12,
5743,
1769,
202,
202,
2159,
18,
11798,
87,
18,
4861,
12,
11798,
1769,
9506,
202,
16855,
1042,
1906,
1042,
273,
290,
18,
6540,
1227,
12443,
6620,
13,
20,
2934,
588,
16855,
1042,
5621,
9506,
202,
5814,
1042,
18,
5965,
5521,
2354,
273,
638,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
15305,
12,
907,
290,
16,
1250,
27079,
1891,
5042,
16,
478,
2842,
278,
3098,
3699,
16,
478,
2842,
278,
3098,
24158,
3098,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
3098,
273,
3699,
31,
202,
202,
3098,
18,
542,
55,
28892,
41,
1460,
12,
1444,
18,
3510,
1854,
1435,
15,
21,
1769,
202,
202,
2211,
18,
9083,
4431,
3098,
273,
24158,
3098,
31,
202,
202,
2211,
18,
9083,
4431,
13298,
273,
446,
31,
202,
202,
2211,
18,
9083,
4431,
8609,
4488,
2096,
273,
374,
31,
202,
202,
2211,
18,
2159,
273,
290,
31,
202,
202,
2159,
18,
2159,
15305,
273,
333,
31,
202,
202,
2211,
18,
2972,
1444,
273,
4049,
18,
3510,
1854,
2
] |
|
Object[] types = null;
|
IType[] types = null;
|
protected void handleSearchButtonSelected() { IJavaProject javaProject = getJavaProject(); IJavaSearchScope searchScope = null; if ((javaProject == null) || !javaProject.exists()) { searchScope = SearchEngine.createWorkspaceScope(); } else { searchScope = SearchEngine.createJavaSearchScope( new IJavaElement[] { javaProject }, false); } int constraints = IJavaElementSearchConstants.CONSIDER_BINARIES; if (fSearchExternalJarsCheckButton.getSelection()) { constraints |= IJavaElementSearchConstants.CONSIDER_EXTERNAL_JARS; } AJMainMethodSearchEngine engine = new AJMainMethodSearchEngine(); Object[] types = null; try { types = engine.searchMainMethodsIncludingAspects( getLaunchConfigurationDialog(), searchScope, constraints, fConsiderInheritedMainButton.getSelection()); } catch (InvocationTargetException e) { setErrorMessage(e.getMessage()); return; } catch (InterruptedException e) { setErrorMessage(e.getMessage()); return; } Shell shell = getShell(); SelectionDialog dialog = new AJMainTypeSelectionDialog(shell, types); dialog.setTitle(LauncherMessages.JavaMainTab_Choose_Main_Type_11); //$NON-NLS-1$ dialog.setMessage(LauncherMessages.JavaMainTab_Choose_a_main__type_to_launch__12); //$NON-NLS-1$ if (dialog.open() == Window.CANCEL) { return; } Object[] results = dialog.getResult(); if ((results == null) || (results.length < 1)) { return; } Object type = results[0]; if (type instanceof IType) { fMainText.setText(((IType) type).getFullyQualifiedName()); javaProject = ((IType) type).getJavaProject(); fProjText.setText(javaProject.getElementName()); } else if (type instanceof Object[]) { IProgramElement element = (IProgramElement) ((Object[]) type)[0]; IProject project = (IProject) ((Object[]) type)[1]; fMainText.setText(element.getPackageName() + "." + element.getName()); //$NON-NLS-1$ IJavaProject jp = JavaCore.create(project); fProjText.setText(jp.getElementName()); } }
|
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/f039079cdc6443175abd2cb420c12f386f19f511/AspectJMainTab.java/clean/org.eclipse.ajdt.ui/src31/org/eclipse/ajdt/internal/launching/AspectJMainTab.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
2979,
3616,
7416,
1435,
288,
202,
202,
45,
5852,
4109,
2252,
4109,
273,
18911,
4109,
5621,
202,
202,
45,
5852,
2979,
3876,
1623,
3876,
273,
446,
31,
202,
202,
430,
14015,
6290,
4109,
422,
446,
13,
747,
401,
6290,
4109,
18,
1808,
10756,
288,
1082,
202,
3072,
3876,
273,
5167,
4410,
18,
2640,
8241,
3876,
5621,
202,
202,
97,
469,
288,
1082,
202,
3072,
3876,
273,
5167,
4410,
18,
2640,
5852,
2979,
3876,
12,
6862,
202,
2704,
467,
5852,
1046,
8526,
288,
2252,
4109,
19879,
629,
1769,
202,
202,
97,
202,
202,
474,
6237,
273,
467,
5852,
1046,
2979,
2918,
18,
2248,
30287,
654,
67,
12615,
985,
8805,
31,
202,
202,
430,
261,
74,
2979,
6841,
46,
5913,
1564,
3616,
18,
588,
6233,
10756,
288,
1082,
202,
11967,
5626,
467,
5852,
1046,
2979,
2918,
18,
2248,
30287,
654,
67,
2294,
11702,
67,
46,
985,
55,
31,
202,
202,
97,
202,
202,
37,
46,
6376,
1305,
2979,
4410,
4073,
273,
394,
432,
46,
6376,
1305,
2979,
4410,
5621,
202,
202,
921,
8526,
1953,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
2352,
273,
4073,
18,
3072,
6376,
4712,
382,
18596,
17468,
87,
12,
6862,
202,
588,
9569,
1750,
6353,
9334,
1623,
3876,
16,
6237,
16,
6862,
202,
74,
9054,
3585,
29078,
6376,
3616,
18,
588,
6233,
10663,
202,
202,
97,
1044,
261,
9267,
14950,
425,
13,
288,
1082,
202,
542,
14935,
12,
73,
18,
24906,
10663,
1082,
202,
2463,
31,
202,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
2979,
3616,
7416,
1435,
288,
202,
202,
45,
5852,
4109,
2252,
4109,
273,
18911,
4109,
5621,
202,
202,
45,
5852,
2979,
3876,
1623,
3876,
273,
446,
31,
202,
202,
430,
14015,
6290,
4109,
422,
446,
13,
747,
401,
6290,
4109,
18,
1808,
10756,
288,
1082,
202,
3072,
3876,
273,
5167,
4410,
18,
2640,
8241,
3876,
5621,
202,
202,
97,
469,
288,
1082,
202,
3072,
3876,
273,
5167,
4410,
18,
2640,
5852,
2979,
3876,
12,
6862,
202,
2704,
467,
5852,
1046,
8526,
288,
2252,
4109,
19879,
629,
1769,
202,
202,
97,
202,
202,
474,
6237,
273,
467,
5852,
1046,
2979,
2918,
18,
2248,
30287,
654,
67,
12615,
985,
8805,
31,
202,
202,
430,
261,
74,
2
] |
Iterator values = lineBackgrounds.values().iterator();
|
Enumeration values = lineBackgrounds.elements();
|
void createPrinterColors() { Iterator values = lineBackgrounds.values().iterator(); printerColors = new Hashtable(); while (values.hasNext()) { StyledTextEvent event = (StyledTextEvent) values.next(); event.lineBackground = getPrinterColor(event.lineBackground); } values = lineStyles.values().iterator(); while (values.hasNext()) { StyledTextEvent event = (StyledTextEvent) values.next(); for (int i = 0; i < event.styles.length; i++) { StyleRange style = event.styles[i]; Color printerBackground = getPrinterColor(style.background); Color printerForeground = getPrinterColor(style.foreground); if (printerBackground != style.background || printerForeground != style.foreground) { style = (StyleRange) style.clone(); style.background = printerBackground; style.foreground = printerForeground; event.styles[i] = style; } } } }
|
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/4034e6595fa325be672a1d53fb7aab865bc83508/StyledText.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
752,
12149,
12570,
1435,
288,
202,
202,
3198,
924,
273,
980,
8199,
87,
18,
2372,
7675,
9838,
5621,
202,
202,
30439,
12570,
273,
394,
18559,
5621,
202,
202,
17523,
261,
2372,
18,
5332,
2134,
10756,
288,
1082,
202,
24273,
1259,
1528,
1133,
871,
273,
261,
24273,
1259,
1528,
1133,
13,
924,
18,
4285,
5621,
1082,
202,
2575,
18,
1369,
8199,
273,
8248,
2761,
2957,
12,
2575,
18,
1369,
8199,
1769,
202,
202,
97,
9506,
202,
2372,
273,
980,
9725,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
2372,
18,
5332,
2134,
10756,
288,
1082,
202,
24273,
1259,
1528,
1133,
871,
273,
261,
24273,
1259,
1528,
1133,
13,
924,
18,
4285,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
871,
18,
10218,
18,
2469,
31,
277,
27245,
288,
9506,
202,
2885,
2655,
2154,
273,
871,
18,
10218,
63,
77,
15533,
9506,
202,
2957,
12539,
8199,
273,
8248,
2761,
2957,
12,
4060,
18,
9342,
1769,
9506,
202,
2957,
12539,
23206,
273,
8248,
2761,
2957,
12,
4060,
18,
1405,
2915,
1769,
6862,
9506,
202,
430,
261,
30439,
8199,
480,
2154,
18,
9342,
747,
4405,
202,
30439,
23206,
480,
2154,
18,
1405,
2915,
13,
288,
6862,
202,
4060,
273,
261,
2885,
2655,
13,
2154,
18,
14056,
5621,
6862,
202,
4060,
18,
9342,
273,
12539,
8199,
31,
6862,
202,
4060,
18,
1405,
2915,
273,
12539,
23206,
31,
6862,
202,
2575,
18,
10218,
63,
77,
65,
273,
2154,
31,
9506,
202,
97,
1082,
202,
97,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
752,
12149,
12570,
1435,
288,
202,
202,
3198,
924,
273,
980,
8199,
87,
18,
2372,
7675,
9838,
5621,
202,
202,
30439,
12570,
273,
394,
18559,
5621,
202,
202,
17523,
261,
2372,
18,
5332,
2134,
10756,
288,
1082,
202,
24273,
1259,
1528,
1133,
871,
273,
261,
24273,
1259,
1528,
1133,
13,
924,
18,
4285,
5621,
1082,
202,
2575,
18,
1369,
8199,
273,
8248,
2761,
2957,
12,
2575,
18,
1369,
8199,
1769,
202,
202,
97,
9506,
202,
2372,
273,
980,
9725,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
2372,
18,
5332,
2134,
10756,
288,
1082,
202,
24273,
1259,
1528,
1133,
871,
273,
261,
24273,
1259,
1528,
1133,
13,
924,
18,
4285,
5621,
1082,
202,
1884,
261,
2
] |
SymbolParser sParser = alpha.getParser("token");
|
SymbolTokenization sParser = alpha.getTokenization("token");
|
public static void main(String[] args) { try { if(args.length != 3) { throw new Exception("Use: indexName format alphabet"); } String indexName = args[0]; File indexFile = new File(indexName); File indexList = new File(indexName + ".list"); String formatName = args[1]; String alphaName = args[2]; Alphabet alpha = resolveAlphabet(alphaName); SymbolParser sParser = alpha.getParser("token"); SequenceFormat sFormat = null; SequenceBuilderFactory sFact = null; if(formatName.equals("fasta")) { sFormat = new FastaFormat(); sFact = new FastaDescriptionLineParser.Factory(SimpleSequenceBuilder.FACTORY); } else if(formatName.equals("embl")) { sFormat = new EmblLikeFormat(); sFact = new EmblProcessor.Factory(SimpleSequenceBuilder.FACTORY); } else if (formatName.equals("swissprot")) { sFormat = new EmblLikeFormat(); sFact = new SwissprotProcessor.Factory(SimpleSequenceBuilder.FACTORY); } else { throw new Exception("Format must be one of {embl, fasta, swissprot}"); } TabIndexStore tis = new TabIndexStore( indexFile, indexList, indexName, sFormat, sFact, sParser ); } catch (Throwable t) { t.printStackTrace(); System.exit(1); } }
|
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/dc85887a33c205a436fc07652121baa883967ac0/CreateIndex.java/clean/demos/seq/db/CreateIndex.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
775,
288,
1377,
309,
12,
1968,
18,
2469,
480,
890,
13,
288,
3639,
604,
394,
1185,
2932,
3727,
30,
12753,
740,
10877,
8863,
1377,
289,
1377,
514,
12753,
273,
833,
63,
20,
15533,
1377,
1387,
770,
812,
273,
394,
1387,
12,
1615,
461,
1769,
1377,
1387,
770,
682,
273,
394,
1387,
12,
1615,
461,
397,
3552,
1098,
8863,
1377,
514,
740,
461,
273,
833,
63,
21,
15533,
1377,
514,
4190,
461,
273,
833,
63,
22,
15533,
1377,
2262,
8907,
4190,
273,
2245,
27316,
12,
5429,
461,
1769,
1377,
8565,
1345,
1588,
272,
2678,
273,
4190,
18,
588,
1345,
1588,
2932,
2316,
8863,
5411,
8370,
1630,
272,
1630,
273,
446,
31,
1377,
8370,
20692,
272,
9766,
273,
446,
31,
1377,
309,
12,
2139,
461,
18,
14963,
2932,
13294,
6,
3719,
288,
202,
225,
272,
1630,
273,
394,
9545,
69,
1630,
5621,
202,
225,
272,
9766,
273,
394,
9545,
69,
3291,
1670,
2678,
18,
1733,
12,
5784,
4021,
1263,
18,
16193,
1769,
1377,
289,
469,
309,
12,
2139,
461,
18,
14963,
2932,
351,
3083,
6,
3719,
288,
202,
225,
272,
1630,
273,
394,
13900,
80,
8804,
1630,
5621,
202,
225,
272,
9766,
273,
394,
13900,
80,
5164,
18,
1733,
12,
5784,
4021,
1263,
18,
16193,
1769,
1377,
289,
469,
309,
261,
2139,
461,
18,
14963,
2932,
5328,
1054,
11815,
6,
3719,
288,
202,
225,
272,
1630,
273,
394,
13900,
80,
8804,
1630,
5621,
202,
225,
272,
9766,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
775,
288,
1377,
309,
12,
1968,
18,
2469,
480,
890,
13,
288,
3639,
604,
394,
1185,
2932,
3727,
30,
12753,
740,
10877,
8863,
1377,
289,
1377,
514,
12753,
273,
833,
63,
20,
15533,
1377,
1387,
770,
812,
273,
394,
1387,
12,
1615,
461,
1769,
1377,
1387,
770,
682,
273,
394,
1387,
12,
1615,
461,
397,
3552,
1098,
8863,
1377,
514,
740,
461,
273,
833,
63,
21,
15533,
1377,
514,
4190,
461,
273,
833,
63,
22,
15533,
1377,
2262,
8907,
4190,
273,
2245,
27316,
12,
5429,
461,
1769,
1377,
8565,
1345,
1588,
272,
2678,
273,
4190,
18,
588,
1345,
1588,
2932,
2316,
8863,
5411,
8370,
1630,
272,
1630,
2
] |
Locale.getDefault( ),
|
ULocale.getDefault( ),
|
public void renderLegend( IPrimitiveRenderer ipr, Legend lg, Map htRenderers ) throws ChartException { if ( !lg.isVisible( ) ) // CHECK VISIBILITY { return; } renderBlock( ipr, lg, StructureSource.createLegend( lg ) ); final IDisplayServer xs = getDevice( ).getDisplayServer( ); final double dScale = xs.getDpiResolution( ) / 72d; Bounds bo = lg.getBounds( ).scaledInstance( dScale ); Size sz = null; double dX, dY; if ( lg.getPosition( ) != Position.INSIDE_LITERAL ) { try { sz = lg.getPreferredSize( xs, cm, rtc ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } sz.scale( dScale ); // USE ANCHOR IN POSITIONING THE LEGEND CLIENT AREA WITHIN THE BLOCK // SLACK SPACE dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = 0; if ( lg.isSetAnchor( ) ) { int iAnchor = lg.getAnchor( ).getValue( ); // swap west/east if ( isRightToLeft( ) ) { if ( iAnchor == Anchor.EAST ) { iAnchor = Anchor.WEST; } else if ( iAnchor == Anchor.NORTH_EAST ) { iAnchor = Anchor.NORTH_WEST; } else if ( iAnchor == Anchor.SOUTH_EAST ) { iAnchor = Anchor.SOUTH_WEST; } else if ( iAnchor == Anchor.WEST ) { iAnchor = Anchor.EAST; } else if ( iAnchor == Anchor.NORTH_WEST ) { iAnchor = Anchor.NORTH_EAST; } else if ( iAnchor == Anchor.SOUTH_WEST ) { iAnchor = Anchor.SOUTH_EAST; } } switch ( iAnchor ) { case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : dY = bo.getTop( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : dY = bo.getTop( ) + bo.getHeight( ) - sz.getHeight( ); break; default : // CENTERED dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; break; } switch ( iAnchor ) { case Anchor.WEST : case Anchor.NORTH_WEST : dX = bo.getLeft( ); break; case Anchor.EAST : case Anchor.SOUTH_EAST : dX = bo.getLeft( ) + bo.getWidth( ) - sz.getWidth( ); break; default : // CENTERED dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; break; } } else { dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; } } else { // USE PREVIOUSLY COMPUTED POSITION IN THE GENERATOR FOR LEGEND // 'INSIDE' PLOT dX = bo.getLeft( ); dY = bo.getTop( ); sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) ); } // get cached legend info. final LegendLayoutHints lilh = rtc.getLegendLayoutHints( ); // consider legend title size. Label lgTitle = lg.getTitle( ); double lgTitleWidth = 0, lgTitleHeight = 0; double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0; final boolean bRenderLegendTitle = lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ); int iTitlePos = Position.ABOVE; if ( bRenderLegendTitle ) { lgTitle = LabelImpl.copyInstance( lgTitle ); if ( lilh != null ) { // use cached value Size titleSize = lilh.getTitleSize( ); lgTitleWidth = titleSize.getWidth( ); lgTitleHeight = titleSize.getHeight( ); } else { // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } lgTitleWidth = bb.getWidth( ); lgTitleHeight = bb.getHeight( ); } iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } switch ( iTitlePos ) { case Position.ABOVE : yOffset = lgTitleHeight; hOffset = -yOffset; break; case Position.BELOW : hOffset = -lgTitleHeight; break; case Position.LEFT : xOffset = lgTitleWidth; wOffset = -xOffset; break; case Position.RIGHT : wOffset = -lgTitleWidth; break; } } // RENDER THE LEGEND CLIENT AREA final ClientArea ca = lg.getClientArea( ); final Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); LineAttributes lia = ca.getOutline( ); bo = BoundsImpl.create( dX, dY, sz.getWidth( ), sz.getHeight( ) ); bo = bo.adjustedInstance( lgIns ); dX = bo.getLeft( ); dY = bo.getTop( ); // Adjust bounds. bo.delta( xOffset, yOffset, wOffset, hOffset ); dX = bo.getLeft( ); dY = bo.getTop( ); final double dBaseX = dX; final double dBaseY = dY; final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), RectangleRenderEvent.class ); // render client area shadow. if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( lia ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); ipr.drawRectangle( rre ); lia = LineAttributesImpl.copyInstance( lia ); lia.setVisible( true ); // SEPARATOR LINES MUST BE VISIBLE final SeriesDefinition[] seda = cm.getSeriesForLegend( ); // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation o = lg.getOrientation( ); final Direction d = lg.getDirection( ); final Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); final double maxWrappingSize = lg.getWrappingSize( ); final double dItemHeight = itm.getFullHeight( ); final double dHorizontalSpacing = 4; final double dVerticalSpacing = 4; double dSeparatorThickness = lia.getThickness( ); Insets insCA = ca.getInsets( ).scaledInstance( dScale ); Series seBase; ArrayList al; LegendItemRenderingHints lirh; Palette pa; int iPaletteCount; EList elPaletteEntries; Fill fPaletteEntry; final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); double dMaxX = boFull.getLeft( ) + boFull.getWidth( ) - ins.getRight( ) - lgIns.getRight( ); double dMaxY = boFull.getTop( ) + boFull.getHeight( ) - ins.getBottom( ) - lgIns.getBottom( ); // Calculate if minSlice applicable. String sMinSliceLabel = null; boolean bMinSliceApplied = false; if ( lilh != null ) { // use cached value. sMinSliceLabel = lilh.getMinSliceText( ); bMinSliceApplied = lilh.isMinSliceApplied( ); } else { boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataset type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( o.getValue( ) == Orientation.VERTICAL ) { double dXOffset = 0, dMaxW = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; Map columnCache = searchMaxColumnWidth( liha ); for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. // render legend item. dY += insCA.getTop( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dY += insCA.getTop( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); } } if ( j < seda.length - 1 ) { lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { renderSeparator( ipr, lg, lia, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dY += insCA.getTop( ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX, dY + dSeparatorThickness / 2, dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); } } if ( j < seda.length - 1 ) { lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { renderSeparator( ipr, lg, lia, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxW = 0; al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + // MAX ITEM WIDTH + RIGHT INSETS dXOffset += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dX += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dY = bo.getTop( ); // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX + dSeparatorThickness / 2, dY, bo.getHeight( ), Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } } else if ( o.getValue( ) == Orientation.HORIZONTAL ) { double dYOffset = 0, dMaxH = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; double dFullWidth = 0; dY += insCA.getTop( ); while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. dX += insCA.getLeft( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dX += insCA.getLeft( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); } } if ( j < seda.length - 1 ) { lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { renderSeparator( ipr, lg, lia, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxH = 0; dY += insCA.getTop( ); dX = bo.getLeft( ) + insCA.getLeft( ); al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ); } dYOffset += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dY += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dX = bo.getLeft( ) + insCA.getLeft( ); // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX, dY + dSeparatorThickness / 2, bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); } } if ( j < seda.length - 1 ) { lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { renderSeparator( ipr, lg, lia, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; dX += insCA.getLeft( ); dY += insCA.getTop( ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dFWidth + insCA.getRight( ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX + dSeparatorThickness / 2, dY, dMaxH, Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.orientation", //$NON-NLS-1$ new Object[]{ o.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } // Render legend title if defined. if ( bRenderLegendTitle ) { double lX = bo.getLeft( ); double lY = bo.getTop( ); switch ( iTitlePos ) { case Position.ABOVE : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) - lgTitleHeight; break; case Position.BELOW : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) + bo.getHeight( ); break; case Position.LEFT : lX = bo.getLeft( ) - lgTitleWidth; lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; case Position.RIGHT : lX = bo.getLeft( ) + bo.getWidth( ); lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; } final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( WrappedStructureSource.createLegendTitle( lg, lgTitle ), TextRenderEvent.class ); tre.setBlockBounds( BoundsImpl.create( lX, lY, lgTitleWidth, lgTitleHeight ) ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setLabel( lgTitle ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } itm.dispose( ); // DISPOSE RESOURCES AFTER USE }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ae8909f5c697c610266e491d0af9a02eed14e2e4/BaseRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
16812,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1635,
14049,
3420,
414,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
23623,
18,
291,
6207,
12,
262,
262,
368,
14565,
12596,
30310,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5902,
1768,
12,
277,
683,
16,
15266,
16,
13348,
1830,
18,
2640,
16812,
12,
15266,
262,
11272,
202,
202,
6385,
1599,
291,
1601,
2081,
9280,
273,
19512,
12,
262,
18,
588,
4236,
2081,
12,
11272,
202,
202,
6385,
1645,
302,
5587,
273,
9280,
18,
588,
40,
7259,
11098,
12,
262,
342,
19387,
72,
31,
202,
202,
5694,
800,
273,
15266,
18,
588,
5694,
12,
262,
18,
20665,
1442,
12,
302,
5587,
11272,
202,
202,
1225,
11262,
273,
446,
31,
202,
202,
9056,
302,
60,
16,
302,
61,
31,
202,
202,
430,
261,
15266,
18,
588,
2555,
12,
262,
480,
11010,
18,
706,
26498,
67,
23225,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
24575,
273,
15266,
18,
588,
16028,
1225,
12,
9280,
16,
5003,
16,
436,
5111,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
1185,
431,
262,
1082,
202,
95,
9506,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
25083,
202,
7984,
503,
18,
25230,
1360,
16,
25083,
202,
338,
11272,
1082,
202,
97,
1082,
202,
24575,
18,
5864,
12,
302,
5587,
11272,
1082,
202,
759,
14988,
31912,
2120,
26808,
1360,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
16812,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1635,
14049,
3420,
414,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
23623,
18,
291,
6207,
12,
262,
262,
368,
14565,
12596,
30310,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
5902,
1768,
12,
277,
683,
16,
15266,
16,
13348,
1830,
18,
2640,
16812,
12,
15266,
262,
11272,
202,
202,
6385,
1599,
291,
1601,
2081,
9280,
273,
19512,
12,
262,
18,
588,
4236,
2081,
12,
11272,
202,
202,
6385,
1645,
302,
5587,
273,
9280,
18,
588,
40,
7259,
11098,
12,
262,
342,
19387,
72,
31,
202,
202,
5694,
800,
273,
15266,
18,
588,
2
] |
for (int s = 0; s < segments.length; ++s) { Segment seg = segments[s]; Entry[] tab; synchronized(seg) { tab = table; } for (int i = s; i < tab.length; i+= segments.length) { for (Entry e = tab[i]; e != null; e = e.next) if (value.equals(e.value)) return true; }
|
for (int s = 0; s < segments.length; ++s) { Segment seg = segments[s]; Entry[] tab; synchronized (seg) { tab = table; } for (int i = s; i < tab.length; i += segments.length) { for (Entry e = tab[i]; e != null; e = e.next) if (value.equals(e.value)) return true; } } return false;
|
public boolean containsValue(Object value) { if (value == null) throw new NullPointerException(); for (int s = 0; s < segments.length; ++s) { Segment seg = segments[s]; Entry[] tab; synchronized(seg) { tab = table; } for (int i = s; i < tab.length; i+= segments.length) { for (Entry e = tab[i]; e != null; e = e.next) if (value.equals(e.value)) return true; } } return false; }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/ConcurrentHashMap.java/buggy/src/java/org/logicalcobwebs/concurrent/ConcurrentHashMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
620,
12,
921,
460,
13,
288,
565,
309,
261,
1132,
422,
446,
13,
604,
394,
10108,
5621,
565,
364,
261,
474,
272,
273,
374,
31,
272,
411,
5155,
18,
2469,
31,
965,
87,
13,
288,
1377,
10807,
2291,
273,
5155,
63,
87,
15533,
1377,
3841,
8526,
3246,
31,
1377,
3852,
12,
5680,
13,
288,
3246,
273,
1014,
31,
289,
1377,
364,
261,
474,
277,
273,
272,
31,
277,
411,
3246,
18,
2469,
31,
277,
15,
33,
5155,
18,
2469,
13,
288,
3639,
364,
261,
1622,
425,
273,
3246,
63,
77,
15533,
425,
480,
446,
31,
425,
273,
425,
18,
4285,
13,
6647,
309,
261,
1132,
18,
14963,
12,
73,
18,
1132,
3719,
5411,
327,
638,
31,
1377,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1914,
620,
12,
921,
460,
13,
288,
565,
309,
261,
1132,
422,
446,
13,
604,
394,
10108,
5621,
565,
364,
261,
474,
272,
273,
374,
31,
272,
411,
5155,
18,
2469,
31,
965,
87,
13,
288,
1377,
10807,
2291,
273,
5155,
63,
87,
15533,
1377,
3841,
8526,
3246,
31,
1377,
3852,
12,
5680,
13,
288,
3246,
273,
1014,
31,
289,
1377,
364,
261,
474,
277,
273,
272,
31,
277,
411,
3246,
18,
2469,
31,
277,
15,
33,
5155,
18,
2469,
13,
288,
3639,
364,
261,
1622,
425,
273,
3246,
63,
77,
15533,
425,
480,
446,
31,
425,
273,
425,
18,
4285,
13,
6647,
309,
261,
1132,
18,
14963,
12,
73,
18,
1132,
3719,
5411,
327,
638,
2
] |
TextAlignment ta = TextAlignmentImpl.create( ); FontDefinition font = FontDefinitionImpl.create( "SansSerif", 12, false, false, false, false, false, 0, ta ); return new SimpleStyle( font, ColorDefinitionImpl.BLACK( ), null, null, null );
|
return defaultStyle.copy( );
|
public IStyle getStyle( StyledComponent name ) { // Always return the default value. TextAlignment ta = TextAlignmentImpl.create( ); FontDefinition font = FontDefinitionImpl.create( "SansSerif", //$NON-NLS-1$ 12, false, false, false, false, false, 0, ta ); return new SimpleStyle( font, ColorDefinitionImpl.BLACK( ), null, null, null ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1a68696eeaf3d97a3d75bdf3bc939335158a8be5/SimpleProcessor.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/style/SimpleProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2885,
14210,
12,
934,
93,
1259,
1841,
508,
262,
202,
95,
202,
202,
759,
14178,
327,
326,
805,
460,
18,
202,
202,
1528,
11535,
13561,
273,
3867,
11535,
2828,
18,
2640,
12,
11272,
202,
202,
5711,
1852,
3512,
273,
10063,
1852,
2828,
18,
2640,
12,
315,
55,
634,
827,
430,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2138,
16,
629,
16,
629,
16,
629,
16,
629,
16,
629,
16,
374,
16,
13561,
11272,
202,
202,
2463,
394,
4477,
2885,
12,
3512,
16,
9506,
202,
2957,
1852,
2828,
18,
14618,
3649,
12,
262,
16,
9506,
202,
2011,
16,
9506,
202,
2011,
16,
9506,
202,
2011,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
2885,
14210,
12,
934,
93,
1259,
1841,
508,
262,
202,
95,
202,
202,
759,
14178,
327,
326,
805,
460,
18,
202,
202,
1528,
11535,
13561,
273,
3867,
11535,
2828,
18,
2640,
12,
11272,
202,
202,
5711,
1852,
3512,
273,
10063,
1852,
2828,
18,
2640,
12,
315,
55,
634,
827,
430,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2138,
16,
629,
16,
629,
16,
629,
16,
629,
16,
629,
16,
374,
16,
13561,
11272,
202,
202,
2463,
394,
4477,
2885,
12,
3512,
16,
9506,
202,
2957,
1852,
2828,
18,
14618,
3649,
12,
262,
16,
9506,
202,
2011,
16,
9506,
202,
2011,
16,
9506,
202,
2011,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100
] |
this.BASE_GROUP = aclManagerService.getBaseGroup();
|
this.CORE_GROUP = aclManagerService.getGroup("core");
|
private void initServices() throws PortletException { this.log.debug("Entering initServices()"); this.userManagerService = (UserManagerService)getPortletService(UserManagerService.class); this.aclManagerService = (AccessControlManagerService)getPortletService(AccessControlManagerService.class); this.log.debug("Exiting initServices()"); this.BASE_GROUP = aclManagerService.getBaseGroup(); }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/0f87e7b52510239417b9bdee64bcfac7b4e0788b/AccessControllerBean.java/clean/src/org/gridlab/gridsphere/portlets/core/beans/AccessControllerBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
5676,
1435,
5411,
1216,
21305,
503,
288,
3639,
333,
18,
1330,
18,
4148,
2932,
10237,
310,
1208,
5676,
1435,
8863,
3639,
333,
18,
1355,
1318,
1179,
273,
261,
1299,
1318,
1179,
13,
588,
18566,
1179,
12,
1299,
1318,
1179,
18,
1106,
1769,
3639,
333,
18,
10150,
1318,
1179,
273,
261,
16541,
1318,
1179,
13,
588,
18566,
1179,
12,
16541,
1318,
1179,
18,
1106,
1769,
3639,
333,
18,
1330,
18,
4148,
2932,
6767,
310,
1208,
5676,
1435,
8863,
3639,
333,
18,
15715,
67,
8468,
273,
7895,
1318,
1179,
18,
588,
1114,
2932,
3644,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
1208,
5676,
1435,
5411,
1216,
21305,
503,
288,
3639,
333,
18,
1330,
18,
4148,
2932,
10237,
310,
1208,
5676,
1435,
8863,
3639,
333,
18,
1355,
1318,
1179,
273,
261,
1299,
1318,
1179,
13,
588,
18566,
1179,
12,
1299,
1318,
1179,
18,
1106,
1769,
3639,
333,
18,
10150,
1318,
1179,
273,
261,
16541,
1318,
1179,
13,
588,
18566,
1179,
12,
16541,
1318,
1179,
18,
1106,
1769,
3639,
333,
18,
1330,
18,
4148,
2932,
6767,
310,
1208,
5676,
1435,
8863,
3639,
333,
18,
15715,
67,
8468,
273,
7895,
1318,
1179,
18,
588,
1114,
2932,
3644,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (parent == null) return new Path("");
|
if (parent == null) { return new Path(""); }
|
public IPath getPath() { if (parent == null) return new Path(""); //$NON-NLS-1$ return parent.getPath().append(getId()); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WizardCollectionElement.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardCollectionElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
743,
4339,
1435,
288,
3639,
309,
261,
2938,
422,
446,
13,
5411,
327,
394,
2666,
2932,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
327,
982,
18,
588,
743,
7675,
6923,
12,
26321,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
743,
4339,
1435,
288,
3639,
309,
261,
2938,
422,
446,
13,
5411,
327,
394,
2666,
2932,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
327,
982,
18,
588,
743,
7675,
6923,
12,
26321,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
UnixRuntime[] tasks = gd.tasks; synchronized(gd) {
|
UnixRuntime[] tasks = gs.tasks; synchronized(gs) {
|
void _started() { UnixRuntime[] tasks = gd.tasks; synchronized(gd) { if(pid != 0) { if(tasks[pid] == null || tasks[pid].pid != pid) throw new Error("should never happen"); } else { int newpid = -1; int nextPID = gd.nextPID; for(int i=nextPID;i<tasks.length;i++) if(tasks[i] == null) { newpid = i; break; } if(newpid == -1) for(int i=1;i<nextPID;i++) if(tasks[i] == null) { newpid = i; break; } if(newpid == -1) throw new ProcessTableFullExn(); pid = newpid; gd.nextPID = newpid + 1; } tasks[pid] = this; } }
|
4600 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4600/ba59dfdff778e2a1b0dbe38b19534a8e775f4a4b/UnixRuntime.java/buggy/src/org/ibex/nestedvm/UnixRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
389,
14561,
1435,
288,
3639,
9480,
5576,
8526,
4592,
273,
15551,
18,
9416,
31,
3639,
3852,
12,
19016,
13,
288,
5411,
309,
12,
6610,
480,
374,
13,
288,
7734,
309,
12,
9416,
63,
6610,
65,
422,
446,
747,
4592,
63,
6610,
8009,
6610,
480,
4231,
13,
604,
394,
1068,
2932,
13139,
5903,
5865,
8863,
5411,
289,
469,
288,
7734,
509,
394,
6610,
273,
300,
21,
31,
7734,
509,
1024,
16522,
273,
15551,
18,
4285,
16522,
31,
2398,
202,
565,
364,
12,
474,
277,
33,
4285,
16522,
31,
77,
32,
9416,
18,
2469,
31,
77,
27245,
309,
12,
9416,
63,
77,
65,
422,
446,
13,
288,
394,
6610,
273,
277,
31,
898,
31,
289,
2398,
202,
565,
309,
12,
2704,
6610,
422,
300,
21,
13,
364,
12,
474,
277,
33,
21,
31,
77,
32,
4285,
16522,
31,
77,
27245,
309,
12,
9416,
63,
77,
65,
422,
446,
13,
288,
394,
6610,
273,
277,
31,
898,
31,
289,
2398,
202,
565,
309,
12,
2704,
6610,
422,
300,
21,
13,
604,
394,
4389,
1388,
5080,
424,
82,
5621,
2398,
202,
565,
4231,
273,
394,
6610,
31,
7734,
15551,
18,
4285,
16522,
273,
394,
6610,
397,
404,
31,
5411,
289,
5411,
4592,
63,
6610,
65,
273,
333,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
389,
14561,
1435,
288,
3639,
9480,
5576,
8526,
4592,
273,
15551,
18,
9416,
31,
3639,
3852,
12,
19016,
13,
288,
5411,
309,
12,
6610,
480,
374,
13,
288,
7734,
309,
12,
9416,
63,
6610,
65,
422,
446,
747,
4592,
63,
6610,
8009,
6610,
480,
4231,
13,
604,
394,
1068,
2932,
13139,
5903,
5865,
8863,
5411,
289,
469,
288,
7734,
509,
394,
6610,
273,
300,
21,
31,
7734,
509,
1024,
16522,
273,
15551,
18,
4285,
16522,
31,
2398,
202,
565,
364,
12,
474,
277,
33,
4285,
16522,
31,
77,
32,
9416,
18,
2469,
31,
77,
27245,
309,
12,
9416,
63,
77,
65,
422,
446,
13,
288,
394,
6610,
273,
277,
31,
898,
31,
289,
2398,
202,
565,
309,
2
] |
.getProperty(MessageContextConstants.TRANSPORT_URL);
|
.getProperty(Constants.Configuration.TRANSPORT_URL);
|
public void invoke(MessageContext msgContext) throws AxisFault { try { OMOutputFormat format = new OMOutputFormat(); String charSetEnc = (String) msgContext .getProperty(MessageContext.CHARACTER_SET_ENCODING); if (charSetEnc != null) { format.setCharSetEncoding(charSetEnc); } else { OperationContext opctx = msgContext.getOperationContext(); if (opctx != null) { charSetEnc = (String) opctx .getProperty(MessageContext.CHARACTER_SET_ENCODING); } } /** * If the char set enc is still not found use the default */ if (charSetEnc == null) { charSetEnc = MessageContext.DEFAULT_CHAR_SET_ENCODING; } msgContext.setDoingMTOM(HTTPTransportUtils.doWriteMTOM(msgContext)); msgContext.setDoingREST(HTTPTransportUtils.isDoingREST(msgContext)); format.setSOAP11(msgContext.isSOAP11()); format.setDoOptimize(msgContext.isDoingMTOM()); format.setCharSetEncoding(charSetEnc); // Trasnport URL can be different from the WSA-To. So processing // that now. EndpointReference epr = null; String transportURL = (String) msgContext .getProperty(MessageContextConstants.TRANSPORT_URL); if (transportURL != null) { epr = new EndpointReference(transportURL); } else if ((msgContext.getTo() != null) && !AddressingConstants.Submission.WSA_ANONYMOUS_URL .equals(msgContext.getTo().getAddress()) && !AddressingConstants.Final .WSA_ANONYMOUS_URL .equals(msgContext.getTo().getAddress())) { epr = msgContext.getTo(); } // Check for the REST behaviour, if you desire rest beahaviour // put a <parameter name="doREST" value="true"/> at the // server.xml/client.xml file // ###################################################### // Change this place to change the wsa:toepr // epr = something // ###################################################### OMElement dataOut; /** * Figuringout the REST properties/parameters */ if (msgContext.isDoingREST()) { dataOut = msgContext.getEnvelope().getBody().getFirstElement(); } else { dataOut = msgContext.getEnvelope(); } if (epr != null) { if (!epr.getAddress().equals(AddressingConstants.Final.WSA_NONE_URI)) { writeMessageWithCommons(msgContext, epr, dataOut, format); } } else { sendUsingOutputStream(msgContext, format, dataOut); } if (msgContext.getOperationContext() != null) { msgContext.getOperationContext() .setProperty(Constants.RESPONSE_WRITTEN, Constants.VALUE_TRUE); } } catch (XMLStreamException e) { throw new AxisFault(e); } catch (FactoryConfigurationError e) { throw new AxisFault(e); } catch (IOException e) { throw new AxisFault(e); } }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/c6413404b81af4ca118f7327a09a5f82b3c2ddc0/CommonsHTTPTransportSender.java/buggy/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
12,
1079,
1042,
1234,
1042,
13,
1216,
15509,
7083,
288,
3639,
775,
288,
5411,
28839,
1447,
1630,
740,
273,
394,
28839,
1447,
1630,
5621,
5411,
514,
1149,
694,
4280,
273,
10792,
261,
780,
13,
1234,
1042,
18701,
263,
588,
1396,
12,
1079,
1042,
18,
27858,
67,
4043,
67,
14672,
1769,
5411,
309,
261,
3001,
694,
4280,
480,
446,
13,
288,
7734,
740,
18,
542,
2156,
694,
4705,
12,
3001,
694,
4280,
1769,
5411,
289,
469,
288,
7734,
4189,
1042,
1061,
5900,
273,
1234,
1042,
18,
588,
2988,
1042,
5621,
7734,
309,
261,
556,
5900,
480,
446,
13,
288,
10792,
1149,
694,
4280,
273,
261,
780,
13,
1061,
5900,
18701,
263,
588,
1396,
12,
1079,
1042,
18,
27858,
67,
4043,
67,
14672,
1769,
7734,
289,
5411,
289,
5411,
1783,
2398,
380,
971,
326,
1149,
444,
2446,
353,
4859,
486,
1392,
999,
326,
805,
2398,
1195,
5411,
309,
261,
3001,
694,
4280,
422,
446,
13,
288,
7734,
1149,
694,
4280,
273,
2350,
1042,
18,
5280,
67,
7305,
67,
4043,
67,
14672,
31,
5411,
289,
5411,
1234,
1042,
18,
542,
3244,
310,
6152,
1872,
12,
3693,
6568,
1989,
18,
2896,
3067,
6152,
1872,
12,
3576,
1042,
10019,
5411,
1234,
1042,
18,
542,
3244,
310,
12030,
12,
3693,
6568,
1989,
18,
291,
3244,
310,
12030,
12,
3576,
1042,
10019,
5411,
740,
18,
542,
27952,
2499,
12,
3576,
1042,
18,
291,
27952,
2499,
10663,
5411,
740,
18,
542,
3244,
6179,
10153,
12,
3576,
1042,
18,
291,
3244,
310,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
12,
1079,
1042,
1234,
1042,
13,
1216,
15509,
7083,
288,
3639,
775,
288,
5411,
28839,
1447,
1630,
740,
273,
394,
28839,
1447,
1630,
5621,
5411,
514,
1149,
694,
4280,
273,
10792,
261,
780,
13,
1234,
1042,
18701,
263,
588,
1396,
12,
1079,
1042,
18,
27858,
67,
4043,
67,
14672,
1769,
5411,
309,
261,
3001,
694,
4280,
480,
446,
13,
288,
7734,
740,
18,
542,
2156,
694,
4705,
12,
3001,
694,
4280,
1769,
5411,
289,
469,
288,
7734,
4189,
1042,
1061,
5900,
273,
1234,
1042,
18,
588,
2988,
1042,
5621,
7734,
309,
261,
556,
5900,
480,
446,
13,
288,
10792,
1149,
694,
4280,
273,
261,
780,
13,
1061,
5900,
18701,
263,
588,
1396,
12,
1079,
1042,
2
] |
if(comparator != null) {
|
if (comparator != null) {
|
protected void internalAdd(Widget widget, Object parentElementOrTreePath, Object[] childElements) { Object parent; TreePath path; if (parentElementOrTreePath instanceof TreePath) { path = (TreePath) parentElementOrTreePath; parent = path.getLastSegment(); } else { parent = parentElementOrTreePath; path = null; } // optimization! // if the widget is not expanded we just invalidate the subtree if (widget instanceof Item) { Item ti = (Item) widget; if (!getExpanded(ti)) { boolean needDummy = isExpandable(ti, path, parent); boolean haveDummy = false; // remove all children Item[] items = getItems(ti); for (int i = 0; i < items.length; i++) { if (items[i].getData() != null) { disassociate(items[i]); items[i].dispose(); } else { if (needDummy && !haveDummy) { haveDummy = true; } else { items[i].dispose(); } } } // append a dummy if necessary if (needDummy && !haveDummy) { newItem(ti, SWT.NULL, -1); } return; } } if (childElements.length > 0) { // TODO: Add filtering back? Object[] filtered = filter(parentElementOrTreePath, childElements); ViewerComparator comparator = getComparator(); if(comparator != null) { if (comparator instanceof TreePathViewerSorter) { TreePathViewerSorter tpvs = (TreePathViewerSorter) comparator; if (path == null) { path = internalGetSorterParentPath(widget, comparator); } tpvs.sort(this, path, filtered); } else { comparator.sort(this,filtered); } } createAddedElements(widget, filtered); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7dea322b00f8363f209617dc36ba0b47497db00d/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2713,
986,
12,
4609,
3604,
16,
1033,
30363,
1162,
2471,
743,
16,
1033,
8526,
1151,
3471,
13,
288,
377,
202,
921,
982,
31,
377,
202,
2471,
743,
589,
31,
377,
202,
430,
261,
2938,
1046,
1162,
2471,
743,
1276,
4902,
743,
13,
288,
1082,
202,
803,
273,
261,
2471,
743,
13,
30363,
1162,
2471,
743,
31,
1082,
202,
2938,
273,
589,
18,
588,
3024,
4131,
5621,
202,
202,
97,
469,
288,
1082,
202,
2938,
273,
30363,
1162,
2471,
743,
31,
1082,
202,
803,
273,
446,
31,
202,
202,
97,
377,
1082,
202,
759,
14850,
5,
3639,
368,
309,
326,
3604,
353,
486,
8406,
732,
2537,
11587,
326,
12773,
3639,
309,
261,
6587,
1276,
4342,
13,
288,
5411,
4342,
11374,
273,
261,
1180,
13,
3604,
31,
5411,
309,
16051,
588,
17957,
12,
9096,
3719,
288,
7734,
1250,
1608,
20094,
273,
353,
12271,
429,
12,
9096,
16,
589,
16,
982,
1769,
7734,
1250,
1240,
20094,
273,
629,
31,
7734,
368,
1206,
777,
2325,
7734,
4342,
8526,
1516,
273,
15515,
12,
9096,
1769,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
10792,
309,
261,
3319,
63,
77,
8009,
588,
751,
1435,
480,
446,
13,
288,
13491,
1015,
11577,
12,
3319,
63,
77,
19226,
13491,
1516,
63,
77,
8009,
2251,
4150,
5621,
10792,
289,
469,
288,
13491,
309,
261,
14891,
20094,
597,
401,
21516,
20094,
13,
288,
18701,
1240,
20094,
273,
638,
31,
13491,
289,
469,
288,
18701,
1516,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2713,
986,
12,
4609,
3604,
16,
1033,
30363,
1162,
2471,
743,
16,
1033,
8526,
1151,
3471,
13,
288,
377,
202,
921,
982,
31,
377,
202,
2471,
743,
589,
31,
377,
202,
430,
261,
2938,
1046,
1162,
2471,
743,
1276,
4902,
743,
13,
288,
1082,
202,
803,
273,
261,
2471,
743,
13,
30363,
1162,
2471,
743,
31,
1082,
202,
2938,
273,
589,
18,
588,
3024,
4131,
5621,
202,
202,
97,
469,
288,
1082,
202,
2938,
273,
30363,
1162,
2471,
743,
31,
1082,
202,
803,
273,
446,
31,
202,
202,
97,
377,
1082,
202,
759,
14850,
5,
3639,
368,
309,
326,
3604,
353,
486,
8406,
732,
2537,
11587,
326,
12773,
3639,
309,
261,
6587,
1276,
4342,
13,
288,
2
] |
public void run() { //System.out.println("Before Compilation"); while (running && this == Thread.currentThread()) { if (compiling) { compile(); // synchronized(this) { // try { // this.wait(); // } catch(InterruptedException e) { // throw new RuntimeException(e); // } // } // try { // Thread.sleep(100); // } catch (InterruptedException e) { // throw new RuntimeException(e); // } // //System.out.println("After Compilation"); // if (running && this == Thread.currentThread()) { //System.out.println("Before interpretation"); interpreter.interpret( new BufferedReader(new StringReader(methodCall)), "buffer"); // (stream,"buffer"); MCodeUtilities.write("" + Code.END); //System.out.println("After interpretation"); compiling = false; } synchronized (this) { try { this.wait(); // Thread.sleep(100); } catch (InterruptedException e) { throw new RuntimeException(e); } } } // try { // Thread.sleep(100); // } catch (InterruptedException e) { // throw new RuntimeException(e); // } //System.out.println("After execution"); }
|
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/ef6621955c1a58c05aab7695b098e187adc8893b/Launcher.java/buggy/src/jeliot/launcher/Launcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2681,
1435,
95,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
4649,
19184,
8863,
202,
202,
17523,
12,
8704,
10,
10,
2211,
631,
3830,
18,
2972,
3830,
10756,
95,
1082,
202,
430,
12,
2919,
4973,
15329,
9506,
202,
11100,
5621,
9506,
202,
759,
22043,
12,
2211,
15329,
9506,
202,
759,
698,
95,
9506,
202,
759,
2211,
18,
7048,
5621,
9506,
202,
759,
97,
14683,
12,
24485,
503,
73,
15329,
9506,
202,
759,
12849,
2704,
11949,
12,
73,
1769,
9506,
202,
759,
97,
9506,
202,
759,
97,
9506,
202,
759,
698,
95,
9506,
202,
759,
3830,
18,
19607,
12,
6625,
1769,
9506,
202,
759,
97,
14683,
12,
24485,
503,
73,
15329,
9506,
202,
759,
12849,
2704,
11949,
12,
73,
1769,
9506,
202,
759,
97,
9506,
202,
1307,
3163,
18,
659,
18,
8222,
2932,
4436,
19184,
8863,
9506,
202,
759,
430,
12,
8704,
10,
10,
2211,
631,
3830,
18,
2972,
3830,
10756,
95,
9506,
202,
759,
3163,
18,
659,
18,
8222,
2932,
4649,
24713,
367,
8863,
9506,
202,
2761,
11599,
18,
24713,
12,
6862,
202,
2704,
17947,
2514,
12,
2704,
780,
2514,
12,
2039,
1477,
13,
3631,
6862,
202,
6,
4106,
8863,
9506,
202,
759,
12,
3256,
10837,
4106,
8863,
9506,
202,
49,
1085,
11864,
18,
2626,
2932,
6,
15,
1085,
18,
4415,
1769,
9506,
202,
759,
3163,
18,
659,
18,
8222,
2932,
4436,
24713,
367,
8863,
9506,
202,
2919,
4973,
33,
5743,
31,
1082,
202,
97,
1082,
202,
22043,
12,
2211,
15329,
9506,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
2681,
1435,
95,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
4649,
19184,
8863,
202,
202,
17523,
12,
8704,
10,
10,
2211,
631,
3830,
18,
2972,
3830,
10756,
95,
1082,
202,
430,
12,
2919,
4973,
15329,
9506,
202,
11100,
5621,
9506,
202,
759,
22043,
12,
2211,
15329,
9506,
202,
759,
698,
95,
9506,
202,
759,
2211,
18,
7048,
5621,
9506,
202,
759,
97,
14683,
12,
24485,
503,
73,
15329,
9506,
202,
759,
12849,
2704,
11949,
12,
73,
1769,
9506,
202,
759,
97,
9506,
202,
759,
97,
9506,
202,
759,
698,
95,
9506,
202,
759,
3830,
18,
19607,
12,
6625,
1769,
9506,
202,
759,
97,
14683,
12,
24485,
503,
73,
15329,
9506,
202,
759,
12849,
2
] |
||
stringClass.defineMethod("to_s", CallbackFactory.getMethod(RubyString.class, "to_s")); stringClass.defineMethod("to_str", CallbackFactory.getMethod(RubyString.class, "to_s"));
|
stringClass.defineMethod("to_s", CallbackFactory.getSelfMethod()); stringClass.defineMethod("to_str", CallbackFactory.getSelfMethod());
|
public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getClasses().getObjectClass()); stringClass.includeModule(ruby.getClasses().getComparableModule()); stringClass.includeModule(ruby.getClasses().getEnumerableModule()); stringClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyString.class, "newInstance")); stringClass.defineMethod("initialize", CallbackFactory.getMethod(RubyString.class, "replace", RubyObject.class)); stringClass.defineMethod("clone", CallbackFactory.getMethod(RubyString.class, "rbClone")); stringClass.defineMethod("dup", CallbackFactory.getMethod(RubyString.class, "dup")); stringClass.defineMethod("<=>", CallbackFactory.getMethod(RubyString.class, "op_cmp", RubyObject.class)); stringClass.defineMethod("==", CallbackFactory.getMethod(RubyString.class, "equal", RubyObject.class)); stringClass.defineMethod("===", CallbackFactory.getMethod(RubyString.class, "equal", RubyObject.class)); stringClass.defineMethod("eql?", CallbackFactory.getMethod(RubyString.class, "equal", RubyObject.class)); stringClass.defineMethod("hash", CallbackFactory.getMethod(RubyString.class, "hash")); stringClass.defineMethod("+", CallbackFactory.getMethod(RubyString.class, "op_plus", RubyObject.class)); stringClass.defineMethod("*", CallbackFactory.getMethod(RubyString.class, "op_mul", RubyInteger.class)); stringClass.defineMethod("%", CallbackFactory.getMethod(RubyString.class, "format", RubyObject.class)); stringClass.defineMethod("[]", CallbackFactory.getOptMethod(RubyString.class, "aref")); stringClass.defineMethod("[]=", CallbackFactory.getOptMethod(RubyString.class, "aset")); stringClass.defineMethod("length", CallbackFactory.getMethod(RubyString.class, "length")); stringClass.defineMethod("size", CallbackFactory.getMethod(RubyString.class, "length")); stringClass.defineMethod("empty?", CallbackFactory.getMethod(RubyString.class, "empty")); stringClass.defineMethod("=~", CallbackFactory.getMethod(RubyString.class, "match", RubyObject.class)); stringClass.defineMethod("~", CallbackFactory.getMethod(RubyString.class, "match2")); stringClass.defineMethod("succ", CallbackFactory.getMethod(RubyString.class, "succ")); stringClass.defineMethod("succ!", CallbackFactory.getMethod(RubyString.class, "succ_bang")); stringClass.defineMethod("next", CallbackFactory.getMethod(RubyString.class, "succ")); stringClass.defineMethod("next!", CallbackFactory.getMethod(RubyString.class, "succ_bang")); stringClass.defineMethod("upto", CallbackFactory.getMethod(RubyString.class, "upto", RubyObject.class)); stringClass.defineMethod("index", CallbackFactory.getOptMethod(RubyString.class, "index")); stringClass.defineMethod("rindex", CallbackFactory.getOptMethod(RubyString.class, "rindex")); stringClass.defineMethod("replace", CallbackFactory.getMethod(RubyString.class, "replace", RubyObject.class)); stringClass.defineMethod("to_i", CallbackFactory.getMethod(RubyString.class, "to_i")); stringClass.defineMethod("to_f", CallbackFactory.getMethod(RubyString.class, "to_f")); stringClass.defineMethod("to_s", CallbackFactory.getMethod(RubyString.class, "to_s")); stringClass.defineMethod("to_str", CallbackFactory.getMethod(RubyString.class, "to_s")); stringClass.defineMethod("inspect", CallbackFactory.getMethod(RubyString.class, "inspect")); stringClass.defineMethod("dump", CallbackFactory.getMethod(RubyString.class, "dump")); stringClass.defineMethod("upcase", CallbackFactory.getMethod(RubyString.class, "upcase")); stringClass.defineMethod("downcase", CallbackFactory.getMethod(RubyString.class, "downcase")); stringClass.defineMethod("capitalize", CallbackFactory.getMethod(RubyString.class, "capitalize")); stringClass.defineMethod("swapcase", CallbackFactory.getMethod(RubyString.class, "swapcase")); stringClass.defineMethod("upcase!", CallbackFactory.getMethod(RubyString.class, "upcase_bang")); stringClass.defineMethod("downcase!", CallbackFactory.getMethod(RubyString.class, "downcase_bang")); stringClass.defineMethod("capitalize!", CallbackFactory.getMethod(RubyString.class, "capitalize_bang")); stringClass.defineMethod("swapcase!", CallbackFactory.getMethod(RubyString.class, "swapcase_bang")); stringClass.defineMethod("hex", CallbackFactory.getMethod(RubyString.class, "hex")); stringClass.defineMethod("oct", CallbackFactory.getMethod(RubyString.class, "oct")); stringClass.defineMethod("split", CallbackFactory.getOptMethod(RubyString.class, "split")); stringClass.defineMethod("reverse", CallbackFactory.getMethod(RubyString.class, "reverse")); stringClass.defineMethod("reverse!", CallbackFactory.getMethod(RubyString.class, "reverse_bang")); stringClass.defineMethod("concat", CallbackFactory.getMethod(RubyString.class, "concat", RubyObject.class)); stringClass.defineMethod("<<", CallbackFactory.getMethod(RubyString.class, "concat", RubyObject.class)); // rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); stringClass.defineMethod("intern", CallbackFactory.getMethod(RubyString.class, "intern")); stringClass.defineMethod("include?", CallbackFactory.getMethod(RubyString.class, "include", RubyObject.class)); stringClass.defineMethod("scan", CallbackFactory.getMethod(RubyString.class, "scan", RubyObject.class)); stringClass.defineMethod("ljust", CallbackFactory.getMethod(RubyString.class, "ljust", RubyObject.class)); stringClass.defineMethod("rjust", CallbackFactory.getMethod(RubyString.class, "rjust", RubyObject.class)); stringClass.defineMethod("center", CallbackFactory.getMethod(RubyString.class, "center", RubyObject.class)); stringClass.defineMethod("sub", CallbackFactory.getOptMethod(RubyString.class, "sub")); stringClass.defineMethod("gsub", CallbackFactory.getOptMethod(RubyString.class, "gsub")); stringClass.defineMethod("chop", CallbackFactory.getMethod(RubyString.class, "chop")); stringClass.defineMethod("chomp", CallbackFactory.getOptMethod(RubyString.class, "chomp")); stringClass.defineMethod("strip", CallbackFactory.getMethod(RubyString.class, "strip")); stringClass.defineMethod("sub!", CallbackFactory.getOptMethod(RubyString.class, "sub_bang")); stringClass.defineMethod("gsub!", CallbackFactory.getOptMethod(RubyString.class, "gsub_bang")); stringClass.defineMethod("chop!", CallbackFactory.getMethod(RubyString.class, "chop_bang")); stringClass.defineMethod("chomp!", CallbackFactory.getOptMethod(RubyString.class, "chomp_bang")); stringClass.defineMethod("strip!", CallbackFactory.getMethod(RubyString.class, "strip_bang")); stringClass.defineMethod("tr", CallbackFactory.getOptMethod(RubyString.class, "tr")); stringClass.defineMethod("tr_s", CallbackFactory.getOptMethod(RubyString.class, "tr_s")); stringClass.defineMethod("delete", CallbackFactory.getOptMethod(RubyString.class, "delete")); stringClass.defineMethod("squeeze", CallbackFactory.getOptMethod(RubyString.class, "squeeze")); stringClass.defineMethod("count", CallbackFactory.getOptMethod(RubyString.class, "count")); stringClass.defineMethod("tr!", CallbackFactory.getOptMethod(RubyString.class, "tr_bang")); stringClass.defineMethod("tr_s!", CallbackFactory.getOptMethod(RubyString.class, "tr_s_bang")); stringClass.defineMethod("delete!", CallbackFactory.getOptMethod(RubyString.class, "delete_bang")); stringClass.defineMethod("squeeze!", CallbackFactory.getOptMethod(RubyString.class, "squeeze_bang")); stringClass.defineMethod("each_line", CallbackFactory.getOptMethod(RubyString.class, "each_line")); stringClass.defineMethod("each", CallbackFactory.getOptMethod(RubyString.class, "each_line")); stringClass.defineMethod("each_byte", CallbackFactory.getMethod(RubyString.class, "each_byte")); // rb_define_method(rb_cString, "sum", rb_str_sum, -1); stringClass.defineMethod("slice", CallbackFactory.getOptMethod(RubyString.class, "aref")); stringClass.defineMethod("slice!", CallbackFactory.getOptMethod(RubyString.class, "slice_bang")); // id_to_s = rb_intern("to_s"); // rb_fs = Qnil; // rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter); // rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter); stringClass.defineMethod("unpack", CallbackFactory.getMethod(RubyString.class, "unpack", RubyString.class)); return stringClass; }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyString.java/clean/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
202,
202,
54,
10340,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588,
4818,
7675,
588,
921,
797,
10663,
202,
202,
1080,
797,
18,
6702,
3120,
12,
27768,
18,
588,
4818,
7675,
588,
799,
10207,
3120,
10663,
202,
202,
1080,
797,
18,
6702,
3120,
12,
27768,
18,
588,
4818,
7675,
588,
3572,
25121,
3120,
10663,
202,
202,
1080,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
8444,
1733,
18,
588,
6179,
19571,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
2704,
1442,
7923,
1769,
202,
202,
1080,
797,
18,
11255,
1305,
2932,
11160,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
2079,
3113,
19817,
921,
18,
1106,
10019,
202,
202,
1080,
797,
18,
11255,
1305,
2932,
14056,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
6731,
10930,
7923,
1769,
202,
202,
1080,
797,
18,
11255,
1305,
2932,
26427,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
26427,
7923,
1769,
202,
202,
1080,
797,
18,
11255,
1305,
2932,
32,
33,
2984,
16,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
556,
67,
9625,
3113,
19817,
921,
18,
1106,
10019,
202,
202,
1080,
797,
18,
11255,
1305,
2932,
631,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
9729,
3113,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
202,
202,
54,
10340,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588,
4818,
7675,
588,
921,
797,
10663,
202,
202,
1080,
797,
18,
6702,
3120,
12,
27768,
18,
588,
4818,
7675,
588,
799,
10207,
3120,
10663,
202,
202,
1080,
797,
18,
6702,
3120,
12,
27768,
18,
588,
4818,
7675,
588,
3572,
25121,
3120,
10663,
202,
202,
1080,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
8444,
1733,
18,
588,
6179,
19571,
1305,
12,
54,
10340,
780,
18,
1106,
16,
315,
2704,
1442,
7923,
1769,
202,
202,
1080,
797,
18,
11255,
1305,
2932,
11160,
3113,
8444,
1733,
18,
588,
2
] |
if ( result.toString( ).equals( name ) )
|
if ( result.toString( ).equals( literal ) )
|
public static StyledComponent get( String name ) { for ( int i = 0; i < VALUES_ARRAY.length; ++i ) { StyledComponent result = VALUES_ARRAY[i]; if ( result.toString( ).equals( name ) ) { return result; } } return null; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/StyledComponent.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/StyledComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
934,
93,
1259,
1841,
336,
12,
514,
508,
262,
202,
95,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
13477,
67,
8552,
18,
2469,
31,
965,
77,
262,
202,
202,
95,
1082,
202,
24273,
1259,
1841,
563,
273,
13477,
67,
8552,
63,
77,
15533,
1082,
202,
430,
261,
563,
18,
10492,
12,
262,
18,
14963,
12,
508,
262,
262,
1082,
202,
95,
9506,
202,
2463,
563,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
934,
93,
1259,
1841,
336,
12,
514,
508,
262,
202,
95,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
13477,
67,
8552,
18,
2469,
31,
965,
77,
262,
202,
202,
95,
1082,
202,
24273,
1259,
1841,
563,
273,
13477,
67,
8552,
63,
77,
15533,
1082,
202,
430,
261,
563,
18,
10492,
12,
262,
18,
14963,
12,
508,
262,
262,
1082,
202,
95,
9506,
202,
2463,
563,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.