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 |
|---|---|---|---|---|---|---|
public void setPanels(Vector tablePanels) { tPanels = tablePanels; String rowString = "pref"; for(int i = 0; i < tablePanels.size();i++) { rowString = rowString + ", 5dlu, pref"; } ScrollablePanel contentPanel = new ScrollablePanel(); FormLayout panelLayout = new FormLayout( "5dlu, pref:grow, 5dlu", rowString); contentPanel.setLayout(panelLayout); CellConstraints cc = new CellConstraints(); contentPanel.add(titlePanel, cc.xyw(1,1,3)); for(int i = 0;i < tablePanels.size();i++) { MetadataPane.TablePanel tableP = (MetadataPane.TablePanel) tablePanels.get(i); tableP.tableName.setForeground(TEXT_COLOR); tableP.addButton.setVisible(false); tableP.delButton.setVisible(false); tableP.tHead.setVisible(false); tableP.table.setVisible(false); if(tableP.imageLabel != null) tableP.imageLabel.setVisible(false); contentPanel.add( tableP, cc.xy(2,(2*i)+3)); } setViewportView(contentPanel); }
|
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/557a93a201e2f0530cb2de2bc8c33b83b9b8b97f/NotePane.java/buggy/loci/ome/notebook/NotePane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5537,
87,
12,
5018,
1014,
5537,
87,
13,
288,
565,
268,
5537,
87,
273,
1014,
5537,
87,
31,
1377,
514,
1027,
780,
273,
315,
25724,
14432,
565,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1014,
5537,
87,
18,
1467,
5621,
77,
27245,
288,
377,
202,
492,
780,
273,
1027,
780,
397,
3104,
1381,
5761,
89,
16,
11307,
14432,
565,
289,
5411,
23134,
429,
5537,
913,
5537,
273,
394,
23134,
429,
5537,
5621,
565,
2748,
3744,
6594,
3744,
273,
394,
2748,
3744,
12,
1377,
315,
25,
5761,
89,
16,
11307,
30,
75,
492,
16,
1381,
5761,
89,
3113,
1377,
1027,
780,
1769,
565,
913,
5537,
18,
542,
3744,
12,
13916,
3744,
1769,
565,
8614,
4878,
4946,
273,
394,
8614,
4878,
5621,
3639,
913,
5537,
18,
1289,
12,
2649,
5537,
16,
4946,
18,
1698,
91,
12,
21,
16,
21,
16,
23,
10019,
21114,
225,
364,
12,
474,
277,
273,
374,
31,
77,
411,
1014,
5537,
87,
18,
1467,
5621,
77,
27245,
288,
202,
282,
202,
2277,
8485,
18,
1388,
5537,
1014,
52,
273,
261,
2277,
8485,
18,
1388,
5537,
13,
3196,
21114,
225,
1014,
5537,
87,
18,
588,
12,
77,
1769,
202,
282,
202,
2121,
52,
18,
18033,
18,
542,
23206,
12,
5151,
67,
10989,
1769,
202,
282,
202,
2121,
52,
18,
1289,
3616,
18,
542,
6207,
12,
5743,
1769,
202,
282,
202,
2121,
52,
18,
3771,
3616,
18,
542,
6207,
12,
5743,
1769,
202,
282,
202,
2121,
52,
18,
88,
1414,
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,
444,
5537,
87,
12,
5018,
1014,
5537,
87,
13,
288,
565,
268,
5537,
87,
273,
1014,
5537,
87,
31,
1377,
514,
1027,
780,
273,
315,
25724,
14432,
565,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1014,
5537,
87,
18,
1467,
5621,
77,
27245,
288,
377,
202,
492,
780,
273,
1027,
780,
397,
3104,
1381,
5761,
89,
16,
11307,
14432,
565,
289,
5411,
23134,
429,
5537,
913,
5537,
273,
394,
23134,
429,
5537,
5621,
565,
2748,
3744,
6594,
3744,
273,
394,
2748,
3744,
12,
1377,
315,
25,
5761,
89,
16,
11307,
30,
75,
492,
16,
1381,
5761,
89,
3113,
1377,
1027,
780,
1769,
565,
913,
5537,
18,
542,
3744,
12,
13916,
3744,
1769,
565,
8614,
2
] |
||
private boolean storeRuleSelection() { log.debug("Storing the rule selection"); boolean flNeedRebuild = false; IResource resource = (IResource) getElement().getAdapter(IResource.class); if (resource != null) { RuleSet activeRuleSet = PMDPlugin.getDefault().getRuleSetForResourceFromProperties(resource, true); Set activeRules = null; activeRules = activeRuleSet.getRules(); RuleSet selectedRuleSet = new RuleSet(); TableItem[] rulesList = availableRulesTableViewer.getTable().getItems(); for (int i = 0; i < rulesList.length; i++) { if (rulesList[i].getChecked()) { Rule rule = (Rule) rulesList[i].getData(); selectedRuleSet.addRule(rule); log.debug("Adding rule " + rule.getName() + " in the active ruleset"); if (!flNeedRebuild && (!activeRules.contains(rule))) { flNeedRebuild = true; } } } log.debug("Ask to store the rule selection for resource " + resource.getName()); PMDPlugin.getDefault().storeRuleSetForResource(resource, selectedRuleSet); if (!flNeedRebuild) { Iterator i = activeRules.iterator(); Set selectedRules = selectedRuleSet.getRules(); while ((i.hasNext()) && (!flNeedRebuild)) { Rule rule = (Rule) i.next(); if (!selectedRules.contains(rule)) { flNeedRebuild = true; } } } } return flNeedRebuild; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/ef5e80ccd5dbd456db3b1859b4ffb347a2690e4d/PMDPropertyPage.java/clean/pmd-eclipse/src/net/sourceforge/pmd/eclipse/properties/PMDPropertyPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1707,
2175,
6233,
1435,
288,
3639,
613,
18,
4148,
2932,
510,
6053,
326,
1720,
4421,
8863,
3639,
1250,
1183,
14112,
426,
3510,
273,
629,
31,
3639,
467,
1420,
1058,
273,
261,
45,
1420,
13,
7426,
7675,
588,
4216,
12,
45,
1420,
18,
1106,
1769,
3639,
309,
261,
3146,
480,
446,
13,
288,
5411,
6781,
694,
2695,
21474,
273,
453,
6188,
3773,
18,
588,
1868,
7675,
588,
21474,
20977,
1265,
2297,
12,
3146,
16,
638,
1769,
5411,
1000,
2695,
4478,
273,
446,
31,
5411,
2695,
4478,
273,
2695,
21474,
18,
588,
4478,
5621,
5411,
6781,
694,
3170,
21474,
273,
394,
6781,
694,
5621,
5411,
3555,
1180,
8526,
2931,
682,
273,
2319,
4478,
1388,
18415,
18,
588,
1388,
7675,
588,
3126,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2931,
682,
18,
2469,
31,
277,
27245,
288,
7734,
309,
261,
7482,
682,
63,
77,
8009,
588,
11454,
10756,
288,
10792,
6781,
1720,
273,
261,
2175,
13,
2931,
682,
63,
77,
8009,
588,
751,
5621,
10792,
3170,
21474,
18,
1289,
2175,
12,
5345,
1769,
10792,
613,
18,
4148,
2932,
13962,
1720,
315,
397,
1720,
18,
17994,
1435,
397,
315,
316,
326,
2695,
25303,
8863,
10792,
309,
16051,
2242,
14112,
426,
3510,
597,
16051,
3535,
4478,
18,
12298,
12,
5345,
20349,
288,
13491,
1183,
14112,
426,
3510,
273,
638,
31,
10792,
289,
7734,
289,
5411,
289,
13491,
613,
18,
4148,
2932,
23663,
358,
1707,
326,
1720,
4421,
364,
1058,
315,
397,
1058,
18,
17994,
10663,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1707,
2175,
6233,
1435,
288,
3639,
613,
18,
4148,
2932,
510,
6053,
326,
1720,
4421,
8863,
3639,
1250,
1183,
14112,
426,
3510,
273,
629,
31,
3639,
467,
1420,
1058,
273,
261,
45,
1420,
13,
7426,
7675,
588,
4216,
12,
45,
1420,
18,
1106,
1769,
3639,
309,
261,
3146,
480,
446,
13,
288,
5411,
6781,
694,
2695,
21474,
273,
453,
6188,
3773,
18,
588,
1868,
7675,
588,
21474,
20977,
1265,
2297,
12,
3146,
16,
638,
1769,
5411,
1000,
2695,
4478,
273,
446,
31,
5411,
2695,
4478,
273,
2695,
21474,
18,
588,
4478,
5621,
5411,
6781,
694,
3170,
21474,
273,
394,
6781,
694,
5621,
5411,
3555,
1180,
8526,
2931,
682,
273,
2319,
4478,
1388,
18415,
18,
588,
1388,
2
] |
||
if (!mCurCardPanel.onNext())
|
if (!mCurCardPanel.onNext()) { mNextBt.setEnabled(next); mBackBt.setEnabled(back); mCancelBt.setEnabled(cancel);
|
public void actionPerformed(final ActionEvent e) { new Thread(new Runnable() { public void run() { boolean next = mNextBt.isEnabled(); boolean back = mBackBt.isEnabled(); boolean cancel = mCancelBt.isEnabled(); mNextBt.setEnabled(false); mBackBt.setEnabled(false); mCancelBt.setEnabled(false); Object o = e.getSource(); if (o == mBackBt) { if (mCurCardPanel == mFinishedPanel) { mCancelBt.setVisible(true); mNextBt.setText(mLocalizer.msg("next", "next") + " >>"); } if (!mCurCardPanel.onPrev()) return; mCurCardPanel = mCurCardPanel.getPrev(); CardLayout cl = (CardLayout) mCardPn.getLayout(); mCurCardPanel.onShow(); cl.show(mCardPn, mCurCardPanel.toString()); mCancelBt.setEnabled(true); } else if (o == mNextBt) { if (mCurCardPanel == mFinishedPanel) { tvbrowser.core.Settings.propShowAssistant.setBoolean(false); setVisible(false); } else { if (!mCurCardPanel.onNext()) return; mCurCardPanel = mCurCardPanel.getNext(); CardLayout cl = (CardLayout) mCardPn.getLayout(); mCurCardPanel.onShow(); cl.show(mCardPn, mCurCardPanel.toString()); mCancelBt.setEnabled(true); if (mCurCardPanel == mFinishedPanel) { mCancelBt.setVisible(false); mNextBt.setText(mLocalizer.msg("finish", "Finish")); mNextBt.setEnabled(true); mBackBt.setEnabled(true); } } } else if (o == mCancelBt) { cancel(); mNextBt.setEnabled(next); mBackBt.setEnabled(back); mCancelBt.setEnabled(cancel); } } }).start(); }
|
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/e29becadd9f68b3c73b9b3a6ad1a4d4c98b9826d/ConfigAssistant.java/clean/tvbrowser/src/tvbrowser/ui/configassistant/ConfigAssistant.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
6385,
19641,
425,
13,
288,
565,
394,
4884,
12,
2704,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
1250,
1024,
273,
312,
2134,
38,
88,
18,
291,
1526,
5621,
3639,
1250,
1473,
273,
312,
2711,
38,
88,
18,
291,
1526,
5621,
3639,
1250,
3755,
273,
312,
6691,
38,
88,
18,
291,
1526,
5621,
3639,
312,
2134,
38,
88,
18,
542,
1526,
12,
5743,
1769,
3639,
312,
2711,
38,
88,
18,
542,
1526,
12,
5743,
1769,
3639,
312,
6691,
38,
88,
18,
542,
1526,
12,
5743,
1769,
7734,
1033,
320,
273,
425,
18,
588,
1830,
5621,
3639,
309,
261,
83,
422,
312,
2711,
38,
88,
13,
288,
1850,
309,
261,
81,
2408,
6415,
5537,
422,
312,
10577,
5537,
13,
288,
5411,
312,
6691,
38,
88,
18,
542,
6207,
12,
3767,
1769,
5411,
312,
2134,
38,
88,
18,
542,
1528,
12,
81,
2042,
1824,
18,
3576,
2932,
4285,
3113,
315,
4285,
7923,
397,
315,
1671,
8863,
1850,
289,
1850,
309,
16051,
81,
2408,
6415,
5537,
18,
265,
9958,
10756,
5411,
327,
31,
1850,
312,
2408,
6415,
5537,
273,
312,
2408,
6415,
5537,
18,
588,
9958,
5621,
1850,
14338,
3744,
927,
273,
261,
6415,
3744,
13,
312,
6415,
52,
82,
18,
588,
3744,
5621,
1850,
312,
2408,
6415,
5537,
18,
265,
5706,
5621,
1850,
927,
18,
4500,
12,
81,
6415,
52,
82,
16,
312,
2408,
6415,
5537,
18,
10492,
10663,
1850,
312,
6691,
38,
88,
18,
542,
1526,
12,
3767,
1769,
3639,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
6385,
19641,
425,
13,
288,
565,
394,
4884,
12,
2704,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
1250,
1024,
273,
312,
2134,
38,
88,
18,
291,
1526,
5621,
3639,
1250,
1473,
273,
312,
2711,
38,
88,
18,
291,
1526,
5621,
3639,
1250,
3755,
273,
312,
6691,
38,
88,
18,
291,
1526,
5621,
3639,
312,
2134,
38,
88,
18,
542,
1526,
12,
5743,
1769,
3639,
312,
2711,
38,
88,
18,
542,
1526,
12,
5743,
1769,
3639,
312,
6691,
38,
88,
18,
542,
1526,
12,
5743,
1769,
7734,
1033,
320,
273,
425,
18,
588,
1830,
5621,
3639,
309,
261,
83,
422,
312,
2711,
38,
88,
13,
288,
1850,
309,
261,
81,
2408,
6415,
2
] |
public org.quickfix.field.UnderlyingSymbolSfx getUnderlyingSymbolSfx() throws FieldNotFound { org.quickfix.field.UnderlyingSymbolSfx value = new org.quickfix.field.UnderlyingSymbolSfx();
|
public quickfix.field.UnderlyingSymbolSfx getUnderlyingSymbolSfx() throws FieldNotFound { quickfix.field.UnderlyingSymbolSfx value = new quickfix.field.UnderlyingSymbolSfx();
|
public org.quickfix.field.UnderlyingSymbolSfx getUnderlyingSymbolSfx() throws FieldNotFound { org.quickfix.field.UnderlyingSymbolSfx value = new org.quickfix.field.UnderlyingSymbolSfx(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
5335,
55,
19595,
10833,
765,
6291,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
5335,
55,
19595,
10833,
765,
6291,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
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
] |
DOC_TEST_FILE_UPLOAD_DOC_TYPE, DOC_TEST_BROWSER_DOC_TYPE, DOC_TEST_FRAMESET_DOC_TYPE, DOC_TEST_URL_DOC_TYPE };
|
DOC_TEST_FILE_UPLOAD_ID, DOC_TEST_BROWSER_ID, DOC_TEST_FRAMESET_ID, DOC_TEST_URL_ID };
|
public void test_sproc_copyDocs() { int[] documentsToBeCopied = new int[]{ DOC_TEST_SECOND_ID, DOC_TEST_FILE_UPLOAD_DOC_TYPE, DOC_TEST_BROWSER_DOC_TYPE, DOC_TEST_FRAMESET_DOC_TYPE, DOC_TEST_URL_DOC_TYPE }; int menu_id = 1; String copyPrefix = "Kopierat document"; for( int i = 0; i < databaseServices.length; i++ ) { DatabaseService databaseService = databaseServices[i]; DatabaseService.PartOfTable_document[] documentForUserBefore = databaseService.sproc_getDocs( USER_ADMIN_ID, DOC_TEST_FIRST_ID, DOC_ONE_MORE_THAN_EXISTS_IN_SYSTEM_ID ); int[] result = databaseService.sproc_copyDocs( DOC_TEST_FIRST_ID, menu_id, USER_ADMIN_ID, documentsToBeCopied, copyPrefix ); assertEquals( 1, result.length ); DatabaseService.PartOfTable_document[] documentForUserAfter = databaseService.sproc_getDocs( USER_ADMIN_ID, DOC_TEST_FIRST_ID, DOC_ONE_MORE_THAN_EXISTS_IN_SYSTEM_ID ); assertEquals( documentForUserBefore.length + documentsToBeCopied.length - result.length, documentForUserAfter.length ); } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/18d858d81637b83fdc76f5367d317659f9559af4/TestDatabaseService.java/clean/server/src/imcode/server/db/TestDatabaseService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
87,
9381,
67,
3530,
12656,
1435,
288,
3639,
509,
8526,
7429,
15360,
28127,
273,
394,
509,
63,
7073,
5411,
5467,
39,
67,
16961,
67,
16328,
67,
734,
16,
5411,
5467,
39,
67,
16961,
67,
3776,
67,
23347,
67,
19693,
67,
2399,
16,
5411,
5467,
39,
67,
16961,
67,
38,
24846,
67,
19693,
67,
2399,
16,
5411,
5467,
39,
67,
16961,
67,
15072,
4043,
67,
19693,
67,
2399,
16,
5411,
5467,
39,
67,
16961,
67,
1785,
67,
19693,
67,
2399,
289,
31,
3639,
509,
3824,
67,
350,
273,
404,
31,
3639,
514,
1610,
2244,
273,
315,
47,
556,
2453,
270,
1668,
14432,
3639,
364,
12,
509,
277,
273,
374,
31,
277,
411,
2063,
5676,
18,
2469,
31,
277,
9904,
262,
288,
5411,
5130,
1179,
2063,
1179,
273,
2063,
5676,
63,
77,
15533,
5411,
5130,
1179,
18,
1988,
951,
1388,
67,
5457,
8526,
1668,
19894,
4649,
273,
2063,
1179,
18,
87,
9381,
67,
588,
12656,
12,
7443,
67,
15468,
67,
734,
16,
5467,
39,
67,
16961,
67,
15354,
67,
734,
16,
5467,
39,
67,
5998,
67,
31078,
67,
22408,
67,
21205,
67,
706,
67,
14318,
67,
734,
11272,
5411,
509,
8526,
563,
273,
2063,
1179,
18,
87,
9381,
67,
3530,
12656,
12,
5467,
39,
67,
16961,
67,
15354,
67,
734,
16,
3824,
67,
350,
16,
7443,
67,
15468,
67,
734,
16,
7429,
15360,
28127,
16,
1610,
2244,
11272,
5411,
1815,
8867,
12,
404,
16,
563,
18,
2469,
11272,
5411,
5130,
1179,
18,
1988,
951,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
87,
9381,
67,
3530,
12656,
1435,
288,
3639,
509,
8526,
7429,
15360,
28127,
273,
394,
509,
63,
7073,
5411,
5467,
39,
67,
16961,
67,
16328,
67,
734,
16,
5411,
5467,
39,
67,
16961,
67,
3776,
67,
23347,
67,
19693,
67,
2399,
16,
5411,
5467,
39,
67,
16961,
67,
38,
24846,
67,
19693,
67,
2399,
16,
5411,
5467,
39,
67,
16961,
67,
15072,
4043,
67,
19693,
67,
2399,
16,
5411,
5467,
39,
67,
16961,
67,
1785,
67,
19693,
67,
2399,
289,
31,
3639,
509,
3824,
67,
350,
273,
404,
31,
3639,
514,
1610,
2244,
273,
315,
47,
556,
2453,
270,
1668,
14432,
3639,
364,
12,
509,
277,
273,
374,
31,
277,
411,
2063,
5676,
18,
2
] |
public Menu(String label) { this(label, false); }
|
Menu() { }
|
public Menu(String label) { this(label, false); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9809,
12,
780,
1433,
13,
288,
202,
202,
2211,
12,
1925,
16,
629,
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,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9809,
12,
780,
1433,
13,
288,
202,
202,
2211,
12,
1925,
16,
629,
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,
-100,
-100
] |
if(encoding==null) {
|
if (encoding == null) {
|
public String getEncoding() { String encoding = endpoint.getEncoding(); if(encoding==null) { encoding = message.getEncoding(); } if(encoding==null) { encoding = MuleManager.getConfiguration().getEncoding(); } return encoding; }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/2aea4d41675cd6cec0e26049bc35ab4f5ff8e4f2/MuleEvent.java/clean/mule/src/java/org/mule/impl/MuleEvent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
29505,
1435,
288,
3639,
514,
2688,
273,
2494,
18,
588,
4705,
5621,
3639,
309,
261,
5999,
422,
446,
13,
288,
5411,
2688,
273,
883,
18,
588,
4705,
5621,
3639,
289,
3639,
309,
261,
5999,
422,
446,
13,
288,
5411,
2688,
273,
490,
725,
1318,
18,
588,
1750,
7675,
588,
4705,
5621,
3639,
289,
3639,
327,
2688,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
29505,
1435,
288,
3639,
514,
2688,
273,
2494,
18,
588,
4705,
5621,
3639,
309,
261,
5999,
422,
446,
13,
288,
5411,
2688,
273,
883,
18,
588,
4705,
5621,
3639,
289,
3639,
309,
261,
5999,
422,
446,
13,
288,
5411,
2688,
273,
490,
725,
1318,
18,
588,
1750,
7675,
588,
4705,
5621,
3639,
289,
3639,
327,
2688,
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
] |
p1 = Pattern.compile(factory.getAtomType(atomTypeIds[43]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ if (atom.getChemicalGroupConstant()==10){
|
p1 = Pattern.compile(getSphericalMatcher(atomTypeIds[43])); mat1 = p1.matcher(getSphericalMatcher(atom)); if (mat1.matches()){ if (atomChemGroupConstant==10){
|
public AtomType findMatchingAtomType(AtomContainer atomContainer, Atom atomInterface) throws CDKException { org.openscience.cdk.Atom atom = (org.openscience.cdk.Atom)atomInterface; //System.out.println("****** Configure MMFF94 AtomType via findMatching ******"); //System.out.print(" Symbol:" + atom.getSymbol() +" HoseCode>" + atom.getSphericalMatcher() + " "); logger.debug(" Symbol:" + atom.getSymbol() +" HoseCode>" + atom.getSphericalMatcher() + " "); try { factory = AtomTypeFactory.getInstance("org/openscience/cdk/config/data/mmff94_atomtypes.xml"); } catch (Exception ex1) { logger.error(ex1.getMessage()); logger.debug(ex1); } if (atom instanceof PseudoAtom) { return factory.getAtomTypes("DU")[0]; } Pattern p1 = null; Pattern p2 = null; String ID = ""; boolean atomTypeFlag = false; Matcher mat1=null; Matcher mat2=null; double tmpMaxBondOrder = 0; maxBondOrder = atomContainer.getMaximumBondOrder(atom); for (int j = 0; j < atomTypeIds.length; j++){ tmpMaxBondOrder = factory.getAtomType(atomTypeIds[j]).getMaxBondOrder(); logger.debug(j + "ATOM TYPE "+ tmpMaxBondOrder + " " +factory.getAtomType(atomTypeIds[j]).getSphericalMatcher()); p1 =Pattern.compile(factory.getAtomType(atomTypeIds[j]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()) { ID = atomTypeIds[j]; if (atomTypeIds[j].equals("C")) { if (atom.getChemicalGroupConstant()!=-1) {//in Ring if (maxBondOrder == 1){ if (atom.getRingSize() == 3) { ID = atomTypeIds[9];//sp3 3mem rings }else if (atom.getRingSize() == 4) { ID = atomTypeIds[8];//sp3 4mem rings } }else{//sp2 p1 =Pattern.compile(factory.getAtomType(atomTypeIds[13]).getSphericalMatcher());//C5B mat1 = p1.matcher(atom.getSphericalMatcher()); p2 =Pattern.compile(factory.getAtomType(atomTypeIds[12]).getSphericalMatcher());//C5A mat2 = p2.matcher(atom.getSphericalMatcher()); if (mat1.matches() && atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[13]; }else if (mat2.matches() && atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[12]; }else if (atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5) { ID = atomTypeIds[14];//C5 in het 5 ring }else if (atom.getFlag(CDKConstants.ISAROMATIC)) { ID = atomTypeIds[11];//Car in benzene, pyroll } } }else{//not in Ring p1 = Pattern.compile(factory.getAtomType(atomTypeIds[66]).getSphericalMatcher());//S=C mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[66];//S=C } } } else if (atomTypeIds[j].equals("Csp2")) { if (atom.getChemicalGroupConstant()%2==0 & atom.getRingSize()==4 & !atom.getFlag(CDKConstants.ISAROMATIC)) { ID = atomTypeIds[10];//CE4R } } else if (atomTypeIds[j].equals("C=")) { if (atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC)) { ID = atomTypeIds[12];//C5A } } else if (atomTypeIds[j].equals("N")) { //Amid p1 = Pattern.compile(factory.getAtomType(atomTypeIds[48]).getSphericalMatcher());//NC=0 mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() & atom.getChemicalGroupConstant()==-1) { ID = atomTypeIds[48];//NC=O } //nsp3 oxide p1 = Pattern.compile(factory.getAtomType(atomTypeIds[44]).getSphericalMatcher());//sp3 n-oxide mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() && maxBondOrder==tmpMaxBondOrder){ ID = atomTypeIds[44]; } //ring sytems p1 = Pattern.compile(factory.getAtomType(atomTypeIds[56]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (atom.getChemicalGroupConstant()==10){ ID = atomTypeIds[56]; }else if (atom.getChemicalGroupConstant()==4){ ID = atomTypeIds[57]; }else if (atom.getChemicalGroupConstant()%2==0 & atom.getRingSize()==5 & atom.getFlag(CDKConstants.ISAROMATIC)){ ID=atomTypeIds[64]; } //Nsp2-Oxides p1 = Pattern.compile(factory.getAtomType(atomTypeIds[61]).getSphericalMatcher());//npox mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() && maxBondOrder==tmpMaxBondOrder){ ID=atomTypeIds[43]; } if (atom.getFlag(CDKConstants.ISAROMATIC)){ if(mat1.matches()&& atom.getChemicalGroupConstant()==12){ ID = atomTypeIds[61]; }else if(mat1.matches()&& atom.getRingSize()==5){ ID = atomTypeIds[62]; } } //NC#N p1 = Pattern.compile(factory.getAtomType(atomTypeIds[45]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[45]; } }else if (atomTypeIds[j].equals("N=C")) { //n beta heteroaromatic ring p1 = Pattern.compile(factory.getAtomType(atomTypeIds[59]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (atom.getChemicalGroupConstant()!=-1) { if (mat1.matches() && atom.getChemicalGroupConstant()%2==0 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[59];//N5A }else if(atom.getChemicalGroupConstant()==10){//NPYD ID = atomTypeIds[56]; }else if(atom.getChemicalGroupConstant()==4){//NPYL ID = atomTypeIds[57]; } } //N2OX p1 = Pattern.compile(factory.getAtomType(atomTypeIds[43]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ if (atom.getChemicalGroupConstant()==10){ ID = atomTypeIds[61];//npox }else if (atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[62];//n5ox }else { ID = atomTypeIds[43];//n2ox } } }else if (atomTypeIds[j].equals("N2OX")){ //NO3 p1 = Pattern.compile(factory.getAtomType(atomTypeIds[46]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches() && atom.getChemicalGroupConstant()==-1){ ID = atomTypeIds[46];//NO3 } if (atom.getChemicalGroupConstant()==12){ ID = atomTypeIds[61];//NPOX }else if (atom.getChemicalGroupConstant()!=-1 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[62];//N5OX } }else if (atomTypeIds[j].equals("=N=") || atomTypeIds[j].equals("NAZT")){ if (atom.getChemicalGroupConstant()!=-1 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[59];//aromatic N5A } }else if (atomTypeIds[j].equals("N+=")){ if (atom.getChemicalGroupConstant()!=-1 && atom.getFlag(CDKConstants.ISAROMATIC) && atom.getRingSize()==5){ ID = atomTypeIds[63];//n5+ }else if (atom.getChemicalGroupConstant()==12){ ID = atomTypeIds[58];//npd+ } }else if (atomTypeIds[j].equals("O")){ if (atom.getChemicalGroupConstant()==6){ ID = atomTypeIds[35];//Oar } }else if (atomTypeIds[j].equals("HO")){ p1 = Pattern.compile(factory.getAtomType(atomTypeIds[21]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[21];//HOCC } p1 = Pattern.compile(factory.getAtomType(atomTypeIds[18]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[18];//HOCO } }else if (atomTypeIds[j].equals("P")){ p1 = Pattern.compile(factory.getAtomType(atomTypeIds[75]).getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = atomTypeIds[75];//-P=C } }else if (atomTypeIds[j].equals("S")){ if (atom.getRingSize()==5 && atom.getFlag(CDKConstants.ISAROMATIC)){ ID = atomTypeIds[72];//Sthiophen } }else if (atomTypeIds[j].equals("HC")){ p1 = Pattern.compile(factory.getAtomType("HP").getSphericalMatcher()); mat1 = p1.matcher(atom.getSphericalMatcher()); if (mat1.matches()){ ID = "HP"; } } atomTypeFlag = true; // System.out.println(" MATCH AtomTypeID:"+j+ " " + ID); logger.debug(" MATCH AtomTypeID:"+j+ " " + ID); break; }//IF }//for end if (atomTypeFlag) { atomTypeFlag = false; return factory.getAtomType(ID); } else { //System.out.println("NoSuchAtomTypeException: Atom is unkown with Symbol:" + atom.getSymbol() + " does not MATCH AtomType. HoseCode:" + atom.getSphericalMatcher()); return factory.getAtomType("DU"); } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/53b7038bf76a67276cd51466afb62126fb362c25/MMFF94AtomTypeMatcher.java/clean/src/org/openscience/cdk/atomtype/MMFF94AtomTypeMatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7149,
559,
1104,
9517,
3641,
559,
12,
3641,
2170,
22487,
16,
7149,
3179,
1358,
13,
1216,
24570,
288,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
3641,
3179,
273,
261,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
3641,
13,
7466,
1358,
31,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
11345,
11758,
18295,
2246,
11290,
7149,
559,
3970,
1104,
9517,
380,
1007,
7388,
1769,
202,
202,
759,
3163,
18,
659,
18,
1188,
2932,
8565,
2773,
397,
3179,
18,
588,
5335,
1435,
397,
6,
670,
2584,
1085,
2984,
397,
3179,
18,
588,
55,
21570,
6286,
1435,
397,
315,
315,
1769,
202,
202,
4901,
18,
4148,
2932,
8565,
2773,
397,
3179,
18,
588,
5335,
1435,
397,
6,
670,
2584,
1085,
2984,
397,
3179,
18,
588,
55,
21570,
6286,
1435,
397,
315,
315,
1769,
202,
202,
698,
288,
1082,
202,
6848,
273,
7149,
559,
1733,
18,
588,
1442,
2932,
3341,
19,
20346,
71,
6254,
19,
71,
2883,
19,
1425,
19,
892,
19,
7020,
1403,
11290,
67,
7466,
2352,
18,
2902,
8863,
202,
202,
97,
1044,
261,
503,
431,
21,
13,
288,
5411,
1194,
18,
1636,
12,
338,
21,
18,
24906,
10663,
1082,
202,
4901,
18,
4148,
12,
338,
21,
1769,
202,
202,
97,
6862,
1082,
202,
430,
261,
7466,
1276,
453,
9091,
3641,
13,
288,
9506,
202,
2463,
3272,
18,
588,
3641,
2016,
2932,
16214,
7923,
63,
20,
15533,
202,
202,
97,
202,
202,
3234,
293,
21,
273,
446,
31,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7149,
559,
1104,
9517,
3641,
559,
12,
3641,
2170,
22487,
16,
7149,
3179,
1358,
13,
1216,
24570,
288,
202,
202,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
3641,
3179,
273,
261,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
3641,
13,
7466,
1358,
31,
202,
202,
759,
3163,
18,
659,
18,
8222,
2932,
11345,
11758,
18295,
2246,
11290,
7149,
559,
3970,
1104,
9517,
380,
1007,
7388,
1769,
202,
202,
759,
3163,
18,
659,
18,
1188,
2932,
8565,
2773,
397,
3179,
18,
588,
5335,
1435,
397,
6,
670,
2584,
1085,
2984,
397,
3179,
18,
588,
55,
21570,
6286,
1435,
397,
315,
315,
1769,
202,
202,
4901,
18,
4148,
2932,
8565,
2773,
397,
3179,
18,
2
] |
IASTNode def = testF2(file, offset);
|
IASTNode def = testCtrl_F3(file, offset);
|
public void testCPPSpecDeclsDefs() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("int a; // defines a\n"); //$NON-NLS-1$ buffer.append("extern const int c = 1; // defines c\n"); //$NON-NLS-1$ buffer.append("int f(int x) { return x+a; } // defines f and defines x\n"); //$NON-NLS-1$ buffer.append("struct S { int a; int b; }; // defines S, S::a, and S::b\n"); //$NON-NLS-1$ buffer.append("struct X { // defines X\n"); //$NON-NLS-1$ buffer.append("int x; // defines nonstatic data member x\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("enum { up, down }; // defines up and down\n"); //$NON-NLS-1$ buffer.append("struct X anX; // defines anX\n"); //$NON-NLS-1$ buffer.append("extern int a; // declares a\n"); //$NON-NLS-1$ buffer.append("extern const int c; // declares c\n"); //$NON-NLS-1$ buffer.append("int f(int); // declares f\n"); //$NON-NLS-1$ buffer.append("struct S; // declares S\n"); //$NON-NLS-1$ buffer.append("typedef int Int; // declares Int\n"); //$NON-NLS-1$ buffer.append("extern struct X anotherX; // declares anotherX\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testCPPSpecDeclsDefs.c", code); //$NON-NLS-1$ int offset = code.indexOf("a; // defines a"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("c = 1; // defines c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 37); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 37); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("f(int x) { return x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 61); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 61); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x) { return x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x+a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 67); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 67); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("a; } // defines f and defines x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("S { int a; int b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 120); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 120); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("a; int b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 128); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 128); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("b; }; // defines S, S::a, and S::b"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "b"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 135); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "b"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 135); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("X { // defines X"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("x; // defines nonstatic data member x"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 198); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 198); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("up, down }; // defines up and down"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "up"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 246); assertEquals(((ASTNode)decl).getLength(), 2); assertEquals(((IASTName)def).toString(), "up"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 246); assertEquals(((ASTNode)def).getLength(), 2); offset = code.indexOf("down }; // defines up and down"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "down"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 250); assertEquals(((ASTNode)decl).getLength(), 4); assertEquals(((IASTName)def).toString(), "down"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 250); assertEquals(((ASTNode)def).getLength(), 4); offset = code.indexOf("X anX; // defines anX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("anX; // defines anX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "anX"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 290); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "anX"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 290); assertEquals(((ASTNode)def).getLength(), 3); offset = code.indexOf("a; // declares a"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 4); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "a"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 4); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("c; // declares c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 37); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "c"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 37); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("f(int); // declares f"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 61); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "f"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 61); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("S; // declares S"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 120); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "S"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 120); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("Int; // declares Int"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 434); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 434); assertEquals(((ASTNode)def).getLength(), 3); offset = code.indexOf("X anotherX; // declares anotherX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 177); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "X"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 177); assertEquals(((ASTNode)def).getLength(), 1); offset = code.indexOf("anotherX; // declares anotherX"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "anotherX"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 471); assertEquals(((ASTNode)decl).getLength(), 8); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a80f774ac034fed44b578ede9c708e773e1fabcf/CSelectionTestsNoIndexer.java/buggy/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CSelectionTestsNoIndexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4258,
52,
1990,
1799,
3251,
14554,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
474,
279,
31,
368,
11164,
279,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
338,
798,
1866,
509,
276,
273,
404,
31,
368,
11164,
276,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
284,
12,
474,
619,
13,
288,
327,
619,
15,
69,
31,
289,
368,
11164,
284,
471,
11164,
619,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
348,
288,
509,
279,
31,
509,
324,
31,
289,
31,
368,
11164,
348,
16,
348,
2866,
69,
16,
471,
348,
2866,
70,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
1139,
288,
368,
11164,
1139,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
619,
31,
368,
11164,
1661,
3845,
501,
3140,
619,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
7924,
288,
731,
16,
2588,
289,
31,
368,
11164,
731,
471,
2588,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
1139,
392,
60,
31,
368,
11164,
392,
60,
64,
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,
4258,
52,
1990,
1799,
3251,
14554,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
474,
279,
31,
368,
11164,
279,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
338,
798,
1866,
509,
276,
273,
404,
31,
368,
11164,
276,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
284,
12,
474,
619,
13,
288,
327,
619,
15,
69,
31,
289,
368,
11164,
284,
471,
11164,
619,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
1697,
348,
288,
509,
279,
31,
509,
324,
31,
2
] |
this.interval = interval + 1;
|
if (timer.list.contains(this)) { timer.list.remove(this); map.clear(); } timer.addTickerTask(this);
|
public void setCapacity (int capacity) { super.setCapacity(capacity); this.interval = interval + 1; }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/d99d796f5b0dd03cd18d0836c2fb3fbfdac493fb/TimeLimited.java/clean/trunk/castor/src/main/org/exolab/castor/persist/cache/TimeLimited.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7437,
261,
474,
7519,
13,
288,
3639,
2240,
18,
542,
7437,
12,
16017,
1769,
3639,
309,
261,
12542,
18,
1098,
18,
12298,
12,
2211,
3719,
288,
5441,
18,
1098,
18,
4479,
12,
2211,
1769,
852,
18,
8507,
5621,
289,
5441,
18,
1289,
18008,
2174,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7437,
261,
474,
7519,
13,
288,
3639,
2240,
18,
542,
7437,
12,
16017,
1769,
3639,
309,
261,
12542,
18,
1098,
18,
12298,
12,
2211,
3719,
288,
5441,
18,
1098,
18,
4479,
12,
2211,
1769,
852,
18,
8507,
5621,
289,
5441,
18,
1289,
18008,
2174,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_20()) { jj_scanpos = xsp; break; }
|
final private boolean jj_3R_263() { if (jj_3R_270()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_20()) { jj_scanpos = xsp; break; } } return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
4449,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
20,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
67,
3462,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
4449,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
20,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
67,
3462,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
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
] |
|
SessionHandleAdapter.getInstance( ) .getMediator( )
|
SessionHandleAdapter.getInstance( ).getMediator( )
|
public void partActivated( IWorkbenchPart part ) { if ( part != this ) { if ( part instanceof PageBookView ) { PageBookView view = (PageBookView) part; if ( view.getCurrentPage( ) instanceof DesignerOutlinePage ) { ISelectionProvider provider = (ISelectionProvider) view.getCurrentPage( ); ReportRequest request = new ReportRequest( view.getCurrentPage( ) ); List list = new ArrayList( ); if ( provider.getSelection( ) instanceof IStructuredSelection ) { list = ( (IStructuredSelection) provider.getSelection( ) ).toList( ); } request.setSelectionObject( list ); request.setType( ReportRequest.SELECTION ); // no convert // request.setRequestConvert(new // EditorReportRequestConvert()); SessionHandleAdapter.getInstance( ) .getMediator( ) .notifyRequest( request ); SessionHandleAdapter.getInstance( ) .getMediator( ) .pushState( ); } } if ( getActivePageInstance( ) instanceof GraphicalEditorWithFlyoutPalette ) { if ( ( (GraphicalEditorWithFlyoutPalette) getActivePageInstance( ) ).getGraphicalViewer( ) .getEditDomain( ) .getPaletteViewer( ) != null ) { GraphicalEditorWithFlyoutPalette editor = (GraphicalEditorWithFlyoutPalette) getActivePageInstance( ); GraphicalViewer view = editor.getGraphicalViewer( ); view.getEditDomain( ).loadDefaultTool( ); } } return; } if ( part == this ) { if ( getEditorInput( ).exists( ) ) { handleActivation( ); SessionHandleAdapter.getInstance( ) .setReportDesignHandle( getModel( ) ); } if ( getActivePageInstance( ) instanceof GraphicalEditorWithFlyoutPalette && getActivePageInstance( ) instanceof IReportEditorPage ) { Display.getCurrent( ).asyncExec( new Runnable( ) { public void run( ) { //UIUtil.resetViewSelection( view, true ); ((IReportEditorPage)getActivePageInstance( )).onBroughtToTop( (IReportEditorPage)getActivePageInstance( )); } } ); // UIUtil.resetViewSelection( view, true ); } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/9e1cac931ce3f8a9906a429c5022cb5b97fdea5d/MultiPageReportEditor.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/ui/editors/MultiPageReportEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1087,
28724,
12,
467,
2421,
22144,
1988,
1087,
262,
202,
95,
202,
202,
430,
261,
1087,
480,
333,
262,
202,
202,
95,
1082,
202,
430,
261,
1087,
1276,
3460,
9084,
1767,
262,
1082,
202,
95,
9506,
202,
1964,
9084,
1767,
1476,
273,
261,
1964,
9084,
1767,
13,
1087,
31,
9506,
202,
430,
261,
1476,
18,
588,
3935,
1964,
12,
262,
1276,
29703,
264,
21805,
1964,
262,
9506,
202,
95,
6862,
202,
45,
6233,
2249,
2893,
273,
261,
45,
6233,
2249,
13,
1476,
18,
588,
3935,
1964,
12,
11272,
6862,
202,
4820,
691,
590,
273,
394,
8706,
691,
12,
1476,
18,
588,
3935,
1964,
12,
262,
11272,
6862,
202,
682,
666,
273,
394,
2407,
12,
11272,
6862,
202,
430,
261,
2893,
18,
588,
6233,
12,
262,
1276,
467,
30733,
6233,
262,
6862,
202,
95,
25083,
202,
1098,
273,
261,
261,
45,
30733,
6233,
13,
2893,
18,
588,
6233,
12,
262,
262,
18,
869,
682,
12,
11272,
6862,
202,
97,
6862,
202,
2293,
18,
542,
6233,
921,
12,
666,
11272,
6862,
202,
2293,
18,
542,
559,
12,
8706,
691,
18,
1090,
15445,
11272,
6862,
202,
759,
1158,
1765,
6862,
202,
759,
590,
18,
542,
691,
2723,
12,
2704,
6862,
202,
759,
18451,
4820,
691,
2723,
10663,
6862,
202,
2157,
3259,
4216,
18,
588,
1442,
12,
262,
6862,
1082,
202,
18,
588,
13265,
10620,
12,
262,
6862,
1082,
202,
18,
12336,
691,
12,
590,
11272,
6862,
202,
2157,
3259,
4216,
18,
588,
1442,
12,
262,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1087,
28724,
12,
467,
2421,
22144,
1988,
1087,
262,
202,
95,
202,
202,
430,
261,
1087,
480,
333,
262,
202,
202,
95,
1082,
202,
430,
261,
1087,
1276,
3460,
9084,
1767,
262,
1082,
202,
95,
9506,
202,
1964,
9084,
1767,
1476,
273,
261,
1964,
9084,
1767,
13,
1087,
31,
9506,
202,
430,
261,
1476,
18,
588,
3935,
1964,
12,
262,
1276,
29703,
264,
21805,
1964,
262,
9506,
202,
95,
6862,
202,
45,
6233,
2249,
2893,
273,
261,
45,
6233,
2249,
13,
1476,
18,
588,
3935,
1964,
12,
11272,
6862,
202,
4820,
691,
590,
273,
394,
8706,
691,
12,
1476,
18,
588,
3935,
1964,
12,
262,
11272,
6862,
202,
682,
666,
273,
394,
2407,
12,
11272,
2
] |
assertEquals(uc.shouldBeCached(), shouldCache);
|
assertEquals(shouldCache, uc.shouldBeCached());
|
private void shouldCacheTest(String url, boolean shouldCache, ArchivalUnit au, CachedUrlSet cus) { UrlCacher uc = au.getPlugin().makeUrlCacher(cus, url); assertEquals(uc.shouldBeCached(), shouldCache); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/7213af99d56a7766716f5d711aa30ad85c71d195/TestAcsArchivalUnit.java/clean/test/src/org/lockss/plugin/acs/TestAcsArchivalUnit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1410,
1649,
4709,
12,
780,
880,
16,
1250,
1410,
1649,
16,
9506,
4202,
16959,
5162,
2802,
20309,
16,
15771,
1489,
694,
27964,
13,
288,
565,
6816,
11309,
264,
6232,
273,
20309,
18,
588,
3773,
7675,
6540,
1489,
11309,
264,
12,
71,
407,
16,
880,
1769,
565,
1815,
8867,
12,
13139,
1649,
16,
6232,
18,
13139,
1919,
9839,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1410,
1649,
4709,
12,
780,
880,
16,
1250,
1410,
1649,
16,
9506,
4202,
16959,
5162,
2802,
20309,
16,
15771,
1489,
694,
27964,
13,
288,
565,
6816,
11309,
264,
6232,
273,
20309,
18,
588,
3773,
7675,
6540,
1489,
11309,
264,
12,
71,
407,
16,
880,
1769,
565,
1815,
8867,
12,
13139,
1649,
16,
6232,
18,
13139,
1919,
9839,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Identifier(int line, String identifier)
|
public Identifier(Position position, String identifier, int sym)
|
public Identifier(int line, String identifier) { super(line); this.identifier=identifier; }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/96c2c0f08db74e6b67885d020d1aa6b2502f09f2/Identifier.java/buggy/src/polyglot/lex/Identifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10333,
12,
2555,
1754,
16,
514,
2756,
16,
509,
5382,
13,
225,
288,
202,
9565,
12,
1369,
1769,
202,
2211,
18,
5644,
33,
5644,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10333,
12,
2555,
1754,
16,
514,
2756,
16,
509,
5382,
13,
225,
288,
202,
9565,
12,
1369,
1769,
202,
2211,
18,
5644,
33,
5644,
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
] |
public org.quickfix.field.UnderlyingRepurchaseTerm getUnderlyingRepurchaseTerm() throws FieldNotFound { org.quickfix.field.UnderlyingRepurchaseTerm value = new org.quickfix.field.UnderlyingRepurchaseTerm();
|
public quickfix.field.UnderlyingRepurchaseTerm getUnderlyingRepurchaseTerm() throws FieldNotFound { quickfix.field.UnderlyingRepurchaseTerm value = new quickfix.field.UnderlyingRepurchaseTerm();
|
public org.quickfix.field.UnderlyingRepurchaseTerm getUnderlyingRepurchaseTerm() throws FieldNotFound { org.quickfix.field.UnderlyingRepurchaseTerm value = new org.quickfix.field.UnderlyingRepurchaseTerm(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/clean/src/java/src/quickfix/fix43/OrderMassCancelReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
12688,
12104,
4065,
10833,
765,
6291,
426,
12688,
12104,
4065,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
12688,
12104,
4065,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
12688,
12104,
4065,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
12688,
12104,
4065,
10833,
765,
6291,
426,
12688,
12104,
4065,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
12688,
12104,
4065,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
426,
12688,
12104,
4065,
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
] |
ref.add( new StringRefAddr( "dbName", _dbName ) );
|
ref.add( new StringRefAddr( "databaseName", _dbName ) );
|
public synchronized Reference getReference() { Reference ref; // We use same object as factory. ref = new Reference( getClass().getName(), getClass().getName(), null ); if ( _description != null ) ref.add( new StringRefAddr( "description", _description ) ); if ( _dbName != null ) ref.add( new StringRefAddr( "dbName", _dbName ) ); if ( _dbConf != null ) ref.add( new StringRefAddr( "dbConf", _dbConf ) ); return ref; }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/a21383fe72b236a580c6dc59002e16ce2f0cad1a/JDO.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/jdo/JDO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
6268,
13223,
1435,
565,
288,
202,
2404,
1278,
31,
202,
759,
1660,
999,
1967,
733,
487,
3272,
18,
202,
1734,
273,
394,
6268,
12,
2900,
7675,
17994,
9334,
2900,
7675,
17994,
9334,
446,
11272,
3639,
309,
261,
389,
3384,
480,
446,
262,
5411,
1278,
18,
1289,
12,
394,
514,
1957,
3178,
12,
315,
3384,
3113,
389,
3384,
262,
11272,
3639,
309,
261,
389,
1966,
461,
480,
446,
262,
5411,
1278,
18,
1289,
12,
394,
514,
1957,
3178,
12,
315,
6231,
461,
3113,
389,
1966,
461,
262,
11272,
3639,
309,
261,
389,
1966,
3976,
480,
446,
262,
5411,
1278,
18,
1289,
12,
394,
514,
1957,
3178,
12,
315,
1966,
3976,
3113,
389,
1966,
3976,
262,
11272,
225,
202,
2463,
1278,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
6268,
13223,
1435,
565,
288,
202,
2404,
1278,
31,
202,
759,
1660,
999,
1967,
733,
487,
3272,
18,
202,
1734,
273,
394,
6268,
12,
2900,
7675,
17994,
9334,
2900,
7675,
17994,
9334,
446,
11272,
3639,
309,
261,
389,
3384,
480,
446,
262,
5411,
1278,
18,
1289,
12,
394,
514,
1957,
3178,
12,
315,
3384,
3113,
389,
3384,
262,
11272,
3639,
309,
261,
389,
1966,
461,
480,
446,
262,
5411,
1278,
18,
1289,
12,
394,
514,
1957,
3178,
12,
315,
6231,
461,
3113,
389,
1966,
461,
262,
11272,
3639,
309,
261,
389,
1966,
3976,
480,
446,
262,
5411,
1278,
18,
1289,
12,
394,
514,
1957,
3178,
12,
315,
1966,
3976,
3113,
389,
1966,
3976,
262,
11272,
225,
2
] |
public List getMetaData( )
|
public List getMetaData( ) throws EngineException
|
public List getMetaData( ) { if ( resultMetaList == null ) { resultMetaList = new ArrayList( ); ResultMetaData metaData = null; if ( selectedColumns == null && instanceId != null ) { try { currentResult = extract( ); resultMetaList.add( currentResult.getResultMetaData( ) ); } catch ( BirtException e ) { e.printStackTrace( ); } } if( selectedColumns == null ) { return null; } else { metaData = new ResultMetaData( null, selectedColumns ); resultMetaList.add( metaData ); } } return resultMetaList; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b8bf53ad54cbea7268bb04925695cfba4fd6cece/DataExtractionTask.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataExtractionTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
23028,
12,
262,
202,
95,
202,
202,
430,
261,
563,
2781,
682,
422,
446,
262,
202,
202,
95,
1082,
202,
2088,
2781,
682,
273,
394,
2407,
12,
11272,
1082,
202,
1253,
6998,
11651,
273,
446,
31,
1082,
202,
430,
261,
3170,
3380,
422,
446,
597,
17608,
480,
446,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
2972,
1253,
273,
2608,
12,
11272,
6862,
202,
2088,
2781,
682,
18,
1289,
12,
783,
1253,
18,
588,
1253,
6998,
12,
262,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
605,
2714,
503,
425,
262,
9506,
202,
95,
6862,
202,
73,
18,
1188,
6332,
12,
11272,
9506,
202,
97,
1082,
202,
97,
25083,
202,
430,
12,
3170,
3380,
422,
446,
262,
1082,
202,
95,
9506,
202,
2463,
446,
31,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
3901,
751,
273,
394,
3438,
6998,
12,
446,
16,
25083,
202,
8109,
3380,
11272,
9506,
202,
2088,
2781,
682,
18,
1289,
12,
11651,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
563,
2781,
682,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
23028,
12,
262,
202,
95,
202,
202,
430,
261,
563,
2781,
682,
422,
446,
262,
202,
202,
95,
1082,
202,
2088,
2781,
682,
273,
394,
2407,
12,
11272,
1082,
202,
1253,
6998,
11651,
273,
446,
31,
1082,
202,
430,
261,
3170,
3380,
422,
446,
597,
17608,
480,
446,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
2972,
1253,
273,
2608,
12,
11272,
6862,
202,
2088,
2781,
682,
18,
1289,
12,
783,
1253,
18,
588,
1253,
6998,
12,
262,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
605,
2714,
503,
425,
262,
9506,
202,
95,
6862,
202,
73,
18,
1188,
6332,
12,
11272,
9506,
202,
97,
1082,
202,
97,
25083,
202,
430,
2
] |
"alert tcp 10.0.0.40-10.0.0.101 any -> 66.35.250.0/24 80 (content:\"bob\"; msg:\"Rule One\"; flow: to_server;)", "alert tcp 10.0.0.101 !5000: -> 10.0.0.1/16 !80 (content: \"BOB\"; offset: 3; nocase; msg:\"Rule tW0\"; flow: from_server;)", "alert TCP 10.0.0.101 4000:5000 <> 10.0.0.1/24 :6000 (content:\"bob\"; content:\"BOB\"; nocase; msg: Rule 3; dsize: < 5;)", "alert tcp [10.0.0.101,192.168.1.1,10.0.0.44] !:80 -> any 80 (msg: Rule x4x; dsize: 3<> 10; )", "alert tcp 66.35.250.0/24 any -> 10.0.0.1/24 any (msg:\"Rule 8, Server as client test\")", "alert udp $EXTERNAL_NET any -> $HOME_NET 22 (msg:\"Rule 11(exploit test2)\"; flow:to_server,established; content:\"|00 01|W|00 00 00 18|\"; depth:7; content:\"|FF FF FF FF 00 00|\"; depth:14; offset:8; reference:bugtraq,2347; reference:cve,2001-0144; reference:cve,2001-0572; classtype:shellcode-detect; sid:1327; rev:7;)", "alert tcp any any -> any any (msg:\"Rule 6\"; content:|DE AD BE EF|BOB; nocase;)", "alert tcp any any -> any any (msg:\"Rule 5\"; dsize: > 4 ;)", "alert tcp any any -> any any (msg:\"Rule 7\"; pcre:\"/r(a|u)wr/smi\" ;)", "alert udp any any -> any any (msg:\"Rule 9\"; uricontent:\"/is/just/a/\"; nocase;)", "alert udp any any -> any any (msg:\"rule 10 (exploit test1)\"; flow:to_server,established; content:\"|90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90|\"; reference:bugtraq,2347; reference:cve,2001-0144; reference:cve,2001-0572; classtype:shellcode-detect; sid:1326; rev:6;)", "alert tcp any any -> any any (msg:\"Rule 12\"; nocase; pcre:\"/(stuff=.*(a|b|c|\\;|d?rar))/i\"; dsize: > 4 ;)", "alert tcp any any -> any any (msg:\"Rule Zero\"; content:\"|00|bob|00||00|bob\";)",
|
/** Header 0*/ "alert tcp 10.0.0.40-10.0.0.101 any -> 66.35.250.0/24 80 (content:\"bob\"; msg:\"Rule Zero\"; flow: to_server;)", /** Header 1*/ "alert tcp 10.0.0.101 !5000: -> 10.0.0.1/16 !80 (content: \"BOB\"; offset: 3; nocase; msg:\"Rule one\"; flow: from_server;)", /**Header 2*/ "alert TCP 10.0.0.101 4000:5000 <> 10.0.0.1/24 :6000 (content:\"bob\"; content:\"BOB\"; nocase; msg: Rule 2; dsize: < 5;)", /**Header 3*/ "alert tcp [10.0.0.101,192.168.1.1,10.0.0.44] !:80 -> any 80 (msg: Rule x3x; dsize: 3<> 10; )", /**Header 4*/ "alert tcp 66.35.250.0/24 any -> 10.0.0.1/24 any (msg:\"Rule 4, Server as client test\")", /**Header 5*/ "alert udp $EXTERNAL_NET any -> $HOME_NET 22 (msg:\"Rule 5(exploit test2)\"; flow:to_server,established; content:\"|00 01|W|00 00 00 18|\"; depth:7; content:\"|FF FF FF FF 00 00|\"; depth:14; offset:8; reference:bugtraq,2347; reference:cve,2001-0144; reference:cve,2001-0572; classtype:shellcode-detect; sid:1327; rev:7;)", /**Header 6*/ "alert udp any any -> any any (msg:\"Rule 6\"; uricontent:\"/is/just/a/\"; nocase;)", "alert udp any any -> any any (msg:\"rule 7 (exploit test1)\"; flow:to_server,established; content:\"|90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90|\"; reference:bugtraq,2347; reference:cve,2001-0144; reference:cve,2001-0572; classtype:shellcode-detect; sid:1326; rev:6;)", /**Header 7*/ "alert tcp any any -> any any (msg:\"Rule 8\"; content:|DE AD BE EF|BOB; nocase;)", "alert tcp any any -> any any (msg:\"Rule 9\"; dsize: > 4 ;)", "alert tcp any any -> any any (msg:\"Rule 10\"; pcre:\"/r(a|u)wr/smi\" ;)", "alert tcp any any -> any any (msg:\"Rule 11\"; nocase; pcre:\"/(stuff=.*(a|b|c|\\;|d?rar))/i\"; dsize: > 4 ;)", "alert tcp any any -> any any (msg:\"Rule 12\"; content:\"|00|bob|00||00|bob\";)",
|
private boolean generateRuleTest() { String testValidStrings[] = { "alert tcp 10.0.0.40-10.0.0.101 any -> 66.35.250.0/24 80 (content:\"bob\"; msg:\"Rule One\"; flow: to_server;)", "alert tcp 10.0.0.101 !5000: -> 10.0.0.1/16 !80 (content: \"BOB\"; offset: 3; nocase; msg:\"Rule tW0\"; flow: from_server;)", "alert TCP 10.0.0.101 4000:5000 <> 10.0.0.1/24 :6000 (content:\"bob\"; content:\"BOB\"; nocase; msg: Rule 3; dsize: < 5;)", "alert tcp [10.0.0.101,192.168.1.1,10.0.0.44] !:80 -> any 80 (msg: Rule x4x; dsize: 3<> 10; )", "alert tcp 66.35.250.0/24 any -> 10.0.0.1/24 any (msg:\"Rule 8, Server as client test\")", "alert udp $EXTERNAL_NET any -> $HOME_NET 22 (msg:\"Rule 11(exploit test2)\"; flow:to_server,established; content:\"|00 01|W|00 00 00 18|\"; depth:7; content:\"|FF FF FF FF 00 00|\"; depth:14; offset:8; reference:bugtraq,2347; reference:cve,2001-0144; reference:cve,2001-0572; classtype:shellcode-detect; sid:1327; rev:7;)", "alert tcp any any -> any any (msg:\"Rule 6\"; content:|DE AD BE EF|BOB; nocase;)", "alert tcp any any -> any any (msg:\"Rule 5\"; dsize: > 4 ;)", "alert tcp any any -> any any (msg:\"Rule 7\"; pcre:\"/r(a|u)wr/smi\" ;)", "alert udp any any -> any any (msg:\"Rule 9\"; uricontent:\"/is/just/a/\"; nocase;)", "alert udp any any -> any any (msg:\"rule 10 (exploit test1)\"; flow:to_server,established; content:\"|90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90|\"; reference:bugtraq,2347; reference:cve,2001-0144; reference:cve,2001-0572; classtype:shellcode-detect; sid:1326; rev:6;)", "alert tcp any any -> any any (msg:\"Rule 12\"; nocase; pcre:\"/(stuff=.*(a|b|c|\\;|d?rar))/i\"; dsize: > 4 ;)", "alert tcp any any -> any any (msg:\"Rule Zero\"; content:\"|00|bob|00||00|bob\";)", "alert tcp any any -> any any (msg:\"Rule 13\"; content:\"Hi\"; content:\"Bob\"; distance: 2; )", "alert tcp any any -> any any (msg:\"Rule 14\"; content:\"Hi\"; content:\"Bob\"; within: 5; )", "alert tcp any any -> any any (msg:\"Rule 15\"; content:\"Hi\"; content:\"|02|\"; within:1; distance:1;)", "alert tcp any any -> any any (msg:\"Rule 16\"; content:\"Hi\"; distance:1; within:3; content:\"|02|\"; within:2; distance:2;)"}; for(int i=0; i < testValidStrings.length; i++) { try { rules.addRule(testValidStrings[i]); } catch (ParseException e) { log.error(e.getMessage()); } } return true; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/4d2f5444457facd99a330f153de2edf232ceac26/IDSTest.java/buggy/tran/ids/main/com/metavize/tran/ids/IDSTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
2103,
2175,
4709,
1435,
288,
202,
202,
780,
1842,
1556,
7957,
8526,
225,
202,
33,
288,
1875,
202,
6,
11798,
9658,
1728,
18,
20,
18,
20,
18,
7132,
17,
2163,
18,
20,
18,
20,
18,
15168,
1281,
317,
22342,
18,
4763,
18,
26520,
18,
20,
19,
3247,
8958,
261,
1745,
30,
2412,
70,
947,
2412,
31,
1234,
30,
2412,
2175,
6942,
2412,
31,
4693,
30,
358,
67,
3567,
31,
2225,
16,
1082,
202,
6,
11798,
9658,
1728,
18,
20,
18,
20,
18,
15168,
401,
25,
3784,
30,
317,
1728,
18,
20,
18,
20,
18,
21,
19,
2313,
401,
3672,
261,
1745,
30,
1239,
5315,
38,
2412,
31,
1384,
30,
890,
31,
30601,
448,
31,
1234,
30,
2412,
2175,
268,
59,
20,
2412,
31,
4693,
30,
628,
67,
3567,
31,
2225,
16,
1082,
202,
6,
11798,
9911,
1728,
18,
20,
18,
20,
18,
15168,
1059,
3784,
30,
25,
3784,
2813,
1728,
18,
20,
18,
20,
18,
21,
19,
3247,
294,
26,
3784,
261,
1745,
30,
2412,
70,
947,
2412,
31,
913,
30,
2412,
5315,
38,
2412,
31,
30601,
448,
31,
1234,
30,
225,
6781,
890,
31,
302,
1467,
30,
411,
1381,
31,
2225,
16,
1082,
202,
6,
11798,
9658,
306,
2163,
18,
20,
18,
20,
18,
15168,
16,
15561,
18,
23329,
18,
21,
18,
21,
16,
2163,
18,
20,
18,
20,
18,
6334,
65,
401,
30,
3672,
317,
1281,
8958,
261,
3576,
30,
6781,
619,
24,
92,
31,
302,
1467,
30,
890,
29667,
1728,
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,
1250,
2103,
2175,
4709,
1435,
288,
202,
202,
780,
1842,
1556,
7957,
8526,
225,
202,
33,
288,
1875,
202,
6,
11798,
9658,
1728,
18,
20,
18,
20,
18,
7132,
17,
2163,
18,
20,
18,
20,
18,
15168,
1281,
317,
22342,
18,
4763,
18,
26520,
18,
20,
19,
3247,
8958,
261,
1745,
30,
2412,
70,
947,
2412,
31,
1234,
30,
2412,
2175,
6942,
2412,
31,
4693,
30,
358,
67,
3567,
31,
2225,
16,
1082,
202,
6,
11798,
9658,
1728,
18,
20,
18,
20,
18,
15168,
401,
25,
3784,
30,
317,
1728,
18,
20,
18,
20,
18,
21,
19,
2313,
401,
3672,
261,
1745,
30,
1239,
5315,
38,
2412,
31,
1384,
30,
890,
31,
30601,
448,
31,
1234,
2
] |
if (isDisposed()) return;
|
if (myProject.isDisposed()) return;
|
public StructureTreeBuilder(Project project, JTree tree, DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, StructureViewModel structureModel) { super( tree, treeModel, treeStructure, null ); myProject = project; myStructureModel = structureModel; myPsiTreeChangeListener = new MyPsiTreeChangeListener(); myModelListener = new ModelListener() { public void onModelChanged() { addRootToUpdate(); } }; PsiManager.getInstance(myProject).addPsiTreeChangeListener(myPsiTreeChangeListener); myCopyPasteListener = new CopyPasteUtil.DefaultCopyPasteListener(myUpdater); CopyPasteManager.getInstance().addContentChangedListener(myCopyPasteListener); initRootNode(); myStructureModel.addModelListener(myModelListener); myDocumentsListener = new DocumentAdapter() { public void documentChanged(DocumentEvent e) { if (isDisposed()) return; if (PsiDocumentManager.getInstance(myProject).isUncommited(e.getDocument())) { final boolean hasActiveRequests = myUpdateAlarm.getActiveRequestCount() > 0; myUpdateAlarm.cancelAllRequests(); myUpdateEditorAlarm.cancelAllRequests(); myUpdateEditorAlarm.addRequest(new Runnable() { public void run() { PsiDocumentManager.getInstance(myProject).commitAllDocuments(); if (hasActiveRequests) { setupUpdateAlarm(); } } }, 300, ModalityState.stateForComponent(myTree)); } } }; EditorFactory.getInstance().getEventMulticaster().addDocumentListener(myDocumentsListener, this); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/1ef61d97de9fcde301ff26b9c6e41ab7341133dc/StructureTreeBuilder.java/buggy/source/com/intellij/ide/structureView/newStructureView/StructureTreeBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13348,
25060,
12,
4109,
1984,
16,
17311,
804,
2471,
2151,
16,
17311,
2989,
2471,
1488,
2151,
1488,
16,
17311,
4115,
2471,
6999,
2151,
6999,
16,
17311,
13348,
1767,
1488,
3695,
1488,
13,
288,
565,
2240,
12,
1377,
2151,
16,
1377,
2151,
1488,
16,
1377,
2151,
6999,
16,
446,
565,
11272,
565,
3399,
4109,
273,
1984,
31,
565,
3399,
6999,
1488,
273,
3695,
1488,
31,
565,
3399,
52,
7722,
2471,
15744,
273,
394,
8005,
52,
7722,
2471,
15744,
5621,
565,
3399,
1488,
2223,
273,
394,
3164,
2223,
1435,
288,
1377,
1071,
918,
603,
1488,
5033,
1435,
288,
3639,
527,
2375,
21267,
5621,
1377,
289,
565,
289,
31,
565,
453,
7722,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
1289,
52,
7722,
2471,
15744,
12,
4811,
52,
7722,
2471,
15744,
1769,
565,
3399,
2951,
52,
14725,
2223,
273,
394,
5631,
52,
14725,
1304,
18,
1868,
2951,
52,
14725,
2223,
12,
4811,
15305,
1769,
565,
5631,
52,
14725,
1318,
18,
588,
1442,
7675,
1289,
1350,
5033,
2223,
12,
4811,
2951,
52,
14725,
2223,
1769,
565,
1208,
29658,
5621,
565,
3399,
6999,
1488,
18,
1289,
1488,
2223,
12,
4811,
1488,
2223,
1769,
565,
3399,
12922,
2223,
273,
394,
4319,
4216,
1435,
288,
1377,
1071,
918,
1668,
5033,
12,
2519,
1133,
425,
13,
288,
3639,
309,
261,
4811,
4109,
18,
291,
1669,
7423,
10756,
327,
31,
3639,
309,
261,
52,
7722,
2519,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
291,
984,
7371,
329,
12,
73,
18,
588,
2519,
1435,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13348,
25060,
12,
4109,
1984,
16,
17311,
804,
2471,
2151,
16,
17311,
2989,
2471,
1488,
2151,
1488,
16,
17311,
4115,
2471,
6999,
2151,
6999,
16,
17311,
13348,
1767,
1488,
3695,
1488,
13,
288,
565,
2240,
12,
1377,
2151,
16,
1377,
2151,
1488,
16,
1377,
2151,
6999,
16,
446,
565,
11272,
565,
3399,
4109,
273,
1984,
31,
565,
3399,
6999,
1488,
273,
3695,
1488,
31,
565,
3399,
52,
7722,
2471,
15744,
273,
394,
8005,
52,
7722,
2471,
15744,
5621,
565,
3399,
1488,
2223,
273,
394,
3164,
2223,
1435,
288,
1377,
1071,
918,
603,
1488,
5033,
1435,
288,
3639,
527,
2375,
21267,
5621,
1377,
289,
565,
289,
31,
565,
453,
7722,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
2
] |
}
|
void advanceMultipleSelection (ListSelectionModel firstModel, int firstMin, int firstMax, ListSelectionModel secondModel, int secondMin, int secondMax, boolean reverse, boolean eventIsTab) { // If eventIsTab, all the "firsts" correspond to columns, otherwise, to rows // "seconds" correspond to the opposite int firstLead = firstModel.getLeadSelectionIndex(); int secondLead = secondModel.getLeadSelectionIndex(); int numFirsts = eventIsTab ? table.getModel().getColumnCount() : table.getModel().getRowCount(); int numSeconds = eventIsTab ? table.getModel().getRowCount() : table.getModel().getColumnCount(); // check if we have to wrap the "firsts" around, going to the other side if ((firstLead == firstMax && !reverse) || (reverse && firstLead == firstMin)) { firstModel.addSelectionInterval(reverse ? firstMax : firstMin, reverse ? firstMax : firstMin); // check if we have to wrap the "seconds" if ((secondLead == secondMax && !reverse) || (reverse && secondLead == secondMin)) secondModel.addSelectionInterval(reverse ? secondMax : secondMin, reverse ? secondMax : secondMin); // if we're not wrapping the seconds, we have to find out where we // are within the secondModel and advance to the next cell (or // go back to the previous cell if reverse == true) else { int[] secondsSelected; if (eventIsTab && table.getRowSelectionAllowed() || !eventIsTab && table.getColumnSelectionAllowed()) secondsSelected = eventIsTab ? table.getSelectedRows() : table.getSelectedColumns(); else { // if row selection is not allowed, then the entire column gets // selected when you click on it, so consider ALL rows selected secondsSelected = new int[numSeconds]; for (int i = 0; i < numSeconds; i++) secondsSelected[i] = i; } // and now find the "next" index within the model int secondIndex = reverse ? secondsSelected.length - 1 : 0; if (!reverse) while (secondsSelected[secondIndex] <= secondLead) secondIndex++; else while (secondsSelected[secondIndex] >= secondLead) secondIndex--; // and select it - updating the lead selection index secondModel.addSelectionInterval(secondsSelected[secondIndex], secondsSelected[secondIndex]); } } // We didn't have to wrap the firsts, so just find the "next" first // and select it, we don't have to change "seconds" else { int[] firstsSelected; if (eventIsTab && table.getColumnSelectionAllowed() || !eventIsTab && table.getRowSelectionAllowed()) firstsSelected = eventIsTab ? table.getSelectedColumns() : table.getSelectedRows(); else { // if selection not allowed, consider ALL firsts to be selected firstsSelected = new int[numFirsts]; for (int i = 0; i < numFirsts; i++) firstsSelected[i] = i; } int firstIndex = reverse ? firstsSelected.length - 1 : 0; if (!reverse) while (firstsSelected[firstIndex] <= firstLead) firstIndex++; else while (firstsSelected[firstIndex] >= firstLead) firstIndex--; firstModel.addSelectionInterval(firstsSelected[firstIndex], firstsSelected[firstIndex]); secondModel.addSelectionInterval(secondLead, secondLead); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
8312,
8438,
6233,
261,
682,
6233,
1488,
1122,
1488,
16,
509,
1122,
2930,
16,
4766,
282,
509,
1122,
2747,
16,
987,
6233,
1488,
2205,
1488,
16,
4766,
565,
509,
2205,
2930,
16,
509,
2205,
2747,
16,
1250,
4219,
16,
4766,
282,
1250,
871,
2520,
5661,
13,
225,
288,
1377,
368,
971,
871,
2520,
5661,
16,
777,
326,
315,
3645,
87,
6,
4325,
358,
2168,
16,
3541,
16,
358,
2595,
1377,
368,
315,
7572,
6,
4325,
358,
326,
20759,
1377,
509,
1122,
9678,
273,
1122,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
2205,
9678,
273,
2205,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
818,
3759,
87,
273,
871,
2520,
5661,
692,
540,
1014,
18,
588,
1488,
7675,
588,
1494,
1380,
1435,
294,
1014,
18,
588,
1488,
7675,
588,
26359,
5621,
1377,
509,
818,
6762,
273,
871,
2520,
5661,
692,
540,
1014,
18,
588,
1488,
7675,
588,
26359,
1435,
294,
1014,
18,
588,
1488,
7675,
588,
1494,
1380,
5621,
1377,
368,
866,
309,
732,
1240,
358,
2193,
326,
315,
3645,
87,
6,
6740,
16,
8554,
358,
326,
1308,
4889,
1377,
309,
14015,
3645,
9678,
422,
1122,
2747,
597,
401,
9845,
13,
747,
6647,
261,
9845,
597,
1122,
9678,
422,
1122,
2930,
3719,
565,
288,
1850,
1122,
1488,
18,
1289,
6233,
4006,
12,
9845,
692,
1122,
2747,
294,
1122,
2930,
16,
4766,
6647,
4219,
692,
1122,
2747,
294,
1122,
2930,
1769,
10792,
368,
866,
309,
732,
1240,
358,
2193,
326,
315,
7572,
6,
1850,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
8312,
8438,
6233,
261,
682,
6233,
1488,
1122,
1488,
16,
509,
1122,
2930,
16,
4766,
282,
509,
1122,
2747,
16,
987,
6233,
1488,
2205,
1488,
16,
4766,
565,
509,
2205,
2930,
16,
509,
2205,
2747,
16,
1250,
4219,
16,
4766,
282,
1250,
871,
2520,
5661,
13,
225,
288,
1377,
368,
971,
871,
2520,
5661,
16,
777,
326,
315,
3645,
87,
6,
4325,
358,
2168,
16,
3541,
16,
358,
2595,
1377,
368,
315,
7572,
6,
4325,
358,
326,
20759,
1377,
509,
1122,
9678,
273,
1122,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
2205,
9678,
273,
2205,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
818,
3759,
87,
273,
871,
2520,
5661,
692,
540,
1014,
18,
2
] |
|
result = new String[0]; break;
|
return null;
|
public String[] getRequiredAttributesForId(int id) { String [] result = new String[1]; switch (id) { case IProblem.SEMANTIC_UNIQUE_NAME_PREDEFINED : case IProblem.SEMANTIC_NAME_NOT_FOUND: case IProblem.SEMANTIC_AMBIGUOUS_LOOKUP: result[0] = IProblem.A_SYMBOL_NAME; break; case IProblem.SEMANTIC_INVALID_TYPE: result[0] = IProblem.A_TYPE_NAME; break; case IProblem.SEMANTIC_INVALID_USING: result[0] = IProblem.A_NAMESPACE_NAME; break; case IProblem.SEMANTIC_NAME_NOT_PROVIDED: result = new String[0]; break; } return result; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/024eca49581fcf338305dc1610be52c9bbb44581/ASTProblemFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTProblemFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8526,
19881,
2498,
1290,
548,
12,
474,
612,
13,
288,
202,
202,
780,
5378,
563,
273,
394,
514,
63,
21,
15533,
3196,
202,
9610,
261,
350,
13,
202,
202,
95,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
16879,
67,
1985,
67,
3670,
15544,
294,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
1985,
67,
4400,
67,
9294,
30,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
2192,
19044,
57,
21667,
67,
1502,
31581,
30,
9506,
202,
2088,
63,
20,
65,
273,
467,
13719,
18,
37,
67,
22093,
67,
1985,
31,
4697,
202,
8820,
31,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
9347,
67,
2399,
30,
9506,
202,
2088,
63,
20,
65,
273,
467,
13719,
18,
37,
67,
2399,
67,
1985,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
9347,
67,
3378,
1360,
30,
4697,
202,
2088,
63,
20,
65,
273,
467,
13719,
18,
37,
67,
11368,
67,
1985,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
1985,
67,
4400,
67,
3373,
15472,
2056,
30,
9506,
202,
2088,
273,
394,
514,
63,
20,
15533,
9506,
202,
8820,
31,
202,
202,
97,
202,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8526,
19881,
2498,
1290,
548,
12,
474,
612,
13,
288,
202,
202,
780,
5378,
563,
273,
394,
514,
63,
21,
15533,
3196,
202,
9610,
261,
350,
13,
202,
202,
95,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
16879,
67,
1985,
67,
3670,
15544,
294,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
1985,
67,
4400,
67,
9294,
30,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
2192,
19044,
57,
21667,
67,
1502,
31581,
30,
9506,
202,
2088,
63,
20,
65,
273,
467,
13719,
18,
37,
67,
22093,
67,
1985,
31,
4697,
202,
8820,
31,
1082,
202,
3593,
467,
13719,
18,
1090,
49,
6856,
2871,
67,
2
] |
public String getDisplayName() {
|
public String getDisplayName(){
|
public String getDisplayName() { return "java.lang import"; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/d6e7604c0e820eb6080db33dc4f7b731664f07e9/JavaLangImportInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/imports/JavaLangImportInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22055,
1435,
95,
3639,
327,
315,
6290,
18,
4936,
1930,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22055,
1435,
95,
3639,
327,
315,
6290,
18,
4936,
1930,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getVm().allThreads.remove(thread);
|
final Vm vm = getVm(); final SpinLock lock = vm.allThreadsLock; final VmThreadQueue.AllThreadsQueue q = vm.allThreads; lock.lock(); try { q.remove(thread); } finally { lock.unlock(); }
|
static final void unregisterThread(VmThread thread) { getVm().allThreads.remove(thread); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7c124e5b50fbe2a2415022b4bdc34cb2a55ce7a9/Vm.java/buggy/core/src/core/org/jnode/vm/Vm.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
918,
10232,
3830,
12,
22143,
3830,
2650,
13,
288,
3639,
727,
776,
81,
4268,
273,
11031,
81,
5621,
727,
28379,
2531,
2176,
273,
4268,
18,
454,
13233,
2531,
31,
727,
776,
81,
3830,
3183,
18,
1595,
13233,
3183,
1043,
273,
4268,
18,
454,
13233,
31,
2176,
18,
739,
5621,
775,
288,
1043,
18,
4479,
12,
5930,
1769,
289,
3095,
288,
2176,
18,
26226,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
918,
10232,
3830,
12,
22143,
3830,
2650,
13,
288,
3639,
727,
776,
81,
4268,
273,
11031,
81,
5621,
727,
28379,
2531,
2176,
273,
4268,
18,
454,
13233,
2531,
31,
727,
776,
81,
3830,
3183,
18,
1595,
13233,
3183,
1043,
273,
4268,
18,
454,
13233,
31,
2176,
18,
739,
5621,
775,
288,
1043,
18,
4479,
12,
5930,
1769,
289,
3095,
288,
2176,
18,
26226,
5621,
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
] |
this(null);
|
this(null, null);
|
public SimulatorViewportCreateDialog() { this(null); }
|
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/e189b7abf8a9e10f29a811de6b84cc7af1e46f08/SimulatorViewportCreateDialog.java/buggy/modules/vrjuggler/vrjconfig/customeditors/display_window/org/vrjuggler/vrjconfig/customeditors/display_window/SimulatorViewportCreateDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
9587,
11775,
22743,
1684,
6353,
1435,
282,
288,
1377,
333,
12,
2011,
16,
446,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9587,
11775,
22743,
1684,
6353,
1435,
282,
288,
1377,
333,
12,
2011,
16,
446,
1769,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 SystemProperty(SystemPropertyGroup group, String name) { this.group = group;
|
public SystemProperty(String name) {
|
public SystemProperty(SystemPropertyGroup group, String name) { this.group = group; this.name = name; group.addSystemProperty(this); }
|
14547 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14547/e4172fc5d39fd99380b5511390182661c07a0f1a/SystemProperty.java/buggy/org.knopflerfish.eclipse.core/src/org/knopflerfish/eclipse/core/SystemProperty.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2332,
1396,
12,
3163,
1396,
1114,
1041,
16,
514,
508,
13,
288,
565,
333,
18,
1655,
273,
1041,
31,
565,
333,
18,
529,
273,
508,
31,
3639,
1041,
18,
1289,
3163,
1396,
12,
2211,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2332,
1396,
12,
3163,
1396,
1114,
1041,
16,
514,
508,
13,
288,
565,
333,
18,
1655,
273,
1041,
31,
565,
333,
18,
529,
273,
508,
31,
3639,
1041,
18,
1289,
3163,
1396,
12,
2211,
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
] |
UIJob closeJob = new UIJob(ProgressMessages .getString("AnimationItem.CloseWindowJob")) {
|
UIJob closeJob = new UIJob(ProgressMessages.getString("AnimationItem.CloseWindowJob")) {
|
private void closeWindowInUI() { UIJob closeJob = new UIJob(ProgressMessages .getString("AnimationItem.CloseWindowJob")) { //$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { closeAndClearFloatingWindow(); return Status.OK_STATUS; } }; closeJob.setSystem(true); closeJob.schedule(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/baa6c87756d35130a637c24b38f965e7a5a7f249/AnimationItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1746,
3829,
382,
5370,
1435,
288,
202,
202,
5370,
2278,
1746,
2278,
273,
394,
6484,
2278,
12,
5491,
5058,
9506,
202,
18,
588,
780,
2932,
10816,
1180,
18,
4605,
3829,
2278,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
4412,
1876,
9094,
28344,
3829,
5621,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
1082,
202,
97,
202,
202,
20451,
202,
202,
4412,
2278,
18,
542,
3163,
12,
3767,
1769,
202,
202,
4412,
2278,
18,
10676,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1746,
3829,
382,
5370,
1435,
288,
202,
202,
5370,
2278,
1746,
2278,
273,
394,
6484,
2278,
12,
5491,
5058,
9506,
202,
18,
588,
780,
2932,
10816,
1180,
18,
4605,
3829,
2278,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
4412,
1876,
9094,
28344,
3829,
5621,
2
] |
if (command.equals("phytCodeCombo"))
|
if (command.equals("phytCodeCombo") && (c.getSelectedItem() instanceof Pair))
|
public void actionPerformed(ActionEvent e) { JComboBox c = null; c = (JComboBox) e.getSource(); String command = e.getActionCommand(); System.out.println("command: "+command); //------- ComboBoxes -------- // if (command.equals("authorComboBox"))// model.setAuthor((Pair<String, Integer>) c.getSelectedItem()); if (command.equals("townComboBox")) model.setVillage((Pair<String, Integer>) c.getSelectedItem()); if (command.equals("territoryNameCombo")) model.setTerritoryName((Pair<String, Integer>) c.getSelectedItem()); if (command.equals("phytNameCombo")) model.setPhytName((Pair<String, Integer>) c.getSelectedItem()); if (command.equals("phytCodeCombo")) //System.out.println("c.getSelectedItem(): "+c.getSelectedItem()); model.setPhytCode((Pair<String, Integer>) c.getSelectedItem()); if (command.equals("phytCountryCombo")) model.setPhytCountry((String) c.getSelectedItem()); if (command.equals("sourceCombo")) model.setSource((String) c.getSelectedItem()); if (command.equals("publicationCombo")) model.setPublication((Pair<String, Integer>) c.getSelectedItem()); if (command.equals("projectCombo")) model.setProject((Pair<String, Integer>) c.getSelectedItem()); }
|
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/ba39e72504eb4c91382155f938da4e9096476d7c/AddEditCtrl.java/clean/trunk/src/net/sf/plantlore/client/AddEditCtrl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
804,
22199,
276,
273,
446,
31,
13491,
276,
225,
273,
261,
46,
22199,
13,
425,
18,
588,
1830,
5621,
13491,
514,
1296,
273,
425,
18,
588,
1803,
2189,
5621,
13491,
2332,
18,
659,
18,
8222,
2932,
3076,
30,
13773,
3076,
1769,
13491,
368,
17082,
1286,
1075,
29521,
27093,
5411,
368,
5411,
309,
261,
3076,
18,
14963,
2932,
4161,
22199,
6,
3719,
759,
7734,
938,
18,
542,
3594,
12443,
4154,
32,
780,
16,
2144,
23429,
276,
18,
588,
7416,
1180,
10663,
18701,
309,
261,
3076,
18,
14963,
2932,
13401,
22199,
6,
3719,
7734,
938,
18,
542,
58,
737,
410,
12443,
4154,
32,
780,
16,
2144,
23429,
276,
18,
588,
7416,
1180,
10663,
15604,
309,
261,
3076,
18,
14963,
2932,
88,
25313,
461,
16156,
6,
3719,
7734,
938,
18,
542,
56,
25313,
461,
12443,
4154,
32,
780,
16,
2144,
23429,
276,
18,
588,
7416,
1180,
10663,
5411,
309,
261,
3076,
18,
14963,
2932,
844,
93,
88,
461,
16156,
6,
3719,
7734,
938,
18,
542,
3731,
93,
88,
461,
12443,
4154,
32,
780,
16,
2144,
23429,
276,
18,
588,
7416,
1180,
10663,
15604,
309,
261,
3076,
18,
14963,
2932,
844,
93,
88,
1085,
16156,
7923,
597,
261,
71,
18,
588,
7416,
1180,
1435,
1276,
8599,
3719,
7734,
368,
3163,
18,
659,
18,
8222,
2932,
71,
18,
588,
7416,
1180,
13332,
13773,
71,
18,
588,
7416,
1180,
10663,
7734,
938,
18,
542,
3731,
93,
88,
1085,
12443,
4154,
32,
780,
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,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
804,
22199,
276,
273,
446,
31,
13491,
276,
225,
273,
261,
46,
22199,
13,
425,
18,
588,
1830,
5621,
13491,
514,
1296,
273,
425,
18,
588,
1803,
2189,
5621,
13491,
2332,
18,
659,
18,
8222,
2932,
3076,
30,
13773,
3076,
1769,
13491,
368,
17082,
1286,
1075,
29521,
27093,
5411,
368,
5411,
309,
261,
3076,
18,
14963,
2932,
4161,
22199,
6,
3719,
759,
7734,
938,
18,
542,
3594,
12443,
4154,
32,
780,
16,
2144,
23429,
276,
18,
588,
7416,
1180,
10663,
18701,
309,
261,
3076,
18,
14963,
2932,
13401,
22199,
6,
3719,
7734,
938,
18,
542,
58,
737,
410,
12443,
4154,
32,
780,
16,
2144,
23429,
276,
18,
588,
2
] |
_t = __t1433;
|
_t = __t1438;
|
public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1396 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1396; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1397 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1397; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1398 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1398; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1399 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1399; _t = _t.getNextSibling(); break; } case ASC: { AST __t1400 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1400; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1401 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1401; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1402 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1402; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1403 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1403; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1404 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1404; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1405 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1405; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1406 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1406; _t = _t.getNextSibling(); break; } case CHR: { AST __t1407 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1407; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1408 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1408; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1409 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1409; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1410 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1410; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1411 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1412 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1413 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case DATE: { AST __t1414 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1415 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1416 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case DAY: { AST __t1417 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1418 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1419 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1420 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1421 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1422 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1423 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1424 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1425 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1426 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1427 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1428 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1429 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case EXP: { AST __t1430 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case FILL: { AST __t1431 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1432 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1433 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1434 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1435 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1436 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1437 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1438 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1439 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1440 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1441 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1442 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1443 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1444 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1445 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1446 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1447 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1448 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1449 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1450 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1451 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1452 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1453 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1454 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1455 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1456 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1457 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1458 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1459 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1460 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1461 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1462 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1463 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case LAST: { AST __t1464 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1465 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case LC: { AST __t1466 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1467 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1468 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1469 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1470 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1471 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1472 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1473 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case LOG: { AST __t1474 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1475 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1476 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1477 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1478 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1479 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1480 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1481 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1482 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1483 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1484 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1485 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1486 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1487 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1488 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1489 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1490 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1491 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1492 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1493 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1494 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1495 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1496 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1497 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1498 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1499 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1500 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1501 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1502 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case STRING: { AST __t1503 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1504 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1505 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1506 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1507 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1508 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1509 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1510 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1511 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1512 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1513 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1514 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3437,
10525,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
432,
2192,
30820,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10580,
273,
389,
88,
31,
1082,
202,
9053,
1853,
25574,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2192,
30820,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
2226,
15650,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
5026,
24,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
37,
2226,
15650,
1769,
1082,
202,
67,
88,
2
] |
button.setText("Update java classpath");
|
button.setText(PDEUIMessages.LibrarySection_addDialogButton);
|
protected Control createDialogArea(Composite parent) { Composite comp = (Composite)super.createDialogArea(parent); final Button button = new Button(comp, SWT.CHECK); button.setText("Update java classpath"); button.setSelection(updateClasspath[0]); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { updateClasspath[0] = button.getSelection(); } }); return comp; }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/6c58a898667ea1adda4c49bdcf632ebd7647a611/LibrarySection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/LibrarySection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
9506,
202,
9400,
1161,
273,
261,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
9506,
202,
6385,
12569,
3568,
273,
394,
12569,
12,
2919,
16,
348,
8588,
18,
10687,
1769,
9506,
202,
5391,
18,
542,
1528,
2932,
1891,
2252,
10006,
8863,
9506,
202,
5391,
18,
542,
6233,
12,
2725,
17461,
63,
20,
19226,
9506,
202,
5391,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
6862,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
25083,
202,
2725,
17461,
63,
20,
65,
273,
3568,
18,
588,
6233,
5621,
6862,
202,
97,
9506,
202,
22938,
9506,
202,
2463,
1161,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
9506,
202,
9400,
1161,
273,
261,
9400,
13,
9565,
18,
2640,
6353,
5484,
12,
2938,
1769,
9506,
202,
6385,
12569,
3568,
273,
394,
12569,
12,
2919,
16,
348,
8588,
18,
10687,
1769,
9506,
202,
5391,
18,
542,
1528,
2932,
1891,
2252,
10006,
8863,
9506,
202,
5391,
18,
542,
6233,
12,
2725,
17461,
63,
20,
19226,
9506,
202,
5391,
18,
1289,
6233,
2223,
12,
2704,
12977,
4216,
1435,
288,
6862,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
25083,
202,
2725,
17461,
63,
20,
65,
273,
3568,
18,
588,
6233,
5621,
6862,
202,
97,
9506,
202,
22938,
9506,
202,
2463,
1161,
31,
1082,
202,
97,
2
] |
words.add(word); };
|
Integer lenght = new Integer(word.length()); if(sortedWords.containsKey(lenght)){ ArrayList thisLenghtwords = (ArrayList)sortedWords.get(lenght); thisLenghtwords.add(word); sortedWords.put(lenght,thisLenghtwords); }else{ ArrayList thisLenghtwords = new ArrayList(); thisLenghtwords.add(word); sortedWords.put(lenght,thisLenghtwords); } }
|
public void addWord(String word) { words.add(word); };
|
9670 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9670/bbd0582ebcb0050711848a94cdc48088d6fd1abf/WordList.java/clean/core/src/java/com/octo/captcha/image/gimpy/wordgenerator/WordList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3944,
12,
780,
2076,
13,
565,
288,
3639,
4511,
18,
1289,
12,
1095,
1769,
565,
289,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3944,
12,
780,
2076,
13,
565,
288,
3639,
4511,
18,
1289,
12,
1095,
1769,
565,
289,
31,
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
] |
log.info(LogManager.getHeader(context, "autoregister", "netid=" + netid)); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) { try { eperson = EPerson.findByEmail(context, ldap.ldapEmail); } catch (AuthorizeException e) { eperson = null; } if (eperson!=null) { log.info(LogManager.getHeader(context, "failed_autoregister", "type=ldap_but_already_email")); return SUCCESS; } }
|
public int authenticate(Context context, String netid, String password, String realm, HttpServletRequest request) throws SQLException { log.info(LogManager.getHeader(context, "auth", "attempting trivial auth of user="+netid)); // Locate the eperson EPerson eperson = null; try { eperson = EPerson.findByNetid(context, netid.toLowerCase()); } catch (SQLException e) { } boolean loggedIn = false; SpeakerToLDAP ldap = new SpeakerToLDAP(log); // if they entered a netid that matches an eperson if (eperson != null) { // e-mail address corresponds to active account if (eperson.getRequireCertificate()) return CERT_REQUIRED; else if (!eperson.canLogIn()) return BAD_ARGS; { if (ldap.ldapAuthenticate(netid, password, context)) { log.info(LogManager .getHeader(context, "authenticate", "type=ldap")); return SUCCESS; } else return BAD_CREDENTIALS; } } // the user does not already exist so try and authenticate them // with ldap and create an eperson for them else { if (ldap.ldapAuthenticate(netid, password, context)) { if (canSelfRegister(context, request, netid)) { // Register the new user automatically log.info(LogManager.getHeader(context, "autoregister", "netid=" + netid)); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) { try { eperson = EPerson.findByEmail(context, ldap.ldapEmail); } catch (AuthorizeException e) { eperson = null; } if (eperson!=null) { log.info(LogManager.getHeader(context, "failed_autoregister", "type=ldap_but_already_email")); return SUCCESS; } } // TEMPORARILY turn off authorisation try { context.setIgnoreAuthorization(true); eperson = EPerson.create(context); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) eperson.setEmail(ldap.ldapEmail); else eperson.setEmail(netid); if ((ldap.ldapGivenName!=null)&&(!ldap.ldapGivenName.equals(""))) eperson.setFirstName(ldap.ldapGivenName); if ((ldap.ldapSurname!=null)&&(!ldap.ldapSurname.equals(""))) eperson.setLastName(ldap.ldapSurname); if ((ldap.ldapPhone!=null)&&(!ldap.ldapPhone.equals(""))) eperson.setMetadata("phone", ldap.ldapPhone); eperson.setNetid(netid); eperson.setCanLogIn(true); AuthenticationManager.initEPerson(context, request, eperson); eperson.update(); context.commit(); } catch (AuthorizeException e) { return NO_SUCH_USER; } finally { context.setIgnoreAuthorization(false); } log.info(LogManager.getHeader(context, "authenticate", "type=ldap-login, created ePerson")); return SUCCESS; } else { // No auto-registration for valid certs log.info(LogManager.getHeader(context, "failed_login", "type=ldap_but_no_record")); return NO_SUCH_USER; } } } return BAD_ARGS; }
|
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/2fdbe50f7c2b7a874257127e6d54923be9660204/LDAPAuthentication.java/buggy/dspace/src/org/dspace/eperson/LDAPAuthentication.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8929,
12,
1042,
819,
16,
18701,
514,
2901,
350,
16,
18701,
514,
2201,
16,
18701,
514,
11319,
16,
18701,
9984,
590,
13,
3639,
1216,
6483,
565,
288,
3639,
613,
18,
1376,
12,
1343,
1318,
18,
588,
1864,
12,
2472,
16,
315,
1944,
3113,
315,
11764,
310,
433,
20109,
1357,
434,
729,
1546,
15,
2758,
350,
10019,
3639,
368,
2851,
340,
326,
5529,
3565,
3639,
512,
8346,
5529,
3565,
273,
446,
31,
3639,
775,
3639,
288,
5411,
5529,
3565,
273,
512,
8346,
18,
4720,
858,
7308,
350,
12,
2472,
16,
2901,
350,
18,
869,
5630,
10663,
3639,
289,
3639,
1044,
261,
23116,
425,
13,
3639,
288,
3639,
289,
3639,
1250,
7545,
382,
273,
629,
31,
3639,
348,
347,
6388,
774,
15496,
8079,
273,
394,
348,
347,
6388,
774,
15496,
12,
1330,
1769,
3639,
368,
309,
2898,
16219,
279,
2901,
350,
716,
1885,
392,
5529,
3565,
3639,
309,
261,
881,
3565,
480,
446,
13,
3639,
288,
5411,
368,
425,
17,
4408,
1758,
13955,
358,
2695,
2236,
5411,
309,
261,
881,
3565,
18,
588,
8115,
4719,
10756,
7734,
327,
25423,
67,
14977,
31,
5411,
469,
309,
16051,
881,
3565,
18,
4169,
1343,
382,
10756,
7734,
327,
16467,
67,
22439,
31,
5411,
288,
7734,
309,
261,
14394,
18,
14394,
17618,
12,
2758,
350,
16,
2201,
16,
819,
3719,
7734,
288,
10792,
613,
18,
1376,
12,
1343,
1318,
13491,
263,
588,
1864,
12,
2472,
16,
315,
22035,
3113,
315,
723,
33,
14394,
7923,
1769,
10792,
327,
16561,
31,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8929,
12,
1042,
819,
16,
18701,
514,
2901,
350,
16,
18701,
514,
2201,
16,
18701,
514,
11319,
16,
18701,
9984,
590,
13,
3639,
1216,
6483,
565,
288,
3639,
613,
18,
1376,
12,
1343,
1318,
18,
588,
1864,
12,
2472,
16,
315,
1944,
3113,
315,
11764,
310,
433,
20109,
1357,
434,
729,
1546,
15,
2758,
350,
10019,
3639,
368,
2851,
340,
326,
5529,
3565,
3639,
512,
8346,
5529,
3565,
273,
446,
31,
3639,
775,
3639,
288,
5411,
5529,
3565,
273,
512,
8346,
18,
4720,
858,
7308,
350,
12,
2472,
16,
2901,
350,
18,
869,
5630,
10663,
3639,
289,
3639,
1044,
261,
23116,
425,
13,
3639,
288,
3639,
289,
3639,
1250,
7545,
382,
273,
629,
31,
3639,
348,
2
] |
|
if (true) {
|
if (false) {
|
public static Test suite() { if (true) { return new Suite(ASTConverterTest2.class); } TestSuite suite = new Suite(ASTConverterTest2.class.getName()); suite.addTest(new ASTConverterTest2("test0551")); return suite; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/8d1eb8a1ba1f8d42e85f057c2e74fe0db8cb690d/ASTConverterTest2.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTest2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
430,
261,
3767,
13,
288,
1082,
202,
2463,
394,
348,
9519,
12,
9053,
5072,
4709,
22,
18,
1106,
1769,
9506,
202,
97,
202,
202,
4709,
13587,
11371,
273,
394,
348,
9519,
12,
9053,
5072,
4709,
22,
18,
1106,
18,
17994,
10663,
202,
202,
30676,
18,
1289,
4709,
12,
2704,
9183,
5072,
4709,
22,
2932,
3813,
20,
2539,
21,
7923,
1769,
202,
202,
2463,
11371,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
430,
261,
3767,
13,
288,
1082,
202,
2463,
394,
348,
9519,
12,
9053,
5072,
4709,
22,
18,
1106,
1769,
9506,
202,
97,
202,
202,
4709,
13587,
11371,
273,
394,
348,
9519,
12,
9053,
5072,
4709,
22,
18,
1106,
18,
17994,
10663,
202,
202,
30676,
18,
1289,
4709,
12,
2704,
9183,
5072,
4709,
22,
2932,
3813,
20,
2539,
21,
7923,
1769,
202,
202,
2463,
11371,
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
] |
SMTPProtocol smtpProtocol1 = new SMTPProtocol("127.0.0.1", m_smtpListenerPort); SMTPProtocol smtpProtocol2 = new SMTPProtocol("127.0.0.1", m_smtpListenerPort); smtpProtocol1.openPort(); smtpProtocol2.openPort();
|
SMTPClient smtpProtocol1 = new SMTPClient(); smtpProtocol1.connect("127.0.0.1", m_smtpListenerPort); SMTPClient smtpProtocol2 = new SMTPClient(); smtpProtocol2.connect("127.0.0.1", m_smtpListenerPort);
|
public void testTwoSimultaneousMails() throws Exception, SMTPException { finishSetUp(m_testConfiguration); SMTPProtocol smtpProtocol1 = new SMTPProtocol("127.0.0.1", m_smtpListenerPort); SMTPProtocol smtpProtocol2 = new SMTPProtocol("127.0.0.1", m_smtpListenerPort); smtpProtocol1.openPort(); smtpProtocol2.openPort(); assertEquals("first connection taken", 1, smtpProtocol1.getState()); assertEquals("second connection taken", 1, smtpProtocol2.getState()); // no message there, yet assertNull("no mail received by mail server", m_mailServer.getLastMail()); smtpProtocol1.helo(InetAddress.getLocalHost()); smtpProtocol2.helo(InetAddress.getLocalHost()); String sender1 = "mail_sender1@localhost"; String recipient1 = "mail_recipient1@localhost"; smtpProtocol1.mail(new Address(sender1)); smtpProtocol1.rcpt(new Address(recipient1)); String sender2 = "mail_sender2@localhost"; String recipient2 = "mail_recipient2@localhost"; smtpProtocol2.mail(new Address(sender2)); smtpProtocol2.rcpt(new Address(recipient2)); smtpProtocol1.data(MimeTreeRenderer.getInstance().renderMimePart(createMail())); verifyLastMail(sender1, recipient1, null); smtpProtocol2.data(MimeTreeRenderer.getInstance().renderMimePart(createMail())); verifyLastMail(sender2, recipient2, null); smtpProtocol1.quit(); smtpProtocol2.quit(); }
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/36ca715b2ae7da1381d09c7859e92ec192618503/SMTPServerTest.java/clean/src/test/org/apache/james/smtpserver/SMTPServerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11710,
7993,
25013,
6759,
87,
1435,
1216,
1185,
16,
18102,
503,
288,
3639,
4076,
694,
1211,
12,
81,
67,
3813,
1750,
1769,
3639,
18102,
5752,
17660,
5752,
21,
273,
394,
18102,
5752,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
312,
67,
20278,
2223,
2617,
1769,
3639,
18102,
5752,
17660,
5752,
22,
273,
394,
18102,
5752,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
312,
67,
20278,
2223,
2617,
1769,
3639,
17660,
5752,
21,
18,
3190,
2617,
5621,
3639,
17660,
5752,
22,
18,
3190,
2617,
5621,
3639,
1815,
8867,
2932,
3645,
1459,
9830,
3113,
404,
16,
17660,
5752,
21,
18,
588,
1119,
10663,
3639,
1815,
8867,
2932,
8538,
1459,
9830,
3113,
404,
16,
17660,
5752,
22,
18,
588,
1119,
10663,
3639,
368,
1158,
883,
1915,
16,
4671,
3639,
1815,
2041,
2932,
2135,
4791,
5079,
635,
4791,
1438,
3113,
312,
67,
4408,
2081,
18,
588,
3024,
6759,
10663,
3639,
17660,
5752,
21,
18,
76,
24214,
12,
382,
278,
1887,
18,
588,
2042,
2594,
10663,
3639,
17660,
5752,
22,
18,
76,
24214,
12,
382,
278,
1887,
18,
588,
2042,
2594,
10663,
3639,
514,
5793,
21,
273,
315,
4408,
67,
15330,
21,
36,
13014,
14432,
3639,
514,
8027,
21,
273,
315,
4408,
67,
20367,
21,
36,
13014,
14432,
3639,
17660,
5752,
21,
18,
4408,
12,
2704,
5267,
12,
15330,
21,
10019,
3639,
17660,
5752,
21,
18,
1310,
337,
12,
2704,
5267,
12,
20367,
21,
10019,
3639,
514,
5793,
22,
273,
315,
4408,
67,
15330,
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,
11710,
7993,
25013,
6759,
87,
1435,
1216,
1185,
16,
18102,
503,
288,
3639,
4076,
694,
1211,
12,
81,
67,
3813,
1750,
1769,
3639,
18102,
5752,
17660,
5752,
21,
273,
394,
18102,
5752,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
312,
67,
20278,
2223,
2617,
1769,
3639,
18102,
5752,
17660,
5752,
22,
273,
394,
18102,
5752,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
312,
67,
20278,
2223,
2617,
1769,
3639,
17660,
5752,
21,
18,
3190,
2617,
5621,
3639,
17660,
5752,
22,
18,
3190,
2617,
5621,
3639,
1815,
8867,
2932,
3645,
1459,
9830,
3113,
404,
16,
17660,
5752,
21,
18,
588,
1119,
10663,
3639,
1815,
8867,
2932,
8538,
1459,
9830,
3113,
404,
16,
2
] |
if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "No password ("+passwd+" should be "+core.formPassword+")");
|
if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "No password ("+passwd+" should be "+core.formPassword+ ')');
|
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } HTTPRequest request = new HTTPRequest(uri,data,ctx); String passwd = request.getPartAsString("formPassword", 32); boolean noPassword = (passwd == null) || !passwd.equals(core.formPassword); if(noPassword) { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "No password ("+passwd+" should be "+core.formPassword+")"); } if(request.getPartAsString("updateconfirm", 32).length() > 0){ if(noPassword) { redirectToRoot(ctx); return; } // false for no navigation bars, because that would be very silly HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node updating"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "Node updating")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "The Freenet node is being updated and will self-restart. The restart process may take up to 10 minutes, because the node will try to fetch a revocation key before updating."); content.addChild("p").addChild("#", "Thank you for using Freenet."); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); Logger.normal(this, "Node is updating/restarting"); node.ps.queueTimedJob(new Runnable() { public void run() { node.getNodeUpdater().Update(); }}, 0); return; }else if (request.getPartAsString(GenericReadFilterCallback.magicHTTPEscapeString, MAX_URL_LENGTH).length()>0){ if(noPassword) { redirectToRoot(ctx); return; } MultiValueTable headers = new MultiValueTable(); String url = null; if((request.getPartAsString("Go", 32).length() > 0)) url = request.getPartAsString(GenericReadFilterCallback.magicHTTPEscapeString, MAX_URL_LENGTH); headers.put("Location", url==null ? "/" : url); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; }else if (request.getPartAsString("update", 32).length() > 0) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Update"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Node Update")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to update your Freenet node?"); HTMLNode updateForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/", "post" }); updateForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); updateForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "updateconfirm", "Update" }); updateForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if(request.isPartSet("getThreadDump")) { if(noPassword) { redirectToRoot(ctx); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Get a Thread Dump"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); if(node.isUsingWrapper()){ HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("Thread Dump generation")); ctx.getPageMaker().getContentNode(infobox).addChild("#", "A thread dump has been generated, it's available in "+ WrapperManager.getProperties().getProperty("wrapper.logfile")); System.out.println("Thread Dump:"); WrapperManager.requestThreadDump(); }else{ HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-error","Thread Dump generation")); ctx.getPageMaker().getContentNode(infobox).addChild("#", "It's not possible to make the node generate a thread dump if you aren't using the wrapper!"); } this.writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; }else if (request.isPartSet("addbookmark")) { if(noPassword) { redirectToRoot(ctx); return; } String key = request.getPartAsString("key", MAX_KEY_LENGTH); String name = request.getPartAsString("name", MAX_NAME_LENGTH); try { bookmarks.addBookmark(new Bookmark(key, name), true); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_ADD, null, key, name, "Given key does not appear to be a valid Freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { } } else if (request.isPartSet("managebookmarks")) { if(noPassword) { redirectToRoot(ctx); return; } Enumeration e = bookmarks.getBookmarks(); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); if (request.isPartSet("delete_"+b.hashCode())) { bookmarks.removeBookmark(b, true); } else if (request.isPartSet("edit_"+b.hashCode())) { this.sendBookmarkEditPage(ctx, b); return; } else if (request.isPartSet("update_"+b.hashCode())) { // removing it and adding means that any USK subscriptions are updated properly String key = request.getPartAsString("key", MAX_KEY_LENGTH); String name = request.getPartAsString("name", MAX_NAME_LENGTH); try { Bookmark newbkmk = new Bookmark(key, name); bookmarks.removeBookmark(b, false); bookmarks.addBookmark(newbkmk, true); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_EDIT, b, key, name, "Given key does not appear to be a valid freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { return; } } } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { return; } }else if(request.isPartSet("disable")){ if(noPassword) { redirectToRoot(ctx); return; } UserAlert[] alerts=core.alerts.getAlerts(); for(int i=0;i<alerts.length;i++){ if(request.getIntPart("disable",-1)==alerts[i].hashCode()){ UserAlert alert = alerts[i]; // Won't be dismissed if it's not allowed anyway if(alert.userCanDismiss() && alert.shouldUnregisterOnDismiss()) { alert.onDismiss(); Logger.normal(this,"Unregistering the userAlert "+alert.hashCode()); core.alerts.unregister(alert); } else { Logger.normal(this,"Disabling the userAlert "+alert.hashCode()); alert.isValid(false); } writePermanentRedirect(ctx, "Configuration applied", "/"); } } } else if(request.isPartSet("boardname")&&(request.isPartSet("filename")||request.isPartSet("message"))) { // Inserting into a frost board FIN // boardname // filename // boardprivatekey (not needed) // boardpublickey (not needed) (and maybe dump it all the way) // innitialindex // sender // subject String boardName = request.getPartAsString("boardname",FrostBoard.MAX_NAME_LENGTH); String boardPrivateKey = request.getPartAsString("boardprivatekey",78); String boardPublicKey = request.getPartAsString("boardpublickey",78); String sender = request.getPartAsString("sender",64); String subject = request.getPartAsString("subject",128); String message = request.getPartAsString("message",1024); if(message.length() == 0) // back compatibility; should use message message = request.getPartAsString("filename", 1024); int initialIndex = 0; if(request.isPartSet("initialindex")) { try { initialIndex = Integer.parseInt(request.getPartAsString("initialindex",10)); } catch(NumberFormatException e) { initialIndex = 0; } } else if(request.isPartSet("innitialindex")) { try { initialIndex = Integer.parseInt(request.getPartAsString("innitialindex",10)); } catch(NumberFormatException e) { initialIndex = 0; } } if(noPassword) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Frost Instant Note insert"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-query", "Frost Instant Note insert")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Do you want to insert the following Frost message?"); HTMLNode postForm = content.addChild("p").addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/", "post", "UTF-8", "multipart/form-data" }); postForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); HTMLNode table = postForm.addChild("table", "align", "center"); finInputRow(table, "boardname", "Target Board", boardName); finInputRow(table, "boardprivatekey", "Private Key", boardPrivateKey); finInputRow(table, "boardpublickey", "Public Key", boardPublicKey); finInputRow(table, "initialindex", "Index to start with", Integer.toString(initialIndex)); finInputRow(table, "sender", "From", sender); finInputRow(table, "subject", "Subject", subject); finInputBoxRow(table, "message", "Message", message); postForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); postForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "finconfirm", "Post" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } String confirm = request.getPartAsString("finconfirm", 32); if(!confirm.equals("Post")) { redirectToRoot(ctx); return; } FrostBoard board = null; if(boardPrivateKey.length()>0 && boardPublicKey.length()>0) { // keyed board board = new FrostBoard(boardName, boardPrivateKey, boardPublicKey); } else { // unkeyed or public board board = new FrostBoard(boardName); } FrostMessage fin = new FrostMessage("news", board, sender, subject, message); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Insertion"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode content; try { FreenetURI finalKey = fin.insertMessage(this.getClientImpl(), initialIndex); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-success", "Insert Succeeded")); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The message "); content.addChild("#", " has been inserted successfully into "+finalKey.toString()); } catch (InserterException e) { HTMLNode infobox = ctx.getPageMaker().getInfobox("infobox-error", "Insert Failed"); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The insert failed with the message: " + e.getMessage()); content.addChild("br"); if (e.uri != null) { content.addChild("#", "The URI would have been: " + e.uri); } int mode = e.getMode(); if((mode == InserterException.FATAL_ERRORS_IN_BLOCKS) || (mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS)) { content.addChild("br"); /* TODO */ content.addChild("#", "Splitfile-specific error: " + e.errorCodes.toVerboseString()); } } content.addChild("br"); content.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node Homepage" }, "Homepage"); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); request.freeParts(); }else if(request.isPartSet("key")&&request.isPartSet("filename")){ if(noPassword) { redirectToRoot(ctx); return; } FreenetURI key = new FreenetURI(request.getPartAsString("key",128)); String type = request.getPartAsString("content-type",128); if(type==null) type = "text/plain"; ClientMetadata contentType = new ClientMetadata(type); Bucket bucket = request.getPart("filename"); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Insertion"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode content; String filenameHint = null; if(key.getKeyType().equals("CHK")) { String[] metas = key.getAllMetaStrings(); if(metas != null && metas.length > 1) { filenameHint = metas[0]; } } InsertBlock block = new InsertBlock(bucket, contentType, key); try { key = this.insert(block, filenameHint, false); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-success", "Insert Succeeded")); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The key "); content.addChild("a", "href", "/" + key.getKeyType() + "@" + key.getGuessableKey(), key.getKeyType() + "@" + key.getGuessableKey()); content.addChild("#", " has been inserted successfully."); } catch (InserterException e) { HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-error", "Insert Failed")); content = ctx.getPageMaker().getContentNode(infobox); content.addChild("#", "The insert failed with the message: " + e.getMessage()); content.addChild("br"); if (e.uri != null) { content.addChild("#", "The URI would have been: " + e.uri); } int mode = e.getMode(); if((mode == InserterException.FATAL_ERRORS_IN_BLOCKS) || (mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS)) { content.addChild("br"); /* TODO */ content.addChild("#", "Splitfile-specific error: " + e.errorCodes.toVerboseString()); } } content.addChild("br"); content.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node Homepage" }, "Homepage"); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); request.freeParts(); bucket.free(); }else if (request.isPartSet("shutdownconfirm")) { if(noPassword) { redirectToRoot(ctx); return; } // Tell the user that the node is shutting down HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Shutdown", false); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "The Freenet node has been successfully shut down.")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); infoboxContent.addChild("#", "Thank you for using Freenet."); writeReply(ctx, 200, "text/html; charset=utf-8", "OK", pageNode.generate()); this.node.exit("Shutdown from fproxy"); return; }else if(request.isPartSet("restartconfirm")){ if(noPassword) { redirectToRoot(ctx); return; } // Tell the user that the node is restarting HTMLNode pageNode = ctx.getPageMaker().getPageNode("Node Restart", false); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-information", "The Freenet is being restarted.")); HTMLNode infoboxContent = ctx.getPageMaker().getContentNode(infobox); infoboxContent.addChild("#", "Please wait while the node is being restarted. This might take up to 3 minutes. Thank you for using Freenet."); writeReply(ctx, 200, "text/html; charset=utf-8", "OK", pageNode.generate()); Logger.normal(this, "Node is restarting"); node.getNodeStarter().restart(); return; }else { redirectToRoot(ctx); } }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/62fd59041864b4ed1f43adc676de6bfb5ea977f3/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
9506,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
892,
16,
5900,
1769,
9506,
202,
780,
19093,
273,
590,
18,
588,
1988,
8092,
2932,
687,
3913,
3113,
3847,
1769,
202,
202,
6494,
1158,
3913,
273,
261,
24002,
422,
446,
13,
747,
401,
24002,
18,
14963,
12,
3644,
18,
687,
3913,
1769,
202,
202,
430,
12,
2135,
3913,
13,
288,
1082,
202,
430,
12,
3328,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
3719,
4242,
18,
17364,
12,
2211,
16,
315,
2279,
2201,
7566,
15,
24002,
9078,
1410,
506,
13773,
3644,
18,
687,
3913,
9078,
2225,
1769,
202,
202,
97,
9506,
202,
430,
12,
2293,
18,
588,
1988,
8092,
2932,
2725,
10927,
3113,
3847,
2934,
2469,
1435,
405,
374,
15329,
1082,
202,
430,
12,
2135,
3913,
13,
288,
9506,
202,
7590,
774,
2375,
12,
5900,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
759,
629,
364,
1158,
10394,
22252,
16,
2724,
716,
4102,
506,
8572,
17714,
715,
1082,
202,
4870,
907,
1363,
907,
273,
1103,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
9506,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
892,
16,
5900,
1769,
9506,
202,
780,
19093,
273,
590,
18,
588,
1988,
8092,
2932,
687,
3913,
3113,
3847,
1769,
202,
202,
6494,
1158,
3913,
273,
261,
24002,
422,
446,
13,
2
] |
bar.setDate(df.parse(item[0].substring(0, 8)));
|
bar.setDate(df.parse(item[0]));
|
public void updateHistory(Security security, int interval) { Calendar from = Calendar.getInstance(); List history = security.getHistory(); if (history.size() == 0) from.add(Calendar.YEAR, -2); else { Bar cd = (Bar)history.get(history.size() - 1); from.setTime(cd.getDate()); from.add(Calendar.DATE, 1); } String symbol = null; if (security.getHistoryFeed() != null) symbol = security.getHistoryFeed().getSymbol(); if (symbol == null || symbol.length() == 0) symbol = security.getCode(); try { StringBuffer url = new StringBuffer("http://grafici.borsaitalia.it/scripts/cligipsw.dll?app=tic_d&action=dwnld4push&cod=&codneb=" + symbol); if (interval < IHistoryFeed.INTERVAL_DAILY) url.append("&period=2MIN&req_type=GRAF_DS&ascii=1&form_id="); else url.append("&period=1DAY&req_type=GRAF_DS&ascii=1&From=" + df.format(from.getTime()) + "000000&form_id="); System.out.println(getClass() + " " + df.format(from.getTime()) + " " + url); HttpURLConnection con = (HttpURLConnection) new URL(url.toString()).openConnection(); con.setInstanceFollowRedirects(true); String proxyHost = (String) System.getProperties().get("http.proxyHost"); String proxyUser = (String) System.getProperties().get("http.proxyUser"); String proxyPassword = (String) System.getProperties().get("http.proxyPassword"); if (proxyHost != null && proxyHost.length() != 0 && proxyUser != null && proxyUser.length() != 0 && proxyPassword != null) { String login = proxyUser + ":" + proxyPassword; String encodedLogin = new BASE64Encoder().encodeBuffer(login.getBytes()); con.setRequestProperty("Proxy-Authorization", "Basic " + encodedLogin.trim()); } con.setAllowUserInteraction(true); con.setRequestMethod("GET"); con.setInstanceFollowRedirects(true); BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); String inputLine = in.readLine(); while ((inputLine = in.readLine()) != null) { if (inputLine.startsWith("@") == true || inputLine.length() == 0) continue; String[] item = inputLine.split("\\|"); Bar bar = new Bar(); bar.setDate(df.parse(item[0].substring(0, 8))); bar.setOpen(Double.parseDouble(item[1])); bar.setHigh(Double.parseDouble(item[2])); bar.setLow(Double.parseDouble(item[3])); bar.setClose(Double.parseDouble(item[4])); bar.setVolume((int)Double.parseDouble(item[5])); history.add(bar); } in.close(); java.util.Collections.sort(history, new Comparator() { public int compare(Object o1, Object o2) { Bar d1 = (Bar) o1; Bar d2 = (Bar) o2; if (d1.getDate().after(d2.getDate()) == true) return 1; else if (d1.getDate().before(d2.getDate()) == true) return -1; return 0; } }); } catch (Exception e) { CorePlugin.logException(e); } CorePlugin.getRepository().saveHistory(security.getId(), security.getHistory()); CorePlugin.getRepository().save(security); }
|
12330 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12330/ccd5a9d1bd8a0328275f869f11286af0bb888f4c/HistoryFeed.java/clean/net.sourceforge.eclipsetrader.borsaitalia/src/net/sourceforge/eclipsetrader/borsaitalia/HistoryFeed.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
5623,
12,
4368,
4373,
16,
509,
3673,
13,
565,
288,
3639,
5542,
628,
273,
5542,
18,
588,
1442,
5621,
3639,
987,
4927,
273,
4373,
18,
588,
5623,
5621,
3639,
309,
261,
8189,
18,
1467,
1435,
422,
374,
13,
5411,
628,
18,
1289,
12,
7335,
18,
15137,
16,
300,
22,
1769,
3639,
469,
3639,
288,
5411,
16654,
7976,
273,
261,
5190,
13,
8189,
18,
588,
12,
8189,
18,
1467,
1435,
300,
404,
1769,
5411,
628,
18,
542,
950,
12,
4315,
18,
588,
1626,
10663,
5411,
628,
18,
1289,
12,
7335,
18,
4594,
16,
404,
1769,
3639,
289,
3639,
514,
3273,
273,
446,
31,
3639,
309,
261,
7462,
18,
588,
5623,
8141,
1435,
480,
446,
13,
5411,
3273,
273,
4373,
18,
588,
5623,
8141,
7675,
588,
5335,
5621,
3639,
309,
261,
7175,
422,
446,
747,
3273,
18,
2469,
1435,
422,
374,
13,
5411,
3273,
273,
4373,
18,
588,
1085,
5621,
3639,
775,
288,
5411,
6674,
880,
273,
394,
6674,
2932,
2505,
2207,
2752,
74,
14463,
18,
70,
1383,
1540,
287,
1155,
18,
305,
19,
12827,
19,
830,
360,
625,
5328,
18,
27670,
35,
2910,
33,
88,
335,
67,
72,
10,
1128,
33,
22512,
82,
1236,
24,
6206,
10,
1559,
33,
10,
1559,
4644,
70,
1546,
397,
3273,
1769,
5411,
309,
261,
6624,
411,
467,
5623,
8141,
18,
16435,
67,
40,
6575,
61,
13,
7734,
880,
18,
6923,
2932,
10,
6908,
33,
22,
6236,
10,
3658,
67,
723,
33,
24554,
42,
67,
3948,
10,
9184,
33,
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,
1089,
5623,
12,
4368,
4373,
16,
509,
3673,
13,
565,
288,
3639,
5542,
628,
273,
5542,
18,
588,
1442,
5621,
3639,
987,
4927,
273,
4373,
18,
588,
5623,
5621,
3639,
309,
261,
8189,
18,
1467,
1435,
422,
374,
13,
5411,
628,
18,
1289,
12,
7335,
18,
15137,
16,
300,
22,
1769,
3639,
469,
3639,
288,
5411,
16654,
7976,
273,
261,
5190,
13,
8189,
18,
588,
12,
8189,
18,
1467,
1435,
300,
404,
1769,
5411,
628,
18,
542,
950,
12,
4315,
18,
588,
1626,
10663,
5411,
628,
18,
1289,
12,
7335,
18,
4594,
16,
404,
1769,
3639,
289,
3639,
514,
3273,
273,
446,
31,
3639,
309,
261,
7462,
18,
588,
5623,
8141,
1435,
480,
446,
13,
5411,
2
] |
for (Iterator i = orderingConstraintsNode.selectNodes("./FirstInPass").iterator();
|
for (Iterator<Element>i = orderingConstraintsNode.selectNodes("./FirstInPass").iterator();
|
private void init() throws PluginException { // Plugin descriptor (a.k.a, "findbugs.xml"). Defines // the bug detectors and bug patterns that the plugin provides. Document pluginDescriptor; // Unique plugin id String pluginId; // List of message translation files in decreasing order of precedence ArrayList<Document> messageCollectionList = new ArrayList<Document>(); // Read the plugin descriptor try { URL descriptorURL = findResource("findbugs.xml"); if (descriptorURL == null) throw new PluginException("Couldn't find \"findbugs.xml\" in plugin"); SAXReader reader = new SAXReader(); pluginDescriptor = reader.read(descriptorURL); } catch (DocumentException e) { throw new PluginException("Couldn't parse \"findbugs.xml\"", e); } // Get the unique plugin id (or generate one, if none is present) pluginId = pluginDescriptor.valueOf("/FindbugsPlugin/@pluginid"); if (pluginId.equals("")) { synchronized (PluginLoader.class) { pluginId = "plugin" + nextUnknownId++; } } // See if the plugin is enabled or disabled by default. // Note that if there is no "defaultenabled" attribute, // then we assume that the plugin IS enabled by default. String defaultEnabled = pluginDescriptor.valueOf("/FindbugsPlugin/@defaultenabled"); boolean pluginEnabled = defaultEnabled.equals("") ? true : Boolean.valueOf(defaultEnabled).booleanValue(); // Load the message collections try { Locale locale = Locale.getDefault(); String language = locale.getLanguage(); String country = locale.getCountry(); if (country != null) addCollection(messageCollectionList, "messages_" + language + "_" + country + ".xml"); addCollection(messageCollectionList, "messages_" + language + ".xml"); addCollection(messageCollectionList, "messages.xml"); } catch (DocumentException e) { e.printStackTrace(); throw new PluginException("Couldn't parse \"messages.xml\"", e); } // Create the Plugin object (but don't assign to the plugin field yet, // since we're still not sure if everything will load correctly) Plugin plugin = new Plugin(pluginId); plugin.setEnabled(pluginEnabled); // Set provider and website, if specified String provider = pluginDescriptor.valueOf("/FindbugsPlugin/@provider"); if (!provider.equals("")) plugin.setProvider(provider); String website = pluginDescriptor.valueOf("/FindbugsPlugin/@website"); if (!website.equals("")) plugin.setWebsite(website); // Set short description, if specified Node pluginShortDesc = null; try { pluginShortDesc = findMessageNode( messageCollectionList, "/MessageCollection/Plugin/ShortDescription", "no plugin description"); } catch (PluginException e) { // Missing description is not fatal, so ignore } if (pluginShortDesc != null) { plugin.setShortDescription(pluginShortDesc.getText()); } // Create a DetectorFactory for all Detector nodes try { List detectorNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/Detector"); for (Iterator i = detectorNodeList.iterator(); i.hasNext();) { Node detectorNode = (Node) i.next(); String className = detectorNode.valueOf("@class"); String speed = detectorNode.valueOf("@speed"); String disabled = detectorNode.valueOf("@disabled"); String reports = detectorNode.valueOf("@reports"); String requireJRE = detectorNode.valueOf("@requirejre"); String hidden = detectorNode.valueOf("@hidden"); //System.out.println("Found detector: class="+className+", disabled="+disabled); // Create DetectorFactory for the detector Class detectorClass = loadClass(className); DetectorFactory factory = new DetectorFactory( plugin, detectorClass, !disabled.equals("true"), speed, reports, requireJRE); if (Boolean.valueOf(hidden).booleanValue()) factory.setHidden(true); plugin.addDetectorFactory(factory); // Find Detector node in one of the messages files, // to get the detail HTML. Node node = findMessageNode(messageCollectionList, "/MessageCollection/Detector[@class='" + className + "']/Details", "Missing Detector description for detector " + className); Element details = (Element) node; String detailHTML = details.getText(); StringBuffer buf = new StringBuffer(); buf.append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"); buf.append("<HTML><HEAD><TITLE>Detector Description</TITLE></HEAD><BODY>\n"); buf.append(detailHTML); buf.append("</BODY></HTML>\n"); factory.setDetailHTML(buf.toString()); } } catch (ClassNotFoundException e) { throw new PluginException("Could not instantiate detector class: " + e, e); } // Create ordering constraints Node orderingConstraintsNode = pluginDescriptor.selectSingleNode("/FindbugsPlugin/OrderingConstraints"); if (orderingConstraintsNode != null) { // Get inter-pass and intra-pass constraints for (Iterator<Element> i = orderingConstraintsNode.selectNodes("./SplitPass|./WithinPass").iterator(); i.hasNext();) { Element constraintElement = i.next(); // Make sure the constraint element is fully specified Attribute earlierAttr = constraintElement.attribute("earlier"); Attribute laterAttr = constraintElement.attribute("later"); if (earlierAttr == null || laterAttr == null) { throw new PluginException("Missing 'earlier' or 'later' attribute in '" + constraintElement.getName() + "' element"); } // Find the actual detector classes in the constraint String earlierClass = lookupDetectorClass(plugin, earlierAttr.getValue()); String laterClass = lookupDetectorClass(plugin, laterAttr.getValue()); // Create the constraint DetectorOrderingConstraint constraint = new DetectorOrderingConstraint( earlierClass, laterClass); // Add the constraint to the plugin if (constraintElement.getName().equals("SplitPass")) plugin.addInterPassOrderingConstraint(constraint); else plugin.addIntraPassOrderingConstraint(constraint); } // Handle FirstInPass elements for (Iterator i = orderingConstraintsNode.selectNodes("./FirstInPass").iterator(); i.hasNext();) { Element firstInPassElement = (Element) i.next(); Attribute detectorAttr = firstInPassElement.attribute("detector"); if (detectorAttr == null) { throw new PluginException("Missing 'detector' attribute in FirstInPass element"); } String detectorClass = lookupDetectorClass(plugin, detectorAttr.getValue()); DetectorFactory factory = plugin.getFactoryByFullName(detectorClass); if (factory == null) { throw new PluginException("Unknown detector class '" + detectorClass + "' in FirstInPass element"); } factory.setFirstInPass(true); } } // Create BugPatterns List bugPatternNodeList = pluginDescriptor.selectNodes("/FindbugsPlugin/BugPattern"); for (Iterator i = bugPatternNodeList.iterator(); i.hasNext();) { Node bugPatternNode = (Node) i.next(); String type = bugPatternNode.valueOf("@type"); String abbrev = bugPatternNode.valueOf("@abbrev"); String category = bugPatternNode.valueOf("@category"); String experimental = bugPatternNode.valueOf("@experimental"); // Find the matching element in messages.xml (or translations) String query = "/MessageCollection/BugPattern[@type='" + type + "']"; Node messageNode = findMessageNode(messageCollectionList, query, "messages.xml missing BugPattern element for type " + type); String shortDesc = getChildText(messageNode, "ShortDescription"); String longDesc = getChildText(messageNode, "LongDescription"); String detailText = getChildText(messageNode, "Details"); BugPattern bugPattern = new BugPattern(type, abbrev, category, Boolean.valueOf(experimental).booleanValue(), shortDesc, longDesc, detailText); plugin.addBugPattern(bugPattern); } // Create BugCodes Set<String> definedBugCodes = new HashSet<String>(); for (Iterator<Document> i = messageCollectionList.iterator(); i.hasNext();) { Document messageCollection = i.next(); List<Node> bugCodeNodeList = messageCollection.selectNodes("/MessageCollection/BugCode"); for (Iterator<Node> j = bugCodeNodeList.iterator(); j.hasNext();) { Node bugCodeNode = (Node) j.next(); String abbrev = bugCodeNode.valueOf("@abbrev"); if (abbrev.equals("")) throw new PluginException("BugCode element with missing abbrev attribute"); if (definedBugCodes.contains(abbrev)) continue; String description = bugCodeNode.getText(); BugCode bugCode = new BugCode(abbrev, description); plugin.addBugCode(bugCode); definedBugCodes.add(abbrev); } } // Success! // Assign to the plugin field, so getPlugin() can return the // new Plugin object. this.plugin = plugin; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/8fc9205e03859911ef1b75e53dda60b2e7740cff/PluginLoader.java/clean/findbugs/src/java/edu/umd/cs/findbugs/PluginLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
1216,
6258,
503,
288,
202,
202,
759,
6258,
4950,
261,
69,
18,
79,
18,
69,
16,
315,
4720,
19381,
18,
2902,
20387,
225,
18003,
281,
202,
202,
759,
326,
7934,
13826,
87,
471,
7934,
6884,
716,
326,
1909,
8121,
18,
202,
202,
2519,
1909,
3187,
31,
9506,
202,
759,
14584,
1909,
612,
202,
202,
780,
1909,
548,
31,
202,
202,
759,
987,
434,
883,
4794,
1390,
316,
23850,
11730,
1353,
434,
14172,
202,
202,
19558,
32,
2519,
34,
883,
2532,
682,
273,
394,
2407,
32,
2519,
34,
5621,
202,
202,
759,
2720,
326,
1909,
4950,
202,
202,
698,
288,
1082,
202,
1785,
4950,
1785,
273,
1104,
1420,
2932,
4720,
19381,
18,
2902,
8863,
1082,
202,
430,
261,
12628,
1785,
422,
446,
13,
9506,
202,
12849,
394,
6258,
503,
2932,
16342,
1404,
1104,
1239,
4720,
19381,
18,
2902,
2412,
316,
1909,
8863,
1082,
202,
55,
2501,
2514,
2949,
273,
394,
10168,
2514,
5621,
1082,
202,
4094,
3187,
273,
2949,
18,
896,
12,
12628,
1785,
1769,
202,
202,
97,
1044,
261,
2519,
503,
425,
13,
288,
1082,
202,
12849,
394,
6258,
503,
2932,
16342,
1404,
1109,
1239,
4720,
19381,
18,
2902,
2412,
3113,
425,
1769,
202,
202,
97,
9506,
202,
759,
968,
326,
3089,
1909,
612,
261,
280,
2103,
1245,
16,
309,
6555,
353,
3430,
13,
202,
202,
4094,
548,
273,
1909,
3187,
18,
1132,
951,
2932,
19,
3125,
19381,
3773,
19,
36,
4094,
350,
8863,
202,
202,
430,
261,
4094,
548,
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,
1152,
918,
1208,
1435,
1216,
6258,
503,
288,
202,
202,
759,
6258,
4950,
261,
69,
18,
79,
18,
69,
16,
315,
4720,
19381,
18,
2902,
20387,
225,
18003,
281,
202,
202,
759,
326,
7934,
13826,
87,
471,
7934,
6884,
716,
326,
1909,
8121,
18,
202,
202,
2519,
1909,
3187,
31,
9506,
202,
759,
14584,
1909,
612,
202,
202,
780,
1909,
548,
31,
202,
202,
759,
987,
434,
883,
4794,
1390,
316,
23850,
11730,
1353,
434,
14172,
202,
202,
19558,
32,
2519,
34,
883,
2532,
682,
273,
394,
2407,
32,
2519,
34,
5621,
202,
202,
759,
2720,
326,
1909,
4950,
202,
202,
698,
288,
1082,
202,
1785,
4950,
1785,
273,
1104,
1420,
2932,
4720,
19381,
18,
2902,
8863,
2
] |
jarFileObject = new File(jarFilePath);
|
else if (classURL.getProtocol().equals("file")) { String classFilePath = classURL.getFile(); classpathFileObject = new File(classFilePath); }
|
private void determineDependencies() throws IOException { affectedClassMap = new Hashtable(); classFileInfoMap = new Hashtable(); Hashtable dependencyMap = new Hashtable(); for (Enumeration e = getClassFiles(destPath).elements(); e.hasMoreElements(); ) { ClassFileInfo info = (ClassFileInfo)e.nextElement(); log("Adding class info for " + info.className, Project.MSG_DEBUG); classFileInfoMap.put(info.className, info); Vector dependencyList = null; if (cache != null) { // try to read the dependency info from the cache if it is not out of date File depFile = new File(cache, info.relativeName + ".dep"); if (depFile.exists() && depFile.lastModified() > info.absoluteFile.lastModified()) { // depFile exists and is newer than the class file // need to read dependency list from the file. dependencyList = readDependencyList(depFile); } } if (dependencyList == null) { // not cached - so need to read directly from the class file FileInputStream inFileStream = null; try { inFileStream = new FileInputStream(info.absoluteFile); ClassFile classFile = new ClassFile(); classFile.read(inFileStream); dependencyList = classFile.getClassRefs(); if (cache != null) { // new dependencies so need to write them out to the cache File depFile = new File(cache, info.relativeName + ".dep"); writeDependencyList(depFile, dependencyList); } } finally { if (inFileStream != null) { inFileStream.close(); } } } dependencyMap.put(info.className, dependencyList); // This class depends on each class in the dependency list. For each // one of those, add this class into their affected classes list for (Enumeration depEnum = dependencyList.elements(); depEnum.hasMoreElements(); ) { String dependentClass = (String)depEnum.nextElement(); Hashtable affectedClasses = (Hashtable)affectedClassMap.get(dependentClass); if (affectedClasses == null) { affectedClasses = new Hashtable(); affectedClassMap.put(dependentClass, affectedClasses); } affectedClasses.put(info.className, info); } } classJarDependencies = null; if (compileClasspath != null) { // now determine which jars each class depends upon classJarDependencies = new Hashtable(); AntClassLoader loader = new AntClassLoader(getProject(), compileClasspath); Hashtable jarFileCache = new Hashtable(); Object nullJarFile = new Object(); for (Enumeration e = dependencyMap.keys(); e.hasMoreElements();) { String className = (String)e.nextElement(); Vector dependencyList = (Vector)dependencyMap.get(className); Hashtable jarDependencies = new Hashtable(); classJarDependencies.put(className, jarDependencies); for (Enumeration e2 = dependencyList.elements(); e2.hasMoreElements();) { String dependency =(String)e2.nextElement(); Object jarFileObject = jarFileCache.get(dependency); if (jarFileObject == null) { jarFileObject = nullJarFile; if (!dependency.startsWith("java.") && !dependency.startsWith("javax.")) { URL classURL = loader.getResource(dependency.replace('.', '/') + ".class"); if (classURL != null) { String jarFilePath = classURL.getFile(); if (jarFilePath.startsWith("file:")) { int classMarker = jarFilePath.indexOf('!'); jarFilePath = jarFilePath.substring(5, classMarker); } jarFileObject = new File(jarFilePath); log("Class " + className + " depends on " + jarFileObject + " due to " + dependency, Project.MSG_DEBUG); } } jarFileCache.put(dependency, jarFileObject); } if (jarFileObject != null && jarFileObject != nullJarFile) { // we need to add this jar to the list for this class. File jarFile = (File)jarFileObject; jarDependencies.put(jarFile, jarFile); } } } } }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/75722dcb03cb32e6efbd01d306f301c1bd490716/Depend.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4199,
8053,
1435,
1216,
1860,
288,
3639,
9844,
797,
863,
273,
394,
18559,
5621,
3639,
667,
11995,
863,
273,
394,
18559,
5621,
3639,
18559,
4904,
863,
273,
394,
18559,
5621,
3639,
364,
261,
21847,
425,
273,
2900,
2697,
12,
10488,
743,
2934,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
1659,
11995,
1123,
273,
261,
797,
11995,
13,
73,
18,
4285,
1046,
5621,
5411,
613,
2932,
13962,
667,
1123,
364,
315,
397,
1123,
18,
12434,
16,
5420,
18,
11210,
67,
9394,
1769,
5411,
667,
11995,
863,
18,
458,
12,
1376,
18,
12434,
16,
1123,
1769,
13491,
5589,
4904,
682,
273,
446,
31,
13491,
309,
261,
2493,
480,
446,
13,
288,
7734,
368,
775,
358,
855,
326,
4904,
1123,
628,
326,
1247,
309,
518,
353,
486,
596,
434,
1509,
7734,
1387,
5993,
812,
273,
394,
1387,
12,
2493,
16,
1123,
18,
11626,
461,
397,
3552,
15037,
8863,
7734,
309,
261,
15037,
812,
18,
1808,
1435,
597,
5993,
812,
18,
2722,
4575,
1435,
405,
1123,
18,
12547,
812,
18,
2722,
4575,
10756,
288,
10792,
368,
5993,
812,
1704,
471,
353,
16069,
2353,
326,
667,
585,
10792,
368,
1608,
358,
855,
4904,
666,
628,
326,
585,
18,
10792,
4904,
682,
273,
855,
7787,
682,
12,
15037,
812,
1769,
7734,
289,
5411,
289,
13491,
309,
261,
15896,
682,
422,
446,
13,
288,
7734,
368,
486,
3472,
300,
1427,
1608,
358,
855,
5122,
628,
326,
667,
585,
7734,
11907,
316,
812,
1228,
273,
446,
31,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4199,
8053,
1435,
1216,
1860,
288,
3639,
9844,
797,
863,
273,
394,
18559,
5621,
3639,
667,
11995,
863,
273,
394,
18559,
5621,
3639,
18559,
4904,
863,
273,
394,
18559,
5621,
3639,
364,
261,
21847,
425,
273,
2900,
2697,
12,
10488,
743,
2934,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
1659,
11995,
1123,
273,
261,
797,
11995,
13,
73,
18,
4285,
1046,
5621,
5411,
613,
2932,
13962,
667,
1123,
364,
315,
397,
1123,
18,
12434,
16,
5420,
18,
11210,
67,
9394,
1769,
5411,
667,
11995,
863,
18,
458,
12,
1376,
18,
12434,
16,
1123,
1769,
13491,
5589,
4904,
682,
273,
446,
31,
13491,
309,
261,
2493,
480,
446,
13,
288,
7734,
368,
775,
2
] |
return "Button";
|
return "Button.";
|
protected String getPropertyPrefix() { return "Button"; }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/d03b7ded9dacd5a74a8420d7dade451079b17d89/BasicButtonUI.java/buggy/libraries/javalib/javax/swing/plaf/basic/BasicButtonUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
3911,
2244,
1435,
225,
288,
565,
327,
315,
3616,
1199,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
3911,
2244,
1435,
225,
288,
565,
327,
315,
3616,
1199,
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
] |
new ExecTransType( '0' ), new ExecType ( ExecType.NEW ), new OrdStatus ( OrdStatus.NEW ),
|
new ExecTransType( ExecTransType.NEW ), new OrdStatus ( OrdStatus.FILLED ),
|
public void onMessage( org.quickfix.fix42.NewOrderSingle order, SessionID sessionID ) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue { Symbol symbol = new Symbol(); Side side = new Side(); OrdType ordType = new OrdType(); OrderQty orderQty = new OrderQty(); Price price = new Price(); ClOrdID clOrdID = new ClOrdID(); order.get(ordType); if(ordType.getValue() != OrdType.LIMIT) throw new IncorrectTagValue(ordType.getField()); order.get(symbol); order.get(side); order.get(orderQty); order.get(price); order.get(clOrdID); org.quickfix.fix42.ExecutionReport executionReport = new org.quickfix.fix42.ExecutionReport ( genOrderID(), genExecID(), new ExecTransType( '0' ), new ExecType ( ExecType.NEW ), new OrdStatus ( OrdStatus.NEW ), symbol, side, new LeavesQty ( 0 ), new CumQty ( orderQty.getValue() ), new AvgPx ( price.getValue() )); executionReport.set(clOrdID); executionReport.set(orderQty); executionReport.set(new LastShares(orderQty.getValue())); executionReport.set(new LastPx(price.getValue())); try { Session.sendToTarget(executionReport, sessionID); } catch(SessionNotFound e) {} }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/3c58f0e90d82be549629930838d054b685286a52/Application.java/clean/examples/executor/java/src/Application.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
30002,
12,
2358,
18,
19525,
904,
18,
904,
9452,
18,
1908,
2448,
5281,
1353,
16,
3877,
734,
13737,
262,
565,
1216,
2286,
2768,
16,
7221,
24563,
16,
657,
6746,
1805,
620,
288,
3639,
8565,
3273,
273,
394,
8565,
5621,
3639,
26248,
4889,
273,
394,
26248,
5621,
3639,
2965,
72,
559,
4642,
559,
273,
394,
2965,
72,
559,
5621,
3639,
4347,
53,
4098,
1353,
53,
4098,
273,
394,
4347,
53,
4098,
5621,
3639,
20137,
6205,
273,
394,
20137,
5621,
3639,
3905,
15383,
734,
927,
15383,
734,
273,
394,
3905,
15383,
734,
5621,
3639,
1353,
18,
588,
12,
517,
559,
1769,
3639,
309,
12,
517,
559,
18,
24805,
1435,
480,
2965,
72,
559,
18,
8283,
13,
5411,
604,
394,
657,
6746,
1805,
620,
12,
517,
559,
18,
588,
974,
10663,
3639,
1353,
18,
588,
12,
7175,
1769,
3639,
1353,
18,
588,
12,
5564,
1769,
3639,
1353,
18,
588,
12,
1019,
53,
4098,
1769,
3639,
1353,
18,
588,
12,
8694,
1769,
3639,
1353,
18,
588,
12,
830,
15383,
734,
1769,
3639,
2358,
18,
19525,
904,
18,
904,
9452,
18,
3210,
4820,
4588,
4820,
273,
394,
2358,
18,
19525,
904,
18,
904,
9452,
18,
3210,
4820,
7734,
261,
3157,
2448,
734,
9334,
5375,
3157,
1905,
734,
9334,
5375,
394,
3889,
1429,
559,
12,
296,
20,
11,
262,
16,
5375,
394,
3889,
559,
377,
261,
3889,
559,
18,
12917,
262,
16,
5375,
394,
2965,
72,
1482,
565,
261,
2965,
72,
1482,
18,
12917,
262,
16,
5375,
3273,
16,
5375,
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,
30002,
12,
2358,
18,
19525,
904,
18,
904,
9452,
18,
1908,
2448,
5281,
1353,
16,
3877,
734,
13737,
262,
565,
1216,
2286,
2768,
16,
7221,
24563,
16,
657,
6746,
1805,
620,
288,
3639,
8565,
3273,
273,
394,
8565,
5621,
3639,
26248,
4889,
273,
394,
26248,
5621,
3639,
2965,
72,
559,
4642,
559,
273,
394,
2965,
72,
559,
5621,
3639,
4347,
53,
4098,
1353,
53,
4098,
273,
394,
4347,
53,
4098,
5621,
3639,
20137,
6205,
273,
394,
20137,
5621,
3639,
3905,
15383,
734,
927,
15383,
734,
273,
394,
3905,
15383,
734,
5621,
3639,
1353,
18,
588,
12,
517,
559,
1769,
3639,
309,
12,
517,
559,
18,
24805,
1435,
480,
2965,
72,
559,
18,
8283,
13,
5411,
604,
2
] |
public org.quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityID value = new org.quickfix.field.UnderlyingSecurityID();
|
public quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { quickfix.field.UnderlyingSecurityID value = new quickfix.field.UnderlyingSecurityID();
|
public org.quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityID value = new org.quickfix.field.UnderlyingSecurityID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/clean/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
10833,
765,
6291,
4368,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
10833,
765,
6291,
4368,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
734,
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
] |
in.order(littleEndian);
|
byte[] offsets = (byte[]) metadata.get("Offset to maker note"); makerNoteOffset = offsets[0];
|
protected void initStandardMetadata() { super.initStandardMetadata(); // look for the TIFF_EPS_STANDARD tag // it should contain version information short[] version = (short[]) TiffTools.getIFDValue(ifds[0], TIFF_EPS_STANDARD); String v = ""; for (int i=0; i<version.length; i++) v += version[i]; metadata.put("Version", v); littleEndian = true; try { littleEndian = TiffTools.isLittleEndian(ifds[0]); } catch (FormatException f) { } // now look for the EXIF IFD pointer try { int exif = TiffTools.getIFDIntValue(ifds[0], EXIF_IFD_POINTER); if (exif != -1) { in.order(littleEndian); // CTR: is this really necessary? Hashtable exifIFD = TiffTools.getIFD(in, 0, 0, exif); // put all the EXIF data in the metadata hashtable if (exifIFD != null) { Enumeration e = exifIFD.keys(); Integer key; while (e.hasMoreElements()) { key = (Integer) e.nextElement(); int tag = key.intValue(); metadata.put(getTagName(tag), exifIFD.get(key)); } } } } catch (IOException io) { } // read the maker note try { in.order(littleEndian); // CTR: is this really necessary? Hashtable makerNote = TiffTools.getIFD(in, 0, 0, makerNoteOffset); if (makerNote != null) { Enumeration e = makerNote.keys(); Integer key; while (e.hasMoreElements()) { key = (Integer) e.nextElement(); int tag = key.intValue(); metadata.put(getTagName(tag), makerNote.get(key)); } } } catch (Exception io) { } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/d3b7646e2afd5f255f939fc0097e7f8258ed64ef/NikonReader.java/clean/loci/formats/in/NikonReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
8336,
2277,
1435,
288,
565,
2240,
18,
2738,
8336,
2277,
5621,
565,
368,
2324,
364,
326,
27491,
67,
41,
5857,
67,
882,
18264,
1047,
565,
368,
518,
1410,
912,
1177,
1779,
565,
3025,
8526,
1177,
273,
261,
6620,
63,
5717,
1377,
399,
3048,
10348,
18,
588,
5501,
40,
620,
12,
430,
2377,
63,
20,
6487,
27491,
67,
41,
5857,
67,
882,
18264,
1769,
565,
514,
331,
273,
1408,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1589,
18,
2469,
31,
277,
27245,
331,
1011,
1177,
63,
77,
15533,
565,
1982,
18,
458,
2932,
1444,
3113,
331,
1769,
565,
328,
10609,
273,
638,
31,
565,
775,
288,
1377,
328,
10609,
273,
399,
3048,
10348,
18,
291,
48,
10609,
12,
430,
2377,
63,
20,
19226,
565,
289,
565,
1044,
261,
9291,
284,
13,
288,
289,
565,
368,
2037,
2324,
364,
326,
5675,
5501,
11083,
40,
4407,
565,
775,
288,
1377,
509,
20257,
273,
399,
3048,
10348,
18,
588,
5501,
40,
1702,
620,
12,
430,
2377,
63,
20,
6487,
5675,
5501,
67,
5501,
40,
67,
2419,
9125,
1769,
1377,
309,
261,
338,
430,
480,
300,
21,
13,
288,
3639,
1160,
8526,
8738,
273,
261,
7229,
63,
5717,
1982,
18,
588,
2932,
2335,
358,
312,
6388,
4721,
8863,
312,
6388,
8067,
2335,
273,
8738,
63,
20,
15533,
368,
31568,
30,
353,
333,
8654,
4573,
35,
3639,
18559,
20257,
5501,
40,
273,
399,
3048,
10348,
18,
588,
5501,
40,
12,
267,
16,
374,
16,
374,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
8336,
2277,
1435,
288,
565,
2240,
18,
2738,
8336,
2277,
5621,
565,
368,
2324,
364,
326,
27491,
67,
41,
5857,
67,
882,
18264,
1047,
565,
368,
518,
1410,
912,
1177,
1779,
565,
3025,
8526,
1177,
273,
261,
6620,
63,
5717,
1377,
399,
3048,
10348,
18,
588,
5501,
40,
620,
12,
430,
2377,
63,
20,
6487,
27491,
67,
41,
5857,
67,
882,
18264,
1769,
565,
514,
331,
273,
1408,
31,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1589,
18,
2469,
31,
277,
27245,
331,
1011,
1177,
63,
77,
15533,
565,
1982,
18,
458,
2932,
1444,
3113,
331,
1769,
565,
328,
10609,
273,
638,
31,
565,
775,
288,
1377,
328,
10609,
273,
399,
3048,
2
] |
Icon unreadIcon = new ImageIcon(getClass().getResource("images/unread.gif")); Icon readIcon = new ImageIcon(getClass().getResource("images/read.gif"));
|
Icon unreadIcon = new ImageIcon("ui/images/unread.gif"); Icon readIcon = new ImageIcon("ui/images/read.gif");
|
public FolderPanel() { JScrollPane scrollPane = new JScrollPane(); scrollPane.setBorder(BorderFactory.createLoweredBevelBorder()); Util.RegisterScrollingKeys(scrollPane); fPanel = this; fModel = new MessageModel(); fMessageTree = new TreeTable(null); ToolTipManager.sharedInstance().registerComponent(fMessageTree); fMessageTree.setTreeColumn(kSubjectID); fColumnModel = fMessageTree.getColumnModel(); fColumnModel.addColumnModelListener(new ColumnListener()); Column column; CellRenderer cellrenderer = new MessageCellRenderer(); column = new Column(kSubjectID, fLabels.getString("subjectLabel")); column.setWidth(350); column.setSelectable(true); column.setCellRenderer(cellrenderer); fMessageTree.addColumn(column); ToggleCellRenderer renderer; ToggleCellEditor editor; Icon unreadIcon = new ImageIcon(getClass().getResource("images/unread.gif")); Icon readIcon = new ImageIcon(getClass().getResource("images/read.gif")); renderer = new ToggleCellRenderer(); renderer.getCheckBox().setIcon(unreadIcon); renderer.getCheckBox().setSelectedIcon(readIcon); editor = new ToggleCellEditor(); editor.getCheckBox().setIcon(unreadIcon); editor.getCheckBox().setSelectedIcon(readIcon); column = new Column(kReadID, unreadIcon); column.setWidth(20); column.setMinWidth(20); column.setMaxWidth(20); column.setSelectable(true); column.setCellRenderer(renderer); column.setCellEditor(editor); fMessageTree.addColumn(column); Icon unflaggedIcon = new ImageIcon(getClass().getResource("images/unflagged.gif")); Icon flaggedIcon = new ImageIcon(getClass().getResource("images/flagged.gif")); renderer = new ToggleCellRenderer(); renderer.getCheckBox().setIcon(unflaggedIcon); renderer.getCheckBox().setSelectedIcon(flaggedIcon); editor = new ToggleCellEditor(); editor.getCheckBox().setIcon(unflaggedIcon); editor.getCheckBox().setSelectedIcon(flaggedIcon); column = new Column(kFlagID, flaggedIcon); column.setWidth(20); column.setMinWidth(20); column.setMaxWidth(20); column.setSelectable(true); column.setCellRenderer(renderer); column.setCellEditor(editor); fMessageTree.addColumn(column); Icon deletedIcon = new ImageIcon(getClass().getResource("images/deleted.gif")); Icon undeletedIcon = new ImageIcon(getClass().getResource("images/unflagged.gif")); renderer = new ToggleCellRenderer(); renderer.getCheckBox().setIcon(undeletedIcon); renderer.getCheckBox().setSelectedIcon(deletedIcon); editor = new ToggleCellEditor(); editor.getCheckBox().setIcon(undeletedIcon); editor.getCheckBox().setSelectedIcon(deletedIcon); column = new Column(kDeletedID, deletedIcon); column.setWidth(20); column.setMinWidth(20); column.setMaxWidth(20); column.setSelectable(true); column.setCellRenderer(renderer); column.setCellEditor(editor); fMessageTree.addColumn(column); column = new Column(kSenderID, fLabels.getString("senderLabel")); column.setWidth(250); column.setSelectable(true); column.setCellRenderer(cellrenderer); fMessageTree.addColumn(column); column = new Column(kDateID, fLabels.getString("dateLabel")); column.setWidth(100); column.setSelectable(true); column.setCellRenderer(cellrenderer); fMessageTree.addColumn(column); fColumnModel.setPrefString(InvisiblePrefs.GetMaster().getFolderPanelColumnLayout()); // Setup keys registerKeyboardAction(new DeleteMessageAction(), KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new CopyToClipboardAction(), KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.CTRL_MASK), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new PasteFromClipboardAction(), KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.CTRL_MASK), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new OpenMessageAction(), KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); ColumnHeader columnHeader = fMessageTree.getColumnHeader(); scrollPane.setColumnHeaderView(columnHeader); scrollPane.setViewportView(fMessageTree); add(scrollPane); fSelectionListener = new MessageSelectionListener(); fMessageTree.getSelectionManager().addSelectionListener(fSelectionListener); fMessageTree.setFont(new Font("Helvetica", Font.PLAIN, 12)); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/FolderPanel.java/clean/grendel/sources/grendel/ui/FolderPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12623,
5537,
1435,
288,
565,
804,
26360,
5532,
8485,
273,
394,
804,
26360,
5621,
565,
5532,
8485,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
4070,
329,
1919,
941,
8107,
10663,
565,
3564,
18,
3996,
1541,
15742,
2396,
12,
12033,
8485,
1769,
565,
284,
5537,
273,
333,
31,
565,
284,
1488,
273,
394,
2350,
1488,
5621,
565,
284,
1079,
2471,
273,
394,
4902,
1388,
12,
2011,
1769,
565,
13288,
14189,
1318,
18,
11574,
1442,
7675,
4861,
1841,
12,
74,
1079,
2471,
1769,
565,
284,
1079,
2471,
18,
542,
2471,
1494,
12,
79,
6638,
734,
1769,
565,
284,
1494,
1488,
273,
284,
1079,
2471,
18,
588,
1494,
1488,
5621,
565,
284,
1494,
1488,
18,
1289,
1494,
1488,
2223,
12,
2704,
4753,
2223,
10663,
565,
4753,
1057,
31,
565,
8614,
6747,
2484,
14374,
273,
394,
2350,
4020,
6747,
5621,
565,
1057,
273,
394,
4753,
12,
79,
6638,
734,
16,
284,
5888,
18,
588,
780,
2932,
7857,
2224,
7923,
1769,
565,
1057,
18,
542,
2384,
12,
23,
3361,
1769,
565,
1057,
18,
542,
31544,
12,
3767,
1769,
565,
1057,
18,
542,
4020,
6747,
12,
3855,
14374,
1769,
565,
284,
1079,
2471,
18,
1289,
1494,
12,
2827,
1769,
565,
399,
9891,
4020,
6747,
5690,
31,
565,
399,
9891,
4020,
6946,
4858,
31,
565,
16011,
19541,
5554,
273,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
2932,
7369,
19,
318,
896,
18,
13905,
7923,
1769,
565,
16011,
855,
5554,
273,
394,
3421,
5554,
12,
588,
797,
7675,
588,
1420,
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,
12623,
5537,
1435,
288,
565,
804,
26360,
5532,
8485,
273,
394,
804,
26360,
5621,
565,
5532,
8485,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
4070,
329,
1919,
941,
8107,
10663,
565,
3564,
18,
3996,
1541,
15742,
2396,
12,
12033,
8485,
1769,
565,
284,
5537,
273,
333,
31,
565,
284,
1488,
273,
394,
2350,
1488,
5621,
565,
284,
1079,
2471,
273,
394,
4902,
1388,
12,
2011,
1769,
565,
13288,
14189,
1318,
18,
11574,
1442,
7675,
4861,
1841,
12,
74,
1079,
2471,
1769,
565,
284,
1079,
2471,
18,
542,
2471,
1494,
12,
79,
6638,
734,
1769,
565,
284,
1494,
1488,
273,
284,
1079,
2471,
18,
588,
1494,
1488,
5621,
565,
284,
1494,
1488,
18,
1289,
1494,
1488,
2223,
2
] |
assertEquals("$15.00", d15.localString()); assertEquals("2,51 ?", m2_51.localString());
|
assertEquals("$15.00", myD15.localString()); assertEquals("2,51 ?", myM2_51.localString());
|
public void xtestLocalPrinting() { //disabled due to problem with euro symbol on linux assertEquals("$15.00", d15.localString()); assertEquals("2,51 ?", m2_51.localString());}
|
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/a1d834b8afa19616ae48373d08a0ac796b222fb6/MoneyTester.java/buggy/projects/agreement/framework/java/src/mf/MoneyTester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
619,
3813,
2042,
5108,
310,
1435,
288,
565,
368,
9278,
6541,
358,
6199,
598,
425,
19321,
3273,
603,
19725,
202,
11231,
8867,
2932,
8,
3600,
18,
713,
3113,
302,
3600,
18,
3729,
780,
10663,
202,
11231,
8867,
2932,
22,
16,
10593,
692,
3113,
312,
22,
67,
10593,
18,
3729,
780,
10663,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
918,
619,
3813,
2042,
5108,
310,
1435,
288,
565,
368,
9278,
6541,
358,
6199,
598,
425,
19321,
3273,
603,
19725,
202,
11231,
8867,
2932,
8,
3600,
18,
713,
3113,
302,
3600,
18,
3729,
780,
10663,
202,
11231,
8867,
2932,
22,
16,
10593,
692,
3113,
312,
22,
67,
10593,
18,
3729,
780,
10663,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 new ASTEnumerationSpecifier( scope, name, startingOffset, nameOffset, nameEndOffset );
|
return new ASTEnumerationSpecifier( scope, name, startingOffset, startingLine, nameOffset, nameEndOffset, nameLine );
|
public IASTEnumerationSpecifier createEnumerationSpecifier(IASTScope scope, String name, int startingOffset, int nameOffset, int nameEndOffset) { return new ASTEnumerationSpecifier( scope, name, startingOffset, nameOffset, nameEndOffset ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/QuickParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/QuickParseASTFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
21847,
21416,
752,
21847,
21416,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
509,
5023,
2335,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
13,
565,
288,
3639,
327,
394,
9183,
21847,
21416,
12,
2146,
16,
508,
16,
5023,
2335,
16,
5023,
1670,
16,
508,
2335,
16,
508,
1638,
2335,
16,
508,
1670,
11272,
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,
467,
9053,
21847,
21416,
752,
21847,
21416,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
509,
5023,
2335,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
13,
565,
288,
3639,
327,
394,
9183,
21847,
21416,
12,
2146,
16,
508,
16,
5023,
2335,
16,
5023,
1670,
16,
508,
2335,
16,
508,
1638,
2335,
16,
508,
1670,
11272,
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
] |
ruby.getCBase().setClassVar(iVisited.getName(), result.toRubyObject());
|
ruby.getCBase().setClassVar(iVisited.getName(), result);
|
public void visitClassVarAsgnNode(ClassVarAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.getCBase().setClassVar(iVisited.getName(), result.toRubyObject()); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f235ab756f32ea9496f8f880066b46ad95ebb692/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
797,
1537,
37,
1055,
82,
907,
12,
797,
1537,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
5302,
12,
77,
30019,
18,
24805,
907,
10663,
3639,
22155,
18,
588,
39,
2171,
7675,
542,
797,
1537,
12,
77,
30019,
18,
17994,
9334,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
3757,
797,
1537,
37,
1055,
82,
907,
12,
797,
1537,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
5302,
12,
77,
30019,
18,
24805,
907,
10663,
3639,
22155,
18,
588,
39,
2171,
7675,
542,
797,
1537,
12,
77,
30019,
18,
17994,
9334,
563,
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
] |
Object[] jobsToCheck = jobs.keySet().toArray(); boolean pruned = false; for (int i = 0; i < jobsToCheck.length; i++) { Job job = (Job) jobsToCheck[i]; if(checkForStaleness(job)){ if (Policy.DEBUG_STALE_JOBS) {
|
Object[] jobsToCheck = jobs.keySet().toArray(); boolean pruned = false; for (int i = 0; i < jobsToCheck.length; i++) { Job job = (Job) jobsToCheck[i]; if (checkForStaleness(job)) { if (Policy.DEBUG_STALE_JOBS) {
|
private boolean pruneStaleJobs() { Object[] jobsToCheck = jobs.keySet().toArray(); boolean pruned = false; for (int i = 0; i < jobsToCheck.length; i++) { Job job = (Job) jobsToCheck[i]; if(checkForStaleness(job)){ if (Policy.DEBUG_STALE_JOBS) { WorkbenchPlugin.log("Stale Job " + job.getName()); //$NON-NLS-1$ } pruned = true; } } return pruned; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9f68fc05c49b144eebae1957b15f8f3671c54cac/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
13293,
19155,
7276,
1435,
288,
3639,
1033,
8526,
6550,
18126,
273,
6550,
18,
856,
694,
7675,
31447,
5621,
3639,
1250,
27843,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6550,
18126,
18,
2469,
31,
277,
27245,
288,
5411,
3956,
1719,
273,
261,
2278,
13,
6550,
18126,
63,
77,
15533,
5411,
309,
12,
1893,
1290,
510,
287,
15681,
12,
4688,
3719,
95,
2398,
202,
430,
261,
2582,
18,
9394,
67,
882,
37,
900,
67,
18321,
55,
13,
288,
6862,
202,
2421,
22144,
3773,
18,
1330,
2932,
19155,
3956,
315,
397,
1719,
18,
17994,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
2398,
202,
683,
20630,
273,
638,
31,
5411,
289,
3639,
289,
3639,
327,
27843,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
13293,
19155,
7276,
1435,
288,
3639,
1033,
8526,
6550,
18126,
273,
6550,
18,
856,
694,
7675,
31447,
5621,
3639,
1250,
27843,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6550,
18126,
18,
2469,
31,
277,
27245,
288,
5411,
3956,
1719,
273,
261,
2278,
13,
6550,
18126,
63,
77,
15533,
5411,
309,
12,
1893,
1290,
510,
287,
15681,
12,
4688,
3719,
95,
2398,
202,
430,
261,
2582,
18,
9394,
67,
882,
37,
900,
67,
18321,
55,
13,
288,
6862,
202,
2421,
22144,
3773,
18,
1330,
2932,
19155,
3956,
315,
397,
1719,
18,
17994,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
2398,
202,
683,
20630,
273,
638,
31,
5411,
2
] |
catch (Exception e) {
|
catch (Throwable e) {
|
public void test() throws Throwable { selenium.setContext("Test Failing Verifications", "info"); /* Test Failing Verifications */ // open|./tests/html/test_verifications.html| selenium.open("./tests/html/test_verifications.html"); boolean sawThrow4 = false; try { selenium.assertLocation("/tests/html/not_test_verifications.html"); } catch (Exception e) { sawThrow4 = true; } verifyTrue(sawThrow4); boolean sawThrow6 = false; try { // assertValue|theText|not the text value assertEquals("not the text value", selenium.getValue("theText")); } catch (Exception e) { sawThrow6 = true; } verifyTrue(sawThrow6); boolean sawThrow8 = false; try { // assertNotValue|theText|the text value assertNotEquals("the text value", selenium.getValue("theText")); } catch (Exception e) { sawThrow8 = true; } verifyTrue(sawThrow8); boolean sawThrow10 = false; try { // assertValue|theHidden|not the hidden value assertEquals("not the hidden value", selenium.getValue("theHidden")); } catch (Exception e) { sawThrow10 = true; } verifyTrue(sawThrow10); boolean sawThrow12 = false; try { // assertText|theSpan|this is not the span assertEquals("this is not the span", selenium.getText("theSpan")); } catch (Exception e) { sawThrow12 = true; } verifyTrue(sawThrow12); boolean sawThrow14 = false; try { // assertTextPresent|this is not the span| assertTrue(this.getText().indexOf("this is not the span")!=-1); } catch (Exception e) { sawThrow14 = true; } verifyTrue(sawThrow14); boolean sawThrow16 = false; try { // assertTextNotPresent|this is the span| assertFalse(this.getText().indexOf("this is the span")!=-1); } catch (Exception e) { sawThrow16 = true; } verifyTrue(sawThrow16); boolean sawThrow18 = false; try { selenium.assertElementPresent("notTheSpan"); } catch (Exception e) { sawThrow18 = true; } verifyTrue(sawThrow18); boolean sawThrow20 = false; try { selenium.assertElementNotPresent("theSpan"); } catch (Exception e) { sawThrow20 = true; } verifyTrue(sawThrow20); boolean sawThrow22 = false; try { // assertTable|theTable.1.0|a assertEquals("a", selenium.getTable("theTable.1.0")); } catch (Exception e) { sawThrow22 = true; } verifyTrue(sawThrow22); boolean sawThrow24 = false; try { selenium.assertSelected("theSelect", "index=2"); } catch (Exception e) { sawThrow24 = true; } verifyTrue(sawThrow24); boolean sawThrow26 = false; try { selenium.assertSelected("theSelect", "value=opt*3"); } catch (Exception e) { sawThrow26 = true; } verifyTrue(sawThrow26); boolean sawThrow28 = false; try { selenium.assertSelected("theSelect", "third option"); } catch (Exception e) { sawThrow28 = true; } verifyTrue(sawThrow28); boolean sawThrow30 = false; try { String[] tmp2 = {"first\\\\,option", "second option"}; // assertSelectOptions|theSelect|first\\\\,option,second option assertEquals(tmp2, selenium.getSelectOptions("theSelect")); } catch (Exception e) { sawThrow30 = true; } verifyTrue(sawThrow30); boolean sawThrow32 = false; try { // assertAttribute|theText@class|bar assertEquals("bar", selenium.getAttribute("theText@class")); } catch (Exception e) { sawThrow32 = true; } verifyTrue(sawThrow32); boolean sawThrow34 = false; try { // assertNotAttribute|theText@class|foo assertNotEquals("foo", selenium.getAttribute("theText@class")); } catch (Exception e) { sawThrow34 = true; } verifyTrue(sawThrow34); checkForVerificationErrors(); }
|
50930 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50930/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestFailingVerifications.java/clean/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestFailingVerifications.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
8911,
310,
6160,
6640,
3113,
315,
1376,
8863,
225,
1748,
7766,
8911,
310,
6160,
6640,
1195,
1082,
202,
759,
1696,
96,
18,
19,
16341,
19,
2620,
19,
3813,
67,
502,
6640,
18,
2620,
96,
1082,
202,
1786,
17327,
18,
3190,
2932,
18,
19,
16341,
19,
2620,
19,
3813,
67,
502,
6640,
18,
2620,
8863,
202,
202,
6494,
19821,
8282,
24,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
1786,
17327,
18,
11231,
2735,
2932,
19,
16341,
19,
2620,
19,
902,
67,
3813,
67,
502,
6640,
18,
2620,
8863,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
288,
1082,
202,
87,
2219,
8282,
24,
273,
638,
31,
202,
202,
97,
202,
202,
8705,
5510,
12,
87,
2219,
8282,
24,
1769,
9506,
202,
6494,
19821,
8282,
26,
273,
629,
31,
202,
202,
698,
288,
25083,
202,
759,
1815,
620,
96,
5787,
1528,
96,
902,
326,
977,
460,
1082,
202,
11231,
8867,
2932,
902,
326,
977,
460,
3113,
29480,
18,
24805,
2932,
5787,
1528,
7923,
1769,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
288,
1082,
202,
87,
2219,
8282,
26,
273,
638,
31,
202,
202,
97,
202,
202,
8705,
5510,
12,
87,
2219,
8282,
26,
1769,
9506,
202,
6494,
19821,
8282,
28,
273,
629,
31,
202,
202,
698,
288,
25083,
202,
759,
1815,
1248,
620,
96,
5787,
1528,
96,
5787,
977,
460,
1082,
202,
11231,
1248,
8867,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
8911,
310,
6160,
6640,
3113,
315,
1376,
8863,
225,
1748,
7766,
8911,
310,
6160,
6640,
1195,
1082,
202,
759,
1696,
96,
18,
19,
16341,
19,
2620,
19,
3813,
67,
502,
6640,
18,
2620,
96,
1082,
202,
1786,
17327,
18,
3190,
2932,
18,
19,
16341,
19,
2620,
19,
3813,
67,
502,
6640,
18,
2620,
8863,
202,
202,
6494,
19821,
8282,
24,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
1786,
17327,
18,
11231,
2735,
2932,
19,
16341,
19,
2620,
19,
902,
67,
3813,
67,
502,
6640,
18,
2620,
8863,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
288,
1082,
202,
2
] |
if (client.getBattlePhase() == Constants.MOVE)
|
if (client.getBattlePhase() == Constants.BattlePhase.MOVE)
|
private void setupActions() { undoLastAction = new AbstractAction(undoLast) { public void actionPerformed(ActionEvent e) { if (!client.getPlayerName().equals( client.getBattleActivePlayerName())) { return; } if (client.getBattlePhase() == Constants.MOVE) { selectedCritterTag = -1; client.undoLastBattleMove(); highlightMobileCritters(); } } }; undoAllAction = new AbstractAction(undoAll) { public void actionPerformed(ActionEvent e) { if (!client.getPlayerName().equals( client.getBattleActivePlayerName())) { return; } if (client.getBattlePhase() == Constants.MOVE) { selectedCritterTag = -1; client.undoAllBattleMoves(); highlightMobileCritters(); } } }; doneWithPhaseAction = new AbstractAction(doneWithPhase) { public void actionPerformed(ActionEvent e) { if (!client.getPlayerName().equals( client.getBattleActivePlayerName())) { return; } int phase = client.getBattlePhase(); switch (phase) { case Constants.MOVE: if (!client.getOption(Options.autoPlay) && client.anyOffboardCreatures() && !confirmLeavingCreaturesOffboard()) { return; } client.doneWithBattleMoves(); break; case Constants.FIGHT: case Constants.STRIKEBACK: client.doneWithStrikes(); break; default: Log.error("Bogus phase"); } } }; concedeBattleAction = new AbstractAction(concedeBattle) { public void actionPerformed(ActionEvent e) { String[] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(battleFrame, "Are you sure you wish to concede the battle?", "Confirm Concession?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { String playerName = client.getPlayerName(); Log.event(playerName + " concedes the battle"); client.concede(); } ; } }; }
|
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/95fc8b283c4733fb9e761ead12f639e8da0ea57c/BattleMap.java/clean/Colossus/core/src/main/java/net/sf/colossus/client/BattleMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
6100,
1435,
565,
288,
3639,
15436,
3024,
1803,
273,
394,
4115,
1803,
12,
31226,
3024,
13,
3639,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
309,
16051,
2625,
18,
588,
12148,
461,
7675,
14963,
12,
10792,
1004,
18,
588,
38,
4558,
298,
3896,
12148,
461,
1435,
3719,
7734,
288,
10792,
327,
31,
7734,
289,
7734,
309,
261,
2625,
18,
588,
38,
4558,
298,
11406,
1435,
422,
5245,
18,
38,
4558,
298,
11406,
18,
16537,
13,
7734,
288,
10792,
3170,
39,
583,
387,
1805,
273,
300,
21,
31,
10792,
1004,
18,
31226,
3024,
38,
4558,
298,
7607,
5621,
10792,
8839,
19584,
39,
583,
5432,
5621,
7734,
289,
5411,
289,
3639,
289,
31,
3639,
15436,
1595,
1803,
273,
394,
4115,
1803,
12,
31226,
1595,
13,
3639,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
309,
16051,
2625,
18,
588,
12148,
461,
7675,
14963,
12,
10792,
1004,
18,
588,
38,
4558,
298,
3896,
12148,
461,
1435,
3719,
7734,
288,
10792,
327,
31,
7734,
289,
7734,
309,
261,
2625,
18,
588,
38,
4558,
298,
11406,
1435,
422,
5245,
18,
38,
4558,
298,
11406,
18,
16537,
13,
7734,
288,
10792,
3170,
39,
583,
387,
1805,
273,
300,
21,
31,
10792,
1004,
18,
31226,
1595,
38,
4558,
298,
19297,
5621,
10792,
8839,
19584,
39,
583,
5432,
5621,
7734,
289,
5411,
289,
3639,
289,
31,
3639,
2731,
1190,
11406,
1803,
273,
394,
4115,
1803,
12,
8734,
1190,
11406,
13,
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,
3875,
6100,
1435,
565,
288,
3639,
15436,
3024,
1803,
273,
394,
4115,
1803,
12,
31226,
3024,
13,
3639,
288,
5411,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
309,
16051,
2625,
18,
588,
12148,
461,
7675,
14963,
12,
10792,
1004,
18,
588,
38,
4558,
298,
3896,
12148,
461,
1435,
3719,
7734,
288,
10792,
327,
31,
7734,
289,
7734,
309,
261,
2625,
18,
588,
38,
4558,
298,
11406,
1435,
422,
5245,
18,
38,
4558,
298,
11406,
18,
16537,
13,
7734,
288,
10792,
3170,
39,
583,
387,
1805,
273,
300,
21,
31,
10792,
1004,
18,
31226,
3024,
38,
4558,
298,
7607,
5621,
10792,
8839,
19584,
39,
583,
5432,
5621,
7734,
289,
5411,
289,
3639,
289,
2
] |
strBuffer.append("<br>");
|
strBuffer.append("<br/>");
|
private void renderExecutionCourseListForYear(StringBuilder strBuffer, Integer curricularYear, PageContext pageContext) { if (!examsMap.hasExecutionCoursesForGivenCurricularYear(curricularYear)) { strBuffer.append("<i>").append(getMessageResource(pageContext, "no.execution.courses.for.curricular.year")).append(curricularYear).append("</i>"); } else { if (user.equals("public")) { strBuffer.append("<table class='tab_exams_details' cellspacing='0'>"); strBuffer.append("<tr><th rowspan='2' width='250' class='ordYear'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.year")); strBuffer.append(" "); strBuffer.append(curricularYear); strBuffer.append("</th>"); strBuffer.append("<th colspan='3' width='250'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.times")); strBuffer.append(" 1"); strBuffer.append("</th>"); strBuffer.append("<th colspan='3'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.times")); strBuffer.append(" 2"); strBuffer.append("</th></tr>"); strBuffer.append("<tr><td class='subheader' width='70'>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.day")); strBuffer.append("</td><td class='subheader' width='50'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.hour")); strBuffer.append("</td><td class='subheader' width='130'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.room")); strBuffer.append("</td>"); strBuffer.append("<td class='subheader' width='70'>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.day")); strBuffer.append("</td>" + "<td class='subheader' width='50'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.hour")); strBuffer.append("</td><td class='subheader' width='130'>"); strBuffer .append(getMessageResource(pageContext, "public.degree.information.label.room")); strBuffer.append("</td></tr>"); } else { strBuffer.append("<strong>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.courseOf")); strBuffer.append(curricularYear + "º ano:</strong>"); } Collections.sort(examsMap.getExecutionCourses(), new BeanComparator("sigla")); String rowClass = "notFirstRow"; // used for CSS style for (int i = 0; i < examsMap.getExecutionCourses().size(); i++) { InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) examsMap .getExecutionCourses().get(i); if (user.equals("sop")) { strBuffer.append("<table border='1' cellspacing='0' cellpadding='3' width='95%'>"); strBuffer.append("<tr>"); } if (i == 0) { rowClass = "firstRow"; } if (infoExecutionCourse.getCurricularYear().equals(curricularYear)) { boolean showCreateExamLink = infoExecutionCourse.getAssociatedInfoExams().size() < 2; if (user.equals("sop")) { strBuffer.append("<td colspan='6'>"); } if (user.equals("public")) { strBuffer.append("<tr valign='top'>"); strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append("<a href='viewSite.do?method=firstPage&objectCode=" + infoExecutionCourse.getIdInternal() + "&executionPeriodOID=" + infoExecutionCourse.getInfoExecutionPeriod().getIdInternal() + "&degreeID=" + examsMap.getInfoExecutionDegree().getInfoDegreeCurricularPlan() .getInfoDegree().getIdInternal() + "&" + SessionConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getIdInternal() + "&executionDegreeID=" + examsMap.getInfoExecutionDegree().getIdInternal() + "&degreeCurricularPlanID=" + examsMap.getInfoExecutionDegree().getInfoDegreeCurricularPlan() .getIdInternal() + "'>"); } else if (showCreateExamLink && user.equals("sop")) { strBuffer.append("<a href='showExamsManagement.do?method=createByCourse&" + SessionConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getIdInternal() + "&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod().getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + "&" + SessionConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString() + "'>"); } strBuffer.append(infoExecutionCourse.getSigla()); strBuffer.append(" - "); strBuffer.append(infoExecutionCourse.getNome()); if (user.equals("public")) { strBuffer.append("</a>"); strBuffer.append("</td>"); } boolean hasComment = infoExecutionCourse.getComment() != null && infoExecutionCourse.getComment().length() > 0 && !infoExecutionCourse.getComment().equals(" "); if (hasComment) { if (user.equals("sop")) { strBuffer.append(" : "); strBuffer.append("<a href='defineComment.do?executionCourseCode="); strBuffer.append(infoExecutionCourse.getSigla()); strBuffer.append("&executionPeriodName=" + infoExecutionCourse.getInfoExecutionPeriod().getName()); strBuffer.append("&executionYear=" + infoExecutionCourse.getInfoExecutionPeriod() .getInfoExecutionYear().getYear()); strBuffer.append("&comment=" + infoExecutionCourse.getComment()); strBuffer.append("&method=prepare"); strBuffer.append("&indexExecutionCourse=" + i); strBuffer.append("&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod().getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + getCurricularYearsArgs()); strBuffer.append("'>"); } else if (user.equals("public")) { strBuffer.append("<td colspan='6' class='" + rowClass + "'><i>"); } strBuffer.append(infoExecutionCourse.getComment()); if (user.equals("sop")) { strBuffer.append("</a>"); } else if (user.equals("public")) { strBuffer.append("</i></td>"); } } else { if (user.equals("sop")) { strBuffer.append(" : "); strBuffer.append("<a href='defineComment.do?executionCourseCode="); strBuffer.append(infoExecutionCourse.getSigla()); strBuffer.append("&executionPeriodName=" + infoExecutionCourse.getInfoExecutionPeriod().getName()); strBuffer.append("&executionYear=" + infoExecutionCourse.getInfoExecutionPeriod() .getInfoExecutionYear().getYear()); strBuffer.append("&method=prepare"); strBuffer.append("&indexExecutionCourse=" + i); strBuffer.append("&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod().getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + getCurricularYearsArgs()); strBuffer.append("'>"); strBuffer.append("Definir comentário"); strBuffer.append("</a>"); } } if (user.equals("sop")) { strBuffer.append("</td>"); strBuffer.append("</tr>"); } if (infoExecutionCourse.getAssociatedInfoExams().isEmpty() && !hasComment) { strBuffer.append("<td colspan='6' align='center' class='" + rowClass + "'>"); strBuffer.append("<i>").append(getMessageResource(pageContext, "no.exams.for.curricular.year")).append("</i>"); strBuffer.append("</td>"); } else { // Get 1st season exam InfoExam season1Exam = (InfoExam) CollectionUtils.find(infoExecutionCourse .getAssociatedInfoExams(), new Predicate() { public boolean evaluate(Object obj) { InfoExam infoExam = (InfoExam) obj; return infoExam.getSeason().equals(new Season(Season.SEASON1)); } }); // Get 2nd season exam InfoExam season2Exam = (InfoExam) CollectionUtils.find(infoExecutionCourse .getAssociatedInfoExams(), new Predicate() { public boolean evaluate(Object obj) { InfoExam infoExam = (InfoExam) obj; return infoExam.getSeason().equals(new Season(Season.SEASON2)); } }); if (user.equals("public")) { if (season1Exam == null && !hasComment) { strBuffer.append("<td colspan='3' class='" + rowClass + "'> </td>"); } if (season2Exam == null && !hasComment) { strBuffer.append("<td colspan='3' class='" + rowClass + "'> </td>"); } } if ((season1Exam != null) // && season1Exam.getAssociatedRooms() != null // && season1Exam.getAssociatedRooms().size() > // 0) || (season2Exam != null)) // && season2Exam.getAssociatedRooms() != null // && season2Exam.getAssociatedRooms().size() > 0)) { if (season1Exam != null) { if (user.equals("sop")) { strBuffer.append("<tr>"); strBuffer.append("<td>"); strBuffer.append("<a href='showExamsManagement.do?method=edit&" + SessionConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getIdInternal() + "&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod() .getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + "&" + SessionConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString() + "&" + SessionConstants.EXAM_OID + "=" + season1Exam.getIdInternal() + "'>"); } if (user.equals("sop")) { strBuffer.append("1ª Época"); strBuffer.append("</a>"); strBuffer.append("</td>"); strBuffer.append("<td>"); strBuffer.append(season1Exam.getDate()); strBuffer.append("<br>"); strBuffer.append(season1Exam.getBeginningHour()); strBuffer.append("-"); strBuffer.append(season1Exam.getEndHour()); } else if (user.equals("public")) { strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append(season1Exam.getDate()); strBuffer.append("</td>"); strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append(season1Exam.getBeginningHour()); strBuffer.append("</td>"); // strBuffer.append("-"); // strBuffer.append(season1Exam.getEndHour()); } if (user.equals("sop")) { strBuffer.append("</td>"); strBuffer.append("<td>"); // Integer numAlunos = // infoExecutionCourse.getNumberOfAttendingStudents(); Integer numAlunos = season1Exam.getEnrolledStudents(); strBuffer.append(numAlunos); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.enrolledPupils")); strBuffer.append("</td>"); strBuffer.append("<td>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.lack")); // Obter o num de lugares de exame das salas List roomOccupation = season1Exam.getAssociatedRoomOccupation(); int numLugaresSalas = 0; for (int iterRO = 0; iterRO < roomOccupation.size(); iterRO++) { InfoRoomOccupation infoRO = (InfoRoomOccupation) roomOccupation .get(iterRO); numLugaresSalas += infoRO.getInfoRoom().getCapacidadeExame() .intValue(); } int numLugaresAPreencher = numAlunos.intValue() - numLugaresSalas; // if (numLugaresAPreencher < 0) // numLugaresAPreencher = 0; strBuffer.append(numLugaresAPreencher); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.places")); strBuffer.append("</td>"); strBuffer.append("<td>"); } List infoRoomOccupations = season1Exam.getAssociatedRoomOccupation(); if (infoRoomOccupations != null && infoRoomOccupations.size() > 0) { if (user.equals("sop")) { strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.rooms")); strBuffer.append("<br>"); } else if (user.equals("public")) { strBuffer.append("<td class='" + rowClass + "'>"); } for (int iterIRO = 0; iterIRO < infoRoomOccupations.size(); iterIRO++) { InfoRoomOccupation infoRoomOccupation = (InfoRoomOccupation) infoRoomOccupations .get(iterIRO); strBuffer.append(infoRoomOccupation.getInfoRoom().getNome() + "; "); } } else { if (user.equals("sop")) { strBuffer.append("-"); } else if (user.equals("public")) { strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append("<i>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.noRoomsAttributed")); strBuffer.append("</i>"); } } if (user.equals("sop")) { strBuffer.append("</td>"); strBuffer.append("<td>"); strBuffer .append("<a href='showExamsManagement.do?method=delete&" + SessionConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getIdInternal() + "&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod() .getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + "&" + SessionConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString() + "&" + SessionConstants.EXAM_OID + "=" + season1Exam.getIdInternal() + "'>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.delete")); strBuffer.append("</a>"); strBuffer.append("</td>"); } } if (season2Exam != null) { if (user.equals("sop")) { strBuffer.append("<tr>"); strBuffer.append("<td>"); strBuffer.append("<a href='showExamsManagement.do?method=edit&" + SessionConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getIdInternal() + "&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod() .getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + "&" + SessionConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString() + "&" + SessionConstants.EXAM_OID + "=" + season2Exam.getIdInternal() + "'>"); } if (user.equals("sop")) { strBuffer.append("2ª "); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.times")); strBuffer.append("</a>"); strBuffer.append("</td>"); strBuffer.append("<td>"); strBuffer.append(season2Exam.getDate()); strBuffer.append("<br>"); strBuffer.append(season2Exam.getBeginningHour()); strBuffer.append("-"); strBuffer.append(season2Exam.getEndHour()); } else if (user.equals("public")) { strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append(season2Exam.getDate()); strBuffer.append("</td>"); strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append(season2Exam.getBeginningHour()); strBuffer.append("</td>"); // strBuffer.append("-"); // strBuffer.append(season2Exam.getEndHour()); } if (user.equals("sop")) { strBuffer.append("</td>"); strBuffer.append("<td>"); // Integer numAlunos = // infoExecutionCourse.getNumberOfAttendingStudents(); Integer numAlunos = season2Exam.getEnrolledStudents(); strBuffer.append(numAlunos); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.enrolledPupils")); strBuffer.append("</td>"); strBuffer.append("<td>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.lack")); // Obter o num de lugares de exame das salas List roomOccupation = season2Exam.getAssociatedRoomOccupation(); int numLugaresSalas = 0; for (int iterRO = 0; iterRO < roomOccupation.size(); iterRO++) { InfoRoomOccupation infoRO = (InfoRoomOccupation) roomOccupation .get(iterRO); numLugaresSalas += infoRO.getInfoRoom().getCapacidadeExame() .intValue(); } int numLugaresAPreencher = numAlunos.intValue() - numLugaresSalas; // if (numLugaresAPreencher < 0) // numLugaresAPreencher = 0; strBuffer.append(numLugaresAPreencher); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.places")); strBuffer.append("</td>"); strBuffer.append("<td>"); } List infoRoomOccupations = season2Exam.getAssociatedRoomOccupation(); if (infoRoomOccupations != null && infoRoomOccupations.size() > 0) { if (user.equals("sop")) { strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.rooms") + ":"); strBuffer.append("<br>"); } else if (user.equals("public")) { strBuffer.append("<td class='" + rowClass + "'>"); } for (int iterIRO = 0; iterIRO < infoRoomOccupations.size(); iterIRO++) { InfoRoomOccupation infoRoomOccupation = (InfoRoomOccupation) infoRoomOccupations .get(iterIRO); strBuffer.append(infoRoomOccupation.getInfoRoom().getNome() + "; "); } if (user.equals("public")) { strBuffer.append("</td>"); } } else { if (user.equals("sop")) { strBuffer.append("-"); } else if (user.equals("public")) { strBuffer.append("<td class='" + rowClass + "'>"); strBuffer.append("<i>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.noRoomsAttributed")); strBuffer.append("</i>"); strBuffer.append("</td>"); } } if (user.equals("sop")) { strBuffer.append("</td>"); strBuffer.append("<td>"); strBuffer .append("<a href='showExamsManagement.do?method=delete&" + SessionConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getIdInternal() + "&" + SessionConstants.EXECUTION_PERIOD_OID + "=" + infoExecutionCourse.getInfoExecutionPeriod() .getIdInternal() + "&" + SessionConstants.EXECUTION_DEGREE_OID + "=" + examsMap.getInfoExecutionDegree().getIdInternal() + "&" + SessionConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString() + "&" + SessionConstants.EXAM_OID + "=" + season2Exam.getIdInternal() + "'>"); strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.delete")); strBuffer.append("</a>"); strBuffer.append("</td>"); } } } } if (user.equals("public")) { strBuffer.append("</tr>"); if (rowClass == "firstRow") { rowClass = "notFirstRow"; } } } if (user.equals("sop")) { strBuffer.append("</tr>"); strBuffer.append("</table>"); strBuffer.append("<br />"); } } if (user.equals("public")) { strBuffer.append("</table>"); } } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1c3ba09b56f930e8bc01a056c3ab3f3a79a1359c/ExamsMapRenderer.java/clean/src/net/sourceforge/fenixedu/presentationTier/TagLib/sop/examsMapNew/ExamsMapRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
3210,
39,
3117,
682,
1290,
5593,
12,
21253,
609,
1892,
16,
2144,
662,
1512,
2490,
5593,
16,
5411,
3460,
1042,
21442,
13,
288,
3639,
309,
16051,
338,
301,
87,
863,
18,
5332,
3210,
39,
10692,
1290,
6083,
2408,
1512,
2490,
5593,
12,
1397,
1512,
2490,
5593,
3719,
288,
5411,
609,
1892,
18,
6923,
2932,
32,
77,
2984,
2934,
6923,
12,
24906,
1420,
12,
2433,
1042,
16,
315,
2135,
18,
16414,
18,
15804,
18,
1884,
18,
1397,
1512,
2490,
18,
6874,
7923,
2934,
6923,
12,
1397,
1512,
2490,
5593,
2934,
6923,
2932,
1757,
77,
2984,
1769,
3639,
289,
469,
288,
5411,
309,
261,
1355,
18,
14963,
2932,
482,
6,
3719,
288,
7734,
609,
1892,
18,
6923,
2932,
32,
2121,
667,
2218,
7032,
67,
338,
301,
87,
67,
6395,
11,
2484,
14080,
2218,
20,
28533,
1769,
7734,
609,
1892,
18,
6923,
2932,
32,
313,
4438,
451,
1027,
3969,
2218,
22,
11,
1835,
2218,
26520,
11,
667,
2218,
517,
5593,
28533,
1769,
7734,
609,
1892,
13491,
263,
6923,
12,
24906,
1420,
12,
2433,
1042,
16,
315,
482,
18,
21361,
18,
13117,
18,
1925,
18,
6874,
7923,
1769,
7734,
609,
1892,
18,
6923,
2932,
315,
1769,
7734,
609,
1892,
18,
6923,
12,
1397,
1512,
2490,
5593,
1769,
7734,
609,
1892,
18,
6923,
2932,
1757,
451,
2984,
1769,
7734,
609,
1892,
18,
6923,
2932,
32,
451,
20856,
2218,
23,
11,
1835,
2218,
26520,
28533,
1769,
7734,
609,
1892,
13491,
263,
6923,
12,
24906,
1420,
12,
2433,
1042,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
3210,
39,
3117,
682,
1290,
5593,
12,
21253,
609,
1892,
16,
2144,
662,
1512,
2490,
5593,
16,
5411,
3460,
1042,
21442,
13,
288,
3639,
309,
16051,
338,
301,
87,
863,
18,
5332,
3210,
39,
10692,
1290,
6083,
2408,
1512,
2490,
5593,
12,
1397,
1512,
2490,
5593,
3719,
288,
5411,
609,
1892,
18,
6923,
2932,
32,
77,
2984,
2934,
6923,
12,
24906,
1420,
12,
2433,
1042,
16,
315,
2135,
18,
16414,
18,
15804,
18,
1884,
18,
1397,
1512,
2490,
18,
6874,
7923,
2934,
6923,
12,
1397,
1512,
2490,
5593,
2934,
6923,
2932,
1757,
77,
2984,
1769,
3639,
289,
469,
288,
5411,
309,
261,
1355,
18,
14963,
2932,
482,
6,
3719,
288,
7734,
609,
1892,
18,
6923,
2
] |
public void saveDefaultMessagePermissions(AreaControlPermission controlPermission)
|
public void saveDefaultMessagePermissions(List controlpermissions)
|
public void saveDefaultMessagePermissions(AreaControlPermission controlPermission) { permissionManager.saveDefaultAreaControlPermissionForRole(getDiscussionForumArea(),controlPermission); }
|
48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/93f1302c9550f1a4e14b76d5e0548369bef4d82f/DiscussionForumManagerImpl.java/clean/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/ui/DiscussionForumManagerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
1868,
1079,
6521,
12,
682,
3325,
9612,
13,
225,
288,
565,
4132,
1318,
18,
5688,
1868,
5484,
3367,
5041,
1290,
2996,
12,
588,
24393,
1290,
379,
5484,
9334,
7098,
5041,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1923,
1868,
1079,
6521,
12,
682,
3325,
9612,
13,
225,
288,
565,
4132,
1318,
18,
5688,
1868,
5484,
3367,
5041,
1290,
2996,
12,
588,
24393,
1290,
379,
5484,
9334,
7098,
5041,
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
] |
revalidate(); repaint();
|
public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); revalidate(); repaint(); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/JComponent.java/buggy/libraries/javalib/javax/swing/JComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10851,
2422,
1225,
12,
8611,
943,
13,
225,
288,
565,
13037,
1592,
13528,
1225,
273,
4207,
1225,
31,
565,
4207,
1225,
273,
943,
31,
565,
4452,
1396,
3043,
2932,
15724,
1225,
3113,
1592,
13528,
1225,
16,
4207,
1225,
1769,
565,
283,
5662,
5621,
565,
24962,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10851,
2422,
1225,
12,
8611,
943,
13,
225,
288,
565,
13037,
1592,
13528,
1225,
273,
4207,
1225,
31,
565,
4207,
1225,
273,
943,
31,
565,
4452,
1396,
3043,
2932,
15724,
1225,
3113,
1592,
13528,
1225,
16,
4207,
1225,
1769,
565,
283,
5662,
5621,
565,
24962,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); assertCondition((v1.getCategory() == 1) && (v2.getCategory() == 1), "category mismatch");
|
final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); assertCondition((v1.getCategory() == 1) && (v2.getCategory() == 1), "category mismatch");
|
public final void visit_swap() { final Item v1 = vstack.pop(); final Item v2 = vstack.pop(); assertCondition((v1.getCategory() == 1) && (v2.getCategory() == 1), "category mismatch"); final boolean v1_load = (v1.isStack() || v1.isFPUStack()); final boolean v2_load = (v2.isStack() || v2.isFPUStack()); if (v1_load || v2_load) { // at least one element the stack: must be popped to be inverted // (inverting only on vstack not enough) v1.load(eContext); v2.load(eContext); } vstack.push(v1); vstack.push(v2); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
3757,
67,
22270,
1435,
288,
3639,
727,
4342,
331,
21,
273,
19510,
18,
5120,
5621,
3639,
727,
4342,
331,
22,
273,
19510,
18,
5120,
5621,
3639,
1815,
3418,
12443,
90,
21,
18,
588,
4457,
1435,
422,
404,
13,
597,
261,
90,
22,
18,
588,
4457,
1435,
422,
404,
3631,
7734,
315,
4743,
13484,
8863,
3639,
727,
1250,
331,
21,
67,
945,
273,
261,
90,
21,
18,
291,
2624,
1435,
747,
331,
21,
18,
291,
42,
18061,
2624,
10663,
3639,
727,
1250,
331,
22,
67,
945,
273,
261,
90,
22,
18,
291,
2624,
1435,
747,
331,
22,
18,
291,
42,
18061,
2624,
10663,
3639,
309,
261,
90,
21,
67,
945,
747,
331,
22,
67,
945,
13,
288,
5411,
368,
622,
4520,
1245,
930,
326,
2110,
30,
1297,
506,
30766,
358,
506,
18150,
5411,
368,
261,
267,
1097,
310,
1338,
603,
19510,
486,
7304,
13,
5411,
331,
21,
18,
945,
12,
73,
1042,
1769,
5411,
331,
22,
18,
945,
12,
73,
1042,
1769,
3639,
289,
3639,
19510,
18,
6206,
12,
90,
21,
1769,
3639,
19510,
18,
6206,
12,
90,
22,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
3757,
67,
22270,
1435,
288,
3639,
727,
4342,
331,
21,
273,
19510,
18,
5120,
5621,
3639,
727,
4342,
331,
22,
273,
19510,
18,
5120,
5621,
3639,
1815,
3418,
12443,
90,
21,
18,
588,
4457,
1435,
422,
404,
13,
597,
261,
90,
22,
18,
588,
4457,
1435,
422,
404,
3631,
7734,
315,
4743,
13484,
8863,
3639,
727,
1250,
331,
21,
67,
945,
273,
261,
90,
21,
18,
291,
2624,
1435,
747,
331,
21,
18,
291,
42,
18061,
2624,
10663,
3639,
727,
1250,
331,
22,
67,
945,
273,
261,
90,
22,
18,
291,
2624,
1435,
747,
331,
22,
18,
291,
42,
18061,
2624,
10663,
3639,
309,
261,
90,
21,
67,
945,
747,
331,
22,
67,
945,
13,
2
] |
final byte ALOAD_CONTEXT = ByteCode.ALOAD_1; final byte ALOAD_SCOPE = ByteCode.ALOAD_2; cfw.addLoadThis(); cfw.add(ALOAD_CONTEXT); cfw.add(ALOAD_SCOPE); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, cfw.getClassName(), getInitImplMethodName(scriptOrFnNodes[0]), INIT_SIGNATURE);
|
final int CONTEXT_ARG = 1; final int SCOPE_ARG = 2;
|
private void generateExecute(ClassFileWriter cfw) { cfw.startMethod("exec", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); final byte ALOAD_CONTEXT = ByteCode.ALOAD_1; final byte ALOAD_SCOPE = ByteCode.ALOAD_2; // to begin a script, call the initScript method cfw.addLoadThis(); cfw.add(ALOAD_CONTEXT); cfw.add(ALOAD_SCOPE); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, cfw.getClassName(), getInitImplMethodName(scriptOrFnNodes[0]), INIT_SIGNATURE); cfw.addLoadThis(); cfw.add(ALOAD_CONTEXT); cfw.add(ALOAD_SCOPE); cfw.add(ByteCode.DUP); cfw.add(ByteCode.ACONST_NULL); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, cfw.getClassName(), "call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Ljava/lang/Object;"); cfw.add(ByteCode.ARETURN); // 3 = this + context + scope cfw.stopMethod((short)3, null); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1fe8179c7b117d3fca54e638920b3966b511a838/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
5289,
12,
797,
812,
2289,
6080,
91,
13,
565,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
4177,
3113,
13491,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
13491,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
13491,
397,
7923,
21159,
19,
4936,
19,
921,
31,
3113,
13491,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
14939,
27573,
571,
30614,
2289,
18,
31414,
67,
7263,
1013,
10019,
3639,
727,
1160,
432,
7783,
67,
13181,
273,
3506,
1085,
18,
1013,
51,
1880,
67,
21,
31,
3639,
727,
1160,
432,
7783,
67,
19444,
273,
3506,
1085,
18,
1013,
51,
1880,
67,
22,
31,
3639,
368,
358,
2376,
279,
2728,
16,
745,
326,
1208,
3651,
707,
3639,
6080,
91,
18,
1289,
2563,
2503,
5621,
3639,
6080,
91,
18,
1289,
12,
1013,
51,
1880,
67,
13181,
1769,
3639,
6080,
91,
18,
1289,
12,
1013,
51,
1880,
67,
19444,
1769,
3639,
6080,
91,
18,
1289,
10969,
12,
3216,
1085,
18,
706,
17691,
41,
26854,
16,
6080,
91,
18,
588,
3834,
9334,
8227,
26458,
2828,
11666,
12,
4263,
1162,
5372,
3205,
63,
20,
65,
3631,
8227,
12584,
67,
26587,
1769,
3639,
6080,
91,
18,
1289,
2563,
2503,
5621,
3639,
6080,
91,
18,
1289,
12,
1013,
51,
1880,
67,
13181,
1769,
3639,
6080,
91,
18,
1289,
12,
1013,
51,
1880,
67,
19444,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
30387,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
5289,
12,
797,
812,
2289,
6080,
91,
13,
565,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
4177,
3113,
13491,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
13491,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
13491,
397,
7923,
21159,
19,
4936,
19,
921,
31,
3113,
13491,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
14939,
27573,
571,
30614,
2289,
18,
31414,
67,
7263,
1013,
10019,
3639,
727,
1160,
432,
7783,
67,
13181,
273,
3506,
1085,
18,
1013,
51,
1880,
67,
21,
31,
3639,
727,
1160,
432,
7783,
67,
19444,
273,
3506,
1085,
18,
1013,
51,
1880,
67,
22,
31,
3639,
368,
358,
2376,
279,
2
] |
props = FSReader.getProperties(entryNode, reposRootDir);
|
props = FSReader.getProperties(entryNode, myReposRootDir);
|
private SVNDirEntry buildDirEntry(FSEntry repEntry, SVNURL parentURL, FSRevisionNode entryNode, File reposRootDir, boolean includeLogs) throws SVNException { entryNode = entryNode == null ? FSReader.getRevNodeFromID(reposRootDir, repEntry.getId()) : entryNode; // dir size is equated to 0 long size = 0; if (entryNode.getType() == SVNNodeKind.FILE) { size = entryNode.getTextRepresentation().getExpandedSize(); } Map props = null; props = FSReader.getProperties(entryNode, reposRootDir); boolean hasProps = (props == null || props.size() == 0) ? false : true; Map revProps = null; revProps = FSRepositoryUtil.getRevisionProperties(reposRootDir, repEntry.getId().getRevision()); String lastAuthor = null; String log = null; Date lastCommitDate = null; if (revProps != null && revProps.size() > 0) { lastAuthor = (String) revProps.get(SVNRevisionProperty.AUTHOR); log = (String) revProps.get(SVNRevisionProperty.LOG); String timeString = (String)revProps.get(SVNRevisionProperty.DATE); lastCommitDate = timeString != null ? SVNTimeUtil.parseDateString(timeString) : null; } SVNURL entryURL = parentURL.appendPath(repEntry.getName(), false); SVNDirEntry dirEntry = new SVNDirEntry(entryURL, repEntry.getName(), repEntry.getType(), size, hasProps, repEntry.getId().getRevision(), lastCommitDate, lastAuthor, includeLogs ? log : null); dirEntry.setRelativePath(repEntry.getName()); return dirEntry; }
|
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/f0fcefc4947829d4e138f4d7c99163b6d8f15f00/FSRepository.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSRepository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
1621,
1622,
1361,
1621,
1622,
12,
4931,
1622,
2071,
1622,
16,
29537,
50,
1785,
982,
1785,
16,
9247,
7939,
907,
1241,
907,
16,
1387,
13686,
27322,
16,
1250,
2341,
7777,
13,
1216,
29537,
50,
503,
288,
3639,
1241,
907,
273,
1241,
907,
422,
446,
692,
9247,
2514,
18,
588,
10070,
907,
1265,
734,
12,
15564,
27322,
16,
2071,
1622,
18,
26321,
10756,
294,
1241,
907,
31,
3639,
368,
1577,
963,
353,
1298,
690,
358,
374,
3639,
1525,
963,
273,
374,
31,
3639,
309,
261,
4099,
907,
18,
588,
559,
1435,
422,
29537,
50,
907,
5677,
18,
3776,
13,
288,
5411,
963,
273,
1241,
907,
18,
588,
1528,
13742,
7675,
588,
17957,
1225,
5621,
3639,
289,
3639,
1635,
3458,
273,
446,
31,
3639,
3458,
273,
9247,
2514,
18,
588,
2297,
12,
4099,
907,
16,
3399,
28453,
27322,
1769,
3639,
1250,
711,
5047,
273,
261,
9693,
422,
446,
747,
3458,
18,
1467,
1435,
422,
374,
13,
692,
629,
294,
638,
31,
3639,
1635,
5588,
5047,
273,
446,
31,
3639,
5588,
5047,
273,
9247,
3305,
1304,
18,
588,
7939,
2297,
12,
15564,
27322,
16,
2071,
1622,
18,
26321,
7675,
588,
7939,
10663,
3639,
514,
1142,
3594,
273,
446,
31,
3639,
514,
613,
273,
446,
31,
3639,
2167,
1142,
5580,
1626,
273,
446,
31,
3639,
309,
261,
9083,
5047,
480,
446,
597,
5588,
5047,
18,
1467,
1435,
405,
374,
13,
288,
5411,
1142,
3594,
273,
261,
780,
13,
5588,
5047,
18,
588,
12,
23927,
50,
7939,
1396,
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,
29537,
50,
1621,
1622,
1361,
1621,
1622,
12,
4931,
1622,
2071,
1622,
16,
29537,
50,
1785,
982,
1785,
16,
9247,
7939,
907,
1241,
907,
16,
1387,
13686,
27322,
16,
1250,
2341,
7777,
13,
1216,
29537,
50,
503,
288,
3639,
1241,
907,
273,
1241,
907,
422,
446,
692,
9247,
2514,
18,
588,
10070,
907,
1265,
734,
12,
15564,
27322,
16,
2071,
1622,
18,
26321,
10756,
294,
1241,
907,
31,
3639,
368,
1577,
963,
353,
1298,
690,
358,
374,
3639,
1525,
963,
273,
374,
31,
3639,
309,
261,
4099,
907,
18,
588,
559,
1435,
422,
29537,
50,
907,
5677,
18,
3776,
13,
288,
5411,
963,
273,
1241,
907,
18,
588,
1528,
13742,
7675,
588,
17957,
1225,
5621,
3639,
289,
2
] |
return null; }
|
return null; }
|
public String toString(Tag tag) { return null; }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/475c03442ff87bf255ce02ee1854f62acc1ea7e1/ICUTaglet.java/buggy/icu4j/src/com/ibm/icu/dev/tool/docs/ICUTaglet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
12,
1805,
1047,
13,
288,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
12,
1805,
1047,
13,
288,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jjmatchedKind = 88; return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000000L);
|
jjmatchedKind = 87; return jjMoveStringLiteralDfa1_0(0x0L, 0x200000000000000L);
|
private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 9: return jjStopAtPos(0, 2); case 10: return jjStopAtPos(0, 3); case 12: return jjStopAtPos(0, 5); case 13: return jjStopAtPos(0, 4); case 26: return jjStopAtPos(0, 121); case 32: return jjStopAtPos(0, 1); case 33: jjmatchedKind = 87; return jjMoveStringLiteralDfa1_0(0x0L, 0x40000000L); case 37: jjmatchedKind = 106; return jjMoveStringLiteralDfa1_0(0x0L, 0x20000000000000L); case 38: jjmatchedKind = 103; return jjMoveStringLiteralDfa1_0(0x0L, 0x4000100000000L); case 40: return jjStopAtPos(0, 75); case 41: return jjStopAtPos(0, 76); case 42: jjmatchedKind = 101; return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000000000L); case 43: jjmatchedKind = 99; return jjMoveStringLiteralDfa1_0(0x0L, 0x400200000000L); case 44: return jjStopAtPos(0, 82); case 45: jjmatchedKind = 100; return jjMoveStringLiteralDfa1_0(0x0L, 0x800400000000L); case 46: return jjStartNfaWithStates_0(0, 83, 4); case 47: jjmatchedKind = 102; return jjMoveStringLiteralDfa1_0(0x100L, 0x2000000000000L); case 58: return jjStopAtPos(0, 90); case 59: return jjStopAtPos(0, 81); case 60: jjmatchedKind = 86; return jjMoveStringLiteralDfa1_0(0x0L, 0x40080010000000L); case 61: jjmatchedKind = 84; return jjMoveStringLiteralDfa1_0(0x0L, 0x8000000L); case 62: jjmatchedKind = 85; return jjMoveStringLiteralDfa1_0(0x0L, 0x180300020000000L); case 63: return jjStopAtPos(0, 89); case 91: return jjStopAtPos(0, 79); case 93: return jjStopAtPos(0, 80); case 94: jjmatchedKind = 105; return jjMoveStringLiteralDfa1_0(0x0L, 0x10000000000000L); case 97: return jjMoveStringLiteralDfa1_0(0x8000000000001000L, 0x0L); case 98: return jjMoveStringLiteralDfa1_0(0xe000L, 0x0L); case 99: return jjMoveStringLiteralDfa1_0(0x3f0000L, 0x0L); case 100: return jjMoveStringLiteralDfa1_0(0x1c00000L, 0x0L); case 101: return jjMoveStringLiteralDfa1_0(0x6000000L, 0x0L); case 102: return jjMoveStringLiteralDfa1_0(0xf8000000L, 0x0L); case 103: return jjMoveStringLiteralDfa1_0(0x100000000L, 0x0L); case 105: return jjMoveStringLiteralDfa1_0(0x7e00000000L, 0x0L); case 108: return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L); case 110: return jjMoveStringLiteralDfa1_0(0x70000000000L, 0x0L); case 112: return jjMoveStringLiteralDfa1_0(0x780000000000L, 0x0L); case 114: return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x0L); case 115: return jjMoveStringLiteralDfa1_0(0x401f000000000000L, 0x0L); case 116: return jjMoveStringLiteralDfa1_0(0x7e0000000000000L, 0x0L); case 118: return jjMoveStringLiteralDfa1_0(0x1800000000000000L, 0x0L); case 119: return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); case 123: return jjStopAtPos(0, 77); case 124: jjmatchedKind = 104; return jjMoveStringLiteralDfa1_0(0x0L, 0x8000080000000L); case 125: return jjStopAtPos(0, 78); case 126: jjmatchedKind = 88; return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000000L); default : return jjMoveNfa_0(0, 0); }}
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
2468,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
576,
1769,
1377,
648,
1728,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
890,
1769,
1377,
648,
2593,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1381,
1769,
1377,
648,
5958,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1059,
1769,
1377,
648,
10659,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
2593,
21,
1769,
1377,
648,
3847,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
404,
1769,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
1725,
27,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
20,
92,
20,
48,
16,
374,
92,
24,
17877,
48,
1769,
1377,
648,
18091,
30,
540,
10684,
11073,
5677,
273,
1728,
26,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
20,
92,
20,
48,
16,
374,
92,
22,
12648,
11706,
48,
1769,
1377,
648,
18012,
30,
540,
10684,
11073,
5677,
273,
1728,
23,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
20,
92,
20,
48,
16,
374,
92,
24,
13304,
12648,
48,
1769,
1377,
648,
8063,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
18821,
1769,
1377,
648,
20170,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
22997,
1769,
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,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
2468,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
576,
1769,
1377,
648,
1728,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
890,
1769,
1377,
648,
2593,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1381,
1769,
1377,
648,
5958,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1059,
1769,
1377,
648,
10659,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
2593,
21,
1769,
1377,
648,
3847,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
404,
1769,
1377,
648,
13159,
30,
540,
10684,
11073,
2
] |
return newString(getSqueeze(args)).infectBy(this);
|
return newString(getSqueeze(args).toString()).infectBy(this);
|
public IRubyObject squeeze(IRubyObject[] args) { return newString(getSqueeze(args)).infectBy(this); }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
17173,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
202,
2463,
394,
780,
12,
588,
55,
14652,
12,
1968,
13,
2934,
10625,
386,
858,
12,
2211,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
15908,
10340,
921,
17173,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
202,
2463,
394,
780,
12,
588,
55,
14652,
12,
1968,
13,
2934,
10625,
386,
858,
12,
2211,
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
] |
private void assumeTableDefaults(Cell aCell) { if (aCell.border() == Rectangle.UNDEFINED) { aCell.setBorder(defaultLayout.border()); } if (aCell.borderWidth() == Rectangle.UNDEFINED) { aCell.setBorderWidth(defaultLayout.borderWidth()); } if (aCell.borderColor() == null) { aCell.setBorderColor(defaultLayout.borderColor()); } if (aCell.backgroundColor() == null) { aCell.setBackgroundColor(defaultLayout.backgroundColor()); } if (aCell.grayFill() == Rectangle.UNDEFINED) { aCell.setGrayFill(defaultLayout.grayFill()); } if (aCell.horizontalAlignment() == Element.ALIGN_UNDEFINED) { aCell.setHorizontalAlignment(defaultLayout.horizontalAlignment()); } if (aCell.verticalAlignment() == Element.ALIGN_UNDEFINED) { aCell.setVerticalAlignment(defaultLayout.verticalAlignment()); } }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/f82915686e9b5f4c554a5d954f60c86d2892af42/Table.java/buggy/itext/src/com/lowagie/text/Table.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6750,
1388,
7019,
12,
4020,
279,
4020,
13,
288,
7734,
309,
261,
69,
4020,
18,
8815,
1435,
422,
13264,
18,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
8107,
12,
1886,
3744,
18,
8815,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
8815,
2384,
1435,
422,
13264,
18,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
8107,
2384,
12,
1886,
3744,
18,
8815,
2384,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
8815,
2957,
1435,
422,
446,
13,
288,
5411,
279,
4020,
18,
542,
8107,
2957,
12,
1886,
3744,
18,
8815,
2957,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
9342,
2957,
1435,
422,
446,
13,
288,
5411,
279,
4020,
18,
542,
21699,
12,
1886,
3744,
18,
9342,
2957,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
22440,
8026,
1435,
422,
13264,
18,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
23521,
8026,
12,
1886,
3744,
18,
22440,
8026,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
18396,
11535,
1435,
422,
3010,
18,
26439,
67,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
14457,
11535,
12,
1886,
3744,
18,
18396,
11535,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
17824,
11535,
1435,
422,
3010,
18,
26439,
67,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
15704,
11535,
12,
1886,
3744,
18,
17824,
11535,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6750,
1388,
7019,
12,
4020,
279,
4020,
13,
288,
7734,
309,
261,
69,
4020,
18,
8815,
1435,
422,
13264,
18,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
8107,
12,
1886,
3744,
18,
8815,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
8815,
2384,
1435,
422,
13264,
18,
2124,
15544,
13,
288,
5411,
279,
4020,
18,
542,
8107,
2384,
12,
1886,
3744,
18,
8815,
2384,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
8815,
2957,
1435,
422,
446,
13,
288,
5411,
279,
4020,
18,
542,
8107,
2957,
12,
1886,
3744,
18,
8815,
2957,
10663,
3639,
289,
3639,
309,
261,
69,
4020,
18,
9342,
2957,
1435,
422,
446,
13,
288,
5411,
279,
4020,
18,
2
] |
||
LogMe.log("log", "3: " + myBag);
|
public void testToDisplayableWithBag() throws Exception { Class cls = Employee.class; Map savedBagsInverse = new HashMap(); List myBag = new ArrayList(); myBag.add(new Integer(30)); myBag.add(new Integer(20)); savedBagsInverse.put(myBag, "my_saved_bag"); Query q = new Query(); QueryClass qc = new QueryClass(cls); q.alias(qc, "Employee_0"); q.addFrom(qc); q.addToSelect(qc); BagConstraint sc = new BagConstraint(new QueryField(qc, "age"), ConstraintOp.IN, myBag); q.setConstraint(sc); DisplayQueryClass d = new DisplayQueryClass(); d.setType(cls.getName()); d.getConstraintNames().add("age_0"); d.getFieldNames().put("age_0", "age"); d.getFieldOps().put("age_0", ConstraintOp.IN); d.getFieldValues().put("age_0", "my_saved_bag"); LogMe.log("log", "1: " + myBag); DisplayQueryClass resultDisplayQueryClass = QueryBuildHelper.toDisplayable(qc, q, savedBagsInverse); LogMe.log("log", "3: " + myBag); assertEquals(d, resultDisplayQueryClass); }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/ab491a873a08e2c0fefccc08d61bc37286bffe5b/QueryBuildHelperTest.java/clean/intermine/src/test/org/intermine/web/QueryBuildHelperTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
4236,
429,
1190,
5013,
1435,
1216,
1185,
288,
3639,
1659,
2028,
273,
512,
27520,
18,
1106,
31,
7734,
1635,
5198,
38,
1341,
16376,
273,
394,
4317,
5621,
7734,
987,
3399,
5013,
273,
394,
2407,
5621,
3639,
3399,
5013,
18,
1289,
12,
2704,
2144,
12,
5082,
10019,
3639,
3399,
5013,
18,
1289,
12,
2704,
2144,
12,
3462,
10019,
3639,
5198,
38,
1341,
16376,
18,
458,
12,
4811,
5013,
16,
315,
4811,
67,
14077,
67,
22551,
8863,
7734,
2770,
1043,
273,
394,
2770,
5621,
3639,
2770,
797,
29032,
273,
394,
2770,
797,
12,
6429,
1769,
3639,
1043,
18,
4930,
12,
30675,
16,
315,
41,
27520,
67,
20,
8863,
3639,
1043,
18,
1289,
1265,
12,
30675,
1769,
3639,
1043,
18,
1289,
774,
3391,
12,
30675,
1769,
3639,
31711,
5806,
888,
273,
5411,
394,
31711,
5806,
12,
2704,
2770,
974,
12,
30675,
16,
315,
410,
6,
3631,
10770,
3817,
18,
706,
16,
3399,
5013,
1769,
3639,
1043,
18,
542,
5806,
12,
1017,
1769,
3639,
9311,
1138,
797,
302,
273,
394,
9311,
1138,
797,
5621,
3639,
302,
18,
542,
559,
12,
6429,
18,
17994,
10663,
3639,
302,
18,
588,
5806,
1557,
7675,
1289,
2932,
410,
67,
20,
8863,
3639,
302,
18,
588,
20393,
7675,
458,
2932,
410,
67,
20,
3113,
315,
410,
8863,
3639,
302,
18,
588,
974,
8132,
7675,
458,
2932,
410,
67,
20,
3113,
10770,
3817,
18,
706,
1769,
3639,
302,
18,
588,
974,
1972,
7675,
458,
2932,
410,
67,
20,
3113,
315,
4811,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
4236,
429,
1190,
5013,
1435,
1216,
1185,
288,
3639,
1659,
2028,
273,
512,
27520,
18,
1106,
31,
7734,
1635,
5198,
38,
1341,
16376,
273,
394,
4317,
5621,
7734,
987,
3399,
5013,
273,
394,
2407,
5621,
3639,
3399,
5013,
18,
1289,
12,
2704,
2144,
12,
5082,
10019,
3639,
3399,
5013,
18,
1289,
12,
2704,
2144,
12,
3462,
10019,
3639,
5198,
38,
1341,
16376,
18,
458,
12,
4811,
5013,
16,
315,
4811,
67,
14077,
67,
22551,
8863,
7734,
2770,
1043,
273,
394,
2770,
5621,
3639,
2770,
797,
29032,
273,
394,
2770,
797,
12,
6429,
1769,
3639,
1043,
18,
4930,
12,
30675,
16,
315,
41,
27520,
67,
20,
8863,
3639,
1043,
18,
1289,
1265,
12,
30675,
1769,
2
] |
|
public boolean isOmitMode() { return OMIT.equalsIgnoreCase(getValue());
|
public boolean isOmitMode() { return OMIT.equalsIgnoreCase( getValue() );
|
public boolean isOmitMode() { return OMIT.equalsIgnoreCase(getValue()); }
|
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/TarLongFileMode.java/buggy/src/main/java/org/codehaus/plexus/archiver/tar/TarLongFileMode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
51,
1938,
2309,
1435,
288,
3639,
327,
531,
6068,
18,
14963,
5556,
12,
24805,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
51,
1938,
2309,
1435,
288,
3639,
327,
531,
6068,
18,
14963,
5556,
12,
24805,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public NutchConf getConf() { return this.nutchConf;
|
public Configuration getConf() { return this.conf;
|
public NutchConf getConf() { return this.nutchConf; }
|
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/CCQueryFilter.java/clean/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCQueryFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
423,
322,
343,
3976,
28836,
1435,
288,
565,
327,
333,
18,
82,
322,
343,
3976,
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,
423,
322,
343,
3976,
28836,
1435,
288,
565,
327,
333,
18,
82,
322,
343,
3976,
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
] |
byte[] four = new byte[4]; in.read(four); metadata.put("File size (in bytes)", "" + DataTools.bytesToInt(four, littleEndian)); in.skipBytes(4);
|
metadata.put("File size (in bytes)", "" + in.readInt()); in.skipBytes(4);
|
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); littleEndian = true; // read the first header - 14 bytes byte[] two = new byte[2]; in.read(two); metadata.put("Magic identifier", new String(two)); byte[] four = new byte[4]; in.read(four); metadata.put("File size (in bytes)", "" + DataTools.bytesToInt(four, littleEndian)); in.skipBytes(4); // reserved // read the offset to the image data in.read(four); offset = DataTools.bytesToInt(four, littleEndian); // read the second header - 40 bytes in.skipBytes(4); // get the dimensions in.read(four); width = DataTools.bytesToInt(four, littleEndian); in.read(four); height = DataTools.bytesToInt(four, littleEndian); if (width < 1 || height < 1) { throw new FormatException("Invalid image dimensions: " + width + " x " + height); } metadata.put("Image width", "" + width); metadata.put("Image height", "" + height); in.read(two); metadata.put("Color planes", "" + DataTools.bytesToInt(two, littleEndian)); in.read(two); bpp = DataTools.bytesToInt(two, littleEndian); metadata.put("Bits per pixel", "" + bpp); in.read(four); compression = DataTools.bytesToInt(four, littleEndian); String comp = "invalid"; switch (compression) { case 0: comp = "None"; break; case 1: comp = "8 bit run length encoding"; break; case 2: comp = "4 bit run length encoding"; break; case 3: comp = "RGB bitmap with mask"; break; } metadata.put("Compression type", comp); in.skipBytes(4); in.read(four); metadata.put("X resolution", "" + DataTools.bytesToInt(four, littleEndian)); in.read(four); metadata.put("Y resolution", "" + DataTools.bytesToInt(four, littleEndian)); in.read(four); int nColors = DataTools.bytesToInt(four, littleEndian); in.skipBytes(4); // read the palette, if it exists if (offset != in.getFilePointer()) { palette = new byte[3][nColors]; for (int i=0; i<nColors; i++) { for (int j=palette.length; j>0; j--) { palette[j][i] = (byte) in.read(); } in.read(); } } global = in.getFilePointer(); metadata.put("Indexed color", palette == null ? "false" : "true"); // Populate metadata store. // The metadata store we're working with. MetadataStore store = getMetadataStore(); int c = (palette == null && bpp == 8) ? 1 : 3; int tbpp = bpp; if (bpp > 8) tbpp /= 3; String pixelType = "int" + tbpp; store.setPixels( new Integer(width), // sizeX new Integer(height), // sizeY new Integer(1), // sizeZ new Integer(c), // sizeC new Integer(1), // sizeT pixelType, new Boolean(!littleEndian), // BigEndian "XYCTZ", // Dimension order null); // Use index 0 }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/2df09d33bfdc966378aae0cc09cb503afb983bc2/BMPReader.java/buggy/loci/formats/in/BMPReader.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,
328,
10609,
273,
638,
31,
565,
368,
855,
326,
1122,
1446,
300,
5045,
1731,
565,
1160,
8526,
2795,
273,
394,
1160,
63,
22,
15533,
565,
316,
18,
896,
12,
15415,
1769,
565,
1982,
18,
458,
2932,
19289,
2756,
3113,
394,
514,
12,
15415,
10019,
565,
1160,
8526,
12792,
273,
394,
1160,
63,
24,
15533,
565,
316,
18,
896,
12,
74,
477,
1769,
565,
1982,
18,
458,
2932,
812,
963,
261,
267,
1731,
2225,
16,
1377,
1408,
397,
1910,
10348,
18,
3890,
17864,
12,
74,
477,
16,
328,
10609,
10019,
565,
316,
18,
7457,
2160,
12,
24,
1769,
225,
368,
8735,
565,
368,
855,
326,
1384,
358,
326,
1316,
501,
565,
316,
18,
896,
12,
74,
477,
1769,
565,
1384,
273,
1910,
10348,
18,
3890,
17864,
12,
74,
477,
16,
328,
10609,
1769,
565,
368,
855,
326,
2205,
1446,
300,
8063,
1731,
565,
316,
18,
7457,
2160,
12,
24,
1769,
565,
368,
336,
326,
5769,
565,
316,
18,
896,
12,
74,
477,
1769,
565,
1835,
273,
1910,
10348,
18,
3890,
17864,
12,
74,
477,
16,
328,
10609,
1769,
565,
316,
18,
896,
12,
74,
477,
1769,
565,
2072,
273,
1910,
10348,
18,
3890,
17864,
12,
74,
477,
16,
328,
10609,
1769,
565,
309,
261,
2819,
411,
404,
747,
2072,
411,
404,
13,
288,
1377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
328,
10609,
273,
638,
31,
565,
368,
855,
326,
1122,
1446,
300,
5045,
1731,
565,
1160,
8526,
2795,
273,
394,
1160,
63,
22,
15533,
565,
316,
18,
896,
12,
15415,
1769,
565,
1982,
18,
458,
2932,
19289,
2756,
3113,
394,
514,
12,
15415,
10019,
565,
1160,
8526,
12792,
273,
394,
1160,
63,
24,
15533,
565,
316,
18,
896,
12,
74,
477,
1769,
565,
1982,
18,
458,
2932,
812,
963,
261,
267,
1731,
2225,
16,
1377,
1408,
397,
1910,
10348,
18,
3890,
17864,
12,
74,
477,
2
] |
String[] arg = StringUtils.splitArguments(line);
|
String[] arg = StringUtil.splitArguments(line);
|
public static String showGfxLine(String line, GuiBoard guiBoard) { String[] arg = StringUtils.splitArguments(line); if (arg.length == 0) return null; String statusText = null; String cmd = arg[0].toUpperCase(Locale.ENGLISH); if (cmd.equals("BLACK")) showGfxTerritory(arg, GoColor.BLACK, guiBoard); else if (cmd.equals("CIRCLE")) showGfxCircle(arg, guiBoard); else if (cmd.equals("CLEAR")) guiBoard.clearAll(); else if (cmd.equals("COLOR")) showGfxColor(arg, guiBoard); else if (cmd.equals("INFLUENCE")) showGfxInfluence(arg, guiBoard); else if (cmd.equals("LABEL")) showGfxLabel(arg, guiBoard); else if (cmd.equals("MARK")) showGfxMark(arg, guiBoard); else if (cmd.equals("SQUARE")) showGfxSquare(arg, guiBoard); else if (cmd.equals("TEXT")) { line = line.trim(); int pos = line.indexOf(' '); if (pos > 0) statusText = line.substring(pos + 1); } else if (cmd.equals("TRIANGLE")) showGfxTriangle(arg, guiBoard); else if (cmd.equals("VAR")) showGfxVariation(arg, guiBoard); else if (cmd.equals("WHITE")) showGfxTerritory(arg, GoColor.WHITE, guiBoard); return statusText; }
|
51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/1f50ffb219183ddaf94720a4aba453e11f412425/AnalyzeShow.java/clean/src/net/sf/gogui/gui/AnalyzeShow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2405,
43,
19595,
1670,
12,
780,
980,
16,
611,
4881,
22233,
13238,
22233,
13,
565,
288,
3639,
514,
8526,
1501,
273,
14205,
18,
4939,
4628,
12,
1369,
1769,
3639,
309,
261,
3175,
18,
2469,
422,
374,
13,
5411,
327,
446,
31,
3639,
514,
26206,
273,
446,
31,
3639,
514,
1797,
273,
1501,
63,
20,
8009,
869,
8915,
12,
3916,
18,
16324,
13462,
1769,
3639,
309,
261,
4172,
18,
14963,
2932,
14618,
3649,
6,
3719,
5411,
2405,
43,
19595,
56,
25313,
12,
3175,
16,
4220,
2957,
18,
14618,
3649,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
7266,
11529,
900,
6,
3719,
5411,
2405,
43,
19595,
19490,
12,
3175,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
23181,
985,
6,
3719,
5411,
13238,
22233,
18,
8507,
1595,
5621,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
10989,
6,
3719,
5411,
2405,
43,
19595,
2957,
12,
3175,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
19212,
11778,
7535,
6,
3719,
5411,
2405,
43,
19595,
27040,
23209,
12,
3175,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
13545,
6,
3719,
5411,
2405,
43,
19595,
2224,
12,
3175,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
12693,
6,
3719,
5411,
2405,
43,
19595,
3882,
12,
3175,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
19716,
6,
3719,
5411,
2405,
43,
19595,
22255,
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,
760,
514,
2405,
43,
19595,
1670,
12,
780,
980,
16,
611,
4881,
22233,
13238,
22233,
13,
565,
288,
3639,
514,
8526,
1501,
273,
14205,
18,
4939,
4628,
12,
1369,
1769,
3639,
309,
261,
3175,
18,
2469,
422,
374,
13,
5411,
327,
446,
31,
3639,
514,
26206,
273,
446,
31,
3639,
514,
1797,
273,
1501,
63,
20,
8009,
869,
8915,
12,
3916,
18,
16324,
13462,
1769,
3639,
309,
261,
4172,
18,
14963,
2932,
14618,
3649,
6,
3719,
5411,
2405,
43,
19595,
56,
25313,
12,
3175,
16,
4220,
2957,
18,
14618,
3649,
16,
13238,
22233,
1769,
3639,
469,
309,
261,
4172,
18,
14963,
2932,
7266,
11529,
900,
6,
3719,
5411,
2405,
43,
19595,
19490,
12,
3175,
16,
13238,
22233,
2
] |
new QName(TEST_NAMESPACE, "baseType"), def.getRequiredPrimaryTypes()[0]);
|
new QName(TEST_NAMESPACE, "baseType"), types[0]);
|
public void testRequiredTypeNode() { NodeDef def = getChildNode("childNodeType", "requiredTypeNode"); assertEquals("requiredTypeNode requiredPrimaryTypes", 2, def.getRequiredPrimaryTypes().length); assertEquals("requiredTypeNode requiredPrimaryTypes[0]", new QName(TEST_NAMESPACE, "baseType"), def.getRequiredPrimaryTypes()[0]); assertEquals("requiredTypeNode requiredPrimaryTypes[1]", new QName(TEST_NAMESPACE, "testType"), def.getRequiredPrimaryTypes()[1]); }
|
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/9d43a92d34a6be5054dab8f89489fbe5c58a9fbf/TestAll.java/clean/jackrabbit/src/test/java/org/apache/jackrabbit/core/nodetype/xml/TestAll.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3705,
559,
907,
1435,
288,
3639,
2029,
3262,
1652,
273,
8154,
907,
2932,
3624,
15101,
3113,
315,
4718,
559,
907,
8863,
3639,
1815,
8867,
2932,
4718,
559,
907,
1931,
6793,
2016,
3113,
7734,
576,
16,
1652,
18,
588,
3705,
6793,
2016,
7675,
2469,
1769,
3639,
1815,
8867,
2932,
4718,
559,
907,
1931,
6793,
2016,
63,
20,
65,
3113,
7734,
394,
16723,
12,
16961,
67,
11368,
16,
315,
1969,
559,
6,
3631,
7734,
1652,
18,
588,
3705,
6793,
2016,
1435,
63,
20,
19226,
3639,
1815,
8867,
2932,
4718,
559,
907,
1931,
6793,
2016,
63,
21,
65,
3113,
7734,
394,
16723,
12,
16961,
67,
11368,
16,
315,
3813,
559,
6,
3631,
7734,
1652,
18,
588,
3705,
6793,
2016,
1435,
63,
21,
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,
1071,
918,
1842,
3705,
559,
907,
1435,
288,
3639,
2029,
3262,
1652,
273,
8154,
907,
2932,
3624,
15101,
3113,
315,
4718,
559,
907,
8863,
3639,
1815,
8867,
2932,
4718,
559,
907,
1931,
6793,
2016,
3113,
7734,
576,
16,
1652,
18,
588,
3705,
6793,
2016,
7675,
2469,
1769,
3639,
1815,
8867,
2932,
4718,
559,
907,
1931,
6793,
2016,
63,
20,
65,
3113,
7734,
394,
16723,
12,
16961,
67,
11368,
16,
315,
1969,
559,
6,
3631,
7734,
1652,
18,
588,
3705,
6793,
2016,
1435,
63,
20,
19226,
3639,
1815,
8867,
2932,
4718,
559,
907,
1931,
6793,
2016,
63,
21,
65,
3113,
7734,
394,
16723,
12,
16961,
67,
11368,
16,
315,
3813,
559,
6,
3631,
7734,
1652,
18,
588,
3705,
6793,
2
] |
String[] arguments = new String[]{"jad", "-a", "-p", classPath };
|
String[] arguments = new String[]{jadExecutable, "-a", "-p", classPath };
|
private static final String[] decompile(String className, String classPath) throws DecompilerNotInstalledException { className = TextUtil.replace( className, '.', File.separatorChar ); classPath = classPath + File.separatorChar + className + ".class"; String[] arguments = new String[]{"jad", "-a", "-p", classPath }; try { Process process = Runtime.getRuntime().exec(arguments); ArrayList lines = new ArrayList(); StringBuffer log = new StringBuffer( 300 ); int c; InputStream input = process.getInputStream(); while ((c = input.read() ) != -1) { if (c == '\n') { lines.add( log.toString() ); log.delete(0, log.length() ); } else if (c != '\r') { log.append((char) c); } } input.close(); return (String[]) lines.toArray( new String[ lines.size() ] ); } catch (IOException e) { throw new DecompilerNotInstalledException( "Unable to start the \"jad\"-decompiler. jad is available from http://www.kpdus.com/jad.html. If you have installed jad, please ensure that it is on the path."); } }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/35b1e09420f5573e4e79dcb88d34c4f718f5c304/StackTraceUtil.java/clean/enough-polish-build/source/src/de/enough/polish/stacktrace/StackTraceUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
514,
8526,
443,
11100,
12,
780,
2658,
16,
514,
22503,
13,
225,
202,
15069,
3416,
20667,
2895,
1248,
16747,
503,
202,
95,
202,
202,
12434,
273,
3867,
1304,
18,
2079,
12,
2658,
16,
2611,
16,
1387,
18,
11287,
2156,
11272,
202,
202,
1106,
743,
273,
22503,
397,
1387,
18,
11287,
2156,
397,
2658,
397,
3552,
1106,
14432,
202,
202,
780,
8526,
1775,
273,
394,
514,
63,
7073,
6,
78,
361,
3113,
3701,
69,
3113,
3701,
84,
3113,
22503,
289,
31,
202,
202,
698,
288,
1082,
202,
2227,
1207,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
7099,
1769,
1082,
202,
19558,
2362,
273,
394,
2407,
5621,
1082,
202,
780,
1892,
613,
273,
394,
6674,
12,
11631,
11272,
1082,
202,
474,
276,
31,
1082,
202,
4348,
810,
273,
1207,
18,
588,
4348,
5621,
1082,
202,
17523,
14015,
71,
273,
810,
18,
896,
1435,
262,
480,
300,
21,
13,
288,
9506,
202,
430,
261,
71,
422,
2337,
82,
6134,
288,
6862,
202,
3548,
18,
1289,
12,
613,
18,
10492,
1435,
11272,
6862,
202,
1330,
18,
3733,
12,
20,
16,
613,
18,
2469,
1435,
11272,
9506,
202,
97,
225,
469,
309,
261,
71,
480,
2337,
86,
6134,
288,
6862,
202,
1330,
18,
6923,
12443,
3001,
13,
276,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2630,
18,
4412,
5621,
1082,
202,
2463,
261,
780,
63,
5717,
2362,
18,
31447,
12,
394,
514,
63,
2362,
18,
1467,
1435,
308,
11272,
202,
202,
97,
1044,
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,
1152,
760,
727,
514,
8526,
443,
11100,
12,
780,
2658,
16,
514,
22503,
13,
225,
202,
15069,
3416,
20667,
2895,
1248,
16747,
503,
202,
95,
202,
202,
12434,
273,
3867,
1304,
18,
2079,
12,
2658,
16,
2611,
16,
1387,
18,
11287,
2156,
11272,
202,
202,
1106,
743,
273,
22503,
397,
1387,
18,
11287,
2156,
397,
2658,
397,
3552,
1106,
14432,
202,
202,
780,
8526,
1775,
273,
394,
514,
63,
7073,
6,
78,
361,
3113,
3701,
69,
3113,
3701,
84,
3113,
22503,
289,
31,
202,
202,
698,
288,
1082,
202,
2227,
1207,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
7099,
1769,
1082,
202,
19558,
2362,
273,
394,
2407,
5621,
1082,
202,
780,
1892,
613,
273,
394,
6674,
2
] |
throw new ContinuumException( "Error while checking out the project.", e );
|
throw logAndCreateException( "Error while checking out the project.", e );
|
private void doTempCheckOut( ContinuumProject project ) throws ContinuumException { File checkoutDirectory = new File( workingDirectory, "temp-project" ); if ( checkoutDirectory.exists() ) { try { FileUtils.cleanDirectory( checkoutDirectory ); } catch ( IOException ex ) { throw new ContinuumException( "Error while cleaning out " + checkoutDirectory.getAbsolutePath() ); } } else { if ( !checkoutDirectory.mkdirs() ) { throw new ContinuumException( "Could not make the check out directory (" + checkoutDirectory.getAbsolutePath() + ")." ); } } // TODO: Get the list of files to check out from the builder. // Maven 2: pom.xml, Maven 1: project.xml, Ant: all? build.xml? try { scm.checkOut( project, checkoutDirectory); } catch ( ContinuumScmException e ) { throw new ContinuumException( "Error while checking out the project.", e ); } }
|
48499 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48499/a0328638c62e71b24f025680c11e7e243d950ac6/DefaultContinuum.java/clean/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
7185,
1564,
1182,
12,
1816,
6860,
379,
4109,
1984,
262,
3639,
1216,
1816,
6860,
379,
503,
565,
288,
3639,
1387,
13926,
2853,
273,
394,
1387,
12,
5960,
2853,
16,
315,
5814,
17,
4406,
6,
11272,
3639,
309,
261,
13926,
2853,
18,
1808,
1435,
262,
3639,
288,
5411,
775,
5411,
288,
7734,
13779,
18,
6200,
2853,
12,
13926,
2853,
11272,
5411,
289,
5411,
1044,
261,
1860,
431,
262,
5411,
288,
7734,
604,
394,
1816,
6860,
379,
503,
12,
315,
668,
1323,
24225,
596,
315,
397,
13926,
2853,
18,
588,
10368,
743,
1435,
11272,
5411,
289,
3639,
289,
3639,
469,
3639,
288,
5411,
309,
261,
401,
17300,
2853,
18,
24816,
8291,
1435,
262,
5411,
288,
7734,
604,
394,
1816,
6860,
379,
503,
12,
315,
4445,
486,
1221,
326,
866,
596,
1867,
7566,
397,
13926,
2853,
18,
588,
10368,
743,
1435,
397,
9369,
1199,
11272,
5411,
289,
3639,
289,
3639,
368,
2660,
30,
968,
326,
666,
434,
1390,
358,
866,
596,
628,
326,
2089,
18,
3639,
368,
17176,
576,
30,
21400,
18,
2902,
16,
17176,
404,
30,
1984,
18,
2902,
16,
18830,
30,
777,
35,
1361,
18,
2902,
35,
3639,
775,
3639,
288,
5411,
29207,
18,
1893,
1182,
12,
1984,
16,
13926,
2853,
1769,
3639,
289,
3639,
1044,
261,
1816,
6860,
379,
1541,
81,
503,
425,
262,
3639,
288,
5411,
604,
613,
1876,
1684,
503,
12,
315,
668,
1323,
6728,
596,
326,
1984,
1199,
16,
425,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
7185,
1564,
1182,
12,
1816,
6860,
379,
4109,
1984,
262,
3639,
1216,
1816,
6860,
379,
503,
565,
288,
3639,
1387,
13926,
2853,
273,
394,
1387,
12,
5960,
2853,
16,
315,
5814,
17,
4406,
6,
11272,
3639,
309,
261,
13926,
2853,
18,
1808,
1435,
262,
3639,
288,
5411,
775,
5411,
288,
7734,
13779,
18,
6200,
2853,
12,
13926,
2853,
11272,
5411,
289,
5411,
1044,
261,
1860,
431,
262,
5411,
288,
7734,
604,
394,
1816,
6860,
379,
503,
12,
315,
668,
1323,
24225,
596,
315,
397,
13926,
2853,
18,
588,
10368,
743,
1435,
11272,
5411,
289,
3639,
289,
3639,
469,
3639,
288,
5411,
309,
261,
401,
17300,
2853,
18,
24816,
8291,
1435,
262,
5411,
288,
7734,
604,
2
] |
public void updateStringListQuestionInSection(HttpServletRequest request){
|
public void updateStringListQuestionInSection(HttpServletRequest request) {
|
public void updateStringListQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParameter("questionTxt"); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; ArrayList<String> answers; Object obj = session.getAttribute("answers"); PersistentList persist = null; if(obj instanceof PersistentList){ persist = (PersistentList) obj; answers = new ArrayList<String>(); Iterator iter = persist.iterator(); while(iter.hasNext()){ answers.add((String) iter.next()); } } else answers = (ArrayList<String>) obj; // now parse different params depending on the type StringListQuestion question = new StringListQuestion(); question.setDescription(questionText); question.setSection(section); question.setTitle(name); question.setItems(answers); question.setImage(image); List<Question> quests = section.getQuestions(); quests.set(rowId, question); section.setQuestions(quests); session.setAttribute("currentSection", section); session.removeAttribute("answers"); }
|
54385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54385/1987aafdf9f6e92293bee44cf33ba906d200af2c/SurveyWebComponent.java/buggy/survey/src/java/ar/com/survey/web/component/SurveyWebComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
780,
682,
11665,
382,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
588,
1499,
2932,
2972,
5285,
8863,
202,
202,
780,
508,
273,
590,
18,
588,
1662,
2932,
529,
8863,
202,
202,
780,
1316,
273,
590,
18,
588,
1662,
2932,
2730,
8863,
9506,
202,
780,
5073,
1528,
273,
590,
18,
588,
1662,
2932,
4173,
21811,
8863,
202,
202,
474,
26798,
273,
2144,
18,
2670,
1702,
12,
2293,
18,
588,
1662,
2932,
492,
7923,
1769,
202,
202,
492,
548,
413,
31,
9506,
202,
19558,
32,
780,
34,
12415,
31,
9506,
202,
921,
1081,
273,
1339,
18,
588,
1499,
2932,
22340,
8863,
202,
202,
11906,
682,
3898,
273,
446,
31,
202,
202,
430,
12,
2603,
1276,
11049,
682,
15329,
1082,
202,
19251,
273,
261,
11906,
682,
13,
1081,
31,
1082,
202,
22340,
273,
394,
2407,
32,
780,
34,
5621,
1082,
202,
3198,
1400,
273,
3898,
18,
9838,
5621,
1082,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
9506,
202,
22340,
18,
1289,
12443,
780,
13,
1400,
18,
4285,
10663,
1082,
202,
97,
202,
202,
97,
202,
202,
12107,
1082,
202,
22340,
273,
261,
19558,
32,
780,
23429,
1081,
31,
9506,
202,
759,
2037,
1109,
3775,
859,
8353,
603,
326,
618,
202,
202,
780,
682,
11665,
5073,
273,
394,
514,
682,
11665,
5621,
9506,
202,
4173,
18,
542,
3291,
12,
4173,
1528,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
780,
682,
11665,
382,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
588,
1499,
2932,
2972,
5285,
8863,
202,
202,
780,
508,
273,
590,
18,
588,
1662,
2932,
529,
8863,
202,
202,
780,
1316,
273,
590,
18,
588,
1662,
2932,
2730,
8863,
9506,
202,
780,
5073,
1528,
273,
590,
18,
588,
1662,
2932,
4173,
21811,
8863,
202,
202,
474,
26798,
273,
2144,
18,
2670,
1702,
12,
2293,
18,
588,
1662,
2932,
492,
7923,
1769,
202,
202,
492,
548,
413,
31,
9506,
202,
19558,
32,
780,
34,
12415,
31,
9506,
202,
921,
1081,
273,
1339,
18,
2
] |
return getPort();
|
return th.getPort();
|
public int get() { return getPort(); }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/392222617c47a25d4907cb0d4b1e8ab196859880/TestnetHandler.java/buggy/src/freenet/node/TestnetHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
336,
1435,
288,
1082,
202,
2463,
11036,
5621,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
336,
1435,
288,
1082,
202,
2463,
11036,
5621,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testCollectModify() throws Exception { //read in the source final Reader reader = new InputStreamReader( getClass().getResourceAsStream( "test_Collect.drl" ) ); final DrlParser parser = new DrlParser(); final PackageDescr packageDescr = parser.parse( reader ); //pre build the package final PackageBuilder builder = new PackageBuilder(); builder.addPackage( packageDescr ); final Package pkg = builder.getPackage(); //add the package to a rulebase final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); //load up the rulebase final WorkingMemory wm = ruleBase.newWorkingMemory(); List results = new ArrayList(); wm.setGlobal( "results", results ); Cheese[] cheese = new Cheese[] { new Cheese("stilton", 10), new Cheese("stilton", 2), new Cheese("stilton", 5), new Cheese("brie", 15), new Cheese("brie", 16), new Cheese("provolone", 8) }; Person bob = new Person("Bob", "stilton"); FactHandle[] cheeseHandles = new FactHandle[cheese.length]; for( int i = 0; i < cheese.length; i++ ) { cheeseHandles[i] = wm.assertObject( cheese[i] ); } FactHandle bobHandle = wm.assertObject( bob ); // ---------------- 1st scenario int fireCount = 0; wm.fireAllRules(); Assert.assertEquals( ++fireCount, results.size() ); Assert.assertEquals( 3, ((Collection)results.get(fireCount-1)).size()); Assert.assertEquals( ArrayList.class.getName(), results.get(fireCount-1).getClass().getName()); // ---------------- 2nd scenario int index = 1; cheese[index].setPrice( 9 ); wm.modifyObject( cheeseHandles[index], cheese[index] ); wm.fireAllRules(); Assert.assertEquals( ++fireCount, results.size() ); Assert.assertEquals( 3, ((Collection)results.get(fireCount-1)).size()); Assert.assertEquals( ArrayList.class.getName(), results.get(fireCount-1).getClass().getName()); // ---------------- 3rd scenario bob.setLikes( "brie" ); wm.modifyObject( bobHandle, bob ); wm.fireAllRules(); Assert.assertEquals( fireCount, results.size() ); // ---------------- 4th scenario wm.retractObject( cheeseHandles[3] ); wm.fireAllRules(); // should not have fired as per constraint Assert.assertEquals( fireCount, results.size()); }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/b70584f1fa7084e62db162987bd7e5685afdc594/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10808,
11047,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
10808,
18,
72,
1321,
6,
262,
11272,
3639,
727,
463,
1321,
2678,
2082,
273,
394,
463,
1321,
2678,
5621,
3639,
727,
7508,
16198,
2181,
16198,
273,
2082,
18,
2670,
12,
2949,
11272,
3639,
368,
1484,
1361,
326,
2181,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
12,
2181,
16198,
11272,
3639,
727,
7508,
3475,
273,
2089,
18,
588,
2261,
5621,
3639,
368,
1289,
326,
2181,
358,
279,
1720,
1969,
3639,
727,
6781,
2171,
1720,
2171,
273,
19048,
2171,
5621,
3639,
1720,
2171,
18,
1289,
2261,
12,
3475,
11272,
3639,
368,
945,
731,
326,
1720,
1969,
3639,
727,
22732,
6031,
18200,
273,
1720,
2171,
18,
2704,
14836,
6031,
5621,
3639,
987,
1686,
273,
394,
2407,
5621,
7734,
18200,
18,
542,
5160,
12,
315,
4717,
3113,
1686,
11272,
7734,
22682,
3392,
8526,
19315,
3392,
273,
394,
22682,
3392,
8526,
288,
15604,
394,
22682,
3392,
2932,
334,
330,
1917,
3113,
1728,
3631,
15604,
394,
22682,
3392,
2932,
334,
330,
1917,
3113,
576,
3631,
15604,
394,
22682,
3392,
2932,
334,
330,
1917,
3113,
1381,
3631,
15604,
394,
22682,
3392,
2932,
70,
566,
73,
3113,
4711,
3631,
15604,
394,
22682,
3392,
2932,
70,
566,
73,
3113,
2872,
3631,
15604,
394,
22682,
3392,
2932,
685,
15416,
476,
3113,
1725,
13,
3639,
289,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10808,
11047,
1435,
1216,
1185,
288,
3639,
368,
896,
316,
326,
1084,
3639,
727,
5393,
2949,
273,
394,
15322,
12,
2900,
7675,
588,
1420,
17052,
12,
315,
3813,
67,
10808,
18,
72,
1321,
6,
262,
11272,
3639,
727,
463,
1321,
2678,
2082,
273,
394,
463,
1321,
2678,
5621,
3639,
727,
7508,
16198,
2181,
16198,
273,
2082,
18,
2670,
12,
2949,
11272,
3639,
368,
1484,
1361,
326,
2181,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
12,
2181,
16198,
11272,
3639,
727,
7508,
3475,
273,
2089,
18,
588,
2261,
5621,
3639,
368,
1289,
326,
2181,
358,
279,
1720,
1969,
3639,
727,
6781,
2171,
1720,
2171,
273,
19048,
2171,
5621,
2
] |
||
IResource newResource = workspaceRoot.findMember(destinationPath); if (newResource != null && destinationPath.isPrefixOf(sourcePath)) { Runnable notice = new Runnable() { public void run() { MessageDialog .openError( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteProblemTitle, NLS.bind(IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteProblem, destinationPath, sourcePath)); } }; parentShell.getDisplay().syncExec(notice); canceled = true; return null; } } for (int i = 0; i < sourceResources.length; i++) { final IResource source = sourceResources[i]; final IPath destinationPath = destination.getFullPath().append( source.getName());
|
IResource newResource = workspaceRoot.findMember(destinationPath); if (newResource != null && destinationPath.isPrefixOf(sourcePath)) { Runnable notice = new Runnable() { public void run() { MessageDialog .openError( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteProblemTitle, NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteProblem, destinationPath, sourcePath)); } }; parentShell.getDisplay().syncExec(notice); canceled = true; return null; } } for (int i = 0; i < sourceResources.length; i++) { final IResource source = sourceResources[i]; final IPath destinationPath = destination.getFullPath().append( source.getName());
|
private IResource[] validateNoNameCollisions(IContainer destination, IResource[] sourceResources, IProgressMonitor monitor) { List copyItems = new ArrayList(); IWorkspaceRoot workspaceRoot = destination.getWorkspace().getRoot(); int overwrite = IDialogConstants.NO_ID; // Check to see if we would be overwriting a parent folder. // Cancel entire copy operation if we do. for (int i = 0; i < sourceResources.length; i++) { final IResource sourceResource = sourceResources[i]; final IPath destinationPath = destination.getFullPath().append( sourceResource.getName()); final IPath sourcePath = sourceResource.getFullPath(); IResource newResource = workspaceRoot.findMember(destinationPath); if (newResource != null && destinationPath.isPrefixOf(sourcePath)) { //Run it inside of a runnable to make sure we get to parent off of the shell as we are not //in the UI thread. Runnable notice = new Runnable() { public void run() { MessageDialog .openError( parentShell, IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteProblemTitle, NLS.bind(IDEWorkbenchMessages.CopyFilesAndFoldersOperation_overwriteProblem, destinationPath, sourcePath)); } }; parentShell.getDisplay().syncExec(notice); canceled = true; return null; } } // Check for overwrite conflicts for (int i = 0; i < sourceResources.length; i++) { final IResource source = sourceResources[i]; final IPath destinationPath = destination.getFullPath().append( source.getName()); IResource newResource = workspaceRoot.findMember(destinationPath); if (newResource != null) { if (overwrite != IDialogConstants.YES_TO_ALL_ID || (newResource.getType() == IResource.FOLDER && homogenousResources( source, destination) == false)) { overwrite = checkOverwrite(parentShell, source, newResource); } if (overwrite == IDialogConstants.YES_ID || overwrite == IDialogConstants.YES_TO_ALL_ID) { copyItems.add(source); } else if (overwrite == IDialogConstants.CANCEL_ID) { canceled = true; return null; } } else { copyItems.add(source); } } return (IResource[]) copyItems.toArray(new IResource[copyItems.size()]); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/48cbfd568805d8302ff76e177e1533df1b92a834/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
1420,
8526,
1954,
2279,
461,
13535,
12682,
12,
45,
2170,
2929,
16,
5411,
467,
1420,
8526,
1084,
3805,
16,
467,
5491,
7187,
6438,
13,
288,
3639,
987,
1610,
3126,
273,
394,
2407,
5621,
3639,
467,
8241,
2375,
6003,
2375,
273,
2929,
18,
588,
8241,
7675,
588,
2375,
5621,
3639,
509,
6156,
273,
1599,
3529,
2918,
18,
3417,
67,
734,
31,
3639,
368,
2073,
358,
2621,
309,
732,
4102,
506,
23492,
279,
982,
3009,
18,
3639,
368,
10347,
7278,
1610,
1674,
309,
732,
741,
18,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1084,
3805,
18,
2469,
31,
277,
27245,
288,
5411,
727,
467,
1420,
1084,
1420,
273,
1084,
3805,
63,
77,
15533,
5411,
727,
467,
743,
30617,
273,
2929,
18,
588,
24173,
7675,
6923,
12,
10792,
1084,
1420,
18,
17994,
10663,
5411,
727,
467,
743,
17744,
273,
1084,
1420,
18,
588,
24173,
5621,
5411,
467,
1420,
31757,
273,
6003,
2375,
18,
4720,
4419,
12,
10590,
743,
1769,
5411,
309,
261,
2704,
1420,
480,
446,
597,
30617,
18,
291,
2244,
951,
12,
3168,
743,
3719,
288,
7734,
368,
1997,
518,
4832,
434,
279,
14685,
358,
1221,
3071,
732,
336,
358,
982,
3397,
434,
326,
5972,
487,
732,
854,
486,
7734,
368,
267,
326,
6484,
2650,
18,
7734,
10254,
11690,
273,
394,
10254,
1435,
288,
10792,
1071,
918,
1086,
1435,
288,
13491,
2350,
6353,
27573,
263,
3190,
668,
12,
4766,
3639,
982,
13220,
16,
4766,
3639,
1599,
41,
2421,
22144,
5058,
18,
2951,
2697,
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,
467,
1420,
8526,
1954,
2279,
461,
13535,
12682,
12,
45,
2170,
2929,
16,
5411,
467,
1420,
8526,
1084,
3805,
16,
467,
5491,
7187,
6438,
13,
288,
3639,
987,
1610,
3126,
273,
394,
2407,
5621,
3639,
467,
8241,
2375,
6003,
2375,
273,
2929,
18,
588,
8241,
7675,
588,
2375,
5621,
3639,
509,
6156,
273,
1599,
3529,
2918,
18,
3417,
67,
734,
31,
3639,
368,
2073,
358,
2621,
309,
732,
4102,
506,
23492,
279,
982,
3009,
18,
3639,
368,
10347,
7278,
1610,
1674,
309,
732,
741,
18,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1084,
3805,
18,
2469,
31,
277,
27245,
288,
5411,
727,
467,
1420,
1084,
1420,
273,
1084,
3805,
63,
77,
15533,
5411,
727,
2
] |
ctx.println("<span class='dashbox'> != disk="+disk+ " </span> ");
|
ctx.println("<td class='missing'>disk="+disk+ " </td> ");
|
public void manageSourceUpdates(WebContext ctx, SurveyMain sm) { // querySourceActives = prepareStatement("querySourceActives", // "SELECT id,locale,rev FROM " + CLDR_SRC + " where inactive IS NULL"); String what = ctx.field("src_update"); boolean updAll = what.equals("all_locs"); ctx.println("<h4>Source Update Manager</h4>"); synchronized (conn) { synchronized(xpt) { try { boolean hadDiffs = false; ResultSet rs = stmts.querySourceActives.executeQuery(); ctx.println("<ul>"); while(rs.next()) { int id = rs.getInt(1); String loc = rs.getString(2); String rev = rs.getString(3); String disk = LDMLUtilities.getCVSVersion(dir, loc+".xml"); ctx.println("<li> <tt>[#"+id+"]" +loc + "</tt>: db="+rev+" "); if(rev == null ) { rev = "null"; } if(disk == null) { disk = "null"; } if(rev.equals(disk)) { ctx.println(" - latest"); } else { hadDiffs = true; ctx.println("<span class='dashbox'> != disk="+disk+ " </span> "); WebContext subCtx = new WebContext(ctx); subCtx.addQuery("src_update",loc); // ... if(updAll || what.equals(loc)) { manageSourceUpdates_locale(ctx,sm,id,loc); } else { ctx.println("<a href='"+subCtx.url()+"'>Update "+loc+"</a>"); } } ctx.println("</li>"); } if(hadDiffs) { WebContext subCtx = new WebContext(ctx); subCtx.addQuery("src_update","all_locs"); ctx.println("<li><b><a href='"+subCtx.url()+"'>Update ALL</b></li>"); } ctx.println("</ul>"); } catch(SQLException se) { String complaint = ("CLDRDBSource: err in manageSourceUpdates["+what+"] ("+tree + "/" + "*" +"): " + SurveyMain.unchainSqlException(se)); logger.severe(complaint); ctx.println("<hr /><pre>" + complaint + "</pre><br />"); return; } } } }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/942be8f7a893f48ec32b3b81c60bde3de5b5f434/CLDRDBSource.java/buggy/tools/java/org/unicode/cldr/web/CLDRDBSource.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10680,
1830,
5121,
12,
4079,
1042,
1103,
16,
16680,
9062,
6376,
3029,
13,
288,
377,
368,
4202,
843,
1830,
2459,
3606,
273,
21406,
2932,
2271,
1830,
2459,
3606,
3113,
377,
368,
6647,
315,
4803,
612,
16,
6339,
16,
9083,
4571,
315,
397,
14934,
6331,
67,
28413,
397,
315,
1625,
16838,
4437,
3206,
8863,
3639,
514,
4121,
273,
1103,
18,
1518,
2932,
4816,
67,
2725,
8863,
3639,
1250,
2166,
1595,
273,
4121,
18,
14963,
2932,
454,
67,
24323,
8863,
3639,
1103,
18,
8222,
2932,
32,
76,
24,
34,
1830,
2315,
8558,
1757,
76,
24,
2984,
1769,
3639,
3852,
261,
4646,
13,
288,
5411,
3852,
12,
92,
337,
13,
288,
7734,
775,
288,
10792,
1250,
9323,
10428,
2556,
273,
629,
31,
10792,
10842,
3597,
273,
15452,
18,
2271,
1830,
2459,
3606,
18,
8837,
1138,
5621,
10792,
1103,
18,
8222,
2932,
32,
332,
2984,
1769,
10792,
1323,
12,
5453,
18,
4285,
10756,
288,
13491,
509,
612,
273,
3597,
18,
588,
1702,
12,
21,
1769,
13491,
514,
1515,
273,
3597,
18,
588,
780,
12,
22,
1769,
13491,
514,
5588,
273,
3597,
18,
588,
780,
12,
23,
1769,
13491,
514,
4234,
273,
28083,
1495,
11864,
18,
588,
39,
14640,
1444,
12,
1214,
16,
1515,
9078,
18,
2902,
8863,
13491,
1103,
18,
8222,
2932,
32,
549,
34,
411,
748,
23224,
17133,
15,
350,
9078,
4279,
397,
1829,
397,
6823,
748,
28593,
225,
1319,
1546,
15,
9083,
9078,
315,
1769,
13491,
309,
12,
9083,
422,
446,
262,
225,
288,
18701,
5588,
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,
10680,
1830,
5121,
12,
4079,
1042,
1103,
16,
16680,
9062,
6376,
3029,
13,
288,
377,
368,
4202,
843,
1830,
2459,
3606,
273,
21406,
2932,
2271,
1830,
2459,
3606,
3113,
377,
368,
6647,
315,
4803,
612,
16,
6339,
16,
9083,
4571,
315,
397,
14934,
6331,
67,
28413,
397,
315,
1625,
16838,
4437,
3206,
8863,
3639,
514,
4121,
273,
1103,
18,
1518,
2932,
4816,
67,
2725,
8863,
3639,
1250,
2166,
1595,
273,
4121,
18,
14963,
2932,
454,
67,
24323,
8863,
3639,
1103,
18,
8222,
2932,
32,
76,
24,
34,
1830,
2315,
8558,
1757,
76,
24,
2984,
1769,
3639,
3852,
261,
4646,
13,
288,
5411,
3852,
12,
92,
337,
13,
288,
7734,
775,
288,
10792,
1250,
9323,
10428,
2556,
2
] |
return info.isFullBuildEnabled();
|
return info.isFullBuildEnabled() | info.isIncrementalBuildEnabled() ;
|
protected boolean shouldBuild(int kind, IMakeBuilderInfo info) { switch (kind) { case IncrementalProjectBuilder.AUTO_BUILD : return info.isAutoBuildEnable(); case IncrementalProjectBuilder.INCREMENTAL_BUILD : return info.isIncrementalBuildEnabled(); case IncrementalProjectBuilder.FULL_BUILD : return info.isFullBuildEnabled(); case IncrementalProjectBuilder.CLEAN_BUILD : return info.isCleanBuildEnabled(); } return true; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5f63b203d29a90b5d0391f9f02ef19deb8d3ac7e/MakeBuilder.java/clean/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1410,
3116,
12,
474,
3846,
16,
6246,
911,
1263,
966,
1123,
13,
288,
202,
202,
9610,
261,
9224,
13,
288,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
18909,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
4965,
3116,
8317,
5621,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
29836,
1013,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
10798,
287,
3116,
1526,
5621,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
18111,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
5080,
3116,
1526,
5621,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
39,
10439,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
7605,
3116,
1526,
5621,
202,
202,
97,
202,
202,
2463,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1410,
3116,
12,
474,
3846,
16,
6246,
911,
1263,
966,
1123,
13,
288,
202,
202,
9610,
261,
9224,
13,
288,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
18909,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
4965,
3116,
8317,
5621,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
29836,
1013,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
10798,
287,
3116,
1526,
5621,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
18111,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
5080,
3116,
1526,
5621,
1082,
202,
3593,
17883,
287,
4109,
1263,
18,
39,
10439,
67,
20215,
294,
9506,
202,
2463,
1123,
18,
291,
7605,
3116,
1526,
5621,
202,
202,
97,
202,
2
] |
if (ch == '\n') { cleanedBuffer.append(ch); } else { cleanedBuffer.append('\r').append(ch); }
|
cleanedBuffer.append(ch);
|
private String cleanBuffer(StringBuffer buffer) { StringBuffer cleanedBuffer = new StringBuffer(); boolean cr = false; for (int i = 0; i < buffer.length(); i++) { char ch = buffer.charAt(i); if (ch == '\r') { cr = true; continue; } if (!cr) { cleanedBuffer.append(ch); } else { if (ch == '\n') { cleanedBuffer.append(ch); } else { cleanedBuffer.append('\r').append(ch); } } } return cleanedBuffer.toString(); }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/566ea426c391b0114e12ab6cbd5fc822d792ccc0/BuildFileTest.java/clean/src/testcases/org/apache/tools/ant/BuildFileTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2721,
1892,
12,
780,
1892,
1613,
13,
288,
3639,
6674,
9426,
1892,
273,
394,
6674,
5621,
3639,
1250,
4422,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1613,
18,
2469,
5621,
277,
27245,
288,
5411,
1149,
462,
273,
1613,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
343,
422,
2337,
86,
6134,
288,
7734,
4422,
273,
638,
31,
7734,
1324,
31,
5411,
289,
5411,
309,
16051,
3353,
13,
288,
7734,
9426,
1892,
18,
6923,
12,
343,
1769,
5411,
289,
469,
288,
7734,
309,
261,
343,
422,
2337,
82,
6134,
288,
10792,
9426,
1892,
18,
6923,
12,
343,
1769,
7734,
289,
469,
288,
10792,
9426,
1892,
18,
6923,
2668,
64,
86,
16063,
6923,
12,
343,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
9426,
1892,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2721,
1892,
12,
780,
1892,
1613,
13,
288,
3639,
6674,
9426,
1892,
273,
394,
6674,
5621,
3639,
1250,
4422,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1613,
18,
2469,
5621,
277,
27245,
288,
5411,
1149,
462,
273,
1613,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
343,
422,
2337,
86,
6134,
288,
7734,
4422,
273,
638,
31,
7734,
1324,
31,
5411,
289,
5411,
309,
16051,
3353,
13,
288,
7734,
9426,
1892,
18,
6923,
12,
343,
1769,
5411,
289,
469,
288,
7734,
309,
261,
343,
422,
2337,
82,
6134,
288,
10792,
9426,
1892,
18,
6923,
12,
343,
1769,
7734,
289,
469,
288,
10792,
9426,
1892,
18,
6923,
2668,
64,
86,
2
] |
result.append(RubyArray.newArray(getRuntime(), key, value));
|
result.append(getRuntime().newArray(key, value));
|
public RubyArray to_a() { RubyArray result = RubyArray.newArray(getRuntime(), length()); for(Iterator iter = valueMap.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); IRubyObject key = (IRubyObject) entry.getKey(); IRubyObject value = (IRubyObject) entry.getValue(); result.append(RubyArray.newArray(getRuntime(), key, value)); } return result; }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyHash.java/buggy/src/org/jruby/RubyHash.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
358,
67,
69,
1435,
288,
3639,
19817,
1076,
563,
273,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
9334,
769,
10663,
7734,
364,
12,
3198,
1400,
273,
460,
863,
18,
4099,
694,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
5411,
15908,
10340,
921,
498,
273,
261,
7937,
10340,
921,
13,
1241,
18,
588,
653,
5621,
5411,
15908,
10340,
921,
460,
273,
261,
7937,
10340,
921,
13,
1241,
18,
24805,
5621,
5411,
563,
18,
6923,
12,
588,
5576,
7675,
2704,
1076,
12,
856,
16,
460,
10019,
3639,
289,
3639,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
1076,
358,
67,
69,
1435,
288,
3639,
19817,
1076,
563,
273,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
9334,
769,
10663,
7734,
364,
12,
3198,
1400,
273,
460,
863,
18,
4099,
694,
7675,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
1400,
18,
4285,
5621,
5411,
15908,
10340,
921,
498,
273,
261,
7937,
10340,
921,
13,
1241,
18,
588,
653,
5621,
5411,
15908,
10340,
921,
460,
273,
261,
7937,
10340,
921,
13,
1241,
18,
24805,
5621,
5411,
563,
18,
6923,
12,
588,
5576,
7675,
2704,
1076,
12,
856,
16,
460,
10019,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100
] |
System.out.println(ColumnValues[row][0] + " row: "
|
logger.info(ColumnValues[row][0] + " row: "
|
public void sortData(int column, final boolean sortascending) { Object[][] ColumnValues = new String [mVecVec.size()][2]; int row; int col; for(row = 0 ; row < mVecVec.size() ; ++row) { ColumnValues[row][0] = (((Vector)mVecVec.elementAt(row)).elementAt(column)); ColumnValues[row][1] = new Integer(row).toString(); } System.out.println("Values before sorting"); for(row = 0; row < ColumnValues.length ; ++row) { System.out.println(ColumnValues[row][0] + " row: " + ColumnValues[row][1]); } QSort sorter = new QSort(new Comparer() { public int compare(Object a, Object b) { int returnValue; try { returnValue = (((String[])a)[0]).compareTo(((String[])b)[0]); } catch (NullPointerException e) { returnValue = 1; } if (!sortascending) returnValue = -1 * returnValue; return returnValue; } }); sorter.sort(ColumnValues); System.out.println("Values after sorting"); for(row = 0; row < ColumnValues.length ; ++row) { System.out.println(ColumnValues[row][0] + " row: " + ColumnValues[row][1]); } Vector SortedVector = new Vector(); for(row = 0; row < ColumnValues.length ; ++row) { Vector thisRow = new Vector(6); Integer OriginalPosition = new Integer((String)ColumnValues[row][1]); for(col = 0; col < ((Vector)mVecVec.elementAt(row)).size(); ++col) { thisRow.addElement(((Vector)mVecVec.elementAt(OriginalPosition.intValue())).elementAt(col)); } SortedVector.addElement(thisRow); } mVecVec = SortedVector; fireTableDataChanged(); }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/dba8c3b6ca55297114840a7e8d6a99e1d87d27cb/AddressBook.java/buggy/grendel/sources/grendel/addressbook/AddressBook.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1524,
751,
12,
474,
1057,
16,
727,
1250,
1524,
3691,
2846,
13,
288,
1377,
1033,
63,
6362,
65,
4753,
1972,
273,
394,
514,
306,
81,
12991,
12991,
18,
1467,
1435,
6362,
22,
15533,
1377,
509,
1027,
31,
1377,
509,
645,
31,
1377,
364,
12,
492,
273,
374,
274,
1027,
411,
312,
12991,
12991,
18,
1467,
1435,
274,
965,
492,
13,
288,
3639,
4753,
1972,
63,
492,
6362,
20,
65,
273,
1850,
261,
12443,
5018,
13,
81,
12991,
12991,
18,
2956,
861,
12,
492,
13,
2934,
2956,
861,
12,
2827,
10019,
3639,
4753,
1972,
63,
492,
6362,
21,
65,
273,
394,
2144,
12,
492,
2934,
10492,
5621,
1377,
289,
1377,
2332,
18,
659,
18,
8222,
2932,
1972,
1865,
9602,
8863,
1377,
364,
12,
492,
273,
374,
31,
1027,
411,
4753,
1972,
18,
2469,
274,
965,
492,
13,
288,
3639,
1194,
18,
1376,
12,
1494,
1972,
63,
492,
6362,
20,
65,
397,
315,
1027,
30,
315,
21821,
397,
4753,
1972,
63,
492,
6362,
21,
19226,
1377,
289,
1377,
2238,
4416,
19867,
273,
394,
2238,
4416,
12,
2704,
1286,
21804,
1435,
288,
3639,
1071,
509,
3400,
12,
921,
279,
16,
1033,
324,
13,
288,
1850,
509,
7750,
31,
1850,
775,
288,
5411,
7750,
273,
261,
12443,
780,
63,
5717,
69,
25146,
20,
65,
2934,
9877,
774,
12443,
12,
780,
63,
5717,
70,
25146,
20,
19226,
1850,
289,
1850,
1044,
261,
2041,
9992,
425,
13,
288,
5411,
7750,
273,
404,
31,
1850,
289,
1850,
309,
16051,
3804,
3691,
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,
1524,
751,
12,
474,
1057,
16,
727,
1250,
1524,
3691,
2846,
13,
288,
1377,
1033,
63,
6362,
65,
4753,
1972,
273,
394,
514,
306,
81,
12991,
12991,
18,
1467,
1435,
6362,
22,
15533,
1377,
509,
1027,
31,
1377,
509,
645,
31,
1377,
364,
12,
492,
273,
374,
274,
1027,
411,
312,
12991,
12991,
18,
1467,
1435,
274,
965,
492,
13,
288,
3639,
4753,
1972,
63,
492,
6362,
20,
65,
273,
1850,
261,
12443,
5018,
13,
81,
12991,
12991,
18,
2956,
861,
12,
492,
13,
2934,
2956,
861,
12,
2827,
10019,
3639,
4753,
1972,
63,
492,
6362,
21,
65,
273,
394,
2144,
12,
492,
2934,
10492,
5621,
1377,
289,
1377,
2332,
18,
659,
18,
8222,
2932,
1972,
2
] |
containerWidth, calculator );
|
containerWidth, calculator );
|
private void caleLayoutData( IFigure container ) { if ( data == null ) { return; } /** * layout row, the row/column layout sequence can be changed. */ int size = data.rowHeights.length; int dxRows[] = new int[size]; int dxTotal = 0; for ( int i = 0; i < size; i++ ) { dxRows[i] = data.rowHeights[i].height - data.rowHeights[i].trueMinRowHeight; dxTotal = dxTotal + dxRows[i]; } for ( int i = 0; i < size; i++ ) { if ( dxRows[i] < 0 ) { data.rowHeights[i].height = data.rowHeights[i].trueMinRowHeight; } } /** * layout column */ size = data.columnWidths.length; int containerWidth = getOwner( ).getFigure( ).getParent( ) .getClientArea( ).getSize( ).width; TableHandleAdapter tadp = null; if ( getOwner( ) instanceof GridEditPart ) { tadp = HandleAdapterFactory.getInstance( ).getGridHandleAdapter( getOwner( ).getModel( ) ); } else { tadp = HandleAdapterFactory.getInstance( ).getTableHandleAdapter( getOwner( ).getModel( ) ); } if ( tadp != null ) { String ww = tadp.getDefinedWidth( ); containerWidth = getDefinedWidth( ww, containerWidth ); } int padding = getOwner( ).getFigure( ).getBorder( ).getInsets( getOwner( ).getFigure( ) ).getWidth( ); containerWidth -= padding; containerWidth = Math.max( 0, containerWidth ); String[] definedWidth = new String[size]; for ( int i = 1; i < size + 1; i++ ) { Object obj = getOwner( ).getColumn( i ); ColumnHandleAdapter adapt = HandleAdapterFactory.getInstance( ) .getColumnHandleAdapter( obj ); definedWidth[i - 1] = adapt.getRawWidth( ); } FixTableLayoutCalculator calculator = new FixTableLayoutCalculator( ); calculator.setTableWidth( containerWidth ); calculator.setColMinSize( ColumnHandleAdapter.DEFAULT_MINWIDTH ); calculator.setDefinedColWidth( definedWidth ); TableLayoutHelper.calculateColumnWidth( data.columnWidths, containerWidth, calculator ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e051547bba60033b7a064c5e9a52977a6c21df2b/TableLayout.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/layout/TableLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1443,
73,
3744,
751,
12,
11083,
15906,
1478,
262,
202,
95,
202,
202,
430,
261,
501,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
26873,
1082,
380,
3511,
1027,
16,
326,
1027,
19,
2827,
3511,
3102,
848,
506,
3550,
18,
1082,
1195,
202,
202,
474,
963,
273,
501,
18,
492,
2686,
87,
18,
2469,
31,
202,
202,
474,
6633,
4300,
8526,
273,
394,
509,
63,
1467,
15533,
202,
202,
474,
6633,
5269,
273,
374,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
963,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
13437,
4300,
63,
77,
65,
273,
501,
18,
492,
2686,
87,
63,
77,
8009,
4210,
6862,
202,
17,
501,
18,
492,
2686,
87,
63,
77,
8009,
3767,
2930,
1999,
2686,
31,
1082,
202,
13437,
5269,
273,
6633,
5269,
397,
6633,
4300,
63,
77,
15533,
202,
202,
97,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
963,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
430,
261,
6633,
4300,
63,
77,
65,
411,
374,
262,
1082,
202,
95,
9506,
202,
892,
18,
492,
2686,
87,
63,
77,
8009,
4210,
273,
501,
18,
492,
2686,
87,
63,
77,
8009,
3767,
2930,
1999,
2686,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
26873,
1082,
380,
3511,
1057,
1082,
1195,
202,
202,
1467,
273,
501,
18,
2827,
22407,
18,
2469,
31,
202,
202,
474,
1478,
2384,
273,
13782,
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,
1443,
73,
3744,
751,
12,
11083,
15906,
1478,
262,
202,
95,
202,
202,
430,
261,
501,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
26873,
1082,
380,
3511,
1027,
16,
326,
1027,
19,
2827,
3511,
3102,
848,
506,
3550,
18,
1082,
1195,
202,
202,
474,
963,
273,
501,
18,
492,
2686,
87,
18,
2469,
31,
202,
202,
474,
6633,
4300,
8526,
273,
394,
509,
63,
1467,
15533,
202,
202,
474,
6633,
5269,
273,
374,
31,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
963,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
13437,
4300,
63,
77,
65,
273,
501,
18,
492,
2686,
87,
63,
2
] |
public Object[] getObsoleteHandles(String handle) {
|
public synchronized Object[] getObsoleteHandles(String handle) {
|
public Object[] getObsoleteHandles(String handle) { int cacheOverrun = cache.size() - maximumCacheTarget; unlatch(handle); if (cacheOverrun <= 0) { return null; } ArrayList handles = new ArrayList(cacheOverrun); for (Iterator iterator = cache.entrySet().iterator(); iterator.hasNext();) { Map.Entry mapEntry = (Map.Entry) iterator.next(); if (!isLatched(mapEntry.getValue())) { handles.add(mapEntry.getValue()); iterator.remove(); if (--cacheOverrun == 0) { break; } } } if (handles.size() == 0) { return null; } return handles.toArray(); }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/71cd9ae7aa7ae8bb7275150de0a0ffaf6a91fe26/DefaultStatementCache.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/cache/DefaultStatementCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
8526,
17971,
2038,
19513,
8788,
12,
780,
1640,
13,
288,
202,
202,
474,
1247,
22042,
318,
273,
1247,
18,
1467,
1435,
300,
4207,
1649,
2326,
31,
9506,
202,
318,
80,
505,
12,
4110,
1769,
202,
202,
430,
261,
2493,
22042,
318,
1648,
374,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
19558,
7372,
273,
394,
2407,
12,
2493,
22042,
318,
1769,
9506,
202,
1884,
261,
3198,
2775,
273,
1247,
18,
4099,
694,
7675,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
863,
18,
1622,
852,
1622,
273,
261,
863,
18,
1622,
13,
2775,
18,
4285,
5621,
25083,
202,
430,
16051,
291,
23463,
329,
12,
1458,
1622,
18,
24805,
1435,
3719,
288,
9506,
202,
24111,
18,
1289,
12,
1458,
1622,
18,
24805,
10663,
6862,
9506,
202,
9838,
18,
4479,
5621,
6862,
9506,
202,
430,
261,
413,
2493,
22042,
318,
422,
374,
13,
288,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
9506,
202,
430,
261,
24111,
18,
1467,
1435,
422,
374,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
2463,
7372,
18,
31447,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
8526,
17971,
2038,
19513,
8788,
12,
780,
1640,
13,
288,
202,
202,
474,
1247,
22042,
318,
273,
1247,
18,
1467,
1435,
300,
4207,
1649,
2326,
31,
9506,
202,
318,
80,
505,
12,
4110,
1769,
202,
202,
430,
261,
2493,
22042,
318,
1648,
374,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
9506,
202,
19558,
7372,
273,
394,
2407,
12,
2493,
22042,
318,
1769,
9506,
202,
1884,
261,
3198,
2775,
273,
1247,
18,
4099,
694,
7675,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
863,
18,
1622,
852,
1622,
273,
261,
863,
18,
1622,
13,
2775,
18,
4285,
5621,
25083,
202,
430,
16051,
291,
23463,
329,
12,
1458,
1622,
18,
24805,
2
] |
public EnginePausingTest() {
|
public EnginePausingTest(String arg0) throws AxisFault { super(arg0); AxisConfiguration engineRegistry = new AxisSystemImpl(new GlobalDescription()); engineContext = new ConfigurationContext(engineRegistry); transportOut = new TransportOutDescription(new QName("null")); transportOut.setSender(new HTTPTransportSender()); transportIn = new TransportInDescription(new QName("null"));
|
public EnginePausingTest() { }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/727eb82c60304707547f0e49d319da2076c206ff/EnginePausingTest.java/buggy/modules/core/test/org/apache/axis/engine/EnginePausingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10507,
16507,
9940,
4709,
12,
780,
1501,
20,
13,
1216,
15509,
7083,
288,
2240,
12,
3175,
20,
1769,
225,
15509,
1750,
4073,
4243,
273,
394,
15509,
3163,
2828,
12,
2704,
8510,
3291,
10663,
4073,
1042,
273,
394,
4659,
1042,
12,
8944,
4243,
1769,
4736,
1182,
273,
394,
9514,
1182,
3291,
12,
2704,
16723,
2932,
2011,
7923,
1769,
4736,
1182,
18,
542,
12021,
12,
2704,
2239,
6568,
12021,
10663,
4736,
382,
273,
394,
9514,
382,
3291,
12,
2704,
16723,
2932,
2011,
7923,
1769,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10507,
16507,
9940,
4709,
12,
780,
1501,
20,
13,
1216,
15509,
7083,
288,
2240,
12,
3175,
20,
1769,
225,
15509,
1750,
4073,
4243,
273,
394,
15509,
3163,
2828,
12,
2704,
8510,
3291,
10663,
4073,
1042,
273,
394,
4659,
1042,
12,
8944,
4243,
1769,
4736,
1182,
273,
394,
9514,
1182,
3291,
12,
2704,
16723,
2932,
2011,
7923,
1769,
4736,
1182,
18,
542,
12021,
12,
2704,
2239,
6568,
12021,
10663,
4736,
382,
273,
394,
9514,
382,
3291,
12,
2704,
16723,
2932,
2011,
7923,
1769,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_scan_token(SLASHASSIGN)) return true; return false; }
|
if (jj_3R_59()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_258()) jj_scanpos = xsp; return false; }
|
final private boolean jj_3R_241() { if (jj_scan_token(SLASHASSIGN)) return true; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3247,
21,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
55,
2534,
8325,
1260,
10452,
3719,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3247,
21,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
55,
2534,
8325,
1260,
10452,
3719,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
t = db .mapTree(new ObjectId("6b9ffbebe7b83ac6a61c9477ab941d999f5d0c96")); assertNotNull(t); t.memberCount();
|
t = db .mapTree(new ObjectId( "6b9ffbebe7b83ac6a61c9477ab941d999f5d0c96")); assertNotNull(t); t.memberCount();
|
public void test005_todopack() throws IOException { final File todopack = new File(new File("tst"), "todopack"); if (!todopack.isDirectory()) { System.err.println("Skipping " + getName() + ": no " + todopack); return; } final File packDir = new File(db.getObjectsDirectory(), "pack"); final String packname = "pack-2e71952edc41f3ce7921c5e5dd1b64f48204cf35"; copyFile(new File(todopack, packname + ".pack"), new File( packDir, packname + ".pack")); copyFile(new File(todopack, packname + ".idx"), new File( packDir, packname + ".idx")); db.scanForPacks(); Tree t; t = db .mapTree(new ObjectId("aac9df07f653dd18b935298deb813e02c32d2e6f")); assertNotNull(t); t.memberCount(); t = db .mapTree(new ObjectId("6b9ffbebe7b83ac6a61c9477ab941d999f5d0c96")); assertNotNull(t); t.memberCount(); }
|
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/a4e486719ce78b8050373e6534dfaf4a1572b269/T0004_PackReader.java/buggy/org.spearce.jgit/tst/org/spearce/jgit/lib/T0004_PackReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
28564,
67,
88,
369,
556,
484,
1435,
1216,
1860,
565,
288,
3639,
727,
1387,
358,
72,
556,
484,
273,
394,
1387,
12,
2704,
1387,
2932,
88,
334,
6,
3631,
315,
88,
369,
556,
484,
8863,
3639,
309,
16051,
88,
369,
556,
484,
18,
291,
2853,
10756,
3639,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
16877,
315,
397,
1723,
1435,
397,
6398,
1158,
315,
397,
358,
72,
556,
484,
1769,
5411,
327,
31,
3639,
289,
3639,
727,
1387,
2298,
1621,
273,
394,
1387,
12,
1966,
18,
588,
4710,
2853,
9334,
315,
2920,
8863,
3639,
727,
514,
2298,
529,
273,
315,
2920,
17,
22,
73,
27,
3657,
9401,
329,
71,
9803,
74,
23,
311,
7235,
5340,
71,
25,
73,
25,
449,
21,
70,
1105,
74,
8875,
21573,
8522,
4763,
14432,
3639,
26955,
12,
2704,
1387,
12,
88,
369,
556,
484,
16,
2298,
529,
397,
3552,
2920,
6,
3631,
394,
1387,
12,
5411,
2298,
1621,
16,
5411,
2298,
529,
397,
3552,
2920,
7923,
1769,
3639,
26955,
12,
2704,
1387,
12,
88,
369,
556,
484,
16,
2298,
529,
397,
3552,
3465,
6,
3631,
394,
1387,
12,
5411,
2298,
1621,
16,
5411,
2298,
529,
397,
3552,
3465,
7923,
1769,
3639,
1319,
18,
9871,
1290,
4420,
87,
5621,
3639,
4902,
268,
31,
3639,
268,
273,
1319,
5411,
263,
1458,
2471,
12,
2704,
21192,
2932,
69,
1077,
29,
2180,
8642,
74,
26,
8643,
449,
2643,
70,
29,
4763,
5540,
28,
31888,
28,
3437,
73,
3103,
71,
1578,
72,
22,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
28564,
67,
88,
369,
556,
484,
1435,
1216,
1860,
565,
288,
3639,
727,
1387,
358,
72,
556,
484,
273,
394,
1387,
12,
2704,
1387,
2932,
88,
334,
6,
3631,
315,
88,
369,
556,
484,
8863,
3639,
309,
16051,
88,
369,
556,
484,
18,
291,
2853,
10756,
3639,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
16877,
315,
397,
1723,
1435,
397,
6398,
1158,
315,
397,
358,
72,
556,
484,
1769,
5411,
327,
31,
3639,
289,
3639,
727,
1387,
2298,
1621,
273,
394,
1387,
12,
1966,
18,
588,
4710,
2853,
9334,
315,
2920,
8863,
3639,
727,
514,
2298,
529,
273,
315,
2920,
17,
22,
73,
27,
3657,
9401,
329,
71,
9803,
74,
23,
311,
7235,
5340,
2
] |
default:
|
default:
|
private void TestFromUnicode(DataMap testcase, int caseNr) { ConversionCase cc = new ConversionCase(); cc.caseNr = caseNr; try { // retrieve test case data cc.charset = ((ICUResourceBundle) testcase.getObject("charset")) .getString(); cc.unicode = ((ICUResourceBundle) testcase.getObject("unicode")) .getString(); cc.bytes = ((ICUResourceBundle) testcase.getObject("bytes")) .getBinary(); cc.offsets = ((ICUResourceBundle) testcase.getObject("offsets")) .getIntVector(); cc.finalFlush = ((ICUResourceBundle) testcase.getObject("flush")) .getUInt() != 0; cc.fallbacks = ((ICUResourceBundle) testcase.getObject("fallbacks")) .getUInt() != 0; cc.outErrorCode = ((ICUResourceBundle) testcase .getObject("errorCode")).getString(); cc.cbopt = ((ICUResourceBundle) testcase.getObject("callback")) .getString(); } catch (Exception e) { errln("Skipping test:"); errln("error parsing conversion/toUnicode test case " + cc.caseNr); return; } // ----for debugging only logln("\nTestFromUnicode[" + caseNr + "] " + cc.charset + " "); logln("Unicode: " + cc.unicode); logln("Bytes:"); printbytes(cc.bytes, cc.bytes.limit()); logln(""); logln("Callback: (" + cc.cbopt + ")"); logln("...............................................");// ----for debugging only // TODO: ***Currently skipping test for charset ibm-1390, gb18030, // ibm-930 due to external mapping need to be fix if (cc.charset.equalsIgnoreCase("ibm-1390") || cc.charset.equalsIgnoreCase("gb18030") || cc.charset.equalsIgnoreCase("ibm-970")) { logln("Skipping test:(" + cc.charset + ") due to ICU Charset external mapping not supported at this time"); return; } // process the retrieved test data case if (cc.offsets.length == 0) { cc.offsets = null; } else if (cc.offsets.length != cc.bytes.limit()) { errln("fromUnicode[" + cc.caseNr + "] bytes[" + cc.bytes + "] and offsets[" + cc.offsets.length + "] must have the same length"); return; } // check the callback replacement value if (cc.cbopt.length() > 0) { switch ((cc.cbopt).charAt(0)) { case '?': cc.cbErrorAction = CodingErrorAction.REPLACE; break; case '0': cc.cbErrorAction = CodingErrorAction.IGNORE; break; case '.': cc.cbErrorAction = CodingErrorAction.REPORT; break; case '&': cc.cbErrorAction = CodingErrorAction.REPORT; break; default: cc.cbErrorAction = null; break; } // check for any options for the callback value -- cc.option = cc.cbErrorAction == null ? cc.cbopt : cc.cbopt.substring(1); if (cc.option == null) { cc.option = null; } } logln("TestFromUnicode[" + cc.caseNr + "] " + cc.charset); FromUnicodeCase(cc); return; }
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/10a1c2dccc10797aec24b0d077f1f602b14882d6/TestConversion.java/clean/icu4j/src/com/ibm/icu/dev/test/charset/TestConversion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7766,
1265,
16532,
12,
31982,
1842,
3593,
16,
509,
648,
18726,
13,
288,
3639,
16401,
2449,
4946,
273,
394,
16401,
2449,
5621,
3639,
4946,
18,
3593,
18726,
273,
648,
18726,
31,
3639,
775,
288,
5411,
368,
4614,
1842,
648,
501,
5411,
4946,
18,
9999,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
9999,
6,
3719,
10792,
263,
588,
780,
5621,
5411,
4946,
18,
9124,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
9124,
6,
3719,
10792,
263,
588,
780,
5621,
5411,
4946,
18,
3890,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
3890,
6,
3719,
10792,
263,
588,
5905,
5621,
5411,
4946,
18,
16542,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
16542,
6,
3719,
10792,
263,
588,
1702,
5018,
5621,
5411,
4946,
18,
6385,
8207,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
11330,
6,
3719,
10792,
263,
588,
14342,
1435,
480,
374,
31,
5411,
4946,
18,
16471,
87,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
16471,
87,
6,
3719,
10792,
263,
588,
14342,
1435,
480,
374,
31,
5411,
4946,
18,
659,
12012,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
10792,
263,
588,
921,
2932,
27754,
7923,
2934,
588,
780,
5621,
5411,
4946,
18,
71,
1075,
337,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
3394,
6,
3719,
10792,
263,
588,
780,
5621,
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,
7766,
1265,
16532,
12,
31982,
1842,
3593,
16,
509,
648,
18726,
13,
288,
3639,
16401,
2449,
4946,
273,
394,
16401,
2449,
5621,
3639,
4946,
18,
3593,
18726,
273,
648,
18726,
31,
3639,
775,
288,
5411,
368,
4614,
1842,
648,
501,
5411,
4946,
18,
9999,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
9999,
6,
3719,
10792,
263,
588,
780,
5621,
5411,
4946,
18,
9124,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
9124,
6,
3719,
10792,
263,
588,
780,
5621,
5411,
4946,
18,
3890,
273,
14015,
2871,
57,
18731,
13,
1842,
3593,
18,
588,
921,
2932,
3890,
6,
3719,
10792,
263,
588,
5905,
5621,
5411,
4946,
18,
16542,
2
] |
String message = "RemoteException from agent on: " + agentMachine + " while building module: " + module;
|
String message = "RemoteException from" + "\nagent on: " + agentMachine + "\nwhile building module: " + module;
|
public Element build(Map projectProperties) throws CruiseControlException { try { final BuildAgentService agent = pickAgent(); // agent is now marked as claimed final Element buildResults; try { projectProperties.put("distributed.overrideTarget", overrideTarget); projectProperties.put(PropertiesHelper.DISTRIBUTED_MODULE, module); projectProperties.put(PropertiesHelper.DISTRIBUTED_AGENT_LOGDIR, getAgentLogDir()); projectProperties.put(PropertiesHelper.DISTRIBUTED_AGENT_OUTPUTDIR, getAgentOutputDir()); LOG.info("Starting remote build on agent: " + agent.getMachineName() + " of module: " + module); buildResults = agent.doBuild(getChildBuilderElement(), projectProperties); final String rootDirPath; try { // watch out on Windoze, problems if root dir is c: instead of c:/ LOG.debug("rootDir: " + rootDir + "; rootDir.cp: " + rootDir.getCanonicalPath()); rootDirPath = rootDir.getCanonicalPath(); } catch (IOException e) { String message = "Error getting canonical path for: " + rootDir; LOG.error(message); System.err.println(message); throw new CruiseControlException(message, e); } String masterDir; if (getMasterLogDir() == null || "".equals(getMasterLogDir())) { masterDir = rootDirPath + File.separator + PropertiesHelper.RESULT_TYPE_LOGS; } else { masterDir = getMasterLogDir(); } getResultsFiles(agent, PropertiesHelper.RESULT_TYPE_LOGS, rootDirPath, masterDir); if (getMasterOutputDir() == null || "".equals(getMasterOutputDir())) { masterDir = rootDirPath + File.separator + PropertiesHelper.RESULT_TYPE_OUTPUT; } else { masterDir = getMasterOutputDir(); } getResultsFiles(agent, PropertiesHelper.RESULT_TYPE_OUTPUT, rootDirPath, masterDir); agent.clearOutputFiles(); } catch (RemoteException e) { String agentMachine = "unknown"; try { agentMachine = agent.getMachineName(); } catch (RemoteException e1) { ; // ignored } String message = "RemoteException from agent on: " + agentMachine + " while building module: " + module; LOG.error(message, e); System.err.println(message + " - " + e.getMessage()); try { agent.clearOutputFiles(); } catch (RemoteException re) { LOG.error("Exception after prior exception while clearing agent output files (to set busy false).", re); } throw new CruiseControlException(message, e); } return buildResults; } catch (RuntimeException e) { String message = "Distributed build runtime exception"; LOG.error(message, e); System.err.println(message + " - " + e.getMessage()); throw new CruiseControlException(message, e); } }
|
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/2c85e0021203d96ece16c5bbfb40ebb70caeeb07/DistributedMasterBuilder.java/buggy/contrib/distributed/src/net/sourceforge/cruisecontrol/builders/DistributedMasterBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1361,
12,
863,
1984,
2297,
13,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
775,
288,
5411,
727,
3998,
3630,
1179,
4040,
273,
6002,
3630,
5621,
5411,
368,
4040,
353,
2037,
9350,
487,
7516,
329,
5411,
727,
3010,
1361,
3447,
31,
5411,
775,
288,
7734,
1984,
2297,
18,
458,
2932,
2251,
11050,
18,
10601,
2326,
3113,
3849,
2326,
1769,
7734,
1984,
2297,
18,
458,
12,
2297,
2276,
18,
2565,
15765,
3000,
6404,
67,
12194,
16,
1605,
1769,
7734,
1984,
2297,
18,
458,
12,
2297,
2276,
18,
2565,
15765,
3000,
6404,
67,
15005,
67,
4842,
4537,
16,
336,
3630,
1343,
1621,
10663,
7734,
1984,
2297,
18,
458,
12,
2297,
2276,
18,
2565,
15765,
3000,
6404,
67,
15005,
67,
15527,
4537,
16,
336,
3630,
1447,
1621,
10663,
7734,
2018,
18,
1376,
2932,
11715,
2632,
1361,
603,
4040,
30,
315,
397,
4040,
18,
588,
6981,
461,
1435,
397,
315,
434,
1605,
30,
315,
397,
1605,
1769,
7734,
1361,
3447,
273,
4040,
18,
2896,
3116,
12,
588,
1763,
1263,
1046,
9334,
1984,
2297,
1769,
7734,
727,
514,
15393,
743,
31,
7734,
775,
288,
10792,
368,
4267,
596,
603,
678,
728,
83,
8489,
16,
9688,
309,
1365,
1577,
353,
276,
30,
3560,
434,
276,
27824,
10792,
2018,
18,
4148,
2932,
3085,
1621,
30,
315,
397,
15393,
397,
13636,
15393,
18,
4057,
30,
315,
397,
15393,
18,
588,
15512,
743,
10663,
10792,
15393,
743,
273,
15393,
18,
588,
15512,
743,
5621,
7734,
289,
1044,
261,
14106,
425,
13,
288,
10792,
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,
3010,
1361,
12,
863,
1984,
2297,
13,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
775,
288,
5411,
727,
3998,
3630,
1179,
4040,
273,
6002,
3630,
5621,
5411,
368,
4040,
353,
2037,
9350,
487,
7516,
329,
5411,
727,
3010,
1361,
3447,
31,
5411,
775,
288,
7734,
1984,
2297,
18,
458,
2932,
2251,
11050,
18,
10601,
2326,
3113,
3849,
2326,
1769,
7734,
1984,
2297,
18,
458,
12,
2297,
2276,
18,
2565,
15765,
3000,
6404,
67,
12194,
16,
1605,
1769,
7734,
1984,
2297,
18,
458,
12,
2297,
2276,
18,
2565,
15765,
3000,
6404,
67,
15005,
67,
4842,
4537,
16,
336,
3630,
1343,
1621,
10663,
7734,
1984,
2297,
18,
458,
12,
2297,
2276,
18,
2565,
15765,
3000,
6404,
67,
15005,
2
] |
RPARENHandler();
|
/* * need to simply switch back to REFERENCE, not drop down the stack * because we can (infinitely) chain, ala $foo.bar().blargh().woogie().doogie() */ SwitchTo( REFERENCE );
|
final void TokenLexicalActions(Token matchedToken){ switch(jjmatchedKind) { case 4 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); if (!inComment) lparen++; /* * if in REFERENCE and we have seen the dot, then move to REFMOD2 -> Modifier() */ if (curLexState == REFMODIFIER ) SwitchTo( REFMOD2 ); break; case 5 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); RPARENHandler(); break; case 6 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); RPARENHandler(); break; case 7 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#set"; break; case 8 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#if"; break; case 9 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#end"; break; case 10 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#include"; break; case 11 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#elseif"; break; case 12 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#else"; break; case 13 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.image = "#stop"; break; case 22 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); inComment = false; stateStackPop(); break; case 23 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); inComment = false; stateStackPop(); break; case 24 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); inComment = false; stateStackPop(); break; case 28 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); if (incMode) { matchedToken.image = stripQuotes(image.toString()); pushFile(matchedToken.image); } incMode = false; /* * - if we are in REFERENCE || REFMODIFIER then " is an ender * - if we are in DIRECTIVE and haven't seen ( yet, then also drop out. * don't forget to account for the beloved yet wierd #set * - finally, if we are in REFMOD2 (remember : $foo.bar( ) then " is ok! */ if (curLexState == REFERENCE || curLexState == REFMODIFIER) stateStackPop(); else if( curLexState == DIRECTIVE && !inSet && lparen == 0) stateStackPop(); break; case 31 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); if ( bDebugPrint_ ) System.out.println(" NEWLINE :"); stateStackPop(); if (inSet) inSet = false; if (inDirective) inDirective = false; break; case 47 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); inDirective = false; stateStackPop(); break; case 48 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); incMode = true; break; case 51 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); inDirective = false; stateStackPop(); break; case 52 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); inSet = true; break; case 53 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); matchedToken.kind = EOF; fileDepth = 0; break; case 55 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); /* * in the spirit of Jason's fix :) * but check to see if we are in set * ex. #set $foo = $foo + 3 * because we want to handle the \n after */ if ( lparen == 0 && !inSet ) stateStackPop(); break; case 62 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); /* * push the alpha char back into the stream so the following identifier is complete */ input_stream.backup(1); /* * and munge the <DOT> so we just get a . when we have normal text that looks like a ref.ident */ matchedToken.image = "."; if ( bDebugPrint_ ) System.out.print("DOT : switching to " + REFMODIFIER); SwitchTo(REFMODIFIER); break; case 64 : if (image == null) image = new StringBuffer(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); else image.append(new String(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)))); stateStackPop(); break; default : break; }}
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/9318017a9ab81a05a9d98907ac70c904eebaaf73/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
918,
3155,
14756,
1706,
6100,
12,
1345,
4847,
1345,
15329,
282,
1620,
12,
78,
78,
11073,
5677,
13,
282,
288,
1377,
648,
1059,
294,
3639,
309,
261,
2730,
422,
446,
13,
5411,
1316,
273,
394,
6674,
12,
2704,
514,
12,
2630,
67,
3256,
18,
967,
5791,
12,
78,
78,
2730,
2891,
397,
261,
2469,
951,
2060,
273,
10684,
11073,
1616,
397,
404,
3719,
10019,
540,
469,
5411,
1316,
18,
6923,
12,
2704,
514,
12,
2630,
67,
3256,
18,
967,
5791,
12,
78,
78,
2730,
2891,
397,
261,
2469,
951,
2060,
273,
10684,
11073,
1616,
397,
404,
3719,
10019,
3639,
309,
16051,
267,
4469,
13,
5411,
328,
13012,
9904,
31,
3639,
1748,
540,
380,
225,
309,
316,
22898,
471,
732,
1240,
5881,
326,
3928,
16,
1508,
3635,
358,
20557,
6720,
22,
317,
12832,
1435,
540,
1195,
3639,
309,
261,
1397,
14756,
1119,
422,
20557,
6720,
10591,
262,
5411,
13967,
774,
12,
20557,
6720,
22,
11272,
540,
898,
31,
1377,
648,
1381,
294,
3639,
309,
261,
2730,
422,
446,
13,
5411,
1316,
273,
394,
6674,
12,
2704,
514,
12,
2630,
67,
3256,
18,
967,
5791,
12,
78,
78,
2730,
2891,
397,
261,
2469,
951,
2060,
273,
10684,
11073,
1616,
397,
404,
3719,
10019,
540,
469,
5411,
1316,
18,
6923,
12,
2704,
514,
12,
2630,
67,
3256,
18,
967,
5791,
12,
78,
78,
2730,
2891,
397,
261,
2469,
951,
2060,
273,
10684,
11073,
1616,
397,
404,
3719,
10019,
4202,
1748,
380,
225,
1608,
358,
8616,
1620,
1473,
358,
22898,
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,
727,
918,
3155,
14756,
1706,
6100,
12,
1345,
4847,
1345,
15329,
282,
1620,
12,
78,
78,
11073,
5677,
13,
282,
288,
1377,
648,
1059,
294,
3639,
309,
261,
2730,
422,
446,
13,
5411,
1316,
273,
394,
6674,
12,
2704,
514,
12,
2630,
67,
3256,
18,
967,
5791,
12,
78,
78,
2730,
2891,
397,
261,
2469,
951,
2060,
273,
10684,
11073,
1616,
397,
404,
3719,
10019,
540,
469,
5411,
1316,
18,
6923,
12,
2704,
514,
12,
2630,
67,
3256,
18,
967,
5791,
12,
78,
78,
2730,
2891,
397,
261,
2469,
951,
2060,
273,
10684,
11073,
1616,
397,
404,
3719,
10019,
3639,
309,
16051,
267,
4469,
13,
5411,
328,
13012,
9904,
31,
3639,
1748,
540,
380,
225,
309,
316,
22898,
471,
2
] |
public static double jsStaticFunction_UTC(Context cx, Scriptable thisObj, Object[] args, Function funObj) {
|
private static double jsStaticFunction_UTC(Object[] args) {
|
public static double jsStaticFunction_UTC(Context cx, Scriptable thisObj, Object[] args, Function funObj) { double array[] = new double[MAXARGS]; int loop; double d; for (loop = 0; loop < MAXARGS; loop++) { if (loop < args.length) { d = ScriptRuntime.toNumber(args[loop]); if (d != d || Double.isInfinite(d)) { return ScriptRuntime.NaN; } array[loop] = ScriptRuntime.toInteger(args[loop]); } else { array[loop] = 0; } } /* adjust 2-digit years into the 20th century */ if (array[0] >= 0 && array[0] <= 99) array[0] += 1900; /* if we got a 0 for 'date' (which is out of range) * pretend it's a 1. (So Date.UTC(1972, 5) works) */ if (array[2] < 1) array[2] = 1; d = date_msecFromDate(array[0], array[1], array[2], array[3], array[4], array[5], array[6]); d = TimeClip(d); return d; // return new Double(d); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
3828,
5788,
2083,
67,
11471,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2868,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
1645,
526,
8526,
273,
394,
1645,
63,
6694,
22439,
15533,
3639,
509,
2798,
31,
3639,
1645,
302,
31,
3639,
364,
261,
6498,
273,
374,
31,
2798,
411,
4552,
22439,
31,
2798,
27245,
288,
5411,
309,
261,
6498,
411,
833,
18,
2469,
13,
288,
7734,
302,
273,
7739,
5576,
18,
869,
1854,
12,
1968,
63,
6498,
19226,
7734,
309,
261,
72,
480,
302,
747,
3698,
18,
291,
382,
9551,
12,
72,
3719,
288,
10792,
327,
7739,
5576,
18,
21172,
31,
7734,
289,
7734,
526,
63,
6498,
65,
273,
7739,
5576,
18,
869,
4522,
12,
1968,
63,
6498,
19226,
5411,
289,
469,
288,
7734,
526,
63,
6498,
65,
273,
374,
31,
5411,
289,
3639,
289,
3639,
1748,
5765,
576,
17,
11052,
11387,
1368,
326,
4200,
451,
8301,
22498,
1195,
3639,
309,
261,
1126,
63,
20,
65,
1545,
374,
597,
526,
63,
20,
65,
1648,
14605,
13,
5411,
526,
63,
20,
65,
1011,
5342,
713,
31,
5411,
1748,
309,
732,
2363,
279,
374,
364,
296,
712,
11,
261,
12784,
353,
596,
434,
1048,
13,
2398,
380,
675,
17445,
518,
1807,
279,
404,
18,
225,
261,
10225,
2167,
18,
11471,
12,
3657,
9060,
16,
1381,
13,
6330,
13,
1195,
3639,
309,
261,
1126,
63,
22,
65,
411,
404,
13,
5411,
526,
63,
22,
65,
273,
404,
31,
3639,
302,
273,
1509,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
3828,
5788,
2083,
67,
11471,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
2868,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
1645,
526,
8526,
273,
394,
1645,
63,
6694,
22439,
15533,
3639,
509,
2798,
31,
3639,
1645,
302,
31,
3639,
364,
261,
6498,
273,
374,
31,
2798,
411,
4552,
22439,
31,
2798,
27245,
288,
5411,
309,
261,
6498,
411,
833,
18,
2469,
13,
288,
7734,
302,
273,
7739,
5576,
18,
869,
1854,
12,
1968,
63,
6498,
19226,
7734,
309,
261,
72,
480,
302,
747,
3698,
18,
291,
382,
9551,
12,
72,
3719,
288,
10792,
327,
7739,
5576,
18,
21172,
31,
7734,
289,
7734,
526,
63,
6498,
65,
273,
7739,
5576,
18,
2
] |
return false;
|
try { fConfiguration.getProperty(name.toLowerCase(Locale.ENGLISH)); return true; } catch (XMLConfigurationException e) { return false; }
|
public boolean canSetParameter (String name, Object value) { if (value == null){ return true; } if(value instanceof Boolean){ boolean state = ((Boolean)value).booleanValue (); if ( name.equalsIgnoreCase (Constants.DOM_SUPPORTED_MEDIATYPES_ONLY) || name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase(Constants.DOM_CHECK_CHAR_NORMALIZATION ) || name.equalsIgnoreCase (Constants.DOM_CANONICAL_FORM) ) { // true is not supported return (state) ? false : true; } else if (name.equalsIgnoreCase (Constants.DOM_WELLFORMED) || name.equalsIgnoreCase (Constants.DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS)) { // false is not supported return (state) ? true : false; } else if (name.equalsIgnoreCase (Constants.DOM_CDATA_SECTIONS) || name.equalsIgnoreCase (Constants.DOM_CHARSET_OVERRIDES_XML_ENCODING) || name.equalsIgnoreCase (Constants.DOM_COMMENTS) || name.equalsIgnoreCase (Constants.DOM_DATATYPE_NORMALIZATION) || name.equalsIgnoreCase (Constants.DOM_DISALLOW_DOCTYPE) || name.equalsIgnoreCase (Constants.DOM_ENTITIES) || name.equalsIgnoreCase (Constants.DOM_INFOSET) || name.equalsIgnoreCase (Constants.DOM_NAMESPACES) || name.equalsIgnoreCase (Constants.DOM_NAMESPACE_DECLARATIONS) || name.equalsIgnoreCase (Constants.DOM_VALIDATE) || name.equalsIgnoreCase (Constants.DOM_VALIDATE_IF_SCHEMA) || name.equalsIgnoreCase (Constants.DOM_ELEMENT_CONTENT_WHITESPACE) || name.equalsIgnoreCase (Constants.DOM_XMLDECL)) { return true; } // Recognize Xerces features. try { fConfiguration.getFeature(name.toLowerCase(Locale.ENGLISH)); return true; } catch (XMLConfigurationException e) { return false; } } else { // check properties if (name.equalsIgnoreCase (Constants.DOM_ERROR_HANDLER)) { if (value instanceof DOMErrorHandler || value == null) { return true; } return false; } else if (name.equalsIgnoreCase (Constants.DOM_RESOURCE_RESOLVER)) { if (value instanceof LSResourceResolver || value == null) { return true; } return false; } else if (name.equalsIgnoreCase (Constants.DOM_SCHEMA_TYPE)) { if ((value instanceof String && (value.equals (Constants.NS_XMLSCHEMA) || value.equals (Constants.NS_DTD))) || value == null) { return true; } return false; } else if (name.equalsIgnoreCase (Constants.DOM_SCHEMA_LOCATION)) { if (value instanceof String || value == null) return true; return false; } else if (name.equalsIgnoreCase (DOCUMENT_CLASS_NAME)){ return true; } return false; } }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/636401f2d3403c2cdb6f763cf19141427b0827d9/DOMParserImpl.java/buggy/src/org/apache/xerces/parsers/DOMParserImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
694,
1662,
261,
780,
508,
16,
1033,
460,
13,
288,
377,
202,
430,
261,
1132,
422,
446,
15329,
377,
202,
202,
2463,
638,
31,
377,
202,
97,
377,
202,
3639,
309,
12,
1132,
1276,
3411,
15329,
5411,
1250,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
261,
1769,
5411,
309,
261,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
21134,
67,
15971,
789,
1738,
55,
67,
10857,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
15480,
15641,
67,
7305,
6526,
11367,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
10687,
67,
7305,
67,
15480,
25084,
262,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
39,
1258,
673,
10109,
67,
4983,
13,
262,
288,
7734,
368,
638,
353,
486,
3260,
7734,
327,
261,
2019,
13,
692,
629,
294,
638,
31,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
59,
21943,
7473,
25773,
13,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
20118,
67,
14737,
67,
27858,
67,
13296,
10408,
6867,
15297,
3719,
288,
7734,
368,
629,
353,
486,
3260,
7734,
327,
261,
2019,
13,
692,
638,
294,
629,
31,
5411,
289,
5411,
469,
309,
261,
529,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
18375,
67,
19082,
55,
13,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
26977,
67,
12959,
54,
734,
3991,
67,
4201,
67,
14672,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
848,
694,
1662,
261,
780,
508,
16,
1033,
460,
13,
288,
377,
202,
430,
261,
1132,
422,
446,
15329,
377,
202,
202,
2463,
638,
31,
377,
202,
97,
377,
202,
3639,
309,
12,
1132,
1276,
3411,
15329,
5411,
1250,
919,
273,
14015,
5507,
13,
1132,
2934,
6494,
620,
261,
1769,
5411,
309,
261,
508,
18,
14963,
5556,
261,
2918,
18,
8168,
67,
21134,
67,
15971,
789,
1738,
55,
67,
10857,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
15480,
15641,
67,
7305,
6526,
11367,
13,
5411,
747,
508,
18,
14963,
5556,
12,
2918,
18,
8168,
67,
10687,
67,
7305,
67,
15480,
25084,
262,
5411,
747,
508,
18,
14963,
5556,
261,
2918,
18,
2
] |
VM_Interface._assert(size == (size & (~3))); for (int i=0; i<size; i+=4)
|
VM_Interface._assert((size & (BYTES_IN_INT-1)) == 0); for (int i=0; i < size; i += BYTES_IN_INT)
|
private static boolean isSetHelper(VM_Address start, int size, boolean verbose, int v) throws VM_PragmaNoInline { if (VM_Interface.VerifyAssertions) VM_Interface._assert(size == (size & (~3))); for (int i=0; i<size; i+=4) if (VM_Magic.getMemoryInt(start.add(i)) != v) { if (verbose) { Log.prependThreadId(); Log.write("Memory range does not contain only value "); Log.writeln(v); Log.write("Non-zero range: "); Log.write(start); Log.write(" .. "); Log.writeln(start.add(size)); Log.write("First bad value at "); Log.writeln(start.add(i)); dumpMemory(start, 0, size); } return false; } return true; }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/e9199992b356786655ffe0ebed85eac89e929500/Memory.java/buggy/rvm/src/vm/memoryManagers/JMTk/utility/Memory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
13532,
2276,
12,
7397,
67,
1887,
787,
16,
509,
963,
16,
1250,
3988,
16,
509,
331,
13,
1216,
8251,
67,
2050,
9454,
2279,
10870,
288,
565,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
4202,
8251,
67,
1358,
6315,
11231,
12,
1467,
422,
261,
1467,
473,
261,
98,
23,
3719,
1769,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
31,
277,
15,
33,
24,
13,
4202,
309,
261,
7397,
67,
19289,
18,
588,
6031,
1702,
12,
1937,
18,
1289,
12,
77,
3719,
480,
331,
13,
288,
3639,
309,
261,
11369,
13,
288,
5411,
1827,
18,
23100,
3830,
548,
5621,
5411,
1827,
18,
2626,
2932,
6031,
1048,
1552,
486,
912,
1338,
460,
315,
1769,
5411,
1827,
18,
5363,
292,
82,
12,
90,
1769,
5411,
1827,
18,
2626,
2932,
3989,
17,
7124,
1048,
30,
315,
1769,
1827,
18,
2626,
12,
1937,
1769,
5411,
1827,
18,
2626,
2932,
6116,
315,
1769,
1827,
18,
5363,
292,
82,
12,
1937,
18,
1289,
12,
1467,
10019,
5411,
1827,
18,
2626,
2932,
3759,
5570,
460,
622,
315,
1769,
1827,
18,
5363,
292,
82,
12,
1937,
18,
1289,
12,
77,
10019,
5411,
4657,
6031,
12,
1937,
16,
374,
16,
963,
1769,
3639,
289,
3639,
327,
629,
31,
1377,
289,
565,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
13532,
2276,
12,
7397,
67,
1887,
787,
16,
509,
963,
16,
1250,
3988,
16,
509,
331,
13,
1216,
8251,
67,
2050,
9454,
2279,
10870,
288,
565,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
4202,
8251,
67,
1358,
6315,
11231,
12,
1467,
422,
261,
1467,
473,
261,
98,
23,
3719,
1769,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
1467,
31,
277,
15,
33,
24,
13,
4202,
309,
261,
7397,
67,
19289,
18,
588,
6031,
1702,
12,
1937,
18,
1289,
12,
77,
3719,
480,
331,
13,
288,
3639,
309,
261,
11369,
13,
288,
5411,
1827,
18,
23100,
3830,
548,
5621,
5411,
1827,
18,
2626,
2932,
6031,
1048,
1552,
486,
912,
1338,
2
] |
queueManager.getQueryManager().getConnection().unlockWriting(); queueManager.setQueueCompleted();
|
this.queueManager.getQueryManager().getConnection().unlockWriting(); this.queueManager.setQueueCompleted();
|
public void update(Observable o, Object param) { FCPMessage msg = (FCPMessage)param; if(msg.getMessageName().equals("PersistentGet")) { Logger.info(this, "Resuming from PersistentGet"); int persistence = 0; if(msg.getValue("PersistenceType").equals("reboot")) persistence = 1; boolean global = true; if(msg.getValue("Global").equals("false")) global = false; String destinationDir = null; if(msg.getValue("Identifier").startsWith(thawId)) destinationDir = msg.getValue("ClientToken"); int priority = Integer.parseInt(msg.getValue("PriorityClass")); FCPClientGet clientGet = new FCPClientGet(msg.getValue("Identifier"), msg.getValue("URI"), // key priority, persistence, global, destinationDir, "Fetching", 0, -1, queueManager); if(queueManager.addQueryToTheRunningQueue(clientGet, false)) queueManager.getQueryManager().addObserver(clientGet); else Logger.info(this, "Already in the running queue"); } if(msg.getMessageName().equals("PersistentPut")) { Logger.info(this, "Resuming from PersistentPut"); int persistence = 0; /* TOFIX : Node doesn't return PersistenceType */ /* if(msg.getValue("PersistenceType").equals("reboot")) persistence = 1; */ boolean global = true; if(msg.getValue("Global").equals("false")) global = false; int priority = Integer.parseInt(msg.getValue("PriorityClass")); long fileSize = 0; if(msg.getValue("DataLength") != null) fileSize = Long.parseLong(msg.getValue("DataLength")); String filePath=null; if(msg.getValue("Identifier").startsWith(thawId)) filePath = msg.getValue("ClientToken"); FCPClientPut clientPut = new FCPClientPut(msg.getValue("Identifier"), msg.getValue("URI"), // key priority, persistence, global, filePath, msg.getValue("TargetFilename"), "Inserting", 0, fileSize, queueManager); if(queueManager.addQueryToTheRunningQueue(clientPut, false)) queueManager.getQueryManager().addObserver(clientPut); else Logger.info(this, "Already in the running queue"); return; } if(msg.getMessageName().equals("EndListPersistentRequests")) { Logger.info(this, "End Of ListPersistentRequests."); queueManager.getQueryManager().getConnection().unlockWriting(); queueManager.setQueueCompleted(); return; } }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/FCPQueueLoader.java/buggy/src/thaw/fcp/FCPQueueLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
579,
13,
288,
202,
202,
42,
4258,
1079,
1234,
273,
261,
42,
4258,
1079,
13,
891,
31,
202,
202,
430,
12,
3576,
18,
24906,
461,
7675,
14963,
2932,
11906,
967,
6,
3719,
288,
1082,
202,
3328,
18,
1376,
12,
2211,
16,
315,
607,
21249,
628,
11049,
967,
8863,
25083,
202,
474,
9756,
273,
374,
31,
1082,
202,
430,
12,
3576,
18,
24805,
2932,
13182,
559,
20387,
14963,
2932,
266,
7137,
6,
3719,
9506,
202,
24854,
273,
404,
31,
1082,
202,
6494,
2552,
273,
638,
31,
1082,
202,
430,
12,
3576,
18,
24805,
2932,
5160,
20387,
14963,
2932,
5743,
6,
3719,
9506,
202,
6347,
273,
629,
31,
1082,
202,
780,
2929,
1621,
273,
446,
31,
1082,
202,
430,
12,
3576,
18,
24805,
2932,
3004,
20387,
17514,
1190,
12,
451,
2219,
548,
3719,
9506,
202,
10590,
1621,
273,
1234,
18,
24805,
2932,
1227,
1345,
8863,
1082,
202,
474,
4394,
273,
2144,
18,
2670,
1702,
12,
3576,
18,
24805,
2932,
8183,
797,
7923,
1769,
1082,
202,
42,
4258,
1227,
967,
1004,
967,
273,
394,
478,
4258,
1227,
967,
12,
3576,
18,
24805,
2932,
3004,
6,
3631,
6862,
6862,
225,
1234,
18,
24805,
2932,
3098,
6,
3631,
368,
498,
6862,
6862,
225,
4394,
16,
9756,
16,
2552,
16,
6862,
6862,
225,
2929,
1621,
16,
315,
30806,
3113,
374,
16,
6862,
6862,
225,
300,
21,
16,
2389,
1318,
1769,
6862,
6862,
282,
6862,
6862,
26924,
202,
430,
12,
4000,
1318,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
579,
13,
288,
202,
202,
42,
4258,
1079,
1234,
273,
261,
42,
4258,
1079,
13,
891,
31,
202,
202,
430,
12,
3576,
18,
24906,
461,
7675,
14963,
2932,
11906,
967,
6,
3719,
288,
1082,
202,
3328,
18,
1376,
12,
2211,
16,
315,
607,
21249,
628,
11049,
967,
8863,
25083,
202,
474,
9756,
273,
374,
31,
1082,
202,
430,
12,
3576,
18,
24805,
2932,
13182,
559,
20387,
14963,
2932,
266,
7137,
6,
3719,
9506,
202,
24854,
273,
404,
31,
1082,
202,
6494,
2552,
273,
638,
31,
1082,
202,
430,
12,
3576,
18,
24805,
2932,
5160,
20387,
14963,
2932,
5743,
6,
3719,
9506,
202,
6347,
273,
629,
31,
1082,
202,
780,
2
] |
logger.info (target+ " already loaded");
|
logger.debug (target+ " already loaded");
|
protected void createEntityAt(int type, int x, int y) { try { switch(type) { case 1: /* Entry point */ { String entryPoint=new String(x+","+y); addEntryPoint(entryPoint); break; } case 2: /* Zone change */ { String entryPoint=new String(x+","+y); addZoneChange(entryPoint); break; } case 3: /* portal stairs up */ case 4: /* portal stairs down */ { logger.info ("Portal stairs at "+this+": "+x+","+y); Portal portal=new Portal(); assignRPObjectID(portal); portal.setx(x); portal.sety(y); add(portal); addPortal(portal); if(isInterior()) { // The algo doesn't work on interiors return; } for(IRPZone i: world) { StendhalRPZone zone=(StendhalRPZone)i; if(zone.isInterior()==false && Math.abs(zone.getLevel()-getLevel())==1) { if(!zone.contains(portal,this)) { continue; } logger.info (zone+" contains "+portal); for(Portal target: zone.getPortals()) { if(target.loaded()) { logger.info (target+ " already loaded"); continue; } logger.info (target+ " isn't loaded"); if(target.getx()+zone.getx()==portal.getx()+getx() && target.gety()+zone.gety()==portal.gety()+gety()) { int source=assignPortalID(portal); int dest=zone.assignPortalID(target); portal.setDestination(zone.getID().getID(),dest); target.setDestination(getID().getID(),source); logger.info ("Portals LINKED"); logger.info (portal); logger.info (target); return; } else { logger.info ("can't assign because it is a different portal"); } } } } } break; case 5: /* portal */ case 6: /* one way portal */ break; case 11: /* sheep */ break; case 71: /* the npcs */ case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: break; case 91: /* sign */ break; case 92: /* SheepFood */ { SheepFood food=new SheepFood(); assignRPObjectID(food); food.setAmount(5); food.setx(x); food.sety(y); add(food); foodItems.add(food); break; } default: { if (type >= 0) { // get the default EntityManager EntityManager manager = world.getRuleManager().getEntityManager(); // Is the entity a creature if (manager.isCreature(type)) { Creature creature = manager.getCreature(type); RespawnPoint point = new RespawnPoint(x,y,2); point.set(this, creature,1); respawnPoints.add(point); } else { logger.warn("Unknown Entity (type: "+type+") at ("+x+","+y+") found"); } } break; } } } catch(AttributeNotFoundException e) { logger.error("error creating entity "+type+" at ("+x+","+y+")",e); } }
|
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/5a87f9aa8e4c26c43c0804e529c57cd9afb60bf7/StendhalRPZone.java/buggy/src/games/stendhal/server/StendhalRPZone.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
1943,
861,
12,
474,
618,
16,
509,
619,
16,
509,
677,
13,
565,
288,
565,
775,
1377,
288,
1377,
1620,
12,
723,
13,
3639,
288,
3639,
648,
404,
30,
1748,
3841,
1634,
1195,
1850,
288,
1850,
514,
28671,
33,
2704,
514,
12,
92,
15,
15937,
15,
93,
1769,
1850,
527,
1622,
2148,
12,
4099,
2148,
1769,
1850,
898,
31,
1850,
289,
10792,
648,
576,
30,
1748,
10912,
2549,
225,
1195,
1850,
288,
1850,
514,
28671,
33,
2704,
514,
12,
92,
15,
15937,
15,
93,
1769,
1850,
527,
4226,
3043,
12,
4099,
2148,
1769,
1850,
898,
31,
1850,
289,
3639,
648,
890,
30,
1748,
11899,
384,
1826,
87,
731,
225,
1195,
3639,
648,
1059,
30,
1748,
11899,
384,
1826,
87,
2588,
225,
1195,
1850,
288,
1850,
1194,
18,
1376,
7566,
24395,
384,
1826,
87,
622,
13773,
2211,
15,
6877,
13773,
92,
15,
15937,
15,
93,
1769,
1850,
25478,
11899,
33,
2704,
25478,
5621,
1850,
2683,
54,
52,
22359,
12,
24386,
1769,
1850,
11899,
18,
542,
92,
12,
92,
1769,
1850,
11899,
18,
542,
93,
12,
93,
1769,
1850,
527,
12,
24386,
1769,
1850,
527,
24395,
12,
24386,
1769,
1850,
309,
12,
291,
2465,
9659,
10756,
5411,
288,
5411,
368,
1021,
13901,
3302,
1404,
1440,
603,
1554,
77,
1383,
5411,
327,
31,
4766,
565,
289,
10792,
364,
12,
7937,
52,
4226,
277,
30,
9117,
13,
5411,
288,
5411,
934,
409,
22314,
54,
52,
4226,
4157,
28657,
510,
409,
22314,
54,
52,
4226,
13,
77,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
1943,
861,
12,
474,
618,
16,
509,
619,
16,
509,
677,
13,
565,
288,
565,
775,
1377,
288,
1377,
1620,
12,
723,
13,
3639,
288,
3639,
648,
404,
30,
1748,
3841,
1634,
1195,
1850,
288,
1850,
514,
28671,
33,
2704,
514,
12,
92,
15,
15937,
15,
93,
1769,
1850,
527,
1622,
2148,
12,
4099,
2148,
1769,
1850,
898,
31,
1850,
289,
10792,
648,
576,
30,
1748,
10912,
2549,
225,
1195,
1850,
288,
1850,
514,
28671,
33,
2704,
514,
12,
92,
15,
15937,
15,
93,
1769,
1850,
527,
4226,
3043,
12,
4099,
2148,
1769,
1850,
898,
31,
1850,
289,
3639,
648,
890,
30,
1748,
11899,
384,
1826,
87,
731,
225,
1195,
3639,
648,
1059,
30,
1748,
2
] |
.add(sourceCombo, 0, 132, Short.MAX_VALUE)
|
.add(sourceCombo, 0, 136, Short.MAX_VALUE)
|
private void initComponents() { convertCoordinatesGroup = new javax.swing.ButtonGroup(); gpsLoadButton = new javax.swing.JButton(); gpsShowButton = new javax.swing.JButton(); gpsSymbolTextField = new javax.swing.JTextField(); gpsSymbolLabel = new javax.swing.JLabel(); gpsTableLabel = new javax.swing.JLabel(); jScrollPane8 = new javax.swing.JScrollPane(); topPanel = new javax.swing.JPanel(); basicPanel = new javax.swing.JPanel(); jPanel5 = new javax.swing.JPanel(); quadrantLabel = new javax.swing.JLabel(); countryLabel = new javax.swing.JLabel(); territoryNameLabel = new javax.swing.JLabel(); phytNameLabel = new javax.swing.JLabel(); territoryNameCombo = new AutoComboBoxNG3(true); phytNameCombo = new AutoComboBoxNG3(true); phytCountryCombo = new AutoComboBoxNG3(false); quadrantTextField = new javax.swing.JTextField(); townLabel = new javax.swing.JLabel(); //items = new Object[] {"Praha", "Brno", "Turnov", "Trebic"}; townComboBox = new AutoComboBoxNG3(true); jScrollPane2 = new javax.swing.JScrollPane(); descriptionArea = new javax.swing.JTextArea(); placeDescriptionLabel = new javax.swing.JLabel(); gpsPanel = new javax.swing.JPanel(); altitudeLabel = new javax.swing.JLabel(); latitudeLabel = new javax.swing.JLabel(); longitudeLabel = new javax.swing.JLabel(); altitudeTextField = new javax.swing.JTextField(); latitudeTextField = new javax.swing.JTextField(); longitudeTextField = new javax.swing.JTextField(); coordinateSystemLabel = new javax.swing.JLabel(); gpsChangeButton = new javax.swing.JButton(); locationNoteLabel = new javax.swing.JLabel(); jScrollPane4 = new javax.swing.JScrollPane(); locationNoteArea = new javax.swing.JTextArea(); clearLocationButton = new javax.swing.JButton(); jPanel7 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); taxonTextArea = new AutoTextArea(this); taxonLabel = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); monthLabel = new javax.swing.JLabel(); dayLabel = new javax.swing.JLabel(); monthChooser = new com.toedter.calendar.JMonthChooser(); timeLabel = new javax.swing.JLabel(); timeTextField = new javax.swing.JTextField(); dayTextField = new javax.swing.JTextField(); yearLabel = new javax.swing.JLabel(); yearSpinner = new javax.swing.JSpinner(); calendarButton = new javax.swing.JButton(); sourceCombo = new AutoComboBoxNG3(false); sourceLabel = new javax.swing.JLabel(); publicationLabel = new javax.swing.JLabel(); publicationCombo = new AutoComboBoxNG3(true); herbariumTextField = new javax.swing.JTextField(); herbariumLabel = new javax.swing.JLabel(); projectLabel = new javax.swing.JLabel(); projectCombo = new AutoComboBoxNG3(true); checklistButton = new javax.swing.JButton(); jScrollPane5 = new javax.swing.JScrollPane(); occurrenceNoteArea = new javax.swing.JTextArea(); jScrollPane1 = new javax.swing.JScrollPane(); authorTable = new javax.swing.JTable(); occurrenceNoteLabel = new javax.swing.JLabel(); clearOccurrenceButton = new javax.swing.JButton(); buttonPanel = new javax.swing.JPanel(); cancelButton = new javax.swing.JButton(); okButton = new javax.swing.JButton(); helpButton = new javax.swing.JButton(); settingsButton = new javax.swing.JButton(); requiredInfoLabel = new javax.swing.JLabel(); extendedPanel = new javax.swing.JPanel(); jScrollPane6 = new javax.swing.JScrollPane(); occurrenceTable = new javax.swing.JTable(); gpsLoadButton.setText("Load"); gpsShowButton.setText("Show"); gpsSymbolLabel.setText("Symbol:"); gpsTableLabel.setText("GPS table:"); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jScrollPane8.setPreferredSize(new java.awt.Dimension(920, 685)); topPanel.setLayout(new java.awt.BorderLayout()); topPanel.setMinimumSize(new java.awt.Dimension(700, 100)); topPanel.setPreferredSize(new java.awt.Dimension(920, 680)); basicPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.BasicData"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); basicPanel.setMinimumSize(new java.awt.Dimension(600, 0)); basicPanel.setPreferredSize(new java.awt.Dimension(900, 520)); jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(L10n.getString("AddEdit.LocationPanel"))); jPanel5.setPreferredSize(new java.awt.Dimension(914, 500)); quadrantLabel.setText("Quadrant:"); countryLabel.setText("Country:"); territoryNameLabel.setText("Territory name:"); phytNameLabel.setText("Phytochoria name:"); territoryNameCombo.setActionCommand("territoryNameCombo"); phytNameCombo.setActionCommand("phytNameCombo"); phytCountryCombo.setActionCommand("phytCountryCombo"); phytCountryCombo.insertItemAt(model.EMPTY_STRING,0); quadrantTextField.setActionCommand("quadrantTextField"); townLabel.setText("Nearest bigger seat:"); townComboBox.setActionCommand("townComboBox"); descriptionArea.setColumns(20); descriptionArea.setRows(5); descriptionArea.setLineWrap(true); descriptionArea.setWrapStyleWord(true); new TabTransfersFocus(descriptionArea); jScrollPane2.setViewportView(descriptionArea); placeDescriptionLabel.setText("Place description:"); gpsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.GPSPanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10))); altitudeLabel.setText("Altitude:"); latitudeLabel.setText("Latitude:"); longitudeLabel.setText("Longitude:"); altitudeTextField.setNextFocusableComponent(latitudeTextField); latitudeTextField.setNextFocusableComponent(longitudeTextField); coordinateSystemLabel.setText("Coordinate system:"); gpsChangeButton.setText("Change"); org.jdesktop.layout.GroupLayout gpsPanelLayout = new org.jdesktop.layout.GroupLayout(gpsPanel); gpsPanel.setLayout(gpsPanelLayout); gpsPanelLayout.setHorizontalGroup( gpsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(gpsPanelLayout.createSequentialGroup() .addContainerGap() .add(gpsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(gpsPanelLayout.createSequentialGroup() .add(latitudeLabel) .add(4, 4, 4) .add(latitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 153, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(coordinateSystemLabel)) .add(21, 21, 21) .add(gpsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(gpsPanelLayout.createSequentialGroup() .add(longitudeLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(longitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 144, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(gpsChangeButton)) .add(32, 32, 32) .add(altitudeLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(altitudeTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE) .addContainerGap()) ); gpsPanelLayout.linkSize(new java.awt.Component[] {altitudeTextField, latitudeTextField, longitudeTextField}, org.jdesktop.layout.GroupLayout.HORIZONTAL); gpsPanelLayout.setVerticalGroup( gpsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(gpsPanelLayout.createSequentialGroup() .add(gpsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(altitudeLabel) .add(latitudeLabel) .add(latitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(longitudeLabel) .add(longitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(altitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(gpsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(coordinateSystemLabel) .add(gpsChangeButton))) ); locationNoteLabel.setText("Location note:"); locationNoteArea.setColumns(20); locationNoteArea.setRows(5); locationNoteArea.setLineWrap(true); locationNoteArea.setWrapStyleWord(true); new TabTransfersFocus(locationNoteArea); jScrollPane4.setViewportView(locationNoteArea); clearLocationButton.setText("Vyma\u017e"); org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .add(7, 7, 7) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .add(7, 7, 7) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(territoryNameLabel) .add(quadrantLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(org.jdesktop.layout.GroupLayout.LEADING, quadrantTextField) .add(org.jdesktop.layout.GroupLayout.LEADING, territoryNameCombo, 0, 145, Short.MAX_VALUE)) .add(12, 12, 12) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, phytNameLabel) .add(org.jdesktop.layout.GroupLayout.TRAILING, countryLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(phytCountryCombo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(phytNameCombo, 0, 133, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(townLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(townComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(jPanel5Layout.createSequentialGroup() .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .add(gpsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(clearLocationButton)) .add(jPanel5Layout.createSequentialGroup() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .add(placeDescriptionLabel) .add(434, 434, 434)) .add(jPanel5Layout.createSequentialGroup() .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 572, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(locationNoteLabel) .add(jScrollPane4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 286, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(69, 69, 69)) ); jPanel5Layout.linkSize(new java.awt.Component[] {quadrantTextField, territoryNameCombo}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(territoryNameLabel) .add(territoryNameCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(phytNameLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(quadrantLabel) .add(quadrantTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(countryLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(placeDescriptionLabel) .add(locationNoteLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(jPanel5Layout.createSequentialGroup() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(phytNameCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(townLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(townComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(phytCountryCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane4, 0, 0, Short.MAX_VALUE) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 54, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(gpsPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(clearLocationButton)) .addContainerGap()) ); jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(L10n.getString("Occurrence"))); jPanel7.setPreferredSize(new java.awt.Dimension(914, 300)); taxonTextArea.setColumns(20); taxonTextArea.setRows(5); taxonTextArea.setAutoscrolls(false); jScrollPane3.setViewportView(taxonTextArea); taxonLabel.setText("Taxon:"); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.TimePanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); monthLabel.setText("Month:"); dayLabel.setText("Day:"); ((JComboBox)monthChooser.getComboBox()).addItem(""); monthChooser.setLocale(L10n.getCurrentLocale()); timeLabel.setText("Time:"); timeTextField.setNextFocusableComponent(okButton); yearLabel.setText("Year:"); yearSpinner.setValue(2006); ((SpinnerNumberModel)yearSpinner.getModel()).setMinimum(1); calendarButton.setText("Calendar"); org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .add(19, 19, 19) .add(dayLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(dayTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(jPanel4Layout.createSequentialGroup() .addContainerGap() .add(timeLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(timeTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 45, Short.MAX_VALUE))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel4Layout.createSequentialGroup() .add(monthLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(monthChooser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(yearLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(yearSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(calendarButton)) .addContainerGap()) ); jPanel4Layout.linkSize(new java.awt.Component[] {dayTextField, timeTextField}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .add(1, 1, 1) .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(monthLabel) .add(dayLabel) .add(dayTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(6, 6, 6) .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(timeLabel) .add(timeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(jPanel4Layout.createSequentialGroup() .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(yearSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(yearLabel)) .add(monthChooser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(calendarButton))) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); sourceCombo.setActionCommand("sourceCombo"); sourceCombo.insertItemAt(model.EMPTY_STRING,0); sourceLabel.setText("Source:"); publicationLabel.setText("Publication:"); publicationCombo.setActionCommand("publicationCombo"); publicationCombo.insertItemAt(model.EMPTY_PAIR,0); herbariumTextField.setActionCommand("herbariumTextField"); herbariumLabel.setText("Herbarium:"); projectLabel.setText("Project:"); projectCombo.setActionCommand("projectCombo"); checklistButton.setText("Checklist"); occurrenceNoteArea.setColumns(20); occurrenceNoteArea.setRows(5); occurrenceNoteArea.setLineWrap(true); occurrenceNoteArea.setWrapStyleWord(true); new TabTransfersFocus(occurrenceNoteArea); jScrollPane5.setViewportView(occurrenceNoteArea); authorTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(authorTable); occurrenceNoteLabel.setText("Occurrence note:"); clearOccurrenceButton.setText("Vyma\u017e"); org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .addContainerGap() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(taxonLabel) .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .add(checklistButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 232, Short.MAX_VALUE) .add(clearOccurrenceButton)) .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 645, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(sourceLabel) .add(projectLabel) .add(publicationLabel) .add(herbariumLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(herbariumTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE) .add(publicationCombo, 0, 132, Short.MAX_VALUE) .add(projectCombo, 0, 132, Short.MAX_VALUE) .add(jPanel7Layout.createSequentialGroup() .add(sourceCombo, 0, 132, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .add(19, 19, 19)) .add(jPanel7Layout.createSequentialGroup() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(occurrenceNoteLabel) .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap()))) ); jPanel7Layout.linkSize(new java.awt.Component[] {checklistButton, clearOccurrenceButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel7Layout.createSequentialGroup() .add(occurrenceNoteLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(jPanel7Layout.createSequentialGroup() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel7Layout.createSequentialGroup() .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(checklistButton) .add(clearOccurrenceButton))) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) .add(jPanel7Layout.createSequentialGroup() .add(taxonLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 111, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel7Layout.createSequentialGroup() .addContainerGap() .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(sourceLabel) .add(sourceCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(publicationLabel) .add(publicationCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(projectLabel) .add(projectCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(herbariumLabel) .add(herbariumTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 82, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); org.jdesktop.layout.GroupLayout basicPanelLayout = new org.jdesktop.layout.GroupLayout(basicPanel); basicPanel.setLayout(basicPanelLayout); basicPanelLayout.setHorizontalGroup( basicPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(basicPanelLayout.createSequentialGroup() .addContainerGap() .add(basicPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(jPanel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); basicPanelLayout.setVerticalGroup( basicPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(basicPanelLayout.createSequentialGroup() .add(jPanel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 240, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 248, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(103, 103, 103)) ); topPanel.add(basicPanel, java.awt.BorderLayout.NORTH); buttonPanel.setPreferredSize(new java.awt.Dimension(800, 50)); cancelButton.setText("Cancel"); okButton.setText("Ok"); helpButton.setText("Help"); helpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { helpButtonActionPerformed(evt); } }); settingsButton.setText("Nastaven\u00ed"); requiredInfoLabel.setText("requiredInfoLabel"); org.jdesktop.layout.GroupLayout buttonPanelLayout = new org.jdesktop.layout.GroupLayout(buttonPanel); buttonPanel.setLayout(buttonPanelLayout); buttonPanelLayout.setHorizontalGroup( buttonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(buttonPanelLayout.createSequentialGroup() .addContainerGap() .add(helpButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(settingsButton) .add(64, 64, 64) .add(requiredInfoLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 350, Short.MAX_VALUE) .add(okButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelButton) .addContainerGap()) ); buttonPanelLayout.linkSize(new java.awt.Component[] {cancelButton, helpButton, okButton, settingsButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); buttonPanelLayout.setVerticalGroup( buttonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(buttonPanelLayout.createSequentialGroup() .addContainerGap() .add(buttonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(helpButton) .add(settingsButton) .add(cancelButton) .add(okButton) .add(requiredInfoLabel)) .addContainerGap(13, Short.MAX_VALUE)) ); buttonPanelLayout.linkSize(new java.awt.Component[] {cancelButton, helpButton, okButton}, org.jdesktop.layout.GroupLayout.VERTICAL); topPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); extendedPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.ExtendedData"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); extendedPanel.setMinimumSize(new java.awt.Dimension(800, 50)); extendedPanel.setPreferredSize(new java.awt.Dimension(800, 50)); occurrenceTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {"Pampeliska", "Vysockij", "1.1.1900"}, {"Metropolis", "Fritz Lang", "3.7.1927"}, {null, null, null} }, new String [] { "Taxon", "Autor", "Datum" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jScrollPane6.setViewportView(occurrenceTable); org.jdesktop.layout.GroupLayout extendedPanelLayout = new org.jdesktop.layout.GroupLayout(extendedPanel); extendedPanel.setLayout(extendedPanelLayout); extendedPanelLayout.setHorizontalGroup( extendedPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(extendedPanelLayout.createSequentialGroup() .addContainerGap() .add(jScrollPane6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 906, Short.MAX_VALUE) .addContainerGap()) ); extendedPanelLayout.setVerticalGroup( extendedPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(extendedPanelLayout.createSequentialGroup() .add(jScrollPane6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 83, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); topPanel.add(extendedPanel, java.awt.BorderLayout.CENTER); jScrollPane8.setViewportView(topPanel); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 943, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); }// </editor-fold>//GEN-END:initComponents
|
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/4703d85e37a5dd29082c46b0e060981fd7ebf7de/AddEditView.java/clean/trunk/src/net/sf/plantlore/client/overview/AddEditView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
1765,
13431,
1114,
273,
394,
6863,
18,
5328,
310,
18,
3616,
1114,
5621,
3639,
20985,
2563,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
20985,
5706,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
20985,
5335,
16157,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
3639,
20985,
5335,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
20985,
1388,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
525,
26360,
28,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
1760,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
5337,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
17871,
25,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
9474,
6890,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
5251,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
268,
25313,
461,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
1844,
93,
88,
461,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
268,
25313,
461,
16156,
273,
394,
8064,
22199,
4960,
23,
12,
3767,
1769,
3639,
1844,
93,
88,
461,
16156,
273,
394,
8064,
22199,
4960,
23,
12,
3767,
1769,
3639,
1844,
93,
88,
8142,
16156,
273,
394,
8064,
22199,
4960,
23,
12,
5743,
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,
1208,
7171,
1435,
288,
3639,
1765,
13431,
1114,
273,
394,
6863,
18,
5328,
310,
18,
3616,
1114,
5621,
3639,
20985,
2563,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
20985,
5706,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
20985,
5335,
16157,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
3639,
20985,
5335,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
20985,
1388,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
525,
26360,
28,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
1760,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
2
] |
AST tmp1118_AST_in = (AST)_t;
|
AST tmp1119_AST_in = (AST)_t;
|
public final void menu_list_item(AST _t) throws RecognitionException { AST menu_list_item_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST id = null; AST id2 = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MENUITEM: { AST __t506 = _t; AST tmp1102_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getFirstChild(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineSymbol(MENUITEM, id, id)); } { _loop510: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ACCELERATOR: { AST __t508 = _t; AST tmp1103_AST_in = (AST)_t; match(_t,ACCELERATOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t508; _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case DISABLED: { AST tmp1104_AST_in = (AST)_t; match(_t,DISABLED); _t = _t.getNextSibling(); break; } case FONT: { AST __t509 = _t; AST tmp1105_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t509; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case READONLY: { AST tmp1106_AST_in = (AST)_t; match(_t,READONLY); _t = _t.getNextSibling(); break; } case TOGGLEBOX: { AST tmp1107_AST_in = (AST)_t; match(_t,TOGGLEBOX); _t = _t.getNextSibling(); break; } default: { break _loop510; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t506; _t = _t.getNextSibling(); break; } case SUBMENU: { AST __t512 = _t; AST tmp1108_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getFirstChild(); id2 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineSymbol(SUBMENU, id2, id2)); } { _loop515: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISABLED: { AST tmp1109_AST_in = (AST)_t; match(_t,DISABLED); _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case FONT: { AST __t514 = _t; AST tmp1110_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t514; _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } default: { break _loop515; } } } while (true); } if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t512; _t = _t.getNextSibling(); break; } case RULE: { AST __t516 = _t; AST tmp1111_AST_in = (AST)_t; match(_t,RULE); _t = _t.getFirstChild(); { _loop519: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FONT: { AST __t518 = _t; AST tmp1112_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t518; _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } default: { break _loop519; } } } while (true); } _t = __t516; _t = _t.getNextSibling(); break; } case SKIP: { AST tmp1113_AST_in = (AST)_t; match(_t,SKIP); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { boolean synPredMatched523 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==PERIOD))) { AST __t523 = _t; synPredMatched523 = true; inputState.guessing++; try { { AST tmp1114_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RULE: { AST tmp1115_AST_in = (AST)_t; match(_t,RULE); _t = _t.getNextSibling(); break; } case SKIP: { AST tmp1116_AST_in = (AST)_t; match(_t,SKIP); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp1117_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); break; } case MENUITEM: { AST tmp1118_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } } catch (RecognitionException pe) { synPredMatched523 = false; } _t = __t523;inputState.guessing--; } if ( synPredMatched523 ) { AST tmp1119_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); } else if ((_tokenSet_16.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3824,
67,
1098,
67,
1726,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3824,
67,
1098,
67,
1726,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
612,
273,
446,
31,
202,
202,
9053,
612,
22,
273,
446,
31,
9506,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
490,
1157,
57,
12674,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3361,
26,
273,
389,
88,
31,
1082,
202,
9053,
1853,
17506,
22,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
29227,
12674,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
350,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
734,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
6206,
12,
1128,
18,
11255,
5335,
12,
29227,
12674,
16,
612,
16,
612,
10019,
1082,
202,
97,
1082,
202,
95,
1082,
202,
67,
6498,
25,
2163,
30,
1082,
202,
2896,
288,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
9610,
261,
389,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3824,
67,
1098,
67,
1726,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3824,
67,
1098,
67,
1726,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
612,
273,
446,
31,
202,
202,
9053,
612,
22,
273,
446,
31,
9506,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
490,
1157,
57,
12674,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3361,
26,
273,
389,
88,
31,
1082,
202,
9053,
1853,
17506,
22,
2
] |
if (VM.BuildForIA32 && gc.options.FIXED_JTOC) { int jtoc = VM_Magic.objectAsAddress(VM_Magic.getJTOC());
|
if (gc.options.FIXED_JTOC) { int jtoc = VM_Magic.getTocPointer();
|
static void generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_Method meth) throws OPT_MagicNotImplementedException { VM_Atom methodName = meth.getName(); OPT_PhysicalRegisterSet phys = gc.temps.getPhysicalRegisterSet(); if (methodName == VM_MagicNames.getESIAsProcessor) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setESIAsProcessor) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } }else if (methodName == VM_MagicNames.getFramePointer) { gc.allocFrame = true; OPT_RegisterOperand val = gc.temps.makeTempInt(); VM_Field f = (VM_Field)VM.getMember("LVM_Processor;", "framePointer", "I"); OPT_RegisterOperand pr = null; if (VM.dedicatedESI) { pr = OPT_IRTools.R(phys.getESI()); } else { pr = gc.temps.makeTemp(OPT_ClassLoaderProxy.VM_ProcessorType); bc2ir.appendInstruction(Nullary.create(GET_CURRENT_PROCESSOR,pr)); } bc2ir.appendInstruction(GetField.create(GETFIELD, val, pr.copy(), new OPT_LocationOperand(f), new OPT_TrueGuardOperand())); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getJTOC || methodName == VM_MagicNames.getTocPointer) { VM_Type t = (methodName == VM_MagicNames.getJTOC ? OPT_ClassLoaderProxy.IntArrayType : VM_Type.IntType); OPT_RegisterOperand val = gc.temps.makeTemp(t); OPT_RegisterOperand pr = null; if (VM.dedicatedESI) { pr = OPT_IRTools.R(phys.getESI()); } else { pr = gc.temps.makeTemp(OPT_ClassLoaderProxy.VM_ProcessorType); bc2ir.appendInstruction(Nullary.create(GET_CURRENT_PROCESSOR,pr)); } if (VM.BuildForIA32 && gc.options.FIXED_JTOC) { int jtoc = VM_Magic.objectAsAddress(VM_Magic.getJTOC()); OPT_IntConstantOperand I = new OPT_IntConstantOperand(jtoc); bc2ir.appendInstruction(Move.create(REF_MOVE, val, I)); } else { bc2ir.appendInstruction(Unary.create(GET_JTOC, val, pr.copy())); } bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.isync) { // nothing required on Intel } else if (methodName == VM_MagicNames.sync) { // nothing required on Intel } else if (methodName == VM_MagicNames.getThreadId) { OPT_RegisterOperand val = gc.temps.makeTempInt(); OPT_RegisterOperand pr = null; if (VM.dedicatedESI) { pr = OPT_IRTools.R(phys.getESI()); } else { pr = gc.temps.makeTemp(OPT_ClassLoaderProxy.VM_ProcessorType); bc2ir.appendInstruction(Nullary.create(GET_CURRENT_PROCESSOR,pr)); } bc2ir.appendInstruction(Load.create(INT_LOAD, val, pr.copy(), new OPT_IntConstantOperand(VM_Entrypoints.threadIdOffset), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getCallerFramePointer) { OPT_Operand fp = bc2ir.popInt(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCallerFramePointer) { OPT_Operand val = bc2ir.popInt(); OPT_Operand fp = bc2ir.popInt(); bc2ir.appendInstruction(Store.create(INT_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); } else if (methodName == VM_MagicNames.getCompiledMethodID) { OPT_Operand fp = bc2ir.popInt(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_METHOD_ID_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCompiledMethodID) { OPT_Operand val = bc2ir.popInt(); OPT_Operand fp = bc2ir.popInt(); bc2ir.appendInstruction(Store.create(INT_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_METHOD_ID_OFFSET), null)); } else if (methodName == VM_MagicNames.getReturnAddress) { OPT_Operand fp = bc2ir.popInt(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_RETURN_ADDRESS_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setReturnAddress) { OPT_Operand val = bc2ir.popInt(); OPT_Operand fp = bc2ir.popInt(); bc2ir.appendInstruction(Store.create(INT_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_RETURN_ADDRESS_OFFSET), null)); } else if (methodName == VM_MagicNames.sysCall0) { OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(CallSpecial.create0(SYSCALL, op0, ip, null)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCall_L_0) { OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(CallSpecial.create0(SYSCALL, op0, ip, null)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCall_L_I) { OPT_Operand p1 = bc2ir.popInt(); OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(CallSpecial.create1(SYSCALL, op0, ip, null, p1)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCall1) { OPT_Operand p1 = bc2ir.popInt(); OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(CallSpecial.create1(SYSCALL, op0, ip, null, p1)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCall2) { OPT_Operand p2 = bc2ir.popInt(); OPT_Operand p1 = bc2ir.popInt(); OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(CallSpecial.create2(SYSCALL, op0, ip, null, p1, p2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCallAD) { OPT_Operand p2 = bc2ir.popDouble(); OPT_Operand p1 = bc2ir.popInt(); OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(CallSpecial.create2(SYSCALL, op0, ip, null, p1, p2)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCall3) { OPT_Operand p3 = bc2ir.popInt(); OPT_Operand p2 = bc2ir.popInt(); OPT_Operand p1 = bc2ir.popInt(); OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(CallSpecial.create3(SYSCALL, op0, ip, null, p1, p2, p3)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.sysCall4) { OPT_Operand p4 = bc2ir.popInt(); OPT_Operand p3 = bc2ir.popInt(); OPT_Operand p2 = bc2ir.popInt(); OPT_Operand p1 = bc2ir.popInt(); OPT_Operand ip = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(CallSpecial.create4(SYSCALL, op0, ip, null, p1, p2, p3, p4)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.roundToZero) { bc2ir.appendInstruction(Empty.create(ROUND_TO_ZERO)); } else if (methodName == VM_MagicNames.clearFloatingPointState) { bc2ir.appendInstruction(Empty.create(CLEAR_FLOATING_POINT_STATE)); } else { // Distinguish between magics that we know we don't implement // (and never plan to implement) and those (usually new ones) // that we want to be warned that we don't implement. String msg = " Magic method not implemented: " + meth; if (methodName == VM_MagicNames.returnToNewStack || methodName == VM_MagicNames.pragmaNoOptCompile) { throw OPT_MagicNotImplementedException.EXPECTED(msg); } else { throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/6a2b597a0fcb1402f84eb6d46ed570d596fb227e/OPT_GenerateMachineSpecificMagic.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/OPT_GenerateMachineSpecificMagic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
4697,
565,
16456,
67,
13842,
1042,
8859,
16,
4697,
565,
8251,
67,
1305,
7917,
13,
377,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
565,
16456,
67,
18136,
3996,
694,
24758,
273,
8859,
18,
874,
1121,
18,
588,
18136,
3996,
694,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
588,
41,
2320,
1463,
5164,
13,
288,
1377,
16456,
67,
3996,
10265,
721,
84,
273,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
5621,
1377,
6533,
22,
481,
18,
3355,
16709,
2656,
8921,
12,
1764,
1769,
1377,
6533,
22,
481,
18,
6206,
12,
1764,
1769,
565,
289,
469,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
542,
41,
2320,
1463,
5164,
13,
288,
1377,
16456,
67,
10265,
1244,
273,
6533,
22,
481,
18,
5120,
1957,
5621,
1377,
309,
261,
1125,
1276,
16456,
67,
3996,
10265,
13,
288,
202,
13459,
22,
481,
18,
6923,
11983,
12,
7607,
18,
2640,
12,
10771,
67,
16537,
16,
9944,
565,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
9334,
9944,
565,
1244,
10019,
1377,
289,
469,
288,
202,
780,
1234,
273,
315,
9649,
9886,
8251,
67,
19289,
18,
542,
5164,
3996,
14432,
202,
12849,
16456,
67,
19289,
1248,
8644,
503,
18,
2124,
27409,
12,
3576,
1769,
1377,
289,
565,
289,
12107,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
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,
282,
760,
918,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
4697,
565,
16456,
67,
13842,
1042,
8859,
16,
4697,
565,
8251,
67,
1305,
7917,
13,
377,
1216,
16456,
67,
19289,
1248,
8644,
503,
288,
565,
8251,
67,
3641,
4918,
273,
7917,
18,
17994,
5621,
565,
16456,
67,
18136,
3996,
694,
24758,
273,
8859,
18,
874,
1121,
18,
588,
18136,
3996,
694,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
588,
41,
2320,
1463,
5164,
13,
288,
1377,
16456,
67,
3996,
10265,
721,
84,
273,
8859,
18,
874,
1121,
18,
6540,
3373,
84,
5621,
1377,
6533,
22,
481,
18,
3355,
16709,
2656,
8921,
12,
1764,
1769,
1377,
6533,
22,
481,
18,
2
] |
return ;
|
public void implementsClause() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( ( 'implements' identifier ( COMMA identifier )* )? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( 'implements' identifier ( COMMA identifier )* )? { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( 'implements' identifier ( COMMA identifier )* )? int alt14=2; int LA14_0 = input.LA(1); if ( LA14_0==92 ) { alt14=1; } else if ( LA14_0==LCURLY ) { alt14=2; } else { NoViableAltException nvae = new NoViableAltException("169:17: ( \'implements\' identifier ( COMMA identifier )* )?", 14, 0, input); throw nvae; } switch (alt14) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:25: 'implements' identifier ( COMMA identifier )* { match(input,92,FOLLOW_92_in_implementsClause514); following.push(FOLLOW_identifier_in_implementsClause516); identifier(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:49: ( COMMA identifier )* loop13: do { int alt13=2; int LA13_0 = input.LA(1); if ( LA13_0==COMMA ) { alt13=1; } switch (alt13) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:51: COMMA identifier { match(input,COMMA,FOLLOW_COMMA_in_implementsClause520); following.push(FOLLOW_identifier_in_implementsClause522); identifier(); following.pop(); } break; default : break loop13; } } while (true); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
327,
274,
327,
274,
327,
274,
327,
274,
1071,
2463,
274,
918,
2463,
274,
4792,
7044,
1435,
2463,
274,
1216,
2463,
274,
9539,
2463,
274,
288,
2463,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
775,
2463,
274,
288,
2463,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
368,
2463,
274,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
26035,
30,
4033,
30,
2463,
274,
261,
2463,
274,
261,
2463,
274,
296,
17061,
4565,
20922,
274,
2756,
2463,
274,
261,
2463,
274,
17373,
2463,
274,
2756,
2463,
274,
8618,
2463,
274,
7851,
2463,
274,
262,
2463,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
368,
2463,
274,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
26035,
30,
4033,
30,
2463,
274,
261,
2463,
274,
296,
17061,
4565,
20922,
274,
2756,
2463,
274,
261,
2463,
274,
17373,
2463,
274,
2756,
2463,
274,
8618,
2463,
274,
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,
327,
274,
327,
274,
327,
274,
327,
274,
1071,
2463,
274,
918,
2463,
274,
4792,
7044,
1435,
2463,
274,
1216,
2463,
274,
9539,
2463,
274,
288,
2463,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
775,
2463,
274,
288,
2463,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
327,
274,
368,
2463,
274,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
6290,
18,
75,
30,
26035,
30,
2
] |
|
case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop);
|
} case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop);
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
if (targetResource != null) {
|
if (targetResource != null && resourceData != null) {
|
protected boolean updateSelection(IStructuredSelection selection) { if (!super.updateSelection(selection)) return false; // clipboard must have resources or files ResourceTransfer resTransfer = ResourceTransfer.getInstance(); IResource[] resourceData = (IResource[])clipboard.getContents(resTransfer); FileTransfer fileTransfer = FileTransfer.getInstance(); String[] fileData = (String[])clipboard.getContents(fileTransfer); if (resourceData == null && fileData == null) return false; // can paste an open project regardless of selection if (resourceData != null && resourceData[0].getType() == IResource.PROJECT && ((IProject)resourceData[0]).isOpen()) return true; // can paste files and folders to a single selection (project must be open) // or multiple file selection with the same parent if (getSelectedNonResources().size() > 0) return false; List selectedResources = getSelectedResources(); IResource targetResource = null; if (selectedResources.size() == 1) { targetResource = (IResource)selectedResources.get(0); if (targetResource instanceof IProject && !((IProject)targetResource).isOpen()) return false; } else if (selectedResources.size() > 1) { for (int i = 0; i < selectedResources.size(); i++) { IResource resource = (IResource)selectedResources.get(i); if (resource.getType() != IResource.FILE) return false; if (targetResource == null) targetResource = resource.getParent(); else if (!targetResource.equals(resource.getParent())) return false; } } if (targetResource != null) { // don't try to copy to self for (int i = 0; i < resourceData.length; i++) { if (targetResource.equals(resourceData[i])) return false; } } return true;}
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7283baaead08c9feccf4328ecb028cd4eceb6d70/PasteAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/navigator/PasteAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1250,
1089,
6233,
12,
45,
30733,
6233,
4421,
13,
288,
202,
430,
16051,
9565,
18,
2725,
6233,
12,
10705,
3719,
3196,
202,
2463,
629,
31,
202,
202,
759,
20304,
1297,
1240,
2703,
578,
1390,
202,
1420,
5912,
400,
5912,
273,
2591,
5912,
18,
588,
1442,
5621,
202,
45,
1420,
8526,
1058,
751,
273,
261,
45,
1420,
63,
5717,
14161,
3752,
18,
588,
6323,
12,
455,
5912,
1769,
202,
812,
5912,
585,
5912,
273,
1387,
5912,
18,
588,
1442,
5621,
202,
780,
8526,
23111,
273,
261,
780,
63,
5717,
14161,
3752,
18,
588,
6323,
12,
768,
5912,
1769,
202,
430,
261,
3146,
751,
422,
446,
597,
23111,
422,
446,
13,
202,
202,
2463,
629,
31,
202,
759,
848,
19401,
392,
1696,
1984,
15255,
434,
4421,
202,
430,
261,
3146,
751,
480,
446,
3196,
202,
10,
10,
1058,
751,
63,
20,
8009,
588,
559,
1435,
422,
467,
1420,
18,
17147,
202,
202,
10,
10,
14015,
45,
4109,
13,
3146,
751,
63,
20,
65,
2934,
291,
3678,
10756,
202,
202,
2463,
638,
31,
202,
759,
848,
19401,
1390,
471,
9907,
358,
279,
2202,
4421,
261,
4406,
1297,
506,
1696,
13,
202,
759,
578,
3229,
585,
4421,
598,
326,
1967,
982,
202,
430,
261,
588,
7416,
3989,
3805,
7675,
1467,
1435,
405,
374,
13,
3196,
202,
2463,
629,
31,
202,
682,
3170,
3805,
273,
16625,
3805,
5621,
202,
45,
1420,
1018,
1420,
273,
446,
31,
202,
430,
261,
8109,
3805,
18,
1467,
1435,
422,
404,
13,
288,
202,
202,
3299,
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,
1250,
1089,
6233,
12,
45,
30733,
6233,
4421,
13,
288,
202,
430,
16051,
9565,
18,
2725,
6233,
12,
10705,
3719,
3196,
202,
2463,
629,
31,
202,
202,
759,
20304,
1297,
1240,
2703,
578,
1390,
202,
1420,
5912,
400,
5912,
273,
2591,
5912,
18,
588,
1442,
5621,
202,
45,
1420,
8526,
1058,
751,
273,
261,
45,
1420,
63,
5717,
14161,
3752,
18,
588,
6323,
12,
455,
5912,
1769,
202,
812,
5912,
585,
5912,
273,
1387,
5912,
18,
588,
1442,
5621,
202,
780,
8526,
23111,
273,
261,
780,
63,
5717,
14161,
3752,
18,
588,
6323,
12,
768,
5912,
1769,
202,
430,
261,
3146,
751,
422,
446,
597,
23111,
422,
446,
13,
202,
202,
2463,
629,
31,
202,
759,
848,
19401,
2
] |
rootNode.add(paths, 0, value);
|
getRootNode(key).add(paths, 0, value);
|
public synchronized void put(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; put(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); rootNode.add(paths, 0, value); }
|
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/8b28367f3d02883cf080ff31666143b5bf11ce2d/DestinationMap.java/clean/activemq-core/src/main/java/org/apache/activemq/filter/DestinationMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1378,
12,
3896,
9682,
5683,
498,
16,
1033,
460,
13,
288,
3639,
309,
261,
856,
18,
291,
9400,
10756,
288,
5411,
8857,
9682,
5683,
8526,
20456,
273,
498,
18,
588,
9400,
27992,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
20456,
18,
2469,
31,
277,
27245,
288,
7734,
8857,
9682,
5683,
1151,
5683,
273,
20456,
63,
77,
15533,
7734,
1378,
12,
3624,
5683,
16,
460,
1769,
5411,
289,
5411,
327,
31,
3639,
289,
3639,
514,
8526,
2953,
273,
498,
18,
588,
5683,
4466,
5621,
3639,
7656,
907,
12,
856,
2934,
1289,
12,
4481,
16,
374,
16,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1378,
12,
3896,
9682,
5683,
498,
16,
1033,
460,
13,
288,
3639,
309,
261,
856,
18,
291,
9400,
10756,
288,
5411,
8857,
9682,
5683,
8526,
20456,
273,
498,
18,
588,
9400,
27992,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
20456,
18,
2469,
31,
277,
27245,
288,
7734,
8857,
9682,
5683,
1151,
5683,
273,
20456,
63,
77,
15533,
7734,
1378,
12,
3624,
5683,
16,
460,
1769,
5411,
289,
5411,
327,
31,
3639,
289,
3639,
514,
8526,
2953,
273,
498,
18,
588,
5683,
4466,
5621,
3639,
7656,
907,
12,
856,
2934,
1289,
12,
4481,
16,
374,
16,
460,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
s = replace(TOO_MANY_CONNECTIONS, "{CONNS}", Integer.toString(conns));
|
s = replace(TOO_MANY_CONNECTIONS, "\\{CONNS\\}", Integer.toString(conns));
|
public String getText() { String s; int disconnected = peers - conns; if(peers == 0) { if(n.isTestnetEnabled()) return NO_PEERS_TESTNET; else return NO_PEERS_DARKNET; } else if(conns == 0) { return NO_CONNS; } else if(conns == 1) { return ONE_CONN; } else if(conns == 2) { return TWO_CONNS; } else if(neverConn > MAX_NEVER_CONNECTED_PEER_ALERT_THRESHOLD) { s = replace(NEVER_CONN_TEXT, "{NEVER_CONN}", Integer.toString(neverConn)); } else if((peers - conns) > MAX_DISCONN_PEER_ALERT_THRESHOLD){ s = replace(DISCONNECTED, "{DISCONNECTED}", Integer.toString(disconnected)); } else if(conns > MAX_CONN_ALERT_THRESHOLD) { s = replace(TOO_MANY_CONNECTIONS, "{CONNS}", Integer.toString(conns)); } else if(peers > MAX_PEER_ALERT_THRESHOLD) { s = replace(TOO_MANY_PEERS, "{PEERS}", Integer.toString(peers)); } else if(n.bwlimitDelayAlertRelevant && (bwlimitDelayTime > Node.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) { s = replace(TOO_HIGH_BWLIMITDELAYTIME, "{BWLIMIT_DELAY_TIME}", Integer.toString(bwlimitDelayTime)); // FIXME I'm not convinced about the next one! } else if(n.nodeAveragePingAlertRelevant && (nodeAveragePingTime > Node.MAX_NODE_AVERAGE_PING_TIME_ALERT_THRESHOLD)) { s = replace(TOO_HIGH_PING, "{PING_TIME}", Integer.toString(bwlimitDelayTime)); } else if(oldestNeverConnectedPeerAge > MAX_OLDEST_NEVER_CONNECTED_PEER_AGE_ALERT_THRESHOLD) { s = NEVER_CONNECTED_TWO_WEEKS; } else throw new IllegalArgumentException("Not valid"); return s; }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/28a46f35660692dcdfcd4b918eded109fffdff3e/PeerManagerUserAlert.java/buggy/src/freenet/node/useralerts/PeerManagerUserAlert.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
474,
17853,
273,
10082,
300,
18976,
31,
202,
202,
430,
12,
30502,
422,
374,
13,
288,
1082,
202,
430,
12,
82,
18,
291,
4709,
2758,
1526,
10756,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
16961,
14843,
31,
1082,
202,
12107,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
40,
9584,
14843,
31,
3196,
202,
97,
469,
309,
12,
591,
2387,
422,
374,
13,
288,
1082,
202,
2463,
3741,
67,
2248,
3156,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
404,
13,
288,
1082,
202,
2463,
15623,
67,
27733,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
576,
13,
288,
1082,
202,
2463,
24722,
51,
67,
2248,
3156,
31,
202,
202,
97,
469,
309,
12,
4644,
502,
3543,
405,
4552,
67,
5407,
2204,
67,
29011,
67,
1423,
654,
67,
1013,
11539,
67,
23840,
13,
288,
1082,
202,
87,
273,
1453,
12,
5407,
2204,
67,
27733,
67,
5151,
16,
4144,
5407,
2204,
67,
27733,
1532,
16,
2144,
18,
10492,
12,
4644,
502,
3543,
10019,
202,
202,
97,
469,
309,
12443,
30502,
300,
18976,
13,
405,
4552,
67,
13498,
27733,
67,
1423,
654,
67,
1013,
11539,
67,
23840,
15329,
1082,
202,
87,
273,
1453,
12,
13498,
29011,
16,
4144,
13498,
29011,
1532,
16,
2144,
18,
10492,
12,
2251,
8537,
10019,
202,
202,
97,
469,
309,
12,
591,
2387,
405,
4552,
67,
27733,
67,
1013,
11539,
67,
23840,
13,
288,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
474,
17853,
273,
10082,
300,
18976,
31,
202,
202,
430,
12,
30502,
422,
374,
13,
288,
1082,
202,
430,
12,
82,
18,
291,
4709,
2758,
1526,
10756,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
16961,
14843,
31,
1082,
202,
12107,
9506,
202,
2463,
3741,
67,
1423,
11367,
67,
40,
9584,
14843,
31,
3196,
202,
97,
469,
309,
12,
591,
2387,
422,
374,
13,
288,
1082,
202,
2463,
3741,
67,
2248,
3156,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
404,
13,
288,
1082,
202,
2463,
15623,
67,
27733,
31,
202,
202,
97,
469,
309,
12,
591,
2387,
422,
576,
13,
288,
1082,
2
] |
FileUtil.copyContents(this, src, dst, true, getConf()); return fullyDelete(src); } else return src.renameTo(dst);
|
return FileUtil.copy(this, src, this, dst, true, getConf()); } else return pathToFile(src).renameTo(pathToFile(dst));
|
public boolean renameRaw(File src, File dst) throws IOException { src = makeAbsolute(src); dst = makeAbsolute(dst); if (useCopyForRename) { FileUtil.copyContents(this, src, dst, true, getConf()); return fullyDelete(src); } else return src.renameTo(dst); }
|
49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/ee01fef4b4fb82c7492a4a747793839a4d14cd39/LocalFileSystem.java/clean/src/java/org/apache/hadoop/fs/LocalFileSystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6472,
4809,
12,
812,
1705,
16,
1387,
3046,
13,
1216,
1860,
288,
3639,
1705,
273,
1221,
10368,
12,
4816,
1769,
3639,
3046,
273,
1221,
10368,
12,
11057,
1769,
3639,
309,
261,
1202,
2951,
1290,
16019,
13,
288,
5411,
1387,
1304,
18,
3530,
6323,
12,
2211,
16,
1705,
16,
3046,
16,
638,
16,
28836,
10663,
5411,
327,
7418,
2613,
12,
4816,
1769,
3639,
289,
469,
327,
1705,
18,
18539,
774,
12,
11057,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
6472,
4809,
12,
812,
1705,
16,
1387,
3046,
13,
1216,
1860,
288,
3639,
1705,
273,
1221,
10368,
12,
4816,
1769,
3639,
3046,
273,
1221,
10368,
12,
11057,
1769,
3639,
309,
261,
1202,
2951,
1290,
16019,
13,
288,
5411,
1387,
1304,
18,
3530,
6323,
12,
2211,
16,
1705,
16,
3046,
16,
638,
16,
28836,
10663,
5411,
327,
7418,
2613,
12,
4816,
1769,
3639,
289,
469,
327,
1705,
18,
18539,
774,
12,
11057,
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
] |
case 139: { match(139);
|
case 141: { match(141);
|
public final void stepExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST stepExpr_AST = null; boolean synPredMatched185 = false; if (((_tokenSet_6.member(LA(1))))) { int _m185 = mark(); synPredMatched185 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_text: { match(LITERAL_text); break; } case LITERAL_node: { match(LITERAL_node); break; } case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case LITERAL_comment: { match(LITERAL_comment); break; } case 139: { match(139); break; } case 140: { match(140); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LPAREN); } } catch (RecognitionException pe) { synPredMatched185 = false; } rewind(_m185); inputState.guessing--; } if ( synPredMatched185 ) { axisStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched188 = false; if (((_tokenSet_7.member(LA(1))))) { int _m188 = mark(); synPredMatched188 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case LITERAL_text: { match(LITERAL_text); break; } case LITERAL_document: { match(LITERAL_document); break; } case 139: { match(139); break; } case LITERAL_comment: { match(LITERAL_comment); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LCURLY); } } catch (RecognitionException pe) { synPredMatched188 = false; } rewind(_m188); inputState.guessing--; } if ( synPredMatched188 ) { filterStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched191 = false; if (((_tokenSet_7.member(LA(1))))) { int _m191 = mark(); synPredMatched191 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case 139: { match(139); break; } case LITERAL_namespace: { match(LITERAL_namespace); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } qName(); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched191 = false; } rewind(_m191); inputState.guessing--; } if ( synPredMatched191 ) { filterStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched194 = false; if (((_tokenSet_7.member(LA(1))))) { int _m194 = mark(); synPredMatched194 = true; inputState.guessing++; try { { switch ( LA(1)) { case DOLLAR: { match(DOLLAR); break; } case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case LITERAL_document: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case LITERAL_collection: case LITERAL_preceding: { { qName(); match(LPAREN); } break; } case SELF: { match(SELF); break; } case LPAREN: { match(LPAREN); break; } case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { literal(); break; } case XML_COMMENT: { match(XML_COMMENT); break; } case LT: { match(LT); break; } case XML_PI: { match(XML_PI); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } catch (RecognitionException pe) { synPredMatched194 = false; } rewind(_m194); inputState.guessing--; } if ( synPredMatched194 ) { filterStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_6.member(LA(1)))) { axisStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } }}} returnAST = stepExpr_AST; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2235,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
2235,
4742,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
30489,
273,
629,
31,
202,
202,
430,
261,
12443,
67,
2316,
694,
67,
26,
18,
5990,
12,
2534,
12,
21,
3719,
20349,
288,
1082,
202,
474,
389,
81,
30489,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
30489,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
95,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
9506,
202,
3593,
511,
18454,
67,
955,
30,
9506,
202,
95,
6862,
202,
1916,
12,
23225,
67,
955,
1769,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
3593,
511,
18454,
67,
2159,
30,
9506,
202,
95,
6862,
202,
1916,
12,
23225,
67,
2159,
1769,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
3593,
511,
18454,
67,
2956,
30,
9506,
202,
95,
6862,
202,
1916,
12,
23225,
67,
2956,
1769,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
3593,
511,
18454,
67,
4589,
30,
9506,
202,
95,
6862,
202,
1916,
12,
23225,
67,
4589,
1769,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
3593,
511,
18454,
67,
3469,
30,
9506,
202,
95,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2235,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
2235,
4742,
67,
9053,
273,
446,
31,
9506,
202,
6494,
6194,
10391,
15400,
30489,
273,
629,
31,
202,
202,
430,
261,
12443,
67,
2316,
694,
67,
26,
18,
5990,
12,
2534,
12,
21,
3719,
20349,
288,
1082,
202,
474,
389,
81,
30489,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
30489,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
2
] |
if (data != null && data.length() != 0) { xmlInputSource.setCharacterStream( new StringReader(data));
|
else if (data != null && data.length() != 0) { xmlInputSource.setCharacterStream(new StringReader(data));
|
public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, IOException { // resolve entity using DOM entity resolver if (fEntityResolver != null) { // For entity resolution the type of the resource would be XML TYPE // DOM L3 LS spec mention only the XML 1.0 recommendation right now LSInput inputSource = resourceIdentifier == null ? fEntityResolver.resolveResource( null, null, null, null, null) : fEntityResolver.resolveResource( getType(resourceIdentifier), resourceIdentifier.getNamespace(), resourceIdentifier.getPublicId(), resourceIdentifier.getLiteralSystemId(), resourceIdentifier.getBaseSystemId()); if (inputSource != null) { String publicId = inputSource.getPublicId(); String systemId = inputSource.getSystemId(); String baseSystemId = inputSource.getBaseURI(); InputStream byteStream = inputSource.getByteStream(); Reader charStream = inputSource.getCharacterStream(); String encoding = inputSource.getEncoding(); String data = inputSource.getStringData(); XMLInputSource xmlInputSource = new XMLInputSource(publicId, systemId, baseSystemId); if (charStream != null) { xmlInputSource.setCharacterStream(charStream); } if (byteStream != null) { xmlInputSource.setByteStream((InputStream) byteStream); } if (data != null && data.length() != 0) { xmlInputSource.setCharacterStream( new StringReader(data)); } xmlInputSource.setEncoding(encoding); return xmlInputSource; } } // unable to resolve entity return null; } // resolveEntity(String,String,String):XMLInputSource
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/5c3cd2e1a390c78e3744a0b8e07e070771fa1c99/DOMEntityResolverWrapper.java/buggy/src/org/apache/xerces/util/DOMEntityResolverWrapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3167,
1210,
1830,
2245,
1943,
12,
4201,
1420,
3004,
1058,
3004,
13,
3639,
1216,
1139,
50,
45,
503,
16,
1860,
288,
3639,
368,
2245,
1522,
1450,
4703,
1522,
5039,
3639,
309,
261,
74,
1943,
4301,
480,
446,
13,
288,
5411,
368,
2457,
1522,
7861,
326,
618,
434,
326,
1058,
4102,
506,
225,
3167,
3463,
5411,
368,
4703,
511,
23,
29204,
857,
15823,
1338,
326,
3167,
404,
18,
20,
10519,
18782,
2145,
2037,
5411,
29204,
1210,
810,
1830,
273,
7734,
1058,
3004,
422,
446,
10792,
692,
284,
1943,
4301,
18,
10828,
1420,
12,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
13,
10792,
294,
284,
1943,
4301,
18,
10828,
1420,
12,
13491,
3130,
12,
3146,
3004,
3631,
13491,
1058,
3004,
18,
588,
3402,
9334,
13491,
1058,
3004,
18,
588,
4782,
548,
9334,
13491,
1058,
3004,
18,
588,
6177,
3163,
548,
9334,
13491,
1058,
3004,
18,
588,
2171,
3163,
548,
10663,
5411,
309,
261,
2630,
1830,
480,
446,
13,
288,
7734,
514,
1071,
548,
273,
810,
1830,
18,
588,
4782,
548,
5621,
7734,
514,
30083,
273,
810,
1830,
18,
588,
3163,
548,
5621,
7734,
514,
1026,
3163,
548,
273,
810,
1830,
18,
588,
2171,
3098,
5621,
7734,
5037,
1160,
1228,
273,
810,
1830,
18,
588,
3216,
1228,
5621,
7734,
5393,
1149,
1228,
273,
810,
1830,
18,
588,
7069,
1228,
5621,
7734,
514,
2688,
273,
810,
1830,
18,
588,
4705,
5621,
7734,
514,
501,
273,
810,
1830,
18,
588,
780,
751,
5621,
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,
3167,
1210,
1830,
2245,
1943,
12,
4201,
1420,
3004,
1058,
3004,
13,
3639,
1216,
1139,
50,
45,
503,
16,
1860,
288,
3639,
368,
2245,
1522,
1450,
4703,
1522,
5039,
3639,
309,
261,
74,
1943,
4301,
480,
446,
13,
288,
5411,
368,
2457,
1522,
7861,
326,
618,
434,
326,
1058,
4102,
506,
225,
3167,
3463,
5411,
368,
4703,
511,
23,
29204,
857,
15823,
1338,
326,
3167,
404,
18,
20,
10519,
18782,
2145,
2037,
5411,
29204,
1210,
810,
1830,
273,
7734,
1058,
3004,
422,
446,
10792,
692,
284,
1943,
4301,
18,
10828,
1420,
12,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
16,
13491,
446,
13,
10792,
294,
284,
1943,
4301,
18,
10828,
1420,
12,
13491,
2
] |
public org.quickfix.field.InterestAccrualDate getInterestAccrualDate() throws FieldNotFound { org.quickfix.field.InterestAccrualDate value = new org.quickfix.field.InterestAccrualDate();
|
public quickfix.field.InterestAccrualDate getInterestAccrualDate() throws FieldNotFound { quickfix.field.InterestAccrualDate value = new quickfix.field.InterestAccrualDate();
|
public org.quickfix.field.InterestAccrualDate getInterestAccrualDate() throws FieldNotFound { org.quickfix.field.InterestAccrualDate value = new org.quickfix.field.InterestAccrualDate(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RFQRequest.java/buggy/src/java/src/quickfix/fix44/RFQRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
8973,
86,
1462,
1626,
336,
29281,
8973,
86,
1462,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
8973,
86,
1462,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
8973,
86,
1462,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
8973,
86,
1462,
1626,
336,
29281,
8973,
86,
1462,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
8973,
86,
1462,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
29281,
8973,
86,
1462,
1626,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.