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
|
|---|---|---|---|---|---|---|
public boolean isExpanded(TreePath value0) {
|
public boolean isExpanded(TreePath value0) {
|
public boolean isExpanded(TreePath value0) { return false; // TODO } // isExpanded()
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/VariableHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/VariableHeightLayoutCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
17957,
12,
2471,
743,
460,
20,
13,
288,
202,
202,
2463,
629,
31,
368,
2660,
202,
97,
368,
353,
17957,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
17957,
12,
2471,
743,
460,
20,
13,
288,
202,
202,
2463,
629,
31,
368,
2660,
202,
97,
368,
353,
17957,
1435,
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
] |
AST __t1463 = _t;
|
AST __t1468 = _t;
|
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1396 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1396; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1397 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1397; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1398 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1398; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1399 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1399; _t = _t.getNextSibling(); break; } case ASC: { AST __t1400 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1400; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1401 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1401; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1402 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1402; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1403 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1403; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1404 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1404; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1405 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1405; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1406 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1406; _t = _t.getNextSibling(); break; } case CHR: { AST __t1407 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1407; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1408 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1408; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1409 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1409; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1410 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1410; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1411 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1412 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1413 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case DATE: { AST __t1414 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1415 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1416 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case DAY: { AST __t1417 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1418 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1419 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1420 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1421 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1422 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1423 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1424 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1425 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1426 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1427 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1428 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1429 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case EXP: { AST __t1430 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case FILL: { AST __t1431 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1432 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1433 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1434 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1435 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1436 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1437 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1438 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1439 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1440 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1441 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1442 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1443 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1444 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1445 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1446 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1447 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1448 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1449 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1450 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1451 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1452 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1453 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1454 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1455 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1456 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1457 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1458 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1459 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1460 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1461 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1462 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1463 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case LAST: { AST __t1464 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1465 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case LC: { AST __t1466 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1467 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1468 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1469 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1470 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1471 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1472 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1473 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case LOG: { AST __t1474 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1475 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1476 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1477 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1478 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1479 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1480 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1481 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1482 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1483 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1484 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1485 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1486 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1487 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1488 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1489 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1490 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1491 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1492 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1493 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1494 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1495 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1496 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1497 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1498 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1499 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1500 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1501 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1502 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case STRING: { AST __t1503 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1504 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1505 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1506 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1507 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1508 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1509 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1510 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1511 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1512 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1513 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1514 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
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,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3437,
10525,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
432,
2192,
30820,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10580,
273,
389,
88,
31,
1082,
202,
9053,
1853,
25574,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2192,
30820,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
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,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
2
] |
protected Level getDebugLogLevel(){ return Level.FINER; }
|
protected Level getDebugLogLevel() { return Level.FINER; }
|
protected Level getDebugLogLevel(){ return Level.FINER; }
|
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/a72e9e5217b7290ee5136c1efddb8aabdea08bf5/DatastoreInterface.java/clean/src/java/com/idega/data/DatastoreInterface.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
4750,
4557,
29264,
21806,
1435,
95,
202,
282,
202,
2463,
4557,
18,
7263,
654,
31,
202,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
4750,
4557,
29264,
21806,
1435,
95,
202,
282,
202,
2463,
4557,
18,
7263,
654,
31,
202,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (distances != null) { Iterator disIter = distances.iterator(); while (disIter.hasNext()) { Group dis = (Group) disIter.next(); disMap.put(dis.getPrimaryKey().toString(), dis.getName()); } } return disMap;
|
return distances;
|
public Map getDistancesMap(Group run, String year) { IWContext iwc = IWContext.getInstance(); Map disMap = new LinkedHashMap(); Collection distances = null; Collection type = new ArrayList(); type.add(IWMarathonConstants.GROUP_TYPE_RUN_DISTANCE); Iterator yearsIter = getYears(run).iterator(); while (yearsIter.hasNext()) { Group y = (Group) yearsIter.next(); if (y.getName().equals(year)) { try { distances = getGroupBiz(iwc).getChildGroupsRecursiveResultFiltered(y, type, true); } catch (Exception e) { distances = null; } } else { distances = null; } } if (distances != null) { Iterator disIter = distances.iterator(); while (disIter.hasNext()) { Group dis = (Group) disIter.next(); disMap.put(dis.getPrimaryKey().toString(), dis.getName()); } } return disMap; }
|
14024 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14024/790ed34c897c5ce26fc35b60eaef9535f9abfbc4/RunBusinessBean.java/clean/src/java/is/idega/idegaweb/marathon/business/RunBusinessBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1635,
2343,
376,
6872,
863,
12,
1114,
1086,
16,
514,
3286,
13,
288,
202,
202,
45,
59,
1042,
25522,
71,
273,
467,
59,
1042,
18,
588,
1442,
5621,
202,
202,
863,
1015,
863,
273,
394,
13589,
5621,
202,
202,
2532,
12491,
273,
446,
31,
202,
202,
2532,
618,
273,
394,
2407,
5621,
202,
202,
723,
18,
1289,
12,
45,
25173,
297,
29900,
2918,
18,
8468,
67,
2399,
67,
15238,
67,
2565,
5703,
1769,
202,
202,
3198,
11387,
2360,
273,
336,
21945,
12,
2681,
2934,
9838,
5621,
202,
202,
17523,
261,
29391,
2360,
18,
5332,
2134,
10756,
288,
1082,
202,
1114,
677,
273,
261,
1114,
13,
11387,
2360,
18,
4285,
5621,
1082,
202,
430,
261,
93,
18,
17994,
7675,
14963,
12,
6874,
3719,
288,
9506,
202,
698,
288,
6862,
202,
25834,
273,
11751,
38,
452,
12,
22315,
71,
2934,
588,
1763,
3621,
10483,
1253,
14478,
12,
93,
16,
618,
16,
638,
1769,
9506,
202,
97,
9506,
202,
14683,
261,
503,
425,
13,
288,
6862,
202,
25834,
273,
446,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
25834,
273,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
25834,
480,
446,
13,
288,
1082,
202,
3198,
1015,
2360,
273,
12491,
18,
9838,
5621,
1082,
202,
17523,
261,
2251,
2360,
18,
5332,
2134,
10756,
288,
9506,
202,
1114,
1015,
273,
261,
1114,
13,
1015,
2360,
18,
4285,
5621,
9506,
202,
2251,
863,
18,
458,
12,
2251,
18,
588,
11575,
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,
1635,
2343,
376,
6872,
863,
12,
1114,
1086,
16,
514,
3286,
13,
288,
202,
202,
45,
59,
1042,
25522,
71,
273,
467,
59,
1042,
18,
588,
1442,
5621,
202,
202,
863,
1015,
863,
273,
394,
13589,
5621,
202,
202,
2532,
12491,
273,
446,
31,
202,
202,
2532,
618,
273,
394,
2407,
5621,
202,
202,
723,
18,
1289,
12,
45,
25173,
297,
29900,
2918,
18,
8468,
67,
2399,
67,
15238,
67,
2565,
5703,
1769,
202,
202,
3198,
11387,
2360,
273,
336,
21945,
12,
2681,
2934,
9838,
5621,
202,
202,
17523,
261,
29391,
2360,
18,
5332,
2134,
10756,
288,
1082,
202,
1114,
677,
273,
261,
1114,
13,
11387,
2360,
18,
4285,
5621,
1082,
202,
430,
261,
93,
18,
2
] |
StringBuffer newVal = new StringBuffer(original.length()); for(int i=0; i<original.length(); i++) {
|
for (int i = 0; i < length; ++i) {
|
private static String processAttValue(String original) { // normally, nothing will happen StringBuffer newVal = new StringBuffer(original.length()); for(int i=0; i<original.length(); i++) { char currChar = original.charAt(i); if(currChar == '"') { newVal.append("""); } else if (currChar == '>') { newVal.append(">"); } else if (currChar == '&') { newVal.append("&"); } else { newVal.append(currChar); } } return newVal.toString(); }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/89e06865b3b318a81a91e4881866fbcb8b2b493e/XSDAbstractTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDAbstractTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1207,
3075,
620,
12,
780,
2282,
13,
288,
3639,
368,
15849,
16,
5083,
903,
5865,
3639,
6674,
20957,
273,
394,
6674,
12,
8830,
18,
2469,
10663,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
32,
8830,
18,
2469,
5621,
277,
27245,
288,
5411,
1149,
4306,
2156,
273,
2282,
18,
3001,
861,
12,
77,
1769,
5411,
309,
12,
17016,
2156,
422,
4754,
13,
288,
7734,
20957,
18,
6923,
2932,
10,
9270,
4868,
1769,
5411,
289,
469,
309,
261,
17016,
2156,
422,
7481,
13,
288,
7734,
20957,
18,
6923,
2932,
10,
4521,
4868,
1769,
5411,
289,
469,
309,
261,
17016,
2156,
422,
5183,
6134,
288,
7734,
20957,
18,
6923,
2932,
10,
931,
4868,
1769,
5411,
289,
469,
288,
7734,
20957,
18,
6923,
12,
17016,
2156,
1769,
5411,
289,
3639,
289,
3639,
327,
20957,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1207,
3075,
620,
12,
780,
2282,
13,
288,
3639,
368,
15849,
16,
5083,
903,
5865,
3639,
6674,
20957,
273,
394,
6674,
12,
8830,
18,
2469,
10663,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
32,
8830,
18,
2469,
5621,
277,
27245,
288,
5411,
1149,
4306,
2156,
273,
2282,
18,
3001,
861,
12,
77,
1769,
5411,
309,
12,
17016,
2156,
422,
4754,
13,
288,
7734,
20957,
18,
6923,
2932,
10,
9270,
4868,
1769,
5411,
289,
469,
309,
261,
17016,
2156,
422,
7481,
13,
288,
7734,
20957,
18,
6923,
2932,
10,
4521,
4868,
1769,
5411,
289,
469,
309,
261,
17016,
2156,
422,
5183,
6134,
288,
7734,
20957,
18,
6923,
2932,
10,
931,
4868,
1769,
5411,
289,
2
] |
append(v == null ? "(null)" : v.toString());
|
write(v == null ? "(null)" : v.toString());
|
public void writeObject(Object v) { // Maybe prepend ' '? FIXME if (v instanceof Consumable) ((Consumable) v).consume(this); else if (v instanceof SeqPosition) { SeqPosition pos = (SeqPosition) v; pos.sequence.consumeNext(pos.ipos, this); } else if (v instanceof Char) ((Char) v).print(this); else append(v == null ? "(null)" : v.toString()); }
|
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/bbc57fbe889e54dfe7719cf386eaec2850fa0202/ContentConsumer.java/clean/gnu/kawa/sax/ContentConsumer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16306,
12,
921,
331,
13,
225,
288,
565,
368,
14024,
8254,
296,
13023,
225,
9852,
565,
309,
261,
90,
1276,
22210,
429,
13,
1377,
14015,
11911,
429,
13,
331,
2934,
21224,
12,
2211,
1769,
565,
469,
309,
261,
90,
1276,
14367,
2555,
13,
1377,
288,
202,
6926,
2555,
949,
273,
261,
6926,
2555,
13,
331,
31,
202,
917,
18,
6178,
18,
21224,
2134,
12,
917,
18,
625,
538,
16,
333,
1769,
1377,
289,
565,
469,
309,
261,
90,
1276,
3703,
13,
1377,
14015,
2156,
13,
331,
2934,
1188,
12,
2211,
1769,
565,
469,
1377,
1045,
12,
90,
422,
446,
692,
7751,
2011,
2225,
294,
331,
18,
10492,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16306,
12,
921,
331,
13,
225,
288,
565,
368,
14024,
8254,
296,
13023,
225,
9852,
565,
309,
261,
90,
1276,
22210,
429,
13,
1377,
14015,
11911,
429,
13,
331,
2934,
21224,
12,
2211,
1769,
565,
469,
309,
261,
90,
1276,
14367,
2555,
13,
1377,
288,
202,
6926,
2555,
949,
273,
261,
6926,
2555,
13,
331,
31,
202,
917,
18,
6178,
18,
21224,
2134,
12,
917,
18,
625,
538,
16,
333,
1769,
1377,
289,
565,
469,
309,
261,
90,
1276,
3703,
13,
1377,
14015,
2156,
13,
331,
2934,
1188,
12,
2211,
1769,
565,
469,
1377,
1045,
12,
90,
422,
446,
692,
7751,
2011,
2225,
294,
331,
18,
10492,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
Address firstFreePtr = null;
|
Address firstFreePtr = Address.zero();
|
protected final void defragment() throws UninterruptiblePragma { final Word size = Word.fromIntZeroExtend(getSize()); final Word headerSize = Word.fromIntZeroExtend(this.headerSize); Word offset = headerSize; final Offset sizeOffset = this.sizeOffset; final Offset tibOffset = this.tibOffset; lock(); try { Address firstFreePtr = null; while (offset.LT(size)) { final Address ptr = start.add(offset); final Word objSize = ptr.loadWord(sizeOffset); final Word nextOffset = offset.add(objSize).add(headerSize); final Object vmt = ptr.loadObjectReference(tibOffset); if ((firstFreePtr == null) && (vmt == FREE)) { firstFreePtr = ptr; } if ((vmt == FREE) && (nextOffset.LT(size))) { final Object nextVmt; final Address nextObjectPtr = start.add(nextOffset); nextVmt = nextObjectPtr.loadObjectReference(tibOffset); if (nextVmt == FREE) { // Combine two free spaces Word nextObjSize = nextObjectPtr.loadWord(sizeOffset); Word newObjSize = objSize.add(headerSize).add(nextObjSize); ptr.store(newObjSize, sizeOffset); // Do not increment offset here, because there may be // another next free object, which we will combine // in the next loop. } else { offset = nextOffset; } } else { offset = nextOffset; } } // Set the address of the next free block, to the first free block this.nextFreePtr = firstFreePtr; } finally { unlock(); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d8a00bd5a8177bb705dca7886529a2237e2ba289/VmDefaultHeap.java/buggy/core/src/core/org/jnode/vm/memmgr/def/VmDefaultHeap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1652,
3520,
1435,
1216,
1351,
31847,
1523,
2050,
9454,
288,
3639,
727,
9926,
963,
273,
9926,
18,
2080,
1702,
7170,
16675,
12,
588,
1225,
10663,
3639,
727,
9926,
31719,
273,
9926,
18,
2080,
1702,
7170,
16675,
12,
2211,
18,
3374,
1225,
1769,
3639,
9926,
1384,
273,
31719,
31,
3639,
727,
9874,
963,
2335,
273,
333,
18,
1467,
2335,
31,
3639,
727,
9874,
268,
495,
2335,
273,
333,
18,
88,
495,
2335,
31,
7734,
2176,
5621,
3639,
775,
288,
5411,
5267,
1122,
9194,
5263,
273,
5267,
18,
7124,
5621,
5411,
1323,
261,
3348,
18,
12050,
12,
1467,
3719,
288,
7734,
727,
5267,
6571,
273,
787,
18,
1289,
12,
3348,
1769,
7734,
727,
9926,
1081,
1225,
273,
6571,
18,
945,
3944,
12,
1467,
2335,
1769,
7734,
727,
9926,
1024,
2335,
273,
1384,
18,
1289,
12,
2603,
1225,
2934,
1289,
12,
3374,
1225,
1769,
7734,
727,
1033,
331,
1010,
273,
6571,
18,
945,
22101,
12,
88,
495,
2335,
1769,
7734,
309,
14015,
3645,
9194,
5263,
422,
446,
13,
597,
261,
90,
1010,
422,
478,
9719,
3719,
288,
10792,
1122,
9194,
5263,
273,
6571,
31,
7734,
289,
7734,
309,
14015,
90,
1010,
422,
478,
9719,
13,
597,
261,
4285,
2335,
18,
12050,
12,
1467,
20349,
288,
10792,
727,
1033,
1024,
58,
1010,
31,
10792,
727,
5267,
1024,
921,
5263,
273,
787,
18,
1289,
12,
4285,
2335,
1769,
10792,
1024,
58,
1010,
273,
1024,
921,
5263,
18,
945,
22101,
12,
88,
495,
2335,
1769,
10792,
309,
261,
4285,
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,
727,
918,
1652,
3520,
1435,
1216,
1351,
31847,
1523,
2050,
9454,
288,
3639,
727,
9926,
963,
273,
9926,
18,
2080,
1702,
7170,
16675,
12,
588,
1225,
10663,
3639,
727,
9926,
31719,
273,
9926,
18,
2080,
1702,
7170,
16675,
12,
2211,
18,
3374,
1225,
1769,
3639,
9926,
1384,
273,
31719,
31,
3639,
727,
9874,
963,
2335,
273,
333,
18,
1467,
2335,
31,
3639,
727,
9874,
268,
495,
2335,
273,
333,
18,
88,
495,
2335,
31,
7734,
2176,
5621,
3639,
775,
288,
5411,
5267,
1122,
9194,
5263,
273,
5267,
18,
7124,
5621,
5411,
1323,
261,
3348,
18,
12050,
12,
1467,
3719,
288,
7734,
727,
5267,
6571,
273,
787,
18,
1289,
12,
3348,
1769,
7734,
727,
9926,
1081,
1225,
273,
2
] |
public org.quickfix.field.UnderlyingSecurityIDSource getUnderlyingSecurityIDSource() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityIDSource value = new org.quickfix.field.UnderlyingSecurityIDSource();
|
public quickfix.field.UnderlyingSecurityIDSource getUnderlyingSecurityIDSource() throws FieldNotFound { quickfix.field.UnderlyingSecurityIDSource value = new quickfix.field.UnderlyingSecurityIDSource();
|
public org.quickfix.field.UnderlyingSecurityIDSource getUnderlyingSecurityIDSource() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityIDSource value = new org.quickfix.field.UnderlyingSecurityIDSource(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix44/MarketDataIncrementalRefresh.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
10833,
765,
6291,
4368,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
10833,
765,
6291,
4368,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
1830,
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
] |
return super.getPropertyValue(name,type); }
|
return super.getPropertyValue(name,type); }
|
protected Object getPropertyValue(String name, Class type) { return super.getPropertyValue(name,type); }
|
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
21694,
12,
780,
508,
16,
1659,
618,
13,
288,
202,
202,
2463,
2240,
18,
588,
16107,
12,
529,
16,
723,
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,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
21694,
12,
780,
508,
16,
1659,
618,
13,
288,
202,
202,
2463,
2240,
18,
588,
16107,
12,
529,
16,
723,
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,
-100,
-100,
-100,
-100
] |
astore(variableObjectLocal);
|
cfw.addAStore(variableObjectLocal);
|
private void visitEnterWith(Node node, Node child) { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); addScriptRuntimeInvoke("enterWith", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore(variableObjectLocal); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
10237,
1190,
12,
907,
756,
16,
2029,
1151,
13,
565,
288,
3639,
1323,
261,
3624,
480,
446,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
1151,
273,
1151,
18,
588,
2134,
5621,
3639,
289,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
527,
3651,
5576,
10969,
2932,
2328,
1190,
3113,
1171,
9079,
7751,
21159,
19,
4936,
19,
921,
4868,
1171,
9079,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
1171,
9079,
397,
7923,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
1769,
3639,
6080,
91,
18,
1289,
37,
2257,
12,
6105,
921,
2042,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
10237,
1190,
12,
907,
756,
16,
2029,
1151,
13,
565,
288,
3639,
1323,
261,
3624,
480,
446,
13,
288,
5411,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
5411,
1151,
273,
1151,
18,
588,
2134,
5621,
3639,
289,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
527,
3651,
5576,
10969,
2932,
2328,
1190,
3113,
1171,
9079,
7751,
21159,
19,
4936,
19,
921,
4868,
1171,
9079,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
1171,
9079,
397,
7923,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
1769,
3639,
6080,
91,
18,
1289,
37,
2257,
12,
6105,
921,
2042,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
int u = 0;
|
public NodePanel() { addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { if (!m_stopped) { return; } if ((e.getModifiers() & e.BUTTON1_MASK) == e.BUTTON1_MASK && !e.isAltDown()) { Graphics g = NodePanel.this.getGraphics(); int x = e.getX(); int y = e.getY(); int w = NodePanel.this.getWidth(); int h = NodePanel.this.getHeight(); int u = 0; FastVector tmp = new FastVector(4); for (int noa = 0; noa < m_numAttributes; noa++) { if (m_inputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_inputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); return; } } for (int noa = 0; noa < m_numClasses; noa++) { if (m_outputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_outputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); return; } } for (int noa = 0; noa < m_neuralNodes.length; noa++) { if (m_neuralNodes[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_neuralNodes[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); return; } } NeuralNode temp = new NeuralNode(String.valueOf(m_nextId), m_random, m_sigmoidUnit); m_nextId++; temp.setX((double)e.getX() / w); temp.setY((double)e.getY() / h); tmp.addElement(temp); addNode(temp); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , true); } else { //then right click Graphics g = NodePanel.this.getGraphics(); int x = e.getX(); int y = e.getY(); int w = NodePanel.this.getWidth(); int h = NodePanel.this.getHeight(); int u = 0; FastVector tmp = new FastVector(4); for (int noa = 0; noa < m_numAttributes; noa++) { if (m_inputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_inputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); return; } } for (int noa = 0; noa < m_numClasses; noa++) { if (m_outputs[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_outputs[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); return; } } for (int noa = 0; noa < m_neuralNodes.length; noa++) { if (m_neuralNodes[noa].onUnit(g, x, y, w, h)) { tmp.addElement(m_neuralNodes[noa]); selection(tmp, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); return; } } selection(null, (e.getModifiers() & e.CTRL_MASK) == e.CTRL_MASK , false); } } }); }
|
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/cd962793826db37348322a62c5c01adc9613fe7a/MultilayerPerceptron.java/buggy/classifiers/functions/MultilayerPerceptron.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
5537,
1435,
288,
5411,
527,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
202,
21114,
225,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
202,
377,
202,
565,
309,
16051,
81,
67,
24228,
13,
288,
202,
1377,
327,
31,
202,
565,
289,
202,
565,
309,
14015,
73,
18,
588,
11948,
1435,
473,
425,
18,
20068,
21,
67,
11704,
13,
422,
425,
18,
20068,
21,
67,
11704,
597,
3196,
202,
5,
73,
18,
291,
10655,
4164,
10756,
288,
202,
1377,
16830,
314,
273,
2029,
5537,
18,
2211,
18,
588,
17558,
5621,
202,
1377,
509,
619,
273,
425,
18,
588,
60,
5621,
202,
1377,
509,
677,
273,
425,
18,
588,
61,
5621,
202,
1377,
509,
341,
273,
2029,
5537,
18,
2211,
18,
588,
2384,
5621,
202,
1377,
509,
366,
273,
2029,
5537,
18,
2211,
18,
588,
2686,
5621,
202,
1377,
509,
582,
273,
374,
31,
202,
1377,
9545,
5018,
1853,
273,
394,
9545,
5018,
12,
24,
1769,
202,
1377,
364,
261,
474,
1158,
69,
273,
374,
31,
1158,
69,
411,
312,
67,
2107,
2498,
31,
1158,
69,
27245,
288,
202,
202,
430,
261,
81,
67,
10029,
63,
2135,
69,
8009,
265,
2802,
12,
75,
16,
619,
16,
677,
16,
341,
16,
366,
3719,
288,
1082,
225,
1853,
18,
1289,
1046,
12,
81,
67,
10029,
63,
2135,
69,
19226,
1082,
225,
4421,
12,
5645,
16,
4697,
565,
261,
73,
18,
588,
11948,
1435,
473,
425,
18,
23876,
48,
67,
11704,
13,
422,
425,
18,
23876,
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,
2029,
5537,
1435,
288,
5411,
527,
9186,
2223,
12,
2704,
17013,
4216,
1435,
288,
202,
21114,
225,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
202,
377,
202,
565,
309,
16051,
81,
67,
24228,
13,
288,
202,
1377,
327,
31,
202,
565,
289,
202,
565,
309,
14015,
73,
18,
588,
11948,
1435,
473,
425,
18,
20068,
21,
67,
11704,
13,
422,
425,
18,
20068,
21,
67,
11704,
597,
3196,
202,
5,
73,
18,
291,
10655,
4164,
10756,
288,
202,
1377,
16830,
314,
273,
2029,
5537,
18,
2211,
18,
588,
17558,
5621,
202,
1377,
509,
619,
273,
425,
18,
588,
60,
5621,
202,
1377,
509,
677,
273,
425,
18,
588,
61,
5621,
202,
1377,
509,
341,
2
] |
|
IParserEditStatus valid = (IParserEditStatus) getEditingDomain() .runExclusive(new RunnableWithResult.Impl() {
|
IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
|
public ICellEditorValidator getEditTextValidator() { return new ICellEditorValidator() { public String isValid(final Object value) { if (value instanceof String) { final EObject element = getParserElement(); final IParser parser = getParser(); try { IParserEditStatus valid = (IParserEditStatus) getEditingDomain() .runExclusive(new RunnableWithResult.Impl() { public void run() { setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } }); return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage(); } catch (InterruptedException ie) { ie.printStackTrace(); } } // shouldn't get here return null; } }; }
|
56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/816096641504ba96db7bef449fe01a4b67ff0d37/AddStructuralFeatureValueActionName2EditPart.java/buggy/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/AddStructuralFeatureValueActionName2EditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4020,
6946,
5126,
21221,
1528,
5126,
1435,
288,
202,
202,
2463,
394,
467,
4020,
6946,
5126,
1435,
288,
1082,
202,
482,
514,
4908,
12,
6385,
1033,
460,
13,
288,
9506,
202,
430,
261,
1132,
1276,
514,
13,
288,
6862,
202,
6385,
8091,
930,
273,
20804,
1046,
5621,
6862,
202,
6385,
467,
2678,
2082,
273,
20804,
5621,
6862,
202,
698,
288,
25083,
202,
45,
2678,
4666,
1482,
923,
273,
261,
45,
2678,
4666,
1482,
13,
21221,
310,
3748,
1435,
6862,
9506,
202,
18,
2681,
17075,
12,
2704,
10254,
1190,
1253,
18,
2828,
1435,
288,
6862,
6862,
202,
482,
918,
1086,
1435,
288,
6862,
25083,
202,
542,
1253,
12,
4288,
18,
26810,
4666,
780,
12,
2704,
8091,
4216,
12,
2956,
3631,
261,
780,
13,
460,
10019,
6862,
6862,
202,
97,
6862,
9506,
202,
22938,
25083,
202,
2463,
923,
18,
588,
1085,
1435,
422,
6783,
4666,
1482,
18,
10776,
2782,
692,
446,
294,
923,
18,
24906,
5621,
6862,
202,
97,
1044,
261,
24485,
503,
9228,
13,
288,
25083,
202,
1385,
18,
1188,
6332,
5621,
6862,
202,
97,
9506,
202,
97,
9506,
202,
759,
12044,
1404,
336,
2674,
9506,
202,
2463,
446,
31,
1082,
202,
97,
202,
202,
20451,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4020,
6946,
5126,
21221,
1528,
5126,
1435,
288,
202,
202,
2463,
394,
467,
4020,
6946,
5126,
1435,
288,
1082,
202,
482,
514,
4908,
12,
6385,
1033,
460,
13,
288,
9506,
202,
430,
261,
1132,
1276,
514,
13,
288,
6862,
202,
6385,
8091,
930,
273,
20804,
1046,
5621,
6862,
202,
6385,
467,
2678,
2082,
273,
20804,
5621,
6862,
202,
698,
288,
25083,
202,
45,
2678,
4666,
1482,
923,
273,
261,
45,
2678,
4666,
1482,
13,
21221,
310,
3748,
1435,
6862,
9506,
202,
18,
2681,
17075,
12,
2704,
10254,
1190,
1253,
18,
2828,
1435,
288,
6862,
6862,
202,
482,
918,
1086,
1435,
288,
6862,
25083,
202,
542,
1253,
12,
4288,
18,
26810,
4666,
780,
12,
2704,
8091,
2
] |
Root root = SessionManager.getSession().getMetadataRoot().getRoot(); ObjectMap om = root.getObjectMap (root.getObjectType(p.getContainer().getQualifiedName())); Mapping m = om.getMapping(Path.get(p.getName())); if (m instanceof Value) { return ((Value) m).getColumn(); } else { return null; }
|
Root root = SessionManager.getSession().getMetadataRoot().getRoot(); ObjectMap om = root.getObjectMap (root.getObjectType(p.getContainer().getQualifiedName())); Mapping m = om.getMapping(Path.get(p.getName())); if (m instanceof Value) { return ((Value) m).getColumn(); } else { return null; }
|
private static final Column getColumn(Property p) { Root root = SessionManager.getSession().getMetadataRoot().getRoot(); ObjectMap om = root.getObjectMap (root.getObjectType(p.getContainer().getQualifiedName())); Mapping m = om.getMapping(Path.get(p.getName())); if (m instanceof Value) { return ((Value) m).getColumn(); } else { return null; } }
|
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/cb1364ac6f640a6ad163932b5427367d994b50b6/DataObjectManipulator.java/clean/archive/packaging/test/src/com/arsdigita/persistence/DataObjectManipulator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
4753,
6716,
12,
1396,
293,
13,
288,
202,
2375,
1365,
273,
3877,
1318,
18,
588,
2157,
7675,
588,
2277,
2375,
7675,
588,
2375,
5621,
202,
921,
863,
8068,
273,
1365,
18,
588,
921,
863,
202,
565,
261,
3085,
18,
588,
17610,
12,
84,
18,
588,
2170,
7675,
588,
12345,
1435,
10019,
202,
3233,
312,
273,
8068,
18,
588,
3233,
12,
743,
18,
588,
12,
84,
18,
17994,
1435,
10019,
202,
430,
261,
81,
1276,
1445,
13,
288,
202,
565,
327,
14015,
620,
13,
312,
2934,
588,
1494,
5621,
202,
97,
469,
288,
202,
565,
327,
446,
31,
202,
97,
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,
3238,
760,
727,
4753,
6716,
12,
1396,
293,
13,
288,
202,
2375,
1365,
273,
3877,
1318,
18,
588,
2157,
7675,
588,
2277,
2375,
7675,
588,
2375,
5621,
202,
921,
863,
8068,
273,
1365,
18,
588,
921,
863,
202,
565,
261,
3085,
18,
588,
17610,
12,
84,
18,
588,
2170,
7675,
588,
12345,
1435,
10019,
202,
3233,
312,
273,
8068,
18,
588,
3233,
12,
743,
18,
588,
12,
84,
18,
17994,
1435,
10019,
202,
430,
261,
81,
1276,
1445,
13,
288,
202,
565,
327,
14015,
620,
13,
312,
2934,
588,
1494,
5621,
202,
97,
469,
288,
202,
565,
327,
446,
31,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int dummy = 0;
|
protected void setHandlersAndRoles(RuntimeEndpointInfo rei, XMLStreamReader reader) { // first check for handler-chain element if (XMLStreamReaderUtil.nextElementContent(reader) == XMLStreamConstants.END_ELEMENT || !reader.getName().equals(QNAME_HANDLER_CHAIN)) { return; } List<Handler> handlerChain = new ArrayList<Handler>(); Set<String> roles = new HashSet<String>(); // ignore name for now. use commented code to get name if wanted XMLStreamReaderUtil.nextElementContent(reader); //ensureProperName(reader, QNAME_HANDLER_CHAIN_NAME); //String handlerChainName = XMLStreamReaderUtil.getElementText(reader); //XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(QNAME_HANDLER_CHAIN_NAME)) { // remove this block if uncommenting code above XMLStreamReaderUtil.nextContent(reader); XMLStreamReaderUtil.nextElementContent(reader); XMLStreamReaderUtil.nextElementContent(reader); } // process all <handler> elements while (reader.getName().equals(QNAME_HANDLER)) { Handler handler = null; Map<String, String> initParams = new HashMap<String, String>(); Set<QName> headers = new HashSet<QName>(); // ignore name if not present (see comments on chain name above) XMLStreamReaderUtil.nextContent(reader); //ensureProperName(reader, QNAME_HANDLER_NAME); //String handlerName = XMLStreamReaderUtil.getElementText(reader); //XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(QNAME_HANDLER_NAME)) { // remove this block if uncommenting code above XMLStreamReaderUtil.nextContent(reader); XMLStreamReaderUtil.nextElementContent(reader); XMLStreamReaderUtil.nextElementContent(reader); } // handler class ensureProperName(reader, QNAME_HANDLER_CLASS); try { handler = (Handler) loadClass( XMLStreamReaderUtil.getElementText(reader)).newInstance(); } catch (InstantiationException ie){ throw new RuntimeException(ie); } catch (IllegalAccessException e) { e.printStackTrace(); } XMLStreamReaderUtil.nextContent(reader); // init params while (reader.getName().equals(QNAME_HANDLER_PARAM)) { XMLStreamReaderUtil.nextContent(reader); ensureProperName(reader, QNAME_HANDLER_PARAM_NAME); String paramName = XMLStreamReaderUtil.getElementText(reader); XMLStreamReaderUtil.nextContent(reader); ensureProperName(reader, QNAME_HANDLER_PARAM_VALUE); String paramValue = XMLStreamReaderUtil.getElementText(reader); initParams.put(paramName, paramValue); XMLStreamReaderUtil.nextContent(reader); // past param-value XMLStreamReaderUtil.nextContent(reader); // past init-param } // headers (ignored) while (reader.getName().equals(QNAME_HANDLER_HEADER)) { XMLStreamReaderUtil.nextContent(reader); XMLStreamReaderUtil.nextElementContent(reader); XMLStreamReaderUtil.nextElementContent(reader); } // roles (not stored per handler) while (reader.getName().equals(QNAME_HANDLER_ROLE)) { roles.add(XMLStreamReaderUtil.getElementText(reader)); XMLStreamReaderUtil.nextContent(reader); } // finish handler info and add to chain if (!initParams.isEmpty()) { handler.init(initParams); } if (!headers.isEmpty()) { QName [] headerArray = new QName [headers.size()]; int i = 0; for (QName header : headers) { headerArray[i++] = header; } } handlerChain.add(handler); // move past </handler> XMLStreamReaderUtil.nextContent(reader); int dummy = 0; } rei.setHandlerChain(handlerChain); rei.getHandlerChainCaller().setRoles(roles); // move past </handler-chain> XMLStreamReaderUtil.nextContent(reader); }
|
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/4377e5be970fb72891008aaf0b1420e53a6e777e/JAXRPCRuntimeInfoParser.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/transport/http/servlet/JAXRPCRuntimeInfoParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
6919,
1876,
6898,
12,
5576,
3293,
966,
283,
77,
16,
3639,
15595,
2514,
2949,
13,
288,
3639,
368,
1122,
866,
364,
1838,
17,
5639,
930,
3639,
309,
261,
4201,
31495,
1304,
18,
4285,
1046,
1350,
12,
10530,
13,
422,
5411,
15595,
2918,
18,
4415,
67,
10976,
747,
5411,
401,
10530,
18,
17994,
7675,
14963,
12,
16032,
67,
19937,
67,
1792,
6964,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
987,
32,
1503,
34,
1838,
3893,
273,
394,
2407,
32,
1503,
34,
5621,
3639,
1000,
32,
780,
34,
4900,
273,
394,
6847,
32,
780,
34,
5621,
3639,
368,
2305,
508,
364,
2037,
18,
999,
31813,
981,
358,
336,
508,
309,
15504,
3639,
15595,
2514,
1304,
18,
4285,
1046,
1350,
12,
10530,
1769,
3639,
368,
15735,
626,
457,
461,
12,
10530,
16,
2238,
1985,
67,
19937,
67,
1792,
6964,
67,
1985,
1769,
3639,
368,
780,
1838,
3893,
461,
273,
15595,
2514,
1304,
18,
21336,
1528,
12,
10530,
1769,
3639,
368,
4201,
31495,
1304,
18,
4285,
1046,
1350,
12,
10530,
1769,
3639,
309,
261,
10530,
18,
17994,
7675,
14963,
12,
16032,
67,
19937,
67,
1792,
6964,
67,
1985,
3719,
288,
5411,
368,
1206,
333,
1203,
309,
12704,
475,
310,
981,
5721,
5411,
15595,
2514,
1304,
18,
4285,
1350,
12,
10530,
1769,
5411,
15595,
2514,
1304,
18,
4285,
1046,
1350,
12,
10530,
1769,
5411,
15595,
2514,
1304,
18,
4285,
1046,
1350,
12,
10530,
1769,
3639,
289,
3639,
368,
1207,
777,
411,
4176,
34,
2186,
3639,
1323,
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,
918,
444,
6919,
1876,
6898,
12,
5576,
3293,
966,
283,
77,
16,
3639,
15595,
2514,
2949,
13,
288,
3639,
368,
1122,
866,
364,
1838,
17,
5639,
930,
3639,
309,
261,
4201,
31495,
1304,
18,
4285,
1046,
1350,
12,
10530,
13,
422,
5411,
15595,
2918,
18,
4415,
67,
10976,
747,
5411,
401,
10530,
18,
17994,
7675,
14963,
12,
16032,
67,
19937,
67,
1792,
6964,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
987,
32,
1503,
34,
1838,
3893,
273,
394,
2407,
32,
1503,
34,
5621,
3639,
1000,
32,
780,
34,
4900,
273,
394,
6847,
32,
780,
34,
5621,
3639,
368,
2305,
508,
364,
2037,
18,
999,
31813,
981,
358,
336,
508,
309,
15504,
3639,
15595,
2514,
1304,
18,
2
] |
|
return typeName;
|
return typeName.toString();
|
private String genAnonTypeName(Element complexTypeDecl) { // Generate a unique name for the anonymous type by concatenating together the // names of parent nodes // The name is quite good for debugging/error purposes, but we may want to // revisit how this is done for performance reasons (LM). String typeName; Element node = DOMUtil.getParent(complexTypeDecl); typeName="#AnonType_"; while (node != null && (node != DOMUtil.getRoot(DOMUtil.getDocument(node)))) { typeName = typeName+node.getAttribute(SchemaSymbols.ATT_NAME); node = DOMUtil.getParent(node); } return typeName; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/a65c217949d360eeb058e5050dec507f86d8d487/XSDComplexTypeTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3157,
979,
265,
7947,
12,
1046,
7233,
559,
3456,
13,
288,
3639,
368,
6654,
279,
3089,
508,
364,
326,
13236,
618,
635,
8311,
1776,
9475,
326,
3639,
368,
1257,
434,
982,
2199,
3639,
368,
1021,
508,
353,
25102,
7494,
364,
10450,
19,
1636,
13694,
16,
1496,
732,
2026,
2545,
358,
3639,
368,
283,
11658,
3661,
333,
353,
2731,
364,
9239,
14000,
261,
17063,
2934,
3639,
514,
8173,
31,
3639,
3010,
756,
273,
4703,
1304,
18,
588,
3054,
12,
14259,
559,
3456,
1769,
3639,
8173,
1546,
7,
979,
265,
559,
9548,
31,
3639,
1323,
261,
2159,
480,
446,
597,
261,
2159,
480,
4703,
1304,
18,
588,
2375,
12,
8168,
1304,
18,
588,
2519,
12,
2159,
3719,
3719,
288,
5411,
8173,
273,
8173,
15,
2159,
18,
588,
1499,
12,
3078,
14821,
18,
789,
56,
67,
1985,
1769,
5411,
756,
273,
4703,
1304,
18,
588,
3054,
12,
2159,
1769,
3639,
289,
3639,
327,
8173,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3157,
979,
265,
7947,
12,
1046,
7233,
559,
3456,
13,
288,
3639,
368,
6654,
279,
3089,
508,
364,
326,
13236,
618,
635,
8311,
1776,
9475,
326,
3639,
368,
1257,
434,
982,
2199,
3639,
368,
1021,
508,
353,
25102,
7494,
364,
10450,
19,
1636,
13694,
16,
1496,
732,
2026,
2545,
358,
3639,
368,
283,
11658,
3661,
333,
353,
2731,
364,
9239,
14000,
261,
17063,
2934,
3639,
514,
8173,
31,
3639,
3010,
756,
273,
4703,
1304,
18,
588,
3054,
12,
14259,
559,
3456,
1769,
3639,
8173,
1546,
7,
979,
265,
559,
9548,
31,
3639,
1323,
261,
2159,
480,
446,
597,
261,
2159,
480,
4703,
1304,
18,
588,
2375,
12,
8168,
1304,
18,
588,
2519,
12,
2159,
3719,
3719,
2
] |
return ProgressManager.getInstance().errorManager; }
|
return ProgressManager.getInstance().errorManager; }
|
private ErrorNotificationManager getManager() { return ProgressManager.getInstance().errorManager; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1068,
4386,
1318,
14154,
1435,
288,
3639,
327,
10980,
1318,
18,
588,
1442,
7675,
1636,
1318,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1068,
4386,
1318,
14154,
1435,
288,
3639,
327,
10980,
1318,
18,
588,
1442,
7675,
1636,
1318,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { DataSetParameterHandle modelParam = ( DataSetParameterHandle ) elmtIter .next( ); dteDataSet.addParameter( new ParameterAdapter( modelParam ) ); if ( modelParam.isInput( ) ) { String defaultValueExpr = null; if ( modelParam instanceof OdaDataSetParameterHandle && ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) != null ) { defaultValueExpr = PARAMS_PREFIX + "[\"" + ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) + "\"]"; } else defaultValueExpr = modelParam.getDefaultValue( ); if ( defaultValueExpr != null ) paramBindingCandidates.put( modelParam.getName( ), defaultValueExpr ); } } } elmtIter = modelDataSet.paramBindingsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ParamBindingHandle modelParamBinding = ( ParamBindingHandle ) elmtIter .next( ); paramBindingCandidates.put( modelParamBinding.getParamName( ), modelParamBinding.getExpression( ) ); } } if ( paramBindingCandidates.size( ) > 0 ) { elmtIter = paramBindingCandidates.keySet( ).iterator( ); while ( elmtIter.hasNext( ) ) { Object paramName = elmtIter.next( ); assert ( paramName != null && paramName instanceof String ); String expression = ( String ) paramBindingCandidates .get( paramName ); dteDataSet.addInputParamBinding( new InputParamBindingAdapter( ( String ) paramName, expression ) ); } }
|
public static void adaptBaseDataSet( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) throws BirtException { if ( ( !( modelDataSet instanceof JointDataSetHandle ) ) && modelDataSet.getDataSource( ) == null ) { throw new AdapterException( ResourceConstants.DATASOURCE_NULL_ERROR ); } if ( !( modelDataSet instanceof JointDataSetHandle ) ) { dteDataSet.setDataSource( modelDataSet.getDataSource( ) .getQualifiedName( ) ); dteDataSet.setBeforeOpenScript( modelDataSet.getBeforeOpen( ) ); dteDataSet.setAfterOpenScript( modelDataSet.getAfterOpen( ) ); dteDataSet.setOnFetchScript( modelDataSet.getOnFetch( ) ); dteDataSet.setBeforeCloseScript( modelDataSet.getBeforeClose( ) ); dteDataSet.setAfterCloseScript( modelDataSet.getAfterClose( ) );// dataset parameters definition HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { DataSetParameterHandle modelParam = ( DataSetParameterHandle ) elmtIter .next( ); dteDataSet.addParameter( new ParameterAdapter( modelParam ) ); // collect input parameter default values as // potential parameter binding if no explicit ones are // defined for a parameter if ( modelParam.isInput( ) ) { String defaultValueExpr = null; if ( modelParam instanceof OdaDataSetParameterHandle && ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) != null ) { defaultValueExpr = PARAMS_PREFIX + "[\"" + ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) + "\"]"; } else defaultValueExpr = modelParam.getDefaultValue( ); if ( defaultValueExpr != null ) paramBindingCandidates.put( modelParam.getName( ), defaultValueExpr ); } } } // input parameter bindings elmtIter = modelDataSet.paramBindingsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ParamBindingHandle modelParamBinding = ( ParamBindingHandle ) elmtIter .next( ); // replace default value of the same parameter, if defined paramBindingCandidates.put( modelParamBinding.getParamName( ), modelParamBinding.getExpression( ) ); } } // assign merged parameter bindings to the data set if ( paramBindingCandidates.size( ) > 0 ) { elmtIter = paramBindingCandidates.keySet( ).iterator( ); while ( elmtIter.hasNext( ) ) { Object paramName = elmtIter.next( ); assert ( paramName != null && paramName instanceof String ); String expression = ( String ) paramBindingCandidates .get( paramName ); dteDataSet.addInputParamBinding( new InputParamBindingAdapter( ( String ) paramName, expression ) ); } } // cache row count dteDataSet.setCacheRowCount( modelDataSet.getCachedRowCount( ) ); } // computed columns Iterator elmtIter = modelDataSet.computedColumnsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ComputedColumnHandle modelCmptdColumn = ( ComputedColumnHandle ) elmtIter .next( ); dteDataSet.addComputedColumn( new ComputedColumnAdapter( modelCmptdColumn )); } } // filter conditions elmtIter = modelDataSet.filtersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { FilterConditionHandle modelFilter = ( FilterConditionHandle ) elmtIter .next( ); dteDataSet.addFilter( new FilterAdapter( modelFilter ) ); } } // merge ResultSetHints and ColumnHints, the order is important. // ResultSetHints will give each column a unique name, and // column hints should base on the result of ResultSet hint. // So in ResultSetHint list, the order of items should be // ResultSetColumn and then ColumnHint. // now merge model's result set column info into existing columnDefn // with same column name, otherwise create new columnDefn // based on the model's result set column if ( modelDataSet instanceof OdaDataSetHandle ) { elmtIter = modelDataSet.resultSetIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { OdaResultSetColumnHandle modelColumn = (OdaResultSetColumnHandle) elmtIter.next( ); if ( !modelColumn.getColumnName( ) .equals( modelColumn.getNativeName( ) ) ) dteDataSet.addResultSetHint( new ColumnAdapter( (ResultSetColumnHandle) modelColumn ) ); } } } else { elmtIter = modelDataSet.resultSetHintsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ResultSetColumnHandle modelColumn = (ResultSetColumnHandle) elmtIter.next( ); dteDataSet.addResultSetHint( new ColumnAdapter( modelColumn ) ); } } } // merging result set column and column hints into DtE columnDefn; // first create new columnDefn based on model's column hints elmtIter = modelDataSet.columnHintsIterator( ); if ( elmtIter != null ) { List columnDefns = dteDataSet.getResultSetHints( ); while ( elmtIter.hasNext( ) ) { ColumnHintHandle modelColumnHint = ( ColumnHintHandle ) elmtIter .next( ); ColumnDefinition existDefn = findColumnDefn( columnDefns, modelColumnHint.getColumnName( ) ); if ( existDefn != null ) updateColumnDefn( existDefn, modelColumnHint ); else dteDataSet .addResultSetHint( new ColumnAdapter( modelColumnHint ) ); } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ee2ff427f987c42816a9d91d4e0166ee88c0ff0e/DataAdapterUtil.java/clean/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/internal/adapter/DataAdapterUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5855,
2171,
13676,
12,
14065,
3259,
938,
13676,
16,
1082,
202,
2171,
13676,
15478,
302,
736,
13676,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
430,
261,
261,
401,
12,
938,
13676,
1276,
804,
763,
13676,
3259,
262,
262,
9506,
202,
10,
10,
938,
13676,
18,
588,
8597,
12,
262,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
14238,
503,
12,
2591,
2918,
18,
11102,
3033,
51,
5727,
67,
8560,
67,
3589,
11272,
202,
202,
97,
9506,
202,
430,
261,
401,
12,
938,
13676,
1276,
804,
763,
13676,
3259,
262,
262,
202,
202,
95,
1082,
202,
72,
736,
13676,
18,
542,
8597,
12,
938,
13676,
18,
588,
8597,
12,
262,
6862,
202,
18,
588,
12345,
12,
262,
11272,
1082,
202,
72,
736,
13676,
18,
542,
4649,
3678,
3651,
12,
938,
13676,
18,
588,
4649,
3678,
12,
262,
11272,
1082,
202,
72,
736,
13676,
18,
542,
4436,
3678,
3651,
12,
938,
13676,
18,
588,
4436,
3678,
12,
262,
11272,
1082,
202,
72,
736,
13676,
18,
542,
1398,
5005,
3651,
12,
938,
13676,
18,
588,
1398,
5005,
12,
262,
11272,
1082,
202,
72,
736,
13676,
18,
542,
4649,
4605,
3651,
12,
938,
13676,
18,
588,
4649,
4605,
12,
262,
11272,
1082,
202,
72,
736,
13676,
18,
542,
4436,
4605,
3651,
12,
938,
13676,
18,
588,
4436,
4605,
12,
262,
11272,
759,
9506,
3709,
1472,
2379,
1082,
202,
8658,
579,
5250,
18455,
273,
394,
4317,
12,
11272,
1082,
202,
3198,
415,
1010,
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,
918,
5855,
2171,
13676,
12,
14065,
3259,
938,
13676,
16,
1082,
202,
2171,
13676,
15478,
302,
736,
13676,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
430,
261,
261,
401,
12,
938,
13676,
1276,
804,
763,
13676,
3259,
262,
262,
9506,
202,
10,
10,
938,
13676,
18,
588,
8597,
12,
262,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
14238,
503,
12,
2591,
2918,
18,
11102,
3033,
51,
5727,
67,
8560,
67,
3589,
11272,
202,
202,
97,
9506,
202,
430,
261,
401,
12,
938,
13676,
1276,
804,
763,
13676,
3259,
262,
262,
202,
202,
95,
1082,
202,
72,
736,
13676,
18,
542,
8597,
12,
938,
13676,
18,
588,
8597,
12,
262,
6862,
2
] |
|
String[] keywords) throws UnsupportedOperationException { return null; }
|
String[] keywords) throws UnsupportedOperationException { return null; }
|
public QueryResultSet findByText(Date startDate, Date endDate, String[] keywords) throws UnsupportedOperationException { return null;// return this.historyReader.findByText(startDate, endDate, keywords); }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/dd511f0f97892bf31dc2a7a1989480bf6b6b5308/MessageHistoryServiceImpl.java/buggy/src/net/java/sip/communicator/impl/msghistory/MessageHistoryServiceImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2770,
13198,
6224,
1528,
12,
1626,
12572,
16,
2167,
13202,
16,
1082,
202,
780,
8526,
7093,
13,
1216,
13172,
288,
202,
202,
2463,
446,
31,
759,
202,
202,
2463,
333,
18,
8189,
2514,
18,
4720,
858,
1528,
12,
1937,
1626,
16,
13202,
16,
7093,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
2770,
13198,
6224,
1528,
12,
1626,
12572,
16,
2167,
13202,
16,
1082,
202,
780,
8526,
7093,
13,
1216,
13172,
288,
202,
202,
2463,
446,
31,
759,
202,
202,
2463,
333,
18,
8189,
2514,
18,
4720,
858,
1528,
12,
1937,
1626,
16,
13202,
16,
7093,
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
] |
default_templates = getDefaultTemplateOptionList(imcserver, user, temp_default_templates, meta_id, lang_prefix, true ); ftr.add("#default_templates#");ftr.add(default_templates);
|
String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; int currentdoc_perms = Integer.parseInt(current_permissions[2]) ;
|
static public void getRolesFromDb( String meta_id, User user, String host, Vector vec ) throws IOException { final String imcserver = Utility.getDomainPref("adminserver",host) ; // Lets get the langprefix final String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; // Lets get the roles_rights_table_header template file StringBuffer roles_rights = new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,"roles_rights_table_head.html",lang_prefix )) ; // Get the info from the user object. // "temp_perm_settings" is an array containing a stringified meta-id, a hashtable of meta-info (column=value), // and a hashtable of roles and their corresponding set_id for this page (role_id=set_id). // This array comes from selecting the permissionpage. People set a lot of stuff in the page, // and then they forget to press "Save" before pressing another button. // If they press another button, this array will be put in the user-object, to remember their settings. Object[] temp_perm_settings = (Object[])user.remove("temp_perm_settings") ; Hashtable temp_perm_hash = null ; String[] temp_default_templates = null; if (temp_perm_settings != null && meta_id.equals(temp_perm_settings[0])){ // Make sure this is the right document. temp_perm_hash = (Hashtable)temp_perm_settings[2] ; temp_default_templates = (String[])temp_perm_settings[3] ; } // Hey, hey! Watch as i fetch the permission-set set (pun intended) for each role! String[][] role_permissions = IMCServiceRMI.sqlProcedureMulti(imcserver, "GetUserRolesDocPermissions "+meta_id+","+user.getInt("user_id")) ; // Now watch as i fetch the permission_set for the user... String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; int currentdoc_perms = Integer.parseInt(current_permissions[2]) ; // A bitvector containing the permissions for this document. (For example if Set-id 1 is more privileged than Set-id 2 (bit 0)) StringBuffer roles_no_rights = new StringBuffer() ; for ( int i=0 ; i<role_permissions.length ; ++i ) { // Get role_id and set_id for role. int role_set_id = Integer.parseInt(role_permissions[i][2]) ; String role_name = role_permissions[i][1] ; String role_id = role_permissions[i][0] ; // Check if we have a temporary setting saved, and then set the role_set_id to it. if (temp_perm_hash != null) { String temp_role_set_id = (String)temp_perm_hash.get(role_id) ; if ( temp_role_set_id!=null ){ role_set_id = Integer.parseInt(temp_role_set_id) ; }else{ // This has a permission in the db, but is currently about to be disabled. role_set_id = IMCConstants.DOC_PERM_SET_NONE ; } } // If the role has no permissions for this document, we put it away in a special html-optionlist. if (role_set_id == IMCConstants.DOC_PERM_SET_NONE){ roles_no_rights.append("<option value=\""+role_id+"\">"+role_name+"</option>") ; roles_rights.append("<input type=\"hidden\" name=\"role_"+role_id+"\" value=\"4\">") ; // So... it's put away for later... we don't need it now. continue ; } Vector vec2 = new Vector() ; vec2.add("#role_name#") ; vec2.add(role_name) ; vec2.add("#user_role#") ; vec2.add(String.valueOf(IMCConstants.DOC_PERM_SET_FULL).equals(role_permissions[i][3]) ? "" : "*") ; // // As we all know... 0 is full, 3 is read, 4 is none, and 1 and 2 are "other" // // Btw, 'none' doesn't really have a value, but is rather the absence of a value. // // I just use 4 here because i have to distinguish the absence of a value from a value that is about to be removed. // // FIXME: Hire the mafia to force me to put these as constants in an interface. // Update: Hey, hey! After finding a horse's head in my bed, i decided to create imcode.server.IMCConstants... for ( int j = IMCConstants.DOC_PERM_SET_FULL ; j <= IMCConstants.DOC_PERM_SET_NONE ; ++j ){ // From DOC_PERM_SET_FULL to DOC_PERM_SET_NONE (0 to 4) vec2.add("#"+j+"#") ; if ( user_set_id <= role_set_id // User has more privileged set_id than role && (user_set_id <= j && (user_set_id != IMCConstants.DOC_PERM_SET_RESTRICTED_1 || j != IMCConstants.DOC_PERM_SET_RESTRICTED_2 || (currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0)) // User has more privileged set_id than this set_id && (user_set_id != IMCConstants.DOC_PERM_SET_RESTRICTED_1 || role_set_id != IMCConstants.DOC_PERM_SET_RESTRICTED_2 || (currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0) ) // User has set_id 1, and may modify set_id 2? { vec2.add("<input type=\"radio\" name=\"role_"+role_id+"\" value=\""+j+"\" "+((j == role_set_id) ? "checked>" : ">")) ; }else{ vec2.add( (j == role_set_id) ? "*" : "O") ; } } roles_rights.append(IMCServiceRMI.parseDoc(imcserver,vec2,"roles_rights_table_row.html",lang_prefix )) ; } vec.add("#roles_no_rights#") ; vec.add(roles_no_rights.toString()) ; roles_rights.append(IMCServiceRMI.parseDoc(imcserver,null,"roles_rights_table_tail.html",lang_prefix )) ; vec.add("#roles_rights#") ; vec.add(roles_rights.toString()) ; if (user_set_id < 2){ // If the permission_set_id of the user is 0 (full) or 1 (level 1 admin) // We want the buttons for defining permissionsets. /* // Yes, yes, very cool, neat, dandy, and all, but completely illegible! // This stupidity should earn yours truly a C- in obfuscation. // Just Read The Fscking Files! FileTagReplacer ftr = new FileTagReplacer ("permissions/","_button.html") { protected StringBuffer getContent(String name) throws IOException { return new StringBuffer(IMCServiceRMI.parseDoc(imcserver,null,name,lang_prefix)) ; } } ; */ Vector ftr = new Vector() ; StringBuffer define_sets = new StringBuffer() ; int doc_type = IMCServiceRMI.getDocType(imcserver,Integer.parseInt(meta_id)) ; String default_templates = "";//the string containing default-templates-option-list if (user_set_id == IMCConstants.DOC_PERM_SET_FULL){ Vector perm_vec = new Vector() ; if ((currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0){ perm_vec.add("#permissions#") ; perm_vec.add("checked") ; } String sets_precedence = IMCServiceRMI.parseDoc(imcserver,perm_vec,"permissions/sets_precedence.html",lang_prefix ) ; ftr.add("#sets_precedence#") ; ftr.add(sets_precedence) ; ftr.add("#set_1#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/set_1_button.html",lang_prefix)) ; ftr.add("#set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/set_2_button.html",lang_prefix)) ; if (doc_type == IMCConstants.DOCTYPE_TEXT){ ftr.add("#new_set_1#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/new_set_1_button.html",lang_prefix)) ; ftr.add("#new_set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/new_set_2_button.html",lang_prefix)) ; //ok lets setup the default_template-option-lists for restricted 1 & 2 default_templates = getDefaultTemplateOptionList(imcserver, user, temp_default_templates, meta_id, lang_prefix, true ); ftr.add("#default_templates#");ftr.add(default_templates); }else{ ftr.add("#new_set_1#") ; ftr.add("") ; ftr.add("#new_set_2#") ; ftr.add("") ; ftr.add("#default_templates#");ftr.add(""); } vec.add("#define_sets#") ; vec.add(IMCServiceRMI.parseDoc(imcserver,ftr,"permissions/define_sets.html",lang_prefix )) ; }else if ( (currentdoc_perms & IMCConstants.DOC_PERM_RESTRICTED_1_ADMINISTRATES_RESTRICTED_2) != 0){ ftr.add("#sets_precedence#") ; ftr.add("") ; ftr.add("#set_1#") ; ftr.add("") ; ftr.add("#new_set_1#") ; ftr.add("") ; ftr.add("#set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/set_2_button.html",lang_prefix)) ; if (doc_type == IMCConstants.DOCTYPE_TEXT){ ftr.add("#new_set_2#") ; ftr.add(IMCServiceRMI.parseDoc(imcserver,null,"permissions/new_set_2_button.html",lang_prefix)) ; //ok lets set up the default_template-option-list for restricted_2 default_templates = getDefaultTemplateOptionList(imcserver, user, temp_default_templates, meta_id, lang_prefix, false ); ftr.add("#default_templates#");ftr.add(default_templates); }else{ ftr.add("#new_set_2#") ; ftr.add("") ; } vec.add(IMCServiceRMI.parseDoc(imcserver,ftr,"permissions/define_sets.html",lang_prefix )) ; }else{ vec.add("#define_sets#") ; vec.add("") ; } }else{ vec.add("#define_sets#") ; vec.add("") ; } } // End of getRolesFromDb
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a591f63fbb91a4626a469c31cba230ca018b8c4e/MetaDataParser.java/buggy/server/src/imcode/util/MetaDataParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
1071,
918,
21787,
1265,
4331,
12,
514,
2191,
67,
350,
16,
2177,
729,
16,
514,
1479,
16,
5589,
7062,
202,
13,
1216,
1860,
202,
95,
202,
202,
6385,
514,
709,
71,
3567,
273,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
759,
511,
2413,
336,
326,
3303,
3239,
202,
202,
6385,
514,
3303,
67,
3239,
273,
6246,
39,
1179,
54,
7492,
18,
4669,
1138,
1585,
12,
381,
71,
3567,
16,
315,
4025,
3303,
67,
3239,
628,
3303,
67,
17777,
1625,
3303,
67,
350,
273,
13773,
1355,
18,
588,
1702,
2932,
4936,
67,
350,
6,
3719,
274,
202,
202,
759,
511,
2413,
336,
326,
4900,
67,
23700,
67,
2121,
67,
3374,
1542,
585,
202,
202,
780,
1892,
4900,
67,
23700,
273,
394,
6674,
12,
3445,
39,
1179,
54,
7492,
18,
2670,
1759,
12,
381,
71,
3567,
16,
2011,
10837,
7774,
67,
23700,
67,
2121,
67,
1978,
18,
2620,
3113,
4936,
67,
3239,
8623,
274,
202,
202,
759,
968,
326,
1123,
628,
326,
729,
733,
18,
202,
202,
759,
315,
5814,
67,
12160,
67,
4272,
6,
353,
392,
526,
4191,
279,
533,
939,
2191,
17,
350,
16,
279,
711,
14544,
434,
2191,
17,
1376,
261,
2827,
33,
1132,
3631,
3196,
202,
759,
471,
279,
711,
14544,
434,
4900,
471,
3675,
4656,
444,
67,
350,
364,
333,
1363,
261,
4615,
67,
350,
33,
542,
67,
350,
2934,
202,
202,
759,
1220,
526,
14535,
628,
24674,
326,
4132,
2433,
18,
19622,
11763,
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,
3845,
1071,
918,
21787,
1265,
4331,
12,
514,
2191,
67,
350,
16,
2177,
729,
16,
514,
1479,
16,
5589,
7062,
202,
13,
1216,
1860,
202,
95,
202,
202,
6385,
514,
709,
71,
3567,
273,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
759,
511,
2413,
336,
326,
3303,
3239,
202,
202,
6385,
514,
3303,
67,
3239,
273,
6246,
39,
1179,
54,
7492,
18,
4669,
1138,
1585,
12,
381,
71,
3567,
16,
315,
4025,
3303,
67,
3239,
628,
3303,
67,
17777,
1625,
3303,
67,
350,
273,
13773,
1355,
18,
588,
1702,
2932,
4936,
67,
350,
6,
3719,
274,
202,
202,
759,
511,
2413,
336,
326,
4900,
67,
23700,
67,
2121,
67,
3374,
2
] |
}
|
}
|
public JobErrorDialog(Shell parentShell, String title, String msg, ErrorInfo errorInfo, int displayMask) { super(parentShell, title == null ? errorInfo.getJob().getName() : title, msg, errorInfo.getErrorStatus(), displayMask); setShellStyle(SWT.DIALOG_TRIM | SWT.MODELESS | SWT.RESIZE |SWT.MIN | getDefaultOrientation()); // Do not want this one to be modal this.selectedError = errorInfo; setBlockOnOpen(false); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c0c37a41b014b226a67487a6b458de03b8825f9f/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3956,
668,
6353,
12,
13220,
982,
13220,
16,
514,
2077,
16,
514,
1234,
16,
1068,
966,
23280,
16,
509,
2562,
5796,
13,
288,
3639,
2240,
12,
2938,
13220,
16,
2077,
422,
446,
692,
23280,
18,
588,
2278,
7675,
17994,
1435,
294,
2077,
16,
1234,
16,
23280,
18,
588,
668,
1482,
9334,
2562,
5796,
1769,
3639,
444,
13220,
2885,
12,
55,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
7038,
26005,
571,
348,
8588,
18,
862,
4574,
571,
55,
8588,
18,
6236,
571,
4829,
14097,
10663,
368,
2256,
486,
2545,
333,
1245,
358,
506,
13010,
3639,
333,
18,
8109,
668,
273,
23280,
31,
202,
202,
542,
1768,
1398,
3678,
12,
5743,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3956,
668,
6353,
12,
13220,
982,
13220,
16,
514,
2077,
16,
514,
1234,
16,
1068,
966,
23280,
16,
509,
2562,
5796,
13,
288,
3639,
2240,
12,
2938,
13220,
16,
2077,
422,
446,
692,
23280,
18,
588,
2278,
7675,
17994,
1435,
294,
2077,
16,
1234,
16,
23280,
18,
588,
668,
1482,
9334,
2562,
5796,
1769,
3639,
444,
13220,
2885,
12,
55,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
7038,
26005,
571,
348,
8588,
18,
862,
4574,
571,
55,
8588,
18,
6236,
571,
4829,
14097,
10663,
368,
2256,
486,
2545,
333,
1245,
358,
506,
13010,
3639,
333,
18,
8109,
668,
273,
23280,
31,
202,
202,
542,
1768,
1398,
3678,
12,
5743,
1769,
565,
289,
2,
-100
] |
yaccValue = getInteger(tokenBuffer.toString(), 8);
|
yaccValue = new Token(getInteger(tokenBuffer.toString(), 8), getPosition(null, false));
|
private int parseNumber(char c) { lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); if (c == '-') { tokenBuffer.append(c); c = src.read(); } else if (c == '+') { // We don't append '+' since Java number parser gets confused c = src.read(); } char nondigit = '\0'; if (c == '0') { int startLen = tokenBuffer.length(); switch (c = src.read()) { case 'x' : case 'X' : // hexadecimal c = src.read(); if (isHexChar(c)) { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (isHexChar(c)) { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Hexadecimal number without hex-digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 16); return Tokens.tINTEGER; case 'b' : case 'B' : // binary c = src.read(); if (c == '0' || c == '1') { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (c == '0' || c == '1') { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Binary number without digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 2); return Tokens.tINTEGER; case 'd' : case 'D' : // decimal c = src.read(); if (Character.isDigit(c)) { for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (Character.isDigit(c)) { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } } src.unread(c); if (tokenBuffer.length() == startLen) { throw new SyntaxException(src.getPosition(), "Binary number without digits."); } else if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 2); return Tokens.tINTEGER; case '0' : case '1' : case '2' : case '3' : case '4' : //Octal case '5' : case '6' : case '7' : case '_' : for (;; c = src.read()) { if (c == '_') { if (nondigit != '\0') { break; } nondigit = c; } else if (c >= '0' && c <= '7') { nondigit = '\0'; tokenBuffer.append(c); } else { break; } } if (tokenBuffer.length() > startLen) { src.unread(c); if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } yaccValue = getInteger(tokenBuffer.toString(), 8); return Tokens.tINTEGER; } case '8' : case '9' : throw new SyntaxException(src.getPosition(), "Illegal octal digit."); case '.' : case 'e' : case 'E' : tokenBuffer.append('0'); break; default : src.unread(c); yaccValue = new Long(0); return Tokens.tINTEGER; } } boolean seen_point = false; boolean seen_e = false; for (;; c = src.read()) { switch (c) { case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : nondigit = '\0'; tokenBuffer.append(c); break; case '.' : if (nondigit != '\0') { src.unread(c); throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } else if (seen_point || seen_e) { src.unread(c); return getNumberToken(tokenBuffer.toString(), true, nondigit); } else { char c2; if (!Character.isDigit(c2 = src.read())) { src.unread(c2); src.unread('.'); if (c == '_') { // Enebo: c can never be antrhign but '.' // Why did I put this here? } else { yaccValue = getInteger(tokenBuffer.toString(), 10); return Tokens.tINTEGER; } } else { tokenBuffer.append('.'); tokenBuffer.append(c2); seen_point = true; nondigit = '\0'; } } break; case 'e' : case 'E' : if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } else if (seen_e) { src.unread(c); return getNumberToken(tokenBuffer.toString(), true, nondigit); } else { tokenBuffer.append(c); seen_e = true; nondigit = c; c = src.read(); if (c == '-' || c == '+') { tokenBuffer.append(c); nondigit = c; } else { src.unread(c); } } break; case '_' : // '_' in number just ignored if (nondigit != '\0') { throw new SyntaxException(src.getPosition(), "Trailing '_' in number."); } nondigit = c; break; default : src.unread(c); return getNumberToken(tokenBuffer.toString(), seen_e || seen_point, nondigit); } } }
|
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
1854,
12,
3001,
276,
13,
288,
3639,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
3639,
1147,
1892,
18,
542,
1782,
12,
20,
1769,
3639,
309,
261,
71,
422,
4014,
13,
288,
540,
202,
2316,
1892,
18,
6923,
12,
71,
1769,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
469,
309,
261,
71,
422,
15126,
6134,
288,
540,
202,
759,
1660,
2727,
1404,
714,
10058,
3241,
5110,
1300,
2082,
5571,
2195,
3668,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
7734,
1149,
290,
1434,
360,
305,
273,
2337,
20,
13506,
3639,
309,
261,
71,
422,
296,
20,
6134,
288,
5411,
509,
787,
2891,
273,
1147,
1892,
18,
2469,
5621,
5411,
1620,
261,
71,
273,
1705,
18,
896,
10756,
288,
7734,
648,
296,
92,
11,
294,
7734,
648,
296,
60,
11,
294,
368,
225,
20070,
10792,
276,
273,
1705,
18,
896,
5621,
10792,
309,
261,
291,
7037,
2156,
12,
71,
3719,
288,
13491,
364,
261,
25708,
276,
273,
1705,
18,
896,
10756,
288,
18701,
309,
261,
71,
422,
4427,
13,
288,
27573,
309,
261,
82,
1434,
360,
305,
480,
2337,
20,
6134,
288,
4766,
565,
898,
31,
27573,
289,
6862,
9506,
202,
82,
1434,
360,
305,
273,
276,
31,
18701,
289,
469,
309,
261,
291,
7037,
2156,
12,
71,
3719,
288,
27573,
290,
1434,
360,
305,
273,
2337,
20,
13506,
27573,
1147,
1892,
18,
6923,
12,
71,
1769,
18701,
289,
469,
288,
27573,
898,
31,
18701,
289,
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,
3238,
509,
1109,
1854,
12,
3001,
276,
13,
288,
3639,
5275,
67,
2019,
273,
15123,
1119,
18,
2294,
8025,
67,
4415,
31,
3639,
1147,
1892,
18,
542,
1782,
12,
20,
1769,
3639,
309,
261,
71,
422,
4014,
13,
288,
540,
202,
2316,
1892,
18,
6923,
12,
71,
1769,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
469,
309,
261,
71,
422,
15126,
6134,
288,
540,
202,
759,
1660,
2727,
1404,
714,
10058,
3241,
5110,
1300,
2082,
5571,
2195,
3668,
5411,
276,
273,
1705,
18,
896,
5621,
3639,
289,
7734,
1149,
290,
1434,
360,
305,
273,
2337,
20,
13506,
3639,
309,
261,
71,
422,
296,
20,
6134,
288,
5411,
509,
787,
2891,
273,
1147,
1892,
18,
2469,
5621,
2
] |
if (ENABLE_EARLY_BINDING) { Class rc = rightExpression.getTypeClass(); if (rc != null && rc.isArray()) { Class elemType = rc.getComponentType(); if (elemType.isPrimitive()) { visitClassExpression(new ClassExpression(elemType)); convertPrimitiveArray.call(cv); cast(loadClass(BytecodeHelper.formatNameForClassLoading(elemType.getName() + "[]"))); } } if (leftExpression.isDynamic() ) { if (!(leftExpression instanceof FieldExpression ) && !(leftExpression instanceof PropertyExpression)) copyTypeClass(leftExpression, rightExpression); } else { Class lc = leftExpression.getTypeClass(); if (lc != null && rc != null && !lc.isAssignableFrom(rc) && !lc.isPrimitive()) { if (!lc.isArray()) { visitClassExpression(new ClassExpression(lc)); asTypeMethod.call(cv); helper.doCast(lc); } else { Class elemType = lc.getComponentType(); if (elemType.isPrimitive()) { copyTypeClass(leftExpression, rightExpression); } } } } }
|
protected void evaluateEqual(BinaryExpression expression) { if (ENABLE_EARLY_BINDING) { expression.resolve(this); if (expression.isTypeResolved()) { if (expression.getRightExpression().getTypeClass() == Void.TYPE) { throwException("void value appeared on right hand side of assignment. "); } } } Expression leftExpression = expression.getLeftExpression(); if (leftExpression instanceof BinaryExpression) { BinaryExpression leftBinExpr = (BinaryExpression) leftExpression; if (leftBinExpr.getOperation().getType() == Types.LEFT_SQUARE_BRACKET) { // lets replace this assignment to a subscript operator with a // method call // e.g. x[5] = 10 // -> (x, [], 5), =, 10 // -> methodCall(x, "putAt", [5, 10]) do { if (true && ENABLE_EARLY_BINDING){ Class typeclass = leftBinExpr.getLeftExpression().getTypeClass(); if (typeclass == null) { break; } if (typeclass == Map.class) {// call aMap.put() load(expression.getRightExpression()); // let's leave a copy of the value on the stack. cv.visitInsn(DUP); final Variable rightTemp = storeInTemp("rightTemp", expression.getRightExpression().getType()); // VariableExpression tempVarExp = new VariableExpression(rightTemp.getName(), expression.getRightExpression().getType()); final Class rclass = expression.getRightExpression().getTypeClass(); BytecodeExpression loadTempByteCode = new BytecodeExpression() { public void visit(GroovyCodeVisitor visitor) { cv.visitVarInsn(ALOAD, rightTemp.getIndex()); } protected void resolveType(AsmClassGenerator resolver) { setTypeClass(rclass); } }; visitMethodCallExpression( new MethodCallExpression( leftBinExpr.getLeftExpression(), "put", new ArgumentListExpression( new Expression[] { leftBinExpr.getRightExpression(), loadTempByteCode}))); cv.visitInsn(POP); // pop the put method return removeVar(rightTemp); return; } else if (typeclass == List.class){ // call DefaultGroovyMethods.putAt()V // DefaultGroovyMethods.putAt(x, 5, "c"); this is faster thangoing thru metaclass // this method does not return any value. so indicate this fact in the expression load(expression.getRightExpression()); // let's leave a copy of the value on the stack. this is really lazy. cv.visitInsn(DUP); final Variable rightTemp = storeInTemp("rightTemp", expression.getRightExpression().getType()); // VariableExpression tempVarExp = new VariableExpression(rightTemp.getName(), expression.getRightExpression().getType()); final Class rclass = expression.getRightExpression().getTypeClass(); BytecodeExpression loadTempBytes = new BytecodeExpression() { public void visit(GroovyCodeVisitor visitor) { cv.visitVarInsn(ALOAD, rightTemp.getIndex()); } protected void resolveType(AsmClassGenerator resolver) { setTypeClass(rclass); } }; visitMethodCallExpression( new MethodCallExpression( new ClassExpression(DefaultGroovyMethods.class), "putAt", new ArgumentListExpression( new Expression[] { leftBinExpr.getLeftExpression(), leftBinExpr.getRightExpression(), loadTempBytes }))); removeVar(rightTemp); return; } else { break; } } } while (false); visitMethodCallExpression( new MethodCallExpression( leftBinExpr.getLeftExpression(), "putAt", new ArgumentListExpression( new Expression[] { leftBinExpr.getRightExpression(), expression.getRightExpression()}))); // cv.visitInsn(POP); //this is realted to isPopRequired() return; } } // lets evaluate the RHS then hopefully the LHS will be a field leftHandExpression = false; Expression rightExpression = expression.getRightExpression(); String type = getLHSType(leftExpression); if (type != null) { //System.out.println("### expression: " + leftExpression); //System.out.println("### type: " + type); // lets not cast for primitive types as we handle these in field setting etc if (BytecodeHelper.isPrimitiveType(type)) { rightExpression.visit(this); } else { if (ENABLE_EARLY_BINDING) { if (leftExpression.isDynamic()) { // br the previous if() probably should check this too! visitAndAutoboxBoolean(rightExpression); } else { if (type.equals(rightExpression.getType())) { visitAndAutoboxBoolean(rightExpression); } else { if (rightExpression instanceof ConstantExpression && ((ConstantExpression)rightExpression).getValue() == null) { cv.visitInsn(ACONST_NULL); } else { visitCastExpression(new CastExpression(type, rightExpression)); } } } } else if (!type.equals("java.lang.Object")){ visitCastExpression(new CastExpression(type, rightExpression)); } else { visitAndAutoboxBoolean(rightExpression); } } } else { visitAndAutoboxBoolean(rightExpression); } // br: attempt to pass type info from right to left for assignment if (ENABLE_EARLY_BINDING) { Class rc = rightExpression.getTypeClass(); if (rc != null && rc.isArray()) { Class elemType = rc.getComponentType(); if (elemType.isPrimitive()) { visitClassExpression(new ClassExpression(elemType)); convertPrimitiveArray.call(cv); cast(loadClass(BytecodeHelper.formatNameForClassLoading(elemType.getName() + "[]"))); } } if (leftExpression.isDynamic() ) { // propagate the type from right to left if the left is dynamic if (!(leftExpression instanceof FieldExpression ) && !(leftExpression instanceof PropertyExpression)) copyTypeClass(leftExpression, rightExpression); } else { Class lc = leftExpression.getTypeClass();// Class rc = rightExpression.getTypeClass(); if (lc != null && rc != null && !lc.isAssignableFrom(rc) && !lc.isPrimitive()) { // let's use extended conversion logic in the invoker class. if (!lc.isArray()) { visitClassExpression(new ClassExpression(lc)); asTypeMethod.call(cv); helper.doCast(lc); } else { // may not need this, since variable type converts primitive array to object array automatically Class elemType = lc.getComponentType(); if (elemType.isPrimitive()) { // let's allow type copy for primitive array, meaning [i can be changed to [Integer copyTypeClass(leftExpression, rightExpression); } } } } } cv.visitInsn(DUP); // to leave a copy of the rightexpression value on the stack after the assignment. leftHandExpression = true; leftExpression.visit(this); leftHandExpression = false; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/0e621fdecf3e8ab9db2fe9eea10bae5d2dc4b695/AsmClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5956,
5812,
12,
5905,
2300,
2652,
13,
288,
3639,
309,
261,
29377,
67,
9250,
7076,
67,
2739,
13,
288,
5411,
2652,
18,
10828,
12,
2211,
1769,
5411,
309,
261,
8692,
18,
291,
559,
12793,
10756,
288,
7734,
309,
261,
8692,
18,
588,
4726,
2300,
7675,
588,
559,
797,
1435,
422,
6988,
18,
2399,
13,
288,
10792,
18084,
2932,
6459,
460,
7226,
2258,
603,
2145,
948,
4889,
434,
6661,
18,
315,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
5371,
2002,
2300,
273,
2652,
18,
588,
3910,
2300,
5621,
3639,
309,
261,
4482,
2300,
1276,
7896,
2300,
13,
288,
5411,
7896,
2300,
2002,
9913,
4742,
273,
261,
5905,
2300,
13,
2002,
2300,
31,
5411,
309,
261,
4482,
9913,
4742,
18,
588,
2988,
7675,
588,
559,
1435,
422,
7658,
18,
10066,
67,
19716,
67,
21217,
13,
288,
7734,
368,
14557,
1453,
333,
6661,
358,
279,
31855,
3726,
598,
279,
7734,
368,
707,
745,
7734,
368,
425,
18,
75,
18,
619,
63,
25,
65,
273,
1728,
7734,
368,
317,
261,
92,
16,
5378,
16,
1381,
3631,
273,
16,
1728,
7734,
368,
317,
707,
1477,
12,
92,
16,
315,
458,
861,
3113,
306,
25,
16,
1728,
5717,
7734,
741,
288,
10792,
309,
261,
3767,
597,
6693,
2782,
67,
9250,
7076,
67,
2739,
15329,
13491,
1659,
618,
1106,
273,
2002,
9913,
4742,
18,
588,
3910,
2300,
7675,
588,
559,
797,
5621,
13491,
309,
261,
723,
1106,
422,
446,
13,
288,
18701,
898,
31,
13491,
289,
13491,
309,
261,
723,
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,
5956,
5812,
12,
5905,
2300,
2652,
13,
288,
3639,
309,
261,
29377,
67,
9250,
7076,
67,
2739,
13,
288,
5411,
2652,
18,
10828,
12,
2211,
1769,
5411,
309,
261,
8692,
18,
291,
559,
12793,
10756,
288,
7734,
309,
261,
8692,
18,
588,
4726,
2300,
7675,
588,
559,
797,
1435,
422,
6988,
18,
2399,
13,
288,
10792,
18084,
2932,
6459,
460,
7226,
2258,
603,
2145,
948,
4889,
434,
6661,
18,
315,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
5371,
2002,
2300,
273,
2652,
18,
588,
3910,
2300,
5621,
3639,
309,
261,
4482,
2300,
1276,
7896,
2300,
13,
288,
5411,
7896,
2300,
2002,
9913,
4742,
273,
261,
5905,
2300,
13,
2002,
2300,
31,
5411,
309,
261,
4482,
2
] |
|
protected java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, NAME_SIZE); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "PK_NAME", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL( "SELECT distinct " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " // isolate the update rule + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " // isolate the delete rule + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " // if we are looking for exported keys then primary table will be used + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") // if we are looking for imported keys then the foreign table will be used + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined + (primaryTable != null ? "frelname" : "prelname") + ",keyseq"); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[2] = rs.getBytes(1); //PKTABLE_NAME tuple[6] = rs.getBytes(2); //FKTABLE_NAME String fKeyName = rs.getString(3); String updateRule = rs.getString(10); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(11); if ( deleteRule != null ) { String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; tuple[10] = Integer.toString(action).getBytes(); } // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 int keySequence = rs.getInt(4); //KEY_SEQ // get the args String targs = rs.getString(9); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string StringTokenizer st = new StringTokenizer(targs, "\\000"); int advance = 4 + (keySequence - 1) * 2; for ( int i = 0; st.hasMoreTokens() && i < advance ; i++ ) st.nextToken(); // advance to the key column of interest if ( st.hasMoreTokens() ) { fkeyColumn = st.nextToken(); } if ( st.hasMoreTokens() ) { pkeyColumn = st.nextToken(); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(4); //KEY_SEQ tuple[11] = targs.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(5); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(6); boolean initiallyDeferred = rs.getBoolean(7); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return connection.getResultSet(null, f, tuples, "OK", 1); }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6290,
18,
4669,
18,
13198,
588,
24934,
31140,
2396,
12,
780,
7199,
16,
780,
4821,
16,
780,
8258,
1388,
16,
780,
12774,
1388,
13,
15069,
23116,
202,
95,
202,
202,
974,
74,
8526,
33,
2704,
974,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
7775,
67,
14130,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
7775,
67,
55,
10390,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
22,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
7775,
67,
1985,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
23,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
11009,
67,
1985,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
24,
65,
33,
2704,
974,
12,
4071,
10837,
13121,
7775,
67,
14130,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
25,
65,
33,
2704,
974,
12,
4071,
10837,
13121,
7775,
67,
55,
10390,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
26,
65,
33,
2704,
974,
12,
4071,
10837,
13121,
7775,
67,
1985,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
27,
65,
33,
2704,
974,
12,
4071,
10837,
13121,
11009,
67,
1985,
3113,
77,
58,
22483,
19105,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6290,
18,
4669,
18,
13198,
588,
24934,
31140,
2396,
12,
780,
7199,
16,
780,
4821,
16,
780,
8258,
1388,
16,
780,
12774,
1388,
13,
15069,
23116,
202,
95,
202,
202,
974,
74,
8526,
33,
2704,
974,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
7775,
67,
14130,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
21,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
7775,
67,
55,
10390,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
22,
65,
33,
2704,
974,
12,
4071,
10837,
8784,
7775,
67,
1985,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
2
] |
||
if (_tunnelCount != null) { config.setProperty("option.inbound.quantity", _tunnelCount); config.setProperty("option.outbound.quantity", _tunnelCount);
|
if (_tunnelQuantity != null) { config.setProperty("option.inbound.quantity", _tunnelQuantity); config.setProperty("option.outbound.quantity", _tunnelQuantity);
|
private void updateConfigGeneric(Properties config) { config.setProperty("type", _type); if (_name != null) config.setProperty("name", _name); if (_description != null) config.setProperty("description", _description); if (_i2cpHost != null) config.setProperty("i2cpHost", _i2cpHost); if ( (_i2cpPort != null) && (_i2cpPort.trim().length() > 0) ) config.setProperty("i2cpPort", _i2cpPort); else config.setProperty("i2cpPort", "7654"); if (_customOptions != null) { StringTokenizer tok = new StringTokenizer(_customOptions); while (tok.hasMoreTokens()) { String pair = tok.nextToken(); int eq = pair.indexOf('='); if ( (eq <= 0) || (eq >= pair.length()) ) continue; String key = pair.substring(0, eq); String val = pair.substring(eq+1); if ("inbound.length".equals(key)) continue; if ("outbound.length".equals(key)) continue; if ("inbound.quantity".equals(key)) continue; if ("outbound.quantity".equals(key)) continue; if ("inbound.nickname".equals(key)) continue; if ("outbound.nickname".equals(key)) continue; if ("i2p.streaming.connectDelay".equals(key)) continue; if ("i2p.streaming.maxWindowSize".equals(key)) continue; config.setProperty("option." + key, val); } } config.setProperty("startOnLoad", _startOnLoad + ""); if (_tunnelCount != null) { config.setProperty("option.inbound.quantity", _tunnelCount); config.setProperty("option.outbound.quantity", _tunnelCount); } if (_tunnelDepth != null) { config.setProperty("option.inbound.length", _tunnelDepth); config.setProperty("option.outbound.length", _tunnelDepth); } if (_connectDelay) config.setProperty("option.i2p.streaming.connectDelay", "1000"); else config.setProperty("option.i2p.streaming.connectDelay", "0"); if (_name != null) { if ( ((!"client".equals(_type)) && (!"httpclient".equals(_type))&& (!"ircclient".equals(_type))) || (!_sharedClient) ) { config.setProperty("option.inbound.nickname", _name); config.setProperty("option.outbound.nickname", _name); } else { config.setProperty("option.inbound.nickname", CLIENT_NICKNAME); config.setProperty("option.outbound.nickname", CLIENT_NICKNAME); } } if ("interactive".equals(_profile)) config.setProperty("option.i2p.streaming.maxWindowSize", "1"); else config.remove("option.i2p.streaming.maxWindowSize"); }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/b222cd43f4571f4e4923e1cf9516f44a31b57aab/IndexBean.java/buggy/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
809,
7014,
12,
2297,
642,
13,
288,
3639,
642,
18,
542,
1396,
2932,
723,
3113,
389,
723,
1769,
3639,
309,
261,
67,
529,
480,
446,
13,
5411,
642,
18,
542,
1396,
2932,
529,
3113,
389,
529,
1769,
3639,
309,
261,
67,
3384,
480,
446,
13,
5411,
642,
18,
542,
1396,
2932,
3384,
3113,
389,
3384,
1769,
3639,
309,
261,
67,
77,
22,
4057,
2594,
480,
446,
13,
5411,
642,
18,
542,
1396,
2932,
77,
22,
4057,
2594,
3113,
389,
77,
22,
4057,
2594,
1769,
3639,
309,
261,
261,
67,
77,
22,
4057,
2617,
480,
446,
13,
597,
261,
67,
77,
22,
4057,
2617,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
262,
5411,
642,
18,
542,
1396,
2932,
77,
22,
4057,
2617,
3113,
389,
77,
22,
4057,
2617,
1769,
3639,
469,
5411,
642,
18,
542,
1396,
2932,
77,
22,
4057,
2617,
3113,
315,
6669,
6564,
8863,
7734,
309,
261,
67,
3662,
1320,
480,
446,
13,
288,
5411,
16370,
946,
273,
394,
16370,
24899,
3662,
1320,
1769,
5411,
1323,
261,
17692,
18,
5332,
7417,
5157,
10756,
288,
7734,
514,
3082,
273,
946,
18,
4285,
1345,
5621,
7734,
509,
7555,
273,
3082,
18,
31806,
2668,
2218,
1769,
7734,
309,
261,
261,
11253,
1648,
374,
13,
747,
261,
11253,
1545,
3082,
18,
2469,
10756,
262,
10792,
1324,
31,
7734,
514,
498,
273,
3082,
18,
28023,
12,
20,
16,
7555,
1769,
7734,
514,
1244,
273,
3082,
18,
28023,
12,
11253,
15,
21,
1769,
7734,
309,
7566,
267,
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,
1089,
809,
7014,
12,
2297,
642,
13,
288,
3639,
642,
18,
542,
1396,
2932,
723,
3113,
389,
723,
1769,
3639,
309,
261,
67,
529,
480,
446,
13,
5411,
642,
18,
542,
1396,
2932,
529,
3113,
389,
529,
1769,
3639,
309,
261,
67,
3384,
480,
446,
13,
5411,
642,
18,
542,
1396,
2932,
3384,
3113,
389,
3384,
1769,
3639,
309,
261,
67,
77,
22,
4057,
2594,
480,
446,
13,
5411,
642,
18,
542,
1396,
2932,
77,
22,
4057,
2594,
3113,
389,
77,
22,
4057,
2594,
1769,
3639,
309,
261,
261,
67,
77,
22,
4057,
2617,
480,
446,
13,
597,
261,
67,
77,
22,
4057,
2617,
18,
5290,
7675,
2469,
1435,
405,
374,
13,
262,
5411,
642,
18,
2
] |
db.set_h_ffactor(args.ffactor);
|
db.setHashFillFactor(args.ffactor);
|
public void set_h_ffactor(DbDispatcher server, __db_h_ffactor_msg args, __db_h_ffactor_reply reply) { try { db.set_h_ffactor(args.ffactor); reply.status = 0; } catch(DbException e) { e.printStackTrace(DbServer.err); reply.status = e.get_errno(); } }
|
9203 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9203/1765c2598bb92e59ff55807fab4076d1b5d838f2/RpcDb.java/buggy/db/rpc_server/java/RpcDb.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
444,
67,
76,
67,
74,
6812,
12,
4331,
6681,
1438,
16,
202,
202,
972,
1966,
67,
76,
67,
74,
6812,
67,
3576,
833,
16,
1001,
1966,
67,
76,
67,
74,
6812,
67,
10629,
4332,
13,
202,
95,
202,
202,
698,
288,
1082,
202,
1966,
18,
542,
67,
76,
67,
74,
6812,
12,
1968,
18,
74,
6812,
1769,
1082,
202,
10629,
18,
2327,
273,
374,
31,
202,
202,
97,
1044,
12,
4331,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
12,
4331,
2081,
18,
370,
1769,
1082,
202,
10629,
18,
2327,
273,
425,
18,
588,
67,
19088,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
918,
444,
67,
76,
67,
74,
6812,
12,
4331,
6681,
1438,
16,
202,
202,
972,
1966,
67,
76,
67,
74,
6812,
67,
3576,
833,
16,
1001,
1966,
67,
76,
67,
74,
6812,
67,
10629,
4332,
13,
202,
95,
202,
202,
698,
288,
1082,
202,
1966,
18,
542,
67,
76,
67,
74,
6812,
12,
1968,
18,
74,
6812,
1769,
1082,
202,
10629,
18,
2327,
273,
374,
31,
202,
202,
97,
1044,
12,
4331,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
12,
4331,
2081,
18,
370,
1769,
1082,
202,
10629,
18,
2327,
273,
425,
18,
588,
67,
19088,
5621,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static ClientKey getBaseKey(FreenetURI origURI) { return null;
|
public static ClientKey getBaseKey(FreenetURI origURI) throws MalformedURLException { if(origURI.getKeyType().equals("CHK")) return new ClientCHK(origURI); throw new UnsupportedOperationException();
|
public static ClientKey getBaseKey(FreenetURI origURI) { // TODO Auto-generated method stub return null; }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/8d002621bf8fa6f968dadbeff67dc57cea479e65/ClientKey.java/buggy/src/freenet/keys/ClientKey.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
2445,
653,
8297,
653,
12,
42,
2842,
278,
3098,
1647,
3098,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2445,
653,
8297,
653,
12,
42,
2842,
278,
3098,
1647,
3098,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 ListaObjetoBean dameCursosCumplan(ObjetoBean curso,ObjetoBean aula,ObjetoBean horario ){ try{ //primera hacemos una consulta para ver los cursos que cumplen los criterios del bean curso ObjetoBBDD iscurso= ConversorBeanBBDD.convierteBeanABBDD(curso); ObjetoCriterio critCurso = this.crearObjetoCriterioAdecuado(iscurso); ListaObjetoBBDD cursosCumplenCurso= this.inicializaTabla(this.crearTablaAdecuada(iscurso)).consultar(critCurso); ListaObjetoBBDD cursosResultado= this.creador.getCreadorListaObjetoBBDD().crear(); ObjetoBBDD cursoActual; ObjetoBBDD horCursoAula; ObjetoCriterio critHorAulaCurso; ListaObjetoBBDD cursosHorAula; // Para cada curso que cumple los criterios establecidos por el bean curso pasado como parmtero, vemos si tambien cumplen // los criterios de aula y horario y si es asi lo incluimos a la lista de cursos que cumplen todos los requisitos. for(int i=0;i<cursosCumplenCurso.tamanio();i++){ cursoActual = cursosCumplenCurso.dameObjeto(i); horCursoAula= this.creador.getCreadorObjetoBBDD().crear(this.creador.getCreadorObjetoBBDD().IshorarioHasIsaula); horCursoAula.cambiaValor(Constantes.ID_HAS_ISCURSO_IDISCURSO,cursoActual.dameValor(Constantes.ID_ISCURSO_IDISCURSO)); String idAula=aula.dameValor(Constantes.ID_ISAULA); String idHorario= horario.dameValor(Constantes.ID_ISHORARIO); if(idAula!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,idAula); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,""); if (idHorario!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,idHorario); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,""); critHorAulaCurso = this.crearObjetoCriterioAdecuado(horCursoAula); cursosHorAula= this.inicializaTabla(this.crearTablaAdecuada(horCursoAula)).consultar(critHorAulaCurso); if(!cursosHorAula.esVacio()) cursosResultado.insertar(cursosResultado.tamanio(),cursoActual); } return ConversorBeanBBDD.convierteListaBBDD(cursosResultado); } catch(Exception e){ e.printStackTrace(); return null; } }
|
55528 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55528/2c1a036540e065020fa7098b6791c6ed0af491d9/BBDDFachada.java/buggy/virtuaula/src/subSistemaBBDD/BBDDFachada.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
682,
69,
2675,
11453,
1919,
464,
339,
2408,
87,
538,
39,
379,
7088,
12,
2675,
11453,
3381,
1397,
2048,
16,
2675,
11453,
3381,
69,
5552,
16,
2675,
11453,
3381,
76,
280,
25124,
15329,
202,
202,
698,
95,
1082,
202,
759,
683,
4417,
9795,
623,
26719,
31172,
8559,
406,
438,
297,
21851,
383,
1017,
25152,
538,
1857,
28538,
28907,
383,
1017,
1091,
7441,
3771,
14496,
1397,
2048,
1082,
202,
2675,
11453,
9676,
40,
1669,
1397,
2048,
33,
442,
2496,
280,
3381,
9676,
5698,
18,
591,
522,
264,
736,
3381,
2090,
38,
5698,
12,
1397,
2048,
1769,
1082,
202,
2675,
11453,
39,
1091,
77,
504,
583,
2408,
2048,
33,
2211,
18,
1793,
297,
2675,
11453,
39,
1091,
1594,
37,
4924,
89,
6821,
12,
291,
1397,
2048,
1769,
6862,
202,
682,
69,
2675,
11453,
9676,
5698,
2789,
538,
39,
379,
28907,
2408,
2048,
33,
2211,
18,
267,
22354,
452,
69,
5661,
11821,
12,
2211,
18,
1793,
297,
5661,
11821,
37,
4924,
89,
16524,
12,
291,
1397,
2048,
13,
2934,
8559,
406,
297,
12,
27826,
2408,
2048,
1769,
1082,
202,
682,
69,
2675,
11453,
9676,
5698,
2789,
538,
1253,
6821,
33,
2211,
18,
71,
896,
280,
18,
588,
39,
896,
280,
682,
69,
2675,
11453,
9676,
5698,
7675,
1793,
297,
5621,
1082,
202,
2675,
11453,
9676,
5698,
1397,
2048,
11266,
31,
1082,
202,
2675,
11453,
9676,
5698,
76,
280,
2408,
2048,
37,
5552,
31,
1082,
202,
2675,
11453,
39,
1091,
77,
504,
583,
44,
280,
37,
5552,
2408,
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,
682,
69,
2675,
11453,
1919,
464,
339,
2408,
87,
538,
39,
379,
7088,
12,
2675,
11453,
3381,
1397,
2048,
16,
2675,
11453,
3381,
69,
5552,
16,
2675,
11453,
3381,
76,
280,
25124,
15329,
202,
202,
698,
95,
1082,
202,
759,
683,
4417,
9795,
623,
26719,
31172,
8559,
406,
438,
297,
21851,
383,
1017,
25152,
538,
1857,
28538,
28907,
383,
1017,
1091,
7441,
3771,
14496,
1397,
2048,
1082,
202,
2675,
11453,
9676,
40,
1669,
1397,
2048,
33,
442,
2496,
280,
3381,
9676,
5698,
18,
591,
522,
264,
736,
3381,
2090,
38,
5698,
12,
1397,
2048,
1769,
1082,
202,
2675,
11453,
39,
1091,
77,
504,
583,
2408,
2048,
33,
2211,
18,
1793,
297,
2675,
11453,
39,
1091,
1594,
2
] |
||
public AbstractFormatterFactory getFormatterFactory ()
|
public AbstractFormatterFactory getFormatterFactory()
|
public AbstractFormatterFactory getFormatterFactory () { return formatterFactory; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JFormattedTextField.java/buggy/core/src/classpath/javax/javax/swing/JFormattedTextField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4115,
5074,
1733,
25127,
1733,
1435,
225,
288,
565,
327,
4453,
1733,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4115,
5074,
1733,
25127,
1733,
1435,
225,
288,
565,
327,
4453,
1733,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bookmarkList.addChild("li").addChild("a", "href", "/" + b.getKey(), b.getDesc());
|
bookmarkList.addChild("li").addChild("a", "href", '/' + b.getKey(), b.getDesc());
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { boolean advancedDarknetOutputEnabled = core.getToadletContainer().isAdvancedDarknetEnabled(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Add a Bookmark"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Confirm Bookmark Addition")); HTMLNode addForm = ctx.getPageMaker().getContentNode(infobox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); addForm.addChild("#", "Please confirm that you want to add the key " + request.getParam("newbookmark") + " to your bookmarks and enter the description that you would prefer:"); addForm.addChild("br"); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", request.getParam("newbookmark") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "name", request.getParam("desc") }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); addForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "addbookmark", "Add bookmark" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.getParam(GenericReadFilterCallback.magicHTTPEscapeString).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Link to external resources"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode warnbox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "External link")); HTMLNode externalLinkForm = ctx.getPageMaker().getContentNode(warnbox).addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); // FIXME: has request.getParam(GenericReadFilterCallback.magicHTTPEscapeString) been sanityzed ? final String target = request.getParam(GenericReadFilterCallback.magicHTTPEscapeString); externalLinkForm.addChild("#", "Please confirm that you want to go to " + target + ". WARNING: You are leaving FREENET! Clicking on this link WILL seriously jeopardize your anonymity!. It is strongly recommended not to do so!"); externalLinkForm.addChild("br"); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", GenericReadFilterCallback.magicHTTPEscapeString, target }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); externalLinkForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "Go", "Go to the specified link" }); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } else if (request.isParameterSet("managebookmarks")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Bookmark Manager"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { infoboxContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode manageForm = infoboxContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "post" }); HTMLNode bookmarkList = manageForm.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); HTMLNode bookmark = bookmarkList.addChild("li", "style", "clear: right;"); /* TODO */ bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "delete_" + b.hashCode(), "Delete", "float: right;" }); bookmark.addChild("input", new String[] { "type", "name", "value", "style" }, new String[] { "submit", "edit_" + b.hashCode(), "Edit", "float: right;" }); bookmark.addChild("a", "href", "/" + b.getKey(), b.getDesc()); } manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); manageForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "managebookmarks", "yes" }); } contentNode.addChild(createBookmarkEditForm(ctx.getPageMaker(), MODE_ADD, null, "", "")); this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("exit")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Shutdown")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to shut down your Freenet node?"); HTMLNode shutdownForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); shutdownForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "shutdownconfirm", "Shut down" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isParameterSet("restart")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Restart")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you want to restart your Freenet node?"); HTMLNode restartForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "POST" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restartconfirm", "Restart" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Freenet FProxy Homepage of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isTestnetEnabled()) { HTMLNode testnetBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Testnet Mode!")); HTMLNode testnetContent = ctx.getPageMaker().getContentNode(testnetBox); testnetContent.addChild("#", "This node runs in testnet mode. This WILL seriously jeopardize your anonymity!"); } String useragent = (String)ctx.getHeaders().get("user-agent"); if (useragent != null) { useragent = useragent.toLowerCase(); if ((useragent.indexOf("msie") > -1) && (useragent.indexOf("opera") == -1)) { HTMLNode browserWarningBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Security Risk!")); HTMLNode browserWarningContent = ctx.getPageMaker().getContentNode(browserWarningBox); browserWarningContent.addChild("#", "You appear to be using Microsoft Internet Explorer. This means that some sites within Freenet may be able to compromise your anonymity!"); } } // Alerts contentNode.addChild(core.alerts.createAlerts()); // Fetch-a-key box HTMLNode fetchKeyBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "Fetch a Key")); HTMLNode fetchKeyContent = ctx.getPageMaker().getContentNode(fetchKeyBox); fetchKeyContent.addAttribute("id", "keyfetchbox"); HTMLNode fetchKeyForm = fetchKeyContent.addChild("form", new String[] { "action", "method" }, new String[] { "/", "get" }); fetchKeyForm.addChild("#", "Key: "); fetchKeyForm.addChild("input", new String[] { "type", "size", "name" }, new String[] { "text", "80", "key" }); fetchKeyForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Fetch" }); // Bookmarks HTMLNode bookmarkBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", "My Bookmarks")); HTMLNode bookmarkContent = ctx.getPageMaker().getContentNode(bookmarkBox); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { bookmarkContent.addChild("#", "You currently do not have any bookmarks defined."); } else { HTMLNode bookmarkList = bookmarkContent.addChild("ul", "id", "bookmarks"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); bookmarkList.addChild("li").addChild("a", "href", "/" + b.getKey(), b.getDesc()); } } bookmarkContent.addChild("div", "id", "bookmarkedit").addChild("a", new String[] { "href", "class" }, new String[] { "?managebookmarks", "interfacelink" }, "Edit my bookmarks"); // Version info and Quit Form HTMLNode versionBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Version Information & Node Control")); HTMLNode versionContent = ctx.getPageMaker().getContentNode(versionBox); versionContent.addChild("#", "Freenet " + Version.nodeVersion + " Build #" + Version.buildNumber() + " r" + Version.cvsRevision); versionContent.addChild("br"); versionContent.addChild("#", "Freenet-ext Build #" + NodeStarter.extBuildNumber + " r" + NodeStarter.extRevisionNumber); versionContent.addChild("br"); HTMLNode shutdownForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); shutdownForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "exit" }); shutdownForm.addChild("input", new String[] { "type", "value" }, new String[] { "submit", "Shutdown the node" }); if(node.isUsingWrapper()){ HTMLNode restartForm = versionContent.addChild("form", new String[] { "action", "method" }, new String[] { ".", "GET" }); restartForm.addChild("input", new String[] { "type", "name" }, new String[] { "hidden", "restart" }); restartForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "restart2", "Restart the node" }); } // Activity HTMLNode activityBox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Current Activity")); HTMLNode activityContent = ctx.getPageMaker().getContentNode(activityBox); HTMLNode activityList = activityContent.addChild("ul", "id", "activity"); activityList.addChild("li", "Inserts: " + node.getNumInserts()); activityList.addChild("li", "Requests: " + node.getNumRequests()); activityList.addChild("li", "Transferring Requests: " + node.getNumTransferringRequests()); if (advancedDarknetOutputEnabled) { activityList.addChild("li", "ARK Fetch Requests: " + node.getNumARKFetchers()); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/62fd59041864b4ed1f43adc676de6bfb5ea977f3/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
6494,
16111,
40,
1313,
2758,
1447,
1526,
273,
2922,
18,
588,
774,
361,
1810,
2170,
7675,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
430,
261,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
4870,
907,
1363,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1964,
907,
2932,
986,
279,
20258,
3355,
8863,
1082,
202,
4870,
907,
913,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1350,
907,
12,
2433,
907,
1769,
1082,
202,
4870,
907,
1123,
2147,
273,
913,
907,
18,
1289,
1763,
12,
5900,
18,
588,
1964,
12373,
7675,
588,
966,
2147,
2932,
11269,
20258,
3355,
1436,
608,
7923,
1769,
1082,
202,
4870,
907,
527,
1204,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1350,
907,
12,
1376,
2147,
2934,
1289,
1763,
2932,
687,
3113,
394,
514,
8526,
288,
315,
1128,
3113,
315,
2039,
6,
19879,
394,
514,
8526,
288,
2206,
3113,
315,
2767,
6,
15549,
1082,
202,
1289,
1204,
18,
1289,
1763,
2932,
7,
3113,
315,
8496,
6932,
716,
1846,
2545,
358,
527,
326,
498,
315,
397,
590,
18,
588,
786,
2932,
2704,
3618,
3355,
7923,
397,
315,
358,
3433,
13696,
87,
471,
6103,
326,
2477,
716,
1846,
4102,
13256,
2773,
1769,
1082,
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,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
6494,
16111,
40,
1313,
2758,
1447,
1526,
273,
2922,
18,
588,
774,
361,
1810,
2170,
7675,
291,
23618,
40,
1313,
2758,
1526,
5621,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
430,
261,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
4870,
907,
1363,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1964,
907,
2932,
986,
279,
20258,
3355,
8863,
1082,
202,
4870,
907,
913,
907,
273,
1103,
18,
588,
1964,
12373,
7675,
588,
1350,
907,
12,
2
] |
sn = (SimpleNode)parser.parse(new StringReader(expr));
|
sn = parser.parse(new StringReader(expr));
|
public static void main(String[] args) throws IOException { List expressions = generateTestCases(); FileWriter fw = new FileWriter( "c:\\Program files\\eclipse\\workspace\\contractTaglets\\expr.html"); fw.write("<html>"); fw.write("\n<style type='text/css'>"); fw.write("\n.contract_contractKeyword {color: red}"); fw.write("\n.contract_javaKeyword {color: blue}"); fw.write("\n</style>"); fw.write("\n<body>"); Parser parser = new Parser(new StringReader(";")); Iterator iter = expressions.iterator(); while (iter.hasNext()) { SimpleNode sn = null; String expr = ""; try { expr = (String)iter.next(); sn = (SimpleNode)parser.parse(new StringReader(expr)); StringBuffer htmlResult = new StringBuffer(""); HtmlGenerator htmlGenerator = new HtmlGenerator(); htmlGenerator.visit(sn, htmlResult); System.out.println(htmlResult.toString()); fw.write("\n<br />------------------------------------------------"); fw.write("\n<br />" + expr); fw.write("\n<br />" + htmlResult.toString()); } catch (Exception exc) { System.out.println("Exception!!!!!!!!!!!!!!!!!!!!!!"); exc.printStackTrace(); System.out.println(expr); System.out.println(); } } fw.write("\n<br /></body></html>"); fw.close(); }
|
14797 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14797/a7568eedab2e778695ffa0ce0ee31759b0d5cc5f/_Test_JexlExpression.java/buggy/contractTaglets/src/test/be/peopleware/taglet/_Test_JexlExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
987,
8041,
273,
2103,
4709,
30744,
5621,
3639,
24639,
7600,
273,
394,
24639,
12,
565,
315,
71,
31027,
9459,
1390,
1695,
20416,
1695,
14915,
1695,
16351,
1805,
17307,
1695,
8638,
18,
2620,
8863,
565,
7600,
18,
2626,
2932,
32,
2620,
2984,
1769,
565,
7600,
18,
2626,
31458,
82,
32,
4060,
618,
2218,
955,
19,
5212,
28533,
1769,
565,
7600,
18,
2626,
31458,
82,
18,
16351,
67,
16351,
8736,
288,
3266,
30,
1755,
1532,
1769,
565,
7600,
18,
2626,
31458,
82,
18,
16351,
67,
6290,
8736,
288,
3266,
30,
8024,
1532,
1769,
565,
7600,
18,
2626,
31458,
82,
1757,
4060,
2984,
1769,
565,
7600,
18,
2626,
31458,
82,
32,
3432,
2984,
1769,
565,
6783,
2082,
273,
394,
6783,
12,
2704,
26227,
2932,
4868,
10019,
565,
4498,
1400,
273,
8041,
18,
9838,
5621,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
1377,
4477,
907,
4556,
273,
446,
31,
1377,
514,
3065,
273,
1408,
31,
1377,
775,
288,
3639,
3065,
273,
261,
780,
13,
2165,
18,
4285,
5621,
3639,
4556,
273,
2082,
18,
2670,
12,
2704,
26227,
12,
8638,
10019,
3639,
6674,
1729,
1253,
273,
394,
6674,
2932,
8863,
7734,
5430,
3908,
1729,
3908,
273,
394,
5430,
3908,
5621,
13491,
1729,
3908,
18,
11658,
12,
8134,
16,
1729,
1253,
1769,
7734,
2332,
18,
659,
18,
8222,
12,
2620,
1253,
18,
10492,
10663,
3639,
7600,
18,
2626,
31458,
82,
32,
2848,
20954,
9634,
8863,
3639,
7600,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
987,
8041,
273,
2103,
4709,
30744,
5621,
3639,
24639,
7600,
273,
394,
24639,
12,
565,
315,
71,
31027,
9459,
1390,
1695,
20416,
1695,
14915,
1695,
16351,
1805,
17307,
1695,
8638,
18,
2620,
8863,
565,
7600,
18,
2626,
2932,
32,
2620,
2984,
1769,
565,
7600,
18,
2626,
31458,
82,
32,
4060,
618,
2218,
955,
19,
5212,
28533,
1769,
565,
7600,
18,
2626,
31458,
82,
18,
16351,
67,
16351,
8736,
288,
3266,
30,
1755,
1532,
1769,
565,
7600,
18,
2626,
31458,
82,
18,
16351,
67,
6290,
8736,
288,
3266,
30,
8024,
1532,
1769,
565,
7600,
18,
2626,
31458,
82,
1757,
4060,
2984,
1769,
565,
7600,
18,
2626,
2
] |
boolean ret = false;
|
private boolean doSingleUpload(Uploader uploader, Socket socket, String host, int index) throws IOException { long startTime=-1; debug(uploader+ " starting single upload"); // note if this is a Browse Host Upload... boolean isBHUploader=(uploader.getState() == Uploader.BROWSE_HOST); // check if it complies with the restrictions. // and set the uploader state accordingly int queued = -1; boolean ret = false; if(!isBHUploader) { //testing and book-keeping only if !browse host //Note the state at this point can be either FILE_NOT_FOUND, //BROWSE_HOST, PUSH_FAILED or CONNECTING if(uploader.getState()==Uploader.CONNECTING) { queued = insertAndTest(uploader, host, socket);//can throw IOEx debug(uploader+ " insert and test returned "+queued); Assert.that(queued!=-1); } //We are going to notify the gui about the new upload, and let //it decide what to do with it - will act depending on it's //state _callback.addUpload(uploader); FileDesc fd = uploader.getFileDesc(); if(fd != null) { fd.incrementAttemptedUploads(); _callback.handleSharedFileUpdate(fd.getFile()); } } if(queued == 1) { //we were queued socket.setSoTimeout(MAX_POLL_TIME); uploader.setState(Uploader.QUEUED); ret = true; } else if(queued == 2) { // we have been given a slot synchronized (this) { uploader.setState(Uploader.CONNECTING); _activeUploadList.add(uploader); } } //Note: We do not call connect() anymore. That's because connect would //never do anything in the case of a normal upload - becasue the //HTTPUploader already have a socket. connect() would only be executed // if a push was calling this method. //Now the acceptPushDownload method connects directly. // start doesn't throw an exception. rather, it // handles it internally. is this the correct // way to handle it? startTime=System.currentTimeMillis(); uploader.writeResponse(); debug(uploader+" Uploader wrote response"); if ( uploader.getState() == Uploader.UPLOADING || uploader.getState() == Uploader.CONNECTING ) { // somehow, some uploaders are getting through while // in the UPLOADING state // [never seen a connecting state... // but might as well check for it also] // FYI, these all seem to come from the vendor: // Java1.X.X[_0X] // IE: Java1.4.1_04, Java1.3.1, etc... // Also, all of them have the alternate location // of the local host IP addr. // this is considered a temporary bug fix. uploader.setState(Uploader.INTERRUPTED); } // check the state of the upload once the // writeResponse method has finished. if it is complete... if (uploader.getState() == Uploader.COMPLETE) { // then set a flag in the upload manager... _hadSuccesfulUpload = true; // is this necessary? -- i'm pretty sure it is. if ( !isBHUploader ) { FileDesc fd = uploader.getFileDesc(); if(fd != null) { fd.incrementCompletedUploads(); _callback.handleSharedFileUpdate(fd.getFile()); } } } //clean up long finishTime=System.currentTimeMillis(); synchronized(UploadManager.this) { //Report how quickly we uploaded the data, regardless of //whether the transfer was interrupted, unless we couldn't //connect. The client will ignore small amounts of data. if (startTime>0) reportUploadSpeed(finishTime-startTime, uploader.amountUploaded()); removeFromList(uploader); if (!isBHUploader) // it was added earlier if !BrowseHost - remove. _callback.removeUpload(uploader); return ret; } }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/79ca939dc72c6841572968a8a8c3639144e78318/UploadManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/UploadManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
741,
5281,
4777,
12,
28161,
25062,
16,
8758,
2987,
16,
4766,
565,
514,
1479,
16,
509,
770,
13,
1216,
1860,
288,
3639,
1525,
8657,
29711,
21,
31,
3639,
1198,
12,
6327,
264,
15,
315,
5023,
2202,
3617,
8863,
3639,
368,
4721,
309,
333,
353,
279,
605,
12481,
4893,
9414,
2777,
3639,
1250,
27057,
44,
28161,
28657,
6327,
264,
18,
588,
1119,
1435,
422,
1948,
6714,
18,
38,
11226,
1090,
67,
8908,
1769,
3639,
368,
866,
309,
518,
532,
5259,
598,
326,
17499,
18,
3639,
368,
471,
444,
326,
25062,
919,
15905,
3639,
509,
12234,
273,
300,
21,
31,
9079,
309,
12,
5,
291,
38,
44,
28161,
13,
288,
368,
3813,
310,
471,
6978,
17,
10102,
310,
1338,
309,
401,
25731,
1479,
5411,
368,
8067,
326,
919,
622,
333,
1634,
848,
506,
3344,
7527,
67,
4400,
67,
9294,
16,
2398,
368,
38,
11226,
1090,
67,
8908,
16,
28591,
67,
11965,
578,
21593,
1360,
5411,
309,
12,
6327,
264,
18,
588,
1119,
1435,
631,
28161,
18,
11032,
1360,
13,
288,
7734,
12234,
273,
2243,
1876,
4709,
12,
6327,
264,
16,
1479,
16,
2987,
1769,
759,
4169,
604,
1665,
424,
7734,
1198,
12,
6327,
264,
15,
315,
2243,
471,
1842,
2106,
13773,
19499,
1769,
7734,
5452,
18,
19056,
12,
19499,
5,
29711,
21,
1769,
5411,
289,
5411,
368,
3218,
854,
8554,
358,
5066,
326,
13238,
2973,
326,
394,
3617,
16,
471,
2231,
5411,
368,
305,
16288,
4121,
358,
741,
598,
518,
300,
903,
1328,
8353,
603,
518,
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,
741,
5281,
4777,
12,
28161,
25062,
16,
8758,
2987,
16,
4766,
565,
514,
1479,
16,
509,
770,
13,
1216,
1860,
288,
3639,
1525,
8657,
29711,
21,
31,
3639,
1198,
12,
6327,
264,
15,
315,
5023,
2202,
3617,
8863,
3639,
368,
4721,
309,
333,
353,
279,
605,
12481,
4893,
9414,
2777,
3639,
1250,
27057,
44,
28161,
28657,
6327,
264,
18,
588,
1119,
1435,
422,
1948,
6714,
18,
38,
11226,
1090,
67,
8908,
1769,
3639,
368,
866,
309,
518,
532,
5259,
598,
326,
17499,
18,
3639,
368,
471,
444,
326,
25062,
919,
15905,
3639,
509,
12234,
273,
300,
21,
31,
9079,
309,
12,
5,
291,
38,
44,
28161,
13,
288,
368,
3813,
310,
471,
6978,
17,
10102,
310,
2
] |
|
for( int i = 0; i < 256; i++ )
|
for( int i = 0; i < 256; i++ ) {
|
private void initBlock() { // blockNo++; mCrc.initialiseCRC(); last = -1; // ch = 0; for( int i = 0; i < 256; i++ ) inUse[ i ] = false; /* * 20 is just a paranoia constant */ allowableBlockSize = BASE_BLOCK_SIZE * blockSize100k - 20; }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/b95d90a13da3fb8d362982bc84652f1e03e8325e/CBZip2OutputStream.java/clean/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1768,
1435,
565,
288,
3639,
368,
3639,
1203,
2279,
9904,
31,
3639,
312,
39,
1310,
18,
6769,
784,
26803,
5621,
3639,
1142,
273,
300,
21,
31,
3639,
368,
3639,
462,
273,
374,
31,
3639,
364,
12,
509,
277,
273,
374,
31,
277,
411,
8303,
31,
277,
9904,
262,
288,
5411,
316,
3727,
63,
277,
308,
273,
629,
31,
3639,
1748,
540,
380,
4200,
353,
2537,
279,
779,
31922,
1155,
5381,
540,
1195,
3639,
30727,
22506,
273,
10250,
67,
11403,
67,
4574,
380,
13766,
6625,
79,
300,
4200,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1768,
1435,
565,
288,
3639,
368,
3639,
1203,
2279,
9904,
31,
3639,
312,
39,
1310,
18,
6769,
784,
26803,
5621,
3639,
1142,
273,
300,
21,
31,
3639,
368,
3639,
462,
273,
374,
31,
3639,
364,
12,
509,
277,
273,
374,
31,
277,
411,
8303,
31,
277,
9904,
262,
288,
5411,
316,
3727,
63,
277,
308,
273,
629,
31,
3639,
1748,
540,
380,
4200,
353,
2537,
279,
779,
31922,
1155,
5381,
540,
1195,
3639,
30727,
22506,
273,
10250,
67,
11403,
67,
4574,
380,
13766,
6625,
79,
300,
4200,
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
] |
final ErrorInfo errorInfo = new ErrorInfo(prop == null ? null : prop.getName(), errorMessage,
|
final ErrorInfo errorInfo = new ErrorInfo(myComponent, prop == null ? null : prop.getName(), errorMessage,
|
public void addError(final String inspectionId, @Nullable IProperty prop, @NotNull String errorMessage, @Nullable EditorQuickFixProvider editorQuickFixProvider) { if (myResults == null) { myResults = new ArrayList<ErrorInfo>(); } QuickFix[] quickFixes = QuickFix.EMPTY_ARRAY; if (editorQuickFixProvider != null) { quickFixes = new QuickFix[1]; quickFixes [0] = editorQuickFixProvider.createQuickFix(myEditor, myComponent); } final ErrorInfo errorInfo = new ErrorInfo(prop == null ? null : prop.getName(), errorMessage, myProfile.getErrorLevel(HighlightDisplayKey.find(inspectionId)), quickFixes); errorInfo.setInspectionId(inspectionId); myResults.add(errorInfo); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/6a384c23ca74b732817b78c9169186710a7d1d75/FormEditorErrorCollector.java/buggy/ui-designer/impl/com/intellij/uiDesigner/inspections/FormEditorErrorCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9501,
12,
6385,
514,
2763,
7017,
548,
16,
15604,
632,
13349,
467,
1396,
2270,
16,
15604,
632,
5962,
514,
9324,
16,
15604,
632,
13349,
18451,
13663,
8585,
2249,
4858,
13663,
8585,
2249,
13,
288,
565,
309,
261,
4811,
3447,
422,
446,
13,
288,
1377,
3399,
3447,
273,
394,
2407,
32,
668,
966,
34,
5621,
565,
289,
565,
19884,
8585,
8526,
9549,
8585,
281,
273,
19884,
8585,
18,
13625,
67,
8552,
31,
565,
309,
261,
9177,
13663,
8585,
2249,
480,
446,
13,
288,
1377,
9549,
8585,
281,
273,
394,
19884,
8585,
63,
21,
15533,
1377,
9549,
8585,
281,
306,
20,
65,
273,
4858,
13663,
8585,
2249,
18,
2640,
13663,
8585,
12,
4811,
6946,
16,
3399,
1841,
1769,
565,
289,
565,
727,
1068,
966,
23280,
273,
394,
1068,
966,
12,
4811,
1841,
16,
2270,
422,
446,
692,
446,
294,
2270,
18,
17994,
9334,
9324,
16,
4766,
2868,
3399,
4029,
18,
588,
668,
2355,
12,
16205,
4236,
653,
18,
4720,
12,
2679,
7017,
548,
13,
3631,
9549,
8585,
281,
1769,
565,
23280,
18,
542,
14985,
548,
12,
2679,
7017,
548,
1769,
565,
3399,
3447,
18,
1289,
12,
1636,
966,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9501,
12,
6385,
514,
2763,
7017,
548,
16,
15604,
632,
13349,
467,
1396,
2270,
16,
15604,
632,
5962,
514,
9324,
16,
15604,
632,
13349,
18451,
13663,
8585,
2249,
4858,
13663,
8585,
2249,
13,
288,
565,
309,
261,
4811,
3447,
422,
446,
13,
288,
1377,
3399,
3447,
273,
394,
2407,
32,
668,
966,
34,
5621,
565,
289,
565,
19884,
8585,
8526,
9549,
8585,
281,
273,
19884,
8585,
18,
13625,
67,
8552,
31,
565,
309,
261,
9177,
13663,
8585,
2249,
480,
446,
13,
288,
1377,
9549,
8585,
281,
273,
394,
19884,
8585,
63,
21,
15533,
1377,
9549,
8585,
281,
306,
20,
65,
273,
4858,
13663,
8585,
2249,
18,
2640,
13663,
8585,
12,
4811,
6946,
16,
3399,
1841,
1769,
2
] |
bind(parameterIndex, "'" + x.toString() + "'", PG_NUMERIC);
|
bind(parameterIndex, x.toString(), PG_NUMERIC);
|
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { if (x == null) setNull(parameterIndex, Types.OTHER); else { //Note this should be fixed //as soon as the backend correctly supports int8 type //comparisons bind(parameterIndex, "'" + x.toString() + "'", PG_NUMERIC); } }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/ba7c2d2b00566dd943a2eb40b6a68faba7d3662d/AbstractJdbc1Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
29436,
12,
474,
25412,
16,
8150,
619,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
92,
422,
446,
13,
1082,
202,
542,
2041,
12,
6775,
1016,
16,
7658,
18,
23940,
1769,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
8067,
333,
1410,
506,
5499,
1082,
202,
759,
345,
17136,
487,
326,
4221,
8783,
6146,
509,
28,
618,
1082,
202,
759,
23050,
87,
1082,
202,
4376,
12,
6775,
1016,
16,
5862,
397,
619,
18,
10492,
1435,
397,
2491,
3113,
22116,
67,
22998,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
29436,
12,
474,
25412,
16,
8150,
619,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
92,
422,
446,
13,
1082,
202,
542,
2041,
12,
6775,
1016,
16,
7658,
18,
23940,
1769,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
8067,
333,
1410,
506,
5499,
1082,
202,
759,
345,
17136,
487,
326,
4221,
8783,
6146,
509,
28,
618,
1082,
202,
759,
23050,
87,
1082,
202,
4376,
12,
6775,
1016,
16,
5862,
397,
619,
18,
10492,
1435,
397,
2491,
3113,
22116,
67,
22998,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.init(site, memento); if (memento == null) this.memento = XMLMemento.createWriteRoot("LOGVIEW"); else this.memento = memento; initializeMemento(); }
|
super.init(site, memento); if (memento == null) this.memento = XMLMemento.createWriteRoot("LOGVIEW"); else this.memento = memento; initializeMemento(); }
|
public void init(IViewSite site, IMemento memento) throws PartInitException { super.init(site, memento); if (memento == null) this.memento = XMLMemento.createWriteRoot("LOGVIEW"); //$NON-NLS-1$ else this.memento = memento; initializeMemento(); }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/41ac366d1ca0139d2f29944bdb1d85249adfff32/LogView.java/clean/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/LogView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
45,
1767,
4956,
2834,
16,
6246,
820,
83,
312,
820,
83,
13,
1216,
6393,
2570,
503,
288,
202,
202,
9565,
18,
2738,
12,
4256,
16,
312,
820,
83,
1769,
202,
202,
430,
261,
81,
820,
83,
422,
446,
13,
1082,
202,
2211,
18,
81,
820,
83,
273,
3167,
49,
820,
83,
18,
2640,
3067,
2375,
2932,
4842,
12145,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12107,
1875,
202,
2211,
18,
81,
820,
83,
273,
312,
820,
83,
31,
202,
202,
11160,
49,
820,
83,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
45,
1767,
4956,
2834,
16,
6246,
820,
83,
312,
820,
83,
13,
1216,
6393,
2570,
503,
288,
202,
202,
9565,
18,
2738,
12,
4256,
16,
312,
820,
83,
1769,
202,
202,
430,
261,
81,
820,
83,
422,
446,
13,
1082,
202,
2211,
18,
81,
820,
83,
273,
3167,
49,
820,
83,
18,
2640,
3067,
2375,
2932,
4842,
12145,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12107,
1875,
202,
2211,
18,
81,
820,
83,
273,
312,
820,
83,
31,
202,
202,
11160,
49,
820,
83,
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
] |
assertEquals(180,activities.size());
|
assertEquals(177,activities.size());
|
public void testUpdateAddingActivities() throws Exception{ RolesPermissionsPersistence RolesPermissionsPersistence = new RolesPermissionsPersistence(); List<ActivityEntity> activities = RolesPermissionsPersistence.getActivities(); assertEquals(180,activities.size()); ActivityEntity activity_1=activities.get(0); activities.remove(0); ActivityEntity activity_2=activities.get(1); activities.remove(1); assertEquals(178,activities.size()); RoleBO roleBO = new RoleBO(TestObjectFactory.getContext(),"Test Role",activities); roleBO.save(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); roleBO = RolesPermissionsPersistence.getRole("Test Role"); assertEquals(178,roleBO.getActivities().size()); RoleActivityEntity roleActivityEntity = getRoleActivity(roleBO.getId(),activity_1.getId()); assertNull(roleActivityEntity); roleActivityEntity = getRoleActivity(roleBO.getId(),activity_2.getId()); assertNull(roleActivityEntity); assertEquals(178,activities.size()); activities.add(activity_1); activities.add(activity_2); assertEquals(180,activities.size()); roleBO.update(TestObjectFactory.getUserContext().getId(),"Test Role",activities); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); roleBO = RolesPermissionsPersistence.getRole("Test Role"); assertEquals(180,roleBO.getActivities().size()); assertEquals(roleBO.getUpdatedBy(),Short.valueOf("1")); assertEquals(DateUtils.getCurrentDateWithoutTimeStamp(),DateUtils.getDateWithoutTimeStamp(roleBO.getUpdatedDate().getTime())); roleActivityEntity = getRoleActivity(roleBO.getId(),activity_1.getId()); assertNotNull(roleActivityEntity); roleActivityEntity = getRoleActivity(roleBO.getId(),activity_2.getId()); assertNotNull(roleActivityEntity); roleBO.delete(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/7695bb2c99774a79c149907e421311a9580f475b/TestRoleBO.java/clean/mifos/test/org/mifos/application/rolesandpermission/business/TestRoleBO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1891,
13962,
21101,
1435,
1216,
1185,
95,
202,
202,
6898,
6521,
13182,
19576,
6521,
13182,
273,
394,
19576,
6521,
13182,
5621,
202,
202,
682,
32,
6193,
1943,
34,
17259,
273,
19576,
6521,
13182,
18,
588,
21101,
5621,
202,
202,
11231,
8867,
12,
18278,
16,
24745,
18,
1467,
10663,
202,
202,
6193,
1943,
5728,
67,
21,
33,
24745,
18,
588,
12,
20,
1769,
202,
202,
24745,
18,
4479,
12,
20,
1769,
202,
202,
6193,
1943,
5728,
67,
22,
33,
24745,
18,
588,
12,
21,
1769,
202,
202,
24745,
18,
4479,
12,
21,
1769,
202,
202,
11231,
8867,
12,
4033,
28,
16,
24745,
18,
1467,
10663,
202,
202,
2996,
5315,
2478,
5315,
273,
394,
6204,
5315,
12,
4709,
921,
1733,
18,
29120,
9334,
6,
4709,
6204,
3113,
24745,
1769,
202,
202,
4615,
5315,
18,
5688,
5621,
202,
202,
44,
24360,
1304,
18,
7371,
3342,
5621,
202,
202,
44,
24360,
1304,
18,
4412,
2157,
5621,
202,
202,
4615,
5315,
273,
19576,
6521,
13182,
18,
588,
2996,
2932,
4709,
6204,
8863,
202,
202,
11231,
8867,
12,
4033,
28,
16,
4615,
5315,
18,
588,
21101,
7675,
1467,
10663,
202,
202,
2996,
6193,
1943,
2478,
6193,
1943,
273,
15673,
6193,
12,
4615,
5315,
18,
26321,
9334,
9653,
67,
21,
18,
26321,
10663,
202,
202,
11231,
2041,
12,
4615,
6193,
1943,
1769,
202,
202,
4615,
6193,
1943,
273,
15673,
6193,
12,
4615,
5315,
18,
26321,
9334,
9653,
67,
22,
18,
26321,
10663,
202,
202,
11231,
2041,
12,
4615,
6193,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1891,
13962,
21101,
1435,
1216,
1185,
95,
202,
202,
6898,
6521,
13182,
19576,
6521,
13182,
273,
394,
19576,
6521,
13182,
5621,
202,
202,
682,
32,
6193,
1943,
34,
17259,
273,
19576,
6521,
13182,
18,
588,
21101,
5621,
202,
202,
11231,
8867,
12,
18278,
16,
24745,
18,
1467,
10663,
202,
202,
6193,
1943,
5728,
67,
21,
33,
24745,
18,
588,
12,
20,
1769,
202,
202,
24745,
18,
4479,
12,
20,
1769,
202,
202,
6193,
1943,
5728,
67,
22,
33,
24745,
18,
588,
12,
21,
1769,
202,
202,
24745,
18,
4479,
12,
21,
1769,
202,
202,
11231,
8867,
12,
4033,
28,
16,
24745,
18,
1467,
10663,
202,
202,
2996,
5315,
2478,
5315,
273,
394,
6204,
5315,
2
] |
throws Throwable { Class returnType = invocation.invokedMethod.getReturnType();
|
throws Throwable { Class returnType = invocation.invokedMethod.getReturnType();
|
public Object invoke( Invocation invocation ) throws Throwable { Class returnType = invocation.invokedMethod.getReturnType(); if (resultValuesByType.containsKey(returnType)) { return resultValuesByType.get(returnType); } else if (returnType.isArray()) { return Array.newInstance(returnType.getComponentType(), 0); } else if (returnType.isInterface()) { CoreMock nullMock = new CoreMock(returnType, "null" + Formatting.classShortName(returnType)); nullMock.setDefaultStub(this); return nullMock.proxy(); } else { throw new AssertionFailedError(createErrorMessage(invocation)); } }
|
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/DefaultResultStub.java/clean/jmock/core/src/org/jmock/core/stub/DefaultResultStub.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4356,
12,
11298,
9495,
262,
202,
3639,
1216,
4206,
288,
202,
202,
797,
9424,
273,
9495,
18,
5768,
14276,
1305,
18,
588,
9102,
5621,
202,
202,
430,
261,
2088,
1972,
14145,
18,
12298,
653,
12,
2463,
559,
3719,
288,
1082,
202,
2463,
563,
1972,
14145,
18,
588,
12,
2463,
559,
1769,
202,
202,
97,
469,
309,
261,
2463,
559,
18,
291,
1076,
10756,
288,
1082,
202,
2463,
1510,
18,
2704,
1442,
12,
2463,
559,
18,
588,
28116,
9334,
374,
1769,
202,
202,
97,
469,
309,
261,
2463,
559,
18,
291,
1358,
10756,
288,
1082,
202,
4670,
9865,
446,
9865,
273,
394,
4586,
9865,
12,
2463,
559,
16,
315,
2011,
6,
397,
4077,
1787,
18,
1106,
29983,
12,
2463,
559,
10019,
1082,
202,
2011,
9865,
18,
542,
1868,
11974,
12,
2211,
1769,
1082,
202,
2463,
446,
9865,
18,
5656,
5621,
202,
202,
97,
469,
288,
1082,
202,
12849,
394,
9067,
2925,
668,
12,
2640,
14935,
12,
5768,
4431,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4356,
12,
11298,
9495,
262,
202,
3639,
1216,
4206,
288,
202,
202,
797,
9424,
273,
9495,
18,
5768,
14276,
1305,
18,
588,
9102,
5621,
202,
202,
430,
261,
2088,
1972,
14145,
18,
12298,
653,
12,
2463,
559,
3719,
288,
1082,
202,
2463,
563,
1972,
14145,
18,
588,
12,
2463,
559,
1769,
202,
202,
97,
469,
309,
261,
2463,
559,
18,
291,
1076,
10756,
288,
1082,
202,
2463,
1510,
18,
2704,
1442,
12,
2463,
559,
18,
588,
28116,
9334,
374,
1769,
202,
202,
97,
469,
309,
261,
2463,
559,
18,
291,
1358,
10756,
288,
1082,
202,
4670,
9865,
446,
9865,
273,
394,
4586,
9865,
12,
2463,
559,
16,
315,
2011,
6,
397,
4077,
1787,
18,
1106,
2
] |
if (checkIfUnicode) { isWhiteSpace = jumpOverUnicodeWhiteSpace(); offset = 6; } else { offset = 1; if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { if (this.recordLineSeparator) { pushLineSeparator(); } } isWhiteSpace = (this.currentCharacter == ' ') || CharOperation.isWhitespace(this.currentCharacter);
|
break; case TokenNameLPAREN : case TokenNameLBRACE : if (this.currentToken == TokenNameIdentifier) { this.removePotentialNamesAt(this.currentTokenStart);
|
public int getNextToken() throws InvalidInputException { this.wasAcr = false; this.unicodeCharSize = 0; if (this.diet) { jumpOverMethodBody(); this.diet = false; return this.currentPosition > this.source.length ? TokenNameEOF : TokenNameRBRACE; } int whiteStart = 0; try { while (true) { //loop for jumping over comments this.withoutUnicodePtr = 0; //start with a new token (even comment written with unicode ) // ---------Consume white space and handles start position--------- whiteStart = this.currentPosition; boolean isWhiteSpace, hasWhiteSpaces = false; int offset = 0; do { this.startPosition = this.currentPosition; boolean checkIfUnicode = false; try { checkIfUnicode = ((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u'); } catch(IndexOutOfBoundsException e) { if (this.tokenizeWhiteSpace && (whiteStart != this.currentPosition - 1)) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition--; this.startPosition = whiteStart; return TokenNameWHITESPACE; } if (this.currentPosition > this.eofPosition) { /* might be completing at eof (e.g. behind a dot) */ if (this.completionIdentifier == null && this.startPosition == this.cursorLocation + 1){ this.currentPosition = this.startPosition; // for being detected as empty free identifier return TokenNameIdentifier; } return TokenNameEOF; } } if (checkIfUnicode) { isWhiteSpace = jumpOverUnicodeWhiteSpace(); offset = 6; } else { offset = 1; if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { //checkNonExternalizedString(); if (this.recordLineSeparator) { pushLineSeparator(); } } isWhiteSpace = (this.currentCharacter == ' ') || CharOperation.isWhitespace(this.currentCharacter); } if (isWhiteSpace) { hasWhiteSpaces = true; } /* completion requesting strictly inside blanks */ if ((whiteStart != this.currentPosition) //&& (previousToken == TokenNameDOT) && (this.completionIdentifier == null) && (whiteStart <= this.cursorLocation+1) && (this.cursorLocation < this.startPosition) && !ScannerHelper.isJavaIdentifierStart(this.currentCharacter)){ this.currentPosition = this.startPosition; // for next token read return TokenNameIdentifier; } } while (isWhiteSpace); if (this.tokenizeWhiteSpace && hasWhiteSpaces) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition-=offset; this.startPosition = whiteStart; return TokenNameWHITESPACE; } //little trick to get out in the middle of a source computation if (this.currentPosition > this.eofPosition){ /* might be completing at eof (e.g. behind a dot) */ if (this.completionIdentifier == null && this.startPosition == this.cursorLocation + 1){ // compute end of empty identifier. // if the empty identifier is at the start of a next token the end of // empty identifier is the end of the next token (eg. "<empty token>next"). while(getNextCharAsJavaIdentifierPart()){/*empty*/} this.endOfEmptyToken = this.currentPosition - 1; this.currentPosition = this.startPosition; // for being detected as empty free identifier return TokenNameIdentifier; } return TokenNameEOF; } // ---------Identify the next token------------- switch (this.currentCharacter) { case '@' : return TokenNameAT; case '(' : return TokenNameLPAREN; case ')' : return TokenNameRPAREN; case '{' : return TokenNameLBRACE; case '}' : return TokenNameRBRACE; case '[' : return TokenNameLBRACKET; case ']' : return TokenNameRBRACKET; case ';' : return TokenNameSEMICOLON; case ',' : return TokenNameCOMMA; case '.' : if (this.startPosition <= this.cursorLocation && this.cursorLocation < this.currentPosition){ return TokenNameDOT; // completion inside .<|>12 } if (getNextCharAsDigit()) { return scanNumber(true); } int temp = this.currentPosition; if (getNextChar('.')) { if (getNextChar('.')) { return TokenNameELLIPSIS; } else { this.currentPosition = temp; return TokenNameDOT; } } else { this.currentPosition = temp; return TokenNameDOT; } case '+' : { int test; if ((test = getNextChar('+', '=')) == 0) return TokenNamePLUS_PLUS; if (test > 0) return TokenNamePLUS_EQUAL; return TokenNamePLUS; } case '-' : { int test; if ((test = getNextChar('-', '=')) == 0) return TokenNameMINUS_MINUS; if (test > 0) return TokenNameMINUS_EQUAL; return TokenNameMINUS; } case '~' : return TokenNameTWIDDLE; case '!' : if (getNextChar('=')) return TokenNameNOT_EQUAL; return TokenNameNOT; case '*' : if (getNextChar('=')) return TokenNameMULTIPLY_EQUAL; return TokenNameMULTIPLY; case '%' : if (getNextChar('=')) return TokenNameREMAINDER_EQUAL; return TokenNameREMAINDER; case '<' : { int test; if ((test = getNextChar('=', '<')) == 0) return TokenNameLESS_EQUAL; if (test > 0) { if (getNextChar('=')) return TokenNameLEFT_SHIFT_EQUAL; return TokenNameLEFT_SHIFT; } return TokenNameLESS; } case '>' : { int test; if (this.returnOnlyGreater) { return TokenNameGREATER; } if ((test = getNextChar('=', '>')) == 0) return TokenNameGREATER_EQUAL; if (test > 0) { if ((test = getNextChar('=', '>')) == 0) return TokenNameRIGHT_SHIFT_EQUAL; if (test > 0) { if (getNextChar('=')) return TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL; return TokenNameUNSIGNED_RIGHT_SHIFT; } return TokenNameRIGHT_SHIFT; } return TokenNameGREATER; } case '=' : if (getNextChar('=')) return TokenNameEQUAL_EQUAL; return TokenNameEQUAL; case '&' : { int test; if ((test = getNextChar('&', '=')) == 0) return TokenNameAND_AND; if (test > 0) return TokenNameAND_EQUAL; return TokenNameAND; } case '|' : { int test; if ((test = getNextChar('|', '=')) == 0) return TokenNameOR_OR; if (test > 0) return TokenNameOR_EQUAL; return TokenNameOR; } case '^' : if (getNextChar('=')) return TokenNameXOR_EQUAL; return TokenNameXOR; case '?' : return TokenNameQUESTION; case ':' : return TokenNameCOLON; case '\'' : { int test; if ((test = getNextChar('\n', '\r')) == 0) { throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } if (test > 0) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 3; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\'') { this.currentPosition += lookAhead + 1; break; } } throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } } if (getNextChar('\'')) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 3; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\'') { this.currentPosition += lookAhead + 1; break; } } throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } if (getNextChar('\\')) { if (this.unicodeAsBackSlash) { // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); } else { if (this.withoutUnicodePtr != 0) { unicodeStore(); } } } else { this.currentCharacter = this.source[this.currentPosition++]; } scanEscapeCharacter(); } else { // consume next character this.unicodeAsBackSlash = false; boolean checkIfUnicode = false; try { checkIfUnicode = ((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u'); } catch(IndexOutOfBoundsException e) { this.currentPosition--; throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); } if (checkIfUnicode) { getNextUnicodeChar(); } else { if (this.withoutUnicodePtr != 0) { this.unicodeStore(); } } } if (getNextChar('\'')) return TokenNameCharacterLiteral; // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 20; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\'') { this.currentPosition += lookAhead + 1; break; } } throw new InvalidInputException(INVALID_CHARACTER_CONSTANT); case '"' : try { // consume next character this.unicodeAsBackSlash = false; boolean isUnicode = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } else { if (this.withoutUnicodePtr != 0) { this.unicodeStore(); } } while (this.currentCharacter != '"') { /**** \r and \n are not valid in string literals ****/ if ((this.currentCharacter == '\n') || (this.currentCharacter == '\r')) { if (isUnicode) { int start = this.currentPosition - 5; while(this.source[start] != '\\') { start--; } if(this.startPosition <= this.cursorLocation && this.cursorLocation <= this.currentPosition-1) { this.currentPosition = start; // complete inside a string literal return TokenNameStringLiteral; } start = this.currentPosition; for (int lookAhead = 0; lookAhead < 50; lookAhead++) { if (this.currentPosition >= this.eofPosition) { this.currentPosition = start; break; } if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { isUnicode = true; getNextUnicodeChar(); } else { isUnicode = false; } if (!isUnicode && this.currentCharacter == '\n') { this.currentPosition--; // set current position on new line character break; } if (this.currentCharacter == '\"') { throw new InvalidInputException(INVALID_CHAR_IN_STRING); } } } else { this.currentPosition--; // set current position on new line character if(this.startPosition <= this.cursorLocation && this.cursorLocation <= this.currentPosition-1) { // complete inside a string literal return TokenNameStringLiteral; } } throw new InvalidInputException(INVALID_CHAR_IN_STRING); } if (this.currentCharacter == '\\') { if (this.unicodeAsBackSlash) { this.withoutUnicodePtr--; // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; this.withoutUnicodePtr--; } else { isUnicode = false; } } else { if (this.withoutUnicodePtr == 0) { unicodeInitializeBuffer(this.currentPosition - this.startPosition); } this.withoutUnicodePtr --; this.currentCharacter = this.source[this.currentPosition++]; } // we need to compute the escape character in a separate buffer scanEscapeCharacter(); if (this.withoutUnicodePtr != 0) { unicodeStore(); } } // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; if (this.withoutUnicodePtr != 0) { this.unicodeStore(); } } } } catch (IndexOutOfBoundsException e) { this.currentPosition--; if(this.startPosition <= this.cursorLocation && this.cursorLocation < this.currentPosition) { // complete inside a string literal return TokenNameStringLiteral; } throw new InvalidInputException(UNTERMINATED_STRING); } catch (InvalidInputException e) { if (e.getMessage().equals(INVALID_ESCAPE)) { // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed for (int lookAhead = 0; lookAhead < 50; lookAhead++) { if (this.currentPosition + lookAhead == this.source.length) break; if (this.source[this.currentPosition + lookAhead] == '\n') break; if (this.source[this.currentPosition + lookAhead] == '\"') { this.currentPosition += lookAhead + 1; break; } } } throw e; // rethrow } return TokenNameStringLiteral; case '/' : { int test; if ((test = getNextChar('/', '*')) == 0) { //line comment this.lastCommentLinePosition = this.currentPosition; try { //get the next char if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { //-------------unicode traitement ------------ int c1 = 0, c2 = 0, c3 = 0, c4 = 0; this.currentPosition++; while (this.source[this.currentPosition] == 'u') { this.currentPosition++; } if ((c1 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c1 < 0 || (c2 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c2 < 0 || (c3 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c3 < 0 || (c4 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c4 < 0) { throw new InvalidInputException(INVALID_UNICODE_ESCAPE); } else { this.currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ boolean isUnicode = false; while (this.currentCharacter != '\r' && this.currentCharacter != '\n') { this.lastCommentLinePosition = this.currentPosition; //get the next char isUnicode = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { isUnicode = true; //-------------unicode traitement ------------ int c1 = 0, c2 = 0, c3 = 0, c4 = 0; this.currentPosition++; while (this.source[this.currentPosition] == 'u') { this.currentPosition++; } if ((c1 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c1 < 0 || (c2 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c2 < 0 || (c3 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c3 < 0 || (c4 = ScannerHelper.getNumericValue(this.source[this.currentPosition++])) > 15 || c4 < 0) { throw new InvalidInputException(INVALID_UNICODE_ESCAPE); } else { this.currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ } /* * We need to completely consume the line break */ if (this.currentCharacter == '\r' && this.source.length > this.currentPosition) { if (this.source[this.currentPosition] == '\n') { this.currentPosition++; this.currentCharacter = '\n'; } else if ((this.source[this.currentPosition] == '\\') && (this.source[this.currentPosition + 1] == 'u')) { isUnicode = true; char unicodeChar; int index = this.currentPosition + 1; index++; while (this.source[index] == 'u') { index++; } //-------------unicode traitement ------------ int c1 = 0, c2 = 0, c3 = 0, c4 = 0; if ((c1 = ScannerHelper.getNumericValue(this.source[index++])) > 15 || c1 < 0 || (c2 = ScannerHelper.getNumericValue(this.source[index++])) > 15 || c2 < 0 || (c3 = ScannerHelper.getNumericValue(this.source[index++])) > 15 || c3 < 0 || (c4 = ScannerHelper.getNumericValue(this.source[index++])) > 15 || c4 < 0) { this.currentPosition = index; throw new InvalidInputException(INVALID_UNICODE_ESCAPE); } else { unicodeChar = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); } if (unicodeChar == '\n') { this.currentPosition = index; this.currentCharacter = '\n'; } } } recordComment(TokenNameCOMMENT_LINE); if (this.startPosition <= this.cursorLocation && this.cursorLocation < this.currentPosition-1){ throw new InvalidCursorLocation(InvalidCursorLocation.NO_COMPLETION_INSIDE_COMMENT); } if (this.taskTags != null) checkTaskTag(this.startPosition, this.currentPosition); if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { //checkNonExternalizedString(); if (this.recordLineSeparator) { if (isUnicode) { pushUnicodeLineSeparator(); } else { pushLineSeparator(); } } } if (this.tokenizeComments) { return TokenNameCOMMENT_LINE; } } catch (IndexOutOfBoundsException e) { this.currentPosition--; recordComment(TokenNameCOMMENT_LINE); if (this.taskTags != null) checkTaskTag(this.startPosition, this.currentPosition); if (this.tokenizeComments) { return TokenNameCOMMENT_LINE; } else { this.currentPosition++; } } break; } if (test > 0) { //traditional and javadoc comment try { //get the next char boolean isJavadoc = false, star = false; boolean isUnicode = false; // consume next character this.unicodeAsBackSlash = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; if (this.withoutUnicodePtr != 0) { this.unicodeStore(); } } if (this.currentCharacter == '*') { isJavadoc = true; star = true; } if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { //checkNonExternalizedString(); if (this.recordLineSeparator) { if (!isUnicode) { pushLineSeparator(); } } } isUnicode = false; if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { //-------------unicode traitement ------------ getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ // empty comment is not a javadoc /**/ if (this.currentCharacter == '/') { isJavadoc = false; } //loop until end of comment */ while ((this.currentCharacter != '/') || (!star)) { if ((this.currentCharacter == '\r') || (this.currentCharacter == '\n')) { //checkNonExternalizedString(); if (this.recordLineSeparator) { if (!isUnicode) { pushLineSeparator(); } } } star = this.currentCharacter == '*'; //get next char if (((this.currentCharacter = this.source[this.currentPosition++]) == '\\') && (this.source[this.currentPosition] == 'u')) { //-------------unicode traitement ------------ getNextUnicodeChar(); isUnicode = true; } else { isUnicode = false; } //handle the \\u case manually into comment if (this.currentCharacter == '\\') { if (this.source[this.currentPosition] == '\\') this.currentPosition++; } //jump over the \\ } int token = isJavadoc ? TokenNameCOMMENT_JAVADOC : TokenNameCOMMENT_BLOCK; recordComment(token); if (!isJavadoc && this.startPosition <= this.cursorLocation && this.cursorLocation < this.currentPosition-1){ throw new InvalidCursorLocation(InvalidCursorLocation.NO_COMPLETION_INSIDE_COMMENT); } if (this.taskTags != null) checkTaskTag(this.startPosition, this.currentPosition); if (this.tokenizeComments) { /* if (isJavadoc) return TokenNameCOMMENT_JAVADOC; return TokenNameCOMMENT_BLOCK; */ return token; } } catch (IndexOutOfBoundsException e) { this.currentPosition--; throw new InvalidInputException(UNTERMINATED_COMMENT); } break; } if (getNextChar('=')) return TokenNameDIVIDE_EQUAL; return TokenNameDIVIDE; } case '\u001a' : if (atEnd()) return TokenNameEOF; //the atEnd may not be <this.currentPosition == this.source.length> if source is only some part of a real (external) stream throw new InvalidInputException("Ctrl-Z"); //$NON-NLS-1$ default : if (ScannerHelper.isJavaIdentifierStart(this.currentCharacter)) return scanIdentifierOrKeyword(); if (ScannerHelper.isDigit(this.currentCharacter)) { return scanNumber(false); } return TokenNameERROR; } } } //-----------------end switch while try-------------------- catch (IndexOutOfBoundsException e) { if (this.tokenizeWhiteSpace && (whiteStart != this.currentPosition - 1)) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition--; this.startPosition = whiteStart; return TokenNameWHITESPACE; } } /* might be completing at very end of file (e.g. behind a dot) */ if (this.completionIdentifier == null && this.startPosition == this.cursorLocation + 1){ this.currentPosition = this.startPosition; // for being detected as empty free identifier return TokenNameIdentifier; } return TokenNameEOF;}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/a49b0379fae683770f815e7e32d76b4ebea892ec/CompletionScanner.java/clean/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
509,
22616,
1435,
1216,
31989,
288,
202,
2211,
18,
17416,
37,
3353,
273,
629,
31,
202,
2211,
18,
9124,
2156,
1225,
273,
374,
31,
202,
430,
261,
2211,
18,
3211,
278,
13,
288,
202,
202,
24574,
4851,
1305,
2250,
5621,
202,
202,
2211,
18,
3211,
278,
273,
629,
31,
202,
202,
2463,
333,
18,
2972,
2555,
405,
333,
18,
3168,
18,
2469,
692,
3155,
461,
12706,
294,
3155,
461,
19437,
9254,
31,
202,
97,
202,
474,
9578,
1685,
273,
374,
31,
202,
698,
288,
202,
202,
17523,
261,
3767,
13,
288,
368,
6498,
364,
525,
379,
1382,
1879,
5678,
1082,
202,
2211,
18,
13299,
16532,
5263,
273,
374,
31,
1082,
202,
759,
1937,
598,
279,
394,
1147,
261,
16728,
2879,
5941,
598,
5252,
262,
1082,
202,
759,
300,
788,
19253,
9578,
3476,
471,
7372,
787,
1754,
8567,
1082,
202,
14739,
1685,
273,
333,
18,
2972,
2555,
31,
1082,
202,
6494,
353,
23108,
16,
711,
13407,
12077,
273,
629,
31,
1082,
202,
474,
1384,
273,
374,
31,
1082,
202,
2896,
288,
9506,
202,
2211,
18,
1937,
2555,
273,
333,
18,
2972,
2555,
31,
9506,
202,
6494,
19130,
16532,
273,
629,
31,
9506,
202,
698,
288,
6862,
202,
1893,
2047,
16532,
273,
14015,
2211,
18,
2972,
7069,
273,
333,
18,
3168,
63,
2211,
18,
2972,
2555,
9904,
5717,
422,
5282,
13,
25083,
202,
10,
10,
261,
2211,
18,
3168,
63,
2211,
18,
2972,
2555,
65,
422,
296,
89,
8284,
9506,
202,
97,
1044,
12,
30548,
425,
13,
288,
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,
509,
22616,
1435,
1216,
31989,
288,
202,
2211,
18,
17416,
37,
3353,
273,
629,
31,
202,
2211,
18,
9124,
2156,
1225,
273,
374,
31,
202,
430,
261,
2211,
18,
3211,
278,
13,
288,
202,
202,
24574,
4851,
1305,
2250,
5621,
202,
202,
2211,
18,
3211,
278,
273,
629,
31,
202,
202,
2463,
333,
18,
2972,
2555,
405,
333,
18,
3168,
18,
2469,
692,
3155,
461,
12706,
294,
3155,
461,
19437,
9254,
31,
202,
97,
202,
474,
9578,
1685,
273,
374,
31,
202,
698,
288,
202,
202,
17523,
261,
3767,
13,
288,
368,
6498,
364,
525,
379,
1382,
1879,
5678,
1082,
202,
2211,
18,
13299,
16532,
5263,
273,
374,
31,
1082,
202,
759,
1937,
598,
279,
394,
1147,
261,
2
] |
return super.methodArity(methodId);
|
return super.methodArity(f);
|
public int methodArity(int methodId) { if (prototypeFlag) { if (methodId == Id_constructor) return 1; if (methodId == Id_toString) return 0; if (methodId == Id_toSource) return 0; if (methodId == Id_valueOf) return 0; } return super.methodArity(methodId); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/4ab02a82029cd37abeb37ef8a90e5c06586ae4f3/NativeBoolean.java/clean/js/rhino/src/org/mozilla/javascript/NativeBoolean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
327,
404,
31,
5411,
309,
261,
2039,
548,
422,
3124,
67,
10492,
13,
327,
374,
31,
5411,
309,
261,
2039,
548,
422,
3124,
67,
869,
1830,
13,
327,
374,
31,
5411,
309,
261,
2039,
548,
422,
3124,
67,
1132,
951,
13,
327,
374,
31,
3639,
289,
3639,
327,
2240,
18,
2039,
686,
560,
12,
74,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
309,
261,
2039,
548,
422,
3124,
67,
12316,
13,
327,
404,
31,
5411,
309,
261,
2039,
548,
422,
3124,
67,
10492,
13,
327,
374,
31,
5411,
309,
261,
2039,
548,
422,
3124,
67,
869,
1830,
13,
327,
374,
31,
5411,
309,
261,
2039,
548,
422,
3124,
67,
1132,
951,
13,
327,
374,
31,
3639,
289,
3639,
327,
2240,
18,
2039,
686,
560,
12,
74,
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
] |
public BooleanWeight(Searcher searcher) { this.searcher = searcher; for (int i = 0 ; i < clauses.size(); i++) { BooleanClause c = (BooleanClause)clauses.elementAt(i); weights.add(c.getQuery().createWeight(searcher)); } //System.out.println("Creating " + getClass().getName()); }
|
50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/e4bd7151061f409e2881de2fd0cde649af13e7c5/BooleanQuery.java/clean/src/java/org/apache/lucene/search/BooleanQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
5507,
6544,
12,
2979,
264,
3072,
264,
15329,
2211,
18,
3072,
264,
33,
3072,
264,
31,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
830,
9608,
18,
1467,
5621,
77,
27245,
95,
5507,
7044,
71,
28657,
5507,
7044,
13,
830,
9608,
18,
2956,
861,
12,
77,
1769,
9727,
18,
1289,
12,
71,
18,
588,
1138,
7675,
2640,
6544,
12,
3072,
264,
10019,
97,
759,
3163,
18,
659,
18,
8222,
2932,
11092,
6,
15,
588,
797,
7675,
17994,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
5507,
6544,
12,
2979,
264,
3072,
264,
15329,
2211,
18,
3072,
264,
33,
3072,
264,
31,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
830,
9608,
18,
1467,
5621,
77,
27245,
95,
5507,
7044,
71,
28657,
5507,
7044,
13,
830,
9608,
18,
2956,
861,
12,
77,
1769,
9727,
18,
1289,
12,
71,
18,
588,
1138,
7675,
2640,
6544,
12,
3072,
264,
10019,
97,
759,
3163,
18,
659,
18,
8222,
2932,
11092,
6,
15,
588,
797,
7675,
17994,
10663,
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
] |
||
Query restrictingQuery = new TermQuery( new Term( DocumentIndex.FIELD__CREATOR_ID, loggedOnUser.getId()+"" ) );
|
Query restrictingQuery = new TermQuery( new Term( DocumentIndex.FIELD__CREATOR_ID, loggedOnUser.getId() + "" ) );
|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ImcmsServices service = Imcms.getServices(); UserDomainObject loggedOnUser = Utility.getLoggedOnUser(req); String whichButton = req.getParameter("AdminTask"); if ( null != whichButton ) { /* handle Admin tasks only for Users with admin rights*/ if (!loggedOnUser.isSuperAdmin() && !loggedOnUser.isUserAdmin()) { String header = "Error in AdminManager."; Properties langproperties = service.getLanguageProperties( loggedOnUser ); String msg = langproperties.getProperty("error/servlet/global/no_administrator") + "<br>"; log.debug(header + "- user is not an administrator"); new AdminError(req, res, header, msg); return; } String url = getAdminTaskUrl(whichButton); if (StringUtils.isNotBlank( url )) { res.sendRedirect( url ); return; } } else if (PAGE_SEARCH.equals(req.getParameter(REQUEST_PARAMETER__FROMPAGE))) { req.getRequestDispatcher("/servlet/SearchDocuments").forward(req, res); return ; } String tabToShow = null != req.getParameter(REQUEST_PARAMETER__SHOW) ? req.getParameter(REQUEST_PARAMETER__SHOW): PARAMETER_VALUE__SHOW_NEW; String fileToForwardTo = JSP__ADMIN_MANAGER_NEW; // parse and return the html_admin_part Vector vec = new Vector(); String html_admin_part = ""; if (loggedOnUser.isSuperAdmin()) { html_admin_part = service.getAdminTemplate( HTML_ADMINTASK, loggedOnUser, vec ); // if superadmin } else if (loggedOnUser.isUserAdmin() ) { //if user is useradmin html_admin_part = service.getAdminTemplate( HTML_USERADMINTASK, loggedOnUser, vec ); //if useradmin } List documents_new = new LinkedList(); // STATUS = NEW List documents_changed = new LinkedList(); //MODIFIED_DATETIME > CREATED_DATETIME List documents_archived_less_then_one_week = new LinkedList(); //ARCHIVED_DATETIME < 7 days List documents_publication_end_less_then_one_week = new LinkedList() ; //PUBLICATION_END_DATETIME < 7 days List documents_not_changed_in_six_month = new LinkedList(); DocumentIndex index = service.getDocumentMapper().getDocumentIndex(); BooleanQuery booleanQuery = new BooleanQuery(); Query restrictingQuery = new TermQuery( new Term( DocumentIndex.FIELD__CREATOR_ID, loggedOnUser.getId()+"" ) ); booleanQuery.add( restrictingQuery, true, false ); HashMap current_sortorderMap = new HashMap(); HashMap expand_listMap = new HashMap(); HashMap subreports = new HashMap(); String sortorder ; String new_sortorder = ""; String list_toChange_sortorder = ""; DocumentDomainObject[] documentsFound = index.search( booleanQuery, loggedOnUser); if ( tabToShow.equals(PARAMETER_VALUE__SHOW_NEW) ){ fileToForwardTo = JSP__ADMIN_MANAGER_NEW ; addNewNotApprovedDocumentsToList(booleanQuery, documents_new, index, loggedOnUser); if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = LIST_TYPE__list_new_not_approved; } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_sortorder), LIST_TYPE__list_new_not_approved, "MOD"); current_sortorderMap.put(LIST_TYPE__list_new_not_approved, sortorder ); Collections.sort( documents_new, getChainableReversibleNullComparator(sortorder) ) ; setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_new_not_approved, REQUEST_PARAMETER__list_new_not_approved_current_expand ); // documents_new_not_approved = new AdminManagerSubreport(LIST_TYPE__list_new_not_approved, "", "", DEFAULT_DOCUMENTS_PER_LIST, documents_new ); }else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_REMINDERS) ) { fileToForwardTo = JSP__ADMIN_MANAGER_REMINDERS; if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE); } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_archived_less_then_one_week, "ARCR"); current_sortorderMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_publication_end_less_then_one_week, "PUBER"); current_sortorderMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder), LIST_TYPE__list_documents_not_changed_in_six_month, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, sortorder); addFoundDocumentsToCorrespondingList(documentsFound, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, null, current_sortorderMap); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_archived_less_then_one_week, REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_publication_end_less_then_one_week, REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_not_changed_in_six_month, REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder ); }else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SUMMARY) ) { fileToForwardTo = JSP__ADMIN_MANAGER_SUMMARY; addNewNotApprovedDocumentsToList(booleanQuery, documents_new, index, loggedOnUser); if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE); } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_sortorder), LIST_TYPE__list_new_not_approved, "MOD"); current_sortorderMap.put(LIST_TYPE__list_new_not_approved, sortorder); Collections.sort( documents_new, getChainableReversibleNullComparator(sortorder) ) ; sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_sortorder), LIST_TYPE__list_documents_changed, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_changed, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_publication_end_less_then_one_week, "PUBER"); current_sortorderMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_archived_less_then_one_week, "ARCR"); current_sortorderMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder), LIST_TYPE__list_documents_not_changed_in_six_month, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, sortorder); addFoundDocumentsToCorrespondingList(documentsFound, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, documents_changed, current_sortorderMap); expand_listMap.put(LIST_TYPE__list_new_not_approved, null != req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_changed, null != req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, null != req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, null != req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, null != req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_expand) : "hide"); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_new_not_approved, REQUEST_PARAMETER__list_new_not_approved_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_changed, REQUEST_PARAMETER__list_documents_changed_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_publication_end_less_then_one_week, REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_archived_less_then_one_week, REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_not_changed_in_six_month, REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder ); } else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SEARCH) ) { fileToForwardTo = JSP__ADMIN_MANAGER_SEARCH; } AdminManagerPage page = new AdminManagerPage( "".equals(html_admin_part) ? null : html_admin_part, documents_new, documents_changed, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, fileToForwardTo, current_sortorderMap, expand_listMap, subreports, restrictingQuery); page.forward(req, res, loggedOnUser); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/15d70408e151e5aaa1d66d5d73056b4a9e757ed4/AdminManager.java/clean/server/src/com/imcode/imcms/servlet/superadmin/AdminManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
5411,
1216,
16517,
16,
1860,
288,
3639,
2221,
6851,
5676,
1156,
273,
2221,
6851,
18,
588,
5676,
5621,
3639,
2177,
3748,
921,
7545,
1398,
1299,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
3658,
1769,
3639,
514,
1492,
3616,
273,
1111,
18,
588,
1662,
2932,
4446,
2174,
8863,
3639,
309,
261,
446,
480,
1492,
3616,
262,
288,
5411,
1748,
1640,
7807,
4592,
1338,
364,
12109,
598,
3981,
14989,
5549,
5411,
309,
16051,
19385,
1398,
1299,
18,
291,
8051,
4446,
1435,
597,
401,
19385,
1398,
1299,
18,
291,
1299,
4446,
10756,
288,
7734,
514,
1446,
273,
315,
668,
316,
7807,
1318,
1199,
31,
7734,
6183,
3303,
4738,
273,
1156,
18,
588,
3779,
2297,
12,
7545,
1398,
1299,
11272,
7734,
514,
1234,
273,
3303,
4738,
18,
588,
1396,
2932,
1636,
19,
23231,
19,
6347,
19,
2135,
67,
3666,
14207,
7923,
397,
3532,
2848,
2984,
31,
7734,
613,
18,
4148,
12,
3374,
397,
3701,
729,
353,
486,
392,
22330,
8863,
7734,
394,
7807,
668,
12,
3658,
16,
400,
16,
1446,
16,
1234,
1769,
7734,
327,
31,
5411,
289,
5411,
514,
880,
273,
22501,
2174,
1489,
12,
12784,
3616,
1769,
5411,
309,
261,
780,
1989,
18,
291,
1248,
7796,
12,
880,
8623,
288,
7734,
400,
18,
4661,
5961,
12,
880,
11272,
7734,
327,
31,
5411,
289,
3639,
289,
3639,
469,
309,
261,
11219,
67,
17251,
18,
14963,
12,
3658,
18,
588,
1662,
12,
5519,
67,
9819,
972,
11249,
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,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
5411,
1216,
16517,
16,
1860,
288,
3639,
2221,
6851,
5676,
1156,
273,
2221,
6851,
18,
588,
5676,
5621,
3639,
2177,
3748,
921,
7545,
1398,
1299,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
3658,
1769,
3639,
514,
1492,
3616,
273,
1111,
18,
588,
1662,
2932,
4446,
2174,
8863,
3639,
309,
261,
446,
480,
1492,
3616,
262,
288,
5411,
1748,
1640,
7807,
4592,
1338,
364,
12109,
598,
3981,
14989,
5549,
5411,
309,
16051,
19385,
1398,
1299,
18,
291,
8051,
4446,
1435,
597,
401,
19385,
1398,
1299,
18,
291,
1299,
4446,
10756,
288,
7734,
514,
1446,
273,
315,
668,
316,
7807,
1318,
1199,
31,
7734,
6183,
3303,
4738,
2
] |
if (jj_3_47()) {
|
if (jj_3_49()) {
|
final private boolean jj_3R_41() { Token xsp; xsp = jj_scanpos; if (jj_3_47()) { jj_scanpos = xsp; if (jj_3_48()) { jj_scanpos = xsp; if (jj_3_49()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/febc6aa07cc9db7fe8accccebc781a6bba1e9a18/SoarParser.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/parser/SoarParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9803,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
7616,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
67,
8875,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
67,
7616,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9803,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
7616,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
67,
8875,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
67,
7616,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
2
] |
fs = new SimpleFieldSet(lis, 4096, 128);
|
fs = new SimpleFieldSet(lis, 4096, 128, false);
|
public void realRun() throws IOException { InputStream is = handler.sock.getInputStream(); LineReadingInputStream lis = new LineReadingInputStream(is); boolean firstMessage = true; while(true) { SimpleFieldSet fs; // Read a message String messageType = lis.readLine(64, 64); if(messageType.equals("")) continue; fs = new SimpleFieldSet(lis, 4096, 128); FCPMessage msg; try { msg = FCPMessage.create(messageType, fs); if(msg == null) continue; } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } if(firstMessage && !(msg instanceof ClientHelloMessage)) { FCPMessage err = new ProtocolErrorMessage(ProtocolErrorMessage.CLIENT_HELLO_MUST_BE_FIRST_MESSAGE, true, null, null); handler.outputHandler.queue(err); handler.close(); continue; } if(msg instanceof DataCarryingMessage) { ((DataCarryingMessage)msg).readFrom(lis, handler.bf); } if((!firstMessage) && msg instanceof ClientHelloMessage) { FCPMessage err = new ProtocolErrorMessage(ProtocolErrorMessage.NO_LATE_CLIENT_HELLOS, false, null, null); handler.outputHandler.queue(err); continue; } try { msg.run(handler, handler.node); } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } firstMessage = false; if(handler.isClosed()) return; } }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/FCPConnectionInputHandler.java/clean/src/freenet/node/fcp/FCPConnectionInputHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
1997,
1435,
1216,
1860,
288,
202,
202,
4348,
353,
273,
1838,
18,
15031,
18,
588,
4348,
5621,
202,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
291,
1769,
9506,
202,
6494,
1122,
1079,
273,
638,
31,
9506,
202,
17523,
12,
3767,
13,
288,
1082,
202,
5784,
974,
694,
2662,
31,
1082,
202,
759,
2720,
279,
883,
1082,
202,
780,
22402,
273,
328,
291,
18,
896,
1670,
12,
1105,
16,
5178,
1769,
1082,
202,
430,
12,
2150,
559,
18,
14963,
2932,
6,
3719,
1324,
31,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
80,
291,
16,
16797,
16,
8038,
1769,
1082,
202,
42,
4258,
1079,
1234,
31,
1082,
202,
698,
288,
9506,
202,
3576,
273,
478,
4258,
1079,
18,
2640,
12,
2150,
559,
16,
2662,
1769,
9506,
202,
430,
12,
3576,
422,
446,
13,
1324,
31,
1082,
202,
97,
1044,
261,
1079,
1941,
503,
425,
13,
288,
9506,
202,
42,
4258,
1079,
393,
273,
394,
4547,
14935,
12,
73,
18,
8373,
1085,
16,
629,
16,
425,
18,
24906,
9334,
425,
18,
6392,
1769,
9506,
202,
4176,
18,
2844,
1503,
18,
4000,
12,
370,
1769,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
430,
12,
3645,
1079,
597,
401,
12,
3576,
1276,
2445,
18601,
1079,
3719,
288,
9506,
202,
42,
4258,
1079,
393,
273,
394,
4547,
14935,
12,
5752,
14935,
18,
11935,
67,
20264,
1502,
67,
49,
5996,
67,
5948,
67,
15354,
67,
8723,
16,
638,
16,
446,
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,
2863,
1997,
1435,
1216,
1860,
288,
202,
202,
4348,
353,
273,
1838,
18,
15031,
18,
588,
4348,
5621,
202,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
291,
1769,
9506,
202,
6494,
1122,
1079,
273,
638,
31,
9506,
202,
17523,
12,
3767,
13,
288,
1082,
202,
5784,
974,
694,
2662,
31,
1082,
202,
759,
2720,
279,
883,
1082,
202,
780,
22402,
273,
328,
291,
18,
896,
1670,
12,
1105,
16,
5178,
1769,
1082,
202,
430,
12,
2150,
559,
18,
14963,
2932,
6,
3719,
1324,
31,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
80,
291,
16,
16797,
16,
8038,
1769,
1082,
202,
42,
4258,
1079,
1234,
31,
1082,
202,
698,
2
] |
public JointDataSet( String theName )
|
public JointDataSet( )
|
public JointDataSet( String theName ) { super( theName ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/13807447c2b92e5c2c0d1067fa8f2de960030f4b/JointDataSet.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/JointDataSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
804,
763,
13676,
12,
514,
326,
461,
262,
202,
95,
202,
202,
9565,
12,
326,
461,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
804,
763,
13676,
12,
514,
326,
461,
262,
202,
95,
202,
202,
9565,
12,
326,
461,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public CmsFieldItem() { m_label = ""; m_isSelected = false; m_value = ""; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsFieldItem.java/clean/src-modules/org/opencms/frontend/templateone/form/CmsFieldItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
974,
1180,
1435,
288,
7734,
312,
67,
1925,
273,
1408,
31,
3639,
312,
67,
291,
7416,
273,
629,
31,
3639,
312,
67,
1132,
273,
1408,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
974,
1180,
1435,
288,
7734,
312,
67,
1925,
273,
1408,
31,
3639,
312,
67,
291,
7416,
273,
629,
31,
3639,
312,
67,
1132,
273,
1408,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
new String[] { cfg.className() },
|
interfaces,
|
protected void emitAllFileHeaders() throws IOException { try { if (cfg.allStatic() || cfg.emitInterface()) { String[] interfaces; if (cfg.emitInterface()) { List userSpecifiedInterfaces = cfg.extendedInterfaces(cfg.className()); interfaces = new String[userSpecifiedInterfaces.size()]; userSpecifiedInterfaces.toArray(interfaces); } else { interfaces = null; } final List/*<String>*/ intfDocs = cfg.javadocForClass(cfg.className()); CodeGenUtils.EmissionCallback docEmitter = new CodeGenUtils.EmissionCallback() { public void emit(PrintWriter w) { for (Iterator iter = intfDocs.iterator(); iter.hasNext(); ) { w.println((String) iter.next()); } } }; CodeGenUtils.emitJavaHeaders( javaWriter, cfg.packageName(), cfg.className(), cfg.allStatic() ? true : false, (String[]) cfg.imports().toArray(new String[] {}), new String[] { "public" }, interfaces, null, docEmitter); } if (!cfg.allStatic() && cfg.emitImpl()) { final List/*<String>*/ implDocs = cfg.javadocForClass(cfg.className()); CodeGenUtils.EmissionCallback docEmitter = new CodeGenUtils.EmissionCallback() { public void emit(PrintWriter w) { for (Iterator iter = implDocs.iterator(); iter.hasNext(); ) { w.println((String) iter.next()); } } }; CodeGenUtils.emitJavaHeaders( javaImplWriter, cfg.implPackageName(), cfg.implClassName(), true, (String[]) cfg.imports().toArray(new String[] {}), new String[] { "public" }, new String[] { cfg.className() }, null, docEmitter); } if (cfg.emitImpl()) { PrintWriter cWriter = cWriter(); emitCHeader(cWriter, cfg.implClassName()); } } catch (Exception e) { throw new RuntimeException( "Error emitting all file headers: cfg.allStatic()=" + cfg.allStatic() + " cfg.emitImpl()=" + cfg.emitImpl() + " cfg.emitInterface()=" + cfg.emitInterface(), e); } }
|
53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/0a7c6d77aab5b922f3225ed8ed6076f8ee984ab6/JavaEmitter.java/clean/src/net/java/games/gluegen/JavaEmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3626,
1595,
812,
3121,
1435,
1216,
1860,
288,
3639,
775,
288,
1850,
309,
261,
7066,
18,
454,
5788,
1435,
747,
2776,
18,
18356,
1358,
10756,
288,
3639,
514,
8526,
7349,
31,
3639,
309,
261,
7066,
18,
18356,
1358,
10756,
288,
1850,
987,
729,
17068,
10273,
273,
2776,
18,
14948,
10273,
12,
7066,
18,
12434,
10663,
1850,
7349,
273,
394,
514,
63,
1355,
17068,
10273,
18,
1467,
1435,
15533,
1850,
729,
17068,
10273,
18,
31447,
12,
15898,
1769,
3639,
289,
469,
288,
1850,
7349,
273,
446,
31,
3639,
289,
7734,
727,
987,
20308,
32,
780,
34,
5549,
17262,
12656,
273,
2776,
18,
78,
4805,
22581,
12,
7066,
18,
12434,
10663,
3639,
3356,
7642,
1989,
18,
1514,
19710,
2428,
997,
13476,
273,
1850,
394,
3356,
7642,
1989,
18,
1514,
19710,
2428,
1435,
288,
5411,
1071,
918,
3626,
12,
5108,
2289,
341,
13,
288,
2868,
364,
261,
3198,
1400,
273,
17262,
12656,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
288,
7734,
341,
18,
8222,
12443,
780,
13,
1400,
18,
4285,
10663,
2868,
289,
5411,
289,
1850,
289,
31,
3639,
3356,
7642,
1989,
18,
18356,
5852,
3121,
12,
1850,
2252,
2289,
16,
1850,
2776,
18,
5610,
461,
9334,
1850,
2776,
18,
12434,
9334,
1850,
2776,
18,
454,
5788,
1435,
692,
638,
294,
629,
16,
6647,
261,
780,
63,
5717,
2776,
18,
21350,
7675,
31447,
12,
2704,
514,
8526,
2618,
3631,
1850,
394,
514,
8526,
288,
315,
482,
6,
19879,
1850,
7349,
16,
1850,
446,
16,
1850,
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,
3626,
1595,
812,
3121,
1435,
1216,
1860,
288,
3639,
775,
288,
1850,
309,
261,
7066,
18,
454,
5788,
1435,
747,
2776,
18,
18356,
1358,
10756,
288,
3639,
514,
8526,
7349,
31,
3639,
309,
261,
7066,
18,
18356,
1358,
10756,
288,
1850,
987,
729,
17068,
10273,
273,
2776,
18,
14948,
10273,
12,
7066,
18,
12434,
10663,
1850,
7349,
273,
394,
514,
63,
1355,
17068,
10273,
18,
1467,
1435,
15533,
1850,
729,
17068,
10273,
18,
31447,
12,
15898,
1769,
3639,
289,
469,
288,
1850,
7349,
273,
446,
31,
3639,
289,
7734,
727,
987,
20308,
32,
780,
34,
5549,
17262,
12656,
273,
2776,
18,
78,
4805,
22581,
12,
7066,
18,
12434,
10663,
3639,
3356,
7642,
1989,
18,
1514,
19710,
2
] |
}
|
}
|
MarkerFilter[] getEnabledFilters(){ if(enabledFilters == null){ MarkerFilter[] allFilters = getFilters(); ArrayList filters = new ArrayList(0); for (int i = 0; i < allFilters.length; i++) { if(allFilters[i].isEnabled()) filters.add(allFilters[i]); } enabledFilters = new MarkerFilter[filters.size()]; filters.toArray(enabledFilters); } return enabledFilters; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/09a4c864bb83fb62a685d497a2df9ce5451376bd/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7078,
1586,
8526,
336,
1526,
5422,
1435,
95,
9506,
202,
430,
12,
5745,
5422,
422,
446,
15329,
1082,
202,
7078,
1586,
8526,
777,
5422,
273,
25175,
5621,
1082,
202,
19558,
3415,
273,
394,
2407,
12,
20,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
777,
5422,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
12,
454,
5422,
63,
77,
8009,
291,
1526,
10756,
6862,
202,
6348,
18,
1289,
12,
454,
5422,
63,
77,
19226,
6862,
1082,
202,
97,
1082,
202,
5745,
5422,
273,
394,
14742,
1586,
63,
6348,
18,
1467,
1435,
15533,
1082,
202,
6348,
18,
31447,
12,
5745,
5422,
1769,
202,
202,
97,
1082,
202,
2463,
3696,
5422,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7078,
1586,
8526,
336,
1526,
5422,
1435,
95,
9506,
202,
430,
12,
5745,
5422,
422,
446,
15329,
1082,
202,
7078,
1586,
8526,
777,
5422,
273,
25175,
5621,
1082,
202,
19558,
3415,
273,
394,
2407,
12,
20,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
777,
5422,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
12,
454,
5422,
63,
77,
8009,
291,
1526,
10756,
6862,
202,
6348,
18,
1289,
12,
454,
5422,
63,
77,
19226,
6862,
1082,
202,
97,
1082,
202,
5745,
5422,
273,
394,
14742,
1586,
63,
6348,
18,
1467,
1435,
15533,
1082,
202,
6348,
18,
31447,
12,
5745,
5422,
1769,
202,
202,
97,
1082,
202,
2463,
3696,
5422,
31,
1082,
202,
2
] |
String s = st.nextToken(); if (s.equals("/")) { obj[i] = null; } else { obj[i] = s; st.nextToken(); } log.debug("is: " + (String) obj[i]); } if (!st.hasMoreTokens()) { throw new BadResumptionTokenException(); } try {
|
private Object[] decodeResumptionToken(String token) throws BadResumptionTokenException { Object[] obj = new Object[5]; StringTokenizer st = new StringTokenizer(token, "/", true); // Extract from, until, set, prefix for (int i = 0; i < 4; i++) { if (!st.hasMoreTokens()) { throw new BadResumptionTokenException(); } String s = st.nextToken(); // If this value is a delimiter /, we have no value for this part // of the resumption token. if (s.equals("/")) { obj[i] = null; } else { obj[i] = s; // Skip the delimiter st.nextToken(); } log.debug("is: " + (String) obj[i]); } if (!st.hasMoreTokens()) { throw new BadResumptionTokenException(); } // Extract offset try { obj[4] = new Integer(st.nextToken()); } catch (NumberFormatException nfe) { throw new BadResumptionTokenException(); } return obj; }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/ed96b43cce9bf9d55ba71b42e476a3d381bcda26/DSpaceOAICatalog.java/clean/dspace/src/org/dspace/app/oai/DSpaceOAICatalog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
8526,
2495,
607,
379,
375,
1345,
12,
780,
1147,
13,
3639,
1216,
6107,
607,
379,
375,
1345,
503,
565,
288,
3639,
1033,
8526,
1081,
273,
394,
1033,
63,
25,
15533,
3639,
16370,
384,
273,
394,
16370,
12,
2316,
16,
2206,
3113,
638,
1769,
7734,
368,
8152,
628,
16,
3180,
16,
444,
16,
1633,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
277,
27245,
3639,
288,
5411,
309,
16051,
334,
18,
5332,
7417,
5157,
10756,
5411,
288,
7734,
604,
394,
6107,
607,
379,
375,
1345,
503,
5621,
5411,
289,
5411,
514,
272,
273,
384,
18,
4285,
1345,
5621,
5411,
368,
971,
333,
460,
353,
279,
5654,
342,
16,
732,
1240,
1158,
460,
364,
333,
1087,
5411,
368,
434,
326,
24632,
375,
1147,
18,
5411,
309,
261,
87,
18,
14963,
2932,
4898,
3719,
5411,
288,
7734,
1081,
63,
77,
65,
273,
446,
31,
5411,
289,
5411,
469,
5411,
288,
7734,
1081,
63,
77,
65,
273,
272,
31,
7734,
368,
6611,
326,
5654,
7734,
384,
18,
4285,
1345,
5621,
5411,
289,
5411,
613,
18,
4148,
2932,
291,
30,
315,
397,
261,
780,
13,
1081,
63,
77,
19226,
3639,
289,
7734,
309,
16051,
334,
18,
5332,
7417,
5157,
10756,
3639,
288,
5411,
604,
394,
6107,
607,
379,
375,
1345,
503,
5621,
3639,
289,
7734,
368,
8152,
1384,
3639,
775,
3639,
288,
5411,
1081,
63,
24,
65,
273,
394,
2144,
12,
334,
18,
4285,
1345,
10663,
3639,
289,
3639,
1044,
261,
1854,
9291,
25386,
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,
3238,
1033,
8526,
2495,
607,
379,
375,
1345,
12,
780,
1147,
13,
3639,
1216,
6107,
607,
379,
375,
1345,
503,
565,
288,
3639,
1033,
8526,
1081,
273,
394,
1033,
63,
25,
15533,
3639,
16370,
384,
273,
394,
16370,
12,
2316,
16,
2206,
3113,
638,
1769,
7734,
368,
8152,
628,
16,
3180,
16,
444,
16,
1633,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
277,
27245,
3639,
288,
5411,
309,
16051,
334,
18,
5332,
7417,
5157,
10756,
5411,
288,
7734,
604,
394,
6107,
607,
379,
375,
1345,
503,
5621,
5411,
289,
5411,
514,
272,
273,
384,
18,
4285,
1345,
5621,
5411,
368,
971,
333,
460,
353,
279,
5654,
342,
16,
732,
1240,
1158,
460,
364,
2
] |
|
fDocumentHandler.characters(fString, null);
|
fDocumentHandler.characters(fStringBuffer, null);
|
protected boolean scanCDATASection(boolean complete) throws IOException, XNIException { // call handler if (fDocumentHandler != null) { fDocumentHandler.startCDATA(null); } while (true) { if (!fEntityScanner.scanData("]]", fString)) { if (fDocumentHandler != null && fString.length > 0) { fDocumentHandler.characters(fString, null); } int brackets = 2; while (fEntityScanner.skipChar(']')) { brackets++; } if (fDocumentHandler != null && brackets > 2) { fStringBuffer.clear(); for (int i = 2; i < brackets; i++) { fStringBuffer.append(']'); } fDocumentHandler.characters(fStringBuffer, null); } if (fEntityScanner.skipChar('>')) { break; } if (fDocumentHandler != null) { fStringBuffer.clear(); fStringBuffer.append("]]"); fDocumentHandler.characters(fStringBuffer, null); } } else { if (fDocumentHandler != null) { fDocumentHandler.characters(fString, null); } int c = fEntityScanner.peekChar(); if (c != -1 && XMLChar.isInvalid(c)) { if (XMLChar.isHighSurrogate(c)) { fStringBuffer.clear(); scanSurrogates(fStringBuffer); if (fDocumentHandler != null) { fDocumentHandler.characters(fStringBuffer, null); } } else { reportFatalError("InvalidCharInCDSect", new Object[]{Integer.toString(c,16)}); fEntityScanner.scanChar(); } } } } fMarkupDepth--; // call handler if (fDocumentHandler != null) { fDocumentHandler.endCDATA(null); } return true; } // scanCDATASection(boolean):boolean
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/cdba1c2853ebaf1aa71a656c0afa1f677ba54204/XMLDocumentFragmentScannerImpl.java/buggy/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
284,
2519,
1503,
18,
1937,
18375,
12,
2011,
1769,
3639,
289,
3639,
1323,
261,
3767,
13,
288,
5411,
309,
16051,
74,
1943,
11338,
18,
9871,
751,
2932,
13563,
3113,
284,
780,
3719,
288,
7734,
309,
261,
74,
2519,
1503,
480,
446,
597,
284,
780,
18,
2469,
405,
374,
13,
288,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
289,
7734,
509,
15597,
273,
576,
31,
7734,
1323,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
3864,
3719,
288,
10792,
15597,
9904,
31,
7734,
289,
7734,
309,
261,
74,
2519,
1503,
480,
446,
597,
15597,
405,
576,
13,
288,
10792,
284,
780,
1892,
18,
8507,
5621,
10792,
364,
261,
474,
277,
273,
576,
31,
277,
411,
15597,
31,
277,
27245,
288,
13491,
284,
780,
1892,
18,
6923,
2668,
3864,
1769,
10792,
289,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
289,
7734,
309,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
1870,
3719,
288,
10792,
898,
31,
7734,
289,
7734,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
10792,
284,
780,
1892,
18,
8507,
5621,
10792,
284,
780,
1892,
18,
6923,
2932,
65,
4279,
1769,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
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,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
284,
2519,
1503,
18,
1937,
18375,
12,
2011,
1769,
3639,
289,
3639,
1323,
261,
3767,
13,
288,
5411,
309,
16051,
74,
1943,
11338,
18,
9871,
751,
2932,
13563,
3113,
284,
780,
3719,
288,
7734,
309,
261,
74,
2519,
1503,
480,
446,
597,
284,
780,
18,
2469,
405,
374,
13,
288,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
289,
7734,
509,
15597,
273,
576,
31,
7734,
1323,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
3864,
3719,
2
] |
Edge<Object> e = g.addEdge(v1, v2);
|
DefaultEdge e = g.addEdge(v1, v2);
|
public void testGraphListener() { init(); ListenableGraph<Object,Edge<Object>> g = new ListenableUndirectedGraph<Object, Edge<Object>>(); GraphListener<Object, Edge<Object>> listener = new MyGraphListner(); g.addGraphListener(listener); String v1 = new String("v1"); String v2 = new String("v2"); // test vertex notification g.addVertex(v1); assertEquals(v1, m_lastAddedVertex); assertEquals(null, m_lastRemovedVertex); init(); g.removeVertex(v1); assertEquals(v1, m_lastRemovedVertex); assertEquals(null, m_lastAddedVertex); // test edge notification g.addVertex(v1); g.addVertex(v2); init(); Edge<Object> e = g.addEdge(v1, v2); assertEquals(e, m_lastAddedEdge); assertEquals(null, m_lastRemovedEdge); init(); assertTrue(g.removeEdge(e)); assertEquals(e, m_lastRemovedEdge); assertEquals(null, m_lastAddedEdge); g.removeVertex(v1); g.removeVertex(v2); // // test notification stops when removing listener // g.removeGraphListener(listener); init(); g.addVertex(v1); g.addVertex(v2); e = g.addEdge(v1, v2); g.removeEdge(e); assertEquals(null, m_lastAddedEdge); assertEquals(null, m_lastAddedVertex); assertEquals(null, m_lastRemovedEdge); assertEquals(null, m_lastRemovedVertex); }
|
4188 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4188/c3e5aa9fad3b9e0927939b2a916ae5049377758b/ListenableGraphTest.java/buggy/testsrc/org/jgrapht/graph/ListenableGraphTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4137,
2223,
1435,
565,
288,
3639,
1208,
5621,
3639,
987,
7589,
4137,
32,
921,
16,
6098,
32,
921,
9778,
314,
273,
394,
987,
7589,
984,
26830,
4137,
32,
921,
16,
11342,
32,
921,
9778,
5621,
3639,
5601,
2223,
32,
921,
16,
11342,
32,
921,
9778,
2991,
273,
394,
8005,
4137,
682,
1224,
5621,
3639,
314,
18,
1289,
4137,
2223,
12,
12757,
1769,
3639,
514,
331,
21,
273,
394,
514,
2932,
90,
21,
8863,
3639,
514,
331,
22,
273,
394,
514,
2932,
90,
22,
8863,
3639,
368,
1842,
5253,
3851,
3639,
314,
18,
1289,
6475,
12,
90,
21,
1769,
3639,
1815,
8867,
12,
90,
21,
16,
312,
67,
2722,
8602,
6475,
1769,
3639,
1815,
8867,
12,
2011,
16,
312,
67,
2722,
10026,
6475,
1769,
3639,
1208,
5621,
3639,
314,
18,
4479,
6475,
12,
90,
21,
1769,
3639,
1815,
8867,
12,
90,
21,
16,
312,
67,
2722,
10026,
6475,
1769,
3639,
1815,
8867,
12,
2011,
16,
312,
67,
2722,
8602,
6475,
1769,
3639,
368,
1842,
3591,
3851,
3639,
314,
18,
1289,
6475,
12,
90,
21,
1769,
3639,
314,
18,
1289,
6475,
12,
90,
22,
1769,
3639,
1208,
5621,
3639,
2989,
6098,
425,
273,
314,
18,
1289,
6098,
12,
90,
21,
16,
331,
22,
1769,
3639,
1815,
8867,
12,
73,
16,
312,
67,
2722,
8602,
6098,
1769,
3639,
1815,
8867,
12,
2011,
16,
312,
67,
2722,
10026,
6098,
1769,
3639,
1208,
5621,
3639,
1815,
5510,
12,
75,
18,
4479,
6098,
12,
73,
10019,
3639,
1815,
8867,
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,
1842,
4137,
2223,
1435,
565,
288,
3639,
1208,
5621,
3639,
987,
7589,
4137,
32,
921,
16,
6098,
32,
921,
9778,
314,
273,
394,
987,
7589,
984,
26830,
4137,
32,
921,
16,
11342,
32,
921,
9778,
5621,
3639,
5601,
2223,
32,
921,
16,
11342,
32,
921,
9778,
2991,
273,
394,
8005,
4137,
682,
1224,
5621,
3639,
314,
18,
1289,
4137,
2223,
12,
12757,
1769,
3639,
514,
331,
21,
273,
394,
514,
2932,
90,
21,
8863,
3639,
514,
331,
22,
273,
394,
514,
2932,
90,
22,
8863,
3639,
368,
1842,
5253,
3851,
3639,
314,
18,
1289,
6475,
12,
90,
21,
1769,
3639,
1815,
8867,
12,
90,
21,
16,
312,
67,
2722,
8602,
6475,
1769,
3639,
1815,
8867,
12,
2
] |
getEditor().doSave( null );
|
getEditor( ).doSave( null );
|
public boolean canLeaveThePage( ) { if ( isDirty( ) ) { MessageDialog prefDialog = new MessageDialog( UIUtil.getDefaultShell( ), Messages.getString( "XMLSourcePage.Error.Dialog.title" ),//$NON-NLS-1$ null, Messages.getString( "XMLSourcePage.Error.Dialog.Message.PromptMsg" ),//$NON-NLS-1$ MessageDialog.INFORMATION, new String[]{ Messages.getString( "XMLSourcePage.Error.Dialog.Message.Yes" ),//$NON-NLS-1$ Messages.getString( "XMLSourcePage.Error.Dialog.Message.No" ),//$NON-NLS-1$ Messages.getString( "XMLSourcePage.Error.Dialog.Message.Cancel" )}, 0 );//$NON-NLS-1$ int ret = prefDialog.open( ); switch ( ret ) { case 0 : getEditor().doSave( null ); break; case 1 : if ( getEditorInput( ) != null ) { this.setInput( getEditorInput( ) ); } break; case 2 : if ( getEditorInput( ) != null ) { this.setInput( getEditorInput( ) ); } return false; } } int errorLine = getErrorLIine( ); if ( errorLine > -1 ) { // Display.getCurrent( ).beep( ); MessageDialog.openError( Display.getCurrent( ).getActiveShell( ), Messages.getString( "XMLSourcePage.Error.Dialog.title" ), //$NON-NLS-1$ Messages.getString( "XMLSourcePage.Error.Dialog.Message.InvalidFile" ) ); //$NON-NLS-1$ setFocus( ); setHighlightLine( errorLine ); return false; } return true; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/de51515e53777662a4fa3d863c7e053886a56bc6/ReportXMLSourceEditorFormPage.java/clean/UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportXMLSourceEditorFormPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
848,
21300,
1986,
1964,
12,
262,
202,
95,
202,
202,
430,
261,
25206,
12,
262,
262,
202,
202,
95,
1082,
202,
1079,
6353,
11307,
6353,
273,
394,
2350,
6353,
12,
6484,
1304,
18,
588,
1868,
13220,
12,
262,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
2649,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2011,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
1079,
18,
15967,
3332,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
202,
1079,
6353,
18,
706,
23805,
16,
6862,
202,
2704,
514,
63,
7073,
6862,
1082,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
1079,
18,
22352,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
1079,
18,
2279,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
1082,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
1079,
18,
6691,
6,
262,
5779,
374,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
1082,
202,
474,
325,
273,
11307,
6353,
18,
3190,
12,
11272,
1082,
202,
9610,
261,
325,
262,
1082,
202,
95,
9506,
202,
3593,
374,
294,
6862,
202,
588,
6946,
7675,
2896,
4755,
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,
1250,
848,
21300,
1986,
1964,
12,
262,
202,
95,
202,
202,
430,
261,
25206,
12,
262,
262,
202,
202,
95,
1082,
202,
1079,
6353,
11307,
6353,
273,
394,
2350,
6353,
12,
6484,
1304,
18,
588,
1868,
13220,
12,
262,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
2649,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2011,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4201,
1830,
1964,
18,
668,
18,
6353,
18,
1079,
18,
15967,
3332,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
6862,
202,
1079,
6353,
18,
706,
23805,
16,
6862,
202,
2704,
514,
63,
2
] |
if(bindTo != get())
|
if(!bindTo.equals(get()))
|
public void set(String bindTo) throws InvalidConfigValueException { if(bindTo != get()) throw new InvalidConfigValueException("Cannot change FProxy bind address on the fly"); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/344365449d05d9c31812fb984ef314991878f09a/SimpleToadletServer.java/buggy/src/freenet/clients/http/SimpleToadletServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
444,
12,
780,
1993,
774,
13,
1216,
1962,
809,
9738,
288,
1082,
202,
430,
12,
4376,
774,
480,
336,
10756,
9506,
202,
12849,
394,
1962,
809,
9738,
2932,
4515,
2549,
478,
3886,
1993,
1758,
603,
326,
21434,
8863,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
482,
918,
444,
12,
780,
1993,
774,
13,
1216,
1962,
809,
9738,
288,
1082,
202,
430,
12,
4376,
774,
480,
336,
10756,
9506,
202,
12849,
394,
1962,
809,
9738,
2932,
4515,
2549,
478,
3886,
1993,
1758,
603,
326,
21434,
8863,
202,
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
] |
if (DEBUG_ELEMENT_CHILDREN) { System.out.println("charDataInContent()"); } if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildren.length * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.clear(); fElementChildrenLength++;
|
if (DEBUG_ELEMENT_CHILDREN) { System.out.println("charDataInContent()"); } if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildren.length * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.clear(); fElementChildrenLength++;
|
private void charDataInContent() { if (DEBUG_ELEMENT_CHILDREN) { System.out.println("charDataInContent()"); } if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildren.length * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.clear(); fElementChildrenLength++; } // charDataInCount()
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1149,
751,
382,
1350,
1435,
288,
3639,
309,
261,
9394,
67,
10976,
67,
27043,
24296,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3001,
751,
382,
1350,
1435,
8863,
3639,
289,
3639,
309,
261,
74,
1046,
4212,
18,
2469,
1648,
284,
1046,
4212,
1782,
13,
288,
5411,
16723,
8526,
394,
1126,
273,
394,
16723,
63,
74,
1046,
4212,
18,
2469,
380,
576,
15533,
5411,
2332,
18,
1126,
3530,
12,
74,
1046,
4212,
16,
374,
16,
394,
1126,
16,
374,
16,
284,
1046,
4212,
18,
2469,
1769,
5411,
284,
1046,
4212,
273,
394,
1126,
31,
3639,
289,
3639,
16723,
12621,
273,
284,
1046,
4212,
63,
74,
1046,
4212,
1782,
15533,
3639,
309,
261,
85,
529,
422,
446,
13,
288,
5411,
364,
261,
474,
277,
273,
284,
1046,
4212,
1782,
31,
277,
411,
284,
1046,
4212,
18,
2469,
31,
277,
27245,
288,
7734,
284,
1046,
4212,
63,
77,
65,
273,
394,
16723,
5621,
5411,
289,
5411,
12621,
273,
284,
1046,
4212,
63,
74,
1046,
4212,
1782,
15533,
3639,
289,
3639,
12621,
18,
8507,
5621,
3639,
284,
1046,
4212,
1782,
9904,
31,
565,
289,
368,
1149,
751,
382,
1380,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
1149,
751,
382,
1350,
1435,
288,
3639,
309,
261,
9394,
67,
10976,
67,
27043,
24296,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
3001,
751,
382,
1350,
1435,
8863,
3639,
289,
3639,
309,
261,
74,
1046,
4212,
18,
2469,
1648,
284,
1046,
4212,
1782,
13,
288,
5411,
16723,
8526,
394,
1126,
273,
394,
16723,
63,
74,
1046,
4212,
18,
2469,
380,
576,
15533,
5411,
2332,
18,
1126,
3530,
12,
74,
1046,
4212,
16,
374,
16,
394,
1126,
16,
374,
16,
284,
1046,
4212,
18,
2469,
1769,
5411,
284,
1046,
4212,
273,
394,
1126,
31,
3639,
289,
3639,
16723,
12621,
273,
284,
1046,
4212,
63,
74,
1046,
4212,
1782,
15533,
3639,
309,
261,
85,
529,
422,
2
] |
return source.length == currentPosition;
|
return this.source.length == this.currentPosition;
|
public final boolean atEnd() { // This code is not relevant if source is // Only a part of the real stream input return source.length == currentPosition;}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/bd0b42da240c9e3160dab0f23f741fededbd0813/Scanner.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
225,
727,
1250,
622,
1638,
1435,
288,
202,
759,
1220,
981,
353,
486,
9368,
309,
1084,
353,
225,
202,
759,
5098,
279,
1087,
434,
326,
2863,
1407,
810,
202,
2463,
1084,
18,
2469,
422,
22356,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
225,
727,
1250,
622,
1638,
1435,
288,
202,
759,
1220,
981,
353,
486,
9368,
309,
1084,
353,
225,
202,
759,
5098,
279,
1087,
434,
326,
2863,
1407,
810,
202,
2463,
1084,
18,
2469,
422,
22356,
31,
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
] |
throw new ProgrammingError(message);
|
throw new ProgrammingError(DETAIL);
|
protected FunctionRequest convertRequestImpl(HttpServletRequest httpRequest) throws InvalidRequestException, FunctionNotSpecifiedException { String contentType = httpRequest.getContentType(); if (!contentType.startsWith("text/xml;") && !contentType.endsWith("charset=UTF-8")) { throw new InvalidRequestException("Incorrect content type.", null); } try { BufferedReader reader = httpRequest.getReader(); FastStringBuffer content = new FastStringBuffer(1024); String nextLine; while ((nextLine = reader.readLine()) !=null) { content.append(nextLine); content.append("\n"); } ElementParser parser = new ElementParser(); Element requestElem = parser.parse(content.toString().getBytes(REQUEST_ENCODING)); ProtectedPropertyReader functionParams = new ProtectedPropertyReader(SECRET_KEY); String functionName = requestElem.getAttribute("function"); Iterator parameters = requestElem.getChildElements("param").iterator(); while (parameters.hasNext()) { Element nextParam = (Element)parameters.next(); String name = nextParam.getAttribute("name"); String value = nextParam.getText(); if ("_function".equals(name) || "function".equals("name")) { if (functionName == null) { functionName = value; } else if (!functionName.equals(value)) { throw new InvalidRequestException("The request has more than two different function's name specified.", null); } } else if ((!TextUtils.isEmpty(name) && name.charAt(0) != '_')) { if (!TextUtils.isEmpty(value)) { functionParams.set(SECRET_KEY, name, value); } } } Element dataElement = null; List dataElementList = requestElem.getChildElements("data"); if (dataElementList.size() == 1) { dataElement = (Element)dataElementList.get(0); } else if (dataElementList.size() > 1) { throw new InvalidRequestException("The request has more than two data section specified.", null); } if (TextUtils.isEmpty(functionName)) { throw new FunctionNotSpecifiedException(); } return new FunctionRequest(functionName, functionParams, dataElement); } catch (UnsupportedEncodingException ex) { final String DETAIL = "Encoding \"" + REQUEST_ENCODING + "\" is not supported."; Log.log_3050(getClass().getName(), "convertRequestImpl(HttpServletRequest)", DETAIL); throw new ProgrammingError(message); } catch (IOException ex) { throw new InvalidRequestException("Cannot read the XML request.", ex); } catch (ParseException ex) { throw new InvalidRequestException("Cannot parse the XML request.", ex); } }
|
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/2242683bb1a436b47d10c085f0ecdcc4307f35b1/XMLCallingConvention.java/clean/src/java-server-framework/org/xins/server/XMLCallingConvention.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
4284,
691,
1765,
691,
2828,
12,
2940,
18572,
12189,
13,
282,
1216,
22636,
16,
1850,
4284,
1248,
17068,
503,
288,
1377,
514,
5064,
273,
12189,
18,
588,
8046,
5621,
1377,
309,
16051,
22194,
18,
17514,
1190,
2932,
955,
19,
2902,
4868,
13,
597,
401,
22194,
18,
5839,
1190,
2932,
9999,
33,
5159,
17,
28,
6,
3719,
288,
540,
604,
394,
22636,
2932,
16268,
913,
618,
1199,
16,
446,
1769,
1377,
289,
5411,
775,
288,
540,
10633,
2949,
273,
12189,
18,
588,
2514,
5621,
540,
9545,
780,
1892,
913,
273,
394,
9545,
780,
1892,
12,
2163,
3247,
1769,
540,
514,
26638,
31,
540,
1323,
14015,
4285,
1670,
273,
2949,
18,
896,
1670,
10756,
480,
2011,
13,
288,
5411,
913,
18,
6923,
12,
4285,
1670,
1769,
5411,
913,
18,
6923,
31458,
82,
8863,
540,
289,
540,
3010,
2678,
2082,
273,
394,
3010,
2678,
5621,
540,
3010,
590,
7498,
273,
2082,
18,
2670,
12,
1745,
18,
10492,
7675,
588,
2160,
12,
5519,
67,
14672,
10019,
5375,
1186,
1050,
1396,
2514,
445,
1370,
273,
394,
1186,
1050,
1396,
2514,
12,
20455,
67,
3297,
1769,
540,
514,
14117,
273,
590,
7498,
18,
588,
1499,
2932,
915,
8863,
540,
4498,
1472,
273,
590,
7498,
18,
588,
1763,
3471,
2932,
891,
20387,
9838,
5621,
540,
1323,
261,
3977,
18,
5332,
2134,
10756,
288,
5411,
3010,
1024,
786,
273,
261,
1046,
13,
3977,
18,
4285,
5621,
5411,
514,
508,
273,
1024,
786,
18,
588,
1499,
2932,
529,
8863,
5411,
514,
460,
273,
1024,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
4284,
691,
1765,
691,
2828,
12,
2940,
18572,
12189,
13,
282,
1216,
22636,
16,
1850,
4284,
1248,
17068,
503,
288,
1377,
514,
5064,
273,
12189,
18,
588,
8046,
5621,
1377,
309,
16051,
22194,
18,
17514,
1190,
2932,
955,
19,
2902,
4868,
13,
597,
401,
22194,
18,
5839,
1190,
2932,
9999,
33,
5159,
17,
28,
6,
3719,
288,
540,
604,
394,
22636,
2932,
16268,
913,
618,
1199,
16,
446,
1769,
1377,
289,
5411,
775,
288,
540,
10633,
2949,
273,
12189,
18,
588,
2514,
5621,
540,
9545,
780,
1892,
913,
273,
394,
9545,
780,
1892,
12,
2163,
3247,
1769,
540,
514,
26638,
31,
540,
1323,
14015,
4285,
1670,
273,
2949,
18,
896,
1670,
10756,
480,
2011,
13,
288,
5411,
2
] |
public void run() { frame.status.progress(0); frame.status.setStatus(""); File files[] = new File(YAMM.home + "/servers/").listFiles(); for (int i = 0; i < files.length; i++) { /* load the config */ try { InputStream in = new FileInputStream(files[i]); props.load(in); in.close(); } catch (IOException propsioe) { new ExceptionDialog(YAMM.getString("msg.error"), propsioe, YAMM.exceptionNames); } String type = props.getProperty("type"); String server = props.getProperty("server"); String username = props.getProperty("username"); String password = new SimpleCrypt("myKey").decrypt( props.getProperty("password")); boolean del = false; if (YAMM.getProperty("delete", "true").equals("true")) { del = true; } if (YAMM.getProperty("sentbox","true").equals("true")) { sent = true; } int port = 110; try { port = Integer.parseInt(props.getProperty("port")); } catch (Exception e) { port = 110; } if (type != null && server != null && username != null && password != null) { if (type.equals("pop3")) { Object[] argstmp = {server}; frame.status.setStatus(YAMM.getString("server.contact", argstmp)); Pop3 pop = null; try { pop = new YammPop3(username, password, server, YAMM.home + "/boxes/.filter", port, popdebug); int messages = pop.getMessageCount(); for (int j = 1; j <= messages; j++) { Object[] args = {"" + j, "" + messages}; frame.status.setStatus(YAMM.getString("server.get", args)); frame.status.progress(100-((100*messages-100*(j-1))/messages)); pop.getMessage(j); if (del) pop.deleteMessage(j); } frame.status.setStatus(YAMM.getString("msg.done")); frame.status.progress(100); } catch (IOException ioe) { new ExceptionDialog(YAMM.getString("msg.error"), ioe, YAMM.exceptionNames); } finally { try { if (pop != null) { pop.close(); } } catch (Exception e) {} } } } } if (YAMM.getProperty("smtpserver") != null && Mailbox.hasMail(YAMM.home + "/boxes/" + YAMM.getString("box.outbox"))) { Object[] argstmp = {"1"}; frame.status.setStatus(YAMM.getString("server.send", argstmp)); frame.status.progress(0); Smtp smtp = null; BufferedReader in = null; PrintWriter out = null; PrintWriter mail = null; try { smtp = new YammSmtp(YAMM.getProperty("smtpserver"), 25, smtpdebug); in = new BufferedReader( new InputStreamReader( new FileInputStream(YAMM.home + "/boxes/" + YAMM.getString("box.outbox")))); if (sent) { out = new PrintWriter( new BufferedOutputStream( new FileOutputStream(YAMM.home + YAMM.sep + "boxes" + YAMM.sep + YAMM.getString("box.sent"), true))); } String temp = null, from2 = null, to2 = null; int i = 1; for (;;) { temp = in.readLine(); if (temp == null) break; if (temp.startsWith("From:")) { String from = MessageParser.getEmail(temp); System.out.println("form: " + from); smtp.from(from); from2 = temp; if (sent) out.println(from2); } else if (temp.startsWith("To:")) { to2 = temp; if (temp.indexOf(",") == -1) { smtp.to(temp.substring(4, temp.length())); } else { temp.trim(); temp = temp.substring(4, temp.length()); while (temp.endsWith(",")) { smtp.to(temp.substring(0, temp.length()-1)); temp = in.readLine().trim(); to2 += "\n " + temp; } smtp.to(temp.substring(0, temp.length())); } if (sent) out.println(to2); } else if (temp.startsWith("Subject:")) { mail = smtp.getOutputStream(); mail.println(from2 + "\n" + to2 + "\n" + temp); if (sent) out.println(temp); for (;;) { temp = in.readLine(); if (temp == null) break; if (sent) out.println(temp); if (temp.equals(".")) { smtp.sendMessage(); Object[] args = {"" + i}; frame.status.setStatus(YAMM.getString("server.send", args)); i++; break; } mail.println(temp); } mail = null; } else { if (sent) out.println(temp); if (mail != null) mail.println(temp); } } File file = new File(YAMM.home + "/boxes/" + YAMM.getString("box.outbox")); file.delete(); file.createNewFile(); } catch (IOException ioe) { new ExceptionDialog(YAMM.getString("msg.error"), ioe, YAMM.exceptionNames); } finally { try { if (in != null) in.close(); if (sent && out != null) out.close(); if (smtp != null) smtp.close(); if (mail != null) mail.close(); } catch (IOException ioe) {} } if (sent) { Mailbox.updateIndex(YAMM.home + "/boxes/" + YAMM.getString("box.sent")); frame.tree.updateUI(); } } frame.status.setStatus(YAMM.getString("msg.done")); frame.status.progress(100); if (Mailbox.hasMail(YAMM.home + "/boxes/.filter")) { frame.status.setStatus(YAMM.getString("server.filter")); frame.status.progress(0); try { new Filter(); } catch (IOException ioe) { new ExceptionDialog(YAMM.getString("msg.error"), ioe, YAMM.exceptionNames); } frame.status.setStatus(YAMM.getString("msg.done")); frame.status.progress(100); frame.tree.updateUI(); } frame.status.setStatus(""); frame.status.progress(0); knappen.setEnabled(true); }
|
3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/d34f0b921d886e2ea79ca1692b8cb4efbc3811c5/SHMail.java/buggy/SHMail.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2681,
1435,
95,
202,
202,
3789,
18,
2327,
18,
8298,
12,
20,
1769,
202,
202,
3789,
18,
2327,
18,
542,
1482,
2932,
8863,
202,
202,
812,
2354,
8526,
33,
2704,
812,
12,
61,
2192,
49,
18,
8712,
9078,
19,
14247,
4898,
2934,
1098,
2697,
5621,
202,
202,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
2354,
18,
2469,
31,
77,
27245,
95,
1082,
202,
20308,
945,
451,
22703,
5549,
1082,
202,
698,
95,
9506,
202,
4348,
267,
33,
2704,
812,
4348,
12,
2354,
63,
77,
19226,
9506,
202,
9693,
18,
945,
12,
267,
1769,
9506,
202,
267,
18,
4412,
5621,
1082,
202,
97,
14683,
12,
14106,
9693,
1594,
73,
15329,
9506,
202,
2704,
503,
6353,
12,
61,
2192,
49,
18,
588,
780,
2932,
3576,
18,
1636,
6,
3631,
25083,
202,
9693,
1594,
73,
16,
25083,
202,
61,
2192,
49,
18,
4064,
1557,
1769,
1082,
202,
97,
1082,
202,
780,
723,
33,
9693,
18,
588,
1396,
2932,
723,
8863,
1082,
202,
780,
3567,
33,
9693,
18,
588,
1396,
2932,
3567,
8863,
1082,
202,
780,
5053,
33,
9693,
18,
588,
1396,
2932,
5053,
8863,
1082,
202,
780,
3664,
33,
2704,
5784,
22815,
2932,
4811,
653,
20387,
19790,
12,
25083,
202,
9693,
18,
588,
1396,
2932,
3664,
7923,
1769,
1082,
202,
1075,
790,
464,
292,
33,
5743,
31,
1082,
202,
430,
12,
61,
2192,
49,
18,
588,
1396,
2932,
3733,
15937,
3767,
20387,
14963,
2932,
3767,
6,
3719,
95,
9506,
202,
3771,
33,
3767,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2681,
1435,
95,
202,
202,
3789,
18,
2327,
18,
8298,
12,
20,
1769,
202,
202,
3789,
18,
2327,
18,
542,
1482,
2932,
8863,
202,
202,
812,
2354,
8526,
33,
2704,
812,
12,
61,
2192,
49,
18,
8712,
9078,
19,
14247,
4898,
2934,
1098,
2697,
5621,
202,
202,
1884,
12,
474,
77,
33,
20,
31,
77,
32,
2354,
18,
2469,
31,
77,
27245,
95,
1082,
202,
20308,
945,
451,
22703,
5549,
1082,
202,
698,
95,
9506,
202,
4348,
267,
33,
2704,
812,
4348,
12,
2354,
63,
77,
19226,
9506,
202,
9693,
18,
945,
12,
267,
1769,
9506,
202,
267,
18,
4412,
5621,
1082,
202,
97,
14683,
12,
14106,
9693,
1594,
73,
15329,
9506,
202,
2704,
503,
2
] |
||
this.portletMode = portletMode; String thismode = SportletProperties.PORTLET_MODE_JSR; req.setAttribute(thismode, portletMode);
|
req.setAttribute(SportletProperties.PORTLET_MODE, portletMode.toString());
|
public void setPortletMode(PortletMode portletMode) throws PortletModeException { if (redirected) { throw new IllegalStateException("it is not allowed to invoke setPortletMode after sendRedirect has been called"); } //Portlet.Mode mode = Portlet.Mode.VIEW; List allowedModes = (List) req.getAttribute(SportletProperties.ALLOWED_MODES); if (!allowedModes.contains(portletMode.toString())) throw new PortletModeException("Unsupported portlet mode!", portletMode); this.portletMode = portletMode; String thismode = SportletProperties.PORTLET_MODE_JSR; req.setAttribute(thismode, portletMode); isRedirectAllowed = false; }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/cfe877ddc52e22630ecb28267339cf855ef79387/ActionResponseImpl.java/clean/src/org/gridlab/gridsphere/portlet/jsrimpl/ActionResponseImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
18566,
2309,
12,
18566,
2309,
13114,
2309,
13,
5411,
1216,
21305,
2309,
503,
288,
3639,
309,
261,
7590,
329,
13,
288,
5411,
604,
394,
5477,
2932,
305,
353,
486,
2935,
358,
4356,
444,
18566,
2309,
1839,
1366,
5961,
711,
2118,
2566,
8863,
3639,
289,
3639,
368,
18566,
18,
2309,
1965,
273,
21305,
18,
2309,
18,
12145,
31,
3639,
987,
2935,
18868,
273,
261,
682,
13,
1111,
18,
588,
1499,
12,
55,
655,
1810,
2297,
18,
16852,
67,
7038,
55,
1769,
3639,
309,
16051,
8151,
18868,
18,
12298,
12,
655,
1810,
2309,
18,
10492,
1435,
3719,
604,
394,
21305,
2309,
503,
2932,
8544,
13114,
1965,
5,
3113,
13114,
2309,
1769,
3639,
333,
18,
655,
1810,
2309,
273,
13114,
2309,
31,
3639,
514,
333,
3188,
273,
348,
655,
1810,
2297,
18,
6354,
15146,
67,
7038,
67,
6479,
54,
31,
3639,
1111,
18,
542,
1499,
12,
2211,
3188,
16,
13114,
2309,
1769,
3639,
353,
5961,
5042,
273,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
18566,
2309,
12,
18566,
2309,
13114,
2309,
13,
5411,
1216,
21305,
2309,
503,
288,
3639,
309,
261,
7590,
329,
13,
288,
5411,
604,
394,
5477,
2932,
305,
353,
486,
2935,
358,
4356,
444,
18566,
2309,
1839,
1366,
5961,
711,
2118,
2566,
8863,
3639,
289,
3639,
368,
18566,
18,
2309,
1965,
273,
21305,
18,
2309,
18,
12145,
31,
3639,
987,
2935,
18868,
273,
261,
682,
13,
1111,
18,
588,
1499,
12,
55,
655,
1810,
2297,
18,
16852,
67,
7038,
55,
1769,
3639,
309,
16051,
8151,
18868,
18,
12298,
12,
655,
1810,
2309,
18,
10492,
1435,
3719,
604,
394,
21305,
2309,
503,
2932,
8544,
13114,
1965,
5,
3113,
13114,
2309,
1769,
3639,
333,
18,
655,
1810,
2309,
2
] |
int idx = key.indexOf(MULTI_LEVEL_CHAR);
|
int idx = key.lastIndexOf(MULTI_LEVEL_CHAR);
|
public String get(String key) { if(multiLevel) { int idx = key.indexOf(MULTI_LEVEL_CHAR); if(idx == -1) return (String) map.get(key); else { String before = key.substring(0, idx); String after = key.substring(idx+1); SimpleFieldSet fs = (SimpleFieldSet) (map.get(before)); if(fs == null) return null; return fs.get(after); } } else { return (String) map.get(key); } }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/58d2b8bb1b32d43b8dd885e377df3db97de08f50/SimpleFieldSet.java/clean/src/freenet/support/SimpleFieldSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
12,
780,
498,
13,
288,
377,
202,
430,
12,
7027,
2355,
13,
288,
377,
202,
202,
474,
2067,
273,
498,
18,
2722,
31985,
12,
26588,
67,
10398,
67,
7305,
1769,
377,
202,
202,
430,
12,
3465,
422,
300,
21,
13,
377,
1082,
202,
2463,
261,
780,
13,
852,
18,
588,
12,
856,
1769,
377,
202,
202,
12107,
288,
377,
1082,
202,
780,
1865,
273,
498,
18,
28023,
12,
20,
16,
2067,
1769,
377,
1082,
202,
780,
1839,
273,
498,
18,
28023,
12,
3465,
15,
21,
1769,
377,
1082,
202,
5784,
974,
694,
2662,
273,
261,
5784,
974,
694,
13,
261,
1458,
18,
588,
12,
5771,
10019,
377,
1082,
202,
430,
12,
2556,
422,
446,
13,
327,
446,
31,
377,
1082,
202,
2463,
2662,
18,
588,
12,
5205,
1769,
377,
202,
202,
97,
377,
202,
97,
469,
288,
377,
202,
202,
2463,
261,
780,
13,
852,
18,
588,
12,
856,
1769,
377,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
12,
780,
498,
13,
288,
377,
202,
430,
12,
7027,
2355,
13,
288,
377,
202,
202,
474,
2067,
273,
498,
18,
2722,
31985,
12,
26588,
67,
10398,
67,
7305,
1769,
377,
202,
202,
430,
12,
3465,
422,
300,
21,
13,
377,
1082,
202,
2463,
261,
780,
13,
852,
18,
588,
12,
856,
1769,
377,
202,
202,
12107,
288,
377,
1082,
202,
780,
1865,
273,
498,
18,
28023,
12,
20,
16,
2067,
1769,
377,
1082,
202,
780,
1839,
273,
498,
18,
28023,
12,
3465,
15,
21,
1769,
377,
1082,
202,
5784,
974,
694,
2662,
273,
261,
5784,
974,
694,
13,
261,
1458,
18,
588,
12,
5771,
10019,
377,
1082,
202,
430,
12,
2556,
422,
446,
13,
2
] |
public static DateMidnight getFirstWeekOfYear(int year, int firstDay)
|
public static LocalDate getFirstWeekOfYear(int year, int firstDay)
|
public static DateMidnight getFirstWeekOfYear(int year, int firstDay) { DateMidnight yearStart = new DateMidnight(year, 1, 1); final int daysPerWeek = yearStart.dayOfWeek().getMaximumValue(); int diff = (yearStart.getDayOfWeek() + daysPerWeek - firstDay) % daysPerWeek; if (diff > (daysPerWeek / 2)) yearStart = yearStart.plus(Period.days(daysPerWeek - diff)); else yearStart = yearStart.minus(Period.days(diff)); return yearStart; }
|
18469 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18469/03bf0462052e16faf8bdc800ea80217bb2752cfb/CalendarUtils.java/buggy/src/java/com/atlassian/confluence/extra/calendar/CalendarUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15815,
7521,
6630,
19091,
12,
474,
3286,
16,
509,
1122,
4245,
13,
565,
288,
3639,
2167,
20711,
18840,
3286,
1685,
273,
394,
2167,
20711,
18840,
12,
6874,
16,
404,
16,
404,
1769,
3639,
727,
509,
4681,
2173,
6630,
273,
3286,
1685,
18,
2881,
12250,
7675,
588,
13528,
620,
5621,
3639,
509,
3122,
273,
261,
6874,
1685,
18,
588,
23944,
1435,
397,
4681,
2173,
6630,
300,
1122,
4245,
13,
738,
4681,
2173,
6630,
31,
3639,
309,
261,
5413,
405,
261,
9810,
2173,
6630,
342,
576,
3719,
5411,
3286,
1685,
273,
3286,
1685,
18,
10103,
12,
5027,
18,
9810,
12,
9810,
2173,
6630,
300,
3122,
10019,
3639,
469,
5411,
3286,
1685,
273,
3286,
1685,
18,
19601,
12,
5027,
18,
9810,
12,
5413,
10019,
3639,
327,
3286,
1685,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15815,
7521,
6630,
19091,
12,
474,
3286,
16,
509,
1122,
4245,
13,
565,
288,
3639,
2167,
20711,
18840,
3286,
1685,
273,
394,
2167,
20711,
18840,
12,
6874,
16,
404,
16,
404,
1769,
3639,
727,
509,
4681,
2173,
6630,
273,
3286,
1685,
18,
2881,
12250,
7675,
588,
13528,
620,
5621,
3639,
509,
3122,
273,
261,
6874,
1685,
18,
588,
23944,
1435,
397,
4681,
2173,
6630,
300,
1122,
4245,
13,
738,
4681,
2173,
6630,
31,
3639,
309,
261,
5413,
405,
261,
9810,
2173,
6630,
342,
576,
3719,
5411,
3286,
1685,
273,
3286,
1685,
18,
10103,
12,
5027,
18,
9810,
12,
9810,
2173,
6630,
300,
3122,
10019,
3639,
469,
5411,
3286,
1685,
273,
3286,
1685,
18,
19601,
12,
5027,
2
] |
String ccsidMBCEncoding = currentStatement.ccsidMBCEncoding; if (length == 0) return null; byte [] byteStr = reader.readBytes(length); if (ccsidMBCEncoding != null) { try { strVal = new String(byteStr, 0, length, ccsidMBCEncoding); } catch (UnsupportedEncodingException e) { agentError("Unsupported encoding " + ccsidMBCEncoding + "in parseCcsidMBC"); } } else agentError("Attempt to decode mixed byte string without CCSID being set"); return strVal; }
|
} else agentError("Attempt to decode mixed byte string without CCSID being set"); return strVal; }
|
private String parseCcsidMBC(int length) throws DRDAProtocolException { String strVal = null; DRDAStatement currentStatement; currentStatement = database.getCurrentStatement(); if (currentStatement == null) { currentStatement = database.getDefaultStatement(); currentStatement.initialize(); } String ccsidMBCEncoding = currentStatement.ccsidMBCEncoding; if (length == 0) return null; byte [] byteStr = reader.readBytes(length); if (ccsidMBCEncoding != null) { try { strVal = new String(byteStr, 0, length, ccsidMBCEncoding); } catch (UnsupportedEncodingException e) { agentError("Unsupported encoding " + ccsidMBCEncoding + "in parseCcsidMBC"); } } else agentError("Attempt to decode mixed byte string without CCSID being set"); return strVal; }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1109,
39,
2143,
350,
7969,
39,
12,
474,
769,
13,
1216,
16801,
9793,
5752,
503,
202,
95,
202,
202,
780,
609,
3053,
273,
446,
31,
202,
202,
6331,
9793,
3406,
225,
783,
3406,
31,
202,
202,
2972,
3406,
273,
2063,
18,
588,
3935,
3406,
5621,
202,
202,
430,
261,
2972,
3406,
422,
446,
13,
202,
202,
95,
1082,
202,
2972,
3406,
273,
2063,
18,
588,
1868,
3406,
5621,
1082,
202,
2972,
3406,
18,
11160,
5621,
202,
202,
97,
202,
202,
780,
276,
2143,
350,
7969,
39,
4705,
273,
783,
3406,
18,
952,
7453,
7969,
39,
4705,
31,
202,
202,
430,
261,
2469,
422,
374,
13,
1082,
202,
2463,
446,
31,
202,
202,
7229,
5378,
1160,
1585,
273,
2949,
18,
896,
2160,
12,
2469,
1769,
202,
202,
430,
261,
952,
7453,
7969,
39,
4705,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
288,
9506,
202,
701,
3053,
273,
394,
514,
12,
7229,
1585,
16,
374,
16,
769,
16,
276,
2143,
350,
7969,
39,
4705,
1769,
1082,
202,
97,
1044,
261,
8544,
13836,
425,
13,
288,
9506,
202,
5629,
668,
2932,
8544,
2688,
315,
397,
276,
2143,
350,
7969,
39,
4705,
397,
6862,
202,
6,
267,
1109,
39,
2143,
350,
7969,
39,
8863,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
1082,
202,
5629,
668,
2932,
7744,
358,
2495,
7826,
1160,
533,
2887,
385,
4596,
734,
3832,
444,
8863,
202,
202,
2463,
609,
3053,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1109,
39,
2143,
350,
7969,
39,
12,
474,
769,
13,
1216,
16801,
9793,
5752,
503,
202,
95,
202,
202,
780,
609,
3053,
273,
446,
31,
202,
202,
6331,
9793,
3406,
225,
783,
3406,
31,
202,
202,
2972,
3406,
273,
2063,
18,
588,
3935,
3406,
5621,
202,
202,
430,
261,
2972,
3406,
422,
446,
13,
202,
202,
95,
1082,
202,
2972,
3406,
273,
2063,
18,
588,
1868,
3406,
5621,
1082,
202,
2972,
3406,
18,
11160,
5621,
202,
202,
97,
202,
202,
780,
276,
2143,
350,
7969,
39,
4705,
273,
783,
3406,
18,
952,
7453,
7969,
39,
4705,
31,
202,
202,
430,
261,
2469,
422,
374,
13,
1082,
202,
2463,
446,
31,
202,
202,
7229,
5378,
1160,
2
] |
public Map getAppContext() {
|
public Map getAppContext( ) {
|
public Map getAppContext() { return appContext; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b900dee3dd264c71eb7ed27f88571d5b40a336c0/ExecutionContext.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1635,
13697,
1042,
1435,
288,
202,
202,
2463,
595,
1042,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1635,
13697,
1042,
1435,
288,
202,
202,
2463,
595,
1042,
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
] |
return storage[0];
|
return (Context)storage[0];
|
public static Context getCurrentContext() { Context[] storage = getThreadContextStorage(); if (storage != null) { return storage[0]; } return getCurrentContext_jdk11(); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/2b0cb3267d6abd2ba6d59d1a21e8da9fd746d5bd/Context.java/clean/src/org/mozilla/javascript/Context.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1772,
5175,
1042,
1435,
565,
288,
3639,
1772,
8526,
2502,
273,
24459,
1042,
3245,
5621,
3639,
309,
261,
5697,
480,
446,
13,
288,
5411,
327,
261,
1042,
13,
5697,
63,
20,
15533,
3639,
289,
3639,
327,
5175,
1042,
67,
78,
2883,
2499,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1772,
5175,
1042,
1435,
565,
288,
3639,
1772,
8526,
2502,
273,
24459,
1042,
3245,
5621,
3639,
309,
261,
5697,
480,
446,
13,
288,
5411,
327,
261,
1042,
13,
5697,
63,
20,
15533,
3639,
289,
3639,
327,
5175,
1042,
67,
78,
2883,
2499,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.allowOverwrite = true; this.silentlyRename = false;
|
this.allowOverwrite = true; this.silentlyRename = false;
|
public void init(PortletConfig conf) throws PortletException { String value; super.init(conf); this.portletContext = conf.getPortletContext(); this.envPortletContext = new PortletContext(this.portletContext); this.portletContextPath = this.portletContext.getRealPath("/"); initLogger(); // first init the work-directory for the logger. // this is required if we are running inside a war file! final String workDirParam = getInitParameter("work-directory"); if (workDirParam != null) { if (this.portletContextPath == null) { // No context path : consider work-directory as absolute this.workDir = new File(workDirParam); } else { // Context path exists : is work-directory absolute ? File workDirParamFile = new File(workDirParam); if (workDirParamFile.isAbsolute()) { // Yes : keep it as is this.workDir = workDirParamFile; } else { // No : consider it relative to context path this.workDir = new File(portletContextPath, workDirParam); } } } else { // TODO: Check portlet specification this.workDir = (File) this.portletContext.getAttribute("javax.servlet.context.tempdir"); if (this.workDir == null) { this.workDir = new File(this.portletContext.getRealPath("/WEB-INF/work")); } this.workDir = new File(workDir, "cocoon-files"); } this.workDir.mkdirs(); final String uploadDirParam = conf.getInitParameter("upload-directory"); if (uploadDirParam != null) { if (this.portletContextPath == null) { this.uploadDir = new File(uploadDirParam); } else { // Context path exists : is upload-directory absolute ? File uploadDirParamFile = new File(uploadDirParam); if (uploadDirParamFile.isAbsolute()) { // Yes : keep it as is this.uploadDir = uploadDirParamFile; } else { // No : consider it relative to context path this.uploadDir = new File(portletContextPath, uploadDirParam); } } if (getLogger().isDebugEnabled()) { getLogger().debug("Using upload-directory " + this.uploadDir); } } else { this.uploadDir = new File(workDir, "upload-dir" + File.separator); if (getLogger().isDebugEnabled()) { getLogger().debug("upload-directory was not set - defaulting to " + this.uploadDir); } } this.uploadDir.mkdirs(); this.enableUploads = getInitParameterAsBoolean("enable-uploads", ENABLE_UPLOADS); this.autoSaveUploads = getInitParameterAsBoolean("autosave-uploads", SAVE_UPLOADS_TO_DISK); String overwriteParam = getInitParameter("overwrite-uploads", "rename"); // accepted values are deny|allow|rename - rename is default. if ("deny".equalsIgnoreCase(overwriteParam)) { this.allowOverwrite = false; this.silentlyRename = false; } else if ("allow".equalsIgnoreCase(overwriteParam)) { this.allowOverwrite = true; this.silentlyRename = false; // ignored in this case } else { // either rename is specified or unsupported value - default to rename. this.allowOverwrite = false; this.silentlyRename = true; } this.maxUploadSize = getInitParameterAsInteger("upload-max-size", MAX_UPLOAD_SIZE); value = conf.getInitParameter("show-time"); this.showTime = "yes".equalsIgnoreCase(value) || "true".equalsIgnoreCase(value) || (this.hiddenShowTime = "hide".equals(value)); if (value == null) { if (getLogger().isDebugEnabled()) { getLogger().debug("show-time was not set - defaulting to false"); } } this.containerEncoding = getInitParameter("container-encoding", "ISO-8859-1"); this.defaultFormEncoding = getInitParameter("form-encoding","ISO-8859-1"); this.manageExceptions = getInitParameterAsBoolean("manage-exceptions", true); this.requestFactory = new RequestFactory(this.autoSaveUploads, this.uploadDir, this.allowOverwrite, this.silentlyRename, this.maxUploadSize, this.defaultFormEncoding); this.servletPath = getInitParameter("servlet-path", null); if (this.servletPath != null) { if (this.servletPath.startsWith("/")) { this.servletPath = this.servletPath.substring(1); } if (this.servletPath.length() > 0 && this.servletPath.charAt(0) != '/') { this.servletPath += '/'; } } final String sessionScopeParam = getInitParameter("default-session-scope", "portlet"); if ("application".equalsIgnoreCase(sessionScopeParam)) { this.defaultSessionScope = javax.portlet.PortletSession.APPLICATION_SCOPE; } else { this.defaultSessionScope = javax.portlet.PortletSession.PORTLET_SCOPE; } this.storeSessionPath = getInitParameterAsBoolean("store-session-path", false); }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/68e85db773c775cc7468d1171c7a5179d754d3c6/ManagedCocoonPortlet.java/clean/src/blocks/portal/java/org/apache/cocoon/portlet/ManagedCocoonPortlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
18566,
809,
2195,
13,
1216,
21305,
503,
288,
3639,
514,
460,
31,
3639,
2240,
18,
2738,
12,
3923,
1769,
3639,
333,
18,
655,
1810,
1042,
273,
2195,
18,
588,
18566,
1042,
5621,
3639,
333,
18,
3074,
18566,
1042,
273,
394,
21305,
1042,
12,
2211,
18,
655,
1810,
1042,
1769,
3639,
333,
18,
655,
1810,
1042,
743,
273,
333,
18,
655,
1810,
1042,
18,
588,
6955,
743,
2932,
4898,
1769,
3639,
1208,
3328,
5621,
3639,
368,
1122,
1208,
326,
1440,
17,
5149,
364,
326,
1194,
18,
3639,
368,
333,
353,
1931,
309,
732,
854,
3549,
4832,
279,
21983,
585,
5,
3639,
727,
514,
1440,
1621,
786,
273,
26458,
1662,
2932,
1252,
17,
5149,
8863,
3639,
309,
261,
1252,
1621,
786,
480,
446,
13,
288,
5411,
309,
261,
2211,
18,
655,
1810,
1042,
743,
422,
446,
13,
288,
7734,
368,
2631,
819,
589,
294,
5260,
1440,
17,
5149,
487,
4967,
7734,
333,
18,
1252,
1621,
273,
394,
1387,
12,
1252,
1621,
786,
1769,
5411,
289,
469,
288,
7734,
368,
1772,
589,
1704,
294,
353,
1440,
17,
5149,
4967,
692,
7734,
1387,
1440,
1621,
786,
812,
273,
394,
1387,
12,
1252,
1621,
786,
1769,
7734,
309,
261,
1252,
1621,
786,
812,
18,
291,
10368,
10756,
288,
10792,
368,
19925,
294,
3455,
518,
487,
353,
10792,
333,
18,
1252,
1621,
273,
1440,
1621,
786,
812,
31,
7734,
289,
469,
288,
10792,
368,
2631,
294,
5260,
518,
3632,
358,
819,
589,
10792,
333,
18,
1252,
1621,
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,
377,
1071,
918,
1208,
12,
18566,
809,
2195,
13,
1216,
21305,
503,
288,
3639,
514,
460,
31,
3639,
2240,
18,
2738,
12,
3923,
1769,
3639,
333,
18,
655,
1810,
1042,
273,
2195,
18,
588,
18566,
1042,
5621,
3639,
333,
18,
3074,
18566,
1042,
273,
394,
21305,
1042,
12,
2211,
18,
655,
1810,
1042,
1769,
3639,
333,
18,
655,
1810,
1042,
743,
273,
333,
18,
655,
1810,
1042,
18,
588,
6955,
743,
2932,
4898,
1769,
3639,
1208,
3328,
5621,
3639,
368,
1122,
1208,
326,
1440,
17,
5149,
364,
326,
1194,
18,
3639,
368,
333,
353,
1931,
309,
732,
854,
3549,
4832,
279,
21983,
585,
5,
3639,
727,
514,
1440,
1621,
786,
273,
26458,
1662,
2932,
1252,
17,
5149,
8863,
3639,
2
] |
}
|
public boolean isSubsetOf(XSWildcardDecl superWildcard) { // For a namespace constraint (call it sub) to be an intensional subset of another namespace // constraint (call it super) one of the following must be true: // 1 super must be any. if (superWildcard.fType == WILDCARD_ANY) { return true; } // 2 All of the following must be true: // 2.1 sub must be a pair of not and a namespace name or absent. // 2.2 super must be a pair of not and the same value. else if ( (fType == WILDCARD_OTHER) && (superWildcard.fType == WILDCARD_OTHER) ){ return (fNamespaceList[0] == superWildcard.fNamespaceList[0]); } // 3 All of the following must be true: // 3.1 sub must be a set whose members are either namespace names or absent. // 3.2 One of the following must be true: // 3.2.1 super must be the same set or a superset thereof. // 3.2.2 super must be a pair of not and a namespace name or absent and // that value must not be in sub's set. else if (fType == WILDCARD_LIST) { if (superWildcard.fType == WILDCARD_LIST) { boolean found; for (int i=0; i<fNamespaceList.length; i++) { found = false; for (int j=0; j<superWildcard.fNamespaceList.length; j++) if (fNamespaceList[i] == superWildcard.fNamespaceList[j]) { found = true; break; } if (!found) return false; } return true; } else if (superWildcard.fType == WILDCARD_OTHER) { for (int i=0; i<fNamespaceList.length; i++) { if (superWildcard.fNamespaceList[0] == fNamespaceList[i]) return false; } return true; } } return false; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/50e0e90474f17c2340a8b62bc80ec175f34e9416/XSWildcardDecl.java/clean/src/org/apache/xerces/impl/v2/XSWildcardDecl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
16523,
542,
951,
12,
60,
55,
12121,
3456,
2240,
12121,
13,
288,
3639,
368,
2457,
279,
1981,
4954,
261,
1991,
518,
720,
13,
358,
506,
392,
509,
1451,
287,
7931,
434,
4042,
1981,
3639,
368,
4954,
261,
1991,
518,
2240,
13,
1245,
434,
326,
3751,
1297,
506,
638,
30,
3639,
368,
404,
2240,
1297,
506,
1281,
18,
565,
309,
261,
9565,
12121,
18,
74,
559,
422,
678,
29067,
67,
15409,
13,
288,
3639,
327,
638,
31,
4202,
368,
576,
4826,
434,
326,
3751,
1297,
506,
638,
30,
565,
368,
282,
576,
18,
21,
720,
1297,
506,
279,
3082,
434,
486,
471,
279,
1981,
508,
578,
17245,
18,
565,
368,
282,
576,
18,
22,
2240,
1297,
506,
279,
3082,
434,
486,
471,
326,
1967,
460,
18,
565,
469,
309,
261,
261,
74,
559,
422,
678,
29067,
67,
23940,
13,
597,
261,
9565,
12121,
18,
74,
559,
422,
678,
29067,
67,
23940,
13,
262,
95,
3639,
327,
261,
74,
3402,
682,
63,
20,
65,
422,
2240,
12121,
18,
74,
3402,
682,
63,
20,
19226,
4202,
368,
890,
4826,
434,
326,
3751,
1297,
506,
638,
30,
565,
368,
282,
890,
18,
21,
720,
1297,
506,
279,
444,
8272,
4833,
854,
3344,
1981,
1257,
578,
17245,
18,
565,
368,
282,
890,
18,
22,
6942,
434,
326,
3751,
1297,
506,
638,
30,
565,
368,
4202,
890,
18,
22,
18,
21,
2240,
1297,
506,
326,
1967,
444,
578,
279,
1169,
21686,
1915,
792,
18,
565,
368,
4202,
890,
18,
22,
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,
16523,
542,
951,
12,
60,
55,
12121,
3456,
2240,
12121,
13,
288,
3639,
368,
2457,
279,
1981,
4954,
261,
1991,
518,
720,
13,
358,
506,
392,
509,
1451,
287,
7931,
434,
4042,
1981,
3639,
368,
4954,
261,
1991,
518,
2240,
13,
1245,
434,
326,
3751,
1297,
506,
638,
30,
3639,
368,
404,
2240,
1297,
506,
1281,
18,
565,
309,
261,
9565,
12121,
18,
74,
559,
422,
678,
29067,
67,
15409,
13,
288,
3639,
327,
638,
31,
4202,
368,
576,
4826,
434,
326,
3751,
1297,
506,
638,
30,
565,
368,
282,
576,
18,
21,
720,
1297,
506,
279,
3082,
434,
486,
471,
279,
1981,
508,
578,
17245,
18,
565,
368,
282,
576,
18,
22,
2240,
1297,
506,
2
] |
|
cost=mascTonnage*entity.getOriginalWalkMP()*(int)entity.getWeight()*1000;
|
} else if(this.hasFlag(MiscType.F_JUMP_BOOSTER)) { cost = (int)(entity.getWeight() * entity.getOriginalJumpMP() * entity.getOriginalJumpMP() * 150); } else if(this.hasFlag(MiscType.F_JUMP_JET)) { int multi = 200; if(this.name=="Improved Jump Jet") multi = 500; cost = (int)(entity.getWeight() * entity.getOriginalJumpMP() * multi);
|
public int resolveVariableCost(Entity entity) { //TODO implement this! int cost=0; if(this instanceof MiscType) { if(this.hasFlag(MiscType.F_MASC)) { //masc=engine rating*masc tonnage*1000 int mascTonnage=0; if (this.getInternalName().equals("ISMASC")) { mascTonnage = Math.round(entity.getWeight() / 20.0f); } else if (this.getInternalName().equals("CLMASC")) { mascTonnage = Math.round(entity.getWeight() / 25.0f); } cost=mascTonnage*entity.getOriginalWalkMP()*(int)entity.getWeight()*1000; } else if(this.hasFlag(MiscType.F_TARGCOMP)) { int tCompTons=0; float fTons = 0.0f; for (Enumeration i = entity.getWeapons(); i.hasMoreElements();) { Mounted mo = (Mounted)i.nextElement(); WeaponType wt = (WeaponType)mo.getType(); if (wt.hasFlag(WeaponType.F_DIRECT_FIRE)) fTons += wt.getTonnage(entity); } if (this.getInternalName().equals("ISTargeting Computer")) { tCompTons=(int)Math.ceil(fTons / 4.0f); } else if (this.getInternalName().equals("CLTargeting Computer")) { tCompTons=(int)Math.ceil(fTons / 5.0f); } cost=tCompTons*10000; } else if (this.hasFlag(MiscType.F_CLUB) && (this.hasSubType(MiscType.S_HATCHET) || this.hasSubType(MiscType.S_MACE_THB))) { int hatchetTons=(int) Math.ceil(entity.getWeight() / 15.0); cost=hatchetTons*5000; } else if (this.hasFlag(MiscType.F_CLUB) && this.hasSubType(MiscType.S_SWORD)) { int swordTons=(int) Math.ceil(entity.getWeight() / 15.0); cost=swordTons*10000; } } else { if(cost==0) { //if we don't know what it is... System.out.println("I don't know how much " + this.name + " costs."); } } return cost; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/172078b8adefbe88f7423178b650065ed6db8c6a/EquipmentType.java/buggy/megamek/src/megamek/common/EquipmentType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2245,
3092,
8018,
12,
1943,
1522,
13,
288,
3639,
368,
6241,
2348,
333,
5,
3639,
509,
6991,
33,
20,
31,
3639,
309,
12,
2211,
1276,
16584,
71,
559,
13,
288,
5411,
309,
12,
2211,
18,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
5535,
2312,
3719,
288,
7734,
368,
81,
3691,
33,
8944,
13953,
14,
81,
3691,
268,
265,
82,
410,
14,
18088,
7734,
509,
312,
3691,
56,
265,
82,
410,
33,
20,
31,
7734,
309,
261,
2211,
18,
588,
3061,
461,
7675,
14963,
2932,
5127,
5535,
2312,
6,
3719,
288,
10792,
312,
3691,
56,
265,
82,
410,
273,
2361,
18,
2260,
12,
1096,
18,
588,
6544,
1435,
342,
4200,
18,
20,
74,
1769,
7734,
289,
469,
309,
261,
2211,
18,
588,
3061,
461,
7675,
14963,
2932,
5017,
5535,
2312,
6,
3719,
288,
10792,
312,
3691,
56,
265,
82,
410,
273,
2361,
18,
2260,
12,
1096,
18,
588,
6544,
1435,
342,
6969,
18,
20,
74,
1769,
7734,
289,
7734,
289,
469,
309,
12,
2211,
18,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
46,
23942,
67,
5315,
4005,
654,
3719,
288,
6991,
273,
261,
474,
21433,
1096,
18,
588,
6544,
1435,
380,
1522,
18,
588,
8176,
26743,
4566,
1435,
380,
1522,
18,
588,
8176,
26743,
4566,
1435,
380,
18478,
1769,
289,
469,
309,
12,
2211,
18,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
46,
23942,
67,
46,
1584,
3719,
288,
509,
3309,
273,
4044,
31,
309,
12,
2211,
18,
529,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2245,
3092,
8018,
12,
1943,
1522,
13,
288,
3639,
368,
6241,
2348,
333,
5,
3639,
509,
6991,
33,
20,
31,
3639,
309,
12,
2211,
1276,
16584,
71,
559,
13,
288,
5411,
309,
12,
2211,
18,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
5535,
2312,
3719,
288,
7734,
368,
81,
3691,
33,
8944,
13953,
14,
81,
3691,
268,
265,
82,
410,
14,
18088,
7734,
509,
312,
3691,
56,
265,
82,
410,
33,
20,
31,
7734,
309,
261,
2211,
18,
588,
3061,
461,
7675,
14963,
2932,
5127,
5535,
2312,
6,
3719,
288,
10792,
312,
3691,
56,
265,
82,
410,
273,
2361,
18,
2260,
12,
1096,
18,
588,
6544,
1435,
342,
4200,
18,
20,
74,
1769,
7734,
2
] |
res = new EncodingHelper("Cp" + encodingName);
|
if (encodingName.toLowerCase().startsWith("cp") && encodingName.length() > 2) { res = new EncodingHelper("Cp" + encodingName.substring(2)); } else { res = new EncodingHelper("Cp" + encodingName); }
|
public static EncodingHelper getHelper(String encodingName) { EncodingHelper res = (EncodingHelper) knownEncodings.get(encodingName); if (res == null) { try { res = new EncodingHelper(encodingName); } catch (UnsupportedEncodingException e) { } } // SAfe Try prepending Cp or MS to the character set. This should // cover all the character sets known by SQL Server. if (res == null) { try { res = new EncodingHelper("Cp" + encodingName); } catch (UnsupportedEncodingException e) { } } if (res == null) { try { res = new EncodingHelper("MS" + encodingName); } catch (UnsupportedEncodingException e) { } } if (res != null) { knownEncodings.put(encodingName, res); } return res; }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/3e2f69a5cf4d16d71f62fa46e50587a17139ea79/EncodingHelper.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/EncodingHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
13400,
2276,
22205,
12,
780,
2688,
461,
13,
288,
3639,
13400,
2276,
400,
273,
261,
4705,
2276,
13,
4846,
25100,
899,
18,
588,
12,
5999,
461,
1769,
3639,
309,
261,
455,
422,
446,
13,
288,
5411,
775,
288,
7734,
400,
273,
394,
13400,
2276,
12,
5999,
461,
1769,
5411,
289,
1044,
261,
8544,
13836,
425,
13,
288,
5411,
289,
3639,
289,
3639,
368,
17127,
3030,
6161,
8254,
310,
385,
84,
578,
9238,
358,
326,
3351,
444,
18,
1220,
1410,
3639,
368,
1377,
5590,
777,
326,
3351,
1678,
4846,
635,
3063,
3224,
18,
3639,
309,
261,
455,
422,
446,
13,
288,
5411,
775,
288,
7734,
309,
261,
5999,
461,
18,
869,
5630,
7675,
17514,
1190,
2932,
4057,
7923,
597,
2688,
461,
18,
2469,
1435,
405,
576,
13,
288,
400,
273,
394,
13400,
2276,
2932,
28954,
6,
397,
2688,
461,
18,
28023,
12,
22,
10019,
289,
469,
288,
400,
273,
394,
13400,
2276,
2932,
28954,
6,
397,
2688,
461,
1769,
289,
5411,
289,
1044,
261,
8544,
13836,
425,
13,
288,
5411,
289,
3639,
289,
3639,
309,
261,
455,
422,
446,
13,
288,
5411,
775,
288,
7734,
400,
273,
394,
13400,
2276,
2932,
3537,
6,
397,
2688,
461,
1769,
5411,
289,
1044,
261,
8544,
13836,
425,
13,
288,
5411,
289,
3639,
289,
3639,
309,
261,
455,
480,
446,
13,
288,
5411,
4846,
25100,
899,
18,
458,
12,
5999,
461,
16,
400,
1769,
3639,
289,
3639,
327,
400,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
13400,
2276,
22205,
12,
780,
2688,
461,
13,
288,
3639,
13400,
2276,
400,
273,
261,
4705,
2276,
13,
4846,
25100,
899,
18,
588,
12,
5999,
461,
1769,
3639,
309,
261,
455,
422,
446,
13,
288,
5411,
775,
288,
7734,
400,
273,
394,
13400,
2276,
12,
5999,
461,
1769,
5411,
289,
1044,
261,
8544,
13836,
425,
13,
288,
5411,
289,
3639,
289,
3639,
368,
17127,
3030,
6161,
8254,
310,
385,
84,
578,
9238,
358,
326,
3351,
444,
18,
1220,
1410,
3639,
368,
1377,
5590,
777,
326,
3351,
1678,
4846,
635,
3063,
3224,
18,
3639,
309,
261,
455,
422,
446,
13,
288,
5411,
775,
288,
7734,
309,
261,
5999,
461,
18,
869,
5630,
7675,
17514,
1190,
2932,
4057,
2
] |
pc = finallyStack[tryStackTop];
|
pc = finallyStack[tryStackTop - 1];
|
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = Undefined.instance; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = Undefined.instance; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = Undefined.instance; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.instanceOf(lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs); pc += 2; break; case TokenStream.NEW : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 2; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new NativeClosure(cx, scope, theData.itsNestedFunctions[i]); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } /* debug only, will be going soon catch (ArrayIndexOutOfBoundsException oob) { System.out.println("OOB @ " + pc + " " + oob + " in " + theData.itsName + " " + oob.getMessage()); throw oob; } */ catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/cc732387b7980624f0d89f395455cca40b08f9cd/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
1333,
1031,
15533,
18701,
1033,
8526,
4153,
273,
446,
31,
7734,
509,
277,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
309,
261,
77,
405,
374,
13,
288,
5411,
4153,
273,
394,
1033,
63,
77,
15533,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
326,
751,
18,
1282,
3092,
1388,
18,
588,
1662,
1380,
5621,
277,
27245,
288,
7734,
309,
261,
77,
1545,
326,
751,
18,
1282,
382,
2615,
18,
2469,
13,
10792,
4153,
63,
77,
65,
273,
22243,
18,
1336,
31,
7734,
469,
4766,
565,
4153,
63,
77,
65,
273,
326,
751,
18,
1282,
382,
2615,
63,
77,
15533,
7734,
289,
5411,
364,
261,
274,
277,
411,
4153,
18,
2469,
31,
277,
27245,
7734,
4153,
63,
77,
65,
273,
22243,
18,
1336,
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,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2
] |
"
|
"
|
public void testReplace2() { String s1 = "package com.www.xxx.yyy;\n" + "\n" + "import javax.swing.*;\n" + "\n" + "public class Test {\n" + " public static void main(String[] args) {\n" + " if (1==1)\n" + " JOptionPane.showMessageDialog(null, \"MESSAGE\");\n" + " }\n" + "}"; String s2 = "JOptionPane.'showDialog(null, 'msg);"; String s3 = "//FIXME provide a parent frame\n" + "JOptionPane.$showDialog$(null, $msg$);"; String expectedResult = "package com.www.xxx.yyy;\n" + "\n" + "import javax.swing.*;\n" + "\n" + "public class Test {\n" + " public static void main(String[] args) {\n" + " if (1==1)\n" + "//FIXME provide a parent frame\n" + " JOptionPane.showMessageDialog(null, \"MESSAGE\");\n" + " }\n" + "}"; actualResult = replacer.testReplace(s1,s2,s3,options); assertEquals( "adding comment to statement inside the if body", expectedResult, actualResult ); String s4 = "myButton.setText(\"Ok\");"; String s5 = "'Instance.'MethodCall:[regex( setText )]('Parameter*:[regex( \"Ok\" )]);"; String s6 = "$Instance$.$MethodCall$(\"OK\");"; String expectedResult2 = " myButton.setText(\"OK\");"; actualResult = replacer.testReplace(s4,s5,s6,options); assertEquals( "adding comment to statement inside the if body", expectedResult2, actualResult ); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/837c5d5cad8028ba5422e30a73d5cf2577c74e36/StructuralReplaceTest.java/buggy/plugins/structuralsearch/testSource/com/intellij/structuralsearch/StructuralReplaceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
5729,
22,
1435,
288,
565,
514,
272,
21,
273,
315,
5610,
532,
18,
5591,
18,
18310,
18,
6795,
93,
9747,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
315,
5666,
6863,
18,
5328,
310,
4509,
9747,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
315,
482,
667,
7766,
18890,
82,
6,
397,
7734,
315,
225,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
7734,
315,
565,
309,
261,
21,
631,
21,
5153,
82,
6,
397,
7734,
315,
1377,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
1239,
8723,
2412,
20472,
82,
6,
397,
7734,
315,
225,
289,
64,
82,
6,
397,
7734,
11883,
31,
565,
514,
272,
22,
273,
315,
46,
1895,
8485,
1093,
4500,
6353,
12,
2011,
16,
296,
3576,
12171,
31,
565,
514,
272,
23,
273,
16177,
25810,
5615,
279,
982,
2623,
64,
82,
6,
397,
7734,
315,
46,
1895,
8485,
10806,
4500,
6353,
8,
12,
2011,
16,
271,
3576,
8,
12171,
31,
565,
514,
2665,
1253,
273,
315,
5610,
532,
18,
5591,
18,
18310,
18,
6795,
93,
9747,
82,
6,
397,
18701,
1548,
82,
6,
397,
18701,
315,
5666,
6863,
18,
5328,
310,
4509,
9747,
82,
6,
397,
18701,
1548,
82,
6,
397,
18701,
315,
482,
667,
7766,
18890,
82,
6,
397,
18701,
315,
225,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
18701,
315,
565,
309,
261,
21,
631,
21,
5153,
82,
6,
397,
18701,
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,
1842,
5729,
22,
1435,
288,
565,
514,
272,
21,
273,
315,
5610,
532,
18,
5591,
18,
18310,
18,
6795,
93,
9747,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
315,
5666,
6863,
18,
5328,
310,
4509,
9747,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
315,
482,
667,
7766,
18890,
82,
6,
397,
7734,
315,
225,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
18890,
82,
6,
397,
7734,
315,
565,
309,
261,
21,
631,
21,
5153,
82,
6,
397,
7734,
315,
1377,
804,
1895,
8485,
18,
4500,
1079,
6353,
12,
2011,
16,
1239,
8723,
2412,
20472,
82,
6,
397,
7734,
315,
225,
289,
64,
82,
6,
397,
7734,
11883,
31,
565,
514,
2
] |
Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = eval(iVisited.getIterNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); threadContext.setPosition(position);
|
IRubyObject recv = null; try { recv = eval(iVisited.getIterNode()); } finally { threadContext.setPosition(position); ArgsUtil.endCallArgs(runtime, tmpBlock); }
|
public void visitForNode(ForNode iVisited) { runtime.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); runtime.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = threadContext.getPosition(); Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = eval(iVisited.getIterNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); threadContext.setPosition(position); result = recv.getInternalClass().call(recv, "each", null, CallType.NORMAL); return; } catch (RetryJump rExcptn) { } } } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { result = runtime.getNil(); } finally { runtime.getIterStack().pop(); runtime.getBlockStack().pop(); } }
|
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/aa3fe2195e86c2c426f4012089ef8c66a66e925c/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31058,
12,
31058,
277,
30019,
13,
288,
3639,
3099,
18,
588,
1768,
2624,
7675,
6206,
12,
77,
30019,
18,
588,
1537,
907,
9334,
394,
18176,
1305,
12,
77,
30019,
18,
588,
2250,
907,
1435,
3631,
365,
1769,
3639,
3099,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
3670,
1769,
3639,
775,
288,
5411,
1323,
261,
3767,
13,
288,
7734,
775,
288,
10792,
467,
1830,
2555,
1754,
273,
2650,
1042,
18,
588,
2555,
5621,
10792,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
9448,
1769,
10792,
15908,
10340,
921,
10665,
273,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
10792,
6634,
1304,
18,
409,
1477,
2615,
12,
9448,
16,
1853,
1768,
1769,
10792,
2650,
1042,
18,
542,
2555,
12,
3276,
1769,
10792,
563,
273,
10665,
18,
588,
3061,
797,
7675,
1991,
12,
18334,
16,
315,
13798,
3113,
446,
16,
3049,
559,
18,
15480,
1769,
10792,
327,
31,
7734,
289,
1044,
261,
7539,
26743,
436,
29924,
337,
82,
13,
288,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
990,
26743,
436,
29924,
337,
82,
13,
288,
5411,
563,
273,
436,
29924,
337,
82,
18,
588,
19092,
5621,
3639,
289,
1044,
261,
7634,
26743,
324,
29924,
337,
82,
13,
288,
5411,
563,
273,
3099,
18,
588,
12616,
5621,
3639,
289,
3095,
288,
5411,
3099,
18,
588,
2360,
2624,
7675,
5120,
5621,
5411,
3099,
18,
588,
1768,
2624,
7675,
5120,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
31058,
12,
31058,
277,
30019,
13,
288,
3639,
3099,
18,
588,
1768,
2624,
7675,
6206,
12,
77,
30019,
18,
588,
1537,
907,
9334,
394,
18176,
1305,
12,
77,
30019,
18,
588,
2250,
907,
1435,
3631,
365,
1769,
3639,
3099,
18,
588,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
3670,
1769,
3639,
775,
288,
5411,
1323,
261,
3767,
13,
288,
7734,
775,
288,
10792,
467,
1830,
2555,
1754,
273,
2650,
1042,
18,
588,
2555,
5621,
10792,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
9448,
1769,
10792,
15908,
10340,
921,
10665,
273,
5302,
12,
77,
30019,
18,
588,
2360,
907,
10663,
10792,
6634,
1304,
18,
409,
1477,
2615,
12,
9448,
16,
2
] |
values[k] = o; }
|
values[k] = o; }
|
void set(int k, Object o) { values[k] = o; }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/DenseSegmentDataset.java/clean/src/main/mondrian/rolap/agg/DenseSegmentDataset.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
444,
12,
474,
417,
16,
1033,
320,
13,
288,
202,
202,
2372,
63,
79,
65,
273,
320,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
444,
12,
474,
417,
16,
1033,
320,
13,
288,
202,
202,
2372,
63,
79,
65,
273,
320,
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
] |
super.copy(state);
|
synchronized (state) { super.copy(state);
|
protected synchronized void copy(ItemState state) { super.copy(state); NodeState nodeState = (NodeState) state; nodeTypeName = nodeState.getNodeTypeName(); mixinTypeNames = new HashSet(nodeState.getMixinTypeNames()); defId = nodeState.getDefinitionId(); uuid = nodeState.getUUID(); propertyNames = new HashSet(nodeState.getPropertyNames()); childNodeEntries = new ChildNodeEntries(); childNodeEntries.addAll(nodeState.getChildNodeEntries()); }
|
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/95ef338d98dce2177341c4cf9e559dee019cafc4/NodeState.java/clean/core/src/java/org/apache/jackrabbit/core/state/NodeState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1610,
12,
1180,
1119,
919,
13,
288,
3639,
3852,
261,
2019,
13,
288,
2240,
18,
3530,
12,
2019,
1769,
3639,
2029,
1119,
756,
1119,
273,
261,
907,
1119,
13,
919,
31,
3639,
756,
7947,
273,
756,
1119,
18,
588,
907,
7947,
5621,
3639,
11682,
559,
1557,
273,
394,
6847,
12,
2159,
1119,
18,
588,
14439,
559,
1557,
10663,
3639,
1652,
548,
273,
756,
1119,
18,
588,
21768,
5621,
3639,
3822,
273,
756,
1119,
18,
588,
5562,
5621,
3639,
26570,
273,
394,
6847,
12,
2159,
1119,
18,
588,
29932,
10663,
3639,
9465,
5400,
273,
394,
7451,
907,
5400,
5621,
3639,
9465,
5400,
18,
1289,
1595,
12,
2159,
1119,
18,
588,
25550,
5400,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1610,
12,
1180,
1119,
919,
13,
288,
3639,
3852,
261,
2019,
13,
288,
2240,
18,
3530,
12,
2019,
1769,
3639,
2029,
1119,
756,
1119,
273,
261,
907,
1119,
13,
919,
31,
3639,
756,
7947,
273,
756,
1119,
18,
588,
907,
7947,
5621,
3639,
11682,
559,
1557,
273,
394,
6847,
12,
2159,
1119,
18,
588,
14439,
559,
1557,
10663,
3639,
1652,
548,
273,
756,
1119,
18,
588,
21768,
5621,
3639,
3822,
273,
756,
1119,
18,
588,
5562,
5621,
3639,
26570,
273,
394,
6847,
12,
2159,
1119,
18,
588,
29932,
10663,
3639,
9465,
5400,
273,
394,
7451,
907,
5400,
5621,
3639,
9465,
5400,
18,
1289,
1595,
12,
2159,
1119,
18,
588,
25550,
5400,
10663,
565,
289,
2,
-100
] |
if (tryStackTop > 0) { --tryStackTop;
|
int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) {
|
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) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } 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 TRY_STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + idata.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index 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 (!f.itsUseDynamicScope) { 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 { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.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); } } } 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); } Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; 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 { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case ENDTRY : tryStackTop--; break; case TokenStream.TRY : sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks and with depth pc += 6; break; case TokenStream.CATCH: { // See comments in generateICodeFromTree: the following code should // be executed inside try/catch inside main loop, not in the loop catch // block itself if (javaException == null) Context.codeBug(); int pcTry = -1; int pcNew = -1; boolean doCatch = false; if (tryStackTop > 0) { // Decrease tryStackTop even if catch or finally would not // be processed to properly deal with exceptions thrown // by debuggerFrame.onExceptionThrown or cx.observeInstructionCount --tryStackTop; 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 WrappedException) { 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 pcTry = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, pcTry + 1); if (catch_offset != 0) { // Has catch block doCatch = true; pcNew = pcTry + catch_offset; } } if (pcNew < 0) { int finally_offset = getShort(iCode, pcTry + 3); if (finally_offset != 0) { // has finally block pcNew = pcTry + finally_offset; } } } } 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 = getIndex(iCode, pcTry + 5); while (tryWithDepth != withDepth) { if (scope == null) Context.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } // make stack to contain single exception object stackTop = STACK_SHFT; if (doCatch) { stack[stackTop] = ScriptRuntime.getCatchObject(cx, scope, javaException); } else { // 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 TokenStream.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; javaException = new JavaScriptException(value); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case TokenStream.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 == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.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 = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.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 == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.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 = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.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 TokenStream.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(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue Loop; case RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - 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; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case TokenStream.POP : stack[stackTop] = null; stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.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 TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.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 TokenStream.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 TokenStream.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 TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { 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.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.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.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc + 1] & 0xFF; boolean isNew = (iCode[pc + 2] != 0); int sourceLine = getShort(iCode, pc + 3); String sourceName = strings[getIndex(iCode, pc + 5)]; int count = getIndex(iCode, pc + 7); 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, sourceName, sourceLine); pc += 8; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); 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 + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); 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 + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getIndex(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.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); } break; } case TokenStream.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); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { 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.setProto(lhs, rhs, scope); break; } case TokenStream.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]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } pc++; } 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; } } pc = getJavaCatchPC(iCode); javaException = ex; continue Loop; } } if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation) { 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; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/de20fd274f68c94b45f11175f334fba3b0254dbe/Interpreter.java/buggy/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,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
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,
67,
2664,
4464,
397,
943,
5555,
31,
3639,
727,
509,
4235,
61,
67,
21971,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
612,
396,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
11464,
67,
2664,
4464,
273,
4235,
61,
67,
21971,
67,
2664,
4464,
397,
612,
396,
18,
1282,
2747,
7833,
6148,
31,
759,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
759,
2110,
63,
14922,
67,
2664,
4464,
1648,
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,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
2
] |
waload(JvmType.INT); }
|
waload(JvmType.INT); }
|
public final void visit_iaload() { waload(JvmType.INT); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
649,
6189,
1435,
288,
202,
202,
91,
287,
6189,
12,
6071,
559,
18,
3217,
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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
649,
6189,
1435,
288,
202,
202,
91,
287,
6189,
12,
6071,
559,
18,
3217,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
value = StyleDesign.getDefaultValue( name ); setStyleProperty( nonInheritableReportStyle, name, getStrColorValue( value ) );
|
value = getStrColorValue( StyleDesign.getDefaultValue( name ) ); setStyleProperty( nonInheritableReportStyle, name, value );
|
protected void addReportColorStyleProperty( StyleHandle handle, String name ) { Object value = null; if( StyleDesign.canInherit( name ) ) { if( handle != null ) { value = handle.getProperty( name ); } if( getColorValue( value ) == -1 ) { value = StyleDesign.getDefaultValue( name ); } setStyleProperty( inheritableReportStyle, name, getStrColorValue( value ) ); } else { value = StyleDesign.getDefaultValue( name ); setStyleProperty( nonInheritableReportStyle, name, getStrColorValue( value ) ); } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/72ef136b489c89c0ad7e3c18e455bac267b6d962/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
4820,
2957,
2885,
1396,
12,
9767,
3259,
1640,
16,
514,
508,
262,
202,
95,
202,
202,
921,
460,
273,
446,
31,
202,
202,
430,
12,
9767,
15478,
18,
4169,
14216,
12,
508,
262,
262,
202,
202,
95,
1082,
202,
430,
12,
1640,
480,
446,
262,
1082,
202,
95,
9506,
202,
1132,
273,
1640,
18,
588,
1396,
12,
508,
11272,
1082,
202,
97,
1082,
202,
430,
12,
15672,
620,
12,
460,
262,
422,
300,
21,
262,
1082,
202,
95,
9506,
202,
1132,
273,
9767,
15478,
18,
588,
15646,
12,
508,
11272,
1082,
202,
97,
1082,
202,
542,
2885,
1396,
12,
6811,
429,
4820,
2885,
16,
508,
16,
24017,
2957,
620,
12,
460,
262,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1132,
273,
9767,
15478,
18,
588,
15646,
12,
508,
11272,
1082,
202,
542,
2885,
1396,
12,
1661,
14216,
429,
4820,
2885,
16,
508,
16,
24017,
2957,
620,
12,
460,
262,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
4820,
2957,
2885,
1396,
12,
9767,
3259,
1640,
16,
514,
508,
262,
202,
95,
202,
202,
921,
460,
273,
446,
31,
202,
202,
430,
12,
9767,
15478,
18,
4169,
14216,
12,
508,
262,
262,
202,
202,
95,
1082,
202,
430,
12,
1640,
480,
446,
262,
1082,
202,
95,
9506,
202,
1132,
273,
1640,
18,
588,
1396,
12,
508,
11272,
1082,
202,
97,
1082,
202,
430,
12,
15672,
620,
12,
460,
262,
422,
300,
21,
262,
1082,
202,
95,
9506,
202,
1132,
273,
9767,
15478,
18,
588,
15646,
12,
508,
11272,
1082,
202,
97,
1082,
202,
542,
2885,
1396,
12,
6811,
429,
4820,
2885,
16,
508,
16,
24017,
2957,
620,
12,
460,
262,
11272,
202,
2
] |
return blocksCompleted > dataBlocks.length;
|
return blocksCompleted >= dataBlocks.length;
|
public synchronized boolean isFetchable() { return blocksCompleted > dataBlocks.length; }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/0591129065b7962994e34d81ea2689620fae16ff/SplitFileInserterSegment.java/buggy/src/freenet/client/async/SplitFileInserterSegment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
1250,
353,
5005,
429,
1435,
288,
202,
202,
2463,
4398,
9556,
405,
501,
6450,
18,
2469,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1250,
353,
5005,
429,
1435,
288,
202,
202,
2463,
4398,
9556,
405,
501,
6450,
18,
2469,
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
] |
if(!pn.isReallyConnected()) throw new NotConnectedException();
|
if(!pn.isConnected()) throw new NotConnectedException();
|
public int allocateOutgoingPacketNumberNeverBlock() throws KeyChangedException, NotConnectedException, WouldBlockException { int packetNumber; if(!pn.isReallyConnected()) throw new NotConnectedException(); synchronized(this) { packetNumber = nextPacketNumber; if(isDeprecated) throw new KeyChangedException(); sentPacketsContents.lockNeverBlock(packetNumber); nextPacketNumber = packetNumber+1; Logger.minor(this, "Allocated "+packetNumber+" in allocateOutgoingPacketNumberNeverBlock for "+this); return packetNumber; } }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/f18d01b1fb86ddf4053d90e1f337f99ccd2ec255/KeyTracker.java/clean/src/freenet/node/KeyTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
10101,
24866,
6667,
1854,
50,
6084,
1768,
1435,
1216,
1929,
5033,
503,
16,
31541,
503,
16,
678,
1006,
1768,
503,
288,
3639,
509,
4414,
1854,
31,
3639,
309,
12,
5,
7449,
18,
291,
8932,
10756,
604,
394,
31541,
503,
5621,
3639,
3852,
12,
2211,
13,
288,
5411,
4414,
1854,
273,
1024,
6667,
1854,
31,
5411,
309,
12,
291,
13534,
13,
604,
394,
1929,
5033,
503,
5621,
5411,
3271,
27328,
6323,
18,
739,
50,
6084,
1768,
12,
11482,
1854,
1769,
5411,
1024,
6667,
1854,
273,
4414,
1854,
15,
21,
31,
5411,
4242,
18,
17364,
12,
2211,
16,
315,
29392,
13773,
11482,
1854,
9078,
316,
10101,
24866,
6667,
1854,
50,
6084,
1768,
364,
13773,
2211,
1769,
5411,
327,
4414,
1854,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
10101,
24866,
6667,
1854,
50,
6084,
1768,
1435,
1216,
1929,
5033,
503,
16,
31541,
503,
16,
678,
1006,
1768,
503,
288,
3639,
509,
4414,
1854,
31,
3639,
309,
12,
5,
7449,
18,
291,
8932,
10756,
604,
394,
31541,
503,
5621,
3639,
3852,
12,
2211,
13,
288,
5411,
4414,
1854,
273,
1024,
6667,
1854,
31,
5411,
309,
12,
291,
13534,
13,
604,
394,
1929,
5033,
503,
5621,
5411,
3271,
27328,
6323,
18,
739,
50,
6084,
1768,
12,
11482,
1854,
1769,
5411,
1024,
6667,
1854,
273,
4414,
1854,
15,
21,
31,
5411,
4242,
18,
17364,
12,
2211,
16,
315,
29392,
13773,
11482,
1854,
9078,
316,
10101,
24866,
6667,
1854,
50,
6084,
1768,
364,
13773,
2211,
1769,
5411,
327,
2
] |
if (childActivityId == null || parentActivityId == null) return null;
|
if (childActivityId == null || parentActivityId == null) { return null; }
|
static ActivityRequirementBindingDefinition readActivityRequirementBindingDefinition( IMemento memento, String sourceIdOverride) { if (memento == null) throw new NullPointerException(); String childActivityId = memento.getString(TAG_REQUIRED_ACTIVITY_ID); String parentActivityId = memento.getString(TAG_ACTIVITY_ID); if (childActivityId == null || parentActivityId == null) return null; String sourceId = sourceIdOverride != null ? sourceIdOverride : memento .getString(TAG_SOURCE_ID); return new ActivityRequirementBindingDefinition(childActivityId, parentActivityId, sourceId); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Persistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/Persistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
9621,
18599,
5250,
1852,
855,
6193,
18599,
5250,
1852,
12,
5411,
6246,
820,
83,
312,
820,
83,
16,
514,
27572,
6618,
13,
288,
3639,
309,
261,
81,
820,
83,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
514,
1151,
6193,
548,
273,
312,
820,
83,
18,
588,
780,
12,
7927,
67,
14977,
67,
22271,
4107,
67,
734,
1769,
3639,
514,
982,
6193,
548,
273,
312,
820,
83,
18,
588,
780,
12,
7927,
67,
22271,
4107,
67,
734,
1769,
3639,
309,
261,
3624,
6193,
548,
422,
446,
747,
982,
6193,
548,
422,
446,
13,
5411,
327,
446,
31,
3639,
514,
27572,
273,
27572,
6618,
480,
446,
692,
27572,
6618,
294,
312,
820,
83,
7734,
263,
588,
780,
12,
7927,
67,
6537,
67,
734,
1769,
3639,
327,
394,
9621,
18599,
5250,
1852,
12,
3624,
6193,
548,
16,
7734,
982,
6193,
548,
16,
27572,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
9621,
18599,
5250,
1852,
855,
6193,
18599,
5250,
1852,
12,
5411,
6246,
820,
83,
312,
820,
83,
16,
514,
27572,
6618,
13,
288,
3639,
309,
261,
81,
820,
83,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
514,
1151,
6193,
548,
273,
312,
820,
83,
18,
588,
780,
12,
7927,
67,
14977,
67,
22271,
4107,
67,
734,
1769,
3639,
514,
982,
6193,
548,
273,
312,
820,
83,
18,
588,
780,
12,
7927,
67,
22271,
4107,
67,
734,
1769,
3639,
309,
261,
3624,
6193,
548,
422,
446,
747,
982,
6193,
548,
422,
446,
13,
5411,
327,
446,
31,
3639,
514,
27572,
273,
27572,
6618,
480,
446,
692,
27572,
6618,
294,
312,
820,
83,
7734,
263,
588,
780,
2
] |
if (e != null) { prev.next = e.next; --n; }
|
public void remove(EventListener listener) { if (first == null) { return; } else if (first.listener == listener) { first = first.next; --n; } else { Entry prev = first; Entry e = first.next; while (e != null && e.listener != listener) { prev = e; e = e.next; } if (e != null) { prev.next = e.next; --n; } } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/50d9678412df39bd7a013ca39536708449f50f77/EventListenerList.java/clean/sources/org/apache/batik/dom/events/EventListenerList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
7375,
2991,
13,
288,
202,
430,
261,
3645,
422,
446,
13,
288,
202,
565,
327,
31,
202,
97,
469,
309,
261,
3645,
18,
12757,
422,
2991,
13,
288,
202,
565,
1122,
273,
1122,
18,
4285,
31,
202,
565,
1493,
82,
31,
202,
97,
469,
288,
202,
565,
3841,
2807,
273,
1122,
31,
202,
565,
3841,
425,
273,
1122,
18,
4285,
31,
202,
565,
1323,
261,
73,
480,
446,
597,
425,
18,
12757,
480,
2991,
13,
288,
202,
202,
10001,
273,
425,
31,
202,
202,
73,
273,
425,
18,
4285,
31,
202,
565,
289,
202,
565,
309,
261,
73,
480,
446,
13,
288,
202,
202,
10001,
18,
4285,
273,
425,
18,
4285,
31,
202,
202,
413,
82,
31,
202,
565,
289,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
7375,
2991,
13,
288,
202,
430,
261,
3645,
422,
446,
13,
288,
202,
565,
327,
31,
202,
97,
469,
309,
261,
3645,
18,
12757,
422,
2991,
13,
288,
202,
565,
1122,
273,
1122,
18,
4285,
31,
202,
565,
1493,
82,
31,
202,
97,
469,
288,
202,
565,
3841,
2807,
273,
1122,
31,
202,
565,
3841,
425,
273,
1122,
18,
4285,
31,
202,
565,
1323,
261,
73,
480,
446,
597,
425,
18,
12757,
480,
2991,
13,
288,
202,
202,
10001,
273,
425,
31,
202,
202,
73,
273,
425,
18,
4285,
31,
202,
565,
289,
202,
565,
309,
261,
73,
480,
446,
13,
288,
202,
202,
10001,
18,
4285,
273,
425,
18,
4285,
31,
202,
202,
2
] |
|
private void doFocusChanged(Widget control) {
|
void doFocusChanged(Widget control) {
|
private void doFocusChanged(Widget control) { for (int i= 0; i < fViewers.length; i++) { if (fViewers[i].getControl() == control) { propagateFocusChanged(fViewers[i]); return; } } }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9766cb70c62b71c3d08bd2866ef0736046c8b83b/SelectionProviderMediator.java/clean/core/org.eclipse.cdt.ui/browser/org/eclipse/cdt/internal/ui/browser/typehierarchy/SelectionProviderMediator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
9233,
5033,
12,
4609,
3325,
13,
288,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
284,
1767,
414,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
74,
1767,
414,
63,
77,
8009,
588,
3367,
1435,
422,
3325,
13,
288,
9506,
202,
5986,
346,
340,
9233,
5033,
12,
74,
1767,
414,
63,
77,
19226,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
9233,
5033,
12,
4609,
3325,
13,
288,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
284,
1767,
414,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
74,
1767,
414,
63,
77,
8009,
588,
3367,
1435,
422,
3325,
13,
288,
9506,
202,
5986,
346,
340,
9233,
5033,
12,
74,
1767,
414,
63,
77,
19226,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
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
] |
PartPane pane = ((ViewReference) ref).getPane(); if (pane == null) { pane = new ViewPane(ref, page); ((ViewReference) ref).setPane(pane); } site.setPane(pane); site.setActionBars(new ViewActionBars(page.getActionBars(), (ViewPane) pane));
|
public IStatus busyRestoreView(final IViewReference ref) { if (ref.getPart(false) != null) return new Status(IStatus.OK, PlatformUI.PLUGIN_ID, 0, "", null); //$NON-NLS-1$ final String viewID = ref.getId(); final IMemento stateMem = (IMemento) mementoTable.get(viewID); mementoTable.remove(viewID); final boolean resetPart[] = { true }; final IStatus result[] = new IStatus[] { new Status(IStatus.OK, PlatformUI.PLUGIN_ID, 0, "", null)}; //$NON-NLS-1$ Platform.run(new SafeRunnable() { public void handleException(Throwable e) { if (resetPart[0]) { ViewReference viewRef = ((ViewReference) ref); viewRef.setPart(null); if (viewRef.getPane() != null) { page.hideView(ref); } } //Execption is already logged. result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("Perspective.exceptionRestoringView", new String[] { viewID }), //$NON-NLS-1$ e); } public void run() { IViewDescriptor desc = viewReg.find(viewID); if (desc == null) { result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { viewID }), //$NON-NLS-1$ null); return; } // Create the view. IViewPart view = null; String label = desc.getLabel(); try { try { UIStats.start(UIStats.CREATE_PART, label); view = desc.createView(); } finally { UIStats.end(UIStats.CREATE_PART, label); } ((ViewReference) ref).setPart(view); } catch (CoreException e) { PartPane pane = ((ViewReference) ref).getPane(); if (pane != null) { page.getPerspectivePresentation().removePart(pane); pane.dispose(); } result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.initException", new Object[] { desc.getID()}), //$NON-NLS-1$ e); return; } // Create site ViewSite site = new ViewSite(ref, view, page, desc); try { try { UIStats.start(UIStats.INIT_PART, label); view.init(site, stateMem); } finally { UIStats.end(UIStats.INIT_PART, label); } } catch (PartInitException e) { releaseView(ref); result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("Perspective.exceptionRestoringView", new String[] { viewID }), //$NON-NLS-1$ e); return; } if (view.getSite() != site) { releaseView(ref); result[0] = new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, WorkbenchMessages.format("ViewFactory.siteException", new Object[] { desc.getID()}), //$NON-NLS-1$ null); return; } PartPane pane = ((ViewReference) ref).getPane(); if (pane == null) { pane = new ViewPane(ref, page); ((ViewReference) ref).setPane(pane); } site.setPane(pane); site.setActionBars(new ViewActionBars(page.getActionBars(), (ViewPane) pane)); resetPart[0] = false; site.getPane().createChildControl(); result[0] = new Status(IStatus.OK, PlatformUI.PLUGIN_ID, 0, "", null); //$NON-NLS-1$ } }); return result[0]; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/96af4262cad027895bf57a2834dffc2993670f12/ViewFactory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
21697,
10874,
1767,
12,
6385,
467,
1767,
2404,
1278,
13,
288,
202,
202,
430,
261,
1734,
18,
588,
1988,
12,
5743,
13,
480,
446,
13,
1082,
202,
2463,
394,
2685,
12,
45,
1482,
18,
3141,
16,
11810,
5370,
18,
19415,
67,
734,
16,
374,
16,
23453,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6385,
514,
1476,
734,
273,
1278,
18,
26321,
5621,
202,
202,
6385,
6246,
820,
83,
919,
3545,
273,
261,
3445,
820,
83,
13,
312,
820,
83,
1388,
18,
588,
12,
1945,
734,
1769,
202,
202,
81,
820,
83,
1388,
18,
4479,
12,
1945,
734,
1769,
202,
202,
6385,
1250,
2715,
1988,
8526,
273,
288,
638,
289,
31,
202,
202,
6385,
467,
1482,
563,
8526,
273,
394,
467,
1482,
8526,
288,
394,
2685,
12,
45,
1482,
18,
3141,
16,
11810,
5370,
18,
19415,
67,
734,
16,
374,
16,
23453,
446,
16869,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
8201,
18,
2681,
12,
2704,
14060,
20013,
1435,
288,
1082,
202,
482,
918,
20879,
12,
15155,
425,
13,
288,
9506,
202,
430,
261,
6208,
1988,
63,
20,
5717,
288,
6862,
202,
1767,
2404,
1476,
1957,
273,
14015,
1767,
2404,
13,
1278,
1769,
4405,
202,
1945,
1957,
18,
542,
1988,
12,
2011,
1769,
6862,
202,
430,
261,
1945,
1957,
18,
588,
8485,
1435,
480,
446,
13,
288,
25083,
202,
2433,
18,
11248,
1767,
12,
1734,
1769,
6862,
6862,
1082,
202,
97,
9506,
202,
97,
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,
467,
1482,
21697,
10874,
1767,
12,
6385,
467,
1767,
2404,
1278,
13,
288,
202,
202,
430,
261,
1734,
18,
588,
1988,
12,
5743,
13,
480,
446,
13,
1082,
202,
2463,
394,
2685,
12,
45,
1482,
18,
3141,
16,
11810,
5370,
18,
19415,
67,
734,
16,
374,
16,
23453,
446,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6385,
514,
1476,
734,
273,
1278,
18,
26321,
5621,
202,
202,
6385,
6246,
820,
83,
919,
3545,
273,
261,
3445,
820,
83,
13,
312,
820,
83,
1388,
18,
588,
12,
1945,
734,
1769,
202,
202,
81,
820,
83,
1388,
18,
4479,
12,
1945,
734,
1769,
202,
202,
6385,
1250,
2715,
1988,
8526,
273,
288,
638,
289,
31,
2
] |
|
IPath path = WorkbenchPlugin.getDefault().getDataLocation(); if(path==null) return null; path = path.append(DEFAULT_WORKBENCH_STATE_FILENAME); return path.toFile(); }
|
IPath path = WorkbenchPlugin.getDefault().getDataLocation(); if (path == null) return null; path = path.append(DEFAULT_WORKBENCH_STATE_FILENAME); return path.toFile(); }
|
private File getWorkbenchStateFile() { IPath path = WorkbenchPlugin.getDefault().getDataLocation(); if(path==null) return null; path = path.append(DEFAULT_WORKBENCH_STATE_FILENAME); return path.toFile(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
29026,
22144,
1119,
812,
1435,
288,
3639,
467,
743,
589,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
751,
2735,
5621,
3639,
309,
12,
803,
631,
2011,
13,
327,
446,
31,
3639,
589,
273,
589,
18,
6923,
12,
5280,
67,
10566,
38,
1157,
1792,
67,
7998,
67,
16080,
1769,
3639,
327,
589,
18,
869,
812,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
29026,
22144,
1119,
812,
1435,
288,
3639,
467,
743,
589,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
751,
2735,
5621,
3639,
309,
12,
803,
631,
2011,
13,
327,
446,
31,
3639,
589,
273,
589,
18,
6923,
12,
5280,
67,
10566,
38,
1157,
1792,
67,
7998,
67,
16080,
1769,
3639,
327,
589,
18,
869,
812,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jLabel.getDisplayedMnemonicIndex() < 0) { DialogUtil.registerMnemonic(jLabel, null); }
|
DialogUtil.registerMnemonic(jLabel, null);
|
protected void processComponent(Component parentComponent) { if (parentComponent instanceof AbstractButton) { final AbstractButton abstractButton = ((AbstractButton)parentComponent); abstractButton.addPropertyChangeListener(AbstractButton.TEXT_CHANGED_PROPERTY, TEXT_LISTENER); if (abstractButton.getMnemonic() < 0){ DialogUtil.registerMnemonic(abstractButton); } } else if (parentComponent instanceof JLabel) { final JLabel jLabel = ((JLabel)parentComponent); jLabel.addPropertyChangeListener(TEXT_CHANGED_PROPERTY, TEXT_LISTENER); if (jLabel.getDisplayedMnemonicIndex() < 0) { DialogUtil.registerMnemonic(jLabel, null); } } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/6936d86dca5697001b8571f63e85d92d8ed6b7df/MnemonicHelper.java/buggy/openapi/src/com/intellij/openapi/MnemonicHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1207,
1841,
12,
1841,
982,
1841,
13,
288,
565,
309,
261,
2938,
1841,
1276,
4115,
3616,
13,
288,
1377,
727,
4115,
3616,
8770,
3616,
273,
14015,
7469,
3616,
13,
2938,
1841,
1769,
1377,
8770,
3616,
18,
1289,
1396,
15744,
12,
7469,
3616,
18,
5151,
67,
24435,
67,
9900,
16,
9204,
67,
26421,
1769,
1377,
309,
261,
17801,
3616,
18,
588,
29668,
20918,
1435,
411,
374,
15329,
3639,
17242,
1304,
18,
4861,
29668,
20918,
12,
17801,
3616,
1769,
1377,
289,
565,
289,
469,
309,
261,
2938,
1841,
1276,
21403,
13,
288,
1377,
727,
21403,
26538,
273,
14015,
46,
2224,
13,
2938,
1841,
1769,
1377,
26538,
18,
1289,
1396,
15744,
12,
5151,
67,
24435,
67,
9900,
16,
9204,
67,
26421,
1769,
1377,
309,
261,
78,
2224,
18,
588,
4236,
329,
29668,
20918,
1016,
1435,
411,
374,
13,
288,
3639,
17242,
1304,
18,
4861,
29668,
20918,
12,
78,
2224,
16,
446,
1769,
1377,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1207,
1841,
12,
1841,
982,
1841,
13,
288,
565,
309,
261,
2938,
1841,
1276,
4115,
3616,
13,
288,
1377,
727,
4115,
3616,
8770,
3616,
273,
14015,
7469,
3616,
13,
2938,
1841,
1769,
1377,
8770,
3616,
18,
1289,
1396,
15744,
12,
7469,
3616,
18,
5151,
67,
24435,
67,
9900,
16,
9204,
67,
26421,
1769,
1377,
309,
261,
17801,
3616,
18,
588,
29668,
20918,
1435,
411,
374,
15329,
3639,
17242,
1304,
18,
4861,
29668,
20918,
12,
17801,
3616,
1769,
1377,
289,
565,
289,
469,
309,
261,
2938,
1841,
1276,
21403,
13,
288,
1377,
727,
21403,
26538,
273,
14015,
46,
2224,
13,
2938,
1841,
1769,
1377,
26538,
18,
1289,
1396,
15744,
12,
5151,
67,
24435,
67,
9900,
16,
9204,
2
] |
public OMEXMLMetadataStore() throws MetadataStoreException { }
|
public OMEXMLMetadataStore() { }
|
public OMEXMLMetadataStore() throws MetadataStoreException { }
|
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/6f36000247679fc3797d04b50f95bd3b4c2aeb07/OMEXMLMetadataStore.java/clean/loci/formats/OMEXMLMetadataStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
531,
958,
4201,
2277,
2257,
1435,
1216,
6912,
21151,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
531,
958,
4201,
2277,
2257,
1435,
1216,
6912,
21151,
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
] |
if ( prop.getTypeCode( ) == PropertyType.XML_TYPE )
|
parent = (ExtendedItem) parent.getExtendsElement( ); } } else { this.extensionPropValues.remove( propDefn.getName( ) ); } if ( value != null ) { byte[] raw = null; try
|
public void initializeReportItem( Module module ) throws ExtendedElementException { if ( reportItem != null ) return; PeerExtensionElementDefn extDefn = (PeerExtensionElementDefn) getExtDefn( ); if ( extDefn == null ) throw new ExtendedElementException( ExtendedElementException.PLUGIN_ID, SemanticError.DESIGN_EXCEPTION_EXTENSION_NOT_FOUND, null ); IReportItemFactory elementFactory = extDefn.getReportItemFactory( ); assert elementFactory != null; reportItem = elementFactory.newReportItem( element.getHandle( module ) ); // if the item caches the property values of extension, transfer them // and then clear the cached values List names = new ArrayList( ); Collection values = extensionPropValues.keySet( ); if ( values != null ) { Iterator iter = values.iterator( ); while ( iter.hasNext( ) ) { String propName = (String) iter.next( ); ElementPropertyDefn prop = element.getPropertyDefn( propName ); assert prop != null; Object value = extensionPropValues.get( propName ); assert value != null; if ( prop.getTypeCode( ) == PropertyType.XML_TYPE ) { byte[] raw = null; try { raw = value.toString( ).getBytes( UnicodeUtil.SIGNATURE_UTF_8 ); } catch ( UnsupportedEncodingException e ) { assert false; } reportItem.deserialize( prop.getName( ), new ByteArrayInputStream( raw ) ); names.add( propName ); } } } for ( int i = 0; i < names.size( ); i++ ) { extensionPropValues.remove( names.get( i ) ); } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/da44fecb5c6e05db9ce8a4fda5141c73c044f818/PeerExtensibilityProvider.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/extension/PeerExtensibilityProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
4820,
1180,
12,
5924,
1605,
262,
1082,
202,
15069,
14094,
20826,
202,
95,
202,
202,
430,
261,
2605,
1180,
480,
446,
262,
1082,
202,
2463,
31,
202,
202,
6813,
3625,
1046,
3262,
82,
1110,
3262,
82,
273,
261,
6813,
3625,
1046,
3262,
82,
13,
336,
2482,
3262,
82,
12,
11272,
202,
202,
430,
261,
1110,
3262,
82,
422,
446,
262,
1082,
202,
12849,
394,
14094,
20826,
12,
6862,
202,
11456,
20826,
18,
19415,
67,
734,
16,
6862,
202,
13185,
9941,
668,
18,
1639,
11260,
67,
12658,
67,
12796,
67,
4400,
67,
9294,
16,
446,
11272,
202,
202,
45,
4820,
1180,
1733,
930,
1733,
273,
1110,
3262,
82,
18,
588,
4820,
1180,
1733,
12,
11272,
202,
202,
11231,
930,
1733,
480,
446,
31,
202,
202,
6006,
1180,
273,
930,
1733,
18,
2704,
4820,
1180,
12,
930,
18,
588,
3259,
12,
1605,
262,
11272,
202,
202,
759,
309,
326,
761,
12535,
326,
1272,
924,
434,
2710,
16,
7412,
2182,
202,
202,
759,
471,
1508,
2424,
326,
3472,
924,
202,
202,
682,
1257,
273,
394,
2407,
12,
11272,
202,
202,
2532,
924,
273,
2710,
4658,
1972,
18,
856,
694,
12,
11272,
202,
202,
430,
261,
924,
480,
446,
262,
202,
202,
95,
1082,
202,
3198,
1400,
273,
924,
18,
9838,
12,
11272,
1082,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
1082,
202,
95,
9506,
202,
780,
9994,
273,
261,
780,
13,
1400,
18,
4285,
12,
11272,
9506,
202,
1046,
1396,
3262,
82,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
4820,
1180,
12,
5924,
1605,
262,
1082,
202,
15069,
14094,
20826,
202,
95,
202,
202,
430,
261,
2605,
1180,
480,
446,
262,
1082,
202,
2463,
31,
202,
202,
6813,
3625,
1046,
3262,
82,
1110,
3262,
82,
273,
261,
6813,
3625,
1046,
3262,
82,
13,
336,
2482,
3262,
82,
12,
11272,
202,
202,
430,
261,
1110,
3262,
82,
422,
446,
262,
1082,
202,
12849,
394,
14094,
20826,
12,
6862,
202,
11456,
20826,
18,
19415,
67,
734,
16,
6862,
202,
13185,
9941,
668,
18,
1639,
11260,
67,
12658,
67,
12796,
67,
4400,
67,
9294,
16,
446,
11272,
202,
202,
45,
4820,
1180,
1733,
930,
1733,
273,
1110,
3262,
82,
18,
588,
4820,
1180,
1733,
12,
11272,
2
] |
if (game != null){ updateClocks(game, boardData);
|
if (gameData != null){ updateClocks(gameData, boardData); Style12Struct oldBoardData = gameData.boardData;
|
protected boolean processStyle12(Style12Struct boardData){ Integer gameNumber = new Integer(boardData.getGameNumber()); Game game = (Game)ongoingGames.get(gameNumber); GameInfoStruct gameInfo = (GameInfoStruct)unstartedGameInfo.remove(gameNumber); Style12Struct oldBoardData = (Style12Struct)lastStyle12Structs.put(gameNumber, boardData); if (gameInfo != null) // A new game game = startGame(gameInfo, boardData); else if (game != null){ // A known game // The server does that sometimes, to update clocks perhaps? int plyDifference = boardData.getPlayedPlyCount() - oldBoardData.getPlayedPlyCount(); if (game.isPlayed()){ if (plyDifference < 0) issueTakeback(game, oldBoardData, boardData); else if (plyDifference == 0){// changePosition(game, oldBoardData, boardData); System.out.println("*********** Position changed incompatibly ("+plyDifference+") **********"); // This happens if you: // 1. Issue "refresh". // 2. Make an illegal move, because the server will re-send us the board (although we don't need it) } else if (plyDifference == 1){ if (boardData.getMoveVerbose() != null) makeMove(game, oldBoardData, boardData); else changePosition(game, oldBoardData, boardData); // This shouldn't happen, but I'll leave it just in case } else if (plyDifference > 1){ changePosition(game, oldBoardData, boardData); // This happens if you: // 1. Issue "forward" with an argument of 2 or bigger. } } else{ changePosition(game, oldBoardData, boardData); // Since we don't have the move list, this is the best we can do } } else{ // Grr, the server started a game without sending us a GameInfo line. // Currently happens if you start examining a game (26.08.2002) // We have no choice but to fake the data, since the server simply doesn't send us this information. GameInfoStruct fakeGameInfo = new GameInfoStruct(boardData.getGameNumber(), false, "fake-variant", false, false, false, boardData.getInitialTime(), boardData.getIncrement(), boardData.getInitialTime(), boardData.getIncrement(), 0, -1, ' ', -1, ' ', false, false); game = startGame(fakeGameInfo, boardData); } if (game != null){ updateClocks(game, boardData); if ((oldBoardData != null) && (oldBoardData.isBoardFlipped() != boardData.isBoardFlipped())) flipBoard(game, oldBoardData, boardData); } return true; }
|
1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/d8e7b9ef422687e823e251da744b8f95d39c7ca5/JinFreechessConnection.java/buggy/src/free/jin/freechess/JinFreechessConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
1207,
2885,
2138,
12,
2885,
2138,
3823,
11094,
751,
15329,
565,
2144,
7920,
1854,
273,
394,
2144,
12,
3752,
751,
18,
588,
12496,
1854,
10663,
565,
14121,
7920,
273,
261,
12496,
13,
5409,
310,
43,
753,
18,
588,
12,
13957,
1854,
1769,
565,
14121,
966,
3823,
7920,
966,
273,
261,
12496,
966,
3823,
13,
318,
14561,
12496,
966,
18,
4479,
12,
13957,
1854,
1769,
565,
9767,
2138,
3823,
1592,
22233,
751,
273,
261,
2885,
2138,
3823,
13,
2722,
2885,
2138,
3823,
87,
18,
458,
12,
13957,
1854,
16,
11094,
751,
1769,
565,
309,
261,
13957,
966,
480,
446,
13,
368,
432,
394,
7920,
1377,
7920,
273,
787,
12496,
12,
13957,
966,
16,
11094,
751,
1769,
565,
469,
309,
261,
13957,
480,
446,
15329,
368,
432,
4846,
7920,
1377,
368,
1021,
1438,
1552,
716,
16594,
16,
358,
1089,
7268,
87,
26282,
35,
1377,
509,
293,
715,
16220,
273,
11094,
751,
18,
588,
11765,
329,
52,
715,
1380,
1435,
300,
1592,
22233,
751,
18,
588,
11765,
329,
52,
715,
1380,
5621,
1377,
309,
261,
13957,
18,
291,
11765,
329,
10756,
95,
3639,
309,
261,
1283,
16220,
411,
374,
13,
1850,
5672,
13391,
823,
12,
13957,
16,
1592,
22233,
751,
16,
11094,
751,
1769,
3639,
469,
309,
261,
1283,
16220,
422,
374,
15329,
759,
1850,
2549,
2555,
12,
13957,
16,
1592,
22233,
751,
16,
11094,
751,
1769,
1850,
2332,
18,
659,
18,
8222,
2932,
1644,
14465,
11010,
3550,
316,
16239,
24755,
7566,
15,
1283,
16220,
15,
7923,
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,
1250,
1207,
2885,
2138,
12,
2885,
2138,
3823,
11094,
751,
15329,
565,
2144,
7920,
1854,
273,
394,
2144,
12,
3752,
751,
18,
588,
12496,
1854,
10663,
565,
14121,
7920,
273,
261,
12496,
13,
5409,
310,
43,
753,
18,
588,
12,
13957,
1854,
1769,
565,
14121,
966,
3823,
7920,
966,
273,
261,
12496,
966,
3823,
13,
318,
14561,
12496,
966,
18,
4479,
12,
13957,
1854,
1769,
565,
9767,
2138,
3823,
1592,
22233,
751,
273,
261,
2885,
2138,
3823,
13,
2722,
2885,
2138,
3823,
87,
18,
458,
12,
13957,
1854,
16,
11094,
751,
1769,
565,
309,
261,
13957,
966,
480,
446,
13,
368,
432,
394,
7920,
1377,
7920,
273,
787,
12496,
12,
13957,
966,
16,
11094,
751,
1769,
565,
2
] |
String answer = req.getParameter("answer"); log("Answer: " + answer);
|
String answer = req.getParameter("answer"); log("Answer: " + answer);
|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { log("PostM"); //get answer String answer = req.getParameter("answer"); log("Answer: " + answer); //get question String question = req.getParameter("question"); log("question: " + question ); //g igenom strngen tecken fr tecken och byt ut allt utom '_', siffror och bokstver till '_'. for(int i = 0;i<question.length(); i++) { char c = question.charAt(i); if (!Character.isJavaIdentifierPart(c)) { question=question.replace(c,'_'); } } //hmta aktuellt vrde int yes = 0; int no = 0; //get current library // char searched = '\\'; // int index = inFile.lastIndexOf((int)searched); // String fileLib = inFile.substring(0,index+1); String fileLib = this.getServletPath(req); File file = new File(fileLib + question.trim() + ".txt"); if (file.exists()) { BufferedReader fileR = new BufferedReader(new FileReader(file)); fileR.skip(3); String y = fileR.readLine(); yes = Integer.parseInt(y.trim()); fileR.skip(4); String n = fileR.readLine(); no = Integer.parseInt(n.trim()); fileR.close(); } //spara svaret till fil BufferedWriter fileW = new BufferedWriter( new FileWriter(file) ); if (answer.equals("yes")) {yes++;} else {no++;} fileW.write("ja: " + yes,0,(Integer.toString(yes)).length()+4); fileW.newLine(); fileW.write("nej: " + no,0,Integer.toString(no).length()+5); fileW.newLine(); fileW.flush(); fileW.close(); int total = yes+no; //get the % double yesDiv = (yes==0) ? 0 : ((double)yes/(double)total); double noDiv = (no==0) ? 0 : ((double)no/(double)total); NumberFormat pf = NumberFormat.getPercentInstance(); pf.setMaximumFractionDigits(2); String yesProcent = pf.format(yesDiv); String noProcent = pf.format(noDiv); //rita svarssidan PrintWriter out = res.getWriter(); out.println("ja " + yesProcent ); out.println("nej " + noProcent); out.println("<html>"); out.println("<head>"); out.println("<title>testMaBraSvar</title>"); out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"); out.println("</head>"); out.println("<body bgcolor=\"#FFFFFF\" text=\"#000000\">"); out.println("<table width=\"400\" border=\"0\" height=\"20\" bordercolor=\"#CCCCCC\">"); out.println("<tr> "); out.println("<td bgcolor=\"#FF0000\" height=\"20\" width=\"" + yesProcent + "\"> </td>"); out.println("<td bgcolor=\"#0000FF\" height=\"20\" width=\"" + noProcent + "\"> </td>"); out.println("</tr>"); out.println("</table>"); out.println("<P> Andel jasvar: " + yesProcent + " Andel nejsvar: " + noProcent + "</P>"); out.println("</body>"); out.println("</html>"); /* VariableManager vm = new VariableManager() ; Html htm = new Html(); vm.addProperty("yesProcent", yesProcent) ; vm.addProperty("noProcent", noProcent); // vm.addProperty("yes", Integer.toString(yes )) ; // vm.addProperty("no",Integer.toString(no)); // vm.addProperty("SERVLET_URL",this.getServletPath(req)); sendHtml(req,res,vm,"resultatVeckansFraga.htm"); */ return ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/6934bc95fe9bb7541280495513f06cf7d0206d59/QuestionResult.java/clean/servlets/QuestionResult.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
225,
202,
95,
202,
202,
1330,
2932,
3349,
49,
8863,
6862,
202,
759,
588,
5803,
202,
202,
780,
5803,
273,
1111,
18,
588,
1662,
2932,
13490,
8863,
202,
202,
1330,
2932,
13203,
30,
315,
397,
5803,
1769,
9506,
202,
759,
588,
5073,
202,
202,
780,
5073,
273,
1111,
18,
588,
1662,
2932,
4173,
8863,
202,
202,
1330,
2932,
4173,
30,
315,
397,
5073,
11272,
9506,
202,
759,
75,
277,
4507,
362,
609,
3368,
275,
268,
762,
275,
3812,
268,
762,
275,
320,
343,
635,
88,
5218,
777,
88,
5218,
362,
2070,
2187,
272,
3048,
86,
280,
320,
343,
324,
601,
334,
502,
21364,
4427,
18,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
77,
32,
4173,
18,
2469,
5621,
277,
27245,
202,
202,
95,
1082,
202,
3001,
276,
273,
5073,
18,
3001,
861,
12,
77,
1769,
1082,
202,
430,
16051,
7069,
18,
291,
5852,
3004,
1988,
12,
71,
3719,
1082,
202,
95,
9506,
202,
4173,
33,
4173,
18,
2079,
12,
71,
11189,
4623,
1769,
1082,
202,
97,
202,
202,
97,
25083,
202,
759,
76,
1010,
69,
22371,
89,
1165,
88,
16612,
323,
9506,
202,
474,
12465,
273,
374,
31,
202,
202,
474,
1158,
273,
374,
31,
9506,
202,
759,
588,
783,
5313,
202,
759,
202,
3001,
19242,
273,
5282,
31,
202,
759,
202,
474,
770,
273,
316,
812,
18,
2722,
31985,
12443,
474,
13,
3072,
329,
1769,
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,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
225,
202,
95,
202,
202,
1330,
2932,
3349,
49,
8863,
6862,
202,
759,
588,
5803,
202,
202,
780,
5803,
273,
1111,
18,
588,
1662,
2932,
13490,
8863,
202,
202,
1330,
2932,
13203,
30,
315,
397,
5803,
1769,
9506,
202,
759,
588,
5073,
202,
202,
780,
5073,
273,
1111,
18,
588,
1662,
2932,
4173,
8863,
202,
202,
1330,
2932,
4173,
30,
315,
397,
5073,
11272,
9506,
202,
759,
75,
277,
4507,
362,
609,
3368,
275,
268,
762,
275,
3812,
268,
762,
275,
320,
343,
635,
88,
5218,
777,
88,
5218,
362,
2070,
2187,
272,
3048,
86,
280,
320,
343,
324,
601,
2
] |
int lastXMid, lastYMid; int lastClearedX = -1; int lastClearedY = -1; int nPixelsSet;
|
int []lastClearedX = new int[NTH_LAST_PIXEL]; int []lastClearedY = new int[NTH_LAST_PIXEL]; int lastClearedIndex = 0; int nPixelsSet, nPixelsCleared;
|
public static Point2D calculate(Shape s) { int x, y; int xMin, yMin, xMax, yMax; int lastXMin, lastYMin, lastXMax, lastYMax; int lastXMid, lastYMid; int lastClearedX = -1; int lastClearedY = -1; int nPixelsSet; Point2D.Double retval; Rectangle2D bounds = s.getBounds2D(); AffineTransform affine = AffineTransform.getScaleInstance(BITMAP_SIZE / bounds.getWidth(), BITMAP_SIZE / bounds.getHeight()); affine.translate(-bounds.getMinX(), -bounds.getMinY()); /* * Create image and draw shape into it, filling the entire image. */ BufferedImage bufferedImage = new BufferedImage(BITMAP_SIZE, BITMAP_SIZE, BufferedImage.TYPE_BYTE_BINARY); Graphics2D g2 = (Graphics2D)bufferedImage.getGraphics(); g2.setColor(Color.WHITE); g2.setTransform(affine); g2.fill(s); try { FileOutputStream f = new FileOutputStream("/tmp/a.png"); ImageIO.write(bufferedImage, "png", f); f.close(); } catch (IOException e) { }// Point2D.Double dp = new Point2D.Double(194 + 16, 201 + 21);// affine.transform(dp, dp);// dp = new Point2D.Double(194, 201);// affine.transform(dp, dp); int iter = 0; /* * Create a 0/1 bitmap from the image. */ byte []pixelBuffer1 = new byte[BITMAP_SIZE * BITMAP_SIZE]; byte []pixelBuffer2 = new byte[BITMAP_SIZE * BITMAP_SIZE]; for (y = 0; y < BITMAP_SIZE; y++) { for (x = 0; x < BITMAP_SIZE; x++) { int pixval = (bufferedImage.getRGB(x, y) & 0xffffff); if (pixval != 0) pixelBuffer1[y * BITMAP_SIZE + x] = 1; else pixelBuffer1[y * BITMAP_SIZE + x] = 0; } } bufferedImage = null; lastXMin = lastYMin = 0; lastXMax = lastYMax = BITMAP_SIZE - 1; /* * Search through bitmap and clear pixels that are on the boundary * of the shape. Continue doing this until all pixels are cleared from * the bitmap. */ do { /* * Walk through bitmap, copying pixel values to a second bitmap. * Pixels on the boundary of the shape are set to 0 in second bitmap. */ xMin = yMin = BITMAP_SIZE; xMax = yMax = -1; nPixelsSet = 0; lastXMid = (lastYMin + lastYMax) / 2; lastYMid = (lastXMin + lastXMax) / 2; for (y = lastYMin; y <= lastYMax; y++) { for (x = lastXMin; x <= lastXMax; x++) { int index = y * BITMAP_SIZE + x; if (pixelBuffer1[index] != 0) { /* * Count how many neighbouring pixels are set. */ int nNeighboursSet = 0; if (y > lastYMin && pixelBuffer1[index - BITMAP_SIZE] != 0) nNeighboursSet++; if (y < lastYMax && pixelBuffer1[index + BITMAP_SIZE] != 0) nNeighboursSet++; if (x > lastXMin && pixelBuffer1[index - 1] != 0) nNeighboursSet++; if (x < lastXMax && pixelBuffer1[index + 1] != 0) nNeighboursSet++; /* * If pixel is surrounded by 4 set pixels * then leave it set. */ if (nNeighboursSet == 4) { pixelBuffer2[index] = 1; nPixelsSet++; /* * Keep track of area still containing set pixels so we * can reduce next loop through bitmap to only area where * some pixels are set. */ if (x < xMin) xMin = x; if (x > xMax) xMax = x; if (y < yMin) yMin = y; if (y > yMax) yMax = y; } else { lastClearedX = x; lastClearedY = y; pixelBuffer2[index] = 0; } } else { pixelBuffer2[index] = 0; } } } /* * Move second buffer to first buffer and repeat process if some * pixels are still set. */ System.arraycopy(pixelBuffer2, 0, pixelBuffer1, 0, pixelBuffer2.length); System.out.println("iter=" + (++iter) + " nPixelsSet=" + nPixelsSet + " lastCleared=(" + lastClearedX + "," + lastClearedY + ")"); for (y = lastYMin; y <= lastYMax; y++) { for (x = lastXMin; x <= lastXMax; x++) System.out.print((pixelBuffer2[y * BITMAP_SIZE + x] != 0) ? "X" : "."); System.out.println(""); } /* * Shrink area of bitmap to loop through for next iteration. */ lastXMin = xMin; lastYMin = yMin; lastXMax = xMax; lastYMax = yMax; } while (nPixelsSet > 0); if (lastClearedX < 0) { /* * Could not find a pixel position. Must be a very odd shape. * Just return middle of bounding box. */ retval = new Point2D.Double((bounds.getMinX() + bounds.getMaxX()) / 2, (bounds.getMinY() + bounds.getMaxY()) / 2); } else { /* * Last cleared point in bitmap is closest to the middle of the polygon. * Return it. */ retval = new Point2D.Double(lastClearedX, lastClearedY); try { affine.inverseTransform(retval, retval); } catch (NoninvertibleTransformException e) { /* * Transformation will always be invertible. */ } } System.out.println("retval=" + retval); return(retval); }
|
2501 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2501/8c4a9eafe4acae44c94f9f6de9981cb7d686ec98/Sinkhole.java/buggy/src/org/mapyrus/geom/Sinkhole.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
4686,
22,
40,
4604,
12,
8500,
272,
13,
202,
95,
202,
202,
474,
619,
16,
677,
31,
202,
202,
474,
619,
2930,
16,
677,
2930,
16,
619,
2747,
16,
677,
2747,
31,
202,
202,
474,
1142,
60,
2930,
16,
1142,
61,
2930,
16,
1142,
60,
2747,
16,
1142,
61,
2747,
31,
202,
202,
474,
1142,
60,
20711,
16,
1142,
61,
20711,
31,
202,
202,
474,
1142,
4756,
2258,
60,
273,
300,
21,
31,
202,
202,
474,
1142,
4756,
2258,
61,
273,
300,
21,
31,
202,
202,
474,
290,
18079,
694,
31,
202,
202,
2148,
22,
40,
18,
5265,
5221,
31,
202,
202,
19463,
22,
40,
4972,
273,
272,
18,
588,
5694,
22,
40,
5621,
202,
202,
13785,
558,
4059,
28381,
273,
1082,
202,
13785,
558,
4059,
18,
588,
5587,
1442,
12,
15650,
8352,
67,
4574,
342,
4972,
18,
588,
2384,
9334,
20469,
8352,
67,
4574,
342,
4972,
18,
588,
2686,
10663,
9506,
202,
7329,
558,
18,
13929,
19236,
10576,
18,
588,
2930,
60,
9334,
300,
10576,
18,
588,
2930,
61,
10663,
202,
202,
20308,
1082,
380,
1788,
1316,
471,
3724,
2179,
1368,
518,
16,
25740,
326,
7278,
1316,
18,
1082,
1195,
202,
202,
17947,
2040,
11445,
2040,
273,
394,
12362,
12,
15650,
8352,
67,
4574,
16,
20469,
8352,
67,
4574,
16,
1082,
202,
17947,
2040,
18,
2399,
67,
15377,
67,
16813,
1769,
202,
202,
17558,
22,
40,
314,
22,
273,
261,
17558,
22,
40,
13,
26385,
2040,
18,
588,
17558,
5621,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
4686,
22,
40,
4604,
12,
8500,
272,
13,
202,
95,
202,
202,
474,
619,
16,
677,
31,
202,
202,
474,
619,
2930,
16,
677,
2930,
16,
619,
2747,
16,
677,
2747,
31,
202,
202,
474,
1142,
60,
2930,
16,
1142,
61,
2930,
16,
1142,
60,
2747,
16,
1142,
61,
2747,
31,
202,
202,
474,
1142,
60,
20711,
16,
1142,
61,
20711,
31,
202,
202,
474,
1142,
4756,
2258,
60,
273,
300,
21,
31,
202,
202,
474,
1142,
4756,
2258,
61,
273,
300,
21,
31,
202,
202,
474,
290,
18079,
694,
31,
202,
202,
2148,
22,
40,
18,
5265,
5221,
31,
202,
202,
19463,
22,
40,
4972,
273,
272,
18,
588,
5694,
22,
40,
5621,
202,
2
] |
if (!line.toString().equals(END_CERTIFICATE))
|
if (! line.toString().equals(END_CERTIFICATE))
|
private X509Certificate generateCert(InputStream inStream) throws IOException, CertificateException { if (inStream == null) throw new CertificateException("missing input stream"); if (!inStream.markSupported()) inStream = new BufferedInputStream(inStream, 8192); inStream.mark(20); int i = inStream.read(); if (i == -1) throw new EOFException(); // If the input is in binary DER format, the first byte MUST be // 0x30, which stands for the ASN.1 [UNIVERSAL 16], which is the // UNIVERSAL SEQUENCE, with the CONSTRUCTED bit (0x20) set. // // So if we do not see 0x30 here we will assume it is in Base-64. if (i != 0x30) { inStream.reset(); StringBuffer line = new StringBuffer(80); do { line.setLength(0); do { i = inStream.read(); if (i == -1) throw new EOFException(); if (i != '\n' && i != '\r') line.append((char) i); } while (i != '\n' && i != '\r'); } while (!line.toString().equals(BEGIN_CERTIFICATE)); X509Certificate ret = new X509Certificate( new BufferedInputStream(new Base64InputStream(inStream), 8192)); line.setLength(0); line.append('-'); // Base64InputStream will eat this. do { i = inStream.read(); if (i == -1) throw new EOFException(); if (i != '\n' && i != '\r') line.append((char) i); } while (i != '\n' && i != '\r'); // XXX ??? if (!line.toString().equals(END_CERTIFICATE)) throw new CertificateException("no end-of-certificate marker"); return ret; } else { inStream.reset(); return new X509Certificate(inStream); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/X509CertificateFactory.java/clean/core/src/classpath/gnu/gnu/java/security/provider/X509CertificateFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1139,
5995,
4719,
2103,
5461,
12,
4348,
28987,
13,
565,
1216,
1860,
16,
29551,
225,
288,
565,
309,
261,
267,
1228,
422,
446,
13,
1377,
604,
394,
29551,
2932,
7337,
810,
1407,
8863,
565,
309,
16051,
267,
1228,
18,
3355,
7223,
10756,
1377,
28987,
273,
394,
24742,
12,
267,
1228,
16,
26730,
1769,
565,
28987,
18,
3355,
12,
3462,
1769,
565,
509,
277,
273,
28987,
18,
896,
5621,
565,
309,
261,
77,
422,
300,
21,
13,
1377,
604,
394,
30051,
5621,
565,
368,
971,
326,
810,
353,
316,
3112,
21801,
740,
16,
326,
1122,
1160,
10685,
506,
565,
368,
374,
92,
5082,
16,
1492,
384,
5708,
364,
326,
18598,
18,
21,
306,
10377,
31879,
2872,
6487,
1492,
353,
326,
565,
368,
19462,
31879,
27118,
16,
598,
326,
3492,
13915,
2056,
2831,
261,
20,
92,
3462,
13,
444,
18,
565,
368,
565,
368,
6155,
309,
732,
741,
486,
2621,
374,
92,
5082,
2674,
732,
903,
6750,
518,
353,
316,
3360,
17,
1105,
18,
565,
309,
261,
77,
480,
374,
92,
5082,
13,
1377,
288,
3639,
28987,
18,
6208,
5621,
3639,
6674,
980,
273,
394,
6674,
12,
3672,
1769,
3639,
741,
1850,
288,
5411,
980,
18,
542,
1782,
12,
20,
1769,
5411,
741,
2868,
288,
7734,
277,
273,
28987,
18,
896,
5621,
7734,
309,
261,
77,
422,
300,
21,
13,
5375,
604,
394,
30051,
5621,
7734,
309,
261,
77,
480,
2337,
82,
11,
597,
277,
480,
2337,
86,
6134,
5375,
980,
18,
6923,
12443,
3001,
13,
277,
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,
1139,
5995,
4719,
2103,
5461,
12,
4348,
28987,
13,
565,
1216,
1860,
16,
29551,
225,
288,
565,
309,
261,
267,
1228,
422,
446,
13,
1377,
604,
394,
29551,
2932,
7337,
810,
1407,
8863,
565,
309,
16051,
267,
1228,
18,
3355,
7223,
10756,
1377,
28987,
273,
394,
24742,
12,
267,
1228,
16,
26730,
1769,
565,
28987,
18,
3355,
12,
3462,
1769,
565,
509,
277,
273,
28987,
18,
896,
5621,
565,
309,
261,
77,
422,
300,
21,
13,
1377,
604,
394,
30051,
5621,
565,
368,
971,
326,
810,
353,
316,
3112,
21801,
740,
16,
326,
1122,
1160,
10685,
506,
565,
368,
374,
92,
5082,
16,
1492,
384,
5708,
364,
326,
18598,
18,
21,
306,
10377,
31879,
2872,
6487,
1492,
2
] |
InputStream stream = getClass().getClassLoader().getResourceAsStream(C_XMLPAGE_OLD_DTD_LOCATION);
|
InputStream stream = getClass().getClassLoader().getResourceAsStream(XMLPAGE_OLD_DTD_LOCATION);
|
public InputSource resolveEntity(String publicId, String systemId) { // lookup the system id caches first byte[] content; content = (byte[])m_cachePermanent.get(systemId); if (content != null) { // permanent cache contains system id return new InputSource(new ByteArrayInputStream(content)); } else if (systemId.equals(CmsXmlPage.C_XMLPAGE_XSD_SYSTEM_ID)) { // XML page XSD reference try { InputStream stream = getClass().getClassLoader().getResourceAsStream(C_XMLPAGE_XSD_LOCATION); ByteArrayOutputStream bytes = new ByteArrayOutputStream(1024); for (int b = stream.read(); b > -1; b = stream.read()) { bytes.write(b); } content = bytes.toByteArray(); // cache the XML page DTD m_cachePermanent.put(systemId, content); return new InputSource(new ByteArrayInputStream(content)); } catch (Throwable t) { m_log.error("Did not find CmsXmlPage schema XSD at " + C_XMLPAGE_XSD_LOCATION, t); } } else if (systemId.equals(C_XMLPAGE_OLD_DTD_SYSTEM_ID_1) || systemId.endsWith(C_XMLPAGE_OLD_DTD_SYSTEM_ID_2)) { // XML page DTD reference try { InputStream stream = getClass().getClassLoader().getResourceAsStream(C_XMLPAGE_OLD_DTD_LOCATION); ByteArrayOutputStream bytes = new ByteArrayOutputStream(1024); for (int b = stream.read(); b > -1; b = stream.read()) { bytes.write(b); } content = bytes.toByteArray(); // cache the XML page DTD m_cachePermanent.put(systemId, content); return new InputSource(new ByteArrayInputStream(content)); } catch (Throwable t) { m_log.error("Did not find CmsXmlPage DTD at " + C_XMLPAGE_OLD_DTD_LOCATION, t); } } else if ((m_cms != null) && systemId.startsWith(C_OPENCMS_SCHEME)) { // opencms:// VFS reference String cacheSystemId = systemId.substring(C_OPENCMS_SCHEME.length() - 1); String cacheKey = getCacheKey(cacheSystemId, m_cms.getRequestContext().currentProject().isOnlineProject()); // look up temporary cache content = (byte[])m_cacheTemporary.get(cacheKey); if (content != null) { return new InputSource(new ByteArrayInputStream(content)); } try { // content not cached, read from VFS m_cms.getRequestContext().saveSiteRoot(); m_cms.getRequestContext().setSiteRoot("/"); CmsFile file = m_cms.readFile(cacheSystemId); content = file.getContents(); // store content in cache m_cacheTemporary.put(cacheKey, content); if (m_log.isDebugEnabled()) { m_log.debug("Xml entity resolver cached system id " + cacheKey); } return new InputSource(new ByteArrayInputStream(content)); } catch (Throwable t) { m_log.error("Could not resolve OpenCms xml entity reference '" + systemId + "'", t); } finally { m_cms.getRequestContext().restoreSiteRoot(); } } // use the default behaviour (i.e. resolve through external URL) return null; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e4e19c0a90797aecd9ee0ffc8ee1a741d57f37ee/CmsXmlEntityResolver.java/clean/src/org/opencms/xml/CmsXmlEntityResolver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23699,
2245,
1943,
12,
780,
1071,
548,
16,
514,
30083,
13,
288,
3639,
368,
3689,
326,
2619,
612,
12535,
1122,
3639,
1160,
8526,
913,
31,
3639,
913,
273,
261,
7229,
63,
5717,
81,
67,
2493,
24159,
18,
588,
12,
4299,
548,
1769,
3639,
309,
261,
1745,
480,
446,
13,
288,
5411,
368,
16866,
1247,
1914,
2619,
612,
5411,
327,
394,
23699,
12,
2704,
16180,
12,
1745,
10019,
3639,
289,
469,
309,
261,
4299,
548,
18,
14963,
12,
4747,
4432,
1964,
18,
39,
67,
4201,
11219,
67,
31244,
67,
14318,
67,
734,
3719,
288,
5411,
368,
3167,
1363,
26462,
2114,
5411,
775,
288,
7734,
5037,
1407,
273,
2900,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
39,
67,
4201,
11219,
67,
31244,
67,
15277,
1769,
7734,
11559,
1731,
273,
394,
11559,
12,
2163,
3247,
1769,
7734,
364,
261,
474,
324,
273,
1407,
18,
896,
5621,
324,
405,
300,
21,
31,
324,
273,
1407,
18,
896,
10756,
288,
10792,
1731,
18,
2626,
12,
70,
1769,
7734,
289,
7734,
913,
273,
1731,
18,
869,
8826,
5621,
7734,
368,
1247,
326,
3167,
1363,
10696,
40,
7734,
312,
67,
2493,
24159,
18,
458,
12,
4299,
548,
16,
913,
1769,
7734,
327,
394,
23699,
12,
2704,
16180,
12,
1745,
10019,
5411,
289,
1044,
261,
15155,
268,
13,
288,
7734,
312,
67,
1330,
18,
1636,
2932,
18250,
486,
1104,
16084,
1964,
1963,
26462,
622,
315,
397,
385,
67,
4201,
11219,
67,
31244,
67,
15277,
16,
268,
1769,
5411,
289,
3639,
289,
469,
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,
23699,
2245,
1943,
12,
780,
1071,
548,
16,
514,
30083,
13,
288,
3639,
368,
3689,
326,
2619,
612,
12535,
1122,
3639,
1160,
8526,
913,
31,
3639,
913,
273,
261,
7229,
63,
5717,
81,
67,
2493,
24159,
18,
588,
12,
4299,
548,
1769,
3639,
309,
261,
1745,
480,
446,
13,
288,
5411,
368,
16866,
1247,
1914,
2619,
612,
5411,
327,
394,
23699,
12,
2704,
16180,
12,
1745,
10019,
3639,
289,
469,
309,
261,
4299,
548,
18,
14963,
12,
4747,
4432,
1964,
18,
39,
67,
4201,
11219,
67,
31244,
67,
14318,
67,
734,
3719,
288,
5411,
368,
3167,
1363,
26462,
2114,
5411,
775,
288,
7734,
5037,
1407,
273,
2900,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
39,
67,
2
] |
stringBuffer.append(TEXT_291);
|
stringBuffer.append(TEXT_296);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenNode genNode = (GenNode) genElement;GenDiagram genDiagram = genNode.getDiagram();Palette palette = genDiagram.getPalette();boolean isXYLayout = ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions(genNode);final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];class NodeEditPartHelper { private final List myInnerLabels = new LinkedList(); private final List myAllInnerLabels = new LinkedList(); private final List myExternalLabels = new LinkedList(); private final List myPinnedCompartments = new LinkedList(); private final List myFloatingCompartments = new LinkedList(); private GenNodeLabel myPrimaryLabel; private boolean myHasChildrenInListCompartments = false; public NodeEditPartHelper(GenNode genNode){ myPrimaryLabel = null; for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { GenNodeLabel next = (GenNodeLabel) labels.next(); if (myPrimaryLabel == null){ myPrimaryLabel = next; } if (next instanceof GenExternalNodeLabel) { myExternalLabels.add(next); } else { myAllInnerLabels.add(next); if (next.getViewmap() instanceof ParentAssignedViewmap) { myInnerLabels.add(next); } } } for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){ GenCompartment next = (GenCompartment) compartments.next(); if (next.getViewmap() instanceof ParentAssignedViewmap){ myPinnedCompartments.add(next); } else { myFloatingCompartments.add(next); } myHasChildrenInListCompartments |= next.isListLayout() && !next.getChildNodes().isEmpty(); } } public boolean hasChildrenInListCompartments(){ return myHasChildrenInListCompartments; } public boolean hasInnerFixedLabels(){ return !myInnerLabels.isEmpty(); } public boolean hasPinnedCompartments(){ return !myPinnedCompartments.isEmpty(); } public boolean hasFixedChildren(){ return hasInnerFixedLabels() || hasPinnedCompartments(); } public boolean hasExternalLabels(){ return !myExternalLabels.isEmpty(); } public GenNodeLabel getPrimaryLabel(){ return myPrimaryLabel; } public Iterator getInnerFixedLabels(){ return myInnerLabels.iterator(); } public Iterator getExternalLabels(){ return myExternalLabels.iterator(); } public Iterator getPinnedCompartments(){ return myPinnedCompartments.iterator(); } public Iterator getAllInnerLabels() { return myAllInnerLabels.iterator(); }}final NodeEditPartHelper myHelper = new NodeEditPartHelper(genNode); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); importManager.emitPackageStatement(stringBuffer); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_5); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.NodeEditPart")); stringBuffer.append(TEXT_8); {GenCommonBase genCommonBase = genNode; stringBuffer.append(TEXT_9); stringBuffer.append(TEXT_10); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_11); } stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_14); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_17); stringBuffer.append(TEXT_18); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_29); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_32); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_35); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_39); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_41); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_44); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_45); } else { stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_48); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_50); } stringBuffer.append(TEXT_51); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_54); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_55); } else { stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_58); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_60); }} stringBuffer.append(TEXT_61); } /*restrict local vars used in component edit policy*/ stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_78); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_89); if (palette != null) { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_95); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_97); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_98); } stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_101); }/*when there's palette*/ stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_104); if (palette != null) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_106); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_111); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_113); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_114); } stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_117); }/*when there's palette*/ stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_126); String figureQualifiedClassName = null;Viewmap viewmap = genNode.getViewmap();if (viewmap instanceof FigureViewmap) { figureQualifiedClassName = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassName == null || figureQualifiedClassName.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); stringBuffer.append(TEXT_128); if (isXYLayout) { stringBuffer.append(TEXT_129); } /* use flow layout*/ stringBuffer.append(TEXT_130); } else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_131); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_132); } else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); stringBuffer.append(TEXT_133); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_134); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_135); if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ stringBuffer.append(TEXT_136); } stringBuffer.append(TEXT_137); } stringBuffer.append(TEXT_138); if (figureQualifiedClassName != null) { stringBuffer.append(TEXT_139); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_140); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_141); } stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_144); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_154); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_156); if (!isXYLayout) { String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); stringBuffer.append(TEXT_157); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_158); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_159); } else { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_163); } stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_167); if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_169); for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); final String labelEditPart = importManager.getImportedName(genLabel.getEditPartQualifiedClassName()); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); stringBuffer.append(TEXT_170); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_171); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_172); stringBuffer.append(childSetterName); stringBuffer.append(TEXT_173); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_174); }for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_175); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_177); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_178); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_179); } // for pinned compartments stringBuffer.append(TEXT_180); //XXX: ignore labels assuming that they never may be removedfor (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_181); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_183); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_184); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_185); } // for pinned compartments stringBuffer.append(TEXT_186); } // if myHelper.hasFixedChildren() stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_188); GenNodeLabel firstEditableLabel = null; for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (!genLabel.isReadOnly()) { firstEditableLabel = genLabel; break; } } if (firstEditableLabel != null) { stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_192); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName(firstEditableLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_195); } stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_203); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_207); for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (genLabel.isReadOnly()) { continue; } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_209); } stringBuffer.append(TEXT_210); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_212); for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { GenNodeLabel next = (GenNodeLabel) externalLabels.next(); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_214); } stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_219); }if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_221); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_224); } if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_225); } stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_227); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_230); } if (myHelper.hasFixedChildren()){ stringBuffer.append(TEXT_231); } stringBuffer.append(TEXT_232); } stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_254); /*@ include file="adapters/propertySource.javajetinc"*/ stringBuffer.append(TEXT_255); stringBuffer.append(TEXT_256); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_260); stringBuffer.append(TEXT_261); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_265); final String primaryView = "getDiagramNode()"; stringBuffer.append(TEXT_266); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_267); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_270); stringBuffer.append(primaryView); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_279); } stringBuffer.append(TEXT_280); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_281); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_282); } stringBuffer.append(TEXT_283); stringBuffer.append(TEXT_284); stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_286); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_287); stringBuffer.append(primaryView); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_289); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_290); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_294); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_295); stringBuffer.append(primaryView); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_298); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_301); stringBuffer.append(TEXT_302); stringBuffer.append(TEXT_303); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_304); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_305); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_307); stringBuffer.append(TEXT_308); stringBuffer.append(TEXT_309); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_311); stringBuffer.append(TEXT_312); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_318); stringBuffer.append(TEXT_319); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_321); stringBuffer.append(TEXT_322); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_324); stringBuffer.append(TEXT_325); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_327); stringBuffer.append(TEXT_328); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_333); stringBuffer.append(TEXT_334); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_337); /*XXX: probably, this should go to a separate jet-template along with GraphicalNodeEditPolicy*/ if (palette != null) { for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_338); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_341); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_344); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); if (containmentFeature == null) { stringBuffer.append(TEXT_345); } else { stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_349); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_350); { GenFeature _feature = containmentFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_351); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_352); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_353); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_354); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_355); } else { stringBuffer.append(TEXT_356); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_357); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_358); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_359); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_360); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_361); }} } GenFeature childFeature = modelFacet.getChildMetaFeature(); if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { { GenFeature _feature = childFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_362); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_363); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_364); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_365); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_366); } else { stringBuffer.append(TEXT_367); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_368); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_370); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_371); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_372); }} } }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_373); if (linkConstraints != null) { stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_375); stringBuffer.append(_source); stringBuffer.append(TEXT_376); stringBuffer.append(_target); stringBuffer.append(TEXT_377); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_378); } } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_381); { GenFeature _feature = metaFeature; String _ownerInstance = "domainElement"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_382); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_383); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_384); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_385); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_386); } else { stringBuffer.append(TEXT_387); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_388); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_390); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_391); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_392); }} }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_393); if (linkConstraints != null) { stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_395); stringBuffer.append(_source); stringBuffer.append(TEXT_396); stringBuffer.append(_target); stringBuffer.append(TEXT_397); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_398); } else { stringBuffer.append(TEXT_399); } stringBuffer.append(TEXT_400); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_401); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_404); } stringBuffer.append(TEXT_405); } //outgoing links for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_406); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_410); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_411); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_413); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_414); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_416); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_417); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_418); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_419); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenClass linkClass = modelFacet.getMetaClass(); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); stringBuffer.append(TEXT_421); stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_422); stringBuffer.append(linkClass.getClassifierAccessorName()); stringBuffer.append(TEXT_423); /*XXX: Class name DomainElementInitializer should be user-customizable*/ stringBuffer.append(TEXT_424); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); stringBuffer.append(TEXT_425); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_426); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { stringBuffer.append(TEXT_427); } stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_431); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_432); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); GenFeature childFeature = modelFacet.getChildMetaFeature(); GenFeature targetFeature = modelFacet.getTargetMetaFeature(); //source/link features seem to be pointing from link to its ends, not vice versa. //Anyway, if there is containment feature and it is not opposite to either the source/target, we should add containment, //otherwise we will have problems with saving uncontained EObjects. boolean addSource = sourceFeature != null; boolean addTarget = targetFeature != null; boolean addChild = childFeature != null && childFeature != containmentFeature && !childFeature.isDerived(); if (containmentFeature != null) { if (sourceFeature != null && sourceFeature.getEcoreFeature() instanceof EReference == true) { EReference sourceEcoreFeature = (EReference)sourceFeature.getEcoreFeature(); if (sourceEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addSource = false; } } if (targetFeature != null && targetFeature.getEcoreFeature() instanceof EReference == true) { EReference targetEcoreFeature = (EReference)targetFeature.getEcoreFeature(); if (targetEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addTarget = false; } } stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_435); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_438); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_439); } if (addChild) { stringBuffer.append(TEXT_440); stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_441); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_442); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_443); } if (addSource) { { GenFeature _feature = sourceFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_444); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_445); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_446); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_447); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_448); } else { stringBuffer.append(TEXT_449); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_450); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_451); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_452); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_453); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_454); }} } stringBuffer.append(TEXT_455); stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_456); stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_457); stringBuffer.append(sourceFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_458); } if (addTarget) { { GenFeature _feature = targetFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_459); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_460); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_461); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_462); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_463); } else { stringBuffer.append(TEXT_464); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_465); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_466); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_467); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_468); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_469); }} } stringBuffer.append(TEXT_470); stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_471); stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_472); stringBuffer.append(targetFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_473); } stringBuffer.append(TEXT_474); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_475); stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_476); stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_477); stringBuffer.append(metaFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_478); } stringBuffer.append(TEXT_479); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_480); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_481); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_482); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_483); } stringBuffer.append(TEXT_484); { String _source = "source.getElement()"; String _target = "target.getElement()"; stringBuffer.append(TEXT_485); if (linkConstraints != null) { stringBuffer.append(TEXT_486); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_487); stringBuffer.append(_source); stringBuffer.append(TEXT_488); stringBuffer.append(_target); stringBuffer.append(TEXT_489); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_490); } }/*when there's palette*/ if (genNode.getViewmap() instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); stringBuffer.append(TEXT_491); stringBuffer.append(classBody); stringBuffer.append(TEXT_492); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_493); } } stringBuffer.append(TEXT_494); importManager.emitSortedImports(); stringBuffer.append(TEXT_495); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/41ff79477b1b3c386bb3c9c99a88391ac573362c/NodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
907,
3157,
907,
273,
261,
7642,
907,
13,
3157,
1046,
31,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
907,
18,
588,
14058,
1940,
5621,
25863,
12127,
273,
3157,
14058,
1940,
18,
588,
25863,
5621,
6494,
353,
8546,
3744,
273,
4441,
1458,
3744,
559,
2276,
18,
588,
7887,
1442,
7675,
291,
510,
6053,
1763,
11024,
12,
4507,
907,
1769,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
1106,
2029,
4666,
1988,
2276,
288,
202,
1152,
727,
987,
3399,
2857,
5888,
273,
394,
10688,
5621,
202,
1152,
727,
987,
3399,
1595,
2857,
5888,
273,
394,
10688,
5621,
202,
1152,
727,
987,
3399,
6841,
5888,
273,
394,
10688,
5621,
202,
1152,
727,
987,
3399,
12178,
11748,
799,
2680,
1346,
273,
394,
10688,
5621,
202,
1152,
727,
987,
3399,
28344,
799,
2680,
1346,
273,
394,
10688,
5621,
202,
1152,
10938,
907,
2224,
3399,
6793,
2224,
31,
202,
1152,
1250,
3399,
5582,
4212,
24218,
799,
2680,
1346,
273,
629,
31,
202,
202,
482,
2029,
4666,
1988,
2276,
12,
7642,
907,
3157,
907,
15329,
202,
202,
4811,
6793,
2224,
273,
446,
31,
202,
202,
1884,
261,
3198,
3249,
273,
3157,
907,
18,
588,
5888,
7675,
9838,
5621,
3249,
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,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
907,
3157,
907,
273,
261,
7642,
907,
13,
3157,
1046,
31,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
907,
18,
588,
14058,
1940,
5621,
25863,
12127,
273,
3157,
14058,
1940,
18,
588,
25863,
5621,
6494,
353,
8546,
3744,
273,
4441,
1458,
3744,
559,
2276,
18,
588,
7887,
1442,
7675,
291,
510,
6053,
1763,
11024,
12,
4507,
907,
1769,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
2
] |
}); }
|
} });
|
public void modelChangedInCommand(final List<SModelEvent> events, EditorContext editorContext) { ProjectPane projectPane = getOperationContext().getComponent(ProjectPane.class); if (EventUtil.isDramaticalChange(events)) { projectPane.rebuildTree(new Runnable() { public void run() { SModelEventVisitor visitor = new SModelEventVisitor() { public void visitRootEvent(SModelRootEvent event) { SModelTreeNode.this.update(); } public void visitChildEvent(SModelChildEvent event) { updateTreeWithRoot(event.getParent()); } public void visitPropertyEvent(SModelPropertyEvent event) { } public void visitReferenceEvent(SModelReferenceEvent event) { } }; for (SModelEvent event : events) { event.accept(visitor); }// ((DefaultTreeModel) myTree.getModel()).nodeStructureChanged(SModelTreeNode.this.getParent()); } }); } }
|
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/2dd2067bc2de54558dfc6bc92ca9d140d1d30035/SModelTreeNode.java/clean/source/jetbrains/mps/ide/projectPane/SModelTreeNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
938,
5033,
382,
2189,
12,
6385,
987,
32,
55,
1488,
1133,
34,
2641,
16,
18451,
1042,
4858,
1042,
13,
288,
1377,
5420,
8485,
1984,
8485,
273,
21162,
1042,
7675,
588,
1841,
12,
4109,
8485,
18,
1106,
1769,
1377,
309,
261,
1133,
1304,
18,
291,
40,
1940,
270,
1706,
3043,
12,
5989,
3719,
288,
3639,
1984,
8485,
18,
266,
3510,
2471,
12,
2704,
10254,
1435,
288,
1850,
1071,
918,
1086,
1435,
288,
5411,
348,
1488,
1133,
7413,
8000,
273,
394,
348,
1488,
1133,
7413,
1435,
288,
2868,
1071,
918,
3757,
2375,
1133,
12,
55,
1488,
2375,
1133,
871,
13,
288,
7734,
348,
1488,
12513,
18,
2211,
18,
2725,
5621,
2868,
289,
2868,
1071,
918,
3757,
1763,
1133,
12,
55,
1488,
1763,
1133,
871,
13,
288,
7734,
1089,
2471,
1190,
2375,
12,
2575,
18,
588,
3054,
10663,
2868,
289,
2868,
1071,
918,
3757,
1396,
1133,
12,
55,
1488,
1396,
1133,
871,
13,
288,
2868,
289,
2868,
1071,
918,
3757,
2404,
1133,
12,
55,
1488,
2404,
1133,
871,
13,
288,
2868,
289,
5411,
289,
31,
5411,
364,
261,
55,
1488,
1133,
871,
294,
2641,
13,
288,
2868,
871,
18,
9436,
12,
3516,
1811,
1769,
5411,
289,
759,
5411,
14015,
1868,
2471,
1488,
13,
3399,
2471,
18,
588,
1488,
1435,
2934,
2159,
6999,
5033,
12,
55,
1488,
12513,
18,
2211,
18,
588,
3054,
10663,
1850,
289,
3639,
15549,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
938,
5033,
382,
2189,
12,
6385,
987,
32,
55,
1488,
1133,
34,
2641,
16,
18451,
1042,
4858,
1042,
13,
288,
1377,
5420,
8485,
1984,
8485,
273,
21162,
1042,
7675,
588,
1841,
12,
4109,
8485,
18,
1106,
1769,
1377,
309,
261,
1133,
1304,
18,
291,
40,
1940,
270,
1706,
3043,
12,
5989,
3719,
288,
3639,
1984,
8485,
18,
266,
3510,
2471,
12,
2704,
10254,
1435,
288,
1850,
1071,
918,
1086,
1435,
288,
5411,
348,
1488,
1133,
7413,
8000,
273,
394,
348,
1488,
1133,
7413,
1435,
288,
2868,
1071,
918,
3757,
2375,
1133,
12,
55,
1488,
2375,
1133,
871,
13,
288,
7734,
348,
1488,
12513,
18,
2211,
18,
2725,
5621,
2868,
289,
2868,
1071,
918,
3757,
1763,
1133,
2
] |
public void focusGained(FocusEvent e) { _lastFocusOwner = _junitErrorPanel; }
|
public void focusGained(FocusEvent e) { _lastFocusOwner = _compilerErrorPanel; }
|
public void focusGained(FocusEvent e) { _lastFocusOwner = _junitErrorPanel; }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/5096aaab648cea3686054749f4edbb0813185db1/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
7155,
43,
8707,
12,
9233,
1133,
425,
13,
288,
389,
2722,
9233,
5541,
273,
389,
78,
4873,
668,
5537,
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,
0,
0,
0,
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,
4202,
1071,
918,
7155,
43,
8707,
12,
9233,
1133,
425,
13,
288,
389,
2722,
9233,
5541,
273,
389,
78,
4873,
668,
5537,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getGraphModel().removeGraphEventListener( change ); }
|
getGraphModel().removeGraphEventListener( change ); }
|
public void removeChangeRegistryAsListener( ChangeRegistry change ) { getGraphModel().removeGraphEventListener( change ); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ArgoDiagram.java/buggy/src_new/org/argouml/ui/ArgoDiagram.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
3043,
4243,
1463,
2223,
12,
7576,
4243,
2549,
262,
288,
202,
225,
26479,
1488,
7675,
4479,
4137,
7375,
12,
2549,
11272,
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,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
3043,
4243,
1463,
2223,
12,
7576,
4243,
2549,
262,
288,
202,
225,
26479,
1488,
7675,
4479,
4137,
7375,
12,
2549,
11272,
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,
-100,
-100
] |
public void print(boolean b) {
|
public void print(boolean b) {
|
public void print(boolean b) { contentWriter.write(Boolean.toString(b)); }
|
15560 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15560/43e3a7aa8cd68770bcd98555c84f91cb80213170/AbstractTagDirective.java/clean/src/java/com/opensymphony/webwork/views/velocity/AbstractTagDirective.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1172,
12,
6494,
324,
13,
7734,
288,
10792,
913,
2289,
18,
2626,
12,
5507,
18,
10492,
12,
70,
10019,
7734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1171,
1071,
918,
1172,
12,
6494,
324,
13,
7734,
288,
10792,
913,
2289,
18,
2626,
12,
5507,
18,
10492,
12,
70,
10019,
7734,
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
] |
if (!ref.hasFlag(ValueNumber.RETURN_VALUE)) {
|
private void analyzeMethod(ClassContext classContext, Method method) throws CFGBuilderException, DataflowAnalysisException { MethodGen methodGen = classContext.getMethodGen(method); if (methodGen == null) return; ConstantPoolGen cpg = methodGen.getConstantPool(); CFG cfg = classContext.getCFG(method); ValueNumberDataflow vnaDataflow = classContext.getValueNumberDataflow(method); LockDataflow dataflow = classContext.getLockDataflow(method); for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) { Location location = i.next(); InstructionHandle handle = location.getHandle(); Instruction ins = handle.getInstruction(); if (!(ins instanceof INVOKEVIRTUAL)) continue; INVOKEVIRTUAL inv = (INVOKEVIRTUAL) ins; String methodName = inv.getName(cpg); String methodSig = inv.getSignature(cpg); if (Hierarchy.isMonitorWait(methodName, methodSig) || Hierarchy.isMonitorNotify(methodName, methodSig)) { int numConsumed = inv.consumeStack(cpg); if (numConsumed == Constants.UNPREDICTABLE) throw new DataflowAnalysisException("Unpredictable stack consumption", methodGen, handle); ValueNumberFrame frame = vnaDataflow.getFactAtLocation(location); if (!frame.isValid()) // Probably dead code continue; if (frame.getStackDepth() - numConsumed < 0) throw new DataflowAnalysisException("Stack underflow", methodGen, handle); ValueNumber ref = frame.getValue(frame.getNumSlots() - numConsumed); LockSet lockSet = dataflow.getFactAtLocation(location); int lockCount = lockSet.getLockCount(ref.getNumber()); if (lockCount == 0) { String sourceFile = classContext.getJavaClass().getSourceFileName(); String type = methodName.equals("wait") ? "MWN_MISMATCHED_WAIT" : "MWN_MISMATCHED_NOTIFY"; // Report as medium priority only if the method is public. // Non-public methods may be properly locked in a calling context. int priority = method.isPublic() ? NORMAL_PRIORITY : LOW_PRIORITY; bugReporter.reportBug(new BugInstance(this, type, priority) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(classContext, methodGen, sourceFile, handle)); } } } }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/27098b3656f45c5d331d4ad1e51eaa46be08b9b9/FindMismatchedWaitOrNotify.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindMismatchedWaitOrNotify.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
918,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
12375,
1305,
12,
797,
1042,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
667,
1042,
16,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
2985,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
707,
13,
202,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
1216,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
7577,
1263,
503,
16,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
1910,
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,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
918,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
12375,
1305,
12,
797,
1042,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
667,
1042,
16,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
2985,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
707,
13,
202,
430,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
3719,
288,
309,
16051,
1734,
18,
5332,
4678,
12,
620,
1854,
18,
14033,
67,
4051,
2
] |
|
for (int i = 0; i < fTrimArea.length; i++) { List area = fTrimArea[i]; Iterator d = area.iterator(); while (d.hasNext()) { TrimDescriptor desc = (TrimDescriptor) d.next(); if (desc.getTrim().getId().equals(id)) { return desc.getTrim(); } }
|
TrimDescriptor desc = (TrimDescriptor) fTrimDescriptors.get(id); if (desc != null) { return desc.getTrim();
|
public IWindowTrim getTrim(String id) { for (int i = 0; i < fTrimArea.length; i++) { List area = fTrimArea[i]; Iterator d = area.iterator(); while (d.hasNext()) { TrimDescriptor desc = (TrimDescriptor) d.next(); if (desc.getTrim().getId().equals(id)) { return desc.getTrim(); } } } return null; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c02ce808ddcd3a887071a5c31104b81c396819e2/TrimLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
3829,
14795,
336,
14795,
12,
780,
612,
13,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
284,
14795,
5484,
18,
2469,
31,
277,
27245,
288,
1082,
202,
682,
5091,
273,
284,
14795,
5484,
63,
77,
15533,
1082,
202,
3198,
302,
273,
5091,
18,
9838,
5621,
1082,
202,
17523,
261,
72,
18,
5332,
2134,
10756,
288,
9506,
202,
14795,
3187,
3044,
273,
261,
14795,
3187,
13,
302,
18,
4285,
5621,
9506,
202,
430,
261,
5569,
18,
588,
14795,
7675,
26321,
7675,
14963,
12,
350,
3719,
288,
6862,
202,
2463,
3044,
18,
588,
14795,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
3829,
14795,
336,
14795,
12,
780,
612,
13,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
284,
14795,
5484,
18,
2469,
31,
277,
27245,
288,
1082,
202,
682,
5091,
273,
284,
14795,
5484,
63,
77,
15533,
1082,
202,
3198,
302,
273,
5091,
18,
9838,
5621,
1082,
202,
17523,
261,
72,
18,
5332,
2134,
10756,
288,
9506,
202,
14795,
3187,
3044,
273,
261,
14795,
3187,
13,
302,
18,
4285,
5621,
9506,
202,
430,
261,
5569,
18,
588,
14795,
7675,
26321,
7675,
14963,
12,
350,
3719,
288,
6862,
202,
2463,
3044,
18,
588,
14795,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100
] |
sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
|
sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); sender.setInitialPause(initialPause); sender.setNumMessages(numMessages);
|
public void testTopicScale3() { log.info("Running test testTopicScale3"); for (int i = 1; i <= 20; i++) { SenderJob sender = createDefaultSenderJob(testTopicName); sender.setNumMessages(10000); sender.setMsgSize(1024); sender.setMf(new BytesMessageMessageFactory()); sender.setTransacted(false); sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ReceiverJob receiver = createDefaultReceiverJob(testQueueName); receiver.setAckMode(Session.AUTO_ACKNOWLEDGE); receiver.setTransacted(false); receiver.setNumConnections(1); receiver.setNumSessions(i); JobTimings[] results = runJobs(new Job[] {sender, receiver}); /* * NB. * When we calculating the total time taken from first send to last receive, there is some * error involved due to the differences in network latency and other remoting overhead * when sending the jobs to be executed on potentially different remote machines. * We make the assumption that this this difference is very small compared with time taken * to run the tests as to be negligible. */ long totalTimeTaken = results[1].getTestTime() + results[1].getInitTime() - results[0].getInitTime(); storeResult("testTopicScale3_" + i, totalTimeTaken); } log.info("Test testTopicScale3 finished"); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/96f752d06dba37742f7716ee54f31f1982df763e/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/PerfRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
5587,
23,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
1842,
6657,
5587,
23,
8863,
5411,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
4200,
31,
277,
27245,
1377,
288,
540,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
3813,
6657,
461,
1769,
540,
5793,
18,
542,
2578,
5058,
12,
23899,
1769,
540,
5793,
18,
542,
3332,
1225,
12,
2163,
3247,
1769,
540,
5793,
18,
542,
49,
74,
12,
2704,
5985,
1079,
1079,
1733,
10663,
540,
5793,
18,
542,
1429,
25487,
12,
5743,
1769,
540,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3993,
67,
3194,
28175,
1769,
5793,
18,
542,
4435,
19205,
12,
6769,
19205,
1769,
5793,
18,
542,
2578,
5058,
12,
2107,
5058,
1769,
27573,
31020,
2278,
5971,
273,
27346,
12952,
2278,
12,
3813,
30975,
1769,
540,
5971,
18,
542,
11931,
2309,
12,
2157,
18,
18909,
67,
3649,
27091,
6687,
7113,
1769,
540,
5971,
18,
542,
1429,
25487,
12,
5743,
1769,
540,
5971,
18,
542,
2578,
9314,
12,
21,
1769,
540,
5971,
18,
542,
2578,
13566,
12,
77,
1769,
21821,
3956,
10178,
899,
8526,
1686,
273,
1086,
7276,
12,
2704,
3956,
8526,
288,
15330,
16,
5971,
22938,
5375,
1748,
1850,
380,
20096,
18,
1850,
380,
5203,
732,
21046,
326,
2078,
813,
9830,
628,
1122,
1366,
358,
1142,
6798,
16,
1915,
353,
2690,
1850,
380,
555,
24589,
6541,
358,
326,
16440,
316,
2483,
19518,
471,
1308,
849,
17128,
23188,
1850,
380,
1347,
5431,
326,
6550,
358,
506,
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,
1071,
918,
1842,
6657,
5587,
23,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
1842,
6657,
5587,
23,
8863,
5411,
364,
261,
474,
277,
273,
404,
31,
277,
1648,
4200,
31,
277,
27245,
1377,
288,
540,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
3813,
6657,
461,
1769,
540,
5793,
18,
542,
2578,
5058,
12,
23899,
1769,
540,
5793,
18,
542,
3332,
1225,
12,
2163,
3247,
1769,
540,
5793,
18,
542,
49,
74,
12,
2704,
5985,
1079,
1079,
1733,
10663,
540,
5793,
18,
542,
1429,
25487,
12,
5743,
1769,
540,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3993,
67,
3194,
28175,
1769,
5793,
18,
542,
4435,
19205,
12,
6769,
19205,
1769,
5793,
18,
542,
2
] |
"org/mozilla/javascript/ScriptRuntime",
|
"org/mozilla/javascript/JavaAdapter",
|
private static void generateEmptyCtor(ClassFileWriter cfw, String adapterName, String superName, String scriptClassName) { cfw.startMethod("<init>", "()V", ClassFileWriter.ACC_PUBLIC); // Invoke base class constructor cfw.add(ByteCode.ALOAD_0); // this cfw.addInvoke(ByteCode.INVOKESPECIAL, superName, "<init>", "()V"); // Load script class cfw.add(ByteCode.NEW, scriptClassName); cfw.add(ByteCode.DUP); cfw.addInvoke(ByteCode.INVOKESPECIAL, scriptClassName, "<init>", "()V"); // Run script and save resulting scope cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/ScriptRuntime", "runScript", "(Lorg/mozilla/javascript/Script;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ASTORE_1); // Save the Scriptable in instance variable "delegee" cfw.add(ByteCode.ALOAD_0); // this cfw.add(ByteCode.ALOAD_1); // the Scriptable cfw.add(ByteCode.PUTFIELD, adapterName, "delegee", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ALOAD_0); // this for the following PUTFIELD for self // create a wrapper object to be used as "this" in method calls cfw.add(ByteCode.ALOAD_1); // the Scriptable cfw.add(ByteCode.ALOAD_0); // this cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "createAdapterWrapper", "(Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.PUTFIELD, adapterName, "self", "Lorg/mozilla/javascript/Scriptable;"); generateContextFactoryInit(cfw, adapterName); cfw.add(ByteCode.RETURN); cfw.stopMethod((short)2); // this + delegee }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/37d29a017a6038dd3a95ecea961c7097f7733631/JavaAdapter.java/buggy/src/org/mozilla/javascript/JavaAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
1921,
27425,
12,
797,
812,
2289,
6080,
91,
16,
4766,
1850,
514,
4516,
461,
16,
4766,
1850,
514,
2240,
461,
16,
4766,
1850,
514,
2728,
3834,
13,
565,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
32,
2738,
2984,
16,
25605,
58,
3113,
30614,
2289,
18,
31414,
67,
14939,
1769,
3639,
368,
14373,
1026,
667,
3885,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
225,
368,
333,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
2240,
461,
16,
3532,
2738,
2984,
16,
25605,
58,
8863,
3639,
368,
4444,
2728,
667,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
12917,
16,
2728,
3834,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
1769,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
2728,
3834,
16,
3532,
2738,
2984,
16,
25605,
58,
8863,
3639,
368,
1939,
2728,
471,
1923,
8156,
2146,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
11027,
11781,
16,
8227,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
5852,
4216,
3113,
8227,
315,
2681,
3651,
3113,
8227,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
4868,
8227,
397,
7923,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
9053,
8607,
67,
21,
1769,
3639,
368,
7074,
326,
22780,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
1921,
27425,
12,
797,
812,
2289,
6080,
91,
16,
4766,
1850,
514,
4516,
461,
16,
4766,
1850,
514,
2240,
461,
16,
4766,
1850,
514,
2728,
3834,
13,
565,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
32,
2738,
2984,
16,
25605,
58,
3113,
30614,
2289,
18,
31414,
67,
14939,
1769,
3639,
368,
14373,
1026,
667,
3885,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1013,
51,
1880,
67,
20,
1769,
225,
368,
333,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
3991,
10106,
6365,
16,
2240,
461,
16,
3532,
2738,
2984,
16,
25605,
58,
8863,
3639,
368,
4444,
2728,
667,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
2
] |
AST __t1460 = _t;
|
AST __t1465 = _t;
|
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1396 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1396; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1397 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1397; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1398 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1398; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1399 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1399; _t = _t.getNextSibling(); break; } case ASC: { AST __t1400 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1400; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1401 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1401; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1402 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1402; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1403 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1403; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1404 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1404; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1405 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1405; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1406 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1406; _t = _t.getNextSibling(); break; } case CHR: { AST __t1407 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1407; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1408 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1408; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1409 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1409; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1410 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1410; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1411 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1412 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1413 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case DATE: { AST __t1414 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1415 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1416 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case DAY: { AST __t1417 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1418 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1419 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1420 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1421 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1422 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1423 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1424 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1425 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1426 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1427 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1428 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1429 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case EXP: { AST __t1430 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case FILL: { AST __t1431 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1432 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1433 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1434 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1435 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1436 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1437 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1438 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1439 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1440 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1441 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1442 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1443 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1444 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1445 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1446 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1447 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1448 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1449 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1450 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1451 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1452 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1453 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1454 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1455 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1456 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1457 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1458 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1459 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1460 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1461 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1462 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1463 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case LAST: { AST __t1464 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1465 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case LC: { AST __t1466 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1467 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1468 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1469 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1470 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1471 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1472 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1473 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case LOG: { AST __t1474 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1475 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1476 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1477 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1478 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1479 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1480 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1481 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1482 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1483 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1484 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1485 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1486 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1487 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1488 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1489 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1490 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1491 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1492 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1493 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1494 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1495 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1496 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1497 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1498 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1499 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1500 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1501 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1502 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case STRING: { AST __t1503 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1504 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1505 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1506 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1507 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1508 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1509 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1510 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1511 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1512 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1513 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1514 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
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,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3437,
10525,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
432,
2192,
30820,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10580,
273,
389,
88,
31,
1082,
202,
9053,
1853,
25574,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2192,
30820,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
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,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
2
] |
public synchronized void removeSubscriber(USKCallback cb) { subscribers.remove(cb);
|
public void removeSubscriber(USKCallback cb) { synchronized(this) { subscribers.remove(cb); if(!(subscribers.isEmpty() && killOnLoseSubscribers)) return; } cancel();
|
public synchronized void removeSubscriber(USKCallback cb) { subscribers.remove(cb); }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/db5834235f813b648fd729665846c7a8074409ca/USKFetcher.java/buggy/src/freenet/client/async/USKFetcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1206,
11118,
12,
3378,
47,
2428,
2875,
13,
288,
202,
202,
1717,
17769,
18,
4479,
12,
7358,
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,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
918,
1206,
11118,
12,
3378,
47,
2428,
2875,
13,
288,
202,
202,
1717,
17769,
18,
4479,
12,
7358,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.