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 |
|---|---|---|---|---|---|---|
String[] checkedServiceNames = Settings.propDataServicesForUpdate.getStringArray(); | String[] checkedServiceNames = Settings.propDataServicesForUpdate .getStringArray(); | public UpdateDlg(JFrame parent, boolean modal) { super(parent,modal); String msg; mResult =CANCEL; JPanel contentPane=(JPanel)getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); this.setTitle(mLocalizer.msg("dlgTitle", "TV data update")); JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING)); buttonPanel.setBorder(BorderFactory.createEmptyBorder(10,0,0,0)); mUpdateBtn =new JButton(mLocalizer.msg("updateNow", "Update now")); mUpdateBtn.addActionListener(this); buttonPanel.add(mUpdateBtn); getRootPane().setDefaultButton(mUpdateBtn); mCancelBtn =new JButton(mLocalizer.msg("cancel", "Cancel")); mCancelBtn.addActionListener(this); buttonPanel.add(mCancelBtn); contentPane.add(buttonPanel,BorderLayout.SOUTH); JPanel northPanel=new JPanel(); northPanel.setLayout(new BoxLayout(northPanel,BoxLayout.Y_AXIS)); JPanel panel1=new JPanel(new BorderLayout(7,0)); msg = mLocalizer.msg("period", "Update program for"); panel1.add(new JLabel(msg), BorderLayout.WEST); mComboBox = new JComboBox(PeriodItem.PERIOD_ARR); panel1.add(mComboBox,BorderLayout.EAST); northPanel.add(panel1); TvDataServiceProxy[] serviceArr = TvDataServiceProxyManager.getInstance().getDataServices(); if (serviceArr.length>1) { panel1.setBorder(BorderFactory.createEmptyBorder(0,0,10,0)); JPanel dataServicePanel = new JPanel(); dataServicePanel.setLayout(new BoxLayout(dataServicePanel, BoxLayout.Y_AXIS)); dataServicePanel.setBorder(BorderFactory.createTitledBorder("Diese Datenquellen verwenden:")); mDataServiceCbArr = new TvDataServiceCheckBox[serviceArr.length]; String[] checkedServiceNames = Settings.propDataServicesForUpdate.getStringArray(); for (int i=0; i<serviceArr.length; i++) { mDataServiceCbArr[i] = new TvDataServiceCheckBox(serviceArr[i]); mDataServiceCbArr[i].setSelected(tvDataServiceIsChecked(serviceArr[i], checkedServiceNames)); dataServicePanel.add(mDataServiceCbArr[i]); } JPanel p = new JPanel(new BorderLayout()); p.add(dataServicePanel,BorderLayout.CENTER); northPanel.add(p); } msg = mLocalizer.msg("rememberSettings", "Remember settings"); mCheckBox =new JCheckBox(msg); JPanel panel2=new JPanel(new BorderLayout()); panel2.setBorder(BorderFactory.createEmptyBorder(10,0,0,0)); int period = Settings.propDownloadPeriod.getInt(); PeriodItem pi = new PeriodItem(period); mComboBox.setSelectedItem(pi); panel2.add(mCheckBox,BorderLayout.WEST); northPanel.add(panel2); contentPane.add(northPanel,BorderLayout.NORTH); } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/602109e188ddce89573f6841d6ad0c3ecea53b5d/UpdateDlg.java/buggy/tvbrowser/src/tvbrowser/ui/mainframe/UpdateDlg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2315,
40,
23623,
12,
46,
3219,
982,
16,
1250,
13010,
13,
288,
565,
2240,
12,
2938,
16,
17638,
1769,
565,
514,
1234,
31,
565,
312,
1253,
273,
25268,
31,
565,
24048,
913,
8485,
2865... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2315,
40,
23623,
12,
46,
3219,
982,
16,
1250,
13010,
13,
288,
565,
2240,
12,
2938,
16,
17638,
1769,
565,
514,
1234,
31,
565,
312,
1253,
273,
25268,
31,
565,
24048,
913,
8485,
2865... |
Map configMap = runnable.getTestConfig( ); if ( ParameterAccessor.isDesigner( request ) && configMap.containsKey( paramName ) ) | if ( paramValueObj != null ) | protected Object getParamValueObject( HttpServletRequest request, ParameterDefinition parameterObj ) throws ReportServiceException { String paramName = parameterObj.getName( ); String format = parameterObj.getDisplayFormat( ); Object paramValueObj = super .getParamValueObject( request, parameterObj ); if ( paramValueObj != null ) return paramValueObj; // Get config map IReportRunnable runnable; try { runnable = ReportEngineService.getInstance( ).openReportDesign( reportDesignName ); } catch ( EngineException e ) { throw new ReportServiceException( e.getLocalizedMessage( ) ); } Map configMap = runnable.getTestConfig( ); if ( ParameterAccessor.isDesigner( request ) && configMap.containsKey( paramName ) ) { // Get value from test config String configValue = (String) configMap.get( paramName ); ReportParameterConverter cfgConverter = new ReportParameterConverter( format, Locale.US ); return cfgConverter .parse( configValue, parameterObj.getDataType( ) ); } else return super.getParamValueObject( request, parameterObj ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/8c77650efa032790dbe5bbac79919e0aeee9870a/ViewerAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
9027,
620,
921,
12,
9984,
590,
16,
1082,
202,
1662,
1852,
1569,
2675,
262,
1216,
8706,
15133,
202,
95,
202,
202,
780,
11466,
273,
1569,
2675,
18,
17994,
12,
11272,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
9027,
620,
921,
12,
9984,
590,
16,
1082,
202,
1662,
1852,
1569,
2675,
262,
1216,
8706,
15133,
202,
95,
202,
202,
780,
11466,
273,
1569,
2675,
18,
17994,
12,
11272,
202,
... |
public int getQuadrant(); | int getQuadrant(); | public int getQuadrant(); | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/a297187e15e126ff43dd26baec639fdcfb8b5f3e/QuadrantPanel.java/buggy/src_new/org/argouml/application/api/QuadrantPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
24483,
6890,
5621,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
24483,
6890,
5621,
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,
-... |
} } | if (jj_scan_token(RBRACE)) return true; | final private boolean jj_3R_284() { Token xsp; xsp = jj_scanpos; if (jj_3R_298()) { jj_scanpos = xsp; if (jj_3R_299()) { jj_scanpos = xsp; if (jj_3R_300()) { jj_scanpos = xsp; if (jj_3R_301()) return true; } } } return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3e3034d7566b0047ef2bf5af2e29ce51f94a2d2e/JavaParser.java/buggy/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,
5193,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5540,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
22,
5193,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5540,
28... |
int [] currInstList = instOfCent[i]; | int[] currInstList = instOfCent[i]; | public void buildClusterer(Instances data) throws Exception { // can clusterer handle the data? getCapabilities().testWithFail(data); m_NumSplits = 0; m_NumSplitsDone = 0; m_NumSplitsStillDone = 0; // replace missing values m_ReplaceMissingFilter = new ReplaceMissingValues(); m_ReplaceMissingFilter.setInputFormat(data); m_Instances = Filter.useFilter(data, m_ReplaceMissingFilter); // initialize random function Random random0 = new Random(m_Seed); // num of clusters to start with m_NumClusters = m_MinNumClusters; // set distance function to default if (m_DistanceF == null) { m_DistanceF = new EuclideanDistance(); } m_DistanceF.setInstances(m_Instances); checkInstances(); if (m_DebugVektorsFile != null) initDebugVektorsInput(); // make list of indexes for m_Instances int [] allInstList = new int[m_Instances.numInstances()]; for (int i = 0; i < m_Instances.numInstances(); i++) { allInstList[i] = i; } // set model used (just for convenience) m_Model = new Instances(m_Instances, 0); // produce the starting centers if (m_CenterInput != null) { // read centers from file m_ClusterCenters = new Instances(m_CenterInput); m_NumClusters = m_ClusterCenters.numInstances(); } else // makes the first centers randomly m_ClusterCenters = makeCentersRandomly(random0, m_Instances, m_NumClusters); PFD(D_FOLLOWSPLIT, "\n*** Starting centers "); for (int k = 0; k < m_ClusterCenters.numInstances(); k++) { PFD(D_FOLLOWSPLIT, "Center " + k + ": " + m_ClusterCenters.instance(k)); } PrCentersFD(D_PRINTCENTERS); boolean finished = false; Instances children; // builds up a KDTree if (m_KDTree != null) { m_KDTree.setInstances(m_Instances); } // loop counter of main loop m_IterationCount = 0; /** * "finished" does get true as soon as: * 1. number of clusters gets >= m_MaxClusters, * 2. in the last round, none of the centers have been split * * if number of clusters is already >= m_MaxClusters * part 1 (= Improve-Params) is done at least once. */ while (!finished && !stopIteration(m_IterationCount, m_MaxIterations)) { /* ==================================================================== * 1. Improve-Params * conventional K-means */ PFD(D_FOLLOWSPLIT, "\nBeginning of main loop - centers:"); PrCentersFD(D_FOLLOWSPLIT); PFD(D_ITERCOUNT, "\n*** 1. Improve-Params " + m_IterationCount + ". time"); m_IterationCount++; // prepare to converge boolean converged = false; // initialize assignments to -1 m_ClusterAssignments = initAssignments(m_Instances.numInstances()); // stores a list of indexes of instances belonging to each center int [][] instOfCent = new int[m_ClusterCenters.numInstances()][]; // KMeans loop counter int kMeansIteration = 0; // converge in conventional K-means ---------------------------------- PFD(D_FOLLOWSPLIT, "\nConverge in K-Means:"); while (!converged && !stopKMeansIteration(kMeansIteration, m_MaxKMeans)) { kMeansIteration++; converged = true; // assign instances to centers ------------------------------------- converged = assignToCenters(m_KDTree, m_ClusterCenters, instOfCent, allInstList, m_ClusterAssignments, kMeansIteration); PFD(D_FOLLOWSPLIT, "\nMain loop - Assign - centers:"); PrCentersFD(D_FOLLOWSPLIT); // compute new centers = centers of mass of points converged = recomputeCenters(m_ClusterCenters, // clusters instOfCent, // their instances m_Model); // model information PFD(D_FOLLOWSPLIT, "\nMain loop - Recompute - centers:"); PrCentersFD(D_FOLLOWSPLIT); } PFD(D_FOLLOWSPLIT, ""); PFD(D_FOLLOWSPLIT, "End of Part: 1. Improve-Params - conventional K-means"); /** ===================================================================== * 2. Improve-Structur */ // BIC before split distortioning the centres m_Mle = distortion(instOfCent, m_ClusterCenters); m_Bic = calculateBIC(instOfCent, m_ClusterCenters, m_Mle); PFD(D_FOLLOWSPLIT, "m_Bic " + m_Bic); int currNumCent = m_ClusterCenters.numInstances(); Instances splitCenters = new Instances(m_ClusterCenters, currNumCent * 2); // store BIC values of parent and children double [] pbic = new double [currNumCent]; double [] cbic = new double [currNumCent]; // split each center for (int i = 0; i < currNumCent // this could help to optimize the algorithm // && currNumCent + numSplits <= m_MaxNumClusters ; i++) { PFD(D_FOLLOWSPLIT, "\nsplit center " + i + " " + m_ClusterCenters.instance(i)); Instance currCenter = m_ClusterCenters.instance(i); int [] currInstList = instOfCent[i]; int currNumInst = instOfCent[i].length; // not enough instances; than continue with next if (currNumInst <= 2) { pbic[i] = Double.MAX_VALUE; cbic[i] = 0.0; // add center itself as dummy splitCenters.add(currCenter); splitCenters.add(currCenter); continue; } // split centers ---------------------------------------------- double variance = m_Mle[i] / (double)currNumInst; children = splitCenter(random0, currCenter, variance, m_Model); // initialize assignments to -1 int[] oneCentAssignments = initAssignments(currNumInst); int[][] instOfChCent = new int [2][]; // todo maybe split didn't work // converge the children -------------------------------------- converged = false; int kMeansForChildrenIteration = 0; PFD(D_FOLLOWSPLIT, "\nConverge, K-Means for children: " + i); while (!converged && !stopKMeansIteration(kMeansForChildrenIteration, m_MaxKMeansForChildren)) { kMeansForChildrenIteration++; converged = assignToCenters(children, instOfChCent, currInstList, oneCentAssignments); if (!converged) { recomputeCentersFast(children, instOfChCent, m_Model); } } // store new centers for later decision if they are taken splitCenters.add(children.instance(0)); splitCenters.add(children.instance(1)); PFD(D_FOLLOWSPLIT, "\nconverged cildren "); PFD(D_FOLLOWSPLIT, " " + children.instance(0)); PFD(D_FOLLOWSPLIT, " " + children.instance(1)); // compare parent and children model by their BIC-value pbic[i] = calculateBIC(currInstList, currCenter, m_Mle[i], m_Model); double [] chMLE = distortion(instOfChCent, children); cbic[i] = calculateBIC(instOfChCent, children, chMLE); } // end of loop over clusters // decide which one to split and make new list of cluster centers Instances newClusterCenters = null; newClusterCenters = newCentersAfterSplit(pbic, cbic, m_CutOffFactor, splitCenters); /** * Compare with before Improve-Structure */ int newNumClusters = newClusterCenters.numInstances(); if (newNumClusters != m_NumClusters) { PFD(D_FOLLOWSPLIT, "Compare with non-split"); // initialize assignments to -1 int [] newClusterAssignments = initAssignments(m_Instances.numInstances()); // stores a list of indexes of instances belonging to each center int [][] newInstOfCent = new int[newClusterCenters.numInstances()][]; // assign instances to centers ------------------------------------- converged = assignToCenters(m_KDTree, newClusterCenters, newInstOfCent, allInstList, newClusterAssignments, m_IterationCount); double [] newMle = distortion(newInstOfCent, newClusterCenters); double newBic = calculateBIC(newInstOfCent, newClusterCenters, newMle); PFD(D_FOLLOWSPLIT, "newBic " + newBic); if (newBic > m_Bic) { PFD(D_FOLLOWSPLIT, "*** decide for new clusters"); m_Bic = newBic; m_ClusterCenters = newClusterCenters; m_ClusterAssignments = newClusterAssignments; } else { PFD(D_FOLLOWSPLIT, "*** keep old clusters"); } } newNumClusters = m_ClusterCenters.numInstances(); // decide if finished: max num cluster reached // or last centers where not split at all if ((newNumClusters >= m_MaxNumClusters) || (newNumClusters == m_NumClusters)) { finished = true; } m_NumClusters = newNumClusters; } } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/4e4a4a425cc1c0879dd2367e425d0fc335e7547c/XMeans.java/clean/weka/clusterers/XMeans.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
3629,
264,
12,
5361,
501,
13,
1216,
1185,
288,
565,
368,
848,
2855,
264,
1640,
326,
501,
35,
565,
29092,
5756,
7675,
3813,
1190,
3754,
12,
892,
1769,
565,
312,
67,
2578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
3629,
264,
12,
5361,
501,
13,
1216,
1185,
288,
565,
368,
848,
2855,
264,
1640,
326,
501,
35,
565,
29092,
5756,
7675,
3813,
1190,
3754,
12,
892,
1769,
565,
312,
67,
2578... |
_t = __t1501; | _t = __t1502; | public final void inputoutputthroughstate(AST _t) throws RecognitionException { AST inputoutputthroughstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1501 = _t; AST tmp922_AST_in = (AST)_t; match(_t,INPUTOUTPUT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case THROUGH: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp923_AST_in = (AST)_t; match(_t,THROUGH); _t = _t.getNextSibling(); io_phrase(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
810,
2844,
10064,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
810,
2844,
10064,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
810,
2844,
10064,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
810,
2844,
10064,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
... |
PrintWriter out = BagFormatter.openUTF8Writer(options[DESTDIR].value, "by_type\\by_type.css"); | PrintWriter out = BagFormatter.openUTF8Writer(options[DESTDIR].value, "by_type" + File.separator + "by_type.css"); | private void writeStyleSheet() throws IOException { PrintWriter out = BagFormatter.openUTF8Writer(options[DESTDIR].value, "by_type\\by_type.css"); out.println(".head { font-weight:bold; background-color:#DDDDFF }"); out.println("td, th { border: 1px solid #0000FF; text-align }"); out.println("th { width:10% }"); out.println(".nodata { background-color:#FF0000 }"); out.println("table {margin-top: 1em}"); out.close(); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6bc578f078e96e734184556dab09979e658632c1/GenerateSidewaysView.java/buggy/tools/java/org/unicode/cldr/icu/GenerateSidewaysView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1045,
2885,
8229,
1435,
1216,
1860,
288,
5411,
14071,
596,
273,
31711,
5074,
18,
3190,
5159,
28,
2289,
12,
2116,
63,
1639,
882,
4537,
8009,
1132,
16,
315,
1637,
67,
723,
6,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
918,
1045,
2885,
8229,
1435,
1216,
1860,
288,
5411,
14071,
596,
273,
31711,
5074,
18,
3190,
5159,
28,
2289,
12,
2116,
63,
1639,
882,
4537,
8009,
1132,
16,
315,
1637,
67,
723,
6,
3... |
catch (Exception e) { | catch (Throwable t) { | protected void service(HttpServletRequest request, HttpServletResponse response) { RSACUtils.startServletRequest(request, response, rsacbeanlocator, RSACUtils.HTTP_SERVLET_FACTORY); try { rsacbeanlocator.getBeanLocator().locateBean("rootHandlerBean"); } catch (Exception e) { // Catch and log this here because Tomcat's stack rendering is // non-standard and crummy. Logger.log.error("Error servicing RSAC request: ", e); } finally { rsacbeanlocator.endRequest(); } } | 29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/dd34a03d670f49fc2560896f9515c17865d86554/ReasonableSpringServlet.java/clean/rsf-core/core/src/uk/org/ponder/rsf/servlet/ReasonableSpringServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1156,
12,
2940,
18572,
590,
16,
1377,
12446,
766,
13,
288,
565,
14746,
2226,
1989,
18,
1937,
18572,
12,
2293,
16,
766,
16,
3597,
1077,
14496,
20048,
16,
3639,
14746,
2226,
1989... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1156,
12,
2940,
18572,
590,
16,
1377,
12446,
766,
13,
288,
565,
14746,
2226,
1989,
18,
1937,
18572,
12,
2293,
16,
766,
16,
3597,
1077,
14496,
20048,
16,
3639,
14746,
2226,
1989... |
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) | public Component getListCellRendererComponent( JList list, Object value, // value to display int index, // cell index boolean isSelected, // is the cell selected boolean cellHasFocus) // the list and the cell have the focus { if (!(value instanceof HistoryItem)) { _label.setText("non HistoryItem"); return _label; } HistoryItem hi = (HistoryItem) value; String s = hi.getHeadline(); _label.setText(s); _label.setBackground(isSelected ? MetalLookAndFeel.getTextHighlightColor() : MetalLookAndFeel.getWindowBackground()); _label.setForeground(isSelected ? MetalLookAndFeel.getHighlightedTextColor() : MetalLookAndFeel.getUserTextColor()); if (hi instanceof HistoryItemManipulation) { _label.setIcon(_ManipIcon); } else if (hi instanceof org.argouml.cognitive.critics.HistoryItemCritique) { _label.setIcon(_CritiqueIcon); } else if (hi instanceof HistoryItemResolve) { _label.setIcon(_ResolveIcon); } else { _label.setIcon(_HistoryItemIcon); } return _label; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/TabHistory.java/buggy/src_new/org/argouml/ui/TabHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
10033,
4020,
6747,
1841,
12,
6862,
1082,
225,
804,
682,
666,
16,
6862,
1082,
225,
1033,
460,
16,
5411,
368,
460,
358,
2562,
6862,
1082,
225,
509,
770,
16,
9079,
368,
2484,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
10033,
4020,
6747,
1841,
12,
6862,
1082,
225,
804,
682,
666,
16,
6862,
1082,
225,
1033,
460,
16,
5411,
368,
460,
358,
2562,
6862,
1082,
225,
509,
770,
16,
9079,
368,
2484,
7... |
sortByCompletedAction = new SortByAction(this,"sortByCompleted", 1); | sortByCompletedAction = new SortByAction(this,"sortByCompleted", 1); | void makeActions() { // goto gotoTaskAction = new GotoTaskAction(this, "gotoFile"); //$NON-NLS-1$ gotoTaskAction.setText(TaskListMessages.getString("GotoTask.text")); //$NON-NLS-1$ gotoTaskAction.setToolTipText(TaskListMessages.getString("GotoTask.tooltip")); //$NON-NLS-1$ gotoTaskAction.setHoverImageDescriptor(MarkerUtil.getImageDescriptor("gotoobj")); //$NON-NLS-1$ gotoTaskAction.setImageDescriptor(MarkerUtil.getImageDescriptor("gotoobj_grey")); //$NON-NLS-1$ gotoTaskAction.setEnabled(false); // new task newTaskAction = new NewTaskAction(this, "newTask"); //$NON-NLS-1$ newTaskAction.setText(TaskListMessages.getString("NewTask.text")); //$NON-NLS-1$ newTaskAction.setToolTipText(TaskListMessages.getString("NewTask.tooltip")); //$NON-NLS-1$ newTaskAction.setHoverImageDescriptor(MarkerUtil.getImageDescriptor("addtsk")); //$NON-NLS-1$ newTaskAction.setImageDescriptor(MarkerUtil.getImageDescriptor("addtsk_grey")); //$NON-NLS-1$ newTaskAction.setDisabledImageDescriptor(MarkerUtil.getImageDescriptor("addtsk_disabled")); //$NON-NLS-1$ // copy task copyTaskAction = new CopyTaskAction(this, "copy"); //$NON-NLS-1$ copyTaskAction.setText(TaskListMessages.getString("CopyTask.text")); //$NON-NLS-1$ copyTaskAction.setToolTipText(TaskListMessages.getString("CopyTask.tooltip")); //$NON-NLS-1$ copyTaskAction.setHoverImageDescriptor(MarkerUtil.getImageDescriptor("copy")); //$NON-NLS-1$ copyTaskAction.setEnabled(false); // paste task pasteTaskAction = new PasteTaskAction(this, "paste"); //$NON-NLS-1$ pasteTaskAction.setText(TaskListMessages.getString("PasteTask.text")); //$NON-NLS-1$ pasteTaskAction.setToolTipText(TaskListMessages.getString("PasteTask.tooltip")); //$NON-NLS-1$ pasteTaskAction.setHoverImageDescriptor(MarkerUtil.getImageDescriptor("paste")); //$NON-NLS-1$ pasteTaskAction.setEnabled(false); // remove task removeTaskAction = new RemoveTaskAction(this, "delete"); //$NON-NLS-1$ removeTaskAction.setText(TaskListMessages.getString("RemoveTask.text")); //$NON-NLS-1$ removeTaskAction.setToolTipText(TaskListMessages.getString("RemoveTask.tooltip")); //$NON-NLS-1$ removeTaskAction.setHoverImageDescriptor(MarkerUtil.getImageDescriptor("remtsk")); //$NON-NLS-1$ removeTaskAction.setImageDescriptor(MarkerUtil.getImageDescriptor("remtsk_grey")); //$NON-NLS-1$ removeTaskAction.setDisabledImageDescriptor(MarkerUtil.getImageDescriptor("remtsk_disabled")); //$NON-NLS-1$ removeTaskAction.setEnabled(false); //mark completed task markCompletedAction = new MarkCompletedAction(this,"markCompleted"); //$NON-NLS-1$ markCompletedAction.setText(TaskListMessages.getString("MarkCompleted.text")); //$NON-NLS-1$ markCompletedAction.setToolTipText(TaskListMessages.getString("MarkCompleted.tooltip")); //$NON-NLS-1$ markCompletedAction.setEnabled(false); //delete completed task purgeCompletedAction = new PurgeCompletedAction(this, "deleteCompleted"); //$NON-NLS-1$ purgeCompletedAction.setText(TaskListMessages.getString("PurgeCompleted.text")); //$NON-NLS-1$ purgeCompletedAction.setToolTipText(TaskListMessages.getString("PurgeCompleted.tooltip")); //$NON-NLS-1$ purgeCompletedAction.setImageDescriptor(MarkerUtil.getImageDescriptor("delete_edit")); //$NON-NLS-1$ purgeCompletedAction.setEnabled(true); // select all selectAllAction = new SelectAllTasksAction(this, "selectAll"); //$NON-NLS-1$ selectAllAction.setText(TaskListMessages.getString("SelectAll.text")); //$NON-NLS-1$ selectAllAction.setToolTipText(TaskListMessages.getString("SelectAll.tooltip")); //$NON-NLS-1$ // resolutions resolveMarkerAction = new ResolveMarkerAction(this, "resolve"); //$NON-NLS-1$ resolveMarkerAction.setText(TaskListMessages.getString("Resolve.text")); //$NON-NLS-1$ resolveMarkerAction.setToolTipText(TaskListMessages.getString("Resolve.tooltip")); //$NON-NLS-1$ resolveMarkerAction.setEnabled(false); // Sort by -> sortByCategoryAction = new SortByAction(this,"sortByCategory", 0); sortByCategoryAction.setText(TaskListMessages.getString("SortByCategory.text")); //$NON-NLS-1$ sortByCategoryAction.setToolTipText(TaskListMessages.getString("SortByCategory.tooltip")); //$NON-NLS-1$ sortByCompletedAction = new SortByAction(this,"sortByCompleted", 1); sortByCompletedAction.setText(TaskListMessages.getString("SortByCompleted.text")); //$NON-NLS-1$ sortByCompletedAction.setToolTipText(TaskListMessages.getString("SortByCompleted.tooltip")); //$NON-NLS-1$ sortByPriorityAction = new SortByAction(this,"sortByPriority", 2); sortByPriorityAction.setText(TaskListMessages.getString("SortByPriority.text")); //$NON-NLS-1$ sortByPriorityAction.setToolTipText(TaskListMessages.getString("SortByPriority.tooltip")); //$NON-NLS-1$ sortByDescriptionAction = new SortByAction(this,"sortByDescription", 3); sortByDescriptionAction.setText(TaskListMessages.getString("SortByDescription.text")); //$NON-NLS-1$ sortByDescriptionAction.setToolTipText(TaskListMessages.getString("SortByDescription.tooltip")); //$NON-NLS-1$ sortByResourceAction = new SortByAction(this,"sortByResource", 4); sortByResourceAction.setText(TaskListMessages.getString("SortByResource.text")); //$NON-NLS-1$ sortByResourceAction.setToolTipText(TaskListMessages.getString("SortByResource.tooltip")); //$NON-NLS-1$ sortByContainerAction = new SortByAction(this,"sortByContainer", 5); sortByContainerAction.setText(TaskListMessages.getString("SortByContainer.text")); //$NON-NLS-1$ sortByContainerAction.setToolTipText(TaskListMessages.getString("SortByContainer.tooltip")); //$NON-NLS-1$ sortByLocationAction = new SortByAction(this,"sortByLocation", 6); sortByLocationAction.setText(TaskListMessages.getString("SortByLocation.text")); //$NON-NLS-1$ sortByLocationAction.setToolTipText(TaskListMessages.getString("SortByLocation.tooltip")); //$NON-NLS-1$ sortByCreationTimeAction = new SortByAction(this,"sortByCreationTime", 7); sortByCreationTimeAction.setText(TaskListMessages.getString("SortByCreationTime.text")); //$NON-NLS-1$ sortByCreationTimeAction.setToolTipText(TaskListMessages.getString("SortByCreationTime.tooltip")); //$NON-NLS-1$ sortAscendingAction = new SortDirectionAction(this, "sortAscending", false); sortAscendingAction.setText(TaskListMessages.getString("SortAscending.text")); sortAscendingAction.setToolTipText(TaskListMessages.getString("SortAscending.tooltip")); sortDescendingAction = new SortDirectionAction(this, "sortDescending", true); sortDescendingAction.setText(TaskListMessages.getString("SortDescending.text")); sortDescendingAction.setToolTipText(TaskListMessages.getString("SortDescending.tooltip")); // filters... filtersAction = new FiltersAction(this, "filter"); //$NON-NLS-1$ filtersAction.setText(TaskListMessages.getString("Filters.text")); //$NON-NLS-1$ filtersAction.setToolTipText(TaskListMessages.getString("Filters.tooltip")); //$NON-NLS-1$ filtersAction.setImageDescriptor(MarkerUtil.getImageDescriptor("filter")); //$NON-NLS-1$ // properties propertiesAction = new TaskPropertiesAction(this, "properties"); //$NON-NLS-1$ propertiesAction.setText(TaskListMessages.getString("Properties.text")); //$NON-NLS-1$ propertiesAction.setToolTipText(TaskListMessages.getString("Properties.tooltip")); //$NON-NLS-1$ propertiesAction.setEnabled(false);} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/54661dcc7060d0253c4241b88e7ff8a9aaca2920/TaskList.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/TaskList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
1221,
6100,
1435,
288,
202,
759,
2897,
202,
75,
6302,
2174,
1803,
273,
394,
611,
6302,
2174,
1803,
12,
2211,
16,
315,
75,
6302,
812,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
75,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1221,
6100,
1435,
288,
202,
759,
2897,
202,
75,
6302,
2174,
1803,
273,
394,
611,
6302,
2174,
1803,
12,
2211,
16,
315,
75,
6302,
812,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
75,
63... |
logMissingRule(vc, ArchiveConstants.EJBJAR_DD_SHORT_NAME); | logMissingRule(vc, J2EEConstants.EJBJAR_DD_SHORT_NAME); | public void fullValidate(IEJBValidationContext vc) throws ValidationException { removeOldMessages(vc, null, null); // null == no IFileDelta, null = don't track targets EJBJar ejbJar = (EJBJar)vc.loadModel(EJBValidatorModelEnum.EJB_MODEL); if(ejbJar == null) { // Log, add "Cannot validate" to task list, and return. // EJBProjectResources will already have logged the problem. IMessage mssg = vc.getMessage(); mssg.setId(IEJBValidatorMessageConstants.CHKJ2905); vc.addMessage(mssg); return; } Object id = EJBValidationRuleFactory.getFactory().getRuleId(vc, ArchiveConstants.EJBJAR_DD_SHORT_NAME); if(id == null) { // Log, add "Cannot validate" to task list, and return. logMissingRule(vc, ArchiveConstants.EJBJAR_DD_SHORT_NAME); return; } IValidationRule ejbJarRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); if(ejbJarRule == null) { logMissingRule(vc, id); return; } run(ejbJarRule, null, ejbJar); // true= full validation List beans = ejbJar.getEnterpriseBeans(); Iterator iterator = beans.iterator(); id = null; while(iterator.hasNext()) { EnterpriseBean bean = (EnterpriseBean)iterator.next(); JavaClass[] classes = getJavaClass(bean); for(int i=0; i<classes.length; i++) { JavaClass clazz = classes[i]; id = EJBValidationRuleFactory.getFactory().getRuleId(vc, clazz, bean); IValidationRule clazzRule = EJBValidationRuleFactory.getFactory().getRule(vc, id); if(clazzRule == null) { // This has already been logged by the AbstractEJBValidationRuleFactory (if it's // an error - this is expected if the key is a primitive primary key). continue; } run(clazzRule, bean, clazz); // true = full validation } } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/EJBValidator.java/buggy/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1983,
4270,
12,
8732,
8877,
4354,
1042,
12802,
13,
1216,
15614,
288,
202,
202,
4479,
7617,
5058,
12,
4227,
16,
446,
16,
446,
1769,
368,
446,
422,
1158,
467,
812,
9242,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1983,
4270,
12,
8732,
8877,
4354,
1042,
12802,
13,
1216,
15614,
288,
202,
202,
4479,
7617,
5058,
12,
4227,
16,
446,
16,
446,
1769,
368,
446,
422,
1158,
467,
812,
9242,
16... |
if(index >= frames.length) { | if (index >= frames.length) { | void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); int returnValue = -1; if(cmd.equals("Cut") || cmd.equals("Copy") || cmd.equals("Paste")) { JInternalFrame f = getSelectedFrame(); if(f != null && f instanceof ActionListener) { ((ActionListener)f).actionPerformed(e); } } else if(cmd.equals("Step Over")) { returnValue = STEP_OVER; } else if(cmd.equals("Step Into")) { returnValue = STEP_INTO; } else if(cmd.equals("Step Out")) { returnValue = STEP_OUT; } else if(cmd.equals("Go")) { returnValue = GO; } else if(cmd.equals("Break")) { doBreak(); } else if(cmd.equals("Run to Cursor")) { returnValue = RUN_TO_CURSOR; } else if(cmd.equals("Exit")) { Exit(); } else if(cmd.equals("Open")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't compile scripts: no scope available", "Open", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to compile"); if(fileName != null) { new Thread(new OpenFile(this, scope, fileName)).start(); } } } else if(cmd.equals("Load")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't run scripts: no scope available", "Run", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to execute"); if(fileName != null) { new Thread(new LoadFile(this, scope, fileName)).start(); } } } else if(cmd.equals("More Windows...")) { MoreWindows dlg = new MoreWindows(this, fileWindows, "Window", "Files"); dlg.showDialog(this); } else if(cmd.equals("Console")) { if(console.isIcon()) { desk.getDesktopManager().deiconifyFrame(console); } console.show(); desk.getDesktopManager().activateFrame(console); console.consoleTextArea.requestFocus(); } else if(cmd.equals("Cut")) { } else if(cmd.equals("Copy")) { } else if(cmd.equals("Paste")) { } else if(cmd.equals("Go to function...")) { FindFunction dlg = new FindFunction(this, functionMap, "Go to function", "Function"); dlg.showDialog(this); } else if(cmd.equals("Tile")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int rows, cols; rows = cols = (int)Math.sqrt(count); if(rows*cols < count) { cols++; if(rows * cols < count) { rows++; } } Dimension size = desk.getSize(); int w = size.width/cols; int h = size.height/rows; int x = 0; int y = 0; for(int i = 0; i < rows; i++) { for(int j = 0; j < cols; j++) { int index = (i*cols) + j; if(index >= frames.length) { break; } JInternalFrame f = frames[index]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); x += w; } y += h; x = 0; } } else if(cmd.equals("Cascade")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int x, y, w, h; x = y = 0; h = desk.getHeight(); int d = h / count; if(d > 30) d = 30; for(int i = count -1; i >= 0; i--, x += d, y += d) { JInternalFrame f = frames[i]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } Dimension dimen = f.getPreferredSize(); w = dimen.width; h = dimen.height; desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); } } else { Object obj = getFileWindow(cmd); if(obj != null) { FileWindow w = (FileWindow)obj; try { if(w.isIcon()) { w.setIcon(false); } w.setVisible(true); w.moveToFront(); w.setSelected(true); } catch(Exception exc) { } } } if(returnValue != -1) { if(currentWindow != null) currentWindow.setPosition(-1); synchronized(monitor) { this.returnValue = returnValue; monitor.notify(); } } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747... |
public abstract String getMessage(String code, Object[] args); | public abstract String getMessage(String[] code, Object[] args); | public abstract String getMessage(String code, Object[] args); | 29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/41901109804339483a9ae85fa0b13537c2e8f978/MessageLocator.java/clean/rsf-core/ponderutilcore/src/uk/org/ponder/errorutil/MessageLocator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
514,
2381,
12,
780,
981,
16,
1033,
8526,
833,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
514,
2381,
12,
780,
981,
16,
1033,
8526,
833,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public byte[] read(int len) throws SQLException { // This is the original method, where the entire block (len bytes) // is retrieved in one go. FastpathArg args[] = new FastpathArg[2]; args[0] = new FastpathArg(fd); args[1] = new FastpathArg(len); return fp.getData("loread",args); // This version allows us to break this down into 4k blocks //if(len<=4048) { //// handle as before, return the whole block in one go //FastpathArg args[] = new FastpathArg[2]; //args[0] = new FastpathArg(fd); //args[1] = new FastpathArg(len); //return fp.getData("loread",args); //} else { //// return in 4k blocks //byte[] buf=new byte[len]; //int off=0; //while(len>0) { //int bs=4048; //len-=bs; //if(len<0) { //bs+=len; //len=0; //} //read(buf,off,bs); //off+=bs; //} //return buf; //} } | 47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/8439a83d84fb159a790ed2b6d14d4151b9890857/LargeObject.java/buggy/src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
855,
12,
474,
562,
13,
1216,
6483,
565,
288,
202,
759,
1220,
353,
326,
2282,
707,
16,
1625,
326,
7278,
1203,
261,
1897,
1731,
13,
202,
759,
353,
10295,
316,
1245,
1960... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
855,
12,
474,
562,
13,
1216,
6483,
565,
288,
202,
759,
1220,
353,
326,
2282,
707,
16,
1625,
326,
7278,
1203,
261,
1897,
1731,
13,
202,
759,
353,
10295,
316,
1245,
1960... | ||
new String[] {"", "delta"}); | new String[] {"delta"}); | public void testChildrenOfExcludedDirectory() { if (!loginSuceeded) { return; } if (!changeRemoteDir(remoteTmpDir)) { return; } getProject().executeTarget("children-of-excluded-dir-setup"); FTP.FTPDirectoryScanner ds = myFTPTask.newScanner(ftp); ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setExcludes(new String[] {"alpha/**"}); ds.setFollowSymlinks(false); ds.scan(); compareFiles(ds, new String[] {"delta/delta.xml"}, new String[] {"", "delta"}); ds = myFTPTask.newScanner(ftp); if (!changeRemoteDir(remoteTmpDir)) { return; } ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setExcludes(new String[] {"alpha"}); ds.setFollowSymlinks(false); ds.scan(); compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml", "delta/delta.xml"}, new String[] {"", "alpha/beta", "alpha/beta/gamma", "delta"}); } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/f897eebfa0f5311ea1560b0fad30e08022812a83/FTPTest.java/clean/src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4212,
951,
16461,
2853,
1435,
288,
3639,
309,
16051,
5819,
55,
3965,
2830,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
16051,
3427,
5169,
1621,
12,
7222,
9161,
1621,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4212,
951,
16461,
2853,
1435,
288,
3639,
309,
16051,
5819,
55,
3965,
2830,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
16051,
3427,
5169,
1621,
12,
7222,
9161,
1621,
37... |
index++; | private void paintChildrenWithOverlap(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the rectangles that need to be painted for each child component. // We push on this list arrays that have the Rectangles to be painted as // the first elements and the component to be painted as the last one. // Later we go through that list in reverse order and paint the rectangles. ArrayList paintRegions = new ArrayList(children.length); ArrayList paintRectangles = new ArrayList(); ArrayList newPaintRects = new ArrayList(); paintRectangles.add(g.getClipBounds()); ArrayList componentRectangles = new ArrayList(); // Go through children from top to bottom and find out their paint // rectangles. int index = 0; while (paintRectangles.size() > 0 && index < children.length) { Component comp = children[index]; if (! comp.isVisible()) continue; Rectangle compBounds = comp.getBounds(); boolean isOpaque = comp instanceof JComponent && ((JComponent) comp).isOpaque(); // Add all the current paint rectangles that intersect with the // component to the component's paint rectangle array. for (int i = paintRectangles.size() - 1; i >= 0; i--) { Rectangle r = (Rectangle) paintRectangles.get(i); if (r.intersects(compBounds)) { Rectangle compRect = r.intersection(compBounds); componentRectangles.add(compRect); // If the component is opaque, split up each paint rect and // add paintRect - compBounds to the newPaintRects array. if (isOpaque) { int x, y, w, h; Rectangle rect = new Rectangle(); // The north retangle. x = Math.max(compBounds.x, r.x); y = r.y; w = Math.min(compBounds.width, r.width + r.x - x); h = compBounds.y - r.y; rect.setBounds(x, y, w, h); if (! rect.isEmpty()) { newPaintRects.add(rect); rect = new Rectangle(); } // The south rectangle. x = Math.max(compBounds.x, r.x); y = compBounds.y + compBounds.height; w = Math.min(compBounds.width, r.width + r.x - x); h = r.height - (compBounds.y - r.y) - compBounds.height; rect.setBounds(x, y, w, h); if (! rect.isEmpty()) { newPaintRects.add(rect); rect = new Rectangle(); } // The west rectangle. x = r.x; y = r.y; w = compBounds.x - r.x; h = r.height; rect.setBounds(x, y, w, h); if (! rect.isEmpty()) { newPaintRects.add(rect); rect = new Rectangle(); } // The east rectangle. x = compBounds.x + compBounds.width; y = r.y; w = r.width - (compBounds.x - r.x) - compBounds.width; h = r.height; rect.setBounds(x, y, w, h); if (! rect.isEmpty()) { newPaintRects.add(rect); } } else { // Not opaque, need to reuse the current paint rectangles // for the next component. newPaintRects.add(r); } } else { newPaintRects.add(r); } } // Replace the paintRectangles with the new split up // paintRectangles. paintRectangles.clear(); paintRectangles.addAll(newPaintRects); newPaintRects.clear(); // Store paint rectangles if there are any for the current component. int compRectsSize = componentRectangles.size(); if (compRectsSize > 0) { componentRectangles.add(comp); paintRegions.add(componentRectangles); componentRectangles = new ArrayList(); } index++; } // paintingTile becomes true just before we start painting the component's // children. paintingTile = true; // We must go through the painting regions backwards, because the // topmost components have been added first, followed by the components // below. int prEndIndex = paintRegions.size() - 1; for (int i = prEndIndex; i >= 0; i--) { // paintingTile must be set to false before we begin to start painting // the last tile. if (i == 0) paintingTile = false; ArrayList paintingRects = (ArrayList) paintRegions.get(i); // The last element is always the component. Component c = (Component) paintingRects.get(paintingRects.size() - 1); int endIndex = paintingRects.size() - 2; for (int j = 0; j <= endIndex; j++) { Rectangle cBounds = c.getBounds(); Rectangle bounds = (Rectangle) paintingRects.get(j); Rectangle oldClip = g.getClipBounds(); if (oldClip == null) oldClip = bounds; boolean translated = false; try { g.setClip(bounds); g.translate(cBounds.x, cBounds.y); translated = true; c.paint(g); } finally { if (translated) g.translate(-cBounds.x, -cBounds.y); g.setClip(oldClip); } } } g.setClip(originalClip); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
12574,
4212,
1190,
17411,
12,
17558,
314,
13,
225,
288,
565,
12383,
2282,
15339,
273,
314,
18,
588,
15339,
5621,
565,
13264,
3443,
273,
26145,
11864,
18,
11162,
2857,
5484,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
12574,
4212,
1190,
17411,
12,
17558,
314,
13,
225,
288,
565,
12383,
2282,
15339,
273,
314,
18,
588,
15339,
5621,
565,
13264,
3443,
273,
26145,
11864,
18,
11162,
2857,
5484,
12,
... | |
IListNode lArgs = lCallLHS.getArgsNode(); | INode lArgs = lCallLHS.getArgsNode(); | public INode node_assign(INode lhs, INode rhs) { if (lhs == null) { return null; } INode result = lhs; checkExpression(rhs); if (lhs instanceof IAssignableNode) { ((IAssignableNode) lhs).setValueNode(rhs); } else if (lhs instanceof CallNode) { CallNode lCallLHS = (CallNode) lhs; IListNode lArgs = lCallLHS.getArgsNode(); if (lArgs == null) { lArgs = new ArrayNode(lhs.getPosition()); result = new CallNode(lCallLHS.getPosition(), lCallLHS.getReceiverNode(), lCallLHS.getName(), lArgs); } lArgs.add(rhs); } return result; } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21176,
756,
67,
6145,
12,
23184,
8499,
16,
21176,
7711,
13,
288,
3639,
309,
261,
80,
4487,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
21176,
563,
273,
8499,
31,
3639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21176,
756,
67,
6145,
12,
23184,
8499,
16,
21176,
7711,
13,
288,
3639,
309,
261,
80,
4487,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
21176,
563,
273,
8499,
31,
3639,... |
orderedFieldsArray = new int[orderedFields.size()]; for (int i = 0; i < orderedFields.size(); i++) { orderedFieldsArray[i] = ((Integer) orderedFields.get(i)).intValue(); } | int[] getOrderedFields() { if (orderedFieldsArray != null) { return orderedFieldsArray; } orderedFieldsArray = new int[orderedFields.size()]; for (int i = 0; i < orderedFields.size(); i++) { orderedFieldsArray[i] = ((Integer) orderedFields.get(i)).intValue(); } return orderedFieldsArray; } | 52211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52211/6f140a7c32d885d73de074e65f0860c06d313047/DataDictionary.java/clean/src/quickfix/DataDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8526,
11973,
329,
2314,
1435,
288,
3639,
309,
261,
9885,
2314,
1076,
480,
446,
13,
288,
5411,
327,
5901,
2314,
1076,
31,
3639,
289,
3639,
5901,
2314,
1076,
273,
394,
509,
63,
9885,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8526,
11973,
329,
2314,
1435,
288,
3639,
309,
261,
9885,
2314,
1076,
480,
446,
13,
288,
5411,
327,
5901,
2314,
1076,
31,
3639,
289,
3639,
5901,
2314,
1076,
273,
394,
509,
63,
9885,
... | |
page.printAhref(ref(sym), CLASSES_FRAME_NAME, name); | page.printAhref(ref(sym), CLASSES_FRAME, name); | private void addTreeTable(Tree[] trees, String title, boolean useFullName) { if (trees.length > 0) { page.printlnBold(title); page.printlnOTag("table", ATTRS_LIST).indent(); page.printlnOTag("tr").indent(); page.printlnOTag("td", new XMLAttribute[] { new XMLAttribute("style", "white-space:nowrap;")}).indent(); for (int i = 0; i < trees.length; i++) { Symbol sym = trees[i].symbol(); if (! sym.isRoot()) { String name = sym.nameString(); if (sym.isPackage()) page.printAhref(ref(sym), CLASSES_FRAME_NAME, name); else { Symbol user = (useFullName) ? global.definitions.ROOT : Symbol.NONE; page.printAhref(ref(sym), ROOT_FRAME_NAME, name); } page.printlnSTag("br"); } } page.undent(); page.printlnCTag("td").undent(); page.printlnCTag("tr").undent(); page.printlnCTag("table"); page.printlnSTag("p"); } } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/de584bc658a38af84d452993beedd7e85424ca15/HTMLGenerator.java/clean/sources/scala/tools/scaladoc/HTMLGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
2471,
1388,
12,
2471,
8526,
11491,
16,
514,
2077,
16,
1250,
999,
19223,
13,
288,
3639,
309,
261,
17204,
18,
2469,
405,
374,
13,
288,
5411,
1363,
18,
8222,
38,
1673,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
2471,
1388,
12,
2471,
8526,
11491,
16,
514,
2077,
16,
1250,
999,
19223,
13,
288,
3639,
309,
261,
17204,
18,
2469,
405,
374,
13,
288,
5411,
1363,
18,
8222,
38,
1673,
12,
... |
Argument arg = param.getArgument(); String value = visitor.visitValue(s, !cmdLine.hasNext(), cmdLine.getTokenType()); if( value != null ) arg.setValue(value); } if (param.isSatisfied()) param = null; } while (cmdLine.hasNext()); } | final boolean last = !cmdLine.hasNext(); Argument arg = param.getArgument(); String value = visitor.visitValue(s, last, cmdLine.getTokenType()); if (value != null) { if (visitor.isValueValid(arg, value, last)) { arg.setValue(value); } else { throw new SyntaxErrorException("Invalid value for argument"); } } } if (param.isSatisfied()) param = null; } while (cmdLine.hasNext()); } | private synchronized void visitCommandLine(CommandLine cmdLine, CommandLineVisitor visitor) { clearArguments(); Parameter param = null; do { String s = ""; if( cmdLine.hasNext() ) s = cmdLine.next(); // TODO: it didn't handle correctly the parameters starting with "-" /*if (s.startsWith("-") && (cmdLine.getTokenType() == CommandLine.LITERAL)) { // we got a named parameter here if (param != null) // last param takes an argument, but it's not given throw new SyntaxError("Unexpected Parameter " + s); param = getParameter(s.substring(1)); if (param == null) throw new SyntaxError("Unknown Parameter \"" + s + "\""); visitor.visitParameter(param); } else { // we got an argument */ if (param == null) {// must be an argument for an anonymous parameter param = getAnonymousParameter(); if (param == null) {// but...there are no more of them throw new SyntaxError("Unexpected argument \"" + s + "\""); } else { visitor.visitParameter(param); } //} // no check if there is an argument, as else we would have exited before (Parameter satisfied) Argument arg = param.getArgument(); String value = visitor.visitValue(s, !cmdLine.hasNext(), cmdLine.getTokenType()); if( value != null ) arg.setValue(value); } if (param.isSatisfied()) param = null; } while (cmdLine.hasNext()); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8475fed231619f209c4398ccad2ba966899e292d/Syntax.java/buggy/shell/src/shell/org/jnode/shell/help/Syntax.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
3757,
21391,
12,
21391,
1797,
1670,
16,
15893,
7413,
8000,
13,
288,
202,
202,
8507,
4628,
5621,
202,
202,
1662,
579,
273,
446,
31,
202,
202,
2896,
288,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
3757,
21391,
12,
21391,
1797,
1670,
16,
15893,
7413,
8000,
13,
288,
202,
202,
8507,
4628,
5621,
202,
202,
1662,
579,
273,
446,
31,
202,
202,
2896,
288,
1082,
202,
... |
setModified(true); | public void setPpTxnId(String ppTxnId) { if (((ppTxnId == null) && (_ppTxnId != null)) || ((ppTxnId != null) && (_ppTxnId == null)) || ((ppTxnId != null) && (_ppTxnId != null) && !ppTxnId.equals(_ppTxnId))) { if (!XSS_ALLOW_PPTXNID) { ppTxnId = XSSUtil.strip(ppTxnId); } _ppTxnId = ppTxnId; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingOrderModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingOrderModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
17004,
84,
13789,
548,
12,
780,
8228,
13789,
548,
13,
288,
202,
202,
430,
261,
12443,
11858,
13789,
548,
422,
446,
13,
597,
261,
67,
11858,
13789,
548,
480,
446,
3719,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17004,
84,
13789,
548,
12,
780,
8228,
13789,
548,
13,
288,
202,
202,
430,
261,
12443,
11858,
13789,
548,
422,
446,
13,
597,
261,
67,
11858,
13789,
548,
480,
446,
3719,
74... | |
if (!collection.collection.getPermissions().validate(user, Permission.READ)) | if (!collection .collection .getPermissions() .validate(user, Permission.READ)) | public Permission[] listCollectionPermissions() throws XMLDBException { if (!collection.collection.getPermissions().validate(user, Permission.READ)) return new Permission[0]; Permission perms[] = new Permission[collection.collection.getChildCollectionCount()]; DBBroker broker = null; try { broker = pool.get(user); String child; org.exist.collections.Collection childColl; int j = 0; for (Iterator i = collection.collection.collectionIterator(); i.hasNext(); j++) { child = (String) i.next(); childColl = broker.getCollection(collection.getPath() + '/' + child); perms[j] = childColl.getPermissions(); } return perms; } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } finally { pool.release(broker); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/542794bb5fd4ba67897c2c2677f4f663483ba69d/LocalUserManagementService.java/buggy/src/org/exist/xmldb/LocalUserManagementService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8509,
8526,
666,
2532,
6521,
1435,
1216,
26014,
503,
288,
202,
202,
430,
16051,
5548,
18,
5548,
18,
588,
6521,
7675,
5662,
12,
1355,
16,
8509,
18,
6949,
3719,
1082,
202,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8509,
8526,
666,
2532,
6521,
1435,
1216,
26014,
503,
288,
202,
202,
430,
16051,
5548,
18,
5548,
18,
588,
6521,
7675,
5662,
12,
1355,
16,
8509,
18,
6949,
3719,
1082,
202,
2463,
... |
return null; | return null; | findImplementor(JavaClass[] clazz, String name, String signature) { for(int i = 0;i < clazz.length;i++) { Method m = findImplementation(clazz[i], name, signature); if (m != null) { if ((m.getAccessFlags() & ACC_ABSTRACT) != 0) return null; else return clazz[i]; } } return null; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/Lookup.java/clean/findbugs/src/java/edu/umd/cs/findbugs/Lookup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4720,
5726,
280,
12,
5852,
797,
8526,
4003,
16,
514,
508,
16,
514,
3372,
13,
288,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
77,
411,
4003,
18,
2469,
31,
77,
27245,
288,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
5726,
280,
12,
5852,
797,
8526,
4003,
16,
514,
508,
16,
514,
3372,
13,
288,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
77,
411,
4003,
18,
2469,
31,
77,
27245,
288,
202,
... |
dumpElementln("no, got IOException"); | if(dump) dumpElementln("no, got IOException"); | public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); this.isDeserializing = true; byte marker = this.realInputStream.readByte(); dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " "); try { switch (marker) { case TC_ENDBLOCKDATA: { ret_val = null; is_consumed = true; break; } case TC_BLOCKDATA: case TC_BLOCKDATALONG: { if (marker == TC_BLOCKDATALONG) dumpElementln("BLOCKDATALONG"); else dumpElementln("BLOCKDATA"); readNextBlock(marker); throw new StreamCorruptedException("Unexpected blockData"); } case TC_NULL: { dumpElementln("NULL"); ret_val = null; break; } case TC_REFERENCE: { dumpElement("REFERENCE "); Integer oid = new Integer(this.realInputStream.readInt()); dumpElementln(Integer.toHexString(oid.intValue())); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get(oid)).object; break; } case TC_CLASS: { dumpElementln("CLASS"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class clazz = osc.forClass(); assignNewHandle(clazz); ret_val = clazz; break; } case TC_PROXYCLASSDESC: { dumpElementln("PROXYCLASS"); int n_intf = this.realInputStream.readInt(); String[] intfs = new String[n_intf]; for (int i = 0; i < n_intf; i++) { intfs[i] = this.realInputStream.readUTF(); System.out.println(intfs[i]); } boolean oldmode = setBlockDataMode(true); Class cl = resolveProxyClass(intfs); setBlockDataMode(oldmode); ObjectStreamClass osc = lookupClass(cl); assignNewHandle(osc); if (!is_consumed) { byte b = this.realInputStream.readByte(); if (b != TC_ENDBLOCKDATA) throw new IOException("Data annotated to class was not consumed." + b); } else is_consumed = false; ObjectStreamClass superosc = (ObjectStreamClass)readObject(); osc.setSuperclass(superosc); ret_val = osc; break; } case TC_CLASSDESC: { ObjectStreamClass osc = readClassDescriptor(); if (!is_consumed) { byte b = this.realInputStream.readByte(); if (b != TC_ENDBLOCKDATA) throw new IOException("Data annotated to class was not consumed." + b); } else is_consumed = false; osc.setSuperclass ((ObjectStreamClass)readObject()); ret_val = osc; break; } case TC_STRING: case TC_LONGSTRING: { dumpElement("STRING="); String s = this.realInputStream.readUTF(); dumpElementln(s); ret_val = processResolution(s, assignNewHandle(s)); break; } case TC_ARRAY: { dumpElementln("ARRAY"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class componentType = osc.forClass().getComponentType(); dumpElement("ARRAY LENGTH="); int length = this.realInputStream.readInt(); dumpElementln (length + "; COMPONENT TYPE=" + componentType); Object array = Array.newInstance(componentType, length); int handle = assignNewHandle(array); readArrayElements(array, componentType); for (int i = 0, len = Array.getLength(array); i < len; i++) dumpElementln(" ELEMENT[" + i + "]=" + Array.get(array, i)); ret_val = processResolution(array, handle); break; } case TC_OBJECT: { dumpElementln("OBJECT"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class clazz = osc.forClass(); if (!Serializable.class.isAssignableFrom(clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom(clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance(); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or " + "zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle(obj); boolean read_from_blocks = ((osc.getFlags() & SC_BLOCK_DATA) != 0); boolean oldmode = this.readDataFromBlock; if (read_from_blocks) setBlockDataMode(true); obj.readExternal(this); if (read_from_blocks) setBlockDataMode(oldmode); ret_val = processResolution(obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass(); while (Serializable.class.isAssignableFrom(first_nonserial) || Modifier.isAbstract(first_nonserial.getModifiers())) first_nonserial = first_nonserial.getSuperclass(); Object obj = null; obj = newObject(clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle(obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = inputGetObjectStreamClasses(clazz); for (int i = 0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i]; dumpElementln("Reading fields of " + this.currentObjectStreamClass.getName ()); // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy if (this.currentObjectStreamClass.hasReadMethod()) { fieldsAlreadyRead = false; boolean oldmode = setBlockDataMode(true); callReadMethod(obj, this.currentObjectStreamClass); setBlockDataMode(oldmode); dumpElement("ENDBLOCKDATA? "); try { // FIXME: XXX: This try block is to catch EOF which is // thrown for some objects. That indicates a bug in the logic. if (this.realInputStream.readByte() != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); dumpElementln("yes"); } catch (EOFException e) { dumpElementln("no, got EOFException"); } catch (IOException e) { dumpElementln("no, got IOException"); } } else { readFields(obj, currentObjectStreamClass); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResolution(obj, handle); break; } case TC_RESET: dumpElementln("RESET"); clearHandles(); ret_val = readObject(); break; case TC_EXCEPTION: { dumpElement("EXCEPTION="); Exception e = (Exception)readObject(); dumpElementln(e.toString()); clearHandles(); throw new WriteAbortedException("Exception thrown during writing of stream", e); } default: throw new IOException("Unknown marker on stream: " + marker); } } finally { setBlockDataMode(old_mode); this.isDeserializing = was_deserializing; if (! was_deserializing) { if (validators.size() > 0) invokeValidators(); } } return ret_val; } | 56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectInputStream.java/buggy/libjava/java/io/ObjectInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1033,
17362,
1435,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
5621,
565,
1250,
1703,
67,
5489,
24662,
6894,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1033,
17362,
1435,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
5621,
565,
1250,
1703,
67,
5489,
24662,
6894,
3... |
final Block aux=copyBlock(b,b.off,b.len); | Block aux=copyBlock(b,b.off,b.len); | public void join(Message m) { // added on 7-Oct-2003 if (AppiaConfig.QUOTA_ON) bind(m.length()); if (first == null) { first = m.first; size = m.size; return; } if (roMode) clearReadOnly(); if (m.roMode) m.clearReadOnly(); Block b; Block prev=null; for (b = first; b != null; b = b.next) { if (b.refs > 1) { final Block aux=copyBlock(b,b.off,b.len); if (prev == null) first=aux; else prev.next=aux; prev=aux; } else prev=b; } prev.next = m.first; size += m.size; //clear message m if(AppiaConfig.QUOTA_ON) m.unBind(m.size); m.first = null; m.size = 0; } | 47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/cbbbe50f14c3ebcc2a939948e5ca87c12b95eda3/Message.java/clean/trunk/appia/src/org/continuent/appia/core/message/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1233,
12,
1079,
312,
13,
288,
9506,
202,
759,
3096,
603,
2371,
17,
19320,
17,
6976,
23,
202,
202,
430,
261,
3371,
1155,
809,
18,
3500,
23476,
67,
673,
13,
1082,
202,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1233,
12,
1079,
312,
13,
288,
9506,
202,
759,
3096,
603,
2371,
17,
19320,
17,
6976,
23,
202,
202,
430,
261,
3371,
1155,
809,
18,
3500,
23476,
67,
673,
13,
1082,
202,
43... |
DialogUtils.openFilteredClassesDialog(IC2DFrame.this, ic2dPanel, activeObjectFilter); | DialogUtils.openNewGlobusHostDialog((java.awt.Component) IC2DFrame.this, ic2dObject.getWorldObject(), logger); | public void actionPerformed(java.awt.event.ActionEvent e) { DialogUtils.openFilteredClassesDialog(IC2DFrame.this, ic2dPanel, activeObjectFilter); } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/5e6860c26fe200ecc080f3ddc3de5b5afad88243/IC2DFrame.java/buggy/src/org/objectweb/proactive/ic2d/gui/IC2DFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
425,
13,
288,
1850,
17242,
1989,
18,
3190,
1908,
13499,
407,
2594,
6353,
12443,
6290,
18,
2219,
88,
18,
1841,
13,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
425,
13,
288,
1850,
17242,
1989,
18,
3190,
1908,
13499,
407,
2594,
6353,
12443,
6290,
18,
2219,
88,
18,
1841,
13,
268... |
public static void cssParse( String msg ) { cssParse( Level.INFO, msg ); } | public static void cssParse(String msg) { cssParse(Level.INFO, msg); } | public static void cssParse( String msg ) { cssParse( Level.INFO, msg ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5447a62138e728955d18cb200a72cbc04251c51f/XRLog.java/buggy/src/java/org/xhtmlrenderer/util/XRLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3747,
3201,
12,
514,
1234,
262,
288,
565,
3747,
3201,
12,
4557,
18,
5923,
16,
1234,
11272,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
918,
3747,
3201,
12,
514,
1234,
262,
288,
565,
3747,
3201,
12,
4557,
18,
5923,
16,
1234,
11272,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
paramGroup.setHelpTextKey( handle.getHelpTextKey( ) ); | paramGroup.setHelpTextKey( handle.getHelpTextKey( ) ); | public void visitParameterGroup( ParameterGroupHandle handle ) { ParameterGroupDefn paramGroup = new ParameterGroupDefn( ); paramGroup.setHandle(handle); paramGroup.setParameterType(IParameterDefnBase.PARAMETER_GROUP); paramGroup.setName(handle.getName()); paramGroup.setDisplayName( handle.getDisplayName( ) ); paramGroup.setDisplayNameKey( handle.getDisplayNameKey( ) ); paramGroup.setHelpText( handle.getHelpText( ) ); paramGroup.setHelpTextKey( handle.getHelpTextKey( ) ); SlotHandle parameters = handle.getParameters( ); //set custom properties List properties = handle.getUserProperties(); for(int i=0; i<properties.size(); i++) { UserPropertyDefn p = (UserPropertyDefn)properties.get(i); paramGroup.addUserProperty(p.getName(),handle.getProperty(p.getName()) ); } int size = parameters.getCount( ); for ( int n = 0; n < size; n++ ) { apply( parameters.get( n ) ); paramGroup.addParameter( (IParameterDefnBase) currentElement ); } currentElement = paramGroup; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c71489f80df3e518aa58c4898c221867ba32d699/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
19094,
12,
5498,
1114,
3259,
1640,
262,
202,
95,
202,
202,
19094,
3262,
82,
579,
1114,
273,
394,
5498,
1114,
3262,
82,
12,
11272,
202,
202,
891,
1114,
18,
542,
3259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
19094,
12,
5498,
1114,
3259,
1640,
262,
202,
95,
202,
202,
19094,
3262,
82,
579,
1114,
273,
394,
5498,
1114,
3262,
82,
12,
11272,
202,
202,
891,
1114,
18,
542,
3259... |
return MylarUiPlugin.getDefault().getColorMap().HYPERLINK; | return HYPERLINK; | public Color getForeground(Object element) { return MylarUiPlugin.getDefault().getColorMap().HYPERLINK; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/23c8cbf0c6d069ce144d0844eb6071420662b796/TaskSummaryEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskSummaryEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
5563,
2812,
479,
2915,
12,
921,
930,
13,
288,
1082,
202,
2463,
8005,
7901,
13943,
3773,
18,
588,
1868,
7675,
588,
2957,
863,
7675,
44,
61,
3194,
10554,
31,
202,
202,
97,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5563,
2812,
479,
2915,
12,
921,
930,
13,
288,
1082,
202,
2463,
8005,
7901,
13943,
3773,
18,
588,
1868,
7675,
588,
2957,
863,
7675,
44,
61,
3194,
10554,
31,
202,
202,
97,
2,
... |
popInput (); | popInput(); | private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case INPUT_STREAM: readDataChunk (); while (readBufferLength < 1) { popInput (); if (readBufferLength < 1) { readDataChunk (); } } break; default: popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { /* the most common return to parseContent () ... NOP */ } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer.toHexString (c)); // If we're in the DTD and in a context where PEs get expanded, // do so ... 1/14/2000 errata identify those contexts. There // are also spots in the internal subset where PE refs are fatal // errors, hence yet another flag. else if (c == '%' && expandPE) { if (peIsError) error ("PE reference within decl in internal subset."); parsePEReference (); return readCh (); } column++; } return c; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlParser.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1149,
855,
782,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
759,
2970,
1525,
487,
1915,
1807,
5083,
316,
326,
202,
759,
855,
1613,
16,
775,
6453,
1898,
501,
202,
759,
261,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
855,
782,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
759,
2970,
1525,
487,
1915,
1807,
5083,
316,
326,
202,
759,
855,
1613,
16,
775,
6453,
1898,
501,
202,
759,
261,
18... |
SelectableChannel channel = key.channel(); | SelectableChannel channel = key.channel(); | public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read for (Iterator i = ((RubyArray) args[0]).getList().iterator(); i.hasNext(); ) { IRubyObject obj = (IRubyObject) i.next(); registerSelect(selector, obj, SelectionKey.OP_READ|SelectionKey.OP_ACCEPT|SelectionKey.OP_CONNECT); } } if (args.length > 1 && !args[1].isNil()) { atLeastOneDescriptor = true; // write for (Iterator i = ((RubyArray) args[0]).getList().iterator(); i.hasNext(); ) { IRubyObject obj = (IRubyObject) i.next(); registerSelect(selector, obj, SelectionKey.OP_WRITE); } } if (args.length > 2 && !args[2].isNil()) { atLeastOneDescriptor = true; // Java's select doesn't do anything about this, so we leave it be. } long timeout = 0; if(args.length > 3 && !args[3].isNil()) { if (args[3] instanceof RubyFloat) { timeout = Math.round(((RubyFloat) args[3]).getDoubleValue() * 1000); } else { timeout = Math.round(((RubyFixnum) args[3]).getDoubleValue() * 1000); } if (timeout < 0) { throw runtime.newArgumentError("negative timeout given"); } } if (!atLeastOneDescriptor) { return runtime.getNil(); } if(args.length > 3) { selector.select(timeout); } else { selector.select(); } List r = new ArrayList(); List w = new ArrayList(); List e = new ArrayList(); for (Iterator i = selector.selectedKeys().iterator(); i.hasNext(); ) { SelectionKey key = (SelectionKey) i.next(); if ((key.interestOps() & key.readyOps() & (SelectionKey.OP_READ|SelectionKey.OP_ACCEPT|SelectionKey.OP_CONNECT)) != 0) { r.add(key.attachment()); } if ((key.interestOps() & key.readyOps() & (SelectionKey.OP_WRITE)) != 0) { w.add(key.attachment()); } } List ret = new ArrayList(); ret.add(RubyArray.newArray(runtime, r)); ret.add(RubyArray.newArray(runtime, w)); ret.add(RubyArray.newArray(runtime, e)); // make all sockets blocking as configured again for (Iterator i = selector.keys().iterator(); i.hasNext(); ) { SelectionKey key = (SelectionKey) i.next(); SelectableChannel channel = key.channel(); synchronized(channel.blockingLock()) { boolean blocking = ((RubyIO) key.attachment()).getBlocking(); key.cancel(); channel.configureBlocking(blocking); } } selector.close(); return RubyArray.newArray(runtime, ret); } catch(IOException e) { throw runtime.newIOError(e.getMessage()); } } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/99948200169654423914f4ddafc12db3691908e7/IOMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/IOMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
2027,
67,
3845,
12,
7937,
10340,
3099,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
775,
288,
540,
202,
6494,
622,
17319,
3335,
3187,
273,
629,
31,
540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
2027,
67,
3845,
12,
7937,
10340,
3099,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
775,
288,
540,
202,
6494,
622,
17319,
3335,
3187,
273,
629,
31,
540,
... |
buffer.append(ch); | index = DecompData.offsets.elementAt(ch) & DecompData.DECOMP_MASK; if (index > minDecomp) { doAppend(DecompData.contents, index, buffer); } else { buffer.append(ch); } | private char nextDecomp() { boolean hangul = (options & IGNORE_HANGUL) == 0; char ch = curForward(); int offset = DecompData.offsets.elementAt(ch); int index = offset & DecompData.DECOMP_MASK; if (index > minDecomp || DecompData.canonClass.elementAt(ch) != DecompData.BASE) { initBuffer(); if (index > minDecomp) { if (DEBUG) System.out.println(" " + hex(ch) + " has decomposition, index=" + index); doAppend(DecompData.contents, index, buffer); if ((offset & DecompData.DECOMP_RECURSE) != 0) { // Need to decompose the output of this decomposition recursively. for (int i = 0; i < buffer.length(); i++) { ch = buffer.charAt(i); index = DecompData.offsets.elementAt(ch) & DecompData.DECOMP_MASK; if (index > minDecomp) { i += doReplace(DecompData.contents, index, buffer, i); } } } } else { buffer.append(ch); } boolean needToReorder = false; // Any other combining chacters that immediately follow the decomposed // character must be included in the buffer too, because they're // conceptually part of the same logical character. // // TODO: Some of these might need to be decomposed too. // while ((ch = text.next()) != DONE && DecompData.canonClass.elementAt(ch) != DecompData.BASE) { needToReorder = true; buffer.append(ch); } if (buffer.length() > 1 && needToReorder) { // If there is more than one combining character in the buffer, // put them into the canonical order. // But we don't need to sort if only characters are the ones that // resulted from decomosing the base character. fixCanonical(buffer); } bufferLimit = buffer.length() - 1; ch = buffer.charAt(0); } else { // Just use this character, but first advance to the next one text.next(); // Do Hangul -> Jamo decomposition if necessary if (hangul && ch >= HANGUL_BASE && ch < HANGUL_LIMIT) { initBuffer(); hangulToJamo(ch, buffer, minDecomp); bufferLimit = buffer.length() - 1; ch = buffer.charAt(0); } } //if (DEBUG) System.out.println(" nextDecomp returning " + hex(ch) + ", text index=" + text.getIndex()); return ch; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/1c254cf440ab63dde02c1b18fbd8b7c64a1944d0/Normalizer.java/buggy/icu4j/src/com/ibm/icu/text/Normalizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1149,
1024,
17731,
84,
1435,
565,
288,
3639,
1250,
25733,
332,
273,
261,
2116,
473,
14919,
67,
22126,
13,
422,
374,
31,
3639,
1149,
462,
273,
662,
8514,
5621,
3639,
509,
1384,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
1024,
17731,
84,
1435,
565,
288,
3639,
1250,
25733,
332,
273,
261,
2116,
473,
14919,
67,
22126,
13,
422,
374,
31,
3639,
1149,
462,
273,
662,
8514,
5621,
3639,
509,
1384,
273,
... |
msg.set(FREENET_ROUTING_KEY, nodeCHK); | msg.set(FREENET_ROUTING_KEY, Key); | public static Message createTestRequest(NodeCHK nodeCHK, long id, int htl) { Message msg = new Message(testRequest); msg.set(UID, id); msg.set(FREENET_ROUTING_KEY, nodeCHK); msg.set(HTL, htl); return msg; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/52fadbe4420bc8c2fb61a8e805e65feb1b7e21db/DMT.java/buggy/src/freenet/io/comm/DMT.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2350,
752,
4709,
691,
12,
907,
1792,
47,
756,
1792,
47,
16,
1525,
612,
16,
509,
366,
6172,
13,
288,
3639,
2350,
1234,
273,
394,
2350,
12,
3813,
691,
1769,
3639,
1234,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
752,
4709,
691,
12,
907,
1792,
47,
756,
1792,
47,
16,
1525,
612,
16,
509,
366,
6172,
13,
288,
3639,
2350,
1234,
273,
394,
2350,
12,
3813,
691,
1769,
3639,
1234,
18,
5... |
public void addAtom(IPDBAtom oAtom, IMonomer oMonomer, IStrand oStrand) { super.addAtom(oAtom, oMonomer, oStrand); if (!sequentialListOfMonomers.contains(oMonomer.getMonomerName())) sequentialListOfMonomers.add(oMonomer.getMonomerName()); | public void addAtom(IPDBAtom oAtom){ super.addAtom(oAtom); | public void addAtom(IPDBAtom oAtom, IMonomer oMonomer, IStrand oStrand) { super.addAtom(oAtom, oMonomer, oStrand); if (!sequentialListOfMonomers.contains(oMonomer.getMonomerName())) sequentialListOfMonomers.add(oMonomer.getMonomerName()); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/67de0657915cc74b758a31658d78c825f5754da8/PDBPolymer.java/buggy/src/org/openscience/cdk/protein/data/PDBPolymer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
3641,
12,
2579,
2290,
3641,
320,
3641,
16,
6246,
14536,
320,
49,
14536,
16,
467,
1585,
464,
320,
1585,
464,
13,
288,
202,
202,
9565,
18,
1289,
3641,
12,
83,
3641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
3641,
12,
2579,
2290,
3641,
320,
3641,
16,
6246,
14536,
320,
49,
14536,
16,
467,
1585,
464,
320,
1585,
464,
13,
288,
202,
202,
9565,
18,
1289,
3641,
12,
83,
3641,
... |
result = findRequiredSource(pkgName); if (result == null) result = findDynamicSource(pkgName); return result; | return findRequiredSource(pkgName); | private PackageSource findSource(String pkgName) { if (pkgName == null) return null; PackageSource result = findImportedSource(pkgName); if (result != null) return result; result = findRequiredSource(pkgName); if (result == null) result = findDynamicSource(pkgName); return result; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/dab35f822bc9d73d4945e86444d58c8844a5c597/BundleLoader.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
7508,
1830,
1104,
1830,
12,
780,
27288,
13,
288,
202,
202,
430,
261,
10657,
461,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
2261,
1830,
563,
273,
1104,
24934,
1830,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7508,
1830,
1104,
1830,
12,
780,
27288,
13,
288,
202,
202,
430,
261,
10657,
461,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
2261,
1830,
563,
273,
1104,
24934,
1830,
12... |
Group newGroup = Group.create(context); newGroup.setName("COLLECTION_" + collection.getID() + "_WFSTEP_" + step); newGroup.update(); collection.setWorkflowGroup(step, newGroup); | Group newGroup = collection.createWorkflowGroup(step); | private void processConfirmEditCollection(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { if (request.getParameter("create").equals("true")) { // We need to create a new community collection = community.createCollection(); request.setAttribute("collection", collection); } // Update the basic metadata collection.setMetadata("name", request.getParameter("name")); collection.setMetadata("short_description", request .getParameter("short_description")); String intro = request.getParameter("introductory_text"); if (intro.equals("")) { intro = null; } String copy = request.getParameter("copyright_text"); if (copy.equals("")) { copy = null; } String side = request.getParameter("side_bar_text"); if (side.equals("")) { side = null; } String license = request.getParameter("license"); if (license.equals("")) { license = null; } String provenance = request.getParameter("provenance_description"); if (provenance.equals("")) { provenance = null; } collection.setMetadata("introductory_text", intro); collection.setMetadata("copyright_text", copy); collection.setMetadata("side_bar_text", side); collection.setMetadata("license", license); collection.setMetadata("provenance_description", provenance); // Which button was pressed? String button = UIUtil.getSubmitButton(request, "submit"); if (button.equals("submit_set_logo")) { // Change the logo - delete any that might be there first collection.setLogo(null); // Display "upload logo" page. Necessary attributes already set by // doDSPost() JSPManager.showJSP(request, response, "/dspace-admin/upload-logo.jsp"); } else if (button.equals("submit_delete_logo")) { // Simply delete logo collection.setLogo(null); // Show edit page again - attributes set in doDSPost() JSPManager.showJSP(request, response, "/tools/edit-collection.jsp"); } else if (button.startsWith("submit_wf_create_")) { int step = Integer.parseInt(button.substring(17)); // Create new group Group newGroup = Group.create(context); newGroup.setName("COLLECTION_" + collection.getID() + "_WFSTEP_" + step); newGroup.update(); collection.setWorkflowGroup(step, newGroup); collection.update(); // Forward to group edit page response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/group-edit?group_id=" + newGroup.getID())); } else if (button.equals("submit_admins_create")) { // Create new group Group newGroup = collection.createAdministrators(); // Forward to group edit page response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/group-edit?group_id=" + newGroup.getID())); } else if (button.equals("submit_submitters_create")) { // Create new group Group newGroup = collection.createSubmitters(); // Forward to group edit page response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/group-edit?group_id=" + newGroup.getID())); } else if (button.equals("submit_authorization_edit")) { // Forward to policy edit page response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/dspace-admin/authorize?collection_id=" + collection.getID() + "&submit_collection_select=1")); } else if (button.startsWith("submit_wf_edit_")) { int step = Integer.parseInt(button.substring(15)); // Edit workflow group Group g = collection.getWorkflowGroup(step); response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/group-edit?group_id=" + g.getID())); } else if (button.equals("submit_submitters_edit")) { // Edit submitters group Group g = collection.getSubmitters(); response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/group-edit?group_id=" + g.getID())); } else if (button.equals("submit_admins_edit")) { // Edit 'collection administrators' group Group g = collection.getAdministrators(); response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/group-edit?group_id=" + g.getID())); } else if (button.startsWith("submit_wf_delete_")) { // Delete workflow group int step = Integer.parseInt(button.substring(17)); Group g = collection.getWorkflowGroup(step); collection.setWorkflowGroup(step, null); // Have to update to avoid ref. integrity error collection.update(); g.delete(); // Show edit page again - attributes set in doDSPost() JSPManager.showJSP(request, response, "/tools/edit-collection.jsp"); } else if (button.equals("submit_create_template")) { // Create a template item collection.createTemplateItem(); // Forward to edit page for new template item Item i = collection.getTemplateItem(); i.setOwningCollection(collection); // have to update to avoid ref. integrity error i.update(); collection.update(); context.complete(); response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/edit-item?item_id=" + i.getID())); return; } else if (button.equals("submit_edit_template")) { // Forward to edit page for template item Item i = collection.getTemplateItem(); response.sendRedirect(response.encodeRedirectURL(request .getContextPath() + "/tools/edit-item?item_id=" + i.getID())); } else if (button.equals("submit_delete_template")) { collection.removeTemplateItem(); // Show edit page again - attributes set in doDSPost() JSPManager.showJSP(request, response, "/tools/edit-collection.jsp"); } else { // Plain old "create/update" button pressed - go back to main page showControls(context, request, response); } // Commit changes to DB collection.update(); context.complete(); } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/621ffe266a80b63e4c5930650bbd41164f6557c6/EditCommunitiesServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
11269,
4666,
2532,
12,
1042,
819,
16,
5411,
9984,
590,
16,
12446,
766,
16,
5411,
16854,
13352,
19833,
16,
2200,
1849,
13,
5411,
1216,
16517,
16,
1860,
16,
6483,
16,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
11269,
4666,
2532,
12,
1042,
819,
16,
5411,
9984,
590,
16,
12446,
766,
16,
5411,
16854,
13352,
19833,
16,
2200,
1849,
13,
5411,
1216,
16517,
16,
1860,
16,
6483,
16,
5411,... |
m_trainInstances = data; | m_trainInstances = new Instances(data); | public void buildEvaluator (Instances data) throws Exception { if (data.checkForStringAttributes()) { throw new UnsupportedAttributeTypeException("Can't handle string attributes!"); } m_trainInstances = data; m_trainInstances.deleteWithMissingClass(); m_classIndex = m_trainInstances.classIndex(); if (m_classIndex < 0) { throw new Exception("Consistency subset evaluator requires a class " + "attribute!"); } if (m_trainInstances.classAttribute().isNumeric()) { throw new Exception("Consistency subset evaluator can't handle a " +"numeric class attribute!"); } m_numAttribs = m_trainInstances.numAttributes(); m_numInstances = m_trainInstances.numInstances(); m_disTransform = new Discretize(); m_disTransform.setUseBetterEncoding(true); m_disTransform.setInputFormat(m_trainInstances); m_trainInstances = Filter.useFilter(m_trainInstances, m_disTransform); } | 4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/06164d97b6463ac6574981f8101374dc8ed32561/ConsistencySubsetEval.java/clean/weka/attributeSelection/ConsistencySubsetEval.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
15876,
261,
5361,
501,
13,
1216,
1185,
288,
565,
309,
261,
892,
18,
1893,
1290,
780,
2498,
10756,
288,
1377,
604,
225,
394,
7221,
1499,
14144,
2932,
2568,
1404,
1640,
533... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
15876,
261,
5361,
501,
13,
1216,
1185,
288,
565,
309,
261,
892,
18,
1893,
1290,
780,
2498,
10756,
288,
1377,
604,
225,
394,
7221,
1499,
14144,
2932,
2568,
1404,
1640,
533... |
public HardTokenIssuerData(int hardtokenissuerid, String alias, BigInteger certificatesn, String issuerdn, HardTokenIssuer hardtokenissuer){ | public HardTokenIssuerData(int hardtokenissuerid, String alias, int admingroupid , HardTokenIssuer hardtokenissuer){ | public HardTokenIssuerData(int hardtokenissuerid, String alias, BigInteger certificatesn, String issuerdn, HardTokenIssuer hardtokenissuer){ this.hardtokenissuerid=hardtokenissuerid; this.alias=alias; this.certificatesn=certificatesn; this.issuerdn=issuerdn; this.hardtokenissuer=hardtokenissuer; } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/7734ca14478c03822c95e1fe85ba81ec3f718dc9/HardTokenIssuerData.java/buggy/src/java/se/anatom/ejbca/hardtoken/HardTokenIssuerData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
1060,
1345,
16667,
751,
12,
474,
7877,
2316,
17567,
350,
16,
514,
2308,
16,
509,
1261,
11987,
656,
350,
269,
670,
1060,
1345,
16667,
7877,
2316,
17567,
15329,
1377,
333,
18,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
670,
1060,
1345,
16667,
751,
12,
474,
7877,
2316,
17567,
350,
16,
514,
2308,
16,
509,
1261,
11987,
656,
350,
269,
670,
1060,
1345,
16667,
7877,
2316,
17567,
15329,
1377,
333,
18,
20... |
int ipOffset = VM_Entrypoints.registersIPField.getOffset(); int fprsOffset = VM_Entrypoints.registersFPRsField.getOffset(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffset(); int regsOffset = VM_Entrypoints.threadContextRegistersField.getOffset(); | int ipOffset = VM_Entrypoints.registersIPField.getOffsetAsInt(); int fprsOffset = VM_Entrypoints.registersFPRsField.getOffsetAsInt(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffsetAsInt(); int regsOffset = VM_Entrypoints.threadContextRegistersField.getOffsetAsInt(); | private static VM_CodeArray generateThreadSwitchInstructions() { VM_Assembler asm = new VM_Assembler(0); int ipOffset = VM_Entrypoints.registersIPField.getOffset(); int fprsOffset = VM_Entrypoints.registersFPRsField.getOffset(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffset(); int regsOffset = VM_Entrypoints.threadContextRegistersField.getOffset(); // (1) Save nonvolatile hardware state of current thread. asm.emitMFLR (T3); // T3 gets return address asm.emitLAddr (T2, regsOffset, T0); // T2 = T0.contextRegisters asm.emitSTAddr (T3, ipOffset, T2); // T0.contextRegisters.ip = return address // save non-volatile fprs asm.emitLAddr(T3, fprsOffset, T2); // T3 := T0.contextRegisters.fprs[] for (int i = FIRST_NONVOLATILE_FPR; i <= LAST_NONVOLATILE_FPR; ++i) asm.emitSTFD(i, i<<LOG_BYTES_IN_DOUBLE, T3); // save non-volatile gprs asm.emitLAddr(T3, gprsOffset, T2); // T3 := registers.gprs[] for (int i = FIRST_NONVOLATILE_GPR; i <= LAST_NONVOLATILE_GPR; ++i) asm.emitSTAddr(i, i<<LOG_BYTES_IN_ADDRESS, T3); // save fp asm.emitSTAddr(FP, FP<<LOG_BYTES_IN_ADDRESS, T3); // (2) Set currentThread.beingDispatched to false asm.emitLVAL(0, 0); // R0 := 0 asm.emitSTW(0, VM_Entrypoints.beingDispatchedField.getOffset(), T0); // T0.beingDispatched := R0 // (3) Restore nonvolatile hardware state of new thread. // restore non-volatile fprs asm.emitLAddr(T0, fprsOffset, T1); // T0 := T1.fprs[] for (int i = FIRST_NONVOLATILE_FPR; i <= LAST_NONVOLATILE_FPR; ++i) asm.emitLFD(i, i<<LOG_BYTES_IN_DOUBLE, T0); // restore non-volatile gprs asm.emitLAddr(T0, gprsOffset, T1); // T0 := T1.gprs[] for (int i = FIRST_NONVOLATILE_GPR; i <= LAST_NONVOLATILE_GPR; ++i) asm.emitLAddr(i, i<<LOG_BYTES_IN_ADDRESS, T0); // restore fp asm.emitLAddr(FP, FP<<LOG_BYTES_IN_ADDRESS, T0); // resume execution at saved ip (T1.ipOffset) asm.emitLAddr(T0, ipOffset, T1); asm.emitMTLR(T0); asm.emitBCLR(); return asm.makeMachineCode().getInstructions(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/71f0481e0131f8f2137e2feea85ae32a28daffcc/VM_OutOfLineMachineCode.java/buggy/rvm/src/vm/arch/powerPC/runtime/VM_OutOfLineMachineCode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
3830,
10200,
26712,
1435,
288,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
565,
509,
282,
2359,
2335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
3830,
10200,
26712,
1435,
288,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
565,
509,
282,
2359,
2335,
... |
public org.quickfix.field.Product getProduct() throws FieldNotFound { org.quickfix.field.Product value = new org.quickfix.field.Product(); | public quickfix.field.Product getProduct() throws FieldNotFound { quickfix.field.Product value = new quickfix.field.Product(); | public org.quickfix.field.Product getProduct() throws FieldNotFound { org.quickfix.field.Product value = new org.quickfix.field.Product(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityTypes.java/buggy/src/java/src/quickfix/fix43/SecurityTypes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
15880,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
413... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
15880,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4133,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
413... |
myManager.beforeChildRemoval(treeEvent); | public void run() { PsiTreeChangeEventImpl treeEvent = new PsiTreeChangeEventImpl(myManager); boolean isExcluded = vFile.isDirectory() && myProjectFileIndex.isIgnored(vFile); if (oldParentDir != null && !isExcluded) { if (newParentDir != null) { treeEvent.setOldParent(oldParentDir); treeEvent.setNewParent(newParentDir); if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); treeEvent.setChild(psiDir); } else { PsiFile psiFile = findFile(vFile); treeEvent.setChild(psiFile); } myManager.beforeChildMovement(treeEvent); } else { treeEvent.setParent(oldParentDir); if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); treeEvent.setChild(psiDir); } else { PsiFile psiFile = findFile(vFile); treeEvent.setChild(psiFile); } myManager.beforeChildRemoval(treeEvent); } } else { LOG.assertTrue(newParentDir != null); // checked above treeEvent.setParent(newParentDir); myManager.beforeChildAddition(treeEvent); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/671af53ecb4df5a36564759f83fd6c3b1163178f/FileManagerImpl.java/buggy/source/com/intellij/psi/impl/file/impl/FileManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
1086,
1435,
288,
5411,
453,
7722,
2471,
20930,
2828,
2151,
1133,
273,
394,
453,
7722,
2471,
20930,
2828,
12,
4811,
1318,
1769,
5411,
1250,
353,
16461,
273,
331,
812,
18,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6647,
1071,
918,
1086,
1435,
288,
5411,
453,
7722,
2471,
20930,
2828,
2151,
1133,
273,
394,
453,
7722,
2471,
20930,
2828,
12,
4811,
1318,
1769,
5411,
1250,
353,
16461,
273,
331,
812,
18,
291,
... | |
public void processRequests(RequestProcessor processor); | public void processRequests(RequestProcessor processor, Body body); | public void processRequests(RequestProcessor processor); | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/2666230e00db643175e81dac0b52f3f8ba384784/RequestQueue.java/buggy/src/org/objectweb/proactive/core/body/request/RequestQueue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
6421,
12,
691,
5164,
6659,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
6421,
12,
691,
5164,
6659,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
.addContent(new Element("variable") | .addContent(new Element("display") | void setupDoc() { // create a JDOM tree with just some elements root = new Element("programmer-config"); doc = new Document(root); doc.setDocType(new DocType("programmer-config","programmer-config.dtd")); // add some elements root.addContent(new Element("programmer") .addContent(new Element("pane") .addAttribute("name","Basic") .addContent(new Element("column") .addContent(new Element("variable") .addAttribute("name", "Address") ) .addContent(new Element("variable") .addAttribute("name", "Start voltage") ) .addContent(new Element("variable") .addAttribute("name", "Normal direction of motion") ) ) .addContent(new Element("column") .addContent(new Element("variable") .addAttribute("name", "Address") ) .addContent(new Element("variable") .addAttribute("name", "Normal direction of motion") ) .addContent(new Element("variable") .addAttribute("name", "Normal direction of motion") .addAttribute("format","checkbox") ) .addContent(new Element("variable") .addAttribute("name", "Normal direction of motion") .addAttribute("format","radiobuttons") ) ) ) .addContent(new Element("pane") .addAttribute("name", "CV") .addContent(new Element("column") .addContent(new Element("cvtable")) ) ) .addContent(new Element("pane") .addAttribute("name", "Other") .addContent(new Element("column") .addContent(new Element("variable") .addAttribute("name", "Address") ) .addContent(new Element("variable") .addAttribute("name", "Normal direction of motion") ) ) ) ) ; // end of adding contents return; } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/7ec2858feed8d156d40e9f9a20f80bb18094e770/PaneProgFrameTest.java/clean/tests/jmrit/symbolicprog/PaneProgFrameTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3875,
1759,
1435,
288,
202,
202,
759,
752,
279,
804,
8168,
2151,
598,
2537,
2690,
2186,
202,
202,
3085,
273,
394,
3010,
2932,
12890,
6592,
17,
1425,
8863,
202,
202,
2434,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3875,
1759,
1435,
288,
202,
202,
759,
752,
279,
804,
8168,
2151,
598,
2537,
2690,
2186,
202,
202,
3085,
273,
394,
3010,
2932,
12890,
6592,
17,
1425,
8863,
202,
202,
2434,
273,
... |
setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } | setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } | public void run() { setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } | 56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/816096641504ba96db7bef449fe01a4b67ff0d37/AddStructuralFeatureValueActionNameEditPart.java/clean/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/AddStructuralFeatureValueActionNameEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
17322,
202,
482,
918,
1086,
1435,
288,
6862,
25083,
202,
542,
1253,
12,
4288,
18,
26810,
4666,
780,
12,
2704,
8091,
4216,
12,
2956,
3631,
261,
780,
13,
460,
10019,
6862,
6862,
202,
97,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
17322,
202,
482,
918,
1086,
1435,
288,
6862,
25083,
202,
542,
1253,
12,
4288,
18,
26810,
4666,
780,
12,
2704,
8091,
4216,
12,
2956,
3631,
261,
780,
13,
460,
10019,
6862,
6862,
202,
97,
2,
-1... |
if (jj_3R_59()) return true; | if (jj_3R_61()) return true; | final private boolean jj_3R_41() { if (jj_3R_59()) return true; return false; } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9803,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9498,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
9803,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
9498,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-1... |
_toolBar.addSeparator(); _toolBar.add(ActionAddNote.SINGLETON); | protected void initToolBar() { //System.out.println("making state toolbar"); _toolBar = new ToolBar(); _toolBar.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); // _toolBar.add(Actions.Cut); // _toolBar.add(Actions.Copy); // _toolBar.add(Actions.Paste); // _toolBar.addSeparator(); _toolBar.add(_actionSelect); _toolBar.add(_actionBroom); _toolBar.addSeparator(); _toolBar.add(_actionState); _toolBar.add(_actionTransition); _toolBar.addSeparator(); _toolBar.add(_actionStartPseudoState); _toolBar.add(_actionFinalPseudoState); _toolBar.add(_actionBranchPseudoState); _toolBar.add(_actionForkPseudoState); _toolBar.add(_actionJoinPseudoState); //_toolBar.add(ActionAddNote.SINGLETON); // removed until issue 529 resolved _toolBar.addSeparator(); _toolBar.add(_actionRectangle); _toolBar.add(_actionRRectangle); _toolBar.add(_actionCircle); _toolBar.add(_actionLine); _toolBar.add(_actionText); _toolBar.add(_actionPoly); _toolBar.add(_actionSpline); _toolBar.add(_actionInk); _toolBar.addSeparator(); _toolBar.add(_diagramName); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/171106e79f069657a01402dd34836aa7261299fd/UMLActivityDiagram.java/clean/src_new/org/argouml/uml/diagram/activity/ui/UMLActivityDiagram.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
389,
6738,
5190,
18,
1289,
6581,
5621,
389,
6738,
5190,
18,
1289,
12,
1803,
986,
8067,
18,
20184,
56,
673,
1769,
389,
6738,
5190,
18,
1289,
6581,
5621,
389,
6738,
5190,
18,
1289,
12,
1803,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
6738,
5190,
18,
1289,
6581,
5621,
389,
6738,
5190,
18,
1289,
12,
1803,
986,
8067,
18,
20184,
56,
673,
1769,
389,
6738,
5190,
18,
1289,
6581,
5621,
389,
6738,
5190,
18,
1289,
12,
1803,
9... | |
assertLinkPresentWithText("Configure htmlemailpublisher"); assertLinkPresentWithText("Configure jabberpublisher"); assertLinkPresentWithText("Configure onfailurepublisher"); assertLinkPresentWithText("Configure onsuccesspublisher"); assertLinkPresentWithText("Configure rsspublisher"); assertLinkPresentWithText("Configure scppublisher"); assertLinkPresentWithText("Configure socketpublisher"); assertLinkPresentWithText("Configure x10publisher"); | assertLinkPresentWithText("Configure htmlemail"); assertLinkPresentWithText("Configure jabber"); assertLinkPresentWithText("Configure onfailure"); assertLinkPresentWithText("Configure onsuccess"); assertLinkPresentWithText("Configure scp"); assertLinkPresentWithText("Configure socket"); assertLinkPresentWithText("Configure x10"); | public void testShouldListAvailablePublishers() { beginAt(PUBLISHERS_URL); assertLinkPresentWithText("Configure antpublisher"); assertLinkPresentWithText("Configure cmsynergybaselinepublisher"); assertLinkPresentWithText("Configure cmsynergytaskpublisher"); assertLinkPresentWithText("Configure currentbuildstatuspublisher"); assertLinkPresentWithText("Configure currentbuildstatusftppublisher"); assertLinkPresentWithText("Configure emailpublisher"); assertLinkPresentWithText("Configure executepublisher"); assertLinkPresentWithText("Configure ftppublisher"); assertLinkPresentWithText("Configure htmlemailpublisher"); assertLinkPresentWithText("Configure jabberpublisher"); assertLinkPresentWithText("Configure onfailurepublisher"); assertLinkPresentWithText("Configure onsuccesspublisher"); assertLinkPresentWithText("Configure rsspublisher"); assertLinkPresentWithText("Configure scppublisher"); assertLinkPresentWithText("Configure socketpublisher"); assertLinkPresentWithText("Configure x10publisher"); assertLinkPresentWithText("Configure xsltlogpublisher"); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/18e6a03874c9e582dfdbdccb560ae60e6cf5e938/PluginsWebTest.java/clean/webtest/net/sourceforge/cruisecontrol/PluginsWebTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
14309,
682,
5268,
6024,
414,
1435,
288,
3639,
2376,
861,
12,
22224,
11367,
67,
1785,
1769,
3639,
1815,
2098,
6351,
1190,
1528,
2932,
11207,
17841,
26018,
8863,
3639,
1815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14309,
682,
5268,
6024,
414,
1435,
288,
3639,
2376,
861,
12,
22224,
11367,
67,
1785,
1769,
3639,
1815,
2098,
6351,
1190,
1528,
2932,
11207,
17841,
26018,
8863,
3639,
1815,
... |
public org.quickfix.field.PartyID get(org.quickfix.field.PartyID value) | public quickfix.field.PartyID get(quickfix.field.PartyID value) | public org.quickfix.field.PartyID get(org.quickfix.field.PartyID value) throws FieldNotFound { getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusReport.java/clean/src/java/src/quickfix/fix44/QuoteStatusReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-1... |
Logger.error(this,"Error : can't restart the node : consider installing the wrapper. PLEASE REPORT THAT ERROR TO devl@freenetproject.org"); | if(!Node.logConfigHandler.getFileLoggerHook().hasRedirectedStdOutErrNoLock()) { System.err.println("Error : can't restart the node : consider installing the wrapper. PLEASE REPORT THAT ERROR TO devl@freenetproject.org"); t.printStackTrace(); } | public void run() { while(true) { try { Thread.sleep(5000); } catch (InterruptedException e) { // Ignore } long now = System.currentTimeMillis(); long recordedTime = ((long)lastTimeInSeconds) * 1000; long diff = now - recordedTime; Logger.minor(this, "PacketSender last updated time "+diff+"ms ago"); if(diff > 3*60*1000) { System.err.println("Restarting node: PacketSender froze for 3 minutes! ("+diff+")"); Logger.error(this, "Restarting node: PacketSender froze for 3 minutes! ("+diff+")"); try { if(node.isUsingWrapper()){ WrapperManager.requestThreadDump(); WrapperManager.restart(); }else{ // No wrapper : we don't want to let it harm the network! Logger.error(this,"Error : can't restart the node : consider installing the wrapper. PLEASE REPORT THAT ERROR TO devl@freenetproject.org"); node.exit(); } } catch (Throwable t) { Logger.error(this,"Error : can't restart the node : consider installing the wrapper. PLEASE REPORT THAT ERROR TO devl@freenetproject.org"); node.exit(); } } } } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/6f303a891fa002ce6d4bcce4f0bbd7f394e1fb69/PacketSender.java/buggy/src/freenet/node/PacketSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
918,
1086,
1435,
288,
377,
202,
202,
17523,
12,
3767,
13,
288,
377,
1082,
202,
698,
288,
6862,
202,
3830,
18,
19607,
12,
25,
3784,
1769,
9506,
202,
97,
1044,
261,
24485,
503,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1377,
202,
482,
918,
1086,
1435,
288,
377,
202,
202,
17523,
12,
3767,
13,
288,
377,
1082,
202,
698,
288,
6862,
202,
3830,
18,
19607,
12,
25,
3784,
1769,
9506,
202,
97,
1044,
261,
24485,
503,... |
graph.drawString("T", 19, 70); | graph.drawString("T", 19, 70); | public void prepare() { // figure out size String shortName = entity.getShortName(); if (Settings.showUnitId) { shortName+=(" ID:"+entity.getId()); } Font font = new Font("SansSerif", Font.PLAIN, 10); Rectangle tempRect = new Rectangle(47, 55, getFontMetrics(font).stringWidth(shortName) + 1, getFontMetrics(font).getAscent()); // create image for buffer Image tempImage; Graphics graph; try { tempImage = createImage(bounds.width, bounds.height); graph = tempImage.getGraphics(); } catch (NullPointerException ex) { // argh! but I want it! return; } // fill with key color graph.setColor(new Color(TRANSPARENT)); graph.fillRect(0, 0, bounds.width, bounds.height); // draw entity image graph.drawImage(tileManager.imageFor(entity), 0, 0, this); // draw box with shortName Color text, bkgd, bord; if (entity.isDone()) { text = Color.lightGray; bkgd = Color.darkGray; bord = Color.black; } else if (entity.isImmobile()) { text = Color.darkGray; bkgd = Color.black; bord = Color.lightGray; } else { text = Color.black; bkgd = Color.lightGray; bord = Color.darkGray; } graph.setFont(font); graph.setColor(bord); graph.fillRect(tempRect.x, tempRect.y, tempRect.width, tempRect.height); tempRect.translate(-1, -1); graph.setColor(bkgd); graph.fillRect(tempRect.x, tempRect.y, tempRect.width, tempRect.height); graph.setColor(text); graph.drawString(shortName, tempRect.x + 1, tempRect.y + tempRect.height - 1); // draw facing graph.setColor(Color.white); if (entity.getFacing() != -1) { graph.drawPolygon(facingPolys[entity.getFacing()]); } // determine secondary facing for non-mechs & flipped arms int secFacing = entity.getFacing(); if (!(entity instanceof Mech || entity instanceof Protomech)) { secFacing = entity.getSecondaryFacing(); } else if (entity.getArmsFlipped()) { secFacing = (entity.getFacing() + 3) % 6; } // draw red secondary facing arrow if necessary if (secFacing != -1 && secFacing != entity.getFacing()) { graph.setColor(Color.red); graph.drawPolygon(facingPolys[secFacing]); } // Determine if the entity is a tank with a locked turret. boolean turretLocked = false; if ( entity instanceof Tank && !( (Tank) entity ).hasNoTurret() && !entity.canChangeSecondaryFacing() ) { turretLocked = true; } // draw condition strings if ( entity.isImmobile() && !entity.isProne() && !turretLocked ) { // draw "IMMOBILE" graph.setColor(Color.darkGray); graph.drawString("IMMOBILE", 18, 39); graph.setColor(Color.red); graph.drawString("IMMOBILE", 17, 38); } else if (!entity.isImmobile() && entity.isProne()) { // draw "PRONE" graph.setColor(Color.darkGray); graph.drawString("PRONE", 26, 39); graph.setColor(Color.yellow); graph.drawString("PRONE", 25, 38); } else if ( !entity.isImmobile() && turretLocked ) { // draw "LOCKED" graph.setColor(Color.darkGray); graph.drawString("LOCKED", 22, 39); graph.setColor(Color.yellow); graph.drawString("LOCKED", 21, 38); } else if (entity.isImmobile() && entity.isProne()) { // draw "IMMOBILE" and "PRONE" graph.setColor(Color.darkGray); graph.drawString("IMMOBILE", 18, 35); graph.drawString("PRONE", 26, 48); graph.setColor(Color.red); graph.drawString("IMMOBILE", 17, 34); graph.setColor(Color.yellow); graph.drawString("PRONE", 25, 47); } else if ( entity.isImmobile() && turretLocked ) { // draw "IMMOBILE" and "LOCKED" graph.setColor(Color.darkGray); graph.drawString("IMMOBILE", 18, 35); graph.drawString("LOCKED", 22, 48); graph.setColor(Color.red); graph.drawString("IMMOBILE", 17, 34); graph.setColor(Color.yellow); graph.drawString("LOCKED", 21, 47); } // If this unit is being swarmed or is swarming another, say so. if ( Entity.NONE != entity.getSwarmAttackerId() ) { // draw "SWARMED" graph.setColor(Color.darkGray); graph.drawString("SWARMED", 17, 22); graph.setColor(Color.red); graph.drawString("SWARMED", 16, 21); } // If this unit is transporting another, say so. if ((entity.getLoadedUnits()).size() > 0) { // draw "T" graph.setColor(Color.darkGray); graph.drawString("T", 20, 71); graph.setColor(Color.black); graph.drawString("T", 19, 70); } // If this unit is stuck, say so. if ((entity.isStuck())) { graph.setColor(Color.darkGray); graph.drawString("STUCK", 26, 61); graph.setColor(Color.orange); graph.drawString("STUCK", 25, 60); } // If this unit is currently unknown to the enemy, say so. if (trackThisEntitiesVisibilityInfo(entity)) { if (!entity.isSeenByEnemy()) { // draw "U" graph.setColor(Color.darkGray); graph.drawString("U", 30, 71); graph.setColor(Color.black); graph.drawString("U", 29, 70); } else if (!entity.isVisibleToEnemy() && !isJ2RE) { // If this unit is currently hidden from the enemy, say so. // draw "H" graph.setColor(Color.darkGray); graph.drawString("H", 30, 71); graph.setColor(Color.black); graph.drawString("H", 29, 70); } } //Lets draw our armor and internal status bars int baseBarLength = 23; int barLength = 0; double percentRemaining = 0.00; percentRemaining = entity.getArmorRemainingPercent(); barLength = (int)(baseBarLength * percentRemaining); graph.setColor(Color.darkGray); graph.fillRect(56, 7, 23, 3); graph.setColor(Color.lightGray); graph.fillRect(55, 6, 23, 3); graph.setColor(getStatusBarColor(percentRemaining)); graph.fillRect(55, 6, barLength, 3); percentRemaining = entity.getInternalRemainingPercent(); barLength = (int)(baseBarLength * percentRemaining); graph.setColor(Color.darkGray); graph.fillRect(56, 11, 23, 3); graph.setColor(Color.lightGray); graph.fillRect(55, 10, 23, 3); graph.setColor(getStatusBarColor(percentRemaining)); graph.fillRect(55, 10, barLength, 3); // create final image this.image = createImage(new FilteredImageSource(tempImage.getSource(), new KeyAlphaFilter(TRANSPARENT))); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/BoardView1.java/buggy/megamek/src/megamek/client/ui/AWT/BoardView1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2911,
1435,
288,
5411,
368,
7837,
596,
963,
5411,
514,
19276,
273,
1522,
18,
588,
29983,
5621,
5411,
309,
261,
2628,
18,
4500,
2802,
548,
13,
288,
7734,
19276,
15,
33,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2911,
1435,
288,
5411,
368,
7837,
596,
963,
5411,
514,
19276,
273,
1522,
18,
588,
29983,
5621,
5411,
309,
261,
2628,
18,
4500,
2802,
548,
13,
288,
7734,
19276,
15,
33,
2932,
... |
ReportRequest request = new ReportRequest(DeferredGraphicalViewer.this); List list = new ArrayList(); if(getSelection() instanceof IStructuredSelection) | if ( DeferredGraphicalViewer.this.getControl( ) == null || DeferredGraphicalViewer.this.getControl( ) .isDisposed( ) ) | protected void fireSelectionChanged( ) { Display.getCurrent( ).asyncExec( new Runnable( ) { public void run( ) { ReportRequest request = new ReportRequest(DeferredGraphicalViewer.this); List list = new ArrayList(); if(getSelection() instanceof IStructuredSelection) { list = ((IStructuredSelection)getSelection()).toList(); } request.setSelectionObject(list); request.setType(ReportRequest.SELECTION); request.setRequestConvert(new EditorReportRequestConvert()); //SessionHandleAdapter.getInstance().getMediator().pushState(); SessionHandleAdapter.getInstance().getMediator().notifyRequest(request); DeferredGraphicalViewer.super.fireSelectionChanged( ); //SessionHandleAdapter.getInstance().getMediator().popState(); } }); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/879c6e2a73c9076aeeed74591c18318a1397dcd3/DeferredGraphicalViewer.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/parts/DeferredGraphicalViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
6233,
5033,
12,
262,
202,
95,
9506,
202,
4236,
18,
588,
3935,
12,
262,
18,
3810,
1905,
12,
394,
10254,
12,
262,
288,
1082,
202,
482,
918,
1086,
12,
262,
1082,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
6233,
5033,
12,
262,
202,
95,
9506,
202,
4236,
18,
588,
3935,
12,
262,
18,
3810,
1905,
12,
394,
10254,
12,
262,
288,
1082,
202,
482,
918,
1086,
12,
262,
1082,
20... |
return new RoundRobinSplitter (); | { RoundRobinSplitter splitter = new RoundRobinSplitter (((Integer)weights.remove (0)).intValue ()); return splitter; } | Splitter getSplitter () { switch (type) { case 1: return new RoundRobinSplitter (); case 2: WeightedRoundRobinSplitter splitter = new WeightedRoundRobinSplitter (); while (!weights.isEmpty ()) { splitter.addWeight ((Integer)weights.remove (0)); } return splitter; case 3: return new DuplicateSplitter (); case 4: return new NullSplitter (); default: SASSERT (false); } return null; } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/4c87ad8346cdcf863b78cfc5759cba33281dea13/SplitJoin.java/buggy/streams/src/streamit/library/SplitJoin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
5385,
387,
1322,
1127,
387,
1832,
3639,
288,
5411,
1620,
261,
723,
13,
5411,
288,
7734,
648,
404,
30,
10792,
288,
11370,
14444,
267,
26738,
21553,
273,
225,
394,
11370,
14444,
267,
26738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5385,
387,
1322,
1127,
387,
1832,
3639,
288,
5411,
1620,
261,
723,
13,
5411,
288,
7734,
648,
404,
30,
10792,
288,
11370,
14444,
267,
26738,
21553,
273,
225,
394,
11370,
14444,
267,
26738,
... |
System.out.println( "find xpath-expr execute the given XPath expression."); System.out.println( "show [position] display query result value at position."); System.out.println( "\n--- user management (may require dba rights) ---"); | System.out.println("find xpath-expr execute the given XPath expression."); System.out.println("show [position] display query result value at position."); System.out.println("\n--- user management (may require dba rights) ---"); | protected static void displayHelp() { System.out.println("--- general commands ---"); System.out.println("ls list collection contents"); System.out.println("cd [collection|..] change current collection"); System.out.println( "put [file pattern] upload file or directory" + " to the database"); System.out.println( "mkcol collection create new sub-collection in " + "current collection"); System.out.println( "rm document remove document from current " + "collection"); System.out.println("rmcol collection remove collection"); System.out.println( "set [key=value] set property. Calling set without "); System.out.println( " argument shows current settings."); System.out.println("\n--- search commands ---"); System.out.println( "find xpath-expr execute the given XPath expression."); System.out.println( "show [position] display query result value at position."); System.out.println( "\n--- user management (may require dba rights) ---"); System.out.println("users list existing users."); System.out.println("adduser username create a new user."); System.out.println("passwd username change password for user. "); System.out.println("chown user group [resource]"); System.out.println( " change resource ownership. chown without"); System.out.println( " resource changes ownership of the current"); System.out.println(" collection."); System.out.println("chmod [resource] permissions"); System.out.println( " change resource permissions. Format:"); System.out.println( " [user|group|other]=[+|-][read|write|update]."); System.out.println( " chmod without resource changes permissions for"); System.out.println(" the current collection."); System.out.println("quit quit the program"); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/InteractiveClient.java/clean/src/org/exist/InteractiveClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
918,
2562,
6696,
1435,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6062,
7470,
4364,
9948,
8863,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3251,
10402,
666,
1849,
2939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
918,
2562,
6696,
1435,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6062,
7470,
4364,
9948,
8863,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3251,
10402,
666,
1849,
2939,
... |
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if ((bits & OS.TVS_TRACKSELECT) != 0) { OS.SetTextColor (hDC, getForegroundPixel ()); | if (explorerTheme) { int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if ((bits & OS.TVS_TRACKSELECT) != 0) { OS.SetTextColor (hDC, getForegroundPixel ()); } | LRESULT CDDS_ITEMPOSTPAINT (int wParam, int lParam) { if (ignoreCustomDraw) return null; NMTVCUSTOMDRAW nmcd = new NMTVCUSTOMDRAW (); OS.MoveMemory (nmcd, lParam, NMTVCUSTOMDRAW.sizeof); if (nmcd.left == nmcd.right) { return new LRESULT (OS.CDRF_DODEFAULT); } int hDC = nmcd.hdc; OS.RestoreDC (hDC, -1); /* * Bug in Windows. If the lParam field of TVITEM * is changed during custom draw using TVM_SETITEM, * the lItemlParam field of the NMTVCUSTOMDRAW struct * is not updated until the next custom draw. The * fix is to query the field from the item instead * of using the struct. */ int id = nmcd.lItemlParam; if ((style & SWT.VIRTUAL) != 0) { if (id == -1) { TVITEM tvItem = new TVITEM (); tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_PARAM; tvItem.hItem = nmcd.dwItemSpec; OS.SendMessage (handle, OS.TVM_GETITEM, 0, tvItem); id = tvItem.lParam; } } TreeItem item = _getItem (nmcd.dwItemSpec, id); /* * Feature in Windows. When a new tree item is inserted * using TVM_INSERTITEM and the tree is using custom draw, * a NM_CUSTOMDRAW is sent before TVM_INSERTITEM returns * and before the item is added to the items array. The * fix is to check for null. * * NOTE: This only happens on XP with the version 6.00 of * COMCTL32.DLL, */ if (item == null) return null; /* * Feature in Windows. Under certain circumstances, Windows * sends CDDS_ITEMPOSTPAINT for an empty rectangle. This is * not a problem providing that graphics do not occur outside * the rectangle. The fix is to test for the rectangle and * draw nothing. * * NOTE: This seems to happen when both I_IMAGECALLBACK * and LPSTR_TEXTCALLBACK are used at the same time with * TVM_SETITEM. */ if (nmcd.left >= nmcd.right || nmcd.top >= nmcd.bottom) return null; if (!OS.IsWindowVisible (handle)) return null; if ((style & SWT.FULL_SELECTION) != 0 || findImageControl () != null || ignoreDrawSelection) { OS.SetBkMode (hDC, OS.TRANSPARENT); } boolean selected = false; if (OS.IsWindowEnabled (handle)) { TVITEM tvItem = new TVITEM (); tvItem.mask = OS.TVIF_HANDLE | OS.TVIF_STATE; tvItem.hItem = item.handle; OS.SendMessage (handle, OS.TVM_GETITEM, 0, tvItem); if ((tvItem.state & (OS.TVIS_SELECTED | OS.TVIS_DROPHILITED)) != 0) { selected = true; /* * Feature in Windows. When the mouse is pressed and the * selection is first drawn for a tree, the previously * selected item is redrawn but the the TVIS_SELECTED bits * are not cleared. When the user moves the mouse slightly * and a drag and drop operation is not started, the item is * drawn again and this time with TVIS_SELECTED is cleared. * This means that an item that contains colored cells will * not draw with the correct background until the mouse is * moved. The fix is to test for the selection colors and * guess that the item is not selected. * * NOTE: This code does not work when the foreground and * background of the tree are set to the selection colors * but this does not happen in a regular application. */ if (handle == OS.GetFocus ()) { if (OS.GetTextColor (hDC) != OS.GetSysColor (OS.COLOR_HIGHLIGHTTEXT)) { selected = false; } else { if (OS.GetBkColor (hDC) != OS.GetSysColor (OS.COLOR_HIGHLIGHT)) { selected = false; } } } } else { /* * Feature in Windows. When the mouse is pressed and the * selection is first drawn for a tree, the item is drawn * selected, but the TVIS_SELECTED bits for the item are * not set. When the user moves the mouse slightly and * a drag and drop operation is not started, the item is * drawn again and this time TVIS_SELECTED is set. This * means that an item that is in a tree that has the style * TVS_FULLROWSELECT and that also contains colored cells * will not draw the entire row selected until the user * moves the mouse. The fix is to test for the selection * colors and guess that the item is selected. * * NOTE: This code does not work when the foreground and * background of the tree are set to the selection colors * but this does not happen in a regular application. */ if (OS.GetTextColor (hDC) == OS.GetSysColor (OS.COLOR_HIGHLIGHTTEXT)) { if (OS.GetBkColor (hDC) == OS.GetSysColor (OS.COLOR_HIGHLIGHT)) { selected = true; } } } if (EXPLORER_THEME) { if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { int bits = OS.GetWindowLong (handle, OS.GWL_STYLE); if ((bits & OS.TVS_TRACKSELECT) != 0) { OS.SetTextColor (hDC, getForegroundPixel ()); } } } } int count = 0; int [] order = null; RECT clientRect = new RECT (), focusRect = null; OS.GetClientRect (scrolledHandle (), clientRect); if (hwndHeader != 0) { OS.MapWindowPoints (hwndParent, handle, clientRect, 2); count = OS.SendMessage (hwndHeader, OS.HDM_GETITEMCOUNT, 0, 0); if (count != 0) { order = new int [count]; OS.SendMessage (hwndHeader, OS.HDM_GETORDERARRAY, count, order); } } int sortIndex = -1, clrSortBk = -1; if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) { if (sortColumn != null && sortDirection != SWT.NONE) { if (findImageControl () == null) { sortIndex = indexOf (sortColumn); clrSortBk = getSortColumnPixel (); } } } Point size = null; int x = 0, gridWidth = linesVisible ? GRID_WIDTH : 0; for (int i=0; i<Math.max (1, count); i++) { int index = order == null ? i : order [i], width = nmcd.right - nmcd.left; if (count > 0 && hwndHeader != 0) { HDITEM hdItem = new HDITEM (); hdItem.mask = OS.HDI_WIDTH; OS.SendMessage (hwndHeader, OS.HDM_GETITEM, index, hdItem); width = hdItem.cxy; } if (i == 0) { if ((style & SWT.FULL_SELECTION) != 0) { if ((selected || findImageControl () == null) && !ignoreDrawSelection && !ignoreDrawBackground) { boolean drawBackground = true; RECT pClipRect = new RECT (); OS.SetRect (pClipRect, width, nmcd.top, nmcd.right, nmcd.bottom); if (EXPLORER_THEME) { if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { boolean hot = (nmcd.uItemState & OS.CDIS_HOT) != 0; if (selected || hot) { RECT pRect = new RECT (); OS.SetRect (pRect, nmcd.left, nmcd.top, nmcd.right, nmcd.bottom); if (count > 0 && hwndHeader != 0) { int totalWidth = 0; HDITEM hdItem = new HDITEM (); hdItem.mask = OS.HDI_WIDTH; for (int j=0; j<count; j++) { OS.SendMessage (hwndHeader, OS.HDM_GETITEM, j, hdItem); totalWidth += hdItem.cxy; } if (totalWidth > clientRect.right - clientRect.left) { pRect.left = 0; pRect.right = totalWidth; } else { pRect.left = clientRect.left; pRect.right = clientRect.right; } } drawBackground = false; int hTheme = OS.OpenThemeData (handle, Display.TREEVIEW); int iStateId = selected ? OS.TREIS_SELECTED : OS.TREIS_HOT; if (OS.GetFocus () != handle && selected && !hot) iStateId = OS.TREIS_SELECTEDNOTFOCUS; OS.DrawThemeBackground (hTheme, hDC, OS.TVP_TREEITEM, iStateId, pRect, pClipRect); OS.CloseThemeData (hTheme); } } } if (drawBackground) fillBackground (hDC, OS.GetBkColor (hDC), pClipRect); } } } if (x + width > clientRect.left) { RECT rect = new RECT (), backgroundRect = null; boolean drawItem = true, drawText = true, drawImage = true, drawBackground = false; if (i == 0) { drawItem = drawImage = drawText = false; if (findImageControl () != null) { drawItem = drawText = drawBackground = true; rect = item.getBounds (index, true, false, false, false, true, hDC); if (linesVisible) { rect.right++; rect.bottom++; } } if (selected && !ignoreDrawSelection && !ignoreDrawBackground) { fillBackground (hDC, OS.GetBkColor (hDC), rect); drawBackground = false; } backgroundRect = rect; if (hooks (SWT.EraseItem)) { drawItem = drawText = drawImage = true; rect = item.getBounds (index, true, true, false, false, true, hDC); if ((style & SWT.FULL_SELECTION) != 0) { backgroundRect = rect; } else { backgroundRect = item.getBounds (index, true, false, false, false, true, hDC); } } } else { selectionForeground = -1; ignoreDrawForeground = ignoreDrawBackground = ignoreDrawSelection = false; OS.SetRect (rect, x, nmcd.top, x + width, nmcd.bottom - gridWidth); backgroundRect = rect; } int clrText = -1, clrTextBk = -1; int hFont = item.cellFont != null ? item.cellFont [index] : -1; if (hFont == -1) hFont = item.font; if (selectionForeground != -1) clrText = selectionForeground; if (OS.IsWindowEnabled (handle)) { boolean drawForeground = false; if (selected) { if (i != 0 && (style & SWT.FULL_SELECTION) == 0) { OS.SetTextColor (hDC, getForegroundPixel ()); OS.SetBkColor (hDC, getBackgroundPixel ()); drawForeground = drawBackground = true; } } else { drawForeground = drawBackground = true; } if (drawForeground) { clrText = item.cellForeground != null ? item.cellForeground [index] : -1; if (clrText == -1) clrText = item.foreground; } if (drawBackground) { clrTextBk = item.cellBackground != null ? item.cellBackground [index] : -1; if (clrTextBk == -1) clrTextBk = item.background; if (index == sortIndex) clrTextBk = clrSortBk; } } else { if (index == sortIndex) { drawBackground = true; clrTextBk = clrSortBk; } } if (drawItem) { if (i != 0) { if (hooks (SWT.MeasureItem)) { RECT itemRect = item.getBounds (index, true, true, false, false, false, hDC); int nSavedDC = OS.SaveDC (hDC); GCData data = new GCData (); data.device = display; data.hFont = hFont; GC gc = GC.win32_new (hDC, data); Event event = new Event (); event.item = item; event.index = index; event.gc = gc; event.x = itemRect.left; event.y = itemRect.top; event.width = itemRect.right - itemRect.left; event.height = itemRect.bottom - itemRect.top; sendEvent (SWT.MeasureItem, event); event.gc = null; gc.dispose (); OS.RestoreDC (hDC, nSavedDC); if (isDisposed () || item.isDisposed ()) break; if (event.height > getItemHeight ()) setItemHeight (event.height); } if (hooks (SWT.EraseItem)) { RECT cellRect = item.getBounds (index, true, true, true, true, true, hDC); int nSavedDC = OS.SaveDC (hDC); GCData data = new GCData (); data.device = display; data.foreground = OS.GetTextColor (hDC); data.background = OS.GetBkColor (hDC); if (!selected || (style & SWT.FULL_SELECTION) == 0) { if (clrText != -1) data.foreground = clrText; if (clrTextBk != -1) data.background = clrTextBk; } data.hPen = OS.CreatePen (OS.PS_SOLID, 0, data.foreground); data.hBrush = OS.CreateSolidBrush (data.background); data.hFont = hFont; GC gc = GC.win32_new (hDC, data); Event event = new Event (); event.item = item; event.index = index; event.gc = gc; event.detail |= SWT.FOREGROUND; if (clrTextBk != -1) event.detail |= SWT.BACKGROUND; if (selected && (style & SWT.FULL_SELECTION) != 0) event.detail |= SWT.SELECTED; if ((nmcd.uItemState & OS.CDIS_FOCUS) != 0) { if (/*nmcd.iSubItem == 0 ||*/ (style & SWT.FULL_SELECTION) != 0) { if (handle == OS.GetFocus ()) { int uiState = OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0); if ((uiState & OS.UISF_HIDEFOCUS) == 0) event.detail |= SWT.FOCUSED; } } } event.x = cellRect.left; event.y = cellRect.top; event.width = cellRect.right - cellRect.left; event.height = cellRect.bottom - cellRect.top; gc.setClipping (event.x, event.y, event.width, event.height); sendEvent (SWT.EraseItem, event); event.gc = null; int newTextClr = OS.GetTextColor (hDC); gc.dispose (); OS.RestoreDC (hDC, nSavedDC); if (isDisposed () || item.isDisposed ()) break; if (event.doit) { ignoreDrawForeground = (event.detail & SWT.FOREGROUND) == 0; ignoreDrawBackground = (event.detail & SWT.BACKGROUND) == 0; ignoreDrawSelection = (event.detail & SWT.SELECTED) == 0; } else { ignoreDrawForeground = ignoreDrawBackground = ignoreDrawSelection = true; } if ((style & SWT.FULL_SELECTION) != 0) { if (ignoreDrawSelection) ignoreFullSelection = true; if (!ignoreDrawSelection) { if (!selected) { selectionForeground = OS.GetSysColor (OS.COLOR_HIGHLIGHTTEXT); } else { drawBackground = true; ignoreDrawBackground = false; if (handle == OS.GetFocus () && OS.IsWindowEnabled (handle)) { clrTextBk = OS.GetSysColor (OS.COLOR_HIGHLIGHT); } else { clrTextBk = OS.GetSysColor (OS.COLOR_3DFACE); } if (!ignoreFullSelection && index == count - 1) { RECT selectionRect = new RECT (); OS.SetRect (selectionRect, backgroundRect.left, backgroundRect.top, nmcd.right, backgroundRect.bottom); backgroundRect = selectionRect; } } } else { if (selected) { selectionForeground = newTextClr; if (clrTextBk == -1 && OS.IsWindowEnabled (handle)) { Control control = findBackgroundControl (); if (control == null) control = this; clrTextBk = control.getBackgroundPixel (); } } } } } if (selectionForeground != -1) clrText = selectionForeground; } if (!ignoreDrawBackground) { if (clrTextBk != -1) { if (drawBackground) fillBackground (hDC, clrTextBk, backgroundRect); } else { Control control = findImageControl (); if (control != null) { if (i == 0) { int right = Math.min (rect.right, width); OS.SetRect (rect, rect.left, rect.top, right, rect.bottom); if (drawBackground) fillImageBackground (hDC, control, rect); if (!ignoreDrawSelection) { if (handle == OS.GetFocus ()) { int uiState = OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0); if ((uiState & OS.UISF_HIDEFOCUS) == 0) { int hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_CARET, 0); if (hItem == item.handle) { if ((style & SWT.FULL_SELECTION) != 0) { focusRect = new RECT (); OS.SetRect (focusRect, nmcd.left, nmcd.top, nmcd.right, nmcd.bottom); } else { focusRect = item.getBounds (index, true, false, false, false, true, hDC); } } } } } } else { if (drawBackground) fillImageBackground (hDC, control, rect); } } } } if (drawImage) { Image image = null; if (index == 0) { image = item.image; } else { Image [] images = item.images; if (images != null) image = images [index]; } int inset = i != 0 ? INSET : 0; if (image != null) { if (index == 0) rect.left = Math.min (rect.right, rect.left + 2); Rectangle bounds = image.getBounds (); if (size == null) size = getImageSize (); //int y = rect.top + (index == 0 ? (getItemHeight () - size.y) / 2 : 0); int y = rect.top; if (!ignoreDrawForeground) { //TODO - share GC, clip the drawing for index == 0 GCData data = new GCData(); data.device = display; GC gc = GC.win32_new (hDC, data); //if (index == 0) { //must clear //gc.setClipping (rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top); //} gc.drawImage (image, 0, 0, bounds.width, bounds.height, rect.left, y, size.x, size.y); gc.dispose (); } OS.SetRect (rect, rect.left + size.x + INSET, rect.top, rect.right - inset, rect.bottom); } else { OS.SetRect (rect, rect.left + INSET, rect.top, rect.right - inset, rect.bottom); if (i == 0 && OS.SendMessage (handle, OS.TVM_GETIMAGELIST, OS.TVSIL_NORMAL, 0) != 0) { if (size == null) size = getImageSize (); rect.left = Math.min (rect.left + size.x, rect.right); } } } if (drawText) { /* * Bug in Windows. When DrawText() is used with DT_VCENTER * and DT_ENDELLIPSIS, the ellipsis can draw outside of the * rectangle when the rectangle is empty. The fix is avoid * all text drawing for empty rectangles. */ if (rect.left < rect.right) { String string = null; if (index == 0) { string = item.text; rect.left = Math.min (rect.right, rect.left + 2); } else { String [] strings = item.strings; if (strings != null) string = strings [index]; } if (string != null) { if (hFont != -1) hFont = OS.SelectObject (hDC, hFont); if (clrText != -1) clrText = OS.SetTextColor (hDC, clrText); if (clrTextBk != -1) clrTextBk = OS.SetBkColor (hDC, clrTextBk); int flags = OS.DT_NOPREFIX | OS.DT_SINGLELINE | OS.DT_VCENTER; if (i != 0) flags |= OS.DT_ENDELLIPSIS; TreeColumn column = columns != null ? columns [index] : null; if (column != null) { if ((column.style & SWT.CENTER) != 0) flags |= OS.DT_CENTER; if ((column.style & SWT.RIGHT) != 0) flags |= OS.DT_RIGHT; } TCHAR buffer = new TCHAR (getCodePage (), string, false); if (!ignoreDrawForeground) OS.DrawText (hDC, buffer, buffer.length (), rect, flags); OS.DrawText (hDC, buffer, buffer.length (), rect, flags | OS.DT_CALCRECT); if (hFont != -1) hFont = OS.SelectObject (hDC, hFont); if (clrText != -1) clrText = OS.SetTextColor (hDC, clrText); if (clrTextBk != -1) clrTextBk = OS.SetBkColor (hDC, clrTextBk); } } } } if (selectionForeground != -1) clrText = selectionForeground; if (hooks (SWT.PaintItem)) { RECT itemRect = item.getBounds (index, true, true, false, false, false, hDC); int nSavedDC = OS.SaveDC (hDC); GCData data = new GCData (); data.device = display; data.hFont = hFont; data.foreground = OS.GetTextColor (hDC); data.background = OS.GetBkColor (hDC); if (selected && (style & SWT.FULL_SELECTION) != 0) { if (selectionForeground != -1) data.foreground = selectionForeground; } else { if (clrText != -1) data.foreground = clrText; if (clrTextBk != -1) data.background = clrTextBk; } data.hPen = OS.CreatePen (OS.PS_SOLID, 0, data.foreground); data.hBrush = OS.CreateSolidBrush (data.background); OS.SelectObject (hDC, data.hPen); OS.SelectObject (hDC, data.hBrush); GC gc = GC.win32_new (hDC, data); Event event = new Event (); event.item = item; event.index = index; event.gc = gc; event.detail |= SWT.FOREGROUND; if (clrTextBk != -1) event.detail |= SWT.BACKGROUND; if (selected && (i == 0 /*nmcd.iSubItem == 0*/ || (style & SWT.FULL_SELECTION) != 0)) { event.detail |= SWT.SELECTED; } if ((nmcd.uItemState & OS.CDIS_FOCUS) != 0) { if (i == 0 /*nmcd.iSubItem == 0*/ || (style & SWT.FULL_SELECTION) != 0) { if (handle == OS.GetFocus ()) { int uiState = OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0); if ((uiState & OS.UISF_HIDEFOCUS) == 0) event.detail |= SWT.FOCUSED; } } } event.x = itemRect.left; event.y = itemRect.top; event.width = itemRect.right - itemRect.left; event.height = itemRect.bottom - itemRect.top; RECT cellRect = item.getBounds (index, true, true, true, true, true, hDC); int cellWidth = cellRect.right - cellRect.left; int cellHeight = cellRect.bottom - cellRect.top; gc.setClipping (cellRect.left, cellRect.top, cellWidth, cellHeight); sendEvent (SWT.PaintItem, event); event.gc = null; gc.dispose (); OS.RestoreDC (hDC, nSavedDC); if (isDisposed () || item.isDisposed ()) break; } } x += width; if (x > clientRect.right) break; } if (linesVisible) { if ((style & SWT.FULL_SELECTION) != 0) { if (hwndHeader != 0) { if (OS.SendMessage (hwndHeader, OS.HDM_GETITEMCOUNT, 0, 0) != 0) { HDITEM hdItem = new HDITEM (); hdItem.mask = OS.HDI_WIDTH; OS.SendMessage (hwndHeader, OS.HDM_GETITEM, 0, hdItem); RECT rect = new RECT (); OS.SetRect (rect, nmcd.left + hdItem.cxy, nmcd.top, nmcd.right, nmcd.bottom); OS.DrawEdge (hDC, rect, OS.BDR_SUNKENINNER, OS.BF_BOTTOM); } } } RECT rect = new RECT (); OS.SetRect (rect, nmcd.left, nmcd.top, nmcd.right, nmcd.bottom); OS.DrawEdge (hDC, rect, OS.BDR_SUNKENINNER, OS.BF_BOTTOM); } if (focusRect != null) OS.DrawFocusRect (hDC, focusRect); return new LRESULT (OS.CDRF_DODEFAULT);} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/28341f36b2b474d250bcbc993c3af8734c20f08e/Tree.java/clean/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
511,
12289,
21508,
3948,
67,
12674,
3798,
4066,
3217,
261,
474,
341,
786,
16,
509,
328,
786,
13,
288,
202,
430,
261,
6185,
3802,
6493,
13,
327,
446,
31,
202,
50,
6152,
13464,
11707,
40,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
511,
12289,
21508,
3948,
67,
12674,
3798,
4066,
3217,
261,
474,
341,
786,
16,
509,
328,
786,
13,
288,
202,
430,
261,
6185,
3802,
6493,
13,
327,
446,
31,
202,
50,
6152,
13464,
11707,
40,
1082... |
setLocation(x, y); | this.x = x; this.y = y; | public void move(int x, int y) { setLocation(x, y); } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/3fe1c14284ce32b79d0e66441aec6a45a77ff684/Rectangle.java/clean/libjava/java/awt/Rectangle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
12,
474,
619,
16,
509,
677,
13,
225,
288,
565,
333,
18,
92,
273,
619,
31,
333,
18,
93,
273,
677,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
12,
474,
619,
16,
509,
677,
13,
225,
288,
565,
333,
18,
92,
273,
619,
31,
333,
18,
93,
273,
677,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
writer.startElement("xsd:schema", new String[] { "xmlns:xsd", XmlaConstants.NS_XSD, "targetNamespace", XmlaConstants.NS_XMLA_ROWSET, "xmlns:xsi", XmlaConstants.NS_XSI, "xmlns:sql", "urn:schemas-microsoft-com:xml-sql", "elementFormDefault", "qualified" }); writer.startElement("xsd:element", new String[] { "name", "root" }); writer.startElement("xsd:complexType"); writer.startElement("xsd:sequence", new String[] { "minOccurs", "0", "maxOccurs", "unbounded" }); writer.element("xsd:element", new String[] { "name", "row", "type", "row" }); writer.endElement(); writer.endElement(); writer.endElement(); writer.startElement("xsd:complexType", new String[] { "name", "row" }); writer.startElement("xsd:sequence"); for (int i = 0; i < columnDefinitions.length; i++) { RowsetDefinition.Column column = columnDefinitions[i]; final String name = XmlaUtil.encodeElementName(column.name); final String xsdType = "xsd:" + column.type.columnType; writer.element("xsd:element", column.nullable ? new String[] { "sql:field", column.name, "name", name, "type", xsdType, "minOccurs", "0"} : new String[] { "sql:field", column.name, "name", name, "type", xsdType }); } writer.endElement(); writer.endElement(); writer.endElement(); | writeRowsetXmlSchemaTop(writer); writeRowsetXmlSchemaRowDef(writer); writeRowsetXmlSchemaBottom(writer); | void writeRowsetXmlSchema(SaxWriter writer) { writer.startElement("xsd:schema", new String[] { "xmlns:xsd", XmlaConstants.NS_XSD, "targetNamespace", XmlaConstants.NS_XMLA_ROWSET, "xmlns:xsi", XmlaConstants.NS_XSI, "xmlns:sql", "urn:schemas-microsoft-com:xml-sql", "elementFormDefault", "qualified" }); writer.startElement("xsd:element", new String[] { "name", "root" }); writer.startElement("xsd:complexType"); writer.startElement("xsd:sequence", new String[] { "minOccurs", "0", "maxOccurs", "unbounded" }); writer.element("xsd:element", new String[] { "name", "row", "type", "row" }); writer.endElement(); // xsd:sequence writer.endElement(); // xsd:complexType writer.endElement(); // xsd:element writer.startElement("xsd:complexType", new String[] { "name", "row" }); writer.startElement("xsd:sequence"); for (int i = 0; i < columnDefinitions.length; i++) { RowsetDefinition.Column column = columnDefinitions[i]; final String name = XmlaUtil.encodeElementName(column.name); final String xsdType = "xsd:" + column.type.columnType; writer.element("xsd:element", column.nullable ? new String[] { "sql:field", column.name, "name", name, "type", xsdType, "minOccurs", "0"} : new String[] { "sql:field", column.name, "name", name, "type", xsdType }); } writer.endElement(); // xsd:sequence writer.endElement(); // xsd:complexType writer.endElement(); // xsd:schema } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/41e43f806f666da1ff483ebb20820e61433739e2/RowsetDefinition.java/buggy/src/main/mondrian/xmla/RowsetDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1045,
1999,
542,
4432,
3078,
12,
55,
651,
2289,
2633,
13,
288,
3639,
2633,
18,
1937,
1046,
2932,
19144,
30,
4821,
3113,
394,
514,
8526,
288,
5411,
315,
16741,
30,
19144,
3113,
5714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
1999,
542,
4432,
3078,
12,
55,
651,
2289,
2633,
13,
288,
3639,
2633,
18,
1937,
1046,
2932,
19144,
30,
4821,
3113,
394,
514,
8526,
288,
5411,
315,
16741,
30,
19144,
3113,
5714,
... |
mcuss.addUrl(url0, true, true, null); | mau.addUrl(url0, true, true, null); | public void testFindMostRecentCachedUrlWithNormalization() throws Exception { final String prefix = "http://foo.bar/"; // pseudo crawl rule prefix String url0 = "http://foo.bar/xxx/baz"; // normal form of test url String url1 = "http://foo.bar/SESSION/xxx/baz"; // should normalize to url0 String url2 = "http://foo.bar/SESSION/not"; // should not // manually create necessary pieces, no config MockPlugin mpi = new MockPlugin(); MockArchivalUnit mau = new MockArchivalUnit() { // shouldBeCached() is true of anything starting with prefix public boolean shouldBeCached(String url) { return StringUtil.startsWithIgnoreCase(url, prefix); } // siteNormalizeUrl() removes "SESSION/" from url public String siteNormalizeUrl(String url) { return StringUtil.replaceString(url, "SESSION/", ""); } }; mau.setPlugin(mpi); mau.setAuId("mauauidddd"); mgr.putAuInMap(mau); // neither url is found assertNull(mgr.findMostRecentCachedUrl(url1)); assertNull(mgr.findMostRecentCachedUrl(url2)); // create mock structure so that url0 exists with content CachedUrlSetSpec cuss = new MockCachedUrlSetSpec(prefix, null); MockCachedUrlSet mcuss = new MockCachedUrlSet(mau, cuss); mcuss.addUrl(url0, true, true, null); mau.setAuCachedUrlSet(mcuss); // url1 should now be found, as url0 CachedUrl cu = mgr.findMostRecentCachedUrl(url1); assertNotNull(cu); assertEquals(url0, cu.getUrl()); // url2 still not found assertNull(mgr.findMostRecentCachedUrl(url2)); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1daae17bba467f29e3575dfd082f58a6511a6679/TestPluginManager.java/clean/test/src/org/lockss/plugin/TestPluginManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
3125,
18714,
17076,
9839,
1489,
1190,
23651,
1435,
1377,
1216,
1185,
288,
565,
727,
514,
1633,
273,
315,
2505,
2207,
11351,
18,
3215,
4898,
31,
368,
12454,
23182,
1720,
163... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
3125,
18714,
17076,
9839,
1489,
1190,
23651,
1435,
1377,
1216,
1185,
288,
565,
727,
514,
1633,
273,
315,
2505,
2207,
11351,
18,
3215,
4898,
31,
368,
12454,
23182,
1720,
163... |
this.getLastModificationDate().setTime(lastModification.getTime()); | if (lastModification != null) { this.setLastModificationDate(new Date(lastModification.getTime())); } else { this.setLastModificationDate(null); } | public void setLastModification(Timestamp lastModification) { this.getLastModificationDate().setTime(lastModification.getTime()); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/3edc460afff978385914b80a52fab12306c6a86b/MasterDegreeThesisDataVersion.java/clean/src/net/sourceforge/fenixedu/domain/MasterDegreeThesisDataVersion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17764,
13467,
12,
4921,
1142,
13467,
13,
288,
3639,
309,
261,
2722,
13467,
480,
446,
13,
288,
333,
18,
542,
3024,
13467,
1626,
12,
2704,
2167,
12,
2722,
13467,
18,
588,
950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17764,
13467,
12,
4921,
1142,
13467,
13,
288,
3639,
309,
261,
2722,
13467,
480,
446,
13,
288,
333,
18,
542,
3024,
13467,
1626,
12,
2704,
2167,
12,
2722,
13467,
18,
588,
950,
... |
jEdit.propertiesChanged(); | EditBus.send(new DockableWindowUpdate( DockableWindowManager.this, DockableWindowUpdate.PROPERTIES_CHANGED, null )); | public JPopupMenu createPopupMenu(DockableWindowContainer container, final String dockable, boolean clone) { JPopupMenu popup = new JPopupMenu(); if(dockable == null && container instanceof PanelWindowContainer) { ActionListener listener = new ActionListener() { public void actionPerformed(ActionEvent evt) { showDockableWindow(evt.getActionCommand()); } }; String[] dockables = ((PanelWindowContainer) container).getDockables(); for(int i = 0; i < dockables.length; i++) { String name = dockables[i]; JMenuItem item = new JMenuItem(getDockableTitle(name)); item.setActionCommand(name); item.addActionListener(listener); popup.add(item); } } else { JMenuItem caption = new JMenuItem(getDockableTitle(dockable)); caption.setEnabled(false); popup.add(caption); popup.addSeparator(); String currentPos = jEdit.getProperty(dockable + ".dock-position",FLOATING); if(!clone) { String[] positions = { FLOATING, TOP, LEFT, BOTTOM, RIGHT }; for(int i = 0; i < positions.length; i++) { final String pos = positions[i]; if(pos.equals(currentPos)) continue; JMenuItem moveMenuItem = new JMenuItem(jEdit.getProperty("view.docking.menu-" + pos)); moveMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { jEdit.setProperty(dockable + ".dock-position",pos); jEdit.propertiesChanged(); showDockableWindow(dockable); } }); popup.add(moveMenuItem); } popup.addSeparator(); } JMenuItem cloneMenuItem = new JMenuItem(jEdit.getProperty("view.docking.menu-clone")); cloneMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { floatDockableWindow(dockable); } }); popup.add(cloneMenuItem); popup.addSeparator(); JMenuItem closeMenuItem = new JMenuItem(jEdit.getProperty("view.docking.menu-close")); closeMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { removeDockableWindow(dockable); } }); popup.add(closeMenuItem); if(!(clone || currentPos.equals(FLOATING))) { JMenuItem undockMenuItem = new JMenuItem(jEdit.getProperty("view.docking.menu-undock")); undockMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { jEdit.setProperty(dockable + ".dock-position",FLOATING); jEdit.propertiesChanged(); } }); popup.add(undockMenuItem); } } return popup; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/666ebe69c78ec442736fbed7b1038fc3a506d660/DockableWindowManager.java/clean/org/gjt/sp/jedit/gui/DockableWindowManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
804,
13770,
4599,
752,
13770,
4599,
12,
40,
975,
429,
3829,
2170,
1478,
16,
202,
202,
6385,
514,
5822,
429,
16,
1250,
3236,
13,
202,
95,
202,
202,
46,
13770,
4599,
10431,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
13770,
4599,
752,
13770,
4599,
12,
40,
975,
429,
3829,
2170,
1478,
16,
202,
202,
6385,
514,
5822,
429,
16,
1250,
3236,
13,
202,
95,
202,
202,
46,
13770,
4599,
10431,
273,... |
org.exist.xquery.parser.XQueryAST tmp109_AST = null; tmp109_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp109_AST); | org.exist.xquery.parser.XQueryAST tmp110_AST = null; tmp110_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp110_AST); | public final void flworExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST flworExpr_AST = null; { int _cnt92=0; _loop92: do { switch ( LA(1)) { case LITERAL_for: { forClause(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_let: { letClause(); astFactory.addASTChild(currentAST, returnAST); break; } default: { if ( _cnt92>=1 ) { break _loop92; } else {throw new NoViableAltException(LT(1), getFilename());} } } _cnt92++; } while (true); } { switch ( LA(1)) { case LITERAL_where: { org.exist.xquery.parser.XQueryAST tmp109_AST = null; tmp109_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp109_AST); match(LITERAL_where); expr(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_return: case LITERAL_order: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { switch ( LA(1)) { case LITERAL_order: { orderByClause(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_return: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } org.exist.xquery.parser.XQueryAST tmp110_AST = null; tmp110_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp110_AST); match(LITERAL_return); exprSingle(); astFactory.addASTChild(currentAST, returnAST); flworExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = flworExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1183,
91,
280,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
91,
280,
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... |
diffControlsState(ch, children1, controlInfo2.getChildren(), itemsetsFull1, itemsetsFull2); | diffControlsState(ch, children1, controlInfo2.getChildren(), itemsetsFull1, itemsetsFull2, valueChangeControlIds); | public static void diffControlsState(ContentHandlerHelper ch, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if ((state1 != null && state2 != null && state1.size() != state2.size()) || (state2 == null)) { throw new IllegalStateException("Illegal state when comparing controls."); } final AttributesImpl attributesImpl = new AttributesImpl(); final Iterator j = (state1 == null) ? null : state1.iterator(); for (Iterator i = state2.iterator(); i.hasNext();) { final XFormsControls.ControlInfo controlInfo1 = (state1 == null) ? null : (XFormsControls.ControlInfo) j.next(); final XFormsControls.ControlInfo controlInfo2 = (XFormsControls.ControlInfo) i.next(); // 1: Check current control if (!(controlInfo2 instanceof XFormsControls.RepeatControlInfo)) { // xforms:repeat doesn't need to be handled independently, iterations do it // Output diffs between controlInfo1 and controlInfo2 if (!controlInfo2.equals(controlInfo1)) { // don't send anything if nothing has changed attributesImpl.clear(); // Control id attributesImpl.addAttribute("", "id", "id", ContentHandlerHelper.CDATA, controlInfo2.getId()); // Control children values if (!(controlInfo2 instanceof XFormsControls.RepeatIterationInfo)) { { final String labelValue1 = (controlInfo1 == null) ? null : controlInfo1.getLabel(); final String labelValue2 = controlInfo2.getLabel(); if (!((labelValue1 == null && labelValue2 == null) || (labelValue1 != null && labelValue2 != null && labelValue1.equals(labelValue2)))) { attributesImpl.addAttribute("", "label", "label", ContentHandlerHelper.CDATA, labelValue2 != null ? labelValue2 : ""); } } { final String helpValue1 = (controlInfo1 == null) ? null : controlInfo1.getHelp(); final String helpValue2 = controlInfo2.getHelp(); if (!((helpValue1 == null && helpValue2 == null) || (helpValue1 != null && helpValue2 != null && helpValue1.equals(helpValue2)))) { attributesImpl.addAttribute("", "help", "help", ContentHandlerHelper.CDATA, helpValue2 != null ? helpValue2 : ""); } } { final String hintValue1 = (controlInfo1 == null) ? null : controlInfo1.getHint(); final String hintValue2 = controlInfo2.getHint(); if (!((hintValue1 == null && hintValue2 == null) || (hintValue1 != null && hintValue2 != null && hintValue1.equals(hintValue2)))) { attributesImpl.addAttribute("", "hint", "hint", ContentHandlerHelper.CDATA, hintValue2 != null ? hintValue2 : ""); } } { final String alertValue1 = (controlInfo1 == null) ? null : controlInfo1.getAlert(); final String alertValue2 = controlInfo2.getAlert(); if (!((alertValue1 == null && alertValue2 == null) || (alertValue1 != null && alertValue2 != null && alertValue1.equals(alertValue2)))) { attributesImpl.addAttribute("", "alert", "alert", ContentHandlerHelper.CDATA, alertValue2 != null ? alertValue2 : ""); } } // Output xforms:output-specific information if (controlInfo2 instanceof XFormsControls.OutputControlInfo) { final XFormsControls.OutputControlInfo outputControlInfo1 = (XFormsControls.OutputControlInfo) controlInfo1; final XFormsControls.OutputControlInfo outputControlInfo2 = (XFormsControls.OutputControlInfo) controlInfo2; final String mediaTypeValue1 = (outputControlInfo1 == null) ? null : outputControlInfo1.getMediaTypeAttribute(); final String mediaTypeValue2 = outputControlInfo2.getMediaTypeAttribute(); if (!((mediaTypeValue1 == null && mediaTypeValue2 == null) || (mediaTypeValue1 != null && mediaTypeValue2 != null && mediaTypeValue1.equals(mediaTypeValue2)))) { attributesImpl.addAttribute("", "mediatype", "mediatype", ContentHandlerHelper.CDATA, mediaTypeValue2 != null ? mediaTypeValue2 : ""); } } } // Model item properties if (controlInfo1 == null || controlInfo1.isReadonly() != controlInfo2.isReadonly()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(controlInfo2.isReadonly())); } if (controlInfo1 == null || controlInfo1.isRequired() != controlInfo2.isRequired()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(controlInfo2.isRequired())); } if (controlInfo1 == null || controlInfo1.isRelevant() != controlInfo2.isRelevant()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(controlInfo2.isRelevant())); } if (controlInfo1 == null || controlInfo1.isValid() != controlInfo2.isValid()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(controlInfo2.isValid())); } final boolean isOutputControlWithValueAttribute = controlInfo2 instanceof XFormsControls.OutputControlInfo && ((XFormsControls.OutputControlInfo) controlInfo2).getValueAttribute() != null; if (!(controlInfo2 instanceof XFormsControls.RepeatIterationInfo) && !isOutputControlWithValueAttribute) { final String typeValue1 = (controlInfo1 == null) ? null : controlInfo1.getType(); final String typeValue2 = controlInfo2.getType(); if (controlInfo1 == null || !((typeValue1 == null && typeValue2 == null) || (typeValue1 != null && typeValue2 != null && typeValue1.equals(typeValue2)))) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, typeValue2 != null ? typeValue2 : ""); } } if (!(controlInfo2 instanceof XFormsControls.RepeatIterationInfo)) { // Regular control // Get current value if possible for this control // NOTE: We issue the new value anyway because we don't have yet a mechanism // to tell the client not to update the value, unlike with attributes which can // be missing if (XFormsControls.isValueControl(controlInfo2.getName())) { // Check if a "display-value" attribute must be added if (!isOutputControlWithValueAttribute) { final String displayValue = controlInfo2.getDisplayValue(); if (displayValue != null) attributesImpl.addAttribute("", "display-value", "display-value", ContentHandlerHelper.CDATA, displayValue); } // Create element with text value ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); ch.text(controlInfo2.getValue()); ch.endElement(); } else { // No value, just output element with no content ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); } } else { // Repeat iteration final XFormsControls.RepeatIterationInfo repeatIterationInfo = (XFormsControls.RepeatIterationInfo) controlInfo2; attributesImpl.addAttribute("", "iteration", "iteration", ContentHandlerHelper.CDATA, Integer.toString(repeatIterationInfo.getIteration())); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-iteration", attributesImpl); } } // Handle itemsets if (controlInfo2 instanceof XFormsControls.Select1ControlInfo || controlInfo2 instanceof XFormsControls.SelectControlInfo) { final XFormsControls.Select1ControlInfo selectControlInfo1 = (XFormsControls.Select1ControlInfo) controlInfo1; final XFormsControls.Select1ControlInfo selectControlInfo2 = (XFormsControls.Select1ControlInfo) controlInfo2; if (itemsetsFull1 != null && selectControlInfo1 != null) { final Object items = selectControlInfo1.getItemset(); if (items != null) itemsetsFull1.put(selectControlInfo1.getId(), items); } if (itemsetsFull2 != null && selectControlInfo2 != null) { final Object items = selectControlInfo2.getItemset(); if (items != null) itemsetsFull2.put(selectControlInfo2.getId(), items); } } } // 2: Check children if any if (XFormsControls.isGroupingControl(controlInfo2.getName()) || controlInfo2 instanceof XFormsControls.RepeatIterationInfo) { final List children1 = (controlInfo1 == null) ? null : controlInfo1.getChildren(); final List children2 = (controlInfo2.getChildren() == null) ? Collections.EMPTY_LIST : controlInfo2.getChildren(); if (controlInfo2 instanceof XFormsControls.RepeatControlInfo && children1 != null) { final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo2; // Special case of repeat update final int size1 = children1.size(); final int size2 = children2.size(); if (size1 == size2) { // No add or remove of children diffControlsState(ch, children1, controlInfo2.getChildren(), itemsetsFull1, itemsetsFull2); } else if (size2 > size1) { // Size has grown // Copy template instructions for (int k = size1 + 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Diff the common subset diffControlsState(ch, children1, children2.subList(0, size1), itemsetsFull1, itemsetsFull2); // Issue new values for new iterations diffControlsState(ch, null, children2.subList(size1, size2), itemsetsFull1, itemsetsFull2); } else if (size2 < size1) { // Size has shrunk final String repeatControlId = controlInfo2.getId(); final int indexOfRepeatHierarchySeparator = repeatControlId.indexOf(XFormsConstants.REPEAT_HIERARCHY_SEPARATOR_1); final String templateId = (indexOfRepeatHierarchySeparator == -1) ? repeatControlId : repeatControlId.substring(0, indexOfRepeatHierarchySeparator); final String parentIndexes = (indexOfRepeatHierarchySeparator == -1) ? "" : repeatControlId.substring(indexOfRepeatHierarchySeparator + 1); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "delete-repeat-elements", new String[]{"id", templateId, "parent-indexes", parentIndexes, "count", "" + (size1 - size2)}); // Diff the remaining subset diffControlsState(ch, children1.subList(0, size2), children2, itemsetsFull1, itemsetsFull2); } } else if ((controlInfo2 instanceof XFormsControls.RepeatControlInfo) && controlInfo1 == null) { final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo2; // Handle new sub-xforms:repeat // Copy template instructions final int size2 = children2.size(); for (int k = 2; k <= size2; k++) { // don't copy the first template, which is already copied when the parent is copied outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2); } else if ((controlInfo2 instanceof XFormsControls.RepeatControlInfo) && children1 == null) { final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo2; // Handle repeat growing from size 0 (case of instance replacement, for example) // Copy template instructions final int size2 = children2.size(); for (int k = 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2); } else { // Other grouping controls diffControlsState(ch, children1, children2, itemsetsFull1, itemsetsFull2); } } } } | 52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/bcf2aac27ada3480605ddf2a72f58ebf3391590f/XFormsServer.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3122,
16795,
1119,
12,
1350,
1503,
2276,
462,
16,
987,
919,
21,
16,
987,
919,
22,
16,
1635,
761,
4424,
5080,
21,
16,
1635,
761,
4424,
5080,
22,
13,
288,
3639,
368,
840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3122,
16795,
1119,
12,
1350,
1503,
2276,
462,
16,
987,
919,
21,
16,
987,
919,
22,
16,
1635,
761,
4424,
5080,
21,
16,
1635,
761,
4424,
5080,
22,
13,
288,
3639,
368,
840... |
File deploymentDir = new File(_appRoot, "processes"); _poller = new DeploymentPoller(deploymentDir, this); | public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException { _axisConfig = axisConf; _appRoot = new File(config.getServletContext().getRealPath("/WEB-INF")); TempFileManager.setWorkingDirectory(_appRoot); __log.debug("Loading properties"); _odeConfig = new ODEConfigProperties(_appRoot); _odeConfig.load(); __log.debug("Initializing transaction manager"); initTxMgr(); __log.debug("Creating data source."); initDataSource(); __log.debug("Starting Hibernate."); initHibernate(); __log.debug("Hibernate started."); __log.debug("Initializing BPEL server."); initBpelServer(); try { _server.start(); } catch (Exception ex) { String errmsg = __msgs.msgOdeBpelServerStartFailure(); __log.error(errmsg,ex); throw new ServletException(errmsg, ex); } __log.debug("Initializing JCA adapter."); initConnector(); new ManagementService().enableService(_axisConfig, _server, _appRoot.getAbsolutePath()); new DeploymentWebService().enableService(_axisConfig, _server, _poller, _appRoot.getAbsolutePath()); File deploymentDir = new File(_appRoot, "processes"); _poller = new DeploymentPoller(deploymentDir, this); _poller.start(); __log.info(__msgs.msgPollingStarted(deploymentDir.getAbsolutePath())); __log.info(__msgs.msgOdeStarted()); } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/f705b6b4061f18824619feedc8e55c73de10e185/ODEServer.java/buggy/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
642,
16,
15509,
1750,
2654,
3976,
13,
225,
1216,
16517,
288,
3639,
389,
4890,
809,
273,
2654,
3976,
31,
3639,
389,
2910,
2375,
273,
394,
1387,
12,
1425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
642,
16,
15509,
1750,
2654,
3976,
13,
225,
1216,
16517,
288,
3639,
389,
4890,
809,
273,
2654,
3976,
31,
3639,
389,
2910,
2375,
273,
394,
1387,
12,
1425,
... | |
public void changed() { //{{{ Debug code if(Debug.SCROLL_DEBUG) { Log.log(Log.DEBUG,this,"changed() before: " + physicalLine + ":" + scrollLine); } //}}} ensurePhysicalLineIsVisible(); int screenLines = getScreenLineCount(physicalLine); if(skew >= screenLines) skew = screenLines - 1; //{{{ Debug code if(Debug.VERIFY_FIRST_LINE) { int verifyScrollLine = 0; for(int i = 0; i < buffer.getLineCount(); i++) { if(!isLineVisible(i)) continue; if(i >= physicalLine) break; verifyScrollLine += getScreenLineCount(i); } if(verifyScrollLine != scrollLine) { Exception ex = new Exception(scrollLine + ":" + verifyScrollLine); Log.log(Log.ERROR,this,ex); new org.gjt.sp.jedit.gui.BeanShellErrorDialog(null,ex); } } if(Debug.SCROLL_DEBUG) { Log.log(Log.DEBUG,this,"changed() after: " + physicalLine + ":" + scrollLine); } //}}} textArea.updateScrollBars(); textArea.recalculateLastPhysicalLine(); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/ddcee29fe61f20b094813d0b0cba5541edc2b6db/DisplayManager.java/buggy/org/gjt/sp/jedit/textarea/DisplayManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3550,
1435,
202,
202,
95,
1082,
202,
759,
12187,
95,
4015,
981,
1082,
202,
430,
12,
2829,
18,
2312,
14555,
67,
9394,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3550,
1435,
202,
202,
95,
1082,
202,
759,
12187,
95,
4015,
981,
1082,
202,
430,
12,
2829,
18,
2312,
14555,
67,
9394,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
... | ||
this.output.addRef(encodeTypeEntry(new char[][]{parmDecl.getNameCharArray()}, VAR, ICSearchConstants.DECLARATIONS)); | this.output.addRef(encodeTypeEntry(new char[][]{parmDecl.getNameCharArray()}, VAR, ICSearchConstants.DECLARATIONS),indexFlag); | public void addFunctionDeclaration(IASTFunction function){ this.output.addRef(encodeEntry(function.getFullyQualifiedNameCharArrays(),FUNCTION_DECL,FUNCTION_DECL_LENGTH)); Iterator i=function.getParameters(); while (i.hasNext()){ Object parm = i.next(); if (parm instanceof IASTParameterDeclaration){ IASTParameterDeclaration parmDecl = (IASTParameterDeclaration) parm; this.output.addRef(encodeTypeEntry(new char[][]{parmDecl.getNameCharArray()}, VAR, ICSearchConstants.DECLARATIONS)); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/2473fc9bad9772bea7e830611534fa1d7df713b5/AbstractIndexer.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/AbstractIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
2083,
6094,
12,
45,
9053,
2083,
445,
15329,
202,
202,
2211,
18,
2844,
18,
1289,
1957,
12,
3015,
1622,
12,
915,
18,
588,
16999,
12345,
2156,
12726,
9334,
7788,
67,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
2083,
6094,
12,
45,
9053,
2083,
445,
15329,
202,
202,
2211,
18,
2844,
18,
1289,
1957,
12,
3015,
1622,
12,
915,
18,
588,
16999,
12345,
2156,
12726,
9334,
7788,
67,
23... |
pattern = pattern.replaceAll("\\.", " "); pattern = pattern.replaceAll("\\,", " "); | pattern = pattern.replaceAll("\\.", ""); pattern = pattern.replaceAll("\\,", ""); | public BooleanSearcher(String pattern, boolean CaseSensitive) throws ParserException { Hashtable matcherTab = new Hashtable(); caseSensitive = CaseSensitive; pattern = pattern.replaceAll("\\\"", " "); pattern = pattern.replaceAll("\\(", " ( "); pattern = pattern.replaceAll("\\)", " ) "); pattern = pattern.replaceAll("\\.", " "); pattern = pattern.replaceAll("\\,", " "); StringTokenizer ST = new StringTokenizer(pattern); Vector part = new Vector(); while (ST.hasMoreElements()) { String S = ST.nextToken(); if (S.equals("(")) { part.add(subPart(ST)); } else { part.add(S); } } root = getBlock(part, caseSensitive, matcherTab); root = root.finish(); } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/4917b38b2e9c3be40bb1cae0456ac3ba0863bcf9/BooleanSearcher.java/clean/tvbrowser/src/tvbrowser/core/search/booleansearch/BooleanSearcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3411,
2979,
264,
12,
780,
1936,
16,
1250,
12605,
14220,
13,
1216,
27990,
288,
565,
18559,
4546,
5661,
273,
394,
18559,
5621,
565,
20975,
273,
12605,
14220,
31,
565,
1936,
273,
1936,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3411,
2979,
264,
12,
780,
1936,
16,
1250,
12605,
14220,
13,
1216,
27990,
288,
565,
18559,
4546,
5661,
273,
394,
18559,
5621,
565,
20975,
273,
12605,
14220,
31,
565,
1936,
273,
1936,
... |
boolean synPredMatched64 = false; if ((((LA(1) >= LITERAL_child && LA(1) <= 65)))) { int _m64 = mark(); synPredMatched64 = true; | boolean synPredMatched81 = false; if ((((LA(1) >= LITERAL_child && LA(1) <= 77)))) { int _m81 = mark(); synPredMatched81 = true; | public final void forwardOrReverseStep() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST forwardOrReverseStep_AST = null; boolean synPredMatched64 = false; if ((((LA(1) >= LITERAL_child && LA(1) <= 65)))) { int _m64 = mark(); synPredMatched64 = true; inputState.guessing++; try { { forwardAxisSpecifier(); match(COLON); } } catch (RecognitionException pe) { synPredMatched64 = false; } rewind(_m64); inputState.guessing--; } if ( synPredMatched64 ) { forwardAxis(); astFactory.addASTChild(currentAST, returnAST); nodeTest(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (AST)currentAST.root; } else { boolean synPredMatched66 = false; if ((((LA(1) >= LITERAL_parent && LA(1) <= 69)))) { int _m66 = mark(); synPredMatched66 = true; inputState.guessing++; try { { reverseAxisSpecifier(); match(COLON); } } catch (RecognitionException pe) { synPredMatched66 = false; } rewind(_m66); inputState.guessing--; } if ( synPredMatched66 ) { reverseAxis(); astFactory.addASTChild(currentAST, returnAST); nodeTest(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (AST)currentAST.root; } else if ((_tokenSet_1.member(LA(1)))) { abbrevStep(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = forwardOrReverseStep_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5104,
1162,
12650,
4160,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5104,
1162,
12650,
4160,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
... |
final void lock(ProcessorLock otherLock) { if (otherLock == null) { queueLock.lock(); } else { ProcessorLock.lock(queueLock, otherLock); } | final void lock() { queueLock.lock(); | final void lock(ProcessorLock otherLock) { if (otherLock == null) { queueLock.lock(); } else { ProcessorLock.lock(queueLock, otherLock); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/62994783631e20e868b65c6250b1b0c82dff528a/VmScheduler.java/buggy/core/src/core/org/jnode/vm/scheduler/VmScheduler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
918,
2176,
12,
5164,
2531,
1308,
2531,
13,
288,
3639,
309,
261,
3011,
2531,
422,
446,
13,
288,
5411,
2389,
2531,
18,
739,
5621,
3639,
289,
469,
288,
5411,
15476,
2531,
18,
739,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
918,
2176,
12,
5164,
2531,
1308,
2531,
13,
288,
3639,
309,
261,
3011,
2531,
422,
446,
13,
288,
5411,
2389,
2531,
18,
739,
5621,
3639,
289,
469,
288,
5411,
15476,
2531,
18,
739,
12,... |
if (logger.isErrorEnabled()) logger.error("Error initing SASComponentInterceptor: ",e); | logger.error("Error initing SASComponentInterceptor: ",e); | public SASComponentInterceptor(ORBInitInfo info) { orb = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB(); config = orb.getConfiguration(); logger = config.getNamedLogger("jacorb.SAS.IOR"); try { Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0); CodecFactory codec_factory = (CodecFactory)orb.resolve_initial_references("CodecFactory"); codec = codec_factory.create_codec(encoding); } catch (Exception e) { if (logger.isErrorEnabled()) logger.error("Error initing SASComponentInterceptor: ",e); } String contextClass = null; try { contextClass = config.getAttribute("jacorb.security.sas.contextClass"); try { Class c = org.jacorb.util.ObjectUtil.classForName(contextClass); sasContext = (ISASContext)c.newInstance(); } catch (Exception e) { if (logger.isErrorEnabled()) logger.error("Could not instantiate SAS Context class " + contextClass + ": " + e); } } catch( ConfigurationException ce ) { // ignore; } if (sasContext == null) { if (logger.isErrorEnabled()) logger.error("Could not load SAS context class: "+ contextClass); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7dc258e1d898c133fa8113c1af1594d926e8ccff/SASComponentInterceptor.java/buggy/src/org/jacorb/orb/standardInterceptors/SASComponentInterceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
24380,
1841,
10281,
12,
916,
38,
2570,
966,
1123,
13,
565,
288,
3639,
16823,
273,
14015,
3341,
18,
31390,
16640,
18,
16640,
18,
655,
429,
10281,
18,
916,
38,
2570,
28015,
13,
1376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24380,
1841,
10281,
12,
916,
38,
2570,
966,
1123,
13,
565,
288,
3639,
16823,
273,
14015,
3341,
18,
31390,
16640,
18,
16640,
18,
655,
429,
10281,
18,
916,
38,
2570,
28015,
13,
1376,
... |
ApplicationContext grailsContext = (ApplicationContext)getServletContext().getAttribute(GrailsRequestAttributes.APPLICATION_CONTEXT); | getServletContext().setAttribute(GrailsApplicationAttributes.PARENT_APPLICATION_CONTEXT,parent); ApplicationContext grailsContext = (ApplicationContext)getServletContext().getAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT); | protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) throws BeansException { // use config file locations if available ApplicationContext grailsContext = (ApplicationContext)getServletContext().getAttribute(GrailsRequestAttributes.APPLICATION_CONTEXT); GrailsApplication application; WebApplicationContext webContext; if(grailsContext != null) { XmlWebApplicationContext xmlContext = new XmlWebApplicationContext(); xmlContext.setParent(grailsContext); webContext = xmlContext; application = (GrailsApplication) webContext.getBean(GrailsApplication.APPLICATION_ID, GrailsApplication.class); } else { String[] locations = null; if (null != getContextConfigLocation()) { locations = StringUtils.tokenizeToStringArray( getContextConfigLocation(), ConfigurableWebApplicationContext.CONFIG_LOCATION_DELIMITERS); } // construct the SpringConfig for the container managed application application = (GrailsApplication) parent.getBean(GrailsApplication.APPLICATION_ID, GrailsApplication.class); SpringConfig springConfig = new SpringConfig(application); // return a context that obeys grails' settings webContext = new XmlWebApplicationContextDriver().getWebApplicationContext( springConfig.getBeanReferences(), parent, getServletContext(), getNamespace(), locations); getServletContext().setAttribute(GrailsRequestAttributes.APPLICATION_CONTEXT,webContext ); } // init the Grails application GrailsBootstrapClass[] bootstraps = application.getGrailsBootstrapClasses(); for (int i = 0; i < bootstraps.length; i++) { bootstraps[i].callInit( getServletContext() ); } return webContext; } | 46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/7114c6f1d726de26c95f9d3d7a44e88484d23551/GrailsDispatcherServlet.java/clean/grails/src/web/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
25555,
1042,
752,
4079,
28278,
12,
4079,
28278,
982,
13,
1216,
4823,
634,
503,
288,
3639,
368,
999,
642,
585,
7838,
309,
2319,
377,
202,
588,
4745,
1042,
7675,
542,
1499,
12,
14571,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
25555,
1042,
752,
4079,
28278,
12,
4079,
28278,
982,
13,
1216,
4823,
634,
503,
288,
3639,
368,
999,
642,
585,
7838,
309,
2319,
377,
202,
588,
4745,
1042,
7675,
542,
1499,
12,
14571,... |
return (Connection)Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{Connection.class}, handler); | Connection con = (Connection)Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{Connection.class}, handler); last.setProxy(con); return con; | public Connection getConnection() throws SQLException { if (con == null) { throw new SQLException("This PooledConnection has already been closed!"); } // Only one connection can be open at a time from this PooledConnection. See JDBC 2.0 Optional Package spec section 6.2.3 if (last != null) { last.close(); if (!con.getAutoCommit()) { try { con.rollback(); } catch (SQLException e) {} } con.clearWarnings(); } con.setAutoCommit(autoCommit); ConnectionHandler handler = new ConnectionHandler(con); last = handler; return (Connection)Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{Connection.class}, handler); } | 45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/a905eaacf015bd9903432faeb8f1f0a0f0a0c0cf/PooledConnectionImpl.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4050,
6742,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
591,
422,
446,
13,
202,
202,
95,
1082,
202,
12849,
394,
6483,
2932,
2503,
453,
22167,
1952,
711,
1818,
2118,
4375,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4050,
6742,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
591,
422,
446,
13,
202,
202,
95,
1082,
202,
12849,
394,
6483,
2932,
2503,
453,
22167,
1952,
711,
1818,
2118,
4375,
4... |
StringBuffer tag = new StringBuffer(tagPrefix); tag.append(LOCALE_SEP).append(specToFind.get()); | for (int pass=0; pass<2; ++pass) { StringBuffer tag = new StringBuffer(); if (pass == 0) { tag.append(direction == Transliterator.FORWARD ? "TransliterateTo_" : "TransliterateFrom_"); } else { tag.append("Transliterate_"); } tag.append(specToFind.get()); try { String[] subres = res.getStringArray(tag.toString()); | private Object[] findInBundle(Spec specToOpen, Spec specToFind, String variant, String tagPrefix) { // assert(specToOpen.isLocale()); ResourceBundle res = specToOpen.getBundle(); if (res == null) { // This means that the bundle's locale does not match // the current level of iteration for the spec. return null; } StringBuffer tag = new StringBuffer(tagPrefix); tag.append(LOCALE_SEP).append(specToFind.get()); try { // The TranslateTo_xxx or TranslateFrom_xxx resource is // an array of strings of the format { <v0>, <r0>, ... }. // Each <vi> is a variant name, and each <ri> is a rule. String[] subres = res.getStringArray(tag.toString()); // assert(subres != null); // assert(subres.length % 2 == 0); int i = 0; if (variant.length() != 0) { for (i=0; i<subres.length; i+= 2) { if (subres[i].equalsIgnoreCase(variant)) { break; } } } if (i < subres.length) { // We have a match, or there is no variant and i == 0. // We have succeeded in loading a string from the // locale resources. Return the rule string which // will itself become the registry entry. return new Object[] { subres[i+1] }; } } catch (MissingResourceException e) {} // If we get here we had a missing resource exception or we // failed to find a desired variant. return null; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/2da0c75ff8153ad27296c84f4b2e62667eeebf2a/TransliteratorRegistry.java/clean/icu4j/src/com/ibm/icu/text/TransliteratorRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
8526,
1104,
382,
3405,
12,
1990,
857,
774,
3678,
16,
21394,
4185,
857,
774,
3125,
16,
21394,
514,
5437,
16,
21394,
514,
1047,
2244,
13,
288,
3639,
368,
1815,
12,
2793,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
8526,
1104,
382,
3405,
12,
1990,
857,
774,
3678,
16,
21394,
4185,
857,
774,
3125,
16,
21394,
514,
5437,
16,
21394,
514,
1047,
2244,
13,
288,
3639,
368,
1815,
12,
2793,
774,
... |
document = documentBuilder.parse(new InputSource(new StringReader(request.substring(request.indexOf("<"))))); | document = documentBuilder.parse(new InputSource(new StringReader(request))); | public void process(String request, Writer response) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); DocumentBuilder documentBuilder = null; try { documentBuilder = factory.newDocumentBuilder(); } catch (ParserConfigurationException e) { throw Util.newError(e, "Error processing '" + request + "'"); } Document document = null; try { //CG document = documentBuilder.parse(new InputSource(new StringReader(request.substring(request.indexOf("<"))))); } catch (SAXException e) { throw Util.newError(e, "Error processing '" + request + "'"); } catch (IOException e) { throw Util.newError(e, "Error processing '" + request + "'"); } Element documentElement = document.getDocumentElement(); try { process(documentElement, new SAXHandler(new SAXWriter(response))); } catch (SAXException e) { e.printStackTrace(); } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/f2c971d49821a58381ed2af618ceadbaf62099ce/XmlaMediator.java/clean/src/main/mondrian/xmla/XmlaMediator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
12,
780,
590,
16,
5497,
766,
13,
288,
3639,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
3272,
18,
542,
3402,
10155,
12,
3767,
1769,
3639,
4319,
1263,
1668,
1263,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
12,
780,
590,
16,
5497,
766,
13,
288,
3639,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
3272,
18,
542,
3402,
10155,
12,
3767,
1769,
3639,
4319,
1263,
1668,
1263,... |
Collections.sort(returnValue); | Collections.sort(returnValue); | public Vector readAllPropertydefinitions(CmsUser currentUser, CmsProject currentProject, int resourceType) throws CmsException { Vector returnValue = null; returnValue = (Vector) m_propertyDefVectorCache.get(Integer.toString(resourceType)); if (returnValue == null){ returnValue = m_dbAccess.readAllPropertydefinitions(resourceType); Collections.sort(returnValue); // TESTFIX (a.kandzior@alkacon.com) m_propertyDefVectorCache.put(Integer.toString(resourceType), returnValue); } return returnValue; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/c4663733ddc9261232a4709c149b0f4d3207696e/CmsResourceBroker.java/clean/src/com/opencms/file/genericSql/CmsResourceBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
31267,
1396,
13314,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
29159,
509,
14110,
13,
3639,
1216,
11228,
288,
3639,
5589,
7750,
273,
446,
31,
3639,
7750,
273,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
31267,
1396,
13314,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
29159,
509,
14110,
13,
3639,
1216,
11228,
288,
3639,
5589,
7750,
273,
446,
31,
3639,
7750,
273,
261,
... |
doAction( getVariable() ); | doAction( fVariables ); | public void run( IAction action ) { if ( getVariable() != null ) { final MultiStatus ms = new MultiStatus( CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, "", null ); BusyIndicator.showWhile( Display.getCurrent(), new Runnable() { public void run() { try { doAction( getVariable() ); } catch( DebugException e ) { ms.merge( e.getStatus() ); } } } ); if ( !ms.isOK() ) { IWorkbenchWindow window = CDebugUIPlugin.getActiveWorkbenchWindow(); if ( window != null ) { CDebugUIPlugin.errorDialog( "Unable to set format of variable.", ms ); } else { CDebugUIPlugin.log( ms ); } } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c6f2a35f9c3b95851027ef1f79bf454fc90cd08c/VariableFormatActionDelegate.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
467,
1803,
1301,
262,
202,
95,
202,
202,
430,
261,
13522,
1435,
480,
446,
262,
202,
202,
95,
1082,
202,
6385,
5991,
1482,
4086,
273,
394,
5991,
1482,
12,
385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
467,
1803,
1301,
262,
202,
95,
202,
202,
430,
261,
13522,
1435,
480,
446,
262,
202,
202,
95,
1082,
202,
6385,
5991,
1482,
4086,
273,
394,
5991,
1482,
12,
385,
... |
log.log( Level.WARNING, e.getMessage( ), e ); | addException( context, e ); | public static void handleBeforeFactory( ReportDesignHandle report, ExecutionContext context ) { try { IReportDesign reportDesign = new ReportDesign( report ); // TODO: Wrap report if ( handleJS( reportDesign, report.getBeforeFactory( ), context ) .didRun( ) ) return; IReportEventHandler eh = ( IReportEventHandler ) getInstance( report ); if ( eh != null ) eh.beforeFactory( reportDesign, context.getReportContext( ) ); } catch ( Exception e ) { log.log( Level.WARNING, e.getMessage( ), e ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0422a1db84842d1e332663c3d4c7e2a8109aca8/ReportScriptExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ReportScriptExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
4649,
1733,
12,
8706,
15478,
3259,
2605,
16,
1082,
202,
3210,
1042,
819,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
45,
4820,
15478,
2605,
15478,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1640,
4649,
1733,
12,
8706,
15478,
3259,
2605,
16,
1082,
202,
3210,
1042,
819,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
45,
4820,
15478,
2605,
15478,
27... |
osTask.setDirectory(dir); | { if(dir.equals("off")) osTask.setEnabled(false); else osTask.setDirectory(dir); } | public ConsoleInstall() { installer = new Install(); String appName = installer.getProperty("app.name"); String appVersion = installer.getProperty("app.version"); BufferedReader in = new BufferedReader(new InputStreamReader( System.in)); System.out.println("*** " + appName + " " + appVersion + " installer"); OperatingSystem os = OperatingSystem.getOperatingSystem(); String installDir = os.getInstallDirectory(appName,appVersion); System.out.print("Installation directory: [" + installDir + "] "); System.out.flush(); String _installDir = readLine(in); if(_installDir.length() != 0) installDir = _installDir; OperatingSystem.OSTask[] osTasks = os.getOSTasks(installer); for(int i = 0; i < osTasks.length; i++) { OperatingSystem.OSTask osTask = osTasks[i]; String label = osTask.getLabel(); // label == null means no configurable options if(label != null) { String dir = osTask.getDirectory(); System.out.print(label + " [" + dir + "] "); System.out.flush(); dir = readLine(in); if(dir.length() != 0) osTask.setDirectory(dir); } } int compCount = installer.getIntegerProperty("comp.count"); Vector components = new Vector(compCount); System.out.println("*** Program components to install"); for(int i = 0; i < compCount; i++) { String fileset = installer.getProperty("comp." + i + ".fileset"); String osDep = installer.getProperty("comp." + i + ".os"); if(osDep != null) { if(!os.getClass().getName().endsWith(osDep)) { continue; } } System.out.print("Install " + installer.getProperty("comp." + i + ".name") + " (" + installer.getProperty("comp." + i + ".disk-size") + "Kb) [Y/n]? "); String line = readLine(in); if(line.length() == 0 || line.charAt(0) == 'y' || line.charAt(0) == 'Y') components.addElement(fileset); } System.out.println("*** Starting installation..."); ConsoleProgress progress = new ConsoleProgress(); InstallThread thread = new InstallThread( installer,progress,installDir,osTasks, 0 /* XXX */,components); thread.start(); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/eeb5019ce9ab3ee5ac558fdeab088eca981c61da/ConsoleInstall.java/buggy/installer/ConsoleInstall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9657,
6410,
1435,
202,
95,
202,
202,
20163,
273,
394,
10284,
5621,
202,
202,
780,
10236,
273,
16050,
18,
588,
1396,
2932,
2910,
18,
529,
8863,
202,
202,
780,
595,
1444,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9657,
6410,
1435,
202,
95,
202,
202,
20163,
273,
394,
10284,
5621,
202,
202,
780,
10236,
273,
16050,
18,
588,
1396,
2932,
2910,
18,
529,
8863,
202,
202,
780,
595,
1444,
273,
1... |
return ((SocketChannelImpl) ch).getNativeFD(); | NIOSocket socket = (NIOSocket) ((SocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); | public int getNativeFD() { return ((SocketChannelImpl) ch).getNativeFD(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/decc5d82ba0a18c6445f683c0d1a3d78fe4b1564/SocketChannelSelectionKey.java/clean/core/src/classpath/gnu/gnu/java/nio/SocketChannelSelectionKey.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
25945,
16894,
1435,
225,
288,
565,
423,
4294,
4534,
2987,
273,
261,
50,
4294,
4534,
13,
14015,
4534,
2909,
2828,
13,
462,
2934,
7814,
5621,
327,
2987,
18,
588,
13360,
4534,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
25945,
16894,
1435,
225,
288,
565,
423,
4294,
4534,
2987,
273,
261,
50,
4294,
4534,
13,
14015,
4534,
2909,
2828,
13,
462,
2934,
7814,
5621,
327,
2987,
18,
588,
13360,
4534,
282... |
} | } | public void run() throws Exception { Log log = LogFactory.getLog(MisfireExample.class); log.info("------- Initializing -------------------"); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete -----------"); log.info("------- Scheduling Jobs -----------"); // jobs can be scheduled before start() has been called // get a "nice round" time a few seconds in the future... long ts = TriggerUtils.getNextGivenSecondDate(null, 15).getTime(); // statefulJob1 will run every three seconds // (but it will delay for ten seconds) JobDetail job = new JobDetail("statefulJob1", "group1", StatefulDumbJob.class); job.getJobDataMap().put(MisfireJob.EXECUTION_DELAY, 10000L); SimpleTrigger trigger = new SimpleTrigger("trigger1", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 3000L); Date ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // statefulJob2 will run every three seconds // (but it will delay for ten seconds) job = new JobDetail("statefulJob2", "group1", StatefulDumbJob.class); job.getJobDataMap().put(MisfireJob.EXECUTION_DELAY, 10000L); trigger = new SimpleTrigger("trigger2", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 3000L); trigger .setMisfireInstruction(SimpleTrigger.MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); log.info("------- Starting Scheduler ----------------"); // jobs don't start firing until start() has been called... sched.start(); log.info("------- Started Scheduler -----------------"); try { // sleep for ten minutes for triggers to file.... Thread.sleep(600L * 1000L); } catch (Exception e) { } log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.numJobsExecuted() + " jobs."); } | 55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/51ce7552fa3eb48cf96a05bff5bca6616477f94b/MisfireExample.java/buggy/examples/src/java/org/quartz/examples/example5/MisfireExample.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
1216,
1185,
288,
202,
202,
1343,
613,
273,
1827,
1733,
18,
588,
1343,
12,
49,
7396,
577,
10908,
18,
1106,
1769,
202,
202,
1330,
18,
1376,
2932,
17082,
10188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
1216,
1185,
288,
202,
202,
1343,
613,
273,
1827,
1733,
18,
588,
1343,
12,
49,
7396,
577,
10908,
18,
1106,
1769,
202,
202,
1330,
18,
1376,
2932,
17082,
10188,
... |
path = Helper.getPixelsPath(pixels.getId()); | PixelBuffer (Pixels pixels) { if (pixels == null) throw new NullPointerException( "Expecting a not-null pixels element."); this.pixels = pixels; path = Helper.getPixelsPath(pixels.getId()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelBuffer.java/clean/components/omeio-nio/src/ome/io/nio/PixelBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
26070,
1892,
261,
18079,
8948,
13,
565,
288,
3639,
309,
261,
21084,
422,
446,
13,
5411,
604,
394,
10108,
12,
10792,
315,
24439,
279,
486,
17,
2011,
8948,
930,
1199,
1769,
7734,
333,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
26070,
1892,
261,
18079,
8948,
13,
565,
288,
3639,
309,
261,
21084,
422,
446,
13,
5411,
604,
394,
10108,
12,
10792,
315,
24439,
279,
486,
17,
2011,
8948,
930,
1199,
1769,
7734,
333,
18,
... | |
public Segment(NutchFileSystem nfs, File segmentDir, NutchConf nutchConf) throws IOException { this.nfs = nfs; | public Segment(FileSystem fs, File segmentDir, Configuration conf) throws IOException { this.fs = fs; | public Segment(NutchFileSystem nfs, File segmentDir, NutchConf nutchConf) throws IOException { this.nfs = nfs; this.segmentDir = segmentDir; this.nutchConf = nutchConf; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/FetchedSegments.java/clean/src/java/org/apache/nutch/searcher/FetchedSegments.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10807,
12,
50,
322,
343,
11785,
290,
2556,
16,
1387,
3267,
1621,
16,
423,
322,
343,
3976,
290,
322,
343,
3976,
13,
1216,
1860,
288,
1377,
333,
18,
82,
2556,
273,
290,
2556,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10807,
12,
50,
322,
343,
11785,
290,
2556,
16,
1387,
3267,
1621,
16,
423,
322,
343,
3976,
290,
322,
343,
3976,
13,
1216,
1860,
288,
1377,
333,
18,
82,
2556,
273,
290,
2556,
31,
... |
qnames[i] = (QName)elements.elementAt(i); | qnames[i] = (QName) elements.elementAt(i); | public void setCdataSectionElements(Vector elements) { if(m_shouldRecordHasBeenSet) m_cdataElementsHasBeenSet = true; int n = elements.size(); org.apache.serialize.QName[] qnames = new QName[n]; for(int i = 0; i < n; i++) { qnames[i] = (QName)elements.elementAt(i); } super.setCDataElements(qnames); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/OutputFormatExtended.java/buggy/src/org/apache/xalan/templates/OutputFormatExtended.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
892,
5285,
3471,
12,
5018,
2186,
13,
225,
288,
565,
309,
12,
81,
67,
13139,
2115,
5582,
25931,
694,
13,
1377,
312,
67,
71,
892,
3471,
5582,
25931,
694,
273,
638,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11440,
892,
5285,
3471,
12,
5018,
2186,
13,
225,
288,
565,
309,
12,
81,
67,
13139,
2115,
5582,
25931,
694,
13,
1377,
312,
67,
71,
892,
3471,
5582,
25931,
694,
273,
638,
31,
... |
JNIFunctions[jniIndex] = mths[i].getMostRecentlyGeneratedInstructions(); | JNIFunctions[jniIndex] = mths[i].getCurrentCompiledMethod().getInstructions(); | public static void boot() { if (initialized) return; // fill an array of JNI names setNames(); // create method ID for JNI transition stackframes // XXX now have method specific JNICompilerInfos SES 073101 // javaToCCompilerInfo = new VM_JNICompilerInfo(); // fill in the IP entries for each AIX linkage triplet try { VM_Class cls = VM_Class.forName("VM_JNIFunctions"); VM_Method[] mths = cls.getDeclaredMethods(); for (int i=0; i<mths.length; i++) { String methodName = mths[i].getName().toString(); int jniIndex = indexOf(methodName); if (jniIndex!=-1) { JNIFunctions[jniIndex] = mths[i].getMostRecentlyGeneratedInstructions(); // VM.sysWrite(" " + methodName + "=" + VM.intAsHexString(JNIFunctions[jniIndex])); } } } catch (VM_ResolutionException e) { throw new InternalError("VM_JNIEnvironment fails to initialize, has the class been renamed\n"); } // store RVM JTOC address in last (extra) entry in JNIFunctions array // to be restored when native C invokes JNI functions implemented in java // // following causes exception in checkstore, so forced to setMemoryWord instead // JNIFunctions[FUNCTIONCOUNT+1] = VM_Magic.addressAsByteArray(VM_Magic.getTocPointer()); VM_Magic.setMemoryAddress(VM_Magic.objectAsAddress(JNIFunctions).add(JNIFUNCTIONS_JTOC_OFFSET), VM_Magic.getTocPointer()); initialized = true; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/391f1b893c821a6d98fc2cd6686dac315402ba87/VM_JNIEnvironment.java/clean/rvm/src/vm/arch/intel/jni/VM_JNIEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4835,
1435,
288,
565,
309,
261,
13227,
13,
1377,
327,
31,
565,
368,
3636,
392,
526,
434,
804,
50,
45,
1257,
565,
444,
1557,
5621,
565,
368,
752,
707,
1599,
364,
804,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4835,
1435,
288,
565,
309,
261,
13227,
13,
1377,
327,
31,
565,
368,
3636,
392,
526,
434,
804,
50,
45,
1257,
565,
444,
1557,
5621,
565,
368,
752,
707,
1599,
364,
804,
5... |
if (miBreakpoint != null) | if (miBreakpoint != null) { | public boolean isTemporary() { if (miBreakpoint != null) return miBreakpoint.isTemporary(); return (type == ICDIBreakpoint.TEMPORARY); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7d75673d862d5b955ccf6511a6ed5d52ee5f7cbd/Breakpoint.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Breakpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
11685,
1435,
288,
202,
202,
430,
261,
9197,
20552,
480,
446,
13,
1082,
202,
2463,
12837,
20552,
18,
291,
11685,
5621,
202,
202,
2463,
261,
723,
422,
26899,
2565,
2055... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
11685,
1435,
288,
202,
202,
430,
261,
9197,
20552,
480,
446,
13,
1082,
202,
2463,
12837,
20552,
18,
291,
11685,
5621,
202,
202,
2463,
261,
723,
422,
26899,
2565,
2055... |
vpContentIPD, vpContentBPD); | getContentAreaIPD(), vpContentBPD); | private LinkedList getNextKnuthElementsAbsolute(LayoutContext context, int alignment) { autoHeight = false; Point offset = getAbsOffset(); int allocBPD, allocIPD; if (height.getEnum() != EN_AUTO) { allocBPD = height.getValue(this); //this is the content-height allocBPD += getBPIndents(); } else { allocBPD = 0; if (abProps.bottom.getEnum() != EN_AUTO) { int availHeight; if (isFixed()) { availHeight = (int)getCurrentPV().getViewArea().getHeight(); } else { availHeight = context.getStackLimit().opt; } allocBPD = availHeight; allocBPD -= offset.y; if (abProps.bottom.getEnum() != EN_AUTO) { allocBPD -= abProps.bottom.getValue(this); if (allocBPD < 0) { log.error("The current combination of top and bottom properties results" + " in a negative extent for the block-container. 'bottom' may be" + " at most " + (allocBPD + abProps.bottom.getValue(this)) + " mpt," + " but was actually " + abProps.bottom.getValue(this) + " mpt." + " The nominal available height is " + availHeight + " mpt."); allocBPD = 0; } } else { if (allocBPD < 0) { log.error("The current combination of top and bottom properties results" + " in a negative extent for the block-container. 'top' may be" + " at most " + availHeight + " mpt," + " but was actually " + offset.y + " mpt." + " The nominal available height is " + availHeight + " mpt."); allocBPD = 0; } } } else { autoHeight = true; } } if (width.getEnum() != EN_AUTO) { allocIPD = width.getValue(this); //this is the content-width allocIPD += getIPIndents(); } else { int availWidth; if (isFixed()) { availWidth = (int)getCurrentPV().getViewArea().getWidth(); } else { availWidth = context.getRefIPD(); } allocIPD = availWidth; if (abProps.left.getEnum() != EN_AUTO) { allocIPD -= abProps.left.getValue(this); } if (abProps.right.getEnum() != EN_AUTO) { allocIPD -= abProps.right.getValue(this); if (allocIPD < 0) { log.error("The current combination of left and right properties results" + " in a negative extent for the block-container. 'right' may be" + " at most " + (allocIPD + abProps.right.getValue(this)) + " mpt," + " but was actually " + abProps.right.getValue(this) + " mpt." + " The nominal available width is " + availWidth + " mpt."); allocIPD = 0; } } else { if (allocIPD < 0) { log.error("The current combination of left and right properties results" + " in a negative extent for the block-container. 'left' may be" + " at most " + allocIPD + " mpt," + " but was actually " + abProps.left.getValue(this) + " mpt." + " The nominal available width is " + availWidth + " mpt."); allocIPD = 0; } } } vpContentBPD = allocBPD - getBPIndents(); vpContentIPD = allocIPD - getIPIndents(); double contentRectOffsetX = offset.getX(); contentRectOffsetX += getBlockContainerFO() .getCommonMarginBlock().startIndent.getValue(this); double contentRectOffsetY = offset.getY(); contentRectOffsetY += getSpaceBefore(); //TODO Uhm, is that necessary? contentRectOffsetY += getBlockContainerFO() .getCommonBorderPaddingBackground().getBorderBeforeWidth(false); contentRectOffsetY += getBlockContainerFO() .getCommonBorderPaddingBackground().getPaddingBefore(false, this); Rectangle2D rect = new Rectangle2D.Double( contentRectOffsetX, contentRectOffsetY, vpContentIPD, vpContentBPD); relDims = new FODimension(0, 0); absoluteCTM = CTM.getCTMandRelDims( getBlockContainerFO().getReferenceOrientation(), getBlockContainerFO().getWritingMode(), rect, relDims); MinOptMax range = new MinOptMax(relDims.ipd); BlockContainerBreaker breaker = new BlockContainerBreaker(this, range); breaker.doLayout(relDims.bpd); boolean contentOverflows = breaker.isOverflow(); LinkedList returnList = new LinkedList(); if (!breaker.isEmpty()) { Position bcPosition = new BlockContainerPosition(this, breaker); returnList.add(new KnuthBox(0, notifyPos(bcPosition), false)); //TODO Maybe check for page overflow when autoHeight=true if (!autoHeight & (contentOverflows/*usedBPD > relDims.bpd*/)) { log.warn("Contents overflow block-container viewport: clipping"); if (getBlockContainerFO().getOverflow() == EN_HIDDEN) { clip = true; } else if (getBlockContainerFO().getOverflow() == EN_ERROR_IF_OVERFLOW) { //TODO Throw layout exception clip = true; } } } setFinished(true); return returnList; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/deefe6d121de10a46522c177a53e7df2ad483062/BlockContainerLayoutManager.java/clean/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
10688,
6927,
47,
82,
795,
3471,
10368,
12,
3744,
1042,
819,
16,
509,
8710,
13,
288,
3639,
3656,
2686,
273,
629,
31,
3639,
4686,
1384,
273,
4506,
2038,
2335,
5621,
3639,
509,
4767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10688,
6927,
47,
82,
795,
3471,
10368,
12,
3744,
1042,
819,
16,
509,
8710,
13,
288,
3639,
3656,
2686,
273,
629,
31,
3639,
4686,
1384,
273,
4506,
2038,
2335,
5621,
3639,
509,
4767,
... |
properties.setProperty("javax.sip.IP_ADDRESS", myAddress ); properties.setProperty("javax.sip.RETRANSMISSION_FILTER", "true"); | public void init() { SipFactory sipFactory = null; sipStack = null; sipFactory = SipFactory.getInstance(); sipFactory.setPathName("gov.nist"); Properties properties = new Properties(); properties.setProperty("javax.sip.IP_ADDRESS", myAddress ); properties.setProperty("javax.sip.RETRANSMISSION_FILTER", "true"); properties.setProperty("javax.sip.STACK_NAME", "shootme"); // You need 16 for logging traces. 32 for debug + traces. // Your code will limp at 32 but it is best for debugging. properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32"); properties.setProperty( "gov.nist.javax.sip.DEBUG_LOG", "shootmedebug.txt"); properties.setProperty( "gov.nist.javax.sip.SERVER_LOG", "shootmelog.txt"); try { // Create SipStack object sipStack = sipFactory.createSipStack(properties); System.out.println("sipStack = " + sipStack); } catch (PeerUnavailableException e) { // could not find // gov.nist.jain.protocol.ip.sip.SipStackImpl // in the classpath e.printStackTrace(); System.err.println(e.getMessage()); if (e.getCause() != null) e.getCause().printStackTrace(); System.exit(0); } try { headerFactory = sipFactory.createHeaderFactory(); addressFactory = sipFactory.createAddressFactory(); messageFactory = sipFactory.createMessageFactory(); ListeningPoint lp = sipStack.createListeningPoint(5070, "udp"); ListeningPoint lp1 = sipStack.createListeningPoint(5070, "tcp"); Shootme listener = this; SipProvider sipProvider = sipStack.createSipProvider(lp); System.out.println("udp provider " + sipProvider); sipProvider.addSipListener(listener); sipProvider = sipStack.createSipProvider(lp1); System.out.println("tcp provider " + sipProvider); sipProvider.addSipListener(listener); } catch (Exception ex) { System.out.println(ex.getMessage()); ex.printStackTrace(); usage(); } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/Shootme.java/clean/src/examples/busy/Shootme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1435,
288,
202,
202,
17550,
1733,
10341,
1733,
273,
446,
31,
202,
202,
28477,
2624,
273,
446,
31,
202,
202,
28477,
1733,
273,
13475,
1733,
18,
588,
1442,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
1435,
288,
202,
202,
17550,
1733,
10341,
1733,
273,
446,
31,
202,
202,
28477,
2624,
273,
446,
31,
202,
202,
28477,
1733,
273,
13475,
1733,
18,
588,
1442,
5621,
202,
... | |
protected synchronized void swapBuffers() throws GLException { | public synchronized void swapBuffers() throws GLException { | protected synchronized void swapBuffers() throws GLException { if (!CGL.flushBuffer(nsContext, nsView)) { throw new GLException("Error swapping buffers"); } } | 45742 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45742/f90ab644c419486f7894fda3725a9c81de8bb283/MacOSXOnscreenGLContext.java/clean/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
7720,
13699,
1435,
1216,
10252,
503,
288,
565,
309,
16051,
39,
11261,
18,
11330,
1892,
12,
2387,
1042,
16,
3153,
1767,
3719,
288,
1377,
604,
394,
10252,
503,
2932,
668,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
7720,
13699,
1435,
1216,
10252,
503,
288,
565,
309,
16051,
39,
11261,
18,
11330,
1892,
12,
2387,
1042,
16,
3153,
1767,
3719,
288,
1377,
604,
394,
10252,
503,
2932,
668,
7... |
return setCurrentConfigFromUrlList(ListUtil.list(FileUtil.urlOfString(s))); | return setCurrentConfigFromUrlList(ListUtil.list(FileTestUtil.urlOfString(s))); | boolean setCurrentConfigFromString(String s) throws IOException { return setCurrentConfigFromUrlList(ListUtil.list(FileUtil.urlOfString(s))); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2ac688ff2bd141379852ba7ceec3bb0f154bc83f/TestConfigManager.java/buggy/test/src/org/lockss/daemon/TestConfigManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
12589,
809,
9193,
12,
780,
272,
13,
1377,
1216,
1860,
288,
565,
327,
12589,
23852,
1489,
682,
12,
682,
1304,
18,
1098,
12,
812,
4709,
1304,
18,
718,
951,
780,
12,
87,
3719,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
12589,
809,
9193,
12,
780,
272,
13,
1377,
1216,
1860,
288,
565,
327,
12589,
23852,
1489,
682,
12,
682,
1304,
18,
1098,
12,
812,
4709,
1304,
18,
718,
951,
780,
12,
87,
3719,
1769,
... |
public Text getTextControl( Composite parent ) { // if should not have a Text( hasChoice == true ), return null // directly, avoid creating the // Text control. Because this mechod is called in various places, this // judgement is necessary. if ( hasChoice ) { return null; } // lazily creates and returns the Text control. if ( fText == null ) { fText = new Text( parent, SWT.BORDER ); fText.setFont( parent.getFont( ) ); fText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { String oldValue = fBoxValue; fBoxValue = fText.getText( ); setPresentsDefaultValue( false ); fireValueChanged( VALUE, oldValue, fBoxValue ); } } ); } return fText; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3db900b760af24686a4f6ffff7e4dc15c19b1036/ComboBoxMeasureFieldEditor.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/ComboBoxMeasureFieldEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3867,
6701,
3367,
12,
14728,
982,
262,
202,
95,
202,
202,
759,
309,
1410,
486,
1240,
279,
3867,
12,
711,
10538,
422,
638,
262,
16,
327,
446,
202,
202,
759,
5122,
16,
4543,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3867,
6701,
3367,
12,
14728,
982,
262,
202,
95,
202,
202,
759,
309,
1410,
486,
1240,
279,
3867,
12,
711,
10538,
422,
638,
262,
16,
327,
446,
202,
202,
759,
5122,
16,
4543,
4... | ||
"and c in ?", columnValue, categories); | "and c in ( ? )", columnValue, categories); | public Collection<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName, String columnValue, Collection<OnmsCategory> categories) { return find("select distinct n from OnmsNode as n " + "join n.categories c " + "left join fetch n.assetRecord " + "left join fetch n.ipInterfaces as iface " + "left join fetch iface.monitoredServices as monSvc " + "left join fetch monSvc.serviceType " + "left join fetch monSvc.currentOutages " + "where n.assetRecord."+columnName+" = ? " + "and c in ?", columnValue, categories); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/c0f1a9307ec54941e398167137730373712197f8/NodeDaoHibernate.java/clean/opennms-dao/src/main/java/org/opennms/netmgt/dao/hibernate/NodeDaoHibernate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
32,
1398,
959,
907,
34,
11135,
858,
1537,
2156,
6672,
1494,
4457,
682,
12,
780,
7578,
16,
514,
30297,
16,
2200,
32,
1398,
959,
4457,
34,
6477,
13,
288,
3639,
327,
1104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
32,
1398,
959,
907,
34,
11135,
858,
1537,
2156,
6672,
1494,
4457,
682,
12,
780,
7578,
16,
514,
30297,
16,
2200,
32,
1398,
959,
4457,
34,
6477,
13,
288,
3639,
327,
1104,
... |
private void subscribeForFileChanges() { myFileListener = new VirtualFileAdapter() { @Override public void fileCreated(VirtualFileEvent e) { if (notForMe(e)) return; //System.out.println("file created"); createFile(e.getFile()); } @Override public void contentsChanged(VirtualFileEvent e) { if (notForMe(e)) return; //System.out.println("content changed"); changeFileContent(e.getFile()); } @Override public void beforePropertyChange(VirtualFilePropertyEvent e) { if (notForMe(e)) return; if (!e.getPropertyName().equals(VirtualFile.PROP_NAME)) return; //System.out.println("renamed"); rename(e.getFile(), (String)e.getNewValue()); } @Override public void beforeFileMovement(VirtualFileMoveEvent e) { if (notForMe(e)) return; //System.out.println("before moved"); move(e.getFile(), e.getNewParent()); } @Override public void beforeFileDeletion(VirtualFileEvent e) { if (notForMe(e)) return; //System.out.println("before deleted"); delete(e.getFile()); } private boolean notForMe(VirtualFileEvent e) { return myRootManager.getFileIndex().getModuleForFile(e.getFile()) == null; } }; myFileManager.addVirtualFileListener(myFileListener); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/41bbb98aea15f2dec26e77580e3200ec838f6d2d/LocalVcsService.java/buggy/LocalVcs/src/com/intellij/localvcs/integration/LocalVcsService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
9174,
1290,
812,
7173,
1435,
95,
4811,
812,
2223,
33,
2704,
6466,
812,
4216,
1435,
95,
36,
6618,
482,
6459,
768,
6119,
12,
6466,
812,
1133,
73,
15329,
430,
12,
902,
1290,
4667,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
9174,
1290,
812,
7173,
1435,
95,
4811,
812,
2223,
33,
2704,
6466,
812,
4216,
1435,
95,
36,
6618,
482,
6459,
768,
6119,
12,
6466,
812,
1133,
73,
15329,
430,
12,
902,
1290,
4667,
1... | ||
T result = null; T next; for (int i = 0; i < this.size() - 1; i++) { result = this.get(i); next = this.get(i + 1); result = reduceFunc.apply(result, next); | T result = this.get(0); for (int i = 1; i < this.size(); i++) { result = reduceFunc.apply(result, this.get(i)); | public T reduceLeft(Function._2<T, T, T> reduceFunc) { if (this.size() == 1) { return this.get(0); } T result = null; T next; for (int i = 0; i < this.size() - 1; i++) { result = this.get(i); next = this.get(i + 1); result = reduceFunc.apply(result, next); } return result; } | 7995 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7995/1de2b22f169a19f91bce59ed063533c32f00fcc4/S.java/clean/base/src/main/java/com/shuimin/base/S.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
399,
5459,
3910,
12,
2083,
6315,
22,
32,
56,
16,
399,
16,
399,
34,
5459,
2622,
13,
288,
7734,
309,
261,
2211,
18,
1467,
1435,
422,
404,
13,
288,
10792,
327,
333,
18,
588,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
1071,
399,
5459,
3910,
12,
2083,
6315,
22,
32,
56,
16,
399,
16,
399,
34,
5459,
2622,
13,
288,
7734,
309,
261,
2211,
18,
1467,
1435,
422,
404,
13,
288,
10792,
327,
333,
18,
588,
12,
... |
case 356 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } | case 353 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } | protected void consumeRule(int act) { switch ( act ) { case 29 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 43 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 47 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 48 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 49 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 50 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 53 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 54 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 59 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 60 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 67 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 68 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 69 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 70 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 86 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 88 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 90 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 91 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 92 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 93 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 98 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 99 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 100 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 101 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 104 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 108 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 120 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 121 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 122 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 123 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 125 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 126 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 127 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 129 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 130 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 133 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 137 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 138 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 139 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 146 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 149 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 151 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 154 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 155 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 156 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 157 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 158 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 163 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 164 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 165 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 166 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(false); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(false); break; case 168 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 169 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 170 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 171 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 172 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 173 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 175 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 176 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 177 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 179 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 180 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 181 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 182 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 183 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 184 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 185 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 186 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 196 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 197 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 198 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 199 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 200 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 201 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 203 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 205 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 208 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 212 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 213 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 214 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 222 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 223 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 224 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 225 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 227 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 228 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 229 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 231 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 235 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 236 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 237 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 238 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 239 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 240 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 241 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 267 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 268 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 269 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 270 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 279 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 280 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 281 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 282 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 283 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 286 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 288 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 289 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 291 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 292 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 293 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 294 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 295 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 296 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 297 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 298 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 299 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 303 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 304 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 305 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 306 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 307 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 308 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 309 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 310 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 311 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 312 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 313 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 314 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 315 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 317 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 319 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 320 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 322 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 323 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 328 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 329 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 333 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 334 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 335 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 336 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 337 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 338 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 341 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 342 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 343 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 345 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 346 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 347 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 348 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 349 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 351 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 353 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 354 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 356 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 359 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 360 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 361 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 362 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 364 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 366 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 367 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 370 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 371 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 372 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 375 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 376 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 377 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 378 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 379 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 380 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 381 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 383 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 386 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 387 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 388 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 391 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 392 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 394 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 395 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 397 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 398 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 401 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 402 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 403 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 404 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 405 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 406 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 407 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 408 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 410 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 411 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 412 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 414 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 415 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 417 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 418 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 419 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 421 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 422 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 423 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 424 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 426 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 428 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 429 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 431 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 433 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 435 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 437 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 439 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 441 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 444 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 446 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 455 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 456 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 457 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 458 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 462 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 467 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 468 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 469 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 470 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 471 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 473 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 475 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 479 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 483 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 484 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 485 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 486 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 488 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 492 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 494 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 495 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 496 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 497 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 499 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 500 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 502 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 503 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 504 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 505 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 506 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 507 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 508 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 510 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 511 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 513 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 514 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 515 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 516 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 517 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 518 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 519 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 520 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 521 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 522 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 524 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 526 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 527 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 532 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 534 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 537 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 538 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 540 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 543 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 544 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 545 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 548 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 549 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 551 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 552 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 553 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 555 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 556 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 557 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 558 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 559 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 560 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 561 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 563 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 565 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 566 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 568 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 569 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 571 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 572 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 573 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 574 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 576 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 577 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 583 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 584 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 587 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 588 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 593 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 594 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 595 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 596 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 598 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 599 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 600 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 601 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 605 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 607 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 608 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 614 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 615 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 616 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 617 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 619 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 620 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 622 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 623 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 624 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 625 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 627 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 628 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 630 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 631 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 633 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 634 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 636 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 637 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 639 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 640 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 642 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 643 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 648 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 649 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 650 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 655 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 656 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(true); break; case 657 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeMethodHeaderName(true); break; case 658 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyMethodHeaderDefaultValue() ; break; case 659 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::= DefaultValue"); } //$NON-NLS-1$ consumeMethodHeaderDefaultValue(); break; case 660 : if (DEBUG) { System.out.println("AnnotationMethodHeader ::= AnnotationMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 661 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 669 : if (DEBUG) { System.out.println("AnnotationName ::= AT Name"); } //$NON-NLS-1$ consumeAnnotationName() ; break; case 670 : if (DEBUG) { System.out.println("NormalAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 671 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 674 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 675 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 677 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 680 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 681 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 682 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 683 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 685 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 686 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AnnotationName"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 687 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; case 688 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt TypeParameters"); } //$NON-NLS-1$ consumeRecoveryMethodHeaderNameWithTypeParameters(); break; case 689 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeRecoveryMethodHeaderName(); break; case 690 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 691 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e2b84708e7e9f1a0476422497e11c18bab983558/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... |
v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_FONT_STRETCH_PROPERTY); String fontStretchString = v.getStringValue(); switch (fontStretchString.charAt(0)) { case 'u': if (fontStretchString.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_EXTENDED); } break; case 'e': if (fontStretchString.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED); } else { if (fontStretchString.length() == 8) { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_EXTENDED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_EXTENDED); } } break; case 's': if (fontStretchString.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_CONDENSED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_EXTENDED); } break; default: result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_REGULAR); } | String fontStretchString = CSSUtilities.getComputedStyle (element, SVGCSSEngine.FONT_STRETCH_INDEX).getStringValue(); result.put(TextAttribute.WIDTH, TextUtilities.convertFontStretch(element)); | protected Map getAttributeMap(BridgeContext ctx, Element element, GraphicsNode node, TextPath textPath) { CSSOMReadOnlyStyleDeclaration cssDecl = CSSUtilities.getComputedStyle(element); UnitProcessor.Context uctx = UnitProcessor.createContext(ctx, element); Map result = new HashMap(); CSSPrimitiveValue v; String s; float f; short t; boolean verticalText = false; result.put(GVTAttributedCharacterIterator.TextAttribute.TEXT_COMPOUND_DELIMITER, element); if (element.getTagName().equals(SVG_ALT_GLYPH_TAG)) { result.put(GVTAttributedCharacterIterator.TextAttribute.ALT_GLYPH_HANDLER, new SVGAltGlyphHandler(ctx, element)); } if (textPath != null) { result.put(GVTAttributedCharacterIterator.TextAttribute.TEXTPATH, textPath); } // Text-anchor v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_TEXT_ANCHOR_PROPERTY); s = v.getStringValue(); TextNode.Anchor a; switch (s.charAt(0)) { case 's': a = TextNode.Anchor.START; break; case 'm': a = TextNode.Anchor.MIDDLE; break; default: a = TextNode.Anchor.END; } result.put(GVTAttributedCharacterIterator.TextAttribute.ANCHOR_TYPE, a); // Font size, in user space units. float fs = TextUtilities.convertFontSize(element, ctx, cssDecl, uctx); result.put(TextAttribute.SIZE, new Float(fs)); // Font weight // TODO: improve support for relative values // (e.g. "lighter", "bolder") v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_FONT_WEIGHT_PROPERTY); String fontWeightString; if (v.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) { fontWeightString = v.getStringValue(); //System.out.println("CSS Font Weight "+v.getStringValue()); if (v.getStringValue().charAt(0) == 'n') { result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_REGULAR); } else if (v.getStringValue().charAt(0) == 'l') { result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_LIGHT); } else { result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD); } } else { //System.out.println("CSS Font Weight "+v.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)); fontWeightString = "" + v.getFloatValue(CSSPrimitiveValue.CSS_NUMBER); switch ((int)v.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)) { case 100: result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_EXTRA_LIGHT); break; case 200: result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_LIGHT); break; case 300: result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_DEMILIGHT); break; case 400: result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_REGULAR); break; case 500: result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_SEMIBOLD); break; case 600: result.put(TextAttribute.WEIGHT, //TextAttribute.WEIGHT_DEMIBOLD); TextAttribute.WEIGHT_BOLD); break; case 700: result.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD); break; case 800: result.put(TextAttribute.WEIGHT, //TextAttribute.WEIGHT_EXTRABOLD); TextAttribute.WEIGHT_BOLD); break; case 900: result.put(TextAttribute.WEIGHT, //TextAttribute.WEIGHT_ULTRABOLD); TextAttribute.WEIGHT_BOLD); } } // Font style v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_FONT_STYLE_PROPERTY); String fontStyleString = v.getStringValue(); switch (fontStyleString.charAt(0)) { case 'n': result.put(TextAttribute.POSTURE, TextAttribute.POSTURE_REGULAR); break; case 'o': case 'i': result.put(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE); } // Font stretch v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_FONT_STRETCH_PROPERTY); String fontStretchString = v.getStringValue(); switch (fontStretchString.charAt(0)) { case 'u': if (fontStretchString.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_EXTENDED); } break; case 'e': if (fontStretchString.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED); } else { if (fontStretchString.length() == 8) { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_EXTENDED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_EXTENDED); } } break; case 's': if (fontStretchString.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_CONDENSED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_EXTENDED); } break; default: result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_REGULAR); } // Font family CSSValueList ff = (CSSValueList)cssDecl.getPropertyCSSValueInternal (CSS_FONT_FAMILY_PROPERTY); // make a list of GVTFontFamily objects Vector fontFamilyList = new Vector(); for (int i = 0; i < ff.getLength(); i++) { v = (CSSPrimitiveValue)ff.item(i); String fontFamilyName = v.getStringValue(); GVTFontFamily fontFamily = SVGFontUtilities.getFontFamily(element, ctx, fontFamilyName, fontWeightString, fontStyleString); fontFamilyList.add(fontFamily); } result.put(GVTAttributedCharacterIterator.TextAttribute.GVT_FONT_FAMILIES, fontFamilyList); // Text baseline adjustment. v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_BASELINE_SHIFT_PROPERTY); if (v.getPrimitiveType() == CSSPrimitiveValue.CSS_IDENT) { s = v.getStringValue(); //System.out.println("Baseline-shift: "+s); switch (s.charAt(2)) { case 'p': //suPerscript result.put(GVTAttributedCharacterIterator. TextAttribute.BASELINE_SHIFT, TextAttribute.SUPERSCRIPT_SUPER); break; case 'b': //suBscript result.put(GVTAttributedCharacterIterator. TextAttribute.BASELINE_SHIFT, TextAttribute.SUPERSCRIPT_SUB); break; case 's': //baSeline break; } } else if (v.getPrimitiveType() == CSSPrimitiveValue.CSS_PERCENTAGE) { f = v.getFloatValue(v.getPrimitiveType()); result.put(GVTAttributedCharacterIterator.TextAttribute.BASELINE_SHIFT, new Float(f*fs/100f)); } else { f = UnitProcessor.cssOtherLengthToUserSpace (v, CSS_BASELINE_SHIFT_PROPERTY, uctx); result.put(GVTAttributedCharacterIterator.TextAttribute.BASELINE_SHIFT, new Float(f)); } // Unicode-bidi mode v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_UNICODE_BIDI_PROPERTY); s = v.getStringValue(); if (s.charAt(0) == 'n') { result.put(TextAttribute.BIDI_EMBEDDING, new Integer(0)); } else { // Text direction // XXX: this needs to coordinate with the unicode-bidi // property, so that when an explicit reversal // occurs, the BIDI_EMBEDDING level is // appropriately incremented or decremented. // Note that direction is implicitly handled by unicode // BiDi algorithm in most cases, this property // is only needed when one wants to override the // normal writing direction for a string/substring. v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_DIRECTION_PROPERTY); String rs = v.getStringValue(); switch (rs.charAt(0)) { case 'l': result.put(TextAttribute.RUN_DIRECTION, TextAttribute.RUN_DIRECTION_LTR); switch (s.charAt(0)) { case 'b': // bidi-override result.put(TextAttribute.BIDI_EMBEDDING, new Integer(-2)); break; case 'e': // embed result.put(TextAttribute.BIDI_EMBEDDING, new Integer(2)); break; } break; case 'r': result.put(TextAttribute.RUN_DIRECTION, TextAttribute.RUN_DIRECTION_RTL); switch (s.charAt(0)) { case 'b': // bidi-override result.put(TextAttribute.BIDI_EMBEDDING, new Integer(-1)); break; case 'e': // embed result.put(TextAttribute.BIDI_EMBEDDING, new Integer(1)); break; } break; } } // Writing mode boolean horizontal = true; v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_WRITING_MODE_PROPERTY); s = v.getStringValue(); switch (s.charAt(0)) { case 'l': result.put(GVTAttributedCharacterIterator. TextAttribute.WRITING_MODE, GVTAttributedCharacterIterator. TextAttribute.WRITING_MODE_LTR); break; case 'r': result.put(GVTAttributedCharacterIterator. TextAttribute.WRITING_MODE, GVTAttributedCharacterIterator. TextAttribute.WRITING_MODE_RTL); break; case 't': result.put(GVTAttributedCharacterIterator. TextAttribute.WRITING_MODE, GVTAttributedCharacterIterator. TextAttribute.WRITING_MODE_TTB); horizontal = false; break; } // glyph-orientation-vertical v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_GLYPH_ORIENTATION_VERTICAL_PROPERTY); // why is it that getStringValue() throws an exception? s = v.getCssText(); switch (s.charAt(0)) { case 'a': result.put(GVTAttributedCharacterIterator. TextAttribute.VERTICAL_ORIENTATION, GVTAttributedCharacterIterator. TextAttribute.ORIENTATION_AUTO); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '.': result.put(GVTAttributedCharacterIterator. TextAttribute.VERTICAL_ORIENTATION, GVTAttributedCharacterIterator. TextAttribute.ORIENTATION_ANGLE); result.put(GVTAttributedCharacterIterator. TextAttribute.VERTICAL_ORIENTATION_ANGLE, new Float(s)); break; } // Font stretch v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_FONT_STRETCH_PROPERTY); s = v.getStringValue(); switch (s.charAt(0)) { case 'u': if (s.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_EXTENDED); } break; case 'e': if (s.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED); } else { if (s.length() == 8) { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_EXTENDED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_EXTENDED); } } break; case 's': if (s.charAt(6) == 'c') { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_CONDENSED); } else { result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_SEMI_EXTENDED); } break; default: result.put(TextAttribute.WIDTH, TextAttribute.WIDTH_REGULAR); } // text spacing properties... // Letter Spacing v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_LETTER_SPACING_PROPERTY); t = v.getPrimitiveType(); if (t != CSSPrimitiveValue.CSS_IDENT) { if (horizontal) { f = UnitProcessor.cssHorizontalCoordinateToUserSpace (v, CSS_LETTER_SPACING_PROPERTY, uctx); } else { f = UnitProcessor.cssVerticalCoordinateToUserSpace (v, CSS_LETTER_SPACING_PROPERTY, uctx); } result.put(GVTAttributedCharacterIterator. TextAttribute.LETTER_SPACING, new Float(f)); result.put(GVTAttributedCharacterIterator. TextAttribute.CUSTOM_SPACING, Boolean.TRUE); } // Word spacing v = (CSSPrimitiveValue)cssDecl.getPropertyCSSValueInternal (CSS_WORD_SPACING_PROPERTY); t = v.getPrimitiveType(); if (t != CSSPrimitiveValue.CSS_IDENT) { if (horizontal) { f = UnitProcessor.cssHorizontalCoordinateToUserSpace (v, CSS_WORD_SPACING_PROPERTY, uctx); } else { f = UnitProcessor.cssVerticalCoordinateToUserSpace (v, CSS_WORD_SPACING_PROPERTY, uctx); } result.put(GVTAttributedCharacterIterator.TextAttribute.WORD_SPACING, new Float(f)); result.put(GVTAttributedCharacterIterator. TextAttribute.CUSTOM_SPACING, Boolean.TRUE); } // Kerning s = element.getAttributeNS(null, SVG_KERNING_ATTRIBUTE); if (s.length() != 0) { if (horizontal) { f = UnitProcessor.svgHorizontalLengthToUserSpace (s, SVG_KERNING_ATTRIBUTE, uctx); } else { f = UnitProcessor.svgVerticalLengthToUserSpace (s, SVG_KERNING_ATTRIBUTE, uctx); } result.put(GVTAttributedCharacterIterator.TextAttribute.KERNING, new Float(f)); result.put(GVTAttributedCharacterIterator. TextAttribute.CUSTOM_SPACING, Boolean.TRUE); } // textLength s = element.getAttributeNS(null, SVG_TEXT_LENGTH_ATTRIBUTE); if (s.length() != 0) { if (horizontal) { f = UnitProcessor.svgHorizontalLengthToUserSpace (s, SVG_TEXT_LENGTH_ATTRIBUTE, uctx); } else { f = UnitProcessor.svgVerticalLengthToUserSpace (s, SVG_TEXT_LENGTH_ATTRIBUTE, uctx); } result.put(GVTAttributedCharacterIterator.TextAttribute.BBOX_WIDTH, new Float(f)); // lengthAdjust s = element.getAttributeNS(null, SVG_LENGTH_ADJUST_ATTRIBUTE); if (s.length() < 10) { result.put(GVTAttributedCharacterIterator. TextAttribute.LENGTH_ADJUST, GVTAttributedCharacterIterator.TextAttribute.ADJUST_SPACING); result.put(GVTAttributedCharacterIterator. TextAttribute.CUSTOM_SPACING, Boolean.TRUE); } else { result.put(GVTAttributedCharacterIterator. TextAttribute.LENGTH_ADJUST, GVTAttributedCharacterIterator.TextAttribute.ADJUST_ALL); } } return result; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/73c18fe9666e3e12716d10fc9afa64073db4c647/SVGTextElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGTextElementBridge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1635,
4061,
863,
12,
13691,
1042,
1103,
16,
21394,
3010,
930,
16,
21394,
16830,
907,
756,
16,
21394,
3867,
743,
977,
743,
13,
288,
3639,
6765,
1872,
12066,
2885,
6094,
3747,
3456,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1635,
4061,
863,
12,
13691,
1042,
1103,
16,
21394,
3010,
930,
16,
21394,
16830,
907,
756,
16,
21394,
3867,
743,
977,
743,
13,
288,
3639,
6765,
1872,
12066,
2885,
6094,
3747,
3456,
5... |
metaDataProvider = new JdbcMetaDataProvider(null); | metaDataProvider = new JdbcMetaDataProvider( null ); | protected void createMetaDataProvider( ) { if ( metaDataProvider == null ) { metaDataProvider = new JdbcMetaDataProvider(null); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7369d4ae09cc536f7476a2e0abe49a3be2517225/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
6998,
2249,
12,
262,
202,
95,
202,
202,
430,
261,
11651,
2249,
422,
446,
262,
202,
202,
95,
1082,
202,
3901,
20757,
273,
394,
24209,
6998,
2249,
12,
2011,
1769,
950... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
918,
752,
6998,
2249,
12,
262,
202,
95,
202,
202,
430,
261,
11651,
2249,
422,
446,
262,
202,
202,
95,
1082,
202,
3901,
20757,
273,
394,
24209,
6998,
2249,
12,
2011,
1769,
950... |
final IndentInfo indent = new IndentInfo(0, 0, 0); final String newWS = lastWS.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(lastWS.getTextRange(), newWS, 0); | final IndentInfo indent = new IndentInfo(0, 0, 0); final String newWS = lastWS.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(lastWS.getTextRange(), newWS, 0); | public int adjustLineIndent(final FormattingModel model, final CodeStyleSettings settings, final CodeStyleSettings.IndentOptions indentOptions, final int offset, final TextRange affectedRange) throws IncorrectOperationException { myIsActive++; try { myIsActive++; try { final FormattingDocumentModel documentModel = model.getDocumentModel(); final Block block = model.getRootBlock(); final FormatProcessor processor = new FormatProcessor(documentModel, block, settings, indentOptions, affectedRange); final LeafBlockWrapper blockAfterOffset = processor.getBlockBefore(offset); if (blockAfterOffset != null) { final WhiteSpace whiteSpace = blockAfterOffset.getWhiteSpace(); boolean wsContainsCaret = whiteSpace.getTextRange().getStartOffset() <= offset && whiteSpace.getTextRange().getEndOffset() > offset; final CharSequence text = getCharSequence(documentModel); int lineStartOffset = getLineStartOffset(offset, whiteSpace, text); processor.setAllWhiteSpacesAreReadOnly(); whiteSpace.setLineFeedsAreReadOnly(true); final IndentInfo indent; if (documentModel.getLineNumber(offset) == documentModel.getLineNumber(whiteSpace.getTextRange().getEndOffset())) { whiteSpace.setReadOnly(false); processor.formatWithoutRealModifications(); indent = new IndentInfo(0, whiteSpace.getIndentOffset(), whiteSpace.getSpaces()); } else { indent = processor.getIndentAt(offset); } final String newWS = whiteSpace.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(whiteSpace.getTextRange(), newWS, blockAfterOffset.getTextRange().getLength()); if (wsContainsCaret) { return whiteSpace.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - whiteSpace.getTextRange().getStartOffset(), " \t"); } else { return offset - whiteSpace.getTextRange().getLength() + newWS.length(); } } else { WhiteSpace lastWS = processor.getLastWhiteSpace(); int lineStartOffset = getLineStartOffset(offset, lastWS, getText(documentModel)); final IndentInfo indent = new IndentInfo(0, 0, 0); final String newWS = lastWS.generateWhiteSpace(indentOptions, lineStartOffset, indent); model.replaceWhiteSpace(lastWS.getTextRange(), newWS, 0); return lastWS.getTextRange().getStartOffset() + CharArrayUtil.shiftForward(newWS.toCharArray(), lineStartOffset - lastWS.getTextRange().getStartOffset(), " \t"); } } finally { myIsActive--; } } finally { myIsActive--; } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7e4a7f9dd4997fabed84b53b8f28cda88c3f7c17/FormatterImpl.java/clean/source/com/intellij/newCodeFormatting/impl/FormatterImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
509,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
509,
13... |
addIcode(gotoOp); recordJump(fromPC, jumpPC); itsICodeTop += 2; | if (fromPC <= jumpPC) throw Kit.codeBug(); addGotoOp(gotoOp); resolveGoto(fromPC, jumpPC); | private void addBackwardGoto(int gotoOp, int jumpPC) { if (jumpPC >= itsICodeTop) throw Kit.codeBug(); int fromPC = itsICodeTop; addIcode(gotoOp); recordJump(fromPC, jumpPC); itsICodeTop += 2; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/bc63a23d7b4a1d6e277c093eb62057be0106b31e/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
26283,
43,
6302,
12,
474,
2897,
3817,
16,
509,
11833,
3513,
13,
565,
288,
3639,
309,
261,
24574,
3513,
1545,
2097,
45,
1085,
3401,
13,
604,
1475,
305,
18,
710,
19865,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
26283,
43,
6302,
12,
474,
2897,
3817,
16,
509,
11833,
3513,
13,
565,
288,
3639,
309,
261,
24574,
3513,
1545,
2097,
45,
1085,
3401,
13,
604,
1475,
305,
18,
710,
19865,
56... |
doubles[i] = getProbs(i,instance,1); | if (!useLaplace) { doubles[i] = getProbs(i, instance, 1); } else { doubles[i] = getProbsLaplace(i, instance, 1); } | public final double [] distributionForInstance(Instance instance) throws Exception { double [] doubles = new double[instance.numClasses()]; for (int i = 0; i < doubles.length; i++) { doubles[i] = getProbs(i,instance,1); } return doubles; } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/a9fb33297839bb8afea61edcce359ca77dc6cbda/ClassifierTree.java/clean/weka/classifiers/j48/ClassifierTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1645,
5378,
7006,
1290,
1442,
12,
1442,
791,
13,
3639,
1216,
1185,
288,
565,
1645,
5378,
31446,
273,
4202,
394,
1645,
63,
1336,
18,
2107,
4818,
1435,
15533,
565,
364,
261,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1645,
5378,
7006,
1290,
1442,
12,
1442,
791,
13,
3639,
1216,
1185,
288,
565,
1645,
5378,
31446,
273,
4202,
394,
1645,
63,
1336,
18,
2107,
4818,
1435,
15533,
565,
364,
261,
474,... |
RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); | RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); | public static RubyModule createObjectSpaceModule(Ruby ruby) { RubyCallbackMethod each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true); RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); objectSpaceModule.defineModuleFunction("each_object", each_object); return objectSpaceModule; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObjectSpace.java/clean/org/jruby/RubyObjectSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
3120,
17109,
3819,
3120,
12,
54,
10340,
22155,
13,
288,
202,
202,
54,
10340,
2428,
1305,
1517,
67,
1612,
273,
1082,
202,
2704,
5685,
2428,
1305,
12,
54,
10340,
921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
3120,
17109,
3819,
3120,
12,
54,
10340,
22155,
13,
288,
202,
202,
54,
10340,
2428,
1305,
1517,
67,
1612,
273,
1082,
202,
2704,
5685,
2428,
1305,
12,
54,
10340,
921,
... |
popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { /* the most common return to parseContent () ... NOP */ } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer.toHexString (c)); else if (c == '%' && expandPE) { if (peIsError) error ("PE reference within decl in internal subset."); parsePEReference (); return readCh (); } column++; } return c; } | return c; } | private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case INPUT_STREAM: readDataChunk (); while (readBufferLength < 1) { popInput (); if (readBufferLength < 1) { readDataChunk (); } } break; default: popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { /* the most common return to parseContent () ... NOP */ } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer.toHexString (c)); // If we're in the DTD and in a context where PEs get expanded, // do so ... 1/14/2000 errata identify those contexts. There // are also spots in the internal subset where PE refs are fatal // errors, hence yet another flag. else if (c == '%' && expandPE) { if (peIsError) error ("PE reference within decl in internal subset."); parsePEReference (); return readCh (); } column++; } return c; } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1149,
855,
782,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
759,
2970,
1525,
487,
1915,
1807,
5083,
316,
326,
202,
759,
855,
1613,
16,
775,
6453,
1898,
501,
202,
759,
261,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
855,
782,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
759,
2970,
1525,
487,
1915,
1807,
5083,
316,
326,
202,
759,
855,
1613,
16,
775,
6453,
1898,
501,
202,
759,
261,
18... |
if(null != props) { | if (null != props) { | public void init(Application application) { Properties props = getVelocityProperties(application); try { if(null != props) { Velocity.init(props); } else { Velocity.init(); } log.info("Initialized Velocity successfully"); } catch (Exception e) { throw new WicketRuntimeException(e); } } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/1f29232d8f2aea5f46d22a7978a1dcfbf3cd3614/Initializer.java/buggy/wicket-contrib-velocity/src/java/wicket/contrib/velocity/Initializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
3208,
2521,
13,
202,
95,
202,
202,
2297,
3458,
273,
11031,
10603,
2297,
12,
3685,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
12,
2011,
480,
3458,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
3208,
2521,
13,
202,
95,
202,
202,
2297,
3458,
273,
11031,
10603,
2297,
12,
3685,
1769,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
12,
2011,
480,
3458,
13,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.