rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
return DataPacket.resultSetToStreamElements( ps,binaryFieldsLinked );
|
return new DataEnumerator(ps,binaryFieldsLinked );
|
public Enumeration < StreamElement > executeQuery ( StringBuilder query ,boolean binaryFieldsLinked) { PreparedStatement ps = null; try { ps = obtainPreparedStatementForQuery( query ); } catch ( SQLException e ) { logger.warn( e.getMessage( ) , e ); } return DataPacket.resultSetToStreamElements( ps,binaryFieldsLinked ); }
|
45185 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45185/ae79982ce3cc8dc820cb6b97a52919d35dda93fa/StorageManager.java/clean/src/gsn/storage/StorageManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
13864,
411,
3961,
1046,
405,
14304,
261,
3225,
843,
269,
6494,
3112,
2314,
13174,
13,
288,
1377,
16913,
4250,
273,
446,
31,
1377,
775,
288,
540,
4250,
273,
7161,
29325,
1290,
1138,
12,
843,
11272,
1377,
289,
1044,
261,
6483,
425,
262,
288,
540,
1194,
18,
8935,
12,
425,
18,
24906,
12,
262,
269,
425,
11272,
1377,
289,
1377,
327,
394,
1910,
3572,
7385,
12,
1121,
16,
8578,
2314,
13174,
11272,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
13864,
411,
3961,
1046,
405,
14304,
261,
3225,
843,
269,
6494,
3112,
2314,
13174,
13,
288,
1377,
16913,
4250,
273,
446,
31,
1377,
775,
288,
540,
4250,
273,
7161,
29325,
1290,
1138,
12,
843,
11272,
1377,
289,
1044,
261,
6483,
425,
262,
288,
540,
1194,
18,
8935,
12,
425,
18,
24906,
12,
262,
269,
425,
11272,
1377,
289,
1377,
327,
394,
1910,
3572,
7385,
12,
1121,
16,
8578,
2314,
13174,
11272,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Logger.log(name+".getAttachments()");
|
public Attachments getAttachments() { Logger.log(name+".getAttachments()"); return attachments; }
|
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/54a3cfc767326e2d4e1a7e1b2c63354a918f2762/SnipImpl.java/clean/src/org/snipsnap/snip/SnipImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8659,
1346,
336,
12961,
1435,
288,
4202,
327,
10065,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8659,
1346,
336,
12961,
1435,
288,
4202,
327,
10065,
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,
-100,
-100,
-100
] |
|
private void createDecorationJob() { decorationJob = new Job(WorkbenchMessages.DecorationScheduler_CalculationJobName) { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus run(IProgressMonitor monitor) { if(shutdown)//Cancelled on shutdown return Status.CANCEL_STATUS; monitor.beginTask(WorkbenchMessages.DecorationScheduler_CalculatingTask, 100); //will block if there are no resources to be decorated DecorationReference reference; monitor.worked(5); int workCount = 5; while ((reference = nextElement()) != null) { //Count up to 90 to give the appearance of updating if (workCount < 90) { monitor.worked(1); workCount++; } DecorationBuilder cacheResult = new DecorationBuilder(); monitor.subTask(reference.getSubTask()); //$NON-NLS-1$ //Don't decorate if there is already a pending result Object element = reference.getElement(); Object adapted = reference.getAdaptedElement(); boolean elementIsCached = true; DecorationResult adaptedResult = null; //Synchronize on the result lock as we want to //be sure that we do not try and decorate during //label update servicing. elementIsCached = resultCache.containsKey(element); if (elementIsCached) { pendingUpdate.add(element); } if (adapted != null) { adaptedResult = (DecorationResult) resultCache .get(adapted); } if (!elementIsCached) { //Just build for the resource first if (adapted != null) { if (adaptedResult == null) { decoratorManager.getLightweightManager() .getDecorations(adapted, cacheResult, true); if (cacheResult.hasValue()) { adaptedResult = cacheResult.createResult(); } } else { // If we already calculated the decoration // for the adapted element, reuse the result. cacheResult.applyResult(adaptedResult); // Set adaptedResult to null to indicate that // we do not need to cache the result again. adaptedResult = null; } } //Now add in the results for the main object decoratorManager.getLightweightManager() .getDecorations(element, cacheResult, false); //If we should update regardless then put a result // anyways if (cacheResult.hasValue() || reference.shouldForceUpdate()) { //Synchronize on the result lock as we want to //be sure that we do not try and decorate during //label update servicing. //Note: resultCache and pendingUpdate modifications //must be done atomically. if (adaptedResult != null) resultCache.put(adapted, adaptedResult); // Add the decoration even if it's empty in // order to indicate that the decoration is // ready resultCache.put(element, cacheResult .createResult()); //Add an update for only the original element // to //prevent multiple updates and clear the cache. pendingUpdate.add(element); } } // Only notify listeners when we have exhausted the // queue of decoration requests. if (awaitingDecoration.isEmpty()) { decorated(); } } monitor.worked(100 - workCount); monitor.done(); return Status.OK_STATUS; } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ public boolean belongsTo(Object family) { return DecoratorManager.FAMILY_DECORATE == family; } /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.Job#shouldRun() */ public boolean shouldRun() { return PlatformUI.isWorkbenchRunning(); } }; decorationJob.setRule(updateRule); decorationJob.setSystem(true); decorationJob.setPriority(Job.DECORATE); decorationJob.schedule(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/23e6571ec09a520629294b858536f731d81d10c8/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
7859,
367,
2278,
1435,
288,
202,
202,
11880,
367,
2278,
273,
394,
3956,
12,
2421,
22144,
5058,
18,
7859,
367,
11870,
67,
13989,
29425,
13,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
2278,
7,
2681,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
9506,
202,
430,
12,
15132,
13,
759,
21890,
603,
5731,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
7859,
367,
11870,
67,
30238,
2174,
16,
2130,
1769,
9506,
202,
759,
20194,
1203,
309,
1915,
854,
1158,
2703,
358,
506,
13816,
9506,
202,
7859,
367,
2404,
2114,
31,
9506,
202,
10259,
18,
1252,
329,
12,
25,
1769,
9506,
202,
474,
1440,
1380,
273,
1381,
31,
9506,
202,
17523,
14015,
6180,
273,
14512,
10756,
480,
446,
13,
288,
6862,
202,
759,
1380,
731,
358,
8566,
358,
8492,
326,
9788,
1359,
434,
9702,
6862,
202,
430,
261,
1252,
1380,
411,
8566,
13,
288,
25083,
202,
10259,
18,
1252,
329,
12,
21,
1769,
25083,
202,
1252,
1380,
9904,
31,
6862,
202,
97,
6862,
202,
7859,
367,
1263,
1247,
1253,
273,
394,
3416,
22226,
1263,
5621,
6862,
202,
10259,
18,
1717,
2174,
12,
6180,
18,
588,
1676,
2174,
10663,
4329,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
7859,
367,
2278,
1435,
288,
202,
202,
11880,
367,
2278,
273,
394,
3956,
12,
2421,
22144,
5058,
18,
7859,
367,
11870,
67,
13989,
29425,
13,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
3644,
18,
9448,
18,
10088,
18,
2278,
7,
2681,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
9506,
202,
430,
12,
15132,
13,
759,
21890,
603,
5731,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
2
] |
||
if (logger.isDebugEnabled()) { logger.debug("mouseDragged"); }
|
public void mouseDragged (MouseEvent e) { if (logger.isDebugEnabled()) { logger.debug("mouseDragged"); } if (isDragWanted(e)) { //logger.info("Dragging"); final Rectangle vr = component.getVisibleRect(); vr.setBounds(vr.x + rawRect.x - e.getX(), vr.y + rawRect.y - e.getY(), vr.width, vr.height); SwingUtilities.invokeLater(new Runnable() { public void run () { component.scrollRectToVisible(vr); } }); } else if (isRubberWanted(e)) { //logger.info("Modifying rectangle"); updateSize(e); if (mouseMonitor != null) { mouseMonitor.rectangleSelected(e, rect); } } }
|
37458 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37458/c98273cb1bd028f0244e7513af1eb224efa6721e/Rubber.java/buggy/src/main/omr/ui/Rubber.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
11728,
2423,
261,
9186,
1133,
425,
13,
565,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
11697,
11728,
2423,
8863,
3639,
289,
3639,
309,
261,
291,
11728,
59,
970,
329,
12,
73,
3719,
288,
5411,
368,
4901,
18,
1376,
2932,
11728,
1998,
8863,
5411,
727,
13264,
16612,
273,
1794,
18,
588,
6207,
6120,
5621,
5411,
16612,
18,
542,
5694,
12,
18090,
18,
92,
397,
1831,
6120,
18,
92,
300,
425,
18,
588,
60,
9334,
7682,
16612,
18,
93,
397,
1831,
6120,
18,
93,
300,
425,
18,
588,
61,
9334,
7682,
16612,
18,
2819,
16,
7682,
16612,
18,
4210,
1769,
5411,
26145,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
7734,
288,
10792,
1071,
918,
1086,
1832,
10792,
288,
13491,
1794,
18,
12033,
6120,
774,
6207,
12,
18090,
1769,
10792,
289,
7734,
15549,
3639,
289,
469,
309,
261,
291,
54,
373,
744,
59,
970,
329,
12,
73,
3719,
288,
5411,
368,
4901,
18,
1376,
2932,
11047,
310,
11845,
8863,
5411,
1089,
1225,
12,
73,
1769,
5411,
309,
261,
11697,
7187,
480,
446,
13,
288,
7734,
7644,
7187,
18,
2607,
4341,
7416,
12,
73,
16,
4917,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
11728,
2423,
261,
9186,
1133,
425,
13,
565,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
11697,
11728,
2423,
8863,
3639,
289,
3639,
309,
261,
291,
11728,
59,
970,
329,
12,
73,
3719,
288,
5411,
368,
4901,
18,
1376,
2932,
11728,
1998,
8863,
5411,
727,
13264,
16612,
273,
1794,
18,
588,
6207,
6120,
5621,
5411,
16612,
18,
542,
5694,
12,
18090,
18,
92,
397,
1831,
6120,
18,
92,
300,
425,
18,
588,
60,
9334,
7682,
16612,
18,
93,
397,
1831,
6120,
18,
93,
300,
425,
18,
588,
61,
9334,
7682,
16612,
18,
2819,
16,
7682,
16612,
18,
4210,
1769,
5411,
26145,
11864,
18,
14407,
20607,
12,
2704,
2
] |
|
Set done = new HashSet(); hessianClean(obj, done);
|
Object clean(Object obj) { if (!Hibernate.isInitialized(obj)) { throw new IllegalStateException( "If the return object is not initialized then we can't send it."); } Set done = new HashSet(); hessianClean(obj, done); return obj; }
|
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
2721,
12,
921,
1081,
13,
288,
3639,
309,
16051,
44,
24360,
18,
291,
11459,
12,
2603,
3719,
288,
5411,
604,
394,
5477,
12,
10792,
315,
2047,
326,
327,
733,
353,
486,
6454,
1508,
732,
848,
1404,
1366,
518,
1199,
1769,
3639,
289,
3639,
1000,
2731,
273,
394,
6847,
5621,
3639,
366,
20529,
7605,
12,
2603,
16,
2731,
1769,
3639,
327,
1081,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
2721,
12,
921,
1081,
13,
288,
3639,
309,
16051,
44,
24360,
18,
291,
11459,
12,
2603,
3719,
288,
5411,
604,
394,
5477,
12,
10792,
315,
2047,
326,
327,
733,
353,
486,
6454,
1508,
732,
848,
1404,
1366,
518,
1199,
1769,
3639,
289,
3639,
1000,
2731,
273,
394,
6847,
5621,
3639,
366,
20529,
7605,
12,
2603,
16,
2731,
1769,
3639,
327,
1081,
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
] |
|
TestRenParticleGUI.manager.getEmissionDirection().y = (float) val *
|
TestRenParticleGUI.manager.getEmissionDirection().z = (float) val *
|
public void stateChanged(ChangeEvent e) { int val = emitYSlider.getValue(); if (TestRenParticleGUI.manager != null) { TestRenParticleGUI.manager.getEmissionDirection().y = (float) val * .1f; TestRenParticleGUI.manager.updateRotationMatrix(); } regenCode(); }
|
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/e9e48f984e9d093e357e082864abd8d6323130d8/RenParticleControlFrame.java/clean/src/jmetest/effects/RenParticleControlFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
919,
5033,
12,
20930,
425,
13,
288,
3639,
509,
1244,
273,
3626,
61,
21824,
18,
24805,
5621,
3639,
309,
261,
4709,
16290,
1988,
3711,
43,
5370,
18,
4181,
480,
446,
13,
288,
1850,
7766,
16290,
1988,
3711,
43,
5370,
18,
4181,
18,
588,
1514,
19710,
8212,
7675,
94,
273,
261,
5659,
13,
1244,
380,
2868,
263,
21,
74,
31,
1850,
7766,
16290,
1988,
3711,
43,
5370,
18,
4181,
18,
2725,
14032,
4635,
5621,
3639,
289,
3639,
960,
275,
1085,
5621,
1377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
919,
5033,
12,
20930,
425,
13,
288,
3639,
509,
1244,
273,
3626,
61,
21824,
18,
24805,
5621,
3639,
309,
261,
4709,
16290,
1988,
3711,
43,
5370,
18,
4181,
480,
446,
13,
288,
1850,
7766,
16290,
1988,
3711,
43,
5370,
18,
4181,
18,
588,
1514,
19710,
8212,
7675,
94,
273,
261,
5659,
13,
1244,
380,
2868,
263,
21,
74,
31,
1850,
7766,
16290,
1988,
3711,
43,
5370,
18,
4181,
18,
2725,
14032,
4635,
5621,
3639,
289,
3639,
960,
275,
1085,
5621,
1377,
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
] |
Assert.assert(-1 != nativeWebShell);
|
Assert.assert_it(-1 != nativeWebShell);
|
public void back(){ myFactory.throwExceptionIfNotInitialized(); Assert.assert(-1 != nativeWebShell); synchronized(myBrowserControl) { nativeBack(nativeWebShell); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/0e30fa38c30ae26743aee09175fac1e8146c075a/HistoryImpl.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/HistoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1473,
1435,
95,
565,
3399,
1733,
18,
12849,
503,
10288,
11459,
5621,
565,
5452,
18,
11231,
67,
305,
19236,
21,
480,
6448,
4079,
13220,
1769,
565,
3852,
12,
4811,
9132,
3367,
13,
288,
3639,
6448,
2711,
12,
13635,
4079,
13220,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
1473,
1435,
95,
565,
3399,
1733,
18,
12849,
503,
10288,
11459,
5621,
565,
5452,
18,
11231,
67,
305,
19236,
21,
480,
6448,
4079,
13220,
1769,
565,
3852,
12,
4811,
9132,
3367,
13,
288,
3639,
6448,
2711,
12,
13635,
4079,
13220,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return "model/org.eclipse.cdt.core.model.tests.resources/";
|
return "model/org/eclipse/cdt/core/model/tests/resources/cmodel/";
|
public String getSourcefileSubdir() { return "model/org.eclipse.cdt.core.model.tests.resources/"; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d45de32ff5fcec052d8908b93f9c7324897b3185/IIncludeTests.java/clean/core/org.eclipse.cdt.ui.tests/model/org/eclipse/cdt/core/model/tests/IIncludeTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7889,
768,
1676,
1214,
1435,
288,
202,
202,
2463,
315,
2284,
19,
3341,
18,
20416,
18,
4315,
88,
18,
3644,
18,
2284,
18,
16341,
18,
4683,
4898,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7889,
768,
1676,
1214,
1435,
288,
202,
202,
2463,
315,
2284,
19,
3341,
18,
20416,
18,
4315,
88,
18,
3644,
18,
2284,
18,
16341,
18,
4683,
4898,
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
] |
30 );
|
30 );
|
public void testRestract() { final PropagationContext context = new PropagationContextImpl( 0, PropagationContext.ASSERTION, null, null ); final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( 1, (ReteooRuleBase) RuleBaseFactory.newRuleBase() ); final ClassFieldExtractor extractor = new ClassFieldExtractor( Cheese.class, "type" ); final FieldValue field = new MockField( "stilton" ); final LiteralConstraint constraint = new LiteralConstraint( extractor, ValueType.STRING_TYPE.getEvaluator( Operator.EQUAL ), field ); List list = new ArrayList(); final Cheese cheese1 = new Cheese( "stilton", 5 ); final Cheese cheese2 = new Cheese( "stilton", 15 ); list.add( cheese1 ); list.add( cheese2 ); final MockDataProvider dataProvider = new MockDataProvider( list ); final FromNode from = new FromNode( 3, dataProvider, null, new AlphaNodeFieldConstraint[]{constraint}, null ); final MockTupleSink sink = new MockTupleSink( 5 ); from.addTupleSink( sink ); final List asserted = sink.getAsserted(); final Person person1 = new Person( "xxx2", 30 ); final FactHandle person1Handle = workingMemory.assertObject( person1 ); final ReteTuple tuple = new ReteTuple( (DefaultFactHandle) person1Handle ); from.assertTuple( tuple, context, workingMemory ); assertEquals( 2, asserted.size() ); final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( from ); assertEquals( 1, memory.getLeftTupleMemory().size() ); assertEquals( 0, memory.getRightObjectMemory().size() ); assertEquals( 2, tuple.getTupleMatches().size() ); list = new ArrayList(); for ( final Iterator it = tuple.getTupleMatches().values().iterator(); it.hasNext(); ) { TupleMatch tupleMatch = (TupleMatch) it.next(); list.add( tupleMatch.getObjectMatches().getFactHandle().getObject() ); } assertEquals( 2, list.size() ); assertTrue( list.contains( cheese1 ) ); assertTrue( list.contains( cheese2 ) ); from.retractTuple( tuple, context, workingMemory ); assertEquals( 0, memory.getLeftTupleMemory().size() ); assertEquals( 0, memory.getRightObjectMemory().size() ); }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/ac10f01b49a1ea717303a4a6f8485b098ee10637/FromNodeTest.java/buggy/drools-core/src/test/java/org/drools/reteoo/FromNodeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
607,
1575,
1435,
288,
3639,
727,
1186,
9095,
367,
1042,
819,
273,
394,
1186,
9095,
367,
1042,
2828,
12,
374,
16,
28524,
4202,
1186,
9095,
367,
1042,
18,
8423,
11539,
1146,
16,
28524,
4202,
446,
16,
28524,
4202,
446,
11272,
3639,
727,
17100,
4361,
83,
14836,
6031,
5960,
6031,
273,
394,
17100,
4361,
83,
14836,
6031,
12,
404,
16,
28524,
6647,
261,
7055,
4361,
83,
2175,
2171,
13,
6781,
2171,
1733,
18,
2704,
2175,
2171,
1435,
11272,
3639,
727,
1659,
974,
10958,
14031,
273,
394,
1659,
974,
10958,
12,
22682,
3392,
18,
1106,
16,
28524,
4202,
315,
723,
6,
11272,
3639,
727,
2286,
620,
652,
273,
394,
7867,
974,
12,
315,
334,
330,
1917,
6,
11272,
3639,
727,
14392,
5806,
4954,
273,
394,
14392,
5806,
12,
14031,
16,
28524,
565,
31718,
18,
5804,
67,
2399,
18,
588,
15876,
12,
11097,
18,
12853,
262,
16,
28524,
565,
652,
11272,
3639,
987,
666,
273,
394,
2407,
5621,
3639,
727,
22682,
3392,
19315,
3392,
21,
273,
394,
22682,
3392,
12,
315,
334,
330,
1917,
3113,
19694,
1381,
11272,
3639,
727,
22682,
3392,
19315,
3392,
22,
273,
394,
22682,
3392,
12,
315,
334,
330,
1917,
3113,
19694,
4711,
11272,
3639,
666,
18,
1289,
12,
19315,
3392,
21,
11272,
3639,
666,
18,
1289,
12,
19315,
3392,
22,
11272,
3639,
727,
7867,
20757,
14383,
273,
394,
7867,
20757,
12,
666,
11272,
3639,
727,
6338,
907,
628,
273,
394,
6338,
907,
12,
890,
16,
4766,
1377,
14383,
16,
4766,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
607,
1575,
1435,
288,
3639,
727,
1186,
9095,
367,
1042,
819,
273,
394,
1186,
9095,
367,
1042,
2828,
12,
374,
16,
28524,
4202,
1186,
9095,
367,
1042,
18,
8423,
11539,
1146,
16,
28524,
4202,
446,
16,
28524,
4202,
446,
11272,
3639,
727,
17100,
4361,
83,
14836,
6031,
5960,
6031,
273,
394,
17100,
4361,
83,
14836,
6031,
12,
404,
16,
28524,
6647,
261,
7055,
4361,
83,
2175,
2171,
13,
6781,
2171,
1733,
18,
2704,
2175,
2171,
1435,
11272,
3639,
727,
1659,
974,
10958,
14031,
273,
394,
1659,
974,
10958,
12,
22682,
3392,
18,
1106,
16,
28524,
4202,
315,
723,
6,
11272,
3639,
727,
2286,
620,
652,
273,
394,
7867,
974,
12,
315,
334,
330,
1917,
6,
2
] |
Fill flBackground = are.getBackground( );
|
Fill flBackground = validateMultipleFill( are.getBackground( ) );
|
public void fillArc( ArcRenderEvent are ) throws ChartException { Fill flBackground = are.getBackground( ); if ( isFullTransparent( flBackground ) ) { return; } if ( are.getInnerRadius( ) >= 0 && ( are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) || ( are.getInnerRadius( ) > 0 && are.getOuterRadius( ) <= 0 ) ) { Bounds bo = BoundsImpl.create( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ) ); Bounds rctOuter, rctInner; if ( are.getOuterRadius( ) > 0 ) { rctOuter = BoundsImpl.create( ( ( bo.getLeft( ) + dTranslateX + ( bo.getWidth( ) / 2d - are.getOuterRadius( ) ) ) * dScale ), ( ( bo.getTop( ) + dTranslateY + ( bo.getHeight( ) / 2d - are.getOuterRadius( ) ) ) * dScale ), ( 2 * are.getOuterRadius( ) * dScale ), ( 2 * are.getOuterRadius( ) * dScale ) ); } else { rctOuter = BoundsImpl.create( ( ( bo.getLeft( ) + dTranslateX ) * dScale ), ( ( bo.getTop( ) + dTranslateY ) * dScale ), ( bo.getWidth( ) * dScale ), ( bo.getHeight( ) * dScale ) ); } if ( are.getInnerRadius( ) > 0 ) { rctInner = BoundsImpl.create( ( ( bo.getLeft( ) + dTranslateX + ( bo.getWidth( ) / 2d - are.getInnerRadius( ) ) ) * dScale ), ( ( bo.getTop( ) + dTranslateY + ( bo.getHeight( ) / 2d - are.getInnerRadius( ) ) ) * dScale ), ( 2 * are.getInnerRadius( ) * dScale ), ( 2 * are.getInnerRadius( ) * dScale ) ); } else { rctInner = BoundsImpl.create( ( ( bo.getLeft( ) + dTranslateX + bo.getWidth( ) / 2d ) * dScale ), ( ( bo.getTop( ) + dTranslateY + bo.getHeight( ) / 2d ) * dScale ), 0, 0 ); } double startAngle = Math.toRadians( -are.getStartAngle( ) ); double stopAngle = Math.toRadians( -are.getStartAngle( ) - are.getAngleExtent( ) ); double xsOuter = ( rctOuter.getLeft( ) + ( Math.cos( startAngle ) * 0.5 + 0.5 ) * rctOuter.getWidth( ) ); double ysOuter = ( rctOuter.getTop( ) + ( Math.sin( startAngle ) * 0.5 + 0.5 ) * rctOuter.getHeight( ) ); double xeInner = ( rctInner.getLeft( ) + ( Math.cos( stopAngle ) * 0.5 + 0.5 ) * rctInner.getWidth( ) ); double yeInner = ( rctInner.getTop( ) + ( Math.sin( stopAngle ) * 0.5 + 0.5 ) * rctInner.getHeight( ) ); Path pt = new Path( ( (SwtDisplayServer) _ids ).getDevice( ) ); pt.addArc( (float) rctOuter.getLeft( ), (float) rctOuter.getTop( ), (float) rctOuter.getWidth( ), (float) rctOuter.getHeight( ), (float) are.getStartAngle( ), (float) are.getAngleExtent( ) ); pt.lineTo( (float) xeInner, (float) yeInner ); pt.addArc( (float) rctInner.getLeft( ), (float) rctInner.getTop( ), (float) rctInner.getWidth( ), (float) rctInner.getHeight( ), (float) ( are.getStartAngle( ) + are.getAngleExtent( ) ), (float) -are.getAngleExtent( ) ); pt.lineTo( (float) xsOuter, (float) ysOuter ); if ( flBackground instanceof ColorDefinition ) { final ColorDefinition cd = (ColorDefinition) flBackground; // skip full transparency for optimization. if ( !( cd.isSetTransparency( ) && cd.getTransparency( ) == 0 ) ) { final Color cBG = (Color) _ids.getColor( cd ); final Color cPreviousBG = _gc.getBackground( ); _gc.setBackground( cBG ); R31Enhance.setAlpha( _gc, cd ); _gc.fillPath( pt ); cBG.dispose( ); _gc.setBackground( cPreviousBG ); } } else if ( flBackground instanceof Gradient || flBackground instanceof org.eclipse.birt.chart.model.attribute.Image ) { Region previousClipping = new Region( ); _gc.getClipping( previousClipping ); // TODO intersect previous clipping with current path. _gc.setClipping( pt ); RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) this ).getEventObject( are.getSource( ), RectangleRenderEvent.class ); rre.setBackground( are.getBackground( ) ); try { rre.setBounds( are.getBounds( ) ); rre.setOutline( are.getOutline( ) ); fillRectangle( rre ); } catch ( ChartException ufex ) { pt.dispose( ); throw new ChartException( ChartDeviceSwtActivator.ID, ChartException.RENDERING, ufex ); } finally { _gc.setClipping( previousClipping ); previousClipping.dispose( ); } } pt.dispose( ); } else { if ( are.getStyle( ) == ArcRenderEvent.SECTOR || ( are.getStyle( ) == ArcRenderEvent.CLOSED && Math.abs( are.getAngleExtent( ) ) >= 360 ) ) { if ( flBackground instanceof ColorDefinition ) { final ColorDefinition cd = (ColorDefinition) flBackground; // skip full transparency for optimization. if ( !( cd.isSetTransparency( ) && cd.getTransparency( ) == 0 ) ) { final Color cBG = (Color) _ids.getColor( cd ); final Color cPreviousBG = _gc.getBackground( ); _gc.setBackground( cBG ); R31Enhance.setAlpha( _gc, cd ); _gc.fillArc( (int) ( ( are.getTopLeft( ).getX( ) + dTranslateX ) * dScale ), (int) ( ( are.getTopLeft( ).getY( ) + dTranslateY ) * dScale ), (int) ( are.getWidth( ) * dScale ), (int) ( are.getHeight( ) * dScale ), (int) are.getStartAngle( ), (int) are.getAngleExtent( ) ); cBG.dispose( ); _gc.setBackground( cPreviousBG ); } } else if ( flBackground instanceof Gradient || flBackground instanceof org.eclipse.birt.chart.model.attribute.Image ) { double xc = ( ( are.getTopLeft( ).getX( ) + dTranslateX + are.getWidth( ) / 2d ) * dScale ); double yc = ( ( are.getTopLeft( ).getY( ) + dTranslateY + are.getHeight( ) / 2d ) * dScale ); double xs = 0, ys = 0; double angle = Math.toRadians( -are.getStartAngle( ) ); xs = ( ( are.getTopLeft( ).getX( ) + dTranslateX + ( Math.cos( angle ) * 0.5 + 0.5 ) * are.getWidth( ) ) * dScale ); ys = ( ( are.getTopLeft( ).getY( ) + dTranslateY + ( Math.sin( angle ) * 0.5 + 0.5 ) * are.getHeight( ) ) * dScale ); Path pt = new Path( ( (SwtDisplayServer) _ids ).getDevice( ) ); if ( are.getStyle( ) == ArcRenderEvent.CLOSED ) { pt.addArc( (float) ( ( are.getTopLeft( ).getX( ) + dTranslateX ) * dScale ), (float) ( ( are.getTopLeft( ).getY( ) + dTranslateY ) * dScale ), (float) ( are.getWidth( ) * dScale ), (float) ( are.getHeight( ) * dScale ), (float) are.getStartAngle( ), (float) are.getAngleExtent( ) ); pt.lineTo( (float) xs, (float) ys ); } else if ( are.getStyle( ) == ArcRenderEvent.SECTOR ) { pt.addArc( (float) ( ( are.getTopLeft( ).getX( ) + dTranslateX ) * dScale ), (float) ( ( are.getTopLeft( ).getY( ) + dTranslateY ) * dScale ), (float) ( are.getWidth( ) * dScale ), (float) ( are.getHeight( ) * dScale ), (float) are.getStartAngle( ), (float) are.getAngleExtent( ) ); pt.lineTo( (float) xc, (float) yc ); pt.lineTo( (float) xs, (float) ys ); } Region previousClipping = new Region( ); _gc.getClipping( previousClipping ); // TODO intersect previous clipping with current path. _gc.setClipping( pt ); RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) this ).getEventObject( are.getSource( ), RectangleRenderEvent.class ); rre.setBackground( are.getBackground( ) ); try { rre.setBounds( are.getBounds( ) ); rre.setOutline( are.getOutline( ) ); fillRectangle( rre ); } catch ( ChartException ufex ) { throw new ChartException( ChartDeviceSwtActivator.ID, ChartException.RENDERING, ufex ); } finally { _gc.setClipping( previousClipping ); previousClipping.dispose( ); pt.dispose( ); } } return; } // Extra fix due to SWT arc rendering limitation. if ( are.getStyle( ) == ArcRenderEvent.OPEN || are.getStyle( ) == ArcRenderEvent.CLOSED ) { double angle = Math.toRadians( -are.getStartAngle( ) ); double xs = ( ( are.getTopLeft( ).getX( ) + dTranslateX + ( Math.cos( angle ) * 0.5 + 0.5 ) * are.getWidth( ) ) * dScale ); double ys = ( ( are.getTopLeft( ).getY( ) + dTranslateY + ( Math.sin( angle ) * 0.5 + 0.5 ) * are.getHeight( ) ) * dScale ); Path pt = new Path( ( (SwtDisplayServer) _ids ).getDevice( ) ); pt.addArc( (float) ( ( are.getTopLeft( ).getX( ) + dTranslateX ) * dScale ), (float) ( ( are.getTopLeft( ).getY( ) + dTranslateY ) * dScale ), (float) ( are.getWidth( ) * dScale ), (float) ( are.getHeight( ) * dScale ), (float) are.getStartAngle( ), (float) are.getAngleExtent( ) ); pt.lineTo( (float) xs, (float) ys ); if ( flBackground instanceof ColorDefinition ) { final ColorDefinition cd = (ColorDefinition) flBackground; // skip full transparency for optimization. if ( !( cd.isSetTransparency( ) && cd.getTransparency( ) == 0 ) ) { final Color cBG = (Color) _ids.getColor( cd ); final Color cPreviousBG = _gc.getBackground( ); _gc.setBackground( cBG ); R31Enhance.setAlpha( _gc, cd ); _gc.fillPath( pt ); cBG.dispose( ); _gc.setBackground( cPreviousBG ); } } else if ( flBackground instanceof Gradient || flBackground instanceof org.eclipse.birt.chart.model.attribute.Image ) { Region previousClipping = new Region( ); _gc.getClipping( previousClipping ); // TODO intersect previous clipping with current path. _gc.setClipping( pt ); RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) this ).getEventObject( are.getSource( ), RectangleRenderEvent.class ); rre.setBackground( are.getBackground( ) ); try { rre.setBounds( are.getBounds( ) ); rre.setOutline( are.getOutline( ) ); fillRectangle( rre ); } catch ( ChartException ufex ) { pt.dispose( ); throw new ChartException( ChartDeviceSwtActivator.ID, ChartException.RENDERING, ufex ); } finally { _gc.setClipping( previousClipping ); previousClipping.dispose( ); } } pt.dispose( ); } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/20bb7679d106e8105100c095c900612d5a37a46d/SwtRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
14598,
12,
24881,
3420,
1133,
854,
262,
1216,
14804,
503,
202,
95,
202,
202,
8026,
1183,
8199,
273,
854,
18,
588,
8199,
12,
11272,
202,
202,
430,
261,
29232,
1429,
2938,
12,
1183,
8199,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
854,
18,
588,
2857,
10196,
12,
262,
1545,
374,
9506,
202,
10,
10,
261,
854,
18,
588,
15040,
10196,
12,
262,
405,
374,
597,
854,
18,
588,
2857,
10196,
12,
262,
411,
854,
18,
588,
15040,
10196,
12,
262,
262,
9506,
202,
20081,
261,
854,
18,
588,
2857,
10196,
12,
262,
405,
374,
597,
854,
18,
588,
15040,
10196,
12,
262,
1648,
374,
262,
262,
202,
202,
95,
1082,
202,
5694,
800,
273,
20382,
2828,
18,
2640,
12,
854,
18,
588,
3401,
3910,
12,
262,
18,
588,
60,
12,
262,
16,
6862,
202,
834,
18,
588,
3401,
3910,
12,
262,
18,
588,
61,
12,
262,
16,
6862,
202,
834,
18,
588,
2384,
12,
262,
16,
6862,
202,
834,
18,
588,
2686,
12,
262,
11272,
1082,
202,
5694,
436,
299,
15040,
16,
436,
299,
2857,
31,
1082,
202,
430,
261,
854,
18,
588,
15040,
10196,
12,
262,
405,
374,
262,
1082,
202,
95,
9506,
202,
86,
299,
15040,
273,
20382,
2828,
18,
2640,
12,
261,
261,
800,
18,
588,
3910,
12,
262,
397,
302,
12818,
60,
397,
261,
800,
18,
588,
2384,
12,
262,
342,
576,
72,
300,
854,
18,
588,
15040,
10196,
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,
3636,
14598,
12,
24881,
3420,
1133,
854,
262,
1216,
14804,
503,
202,
95,
202,
202,
8026,
1183,
8199,
273,
854,
18,
588,
8199,
12,
11272,
202,
202,
430,
261,
29232,
1429,
2938,
12,
1183,
8199,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
854,
18,
588,
2857,
10196,
12,
262,
1545,
374,
9506,
202,
10,
10,
261,
854,
18,
588,
15040,
10196,
12,
262,
405,
374,
597,
854,
18,
588,
2857,
10196,
12,
262,
411,
854,
18,
588,
15040,
10196,
12,
262,
262,
9506,
202,
20081,
261,
854,
18,
588,
2857,
10196,
12,
262,
405,
374,
597,
854,
18,
588,
15040,
10196,
12,
262,
1648,
374,
262,
2
] |
public static CachedUrlSet findAUCachedUrlSet(String url) {
|
public CachedUrlSet findAUCachedUrlSet(String url) {
|
public static CachedUrlSet findAUCachedUrlSet(String url) { ArchivalUnit au = findArchivalUnit(url); if (au == null) { return null; } return au.getAUCachedUrlSet(); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/791b5cca75536f160ce06c9f90f61d6370c6faba/PluginManager.java/clean/src/org/lockss/plugin/PluginManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15771,
1489,
694,
1104,
14237,
9839,
1489,
694,
12,
780,
880,
13,
288,
565,
16959,
5162,
2802,
20309,
273,
1104,
12269,
5162,
2802,
12,
718,
1769,
565,
309,
261,
8377,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
327,
20309,
18,
588,
14237,
9839,
1489,
694,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15771,
1489,
694,
1104,
14237,
9839,
1489,
694,
12,
780,
880,
13,
288,
565,
16959,
5162,
2802,
20309,
273,
1104,
12269,
5162,
2802,
12,
718,
1769,
565,
309,
261,
8377,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
327,
20309,
18,
588,
14237,
9839,
1489,
694,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (parentJob.getJobMeta().isBatchIdPassed()) { transMeta.setJobBatchId(parentJob.getJobMeta().getBatchId()); }
|
public Result execute(Result result, int nr, Repository rep, Job parentJob) throws KettleException { LogWriter log = LogWriter.getInstance(); result.setEntryNr( nr ); LogWriter logwriter = log; Log4jFileAppender appender = null; int backupLogLevel = log.getLogLevel(); if (setLogfile) { try { appender = LogWriter.createFileAppender(getLogFilename(), true); } catch(KettleException e) { log.logError(toString(), "Unable to open file appender for file ["+getLogFilename()+"] : "+e.toString()); log.logError(toString(), Const.getStackTracker(e)); result.setNrErrors(1); result.setResult(false); return result; } log.addAppender(appender); log.setLogLevel(loglevel); } // Open the transformation... // Default directory for now... log.logBasic(toString(), "Opening filename : ["+StringUtil.environmentSubstitute(getFileName())+"]"); if (!Const.isEmpty(getFileName())) { log.logBasic(toString(), "Opening transformation: ["+StringUtil.environmentSubstitute(getFileName())+"]"); } else { log.logBasic(toString(), "Opening transformation: ["+StringUtil.environmentSubstitute(getTransname())+"] in directory ["+directory.getPath()+"]"); } int iteration = 0; String args[] = arguments; Row resultRow = null; boolean first = true; List rows = result.getRows(); while( ( first && !execPerRow ) || ( execPerRow && rows!=null && iteration<rows.size() && result.getNrErrors()==0 ) && !parentJob.isStopped() ) { first=false; if (rows!=null && execPerRow) { resultRow = (Row) rows.get(iteration); } else { resultRow = null; } try { log.logDetailed(toString(), "Starting transformation...(file="+getFileName()+", name="+getName()+"), repinfo="+getDescription()); TransMeta transMeta = getTransMeta(rep); if (parentJob.getJobMeta().isBatchIdPassed()) { transMeta.setJobBatchId(parentJob.getJobMeta().getBatchId()); } // Create the transformation from meta-data Trans trans = new Trans(logwriter, transMeta); // Set the result rows for the next one... trans.getTransMeta().setPreviousResult(result); if (clearResultRows) { trans.getTransMeta().getPreviousResult().setRows(new ArrayList()); } if (clearResultFiles) { trans.getTransMeta().getPreviousResult().getResultFiles().clear(); } // set the parent job on the transformation, variables are taken from here... trans.setParentJob(parentJob); /* * Set one or more "result" rows on the transformation... */ if (execPerRow) // Execute for each input row { if (argFromPrevious) // Copy the input row to the (command line) arguments { args = null; if (resultRow!=null) { args = new String[resultRow.size()]; for (int i=0;i<resultRow.size();i++) { args[i] = resultRow.getValue(i).getString(); } } } else { // Just pass a single row ArrayList newList = new ArrayList(); newList.add(resultRow); // This previous result rows list can be either empty or not. // Depending on the checkbox "clear result rows" // In this case, it would execute the transformation with one extra row each time // Can't figure out a real use-case for it, but hey, who am I to decide that, right? // :-) // trans.getTransMeta().getPreviousResult().getRows().addAll(newList); } } else { if (argFromPrevious) { // Only put the first Row on the arguments args = null; if (resultRow!=null) { args = new String[resultRow.size()]; for (int i=0;i<resultRow.size();i++) { args[i] = resultRow.getValue(i).toString(); } } } } // Execute! if (!trans.execute(args)) { log.logError(toString(), "Unable to prepare for execution of the transformation"); result.setNrErrors(1); } else { while (!trans.isFinished() && !parentJob.isStopped() && trans.getErrors() == 0) { try { Thread.sleep(100);} catch(InterruptedException e) { } } if (parentJob.isStopped() || trans.getErrors() != 0) { trans.stopAll(); trans.waitUntilFinished(); trans.endProcessing("stop"); result.setNrErrors(1); } else { trans.endProcessing("end"); } Result newResult = trans.getResult(); result.clear(); // clear only the numbers, NOT the files or rows. result.add(newResult); // Set the result rows too... result.setRows(newResult.getRows()); if (setLogfile) { ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_LOG, new File(getLogFilename()), parentJob.getName(), toString()); result.getResultFiles().add(resultFile); } } } catch(KettleException e) { log.logError(toString(), "Unable to open transformation: "+e.getMessage()); result.setNrErrors(1); } iteration++; } if (setLogfile) { if (appender!=null) { log.removeAppender(appender); appender.close(); } log.setLogLevel(backupLogLevel); } if (result.getNrErrors()==0) { result.setResult( true ); } else { result.setResult( false ); } return result; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/f9456f81f4a30ea0052cbf9b244eda06676ff660/JobEntryTrans.java/buggy/kettle/src/be/ibridge/kettle/job/entry/trans/JobEntryTrans.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3438,
1836,
12,
1253,
563,
16,
509,
9884,
16,
6281,
2071,
16,
3956,
982,
2278,
13,
1216,
1475,
278,
5929,
503,
202,
95,
202,
202,
1343,
2289,
613,
4202,
273,
1827,
2289,
18,
588,
1442,
5621,
202,
202,
2088,
18,
542,
1622,
18726,
12,
9884,
11272,
202,
202,
1343,
2289,
613,
6299,
273,
613,
31,
3639,
1827,
24,
78,
812,
17302,
17405,
273,
446,
31,
3639,
509,
5114,
21806,
273,
613,
18,
588,
21806,
5621,
3639,
309,
261,
542,
1343,
768,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
17405,
273,
1827,
2289,
18,
2640,
812,
17302,
12,
588,
1343,
5359,
9334,
638,
1769,
5411,
289,
5411,
1044,
12,
47,
278,
5929,
503,
425,
13,
5411,
288,
7734,
613,
18,
1330,
668,
12,
10492,
9334,
315,
3370,
358,
1696,
585,
17405,
364,
585,
8247,
15,
588,
1343,
5359,
1435,
9078,
65,
294,
13773,
73,
18,
10492,
10663,
7734,
613,
18,
1330,
668,
12,
10492,
9334,
9333,
18,
588,
2624,
8135,
12,
73,
10019,
7734,
563,
18,
542,
18726,
4229,
12,
21,
1769,
7734,
563,
18,
542,
1253,
12,
5743,
1769,
7734,
327,
563,
31,
5411,
289,
5411,
613,
18,
1289,
17302,
12,
6923,
264,
1769,
5411,
613,
18,
542,
21806,
12,
28189,
1769,
3639,
289,
9506,
202,
759,
3502,
326,
8620,
2777,
202,
202,
759,
2989,
1867,
364,
2037,
2777,
1082,
3639,
613,
18,
1330,
8252,
12,
10492,
9334,
315,
21378,
1544,
294,
8247,
15,
13565,
18,
10274,
1676,
17207,
12,
588,
4771,
10756,
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,
3438,
1836,
12,
1253,
563,
16,
509,
9884,
16,
6281,
2071,
16,
3956,
982,
2278,
13,
1216,
1475,
278,
5929,
503,
202,
95,
202,
202,
1343,
2289,
613,
4202,
273,
1827,
2289,
18,
588,
1442,
5621,
202,
202,
2088,
18,
542,
1622,
18726,
12,
9884,
11272,
202,
202,
1343,
2289,
613,
6299,
273,
613,
31,
3639,
1827,
24,
78,
812,
17302,
17405,
273,
446,
31,
3639,
509,
5114,
21806,
273,
613,
18,
588,
21806,
5621,
3639,
309,
261,
542,
1343,
768,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
17405,
273,
1827,
2289,
18,
2640,
812,
17302,
12,
588,
1343,
5359,
9334,
638,
1769,
5411,
289,
5411,
1044,
12,
47,
278,
5929,
503,
425,
13,
5411,
2
] |
|
ICProject cproject = createCProject(projectName, binFolderName); if (!cproject.getProject().hasNature(CCProjectNature.CC_NATURE_ID)) { addNatureToProject(cproject.getProject(), CCProjectNature.CC_NATURE_ID, null);
|
IWorkspaceRoot root = ws.getRoot(); IProject project = root.getProject(projectName); if (!project.exists()) { project.create(null); } else { project.refreshLocal(IResource.DEPTH_INFINITE, null);
|
public void run(IProgressMonitor monitor) throws CoreException { ICProject cproject = createCProject(projectName, binFolderName); if (!cproject.getProject().hasNature(CCProjectNature.CC_NATURE_ID)) { addNatureToProject(cproject.getProject(), CCProjectNature.CC_NATURE_ID, null); } newProject[0] = cproject; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ff384fe5c5a7eec8c1add09d9f8e632a86046627/CProjectHelper.java/clean/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/CProjectHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
2871,
4109,
276,
4406,
273,
752,
39,
4109,
12,
4406,
461,
16,
4158,
26169,
1769,
9506,
202,
430,
16051,
71,
4406,
18,
588,
4109,
7675,
5332,
50,
1231,
12,
6743,
4109,
50,
1231,
18,
6743,
67,
50,
10511,
67,
734,
3719,
288,
6862,
202,
1289,
50,
1231,
774,
4109,
12,
71,
4406,
18,
588,
4109,
9334,
16525,
4109,
50,
1231,
18,
6743,
67,
50,
10511,
67,
734,
16,
446,
1769,
9506,
202,
97,
9506,
202,
2704,
4109,
63,
20,
65,
273,
276,
4406,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
9506,
202,
2871,
4109,
276,
4406,
273,
752,
39,
4109,
12,
4406,
461,
16,
4158,
26169,
1769,
9506,
202,
430,
16051,
71,
4406,
18,
588,
4109,
7675,
5332,
50,
1231,
12,
6743,
4109,
50,
1231,
18,
6743,
67,
50,
10511,
67,
734,
3719,
288,
6862,
202,
1289,
50,
1231,
774,
4109,
12,
71,
4406,
18,
588,
4109,
9334,
16525,
4109,
50,
1231,
18,
6743,
67,
50,
10511,
67,
734,
16,
446,
1769,
9506,
202,
97,
9506,
202,
2704,
4109,
63,
20,
65,
273,
276,
4406,
31,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
p = UserProfile.getDefaultProfile();
|
p = Pooka.getPookaManager().getUserProfileManager().getDefaultProfile();
|
public void bounceMessage(Address[] recipientList) throws javax.mail.MessagingException { MimeMessage mm = (MimeMessage)getMessage(); MimeMessage mmClone = new MimeMessage(mm); NewMessageInfo nmi = new NewMessageInfo(mmClone); net.suberic.pooka.gui.NewMessageProxy nmp = new net.suberic.pooka.gui.NewMessageProxy(nmi); java.util.HashMap messageMap = new java.util.HashMap(); messageMap.put(mmClone, recipientList); nmi.setSendMessageMap(messageMap); final NewMessageInfo final_nmi = nmi; UserProfile p = getDefaultProfile(); if (p == null) p = UserProfile.getDefaultProfile(); if (p != null && p.getMailServer() != null) { final OutgoingMailServer mailServer = p.getMailServer(); mailServer.mailServerThread.addToQueue(new javax.swing.AbstractAction() { public void actionPerformed(java.awt.event.ActionEvent ae) { mailServer.sendMessage(final_nmi); } }, new java.awt.event.ActionEvent(this, 0, "message-send")); } }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/eba4754e181da5f635bb3188eeb5f7e3b49a9834/MessageInfo.java/buggy/src/net/suberic/pooka/MessageInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
324,
8386,
1079,
12,
1887,
8526,
8027,
682,
13,
1216,
6863,
18,
4408,
18,
23389,
503,
288,
565,
22059,
1079,
9740,
273,
261,
13320,
1079,
13,
24906,
5621,
565,
22059,
1079,
9740,
10930,
273,
394,
22059,
1079,
12,
7020,
1769,
3639,
1166,
1079,
966,
8442,
77,
273,
394,
1166,
1079,
966,
12,
7020,
10930,
1769,
565,
2901,
18,
1717,
3036,
18,
84,
1184,
69,
18,
20292,
18,
1908,
1079,
3886,
290,
1291,
273,
394,
2901,
18,
1717,
3036,
18,
84,
1184,
69,
18,
20292,
18,
1908,
1079,
3886,
12,
82,
9197,
1769,
565,
2252,
18,
1367,
18,
8658,
883,
863,
273,
394,
2252,
18,
1367,
18,
8658,
5621,
565,
883,
863,
18,
458,
12,
7020,
10930,
16,
8027,
682,
1769,
565,
8442,
77,
18,
542,
3826,
1079,
863,
12,
2150,
863,
1769,
565,
727,
1166,
1079,
966,
727,
67,
82,
9197,
273,
8442,
77,
31,
565,
2177,
4029,
293,
273,
4829,
4029,
5621,
565,
309,
261,
84,
422,
446,
13,
1377,
293,
273,
453,
1184,
69,
18,
588,
52,
1184,
69,
1318,
7675,
588,
1299,
4029,
1318,
7675,
588,
1868,
4029,
5621,
565,
309,
261,
84,
480,
446,
597,
293,
18,
588,
6759,
2081,
1435,
480,
446,
13,
288,
1377,
727,
2976,
8162,
6759,
2081,
4791,
2081,
273,
293,
18,
588,
6759,
2081,
5621,
1377,
4791,
2081,
18,
4408,
2081,
3830,
18,
1289,
774,
3183,
12,
2704,
6863,
18,
5328,
310,
18,
7469,
1803,
1435,
288,
202,
225,
1071,
918,
26100,
12,
6290,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
324,
8386,
1079,
12,
1887,
8526,
8027,
682,
13,
1216,
6863,
18,
4408,
18,
23389,
503,
288,
565,
22059,
1079,
9740,
273,
261,
13320,
1079,
13,
24906,
5621,
565,
22059,
1079,
9740,
10930,
273,
394,
22059,
1079,
12,
7020,
1769,
3639,
1166,
1079,
966,
8442,
77,
273,
394,
1166,
1079,
966,
12,
7020,
10930,
1769,
565,
2901,
18,
1717,
3036,
18,
84,
1184,
69,
18,
20292,
18,
1908,
1079,
3886,
290,
1291,
273,
394,
2901,
18,
1717,
3036,
18,
84,
1184,
69,
18,
20292,
18,
1908,
1079,
3886,
12,
82,
9197,
1769,
565,
2252,
18,
1367,
18,
8658,
883,
863,
273,
394,
2252,
18,
1367,
18,
8658,
5621,
565,
883,
863,
18,
458,
12,
7020,
10930,
2
] |
new ConfigurableOption(componentName, "tabulation.size", locale, options.tabSize)
|
new ConfigurableOption(componentName, "tabulation.size", locale, options.tabSize), new ConfigurableOption(componentName, "space.castexpression", locale, options.spaceInCastExpression ? 0 : 1)
|
public static ConfigurableOption[] getDefaultOptions(Locale locale) { String componentName = CodeFormatter.class.getName(); FormatterOptions options = new FormatterOptions(); return new ConfigurableOption[] { new ConfigurableOption(componentName, "newline.openingBrace", locale, options.newLineBeforeOpeningBraceMode ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "newline.controlStatement", locale, options.newlineInControlStatementMode ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "newline.clearAll", locale, options.clearAllBlankLinesMode ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "newline.elseIf", locale, options.compactElseIfMode ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "newline.emptyBlock", locale, options.newLineInEmptyBlockMode ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "line.split", locale, options.maxLineLength),//$NON-NLS-1$ new ConfigurableOption(componentName, "style.compactAssignment", locale, options.compactAssignmentMode ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "tabulation.char", locale, options.indentWithTab ? 0 : 1), //$NON-NLS-1$ new ConfigurableOption(componentName, "tabulation.size", locale, options.tabSize) //$NON-NLS-1$ }; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/ecaac3d2c5c743a7471099f473eb673438f5a50a/CodeFormatter.java/buggy/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
29312,
1895,
8526,
4829,
1320,
12,
3916,
2573,
13,
288,
202,
202,
780,
20577,
273,
3356,
5074,
18,
1106,
18,
17994,
5621,
202,
202,
5074,
1320,
702,
273,
394,
14924,
1320,
5621,
202,
202,
2463,
394,
29312,
1895,
8526,
288,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
3190,
310,
21965,
3113,
225,
2573,
16,
702,
18,
2704,
1670,
4649,
21378,
21965,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
7098,
3406,
3113,
225,
2573,
16,
702,
18,
22861,
382,
3367,
3406,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
8507,
1595,
3113,
225,
2573,
16,
702,
18,
8507,
1595,
7796,
5763,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
12107,
2047,
3113,
225,
2573,
16,
702,
18,
21038,
12427,
2047,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
5531,
1768,
3113,
225,
2573,
16,
702,
18,
2704,
1670,
382,
1921,
1768,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
1369,
18,
4939,
3113,
225,
2573,
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,
29312,
1895,
8526,
4829,
1320,
12,
3916,
2573,
13,
288,
202,
202,
780,
20577,
273,
3356,
5074,
18,
1106,
18,
17994,
5621,
202,
202,
5074,
1320,
702,
273,
394,
14924,
1320,
5621,
202,
202,
2463,
394,
29312,
1895,
8526,
288,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
3190,
310,
21965,
3113,
225,
2573,
16,
702,
18,
2704,
1670,
4649,
21378,
21965,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2704,
29312,
1895,
12,
4652,
461,
16,
315,
22861,
18,
7098,
3406,
3113,
225,
2573,
16,
702,
18,
22861,
382,
3367,
3406,
2309,
692,
374,
294,
404,
3631,
4329,
3993,
17,
5106,
17,
21,
2
] |
referType == INSTANCE || referType == IMPORT); if (schemaSource != null && (schemaSource.getSystemId() != null || schemaSource.getByteStream() != null || schemaSource.getCharacterStream() != null)) { String schemaId = null; if (schemaSource.getByteStream() == null && schemaSource.getCharacterStream() == null) { schemaId = XMLEntityManager.expandSystemId(schemaSource.getSystemId(), schemaSource.getBaseSystemId()); if (fTraversed.get(schemaId) != null) { fLastSchemaWasDuplicate = true; return(Document)(fTraversed.get(schemaId)); } } fSchemaParser.reset(); fSchemaParser.parse(schemaSource); schemaDoc = fSchemaParser.getDocument(); if (schemaId != null) { fTraversed.put(schemaId, schemaDoc ); fDoc2SystemId.put(schemaDoc, schemaId ); } fLastSchemaWasDuplicate = false; return schemaDoc; }
|
referType == XSDDescription.CONTEXT_INSTANCE || referType == XSDDescription.CONTEXT_IMPORT);
|
private Document getSchema(String schemaNamespace, String schemaHint, String baseSystemId, boolean mustResolve, short referType) { // contents of this method will depend on the system we adopt for entity resolution--i.e., XMLEntityHandler, EntityHandler, etc. XMLInputSource schemaSource=null; Document schemaDoc = null; try { schemaSource = fLocationResolver.resolveEntity(schemaNamespace, schemaHint, baseSystemId, referType == INSTANCE || referType == IMPORT); // REVISIT: when the system id and byte stream and character stream // of the input source are all null, it's // impossible to find the schema document. so we skip in // this case. otherwise we'll receive some NPE or // file not found errors. but schemaHint=="" is perfectly // legal for import. if (schemaSource != null && (schemaSource.getSystemId() != null || schemaSource.getByteStream() != null || schemaSource.getCharacterStream() != null)) { // When the system id of the input source is used, first try to // expand it, and check whether the same document has been // parsed before. If so, return the document corresponding to // that system id. String schemaId = null; if (schemaSource.getByteStream() == null && schemaSource.getCharacterStream() == null) { schemaId = XMLEntityManager.expandSystemId(schemaSource.getSystemId(), schemaSource.getBaseSystemId()); if (fTraversed.get(schemaId) != null) { fLastSchemaWasDuplicate = true; return(Document)(fTraversed.get(schemaId)); } } fSchemaParser.reset(); fSchemaParser.parse(schemaSource); schemaDoc = fSchemaParser.getDocument(); // now we need to store the mapping information from system id // to the document. also from the document to the system id. if (schemaId != null) { fTraversed.put(schemaId, schemaDoc ); fDoc2SystemId.put(schemaDoc, schemaId ); } fLastSchemaWasDuplicate = false; return schemaDoc; } } catch (IOException ex) { fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, ERROR_CODES[referType], new Object[]{schemaHint}, // when using namespace, then hint is optional, // and it's not an error if the file is not found // but if not using namespace (include), // it's a warning if the file is not found. mustResolve ? XMLErrorReporter.SEVERITY_ERROR: XMLErrorReporter.SEVERITY_WARNING); } schemaDoc = null; fLastSchemaWasDuplicate = false; return null; } // getSchema(String, String, String, boolean, boolean): Document
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/f1dc890f1935338836c906ce95d34915a40b6ddf/XSDHandler.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4319,
11088,
12,
780,
1963,
3402,
16,
514,
1963,
7002,
16,
1171,
9079,
514,
1026,
3163,
548,
16,
1250,
1297,
8460,
16,
3025,
8884,
559,
13,
288,
3639,
368,
2939,
434,
333,
707,
903,
2447,
603,
326,
2619,
732,
1261,
3838,
364,
1522,
7861,
413,
77,
18,
73,
12990,
1139,
9687,
1628,
1503,
16,
3887,
1503,
16,
5527,
18,
3639,
3167,
1210,
1830,
1963,
1830,
33,
2011,
31,
3639,
4319,
1963,
1759,
273,
446,
31,
3639,
775,
288,
5411,
1963,
1830,
273,
284,
2735,
4301,
18,
10828,
1943,
12,
4821,
3402,
16,
1963,
7002,
16,
1026,
3163,
548,
16,
4766,
21821,
8884,
559,
422,
6937,
747,
8884,
559,
422,
21840,
1769,
5411,
368,
2438,
26780,
1285,
30,
1347,
326,
2619,
612,
471,
1160,
1407,
471,
3351,
1407,
5411,
368,
1850,
434,
326,
810,
1084,
854,
777,
446,
16,
518,
1807,
5411,
368,
1850,
23343,
358,
1104,
326,
1963,
1668,
18,
1427,
732,
2488,
316,
5411,
368,
1850,
333,
648,
18,
3541,
732,
5614,
6798,
2690,
423,
1423,
578,
5411,
368,
1850,
585,
486,
1392,
1334,
18,
1496,
1963,
7002,
631,
3660,
353,
24746,
715,
5411,
368,
1850,
19286,
364,
1930,
18,
5411,
309,
261,
4821,
1830,
480,
446,
597,
7734,
261,
4821,
1830,
18,
588,
3163,
548,
1435,
480,
446,
747,
1171,
1963,
1830,
18,
588,
3216,
1228,
1435,
480,
446,
747,
1171,
1963,
1830,
18,
588,
7069,
1228,
1435,
480,
446,
3719,
288,
7734,
368,
5203,
326,
2619,
612,
434,
326,
810,
1084,
353,
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,
4319,
11088,
12,
780,
1963,
3402,
16,
514,
1963,
7002,
16,
1171,
9079,
514,
1026,
3163,
548,
16,
1250,
1297,
8460,
16,
3025,
8884,
559,
13,
288,
3639,
368,
2939,
434,
333,
707,
903,
2447,
603,
326,
2619,
732,
1261,
3838,
364,
1522,
7861,
413,
77,
18,
73,
12990,
1139,
9687,
1628,
1503,
16,
3887,
1503,
16,
5527,
18,
3639,
3167,
1210,
1830,
1963,
1830,
33,
2011,
31,
3639,
4319,
1963,
1759,
273,
446,
31,
3639,
775,
288,
5411,
1963,
1830,
273,
284,
2735,
4301,
18,
10828,
1943,
12,
4821,
3402,
16,
1963,
7002,
16,
1026,
3163,
548,
16,
4766,
21821,
8884,
559,
422,
6937,
747,
8884,
559,
422,
21840,
1769,
5411,
368,
2438,
26780,
1285,
30,
2
] |
myModelComboViewer.setInput(myRelationship); myEntityComboViewer.setInput(myRelationship); myModelComboViewer.setSelection(new StructuredSelection(myRelationship.getEntity().getModel())); myJoinsTableViewer.setInput(myRelationship); ((TablePropertyViewerSorter) myJoinsTableViewer.getSorter()).sort(EOJoin.SOURCE_ATTRIBUTE);
|
myRelationship = relationship; myRelationship.addPropertyChangeListener(EORelationship.DESTINATION, myRelationshipListener); myRelationship.addPropertyChangeListener(EORelationship.JOINS, myRelationshipListener);
|
public void setInput(IWorkbenchPart _part, ISelection _selection) { super.setInput(_part, _selection); disposeBindings(); Object selectedObject = ((IStructuredSelection) _selection).getFirstElement(); if (selectedObject instanceof EORelationship) { myRelationship = (EORelationship) selectedObject; } else if (selectedObject instanceof EORelationshipPath) { myRelationship = ((EORelationshipPath) selectedObject).getChildRelationship(); } myRelationship.addPropertyChangeListener(EORelationship.DESTINATION, myRelationshipListener); myRelationship.addPropertyChangeListener(EORelationship.JOINS, myRelationshipListener); myModelComboViewer.setInput(myRelationship); myEntityComboViewer.setInput(myRelationship); myModelComboViewer.setSelection(new StructuredSelection(myRelationship.getEntity().getModel())); myJoinsTableViewer.setInput(myRelationship); ((TablePropertyViewerSorter) myJoinsTableViewer.getSorter()).sort(EOJoin.SOURCE_ATTRIBUTE); myBindingContext = BindingFactory.createContext(); myBindingContext.bind(myNameText, new Property(myRelationship, EORelationship.NAME), null); myBindingContext.bind(myToOneButton, new Property(myRelationship, EORelationship.TO_ONE), null); myBindingContext.bind(myToManyButton, new Property(myRelationship, EORelationship.TO_MANY), null); myBindingContext.bind(myOptionalButton, new Property(myRelationship, EORelationship.OPTIONAL), null); myBindingContext.bind(myMandatoryButton, new Property(myRelationship, EORelationship.MANDATORY), null); myDeleteRuleBinding = new ComboViewerBinding(myDeleteRuleComboViewer, myRelationship, EORelationship.DELETE_RULE, null, null, null); myJoinSemanticBinding = new ComboViewerBinding(myJoinSemanticComboViewer, myRelationship, EORelationship.JOIN_SEMANTIC, myRelationship.getEntity().getModel().getModelGroup(), EOModelGroup.MODELS, null); myEntityBinding = new ComboViewerBinding(myEntityComboViewer, myRelationship, EORelationship.DESTINATION, myRelationship.getEntity().getModel(), EOModel.ENTITIES, null); boolean enabled = !myRelationship.isFlattened(); myModelComboViewer.getCombo().setEnabled(enabled); myEntityComboViewer.getCombo().setEnabled(enabled); myJoinSemanticComboViewer.getCombo().setEnabled(enabled); myJoinsTableViewer.getTable().setEnabled(enabled); myAddButton.setEnabled(enabled); myRemoveButton.setEnabled(enabled); updateModelAndEntityCombosEnabled(); updateJoins(); updateButtons(); }
|
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/5dd27857fb1369902b1d674d898fc47d9011d030/EORelationshipBasicEditorSection.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/editors/relationship/EORelationshipBasicEditorSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21687,
12,
45,
2421,
22144,
1988,
389,
2680,
16,
467,
6233,
389,
10705,
13,
288,
565,
2240,
18,
542,
1210,
24899,
2680,
16,
389,
10705,
1769,
565,
15825,
10497,
5621,
565,
1033,
3170,
921,
273,
14015,
45,
30733,
6233,
13,
389,
10705,
2934,
588,
3759,
1046,
5621,
565,
309,
261,
8109,
921,
1276,
512,
916,
292,
367,
3261,
13,
288,
1377,
3399,
8180,
273,
261,
41,
916,
292,
367,
3261,
13,
3170,
921,
31,
565,
289,
565,
469,
309,
261,
8109,
921,
1276,
512,
916,
292,
367,
3261,
743,
13,
288,
1377,
3399,
8180,
273,
14015,
41,
916,
292,
367,
3261,
743,
13,
3170,
921,
2934,
588,
1763,
8180,
5621,
565,
289,
565,
3399,
8180,
18,
1289,
1396,
15744,
12,
41,
916,
292,
367,
3261,
18,
29451,
16,
3399,
8180,
2223,
1769,
565,
3399,
8180,
18,
1289,
1396,
15744,
12,
41,
916,
292,
367,
3261,
18,
18800,
55,
16,
3399,
8180,
2223,
1769,
565,
3399,
1488,
16156,
18415,
18,
542,
1210,
12,
4811,
8180,
1769,
565,
3399,
1943,
16156,
18415,
18,
542,
1210,
12,
4811,
8180,
1769,
565,
3399,
1488,
16156,
18415,
18,
542,
6233,
12,
2704,
7362,
2862,
6233,
12,
4811,
8180,
18,
588,
1943,
7675,
588,
1488,
1435,
10019,
565,
3399,
21108,
1388,
18415,
18,
542,
1210,
12,
4811,
8180,
1769,
565,
14015,
1388,
1396,
18415,
24952,
13,
3399,
21108,
1388,
18415,
18,
588,
24952,
1435,
2934,
3804,
12,
41,
51,
4572,
18,
6537,
67,
11616,
1769,
565,
3399,
5250,
1042,
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,
282,
1071,
918,
21687,
12,
45,
2421,
22144,
1988,
389,
2680,
16,
467,
6233,
389,
10705,
13,
288,
565,
2240,
18,
542,
1210,
24899,
2680,
16,
389,
10705,
1769,
565,
15825,
10497,
5621,
565,
1033,
3170,
921,
273,
14015,
45,
30733,
6233,
13,
389,
10705,
2934,
588,
3759,
1046,
5621,
565,
309,
261,
8109,
921,
1276,
512,
916,
292,
367,
3261,
13,
288,
1377,
3399,
8180,
273,
261,
41,
916,
292,
367,
3261,
13,
3170,
921,
31,
565,
289,
565,
469,
309,
261,
8109,
921,
1276,
512,
916,
292,
367,
3261,
743,
13,
288,
1377,
3399,
8180,
273,
14015,
41,
916,
292,
367,
3261,
743,
13,
3170,
921,
2934,
588,
1763,
8180,
5621,
565,
289,
565,
3399,
8180,
18,
2
] |
deleteAllProperties(context, newFile.getRootPath());
|
deleteAllProperties(context, newFile.getRootPath(), CmsProperty.C_DELETE_OPTION_DELETE_STRUCTURE_AND_RESOURCE_VALUES);
|
public void restoreResource(CmsRequestContext context, int tagId, String filename) throws CmsException { if (context.currentProject().isOnlineProject()) { // this is the onlineproject throw new CmsSecurityException("Can't write to the online project", CmsSecurityException.C_SECURITY_NO_MODIFY_IN_ONLINE_PROJECT); } CmsFile offlineFile = readFile(context, filename, CmsResourceFilter.IGNORE_EXPIRATION); // check if the user has write access checkPermissions(context, offlineFile, I_CmsConstants.C_WRITE_ACCESS, CmsResourceFilter.ALL); int state = I_CmsConstants.C_STATE_CHANGED; CmsBackupResource backupFile = readBackupFile(context, tagId, filename); if (offlineFile.getState() == I_CmsConstants.C_STATE_NEW) { state = I_CmsConstants.C_STATE_NEW; } if (backupFile != null && offlineFile != null) { // get the backed up flags int flags = backupFile.getFlags(); if (offlineFile.isLabeled()) { // set the flag for labeled links on the restored file flags |= I_CmsConstants.C_RESOURCEFLAG_LABELLINK; } CmsFile newFile = new CmsFile( offlineFile.getStructureId(), offlineFile.getResourceId(), offlineFile.getParentStructureId(), offlineFile.getFileId(), offlineFile.getName(), backupFile.getType(), flags, context.currentProject().getId(), state, backupFile.getLoaderId(), offlineFile.getDateCreated(), backupFile.getUserCreated(), offlineFile.getDateLastModified(), context.currentUser().getId(), backupFile.getDateReleased(), backupFile.getDateExpired(), backupFile.getLinkCount(), backupFile.getLength(), backupFile.getContents()); newFile.setFullResourceName(filename); writeFile(context, newFile); // now read the backup properties List backupProperties = m_backupDriver.readBackupProperties(backupFile); // remove all (structure+resource) property value deleteAllProperties(context, newFile.getRootPath()); // write them to the restored resource writePropertyObjects(context, filename, backupProperties); clearResourceCache(); } OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCE_MODIFIED, Collections.singletonMap("resource", offlineFile))); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/68c9e9c7544dbe145bdf51a3ae62c07cb8894073/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5217,
1420,
12,
4747,
21426,
819,
16,
509,
29238,
16,
514,
1544,
13,
1216,
11228,
288,
3639,
309,
261,
2472,
18,
2972,
4109,
7675,
291,
16860,
4109,
10756,
288,
5411,
368,
333,
353,
326,
12365,
4406,
5411,
604,
394,
2149,
24918,
2932,
2568,
1404,
1045,
358,
326,
12365,
1984,
3113,
2149,
24918,
18,
39,
67,
29209,
67,
3417,
67,
6720,
12096,
67,
706,
67,
673,
5997,
67,
17147,
1769,
3639,
289,
3639,
28118,
13493,
812,
273,
10413,
12,
2472,
16,
1544,
16,
21082,
18,
20118,
67,
18433,
24284,
1769,
3639,
368,
866,
309,
326,
729,
711,
1045,
2006,
540,
866,
6521,
12,
2472,
16,
13493,
812,
16,
467,
67,
4747,
2918,
18,
39,
67,
11677,
67,
13204,
16,
21082,
18,
4685,
1769,
3639,
509,
919,
273,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
24435,
31,
3639,
2149,
6248,
1420,
5114,
812,
273,
855,
6248,
812,
12,
2472,
16,
29238,
16,
1544,
1769,
3639,
309,
261,
23787,
812,
18,
588,
1119,
1435,
422,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
12917,
13,
288,
5411,
919,
273,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
12917,
31,
3639,
289,
3639,
309,
261,
9572,
812,
480,
446,
597,
13493,
812,
480,
446,
13,
288,
5411,
368,
336,
326,
20732,
731,
2943,
2398,
509,
2943,
273,
5114,
812,
18,
588,
5094,
5621,
5411,
309,
261,
23787,
812,
18,
291,
2224,
329,
10756,
288,
7734,
368,
444,
326,
2982,
364,
23585,
4716,
603,
326,
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,
5217,
1420,
12,
4747,
21426,
819,
16,
509,
29238,
16,
514,
1544,
13,
1216,
11228,
288,
3639,
309,
261,
2472,
18,
2972,
4109,
7675,
291,
16860,
4109,
10756,
288,
5411,
368,
333,
353,
326,
12365,
4406,
5411,
604,
394,
2149,
24918,
2932,
2568,
1404,
1045,
358,
326,
12365,
1984,
3113,
2149,
24918,
18,
39,
67,
29209,
67,
3417,
67,
6720,
12096,
67,
706,
67,
673,
5997,
67,
17147,
1769,
3639,
289,
3639,
28118,
13493,
812,
273,
10413,
12,
2472,
16,
1544,
16,
21082,
18,
20118,
67,
18433,
24284,
1769,
3639,
368,
866,
309,
326,
729,
711,
1045,
2006,
540,
866,
6521,
12,
2472,
16,
13493,
812,
16,
467,
67,
4747,
2918,
18,
39,
67,
11677,
67,
2
] |
Style.NUMBER_FORMAT_PROP,
|
StyleHandle.NUMBER_FORMAT_PROP,
|
private void fireFormatChanged( String newCategory, String newPattern ) { if ( listeners.isEmpty( ) ) { return; } FormatChangeEvent event = new FormatChangeEvent( this, Style.NUMBER_FORMAT_PROP, newCategory, newPattern ); for ( Iterator iter = listeners.iterator( ); iter.hasNext( ); ) { Object listener = iter.next( ); if ( listener instanceof IFormatChangeListener ) { ( (IFormatChangeListener) listener ).formatChange( event ); } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/2c034e91e7ea57190618feff8d8b8c4b8b33e064/FormatNumberPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4452,
1630,
5033,
12,
514,
394,
4457,
16,
514,
394,
3234,
262,
202,
95,
202,
202,
430,
261,
4679,
18,
291,
1921,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
1630,
20930,
871,
273,
394,
4077,
20930,
12,
333,
16,
9506,
202,
2885,
18,
9931,
67,
7254,
67,
15811,
16,
9506,
202,
2704,
4457,
16,
9506,
202,
2704,
3234,
11272,
202,
202,
1884,
261,
4498,
1400,
273,
4679,
18,
9838,
12,
11272,
1400,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
921,
2991,
273,
1400,
18,
4285,
12,
11272,
1082,
202,
430,
261,
2991,
1276,
467,
1630,
15744,
262,
1082,
202,
95,
9506,
202,
12,
261,
45,
1630,
15744,
13,
2991,
262,
18,
2139,
3043,
12,
871,
11272,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4452,
1630,
5033,
12,
514,
394,
4457,
16,
514,
394,
3234,
262,
202,
95,
202,
202,
430,
261,
4679,
18,
291,
1921,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
1630,
20930,
871,
273,
394,
4077,
20930,
12,
333,
16,
9506,
202,
2885,
18,
9931,
67,
7254,
67,
15811,
16,
9506,
202,
2704,
4457,
16,
9506,
202,
2704,
3234,
11272,
202,
202,
1884,
261,
4498,
1400,
273,
4679,
18,
9838,
12,
11272,
1400,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
921,
2991,
273,
1400,
18,
4285,
12,
11272,
1082,
202,
430,
261,
2991,
1276,
467,
1630,
15744,
262,
1082,
202,
95,
9506,
202,
12,
2
] |
if (DEBUG) System.err.println("thread started");
|
if (DEBUG) System.err.println(" run");
|
public void run() { if (DEBUG) System.err.println("thread started"); //$NON-NLS-1$ while (true) { if (fDelay > 0) { try { Thread.sleep(fDelay); } catch (InterruptedException e) { if (DEBUG) System.err.println("timer restarted"); //$NON-NLS-1$ if (fAbort) return; continue; } } fReset= false; try { if (DEBUG) System.err.println("query started"); //$NON-NLS-1$ Collection searchResult= doSearchTypes(SearchEngine.createWorkspaceScope(), IJavaSearchConstants.TYPE); if (searchResult != null) { TypeInfo[] result= (TypeInfo[]) searchResult.toArray(new TypeInfo[searchResult.size()]); Arrays.sort(result, getTypeNameComperator()); if (!fAbort && !fReset) setCache(result); if (!fReset) return; } if (fAbort) return; } catch (JavaModelException e) { JavaPlugin.log(e); } } }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/c28fdee347ebff41e571ef111e7a324d7079bb57/AllTypesCache.java/clean/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
430,
261,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
225,
1086,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
430,
261,
74,
6763,
405,
374,
13,
288,
6862,
202,
698,
288,
25083,
202,
3830,
18,
19607,
12,
74,
6763,
1769,
6862,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
25083,
202,
430,
261,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
12542,
28893,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
430,
261,
74,
13572,
13,
6862,
1082,
202,
2463,
31,
25083,
202,
17143,
31,
6862,
202,
97,
9506,
202,
97,
6862,
6862,
9506,
202,
74,
7013,
33,
629,
31,
9506,
202,
698,
288,
6862,
202,
430,
261,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
2271,
5746,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2532,
31935,
33,
741,
2979,
2016,
12,
2979,
4410,
18,
2640,
8241,
3876,
9334,
467,
5852,
2979,
2918,
18,
2399,
1769,
6862,
202,
430,
261,
3072,
1253,
480,
446,
13,
288,
25083,
202,
17305,
8526,
563,
33,
261,
17305,
63,
5717,
31935,
18,
31447,
12,
2704,
1412,
966,
63,
3072,
1253,
18,
1467,
1435,
19226,
25083,
202,
12726,
18,
3804,
12,
2088,
16,
17898,
799,
457,
639,
10663,
25083,
202,
430,
16051,
74,
13572,
597,
401,
74,
7013,
13,
6862,
1082,
202,
542,
1649,
12,
2088,
1769,
25083,
202,
430,
16051,
74,
7013,
13,
6862,
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,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
430,
261,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
225,
1086,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
17523,
261,
3767,
13,
288,
9506,
202,
430,
261,
74,
6763,
405,
374,
13,
288,
6862,
202,
698,
288,
25083,
202,
3830,
18,
19607,
12,
74,
6763,
1769,
6862,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
25083,
202,
430,
261,
9394,
13,
2332,
18,
370,
18,
8222,
2932,
12542,
28893,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
430,
261,
74,
13572,
13,
6862,
1082,
202,
2463,
31,
25083,
202,
17143,
31,
6862,
202,
97,
9506,
202,
97,
6862,
6862,
9506,
202,
74,
7013,
2
] |
getControl( ).setFocus( );
|
nameText.forceFocus( );
|
public void setVisible( boolean visible ) { super.setVisible( visible ); if ( visible ) { getControl( ).setFocus( ); } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/61eb8c82e3d1b22b800d005a822e6f379b0bcf9d/WizardReportSettingPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardReportSettingPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16697,
12,
1250,
6021,
262,
202,
95,
202,
202,
9565,
18,
542,
6207,
12,
6021,
11272,
202,
202,
430,
261,
6021,
262,
202,
202,
95,
1082,
202,
588,
3367,
12,
262,
18,
542,
9233,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
918,
16697,
12,
1250,
6021,
262,
202,
95,
202,
202,
9565,
18,
542,
6207,
12,
6021,
11272,
202,
202,
430,
261,
6021,
262,
202,
202,
95,
1082,
202,
588,
3367,
12,
262,
18,
542,
9233,
12,
11272,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 static void init(String[] args) { try { VM_BaselineCompiler.initOptions(); options = new OPT_Options(); VM.sysWrite("VM_BootImageCompiler: init (opt compiler)\n"); // Writing a boot image is a little bit special. We're not really // concerned about compile time, but we do care a lot about the quality // and stability of the generated code. Set the options accordingly. OPT_Compiler.setBootOptions(options); // Allow further customization by the user. for (int i = 0, n = args.length; i < n; i++) { String arg = args[i]; if (!options.processAsOption("-X:bc:", arg)) { if (arg.startsWith("exclude=")) excludePattern = arg.substring(8); else VM.sysWrite("VM_BootImageCompiler: Unrecognized argument "+arg+"; ignoring\n"); } } OPT_Compiler.init(options); optimizationPlan = OPT_OptimizationPlanner.createOptimizationPlan(options); } catch (OPT_OptimizingCompilerException e) { String msg = "VM_BootImageCompiler: OPT_Compiler failed during initialization: "+e+"\n"; if (e.isFatal) { // An unexpected error when building the opt boot image should be fatal e.printStackTrace(); System.exit(VM.EXIT_STATUS_OPT_COMPILER_FAILED); } else { VM.sysWrite(msg); } } }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_BootImageCompiler.java/buggy/rvm/src/vm/compilers/harness/bootImage/optimizing/VM_BootImageCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
2738,
12,
780,
8526,
1968,
15329,
698,
95,
7397,
67,
16635,
9213,
18,
2738,
1320,
5621,
2116,
33,
2704,
15620,
67,
1320,
5621,
7397,
18,
9499,
3067,
2932,
7397,
67,
15817,
2040,
9213,
30,
2738,
12,
3838,
9576,
5153,
82,
8863,
759,
18835,
378,
1632,
2730,
291,
287,
7188,
6789,
705,
649,
18,
3218,
4565,
902,
266,
1230,
759,
591,
2750,
11748,
21071,
2919,
330,
2374,
16,
12885,
91,
329,
504,
834,
287,
352,
21071,
5787,
16495,
759,
464,
334,
2967,
792,
451,
1332,
7489,
710,
18,
694,
5787,
2116,
1077,
4643,
715,
18,
15620,
67,
9213,
18,
542,
15817,
1320,
12,
2116,
1769,
759,
7009,
74,
8753,
3662,
1588,
1637,
5787,
1355,
18,
1884,
12,
474,
77,
33,
20,
16,
82,
33,
1968,
18,
2469,
31,
77,
32,
82,
31,
77,
27245,
95,
780,
3175,
33,
1968,
63,
77,
15533,
430,
12,
5,
2116,
18,
2567,
1463,
1895,
2932,
17,
60,
30,
13459,
2773,
16,
3175,
3719,
95,
430,
12,
3175,
18,
17514,
1190,
2932,
10157,
1546,
3719,
10157,
3234,
33,
3175,
18,
28023,
12,
28,
1769,
12107,
7397,
18,
9499,
3067,
2932,
7397,
67,
15817,
2040,
9213,
30,
19648,
3446,
6,
15,
3175,
9078,
31,
724,
6053,
64,
82,
8863,
9090,
15620,
67,
9213,
18,
2738,
12,
2116,
1769,
16689,
1588,
5365,
33,
15620,
67,
13930,
1588,
1749,
3818,
18,
2640,
13930,
1588,
5365,
12,
2116,
1769,
97,
14683,
12,
15620,
67,
13930,
6894,
9213,
503,
73,
15329,
780,
3576,
1546,
7397,
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,
3845,
6459,
2738,
12,
780,
8526,
1968,
15329,
698,
95,
7397,
67,
16635,
9213,
18,
2738,
1320,
5621,
2116,
33,
2704,
15620,
67,
1320,
5621,
7397,
18,
9499,
3067,
2932,
7397,
67,
15817,
2040,
9213,
30,
2738,
12,
3838,
9576,
5153,
82,
8863,
759,
18835,
378,
1632,
2730,
291,
287,
7188,
6789,
705,
649,
18,
3218,
4565,
902,
266,
1230,
759,
591,
2750,
11748,
21071,
2919,
330,
2374,
16,
12885,
91,
329,
504,
834,
287,
352,
21071,
5787,
16495,
759,
464,
334,
2967,
792,
451,
1332,
7489,
710,
18,
694,
5787,
2116,
1077,
4643,
715,
18,
15620,
67,
9213,
18,
542,
15817,
1320,
12,
2116,
1769,
759,
7009,
74,
8753,
3662,
1588,
1637,
5787,
1355,
18,
1884,
12,
2
] |
||
(osVersion.indexOf("nptl")!=-1 || osVersion.startsWith("2.6") ||
|
((osVersion.indexOf("nptl")!=-1) || osVersion.startsWith("2.6") ||
|
void start(boolean noSwaps) throws NodeInitException { if(!noSwaps) lm.startSender(this, this.swapInterval); nodePinger.start(); dnsr.start(); ps.start(); usm.start(); myMemoryChecker.start(); ipDetectorManager.start(); if(isUsingWrapper()) { Logger.normal(this, "Using wrapper correctly: "+nodeStarter); System.out.println("Using wrapper correctly: "+nodeStarter); } else { Logger.error(this, "NOT using wrapper (at least not correctly). Your freenet-ext.jar <http://downloads.freenetproject.org/alpha/freenet-ext.jar> and/or wrapper.conf <https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/config/wrapper.conf> need to be updated."); System.out.println("NOT using wrapper (at least not correctly). Your freenet-ext.jar <http://downloads.freenetproject.org/alpha/freenet-ext.jar> and/or wrapper.conf <https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/config/wrapper.conf> need to be updated."); } Logger.normal(this, "Freenet 0.7 Build #"+Version.buildNumber()+" r"+Version.cvsRevision); System.out.println("Freenet 0.7 Build #"+Version.buildNumber()+" r"+Version.cvsRevision); Logger.normal(this, "FNP port is on "+bindto+":"+portNumber); System.out.println("FNP port is on "+bindto+":"+portNumber); // Start services // TMCI try{ TextModeClientInterfaceServer.maybeCreate(this, config); } catch (IOException e) { e.printStackTrace(); throw new NodeInitException(EXIT_COULD_NOT_START_TMCI, "Could not start TMCI: "+e); } // FCP (including persistent requests so needs to start before FProxy) try { fcpServer = FCPServer.maybeCreate(this, config); } catch (IOException e) { throw new NodeInitException(EXIT_COULD_NOT_START_FCP, "Could not start FCP: "+e); } catch (InvalidConfigValueException e) { throw new NodeInitException(EXIT_COULD_NOT_START_FCP, "Could not start FCP: "+e); } SubConfig fproxyConfig = new SubConfig("fproxy", config); bookmarkManager = new BookmarkManager(this, fproxyConfig); pluginManager2 = new freenet.plugin.PluginManager(this); // FProxy // FIXME this is a hack, the real way to do this is plugins try { FProxyToadlet.maybeCreateFProxyEtc(this, config, fproxyConfig); } catch (IOException e) { e.printStackTrace(); throw new NodeInitException(EXIT_COULD_NOT_START_FPROXY, "Could not start FProxy: "+e); } catch (InvalidConfigValueException e) { throw new NodeInitException(EXIT_COULD_NOT_START_FPROXY, "Could not start FProxy: "+e); } // Node Updater try{ nodeUpdater = NodeUpdater.maybeCreate(this, config); Logger.normal(this, "Starting the node updater"); }catch (Exception e) { e.printStackTrace(); throw new NodeInitException(EXIT_COULD_NOT_START_UPDATER, "Could not start Updater: "+e); } /* SimpleToadletServer server = new SimpleToadletServer(port+2000); FProxyToadlet fproxy = new FProxyToadlet(n.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); PProxyToadlet pproxy = new PProxyToadlet(n.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS), n.pluginManager); server.register(fproxy, "/", false); server.register(pproxy, "/plugins/", true); * */ // After everything has been created, write the config file back to disk. config.finishedInit(); config.store(); // Start testnet handler if(testnetHandler != null) testnetHandler.start(); persistentTempBucketFactory.completedInit(); redetectAddress(); shouldInsertARK(); Thread t = new Thread(ipDetector, "IP address re-detector"); t.setDaemon(true); t.start(); // Now check whether we are likely to get the EvilJVMBug. // If we are running a Sun or Blackdown JVM, on Linux, and LD_ASSUME_KERNEL is not set, then we are. String jvmVendor = System.getProperty("java.vm.vendor"); String jvmVersion = System.getProperty("java.vm.version"); String osName = System.getProperty("os.name"); String osVersion = System.getProperty("os.version"); Logger.minor(this, "JVM vendor: "+jvmVendor+", JVM version: "+jvmVersion+", OS name: "+osName+", OS version: "+osVersion); // If we are using the wrapper, we ignore: // Any problem should be detected by the watchdog and the node will be restarted if(osName.equals("Linux") && jvmVendor.startsWith("Sun ") && (osVersion.indexOf("nptl")!=-1 || osVersion.startsWith("2.6") || osVersion.startsWith("2.7") || osVersion.startsWith("3.")) && !isUsingWrapper()) { // Hopefully we won't still have to deal with this **** when THAT comes out! // Check the environment. String assumeKernel; try { // It is essential to check the environment. // Make an alternative way to do it if you like. assumeKernel = System.getenv("LD_ASSUME_KERNEL"); } catch (Error e) { assumeKernel = null; assumeKernel = WrapperManager.getProperties().getProperty("set.LD_ASSUME_KERNEL"); } if(assumeKernel == null || assumeKernel.length() == 0 || (!(assumeKernel.startsWith("2.2") || assumeKernel.startsWith("2.4")))) { System.err.println(ERROR_SUN_NPTL); Logger.error(this, ERROR_SUN_NPTL); this.alerts.register(new UserAlert() { public boolean userCanDismiss() { return false; } public String getTitle() { return "Deadlocking likely due to buggy JVM/kernel combination"; } public String getText() { return ERROR_SUN_NPTL; } public short getPriorityClass() { return UserAlert.CRITICAL_ERROR; } public boolean isValid() { return true; } public void isValid(boolean validity) { // Not clearable. } public String dismissButtonText() { // Not dismissable. return null; } public boolean shouldUnregisterOnDismiss() { // Not dismissable. return false; } }); } } this.hasStarted = true; }
|
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
787,
12,
6494,
1158,
6050,
6679,
13,
1216,
2029,
2570,
503,
288,
202,
202,
430,
12,
5,
2135,
6050,
6679,
13,
1082,
202,
25972,
18,
1937,
12021,
12,
2211,
16,
333,
18,
22270,
4006,
1769,
202,
202,
2159,
52,
6658,
18,
1937,
5621,
202,
202,
14926,
86,
18,
1937,
5621,
202,
202,
1121,
18,
1937,
5621,
202,
202,
407,
81,
18,
1937,
5621,
202,
202,
4811,
6031,
8847,
18,
1937,
5621,
202,
202,
625,
12594,
1318,
18,
1937,
5621,
9506,
202,
430,
12,
291,
7736,
3611,
10756,
288,
1082,
202,
3328,
18,
6130,
12,
2211,
16,
315,
7736,
4053,
8783,
30,
13773,
2159,
510,
14153,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
7736,
4053,
8783,
30,
13773,
2159,
510,
14153,
1769,
202,
202,
97,
469,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
4400,
1450,
4053,
261,
270,
4520,
486,
8783,
2934,
225,
20471,
284,
2842,
278,
17,
408,
18,
11930,
411,
2505,
2207,
7813,
87,
18,
74,
2842,
278,
4406,
18,
3341,
19,
5429,
19,
74,
2842,
278,
17,
408,
18,
11930,
34,
471,
19,
280,
4053,
18,
3923,
411,
4528,
2207,
24995,
18,
74,
2842,
278,
4406,
18,
3341,
19,
31505,
19,
26133,
19,
11411,
19,
20163,
19,
5425,
26302,
19,
1425,
19,
8376,
18,
3923,
34,
1608,
358,
506,
3526,
1199,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
4400,
1450,
4053,
261,
270,
4520,
486,
8783,
2934,
225,
20471,
284,
2842,
278,
17,
408,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
787,
12,
6494,
1158,
6050,
6679,
13,
1216,
2029,
2570,
503,
288,
202,
202,
430,
12,
5,
2135,
6050,
6679,
13,
1082,
202,
25972,
18,
1937,
12021,
12,
2211,
16,
333,
18,
22270,
4006,
1769,
202,
202,
2159,
52,
6658,
18,
1937,
5621,
202,
202,
14926,
86,
18,
1937,
5621,
202,
202,
1121,
18,
1937,
5621,
202,
202,
407,
81,
18,
1937,
5621,
202,
202,
4811,
6031,
8847,
18,
1937,
5621,
202,
202,
625,
12594,
1318,
18,
1937,
5621,
9506,
202,
430,
12,
291,
7736,
3611,
10756,
288,
1082,
202,
3328,
18,
6130,
12,
2211,
16,
315,
7736,
4053,
8783,
30,
13773,
2159,
510,
14153,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
7736,
4053,
2
] |
public String getSignature() { if (sigGenerator != null) return sigGenerator.generateSignature(null); else return null; //return (Pooka.getProperty("UserProfile." + name + ".signature", null)); }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/0a71a96427b2fa6cb25ff90594bfd314ad09b493/UserProfile.java/buggy/net/suberic/pooka/UserProfile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
588,
5374,
1435,
95,
430,
12,
7340,
3908,
5,
33,
2011,
13,
6154,
360,
3908,
18,
7163,
5374,
12,
2011,
1769,
292,
550,
851,
2011,
31,
759,
2463,
12,
52,
1184,
69,
18,
588,
1396,
2932,
1299,
4029,
1199,
15,
529,
9078,
18,
8195,
3113,
2011,
10019,
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,
1071,
780,
588,
5374,
1435,
95,
430,
12,
7340,
3908,
5,
33,
2011,
13,
6154,
360,
3908,
18,
7163,
5374,
12,
2011,
1769,
292,
550,
851,
2011,
31,
759,
2463,
12,
52,
1184,
69,
18,
588,
1396,
2932,
1299,
4029,
1199,
15,
529,
9078,
18,
8195,
3113,
2011,
10019,
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
] |
||
catch ( InvalidVersionSpecificationException e ) { throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(), "Invalid version specification", e ); }
|
private PluginDescriptor verifyVersionedPlugin( Plugin plugin, MavenProject project, ArtifactRepository localRepository ) throws PluginVersionResolutionException, PluginManagerException, ArtifactNotFoundException, ArtifactResolutionException { // TODO: this might result in an artifact "RELEASE" being resolved continuously // FIXME: need to find out how a plugin gets marked as 'installed' // and no ChildContainer exists. The check for that below fixes // the 'Can't find plexus container for plugin: xxx' error. if ( !pluginCollector.isPluginInstalled( plugin ) || container.getChildContainer( plugin.getKey() ) == null ) { try { VersionRange versionRange = VersionRange.createFromVersionSpec( plugin.getVersion() ); List remoteRepositories = new ArrayList(); remoteRepositories.addAll( project.getPluginArtifactRepositories() ); remoteRepositories.addAll( project.getRemoteArtifactRepositories() ); checkRequiredMavenVersion( plugin, localRepository, remoteRepositories ); Artifact pluginArtifact = artifactFactory.createPluginArtifact( plugin.getGroupId(), plugin.getArtifactId(), versionRange ); addPlugin( plugin, pluginArtifact, project, localRepository ); project.addPlugin( plugin ); } catch ( ArtifactNotFoundException e ) { String groupId = plugin.getGroupId(); String artifactId = plugin.getArtifactId(); String version = plugin.getVersion(); if ( groupId == null || artifactId == null || version == null ) { throw new PluginNotFoundException( e ); } else if ( groupId.equals( e.getGroupId() ) && artifactId.equals( e.getArtifactId() ) && version.equals( e.getVersion() ) && "maven-plugin".equals( e.getType() ) ) { throw new PluginNotFoundException( e ); } else { throw e; } } catch ( InvalidVersionSpecificationException e ) { throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(), "Invalid version specification", e ); } } return pluginCollector.getPluginDescriptor( plugin ); }
|
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/f685d8605d2680e70b1ff2895947d2d11787e3c9/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
3238,
14683,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
6258,
3187,
14683,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
3929,
23676,
3773,
12,
14683,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
6258,
1444,
11098,
503,
12,
1909,
18,
588,
8722,
9334,
1909,
18,
588,
7581,
548,
9334,
315,
1941,
1177,
7490,
3113,
425,
11272,
289,
225,
1044,
261,
1962,
1444,
8615,
503,
425,
262,
288,
604,
394,
2
] |
|
read(buffer,in,length,false);
|
String lineSeparator = read(buffer,in,length); buffer.putProperty(Buffer.LINESEP,lineSeparator); buffer.setNewFile(false);
|
private void load() { InputStream in = null; try { try { String[] args = { MiscUtilities.getFileName(path) }; setStatus(jEdit.getProperty("vfs.status.load",args)); setAbortable(true); setProgressValue(0); VFS.DirectoryEntry entry = vfs._getDirectoryEntry( session,path,view); long length; if(entry != null) length = entry.length; else length = 0L; in = vfs._createInputStream(session,path,false,view); if(in == null) return; if(path.endsWith(".gz")) in = new GZIPInputStream(in); read(buffer,in,length,false); } catch(IOException io) { Log.log(Log.ERROR,this,io); Object[] args = { io.toString() }; VFSManager.error(view,"ioerror",args); } try { String[] args = { MiscUtilities.getFileName(path) }; setStatus(jEdit.getProperty("vfs.status.load-markers",args)); setAbortable(true); in = vfs._createInputStream(session,markersPath,true,view); if(in != null) readMarkers(buffer,in); } catch(IOException io) { // ignore } } catch(WorkThread.Abort a) { if(in != null) { try { in.close(); } catch(IOException io) { } } } finally { try { vfs._endVFSSession(session,view); } catch(IOException io) { Log.log(Log.ERROR,this,io); String[] args = { io.getMessage() }; VFSManager.error(view,"ioerror",args); } catch(WorkThread.Abort a) { } } setAbortable(false); }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/47ec5242657f44695ff8e27f4e3863f760de353b/BufferIORequest.java/buggy/org/gjt/sp/jedit/io/BufferIORequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
1435,
202,
95,
202,
202,
4348,
316,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
780,
8526,
833,
273,
288,
16584,
71,
11864,
18,
588,
4771,
12,
803,
13,
289,
31,
9506,
202,
542,
1482,
12,
78,
4666,
18,
588,
1396,
2932,
90,
2556,
18,
2327,
18,
945,
3113,
1968,
10019,
9506,
202,
542,
13572,
429,
12,
3767,
1769,
9506,
202,
542,
5491,
620,
12,
20,
1769,
9506,
202,
58,
4931,
18,
2853,
1622,
1241,
273,
20682,
6315,
588,
2853,
1622,
12,
6862,
202,
3184,
16,
803,
16,
1945,
1769,
9506,
202,
5748,
769,
31,
9506,
202,
430,
12,
4099,
480,
446,
13,
6862,
202,
2469,
273,
1241,
18,
2469,
31,
9506,
202,
12107,
6862,
202,
2469,
273,
374,
48,
31,
9506,
202,
267,
273,
20682,
6315,
2640,
4348,
12,
3184,
16,
803,
16,
5743,
16,
1945,
1769,
9506,
202,
430,
12,
267,
422,
446,
13,
6862,
202,
2463,
31,
9506,
202,
430,
12,
803,
18,
5839,
1190,
2932,
18,
9764,
6,
3719,
6862,
202,
267,
273,
394,
24013,
4348,
12,
267,
1769,
9506,
202,
896,
12,
4106,
16,
267,
16,
2469,
16,
5743,
1769,
1082,
202,
97,
1082,
202,
14683,
12,
14106,
2527,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
2211,
16,
1594,
1769,
9506,
202,
921,
8526,
833,
273,
288,
2527,
18,
10492,
1435,
289,
31,
9506,
202,
58,
4931,
1318,
18,
1636,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1262,
1435,
202,
95,
202,
202,
4348,
316,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
780,
8526,
833,
273,
288,
16584,
71,
11864,
18,
588,
4771,
12,
803,
13,
289,
31,
9506,
202,
542,
1482,
12,
78,
4666,
18,
588,
1396,
2932,
90,
2556,
18,
2327,
18,
945,
3113,
1968,
10019,
9506,
202,
542,
13572,
429,
12,
3767,
1769,
9506,
202,
542,
5491,
620,
12,
20,
1769,
9506,
202,
58,
4931,
18,
2853,
1622,
1241,
273,
20682,
6315,
588,
2853,
1622,
12,
6862,
202,
3184,
16,
803,
16,
1945,
1769,
9506,
202,
5748,
769,
31,
9506,
202,
430,
12,
4099,
480,
446,
13,
6862,
202,
2
] |
AffineTransform t = AffineTransform.getTranslateInstance(tx, ty);
|
AffineTransform t = AffineTransform.getTranslateInstance(tx, ty);
|
public Shape getOutline(){ // HACK, until we change getBounds to take // GraphicsNodeRenderContext java.awt.font.TextLayout layout = new java.awt.font.TextLayout(aci, new java.awt.font.FontRenderContext(new AffineTransform(), true, true)); Rectangle2D bounds = layout.getBounds(); double tx = location.getX(); double ty = location.getY(); if (anchor == Anchor.MIDDLE) { tx -= bounds.getWidth()/2; } else if (anchor == Anchor.END) { tx -= bounds.getWidth(); } AffineTransform t = AffineTransform.getTranslateInstance(tx, ty); return layout.getOutline(t); }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/40ba9005d371e22c645fac61606ebaf2ca01e79f/ConcreteTextNode.java/clean/sources/org/apache/batik/refimpl/gvt/ConcreteTextNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12383,
336,
21805,
1435,
95,
3639,
368,
670,
3649,
16,
3180,
732,
2549,
22107,
358,
4862,
3639,
368,
16830,
907,
3420,
1042,
3639,
2252,
18,
2219,
88,
18,
5776,
18,
1528,
3744,
3511,
5411,
273,
394,
2252,
18,
2219,
88,
18,
5776,
18,
1528,
3744,
12,
1077,
77,
16,
5375,
394,
2252,
18,
2219,
88,
18,
5776,
18,
5711,
3420,
1042,
12,
2704,
23906,
558,
4059,
9334,
4766,
8227,
638,
16,
4766,
8227,
638,
10019,
3639,
13264,
22,
40,
4972,
273,
3511,
18,
588,
5694,
5621,
3639,
1645,
2229,
273,
2117,
18,
588,
60,
5621,
3639,
1645,
13806,
273,
2117,
18,
588,
61,
5621,
3639,
309,
261,
16215,
422,
27285,
18,
49,
25578,
13,
288,
5411,
2229,
3947,
4972,
18,
588,
2384,
1435,
19,
22,
31,
3639,
289,
469,
309,
261,
16215,
422,
27285,
18,
4415,
13,
288,
5411,
2229,
3947,
4972,
18,
588,
2384,
5621,
3639,
289,
3639,
23906,
558,
4059,
268,
273,
23906,
558,
4059,
18,
588,
12818,
1442,
12,
978,
16,
13806,
1769,
540,
327,
3511,
18,
588,
21805,
12,
88,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12383,
336,
21805,
1435,
95,
3639,
368,
670,
3649,
16,
3180,
732,
2549,
22107,
358,
4862,
3639,
368,
16830,
907,
3420,
1042,
3639,
2252,
18,
2219,
88,
18,
5776,
18,
1528,
3744,
3511,
5411,
273,
394,
2252,
18,
2219,
88,
18,
5776,
18,
1528,
3744,
12,
1077,
77,
16,
5375,
394,
2252,
18,
2219,
88,
18,
5776,
18,
5711,
3420,
1042,
12,
2704,
23906,
558,
4059,
9334,
4766,
8227,
638,
16,
4766,
8227,
638,
10019,
3639,
13264,
22,
40,
4972,
273,
3511,
18,
588,
5694,
5621,
3639,
1645,
2229,
273,
2117,
18,
588,
60,
5621,
3639,
1645,
13806,
273,
2117,
18,
588,
61,
5621,
3639,
309,
261,
16215,
422,
27285,
18,
49,
25578,
13,
288,
5411,
2229,
2
] |
if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next();
|
if (kind == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ ASTExpression left =(ASTExpression)lhs; if(left == null) throw new ASTSemanticException(); info = (TypeInfo)left.getResultType().getResult();
|
protected List getExpressionResultType(IASTExpression expression, ISymbol symbol)throws ASTSemanticException{ List result = new ArrayList(); TypeInfo info = new TypeInfo(); try { // types that resolve to void if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_EMPTY) || (expression.getExpressionKind() == IASTExpression.Kind.THROWEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DOT_DESTRUCTOR) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_ARROW_DESTRUCTOR) || (expression.getExpressionKind() == IASTExpression.Kind.DELETE_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.DELETE_VECTORCASTEXPRESSION) ){ info.setType(TypeInfo.t_void); result.add(info); return result; } // types that resolve to int if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_INTEGER_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT) ){ info.setType(TypeInfo.t_int); result.add(info); return result; } // size of is always unsigned int if ((expression.getExpressionKind() == IASTExpression.Kind.UNARY_SIZEOF_TYPEID) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_SIZEOF_UNARYEXPRESSION) ){ info.setType(TypeInfo.t_int); info.setBit(true, TypeInfo.isUnsigned); result.add(info); return result; } // types that resolve to char if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_CHAR_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR)){ info.setType(TypeInfo.t_char); result.add(info); return result; } // types that resolve to float if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_FLOAT_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT)){ info.setType(TypeInfo.t_float); result.add(info); return result; } // types that resolve to string if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_STRING_LITERAL){ info.setType(TypeInfo.t_char); info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); result.add(info); return result; } // types that resolve to double if( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE){ info.setType(TypeInfo.t_double); result.add(info); return result; } // types that resolve to wchar if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART){ info.setType(TypeInfo.t_wchar_t); result.add(info); return result; } // types that resolve to bool if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_EQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_NOTEQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALOREXPRESSION) ) { info.setType(TypeInfo.t_bool); result.add(info); return result; } // short added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isShort); result.add(info); return result; } // long added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isLong); result.add(info); return result; } // signed added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(false, TypeInfo.isUnsigned); result.add(info); return result; } // unsigned added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isUnsigned); result.add(info); return result; } // Id expressions resolve to t_type, symbol already looked up if( expression.getExpressionKind() == IASTExpression.Kind.ID_EXPRESSION ) { info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); result.add(info); return result; } // an ampersand implies a pointer operation of type reference if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.addressof ); } result.add(info); return result; } // a star implies a pointer operation of type pointer if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_STAR_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null)&& (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.indirection ); } result.add(info); return result; } // subscript if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SUBSCRIPT){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addOperatorExpression( TypeInfo.OperatorExpression.subscript ); } result.add(info); return result; } // the dot and the arrow resolves to the type of the member if ((expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DOT_IDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_ARROW_IDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DOT_TEMPL_IDEXPRESS) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_ARROW_TEMPL_IDEXP) ){ if(symbol != null){ info = new TypeInfo(symbol.getTypeInfo()); } result.add(info); return result; } // the dot* and the arrow* are the same as dot/arrow + unary star if ((expression.getExpressionKind() == IASTExpression.Kind.PM_DOTSTAR) || (expression.getExpressionKind() == IASTExpression.Kind.PM_ARROWSTAR) ){ List rhsResult = ((ASTExpression)expression.getRHSExpression()).getResultType(); if( rhsResult.iterator().hasNext()) info = (TypeInfo)rhsResult.iterator().next(); if (info != null){ info.addOperatorExpression( TypeInfo.OperatorExpression.indirection ); } if(symbol != null){ info.setTypeSymbol(symbol); } result.add(info); return result; } // this if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_THIS){ if(symbol != null) { info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); info.addOperatorExpression( TypeInfo.OperatorExpression.addressof ); } result.add(info); return result; } // conditional if (expression.getExpressionKind() == IASTExpression.Kind.CONDITIONALEXPRESSION){ ASTExpression right = (ASTExpression)expression.getRHSExpression(); ASTExpression third = (ASTExpression)expression.getThirdExpression(); if((right != null ) && (third != null)){ TypeInfo rightType =(TypeInfo)right.getResultType().iterator().next(); TypeInfo thirdType =(TypeInfo)third.getResultType().iterator().next(); info = conditionalExpressionConversions(rightType, thirdType); } result.add(info); return result; } // new if( ( expression.getExpressionKind() == IASTExpression.Kind.NEW_TYPEID ) || ( expression.getExpressionKind() == IASTExpression.Kind.NEW_NEWTYPEID ) ) { try { info = expression.getTypeId().getTypeSymbol().getTypeInfo(); info.addPtrOperator( new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); } catch (ASTNotImplementedException e) { // will never happen } result.add(info); return result; } // types that use the usual arithmetic conversions if((expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MULTIPLY) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_DIVIDE) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MODULUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.ANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.EXCLUSIVEOREXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.INCLUSIVEOREXPRESSION) ){ ASTExpression left = (ASTExpression)expression.getLHSExpression(); ASTExpression right = (ASTExpression)expression.getRHSExpression(); if((left != null ) && (right != null)){ TypeInfo leftType =(TypeInfo)left.getResultType().iterator().next(); TypeInfo rightType =(TypeInfo)right.getResultType().iterator().next(); info = usualArithmeticConversions(leftType, rightType); } else throw new ASTSemanticException(); result.add(info); return result; } // types that resolve to LHS types if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BRACKETED_EXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPEID_EXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_PLUS_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_MINUS_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_NOT_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_TILDE_CASTEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_LEFT) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_RIGHT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_NORMAL) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MULT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_DIV) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MOD) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_LSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_RSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_AND) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_OR) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_XOR) ){ ASTExpression left = (ASTExpression)expression.getLHSExpression(); if(left != null){ info =(TypeInfo)left.getResultType().iterator().next(); } result.add(info); return result; } // the cast changes the types to the type looked up in typeId = symbol if(( expression.getExpressionKind() == IASTExpression.Kind.CASTEXPRESSION ) || ( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DYNAMIC_CAST ) || ( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_STATIC_CAST ) || ( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_REINTERPRET_CAST ) || ( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_CONST_CAST ) ){ try{ info = new TypeInfo(expression.getTypeId().getTypeSymbol().getTypeInfo()); }catch (Exception e){ } result.add(info); return result; } // a list collects all types of left and right hand sides if(expression.getExpressionKind() == IASTExpression.Kind.EXPRESSIONLIST){ if(expression.getLHSExpression() != null){ Iterator i = ((ASTExpression)expression.getLHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } if(expression.getRHSExpression() != null){ Iterator i = ((ASTExpression)expression.getRHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } return result; } // a function call type is the return type of the function if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ if(symbol != null){ IParameterizedSymbol psymbol = (IParameterizedSymbol) symbol; ISymbol returnTypeSymbol = psymbol.getReturnType(); info.setType(returnTypeSymbol.getType()); info.setTypeSymbol(returnTypeSymbol); } result.add(info); return result; } if( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPEID_TYPEID ) { IASTTypeId typeId = expression.getTypeId(); try { info = typeId.getTypeSymbol().getTypeInfo(); } catch (ASTNotImplementedException e) { // will not ever happen from within CompleteParseASTFactory } result.add(info); return result; } if ( ( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPENAME_IDENTIFIER ) || ( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_TYPENAME_TEMPLATEID ) ) { if(symbol != null){ info.setType(TypeInfo.t_type); info.setTypeSymbol(symbol); } result.add(info); return result; } } catch (Exception e){ throw new ASTSemanticException(); } return result; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4d7450e8fb4797594ad40f854e825fc886c0798b/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
16183,
1253,
559,
12,
45,
9053,
2300,
2652,
16,
4437,
3284,
3273,
13,
15069,
9183,
13185,
9941,
503,
95,
25083,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
17305,
1123,
273,
394,
1412,
966,
5621,
202,
202,
698,
288,
1082,
202,
759,
1953,
716,
2245,
358,
918,
1082,
202,
430,
14015,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
18864,
67,
13625,
13,
1082,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
2455,
11226,
19111,
13,
1875,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
3798,
4563,
67,
17591,
67,
1639,
13915,
916,
13,
1875,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
3798,
4563,
67,
985,
11226,
67,
1639,
13915,
916,
13,
1082,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
6460,
67,
21871,
19111,
13,
1082,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
6460,
67,
3412,
22727,
21871,
19111,
13,
1082,
202,
15329,
9506,
202,
1376,
18,
542,
559,
12,
17305,
18,
88,
67,
6459,
1769,
9506,
202,
2088,
18,
1289,
12,
1376,
1769,
9506,
202,
2463,
563,
31,
1082,
202,
97,
1082,
202,
759,
1953,
716,
2245,
358,
509,
1082,
202,
430,
14015,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
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,
987,
16183,
1253,
559,
12,
45,
9053,
2300,
2652,
16,
4437,
3284,
3273,
13,
15069,
9183,
13185,
9941,
503,
95,
25083,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
17305,
1123,
273,
394,
1412,
966,
5621,
202,
202,
698,
288,
1082,
202,
759,
1953,
716,
2245,
358,
918,
1082,
202,
430,
14015,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
18864,
67,
13625,
13,
1082,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
2455,
11226,
19111,
13,
1875,
202,
20081,
261,
8692,
18,
588,
2300,
5677,
1435,
422,
467,
9053,
2300,
18,
5677,
18,
3798,
4563,
67,
17591,
67,
1639,
13915,
916,
2
] |
float F0 = 0;
|
double leftF0 = 0.0d; double prevRightF0 = 0.0d; double F0 = 0.0d;
|
public boolean compute() { System.out.println("---- Making the join cost file\n\n"); System.out.println("Base directory: " + db.baseName() + "\n"); System.out.println("Mel Cepstrum timeline: " + db.melcepTimelineFileName() + "\n"); System.out.println("Outputting join cost file to: " + db.joinCostFeaturesFileName() + "\n"); /* Export the basename list into an array of strings */ String[] baseNameArray = bnl.getListAsArray(); /* Read the number of mel cepstra from the first melcep file */ /* TODO: this is a horrible hack, the number of mel cepstrum coeffs should be passed * in a more intelligent way. */ ESTTrackReader firstMcepFile = new ESTTrackReader( db.melcepDirName() + baseNameArray[0] + db.melcepExt()); int numberOfMelcep = firstMcepFile.getNumChannels(); firstMcepFile = null; // Free the memory taken by the file /* Make a new join cost file to write to */ DataOutputStream jcf = null; try { jcf = new DataOutputStream( new BufferedOutputStream( new FileOutputStream( db.joinCostFeaturesFileName() ) ) ); } catch ( FileNotFoundException e ) { throw new RuntimeException( "Can't create the join cost file [" + db.joinCostFeaturesFileName() + "]. The path is probably wrong.", e ); } /**********/ /* HEADER */ /**********/ /* Make a new mary header and ouput it */ MaryHeader hdr = new MaryHeader( MaryHeader.JOINFEATS ); try { hdr.write( jcf ); } catch ( IOException e ) { throw new RuntimeException( "An IOException happened when writing the Mary header to the Join Cost file.", e ); } hdr = null; /****************************/ /* WEIGHTING FUNCTION SPECS */ /****************************/ /* Make a weight vector */ int numberOfFeatures = numberOfMelcep + 1; float[] fw = new float[numberOfFeatures]; // +1 accounts for the addition of F0 for ( int i = 0; i < fw.length; i++ ) { fw[i] = 1.0f; } /* Make a weighting function vector */ String[] wfun = new String[numberOfFeatures]; for ( int i = 0; i < (numberOfMelcep); i++ ) { wfun[i] = "linear"; } wfun[numberOfMelcep+1] = "step 20%"; // This one is for F0 /* Output those vectors */ try { jcf.writeInt( fw.length ); for ( int i = 0; i < fw.length; i++ ) { jcf.writeFloat( fw[i] ); jcf.writeUTF( wfun[i] ); } } catch ( IOException e ) { throw new RuntimeException( "An IOException happened when writing the weighting specifications to the Join Cost file.", e ); } /* Clean the house */ fw = null; wfun = null; /************/ /* FEATURES */ /************/ /* Open the melcep timeline */ TimelineReader mcep = new TimelineReader( db.melcepTimelineFileName() ); /* Open the unit file */ UnitFileReader ufr = new UnitFileReader( db.unitFileName() ); /* Start writing the features: */ try { /* - write the number of features: */ jcf.writeInt( ufr.getNumberOfUnits() ); /* - for each unit, write the left and right features: */ Datagram[] buff = null; long[] periods = new long[5]; long median = 0; float F0 = 0; int unitSampleFreq = ufr.getSampleRate(); long unitPosition = 0l; int unitDuration = 0; for ( int i = 0; i < ufr.getNumberOfUnits(); i++ ) { /* LEFT */ /* Get the left join cost feature datagram and pipe it out */ buff = mcep.getDatagrams( unitPosition, 5, unitSampleFreq ); jcf.write( buff[0].getData(), 0, buff[0].getData().length ); /* Make the left F0 and write it out */ for ( int j = 0; j < 5; j++ ) { periods[j] = buff[i].duration; } Arrays.sort( periods ); median = periods[2]; F0 = (float)( (double)(unitSampleFreq) / (double)(median) ); jcf.writeFloat( F0 ); System.out.print( "At unit [" + i + "] Left F0 is [" + F0 + "]" ); /* RIGHT*/ /* Get the right join cost feature datagram and pipe it out */ buff = mcep.getDatagrams( unitPosition + unitDuration - 1, 1, unitSampleFreq ); /* Note: in the above line, the -1 insures that we are getting the last melcep frame * of the current unit and not the first melcep frame of the next one. */ jcf.write( buff[0].getData(), 0, buff[0].getData().length ); /* Make the right F0 and write it out */ for ( int j = 0; j < 5; j++ ) { periods[j] = buff[i].duration; } Arrays.sort( periods ); median = periods[2]; F0 = (float)( (double)(unitSampleFreq) / (double)(median) ); jcf.writeFloat( F0 ); System.out.println( "and Right F0 is [" + F0 + "]" ); } } catch ( IOException e ) { throw new RuntimeException( "An IOException happened when writing the features to the Join Cost file.", e ); } System.out.println("---- Join Cost file done.\n\n"); System.out.println("Number of processed units: " + ufr.getNumberOfUnits() ); return( true ); }
|
49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/863a435e1e81a31023f567a49dc521436d84df27/JoinCostFileMaker.java/clean/java/de/dfki/lt/mary/unitselection/voiceimport_reorganized/JoinCostFileMaker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3671,
1435,
565,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
553,
490,
6159,
326,
1233,
6991,
585,
64,
82,
64,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
2171,
1867,
30,
315,
397,
1319,
18,
1969,
461,
1435,
397,
1548,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
49,
292,
385,
881,
701,
379,
18316,
30,
315,
397,
1319,
18,
81,
292,
311,
84,
31914,
4771,
1435,
397,
1548,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
1447,
1787,
1233,
6991,
585,
358,
30,
315,
397,
1319,
18,
5701,
8018,
8696,
4771,
1435,
397,
1548,
82,
8863,
7734,
1748,
11054,
326,
4882,
666,
1368,
392,
526,
434,
2064,
1195,
3639,
514,
8526,
16162,
1076,
273,
324,
14039,
18,
588,
682,
19196,
5621,
7734,
1748,
2720,
326,
1300,
434,
312,
292,
276,
881,
701,
69,
628,
326,
1122,
312,
292,
311,
84,
585,
1195,
3639,
1748,
2660,
30,
333,
353,
279,
29404,
86,
1523,
11769,
16,
326,
1300,
434,
312,
292,
276,
881,
701,
379,
16530,
1410,
506,
2275,
540,
380,
316,
279,
1898,
509,
1165,
360,
319,
4031,
18,
1195,
3639,
512,
882,
4402,
2514,
1122,
49,
311,
84,
812,
273,
394,
512,
882,
4402,
2514,
12,
1319,
18,
81,
292,
311,
84,
28780,
1435,
397,
16162,
1076,
63,
20,
65,
397,
1319,
18,
81,
292,
311,
84,
2482,
10663,
3639,
509,
7922,
49,
292,
311,
84,
273,
1122,
49,
311,
84,
812,
18,
588,
2578,
10585,
5621,
3639,
1122,
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,
3671,
1435,
565,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
553,
490,
6159,
326,
1233,
6991,
585,
64,
82,
64,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
2171,
1867,
30,
315,
397,
1319,
18,
1969,
461,
1435,
397,
1548,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
49,
292,
385,
881,
701,
379,
18316,
30,
315,
397,
1319,
18,
81,
292,
311,
84,
31914,
4771,
1435,
397,
1548,
82,
8863,
3639,
2332,
18,
659,
18,
8222,
2932,
1447,
1787,
1233,
6991,
585,
358,
30,
315,
397,
1319,
18,
5701,
8018,
8696,
4771,
1435,
397,
1548,
82,
8863,
7734,
1748,
11054,
326,
4882,
666,
1368,
392,
526,
434,
2064,
1195,
3639,
514,
8526,
2
] |
return getFolderDisplay().selectMessage(messageNumber); }
|
return getFolderDisplay().selectMessage(messageNumber); }
|
public int selectMessage(int messageNumber) { return getFolderDisplay().selectMessage(messageNumber); }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/338fc940d24cbb3201f1e5e4afc71fc9aac0ee21/PreviewFolderPanel.java/clean/net/suberic/pooka/gui/PreviewFolderPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2027,
1079,
12,
474,
883,
1854,
13,
288,
202,
2463,
29001,
4236,
7675,
4025,
1079,
12,
2150,
1854,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2027,
1079,
12,
474,
883,
1854,
13,
288,
202,
2463,
29001,
4236,
7675,
4025,
1079,
12,
2150,
1854,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound { org.quickfix.field.SymbolSfx value = new org.quickfix.field.SymbolSfx();
|
public quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound { quickfix.field.SymbolSfx value = new quickfix.field.SymbolSfx();
|
public org.quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound { org.quickfix.field.SymbolSfx value = new org.quickfix.field.SymbolSfx(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityList.java/buggy/src/java/src/quickfix/fix44/SecurityList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
18712,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
18712,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ringing.setHeader(createRiContact());
|
ringing.setHeader(createTiContact());
|
public void testClientDialogStates() { try { Request invite = createTiInviteRequest(null, null, null); ClientTransaction tran = null; //Send an invite request try { eventCollector.collectRequestEvent(riSipProvider); tran = tiSipProvider.getNewClientTransaction(invite); tran.sendRequest(); } catch (TooManyListenersException e) { throw new TckInternalError( "Failed to register a listener with the RI", e); } catch (SipException e) { throw new TiUnexpectedError( "Failed to send initial invite request", e); } //Wait for the invite to arrive waitForMessage(); RequestEvent inviteReqEvt = eventCollector.extractCollectedRequestEvent(); if (inviteReqEvt == null || inviteReqEvt.getRequest() == null) throw new TiUnexpectedError("The TI did not send the initial invite request"); //get the dialog Dialog dialog = tran.getDialog(); //We should have a null state here assertNull( "A dialog passed into the " + dialog.getState() + " state before recieving any response!", dialog.getState()); //We will now send RINGING response and see that the Dialog enters an early state //start listening for the response try { eventCollector.collectResponseEvent(tiSipProvider); } catch (TooManyListenersException e) { throw new TiUnexpectedError( "Failed to register a SipListener with the TI.", e); } Response ringing = null; try { ringing = riMessageFactory.createResponse( Response.RINGING, inviteReqEvt.getRequest()); ((ToHeader) ringing.getHeader(ToHeader.NAME)).setTag( Integer.toString(hashCode())); // BUG: set contact header on dialog-creating response ringing.setHeader(createRiContact()); riSipProvider.sendResponse(ringing); } catch (Exception e) { throw new TckInternalError( "Failed to create and send a RINGING response", e); } waitForMessage(); ResponseEvent ringingRespEvt = eventCollector.extractCollectedResponseEvent(); if (ringingRespEvt == null || ringingRespEvt.getResponse() == null) throw new TiUnexpectedError("The TI did not pass RINGING response to the TU."); //The dialog should now be in its early state. assertEquals( "The Dialog did not pass into the early state upon reception of a RINGING response", DialogState.EARLY, dialog.getState()); //We will now send OK response and see that the Dialog enters a CONFIRMED state //start listening for the response try { eventCollector.collectResponseEvent(tiSipProvider); } catch (TooManyListenersException e) { throw new TiUnexpectedError( "Failed to register a SipListener with the TI.", e); } Response ok = null; try { ok = riMessageFactory.createResponse( Response.OK, inviteReqEvt.getRequest()); ((ToHeader) ok.getHeader(ToHeader.NAME)).setTag( Integer.toString(hashCode())); // BUG: set contact header on dialog-creating response ok.setHeader(createRiContact()); riSipProvider.sendResponse(ok); } catch (Exception e) { throw new TckInternalError( "Failed to create and send a OK response", e); } waitForMessage(); ResponseEvent okRespEvt = eventCollector.extractCollectedResponseEvent(); if (okRespEvt == null || okRespEvt.getResponse() == null) throw new TiUnexpectedError("The TI did not pass OK response to the TU."); //The dialog should now be in its confirmed state. assertEquals( "The Dialog did not pass into the CONFIRMED state upon reception of an OK response", DialogState.CONFIRMED, dialog.getState()); //Say bye and go COMPLETED try { Request bye = dialog.createRequest(Request.BYE); ClientTransaction byeTran = tiSipProvider.getNewClientTransaction(bye); dialog.sendRequest(byeTran); } catch (SipException e) { throw new TiUnexpectedError( "Failed to create and send a BYE request using a dialog.", e); } assertTrue( "The dialog did not pass into a final (COMPLETED or TERMINATED) state after sending a BYE.", DialogState.COMPLETED.equals(dialog.getState()) || DialogState.TERMINATED.equals(dialog.getState())); } catch (Throwable exc) { exc.printStackTrace(); fail(exc.getClass().getName() + ": " + exc.getMessage()); } assertTrue(new Exception().getStackTrace()[0].toString(), true); }
|
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/DialogStateMachineTest.java/clean/src/test/tck/msgflow/DialogStateMachineTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1227,
6353,
7629,
1435,
288,
202,
202,
698,
288,
1082,
202,
691,
19035,
273,
752,
56,
77,
22730,
691,
12,
2011,
16,
446,
16,
446,
1769,
1082,
202,
1227,
3342,
13637,
273,
446,
31,
1082,
202,
759,
3826,
392,
19035,
590,
1082,
202,
698,
288,
9506,
202,
2575,
7134,
18,
14676,
691,
1133,
12,
566,
17550,
2249,
1769,
9506,
202,
13171,
273,
11374,
17550,
2249,
18,
588,
30081,
3342,
12,
27154,
1769,
9506,
202,
13171,
18,
4661,
691,
5621,
1082,
202,
97,
1044,
261,
10703,
5594,
5583,
503,
425,
13,
288,
9506,
202,
12849,
394,
399,
363,
20980,
12,
6862,
202,
6,
2925,
358,
1744,
279,
2991,
598,
326,
534,
45,
3113,
6862,
202,
73,
1769,
1082,
202,
97,
1044,
261,
17550,
503,
425,
13,
288,
9506,
202,
12849,
394,
399,
77,
7762,
668,
12,
6862,
202,
6,
2925,
358,
1366,
2172,
19035,
590,
3113,
6862,
202,
73,
1769,
1082,
202,
97,
1082,
202,
759,
5480,
364,
326,
19035,
358,
2454,
688,
1082,
202,
7048,
1290,
1079,
5621,
1082,
202,
691,
1133,
19035,
6113,
30990,
273,
9506,
202,
2575,
7134,
18,
8004,
10808,
329,
691,
1133,
5621,
1082,
202,
430,
261,
27154,
6113,
30990,
422,
446,
747,
19035,
6113,
30990,
18,
588,
691,
1435,
422,
446,
13,
9506,
202,
12849,
394,
399,
77,
7762,
668,
2932,
1986,
399,
45,
5061,
486,
1366,
326,
2172,
19035,
590,
8863,
1082,
202,
759,
588,
326,
6176,
1082,
202,
6353,
6176,
273,
13637,
18,
588,
6353,
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,
1227,
6353,
7629,
1435,
288,
202,
202,
698,
288,
1082,
202,
691,
19035,
273,
752,
56,
77,
22730,
691,
12,
2011,
16,
446,
16,
446,
1769,
1082,
202,
1227,
3342,
13637,
273,
446,
31,
1082,
202,
759,
3826,
392,
19035,
590,
1082,
202,
698,
288,
9506,
202,
2575,
7134,
18,
14676,
691,
1133,
12,
566,
17550,
2249,
1769,
9506,
202,
13171,
273,
11374,
17550,
2249,
18,
588,
30081,
3342,
12,
27154,
1769,
9506,
202,
13171,
18,
4661,
691,
5621,
1082,
202,
97,
1044,
261,
10703,
5594,
5583,
503,
425,
13,
288,
9506,
202,
12849,
394,
399,
363,
20980,
12,
6862,
202,
6,
2925,
358,
1744,
279,
2991,
598,
326,
534,
45,
3113,
6862,
202,
2
] |
public org.quickfix.field.EventText getEventText() throws FieldNotFound { org.quickfix.field.EventText value = new org.quickfix.field.EventText();
|
public quickfix.field.EventText getEventText() throws FieldNotFound { quickfix.field.EventText value = new quickfix.field.EventText();
|
public org.quickfix.field.EventText getEventText() throws FieldNotFound { org.quickfix.field.EventText value = new org.quickfix.field.EventText(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceReport.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
9832,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
9832,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MylarTaskListPlugin.getTaskListManager().setReminder( dateRangeActivityDelegate.getCorrespondingTask(), reminderEditor.getReminderDate());
|
Date newReminder = reminderEditor.getReminderDate(); if (newReminder != null) { MylarTaskListPlugin.getTaskListManager().setReminder( dateRangeActivityDelegate.getCorrespondingTask(), newReminder); }
|
public void applyEditorValue() { Object selection = ((IStructuredSelection) treeViewer.getSelection()).getFirstElement(); if (selection instanceof DateRangeActivityDelegate) { // ((ITask) // selection).setReminderDate(reminderEditor.getReminderDate()); // treeViewer.refresh(); DateRangeActivityDelegate dateRangeActivityDelegate = (DateRangeActivityDelegate) selection; MylarTaskListPlugin.getTaskListManager().setReminder( dateRangeActivityDelegate.getCorrespondingTask(), reminderEditor.getReminderDate()); // MylarTaskListPlugin.getTaskListManager().notifyLocalInfoChanged((ITask) // selection); } }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/04d123ea04c5ee7302fae6f7bff0ab593c1f5eb2/TaskActivityView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskActivityView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2230,
6946,
620,
1435,
288,
9506,
202,
921,
4421,
273,
14015,
45,
30733,
6233,
13,
2151,
18415,
18,
588,
6233,
1435,
2934,
588,
3759,
1046,
5621,
9506,
202,
430,
261,
10705,
1276,
2167,
2655,
6193,
9586,
13,
288,
6862,
202,
759,
14015,
1285,
835,
13,
6862,
202,
759,
4421,
2934,
542,
1933,
14055,
1626,
12,
2764,
14055,
6946,
18,
588,
1933,
14055,
1626,
10663,
6862,
202,
759,
2151,
18415,
18,
9144,
5621,
6862,
202,
1626,
2655,
6193,
9586,
1509,
2655,
6193,
9586,
273,
261,
1626,
2655,
6193,
9586,
13,
4421,
31,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
542,
1933,
14055,
12,
6862,
1082,
202,
712,
2655,
6193,
9586,
18,
588,
6217,
17863,
310,
2174,
9334,
849,
14055,
6946,
18,
588,
1933,
14055,
1626,
10663,
6862,
202,
759,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
12336,
2042,
966,
5033,
12443,
1285,
835,
13,
6862,
202,
759,
4421,
1769,
9506,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
2230,
6946,
620,
1435,
288,
9506,
202,
921,
4421,
273,
14015,
45,
30733,
6233,
13,
2151,
18415,
18,
588,
6233,
1435,
2934,
588,
3759,
1046,
5621,
9506,
202,
430,
261,
10705,
1276,
2167,
2655,
6193,
9586,
13,
288,
6862,
202,
759,
14015,
1285,
835,
13,
6862,
202,
759,
4421,
2934,
542,
1933,
14055,
1626,
12,
2764,
14055,
6946,
18,
588,
1933,
14055,
1626,
10663,
6862,
202,
759,
2151,
18415,
18,
9144,
5621,
6862,
202,
1626,
2655,
6193,
9586,
1509,
2655,
6193,
9586,
273,
261,
1626,
2655,
6193,
9586,
13,
4421,
31,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
542,
1933,
14055,
12,
6862,
1082,
202,
712,
2655,
6193,
9586,
2
] |
public DatabaseRetriever() {
|
public DatabaseRetriever() {
|
public DatabaseRetriever() { try { this.db = new Database(); this.con = DriverManager.getConnection(db.getURL()); } catch (Exception e) { System.err.println ("Error Configuring Database: "+e.getMessage()); } }
|
8719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8719/efb83d08bf3214ba362adb9486345c128a00bae7/DatabaseRetriever.java/clean/usage/java/reports/source/src/org/globus/usage/report/common/DatabaseRetriever.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5130,
30801,
1435,
288,
1850,
775,
288,
5411,
333,
18,
1966,
273,
394,
5130,
5621,
5411,
333,
18,
591,
273,
9396,
1318,
18,
588,
1952,
12,
1966,
18,
588,
1785,
10663,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
7566,
668,
1903,
4017,
5130,
30,
13773,
73,
18,
24906,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
5130,
30801,
1435,
288,
1850,
775,
288,
5411,
333,
18,
1966,
273,
394,
5130,
5621,
5411,
333,
18,
591,
273,
9396,
1318,
18,
588,
1952,
12,
1966,
18,
588,
1785,
10663,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
7566,
668,
1903,
4017,
5130,
30,
13773,
73,
18,
24906,
10663,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private boolean ensureElementsCapacity(int chunk) { try { return fElements[chunk][0] == null; } catch (ArrayIndexOutOfBoundsException ex) {
|
private void ensureElementsCapacity(int chunk) { if (fElements.length <= chunk) {
|
private boolean ensureElementsCapacity(int chunk) { try { return fElements[chunk][0] == null; } catch (ArrayIndexOutOfBoundsException ex) { fElements = resize(fElements, fElements.length * 2); } catch (NullPointerException ex) { // ignore } fElements[chunk] = new ElementNSImpl[CHUNK_SIZE]; return true; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/e4458009a887b61d3361568f06ed82bb3b3137fd/DOMNodePool.java/buggy/src/org/apache/xerces/impl/xs/dom/DOMNodePool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3387,
3471,
7437,
12,
474,
2441,
13,
288,
3639,
775,
288,
5411,
327,
284,
3471,
63,
6551,
6362,
20,
65,
422,
446,
31,
3639,
289,
1044,
261,
1076,
30548,
431,
13,
288,
5411,
284,
3471,
273,
7041,
12,
74,
3471,
16,
284,
3471,
18,
2469,
380,
576,
1769,
3639,
289,
1044,
261,
2041,
9992,
431,
13,
288,
5411,
368,
2305,
3639,
289,
3639,
284,
3471,
63,
6551,
65,
273,
394,
3010,
3156,
2828,
63,
26464,
67,
4574,
15533,
3639,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
1250,
3387,
3471,
7437,
12,
474,
2441,
13,
288,
3639,
775,
288,
5411,
327,
284,
3471,
63,
6551,
6362,
20,
65,
422,
446,
31,
3639,
289,
1044,
261,
1076,
30548,
431,
13,
288,
5411,
284,
3471,
273,
7041,
12,
74,
3471,
16,
284,
3471,
18,
2469,
380,
576,
1769,
3639,
289,
1044,
261,
2041,
9992,
431,
13,
288,
5411,
368,
2305,
3639,
289,
3639,
284,
3471,
63,
6551,
65,
273,
394,
3010,
3156,
2828,
63,
26464,
67,
4574,
15533,
3639,
327,
638,
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
] |
? 0 : commentStart.length());
|
? 0 : commentStart.length());
|
public void rangeComment() { String commentStart = buffer.getContextSensitiveProperty(caret,"commentStart"); String commentEnd = buffer.getContextSensitiveProperty(caret,"commentEnd"); if(!buffer.isEditable() || commentStart == null || commentEnd == null || commentStart.length() == 0 || commentEnd.length() == 0) { getToolkit().beep(); return; } commentStart = commentStart + ' '; commentEnd = ' ' + commentEnd; try { buffer.beginCompoundEdit(); Selection[] selection = getSelection(); if(selection.length == 0) { int oldCaret = caret; buffer.insert(caret, commentStart); buffer.insert(caret, commentEnd); setCaretPosition(oldCaret + commentStart.length()); } for(int i = 0; i < selection.length; i++) { Selection s = selection[i]; if(s instanceof Selection.Range) { buffer.insert(s.start, commentStart); buffer.insert(s.end, commentEnd); } else if(s instanceof Selection.Rect) { for(int j = s.startLine; j <= s.endLine; j++) { buffer.insert(s.getStart(buffer,j), commentStart); int end = s.getEnd(buffer,j) + (j == s.endLine ? 0 : commentStart.length()); buffer.insert(end,commentEnd); } } } selectNone(); } finally { buffer.endCompoundEdit(); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/e951c46fbd80951980a4780408426b91f6cf1153/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1048,
4469,
1435,
202,
95,
202,
202,
780,
2879,
1685,
273,
1613,
18,
29120,
14220,
1396,
12,
71,
20731,
10837,
3469,
1685,
8863,
202,
202,
780,
2879,
1638,
273,
1613,
18,
29120,
14220,
1396,
12,
71,
20731,
10837,
3469,
1638,
8863,
202,
202,
430,
12,
5,
4106,
18,
291,
15470,
1435,
747,
2879,
1685,
422,
446,
747,
2879,
1638,
422,
446,
1082,
202,
20081,
2879,
1685,
18,
2469,
1435,
422,
374,
747,
2879,
1638,
18,
2469,
1435,
422,
374,
13,
202,
202,
95,
1082,
202,
588,
6364,
8691,
7675,
2196,
881,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
3469,
1685,
273,
2879,
1685,
397,
296,
12386,
202,
202,
3469,
1638,
273,
296,
296,
397,
2879,
1638,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4106,
18,
10086,
16835,
4666,
5621,
1082,
202,
6233,
8526,
4421,
273,
23204,
5621,
1082,
202,
430,
12,
10705,
18,
2469,
422,
374,
13,
1082,
202,
95,
9506,
202,
474,
1592,
39,
20731,
273,
21683,
31,
9506,
202,
4106,
18,
6387,
12,
71,
20731,
16,
6862,
202,
3469,
1685,
1769,
9506,
202,
4106,
18,
6387,
12,
71,
20731,
16,
6862,
202,
3469,
1638,
1769,
9506,
202,
542,
39,
20731,
2555,
12,
1673,
39,
20731,
397,
2879,
1685,
18,
2469,
10663,
1082,
202,
97,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
4421,
18,
2469,
31,
277,
27245,
1082,
202,
95,
9506,
202,
6233,
272,
273,
4421,
63,
77,
15533,
9506,
202,
430,
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,
1048,
4469,
1435,
202,
95,
202,
202,
780,
2879,
1685,
273,
1613,
18,
29120,
14220,
1396,
12,
71,
20731,
10837,
3469,
1685,
8863,
202,
202,
780,
2879,
1638,
273,
1613,
18,
29120,
14220,
1396,
12,
71,
20731,
10837,
3469,
1638,
8863,
202,
202,
430,
12,
5,
4106,
18,
291,
15470,
1435,
747,
2879,
1685,
422,
446,
747,
2879,
1638,
422,
446,
1082,
202,
20081,
2879,
1685,
18,
2469,
1435,
422,
374,
747,
2879,
1638,
18,
2469,
1435,
422,
374,
13,
202,
202,
95,
1082,
202,
588,
6364,
8691,
7675,
2196,
881,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
3469,
1685,
273,
2879,
1685,
397,
296,
12386,
202,
202,
3469,
1638,
273,
296,
2
] |
VTDBuffer = new FastLongBuffer(a, ba.length >> (a+1));
|
VTDBuffer = new FastLongBuffer(a, len>> (a+1));
|
public void setDoc(byte[] ba) { int a; XMLDoc = ba; docOffset = offset = 0; docLen = ba.length; endOffset = docLen; if (docLen <= 1024) { a = 1024; //set the floor } else if (docLen <= 1024 * 16 * 4) { a = 2048; } else if (docLen <= 1024 * 256) { a = 1024 * 4; } else { a = 1 << 15; } //VTDBuffer = new FastLongBuffer(a); //l1Buffer = new FastLongBuffer(128); //l2Buffer = new FastLongBuffer(512); //l3Buffer = new FastIntBuffer(2048); VTDBuffer = new FastLongBuffer(a, ba.length >> (a+1)); l1Buffer = new FastLongBuffer(7); l2Buffer = new FastLongBuffer(9); l3Buffer = new FastIntBuffer(11); vtdSize = l1Size = l2Size = l3Size = 0; }
|
3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/c8845c48836be18068cdf05306d39462631b70f2/VTDGen.java/buggy/com/ximpleware/VTDGen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
1759,
12,
7229,
8526,
9846,
13,
288,
202,
202,
474,
279,
31,
202,
202,
4201,
1759,
273,
9846,
31,
202,
202,
2434,
2335,
273,
1384,
273,
374,
31,
202,
202,
2434,
2891,
273,
9846,
18,
2469,
31,
202,
202,
409,
2335,
273,
997,
2891,
31,
202,
202,
430,
261,
2434,
2891,
1648,
6250,
13,
288,
1082,
202,
69,
273,
6250,
31,
368,
542,
326,
6346,
202,
202,
97,
469,
309,
261,
2434,
2891,
1648,
6250,
380,
2872,
380,
1059,
13,
288,
1082,
202,
69,
273,
21907,
31,
202,
202,
97,
469,
309,
261,
2434,
2891,
1648,
6250,
380,
8303,
13,
288,
1082,
202,
69,
273,
6250,
380,
1059,
31,
202,
202,
97,
469,
288,
1082,
202,
69,
273,
404,
2296,
4711,
31,
202,
202,
97,
202,
202,
759,
58,
23409,
1892,
273,
394,
9545,
3708,
1892,
12,
69,
1769,
202,
202,
759,
80,
21,
1892,
273,
394,
9545,
3708,
1892,
12,
10392,
1769,
202,
202,
759,
80,
22,
1892,
273,
394,
9545,
3708,
1892,
12,
13757,
1769,
202,
202,
759,
80,
23,
1892,
273,
394,
9545,
1702,
1892,
12,
21573,
28,
1769,
202,
202,
58,
23409,
1892,
273,
394,
9545,
3708,
1892,
12,
69,
16,
9846,
18,
2469,
1671,
261,
69,
15,
21,
10019,
202,
202,
80,
21,
1892,
273,
394,
9545,
3708,
1892,
12,
27,
1769,
202,
202,
80,
22,
1892,
273,
394,
9545,
3708,
1892,
12,
29,
1769,
202,
202,
80,
23,
1892,
273,
394,
9545,
1702,
1892,
12,
2499,
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,
444,
1759,
12,
7229,
8526,
9846,
13,
288,
202,
202,
474,
279,
31,
202,
202,
4201,
1759,
273,
9846,
31,
202,
202,
2434,
2335,
273,
1384,
273,
374,
31,
202,
202,
2434,
2891,
273,
9846,
18,
2469,
31,
202,
202,
409,
2335,
273,
997,
2891,
31,
202,
202,
430,
261,
2434,
2891,
1648,
6250,
13,
288,
1082,
202,
69,
273,
6250,
31,
368,
542,
326,
6346,
202,
202,
97,
469,
309,
261,
2434,
2891,
1648,
6250,
380,
2872,
380,
1059,
13,
288,
1082,
202,
69,
273,
21907,
31,
202,
202,
97,
469,
309,
261,
2434,
2891,
1648,
6250,
380,
8303,
13,
288,
1082,
202,
69,
273,
6250,
380,
1059,
31,
202,
202,
97,
469,
288,
2
] |
throw MailServiceException.INVALID_REQUEST( "Missing uid in a cancel invite", null);
|
throw ServiceException.INVALID_REQUEST("Missing uid in a cancel invite", null);
|
static ParseMimeMessage.InviteParserResult parseInviteForCancel( Account account, byte itemType, Element inviteElem, TimeZoneMap tzMap, boolean recurrenceIdAllowed, boolean recurAllowed) throws ServiceException { if (tzMap == null) { tzMap = new TimeZoneMap(Provisioning.getInstance().getTimeZone(account)); } Invite cancel = new Invite(ICalTok.CANCEL.toString(), tzMap); CalendarUtils.parseInviteElementCommon( account, itemType, inviteElem, cancel, recurrenceIdAllowed, recurAllowed); String uid = cancel.getUid(); if (uid == null || uid.length() == 0) throw MailServiceException.INVALID_REQUEST( "Missing uid in a cancel invite", null); Invite sanitized = cancelInvite(account, null, false, cancel, cancel.getComment(), cancel.getAttendees(), cancel.getRecurId(), false); ZVCalendar iCal = sanitized.newToICalendar(); String summaryStr = sanitized.getName() != null ? sanitized.getName() : ""; ParseMimeMessage.InviteParserResult toRet = new ParseMimeMessage.InviteParserResult(); toRet.mCal = iCal; toRet.mUid = sanitized.getUid(); toRet.mSummary = summaryStr; toRet.mInvite = sanitized; return toRet; }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6d90d63f55d1e76ea93aaeaef574b5a55e5dfc21/CalendarUtils.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/CalendarUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
2884,
13320,
1079,
18,
22730,
2678,
1253,
1109,
22730,
1290,
6691,
12,
5411,
6590,
2236,
16,
1160,
23080,
16,
3010,
19035,
7498,
16,
16491,
863,
6016,
863,
16,
5411,
1250,
25939,
548,
5042,
16,
1250,
8112,
5042,
13,
5411,
1216,
16489,
288,
3639,
309,
261,
12994,
863,
422,
446,
13,
288,
5411,
6016,
863,
273,
394,
16491,
863,
12,
17485,
18,
588,
1442,
7675,
588,
16760,
12,
4631,
10019,
3639,
289,
3639,
30981,
3755,
273,
394,
30981,
12,
2871,
287,
20477,
18,
25268,
18,
10492,
9334,
6016,
863,
1769,
3639,
5542,
1989,
18,
2670,
22730,
1046,
6517,
12,
7734,
2236,
16,
23080,
16,
19035,
7498,
16,
3755,
16,
25939,
548,
5042,
16,
8112,
5042,
1769,
3639,
514,
4555,
273,
3755,
18,
588,
11994,
5621,
3639,
309,
261,
1911,
422,
446,
747,
4555,
18,
2469,
1435,
422,
374,
13,
5411,
604,
11542,
15133,
18,
9347,
67,
5519,
12,
10792,
315,
4841,
4555,
316,
279,
3755,
19035,
3113,
446,
1769,
3639,
30981,
16611,
273,
5411,
3755,
22730,
12,
4631,
16,
446,
16,
629,
16,
3755,
16,
3755,
18,
588,
4469,
9334,
7682,
3755,
18,
588,
3075,
275,
323,
281,
9334,
3755,
18,
588,
426,
1397,
548,
9334,
7682,
629,
1769,
3639,
2285,
58,
7335,
277,
3005,
273,
16611,
18,
2704,
774,
2871,
287,
2843,
5621,
3639,
514,
4916,
1585,
273,
16611,
18,
17994,
1435,
480,
446,
692,
16611,
18,
17994,
1435,
294,
1408,
31,
3639,
2884,
13320,
1079,
18,
22730,
2678,
1253,
358,
7055,
273,
394,
2884,
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,
2884,
13320,
1079,
18,
22730,
2678,
1253,
1109,
22730,
1290,
6691,
12,
5411,
6590,
2236,
16,
1160,
23080,
16,
3010,
19035,
7498,
16,
16491,
863,
6016,
863,
16,
5411,
1250,
25939,
548,
5042,
16,
1250,
8112,
5042,
13,
5411,
1216,
16489,
288,
3639,
309,
261,
12994,
863,
422,
446,
13,
288,
5411,
6016,
863,
273,
394,
16491,
863,
12,
17485,
18,
588,
1442,
7675,
588,
16760,
12,
4631,
10019,
3639,
289,
3639,
30981,
3755,
273,
394,
30981,
12,
2871,
287,
20477,
18,
25268,
18,
10492,
9334,
6016,
863,
1769,
3639,
5542,
1989,
18,
2670,
22730,
1046,
6517,
12,
7734,
2236,
16,
23080,
16,
19035,
7498,
16,
3755,
16,
25939,
548,
5042,
16,
8112,
5042,
1769,
3639,
514,
2
] |
.appendSeparator(", ", " and ")
|
.appendSeparator(", ", " and ", variants)
|
private PeriodFormat() { iDefault = new PeriodFormatterBuilder() .appendYears() .appendSuffix(" year", " years") .appendSeparator(", ", " and ") .appendMonths() .appendSuffix(" month", " months") .appendSeparator(", ", " and ") .appendWeeks() .appendSuffix(" week", " weeks") .appendSeparator(", ", " and ") .appendDays() .appendSuffix(" day", " days") .appendSeparator(", ", " and ") .appendHours() .appendSuffix(" hour", " hours") .appendSeparator(", ", " and ") .appendMinutes() .appendSuffix(" minute", " minutes") .appendSeparator(", ", " and ") .appendSeconds() .appendSuffix(" second", " seconds") .appendSeparator(", ", " and ") .appendMillis() .appendSuffix(" millisecond", " milliseconds") .toFormatter(); }
|
52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/159f5f78a4ee0145e3f124317de67c9e4d0acb54/PeriodFormat.java/buggy/JodaTime/src/java/org/joda/time/format/PeriodFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
12698,
1630,
1435,
288,
3639,
277,
1868,
273,
394,
12698,
5074,
1263,
1435,
5411,
263,
6923,
21945,
1435,
5411,
263,
6923,
5791,
2932,
3286,
3113,
315,
11387,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
19749,
1435,
5411,
263,
6923,
5791,
2932,
3138,
3113,
315,
8846,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
6630,
87,
1435,
5411,
263,
6923,
5791,
2932,
4860,
3113,
315,
17314,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
9384,
1435,
5411,
263,
6923,
5791,
2932,
2548,
3113,
315,
4681,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
14910,
1435,
5411,
263,
6923,
5791,
2932,
6126,
3113,
315,
7507,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
13050,
1435,
5411,
263,
6923,
5791,
2932,
8044,
3113,
315,
6824,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
6762,
1435,
5411,
263,
6923,
5791,
2932,
2205,
3113,
315,
3974,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
4814,
1435,
5411,
263,
6923,
5791,
2932,
31021,
3113,
315,
10993,
7923,
5411,
263,
869,
5074,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
12698,
1630,
1435,
288,
3639,
277,
1868,
273,
394,
12698,
5074,
1263,
1435,
5411,
263,
6923,
21945,
1435,
5411,
263,
6923,
5791,
2932,
3286,
3113,
315,
11387,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
19749,
1435,
5411,
263,
6923,
5791,
2932,
3138,
3113,
315,
8846,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
6630,
87,
1435,
5411,
263,
6923,
5791,
2932,
4860,
3113,
315,
17314,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
315,
471,
3104,
12935,
13,
5411,
263,
6923,
9384,
1435,
5411,
263,
6923,
5791,
2932,
2548,
3113,
315,
4681,
7923,
5411,
263,
6923,
6581,
2932,
16,
3104,
2
] |
put("Gamma", DataTools.read4SignedBytes(in, little));
|
put("Gamma", in.readInt());
|
protected void initStandardMetadata() { try { Hashtable ifd = ifds[0]; super.initStandardMetadata(); Integer obj = new Integer(0); int offset; Integer k = new Integer(UIC4TAG); long[] temp = (long[]) ifd.get(k); Long[] q = new Long[temp.length]; for (int i=0; i<q.length; i++) q[i] = new Long(temp[i]); if (q == null) offset = -1; Integer w = new Integer(q[1].intValue()); if (w == null) offset = -1; else offset = w.intValue(); if (offset < 0) throw new FormatException("UIC4TAG not found"); in.seek(offset); int currentcode = -1; byte[] toread; TiffRational[] temp2 = (TiffRational[]) ifd.get(new Integer(METAMORPH_ID)); Long[] v = new Long[temp2.length]; for (int i=0; i<v.length; i++) v[i] = new Long(temp2[i].longValue()); if (v == null) throw new FormatException("Metamorph ID not found"); int planes = v[1].intValue(); boolean little = TiffTools.isLittleEndian(ifd); while ((currentcode < 66) && ((in.length() - in.getFilePointer()) > 2)) { currentcode = DataTools.read2SignedBytes(in, little); // variable declarations, because switch is dumb int num, denom; int xnum, xdenom, ynum, ydenom; double xpos, ypos; String thedate, thetime; switch (currentcode) { case 0: String autoscale = DataTools.read4SignedBytes(in, little) == 0 ? "no auto-scaling" : "16-bit to 8-bit scaling"; put("AutoScale", autoscale); break; case 1: put("MinScale", DataTools.read4SignedBytes(in, little)); break; case 2: put("MaxScale", DataTools.read4SignedBytes(in, little)); break; case 3: int calib = DataTools.read4SignedBytes(in, little); String calibration = calib == 0 ? "on" : "off"; put("Spatial Calibration", calibration); break; case 4: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("XCalibration", new TiffRational(num, denom)); break; case 5: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("YCalibration", new TiffRational(num, denom)); break; case 6: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("CalibrationUnits", new String(toread)); break; case 7: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String name = new String(toread); put("Name", name); imageName = name; break; case 8: int thresh = DataTools.read4SignedBytes(in, little); String threshState = "off"; if (thresh == 1) threshState = "inside"; else if (thresh == 2) threshState = "outside"; put("ThreshState", threshState); break; case 9: put("ThreshStateRed", DataTools.read4SignedBytes(in, little)); break; // there is no 10 case 11: put("ThreshStateGreen", DataTools.read4SignedBytes(in, little)); break; case 12: put("ThreshStateBlue", DataTools.read4SignedBytes(in, little)); break; case 13: put("ThreshStateLo", DataTools.read4SignedBytes(in, little)); break; case 14: put("ThreshStateHi", DataTools.read4SignedBytes(in, little)); break; case 15: int zoom = DataTools.read4SignedBytes(in, little); put("Zoom", zoom);// OMETools.setAttribute(ome, "DisplayOptions", "Zoom", "" + zoom); break; case 16: // oh how we hate you Julian format... thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("DateTime", thedate + " " + thetime); imageCreationDate = thedate + " " + thetime; break; case 17: thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("LastSavedTime", thedate + " " + thetime); break; case 18: put("currentBuffer", DataTools.read4SignedBytes(in, little)); break; case 19: put("grayFit", DataTools.read4SignedBytes(in, little)); break; case 20: put("grayPointCount", DataTools.read4SignedBytes(in, little)); break; case 21: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayX", new TiffRational(num, denom)); break; case 22: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("gray", new TiffRational(num, denom)); break; case 23: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMin", new TiffRational(num, denom)); break; case 24: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMax", new TiffRational(num, denom)); break; case 25: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("grayUnitName", new String(toread)); break; case 26: int standardLUT = DataTools.read4SignedBytes(in, little); String standLUT; switch (standardLUT) { case 0: standLUT = "monochrome"; break; case 1: standLUT = "pseudocolor"; break; case 2: standLUT = "Red"; break; case 3: standLUT = "Green"; break; case 4: standLUT = "Blue"; break; case 5: standLUT = "user-defined"; break; default: standLUT = "monochrome"; break; } put("StandardLUT", standLUT); break; case 27: put("Wavelength", DataTools.read4SignedBytes(in, little)); break; case 28: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Stage Position Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 29: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Camera Offset Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 30: put("OverlayMask", DataTools.read4SignedBytes(in, little)); break; case 31: put("OverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 32: put("Overlay", DataTools.read4SignedBytes(in, little)); break; case 33: put("SpecialOverlayMask", DataTools.read4SignedBytes(in, little)); break; case 34: put("SpecialOverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 35: put("SpecialOverlay", DataTools.read4SignedBytes(in, little)); break; case 36: put("ImageProperty", DataTools.read4SignedBytes(in, little)); break; case 37: for (int i = 0; i<planes; i++) { num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String s = new String(toread); put("StageLabel Plane " + i, s); } break; case 38: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleLoInfo", new TiffRational(num, denom)); break; case 39: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleHiInfo", new TiffRational(num, denom)); break; case 40: for (int i=0;i<planes;i++) { num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AbsoluteZ Plane " + i, new TiffRational(num, denom)); } break; case 41: for (int i=0; i<planes; i++) { put("AbsoluteZValid Plane " + i, DataTools.read4SignedBytes(in, little)); } break; case 42: put("Gamma", DataTools.read4SignedBytes(in, little)); break; case 43: put("GammaRed", DataTools.read4SignedBytes(in, little)); break; case 44: put("GammaGreen", DataTools.read4SignedBytes(in, little)); break; case 45: put("GammaBlue", DataTools.read4SignedBytes(in, little)); break; } // end switch } } catch (NullPointerException n) { n.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } try { super.initStandardMetadata(); } catch (Throwable t) { t.printStackTrace(); } // parse (mangle) TIFF comment String descr = (String) metadata.get("Comment"); if (descr != null) { StringTokenizer st = new StringTokenizer(descr, "\n"); StringBuffer sb = new StringBuffer(); boolean first = true; while (st.hasMoreTokens()) { String line = st.nextToken(); int colon = line.indexOf(": "); if (colon < 0) { // normal line (not a key/value pair) if (line.trim().length() > 0) { // not a blank line sb.append(line); if (!line.endsWith(".")) sb.append("."); sb.append(" "); } first = false; continue; } if (first) { // first line could be mangled; make a reasonable guess int dot = line.lastIndexOf(".", colon); if (dot >= 0) { String s = line.substring(0, dot + 1); sb.append(s); if (!s.endsWith(".")) sb.append("."); sb.append(" "); } line = line.substring(dot + 1); colon -= dot + 1; first = false; } // add key/value pair embedded in comment as separate metadata String key = line.substring(0, colon); String value = line.substring(colon + 2); put(key, value); } // replace comment with trimmed version descr = sb.toString().trim(); if (descr.equals("")) metadata.remove("Comment"); else put("Comment", descr); } }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/2df09d33bfdc966378aae0cc09cb503afb983bc2/MetamorphReader.java/buggy/loci/formats/in/MetamorphReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
8336,
2277,
1435,
288,
565,
775,
288,
1377,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
1377,
2240,
18,
2738,
8336,
2277,
5621,
1377,
2144,
1081,
273,
394,
2144,
12,
20,
1769,
1377,
509,
1384,
31,
1377,
2144,
417,
273,
394,
2144,
12,
57,
2871,
24,
7927,
1769,
1377,
1525,
8526,
1906,
273,
261,
5748,
63,
5717,
309,
72,
18,
588,
12,
79,
1769,
1377,
3407,
8526,
1043,
273,
394,
3407,
63,
5814,
18,
2469,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
85,
18,
2469,
31,
277,
27245,
1043,
63,
77,
65,
273,
394,
3407,
12,
5814,
63,
77,
19226,
1377,
309,
261,
85,
422,
446,
13,
1384,
273,
300,
21,
31,
1377,
2144,
341,
273,
394,
2144,
12,
85,
63,
21,
8009,
474,
620,
10663,
1377,
309,
261,
91,
422,
446,
13,
1384,
273,
300,
21,
31,
1377,
469,
1384,
273,
225,
341,
18,
474,
620,
5621,
1377,
309,
261,
3348,
411,
374,
13,
604,
394,
4077,
503,
2932,
57,
2871,
24,
7927,
486,
1392,
8863,
1377,
316,
18,
16508,
12,
3348,
1769,
1377,
509,
783,
710,
273,
300,
21,
31,
1377,
1160,
8526,
358,
896,
31,
1377,
399,
3048,
54,
8371,
8526,
1906,
22,
273,
261,
56,
3048,
54,
8371,
63,
5717,
3639,
309,
72,
18,
588,
12,
2704,
2144,
12,
18315,
2192,
916,
8939,
67,
734,
10019,
1377,
3407,
8526,
331,
273,
394,
3407,
63,
5814,
22,
18,
2469,
15533,
1377,
364,
261,
474,
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,
4750,
918,
1208,
8336,
2277,
1435,
288,
565,
775,
288,
1377,
18559,
309,
72,
273,
309,
2377,
63,
20,
15533,
1377,
2240,
18,
2738,
8336,
2277,
5621,
1377,
2144,
1081,
273,
394,
2144,
12,
20,
1769,
1377,
509,
1384,
31,
1377,
2144,
417,
273,
394,
2144,
12,
57,
2871,
24,
7927,
1769,
1377,
1525,
8526,
1906,
273,
261,
5748,
63,
5717,
309,
72,
18,
588,
12,
79,
1769,
1377,
3407,
8526,
1043,
273,
394,
3407,
63,
5814,
18,
2469,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
85,
18,
2469,
31,
277,
27245,
1043,
63,
77,
65,
273,
394,
3407,
12,
5814,
63,
77,
19226,
1377,
309,
261,
85,
422,
446,
13,
1384,
273,
300,
2
] |
if (jj_scan_token(METHOD_PROTECTED)) return true;
|
if (jj_scan_token(METHOD_PUBLIC)) return true;
|
static final private boolean jj_3R_73() { if (jj_scan_token(METHOD_PROTECTED)) return true; return false; }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/9befe20e19a1c795e3084b85df3ae067ddf49066/ExpressionParser.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9036,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
5327,
67,
14939,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9036,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
5327,
67,
14939,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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(regexArg == null){ return; } final PsiType regexType = regexArg.getType(); if(regexType == null)
|
if(!TypeUtils.expressionHasType("java.lang.String", regexArg))
|
public void visitMethodCallExpression(PsiMethodCallExpression expression){ super.visitMethodCallExpression(expression); final PsiExpressionList argList = expression.getArgumentList(); final PsiExpression[] args = argList.getExpressions(); if(args.length == 0) { return; } final PsiExpression regexArg = args[0]; if(regexArg == null){ return; } final PsiType regexType = regexArg.getType(); if(regexType == null) { return; } final String regexTypeText = regexType.getCanonicalText(); if(!"java.lang.String".equals(regexTypeText)){ return; } if(!PsiUtil.isConstantExpression(regexArg)){ return; } final String value = (String) ConstantExpressionUtil.computeCastTo(regexArg, regexType); if(value == null) { return; } if(!callTakesRegex(expression)){ return; } //noinspection UnusedCatchParameter try{ Pattern.compile(value); } catch(PatternSyntaxException e){ registerError(regexArg); } catch(NullPointerException e){ registerError(regexArg); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/759e68fd5c7d25c7883aaff1724a10a4906fc874/MalformedRegexInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/MalformedRegexInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
12,
52,
7722,
12592,
2300,
2652,
15329,
5411,
2240,
18,
11658,
12592,
2300,
12,
8692,
1769,
5411,
727,
453,
7722,
2300,
682,
1501,
682,
273,
2652,
18,
588,
1379,
682,
5621,
5411,
727,
453,
7722,
2300,
8526,
833,
273,
1501,
682,
18,
588,
8927,
5621,
5411,
309,
12,
1968,
18,
2469,
422,
374,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
3936,
4117,
273,
833,
63,
20,
15533,
5411,
309,
12,
7584,
4117,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
3936,
559,
273,
3936,
4117,
18,
588,
559,
5621,
5411,
309,
12,
7584,
559,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
514,
3936,
559,
1528,
273,
3936,
559,
18,
588,
15512,
1528,
5621,
5411,
309,
12,
4442,
6290,
18,
4936,
18,
780,
9654,
14963,
12,
7584,
559,
1528,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
309,
12,
5,
52,
7722,
1304,
18,
291,
6902,
2300,
12,
7584,
4117,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
514,
460,
273,
10792,
261,
780,
13,
10551,
2300,
1304,
18,
9200,
9735,
774,
12,
7584,
4117,
16,
3936,
559,
1769,
5411,
309,
12,
1132,
422,
446,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
5,
1991,
11524,
6628,
12,
8692,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
368,
13242,
1351,
3668,
14842,
1662,
5411,
775,
95,
7734,
6830,
18,
11100,
12,
1132,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
12,
52,
7722,
12592,
2300,
2652,
15329,
5411,
2240,
18,
11658,
12592,
2300,
12,
8692,
1769,
5411,
727,
453,
7722,
2300,
682,
1501,
682,
273,
2652,
18,
588,
1379,
682,
5621,
5411,
727,
453,
7722,
2300,
8526,
833,
273,
1501,
682,
18,
588,
8927,
5621,
5411,
309,
12,
1968,
18,
2469,
422,
374,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
3936,
4117,
273,
833,
63,
20,
15533,
5411,
309,
12,
7584,
4117,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
3936,
559,
273,
3936,
4117,
18,
588,
559,
5621,
5411,
309,
12,
7584,
559,
422,
446,
13,
5411,
288,
7734,
327,
31,
2
] |
float rl, rh, eh=0, el=0; int fold; offset = subframeSize*sub; sp=offset; exc=excIdx+offset; resp=offset; sw=offset;
|
float rl, rh, eh = 0, el = 0; offset = subframeSize * sub; sp = offset; exc = excIdx + offset; resp = offset; sw = offset;
|
public int encode(final Bits bits, final float[] in) { int i; float[] mem, innov, syn_resp; float[] low_pi_gain, low_exc, low_innov; int dtx; /* Compute the two sub-bands by filtering with h0 and h1*/ Filters.qmf_decomp(in, h0, x0d, x1d, fullFrameSize, QMF_ORDER, h0_mem); /* Encode the narrowband part*/ lowenc.encode(bits, x0d); /* High-band buffering / sync with low band */ for (i=0;i<windowSize-frameSize;i++) high[i] = high[frameSize+i]; for (i=0;i<frameSize;i++) high[windowSize-frameSize+i]=x1d[i]; System.arraycopy(excBuf, frameSize, excBuf, 0, bufSize-frameSize); low_pi_gain = lowenc.getPiGain(); low_exc = lowenc.getExc(); low_innov = lowenc.getInnov(); int low_mode = lowenc.getMode(); if (low_mode==0) dtx=1; else dtx=0; /* Start encoding the high-band */ for (i=0; i<windowSize; i++) buf[i] = high[i] * window[i]; /* Compute auto-correlation */ Lpc.autocorr(buf, autocorr, lpcSize+1, windowSize); autocorr[0] += 1; /* prevents NANs */ autocorr[0] *= lpc_floor; /* Noise floor in auto-correlation domain */ /* Lag windowing: equivalent to filtering in the power-spectrum domain */ for (i=0; i<lpcSize+1; i++) autocorr[i] *= lagWindow[i]; /* Levinson-Durbin */ Lpc.wld(lpc, autocorr, rc, lpcSize); // tmperr System.arraycopy(lpc, 0, lpc, 1, lpcSize); lpc[0]=1; /* LPC to LSPs (x-domain) transform */ int roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 15, 0.2f); if (roots != lpcSize) { roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 11, 0.02f); if (roots != lpcSize) { /*If we can't find all LSP's, do some damage control and use a flat filter*/ for (i=0; i<lpcSize; i++) { lsp[i]=(float)Math.cos(Math.PI*((float)(i+1))/(lpcSize+1)); } } } /* x-domain to angle domain*/ for (i=0; i<lpcSize; i++) lsp[i] = (float) Math.acos(lsp[i]); float lsp_dist=0; for (i=0;i<lpcSize;i++) lsp_dist += (old_lsp[i] - lsp[i])*(old_lsp[i] - lsp[i]); /*VBR stuff*/ if ((vbr_enabled != 0 || vad_enabled != 0) && dtx == 0) { float e_low=0, e_high=0; float ratio; if (abr_enabled != 0) { float qual_change=0; if (abr_drift2 * abr_drift > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001f*abr_drift/(1+abr_count); if (qual_change>.1f) qual_change=.1f; if (qual_change<-.1f) qual_change=-.1f; } vbr_quality += qual_change; if (vbr_quality>10) vbr_quality=10; if (vbr_quality<0) vbr_quality=0; } for (i=0;i<frameSize;i++) { e_low += x0d[i]* x0d[i]; e_high += high[i]* high[i]; } ratio = (float) Math.log((1+e_high)/(1+e_low)); relative_quality = lowenc.getRelativeQuality(); if (ratio<-4) ratio=-4; if (ratio>2) ratio=2; /*if (ratio>-2)*/ if (vbr_enabled != 0) { int modeid; modeid = nb_modes-1; relative_quality+=1.0*(ratio+2); if (relative_quality<-1) { relative_quality=-1; } while (modeid != 0) { int v1; float thresh; v1=(int)Math.floor(vbr_quality); if (v1==10) thresh = Vbr.hb_thresh[modeid][v1]; else thresh = (vbr_quality-v1) * Vbr.hb_thresh[modeid][v1+1] + (1+v1-vbr_quality) * Vbr.hb_thresh[modeid][v1]; if (relative_quality >= thresh) break; modeid--; } setMode(modeid); if (abr_enabled != 0) { int bitrate; bitrate = getBitRate(); abr_drift+=(bitrate-abr_enabled); abr_drift2 = .95f*abr_drift2 + .05f*(bitrate-abr_enabled); abr_count += 1.0; } } else { /* VAD only */ int modeid; if (relative_quality<2.0) modeid=1; else modeid=submodeSelect; /*speex_encoder_ctl(state, SPEEX_SET_MODE, &mode);*/ submodeID=modeid; } /*fprintf (stderr, "%f %f\n", ratio, low_qual);*/ } bits.pack(1, 1); if (dtx != 0) bits.pack(0, SB_SUBMODE_BITS); else bits.pack(submodeID, SB_SUBMODE_BITS); /* If null mode (no transmission), just set a couple things to zero*/ if (dtx != 0 || submodes[submodeID] == null) { for (i=0; i<frameSize; i++) excBuf[excIdx+i]=swBuf[i]=VERY_SMALL; for (i=0; i<lpcSize; i++) mem_sw[i]=0; first=1; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, excIdx, interp_qlpc, high, 0, subframeSize, lpcSize, mem_sp); /* Reconstruct the original */ filters.fir_mem_up(x0d, h0, y0, fullFrameSize, QMF_ORDER, g0_mem); filters.fir_mem_up(high, h1, y1, fullFrameSize, QMF_ORDER, g1_mem); for (i=0; i<fullFrameSize; i++) in[i]=2*(y0[i]-y1[i]); if (dtx != 0) return 0; else return 1; } /* LSP quantization */ submodes[submodeID].lsqQuant.quant(lsp, qlsp, lpcSize, bits); if (first != 0) { for (i=0; i<lpcSize; i++) old_lsp[i] = lsp[i]; for (i=0; i<lpcSize; i++) old_qlsp[i] = qlsp[i]; } mem = new float[lpcSize]; syn_resp = new float[subframeSize]; innov = new float[subframeSize]; for (int sub=0; sub<nbSubframes; sub++) { float tmp, filter_ratio; int exc, sp, sw, resp; int offset; float rl, rh, eh=0, el=0; int fold; offset = subframeSize*sub; sp=offset; exc=excIdx+offset; resp=offset; sw=offset; /* LSP interpolation (quantized and unquantized) */ tmp = (1.0f + sub)/nbSubframes; for (i=0; i<lpcSize; i++) interp_lsp[i] = (1-tmp)*old_lsp[i] + tmp*lsp[i]; for (i=0; i<lpcSize; i++) interp_qlsp[i] = (1-tmp)*old_qlsp[i] + tmp*qlsp[i]; Lsp.enforce_margin(interp_lsp, lpcSize, .05f); Lsp.enforce_margin(interp_qlsp, lpcSize, .05f); /* Compute interpolated LPCs (quantized and unquantized) */ for (i=0; i<lpcSize; i++) interp_lsp[i] = (float) Math.cos(interp_lsp[i]); for (i=0; i<lpcSize; i++) interp_qlsp[i] = (float) Math.cos(interp_qlsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); m_lsp.lsp2lpc(interp_qlsp, interp_qlpc, lpcSize); Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); /* Compute mid-band (4000 Hz for wideband) response of low-band and high-band filters */ rl=rh=0; tmp=1; pi_gain[sub]=0; for (i=0; i<=lpcSize; i++) { rh += tmp*interp_qlpc[i]; tmp = -tmp; pi_gain[sub]+=interp_qlpc[i]; } rl = low_pi_gain[sub]; rl=1/(Math.abs(rl)+.01f); rh=1/(Math.abs(rh)+.01f); /* Compute ratio, will help predict the gain */ filter_ratio=Math.abs(.01f+rh)/(.01f+Math.abs(rl)); fold = filter_ratio<5 ? 1 : 0; /*printf ("filter_ratio %f\n", filter_ratio);*/ fold=0; /* Compute "real excitation" */ Filters.fir_mem2(high, sp, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem_sp2); /* Compute energy of low-band and high-band excitation */ for (i=0; i<subframeSize; i++) eh+=excBuf[exc+i]*excBuf[exc+i]; if (submodes[submodeID].innovation == null) {/* 1 for spectral folding excitation, 0 for stochastic */ float g; /*speex_bits_pack(bits, 1, 1);*/ for (i=0; i<subframeSize; i++) el+=low_innov[offset+i]*low_innov[offset+i]; /* Gain to use if we want to use the low-band excitation for high-band */ g=eh/(.01f+el); g=(float) Math.sqrt(g); g *= filter_ratio; /*print_vec(&g, 1, "gain factor");*/ /* Gain quantization */ { int quant = (int) Math.floor(.5 + 10 + 8.0 * Math.log((g+.0001))); /*speex_warning_int("tata", quant);*/ if (quant<0) quant=0; if (quant>31) quant=31; bits.pack(quant, 5); g=(float)(.1*Math.exp(quant/9.4)); } /*printf ("folding gain: %f\n", g);*/ g /= filter_ratio; } else { float gc, scale, scale_1; for (i=0; i<subframeSize; i++) el+=low_exc[offset+i]*low_exc[offset+i]; /*speex_bits_pack(bits, 0, 1);*/ gc = (float) (Math.sqrt(1+eh)*filter_ratio/Math.sqrt((1+el)*subframeSize)); { int qgc = (int)Math.floor(.5+3.7*(Math.log(gc)+2)); if (qgc<0) qgc=0; if (qgc>15) qgc=15; bits.pack(qgc, 4); gc = (float) Math.exp((1/3.7)*qgc-2); } scale = gc*(float)Math.sqrt(1+el)/filter_ratio; scale_1 = 1/scale; for (i=0; i<subframeSize; i++) excBuf[exc+i]=0; excBuf[exc]=1; Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, subframeSize, lpcSize); /* Reset excitation */ for (i=0; i<subframeSize; i++) excBuf[exc+i]=0; /* Compute zero response (ringing) of A(z/g1) / ( A(z/g2) * Aq(z) ) */ for (i=0; i<lpcSize; i++) mem[i]=mem_sp[i]; Filters.iir_mem2(excBuf, exc, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem); for (i=0; i<lpcSize; i++) mem[i]=mem_sw[i]; Filters.filter_mem2(excBuf, exc, bw_lpc1, bw_lpc2, res, resp, subframeSize, lpcSize, mem, 0); /* Compute weighted signal */ for (i=0; i<lpcSize; i++) mem[i]=mem_sw[i]; Filters.filter_mem2(high, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem, 0); /* Compute target signal */ for (i=0; i<subframeSize; i++) target[i]=swBuf[sw+i]-res[resp+i]; for (i=0; i<subframeSize; i++) excBuf[exc+i]=0; for (i=0; i<subframeSize; i++) target[i]*=scale_1; /* Reset excitation */ for (i=0; i<subframeSize; i++) innov[i]=0; /*print_vec(target, st->subframeSize, "\ntarget");*/ submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov, 0, syn_resp, bits, (complexity+1)>>1); /*print_vec(target, st->subframeSize, "after");*/ for (i=0; i<subframeSize; i++) excBuf[exc+i] += innov[i]*scale; if (submodes[submodeID].double_codebook != 0) { float[] innov2 = new float[subframeSize]; for (i=0; i<subframeSize; i++) innov2[i]=0; for (i=0; i<subframeSize; i++) target[i]*=2.5; submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov2, 0, syn_resp, bits, (complexity+1)>>1); for (i=0; i<subframeSize; i++) innov2[i]*=scale*(1/2.5); for (i=0; i<subframeSize; i++) excBuf[exc+i] += innov2[i]; } } /*Keep the previous memory*/ for (i=0; i<lpcSize; i++) mem[i]=mem_sp[i]; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, exc, interp_qlpc, high, sp, subframeSize, lpcSize, mem_sp); /* Compute weighted signal again, from synthesized speech (not sure it's the right thing) */ Filters.filter_mem2(high, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem_sw, 0); }//#ifndef RELEASE /* Reconstruct the original */ filters.fir_mem_up(x0d, h0, y0, fullFrameSize, QMF_ORDER, g0_mem); filters.fir_mem_up(high, h1, y1, fullFrameSize, QMF_ORDER, g1_mem); for (i=0; i<fullFrameSize; i++) in[i]=2*(y0[i]-y1[i]);//#endif for (i=0; i<lpcSize; i++) old_lsp[i] = lsp[i]; for (i=0; i<lpcSize; i++) old_qlsp[i] = qlsp[i]; first=0; return 1; }
|
6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/SbEncoder.java/buggy/main/trunk/codec/src/main/java/org/xiph/speex/SbEncoder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2017,
12,
6385,
18690,
4125,
16,
727,
1431,
8526,
316,
13,
225,
288,
565,
509,
277,
31,
565,
1431,
8526,
1663,
16,
316,
82,
1527,
16,
6194,
67,
12243,
31,
565,
1431,
8526,
4587,
67,
7259,
67,
25540,
16,
4587,
67,
10075,
16,
4587,
67,
267,
82,
1527,
31,
565,
509,
302,
978,
31,
3639,
1748,
8155,
326,
2795,
720,
17,
29714,
635,
11346,
598,
366,
20,
471,
366,
21,
5549,
565,
14475,
18,
85,
16126,
67,
323,
2919,
12,
267,
16,
366,
20,
16,
619,
20,
72,
16,
619,
21,
72,
16,
1983,
3219,
1225,
16,
2238,
13542,
67,
7954,
16,
366,
20,
67,
3917,
1769,
565,
1748,
6240,
326,
17383,
12752,
1087,
5549,
565,
4587,
1331,
18,
3015,
12,
6789,
16,
619,
20,
72,
1769,
565,
1748,
15207,
17,
12752,
25056,
342,
3792,
598,
4587,
8937,
1195,
565,
364,
261,
77,
33,
20,
31,
77,
32,
5668,
1225,
17,
3789,
1225,
31,
77,
27245,
1377,
3551,
63,
77,
65,
273,
3551,
63,
3789,
1225,
15,
77,
15533,
565,
364,
261,
77,
33,
20,
31,
77,
32,
3789,
1225,
31,
77,
27245,
1377,
3551,
63,
5668,
1225,
17,
3789,
1225,
15,
77,
65,
33,
92,
21,
72,
63,
77,
15533,
565,
2332,
18,
1126,
3530,
12,
10075,
5503,
16,
2623,
1225,
16,
3533,
5503,
16,
374,
16,
1681,
1225,
17,
3789,
1225,
1769,
565,
4587,
67,
7259,
67,
25540,
273,
4587,
1331,
18,
588,
16539,
43,
530,
5621,
565,
4587,
67,
10075,
377,
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,
509,
2017,
12,
6385,
18690,
4125,
16,
727,
1431,
8526,
316,
13,
225,
288,
565,
509,
277,
31,
565,
1431,
8526,
1663,
16,
316,
82,
1527,
16,
6194,
67,
12243,
31,
565,
1431,
8526,
4587,
67,
7259,
67,
25540,
16,
4587,
67,
10075,
16,
4587,
67,
267,
82,
1527,
31,
565,
509,
302,
978,
31,
3639,
1748,
8155,
326,
2795,
720,
17,
29714,
635,
11346,
598,
366,
20,
471,
366,
21,
5549,
565,
14475,
18,
85,
16126,
67,
323,
2919,
12,
267,
16,
366,
20,
16,
619,
20,
72,
16,
619,
21,
72,
16,
1983,
3219,
1225,
16,
2238,
13542,
67,
7954,
16,
366,
20,
67,
3917,
1769,
565,
1748,
6240,
326,
17383,
12752,
1087,
5549,
565,
2
] |
return underlinedChar;
|
return displayedMnemonicIndex;
|
public int getDisplayedMnemonicIndex() { return underlinedChar; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
13854,
329,
29668,
20918,
1016,
1435,
225,
288,
565,
327,
10453,
29668,
20918,
1016,
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
] |
[
1,
1,
1,
1,
1,
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,
282,
1071,
509,
13854,
329,
29668,
20918,
1016,
1435,
225,
288,
565,
327,
10453,
29668,
20918,
1016,
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
] |
return Boolean.valueOf(o0.equals(o1));
|
return Boolean.valueOf(b1.booleanValue() != b2.booleanValue());
|
public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0); Double o1 = getDoubleArg(evaluator, args, 1); if (o0.isNaN() || o1.isNaN()) { return null; } return Boolean.valueOf(o0.equals(o1)); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/8ce2540c398f87f14f1a0a792bb7fcaef78a148a/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
7734,
3698,
320,
20,
273,
16097,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
7734,
3698,
320,
21,
273,
16097,
4117,
12,
14168,
639,
16,
833,
16,
404,
1769,
7734,
309,
261,
83,
20,
18,
291,
21172,
1435,
747,
320,
21,
18,
291,
21172,
10756,
288,
10792,
327,
446,
31,
7734,
289,
7734,
327,
3411,
18,
1132,
951,
12,
70,
21,
18,
6494,
620,
1435,
480,
324,
22,
18,
6494,
620,
10663,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
7734,
3698,
320,
20,
273,
16097,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
7734,
3698,
320,
21,
273,
16097,
4117,
12,
14168,
639,
16,
833,
16,
404,
1769,
7734,
309,
261,
83,
20,
18,
291,
21172,
1435,
747,
320,
21,
18,
291,
21172,
10756,
288,
10792,
327,
446,
31,
7734,
289,
7734,
327,
3411,
18,
1132,
951,
12,
70,
21,
18,
6494,
620,
1435,
480,
324,
22,
18,
6494,
620,
10663,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ m_delegateName = delegateName; m_player = player; m_stepName = stepName; m_round = round; m_displayName = displayName; }
|
{ m_delegateName = delegateName; m_player = player; m_stepName = stepName; m_round = round; m_displayName = displayName; }
|
StepChangedMessage(String stepName, String delegateName, PlayerID player, int round, String displayName) { m_delegateName = delegateName; m_player = player; m_stepName = stepName; m_round = round; m_displayName = displayName; }
|
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/0000e506b3c2b2132ed26d66b0074068b86f2316/StepChangedMessage.java/buggy/triplea/src/games/strategy/engine/framework/StepChangedMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
8693,
5033,
1079,
12,
780,
2235,
461,
16,
514,
7152,
461,
16,
19185,
734,
7291,
16,
509,
3643,
16,
514,
16218,
13,
225,
288,
565,
312,
67,
22216,
461,
273,
7152,
461,
31,
565,
312,
67,
14872,
273,
7291,
31,
565,
312,
67,
4119,
461,
273,
2235,
461,
31,
565,
312,
67,
2260,
273,
3643,
31,
565,
312,
67,
5417,
461,
273,
16218,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
8693,
5033,
1079,
12,
780,
2235,
461,
16,
514,
7152,
461,
16,
19185,
734,
7291,
16,
509,
3643,
16,
514,
16218,
13,
225,
288,
565,
312,
67,
22216,
461,
273,
7152,
461,
31,
565,
312,
67,
14872,
273,
7291,
31,
565,
312,
67,
4119,
461,
273,
2235,
461,
31,
565,
312,
67,
2260,
273,
3643,
31,
565,
312,
67,
5417,
461,
273,
16218,
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
] |
this(pf, null);
|
this(pf, Thread.currentThread().getContextClassLoader());
|
public TreeInterpreter(ParserFactory pf) { this(pf, null); }
|
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/3120a92c233114ca42e6ed661ff716e0bf8a53b4/TreeInterpreter.java/clean/src/koala/dynamicjava/interpreter/TreeInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
30010,
12,
2678,
1733,
10811,
13,
288,
202,
202,
2211,
12,
14241,
16,
446,
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,
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,
225,
202,
482,
4902,
30010,
12,
2678,
1733,
10811,
13,
288,
202,
202,
2211,
12,
14241,
16,
446,
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,
-100,
-100,
-100
] |
request.getRequestDispatcher(actualJSP).forward(request, response);
|
request.getRequestDispatcher(jsp).forward(request, response);
|
public static void showJSP(HttpServletRequest request, HttpServletResponse response, String jsp ) throws ServletException, IOException { String actualJSP = getLocalJSP(jsp); if (log.isDebugEnabled()) { log.debug(LogManager.getHeader( (Context) request.getAttribute("dspace.context"), "view_jsp", actualJSP)); } // For the moment, a simple forward request.getRequestDispatcher(actualJSP).forward(request, response); }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/1b48943aebc5bc04c66710438589dc0210ba2eee/JSPManager.java/clean/dspace/src/org/dspace/app/webui/util/JSPManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2405,
46,
3118,
12,
2940,
18572,
590,
16,
3639,
12446,
766,
16,
3639,
514,
22535,
262,
3639,
1216,
16517,
16,
1860,
565,
288,
3639,
514,
3214,
46,
3118,
273,
6993,
46,
3118,
12,
24926,
1769,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
4148,
12,
1343,
1318,
18,
588,
1864,
12,
7734,
261,
1042,
13,
590,
18,
588,
1499,
2932,
2377,
909,
18,
2472,
6,
3631,
7734,
315,
1945,
67,
24926,
3113,
7734,
3214,
46,
3118,
10019,
3639,
289,
3639,
368,
2457,
326,
10382,
16,
279,
4143,
5104,
3639,
590,
18,
588,
691,
6681,
12,
24926,
2934,
11565,
12,
2293,
16,
766,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2405,
46,
3118,
12,
2940,
18572,
590,
16,
3639,
12446,
766,
16,
3639,
514,
22535,
262,
3639,
1216,
16517,
16,
1860,
565,
288,
3639,
514,
3214,
46,
3118,
273,
6993,
46,
3118,
12,
24926,
1769,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
3639,
288,
5411,
613,
18,
4148,
12,
1343,
1318,
18,
588,
1864,
12,
7734,
261,
1042,
13,
590,
18,
588,
1499,
2932,
2377,
909,
18,
2472,
6,
3631,
7734,
315,
1945,
67,
24926,
3113,
7734,
3214,
46,
3118,
10019,
3639,
289,
3639,
368,
2457,
326,
10382,
16,
279,
4143,
5104,
3639,
590,
18,
588,
691,
6681,
12,
24926,
2934,
11565,
12,
2293,
16,
766,
1769,
565,
289,
2,
-100,
-100,
-100,
-100
] |
protected Invocation createGetValueInvocation(final Converter converter, final Method method) { return new GetValueInvocation(converter, method);
|
protected Invocation createGetValueInvocation(final Converter converter) { return new GetValueInvocation(converter);
|
protected Invocation createGetValueInvocation(final Converter converter, final Method method) { return new GetValueInvocation(converter, method); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54db96a7e7eb53da6fe993c656f312cdf31aaaa7/DomInvocationHandler.java/clean/dom/impl/src/com/intellij/util/xml/impl/DomInvocationHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
11298,
752,
967,
620,
9267,
12,
6385,
14768,
6027,
16,
727,
2985,
707,
13,
288,
565,
327,
394,
16250,
9267,
12,
15747,
16,
707,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
11298,
752,
967,
620,
9267,
12,
6385,
14768,
6027,
16,
727,
2985,
707,
13,
288,
565,
327,
394,
16250,
9267,
12,
15747,
16,
707,
1769,
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
] |
case IA32_SET$B_opcode:
|
case IA32_SET__B_opcode:
|
boolean isForbidden(OPT_Register symb, OPT_Register r, OPT_Instruction s) { // Look at 8-bit restrictions. switch (s.operator.opcode) { case IA32_MOVZX$B_opcode: case IA32_MOVSX$B_opcode: { if (MIR_Unary.getVal(s).isRegister()) { OPT_RegisterOperand val = MIR_Unary.getVal(s).asRegister(); if (val.register == symb) { return !okFor8(r); } } } break; case IA32_SET$B_opcode: { if (MIR_Set.getResult(s).isRegister()) { OPT_RegisterOperand op = MIR_Set.getResult(s).asRegister(); if (op.asRegister().register == symb) { return !okFor8(r); } } } break; } if (has8BitMemoryOperand(s)) { return !okFor8(r); } // Otherwise, it's OK. return false; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/cb4d5807180265c43e09e55a868066d05d56274a/OPT_RegisterRestrictions.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/regalloc/OPT_RegisterRestrictions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
353,
16553,
12,
15620,
67,
3996,
1393,
1627,
16,
16456,
67,
3996,
436,
16,
11794,
16456,
67,
11983,
272,
13,
288,
565,
368,
10176,
622,
1725,
17,
3682,
17499,
18,
565,
1620,
261,
87,
18,
9497,
18,
556,
710,
13,
288,
1377,
648,
467,
37,
1578,
67,
5980,
58,
62,
60,
8,
38,
67,
556,
710,
30,
648,
467,
37,
1578,
67,
5980,
14640,
60,
8,
38,
67,
556,
710,
30,
3639,
288,
1850,
309,
261,
7492,
54,
67,
15972,
18,
588,
3053,
12,
87,
2934,
291,
3996,
10756,
288,
5411,
16456,
67,
3996,
10265,
1244,
273,
490,
7937,
67,
15972,
18,
588,
3053,
12,
87,
2934,
345,
3996,
5621,
5411,
309,
261,
1125,
18,
4861,
422,
1393,
1627,
13,
288,
2868,
327,
401,
601,
1290,
28,
12,
86,
1769,
5411,
289,
1850,
289,
3639,
289,
3639,
898,
31,
1377,
648,
467,
37,
1578,
67,
4043,
972,
38,
67,
556,
710,
30,
3639,
288,
6647,
309,
261,
7492,
54,
67,
694,
18,
588,
1253,
12,
87,
2934,
291,
3996,
10756,
288,
5411,
16456,
67,
3996,
10265,
1061,
273,
490,
7937,
67,
694,
18,
588,
1253,
12,
87,
2934,
345,
3996,
5621,
5411,
309,
261,
556,
18,
345,
3996,
7675,
4861,
422,
1393,
1627,
13,
288,
2868,
327,
401,
601,
1290,
28,
12,
86,
1769,
5411,
289,
1850,
289,
3639,
289,
3639,
898,
31,
377,
289,
565,
309,
261,
5332,
28,
5775,
6031,
10265,
12,
87,
3719,
288,
1377,
327,
401,
601,
1290,
28,
12,
86,
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,
1250,
353,
16553,
12,
15620,
67,
3996,
1393,
1627,
16,
16456,
67,
3996,
436,
16,
11794,
16456,
67,
11983,
272,
13,
288,
565,
368,
10176,
622,
1725,
17,
3682,
17499,
18,
565,
1620,
261,
87,
18,
9497,
18,
556,
710,
13,
288,
1377,
648,
467,
37,
1578,
67,
5980,
58,
62,
60,
8,
38,
67,
556,
710,
30,
648,
467,
37,
1578,
67,
5980,
14640,
60,
8,
38,
67,
556,
710,
30,
3639,
288,
1850,
309,
261,
7492,
54,
67,
15972,
18,
588,
3053,
12,
87,
2934,
291,
3996,
10756,
288,
5411,
16456,
67,
3996,
10265,
1244,
273,
490,
7937,
67,
15972,
18,
588,
3053,
12,
87,
2934,
345,
3996,
5621,
5411,
309,
261,
1125,
18,
4861,
422,
2
] |
Assert.assert(-1 != childNode.getNativeRDFNode());
|
Assert.assert_it(-1 != childNode.getNativeRDFNode());
|
public void insert(MutableTreeNode child, int index){ if (!(child instanceof RDFTreeNode)) { throw new IllegalArgumentException("Can't insert non-RDFTreeNode children"); } Assert.assert(-1 != nativeRDFNode); RDFTreeNode childNode = (RDFTreeNode) child; if (childNode.isFolder()) { Assert.assert(-1 == childNode.getNativeRDFNode()); Assert.assert(null != childNode.getProperties()); int childNativeRDFNode; // hook up the child to its native peer childNativeRDFNode = nativeNewFolder(nativeWebShell, nativeRDFNode, childNode.getProperties()); // hook up the child to its native peer childNode.setNativeRDFNode(childNativeRDFNode); } else { Assert.assert(-1 != childNode.getNativeRDFNode()); int childNativeRDFNode = childNode.getNativeRDFNode(); // hook up the child to its native peer nativeInsertElementAt(nativeWebShell, nativeRDFNode, childNativeRDFNode, childNode.getProperties(), index); } // hook up the child to its java parent childNode.setParent(this); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/0e30fa38c30ae26743aee09175fac1e8146c075a/RDFTreeNode.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFTreeNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2243,
12,
19536,
12513,
1151,
16,
509,
770,
15329,
565,
309,
16051,
12,
3624,
1276,
13539,
12513,
3719,
288,
3639,
604,
394,
2754,
2932,
2568,
1404,
2243,
1661,
17,
30137,
12513,
2325,
8863,
565,
289,
565,
5452,
18,
11231,
19236,
21,
480,
6448,
30137,
907,
1769,
565,
13539,
12513,
9465,
273,
261,
30137,
12513,
13,
1151,
31,
3639,
309,
261,
3624,
907,
18,
291,
3899,
10756,
288,
3639,
5452,
18,
11231,
19236,
21,
422,
9465,
18,
588,
9220,
30137,
907,
10663,
3639,
5452,
18,
11231,
12,
2011,
480,
9465,
18,
588,
2297,
10663,
3639,
509,
1151,
9220,
30137,
907,
31,
7734,
368,
3953,
731,
326,
1151,
358,
2097,
6448,
4261,
3639,
1151,
9220,
30137,
907,
273,
6448,
1908,
3899,
12,
13635,
4079,
13220,
16,
6448,
30137,
907,
16,
4766,
2868,
9465,
18,
588,
2297,
10663,
5411,
368,
3953,
731,
326,
1151,
358,
2097,
6448,
4261,
3639,
9465,
18,
542,
9220,
30137,
907,
12,
3624,
9220,
30137,
907,
1769,
565,
289,
565,
469,
288,
3639,
5452,
18,
11231,
67,
305,
19236,
21,
480,
9465,
18,
588,
9220,
30137,
907,
10663,
3639,
509,
1151,
9220,
30137,
907,
273,
9465,
18,
588,
9220,
30137,
907,
5621,
7734,
368,
3953,
731,
326,
1151,
358,
2097,
6448,
4261,
3639,
6448,
4600,
1046,
861,
12,
13635,
4079,
13220,
16,
6448,
30137,
907,
16,
1171,
9079,
1151,
9220,
30137,
907,
16,
9465,
18,
588,
2297,
9334,
1171,
9079,
770,
1769,
565,
289,
5411,
368,
3953,
731,
326,
1151,
358,
2097,
2252,
982,
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,
918,
2243,
12,
19536,
12513,
1151,
16,
509,
770,
15329,
565,
309,
16051,
12,
3624,
1276,
13539,
12513,
3719,
288,
3639,
604,
394,
2754,
2932,
2568,
1404,
2243,
1661,
17,
30137,
12513,
2325,
8863,
565,
289,
565,
5452,
18,
11231,
19236,
21,
480,
6448,
30137,
907,
1769,
565,
13539,
12513,
9465,
273,
261,
30137,
12513,
13,
1151,
31,
3639,
309,
261,
3624,
907,
18,
291,
3899,
10756,
288,
3639,
5452,
18,
11231,
19236,
21,
422,
9465,
18,
588,
9220,
30137,
907,
10663,
3639,
5452,
18,
11231,
12,
2011,
480,
9465,
18,
588,
2297,
10663,
3639,
509,
1151,
9220,
30137,
907,
31,
7734,
368,
3953,
731,
326,
1151,
358,
2097,
6448,
4261,
3639,
1151,
9220,
30137,
907,
273,
6448,
2
] |
throw new UnsupportedOperationException("getRoot should never be called"); }
|
throw new UnsupportedOperationException("getRoot should never be called"); }
|
public Object getRoot() { throw new UnsupportedOperationException("getRoot should never be called"); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/GoListToTypeToItem.java/clean/src_new/org/argouml/cognitive/ui/GoListToTypeToItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
7656,
1435,
288,
1377,
604,
394,
13172,
2932,
588,
2375,
1410,
5903,
506,
2566,
8863,
225,
289,
225,
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,
282,
1071,
1033,
7656,
1435,
288,
1377,
604,
394,
13172,
2932,
588,
2375,
1410,
5903,
506,
2566,
8863,
225,
289,
225,
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
] |
MetadataStore store = reader.getMetadataStore(id); store.setPixels(new Integer(getSizeX(id)), new Integer(getSizeY(id)),
|
MetadataStore s = reader.getMetadataStore(id); s.setPixels(new Integer(getSizeX(id)), new Integer(getSizeY(id)),
|
public MetadataStore getMetadataStore(String id) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); MetadataStore store = reader.getMetadataStore(id); store.setPixels(new Integer(getSizeX(id)), new Integer(getSizeY(id)), new Integer(getSizeZ(id)), new Integer(getSizeC(id)), new Integer(getSizeT(id)), null, null, null, null); return store; }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/a9f08f4144d9b190b40353d537c4cdbd539859c8/ChannelMerger.java/buggy/loci/formats/ChannelMerger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6912,
2257,
11159,
2257,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
6912,
2257,
1707,
273,
2949,
18,
588,
2277,
2257,
12,
350,
1769,
565,
1707,
18,
542,
18079,
12,
2704,
2144,
12,
588,
1225,
60,
12,
350,
13,
3631,
394,
2144,
12,
588,
1225,
61,
12,
350,
13,
3631,
1377,
394,
2144,
12,
588,
1225,
62,
12,
350,
13,
3631,
394,
2144,
12,
588,
1225,
39,
12,
350,
13,
3631,
1377,
394,
2144,
12,
588,
1225,
56,
12,
350,
13,
3631,
446,
16,
446,
16,
446,
16,
446,
1769,
565,
327,
1707,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
6912,
2257,
11159,
2257,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
6912,
2257,
1707,
273,
2949,
18,
588,
2277,
2257,
12,
350,
1769,
565,
1707,
18,
542,
18079,
12,
2704,
2144,
12,
588,
1225,
60,
12,
350,
13,
3631,
394,
2144,
12,
588,
1225,
61,
12,
350,
13,
3631,
1377,
394,
2144,
12,
588,
1225,
62,
12,
350,
13,
3631,
394,
2144,
12,
588,
1225,
39,
12,
350,
13,
3631,
1377,
394,
2144,
12,
588,
1225,
56,
12,
350,
13,
3631,
446,
16,
446,
16,
446,
16,
446,
1769,
565,
327,
1707,
31,
225,
289,
2,
-100
] |
jsFunction_setSeconds(args));
|
makeTime(args, 2, true));
|
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case ConstructorId_UTC: return wrap_double(jsStaticFunction_UTC(args)); case ConstructorId_parse: return wrap_double(jsStaticFunction_parse (ScriptRuntime.toString(args, 0))); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toGMTString: case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear(cx)); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setMilliseconds(args)); case Id_setUTCMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMilliseconds(args)); case Id_setSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setSeconds(args)); case Id_setUTCSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCSeconds(args)); case Id_setMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setMinutes(args)); case Id_setUTCMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMinutes(args)); case Id_setHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setHours(args)); case Id_setUTCHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCHours(args)); case Id_setDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setDate(args)); case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args)); case Id_setMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setMonth(args)); case Id_setUTCMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMonth(args)); case Id_setFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setFullYear(args)); case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCFullYear(args)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/dbefc5595ba41854ec04751abfc8db52f70a5796/NativeDate.java/clean/src/org/mozilla/javascript/NativeDate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
11471,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
11471,
12,
1968,
10019,
7734,
648,
11417,
548,
67,
2670,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
2670,
13491,
261,
3651,
5576,
18,
10492,
12,
1968,
16,
374,
3719,
1769,
7734,
648,
3124,
67,
12316,
30,
10792,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
7734,
648,
3124,
67,
10492,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
10492,
5621,
7734,
648,
3124,
67,
869,
950,
780,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
869,
950,
780,
5621,
7734,
648,
3124,
67,
869,
1626,
780,
30,
10792,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
869,
1626,
780,
5621,
7734,
648,
3124,
67,
869,
3916,
780,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
869,
3916,
780,
5621,
7734,
648,
3124,
67,
869,
3916,
950,
780,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
11471,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
11471,
12,
1968,
10019,
7734,
648,
11417,
548,
67,
2670,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
2670,
13491,
261,
3651,
5576,
18,
10492,
12,
1968,
16,
374,
3719,
1769,
7734,
648,
3124,
67,
12316,
30,
10792,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
7734,
648,
2
] |
if (keys[pos] != null) {
|
if (keys[pos] != free && keys[pos] != removed) {
|
protected synchronized void rehash() { int newCapacity = keys.length * 2; Object oldKeys[] = keys; Object oldElements[] = elements; keys = new Object[newCapacity]; elements = new Object[newCapacity]; rehashLimit = (int)(loadFactor * (float)newCapacity); numberOfKeys = 0; /* Go through adding all the data to the new data */ for (int pos = oldKeys.length-1; pos >= 0; pos--) { if (keys[pos] != null) { put(keys[pos], elements[pos]); } } }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/f2a82210d668aff210062ac5aac6ba40961bbb62/Hashtable.java/buggy/libraries/javalib/java/util/Hashtable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
283,
2816,
1435,
225,
288,
565,
509,
30787,
273,
1311,
18,
2469,
380,
576,
31,
565,
1033,
1592,
2396,
8526,
273,
1311,
31,
565,
1033,
1592,
3471,
8526,
273,
2186,
31,
565,
1311,
273,
394,
1033,
63,
2704,
7437,
15533,
565,
2186,
273,
394,
1033,
63,
2704,
7437,
15533,
565,
283,
2816,
3039,
273,
261,
474,
21433,
945,
6837,
380,
261,
5659,
13,
2704,
7437,
1769,
565,
7922,
2396,
273,
374,
31,
565,
1748,
4220,
3059,
6534,
777,
326,
501,
358,
326,
394,
501,
1195,
565,
364,
261,
474,
949,
273,
1592,
2396,
18,
2469,
17,
21,
31,
949,
1545,
374,
31,
949,
413,
13,
288,
1377,
309,
261,
2452,
63,
917,
65,
480,
446,
13,
288,
202,
458,
12,
2452,
63,
917,
6487,
2186,
63,
917,
19226,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
918,
283,
2816,
1435,
225,
288,
565,
509,
30787,
273,
1311,
18,
2469,
380,
576,
31,
565,
1033,
1592,
2396,
8526,
273,
1311,
31,
565,
1033,
1592,
3471,
8526,
273,
2186,
31,
565,
1311,
273,
394,
1033,
63,
2704,
7437,
15533,
565,
2186,
273,
394,
1033,
63,
2704,
7437,
15533,
565,
283,
2816,
3039,
273,
261,
474,
21433,
945,
6837,
380,
261,
5659,
13,
2704,
7437,
1769,
565,
7922,
2396,
273,
374,
31,
565,
1748,
4220,
3059,
6534,
777,
326,
501,
358,
326,
394,
501,
1195,
565,
364,
261,
474,
949,
273,
1592,
2396,
18,
2469,
17,
21,
31,
949,
1545,
374,
31,
949,
413,
13,
288,
1377,
309,
261,
2452,
63,
917,
65,
480,
446,
2
] |
(lname == null || lname.equals(e.getLocalName()))) {
|
(lname == null || lname.equals(e.getLocalName()))) {
|
public static Element[] filterChildElements(Element parent, String ns, String lname) { List elems = new ArrayList(); NodeList nlst = parent.getChildNodes(); for (int i = 0, nlen = nlst.getLength(); i < nlen; i++) { Node n = nlst.item(i); if (n instanceof Element) { Element e = (Element) n; if ((ns == null || ns.equals(e.getNamespaceURI())) && (lname == null || lname.equals(e.getLocalName()))) { elems.add(e); } } } return (Element[]) elems.toArray(new Element[0]); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/db1f6eac294a13b7a0440829f5e59a6a33f2788e/XmlaUtil.java/buggy/src/main/mondrian/xmla/XmlaUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
8526,
1034,
1763,
3471,
12,
1046,
982,
16,
514,
3153,
16,
514,
328,
529,
13,
288,
3639,
987,
14733,
273,
394,
2407,
5621,
3639,
16781,
7741,
334,
273,
982,
18,
588,
22460,
5621,
3639,
364,
261,
474,
277,
273,
374,
16,
290,
1897,
273,
7741,
334,
18,
588,
1782,
5621,
277,
411,
290,
1897,
31,
277,
27245,
288,
5411,
2029,
290,
273,
7741,
334,
18,
1726,
12,
77,
1769,
5411,
309,
261,
82,
1276,
3010,
13,
288,
7734,
3010,
425,
273,
261,
1046,
13,
290,
31,
7734,
309,
14015,
2387,
422,
446,
747,
3153,
18,
14963,
12,
73,
18,
588,
3402,
3098,
1435,
3719,
597,
13491,
261,
80,
529,
422,
446,
747,
328,
529,
18,
14963,
12,
73,
18,
588,
29583,
1435,
20349,
288,
10792,
14733,
18,
1289,
12,
73,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
261,
1046,
63,
5717,
14733,
18,
31447,
12,
2704,
3010,
63,
20,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
3010,
8526,
1034,
1763,
3471,
12,
1046,
982,
16,
514,
3153,
16,
514,
328,
529,
13,
288,
3639,
987,
14733,
273,
394,
2407,
5621,
3639,
16781,
7741,
334,
273,
982,
18,
588,
22460,
5621,
3639,
364,
261,
474,
277,
273,
374,
16,
290,
1897,
273,
7741,
334,
18,
588,
1782,
5621,
277,
411,
290,
1897,
31,
277,
27245,
288,
5411,
2029,
290,
273,
7741,
334,
18,
1726,
12,
77,
1769,
5411,
309,
261,
82,
1276,
3010,
13,
288,
7734,
3010,
425,
273,
261,
1046,
13,
290,
31,
7734,
309,
14015,
2387,
422,
446,
747,
3153,
18,
14963,
12,
73,
18,
588,
3402,
3098,
1435,
3719,
597,
13491,
261,
80,
529,
422,
446,
747,
328,
529,
18,
2
] |
private void genVMStatus() throws SAXException { AttributesImpl atts = new AttributesImpl(); startGroup("vm"); // BEGIN Memory status startGroup("memory"); addValue("total", String.valueOf(Runtime.getRuntime().totalMemory())); addValue("free", String.valueOf(Runtime.getRuntime().freeMemory())); endGroup(); // END Memory status // BEGIN JRE startGroup("jre"); addValue("version", SystemUtils.JAVA_VERSION); atts.clear(); // qName = prefix + ':' + localName atts.addAttribute(xlinkNamespace, "type", xlinkPrefix + ":type", "CDATA", "simple"); atts.addAttribute(xlinkNamespace, "href", xlinkPrefix + ":href", "CDATA", SystemUtils.JAVA_VENDOR_URL); addValue("java-vendor", SystemUtils.JAVA_VENDOR, atts); endGroup(); // END JRE // BEGIN Operating system startGroup("operating-system"); addValue("name", SystemUtils.OS_NAME); addValue("architecture", SystemUtils.OS_ARCH); addValue("version", SystemUtils.OS_VERSION); endGroup(); // END operating system String classpath = SystemUtils.JAVA_CLASS_PATH; List paths = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(classpath, SystemUtils.PATH_SEPARATOR); while (tokenizer.hasMoreTokens()) { paths.add(tokenizer.nextToken()); } addMultilineValue("classpath", paths); // END ClassPath // BEGIN Cache if ( this.storejanitor != null ) { startGroup("Store-Janitor"); // For each element in StoreJanitor Iterator i = this.storejanitor.iterator(); while (i.hasNext()) { Store store = (Store) i.next(); startGroup(store.getClass().getName() + " (hash = 0x" + Integer.toHexString(store.hashCode()) + ")" ); int size = 0; int empty = 0; atts.clear(); atts.addAttribute(namespace, "name", "name", "CDATA", "cached"); this.xmlConsumer.startElement(namespace, "value", "value", atts); // For each element in Store Enumeration e = store.keys(); atts.clear(); while(e.hasMoreElements()) { size++; Object key = e.nextElement(); Object val = store.get( key ); String line = null; if (val == null) { empty++; } else { line = key + " (class: " + val.getClass().getName() + ")"; this.xmlConsumer.startElement(namespace, "line", "line", atts); this.xmlConsumer.characters(line.toCharArray(), 0, line.length()); this.xmlConsumer.endElement(namespace, "line", "line"); } } if (size == 0) { this.xmlConsumer.startElement(namespace, "line", "line", atts); String value = "[empty]"; this.xmlConsumer.characters(value.toCharArray(), 0, value.length()); this.xmlConsumer.endElement(namespace, "line", "line"); } this.xmlConsumer.endElement(namespace, "value", "value"); addValue("size", String.valueOf(size) + " items in cache (" + empty + " are empty)"); endGroup(); } endGroup(); } if (this.store_persistent != null) { startGroup( store_persistent.getClass().getName()+" (hash = 0x"+Integer.toHexString(store_persistent.hashCode())+")"); int size = 0; int empty = 0; atts.clear(); atts.addAttribute(namespace, "name", "name", "CDATA", "cached"); this.xmlConsumer.startElement(namespace, "value", "value", atts); Enumeration enumer = this.store_persistent.keys(); while (enumer.hasMoreElements()) { size++; Object key = enumer.nextElement(); Object val = store_persistent.get(key); String line = null; if (val == null) { empty++; } else { line = key + " (class: " + val.getClass().getName() + ")"; this.xmlConsumer.startElement(namespace, "line", "line", atts); this.xmlConsumer.characters(line.toCharArray(), 0, line.length()); this.xmlConsumer.endElement(namespace, "line", "line"); } } if (size == 0) { this.xmlConsumer.startElement(namespace, "line", "line", atts); String value = "[empty]"; this.xmlConsumer.characters(value.toCharArray(), 0, value.length()); this.xmlConsumer.endElement(namespace, "line", "line"); } this.xmlConsumer.endElement(namespace, "value", "value"); addValue("size", String.valueOf(size) + " items in cache (" + empty + " are empty)"); endGroup(); } // END Cache // BEGIN OS info endGroup(); }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/b8322a215f64d1b5aab5a8b3646c5d71a33c0078/StatusGenerator.java/clean/src/java/org/apache/cocoon/generation/StatusGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
7397,
1482,
1435,
1216,
14366,
288,
3639,
9055,
2828,
15687,
273,
394,
9055,
2828,
5621,
3639,
787,
1114,
2932,
3489,
8863,
3639,
368,
19270,
9251,
1267,
3639,
787,
1114,
2932,
7858,
8863,
3639,
17663,
2932,
4963,
3113,
514,
18,
1132,
951,
12,
5576,
18,
588,
5576,
7675,
4963,
6031,
1435,
10019,
3639,
17663,
2932,
9156,
3113,
514,
18,
1132,
951,
12,
5576,
18,
588,
5576,
7675,
9156,
6031,
1435,
10019,
3639,
679,
1114,
5621,
3639,
368,
7273,
9251,
1267,
3639,
368,
19270,
804,
862,
3639,
787,
1114,
2932,
78,
266,
8863,
3639,
17663,
2932,
1589,
3113,
2332,
1989,
18,
27264,
67,
5757,
1769,
3639,
15687,
18,
8507,
5621,
3639,
368,
22914,
273,
1633,
397,
3921,
397,
11927,
3639,
15687,
18,
1289,
1499,
12,
92,
1232,
3402,
16,
315,
723,
3113,
619,
1232,
2244,
397,
6398,
723,
3113,
315,
18375,
3113,
315,
9647,
8863,
3639,
15687,
18,
1289,
1499,
12,
92,
1232,
3402,
16,
315,
7547,
3113,
619,
1232,
2244,
397,
6398,
7547,
3113,
315,
18375,
3113,
2332,
1989,
18,
27264,
67,
58,
30014,
67,
1785,
1769,
3639,
17663,
2932,
6290,
17,
10645,
3113,
2332,
1989,
18,
27264,
67,
58,
30014,
16,
15687,
1769,
3639,
679,
1114,
5621,
3639,
368,
7273,
804,
862,
3639,
368,
19270,
7692,
1776,
2619,
3639,
787,
1114,
2932,
4063,
1776,
17,
4299,
8863,
3639,
17663,
2932,
529,
3113,
2332,
1989,
18,
4618,
67,
1985,
1769,
3639,
17663,
2932,
991,
18123,
3113,
2332,
1989,
18,
4618,
67,
10586,
1769,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
7397,
1482,
1435,
1216,
14366,
288,
3639,
9055,
2828,
15687,
273,
394,
9055,
2828,
5621,
3639,
787,
1114,
2932,
3489,
8863,
3639,
368,
19270,
9251,
1267,
3639,
787,
1114,
2932,
7858,
8863,
3639,
17663,
2932,
4963,
3113,
514,
18,
1132,
951,
12,
5576,
18,
588,
5576,
7675,
4963,
6031,
1435,
10019,
3639,
17663,
2932,
9156,
3113,
514,
18,
1132,
951,
12,
5576,
18,
588,
5576,
7675,
9156,
6031,
1435,
10019,
3639,
679,
1114,
5621,
3639,
368,
7273,
9251,
1267,
3639,
368,
19270,
804,
862,
3639,
787,
1114,
2932,
78,
266,
8863,
3639,
17663,
2932,
1589,
3113,
2332,
1989,
18,
27264,
67,
5757,
1769,
3639,
15687,
18,
8507,
5621,
3639,
368,
22914,
273,
1633,
397,
3921,
2
] |
||
if (isClass()) {
|
if (isClass()) {
|
public String getName() { if (getBaseName() == null) { if (isClass()) { return "#<" + "Class" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } else { return "#<" + "Module" + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } } StringBuffer result = new StringBuffer(getBaseName()); RubyClass objectClass = getRuntime().getObject(); for (RubyModule p = this.getParent(); p != null && p != objectClass; p = p.getParent()) { result.insert(0, "::").insert(0, p.getBaseName()); } return result.toString(); }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
309,
261,
588,
29907,
1435,
422,
446,
13,
288,
540,
202,
430,
261,
291,
797,
10756,
288,
7734,
327,
6619,
32,
6,
397,
315,
797,
6,
397,
6398,
1611,
92,
6,
397,
2144,
18,
869,
14866,
12,
3163,
18,
10781,
21952,
12,
2211,
3719,
397,
14675,
31,
540,
202,
97,
469,
288,
7734,
327,
6619,
32,
6,
397,
315,
3120,
6,
397,
6398,
1611,
92,
6,
397,
2144,
18,
869,
14866,
12,
3163,
18,
10781,
21952,
12,
2211,
3719,
397,
14675,
31,
540,
202,
97,
3639,
289,
7734,
6674,
563,
273,
394,
6674,
12,
588,
29907,
10663,
3639,
19817,
797,
23992,
273,
18814,
7675,
588,
921,
5621,
7734,
364,
261,
54,
10340,
3120,
293,
273,
333,
18,
588,
3054,
5621,
293,
480,
446,
597,
293,
480,
23992,
31,
293,
273,
293,
18,
588,
3054,
10756,
288,
5411,
563,
18,
6387,
12,
20,
16,
31120,
2934,
6387,
12,
20,
16,
293,
18,
588,
29907,
10663,
3639,
289,
3639,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
309,
261,
588,
29907,
1435,
422,
446,
13,
288,
540,
202,
430,
261,
291,
797,
10756,
288,
7734,
327,
6619,
32,
6,
397,
315,
797,
6,
397,
6398,
1611,
92,
6,
397,
2144,
18,
869,
14866,
12,
3163,
18,
10781,
21952,
12,
2211,
3719,
397,
14675,
31,
540,
202,
97,
469,
288,
7734,
327,
6619,
32,
6,
397,
315,
3120,
6,
397,
6398,
1611,
92,
6,
397,
2144,
18,
869,
14866,
12,
3163,
18,
10781,
21952,
12,
2211,
3719,
397,
14675,
31,
540,
202,
97,
3639,
289,
7734,
6674,
563,
273,
394,
6674,
12,
588,
29907,
10663,
3639,
19817,
797,
23992,
273,
18814,
7675,
588,
921,
5621,
7734,
364,
261,
54,
10340,
2
] |
PyJavaClass.lookup(PyString.class)
|
PyType.fromClass(PyString.class)
|
public static void classDictInit(PyObject dict) { dict.__setitem__("ArrayType", PyJavaClass.lookup(PyArray.class)); dict.__setitem__("BuiltinFunctionType", PyJavaClass.lookup(PyReflectedFunction.class)); dict.__setitem__("BuiltinMethodType", PyJavaClass.lookup(PyMethod.class)); dict.__setitem__("ClassType", PyJavaClass.lookup(PyClass.class)); dict.__setitem__("CodeType", PyJavaClass.lookup(PyCode.class)); dict.__setitem__("ComplexType", PyJavaClass.lookup(PyComplex.class)); dict.__setitem__("DictType", PyJavaClass.lookup(PyDictionary.class)); dict.__setitem__("DictionaryType", PyJavaClass.lookup(PyDictionary.class)); dict.__setitem__("EllipsisType", PyJavaClass.lookup(PyEllipsis.class)); dict.__setitem__("FileType", PyJavaClass.lookup(PyFile.class)); dict.__setitem__("FloatType", PyJavaClass.lookup(PyFloat.class)); dict.__setitem__("FrameType", PyJavaClass.lookup(PyFrame.class)); dict.__setitem__("FunctionType", PyJavaClass.lookup(PyFunction.class)); dict.__setitem__("GeneratorType", PyJavaClass.lookup(PyGenerator.class)); dict.__setitem__("InstanceType", PyJavaClass.lookup(PyInstance.class)); dict.__setitem__("IntType", PyJavaClass.lookup(PyInteger.class)); dict.__setitem__("LambdaType", PyJavaClass.lookup(PyFunction.class)); dict.__setitem__("ListType", PyJavaClass.lookup(PyList.class)); dict.__setitem__("LongType", PyJavaClass.lookup(PyLong.class)); dict.__setitem__("MethodType", PyJavaClass.lookup(PyMethod.class)); dict.__setitem__("ModuleType", PyJavaClass.lookup(PyModule.class)); dict.__setitem__("NoneType", PyJavaClass.lookup(PyNone.class)); dict.__setitem__("SliceType", PyJavaClass.lookup(PySlice.class)); dict.__setitem__("StringType", PyJavaClass.lookup(PyString.class)); dict.__setitem__("TracebackType", PyJavaClass.lookup(PyTraceback.class)); dict.__setitem__("TupleType", PyJavaClass.lookup(PyTuple.class)); dict.__setitem__("TypeType", PyJavaClass.lookup(PyJavaClass.class)); dict.__setitem__("UnboundMethodType", PyJavaClass.lookup(PyMethod.class)); dict.__setitem__("UnicodeType", PyJavaClass.lookup(PyString.class)); dict.__setitem__("XRangeType", PyJavaClass.lookup(PyXRange.class)); dict.__setitem__("StringTypes", new PyTuple(new PyObject[] { PyJavaClass.lookup(PyString.class) })); }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/f1a14fc2e5b8633379ef5db31fa9e36925099543/types.java/clean/org/python/modules/types.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
667,
5014,
2570,
12,
9413,
921,
2065,
13,
288,
3639,
2065,
16186,
542,
1726,
972,
2932,
27182,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
1076,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
28032,
2083,
559,
3113,
7682,
4707,
5852,
797,
18,
8664,
12,
9413,
24452,
329,
2083,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
28032,
21988,
3113,
7682,
4707,
5852,
797,
18,
8664,
12,
9413,
1305,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
18328,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
797,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
1085,
559,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
1085,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
12795,
559,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
12795,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
5014,
559,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
10905,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
10905,
559,
3113,
7682,
4707,
5852,
797,
18,
8664,
12,
9413,
10905,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
4958,
17829,
559,
3113,
7682,
4707,
5852,
797,
18,
8664,
12,
9413,
4958,
17829,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
28941,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
812,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
4723,
559,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
4723,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
667,
5014,
2570,
12,
9413,
921,
2065,
13,
288,
3639,
2065,
16186,
542,
1726,
972,
2932,
27182,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
1076,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
28032,
2083,
559,
3113,
7682,
4707,
5852,
797,
18,
8664,
12,
9413,
24452,
329,
2083,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
28032,
21988,
3113,
7682,
4707,
5852,
797,
18,
8664,
12,
9413,
1305,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
18328,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
797,
18,
1106,
10019,
3639,
2065,
16186,
542,
1726,
972,
2932,
1085,
559,
3113,
4707,
5852,
797,
18,
8664,
12,
9413,
1085,
18,
2
] |
AuralProps mAurProps = propMgr.getAuralProps();
|
CommonAural mAurProps = propMgr.getAuralProps();
|
private void setup() { // Common Accessibility Properties AccessibilityProps mAccProps = propMgr.getAccessibilityProps(); // Common Aural Properties AuralProps mAurProps = propMgr.getAuralProps(); // Common Border, Padding, and Background Properties BorderAndPadding bap = propMgr.getBorderAndPadding(); BackgroundProps bProps = propMgr.getBackgroundProps(); // Common Font Properties //this.fontState = propMgr.getFontState(area.getFontInfo()); // Common Relative Position Properties RelativePositionProps mRelProps = propMgr.getRelativePositionProps(); // this.properties.get("color"); setupID(); // this.properties.get("letter-spacing"); // this.properties.get("line-height"); // this.properties.get("line-height-shift-adjustment"); // this.properties.get("score-spaces"); // this.properties.get("text-decoration"); // this.properties.get("text-shadow"); // this.properties.get("text-transform"); // this.properties.get("word-spacing"); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/f9bee020b38c9c2a4f4b989ee875b677c56780ac/InitialPropertySet.java/clean/src/java/org/apache/fop/fo/flow/InitialPropertySet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
1435,
288,
3639,
368,
5658,
5016,
3628,
6183,
3639,
5016,
3628,
5047,
312,
8973,
5047,
273,
2270,
9455,
18,
588,
1862,
3628,
5047,
5621,
3639,
368,
5658,
432,
3766,
6183,
3639,
5658,
37,
3766,
312,
37,
295,
5047,
273,
2270,
9455,
18,
588,
37,
3766,
5047,
5621,
3639,
368,
5658,
13525,
16,
453,
3439,
16,
471,
8977,
6183,
3639,
13525,
1876,
9485,
324,
438,
273,
2270,
9455,
18,
588,
8107,
1876,
9485,
5621,
3639,
8977,
5047,
324,
5047,
273,
2270,
9455,
18,
588,
8199,
5047,
5621,
3639,
368,
5658,
10063,
6183,
3639,
368,
2211,
18,
5776,
1119,
273,
2270,
9455,
18,
588,
5711,
1119,
12,
5036,
18,
588,
5711,
966,
10663,
3639,
368,
5658,
19873,
11010,
6183,
3639,
19873,
2555,
5047,
312,
1971,
5047,
273,
2270,
9455,
18,
588,
8574,
2555,
5047,
5621,
3639,
368,
333,
18,
4738,
18,
588,
2932,
3266,
8863,
3639,
3875,
734,
5621,
3639,
368,
333,
18,
4738,
18,
588,
2932,
13449,
17,
14080,
8863,
3639,
368,
333,
18,
4738,
18,
588,
2932,
1369,
17,
4210,
8863,
3639,
368,
333,
18,
4738,
18,
588,
2932,
1369,
17,
4210,
17,
4012,
17,
13362,
475,
8863,
3639,
368,
333,
18,
4738,
18,
588,
2932,
6355,
17,
9554,
8863,
3639,
368,
333,
18,
4738,
18,
588,
2932,
955,
17,
11880,
367,
8863,
3639,
368,
333,
18,
4738,
18,
588,
2932,
955,
17,
19119,
8863,
3639,
368,
333,
18,
4738,
18,
588,
2932,
955,
17,
6547,
8863,
3639,
368,
333,
18,
4738,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
1435,
288,
3639,
368,
5658,
5016,
3628,
6183,
3639,
5016,
3628,
5047,
312,
8973,
5047,
273,
2270,
9455,
18,
588,
1862,
3628,
5047,
5621,
3639,
368,
5658,
432,
3766,
6183,
3639,
5658,
37,
3766,
312,
37,
295,
5047,
273,
2270,
9455,
18,
588,
37,
3766,
5047,
5621,
3639,
368,
5658,
13525,
16,
453,
3439,
16,
471,
8977,
6183,
3639,
13525,
1876,
9485,
324,
438,
273,
2270,
9455,
18,
588,
8107,
1876,
9485,
5621,
3639,
8977,
5047,
324,
5047,
273,
2270,
9455,
18,
588,
8199,
5047,
5621,
3639,
368,
5658,
10063,
6183,
3639,
368,
2211,
18,
5776,
1119,
273,
2270,
9455,
18,
588,
5711,
1119,
12,
5036,
18,
588,
5711,
966,
10663,
3639,
368,
5658,
19873,
2
] |
ICompletionProposal proposal = createProposal(replaceString, displayString, infoString.toString(),
|
CCompletionProposal proposal = createProposal(replaceString, displayString, infoString.toString(),
|
public void acceptClass( String name, int completionStart, int completionLength, int relevance) { String replaceString = ""; //$NON-NLS-1$ String displayString = ""; //$NON-NLS-1$ Image image = null; StringBuffer infoString = new StringBuffer(); // fill the replace, display and info strings replaceString = name; displayString = name; // get the image ImageDescriptor imageDescriptor = CElementImageProvider.getClassImageDescriptor(); image = registry.get( imageDescriptor ); // create proposal and add it to completions list ICompletionProposal proposal = createProposal(replaceString, displayString, infoString.toString(), null, image, completionStart, completionLength, relevance); completions.add(proposal); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/297edc9e7b861136f4c686ebd68fbbea666a9e6d/ResultCollector.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ResultCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
797,
12,
202,
202,
780,
508,
16,
202,
202,
474,
8364,
1685,
16,
202,
202,
474,
8364,
1782,
16,
202,
202,
474,
6707,
5882,
13,
288,
6862,
202,
780,
1453,
780,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
780,
2562,
780,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2040,
1316,
273,
446,
31,
1082,
202,
780,
1892,
1123,
780,
273,
394,
6674,
5621,
6862,
202,
759,
3636,
326,
1453,
16,
2562,
471,
1123,
2064,
1082,
202,
2079,
780,
273,
508,
31,
1082,
202,
5417,
780,
273,
508,
31,
9506,
202,
759,
336,
326,
1316,
4697,
202,
2040,
3187,
1316,
3187,
273,
385,
1046,
2040,
2249,
18,
588,
797,
2040,
3187,
5621,
1082,
202,
2730,
273,
4023,
18,
588,
12,
1316,
3187,
11272,
1082,
202,
759,
752,
14708,
471,
527,
518,
358,
23738,
666,
1082,
202,
39,
11238,
14592,
14708,
273,
752,
14592,
12,
2079,
780,
16,
2562,
780,
16,
1123,
780,
18,
10492,
9334,
4697,
202,
2011,
16,
1316,
16,
8364,
1685,
16,
8364,
1782,
16,
6707,
5882,
1769,
1082,
202,
7806,
1115,
18,
1289,
12,
685,
8016,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
797,
12,
202,
202,
780,
508,
16,
202,
202,
474,
8364,
1685,
16,
202,
202,
474,
8364,
1782,
16,
202,
202,
474,
6707,
5882,
13,
288,
6862,
202,
780,
1453,
780,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
780,
2562,
780,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2040,
1316,
273,
446,
31,
1082,
202,
780,
1892,
1123,
780,
273,
394,
6674,
5621,
6862,
202,
759,
3636,
326,
1453,
16,
2562,
471,
1123,
2064,
1082,
202,
2079,
780,
273,
508,
31,
1082,
202,
5417,
780,
273,
508,
31,
9506,
202,
759,
336,
326,
1316,
4697,
202,
2040,
3187,
1316,
3187,
273,
385,
1046,
2040,
2
] |
db.breakOnReturn = breakOnReturn.isSelected();
|
db.setBreakOnReturn(breakOnReturn.isSelected());
|
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); String plaf_name = null; if (cmd.equals("Metal")) { plaf_name = "javax.swing.plaf.metal.MetalLookAndFeel"; } else if (cmd.equals("Windows")) { plaf_name = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; } else if (cmd.equals("Motif")) { plaf_name = "com.sun.java.swing.plaf.motif.MotifLookAndFeel"; } else { Object source = e.getSource(); if (source == breakOnExceptions) { db.setBreakOnExceptions(breakOnExceptions.isSelected()); }else if (source == breakOnEnter) { db.breakOnEnter = breakOnEnter.isSelected(); }else if (source == breakOnReturn) { db.breakOnReturn = breakOnReturn.isSelected(); }else { db.actionPerformed(e); } return; } try { UIManager.setLookAndFeel(plaf_name); SwingUtilities.updateComponentTreeUI(db); SwingUtilities.updateComponentTreeUI(db.dlg); } catch (Exception ignored) { //ignored.printStackTrace(); } }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/9eba368797915a381c6c9590a56657ad0702ed9c/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
514,
886,
1727,
67,
529,
273,
446,
31,
3639,
309,
261,
4172,
18,
14963,
2932,
26365,
6,
3719,
288,
5411,
886,
1727,
67,
529,
273,
315,
28384,
18,
5328,
310,
18,
412,
1727,
18,
10578,
287,
18,
26365,
9794,
1876,
2954,
292,
14432,
3639,
289,
469,
309,
261,
4172,
18,
14963,
2932,
10399,
6,
3719,
288,
5411,
886,
1727,
67,
529,
273,
315,
832,
18,
16924,
18,
6290,
18,
5328,
310,
18,
412,
1727,
18,
13226,
18,
10399,
9794,
1876,
2954,
292,
14432,
3639,
289,
469,
309,
261,
4172,
18,
14963,
2932,
24749,
430,
6,
3719,
288,
5411,
886,
1727,
67,
529,
273,
315,
832,
18,
16924,
18,
6290,
18,
5328,
310,
18,
412,
1727,
18,
18313,
430,
18,
24749,
430,
9794,
1876,
2954,
292,
14432,
3639,
289,
469,
288,
5411,
1033,
1084,
273,
425,
18,
588,
1830,
5621,
5411,
309,
261,
3168,
422,
898,
1398,
11416,
13,
288,
7734,
1319,
18,
542,
7634,
1398,
11416,
12,
8820,
1398,
11416,
18,
291,
7416,
10663,
5411,
289,
12107,
309,
261,
3168,
422,
898,
1398,
10237,
13,
288,
7734,
1319,
18,
8820,
1398,
10237,
273,
898,
1398,
10237,
18,
291,
7416,
5621,
5411,
289,
12107,
309,
261,
3168,
422,
898,
1398,
990,
13,
288,
7734,
1319,
18,
542,
7634,
1398,
990,
12,
8820,
1398,
990,
18,
291,
7416,
10663,
5411,
289,
12107,
288,
7734,
1319,
18,
1128,
13889,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
514,
886,
1727,
67,
529,
273,
446,
31,
3639,
309,
261,
4172,
18,
14963,
2932,
26365,
6,
3719,
288,
5411,
886,
1727,
67,
529,
273,
315,
28384,
18,
5328,
310,
18,
412,
1727,
18,
10578,
287,
18,
26365,
9794,
1876,
2954,
292,
14432,
3639,
289,
469,
309,
261,
4172,
18,
14963,
2932,
10399,
6,
3719,
288,
5411,
886,
1727,
67,
529,
273,
315,
832,
18,
16924,
18,
6290,
18,
5328,
310,
18,
412,
1727,
18,
13226,
18,
10399,
9794,
1876,
2954,
292,
14432,
3639,
289,
469,
309,
261,
4172,
18,
14963,
2932,
24749,
430,
6,
3719,
288,
5411,
2
] |
File templateDirectory = new File( templateFolderPath, File.separator );
|
File templateDirectory = new File( root, File.separator );
|
private void createCustomTemplateList( ) { String templateFolderPath = ReportPlugin.getDefault( ) .getTemplatePreference( ); File templateDirectory = new File( templateFolderPath, File.separator ); if ( templateDirectory.isDirectory( ) ) { if ( !templateDirectory.exists( ) ) { templateDirectory.mkdirs( ); } File[] filesArray = templateDirectory.listFiles( new FilenameFilter( ) { public boolean accept( File dir, String name ) { return name.endsWith( ".rpttemplate" );//$NON-NLS-1$ } } ); for ( int i = 0; i < filesArray.length; i++ ) { try { templates.add( new Template( filesArray[i].getName( ) ) ); } catch ( Exception e ) { // ignore } } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/38871cc6d6150f7be0054964b778c1692031fc19/WizardTemplateChoicePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3802,
2283,
682,
12,
262,
202,
95,
202,
202,
780,
1542,
28785,
273,
8706,
3773,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
2283,
9624,
12,
11272,
202,
202,
812,
1542,
2853,
273,
394,
1387,
12,
1542,
28785,
16,
1387,
18,
11287,
11272,
202,
202,
430,
261,
1542,
2853,
18,
291,
2853,
12,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
3202,
2853,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
3202,
2853,
18,
24816,
8291,
12,
11272,
1082,
202,
97,
1082,
202,
812,
8526,
1390,
1076,
273,
1542,
2853,
18,
1098,
2697,
12,
394,
16671,
1586,
12,
262,
288,
9506,
202,
482,
1250,
2791,
12,
1387,
1577,
16,
514,
508,
262,
9506,
202,
95,
6862,
202,
2463,
508,
18,
5839,
1190,
12,
3552,
86,
337,
3202,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
1082,
202,
97,
11272,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
1390,
1076,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
8502,
18,
1289,
12,
394,
5035,
12,
1390,
1076,
63,
77,
8009,
17994,
12,
262,
262,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
1185,
425,
262,
9506,
202,
95,
6862,
202,
759,
2305,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3802,
2283,
682,
12,
262,
202,
95,
202,
202,
780,
1542,
28785,
273,
8706,
3773,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
2283,
9624,
12,
11272,
202,
202,
812,
1542,
2853,
273,
394,
1387,
12,
1542,
28785,
16,
1387,
18,
11287,
11272,
202,
202,
430,
261,
1542,
2853,
18,
291,
2853,
12,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
3202,
2853,
18,
1808,
12,
262,
262,
1082,
202,
95,
9506,
202,
3202,
2853,
18,
24816,
8291,
12,
11272,
1082,
202,
97,
1082,
202,
812,
8526,
1390,
1076,
273,
1542,
2853,
18,
1098,
2697,
12,
394,
16671,
1586,
12,
262,
288,
9506,
202,
482,
1250,
2791,
12,
1387,
1577,
16,
2
] |
return new Boolean( ! getBooleanConstant(val) );
|
return Boolean.valueOf( ! getBooleanConstant(val) );
|
public static Object eval(Expr e) { Type t = FlowInsensitiveChecks.getType( e ); //System.out.println("eval at "+Location.toString( e.getStartLoc() )+" type "+Types.printName(t) ); try { switch( e.getTag() ) { case TagConstants.PARENEXPR: return eval( ((ParenExpr)e).expr ); case TagConstants.CONDEXPR: { CondExpr ce = (CondExpr)e; Object val = eval(ce.test); if( val!= null && val instanceof Boolean ) { if( ((Boolean)val).booleanValue() ) return eval(ce.thn); else return eval(ce.els); } else return null; } case TagConstants.CASTEXPR: { CastExpr ce = (CastExpr)e; Object val = eval(ce.expr); if( val == null ) return null; Type tsub = FlowInsensitiveChecks.getType(ce.expr); if( Types.isSameType( t, tsub ) ) { // Identity conversion return val; } else if( Types.isSameType( t, Types.javaLangString() ) ) { // convert to a string return new String( val.toString() ); } else if( Types.isIntegralType( t ) ) { if( Types.isSameType( t, Types.longType ) ) { if( Types.isFloatingPointType( tsub ) ) return new Long( (long)getDoubleConstant( val ) ); else if( Types.isIntegralType( tsub ) ) return new Long( getLongConstant( val ) ); else return null; } else { // Type uses Integer representation: // First, get ce.expr's val as a widened int: int ival; if (Types.isFloatingPointType(tsub)) ival = (int)getDoubleConstant(val); else if (Types.isIntegralType(tsub)) ival = (int)getLongConstant(val); else return null; // Do narrowing conversion if needed: if (Types.isByteType(t)) ival = (byte)ival; else if (Types.isShortType(t)) ival = (short)ival; else if (Types.isCharType(t)) ival = (char)ival; return new Integer(ival); } } else if( Types.isFloatingPointType( t ) ) { if( Types.isSameType( t, Types.doubleType ) ) { if( Types.isFloatingPointType( tsub ) ) return new Double( getDoubleConstant( val ) ); else if( Types.isIntegralType( tsub ) ) return new Double( getLongConstant( val ) ); else return null; } else { // Type is float if( Types.isFloatingPointType( tsub ) ) return new Float( (float)getDoubleConstant( val ) ); else if( Types.isIntegralType( tsub ) ) return new Float( getLongConstant( val ) ); else return null; } } else { Assert.fail("Bad cast"); return null; // dummy return } } case TagConstants.FIELDACCESS: { FieldAccess fa = (FieldAccess)e; // Assume fa.od is prepped, and decl is defined VarInit init = fa.decl.init; //@ nowarn Null if(Modifiers.isFinal( fa.decl.modifiers ) && init != null && init instanceof Expr ) { TypeCheck.inst.makeFlowInsensitiveChecks() .checkFieldDecl( fa.decl ); return eval( (Expr)fa.decl.init ); } else return null; } case TagConstants.VARIABLEACCESS: { VariableAccess lva = (VariableAccess)e; if( lva.decl instanceof LocalVarDecl ) { LocalVarDecl d = (LocalVarDecl)lva.decl; if(Modifiers.isFinal( d.modifiers ) && d.init != null && d.init instanceof Expr ) return eval( (Expr)d.init ); else return null; } else // refers to a formal parameter return null; } default: if( e instanceof LiteralExpr ) { // System.out.println("eval: LiteralExpr: value="+((LiteralExpr)e).value); return ((LiteralExpr)e).value; } else if( e instanceof UnaryExpr ) { UnaryExpr ue = (UnaryExpr)e; Object val = eval( ue.expr ); // System.out.println("eval: unary: op="+e.getTag()+" sub value="+val); if( val==null ) return null; if( Types.isSameType( t, Types.intType ) ) { int i = getIntConstant( val ); switch( e.getTag() ) { case TagConstants.UNARYADD: return val; case TagConstants.UNARYSUB: return new Integer(-i); case TagConstants.BITNOT: return new Integer(~i); default: return null; } } else if( Types.isSameType( t, Types.longType ) ) { long l = getLongConstant( val ); switch( e.getTag() ) { case TagConstants.UNARYADD: return val; case TagConstants.UNARYSUB: return new Long(-l); case TagConstants.BITNOT: return new Long(~l); default: return null; } } else if( Types.isSameType( t, Types.floatType ) ) { float f = getFloatConstant( val ); switch( e.getTag() ) { case TagConstants.UNARYADD: return val; case TagConstants.UNARYSUB: return new Float(-f); default: return null; } } else if( Types.isSameType( t, Types.doubleType ) ) { double d = getDoubleConstant( val ); switch( e.getTag() ) { case TagConstants.UNARYADD: return val; case TagConstants.UNARYSUB: return new Double(-d); default: return null; } } else if( Types.isBooleanType( t ) ) { switch( e.getTag() ) { case TagConstants.NOT: return new Boolean( ! getBooleanConstant(val) ); default: return null; } } else return null; } else if( e instanceof BinaryExpr ) { BinaryExpr be = (BinaryExpr) e; Object lval = eval( be.left ); Object rval = eval( be.right ); if( lval==null || rval==null ) return null; if( Types.isSameType( t, Types.intType ) ) return evalIntBinaryOp( e.getTag(), lval, rval ); else if( Types.isSameType( t, Types.longType ) ) return evalLongBinaryOp( e.getTag(), lval, rval ); else if( Types.isSameType( t, Types.floatType ) ) return evalFloatBinaryOp( e.getTag(), lval, rval ); else if( Types.isSameType( t, Types.doubleType ) ) return evalDoubleBinaryOp( e.getTag(), lval, rval ); else if( Types.isBooleanType( t ) ) return evalBooleanBinaryOp( e.getTag(), lval, rval ); else return null; } return null; } } catch( ArithmeticException ex ) { ErrorSet.error("Arithmetic exception ("+ex.getMessage() +") in evaluating constant expression"); return null; } catch( AssertionFailureException ex ) { System.out.println("At "+Location.toString( e.getStartLoc() )); throw ex; } }
|
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/c8181cdbf4ebe52848384888dd6f93513732c47b/ConstantExpr.java/buggy/src/escjava/trunk/ESCTools/Javafe/java/javafe/tc/ConstantExpr.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
5302,
12,
4742,
425,
13,
288,
565,
1412,
268,
273,
9473,
21931,
4081,
18,
588,
559,
12,
425,
11272,
565,
368,
3163,
18,
659,
18,
8222,
2932,
8622,
622,
13773,
2735,
18,
10492,
12,
425,
18,
588,
1685,
1333,
1435,
262,
9078,
618,
13773,
2016,
18,
1188,
461,
12,
88,
13,
11272,
565,
775,
288,
1377,
1620,
12,
425,
18,
588,
1805,
1435,
262,
288,
1377,
648,
4034,
2918,
18,
15111,
2294,
8025,
30,
202,
2463,
5302,
12,
14015,
25520,
4742,
13,
73,
2934,
8638,
11272,
1377,
648,
4034,
2918,
18,
2248,
6832,
8025,
30,
202,
95,
202,
225,
735,
72,
4742,
5898,
273,
261,
12441,
4742,
13,
73,
31,
202,
225,
1033,
1244,
273,
5302,
12,
311,
18,
3813,
1769,
202,
225,
309,
12,
1244,
5,
33,
446,
597,
1244,
1276,
3411,
262,
288,
202,
565,
309,
12,
14015,
5507,
13,
1125,
2934,
6494,
620,
1435,
262,
3196,
1377,
327,
5302,
12,
311,
18,
451,
82,
1769,
202,
565,
469,
202,
1377,
327,
5302,
12,
311,
18,
10558,
1769,
202,
225,
289,
469,
202,
565,
327,
446,
31,
202,
97,
1377,
648,
4034,
2918,
18,
21871,
2294,
8025,
30,
202,
95,
202,
225,
19782,
4742,
5898,
273,
261,
9735,
4742,
13,
73,
31,
202,
225,
1033,
1244,
273,
5302,
12,
311,
18,
8638,
1769,
202,
225,
309,
12,
1244,
422,
446,
262,
327,
446,
31,
202,
225,
1412,
268,
1717,
273,
9473,
21931,
4081,
18,
588,
559,
12,
311,
18,
8638,
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,
282,
1071,
760,
1033,
5302,
12,
4742,
425,
13,
288,
565,
1412,
268,
273,
9473,
21931,
4081,
18,
588,
559,
12,
425,
11272,
565,
368,
3163,
18,
659,
18,
8222,
2932,
8622,
622,
13773,
2735,
18,
10492,
12,
425,
18,
588,
1685,
1333,
1435,
262,
9078,
618,
13773,
2016,
18,
1188,
461,
12,
88,
13,
11272,
565,
775,
288,
1377,
1620,
12,
425,
18,
588,
1805,
1435,
262,
288,
1377,
648,
4034,
2918,
18,
15111,
2294,
8025,
30,
202,
2463,
5302,
12,
14015,
25520,
4742,
13,
73,
2934,
8638,
11272,
1377,
648,
4034,
2918,
18,
2248,
6832,
8025,
30,
202,
95,
202,
225,
735,
72,
4742,
5898,
273,
261,
12441,
4742,
13,
73,
31,
202,
225,
1033,
1244,
273,
2
] |
url.getPassword()));
|
url.getPassword()));
|
protected void performSearchMethod(String query) { try { DOMStreamer propertyStreamer = new DOMStreamer(this.xmlConsumer); SearchMethod searchMethod = new SearchMethod(this.targetUrl, query); HttpURL url = new HttpURL(this.targetUrl); HttpState state = new HttpState(); state.setCredentials(null, new UsernamePasswordCredentials( url.getUser(), url.getPassword())); HttpConnection conn = new HttpConnection(url.getHost(), url.getPort()); searchMethod.execute(state, conn); Enumeration enum = searchMethod.getAllResponseURLs(); this.contentHandler.startElement( DASL_QUERY_NS, RESULT_ROOT_TAG, PREFIX + ":" + RESULT_ROOT_TAG, null); while (enum.hasMoreElements()) { String path = (String) enum.nextElement(); Enumeration properties = searchMethod.getResponseProperties(path); AttributesImpl attr = new AttributesImpl(); attr.addAttribute(DASL_QUERY_NS, PATH_NODE_NAME, PREFIX + ":" + PATH_NODE_NAME, "CDATA",path); this.contentHandler.startElement(DASL_QUERY_NS, RESOURCE_NODE_NAME, PREFIX + ":" + RESOURCE_NODE_NAME, attr); while(properties.hasMoreElements()) { BaseProperty metadata = (BaseProperty) properties.nextElement(); Element propertyElement = metadata.getElement(); propertyStreamer.stream(propertyElement); } this.contentHandler.endElement(DASL_QUERY_NS, RESOURCE_NODE_NAME, PREFIX + ":" + RESOURCE_NODE_NAME); } this.contentHandler.endElement( DASL_QUERY_NS, RESULT_ROOT_TAG, PREFIX + ":" + RESULT_ROOT_TAG); } catch (SAXException e) {
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/2f23d372fb958b47ac18b4abc1a927bc491bd361/DASLTransformer.java/buggy/src/blocks/webdav/java/org/apache/cocoon/transformation/DASLTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3073,
2979,
1305,
12,
780,
843,
13,
288,
3639,
775,
288,
5411,
4703,
1228,
264,
1272,
1228,
264,
273,
394,
4703,
1228,
264,
12,
2211,
18,
2902,
5869,
1769,
5411,
5167,
1305,
1623,
1305,
273,
394,
5167,
1305,
12,
2211,
18,
3299,
1489,
16,
843,
1769,
5411,
2541,
1785,
880,
273,
394,
2541,
1785,
12,
2211,
18,
3299,
1489,
1769,
5411,
2541,
1119,
919,
273,
394,
2541,
1119,
5621,
5411,
919,
18,
542,
6163,
12,
2011,
16,
394,
11313,
3913,
6163,
12,
10792,
880,
18,
588,
1299,
9334,
10792,
880,
18,
588,
3913,
1435,
10019,
5411,
2541,
1952,
1487,
273,
394,
2541,
1952,
12,
718,
18,
588,
2594,
9334,
880,
18,
588,
2617,
10663,
5411,
1623,
1305,
18,
8837,
12,
2019,
16,
1487,
1769,
5411,
13864,
2792,
273,
1623,
1305,
18,
588,
1595,
1064,
15749,
5621,
5411,
333,
18,
1745,
1503,
18,
1937,
1046,
12,
7734,
463,
3033,
48,
67,
10753,
67,
3156,
16,
7734,
17210,
67,
9185,
67,
7927,
16,
7734,
17154,
397,
6153,
397,
17210,
67,
9185,
67,
7927,
16,
7734,
446,
1769,
5411,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
7734,
514,
589,
273,
261,
780,
13,
2792,
18,
4285,
1046,
5621,
7734,
13864,
1790,
273,
1623,
1305,
18,
588,
1064,
2297,
12,
803,
1769,
7734,
9055,
2828,
1604,
273,
394,
9055,
2828,
5621,
7734,
1604,
18,
1289,
1499,
12,
40,
3033,
48,
67,
10753,
67,
3156,
16,
7767,
67,
8744,
67,
1985,
16,
17154,
397,
6153,
397,
7767,
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,
3073,
2979,
1305,
12,
780,
843,
13,
288,
3639,
775,
288,
5411,
4703,
1228,
264,
1272,
1228,
264,
273,
394,
4703,
1228,
264,
12,
2211,
18,
2902,
5869,
1769,
5411,
5167,
1305,
1623,
1305,
273,
394,
5167,
1305,
12,
2211,
18,
3299,
1489,
16,
843,
1769,
5411,
2541,
1785,
880,
273,
394,
2541,
1785,
12,
2211,
18,
3299,
1489,
1769,
5411,
2541,
1119,
919,
273,
394,
2541,
1119,
5621,
5411,
919,
18,
542,
6163,
12,
2011,
16,
394,
11313,
3913,
6163,
12,
10792,
880,
18,
588,
1299,
9334,
10792,
880,
18,
588,
3913,
1435,
10019,
5411,
2541,
1952,
1487,
273,
394,
2541,
1952,
12,
718,
18,
588,
2594,
9334,
880,
18,
588,
2617,
10663,
5411,
1623,
2
] |
public void sendCancel ( ) {
|
private void sendCancel() {
|
public void sendCancel ( ) { try { System.out.println("Sending cancel"); Request cancelRequest = inviteTid.createCancel(); ClientTransaction cancelTid = udpProvider.getNewClientTransaction(cancelRequest); cancelTid.sendRequest(); } catch ( Exception ex) { ex.printStackTrace(); } }
|
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Shootist.java/clean/trunk/src/examples/cancel/Shootist.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
6691,
261,
262,
288,
202,
202,
698,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
16322,
3755,
8863,
1082,
202,
691,
3755,
691,
273,
19035,
56,
350,
18,
2640,
6691,
5621,
1082,
202,
1227,
3342,
3755,
56,
350,
273,
16673,
2249,
18,
588,
30081,
3342,
12,
10996,
691,
1769,
1082,
202,
10996,
56,
350,
18,
4661,
691,
5621,
202,
202,
97,
1044,
261,
1185,
431,
13,
288,
1082,
202,
338,
18,
1188,
6332,
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,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1366,
6691,
261,
262,
288,
202,
202,
698,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
16322,
3755,
8863,
1082,
202,
691,
3755,
691,
273,
19035,
56,
350,
18,
2640,
6691,
5621,
1082,
202,
1227,
3342,
3755,
56,
350,
273,
16673,
2249,
18,
588,
30081,
3342,
12,
10996,
691,
1769,
1082,
202,
10996,
56,
350,
18,
4661,
691,
5621,
202,
202,
97,
1044,
261,
1185,
431,
13,
288,
1082,
202,
338,
18,
1188,
6332,
5621,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.addProperty(DATA_SOURCE_BEAN, new RuntimeBeanReference(DATA_SOURCE_BEAN))
|
.addProperty(DATA_SOURCE_BEAN, new RuntimeBeanReference(DATA_SOURCE_BEAN,parentDataSource ))
|
private void populateDataSourceReferences(RuntimeSpringConfiguration springConfig) { GrailsDataSource ds = application.getGrailsDataSource(); BeanConfiguration localSessionFactoryBean = springConfig .addSingletonBean(SESSION_FACTORY_BEAN,ConfigurableLocalSessionFactoryBean.class); if(ds != null) { BeanConfiguration dataSource; if(ds.isPooled()) { dataSource = springConfig .addSingletonBean(DATA_SOURCE_BEAN, BasicDataSource.class) .setDestroyMethod("close"); } else { dataSource = springConfig .addSingletonBean(DATA_SOURCE_BEAN, DriverManagerDataSource.class); } dataSource .addProperty("driverClassName", ds.getDriverClassName()) .addProperty("url", ds.getUrl()) .addProperty("username", ds.getUsername()) .addProperty("password",ds.getPassword()); if(ds.getConfigurationClass() != null) { LOG.info("[SpringConfig] Using custom Hibernate configuration class ["+ds.getConfigurationClass()+"]"); localSessionFactoryBean .addProperty("configClass", ds.getConfigurationClass()); } } else { // if no data source exists create in-memory HSQLDB instance springConfig .addSingletonBean(DATA_SOURCE_BEAN, BasicDataSource.class) .setDestroyMethod("close") .addProperty("driverClassName", "org.hsqldb.jdbcDriver") .addProperty("url", "jdbc:hsqldb:mem:grailsDB") .addProperty("username", "sa") .addProperty("password",""); } // set-up auto detection of Hibernate dialect // first attempt to load any extra dialects defined in hibernate-dialects.properties Properties vendorNameDialectMappings = new Properties(); URL hibernateDialects = this.application.getClassLoader().getResource("hibernate-dialects.properties"); if(hibernateDialects != null) { Properties p = new Properties(); try { p.load(hibernateDialects.openStream()); Iterator iter = p.entrySet().iterator(); while(iter.hasNext()) { Map.Entry e = (Map.Entry)iter.next(); // Note: the entry is reversed in the properties file since the database product // name can contain spaces. vendorNameDialectMappings.put(e.getValue(), "org.hibernate.dialect." + e.getKey()); } } catch (IOException e) { LOG.info("[SpringConfig] Error loading hibernate-dialects.properties file: " + e.getMessage()); } } ManagedMap hibernatePropertiesMap = new ManagedMap(); // enable sql logging yes/no if(ds != null && ds.isLoggingSql()) { hibernatePropertiesMap.put("hibernate.show_sql","true"); hibernatePropertiesMap.put("hibernate.format_sql","true"); } // configure dialect if(ds != null && ds.getDialect()!= null) { hibernatePropertiesMap.put("hibernate.dialect", ds.getDialect().getName()); } else { // setup dialect detector bean springConfig .addSingletonBean(DIALECT_DETECTOR_BEAN, HibernateDialectDetectorFactoryBean.class) .addProperty(DATA_SOURCE_BEAN, new RuntimeBeanReference(DATA_SOURCE_BEAN)) .addProperty("vendorNameDialectMappings",vendorNameDialectMappings); hibernatePropertiesMap.put("hibernate.dialect", new RuntimeBeanReference(DIALECT_DETECTOR_BEAN)); } if(ds == null ) { hibernatePropertiesMap.put("hibernate.hbm2ddl.auto", "create-drop"); } else { if(ds.getDbCreate() != null) { hibernatePropertiesMap.put("hibernate.hbm2ddl.auto", ds.getDbCreate()); } } localSessionFactoryBean .addProperty(DATA_SOURCE_BEAN,new RuntimeBeanReference(DATA_SOURCE_BEAN)); if(loadExternalPersistenceConfig) { URL hibernateConfig = application.getClassLoader().getResource("hibernate.cfg.xml"); if(hibernateConfig != null) { localSessionFactoryBean .addProperty("configLocation", "classpath:hibernate.cfg.xml"); } } springConfig .addSingletonBean(HIBERNATE_PROPERTIES_BEAN,MapToPropertiesFactoryBean.class) .addProperty("map", hibernatePropertiesMap); localSessionFactoryBean .addProperty(HIBERNATE_PROPERTIES_BEAN, new RuntimeBeanReference(HIBERNATE_PROPERTIES_BEAN)) .addProperty(GrailsApplication.APPLICATION_ID, new RuntimeBeanReference(GrailsApplication.APPLICATION_ID,true)) .addProperty("classLoader", new RuntimeBeanReference(CLASS_LOADER_BEAN)); springConfig .addSingletonBean(TRANSACTION_MANAGER_BEAN,HibernateTransactionManager.class) .addProperty(SESSION_FACTORY_BEAN, new RuntimeBeanReference(SESSION_FACTORY_BEAN)); }
|
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/19601f65169b576936ff7d5084709da10ec6a748/GrailsRuntimeConfigurator.java/clean/src/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfigurator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
8597,
8221,
12,
5576,
55,
11638,
1750,
25974,
809,
13,
288,
9506,
202,
14571,
14573,
8597,
3780,
273,
2521,
18,
588,
14571,
14573,
8597,
5621,
1082,
202,
3381,
1750,
1191,
2157,
1733,
3381,
273,
25974,
809,
6862,
6862,
25083,
202,
18,
1289,
19571,
3381,
12,
7042,
67,
16193,
67,
23703,
16,
31660,
2042,
2157,
1733,
3381,
18,
1106,
1769,
9506,
202,
430,
12,
2377,
480,
446,
13,
288,
1082,
202,
3381,
1750,
10233,
31,
1082,
202,
430,
12,
2377,
18,
291,
52,
22167,
10756,
288,
9506,
202,
892,
1830,
273,
25974,
809,
6862,
9506,
202,
18,
1289,
19571,
3381,
12,
4883,
67,
6537,
67,
23703,
16,
7651,
8597,
18,
1106,
13,
6862,
9506,
202,
18,
542,
10740,
1305,
2932,
4412,
8863,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
892,
1830,
273,
25974,
809,
6862,
6862,
202,
18,
1289,
19571,
3381,
12,
4883,
67,
6537,
67,
23703,
16,
9396,
1318,
8597,
18,
1106,
1769,
1082,
202,
97,
1082,
202,
892,
1830,
9506,
202,
18,
1289,
1396,
2932,
7407,
3834,
3113,
3780,
18,
588,
4668,
3834,
10756,
9506,
202,
18,
1289,
1396,
2932,
718,
3113,
3780,
18,
588,
1489,
10756,
9506,
202,
18,
1289,
1396,
2932,
5053,
3113,
3780,
18,
588,
8575,
10756,
9506,
202,
18,
1289,
1396,
2932,
3664,
3113,
2377,
18,
588,
3913,
10663,
9506,
5411,
309,
12,
2377,
18,
588,
1750,
797,
1435,
480,
446,
13,
288,
7734,
2018,
18,
1376,
2932,
63,
55,
11638,
809,
65,
11637,
1679,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
8597,
8221,
12,
5576,
55,
11638,
1750,
25974,
809,
13,
288,
9506,
202,
14571,
14573,
8597,
3780,
273,
2521,
18,
588,
14571,
14573,
8597,
5621,
1082,
202,
3381,
1750,
1191,
2157,
1733,
3381,
273,
25974,
809,
6862,
6862,
25083,
202,
18,
1289,
19571,
3381,
12,
7042,
67,
16193,
67,
23703,
16,
31660,
2042,
2157,
1733,
3381,
18,
1106,
1769,
9506,
202,
430,
12,
2377,
480,
446,
13,
288,
1082,
202,
3381,
1750,
10233,
31,
1082,
202,
430,
12,
2377,
18,
291,
52,
22167,
10756,
288,
9506,
202,
892,
1830,
273,
25974,
809,
6862,
9506,
202,
18,
1289,
19571,
3381,
12,
4883,
67,
6537,
67,
23703,
16,
7651,
8597,
18,
1106,
13,
6862,
9506,
202,
2
] |
private void markTargetLabel(Node.Target target)
|
private void markTargetLabel(Node target)
|
private void markTargetLabel(Node.Target target) { int label = getTargetLabel(target); if (itsLabelTable[label] != -1) { // Can mark label only once Kit.codeBug(); } itsLabelTable[label] = itsICodeTop; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/00c3a706bf401545154202d57d1edaa0e2f9b8b8/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2267,
2326,
2224,
12,
907,
1018,
13,
565,
288,
3639,
509,
1433,
273,
8571,
2224,
12,
3299,
1769,
3639,
309,
261,
1282,
2224,
1388,
63,
1925,
65,
480,
300,
21,
13,
288,
5411,
368,
4480,
2267,
1433,
1338,
3647,
5411,
1475,
305,
18,
710,
19865,
5621,
3639,
289,
3639,
2097,
2224,
1388,
63,
1925,
65,
273,
2097,
45,
1085,
3401,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2267,
2326,
2224,
12,
907,
1018,
13,
565,
288,
3639,
509,
1433,
273,
8571,
2224,
12,
3299,
1769,
3639,
309,
261,
1282,
2224,
1388,
63,
1925,
65,
480,
300,
21,
13,
288,
5411,
368,
4480,
2267,
1433,
1338,
3647,
5411,
1475,
305,
18,
710,
19865,
5621,
3639,
289,
3639,
2097,
2224,
1388,
63,
1925,
65,
273,
2097,
45,
1085,
3401,
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
] |
return "Bugzilla-"+bugId;
|
return "Bugzilla-" + bugId;
|
public String createBugHandleIdentifier(int bugId) { return "Bugzilla-"+bugId; }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/25cb59295f93a64653ad82584389b3ccddffd43a/BugzillaUiPlugin.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
752,
19865,
3259,
3004,
12,
474,
7934,
548,
13,
288,
202,
202,
2463,
315,
19865,
15990,
10951,
15,
925,
548,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
752,
19865,
3259,
3004,
12,
474,
7934,
548,
13,
288,
202,
202,
2463,
315,
19865,
15990,
10951,
15,
925,
548,
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
] |
return sChartKey;
|
else if ( iKeySeparator == 0) { return sDefaultValue; } else { sKey = sDefaultValue; } String localizedValue = iml.getMessageValue( sKey, getLocale() ); if ( localizedValue == null || localizedValue.equals( "" ) ) return sDefaultValue; else return localizedValue;
|
public final String externalizedMessage( String sChartKey ) { if ( iml == null ) { final int iKeySeparator = sChartKey.indexOf( IMessageLookup.KEY_SEPARATOR ); if ( iKeySeparator != -1 ) { // VALUE ON RHS OF IMessageLookup.KEY_SEPARATOR return sChartKey.substring( iKeySeparator + 1 ); } // FOR [BACKWARD COMPATIBILITY] OR [VALUES NOT CONTAINING A KEY] return sChartKey; } return iml.getMessageValue( sChartKey, lcl ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/24794e7d3624f9910cb6ad88ee260bb8aa0bb66b/RunTimeContext.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/RunTimeContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
3903,
1235,
1079,
12,
514,
272,
7984,
653,
262,
202,
95,
202,
202,
430,
261,
709,
80,
422,
446,
262,
202,
202,
95,
1082,
202,
6385,
509,
24928,
6581,
273,
272,
7984,
653,
18,
31806,
12,
467,
1079,
6609,
18,
3297,
67,
4550,
11272,
1082,
202,
430,
261,
24928,
6581,
480,
300,
21,
262,
1082,
202,
95,
9506,
202,
759,
5848,
6229,
534,
13173,
15932,
467,
1079,
6609,
18,
3297,
67,
4550,
9506,
202,
2463,
272,
7984,
653,
18,
28023,
12,
24928,
6581,
397,
404,
11272,
1082,
202,
97,
1082,
202,
759,
12108,
306,
8720,
21343,
5423,
8592,
13450,
14674,
65,
4869,
306,
16386,
4269,
8020,
6964,
1360,
432,
5311,
65,
1082,
202,
2463,
272,
7984,
653,
31,
202,
202,
97,
202,
202,
2463,
709,
80,
18,
24906,
620,
12,
272,
7984,
653,
16,
328,
830,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
3903,
1235,
1079,
12,
514,
272,
7984,
653,
262,
202,
95,
202,
202,
430,
261,
709,
80,
422,
446,
262,
202,
202,
95,
1082,
202,
6385,
509,
24928,
6581,
273,
272,
7984,
653,
18,
31806,
12,
467,
1079,
6609,
18,
3297,
67,
4550,
11272,
1082,
202,
430,
261,
24928,
6581,
480,
300,
21,
262,
1082,
202,
95,
9506,
202,
759,
5848,
6229,
534,
13173,
15932,
467,
1079,
6609,
18,
3297,
67,
4550,
9506,
202,
2463,
272,
7984,
653,
18,
28023,
12,
24928,
6581,
397,
404,
11272,
1082,
202,
97,
1082,
202,
759,
12108,
306,
8720,
21343,
5423,
8592,
13450,
14674,
65,
4869,
306,
16386,
4269,
8020,
6964,
1360,
432,
5311,
65,
1082,
202,
2463,
2
] |
Iterator nextsIt = nexts.keySet().iterator(); while (nextsIt.hasNext()) { FlatNode source = (FlatNode)nextsIt.next(); FlatNode dest = (FlatNode)nexts.get(source); assert dest != null : source.toString(); streamGraph.getParentSSG(dest).addPrev(dest, source); }
|
if (splitterBalance == 0) return;
|
public void cleanUp() { assert topLevel.isSplitter(); assert ((SIRSplitter)topLevel.contents).getWays() > 0; //check that we have cuts in the correct places //remove edges that connect to flatnodes not in this ssg topLevel.accept(new FlatVisitor() { public void visitNode(FlatNode node) { if (!flatNodes.contains(node)) return; if (node.inputs > 0) { for (int i = 0; i < node.incoming.length; i++) { assert node.incoming[i] != null; if (!flatNodes.contains(node.incoming[i])) { node.removeBackEdge(node.incoming[i]); } } } if (node.ways > 0) { for (int i = 0; i < node.edges.length; i++) { assert node.edges[i] != null; if (!(flatNodes.contains(node.edges[i]))) { node.removeForwardEdge(node.edges[i]); } } } } }, null, true); //make sure all nodes have correct number of connections... topLevel.accept(new FlatVisitor() { public void visitNode(FlatNode node) { if (node.isFilter()) { SIRFilter filter = (SIRFilter)node.contents; if (filter.getPopInt() > 0) assert node.inputs == 1; else //doesn't pop if (node.inputs == 1) assert node.incoming[0].getWeight(node) == 0; if (filter.getPushInt() > 0) assert node.ways == 1; else //doesn't push if (node.ways == 1) assert node.edges[0].getIncomingWeight(node) == 0; } else if (node.isJoiner()) { SIRJoiner joiner = (SIRJoiner)node.contents; if (joiner.getWays() != node.inputs) { //System.out.println(joiner.getWays() + " != " + node.inputs); assert joiner.getSumOfWeights() == 0; //create a new null joiner SIRJoiner newJoiner = SIRJoiner.create(null, SIRJoinType.NULL, node.inputs); node.contents = newJoiner; } } else { SIRSplitter splitter = (SIRSplitter)node.contents; assert splitter.getWays() == node.ways : "Invalid Splitter: " + node + " " + splitter.getWays() + " != " + node.ways; } } }, null, true); //check if the number of splitters and joiners is balanced (==) splitterBalance = 0; topLevel.accept(new FlatVisitor() { public void visitNode(FlatNode node) { if (node.isJoiner()) { splitterBalance--; } else if (node.isSplitter()) { splitterBalance++; } } }, null, true); //splitters and joiners are balanced so return... if (splitterBalance == 0) return; //remove the splitter because it is not needed!!! if (((SIRSplitter)topLevel.contents).getWays() == 1) { FlatNode oldTopLevel = topLevel; assert topLevel.ways == 1 && topLevel.edges.length == 1 && topLevel.edges[0] != null; topLevel = topLevel.edges[0]; topLevel.removeBackEdge(oldTopLevel); flatNodes.remove(oldTopLevel); } //set up the downstream SSG's prevs hashmap Iterator nextsIt = nexts.keySet().iterator(); while (nextsIt.hasNext()) { FlatNode source = (FlatNode)nextsIt.next(); FlatNode dest = (FlatNode)nexts.get(source); assert dest != null : source.toString(); streamGraph.getParentSSG(dest).addPrev(dest, source); } //build the prevSSGs and nextSSGs list, the upstream and downstream SSGs nextsIt = nexts.values().iterator(); while (nextsIt.hasNext()) { StaticStreamGraph ssg = streamGraph.getParentSSG(((FlatNode)nextsIt.next())); if (!nextSSGs.contains(ssg)) nextSSGs.add(ssg); } Iterator prevsIt = prevs.values().iterator(); while (prevsIt.hasNext()) { StaticStreamGraph ssg = streamGraph.getParentSSG(((FlatNode)prevsIt.next())); if (!prevSSGs.contains(ssg)) prevSSGs.add(ssg); } }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/31aff989277324400ed1080dc1f4597a89d20d2b/StaticStreamGraph.java/buggy/streams/src/at/dms/kjc/spacedynamic/StaticStreamGraph.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26384,
1435,
377,
288,
202,
11231,
21289,
18,
291,
26738,
5621,
202,
11231,
14015,
2320,
54,
26738,
13,
3669,
2355,
18,
3980,
2934,
588,
59,
8271,
1435,
405,
374,
31,
202,
759,
1893,
716,
732,
1240,
6391,
87,
316,
326,
3434,
12576,
202,
759,
4479,
5231,
716,
3077,
358,
3569,
4690,
486,
316,
333,
272,
1055,
202,
3669,
2355,
18,
9436,
12,
2704,
20396,
7413,
1435,
288,
202,
202,
482,
918,
3757,
907,
12,
16384,
907,
756,
13,
3196,
202,
95,
1082,
565,
309,
16051,
15401,
3205,
18,
12298,
12,
2159,
3719,
1082,
202,
2463,
31,
1082,
565,
309,
261,
2159,
18,
10029,
405,
374,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
756,
18,
31033,
18,
2469,
31,
277,
27245,
288,
9506,
565,
1815,
756,
18,
31033,
63,
77,
65,
480,
446,
31,
9506,
565,
309,
16051,
15401,
3205,
18,
12298,
12,
2159,
18,
31033,
63,
77,
22643,
288,
9506,
202,
2159,
18,
4479,
2711,
6098,
12,
2159,
18,
31033,
63,
77,
19226,
9506,
565,
289,
1082,
202,
97,
1082,
565,
289,
1082,
565,
309,
261,
2159,
18,
3052,
405,
374,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
756,
18,
8746,
18,
2469,
31,
277,
27245,
288,
9506,
565,
1815,
756,
18,
8746,
63,
77,
65,
480,
446,
31,
9506,
565,
9506,
565,
309,
16051,
12,
15401,
3205,
18,
12298,
12,
2159,
18,
8746,
63,
77,
65,
20349,
288,
9506,
202,
2159,
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,
26384,
1435,
377,
288,
202,
11231,
21289,
18,
291,
26738,
5621,
202,
11231,
14015,
2320,
54,
26738,
13,
3669,
2355,
18,
3980,
2934,
588,
59,
8271,
1435,
405,
374,
31,
202,
759,
1893,
716,
732,
1240,
6391,
87,
316,
326,
3434,
12576,
202,
759,
4479,
5231,
716,
3077,
358,
3569,
4690,
486,
316,
333,
272,
1055,
202,
3669,
2355,
18,
9436,
12,
2704,
20396,
7413,
1435,
288,
202,
202,
482,
918,
3757,
907,
12,
16384,
907,
756,
13,
3196,
202,
95,
1082,
565,
309,
16051,
15401,
3205,
18,
12298,
12,
2159,
3719,
1082,
202,
2463,
31,
1082,
565,
309,
261,
2159,
18,
10029,
405,
374,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
2
] |
while ( line != null ) { if ( line.length() == 0 || line.charAt( 0 ) == '#' ) {
|
while ( line != null ) { if ( line.length() == 0 || line.charAt( 0 ) == '#' ) {
|
private static void initialize() { InputStream is = null; BufferedReader reader = null; int index; String name; String value; int code; String line; // Make sure not to initialize twice. if ( _byName != null ) return; try { _byName = new Hashtable(); _byChar = new Hashtable(); is = HTMLdtd.class.getResourceAsStream( ENTITIES_RESOURCE ); if ( is == null ) throw new RuntimeException( "SER003 The resource [" + ENTITIES_RESOURCE + "] could not be found.\n" + ENTITIES_RESOURCE); reader = new BufferedReader( new InputStreamReader( is ) ); line = reader.readLine(); while ( line != null ) { if ( line.length() == 0 || line.charAt( 0 ) == '#' ) { line = reader.readLine(); continue; } index = line.indexOf( ' ' ); if ( index > 1 ) { name = line.substring( 0, index ); ++index; if ( index < line.length() ) { value = line.substring( index ); index = value.indexOf( ' ' ); if ( index > 0 ) value = value.substring( 0, index ); code = Integer.parseInt( value ); defineEntity( name, (char) code ); } } line = reader.readLine(); } is.close(); } catch ( Exception except ) { throw new RuntimeException( "SER003 The resource [" + ENTITIES_RESOURCE + "] could not load: " + except.toString() + "\n" + ENTITIES_RESOURCE + "\t" + except.toString()); } finally { if ( is != null ) { try { is.close(); } catch ( Exception except ) { } } } }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/cd53b656c8781337491709c662fe224c44d1ef7d/HTMLdtd.java/clean/src/org/apache/xml/serialize/HTMLdtd.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4046,
1435,
565,
288,
3639,
5037,
377,
353,
273,
446,
31,
3639,
10633,
225,
2949,
273,
446,
31,
3639,
509,
2398,
770,
31,
3639,
514,
1850,
508,
31,
3639,
514,
1850,
460,
31,
3639,
509,
2398,
981,
31,
3639,
514,
1850,
980,
31,
3639,
368,
4344,
3071,
486,
358,
4046,
13605,
18,
3639,
309,
261,
389,
1637,
461,
480,
446,
262,
5411,
327,
31,
3639,
775,
3639,
288,
5411,
389,
1637,
461,
273,
394,
18559,
5621,
5411,
389,
1637,
2156,
273,
394,
18559,
5621,
5411,
353,
273,
3982,
31834,
18,
1106,
18,
588,
1420,
17052,
12,
8348,
25673,
67,
11395,
11272,
5411,
309,
261,
353,
422,
446,
262,
7734,
604,
394,
3235,
12,
315,
2123,
25425,
1021,
1058,
8247,
397,
8348,
25673,
67,
11395,
397,
9850,
3377,
486,
506,
1392,
8403,
82,
6,
397,
8348,
25673,
67,
11395,
1769,
5411,
2949,
273,
394,
10633,
12,
394,
15322,
12,
353,
262,
11272,
5411,
980,
273,
2949,
18,
896,
1670,
5621,
5411,
1323,
261,
980,
480,
446,
262,
5411,
288,
7734,
309,
261,
980,
18,
2469,
1435,
422,
374,
747,
980,
18,
3001,
861,
12,
374,
262,
422,
6501,
262,
7734,
288,
10792,
980,
273,
2949,
18,
896,
1670,
5621,
10792,
1324,
31,
7734,
289,
7734,
770,
273,
980,
18,
31806,
12,
296,
296,
11272,
7734,
309,
261,
770,
405,
404,
262,
7734,
288,
10792,
508,
273,
980,
18,
28023,
12,
374,
16,
770,
11272,
10792,
965,
1615,
31,
10792,
309,
261,
770,
411,
980,
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,
4046,
1435,
565,
288,
3639,
5037,
377,
353,
273,
446,
31,
3639,
10633,
225,
2949,
273,
446,
31,
3639,
509,
2398,
770,
31,
3639,
514,
1850,
508,
31,
3639,
514,
1850,
460,
31,
3639,
509,
2398,
981,
31,
3639,
514,
1850,
980,
31,
3639,
368,
4344,
3071,
486,
358,
4046,
13605,
18,
3639,
309,
261,
389,
1637,
461,
480,
446,
262,
5411,
327,
31,
3639,
775,
3639,
288,
5411,
389,
1637,
461,
273,
394,
18559,
5621,
5411,
389,
1637,
2156,
273,
394,
18559,
5621,
5411,
353,
273,
3982,
31834,
18,
1106,
18,
588,
1420,
17052,
12,
8348,
25673,
67,
11395,
11272,
5411,
309,
261,
353,
422,
446,
262,
7734,
604,
394,
3235,
12,
315,
2123,
2
] |
void activatePluginIfNecessary()
|
public void activatePluginIfNecessary()
|
void activatePluginIfNecessary() { if(!(plugin instanceof EditPlugin.Deferred && plugin != null)) return; String className = plugin.getClassName(); // default for plugins that don't specify this property (ie, // 4.1-style plugins) is to load them on startup String activate = jEdit.getProperty("plugin." + className + ".activate","startup"); // if at least one property listed here is true, load the // plugin boolean load = false; StringTokenizer st = new StringTokenizer(activate); while(st.hasMoreTokens()) { String prop = st.nextToken(); boolean value = jEdit.getBooleanProperty(prop); if(value) { Log.log(Log.DEBUG,this,"Activating " + className + " because of " + prop); load = true; break; } } if(load) activatePlugin(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/dcd09c921f1af2803df1b6bfc05835f86e0d7403/PluginJAR.java/buggy/org/gjt/sp/jedit/PluginJAR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
10235,
3773,
26034,
1435,
202,
95,
202,
202,
430,
12,
5,
12,
4094,
1276,
15328,
3773,
18,
16886,
597,
1909,
480,
446,
3719,
1082,
202,
2463,
31,
202,
202,
780,
2658,
273,
1909,
18,
588,
3834,
5621,
202,
202,
759,
805,
364,
4799,
716,
2727,
1404,
4800,
333,
1272,
261,
1385,
16,
202,
202,
759,
1059,
18,
21,
17,
4060,
4799,
13,
353,
358,
1262,
2182,
603,
11850,
202,
202,
780,
10235,
273,
525,
4666,
18,
588,
1396,
2932,
4094,
1199,
1082,
202,
15,
2658,
397,
3552,
10014,
15937,
23939,
8863,
202,
202,
759,
309,
622,
4520,
1245,
1272,
12889,
2674,
353,
638,
16,
1262,
326,
202,
202,
759,
1909,
202,
202,
6494,
1262,
273,
629,
31,
202,
202,
780,
10524,
384,
273,
394,
16370,
12,
10014,
1769,
202,
202,
17523,
12,
334,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
780,
2270,
273,
384,
18,
4285,
1345,
5621,
1082,
202,
6494,
460,
273,
525,
4666,
18,
588,
5507,
1396,
12,
5986,
1769,
1082,
202,
430,
12,
1132,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
9394,
16,
2211,
10837,
12241,
1776,
315,
6862,
202,
15,
2658,
397,
315,
2724,
434,
315,
397,
2270,
1769,
9506,
202,
945,
273,
638,
31,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
945,
13,
1082,
202,
10014,
3773,
5621,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
10235,
3773,
26034,
1435,
202,
95,
202,
202,
430,
12,
5,
12,
4094,
1276,
15328,
3773,
18,
16886,
597,
1909,
480,
446,
3719,
1082,
202,
2463,
31,
202,
202,
780,
2658,
273,
1909,
18,
588,
3834,
5621,
202,
202,
759,
805,
364,
4799,
716,
2727,
1404,
4800,
333,
1272,
261,
1385,
16,
202,
202,
759,
1059,
18,
21,
17,
4060,
4799,
13,
353,
358,
1262,
2182,
603,
11850,
202,
202,
780,
10235,
273,
525,
4666,
18,
588,
1396,
2932,
4094,
1199,
1082,
202,
15,
2658,
397,
3552,
10014,
15937,
23939,
8863,
202,
202,
759,
309,
622,
4520,
1245,
1272,
12889,
2674,
353,
638,
16,
1262,
326,
202,
202,
759,
1909,
202,
202,
6494,
1262,
273,
629,
2
] |
if (useDefaultTemplates)
|
if ((xmlSource != null) && (xslSource != null))
|
public void process(TransformerFactory tFactory, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SAXException { boolean debug = ourDefaultParameters.isDebug(request); long time = 0; if (debug) time = System.currentTimeMillis(); // Listener to be used for all reporting ApplyXSLTListener listener = new ApplyXSLTListener(); listener.out.println("debug is " + debug); Source xmlSource = null; Source xslSource = null; try { if ((xmlSource = getDocument(request, listener)) == null) throw new ApplyXSLTException("getDocument() returned null", new NullPointerException(), response.SC_NOT_FOUND); } catch (ApplyXSLTException axe) { axe.appendMessage(EOL + "getDocument() resulted in ApplyXSLTException" + EOL + listener.getMessage()); if (debug) writeLog(axe); displayException(response, axe, debug); xmlSource = null; } // creating XSL Stylesheet if (xmlSource != null) { try { if ((xslSource = getStylesheet(tFactory, request, xmlSource, listener)) == null) throw new ApplyXSLTException("getStylesheet() returned null", new NullPointerException(), response.SC_NOT_FOUND); // Must "reset" xmlSource (a StreamSource) after looking for stylesheet PI xmlSource = getDocument(request, listener); } catch (ApplyXSLTException axe) { axe.appendMessage(EOL + "getStylesheet() resulted in ApplyXSLTException" + EOL + listener.getMessage()); if (debug) writeLog(axe); displayException(response, axe, debug); xslSource = null; } // perform Transformation if (useDefaultTemplates) { try { listener.out.println("Using default templates"); if (defaultTemplates == null) { listener.out.println("Must recompile default templates"); defaultTemplates = tFactory.newTemplates(xslSource); } Transformer transformer = defaultTemplates.newTransformer(); String contentType = null; contentType = getContentType(defaultTemplates); if (contentType != null); response.setContentType(contentType); if (transformer instanceof TransformerImpl) { TransformerImpl transformerImpl = (TransformerImpl)transformer; transformerImpl.setQuietConflictWarnings(ourDefaultParameters.isNoCW(request)); } setStylesheetParams(transformer, request); transformer.transform(xmlSource, new StreamResult(response.getOutputStream())); if (debug) writeLog(listener.getMessage(), response.SC_OK); } catch (Exception exc) { ApplyXSLTException axe = new ApplyXSLTException ("Exception occurred during Transformation:" + EOL + listener.getMessage() + EOL + exc.getMessage(), exc, response.SC_INTERNAL_SERVER_ERROR); if (debug) writeLog(axe); displayException(response, axe, debug); } } else if ((xmlSource != null) && (xslSource != null)) { try { listener.out.println("Performing transformation..."); Templates templates = tFactory.newTemplates(xslSource); Transformer transformer = templates.newTransformer(); try { String contentType = null; contentType = getContentType(templates); if (contentType != null); response.setContentType(contentType); if (transformer instanceof TransformerImpl) { TransformerImpl transformerImpl = (TransformerImpl)transformer; transformerImpl.setQuietConflictWarnings(ourDefaultParameters.isNoCW(request)); } setStylesheetParams(transformer, request); transformer.transform(xmlSource, new StreamResult(response.getOutputStream())); if (debug) writeLog(listener.getMessage(), response.SC_OK); } catch (Exception exc) { ApplyXSLTException axe = new ApplyXSLTException ("Exception occurred during Transformation:" + EOL + listener.getMessage() + EOL + exc.getMessage(), exc, response.SC_INTERNAL_SERVER_ERROR); if (debug) writeLog(axe); displayException(response, axe, debug); } finally { // transformer.reset(); } // end of try ... catch ... finally } catch (/*org.xml.sax.SAX*/Exception saxExc) { ApplyXSLTException axe = new ApplyXSLTException ("Exception occurred during ctor/Transformation:" + EOL + listener.getMessage() + EOL + saxExc.getMessage(), saxExc, response.SC_INTERNAL_SERVER_ERROR); if (debug) writeLog(axe); displayException(response, axe, debug); } // end of new try ... catch } // end of if((stylesheetRoot != null) ... if (debug) { time = System.currentTimeMillis() - time; writeLog(" No Conflict Warnings = " + ourDefaultParameters.isNoCW(request) + " Transformation time: " + time + " ms", response.SC_OK); } } }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/7a745fd285d0d76c3139b10abac3f22bf906baa8/ApplyXSLT.java/clean/samples/servlet/ApplyXSLT.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
12,
8319,
1733,
268,
1733,
16,
1875,
6647,
9506,
225,
9984,
590,
16,
8227,
12446,
766,
13,
565,
1216,
16517,
16,
1860,
16,
14366,
225,
288,
565,
1250,
1198,
273,
3134,
1868,
2402,
18,
291,
2829,
12,
2293,
1769,
565,
1525,
813,
273,
374,
31,
565,
309,
261,
4148,
13,
1377,
813,
273,
2332,
18,
2972,
28512,
5621,
565,
368,
10652,
358,
506,
1399,
364,
777,
16096,
565,
5534,
60,
4559,
56,
2223,
2991,
273,
394,
5534,
60,
4559,
56,
2223,
5621,
202,
225,
2991,
18,
659,
18,
8222,
2932,
4148,
353,
315,
397,
1198,
1769,
565,
4998,
2025,
1830,
273,
446,
31,
202,
225,
4998,
20791,
1830,
273,
446,
31,
565,
775,
565,
288,
1377,
309,
14015,
2902,
1830,
273,
9956,
12,
2293,
16,
2991,
3719,
422,
446,
13,
3639,
604,
394,
5534,
60,
4559,
56,
503,
2932,
588,
2519,
1435,
2106,
446,
3113,
19694,
394,
10108,
9334,
19694,
766,
18,
2312,
67,
4400,
67,
9294,
1769,
565,
289,
565,
1044,
261,
7001,
60,
4559,
56,
503,
1740,
73,
13,
565,
288,
1377,
1740,
73,
18,
6923,
1079,
12,
5842,
397,
315,
588,
2519,
1435,
563,
329,
316,
5534,
60,
4559,
56,
503,
6,
397,
19995,
13491,
397,
2991,
18,
24906,
10663,
1377,
309,
261,
4148,
13,
1045,
1343,
12,
651,
73,
1769,
1377,
2562,
503,
12,
2740,
16,
1740,
73,
16,
1198,
1769,
1377,
2025,
1830,
273,
446,
31,
565,
289,
565,
368,
4979,
17243,
29483,
2963,
565,
309,
261,
2902,
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,
1207,
12,
8319,
1733,
268,
1733,
16,
1875,
6647,
9506,
225,
9984,
590,
16,
8227,
12446,
766,
13,
565,
1216,
16517,
16,
1860,
16,
14366,
225,
288,
565,
1250,
1198,
273,
3134,
1868,
2402,
18,
291,
2829,
12,
2293,
1769,
565,
1525,
813,
273,
374,
31,
565,
309,
261,
4148,
13,
1377,
813,
273,
2332,
18,
2972,
28512,
5621,
565,
368,
10652,
358,
506,
1399,
364,
777,
16096,
565,
5534,
60,
4559,
56,
2223,
2991,
273,
394,
5534,
60,
4559,
56,
2223,
5621,
202,
225,
2991,
18,
659,
18,
8222,
2932,
4148,
353,
315,
397,
1198,
1769,
565,
4998,
2025,
1830,
273,
446,
31,
202,
225,
4998,
20791,
1830,
273,
446,
31,
565,
775,
565,
288,
2
] |
protected void calcMovementCostFor(IGame game, Coords prev) { final int moveType = parent.getEntity().getMovementMode(); final IHex srcHex = game.getBoard().getHex(prev); final IHex destHex = game.getBoard().getHex(getPosition()); final boolean isInfantry = parent.getEntity() instanceof Infantry; mp = 1; // jumping always costs 1 if (parent.isJumping()) { return; } // VTOLs pay 1 for everything if (parent.getEntity().getMovementMode() == IEntityMovementMode.VTOL) { return; } // Account for terrain, unless we're moving along a road. if (!isPavementStep) { if (destHex.terrainLevel(Terrains.ROUGH) > 0) { mp++; } if (destHex.terrainLevel(Terrains.RUBBLE) > 0) { mp++; } if (destHex.terrainLevel(Terrains.WOODS) == 1) { mp++; } else if (destHex.terrainLevel(Terrains.WOODS) > 1) { mp += 2; } // non-hovers, non-navals and non-VTOLs check for water depth and are affected by swamp if ((moveType != IEntityMovementMode.HOVER) && (moveType != IEntityMovementMode.NAVAL) && (moveType != IEntityMovementMode.HYDROFOIL) && (moveType != IEntityMovementMode.SUBMARINE) && (moveType != IEntityMovementMode.VTOL)) { if (destHex.terrainLevel(Terrains.WATER) == 1) { mp++; } else if (destHex.terrainLevel(Terrains.WATER) > 1) { mp += 3; } if (destHex.containsTerrain(Terrains.SWAMP)) { mp++; } } } // End not-along-road // account for elevation? // TODO: allow entities to occupy different levels of buildings. int nSrcEl = parent.getEntity().elevationOccupied(srcHex); int nDestEl = parent.getEntity().elevationOccupied(destHex); int nMove = parent.getEntity().getMovementMode(); if (nSrcEl != nDestEl) { int delta_e = Math.abs(nSrcEl - nDestEl); // non-flying Infantry and ground vehicles are charged double. if ((isInfantry && !(movementType == IEntityMovementType.MOVE_VTOL_WALK || movementType == IEntityMovementType.MOVE_VTOL_RUN)) || (nMove == IEntityMovementMode.TRACKED || nMove == IEntityMovementMode.WHEELED || nMove == IEntityMovementMode.HOVER)) { delta_e *= 2; } mp += delta_e; } // If we entering a building, all non-infantry pay additional MP. if (nDestEl < destHex.terrainLevel(Terrains.BLDG_ELEV) && !(isInfantry)) { Building bldg = game.getBoard().getBuildingAt(getPosition()); mp += bldg.getType(); } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/a8f9e5a90ba3357db64f5c805abb81cccad332bc/MoveStep.java/buggy/megamek/src/megamek/common/MoveStep.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
12448,
49,
26140,
8018,
1290,
12,
3047,
339,
13957,
16,
13089,
10001,
15329,
6385,
474,
8501,
559,
33,
2938,
18,
588,
1943,
7675,
588,
49,
26140,
2309,
5621,
6385,
45,
7037,
4816,
7037,
33,
13957,
18,
588,
22233,
7675,
588,
7037,
12,
10001,
1769,
6385,
45,
7037,
10488,
7037,
33,
13957,
18,
588,
22233,
7675,
588,
7037,
12,
588,
2555,
10663,
6385,
6494,
291,
13149,
304,
698,
33,
2938,
18,
588,
1943,
1435,
1336,
792,
13149,
304,
698,
31,
1291,
33,
21,
31,
759,
78,
379,
1382,
287,
1888,
1017,
669,
87,
21,
430,
12,
2938,
18,
291,
46,
379,
1382,
10756,
95,
2463,
31,
97,
759,
58,
56,
1741,
1752,
528,
21,
1405,
3242,
4274,
430,
12,
2938,
18,
588,
1943,
7675,
588,
49,
26140,
2309,
1435,
631,
45,
1943,
49,
26140,
2309,
18,
58,
56,
1741,
15329,
2463,
31,
97,
759,
3032,
1884,
387,
7596,
16,
28502,
1814,
4565,
81,
13767,
287,
932,
297,
6189,
18,
430,
12,
5,
291,
52,
842,
820,
4160,
15329,
430,
12,
10488,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
1457,
57,
16715,
13,
34,
20,
15329,
1291,
9904,
31,
97,
430,
12,
10488,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
54,
3457,
38,
900,
13,
34,
20,
15329,
1291,
9904,
31,
97,
430,
12,
10488,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
59,
51,
1212,
55,
13,
631,
21,
15329,
1291,
9904,
31,
97,
12107,
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,
4750,
6459,
12448,
49,
26140,
8018,
1290,
12,
3047,
339,
13957,
16,
13089,
10001,
15329,
6385,
474,
8501,
559,
33,
2938,
18,
588,
1943,
7675,
588,
49,
26140,
2309,
5621,
6385,
45,
7037,
4816,
7037,
33,
13957,
18,
588,
22233,
7675,
588,
7037,
12,
10001,
1769,
6385,
45,
7037,
10488,
7037,
33,
13957,
18,
588,
22233,
7675,
588,
7037,
12,
588,
2555,
10663,
6385,
6494,
291,
13149,
304,
698,
33,
2938,
18,
588,
1943,
1435,
1336,
792,
13149,
304,
698,
31,
1291,
33,
21,
31,
759,
78,
379,
1382,
287,
1888,
1017,
669,
87,
21,
430,
12,
2938,
18,
291,
46,
379,
1382,
10756,
95,
2463,
31,
97,
759,
58,
56,
1741,
1752,
528,
21,
1405,
3242,
4274,
430,
2
] |
||
addField(new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),stereotypeBox),3,0,0);
|
addField(new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox()),3,0,0);
|
public PropPanelAttribute() { super("Attribute", _addAttrIcon, 2); Class mclass = MAttribute.class; // // this will cause the components on this page to be notified // anytime a stereotype, namespace, operation, etc // has its name changed or is removed anywhere in the model Class[] namesToWatch = { MStereotype.class,MNamespace.class,MClassifier.class, MAttribute.class }; setNameEventListening(namesToWatch); addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0); addField(nameField,1,0,0); addCaption(Argo.localize("UMLMenu", "label.multiplicity"),2,0,0); addField(new UMLMultiplicityComboBox2(new UMLStructuralFeatureMultiplicityComboBoxModel(), ActionSetStructuralFeatureMultiplicity.SINGLETON),2,0,0); addCaption(Argo.localize("UMLMenu", "label.stereotype"),3,0,0); addField(new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),stereotypeBox),3,0,0); addCaption(Argo.localize("UMLMenu", "label.owner"),4,0,1); JList ownerList = new UMLList(new UMLReflectionListModel(this,"owner",false,"getOwner",null,null,null),true); JScrollPane ownerScroll=new JScrollPane(ownerList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); addLinkField(ownerScroll,4,0,0); addCaption(Argo.localize("UMLMenu", "label.type"),0,1,0); addField(new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-class"), new UMLComboBox2(new UMLAttributeTypeComboBoxModel(), ActionSetAttributeType.SINGLETON)),0,1,0); addCaption("Initial Value:",1,1,0); addField(new UMLInitialValueComboBox(this),1,1,0); addCaption(Argo.localize("UMLMenu", "label.visibility"),2,1,0); addField(new UMLVisibilityPanel(this,mclass,3,false),2,1,0); addCaption(Argo.localize("UMLMenu", "label.modifiers"),3,1,1); JPanel modPanel = new JPanel(new GridLayout(0,2)); modPanel.add(new UMLCheckBox(localize("static"),this,new UMLEnumerationBooleanProperty("ownerscope",mclass,"getOwnerScope","setOwnerScope",MScopeKind.class,MScopeKind.CLASSIFIER,MScopeKind.INSTANCE))); modPanel.add(new UMLCheckBox(Argo.localize("UMLMenu", "checkbox.final-lc"),this,new UMLEnumerationBooleanProperty("changeability",mclass,"getChangeability","setChangeability",MChangeableKind.class,MChangeableKind.FROZEN,MChangeableKind.CHANGEABLE))); modPanel.add(new UMLCheckBox(localize("transient"),this,new UMLTaggedBooleanProperty("transient"))); modPanel.add(new UMLCheckBox(localize("volatile"),this,new UMLTaggedBooleanProperty("volatile"))); addField(modPanel,3,1,0); new PropPanelButton(this,buttonPanel,_navUpIcon, Argo.localize("UMLMenu", "button.go-up"),"navigateUp",null); new PropPanelButton(this,buttonPanel,_navBackIcon, Argo.localize("UMLMenu", "button.go-back"),"navigateBackAction","isNavigateBackEnabled"); new PropPanelButton(this,buttonPanel,_navForwardIcon, Argo.localize("UMLMenu", "button.go-forward"),"navigateForwardAction","isNavigateForwardEnabled"); new PropPanelButton(this,buttonPanel,_addAttrIcon, Argo.localize("UMLMenu", "button.add-attribute"),"newAttribute",null); new PropPanelButton(this,buttonPanel,_deleteIcon, Argo.localize("UMLMenu", "button.delete-attribute"),"removeElement",null); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5074134e5b107e68f44fe1ddd01230f3285d1287/PropPanelAttribute.java/buggy/src_new/org/argouml/uml/ui/foundation/core/PropPanelAttribute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10484,
5537,
1499,
1435,
288,
3639,
2240,
2932,
1499,
3113,
389,
1289,
3843,
5554,
16,
576,
1769,
3639,
1659,
312,
1106,
273,
490,
1499,
18,
1106,
31,
3639,
368,
3639,
368,
282,
333,
903,
4620,
326,
4085,
603,
333,
1363,
358,
506,
18791,
3639,
368,
1377,
1281,
957,
279,
22890,
10570,
16,
1981,
16,
1674,
16,
5527,
3639,
368,
1377,
711,
2097,
508,
3550,
578,
353,
3723,
25651,
316,
326,
938,
3639,
1659,
8526,
1257,
774,
5234,
273,
288,
9238,
387,
73,
10570,
18,
1106,
16,
49,
3402,
18,
1106,
16,
49,
13860,
18,
1106,
16,
490,
1499,
18,
1106,
289,
31,
3639,
6788,
1133,
31594,
12,
1973,
774,
5234,
1769,
3639,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
529,
6,
3631,
21,
16,
20,
16,
20,
1769,
3639,
11742,
12,
529,
974,
16,
21,
16,
20,
16,
20,
1769,
202,
1289,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
7027,
20458,
6,
3631,
22,
16,
20,
16,
20,
1769,
3639,
11742,
12,
2704,
587,
1495,
5002,
20458,
22199,
22,
12,
2704,
587,
1495,
14372,
4595,
5002,
20458,
22199,
1488,
9334,
4382,
694,
14372,
4595,
5002,
20458,
18,
20184,
56,
673,
3631,
22,
16,
20,
16,
20,
1769,
3639,
527,
21158,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315,
1925,
18,
334,
822,
10570,
6,
3631,
23,
16,
20,
16,
20,
1769,
3639,
11742,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10484,
5537,
1499,
1435,
288,
3639,
2240,
2932,
1499,
3113,
389,
1289,
3843,
5554,
16,
576,
1769,
3639,
1659,
312,
1106,
273,
490,
1499,
18,
1106,
31,
3639,
368,
3639,
368,
282,
333,
903,
4620,
326,
4085,
603,
333,
1363,
358,
506,
18791,
3639,
368,
1377,
1281,
957,
279,
22890,
10570,
16,
1981,
16,
1674,
16,
5527,
3639,
368,
1377,
711,
2097,
508,
3550,
578,
353,
3723,
25651,
316,
326,
938,
3639,
1659,
8526,
1257,
774,
5234,
273,
288,
9238,
387,
73,
10570,
18,
1106,
16,
49,
3402,
18,
1106,
16,
49,
13860,
18,
1106,
16,
490,
1499,
18,
1106,
289,
31,
3639,
6788,
1133,
31594,
12,
1973,
774,
5234,
1769,
3639,
527,
21158,
12,
686,
3240,
2
] |
public Region(String id, String content, Map sections) { super(content, "region"); this.id = id; if (sections != null) { this.sections.putAll(sections); }
|
public Region(String id, String content) { this(id, content, null);
|
public Region(String id, String content, Map sections) { super(content, "region"); this.id = id; if (sections != null) { this.sections.putAll(sections); } }
|
55411 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55411/5fd88fcfd0ebf9feb18439158ebda5ee5f609ba2/Region.java/buggy/framework/webapp/src/org/ofbiz/webapp/region/Region.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9164,
12,
780,
612,
16,
514,
913,
16,
1635,
7178,
13,
288,
3639,
2240,
12,
1745,
16,
315,
6858,
8863,
3639,
333,
18,
350,
273,
612,
31,
3639,
309,
261,
11657,
480,
446,
13,
288,
5411,
333,
18,
11657,
18,
458,
1595,
12,
11657,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9164,
12,
780,
612,
16,
514,
913,
16,
1635,
7178,
13,
288,
3639,
2240,
12,
1745,
16,
315,
6858,
8863,
3639,
333,
18,
350,
273,
612,
31,
3639,
309,
261,
11657,
480,
446,
13,
288,
5411,
333,
18,
11657,
18,
458,
1595,
12,
11657,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return jjMoveStringLiteralDfa7_0(active0, 0x200000000000L);
|
return jjMoveStringLiteralDfa7_0(active0, 0x400000000000L);
|
private final int jjMoveStringLiteralDfa6_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(4, old0, 0L); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0, 0L); return 6; } switch(curChar) { case 58: if ((active0 & 0x80000000L) != 0L) return jjStopAtPos(6, 31); else if ((active0 & 0x400000000000L) != 0L) return jjStopAtPos(6, 46); else if ((active0 & 0x10000000000000L) != 0L) return jjStopAtPos(6, 52); break; case 65: case 97: return jjMoveStringLiteralDfa7_0(active0, 0x80000000000L); case 68: case 100: return jjMoveStringLiteralDfa7_0(active0, 0x1000000000000L); case 69: case 101: return jjMoveStringLiteralDfa7_0(active0, 0x4000000000L); case 73: case 105: return jjMoveStringLiteralDfa7_0(active0, 0x40000000000L); case 77: case 109: return jjMoveStringLiteralDfa7_0(active0, 0xa08000L); case 78: case 110: return jjMoveStringLiteralDfa7_0(active0, 0x200000000000L); case 79: case 111: return jjMoveStringLiteralDfa7_0(active0, 0x20000000000L); case 82: case 114: return jjMoveStringLiteralDfa7_0(active0, 0x1000000000L); case 84: case 116: return jjMoveStringLiteralDfa7_0(active0, 0x4100000000c00L); case 89: case 121: return jjMoveStringLiteralDfa7_0(active0, 0x2000000000000L); default : break; } return jjStartNfa_0(5, active0, 0L);}
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/e46325700c227f0167b4ff54cffe78c3db8e7ab8/ZimbraQueryParserTokenManager.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
26,
67,
20,
12,
5748,
1592,
20,
16,
1525,
2695,
20,
15329,
282,
309,
261,
12443,
3535,
20,
12058,
1592,
20,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
20,
12,
24,
16,
1592,
20,
16,
374,
48,
1769,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
20,
12,
25,
16,
2695,
20,
16,
374,
48,
1769,
1377,
327,
1666,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
17066,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
28,
17877,
48,
13,
480,
374,
48,
13,
5411,
327,
10684,
4947,
861,
1616,
12,
26,
16,
8231,
1769,
540,
469,
309,
14015,
3535,
20,
473,
374,
92,
24,
12648,
3784,
48,
13,
480,
374,
48,
13,
5411,
327,
10684,
4947,
861,
1616,
12,
26,
16,
17077,
1769,
540,
469,
309,
14015,
3535,
20,
473,
374,
92,
21,
12648,
11706,
48,
13,
480,
374,
48,
13,
5411,
327,
10684,
4947,
861,
1616,
12,
26,
16,
18106,
1769,
540,
898,
31,
1377,
648,
15892,
30,
1377,
648,
16340,
30,
540,
327,
10684,
7607,
28565,
40,
507,
27,
67,
20,
12,
3535,
20,
16,
374,
92,
28,
2787,
9449,
48,
1769,
1377,
648,
23797,
30,
1377,
648,
2130,
30,
540,
327,
10684,
7607,
28565,
40,
507,
27,
67,
20,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
26,
67,
20,
12,
5748,
1592,
20,
16,
1525,
2695,
20,
15329,
282,
309,
261,
12443,
3535,
20,
12058,
1592,
20,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
20,
12,
24,
16,
1592,
20,
16,
374,
48,
1769,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
20,
12,
25,
16,
2695,
20,
16,
374,
48,
1769,
1377,
327,
1666,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
17066,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
2
] |
public void exitUsage(boolean detailed) { System.out.println("Usage: $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar [options]");
|
public void exitUsage(boolean detailed) { System.out.println("Usage: $HADOOP_HOME/bin/hadoop [--config dir] jar \\"); System.out.println(" $HADOOP_HOME/hadoop-streaming.jar [options]");
|
public void exitUsage(boolean detailed) { // 1 2 3 4 5 6 7 //1234567890123456789012345678901234567890123456789012345678901234567890123456789 System.out.println("Usage: $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar [options]"); System.out.println("Options:"); System.out.println(" -input <path> DFS input file(s) for the Map step"); System.out.println(" -output <path> DFS output directory for the Reduce step"); System.out.println(" -mapper <cmd> The streaming command to run"); System.out.println(" -combiner <cmd> The streaming command to run"); System.out.println(" -reducer <cmd> The streaming command to run"); System.out.println(" -file <file> File/dir to be shipped in the Job jar file"); System.out.println(" -cluster <name> Default uses hadoop-default.xml and hadoop-site.xml"); System.out.println(" -config <file> Optional. One or more paths to xml config files"); System.out.println(" -dfs <h:p> Optional. Override DFS configuration"); System.out.println(" -jt <h:p> Optional. Override JobTracker configuration"); System.out.println(" -inputreader <spec> Optional."); System.out.println(" -jobconf <n>=<v> Optional."); System.out.println(" -cmdenv <n>=<v> Optional. Pass env.var to streaming commands"); System.out.println(" -verbose"); System.out.println(); if(!detailed) { System.out.println("For more details about these options:"); System.out.println("Use $HADOOP_HOME/bin/hadoop jar build/hadoop-streaming.jar -info"); fail(""); } System.out.println("In -input: globbing on <path> is supported and can have multiple -input"); System.out.println("Default Map input format: a line is a record in UTF-8"); System.out.println(" the key part ends at first TAB, the rest of the line is the value"); System.out.println("Custom Map input format: -inputreader package.MyRecordReader,n=v,n=v "); System.out.println(" comma-separated name-values can be specified to configure the InputFormat"); System.out.println(" Ex: -inputreader 'StreamXmlRecordReader,begin=<doc>,end=</doc>'"); System.out.println("Map output format, reduce input/output format:"); System.out.println(" Format defined by what mapper command outputs. Line-oriented"); System.out.println(); System.out.println("Use -cluster <name> to switch between \"local\" Hadoop and one or more remote "); System.out.println(" Hadoop clusters. "); System.out.println(" The default is to use the normal hadoop-default.xml and hadoop-site.xml"); System.out.println(" Else configuration will use $HADOOP_HOME/conf/hadoop-<name>.xml"); System.out.println(); System.out.println("To skip the shuffle/sort/reduce step:" ); System.out.println(" Use -reducer " + REDUCE_NONE); System.out.println(" This preserves the map input order and speeds up processing"); System.out.println(); System.out.println("To set the number of reduce tasks (num. of output files):"); System.out.println(" -jobconf mapred.reduce.tasks=10"); System.out.println("To name the job (appears in the JobTrack Web UI):"); System.out.println(" -jobconf mapred.job.name='My Job' "); System.out.println("To specify that line-oriented input is in gzip format:"); System.out.println("(at this time ALL input files must be gzipped and this is not recognized based on file extension)"); System.out.println(" -jobconf stream.recordreader.compression=gzip "); System.out.println("To change the local temp directory:"); System.out.println(" -jobconf dfs.data.dir=/tmp"); System.out.println("Additional local temp directories with -cluster local:"); System.out.println(" -jobconf mapred.local.dir=/tmp/local"); System.out.println(" -jobconf mapred.system.dir=/tmp/system"); System.out.println(" -jobconf mapred.temp.dir=/tmp/temp"); System.out.println("For more details about jobconf parameters see:"); System.out.println(" http://wiki.apache.org/lucene-hadoop/JobConfFile"); System.out.println("To set an environement variable in a streaming command:"); System.out.println(" -cmdenv EXAMPLE_DIR=/home/example/dictionaries/"); System.out.println(); System.out.println("Shortcut to run from any directory:"); System.out.println(" setenv HSTREAMING \"$HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/build/hadoop-streaming.jar\""); System.out.println(); System.out.println("Example: $HSTREAMING -mapper \"/usr/local/bin/perl5 filter.pl\""); System.out.println(" -file /local/filter.pl -input \"/logs/0604*/*\" [...]"); System.out.println(" Ships a script, invokes the non-shipped perl interpreter"); System.out.println(" Shipped files go to the working directory so filter.pl is found by perl"); System.out.println(" Input files are all the daily logs for days in month 2006-04"); fail(""); }
|
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2427,
5357,
12,
6494,
6864,
13,
225,
288,
8227,
368,
540,
404,
540,
576,
540,
890,
540,
1059,
540,
1381,
540,
1666,
540,
2371,
8227,
368,
28462,
20277,
26684,
26684,
26684,
26684,
26684,
26684,
26684,
565,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
271,
44,
1880,
51,
3665,
67,
14209,
19,
4757,
19,
76,
12460,
7334,
1361,
19,
76,
12460,
17,
3256,
310,
18,
11930,
306,
2116,
4279,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
1320,
2773,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2630,
565,
411,
803,
34,
377,
23872,
810,
585,
12,
87,
13,
364,
326,
1635,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2844,
282,
411,
803,
34,
377,
23872,
876,
1867,
364,
326,
24614,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
13919,
282,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
832,
4757,
264,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
1118,
89,
2750,
225,
411,
4172,
34,
1377,
1021,
12833,
1296,
358,
1086,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
768,
377,
411,
768,
34,
377,
1387,
19,
1214,
358,
506,
24316,
1845,
316,
326,
3956,
7334,
585,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
7967,
225,
411,
529,
34,
377,
2989,
4692,
22840,
17,
1886,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2427,
5357,
12,
6494,
6864,
13,
225,
288,
8227,
368,
540,
404,
540,
576,
540,
890,
540,
1059,
540,
1381,
540,
1666,
540,
2371,
8227,
368,
28462,
20277,
26684,
26684,
26684,
26684,
26684,
26684,
26684,
565,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
271,
44,
1880,
51,
3665,
67,
14209,
19,
4757,
19,
76,
12460,
7334,
1361,
19,
76,
12460,
17,
3256,
310,
18,
11930,
306,
2116,
4279,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
1320,
2773,
1769,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2630,
565,
411,
803,
34,
377,
23872,
810,
585,
12,
87,
13,
364,
326,
1635,
2235,
8863,
565,
2332,
18,
659,
18,
8222,
2932,
225,
300,
2844,
2
] |
public Collection getVirtualWikiList() throws Exception {
|
public Collection getVirtualWikiList(Object transactionObject) throws Exception {
|
public Collection getVirtualWikiList() throws Exception { Connection conn = null; Vector results = new Vector(); try { conn = WikiDatabase.getConnection(); WikiResultSet rs = this.queryHandler().getVirtualWikis(conn); while (rs.next()) { VirtualWiki virtualWiki = initVirtualWiki(rs); results.add(virtualWiki); } } catch (Exception e) { DatabaseConnection.handleErrors(conn); throw e; } finally { WikiDatabase.releaseConnection(conn); } return results; }
|
50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/4ec7d5a8d11708f3f19bb79fda0bef58ddefdb31/AnsiDataHandler.java/buggy/src/java/org/jamwiki/db/AnsiDataHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
336,
6466,
25438,
682,
1435,
1216,
1185,
288,
202,
202,
1952,
1487,
273,
446,
31,
202,
202,
5018,
1686,
273,
394,
5589,
5621,
202,
202,
698,
288,
1082,
202,
4646,
273,
28268,
4254,
18,
588,
1952,
5621,
1082,
202,
25438,
13198,
3597,
273,
333,
18,
2271,
1503,
7675,
588,
6466,
59,
1766,
291,
12,
4646,
1769,
1082,
202,
17523,
261,
5453,
18,
4285,
10756,
288,
9506,
202,
6466,
25438,
5024,
25438,
273,
1208,
6466,
25438,
12,
5453,
1769,
9506,
202,
4717,
18,
1289,
12,
12384,
25438,
1769,
1082,
202,
97,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
4254,
1952,
18,
4110,
4229,
12,
4646,
1769,
1082,
202,
12849,
425,
31,
202,
202,
97,
3095,
288,
1082,
202,
25438,
4254,
18,
9340,
1952,
12,
4646,
1769,
202,
202,
97,
202,
202,
2463,
1686,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
336,
6466,
25438,
682,
1435,
1216,
1185,
288,
202,
202,
1952,
1487,
273,
446,
31,
202,
202,
5018,
1686,
273,
394,
5589,
5621,
202,
202,
698,
288,
1082,
202,
4646,
273,
28268,
4254,
18,
588,
1952,
5621,
1082,
202,
25438,
13198,
3597,
273,
333,
18,
2271,
1503,
7675,
588,
6466,
59,
1766,
291,
12,
4646,
1769,
1082,
202,
17523,
261,
5453,
18,
4285,
10756,
288,
9506,
202,
6466,
25438,
5024,
25438,
273,
1208,
6466,
25438,
12,
5453,
1769,
9506,
202,
4717,
18,
1289,
12,
12384,
25438,
1769,
1082,
202,
97,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
4254,
1952,
18,
4110,
4229,
12,
4646,
1769,
1082,
202,
12849,
425,
31,
202,
2
] |
final CollationKey key = _collator.getCollationKey(str);
|
final CollationKey key = _collator[level].getCollationKey(str);
|
private final CollationKey stringValue(int level) { // Get value from our array if possible if (_scanned <= level) { // Get value from DOM if accessed for the first time final String str = extractValueFromDOM(_dom, _node, level, _translet, _last); final CollationKey key = _collator.getCollationKey(str); _values[_scanned++] = key; return(key); } return((CollationKey)_values[level]); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/e660b1d0dea550303b55a3a230080b49eefec63c/NodeSortRecord.java/buggy/src/org/apache/xalan/xsltc/dom/NodeSortRecord.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
17596,
367,
653,
19721,
12,
474,
1801,
13,
288,
202,
759,
968,
460,
628,
3134,
526,
309,
3323,
202,
430,
261,
67,
1017,
10041,
1648,
1801,
13,
288,
202,
565,
368,
968,
460,
628,
4703,
309,
15539,
364,
326,
1122,
813,
202,
565,
727,
514,
609,
273,
2608,
620,
1265,
8168,
24899,
9859,
16,
389,
2159,
16,
1801,
16,
6862,
1082,
282,
389,
2338,
1810,
16,
389,
2722,
1769,
202,
565,
727,
17596,
367,
653,
498,
273,
389,
12910,
639,
18,
588,
13535,
367,
653,
12,
701,
1769,
202,
565,
389,
2372,
63,
67,
1017,
10041,
9904,
65,
273,
498,
31,
202,
565,
327,
12,
856,
1769,
202,
97,
202,
2463,
12443,
13535,
367,
653,
13,
67,
2372,
63,
2815,
19226,
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,
3238,
727,
17596,
367,
653,
19721,
12,
474,
1801,
13,
288,
202,
759,
968,
460,
628,
3134,
526,
309,
3323,
202,
430,
261,
67,
1017,
10041,
1648,
1801,
13,
288,
202,
565,
368,
968,
460,
628,
4703,
309,
15539,
364,
326,
1122,
813,
202,
565,
727,
514,
609,
273,
2608,
620,
1265,
8168,
24899,
9859,
16,
389,
2159,
16,
1801,
16,
6862,
1082,
282,
389,
2338,
1810,
16,
389,
2722,
1769,
202,
565,
727,
17596,
367,
653,
498,
273,
389,
12910,
639,
18,
588,
13535,
367,
653,
12,
701,
1769,
202,
565,
389,
2372,
63,
67,
1017,
10041,
9904,
65,
273,
498,
31,
202,
565,
327,
12,
856,
1769,
202,
97,
202,
2463,
12443,
13535,
367,
653,
13,
2
] |
if (hi0 > lo0){
|
if (hi0 > lo0) {
|
private static void quickSort(double [] array,int [] index,int lo0,int hi0){ int lo = lo0; int hi = hi0; double mid; double midPlus; double midMinus; int help; if (hi0 > lo0){ // Arbitrarily establishing partition element as the midpoint of // the array. mid = array[index[(lo0+hi0)/2]]; midPlus = mid+1e-6; midMinus = mid-1e-6; // loop through the array until indices cross while(lo <= hi){ // find the first element that is greater than or equal to // the partition element starting from the left Index. while ((array[index[lo]] < midMinus) && (lo < hi0)) ++lo; // find an element that is smaller than or equal to // the partition element starting from the right Index. while ((array[index[hi]] > midPlus) && (hi > lo0)) --hi; // if the indexes have not crossed, swap if(lo <= hi) { help = index[lo]; index[lo] = index[hi]; index[hi] = help; ++lo; --hi; } } // If the right index has not reached the left side of array // must now sort the left partition. if(lo0 < hi) quickSort(array,index,lo0,hi); // If the left index has not reached the right side of array // must now sort the right partition. if(lo < hi0) quickSort(array,index,lo,hi0); } }
|
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/da85b97c7aa983b7e4a9255fa4774b3f589ff447/Utils.java/clean/weka/core/Utils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
9549,
4416,
12,
9056,
5378,
526,
16,
474,
5378,
770,
16,
474,
437,
20,
16,
474,
10118,
20,
15329,
565,
509,
437,
273,
437,
20,
31,
565,
509,
10118,
273,
10118,
20,
31,
565,
1645,
7501,
31,
565,
1645,
7501,
13207,
31,
565,
1645,
7501,
18434,
31,
565,
509,
2809,
31,
3639,
309,
261,
12266,
20,
405,
437,
20,
13,
288,
5411,
368,
1201,
3682,
86,
10243,
18312,
310,
3590,
930,
487,
326,
7501,
1153,
434,
1377,
368,
326,
526,
18,
5375,
7501,
273,
526,
63,
1615,
63,
12,
383,
20,
15,
12266,
20,
13176,
22,
13563,
31,
1377,
7501,
13207,
273,
7501,
15,
21,
73,
17,
26,
31,
1377,
7501,
18434,
273,
7501,
17,
21,
73,
17,
26,
31,
1377,
368,
2798,
3059,
326,
526,
3180,
4295,
6828,
5411,
1323,
12,
383,
1648,
10118,
15329,
202,
202,
759,
1104,
326,
1122,
930,
716,
353,
6802,
2353,
578,
3959,
358,
282,
202,
759,
326,
3590,
930,
5023,
628,
326,
2002,
3340,
18,
1082,
202,
17523,
14015,
1126,
63,
1615,
63,
383,
13563,
411,
7501,
18434,
13,
597,
261,
383,
411,
10118,
20,
3719,
202,
225,
965,
383,
31,
202,
202,
759,
1104,
392,
930,
716,
353,
10648,
2353,
578,
3959,
358,
225,
202,
759,
326,
3590,
930,
5023,
628,
326,
2145,
3340,
18,
202,
202,
17523,
14015,
1126,
63,
1615,
63,
12266,
13563,
405,
7501,
13207,
13,
597,
261,
12266,
405,
437,
20,
3719,
202,
225,
1493,
12266,
31,
202,
202,
759,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
9549,
4416,
12,
9056,
5378,
526,
16,
474,
5378,
770,
16,
474,
437,
20,
16,
474,
10118,
20,
15329,
565,
509,
437,
273,
437,
20,
31,
565,
509,
10118,
273,
10118,
20,
31,
565,
1645,
7501,
31,
565,
1645,
7501,
13207,
31,
565,
1645,
7501,
18434,
31,
565,
509,
2809,
31,
3639,
309,
261,
12266,
20,
405,
437,
20,
13,
288,
5411,
368,
1201,
3682,
86,
10243,
18312,
310,
3590,
930,
487,
326,
7501,
1153,
434,
1377,
368,
326,
526,
18,
5375,
7501,
273,
526,
63,
1615,
63,
12,
383,
20,
15,
12266,
20,
13176,
22,
13563,
31,
1377,
7501,
13207,
273,
7501,
15,
21,
73,
17,
26,
31,
1377,
7501,
18434,
273,
7501,
17,
2
] |
catch (IOException ex) { throw new XMLException("Error while hex-encoding", ex); } }
|
private Text hexEncode(InputStream in) throws SQLException { StringBuffer result = new StringBuffer(); try { int octet; while ((octet = in.read()) != -1) { StringWriter out = new StringWriter(2); if (octet < 16) out.write('0'); out.write(Integer.toHexString(octet)); result.append(out.toString()); } return new Text(result.toString()); } catch (IOException ex) { throw new XMLException("Error while hex-encoding", ex); } }
|
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/b30344a36aa33ce48a8764cba1029698770fe945/DatabaseBuilder.java/buggy/src/nu/xom/samples/DatabaseBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3867,
3827,
5509,
12,
4348,
316,
13,
1216,
6483,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
565,
775,
288,
1377,
509,
22309,
31,
1377,
1323,
14015,
17909,
273,
316,
18,
896,
10756,
480,
300,
21,
13,
288,
3639,
17436,
596,
273,
394,
17436,
12,
22,
1769,
3639,
309,
261,
17909,
411,
2872,
13,
596,
18,
2626,
2668,
20,
8284,
3639,
596,
18,
2626,
12,
4522,
18,
869,
14866,
12,
17909,
10019,
3639,
563,
18,
6923,
12,
659,
18,
10492,
10663,
1377,
289,
1377,
327,
394,
3867,
12,
2088,
18,
10492,
10663,
565,
289,
565,
1044,
261,
14106,
431,
13,
288,
1377,
604,
394,
3167,
503,
2932,
668,
1323,
3827,
17,
5999,
3113,
431,
1769,
565,
289,
1377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3867,
3827,
5509,
12,
4348,
316,
13,
1216,
6483,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
565,
775,
288,
1377,
509,
22309,
31,
1377,
1323,
14015,
17909,
273,
316,
18,
896,
10756,
480,
300,
21,
13,
288,
3639,
17436,
596,
273,
394,
17436,
12,
22,
1769,
3639,
309,
261,
17909,
411,
2872,
13,
596,
18,
2626,
2668,
20,
8284,
3639,
596,
18,
2626,
12,
4522,
18,
869,
14866,
12,
17909,
10019,
3639,
563,
18,
6923,
12,
659,
18,
10492,
10663,
1377,
289,
1377,
327,
394,
3867,
12,
2088,
18,
10492,
10663,
565,
289,
565,
1044,
261,
14106,
431,
13,
288,
1377,
604,
394,
3167,
503,
2932,
668,
1323,
3827,
17,
5999,
3113,
431,
1769,
565,
289,
2
] |
|
Page page = application.getLastRenderedPage(); application.setupRequestAndResponse(); application.getServletRequest().setRequestToRedirectString( '?' + WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=:0:tree:tree:3:node:junctionLink::ILinkListener"); application.processRequestCycle(); String document = application.getServletResponse().getDocument(); assertTrue(DiffUtil.validatePage(document, this.getClass(), "TreePageWithBorderExpectedResult_1-1.html"));
|
executedListener(TreePageWithBorder.class, application.getLastRenderedPage().get("tree:tree:3:node:junctionLink"), ILinkListener.INTERFACE, "TreePageWithBorderExpectedResult_1-1.html");
|
public void testRenderTreePageWithBorder_1() throws Exception { executeTest(TreePageWithBorder.class, "TreePageWithBorderExpectedResult_1.html"); Page page = application.getLastRenderedPage(); application.setupRequestAndResponse(); application.getServletRequest().setRequestToRedirectString( '?' + WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME + "=:0:tree:tree:3:node:junctionLink::ILinkListener"); application.processRequestCycle(); String document = application.getServletResponse().getDocument(); assertTrue(DiffUtil.validatePage(document, this.getClass(), "TreePageWithBorderExpectedResult_1-1.html")); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/1c544237313023d622f7872d7dbdd3bb1a9f37da/TreeTest.java/buggy/wicket/src/test/wicket/markup/html/tree/TreeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3420,
2471,
1964,
1190,
8107,
67,
21,
1435,
1216,
1185,
202,
95,
202,
202,
8837,
4709,
12,
2471,
1964,
1190,
8107,
18,
1106,
16,
315,
2471,
1964,
1190,
8107,
6861,
1253,
67,
21,
18,
2620,
8863,
202,
202,
1964,
1363,
273,
2521,
18,
588,
3024,
19222,
1964,
5621,
202,
202,
3685,
18,
8401,
691,
1876,
1064,
5621,
202,
202,
3685,
18,
588,
18572,
7675,
542,
691,
774,
5961,
780,
12,
9506,
202,
11,
4899,
397,
2999,
691,
30315,
4525,
18,
18865,
67,
9819,
67,
1985,
25083,
202,
15,
315,
23507,
20,
30,
3413,
30,
3413,
30,
23,
30,
2159,
30,
18323,
2098,
2866,
45,
2098,
2223,
8863,
202,
202,
3685,
18,
2567,
691,
13279,
5621,
202,
202,
780,
1668,
273,
2521,
18,
588,
29910,
7675,
588,
2519,
5621,
202,
202,
11231,
5510,
12,
5938,
1304,
18,
5662,
1964,
12,
5457,
16,
333,
18,
588,
797,
9334,
9506,
202,
6,
2471,
1964,
1190,
8107,
6861,
1253,
67,
21,
17,
21,
18,
2620,
7923,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3420,
2471,
1964,
1190,
8107,
67,
21,
1435,
1216,
1185,
202,
95,
202,
202,
8837,
4709,
12,
2471,
1964,
1190,
8107,
18,
1106,
16,
315,
2471,
1964,
1190,
8107,
6861,
1253,
67,
21,
18,
2620,
8863,
202,
202,
1964,
1363,
273,
2521,
18,
588,
3024,
19222,
1964,
5621,
202,
202,
3685,
18,
8401,
691,
1876,
1064,
5621,
202,
202,
3685,
18,
588,
18572,
7675,
542,
691,
774,
5961,
780,
12,
9506,
202,
11,
4899,
397,
2999,
691,
30315,
4525,
18,
18865,
67,
9819,
67,
1985,
25083,
202,
15,
315,
23507,
20,
30,
3413,
30,
3413,
30,
23,
30,
2159,
30,
18323,
2098,
2866,
45,
2098,
2223,
8863,
202,
202,
3685,
18,
2567,
691,
13279,
2
] |
int isSurvey = DataTools.read4SignedBytes(in, IS_LITTLE);
|
int isSurvey = in.readInt();
|
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); dims = new int[4]; long magic = DataTools.read4UnsignedBytes(in, IS_LITTLE); if (magic != IMARIS_MAGIC_NUMBER) { throw new FormatException("Imaris magic number not found."); } int version = DataTools.read4SignedBytes(in, IS_LITTLE); metadata.put("Version", new Integer(version)); in.skipBytes(4); byte[] name = new byte[128]; in.read(name); String iName = new String(name); metadata.put("Image name", iName); dims[0] = DataTools.read2SignedBytes(in, IS_LITTLE); dims[1] = DataTools.read2SignedBytes(in, IS_LITTLE); dims[2] = DataTools.read2SignedBytes(in, IS_LITTLE); in.skipBytes(2); // data type, ignore for now dims[3] = DataTools.read4SignedBytes(in, IS_LITTLE); in.skipBytes(2); byte[] date = new byte[32]; in.read(date); String origDate = new String(date); metadata.put("Original date", origDate); float dx = DataTools.readFloat(in, IS_LITTLE); float dy = DataTools.readFloat(in, IS_LITTLE); float dz = DataTools.readFloat(in, IS_LITTLE); short mag = DataTools.read2SignedBytes(in, IS_LITTLE); byte[] com = new byte[128]; in.read(com); String comment = new String(com); metadata.put("Image comment", comment); int isSurvey = DataTools.read4SignedBytes(in, IS_LITTLE); metadata.put("Survey performed", isSurvey == 0 ? "true" : "false"); numImages = dims[2] * dims[3]; offsets = new int[numImages]; for (int i=0; i<dims[3]; i++) { int offset = 332 + ((i + 1) * 168) + (i * dims[0] * dims[1] * dims[2]); for (int j=0; j<dims[2]; j++) { offsets[i*dims[2] + j] = offset + (j * dims[0] * dims[1]); } } // The metadata store we're working with. MetadataStore store = getMetadataStore(); store.setPixels( new Integer(dims[0]), new Integer(dims[1]), new Integer(dims[2]), new Integer(dims[3]), new Integer(1), "int8", new Boolean(!IS_LITTLE), "XYZCT", null); store.setImage( (String) metadata.get("Image name"), (String) metadata.get("Original date"), (String) metadata.get("Image comment"), null); store.setDimensions( new Float(dx), new Float(dy), new Float(dz), new Float(1), new Float(1), null); }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/2df09d33bfdc966378aae0cc09cb503afb983bc2/ImarisReader.java/buggy/loci/formats/in/ImarisReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
565,
9914,
273,
394,
509,
63,
24,
15533,
565,
1525,
8146,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
309,
261,
11179,
480,
6246,
985,
5127,
67,
49,
22247,
67,
9931,
13,
288,
1377,
604,
394,
4077,
503,
2932,
1170,
297,
291,
8146,
1300,
486,
1392,
1199,
1769,
565,
289,
565,
509,
1177,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
1982,
18,
458,
2932,
1444,
3113,
394,
2144,
12,
1589,
10019,
565,
316,
18,
7457,
2160,
12,
24,
1769,
565,
1160,
8526,
508,
273,
394,
1160,
63,
10392,
15533,
565,
316,
18,
896,
12,
529,
1769,
565,
514,
277,
461,
273,
394,
514,
12,
529,
1769,
565,
1982,
18,
458,
2932,
2040,
508,
3113,
277,
461,
1769,
565,
9914,
63,
20,
65,
273,
1910,
10348,
18,
896,
22,
12294,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
9914,
63,
21,
65,
273,
1910,
10348,
18,
896,
22,
12294,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
9914,
63,
22,
65,
273,
1910,
10348,
18,
896,
22,
12294,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
316,
18,
7457,
2160,
12,
22,
1769,
368,
501,
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,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
1862,
1228,
12,
350,
1769,
565,
9914,
273,
394,
509,
63,
24,
15533,
565,
1525,
8146,
273,
1910,
10348,
18,
896,
24,
13290,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
309,
261,
11179,
480,
6246,
985,
5127,
67,
49,
22247,
67,
9931,
13,
288,
1377,
604,
394,
4077,
503,
2932,
1170,
297,
291,
8146,
1300,
486,
1392,
1199,
1769,
565,
289,
565,
509,
1177,
273,
1910,
10348,
18,
896,
24,
12294,
2160,
12,
267,
16,
4437,
67,
15716,
56,
900,
1769,
565,
1982,
18,
458,
2932,
1444,
2
] |
check( REFERENCES, FunctionDeclarationPattern.class, reference );
|
check( REFERENCES, reference );
|
public void acceptFunctionReference( IASTFunctionReference reference ){ check( REFERENCES, FunctionDeclarationPattern.class, reference ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b97611936d9c4fa34ca84c99f3a546520283fc8e/MatchLocator.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
2083,
2404,
12,
467,
9053,
2083,
2404,
2114,
262,
95,
202,
202,
1893,
12,
22898,
55,
16,
4284,
6094,
3234,
18,
1106,
16,
225,
2114,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2791,
2083,
2404,
12,
467,
9053,
2083,
2404,
2114,
262,
95,
202,
202,
1893,
12,
22898,
55,
16,
4284,
6094,
3234,
18,
1106,
16,
225,
2114,
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
] |
for (int i = 0; i < list.size(); ++i) { IContentType source = (IContentType)list.get(i); IContentTypeManager.ContentTypeChangeEvent event = new IContentTypeManager.ContentTypeChangeEvent(source, projectScope); CModelManager.getDefault().contentTypeChanged(event);
|
if (list.size() > 0) { IContentTypeManager.ContentTypeChangeEvent[] events = new IContentTypeManager.ContentTypeChangeEvent[list.size()]; for (int i = 0; i < list.size(); ++i) { IContentType source = (IContentType)list.get(i); events[i] = new IContentTypeManager.ContentTypeChangeEvent(source, projectScope); } CModelManager.getDefault().contentTypeChanged(events);
|
void computeEvents(IProject project) { IScopeContext projectScope = new ProjectScope(project); IContentType[] ctypes = fPrefsBlock.getRegistedContentTypes(); ArrayList list = new ArrayList(ctypes.length); for (int i = 0; i < ctypes.length; i++) { IContentType ctype = ctypes[i]; try { IContentTypeSettings projectSettings = ctype.getSettings(projectScope); String[] projectSpecs = projectSettings.getFileSpecs(IContentType.FILE_EXTENSION_SPEC); if (projectSpecs!= null && projectSpecs.length > 0) { list.add(ctype); } else { projectSpecs = projectSettings.getFileSpecs(IContentType.FILE_NAME_SPEC); if (projectSpecs != null && projectSpecs.length > 0) { list.add(ctype); } } } catch (CoreException e) { // ignore ? } } // fire the events for (int i = 0; i < list.size(); ++i) { IContentType source = (IContentType)list.get(i); IContentTypeManager.ContentTypeChangeEvent event = new IContentTypeManager.ContentTypeChangeEvent(source, projectScope); CModelManager.getDefault().contentTypeChanged(event); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f4e8db793069aad46431ca3c6b9342d85a261a31/CFileTypesPropertyPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPropertyPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3671,
3783,
12,
45,
4109,
1984,
13,
288,
202,
202,
45,
3876,
1042,
1984,
3876,
273,
394,
5420,
3876,
12,
4406,
1769,
202,
202,
45,
8046,
8526,
6983,
273,
284,
1386,
2556,
1768,
18,
588,
1617,
25444,
27446,
5621,
202,
202,
19558,
666,
273,
394,
2407,
12,
299,
989,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6983,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
8046,
11920,
273,
6983,
63,
77,
15533,
1082,
202,
698,
288,
9506,
202,
45,
8046,
2628,
1984,
2628,
273,
11920,
18,
588,
2628,
12,
4406,
3876,
1769,
9506,
202,
780,
8526,
1984,
15999,
273,
1984,
2628,
18,
29925,
15999,
12,
45,
8046,
18,
3776,
67,
12796,
67,
13847,
1769,
9506,
202,
430,
261,
4406,
15999,
5,
33,
446,
597,
1984,
15999,
18,
2469,
405,
374,
13,
288,
6862,
202,
1098,
18,
1289,
12,
12387,
1769,
9506,
202,
97,
469,
288,
6862,
202,
4406,
15999,
273,
1984,
2628,
18,
29925,
15999,
12,
45,
8046,
18,
3776,
67,
1985,
67,
13847,
1769,
6862,
202,
430,
261,
4406,
15999,
480,
446,
597,
1984,
15999,
18,
2469,
405,
374,
13,
288,
25083,
202,
1098,
18,
1289,
12,
12387,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1044,
261,
25341,
425,
13,
288,
9506,
202,
759,
2305,
692,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
4452,
326,
2641,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
666,
18,
1467,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3671,
3783,
12,
45,
4109,
1984,
13,
288,
202,
202,
45,
3876,
1042,
1984,
3876,
273,
394,
5420,
3876,
12,
4406,
1769,
202,
202,
45,
8046,
8526,
6983,
273,
284,
1386,
2556,
1768,
18,
588,
1617,
25444,
27446,
5621,
202,
202,
19558,
666,
273,
394,
2407,
12,
299,
989,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6983,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
8046,
11920,
273,
6983,
63,
77,
15533,
1082,
202,
698,
288,
9506,
202,
45,
8046,
2628,
1984,
2628,
273,
11920,
18,
588,
2628,
12,
4406,
3876,
1769,
9506,
202,
780,
8526,
1984,
15999,
273,
1984,
2628,
18,
29925,
15999,
12,
45,
8046,
18,
2
] |
* @param publicId the publicId of the Resource for which local information is * required.
|
* @param publicId the publicId of the Resource for which local information * is required.
|
createClasspath().append(nestedClasspath); setChecked( false ); } /** * Makes this instance in effect a reference to another XMLCatalog * instance. * * <p>You must not set another attribute or nest elements inside * this element if you make it a reference. That is, a catalog * cannot both refer to another <em>and</em> contain elements or * attributes.</p> * * @param r the reference to which this catalog instance is associated * @exception BuildException if this instance already has been configured. */ public void setRefid(Reference r) throws BuildException { if (!elements.isEmpty()) { throw tooManyAttributes(); } // change this to get the objects from the other reference Object o = r.getReferencedObject(getProject()); // we only support references to other XMLCatalogs if (o instanceof XMLCatalog) { // set all elements from referenced catalog to this one XMLCatalog catalog = (XMLCatalog) o; setElements(catalog.getElements()); } else { String msg = r.getRefId() + " does not refer to an XMLCatalog"; throw new BuildException(msg); } super.setRefid(r); } /** * Implements the EntityResolver.resolveEntity() interface method. * * @see org.xml.sax.EntityResolver#resolveEntity */ public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { if (!isChecked()) { // make sure we don't have a circular reference here Stack stk = new Stack(); stk.push(this); dieOnCircularReference(stk, getProject()); } log("resolveEntity: '" + publicId + "': '" + systemId + "'", Project.MSG_DEBUG); InputSource inputSource = getCatalogResolver().resolveEntity(publicId, systemId); if (inputSource == null) { log("No matching catalog entry found, parser will use: '" + systemId + "'", Project.MSG_DEBUG); } return inputSource; } /** * Implements the URIResolver.resolve() interface method. * * @see javax.xml.transform.URIResolver#resolve */ public Source resolve(String href, String base) throws TransformerException { if (!isChecked()) { // make sure we don't have a circular reference here Stack stk = new Stack(); stk.push(this); dieOnCircularReference(stk, getProject()); } SAXSource source = null; String uri = removeFragment(href); log("resolve: '" + uri + "' with base: '" + base + "'", Project.MSG_DEBUG); source = resolveImpl(uri, base); if (source == null) { log("No matching catalog entry found, parser will use: '" + href + "'", Project.MSG_DEBUG); // // Cannot return a null source, because we have to call // setEntityResolver (see setEntityResolver javadoc comment) // source = new SAXSource(); try { URL baseURL = new URL(base); URL url = (uri.length() == 0 ? baseURL : new URL(baseURL, uri)); source.setInputSource(new InputSource(url.toString())); } catch (MalformedURLException ex) { // At this point we are probably in failure mode, but // try to use the bare URI as a last gasp source.setInputSource(new InputSource(uri)); } } setEntityResolver(source); return source; } /** * The instance of the CatalogResolver strategy to use. */ private static CatalogResolver catalogResolver = null; /** * Factory method for creating the appropriate CatalogResolver * strategy implementation. * <p> Until we query the classpath, we don't know whether the Apache * resolver (Norm Walsh's library from xml-commons) is available or not. * This method determines whether the library is available and creates the * appropriate implementation of CatalogResolver based on the answer.</p> * <p>This is an application of the Gang of Four Strategy Pattern * combined with Template Method.</p> * * @param publicId the publicId of the Resource for which local information * is required * @return a ResourceLocation instance with information on the local location * of the Resource or null if no such information is available */ private CatalogResolver getCatalogResolver() { if (catalogResolver == null) { AntClassLoader loader = null; loader = new AntClassLoader(project, Path.systemClasspath); try { Class clazz = loader.forceLoadSystemClass(APACHE_RESOLVER); Object obj = clazz.newInstance(); // // Success! The xml-commons resolver library is // available, so use it. // catalogResolver = new ApacheResolver(clazz, obj); } catch (Throwable ex) { // // The xml-commons resolver library is not // available, so we can't use it. // catalogResolver = new InternalResolver(); // // If any <catalogfiles> are specified, warn that they // will be ignored. // Enumeration enum = getElements().elements(); while (enum.hasMoreElements()) { Object o = enum.nextElement(); if (o instanceof FileSet) { log("Warning: External catalogfiles will be ignored", Project.MSG_WARN); break; } } } } return catalogResolver; } /** * <p>This is called from the URIResolver to set an EntityResolver * on the SAX parser to be used for new XML documents that are * encountered as a result of the document() function, xsl:import, * or xsl:include. This is done because the XSLT processor calls * out to the SAXParserFactory itself to create a new SAXParser to * parse the new document. The new parser does not automatically * inherit the EntityResolver of the original (although arguably * it should). See below:</p> * * <tt>"If an application wants to set the ErrorHandler or * EntityResolver for an XMLReader used during a transformation, * it should use a URIResolver to return the SAXSource which * provides (with getXMLReader) a reference to the XMLReader"</tt> * * <p>...quoted from page 118 of the Java API for XML * Processing 1.1 specification</p> * */ private void setEntityResolver(SAXSource source) throws TransformerException { XMLReader reader = source.getXMLReader(); if (reader == null) { SAXParserFactory spFactory = SAXParserFactory.newInstance(); spFactory.setNamespaceAware(true); try { reader = spFactory.newSAXParser().getXMLReader(); } catch (ParserConfigurationException ex) { throw new TransformerException(ex); } catch (SAXException ex) { throw new TransformerException(ex); } } reader.setEntityResolver(this); source.setXMLReader(reader); } /** * Find a ResourceLocation instance for the given publicId. * * @param publicId the publicId of the Resource for which local information is * required. * @return a ResourceLocation instance with information on the local location * of the Resource or null if no such information is available. */ private ResourceLocation findMatchingEntry(String publicId) { Enumeration enum = getElements().elements(); ResourceLocation element = null; while (enum.hasMoreElements()) { Object o = enum.nextElement(); if (o instanceof ResourceLocation) { element = (ResourceLocation)o; if (element.getPublicId().equals(publicId)) { return element; } } } return null; } /** * Utility method to remove trailing fragment from a URI. * For example, * <code>http://java.sun.com/index.html#chapter1</code> * would return <code>http://java.sun.com/index.html</code>. * * @param uri The URI to process. It may or may not contain a * fragment. * @return The URI sans fragment. */ private String removeFragment(String uri) { String result = uri; int hashPos = uri.indexOf("#"); if (hashPos >= 0) { result = uri.substring(0, hashPos); } return result; } /** * Utility method to lookup a ResourceLocation in the filesystem. * * @return An InputSource for reading the file, or <code>null</code> * if the file does not exist or is not readable. */ private InputSource filesystemLookup(ResourceLocation matchingEntry) { String uri = matchingEntry.getLocation(); // // The ResourceLocation may specify a relative path for its // location attribute. This is resolved using the appropriate // base. // File resFile = getProject().resolveFile(uri); InputSource source = null; if (resFile.exists() && resFile.canRead()) { try { source = new InputSource(new FileInputStream(resFile)); URL resFileURL = fileUtils.getFileURL(resFile); String sysid = resFileURL.toExternalForm(); source.setSystemId(sysid); log("catalog entry matched a readable file: '" + sysid + "'", Project.MSG_DEBUG); } catch(FileNotFoundException ex) { // ignore } catch(MalformedURLException ex) { // ignore } catch(IOException ex) { // ignore } } return source; } /** * Utility method to lookup a ResourceLocation in the classpath. * * @return An InputSource for reading the resource, or <code>null</code> * if the resource does not exist in the classpath or is not readable. */ private InputSource classpathLookup(ResourceLocation matchingEntry) { InputSource source = null; AntClassLoader loader = null; if (classpath != null) { loader = new AntClassLoader(getProject(), classpath); } else { loader = new AntClassLoader(getProject(), Path.systemClasspath); } // // for classpath lookup we ignore the base directory // InputStream is = loader.getResourceAsStream(matchingEntry.getLocation()); if (is != null) { source = new InputSource(is); URL entryURL = loader.getResource(matchingEntry.getLocation()); String sysid = entryURL.toExternalForm(); source.setSystemId(sysid); log("catalog entry matched a resource in the classpath: '" + sysid + "'", Project.MSG_DEBUG); } return source; } /** * Utility method to lookup a ResourceLocation in URL-space. * * @return An InputSource for reading the resource, or <code>null</code> * if the resource does not identify a valid URL or is not readable. */ private InputSource urlLookup(String uri, String base) { InputSource source = null; URL url = null; try { if (base == null) { url = new URL(uri); } else { URL baseURL = new URL(base); url = (uri.length() == 0 ? baseURL : new URL(baseURL, uri)); } } catch (MalformedURLException ex) { // ignore } if (url != null) { try { InputStream is = url.openStream(); if (is != null) { source = new InputSource(is); String sysid = url.toExternalForm(); source.setSystemId(sysid); log("catalog entry matched as a URL: '" + sysid + "'", Project.MSG_DEBUG); } } catch(IOException ex) { // ignore } } return source; } /** * Implements the guts of the resolveEntity() lookup strategy. */ /* private InputSource resolveEntityImpl(String publicId) { InputSource result = null; ResourceLocation matchingEntry = findMatchingEntry(publicId); if (matchingEntry != null) { log("Matching catalog entry found for publicId: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); result = filesystemLookup(matchingEntry); if (result == null) { result = classpathLookup(matchingEntry); } if (result == null) { result = urlLookup(matchingEntry.getLocation(), null); } } return result; } */ /** * Implements the guts of the resolve() lookup strategy. */ private SAXSource resolveImpl(String href, String base) { SAXSource result = null; InputSource source = null; ResourceLocation matchingEntry = findMatchingEntry(href); if (matchingEntry != null) { log("Matching catalog entry found for uri: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); source = filesystemLookup(matchingEntry); if (source == null) { source = classpathLookup(matchingEntry); } if (source == null) { source = urlLookup(matchingEntry.getLocation(), base); } if (source != null) { result = new SAXSource(source); } } return result; } /** * Interface implemented by both the InternalResolver strategy and * the ApacheResolver strategy. */ private interface CatalogResolver extends URIResolver, EntityResolver { InputSource resolveEntity(String publicId, String systemId); Source resolve(String href, String base) throws TransformerException; } /** * The InternalResolver strategy is used if the Apache resolver * library (Norm Walsh's library from xml-commons) is not * available. In this case, external catalog files will be * ignored. * */ private class InternalResolver implements CatalogResolver { public InternalResolver() { log("Apache resolver library not found, internal resolver will be used", Project.MSG_INFO); } public InputSource resolveEntity(String publicId, String systemId) { InputSource result = null; ResourceLocation matchingEntry = findMatchingEntry(publicId); if (matchingEntry != null) { log("Matching catalog entry found for publicId: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); result = filesystemLookup(matchingEntry); if (result == null) { result = classpathLookup(matchingEntry); } if (result == null) { result = urlLookup(matchingEntry.getLocation(), null); } } return result; } public Source resolve(String href, String base) throws TransformerException { SAXSource result = null; InputSource source = null; ResourceLocation matchingEntry = findMatchingEntry(href); if (matchingEntry != null) { log("Matching catalog entry found for uri: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); source = filesystemLookup(matchingEntry); if (source == null) { source = classpathLookup(matchingEntry); } if (source == null) { source = urlLookup(matchingEntry.getLocation(), base); } if (source != null) { result = new SAXSource(source); } } return result; } } /** * The ApacheResolver strategy is used if the Apache resolver * library (Norm Walsh's library from xml-commons) is available in * the classpath. The ApacheResolver is a essentially a superset * of the InternalResolver. * */ private class ApacheResolver implements CatalogResolver { private Method setXMLCatalog = null; private Method parseCatalog = null; private Method resolveEntity = null; private Method resolve = null; /** The instance of the ApacheCatalogResolver bridge class */ private Object resolverImpl = null; private boolean externalCatalogsProcessed = false; public ApacheResolver(Class resolverImplClass, Object resolverImpl) { this.resolverImpl = resolverImpl; // // Get Method instances for each of the methods we need to // call on the resolverImpl using reflection. We can't // call them directly, because they require on the // xml-commons resolver library which may not be available // in the classpath. // try { setXMLCatalog = resolverImplClass.getMethod("setXMLCatalog", new Class[] { XMLCatalog.class }); parseCatalog = resolverImplClass.getMethod("parseCatalog", new Class[] { String.class }); resolveEntity = resolverImplClass.getMethod("resolveEntity", new Class[] { String.class, String.class }); resolve = resolverImplClass.getMethod("resolve", new Class[] { String.class, String.class }); } catch (NoSuchMethodException ex) { throw new BuildException(ex); } log("Apache resolver library found, xml-commons resolver will be used", Project.MSG_INFO); } public InputSource resolveEntity(String publicId, String systemId) { InputSource result = null; processExternalCatalogs(); ResourceLocation matchingEntry = findMatchingEntry(publicId); if (matchingEntry != null) { log("Matching catalog entry found for publicId: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); result = filesystemLookup(matchingEntry); if (result == null) { result = classpathLookup(matchingEntry); } if (result == null) { try { result = (InputSource)resolveEntity.invoke(resolverImpl, new Object[] { publicId, systemId }); } catch (Exception ex) { throw new BuildException(ex); } } } else { // // We didn't match a ResourceLocation, but since we // only support PUBLIC and URI entry types, it is // still possible that there is another entry in an // external catalog that will match. We call Apache // resolver's resolveEntity method to cover this // possibility. // try { result = (InputSource)resolveEntity.invoke(resolverImpl, new Object[] { publicId, systemId }); } catch (Exception ex) { throw new BuildException(ex); } } return result; } public Source resolve(String href, String base) throws TransformerException { SAXSource result = null; InputSource source = null; processExternalCatalogs(); ResourceLocation matchingEntry = findMatchingEntry(href); if (matchingEntry != null) { log("Matching catalog entry found for uri: '" + matchingEntry.getPublicId() + "' location: '" + matchingEntry.getLocation() + "'", Project.MSG_DEBUG); source = filesystemLookup(matchingEntry); if (source == null) { source = classpathLookup(matchingEntry); } if (source != null) { result = new SAXSource(source); } else { try { result = (SAXSource)resolve.invoke(resolverImpl, new Object[] { href, base }); } catch (Exception ex) { throw new BuildException(ex); } } } else { // // We didn't match a ResourceLocation, but since we // only support PUBLIC and URI entry types, it is // still possible that there is another entry in an // external catalog that will match. We call Apache // resolver's resolveEntity method to cover this // possibility. // try { result = (SAXSource)resolve.invoke(resolverImpl, new Object[] { href, base }); } catch (Exception ex) { throw new BuildException(ex); } } return result; } /** * Process each external catalog file specified in a * <code><catalogfiles></code> FileSet. It will be * parsed by the resolver library, and the individual elements * will be added back to us (that is, the controlling * XMLCatalog instance) via a callback mechanism. */ private void processExternalCatalogs() { if (externalCatalogsProcessed == false) { try { setXMLCatalog.invoke(resolverImpl, new Object[] { XMLCatalog.this }); } catch (Exception ex) { throw new BuildException(ex); } Enumeration enum = getElements().elements(); while (enum.hasMoreElements()) { Object o = enum.nextElement(); if (o instanceof FileSet) { FileSet fs = (FileSet)o; DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] files = ds.getIncludedFiles(); for (int i = 0; i < files.length; i++) { File catFile = new File(ds.getBasedir(), files[i]); try { parseCatalog.invoke(resolverImpl, new Object[] { catFile.getPath() }); } catch (Exception ex) { throw new BuildException(ex); } } } } } externalCatalogsProcessed = true; } }}
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/51efe539a6d03adf63a486d27865f78fe4eaa804/XMLCatalog.java/buggy/src/main/org/apache/tools/ant/types/XMLCatalog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
752,
17461,
7675,
6923,
12,
12985,
17461,
1769,
3639,
444,
11454,
12,
629,
11272,
565,
289,
565,
1783,
377,
380,
490,
3223,
333,
791,
316,
5426,
279,
2114,
358,
4042,
3167,
9769,
377,
380,
791,
18,
377,
380,
377,
380,
411,
84,
34,
6225,
1297,
486,
444,
4042,
1566,
578,
15095,
2186,
4832,
377,
380,
333,
930,
309,
1846,
1221,
518,
279,
2114,
18,
225,
12466,
353,
16,
279,
6222,
377,
380,
2780,
3937,
8884,
358,
4042,
411,
351,
34,
464,
1757,
351,
34,
912,
2186,
578,
377,
380,
1677,
17347,
84,
34,
377,
380,
377,
380,
632,
891,
436,
326,
2114,
358,
1492,
333,
6222,
791,
353,
3627,
377,
380,
632,
4064,
18463,
309,
333,
791,
1818,
711,
2118,
4351,
18,
377,
1195,
565,
1071,
918,
444,
1957,
350,
12,
2404,
436,
13,
1216,
18463,
288,
3639,
309,
16051,
6274,
18,
291,
1921,
10756,
288,
5411,
604,
4885,
5594,
2498,
5621,
3639,
289,
3639,
368,
2549,
333,
358,
336,
326,
2184,
628,
326,
1308,
2114,
3639,
1033,
320,
273,
436,
18,
588,
22344,
921,
12,
588,
4109,
10663,
3639,
368,
732,
1338,
2865,
5351,
358,
1308,
3167,
39,
21836,
3639,
309,
261,
83,
1276,
3167,
9769,
13,
288,
5411,
368,
444,
777,
2186,
628,
8042,
6222,
358,
333,
1245,
5411,
3167,
9769,
6222,
273,
261,
4201,
9769,
13,
320,
31,
5411,
444,
3471,
12,
7199,
18,
588,
3471,
10663,
3639,
289,
469,
288,
5411,
514,
1234,
273,
436,
18,
588,
1957,
548,
1435,
397,
315,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
752,
17461,
7675,
6923,
12,
12985,
17461,
1769,
3639,
444,
11454,
12,
629,
11272,
565,
289,
565,
1783,
377,
380,
490,
3223,
333,
791,
316,
5426,
279,
2114,
358,
4042,
3167,
9769,
377,
380,
791,
18,
377,
380,
377,
380,
411,
84,
34,
6225,
1297,
486,
444,
4042,
1566,
578,
15095,
2186,
4832,
377,
380,
333,
930,
309,
1846,
1221,
518,
279,
2114,
18,
225,
12466,
353,
16,
279,
6222,
377,
380,
2780,
3937,
8884,
358,
4042,
411,
351,
34,
464,
1757,
351,
34,
912,
2186,
578,
377,
380,
1677,
17347,
84,
34,
377,
380,
377,
380,
632,
891,
436,
326,
2114,
358,
1492,
333,
6222,
791,
353,
3627,
377,
380,
632,
4064,
18463,
309,
333,
791,
1818,
2
] |
int max_length = 255;
|
public static File createTempFile (String prefix, String suffix, File directory) throws IOException { // Grab the system temp directory if necessary if (directory == null) { String dirname = tmpdir; if (dirname == null) throw new IOException("Cannot determine system temporary directory"); directory = new File(dirname); if (!directory.exists()) throw new IOException("System temporary directory " + directory.getName() + " does not exist."); if (!directory.isDirectory()) throw new IOException("System temporary directory " + directory.getName() + " is not really a directory."); } if (prefix.length () < 3) throw new IllegalArgumentException ("Prefix too short: " + prefix); if (suffix == null) suffix = ".tmp"; // FIXME: filename length varies by architecture and filesystem. int max_length = 255; // Truncation rules. // `6' is the number of characters we generate. if (prefix.length () + 6 + suffix.length () > max_length) { int suf_len = 0; if (suffix.charAt(0) == '.') suf_len = 4; suffix = suffix.substring(0, suf_len); if (prefix.length () + 6 + suf_len > max_length) prefix = prefix.substring(0, max_length - 6 - suf_len); } File f; // How many times should we try? We choose 100. for (int i = 0; i < 100; ++i) { // This is ugly. String t = "ZZZZZZ" + nextValue (); String l = prefix + t.substring(t.length() - 6) + suffix; try { f = new File(directory, l); if (f.exists()) continue; else { String af = f.getAbsolutePath (); // Check to see if we're allowed to write to it. SecurityManager s = System.getSecurityManager(); if (s != null) s.checkWrite (af); // Now create the file. FileDescriptor fd = new FileDescriptor (af, FileDescriptor.WRITE | FileDescriptor.EXCL); fd.close (); return f; } } catch (IOException _) { } } throw new IOException ("cannot create temporary file"); }
|
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/13487a5ef4e62b2ad9a1836e7826c648d61b26b3/File.java/buggy/libjava/java/io/File.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1387,
30106,
261,
780,
1633,
16,
514,
3758,
16,
6862,
377,
1387,
1867,
13,
565,
1216,
1860,
225,
288,
565,
368,
17150,
326,
2619,
1906,
1867,
309,
4573,
565,
309,
261,
5149,
422,
446,
13,
1377,
288,
202,
780,
4283,
273,
20213,
31,
202,
430,
261,
12287,
422,
446,
13,
202,
225,
604,
3196,
565,
394,
1860,
2932,
4515,
4199,
2619,
6269,
1867,
8863,
3196,
202,
5149,
273,
394,
1387,
12,
12287,
1769,
202,
430,
16051,
5149,
18,
1808,
10756,
202,
225,
604,
394,
1860,
2932,
3163,
6269,
1867,
315,
4697,
202,
15,
1867,
18,
17994,
1435,
397,
315,
1552,
486,
1005,
1199,
1769,
202,
430,
16051,
5149,
18,
291,
2853,
10756,
202,
225,
604,
394,
1860,
2932,
3163,
6269,
1867,
315,
4697,
202,
15,
1867,
18,
17994,
1435,
4697,
202,
15,
315,
353,
486,
8654,
279,
1867,
1199,
1769,
1377,
289,
565,
309,
261,
3239,
18,
2469,
1832,
411,
890,
13,
1377,
604,
394,
2754,
7566,
2244,
4885,
3025,
30,
315,
397,
1633,
1769,
565,
309,
261,
8477,
422,
446,
13,
1377,
3758,
273,
3552,
5645,
14432,
565,
368,
9852,
30,
1544,
769,
569,
606,
635,
27418,
471,
6496,
18,
377,
368,
22228,
367,
2931,
18,
565,
368,
1375,
26,
11,
353,
326,
1300,
434,
3949,
732,
2103,
18,
565,
309,
261,
3239,
18,
2469,
1832,
397,
1666,
397,
3758,
18,
2469,
1832,
405,
943,
67,
2469,
13,
1377,
288,
202,
474,
272,
696,
67,
1897,
273,
374,
31,
202,
430,
261,
8477,
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,
1387,
30106,
261,
780,
1633,
16,
514,
3758,
16,
6862,
377,
1387,
1867,
13,
565,
1216,
1860,
225,
288,
565,
368,
17150,
326,
2619,
1906,
1867,
309,
4573,
565,
309,
261,
5149,
422,
446,
13,
1377,
288,
202,
780,
4283,
273,
20213,
31,
202,
430,
261,
12287,
422,
446,
13,
202,
225,
604,
3196,
565,
394,
1860,
2932,
4515,
4199,
2619,
6269,
1867,
8863,
3196,
202,
5149,
273,
394,
1387,
12,
12287,
1769,
202,
430,
16051,
5149,
18,
1808,
10756,
202,
225,
604,
394,
1860,
2932,
3163,
6269,
1867,
315,
4697,
202,
15,
1867,
18,
17994,
1435,
397,
315,
1552,
486,
1005,
1199,
1769,
202,
430,
16051,
5149,
18,
291,
2853,
10756,
202,
225,
604,
394,
2
] |
|
p = Pattern .compile( "<\\s*style[^\\>]*\\>\\s*\\.*" + bodyStyleId + "\\s*\\{\\s*([^\\}]+)\\}", Pattern.CASE_INSENSITIVE ); m = p.matcher( content ); if ( m.find( ) ) style = m.group( 1 ).trim( );
|
bodyStyleId = bodyStyleId.replaceAll( "style", "style" + viewer.getId( ) );
|
protected String __handleBodyStyle( String content ) { String style = BLANK_STRING; if ( content == null ) return style; Pattern p = Pattern.compile( "<\\s*body([^\\>]*)\\>", //$NON-NLS-1$ Pattern.CASE_INSENSITIVE ); Matcher m = p.matcher( content ); String bodyStyleId = ""; //$NON-NLS-1$ if ( m.find( ) ) { for ( int i = 1; i < m.groupCount( ) + 1; i++ ) { String group = m.group( i ); if ( group == null ) continue; Pattern pl = Pattern.compile( "class\\s*=\\s*\"([^\"]+)\"", //$NON-NLS-1$ Pattern.CASE_INSENSITIVE ); Matcher ml = pl.matcher( group.trim( ) ); if ( ml.find( ) ) { // find body style id bodyStyleId = ml.group( 1 ).trim( ); break; } } } // parse sytle content p = Pattern .compile( "<\\s*style[^\\>]*\\>\\s*\\.*" + bodyStyleId + "\\s*\\{\\s*([^\\}]+)\\}", //$NON-NLS-1$ //$NON-NLS-2$ Pattern.CASE_INSENSITIVE ); m = p.matcher( content ); if ( m.find( ) ) style = m.group( 1 ).trim( ); return style; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/6b00acf016a73de6f245a274ac85e76eaa3ccdcf/ReportTag.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ReportTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1001,
4110,
2250,
2885,
12,
514,
913,
262,
202,
95,
202,
202,
780,
2154,
273,
29727,
67,
5804,
31,
202,
202,
430,
261,
913,
422,
446,
262,
1082,
202,
2463,
2154,
31,
202,
202,
3234,
293,
273,
6830,
18,
11100,
12,
3532,
1695,
87,
14,
3432,
8178,
1695,
34,
15471,
1695,
2984,
16,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3234,
18,
13415,
67,
706,
26753,
16325,
11272,
202,
202,
6286,
312,
273,
293,
18,
22761,
12,
913,
11272,
202,
202,
780,
1417,
2885,
548,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
312,
18,
4720,
12,
262,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
277,
273,
404,
31,
277,
411,
312,
18,
1655,
1380,
12,
262,
397,
404,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
780,
1041,
273,
312,
18,
1655,
12,
277,
11272,
9506,
202,
430,
261,
1041,
422,
446,
262,
6862,
202,
17143,
31,
9506,
202,
3234,
886,
273,
6830,
18,
11100,
12,
315,
1106,
1695,
87,
14,
33,
1695,
87,
14,
2412,
8178,
2412,
7941,
2412,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
3234,
18,
13415,
67,
706,
26753,
16325,
11272,
9506,
202,
6286,
12931,
273,
886,
18,
22761,
12,
1041,
18,
5290,
12,
262,
11272,
9506,
202,
430,
261,
12931,
18,
4720,
12,
262,
262,
9506,
202,
95,
6862,
202,
759,
1104,
1417,
2154,
612,
6862,
202,
3432,
2885,
548,
273,
12931,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1001,
4110,
2250,
2885,
12,
514,
913,
262,
202,
95,
202,
202,
780,
2154,
273,
29727,
67,
5804,
31,
202,
202,
430,
261,
913,
422,
446,
262,
1082,
202,
2463,
2154,
31,
202,
202,
3234,
293,
273,
6830,
18,
11100,
12,
3532,
1695,
87,
14,
3432,
8178,
1695,
34,
15471,
1695,
2984,
16,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
3234,
18,
13415,
67,
706,
26753,
16325,
11272,
202,
202,
6286,
312,
273,
293,
18,
22761,
12,
913,
11272,
202,
202,
780,
1417,
2885,
548,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
312,
18,
4720,
12,
262,
262,
202,
202,
95,
1082,
202,
1884,
261,
509,
2
] |
Logger.error(this, "Spider: MalformedURLException: "+uriStr+":"+e);
|
Logger.error(this, "Spider: MalformedURLException: "+uriStr+ ':' +e);
|
private synchronized void queueURI(FreenetURI uri) { String uriStr = null; /* We remove HTML targets from URI (http://my.server/file#target) */ /* Else we re-index already indexed file */ try { uriStr = uri.toString(false); if(uriStr.indexOf("#") > 0) { uriStr = uriStr.substring(0, uriStr.indexOf("#")); uri = new FreenetURI(uriStr); } } catch (MalformedURLException e) { Logger.error(this, "Spider: MalformedURLException: "+uriStr+":"+e); return; } if ((!visitedURIs.contains(uri)) && queuedURISet.add(uri)) { queuedURIList.addLast(uri); visitedURIs.add(uri); } }
|
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Spider.java/buggy/src/freenet/clients/http/Spider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
2389,
3098,
12,
42,
2842,
278,
3098,
2003,
13,
288,
202,
202,
780,
2003,
1585,
273,
446,
31,
9506,
202,
20308,
1660,
1206,
3982,
5774,
628,
3699,
261,
2505,
2207,
4811,
18,
3567,
19,
768,
7,
3299,
13,
1195,
202,
202,
20308,
16289,
732,
283,
17,
1615,
1818,
8808,
585,
1195,
202,
202,
698,
288,
1082,
202,
1650,
1585,
273,
2003,
18,
10492,
12,
5743,
1769,
1082,
202,
430,
12,
1650,
1585,
18,
31806,
2932,
7,
7923,
405,
374,
13,
9506,
202,
95,
6862,
202,
1650,
1585,
273,
2003,
1585,
18,
28023,
12,
20,
16,
2003,
1585,
18,
31806,
2932,
7,
7923,
1769,
6862,
202,
1650,
273,
394,
478,
2842,
278,
3098,
12,
1650,
1585,
1769,
9506,
202,
97,
202,
202,
97,
1044,
261,
18695,
20160,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
3389,
3585,
30,
20710,
30,
13773,
1650,
1585,
9078,
2773,
15,
73,
1769,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
430,
14015,
5,
30129,
1099,
2520,
18,
12298,
12,
1650,
3719,
597,
12234,
3098,
694,
18,
1289,
12,
1650,
3719,
288,
1082,
202,
19499,
3098,
682,
18,
1289,
3024,
12,
1650,
1769,
1082,
202,
30129,
1099,
2520,
18,
1289,
12,
1650,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
2389,
3098,
12,
42,
2842,
278,
3098,
2003,
13,
288,
202,
202,
780,
2003,
1585,
273,
446,
31,
9506,
202,
20308,
1660,
1206,
3982,
5774,
628,
3699,
261,
2505,
2207,
4811,
18,
3567,
19,
768,
7,
3299,
13,
1195,
202,
202,
20308,
16289,
732,
283,
17,
1615,
1818,
8808,
585,
1195,
202,
202,
698,
288,
1082,
202,
1650,
1585,
273,
2003,
18,
10492,
12,
5743,
1769,
1082,
202,
430,
12,
1650,
1585,
18,
31806,
2932,
7,
7923,
405,
374,
13,
9506,
202,
95,
6862,
202,
1650,
1585,
273,
2003,
1585,
18,
28023,
12,
20,
16,
2003,
1585,
18,
31806,
2932,
7,
7923,
1769,
6862,
202,
1650,
273,
394,
478,
2842,
278,
3098,
12,
1650,
2
] |
if (_log.shouldLog(Log.ERROR)) _log.error("Error decrypting the payload");
|
if (_log.shouldLog(Log.WARN)) _log.warn("Error decrypting the payload");
|
private Payload decryptPayload(MessagePayloadMessage msg, I2PSessionImpl session) throws DataFormatException { Payload payload = msg.getPayload(); byte[] data = _context.elGamalAESEngine().decrypt(payload.getEncryptedData(), session.getDecryptionKey()); if (data == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Error decrypting the payload"); throw new DataFormatException("Unable to decrypt the payload"); } payload.setUnencryptedData(data); return payload; }
|
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/c17433cb9342d6d49730c0ed662f8cb0369629bb/MessagePayloadMessageHandler.java/buggy/core/java/src/net/i2p/client/MessagePayloadMessageHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11320,
8420,
6110,
12,
1079,
6110,
1079,
1234,
16,
467,
22,
52,
2157,
2828,
1339,
13,
1216,
1910,
9291,
288,
3639,
11320,
2385,
273,
1234,
18,
588,
6110,
5621,
3639,
1160,
8526,
501,
273,
389,
2472,
18,
292,
43,
301,
287,
18436,
4410,
7675,
19790,
12,
7648,
18,
588,
14678,
751,
9334,
1339,
18,
588,
1799,
4346,
653,
10663,
3639,
309,
261,
892,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
668,
8420,
310,
326,
2385,
8863,
5411,
604,
394,
1910,
9291,
2932,
3370,
358,
8420,
326,
2385,
8863,
3639,
289,
3639,
2385,
18,
542,
984,
18702,
751,
12,
892,
1769,
3639,
327,
2385,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11320,
8420,
6110,
12,
1079,
6110,
1079,
1234,
16,
467,
22,
52,
2157,
2828,
1339,
13,
1216,
1910,
9291,
288,
3639,
11320,
2385,
273,
1234,
18,
588,
6110,
5621,
3639,
1160,
8526,
501,
273,
389,
2472,
18,
292,
43,
301,
287,
18436,
4410,
7675,
19790,
12,
7648,
18,
588,
14678,
751,
9334,
1339,
18,
588,
1799,
4346,
653,
10663,
3639,
309,
261,
892,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
668,
8420,
310,
326,
2385,
8863,
5411,
604,
394,
1910,
9291,
2932,
3370,
358,
8420,
326,
2385,
8863,
3639,
289,
3639,
2385,
18,
542,
984,
18702,
751,
12,
892,
1769,
3639,
2
] |
String mimeType = context.getStringProperty(HttpConstants.HEADER_CONTENT_TYPE, null);
|
String mimeType = msg.getStringProperty(HttpConstants.HEADER_CONTENT_TYPE, null);
|
public Object transform(Object src, String encoding, UMOEventContext context) throws TransformerException { String endpoint = (String)context.getProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, null); if (endpoint == null) { throw new TransformerException(new Message( Messages.EVENT_PROPERTY_X_NOT_SET_CANT_PROCESS_REQUEST, MuleProperties.MULE_ENDPOINT_PROPERTY), this); } String method = (String)context.getProperty(HttpConnector.HTTP_METHOD_PROPERTY, "POST"); try { URI uri = new URI(endpoint); HttpMethod httpMethod = null; if (HttpConstants.METHOD_GET.equals(method)) { httpMethod = new GetMethod(uri.toString()); setHeaders(httpMethod, context); String paramName = (String)context.getProperty( HttpConnector.HTTP_GET_BODY_PARAM_PROPERTY, HttpConnector.DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY); String query = uri.getQuery(); if (!(src instanceof NullPayload) && !StringUtils.EMPTY.equals(src)) { if (query == null) { query = paramName + "=" + src.toString(); } else { query += "&" + paramName + "=" + src.toString(); } } httpMethod.setQueryString(query); } else { PostMethod postMethod = new PostMethod(uri.toString()); setHeaders(postMethod, context); String paramName = (String)context .getProperty(HttpConnector.HTTP_POST_BODY_PARAM_PROPERTY); // postMethod.setRequestContentLength(PostMethod.CONTENT_LENGTH_AUTO); if (paramName == null) { // Call method to manage the parameter array addParameters(uri.getQuery(), postMethod); // Dont set a POST payload if the body is a Null Payload. // This way client calls // can control if a POST body is posted explicitly if (!(context.getMessage().getPayload() instanceof NullPayload)) { // See if we have a MIME type set String mimeType = context.getStringProperty(HttpConstants.HEADER_CONTENT_TYPE, null); if (src instanceof String) { // Ensure that we strip the encoding information from the encoding type int parameterIndex = mimeType != null ? mimeType.indexOf(";") : -1; if (parameterIndex > 0) { mimeType = mimeType.substring(0,parameterIndex); } if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE; if (encoding == null) encoding = MuleManager.getConfiguration().getEncoding(); postMethod.setRequestEntity(new StringRequestEntity(src.toString(), mimeType, encoding)); } else if (src instanceof InputStream) { // TODO Danger here! We don't know if the content is really text or not if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE; postMethod.setRequestEntity(new InputStreamRequestEntity((InputStream)src, mimeType)); } else { // TODO Danger here! We don't know if the content is really text or not if (mimeType == null) mimeType = HttpConstants.DEFAULT_CONTENT_TYPE; byte[] buffer = (byte[])serializableToByteArray.doTransform(src, encoding); postMethod.setRequestEntity(new ByteArrayRequestEntity(buffer, mimeType)); } } } else { postMethod.addParameter(paramName, src.toString()); } httpMethod = postMethod; } return httpMethod; } catch (Exception e) { throw new TransformerException(this, e); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/79a096cef4d9edd693057110d1b68b4a5f5dd52f/ObjectToHttpClientMethodRequest.java/clean/providers/http/src/java/org/mule/providers/http/transformers/ObjectToHttpClientMethodRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2510,
12,
921,
1705,
16,
514,
2688,
16,
587,
5980,
1133,
1042,
819,
13,
5411,
1216,
21684,
565,
288,
3639,
514,
2494,
273,
261,
780,
13,
2472,
18,
588,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
18506,
67,
9900,
16,
446,
1769,
3639,
309,
261,
8003,
422,
446,
13,
288,
5411,
604,
394,
21684,
12,
2704,
2350,
12,
10792,
4838,
18,
10454,
67,
9900,
67,
60,
67,
4400,
67,
4043,
67,
39,
6856,
67,
16560,
67,
5519,
16,
10792,
490,
725,
2297,
18,
49,
5595,
67,
18506,
67,
9900,
3631,
333,
1769,
3639,
289,
3639,
514,
707,
273,
261,
780,
13,
2472,
18,
588,
1396,
12,
2940,
7487,
18,
3693,
67,
5327,
67,
9900,
16,
315,
3798,
8863,
3639,
775,
288,
5411,
3699,
2003,
273,
394,
3699,
12,
8003,
1769,
5411,
17069,
17425,
273,
446,
31,
5411,
309,
261,
2940,
2918,
18,
5327,
67,
3264,
18,
14963,
12,
2039,
3719,
288,
7734,
17425,
273,
394,
968,
1305,
12,
1650,
18,
10492,
10663,
7734,
24359,
12,
2505,
1305,
16,
819,
1769,
7734,
514,
11466,
273,
261,
780,
13,
2472,
18,
588,
1396,
12,
13491,
2541,
7487,
18,
3693,
67,
3264,
67,
16691,
67,
8388,
67,
9900,
16,
13491,
2541,
7487,
18,
5280,
67,
3693,
67,
3264,
67,
16691,
67,
8388,
67,
9900,
1769,
7734,
514,
843,
273,
2003,
18,
588,
1138,
5621,
7734,
309,
16051,
12,
4816,
1276,
4112,
6110,
13,
597,
401,
780,
1989,
18,
13625,
18,
14963,
12,
4816,
3719,
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,
377,
1071,
1033,
2510,
12,
921,
1705,
16,
514,
2688,
16,
587,
5980,
1133,
1042,
819,
13,
5411,
1216,
21684,
565,
288,
3639,
514,
2494,
273,
261,
780,
13,
2472,
18,
588,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
18506,
67,
9900,
16,
446,
1769,
3639,
309,
261,
8003,
422,
446,
13,
288,
5411,
604,
394,
21684,
12,
2704,
2350,
12,
10792,
4838,
18,
10454,
67,
9900,
67,
60,
67,
4400,
67,
4043,
67,
39,
6856,
67,
16560,
67,
5519,
16,
10792,
490,
725,
2297,
18,
49,
5595,
67,
18506,
67,
9900,
3631,
333,
1769,
3639,
289,
3639,
514,
707,
273,
261,
780,
13,
2472,
18,
588,
1396,
12,
2940,
7487,
18,
3693,
67,
5327,
67,
9900,
2
] |
final Schema mergedTableSchema, final String mergedTableName,
|
final Schema targetTableSchema, final String targetTableName,
|
public Merge(final String dsSchemaName, final String dsTableName, final Schema mergedTableSchema, final String mergedTableName, final Schema sourceTableSchema, final String sourceTableName, final List sourceTableKeyColumns, final Schema targetTableSchema, final String targetTableName, final List targetTableKeyColumns, final List targetTableColumns, final DataSetRelationRestriction relationRestriction, final boolean firstTableSourceTable, final boolean useDistinct, final DataSetTableRestriction targetTableRestriction, final boolean useAliases) { super(dsSchemaName, dsTableName); this.mergedTableSchema = mergedTableSchema; this.mergedTableName = mergedTableName; this.sourceTableSchema = sourceTableSchema; this.sourceTableName = sourceTableName; this.sourceTableKeyColumns = sourceTableKeyColumns; this.targetTableSchema = targetTableSchema; this.targetTableName = targetTableName; this.targetTableKeyColumns = targetTableKeyColumns; this.targetTableColumns = targetTableColumns; this.relationRestriction = relationRestriction; this.firstTableSourceTable = firstTableSourceTable; this.useDistinct = useDistinct; this.targetTableRestriction = targetTableRestriction; this.useAliases = useAliases; }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/697fc52b912bb5a1524113edc0e15bf091f78336/MartConstructorAction.java/buggy/src/java/org/biomart/builder/model/MartConstructorAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
8964,
12,
6385,
514,
3780,
3078,
461,
16,
727,
514,
3780,
7147,
16,
9506,
202,
6385,
4611,
5384,
1388,
3078,
16,
727,
514,
5384,
7147,
16,
9506,
202,
6385,
4611,
1084,
1388,
3078,
16,
727,
514,
1084,
7147,
16,
9506,
202,
6385,
987,
1084,
1388,
653,
3380,
16,
9506,
202,
6385,
4611,
1018,
1388,
3078,
16,
727,
514,
1018,
7147,
16,
9506,
202,
6385,
987,
1018,
1388,
653,
3380,
16,
9506,
202,
6385,
987,
1018,
1388,
3380,
16,
9506,
202,
6385,
14065,
3963,
11670,
2533,
11670,
16,
9506,
202,
6385,
1250,
1122,
1388,
1830,
1388,
16,
727,
1250,
999,
23402,
16,
9506,
202,
6385,
14065,
1388,
11670,
1018,
1388,
11670,
16,
9506,
202,
6385,
1250,
999,
9667,
13,
288,
1082,
202,
9565,
12,
2377,
3078,
461,
16,
3780,
7147,
1769,
1082,
202,
2211,
18,
15459,
1388,
3078,
273,
5384,
1388,
3078,
31,
1082,
202,
2211,
18,
15459,
7147,
273,
5384,
7147,
31,
1082,
202,
2211,
18,
3168,
1388,
3078,
273,
1084,
1388,
3078,
31,
1082,
202,
2211,
18,
3168,
7147,
273,
1084,
7147,
31,
1082,
202,
2211,
18,
3168,
1388,
653,
3380,
273,
1084,
1388,
653,
3380,
31,
1082,
202,
2211,
18,
3299,
1388,
3078,
273,
1018,
1388,
3078,
31,
1082,
202,
2211,
18,
3299,
7147,
273,
1018,
7147,
31,
1082,
202,
2211,
18,
3299,
1388,
653,
3380,
273,
1018,
1388,
653,
3380,
31,
1082,
202,
2211,
18,
3299,
1388,
3380,
273,
1018,
1388,
3380,
31,
1082,
202,
2211,
18,
5488,
11670,
273,
2533,
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,
3196,
202,
482,
8964,
12,
6385,
514,
3780,
3078,
461,
16,
727,
514,
3780,
7147,
16,
9506,
202,
6385,
4611,
5384,
1388,
3078,
16,
727,
514,
5384,
7147,
16,
9506,
202,
6385,
4611,
1084,
1388,
3078,
16,
727,
514,
1084,
7147,
16,
9506,
202,
6385,
987,
1084,
1388,
653,
3380,
16,
9506,
202,
6385,
4611,
1018,
1388,
3078,
16,
727,
514,
1018,
7147,
16,
9506,
202,
6385,
987,
1018,
1388,
653,
3380,
16,
9506,
202,
6385,
987,
1018,
1388,
3380,
16,
9506,
202,
6385,
14065,
3963,
11670,
2533,
11670,
16,
9506,
202,
6385,
1250,
1122,
1388,
1830,
1388,
16,
727,
1250,
999,
23402,
16,
9506,
202,
6385,
14065,
1388,
11670,
1018,
1388,
11670,
16,
9506,
202,
6385,
1250,
999,
2
] |
false );
|
false, null );
|
protected final void renderFittingCurve( IPrimitiveRenderer ipr, Location[] points, CurveFitting curve, boolean bShowAsTape, boolean bDeferred ) throws ChartException { if ( !curve.getLineAttributes( ).isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.curve.line.visibility.not.defined", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } boolean isTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); if ( curve.getLineAttributes( ).isVisible( ) ) { // Render curve. float[] xArray = new float[points.length]; float[] yArray = new float[points.length]; for ( int i = 0; i < xArray.length; i++ ) { xArray[i] = (float) points[i].getX( ); yArray[i] = (float) points[i].getY( ); } sort( xArray, yArray, !isTransposed ); float[] baseArray = xArray, orthogonalArray = yArray; if ( isTransposed ) { baseArray = yArray; orthogonalArray = xArray; } Lowess ls = new Lowess( baseArray, orthogonalArray, 0.33f ); float[] fitYarray = ls.getYEst( ); orthogonalArray = fitYarray; if ( isTransposed ) { baseArray = fitYarray; orthogonalArray = yArray; sort( baseArray, orthogonalArray, false ); } CurveRenderer crdr = new CurveRenderer( (ChartWithAxes) getModel( ), this, curve.getLineAttributes( ), baseArray, orthogonalArray, bShowAsTape, bDeferred, false ); crdr.draw( ipr ); // Render curve label. if ( curve.getLabel( ).isSetVisible( ) && curve.getLabel( ).isVisible( ) ) { Label lb = curve.getLabel( ); if ( isTransposed ) { // transpose text angel. lb = (Label) EcoreUtil.copy( lb ); double rot = lb.getCaption( ).getFont( ).getRotation( ); if ( rot >= 0 && rot <= 90 ) { rot = -( 90 - rot ); } else if ( rot < 0 && rot >= -90 ) { rot = ( rot + 90 ); } lb.getCaption( ).getFont( ).setRotation( rot ); } BoundingBox bb = Methods.computeBox( getXServer( ), IConstants.LEFT/* DONT-CARE */, lb, 0, 0 ); Anchor lbPosition = curve.getLabelAnchor( ); if ( lbPosition == null ) { lbPosition = Anchor.NORTH_LITERAL; } int horizontal = IConstants.CENTER; int vertical = IConstants.ABOVE; // convert anchor to position. switch ( lbPosition.getValue( ) ) { case Anchor.WEST : case Anchor.NORTH_WEST : case Anchor.SOUTH_WEST : horizontal = IConstants.LEFT; break; case Anchor.NORTH : case Anchor.SOUTH : horizontal = IConstants.CENTER; break; case Anchor.EAST : case Anchor.NORTH_EAST : case Anchor.SOUTH_EAST : horizontal = IConstants.RIGHT; break; } switch ( lbPosition.getValue( ) ) { case Anchor.NORTH : case Anchor.NORTH_WEST : case Anchor.NORTH_EAST : case Anchor.WEST : case Anchor.EAST : vertical = IConstants.ABOVE; break; case Anchor.SOUTH : case Anchor.SOUTH_WEST : case Anchor.SOUTH_EAST : vertical = IConstants.BELOW; break; } double xc, yc; if ( isTransposed ) { if ( horizontal == IConstants.LEFT ) { yc = orthogonalArray[orthogonalArray.length - 1] - bb.getHeight( ); } else if ( horizontal == IConstants.RIGHT ) { yc = orthogonalArray[0] + bb.getHeight()/2d; } else { yc = orthogonalArray[0] + ( orthogonalArray[orthogonalArray.length - 1] - orthogonalArray[0] ) / 2d; } xc = getFitYPosition( orthogonalArray, baseArray, yc, bb.getHeight( ), bb.getWidth( ), vertical == IConstants.BELOW ); } else { if ( horizontal == IConstants.LEFT ) { xc = xArray[0]; } else if ( horizontal == IConstants.RIGHT ) { xc = xArray[xArray.length - 1] - bb.getWidth( ); } else { xc = xArray[0] + ( xArray[xArray.length - 1] - xArray[0] ) / 2d; } yc = getFitYPosition( xArray, fitYarray, xc, bb.getWidth( ), bb.getHeight( ), vertical == IConstants.ABOVE ); } bb.setLeft( xc ); bb.setTop( yc ); if ( ChartUtil.isShadowDefined( lb ) ) { renderLabel( this, TextRenderEvent.RENDER_SHADOW_AT_LOCATION, lb, Position.RIGHT_LITERAL, LocationImpl.create( bb.getLeft( ), bb.getTop( ) ), BoundsImpl.create( bb.getLeft( ), bb.getTop( ), bb.getWidth( ), bb.getHeight( ) ) ); } renderLabel( this, TextRenderEvent.RENDER_TEXT_AT_LOCATION, lb, Position.RIGHT_LITERAL, LocationImpl.create( bb.getLeft( ), bb.getTop( ) ), BoundsImpl.create( bb.getLeft( ), bb.getTop( ), bb.getWidth( ), bb.getHeight( ) ) ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/26bab2242276c724de8507040dbf546567b97fb2/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
14219,
1787,
9423,
12,
467,
9840,
6747,
277,
683,
16,
1082,
202,
2735,
8526,
3143,
16,
22901,
14219,
1787,
8882,
16,
1250,
324,
5706,
1463,
30421,
16,
1082,
202,
6494,
324,
16886,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
16683,
18,
588,
1670,
2498,
12,
262,
18,
291,
694,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
25230,
1360,
16,
6862,
202,
6,
4064,
18,
16683,
18,
1369,
18,
14422,
18,
902,
18,
2178,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
6862,
1082,
202,
588,
1997,
950,
1042,
12,
262,
18,
588,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6494,
353,
1429,
7423,
273,
261,
261,
7984,
1190,
26494,
13,
7454,
12,
262,
262,
18,
291,
1429,
7423,
12,
11272,
202,
202,
430,
261,
8882,
18,
588,
1670,
2498,
12,
262,
18,
291,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
759,
6987,
8882,
18,
1082,
202,
5659,
8526,
619,
1076,
273,
394,
1431,
63,
4139,
18,
2469,
15533,
1082,
202,
5659,
8526,
677,
1076,
273,
394,
1431,
63,
4139,
18,
2469,
15533,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
619,
1076,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
92,
1076,
63,
77,
65,
273,
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,
225,
202,
1117,
727,
918,
1743,
14219,
1787,
9423,
12,
467,
9840,
6747,
277,
683,
16,
1082,
202,
2735,
8526,
3143,
16,
22901,
14219,
1787,
8882,
16,
1250,
324,
5706,
1463,
30421,
16,
1082,
202,
6494,
324,
16886,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
401,
16683,
18,
588,
1670,
2498,
12,
262,
18,
291,
694,
6207,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
25230,
1360,
16,
6862,
202,
6,
4064,
18,
16683,
18,
1369,
18,
14422,
18,
902,
18,
2178,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
2
] |
for(int i=0; i < digest.highest_seqnos.length; i++) digest.highest_seqnos[i]=highest_seqnos[i];
|
for(int i=0; i < digest.highest_seqnos.length; i++) digest.highest_seqnos[i]=highest_seqnos[i];
|
Digest computeMessageDigest(long[] highest_seqnos) { Digest digest=highest_seqnos != null ? new Digest(highest_seqnos.length) : null; Address sender; NakReceiverWindow win; List unstable_msgs; int own_index; long highest_seqno_sent=-1, highest_seqno_received=-1; if(digest == null) { if(Trace.trace) Trace.warn("NAKACK.NAKer.computeMessageDigest()", "highest_seqnos is null, cannot compute digest !"); return null; } if(highest_seqnos.length != members.size()) { if(Trace.trace) Trace.warn("NAKACK.NAKer.computeMessageDigest()", "the mbrship size and the size " + "of the highest_seqnos array are not equal, cannot compute digest !"); return null; } for(int i=0; i < digest.highest_seqnos.length; i++) digest.highest_seqnos[i]=highest_seqnos[i]; for(int i=0; i < highest_seqnos.length; i++) { sender=(Address)members.elementAt(i); if(sender == null) continue; win=(NakReceiverWindow)received_msgs.get(sender); if(win == null) continue; digest.highest_seqnos[i]=win.getHighestReceived(); unstable_msgs=win.getMessagesHigherThan(highest_seqnos[i]); for(Enumeration e=unstable_msgs.elements(); e.hasMoreElements();) digest.msgs.add(e.nextElement()); } /** If our highest seqno <em>sent</em> is higher than the one <em>received</em>, we have to (a) set it in the digest and (b) add the corresponding messages **/ own_index=members.indexOf(local_addr); if(own_index == -1) { if(Trace.trace) Trace.warn("NAKACK.computeMessageDigest()", "no own address in highest_seqnos"); return digest; } highest_seqno_received=digest.highest_seqnos[own_index]; highest_seqno_sent=getHighestSeqnoSent(); if(highest_seqno_sent > highest_seqno_received) { // (a) Set highest seqno sent in digest digest.highest_seqnos[own_index]=highest_seqno_sent; // (b) Add messages between highest_seqno_received and highest_seqno_sent unstable_msgs=getSentMessagesHigherThan(highest_seqno_received); for(Enumeration e=unstable_msgs.elements(); e.hasMoreElements();) digest.msgs.add(e.nextElement()); } return digest; }
|
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/3a7a5d6ef9a8f574da3e45b696950d0b4bb12acc/NAKACK.java/clean/src/org/jgroups/protocols/NAKACK.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
9568,
3671,
1079,
9568,
12,
5748,
8526,
9742,
67,
5436,
18050,
13,
288,
202,
565,
15864,
2398,
5403,
33,
8766,
395,
67,
5436,
18050,
480,
446,
692,
394,
15864,
12,
8766,
395,
67,
5436,
18050,
18,
2469,
13,
294,
446,
31,
202,
565,
5267,
5411,
5793,
31,
202,
565,
423,
581,
12952,
3829,
225,
5657,
31,
202,
565,
987,
9079,
640,
15021,
67,
27439,
31,
202,
565,
509,
7734,
4953,
67,
1615,
31,
202,
565,
1525,
9079,
9742,
67,
5436,
2135,
67,
7569,
29711,
21,
16,
9742,
67,
5436,
2135,
67,
15213,
29711,
21,
31,
202,
565,
309,
12,
10171,
422,
446,
13,
288,
202,
202,
430,
12,
3448,
18,
5129,
13,
1082,
565,
2677,
18,
8935,
2932,
11277,
47,
3649,
18,
11277,
47,
264,
18,
9200,
1079,
9568,
1435,
3113,
9506,
4202,
315,
8766,
395,
67,
5436,
18050,
353,
446,
16,
2780,
3671,
5403,
401,
8863,
202,
202,
2463,
446,
31,
202,
565,
289,
202,
565,
309,
12,
8766,
395,
67,
5436,
18050,
18,
2469,
480,
4833,
18,
1467,
10756,
288,
202,
202,
430,
12,
3448,
18,
5129,
13,
1082,
565,
2677,
18,
8935,
2932,
11277,
47,
3649,
18,
11277,
47,
264,
18,
9200,
1079,
9568,
1435,
3113,
9506,
4202,
315,
5787,
312,
2848,
3261,
963,
471,
326,
963,
315,
397,
9506,
4202,
315,
792,
326,
9742,
67,
5436,
18050,
526,
854,
486,
3959,
16,
2780,
3671,
5403,
401,
8863,
202,
202,
2463,
446,
31,
202,
565,
289,
202,
565,
364,
12,
474,
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,
225,
202,
9568,
3671,
1079,
9568,
12,
5748,
8526,
9742,
67,
5436,
18050,
13,
288,
202,
565,
15864,
2398,
5403,
33,
8766,
395,
67,
5436,
18050,
480,
446,
692,
394,
15864,
12,
8766,
395,
67,
5436,
18050,
18,
2469,
13,
294,
446,
31,
202,
565,
5267,
5411,
5793,
31,
202,
565,
423,
581,
12952,
3829,
225,
5657,
31,
202,
565,
987,
9079,
640,
15021,
67,
27439,
31,
202,
565,
509,
7734,
4953,
67,
1615,
31,
202,
565,
1525,
9079,
9742,
67,
5436,
2135,
67,
7569,
29711,
21,
16,
9742,
67,
5436,
2135,
67,
15213,
29711,
21,
31,
202,
565,
309,
12,
10171,
422,
446,
13,
288,
202,
202,
430,
12,
3448,
18,
5129,
13,
1082,
565,
2677,
18,
8935,
2
] |
windowManager.add(newWindow);
|
Platform.endSplash();
|
public void run(IProgressMonitor monitor) { monitor.beginTask(WorkbenchMessages.Restoring_Workspace, expectedProgressCount); // hide splash screen now that we are showing progress. // Assuming that Platform.endSplash() is idempotent. Platform.endSplash(); IMemento childMem; try { UIStats.start(UIStats.RESTORE_WORKBENCH, "MRUList"); //$NON-NLS-1$ IMemento mruMemento = memento .getChild(IWorkbenchConstants.TAG_MRU_LIST); //$NON-NLS-1$ if (mruMemento != null) { result.add(getEditorHistory().restoreState(mruMemento)); } } finally { UIStats.end(UIStats.RESTORE_WORKBENCH, this, "MRUList"); //$NON-NLS-1$ } // Restore advisor state. IMemento advisorState = memento .getChild(IWorkbenchConstants.TAG_WORKBENCH_ADVISOR); if (advisorState != null) result.add(getAdvisor().restoreState(advisorState)); // Get the child windows. IMemento[] children = memento .getChildren(IWorkbenchConstants.TAG_WINDOW); newWindowHolder[0] = new WorkbenchWindow[children.length]; // Read the workbench windows. for (int x = 0; x < children.length; x++) { childMem = children[x]; WorkbenchWindow newWindow = newWorkbenchWindow(); newWindowHolder[0][x] = newWindow; newWindow.create(); // allow the application to specify an initial perspective to open // @issue temporary workaround for ignoring initial perspective // String initialPerspectiveId = // getAdvisor().getInitialWindowPerspectiveId(); // if (initialPerspectiveId != null) { // IPerspectiveDescriptor desc = // getPerspectiveRegistry().findPerspectiveWithId(initialPerspectiveId); // result.merge(newWindow.restoreState(childMem, desc)); // } // add the window so that any work done in newWindow.restoreState // that relies on Workbench methods has windows to work with windowManager.add(newWindow); // now that we've added it to the window manager we need to listen // for any exception that might hose us before we get a chance to // open it. If one occurs, remove the new window from the manager. // Assume that the new window is a phantom for now boolean restored = false; try { result.merge(newWindow.restoreState(childMem, null)); try { newWindow.fireWindowRestored(); } catch (WorkbenchException e) { result.add(e.getStatus()); } // everything worked so far, don't close now restored = true; } finally { if (!restored) { // null the window in newWindowHolder so that it won't be opened later on newWindowHolder[0][x] = null; newWindow.close(); } } } IProgressMonitor progressMonitor = progressMonitorDialog.getProgressMonitor(); progressMonitor.subTask(WorkbenchMessages.Restoring_Done); int remainingWork = expectedProgressCount - Math.min(progressCount, (int)(expectedProgressCount * cutoff)); progressMonitor.worked(remainingWork); progressMonitor.done(); }});
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2869f33b39c625be1b79fa0ccc6f4b56aff3ef7e/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
5188,
6053,
67,
8241,
16,
2665,
5491,
1380,
1769,
6862,
25083,
202,
759,
6853,
6121,
961,
5518,
2037,
716,
732,
854,
17253,
4007,
18,
6862,
202,
759,
4725,
21249,
716,
11810,
18,
409,
16881,
961,
1435,
353,
27959,
18,
6862,
202,
8201,
18,
409,
16881,
961,
5621,
6862,
25083,
202,
3445,
820,
83,
1151,
3545,
31,
6862,
202,
698,
288,
25083,
202,
5370,
4195,
18,
1937,
12,
5370,
4195,
18,
12030,
8607,
67,
10566,
38,
1157,
1792,
16,
315,
49,
19866,
682,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
3445,
820,
83,
312,
8653,
49,
820,
83,
273,
312,
820,
83,
25083,
202,
18,
588,
1763,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
49,
19866,
67,
7085,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
430,
261,
81,
8653,
49,
820,
83,
480,
446,
13,
288,
6862,
1082,
202,
2088,
18,
1289,
12,
588,
6946,
5623,
7675,
13991,
1119,
12,
81,
8653,
49,
820,
83,
10019,
25083,
202,
97,
6862,
202,
97,
3095,
288,
25083,
202,
5370,
4195,
18,
409,
12,
5370,
4195,
18,
12030,
8607,
67,
10566,
38,
1157,
1792,
16,
333,
16,
315,
49,
19866,
682,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
97,
6862,
25083,
202,
759,
11197,
1261,
10227,
919,
18,
6862,
202,
3445,
820,
83,
1261,
10227,
1119,
273,
312,
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,
4697,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
5188,
6053,
67,
8241,
16,
2665,
5491,
1380,
1769,
6862,
25083,
202,
759,
6853,
6121,
961,
5518,
2037,
716,
732,
854,
17253,
4007,
18,
6862,
202,
759,
4725,
21249,
716,
11810,
18,
409,
16881,
961,
1435,
353,
27959,
18,
6862,
202,
8201,
18,
409,
16881,
961,
5621,
6862,
25083,
202,
3445,
820,
83,
1151,
3545,
31,
6862,
202,
698,
288,
25083,
202,
5370,
4195,
18,
1937,
12,
5370,
4195,
18,
12030,
8607,
67,
10566,
38,
1157,
1792,
16,
315,
49,
19866,
682,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
3445,
820,
83,
312,
2
] |
DOMMessageFormatter.DOM_DOMAIN, "NullLocalElementName", new Object[]{element.getNodeName()});
|
DOMMessageFormatter.DOM_DOMAIN, "NullLocalElementName", new Object[]{element.getNodeName()});
|
protected final void namespaceFixUp (ElementImpl element, AttributeMap attributes){ if (DEBUG) { System.out.println("[ns-fixup] element:" +element.getNodeName()+ " uri: "+element.getNamespaceURI()); } // ------------------------------------ // pick up local namespace declarations // <xsl:stylesheet xmlns:xsl="http://xslt"> // <!-- add the following via DOM // body is bound to http://xslt // --> // <xsl:body xmlns:xsl="http://bound"/> // // ------------------------------------ String value, name, uri, prefix; if (attributes != null) { // Record all valid local declarations for (int k=0; k < attributes.getLength(); k++) { Attr attr = (Attr)attributes.getItem(k); //do the name check only when version of the document was changed & //application has set the value of well-formed features to true if ( ((fConfiguration.features & DOMConfigurationImpl.WELLFORMED) != 0) && fDocument.isXMLVersionChanged()){ //checkQName does checking based on the version of the document fDocument.checkQName(attr.getPrefix() , attr.getLocalName()) ; } uri = attr.getNamespaceURI(); if (uri != null && uri.equals(NamespaceContext.XMLNS_URI)) { // namespace attribute value = attr.getNodeValue(); if (value == null) { value=XMLSymbols.EMPTY_STRING; } // Check for invalid namespace declaration: if (value.equals(NamespaceContext.XMLNS_URI)) { //A null value for locale is passed to formatMessage, //which means that the default locale will be used fLocator.fRelatedNode = attr; String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.XML_DOMAIN,"CantBindXMLNS",null ); reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_ERROR, "CantBindXMLNS"); } else { // XML 1.0 Attribute value normalization // value = normalizeAttributeValue(value, attr); prefix = attr.getPrefix(); prefix = (prefix == null || prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix); String localpart = fSymbolTable.addSymbol( attr.getLocalName()); if (prefix == XMLSymbols.PREFIX_XMLNS) { //xmlns:prefix value = fSymbolTable.addSymbol(value); if (value.length() != 0) { fNamespaceContext.declarePrefix(localpart, value); } else { // REVISIT: issue error on invalid declarations // xmlns:foo = "" } //removeDefault (attr, attributes); continue; } else { // (localpart == fXmlnsSymbol && prefix == fEmptySymbol) -- xmlns // empty prefix is always bound ("" or some string) value = fSymbolTable.addSymbol(value); fNamespaceContext.declarePrefix(XMLSymbols.EMPTY_STRING, value); //removeDefault (attr, attributes); continue; } } // end-else: valid declaration } // end-if: namespace attribute } } // --------------------------------------------------------- // Fix up namespaces for element: per DOM L3 // Need to consider the following cases: // // case 1: <xsl:stylesheet xmlns:xsl="http://xsl"> // We create another element body bound to the "http://xsl" namespace // as well as namespace attribute rebounding xsl to another namespace. // <xsl:body xmlns:xsl="http://another"> // Need to make sure that the new namespace decl value is changed to // "http://xsl" // // --------------------------------------------------------- // check if prefix/namespace is correct for current element // --------------------------------------------------------- uri = element.getNamespaceURI(); prefix = element.getPrefix(); if (uri != null) { // Element has a namespace uri = fSymbolTable.addSymbol(uri); prefix = (prefix == null || prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix); if (fNamespaceContext.getURI(prefix) == uri) { // The xmlns:prefix=namespace or xmlns="default" was declared at parent. // The binder always stores mapping of empty prefix to "". } else { // the prefix is either undeclared // or // conflict: the prefix is bound to another URI addNamespaceDecl(prefix, uri, element); fLocalNSBinder.declarePrefix(prefix, uri); fNamespaceContext.declarePrefix(prefix, uri); } } else { // Element has no namespace if (element.getLocalName() == null) { // Error: DOM Level 1 node! if (fNamespaceValidation) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NullLocalElementName", new Object[]{element.getNodeName()}); reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_FATAL_ERROR, "NullLocalElementName"); } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NullLocalElementName", new Object[]{element.getNodeName()}); reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_ERROR, "NullLocalElementName"); } } else { // uri=null and no colon (DOM L2 node) uri = fNamespaceContext.getURI(XMLSymbols.EMPTY_STRING); if (uri !=null && uri.length() > 0) { // undeclare default namespace declaration (before that element // bound to non-zero length uir), but adding xmlns="" decl addNamespaceDecl (XMLSymbols.EMPTY_STRING, XMLSymbols.EMPTY_STRING, element); fLocalNSBinder.declarePrefix(XMLSymbols.EMPTY_STRING, XMLSymbols.EMPTY_STRING); fNamespaceContext.declarePrefix(XMLSymbols.EMPTY_STRING, XMLSymbols.EMPTY_STRING); } } } // ----------------------------------------- // Fix up namespaces for attributes: per DOM L3 // check if prefix/namespace is correct the attributes // ----------------------------------------- if (attributes != null) { // clone content of the attributes attributes.cloneMap(fAttributeList); for (int i = 0; i < fAttributeList.size(); i++) { Attr attr = (Attr) fAttributeList.elementAt(i); fLocator.fRelatedNode = attr; if (DEBUG) { System.out.println("==>[ns-fixup] process attribute: "+attr.getNodeName()); } // normalize attribute value attr.normalize(); value = attr.getValue(); name = attr.getNodeName(); uri = attr.getNamespaceURI(); // make sure that value is never null. if (value == null) { value=XMLSymbols.EMPTY_STRING; } if (uri != null) { // attribute has namespace !=null prefix = attr.getPrefix(); prefix = (prefix == null || prefix.length() == 0) ? XMLSymbols.EMPTY_STRING :fSymbolTable.addSymbol(prefix); /*String localpart =*/ fSymbolTable.addSymbol( attr.getLocalName()); // --------------------------------------- // skip namespace declarations // --------------------------------------- // REVISIT: can we assume that "uri" is from some symbol // table, and compare by reference? -SG if (uri != null && uri.equals(NamespaceContext.XMLNS_URI)) { continue; } //--------------------------------------- // check if value of the attribute is namespace well-formed //--------------------------------------- if ( ((fConfiguration.features & DOMConfigurationImpl.WELLFORMED) != 0)){ isAttrValueWF(fErrorHandler, fError, fLocator, attributes, (AttrImpl)attr, attr.getValue(), fDocument.isXML11Version()); if (fDocument.isXMLVersionChanged()){ boolean wellformed=CoreDocumentImpl.isXMLName(attr.getNodeName() , fDocument.isXML11Version()); if (!wellformed){ String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "wf-invalid-character-in-node-name", new Object[]{"Attribute", attr.getNodeName()}); reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_ERROR, "wf-invalid-character-in-node-name"); } } } // --------------------------------------- // remove default attributes // --------------------------------------- /* if (removeDefault(attr, attributes)) { continue; } */ // XML 1.0 Attribute value normalization //value = normalizeAttributeValue(value, attr); // reset id-attributes ((AttrImpl)attr).setIdAttribute(false); uri = fSymbolTable.addSymbol(uri); // find if for this prefix a URI was already declared String declaredURI = fNamespaceContext.getURI(prefix); if (prefix == XMLSymbols.EMPTY_STRING || declaredURI != uri) { // attribute has no prefix (default namespace decl does not apply to attributes) // OR // attribute prefix is not declared // OR // conflict: attribute has a prefix that conficlicts with a binding // already active in scope name = attr.getNodeName(); // Find if any prefix for attributes namespace URI is available // in the scope String declaredPrefix = fNamespaceContext.getPrefix(uri); if (declaredPrefix !=null && declaredPrefix !=XMLSymbols.EMPTY_STRING) { // use the prefix that was found (declared previously for this URI prefix = declaredPrefix; } else { if (prefix != XMLSymbols.EMPTY_STRING && fLocalNSBinder.getURI(prefix) == null) { // the current prefix is not null and it has no in scope declaration // use this prefix } else { // find a prefix following the pattern "NS" +index (starting at 1) // make sure this prefix is not declared in the current scope. int counter = 1; prefix = fSymbolTable.addSymbol(PREFIX +counter++); while (fLocalNSBinder.getURI(prefix)!=null) { prefix = fSymbolTable.addSymbol(PREFIX +counter++); } } // add declaration for the new prefix addNamespaceDecl(prefix, uri, element); value = fSymbolTable.addSymbol(value); fLocalNSBinder.declarePrefix(prefix, value); fNamespaceContext.declarePrefix(prefix, uri); } // change prefix for this attribute attr.setPrefix(prefix); } } else { // attribute uri == null // XML 1.0 Attribute value normalization //value = normalizeAttributeValue(value, attr); // reset id-attributes ((AttrImpl)attr).setIdAttribute(false); if (attr.getLocalName() == null) { // It is an error if document has DOM L1 nodes. if (fNamespaceValidation) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NullLocalAttrName", new Object[]{attr.getNodeName()}); reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_FATAL_ERROR, "NullLocalAttrName"); } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "NullLocalAttrName", new Object[]{attr.getNodeName()}); reportDOMError(fErrorHandler, fError, fLocator, msg, DOMError.SEVERITY_ERROR, "NullLocalAttrName"); } } else { // uri=null and no colon // no fix up is needed: default namespace decl does not // --------------------------------------- // remove default attributes // --------------------------------------- // removeDefault(attr, attributes); } } } } // end loop for attributes }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/a4d6c420fdd8b66d5ea1b7e08f0a6fbcc432e4d6/DOMNormalizer.java/buggy/src/org/apache/xerces/dom/DOMNormalizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1981,
8585,
1211,
261,
1046,
2828,
930,
16,
3601,
863,
1677,
15329,
3639,
309,
261,
9394,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
63,
2387,
17,
904,
416,
65,
930,
2773,
397,
2956,
18,
588,
18948,
1435,
15,
1171,
9079,
315,
2003,
30,
13773,
2956,
18,
588,
3402,
3098,
10663,
3639,
289,
3639,
368,
19134,
6062,
3639,
368,
6002,
731,
1191,
1981,
12312,
3639,
368,
411,
30903,
30,
19403,
12302,
30,
30903,
1546,
2505,
2207,
92,
14414,
6441,
3639,
368,
282,
5719,
413,
527,
326,
3751,
3970,
4703,
540,
368,
1850,
1417,
353,
2489,
358,
1062,
2207,
92,
14414,
3639,
368,
565,
15431,
3639,
368,
282,
411,
30903,
30,
3432,
12302,
30,
30903,
1546,
2505,
2207,
3653,
6,
21259,
3639,
368,
3639,
368,
19134,
6062,
3639,
514,
460,
16,
508,
16,
2003,
16,
1633,
31,
3639,
309,
261,
4350,
480,
446,
13,
288,
5411,
368,
5059,
777,
923,
1191,
12312,
5411,
364,
261,
474,
417,
33,
20,
31,
417,
411,
1677,
18,
588,
1782,
5621,
417,
27245,
288,
7734,
11289,
1604,
273,
261,
3843,
13,
4350,
18,
588,
1180,
12,
79,
1769,
1171,
9079,
368,
2896,
326,
508,
866,
1338,
1347,
1177,
434,
326,
1668,
1703,
3550,
473,
7734,
368,
3685,
711,
444,
326,
460,
434,
5492,
17,
7312,
4467,
358,
638,
7734,
309,
261,
14015,
74,
1750,
18,
7139,
473,
4703,
1750,
2828,
18,
59,
21943,
7473,
25773,
13,
480,
374,
13,
597,
5397,
284,
2519,
18,
291,
4201,
1444,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1981,
8585,
1211,
261,
1046,
2828,
930,
16,
3601,
863,
1677,
15329,
3639,
309,
261,
9394,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
63,
2387,
17,
904,
416,
65,
930,
2773,
397,
2956,
18,
588,
18948,
1435,
15,
1171,
9079,
315,
2003,
30,
13773,
2956,
18,
588,
3402,
3098,
10663,
3639,
289,
3639,
368,
19134,
6062,
3639,
368,
6002,
731,
1191,
1981,
12312,
3639,
368,
411,
30903,
30,
19403,
12302,
30,
30903,
1546,
2505,
2207,
92,
14414,
6441,
3639,
368,
282,
5719,
413,
527,
326,
3751,
3970,
4703,
540,
368,
1850,
1417,
353,
2489,
358,
1062,
2207,
92,
14414,
3639,
368,
565,
15431,
3639,
368,
282,
411,
30903,
30,
3432,
12302,
30,
30903,
2
] |
this.count += found;
|
this.count += (found >= 0) ? found : 0;
|
public int read(byte[] b) throws IOException { int found = super.read(b); this.count += found; return found; }
|
56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/abac60a68c3519c6090bb91ec0aefa10acfee345/CountingInputStream.java/clean/src/java/org/apache/commons/io/input/CountingInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
855,
12,
7229,
8526,
324,
13,
1216,
1860,
288,
3639,
509,
1392,
273,
2240,
18,
896,
12,
70,
1769,
3639,
333,
18,
1883,
1011,
261,
7015,
1545,
374,
13,
692,
1392,
294,
374,
31,
3639,
327,
1392,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
855,
12,
7229,
8526,
324,
13,
1216,
1860,
288,
3639,
509,
1392,
273,
2240,
18,
896,
12,
70,
1769,
3639,
333,
18,
1883,
1011,
261,
7015,
1545,
374,
13,
692,
1392,
294,
374,
31,
3639,
327,
1392,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.