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
|
|---|---|---|---|---|---|---|
receiveMessage("You must select an agent in the list first and add one if none is already present");
|
receiveMessage("You must select an agent in the list first or add one if none is already present");
|
private int getIndex() { int n = agentList.getSelectedIndex(); if (n == -1) { receiveMessage("You must select an agent in the list first and add one if none is already present"); } return agentList.getSelectedIndex(); }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/fa5a996c0fc1921a71bd3e973d207e138f215eb8/PenguinApplet.java/buggy/src/org/objectweb/proactive/examples/penguin/PenguinApplet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
8088,
1435,
288,
565,
509,
290,
273,
4040,
682,
18,
588,
7416,
1016,
5621,
565,
309,
261,
82,
422,
300,
21,
13,
288,
1377,
6798,
1079,
2932,
6225,
1297,
2027,
392,
4040,
316,
326,
666,
1122,
578,
527,
1245,
309,
6555,
353,
1818,
3430,
8863,
565,
289,
565,
327,
4040,
682,
18,
588,
7416,
1016,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
3238,
509,
8088,
1435,
288,
565,
509,
290,
273,
4040,
682,
18,
588,
7416,
1016,
5621,
565,
309,
261,
82,
422,
300,
21,
13,
288,
1377,
6798,
1079,
2932,
6225,
1297,
2027,
392,
4040,
316,
326,
666,
1122,
578,
527,
1245,
309,
6555,
353,
1818,
3430,
8863,
565,
289,
565,
327,
4040,
682,
18,
588,
7416,
1016,
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
] |
new ErrorStatus("filename property not set. Assuming [" + filename
|
new WarnStatus("filename property not set. Assuming [" + filename
|
public void start() throws Exception { if (filename == null) { String jettyHomeProperty = System.getProperty("jetty.home"); filename = jettyHomeProperty + File.separatorChar + DEFAULT_CONFIG_FILE; getStatusManager().add( new ErrorStatus("filename property not set. Assuming [" + filename + "]", this)); } File configFile = new File(filename); if (configFile.exists()) { JoranConfigurator jc = new JoranConfigurator(); jc.setContext(this); jc.doConfigure(filename); StatusPrinter.print(getStatusManager()); } else { getStatusManager().add( new ErrorStatus("[" + filename + "] does not exist", this)); } }
|
47402 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47402/ad921370b11c2d5450b34e8fb16ee195cd947f7c/RequestLogImpl.java/buggy/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
1435,
1216,
1185,
288,
565,
309,
261,
3459,
422,
446,
13,
288,
1377,
514,
525,
22084,
8684,
1396,
273,
2332,
18,
588,
1396,
2932,
78,
22084,
18,
8712,
8863,
1377,
1544,
273,
525,
22084,
8684,
1396,
397,
1387,
18,
11287,
2156,
397,
3331,
67,
7203,
67,
3776,
31,
1377,
5870,
1318,
7675,
1289,
12,
1850,
394,
6040,
1482,
2932,
3459,
1272,
486,
444,
18,
4725,
21249,
8247,
397,
1544,
2868,
397,
9850,
3113,
333,
10019,
565,
289,
565,
1387,
12247,
273,
394,
1387,
12,
3459,
1769,
565,
309,
261,
1425,
812,
18,
1808,
10756,
288,
1377,
804,
280,
304,
17182,
19807,
273,
394,
804,
280,
304,
17182,
5621,
1377,
19807,
18,
542,
1042,
12,
2211,
1769,
1377,
19807,
18,
2896,
11207,
12,
3459,
1769,
1377,
2685,
12149,
18,
1188,
12,
588,
1482,
1318,
10663,
565,
289,
469,
288,
1377,
5870,
1318,
7675,
1289,
12,
1850,
394,
1068,
1482,
2932,
9614,
397,
1544,
397,
9850,
1552,
486,
1005,
3113,
333,
10019,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
1435,
1216,
1185,
288,
565,
309,
261,
3459,
422,
446,
13,
288,
1377,
514,
525,
22084,
8684,
1396,
273,
2332,
18,
588,
1396,
2932,
78,
22084,
18,
8712,
8863,
1377,
1544,
273,
525,
22084,
8684,
1396,
397,
1387,
18,
11287,
2156,
397,
3331,
67,
7203,
67,
3776,
31,
1377,
5870,
1318,
7675,
1289,
12,
1850,
394,
6040,
1482,
2932,
3459,
1272,
486,
444,
18,
4725,
21249,
8247,
397,
1544,
2868,
397,
9850,
3113,
333,
10019,
565,
289,
565,
1387,
12247,
273,
394,
1387,
12,
3459,
1769,
565,
309,
261,
1425,
812,
18,
1808,
10756,
288,
1377,
804,
280,
304,
17182,
19807,
273,
394,
804,
280,
304,
17182,
5621,
1377,
19807,
18,
542,
1042,
12,
2211,
2
] |
if( newElement != null ) { final String onFocusHandler = newElement.getAttributeValue("onfocus"); if( onFocusHandler.length() != 0 ) { final HtmlPage currentPage = newElement.getPage(); final Page newPage = currentPage.executeJavaScriptIfPossible( onFocusHandler, "OnFocus handler", true, newElement).getNewPage(); if( currentPage != newPage ) { elementWithFocus_ = null; return false; }
|
if( currentPage != newPage ) { elementWithFocus_ = null; return false;
|
public boolean moveFocusToElement( final HtmlElement newElement ) { if( elementWithFocus_ == newElement ) { // nothing to do return true; } // TODO: This is an incredibly inefficient way to find out if the element is tabbable. // Refactor this into something reasonable. if( newElement != null && newElement.getPage().getTabbableElements().contains(newElement) == false ) { // This element isn't tabbable. return false; } if( elementWithFocus_ != null ) { final String onBlurHandler = elementWithFocus_.getAttributeValue("onblur"); if( onBlurHandler.length() != 0 ) { elementWithFocus_.getPage().executeJavaScriptIfPossible( onBlurHandler, "OnBlur handler", true, elementWithFocus_); } } if( newElement != null ) { final String onFocusHandler = newElement.getAttributeValue("onfocus"); if( onFocusHandler.length() != 0 ) { final HtmlPage currentPage = newElement.getPage(); final Page newPage = currentPage.executeJavaScriptIfPossible( onFocusHandler, "OnFocus handler", true, newElement).getNewPage(); // If a page reload happened as a result of the focus change then obviously this // element will not have the focus because its page has gone away. if( currentPage != newPage ) { elementWithFocus_ = null; return false; } } } elementWithFocus_ = newElement; return true; }
|
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/efd75a9ac94ddbd24e3b33ff0b28e78acaaa4af1/WebClient.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3635,
9233,
774,
1046,
12,
727,
5430,
1046,
31308,
262,
288,
3639,
309,
12,
930,
1190,
9233,
67,
422,
31308,
262,
288,
5411,
368,
5083,
358,
741,
5411,
327,
638,
31,
3639,
289,
3639,
368,
2660,
30,
1220,
353,
392,
7290,
1118,
24755,
316,
25403,
4031,
358,
1104,
596,
309,
326,
930,
353,
3246,
70,
429,
18,
3639,
368,
868,
6812,
333,
1368,
5943,
23589,
18,
3639,
309,
12,
31308,
480,
446,
597,
31308,
18,
588,
1964,
7675,
588,
5661,
70,
429,
3471,
7675,
12298,
12,
2704,
1046,
13,
422,
629,
262,
288,
5411,
368,
1220,
930,
5177,
1404,
3246,
70,
429,
18,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
930,
1190,
9233,
67,
480,
446,
262,
288,
5411,
727,
514,
603,
21645,
1503,
273,
930,
1190,
9233,
27799,
588,
14942,
2932,
265,
27065,
8863,
5411,
309,
12,
603,
21645,
1503,
18,
2469,
1435,
480,
374,
262,
288,
7734,
930,
1190,
9233,
27799,
588,
1964,
7675,
8837,
16634,
2047,
13576,
12,
10792,
603,
21645,
1503,
16,
315,
1398,
21645,
1838,
3113,
638,
16,
930,
1190,
9233,
67,
1769,
5411,
289,
3639,
289,
3639,
309,
12,
31308,
480,
446,
262,
288,
5411,
727,
514,
603,
9233,
1503,
273,
31308,
18,
588,
14942,
2932,
265,
13923,
8863,
5411,
309,
12,
603,
9233,
1503,
18,
2469,
1435,
480,
374,
262,
288,
7734,
727,
5430,
1964,
15117,
273,
31308,
18,
588,
1964,
5621,
7734,
727,
3460,
394,
1964,
273,
15117,
18,
8837,
16634,
2047,
13576,
12,
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,
3635,
9233,
774,
1046,
12,
727,
5430,
1046,
31308,
262,
288,
3639,
309,
12,
930,
1190,
9233,
67,
422,
31308,
262,
288,
5411,
368,
5083,
358,
741,
5411,
327,
638,
31,
3639,
289,
3639,
368,
2660,
30,
1220,
353,
392,
7290,
1118,
24755,
316,
25403,
4031,
358,
1104,
596,
309,
326,
930,
353,
3246,
70,
429,
18,
3639,
368,
868,
6812,
333,
1368,
5943,
23589,
18,
3639,
309,
12,
31308,
480,
446,
597,
31308,
18,
588,
1964,
7675,
588,
5661,
70,
429,
3471,
7675,
12298,
12,
2704,
1046,
13,
422,
629,
262,
288,
5411,
368,
1220,
930,
5177,
1404,
3246,
70,
429,
18,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
930,
1190,
9233,
67,
2
] |
if ( m_AutoResponse == null) {
|
if (m_AutoResponse == null) {
|
public void getAutoresponse(Commandline cmd) { if ( m_AutoResponse == null) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); } else if ( m_AutoResponse.equalsIgnoreCase("Y")) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_YES); } else if ( m_AutoResponse.equalsIgnoreCase("N")) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_NO); }else { cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); } // end of else }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/MSVSSCHECKIN.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26707,
2740,
12,
2189,
1369,
1797,
13,
288,
3639,
309,
261,
81,
67,
4965,
1064,
422,
446,
13,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
12904,
1769,
3639,
289,
469,
309,
261,
312,
67,
4965,
1064,
18,
14963,
5556,
2932,
61,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
29081,
1769,
3639,
289,
469,
309,
261,
312,
67,
4965,
1064,
18,
14963,
5556,
2932,
50,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
3417,
1769,
3639,
289,
12107,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
12904,
1769,
3639,
289,
368,
679,
434,
469,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26707,
2740,
12,
2189,
1369,
1797,
13,
288,
3639,
309,
261,
81,
67,
4965,
1064,
422,
446,
13,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
12904,
1769,
3639,
289,
469,
309,
261,
312,
67,
4965,
1064,
18,
14963,
5556,
2932,
61,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
29081,
1769,
3639,
289,
469,
309,
261,
312,
67,
4965,
1064,
18,
14963,
5556,
2932,
50,
6,
3719,
288,
5411,
1797,
18,
2640,
1379,
7675,
542,
620,
12,
9651,
67,
37,
1693,
8607,
11186,
67,
3417,
1769,
3639,
289,
12107,
288,
5411,
1797,
18,
2640,
1379,
2
] |
if (jj_3R_187()) jj_scanpos = xsp;
|
if (jj_3R_324()) jj_scanpos = xsp;
|
final private boolean jj_3R_59() { if (jj_scan_token(IDENTIFIER)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_186()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3R_187()) jj_scanpos = xsp; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
6162,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2643,
26,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
1578,
24,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
6162,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
3719,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
2643,
26,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
1578,
24,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
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
] |
if (id == null) { id = configurationElement.getAttribute(ATT_ID); } if (id == null) { id = DEFAULT_ID;
|
if (visibilityId == null) { visibilityId = definedId;
|
private void init() { try { // we try the id attribute if no override id was supplied. if (id == null) { id = configurationElement.getAttribute(ATT_ID); } // if there was no id attribute, use the default id. if (id == null) { id = DEFAULT_ID; } dependsOnId = configurationElement.getAttribute(ATT_DEPENDS_ON); IConfigurationElement[] children = configurationElement .getChildren(TAG_ENABLEMENT); // if no child enablement is specified, and we have an override, use // it if (children.length == 0 && enablementElement != null) { enablement = new CustomAndExpression(enablementElement); // otherwise the child enablement takes priority } else if (children.length == 1) { enablement = ElementHandler.getDefault().create( ExpressionConverter.getDefault(), children[0]); } else { System.err.println("Incorrect number of expressions: " + //$NON-NLS-1$ TAG_ENABLEMENT + " in navigator extension: " + //$NON-NLS-1$ configurationElement.getDeclaringExtension() .getUniqueIdentifier()); } } catch (CoreException e) { NavigatorPlugin.log(IStatus.ERROR, 0, e.getMessage(), e); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5ba42d658418932dd87c4f6692a18456781cacf2/CommonActionProviderDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/CommonActionProviderDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
288,
202,
202,
698,
288,
1082,
202,
759,
732,
775,
326,
612,
1566,
309,
1158,
3849,
612,
1703,
4580,
18,
1082,
202,
430,
261,
350,
422,
446,
13,
288,
9506,
202,
350,
273,
1664,
1046,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
1082,
202,
97,
1082,
202,
759,
309,
1915,
1703,
1158,
612,
1566,
16,
999,
326,
805,
612,
18,
1082,
202,
430,
261,
350,
422,
446,
13,
288,
9506,
202,
350,
273,
3331,
67,
734,
31,
1082,
202,
97,
1082,
202,
27360,
1398,
548,
273,
1664,
1046,
18,
588,
1499,
12,
789,
56,
67,
1639,
52,
1157,
3948,
67,
673,
1769,
1082,
202,
45,
1750,
1046,
8526,
2325,
273,
1664,
1046,
6862,
202,
18,
588,
4212,
12,
7927,
67,
29377,
3212,
1769,
1082,
202,
759,
309,
1158,
1151,
4237,
475,
353,
1269,
16,
471,
732,
1240,
392,
3849,
16,
999,
1082,
202,
759,
518,
1082,
202,
430,
261,
5906,
18,
2469,
422,
374,
597,
4237,
475,
1046,
480,
446,
13,
288,
9506,
202,
7589,
475,
273,
394,
6082,
1876,
2300,
12,
7589,
475,
1046,
1769,
9506,
202,
759,
3541,
326,
1151,
4237,
475,
5530,
4394,
1082,
202,
97,
469,
309,
261,
5906,
18,
2469,
422,
404,
13,
288,
9506,
202,
7589,
475,
273,
3010,
1503,
18,
588,
1868,
7675,
2640,
12,
25083,
202,
2300,
5072,
18,
588,
1868,
9334,
2325,
63,
20,
19226,
1082,
202,
97,
469,
288,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
16268,
1300,
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,
1152,
918,
1208,
1435,
288,
202,
202,
698,
288,
1082,
202,
759,
732,
775,
326,
612,
1566,
309,
1158,
3849,
612,
1703,
4580,
18,
1082,
202,
430,
261,
350,
422,
446,
13,
288,
9506,
202,
350,
273,
1664,
1046,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
1082,
202,
97,
1082,
202,
759,
309,
1915,
1703,
1158,
612,
1566,
16,
999,
326,
805,
612,
18,
1082,
202,
430,
261,
350,
422,
446,
13,
288,
9506,
202,
350,
273,
3331,
67,
734,
31,
1082,
202,
97,
1082,
202,
27360,
1398,
548,
273,
1664,
1046,
18,
588,
1499,
12,
789,
56,
67,
1639,
52,
1157,
3948,
67,
673,
1769,
1082,
202,
45,
1750,
1046,
8526,
2325,
273,
1664,
2
] |
URL url= getClass().getResource("icons/Save24.gif"); JButton button= new JButton(new ImageIcon(url)); button.setToolTipText( "Store the modified data back into the database.");
|
URL url = getClass().getResource("icons/Save24.gif"); JButton button = new JButton(new ImageIcon(url)); button .setToolTipText("Store the modified data back into the database.");
|
private void setupComponents() throws XMLDBException { JToolBar toolbar= new JToolBar(); URL url= getClass().getResource("icons/Save24.gif"); JButton button= new JButton(new ImageIcon(url)); button.setToolTipText( "Store the modified data back into the database."); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { save(); } }); toolbar.add(button); url= getClass().getResource("icons/Export24.gif"); button= new JButton(new ImageIcon(url)); button.setToolTipText( "Export to file."); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { export(); } }); toolbar.add(button); getContentPane().add(toolbar, BorderLayout.NORTH); text= new ClientTextArea(true, "XML"); getContentPane().add(text, BorderLayout.CENTER); Box statusbar= Box.createHorizontalBox(); statusbar.setBorder( BorderFactory.createBevelBorder(BevelBorder.LOWERED)); statusMessage= new JTextField(20); statusMessage.setEditable(false); statusMessage.setFocusable(false); statusMessage.setText("Loading " + resource.getId() + " ..."); statusbar.add(statusMessage); progress= new JProgressBar(); progress.setPreferredSize(new Dimension(200, 30)); statusbar.add(progress); getContentPane().add(statusbar, BorderLayout.SOUTH); }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/DocumentView.java/buggy/src/org/exist/client/DocumentView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3875,
7171,
1435,
1216,
26014,
503,
288,
202,
202,
46,
6364,
5190,
12748,
33,
394,
804,
6364,
5190,
5621,
202,
202,
1785,
880,
33,
2900,
7675,
588,
1420,
2932,
14516,
19,
4755,
3247,
18,
13905,
8863,
202,
202,
46,
3616,
3568,
33,
394,
28804,
12,
2704,
3421,
5554,
12,
718,
10019,
202,
202,
5391,
18,
542,
29250,
1528,
12,
1082,
202,
6,
2257,
326,
4358,
501,
1473,
1368,
326,
2063,
1199,
1769,
202,
202,
5391,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1082,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
9506,
202,
5688,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
18849,
18,
1289,
12,
5391,
1769,
202,
202,
718,
33,
2900,
7675,
588,
1420,
2932,
14516,
19,
6144,
3247,
18,
13905,
8863,
202,
202,
5391,
33,
394,
28804,
12,
2704,
3421,
5554,
12,
718,
10019,
202,
202,
5391,
18,
542,
29250,
1528,
12,
202,
202,
6,
6144,
358,
585,
1199,
1769,
202,
202,
5391,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1082,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
9506,
202,
6530,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
18849,
18,
1289,
12,
5391,
1769,
9506,
202,
588,
1350,
8485,
7675,
1289,
12,
18849,
16,
30814,
18,
50,
28212,
1769,
202,
202,
955,
33,
394,
2445,
1528,
5484,
12,
3767,
16,
315,
4201,
8863,
202,
202,
588,
1350,
8485,
7675,
1289,
12,
955,
16,
30814,
18,
19835,
1769,
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,
1152,
918,
3875,
7171,
1435,
1216,
26014,
503,
288,
202,
202,
46,
6364,
5190,
12748,
33,
394,
804,
6364,
5190,
5621,
202,
202,
1785,
880,
33,
2900,
7675,
588,
1420,
2932,
14516,
19,
4755,
3247,
18,
13905,
8863,
202,
202,
46,
3616,
3568,
33,
394,
28804,
12,
2704,
3421,
5554,
12,
718,
10019,
202,
202,
5391,
18,
542,
29250,
1528,
12,
1082,
202,
6,
2257,
326,
4358,
501,
1473,
1368,
326,
2063,
1199,
1769,
202,
202,
5391,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1082,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
9506,
202,
5688,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
18849,
18,
1289,
12,
5391,
1769,
202,
202,
2
] |
return dialog.open() == 0;
|
dialog.open(); return dialog;
|
public static boolean openConfirm(Shell parent, String title, String message, String toggleMessage, boolean toggleState) { MessageDialogWithToggle dialog = new MessageDialogWithToggle( parent, title, null, // accept the default window icon message, QUESTION, new String[] {IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL}, 0, // OK is the default toggleMessage, toggleState); return dialog.open() == 0; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4320f5cf5ef7ceef49def03f1ae5cb6e8cf3eac3/MessageDialogWithToggle.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/MessageDialogWithToggle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
1696,
11269,
12,
13220,
982,
16,
514,
2077,
16,
514,
883,
16,
514,
10486,
1079,
16,
1250,
10486,
1119,
13,
288,
202,
202,
1079,
6353,
1190,
17986,
6176,
273,
394,
2350,
6353,
1190,
17986,
12,
1082,
202,
2938,
16,
1082,
202,
2649,
16,
1082,
202,
2011,
16,
202,
759,
2791,
326,
805,
2742,
4126,
1082,
202,
2150,
16,
1082,
202,
4740,
1146,
16,
1082,
202,
2704,
514,
8526,
288,
734,
3529,
2918,
18,
3141,
67,
13545,
16,
1599,
3529,
2918,
18,
25268,
67,
13545,
5779,
1082,
202,
20,
16,
202,
202,
759,
7791,
353,
326,
805,
1082,
202,
14401,
1079,
16,
1082,
202,
14401,
1119,
1769,
202,
202,
2463,
6176,
18,
3190,
1435,
422,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
1696,
11269,
12,
13220,
982,
16,
514,
2077,
16,
514,
883,
16,
514,
10486,
1079,
16,
1250,
10486,
1119,
13,
288,
202,
202,
1079,
6353,
1190,
17986,
6176,
273,
394,
2350,
6353,
1190,
17986,
12,
1082,
202,
2938,
16,
1082,
202,
2649,
16,
1082,
202,
2011,
16,
202,
759,
2791,
326,
805,
2742,
4126,
1082,
202,
2150,
16,
1082,
202,
4740,
1146,
16,
1082,
202,
2704,
514,
8526,
288,
734,
3529,
2918,
18,
3141,
67,
13545,
16,
1599,
3529,
2918,
18,
25268,
67,
13545,
5779,
1082,
202,
20,
16,
202,
202,
759,
7791,
353,
326,
805,
1082,
202,
14401,
1079,
16,
1082,
202,
14401,
1119,
1769,
202,
202,
2463,
6176,
18,
3190,
1435,
422,
2
] |
Token t = gen.findTokenAfter(vt.getType()); if(t!=null) { gen.add(new SpanMarker(lineMap,t, getCssClass(e,"d"),buildId(e)));
|
if(e.getKind()!= ElementKind.ENUM_CONSTANT) { Token t = gen.findTokenAfter(vt.getType()); if(t!=null) { gen.add(new SpanMarker(lineMap,t, getCssClass(e,"d"),buildId(e))); } } else { gen.add(new SpanMarker(cu,srcPos,vt,getCssClass(e,"d"),buildId(e)));
|
protected void configure(final CompilationUnitTree cu, final HtmlGenerator gen) throws IOException { final LineMap lineMap = cu.getLineMap(); final LinkResolver linkResolver = linkResolverFactory.create(cu,this); // add lexical markers JavaLexer lexer = new JavaLexer(new StringReader(gen.sourceFile)); lexer.setTabSize(tabWidth); try { while(true) { Token token = lexer.nextToken(); int type = token.getType(); if(type == JavaTokenTypes.EOF) break; if(type == JavaTokenTypes.IDENT && ReservedWords.LIST.contains(token.getText())) gen.add(new SpanMarker(lineMap,token,"rw")); if(type == JavaTokenTypes.ML_COMMENT || type == JavaTokenTypes.SL_COMMENT) gen.add(new CommentMarker(lineMap,token)); } } catch (TokenStreamException e) { // the analysis phase should have reported all the errors, // so we should ignore any failures at this point. } // then semantic ones new TreePathScanner<Void,Void>() { private String buildId(Element e) { String buf = linkResolver.href(e); if(buf.length()==0) return null; // no ID if(buf.charAt(0)!='#') throw new IllegalStateException("Computed ID for "+e+" is "+buf); return buf.substring(1); } /** * primitive types like int, long, void, etc. */ public Void visitPrimitiveType(PrimitiveTypeTree pt, Void _) { gen.add(new SpanMarker(cu,srcPos,pt,"pr")); return super.visitPrimitiveType(pt,_); } /** * literal string, int, etc. Null. */ public Void visitLiteral(LiteralTree lit, Void _) { gen.add(new SpanMarker(cu,srcPos,lit,"lt")); return super.visitLiteral(lit, _); } /** * Definition of a variable, such as parameter, field, and local variables. */ public Void visitVariable(VariableTree vt, Void _) { Element e = getCurrentElement(); if(e!=null) { // put the marker just on the variable name Token t = gen.findTokenAfter(vt.getType()); // token for the variable name if(t!=null) { gen.add(new SpanMarker(lineMap,t, getCssClass(e,"d"),buildId(e))); } } return super.visitVariable(vt,_); } private void addBookmark(Tree t, Bookmark bookmark) { gen.add( lineMap.getLineNumber(srcPos.getStartPosition(cu,t)),bookmark); } /** * Method declaration. */ public Void visitMethod(MethodTree mt, Void _) { ExecutableElement e = (ExecutableElement) getCurrentElement(); if(e!=null) { gen.add(new SpanMarker(cu,srcPos,mt,getCssClass(e,"d"),buildId(e))); ParsedType pt = getParsedType((TypeElement) e.getEnclosingElement()); // put overridden bookmark Set<Match> r = pt.findOverriddenMethods(elements, e); if(!r.isEmpty()) { addBookmark(mt,new OverriddenMethodsBookmark(r,linkResolver)); } // ... and overriding bookmark r = pt.findOverridingMethods(elements, e); if(!r.isEmpty()) { addBookmark(mt,new OverridingMethodsBookmark(r,linkResolver)); } } return super.visitMethod(mt, _); } /** * Class declaration. */ public Void visitClass(ClassTree ct, Void _) { TypeElement e = (TypeElement) getCurrentElement(); if(e!=null) { gen.add(new SpanMarker(cu,srcPos,ct,getCssClass(e,"d"),buildId(e))); // put subclass bookmark List<ParsedType> descendants = getParsedType(e).descendants; if(!descendants.isEmpty()) { addBookmark(ct,new SubClassBookmark(descendants,linkResolver)); } if(e.getNestingKind()== NestingKind.ANONYMOUS) { // don't visit the extends and implements clause as // they already show up in the NewClassTree scan(ct.getMembers()); return _; } } return super.visitClass(ct, _); } /** * All the symbols found in the source code. */ public Void visitIdentifier(IdentifierTree id, Void _) { if(!ReservedWords.LIST.contains(id.getName().toString())) { Element e = getCurrentElement(); if(e!=null) { // add a marker for syntax coloring and jump to definition gen.add(new LinkMarker(cu,srcPos,id, linkResolver.href(e), getCssClass(e,"r"))); } } return super.visitIdentifier(id,_); } /** * "exp.token" */ public Void visitMemberSelect(MemberSelectTree mst, Void _) { long ep = srcPos.getEndPosition(cu,mst); long sp = ep-mst.getIdentifier().length(); // marker for the selected identifier Element e = getCurrentElement(); if(e!=null) { gen.add(new LinkMarker(sp,ep, linkResolver.href(e), getCssClass(e,"r"))); } // TODO: not exactly sure when it can be null return super.visitMemberSelect(mst, _); } public Void visitNewClass(NewClassTree nt, Void _) { long ep = srcPos.getEndPosition(cu, nt.getIdentifier()); long sp = srcPos.getStartPosition(cu, nt.getIdentifier()); // marker for jumping to the definition Element e = getCurrentElement(); if(e!=null) {// be defensive gen.add(new LinkMarker(sp,ep,linkResolver.href(e),getCssClass(e,"r"))); } scan(nt.getEnclosingExpression()); scan(nt.getArguments()); scan(nt.getTypeArguments()); scan(nt.getClassBody()); return _; } /** * Method invocation of the form "exp.method()" */ public Void visitMethodInvocation(MethodInvocationTree mi, Void _) { ExpressionTree ms = mi.getMethodSelect(); // PRIMARY.methodName portion Element e = getCurrentElement(); if(e!=null) { Name methodName = e.getSimpleName(); long ep = srcPos.getEndPosition(cu, ms); // marker for the method name (and jump to definition) gen.add(new LinkMarker(ep-methodName.length(),ep,linkResolver.href(e), getCssClass(e,"r"))); } return super.visitMethodInvocation(mi,_); } private Element getCurrentElement() { // return trees.getElement(getCurrentPath()); return getElement((JCTree)getCurrentPath().getLeaf()); } // recursively scan trees private void scan(List<? extends Tree> list) { for (Tree t : list) scan(t); } private void scan(Tree t) { scan(t,null); } }.scan(cu,null); // compilationUnit -> package name consists of member select trees // but it fails to create an element, so do this manually ExpressionTree packageName = cu.getPackageName(); if(packageName!=null) { new TreePathScanner<String,Void>() { /** * For "a" of "a.b.c" */ public String visitIdentifier(IdentifierTree id, Void _) { String name = id.getName().toString(); PackageElement pe = elements.getPackageElement(name); gen.add(new LinkMarker(cu,srcPos,id,linkResolver.href(pe), getCssClass(pe,"r"))); return name; } public String visitMemberSelect(MemberSelectTree mst, Void _) { String baseName = scan(mst.getExpression(),_); String name = mst.getIdentifier().toString(); if(baseName.length()>0) name = baseName+'.'+name; PackageElement pe = elements.getPackageElement(name); long ep = srcPos.getEndPosition(cu,mst); long sp = ep-mst.getIdentifier().length(); gen.add(new LinkMarker(sp,ep, linkResolver.href(pe), getCssClass(pe,"r"))); return name; } }.scan(new TreePath(new TreePath(cu),packageName),null); } }
|
48783 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48783/6fdff9a022b9d6f4b891aaf933b45c823d04fc72/ParsedSourceSet.java/buggy/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5068,
12,
6385,
22416,
2802,
2471,
15985,
16,
727,
5430,
3908,
3157,
13,
1216,
1860,
288,
3639,
727,
5377,
863,
980,
863,
273,
15985,
18,
588,
1670,
863,
5621,
3639,
727,
4048,
4301,
1692,
4301,
273,
1692,
4301,
1733,
18,
2640,
12,
6319,
16,
2211,
1769,
3639,
368,
527,
5275,
1706,
11754,
3639,
5110,
13356,
8512,
273,
394,
5110,
13356,
12,
2704,
26227,
12,
4507,
18,
3168,
812,
10019,
3639,
8512,
18,
542,
5661,
1225,
12,
7032,
2384,
1769,
3639,
775,
288,
5411,
1323,
12,
3767,
13,
288,
7734,
3155,
1147,
273,
8512,
18,
4285,
1345,
5621,
7734,
509,
618,
273,
1147,
18,
588,
559,
5621,
7734,
309,
12,
723,
422,
5110,
1345,
2016,
18,
12706,
13,
10792,
898,
31,
7734,
309,
12,
723,
422,
5110,
1345,
2016,
18,
13355,
597,
16237,
7363,
18,
7085,
18,
12298,
12,
2316,
18,
588,
1528,
1435,
3719,
10792,
3157,
18,
1289,
12,
2704,
12129,
7078,
12,
1369,
863,
16,
2316,
10837,
21878,
7923,
1769,
7734,
309,
12,
723,
422,
5110,
1345,
2016,
18,
1495,
67,
12200,
7734,
747,
618,
422,
5110,
1345,
2016,
18,
4559,
67,
12200,
13,
10792,
3157,
18,
1289,
12,
2704,
9821,
7078,
12,
1369,
863,
16,
2316,
10019,
5411,
289,
3639,
289,
1044,
261,
1345,
1228,
503,
425,
13,
288,
5411,
368,
326,
6285,
6855,
1410,
1240,
14010,
777,
326,
1334,
16,
5411,
368,
1427,
732,
1410,
2305,
1281,
11720,
622,
333,
1634,
18,
3639,
289,
3639,
368,
1508,
15178,
5945,
3639,
394,
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,
5068,
12,
6385,
22416,
2802,
2471,
15985,
16,
727,
5430,
3908,
3157,
13,
1216,
1860,
288,
3639,
727,
5377,
863,
980,
863,
273,
15985,
18,
588,
1670,
863,
5621,
3639,
727,
4048,
4301,
1692,
4301,
273,
1692,
4301,
1733,
18,
2640,
12,
6319,
16,
2211,
1769,
3639,
368,
527,
5275,
1706,
11754,
3639,
5110,
13356,
8512,
273,
394,
5110,
13356,
12,
2704,
26227,
12,
4507,
18,
3168,
812,
10019,
3639,
8512,
18,
542,
5661,
1225,
12,
7032,
2384,
1769,
3639,
775,
288,
5411,
1323,
12,
3767,
13,
288,
7734,
3155,
1147,
273,
8512,
18,
4285,
1345,
5621,
7734,
509,
618,
273,
1147,
18,
588,
559,
5621,
7734,
309,
12,
723,
422,
5110,
1345,
2016,
18,
12706,
2
] |
String m = Context.getMessage1("msg.incompat.call", "toString"); throw NativeGlobal.constructError(cx, "TypeError", m, funObj);
|
throw NativeGlobal.typeError1 ("msg.incompat.call", "toString", funObj);
|
public static Object jsFunction_toString(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); if (!(val instanceof NativeFunction)) { String m = Context.getMessage1("msg.incompat.call", "toString"); throw NativeGlobal.constructError(cx, "TypeError", m, funObj); } if (val instanceof NativeJavaMethod) { return "\nfunction " + ((NativeFunction) val).jsGet_name() + "() {/*\n" + val.toString() + "*/}\n"; } int indent = 0; if (args.length > 0) indent = (int)ScriptRuntime.toNumber(args[0]); return ((NativeFunction) val).decompile(indent, true, false); }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/b02ef84e1ee1b7785116d47aef2410fd5d98b65a/NativeFunction.java/clean/src/org/mozilla/javascript/NativeFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
10492,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2398,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
1033,
1244,
273,
15261,
18,
588,
15646,
12,
3651,
5576,
18,
2083,
797,
1769,
3639,
309,
16051,
12,
1125,
1276,
16717,
2083,
3719,
288,
5411,
514,
312,
273,
1772,
18,
24906,
21,
2932,
3576,
18,
267,
16239,
18,
1991,
3113,
315,
10492,
8863,
5411,
604,
16717,
5160,
18,
10062,
668,
12,
71,
92,
16,
315,
19030,
3113,
312,
16,
9831,
2675,
1769,
3639,
289,
3639,
309,
261,
1125,
1276,
16717,
5852,
1305,
13,
288,
5411,
327,
1548,
82,
915,
315,
397,
14015,
9220,
2083,
13,
1244,
2934,
2924,
967,
67,
529,
1435,
397,
7734,
25605,
288,
19,
12174,
82,
6,
397,
1244,
18,
10492,
1435,
397,
315,
5549,
6280,
82,
14432,
3639,
289,
3639,
509,
3504,
273,
374,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
13,
5411,
3504,
273,
261,
474,
13,
3651,
5576,
18,
869,
1854,
12,
1968,
63,
20,
19226,
3639,
327,
14015,
9220,
2083,
13,
1244,
2934,
323,
11100,
12,
9355,
16,
638,
16,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
10492,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2398,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
1033,
1244,
273,
15261,
18,
588,
15646,
12,
3651,
5576,
18,
2083,
797,
1769,
3639,
309,
16051,
12,
1125,
1276,
16717,
2083,
3719,
288,
5411,
514,
312,
273,
1772,
18,
24906,
21,
2932,
3576,
18,
267,
16239,
18,
1991,
3113,
315,
10492,
8863,
5411,
604,
16717,
5160,
18,
10062,
668,
12,
71,
92,
16,
315,
19030,
3113,
312,
16,
9831,
2675,
1769,
3639,
289,
3639,
309,
261,
1125,
1276,
16717,
5852,
1305,
13,
288,
5411,
327,
1548,
82,
915,
315,
397,
14015,
9220,
2083,
13,
1244,
2934,
2924,
967,
67,
529,
2
] |
case 3:
|
case WEEKS:
|
void setFieldValue(ReadWritablePeriod period, int value) { switch (iFieldType) { default: break; case 1: period.setYears(value); break; case 2: period.setMonths(value); break; case 3: period.setWeeks(value); break; case 4: period.setDays(value); break; case 5: period.setHours(value); break; case 6: period.setMinutes(value); break; case 7: period.setSeconds(value); break; case 8: period.setMillis(value); break; } }
|
52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/5fd28fcd3425461dfcff1800753513f94807f652/PeriodFormatterBuilder.java/clean/JodaTime/src/java/org/joda/time/format/PeriodFormatterBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
30474,
12,
1994,
12061,
5027,
3879,
16,
509,
460,
13,
288,
5411,
1620,
261,
77,
13715,
13,
288,
5411,
805,
30,
7734,
898,
31,
5411,
648,
404,
30,
7734,
3879,
18,
542,
21945,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
576,
30,
7734,
3879,
18,
542,
19749,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
26664,
55,
30,
7734,
3879,
18,
542,
6630,
87,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1059,
30,
7734,
3879,
18,
542,
9384,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1381,
30,
7734,
3879,
18,
542,
14910,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1666,
30,
7734,
3879,
18,
542,
13050,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
2371,
30,
7734,
3879,
18,
542,
6762,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1725,
30,
7734,
3879,
18,
542,
4814,
12,
1132,
1769,
7734,
898,
31,
5411,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
30474,
12,
1994,
12061,
5027,
3879,
16,
509,
460,
13,
288,
5411,
1620,
261,
77,
13715,
13,
288,
5411,
805,
30,
7734,
898,
31,
5411,
648,
404,
30,
7734,
3879,
18,
542,
21945,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
576,
30,
7734,
3879,
18,
542,
19749,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
26664,
55,
30,
7734,
3879,
18,
542,
6630,
87,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1059,
30,
7734,
3879,
18,
542,
9384,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1381,
30,
7734,
3879,
18,
542,
14910,
12,
1132,
1769,
7734,
898,
31,
5411,
648,
1666,
30,
7734,
3879,
18,
542,
13050,
12,
1132,
1769,
7734,
898,
31,
5411,
2
] |
return Status.CANCEL_STATUS;
|
public void run(IAction action) { final IWorkspace workspace = ResourcesPlugin.getWorkspace(); Job job = new WorkspaceJob("Background job") { //$NON-NLS-1$ public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException { monitor.beginTask("Doing something in background", 100); //$NON-NLS-1$ for (int i = 0; i < 100; i++) { try { Thread.sleep(100); } catch (InterruptedException e) { //ignore } monitor.worked(1); } return Status.OK_STATUS; } }; job.setRule(workspace.getRoot()); job.schedule(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d41d6f3611e4d0e22c8e055490abfa0d3427ae07/JobAction.java/clean/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/actions/JobAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2463,
2685,
18,
25268,
67,
8608,
31,
918,
2463,
2685,
18,
25268,
67,
8608,
31,
1086,
12,
45,
1803,
2463,
2685,
18,
25268,
67,
8608,
31,
1301,
13,
2463,
2685,
18,
25268,
67,
8608,
31,
288,
202,
202,
6385,
2463,
2685,
18,
25268,
67,
8608,
31,
467,
2421,
1752,
10598,
851,
2685,
18,
25268,
67,
8608,
31,
1440,
1752,
10598,
851,
2685,
18,
25268,
67,
8608,
31,
273,
2463,
2685,
18,
25268,
67,
8608,
31,
8128,
3773,
18,
588,
8241,
5621,
202,
202,
2278,
2463,
2685,
18,
25268,
67,
8608,
31,
1719,
2463,
2685,
18,
25268,
67,
8608,
31,
273,
2463,
2685,
18,
25268,
67,
8608,
31,
394,
2463,
2685,
18,
25268,
67,
8608,
31,
14396,
2278,
2932,
8199,
2463,
2685,
18,
25268,
67,
8608,
31,
1719,
7923,
2463,
2685,
18,
25268,
67,
8608,
31,
288,
2463,
2685,
18,
25268,
67,
8608,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
482,
2463,
2685,
18,
25268,
67,
8608,
31,
467,
1482,
2463,
2685,
18,
25268,
67,
8608,
31,
1086,
382,
8241,
12,
45,
5491,
7187,
2463,
2685,
18,
25268,
67,
8608,
31,
6438,
13,
2463,
2685,
18,
25268,
67,
8608,
31,
1216,
2463,
2685,
18,
25268,
67,
8608,
31,
30015,
2463,
2685,
18,
25268,
67,
8608,
31,
288,
9506,
202,
10259,
18,
10086,
2174,
2932,
3244,
310,
2463,
2685,
18,
25268,
67,
8608,
31,
5943,
2463,
2685,
18,
25268,
67,
8608,
31,
316,
2463,
2685,
18,
25268,
67,
8608,
31,
5412,
3113,
2463,
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,
2463,
2685,
18,
25268,
67,
8608,
31,
918,
2463,
2685,
18,
25268,
67,
8608,
31,
1086,
12,
45,
1803,
2463,
2685,
18,
25268,
67,
8608,
31,
1301,
13,
2463,
2685,
18,
25268,
67,
8608,
31,
288,
202,
202,
6385,
2463,
2685,
18,
25268,
67,
8608,
31,
467,
2421,
1752,
10598,
851,
2685,
18,
25268,
67,
8608,
31,
1440,
1752,
10598,
851,
2685,
18,
25268,
67,
8608,
31,
273,
2463,
2685,
18,
25268,
67,
8608,
31,
8128,
3773,
18,
588,
8241,
5621,
202,
202,
2278,
2463,
2685,
18,
25268,
67,
8608,
31,
1719,
2463,
2685,
18,
25268,
67,
8608,
31,
273,
2463,
2685,
18,
25268,
67,
8608,
31,
394,
2463,
2685,
18,
25268,
67,
8608,
31,
14396,
2
] |
|
public org.quickfix.field.LegSide getLegSide() throws FieldNotFound { org.quickfix.field.LegSide value = new org.quickfix.field.LegSide();
|
public quickfix.field.LegSide getLegSide() throws FieldNotFound { quickfix.field.LegSide value = new quickfix.field.LegSide();
|
public org.quickfix.field.LegSide getLegSide() throws FieldNotFound { org.quickfix.field.LegSide value = new org.quickfix.field.LegSide(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix44/DontKnowTrade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
8895,
336,
8329,
8895,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
8895,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
8895,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
8895,
336,
8329,
8895,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
8895,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
8895,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
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
] |
label.setText( Messages.getString( "FormatNumberPreferencePage.negativeNum.label" ) );
|
label.setText( LABEL_NEGATIVE_NUMBERS );
|
private Composite getFixedPage( Composite parent ) { if ( fixedPage == null ) { fixedPage = new Composite( parent, SWT.NULL ); fixedPage.setLayout( new GridLayout( 1, false ) ); Group setting = new Group( fixedPage, SWT.NONE ); setting.setText( Messages.getString( "FormatNumberPreferencePage.fixedSettings.groupLabel" ) ); //$NON-NLS-1$ GridLayout layout = new GridLayout( 2, false ); setting.setLayout( layout ); setting.setLayoutData( createGridData4Group( ) ); Label label = new Label( setting, SWT.NONE ); label.setText( Messages.getString( "FormatNumberPreferencePage.decimalPlaces.label" ) ); //$NON-NLS-1$ fPlacesChoice = new Combo( setting, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL ); fPlacesChoice.setItems( new String[]{ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$ } ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); fPlacesChoice.setLayoutData( data ); fPlacesChoice.addSelectionListener( mySelectionListener ); fPlacesChoice.addModifyListener( myModifyListener ); fPlacesChoice.select( 2 ); fUseSep = new Button( setting, SWT.CHECK ); fUseSep.setText( Messages.getString( "FormatNumberPreferencePage.use1000sSeparator.label" ) ); //$NON-NLS-1$ GridData gData = new GridData( ); gData.horizontalSpan = 2; fUseSep.setLayoutData( gData ); fUseSep.addSelectionListener( mySelectionListener ); fUseZero = new Button( setting, SWT.CHECK ); fUseZero.setText( Messages.getString( "FormatNumberPreferencePage.useLeadingZero.label" ) ); //$NON-NLS-1$ gData = new GridData( ); gData.horizontalSpan = 2; fUseZero.setLayoutData( gData ); fUseZero.addSelectionListener( mySelectionListener ); label = new Label( setting, SWT.NONE ); label.setText( Messages.getString( "FormatNumberPreferencePage.negativeNum.label" ) ); //$NON-NLS-1$ label.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_BEGINNING ) ); fNegNumChoice = new List( setting, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL ); fNegNumChoice.add( "-1234.56" ); //$NON-NLS-1$ fNegNumChoice.add( "(-1234.56)" ); //$NON-NLS-1$ gData = new GridData( GridData.FILL_HORIZONTAL ); fNegNumChoice.setLayoutData( gData ); fNegNumChoice.addSelectionListener( mySelectionListener ); fNegNumChoice.select( 0 ); fPreviewLabel = createPreviewText( fixedPage, DEFAULT_WITH ); } return fixedPage; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatNumberPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
2812,
3960,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
5499,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
12429,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
1082,
202,
12429,
1964,
18,
542,
3744,
12,
394,
7145,
3744,
12,
404,
16,
629,
262,
11272,
1082,
202,
1114,
3637,
273,
394,
3756,
12,
5499,
1964,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
8920,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
1854,
9624,
1964,
18,
12429,
2628,
18,
1655,
2224,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
576,
16,
629,
11272,
1082,
202,
8920,
18,
542,
3744,
12,
3511,
11272,
1082,
202,
8920,
18,
542,
3744,
751,
12,
752,
6313,
751,
24,
1114,
12,
262,
11272,
1082,
202,
2224,
1433,
273,
394,
5287,
12,
3637,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
1925,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
1854,
9624,
1964,
18,
12586,
24791,
18,
1925,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
74,
24791,
10538,
273,
394,
1286,
1075,
12,
3637,
16,
348,
8588,
18,
38,
7954,
6862,
202,
96,
348,
8588,
18,
20184,
6862,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
11272,
1082,
202,
74,
24791,
10538,
18,
542,
3126,
12,
394,
514,
63,
7073,
6862,
202,
6,
20,
3113,
315,
21,
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,
1152,
14728,
2812,
3960,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
5499,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
12429,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
1082,
202,
12429,
1964,
18,
542,
3744,
12,
394,
7145,
3744,
12,
404,
16,
629,
262,
11272,
1082,
202,
1114,
3637,
273,
394,
3756,
12,
5499,
1964,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
8920,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
1854,
9624,
1964,
18,
12429,
2628,
18,
1655,
2224,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
576,
16,
629,
2
] |
WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_DISABLED));
|
sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED));
|
private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); WWinKeyBindingService keyBindingService = getWindow().getKeyBindingService(); // Many actions need the workbench. IWorkbench workbench = getWindow().getWorkbench(); newWizardAction = new NewWizardAction(); // images for this action are set in its constructor keyBindingService.registerGlobalAction(newWizardAction); newWizardDropDownAction = new NewWizardDropDownAction(workbench, newWizardAction); newWizardDropDownAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ)); newWizardDropDownAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_HOVER)); newWizardDropDownAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_DISABLED)); importResourcesAction = new ImportResourcesAction(workbench); importResourcesAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ)); importResourcesAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_HOVER)); importResourcesAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_DISABLED)); exportResourcesAction = new ExportResourcesAction(workbench, WorkbenchMessages.getString("ExportResourcesAction.fileMenuText")); //$NON-NLS-1$ exportResourcesAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ)); exportResourcesAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_HOVER)); exportResourcesAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_DISABLED)); rebuildAllAction = new GlobalBuildAction(window, IncrementalProjectBuilder.FULL_BUILD); rebuildAllAction.setActionDefinitionId(rebuildAllActionDefId); keyBindingService.registerGlobalAction(rebuildAllAction); buildAllAction = new GlobalBuildAction( window, IncrementalProjectBuilder.INCREMENTAL_BUILD); buildAllAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC)); buildAllAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_HOVER)); buildAllAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_DISABLED)); buildAllAction.setActionDefinitionId(buildAllActionDefId); keyBindingService.registerGlobalAction(buildAllAction); saveAction = new SaveAction(window); saveAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT)); saveAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_HOVER)); saveAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_DISABLED)); partService.addPartListener(saveAction); saveAction.setActionDefinitionId(saveActionDefId); keyBindingService.registerGlobalAction(saveAction); saveAsAction = new SaveAsAction(window); saveAsAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT)); saveAsAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_HOVER)); saveAsAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_DISABLED)); partService.addPartListener(saveAsAction); saveAllAction = new SaveAllAction(window); saveAllAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT)); saveAllAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_HOVER)); saveAllAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_DISABLED)); partService.addPartListener(saveAllAction); saveAllAction.setActionDefinitionId(saveAllActionDefId); keyBindingService.registerGlobalAction(saveAllAction); undoAction = createGlobalAction(IWorkbenchActionConstants.UNDO, "edit", true); //$NON-NLS-1$ undoAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT)); undoAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_HOVER)); undoAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_DISABLED)); redoAction = createGlobalAction(IWorkbenchActionConstants.REDO, "edit", true); //$NON-NLS-1$ redoAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT)); redoAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_HOVER)); redoAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_DISABLED)); cutAction = createGlobalAction(IWorkbenchActionConstants.CUT, "edit", false); //$NON-NLS-1$ cutAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT)); cutAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_HOVER)); cutAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_DISABLED)); copyAction = createGlobalAction(IWorkbenchActionConstants.COPY, "edit", false); //$NON-NLS-1$ copyAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT)); copyAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_HOVER)); copyAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_DISABLED)); pasteAction = createGlobalAction(IWorkbenchActionConstants.PASTE, "edit", false); //$NON-NLS-1$ pasteAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT)); pasteAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_HOVER)); pasteAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_DISABLED)); printAction = createGlobalAction(IWorkbenchActionConstants.PRINT, "file", false); //$NON-NLS-1$ printAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT)); printAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_HOVER)); printAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_DISABLED)); selectAllAction = createGlobalAction(IWorkbenchActionConstants.SELECT_ALL, "edit", false); //$NON-NLS-1$ findAction = createGlobalAction(IWorkbenchActionConstants.FIND, "findReplace", "edit", "findReplace", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ // Find's images are commented out due to a conflict with Search. // See bug 16412. // findAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC)); // findAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_HOVER)); // findAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_DISABLED)); closeAction = new CloseEditorAction(window); partService.addPartListener(closeAction); closeAction.setActionDefinitionId(closeActionDefId); keyBindingService.registerGlobalAction(closeAction); closeAllAction = new CloseAllAction(window); partService.addPartListener(closeAllAction); closeAllAction.setActionDefinitionId(closeAllActionDefId); keyBindingService.registerGlobalAction(closeAllAction); closeAllSavedAction = new CloseAllSavedAction(window); partService.addPartListener(closeAllSavedAction); closeAllSavedAction.setActionDefinitionId(closeAllSavedActionDefId); keyBindingService.registerGlobalAction(closeAllSavedAction); pinEditorAction = new PinEditorAction(window); partService.addPartListener(pinEditorAction); pinEditorAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR)); pinEditorAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_HOVER)); pinEditorAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_DISABLED)); aboutAction = new AboutAction(window); aboutAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_OBJS_DEFAULT_PROD)); openPreferencesAction = new OpenPreferencesAction(window); addBookmarkAction = createGlobalAction(IWorkbenchActionConstants.BOOKMARK, "addBookMark", "edit", "addBookmark", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ addTaskAction = createGlobalAction(IWorkbenchActionConstants.ADD_TASK, "edit", false); //$NON-NLS-1$ showInAction = new WorkbenchShowInAction(window); partService.addPartListener(showInAction); showInAction.setActionDefinitionId(showInActionDefId); keyBindingService.registerGlobalAction(showInAction); // can't use createGlobalAction convenience since deleteAction is not registered with the key binding service deleteAction = new RetargetAction(IWorkbenchActionConstants.DELETE, WorkbenchMessages.getString("Workbench.delete")); //$NON-NLS-1$ deleteAction.setToolTipText(WorkbenchMessages.getString("Workbench.deleteToolTip")); //$NON-NLS-1$ deleteAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT)); deleteAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_HOVER)); deleteAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_DISABLED)); deleteAction.enableAccelerator(false); WorkbenchHelp.setHelp( deleteAction, IHelpContextIds.DELETE_RETARGET_ACTION); partService.addPartListener(deleteAction); deleteAction.setActionDefinitionId(deleteActionDefId); // don't register the delete action with the key binding service. // doing so would break cell editors that listen for keyPressed SWT // events. //keyBindingService.registerGlobalAction(deleteAction); AboutInfo[] infos = ((Workbench) workbench).getConfigurationInfo().getFeaturesInfo(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = new QuickStartAction(workbench); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = new TipsAndTricksAction(workbench); break; } } // Actions for invisible accelerators showViewMenuAction = new ShowViewMenuAction(window); showViewMenuAction.setActionDefinitionId(showViewMenuActionDefId); keyBindingService.registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = new ShowPartPaneMenuAction(window); showPartPaneMenuAction.setActionDefinitionId( showPartPaneMenuActionDefId); keyBindingService.registerGlobalAction(showPartPaneMenuAction); nextEditorAction = new CycleEditorAction(window, true); nextEditorAction.setActionDefinitionId(nextEditorActionDefId); keyBindingService.registerGlobalAction(nextEditorAction); prevEditorAction = new CycleEditorAction(window, false); prevEditorAction.setActionDefinitionId(prevEditorActionDefId); keyBindingService.registerGlobalAction(prevEditorAction); nextPartAction = new CyclePartAction(window, true); nextPartAction.setActionDefinitionId(nextPartActionDefId); keyBindingService.registerGlobalAction(nextPartAction); prevPartAction = new CyclePartAction(window, false); prevPartAction.setActionDefinitionId(prevPartActionDefId); keyBindingService.registerGlobalAction(prevPartAction); nextPerspectiveAction = new CyclePerspectiveAction(window, true); nextPerspectiveAction.setActionDefinitionId(nextPerspectiveActionDefId); keyBindingService.registerGlobalAction(nextPerspectiveAction); prevPerspectiveAction = new CyclePerspectiveAction(window, false); prevPerspectiveAction.setActionDefinitionId(prevPerspectiveActionDefId); keyBindingService.registerGlobalAction(prevPerspectiveAction); activateEditorAction = new ActivateEditorAction(window); activateEditorAction.setActionDefinitionId(activateEditorActionDefId); keyBindingService.registerGlobalAction(activateEditorAction); workbenchEditorsAction = new WorkbenchEditorsAction(window); workbenchEditorsAction.setActionDefinitionId( workbenchEditorsActionDefId); keyBindingService.registerGlobalAction(workbenchEditorsAction); hideShowEditorAction = new ToggleEditorsVisibilityAction(window); savePerspectiveAction = new SavePerspectiveAction(window); editActionSetAction = new EditActionSetsAction(window); lockToolBarAction = new LockToolBarAction(window); resetPerspectiveAction = new ResetPerspectiveAction(window); closePerspAction = new ClosePerspectiveAction(window); closeAllPerspsAction = new CloseAllPerspectivesAction(window); //Must change/copy the image. It is using a local toolbar image and colored. backwardHistoryAction = new NavigationHistoryAction(window, false); backwardHistoryAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BACKWARD_NAV)); backwardHistoryAction.setActionDefinitionId(backwardHistoryActionDefId); keyBindingService.registerGlobalAction(backwardHistoryAction); forwardHistoryAction = new NavigationHistoryAction(window, true); forwardHistoryAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_FORWARD_NAV)); forwardHistoryAction.setActionDefinitionId(forwardHistoryActionDefId); keyBindingService.registerGlobalAction(forwardHistoryAction); revertAction = createGlobalAction(IWorkbenchActionConstants.REVERT, "file", false); //$NON-NLS-1$ refreshAction = createGlobalAction(IWorkbenchActionConstants.REFRESH, "file", false); //$NON-NLS-1$ propertiesAction = createGlobalAction(IWorkbenchActionConstants.PROPERTIES, "file", false); //$NON-NLS-1$ moveAction = createGlobalAction(IWorkbenchActionConstants.MOVE, "edit", false); //$NON-NLS-1$ renameAction = createGlobalAction(IWorkbenchActionConstants.RENAME, "edit", false); //$NON-NLS-1$ goIntoAction = createGlobalAction(IWorkbenchActionConstants.GO_INTO, "navigate", false); //$NON-NLS-1$ backAction = createGlobalAction(IWorkbenchActionConstants.BACK, "navigate", true); //$NON-NLS-1$ forwardAction = createGlobalAction(IWorkbenchActionConstants.FORWARD, "navigate", true); //$NON-NLS-1$ upAction = createGlobalAction(IWorkbenchActionConstants.UP, "navigate", true); //$NON-NLS-1$ nextAction = createGlobalAction(IWorkbenchActionConstants.NEXT, "navigate", true); //$NON-NLS-1$ nextAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEXT_NAV)); previousAction = createGlobalAction(IWorkbenchActionConstants.PREVIOUS, "navigate", true); //$NON-NLS-1$ previousAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PREVIOUS_NAV)); buildProjectAction = createGlobalAction(IWorkbenchActionConstants.BUILD_PROJECT, "project", false); //$NON-NLS-1$ rebuildProjectAction = createGlobalAction(IWorkbenchActionConstants.REBUILD_PROJECT, "project", false); //$NON-NLS-1$ openProjectAction = createGlobalAction(IWorkbenchActionConstants.OPEN_PROJECT, "project", false); //$NON-NLS-1$ closeProjectAction = createGlobalAction(IWorkbenchActionConstants.CLOSE_PROJECT, "project", false); //$NON-NLS-1$ }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5468a1edd56cfcaa9d93679f82ede8fa030e37c7/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
6100,
1435,
288,
202,
202,
759,
1021,
4209,
316,
525,
865,
741,
486,
1240,
3824,
6195,
18,
4237,
16,
6195,
18,
4056,
6195,
18,
2036,
202,
202,
759,
6149,
854,
4209,
316,
2674,
3832,
2275,
326,
1440,
22144,
300,
6199,
3196,
202,
759,
968,
4028,
364,
3851,
18,
202,
202,
45,
1988,
1179,
1087,
1179,
273,
26156,
7675,
588,
1988,
1179,
5621,
202,
202,
59,
18049,
653,
5250,
1179,
498,
5250,
1179,
273,
1082,
202,
588,
3829,
7675,
588,
653,
5250,
1179,
5621,
202,
202,
759,
19903,
4209,
1608,
326,
1440,
22144,
18,
202,
202,
45,
2421,
22144,
1440,
22144,
273,
26156,
7675,
588,
2421,
22144,
5621,
202,
202,
2704,
27130,
1803,
273,
394,
1166,
27130,
1803,
5621,
202,
202,
759,
4602,
364,
333,
1301,
854,
444,
316,
2097,
3885,
202,
202,
856,
5250,
1179,
18,
4861,
5160,
1803,
12,
2704,
27130,
1803,
1769,
202,
202,
2704,
27130,
7544,
4164,
1803,
273,
1082,
202,
2704,
1166,
27130,
7544,
4164,
1803,
12,
1252,
22144,
16,
394,
27130,
1803,
1769,
202,
202,
2704,
27130,
7544,
4164,
1803,
18,
542,
2040,
3187,
12,
1082,
202,
2421,
22144,
8946,
18,
588,
2040,
3187,
12,
9506,
202,
45,
2421,
22144,
29459,
2918,
18,
3445,
43,
67,
1268,
51,
1741,
67,
12917,
67,
59,
6867,
10019,
202,
202,
2704,
27130,
7544,
4164,
1803,
18,
542,
21184,
2040,
3187,
12,
1082,
202,
2421,
22144,
8946,
18,
588,
2040,
3187,
12,
9506,
202,
45,
2421,
22144,
29459,
2918,
18,
3445,
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,
1152,
918,
1221,
6100,
1435,
288,
202,
202,
759,
1021,
4209,
316,
525,
865,
741,
486,
1240,
3824,
6195,
18,
4237,
16,
6195,
18,
4056,
6195,
18,
2036,
202,
202,
759,
6149,
854,
4209,
316,
2674,
3832,
2275,
326,
1440,
22144,
300,
6199,
3196,
202,
759,
968,
4028,
364,
3851,
18,
202,
202,
45,
1988,
1179,
1087,
1179,
273,
26156,
7675,
588,
1988,
1179,
5621,
202,
202,
59,
18049,
653,
5250,
1179,
498,
5250,
1179,
273,
1082,
202,
588,
3829,
7675,
588,
653,
5250,
1179,
5621,
202,
202,
759,
19903,
4209,
1608,
326,
1440,
22144,
18,
202,
202,
45,
2421,
22144,
1440,
22144,
273,
26156,
7675,
588,
2421,
22144,
5621,
202,
202,
2704,
27130,
1803,
273,
394,
2
] |
try { return ! isUntitled() && isInFileTree(getFile(), projRoot); }
|
try { return ! isUntitled() && FileOps.isInFileTree(getFile(), projRoot); }
|
public boolean isInNewProjectPath(File projRoot) { try { return ! isUntitled() && isInFileTree(getFile(), projRoot); } catch(FileMovedException e) { return false; } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/d94a1a3c2d24d89ea1f580460a5e45b2a0d432b1/AbstractGlobalModel.java/clean/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
8048,
1908,
4109,
743,
12,
812,
10296,
2375,
13,
288,
4202,
775,
288,
327,
401,
353,
57,
496,
305,
1259,
1435,
597,
1387,
8132,
18,
291,
382,
812,
2471,
12,
29925,
9334,
10296,
2375,
1769,
289,
1377,
1044,
12,
812,
25317,
503,
425,
13,
288,
327,
629,
31,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
8048,
1908,
4109,
743,
12,
812,
10296,
2375,
13,
288,
4202,
775,
288,
327,
401,
353,
57,
496,
305,
1259,
1435,
597,
1387,
8132,
18,
291,
382,
812,
2471,
12,
29925,
9334,
10296,
2375,
1769,
289,
1377,
1044,
12,
812,
25317,
503,
425,
13,
288,
327,
629,
31,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
frame.show();
|
frame.setVisible(true);
|
public BoardEditor() { try { bv = new BoardView1(game, frame); } catch (IOException e) { new AlertDialog(frame,Messages.getString("BoardEditor.FatalError"), Messages.getString("BoardEditor.CouldntInitialize")+e); //$NON-NLS-1$ //$NON-NLS-2$ frame.dispose(); } bv.addBoardViewListener(new BoardViewListenerAdapter(){ public void hexMoused(BoardViewEvent b) { bv.cursor(b.getCoords()); if((b.getModifiers() & InputEvent.ALT_MASK) != 0) { setCurrentHex(board.getHex(b.getCoords())); } if((b.getModifiers() & InputEvent.CTRL_MASK) != 0) { if(!board.getHex(b.getCoords()).equals(curHex)) { paintHex(b.getCoords()); } } } }); bv.setUseLOSTool(false); setupEditorPanel(); setupFrame(); frame.show(); if (true==GUIPreferences.getInstance().getNagForMapEdReadme()) { String title = Messages.getString("BoardEditor.readme.title"); //$NON-NLS-1$ String body = Messages.getString("BoardEditor.readme.message"); //$NON-NLS-1$ ConfirmDialog confirm = new ConfirmDialog(frame,title,body,true); confirm.show(); if ( !confirm.getShowAgain() ) { GUIPreferences.getInstance().setNagForMapEdReadme(false); } if ( confirm.getAnswer() ) { showHelp(); } } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c1d9d15832147777c7866e12b2a22073e12e3714/BoardEditor.java/buggy/megamek/src/megamek/client/ui/AWT/BoardEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17980,
1060,
6946,
1435,
288,
3639,
775,
288,
5411,
18021,
273,
394,
17980,
1060,
1767,
21,
12,
13957,
16,
2623,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
394,
17913,
6353,
12,
3789,
16,
5058,
18,
588,
780,
2932,
22233,
6946,
18,
19593,
668,
6,
3631,
4838,
18,
588,
780,
2932,
22233,
6946,
18,
4445,
496,
7520,
7923,
15,
73,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
5411,
2623,
18,
2251,
4150,
5621,
3639,
289,
3639,
18021,
18,
1289,
22233,
1767,
2223,
12,
2704,
17980,
1060,
1767,
2223,
4216,
1435,
95,
5411,
1071,
918,
3827,
49,
21414,
12,
22233,
1767,
1133,
324,
13,
288,
7734,
18021,
18,
9216,
12,
70,
18,
588,
13089,
10663,
7734,
309,
12443,
70,
18,
588,
11948,
1435,
473,
2741,
1133,
18,
18255,
67,
11704,
13,
480,
374,
13,
288,
10792,
12589,
7037,
12,
3752,
18,
588,
7037,
12,
70,
18,
588,
13089,
1435,
10019,
7734,
289,
7734,
309,
12443,
70,
18,
588,
11948,
1435,
473,
2741,
1133,
18,
23876,
48,
67,
11704,
13,
480,
374,
13,
288,
10792,
309,
12,
5,
3752,
18,
588,
7037,
12,
70,
18,
588,
13089,
1435,
2934,
14963,
12,
1397,
7037,
3719,
288,
13491,
12574,
7037,
12,
70,
18,
588,
13089,
10663,
10792,
289,
7734,
289,
5411,
289,
3639,
15549,
3639,
18021,
18,
542,
3727,
1502,
55,
6364,
12,
5743,
1769,
3639,
3875,
6946,
5537,
5621,
3639,
3875,
3219,
5621,
3639,
2623,
18,
542,
6207,
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,
17980,
1060,
6946,
1435,
288,
3639,
775,
288,
5411,
18021,
273,
394,
17980,
1060,
1767,
21,
12,
13957,
16,
2623,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
394,
17913,
6353,
12,
3789,
16,
5058,
18,
588,
780,
2932,
22233,
6946,
18,
19593,
668,
6,
3631,
4838,
18,
588,
780,
2932,
22233,
6946,
18,
4445,
496,
7520,
7923,
15,
73,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
5411,
2623,
18,
2251,
4150,
5621,
3639,
289,
3639,
18021,
18,
1289,
22233,
1767,
2223,
12,
2704,
17980,
1060,
1767,
2223,
4216,
1435,
95,
5411,
1071,
918,
3827,
49,
21414,
12,
22233,
1767,
1133,
324,
13,
288,
7734,
18021,
18,
2
] |
case DOUBLE: entry = new CpoolValue2(tag);
|
case DOUBLE: entry = new CpoolValue2(tag); break;
|
CpoolEntry getForced(int index, int tag) { index = index & 0xffff; CpoolEntry entry = pool[index]; if (entry == null) { if (locked) throw new Error("adding new entry to locked contant pool"); switch (tag) { case UTF8: entry = new CpoolUtf8(); break; case INTEGER: case FLOAT: entry = new CpoolValue1(tag); break; case LONG: case DOUBLE: entry = new CpoolValue2(tag); case CLASS: entry = new CpoolClass(); break; case STRING: entry = new CpoolString(); break; case FIELDREF: case METHODREF: case INTERFACE_METHODREF: entry = new CpoolRef(tag); break; case NAME_AND_TYPE: entry = new CpoolNameAndType(); } pool[index] = entry; entry.index = index; } else if (entry.getTag() != tag) throw new ClassFormatError("conflicting constant pool tags at "+index); return entry; }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/16f16d641f4d49a0307378f324d33834f6cb3a8c/ConstantPool.java/buggy/gnu/bytecode/ConstantPool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
385,
6011,
1622,
25761,
3263,
12,
474,
770,
16,
509,
1047,
13,
225,
288,
565,
770,
273,
770,
473,
374,
20431,
31,
565,
385,
6011,
1622,
1241,
273,
2845,
63,
1615,
15533,
565,
309,
261,
4099,
422,
446,
13,
1377,
288,
202,
430,
261,
15091,
13,
202,
225,
604,
394,
1068,
2932,
3439,
394,
1241,
358,
8586,
466,
970,
2845,
8863,
202,
9610,
261,
2692,
13,
202,
225,
288,
202,
225,
648,
6380,
28,
30,
1241,
273,
394,
385,
6011,
15230,
28,
5621,
898,
31,
202,
225,
648,
16481,
30,
202,
225,
648,
15483,
30,
1241,
273,
394,
385,
6011,
620,
21,
12,
2692,
1769,
225,
898,
31,
202,
225,
648,
14011,
30,
202,
225,
648,
14918,
30,
1241,
273,
394,
385,
6011,
620,
22,
12,
2692,
1769,
202,
225,
648,
7383,
30,
1241,
273,
394,
385,
6011,
797,
5621,
898,
31,
202,
225,
648,
9469,
30,
1241,
273,
394,
385,
6011,
780,
5621,
898,
31,
202,
225,
648,
9921,
10771,
30,
202,
225,
648,
10152,
10771,
30,
202,
225,
648,
11391,
11300,
67,
5327,
10771,
30,
1241,
273,
394,
385,
6011,
1957,
12,
2692,
1769,
898,
31,
202,
225,
648,
6048,
67,
4307,
67,
2399,
30,
1241,
273,
394,
385,
6011,
31925,
559,
5621,
202,
225,
289,
202,
6011,
63,
1615,
65,
273,
1241,
31,
202,
4099,
18,
1615,
273,
770,
31,
1377,
289,
565,
469,
309,
261,
4099,
18,
588,
1805,
1435,
480,
1047,
13,
1377,
604,
394,
1659,
29874,
2932,
20340,
310,
5381,
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,
385,
6011,
1622,
25761,
3263,
12,
474,
770,
16,
509,
1047,
13,
225,
288,
565,
770,
273,
770,
473,
374,
20431,
31,
565,
385,
6011,
1622,
1241,
273,
2845,
63,
1615,
15533,
565,
309,
261,
4099,
422,
446,
13,
1377,
288,
202,
430,
261,
15091,
13,
202,
225,
604,
394,
1068,
2932,
3439,
394,
1241,
358,
8586,
466,
970,
2845,
8863,
202,
9610,
261,
2692,
13,
202,
225,
288,
202,
225,
648,
6380,
28,
30,
1241,
273,
394,
385,
6011,
15230,
28,
5621,
898,
31,
202,
225,
648,
16481,
30,
202,
225,
648,
15483,
30,
1241,
273,
394,
385,
6011,
620,
21,
12,
2692,
1769,
225,
898,
31,
202,
225,
648,
14011,
30,
202,
225,
648,
14918,
30,
2
] |
if (methodExpression == null) {
|
if(methodExpression == null){
|
public void visitMethodCallExpression(PsiMethodCallExpression callExpression) { super.visitMethodCallExpression(callExpression); final PsiReferenceExpression methodExpression = callExpression.getMethodExpression(); if (methodExpression == null) { return; } final String methodName = methodExpression.getReferenceName(); if (!"next".equals(methodName)) { return; } final PsiExpression qualifier = methodExpression.getQualifierExpression(); if (qualifier == null) { return; } final String qualifierText = qualifier.getText(); if (!iteratorName.equals(qualifierText)) { return; } numCallsToIteratorNext++; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
12,
52,
7722,
12592,
2300,
745,
2300,
13,
288,
5411,
2240,
18,
11658,
12592,
2300,
12,
1991,
2300,
1769,
5411,
727,
453,
7722,
2404,
2300,
707,
2300,
273,
10792,
745,
2300,
18,
588,
1305,
2300,
5621,
5411,
309,
12,
2039,
2300,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
514,
4918,
273,
707,
2300,
18,
588,
2404,
461,
5621,
5411,
309,
261,
4442,
4285,
9654,
14963,
12,
2039,
461,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
12327,
273,
707,
2300,
18,
588,
16185,
2300,
5621,
5411,
309,
261,
28157,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
514,
12327,
1528,
273,
12327,
18,
588,
1528,
5621,
5411,
309,
16051,
9838,
461,
18,
14963,
12,
28157,
1528,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
818,
10125,
774,
3198,
2134,
9904,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
12,
52,
7722,
12592,
2300,
745,
2300,
13,
288,
5411,
2240,
18,
11658,
12592,
2300,
12,
1991,
2300,
1769,
5411,
727,
453,
7722,
2404,
2300,
707,
2300,
273,
10792,
745,
2300,
18,
588,
1305,
2300,
5621,
5411,
309,
12,
2039,
2300,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
514,
4918,
273,
707,
2300,
18,
588,
2404,
461,
5621,
5411,
309,
261,
4442,
4285,
9654,
14963,
12,
2039,
461,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
12327,
273,
707,
2300,
18,
588,
16185,
2300,
5621,
5411,
309,
261,
28157,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
727,
514,
12327,
1528,
273,
12327,
18,
2
] |
addPropName( content, HTMLTags.ATTR_MIN_HEIGHT );
|
addPropName( content, HTMLTags.ATTR_HEIGHT );
|
public static void buildSize( StringBuffer content, String name, DimensionType value ) { if ( value != null ) { if(HTMLTags.ATTR_MIN_HEIGHT.equals(name)) { //To solve the problem that IE do not support min-height. //Use this way to make Firefox and IE both work well. addPropName( content, HTMLTags.ATTR_MIN_HEIGHT ); addPropValue( content, "auto !important" ); content.append( ';' ); addPropName( content, HTMLTags.ATTR_HEIGHT ); addPropValue( content, value.toString( ) ); content.append( ';' ); addPropName( content, HTMLTags.ATTR_MIN_HEIGHT ); addPropValue( content, value.toString( ) ); content.append( ';' ); } else { addPropName( content, name ); addPropValue( content, value.toString( ) ); content.append( ';' ); } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b27164a9870c47bdddc9ebe3f55fb7851ad2cae1/AttributeBuilder.java/buggy/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/AttributeBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1361,
1225,
12,
6674,
913,
16,
514,
508,
16,
1082,
202,
8611,
559,
460,
262,
202,
95,
202,
202,
430,
261,
460,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
12,
4870,
3453,
18,
12043,
67,
6236,
67,
14595,
18,
14963,
12,
529,
3719,
1082,
202,
95,
9506,
202,
759,
774,
12439,
326,
6199,
716,
10897,
741,
486,
2865,
1131,
17,
4210,
18,
9506,
202,
759,
3727,
333,
4031,
358,
1221,
22950,
471,
10897,
3937,
1440,
5492,
18,
9506,
202,
1289,
28856,
12,
913,
16,
3982,
3453,
18,
12043,
67,
6236,
67,
14595,
11272,
9506,
202,
1289,
4658,
620,
12,
913,
16,
315,
6079,
401,
23221,
6,
11272,
9506,
202,
1745,
18,
6923,
12,
7554,
11272,
9506,
202,
1289,
28856,
12,
913,
16,
3982,
3453,
18,
12043,
67,
14595,
11272,
9506,
202,
1289,
4658,
620,
12,
913,
16,
460,
18,
10492,
12,
262,
11272,
9506,
202,
1745,
18,
6923,
12,
7554,
11272,
9506,
202,
1289,
28856,
12,
913,
16,
3982,
3453,
18,
12043,
67,
6236,
67,
14595,
11272,
9506,
202,
1289,
4658,
620,
12,
913,
16,
460,
18,
10492,
12,
262,
11272,
9506,
202,
1745,
18,
6923,
12,
7554,
11272,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
1289,
28856,
12,
913,
16,
508,
11272,
9506,
202,
1289,
4658,
620,
12,
913,
16,
460,
18,
10492,
12,
262,
11272,
9506,
202,
1745,
18,
6923,
12,
7554,
11272,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1361,
1225,
12,
6674,
913,
16,
514,
508,
16,
1082,
202,
8611,
559,
460,
262,
202,
95,
202,
202,
430,
261,
460,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
12,
4870,
3453,
18,
12043,
67,
6236,
67,
14595,
18,
14963,
12,
529,
3719,
1082,
202,
95,
9506,
202,
759,
774,
12439,
326,
6199,
716,
10897,
741,
486,
2865,
1131,
17,
4210,
18,
9506,
202,
759,
3727,
333,
4031,
358,
1221,
22950,
471,
10897,
3937,
1440,
5492,
18,
9506,
202,
1289,
28856,
12,
913,
16,
3982,
3453,
18,
12043,
67,
6236,
67,
14595,
11272,
9506,
202,
1289,
4658,
620,
12,
913,
16,
315,
6079,
401,
23221,
6,
11272,
9506,
202,
1745,
18,
6923,
2
] |
framework.assertTrue(this, assertID, actual); }
|
framework.assertTrue(this, assertID, actual); }
|
public void assertTrue(String assertID, boolean actual) { framework.assertTrue(this, assertID, actual); }
|
55441 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55441/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/DOMTestCase.java/clean/java/org/w3c/domts/DOMTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1815,
5510,
12,
780,
1815,
734,
16,
1250,
3214,
13,
288,
202,
202,
12303,
18,
11231,
5510,
12,
2211,
16,
1815,
734,
16,
3214,
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,
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,
482,
918,
1815,
5510,
12,
780,
1815,
734,
16,
1250,
3214,
13,
288,
202,
202,
12303,
18,
11231,
5510,
12,
2211,
16,
1815,
734,
16,
3214,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
selectOnHover = selectOnHoverButton.getSelection(); }
|
selectOnHover = selectOnHoverButton.getSelection(); }
|
public void widgetSelected(SelectionEvent e) { selectOnHover = selectOnHoverButton.getSelection(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4c26d9ee525c094efb56046cd34150f7de2e4a0c/WorkbenchPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
4025,
1398,
21184,
273,
2027,
1398,
21184,
3616,
18,
588,
6233,
5621,
1082,
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,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
4025,
1398,
21184,
273,
2027,
1398,
21184,
3616,
18,
588,
6233,
5621,
1082,
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
] |
fConfiguration.getFeature(name.toLowerCase(Locale.ENGLISH));
|
String normalizedName; if (name.equalsIgnoreCase(HONOUR_ALL_SCHEMALOCATIONS)) { normalizedName = HONOUR_ALL_SCHEMALOCATIONS; } else { normalizedName = name.toLowerCase(Locale.ENGLISH); } fConfiguration.getFeature(normalizedName);
|
public boolean canSetParameter (String name, Object value) { if (value == null){ return true; } if(value instanceof Boolean){ boolean state = ((Boolean)value).booleanValue (); if ( name.equalsIgnoreCase (Constants.DOM_SUPPORTED_MEDIATYPES_ONLY) || name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase(Constants.DOM_CHECK_CHAR_NORMALIZATION ) || name.equalsIgnoreCase (Constants.DOM_CANONICAL_FORM) ) { // true is not supported return (state) ? false : true; } else if (name.equalsIgnoreCase (Constants.DOM_WELLFORMED) || name.equalsIgnoreCase (Constants.DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS)) { // false is not supported return (state) ? true : false; } else if (name.equalsIgnoreCase (Constants.DOM_CDATA_SECTIONS) || name.equalsIgnoreCase (Constants.DOM_CHARSET_OVERRIDES_XML_ENCODING) || name.equalsIgnoreCase (Constants.DOM_COMMENTS) || name.equalsIgnoreCase (Constants.DOM_DATATYPE_NORMALIZATION) || name.equalsIgnoreCase (Constants.DOM_DISALLOW_DOCTYPE) || name.equalsIgnoreCase (Constants.DOM_ENTITIES) || name.equalsIgnoreCase (Constants.DOM_INFOSET) || name.equalsIgnoreCase (Constants.DOM_NAMESPACES) || name.equalsIgnoreCase (Constants.DOM_NAMESPACE_DECLARATIONS) || name.equalsIgnoreCase (Constants.DOM_VALIDATE) || name.equalsIgnoreCase (Constants.DOM_VALIDATE_IF_SCHEMA) || name.equalsIgnoreCase (Constants.DOM_ELEMENT_CONTENT_WHITESPACE) || name.equalsIgnoreCase (Constants.DOM_XMLDECL)) { return true; } // Recognize Xerces features. try { fConfiguration.getFeature(name.toLowerCase(Locale.ENGLISH)); return true; } catch (XMLConfigurationException e) { return false; } } else { // check properties if (name.equalsIgnoreCase (Constants.DOM_ERROR_HANDLER)) { if (value instanceof DOMErrorHandler || value == null) { return true; } return false; } else if (name.equalsIgnoreCase (Constants.DOM_RESOURCE_RESOLVER)) { if (value instanceof LSResourceResolver || value == null) { return true; } return false; } else if (name.equalsIgnoreCase (Constants.DOM_SCHEMA_TYPE)) { if ((value instanceof String && (value.equals (Constants.NS_XMLSCHEMA) || value.equals (Constants.NS_DTD))) || value == null) { return true; } return false; } else if (name.equalsIgnoreCase (Constants.DOM_SCHEMA_LOCATION)) { if (value instanceof String || value == null) return true; return false; } else if (name.equalsIgnoreCase (DOCUMENT_CLASS_NAME)){ return true; } return false; } }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/636401f2d3403c2cdb6f763cf19141427b0827d9/DOMParserImpl.java/buggy/src/org/apache/xerces/parsers/DOMParserImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
694,
1662,
261,
780,
508,
16,
1033,
460,
13,
288,
377,
202,
430,
261,
1132,
422,
446,
15329,
377,
202,
202,
2463,
638,
31,
377,
202,
97,
377,
202,
3639,
309,
12,
1132,
1276,
3411,
15329,
5411,
1250,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
261,
1769,
5411,
309,
261,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
21134,
67,
15971,
789,
1738,
55,
67,
10857,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
15480,
15641,
67,
7305,
6526,
11367,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
10687,
67,
7305,
67,
15480,
25084,
262,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
39,
1258,
673,
10109,
67,
4983,
13,
262,
288,
7734,
368,
638,
353,
486,
3260,
7734,
327,
261,
2019,
13,
692,
629,
294,
638,
31,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
59,
21943,
7473,
25773,
13,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
20118,
67,
14737,
67,
27858,
67,
13296,
10408,
6867,
15297,
3719,
288,
7734,
368,
629,
353,
486,
3260,
7734,
327,
261,
2019,
13,
692,
638,
294,
629,
31,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
18375,
67,
19082,
55,
13,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
26977,
67,
12959,
54,
734,
3991,
67,
4201,
67,
14672,
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,
377,
1071,
1250,
848,
694,
1662,
261,
780,
508,
16,
1033,
460,
13,
288,
377,
202,
430,
261,
1132,
422,
446,
15329,
377,
202,
202,
2463,
638,
31,
377,
202,
97,
377,
202,
3639,
309,
12,
1132,
1276,
3411,
15329,
5411,
1250,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
261,
1769,
5411,
309,
261,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
21134,
67,
15971,
789,
1738,
55,
67,
10857,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
15480,
15641,
67,
7305,
6526,
11367,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
10687,
67,
7305,
67,
15480,
25084,
262,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
2
] |
ifds = (Hashtable[]) allIFDs.get(new Integer(0));
|
String directory = (String) pixels.get(new Integer(0)); String name = (String) names.get(new Integer(0)); try { r.setVar("dirName", directory); r.exec("root = fs.getRoot()"); if (!directory.equals("Root Entry")) { r.exec("dir = root.getEntry(dirName)"); r.setVar("entryName", name); r.exec("document = dir.getEntry(entryName)"); } else { r.setVar("entryName", name); r.exec("document = root.getEntry(entryName)"); } r.exec("dis = new DocumentInputStream(document)"); r.exec("numBytes = dis.available()"); int numBytes = ((Integer) r.getVar("numBytes")).intValue(); byte[] b = new byte[numBytes + 4]; r.setVar("data", b); r.exec("dis.read(data)"); RandomAccessStream stream = new RandomAccessStream(b); ifds = TiffTools.getIFDs(stream); } catch (ReflectException r) { } rgb = (TiffTools.getIFDIntValue(ifds[0], TiffTools.SAMPLES_PER_PIXEL, false, 1) > 1); little = TiffTools.isLittleEndian(ifds[0]);
|
public void initMetadata(String id) throws FormatException, IOException { ifds = (Hashtable[]) allIFDs.get(new Integer(0)); // parse the image description String description = new String(tags, 22, tags.length-22); metadata.put("Image Description", description); // default values metadata.put("slices", "1"); metadata.put("channels", "1"); metadata.put("frames", new Integer(getImageCount(id))); // parse the description to get channels/slices/times where applicable // basically the same as in ImageProSeqForm if (description != null) { StringTokenizer tokenizer = new StringTokenizer(description, "\n"); while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); String label = "Timestamp"; String data; if (token.indexOf("=") != -1) { label = token.substring(0, token.indexOf("=")); data = token.substring(token.indexOf("=")+1); } else { data = token.trim(); } metadata.put(label, data); } } metadata.put("Version", new String(header).trim()); Integer tSize = Integer.valueOf((String) metadata.get("slices")); Integer cSize = Integer.valueOf((String) metadata.get("channels")); Integer zSize = Integer.valueOf(metadata.get("frames").toString()); sizeX = new int[1]; sizeY = new int[1]; sizeZ = new int[1]; sizeC = new int[1]; sizeT = new int[1]; currentOrder = new String[1]; Hashtable h = ((Hashtable[]) allIFDs.get(new Integer(0)))[0]; sizeX[0] = TiffTools.getIFDIntValue(h, TiffTools.IMAGE_WIDTH); sizeY[0] = TiffTools.getIFDIntValue(h, TiffTools.IMAGE_LENGTH); sizeZ[0] = Integer.valueOf(metadata.get("frames").toString()).intValue(); sizeC[0] = Integer.parseInt((String) metadata.get("channels")); sizeT[0] = Integer.parseInt((String) metadata.get("slices")); currentOrder[0] = "XYCTZ"; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setPixels(null, null, zSize, cSize, tSize, null, new Boolean(!isLittleEndian(id)), getDimensionOrder(id), null); store.setImage(null, null, (String) metadata.get("Version"), null); }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/152ea9f3f73a28d996513a7cb7b820a6ed4e6b22/IPWReader.java/buggy/loci/formats/in/IPWReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
2277,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
514,
1867,
273,
261,
780,
13,
8948,
18,
588,
12,
2704,
2144,
12,
20,
10019,
514,
508,
273,
261,
780,
13,
1257,
18,
588,
12,
2704,
2144,
12,
20,
10019,
225,
775,
288,
436,
18,
542,
1537,
2932,
1214,
461,
3113,
1867,
1769,
436,
18,
4177,
2932,
3085,
273,
2662,
18,
588,
2375,
1435,
8863,
309,
16051,
5149,
18,
14963,
2932,
2375,
3841,
6,
3719,
288,
436,
18,
4177,
2932,
1214,
273,
1365,
18,
588,
1622,
12,
1214,
461,
2225,
1769,
436,
18,
542,
1537,
2932,
4099,
461,
3113,
508,
1769,
436,
18,
4177,
2932,
5457,
273,
1577,
18,
588,
1622,
12,
4099,
461,
2225,
1769,
289,
469,
288,
436,
18,
542,
1537,
2932,
4099,
461,
3113,
508,
1769,
436,
18,
4177,
2932,
5457,
273,
1365,
18,
588,
1622,
12,
4099,
461,
2225,
1769,
289,
225,
436,
18,
4177,
2932,
2251,
273,
394,
4319,
4348,
12,
5457,
2225,
1769,
436,
18,
4177,
2932,
2107,
2160,
273,
1015,
18,
5699,
1435,
8863,
509,
18633,
273,
14015,
4522,
13,
436,
18,
588,
1537,
2932,
2107,
2160,
7923,
2934,
474,
620,
5621,
1160,
8526,
324,
273,
394,
1160,
63,
2107,
2160,
397,
1059,
15533,
436,
18,
542,
1537,
2932,
892,
3113,
324,
1769,
436,
18,
4177,
2932,
2251,
18,
896,
12,
892,
2225,
1769,
225,
8072,
1862,
1228,
1407,
273,
394,
8072,
1862,
1228,
12,
70,
1769,
309,
2377,
273,
399,
3048,
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,
1208,
2277,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
514,
1867,
273,
261,
780,
13,
8948,
18,
588,
12,
2704,
2144,
12,
20,
10019,
514,
508,
273,
261,
780,
13,
1257,
18,
588,
12,
2704,
2144,
12,
20,
10019,
225,
775,
288,
436,
18,
542,
1537,
2932,
1214,
461,
3113,
1867,
1769,
436,
18,
4177,
2932,
3085,
273,
2662,
18,
588,
2375,
1435,
8863,
309,
16051,
5149,
18,
14963,
2932,
2375,
3841,
6,
3719,
288,
436,
18,
4177,
2932,
1214,
273,
1365,
18,
588,
1622,
12,
1214,
461,
2225,
1769,
436,
18,
542,
1537,
2932,
4099,
461,
3113,
508,
1769,
436,
18,
4177,
2932,
5457,
273,
1577,
18,
588,
1622,
2
] |
scaledImageCaches[zoomIndex].put(base, scaled);
|
tracker.removeImage(scaled); scaledImageCache.put(base, scaled);
|
private Image getScaledImage(Image base) { if (base == null) { return null; } if (zoomIndex == BASE_ZOOM_INDEX) { return base; } Image scaled = (Image) scaledImageCaches[zoomIndex].get(base); if (scaled == null) { Dimension d = getImageBounds(base).getSize(); d.width *= scale; d.height *= scale; scaled = scale(base, d.width, d.height); MediaTracker tracker = new MediaTracker(this); tracker.addImage(scaled, 1); // Wait for image to load try { tracker.waitForID(1); } catch (InterruptedException e) { e.printStackTrace(); } scaledImageCaches[zoomIndex].put(base, scaled); } return scaled; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c1d9d15832147777c7866e12b2a22073e12e3714/BoardView1.java/clean/megamek/src/megamek/client/ui/swing/BoardView1.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3421,
1322,
12825,
2040,
12,
2040,
1026,
13,
288,
3639,
309,
261,
1969,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
14932,
1016,
422,
10250,
67,
62,
51,
1872,
67,
9199,
13,
288,
5411,
327,
1026,
31,
3639,
289,
3639,
3421,
12304,
273,
261,
2040,
13,
12304,
2040,
18755,
63,
14932,
1016,
8009,
588,
12,
1969,
1769,
3639,
309,
261,
20665,
422,
446,
13,
288,
5411,
13037,
302,
273,
10567,
5694,
12,
1969,
2934,
588,
1225,
5621,
5411,
302,
18,
2819,
6413,
3159,
31,
5411,
302,
18,
4210,
6413,
3159,
31,
5411,
12304,
273,
3159,
12,
1969,
16,
302,
18,
2819,
16,
302,
18,
4210,
1769,
5411,
6128,
8135,
9745,
273,
394,
6128,
8135,
12,
2211,
1769,
5411,
9745,
18,
1289,
2040,
12,
20665,
16,
404,
1769,
5411,
368,
5838,
364,
1316,
358,
1262,
5411,
775,
288,
7734,
9745,
18,
7048,
1290,
734,
12,
21,
1769,
5411,
289,
1044,
261,
24485,
503,
425,
13,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
5411,
9745,
18,
4479,
2040,
12,
20665,
1769,
225,
12304,
2040,
1649,
18,
458,
12,
1969,
16,
12304,
1769,
3639,
289,
3639,
327,
12304,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3421,
1322,
12825,
2040,
12,
2040,
1026,
13,
288,
3639,
309,
261,
1969,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
14932,
1016,
422,
10250,
67,
62,
51,
1872,
67,
9199,
13,
288,
5411,
327,
1026,
31,
3639,
289,
3639,
3421,
12304,
273,
261,
2040,
13,
12304,
2040,
18755,
63,
14932,
1016,
8009,
588,
12,
1969,
1769,
3639,
309,
261,
20665,
422,
446,
13,
288,
5411,
13037,
302,
273,
10567,
5694,
12,
1969,
2934,
588,
1225,
5621,
5411,
302,
18,
2819,
6413,
3159,
31,
5411,
302,
18,
4210,
6413,
3159,
31,
5411,
12304,
273,
3159,
12,
1969,
16,
302,
18,
2819,
16,
302,
18,
4210,
1769,
5411,
6128,
8135,
9745,
273,
394,
2
] |
if (SwingUtilities.isDescendingFrom(lastComponentEntered, nativeContainer))
|
if (AWTUtilities.isDescendingFrom(lastComponentEntered, nativeContainer))
|
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { candidate = SwingUtilities.getDeepestComponentAt(parent, p.x, p.y); if (candidate == null || (candidate.eventMask & me.getID()) == 0) { candidate = null; p = SwingUtilities.convertPoint(parent, p.x, p.y, parent.parent); parent = parent.parent; } } // If the only candidate we found was the native container itself, // don't dispatch any event at all. We only care about the lightweight // children here. if (candidate == nativeContainer) candidate = null; // If our candidate is new, inform the old target we're leaving. if (lastComponentEntered != null && lastComponentEntered.isShowing() && lastComponentEntered != candidate) { // Old candidate could have been removed from // the nativeContainer so we check first. if (SwingUtilities.isDescendingFrom(lastComponentEntered, nativeContainer)) { Point tp = SwingUtilities.convertPoint(nativeContainer, x, y, lastComponentEntered); MouseEvent exited = new MouseEvent (lastComponentEntered, MouseEvent.MOUSE_EXITED, me.getWhen (), me.getModifiersEx (), tp.x, tp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); tempComponent = lastComponentEntered; lastComponentEntered = null; tempComponent.dispatchEvent(exited); } lastComponentEntered = null; } // If we have a candidate, maybe enter it. if (candidate != null) { mouseEventTarget = candidate; if (candidate.isLightweight() && candidate.isShowing() && candidate != nativeContainer && candidate != lastComponentEntered) { lastComponentEntered = mouseEventTarget; Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, lastComponentEntered); MouseEvent entered = new MouseEvent (lastComponentEntered, MouseEvent.MOUSE_ENTERED, me.getWhen (), me.getModifiersEx (), cp.x, cp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); lastComponentEntered.dispatchEvent (entered); } } if (me.getID() == MouseEvent.MOUSE_RELEASED || me.getID() == MouseEvent.MOUSE_PRESSED && pressCount > 0 || me.getID() == MouseEvent.MOUSE_DRAGGED) // If any of the following events occur while a button is held down, // they should be dispatched to the same component to which the // original MOUSE_PRESSED event was dispatched: // - MOUSE_RELEASED // - MOUSE_PRESSED: another button pressed while the first is held down // - MOUSE_DRAGGED if (SwingUtilities.isDescendingFrom(pressedComponent, nativeContainer)) mouseEventTarget = pressedComponent; else if (me.getID() == MouseEvent.MOUSE_CLICKED) { // Don't dispatch CLICKED events whose target is not the same as the // target for the original PRESSED event. if (candidate != pressedComponent) mouseEventTarget = null; else if (pressCount == 0) pressedComponent = null; } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
10533,
1841,
1290,
9186,
1133,
12,
9186,
1133,
1791,
13,
225,
288,
565,
509,
619,
273,
1791,
18,
588,
60,
261,
1769,
565,
509,
677,
273,
1791,
18,
588,
61,
261,
1769,
3639,
368,
4163,
326,
5500,
1492,
1410,
6798,
333,
871,
18,
565,
5435,
982,
273,
6448,
2170,
31,
565,
5435,
5500,
273,
446,
31,
565,
4686,
293,
273,
1791,
18,
588,
2148,
5621,
565,
1323,
261,
19188,
422,
446,
597,
982,
480,
446,
13,
1377,
288,
3639,
5500,
273,
1850,
26145,
11864,
18,
588,
13980,
395,
1841,
861,
12,
2938,
16,
293,
18,
92,
16,
293,
18,
93,
1769,
3639,
309,
261,
19188,
422,
446,
747,
261,
19188,
18,
2575,
5796,
473,
1791,
18,
588,
734,
10756,
422,
374,
13,
1377,
288,
1850,
5500,
273,
446,
31,
1850,
293,
273,
26145,
11864,
18,
6283,
2148,
12,
2938,
16,
293,
18,
92,
16,
293,
18,
93,
16,
982,
18,
2938,
1769,
1850,
982,
273,
982,
18,
2938,
31,
3639,
289,
1377,
289,
565,
368,
971,
326,
1338,
5500,
732,
1392,
1703,
326,
6448,
1478,
6174,
16,
565,
368,
2727,
1404,
3435,
1281,
871,
622,
777,
18,
225,
1660,
1338,
7671,
2973,
326,
9052,
4865,
565,
368,
2325,
2674,
18,
565,
309,
261,
19188,
422,
6448,
2170,
13,
1377,
5500,
273,
446,
31,
565,
368,
971,
3134,
5500,
353,
394,
16,
13235,
326,
1592,
1018,
732,
4565,
15086,
18,
565,
309,
261,
2722,
1841,
10237,
329,
480,
446,
3639,
597,
1142,
1841,
10237,
329,
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,
918,
10533,
1841,
1290,
9186,
1133,
12,
9186,
1133,
1791,
13,
225,
288,
565,
509,
619,
273,
1791,
18,
588,
60,
261,
1769,
565,
509,
677,
273,
1791,
18,
588,
61,
261,
1769,
3639,
368,
4163,
326,
5500,
1492,
1410,
6798,
333,
871,
18,
565,
5435,
982,
273,
6448,
2170,
31,
565,
5435,
5500,
273,
446,
31,
565,
4686,
293,
273,
1791,
18,
588,
2148,
5621,
565,
1323,
261,
19188,
422,
446,
597,
982,
480,
446,
13,
1377,
288,
3639,
5500,
273,
1850,
26145,
11864,
18,
588,
13980,
395,
1841,
861,
12,
2938,
16,
293,
18,
92,
16,
293,
18,
93,
1769,
3639,
309,
261,
19188,
422,
446,
747,
261,
19188,
18,
2575,
5796,
473,
1791,
18,
588,
2
] |
sql += " AND n.nspname LIKE '"+escapeQuotes(schemaPattern.toLowerCase())+"' ";
|
sql += " AND n.nspname LIKE '"+escapeQuotes(schemaPattern)+"' ";
|
public java.sql.ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { Field f[] = new Field[7]; Vector v = new Vector(); f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "GRANTOR", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "GRANTEE", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "PRIVILEGE", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "IS_GRANTABLE", iVarcharOid, getMaxNameLength()); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT n.nspname,c.relname,u.usename,c.relacl "+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c, pg_catalog.pg_user u "+ " WHERE c.relnamespace = n.oid "+ " AND u.usesysid = c.relowner "+ " AND c.relkind = 'r' "; if (schemaPattern != null && !"".equals(schemaPattern)) { sql += " AND n.nspname LIKE '"+escapeQuotes(schemaPattern.toLowerCase())+"' "; } } else { sql = "SELECT NULL::text AS nspname,c.relname,u.usename,c.relacl "+ "FROM pg_class c, pg_user u "+ " WHERE u.usesysid = c.relowner "+ " AND c.relkind = 'r' "; } if (tableNamePattern != null && !"".equals(tableNamePattern)) { sql += " AND c.relname LIKE '"+escapeQuotes(tableNamePattern.toLowerCase())+"' "; } sql += " ORDER BY nspname, relname "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte schema[] = rs.getBytes("nspname"); byte table[] = rs.getBytes("relname"); String owner = rs.getString("usename"); String acl = rs.getString("relacl"); Hashtable permissions = parseACL(acl); String permNames[] = new String[permissions.size()]; Enumeration e = permissions.keys(); int i=0; while (e.hasMoreElements()) { permNames[i++] = (String)e.nextElement(); } sortStringArray(permNames); for (i=0; i<permNames.length; i++) { byte[] privilege = permNames[i].getBytes(); Vector grantees = (Vector)permissions.get(permNames[i]); for (int j=0; j<grantees.size(); j++) { String grantee = (String)grantees.elementAt(j); String grantable = owner.equals(grantee) ? "YES" : "NO"; byte[][] tuple = new byte[7][]; tuple[0] = null; tuple[1] = schema; tuple[2] = table; tuple[3] = owner.getBytes(); tuple[4] = grantee.getBytes(); tuple[5] = privilege; tuple[6] = grantable.getBytes(); v.addElement(tuple); } } } rs.close(); return connection.getResultSet(null, f, v, "OK", 1); }
|
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/fdf6b4ff936167388fc18276cbcf88c54dd0d3b7/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
5638,
27692,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
27,
15533,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
6997,
6856,
916,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
6997,
1258,
1448,
41,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
7698,
4136,
900,
7113,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
5127,
67,
6997,
6856,
2782,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
780,
1847,
31,
202,
202,
430,
261,
4071,
18,
21516,
13042,
2081,
1444,
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,
2252,
18,
4669,
18,
13198,
5638,
27692,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
27,
15533,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
2
] |
if (ui != null)
|
else if (ui != null)
|
public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferredSize(); // make sure that prefSize is not smaller than minSize if (minimumSize != null && prefSize != null && (minimumSize.width > prefSize.width || minimumSize.height > prefSize.height)) prefSize = new Dimension(Math.max(minimumSize.width, prefSize.width), Math.max(minimumSize.height, prefSize.height)); return prefSize; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/decc5d82ba0a18c6445f683c0d1a3d78fe4b1564/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
12822,
4193,
1225,
1435,
202,
95,
565,
13037,
11307,
1225,
273,
446,
31,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
11307,
1225,
273,
9119,
1225,
31,
202,
202,
430,
261,
4881,
480,
446,
13,
202,
202,
95,
1082,
202,
8611,
272,
273,
5915,
18,
588,
16028,
1225,
12,
2211,
1769,
1082,
202,
430,
261,
87,
480,
446,
13,
1850,
11307,
1225,
273,
272,
31,
1082,
202,
97,
565,
309,
261,
25724,
1225,
422,
446,
13,
1377,
11307,
1225,
273,
2240,
18,
588,
16028,
1225,
5621,
565,
368,
1221,
3071,
716,
11307,
1225,
353,
486,
10648,
2353,
29343,
565,
309,
261,
15903,
1225,
480,
446,
597,
11307,
1225,
480,
446,
3639,
597,
261,
15903,
1225,
18,
2819,
405,
11307,
1225,
18,
2819,
5411,
747,
5224,
1225,
18,
4210,
405,
11307,
1225,
18,
4210,
3719,
3639,
11307,
1225,
273,
394,
13037,
12,
10477,
18,
1896,
12,
15903,
1225,
18,
2819,
16,
11307,
1225,
18,
2819,
3631,
4766,
2361,
18,
1896,
12,
15903,
1225,
18,
4210,
16,
11307,
1225,
18,
4210,
10019,
565,
327,
11307,
1225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13037,
12822,
4193,
1225,
1435,
202,
95,
565,
13037,
11307,
1225,
273,
446,
31,
565,
309,
261,
23616,
1225,
480,
446,
13,
1377,
11307,
1225,
273,
9119,
1225,
31,
202,
202,
430,
261,
4881,
480,
446,
13,
202,
202,
95,
1082,
202,
8611,
272,
273,
5915,
18,
588,
16028,
1225,
12,
2211,
1769,
1082,
202,
430,
261,
87,
480,
446,
13,
1850,
11307,
1225,
273,
272,
31,
1082,
202,
97,
565,
309,
261,
25724,
1225,
422,
446,
13,
1377,
11307,
1225,
273,
2240,
18,
588,
16028,
1225,
5621,
565,
368,
1221,
3071,
716,
11307,
1225,
353,
486,
10648,
2353,
29343,
565,
309,
261,
15903,
1225,
480,
446,
597,
11307,
1225,
480,
446,
3639,
597,
261,
15903,
2
] |
if(next != null && prev == null) {
|
if((next != null) && (prev == null)) {
|
public synchronized void update(UpdatableSortedLinkedListItem i) throws UpdatableSortedLinkedListKilledException { if(killed) throw new UpdatableSortedLinkedListKilledException(); Logger.minor(this, "Update("+i+") on "+this); checkList(); if(i.compareTo(list.tail()) > 0) { list.remove(i); list.push(i); checkList(); return; } if(i.compareTo(list.head()) < 0) { list.remove(i); list.unshift(i); checkList(); return; } if(list.head() == list.tail() && i != list.head()) { Logger.error(this, "Only 1 element: "+list.head()+" and updating "+i+" on "+this, new Exception("error")); add(i); checkList(); return; } // Forwards or backwards? UpdatableSortedLinkedListItem next = (UpdatableSortedLinkedListItem) list.next(i); UpdatableSortedLinkedListItem prev = (UpdatableSortedLinkedListItem) list.prev(i); if(next == null && prev == null) { return; } if(next != null && prev != null && next.compareTo(i) >= 0 && prev.compareTo(i) <= 0) return; // already exactly where it should be if(next == null && prev != null) { if(prev.compareTo(i) <= 0) return; // already in right place, at end } if(next != null && prev == null) { if(next.compareTo(i) >= 0) return; // already where it should be } if(next != null && i.compareTo(next) > 0) { // i > next - move forwards while(true) { prev = next; next = (UpdatableSortedLinkedListItem) list.next(next); if(next == null) { throw new NullPointerException("impossible - we checked"); } if(i.compareTo(next) < 0 && i.compareTo(prev) > 0) { list.remove(i); list.insertNext(prev, i); checkList(); return; } } } else if(prev != null && i.compareTo(prev) < 0) { // i < next - move backwards while(true) { next = prev; prev = (UpdatableSortedLinkedListItem) list.prev(prev); if(next == null) { throw new NullPointerException("impossible - we checked"); } if(i.compareTo(next) < 0 && i.compareTo(prev) > 0) { list.remove(i); list.insertNext(prev, i); checkList(); return; } } } Logger.error(this, "Could not update "+i, new Exception("error")); dump(); remove(i); add(i); checkList(); }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/UpdatableSortedLinkedList.java/buggy/src/freenet/support/UpdatableSortedLinkedList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
1216,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
288,
377,
202,
430,
12,
79,
13148,
13,
604,
394,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
5621,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
1891,
2932,
15,
77,
15,
7923,
603,
13773,
2211,
1769,
3639,
866,
682,
5621,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
405,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
866,
682,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
1978,
10756,
411,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
13858,
12,
77,
1769,
5411,
866,
682,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
12,
1098,
18,
1978,
1435,
422,
666,
18,
13101,
1435,
597,
277,
480,
666,
18,
1978,
10756,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
3386,
404,
930,
30,
13773,
1098,
18,
1978,
1435,
9078,
471,
9702,
13773,
77,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
1636,
7923,
1769,
5411,
527,
12,
77,
1769,
5411,
866,
682,
5621,
5411,
327,
31,
3639,
289,
3639,
368,
2457,
6397,
578,
12727,
35,
3639,
1948,
3404,
429,
11739,
13174,
13575,
1024,
273,
261,
1211,
3404,
429,
11739,
13174,
13575,
13,
666,
18,
4285,
12,
77,
1769,
3639,
1948,
3404,
429,
11739,
13174,
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,
3852,
918,
1089,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
1216,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
288,
377,
202,
430,
12,
79,
13148,
13,
604,
394,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
5621,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
1891,
2932,
15,
77,
15,
7923,
603,
13773,
2211,
1769,
3639,
866,
682,
5621,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
405,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
866,
682,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
1978,
10756,
411,
374,
2
] |
push(fnClassName);
|
aload(contextLocal); addSpecialInvoke(fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Context;)", "V"); if (inFunction) { addByteCode(ByteCode.ALOAD_0); } else { aload(variableObjectLocal); }
|
private void generateFunctionInits(Vector fns) { // make an array to put them in, so they're available // for decompilation. push(fns.size()); addByteCode(ByteCode.ANEWARRAY, "org/mozilla/javascript/NativeFunction"); /* note that nested function decompilation currently * depends on the elements of the nestedFunctions array * being defined in source order. (per function/script, * starting from 0.) Change Parser and NativeFunction if * changing ordering. */ for (short i = 0; i < fns.size(); i++) { addByteCode(ByteCode.DUP); // make another reference to the array push(i); // to set up for aastore at end of loop Node def = (Node) fns.elementAt(i); Codegen codegen = new Codegen(); String fnClassName = codegen.generateCode(def, results, itsNameHelper); // initialize a property by that name, and push the object // as a result if (inFunction) { addByteCode(ByteCode.ALOAD_0); // load "this" argument } else { aload(variableObjectLocal); } push(fnClassName); String str = def.getString(); if (str != null) { push(str); } else { addByteCode(ByteCode.ACONST_NULL); } addByteCode(ByteCode.ALOAD_0); // load 'this' aload(contextLocal); // load 'cx' addScriptRuntimeInvoke("defineFunction", "(Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;" + "Ljava/lang/String;" + "Ljava/lang/Object;" + "Lorg/mozilla/javascript/Context;)", "Lorg/mozilla/javascript/NativeFunction;"); def.putProp(Node.FUNCTION_PROP, new Short(i)); addByteCode(ByteCode.AASTORE); // store NativeFunction // instance to array } // add the array as the nestedFunctions field; array should // still be on the stack. addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ByteCode.SWAP); // swap with original array reference classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "nestedFunctions", "[Lorg/mozilla/javascript/NativeFunction;"); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3700676b23de6f5e245970aae9264c23d9eb2b4c/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2083,
382,
1282,
12,
5018,
21930,
13,
288,
3639,
368,
1221,
392,
526,
358,
1378,
2182,
316,
16,
1427,
2898,
4565,
2319,
3639,
368,
364,
443,
2919,
6613,
18,
3639,
1817,
12,
74,
2387,
18,
1467,
10663,
3639,
527,
3216,
1085,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
9220,
2083,
8863,
3639,
1748,
4721,
716,
4764,
445,
443,
2919,
6613,
4551,
540,
380,
10935,
603,
326,
2186,
434,
326,
4764,
7503,
526,
540,
380,
3832,
2553,
316,
1084,
1353,
18,
225,
261,
457,
445,
19,
4263,
16,
540,
380,
5023,
628,
374,
12998,
225,
7576,
6783,
471,
16717,
2083,
309,
540,
380,
12770,
9543,
18,
540,
1195,
3639,
364,
261,
6620,
277,
273,
374,
31,
277,
411,
21930,
18,
1467,
5621,
277,
27245,
288,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
30387,
1769,
368,
1221,
4042,
2114,
358,
326,
526,
5411,
1817,
12,
77,
1769,
5411,
368,
358,
444,
731,
364,
279,
689,
479,
622,
679,
434,
2798,
5411,
2029,
1652,
273,
261,
907,
13,
21930,
18,
2956,
861,
12,
77,
1769,
5411,
3356,
4507,
23198,
273,
394,
3356,
4507,
5621,
5411,
514,
2295,
3834,
273,
23198,
18,
7163,
1085,
12,
536,
16,
1686,
16,
2097,
461,
2276,
1769,
5411,
368,
4046,
279,
1272,
635,
716,
508,
16,
471,
1817,
326,
733,
5411,
368,
225,
487,
279,
563,
5411,
309,
261,
267,
2083,
13,
288,
7734,
527,
3216,
1085,
12,
3216,
1085,
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,
3238,
918,
2103,
2083,
382,
1282,
12,
5018,
21930,
13,
288,
3639,
368,
1221,
392,
526,
358,
1378,
2182,
316,
16,
1427,
2898,
4565,
2319,
3639,
368,
364,
443,
2919,
6613,
18,
3639,
1817,
12,
74,
2387,
18,
1467,
10663,
3639,
527,
3216,
1085,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
9220,
2083,
8863,
3639,
1748,
4721,
716,
4764,
445,
443,
2919,
6613,
4551,
540,
380,
10935,
603,
326,
2186,
434,
326,
4764,
7503,
526,
540,
380,
3832,
2553,
316,
1084,
1353,
18,
225,
261,
457,
445,
19,
4263,
16,
540,
380,
5023,
628,
374,
12998,
225,
7576,
6783,
471,
16717,
2083,
309,
540,
380,
12770,
9543,
18,
540,
2
] |
/*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/
|
currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename);
|
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue("-"); } init_p = true; first_p = false; currentLineNumber = 0; } // retry : while (true) { if (next_p == 1) { next_p = 0; if (args.getLength() > 0) { String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); /*if (ruby_inplace_mode) { rb_warn("Can't do inplace edit for stdio"); rb_defout = rb_stdout; }*/ } else { File file = new File(filename); try { RubyInputStream inStream = new RubyInputStream(new BufferedInputStream(new FileInputStream(file))); // FILE *fr = rb_fopen(fn, "r"); /*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); // prep_stdio(fr, FMODE_READABLE, rb_cFile); // prep_path(current_file, fn); } catch (FileNotFoundException fnfExcptn) { throw new IOError(runtime, fnfExcptn.getMessage()); } } /*if (binmode) rb_io_binmode(current_file);*/ } else { init_p = false; return false; } } //break; //} return true; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/49c17b4ec0ae2e046650a9ace532caa461a65f20/RubyArgsFile.java/clean/src/org/jruby/RubyArgsFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5411,
309,
261,
1968,
18,
588,
1782,
1435,
405,
374,
13,
288,
7734,
1024,
67,
84,
273,
404,
31,
5411,
289,
469,
288,
7734,
1024,
67,
84,
273,
300,
21,
31,
7734,
22650,
273,
261,
54,
10340,
4294,
13,
3099,
18,
588,
5160,
1537,
2932,
8,
21772,
8863,
7734,
14015,
54,
10340,
780,
13,
3099,
18,
588,
5160,
1537,
2932,
8,
16080,
7923,
2934,
542,
620,
2932,
17,
8863,
5411,
289,
5411,
1208,
67,
84,
273,
638,
31,
5411,
1122,
67,
84,
273,
629,
31,
5411,
22325,
1854,
273,
374,
31,
3639,
289,
3639,
368,
3300,
294,
1323,
261,
3767,
13,
288,
3639,
309,
261,
4285,
67,
84,
422,
404,
13,
288,
5411,
1024,
67,
84,
273,
374,
31,
5411,
309,
261,
1968,
18,
588,
1782,
1435,
405,
374,
13,
288,
7734,
514,
1544,
273,
14015,
54,
10340,
780,
13,
833,
18,
4012,
1435,
2934,
24805,
5621,
7734,
14015,
54,
10340,
780,
13,
3099,
18,
588,
5160,
1537,
2932,
8,
16080,
7923,
2934,
542,
620,
12,
3459,
1769,
7734,
309,
261,
3459,
18,
14963,
2932,
10951,
3719,
288,
10792,
22650,
273,
261,
54,
10340,
4294,
13,
3099,
18,
588,
5160,
1537,
2932,
8,
21772,
8863,
10792,
1748,
430,
261,
27768,
67,
267,
964,
67,
3188,
13,
10792,
288,
13491,
7138,
67,
8935,
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,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5411,
309,
261,
1968,
18,
588,
1782,
1435,
405,
374,
13,
288,
7734,
1024,
67,
84,
273,
404,
31,
5411,
289,
469,
288,
7734,
1024,
67,
84,
273,
300,
21,
31,
7734,
22650,
273,
261,
54,
10340,
4294,
13,
3099,
18,
588,
5160,
1537,
2932,
8,
21772,
8863,
7734,
14015,
54,
10340,
780,
13,
3099,
18,
588,
5160,
1537,
2932,
8,
16080,
7923,
2934,
542,
620,
2932,
17,
8863,
5411,
289,
5411,
1208,
67,
84,
273,
638,
31,
5411,
1122,
67,
84,
273,
629,
2
] |
public Object getNestedModel()
|
public IModel getNestedModel()
|
public Object getNestedModel() { return cdModel; }
|
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/1042bad9fdb0e2487268896d730c896a438c9138/TitleModel.java/clean/wicket-contrib-examples/src/java/wicket/examples/cdapp/TitleModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
336,
8649,
1488,
1435,
202,
95,
202,
202,
2463,
7976,
1488,
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,
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,
225,
202,
482,
1033,
336,
8649,
1488,
1435,
202,
95,
202,
202,
2463,
7976,
1488,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
CmsFlexCacheEntry processCacheEntry() throws IOException { if (isSuspended() && (m_bufferRedirect == null)) { // An included element redirected this response, no cache entry must be produced return null; } if (m_cachingRequired) { // Cache entry must only be calculated if it's actually needed (always true if we write only to buffer) m_cachedEntry = new CmsFlexCacheEntry(); if (m_bufferRedirect != null) { // Only set et cached redirect target m_cachedEntry.setRedirect(m_bufferRedirect); } else { // Add cached headers m_cachedEntry.addHeaders(m_bufferHeaders); // Add cached output if (m_includeList != null) { // Probably JSP: We must analyze out stream for includes calls // Also, m_writeOnlyToBuffer must be "true" or m_includeList can not be != null processIncludeList(); } else { // Output is delivered directly, no include call parsing required m_cachedEntry.add(getWriterBytes()); } } // update the "last modified" date for the cache entry m_cachedEntry.complete(); } // In case the output was only bufferd we have to re-write it to the "right" stream if (m_writeOnlyToBuffer) { // Since we are processing a cache entry caching is not required m_cachingRequired = false; if (m_bufferRedirect != null) { // Send buffered redirect, will trigger redirect of top response sendRedirect(m_bufferRedirect); } else { // Process the output if (m_parentWritesOnlyToBuffer) { // Write results back to own stream, headers are already in buffer if (m_out != null) { try { m_out.clear(); } catch (Exception e) { if (DEBUG) { System.err.println("FlexResponse: caught exception while calling m_out.clear() in processCacheEntry()\nException: " + e); } } } else { if (DEBUG) { System.err.println("FlexResponse: m_out == null in processCacheEntry()"); } } writeCachedResultToStream(this); } else { // We can use the parent stream processHeaders(m_headers, m_res); writeCachedResultToStream(m_res); } } } return m_cachedEntry; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0a0b3f362d729b80d273389251a431ed0e0a6847/CmsFlexResponse.java/buggy/src/org/opencms/flex/CmsFlexResponse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2149,
19667,
27630,
1207,
27630,
1435,
1216,
1860,
288,
5411,
309,
261,
291,
55,
22942,
1435,
597,
261,
81,
67,
4106,
5961,
422,
446,
3719,
288,
5411,
368,
1922,
5849,
930,
21808,
333,
766,
16,
1158,
1247,
1241,
1297,
506,
14929,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
81,
67,
17703,
310,
3705,
13,
288,
5411,
368,
4379,
1241,
1297,
1338,
506,
8894,
309,
518,
1807,
6013,
3577,
261,
17737,
638,
309,
732,
1045,
1338,
358,
1613,
13,
5411,
312,
67,
7097,
1622,
273,
394,
2149,
19667,
27630,
5621,
7734,
309,
261,
81,
67,
4106,
5961,
480,
446,
13,
288,
7734,
368,
5098,
444,
3393,
3472,
3136,
1018,
7734,
312,
67,
7097,
1622,
18,
542,
5961,
12,
81,
67,
4106,
5961,
1769,
5411,
289,
469,
288,
7734,
368,
1436,
3472,
1607,
7734,
312,
67,
7097,
1622,
18,
1289,
3121,
12,
81,
67,
4106,
3121,
1769,
7734,
368,
1436,
3472,
876,
1171,
309,
261,
81,
67,
6702,
682,
480,
446,
13,
288,
10792,
368,
14610,
6906,
804,
3118,
30,
1660,
1297,
12375,
596,
1407,
364,
6104,
4097,
10792,
368,
8080,
16,
312,
67,
2626,
3386,
774,
1892,
1297,
506,
315,
3767,
6,
578,
312,
67,
6702,
682,
848,
486,
506,
480,
446,
10792,
1207,
8752,
682,
5621,
10402,
289,
469,
288,
10792,
368,
3633,
353,
22112,
5122,
16,
1158,
2341,
745,
5811,
1931,
10792,
312,
67,
7097,
1622,
18,
1289,
12,
588,
2289,
2160,
10663,
7734,
289,
5411,
289,
5411,
368,
1089,
326,
315,
2722,
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,
2149,
19667,
27630,
1207,
27630,
1435,
1216,
1860,
288,
5411,
309,
261,
291,
55,
22942,
1435,
597,
261,
81,
67,
4106,
5961,
422,
446,
3719,
288,
5411,
368,
1922,
5849,
930,
21808,
333,
766,
16,
1158,
1247,
1241,
1297,
506,
14929,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
81,
67,
17703,
310,
3705,
13,
288,
5411,
368,
4379,
1241,
1297,
1338,
506,
8894,
309,
518,
1807,
6013,
3577,
261,
17737,
638,
309,
732,
1045,
1338,
358,
1613,
13,
5411,
312,
67,
7097,
1622,
273,
394,
2149,
19667,
27630,
5621,
7734,
309,
261,
81,
67,
4106,
5961,
480,
446,
13,
288,
7734,
368,
5098,
444,
3393,
3472,
3136,
1018,
7734,
312,
67,
7097,
1622,
18,
542,
5961,
2
] |
||
public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency();
|
public quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { quickfix.field.LegStrikeCurrency value = new quickfix.field.LegStrikeCurrency();
|
public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequestAck.java/clean/src/java/src/quickfix/fix44/TradeCaptureReportRequestAck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
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
] |
WorkingSetRegistry registry = WorkbenchPlugin.getDefault() .getWorkingSetRegistry(); WorkingSetDescriptor[] descriptors = registry.getNewPageWorkingSetDescriptors();
|
WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry();
|
public void addPages() { super.addPages(); IWizardPage page; WorkingSetRegistry registry = WorkbenchPlugin.getDefault() .getWorkingSetRegistry(); WorkingSetDescriptor[] descriptors = registry.getNewPageWorkingSetDescriptors(); if (descriptors.length > 1) { page = workingSetTypePage = new WorkingSetTypePage(); } else { editPageId = descriptors[0].getId(); page = workingSetEditPage = registry.getWorkingSetPage(editPageId); } page.setWizard(this); addPage(page); setForcePreviousAndNextButtons(descriptors.length > 1); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f84420fda9d18ee94129acd92c1939a024f461c9/WorkingSetNewWizard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetNewWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5716,
1435,
288,
3639,
2240,
18,
1289,
5716,
5621,
3639,
467,
27130,
1964,
1363,
31,
3639,
22732,
694,
4243,
4023,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
14836,
694,
4243,
5621,
3639,
22732,
694,
3187,
8526,
14215,
273,
4023,
18,
588,
1908,
1964,
14836,
694,
12705,
5621,
3639,
309,
261,
72,
8379,
18,
2469,
405,
404,
13,
288,
5411,
1363,
273,
5960,
25181,
1964,
273,
394,
22732,
25181,
1964,
5621,
3639,
289,
469,
288,
5411,
3874,
23053,
273,
14215,
63,
20,
8009,
26321,
5621,
5411,
1363,
273,
5960,
694,
4666,
1964,
273,
4023,
18,
588,
14836,
694,
1964,
12,
4619,
23053,
1769,
3639,
289,
3639,
1363,
18,
542,
27130,
12,
2211,
1769,
3639,
527,
1964,
12,
2433,
1769,
3639,
444,
10997,
8351,
24072,
14388,
12,
72,
8379,
18,
2469,
405,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5716,
1435,
288,
3639,
2240,
18,
1289,
5716,
5621,
3639,
467,
27130,
1964,
1363,
31,
3639,
22732,
694,
4243,
4023,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
14836,
694,
4243,
5621,
3639,
22732,
694,
3187,
8526,
14215,
273,
4023,
18,
588,
1908,
1964,
14836,
694,
12705,
5621,
3639,
309,
261,
72,
8379,
18,
2469,
405,
404,
13,
288,
5411,
1363,
273,
5960,
25181,
1964,
273,
394,
22732,
25181,
1964,
5621,
3639,
289,
469,
288,
5411,
3874,
23053,
273,
14215,
63,
20,
8009,
26321,
5621,
5411,
1363,
273,
5960,
694,
4666,
1964,
273,
4023,
18,
588,
14836,
694,
1964,
12,
4619,
23053,
1769,
3639,
289,
3639,
1363,
18,
542,
27130,
12,
2211,
2
] |
null, "setTabindex");
|
null, "setTabindexExpr");
|
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[31]; try { result[0] = new PropertyDescriptor("accesskey", ELPasswordTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELPasswordTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELPasswordTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[3] = new PropertyDescriptor("disabled", ELPasswordTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("indexed", ELPasswordTag.class, null, "setIndexedExpr"); result[5] = new PropertyDescriptor("maxlength", ELPasswordTag.class, null, "setMaxlength"); result[6] = new PropertyDescriptor("name", ELPasswordTag.class, null, "setName"); result[7] = new PropertyDescriptor("onblur", ELPasswordTag.class, null, "setOnblur"); result[8] = new PropertyDescriptor("onchange", ELPasswordTag.class, null, "setOnchange"); result[9] = new PropertyDescriptor("onclick", ELPasswordTag.class, null, "setOnclick"); result[10] = new PropertyDescriptor("ondblclick", ELPasswordTag.class, null, "setOndblclick"); result[11] = new PropertyDescriptor("onfocus", ELPasswordTag.class, null, "setOnfocus"); result[12] = new PropertyDescriptor("onkeydown", ELPasswordTag.class, null, "setOnkeydown"); result[13] = new PropertyDescriptor("onkeypress", ELPasswordTag.class, null, "setOnkeypress"); result[14] = new PropertyDescriptor("onkeyup", ELPasswordTag.class, null, "setOnkeyup"); result[15] = new PropertyDescriptor("onmousedown", ELPasswordTag.class, null, "setOnmousedown"); result[16] = new PropertyDescriptor("onmousemove", ELPasswordTag.class, null, "setOnmousemove"); result[17] = new PropertyDescriptor("onmouseout", ELPasswordTag.class, null, "setOnmouseout"); result[18] = new PropertyDescriptor("onmouseover", ELPasswordTag.class, null, "setOnmouseover"); result[19] = new PropertyDescriptor("onmouseup", ELPasswordTag.class, null, "setOnmouseup"); result[20] = new PropertyDescriptor("property", ELPasswordTag.class, null, "setProperty"); result[21] = new PropertyDescriptor("readonly", ELPasswordTag.class, null, "setReadonlyExpr"); result[22] = new PropertyDescriptor("redisplay", ELPasswordTag.class, null, "setRedisplayExpr"); result[23] = new PropertyDescriptor("style", ELPasswordTag.class, null, "setStyle"); result[24] = new PropertyDescriptor("styleClass", ELPasswordTag.class, null, "setStyleClass"); result[25] = new PropertyDescriptor("styleId", ELPasswordTag.class, null, "setStyleId"); result[26] = new PropertyDescriptor("size", ELPasswordTag.class, null, "setSize"); result[27] = new PropertyDescriptor("tabindex", ELPasswordTag.class, null, "setTabindex"); result[28] = new PropertyDescriptor("title", ELPasswordTag.class, null, "setTitle"); result[29] = new PropertyDescriptor("titleKey", ELPasswordTag.class, null, "setTitleKey"); result[30] = new PropertyDescriptor("value", ELPasswordTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELPasswordTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELPasswordTagBeanInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
6938,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860,
856,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1862,
856,
8863,
5411,
563,
63,
21,
65,
273,
394,
26761,
2932,
2390,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
8863,
5411,
563,
63,
22,
65,
273,
394,
26761,
2932,
2390,
653,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
653,
8863,
5411,
368,
1220,
1566,
711,
279,
1661,
17,
10005,
2874,
18,
5411,
563,
63,
23,
65,
273,
394,
26761,
2932,
9278,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
8853,
4742,
8863,
5411,
368,
1220,
1566,
711,
279,
1661,
17,
10005,
2874,
18,
5411,
563,
63,
24,
65,
273,
394,
26761,
2932,
19626,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
15034,
4742,
8863,
5411,
563,
63,
25,
65,
273,
394,
26761,
2932,
27875,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
2747,
2469,
8863,
5411,
563,
63,
26,
65,
273,
394,
26761,
2932,
529,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
461,
8863,
5411,
563,
63,
27,
65,
273,
394,
26761,
2932,
265,
27065,
3113,
14801,
3913,
1805,
18,
1106,
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,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
6938,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860,
856,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
1862,
856,
8863,
5411,
563,
63,
21,
65,
273,
394,
26761,
2932,
2390,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
8863,
5411,
563,
63,
22,
65,
273,
394,
26761,
2932,
2390,
653,
3113,
14801,
3913,
1805,
18,
1106,
16,
4766,
9079,
446,
16,
315,
542,
10655,
653,
8863,
5411,
368,
1220,
1566,
711,
279,
1661,
17,
10005,
2874,
18,
5411,
563,
63,
23,
2
] |
source.append((char)tt); pn = nf.createBinary(tt, pn, unaryExpr(ts, source));
|
sourceAdd((char)tt); pn = nf.createBinary(tt, pn, unaryExpr(ts));
|
private Object mulExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; Object pn = unaryExpr(ts, source); while ((tt = ts.peekToken()) == ts.MUL || tt == ts.DIV || tt == ts.MOD) { tt = ts.getToken(); source.append((char)tt); pn = nf.createBinary(tt, pn, unaryExpr(ts, source)); } return pn; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
14064,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
273,
19017,
4742,
12,
3428,
16,
1084,
1769,
3639,
1323,
14015,
748,
273,
3742,
18,
347,
3839,
1345,
10756,
422,
3742,
18,
49,
1506,
747,
9079,
3574,
422,
3742,
18,
31901,
747,
9079,
3574,
422,
3742,
18,
6720,
13,
288,
5411,
3574,
273,
3742,
18,
588,
1345,
5621,
5411,
1084,
18,
6923,
12443,
3001,
13,
748,
1769,
5411,
11059,
273,
13958,
18,
2640,
5905,
12,
748,
16,
11059,
16,
19017,
4742,
12,
3428,
16,
1084,
10019,
3639,
289,
3639,
327,
11059,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
14064,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
273,
19017,
4742,
12,
3428,
16,
1084,
1769,
3639,
1323,
14015,
748,
273,
3742,
18,
347,
3839,
1345,
10756,
422,
3742,
18,
49,
1506,
747,
9079,
3574,
422,
3742,
18,
31901,
747,
9079,
3574,
422,
3742,
18,
6720,
13,
288,
5411,
3574,
273,
3742,
18,
588,
1345,
5621,
5411,
1084,
18,
6923,
12443,
3001,
13,
748,
1769,
5411,
11059,
273,
13958,
18,
2640,
5905,
12,
748,
16,
11059,
16,
19017,
4742,
12,
3428,
16,
1084,
10019,
3639,
289,
3639,
327,
11059,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
testFake(ctx); testNull(ctx);
|
testED2(ctx);
|
public static void main(String args[]) { I2PAppContext ctx = new I2PAppContext(); try { testEDBlock(ctx); testED(ctx); testFake(ctx); testNull(ctx); } catch (Exception e) { e.printStackTrace(); } try { Thread.sleep(5*1000); } catch (InterruptedException ie) {} }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/4838564460a0489c96bf4eb8c6e7fba9c99f4590/CryptixAESEngine.java/buggy/core/java/src/net/i2p/crypto/CryptixAESEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
467,
22,
52,
3371,
1042,
1103,
273,
394,
467,
22,
52,
3371,
1042,
5621,
3639,
775,
288,
5411,
1842,
2056,
1768,
12,
5900,
1769,
5411,
1842,
2056,
12,
5900,
1769,
5411,
1842,
25462,
12,
5900,
1769,
5411,
1842,
2041,
12,
5900,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
425,
18,
1188,
6332,
5621,
3639,
289,
3639,
775,
288,
4884,
18,
19607,
12,
25,
14,
18088,
1769,
289,
1044,
261,
24485,
503,
9228,
13,
2618,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
467,
22,
52,
3371,
1042,
1103,
273,
394,
467,
22,
52,
3371,
1042,
5621,
3639,
775,
288,
5411,
1842,
2056,
1768,
12,
5900,
1769,
5411,
1842,
2056,
12,
5900,
1769,
5411,
1842,
25462,
12,
5900,
1769,
5411,
1842,
2041,
12,
5900,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
425,
18,
1188,
6332,
5621,
3639,
289,
3639,
775,
288,
4884,
18,
19607,
12,
25,
14,
18088,
1769,
289,
1044,
261,
24485,
503,
9228,
13,
2618,
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
] |
if (file != null) { m_propertyFile = file.toLowerCase();
|
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(file)) { m_propertyFile = file;
|
public void setFile(String file) { if (file != null) { m_propertyFile = file.toLowerCase(); } }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0dde3e7377438c1ea40f883b05edfdd5d452cfa4/CmsJspTagProperty.java/clean/src/org/opencms/jsp/CmsJspTagProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19658,
12,
780,
585,
13,
288,
3639,
309,
261,
768,
480,
446,
13,
288,
5411,
312,
67,
4468,
812,
273,
585,
18,
869,
5630,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19658,
12,
780,
585,
13,
288,
3639,
309,
261,
768,
480,
446,
13,
288,
5411,
312,
67,
4468,
812,
273,
585,
18,
869,
5630,
5621,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SorceressLair.completeEntryway();
|
SorceressLair.completeCloveredEntryway();
|
private void executeCommand( String command, String parameters ) { // Insert random video game reference command to // start things off. if ( command.equals( "priphea" ) ) { if ( !KoLDesktop.instanceExists() ) { KoLDesktop.getInstance().initializeTabs(); KoLDesktop.getInstance().pack(); KoLDesktop.getInstance().setVisible( true ); } return; } // Maybe the person is trying to load a raw URL // to test something without creating a brand new // KoLRequest object to handle it yet? if ( command.indexOf( ".php" ) != -1 ) { KoLRequest desired = new KoLRequest( StaticEntity.getClient(), previousLine, true ); StaticEntity.getClient().makeRequest( desired ); StaticEntity.externalUpdate( desired.getURLString(), desired.responseText ); return; } // Maybe the person wants to load up their browser // from the KoLmafia CLI? if ( command.startsWith( "relay" ) || command.startsWith( "serve" ) ) { StaticEntity.getClient().startRelayServer(); return; } // First, handle the wait command, for however // many seconds the user would like to wait. if ( command.equals( "wait" ) || command.equals( "pause" ) ) { try { int seconds = parameters.equals( "" ) ? 1 : COMMA_FORMAT.parse( parameters ).intValue(); StaticEntity.executeCountdown( "Countdown: ", seconds ); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e ); } updateDisplay( "Waiting completed." ); return; } // Preconditions kickass, so they're handled right // after the wait command. (Right) if ( command.equals( "conditions" ) || command.equals( "objectives" ) ) { executeConditionsCommand( parameters ); return; } // Handle the update command. This downloads stuff // from the KoLmafia sourceforge website, so it does // not require for you to be online. if ( command.equals( "update" ) ) { downloadAdventureOverride(); updateDisplay( "You will need to restart KoLmafia for the changes to take effect." ); return; } if ( command.equals( "abort" ) ) { updateDisplay( ABORT_STATE, parameters.length() == 0 ? "Script abort." : parameters ); return; } // Adding the requested echo command. I guess this is // useful for people who want to echo things... if ( command.equals( "echo" ) ) { if ( parameters.equalsIgnoreCase( "timestamp" ) ) updateDisplay( CalendarFrame.TODAY_FORMATTER.format( new Date() ) ); else if ( parameters.equalsIgnoreCase( "kol-date" ) ) updateDisplay( MoonPhaseDatabase.getCalendarDayAsString( new Date() ) ); else updateDisplay( parameters ); return; } // Adding another undocumented property setting command // so people can configure variables in scripts. if ( command.equals( "set" ) ) { int splitIndex = parameters.indexOf( "=" ); StaticEntity.setProperty( parameters.substring( 0, splitIndex ).trim(), parameters.substring( splitIndex + 1 ).trim() ); return; } // Handle the if-statement and the while-statement. // The while-statement will not get a separate comment // because it is unloved. if ( command.equals( "if" ) ) { executeIfStatement( parameters ); return; } if ( command.equals( "while" ) ) { executeWhileStatement( parameters ); return; } // Next, handle any requests to login or relogin. // This will be done by calling a utility method. if ( command.equals( "login" ) || command.equals( "relogin" ) ) { String password = StaticEntity.getClient().getSaveState( parameters ); if ( password != null ) { if ( StaticEntity.getClient().getPasswordHash() != null ) { updateDisplay( "Logging out..." ); (new LogoutRequest( StaticEntity.getClient() )).run(); } // Remove all of the frames which may have been loaded; // this ensures a forced reload of the frame which will // keep the parameters fresh. KoLFrame [] frames = new KoLFrame[ existingFrames.size() ]; existingFrames.toArray( frames ); for ( int i = 0; i < frames.length; ++i ) if ( !(frames[i] instanceof LoginFrame) ) frames[i].dispose(); if ( KoLDesktop.instanceExists() ) KoLDesktop.getInstance().setVisible( false ); StaticEntity.getClient().deinitialize(); (new LoginRequest( StaticEntity.getClient(), parameters, password )).run(); } else updateDisplay( ERROR_STATE, "No password saved for that username." ); return; } // Next, handle any requests that request exiting. // Note that a logout request should be sent in // order to be friendlier to the server, if the // character has already logged in. if ( command.equals( "exit" ) || command.equals( "quit" ) || command.equals( "logout" ) ) { updateDisplay( "Logging out..." ); StaticEntity.closeSession(); updateDisplay( "Exiting KoLmafia..." ); System.exit(0); } // Next, handle any requests for script execution; // these can be done at any time (including before // login), so they should be handled before a test // of login state needed for other commands. if ( command.equals( "verify" ) || command.equals( "validate" ) || command.equals( "call" ) || command.equals( "run" ) || command.startsWith( "exec" ) || command.equals( "load" ) || command.equals( "start" ) ) { executeScriptCommand( parameters ); return; } // Next, handle continue commands, which allow // you to resume where you left off in the // last executing script. if ( command.equals( "continue" ) ) { if ( lastScript == null || lastScript.previousLine == null ) { updateDisplay( ERROR_STATE, "No commands left to continue script." ); return; } lastScript.listenForCommands(); if ( lastScript.previousLine == null ) lastScript = null; return; } // Next, handle repeat commands - these are a // carry-over feature which made sense in CLI. if ( command.equals( "repeat" ) ) { try { if ( previousLine != null ) { int repeatCount = parameters.length() == 0 ? 1 : COMMA_FORMAT.parse( parameters ).intValue(); for ( int i = 0; i < repeatCount && permitsContinue(); ++i ) executeLine( previousLine ); } return; } catch ( Exception e ) { // Notify the client that the command could not be repeated // the given number of times. updateDisplay( ERROR_STATE, parameters + " is not a number." ); return; } } // Next, print out the moon phase, if the user // wishes to know what moon phase it is. if ( command.startsWith( "moon" ) ) { updateDisplay( "Ronald: " + MoonPhaseDatabase.getRonaldPhaseAsString() ); updateDisplay( "Grimace: " + MoonPhaseDatabase.getGrimacePhaseAsString() ); printBlankLine(); updateDisplay( MoonPhaseDatabase.getMoonEffect() ); printBlankLine(); Date today = new Date(); try { today = DATED_FILENAME_FORMAT.parse( DATED_FILENAME_FORMAT.format( today ) ); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e ); return; } String [] holidayPredictions = MoonPhaseDatabase.getHolidayPredictions( today ); for ( int i = 0; i < holidayPredictions.length; ++i ) updateDisplay( holidayPredictions[i] ); printBlankLine(); updateDisplay( MoonPhaseDatabase.getHoliday( today ) ); printBlankLine(); return; } // Next, handle requests to start or stop // debug mode. if ( command.startsWith( "debug" ) ) { if ( parameters.startsWith( "on" ) ) openDebugStream(); else if ( parameters.startsWith( "off" ) ) closeDebugStream(); else { updateDisplay( ERROR_STATE, parameters + " is not a valid option." ); } return; } // Next, handle requests to start or stop // the mirror stream. if ( command.indexOf( "mirror" ) != -1 ) { if ( command.indexOf( "end" ) != -1 || command.indexOf( "stop" ) != -1 || command.indexOf( "close" ) != -1 || parameters.length() == 0 || parameters.equals( "end" ) || parameters.equals( "stop" ) || parameters.equals( "close" ) ) { this.mirrorStream.close(); this.mirrorStream = NullStream.INSTANCE; updateDisplay( "Mirror stream closed." ); } else { File outputFile = new File( parameters ); outputFile = new File( outputFile.getAbsolutePath() ); // If the output file does not exist, create it first // to avoid FileNotFoundExceptions being thrown. try { if ( !outputFile.exists() ) { outputFile.getParentFile().mkdirs(); outputFile.createNewFile(); } this.mirrorStream = new PrintStream( new FileOutputStream( outputFile, true ), true ); } catch ( IOException e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e, "Error opening file <" + parameters + ">" ); return; } } return; } // Then, the description lookup command so that // people can see what the description is for a // particular item. if ( command.equals( "lookup" ) ) { AdventureResult result = getFirstMatchingItem( parameters, NOWHERE ); if ( result == null ) return; KoLRequest request = new KoLRequest( StaticEntity.getClient(), "desc_item.php?whichitem=" + TradeableItemDatabase.getDescriptionID( result.getItemID() ) ); request.run(); if ( StaticEntity.getClient() instanceof KoLmafiaGUI ) { Object [] params = new Object[2]; params[0] = StaticEntity.getClient(); params[1] = request; (new CreateFrameRunnable( RequestFrame.class, params )).run(); } else { showHTML( request.responseText, "Item Description" ); } return; } if ( command.equals( "survival" ) || command.equals( "getdata" ) ) { showHTML( AdventureDatabase.getAreaCombatData( AdventureDatabase.getAdventure( parameters ).toString() ).toString(), "Survival Lookup" ); return; } // Re-adding the breakfast command, just // so people can add it in scripting. if ( command.equals( "breakfast" ) ) { getBreakfast( false ); return; } if ( parameters.endsWith( "refresh" ) ) { parameters = command; command = "refresh"; } if ( command.equals( "refresh" ) ) { parameters = parameters.toLowerCase(); if ( parameters.equalsIgnoreCase( "all" ) ) StaticEntity.getClient().refreshSession(); else if ( parameters.startsWith( "status" ) || parameters.startsWith( "effects" ) ) (new CharsheetRequest( StaticEntity.getClient() )).run(); else if ( parameters.startsWith( "gear" ) || parameters.startsWith( "equipment" ) || parameters.startsWith( "outfit" ) ) (new EquipmentRequest( StaticEntity.getClient(), EquipmentRequest.EQUIPMENT )).run(); else if ( parameters.startsWith( "inv" ) ) (new EquipmentRequest( StaticEntity.getClient(), EquipmentRequest.CLOSET )).run(); else if ( parameters.startsWith( "storage" ) ) (new ItemStorageRequest( StaticEntity.getClient() )).run(); else if ( parameters.startsWith( "familiar" ) || parameters.startsWith( "terrarium" ) ) (new FamiliarRequest( StaticEntity.getClient() )).run(); return; } // Look! It's the command to complete the // Sorceress entryway. if ( command.equals( "entryway" ) ) { SorceressLair.completeEntryway(); return; } // Look! It's the command to complete the // Sorceress hedge maze! This is placed // right after for consistency. if ( command.equals( "maze" ) || command.equals( "hedgemaze" ) ) { SorceressLair.completeHedgeMaze(); return; } // Look! It's the command to fight the guardians // in the Sorceress's tower! This is placed // right after for consistency. if ( command.equals( "tower" ) || command.equals( "guardians" ) ) { SorceressLair.fightTowerGuardians(); return; } // Look! It's the command to complete the Sorceress's // Chamber! This is placed right after for consistency. if ( command.equals( "chamber" ) ) { SorceressLair.completeSorceressChamber(); return; } // Next is the command to rob the strange leaflet. // This method invokes the "robStrangeLeaflet" method // on the script requestor. if ( command.equals( "leaflet" ) ) { StrangeLeaflet.robStrangeLeaflet( !parameters.equals( "nomagic" ) ); return; } // Next is the command to face your nemesis. This // method invokes the "faceNemesis" method on the // script requestor. if ( command.equals( "nemesis" ) ) { Nemesis.faceNemesis(); return; } if ( command.equals( "guild" ) ) { StaticEntity.getClient().unlockGuildStore(); return; } if ( command.equals( "gourd" ) ) { StaticEntity.getClient().tradeGourdItems(); return; } if ( command.equals( "tavern" ) ) { StaticEntity.getClient().locateTavernFaucet(); return; } // Next is the command to train your current familiar if ( command.equals( "train" ) ) { trainFamiliar( parameters ); return; } // Next is the command to visit the council. // This prints data to the command line. if ( command.equals( "council" ) ) { KoLRequest request = new KoLRequest( StaticEntity.getClient(), "council.php", true ); request.run(); showHTML( request.responseText, "Council quests" ); return; } // Campground activities are fairly common, so // they will be listed first after the above. if ( command.equals( "campground" ) ) { executeCampgroundRequest( parameters ); return; } // Buffs are pretty neat, too - for now, it's // just casts on self if ( command.equals( "cast" ) || command.equals( "skill" ) ) { executeCastBuffRequest( parameters ); return; } // Uneffect with martians are related to buffs, // so listing them next seems logical. if ( command.equals( "uneffect" ) || command.equals( "remedy" ) ) { makeUneffectRequest(); return; } // Add in item retrieval the way KoLmafia handles // it internally. if ( command.equals( "retrieve" ) || command.equals( "acquire" ) ) { String oldSetting = StaticEntity.getProperty( "autoSatisfyChecks" ); StaticEntity.setProperty( "autoSatisfyChecks", "true" ); // Handle lucky and unlucky retrieval of // worthless items via the sewer. if ( parameters.equals( "worthless item" ) ) { while ( KoLCharacter.getAdventuresLeft() > 0 && HermitRequest.getWorthlessItemCount() == 0 && permitsContinue() ) executeLine( "buy 1 chewing gum on a string; adventure Unlucky Sewer" ); if ( HermitRequest.getWorthlessItemCount() == 0 ) { updateDisplay( ERROR_STATE, "Unable to acquire a worthless item." ); return; } } else if ( parameters.equals( "worthless item with clover" ) && HermitRequest.getWorthlessItemCount() == 0 ) { if ( KoLCharacter.getAdventuresLeft() > 0 ) { AdventureDatabase.retrieveItem( SewerRequest.CLOVER.getInstance(1) ); executeLine( "buy 1 chewing gum on a string; adventure Sewer With Clovers" ); } else { updateDisplay( ERROR_STATE, "Unable to acquire a worthless item." ); return; } } // Non-worthless-item requests default to // internal retrieveItem calls. else if ( !parameters.startsWith( "worthless item" ) ) { AdventureResult item = getFirstMatchingItem( parameters, NOWHERE ); if ( item != null ) AdventureDatabase.retrieveItem( item ); } StaticEntity.setProperty( "autoSatisfyChecks", oldSetting ); return; } // Adding clan management command options inline // in the parsing. if ( command.equals( "clan" ) ) { if ( parameters.equals( "snapshot" ) ) ClanManager.takeSnapshot( 20, 10, 5, 0, false ); else if ( parameters.equals( "stashlog" ) ) ClanManager.saveStashLog(); return; } // One command available after login is a request // to print the current state of the StaticEntity.getClient(). This // should be handled in a separate method, since // there are many things the StaticEntity.getClient() may want to print if ( command.equals( "print" ) || command.equals( "list" ) || command.equals( "show" ) ) { executePrintCommand( parameters ); return; } // One command is an item usage request. These // requests are complicated, so delegate to the // appropriate utility method. if ( command.equals( "eat" ) || command.equals( "drink" ) || command.equals( "use" ) ) { executeConsumeItemRequest( parameters ); return; } // Zapping with wands is a type of item usage if ( command.equals( "zap" ) ) { makeZapRequest(); return; } // Another item-related command is a creation // request. Again, complicated request, so // delegate to the appropriate utility method. if ( command.equals( "create" ) || command.equals( "make" ) || command.equals( "bake" ) || command.equals( "mix" ) || command.equals( "smith" ) || command.equals( "tinker" ) ) { executeItemCreationRequest( parameters ); return; } // Another item-related command is an untinker // request. Again, complicated request, so // delegate to the appropriate utility method. if ( command.equals( "untinker" ) ) { makeUntinkerRequest(); return; } // Another item-related command is the autosell // request. This one's simple, but it still // gets its own utility method. if ( command.equals( "mallsell" ) || command.equals( "automall" ) ) { executeAutoMallRequest( parameters ); return; } // Yay for more item-related commands. This // one is the one that allows you to place // things into your clan stash. if ( command.equals( "stash" ) ) { executeStashRequest( parameters ); return; } // Another w00t for more item-related commands. // This one is the one that allows you to pull // things from storage. if ( command.equals( "hagnk" ) ) { executeHagnkRequest( parameters ); return; } // Another item-related command is the autosell // request. This one's simple, but it still // gets its own utility method. if ( command.equals( "sell" ) || command.equals( "autosell" ) ) { executeAutoSellRequest( parameters ); return; } if ( command.equals( "reprice" ) || command.equals( "undercut" ) ) { StaticEntity.getClient().priceItemsAtLowestPrice(); return; } // Setting the Canadian mind control machine if ( command.equals( "mind-control" ) || command.equals( "mcd" ) ) { makeMindControlRequest(); return; } // Commands to manipulate the mushroom plot if ( command.equals( "field" ) ) { executeMushroomCommand( parameters ); return; } // One of the largest commands is adventuring, // which (as usual) gets its own module. if ( command.equals( "adventure" ) ) { executeAdventureRequest( parameters ); return; } // Donations get their own command and module, // too, which handles hero donations and basic // clan donations. if ( command.equals( "donate" ) ) { executeDonateCommand( parameters ); return; } // Another popular command involves changing // a specific piece of equipment. if ( command.startsWith( "equip" ) || command.startsWith( "wear" ) || command.startsWith( "wield" ) ) { executeEquipCommand( parameters ); return; } // You can remove a specific piece of equipment. if ( command.startsWith( "unequip" ) || command.startsWith( "remove" ) ) { executeUnequipCommand( parameters ); return; } // Another popular command involves changing // your current familiar. if ( command.startsWith( "familiar" ) ) { if ( parameters.startsWith( "list" ) ) { executePrintCommand( "familiars " + parameters.substring(4).trim() ); return; } else if ( parameters.length() == 0 ) { executePrintCommand( "familiars" ); return; } else if ( parameters.equalsIgnoreCase( "none" ) || parameters.equalsIgnoreCase( "unequip" ) ) { StaticEntity.getClient().makeRequest( new FamiliarRequest( StaticEntity.getClient(), FamiliarData.NO_FAMILIAR ) ); return; } String lowerCaseName = parameters.toLowerCase(); List familiars = KoLCharacter.getFamiliarList(); for ( int i = 0; i < familiars.size(); ++i ) { if ( familiars.get(i).toString().toLowerCase().indexOf( lowerCaseName ) != -1 ) { StaticEntity.getClient().makeRequest( new FamiliarRequest( StaticEntity.getClient(), (FamiliarData) familiars.get(i) ) ); return; } } updateDisplay( ERROR_STATE, "You don't have that familiar." ); return; } // Another popular command involves managing // your player's closet! Which can be fun. if ( command.startsWith( "closet" ) ) { if ( parameters.startsWith( "list" ) ) { executePrintCommand( "closet " + parameters.substring(4).trim() ); return; } else if ( parameters.length() == 0 ) { executePrintCommand( "closet" ); return; } executeClosetManageRequest( parameters ); return; } // More commands -- this time to put stuff into // your display case (or remove them). if ( command.equals( "display" ) ) { executeDisplayCaseRequest( parameters ); return; } // Yet another popular command involves changing // your outfit. if ( command.startsWith( "outfit" ) ) { if ( parameters.startsWith( "list" ) ) { executePrintCommand( "outfits " + parameters.substring(4).trim() ); return; } else if ( parameters.length() == 0 ) { executePrintCommand( "outfits" ); return; } else if ( parameters.equalsIgnoreCase( "checkpoint" ) ) { SpecialOutfit.restoreCheckpoint(); return; } executeChangeOutfitCommand( parameters ); if ( permitsContinue() ) executePrintCommand( "equip" ); return; } // Another command involves saving the current // gear into the KoLmafia checkpoint outfit. if ( command.equals( "checkpoint" ) ) { SpecialOutfit.createCheckpoint(); return; } // Purchases from the mall are really popular, // as far as scripts go. Nobody is sure why, // but they're popular, so they're implemented. if ( command.equals( "buy" ) || command.equals( "mallbuy" ) ) { executeBuyCommand( parameters ); return; } // The BuffBot may never get called from the CLI, // but we'll include it here for completeness sake if ( command.equals( "buffbot" )) { executeBuffBotCommand( parameters ); return; } // If you just want to see what's in the mall, // then execute a search from here. if ( command.equals( "searchmall" ) ) { List results = new ArrayList(); int desiredLimit = 0; if ( parameters.indexOf( "with limit" ) != -1 ) { String [] splitup = parameters.split( "with limit" ); parameters = splitup[0]; desiredLimit = Integer.parseInt( parameters ); } StoreManager.searchMall( parameters, results, desiredLimit, true ); printList( results ); return; } if ( command.equals( "hermit" ) ) { makeHermitRequest(); return; } if ( command.equals( "trapper" ) ) { makeTrapperRequest(); return; } if ( command.equals( "hunter" ) ) { makeHunterRequest(); return; } if ( command.equals( "galaktik" ) ) { makeGalaktikRequest(); return; } if ( command.equals( "restaurant" ) ) { makeRestaurantRequest(); return; } if ( command.equals( "microbrewery" ) ) { makeMicrobreweryRequest(); return; } // Campground commands, like retrieving toast, relaxing // at the beanbag, resting at your house/tent, and visiting // the evil golden arches. if ( command.equals( "toast" ) || command.equals( "rest" ) || command.equals( "relax" ) || command.equals( "arches" ) ) { executeCampgroundRequest( command + " " + parameters ); return; } // Because it makes sense to add this command as-is, // you now have the ability to request buffs. if ( command.equals( "send" ) || command.equals( "kmail" ) ) { executeSendRequest( parameters ); return; } // Finally, handle command abbreviations - in // other words, commands that look like they're // their own commands, but are actually commands // which are derived from other commands. if ( command.startsWith( "inv" ) || command.equals( "closet" ) || command.equals( "session" ) || command.equals( "summary" ) || command.equals( "effects" ) || command.startsWith( "status" ) || command.equals( "encounters" ) || command.equals( "skills" ) ) { executePrintCommand( command + " " + parameters ); return; } // If all else fails, then assume that the // person was trying to call a script. executeScriptCommand( previousLine ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/15f1a8546cca64ae47d7e5cab62fdd4afbde4936/KoLmafiaCLI.java/clean/src/net/sourceforge/kolmafia/KoLmafiaCLI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
21120,
12,
514,
1296,
16,
514,
1472,
262,
202,
95,
202,
202,
759,
8040,
2744,
6191,
7920,
2114,
1296,
358,
202,
202,
759,
787,
9198,
3397,
18,
202,
202,
430,
261,
1296,
18,
14963,
12,
315,
84,
21335,
580,
69,
6,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
47,
83,
48,
27583,
18,
1336,
4002,
1435,
262,
1082,
202,
95,
9506,
202,
47,
83,
48,
27583,
18,
588,
1442,
7675,
11160,
17348,
5621,
9506,
202,
47,
83,
48,
27583,
18,
588,
1442,
7675,
2920,
5621,
9506,
202,
47,
83,
48,
27583,
18,
588,
1442,
7675,
542,
6207,
12,
638,
11272,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
14024,
326,
6175,
353,
8374,
358,
1262,
279,
1831,
1976,
202,
202,
759,
358,
1842,
5943,
2887,
4979,
279,
15272,
394,
202,
202,
759,
1475,
83,
48,
691,
733,
358,
1640,
518,
4671,
35,
202,
202,
430,
261,
1296,
18,
31806,
12,
3552,
2684,
6,
262,
480,
300,
21,
262,
202,
202,
95,
1082,
202,
47,
83,
48,
691,
6049,
273,
394,
1475,
83,
48,
691,
12,
10901,
1943,
18,
588,
1227,
9334,
2416,
1670,
16,
638,
11272,
1082,
202,
5788,
1943,
18,
588,
1227,
7675,
6540,
691,
12,
6049,
11272,
1082,
202,
5788,
1943,
18,
9375,
1891,
12,
6049,
18,
588,
1785,
780,
9334,
6049,
18,
2740,
1528,
11272,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
14024,
326,
6175,
14805,
358,
1262,
731,
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,
1152,
918,
21120,
12,
514,
1296,
16,
514,
1472,
262,
202,
95,
202,
202,
759,
8040,
2744,
6191,
7920,
2114,
1296,
358,
202,
202,
759,
787,
9198,
3397,
18,
202,
202,
430,
261,
1296,
18,
14963,
12,
315,
84,
21335,
580,
69,
6,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
47,
83,
48,
27583,
18,
1336,
4002,
1435,
262,
1082,
202,
95,
9506,
202,
47,
83,
48,
27583,
18,
588,
1442,
7675,
11160,
17348,
5621,
9506,
202,
47,
83,
48,
27583,
18,
588,
1442,
7675,
2920,
5621,
9506,
202,
47,
83,
48,
27583,
18,
588,
1442,
7675,
542,
6207,
12,
638,
11272,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2
] |
mockDispatcher.dispatchResult = RESULT;
|
mockDispatcher.dispatchResult = RESULT;
|
public void testProxyReturnsConfiguredResult() throws Throwable { final String RESULT = "configured result"; mockDispatcher.dispatchResult = RESULT; assertSame("result is returned by coreMock", RESULT, proxy.oneArgMethod("arg")); }
|
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/CGLIBCoreMockTest.java/clean/jmock/extensions/cglib/src/test/jmock/cglib/CGLIBCoreMockTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3886,
1356,
15334,
1253,
1435,
1216,
4206,
288,
202,
202,
6385,
514,
17210,
273,
315,
16449,
563,
14432,
202,
202,
22851,
6681,
18,
10739,
1253,
273,
17210,
31,
202,
202,
11231,
8650,
2932,
2088,
353,
2106,
635,
2922,
9865,
3113,
17210,
16,
2889,
18,
476,
4117,
1305,
2932,
3175,
7923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3886,
1356,
15334,
1253,
1435,
1216,
4206,
288,
202,
202,
6385,
514,
17210,
273,
315,
16449,
563,
14432,
202,
202,
22851,
6681,
18,
10739,
1253,
273,
17210,
31,
202,
202,
11231,
8650,
2932,
2088,
353,
2106,
635,
2922,
9865,
3113,
17210,
16,
2889,
18,
476,
4117,
1305,
2932,
3175,
7923,
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
] |
((MetaBean)bc).restoreInputAndOutputCoords();
|
((MetaBean)bc).restoreBeans();
|
public void actionPerformed(ActionEvent e) { // ungroup bi.removeBean(m_beanLayout); Vector group = ((MetaBean)bc).getBeansInSubFlow(); Vector associatedConnections = ((MetaBean)bc).getAssociatedConnections(); ((MetaBean)bc).restoreInputAndOutputCoords(); for (int i = 0; i < group.size(); i++) { BeanInstance tbi = (BeanInstance)group.elementAt(i); addComponent(tbi, false); tbi.addBean(m_beanLayout); } for (int i = 0; i < associatedConnections.size(); i++) { BeanConnection tbc = (BeanConnection)associatedConnections.elementAt(i); tbc.setHidden(false); } m_beanLayout.repaint(); }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/85a664f74cb53a1c2e9a05a410eeadb6543fa1db/KnowledgeFlowApp.java/buggy/trunk/weka/gui/beans/KnowledgeFlowApp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
368,
640,
1655,
5411,
10054,
18,
4479,
3381,
12,
81,
67,
14496,
3744,
1769,
5411,
5589,
1041,
273,
14015,
2781,
3381,
13,
13459,
2934,
588,
14495,
382,
1676,
5249,
5621,
5411,
5589,
3627,
9314,
273,
9079,
14015,
2781,
3381,
13,
13459,
2934,
588,
19233,
9314,
5621,
5411,
14015,
2781,
3381,
13,
13459,
2934,
13991,
14495,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1041,
18,
1467,
5621,
277,
27245,
288,
2868,
7704,
1442,
8739,
77,
273,
261,
3381,
1442,
13,
1655,
18,
2956,
861,
12,
77,
1769,
2868,
15218,
12,
88,
13266,
16,
629,
1769,
2868,
8739,
77,
18,
1289,
3381,
12,
81,
67,
14496,
3744,
1769,
5411,
289,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3627,
9314,
18,
1467,
5621,
277,
27245,
288,
2868,
7704,
1952,
8739,
71,
273,
1171,
261,
3381,
1952,
13,
28441,
9314,
18,
2956,
861,
12,
77,
1769,
2868,
8739,
71,
18,
542,
9345,
12,
5743,
1769,
5411,
289,
5411,
312,
67,
14496,
3744,
18,
14462,
1598,
5621,
1850,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
368,
640,
1655,
5411,
10054,
18,
4479,
3381,
12,
81,
67,
14496,
3744,
1769,
5411,
5589,
1041,
273,
14015,
2781,
3381,
13,
13459,
2934,
588,
14495,
382,
1676,
5249,
5621,
5411,
5589,
3627,
9314,
273,
9079,
14015,
2781,
3381,
13,
13459,
2934,
588,
19233,
9314,
5621,
5411,
14015,
2781,
3381,
13,
13459,
2934,
13991,
14495,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1041,
18,
1467,
5621,
277,
27245,
288,
2868,
7704,
1442,
8739,
77,
273,
261,
3381,
1442,
13,
1655,
18,
2956,
861,
12,
77,
1769,
2868,
15218,
12,
88,
13266,
16,
629,
1769,
2868,
8739,
77,
18,
1289,
3381,
12,
81,
67,
14496,
2
] |
m_itemComputerPlay = addMenuItem(menu, "Play", KeyEvent.VK_L, KeyEvent.VK_F5, getFunctionKeyShortcut(), "play");
|
m_itemComputerPlay = menu.addItem("Play", KeyEvent.VK_L, KeyEvent.VK_F5, getFunctionKeyShortcut(), "play");
|
private JMenu createMenuGame() { JMenu menu = createMenu("Game", KeyEvent.VK_A); addMenuItem(menu, "New Game", KeyEvent.VK_N, "new-game"); menu.addSeparator(); m_menuComputerColor = createComputerColorMenu(); menu.add(m_menuComputerColor); m_itemComputerPlay = addMenuItem(menu, "Play", KeyEvent.VK_L, KeyEvent.VK_F5, getFunctionKeyShortcut(), "play"); m_itemComputerPlaySingle = addMenuItem(menu, "Play Single Move", KeyEvent.VK_S, KeyEvent.VK_F5, getFunctionKeyShortcut() | ActionEvent.SHIFT_MASK, "play-single"); addMenuItem(menu, "Pass", KeyEvent.VK_P, KeyEvent.VK_F2, getFunctionKeyShortcut(), "pass"); m_itemInterrupt = addMenuItem(menu, "Interrupt", KeyEvent.VK_T, KeyEvent.VK_ESCAPE, 0, "interrupt"); menu.add(createClockMenu()); menu.addSeparator(); m_itemCleanup = new JCheckBoxMenuItem("Cleanup"); m_itemCleanup.setMnemonic(KeyEvent.VK_E); menu.add(m_itemCleanup); addMenuItem(menu, "Score", KeyEvent.VK_O, "score"); return menu; }
|
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/d10ef3afb87b5fa533364efda721c197866c21a6/GoGuiMenuBar.java/buggy/src/net/sf/gogui/gogui/GoGuiMenuBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
752,
4599,
12496,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
752,
4599,
2932,
12496,
3113,
23737,
18,
58,
47,
67,
37,
1769,
3639,
527,
12958,
12,
5414,
16,
315,
1908,
14121,
3113,
23737,
18,
58,
47,
67,
50,
16,
315,
2704,
17,
13957,
8863,
3639,
3824,
18,
1289,
6581,
5621,
3639,
312,
67,
5414,
7703,
264,
2957,
273,
752,
7703,
264,
2957,
4599,
5621,
3639,
3824,
18,
1289,
12,
81,
67,
5414,
7703,
264,
2957,
1769,
3639,
312,
67,
1726,
7703,
264,
11765,
273,
527,
12958,
12,
5414,
16,
315,
11765,
3113,
23737,
18,
58,
47,
67,
48,
16,
29159,
23737,
18,
58,
47,
67,
42,
25,
16,
29159,
18697,
653,
15576,
9334,
315,
1601,
8863,
3639,
312,
67,
1726,
7703,
264,
11765,
5281,
5411,
273,
527,
12958,
12,
5414,
16,
315,
11765,
10326,
9933,
3113,
23737,
18,
58,
47,
67,
55,
16,
12900,
23737,
18,
58,
47,
67,
42,
25,
16,
12900,
18697,
653,
15576,
1435,
571,
19641,
18,
23191,
67,
11704,
16,
12900,
315,
1601,
17,
7526,
8863,
3639,
527,
12958,
12,
5414,
16,
315,
6433,
3113,
23737,
18,
58,
47,
67,
52,
16,
23737,
18,
58,
47,
67,
42,
22,
16,
10792,
18697,
653,
15576,
9334,
315,
5466,
8863,
3639,
312,
67,
1726,
14126,
273,
5411,
527,
12958,
12,
5414,
16,
315,
14126,
3113,
23737,
18,
58,
47,
67,
56,
16,
23737,
18,
58,
47,
67,
24849,
16,
13491,
374,
16,
315,
31847,
8863,
3639,
3824,
18,
1289,
12,
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,
804,
4599,
752,
4599,
12496,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
752,
4599,
2932,
12496,
3113,
23737,
18,
58,
47,
67,
37,
1769,
3639,
527,
12958,
12,
5414,
16,
315,
1908,
14121,
3113,
23737,
18,
58,
47,
67,
50,
16,
315,
2704,
17,
13957,
8863,
3639,
3824,
18,
1289,
6581,
5621,
3639,
312,
67,
5414,
7703,
264,
2957,
273,
752,
7703,
264,
2957,
4599,
5621,
3639,
3824,
18,
1289,
12,
81,
67,
5414,
7703,
264,
2957,
1769,
3639,
312,
67,
1726,
7703,
264,
11765,
273,
527,
12958,
12,
5414,
16,
315,
11765,
3113,
23737,
18,
58,
47,
67,
48,
16,
29159,
23737,
18,
58,
47,
67,
42,
25,
16,
29159,
18697,
653,
15576,
9334,
315,
2
] |
if (!ary.includes(name)) { ary.append(name); } }
|
if (!ary.includes(name)) { ary.append(name); } }
|
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); HashMap undefinedMethods = new HashMap(); for (RubyModule type = this; type != null; type = type.getSuperClass()) { RubyModule realType = type.getNonIncludedClass(); for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); String methodName = (String) entry.getKey(); if (method.isUndefined()) { undefinedMethods.put(methodName, Boolean.TRUE); continue; } if (method.getImplementationClass() == realType && method.getVisibility().is(visibility) && undefinedMethods.get(methodName) == null) { RubyString name = getRuntime().newString(methodName); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1076,
791,
67,
5163,
12,
7937,
10340,
921,
8526,
833,
16,
727,
27791,
9478,
13,
288,
3639,
1250,
2341,
8051,
273,
833,
18,
2469,
405,
374,
692,
833,
63,
20,
8009,
291,
5510,
1435,
294,
638,
31,
3639,
19817,
1076,
11841,
273,
18814,
7675,
2704,
1076,
5621,
3639,
4317,
3109,
4712,
273,
394,
4317,
5621,
3639,
364,
261,
54,
10340,
3120,
618,
273,
333,
31,
618,
480,
446,
31,
618,
273,
618,
18,
588,
8051,
797,
10756,
288,
540,
202,
54,
10340,
3120,
2863,
559,
273,
618,
18,
588,
3989,
19323,
797,
5621,
5411,
364,
261,
3198,
1400,
273,
618,
18,
588,
4712,
7675,
4099,
694,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
7734,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
7734,
467,
11452,
707,
273,
261,
45,
11452,
13,
1241,
18,
24805,
5621,
7734,
514,
4918,
273,
261,
780,
13,
1241,
18,
588,
653,
5621,
7734,
309,
261,
2039,
18,
291,
10317,
10756,
288,
1171,
202,
5978,
4712,
18,
458,
12,
2039,
461,
16,
3411,
18,
18724,
1769,
1171,
202,
17143,
31,
7734,
289,
7734,
309,
261,
2039,
18,
588,
13621,
797,
1435,
422,
2863,
559,
597,
5397,
707,
18,
588,
10135,
7675,
291,
12,
14422,
13,
597,
3109,
4712,
18,
588,
12,
2039,
461,
13,
422,
446,
13,
288,
1171,
202,
54,
10340,
780,
508,
273,
18814,
7675,
2704,
780,
12,
2039,
461,
1769,
1171,
202,
430,
16051,
814,
18,
18499,
12,
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,
19817,
1076,
791,
67,
5163,
12,
7937,
10340,
921,
8526,
833,
16,
727,
27791,
9478,
13,
288,
3639,
1250,
2341,
8051,
273,
833,
18,
2469,
405,
374,
692,
833,
63,
20,
8009,
291,
5510,
1435,
294,
638,
31,
3639,
19817,
1076,
11841,
273,
18814,
7675,
2704,
1076,
5621,
3639,
4317,
3109,
4712,
273,
394,
4317,
5621,
3639,
364,
261,
54,
10340,
3120,
618,
273,
333,
31,
618,
480,
446,
31,
618,
273,
618,
18,
588,
8051,
797,
10756,
288,
540,
202,
54,
10340,
3120,
2863,
559,
273,
618,
18,
588,
3989,
19323,
797,
5621,
5411,
364,
261,
3198,
1400,
273,
618,
18,
588,
4712,
7675,
4099,
694,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
2
] |
LOG.debug(Messages.get().key(Messages.LOG_DIRECTIVE_DETECTED_3, C_DIRECTIVE_START, directive, C_DIRECTIVE_END));
|
LOG.debug(Messages.get().key( Messages.LOG_DIRECTIVE_DETECTED_3, C_DIRECTIVE_START, directive, C_DIRECTIVE_END));
|
private String parseJspEncoding(String content, String encoding, boolean isHardInclude) { // check if a JSP directive occurs in the file int i1 = content.indexOf(C_DIRECTIVE_START); if (i1 < 0) { // no directive occurs return content; } StringBuffer buf = new StringBuffer(content.length()); int p0 = 0, i2 = 0, slen = C_DIRECTIVE_START.length(); boolean found = false; while (i1 >= 0) { // parse the file and set/replace page encoding i2 = content.indexOf(C_DIRECTIVE_END, i1 + slen); if (i2 < 0) { // wrong syntax (missing end directive) - let the JSP compiler produce the error message return content; } else if (i2 > i1) { String directive = content.substring(i1 + slen, i2); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_DIRECTIVE_DETECTED_3, C_DIRECTIVE_START, directive, C_DIRECTIVE_END)); } int t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0; while (directive.charAt(t1) == ' ') { t1++; } String argument = null; if (directive.startsWith("page", t1)) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_X_DIRECTIVE_DETECTED_1, "page")); } t2 = directive.indexOf("pageEncoding", t1 + 4); t5 = 12; if (t2 > 0) { found = true; } } if (t2 > 0) { String sub = directive.substring(t2 + t5); char c1 = sub.charAt(t3); while ((c1 == ' ') || (c1 == '=') || (c1 == '"')) { c1 = sub.charAt(++t3); } t4 = t3; while (c1 != '"') { c1 = sub.charAt(++t4); } if (t4 > t3) { argument = sub.substring(t3, t4); } if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key(Messages.LOG_DIRECTIVE_ARG_1, argument)); } } if (argument != null) { // a pageEncoding setting was found, changes have to be made String pre = directive.substring(0, t2 + t3 + t5); String suf = directive.substring(t2 + t3 + t5 + argument.length()); // change the encoding directive = pre + encoding + suf; if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key( Messages.LOG_DIRECTIVE_CHANGED_3, C_DIRECTIVE_START, directive, C_DIRECTIVE_END)); } } buf.append(content.substring(p0, i1 + slen)); buf.append(directive); p0 = i2; i1 = content.indexOf(C_DIRECTIVE_START, p0); } } if (i2 > 0) { // the content of the JSP was changed buf.append(content.substring(p0, content.length())); } if (found) { content = buf.toString(); } else if (! isHardInclude) { // encoding setting was not found // if this is not a "hard" include then add the encoding to the top of the page // checking for the hard include is important to prevent errors with // multiple page encoding settings if a templete is composed from several hard included elements // this is an issue in Tomcat 4.x but not 5.x StringBuffer buf2 = new StringBuffer(buf.length() + 32); buf2.append("<%@ page pageEncoding=\""); buf2.append(encoding); buf2.append("\" %>"); buf2.append(buf); content = buf2.toString(); } return content; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ddc56fc5c5eded06965e63995ea01e3e542bccd5/CmsJspLoader.java/clean/src/org/opencms/loader/CmsJspLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1109,
21796,
4705,
12,
780,
913,
16,
514,
2688,
16,
1250,
27803,
1060,
8752,
13,
288,
7734,
368,
866,
309,
279,
804,
3118,
8655,
9938,
316,
326,
585,
3639,
509,
277,
21,
273,
913,
18,
31806,
12,
39,
67,
17541,
5354,
67,
7570,
1769,
3639,
309,
261,
77,
21,
411,
374,
13,
288,
5411,
368,
1158,
8655,
9938,
5411,
327,
913,
31,
3639,
289,
7734,
6674,
1681,
273,
394,
6674,
12,
1745,
18,
2469,
10663,
3639,
509,
293,
20,
273,
374,
16,
277,
22,
273,
374,
16,
272,
1897,
273,
385,
67,
17541,
5354,
67,
7570,
18,
2469,
5621,
3639,
1250,
1392,
273,
629,
31,
7734,
1323,
261,
77,
21,
1545,
374,
13,
288,
5411,
368,
1109,
326,
585,
471,
444,
19,
2079,
1363,
2688,
5411,
277,
22,
273,
913,
18,
31806,
12,
39,
67,
17541,
5354,
67,
4415,
16,
277,
21,
397,
272,
1897,
1769,
5411,
309,
261,
77,
22,
411,
374,
13,
288,
7734,
368,
7194,
6279,
261,
7337,
679,
8655,
13,
300,
2231,
326,
804,
3118,
5274,
11402,
326,
555,
883,
7734,
327,
913,
31,
5411,
289,
469,
309,
261,
77,
22,
405,
277,
21,
13,
288,
7734,
514,
8655,
273,
913,
18,
28023,
12,
77,
21,
397,
272,
1897,
16,
277,
22,
1769,
7734,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
288,
10792,
2018,
18,
4148,
12,
5058,
18,
588,
7675,
856,
12,
4838,
18,
4842,
67,
17541,
5354,
67,
1639,
26729,
67,
23,
16,
385,
67,
17541,
5354,
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,
1109,
21796,
4705,
12,
780,
913,
16,
514,
2688,
16,
1250,
27803,
1060,
8752,
13,
288,
7734,
368,
866,
309,
279,
804,
3118,
8655,
9938,
316,
326,
585,
3639,
509,
277,
21,
273,
913,
18,
31806,
12,
39,
67,
17541,
5354,
67,
7570,
1769,
3639,
309,
261,
77,
21,
411,
374,
13,
288,
5411,
368,
1158,
8655,
9938,
5411,
327,
913,
31,
3639,
289,
7734,
6674,
1681,
273,
394,
6674,
12,
1745,
18,
2469,
10663,
3639,
509,
293,
20,
273,
374,
16,
277,
22,
273,
374,
16,
272,
1897,
273,
385,
67,
17541,
5354,
67,
7570,
18,
2469,
5621,
3639,
1250,
1392,
273,
629,
31,
7734,
1323,
261,
77,
21,
1545,
374,
13,
288,
5411,
368,
2
] |
out.println("Unable to print Item (exception: "+re+")<br>\n");
|
out.println("Unable to print Item (exception: " + re + ")<br>\n");
|
void printUserBoughtItem(Item item, int quantity) { try { out.println(item.printUserBoughtItem(quantity)); } catch (RemoteException re) { out.println("Unable to print Item (exception: "+re+")<br>\n"); } }
|
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/ServletPrinter.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/ServletPrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1172,
1299,
13809,
9540,
1180,
12,
1180,
761,
16,
509,
10457,
13,
225,
288,
565,
775,
565,
288,
1377,
596,
18,
8222,
12,
1726,
18,
1188,
1299,
13809,
9540,
1180,
12,
16172,
10019,
565,
289,
565,
1044,
261,
5169,
503,
283,
13,
565,
288,
1377,
596,
18,
8222,
2932,
3370,
358,
1172,
4342,
261,
4064,
30,
315,
397,
283,
397,
9369,
32,
2848,
5333,
82,
8863,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1172,
1299,
13809,
9540,
1180,
12,
1180,
761,
16,
509,
10457,
13,
225,
288,
565,
775,
565,
288,
1377,
596,
18,
8222,
12,
1726,
18,
1188,
1299,
13809,
9540,
1180,
12,
16172,
10019,
565,
289,
565,
1044,
261,
5169,
503,
283,
13,
565,
288,
1377,
596,
18,
8222,
2932,
3370,
358,
1172,
4342,
261,
4064,
30,
315,
397,
283,
397,
9369,
32,
2848,
5333,
82,
8863,
565,
289,
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
] |
stmt.setString(pos++, metadata);
|
stmt.setString(pos++, checkTextLength(metadata));
|
public static void copy(MailItem item, int id, Folder folder, int indexId, int parentId, short volumeId, String metadata) throws ServiceException { Mailbox mbox = item.getMailbox(); if (id <= 0 || folder == null || parentId == 0) throw ServiceException.FAILURE("invalid data for DB item copy", null); Connection conn = mbox.getOperationConnection(); PreparedStatement stmt = null; try { String table = getMailItemTableName(mbox); stmt = conn.prepareStatement("INSERT INTO " + table + "(id, type, parent_id, folder_id, index_id, imap_id, date, size, volume_id, blob_digest," + " unread, flags, tags, sender, subject, metadata, mod_metadata, change_date, mod_content) " + "(SELECT ?, type, ?, ?, ?, ?, date, size, ?, blob_digest, unread," + " flags, tags, sender, subject, ?, ?, ?, ? FROM " + table + " WHERE id = ?)"); int pos = 1; stmt.setInt(pos++, id); // ID if (parentId <= 0) stmt.setNull(pos++, Types.INTEGER); // PARENT_ID null for messages in virtual convs else stmt.setInt(pos++, parentId); // or, PARENT_ID specified by caller stmt.setInt(pos++, folder.getId()); // FOLDER_ID stmt.setInt(pos++, indexId); // INDEX_ID stmt.setInt(pos++, id); // IMAP_ID is initially the same as ID if (volumeId >= 0) stmt.setShort(pos++, volumeId); // VOLUME_ID specified by caller else stmt.setNull(pos++, Types.TINYINT); // or, no VOLUME_ID stmt.setString(pos++, metadata); // METADATA stmt.setInt(pos++, mbox.getOperationChangeID()); // MOD_METADATA stmt.setInt(pos++, mbox.getOperationTimestamp()); // CHANGE_DATE stmt.setInt(pos++, mbox.getOperationChangeID()); // MOD_CONTENT stmt.setInt(pos++, item.getId()); int num = stmt.executeUpdate(); if (num != 1) throw ServiceException.FAILURE("failed to create object", null); } catch (SQLException e) { // catch item_id uniqueness constraint violation and return failure if (e.getErrorCode() == Db.Error.DUPLICATE_ROW) throw MailServiceException.ALREADY_EXISTS(id, e); else throw ServiceException.FAILURE("copying " + MailItem.getNameForType(item.getType()) + ": " + item.getId(), e); } finally { DbPool.closeStatement(stmt); } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f0285cf66d24b9a76f893c41c757c7253c9ea49c/DbMailItem.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1610,
12,
6759,
1180,
761,
16,
509,
612,
16,
12623,
3009,
16,
509,
770,
548,
16,
509,
11582,
16,
3025,
3940,
548,
16,
514,
1982,
13,
565,
1216,
16489,
288,
3639,
11542,
2147,
312,
2147,
273,
761,
18,
588,
30239,
5621,
3639,
309,
261,
350,
1648,
374,
747,
3009,
422,
446,
747,
11582,
422,
374,
13,
5411,
604,
16489,
18,
17623,
2932,
5387,
501,
364,
2383,
761,
1610,
3113,
446,
1769,
3639,
4050,
1487,
273,
312,
2147,
18,
588,
2988,
1952,
5621,
3639,
16913,
3480,
273,
446,
31,
3639,
775,
288,
5411,
514,
1014,
273,
31991,
1180,
7147,
12,
81,
2147,
1769,
5411,
3480,
273,
1487,
18,
9366,
3406,
2932,
11356,
12421,
315,
397,
1014,
397,
10792,
7751,
350,
16,
618,
16,
982,
67,
350,
16,
3009,
67,
350,
16,
770,
67,
350,
16,
20226,
67,
350,
16,
1509,
16,
963,
16,
3940,
67,
350,
16,
4795,
67,
10171,
10837,
397,
10792,
315,
19541,
16,
2943,
16,
2342,
16,
5793,
16,
3221,
16,
1982,
16,
681,
67,
4165,
16,
2549,
67,
712,
16,
681,
67,
1745,
13,
315,
397,
10792,
7751,
4803,
20033,
618,
16,
20033,
20033,
20033,
20033,
1509,
16,
963,
16,
20033,
4795,
67,
10171,
16,
19541,
10837,
397,
10792,
315,
2943,
16,
2342,
16,
5793,
16,
3221,
16,
20033,
20033,
20033,
692,
4571,
315,
397,
1014,
397,
315,
4852,
612,
273,
692,
2225,
1769,
5411,
509,
949,
273,
404,
31,
5411,
3480,
18,
542,
1702,
12,
917,
9904,
16,
612,
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,
1610,
12,
6759,
1180,
761,
16,
509,
612,
16,
12623,
3009,
16,
509,
770,
548,
16,
509,
11582,
16,
3025,
3940,
548,
16,
514,
1982,
13,
565,
1216,
16489,
288,
3639,
11542,
2147,
312,
2147,
273,
761,
18,
588,
30239,
5621,
3639,
309,
261,
350,
1648,
374,
747,
3009,
422,
446,
747,
11582,
422,
374,
13,
5411,
604,
16489,
18,
17623,
2932,
5387,
501,
364,
2383,
761,
1610,
3113,
446,
1769,
3639,
4050,
1487,
273,
312,
2147,
18,
588,
2988,
1952,
5621,
3639,
16913,
3480,
273,
446,
31,
3639,
775,
288,
5411,
514,
1014,
273,
31991,
1180,
7147,
12,
81,
2147,
1769,
5411,
3480,
273,
1487,
18,
9366,
3406,
2932,
11356,
12421,
315,
397,
1014,
2
] |
FontData fontData;
|
protected void refreshFont() { FontStyle style = (FontStyle) getPrimaryView().getStyle( NotationPackage.eINSTANCE.getFontStyle()); FontData fontData; if (style != null) { fontData = new FontData(style.getFontName(), style.getFontHeight(), (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL)); } else { // initialize font to defaults fontData = PreferenceConverter.getFontData( (IPreferenceStore) getDiagramPreferencesHint() .getPreferenceStore(), IPreferenceConstants.PREF_DEFAULT_FONT); } setFont(fontData); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/c90605b94797aa95ffa039808ae26671d3dd7b1e/ThreadItemEditPart.java/clean/examples/org.eclipse.gmf.examples.mindmap.diagram/src/org/eclipse/gmf/examples/mindmap/diagram/edit/parts/ThreadItemEditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
5711,
1435,
288,
202,
202,
5711,
2885,
2154,
273,
261,
5711,
2885,
13,
11398,
1767,
7675,
588,
2885,
12,
9506,
202,
14818,
2261,
18,
73,
13341,
18,
588,
5711,
2885,
10663,
202,
202,
5711,
751,
3512,
751,
31,
202,
202,
430,
261,
4060,
480,
446,
13,
288,
1082,
202,
5776,
751,
273,
394,
10063,
751,
12,
4060,
18,
588,
5711,
461,
9334,
2154,
18,
588,
5711,
2686,
9334,
6862,
202,
12,
4060,
18,
291,
38,
1673,
1435,
692,
348,
8588,
18,
38,
11846,
294,
348,
8588,
18,
15480,
13,
6862,
1082,
202,
96,
261,
4060,
18,
291,
7193,
21466,
1435,
692,
348,
8588,
18,
1285,
1013,
2871,
294,
348,
8588,
18,
15480,
10019,
202,
202,
97,
469,
288,
1082,
202,
759,
4046,
3512,
358,
3467,
1082,
202,
5776,
751,
273,
29125,
5072,
18,
588,
5711,
751,
12,
6862,
202,
12,
45,
9624,
2257,
13,
2343,
8852,
1940,
12377,
7002,
1435,
6862,
1082,
202,
18,
588,
9624,
2257,
9334,
6862,
202,
45,
9624,
2918,
18,
3670,
42,
67,
5280,
67,
25221,
1769,
202,
202,
97,
202,
202,
542,
5711,
12,
5776,
751,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
5711,
1435,
288,
202,
202,
5711,
2885,
2154,
273,
261,
5711,
2885,
13,
11398,
1767,
7675,
588,
2885,
12,
9506,
202,
14818,
2261,
18,
73,
13341,
18,
588,
5711,
2885,
10663,
202,
202,
5711,
751,
3512,
751,
31,
202,
202,
430,
261,
4060,
480,
446,
13,
288,
1082,
202,
5776,
751,
273,
394,
10063,
751,
12,
4060,
18,
588,
5711,
461,
9334,
2154,
18,
588,
5711,
2686,
9334,
6862,
202,
12,
4060,
18,
291,
38,
1673,
1435,
692,
348,
8588,
18,
38,
11846,
294,
348,
8588,
18,
15480,
13,
6862,
1082,
202,
96,
261,
4060,
18,
291,
7193,
21466,
1435,
692,
348,
8588,
18,
1285,
1013,
2871,
294,
348,
8588,
18,
15480,
10019,
202,
2
] |
|
MessageProcessor messageProcessor = sipStack.getMessageProcessor(hop.getTransport()); Via via = messageProcessor.getViaHeader();
|
Via via = this.listeningPoint.messageProcessor. getViaHeader();
|
public ClientTransaction getNewClientTransaction(Request request) throws TransactionUnavailableException { if (request == null) throw new NullPointerException("null request"); SIPRequest sipRequest = (SIPRequest) request; if (sipRequest.getTransaction() != null) throw new TransactionUnavailableException ("Transaction already assigned to request"); if (request.getMethod().equalsIgnoreCase(Request.CANCEL)) { SIPClientTransaction ct = (SIPClientTransaction) sipStack.findCancelTransaction((SIPRequest)request,false); if (ct != null ) { ClientTransaction retval = sipStack.createClientTransaction (ct.getMessageChannel()); ((SIPTransaction)retval). setOriginalRequest((SIPRequest)request); ((SIPTransaction)retval).addEventListener(this); sipStack.addTransaction((SIPClientTransaction)retval); ((SIPClientTransaction)retval).setDialog ( (DialogImpl)ct.getDialog()); return retval; } } if (LogWriter.needsLogging) LogWriter.logMessage("could not find existing transaction for " + ((SIPRequest)request).getFirstLine()); // Could not find a dialog or the route is not set in dialog. Iterator it = sipStackImpl.getRouter().getNextHops(request); String dialogId = sipRequest.getDialogId(false); DialogImpl dialog = sipStack.getDialog(dialogId); if (it == null || !it.hasNext() ) { // could not route the request as out of dialog. // maybe the user has no router or the router cannot resolve // the route. // If this is part of a dialog then use the route from the dialog if (dialog != null) { try { HopImpl hop = dialog.getNextHop(); if (hop != null) { SIPClientTransaction ct = (SIPClientTransaction) sipStack.createMessageChannel(hop); String branchId = Utils.generateBranchId(); if (sipRequest.getTopmostVia() != null) { sipRequest.getTopmostVia().setBranch(branchId); } else { // Find a message processor to assign this // transaction to. MessageProcessor messageProcessor = sipStack.getMessageProcessor(hop.getTransport()); Via via = messageProcessor.getViaHeader(); sipRequest.addHeader(via); } ct.setOriginalRequest(sipRequest); ct.setBranch(branchId); ct.setDialog(dialog); ct.addEventListener(this); return (ClientTransaction) ct; } } catch (Exception ex) { throw new TransactionUnavailableException(ex.getMessage()); } } else throw new TransactionUnavailableException("no route!"); } else { // An out of dialog route was found. Assign this to the // client transaction. while (it.hasNext()) { Hop hop = (Hop) it.next(); try { SIPClientTransaction ct = (SIPClientTransaction) sipStack.createMessageChannel(hop); String branchId = Utils.generateBranchId(); if (sipRequest.getTopmostVia() != null) { sipRequest.getTopmostVia().setBranch(branchId); } else { // Find a message processor to assign this transaction to. MessageProcessor messageProcessor = sipStack.getMessageProcessor(hop.getTransport()); Via via = messageProcessor.getViaHeader(); sipRequest.addHeader(via); } ct.setOriginalRequest(sipRequest); ct.setBranch(branchId); if (sipStack.isDialogCreated(request.getMethod())) { // create a new dialog to contain this transaction // provided this is necessary. // String dialogId = sipRequest.getDialogId(false); // DialogImpl dialog = sipStack.getDialog(dialogId); // This could be a re-invite (but noticed by Brad Templeton) if (dialog != null) ct.setDialog(dialog); else sipStack.createDialog(ct); } else { // String dialogId = sipRequest.getDialogId(false); // DialogImpl dialog = sipStack.getDialog(dialogId); ct.setDialog(dialog); } // The provider is the event listener for all transactions. ct.addEventListener(this); return (ClientTransaction) ct; } catch (java.net.UnknownHostException ex) { continue; } catch (java.text.ParseException ex) { InternalErrorHandler.handleException(ex); } } } throw new TransactionUnavailableException ("Could not create transaction - could not resolve next hop! "); }
|
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/a76e6b0ebb37639e5fb249deb919cb1ddc96923f/SipProviderImpl.java/clean/src/gov/nist/javax/sip/SipProviderImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2445,
3342,
12654,
1227,
3342,
12,
691,
590,
13,
565,
1216,
5947,
15357,
288,
3639,
309,
261,
2293,
422,
446,
13,
5411,
604,
394,
10108,
2932,
2011,
590,
8863,
7734,
348,
2579,
691,
10341,
691,
273,
261,
17739,
691,
13,
590,
31,
3639,
309,
261,
28477,
691,
18,
588,
3342,
1435,
480,
446,
13,
5411,
604,
394,
5947,
15357,
5411,
7566,
3342,
1818,
6958,
358,
590,
8863,
3639,
309,
261,
2293,
18,
588,
1305,
7675,
14963,
5556,
12,
691,
18,
25268,
3719,
288,
5411,
348,
2579,
1227,
3342,
5691,
273,
261,
17739,
1227,
3342,
13,
5411,
10341,
2624,
18,
4720,
6691,
3342,
12443,
17739,
691,
13,
2293,
16,
5743,
1769,
5411,
309,
261,
299,
480,
446,
262,
288,
7734,
2445,
3342,
5221,
273,
282,
10341,
2624,
18,
2640,
1227,
3342,
7734,
261,
299,
18,
24906,
2909,
10663,
7734,
14015,
17739,
3342,
13,
18341,
2934,
7734,
444,
8176,
691,
12443,
17739,
691,
13,
2293,
1769,
7734,
14015,
17739,
3342,
13,
18341,
2934,
1289,
7375,
12,
2211,
1769,
7734,
10341,
2624,
18,
1289,
3342,
12443,
17739,
1227,
3342,
13,
18341,
1769,
7734,
14015,
17739,
1227,
3342,
13,
18341,
2934,
542,
6353,
7734,
261,
261,
6353,
2828,
13,
299,
18,
588,
6353,
10663,
7734,
327,
225,
5221,
31,
5411,
289,
10792,
289,
3639,
309,
261,
1343,
2289,
18,
20600,
7735,
13,
5411,
1827,
2289,
18,
1330,
1079,
2932,
15195,
486,
1104,
2062,
2492,
364,
315,
5411,
397,
14015,
17739,
691,
13,
2293,
2934,
588,
3759,
1670,
10663,
13491,
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,
2445,
3342,
12654,
1227,
3342,
12,
691,
590,
13,
565,
1216,
5947,
15357,
288,
3639,
309,
261,
2293,
422,
446,
13,
5411,
604,
394,
10108,
2932,
2011,
590,
8863,
7734,
348,
2579,
691,
10341,
691,
273,
261,
17739,
691,
13,
590,
31,
3639,
309,
261,
28477,
691,
18,
588,
3342,
1435,
480,
446,
13,
5411,
604,
394,
5947,
15357,
5411,
7566,
3342,
1818,
6958,
358,
590,
8863,
3639,
309,
261,
2293,
18,
588,
1305,
7675,
14963,
5556,
12,
691,
18,
25268,
3719,
288,
5411,
348,
2579,
1227,
3342,
5691,
273,
261,
17739,
1227,
3342,
13,
5411,
10341,
2624,
18,
4720,
6691,
3342,
12443,
17739,
691,
13,
2293,
16,
5743,
1769,
5411,
309,
261,
299,
480,
446,
262,
2
] |
mif += "\n> #End TblFormat"; ; mif +="\n\t<TblNumColumns " + tblColumns.size() + " >"; stream.write(mif.getBytes()); if (! tblHead.isEmpty()) { Enumeration e=tblHead.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } } if (! tblFoot.isEmpty()) { Enumeration e=tblFoot.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } } if (! tblBody.isEmpty()) { mif="\n\t<TblBody"; stream.write(mif.getBytes()); Enumeration e=tblBody.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } mif="\n\t> #End tblBody"; } mif +="\n> #End Table"; stream.write(mif.getBytes()); }
|
mif += "\n> #End TblFormat"; ; mif += "\n\t<TblNumColumns " + tblColumns.size() + " >"; stream.write(mif.getBytes()); if (! tblHead.isEmpty()) { Enumeration e = tblHead.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } } if (! tblFoot.isEmpty()) { Enumeration e = tblFoot.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } } if (! tblBody.isEmpty()) { mif = "\n\t<TblBody"; stream.write(mif.getBytes()); Enumeration e = tblBody.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } mif = "\n\t> #End tblBody"; } mif += "\n> #End Table"; stream.write(mif.getBytes()); }
|
public void output(OutputStream stream) throws IOException { String mif="\n<Tbl" + "\n\t<TblID " + ID + " >"; // note tbl format to be added in a later release mif += "\n<TblTag Body>" + "\n<TblFormat"; mif +="\n<TblColumnRuling `Default'>"; mif +="\n<TblBodyRowRuling `Default'>"; mif +="\n<TblLRuling `Default'>"; mif +="\n<TblBRuling `Default'>"; mif +="\n<TblRRuling `Default'>"; mif +="\n<TblTRuling `Default'>"; mif += "\n> #End TblFormat"; ; mif +="\n\t<TblNumColumns " + tblColumns.size() + " >"; stream.write(mif.getBytes()); if (! tblHead.isEmpty()) { Enumeration e=tblHead.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } } if (! tblFoot.isEmpty()) { Enumeration e=tblFoot.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } } if (! tblBody.isEmpty()) { mif="\n\t<TblBody"; stream.write(mif.getBytes()); Enumeration e=tblBody.elements(); while (e.hasMoreElements()) { ((Row) e.nextElement()).output(stream); } mif="\n\t> #End tblBody"; } mif +="\n> #End Table"; stream.write(mif.getBytes()); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cd264ba6a67a155375a4ba85cdb6dc35503ef593/MIFDocument.java/buggy/src/org/apache/fop/mif/MIFDocument.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
876,
12,
4632,
1407,
13,
1216,
1860,
288,
202,
202,
780,
312,
430,
1546,
64,
82,
32,
22592,
6,
397,
1548,
82,
64,
88,
32,
22592,
734,
315,
397,
1599,
397,
315,
405,
14432,
202,
202,
759,
4721,
10142,
740,
358,
506,
3096,
316,
279,
5137,
3992,
202,
202,
81,
430,
1011,
1548,
82,
32,
22592,
1805,
5652,
2984,
397,
1548,
82,
32,
22592,
1630,
14432,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
1494,
54,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
2250,
1999,
54,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
16018,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
7192,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
17950,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
4349,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
1548,
82,
34,
468,
1638,
399,
3083,
1630,
14432,
274,
202,
202,
81,
430,
1011,
12691,
82,
64,
88,
32,
22592,
2578,
3380,
315,
397,
10142,
3380,
18,
1467,
1435,
397,
315,
405,
14432,
25083,
202,
3256,
18,
2626,
12,
81,
430,
18,
588,
2160,
10663,
9506,
202,
430,
16051,
10142,
1414,
18,
291,
1921,
10756,
288,
1082,
202,
21847,
425,
33,
16187,
1414,
18,
6274,
5621,
9506,
202,
17523,
261,
73,
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,
876,
12,
4632,
1407,
13,
1216,
1860,
288,
202,
202,
780,
312,
430,
1546,
64,
82,
32,
22592,
6,
397,
1548,
82,
64,
88,
32,
22592,
734,
315,
397,
1599,
397,
315,
405,
14432,
202,
202,
759,
4721,
10142,
740,
358,
506,
3096,
316,
279,
5137,
3992,
202,
202,
81,
430,
1011,
1548,
82,
32,
22592,
1805,
5652,
2984,
397,
1548,
82,
32,
22592,
1630,
14432,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
1494,
54,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
2250,
1999,
54,
332,
310,
1375,
1868,
28533,
31,
202,
202,
81,
430,
1011,
12691,
82,
32,
22592,
16018,
332,
310,
1375,
1868,
2
] |
if (isControllerRequest()) {
|
String hierarchical_type = Fractive.getComponentParametersController(((ComponentBodyImpl) targetBody).getProActiveComponentImpl()) .getComponentParameters() .getHierarchicalType(); if (isControllerRequest() && !(Constants.PRIMITIVE.equals(hierarchical_type) && ("attribute-controller".equals( methodCall.getComponentInterfaceName())))) {
|
protected FutureResult serveInternal(Body targetBody) throws ServeException { Object result = null; Throwable exception = null; try { if (isControllerRequest()) { result = ((ProActiveComponentImpl) ((ComponentBodyImpl) targetBody) .getProActiveComponentImpl()).getControllerRequestHandler() .handleRequest(this); } else { if (((ComponentBodyImpl) targetBody).getProActiveComponentImpl() != null) { interceptBeforeInvocation(targetBody); String hierarchical_type = Fractive.getComponentParametersController(((ComponentBodyImpl) targetBody).getProActiveComponentImpl()) .getComponentParameters() .getHierarchicalType(); // if the component is a composite OR A PARALLEL , forward to functional interface if (hierarchical_type.equals(Constants.COMPOSITE) || hierarchical_type.equals(Constants.PARALLEL)) { // // forward to functional interface whose name is given as a parameter in the method call if (logger.isDebugEnabled()) { logger.debug("forwarding an invocation on method [" + methodCall.getComponentInterfaceName() + "] to : " + ((ComponentParametersController) ((ComponentBodyImpl) targetBody) .getProActiveComponentImpl().getFcInterface(Constants.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters() .getName()); } try { if (getShortcut() != null) { // TODO_M allow stopping shortcut here } result = ((StubObject) ((ProActiveInterface) (((ComponentBodyImpl) targetBody) .getProActiveComponentImpl()) .getFcInterface(methodCall.getComponentInterfaceName())) .getFcItfImpl()).getProxy().reify(methodCall); } catch (IllegalArgumentException e) { throw new ServeException( "could not reify method call : ", e); } catch (Throwable e) { throw new ServeException( "could not reify method call : ", e); } } else { // the component is a primitive // directly execute the method on the active object if (logger.isDebugEnabled()) { logger.debug("executing the method [" + methodCall.getComponentInterfaceName() + "] on a primitive component"); if (getShortcutLength() > 0) { logger.debug("request has crossed " + (getShortcutLength() - 1) + " membranes before reaching a primitive component"); } } result = methodCall.execute(targetBody.getReifiedObject()); } interceptAfterInvocation(targetBody); } else { throw new ServeException( "trying to execute a component method on an object that is not a component"); } } } catch (NoSuchInterfaceException nsie) { throw new ServeException("cannot serve request : problem accessing a component controller", nsie); } catch (MethodCallExecutionFailedException e) { throw new ServeException("serve method " + methodCall.getReifiedMethod().toString() + " failed", e); } catch (java.lang.reflect.InvocationTargetException e) { exception = e.getTargetException(); if (isOneWay) { throw new ServeException("serve method " + methodCall.getReifiedMethod().toString() + " failed", exception); } } return new FutureResult(result, exception, null); }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/512ce80027f7c72500808753b271013bc953118e/ComponentRequestImpl.java/clean/src/org/objectweb/proactive/core/component/request/ComponentRequestImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
9108,
1253,
12175,
3061,
12,
2250,
1018,
2250,
13,
3639,
1216,
11115,
503,
288,
3639,
1033,
563,
273,
446,
31,
3639,
4206,
1520,
273,
446,
31,
3639,
775,
288,
5411,
514,
26633,
67,
723,
273,
478,
14266,
688,
18,
588,
1841,
2402,
2933,
12443,
12,
1841,
2250,
2828,
13,
1018,
2250,
2934,
588,
626,
3896,
1841,
2828,
10756,
263,
588,
1841,
2402,
1435,
263,
588,
44,
14529,
559,
5621,
309,
261,
291,
2933,
691,
1435,
597,
401,
12,
2918,
18,
7698,
6068,
5354,
18,
14963,
12,
76,
14529,
67,
723,
13,
597,
7566,
4589,
17,
5723,
9654,
14963,
12,
707,
1477,
18,
588,
1841,
24730,
1435,
3719,
3719,
288,
1171,
563,
273,
14015,
626,
3896,
1841,
2828,
13,
14015,
1841,
2250,
2828,
13,
1018,
2250,
13,
12900,
263,
588,
626,
3896,
1841,
2828,
1435,
2934,
588,
2933,
28773,
1435,
12900,
263,
4110,
691,
12,
2211,
1769,
5411,
289,
469,
288,
7734,
309,
261,
12443,
1841,
2250,
2828,
13,
1018,
2250,
2934,
588,
626,
3896,
1841,
2828,
1435,
480,
446,
13,
288,
10792,
10883,
4649,
9267,
12,
3299,
2250,
1769,
10792,
514,
26633,
67,
723,
273,
478,
14266,
688,
18,
588,
1841,
2402,
2933,
12443,
12,
1841,
2250,
2828,
13,
1018,
2250,
2934,
588,
626,
3896,
1841,
2828,
10756,
4766,
15604,
263,
588,
1841,
2402,
1435,
4766,
15604,
263,
588,
44,
14529,
559,
5621,
10792,
368,
309,
326,
1794,
353,
279,
9635,
4869,
432,
3939,
1013,
900,
48,
269,
5104,
358,
18699,
1560,
5397,
309,
261,
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,
9108,
1253,
12175,
3061,
12,
2250,
1018,
2250,
13,
3639,
1216,
11115,
503,
288,
3639,
1033,
563,
273,
446,
31,
3639,
4206,
1520,
273,
446,
31,
3639,
775,
288,
5411,
514,
26633,
67,
723,
273,
478,
14266,
688,
18,
588,
1841,
2402,
2933,
12443,
12,
1841,
2250,
2828,
13,
1018,
2250,
2934,
588,
626,
3896,
1841,
2828,
10756,
263,
588,
1841,
2402,
1435,
263,
588,
44,
14529,
559,
5621,
309,
261,
291,
2933,
691,
1435,
597,
401,
12,
2918,
18,
7698,
6068,
5354,
18,
14963,
12,
76,
14529,
67,
723,
13,
597,
7566,
4589,
17,
5723,
9654,
14963,
12,
707,
1477,
18,
588,
1841,
24730,
1435,
3719,
3719,
288,
1171,
563,
273,
14015,
626,
3896,
1841,
2828,
2
] |
return Comparing.equal(myItemId, nodeDescriptor.toString()) && Comparing.equal(myItemType, nodeDescriptor.getClass().getName()); }
|
return Comparing.equal(myItemId, nodeDescriptor.toString()) && Comparing.equal(myItemType, nodeDescriptor.getClass().getName()); }
|
public boolean matchedWith(NodeDescriptor nodeDescriptor) { return Comparing.equal(myItemId, nodeDescriptor.toString()) && Comparing.equal(myItemType, nodeDescriptor.getClass().getName()); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/de45c06cd7ec2634c07050b4cb74a6bedec1613f/TreeState.java/buggy/openapi/src/com/intellij/ide/util/treeView/TreeState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
4847,
1190,
12,
907,
3187,
756,
3187,
13,
288,
565,
327,
1286,
12583,
18,
9729,
12,
4811,
17673,
16,
756,
3187,
18,
10492,
10756,
597,
6647,
1286,
12583,
18,
9729,
12,
4811,
22580,
16,
756,
3187,
18,
588,
797,
7675,
17994,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
4847,
1190,
12,
907,
3187,
756,
3187,
13,
288,
565,
327,
1286,
12583,
18,
9729,
12,
4811,
17673,
16,
756,
3187,
18,
10492,
10756,
597,
6647,
1286,
12583,
18,
9729,
12,
4811,
22580,
16,
756,
3187,
18,
588,
797,
7675,
17994,
10663,
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
] |
if(site != null && user != null)
|
if(site != null && userId != null)
|
public Collection getEntityAuthzGroups(Reference ref) { // double check that it's mine if (APPLICATION_ID != ref.getType()) return null; Collection rv = (Collection) ThreadLocalManager.get("getEntityAuthzGroups@" + ref.getReference()); if(rv != null) { return rv; } // use the resources realm, all container (folder) realms rv = new Vector(); try { // try the resource, all the folders above it (don't include /) String paths[] = StringUtil.split(ref.getId(), Entity.SEPARATOR); boolean container = ref.getId().endsWith(Entity.SEPARATOR); if (paths.length > 1) { String root = getReference(Entity.SEPARATOR + paths[1] + Entity.SEPARATOR); rv.add(root); for (int next = 2; next < paths.length - 1; next++) {// root = root + paths[next];// if (next < paths.length - 1)// {// root = root + Entity.SEPARATOR;// }// else if(container)// {// // don't include the container itself// break;// } root = root + paths[next] + Entity.SEPARATOR; rv.add(root); } } boolean isDropbox = false; // special check for group-user : the grant's in the user's My Workspace site String parts[] = StringUtil.split(ref.getId(), Entity.SEPARATOR); if ((parts.length > 3) && (parts[1].equals("group-user"))) { rv.add(m_siteService.siteReference(m_siteService.getUserSiteId(parts[3]))); isDropbox = true; } ContentEntity entity = null; if(ref.getId().endsWith(Entity.SEPARATOR)) { entity = findCollection(ref.getId()); } else { entity = findResource(ref.getId()); } if(entity == null) { entity = findCollection(isolateContainingId(ref.getId())); } boolean inherited = false; AccessMode access = entity.getAccess(); if(AccessMode.INHERITED.equals(access)) { inherited = true; access = entity.getInheritedAccess(); } if(isDropbox || AccessMode.SITE == access || AccessMode.INHERITED == access || AccessMode.PUBLIC == access) { // site ref.addSiteContextAuthzGroup(rv); } else if(AccessMode.GROUPED.equals(access)) { Site site = m_siteService.getSite(ref.getContext()); User user = UserDirectoryService.getCurrentUser(); boolean useSiteAsContext = false; if(site != null && user != null) { useSiteAsContext = site.isAllowed(user.getId(), EVENT_RESOURCE_ALL_GROUPS); } if(useSiteAsContext) { ref.addSiteContextAuthzGroup(rv); } else if(inherited) { rv.addAll(entity.getInheritedGroups()); } else { rv.addAll(entity.getGroups()); } } } catch (Throwable e) { } ThreadLocalManager.set("getEntityAuthzGroups@" + ref.getReference(), rv); return rv; }
|
48934 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48934/398cf5a4dc4585b977cca7e4a4756924251eabbe/BaseContentService.java/clean/content-impl/impl/src/java/org/sakaiproject/content/impl/BaseContentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
6352,
1730,
94,
3621,
12,
2404,
1278,
13,
202,
95,
202,
202,
759,
1645,
866,
716,
518,
1807,
312,
558,
202,
202,
430,
261,
25039,
67,
734,
480,
1278,
18,
588,
559,
10756,
327,
446,
31,
9506,
202,
2532,
5633,
273,
261,
2532,
13,
4884,
2042,
1318,
18,
588,
2932,
588,
1943,
1730,
94,
3621,
27614,
397,
1278,
18,
588,
2404,
10663,
202,
202,
430,
12,
4962,
480,
446,
13,
202,
202,
95,
1082,
202,
2463,
5633,
31,
202,
202,
97,
202,
202,
759,
999,
326,
2703,
11319,
16,
777,
1478,
261,
5609,
13,
2863,
959,
202,
202,
4962,
273,
394,
5589,
5621,
25083,
202,
698,
202,
202,
95,
1082,
202,
759,
775,
326,
1058,
16,
777,
326,
9907,
5721,
518,
261,
19752,
1404,
2341,
342,
13,
1082,
202,
780,
2953,
8526,
273,
14205,
18,
4939,
12,
1734,
18,
26321,
9334,
3887,
18,
4550,
1769,
1082,
202,
6494,
1478,
273,
1278,
18,
26321,
7675,
5839,
1190,
12,
1943,
18,
4550,
1769,
1082,
202,
430,
261,
4481,
18,
2469,
405,
404,
13,
1082,
202,
95,
9506,
202,
780,
1365,
273,
13223,
12,
1943,
18,
4550,
397,
2953,
63,
21,
65,
397,
3887,
18,
4550,
1769,
9506,
202,
4962,
18,
1289,
12,
3085,
1769,
9506,
202,
1884,
261,
474,
1024,
273,
576,
31,
1024,
411,
2953,
18,
2469,
300,
404,
31,
1024,
27245,
9506,
202,
95,
759,
6862,
202,
3085,
273,
1365,
397,
2953,
63,
4285,
15533,
759,
6862,
202,
430,
261,
4285,
411,
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,
225,
202,
482,
2200,
6352,
1730,
94,
3621,
12,
2404,
1278,
13,
202,
95,
202,
202,
759,
1645,
866,
716,
518,
1807,
312,
558,
202,
202,
430,
261,
25039,
67,
734,
480,
1278,
18,
588,
559,
10756,
327,
446,
31,
9506,
202,
2532,
5633,
273,
261,
2532,
13,
4884,
2042,
1318,
18,
588,
2932,
588,
1943,
1730,
94,
3621,
27614,
397,
1278,
18,
588,
2404,
10663,
202,
202,
430,
12,
4962,
480,
446,
13,
202,
202,
95,
1082,
202,
2463,
5633,
31,
202,
202,
97,
202,
202,
759,
999,
326,
2703,
11319,
16,
777,
1478,
261,
5609,
13,
2863,
959,
202,
202,
4962,
273,
394,
5589,
5621,
25083,
202,
698,
202,
202,
95,
1082,
202,
759,
775,
326,
1058,
2
] |
break;
|
continue Loop;
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/34e9dc56b7553f450b9015c8f4135584139686cf/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
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,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
case IGNORE: if(c == '>') { c = xml.read(); state = OUTSIDE; } else c = xml.read(); break;
|
case COMMENT: if(c == commentMatch.charAt(0)) { c = xml.read(); if(commentMatch.length() == 1) state = OUTSIDE; else commentMatch = commentMatch.substring(1, commentMatch.length()); }
|
public static String getFirstTagName(Reader xml) { final int OUTSIDE = 0; // constant: identify outside state final int BRACKET = 1; // constant: bracket, contents unknown final int COMMENT = 2; // constant: identify a comment section final int IGNORE = 3; // constant: identify an ignored section final int TAG = 4; // constant: identify a tag section int state = OUTSIDE; String commentMatch = null; StringBuffer tagBuffer = null; boolean sawBang = false; try { int c = xml.read(); for(;;) { // No tag found if we hit EOF first. if(c == -1) return null; switch(state) { case OUTSIDE: // Start of any sort of tag if(c == '<') { state = BRACKET; commentMatch = "!--"; sawBang = false; c = xml.read(); } // Other non-whitespace characters outside of any tag else if(!Character.isWhitespace((char)c)) return null; // Whitespace characters are ignored else c = xml.read(); break; case BRACKET: // Check for the start of a comment. if (commentMatch != null) { if(c == commentMatch.charAt(0)) { // This match indicates a comment if(commentMatch.length() == 1) { c = xml.read(); commentMatch = "-->"; state = COMMENT; } else { // Remove the first character from commentMatch, // then process the character as usual. commentMatch = commentMatch.substring(1, commentMatch.length()); } } else // No longer eligible for comment. commentMatch = null; } // Hit whitespace; ignore the character. if(Character.isWhitespace((char)c)) { c = xml.read(); break; } switch(c) { case '?': c = xml.read(); state = IGNORE; break; case '!': // Enter an ignored section unless eligible for comment. c = xml.read(); sawBang = true; if(commentMatch == null) state = IGNORE; break; case '-': // Enter an ignored section unless eligible for comment. c = xml.read(); if(commentMatch == null) state = IGNORE; break; case '>': // Return to OUTSIDE state immediately c = xml.read(); state = OUTSIDE; break; default: // State depends on whether we saw a ! or not. if(sawBang) state = IGNORE; else state = TAG; tagBuffer = new StringBuffer(); } break; case COMMENT: // Did we match the next expected end-of-comment character? if(c == commentMatch.charAt(0)) { c = xml.read(); if(commentMatch.length() == 1) // Done with the comment state = OUTSIDE; else commentMatch = commentMatch.substring(1, commentMatch.length()); } // If not, restart our quest for the end-of-comment character. else { c = xml.read(); commentMatch = "-->"; } break; case IGNORE: // Drop out on a close >. Ignore all other characters. if(c == '>') { c = xml.read(); state = OUTSIDE; } else c = xml.read(); break; case TAG: // Store characters in the tag buffer until we hit whitespace. // When we hit whitespace or '>' or '/', return the name of the tag. if(Character.isWhitespace((char)c) || c == '>' || c == '/') return tagBuffer.toString(); else { tagBuffer.append((char)c); c = xml.read(); } break; } } } catch (IOException ex) { // On exception, we can't determine the first tag, so return null. return null; } }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/XMLUtil.java/buggy/src/main/mondrian/xom/XMLUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
7521,
8520,
12,
2514,
2025,
13,
202,
95,
202,
202,
6385,
509,
8210,
26498,
273,
374,
31,
225,
368,
5381,
30,
9786,
8220,
919,
202,
202,
6385,
509,
22427,
17750,
273,
404,
31,
225,
368,
5381,
30,
9843,
16,
2939,
5917,
202,
202,
6385,
509,
19400,
273,
576,
31,
225,
368,
5381,
30,
9786,
279,
2879,
2442,
202,
202,
6385,
509,
14919,
273,
890,
31,
282,
368,
5381,
30,
9786,
392,
5455,
2442,
202,
202,
6385,
509,
8358,
273,
1059,
31,
1377,
368,
5381,
30,
9786,
279,
1047,
2442,
9506,
202,
474,
919,
273,
8210,
26498,
31,
202,
202,
780,
2879,
2060,
273,
446,
31,
202,
202,
780,
1892,
1047,
1892,
273,
446,
31,
202,
202,
6494,
19821,
38,
539,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
474,
276,
273,
2025,
18,
896,
5621,
1082,
202,
1884,
12,
25708,
13,
288,
9506,
202,
759,
2631,
1047,
1392,
309,
732,
6800,
6431,
1122,
18,
9506,
202,
430,
12,
71,
422,
300,
21,
13,
6862,
202,
2463,
446,
31,
9506,
202,
9610,
12,
2019,
13,
288,
9506,
202,
3593,
8210,
26498,
30,
6862,
202,
759,
3603,
434,
1281,
1524,
434,
1047,
6862,
202,
430,
12,
71,
422,
2368,
6134,
288,
25083,
202,
2019,
273,
22427,
17750,
31,
25083,
202,
3469,
2060,
273,
17528,
413,
14432,
25083,
202,
87,
2219,
38,
539,
273,
629,
31,
25083,
202,
71,
273,
2025,
18,
896,
5621,
6862,
202,
97,
6862,
202,
759,
4673,
1661,
17,
18777,
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,
7521,
8520,
12,
2514,
2025,
13,
202,
95,
202,
202,
6385,
509,
8210,
26498,
273,
374,
31,
225,
368,
5381,
30,
9786,
8220,
919,
202,
202,
6385,
509,
22427,
17750,
273,
404,
31,
225,
368,
5381,
30,
9843,
16,
2939,
5917,
202,
202,
6385,
509,
19400,
273,
576,
31,
225,
368,
5381,
30,
9786,
279,
2879,
2442,
202,
202,
6385,
509,
14919,
273,
890,
31,
282,
368,
5381,
30,
9786,
392,
5455,
2442,
202,
202,
6385,
509,
8358,
273,
1059,
31,
1377,
368,
5381,
30,
9786,
279,
1047,
2442,
9506,
202,
474,
919,
273,
8210,
26498,
31,
202,
202,
780,
2879,
2060,
273,
446,
31,
202,
202,
780,
1892,
1047,
1892,
273,
446,
31,
2
] |
MutableInterval test = new MutableInterval(dt1, dt2);
|
MutableInterval base = new MutableInterval(dt1, dt2);
|
public void testToPeriod_PeriodType2() { DateTime dt1 = new DateTime(2004, 6, 9, 7, 8, 9, 10); DateTime dt2 = new DateTime(2005, 8, 13, 12, 14, 16, 18); MutableInterval test = new MutableInterval(dt1, dt2); Period result = test.toPeriod(PeriodType.yearWeekDayTime()); assertEquals(PeriodType.yearWeekDayTime(), result.getPeriodType()); assertEquals(1, result.getYears()); assertEquals(0, result.getMonths()); assertEquals(9, result.getWeeks()); assertEquals(2, result.getDays()); assertEquals(5, result.getHours()); assertEquals(6, result.getMinutes()); assertEquals(7, result.getSeconds()); assertEquals(8, result.getMillis()); }
|
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/ae46a513a314dc36f12346b57ccacacf7ffb303a/TestMutableInterval_Basics.java/clean/JodaTime/src/test/org/joda/time/TestMutableInterval_Basics.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
5027,
67,
5027,
559,
22,
1435,
288,
3639,
3716,
3681,
21,
273,
394,
3716,
12,
6976,
24,
16,
1666,
16,
2468,
16,
2371,
16,
1725,
16,
2468,
16,
1728,
1769,
3639,
3716,
3681,
22,
273,
394,
3716,
12,
6976,
25,
16,
1725,
16,
5958,
16,
2593,
16,
5045,
16,
2872,
16,
6549,
1769,
3639,
10960,
4006,
1026,
273,
394,
10960,
4006,
12,
7510,
21,
16,
3681,
22,
1769,
7734,
12698,
563,
273,
1842,
18,
869,
5027,
12,
5027,
559,
18,
6874,
6630,
4245,
950,
10663,
3639,
1815,
8867,
12,
5027,
559,
18,
6874,
6630,
4245,
950,
9334,
563,
18,
588,
5027,
559,
10663,
3639,
1815,
8867,
12,
21,
16,
563,
18,
588,
21945,
10663,
3639,
1815,
8867,
12,
20,
16,
563,
18,
588,
19749,
10663,
3639,
1815,
8867,
12,
29,
16,
563,
18,
588,
6630,
87,
10663,
3639,
1815,
8867,
12,
22,
16,
563,
18,
588,
9384,
10663,
3639,
1815,
8867,
12,
25,
16,
563,
18,
588,
14910,
10663,
3639,
1815,
8867,
12,
26,
16,
563,
18,
588,
13050,
10663,
3639,
1815,
8867,
12,
27,
16,
563,
18,
588,
6762,
10663,
3639,
1815,
8867,
12,
28,
16,
563,
18,
588,
4814,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
5027,
67,
5027,
559,
22,
1435,
288,
3639,
3716,
3681,
21,
273,
394,
3716,
12,
6976,
24,
16,
1666,
16,
2468,
16,
2371,
16,
1725,
16,
2468,
16,
1728,
1769,
3639,
3716,
3681,
22,
273,
394,
3716,
12,
6976,
25,
16,
1725,
16,
5958,
16,
2593,
16,
5045,
16,
2872,
16,
6549,
1769,
3639,
10960,
4006,
1026,
273,
394,
10960,
4006,
12,
7510,
21,
16,
3681,
22,
1769,
7734,
12698,
563,
273,
1842,
18,
869,
5027,
12,
5027,
559,
18,
6874,
6630,
4245,
950,
10663,
3639,
1815,
8867,
12,
5027,
559,
18,
6874,
6630,
4245,
950,
9334,
563,
18,
588,
5027,
559,
10663,
3639,
1815,
8867,
12,
21,
16,
563,
18,
588,
21945,
10663,
2
] |
OPT_RegisterOperand offsetrop = gc.temps.makeTempInt();
|
OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset();
|
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) { VM._assert(false, "unexpected receiver"); } VM_Type type = tr.peekResolvedType(); if (type != null && type.isResolved() && type.isClassType() && target != null) { if (type == target.getDeclaringClass()) { if (isPreciseType) { methOp.refine(target, true); } } else { VM_Method vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), ref); if (vmeth != null && vmeth != target) { methOp.refine(vmeth, isPreciseType); } } } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, isExtant), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { VM_MethodReference ref = bcodes.getMethodReference(); VM_Method target = ref.resolveInvokeSpecial(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.SPECIAL(ref, target)); // Handle possibility of dynamic linking. Must be done before null_check! // NOTE: different definition of unresolved due to semantics of invokespecial. if (target == null) { OPT_RegisterOperand offsetrop = gc.temps.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/3a9aeeb7f964774e6adc285d6526603ac1570e14/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
] |
final InputStream fis = openObjectStream(id); if (fis == null) {
|
final ObjectReader or = openObject(id); if (or == null) {
|
public Tree mapTree(final ObjectId id) throws IOException { final InputStream fis = openObjectStream(id); if (fis == null) { return null; } try { final ObjectReader or = new UnpackedObjectReader(id, fis); try { if (Constants.TYPE_TREE.equals(or.getType())) { return new Tree(this, id, or.getInputStream()); } else if (Constants.TYPE_COMMIT.equals(or.getType())) { return new Commit(this, id, or.getBufferedReader()) .getTree(); } else { throw new CorruptObjectException(id, "not a tree-ish"); } } finally { or.close(); } } catch (IOException ioe) { fis.close(); throw ioe; } }
|
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/ce0144b5d22684cfd0d5765051950da3dcd5ca96/FullRepository.java/buggy/org.spearce.jgit/src/org/spearce/jgit/lib/FullRepository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4902,
852,
2471,
12,
6385,
21192,
612,
13,
1216,
1860,
288,
3639,
727,
5037,
15324,
273,
1696,
921,
1228,
12,
350,
1769,
3639,
309,
261,
74,
291,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
775,
288,
5411,
727,
1033,
2514,
578,
273,
394,
25411,
23016,
2514,
12,
350,
16,
15324,
1769,
5411,
775,
288,
7734,
309,
261,
2918,
18,
2399,
67,
26557,
18,
14963,
12,
280,
18,
588,
559,
1435,
3719,
288,
10792,
327,
394,
4902,
12,
2211,
16,
612,
16,
578,
18,
588,
4348,
10663,
7734,
289,
469,
309,
261,
2918,
18,
2399,
67,
18658,
18,
14963,
12,
280,
18,
588,
559,
1435,
3719,
288,
10792,
327,
394,
10269,
12,
2211,
16,
612,
16,
578,
18,
588,
17947,
2514,
10756,
18701,
263,
588,
2471,
5621,
7734,
289,
469,
288,
10792,
604,
394,
9557,
10433,
921,
503,
12,
350,
16,
315,
902,
279,
2151,
17,
1468,
8863,
7734,
289,
5411,
289,
3095,
288,
7734,
578,
18,
4412,
5621,
5411,
289,
3639,
289,
1044,
261,
14106,
10847,
13,
288,
5411,
15324,
18,
4412,
5621,
5411,
604,
10847,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4902,
852,
2471,
12,
6385,
21192,
612,
13,
1216,
1860,
288,
3639,
727,
5037,
15324,
273,
1696,
921,
1228,
12,
350,
1769,
3639,
309,
261,
74,
291,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
775,
288,
5411,
727,
1033,
2514,
578,
273,
394,
25411,
23016,
2514,
12,
350,
16,
15324,
1769,
5411,
775,
288,
7734,
309,
261,
2918,
18,
2399,
67,
26557,
18,
14963,
12,
280,
18,
588,
559,
1435,
3719,
288,
10792,
327,
394,
4902,
12,
2211,
16,
612,
16,
578,
18,
588,
4348,
10663,
7734,
289,
469,
309,
261,
2918,
18,
2399,
67,
18658,
18,
14963,
12,
280,
18,
588,
559,
1435,
3719,
288,
10792,
327,
394,
10269,
12,
2211,
16,
2
] |
private HTMLNode createDeleteCell(PageMaker pageMaker, String identifier, ClientRequest clientRequest) {
|
private HTMLNode createDeleteCell(PageMaker pageMaker, String identifier, ClientRequest clientRequest, ToadletContext ctx) {
|
private HTMLNode createDeleteCell(PageMaker pageMaker, String identifier, ClientRequest clientRequest) { HTMLNode deleteNode = new HTMLNode("td", "class", "request-delete"); HTMLNode deleteForm = deleteNode.addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/queue/", "post", "UTF-8", "multipart/form-data" }); deleteForm.addChild(pageMaker.createFormPasswordInput(core.formPassword)); deleteForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "identifier", identifier }); deleteForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove_request", "Delete" }); // If it's failed, offer to restart it if(clientRequest.hasFinished() && !clientRequest.hasSucceeded() && clientRequest.canRestart()) { HTMLNode retryForm = deleteNode.addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/queue/", "post", "UTF-8", "multipart/form-data" }); retryForm.addChild(pageMaker.createFormPasswordInput(core.formPassword)); retryForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "identifier", identifier }); retryForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart_request", "Retry" }); } return deleteNode; }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
2613,
4020,
12,
1964,
12373,
1363,
12373,
16,
514,
2756,
16,
2445,
691,
1004,
691,
13,
288,
202,
202,
4870,
907,
1430,
907,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
3733,
8863,
202,
202,
4870,
907,
1430,
1204,
273,
1430,
907,
18,
1289,
1763,
2932,
687,
3113,
394,
514,
8526,
288,
315,
1128,
3113,
315,
2039,
3113,
315,
275,
12387,
3113,
315,
5999,
6,
19879,
394,
514,
8526,
288,
2206,
4000,
19,
3113,
315,
2767,
3113,
315,
5159,
17,
28,
3113,
315,
16404,
19,
687,
17,
892,
6,
15549,
202,
202,
3733,
1204,
18,
1289,
1763,
12,
2433,
12373,
18,
2640,
1204,
3913,
1210,
12,
3644,
18,
687,
3913,
10019,
202,
202,
3733,
1204,
18,
1289,
1763,
2932,
2630,
3113,
394,
514,
8526,
288,
315,
723,
3113,
315,
529,
3113,
315,
1132,
6,
19879,
394,
514,
8526,
288,
315,
6345,
3113,
315,
5644,
3113,
2756,
15549,
202,
202,
3733,
1204,
18,
1289,
1763,
2932,
2630,
3113,
394,
514,
8526,
288,
315,
723,
3113,
315,
529,
3113,
315,
1132,
6,
19879,
394,
514,
8526,
288,
315,
9297,
3113,
315,
4479,
67,
2293,
3113,
315,
2613,
6,
15549,
9506,
202,
759,
971,
518,
1807,
2535,
16,
10067,
358,
7870,
518,
9506,
202,
430,
12,
2625,
691,
18,
5332,
10577,
1435,
597,
401,
2625,
691,
18,
5332,
30500,
1435,
597,
1004,
691,
18,
4169,
15057,
10756,
288,
1082,
202,
4870,
907,
3300,
1204,
273,
1430,
907,
18,
1289,
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,
1152,
3982,
907,
752,
2613,
4020,
12,
1964,
12373,
1363,
12373,
16,
514,
2756,
16,
2445,
691,
1004,
691,
13,
288,
202,
202,
4870,
907,
1430,
907,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
3733,
8863,
202,
202,
4870,
907,
1430,
1204,
273,
1430,
907,
18,
1289,
1763,
2932,
687,
3113,
394,
514,
8526,
288,
315,
1128,
3113,
315,
2039,
3113,
315,
275,
12387,
3113,
315,
5999,
6,
19879,
394,
514,
8526,
288,
2206,
4000,
19,
3113,
315,
2767,
3113,
315,
5159,
17,
28,
3113,
315,
16404,
19,
687,
17,
892,
6,
15549,
202,
202,
3733,
1204,
18,
1289,
1763,
12,
2433,
12373,
18,
2640,
1204,
3913,
1210,
12,
3644,
18,
2
] |
public void addElement(JAnnotationTypeElement jElement) throws IllegalArgumentException { if (jElement == null) { throw new IllegalArgumentException("Class members cannot be null"); }
|
public void addElement(final JAnnotationTypeElement jElement) { if (jElement == null) { throw new IllegalArgumentException("Class members cannot be null"); }
|
public void addElement(JAnnotationTypeElement jElement) throws IllegalArgumentException { if (jElement == null) { throw new IllegalArgumentException("Class members cannot be null"); } String name = jElement.getName(); if (_elements.get(name) != null) { String err = "duplicate name found: " + name; throw new IllegalArgumentException(err); } _elements.put(name, jElement); // if member is of a type not imported by this class // then add import JType type = jElement.getType(); while (type.isArray()) type = type.getComponentType(); if ( !type.isPrimitive() ) addImport( type.getName()); } //-- addElement
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JAnnotationType.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JAnnotationType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9335,
12,
46,
3257,
559,
1046,
525,
1046,
13,
202,
202,
15069,
2754,
225,
202,
95,
202,
202,
430,
261,
78,
1046,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
797,
4833,
2780,
506,
446,
8863,
202,
202,
97,
540,
202,
202,
780,
508,
273,
525,
1046,
18,
17994,
5621,
540,
202,
202,
430,
261,
67,
6274,
18,
588,
12,
529,
13,
480,
446,
13,
288,
1082,
202,
780,
393,
273,
315,
17342,
508,
1392,
30,
315,
397,
508,
31,
1082,
202,
12849,
394,
2754,
12,
370,
1769,
202,
202,
97,
202,
202,
67,
6274,
18,
458,
12,
529,
16,
525,
1046,
1769,
202,
202,
759,
309,
3140,
353,
434,
279,
618,
486,
9101,
635,
333,
667,
202,
202,
759,
1508,
527,
1930,
202,
202,
46,
559,
618,
273,
525,
1046,
18,
588,
559,
5621,
202,
202,
17523,
261,
723,
18,
291,
1076,
10756,
618,
273,
618,
18,
588,
28116,
5621,
202,
202,
430,
261,
401,
723,
18,
291,
9840,
1435,
262,
1082,
202,
1289,
5010,
12,
618,
18,
17994,
10663,
202,
97,
368,
413,
9335,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9335,
12,
46,
3257,
559,
1046,
525,
1046,
13,
202,
202,
15069,
2754,
225,
202,
95,
202,
202,
430,
261,
78,
1046,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
797,
4833,
2780,
506,
446,
8863,
202,
202,
97,
540,
202,
202,
780,
508,
273,
525,
1046,
18,
17994,
5621,
540,
202,
202,
430,
261,
67,
6274,
18,
588,
12,
529,
13,
480,
446,
13,
288,
1082,
202,
780,
393,
273,
315,
17342,
508,
1392,
30,
315,
397,
508,
31,
1082,
202,
12849,
394,
2754,
12,
370,
1769,
202,
202,
97,
202,
202,
67,
6274,
18,
458,
12,
529,
16,
525,
1046,
1769,
202,
202,
759,
309,
3140,
353,
434,
279,
618,
486,
2
] |
public void visit(ITypeInfo info) {
|
public boolean visit(ITypeInfo info) {
|
public void visit(ITypeInfo info) { fAllTypes.add(info); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ccfe7d8f5fb16ffce595bc26621d085f534ba238/AllTypesCache.java/buggy/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/AllTypesCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3757,
12,
45,
17305,
1123,
13,
288,
9506,
202,
74,
1595,
2016,
18,
1289,
12,
1376,
1769,
1082,
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,
1875,
202,
482,
918,
3757,
12,
45,
17305,
1123,
13,
288,
9506,
202,
74,
1595,
2016,
18,
1289,
12,
1376,
1769,
1082,
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
] |
System.err.println("Class not found exception in setValue on " + type);
|
System.err.println("Class not found exception in setValue on " + m_type);
|
private void setValue(String value) { String type = m_metadata.getType(); Activator.getLogger().log(Level.INFO, "[" + m_providedService.getComponentManager().getComponentMetatada().getClassName() + "] Set the value of the property " + m_metadata.getName() + " [" + m_metadata.getType() + "] " + " with the value : " + value); // Array : if (type.endsWith("[]")) { String internalType = type.substring(0, type.length() - 2); value = value.substring(1, value.length() - 1); String[] values = value.split(","); setArrayValue(internalType, values); return; } // Simple : if (type.equals("string") || type.equals("String")) { m_value = new String(value); return; } if (type.equals("boolean")) { m_value = new Boolean(value); return; } if (type.equals("byte")) { m_value = new Byte(value); return; } if (type.equals("short")) { m_value = new Short(value); return; } if (type.equals("int")) { m_value = new Integer(value); return; } if (type.equals("long")) { m_value = new Long(value); return; } if (type.equals("float")) { m_value = new Float(value); return; } if (type.equals("double")) { m_value = new Double(value); return; } // Else it is a neither a primitive type neither a String -> create the object by calling a constructor with a string in argument. try { Class c = m_providedService.getComponentManager().getContext().getBundle().loadClass(type); //Class string = m_providedService.getComponentManager().getContext().getBundle().loadClass("java.lang.String"); Constructor cst = c.getConstructor(new Class[] {String.class}); m_value = cst.newInstance(new Object[] {value}); } catch (ClassNotFoundException e) { System.err.println("Class not found exception in setValue on " + type); e.printStackTrace(); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { System.err.println("Constructor not found exeption in setValue on " + type); e.printStackTrace(); } catch (IllegalArgumentException e) { System.err.println("Argument problem to call the constructor of the type " + type); e.printStackTrace(); } catch (InstantiationException e) { System.err.println("Instantiation problem " + type); e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { System.err.println("Invocation problem " + type); e.printStackTrace(); } }
|
45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/d229001e440fb0347d56e6cc3a6e65308dcdb431/Property.java/buggy/ipojo/src/main/java/org/apache/felix/ipojo/handlers/providedservice/Property.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5524,
12,
780,
460,
13,
288,
3639,
514,
618,
273,
312,
67,
4165,
18,
588,
559,
5621,
3639,
26939,
639,
18,
588,
3328,
7675,
1330,
12,
2355,
18,
5923,
16,
13626,
397,
312,
67,
29206,
1179,
18,
588,
1841,
1318,
7675,
588,
1841,
12244,
270,
16524,
7675,
588,
3834,
1435,
397,
9850,
1000,
326,
460,
434,
326,
1272,
315,
397,
312,
67,
4165,
18,
17994,
1435,
397,
315,
8247,
397,
312,
67,
4165,
18,
588,
559,
1435,
397,
9850,
315,
397,
315,
598,
326,
460,
294,
315,
397,
460,
1769,
3639,
368,
1510,
294,
3639,
309,
261,
723,
18,
5839,
1190,
2932,
63,
4279,
3719,
288,
5411,
514,
2713,
559,
273,
618,
18,
28023,
12,
20,
16,
618,
18,
2469,
1435,
300,
576,
1769,
5411,
460,
273,
460,
18,
28023,
12,
21,
16,
460,
18,
2469,
1435,
300,
404,
1769,
5411,
514,
8526,
924,
273,
460,
18,
4939,
2932,
16,
8863,
5411,
444,
1076,
620,
12,
7236,
559,
16,
924,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
4477,
294,
3639,
309,
261,
723,
18,
14963,
2932,
1080,
7923,
747,
618,
18,
14963,
2932,
780,
6,
3719,
288,
312,
67,
1132,
273,
394,
514,
12,
1132,
1769,
327,
31,
289,
3639,
309,
261,
723,
18,
14963,
2932,
6494,
6,
3719,
288,
312,
67,
1132,
273,
394,
3411,
12,
1132,
1769,
327,
31,
289,
3639,
309,
261,
723,
18,
14963,
2932,
7229,
6,
3719,
288,
312,
67,
1132,
273,
394,
3506,
12,
1132,
1769,
327,
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,
5524,
12,
780,
460,
13,
288,
3639,
514,
618,
273,
312,
67,
4165,
18,
588,
559,
5621,
3639,
26939,
639,
18,
588,
3328,
7675,
1330,
12,
2355,
18,
5923,
16,
13626,
397,
312,
67,
29206,
1179,
18,
588,
1841,
1318,
7675,
588,
1841,
12244,
270,
16524,
7675,
588,
3834,
1435,
397,
9850,
1000,
326,
460,
434,
326,
1272,
315,
397,
312,
67,
4165,
18,
17994,
1435,
397,
315,
8247,
397,
312,
67,
4165,
18,
588,
559,
1435,
397,
9850,
315,
397,
315,
598,
326,
460,
294,
315,
397,
460,
1769,
3639,
368,
1510,
294,
3639,
309,
261,
723,
18,
5839,
1190,
2932,
63,
4279,
3719,
288,
5411,
514,
2713,
559,
273,
618,
18,
28023,
12,
20,
2
] |
case Constants.ELEMNAME_TEXTLITERALRESULT: case Constants.ELEMNAME_APPLY_TEMPLATES: case Constants.ELEMNAME_APPLY_IMPORTS: case Constants.ELEMNAME_CALLTEMPLATE: case Constants.ELEMNAME_FOREACH: case Constants.ELEMNAME_VALUEOF: case Constants.ELEMNAME_COPY_OF: case Constants.ELEMNAME_NUMBER: case Constants.ELEMNAME_CHOOSE: case Constants.ELEMNAME_IF: case Constants.ELEMNAME_TEXT: case Constants.ELEMNAME_COPY: case Constants.ELEMNAME_VARIABLE: case Constants.ELEMNAME_MESSAGE:
|
case Constants.ELEMNAME_TEXTLITERALRESULT : case Constants.ELEMNAME_APPLY_TEMPLATES : case Constants.ELEMNAME_APPLY_IMPORTS : case Constants.ELEMNAME_CALLTEMPLATE : case Constants.ELEMNAME_FOREACH : case Constants.ELEMNAME_VALUEOF : case Constants.ELEMNAME_COPY_OF : case Constants.ELEMNAME_NUMBER : case Constants.ELEMNAME_CHOOSE : case Constants.ELEMNAME_IF : case Constants.ELEMNAME_TEXT : case Constants.ELEMNAME_COPY : case Constants.ELEMNAME_VARIABLE : case Constants.ELEMNAME_MESSAGE :
|
public Node appendChild(Node newChild) throws DOMException { int type = ((ElemTemplateElement)newChild).getXSLToken(); switch(type) { // char-instructions case Constants.ELEMNAME_TEXTLITERALRESULT: case Constants.ELEMNAME_APPLY_TEMPLATES: case Constants.ELEMNAME_APPLY_IMPORTS: case Constants.ELEMNAME_CALLTEMPLATE: case Constants.ELEMNAME_FOREACH: case Constants.ELEMNAME_VALUEOF: case Constants.ELEMNAME_COPY_OF: case Constants.ELEMNAME_NUMBER: case Constants.ELEMNAME_CHOOSE: case Constants.ELEMNAME_IF: case Constants.ELEMNAME_TEXT: case Constants.ELEMNAME_COPY: case Constants.ELEMNAME_VARIABLE: case Constants.ELEMNAME_MESSAGE: // instructions // case Constants.ELEMNAME_PI: // case Constants.ELEMNAME_COMMENT: // case Constants.ELEMNAME_ELEMENT: // case Constants.ELEMNAME_ATTRIBUTE: break; default: error(XSLTErrorResources.ER_CANNOT_ADD, new Object[] {newChild.getNodeName(), this.getNodeName()}); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemComment.java/clean/src/org/apache/xalan/templates/ElemComment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
9079,
5833,
12,
907,
19783,
13,
565,
1216,
4703,
503,
225,
288,
565,
509,
618,
273,
14015,
7498,
2283,
1046,
13,
2704,
1763,
2934,
588,
60,
4559,
1345,
5621,
565,
1620,
12,
723,
13,
565,
288,
1377,
368,
1149,
17,
25758,
377,
648,
5245,
18,
41,
26817,
1985,
67,
5151,
23225,
12289,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
2203,
23893,
67,
12205,
55,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
2203,
23893,
67,
20445,
55,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
13730,
12205,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
11701,
18133,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
4051,
3932,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
24875,
67,
3932,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
9931,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
22213,
51,
1090,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
5501,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
5151,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
24875,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
16444,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
8723,
30,
5411,
368,
12509,
4202,
368,
648,
5245,
18,
41,
26817,
1985,
67,
1102,
30,
1377,
368,
648,
5245,
18,
41,
26817,
1985,
67,
12200,
30,
1377,
368,
648,
5245,
18,
41,
26817,
1985,
67,
10976,
30,
1377,
368,
648,
5245,
18,
41,
26817,
1985,
67,
11616,
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,
2029,
9079,
5833,
12,
907,
19783,
13,
565,
1216,
4703,
503,
225,
288,
565,
509,
618,
273,
14015,
7498,
2283,
1046,
13,
2704,
1763,
2934,
588,
60,
4559,
1345,
5621,
565,
1620,
12,
723,
13,
565,
288,
1377,
368,
1149,
17,
25758,
377,
648,
5245,
18,
41,
26817,
1985,
67,
5151,
23225,
12289,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
2203,
23893,
67,
12205,
55,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
2203,
23893,
67,
20445,
55,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
13730,
12205,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
11701,
18133,
30,
565,
648,
5245,
18,
41,
26817,
1985,
67,
4051,
3932,
30,
565,
648,
2
] |
addByteCode(ByteCode.DCMPL); addByteCode(ByteCode.IFGE, trueGOTO);
|
cfw.add(ByteCode.DCMPL); cfw.add(ByteCode.IFGE, trueGOTO);
|
private void genSimpleCompare(int type, int trueGOTO, int falseGOTO) { switch (type) { case Token.LE : addByteCode(ByteCode.DCMPG); addByteCode(ByteCode.IFLE, trueGOTO); break; case Token.GE : addByteCode(ByteCode.DCMPL); addByteCode(ByteCode.IFGE, trueGOTO); break; case Token.LT : addByteCode(ByteCode.DCMPG); addByteCode(ByteCode.IFLT, trueGOTO); break; case Token.GT : addByteCode(ByteCode.DCMPL); addByteCode(ByteCode.IFGT, trueGOTO); break; default : badTree(); } if (falseGOTO != -1) addByteCode(ByteCode.GOTO, falseGOTO); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
5784,
8583,
12,
474,
618,
16,
509,
638,
43,
27019,
16,
509,
629,
43,
27019,
13,
565,
288,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
18,
900,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
43,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
900,
16,
638,
43,
27019,
1769,
7734,
898,
31,
5411,
648,
3155,
18,
7113,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
48,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
7113,
16,
638,
43,
27019,
1769,
7734,
898,
31,
5411,
648,
3155,
18,
12050,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
43,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
12050,
16,
638,
43,
27019,
1769,
7734,
898,
31,
5411,
648,
3155,
18,
16506,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
48,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
16506,
16,
638,
43,
27019,
1769,
7734,
898,
31,
5411,
805,
294,
7734,
5570,
2471,
5621,
10792,
289,
3639,
309,
261,
5743,
43,
27019,
480,
300,
21,
13,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
43,
27019,
16,
629,
43,
27019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
5784,
8583,
12,
474,
618,
16,
509,
638,
43,
27019,
16,
509,
629,
43,
27019,
13,
565,
288,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
18,
900,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
43,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
900,
16,
638,
43,
27019,
1769,
7734,
898,
31,
5411,
648,
3155,
18,
7113,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
48,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5501,
7113,
16,
638,
43,
27019,
1769,
7734,
898,
31,
5411,
648,
3155,
18,
12050,
294,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
5528,
4566,
43,
1769,
7734,
2
] |
public double asin(double d) {
|
public static double asin(double d) {
|
public double asin(double d) { if ((d != d) || (d > 1.0) || (d < -1.0)) return Double.NaN; return Math.asin(d); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3ef540f70dc64e503df2b7ca56d6cf65647fcf42/NativeMath.java/buggy/js/rhino/org/mozilla/javascript/NativeMath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
487,
267,
12,
9056,
302,
13,
288,
3639,
309,
14015,
72,
480,
302,
13,
1171,
747,
261,
72,
405,
404,
18,
20,
13,
7734,
747,
261,
72,
411,
300,
21,
18,
20,
3719,
5411,
327,
3698,
18,
21172,
31,
3639,
327,
2361,
18,
345,
267,
12,
72,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1645,
487,
267,
12,
9056,
302,
13,
288,
3639,
309,
14015,
72,
480,
302,
13,
1171,
747,
261,
72,
405,
404,
18,
20,
13,
7734,
747,
261,
72,
411,
300,
21,
18,
20,
3719,
5411,
327,
3698,
18,
21172,
31,
3639,
327,
2361,
18,
345,
267,
12,
72,
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,
-100,
-100,
-100
] |
public ButtonModel getModel() { return model; }
|
public ButtonModel getModel() { return model; }
|
public ButtonModel getModel() { return model; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12569,
1488,
7454,
1435,
288,
202,
202,
2463,
938,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12569,
1488,
7454,
1435,
288,
202,
202,
2463,
938,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String systemId) throws SAXException
|
String systemId) throws SAXException
|
public void externalEntityDecl (String name, String publicId, String systemId) throws SAXException {}
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/a8855c631cbd476a4ac4111fbc8a443f995165b3/SerializerToXML.java/clean/src/org/apache/xalan/serialize/SerializerToXML.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3903,
1943,
3456,
261,
780,
508,
16,
514,
1071,
548,
16,
25083,
377,
514,
30083,
13,
202,
15069,
14366,
565,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
3903,
1943,
3456,
261,
780,
508,
16,
514,
1071,
548,
16,
25083,
377,
514,
30083,
13,
202,
15069,
14366,
565,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
handleRender();
|
synchronized (getModelLock()) { handleRender(); }
|
public void render() { // Get request cycle to render to final RequestCycle cycle = getRequestCycle(); // Save original Response final Response originalResponse = cycle.getResponse(); // If component is not visible, set response to NullResponse if (!visible) { cycle.setResponse(NullResponse.getInstance()); } // Call implementation to render component handleRender(); // Restore original response cycle.setResponse(originalResponse); // Increase render count for component rendering++; }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/4deb7a3e6d3793fabfe687190e3feded8a02228d/Component.java/clean/wicket/src/java/wicket/Component.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
1435,
202,
95,
202,
202,
759,
968,
590,
8589,
358,
1743,
358,
202,
202,
6385,
1567,
13279,
8589,
273,
4328,
13279,
5621,
202,
202,
759,
7074,
2282,
2306,
202,
202,
6385,
2306,
2282,
1064,
273,
8589,
18,
588,
1064,
5621,
202,
202,
759,
971,
1794,
353,
486,
6021,
16,
444,
766,
358,
4112,
1064,
202,
202,
430,
16051,
8613,
13,
202,
202,
95,
1082,
202,
13946,
18,
542,
1064,
12,
2041,
1064,
18,
588,
1442,
10663,
202,
202,
97,
202,
202,
759,
3049,
4471,
358,
1743,
1794,
202,
202,
4110,
3420,
5621,
202,
202,
759,
11197,
2282,
766,
202,
202,
13946,
18,
542,
1064,
12,
8830,
1064,
1769,
202,
202,
759,
657,
11908,
1743,
1056,
364,
1794,
202,
202,
5902,
310,
9904,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1743,
1435,
202,
95,
202,
202,
759,
968,
590,
8589,
358,
1743,
358,
202,
202,
6385,
1567,
13279,
8589,
273,
4328,
13279,
5621,
202,
202,
759,
7074,
2282,
2306,
202,
202,
6385,
2306,
2282,
1064,
273,
8589,
18,
588,
1064,
5621,
202,
202,
759,
971,
1794,
353,
486,
6021,
16,
444,
766,
358,
4112,
1064,
202,
202,
430,
16051,
8613,
13,
202,
202,
95,
1082,
202,
13946,
18,
542,
1064,
12,
2041,
1064,
18,
588,
1442,
10663,
202,
202,
97,
202,
202,
759,
3049,
4471,
358,
1743,
1794,
202,
202,
4110,
3420,
5621,
202,
202,
759,
11197,
2282,
766,
202,
202,
13946,
18,
542,
1064,
12,
8830,
1064,
1769,
202,
202,
759,
657,
11908,
1743,
2
] |
temp = contextSet.selectAncestors(p, true, Expression.NO_CONTEXT_ID);
|
temp = contextSet.selectAncestors(p, true, Expression.IGNORE_CONTEXT);
|
private Sequence selectByPosition(Sequence outerSequence, Sequence contextSequence, int mode, Expression inner) throws XPathException { if(Type.subTypeOf(contextSequence.getItemType(), Type.NODE) && outerSequence != null && outerSequence.getLength() > 0) { Sequence result = new ExtArrayNodeSet(100); NodeSet contextSet = contextSequence.toNodeSet(); switch(mode) { case Constants.CHILD_AXIS: case Constants.ATTRIBUTE_AXIS: case Constants.DESCENDANT_AXIS: case Constants.DESCENDANT_SELF_AXIS: case Constants.DESCENDANT_ATTRIBUTE_AXIS: { Sequence ancestors = contextSet.selectAncestorDescendant(outerSequence.toNodeSet(), NodeSet.ANCESTOR, true, getExpressionId()); ArraySet temp = new ArraySet(100); for(SequenceIterator i = ancestors.iterate(); i.hasNext(); ) { NodeProxy p = (NodeProxy)i.nextItem(); ContextItem contextNode = p.getContext(); temp.reset(); while (contextNode != null) { if (contextNode.getContextId() == getExpressionId()) temp.add(contextNode.getNode()); contextNode = contextNode.getNextDirect(); } //TODO : understand why we sort here... temp.sortInDocumentOrder(); Sequence innerSeq = inner.eval(contextSequence); for(SequenceIterator j = innerSeq.iterate(); j.hasNext(); ) { NumericValue v = (NumericValue)j.nextItem().convertTo(Type.NUMBER); //... whereas we don't want a sorted array here //TODO : rename this method as getInDocumentOrder ? -pb p = temp.getUnsorted(v.getInt() - 1); if (p != null) result.add(p); //TODO : does null make sense here ? } } break; } default: for (SequenceIterator i = outerSequence.iterate(); i.hasNext(); ) { NodeProxy p = (NodeProxy)i.nextItem(); Sequence temp; boolean reverseAxis = true; switch(mode) { case Constants.ANCESTOR_AXIS: temp = contextSet.selectAncestors(p, false, Expression.NO_CONTEXT_ID); break; case Constants.ANCESTOR_SELF_AXIS: temp = contextSet.selectAncestors(p, true, Expression.NO_CONTEXT_ID); break; case Constants.PARENT_AXIS: //TODO : understand why the contextSet is not involved here //NodeProxy.getParent returns a *theoretical* parent //which is *not* guaranteed to be in the context set ! temp = p.getParents(Expression.NO_CONTEXT_ID); break; case Constants.PRECEDING_AXIS: temp = contextSet.selectPreceding(p); break; case Constants.PRECEDING_SIBLING_AXIS: temp = contextSet.selectPrecedingSiblings(p, getExpressionId()); break; case Constants.FOLLOWING_SIBLING_AXIS: temp = contextSet.selectFollowingSiblings(p, getExpressionId()); reverseAxis = false; break; case Constants.FOLLOWING_AXIS: temp = contextSet.selectFollowing(p); reverseAxis = false; break; case Constants.SELF_AXIS: temp = p; reverseAxis = false; break; default: //temp = contextSet.selectAncestorDescendant(p, NodeSet.DESCENDANT, false, false); //break; throw new IllegalArgumentException("Tested unknown axis"); } if (temp.getLength() > 0) { //TODO : build a value sequence *one* time ? -pb Sequence innerSeq = inner.eval(contextSequence); for(SequenceIterator j = innerSeq.iterate(); j.hasNext(); ) { NumericValue v = (NumericValue)j.nextItem().convertTo(Type.NUMBER); int pos = (reverseAxis ? temp.getLength() - v.getInt() : v.getInt()); //Other positions are ignored if (pos >= 0 && pos < temp.getLength()) { result.add(temp.itemAt(pos)); } } } } } return result; } else { ValueSequence result = new ValueSequence(); Sequence innerSeq = inner.eval(contextSequence); for(SequenceIterator i = innerSeq.iterate(); i.hasNext(); ) { NumericValue v = (NumericValue)i.nextItem().convertTo(Type.NUMBER); int pos = v.getInt() - 1; //Other positions are ignored if(pos >= 0 && pos < contextSequence.getLength()) result.add(contextSequence.itemAt(pos)); } return result; } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/aa97f4d76531893721258680bba3894385e96e08/Predicate.java/buggy/src/org/exist/xquery/Predicate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
8370,
2027,
858,
2555,
12,
4021,
6390,
4021,
16,
8370,
819,
4021,
16,
509,
1965,
16,
5371,
3443,
13,
1216,
10172,
503,
288,
202,
202,
430,
12,
559,
18,
1717,
559,
951,
12,
2472,
4021,
18,
588,
22580,
9334,
1412,
18,
8744,
13,
597,
6390,
4021,
480,
446,
597,
1082,
202,
14068,
4021,
18,
588,
1782,
1435,
405,
374,
13,
288,
1082,
202,
4021,
563,
273,
394,
6419,
1076,
907,
694,
12,
6625,
1769,
1082,
202,
907,
694,
819,
694,
273,
819,
4021,
18,
869,
907,
694,
5621,
5411,
1620,
12,
3188,
13,
288,
5411,
648,
5245,
18,
27043,
67,
25614,
30,
5411,
648,
5245,
18,
11616,
67,
25614,
30,
5411,
648,
5245,
18,
10964,
4415,
6856,
67,
25614,
30,
5411,
648,
5245,
18,
10964,
4415,
6856,
67,
26280,
67,
25614,
30,
5411,
648,
5245,
18,
10964,
4415,
6856,
67,
11616,
67,
25614,
30,
2398,
288,
9506,
202,
4021,
14322,
273,
819,
694,
18,
4025,
15637,
29014,
12,
14068,
4021,
18,
869,
907,
694,
9334,
25083,
202,
907,
694,
18,
4722,
882,
916,
16,
638,
16,
16183,
548,
10663,
9506,
202,
1076,
694,
1906,
273,
394,
1510,
694,
12,
6625,
1769,
9506,
202,
1884,
12,
4021,
3198,
277,
273,
14322,
18,
18793,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
6862,
25083,
565,
2029,
3886,
293,
273,
261,
907,
3886,
13,
77,
18,
4285,
1180,
5621,
6862,
565,
1772,
1180,
819,
907,
273,
293,
18,
29120,
5621,
6862,
565,
1906,
18,
6208,
5621,
6862,
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,
1152,
8370,
2027,
858,
2555,
12,
4021,
6390,
4021,
16,
8370,
819,
4021,
16,
509,
1965,
16,
5371,
3443,
13,
1216,
10172,
503,
288,
202,
202,
430,
12,
559,
18,
1717,
559,
951,
12,
2472,
4021,
18,
588,
22580,
9334,
1412,
18,
8744,
13,
597,
6390,
4021,
480,
446,
597,
1082,
202,
14068,
4021,
18,
588,
1782,
1435,
405,
374,
13,
288,
1082,
202,
4021,
563,
273,
394,
6419,
1076,
907,
694,
12,
6625,
1769,
1082,
202,
907,
694,
819,
694,
273,
819,
4021,
18,
869,
907,
694,
5621,
5411,
1620,
12,
3188,
13,
288,
5411,
648,
5245,
18,
27043,
67,
25614,
30,
5411,
648,
5245,
18,
11616,
67,
25614,
30,
5411,
648,
5245,
18,
10964,
4415,
2
] |
AST __t185 = _t; AST tmp731_AST_in = (AST)_t;
|
AST __t170 = _t; AST tmp735_AST_in = (AST)_t;
|
public final void buffercomparestate(AST _t) throws RecognitionException { AST buffercomparestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t173 = _t; AST tmp724_AST_in = (AST)_t; match(_t,BUFFERCOMPARE); _t = _t.getFirstChild(); tbl(_t,CQ.REF); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t175 = _t; AST tmp725_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop177: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop177; } } while (true); } _t = __t175; _t = _t.getNextSibling(); break; } case USING: { AST __t178 = _t; AST tmp726_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); { int _cnt180=0; _loop180: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.REF); _t = _retTree; } else { if ( _cnt180>=1 ) { break _loop180; } else {throw new NoViableAltException(_t);} } _cnt180++; } while (true); } _t = __t178; _t = _t.getNextSibling(); break; } case TO: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp727_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); tbl(_t,CQ.REF); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASESENSITIVE: { AST tmp728_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } case BINARY: { AST tmp729_AST_in = (AST)_t; match(_t,BINARY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case SAVE: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SAVE: { AST __t183 = _t; AST tmp730_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RESULT: { AST __t185 = _t; AST tmp731_AST_in = (AST)_t; match(_t,RESULT); _t = _t.getFirstChild(); AST tmp732_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); _t = __t185; _t = _t.getNextSibling(); break; } case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } fld(_t,CQ.UPDATING); _t = _retTree; _t = __t183; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXPLICIT: { AST tmp733_AST_in = (AST)_t; match(_t,EXPLICIT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp734_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp735_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; AST __t189 = _t; AST tmp736_AST_in = (AST)_t; match(_t,Code_block); _t = _t.getFirstChild(); { _loop192: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WHEN)) { AST __t191 = _t; AST tmp737_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp738_AST_in = (AST)_t; match(_t,THEN); _t = _t.getNextSibling(); blockorstate(_t); _t = _retTree; _t = __t191; _t = _t.getNextSibling(); } else { break _loop192; } } while (true); } _t = __t189; _t = _t.getNextSibling(); AST __t193 = _t; AST tmp739_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp740_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t193; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp741_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp742_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t173; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1613,
9877,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1613,
9877,
2019,
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,
31331,
273,
389,
88,
31,
202,
202,
9053,
1853,
27,
3247,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11302,
4208,
11713,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
16187,
24899,
88,
16,
39,
53,
18,
10771,
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,
5675,
14514,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
4033,
25,
273,
389,
88,
31,
1082,
202,
9053,
1853,
27,
2947,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2294,
14514,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
67,
6498,
29882,
30,
1082,
202,
2896,
288,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
974,
67,
1734,
3719,
288,
6862,
202,
19794,
21,
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,
1613,
9877,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1613,
9877,
2019,
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,
31331,
273,
389,
88,
31,
202,
202,
9053,
1853,
27,
3247,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11302,
4208,
11713,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
16187,
24899,
88,
16,
39,
53,
18,
10771,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
2
] |
if (argument == null || argument1 == null) { out.println("usage: setforwarding [username] [emailaddress]"); return true; } String username = argument; String forward = argument1; if (username.equals("") || forward.equals("")) { out.println("usage: adduser [username] [emailaddress]"); return true; } User baseuser = users.getUserByName(username); if (baseuser == null) { out.println("No such user"); return true; } else if (! (baseuser instanceof JamesUser ) ) { out.println("Can't set forwarding for this user type."); return true; } JamesUser user = (JamesUser)baseuser; MailAddress forwardAddr; try { forwardAddr = new MailAddress(forward); } catch(ParseException pe) { out.println("Parse exception with that email address: " + pe.getMessage()); out.println("Forwarding address not added for " + username); return true; } boolean success = user.setForwardingDestination(forwardAddr); if (success) { user.setForwarding(true); users.updateUser(user); StringBuffer responseBuffer = new StringBuffer(64) .append("Forwarding destination for ") .append(username) .append(" set to:") .append(forwardAddr.toString()); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Error setting forwarding"); getLogger().info("Error setting forwarding"); } out.flush(); return true;
|
return doSETFORWARDING(argument);
|
private boolean parseCommand( String command ) { if (command == null) { return false; } StringTokenizer commandLine = new StringTokenizer(command.trim(), " "); int arguments = commandLine.countTokens(); if (arguments == 0) { return true; } else if(arguments > 0) { command = commandLine.nextToken().toUpperCase(Locale.US); } String argument = (String) null; if(arguments > 1) { argument = commandLine.nextToken(); } String argument1 = (String) null; if(arguments > 2) { argument1 = commandLine.nextToken(); } if (command.equals("ADDUSER")) { String username = argument; String passwd = argument1; try { if (username.equals("") || passwd.equals("")) { out.println("usage: adduser [username] [password]"); return true; } } catch (NullPointerException e) { out.println("usage: adduser [username] [password]"); return true; } boolean success = false; if (users.contains(username)) { StringBuffer responseBuffer = new StringBuffer(64) .append("User ") .append(username) .append(" already exists"); String response = responseBuffer.toString(); out.println(response); } else if ( inLocalUsers ) { success = mailServer.addUser(username, passwd); } else { DefaultUser user = new DefaultUser(username, "SHA"); user.setPassword(passwd); success = users.addUser(user); } if ( success ) { StringBuffer responseBuffer = new StringBuffer(64) .append("User ") .append(username) .append(" added"); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Error adding user " + username); getLogger().info("Error adding user " + username); } out.flush(); } else if (command.equals("SETPASSWORD")) { if (argument == null || argument1 == null) { out.println("usage: setpassword [username] [password]"); return true; } String username = argument; String passwd = argument1; if (username.equals("") || passwd.equals("")) { out.println("usage: adduser [username] [password]"); return true; } User user = users.getUserByName(username); if (user == null) { out.println("No such user"); return true; } boolean success; success = user.setPassword(passwd); if (success) { users.updateUser(user); StringBuffer responseBuffer = new StringBuffer(64) .append("Password for ") .append(username) .append(" reset"); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Error resetting password"); getLogger().info("Error resetting password"); } out.flush(); return true; } else if (command.equals("DELUSER")) { String user = argument; if (user.equals("")) { out.println("usage: deluser [username]"); return true; } try { users.removeUser(user); } catch (Exception e) { StringBuffer exceptionBuffer = new StringBuffer(128) .append("Error deleting user ") .append(user) .append(" : ") .append(e.getMessage()); out.println(exceptionBuffer.toString()); return true; } StringBuffer responseBuffer = new StringBuffer(64) .append("User ") .append(user) .append(" deleted"); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else if (command.equals("LISTUSERS")) { out.println("Existing accounts " + users.countUsers()); for (Iterator it = users.list(); it.hasNext();) { out.println("user: " + (String) it.next()); } } else if (command.equals("COUNTUSERS")) { out.println("Existing accounts " + users.countUsers()); } else if (command.equals("VERIFY")) { String user = argument; if (user.equals("")) { out.println("usage: verify [username]"); return true; } if (users.contains(user)) { StringBuffer responseBuffer = new StringBuffer(64) .append("User ") .append(user) .append(" exists"); String response = responseBuffer.toString(); out.println(response); } else { StringBuffer responseBuffer = new StringBuffer(64) .append("User ") .append(user) .append(" does not exist"); String response = responseBuffer.toString(); out.println(response); } } else if (command.equals("HELP")) { out.println("Currently implemented commands:"); out.println("help display this help"); out.println("listusers display existing accounts"); out.println("countusers display the number of existing accounts"); out.println("adduser [username] [password] add a new user"); out.println("verify [username] verify if specified user exist"); out.println("deluser [username] delete existing user"); out.println("setpassword [username] [password] sets a user's password"); out.println("setalias [username] [alias] sets a user's alias"); out.println("unsetalias [username] removes a user's alias"); out.println("setforwarding [username] [emailaddress] forwards a user's email to another account"); out.println("user [repositoryname] change to another user repository"); out.println("shutdown kills the current JVM (convenient when James is run as a daemon)"); out.println("quit close connection"); out.flush(); } else if (command.equals("SETALIAS")) { if (argument == null || argument1 == null) { out.println("usage: setalias [username] [alias]"); return true; } String username = argument; String alias = argument1; if (username.equals("") || alias.equals("")) { out.println("usage: adduser [username] [alias]"); return true; } JamesUser user = (JamesUser) users.getUserByName(username); if (user == null) { out.println("No such user"); return true; } JamesUser aliasUser = (JamesUser) users.getUserByName(alias); if (aliasUser == null) { out.println("Alias unknown to server" + " - create that user first."); return true; } boolean success = user.setAlias(alias); if (success) { user.setAliasing(true); users.updateUser(user); StringBuffer responseBuffer = new StringBuffer(64) .append("Alias for ") .append(username) .append(" set to:") .append(alias); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Error setting alias"); getLogger().info("Error setting alias"); } out.flush(); return true; } else if (command.equals("SETFORWARDING")) { if (argument == null || argument1 == null) { out.println("usage: setforwarding [username] [emailaddress]"); return true; } String username = argument; String forward = argument1; if (username.equals("") || forward.equals("")) { out.println("usage: adduser [username] [emailaddress]"); return true; } // Verify user exists User baseuser = users.getUserByName(username); if (baseuser == null) { out.println("No such user"); return true; } else if (! (baseuser instanceof JamesUser ) ) { out.println("Can't set forwarding for this user type."); return true; } JamesUser user = (JamesUser)baseuser; // Verify acceptable email address MailAddress forwardAddr; try { forwardAddr = new MailAddress(forward); } catch(ParseException pe) { out.println("Parse exception with that email address: " + pe.getMessage()); out.println("Forwarding address not added for " + username); return true; } boolean success = user.setForwardingDestination(forwardAddr); if (success) { user.setForwarding(true); users.updateUser(user); StringBuffer responseBuffer = new StringBuffer(64) .append("Forwarding destination for ") .append(username) .append(" set to:") .append(forwardAddr.toString()); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Error setting forwarding"); getLogger().info("Error setting forwarding"); } out.flush(); return true; } else if (command.equals("UNSETALIAS")) { if (argument == null) { out.println("usage: unsetalias [username]"); return true; } String username = argument; if (username.equals("")) { out.println("usage: adduser [username]"); return true; } JamesUser user = (JamesUser) users.getUserByName(username); if (user == null) { out.println("No such user"); return true; } if (user.getAliasing()){ user.setAliasing(false); users.updateUser(user); StringBuffer responseBuffer = new StringBuffer(64) .append("Alias for ") .append(username) .append(" unset"); String response = responseBuffer.toString(); out.println(response); getLogger().info(response); } else { out.println("Aliasing not active for" + username); getLogger().info("Aliasing not active for" + username); } out.flush(); return true; } else if (command.equals("USE")) { if (argument == null || argument.equals("")) { out.println("usage: use [repositoryName]"); return true; } String repositoryName = argument.toLowerCase(Locale.US); UsersRepository repos = usersStore.getRepository(repositoryName); if ( repos == null ) { out.println("no such repository"); return true; } else { users = repos; StringBuffer responseBuffer = new StringBuffer(64) .append("Changed to repository '") .append(repositoryName) .append("'."); out.println(responseBuffer.toString()); if ( repositoryName.equals("localusers") ) { inLocalUsers = true; } else { inLocalUsers = false; } return true; } } else if (command.equals("QUIT")) { out.println("bye"); return false; } else if (command.equals("SHUTDOWN")) { out.println("shuting down, bye bye"); System.exit(0); return false; } else { out.println("unknown command " + command); } return true; }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/8c78b2b693e4be3b85939e60544ee9b152ed290e/RemoteManagerHandler.java/clean/src/java/org/apache/james/remotemanager/RemoteManagerHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
2189,
12,
514,
1296,
262,
288,
3639,
309,
261,
3076,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
16370,
20894,
273,
394,
16370,
12,
3076,
18,
5290,
9334,
315,
315,
1769,
3639,
509,
1775,
273,
20894,
18,
1883,
5157,
5621,
3639,
309,
261,
7099,
422,
374,
13,
288,
5411,
327,
638,
31,
3639,
289,
469,
309,
12,
7099,
405,
374,
13,
288,
5411,
1296,
273,
20894,
18,
4285,
1345,
7675,
869,
8915,
12,
3916,
18,
3378,
1769,
3639,
289,
3639,
514,
1237,
273,
261,
780,
13,
446,
31,
3639,
309,
12,
7099,
405,
404,
13,
288,
5411,
1237,
273,
20894,
18,
4285,
1345,
5621,
3639,
289,
3639,
514,
1237,
21,
273,
261,
780,
13,
446,
31,
3639,
309,
12,
7099,
405,
576,
13,
288,
5411,
1237,
21,
273,
20894,
18,
4285,
1345,
5621,
3639,
289,
3639,
309,
261,
3076,
18,
14963,
2932,
8355,
4714,
6,
3719,
288,
5411,
514,
2718,
273,
1237,
31,
5411,
514,
19093,
273,
1237,
21,
31,
5411,
775,
288,
7734,
309,
261,
5053,
18,
14963,
2932,
7923,
747,
19093,
18,
14963,
2932,
6,
3719,
288,
10792,
596,
18,
8222,
2932,
9167,
30,
527,
1355,
306,
5053,
65,
306,
3664,
4279,
1769,
10792,
327,
638,
31,
7734,
289,
5411,
289,
1044,
261,
2041,
9992,
425,
13,
288,
7734,
596,
18,
8222,
2932,
9167,
30,
527,
1355,
306,
5053,
65,
306,
3664,
4279,
1769,
7734,
327,
638,
31,
5411,
289,
5411,
1250,
2216,
273,
629,
31,
5411,
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,
1250,
1109,
2189,
12,
514,
1296,
262,
288,
3639,
309,
261,
3076,
422,
446,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
16370,
20894,
273,
394,
16370,
12,
3076,
18,
5290,
9334,
315,
315,
1769,
3639,
509,
1775,
273,
20894,
18,
1883,
5157,
5621,
3639,
309,
261,
7099,
422,
374,
13,
288,
5411,
327,
638,
31,
3639,
289,
469,
309,
12,
7099,
405,
374,
13,
288,
5411,
1296,
273,
20894,
18,
4285,
1345,
7675,
869,
8915,
12,
3916,
18,
3378,
1769,
3639,
289,
3639,
514,
1237,
273,
261,
780,
13,
446,
31,
3639,
309,
12,
7099,
405,
404,
13,
288,
5411,
1237,
273,
20894,
18,
4285,
1345,
5621,
3639,
289,
3639,
514,
1237,
21,
273,
261,
2
] |
public void newExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:761:17: ( 'new' type ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:761:17: 'new' type ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? ) { match(input,115,FOLLOW_115_in_newExpression3172); following.push(FOLLOW_type_in_newExpression3174); type(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:17: ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? ) int alt79=2; int LA79_0 = input.LA(1); if ( LA79_0==LPAREN ) { alt79=1; } else if ( LA79_0==LBRACK ) { alt79=2; } else { NoViableAltException nvae = new NoViableAltException("762:17: ( LPAREN argList RPAREN ( classBlock )? | newArrayDeclarator ( arrayInitializer )? )", 79, 0, input); throw nvae; } switch (alt79) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:25: LPAREN argList RPAREN ( classBlock )? { match(input,LPAREN,FOLLOW_LPAREN_in_newExpression3180); following.push(FOLLOW_argList_in_newExpression3182); argList(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_newExpression3184); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:47: ( classBlock )? int alt77=2; int LA77_0 = input.LA(1); if ( LA77_0==LCURLY ) { alt77=1; } else if ( (LA77_0>=LBRACK && LA77_0<=RBRACK)||(LA77_0>=DOT && LA77_0<=STAR)||(LA77_0>=SEMI && LA77_0<=COMMA)||(LA77_0>=RPAREN && LA77_0<=DEC)||LA77_0==111 ) { alt77=2; } else { NoViableAltException nvae = new NoViableAltException("762:47: ( classBlock )?", 77, 0, input); throw nvae; } switch (alt77) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:762:48: classBlock { following.push(FOLLOW_classBlock_in_newExpression3187); classBlock(); following.pop(); } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:772:25: newArrayDeclarator ( arrayInitializer )? { following.push(FOLLOW_newArrayDeclarator_in_newExpression3225); newArrayDeclarator(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:772:44: ( arrayInitializer )? int alt78=2; int LA78_0 = input.LA(1); if ( LA78_0==LCURLY ) { alt78=1; } else if ( (LA78_0>=LBRACK && LA78_0<=RBRACK)||(LA78_0>=DOT && LA78_0<=STAR)||(LA78_0>=SEMI && LA78_0<=COMMA)||(LA78_0>=RPAREN && LA78_0<=DEC)||LA78_0==111 ) { alt78=2; } else { NoViableAltException nvae = new NoViableAltException("772:44: ( arrayInitializer )?", 78, 0, input); throw nvae; } switch (alt78) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:772:45: arrayInitializer { following.push(FOLLOW_arrayInitializer_in_newExpression3228); arrayInitializer(); following.pop(); } break; } } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2704,
2300,
1435,
15069,
5650,
7909,
503,
95,
698,
95,
28111,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
6669,
21,
30,
4033,
30,
2668,
2704,
1404,
388,
12,
48,
15111,
3175,
682,
54,
15111,
12,
1106,
1768,
9945,
96,
2704,
1076,
31419,
12,
1126,
14729,
9945,
3719,
28111,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
6669,
21,
30,
4033,
2497,
2704,
1404,
388,
12,
48,
15111,
3175,
682,
54,
15111,
12,
1106,
1768,
9945,
96,
2704,
1076,
31419,
12,
1126,
14729,
13,
8535,
95,
1916,
12,
2630,
16,
22062,
16,
29890,
67,
22062,
67,
267,
67,
2704,
2300,
23,
28406,
1769,
14641,
310,
18,
6206,
12,
29890,
67,
723,
67,
267,
67,
2704,
2300,
23,
28686,
1769,
723,
5621,
14641,
310,
18,
5120,
5621,
28111,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
6669,
22,
30,
4033,
30,
12,
48,
15111,
3175,
682,
54,
15111,
12,
1106,
1768,
9945,
96,
2704,
1076,
31419,
12,
1126,
14729,
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,
1071,
6459,
2704,
2300,
1435,
15069,
5650,
7909,
503,
95,
698,
95,
28111,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
6669,
21,
30,
4033,
30,
2668,
2704,
1404,
388,
12,
48,
15111,
3175,
682,
54,
15111,
12,
1106,
1768,
9945,
96,
2704,
1076,
31419,
12,
1126,
14729,
9945,
3719,
28111,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
6669,
21,
2
] |
||
System.out.println("? Displays this help");
|
System.out.println("-? Displays this help");
|
public static void printUsage() { System.out.println("Mule Configuration Grapher"); System.out.println("Generates graphs for Mule configuration files"); System.out.println("-----------------------------------------------"); System.out.println("-files A comma-seperated list of Mule configuration files (required)"); System.out.println("-outputdir The directory to write the generated graphs to. Defaults to the current directory (optional)"); System.out.println("-exec The executable file used for Graph generation. Defaults to ./win32/dot.exe (optional)"); System.out.println("-caption Default caption for the generated graphs. Defaults to the 'id' attribute in the config file (optional)"); System.out.println("? Displays this help"); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/555fcaddcb37461c5341868e54975e16ccd0ade1/MuleGrapher.java/buggy/tools/config-graph/src/java/org/mule/tools/config/graph/MuleGrapher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1172,
5357,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
49,
725,
4659,
5601,
264,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
6653,
225,
19422,
364,
490,
725,
1664,
1390,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
2443,
18753,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
2354,
1377,
432,
8716,
17,
307,
457,
690,
666,
434,
490,
725,
1664,
1390,
261,
4718,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
2844,
1214,
225,
1021,
1867,
358,
1045,
326,
4374,
19422,
358,
18,
14159,
358,
326,
783,
1867,
261,
10444,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
4177,
4202,
1021,
9070,
585,
1399,
364,
5601,
9377,
18,
14159,
358,
263,
19,
8082,
1578,
19,
9811,
18,
14880,
261,
10444,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
15386,
565,
2989,
11006,
364,
326,
4374,
19422,
18,
14159,
358,
326,
296,
350,
11,
1566,
316,
326,
642,
585,
261,
10444,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
35,
1850,
9311,
87,
333,
2809,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1172,
5357,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
49,
725,
4659,
5601,
264,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
6653,
225,
19422,
364,
490,
725,
1664,
1390,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
2443,
18753,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
2354,
1377,
432,
8716,
17,
307,
457,
690,
666,
434,
490,
725,
1664,
1390,
261,
4718,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
2844,
1214,
225,
1021,
1867,
358,
1045,
326,
4374,
19422,
358,
18,
14159,
358,
326,
783,
1867,
261,
10444,
2225,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
17,
4177,
4202,
1021,
9070,
585,
1399,
364,
5601,
9377,
2
] |
protected State group (State parent,StartTagInfo tag) { return new GroupState(isGlobal(parent)); }
|
protected State group (State parent,StartTagInfo tag) { return new GroupState(); }
|
protected State group (State parent,StartTagInfo tag) { return new GroupState(isGlobal(parent)); }
|
45720 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45720/ed4761f4fba59cdcf03541932a6539dd4b71f817/XMLSchemaReader.java/clean/msv/src/com/sun/msv/reader/xmlschema/XMLSchemaReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
3287,
1041,
9506,
202,
12,
1119,
982,
16,
30512,
966,
1047,
13,
202,
95,
327,
394,
3756,
1119,
12,
291,
5160,
12,
2938,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
3287,
1041,
9506,
202,
12,
1119,
982,
16,
30512,
966,
1047,
13,
202,
95,
327,
394,
3756,
1119,
12,
291,
5160,
12,
2938,
10019,
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
] |
File file = new File( PLUGIN_PATH + getClassFolder( ) + INPUT_FOLDER + fileName );
|
File file = new File( getClassFolder( ) + INPUT_FOLDER + fileName );
|
public void testOpendesign3( ) throws Exception { openDesign( fileName ); File file = new File( PLUGIN_PATH + getClassFolder( ) + INPUT_FOLDER + fileName ); InputStream is = new FileInputStream( file ); assertTrue( is != null ); String s3 = "file:///" + PLUGIN_PATH + getClassFolder( ) + INPUT_FOLDER + fileName; //$NON-NLS-1$ openDesign( s3 , is ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/be89bbe9dc15ff0ab4dc1c872159ed1fafbdcb6f/OpenDesignTest.java/clean/testsuites/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/OpenDesignTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
51,
1302,
281,
724,
23,
12,
262,
1216,
1185,
225,
202,
95,
202,
202,
3190,
15478,
12,
3968,
11272,
202,
202,
812,
585,
273,
394,
1387,
12,
22704,
67,
4211,
397,
2900,
3899,
12,
262,
397,
12943,
67,
17357,
397,
3968,
11272,
9506,
202,
4348,
353,
273,
394,
11907,
12,
585,
11272,
202,
202,
11231,
5510,
12,
353,
480,
446,
11272,
202,
202,
780,
272,
23,
273,
315,
768,
2207,
4898,
397,
22704,
67,
4211,
397,
2900,
3899,
12,
262,
397,
12943,
67,
17357,
397,
3968,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3190,
15478,
12,
272,
23,
269,
353,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
51,
1302,
281,
724,
23,
12,
262,
1216,
1185,
225,
202,
95,
202,
202,
3190,
15478,
12,
3968,
11272,
202,
202,
812,
585,
273,
394,
1387,
12,
22704,
67,
4211,
397,
2900,
3899,
12,
262,
397,
12943,
67,
17357,
397,
3968,
11272,
9506,
202,
4348,
353,
273,
394,
11907,
12,
585,
11272,
202,
202,
11231,
5510,
12,
353,
480,
446,
11272,
202,
202,
780,
272,
23,
273,
315,
768,
2207,
4898,
397,
22704,
67,
4211,
397,
2900,
3899,
12,
262,
397,
12943,
67,
17357,
397,
3968,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
3190,
15478,
12,
272,
23,
269,
353,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.err.println("[NewsContentDefinition.getDynamicList() Exception while trying to execute the statement:]" + e.getMessage());
|
throw new CmsException(e.getMessage());
|
public static Vector getDynamicList(Integer channelId, Integer flag, String str) { Vector list = new Vector(); java.sql.Date day = null; Connection con = null; PreparedStatement statement = null; ResultSet res = null; int month = 1; //System.err.println("[NewsContentDefinition.getDynamicList()] Start - channelId:" +""+channelId.intValue() + "flag: " + ""+flag.intValue() +"str: " + str); if(flag.equals(C_FLAG_MONTH)) { try{ month = Integer.parseInt(str); }catch(NumberFormatException e) { System.err.println("[NewsContentDefinition.getDynamicList()] Exception while trying to parse the month: "+e.getMessage()); } if(month <1 || month >12) month = 1; }else { // "day" if( (str == null) || (str.equals("")) || (str.equals(" "))) { try{ day = string2sqlDate("01.01.2000"); // this default value seems to be needed by A_Backoffice }catch(ParseException e) { System.err.println("[NewsContentDefinition.getDynamicList()] Exception while trying to parse the date: "+e.getMessage()); } }else { try{; day = string2sqlDate(str); // now a real date is parsed }catch(ParseException e) { System.err.println("[NewsContentDefinition.getDynamicList()] Exception while trying to parse the date: "+e.getMessage()); } } } try{ con = DriverManager.getConnection(c_pool); if(flag.equals(C_FLAG_MONTH)){ statement = con.prepareStatement(C_SELECT_MONTH); statement.setInt(1, month); statement.setInt(2, channelId.intValue()); }else{ // "day" statement = con.prepareStatement(C_SELECT_DAY); statement.setDate(1, day); statement.setInt(2, channelId.intValue()); } res = statement.executeQuery(); while(res.next()){ // read the item from the resultset // insert Element into list list.addElement(new NewsContentDefinition(res.getInt(1), res.getString(2), // Headline res.getString(3), // Descr. res.getString(4), // Text res.getString(5), // Author res.getString(6), // link res.getString(7), // linkText res.getDate(8), // Date res.getInt(9), // Lockstate res.getInt(10), // Channel res.getString(11),// a_info res.getString(12),// a_info res.getString(13) // a_info )); } }catch(Exception e) { System.err.println("[NewsContentDefinition.getDynamicList() Exception while trying to execute the statement:]" + e.getMessage()); }finally{ try{ res.close(); }catch (Exception e) { // ignore the exception } try{ statement.close(); }catch (Exception e) { // ignore the exception } try{ con.close(); }catch (Exception e) { // ignore the exception } } return list; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/a80dad293083ec36179f99a238625d3037b6083c/NewsContentDefinition.java/clean/modules/news/src/com/opencms/modules/homepage/news/NewsContentDefinition.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
5589,
2343,
3920,
682,
12,
4522,
27709,
16,
2144,
2982,
16,
514,
609,
13,
288,
202,
202,
5018,
666,
273,
394,
5589,
5621,
202,
202,
6290,
18,
4669,
18,
1626,
2548,
273,
446,
31,
565,
4050,
356,
273,
446,
31,
202,
202,
29325,
3021,
273,
446,
31,
202,
202,
13198,
400,
273,
446,
31,
202,
202,
474,
3138,
273,
404,
31,
202,
202,
759,
3163,
18,
370,
18,
8222,
2932,
63,
17948,
1350,
1852,
18,
588,
9791,
682,
1435,
65,
3603,
300,
27709,
2773,
397,
3660,
15,
4327,
548,
18,
474,
620,
1435,
397,
315,
6420,
30,
315,
397,
1408,
15,
6420,
18,
474,
620,
1435,
397,
6,
701,
30,
315,
397,
609,
1769,
202,
202,
430,
12,
6420,
18,
14963,
12,
39,
67,
9651,
67,
13942,
3719,
288,
1082,
202,
698,
95,
9506,
202,
7496,
273,
2144,
18,
2670,
1702,
12,
701,
1769,
1082,
202,
97,
14683,
12,
1854,
9291,
425,
13,
288,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
63,
17948,
1350,
1852,
18,
588,
9791,
682,
1435,
65,
1185,
1323,
8374,
358,
1109,
326,
3138,
30,
13773,
73,
18,
24906,
10663,
1082,
202,
97,
1082,
202,
430,
12,
7496,
411,
21,
747,
3138,
405,
2138,
13,
3138,
273,
404,
31,
202,
202,
97,
12107,
288,
1082,
202,
759,
315,
2881,
6,
1082,
202,
430,
12,
261,
701,
422,
446,
13,
747,
261,
701,
18,
14963,
2932,
6,
3719,
747,
261,
701,
18,
14963,
2932,
315,
20349,
288,
9506,
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,
760,
5589,
2343,
3920,
682,
12,
4522,
27709,
16,
2144,
2982,
16,
514,
609,
13,
288,
202,
202,
5018,
666,
273,
394,
5589,
5621,
202,
202,
6290,
18,
4669,
18,
1626,
2548,
273,
446,
31,
565,
4050,
356,
273,
446,
31,
202,
202,
29325,
3021,
273,
446,
31,
202,
202,
13198,
400,
273,
446,
31,
202,
202,
474,
3138,
273,
404,
31,
202,
202,
759,
3163,
18,
370,
18,
8222,
2932,
63,
17948,
1350,
1852,
18,
588,
9791,
682,
1435,
65,
3603,
300,
27709,
2773,
397,
3660,
15,
4327,
548,
18,
474,
620,
1435,
397,
315,
6420,
30,
315,
397,
1408,
15,
6420,
18,
474,
620,
1435,
397,
6,
701,
30,
315,
397,
609,
1769,
202,
2
] |
sig.append(">");
|
sig.append(">");
|
public String getTemplateSignature() { StringBuffer sig = new StringBuffer(getElementName()); if(getNumberOfTemplateParameters() > 0){ sig.append("<"); String[] paramTypes = getTemplateParameterTypes(); int i = 0; sig.append(paramTypes[i++]); while (i < paramTypes.length){ sig.append(", "); sig.append(paramTypes[i++]); } sig.append(">"); } else{ sig.append("<>"); } return sig.toString(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6caa13a5b115851feae4e30a71898b7083f7e02f/StructureTemplate.java/clean/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/StructureTemplate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10646,
5374,
1435,
288,
202,
202,
780,
1892,
3553,
273,
394,
6674,
12,
21336,
461,
10663,
202,
202,
430,
12,
588,
9226,
2283,
2402,
1435,
405,
374,
15329,
1082,
202,
7340,
18,
6923,
2932,
32,
8863,
1082,
202,
780,
8526,
21265,
273,
10646,
1662,
2016,
5621,
1082,
202,
474,
277,
273,
374,
31,
1082,
202,
7340,
18,
6923,
12,
891,
2016,
63,
77,
9904,
19226,
1082,
202,
17523,
261,
77,
411,
21265,
18,
2469,
15329,
9506,
202,
7340,
18,
6923,
2932,
16,
315,
1769,
9506,
202,
7340,
18,
6923,
12,
891,
2016,
63,
77,
9904,
19226,
1082,
202,
97,
1082,
202,
7340,
18,
6923,
2932,
2984,
1769,
202,
202,
97,
202,
202,
12107,
95,
1082,
202,
7340,
18,
6923,
2932,
32,
2984,
1769,
202,
202,
97,
202,
202,
2463,
3553,
18,
10492,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10646,
5374,
1435,
288,
202,
202,
780,
1892,
3553,
273,
394,
6674,
12,
21336,
461,
10663,
202,
202,
430,
12,
588,
9226,
2283,
2402,
1435,
405,
374,
15329,
1082,
202,
7340,
18,
6923,
2932,
32,
8863,
1082,
202,
780,
8526,
21265,
273,
10646,
1662,
2016,
5621,
1082,
202,
474,
277,
273,
374,
31,
1082,
202,
7340,
18,
6923,
12,
891,
2016,
63,
77,
9904,
19226,
1082,
202,
17523,
261,
77,
411,
21265,
18,
2469,
15329,
9506,
202,
7340,
18,
6923,
2932,
16,
315,
1769,
9506,
202,
7340,
18,
6923,
12,
891,
2016,
63,
77,
9904,
19226,
1082,
202,
97,
1082,
202,
7340,
18,
6923,
2932,
2984,
1769,
202,
202,
97,
202,
202,
12107,
95,
1082,
2
] |
getTabbedPane().setDisabledIconAt(myIndex, value.getIcon());
|
getTabbedPane().setDisabledIconAt(myIndex, icon);
|
protected void setValueImpl(final RadComponent component, final IconDescriptor value) throws Exception { LwTabbedPane.Constraints constraints = getConstraintsForComponent(component); if (myDisabledIcon) { constraints.myDisabledIcon = value; getTabbedPane().setDisabledIconAt(myIndex, value.getIcon()); } else { constraints.myIcon = value; getTabbedPane().setIconAt(myIndex, value.getIcon()); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e744054a2108fcd1d129917e6cdca01d6f803782/RadTabbedPane.java/buggy/ui-designer/impl/com/intellij/uiDesigner/radComponents/RadTabbedPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5524,
2828,
12,
6385,
16378,
1841,
1794,
16,
727,
16011,
3187,
460,
13,
1216,
1185,
288,
1377,
511,
91,
5661,
2992,
8485,
18,
4878,
6237,
273,
336,
4878,
1290,
1841,
12,
4652,
1769,
1377,
309,
261,
4811,
8853,
5554,
13,
288,
3639,
6237,
18,
4811,
8853,
5554,
273,
460,
31,
3639,
3181,
378,
2992,
8485,
7675,
542,
8853,
5554,
861,
12,
4811,
1016,
16,
4126,
1769,
1377,
289,
1377,
469,
1377,
288,
3639,
6237,
18,
4811,
5554,
273,
460,
31,
3639,
3181,
378,
2992,
8485,
7675,
542,
5554,
861,
12,
4811,
1016,
16,
460,
18,
588,
5554,
10663,
1377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5524,
2828,
12,
6385,
16378,
1841,
1794,
16,
727,
16011,
3187,
460,
13,
1216,
1185,
288,
1377,
511,
91,
5661,
2992,
8485,
18,
4878,
6237,
273,
336,
4878,
1290,
1841,
12,
4652,
1769,
1377,
309,
261,
4811,
8853,
5554,
13,
288,
3639,
6237,
18,
4811,
8853,
5554,
273,
460,
31,
3639,
3181,
378,
2992,
8485,
7675,
542,
8853,
5554,
861,
12,
4811,
1016,
16,
4126,
1769,
1377,
289,
1377,
469,
1377,
288,
3639,
6237,
18,
4811,
5554,
273,
460,
31,
3639,
3181,
378,
2992,
8485,
7675,
542,
5554,
861,
12,
4811,
1016,
16,
460,
18,
588,
5554,
10663,
1377,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void report() { if (DEBUG) { System.out.println("read fields:" ); for(XField f : readFields) System.out.println(" " + f); if (!ejb3Fields.isEmpty()) { System.out.println("ejb3 fields:" ); for(XField f : ejb3Fields) System.out.println(" " + f); } System.out.println("written fields:" ); for (XField f : writtenFields) System.out.println(" " + f); System.out.println("written nonnull fields:" ); for (XField f : writtenNonNullFields) System.out.println(" " + f); System.out.println("assumed nonnull fields:" ); for (XField f : assumedNonNull.keySet()) System.out.println(" " + f); } // Don't report anything about ejb3Fields declaredFields.removeAll(ejb3Fields); TreeSet<XField> notInitializedInConstructors = new TreeSet<XField>(declaredFields); notInitializedInConstructors.retainAll(readFields); notInitializedInConstructors.retainAll(writtenFields); notInitializedInConstructors.retainAll(assumedNonNull.keySet()); notInitializedInConstructors.removeAll(writtenInConstructorFields); TreeSet<XField> readOnlyFields = new TreeSet<XField>(declaredFields); readOnlyFields.removeAll(writtenFields); readOnlyFields.retainAll(readFields); TreeSet<XField> nullOnlyFields = new TreeSet<XField>(declaredFields); nullOnlyFields.removeAll(writtenNonNullFields); nullOnlyFields.retainAll(readFields); Set<XField> writeOnlyFields = declaredFields; writeOnlyFields.removeAll(readFields); for (XField f : notInitializedInConstructors) { String fieldName = f.getName(); String className = f.getClassName(); String fieldSignature = f.getSignature(); if (f.isResolved() && !fieldsOfNativeClassed.contains(f) && (fieldSignature.charAt(0) == 'L' || fieldSignature.charAt(0) == '[') ) { int priority = LOW_PRIORITY; // if (assumedNonNull.containsKey(f)) priority--; bugReporter.reportBug(new BugInstance(this, "UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", priority) .addClass(className) .addField(f)); } } for (XField f : readOnlyFields) { String fieldName = f.getName(); String className = f.getClassName(); String fieldSignature = f.getSignature(); if (f.isResolved() && !fieldsOfNativeClassed.contains(f)) { int priority = NORMAL_PRIORITY; if (!(fieldSignature.charAt(0) == 'L' || fieldSignature.charAt(0) == '[')) priority++; bugReporter.reportBug(new BugInstance(this, "UWF_UNWRITTEN_FIELD", priority) .addClass(className) .addField(f)); } } for (XField f : nullOnlyFields) { String fieldName = f.getName(); String className = f.getClassName(); String fieldSignature = f.getSignature(); if (DEBUG) { System.out.println("Null only: " + f); System.out.println(" : " + assumedNonNull.containsKey(f)); System.out.println(" : " + fieldsOfSerializableOrNativeClassed.contains(f)); System.out.println(" : " + f.isResolved()); } if (!f.isResolved()) continue; if (fieldsOfNativeClassed.contains(f)) continue; if (DEBUG) { System.out.println("Ready to report"); } int priority = NORMAL_PRIORITY; if (assumedNonNull.containsKey(f)) { priority = HIGH_PRIORITY; for (ProgramPoint p : assumedNonNull.get(f)) bugReporter.reportBug(new BugInstance(this, "NP_UNWRITTEN_FIELD", NORMAL_PRIORITY) .addClassAndMethod(p.method) .addField(f) .addSourceLine(p.sourceLine) ); } else { if (f.isStatic()) priority++; if (finalFields.contains(f)) priority++; if (fieldsOfSerializableOrNativeClassed.contains(f)) priority++; } if (!readOnlyFields.contains(f)) bugReporter.reportBug(new BugInstance(this, "UWF_NULL_FIELD", priority) .addClass(className) .addField(f)); } for (XField f : writeOnlyFields) { String fieldName = f.getName(); String className = f.getClassName(); int lastDollar = Math.max(className.lastIndexOf('$'), className.lastIndexOf('+')); boolean isAnonymousInnerClass = (lastDollar > 0) && (lastDollar < className.length() - 1) && Character.isDigit(className.charAt(className.length() - 1)); if (DEBUG) { System.out.println("Checking write only field " + className + "." + fieldName + "\t" + constantFields.contains(f) + "\t" + f.isStatic() ); } if (!f.isResolved()) continue; if (dontComplainAbout.matcher(fieldName).find()) continue; if (fieldName.startsWith("this$") || fieldName.startsWith("this+")) { if (!innerClassCannotBeStatic.contains(className)) { boolean easyChange = !needsOuterObjectInConstructor.contains(className); if (easyChange || !isAnonymousInnerClass) { // easyChange isAnonymousInnerClass // true false medium, SIC // true true low, SIC_ANON // false true not reported // false false low, SIC_THIS int priority = LOW_PRIORITY; if (easyChange && !isAnonymousInnerClass) priority = NORMAL_PRIORITY; String bug = "SIC_INNER_SHOULD_BE_STATIC"; if (isAnonymousInnerClass) bug = "SIC_INNER_SHOULD_BE_STATIC_ANON"; else if (!easyChange) bug = "SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS"; bugReporter.reportBug(new BugInstance(this, bug, priority) .addClass(className)); } } } else { if (constantFields.contains(f)) { if (!f.isStatic()) bugReporter.reportBug(new BugInstance(this, "SS_SHOULD_BE_STATIC", NORMAL_PRIORITY) .addClass(className) .addField(f)); } else if (fieldsOfSerializableOrNativeClassed.contains(f)) { // ignore it } else if (!writtenFields.contains(f) && f.isResolved()) bugReporter.reportBug(new BugInstance(this, "UUF_UNUSED_FIELD", NORMAL_PRIORITY) .addClass(className) .addField(f)); else if (!f.isStatic() || !finalFields.contains(f)) bugReporter.reportBug(new BugInstance(this, "URF_UNREAD_FIELD", NORMAL_PRIORITY) .addClass(className) .addField(f)); } } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/703f66a6bf58f43f186d4b0fac384b5e352dddc6/UnreadFields.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/UnreadFields.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
2605,
1435,
288,
202,
202,
430,
261,
9394,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
896,
1466,
2773,
11272,
1082,
202,
1884,
12,
60,
974,
284,
294,
855,
2314,
13,
4697,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
1082,
202,
430,
16051,
73,
10649,
23,
2314,
18,
291,
1921,
10756,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
73,
10649,
23,
1466,
2773,
11272,
9506,
202,
1884,
12,
60,
974,
284,
294,
18024,
23,
2314,
13,
4405,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
1082,
202,
97,
6862,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
9748,
1466,
2773,
11272,
1082,
202,
1884,
261,
60,
974,
284,
294,
5941,
2314,
13,
4697,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
9748,
1661,
2011,
1466,
2773,
11272,
1082,
202,
1884,
261,
60,
974,
284,
294,
5941,
8921,
2314,
13,
4697,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
6862,
202,
3163,
18,
659,
18,
8222,
2932,
428,
379,
329,
1661,
2011,
1466,
2773,
11272,
1082,
202,
1884,
261,
60,
974,
284,
294,
12034,
8921,
18,
856,
694,
10756,
4697,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
202,
202,
97,
202,
202,
759,
7615,
1404,
2605,
6967,
2973,
18024,
23,
2314,
202,
202,
16571,
2314,
18,
4479,
1595,
12,
73,
10649,
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,
1850,
1071,
918,
2605,
1435,
288,
202,
202,
430,
261,
9394,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
896,
1466,
2773,
11272,
1082,
202,
1884,
12,
60,
974,
284,
294,
855,
2314,
13,
4697,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
1082,
202,
430,
16051,
73,
10649,
23,
2314,
18,
291,
1921,
10756,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
73,
10649,
23,
1466,
2773,
11272,
9506,
202,
1884,
12,
60,
974,
284,
294,
18024,
23,
2314,
13,
4405,
202,
3163,
18,
659,
18,
8222,
2932,
225,
315,
397,
284,
1769,
1082,
202,
97,
6862,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
9748,
1466,
2773,
11272,
1082,
202,
2
] |
||
return "1.11";
|
return "1.12";
|
public final static String getMesquiteVersion() { return "1.11"; }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/MesquiteModule.java/clean/branches/Mesquite1.x/Mesquite Project/Source/mesquite/lib/MesquiteModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
514,
2108,
281,
372,
1137,
1444,
1435,
288,
202,
202,
2463,
315,
21,
18,
2499,
14432,
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,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
760,
514,
2108,
281,
372,
1137,
1444,
1435,
288,
202,
202,
2463,
315,
21,
18,
2499,
14432,
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,
-100
] |
return addSlot(id, index, getterSlot);
|
return addSlot(id, index, null);
|
private Slot getSlotToSet(String id, int index, boolean getterSlot) { // Get stable reference Slot[] array = slots; if (array == null) { return addSlot(id, index, getterSlot); } int start = (index & 0x7fffffff) % array.length; boolean sawRemoved = false; int i = start; do { Slot slot = array[i]; if (slot == null) { return addSlot(id, index, getterSlot); } if (slot == REMOVED) { sawRemoved = true; } else if (slot.intKey == index && (slot.stringKey == id || (id != null && id.equals(slot.stringKey)))) { return slot; } if (++i == array.length) i = 0; } while (i != start); if (Context.check && !sawRemoved) Context.codeBug(); // Table could be full, but with some REMOVED elements. // Call to addSlot will use a slot currently taken by // a REMOVED. return addSlot(id, index, getterSlot); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/0babafcaa068950fba93f7e17c6658ddfd521456/ScriptableObject.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptableObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
23195,
17718,
352,
25208,
12,
780,
612,
16,
509,
770,
16,
1250,
7060,
8764,
13,
288,
3639,
368,
968,
14114,
2114,
3639,
23195,
8526,
526,
273,
12169,
31,
3639,
309,
261,
1126,
422,
446,
13,
288,
5411,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
3639,
289,
3639,
509,
787,
273,
261,
1615,
473,
374,
92,
27,
18217,
74,
13,
738,
526,
18,
2469,
31,
3639,
1250,
19821,
10026,
273,
629,
31,
3639,
509,
277,
273,
787,
31,
3639,
741,
288,
5411,
23195,
4694,
273,
526,
63,
77,
15533,
5411,
309,
261,
14194,
422,
446,
13,
288,
7734,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
5411,
289,
5411,
309,
261,
14194,
422,
23769,
12135,
13,
288,
7734,
19821,
10026,
273,
638,
31,
5411,
289,
469,
309,
261,
14194,
18,
474,
653,
422,
770,
597,
13491,
261,
14194,
18,
1080,
653,
422,
612,
747,
7682,
261,
350,
480,
446,
597,
612,
18,
14963,
12,
14194,
18,
1080,
653,
3719,
3719,
5411,
288,
7734,
327,
4694,
31,
5411,
289,
5411,
309,
261,
9904,
77,
422,
526,
18,
2469,
13,
7734,
277,
273,
374,
31,
3639,
289,
1323,
261,
77,
480,
787,
1769,
3639,
309,
261,
1042,
18,
1893,
597,
401,
87,
2219,
10026,
13,
1772,
18,
710,
19865,
5621,
3639,
368,
3555,
3377,
506,
1983,
16,
1496,
598,
2690,
23769,
12135,
2186,
18,
540,
368,
3049,
358,
527,
8764,
903,
999,
279,
4694,
4551,
9830,
635,
540,
368,
279,
23769,
12135,
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,
3238,
23195,
17718,
352,
25208,
12,
780,
612,
16,
509,
770,
16,
1250,
7060,
8764,
13,
288,
3639,
368,
968,
14114,
2114,
3639,
23195,
8526,
526,
273,
12169,
31,
3639,
309,
261,
1126,
422,
446,
13,
288,
5411,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
3639,
289,
3639,
509,
787,
273,
261,
1615,
473,
374,
92,
27,
18217,
74,
13,
738,
526,
18,
2469,
31,
3639,
1250,
19821,
10026,
273,
629,
31,
3639,
509,
277,
273,
787,
31,
3639,
741,
288,
5411,
23195,
4694,
273,
526,
63,
77,
15533,
5411,
309,
261,
14194,
422,
446,
13,
288,
7734,
327,
527,
8764,
12,
350,
16,
770,
16,
446,
1769,
5411,
289,
5411,
309,
261,
14194,
422,
2
] |
Messages.getString("connectionFailed"),
|
Messages.getString("error"),
|
public void registrationStateChanged(RegistrationStateChangeEvent evt) { String protocolName = evt.getProvider().getProtocolName(); if(evt.getNewState().equals(RegistrationState.REGISTERED)){ Map supportedOpSets = evt.getProvider().getSupportedOperationSets(); this.mainFrame.addProtocolProvider(evt.getProvider()); this.mainFrame.addProtocolSupportedOperationSets (evt.getProvider(), supportedOpSets); } else if(evt.getNewState() .equals(RegistrationState.AUTHENTICATION_FAILED)){ StatusPanel statusPanel = this.mainFrame.getStatusPanel(); statusPanel.stopConnecting(evt.getProvider().getProtocolName()); statusPanel.setSelectedStatus( evt.getProvider().getProtocolName(), Constants.OFFLINE_STATUS); JOptionPane.showMessageDialog(null, Messages.getString("authenticationFailed"), Messages.getString("authenticationFailed"), JOptionPane.ERROR_MESSAGE); ((LoginWindow)this.loginWindows.get(protocolName)).showWindow(); } else if(evt.getNewState() .equals(RegistrationState.CONNECTION_FAILED)){ this.mainFrame.getStatusPanel() .stopConnecting(evt.getProvider().getProtocolName()); this.mainFrame.getStatusPanel() .setSelectedStatus( evt.getProvider().getProtocolName(), Constants.OFFLINE_STATUS); JOptionPane.showMessageDialog(null, Messages.getString("connectionFailedMessage"), Messages.getString("connectionFailed"), JOptionPane.ERROR_MESSAGE); } else if(evt.getNewState() .equals(RegistrationState.EXPIRED)){ JOptionPane.showMessageDialog(null, Messages.getString("connectionExpiredMessage", protocolName), Messages.getString("warning"), JOptionPane.WARNING_MESSAGE); } else if(evt.getNewState().equals(RegistrationState.UNREGISTERED)){ JOptionPane.showMessageDialog(null, Messages.getString("unregisteredMessage", protocolName), Messages.getString("warning"), JOptionPane.WARNING_MESSAGE); } }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/a02a60757b7531899286dcfd4e606080c2572768/LoginManager.java/clean/src/net/java/sip/communicator/impl/gui/main/login/LoginManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7914,
1119,
5033,
12,
7843,
1119,
20930,
6324,
13,
288,
377,
202,
780,
1771,
461,
273,
6324,
18,
588,
2249,
7675,
588,
5752,
461,
5621,
377,
202,
3639,
309,
12,
73,
11734,
18,
588,
1908,
1119,
7675,
14963,
12,
7843,
1119,
18,
27511,
2056,
3719,
95,
540,
202,
5411,
1635,
3260,
3817,
2785,
1171,
273,
6324,
18,
588,
2249,
7675,
588,
7223,
2988,
2785,
5621,
13491,
333,
18,
5254,
3219,
18,
1289,
5752,
2249,
12,
73,
11734,
18,
588,
2249,
10663,
13491,
333,
18,
5254,
3219,
18,
1289,
5752,
7223,
2988,
2785,
7734,
261,
73,
11734,
18,
588,
2249,
9334,
3260,
3817,
2785,
1769,
3639,
289,
7734,
469,
309,
12,
73,
11734,
18,
588,
1908,
1119,
1435,
10792,
263,
14963,
12,
7843,
1119,
18,
25114,
2689,
67,
11965,
3719,
95,
13491,
2685,
5537,
1267,
5537,
273,
333,
18,
5254,
3219,
18,
588,
1482,
5537,
5621,
13491,
1267,
5537,
18,
5681,
30049,
12,
73,
11734,
18,
588,
2249,
7675,
588,
5752,
461,
10663,
13491,
1267,
5537,
18,
542,
7416,
1482,
12,
6324,
18,
588,
2249,
7675,
588,
5752,
461,
9334,
4766,
565,
5245,
18,
8797,
5997,
67,
8608,
1769,
13491,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
10792,
4838,
18,
588,
780,
2932,
12293,
2925,
6,
3631,
5397,
4838,
18,
588,
780,
2932,
12293,
2925,
6,
3631,
10792,
804,
1895,
8485,
18,
3589,
67,
8723,
1769,
4766,
282,
14015,
5358,
3829,
13,
2211,
18,
5819,
10399,
18,
588,
12,
8373,
461,
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,
377,
1071,
918,
7914,
1119,
5033,
12,
7843,
1119,
20930,
6324,
13,
288,
377,
202,
780,
1771,
461,
273,
6324,
18,
588,
2249,
7675,
588,
5752,
461,
5621,
377,
202,
3639,
309,
12,
73,
11734,
18,
588,
1908,
1119,
7675,
14963,
12,
7843,
1119,
18,
27511,
2056,
3719,
95,
540,
202,
5411,
1635,
3260,
3817,
2785,
1171,
273,
6324,
18,
588,
2249,
7675,
588,
7223,
2988,
2785,
5621,
13491,
333,
18,
5254,
3219,
18,
1289,
5752,
2249,
12,
73,
11734,
18,
588,
2249,
10663,
13491,
333,
18,
5254,
3219,
18,
1289,
5752,
7223,
2988,
2785,
7734,
261,
73,
11734,
18,
588,
2249,
9334,
3260,
3817,
2785,
1769,
3639,
289,
7734,
469,
309,
12,
73,
11734,
18,
588,
1908,
1119,
2
] |
getWidgetFactory().createCLabel(topForm, Messages.getString("EORelationship.propagatesPrimaryKey"), SWT.NONE);
|
getWidgetFactory().createCLabel(topForm, Messages.getString("EORelationship." + EORelationship.PROPAGATES_PRIMARY_KEY), SWT.NONE);
|
public void createControls(Composite _parent, TabbedPropertySheetPage _tabbedPropertySheetPage) { super.createControls(_parent, _tabbedPropertySheetPage); Composite form = getWidgetFactory().createFlatFormComposite(_parent); FormLayout formLayout = new FormLayout(); form.setLayout(formLayout); Composite topForm = getWidgetFactory().createPlainComposite(form, SWT.NONE); FormData topFormData = new FormData(); topFormData.top = new FormAttachment(0, 5); topFormData.left = new FormAttachment(0, 5); topFormData.right = new FormAttachment(100, -5); topForm.setLayoutData(topFormData); GridLayout topFormLayout = new GridLayout(); topFormLayout.numColumns = 2; topForm.setLayout(topFormLayout); getWidgetFactory().createCLabel(topForm, Messages.getString("EORelationship.numberOfToManyFaultsToBatchFetch"), SWT.NONE); //$NON-NLS-1$ myNumberOfToManyFaultsToBatchFetchText = new Text(topForm, SWT.BORDER); GridData nameFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL); myNumberOfToManyFaultsToBatchFetchText.setLayoutData(nameFieldLayoutData); getWidgetFactory().createCLabel(topForm, Messages.getString("EORelationship.ownsDestination"), SWT.NONE); //$NON-NLS-1$ myOwnsDestinationButton = new Button(topForm, SWT.CHECK); getWidgetFactory().createCLabel(topForm, Messages.getString("EORelationship.propagatesPrimaryKey"), SWT.NONE); //$NON-NLS-1$ myPropagatesPrimaryKeyButton = new Button(topForm, SWT.CHECK); }
|
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/85e8c5c5e6069e4a772ec9eb7716a51dc31c2178/EORelationshipAdvancedEditorSection.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/editors/relationship/EORelationshipAdvancedEditorSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
16795,
12,
9400,
389,
2938,
16,
9483,
2992,
1396,
8229,
1964,
389,
7032,
2992,
1396,
8229,
1964,
13,
288,
565,
2240,
18,
2640,
16795,
24899,
2938,
16,
389,
7032,
2992,
1396,
8229,
1964,
1769,
565,
14728,
646,
273,
23434,
1733,
7675,
2640,
16384,
1204,
9400,
24899,
2938,
1769,
565,
2748,
3744,
646,
3744,
273,
394,
2748,
3744,
5621,
565,
646,
18,
542,
3744,
12,
687,
3744,
1769,
565,
14728,
1760,
1204,
273,
23434,
1733,
7675,
2640,
13360,
9400,
12,
687,
16,
348,
8588,
18,
9826,
1769,
565,
2748,
751,
1760,
30079,
273,
394,
2748,
751,
5621,
565,
1760,
30079,
18,
3669,
273,
394,
2748,
6803,
12,
20,
16,
1381,
1769,
565,
1760,
30079,
18,
4482,
273,
394,
2748,
6803,
12,
20,
16,
1381,
1769,
565,
1760,
30079,
18,
4083,
273,
394,
2748,
6803,
12,
6625,
16,
300,
25,
1769,
565,
1760,
1204,
18,
542,
3744,
751,
12,
3669,
30079,
1769,
565,
7145,
3744,
1760,
1204,
3744,
273,
394,
7145,
3744,
5621,
565,
1760,
1204,
3744,
18,
2107,
3380,
273,
576,
31,
565,
1760,
1204,
18,
542,
3744,
12,
3669,
1204,
3744,
1769,
565,
23434,
1733,
7675,
2640,
39,
2224,
12,
3669,
1204,
16,
4838,
18,
588,
780,
2932,
41,
916,
292,
367,
3261,
18,
2696,
951,
12601,
7083,
11634,
4497,
5005,
6,
3631,
348,
8588,
18,
9826,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
565,
3399,
9226,
12601,
7083,
11634,
4497,
5005,
1528,
273,
394,
3867,
12,
3669,
1204,
16,
348,
8588,
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,
752,
16795,
12,
9400,
389,
2938,
16,
9483,
2992,
1396,
8229,
1964,
389,
7032,
2992,
1396,
8229,
1964,
13,
288,
565,
2240,
18,
2640,
16795,
24899,
2938,
16,
389,
7032,
2992,
1396,
8229,
1964,
1769,
565,
14728,
646,
273,
23434,
1733,
7675,
2640,
16384,
1204,
9400,
24899,
2938,
1769,
565,
2748,
3744,
646,
3744,
273,
394,
2748,
3744,
5621,
565,
646,
18,
542,
3744,
12,
687,
3744,
1769,
565,
14728,
1760,
1204,
273,
23434,
1733,
7675,
2640,
13360,
9400,
12,
687,
16,
348,
8588,
18,
9826,
1769,
565,
2748,
751,
1760,
30079,
273,
394,
2748,
751,
5621,
565,
1760,
30079,
18,
3669,
273,
394,
2748,
6803,
12,
20,
16,
1381,
1769,
565,
1760,
30079,
18,
4482,
2
] |
public void mousePressed(MouseEvent e) { }
|
public void mousePressed(MouseEvent e) { }
|
public void mousePressed(MouseEvent e) { }
|
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/9af6aa1b9c03c2e29c43433056873c642cbf5b2a/SceneFrame.java/clean/JSynthLib/core/SceneFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
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,
540,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
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
] |
try { setLocation((String) evalAttr("location", getLocationExpr(), String.class)); } catch (NullAttributeException ex) { }
|
if ((string = EvalHelper.evalString("location", getLocationExpr(), this, pageContext)) != null) setLocation(string);
|
private void evaluateExpressions() throws JspException { try { setCookie((String) evalAttr("cookie", getCookieExpr(), String.class)); } catch (NullAttributeException ex) { } try { setExpr((String) evalAttr("expr", getExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHeader((String) evalAttr("header", getHeaderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocation((String) evalAttr("location", getLocationExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParameter((String) evalAttr("parameter", getParameterExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELNotMatchTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELNotMatchTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
26793,
12443,
780,
13,
5302,
3843,
2932,
8417,
3113,
24643,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4742,
12443,
780,
13,
5302,
3843,
2932,
8638,
3113,
336,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
10859,
12443,
780,
13,
5302,
3843,
2932,
3374,
3113,
7911,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
21751,
12443,
780,
13,
5302,
3843,
2932,
3562,
3113,
13312,
4742,
9334,
4766,
1850,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6690,
12443,
780,
13,
5302,
3843,
2932,
6775,
3113,
5575,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
7486,
12443,
780,
13,
5302,
3843,
2932,
4468,
3113,
3911,
4742,
9334,
4766,
1850,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
3876,
12443,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
26793,
12443,
780,
13,
5302,
3843,
2932,
8417,
3113,
24643,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
4742,
12443,
780,
13,
5302,
3843,
2932,
8638,
3113,
336,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
10859,
12443,
780,
13,
5302,
3843,
2932,
3374,
3113,
7911,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
21751,
12443,
780,
13,
5302,
3843,
2932,
3562,
3113,
2
] |
String getClassName( InputStream input ) throws IOException { DataInputStream data = new DataInputStream( input );
|
public static String getClassName(InputStream input) throws IOException { DataInputStream data = new DataInputStream(input);
|
String getClassName( InputStream input ) throws IOException { DataInputStream data = new DataInputStream( input ); // verify this is a valid class file. int cookie = data .readInt(); if ( cookie != 0xCAFEBABE ) { return null; } int version = data .readInt(); // read the constant pool. ConstantPool constants = new ConstantPool( data ); Object[] values = constants .values; // read access flags and class index. int accessFlags = data .readUnsignedShort(); int classIndex = data .readUnsignedShort(); Integer stringIndex = (Integer) values[classIndex]; String className = (String) values[stringIndex .intValue()]; return className; }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/ClassNameReader.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/jlink/ClassNameReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
514,
11819,
12,
5037,
810,
262,
1216,
1860,
288,
3639,
29382,
501,
273,
394,
29382,
12,
810,
11272,
3639,
368,
3929,
333,
353,
279,
923,
667,
585,
18,
3639,
509,
3878,
273,
501,
263,
896,
1702,
5621,
3639,
309,
261,
3878,
480,
374,
92,
3587,
8090,
38,
2090,
41,
262,
288,
5411,
327,
446,
31,
3639,
289,
3639,
509,
1177,
273,
501,
263,
896,
1702,
5621,
3639,
368,
855,
326,
5381,
2845,
18,
3639,
10551,
2864,
6810,
273,
394,
10551,
2864,
12,
501,
11272,
3639,
1033,
8526,
924,
273,
6810,
263,
2372,
31,
3639,
368,
855,
2006,
2943,
471,
667,
770,
18,
3639,
509,
2006,
5094,
273,
501,
263,
896,
13290,
4897,
5621,
3639,
509,
667,
1016,
273,
501,
263,
896,
13290,
4897,
5621,
3639,
2144,
533,
1016,
273,
261,
4522,
13,
924,
63,
1106,
1016,
15533,
3639,
514,
2658,
273,
261,
780,
13,
924,
63,
1080,
1016,
263,
474,
620,
1435,
15533,
3639,
327,
2658,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
514,
11819,
12,
5037,
810,
262,
1216,
1860,
288,
3639,
29382,
501,
273,
394,
29382,
12,
810,
11272,
3639,
368,
3929,
333,
353,
279,
923,
667,
585,
18,
3639,
509,
3878,
273,
501,
263,
896,
1702,
5621,
3639,
309,
261,
3878,
480,
374,
92,
3587,
8090,
38,
2090,
41,
262,
288,
5411,
327,
446,
31,
3639,
289,
3639,
509,
1177,
273,
501,
263,
896,
1702,
5621,
3639,
368,
855,
326,
5381,
2845,
18,
3639,
10551,
2864,
6810,
273,
394,
10551,
2864,
12,
501,
11272,
3639,
1033,
8526,
924,
273,
6810,
263,
2372,
31,
3639,
368,
855,
2006,
2943,
471,
667,
770,
18,
3639,
509,
2006,
5094,
273,
501,
263,
896,
13290,
4897,
5621,
3639,
509,
667,
1016,
273,
2
] |
} else if (element instanceof ITaskContainer) {
|
} else if (element instanceof AbstractTaskContainer) {
|
private void updateActionEnablement(Action action, ITaskListElement element) { if (element instanceof ITask) { if (action instanceof OpenTaskInExternalBrowserAction) { if (((ITask) element).hasValidUrl()) { action.setEnabled(true); } else { action.setEnabled(false); } } else if (action instanceof DeleteAction) { action.setEnabled(true); } else if (action instanceof NewLocalTaskAction) { action.setEnabled(false); } else if (action instanceof OpenTaskListElementAction) { action.setEnabled(true); } else if (action instanceof CopyDescriptionAction) { action.setEnabled(true); } else if (action instanceof RenameAction) { action.setEnabled(true); } } else if (element instanceof ITaskContainer) { if (action instanceof MarkTaskCompleteAction) { action.setEnabled(false); } else if (action instanceof MarkTaskIncompleteAction) { action.setEnabled(false); } else if (action instanceof DeleteAction) { if (((ITaskContainer) element).isArchive()) action.setEnabled(false); else action.setEnabled(true); } else if (action instanceof NewLocalTaskAction) { if (((ITaskContainer) element).isArchive()) action.setEnabled(false); else action.setEnabled(true); } else if (action instanceof GoIntoAction) { TaskCategory cat = (TaskCategory) element; if (cat.getChildren().size() > 0) { action.setEnabled(true); } else { action.setEnabled(false); } } else if (action instanceof OpenTaskListElementAction) { action.setEnabled(true); } else if (action instanceof CopyDescriptionAction) { action.setEnabled(true); } else if (action instanceof RenameAction) { if (((ITaskContainer) element).isArchive()) action.setEnabled(false); else action.setEnabled(true); } } else { action.setEnabled(true); } // if(!canEnableGoInto){ // goIntoAction.setEnabled(false); // } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/41f5ef9fe370f2cae870074ac5c17017be12a1fe/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
1803,
8317,
475,
12,
1803,
1301,
16,
467,
2174,
682,
1046,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
467,
2174,
13,
288,
1082,
202,
430,
261,
1128,
1276,
3502,
2174,
382,
6841,
9132,
1803,
13,
288,
9506,
202,
430,
261,
12443,
1285,
835,
13,
930,
2934,
5332,
1556,
1489,
10756,
288,
6862,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
9506,
202,
97,
469,
288,
6862,
202,
1128,
18,
542,
1526,
12,
5743,
1769,
9506,
202,
97,
1082,
202,
97,
469,
309,
261,
1128,
1276,
2504,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
97,
469,
309,
261,
1128,
1276,
1166,
2042,
2174,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
5743,
1769,
1082,
202,
97,
469,
309,
261,
1128,
1276,
3502,
2174,
682,
1046,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
97,
469,
309,
261,
1128,
1276,
5631,
3291,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
97,
469,
309,
261,
1128,
1276,
19996,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2956,
1276,
467,
2174,
2170,
13,
288,
1082,
202,
430,
261,
1128,
1276,
6622,
2174,
6322,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
5743,
1769,
1082,
202,
97,
469,
309,
261,
1128,
1276,
6622,
2174,
27531,
1803,
13,
288,
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,
1152,
918,
1089,
1803,
8317,
475,
12,
1803,
1301,
16,
467,
2174,
682,
1046,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
467,
2174,
13,
288,
1082,
202,
430,
261,
1128,
1276,
3502,
2174,
382,
6841,
9132,
1803,
13,
288,
9506,
202,
430,
261,
12443,
1285,
835,
13,
930,
2934,
5332,
1556,
1489,
10756,
288,
6862,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
9506,
202,
97,
469,
288,
6862,
202,
1128,
18,
542,
1526,
12,
5743,
1769,
9506,
202,
97,
1082,
202,
97,
469,
309,
261,
1128,
1276,
2504,
1803,
13,
288,
9506,
202,
1128,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
97,
469,
309,
261,
1128,
1276,
1166,
2042,
2174,
1803,
13,
288,
2
] |
toolbar.addSeparator();
|
mBar.addSeparator();
|
public void createToolbar() { toolbar = new JToolBar(); toolbar.setFloatable(false); fetchButton = new JButton(); fetchButton.setToolTipText(jfritz.getMessages().getString("fetchlist")); fetchButton.setActionCommand("fetchList"); fetchButton.addActionListener(this); fetchButton.setIcon(getImage("fetch.png")); fetchButton.setFocusPainted(false); toolbar.add(fetchButton); taskButton = new JToggleButton(); taskButton.setToolTipText(jfritz.getMessages().getString("fetchtask")); taskButton.setActionCommand("fetchTask"); taskButton.addActionListener(this); taskButton.setIcon(getImage("clock.png")); toolbar.add(taskButton); lookupButton = new JButton(); lookupButton.setToolTipText(jfritz.getMessages().getString( "reverse_lookup")); lookupButton.setActionCommand("reverselookup"); lookupButton.addActionListener(this); lookupButton.setIcon(getImage("reverselookup.png")); toolbar.add(lookupButton); JButton button = new JButton(); button.setActionCommand("phonebook"); button.addActionListener(this); button.setIcon(getImage("phonebook.png")); button.setToolTipText(jfritz.getMessages().getString("phonebook")); button.setEnabled(JFritz.DEVEL_VERSION); toolbar.add(button); button = new JButton(); button.setActionCommand("quickdial"); button.addActionListener(this); button.setIcon(getImage("quickdial.png")); button.setToolTipText(jfritz.getMessages().getString("quickdial")); button.setEnabled(JFritz.DEVEL_VERSION); toolbar.add(button); toolbar.addSeparator(); button = new JButton(); button.setActionCommand("export_csv"); button.addActionListener(this); button.setIcon(getImage("csv.png")); button.setToolTipText(jfritz.getMessages().getString("export_csv")); toolbar.add(button); vcardButton = new JButton(); vcardButton.setActionCommand("export_vcard"); vcardButton.addActionListener(this); vcardButton.setIcon(getImage("vcard.png")); vcardButton.setToolTipText(jfritz.getMessages().getString( "export_vcard")); toolbar.add(vcardButton); /* * button = new JButton(); button.setActionCommand("export_excel"); * button.addActionListener(this); button.setIcon(new * ImageIcon(Toolkit.getDefaultToolkit().getImage( * getClass().getResource( * "/de/moonflower/jfritz/resources/images/excel.png")))); * button.setToolTipText(messages.getString("export_excel")); * button.setEnabled(IS_RELEASE); toolbar.add(button); * * button = new JButton(); button.setActionCommand("export_openoffice"); * button.addActionListener(this); button.setIcon(new * ImageIcon(Toolkit.getDefaultToolkit().getImage( * getClass().getResource( * "/de/moonflower/jfritz/resources/images/excel.png")))); * button.setToolTipText(messages.getString("export_excel")); * button.setEnabled(true); toolbar.add(button); * * button.setIcon(new * ImageIcon(Toolkit.getDefaultToolkit().getImage(getClass().getResource( * "/de/moonflower/jfritz/resources/images/openoffice.png")))); * button.setToolTipText(messages.getString("export_openoffice")); * button.setEnabled(IS_RELEASE); toolbar.add(button); */ button = new JButton(); button.setActionCommand("help"); button.addActionListener(this); button.setIcon(getImage("help.png")); button.setToolTipText(jfritz.getMessages().getString("help_menu")); button.setEnabled(JFritz.DEVEL_VERSION); toolbar.add(button); toolbar.addSeparator(); button = new JButton(); button.setActionCommand("config"); button.addActionListener(this); button.setIcon(getImage("config.png")); button.setToolTipText(jfritz.getMessages().getString("config")); toolbar.add(button); toolbar.addSeparator(); // FILTER BUTTONS JToggleButton tb = new JToggleButton(getImage("callin_grey.png"), true); tb.setSelectedIcon(getImage("callin.png")); tb.setActionCommand("filter_callin"); tb.addActionListener(this); tb.setToolTipText(jfritz.getMessages().getString("filter_callin")); tb.setSelected(!JFritzUtils.parseBoolean(properties.getProperty( "filter.callin", "false"))); toolbar.add(tb); tb = new JToggleButton(getImage("callinfailed_grey.png"), true); tb.setSelectedIcon(getImage("callinfailed.png")); tb.setActionCommand("filter_callinfailed"); tb.addActionListener(this); tb .setToolTipText(jfritz.getMessages().getString( "filter_callinfailed")); tb.setSelected(!JFritzUtils.parseBoolean(properties.getProperty( "filter.callinfailed", "false"))); toolbar.add(tb); tb = new JToggleButton(getImage("callout_grey.png"), true); tb.setSelectedIcon(getImage("callout.png")); tb.setActionCommand("filter_callout"); tb.addActionListener(this); tb.setToolTipText(jfritz.getMessages().getString("filter_callout")); tb.setSelected(!JFritzUtils.parseBoolean(properties.getProperty( "filter.callout", "false"))); toolbar.add(tb); tb = new JToggleButton(getImage("phone_grey.png"), true); tb.setSelectedIcon(getImage("phone.png")); tb.setActionCommand("filter_number"); tb.addActionListener(this); tb.setToolTipText(jfritz.getMessages().getString("filter_number")); tb.setSelected(!JFritzUtils.parseBoolean(properties.getProperty( "filter.number", "false"))); toolbar.add(tb); JPanel toolPanel = new JPanel(new BorderLayout()); toolPanel.add(toolbar, BorderLayout.NORTH); JPanel fpanel = new JPanel(); fpanel.setLayout(new BoxLayout(fpanel, BoxLayout.LINE_AXIS)); fpanel.add(new JLabel("Filter: ")); // FIXME JTextField search = new JTextField(properties.getProperty("filter.search",""), 10); search.addCaretListener(new CaretListener() { String filter = ""; public void caretUpdate(CaretEvent e) { JTextField search = (JTextField) e.getSource(); if (!filter.equals(search.getText())) { filter = search.getText(); properties.setProperty("filter.search", filter); jfritz.getCallerlist().updateFilter(); callertable.tableChanged(callertableevent); } } }); fpanel.add(search); toolPanel.add(fpanel, BorderLayout.CENTER); getContentPane().add(toolPanel, BorderLayout.NORTH); // getContentPane().add(toolbar, BorderLayout.NORTH); // getContentPane().add(search, BorderLayout.NORTH); }
|
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/8be5ae1d72d28d7a664d7a0588aebb0232f4297a/JFritzWindow.java/buggy/jfritz/src/de/moonflower/jfritz/JFritzWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
17907,
1435,
288,
202,
202,
18849,
273,
394,
804,
6364,
5190,
5621,
202,
202,
18849,
18,
542,
4723,
429,
12,
5743,
1769,
202,
202,
5754,
3616,
273,
394,
28804,
5621,
202,
202,
5754,
3616,
18,
542,
29250,
1528,
12,
78,
74,
583,
94,
18,
588,
5058,
7675,
588,
780,
2932,
5754,
1098,
7923,
1769,
202,
202,
5754,
3616,
18,
542,
1803,
2189,
2932,
5754,
682,
8863,
202,
202,
5754,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
202,
202,
5754,
3616,
18,
542,
5554,
12,
588,
2040,
2932,
5754,
18,
6446,
7923,
1769,
202,
202,
5754,
3616,
18,
542,
9233,
12699,
329,
12,
5743,
1769,
202,
202,
18849,
18,
1289,
12,
5754,
3616,
1769,
202,
202,
4146,
3616,
273,
394,
804,
17986,
3616,
5621,
202,
202,
4146,
3616,
18,
542,
29250,
1528,
12,
78,
74,
583,
94,
18,
588,
5058,
7675,
588,
780,
2932,
5754,
4146,
7923,
1769,
202,
202,
4146,
3616,
18,
542,
1803,
2189,
2932,
5754,
2174,
8863,
202,
202,
4146,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
202,
202,
4146,
3616,
18,
542,
5554,
12,
588,
2040,
2932,
18517,
18,
6446,
7923,
1769,
202,
202,
18849,
18,
1289,
12,
4146,
3616,
1769,
202,
202,
8664,
3616,
273,
394,
28804,
5621,
202,
202,
8664,
3616,
18,
542,
29250,
1528,
12,
78,
74,
583,
94,
18,
588,
5058,
7675,
588,
780,
12,
9506,
202,
6,
9845,
67,
8664,
7923,
1769,
202,
202,
8664,
3616,
18,
542,
1803,
2189,
2932,
266,
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,
752,
17907,
1435,
288,
202,
202,
18849,
273,
394,
804,
6364,
5190,
5621,
202,
202,
18849,
18,
542,
4723,
429,
12,
5743,
1769,
202,
202,
5754,
3616,
273,
394,
28804,
5621,
202,
202,
5754,
3616,
18,
542,
29250,
1528,
12,
78,
74,
583,
94,
18,
588,
5058,
7675,
588,
780,
2932,
5754,
1098,
7923,
1769,
202,
202,
5754,
3616,
18,
542,
1803,
2189,
2932,
5754,
682,
8863,
202,
202,
5754,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
202,
202,
5754,
3616,
18,
542,
5554,
12,
588,
2040,
2932,
5754,
18,
6446,
7923,
1769,
202,
202,
5754,
3616,
18,
542,
9233,
12699,
329,
12,
5743,
1769,
202,
202,
18849,
18,
1289,
12,
5754,
3616,
1769,
2
] |
private static Specification mergeInSections( final Specification specification, final ArrayList sectionsToAdd ) { if( 0 == sectionsToAdd.size() ) {
|
private static Specification mergeInSections(final Specification specification, final ArrayList sectionsToAdd) { if (0 == sectionsToAdd.size()) {
|
private static Specification mergeInSections( final Specification specification, final ArrayList sectionsToAdd ) { if( 0 == sectionsToAdd.size() ) { return specification; } else { sectionsToAdd.addAll( Arrays.asList( specification.getSections() ) ); final String[] sections = (String[])sectionsToAdd.toArray( new String[ sectionsToAdd.size() ] ); return new Specification( specification.getSpecificationTitle(), specification.getSpecificationVersion().toString(), specification.getSpecificationVendor(), specification.getImplementationTitle(), specification.getImplementationVersion(), specification.getImplementationVendor(), sections ); } }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/12d6c01879b76774bb1cb969f3081301b96dab32/Specification.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
20000,
2691,
382,
15965,
12,
727,
20000,
7490,
16,
4766,
5375,
727,
2407,
7178,
13786,
262,
565,
288,
3639,
309,
12,
374,
422,
7178,
13786,
18,
1467,
1435,
262,
3639,
288,
5411,
327,
7490,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
7178,
13786,
18,
1289,
1595,
12,
5647,
18,
345,
682,
12,
7490,
18,
588,
15965,
1435,
262,
11272,
5411,
727,
514,
8526,
7178,
273,
7734,
261,
780,
63,
5717,
3464,
11634,
986,
18,
31447,
12,
394,
514,
63,
7178,
13786,
18,
1467,
1435,
308,
11272,
5411,
327,
394,
20000,
12,
7490,
18,
588,
8615,
4247,
9334,
4766,
1377,
7490,
18,
588,
8615,
1444,
7675,
10492,
9334,
4766,
1377,
7490,
18,
588,
8615,
14786,
9334,
4766,
1377,
7490,
18,
588,
13621,
4247,
9334,
4766,
1377,
7490,
18,
588,
13621,
1444,
9334,
4766,
1377,
7490,
18,
588,
13621,
14786,
9334,
4766,
1377,
7178,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
20000,
2691,
382,
15965,
12,
727,
20000,
7490,
16,
4766,
5375,
727,
2407,
7178,
13786,
262,
565,
288,
3639,
309,
12,
374,
422,
7178,
13786,
18,
1467,
1435,
262,
3639,
288,
5411,
327,
7490,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
7178,
13786,
18,
1289,
1595,
12,
5647,
18,
345,
682,
12,
7490,
18,
588,
15965,
1435,
262,
11272,
5411,
727,
514,
8526,
7178,
273,
7734,
261,
780,
63,
5717,
3464,
11634,
986,
18,
31447,
12,
394,
514,
63,
7178,
13786,
18,
1467,
1435,
308,
11272,
5411,
327,
394,
20000,
12,
7490,
18,
588,
8615,
4247,
9334,
4766,
1377,
7490,
18,
588,
8615,
1444,
7675,
10492,
9334,
4766,
1377,
7490,
18,
588,
8615,
14786,
9334,
2
] |
return (TopicSession)createSession(transacted, acknowledgeMode);
|
return createSessionInternal(transacted, acknowledgeMode, false, JBossSession.TYPE_TOPIC_SESSION);
|
public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException { return (TopicSession)createSession(transacted, acknowledgeMode); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/ab698b865a8e3d17c97393b6deb426d8cf8652c9/JBossConnection.java/clean/src/main/org/jboss/jms/client/JBossConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
11789,
2157,
752,
6657,
2157,
12,
6494,
906,
25487,
16,
4766,
1850,
509,
28922,
2309,
13,
1216,
20343,
282,
288,
4202,
327,
752,
2157,
3061,
12,
2338,
25487,
16,
28922,
2309,
16,
629,
16,
804,
38,
8464,
2157,
18,
2399,
67,
4296,
20385,
67,
7042,
1769,
282,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
11789,
2157,
752,
6657,
2157,
12,
6494,
906,
25487,
16,
4766,
1850,
509,
28922,
2309,
13,
1216,
20343,
282,
288,
4202,
327,
752,
2157,
3061,
12,
2338,
25487,
16,
28922,
2309,
16,
629,
16,
804,
38,
8464,
2157,
18,
2399,
67,
4296,
20385,
67,
7042,
1769,
282,
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
] |
p.visitLocalVariableExpression(this, variable.getIdent());
|
p.visitLocalVariableExpression(this, variable.getIdent());
|
public void accept(KjcVisitor p) { p.visitLocalVariableExpression(this, variable.getIdent()); }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/3d62ab912d3c88c01f5d392d7a1a2fcdf8a845c7/JLocalVariableExpression.java/clean/streams/src/at/dms/kjc/JLocalVariableExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2791,
12,
47,
78,
71,
7413,
293,
13,
288,
565,
293,
18,
11658,
2042,
3092,
2300,
12,
2211,
16,
2190,
18,
588,
6106,
10663,
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,
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,
282,
1071,
918,
2791,
12,
47,
78,
71,
7413,
293,
13,
288,
565,
293,
18,
11658,
2042,
3092,
2300,
12,
2211,
16,
2190,
18,
588,
6106,
10663,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setModified(true);
|
public void setMx(String mx) { if (((mx == null) && (_mx != null)) || ((mx != null) && (_mx == null)) || ((mx != null) && (_mx != null) && !mx.equals(_mx))) { if (!XSS_ALLOW_MX) { mx = XSSUtil.strip(mx); } _mx = mx; setModified(true); } }
|
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/CompanyModel.java/clean/portal-ejb/src/com/liferay/portal/model/CompanyModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15430,
92,
12,
780,
7938,
13,
288,
202,
202,
430,
261,
12443,
11023,
422,
446,
13,
597,
261,
67,
11023,
480,
446,
3719,
747,
14015,
11023,
480,
446,
13,
597,
261,
67,
11023,
422,
446,
3719,
747,
9506,
202,
12443,
11023,
480,
446,
13,
597,
261,
67,
11023,
480,
446,
13,
597,
401,
11023,
18,
14963,
24899,
11023,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
13874,
13,
288,
9506,
202,
11023,
273,
1139,
1260,
1304,
18,
6406,
12,
11023,
1769,
1082,
202,
97,
1082,
202,
67,
11023,
273,
7938,
31,
1082,
202,
542,
4575,
12,
3767,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15430,
92,
12,
780,
7938,
13,
288,
202,
202,
430,
261,
12443,
11023,
422,
446,
13,
597,
261,
67,
11023,
480,
446,
3719,
747,
14015,
11023,
480,
446,
13,
597,
261,
67,
11023,
422,
446,
3719,
747,
9506,
202,
12443,
11023,
480,
446,
13,
597,
261,
67,
11023,
480,
446,
13,
597,
401,
11023,
18,
14963,
24899,
11023,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
13874,
13,
288,
9506,
202,
11023,
273,
1139,
1260,
1304,
18,
6406,
12,
11023,
1769,
1082,
202,
97,
1082,
202,
67,
11023,
273,
7938,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
new SICBlockCipher(cipher.getUnderlyingCipher()));
|
new SICBlockCipher(baseEngine));
|
protected void engineSetMode( String mode) throws NoSuchAlgorithmException { modeName = mode.toUpperCase(); if (modeName.equals("ECB")) { ivLength = 0; cipher = new PaddedBufferedBlockCipher(cipher.getUnderlyingCipher()); } else if (modeName.equals("CBC")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new PaddedBufferedBlockCipher( new CBCBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("OFB")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); if (modeName.length() != 3) { int wordSize = Integer.parseInt(modeName.substring(3)); cipher = new PaddedBufferedBlockCipher( new OFBBlockCipher(cipher.getUnderlyingCipher(), wordSize)); } else { cipher = new PaddedBufferedBlockCipher( new OFBBlockCipher(cipher.getUnderlyingCipher(), 8 * cipher.getBlockSize())); } } else if (modeName.startsWith("CFB")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); if (modeName.length() != 3) { int wordSize = Integer.parseInt(modeName.substring(3)); cipher = new PaddedBufferedBlockCipher( new CFBBlockCipher(cipher.getUnderlyingCipher(), wordSize)); } else { cipher = new PaddedBufferedBlockCipher( new CFBBlockCipher(cipher.getUnderlyingCipher(), 8 * cipher.getBlockSize())); } } else if (modeName.startsWith("PGP")) { if (modeName.equalsIgnoreCase("PGPCFBwithIV")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new PaddedBufferedBlockCipher( new PGPCFBBlockCipher(cipher.getUnderlyingCipher(), true)); } else { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new PaddedBufferedBlockCipher( new PGPCFBBlockCipher(cipher.getUnderlyingCipher(), false)); } } else if (modeName.equalsIgnoreCase("OpenPGPCFB")) { ivLength = 0; cipher = new PaddedBufferedBlockCipher( new OpenPGPCFBBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("SIC")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); if (ivLength < 16) { throw new IllegalArgumentException("Warning: SIC-Mode can become a twotime-pad if the blocksize of the cipher is too small. Use a cipher with a block size of at least 128 bits (e.g. AES)"); } cipher = new BufferedBlockCipher( new SICBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("CTR")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new BufferedBlockCipher( new SICBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("GOFB")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new BufferedBlockCipher( new GOFBBlockCipher(cipher.getUnderlyingCipher())); } else if (modeName.startsWith("CTS")) { ivLength = cipher.getUnderlyingCipher().getBlockSize(); cipher = new CTSBlockCipher(new CBCBlockCipher(cipher.getUnderlyingCipher())); } else { throw new NoSuchAlgorithmException("can't support mode " + mode); } }
|
14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/fedcbc35d9319a39ad36fade78bc0c7cc5ab774c/JCEBlockCipher.java/clean/crypto/src/org/bouncycastle/jce/provider/JCEBlockCipher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4073,
694,
2309,
12,
3639,
514,
225,
1965,
13,
3639,
1216,
17684,
565,
288,
3639,
1965,
461,
273,
1965,
18,
869,
8915,
5621,
3639,
309,
261,
3188,
461,
18,
14963,
2932,
7228,
38,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
374,
31,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
10663,
3639,
289,
3639,
469,
309,
261,
3188,
461,
18,
14963,
2932,
21813,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
5867,
18,
588,
14655,
6291,
13896,
7675,
588,
22506,
5621,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
18701,
394,
385,
16283,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
1435,
10019,
3639,
289,
3639,
469,
309,
261,
3188,
461,
18,
17514,
1190,
2932,
3932,
38,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
5867,
18,
588,
14655,
6291,
13896,
7675,
588,
22506,
5621,
5411,
309,
261,
3188,
461,
18,
2469,
1435,
480,
890,
13,
5411,
288,
7734,
509,
2076,
1225,
273,
2144,
18,
2670,
1702,
12,
3188,
461,
18,
28023,
12,
23,
10019,
7734,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
27573,
394,
15932,
38,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
9334,
2076,
1225,
10019,
5411,
289,
5411,
469,
5411,
288,
7734,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
13491,
394,
15932,
38,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
9334,
1725,
380,
5867,
18,
588,
22506,
1435,
10019,
5411,
289,
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,
4073,
694,
2309,
12,
3639,
514,
225,
1965,
13,
3639,
1216,
17684,
565,
288,
3639,
1965,
461,
273,
1965,
18,
869,
8915,
5621,
3639,
309,
261,
3188,
461,
18,
14963,
2932,
7228,
38,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
374,
31,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
10663,
3639,
289,
3639,
469,
309,
261,
3188,
461,
18,
14963,
2932,
21813,
6,
3719,
3639,
288,
5411,
4674,
1782,
273,
5867,
18,
588,
14655,
6291,
13896,
7675,
588,
22506,
5621,
5411,
5867,
273,
394,
453,
9665,
17947,
1768,
13896,
12,
18701,
394,
385,
16283,
1768,
13896,
12,
17094,
18,
588,
14655,
6291,
13896,
1435,
10019,
3639,
2
] |
int b = buf[i]; if (b < 0) { b += 256; } l = (l << 8) | b;
|
l = (l << 8) | (buf[i]&0xff);
|
private Object number() throws IOException { // :lua_Number:size Here we assume that the size is 8. byte[] buf = new byte[8]; block(buf); // We assume that doubles are always stored with the sign bit first. long l = 0; for (int i=0; i<buf.length; ++i) { // Convert buf[i] to unsigned and store in b int b = buf[i]; if (b < 0) { b += 256; } l = (l << 8) | b; } double d = Double.longBitsToDouble(l); return Lua.valueOfNumber(d); }
|
47685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47685/b0729c6e3d988abc8592b7420506d7bfc0122b48/Loader.java/buggy/code/Loader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1300,
1435,
1216,
1860,
288,
565,
368,
294,
80,
11886,
67,
1854,
30,
1467,
225,
13743,
732,
6750,
716,
326,
963,
353,
1725,
18,
565,
1160,
8526,
1681,
273,
394,
1160,
63,
28,
15533,
565,
1203,
12,
4385,
1769,
565,
368,
1660,
6750,
716,
31446,
854,
3712,
4041,
598,
326,
1573,
2831,
1122,
18,
565,
1525,
328,
273,
374,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
4385,
18,
2469,
31,
965,
77,
13,
288,
1377,
368,
4037,
1681,
63,
77,
65,
358,
9088,
471,
1707,
316,
324,
1377,
509,
324,
273,
1681,
63,
77,
15533,
1377,
309,
261,
70,
411,
374,
13,
288,
3639,
324,
1011,
8303,
31,
1377,
289,
1377,
328,
273,
261,
80,
2296,
1725,
13,
571,
324,
31,
565,
289,
565,
1645,
302,
273,
3698,
18,
5748,
6495,
774,
5265,
12,
80,
1769,
565,
327,
511,
11886,
18,
1132,
951,
1854,
12,
72,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1300,
1435,
1216,
1860,
288,
565,
368,
294,
80,
11886,
67,
1854,
30,
1467,
225,
13743,
732,
6750,
716,
326,
963,
353,
1725,
18,
565,
1160,
8526,
1681,
273,
394,
1160,
63,
28,
15533,
565,
1203,
12,
4385,
1769,
565,
368,
1660,
6750,
716,
31446,
854,
3712,
4041,
598,
326,
1573,
2831,
1122,
18,
565,
1525,
328,
273,
374,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
4385,
18,
2469,
31,
965,
77,
13,
288,
1377,
368,
4037,
1681,
63,
77,
65,
358,
9088,
471,
1707,
316,
324,
1377,
509,
324,
273,
1681,
63,
77,
15533,
1377,
309,
261,
70,
411,
374,
13,
288,
3639,
324,
1011,
8303,
31,
1377,
289,
1377,
328,
2
] |
return (!isStackingViolation && !terrainInvalid);
|
boolean legal = true; if (isStackingViolation) { legal = false; } else if (terrainInvalid) { legal = false; } else if (parent.isJumping() && distance == 0) { legal = false; } return legal;
|
public boolean isLegalEndPos() { return (!isStackingViolation && !terrainInvalid); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/bc3963980d1d06f917e1945181c23d0cae39d09e/MoveStep.java/clean/megamek/src/megamek/common/MoveStep.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
30697,
1638,
1616,
1435,
288,
540,
1250,
19286,
273,
638,
31,
309,
261,
291,
2624,
310,
11683,
13,
288,
19286,
273,
629,
31,
289,
282,
469,
309,
261,
387,
7596,
1941,
13,
288,
19286,
273,
629,
31,
289,
282,
469,
309,
261,
2938,
18,
291,
46,
379,
1382,
1435,
597,
3888,
422,
374,
13,
288,
19286,
273,
629,
31,
289,
327,
19286,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
30697,
1638,
1616,
1435,
288,
540,
1250,
19286,
273,
638,
31,
309,
261,
291,
2624,
310,
11683,
13,
288,
19286,
273,
629,
31,
289,
282,
469,
309,
261,
387,
7596,
1941,
13,
288,
19286,
273,
629,
31,
289,
282,
469,
309,
261,
2938,
18,
291,
46,
379,
1382,
1435,
597,
3888,
422,
374,
13,
288,
19286,
273,
629,
31,
289,
327,
19286,
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
] |
private void showPhaseOne(IWContext iwc, ServiceOfferChoice choice, ServiceOffer offer) throws RemoteException { Form form = createForm(iwc, ACTION_PHASE_ONE); //mark as viewed getBusiness().setServiceChoiceAsViewed(choice); boolean isOptional = offer.isServiceChoiceOptional(); Layer layer = new Layer(Layer.DIV); layer.setID("phasesDiv"); form.add(layer); if(isOptional){ layer.add(new Heading1(localize("service.offer.choice.make_a_service_choice", "Make a service offer choice 1 of 2"))); } else{ layer.add(new Heading1(localize("service.offer.choice.service_offer_mandatory", "Mandatory Service Offer"))); } User user = choice.getUser(); Paragraph forUserParagraph = new Paragraph(); forUserParagraph.add(new Text(localize("service.offer.choice.service_offer_for","A service offer for ")+user.getName()+", "+user.getPersonalID())); layer.add(forUserParagraph); Paragraph paragraph = new Paragraph(); if(isOptional){ paragraph.add(new Text(localize("service.offer.choice.text", "Please review the following service offer and respond to it by clicking on one of the buttons (Decline/Accept) at the bottom of the page"))); } else{ paragraph.add(new Text(localize("service.offer.choice.text_mandatory", "The following service offer is mandatory and is only for your viewing."))); } layer.add(paragraph); addServiceOffer(iwc, layer,offer); layer.add(new CSSSpacer()); Layer buttonLayer = new Layer(Layer.DIV); buttonLayer.setStyleClass("buttonDiv"); layer.add(buttonLayer); if(isOptional){ SubmitButton accept = new SubmitButton(localize("accept", "Accept")); accept.setValueOnClick(PARAMETER_ACTION, String.valueOf(ACTION_ACCEPT)); SubmitButton decline = new SubmitButton(localize("decline", "Decline")); decline.setValueOnClick(PARAMETER_ACTION, String.valueOf(ACTION_DECLINE)); buttonLayer.add(decline); buttonLayer.add(accept); } else{ ICPage homePage = null; try { homePage = getUserBusiness(iwc).getHomePageForUser(getUser(iwc)); } catch (FinderException e) { //no homepage for user?? e.printStackTrace(); } if (homePage!= null) { GenericButton home = new GenericButton(localize("my_page", "My page")); home.setPageToOpen(homePage); buttonLayer.add(home); } } add(form); }
|
14660 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14660/46acb74c543c1ce2bda3402299993b65c3c77210/ServiceOfferChoiceBlock.java/clean/src/java/is/idega/idegaweb/egov/serviceoffer/presentation/ServiceOfferChoiceBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
4500,
11406,
3335,
12,
45,
59,
1042,
22315,
71,
16,
1179,
10513,
10538,
11569,
16,
1179,
10513,
23322,
13,
15069,
5169,
503,
95,
202,
202,
1204,
687,
33,
2640,
1204,
12,
22315,
71,
16,
12249,
67,
8939,
4429,
67,
5998,
1769,
9506,
202,
759,
3355,
345,
1945,
329,
202,
202,
588,
13423,
7675,
542,
1179,
10538,
1463,
1767,
329,
12,
11569,
1769,
9506,
202,
6494,
291,
6542,
33,
23322,
18,
291,
1179,
10538,
6542,
5621,
9506,
202,
4576,
6363,
33,
2704,
4576,
12,
4576,
18,
31901,
1769,
202,
202,
6363,
18,
542,
734,
2932,
844,
3304,
7244,
8863,
202,
202,
687,
18,
1289,
12,
6363,
1769,
202,
202,
430,
12,
291,
6542,
15329,
1082,
202,
6363,
18,
1289,
12,
2704,
21867,
21,
12,
3729,
554,
2932,
3278,
18,
23322,
18,
11569,
18,
6540,
67,
69,
67,
3278,
67,
11569,
15937,
6464,
14558,
633,
23322,
11569,
21,
792,
22,
6,
3719,
1769,
202,
202,
97,
202,
202,
12107,
95,
1082,
202,
6363,
18,
1289,
12,
2704,
21867,
21,
12,
3729,
554,
2932,
3278,
18,
23322,
18,
11569,
18,
3278,
67,
23322,
67,
889,
8452,
15937,
49,
10018,
1179,
10513,
6,
3719,
1769,
1082,
202,
97,
9506,
202,
1299,
1355,
33,
11569,
18,
588,
1299,
5621,
202,
202,
17719,
1884,
1299,
17719,
33,
2704,
17719,
5621,
202,
202,
1884,
1299,
17719,
18,
1289,
12,
2704,
1528,
12,
3729,
554,
2932,
3278,
18,
23322,
18,
11569,
18,
3278,
67,
23322,
67,
1884,
15937,
37,
3278,
23322,
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,
1152,
6459,
4500,
11406,
3335,
12,
45,
59,
1042,
22315,
71,
16,
1179,
10513,
10538,
11569,
16,
1179,
10513,
23322,
13,
15069,
5169,
503,
95,
202,
202,
1204,
687,
33,
2640,
1204,
12,
22315,
71,
16,
12249,
67,
8939,
4429,
67,
5998,
1769,
9506,
202,
759,
3355,
345,
1945,
329,
202,
202,
588,
13423,
7675,
542,
1179,
10538,
1463,
1767,
329,
12,
11569,
1769,
9506,
202,
6494,
291,
6542,
33,
23322,
18,
291,
1179,
10538,
6542,
5621,
9506,
202,
4576,
6363,
33,
2704,
4576,
12,
4576,
18,
31901,
1769,
202,
202,
6363,
18,
542,
734,
2932,
844,
3304,
7244,
8863,
202,
202,
687,
18,
1289,
12,
6363,
1769,
202,
202,
430,
12,
291,
6542,
15329,
1082,
202,
2
] |
||
protected void _setupView() { // Get proper cross-platform mask. int mask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); // Add actions with keystrokes _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), evalAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, java.awt.Event.SHIFT_MASK), newLineAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_B, mask), clearCurrentAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0), gotoPromptPosAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, java.awt.Event.SHIFT_MASK), selectToPromptPosAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_END, 0), gotoEndAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_END, java.awt.Event.SHIFT_MASK), selectToEndAction); // Up and down need to be bound both for keypad and not _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_UP, 0), historyPrevAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), historyPrevAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_DOWN, 0), historyNextAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), historyNextAction); // Left needs to be prevented from rolling cursor back before the prompt. // Both left and right should lock when caret is before the prompt. // Caret is allowed before the prompt for the purposes of mouse-based copy- // and-paste. _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_LEFT, 0), moveLeftAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), moveLeftAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_KP_RIGHT, 0), moveRightAction); _pane.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), moveRightAction); // Prevent previous word action from going past the prompt _pane.addActionForKeyStroke(DrJava.getConfig().getSetting(OptionConstants.KEY_PREVIOUS_WORD), prevWordAction); DrJava.getConfig().addOptionListener(OptionConstants.KEY_PREVIOUS_WORD, new OptionListener<KeyStroke>() { public void optionChanged(OptionEvent<KeyStroke> oe) { _pane.addActionForKeyStroke(DrJava.getConfig().getSetting(OptionConstants.KEY_PREVIOUS_WORD), prevWordAction); } }); _pane.addActionForKeyStroke(DrJava.getConfig().getSetting(OptionConstants.KEY_NEXT_WORD), nextWordAction); DrJava.getConfig().addOptionListener(OptionConstants.KEY_NEXT_WORD, new OptionListener<KeyStroke>() { public void optionChanged(OptionEvent<KeyStroke> oe) { _pane.addActionForKeyStroke(DrJava.getConfig().getSetting(OptionConstants.KEY_NEXT_WORD), nextWordAction); } }); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/cfd8bfb1865d4fad4b92a33a577ef90b6209a355/InteractionsController.java/clean/drjava/src/edu/rice/cs/drjava/ui/InteractionsController.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
389,
8401,
1767,
1435,
288,
3639,
368,
968,
5338,
6828,
17,
9898,
3066,
18,
565,
509,
3066,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
4599,
15576,
653,
5796,
5621,
3639,
368,
1436,
4209,
598,
498,
334,
3250,
281,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
12278,
16,
374,
3631,
4766,
5302,
1803,
1769,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
12278,
16,
4766,
13491,
2252,
18,
2219,
88,
18,
1133,
18,
23191,
67,
11704,
3631,
4766,
8093,
1803,
1769,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
38,
16,
3066,
3631,
4766,
2424,
3935,
1803,
1769,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
14209,
16,
374,
3631,
4766,
2897,
15967,
1616,
1803,
1769,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
14209,
16,
4766,
15604,
2252,
18,
2219,
88,
18,
1133,
18,
23191,
67,
11704,
3631,
27573,
2027,
774,
15967,
1616,
1803,
1769,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
4415,
16,
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,
282,
4750,
918,
389,
8401,
1767,
1435,
288,
3639,
368,
968,
5338,
6828,
17,
9898,
3066,
18,
565,
509,
3066,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
4599,
15576,
653,
5796,
5621,
3639,
368,
1436,
4209,
598,
498,
334,
3250,
281,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
12278,
16,
374,
3631,
4766,
5302,
1803,
1769,
565,
389,
29009,
18,
1289,
1803,
19759,
14602,
12,
653,
14602,
18,
588,
653,
14602,
12,
653,
1133,
18,
58,
47,
67,
12278,
16,
4766,
13491,
2252,
18,
2219,
88,
18,
1133,
18,
23191,
67,
11704,
3631,
4766,
8093,
1803,
1769,
565,
389,
29009,
18,
2
] |
||
public Object clone() {
|
public final Object clone() {
|
public Object clone() { return new SimpleRunningAverage(this); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/d69dceaa72feee5ece14b8de951841aa9b614188/SimpleRunningAverage.java/clean/src/freenet/support/math/SimpleRunningAverage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1033,
3236,
1435,
288,
3639,
327,
394,
4477,
7051,
17115,
12,
2211,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
1033,
3236,
1435,
288,
3639,
327,
394,
4477,
7051,
17115,
12,
2211,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case TA_MAType_TRIMA: retValue = TRIMA_Lookback(optInTimePeriod); break;
|
case TA_MAType_TRIMA : retValue = TRIMA_Lookback ( optInTimePeriod ); break;
|
public int MA_Lookback(int optInTimePeriod, TA_MAType optInMAType) { int retValue; if (optInTimePeriod <= 1) return 0; switch (optInMAType) { case TA_MAType_SMA: retValue = SMA_Lookback(optInTimePeriod); break; case TA_MAType_EMA: retValue = EMA_Lookback(optInTimePeriod); break; case TA_MAType_WMA: retValue = WMA_Lookback(optInTimePeriod); break; case TA_MAType_DEMA: retValue = DEMA_Lookback(optInTimePeriod); break; case TA_MAType_TEMA: retValue = TEMA_Lookback(optInTimePeriod); break; case TA_MAType_TRIMA: retValue = TRIMA_Lookback(optInTimePeriod); break; case TA_MAType_KAMA: retValue = KAMA_Lookback(optInTimePeriod); break; case TA_MAType_MAMA: retValue = MAMA_Lookback(0.5, 0.05); break; case TA_MAType_T3: retValue = T3_Lookback(optInTimePeriod, 0.7); break; default: retValue = 0; } return retValue; }
|
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
19316,
67,
9794,
823,
12,
474,
2153,
382,
26540,
16,
399,
37,
67,
5535,
559,
2153,
382,
5535,
559,
13,
288,
202,
202,
474,
21236,
31,
202,
202,
430,
261,
3838,
382,
26540,
1648,
404,
13,
1082,
202,
2463,
374,
31,
202,
202,
9610,
261,
3838,
382,
5535,
559,
13,
288,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
55,
5535,
30,
1082,
202,
1349,
620,
273,
348,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
3375,
37,
30,
1082,
202,
1349,
620,
273,
512,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
59,
5535,
30,
1082,
202,
1349,
620,
273,
678,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
1639,
5535,
30,
1082,
202,
1349,
620,
273,
2030,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
1448,
5535,
30,
1082,
202,
1349,
620,
273,
14028,
37,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
6566,
5535,
30,
1082,
202,
1349,
620,
273,
22800,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
19316,
67,
9794,
823,
12,
474,
2153,
382,
26540,
16,
399,
37,
67,
5535,
559,
2153,
382,
5535,
559,
13,
288,
202,
202,
474,
21236,
31,
202,
202,
430,
261,
3838,
382,
26540,
1648,
404,
13,
1082,
202,
2463,
374,
31,
202,
202,
9610,
261,
3838,
382,
5535,
559,
13,
288,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
55,
5535,
30,
1082,
202,
1349,
620,
273,
348,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
399,
37,
67,
5535,
559,
67,
3375,
37,
30,
1082,
202,
1349,
620,
273,
512,
5535,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
1082,
202,
8820,
31,
202,
202,
2
] |
VM_Address fp = (thread == VM_Thread.getCurrentThread()) ? VM_Magic.getFramePointer() : thread.contextRegisters.getInnermostFramePointer(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); VM_Scheduler.dumpStack(fp); VM_Processor.getCurrentProcessor().enableThreadSwitching(); } else VM.sysWrite("please specify a thread id\n"); return;
|
VM_Address fp = (thread == VM_Thread.getCurrentThread()) ? VM_Magic.getFramePointer() : thread.contextRegisters.getInnermostFramePointer(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); VM_Scheduler.dumpStack(fp); VM_Processor.getCurrentProcessor().enableThreadSwitching(); } else { VM.sysWrite("please specify a thread id\n"); } return;
|
eval(String[] tokens) throws Exception { char command = tokens == null ? EOF // end of file : tokens.length == 0 ? ' ' // empty line : tokens[0].charAt(0); // first letter of first token switch (command) { case ' ': // repeat previous command once if (previousTokens != null) eval(previousTokens); return; case '*': // repeat previous command once per second, until SIGQUIT is received if (previousTokens != null) for (VM_Scheduler.debugRequested = false; VM_Scheduler.debugRequested == false; ) { VM.sysWrite("\033[H\033[2J"); eval(previousTokens); sleep(1000); } return; } previousTokens = tokens; switch (command) { case 't': // display thread(s) if (tokens.length == 1) { // display all threads for (int i = 0, col = 0; i < VM_Scheduler.threads.length; ++i) { VM_Thread thread = VM_Scheduler.threads[i]; if (thread == null) continue; VM.sysWrite(rightJustify(thread.getIndex() + " ", 4) + leftJustify(thread.toString(), 40) + getThreadState(thread) + "\n"); } } else if (tokens.length == 2) { // display specified thread int threadIndex = Integer.valueOf(tokens[1]).intValue(); // !!TODO: danger here - how do we know if thread's context registers are // currently valid (ie. thread is not currently running and // won't start running while we're looking at it) ? VM_Thread thread = VM_Scheduler.threads[threadIndex]; VM.sysWrite(thread.getIndex() + " " + thread + " " + getThreadState(thread) + "\n"); VM_Address fp = (thread == VM_Thread.getCurrentThread()) ? VM_Magic.getFramePointer() : thread.contextRegisters.getInnermostFramePointer(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); VM_Scheduler.dumpStack(fp); VM_Processor.getCurrentProcessor().enableThreadSwitching(); } else VM.sysWrite("please specify a thread id\n"); return; case 'p': // print object if (tokens.length == 2) { int addr = Integer.parseInt(tokens[1], 16); VM.sysWrite("Object at addr 0x"); VM.sysWriteHex(addr); VM.sysWrite(": "); VM_ObjectModel.describeObject(VM_Address.fromInt(addr)); VM.sysWriteln(); } else VM.sysWriteln("Please specify an address\n"); return; case 'd': // dump virtual machine state VM_Scheduler.dumpVirtualMachine(); return; case 'e': // enable/disable event logging if (VM.BuildForEventLogging) { VM.EventLoggingEnabled = !VM.EventLoggingEnabled; VM.sysWrite("event logging " + (VM.EventLoggingEnabled ? "enabled\n" : "disabled\n")); } else VM.sysWrite("sorry, not built for event logging\n"); return; case 'l': // dump and reset event log if (VM.BuildForEventLogging) { String fileName = "temp.eventLog"; try { FileOutputStream out = new FileOutputStream(fileName); VM_EventLogger.dump(out); out.close(); VM.sysWrite("event log written to \"" + fileName + "\"\n"); } catch (IOException e) { VM.sysWrite("couldn't write \"" + fileName + "\": " + e + "\n"); } } else VM.sysWrite("sorry, not built for event logging\n"); return; case 'c': // continue execution of virtual machine (make debugger dormant until next debug request) VM_Scheduler.debugRequested = false; VM_Scheduler.debuggerMutex.lock(); yield(VM_Scheduler.debuggerQueue, VM_Scheduler.debuggerMutex); return; case 'q': // terminate execution of virtual machine VM.sysWrite("terminating execution\n"); VM.sysExit(0); return; case EOF: // dump thread stacks and vm state and resume execution VM_Scheduler.writeString("\n-- Stacks --\n"); for (int i = 1; i < VM_Scheduler.threads.length; ++i) { VM_Thread t = VM_Scheduler.threads[i]; if (t != null) { VM_Scheduler.writeString("\n Thread: "); t.dump(); VM_Processor.getCurrentProcessor().disableThreadSwitching(); VM_Scheduler.dumpStack(t.contextRegisters.getInnermostFramePointer()); VM_Processor.getCurrentProcessor().enableThreadSwitching(); } } VM_Scheduler.writeString("\n"); VM_Scheduler.dumpVirtualMachine(); VM_Scheduler.debugRequested = false; VM_Scheduler.debuggerMutex.lock(); yield(VM_Scheduler.debuggerQueue, VM_Scheduler.debuggerMutex); return; default: if (tokens.length == 1) { // offer help VM.sysWrite("Try one of:\n"); VM.sysWrite(" t - display all threads\n"); VM.sysWrite(" t <threadIndex> - display specified thread\n"); VM.sysWrite(" p <hex addr> - print (describe) object at given address\n"); VM.sysWrite(" d - dump virtual machine state\n"); VM.sysWrite(" e - enable/disable event logging\n"); VM.sysWrite(" l - write event log to a file\n"); VM.sysWrite(" c - continue execution\n"); VM.sysWrite(" q - terminate execution\n"); VM.sysWrite(" <class>.<method> - call a method\n"); VM.sysWrite("Or:\n"); VM.sysWrite(" <enter> - repeat previous command once\n"); VM.sysWrite(" * - repeat previous command once per second until SIGQUIT is received\n"); return; } // call a method // For the moment we only evaluate calls to static methods that take no parameters // !!TODO: more elaborate parsing to accept arbitrary number of classname-qualifiers, // parameter lists, static variables, arrays, etc. if (tokens.length != 3 || !tokens[1].equals(".")) VM.sysWrite("please specify <class>.<method>\n"); else { Class cls = Class.forName(tokens[0]); Class[] signature = new Class[0]; Method method = cls.getMethod(tokens[2], signature); Object[] args = new Object[0]; method.invoke(null, args); } return; } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/adc94596e6496781a4e0763b29a52be3daab1a7a/DebuggerThread.java/clean/rvm/src/vm/scheduler/DebuggerThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
5302,
12,
780,
8526,
2430,
13,
1216,
1185,
1377,
288,
1377,
1149,
1296,
273,
2430,
3639,
422,
446,
692,
6431,
225,
368,
679,
434,
585,
10402,
294,
2430,
18,
2469,
422,
374,
565,
692,
296,
296,
225,
368,
1008,
980,
10402,
294,
2430,
63,
20,
8009,
3001,
861,
12,
20,
1769,
540,
368,
1122,
9471,
434,
1122,
1147,
1377,
1620,
261,
3076,
13,
540,
288,
540,
648,
296,
4290,
368,
7666,
2416,
1296,
3647,
540,
309,
261,
11515,
5157,
480,
446,
13,
5411,
5302,
12,
11515,
5157,
1769,
540,
327,
31,
5375,
648,
5306,
30,
368,
7666,
2416,
1296,
3647,
1534,
2205,
16,
3180,
7004,
3500,
1285,
353,
5079,
540,
309,
261,
11515,
5157,
480,
446,
13,
5411,
364,
261,
7397,
67,
11870,
18,
4148,
11244,
273,
629,
31,
8251,
67,
11870,
18,
4148,
11244,
422,
629,
31,
262,
9079,
288,
9079,
8251,
18,
9499,
3067,
31458,
15265,
63,
44,
64,
15265,
63,
22,
46,
8863,
9079,
5302,
12,
11515,
5157,
1769,
9079,
5329,
12,
18088,
1769,
9079,
289,
540,
327,
31,
540,
289,
9079,
2416,
5157,
273,
2430,
31,
5411,
1620,
261,
3076,
13,
540,
288,
540,
648,
296,
88,
4278,
368,
2562,
2650,
12,
87,
13,
540,
309,
261,
7860,
18,
2469,
422,
404,
13,
5411,
288,
368,
2562,
777,
7403,
5411,
364,
261,
474,
277,
273,
374,
16,
645,
273,
374,
31,
277,
411,
8251,
67,
11870,
18,
12495,
18,
2469,
31,
965,
77,
13,
9079,
288,
9079,
8251,
67,
3830,
2650,
273,
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,
5302,
12,
780,
8526,
2430,
13,
1216,
1185,
1377,
288,
1377,
1149,
1296,
273,
2430,
3639,
422,
446,
692,
6431,
225,
368,
679,
434,
585,
10402,
294,
2430,
18,
2469,
422,
374,
565,
692,
296,
296,
225,
368,
1008,
980,
10402,
294,
2430,
63,
20,
8009,
3001,
861,
12,
20,
1769,
540,
368,
1122,
9471,
434,
1122,
1147,
1377,
1620,
261,
3076,
13,
540,
288,
540,
648,
296,
4290,
368,
7666,
2416,
1296,
3647,
540,
309,
261,
11515,
5157,
480,
446,
13,
5411,
5302,
12,
11515,
5157,
1769,
540,
327,
31,
5375,
648,
5306,
30,
368,
7666,
2416,
1296,
3647,
1534,
2205,
16,
3180,
7004,
3500,
1285,
353,
5079,
540,
309,
261,
11515,
5157,
480,
446,
13,
5411,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.