rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
.add(jTextField5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)
|
.add(jTextField5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE)
|
private void initComponents() { jLabel1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jButtonSave = new javax.swing.JButton(); jButtonUndo = new javax.swing.JButton(); jbPrint = new javax.swing.JButton(); jButtonClose = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jButtonToBegin = new javax.swing.JButton(); jButtonOneRowM = new javax.swing.JButton(); jButtonOneRowP = new javax.swing.JButton(); jButtonToEnd = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jLabel3 = new javax.swing.JLabel(); jComboCR = new javax.swing.JComboBox(); jLabel6 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jComboM = new javax.swing.JComboBox(); jLabel7 = new javax.swing.JLabel(); jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jTextField4 = new javax.swing.JTextField(); jLabel10 = new javax.swing.JLabel(); jTextField5 = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); jTextField6 = new javax.swing.JTextField(); jLabel12 = new javax.swing.JLabel(); jComboD = new javax.swing.JComboBox(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jTextField7 = new javax.swing.JTextField(); jComboCR2 = new javax.swing.JComboBox(); jLabel1.setText("jLabel1"); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441 \u0437\u0430 \u041a\u0430\u0441\u043e\u0432\u0430 \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f"); jPanel1.setPreferredSize(new java.awt.Dimension(263, 33)); jButtonSave.setText("\u0421\u044a\u0445\u0440\u0430\u043d\u0438"); jButtonSave.setPreferredSize(new java.awt.Dimension(79, 25)); jButtonSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSaveActionPerformed(evt); } }); jButtonSave.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonSaveKeyPressed(evt); } }); jPanel1.add(jButtonSave); jButtonUndo.setText("\u041f\u0440\u0435\u0434\u0438\u0448\u043d\u0438"); jButtonUndo.setPreferredSize(new java.awt.Dimension(87, 25)); jButtonUndo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonUndoActionPerformed(evt); } }); jButtonUndo.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonUndoKeyPressed(evt); } }); jPanel1.add(jButtonUndo); jbPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Printer.png"))); jbPrint.setText("\u041f\u0435\u0447\u0430\u0442"); jbPrint.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbPrintActionPerformed(evt); } }); jbPrint.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jbPrintKeyPressed(evt); } }); jPanel1.add(jbPrint); jButtonClose.setText("\u0417\u0430\u0442\u0432\u043e\u0440\u0438"); jButtonClose.setPreferredSize(new java.awt.Dimension(77, 25)); jButtonClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonCloseActionPerformed(evt); } }); jButtonClose.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonCloseKeyPressed(evt); } }); jPanel1.add(jButtonClose); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jPanel2.setPreferredSize(new java.awt.Dimension(400, 300)); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED), "\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f")); jPanel3.setPreferredSize(new java.awt.Dimension(230, 70)); jButtonToBegin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Navigation First 2.png"))); jButtonToBegin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonToBeginActionPerformed(evt); } }); jButtonToBegin.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonToBeginKeyPressed(evt); } }); jPanel3.add(jButtonToBegin); jButtonOneRowM.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Navigation Left 2.png"))); jButtonOneRowM.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOneRowMActionPerformed(evt); } }); jButtonOneRowM.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonOneRowMKeyPressed(evt); } }); jPanel3.add(jButtonOneRowM); jButtonOneRowP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Navigation Right 2.png"))); jButtonOneRowP.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonOneRowPActionPerformed(evt); } }); jButtonOneRowP.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonOneRowPKeyPressed(evt); } }); jPanel3.add(jButtonOneRowP); jButtonToEnd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/Navigation Last 2.png"))); jButtonToEnd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonToEndActionPerformed(evt); } }); jButtonToEnd.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jButtonToEndKeyPressed(evt); } }); jPanel3.add(jButtonToEnd); jLabel2.setText("\u041d\u043e\u043c\u0435\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442:"); jLabel5.setText("\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440:"); jTextField1.setInputVerifier(new imakante.com.InputIntegerVerifier()); jTextField1.setInputVerifier(new imakante.com.InputIntegerVerifier()); jTextField1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextField1FocusGained(evt); } }); jTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField1KeyPressed(evt); } }); jTextArea1.setColumns(20); jTextArea1.setRows(5); jTextArea1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextArea1FocusGained(evt); } }); jScrollPane1.setViewportView(jTextArea1); jLabel3.setText("\u041a\u0430\u0441\u0430:"); jComboCR.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jComboCRFocusLost(evt); } }); jComboCR.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jComboCRKeyPressed(evt); } }); jLabel6.setText("\u041d\u0430\u0441\u0440\u0435\u0449\u043d\u0430 \u043a\u0430\u0441\u0430:"); jTextField3.setInputVerifier(new imakante.com.InputDoubleVerifier()); jTextField3.setInputVerifier(new imakante.com.InputDoubleVerifier()); jTextField3.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextField3FocusGained(evt); } public void focusLost(java.awt.event.FocusEvent evt) { jTextField3FocusLost(evt); } }); jTextField3.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField3KeyPressed(evt); } }); jLabel4.setText("\u0421\u0443\u043c\u0430:"); jComboM.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jComboMFocusLost(evt); } }); jComboM.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jComboMKeyPressed(evt); } }); jLabel7.setText("\u0412\u0430\u043b\u0443\u0442\u0430:"); jXDatePicker1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jXDatePicker1KeyPressed(evt); } }); jLabel8.setText("\u0414\u0430\u0442\u0430:"); jLabel9.setText("\u0421\u0443\u043c\u0430 \u043e\u0441\u043d. \u0432\u0430\u043b\u0443\u0442\u0430:"); jTextField4.setBackground(new java.awt.Color(204, 204, 204)); jTextField4.setDisabledTextColor(new java.awt.Color(0, 0, 0)); jTextField4.setEnabled(false); jTextField4.setInputVerifier(new imakante.com.InputDoubleVerifier()); jLabel10.setText("\u0418\u0437\u0434\u0430\u043b:"); jTextField5.setBackground(new java.awt.Color(204, 204, 204)); jTextField5.setDisabledTextColor(new java.awt.Color(0, 0, 0)); jTextField5.setEnabled(false); jLabel11.setText("\u0421\u0432\u044a\u0440\u0437\u0430\u043d \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442:"); jTextField6.setInputVerifier(new imakante.com.InputIntegerVerifier()); jTextField6.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextField6FocusGained(evt); } }); jTextField6.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jTextField6KeyPressed(evt); } }); jLabel12.setText("\u0412\u0438\u0434 \u043e\u0440\u0434\u0435\u0440:"); jComboD.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jComboDKeyPressed(evt); } }); jLabel13.setText("\u0418\u043c\u0435 \u043d\u0430 \u041a\u0430\u0441\u0430 2:"); jLabel14.setText("\u043d\u0435\u0437\u0430\u0434\u0430\u0434\u0435\u043d\u043e"); jLabel15.setText("\u041a\u0443\u0440\u0441:"); jTextField7.setDisabledTextColor(new java.awt.Color(0, 0, 0)); jTextField7.setEnabled(false); jComboCR2.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jComboCR2FocusLost(evt); } }); org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .addContainerGap() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jLabel4) .add(jLabel11) .add(jLabel3) .add(jLabel5) .add(jLabel10) .add(jLabel9) .add(jLabel2) .add(jLabel13)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jTextField5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jTextField4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE) .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE) .add(jTextField6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE) .add(jComboCR, 0, 158, Short.MAX_VALUE) .add(jTextField3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jLabel8) .add(jLabel15) .add(jLabel6) .add(jLabel12) .add(jLabel7)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jTextField7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE) .add(jXDatePicker1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE) .add(jComboM, 0, 160, Short.MAX_VALUE) .add(jComboD, 0, 160, Short.MAX_VALUE) .add(jComboCR2, 0, 160, Short.MAX_VALUE))) .add(jLabel14) .add(jPanel2Layout.createSequentialGroup() .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) .addContainerGap()) .add(jPanel2Layout.createSequentialGroup() .add(jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE) .add(10, 10, 10)))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .addContainerGap() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel2) .add(jLabel6) .add(jTextField1) .add(jComboCR2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel2Layout.createSequentialGroup() .add(10, 10, 10) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel13) .add(jLabel14)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel3) .add(jLabel8) .add(jComboCR))) .add(jPanel2Layout.createSequentialGroup() .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jXDatePicker1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(3, 3, 3))) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(7, 7, 7) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jComboD) .add(jLabel12))) .add(jPanel2Layout.createSequentialGroup() .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel11) .add(jTextField6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.BASELINE, jComboM, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.BASELINE, jLabel7) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel4) .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel9) .add(jTextField4) .add(jLabel15) .add(jTextField7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel10) .add(jTextField5)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jLabel5) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 78, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-544)/2, (screenSize.height-420)/2, 544, 420); }// </editor-fold>//GEN-END:initComponents
|
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/1f0e3f3bc9fc0b83bb97ef47baee1349859866e8/aeC2COp.java/clean/src/imakante/sales/aeC2COp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
26538,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
17871,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
525,
3616,
4755,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
31224,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
20515,
5108,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
4605,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
17871,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
17871,
23,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
525,
3616,
774,
8149,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
3335,
1999,
49,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
3335,
1999,
52,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
774,
1638,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
26538,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
26538,
25,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
525,
16157,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
3639,
525,
26360,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
26360,
5621,
3639,
525,
1528,
5484,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
1528,
5484,
5621,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
26538,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
3639,
17871,
21,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
525,
3616,
4755,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
31224,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
20515,
5108,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
525,
3616,
4605,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
17871,
22,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
17871,
23,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
3639,
525,
3616,
774,
8149,
2
] |
assert Debug.log("java mirror", Debug.show(symbol) + " -> " + mirror);
|
assert Debug.log("java mirror: ", symbol, " -> ", mirror);
|
public Field getField(Symbol symbol) { Object value = fields.get(symbol); if (value != null) return (Field)value; Field mirror = getField0(symbol); assert Debug.log("java mirror", Debug.show(symbol) + " -> " + mirror); fields.put(symbol, mirror); return mirror; }
|
10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/0b3a91891d6632538b72d89722778c52b01b6ff9/JavaMirror.java/buggy/sources/scala/tools/scalai/JavaMirror.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
5031,
12,
5335,
3273,
13,
288,
3639,
1033,
460,
273,
1466,
18,
588,
12,
7175,
1769,
3639,
309,
261,
1132,
480,
446,
13,
327,
261,
974,
13,
1132,
31,
3639,
2286,
15593,
273,
5031,
20,
12,
7175,
1769,
3639,
1815,
4015,
18,
1330,
2932,
6290,
15593,
30,
3104,
3273,
16,
315,
317,
3104,
15593,
1769,
3639,
1466,
18,
458,
12,
7175,
16,
15593,
1769,
3639,
327,
15593,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
5031,
12,
5335,
3273,
13,
288,
3639,
1033,
460,
273,
1466,
18,
588,
12,
7175,
1769,
3639,
309,
261,
1132,
480,
446,
13,
327,
261,
974,
13,
1132,
31,
3639,
2286,
15593,
273,
5031,
20,
12,
7175,
1769,
3639,
1815,
4015,
18,
1330,
2932,
6290,
15593,
30,
3104,
3273,
16,
315,
317,
3104,
15593,
1769,
3639,
1466,
18,
458,
12,
7175,
16,
15593,
1769,
3639,
327,
15593,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( newContents != null && newContents.indexOf( "<body" ) == -1 ) { try { HTMLDocument currentHTML = (HTMLDocument) displayPane.getDocument(); Element parentElement = currentHTML.getDefaultRootElement(); while ( !parentElement.isLeaf() ) parentElement = parentElement.getElement( parentElement.getElementCount() - 1 ); currentHTML.insertAfterEnd( parentElement, newContents.trim() ); displayPane.setCaretPosition( currentHTML.getLength() ); } catch ( Exception e ) { e.printStackTrace(); } } else {
|
if ( displayPane != null )
|
protected void fireBufferChanged( int changeType, String newContents ) { if ( newContents != null ) displayBuffer.append( newContents ); if ( changeType != LOGFILE_CHANGE && displayPane != null ) { if ( newContents != null && newContents.indexOf( "<body" ) == -1 ) { try { HTMLDocument currentHTML = (HTMLDocument) displayPane.getDocument(); Element parentElement = currentHTML.getDefaultRootElement(); while ( !parentElement.isLeaf() ) parentElement = parentElement.getElement( parentElement.getElementCount() - 1 ); currentHTML.insertAfterEnd( parentElement, newContents.trim() ); displayPane.setCaretPosition( currentHTML.getLength() ); } catch ( Exception e ) { // In case someone happens to be running with a console, // print the debug information to the screen. e.printStackTrace(); } } else { SwingUtilities.invokeLater( new DisplayPaneUpdater( newContents ) ); } } if ( changeType == CONTENT_CHANGE && activeLogWriter != null && newContents != null ) updateLogFile( newContents ); if ( changeType == LOGFILE_CHANGE && activeLogWriter != null ) updateLogFile( displayBuffer.toString() ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/21a0ac13dcbd074c3ed7024a838043b16d2520f2/ChatBuffer.java/buggy/src/net/java/dev/spellcast/utilities/ChatBuffer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
1892,
5033,
12,
509,
2549,
559,
16,
514,
394,
6323,
262,
202,
95,
202,
202,
430,
261,
394,
6323,
480,
446,
262,
1082,
202,
5417,
1892,
18,
6923,
12,
394,
6323,
11272,
202,
202,
430,
261,
2549,
559,
480,
2018,
3776,
67,
14473,
597,
2562,
8485,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
394,
6323,
480,
446,
597,
394,
6323,
18,
31806,
12,
3532,
3432,
6,
262,
422,
300,
21,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
4870,
2519,
783,
4870,
273,
261,
4870,
2519,
13,
2562,
8485,
18,
588,
2519,
5621,
6862,
202,
1046,
30363,
273,
783,
4870,
18,
588,
1868,
2375,
1046,
5621,
6862,
202,
17523,
261,
401,
2938,
1046,
18,
291,
9858,
1435,
262,
25083,
202,
2938,
1046,
273,
30363,
18,
21336,
12,
30363,
18,
21336,
1380,
1435,
300,
404,
11272,
6862,
202,
2972,
4870,
18,
6387,
4436,
1638,
12,
30363,
16,
394,
6323,
18,
5290,
1435,
11272,
6862,
202,
5417,
8485,
18,
542,
39,
20731,
2555,
12,
783,
4870,
18,
588,
1782,
1435,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
1185,
425,
262,
9506,
202,
95,
6862,
202,
759,
657,
648,
18626,
10555,
358,
506,
3549,
598,
279,
2983,
16,
6862,
202,
759,
1172,
326,
1198,
1779,
358,
326,
5518,
18,
6862,
202,
73,
18,
1188,
6332,
5621,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
1892,
5033,
12,
509,
2549,
559,
16,
514,
394,
6323,
262,
202,
95,
202,
202,
430,
261,
394,
6323,
480,
446,
262,
1082,
202,
5417,
1892,
18,
6923,
12,
394,
6323,
11272,
202,
202,
430,
261,
2549,
559,
480,
2018,
3776,
67,
14473,
597,
2562,
8485,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
394,
6323,
480,
446,
597,
394,
6323,
18,
31806,
12,
3532,
3432,
6,
262,
422,
300,
21,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
4870,
2519,
783,
4870,
273,
261,
4870,
2519,
13,
2562,
8485,
18,
588,
2519,
5621,
6862,
202,
1046,
30363,
273,
783,
4870,
18,
588,
1868,
2375,
1046,
5621,
6862,
2
] |
writeKeyHolder(document, writer);
|
public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) { logger.info("marshal(Object, HierarchicalStreamWriter)"); logger.debug(source); final Document document = (Document) source; writeName(document.getName(), writer); writeCreatedBy(document.getCreatedBy(), writer); writeKeyHolder(document, writer); writeId(document.getId(), writer); writeCreatedOn(document.getCreatedOn(), writer); writeDescription(document.getDescription(), writer); writeDirectory(document.getDirectory(), writer); try { writeContent(document, writer); } catch(IOException iox) { fatal((ParityObject) source, "Could not serialize file content.", iox); } writeNotes(document, writer); writeVersions(document.getVersions(), writer); writeCustomProperties(document, writer); }
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/037f3abfa7cd361fec4101aefb360787f01c0f03/DocumentXmlTranslator.java/buggy/local/model/src/main/java/com/thinkparity/model/parity/api/document/xml/DocumentXmlTranslator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10893,
12,
921,
1084,
16,
28267,
29421,
2633,
16,
1082,
202,
1851,
310,
1042,
819,
13,
288,
202,
202,
4901,
18,
1376,
2932,
3108,
12,
921,
16,
28267,
29421,
2225,
1769,
202,
202,
4901,
18,
4148,
12,
3168,
1769,
202,
202,
6385,
4319,
1668,
273,
261,
2519,
13,
1084,
31,
202,
202,
2626,
461,
12,
5457,
18,
17994,
9334,
2633,
1769,
202,
202,
2626,
6119,
858,
12,
5457,
18,
588,
6119,
858,
9334,
2633,
1769,
202,
202,
2626,
653,
6064,
12,
5457,
16,
2633,
1769,
202,
202,
2626,
548,
12,
5457,
18,
26321,
9334,
2633,
1769,
202,
202,
2626,
6119,
1398,
12,
5457,
18,
588,
6119,
1398,
9334,
2633,
1769,
202,
202,
2626,
3291,
12,
5457,
18,
588,
3291,
9334,
2633,
1769,
202,
202,
2626,
2853,
12,
5457,
18,
588,
2853,
9334,
2633,
1769,
202,
202,
698,
288,
1045,
1350,
12,
5457,
16,
2633,
1769,
289,
202,
202,
14683,
12,
14106,
277,
2409,
13,
288,
1082,
202,
30709,
12443,
1553,
560,
921,
13,
1084,
16,
315,
4445,
486,
4472,
585,
913,
1199,
16,
277,
2409,
1769,
202,
202,
97,
202,
202,
2626,
18063,
12,
5457,
16,
2633,
1769,
202,
202,
2626,
5940,
12,
5457,
18,
588,
5940,
9334,
2633,
1769,
202,
202,
2626,
3802,
2297,
12,
5457,
16,
2633,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10893,
12,
921,
1084,
16,
28267,
29421,
2633,
16,
1082,
202,
1851,
310,
1042,
819,
13,
288,
202,
202,
4901,
18,
1376,
2932,
3108,
12,
921,
16,
28267,
29421,
2225,
1769,
202,
202,
4901,
18,
4148,
12,
3168,
1769,
202,
202,
6385,
4319,
1668,
273,
261,
2519,
13,
1084,
31,
202,
202,
2626,
461,
12,
5457,
18,
17994,
9334,
2633,
1769,
202,
202,
2626,
6119,
858,
12,
5457,
18,
588,
6119,
858,
9334,
2633,
1769,
202,
202,
2626,
653,
6064,
12,
5457,
16,
2633,
1769,
202,
202,
2626,
548,
12,
5457,
18,
26321,
9334,
2633,
1769,
202,
202,
2626,
6119,
1398,
12,
5457,
18,
588,
6119,
1398,
9334,
2633,
1769,
202,
202,
2626,
3291,
12,
2
] |
|
Logger.warning(this, "Unable to find back the tab !");
|
Logger.warning(this, "Unable to find the tab !");
|
public void stateChanged(ChangeEvent e) { int tabId; tabId = core.getMainWindow().getTabbedPane().indexOfTab(I18n.getMessage("thaw.common.status")); if (tabId < 0) { Logger.warning(this, "Unable to find back the tab !"); return; } if (core.getMainWindow().getTabbedPane().getSelectedIndex() == tabId) { displayButtonsInTheToolbar(); } else { hideButtonsInTheToolbar(); } }
|
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/947ed6623eaf6c0f521385e6e2a0559aa2a5a47b/QueueWatcher.java/clean/src/thaw/plugins/QueueWatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
919,
5033,
12,
20930,
425,
13,
288,
202,
202,
474,
3246,
548,
31,
202,
202,
7032,
548,
273,
2922,
18,
588,
6376,
3829,
7675,
588,
5661,
2992,
8485,
7675,
31806,
5661,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
2327,
7923,
1769,
202,
202,
430,
261,
7032,
548,
411,
374,
13,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
1104,
1473,
326,
3246,
401,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
3644,
18,
588,
6376,
3829,
7675,
588,
5661,
2992,
8485,
7675,
588,
7416,
1016,
1435,
422,
3246,
548,
13,
288,
1082,
202,
5417,
14388,
382,
1986,
17907,
5621,
202,
202,
97,
469,
288,
1082,
202,
11248,
14388,
382,
1986,
17907,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
919,
5033,
12,
20930,
425,
13,
288,
202,
202,
474,
3246,
548,
31,
202,
202,
7032,
548,
273,
2922,
18,
588,
6376,
3829,
7675,
588,
5661,
2992,
8485,
7675,
31806,
5661,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
2327,
7923,
1769,
202,
202,
430,
261,
7032,
548,
411,
374,
13,
288,
1082,
202,
3328,
18,
8551,
12,
2211,
16,
315,
3370,
358,
1104,
1473,
326,
3246,
401,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
3644,
18,
588,
6376,
3829,
7675,
588,
5661,
2992,
8485,
7675,
588,
7416,
1016,
1435,
422,
3246,
548,
13,
288,
1082,
202,
5417,
14388,
382,
1986,
17907,
5621,
202,
202,
97,
2
] |
if (member.getOrdinal() == -1) { RolapMember.setOrdinals(connection, member); }
|
private void populateMember( final Connection connection, String catalogName, Cube cube, Member member, int treeOp, List rows) { if (member.getOrdinal() == -1) { RolapMember.setOrdinals(connection, member); } // Visit node itself. if (mask(treeOp, Enumeration.TreeOp.Self.ordinal)) { populateMember(member, connection, catalogName, cube, rows); } // Visit node's siblings (not including itself). if (mask(treeOp, Enumeration.TreeOp.Siblings.ordinal)) { final Member parent = connection.getSchemaReader().getMemberParent(member); final Member[] siblings; if (parent == null) { siblings = connection.getSchemaReader(). getHierarchyRootMembers(member.getHierarchy()); } else { siblings = connection.getSchemaReader(). getMemberChildren(parent); } for (int i = 0; i < siblings.length; i++) { Member sibling = siblings[i]; if (sibling == member) { continue; } populateMember(connection, catalogName, cube, sibling, Enumeration.TreeOp.Self.ordinal, rows); } } // Visit node's descendants or its immediate children, but not both. if (mask(treeOp, Enumeration.TreeOp.Descendants.ordinal)) { final Member[] children = connection.getSchemaReader().getMemberChildren(member); for (int i = 0; i < children.length; i++) { Member child = children[i]; populateMember(connection, catalogName, cube, child, Enumeration.TreeOp.Self.ordinal | Enumeration.TreeOp.Descendants.ordinal, rows); } } else if (mask(treeOp, Enumeration.TreeOp.Children.ordinal)) { final Member[] children = connection.getSchemaReader().getMemberChildren(member); for (int i = 0; i < children.length; i++) { Member child = children[i]; populateMember(connection, catalogName, cube, child, Enumeration.TreeOp.Self.ordinal, rows); } } // Visit node's ancestors or its immediate parent, but not both. if (mask(treeOp, Enumeration.TreeOp.Ancestors.ordinal)) { final Member parent = connection.getSchemaReader().getMemberParent(member); if (parent != null) { populateMember(connection, catalogName, cube, parent, Enumeration.TreeOp.Self.ordinal | Enumeration.TreeOp.Ancestors.ordinal, rows); } } else if (mask(treeOp, Enumeration.TreeOp.Parent.ordinal)) { final Member parent = connection.getSchemaReader().getMemberParent(member); if (parent != null) { populateMember(connection, catalogName, cube, parent, Enumeration.TreeOp.Self.ordinal, rows); } } }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/dd3619858adf8a80618b1c4b570c84445dc1e849/RowsetDefinition.java/buggy/src/main/mondrian/xmla/RowsetDefinition.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
6490,
4419,
12,
5411,
727,
4050,
1459,
16,
5411,
514,
6222,
461,
16,
5411,
385,
4895,
18324,
16,
5411,
8596,
3140,
16,
5411,
509,
2151,
3817,
16,
5411,
987,
2595,
13,
288,
5411,
309,
261,
5990,
18,
588,
22830,
1435,
422,
300,
21,
13,
288,
7734,
11714,
438,
4419,
18,
542,
15383,
267,
1031,
12,
4071,
16,
3140,
1769,
5411,
289,
5411,
368,
22039,
756,
6174,
18,
5411,
309,
261,
4455,
12,
3413,
3817,
16,
13864,
18,
2471,
3817,
18,
10084,
18,
517,
1490,
3719,
288,
7734,
6490,
4419,
12,
5990,
16,
1459,
16,
6222,
461,
16,
18324,
16,
2595,
1769,
5411,
289,
5411,
368,
22039,
756,
1807,
14692,
261,
902,
6508,
6174,
2934,
5411,
309,
261,
4455,
12,
3413,
3817,
16,
13864,
18,
2471,
3817,
18,
31555,
18,
517,
1490,
3719,
288,
7734,
727,
8596,
982,
273,
13491,
1459,
18,
588,
3078,
2514,
7675,
588,
4419,
3054,
12,
5990,
1769,
7734,
727,
8596,
8526,
14692,
31,
7734,
309,
261,
2938,
422,
446,
13,
288,
10792,
14692,
273,
1459,
18,
588,
3078,
2514,
7675,
18701,
7628,
6000,
2375,
6918,
12,
5990,
18,
588,
12074,
10663,
7734,
289,
469,
288,
10792,
14692,
273,
1459,
18,
588,
3078,
2514,
7675,
18701,
18925,
4212,
12,
2938,
1769,
7734,
289,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
14692,
18,
2469,
31,
277,
27245,
288,
10792,
8596,
10841,
273,
14692,
63,
77,
15533,
10792,
309,
261,
22734,
422,
3140,
13,
288,
13491,
1324,
31,
10792,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
6490,
4419,
12,
5411,
727,
4050,
1459,
16,
5411,
514,
6222,
461,
16,
5411,
385,
4895,
18324,
16,
5411,
8596,
3140,
16,
5411,
509,
2151,
3817,
16,
5411,
987,
2595,
13,
288,
5411,
309,
261,
5990,
18,
588,
22830,
1435,
422,
300,
21,
13,
288,
7734,
11714,
438,
4419,
18,
542,
15383,
267,
1031,
12,
4071,
16,
3140,
1769,
5411,
289,
5411,
368,
22039,
756,
6174,
18,
5411,
309,
261,
4455,
12,
3413,
3817,
16,
13864,
18,
2471,
3817,
18,
10084,
18,
517,
1490,
3719,
288,
7734,
6490,
4419,
12,
5990,
16,
1459,
16,
6222,
461,
16,
18324,
16,
2595,
1769,
5411,
289,
5411,
368,
22039,
756,
1807,
14692,
261,
902,
6508,
6174,
2934,
5411,
309,
2
] |
|
public void debug(Object message) {
|
public void debug(Throwable aThrowable) {
|
public void debug(Object message) { if (this.debug) { this.log(new Status(IStatus.WARNING, this.getBundleID(), IStatus.WARNING, "" + message, null)); //$NON-NLS-1$ } }
|
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/2015341eac610402a162ebcc12067ce708b705b9/AbstractCorePlugin.java/buggy/wolips/plugins/org.objectstyle.wolips/java/org/objectstyle/wolips/core/runtime/AbstractCorePlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1198,
12,
921,
883,
13,
288,
202,
202,
430,
261,
2211,
18,
4148,
13,
288,
1082,
202,
2211,
18,
1330,
12,
2704,
2685,
12,
45,
1482,
18,
9511,
16,
333,
18,
588,
3405,
734,
9334,
6862,
202,
45,
1482,
18,
9511,
16,
1408,
397,
883,
16,
446,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1198,
12,
921,
883,
13,
288,
202,
202,
430,
261,
2211,
18,
4148,
13,
288,
1082,
202,
2211,
18,
1330,
12,
2704,
2685,
12,
45,
1482,
18,
9511,
16,
333,
18,
588,
3405,
734,
9334,
6862,
202,
45,
1482,
18,
9511,
16,
1408,
397,
883,
16,
446,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ws.displayInWindow(frame, x, y, w, h);
|
Point loc = ws.getComponentLocation(); if (loc != null) { x = (int) loc.getX(); y = (int) loc.getY();
|
public ActionListener getActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent evt) { WindowSupport ws = getWindowSupport(); int w = 328; int h = 300; Dimension dim = ws.getComponentSize(); if (dim != null) { w = (int)dim.getWidth(); h = (int)dim.getHeight(); } int x = 10; int y = 10; Point loc = ws.getComponentLocation(); if (loc != null) { x = (int) loc.getX(); y = (int) loc.getY(); } MapHandler mh = (MapHandler) getBeanContext(); Frame frame = null; if (mh != null) { frame = (Frame)mh.get(java.awt.Frame.class); } ws.displayInWindow(frame, x, y, w, h); } }; }
|
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/852a795729cc7bdc306618487d58138d7265f6f8/LayersPanel.java/clean/src/openmap/com/bbn/openmap/gui/LayersPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
25962,
12473,
2223,
1435,
288,
3639,
327,
394,
25962,
1435,
288,
7734,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
10792,
6076,
6289,
4945,
273,
26156,
6289,
5621,
10792,
509,
341,
273,
3847,
28,
31,
10792,
509,
366,
273,
11631,
31,
27573,
13037,
2464,
273,
4945,
18,
588,
1841,
1225,
5621,
10792,
309,
261,
3509,
480,
446,
13,
288,
13491,
341,
273,
261,
474,
13,
3509,
18,
588,
2384,
5621,
13491,
366,
273,
261,
474,
13,
3509,
18,
588,
2686,
5621,
10792,
289,
10792,
509,
619,
273,
1728,
31,
10792,
509,
677,
273,
1728,
31,
27573,
4686,
1515,
273,
4945,
18,
588,
1841,
2735,
5621,
10792,
309,
261,
1829,
480,
446,
13,
288,
13491,
619,
273,
261,
474,
13,
1515,
18,
588,
60,
5621,
13491,
677,
273,
261,
474,
13,
1515,
18,
588,
61,
5621,
10792,
289,
10792,
1635,
1503,
17819,
273,
261,
863,
1503,
13,
16485,
1042,
5621,
10792,
8058,
2623,
273,
446,
31,
10792,
309,
261,
81,
76,
480,
446,
13,
288,
13491,
2623,
273,
261,
3219,
13,
81,
76,
18,
588,
12,
6290,
18,
2219,
88,
18,
3219,
18,
1106,
1769,
10792,
289,
10792,
4686,
1515,
273,
4945,
18,
588,
1841,
2735,
5621,
309,
261,
1829,
480,
446,
13,
288,
619,
273,
261,
474,
13,
1515,
18,
588,
60,
5621,
677,
273,
261,
474,
13,
1515,
18,
588,
61,
5621,
7734,
289,
5411,
289,
31,
565,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
25962,
12473,
2223,
1435,
288,
3639,
327,
394,
25962,
1435,
288,
7734,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
10792,
6076,
6289,
4945,
273,
26156,
6289,
5621,
10792,
509,
341,
273,
3847,
28,
31,
10792,
509,
366,
273,
11631,
31,
27573,
13037,
2464,
273,
4945,
18,
588,
1841,
1225,
5621,
10792,
309,
261,
3509,
480,
446,
13,
288,
13491,
341,
273,
261,
474,
13,
3509,
18,
588,
2384,
5621,
13491,
366,
273,
261,
474,
13,
3509,
18,
588,
2686,
5621,
10792,
289,
10792,
509,
619,
273,
1728,
31,
10792,
509,
677,
273,
1728,
31,
27573,
4686,
1515,
273,
4945,
18,
588,
1841,
2735,
5621,
10792,
309,
261,
1829,
480,
446,
13,
288,
13491,
619,
273,
2
] |
return RendererPropertyUtils.getPropertyType(getMetaObject().getType(), getName());
|
return getStaticType();
|
public Class getType() { if (getObject() != null) { return getObject().getClass(); } else { return RendererPropertyUtils.getPropertyType(getMetaObject().getType(), getName()); } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/747985ecf5ca1f9353ad57b422eabc12dc854336/MetaSlot.java/clean/src/net/sourceforge/fenixedu/renderers/model/MetaSlot.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
3130,
1435,
288,
3639,
309,
261,
588,
921,
1435,
480,
446,
13,
288,
5411,
327,
6455,
7675,
588,
797,
5621,
3639,
289,
3639,
469,
288,
5411,
327,
23414,
559,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
3130,
1435,
288,
3639,
309,
261,
588,
921,
1435,
480,
446,
13,
288,
5411,
327,
6455,
7675,
588,
797,
5621,
3639,
289,
3639,
469,
288,
5411,
327,
23414,
559,
5621,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buffer.propertiesChanged();
|
index = mode.getSelectedIndex(); buffer.setMode(modes[index]);
|
public void ok() { int index = mode.getSelectedIndex(); buffer.setMode(modes[index]); index = lineSeparator.getSelectedIndex(); String lineSep; if(index == 0) lineSep = "\n"; else if(index == 1) lineSep = "\r\n"; else if(index == 2) lineSep = "\r"; else throw new InternalError(); String oldLineSep = buffer.getStringProperty(Buffer.LINESEP); if(oldLineSep == null) oldLineSep = System.getProperty("line.separator"); if(!oldLineSep.equals(lineSep)) { buffer.setStringProperty("lineSeparator",lineSep); buffer.setDirty(true); } String encoding = (String)this.encoding.getSelectedItem(); String oldEncoding = buffer.getStringProperty(Buffer.ENCODING); if(!oldEncoding.equals(encoding)) { buffer.setStringProperty(Buffer.ENCODING,encoding); buffer.setDirty(true); } boolean gzippedValue = gzipped.isSelected(); boolean oldGzipped = buffer.getBooleanProperty( Buffer.GZIPPED); if(gzippedValue != oldGzipped) { buffer.setBooleanProperty(Buffer.GZIPPED,gzippedValue); buffer.setDirty(true); } buffer.setStringProperty("folding",(String)folding.getSelectedItem()); buffer.setStringProperty("wrap",(String)wrap.getSelectedItem()); try { buffer.setProperty("maxLineLen",new Integer( maxLineLen.getSelectedItem().toString())); } catch(NumberFormatException nf) { } try { buffer.setProperty("tabSize",new Integer( tabSize.getSelectedItem().toString())); } catch(NumberFormatException nf) { } try { buffer.setProperty("indentSize",new Integer( indentSize.getSelectedItem().toString())); } catch(NumberFormatException nf) { } buffer.setBooleanProperty("noTabs",noTabs.isSelected()); buffer.setBooleanProperty("indentOnTajb",indentOnTab.isSelected()); buffer.setBooleanProperty("indentOnEnter",indentOnEnter.isSelected()); buffer.propertiesChanged(); dispose(); } //}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/f822631cc69dabad17ff4c537a6e496409a69d7e/BufferOptions.java/clean/org/gjt/sp/jedit/gui/BufferOptions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1529,
1435,
202,
95,
202,
202,
474,
770,
273,
1965,
18,
588,
7416,
1016,
5621,
202,
202,
4106,
18,
542,
2309,
12,
19282,
63,
1615,
19226,
202,
202,
1615,
273,
31053,
18,
588,
7416,
1016,
5621,
202,
202,
780,
980,
5097,
31,
202,
202,
430,
12,
1615,
422,
374,
13,
1082,
202,
1369,
5097,
273,
1548,
82,
14432,
202,
202,
12107,
309,
12,
1615,
422,
404,
13,
1082,
202,
1369,
5097,
273,
1548,
86,
64,
82,
14432,
202,
202,
12107,
309,
12,
1615,
422,
576,
13,
1082,
202,
1369,
5097,
273,
1548,
86,
14432,
202,
202,
12107,
1082,
202,
12849,
394,
3186,
668,
5621,
202,
202,
780,
1592,
1670,
5097,
273,
1613,
18,
588,
780,
1396,
12,
1892,
18,
5997,
28610,
1769,
202,
202,
430,
12,
1673,
1670,
5097,
422,
446,
13,
1082,
202,
1673,
1670,
5097,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
202,
202,
430,
12,
5,
1673,
1670,
5097,
18,
14963,
12,
1369,
5097,
3719,
202,
202,
95,
1082,
202,
4106,
18,
542,
780,
1396,
2932,
1369,
6581,
3113,
1369,
5097,
1769,
1082,
202,
4106,
18,
542,
10785,
12,
3767,
1769,
202,
202,
97,
202,
202,
780,
2688,
273,
261,
780,
13,
2211,
18,
5999,
18,
588,
7416,
1180,
5621,
202,
202,
780,
1592,
4705,
273,
1613,
18,
588,
780,
1396,
12,
1892,
18,
14672,
1769,
202,
202,
430,
12,
5,
1673,
4705,
18,
14963,
12,
5999,
3719,
202,
202,
95,
1082,
202,
4106,
18,
542,
780,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1529,
1435,
202,
95,
202,
202,
474,
770,
273,
1965,
18,
588,
7416,
1016,
5621,
202,
202,
4106,
18,
542,
2309,
12,
19282,
63,
1615,
19226,
202,
202,
1615,
273,
31053,
18,
588,
7416,
1016,
5621,
202,
202,
780,
980,
5097,
31,
202,
202,
430,
12,
1615,
422,
374,
13,
1082,
202,
1369,
5097,
273,
1548,
82,
14432,
202,
202,
12107,
309,
12,
1615,
422,
404,
13,
1082,
202,
1369,
5097,
273,
1548,
86,
64,
82,
14432,
202,
202,
12107,
309,
12,
1615,
422,
576,
13,
1082,
202,
1369,
5097,
273,
1548,
86,
14432,
202,
202,
12107,
1082,
202,
12849,
394,
3186,
668,
5621,
202,
202,
780,
1592,
1670,
5097,
273,
1613,
18,
588,
780,
2
] |
_started = _context.clock().now();
|
_started = getContext().clock().now();
|
public Failure(TunnelInfo tunnel, Hash replyThrough) { super(RequestTunnelJob.this._context); _tunnel = tunnel; _replyThrough = replyThrough; _started = _context.clock().now(); }
|
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/clean/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
13436,
12,
20329,
966,
14825,
16,
2474,
4332,
14287,
13,
288,
5411,
2240,
12,
691,
20329,
2278,
18,
2211,
6315,
2472,
1769,
5411,
389,
19878,
273,
14825,
31,
5411,
389,
10629,
14287,
273,
4332,
14287,
31,
5411,
389,
14561,
273,
6474,
7675,
18517,
7675,
3338,
5621,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
13436,
12,
20329,
966,
14825,
16,
2474,
4332,
14287,
13,
288,
5411,
2240,
12,
691,
20329,
2278,
18,
2211,
6315,
2472,
1769,
5411,
389,
19878,
273,
14825,
31,
5411,
389,
10629,
14287,
273,
4332,
14287,
31,
5411,
389,
14561,
273,
6474,
7675,
18517,
7675,
3338,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void fillArc(int x, int y, int width, int height, int startAngle, int endAngle) {
|
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) {
|
public void fillArc(int x, int y, int width, int height, int startAngle, int endAngle) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); if (data.updateClip) setCGClipping(); if (width < 0) { x = x + width; width = -width; } if (height < 0) { y = y + height; height = -height; } if (width == 0 || height == 0 || endAngle == 0) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } OS.CGContextBeginPath(handle); OS.CGContextSaveGState(handle); OS.CGContextTranslateCTM(handle, x + width / 2f, y + height / 2f); OS.CGContextScaleCTM(handle, width / 2f, height / 2f); OS.CGContextMoveToPoint(handle, 0, 0); OS.CGContextAddArc(handle, 0, 0, 1, -startAngle * (float)Math.PI / 180, -endAngle * (float)Math.PI / 180, true); OS.CGContextClosePath(handle); OS.CGContextRestoreGState(handle); OS.CGContextFillPath(handle); if (data.control != 0 && data.paintEvent == 0) OS.CGContextSynchronize(handle);}
|
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/63d6f189c5fce0a63def15c1edf14e84d34f6f55/GC.java/clean/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3636,
14598,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
16,
509,
787,
8467,
16,
509,
679,
8467,
13,
288,
202,
430,
261,
4110,
422,
374,
13,
348,
8588,
18,
1636,
12,
55,
8588,
18,
3589,
67,
24372,
2871,
67,
13498,
2419,
18204,
1769,
202,
430,
261,
892,
18,
2725,
15339,
13,
11440,
43,
15339,
1382,
5621,
202,
430,
261,
2819,
411,
374,
13,
288,
202,
202,
92,
273,
619,
397,
1835,
31,
202,
202,
2819,
273,
300,
2819,
31,
202,
97,
202,
430,
261,
4210,
411,
374,
13,
288,
202,
202,
93,
273,
677,
397,
2072,
31,
202,
202,
4210,
273,
300,
4210,
31,
202,
97,
202,
430,
261,
2819,
422,
374,
747,
2072,
422,
374,
747,
679,
8467,
422,
374,
13,
288,
202,
202,
55,
8588,
18,
1636,
12,
55,
8588,
18,
3589,
67,
9347,
67,
18311,
1769,
202,
97,
202,
4618,
18,
20585,
1042,
8149,
743,
12,
4110,
1769,
565,
5932,
18,
20585,
1042,
4755,
43,
1119,
12,
4110,
1769,
565,
5932,
18,
20585,
1042,
12818,
1268,
49,
12,
4110,
16,
619,
397,
1835,
342,
576,
74,
16,
677,
397,
2072,
342,
576,
74,
1769,
565,
5932,
18,
20585,
1042,
5587,
1268,
49,
12,
4110,
16,
1835,
342,
576,
74,
16,
2072,
342,
576,
74,
1769,
565,
5932,
18,
20585,
1042,
7607,
774,
2148,
12,
4110,
16,
374,
16,
374,
1769,
565,
5932,
18,
20585,
1042,
986,
14598,
12,
4110,
16,
374,
16,
374,
16,
404,
16,
300,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3636,
14598,
12,
474,
619,
16,
509,
677,
16,
509,
1835,
16,
509,
2072,
16,
509,
787,
8467,
16,
509,
679,
8467,
13,
288,
202,
430,
261,
4110,
422,
374,
13,
348,
8588,
18,
1636,
12,
55,
8588,
18,
3589,
67,
24372,
2871,
67,
13498,
2419,
18204,
1769,
202,
430,
261,
892,
18,
2725,
15339,
13,
11440,
43,
15339,
1382,
5621,
202,
430,
261,
2819,
411,
374,
13,
288,
202,
202,
92,
273,
619,
397,
1835,
31,
202,
202,
2819,
273,
300,
2819,
31,
202,
97,
202,
430,
261,
4210,
411,
374,
13,
288,
202,
202,
93,
273,
677,
397,
2072,
31,
202,
202,
4210,
273,
300,
4210,
31,
202,
97,
202,
430,
261,
2819,
422,
374,
2
] |
focusGainedHandler(evt); }
|
focusGainedHandler(evt); }
|
public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/32df36439994c14fbd4bb097f19c24c015ecf59d/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
7155,
43,
8707,
12,
6290,
18,
2219,
88,
18,
2575,
18,
9233,
1133,
6324,
13,
288,
7734,
7155,
43,
8707,
1503,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
7155,
43,
8707,
12,
6290,
18,
2219,
88,
18,
2575,
18,
9233,
1133,
6324,
13,
288,
7734,
7155,
43,
8707,
1503,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
out.println("</tr>"); NumberFormat formatter=new DecimalFormat("#,##0.0"); int qty_tests=0; int qty_pass_m=0; int qty_pass_s=0; int qty_skip=0; int qty_fail=0; long time_start=Long.MAX_VALUE; long time_end=Long.MIN_VALUE; for(ISuite suite : suites) { if(suites.size()>1) { titleRow( suite.getName(), 7);
|
m_out.println("</tr>"); NumberFormat formatter = new DecimalFormat("#,##0.0"); int qty_tests = 0; int qty_pass_m = 0; int qty_pass_s = 0; int qty_skip = 0; int qty_fail = 0; long time_start = Long.MAX_VALUE; long time_end = Long.MIN_VALUE; for (ISuite suite : suites) { if (suites.size() > 1) { titleRow(suite.getName(), 7);
|
private void summarize(List<ISuite> suites) { tableStart("param"); out.print("<tr><th>Test</th>"); tableColumnStart("Methods<br/>Passed"); tableColumnStart("Scenarios<br/>Passed"); tableColumnStart("# skipped"); tableColumnStart("# failed"); tableColumnStart("Total<br/>Time"); tableColumnStart("Included<br/>Groups"); tableColumnStart("Excluded<br/>Groups"); out.println("</tr>"); NumberFormat formatter=new DecimalFormat("#,##0.0"); int qty_tests=0; int qty_pass_m=0; int qty_pass_s=0; int qty_skip=0; int qty_fail=0; long time_start=Long.MAX_VALUE; long time_end=Long.MIN_VALUE; for(ISuite suite : suites) { if(suites.size()>1) { titleRow( suite.getName(), 7); } Map<String,ISuiteResult> tests=suite.getResults(); for(ISuiteResult r : tests.values()) { qty_tests+=1; ITestContext overview=r.getTestContext(); startSummaryRow(overview.getName()); int q=getMethodSet(overview.getPassedTests()).size(); qty_pass_m+=q; summaryCell(q); q=overview.getPassedTests().size(); qty_pass_s+=q; summaryCell(q); q=getMethodSet(overview.getSkippedTests()).size(); qty_skip+=q; summaryCell(q); q=getMethodSet(overview.getFailedTests()).size(); qty_fail+=q; summaryCell(q); time_start= Math.min( overview.getStartDate().getTime(), time_start); time_end= Math.max( overview.getEndDate().getTime(), time_end); summaryCell( formatter.format( (overview.getEndDate().getTime()-overview.getStartDate().getTime())/1000.) +" seconds"); summaryCell(overview.getIncludedGroups()); summaryCell(overview.getExcludedGroups()); out.println("</tr>"); } } if(qty_tests>1) { out.println("<tr class=\"total\"><td>Total</td>"); summaryCell(qty_pass_m); summaryCell(qty_pass_s); summaryCell(qty_skip); summaryCell(qty_fail); summaryCell(formatter.format((time_end-time_start)/1000.)+" seconds"); out.println("<td colspan=\"2\"> </td></tr>"); out.println("</table>"); } }
|
48015 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48015/cebdf50099bfd930b28e224ace6eab7b69b8cf31/EmailableReporter.java/buggy/src/main/org/testng/reporters/EmailableReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
28712,
12,
682,
32,
5127,
9519,
34,
27208,
13,
225,
288,
565,
1014,
1685,
2932,
891,
8863,
565,
596,
18,
1188,
2932,
32,
313,
4438,
451,
34,
4709,
1757,
451,
2984,
1769,
565,
1014,
1494,
1685,
2932,
4712,
32,
2848,
21259,
22530,
8863,
565,
1014,
1494,
1685,
2932,
1541,
18087,
32,
2848,
21259,
22530,
8863,
565,
1014,
1494,
1685,
2932,
7,
9700,
8863,
565,
1014,
1494,
1685,
2932,
7,
2535,
8863,
565,
1014,
1494,
1685,
2932,
5269,
32,
2848,
21259,
950,
8863,
565,
1014,
1494,
1685,
2932,
19323,
32,
2848,
21259,
3621,
8863,
565,
1014,
1494,
1685,
2932,
16461,
32,
2848,
21259,
3621,
8863,
565,
596,
18,
8222,
2932,
1757,
313,
2984,
1769,
565,
29587,
4453,
33,
2704,
29665,
2932,
7,
16,
1189,
20,
18,
20,
8863,
565,
509,
26667,
67,
16341,
33,
20,
31,
565,
509,
26667,
67,
5466,
67,
81,
33,
20,
31,
565,
509,
26667,
67,
5466,
67,
87,
33,
20,
31,
565,
509,
26667,
67,
7457,
33,
20,
31,
565,
509,
26667,
67,
6870,
33,
20,
31,
565,
1525,
813,
67,
1937,
33,
3708,
18,
6694,
67,
4051,
31,
565,
1525,
813,
67,
409,
33,
3708,
18,
6236,
67,
4051,
31,
565,
364,
12,
5127,
9519,
11371,
294,
27208,
13,
288,
1377,
309,
12,
26560,
2997,
18,
1467,
1435,
34,
21,
13,
288,
3639,
2077,
1999,
12,
1850,
11371,
18,
17994,
9334,
1850,
2371,
1769,
1377,
289,
1377,
1635,
32,
780,
16,
5127,
9519,
1253,
34,
7434,
33,
30676,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
28712,
12,
682,
32,
5127,
9519,
34,
27208,
13,
225,
288,
565,
1014,
1685,
2932,
891,
8863,
565,
596,
18,
1188,
2932,
32,
313,
4438,
451,
34,
4709,
1757,
451,
2984,
1769,
565,
1014,
1494,
1685,
2932,
4712,
32,
2848,
21259,
22530,
8863,
565,
1014,
1494,
1685,
2932,
1541,
18087,
32,
2848,
21259,
22530,
8863,
565,
1014,
1494,
1685,
2932,
7,
9700,
8863,
565,
1014,
1494,
1685,
2932,
7,
2535,
8863,
565,
1014,
1494,
1685,
2932,
5269,
32,
2848,
21259,
950,
8863,
565,
1014,
1494,
1685,
2932,
19323,
32,
2848,
21259,
3621,
8863,
565,
1014,
1494,
1685,
2932,
16461,
32,
2848,
21259,
3621,
8863,
565,
596,
18,
8222,
2932,
1757,
313,
2984,
1769,
565,
29587,
4453,
2
] |
referenceName);
|
referenceName);
|
public void applyFix(Project project, ProblemDescriptor descriptor){ final PsiJavaCodeReferenceElement referenceElement = (PsiJavaCodeReferenceElement) descriptor.getPsiElement(); final String referencedClassName = referenceElement.getText(); final PsiClass iface = (PsiClass) referenceElement.resolve(); final PsiField[] allFields = iface.getAllFields(); final PsiClass implementingClass = (PsiClass) PsiTreeUtil.getParentOfType(referenceElement, PsiClass.class); final PsiManager manager = referenceElement.getManager(); final PsiSearchHelper searchHelper = manager.getSearchHelper(); final SearchScope searchScope = implementingClass.getUseScope(); for(int i = 0; i < allFields.length; i++){ final PsiField field = allFields[i]; final PsiReference[] references = searchHelper.findReferences(field, searchScope, false); for(int j = 0; j < references.length; j++){ final PsiReferenceExpression reference = (PsiReferenceExpression) references[j]; if(!reference.isQualified()){ final String referenceText = reference.getText(); replaceExpression(project, reference, referencedClassName + '.' + referenceText); } else{ final PsiExpression qualifier = reference.getQualifierExpression(); final String referenceName = reference.getReferenceName(); if(qualifier instanceof PsiReferenceExpression){ final PsiElement referent = ((PsiReference) qualifier).resolve(); if(!referent.equals(iface)){ replaceExpression(project, reference, referencedClassName + '.' + referenceName); } } else{ replaceExpression(project, reference, referencedClassName + '.' + referenceName); } } } } deleteElement(referenceElement); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2d46d291193579a7564649b4881c7ea8e02eda5b/StaticInheritanceInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/StaticInheritanceInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
15329,
5411,
727,
453,
7722,
5852,
1085,
2404,
1046,
2114,
1046,
273,
10792,
261,
52,
7722,
5852,
1085,
2404,
1046,
13,
4950,
18,
588,
52,
7722,
1046,
5621,
5411,
727,
514,
8042,
3834,
273,
2114,
1046,
18,
588,
1528,
5621,
5411,
727,
453,
7722,
797,
9751,
273,
261,
52,
7722,
797,
13,
2114,
1046,
18,
10828,
5621,
5411,
727,
453,
7722,
974,
8526,
777,
2314,
273,
9751,
18,
588,
1595,
2314,
5621,
5411,
727,
453,
7722,
797,
19981,
797,
273,
10792,
261,
52,
7722,
797,
13,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6180,
1046,
16,
4766,
21821,
453,
7722,
797,
18,
1106,
1769,
5411,
727,
453,
7722,
1318,
3301,
273,
2114,
1046,
18,
588,
1318,
5621,
5411,
727,
453,
7722,
2979,
2276,
1623,
2276,
273,
3301,
18,
588,
2979,
2276,
5621,
5411,
727,
5167,
3876,
1623,
3876,
273,
19981,
797,
18,
588,
3727,
3876,
5621,
5411,
364,
12,
474,
277,
273,
374,
31,
277,
411,
777,
2314,
18,
2469,
31,
277,
27245,
95,
7734,
727,
453,
7722,
974,
652,
273,
777,
2314,
63,
77,
15533,
7734,
727,
453,
7722,
2404,
8526,
5351,
273,
13491,
1623,
2276,
18,
4720,
8221,
12,
1518,
16,
1623,
3876,
16,
629,
1769,
7734,
364,
12,
474,
525,
273,
374,
31,
525,
411,
5351,
18,
2469,
31,
525,
27245,
95,
10792,
727,
453,
7722,
2404,
2300,
2114,
273,
18701,
261,
52,
7722,
2404,
2300,
13,
5351,
63,
78,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
8585,
12,
4109,
1984,
16,
21685,
3187,
4950,
15329,
5411,
727,
453,
7722,
5852,
1085,
2404,
1046,
2114,
1046,
273,
10792,
261,
52,
7722,
5852,
1085,
2404,
1046,
13,
4950,
18,
588,
52,
7722,
1046,
5621,
5411,
727,
514,
8042,
3834,
273,
2114,
1046,
18,
588,
1528,
5621,
5411,
727,
453,
7722,
797,
9751,
273,
261,
52,
7722,
797,
13,
2114,
1046,
18,
10828,
5621,
5411,
727,
453,
7722,
974,
8526,
777,
2314,
273,
9751,
18,
588,
1595,
2314,
5621,
5411,
727,
453,
7722,
797,
19981,
797,
273,
10792,
261,
52,
7722,
797,
13,
453,
7722,
2471,
1304,
18,
588,
3054,
18859,
12,
6180,
1046,
16,
4766,
21821,
453,
7722,
797,
18,
1106,
1769,
5411,
2
] |
private static int DaysInYear(int y) {
|
private static int DaysInYear(int y) {
|
private static int DaysInYear(int y) { if (y % 4 == 0 && (y % 100 != 0 || y % 400 == 0)) return 366; else return 365; }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/02ecf7529127113a2cb5d3237d62ee474eb599d0/NativeDate.java/clean/src/org/mozilla/javascript/NativeDate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
463,
8271,
382,
5593,
12,
474,
677,
13,
288,
3639,
309,
261,
93,
738,
1059,
422,
374,
597,
261,
93,
738,
2130,
480,
374,
747,
677,
738,
7409,
422,
374,
3719,
5411,
327,
890,
6028,
31,
3639,
469,
5411,
327,
21382,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
463,
8271,
382,
5593,
12,
474,
677,
13,
288,
3639,
309,
261,
93,
738,
1059,
422,
374,
597,
261,
93,
738,
2130,
480,
374,
747,
677,
738,
7409,
422,
374,
3719,
5411,
327,
890,
6028,
31,
3639,
469,
5411,
327,
21382,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (debuggerConnected()) return;
|
if (isDebuggerConnected()) return;
|
public void spawnDebugger(String agentName) { if (!m_Debuggers) return; if (debuggerConnected()) return; // Figure out whether to use java or javaw String os = System.getProperty("os.name"); String commandLine; if (os.matches(".+indows.*") || os.matches("INDOWS")) { commandLine = "javaw -jar \"" + m_BasePath + "..\\..\\SoarLibrary\\bin\\SoarJavaDebugger.jar\" -remote -agent " + agentName; } else { commandLine = System.getProperty("java.home") + "/bin/java -jar " + m_BasePath + "../../SoarLibrary/bin/SoarJavaDebugger.jar -remote -agent " + agentName; } Runtime r = java.lang.Runtime.getRuntime(); try { // TODO: manage the returned process a bit better. Process p = r.exec(commandLine); if (!waitForDebugger(p)) { fireErrorMessage("Debugger spawn failed for agent: " + agentName); return; } } catch (IOException e) { fireErrorMessage("IOException spawning debugger: " + e.getMessage()); shutdown(); System.exit(1); } }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/a81c1f10febefee92a3ca5345302ac329f8d07d4/Simulation.java/clean/SoarSuite/Environments/JavaBaseEnvironment/source/simulation/Simulation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12560,
24113,
12,
780,
4040,
461,
13,
288,
202,
202,
430,
16051,
81,
67,
2829,
6215,
13,
327,
31,
202,
202,
430,
261,
4148,
693,
8932,
10756,
327,
31,
9506,
202,
759,
18818,
596,
2856,
358,
999,
2252,
578,
2252,
91,
202,
202,
780,
1140,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
202,
202,
780,
20894,
31,
202,
202,
430,
261,
538,
18,
8436,
2932,
15591,
1700,
87,
4509,
7923,
747,
1140,
18,
8436,
2932,
2356,
22973,
6,
3719,
288,
1082,
202,
3076,
1670,
273,
315,
6290,
91,
300,
11930,
11843,
397,
312,
67,
15912,
1875,
202,
15,
315,
838,
1695,
838,
1695,
10225,
297,
9313,
1695,
4757,
1695,
10225,
297,
5852,
24113,
18,
11930,
2412,
300,
7222,
300,
5629,
315,
397,
4040,
461,
31,
202,
202,
97,
469,
288,
1082,
202,
3076,
1670,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
8712,
7923,
397,
2206,
4757,
19,
6290,
300,
11930,
315,
397,
312,
67,
15912,
1082,
202,
15,
315,
16644,
10225,
297,
9313,
19,
4757,
19,
10225,
297,
5852,
24113,
18,
11930,
300,
7222,
300,
5629,
315,
397,
4040,
461,
31,
202,
202,
97,
9506,
202,
5576,
436,
273,
2252,
18,
4936,
18,
5576,
18,
588,
5576,
5621,
202,
202,
698,
288,
1082,
202,
759,
2660,
30,
10680,
326,
2106,
1207,
279,
2831,
7844,
18,
1082,
202,
2227,
293,
273,
436,
18,
4177,
12,
3076,
1670,
1769,
25083,
202,
430,
16051,
7048,
1290,
24113,
12,
84,
3719,
288,
9506,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12560,
24113,
12,
780,
4040,
461,
13,
288,
202,
202,
430,
16051,
81,
67,
2829,
6215,
13,
327,
31,
202,
202,
430,
261,
4148,
693,
8932,
10756,
327,
31,
9506,
202,
759,
18818,
596,
2856,
358,
999,
2252,
578,
2252,
91,
202,
202,
780,
1140,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
202,
202,
780,
20894,
31,
202,
202,
430,
261,
538,
18,
8436,
2932,
15591,
1700,
87,
4509,
7923,
747,
1140,
18,
8436,
2932,
2356,
22973,
6,
3719,
288,
1082,
202,
3076,
1670,
273,
315,
6290,
91,
300,
11930,
11843,
397,
312,
67,
15912,
1875,
202,
15,
315,
838,
1695,
838,
1695,
10225,
297,
9313,
1695,
4757,
1695,
10225,
297,
5852,
2
] |
IStyle s = ((AbstractContent)elt).getStyle(); Value sv = (Value)s.getProperty(index); Value cv = engine.resolveStyle(elt, index, sv, pcs);
|
IStyle s = ( (AbstractContent) elt ).getStyle( ); Value sv = (Value) s.getProperty( index ); Value cv = engine.resolveStyle( elt, index, sv, pcs );
|
public CSSValue getProperty(int index) { if (values == null) { values = new CSSValue[NUMBER_OF_STYLE]; caculated = new boolean[NUMBER_OF_STYLE]; } if (caculated[index]) { return values[index]; } IContent parent = (IContent)elt.getParent(); IStyle pcs = null; if (parent != null) { pcs = parent.getComputedStyle(); } // get the specified style IStyle s = ((AbstractContent)elt).getStyle(); Value sv = (Value)s.getProperty(index); Value cv = engine.resolveStyle(elt, index, sv, pcs); values[index] = cv; caculated[index] = true; return cv; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6373b5f23895ceff467362db03b2683f590a5649/ComputedStyle.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/dom/ComputedStyle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6765,
620,
3911,
12,
474,
770,
13,
225,
202,
95,
202,
202,
430,
261,
2372,
422,
446,
13,
202,
202,
95,
1082,
202,
2372,
273,
394,
6765,
620,
63,
9931,
67,
3932,
67,
15066,
15533,
1082,
202,
71,
1077,
11799,
273,
394,
1250,
63,
9931,
67,
3932,
67,
15066,
15533,
202,
202,
97,
202,
202,
430,
261,
71,
1077,
11799,
63,
1615,
5717,
202,
202,
95,
1082,
202,
2463,
924,
63,
1615,
15533,
202,
202,
97,
9506,
202,
45,
1350,
982,
273,
261,
45,
1350,
13,
20224,
18,
588,
3054,
5621,
202,
202,
45,
2885,
31353,
273,
446,
31,
202,
202,
430,
261,
2938,
480,
446,
13,
202,
202,
95,
1082,
202,
84,
2143,
273,
982,
18,
588,
17934,
2885,
5621,
202,
202,
97,
202,
202,
759,
336,
326,
1269,
2154,
202,
202,
45,
2885,
272,
273,
14015,
7469,
1350,
13,
20224,
2934,
588,
2885,
5621,
9506,
202,
620,
5893,
273,
261,
620,
13,
87,
18,
588,
1396,
12,
1615,
1769,
202,
202,
620,
8951,
273,
4073,
18,
10828,
2885,
12,
20224,
16,
770,
16,
5893,
16,
31353,
1769,
9506,
202,
2372,
63,
1615,
65,
273,
8951,
31,
202,
202,
71,
1077,
11799,
63,
1615,
65,
273,
638,
31,
9506,
202,
2463,
8951,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6765,
620,
3911,
12,
474,
770,
13,
225,
202,
95,
202,
202,
430,
261,
2372,
422,
446,
13,
202,
202,
95,
1082,
202,
2372,
273,
394,
6765,
620,
63,
9931,
67,
3932,
67,
15066,
15533,
1082,
202,
71,
1077,
11799,
273,
394,
1250,
63,
9931,
67,
3932,
67,
15066,
15533,
202,
202,
97,
202,
202,
430,
261,
71,
1077,
11799,
63,
1615,
5717,
202,
202,
95,
1082,
202,
2463,
924,
63,
1615,
15533,
202,
202,
97,
9506,
202,
45,
1350,
982,
273,
261,
45,
1350,
13,
20224,
18,
588,
3054,
5621,
202,
202,
45,
2885,
31353,
273,
446,
31,
202,
202,
430,
261,
2938,
480,
446,
13,
202,
202,
95,
1082,
202,
84,
2143,
273,
982,
2
] |
setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(),
|
setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(),
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMaxlength((String) evalAttr("maxlength", getMaxlength(), String.class)); } catch (NullAttributeException ex) { setMaxlength(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setReadonly(false); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELTextTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
10851,
2469,
12443,
780,
13,
5302,
3843,
2932,
27875,
3113,
7288,
2469,
9334,
4766,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
baseFactory.freeBucket(((PaddedEphemerallyEncryptedBucket)b).getUnderlying());
|
baseFactory.freeBucket(b);
|
public void freeBucket(Bucket b) throws IOException { baseFactory.freeBucket(((PaddedEphemerallyEncryptedBucket)b).getUnderlying()); }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/09788e91c148b4348293b38993a945853a2aae45/PaddedEphemerallyEncryptedBucketFactory.java/buggy/src/freenet/support/io/PaddedEphemerallyEncryptedBucketFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4843,
4103,
12,
4103,
324,
13,
1216,
1860,
288,
202,
202,
1969,
1733,
18,
9156,
4103,
12443,
12,
52,
9665,
41,
12549,
264,
1230,
14678,
4103,
13,
70,
2934,
588,
14655,
6291,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4843,
4103,
12,
4103,
324,
13,
1216,
1860,
288,
202,
202,
1969,
1733,
18,
9156,
4103,
12443,
12,
52,
9665,
41,
12549,
264,
1230,
14678,
4103,
13,
70,
2934,
588,
14655,
6291,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
db.setAutoCommit(false);
|
public ImageViewer(Frame f,String url,String user,String password) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException { frame = f; MenuBar mb = new MenuBar(); Menu m; MenuItem i; f.setMenuBar(mb); mb.add(m = new Menu("PostgreSQL")); m.add(i= new MenuItem("Initialise")); i.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.init(); } }); m.add(i= new MenuItem("Exit")); ActionListener exitListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.close(); } }; m.addActionListener(exitListener); mb.add(m = new Menu("Image")); m.add(i= new MenuItem("Import")); ActionListener importListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.importImage(); } }; i.addActionListener(importListener); m.add(i= new MenuItem("Remove")); ActionListener removeListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.removeImage(); } }; i.addActionListener(removeListener); // To the north is a label used to display the current images name f.add("North",label = new Label()); // We have a panel to the south of the frame containing the controls Panel p = new Panel(); p.setLayout(new FlowLayout()); Button b; p.add(b=new Button("Refresh List")); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.refreshList(); } }); p.add(b=new Button("Import new image")); b.addActionListener(importListener); p.add(b=new Button("Remove image")); b.addActionListener(removeListener); p.add(b=new Button("Quit")); b.addActionListener(exitListener); f.add("South",p); // And a panel to the west containing the list of available images f.add("West",list=new List()); list.addItemListener(this); // Finally the centre contains our image f.add("Center",canvas = new imageCanvas()); // Load the driver Class.forName("org.postgresql.Driver"); // Connect to database System.out.println("Connecting to Database URL = " + url); db = DriverManager.getConnection(url, user, password); // Create a statement stat = db.createStatement(); // Set the connection to use transactions db.setAutoCommit(false); // Also, get the LargeObjectManager for this connection lom = ((org.postgresql.Connection)db).getLargeObjectAPI(); // Now refresh the image selection list refreshList(); }
|
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/02faee5eaa0ed93364446f5c186fa6904899dca6/ImageViewer.java/clean/src/interfaces/jdbc/example/ImageViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3421,
18415,
12,
3219,
284,
16,
780,
880,
16,
780,
729,
16,
780,
2201,
13,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
2623,
273,
284,
31,
3639,
9809,
5190,
4903,
273,
394,
9809,
5190,
5621,
565,
9809,
312,
31,
565,
25085,
277,
31,
3639,
284,
18,
542,
4599,
5190,
12,
1627,
1769,
565,
4903,
18,
1289,
12,
81,
273,
394,
9809,
2932,
3349,
23896,
7923,
1769,
565,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
4435,
784,
7923,
1769,
565,
277,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
2738,
5621,
1377,
289,
565,
15549,
3639,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
6767,
7923,
1769,
565,
25962,
2427,
2223,
273,
394,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
4412,
5621,
1377,
289,
565,
289,
31,
565,
312,
18,
1289,
1803,
2223,
12,
8593,
2223,
1769,
3639,
4903,
18,
1289,
12,
81,
273,
394,
9809,
2932,
2040,
7923,
1769,
565,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
5010,
7923,
1769,
565,
25962,
1930,
2223,
273,
394,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
5666,
2040,
5621,
1377,
289,
565,
289,
31,
565,
277,
18,
1289,
1803,
2223,
12,
5666,
2223,
1769,
3639,
312,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3421,
18415,
12,
3219,
284,
16,
780,
880,
16,
780,
729,
16,
780,
2201,
13,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
2623,
273,
284,
31,
3639,
9809,
5190,
4903,
273,
394,
9809,
5190,
5621,
565,
9809,
312,
31,
565,
25085,
277,
31,
3639,
284,
18,
542,
4599,
5190,
12,
1627,
1769,
565,
4903,
18,
1289,
12,
81,
273,
394,
9809,
2932,
3349,
23896,
7923,
1769,
565,
312,
18,
1289,
12,
77,
33,
394,
25085,
2932,
4435,
784,
7923,
1769,
565,
277,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
1377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
2040,
18415,
18,
2211,
18,
2738,
5621,
1377,
289,
565,
15549,
2
] |
|
if ( !ExtensionManager.getInstance( ).getEmitterExtensions( ) .containsKey( format ) )
|
if ( !ExtensionManager.getInstance( ).getSupportedFormat() .contains( format ) )
|
public void run( ) throws EngineException { // Make a deep copy of the design element and recreate the // IReportRunnable // This should be moved to a common place of RunTask, RunderTask and // InteractiveTask. ReportDesignHandle designHandle = (ReportDesignHandle) runnable .getDesignHandle( ); ReportDesignHandle copiedDesignHandle = designHandle; /* * TODO: uncomment the following part when the deep copy in DE is ready. * ReportDesign copiedReportDesign = (ReportDesign)designHandle.copy(); * ReportDesignHandle copiedDesignHandle = * (ReportDesignHandle)copiedReportDesign.getHandle( null ); // null * will create a new report design handle */ if ( !validateParameters( ) ) { throw new EngineException( MessageConstants.INVALID_PARAMETER_EXCEPTION ); //$NON-NLS-1$ } // create the emitter services object that is needed in the emitters. EngineEmitterServices services = new EngineEmitterServices( this ); services.setRenderOption( renderOption ); EngineConfig config = engine.getConfig( ); if ( config != null ) services .setEmitterConfig( engine.getConfig( ).getEmitterConfigs( ) ); services.setRenderContext( context ); services.setReportRunnable( runnable ); // register default parameters usingParameterValues( ); // After setting up the parameter values and before executing the // report, we need to call onPrepare on all items. // Create IReportContext and set it to execution context ReportContextImpl reportContext = new ReportContextImpl( executionContext.getParams( ), config.getConfigMap( ), executionContext.getAppContext( ) ); executionContext.setReportContext( reportContext ); // Call onPrepare in the design tree ScriptedDesignVisitor visitor = new ScriptedDesignVisitor( copiedDesignHandle, executionContext ); visitor.apply( copiedDesignHandle.getRoot( ) ); // setup runtime configurations // user defined configs are overload using system properties. executionContext.getConfigs( ).putAll( runnable.getTestConfig( ) ); executionContext.getConfigs( ).putAll( System.getProperties( ) ); // Set up rendering environment and check for supported format executionContext.setRenderOption( renderOption ); String format = renderOption.getOutputFormat( ); if ( format == null || format.length( ) == 0 ) // $NON-NLS-1 { renderOption.setOutputFormat( "html" ); // $NON-NLS-1 format = "html"; // $NON-NLS-1 } else if ( renderOption != null && format.equalsIgnoreCase( "fo" ) // $NON-NLS-1 && ( (FORenderOption) renderOption ).getTailoredForFOP( ) ) { format = "fop"; // $NON-NLS-1 } if ( !ExtensionManager.getInstance( ).getEmitterExtensions( ) .containsKey( format ) ) { log.log( Level.SEVERE, MessageConstants.FORMAT_NOT_SUPPORTED_EXCEPTION, format ); throw new EngineException( MessageConstants.FORMAT_NOT_SUPPORTED_EXCEPTION, format ); } IContentEmitter emitter = ExtensionManager.getInstance( ) .createEmitter( format, emitterID ); if ( emitter == null ) { log.log( Level.SEVERE, "Report engine can not create {0} emitter.", format ); // $NON-NLS-1$ throw new EngineException( MessageConstants.CANNOT_CREATE_EMITTER_EXCEPTION ); } ReportExecutor executor = new ReportExecutor( executionContext ); services.setExecutor( executor ); // localized emitter emitter = new LocalizedEmitter( executionContext, emitter ); // if we need do the paginate, do the paginate. if ( format.equalsIgnoreCase( "html" ) ) { emitter = new HTMLPaginationEmitter( executor, emitter ); } else if ( format.equalsIgnoreCase( "fo" ) || format.equalsIgnoreCase( "fop" ) || format.equalsIgnoreCase( "pdf" ) ) { emitter = new DefaultPaginationEmitter( executor, emitter ); } // emitter is not null emitter.initialize( services ); try { Report report = new ReportParser( ) .parse( ( (ReportRunnable) runnable ).getReport( ) ); executor.execute( report, emitter ); } catch ( Exception ex ) { log.log( Level.SEVERE, "An error happened while running the report. Cause:", ex ); //$NON-NLS-1$ throw new EngineException( "Error happened while running the report", ex ); } catch ( OutOfMemoryError err ) { log.log( Level.SEVERE, "An OutOfMemory error happened while running the report." ); //$NON-NLS-1$ throw err; } catch ( Throwable t ) { log.log( Level.SEVERE, "Error happened while running the report.", t ); //$NON-NLS-1$ new EngineException( "Error happened while running the report", t ); } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1d8d582eae226915b0af0dada3168441cc0fb0a2/RunAndRenderTask.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
759,
4344,
279,
4608,
1610,
434,
326,
8281,
930,
471,
23052,
326,
202,
202,
759,
467,
4820,
20013,
202,
202,
759,
1220,
1410,
506,
10456,
358,
279,
2975,
3166,
434,
1939,
2174,
16,
1939,
765,
2174,
471,
202,
202,
759,
5294,
3535,
2174,
18,
202,
202,
4820,
15478,
3259,
8281,
3259,
273,
261,
4820,
15478,
3259,
13,
14685,
9506,
202,
18,
588,
15478,
3259,
12,
11272,
202,
202,
4820,
15478,
3259,
9268,
15478,
3259,
273,
8281,
3259,
31,
202,
202,
20308,
1082,
380,
2660,
30,
12704,
475,
326,
3751,
1087,
1347,
326,
4608,
1610,
316,
2030,
353,
5695,
18,
1082,
380,
8706,
15478,
9268,
4820,
15478,
273,
261,
4820,
15478,
13,
16934,
3259,
18,
3530,
5621,
1082,
380,
8706,
15478,
3259,
9268,
15478,
3259,
273,
1082,
380,
261,
4820,
15478,
3259,
13,
22295,
2092,
4820,
15478,
18,
588,
3259,
12,
446,
11272,
368,
446,
1082,
380,
903,
752,
279,
394,
2605,
8281,
1640,
1082,
1195,
202,
202,
430,
261,
401,
5662,
2402,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
10507,
503,
12,
6862,
202,
1079,
2918,
18,
9347,
67,
9819,
67,
12658,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
759,
752,
326,
11520,
4028,
733,
716,
353,
3577,
316,
326,
3626,
5432,
18,
202,
202,
4410,
13476,
5676,
4028,
273,
394,
10507,
13476,
5676,
12,
333,
11272,
202,
202,
8387,
18,
542,
3420,
1895,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
262,
1216,
10507,
503,
202,
95,
202,
202,
759,
4344,
279,
4608,
1610,
434,
326,
8281,
930,
471,
23052,
326,
202,
202,
759,
467,
4820,
20013,
202,
202,
759,
1220,
1410,
506,
10456,
358,
279,
2975,
3166,
434,
1939,
2174,
16,
1939,
765,
2174,
471,
202,
202,
759,
5294,
3535,
2174,
18,
202,
202,
4820,
15478,
3259,
8281,
3259,
273,
261,
4820,
15478,
3259,
13,
14685,
9506,
202,
18,
588,
15478,
3259,
12,
11272,
202,
202,
4820,
15478,
3259,
9268,
15478,
3259,
273,
8281,
3259,
31,
202,
202,
20308,
1082,
380,
2660,
30,
12704,
475,
326,
3751,
1087,
1347,
326,
4608,
1610,
316,
2030,
353,
5695,
18,
1082,
380,
8706,
15478,
9268,
4820,
2
] |
setOnmouseup(null);
|
private void evaluateExpressions() throws JspException { try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMultiple((String) evalAttr("multiple", getMultiple(), String.class)); } catch (NullAttributeException ex) { setMultiple(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELSelectTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSelectTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8438,
12443,
780,
13,
5302,
3843,
2932,
9622,
3113,
30226,
2444,
9334,
4766,
1850,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8438,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
1106,
10019,
3639,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
2
] |
|
{ if (!isBinary) return -1; int cvFolds=0; for (int i=0; i<entryList.size(); i++) { Entry e = getEntry(i); if (e.partitionID>cvFolds) { cvFolds=e.partitionID+1; } } double mean = errorsNeg()/numberOfNegativeExamples(); double variance = 0.0; for (int k=0; k<cvFolds; k++) { variance += Math.pow( errorsNeg(k)/numberOfNegativeExamples(k)-mean,2 ) / ((double)cvFolds); } return Math.sqrt( variance ); }
|
{ if (!isBinary) return -1; int cvFolds=0; for (int i=0; i<entryList.size(); i++) { Entry e = getEntry(i); if (e.partitionID>cvFolds) { cvFolds=e.partitionID+1; } } double mean = errorsNeg()/numberOfNegativeExamples(); double variance = 0.0; for (int k=0; k<cvFolds; k++) { variance += Math.pow( errorsNeg(k)/numberOfNegativeExamples(k)-mean,2 ) / ((double)cvFolds); } return Math.sqrt( variance ); }
|
public double stDevErrorsNeg() { if (!isBinary) return -1; int cvFolds=0; for (int i=0; i<entryList.size(); i++) { Entry e = getEntry(i); if (e.partitionID>cvFolds) { cvFolds=e.partitionID+1; } } double mean = errorsNeg()/numberOfNegativeExamples(); double variance = 0.0; for (int k=0; k<cvFolds; k++) { variance += Math.pow( errorsNeg(k)/numberOfNegativeExamples(k)-mean,2 ) / ((double)cvFolds); } return Math.sqrt( variance ); }
|
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/e6f5547ded82a315c0b8bcee96ff61710888c5a2/Evaluation.java/buggy/src/edu/cmu/minorthird/classify/experiments/Evaluation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
384,
8870,
4229,
14337,
1435,
565,
288,
202,
430,
16051,
291,
5905,
13,
327,
300,
21,
31,
202,
474,
8951,
15592,
87,
33,
20,
31,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
4099,
682,
18,
1467,
5621,
277,
27245,
202,
565,
288,
202,
202,
1622,
425,
273,
15428,
12,
77,
1769,
202,
202,
430,
261,
73,
18,
10534,
734,
34,
19774,
15592,
87,
13,
288,
8951,
15592,
87,
33,
73,
18,
10534,
734,
15,
21,
31,
289,
202,
565,
289,
202,
9056,
3722,
273,
1334,
14337,
1435,
19,
2696,
951,
14959,
23905,
5621,
202,
9056,
12380,
273,
374,
18,
20,
31,
202,
1884,
261,
474,
417,
33,
20,
31,
417,
32,
19774,
15592,
87,
31,
417,
27245,
202,
565,
288,
202,
202,
11721,
1011,
2361,
18,
23509,
12,
1334,
14337,
12,
79,
13176,
2696,
951,
14959,
23905,
12,
79,
24950,
7079,
16,
22,
262,
342,
14015,
9056,
13,
19774,
15592,
87,
1769,
202,
565,
289,
202,
2463,
2361,
18,
24492,
12,
12380,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
384,
8870,
4229,
14337,
1435,
565,
288,
202,
430,
16051,
291,
5905,
13,
327,
300,
21,
31,
202,
474,
8951,
15592,
87,
33,
20,
31,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
4099,
682,
18,
1467,
5621,
277,
27245,
202,
565,
288,
202,
202,
1622,
425,
273,
15428,
12,
77,
1769,
202,
202,
430,
261,
73,
18,
10534,
734,
34,
19774,
15592,
87,
13,
288,
8951,
15592,
87,
33,
73,
18,
10534,
734,
15,
21,
31,
289,
202,
565,
289,
202,
9056,
3722,
273,
1334,
14337,
1435,
19,
2696,
951,
14959,
23905,
5621,
202,
9056,
12380,
273,
374,
18,
20,
31,
202,
1884,
261,
474,
417,
33,
20,
31,
417,
32,
19774,
15592,
2
] |
rules[7] = (new MultiLineRule("task#", " ", bugToken));
|
rules[7] = (new SingleLineRule("task#", " ", bugToken));
|
public RepositoryTextScanner() { IToken bugToken = new Token(new TextAttribute(TaskListColorsAndFonts.COLOR_HYPERLINK)); IRule[] rules = new IRule[15]; rules[0] = (new SingleLineRule("http://", " ", bugToken)); rules[1] = (new SingleLineRule("https://", " ", bugToken)); rules[2] = (new MultiLineRule("bug#", " ", bugToken)); rules[3] = (new MultiLineRule("bug #", " ", bugToken)); rules[4] = (new SingleLineRule("bug #", "\n", bugToken)); rules[5] = (new SingleLineRule("http://", "\n", bugToken)); rules[6] = (new SingleLineRule("https://", "\n", bugToken)); rules[7] = (new MultiLineRule("task#", " ", bugToken)); rules[8] = (new MultiLineRule("task#", "\n", bugToken)); rules[9] = (new MultiLineRule("task# ", " ", bugToken)); rules[10] = (new SingleLineRule("task #", "\n", bugToken)); rules[11] = (new SingleLineRule("*** This bug has been ", "***", bugToken)); rules[12] = (new SingleLineRule("http://", "", bugToken)); rules[13] = (new SingleLineRule("https://", "", bugToken)); rules[14] = (new MultiLineRule("task #", " ", bugToken)); setRules(rules); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/30c931929f4e1d114ba0bb162733f350501d5153/RepositoryViewerConfig.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/RepositoryViewerConfig.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6281,
1528,
11338,
1435,
288,
1082,
202,
1285,
969,
7934,
1345,
273,
394,
3155,
12,
2704,
3867,
1499,
12,
2174,
682,
12570,
1876,
5711,
87,
18,
10989,
67,
44,
61,
3194,
10554,
10019,
1082,
202,
45,
2175,
8526,
2931,
273,
394,
467,
2175,
63,
3600,
15533,
1082,
202,
7482,
63,
20,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
2505,
2207,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
21,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
4528,
2207,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
22,
65,
273,
261,
2704,
5991,
1670,
2175,
2932,
925,
7,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
23,
65,
273,
261,
2704,
5991,
1670,
2175,
2932,
925,
468,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
24,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
925,
468,
3113,
1548,
82,
3113,
7934,
1345,
10019,
1082,
202,
7482,
63,
25,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
2505,
2207,
3113,
1548,
82,
3113,
7934,
1345,
10019,
1082,
202,
7482,
63,
26,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
4528,
2207,
3113,
1548,
82,
3113,
7934,
1345,
10019,
1082,
202,
7482,
63,
27,
65,
273,
261,
2704,
5991,
1670,
2175,
2932,
4146,
7,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
28,
65,
273,
261,
2704,
5991,
1670,
2175,
2932,
4146,
7,
3113,
1548,
82,
3113,
7934,
1345,
10019,
1082,
202,
7482,
63,
29,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6281,
1528,
11338,
1435,
288,
1082,
202,
1285,
969,
7934,
1345,
273,
394,
3155,
12,
2704,
3867,
1499,
12,
2174,
682,
12570,
1876,
5711,
87,
18,
10989,
67,
44,
61,
3194,
10554,
10019,
1082,
202,
45,
2175,
8526,
2931,
273,
394,
467,
2175,
63,
3600,
15533,
1082,
202,
7482,
63,
20,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
2505,
2207,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
21,
65,
273,
261,
2704,
10326,
1670,
2175,
2932,
4528,
2207,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
22,
65,
273,
261,
2704,
5991,
1670,
2175,
2932,
925,
7,
3113,
315,
3104,
7934,
1345,
10019,
1082,
202,
7482,
63,
23,
65,
273,
2
] |
super("Exponentially Distributed", tree, ratesParameter, rootRatePrior, episodicModel);
|
super("Exponentially Distributed", tree, ratesParameter, rootRatePrior, episodicModel);
|
public EDLikelihood(TreeModel tree, Parameter ratesParameter, int rootRatePrior, boolean episodicModel) { super("Exponentially Distributed", tree, ratesParameter, rootRatePrior, episodicModel); }
|
51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/144b4e1c11d383f1c809956fab05e09ba7838da4/EDLikelihood.java/clean/src/dr/evomodel/clock/EDLikelihood.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
512,
8914,
1766,
11318,
12,
2471,
1488,
2151,
16,
5498,
17544,
1662,
16,
509,
1365,
4727,
25355,
16,
1250,
5529,
291,
369,
335,
1488,
13,
288,
9506,
202,
9565,
2932,
17972,
6261,
27877,
3113,
2151,
16,
17544,
1662,
16,
1365,
4727,
25355,
16,
5529,
291,
369,
335,
1488,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
512,
8914,
1766,
11318,
12,
2471,
1488,
2151,
16,
5498,
17544,
1662,
16,
509,
1365,
4727,
25355,
16,
1250,
5529,
291,
369,
335,
1488,
13,
288,
9506,
202,
9565,
2932,
17972,
6261,
27877,
3113,
2151,
16,
17544,
1662,
16,
1365,
4727,
25355,
16,
5529,
291,
369,
335,
1488,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fDefaultQualified = saveDefaultQualified;
|
fElementDefaultQualified = saveElementDefaultQualified; fAttributeDefaultQualified = saveAttributeDefaultQualified;
|
private void traverseInclude(Element includeDecl) throws Exception { //TO DO: !!!!! location needs to be resolved first. String location = includeDecl.getAttribute(SchemaSymbols.ATT_SCHEMALOCATION); location = expandSystemId(location, fCurrentSchemaURL); if (fIncludeLocations.contains((Object)location)) { return; } fIncludeLocations.addElement((Object)location); DOMParser parser = new DOMParser() { public void ignorableWhitespace(char ch[], int start, int length) {} public void ignorableWhitespace(int dataIdx) {} }; parser.setEntityResolver( new Resolver() ); parser.setErrorHandler( new ErrorHandler() ); try { parser.setFeature("http://xml.org/sax/features/validation", false); parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); }catch( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); }catch( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } try { parser.parse( location); }catch( IOException e ) { e.printStackTrace(); }catch( SAXException e ) { //e.printStackTrace(); } Document document = parser.getDocument(); //Our Grammar Element root = null; if (document != null) { root = document.getDocumentElement(); } if (root != null) { String targetNSURI = root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE); if (targetNSURI.length() > 0 && !targetNSURI.equals(fTargetNSURIString) ) { // REVISIT: Localize reportGenericSchemaError("included schema '"+location+"' has a different targetNameSpace '" +targetNSURI+"'"); } else { boolean saveDefaultQualified = fDefaultQualified; int saveScope = fCurrentScope; String savedSchemaURL = fCurrentSchemaURL; Element saveRoot = fSchemaRootElement; fSchemaRootElement = root; fCurrentSchemaURL = location; traverseIncludedSchema(root); fCurrentSchemaURL = savedSchemaURL; fCurrentScope = saveScope; fDefaultQualified = saveDefaultQualified; fSchemaRootElement = saveRoot; } } }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/bb46beeba7f4c3b418f67afb47fca9e30f072115/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
8752,
12,
1046,
2341,
3456,
13,
1216,
1185,
288,
3639,
368,
4296,
5467,
30,
401,
23045,
2117,
4260,
358,
506,
4640,
1122,
18,
3639,
514,
2117,
273,
2341,
3456,
18,
588,
1499,
12,
3078,
14821,
18,
789,
56,
67,
55,
10390,
1013,
51,
8506,
1769,
3639,
2117,
273,
4542,
3163,
548,
12,
3562,
16,
284,
3935,
3078,
1785,
1769,
3639,
309,
261,
74,
8752,
10985,
18,
12298,
12443,
921,
13,
3562,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
284,
8752,
10985,
18,
1289,
1046,
12443,
921,
13,
3562,
1769,
3639,
4703,
2678,
2082,
273,
394,
4703,
2678,
1435,
288,
5411,
1071,
918,
9750,
15514,
9431,
12,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
2618,
5411,
1071,
918,
9750,
15514,
9431,
12,
474,
501,
4223,
13,
2618,
3639,
289,
31,
3639,
2082,
18,
542,
1943,
4301,
12,
394,
17183,
1435,
11272,
3639,
2082,
18,
542,
17729,
12,
225,
394,
26406,
1435,
11272,
3639,
775,
288,
5411,
2082,
18,
542,
4595,
2932,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
8685,
3113,
629,
1769,
5411,
2082,
18,
542,
4595,
2932,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
16078,
3113,
638,
1769,
5411,
2082,
18,
542,
4595,
2932,
2505,
2207,
19211,
18,
3341,
19,
2902,
19,
7139,
19,
9859,
19,
18974,
17,
2159,
17,
2749,
12162,
3113,
629,
1769,
3639,
289,
14683,
12,
225,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
1248,
5650,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10080,
8752,
12,
1046,
2341,
3456,
13,
1216,
1185,
288,
3639,
368,
4296,
5467,
30,
401,
23045,
2117,
4260,
358,
506,
4640,
1122,
18,
3639,
514,
2117,
273,
2341,
3456,
18,
588,
1499,
12,
3078,
14821,
18,
789,
56,
67,
55,
10390,
1013,
51,
8506,
1769,
3639,
2117,
273,
4542,
3163,
548,
12,
3562,
16,
284,
3935,
3078,
1785,
1769,
3639,
309,
261,
74,
8752,
10985,
18,
12298,
12443,
921,
13,
3562,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
284,
8752,
10985,
18,
1289,
1046,
12443,
921,
13,
3562,
1769,
3639,
4703,
2678,
2082,
273,
394,
4703,
2678,
1435,
288,
5411,
1071,
918,
9750,
15514,
9431,
12,
3001,
462,
63,
6487,
509,
787,
16,
509,
2
] |
j.dv.printDiffRules();
|
j.getDifferentationVisitor().printDiffRules();
|
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.dv.printDiffRules(); System.out.println("Operators:"); Operator.printOperators();// System.out.println("dJEPdx - Enter q to quit, rules to print the differentation rules,\ndiff(x^2,x) to differentiate,\neval(x^y,x,2,y,3) to evaluate"); System.out.print(prompt); return getCommand(); } if( s.equals("invalidate")) { this.j.getSymbolTable().clearValues(); j.getVarTab().print(j.pv); System.out.print(prompt); return getCommand(); } if (s.equals("q") || s.equals("quit") || s.equals("exit")) return null; return s; }
|
54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/4f303d30b1e9325b8e6560f423a82b2e3baee2a7/MatrixConsole.java/clean/src/org/lsmp/djepExamples/MatrixConsole.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
12856,
1435,
1216,
1860,
288,
202,
202,
780,
272,
31,
9506,
202,
430,
261,
2848,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
430,
261,
261,
87,
273,
5186,
18,
896,
1670,
10756,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
430,
12,
272,
18,
14963,
2932,
7482,
6,
3719,
202,
202,
95,
1082,
202,
78,
18,
15679,
18,
1188,
5938,
4478,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
24473,
2773,
1769,
1082,
202,
5592,
18,
1188,
24473,
5621,
759,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
72,
46,
10541,
13437,
300,
15439,
1043,
358,
9706,
16,
2931,
358,
1172,
326,
3775,
367,
2931,
17211,
4880,
3048,
12,
92,
66,
22,
16,
92,
13,
358,
3775,
3840,
17211,
4644,
1125,
12,
92,
66,
93,
16,
92,
16,
22,
16,
93,
16,
23,
13,
358,
5956,
8863,
9506,
202,
3163,
18,
659,
18,
1188,
12,
13325,
1769,
1082,
202,
2463,
12856,
5621,
202,
202,
97,
202,
202,
430,
12,
272,
18,
14963,
2932,
5387,
340,
6,
3719,
202,
202,
95,
1082,
202,
2211,
18,
78,
18,
588,
5335,
1388,
7675,
8507,
1972,
5621,
1082,
202,
78,
18,
588,
1537,
5661,
7675,
1188,
12,
78,
18,
25224,
1769,
9506,
202,
3163,
18,
659,
18,
1188,
12,
13325,
1769,
1082,
202,
2463,
12856,
5621,
202,
202,
97,
202,
202,
430,
261,
87,
18,
14963,
2932,
85,
7923,
1082,
202,
20081,
272,
18,
14963,
2932,
27176,
7923,
1082,
202,
20081,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
12856,
1435,
1216,
1860,
288,
202,
202,
780,
272,
31,
9506,
202,
430,
261,
2848,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
430,
261,
261,
87,
273,
5186,
18,
896,
1670,
10756,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
430,
12,
272,
18,
14963,
2932,
7482,
6,
3719,
202,
202,
95,
1082,
202,
78,
18,
15679,
18,
1188,
5938,
4478,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
24473,
2773,
1769,
1082,
202,
5592,
18,
1188,
24473,
5621,
759,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
72,
46,
10541,
13437,
300,
15439,
1043,
358,
9706,
16,
2931,
358,
1172,
326,
3775,
367,
2931,
17211,
4880,
3048,
12,
2
] |
int idx = listenerTypeName.lastIndexOf("Listener");
|
int idx = listenerTypeName.lastIndexOf("Listener");
|
private Class<?> getEventType(Class<?> listenerType) throws ClassNotFoundException { String listenerTypeName = listenerType.getName(); int idx = listenerTypeName.lastIndexOf("Listener"); String eventTypeName = listenerTypeName; if (idx != -1) { eventTypeName = listenerTypeName.substring(0, idx) + "Event"; } return Class .forName(eventTypeName, true, listenerType.getClassLoader()); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/fbebe792ba7d15ca09ee75a1c409e3a37b2da0db/EventSetDescriptor.java/clean/modules/beans/src/main/java/java/beans/EventSetDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1659,
12880,
34,
9832,
559,
12,
797,
12880,
34,
2991,
559,
13,
5411,
1216,
10403,
288,
3639,
514,
2991,
7947,
273,
2991,
559,
18,
17994,
5621,
3639,
509,
2067,
273,
2991,
7947,
18,
2722,
31985,
2932,
2223,
8863,
3639,
514,
871,
7947,
273,
2991,
7947,
31,
3639,
309,
261,
3465,
480,
300,
21,
13,
288,
5411,
871,
7947,
273,
2991,
7947,
18,
28023,
12,
20,
16,
2067,
13,
397,
315,
1133,
14432,
3639,
289,
3639,
327,
1659,
7734,
263,
1884,
461,
12,
2575,
7947,
16,
638,
16,
2991,
559,
18,
588,
7805,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1659,
12880,
34,
9832,
559,
12,
797,
12880,
34,
2991,
559,
13,
5411,
1216,
10403,
288,
3639,
514,
2991,
7947,
273,
2991,
559,
18,
17994,
5621,
3639,
509,
2067,
273,
2991,
7947,
18,
2722,
31985,
2932,
2223,
8863,
3639,
514,
871,
7947,
273,
2991,
7947,
31,
3639,
309,
261,
3465,
480,
300,
21,
13,
288,
5411,
871,
7947,
273,
2991,
7947,
18,
28023,
12,
20,
16,
2067,
13,
397,
315,
1133,
14432,
3639,
289,
3639,
327,
1659,
7734,
263,
1884,
461,
12,
2575,
7947,
16,
638,
16,
2991,
559,
18,
588,
7805,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
displayMessage(
|
display.message(
|
private GameState yourTurn() { displayMessage("Your move!\n"); for (;;) { String[] move = BattleBoardUtils.getKeyboardInputTokens( "player x y, or pass "); if ((move.length == 1) && "pass".equals(move[0])) { if (standAloneMode) { displayMessage("TO SERVER: " + "pass" + "\n"); } else { ByteBuffer buf = ByteBuffer.wrap("pass".getBytes()); buf.position(buf.limit()); connectionManager.sendToServer(buf, true); } break; } else if (move.length == 3) { String bombedPlayer = move[0]; if (!playerNames.contains(bombedPlayer)) { displayMessage("Error: player (" + bombedPlayer + ") is not in the game\n"); displayMessage("Please try again.\n"); continue; } int x = (int) new Integer(move[1]); int y = (int) new Integer(move[2]); if ((x < 0) || (x >= myBoard.getWidth()) || (y < 0) || (y >= myBoard.getHeight())) { displayMessage("Illegal (x,y)\n"); displayMessage("Please try again.\n"); continue; } String moveMessage = "move " + bombedPlayer + " " + x + " " + y; if (standAloneMode) { displayMessage("TO SERVER: " + moveMessage + "\n"); } else { ByteBuffer buf = ByteBuffer.wrap(moveMessage.getBytes()); buf.position(buf.limit()); connectionManager.sendToServer(buf, true); } break; } else { displayMessage( "Improperly formatted move. Please try again.\n"); } return GameState.END_MOVE; } return GameState.END_MOVE; }
|
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/2452a8779617f0038d3a1d0857d5e3bf14751ef0/BattleBoardPlayer.java/clean/src/com/sun/gi/apps/battleboard/client/BattleBoardPlayer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14121,
1119,
3433,
15858,
1435,
288,
202,
5417,
1079,
2932,
15446,
3635,
24440,
82,
8863,
202,
1884,
261,
25708,
13,
288,
202,
565,
514,
8526,
3635,
273,
605,
4558,
298,
22233,
1989,
18,
588,
17872,
1210,
5157,
12,
1082,
202,
6,
14872,
619,
677,
16,
578,
1342,
315,
1769,
202,
565,
309,
14015,
8501,
18,
2469,
422,
404,
13,
597,
315,
5466,
9654,
14963,
12,
8501,
63,
20,
22643,
288,
202,
202,
430,
261,
10145,
1067,
476,
2309,
13,
288,
1082,
565,
2562,
1079,
2932,
4296,
15061,
30,
315,
397,
315,
5466,
6,
397,
1548,
82,
8863,
202,
202,
97,
469,
288,
1082,
565,
7400,
1681,
273,
7400,
18,
4113,
2932,
5466,
9654,
588,
2160,
10663,
1082,
565,
1681,
18,
3276,
12,
4385,
18,
3595,
10663,
1082,
565,
1459,
1318,
18,
4661,
774,
2081,
12,
4385,
16,
638,
1769,
202,
202,
97,
202,
202,
8820,
31,
202,
565,
289,
469,
309,
261,
8501,
18,
2469,
422,
890,
13,
288,
202,
202,
780,
28626,
2992,
12148,
273,
3635,
63,
20,
15533,
202,
202,
430,
16051,
14872,
1557,
18,
12298,
12,
70,
362,
2992,
12148,
3719,
288,
1082,
565,
2562,
1079,
2932,
668,
30,
7291,
7566,
397,
28626,
2992,
12148,
397,
9506,
565,
9369,
353,
486,
316,
326,
7920,
64,
82,
8863,
1082,
565,
2562,
1079,
2932,
8496,
775,
3382,
8403,
82,
8863,
1082,
565,
1324,
31,
202,
202,
97,
202,
202,
474,
619,
273,
261,
474,
13,
394,
2144,
12,
8501,
63,
21,
19226,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14121,
1119,
3433,
15858,
1435,
288,
202,
5417,
1079,
2932,
15446,
3635,
24440,
82,
8863,
202,
1884,
261,
25708,
13,
288,
202,
565,
514,
8526,
3635,
273,
605,
4558,
298,
22233,
1989,
18,
588,
17872,
1210,
5157,
12,
1082,
202,
6,
14872,
619,
677,
16,
578,
1342,
315,
1769,
202,
565,
309,
14015,
8501,
18,
2469,
422,
404,
13,
597,
315,
5466,
9654,
14963,
12,
8501,
63,
20,
22643,
288,
202,
202,
430,
261,
10145,
1067,
476,
2309,
13,
288,
1082,
565,
2562,
1079,
2932,
4296,
15061,
30,
315,
397,
315,
5466,
6,
397,
1548,
82,
8863,
202,
202,
97,
469,
288,
1082,
565,
7400,
1681,
273,
7400,
18,
4113,
2932,
5466,
9654,
588,
2160,
10663,
1082,
2
] |
String notifications = "<?xml version=\\\"1.0\\\"?>\\n\" + \n" + " \"<notifications xmlns=\\\"http: " \" <header>\\n\" + \n" + " \" <rev>1.2</rev>\\n\" + \n" + " \" <created>Wednesday, February 6, 2002 10:10:00 AM EST</created>\\n\" + \n" + " \" <mstation>localhost</mstation>\\n\" + \n" + " \" </header>\\n" + " <notification name=\"SNMP High disk Threshold Exceeded\" status=\"on\">\n" + " <uei>uei.opennms.org/threshold/highThresholdExceeded</uei>\n" + " <description>high disk threshold exceeded on snmp\n" + "interface</description>\n" + " <rule>(IPADDR IPLIKE *.*.*.*) & (isSNMP )</rule>\n" + " <destinationPath>Email-Network/Systems</destinationPath>\n" + " <text-message>High disk Threshold exceeded on %interface%, %parm[ds]%\n" + "with %parm[value]%%%</text-message>\n" + " <subject>Notice #%noticeid%, High disk Threshold exceeded</subject>\n" + " <varbind>\n" + " <vbname>ds</vbname>\n" + " <vbvalue>dsk-usr-pcent</vbvalue>\n" + " </varbind>\n" + " </notification>\n" + " <notification name=\"SNMP High loadavg5 Threshold Exceeded\" status=\"on\">\n" + " <uei>uei.opennms.org/threshold/highThresholdExceeded</uei>\n" + " <description>high loadavg5 threshold exceeded on snmp\n" + "interface</description>\n" + " <rule>(IPADDR IPLIKE *.*.*.*) & (isSNMP )</rule>\n" + " <destinationPath>Email-Network/Systems</destinationPath>\n" + " <text-message>High loadavg5 Threshold exceeded on %interface%,\n" + "%parm[ds]% with %parm[value]%%%</text-message>\n" + " <subject>Notice #%noticeid%, High loadavg5 Threshold\n" + "exceeded</subject>\n" + " <varbind>\n" + " <vbname>ds</vbname>\n" + " <vbvalue>loadavg5</vbvalue>\n" + " </varbind>\n" + " </notification>" + "</notifications>";
|
/* * This is the notification config that Wicktor sent when reporting this bug. * * We need to create and Threshold Exceeded event for loadavg5 to match his * notification name = "SNMP High loadavg5 Threshold Exceeded" correctly parsing the varbind. * * What happens (he sent us a patch for this) is that the code does a return instead of a continue * when going through the notification names. */
|
public void testWicktorBug() throws Exception { //setup the notifications that Wicktor discussed String notifications = "<?xml version=\\\"1.0\\\"?>\\n\" + \n" + " \"<notifications xmlns=\\\"http://xmlns.opennms.org/xsd/notifications\\\">\\n\" + \n" + " \" <header>\\n\" + \n" + " \" <rev>1.2</rev>\\n\" + \n" + " \" <created>Wednesday, February 6, 2002 10:10:00 AM EST</created>\\n\" + \n" + " \" <mstation>localhost</mstation>\\n\" + \n" + " \" </header>\\n" + " <notification name=\"SNMP High disk Threshold Exceeded\" status=\"on\">\n" + " <uei>uei.opennms.org/threshold/highThresholdExceeded</uei>\n" + " <description>high disk threshold exceeded on snmp\n" + "interface</description>\n" + " <rule>(IPADDR IPLIKE *.*.*.*) & (isSNMP )</rule>\n" + " <destinationPath>Email-Network/Systems</destinationPath>\n" + " <text-message>High disk Threshold exceeded on %interface%, %parm[ds]%\n" + "with %parm[value]%%%</text-message>\n" + " <subject>Notice #%noticeid%, High disk Threshold exceeded</subject>\n" + " <varbind>\n" + " <vbname>ds</vbname>\n" + " <vbvalue>dsk-usr-pcent</vbvalue>\n" + " </varbind>\n" + " </notification>\n" + " <notification name=\"SNMP High loadavg5 Threshold Exceeded\" status=\"on\">\n" + " <uei>uei.opennms.org/threshold/highThresholdExceeded</uei>\n" + " <description>high loadavg5 threshold exceeded on snmp\n" + "interface</description>\n" + " <rule>(IPADDR IPLIKE *.*.*.*) & (isSNMP )</rule>\n" + " <destinationPath>Email-Network/Systems</destinationPath>\n" + " <text-message>High loadavg5 Threshold exceeded on %interface%,\n" + "%parm[ds]% with %parm[value]%%%</text-message>\n" + " <subject>Notice #%noticeid%, High loadavg5 Threshold\n" + "exceeded</subject>\n" + " <varbind>\n" + " <vbname>ds</vbname>\n" + " <vbvalue>loadavg5</vbvalue>\n" + " </varbind>\n" + " </notification>" + "</notifications>"; m_notificationManager = new MockNotificationManager(m_notifdConfig, m_db, NOTIFICATION_MANAGER); m_notifd.setNotificationManager(m_notificationManager); }
|
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/acd9f3285ecdc4e0e9424b89d8a97348cd0a8ae4/NotifdTest.java/clean/src/services/org/opennms/netmgt/notifd/NotifdTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
59,
1200,
13039,
19865,
1435,
1216,
1185,
288,
7734,
368,
8401,
326,
9208,
716,
678,
1200,
13039,
19169,
407,
730,
3639,
514,
9208,
273,
20410,
2902,
1177,
33,
1695,
2412,
21,
18,
20,
1695,
2412,
35,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
32,
15286,
12302,
33,
1695,
2412,
2505,
2207,
16741,
18,
3190,
82,
959,
18,
3341,
19,
19144,
19,
15286,
1695,
24735,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
565,
411,
3374,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
3639,
411,
9083,
34,
21,
18,
22,
1757,
9083,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
3639,
411,
4824,
34,
59,
329,
23712,
2881,
16,
5782,
2848,
24335,
1666,
16,
4044,
22,
1728,
30,
2163,
30,
713,
20653,
512,
882,
1757,
4824,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
3639,
411,
81,
17894,
34,
13014,
1757,
81,
17894,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
565,
7765,
3374,
34,
1695,
82,
6,
397,
7734,
315,
377,
411,
9927,
508,
5189,
13653,
4566,
15207,
4234,
27139,
1312,
5816,
2412,
1267,
5189,
265,
28219,
82,
6,
397,
1171,
315,
3639,
411,
344,
77,
34,
344,
77,
18,
3190,
82,
959,
18,
3341,
19,
8699,
19,
8766,
7614,
10069,
1757,
344,
77,
5333,
82,
6,
397,
1171,
315,
3639,
411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
59,
1200,
13039,
19865,
1435,
1216,
1185,
288,
7734,
368,
8401,
326,
9208,
716,
678,
1200,
13039,
19169,
407,
730,
3639,
514,
9208,
273,
20410,
2902,
1177,
33,
1695,
2412,
21,
18,
20,
1695,
2412,
35,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
32,
15286,
12302,
33,
1695,
2412,
2505,
2207,
16741,
18,
3190,
82,
959,
18,
3341,
19,
19144,
19,
15286,
1695,
24735,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
565,
411,
3374,
34,
1695,
82,
2412,
397,
521,
82,
6,
397,
1171,
315,
5411,
1239,
3639,
411,
9083,
34,
21,
18,
22,
1757,
9083,
34,
1695,
82,
2412,
397,
521,
82,
6,
2
] |
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
|
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
|
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/2f13ba47385b7584839c7f6f6f1abfee251cbe53/ForNode.java/buggy/org/jruby/nodes/ForNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
12,
907,
7413,
277,
7413,
13,
202,
202,
95,
202,
202,
77,
7413,
18,
11658,
31058,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
12,
907,
7413,
277,
7413,
13,
202,
202,
95,
202,
202,
77,
7413,
18,
11658,
31058,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
match(']');
|
}
|
public void mRBRACK() throws RecognitionException { int type = RBRACK; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:66:10: ( ']' ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:66:10: ']' { match(']'); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
54,
7192,
3649,
1435,
1216,
9539,
288,
3639,
509,
618,
273,
534,
7192,
3649,
31,
3639,
509,
787,
273,
23577,
1016,
5621,
3639,
509,
980,
273,
9851,
5621,
3639,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
3639,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
3639,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
5852,
2678,
18,
31731,
18,
75,
30,
6028,
30,
2163,
30,
261,
8641,
262,
3639,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
5852,
2678,
18,
31731,
18,
75,
30,
6028,
30,
2163,
30,
8641,
3639,
288,
3639,
289,
3639,
289,
3639,
309,
261,
1147,
631,
2011,
262,
288,
18356,
12,
723,
16,
1369,
16,
3001,
2555,
16,
4327,
16,
1937,
16,
588,
2156,
1016,
1435,
17,
21,
1769,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
54,
7192,
3649,
1435,
1216,
9539,
288,
3639,
509,
618,
273,
534,
7192,
3649,
31,
3639,
509,
787,
273,
23577,
1016,
5621,
3639,
509,
980,
273,
9851,
5621,
3639,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
3639,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
3639,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
6290,
19,
3341,
19,
12215,
19,
18756,
19,
6290,
19,
4288,
19,
5852,
2678,
18,
31731,
18,
75,
30,
6028,
30,
2163,
30,
261,
8641,
262,
3639,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
2
] |
int index = itsData.itsVariableTable.getOrdinal(name);
|
int index = itsVariableTable.getOrdinal(name);
|
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsData.itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsData.itsVariableTable. getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/bd4398308e7a90b8c0479568416af0bb30da587c/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
13491,
648,
3155,
1228,
18,
7788,
294,
288,
4766,
18701,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
13,
3155,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
7925,
770,
273,
261,
4897,
13,
2295,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
18,
6620,
620,
1435,
1671,
1725,
3631,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
18,
6620,
620,
1435,
473,
374,
5297,
3631,
277,
1085,
3401,
1769,
4766,
3639,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
3155,
1228,
18,
7788,
13,
7682,
277,
1085,
3401,
273,
2103,
45,
1085,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
13491,
648,
3155,
1228,
18,
7788,
294,
288,
4766,
18701,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
13,
3155,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
7925,
770,
273,
261,
4897,
13,
2295,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
2
] |
throws InvalidValue;
|
throws InvalidValue;
|
DynAny member() throws InvalidValue;
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/36718ba08db6631df8ab9fb801d408ca98ad4420/DynUnionOperations.java/buggy/org/omg/DynamicAny/DynUnionOperations.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
463,
878,
2961,
3140,
1435,
565,
1216,
1962,
620,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
463,
878,
2961,
3140,
1435,
565,
1216,
1962,
620,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setupResults(mbox, new ConvQueryResults(this, types, searchOrder));
|
setupResults(mbox, new ConvQueryResults(this, types, searchOrder, mode));
|
final ZimbraQueryResults run(Mailbox mbox, MailboxIndex mbidx, byte[] types, SortBy searchOrder, int chunkSize) throws IOException, ServiceException { mIsToplevelQueryOp = true; mSortOrder = searchOrder; chunkSize++; // one extra for checking the "more" flag at the end of the results if (chunkSize < MIN_CHUNK_SIZE) { chunkSize = MIN_CHUNK_SIZE; } else if (chunkSize > MAX_CHUNK_SIZE) { chunkSize = MAX_CHUNK_SIZE; } int retType = MailboxIndex.SEARCH_RETURN_DOCUMENTS; for (int i = 0; i < types.length; i++) { if (types[i] == MailItem.TYPE_CONVERSATION) { retType = MailboxIndex.SEARCH_RETURN_CONVERSATIONS; break; } if (types[i] == MailItem.TYPE_MESSAGE) { retType = MailboxIndex.SEARCH_RETURN_MESSAGES; break; } } // set me to TRUE if you're returning Conversations or something which could benefit from preloading boolean preloadOuterResults = false; int outerChunkSize = chunkSize; switch (retType) { case MailboxIndex.SEARCH_RETURN_CONVERSATIONS: if (USE_PRELOADING_GROUPER) { chunkSize+= 2; // one for the ConvQueryResults, one for the Grouper setupResults(mbox, new ConvQueryResults(new ItemPreloadingGrouper(this, chunkSize, mbox), types, searchOrder)); chunkSize*=2; // guess 2 msgs per conv } else { chunkSize++; // one for the ConvQueryResults setupResults(mbox, new ConvQueryResults(this, types, searchOrder)); chunkSize*=2; } preloadOuterResults = true; break; case MailboxIndex.SEARCH_RETURN_MESSAGES: if (USE_PRELOADING_GROUPER) { chunkSize+= 2; // one for the MsgQueryResults, one for the Grouper setupResults(mbox, new MsgQueryResults(new ItemPreloadingGrouper(this, chunkSize, mbox), types, searchOrder)); } else { chunkSize++; // one for the MsgQueryResults setupResults(mbox, new MsgQueryResults(this, types, searchOrder)); } break; case MailboxIndex.SEARCH_RETURN_DOCUMENTS: if (USE_PRELOADING_GROUPER) { chunkSize++; // one for the grouper setupResults(mbox, new UngroupedQueryResults(new ItemPreloadingGrouper(this, chunkSize, mbox), types, searchOrder)); } else { setupResults(mbox, new UngroupedQueryResults(this, types, searchOrder)); } break; } prepare(mMailbox, mResults, mbidx, chunkSize); if (USE_PRELOADING_GROUPER && preloadOuterResults) { return new ItemPreloadingGrouper(mResults, outerChunkSize, mbox); } else { return mResults; } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/d6cd254fa421be3f57c2da71aadf2d12c87b723f/QueryOperation.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/QueryOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
2285,
381,
15397,
1138,
3447,
1086,
12,
30239,
312,
2147,
16,
11542,
2147,
1016,
4903,
3465,
16,
1160,
8526,
1953,
16,
5928,
858,
1623,
2448,
16,
509,
17791,
13,
1216,
1860,
16,
16489,
565,
288,
3639,
312,
2520,
3401,
2815,
1138,
3817,
273,
638,
31,
3639,
312,
31460,
273,
1623,
2448,
31,
3639,
17791,
9904,
31,
368,
1245,
2870,
364,
6728,
326,
315,
10161,
6,
2982,
622,
326,
679,
434,
326,
1686,
3639,
309,
261,
6551,
1225,
411,
6989,
67,
26464,
67,
4574,
13,
288,
5411,
17791,
273,
6989,
67,
26464,
67,
4574,
31,
3639,
289,
469,
309,
261,
6551,
1225,
405,
4552,
67,
26464,
67,
4574,
13,
288,
5411,
17791,
273,
4552,
67,
26464,
67,
4574,
31,
3639,
289,
3639,
509,
325,
559,
273,
11542,
2147,
1016,
18,
17251,
67,
14033,
67,
18450,
55,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
2352,
63,
77,
65,
422,
11542,
1180,
18,
2399,
67,
2248,
21510,
2689,
13,
288,
7734,
325,
559,
273,
11542,
2147,
1016,
18,
17251,
67,
14033,
67,
2248,
21510,
15297,
31,
7734,
898,
31,
5411,
289,
5411,
309,
261,
2352,
63,
77,
65,
422,
11542,
1180,
18,
2399,
67,
8723,
13,
288,
7734,
325,
559,
273,
11542,
2147,
1016,
18,
17251,
67,
14033,
67,
26195,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
368,
444,
1791,
358,
5383,
309,
1846,
4565,
5785,
735,
20494,
578,
5943,
1492,
3377,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
2285,
381,
15397,
1138,
3447,
1086,
12,
30239,
312,
2147,
16,
11542,
2147,
1016,
4903,
3465,
16,
1160,
8526,
1953,
16,
5928,
858,
1623,
2448,
16,
509,
17791,
13,
1216,
1860,
16,
16489,
565,
288,
3639,
312,
2520,
3401,
2815,
1138,
3817,
273,
638,
31,
3639,
312,
31460,
273,
1623,
2448,
31,
3639,
17791,
9904,
31,
368,
1245,
2870,
364,
6728,
326,
315,
10161,
6,
2982,
622,
326,
679,
434,
326,
1686,
3639,
309,
261,
6551,
1225,
411,
6989,
67,
26464,
67,
4574,
13,
288,
5411,
17791,
273,
6989,
67,
26464,
67,
4574,
31,
3639,
289,
469,
309,
261,
6551,
1225,
405,
4552,
67,
26464,
67,
4574,
13,
288,
5411,
17791,
273,
4552,
67,
26464,
67,
4574,
2
] |
try {
|
try {
|
public IWizardPage getNextPage() { // save the product information to the model saveDataToModel(); NewBugWizard wizard = (NewBugWizard) getWizard(); NewBugModel model = wizard.model; // try to get the attributes from the bugzilla server try { if (!model.hasParsedAttributes() || !prevProduct.equals(model.getProduct())) { String serverUrl = bugWizard.getRepository().getServerUrl().toExternalForm(); if (model.isConnected()) { BugzillaRepositoryUtil.getnewBugAttributes(serverUrl, model, false); } else { BugzillaRepositoryUtil.getProdConfigAttributes(serverUrl, model); } model.setParsedAttributesStatus(true); if (prevProduct == null) { bugWizard.attributePage = new WizardAttributesPage(workbench); bugWizard.addPage(bugWizard.attributePage); } else { // selected product has changed bugWizard.attributePage.setControl(null); // will createControl again with new attributes in model } } } catch (Exception e) { BugzillaPlugin.getDefault().logAndShowExceptionDetailsDialog(e, "occurred.", "Bugzilla Error"); } return super.getNextPage(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/a668a4d0cd9272f81a8faa996af0344a2be65552/WizardProductPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/WizardProductPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
27130,
1964,
6927,
1964,
1435,
288,
202,
202,
759,
1923,
326,
3017,
1779,
358,
326,
938,
202,
202,
5688,
751,
774,
1488,
5621,
202,
202,
1908,
19865,
27130,
24204,
273,
261,
1908,
19865,
27130,
13,
13876,
13412,
5621,
202,
202,
1908,
19865,
1488,
938,
273,
24204,
18,
2284,
31,
202,
202,
759,
775,
358,
336,
326,
1677,
628,
326,
7934,
15990,
1438,
202,
202,
698,
202,
95,
1082,
202,
430,
16051,
2284,
18,
5332,
11257,
2498,
1435,
747,
401,
10001,
4133,
18,
14963,
12,
2284,
18,
588,
4133,
1435,
3719,
288,
9506,
202,
780,
1438,
1489,
273,
7934,
27130,
18,
588,
3305,
7675,
588,
2081,
1489,
7675,
869,
6841,
1204,
5621,
9506,
202,
430,
261,
2284,
18,
291,
8932,
10756,
288,
4405,
202,
19865,
15990,
3305,
1304,
18,
588,
2704,
19865,
2498,
12,
3567,
1489,
16,
938,
16,
629,
1769,
9506,
202,
97,
202,
1875,
202,
12107,
288,
202,
4697,
202,
19865,
15990,
3305,
1304,
18,
588,
30683,
809,
2498,
12,
3567,
1489,
16,
938,
1769,
202,
1875,
202,
97,
9506,
202,
2284,
18,
542,
11257,
2498,
1482,
12,
3767,
1769,
9506,
202,
430,
261,
10001,
4133,
422,
446,
13,
288,
6862,
202,
925,
27130,
18,
4589,
1964,
273,
394,
678,
13412,
2498,
1964,
12,
1252,
22144,
1769,
6862,
202,
925,
27130,
18,
1289,
1964,
12,
925,
27130,
18,
4589,
1964,
1769,
9506,
202,
97,
9506,
202,
12107,
288,
6862,
202,
759,
3170,
3017,
711,
3550,
6862,
202,
925,
27130,
18,
4589,
1964,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
27130,
1964,
6927,
1964,
1435,
288,
202,
202,
759,
1923,
326,
3017,
1779,
358,
326,
938,
202,
202,
5688,
751,
774,
1488,
5621,
202,
202,
1908,
19865,
27130,
24204,
273,
261,
1908,
19865,
27130,
13,
13876,
13412,
5621,
202,
202,
1908,
19865,
1488,
938,
273,
24204,
18,
2284,
31,
202,
202,
759,
775,
358,
336,
326,
1677,
628,
326,
7934,
15990,
1438,
202,
202,
698,
202,
95,
1082,
202,
430,
16051,
2284,
18,
5332,
11257,
2498,
1435,
747,
401,
10001,
4133,
18,
14963,
12,
2284,
18,
588,
4133,
1435,
3719,
288,
9506,
202,
780,
1438,
1489,
273,
7934,
27130,
18,
588,
3305,
7675,
588,
2081,
1489,
7675,
869,
6841,
1204,
5621,
9506,
202,
430,
261,
2
] |
linker .link(); } catch( Exception ex ) { throw new BuildException( ex, location );
|
linker.link(); } catch(Exception ex) { throw new BuildException(ex, location);
|
public void execute() throws BuildException { //Be sure everything has been set. if ( outfile == null ) { throw new BuildException( "outfile attribute is required! Please set." ); } if (!haveAddFiles() && !haveMergeFiles()) { throw new BuildException( "addfiles or mergefiles required! Please set." ); } log( "linking: " + outfile.getPath() ); log( "compression: " + compress, Project.MSG_VERBOSE ); jlink linker = new jlink(); linker .setOutfile( outfile.getPath() ); linker .setCompression( compress ); if (haveMergeFiles()){ log( "merge files: " + mergefiles .toString(), Project .MSG_VERBOSE ); linker .addMergeFiles( mergefiles .list() ); } if (haveAddFiles()){ log( "add files: " + addfiles .toString(), Project .MSG_VERBOSE ); linker .addAddFiles( addfiles .list() ); } try { linker .link(); } catch( Exception ex ) { throw new BuildException( ex, location ); } }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/JlinkTask.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
1919,
3071,
7756,
711,
2118,
444,
18,
3639,
309,
261,
8756,
422,
446,
262,
288,
5411,
604,
394,
18463,
12,
315,
26050,
1566,
353,
1931,
5,
7801,
444,
1199,
11272,
3639,
289,
3639,
309,
16051,
21516,
986,
2697,
1435,
597,
401,
21516,
6786,
2697,
10756,
288,
5411,
604,
394,
18463,
12,
315,
1289,
2354,
578,
2691,
2354,
1931,
5,
7801,
444,
1199,
11272,
3639,
289,
3639,
613,
12,
315,
1232,
310,
30,
377,
315,
397,
8756,
18,
588,
743,
1435,
11272,
3639,
613,
12,
315,
23766,
30,
315,
397,
8099,
16,
5420,
18,
11210,
67,
21900,
11272,
3639,
525,
1232,
28058,
273,
394,
525,
1232,
5621,
3639,
28058,
263,
542,
1182,
768,
12,
8756,
18,
588,
743,
1435,
11272,
3639,
28058,
263,
542,
15270,
12,
8099,
11272,
3639,
309,
261,
21516,
6786,
2697,
10756,
95,
5411,
613,
12,
315,
2702,
1390,
30,
315,
397,
2691,
2354,
263,
10492,
9334,
5420,
263,
11210,
67,
21900,
11272,
5411,
28058,
263,
1289,
6786,
2697,
12,
2691,
2354,
263,
1098,
1435,
11272,
3639,
289,
3639,
309,
261,
21516,
986,
2697,
10756,
95,
5411,
613,
12,
315,
1289,
1390,
30,
315,
397,
527,
2354,
263,
10492,
9334,
5420,
263,
11210,
67,
21900,
11272,
5411,
28058,
263,
1289,
986,
2697,
12,
527,
2354,
263,
1098,
1435,
11272,
3639,
289,
3639,
775,
225,
288,
5411,
28058,
263,
1232,
5621,
3639,
289,
1044,
12,
1185,
431,
262,
288,
5411,
604,
394,
18463,
12,
431,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
1919,
3071,
7756,
711,
2118,
444,
18,
3639,
309,
261,
8756,
422,
446,
262,
288,
5411,
604,
394,
18463,
12,
315,
26050,
1566,
353,
1931,
5,
7801,
444,
1199,
11272,
3639,
289,
3639,
309,
16051,
21516,
986,
2697,
1435,
597,
401,
21516,
6786,
2697,
10756,
288,
5411,
604,
394,
18463,
12,
315,
1289,
2354,
578,
2691,
2354,
1931,
5,
7801,
444,
1199,
11272,
3639,
289,
3639,
613,
12,
315,
1232,
310,
30,
377,
315,
397,
8756,
18,
588,
743,
1435,
11272,
3639,
613,
12,
315,
23766,
30,
315,
397,
8099,
16,
5420,
18,
11210,
67,
21900,
11272,
3639,
525,
1232,
28058,
273,
394,
525,
1232,
5621,
3639,
28058,
2
] |
protected void parseDir(int depth, Object dir) throws IOException, FormatException, ReflectException { r.setVar("dir", dir); r.exec("dirName = dir.getName()"); r.setVar("depth", depth); r.exec("iter = dir.getEntries()"); Iterator iter = (Iterator) r.getVar("iter"); while (iter.hasNext()) { r.setVar("entry", iter.next()); r.exec("isInstance = entry.isDirectoryEntry()"); r.exec("isDocument = entry.isDocumentEntry()"); boolean isInstance = ((Boolean) r.getVar("isInstance")).booleanValue(); boolean isDocument = ((Boolean) r.getVar("isDocument")).booleanValue(); r.setVar("dir", dir); r.exec("dirName = dir.getName()"); if (isInstance) { parseDir(depth + 1, r.getVar("entry")); } else if (isDocument) { r.exec("entryName = entry.getName()"); if (DEBUG) { print(depth + 1, "Found document: " + r.getVar("entryName")); } r.exec("dis = new DocumentInputStream(entry)"); r.exec("numBytes = dis.available()"); int numbytes = ((Integer) r.getVar("numBytes")).intValue(); byte[] data = new byte[numbytes + 4]; // append 0 for final offset r.setVar("data", data); r.exec("dis.read(data)"); String entryName = (String) r.getVar("entryName"); String dirName = (String) r.getVar("dirName"); boolean isContents = entryName.toUpperCase().equals("CONTENTS"); Object directory = r.getVar("dir"); int pt = 0; if (dirName.toUpperCase().equals("ROOT ENTRY") || dirName.toUpperCase().equals("ROOTENTRY")) { if (entryName.equals("Tags")) { pt += 18; int version = DataTools.bytesToInt(data, pt, 4, true); pt += 4; pt += 2; int count = DataTools.bytesToInt(data, pt, 4, true); // # of tags pt += 4; // limit count to 4096 if (count > 4096) count = 4096; for (int i=0; i<count; i++) { int type = DataTools.bytesToInt(data, pt, 2, true); pt += 2; String value = ""; switch (type) { case 0: break; case 1: break; case 2: value = "" + DataTools.bytesToInt(data, pt, 2, true); pt += 2; break; case 3: value = "" + DataTools.bytesToInt(data, pt, 4, true); pt += 4; break; case 4: value = "" + Float.intBitsToFloat( DataTools.bytesToInt(data, pt, 4, true)); pt += 4; break; case 5: value = "" + Double.longBitsToDouble( DataTools.bytesToLong(data, pt, 8, true)); pt += 8; break; case 7: value = "" + DataTools.bytesToLong(data, pt, 8, true); pt += 8; break; case 69: case 8: int len = DataTools.bytesToInt(data, pt, 2, true); pt += 2; value = new String(data, pt, len); pt += len; break; case 20: case 21: value = "" + DataTools.bytesToLong(data, pt, 8, true); pt += 8; break; case 22: case 23: value = "" + DataTools.bytesToInt(data, pt, 4, true); pt += 4; break; case 66: int l = DataTools.bytesToInt(data, pt, 2, true); pt += 2; value = new String(data, pt, l); pt += l; break; default: int oldPt = pt; while (DataTools.bytesToInt(data, pt, 2, true) != 3 && pt < data.length) { pt += 2; } value = new String(data, oldPt, pt - oldPt); } pt += 2; int tagID = DataTools.bytesToInt(data, pt, 4, true); pt += 4; pt += 2; int attribute = DataTools.bytesToInt(data, pt, 4, true); pt += 4; parseTag(value, tagID, attribute); } } } else if (dirName.equals("Tags") && isContents) { pt += 18; int version = DataTools.bytesToInt(data, pt, 4, true); pt += 4; pt += 2; int count = DataTools.bytesToInt(data, pt, 4, true); // # of tags pt += 4; // limit count to 4096 if (count > 4096) count = 4096; for (int i=0; i<count; i++) { int type = DataTools.bytesToInt(data, pt, 2, true); pt += 2; String value = ""; switch (type) { case 0: break; case 1: break; case 2: value = "" + DataTools.bytesToInt(data, pt, 2, true); pt += 2; break; case 3: value = "" + DataTools.bytesToInt(data, pt, 4, true); pt += 4; break; case 4: value = "" + Float.intBitsToFloat( DataTools.bytesToInt(data, pt, 4, true)); pt += 4; break; case 5: value = "" + Double.longBitsToDouble( DataTools.bytesToLong(data, pt, 8, true)); pt += 8; break; case 7: value = "" + DataTools.bytesToLong(data, pt, 8, true); pt += 8; break; case 69: case 8: int len = DataTools.bytesToInt(data, pt, 2, true); pt += 2; try { value = new String(data, pt, len); pt += len; } catch (Exception e) { return; } break; case 20: case 21: value = "" + DataTools.bytesToLong(data, pt, 8, true); pt += 8; break; case 22: case 23: value = "" + DataTools.bytesToInt(data, pt, 4, true); pt += 4; break; case 66: int l = DataTools.bytesToInt(data, pt, 2, true); pt += 2; value = new String(data, pt, l); pt += l; break; default: int oldPt = pt; while (DataTools.bytesToInt(data, pt, 2, true) != 3 && pt < data.length) { pt += 2; } try { value = new String(data, oldPt, pt - oldPt); } catch (Exception e) { return; } } pt += 2; int tagID = DataTools.bytesToInt(data, pt, 4, true); pt += 4; pt += 2; int attribute = DataTools.bytesToInt(data, pt, 4, true); pt += 4; parseTag(value, tagID, attribute); } } else if (isContents && (dirName.equals("Image") || dirName.toUpperCase().indexOf("ITEM") != -1) && (data.length > width*height)) { pt += 2; int version = DataTools.bytesToInt(data, pt, 4, true); pt += 4; int vt = DataTools.bytesToInt(data, pt, 2, true); pt += 2; if (vt == 3) { int type = DataTools.bytesToInt(data, pt, 4, true); pt += 6; } else if (vt == 8) { int l = DataTools.bytesToInt(data, pt, 2, true); pt += 4 + l; } int len = DataTools.bytesToInt(data, pt, 2, true); pt += 2; if (data[pt] == 0 && data[pt + 1] == 0) pt += 2; try { String typeDescription = new String(data, pt, len); pt += len; } catch (Exception e) { break; } vt = DataTools.bytesToInt(data, pt, 2, true); pt += 2; if (vt == 8) { len = DataTools.bytesToInt(data, pt, 4, true); pt += 6 + len; } width = DataTools.bytesToInt(data, pt, 4, true); pt += 6; height = DataTools.bytesToInt(data, pt, 4, true); pt += 6; int zDepth = DataTools.bytesToInt(data, pt, 4, true); pt += 6; int pixelFormat = DataTools.bytesToInt(data, pt, 4, true); pt += 6; int numImageContainers = DataTools.bytesToInt(data, pt, 4, true); pt += 6; int validBitsPerPixel = DataTools.bytesToInt(data, pt, 4, true); pt += 4; // VT_CLSID - PluginCLSID while (DataTools.bytesToInt(data, pt, 2, true) != 65) { pt += 2; } // VT_BLOB - Others pt += 2; len = DataTools.bytesToInt(data, pt, 4, true); pt += len + 4; // VT_STORED_OBJECT - Layers pt += 2; int oldPt = pt; len = DataTools.bytesToInt(data, pt, 4, true); pt += 4; pt += 8; int tIndex = DataTools.bytesToInt(data, pt, 4, true); pt += 4; int cIndex = DataTools.bytesToInt(data, pt, 4, true); pt += 4; int zIndex = DataTools.bytesToInt(data, pt, 4, true); pt += 4; Integer zndx = new Integer(zIndex); Integer cndx = new Integer(cIndex); Integer tndx = new Integer(tIndex); if (!zIndices.contains(zndx)) zIndices.add(zndx); if (!cIndices.contains(cndx)) cIndices.add(cndx); if (!tIndices.contains(tndx)) tIndices.add(tndx); pt = oldPt + 4 + len; boolean foundWidth = DataTools.bytesToInt(data, pt, 4, true) == width; boolean foundHeight = DataTools.bytesToInt(data, pt + 4, 4, true) == height; while (!foundWidth || !foundHeight) { pt++; foundWidth = DataTools.bytesToInt(data, pt, 4, true) == width; foundHeight = DataTools.bytesToInt(data, pt + 4, 4, true) == height; } pt -= 8; // image header and data if (dirName.toUpperCase().indexOf("ITEM") != -1 || (dirName.equals("Image") && numImageContainers == 0)) { byte[] o = new byte[data.length - pt]; System.arraycopy(data, pt, o, 0, o.length); int imageNum = 0; if (dirName.toUpperCase().indexOf("ITEM") != -1) { String num = dirName.substring(5); num = num.substring(0, num.length() - 1); imageNum = Integer.parseInt(num); } offsets.put(new Integer(imageNum), new Integer(pt + 32)); parsePlane(o, imageNum, directory, entryName); } } r.exec("dis.close()"); } } }
|
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/054bd26b1432b6733cf1a54342b04ae97fa3a07c/ZeissZVIReader.java/clean/loci/formats/in/ZeissZVIReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1621,
12,
474,
3598,
16,
1033,
1577,
13,
565,
1216,
1860,
16,
4077,
503,
16,
17906,
503,
225,
288,
565,
436,
18,
542,
1537,
2932,
1214,
3113,
1577,
1769,
565,
436,
18,
4177,
2932,
1214,
461,
273,
1577,
18,
17994,
1435,
8863,
565,
436,
18,
542,
1537,
2932,
5979,
3113,
3598,
1769,
565,
436,
18,
4177,
2932,
2165,
273,
1577,
18,
588,
5400,
1435,
8863,
565,
4498,
1400,
273,
261,
3198,
13,
436,
18,
588,
1537,
2932,
2165,
8863,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
1377,
436,
18,
542,
1537,
2932,
4099,
3113,
1400,
18,
4285,
10663,
1377,
436,
18,
4177,
2932,
291,
1442,
273,
1241,
18,
291,
2853,
1622,
1435,
8863,
1377,
436,
18,
4177,
2932,
291,
2519,
273,
1241,
18,
291,
2519,
1622,
1435,
8863,
1377,
1250,
14982,
273,
14015,
5507,
13,
436,
18,
588,
1537,
2932,
291,
1442,
7923,
2934,
6494,
620,
5621,
1377,
1250,
353,
2519,
273,
14015,
5507,
13,
436,
18,
588,
1537,
2932,
291,
2519,
7923,
2934,
6494,
620,
5621,
1377,
436,
18,
542,
1537,
2932,
1214,
3113,
1577,
1769,
1377,
436,
18,
4177,
2932,
1214,
461,
273,
1577,
18,
17994,
1435,
8863,
1377,
309,
261,
291,
1442,
13,
225,
288,
3639,
1109,
1621,
12,
5979,
397,
404,
16,
436,
18,
588,
1537,
2932,
4099,
7923,
1769,
1377,
289,
1377,
469,
309,
261,
291,
2519,
13,
288,
3639,
436,
18,
4177,
2932,
4099,
461,
273,
1241,
18,
17994,
1435,
8863,
3639,
309,
261,
9394,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1109,
1621,
12,
474,
3598,
16,
1033,
1577,
13,
565,
1216,
1860,
16,
4077,
503,
16,
17906,
503,
225,
288,
565,
436,
18,
542,
1537,
2932,
1214,
3113,
1577,
1769,
565,
436,
18,
4177,
2932,
1214,
461,
273,
1577,
18,
17994,
1435,
8863,
565,
436,
18,
542,
1537,
2932,
5979,
3113,
3598,
1769,
565,
436,
18,
4177,
2932,
2165,
273,
1577,
18,
588,
5400,
1435,
8863,
565,
4498,
1400,
273,
261,
3198,
13,
436,
18,
588,
1537,
2932,
2165,
8863,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
1377,
436,
18,
542,
1537,
2932,
4099,
3113,
1400,
18,
4285,
10663,
1377,
436,
18,
4177,
2932,
291,
1442,
273,
1241,
18,
291,
2853,
1622,
1435,
8863,
2
] |
||
.append( "&" + URLEncoder.encode( key, "UTF-8" ) + "=" + URLEncoder.encode( value, "UTF-8" ) );
|
.append( ParameterAccessor .getQueryParameterString( URLEncoder .encode( key, ParameterAccessor.UTF_8_ENCODE ), URLEncoder .encode( value, ParameterAccessor.UTF_8_ENCODE ) ) );
|
protected String buildDrillAction( IAction action, Object context ) { String baseURL = null; if ( context != null && context instanceof HTMLRenderContext ) { baseURL = ( (HTMLRenderContext) context ).getBaseURL( ); } StringBuffer link = new StringBuffer( ); String reportName = action.getReportName( ); if ( reportName != null && !reportName.equals( "" ) ) //$NON-NLS-1$ { String format = action.getFormat( ); if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format ) ) { link.append( baseURL.replaceFirst( "frameset", "run" ) ); //$NON-NLS-1$ //$NON-NLS-2$ } else { link.append( baseURL ); } link .append( reportName.toLowerCase( ) .endsWith( ".rptdocument" ) ? "?__document=" : "?__report=" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ try { link.append( URLEncoder.encode( reportName, "UTF-8" ) ); //$NON-NLS-1$ } catch ( UnsupportedEncodingException e1 ) { // It should not happen. Does nothing } // add format support if ( format != null && format.length( ) > 0 ) { link.append( "&__format=" + format ); //$NON-NLS-1$ } // Adds the parameters if ( action.getParameterBindings( ) != null ) { Iterator paramsIte = action.getParameterBindings( ).entrySet( ) .iterator( ); while ( paramsIte.hasNext( ) ) { Map.Entry entry = (Map.Entry) paramsIte.next( ); try { String key = (String) entry.getKey( ); Object valueObj = entry.getValue( ); if ( valueObj != null ) { String value = valueObj.toString( ); link .append( "&" + URLEncoder.encode( key, "UTF-8" ) //$NON-NLS-1$ //$NON-NLS-2$ + "=" + URLEncoder.encode( value, "UTF-8" ) ); //$NON-NLS-1$ //$NON-NLS-2$ } } catch ( UnsupportedEncodingException e ) { // Does nothing } } } // Adding overwrite. link.append( "&__overwrite=true" ); //$NON-NLS-1$ // The search rules are not supported yet. if ( !ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format ) && action.getBookmark( ) != null ) { try { link.append( "&__bookmark=" ); //$NON-NLS-1$ link.append( URLEncoder.encode( action.getBookmark( ), "UTF-8" ) ); //$NON-NLS-1$ } catch ( UnsupportedEncodingException e ) { // Does nothing } } } return link.toString( ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1ff9aa843f70ddf72ba7891c54d9d7216c9063f5/ViewerHTMLActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1361,
8956,
737,
1803,
12,
467,
1803,
1301,
16,
1033,
819,
262,
202,
95,
202,
202,
780,
17480,
273,
446,
31,
202,
202,
430,
261,
819,
480,
446,
597,
819,
1276,
3982,
3420,
1042,
262,
202,
202,
95,
1082,
202,
1969,
1785,
273,
261,
261,
4870,
3420,
1042,
13,
819,
262,
18,
588,
29064,
12,
11272,
202,
202,
97,
202,
202,
780,
1892,
1692,
273,
394,
6674,
12,
11272,
202,
202,
780,
2605,
461,
273,
1301,
18,
588,
4820,
461,
12,
11272,
202,
202,
430,
261,
2605,
461,
480,
446,
597,
401,
6006,
461,
18,
14963,
12,
1408,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
780,
740,
273,
1301,
18,
588,
1630,
12,
11272,
1082,
202,
430,
261,
5498,
8235,
18,
8388,
67,
7254,
67,
17508,
18,
14963,
5556,
12,
740,
262,
262,
1082,
202,
95,
9506,
202,
1232,
18,
6923,
12,
17480,
18,
2079,
3759,
12,
315,
10278,
278,
3113,
315,
2681,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
1232,
18,
6923,
12,
17480,
11272,
1082,
202,
97,
1082,
202,
1232,
6862,
202,
18,
6923,
12,
2605,
461,
18,
869,
5630,
12,
262,
6862,
1082,
202,
18,
5839,
1190,
12,
3552,
86,
337,
5457,
6,
262,
692,
18101,
972,
5457,
1546,
294,
18101,
972,
6006,
1546,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1361,
8956,
737,
1803,
12,
467,
1803,
1301,
16,
1033,
819,
262,
202,
95,
202,
202,
780,
17480,
273,
446,
31,
202,
202,
430,
261,
819,
480,
446,
597,
819,
1276,
3982,
3420,
1042,
262,
202,
202,
95,
1082,
202,
1969,
1785,
273,
261,
261,
4870,
3420,
1042,
13,
819,
262,
18,
588,
29064,
12,
11272,
202,
202,
97,
202,
202,
780,
1892,
1692,
273,
394,
6674,
12,
11272,
202,
202,
780,
2605,
461,
273,
1301,
18,
588,
4820,
461,
12,
11272,
202,
202,
430,
261,
2605,
461,
480,
446,
597,
401,
6006,
461,
18,
14963,
12,
1408,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
780,
740,
273,
2
] |
if (version == Constants.XML_VERSION_1_1){
|
if (version == Constants.XML_VERSION_1_1) {
|
public boolean parse(boolean complete) throws XNIException, IOException { // // reset and configure pipeline and set InputSource. if (fInputSource !=null) { try { fVersionDetector.reset(this); reset(); short version = fVersionDetector.determineDocVersion(fInputSource); if (version == Constants.XML_VERSION_1_1){ // XML 1.1 pipeline configureXML11Pipeline(); } // resets and sets the pipeline. fVersionDetector.startDocumentParsing((XMLEntityHandler)fScanner, version); fInputSource = null; } catch (XNIException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (IOException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (RuntimeException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (Exception ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw new XNIException(ex); } } try { return fScanner.scanDocument(complete); } catch (XNIException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (IOException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (RuntimeException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (Exception ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw new XNIException(ex); } } // parse(boolean):boolean
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/26a8a0c944a205dec7a37ec7d5c2a006bfe5c0a2/XML11Configuration.java/buggy/src/org/apache/xerces/parsers/XML11Configuration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
12,
6494,
3912,
13,
1216,
1139,
50,
45,
503,
16,
1860,
288,
7734,
368,
3639,
368,
2715,
471,
5068,
5873,
471,
444,
23699,
18,
3639,
309,
261,
74,
1210,
1830,
480,
2011,
13,
288,
5411,
775,
288,
7734,
284,
1444,
12594,
18,
6208,
12,
2211,
1769,
7734,
2715,
5621,
7734,
3025,
1177,
273,
284,
1444,
12594,
18,
24661,
1759,
1444,
12,
74,
1210,
1830,
1769,
7734,
309,
261,
1589,
422,
5245,
18,
4201,
67,
5757,
67,
21,
67,
21,
13,
288,
10792,
368,
3167,
404,
18,
21,
5873,
10792,
5068,
4201,
2499,
8798,
5621,
7734,
289,
7734,
368,
20063,
471,
1678,
326,
5873,
18,
7734,
284,
1444,
12594,
18,
1937,
2519,
13963,
12443,
60,
9687,
1628,
1503,
13,
74,
11338,
16,
1177,
1769,
7734,
284,
1210,
1830,
273,
446,
31,
5411,
289,
2398,
1044,
261,
60,
50,
45,
503,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
431,
18,
1188,
6332,
5621,
7734,
604,
431,
31,
5411,
289,
2398,
1044,
261,
14106,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
431,
18,
1188,
6332,
5621,
7734,
604,
431,
31,
5411,
289,
2398,
1044,
261,
11949,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
431,
18,
1188,
6332,
5621,
7734,
604,
431,
31,
5411,
289,
5411,
1044,
261,
503,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
12,
6494,
3912,
13,
1216,
1139,
50,
45,
503,
16,
1860,
288,
7734,
368,
3639,
368,
2715,
471,
5068,
5873,
471,
444,
23699,
18,
3639,
309,
261,
74,
1210,
1830,
480,
2011,
13,
288,
5411,
775,
288,
7734,
284,
1444,
12594,
18,
6208,
12,
2211,
1769,
7734,
2715,
5621,
7734,
3025,
1177,
273,
284,
1444,
12594,
18,
24661,
1759,
1444,
12,
74,
1210,
1830,
1769,
7734,
309,
261,
1589,
422,
5245,
18,
4201,
67,
5757,
67,
21,
67,
21,
13,
288,
10792,
368,
3167,
404,
18,
21,
5873,
10792,
5068,
4201,
2499,
8798,
5621,
7734,
289,
7734,
368,
20063,
471,
1678,
326,
5873,
18,
7734,
284,
1444,
12594,
18,
1937,
2519,
13963,
12443,
60,
9687,
2
] |
if( binding instanceof ICPPInternalBinding ) ((ICPPInternalBinding)binding).removeDeclaration( name ); name.setBinding( null );
|
boolean clear = bindings.containsKey( name.getBinding() ); if( !clear && binding instanceof ICPPTemplateInstance ){ IType [] args = ((ICPPTemplateInstance)binding).getArguments(); for( int i = 0; i < args.length; i++ ){ if( bindings.containsKey( args[i] ) ){ clear = true; break; } } } if( clear ){ if( binding instanceof ICPPInternalBinding ) ((ICPPInternalBinding)binding).removeDeclaration( name ); name.setBinding( null ); }
|
public int visit(IASTName name) { if( name.getBinding() != null && bindings.containsKey( name.getBinding() ) ){ IBinding binding = name.getBinding(); if( binding instanceof ICPPInternalBinding ) ((ICPPInternalBinding)binding).removeDeclaration( name ); name.setBinding( null ); } return PROCESS_CONTINUE; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f7d25b8b16f24e5160e0e1576dccf6195e7a8e6b/CPPTemplates.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPTemplates.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
3757,
12,
45,
9053,
461,
508,
13,
288,
1082,
202,
430,
12,
508,
18,
588,
5250,
1435,
480,
446,
597,
7394,
18,
12298,
653,
12,
508,
18,
588,
5250,
1435,
262,
262,
95,
9506,
202,
45,
5250,
5085,
273,
508,
18,
588,
5250,
5621,
9506,
202,
430,
12,
5085,
1276,
467,
4258,
52,
3061,
5250,
262,
6862,
202,
12443,
2871,
6584,
3061,
5250,
13,
7374,
2934,
4479,
6094,
12,
508,
11272,
9506,
202,
529,
18,
542,
5250,
12,
446,
11272,
1082,
202,
97,
1082,
202,
2463,
20647,
67,
6067,
26725,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
3757,
12,
45,
9053,
461,
508,
13,
288,
1082,
202,
430,
12,
508,
18,
588,
5250,
1435,
480,
446,
597,
7394,
18,
12298,
653,
12,
508,
18,
588,
5250,
1435,
262,
262,
95,
9506,
202,
45,
5250,
5085,
273,
508,
18,
588,
5250,
5621,
9506,
202,
430,
12,
5085,
1276,
467,
4258,
52,
3061,
5250,
262,
6862,
202,
12443,
2871,
6584,
3061,
5250,
13,
7374,
2934,
4479,
6094,
12,
508,
11272,
9506,
202,
529,
18,
542,
5250,
12,
446,
11272,
1082,
202,
97,
1082,
202,
2463,
20647,
67,
6067,
26725,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST __t2045 = _t;
|
AST __t2049 = _t;
|
public final void systemdialogfontstate(AST _t) throws RecognitionException { AST systemdialogfontstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2043 = _t; AST tmp1262_AST_in = (AST)_t; match(_t,SYSTEMDIALOG); _t = _t.getFirstChild(); AST tmp1263_AST_in = (AST)_t; match(_t,FONT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { _loop2049: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ANSIONLY: { AST tmp1264_AST_in = (AST)_t; match(_t,ANSIONLY); _t = _t.getNextSibling(); break; } case FIXEDONLY: { AST tmp1265_AST_in = (AST)_t; match(_t,FIXEDONLY); _t = _t.getNextSibling(); break; } case MAXSIZE: { AST __t2045 = _t; AST tmp1266_AST_in = (AST)_t; match(_t,MAXSIZE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2045; _t = _t.getNextSibling(); break; } case MINSIZE: { AST __t2046 = _t; AST tmp1267_AST_in = (AST)_t; match(_t,MINSIZE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2046; _t = _t.getNextSibling(); break; } case UPDATE: { AST __t2047 = _t; AST tmp1268_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t2047; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t2048 = _t; AST tmp1269_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1270_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2048; _t = _t.getNextSibling(); break; } default: { break _loop2049; } } } while (true); } state_end(_t); _t = _retTree; _t = __t2043; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/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,
2619,
12730,
5776,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
12730,
5776,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
21573,
23,
273,
389,
88,
31,
202,
202,
9053,
1853,
2138,
8898,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
14318,
2565,
18683,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2138,
4449,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
25221,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
21573,
29,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
432,
3156,
1146,
7076,
30,
1082,
202,
95,
9506,
202,
9053,
1853,
2138,
1105,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
1258,
3686,
7076,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
12730,
5776,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
12730,
5776,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
21573,
23,
273,
389,
88,
31,
202,
202,
9053,
1853,
2138,
8898,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
14318,
2565,
18683,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2138,
4449,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
25221,
2
] |
case Event.DISCONNECT: passDown(evt); break;
|
case Event.DISCONNECT: passDown(evt); break;
|
public void down(Event evt) { Message msg; long time_to_wait, start_time; switch(evt.getType()) { case Event.FIND_INITIAL_MBRS: // sent by GMS layer, pass up a GET_MBRS_OK event initial_members.removeAllElements(); msg=new Message(null, null, null); msg.putHeader(getName(), new PingHeader(PingHeader.GET_MBRS_REQ, null)); synchronized(members) { for(Iterator it=initial_hosts.iterator(); it.hasNext();) { Address addr=(Address)it.next(); if(members.contains(addr)) { ; // continue; // changed as suggested by Mark Kopec } msg.setDest(addr); if(log.isTraceEnabled()) log.trace("[FIND_INITIAL_MBRS] sending PING request to " + msg.getDest()); passDown(new Event(Event.MSG, msg.copy())); } } // 2. Wait 'timeout' ms or until 'num_initial_members' have been retrieved synchronized(initial_members) { start_time=System.currentTimeMillis(); time_to_wait=timeout; while(initial_members.size() < num_initial_members && time_to_wait > 0) { try { initial_members.wait(time_to_wait); } catch(Exception e) { } time_to_wait-=System.currentTimeMillis() - start_time; } } if(log.isTraceEnabled()) log.trace("[FIND_INITIAL_MBRS] initial members are " + initial_members); // 3. Send response passUp(new Event(Event.FIND_INITIAL_MBRS_OK, initial_members)); break; case Event.TMP_VIEW: case Event.VIEW_CHANGE: Vector tmp; if((tmp=((View)evt.getArg()).getMembers()) != null) { synchronized(members) { members.clear(); members.addAll(tmp); members_set.clear(); members_set.addAll(tmp); } } passDown(evt); break; case Event.BECOME_SERVER: // called after client has joined and is fully working group member passDown(evt); is_server=true; break; case Event.CONNECT: group_addr=(String) evt.getArg(); passDown(evt); break; case Event.DISCONNECT: passDown(evt); break; default: passDown(evt); // Pass on to the layer below us break; } }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/cdea1d71ad7f455a500841b398f04e654a5c5228/TCPPING.java/buggy/src/org/jgroups/protocols/TCPPING.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2588,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
1525,
813,
67,
869,
67,
7048,
16,
787,
67,
957,
31,
3639,
1620,
12,
73,
11734,
18,
588,
559,
10756,
288,
5411,
648,
2587,
18,
42,
2356,
67,
28497,
67,
49,
7192,
55,
30,
282,
368,
3271,
635,
611,
3537,
3018,
16,
1342,
731,
279,
4978,
67,
49,
7192,
55,
67,
3141,
871,
7734,
2172,
67,
7640,
18,
4479,
1595,
3471,
5621,
7734,
1234,
33,
2704,
2350,
12,
2011,
16,
446,
16,
446,
1769,
7734,
1234,
18,
458,
1864,
12,
17994,
9334,
394,
18214,
1864,
12,
17223,
1864,
18,
3264,
67,
49,
7192,
55,
67,
20373,
16,
446,
10019,
7734,
3852,
12,
7640,
13,
288,
10792,
364,
12,
3198,
518,
33,
6769,
67,
11588,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
13491,
5267,
3091,
28657,
1887,
13,
305,
18,
4285,
5621,
13491,
309,
12,
7640,
18,
12298,
12,
4793,
3719,
288,
21821,
274,
368,
1324,
31,
368,
3550,
487,
22168,
635,
6622,
1475,
83,
705,
13491,
289,
13491,
1234,
18,
542,
9378,
12,
4793,
1769,
13491,
309,
12,
1330,
18,
291,
3448,
1526,
10756,
613,
18,
5129,
2932,
63,
42,
2356,
67,
28497,
67,
49,
7192,
55,
65,
5431,
453,
1360,
590,
358,
315,
397,
1234,
18,
588,
9378,
10663,
13491,
1342,
4164,
12,
2704,
2587,
12,
1133,
18,
11210,
16,
1234,
18,
3530,
1435,
10019,
10792,
289,
7734,
289,
7734,
368,
576,
18,
5838,
296,
4538,
11,
4086,
578,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2588,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
1525,
813,
67,
869,
67,
7048,
16,
787,
67,
957,
31,
3639,
1620,
12,
73,
11734,
18,
588,
559,
10756,
288,
5411,
648,
2587,
18,
42,
2356,
67,
28497,
67,
49,
7192,
55,
30,
282,
368,
3271,
635,
611,
3537,
3018,
16,
1342,
731,
279,
4978,
67,
49,
7192,
55,
67,
3141,
871,
7734,
2172,
67,
7640,
18,
4479,
1595,
3471,
5621,
7734,
1234,
33,
2704,
2350,
12,
2011,
16,
446,
16,
446,
1769,
7734,
1234,
18,
458,
1864,
12,
17994,
9334,
394,
18214,
1864,
12,
17223,
1864,
18,
3264,
67,
49,
7192,
55,
67,
20373,
16,
446,
10019,
7734,
3852,
12,
7640,
13,
288,
2
] |
endMark = rc.getTextPainter().selectAll(x, y, aci, anchor, rc);
|
endMark = rc.getTextPainter().selectAll(x-location.getX(), y-location.getY(), aci, anchor, rc);
|
public void selectAll(double x, double y, GraphicsNodeRenderContext rc) { endMark = rc.getTextPainter().selectAll(x, y, aci, anchor, rc); beginMark = endMark; return; }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/696f00cdae32ea0084c1aad066222ac5aa5cc533/ConcreteTextNode.java/clean/sources/org/apache/batik/refimpl/gvt/ConcreteTextNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27787,
12,
9056,
619,
16,
1645,
677,
16,
16830,
907,
3420,
1042,
4519,
13,
288,
3639,
679,
3882,
273,
4519,
18,
588,
1528,
15775,
7675,
4025,
1595,
12,
92,
17,
3562,
18,
588,
60,
9334,
677,
17,
3562,
18,
588,
61,
9334,
1721,
77,
16,
6984,
16,
4519,
1769,
3639,
2376,
3882,
273,
679,
3882,
31,
3639,
327,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27787,
12,
9056,
619,
16,
1645,
677,
16,
16830,
907,
3420,
1042,
4519,
13,
288,
3639,
679,
3882,
273,
4519,
18,
588,
1528,
15775,
7675,
4025,
1595,
12,
92,
17,
3562,
18,
588,
60,
9334,
677,
17,
3562,
18,
588,
61,
9334,
1721,
77,
16,
6984,
16,
4519,
1769,
3639,
2376,
3882,
273,
679,
3882,
31,
3639,
327,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
TaskRepository repository2 = new TaskRepository(DEFAULT_KIND, new URL(ANOTHER_URL));
|
TaskRepository repository2 = new TaskRepository(DEFAULT_KIND, ANOTHER_URL);
|
public void testRepositoryPersistanceAfterDelete() throws MalformedURLException { manager.clearRepositories(); assertEquals("", MylarTaskListPlugin.getPrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND)); TaskRepository repository = new TaskRepository(DEFAULT_KIND, new URL(DEFAULT_URL)); manager.addRepository(repository); assertFalse(MylarTaskListPlugin.getPrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND).equals("")); TaskRepository repository2 = new TaskRepository(DEFAULT_KIND, new URL(ANOTHER_URL)); manager.addRepository(repository2); String saveString = MylarTaskListPlugin.getPrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND); assertNotNull(saveString); manager.removeRepository(repository2); String newSaveString = MylarTaskListPlugin.getPrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND); assertFalse(saveString.equals(newSaveString)); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/5b50d3afe01b1820190de900979c9823401a70e1/TaskRepositoryManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskRepositoryManagerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3305,
12771,
1359,
4436,
2613,
1435,
1216,
20710,
288,
202,
202,
4181,
18,
8507,
18429,
5621,
202,
202,
11231,
8867,
2932,
3113,
8005,
7901,
2174,
682,
3773,
18,
588,
1386,
2556,
7675,
588,
780,
12,
2174,
3305,
1318,
18,
3670,
42,
67,
862,
28284,
916,
8805,
397,
3331,
67,
47,
2356,
10019,
9506,
202,
2174,
3305,
3352,
273,
394,
3837,
3305,
12,
5280,
67,
47,
2356,
16,
394,
1976,
12,
5280,
67,
1785,
10019,
202,
202,
4181,
18,
1289,
3305,
12,
9071,
1769,
9506,
202,
11231,
8381,
12,
12062,
7901,
2174,
682,
3773,
18,
588,
1386,
2556,
7675,
588,
780,
12,
2174,
3305,
1318,
18,
3670,
42,
67,
862,
28284,
916,
8805,
397,
3331,
67,
47,
2356,
2934,
14963,
2932,
7923,
1769,
9506,
202,
2174,
3305,
3352,
22,
273,
394,
3837,
3305,
12,
5280,
67,
47,
2356,
16,
394,
1976,
12,
1258,
23940,
67,
1785,
10019,
202,
202,
4181,
18,
1289,
3305,
12,
9071,
22,
1769,
9506,
202,
780,
1923,
780,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
1386,
2556,
7675,
588,
780,
12,
2174,
3305,
1318,
18,
3670,
42,
67,
862,
28284,
916,
8805,
397,
3331,
67,
47,
2356,
1769,
202,
202,
11231,
5962,
12,
5688,
780,
1769,
9506,
202,
4181,
18,
4479,
3305,
12,
9071,
22,
1769,
4697,
202,
780,
394,
4755,
780,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
1386,
2556,
7675,
588,
780,
12,
2174,
3305,
1318,
18,
3670,
42,
67,
862,
28284,
916,
8805,
397,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3305,
12771,
1359,
4436,
2613,
1435,
1216,
20710,
288,
202,
202,
4181,
18,
8507,
18429,
5621,
202,
202,
11231,
8867,
2932,
3113,
8005,
7901,
2174,
682,
3773,
18,
588,
1386,
2556,
7675,
588,
780,
12,
2174,
3305,
1318,
18,
3670,
42,
67,
862,
28284,
916,
8805,
397,
3331,
67,
47,
2356,
10019,
9506,
202,
2174,
3305,
3352,
273,
394,
3837,
3305,
12,
5280,
67,
47,
2356,
16,
394,
1976,
12,
5280,
67,
1785,
10019,
202,
202,
4181,
18,
1289,
3305,
12,
9071,
1769,
9506,
202,
11231,
8381,
12,
12062,
7901,
2174,
682,
3773,
18,
588,
1386,
2556,
7675,
588,
780,
12,
2174,
3305,
1318,
18,
3670,
42,
67,
862,
28284,
916,
8805,
397,
3331,
2
] |
while (datalines.size() > maxdatalines) { dl = (DataLine)datalines.remove(0); i = dl.iterator(); while (i.hasNext()) { DataElem de = (DataElem)i.next(); de.index_info.removeSample (de.stamp); } }
|
if (maxdatalines >= 0) { while (datalines.size() > maxdatalines) { dl = (DataLine)datalines.remove(0); i = dl.iterator(); while (i.hasNext()) { DataElem de = (DataElem)i.next(); de.index_info.removeSample (de.stamp); } } }
|
private void addDataLine (DataLine new_dl) { Iterator i; DataLine dl; while (datalines.size() > maxdatalines) { dl = (DataLine)datalines.remove(0); i = dl.iterator(); while (i.hasNext()) { DataElem de = (DataElem)i.next(); de.index_info.removeSample (de.stamp); } } datalines.add(new_dl); }
|
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/be44d6c7d7583b828a1d4e9ab481ae964eed9380/LabeledPerfDataCollector.java/clean/modules/jackal/perfmonitor/org/vrjuggler/jccl/perfmonitor/LabeledPerfDataCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21958,
1670,
261,
751,
1670,
394,
67,
5761,
13,
288,
202,
3198,
277,
31,
202,
751,
1670,
8910,
31,
202,
17523,
261,
72,
3145,
1465,
18,
1467,
1435,
405,
943,
72,
3145,
1465,
13,
288,
202,
565,
8910,
273,
261,
751,
1670,
13,
72,
3145,
1465,
18,
4479,
12,
20,
1769,
202,
565,
277,
273,
8910,
18,
9838,
5621,
202,
565,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
202,
202,
751,
7498,
443,
273,
261,
751,
7498,
13,
77,
18,
4285,
5621,
202,
202,
323,
18,
1615,
67,
1376,
18,
4479,
8504,
261,
323,
18,
14317,
1769,
202,
565,
289,
202,
97,
202,
72,
3145,
1465,
18,
1289,
12,
2704,
67,
5761,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
21958,
1670,
261,
751,
1670,
394,
67,
5761,
13,
288,
202,
3198,
277,
31,
202,
751,
1670,
8910,
31,
202,
17523,
261,
72,
3145,
1465,
18,
1467,
1435,
405,
943,
72,
3145,
1465,
13,
288,
202,
565,
8910,
273,
261,
751,
1670,
13,
72,
3145,
1465,
18,
4479,
12,
20,
1769,
202,
565,
277,
273,
8910,
18,
9838,
5621,
202,
565,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
202,
202,
751,
7498,
443,
273,
261,
751,
7498,
13,
77,
18,
4285,
5621,
202,
202,
323,
18,
1615,
67,
1376,
18,
4479,
8504,
261,
323,
18,
14317,
1769,
202,
565,
289,
202,
97,
202,
72,
3145,
1465,
18,
1289,
12,
2704,
67,
5761,
1769,
565,
289,
2
] |
OntResource range = (OntResource) r.next(); if (r.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " has more than one defined range.");
|
if (range == null) { return;
|
protected void processProperty(OntModel ontModel, OntProperty prop, boolean isInverse) throws Exception { Iterator r = prop.listRange(); Iterator d = prop.listDomain(); String reverseRef = null; OntProperty invProp = null; Iterator inverse = prop.listInverse(); if (inverse.hasNext()) { invProp = (OntProperty) inverse.next(); if (inverse.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " has more than one inverse property."); } } Iterator inverseOf = prop.listInverseOf(); if (inverseOf.hasNext()) { invProp = (OntProperty) inverseOf.next(); if (inverseOf.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " has more than one inverse property."); } r = invProp.listDomain(); d = invProp.listRange(); } // we want properties to have exactly one domain if (!d.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " does not have a defined domain."); } OntResource domain = (OntResource) d.next(); if (d.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " has more than one defined domain."); } //if (!domain.getNameSpace().equals(tgtNamespace)) { // continue; //} // we don't want heterogeneous collections/enumerations in our java if (!r.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " does not have a defined range."); } OntResource range = (OntResource) r.next(); if (r.hasNext()) { throw new Exception("Property: " + prop.getURI().toString() + " has more than one defined range."); } if (invProp != null) { reverseRef = OntologyUtil.generateFieldName(invProp, range); } if (!isInverse && OntologyUtil.isDatatypeProperty((Property) prop)) { String javaType; if (range.getNameSpace().equals(OntologyUtil.RDFS_NAMESPACE) && range.getLocalName().equals("Literal")) { javaType = "java.lang.String"; } else if (range.getNameSpace().equals(OntologyUtil.XSD_NAMESPACE)) { javaType = OntologyUtil.xmlToJavaType(range.getLocalName()); } else { throw new Exception("DatatypeProperty: " + prop.getURI().toString() + " has a range that is not a datatype (" + range.getURI().toString() + ")"); } AttributeDescriptor atd = new AttributeDescriptor(OntologyUtil.generateFieldName(prop, domain), javaType); HashSet atds = getFieldSetForClass(attributes, domain.getLocalName()); atds.add(atd); } else if (isInverse || OntologyUtil.isObjectProperty((Property) prop)) { // TODO set package correctly if java type not business object in collection String referencedType = pkg + "." + range.getLocalName(); if (OntologyUtil.hasMaxCardinalityOne(ontModel, prop, domain)) { ReferenceDescriptor rfd = new ReferenceDescriptor(OntologyUtil.generateFieldName(prop, domain), referencedType, reverseRef); HashSet rfds = getFieldSetForClass(references, domain.getLocalName()); rfds.add(rfd); } else { // TODO collection - cannot handle ordered CollectionDescriptor cod = new CollectionDescriptor(OntologyUtil.generateFieldName(prop, domain), referencedType, reverseRef, false); HashSet cods = getFieldSetForClass(collections, domain.getLocalName()); cods.add(cod); } } else { throw new Exception("Was neither datatype or object property"); } }
|
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/457e472c4d85a3e17847c1d637a736cc24690e2f/Owl2FlyMine.java/clean/intermine/src/java/org/intermine/ontology/Owl2FlyMine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
1396,
12,
51,
496,
1488,
603,
88,
1488,
16,
531,
496,
1396,
2270,
16,
1250,
8048,
2476,
13,
3639,
1216,
1185,
288,
3639,
4498,
436,
273,
2270,
18,
1098,
2655,
5621,
3639,
4498,
302,
273,
2270,
18,
1098,
3748,
5621,
3639,
514,
4219,
1957,
273,
446,
31,
3639,
531,
496,
1396,
2198,
4658,
273,
446,
31,
3639,
4498,
8322,
273,
2270,
18,
1098,
16376,
5621,
3639,
309,
282,
261,
22552,
18,
5332,
2134,
10756,
288,
5411,
2198,
4658,
273,
261,
51,
496,
1396,
13,
8322,
18,
4285,
5621,
5411,
309,
261,
22552,
18,
5332,
2134,
10756,
288,
7734,
604,
394,
1185,
2932,
1396,
30,
315,
397,
2270,
18,
588,
3098,
7675,
10492,
1435,
4766,
565,
397,
315,
711,
1898,
2353,
1245,
8322,
1272,
1199,
1769,
5411,
289,
3639,
289,
3639,
4498,
8322,
951,
273,
2270,
18,
1098,
16376,
951,
5621,
3639,
309,
261,
22552,
951,
18,
5332,
2134,
10756,
288,
5411,
2198,
4658,
273,
261,
51,
496,
1396,
13,
8322,
951,
18,
4285,
5621,
5411,
309,
261,
22552,
951,
18,
5332,
2134,
10756,
288,
7734,
604,
394,
1185,
2932,
1396,
30,
315,
397,
2270,
18,
588,
3098,
7675,
10492,
1435,
4766,
565,
397,
315,
711,
1898,
2353,
1245,
8322,
1272,
1199,
1769,
5411,
289,
5411,
436,
273,
2198,
4658,
18,
1098,
3748,
5621,
5411,
302,
273,
2198,
4658,
18,
1098,
2655,
5621,
3639,
289,
3639,
368,
732,
2545,
1790,
358,
1240,
8950,
1245,
2461,
3639,
309,
16051,
72,
18,
5332,
2134,
10756,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
1396,
12,
51,
496,
1488,
603,
88,
1488,
16,
531,
496,
1396,
2270,
16,
1250,
8048,
2476,
13,
3639,
1216,
1185,
288,
3639,
4498,
436,
273,
2270,
18,
1098,
2655,
5621,
3639,
4498,
302,
273,
2270,
18,
1098,
3748,
5621,
3639,
514,
4219,
1957,
273,
446,
31,
3639,
531,
496,
1396,
2198,
4658,
273,
446,
31,
3639,
4498,
8322,
273,
2270,
18,
1098,
16376,
5621,
3639,
309,
282,
261,
22552,
18,
5332,
2134,
10756,
288,
5411,
2198,
4658,
273,
261,
51,
496,
1396,
13,
8322,
18,
4285,
5621,
5411,
309,
261,
22552,
18,
5332,
2134,
10756,
288,
7734,
604,
394,
1185,
2932,
1396,
30,
315,
397,
2270,
18,
588,
3098,
7675,
10492,
1435,
4766,
565,
2
] |
base = out; tlist.clear();
|
base = out; tlist.clear();
|
void closeStartTag () { if (attrCount < 0 || stringizingLevel > 0) return; inStartTag = false; previous = 0; if (attrLocalName != null) // Should only happen on erroneous input. endAttribute(); NamespaceBinding outer = nesting == 0 ? NamespaceBinding.predefinedXML : (NamespaceBinding) workStack[nesting-2]; NamespaceBinding bindings = namespaceBindings; // This first pass is to check that there are namespace declarations for // each Symbol. for (int i = 0; i <= attrCount; i++) { Object saved = workStack[nesting+i-1]; if (saved instanceof Symbol) { Symbol sym = (Symbol) saved; String prefix = sym.getPrefix(); if (prefix == "") prefix = null; String uri = sym.getNamespaceURI(); if (uri == "") uri = null; if (i > 0 && prefix == null && uri == null) continue; boolean isOuter = false; for (NamespaceBinding ns = bindings; ; ns = ns.next) { if (ns == outer) isOuter = true; if (ns == null) { if (prefix != null || uri != null) bindings = findNamespaceBinding(prefix, uri, bindings); break; } if (ns.prefix == prefix) { if (ns.uri != uri) { if (isOuter) bindings = findNamespaceBinding(prefix, uri, bindings); else { // Try to find an alternative existing prefix: String nprefix; for (NamespaceBinding ns2 = bindings; ; ns2 = ns2.next) { if (ns2 == null) { // We have to generate a new prefix. for (int j = 1; ; j++) { nprefix = ("_ns_"+j).intern(); if (bindings.resolve(nprefix) == null) break; } break; } if (ns2.uri == uri) { nprefix = ns2.prefix; if (bindings.resolve(nprefix) == uri) break; } } bindings = findNamespaceBinding(nprefix, uri, bindings); String local = sym.getLocalName(); if (uri == null) uri = ""; workStack[nesting+i-1] = Symbol.make(uri, local, nprefix); } } break; } } } } for (int i = 0; i <= attrCount; i++) { Object saved = workStack[nesting+i-1]; MappingInfo info; boolean isNsNode = false; String prefix, uri, local; if (saved instanceof MappingInfo || out == tlist) { if (saved instanceof MappingInfo) { info = (MappingInfo) saved; prefix = info.prefix; local = info.local; if (i > 0 && ((prefix == null && local == "xmlns") || prefix == "xmlns")) { isNsNode = true; uri = "(namespace-node)"; } else uri = resolve(prefix, i > 0); } else { Symbol symbol = (Symbol) saved; info = lookupTag(symbol); prefix = info.prefix; local = info.local; uri = symbol.getNamespaceURI(); } int hash = info.tagHash; int bucket = hash & mappingTableMask; info = mappingTable[bucket]; MappingInfo tagMatch = null; Object type; for (;; info = info.nextInBucket) { if (info == null) { info = tagMatch; info = new MappingInfo(); info.tagHash = hash; info.prefix = prefix; info.local = local; info.nextInBucket = mappingTable[bucket]; mappingTable[bucket] = info; info.uri = uri; info.qname = Symbol.make(uri, local, prefix); if (i == 0) { XName xname = new XName(info.qname, bindings); type = xname; info.type = xname; info.namespaces = bindings; } break; } if (info.tagHash == hash && info.local == local && info.prefix == prefix) { if (info.uri == null) { info.uri = uri; info.qname = Symbol.make(uri, local, prefix); } else if (info.uri != uri) continue; else if (info.qname == null) info.qname = Symbol.make(uri, local, prefix); if (i == 0) { if (info.namespaces == bindings || info.namespaces == null) { type = info.type; info.namespaces = bindings; if (type == null) { XName xname = new XName(info.qname, bindings); type = xname; info.type = xname; } break; } } else { type = info.qname; break; } } } workStack[nesting+i-1] = info; } else { Symbol sym = (Symbol) saved; uri = sym.getNamespaceURI(); local = sym.getLocalName(); info = null; } // Check for duplicated attribute names. for (int j = 1; j < i; j++) { Object other = workStack[nesting+j-1]; Symbol osym; if (other instanceof Symbol) osym = (Symbol) other; else if (other instanceof MappingInfo) osym = ((MappingInfo) other).qname; else continue; if (local == osym.getLocalPart() && uri == osym.getNamespaceURI()) { Object tag = workStack[nesting-1]; if (tag instanceof MappingInfo) tag = ((MappingInfo) tag).qname; error('e', XMLFilter.duplicateAttributeMessage(osym, tag)); } } if (out == tlist) { Object type = i == 0 ? info.type : info.qname; int index = info.index; if (index <= 0 || tlist.objects[index] != type) { index = tlist.find(type); info.index = index; } if (i == 0) tlist.setElementName(tlist.gapEnd, index); else if (! isNsNode || namespacePrefixes) tlist.setAttributeName(startIndexes[i-1], index); } else { Object type = info == null ? saved : i == 0 ? info.type : info.qname; if (i == 0) out.startElement(type); else if (! isNsNode || namespacePrefixes) { out.startAttribute(type); int start = startIndexes[i-1]; int end = i < attrCount ? startIndexes[i] : tlist.gapStart; tlist.consumeIRange(start + TreeList.BEGIN_ATTRIBUTE_LONG_SIZE, end - TreeList.END_ATTRIBUTE_SIZE, out); out.endAttribute(); } } } /* #ifdef SAX2 */ if (out instanceof ContentConsumer) ((ContentConsumer) out).endStartTag(); /* #endif */ for (int i = 1; i <= attrCount; i++) workStack[nesting+i-1] = null; // For GC. if (out != tlist) { base = out; // Remove temporarily stored attributes. tlist.clear(); } attrCount = -1; }
|
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/d88ad71a225b18aebdc59328e031356cdaf5a99d/XMLFilter.java/buggy/gnu/xml/XMLFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1746,
30512,
1832,
225,
288,
565,
309,
261,
1747,
1380,
411,
374,
747,
533,
6894,
2355,
405,
374,
13,
1377,
327,
31,
565,
316,
30512,
273,
629,
31,
565,
2416,
273,
374,
31,
565,
309,
261,
1747,
29583,
480,
446,
13,
368,
9363,
1338,
5865,
603,
393,
476,
1481,
810,
18,
1377,
679,
1499,
5621,
565,
6005,
5250,
6390,
273,
17174,
422,
374,
692,
6005,
5250,
18,
1484,
2178,
4201,
1377,
294,
261,
3402,
5250,
13,
1440,
2624,
63,
82,
10100,
17,
22,
15533,
1850,
6005,
5250,
7394,
273,
1981,
10497,
31,
565,
368,
1220,
1122,
1342,
353,
358,
866,
716,
1915,
854,
1981,
12312,
364,
565,
368,
1517,
8565,
18,
565,
364,
261,
474,
277,
273,
374,
31,
225,
277,
1648,
1604,
1380,
31,
277,
27245,
1377,
288,
3639,
1033,
5198,
273,
1440,
2624,
63,
82,
10100,
15,
77,
17,
21,
15533,
3639,
309,
261,
14077,
1276,
8565,
13,
1850,
288,
5411,
8565,
5382,
273,
261,
5335,
13,
5198,
31,
5411,
514,
1633,
273,
5382,
18,
588,
2244,
5621,
5411,
309,
261,
3239,
422,
1408,
13,
2868,
1633,
273,
446,
31,
5411,
514,
2003,
273,
5382,
18,
588,
3402,
3098,
5621,
5411,
309,
261,
1650,
422,
1408,
13,
2868,
2003,
273,
446,
31,
5411,
309,
261,
77,
405,
374,
597,
1633,
422,
446,
597,
2003,
422,
446,
13,
2868,
1324,
31,
5411,
1250,
353,
15040,
273,
629,
31,
5411,
364,
261,
3402,
5250,
3153,
273,
7394,
31,
274,
3153,
273,
3153,
18,
4285,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1746,
30512,
1832,
225,
288,
565,
309,
261,
1747,
1380,
411,
374,
747,
533,
6894,
2355,
405,
374,
13,
1377,
327,
31,
565,
316,
30512,
273,
629,
31,
565,
2416,
273,
374,
31,
565,
309,
261,
1747,
29583,
480,
446,
13,
368,
9363,
1338,
5865,
603,
393,
476,
1481,
810,
18,
1377,
679,
1499,
5621,
565,
6005,
5250,
6390,
273,
17174,
422,
374,
692,
6005,
5250,
18,
1484,
2178,
4201,
1377,
294,
261,
3402,
5250,
13,
1440,
2624,
63,
82,
10100,
17,
22,
15533,
1850,
6005,
5250,
7394,
273,
1981,
10497,
31,
565,
368,
1220,
1122,
1342,
353,
358,
866,
716,
1915,
854,
1981,
12312,
364,
565,
368,
1517,
8565,
18,
565,
364,
261,
474,
277,
273,
2
] |
public void testGetRepositoryEntry() throws MalformedURLException { LeafNode leaf = repo.createLeafNode("http:
|
public void testGetRepositoryEntry() throws Exception { RepositoryNode leaf = repo.createNewNode("http:
|
public void testGetRepositoryEntry() throws MalformedURLException { LeafNode leaf = repo.createLeafNode("http://www.example.com/testDir/branch1/leaf1"); leaf.makeNewVersion(); leaf.sealNewVersion(); leaf = repo.createLeafNode("http://www.example.com/testDir/branch1/leaf2"); leaf.makeNewVersion(); leaf.sealNewVersion(); leaf = repo.createLeafNode("http://www.example.com/testDir/branch2/leaf3"); leaf.makeNewVersion(); leaf.sealNewVersion(); leaf = repo.createLeafNode("http://www.example.com/testDir/leaf4"); leaf.makeNewVersion(); leaf.sealNewVersion(); RepositoryNode entry = repo.getRepositoryNode("http://www.example.com/testDir"); assertTrue(!entry.isLeaf()); assertTrue(entry instanceof InternalNode); entry = repo.getRepositoryNode("http://www.example.com/testDir/branch1"); assertTrue(!entry.isLeaf()); assertTrue(entry instanceof InternalNode); entry = repo.getRepositoryNode("http://www.example.com/testDir/branch2/leaf3"); assertTrue(entry.isLeaf()); assertTrue(entry instanceof LeafNode); entry = repo.getRepositoryNode("http://www.example.com/testDir/leaf4"); assertTrue(entry.isLeaf()); assertTrue(entry instanceof LeafNode); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/9df113a72093776d30a21e9427753f6accfc7565/TestLockssRepositoryImpl.java/clean/test/src/org/lockss/repository/TestLockssRepositoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
967,
3305,
1622,
1435,
1216,
20710,
288,
565,
23383,
907,
7839,
273,
3639,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
21,
19,
12070,
21,
8863,
565,
7839,
18,
6540,
1908,
1444,
5621,
565,
7839,
18,
307,
287,
1908,
1444,
5621,
565,
7839,
273,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
21,
19,
12070,
22,
8863,
565,
7839,
18,
6540,
1908,
1444,
5621,
565,
7839,
18,
307,
287,
1908,
1444,
5621,
565,
7839,
273,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
22,
19,
12070,
23,
8863,
565,
7839,
18,
6540,
1908,
1444,
5621,
565,
7839,
18,
307,
287,
1908,
1444,
5621,
565,
7839,
273,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
12070,
24,
8863,
565,
7839,
18,
6540,
1908,
1444,
5621,
565,
7839,
18,
307,
287,
1908,
1444,
5621,
565,
6281,
907,
1241,
273,
3639,
3538,
18,
588,
3305,
907,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
8863,
565,
1815,
5510,
12,
5,
4099,
18,
291,
9858,
10663,
565,
1815,
5510,
12,
4099,
1276,
3186,
907,
1769,
565,
1241,
273,
3538,
18,
588,
3305,
907,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
21,
8863,
565,
1815,
5510,
12,
5,
4099,
18,
291,
9858,
10663,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
967,
3305,
1622,
1435,
1216,
20710,
288,
565,
23383,
907,
7839,
273,
3639,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
21,
19,
12070,
21,
8863,
565,
7839,
18,
6540,
1908,
1444,
5621,
565,
7839,
18,
307,
287,
1908,
1444,
5621,
565,
7839,
273,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
21,
19,
12070,
22,
8863,
565,
7839,
18,
6540,
1908,
1444,
5621,
565,
7839,
18,
307,
287,
1908,
1444,
5621,
565,
7839,
273,
3538,
18,
2640,
16545,
2932,
2505,
2207,
5591,
18,
8236,
18,
832,
19,
3813,
1621,
19,
7500,
22,
19,
12070,
23,
8863,
2
] |
visibility(cd);
|
visibility(opt, cd);
|
private void operations(ConstructorDoc m[]) { for (ConstructorDoc cd : m) { if (hidden(cd)) continue; visibility(cd); opt.w.print(cd.name()); if (opt.showType) { opt.w.print("("); parameter(cd.parameters()); opt.w.print(")"); } else opt.w.print("()"); opt.w.print("\\l"); opt.w.print(tagvalue(cd, "", 'r')); } }
|
47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/405b179f20c0c73d6e8668ae781ecb16eb4758ba/ClassGraph.java/buggy/src/org/umlgraph/doclet/ClassGraph.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5295,
12,
6293,
1759,
312,
63,
5717,
288,
202,
1884,
261,
6293,
1759,
7976,
294,
312,
13,
288,
202,
565,
309,
261,
6345,
12,
4315,
3719,
202,
202,
17143,
31,
202,
565,
9478,
12,
4315,
1769,
202,
565,
2153,
18,
91,
18,
1188,
12,
4315,
18,
529,
10663,
202,
565,
309,
261,
3838,
18,
4500,
559,
13,
288,
202,
202,
3838,
18,
91,
18,
1188,
2932,
2932,
1769,
202,
202,
6775,
12,
4315,
18,
3977,
10663,
202,
202,
3838,
18,
91,
18,
1188,
2932,
2225,
1769,
202,
565,
289,
469,
202,
202,
3838,
18,
91,
18,
1188,
2932,
1435,
8863,
202,
565,
2153,
18,
91,
18,
1188,
2932,
1695,
80,
8863,
202,
565,
2153,
18,
91,
18,
1188,
12,
2692,
1132,
12,
4315,
16,
23453,
296,
86,
6134,
1769,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5295,
12,
6293,
1759,
312,
63,
5717,
288,
202,
1884,
261,
6293,
1759,
7976,
294,
312,
13,
288,
202,
565,
309,
261,
6345,
12,
4315,
3719,
202,
202,
17143,
31,
202,
565,
9478,
12,
4315,
1769,
202,
565,
2153,
18,
91,
18,
1188,
12,
4315,
18,
529,
10663,
202,
565,
309,
261,
3838,
18,
4500,
559,
13,
288,
202,
202,
3838,
18,
91,
18,
1188,
2932,
2932,
1769,
202,
202,
6775,
12,
4315,
18,
3977,
10663,
202,
202,
3838,
18,
91,
18,
1188,
2932,
2225,
1769,
202,
565,
289,
469,
202,
202,
3838,
18,
91,
18,
1188,
2932,
1435,
8863,
202,
565,
2153,
18,
91,
18,
1188,
2932,
1695,
80,
8863,
202,
565,
2153,
18,
91,
2
] |
|| ce.getMovementMode() == IEntityMovementMode.VTOL) {
|
|| ce.getMovementMode() == IEntityMovementMode.VTOL || ce.getMovementMode() == IEntityMovementMode.BIPED_SWIM || ce.getMovementMode() == IEntityMovementMode.QUAD_SWIM) {
|
private void updateButtons() { final Entity ce = ce(); boolean isMech = (ce instanceof Mech); boolean isInfantry = (ce instanceof Infantry); boolean isProtomech = (ce instanceof Protomech); // ^-- I suppose these should really be methods, a-la Entity.canCharge(), Entity.canDFA()... setWalkEnabled(!ce.isImmobile() && ce.getWalkMP() > 0 && !ce.isStuck()); setJumpEnabled(!ce.isImmobile() && ce.getJumpMP() > 0 && !ce.isStuck()); setBackUpEnabled(butWalk.isEnabled()); setChargeEnabled(ce.canCharge()); setDFAEnabled(ce.canDFA()); if ( isInfantry || isProtomech ) { if(client.game.containsMinefield(ce.getPosition())) { setClearEnabled(true); } else { setClearEnabled(false); } } else { setClearEnabled(false); } if(ce.getMovementMode() == IEntityMovementMode.HYDROFOIL || ce.getMovementMode() == IEntityMovementMode.NAVAL || ce.getMovementMode() == IEntityMovementMode.SUBMARINE || ce.getMovementMode() == IEntityMovementMode.VTOL) { butClimbMode.setEnabled(false); } else { butClimbMode.setEnabled(true); } setTurnEnabled(!ce.isImmobile() && !ce.isStuck() && (ce.getWalkMP() > 0 || ce.getJumpMP() > 0)); if (ce.isProne()) { setGetUpEnabled(!ce.isImmobile() && !ce.isStuck()); setGoProneEnabled(false); setHullDownEnabled(false); } else if(ce.isHullDown()) { setGetUpEnabled(!ce.isImmobile() && !ce.isStuck()); setGoProneEnabled(!ce.isImmobile() && isMech && !ce.isStuck()); setHullDownEnabled(false); } else { setGetUpEnabled(false); setGoProneEnabled(!ce.isImmobile() && isMech && !ce.isStuck()); setHullDownEnabled(ce.canGoHullDown()); } updateProneButtons(); updateRACButton(); updateSearchlightButton(); updateLoadButtons(); updateElevationButtons(); setLayMineEnabled(ce.canLayMine()); setFleeEnabled(ce.canFlee()); if (client.game.getOptions().booleanOption("vehicles_can_eject")) { //$NON-NLS-1$ setEjectEnabled ( (!isInfantry) && !(isMech && ((Mech)ce).getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) && ce.isActive()); } else { setEjectEnabled(isMech && ((Mech)ce).getCockpitType() != Mech.COCKPIT_TORSO_MOUNTED && ce.isActive()); } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/97440d7453a8e7dddf56eea92a9444856c33f01d/MovementDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MovementDisplay.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
14388,
1435,
288,
3639,
727,
3887,
5898,
273,
5898,
5621,
3639,
1250,
353,
4667,
343,
1377,
273,
261,
311,
1276,
7499,
343,
1769,
3639,
1250,
8048,
74,
304,
698,
225,
273,
261,
311,
1276,
13648,
304,
698,
1769,
3639,
1250,
353,
21189,
1742,
343,
273,
261,
311,
1276,
1186,
88,
1742,
343,
1769,
3639,
368,
3602,
413,
467,
1169,
4150,
4259,
1410,
8654,
506,
2590,
16,
279,
17,
11821,
3887,
18,
4169,
17649,
9334,
3887,
18,
4169,
40,
2046,
1435,
2777,
7734,
444,
9463,
1526,
12,
5,
311,
18,
291,
1170,
18386,
1435,
597,
5898,
18,
588,
9463,
4566,
1435,
405,
374,
597,
401,
311,
18,
291,
510,
9031,
10663,
3639,
444,
26743,
1526,
12,
5,
311,
18,
291,
1170,
18386,
1435,
597,
5898,
18,
588,
26743,
4566,
1435,
405,
374,
597,
401,
311,
18,
291,
510,
9031,
10663,
3639,
444,
2711,
1211,
1526,
12,
12885,
9463,
18,
291,
1526,
10663,
3639,
444,
17649,
1526,
12,
311,
18,
4169,
17649,
10663,
3639,
444,
40,
2046,
1526,
12,
311,
18,
4169,
40,
2046,
10663,
3639,
309,
261,
8048,
74,
304,
698,
747,
353,
21189,
1742,
343,
262,
288,
5411,
309,
12,
2625,
18,
13957,
18,
12298,
49,
558,
1518,
12,
311,
18,
588,
2555,
1435,
3719,
288,
7734,
444,
9094,
1526,
12,
3767,
1769,
5411,
289,
469,
288,
7734,
444,
9094,
1526,
12,
5743,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
444,
9094,
1526,
12,
5743,
1769,
3639,
289,
7734,
309,
12,
311,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
14388,
1435,
288,
3639,
727,
3887,
5898,
273,
5898,
5621,
3639,
1250,
353,
4667,
343,
1377,
273,
261,
311,
1276,
7499,
343,
1769,
3639,
1250,
8048,
74,
304,
698,
225,
273,
261,
311,
1276,
13648,
304,
698,
1769,
3639,
1250,
353,
21189,
1742,
343,
273,
261,
311,
1276,
1186,
88,
1742,
343,
1769,
3639,
368,
3602,
413,
467,
1169,
4150,
4259,
1410,
8654,
506,
2590,
16,
279,
17,
11821,
3887,
18,
4169,
17649,
9334,
3887,
18,
4169,
40,
2046,
1435,
2777,
7734,
444,
9463,
1526,
12,
5,
311,
18,
291,
1170,
18386,
1435,
597,
5898,
18,
588,
9463,
4566,
1435,
405,
374,
597,
401,
311,
18,
291,
510,
9031,
10663,
3639,
444,
26743,
1526,
12,
2
] |
public void dispose() { super.dispose(); getRegistry().dispose(); getSite().getPage().removeSelectionListener(focusListener); //dispose of selection provider actions openAction.dispose(); copyAction.dispose(); selectAllAction.dispose(); deleteAction.dispose(); revealAction.dispose(); showInNavigatorAction.dispose(); propertiesAction.dispose(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2cd5f192433d8e4a018a46aa91e1db260ff692bb/MarkerView.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/markers/internal/MarkerView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
9565,
18,
2251,
4150,
5621,
202,
202,
588,
4243,
7675,
2251,
4150,
5621,
202,
202,
588,
4956,
7675,
588,
1964,
7675,
4479,
6233,
2223,
12,
13923,
2223,
1769,
9506,
202,
759,
2251,
4150,
434,
4421,
2893,
4209,
202,
202,
3190,
1803,
18,
2251,
4150,
5621,
202,
202,
3530,
1803,
18,
2251,
4150,
5621,
202,
202,
4025,
1595,
1803,
18,
2251,
4150,
5621,
202,
202,
3733,
1803,
18,
2251,
4150,
5621,
202,
202,
266,
24293,
1803,
18,
2251,
4150,
5621,
202,
202,
4500,
382,
22817,
1803,
18,
2251,
4150,
5621,
202,
202,
4738,
1803,
18,
2251,
4150,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
202,
202,
9565,
18,
2251,
4150,
5621,
202,
202,
588,
4243,
7675,
2251,
4150,
5621,
202,
202,
588,
4956,
7675,
588,
1964,
7675,
4479,
6233,
2223,
12,
13923,
2223,
1769,
9506,
202,
759,
2251,
4150,
434,
4421,
2893,
4209,
202,
202,
3190,
1803,
18,
2251,
4150,
5621,
202,
202,
3530,
1803,
18,
2251,
4150,
5621,
202,
202,
4025,
1595,
1803,
18,
2251,
4150,
5621,
202,
202,
3733,
1803,
18,
2251,
4150,
5621,
202,
202,
266,
24293,
1803,
18,
2251,
4150,
5621,
202,
202,
4500,
382,
22817,
1803,
18,
2251,
4150,
5621,
202,
202,
4738,
1803,
18,
2251,
4150,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
String bits = (String) metadata.get("significant_bits"); String fmt = (String) metadata.get("format");
|
int bitsPerPixel = Integer.parseInt((String) metadata.get("significant_bits")); String format = (String) metadata.get("format");
|
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase(); if(ext.equals("ics")) { // convert C to D regardless of case char[] c = idsId.toCharArray(); c[c.length - 2]++; idsId = new String(c); } else if(ext.equals("ids")) { // convert D to C regardless of case char[] c = icsId.toCharArray(); c[c.length - 2]--; id = icsId = new String(c); } if (icsId == null) throw new FormatException("No ICS file found."); File icsFile = new File(icsId); if (!icsFile.exists()) throw new FormatException("ICS file not found."); // check if we have a v2 ICS file RandomAccessFile f = new RandomAccessFile(icsId, "r"); byte[] b = new byte[17]; f.read(b); if (new String(b).trim().equals("ics_version\t2.0")) { idsIn = new RandomAccessStream(icsId); versionTwo = true; } else { if (idsId == null) throw new FormatException("No IDS file found."); File idsFile = new File(idsId); if (!idsFile.exists()) throw new FormatException("IDS file not found."); currentIdsId = idsId; idsIn = new RandomAccessStream(idsId); } currentIcsId = icsId; icsIn = icsFile; BufferedReader reader = new BufferedReader(new FileReader(icsIn)); String line = reader.readLine(); line = reader.readLine(); StringTokenizer t; String token; while (line != null && !line.trim().equals("end")) { t = new StringTokenizer(line); while(t.hasMoreTokens()) { token = t.nextToken(); if (!token.equals("layout") && !token.equals("representation") && !token.equals("parameter") && !token.equals("history") && !token.equals("sensor")) { if (t.countTokens() < 3) { try { metadata.put(token, t.nextToken()); } catch (NoSuchElementException e) { } } else { String meta = t.nextToken(); while (t.hasMoreTokens()) { meta = meta + " " + t.nextToken(); } metadata.put(token, meta); } } } line = reader.readLine(); } String images = (String) metadata.get("sizes"); String ord = (String) metadata.get("order"); // bpp, width, height, z, channels StringTokenizer t1 = new StringTokenizer(images); StringTokenizer t2 = new StringTokenizer(ord); for(int i=0; i<dimensions.length; i++) { dimensions[i] = 1; } String imageToken; String orderToken; while (t1.hasMoreTokens() && t2.hasMoreTokens()) { imageToken = t1.nextToken(); orderToken = t2.nextToken(); if (orderToken.equals("bits")) { dimensions[0] = Integer.parseInt(imageToken); } else if(orderToken.equals("x")) { dimensions[1] = Integer.parseInt(imageToken); } else if(orderToken.equals("y")) { dimensions[2] = Integer.parseInt(imageToken); } else if(orderToken.equals("z")) { dimensions[3] = Integer.parseInt(imageToken); } else if(orderToken.equals("ch")) { dimensions[4] = Integer.parseInt(imageToken); } else { dimensions[5] = Integer.parseInt(imageToken); } } int width = dimensions[1]; int height = dimensions[2]; numImages = dimensions[3] * dimensions[4] * dimensions[5]; String endian = (String) metadata.get("byte_order"); littleEndian = true; if (endian != null) { StringTokenizer endianness = new StringTokenizer(endian); int firstByte = 0; int lastByte = 0; for(int i=0; i<endianness.countTokens(); i++) { if (i == 0) firstByte = Integer.parseInt(endianness.nextToken()); else lastByte = Integer.parseInt(endianness.nextToken()); } if (lastByte < firstByte) littleEndian = false; } String test = (String) metadata.get("compression"); boolean gzip = (test == null) ? false : test.equals("gzip"); if (versionTwo) { String s = idsIn.readLine(); while(!s.trim().equals("end")) s = idsIn.readLine(); } data = new byte[(int) (idsIn.length() - idsIn.getFilePointer())]; // extra check is because some of our datasets are labeled as 'gzip', and // have a valid GZIP header, but are actually uncompressed if (gzip && ((data.length / (numImages) < (width * height * dimensions[0]/8)))) { idsIn.read(data); byte[] buf = new byte[8192]; ByteVector v = new ByteVector(); try { GZIPInputStream decompressor = new GZIPInputStream(new ByteArrayInputStream(data)); int r = decompressor.read(buf, 0, buf.length); while (r > 0) { v.add(buf, 0, r); r = decompressor.read(buf, 0, buf.length); } data = v.toByteArray(); } catch (Exception dfe) { dfe.printStackTrace(); throw new FormatException("Error uncompressing gzip'ed data."); } } else idsIn.readFully(data); // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setImage((String) metadata.get("filename"), null, null, null); // populate Pixels element String o = (String) metadata.get("order"); o = o.substring(o.indexOf("x")); char[] tempOrder = new char[(o.length() / 2) + 1]; int pt = 0; for (int i=0; i<o.length(); i+=2) { tempOrder[pt] = o.charAt(i); pt++; } o = new String(tempOrder).toUpperCase(); if (o.indexOf("Z") == -1) o = o + "Z"; if (o.indexOf("T") == -1) o = o + "T"; if (o.indexOf("C") == -1) o = o + "C"; String bits = (String) metadata.get("significant_bits"); String fmt = (String) metadata.get("format"); String sign = (String) metadata.get("sign"); String type; if (sign.equals("unsigned")) type = "U"; else type = ""; if (fmt.equals("real")) type = "float"; else if (fmt.equals("integer")) { type = type + "int" + bits; } order = o; sizeX[0] = dimensions[1]; sizeY[0] = dimensions[2]; sizeZ[0] = dimensions[3]; sizeC[0] = dimensions[4]; sizeT[0] = dimensions[5]; currentOrder[0] = order; store.setPixels( new Integer(dimensions[1]), // SizeX new Integer(dimensions[2]), // SizeY new Integer(dimensions[3]), // SizeZ new Integer(dimensions[4]), // SizeC new Integer(dimensions[5]), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian ord, // DimensionOrder null); // Use index 0 }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/f900d398818eefec3108ce2138214e42901a0aa0/ICSReader.java/clean/loci/formats/in/ICSReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
514,
277,
2143,
548,
273,
612,
16,
3258,
548,
273,
612,
31,
565,
509,
3928,
273,
612,
18,
2722,
31985,
2932,
1199,
1769,
565,
514,
1110,
273,
3928,
411,
374,
692,
1408,
294,
612,
18,
28023,
12,
9811,
397,
404,
2934,
869,
5630,
5621,
565,
309,
12,
408,
18,
14963,
2932,
2102,
6,
3719,
288,
1377,
368,
1765,
385,
358,
463,
15255,
434,
648,
1377,
1149,
8526,
276,
273,
3258,
548,
18,
869,
15936,
5621,
1377,
276,
63,
71,
18,
2469,
300,
576,
3737,
15,
31,
1377,
3258,
548,
273,
394,
514,
12,
71,
1769,
565,
289,
565,
469,
309,
12,
408,
18,
14963,
2932,
2232,
6,
3719,
288,
1377,
368,
1765,
463,
358,
385,
15255,
434,
648,
1377,
1149,
8526,
276,
273,
277,
2143,
548,
18,
869,
15936,
5621,
1377,
276,
63,
71,
18,
2469,
300,
576,
65,
413,
31,
1377,
612,
273,
277,
2143,
548,
273,
394,
514,
12,
71,
1769,
565,
289,
565,
309,
261,
2102,
548,
422,
446,
13,
604,
394,
4077,
503,
2932,
2279,
467,
4596,
585,
1392,
1199,
1769,
565,
1387,
277,
2143,
812,
273,
394,
1387,
12,
2102,
548,
1769,
565,
309,
16051,
2102,
812,
18,
1808,
10756,
604,
394,
4077,
503,
2932,
28919,
585,
486,
1392,
1199,
1769,
565,
368,
866,
309,
732,
1240,
279,
331,
22,
467,
4596,
585,
565,
8072,
26933,
284,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
514,
277,
2143,
548,
273,
612,
16,
3258,
548,
273,
612,
31,
565,
509,
3928,
273,
612,
18,
2722,
31985,
2932,
1199,
1769,
565,
514,
1110,
273,
3928,
411,
374,
692,
1408,
294,
612,
18,
28023,
12,
9811,
397,
404,
2934,
869,
5630,
5621,
565,
309,
12,
408,
18,
14963,
2932,
2102,
6,
3719,
288,
1377,
368,
1765,
385,
358,
463,
15255,
434,
648,
1377,
1149,
8526,
276,
273,
3258,
548,
18,
869,
15936,
5621,
1377,
276,
63,
71,
18,
2469,
300,
576,
3737,
15,
31,
1377,
3258,
548,
273,
394,
514,
12,
71,
1769,
2
] |
public void actionPerformed(GridSphereEvent event) throws PortletLayoutException, IOException { //System.err.println("in action performed portlet frame: " + portletClass); super.actionPerformed(event); User user = event.getPortletRequest().getUser(); // do role checking if user is logged in /* if (!(user instanceof GuestUser)) { boolean hasrole = aclService.hasRequiredRole(user, portletClass); System.err.println("hasRole = " + hasrole); if (!hasrole) return; } */ PortletRequest request = event.getPortletRequest(); if ((titleBar != null) && (!hasTitleBarEvent)) { titleBar.setActive(true); PortletTitleBarEvent tbEvent = new PortletTitleBarEventImpl(titleBar, event, COMPONENT_ID); if (tbEvent.getAction() != null) { hasTitleBarEvent = true; titleBar.actionPerformed(event); } } hasTitleBarEvent = false; PortletComponentEvent titleBarEvent = event.getLastRenderEvent(); if ((titleBarEvent != null) && (titleBarEvent instanceof PortletTitleBarEvent)) { PortletTitleBarEvent tbEvt = (PortletTitleBarEvent) titleBarEvent; if (titleBarEvent.getAction() == PortletTitleBarEvent.TitleBarAction.WINDOW_MODIFY) { PortletWindow.State state = tbEvt.getState(); PortletFrameEventImpl frameEvent = null; if (state == PortletWindow.State.MINIMIZED) { renderPortlet = false; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_MINIMIZED, COMPONENT_ID); } else if (state == PortletWindow.State.RESIZING) { renderPortlet = true; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_RESTORED, COMPONENT_ID); frameEvent.setOriginalWidth(originalWidth); } else if (state == PortletWindow.State.MAXIMIZED) { renderPortlet = true; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_MAXIMIZED, COMPONENT_ID); } else if (state == PortletWindow.State.CLOSED) { renderPortlet = true; isClosing = true; // remove cached output String id = event.getPortletRequest().getPortletSession(true).getId(); cacheService.removeCached(portletClass + id); // check for portlet closing action if (event.hasAction()) { if (event.getAction().getName().equals(FRAME_CLOSE_OK_ACTION)) { isClosing = false; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_CLOSED, COMPONENT_ID); request.setAttribute(SportletProperties.INIT_PAGE, "true"); } if (event.getAction().getName().equals(FRAME_CLOSE_CANCEL_ACTION)) { isClosing = false; } } } List slisteners = Collections.synchronizedList(listeners); synchronized (slisteners) { Iterator it = slisteners.iterator(); PortletComponent comp; while (it.hasNext()) { comp = (PortletComponent) it.next(); event.addNewRenderEvent(frameEvent); comp.actionPerformed(event); } } } } else { // process events PortletRequest req = event.getPortletRequest(); req.setAttribute(SportletProperties.COMPONENT_ID, componentIDStr); //PortletRole role = req.getRole(); //if (role.compare(role, requiredRole) < 0) return; PortletResponse res = event.getPortletResponse(); req.setAttribute(SportletProperties.PORTLETID, portletClass); // Override if user is a guest //Uuser = req.getUser(); if (user instanceof GuestUser) { req.setMode(Portlet.Mode.VIEW); } else { if (titleBar != null) { Portlet.Mode mode = titleBar.getPortletMode(); //System.err.println("setting mode in " + portletClass + " to " + mode.toString()); req.setMode(mode); } else { req.setMode(Portlet.Mode.VIEW); } } // Set the portlet data /* PortletData data = null; if (!(user instanceof GuestUser)) { try { data = dataManager.getPortletData(req.getUser(), portletClass); req.setAttribute(SportletProperties.PORTLET_DATA, data); } catch (PersistenceManagerException e) { errorFrame.setError("Unable to retrieve user's portlet data!", e); } } */ // now perform actionPerformed on Portlet if it has an action if (titleBar != null) titleBar.setPortletMode(req.getMode()); // remove cached output String id = req.getPortletSession(true).getId(); cacheService.removeCached(portletClass + id); //System.err.println("in PortletFrame action invoked for " + portletClass); if (event.hasAction() && (!event.getAction().getName().equals(FRAME_CLOSE_OK_ACTION)) && (!event.getAction().getName().equals(FRAME_CLOSE_CANCEL_ACTION))) { DefaultPortletAction action = event.getAction(); //if (!action.getName().equals("")) { // role checking // given a portlet class, we get groups with that class try { PortletInvoker.actionPerformed(portletClass, action, req, res); } catch (Exception e) { errorFrame.setException(e); } String message = (String) req.getAttribute(SportletProperties.PORTLETERROR + portletClass); if (message != null) { errorFrame.setMessage(message); } //} // in case portlet mode got reset } List slisteners = Collections.synchronizedList(listeners); synchronized (slisteners) { Iterator it = slisteners.iterator(); PortletComponent comp; while (it.hasNext()) { comp = (PortletComponent) it.next(); event.addNewRenderEvent(titleBarEvent); comp.actionPerformed(event); } } } }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/e91e8e17f15c15edf53ccbebbb3752c2d318fef0/PortletFrame.java/buggy/src/org/gridlab/gridsphere/layout/PortletFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
918,
225,
26100,
12,
6313,
22747,
1133,
225,
871,
13,
225,
1216,
225,
21305,
3744,
503,
16,
225,
1860,
225,
288,
7734,
368,
3163,
18,
370,
18,
8222,
2932,
267,
225,
1301,
225,
9591,
225,
13114,
225,
2623,
30,
225,
315,
225,
397,
225,
13114,
797,
1769,
7734,
2240,
18,
1128,
13889,
12,
2575,
1769,
7734,
2177,
225,
729,
225,
273,
225,
871,
18,
588,
18566,
691,
7675,
588,
1299,
5621,
7734,
368,
225,
741,
225,
2478,
225,
6728,
225,
309,
225,
729,
225,
353,
225,
7545,
225,
316,
2868,
1748,
7734,
309,
225,
16051,
12,
1355,
225,
1276,
225,
6467,
395,
1299,
3719,
225,
288,
13491,
1250,
225,
711,
4615,
225,
273,
225,
7895,
1179,
18,
5332,
3705,
2996,
12,
1355,
16,
225,
13114,
797,
1769,
13491,
2332,
18,
370,
18,
8222,
2932,
5332,
2996,
225,
273,
225,
315,
225,
397,
225,
711,
4615,
1769,
13491,
309,
225,
16051,
5332,
4615,
13,
225,
327,
31,
7734,
289,
5375,
1195,
7734,
21305,
691,
225,
590,
225,
273,
225,
871,
18,
588,
18566,
691,
5621,
7734,
309,
225,
14015,
2649,
5190,
225,
480,
225,
446,
13,
225,
597,
225,
16051,
5332,
4247,
5190,
1133,
3719,
225,
288,
13491,
2077,
5190,
18,
542,
3896,
12,
3767,
1769,
13491,
21305,
4247,
5190,
1133,
225,
8739,
1133,
225,
273,
225,
394,
225,
21305,
4247,
5190,
1133,
2828,
12,
2649,
5190,
16,
225,
871,
16,
225,
13846,
15624,
67,
734,
1769,
13491,
309,
225,
261,
18587,
1133,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
918,
225,
26100,
12,
6313,
22747,
1133,
225,
871,
13,
225,
1216,
225,
21305,
3744,
503,
16,
225,
1860,
225,
288,
7734,
368,
3163,
18,
370,
18,
8222,
2932,
267,
225,
1301,
225,
9591,
225,
13114,
225,
2623,
30,
225,
315,
225,
397,
225,
13114,
797,
1769,
7734,
2240,
18,
1128,
13889,
12,
2575,
1769,
7734,
2177,
225,
729,
225,
273,
225,
871,
18,
588,
18566,
691,
7675,
588,
1299,
5621,
7734,
368,
225,
741,
225,
2478,
225,
6728,
225,
309,
225,
729,
225,
353,
225,
7545,
225,
316,
2868,
1748,
7734,
309,
225,
16051,
12,
1355,
225,
1276,
225,
6467,
395,
1299,
3719,
225,
288,
13491,
1250,
225,
711,
4615,
225,
273,
225,
7895,
1179,
2
] |
||
public void writeGraph( String mergedGraphml_ ) { StringBuffer sourceFile = new StringBuffer(); try { FileWriter file = new FileWriter( mergedGraphml_ ); sourceFile.append( "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" ); sourceFile.append( "<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns/graphml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns/graphml http://www.yworks.com/xml/schema/graphml/1.0/ygraphml.xsd\" xmlns:y=\"http://www.yworks.com/xml/graphml\">\n" ); sourceFile.append( " <key id=\"d0\" for=\"node\" yfiles.type=\"nodegraphics\"/>\n" ); sourceFile.append( " <key id=\"d1\" for=\"edge\" yfiles.type=\"edgegraphics\"/>\n" ); sourceFile.append( " <graph id=\"G\" edgedefault=\"directed\">\n" ); int numVertices = _graph.getVertices().size(); Indexer id = Indexer.getAndUpdateIndexer( _graph ); for ( int i = 0; i < numVertices; i++ ) { Vertex v = (Vertex) id.getVertex(i); int vId = i+1; sourceFile.append( " <node id=\"n" + vId + "\">\n" ); sourceFile.append( " <data key=\"d0\" >\n" ); sourceFile.append( " <y:ShapeNode >\n" ); sourceFile.append( " <y:Geometry x=\"241.875\" y=\"158.701171875\" width=\"95.0\" height=\"30.0\"/>\n" ); sourceFile.append( " <y:Fill color=\"#CCCCFF\" transparent=\"false\"/>\n" ); sourceFile.append( " <y:BorderStyle type=\"line\" width=\"1.0\" color=\"#000000\" />\n" ); sourceFile.append( " <y:NodeLabel x=\"1.5\" y=\"5.6494140625\" width=\"92.0\" height=\"18.701171875\" visible=\"true\" alignment=\"center\" fontFamily=\"Dialog\" fontSize=\"12\" fontStyle=\"plain\" textColor=\"#000000\" modelName=\"internal\" modelPosition=\"c\" autoSizePolicy=\"content\">" + v.getUserDatum( LABEL_KEY ) + "</y:NodeLabel>\n" ); sourceFile.append( " <y:Shape type=\"rectangle\"/>\n" ); sourceFile.append( " </y:ShapeNode>\n" ); sourceFile.append( " </data>\n" ); sourceFile.append( " </node>\n" ); } int i = 0; for ( Iterator edgeIterator = _graph.getEdges().iterator(); edgeIterator.hasNext(); ) { Edge e = (Edge) edgeIterator.next(); Pair p = e.getEndpoints(); Vertex src = (Vertex) p.getFirst(); Vertex dest = (Vertex) p.getSecond(); int srcId = id.getIndex(src)+1; int destId = id.getIndex(dest)+1; int nId = ++i; sourceFile.append( " <edge id=\"" + nId + "\" source=\"n" + srcId + "\" target=\"n" + destId + "\">\n" ); sourceFile.append( " <data key=\"d1\" >\n" ); sourceFile.append( " <y:PolyLineEdge >\n" ); sourceFile.append( " <y:Path sx=\"-23.75\" sy=\"15.0\" tx=\"-23.75\" ty=\"-15.0\">\n" ); sourceFile.append( " <y:Point x=\"273.3125\" y=\"95.0\"/>\n" ); sourceFile.append( " <y:Point x=\"209.5625\" y=\"95.0\"/>\n" ); sourceFile.append( " <y:Point x=\"209.5625\" y=\"143.701171875\"/>\n" ); sourceFile.append( " <y:Point x=\"265.625\" y=\"143.701171875\"/>\n" ); sourceFile.append( " </y:Path>\n" ); sourceFile.append( " <y:LineStyle type=\"line\" width=\"1.0\" color=\"#000000\" />\n" ); sourceFile.append( " <y:Arrows source=\"none\" target=\"standard\"/>\n" ); sourceFile.append( " <y:EdgeLabel x=\"-148.25\" y=\"30.000000000000014\" width=\"169.0\" height=\"18.701171875\" visible=\"true\" alignment=\"center\" fontFamily=\"Dialog\" fontSize=\"12\" fontStyle=\"plain\" textColor=\"#000000\" modelName=\"free\" modelPosition=\"anywhere\" preferredPlacement=\"on_edge\" distance=\"2.0\" ratio=\"0.5\">" + e.getUserDatum( LABEL_KEY ) + "</y:EdgeLabel>\n" ); sourceFile.append( " <y:BendStyle smoothed=\"false\"/>\n" ); sourceFile.append( " </y:PolyLineEdge>\n" ); sourceFile.append( " </data>\n" ); sourceFile.append( " </edge>\n" ); } sourceFile.append( " </graph>\n" ); sourceFile.append( "</graphml>\n" ); file.write( sourceFile.toString() ); file.flush(); _logger.info( "Wrote: " + mergedGraphml_ ); } catch (IOException e) { e.printStackTrace(); } }
|
54457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54457/4d22840dae349fccc763d621c45be8eacebe533e/ModelBasedTesting.java/clean/mbt/src/org/tigris/mbt/ModelBasedTesting.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
4137,
12,
514,
5384,
4137,
781,
67,
262,
202,
95,
202,
202,
780,
1892,
16338,
273,
394,
6674,
5621,
202,
202,
698,
288,
1082,
202,
812,
2289,
585,
273,
394,
24639,
12,
5384,
4137,
781,
67,
11272,
25083,
202,
3168,
812,
18,
6923,
12,
20410,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
12609,
17,
17258,
17,
21,
2412,
35,
5333,
82,
6,
11272,
1082,
202,
3168,
812,
18,
6923,
12,
3532,
4660,
781,
12302,
5189,
2505,
2207,
4660,
781,
18,
4660,
9446,
310,
18,
3341,
19,
16741,
19,
4660,
781,
2412,
225,
12302,
30,
29262,
5189,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976,
21,
19,
4201,
3078,
17,
1336,
2412,
619,
7722,
30,
4821,
2735,
5189,
2505,
2207,
4660,
781,
18,
4660,
9446,
310,
18,
3341,
19,
16741,
19,
4660,
781,
1062,
2207,
5591,
18,
93,
18597,
18,
832,
19,
2902,
19,
4821,
19,
4660,
781,
19,
21,
18,
20,
19,
4338,
1483,
781,
18,
19144,
2412,
12302,
30,
93,
5189,
2505,
2207,
5591,
18,
93,
18597,
18,
832,
19,
2902,
19,
4660,
781,
28219,
82,
6,
11272,
1082,
202,
3168,
812,
18,
6923,
12,
315,
225,
411,
856,
612,
5189,
72,
20,
2412,
364,
5189,
2159,
2412,
677,
2354,
18,
723,
5189,
2159,
31586,
2412,
19,
5333,
82,
6,
11272,
1082,
202,
3168,
812,
18,
6923,
12,
315,
225,
411,
856,
612,
5189,
72,
21,
2412,
364,
5189,
7126,
2412,
677,
2354,
18,
723,
5189,
7126,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1045,
4137,
12,
514,
5384,
4137,
781,
67,
262,
202,
95,
202,
202,
780,
1892,
16338,
273,
394,
6674,
5621,
202,
202,
698,
288,
1082,
202,
812,
2289,
585,
273,
394,
24639,
12,
5384,
4137,
781,
67,
11272,
25083,
202,
3168,
812,
18,
6923,
12,
20410,
2902,
1177,
5189,
21,
18,
20,
2412,
2688,
5189,
12609,
17,
17258,
17,
21,
2412,
35,
5333,
82,
6,
11272,
1082,
202,
3168,
812,
18,
6923,
12,
3532,
4660,
781,
12302,
5189,
2505,
2207,
4660,
781,
18,
4660,
9446,
310,
18,
3341,
19,
16741,
19,
4660,
781,
2412,
225,
12302,
30,
29262,
5189,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976,
21,
19,
4201,
3078,
17,
1336,
2
] |
||
IWorkingSet[] result = dialog.getSelection(); if (result != null && result.length > 0) { workbenchPage.setWorkingSet(result[0]);
|
if (dialog.open() == Window.OK) { IWorkingSet[] result = dialog.getSelection(); if (result != null && result.length > 0) { workbenchPage.setWorkingSet(result[0]); } else { workbenchPage.setWorkingSet(null); }
|
public void run() { if (window != null) { IWorkbenchPage page = window.getActivePage(); IWorkingSetSelectionDialog dialog = WorkbenchPlugin.getDefault().getWorkingSetManager().createWorkingSetSelectionDialog(window.getShell(), false); IWorkingSet workingSet = page.getWorkingSet(); if (workingSet != null) { dialog.setSelection(new IWorkingSet[]{workingSet}); } if (dialog.open() == Window.OK && page instanceof WorkbenchPage) { WorkbenchPage workbenchPage = (WorkbenchPage) page; IWorkingSet[] result = dialog.getSelection(); if (result != null && result.length > 0) { workbenchPage.setWorkingSet(result[0]); } else { workbenchPage.setWorkingSet(null); } } }}
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/68db7969b09b5aae658489d49063ce265a3c41c3/SelectWorkingSetAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/SelectWorkingSetAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1086,
1435,
288,
202,
430,
261,
5668,
480,
446,
13,
288,
202,
202,
45,
2421,
22144,
1964,
1363,
273,
2742,
18,
588,
3896,
1964,
5621,
202,
202,
45,
14836,
694,
6233,
6353,
6176,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
14836,
694,
1318,
7675,
2640,
14836,
694,
6233,
6353,
12,
5668,
18,
588,
13220,
9334,
629,
1769,
202,
202,
45,
14836,
694,
5960,
694,
273,
1363,
18,
588,
14836,
694,
5621,
202,
202,
430,
261,
20478,
694,
480,
446,
13,
288,
1082,
202,
12730,
18,
542,
6233,
12,
2704,
467,
14836,
694,
63,
7073,
20478,
694,
22938,
202,
202,
97,
202,
202,
430,
261,
12730,
18,
3190,
1435,
422,
6076,
18,
3141,
597,
1363,
1276,
4147,
22144,
1964,
13,
288,
1082,
202,
2421,
22144,
1964,
1440,
22144,
1964,
273,
261,
2421,
22144,
1964,
13,
1363,
31,
1082,
202,
45,
14836,
694,
8526,
563,
273,
6176,
18,
588,
6233,
5621,
1082,
202,
430,
261,
2088,
480,
446,
597,
563,
18,
2469,
405,
374,
13,
288,
9506,
202,
1252,
22144,
1964,
18,
542,
14836,
694,
12,
2088,
63,
20,
19226,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
1252,
22144,
1964,
18,
542,
14836,
694,
12,
2011,
1769,
1082,
202,
97,
202,
202,
97,
202,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1086,
1435,
288,
202,
430,
261,
5668,
480,
446,
13,
288,
202,
202,
45,
2421,
22144,
1964,
1363,
273,
2742,
18,
588,
3896,
1964,
5621,
202,
202,
45,
14836,
694,
6233,
6353,
6176,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
14836,
694,
1318,
7675,
2640,
14836,
694,
6233,
6353,
12,
5668,
18,
588,
13220,
9334,
629,
1769,
202,
202,
45,
14836,
694,
5960,
694,
273,
1363,
18,
588,
14836,
694,
5621,
202,
202,
430,
261,
20478,
694,
480,
446,
13,
288,
1082,
202,
12730,
18,
542,
6233,
12,
2704,
467,
14836,
694,
63,
7073,
20478,
694,
22938,
202,
202,
97,
202,
202,
430,
261,
12730,
18,
3190,
1435,
422,
6076,
18,
3141,
597,
1363,
1276,
2
] |
return RubyString.newString(recv.getRuntime(), "nil");
|
return recv.getRuntime().newString("nil");
|
public static RubyString inspect(IRubyObject recv) { return RubyString.newString(recv.getRuntime(), "nil"); }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNil.java/buggy/src/org/jruby/RubyNil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
5334,
12,
7937,
10340,
921,
10665,
13,
288,
3639,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
2932,
20154,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
5334,
12,
7937,
10340,
921,
10665,
13,
288,
3639,
327,
10665,
18,
588,
5576,
7675,
2704,
780,
2932,
20154,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
binaryReply response = submit();
|
RawReply response = submit();
|
private void p_invoke() throws SystemException, ForwardRequest { binaryReply response = submit(); if (m_rph == null) m_rph = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); m_rph.read(input); // The stream must be aligned sinve v1.2, but only once. boolean align = response.header.version.since_inclusive(1, 2); switch (m_rph.reply_status) { case ReplyHeader.NO_EXCEPTION : NamedValue arg; // Read return value, if set. if (m_result != null) { if (align) { input.align(8); align = false; } m_result.value().read_value(input, m_result.value().type()); } // Read returned parameters, if set. if (m_args != null) for (int i = 0; i < m_args.count(); i++) { try { arg = m_args.item(i); // Both ARG_INOUT and ARG_OUT have this binary flag set. if ((arg.flags() & ARG_OUT.value) != 0) { if (align) { input.align(8); align = false; } arg.value().read_value(input, arg.value().type()); } } catch (Bounds ex) { Unexpected.error(ex); } } if (m_interceptor != null) m_interceptor.receive_reply(m_info); break; case ReplyHeader.SYSTEM_EXCEPTION : if (align) { input.align(8); align = false; } readExceptionId(input); m_sys_ex = ObjectCreator.readSystemException(input, m_rph.service_context); m_environment.exception(m_sys_ex); if (m_interceptor != null) m_interceptor.receive_exception(m_info); throw m_sys_ex; case ReplyHeader.USER_EXCEPTION : if (align) { input.align(8); align = false; } readExceptionId(input); // Prepare an Any that will hold the exception. gnuAny exc = new gnuAny(); exc.setOrb(orb); exc.insert_Streamable(new streamReadyHolder(input)); UnknownUserException unuex = new UnknownUserException(exc); m_environment.exception(unuex); if (m_interceptor != null) m_interceptor.receive_exception(m_info); break; case ReplyHeader.LOCATION_FORWARD_PERM : case ReplyHeader.LOCATION_FORWARD : if (response.header.version.since_inclusive(1, 2)) input.align(8); IOR forwarded = new IOR(); try { forwarded._read_no_endian(input); } catch (IOException ex) { new MARSHAL("Cant read forwarding info", 5103, CompletionStatus.COMPLETED_NO); } setIor(forwarded); m_forward_ior = forwarded; if (m_interceptor != null) m_interceptor.receive_other(m_info); // Repeat with the forwarded information. p_invoke(); return; default : throw new MARSHAL("Unknow reply status", 8100 + m_rph.reply_status, CompletionStatus.COMPLETED_NO); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
293,
67,
14407,
1435,
565,
1216,
26731,
16,
17206,
691,
225,
288,
565,
6576,
7817,
766,
273,
4879,
5621,
565,
309,
261,
81,
67,
86,
844,
422,
446,
13,
1377,
312,
67,
86,
844,
273,
766,
18,
3374,
18,
2640,
67,
10629,
67,
3374,
5621,
565,
276,
3069,
5503,
1210,
810,
273,
766,
18,
588,
1228,
5621,
565,
810,
18,
542,
1162,
70,
12,
16640,
1769,
565,
312,
67,
86,
844,
18,
896,
12,
2630,
1769,
565,
368,
1021,
1407,
1297,
506,
13939,
5367,
537,
331,
21,
18,
22,
16,
1496,
1338,
3647,
18,
565,
1250,
5689,
273,
766,
18,
3374,
18,
1589,
18,
9256,
67,
267,
9173,
12,
21,
16,
576,
1769,
565,
1620,
261,
81,
67,
86,
844,
18,
10629,
67,
2327,
13,
1377,
288,
3639,
648,
16202,
1864,
18,
3417,
67,
12658,
294,
1850,
9796,
620,
1501,
31,
1850,
368,
2720,
327,
460,
16,
309,
444,
18,
1850,
309,
261,
81,
67,
2088,
480,
446,
13,
5411,
288,
2868,
309,
261,
7989,
13,
7734,
288,
5375,
810,
18,
7989,
12,
28,
1769,
5375,
5689,
273,
629,
31,
7734,
289,
2868,
312,
67,
2088,
18,
1132,
7675,
896,
67,
1132,
12,
2630,
16,
312,
67,
2088,
18,
1132,
7675,
723,
10663,
5411,
289,
1850,
368,
2720,
2106,
1472,
16,
309,
444,
18,
1850,
309,
261,
81,
67,
1968,
480,
446,
13,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
1968,
18,
1883,
5621,
277,
27245,
2868,
288,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
293,
67,
14407,
1435,
565,
1216,
26731,
16,
17206,
691,
225,
288,
565,
6576,
7817,
766,
273,
4879,
5621,
565,
309,
261,
81,
67,
86,
844,
422,
446,
13,
1377,
312,
67,
86,
844,
273,
766,
18,
3374,
18,
2640,
67,
10629,
67,
3374,
5621,
565,
276,
3069,
5503,
1210,
810,
273,
766,
18,
588,
1228,
5621,
565,
810,
18,
542,
1162,
70,
12,
16640,
1769,
565,
312,
67,
86,
844,
18,
896,
12,
2630,
1769,
565,
368,
1021,
1407,
1297,
506,
13939,
5367,
537,
331,
21,
18,
22,
16,
1496,
1338,
3647,
18,
565,
1250,
5689,
273,
766,
18,
3374,
18,
1589,
18,
9256,
67,
267,
9173,
12,
21,
16,
576,
1769,
565,
1620,
261,
2
] |
int maxRows = stmt.getMaxRows();
|
final int maxRows = stmt.getMaxRows();
|
void checkMaxRows(java.sql.Statement stmt) throws java.sql.SQLException, TdsException { if (stmt == null) { // internal usage return; } int maxRows = stmt.getMaxRows(); if ( maxRows != this.maxRows) { submitProcedure("set rowcount " + maxRows, new SQLWarningChain()); this.maxRows = maxRows; } }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d40d3f03f21e7087ea2cd7d2b5b43625542770cc/Tds.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
866,
2747,
4300,
12,
6290,
18,
4669,
18,
3406,
3480,
13,
2398,
1216,
2252,
18,
4669,
18,
23116,
16,
399,
2377,
503,
565,
288,
3639,
309,
261,
10589,
422,
446,
13,
288,
368,
2713,
4084,
5411,
327,
31,
3639,
289,
3639,
727,
509,
943,
4300,
273,
3480,
18,
588,
2747,
4300,
5621,
3639,
309,
261,
943,
4300,
480,
333,
18,
1896,
4300,
13,
288,
5411,
4879,
17213,
2932,
542,
1027,
1883,
315,
397,
943,
4300,
16,
394,
3063,
6210,
3893,
10663,
5411,
333,
18,
1896,
4300,
273,
943,
4300,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
866,
2747,
4300,
12,
6290,
18,
4669,
18,
3406,
3480,
13,
2398,
1216,
2252,
18,
4669,
18,
23116,
16,
399,
2377,
503,
565,
288,
3639,
309,
261,
10589,
422,
446,
13,
288,
368,
2713,
4084,
5411,
327,
31,
3639,
289,
3639,
727,
509,
943,
4300,
273,
3480,
18,
588,
2747,
4300,
5621,
3639,
309,
261,
943,
4300,
480,
333,
18,
1896,
4300,
13,
288,
5411,
4879,
17213,
2932,
542,
1027,
1883,
315,
397,
943,
4300,
16,
394,
3063,
6210,
3893,
10663,
5411,
333,
18,
1896,
4300,
273,
943,
4300,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new SQLException(pg_stream.ReceiveString(4096));
|
throw new SQLException(pg_stream.ReceiveString(receive_sbuf, 4096, getEncoding()));
|
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; encoding = info.getProperty("charSet"); // could be null // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString (4096, getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString (4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(4096)); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // firstWarning = null; ExecSQL("set datestyle to 'ISO'"); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/f41dcbe4d810f0906f43d1b345cf506d72c792ac/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5466,
8863,
3639,
333,
67,
7407,
273,
302,
31,
565,
333,
67,
718,
273,
880,
31,
565,
22116,
67,
22366,
273,
2063,
31,
565,
22116,
67,
13784,
273,
1123,
18,
588,
1396,
2932,
3664,
8863,
565,
22116,
67,
4714,
273,
1123,
18,
588,
1396,
2932,
1355,
8863,
565,
22116,
67,
6354,
273,
1756,
31,
565,
22116,
67,
8908,
273,
1479,
31,
565,
22116,
67,
8608,
273,
20695,
67,
16234,
31,
565,
2688,
273,
1123,
18,
588,
1396,
2932,
3001,
694,
8863,
225,
368,
3377,
506,
446,
3639,
368,
4494,
1221,
326,
2172,
1459,
565,
775,
1377,
288,
202,
8365,
67,
3256,
273,
394,
22116,
67,
1228,
12,
2564,
16,
1756,
1769,
1377,
289,
1044,
261,
5215,
503,
276,
338,
13,
288,
202,
759,
25808,
635,
453,
847,
13076,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
2
] |
m = Helper.getMemberBySubject(nrs, subj1);
|
m = Helper.getMemberBySubject(nrs, subj1);
|
protected void setUp () { Db.refreshDb(); s = SessionHelper.getRootSession(); nrs = SessionHelper.getSession(SubjectHelper.SUBJ0_ID); root = StemHelper.findRootStem(s); edu = StemHelper.addChildStem(root, "edu", "educational"); i2 = StemHelper.addChildGroup(edu, "i2", "internet2"); uofc = StemHelper.addChildGroup(edu, "uofc", "uchicago"); subj0 = SubjectHelper.SUBJ0; subj1 = SubjectHelper.SUBJ1; m = Helper.getMemberBySubject(nrs, subj1); }
|
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/473d91a4aab6bcc7ec60568e2da0e57ed98d0cbb/TestPrivVIEW.java/buggy/grouper/src/tests/test/edu/internet2/middleware/grouper/TestPrivVIEW.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
24292,
1832,
288,
565,
8408,
18,
9144,
4331,
5621,
565,
272,
377,
273,
3877,
2276,
18,
588,
2375,
2157,
5621,
565,
290,
5453,
282,
273,
3877,
2276,
18,
588,
2157,
12,
6638,
2276,
18,
8362,
46,
20,
67,
734,
1769,
565,
1365,
225,
273,
348,
874,
2276,
18,
4720,
2375,
28771,
12,
87,
1769,
565,
1675,
89,
282,
273,
348,
874,
2276,
18,
1289,
1763,
28771,
12,
3085,
16,
315,
28049,
3113,
315,
329,
5286,
8371,
8863,
565,
277,
22,
565,
273,
348,
874,
2276,
18,
1289,
1763,
1114,
12,
28049,
16,
315,
77,
22,
3113,
315,
267,
14726,
22,
8863,
565,
582,
792,
71,
225,
273,
348,
874,
2276,
18,
1289,
1763,
1114,
12,
28049,
16,
315,
89,
792,
71,
3113,
315,
2648,
335,
28768,
8863,
565,
15333,
20,
282,
273,
9912,
2276,
18,
8362,
46,
20,
31,
565,
15333,
21,
282,
273,
9912,
2276,
18,
8362,
46,
21,
31,
565,
312,
4202,
273,
9705,
18,
588,
4419,
858,
6638,
12,
82,
5453,
16,
15333,
21,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
24292,
1832,
288,
565,
8408,
18,
9144,
4331,
5621,
565,
272,
377,
273,
3877,
2276,
18,
588,
2375,
2157,
5621,
565,
290,
5453,
282,
273,
3877,
2276,
18,
588,
2157,
12,
6638,
2276,
18,
8362,
46,
20,
67,
734,
1769,
565,
1365,
225,
273,
348,
874,
2276,
18,
4720,
2375,
28771,
12,
87,
1769,
565,
1675,
89,
282,
273,
348,
874,
2276,
18,
1289,
1763,
28771,
12,
3085,
16,
315,
28049,
3113,
315,
329,
5286,
8371,
8863,
565,
277,
22,
565,
273,
348,
874,
2276,
18,
1289,
1763,
1114,
12,
28049,
16,
315,
77,
22,
3113,
315,
267,
14726,
22,
8863,
565,
582,
792,
71,
225,
273,
348,
874,
2276,
18,
1289,
1763,
1114,
12,
28049,
2
] |
public static Date fromDate(byte src[], int offset) throws IllegalArgumentException { long when = fromLong(src, offset, DATE_LENGTH); if (when <= 0) return null; else return new Date(when);
|
public static Date fromDate(byte src[], int offset) throws DataFormatException { if ( (src == null) || (offset + DATE_LENGTH > src.length) ) throw new DataFormatException("Not enough data to read a date"); try { long when = fromLong(src, offset, DATE_LENGTH); if (when <= 0) return null; else return new Date(when); } catch (IllegalArgumentException iae) { throw new DataFormatException(iae.getMessage()); }
|
public static Date fromDate(byte src[], int offset) throws IllegalArgumentException { long when = fromLong(src, offset, DATE_LENGTH); if (when <= 0) return null; else return new Date(when); }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/1107e50108f2845c6b117044e0ab95019b20a309/DataHelper.java/clean/core/java/src/net/i2p/data/DataHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2167,
628,
1626,
12,
7229,
1705,
63,
6487,
509,
1384,
13,
1216,
2754,
288,
3639,
1525,
1347,
273,
628,
3708,
12,
4816,
16,
1384,
16,
11457,
67,
7096,
1769,
3639,
309,
261,
13723,
1648,
374,
13,
2398,
327,
446,
31,
3639,
469,
5411,
327,
394,
2167,
12,
13723,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2167,
628,
1626,
12,
7229,
1705,
63,
6487,
509,
1384,
13,
1216,
2754,
288,
3639,
1525,
1347,
273,
628,
3708,
12,
4816,
16,
1384,
16,
11457,
67,
7096,
1769,
3639,
309,
261,
13723,
1648,
374,
13,
2398,
327,
446,
31,
3639,
469,
5411,
327,
394,
2167,
12,
13723,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
packetWriter.setWriter(writer); packetWriter.openStream(); } catch (Exception e) { packetReader.notifyConnectionError(e); }
|
packetWriter.setWriter(writer); packetWriter.openStream();
|
void proceedTLSReceived() { try { SSLContext context = SSLContext.getInstance("TLS"); // Accept any certificate presented by the server context.init(null, // KeyManager not required new javax.net.ssl.TrustManager[] { new OpenTrustManager() }, new java.security.SecureRandom()); Socket plain = socket; // Secure the plain connection socket = context.getSocketFactory().createSocket(plain, plain.getInetAddress().getHostName(), plain.getPort(), true); socket.setSoTimeout(0); socket.setKeepAlive(true); // Initialize the reader and writer with the new secured version initReaderAndWriter(); // Proceed to do the handshake ((SSLSocket)socket).startHandshake(); // Set that TLS was successful usingTLS = true; // Set the new writer to use packetWriter.setWriter(writer); // Send a new opening stream to the server packetWriter.openStream(); } catch (Exception e) { packetReader.notifyConnectionError(e); } }
|
7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/e90dbbde8b4f5f9b6d36d439605e3b0c84eb42b3/XMPPConnection.java/buggy/source/org/jivesoftware/smack/XMPPConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11247,
9905,
8872,
1435,
288,
3639,
775,
288,
5411,
26886,
819,
273,
26886,
18,
588,
1442,
2932,
9905,
8863,
5411,
368,
8662,
1281,
4944,
31280,
635,
326,
1438,
5411,
819,
18,
2738,
12,
2011,
16,
368,
1929,
1318,
486,
1931,
10792,
394,
6863,
18,
2758,
18,
8157,
18,
14146,
1318,
8526,
288,
394,
3502,
14146,
1318,
1435,
19879,
10792,
394,
2252,
18,
7462,
18,
12834,
8529,
10663,
5411,
8758,
7351,
273,
2987,
31,
5411,
368,
15653,
326,
7351,
1459,
5411,
2987,
273,
819,
18,
588,
4534,
1733,
7675,
2640,
4534,
12,
7446,
16,
10792,
7351,
18,
588,
382,
278,
1887,
7675,
588,
20946,
9334,
7351,
18,
588,
2617,
9334,
638,
1769,
5411,
2987,
18,
542,
10225,
2694,
12,
20,
1769,
5411,
2987,
18,
542,
24456,
12,
3767,
1769,
5411,
368,
9190,
326,
2949,
471,
2633,
598,
326,
394,
1428,
2862,
1177,
5411,
1208,
2514,
1876,
2289,
5621,
5411,
368,
1186,
5288,
358,
741,
326,
11942,
5411,
14015,
1260,
25831,
13,
7814,
2934,
1937,
14545,
5621,
5411,
368,
1000,
716,
8098,
1703,
6873,
5411,
1450,
9905,
273,
638,
31,
5411,
368,
1000,
326,
394,
225,
2633,
358,
999,
5411,
4414,
2289,
18,
542,
2289,
12,
6299,
1769,
5411,
368,
2479,
279,
394,
10890,
1407,
358,
326,
1438,
5411,
4414,
2289,
18,
3190,
1228,
5621,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
4414,
2514,
18,
12336,
28371,
12,
73,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
11247,
9905,
8872,
1435,
288,
3639,
775,
288,
5411,
26886,
819,
273,
26886,
18,
588,
1442,
2932,
9905,
8863,
5411,
368,
8662,
1281,
4944,
31280,
635,
326,
1438,
5411,
819,
18,
2738,
12,
2011,
16,
368,
1929,
1318,
486,
1931,
10792,
394,
6863,
18,
2758,
18,
8157,
18,
14146,
1318,
8526,
288,
394,
3502,
14146,
1318,
1435,
19879,
10792,
394,
2252,
18,
7462,
18,
12834,
8529,
10663,
5411,
8758,
7351,
273,
2987,
31,
5411,
368,
15653,
326,
7351,
1459,
5411,
2987,
273,
819,
18,
588,
4534,
1733,
7675,
2640,
4534,
12,
7446,
16,
10792,
7351,
18,
588,
382,
278,
1887,
7675,
588,
20946,
9334,
7351,
18,
588,
2617,
9334,
638,
1769,
5411,
2987,
18,
542,
10225,
2694,
2
] |
nextStates.add(CandidacySituationType.ADMITTED.toString()); nextStates.add(CandidacySituationType.NOT_ADMITTED.toString()); nextStates.add(CandidacySituationType.SUBSTITUTE.toString());
|
nextStates.add(CandidacySituationType.ADMITTED.toString()); nextStates.add(CandidacySituationType.NOT_ADMITTED.toString()); nextStates.add(CandidacySituationType.SUBSTITUTE.toString());
|
public Set<String> getValidNextStates() { Set<String> nextStates = new HashSet<String>(); nextStates.add(CandidacySituationType.REGISTERED.toString()); nextStates.add(CandidacySituationType.ADMITTED.toString()); nextStates.add(CandidacySituationType.NOT_ADMITTED.toString()); nextStates.add(CandidacySituationType.SUBSTITUTE.toString()); return nextStates; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/70d28b57a6a60f028c5ac856571d9723b2954b62/AdmittedCandidacySituation.java/clean/src/net/sourceforge/fenixedu/domain/candidacy/AdmittedCandidacySituation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
32,
780,
34,
22574,
2134,
7629,
1435,
288,
202,
694,
32,
780,
34,
1024,
7629,
273,
394,
6847,
32,
780,
34,
5621,
202,
4285,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
27511,
2056,
18,
10492,
10663,
565,
1024,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
1880,
6068,
6404,
18,
10492,
10663,
565,
1024,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
4400,
67,
1880,
6068,
6404,
18,
10492,
10663,
565,
1024,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
8362,
882,
1285,
9099,
18,
10492,
10663,
202,
2463,
1024,
7629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
32,
780,
34,
22574,
2134,
7629,
1435,
288,
202,
694,
32,
780,
34,
1024,
7629,
273,
394,
6847,
32,
780,
34,
5621,
202,
4285,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
27511,
2056,
18,
10492,
10663,
565,
1024,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
1880,
6068,
6404,
18,
10492,
10663,
565,
1024,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
4400,
67,
1880,
6068,
6404,
18,
10492,
10663,
565,
1024,
7629,
18,
1289,
12,
39,
3339,
3505,
55,
305,
11407,
559,
18,
8362,
882,
1285,
9099,
18,
10492,
10663,
202,
2463,
1024,
7629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
super(componentName);
|
super(id);
|
public UL(String componentName, List list, int level) { super(componentName); this.level = level; WebMarkupContainer ul = new WebMarkupContainer("ul"); ul.add(new AttributeModifier("id", true, new Model(getLevelAsString()))); Rows rows = new Rows("rows", list); ul.add(rows); add(ul); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/8b5b226048f476b89f4d032e96a0419b2e965170/MenuBorder.java/buggy/wicket-sandbox/src/eelco/java/navmenu/MenuBorder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
1071,
587,
48,
12,
780,
20577,
16,
987,
666,
16,
509,
1801,
13,
202,
565,
288,
202,
3639,
2240,
12,
4652,
461,
1769,
202,
3639,
333,
18,
2815,
273,
1801,
31,
202,
3639,
2999,
13111,
2170,
7493,
273,
394,
2999,
13111,
2170,
2932,
332,
8863,
202,
3639,
7493,
18,
1289,
12,
2704,
3601,
9829,
2932,
350,
3113,
638,
16,
394,
3164,
12,
588,
2355,
8092,
1435,
3719,
1769,
1082,
202,
4300,
2595,
273,
394,
17323,
2932,
3870,
3113,
666,
1769,
1082,
202,
332,
18,
1289,
12,
3870,
1769,
1082,
202,
1289,
12,
332,
1769,
202,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
1071,
587,
48,
12,
780,
20577,
16,
987,
666,
16,
509,
1801,
13,
202,
565,
288,
202,
3639,
2240,
12,
4652,
461,
1769,
202,
3639,
333,
18,
2815,
273,
1801,
31,
202,
3639,
2999,
13111,
2170,
7493,
273,
394,
2999,
13111,
2170,
2932,
332,
8863,
202,
3639,
7493,
18,
1289,
12,
2704,
3601,
9829,
2932,
350,
3113,
638,
16,
394,
3164,
12,
588,
2355,
8092,
1435,
3719,
1769,
1082,
202,
4300,
2595,
273,
394,
17323,
2932,
3870,
3113,
666,
1769,
1082,
202,
332,
18,
1289,
12,
3870,
1769,
1082,
202,
1289,
12,
332,
1769,
202,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else { threadLocal = m_joinPoints[joinPointIndex];
|
public final Object proceedWithCallJoinPoint(final int methodHash, final int joinPointIndex, final Object[] parameters, final Class targetClass, final Object targetInstance, final Class thisClass, final Object thisInstance, final String withinMethodName, final String withinMethodSignature, final int joinPointType) throws Throwable { ThreadLocal threadLocal; if ((joinPointIndex >= m_joinPoints.length) || (m_joinPoints[joinPointIndex] == null)) { MemberInfo withinMemberInfo = TransformationUtil.createMemberInfo(targetClass, withinMethodName, withinMethodSignature); s_registry.registerJoinPoint(joinPointType, methodHash, null, m_classHash, thisClass, withinMemberInfo, m_system); threadLocal = new ThreadLocal(); synchronized (m_joinPoints) { if (m_joinPoints.length <= joinPointIndex) { ThreadLocal[] tmp = new ThreadLocal[joinPointIndex + JOIN_POINT_INDEX_GROW_BLOCK]; java.lang.System.arraycopy(m_joinPoints, 0, tmp, 0, m_joinPoints.length); m_joinPoints = new ThreadLocal[joinPointIndex + JOIN_POINT_INDEX_GROW_BLOCK]; java.lang.System.arraycopy(tmp, 0, m_joinPoints, 0, tmp.length); } m_joinPoints[joinPointIndex] = threadLocal; } } else { threadLocal = m_joinPoints[joinPointIndex]; } JoinPointInfo joinPointInfo = (JoinPointInfo)threadLocal.get(); if (joinPointInfo == null) { joinPointInfo = new JoinPointInfo(); threadLocal.set(joinPointInfo); } // TODO: make diff between target and this instances if (ENABLE_JIT_COMPILATION && !joinPointInfo.isJitCompiled) { handleJitCompilation(methodHash, joinPointType, PointcutType.CALL, joinPointInfo, thisClass, m_targetClass, thisInstance, thisInstance); } JoinPoint joinPoint = joinPointInfo.joinPoint; // if null or redefined -> create a new join point and cache it if (joinPoint == null) { Map joinPointMetaDataMap = s_registry.getJoinPointMetaData(m_classHash, methodHash); JoinPointMetaData joinPointMetaData = (JoinPointMetaData)joinPointMetaDataMap.get(PointcutType.CALL); AdviceIndexInfo[] adviceIndexes = joinPointMetaData.adviceIndexes; List cflowExpressions = joinPointMetaData.cflowExpressions; Pointcut cflowPointcut = joinPointMetaData.cflowPointcut; initCflowManagement(cflowPointcut, joinPointInfo); switch (joinPointType) { case JoinPointType.METHOD_CALL: // TODO: make diff between target and this instances joinPoint = createMethodJoinPoint(methodHash, joinPointType, thisClass, adviceIndexes, joinPointMetaData, thisInstance, thisInstance); break; case JoinPointType.CONSTRUCTOR_CALL: // TODO: make diff between target and this instances joinPoint = createConstructorJoinPoint(methodHash, joinPointType, thisClass, adviceIndexes, joinPointMetaData, thisInstance, thisInstance); break; default: throw new RuntimeException("join point type not valid"); } // set the join point joinPointInfo.joinPoint = joinPoint; // update the state if (adviceIndexes.length == 0) { joinPointInfo.state = JoinPointState.ADVISED; } else { joinPointInfo.state = JoinPointState.HAS_ADVICES; } } joinPoint.setTargetInstance(thisInstance); if (parameters != null) { ((CodeRtti)joinPoint.getRtti()).setParameterValues(parameters); } exitCflow(joinPointInfo); final Object result = joinPoint.proceed(); enterCflow(joinPointInfo); return result; }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/d2f578587dcd54289cbfbc4c2364b26ec5866a2b/JoinPointManager.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/joinpoint/management/JoinPointManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1033,
11247,
1190,
1477,
4572,
2148,
12,
6385,
509,
707,
2310,
16,
727,
509,
1233,
2148,
1016,
16,
4766,
1171,
727,
1033,
8526,
1472,
16,
727,
1659,
14563,
16,
4766,
1171,
727,
1033,
1018,
1442,
16,
727,
1659,
333,
797,
16,
4766,
1171,
727,
1033,
333,
1442,
16,
727,
514,
3470,
11666,
16,
4766,
1171,
727,
514,
3470,
1305,
5374,
16,
727,
509,
1233,
2148,
559,
13,
4766,
1850,
1216,
4206,
288,
3639,
4884,
2042,
2650,
2042,
31,
3639,
309,
14015,
5701,
2148,
1016,
1545,
312,
67,
5701,
5636,
18,
2469,
13,
747,
261,
81,
67,
5701,
5636,
63,
5701,
2148,
1016,
65,
422,
446,
3719,
288,
5411,
8596,
966,
3470,
4419,
966,
273,
21274,
1304,
18,
2640,
4419,
966,
12,
3299,
797,
16,
3470,
11666,
16,
28524,
2868,
3470,
1305,
5374,
1769,
5411,
272,
67,
9893,
18,
4861,
4572,
2148,
12,
5701,
2148,
559,
16,
707,
2310,
16,
446,
16,
312,
67,
1106,
2310,
16,
333,
797,
16,
3470,
4419,
966,
16,
29159,
312,
67,
4299,
1769,
5411,
2650,
2042,
273,
394,
4884,
2042,
5621,
5411,
3852,
261,
81,
67,
5701,
5636,
13,
288,
7734,
309,
261,
81,
67,
5701,
5636,
18,
2469,
1648,
1233,
2148,
1016,
13,
288,
10792,
4884,
2042,
8526,
1853,
273,
394,
4884,
2042,
63,
5701,
2148,
1016,
397,
7645,
67,
8941,
67,
9199,
67,
43,
11226,
67,
11403,
15533,
10792,
2252,
18,
4936,
18,
3163,
18,
1126,
3530,
12,
81,
67,
5701,
5636,
16,
374,
16,
1853,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1033,
11247,
1190,
1477,
4572,
2148,
12,
6385,
509,
707,
2310,
16,
727,
509,
1233,
2148,
1016,
16,
4766,
1171,
727,
1033,
8526,
1472,
16,
727,
1659,
14563,
16,
4766,
1171,
727,
1033,
1018,
1442,
16,
727,
1659,
333,
797,
16,
4766,
1171,
727,
1033,
333,
1442,
16,
727,
514,
3470,
11666,
16,
4766,
1171,
727,
514,
3470,
1305,
5374,
16,
727,
509,
1233,
2148,
559,
13,
4766,
1850,
1216,
4206,
288,
3639,
4884,
2042,
2650,
2042,
31,
3639,
309,
14015,
5701,
2148,
1016,
1545,
312,
67,
5701,
5636,
18,
2469,
13,
747,
261,
81,
67,
5701,
5636,
63,
5701,
2148,
1016,
65,
422,
446,
3719,
288,
5411,
8596,
966,
3470,
4419,
966,
273,
21274,
1304,
2
] |
|
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); Clause tableClause = new Clause("PK.RDB$RELATION_NAME", table); String sql = GET_EXPORTED_KEYS_START; sql += tableClause.getCondition(); sql += GET_EXPORTED_KEYS_END; ArrayList params = new ArrayList(); if (!tableClause.getCondition().equals("")) { params.add(tableClause.getValue()); } ResultSet rs = c.doQuery(sql, params, statements); XSQLVAR[] xsqlvars = new XSQLVAR[14]; xsqlvars[0] = new XSQLVAR(); xsqlvars[0].sqltype = GDS.SQL_VARYING; xsqlvars[0].sqllen = 31; xsqlvars[0].sqlind = -1; xsqlvars[0].sqlname = "PKTABLE_CAT"; xsqlvars[0].relname = "COLUMNINFO"; xsqlvars[1] = new XSQLVAR(); xsqlvars[1].sqltype = GDS.SQL_VARYING; xsqlvars[1].sqllen = 31; xsqlvars[1].sqlind = -1; xsqlvars[1].sqlname = "PKTABLE_SCHEM"; xsqlvars[1].relname = "COLUMNINFO"; xsqlvars[2] = new XSQLVAR(); xsqlvars[2].sqltype = GDS.SQL_VARYING; xsqlvars[2].sqllen = 31; xsqlvars[2].sqlind = 0; xsqlvars[2].sqlname = "PKTABLE_NAME"; xsqlvars[2].relname = "COLUMNINFO"; xsqlvars[3] = new XSQLVAR(); xsqlvars[3].sqltype = GDS.SQL_VARYING; xsqlvars[3].sqllen = 31; xsqlvars[3].sqlind = 0; xsqlvars[3].sqlname = "PKCOLUMN_NAME"; xsqlvars[3].relname = "COLUMNINFO"; xsqlvars[4] = new XSQLVAR(); xsqlvars[4].sqltype = GDS.SQL_VARYING; xsqlvars[4].sqllen = 31; xsqlvars[4].sqlind = -1; xsqlvars[4].sqlname = "FKTABLE_CAT"; xsqlvars[4].relname = "COLUMNINFO"; xsqlvars[5] = new XSQLVAR(); xsqlvars[5].sqltype = GDS.SQL_VARYING; xsqlvars[5].sqllen = 31; xsqlvars[5].sqlind = -1; xsqlvars[5].sqlname = "FKTABLE_SCHEM"; xsqlvars[5].relname = "COLUMNINFO"; xsqlvars[6] = new XSQLVAR(); xsqlvars[6].sqltype = GDS.SQL_VARYING; xsqlvars[6].sqllen = 31; xsqlvars[6].sqlind = 0; xsqlvars[6].sqlname = "FKTABLE_NAME"; xsqlvars[6].relname = "COLUMNINFO"; xsqlvars[7] = new XSQLVAR(); xsqlvars[7].sqltype = GDS.SQL_VARYING; xsqlvars[7].sqllen = 31; xsqlvars[7].sqlind = 0; xsqlvars[7].sqlname = "FKCOLUMN_NAME"; xsqlvars[7].relname = "COLUMNINFO"; xsqlvars[8] = new XSQLVAR(); xsqlvars[8].sqltype = GDS.SQL_SHORT; xsqlvars[8].sqlname = "KEY_SEQ"; xsqlvars[8].relname = "COLUMNINFO"; xsqlvars[9] = new XSQLVAR(); xsqlvars[9].sqltype = GDS.SQL_SHORT; xsqlvars[9].sqlname = "UPDATE_RULE"; xsqlvars[9].relname = "COLUMNINFO"; xsqlvars[10] = new XSQLVAR(); xsqlvars[10].sqltype = GDS.SQL_SHORT; xsqlvars[10].sqlname = "DELETE_RULE"; xsqlvars[10].relname = "COLUMNINFO"; xsqlvars[11] = new XSQLVAR(); xsqlvars[11].sqltype = GDS.SQL_VARYING; xsqlvars[11].sqllen = 31; xsqlvars[11].sqlind = 0; xsqlvars[11].sqlname = "FK_NAME"; xsqlvars[11].relname = "COLUMNINFO"; xsqlvars[12] = new XSQLVAR(); xsqlvars[12].sqltype = GDS.SQL_VARYING; xsqlvars[12].sqllen = 31; xsqlvars[12].sqlind = 0; xsqlvars[12].sqlname = "PK_NAME"; xsqlvars[12].relname = "COLUMNINFO"; xsqlvars[13] = new XSQLVAR(); xsqlvars[13].sqltype = GDS.SQL_SHORT; xsqlvars[13].sqlname = "DEFERRABILITY"; xsqlvars[13].relname = "COLUMNINFO"; ArrayList rows = new ArrayList(); while (rs.next()) { Object[] row = new Object[14]; row[0] = null; row[1] = null; row[2] = rs.getString("PKTABLE_NAME").trim(); row[3] = rs.getString("PKCOLUMN_NAME").trim(); row[4] = null; row[5] = null; row[6] = rs.getString("FKTABLE_NAME").trim(); row[7] = rs.getString("FKCOLUMN_NAME").trim(); row[8] = new Short(rs.getShort("KEY_SEQ")); String updateRule = rs.getString("UPDATE_RULE"); if (updateRule.equals("NO ACTION")) row[9] = new Short((short) DatabaseMetaData.importedKeyNoAction); else if (updateRule.equals("CASCADE")) row[9] = new Short((short) DatabaseMetaData.importedKeyCascade); else if (updateRule.equals("SET NULL")) row[9] = new Short((short) DatabaseMetaData.importedKeySetNull); else if (updateRule.equals("SET DEFAULT")) row[9] = new Short((short) DatabaseMetaData.importedKeySetDefault); String deleteRule = rs.getString("DELETE_RULE"); if (deleteRule.equals("NO ACTION")) row[10] = new Short((short) DatabaseMetaData.importedKeyNoAction); else if (deleteRule.equals("CASCADE")) row[10] = new Short((short) DatabaseMetaData.importedKeyCascade); else if (deleteRule.equals("SET NULL")) row[10] = new Short((short) DatabaseMetaData.importedKeySetNull); else if (deleteRule.equals("SET DEFAULT")) row[10] = new Short((short) DatabaseMetaData.importedKeySetDefault); row[11] = rs.getString("FK_NAME"); row[12] = rs.getString("PK_NAME"); row[13] = new Short((short) DatabaseMetaData.importedKeyNotDeferrable); rows.add(row); }// rows.add(null); // return new FBResultSet(xsqlvars, rows); return new FBResultSet(xsqlvars, rows); }
|
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/627def55c97b8bb66af3471f8047199de1f4d1c9/FBDatabaseMetaData.java/clean/src/org/firebirdsql/jdbc/FBDatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10842,
26246,
1798,
2396,
12,
780,
6222,
16,
514,
1963,
16,
7734,
514,
1014,
13,
1216,
6483,
288,
3639,
866,
9769,
1876,
3078,
12,
7199,
16,
1963,
1769,
3639,
3905,
1579,
1014,
7044,
273,
394,
3905,
1579,
2932,
8784,
18,
54,
2290,
8,
27822,
67,
1985,
3113,
1014,
1769,
3639,
514,
1847,
273,
4978,
67,
2294,
14289,
67,
16333,
67,
7570,
31,
3639,
1847,
1011,
1014,
7044,
18,
588,
3418,
5621,
3639,
1847,
1011,
4978,
67,
2294,
14289,
67,
16333,
67,
4415,
31,
3639,
2407,
859,
273,
394,
2407,
5621,
3639,
309,
16051,
2121,
7044,
18,
588,
3418,
7675,
14963,
2932,
6,
3719,
288,
5411,
859,
18,
1289,
12,
2121,
7044,
18,
24805,
10663,
3639,
289,
1082,
1850,
10842,
3597,
273,
276,
18,
2896,
1138,
12,
4669,
16,
859,
16,
6317,
1769,
3639,
1139,
3997,
7716,
8526,
619,
4669,
4699,
273,
394,
1139,
3997,
7716,
63,
3461,
15533,
3639,
619,
4669,
4699,
63,
20,
65,
273,
394,
1139,
3997,
7716,
5621,
3639,
619,
4669,
4699,
63,
20,
8009,
4669,
723,
273,
611,
3948,
18,
3997,
67,
58,
6043,
1360,
31,
3639,
619,
4669,
4699,
63,
20,
8009,
4669,
1897,
273,
8231,
31,
3639,
619,
4669,
4699,
63,
20,
8009,
4669,
728,
273,
300,
21,
31,
3639,
619,
4669,
4699,
63,
20,
8009,
4669,
529,
273,
315,
8784,
7775,
67,
14130,
14432,
3639,
619,
4669,
4699,
63,
20,
8009,
2878,
529,
273,
315,
11009,
5923,
14432,
3639,
619,
4669,
4699,
63,
21,
65,
273,
394,
1139,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10842,
26246,
1798,
2396,
12,
780,
6222,
16,
514,
1963,
16,
7734,
514,
1014,
13,
1216,
6483,
288,
3639,
866,
9769,
1876,
3078,
12,
7199,
16,
1963,
1769,
3639,
3905,
1579,
1014,
7044,
273,
394,
3905,
1579,
2932,
8784,
18,
54,
2290,
8,
27822,
67,
1985,
3113,
1014,
1769,
3639,
514,
1847,
273,
4978,
67,
2294,
14289,
67,
16333,
67,
7570,
31,
3639,
1847,
1011,
1014,
7044,
18,
588,
3418,
5621,
3639,
1847,
1011,
4978,
67,
2294,
14289,
67,
16333,
67,
4415,
31,
3639,
2407,
859,
273,
394,
2407,
5621,
3639,
309,
16051,
2121,
7044,
18,
588,
3418,
7675,
14963,
2932,
6,
3719,
288,
5411,
859,
18,
1289,
12,
2121,
7044,
18,
24805,
10663,
3639,
289,
1082,
2
] |
||
ClassFileWriter.ACC_STATIC);
|
ClassFileWriter.ACC_STATIC);
|
private void emitConstantDudeInitializers() { int N = itsConstantListSize; if (N == 0) return; cfw.startMethod("<clinit>", "()V", (short)(ClassFileWriter.ACC_STATIC + ClassFileWriter.ACC_FINAL)); double[] array = itsConstantList; for (int i = 0; i != N; ++i) { double num = array[i]; String constantName = "jsK_" + i; String constantType = getStaticConstantWrapperType(num); cfw.addField(constantName, constantType, ClassFileWriter.ACC_STATIC); pushNewNumberObject(num); cfw.add(ByteCode.PUTSTATIC, cfw.fullyQualifiedForm(generatedClassName), constantName, constantType); } cfw.add(ByteCode.RETURN); cfw.stopMethod((short)0, null); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/df6e3ed45793449d4d2f8ff32a2c6552165f2303/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
6902,
40,
1317,
4435,
8426,
1435,
288,
3639,
509,
423,
273,
2097,
6902,
682,
1225,
31,
3639,
309,
261,
50,
422,
374,
13,
5411,
327,
31,
3639,
6080,
91,
18,
1937,
1305,
2932,
32,
830,
2738,
2984,
16,
25605,
58,
3113,
5411,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
22741,
397,
30614,
2289,
18,
31414,
67,
7263,
1013,
10019,
3639,
1645,
8526,
526,
273,
2097,
6902,
682,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
423,
31,
965,
77,
13,
288,
5411,
1645,
818,
273,
526,
63,
77,
15533,
5411,
514,
5381,
461,
273,
315,
2924,
47,
9548,
397,
277,
31,
5411,
514,
5381,
559,
273,
23414,
6902,
3611,
559,
12,
2107,
1769,
5411,
6080,
91,
18,
1289,
974,
12,
14384,
461,
16,
5381,
559,
16,
1171,
9079,
30614,
2289,
18,
31414,
67,
22741,
1769,
5411,
1817,
1908,
1854,
921,
12,
2107,
1769,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
4762,
22741,
16,
12900,
6080,
91,
18,
4095,
8708,
1204,
12,
11168,
3834,
3631,
12900,
5381,
461,
16,
5381,
559,
1769,
3639,
289,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
14033,
1769,
3639,
6080,
91,
18,
5681,
1305,
12443,
6620,
13,
20,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
6902,
40,
1317,
4435,
8426,
1435,
288,
3639,
509,
423,
273,
2097,
6902,
682,
1225,
31,
3639,
309,
261,
50,
422,
374,
13,
5411,
327,
31,
3639,
6080,
91,
18,
1937,
1305,
2932,
32,
830,
2738,
2984,
16,
25605,
58,
3113,
5411,
261,
6620,
21433,
797,
812,
2289,
18,
31414,
67,
22741,
397,
30614,
2289,
18,
31414,
67,
7263,
1013,
10019,
3639,
1645,
8526,
526,
273,
2097,
6902,
682,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
423,
31,
965,
77,
13,
288,
5411,
1645,
818,
273,
526,
63,
77,
15533,
5411,
514,
5381,
461,
273,
315,
2924,
47,
9548,
397,
277,
31,
5411,
514,
5381,
559,
273,
23414,
6902,
3611,
559,
2
] |
.append("default:")
|
.append(" default: ")
|
public void _tableswitch( int pc, int defaultoffset, int low, int high, int[] jump_offsets) { dumpPcNumber(pc); buffer.append(OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.TABLESWITCH]) .append("default:") //$NON-NLS-1$ .append(defaultoffset + pc); writeNewLine(); for (int i = low; i < high + 1; i++) { writeExtraTabs(1); buffer .append("case") //$NON-NLS-1$ .append(i) .append(":") //$NON-NLS-1$ .append(jump_offsets[i - low] + pc); writeNewLine(); } }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2181930e602cb49419681b4577162e491ccc0f44/DefaultBytecodeVisitor.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
9373,
30390,
12,
202,
202,
474,
6125,
16,
3196,
202,
474,
805,
3348,
16,
202,
202,
474,
4587,
16,
202,
202,
474,
3551,
16,
202,
202,
474,
8526,
11833,
67,
16542,
13,
288,
202,
202,
8481,
28136,
1854,
12,
2436,
1769,
202,
202,
4106,
18,
6923,
12,
22808,
780,
1972,
18,
15377,
5572,
67,
16257,
63,
45,
22808,
29668,
4758,
2102,
18,
7775,
18746,
25588,
5717,
1082,
202,
18,
6923,
2932,
805,
30,
9369,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
18,
6923,
12,
1886,
3348,
397,
6125,
1769,
202,
202,
2626,
31453,
5621,
202,
202,
1884,
261,
474,
277,
273,
4587,
31,
277,
411,
3551,
397,
404,
31,
277,
27245,
288,
1082,
202,
2626,
7800,
17348,
12,
21,
1769,
1082,
202,
4106,
9506,
202,
18,
6923,
2932,
3593,
7923,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
18,
6923,
12,
77,
13,
9506,
202,
18,
6923,
2932,
2773,
13,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
18,
6923,
12,
24574,
67,
16542,
63,
77,
300,
4587,
65,
397,
6125,
1769,
1082,
202,
2626,
31453,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
389,
9373,
30390,
12,
202,
202,
474,
6125,
16,
3196,
202,
474,
805,
3348,
16,
202,
202,
474,
4587,
16,
202,
202,
474,
3551,
16,
202,
202,
474,
8526,
11833,
67,
16542,
13,
288,
202,
202,
8481,
28136,
1854,
12,
2436,
1769,
202,
202,
4106,
18,
6923,
12,
22808,
780,
1972,
18,
15377,
5572,
67,
16257,
63,
45,
22808,
29668,
4758,
2102,
18,
7775,
18746,
25588,
5717,
1082,
202,
18,
6923,
2932,
805,
30,
9369,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
18,
6923,
12,
1886,
3348,
397,
6125,
1769,
202,
202,
2626,
31453,
5621,
202,
202,
1884,
261,
474,
277,
273,
4587,
31,
277,
411,
3551,
397,
404,
31,
277,
27245,
288,
2
] |
} catch (NonExistantObjectIDException e) { e.printStackTrace();
|
private void processLockedObjects(boolean commit) { List<SGSUUID> listeners = new ArrayList<SGSUUID>(); for (Entry<Long, Serializable> entry : lockedObjectsMap.entrySet()) { Long l = entry.getKey(); try { keyTrans.lock(l); TSODataHeader hdr = (TSODataHeader) keyTrans.read(l); hdr.free = true; keyTrans.write(l, hdr); listeners.addAll(hdr.availabilityListeners); if (commit) { mainTrans.write(hdr.objectID, entry.getValue()); } } catch (NonExistantObjectIDException e) { e.printStackTrace(); } } keyTrans.commit(); if (commit) { mainTrans.commit(); } else { mainTrans.abort(); } lockedObjectsMap.clear(); ostore.notifyAvailabilityListeners(listeners); ostore.deregisterActiveTransaction(this); } /*
|
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/2047398952dc1a021679c3c4d8acc712f50310a8/TSOTransaction.java/clean/src/com/sun/gi/objectstore/tso/TSOTransaction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
8966,
4710,
12,
6494,
3294,
13,
288,
202,
202,
682,
32,
55,
16113,
5562,
34,
4679,
273,
394,
2407,
32,
55,
16113,
5562,
34,
5621,
202,
202,
1884,
261,
1622,
32,
3708,
16,
13687,
34,
1241,
294,
8586,
4710,
863,
18,
4099,
694,
10756,
288,
1082,
202,
3708,
328,
273,
1241,
18,
588,
653,
5621,
1082,
202,
698,
288,
9506,
202,
856,
1429,
18,
739,
12,
80,
1769,
9506,
202,
56,
3584,
751,
1864,
7723,
273,
261,
56,
3584,
751,
1864,
13,
498,
1429,
18,
896,
12,
80,
1769,
9506,
202,
16587,
18,
9156,
273,
638,
31,
9506,
202,
856,
1429,
18,
2626,
12,
80,
16,
7723,
1769,
6862,
6862,
202,
16072,
18,
1289,
1595,
12,
16587,
18,
24318,
5583,
1769,
9506,
202,
430,
261,
7371,
13,
288,
6862,
202,
5254,
1429,
18,
2626,
12,
16587,
18,
1612,
734,
16,
1241,
18,
24805,
10663,
9506,
202,
97,
1082,
202,
97,
1044,
261,
3989,
4786,
970,
22359,
503,
425,
13,
288,
9506,
202,
73,
18,
1188,
6332,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
856,
1429,
18,
7371,
5621,
202,
202,
430,
261,
7371,
13,
288,
1082,
202,
5254,
1429,
18,
7371,
5621,
202,
202,
97,
469,
288,
1082,
202,
5254,
1429,
18,
18623,
5621,
202,
202,
97,
1082,
202,
15091,
4710,
863,
18,
8507,
5621,
202,
202,
669,
479,
18,
12336,
10427,
5583,
12,
16072,
1769,
202,
202,
669,
479,
18,
765,
1332,
1249,
3896,
3342,
12,
2211,
1769,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
8966,
4710,
12,
6494,
3294,
13,
288,
202,
202,
682,
32,
55,
16113,
5562,
34,
4679,
273,
394,
2407,
32,
55,
16113,
5562,
34,
5621,
202,
202,
1884,
261,
1622,
32,
3708,
16,
13687,
34,
1241,
294,
8586,
4710,
863,
18,
4099,
694,
10756,
288,
1082,
202,
3708,
328,
273,
1241,
18,
588,
653,
5621,
1082,
202,
698,
288,
9506,
202,
856,
1429,
18,
739,
12,
80,
1769,
9506,
202,
56,
3584,
751,
1864,
7723,
273,
261,
56,
3584,
751,
1864,
13,
498,
1429,
18,
896,
12,
80,
1769,
9506,
202,
16587,
18,
9156,
273,
638,
31,
9506,
202,
856,
1429,
18,
2626,
12,
80,
16,
7723,
1769,
6862,
6862,
202,
16072,
18,
1289,
2
] |
|
public void test4Sphere() { String[] result = { "O-1;=C(CC/CC,C/CC,C,&)", "C-3;=OCC(,CC,C/CC,C,&/CC,&C,&O)", "C-2;CC(=OC,C/,CC,&C/C&,C,C)", "C-2;CC(C,CC/=OC,C&,C/,&C,CC,&)", "C-3;CCC(CC,C,C/CC,CC,&,&/=O&,C,C&,&O)", "C-2;CC(CC,C/CC,C,&C/C&,CC,&,CC)", "C-2;CC(CC,C/CC,CC,&C/C&,CO,C&,C,C)", "C-3;CCC(CC,CC,C/CC,CO,C&,C,&/CC,C&,&O,&,C,&)", "C-3;CCC(CC,OC,C/CC,C,&,C,&/CC,C&,&,&)", "C-2;CC(CC,C/CC,CO,&/CC,C,&,&)", "C-2;CC(C,C/CC,&/CC,&O)", "C-2;CC(C,C/CO,&/C&,C)", "C-2;CC(CO,C/CC,C,&/CC,&,&C)", "C-3;COC(CC,C,C/CC,C,&C,&/C&,C,&,CO)", "O-2;CC(CC,CC/CC,CO,&C,C/CC,&C,&,C,C,&)", "C-3;CCO(CC,CO,C/CC,CC,&,C,&C/&C,CC,&C,&,,C)", "C-3;CCO(C,CO,C/CC,&C,C,/=OC,&C,CC,&C)", "O-2;CC(CC,/CO,C/CC,C,&C)", "C-1;O(C/CC/CO,C)", "C-2;CC(CC,CO/=OC,CC,&O,C/,C,&C,&C,C,)", "C-3;CCC(=OC,CC,C/,C,CC,&C,&O/&,CC,&O,&,C)", "C-3;CCC(CC,CC,CC/=OC,C,CC,&O,&,&/,&,&O,CC,&,&)", "C-3;CCC(CC,CC,CO/CC,CC,CC,&,&O,&/=OC,&,&,&,C&,C,C)" }; try { Molecule molecule = (new SmilesParser()).parseSmiles("O=c1ccc2ccc4c5ccccc5Oc3c(OC)cc1c2c34"); boolean isAromatic = HueckelAromaticityDetector.detectAromaticity(molecule); HOSECodeGenerator hcg = new HOSECodeGenerator(); String s = null; for (int f = 0; f < molecule.getAtomCount(); f++) { s = hcg.getHOSECode(molecule, molecule.getAtomAt(f), 4); assertTrue(result[f].equals(s)); } } catch (Exception exc) { exc.printStackTrace(); } }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/6d8aa3922ced07dd7b9196063ada12eff10f95ef/HOSECodeTest.java/buggy/src/org/openscience/cdk/test/tools/HOSECodeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
3813,
24,
22747,
1435,
202,
95,
202,
202,
780,
8526,
2088,
5899,
202,
202,
6,
51,
17,
21,
31,
33,
39,
12,
6743,
19,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
2225,
10837,
39,
17,
23,
31,
33,
51,
6743,
12,
16,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
19,
6743,
16,
10,
39,
16,
10,
51,
2225,
10837,
39,
17,
22,
31,
6743,
12,
33,
10809,
16,
39,
19,
16,
6743,
16,
10,
39,
19,
39,
10,
16,
39,
16,
39,
2225,
10837,
39,
17,
22,
31,
6743,
12,
39,
16,
6743,
19,
33,
10809,
16,
39,
10,
16,
39,
19,
16,
10,
39,
16,
6743,
16,
10,
2225,
10837,
39,
17,
23,
31,
6743,
39,
12,
6743,
16,
39,
16,
39,
19,
6743,
16,
6743,
16,
10,
16,
10,
19,
33,
51,
10,
16,
39,
16,
39,
10,
16,
10,
51,
2225,
10837,
39,
17,
22,
31,
6743,
12,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
39,
19,
39,
10,
16,
6743,
16,
10,
16,
6743,
2225,
10837,
39,
17,
22,
31,
6743,
12,
6743,
16,
39,
19,
6743,
16,
6743,
16,
10,
39,
19,
39,
10,
16,
3865,
16,
39,
10,
16,
39,
16,
39,
2225,
10837,
39,
17,
23,
31,
6743,
39,
12,
6743,
16,
6743,
16,
39,
19,
6743,
16,
3865,
16,
39,
10,
16,
39,
16,
10,
19,
6743,
16,
39,
10,
16,
10,
51,
16,
10,
16,
39,
16,
10,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
3813,
24,
22747,
1435,
202,
95,
202,
202,
780,
8526,
2088,
5899,
202,
202,
6,
51,
17,
21,
31,
33,
39,
12,
6743,
19,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
2225,
10837,
39,
17,
23,
31,
33,
51,
6743,
12,
16,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
19,
6743,
16,
10,
39,
16,
10,
51,
2225,
10837,
39,
17,
22,
31,
6743,
12,
33,
10809,
16,
39,
19,
16,
6743,
16,
10,
39,
19,
39,
10,
16,
39,
16,
39,
2225,
10837,
39,
17,
22,
31,
6743,
12,
39,
16,
6743,
19,
33,
10809,
16,
39,
10,
16,
39,
19,
16,
10,
39,
16,
6743,
16,
10,
2225,
10837,
2
] |
||
_stack[index = 0] = node; if (node > ROOTNODE) { while ((parent = _parent[node]) != ROOTNODE) { if (++index == _stack.length) { final int[] stack = new int[index + 4]; System.arraycopy(_stack, 0, stack, 0, index); _stack = stack; } _stack[index] = node = parent;
|
int parent = node; while ((parent = _parent[parent]) >= ROOTNODE) { if (_sp == _stack.length) { final int[] stack = new int[_sp + 4]; System.arraycopy(_stack, 0, stack, 0, _sp); _stack = stack;
|
public NodeIterator setStartNode(int node) { if (_isRestartable) { // iterator is not a clone int parent, index; _startNode = node; _node = ROOTNODE; _stack[index = 0] = node; if (node > ROOTNODE) { while ((parent = _parent[node]) != ROOTNODE) { if (++index == _stack.length) { final int[] stack = new int[index + 4]; System.arraycopy(_stack, 0, stack, 0, index); _stack = stack; } _stack[index] = node = parent; } } _oldsp = _sp = index; return resetPosition(); } return this; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/1fb940933ef692837ec0be2ad9a6d71a909e43f3/DOMImpl.java/buggy/src/org/apache/xalan/xsltc/dom/DOMImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
3198,
18171,
907,
12,
474,
756,
13,
288,
202,
565,
309,
261,
67,
291,
15057,
429,
13,
288,
202,
202,
759,
2775,
353,
486,
279,
3236,
202,
202,
474,
982,
16,
770,
31,
202,
202,
67,
1937,
907,
273,
756,
31,
202,
202,
67,
2159,
273,
11011,
8744,
31,
202,
202,
67,
3772,
63,
1615,
273,
374,
65,
273,
756,
31,
202,
202,
430,
261,
2159,
405,
11011,
8744,
13,
288,
1082,
565,
1323,
14015,
2938,
273,
389,
2938,
63,
2159,
5717,
480,
11011,
8744,
13,
288,
1082,
202,
430,
261,
9904,
1615,
422,
389,
3772,
18,
2469,
13,
288,
9506,
565,
727,
509,
8526,
2110,
273,
394,
509,
63,
1615,
397,
1059,
15533,
9506,
565,
2332,
18,
1126,
3530,
24899,
3772,
16,
374,
16,
2110,
16,
374,
16,
770,
1769,
9506,
565,
389,
3772,
273,
2110,
31,
1082,
202,
97,
1082,
202,
67,
3772,
63,
1615,
65,
273,
756,
273,
982,
31,
1082,
565,
289,
202,
202,
97,
202,
202,
67,
1673,
1752,
273,
389,
1752,
273,
770,
31,
202,
202,
2463,
2715,
2555,
5621,
202,
565,
289,
202,
565,
327,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
3198,
18171,
907,
12,
474,
756,
13,
288,
202,
565,
309,
261,
67,
291,
15057,
429,
13,
288,
202,
202,
759,
2775,
353,
486,
279,
3236,
202,
202,
474,
982,
16,
770,
31,
202,
202,
67,
1937,
907,
273,
756,
31,
202,
202,
67,
2159,
273,
11011,
8744,
31,
202,
202,
67,
3772,
63,
1615,
273,
374,
65,
273,
756,
31,
202,
202,
430,
261,
2159,
405,
11011,
8744,
13,
288,
1082,
565,
1323,
14015,
2938,
273,
389,
2938,
63,
2159,
5717,
480,
11011,
8744,
13,
288,
1082,
202,
430,
261,
9904,
1615,
422,
389,
3772,
18,
2469,
13,
288,
9506,
565,
727,
509,
8526,
2110,
273,
394,
509,
63,
1615,
397,
1059,
15533,
9506,
2
] |
AttributedCharacterIterator fontaci = createModifiedACIForFontMatching(node, aci); fontaci.first(); /* * We iterate through the spans over extended attributes, * instantiating TextLayout elements as we go, and * accumulate an overall advance for the text display. */
|
private List getTextRuns(TextNode node, AttributedCharacterIterator aci, FontRenderContext frc) { List textRuns = node.getTextRuns(); if (textRuns != null) { return textRuns; } textRuns = new ArrayList(); AttributedCharacterIterator fontaci = createModifiedACIForFontMatching(node, aci); fontaci.first(); /* * We iterate through the spans over extended attributes, * instantiating TextLayout elements as we go, and * accumulate an overall advance for the text display. */ TextChunk chunk; int beginChunk = 0; do { /* * Text Chunks contain one or more TextRuns, * which they create from the ACI. */ chunk = getTextChunk(node, fontaci, textRuns, beginChunk, frc); /* Adjust according to text-anchor property value */ if (chunk != null) { adjustChunkOffsets(textRuns, chunk.advance, chunk.begin, chunk.end); beginChunk = chunk.end; } } while (chunk != null); return textRuns; }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/792794ccd7fe962007f2619e9327e785b859ecfe/StrokingTextPainter.java/clean/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
6701,
9361,
12,
17299,
756,
16,
11794,
2380,
11050,
7069,
3198,
1721,
77,
16,
11794,
10063,
3420,
1042,
284,
1310,
13,
288,
3639,
987,
977,
9361,
273,
756,
18,
588,
1528,
9361,
5621,
3639,
309,
261,
955,
9361,
480,
446,
13,
288,
5411,
327,
977,
9361,
31,
3639,
289,
3639,
977,
9361,
273,
394,
2407,
5621,
3639,
2380,
11050,
7069,
3198,
3512,
1077,
77,
273,
752,
4575,
2226,
45,
1290,
5711,
9517,
12,
2159,
16,
1721,
77,
1769,
3639,
3512,
1077,
77,
18,
3645,
5621,
3639,
1748,
540,
380,
1660,
7401,
3059,
326,
12791,
1879,
7021,
1677,
16,
540,
380,
5934,
22906,
3867,
3744,
2186,
487,
732,
1960,
16,
471,
540,
380,
21757,
392,
13914,
8312,
364,
326,
977,
2562,
18,
540,
1195,
3639,
3867,
5579,
2441,
31,
3639,
509,
2376,
5579,
273,
374,
31,
3639,
741,
288,
2398,
1748,
2868,
380,
3867,
13021,
87,
912,
1245,
578,
1898,
3867,
9361,
16,
2868,
380,
1492,
2898,
752,
628,
326,
432,
7266,
18,
2868,
1195,
5411,
2441,
273,
6701,
5579,
12,
2159,
16,
3512,
1077,
77,
16,
977,
9361,
16,
2376,
5579,
16,
284,
1310,
1769,
5411,
1748,
17720,
4888,
358,
977,
17,
16215,
1272,
460,
1195,
5411,
309,
261,
6551,
480,
446,
13,
288,
7734,
5765,
5579,
13830,
12,
955,
9361,
16,
2441,
18,
361,
5882,
16,
2441,
18,
10086,
16,
2441,
18,
409,
1769,
7734,
2376,
5579,
273,
2441,
18,
409,
31,
5411,
289,
3639,
289,
1323,
261,
6551,
480,
446,
1769,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
6701,
9361,
12,
17299,
756,
16,
11794,
2380,
11050,
7069,
3198,
1721,
77,
16,
11794,
10063,
3420,
1042,
284,
1310,
13,
288,
3639,
987,
977,
9361,
273,
756,
18,
588,
1528,
9361,
5621,
3639,
309,
261,
955,
9361,
480,
446,
13,
288,
5411,
327,
977,
9361,
31,
3639,
289,
3639,
977,
9361,
273,
394,
2407,
5621,
3639,
2380,
11050,
7069,
3198,
3512,
1077,
77,
273,
752,
4575,
2226,
45,
1290,
5711,
9517,
12,
2159,
16,
1721,
77,
1769,
3639,
3512,
1077,
77,
18,
3645,
5621,
3639,
1748,
540,
380,
1660,
7401,
3059,
326,
12791,
1879,
7021,
1677,
16,
540,
380,
5934,
22906,
3867,
3744,
2186,
487,
732,
1960,
16,
471,
540,
380,
21757,
392,
13914,
8312,
2
] |
|
if (!(operation instanceof IAdvancedUndoableOperation))
|
if (!(operation instanceof IAdvancedUndoableOperation)) {
|
private IStatus proceedWithOperation(IUndoableOperation operation, String message, String discardButton) { // if the operation cannot tell us about its modified elements, there's // nothing we can do. if (!(operation instanceof IAdvancedUndoableOperation)) return Status.OK_STATUS; // Obtain the operation's affected objects. Object[] modifiedElements = ((IAdvancedUndoableOperation) operation) .getAffectedObjects(); // Since the operation participates in describing its affected objects, // we assume for the rest of this method that an inability to // determine a match implies that a non-local operation is occurring. // This is a conservative assumption that provides more user prompting. boolean local; if (modifiedElements == null) { // The operation could not determine which elements are affected. // Consider the operation non-local. local = false; } else { // The operation answered some array of affected objects. Consider // the operation local until a non-match is found. Note that an // empty // array of affected objects is considered a local change. local = true; for (int i = 0; i < modifiedElements.length; i++) { Object modifiedElement = modifiedElements[i]; if (!elementsContains(modifiedElement)) { // the modified element is not known by the editor local = false; // one last try - try to adapt the modified element if a // preferred // comparison class has been provided. if (affectedObjectsClass != null && modifiedElement instanceof IAdaptable) { if (elementsContains(((IAdaptable) modifiedElement) .getAdapter(affectedObjectsClass))) { local = true; } } // if the element did not match the affected objects, no // need to check any others. if (!local) break; } } } if (local) return Status.OK_STATUS; // The operation affects more than just our element. Find out if // we should proceed, cancel, or discard the undo. MessageDialog dialog = new MessageDialog(part.getSite().getShell(), part.getEditorInput().getName(), null, message, MessageDialog.QUESTION, new String[] { IDialogConstants.OK_LABEL, discardButton, IDialogConstants.CANCEL_LABEL }, 0); // yes is the default int answer = dialog.open(); switch (answer) { case 0: return Status.OK_STATUS; case 1: return IOperationHistory.OPERATION_INVALID_STATUS; default: // Cancel by default to include ESC key and shell close, // which return SWT.DEFAULT, and any other unexpected return codes return Status.CANCEL_STATUS; } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/NonLocalUndoUserApprover.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/NonLocalUndoUserApprover.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
11247,
1190,
2988,
12,
45,
31224,
429,
2988,
1674,
16,
1082,
202,
780,
883,
16,
514,
10388,
3616,
13,
288,
202,
202,
759,
309,
326,
1674,
2780,
9276,
584,
2973,
2097,
4358,
2186,
16,
1915,
1807,
202,
202,
759,
5083,
732,
848,
741,
18,
202,
202,
430,
16051,
12,
7624,
1276,
467,
23618,
31224,
429,
2988,
3719,
1082,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
202,
202,
759,
24850,
326,
1674,
1807,
9844,
2184,
18,
202,
202,
921,
8526,
4358,
3471,
273,
14015,
45,
23618,
31224,
429,
2988,
13,
1674,
13,
9506,
202,
18,
588,
23775,
4710,
5621,
202,
202,
759,
7897,
326,
1674,
30891,
815,
316,
16868,
2097,
9844,
2184,
16,
202,
202,
759,
732,
6750,
364,
326,
3127,
434,
333,
707,
716,
392,
316,
2967,
358,
202,
202,
759,
4199,
279,
845,
24168,
716,
279,
1661,
17,
3729,
1674,
353,
3334,
8022,
18,
202,
202,
759,
1220,
353,
279,
356,
23039,
1535,
24743,
716,
8121,
1898,
729,
6866,
310,
18,
202,
202,
6494,
1191,
31,
202,
202,
430,
261,
7342,
3471,
422,
446,
13,
288,
1082,
202,
759,
1021,
1674,
3377,
486,
4199,
1492,
2186,
854,
9844,
18,
1082,
202,
759,
23047,
326,
1674,
1661,
17,
3729,
18,
1082,
202,
3729,
273,
629,
31,
202,
202,
97,
469,
288,
1082,
202,
759,
1021,
1674,
5803,
329,
2690,
526,
434,
9844,
2184,
18,
23047,
1082,
202,
759,
326,
1674,
1191,
3180,
279,
1661,
17,
1916,
353,
1392,
18,
3609,
716,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
11247,
1190,
2988,
12,
45,
31224,
429,
2988,
1674,
16,
1082,
202,
780,
883,
16,
514,
10388,
3616,
13,
288,
202,
202,
759,
309,
326,
1674,
2780,
9276,
584,
2973,
2097,
4358,
2186,
16,
1915,
1807,
202,
202,
759,
5083,
732,
848,
741,
18,
202,
202,
430,
16051,
12,
7624,
1276,
467,
23618,
31224,
429,
2988,
3719,
1082,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
202,
202,
759,
24850,
326,
1674,
1807,
9844,
2184,
18,
202,
202,
921,
8526,
4358,
3471,
273,
14015,
45,
23618,
31224,
429,
2988,
13,
1674,
13,
9506,
202,
18,
588,
23775,
4710,
5621,
202,
202,
759,
7897,
326,
1674,
30891,
815,
316,
16868,
2097,
9844,
2184,
16,
202,
2
] |
return false; }
|
boolean hasBreakpoint(int line) { byte[] breakpoints = this.breakpoints; if (breakpoints != null && line < breakpoints.length) { return breakpoints[line] == BREAK_FLAG; } return false; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/677ac1cd7685aceb4fdd606aa3e6c9cea9f6d6cb/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
711,
20552,
12,
474,
980,
13,
288,
3639,
1160,
8526,
23416,
273,
333,
18,
8820,
4139,
31,
3639,
309,
261,
8820,
4139,
480,
446,
597,
980,
411,
23416,
18,
2469,
13,
288,
5411,
327,
23416,
63,
1369,
65,
422,
605,
22176,
67,
9651,
31,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
711,
20552,
12,
474,
980,
13,
288,
3639,
1160,
8526,
23416,
273,
333,
18,
8820,
4139,
31,
3639,
309,
261,
8820,
4139,
480,
446,
597,
980,
411,
23416,
18,
2469,
13,
288,
5411,
327,
23416,
63,
1369,
65,
422,
605,
22176,
67,
9651,
31,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return panel;
|
JPanel engineChoicePanel = new JPanel(); engineChoicePanel.setLayout(new GridLayout(1, 2)); engineChoicePanel.add(left); engineChoicePanel.add(right); return engineChoicePanel;
|
private JComponent createEnginePanel() { Box panel = Box.createHorizontalBox(); Box left = Box.createVerticalBox(); Box right = Box.createVerticalBox(); panel.add(left); panel.add(right); left.add(new JLabel("Available engines")); right.add(new JLabel("Engines used")); this.availableEngineListModel = new DefaultListModel(); this.availableEngineList = new JList(this.availableEngineListModel); JScrollPane availPanel = createListPanel(this.availableEngineList); left.add(availPanel); this.usedEngineListModel = new DefaultListModel(); this.usedEngineList = new JList(this.usedEngineListModel); JComponent usedPanel = createListPanel(this.usedEngineList); right.add(usedPanel); this.addEngineButton = new JButton("Add engine"); this.addEngineButton.addActionListener(this); this.removeEngineButton = new JButton("Remove engine"); this.removeEngineButton.addActionListener(this); left.add(this.addEngineButton); right.add(this.removeEngineButton); return panel; }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/b5abd8fd04d285a1b80a4816863d054b8bf79db3/DispatcherGUI.java/clean/src/org/objectweb/proactive/examples/c3d/gui/DispatcherGUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29058,
752,
4410,
5537,
1435,
288,
3639,
8549,
6594,
273,
8549,
18,
2640,
14457,
3514,
5621,
3639,
8549,
2002,
273,
8549,
18,
2640,
15704,
3514,
5621,
3639,
8549,
2145,
273,
8549,
18,
2640,
15704,
3514,
5621,
3639,
6594,
18,
1289,
12,
4482,
1769,
3639,
6594,
18,
1289,
12,
4083,
1769,
3639,
2002,
18,
1289,
12,
2704,
21403,
2932,
5268,
20504,
7923,
1769,
3639,
2145,
18,
1289,
12,
2704,
21403,
2932,
664,
14660,
1399,
7923,
1769,
3639,
333,
18,
5699,
4410,
682,
1488,
273,
394,
2989,
682,
1488,
5621,
3639,
333,
18,
5699,
4410,
682,
273,
394,
804,
682,
12,
2211,
18,
5699,
4410,
682,
1488,
1769,
3639,
804,
26360,
15783,
5537,
273,
752,
682,
5537,
12,
2211,
18,
5699,
4410,
682,
1769,
3639,
2002,
18,
1289,
12,
842,
671,
5537,
1769,
3639,
333,
18,
3668,
4410,
682,
1488,
273,
394,
2989,
682,
1488,
5621,
3639,
333,
18,
3668,
4410,
682,
273,
394,
804,
682,
12,
2211,
18,
3668,
4410,
682,
1488,
1769,
3639,
29058,
1399,
5537,
273,
752,
682,
5537,
12,
2211,
18,
3668,
4410,
682,
1769,
3639,
2145,
18,
1289,
12,
3668,
5537,
1769,
3639,
333,
18,
1289,
4410,
3616,
273,
394,
28804,
2932,
986,
4073,
8863,
3639,
333,
18,
1289,
4410,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
333,
18,
4479,
4410,
3616,
273,
394,
28804,
2932,
3288,
4073,
8863,
3639,
333,
18,
4479,
4410,
3616,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
2002,
18,
1289,
12,
2211,
18,
1289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29058,
752,
4410,
5537,
1435,
288,
3639,
8549,
6594,
273,
8549,
18,
2640,
14457,
3514,
5621,
3639,
8549,
2002,
273,
8549,
18,
2640,
15704,
3514,
5621,
3639,
8549,
2145,
273,
8549,
18,
2640,
15704,
3514,
5621,
3639,
6594,
18,
1289,
12,
4482,
1769,
3639,
6594,
18,
1289,
12,
4083,
1769,
3639,
2002,
18,
1289,
12,
2704,
21403,
2932,
5268,
20504,
7923,
1769,
3639,
2145,
18,
1289,
12,
2704,
21403,
2932,
664,
14660,
1399,
7923,
1769,
3639,
333,
18,
5699,
4410,
682,
1488,
273,
394,
2989,
682,
1488,
5621,
3639,
333,
18,
5699,
4410,
682,
273,
394,
804,
682,
12,
2211,
18,
5699,
4410,
682,
1488,
1769,
3639,
804,
26360,
15783,
5537,
273,
752,
682,
5537,
12,
2211,
2
] |
String prefix = PropUtils.getScopedPropertyPrefix(this); props.put(prefix + shapeFileProperty, (shapeFileName==null?"":shapeFileName)); props.put(prefix + spatialIndexProperty, (spatialIndexFileName==null?"":spatialIndexFileName)); props.put(prefix + pointImageURLProperty, (imageURLString==null?"":imageURLString));
|
String prefix = PropUtils.getScopedPropertyPrefix(this); props.put(prefix + shapeFileProperty, (shapeFileName==null?"":shapeFileName)); props.put(prefix + spatialIndexProperty, (spatialIndexFileName==null?"":spatialIndexFileName)); props.put(prefix + pointImageURLProperty, (imageURLString==null?"":imageURLString));
|
public Properties getProperties(Properties props) { props = super.getProperties(props); String prefix = PropUtils.getScopedPropertyPrefix(this); props.put(prefix + shapeFileProperty, (shapeFileName==null?"":shapeFileName)); props.put(prefix + spatialIndexProperty, (spatialIndexFileName==null?"":spatialIndexFileName)); props.put(prefix + pointImageURLProperty, (imageURLString==null?"":imageURLString)); props.put(prefix + shadowXProperty, Integer.toString(shadowX)); props.put(prefix + shadowYProperty, Integer.toString(shadowY)); if (drawingAttributes != null) { drawingAttributes.setPropertyPrefix(getPropertyPrefix()); drawingAttributes.getProperties(props); } else { DrawingAttributes da = (DrawingAttributes)DrawingAttributes.DEFAULT.clone(); da.setPropertyPrefix(getPropertyPrefix()); da.getProperties(props); } return props; }
|
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/b510b23a2f6e3a1833c274dda10d99f77db59ed1/ShapeLayer.java/clean/src/openmap/com/bbn/openmap/layer/shape/ShapeLayer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
9392,
12,
2297,
3458,
13,
288,
202,
9693,
273,
2240,
18,
588,
2297,
12,
9693,
1769,
202,
780,
1633,
273,
10484,
1989,
18,
588,
25470,
1396,
2244,
12,
2211,
1769,
202,
9693,
18,
458,
12,
3239,
397,
2179,
812,
1396,
16,
1875,
225,
261,
4867,
4771,
631,
2011,
35,
3660,
30,
4867,
4771,
10019,
202,
9693,
18,
458,
12,
3239,
397,
15010,
1016,
1396,
16,
1875,
225,
261,
1752,
9240,
1016,
4771,
631,
2011,
35,
3660,
30,
1752,
9240,
1016,
4771,
10019,
202,
9693,
18,
458,
12,
3239,
397,
1634,
2040,
1785,
1396,
16,
1875,
225,
261,
2730,
1785,
780,
631,
2011,
35,
3660,
30,
2730,
1785,
780,
10019,
202,
9693,
18,
458,
12,
3239,
397,
10510,
60,
1396,
16,
2144,
18,
10492,
12,
19119,
60,
10019,
202,
9693,
18,
458,
12,
3239,
397,
10510,
61,
1396,
16,
2144,
18,
10492,
12,
19119,
61,
10019,
202,
430,
261,
9446,
310,
2498,
480,
446,
13,
288,
202,
565,
16327,
2498,
18,
542,
1396,
2244,
12,
588,
1396,
2244,
10663,
202,
565,
16327,
2498,
18,
588,
2297,
12,
9693,
1769,
202,
97,
469,
288,
202,
565,
10184,
310,
2498,
5248,
273,
261,
26885,
2498,
13,
26885,
2498,
18,
5280,
18,
14056,
5621,
202,
565,
5248,
18,
542,
1396,
2244,
12,
588,
1396,
2244,
10663,
202,
565,
5248,
18,
588,
2297,
12,
9693,
1769,
202,
97,
202,
2463,
3458,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
9392,
12,
2297,
3458,
13,
288,
202,
9693,
273,
2240,
18,
588,
2297,
12,
9693,
1769,
202,
780,
1633,
273,
10484,
1989,
18,
588,
25470,
1396,
2244,
12,
2211,
1769,
202,
9693,
18,
458,
12,
3239,
397,
2179,
812,
1396,
16,
1875,
225,
261,
4867,
4771,
631,
2011,
35,
3660,
30,
4867,
4771,
10019,
202,
9693,
18,
458,
12,
3239,
397,
15010,
1016,
1396,
16,
1875,
225,
261,
1752,
9240,
1016,
4771,
631,
2011,
35,
3660,
30,
1752,
9240,
1016,
4771,
10019,
202,
9693,
18,
458,
12,
3239,
397,
1634,
2040,
1785,
1396,
16,
1875,
225,
261,
2730,
1785,
780,
631,
2011,
35,
3660,
30,
2730,
1785,
780,
10019,
202,
9693,
18,
458,
12,
3239,
397,
2
] |
if (root.exists(new Path(newContainerName))) fContainer = root.getContainerForLocation(workspacePath.append(newContainerName)); else if (fProject != null && fProject.exists(new Path(newContainerName))) fContainer = root.getContainerForLocation(fProject.getLocation().append(newContainerName)); else{ handleInvalidContainer(); return false;
|
IWorkspaceRoot root = PDECore.getWorkspace().getRoot(); IResource resource = root.findMember(new Path(newContainerName)); if (resource instanceof IContainer) { fContainer = (IContainer)resource; handleValidContainer(); return true;
|
private boolean validateContainer() { if (isPluginIdNeeded() && !isPluginIdFinal()){ String newContainerName = fSchemaLocationText.getText(); IWorkspaceRoot root = PDECore.getWorkspace().getRoot(); IPath workspacePath = root.getLocation(); if (newContainerName.startsWith(workspacePath.toString())) newContainerName = newContainerName.replaceFirst(workspacePath.toString(), ""); //$NON-NLS-1$ if (newContainerName.length() == 0){ handleInvalidContainer(); return false; } if (root.exists(new Path(newContainerName))) fContainer = root.getContainerForLocation(workspacePath.append(newContainerName)); else if (fProject != null && fProject.exists(new Path(newContainerName))) fContainer = root.getContainerForLocation(fProject.getLocation().append(newContainerName)); else{ handleInvalidContainer(); return false; } handleValidContainer(); return true; } boolean exists = fContainer != null && fContainer.exists(); if (!exists) handleInvalidContainer(); return exists; }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/d5622063c9a61dcafe5e4a802f3a9b477efbc3f7/BaseExtensionPointMainPage.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/extension/BaseExtensionPointMainPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1954,
2170,
1435,
288,
202,
202,
430,
261,
291,
3773,
548,
11449,
1435,
597,
401,
291,
3773,
548,
7951,
10756,
95,
1082,
202,
780,
394,
2170,
461,
273,
284,
3078,
2735,
1528,
18,
588,
1528,
5621,
1082,
202,
45,
8241,
2375,
1365,
273,
453,
1639,
4670,
18,
588,
8241,
7675,
588,
2375,
5621,
1082,
202,
45,
743,
6003,
743,
273,
1365,
18,
588,
2735,
5621,
1082,
202,
430,
261,
2704,
2170,
461,
18,
17514,
1190,
12,
14915,
743,
18,
10492,
1435,
3719,
9506,
202,
2704,
2170,
461,
273,
394,
2170,
461,
18,
2079,
3759,
12,
14915,
743,
18,
10492,
9334,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
430,
261,
2704,
2170,
461,
18,
2469,
1435,
422,
374,
15329,
9506,
202,
4110,
1941,
2170,
5621,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
430,
261,
3085,
18,
1808,
12,
2704,
2666,
12,
2704,
2170,
461,
20349,
9506,
202,
74,
2170,
273,
1365,
18,
588,
2170,
1290,
2735,
12,
14915,
743,
18,
6923,
12,
2704,
2170,
461,
10019,
1082,
202,
12107,
309,
261,
74,
4109,
480,
446,
597,
284,
4109,
18,
1808,
12,
2704,
2666,
12,
2704,
2170,
461,
20349,
9506,
202,
74,
2170,
273,
1365,
18,
588,
2170,
1290,
2735,
12,
74,
4109,
18,
588,
2735,
7675,
6923,
12,
2704,
2170,
461,
10019,
1082,
202,
12107,
95,
9506,
202,
4110,
1941,
2170,
5621,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
4110,
1556,
2170,
5621,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1954,
2170,
1435,
288,
202,
202,
430,
261,
291,
3773,
548,
11449,
1435,
597,
401,
291,
3773,
548,
7951,
10756,
95,
1082,
202,
780,
394,
2170,
461,
273,
284,
3078,
2735,
1528,
18,
588,
1528,
5621,
1082,
202,
45,
8241,
2375,
1365,
273,
453,
1639,
4670,
18,
588,
8241,
7675,
588,
2375,
5621,
1082,
202,
45,
743,
6003,
743,
273,
1365,
18,
588,
2735,
5621,
1082,
202,
430,
261,
2704,
2170,
461,
18,
17514,
1190,
12,
14915,
743,
18,
10492,
1435,
3719,
9506,
202,
2704,
2170,
461,
273,
394,
2170,
461,
18,
2079,
3759,
12,
14915,
743,
18,
10492,
9334,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
430,
261,
2704,
2170,
2
] |
if (rval == JFileChooser.APPROVE_OPTION) {
|
if (rval == JFileChooser.APPROVE_OPTION) {
|
public void exportNotes() { if(tPanels != null) { Hashtable topHash = new Hashtable(); Vector names = new Vector(); for(int i = 0;i < tPanels.size();i++) { MetadataPane.TablePanel thisPanel = (MetadataPane.TablePanel) tPanels.get(i); Hashtable noteHash = thisPanel.noteP.getNoteHash(); topHash.put(thisPanel.name, noteHash); Vector noteElements = thisPanel.noteP.getNoteElements(); if(noteElements!=null) { for (int j=0;j<noteElements.size();j++) { Element thisEle = (Element) noteElements.get(j); String suffix = thisEle.getAttribute("Name"); names.add(thisPanel.name + " >>>" + suffix); } } } Object [] values = names.toArray(); Object [] toExport = ExportDialog.showDialog( (Component) getTopLevelAncestor(), (Component) getTopLevelAncestor(), "Select the notes you wish to export:", "Note Chooser", values, (Object[]) null, "Image (23): LaserCoordinates (23) >>>Long Note Name"); if (toExport != null) { if (toExport.length != 0) { int rval = chooser.showOpenDialog(this); if (rval == JFileChooser.APPROVE_OPTION) { String pathName = chooser.getSelectedFile().getPath(); if(!pathName.endsWith(".txt")) pathName = pathName + ".txt"; File file = new File(pathName); try { FileWriter fw = new FileWriter(file); BufferedWriter bw = new BufferedWriter(fw); bw.write("** Metadata Notes from " + ((MetadataPane.TablePanel)tPanels.get(0)) .getCurrentFile().getName() + " **"); bw.newLine(); bw.newLine(); Calendar rightNow = Calendar.getInstance(); bw.write("** Date Exported: " + rightNow.get(Calendar.MONTH) + "/" + rightNow.get(Calendar.DAY_OF_MONTH) + "/" + rightNow.get(Calendar.YEAR) + " " + rightNow.get(Calendar.HOUR_OF_DAY) + ":" + rightNow.get(Calendar.MINUTE) + " **"); bw.newLine(); bw.newLine(); Vector alreadyUsed = new Vector(); int placeMark = 1; for (int i = 0;i < toExport.length;i++) { String thisNoteName = (String) toExport[i]; int index = thisNoteName.indexOf(">"); String tableName = thisNoteName.substring(0,index-2); Hashtable subHash = (Hashtable) topHash.get(tableName); if(!alreadyUsed.contains(tableName)) { alreadyUsed.add(tableName); bw.write(placeMark + ") " + tableName); placeMark++; bw.newLine(); bw.newLine(); } int lIndex = thisNoteName.lastIndexOf(">"); String noteName = thisNoteName.substring(lIndex+1, thisNoteName.length()); String noteValue = (String) subHash.get(noteName); bw.write(" ->" + noteName + ":"); bw.newLine(); int newLine = noteValue.indexOf("\n"); //handle newline characters found in the note's value while(newLine != -1) { String subValue = noteValue.substring(0,newLine); noteValue = noteValue.substring(newLine+1, noteValue.length()); bw.write(" " + subValue); bw.newLine(); newLine = noteValue.indexOf("\n"); } if(noteValue != null) bw.write(" " + noteValue); bw.newLine(); bw.newLine(); } bw.close(); } catch (Exception exc) {exc.printStackTrace();} } else JOptionPane.showMessageDialog(getTopLevelAncestor(), "No notes were selected to export!", "Unable to Export Nothingness", JOptionPane.ERROR_MESSAGE); } } } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/557a93a201e2f0530cb2de2bc8c33b83b9b8b97f/NotePane.java/buggy/loci/ome/notebook/NotePane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3359,
18063,
1435,
288,
202,
202,
430,
12,
88,
5537,
87,
480,
446,
13,
288,
202,
565,
18559,
1760,
2310,
273,
394,
18559,
5621,
377,
202,
5018,
1257,
273,
394,
5589,
5621,
377,
202,
1884,
12,
474,
277,
273,
374,
31,
77,
411,
268,
5537,
87,
18,
1467,
5621,
77,
27245,
288,
377,
202,
202,
2277,
8485,
18,
1388,
5537,
333,
5537,
273,
1377,
1082,
225,
261,
2277,
8485,
18,
1388,
5537,
13,
268,
5537,
87,
18,
588,
12,
77,
1769,
377,
202,
202,
5582,
14544,
4721,
2310,
273,
333,
5537,
18,
7652,
52,
18,
588,
8067,
2310,
5621,
377,
202,
202,
3669,
2310,
18,
458,
12,
2211,
5537,
18,
529,
16,
4721,
2310,
1769,
377,
1082,
377,
202,
202,
5018,
4721,
3471,
273,
333,
5537,
18,
7652,
52,
18,
588,
8067,
3471,
5621,
377,
202,
202,
430,
12,
7652,
3471,
5,
33,
2011,
13,
288,
202,
377,
202,
202,
1884,
261,
474,
525,
33,
20,
31,
78,
32,
7652,
3471,
18,
1467,
5621,
78,
27245,
288,
202,
377,
1082,
202,
1046,
333,
17274,
273,
261,
1046,
13,
4721,
3471,
18,
588,
12,
78,
1769,
202,
377,
1082,
225,
514,
3758,
273,
333,
17274,
18,
588,
1499,
2932,
461,
8863,
9785,
1082,
225,
1257,
18,
1289,
12,
2211,
5537,
18,
529,
397,
315,
225,
1671,
2984,
397,
3758,
1769,
26924,
21114,
377,
202,
202,
97,
377,
202,
202,
97,
377,
202,
97,
202,
377,
9506,
202,
921,
5378,
924,
273,
1257,
18,
31447,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3359,
18063,
1435,
288,
202,
202,
430,
12,
88,
5537,
87,
480,
446,
13,
288,
202,
565,
18559,
1760,
2310,
273,
394,
18559,
5621,
377,
202,
5018,
1257,
273,
394,
5589,
5621,
377,
202,
1884,
12,
474,
277,
273,
374,
31,
77,
411,
268,
5537,
87,
18,
1467,
5621,
77,
27245,
288,
377,
202,
202,
2277,
8485,
18,
1388,
5537,
333,
5537,
273,
1377,
1082,
225,
261,
2277,
8485,
18,
1388,
5537,
13,
268,
5537,
87,
18,
588,
12,
77,
1769,
377,
202,
202,
5582,
14544,
4721,
2310,
273,
333,
5537,
18,
7652,
52,
18,
588,
8067,
2310,
5621,
377,
202,
202,
3669,
2310,
18,
458,
12,
2211,
5537,
18,
529,
16,
4721,
2310,
1769,
2
] |
Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount == null) { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(1)); } else { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(localCount.intValue() + 1)); }
|
int localCount = tree.getIntProp(Node.LOCALCOUNT_PROP, 0); tree.putIntProp(Node.LOCALCOUNT_PROP, localCount + 1);
|
public Node transform(Node tree, Node enclosing, TokenStream ts, Scriptable scope) { loops = new Stack(); loopEnds = new Stack(); inFunction = tree.getType() == TokenStream.FUNCTION; if (!inFunction) { addVariables(tree, getVariableTable(tree)); } irFactory = createIRFactory(ts, scope); // to save against upchecks if no finally blocks are used. boolean hasFinally = false; PreorderNodeIterator iterator = tree.getPreorderIterator(); Node node; while ((node = iterator.nextNode()) != null) { int type = node.getType(); typeswitch: switch (type) { case TokenStream.FUNCTION: if (node == tree) { // Add the variables to variable table, the // parameters were added earlier. VariableTable vars = getVariableTable(tree); addVariables(tree, vars); // Add return to end if needed. Node stmts = node.getLastChild(); Node lastStmt = stmts.getLastChild(); if (lastStmt == null || lastStmt.getType() != TokenStream.RETURN) { stmts.addChildToBack(new Node(TokenStream.RETURN)); } } else { FunctionNode fnNode = (FunctionNode) node.getProp(Node.FUNCTION_PROP); if (inFunction) { // Functions containing other functions require // activation objects ((FunctionNode) tree).setRequiresActivation(true); // Nested functions must check their 'this' value to // insure it is not an activation object: // see 10.1.6 Activation Object fnNode.setCheckThis(true); } addParameters(fnNode); NodeTransformer inner = newInstance(); fnNode = (FunctionNode) inner.transform(fnNode, tree, ts, scope); node.putProp(Node.FUNCTION_PROP, fnNode); Vector fns = (Vector) tree.getProp(Node.FUNCTION_PROP); if (fns == null) { fns = new Vector(7); tree.putProp(Node.FUNCTION_PROP, fns); } fns.addElement(fnNode); } break; case TokenStream.LABEL: { Node child = node.getFirstChild(); node.removeChild(child); String id = child.getString(); // check against duplicate labels... for (int i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.elementAt(i); if (n.getType() == TokenStream.LABEL) { String otherId = (String)n.getProp(Node.LABEL_PROP); if (id.equals(otherId)) { String message = Context.getMessage1( "msg.dup.label", id); reportMessage(Context.getContext(), message, node, tree, true, scope); break typeswitch; } } } node.putProp(Node.LABEL_PROP, id); /* Make a target and put it _after_ the following * node. And in the LABEL node, so breaks get the * right target. */ Node breakTarget = new Node(TokenStream.TARGET); Node parent = iterator.getCurrentParent(); Node next = node.getNextSibling(); while (next != null && (next.getType() == TokenStream.LABEL || next.getType() == TokenStream.TARGET)) next = next.getNextSibling(); if (next == null) break; parent.addChildAfter(breakTarget, next); node.putProp(Node.BREAK_PROP, breakTarget); if (next.getType() == TokenStream.LOOP) { node.putProp(Node.CONTINUE_PROP, next.getProp(Node.CONTINUE_PROP)); } loops.push(node); loopEnds.push(breakTarget); break; } case TokenStream.SWITCH: { Node breakTarget = new Node(TokenStream.TARGET); Node parent = iterator.getCurrentParent(); parent.addChildAfter(breakTarget, node); // make all children siblings except for selector Node sib = node; Node child = node.getFirstChild().next; while (child != null) { Node next = child.next; node.removeChild(child); parent.addChildAfter(child, sib); sib = child; child = next; } node.putProp(Node.BREAK_PROP, breakTarget); loops.push(node); loopEnds.push(breakTarget); node.putProp(Node.CASES_PROP, new Vector(13)); break; } case TokenStream.DEFAULT: case TokenStream.CASE: { Node sw = (Node) loops.peek(); if (type == TokenStream.CASE) { Vector cases = (Vector) sw.getProp(Node.CASES_PROP); cases.addElement(node); } else { sw.putProp(Node.DEFAULT_PROP, node); } break; } case TokenStream.NEWLOCAL : { Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount == null) { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(1)); } else { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(localCount.intValue() + 1)); } } break; case TokenStream.LOOP: loops.push(node); loopEnds.push(node.getProp(Node.BREAK_PROP)); break; case TokenStream.WITH: { if (inFunction) { // With statements require an activation object. ((FunctionNode) tree).setRequiresActivation(true); } loops.push(node); Node leave = node.getNextSibling(); if (leave.getType() != TokenStream.LEAVEWITH) { throw new RuntimeException("Unexpected tree"); } loopEnds.push(leave); break; } case TokenStream.TRY: { Node finallytarget = (Node)node.getProp(Node.FINALLY_PROP); if (finallytarget != null) { hasFinally = true; loops.push(node); loopEnds.push(finallytarget); } Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount == null) { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(1)); } else { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(localCount.intValue() + 1)); } break; } case TokenStream.TARGET: case TokenStream.LEAVEWITH: if (!loopEnds.empty() && loopEnds.peek() == node) { loopEnds.pop(); loops.pop(); } break; case TokenStream.RETURN: { /* If we didn't support try/finally, it wouldn't be * necessary to put LEAVEWITH nodes here... but as * we do need a series of JSR FINALLY nodes before * each RETURN, we need to ensure that each finally * block gets the correct scope... which could mean * that some LEAVEWITH nodes are necessary. */ if (!hasFinally) break; // skip the whole mess. Node parent = iterator.getCurrentParent(); for (int i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.elementAt(i); int elemtype = n.getType(); if (elemtype == TokenStream.TRY) { Node jsrnode = new Node(TokenStream.JSR); Object jsrtarget = n.getProp(Node.FINALLY_PROP); jsrnode.putProp(Node.TARGET_PROP, jsrtarget); parent.addChildBefore(jsrnode, node); } else if (elemtype == TokenStream.WITH) { parent.addChildBefore(new Node(TokenStream.LEAVEWITH), node); } } break; } case TokenStream.BREAK: case TokenStream.CONTINUE: { Node loop = null; boolean labelled = node.hasChildren(); String id = null; if (labelled) { /* get the label */ Node child = node.getFirstChild(); id = child.getString(); node.removeChild(child); } int i; Node parent = iterator.getCurrentParent(); for (i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.elementAt(i); int elemtype = n.getType(); if (elemtype == TokenStream.WITH) { parent.addChildBefore(new Node(TokenStream.LEAVEWITH), node); } else if (elemtype == TokenStream.TRY) { Node jsrFinally = new Node(TokenStream.JSR); Object jsrTarget = n.getProp(Node.FINALLY_PROP); jsrFinally.putProp(Node.TARGET_PROP, jsrTarget); parent.addChildBefore(jsrFinally, node); } else if (!labelled && (elemtype == TokenStream.LOOP || (elemtype == TokenStream.SWITCH && type == TokenStream.BREAK))) { /* if it's a simple break/continue, break from the * nearest enclosing loop or switch */ loop = n; break; } else if (labelled && elemtype == TokenStream.LABEL && id.equals((String)n.getProp(Node.LABEL_PROP))) { loop = n; break; } } int propType = type == TokenStream.BREAK ? Node.BREAK_PROP : Node.CONTINUE_PROP; Node target = loop == null ? null : (Node) loop.getProp(propType); if (loop == null || target == null) { String message; if (!labelled) { // didn't find an appropriate target if (type == TokenStream.CONTINUE) { message = Context.getMessage ("msg.continue.outside", null); } else { message = Context.getMessage ("msg.bad.break", null); } } else if (loop != null) { message = Context.getMessage0("msg.continue.nonloop"); } else { Object[] errArgs = { id }; message = Context.getMessage ("msg.undef.label", errArgs); } reportMessage(Context.getContext(), message, node, tree, true, scope); node.setType(TokenStream.NOP); break; } node.setType(TokenStream.GOTO); node.putProp(Node.TARGET_PROP, target); break; } case TokenStream.CALL: if (isSpecialCallName(tree, node)) node.putProp(Node.SPECIALCALL_PROP, Boolean.TRUE); visitCall(node, tree); break; case TokenStream.NEW: if (isSpecialCallName(tree, node)) node.putProp(Node.SPECIALCALL_PROP, Boolean.TRUE); visitNew(node, tree); break; case TokenStream.DOT: { Node right = node.getLastChild(); right.setType(TokenStream.STRING); break; } case TokenStream.EXPRSTMT: node.setType(inFunction ? TokenStream.POP : TokenStream.POPV); break; case TokenStream.OBJECT: { Vector regexps = (Vector) tree.getProp(Node.REGEXP_PROP); if (regexps == null) { regexps = new Vector(3); tree.putProp(Node.REGEXP_PROP, regexps); } regexps.addElement(node); Node n = new Node(TokenStream.OBJECT); iterator.replaceCurrent(n); n.putProp(Node.REGEXP_PROP, node); break; } case TokenStream.VAR: { ShallowNodeIterator i = node.getChildIterator(); Node result = new Node(TokenStream.BLOCK); while (i.hasMoreElements()) { Node n = i.nextNode(); if (!n.hasChildren()) continue; Node init = n.getFirstChild(); n.removeChild(init); Node asn = (Node) irFactory.createAssignment( TokenStream.NOP, n, init, null, false); Node pop = new Node(TokenStream.POP, asn, node.getDatum()); result.addChildToBack(pop); } iterator.replaceCurrent(result); break; } case TokenStream.DELPROP: case TokenStream.SETNAME: { if (!inFunction || inWithStatement()) break; Node bind = node.getFirstChild(); if (bind == null || bind.getType() != TokenStream.BINDNAME) break; String name = bind.getString(); Context cx = Context.getCurrentContext(); if (cx != null && cx.isActivationNeeded(name)) { // use of "arguments" requires an activation object. ((FunctionNode) tree).setRequiresActivation(true); } VariableTable vars = getVariableTable(tree); if (vars.getVariable(name) != null) { if (type == TokenStream.SETNAME) { node.setType(TokenStream.SETVAR); bind.setType(TokenStream.STRING); } else { // Local variables are by definition permanent Node n = new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE)); iterator.replaceCurrent(n); } } break; } case TokenStream.GETPROP: if (inFunction) { Node n = node.getFirstChild().getNextSibling(); String name = n == null ? "" : n.getString(); Context cx = Context.getCurrentContext(); if ((cx != null && cx.isActivationNeeded(name)) || (name.equals("length") && Context.getContext().getLanguageVersion() == Context.VERSION_1_2)) { // Use of "arguments" or "length" in 1.2 requires // an activation object. ((FunctionNode) tree).setRequiresActivation(true); } } break; case TokenStream.NAME: { if (!inFunction || inWithStatement()) break; String name = node.getString(); Context cx = Context.getCurrentContext(); if (cx != null && cx.isActivationNeeded(name)) { // Use of "arguments" requires an activation object. ((FunctionNode) tree).setRequiresActivation(true); } VariableTable vars = getVariableTable(tree); if (vars.getVariable(name) != null) { node.setType(TokenStream.GETVAR); } break; } } } return tree; }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/NodeTransformer.java/clean/src/org/mozilla/javascript/NodeTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
2510,
12,
907,
2151,
16,
2029,
16307,
16,
3155,
1228,
3742,
16,
12900,
22780,
2146,
13,
377,
288,
3639,
14075,
273,
394,
7283,
5621,
3639,
2798,
24980,
273,
394,
7283,
5621,
3639,
316,
2083,
273,
2151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
31,
3639,
309,
16051,
267,
2083,
13,
288,
5411,
527,
6158,
12,
3413,
16,
13522,
1388,
12,
3413,
10019,
3639,
289,
3639,
9482,
1733,
273,
752,
7937,
1733,
12,
3428,
16,
2146,
1769,
3639,
368,
358,
1923,
5314,
731,
12366,
309,
1158,
3095,
4398,
854,
1399,
18,
3639,
1250,
711,
29987,
273,
629,
31,
3639,
2962,
1019,
907,
3198,
2775,
273,
2151,
18,
588,
1386,
1019,
3198,
5621,
3639,
2029,
756,
31,
3639,
1323,
14015,
2159,
273,
2775,
18,
4285,
907,
10756,
480,
446,
13,
288,
5411,
509,
618,
273,
756,
18,
588,
559,
5621,
1850,
1953,
30390,
30,
5411,
1620,
261,
723,
13,
288,
2868,
648,
3155,
1228,
18,
7788,
30,
7734,
309,
261,
2159,
422,
2151,
13,
288,
10792,
368,
1436,
326,
3152,
358,
2190,
1014,
16,
326,
10792,
368,
1472,
4591,
3096,
13805,
18,
10792,
7110,
1388,
4153,
273,
13522,
1388,
12,
3413,
1769,
10792,
527,
6158,
12,
3413,
16,
4153,
1769,
10792,
368,
1436,
327,
358,
679,
309,
3577,
18,
10792,
2029,
15452,
273,
756,
18,
588,
3024,
1763,
5621,
10792,
2029,
1142,
8952,
273,
15452,
18,
588,
3024,
1763,
5621,
10792,
309,
261,
2722,
8952,
422,
446,
747,
13491,
1142,
8952,
18,
588,
559,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
2510,
12,
907,
2151,
16,
2029,
16307,
16,
3155,
1228,
3742,
16,
12900,
22780,
2146,
13,
377,
288,
3639,
14075,
273,
394,
7283,
5621,
3639,
2798,
24980,
273,
394,
7283,
5621,
3639,
316,
2083,
273,
2151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
31,
3639,
309,
16051,
267,
2083,
13,
288,
5411,
527,
6158,
12,
3413,
16,
13522,
1388,
12,
3413,
10019,
3639,
289,
3639,
9482,
1733,
273,
752,
7937,
1733,
12,
3428,
16,
2146,
1769,
3639,
368,
358,
1923,
5314,
731,
12366,
309,
1158,
3095,
4398,
854,
1399,
18,
3639,
1250,
711,
29987,
273,
629,
31,
3639,
2962,
1019,
907,
3198,
2775,
273,
2151,
18,
588,
1386,
1019,
3198,
5621,
3639,
2029,
756,
2
] |
if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); }
|
if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); }
|
public void attachSingletonClass(RubyObject rbObject) { if (isSingleton()) { if (getInstanceVariables() == null) { setInstanceVariables(new RubyHashMap()); } getInstanceVariables().put(getRuby().intern("__atached__"), rbObject); } }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3306,
19571,
797,
12,
54,
10340,
921,
7138,
921,
13,
288,
202,
202,
430,
261,
291,
19571,
10756,
288,
1082,
202,
430,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
9506,
202,
542,
1442,
6158,
12,
2704,
19817,
8658,
10663,
1082,
202,
97,
1082,
202,
588,
1442,
6158,
7675,
458,
12,
588,
54,
10340,
7675,
267,
798,
2932,
972,
396,
2049,
14437,
3631,
7138,
921,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3306,
19571,
797,
12,
54,
10340,
921,
7138,
921,
13,
288,
202,
202,
430,
261,
291,
19571,
10756,
288,
1082,
202,
430,
261,
588,
1442,
6158,
1435,
422,
446,
13,
288,
9506,
202,
542,
1442,
6158,
12,
2704,
19817,
8658,
10663,
1082,
202,
97,
1082,
202,
588,
1442,
6158,
7675,
458,
12,
588,
54,
10340,
7675,
267,
798,
2932,
972,
396,
2049,
14437,
3631,
7138,
921,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static boolean queryAdjacency(IBond a1, IBond b1, IBond a2, IBond b2) { IAtom atom1 = null; IAtom atom2 = null; if (a1.contains(b1.getAtomAt(0))) { atom1 = b1.getAtomAt(0); } else if (a1.contains(b1.getAtomAt(1))) { atom1 = b1.getAtomAt(1); } if (a2.contains(b2.getAtomAt(0))) { atom2 = b2.getAtomAt(0); } else if (a2.contains(b2.getAtomAt(1))) { atom2 = b2.getAtomAt(1); } if (atom1 != null && atom2 != null){ return ((IQueryAtom)atom2).matches(atom1); } else if (atom1 == null && atom2 == null) { return true; } else { return false; } }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/56c201de67d3ab0b41150bdf3c9bae4980107820/UniversalIsomorphismTester.java/clean/src/org/openscience/cdk/isomorphism/UniversalIsomorphismTester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
843,
17886,
1077,
2075,
12,
45,
9807,
279,
21,
16,
16178,
324,
21,
16,
16178,
279,
22,
16,
16178,
324,
22,
13,
288,
4202,
202,
225,
8831,
3179,
21,
273,
446,
31,
202,
225,
8831,
3179,
22,
273,
446,
31,
5411,
309,
261,
69,
21,
18,
12298,
12,
70,
21,
18,
588,
3641,
861,
12,
20,
20349,
288,
1850,
3179,
21,
273,
324,
21,
18,
588,
3641,
861,
12,
20,
1769,
1377,
289,
469,
309,
261,
69,
21,
18,
12298,
12,
70,
21,
18,
588,
3641,
861,
12,
21,
20349,
288,
1850,
3179,
21,
273,
324,
21,
18,
588,
3641,
861,
12,
21,
1769,
1377,
289,
5411,
309,
261,
69,
22,
18,
12298,
12,
70,
22,
18,
588,
3641,
861,
12,
20,
20349,
288,
1850,
3179,
22,
273,
324,
22,
18,
588,
3641,
861,
12,
20,
1769,
1377,
289,
469,
309,
261,
69,
22,
18,
12298,
12,
70,
22,
18,
588,
3641,
861,
12,
21,
20349,
288,
1850,
3179,
22,
273,
324,
22,
18,
588,
3641,
861,
12,
21,
1769,
1377,
289,
5411,
309,
261,
7466,
21,
480,
446,
597,
3179,
22,
480,
446,
15329,
1850,
327,
14015,
45,
1138,
3641,
13,
7466,
22,
2934,
8436,
12,
7466,
21,
1769,
1377,
289,
469,
309,
261,
7466,
21,
422,
446,
597,
3179,
22,
422,
446,
13,
288,
202,
1377,
327,
638,
31,
1377,
289,
469,
288,
202,
1377,
327,
629,
31,
1377,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1250,
843,
17886,
1077,
2075,
12,
45,
9807,
279,
21,
16,
16178,
324,
21,
16,
16178,
279,
22,
16,
16178,
324,
22,
13,
288,
4202,
202,
225,
8831,
3179,
21,
273,
446,
31,
202,
225,
8831,
3179,
22,
273,
446,
31,
5411,
309,
261,
69,
21,
18,
12298,
12,
70,
21,
18,
588,
3641,
861,
12,
20,
20349,
288,
1850,
3179,
21,
273,
324,
21,
18,
588,
3641,
861,
12,
20,
1769,
1377,
289,
469,
309,
261,
69,
21,
18,
12298,
12,
70,
21,
18,
588,
3641,
861,
12,
21,
20349,
288,
1850,
3179,
21,
273,
324,
21,
18,
588,
3641,
861,
12,
21,
1769,
1377,
289,
5411,
309,
261,
69,
22,
18,
12298,
12,
70,
2
] |
||
return false;
|
return res;
|
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/1df827c7017ec51d388df820b0f34b66617c0646/JTextComponent.java/clean/javax/swing/text/JTextComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11971,
30453,
22138,
22743,
2384,
1435,
225,
288,
565,
309,
261,
588,
3054,
1435,
1276,
804,
22743,
13,
1377,
327,
5089,
7675,
588,
2384,
1435,
405,
12822,
4193,
1225,
7675,
2819,
31,
565,
327,
400,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
11971,
30453,
22138,
22743,
2384,
1435,
225,
288,
565,
309,
261,
588,
3054,
1435,
1276,
804,
22743,
13,
1377,
327,
5089,
7675,
588,
2384,
1435,
405,
12822,
4193,
1225,
7675,
2819,
31,
565,
327,
400,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dHeight = Math.max( dFullHeight, dHeight ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) {
|
dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) {
|
public final Size compute( IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc ) throws ChartException { // THREE CASES: // 1. ALL SERIES IN ONE ARRAYLIST // 2. ONE SERIES PER ARRAYLIST // 3. ALL OTHERS Legend lg = cm.getLegend( ); if ( !lg.isSetOrientation( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.orientation.horzvert", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } if ( !lg.isSetDirection( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.direction.tblr", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS Orientation orientation = lg.getOrientation( ); Direction direction = lg.getDirection( ); double maxWrappingSize = lg.getWrappingSize( ); Label la = LabelImpl.create( ); la.setCaption( (Text) EcoreUtil.copy( lg.getText( ) ) ); ClientArea ca = lg.getClientArea( ); LineAttributes lia = ca.getOutline( ); double dSeparatorThickness = lia.getThickness( ); double dWidth = 0, dHeight = 0; la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); double dItemHeight = itm.getFullHeight( ); Series se; ArrayList al; double dScale = xs.getDpiResolution( ) / 72d; Insets insCA = ca.getInsets( ).scaledInstance( dScale ); final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); Series seBase; // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); double dAvailableWidth = boFull.getWidth( ) - ins.getLeft( ) - ins.getRight( ) - lgIns.getLeft( ) - lgIns.getRight( ); double dAvailableHeight = boFull.getHeight( ) - ins.getTop( ) - ins.getBottom( ) - lgIns.getTop( ) - lgIns.getBottom( ) - cm.getTitle( ) .getBounds( ) .scaledInstance( dScale ) .getHeight( ); // Calculate if minSlice applicable. boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; String sMinSliceLabel = null; boolean bMinSliceApplied = false; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ).isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataSet type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( orientation.getValue( ) == Orientation.VERTICAL ) { double dW, dMaxW = 0; double dFullHeight = 0, dExtraWidth = 0, dDeltaHeight; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; // ONLY // SUPPORT // 1 // BASE // AXIS // FOR // NOW if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); // OK TO ASSUME THAT 1 BASE SERIES // DEFINITION EXISTS } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); // OK TO ASSUME THAT 1 BASE SERIES // DEFINITION EXISTS } seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); // OK TO // ASSUME // THAT 1 // BASE // RUNTIME // SERIES // EXISTS DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } while ( dsiBase.hasNext( ) ) { // TODO filter the not-used legend. Object obj = dsiBase.next( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); dDeltaHeight = insCA.getTop( ) + itm.getFullHeight( ) + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = itm.getFullWidth( ); dFullHeight = Math.max( dFullHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( itm.getFullWidth( ), dWidth ); dHeight += dDeltaHeight; } } // compute the extra MinSlice legend item if applicable. if ( bMinSliceDefined && bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); dDeltaHeight = insCA.getTop( ) + itm.getFullHeight( ) + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = itm.getFullWidth( ); dFullHeight = Math.max( dFullHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( itm.getFullWidth( ), dWidth ); dHeight += dDeltaHeight; } } dWidth += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dFullHeight, dHeight ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) // (VERTICAL // => // TB) { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); dW = itm.getFullWidth( ); dDeltaHeight = insCA.getTop( ) + itm.getFullHeight( ) + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = (Label) EcoreUtil.copy( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dDeltaHeight += itm.getFullHeight( ) + 2; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dFullHeight = Math.max( dFullHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } } // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { dHeight += dSeparatorThickness; } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + MAX // ITEM WIDTH + RIGHT INSETS dWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dMaxW + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dFullHeight, dHeight ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) // (VERTICAL // => // LR) { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); dW = itm.getFullWidth( ); dDeltaHeight = insCA.getTop( ) + itm.getFullHeight( ) + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = (Label) EcoreUtil.copy( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dDeltaHeight += itm.getFullHeight( ) + 2; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dFullHeight = Math.max( dFullHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } } dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dFullHeight = Math.max( dFullHeight, dHeight ); dHeight = 0; // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { dExtraWidth += dSeparatorThickness; } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + // MAX ITEM WIDTH + RIGHT INSETS dWidth += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dFullHeight, dHeight ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } } else if ( orientation.getValue( ) == Orientation.HORIZONTAL ) { double dH, dMaxH = 0; double dFullWidth = 0, dExtraHeight = 0, dDeltaWidth; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; // ONLY // SUPPORT // 1 // BASE // AXIS // FOR // NOW if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); // OK TO ASSUME // THAT 1 BASE // SERIES // DEFINITION // EXISTS } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); // OK TO ASSUME // THAT 1 BASE // SERIES // DEFINITION // EXISTS } seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); // OK TO // ASSUME // THAT 1 // BASE // RUNTIME // SERIES // EXISTS DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } while ( dsiBase.hasNext( ) ) { // TODO filter the not-used legend. Object obj = dsiBase.next( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); dDeltaWidth = insCA.getLeft( ) + itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = itm.getFullHeight( ); dFullWidth = Math.max( dFullWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( itm.getFullHeight( ), dHeight ); dWidth += dDeltaWidth; } } // compute the extra MinSlice legend item if applicable. if ( bMinSliceDefined && bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); dDeltaWidth = insCA.getLeft( ) + itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = itm.getFullHeight( ); dFullWidth = Math.max( dFullWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( itm.getFullHeight( ), dHeight ); dWidth += dDeltaWidth; } } dHeight += dExtraHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dWidth = Math.max( dWidth, dFullWidth ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) // (HORIZONTAL // => // TB) { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dWidth = 0; al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); dH = itm.getFullHeight( ); dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + itm.getFullWidth( ) + insCA.getRight( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = (Label) EcoreUtil.copy( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dH += itm.getFullHeight( ) + 2; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dFullWidth = Math.max( dFullWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } } dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dFullWidth = Math.max( dFullWidth, dWidth ); dWidth = 0; // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { dHeight += dSeparatorThickness; } } dHeight += insCA.getTop( ) + dVerticalSpacing + insCA.getBottom( ) + dExtraHeight; dWidth = Math.max( dFullWidth, dWidth ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) // (HORIZONTAL // => // LR) { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); dH = itm.getFullHeight( ); dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + itm.getFullWidth( ) + insCA.getRight( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = (Label) EcoreUtil.copy( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dH += itm.getFullHeight( ) + 2; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dFullWidth = Math.max( dFullWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { dWidth += dSeparatorThickness; } } dHeight += insCA.getTop( ) + dVerticalSpacing + insCA.getBottom( ) + dMaxH + dExtraHeight; dWidth = Math.max( dFullWidth, dWidth ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction }, ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.orientation", //$NON-NLS-1$ new Object[]{ orientation }, ResourceBundle.getBundle( Messages.ENGINE, xs.getLocale( ) ) ); } // consider legend title size. Label lgTitle = lg.getTitle( ); if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } switch ( lg.getTitlePosition( ).getValue( ) ) { case Position.ABOVE : case Position.BELOW : dHeight += bb.getHeight( ); dWidth = Math.max( dWidth, bb.getWidth( ) ); break; case Position.LEFT : case Position.RIGHT : dWidth += bb.getWidth( ); dHeight = Math.max( dHeight, bb.getHeight( ) ); break; } } itm.dispose( ); // DISPOSE RESOURCE AFTER USE if ( rtc != null ) { LegendItemLayoutHints lilh = new LegendItemLayoutHints( ); lilh.set( SizeImpl.create( dWidth, dHeight ) ); rtc.setLegendItemLayoutHints( lilh ); } sz = SizeImpl.create( dWidth, dHeight ); return sz; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ad38cf76f1d641ada210d2a5b0551677d4e55a71/LegendBuilder.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
6321,
3671,
12,
1599,
291,
1601,
2081,
9280,
16,
14804,
5003,
16,
1082,
202,
6485,
1852,
8526,
24336,
69,
16,
1939,
950,
1042,
436,
5111,
262,
1216,
14804,
503,
202,
95,
202,
202,
759,
18979,
18403,
55,
30,
202,
202,
759,
404,
18,
8061,
7758,
8805,
2120,
15623,
14884,
7085,
202,
202,
759,
576,
18,
15623,
7758,
8805,
10950,
14884,
7085,
202,
202,
759,
890,
18,
8061,
531,
2455,
11367,
202,
202,
16812,
15266,
273,
5003,
18,
588,
16812,
12,
11272,
202,
202,
430,
261,
401,
23623,
18,
291,
694,
14097,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
13990,
2689,
16,
6862,
202,
6,
4064,
18,
16292,
18,
19235,
18,
76,
280,
94,
1097,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
9280,
18,
588,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
401,
23623,
18,
291,
694,
8212,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
13990,
2689,
16,
6862,
202,
6,
4064,
18,
16292,
18,
9855,
18,
16187,
86,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
18731,
18,
588,
3405,
12,
4838,
18,
28980,
16,
9280,
18,
588,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
759,
12584,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
6321,
3671,
12,
1599,
291,
1601,
2081,
9280,
16,
14804,
5003,
16,
1082,
202,
6485,
1852,
8526,
24336,
69,
16,
1939,
950,
1042,
436,
5111,
262,
1216,
14804,
503,
202,
95,
202,
202,
759,
18979,
18403,
55,
30,
202,
202,
759,
404,
18,
8061,
7758,
8805,
2120,
15623,
14884,
7085,
202,
202,
759,
576,
18,
15623,
7758,
8805,
10950,
14884,
7085,
202,
202,
759,
890,
18,
8061,
531,
2455,
11367,
202,
202,
16812,
15266,
273,
5003,
18,
588,
16812,
12,
11272,
202,
202,
430,
261,
401,
23623,
18,
291,
694,
14097,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
2
] |
inputButton.setText( Messages.getString( "ImageBuilderDialog.Label.Open" ) );
|
inputButton.setText( Messages.getString( "ImageBuilder.Label.Open" ) );
|
private void swtichToExprType( ) { Label title = new Label( inputArea, SWT.NONE ); uriEditor = new Text( inputArea, SWT.SINGLE | SWT.BORDER ); uriEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); uriEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); Composite innerComp = new Composite( inputArea, SWT.NONE ); innerComp.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); if ( selectedType == BLOB_TYPE ) { innerComp.setLayout( new GridLayout( 3, false ) ); title.setText( Messages.getString( "ImageBuilderDialog.Label.EnterExpr" ) ); //$NON-NLS-1$ } else { innerComp.setLayout( new GridLayout( 2, false ) ); title.setText( DLG_ENTER_URI_LABEL ); } Button inputButton = new Button( innerComp, SWT.PUSH ); inputButton.setText( Messages.getString( "ImageBuilderDialog.Label.Open" ) ); //$NON-NLS-1$ inputButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); inputButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { openExpression( ); } } ); if ( selectedType == BLOB_TYPE ) { bindingButton = new Button( innerComp, SWT.PUSH ); bindingButton.setText( Messages.getString( "ImageBuilderDialog.Label.Binding" ) ); //$NON-NLS-1$ bindingButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); bindingButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { openBidingDialog( ); } } ); } previewButton = new Button( innerComp, SWT.PUSH ); previewButton.setText( DLG_PREVIEW_LABEL ); previewButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); previewButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { switch ( selectedType ) { case URI_TYPE : uriEditor.setText( uriEditor.getText( ).trim( ) ); preview( removeQuoteString( uriEditor.getText( ) ) ); break; } } } ); initURIEditor( ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5751a8ecebb4c1d996f224af72dadd18c0d44423/ImageBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ImageBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1352,
88,
1354,
774,
4742,
559,
12,
262,
202,
95,
202,
202,
2224,
2077,
273,
394,
5287,
12,
810,
5484,
16,
348,
8588,
18,
9826,
11272,
202,
202,
1650,
6946,
273,
394,
3867,
12,
810,
5484,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
11272,
202,
202,
1650,
6946,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
1650,
6946,
18,
1289,
11047,
2223,
12,
394,
9518,
2223,
12,
262,
288,
1082,
202,
482,
918,
5612,
1528,
12,
9518,
1133,
425,
262,
1082,
202,
95,
9506,
202,
2725,
14388,
12,
11272,
1082,
202,
97,
202,
202,
97,
11272,
202,
202,
9400,
3443,
2945,
273,
394,
14728,
12,
810,
5484,
16,
348,
8588,
18,
9826,
11272,
202,
202,
7872,
2945,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
44,
20344,
67,
26439,
67,
4415,
262,
11272,
202,
202,
430,
261,
3170,
559,
422,
605,
6038,
67,
2399,
262,
202,
202,
95,
1082,
202,
7872,
2945,
18,
542,
3744,
12,
394,
7145,
3744,
12,
890,
16,
629,
262,
11272,
1082,
202,
2649,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
2040,
1263,
6353,
18,
2224,
18,
10237,
4742,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
7872,
2945,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1352,
88,
1354,
774,
4742,
559,
12,
262,
202,
95,
202,
202,
2224,
2077,
273,
394,
5287,
12,
810,
5484,
16,
348,
8588,
18,
9826,
11272,
202,
202,
1650,
6946,
273,
394,
3867,
12,
810,
5484,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
11272,
202,
202,
1650,
6946,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
1650,
6946,
18,
1289,
11047,
2223,
12,
394,
9518,
2223,
12,
262,
288,
1082,
202,
482,
918,
5612,
1528,
12,
9518,
1133,
425,
262,
1082,
202,
95,
9506,
202,
2725,
14388,
12,
11272,
1082,
202,
97,
202,
202,
97,
11272,
202,
202,
9400,
2
] |
int count=0;
|
int end, pix;
|
public static WritableRaster applyLut_INT(WritableRaster wr, final int []lut) { SinglePixelPackedSampleModel sm = (SinglePixelPackedSampleModel)wr.getSampleModel(); DataBufferInt db = (DataBufferInt)wr.getDataBuffer(); final int srcBase = (db.getOffset() + sm.getOffset(wr.getMinX()-wr.getSampleModelTranslateX(), wr.getMinY()-wr.getSampleModelTranslateY())); // Access the pixel data array final int pixels[] = db.getBankData()[0]; final int width = wr.getWidth(); final int height = wr.getHeight(); final int scanStride = sm.getScanlineStride(); int count=0; // For alpha premult we need to multiply all comps. for (int y=0; y<height; y++) { int sp = srcBase + y*scanStride; final int end = sp + width; while (sp<end) { final int pix = pixels[sp]; pixels[sp] = ((pix&0xFF000000) | (lut[(pix>>>16)&0xFF]<<16) | (lut[(pix>>> 8)&0xFF]<< 8) | (lut[(pix )&0xFF] )); sp++; } } return wr; }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/61ef960639dc9d1a174b39c83226e716899e2d8a/Any2sRGBRed.java/clean/sources/org/apache/batik/ext/awt/image/rendered/Any2sRGBRed.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
14505,
18637,
2230,
48,
322,
67,
3217,
12,
12061,
18637,
12408,
16,
4766,
2868,
727,
509,
5378,
80,
322,
13,
288,
3639,
10326,
9037,
4420,
329,
8504,
1488,
3029,
273,
5411,
261,
5281,
9037,
4420,
329,
8504,
1488,
13,
91,
86,
18,
588,
8504,
1488,
5621,
3639,
1910,
1892,
1702,
1319,
273,
261,
751,
1892,
1702,
13,
91,
86,
18,
588,
751,
1892,
5621,
3639,
727,
509,
377,
1705,
2171,
2398,
273,
261,
1966,
18,
588,
2335,
1435,
397,
7734,
3029,
18,
588,
2335,
12,
91,
86,
18,
588,
2930,
60,
1435,
17,
91,
86,
18,
588,
8504,
1488,
12818,
60,
9334,
11794,
12408,
18,
588,
2930,
61,
1435,
17,
91,
86,
18,
588,
8504,
1488,
12818,
61,
1435,
10019,
3639,
368,
5016,
326,
4957,
501,
526,
3639,
727,
509,
8948,
8526,
282,
273,
1319,
18,
588,
16040,
751,
1435,
63,
20,
15533,
3639,
727,
509,
1835,
1377,
273,
12408,
18,
588,
2384,
5621,
3639,
727,
509,
2072,
377,
273,
12408,
18,
588,
2686,
5621,
3639,
727,
509,
4135,
1585,
831,
273,
3029,
18,
588,
7972,
1369,
1585,
831,
5621,
3639,
509,
679,
16,
11871,
31,
540,
368,
2457,
4190,
675,
5421,
732,
1608,
358,
10194,
777,
13979,
18,
3639,
364,
261,
474,
677,
33,
20,
31,
677,
32,
4210,
31,
677,
27245,
288,
5411,
509,
1694,
225,
273,
1705,
2171,
397,
677,
14,
9871,
1585,
831,
31,
5411,
727,
509,
679,
273,
1694,
397,
1835,
31,
5411,
1323,
261,
1752,
32,
409,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
14505,
18637,
2230,
48,
322,
67,
3217,
12,
12061,
18637,
12408,
16,
4766,
2868,
727,
509,
5378,
80,
322,
13,
288,
3639,
10326,
9037,
4420,
329,
8504,
1488,
3029,
273,
5411,
261,
5281,
9037,
4420,
329,
8504,
1488,
13,
91,
86,
18,
588,
8504,
1488,
5621,
3639,
1910,
1892,
1702,
1319,
273,
261,
751,
1892,
1702,
13,
91,
86,
18,
588,
751,
1892,
5621,
3639,
727,
509,
377,
1705,
2171,
2398,
273,
261,
1966,
18,
588,
2335,
1435,
397,
7734,
3029,
18,
588,
2335,
12,
91,
86,
18,
588,
2930,
60,
1435,
17,
91,
86,
18,
588,
8504,
1488,
12818,
60,
9334,
11794,
12408,
18,
588,
2930,
61,
1435,
17,
91,
86,
18,
588,
8504,
1488,
2
] |
HashMap envs = new HashMap(); envs.put(runtime.newString("HOME"), runtime.newString(System.getProperty("user.home"))); runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, runtime.getNil()));
|
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freeze(); runtime.defineGlobalConstant("RUBY_VERSION", version); runtime.defineGlobalConstant("RUBY_RELEASE_DATE", release); runtime.defineGlobalConstant("RUBY_PLATFORM", platform); runtime.defineGlobalConstant("VERSION", version); runtime.defineGlobalConstant("RELEASE_DATE", release); runtime.defineGlobalConstant("PLATFORM", platform); // FIXME: ENV Not really a RubyHash (but close) // FIXME: ENV Should not copy system properties, but should reference them instead HashMap envs = new HashMap(); envs.put(runtime.newString("HOME"), runtime.newString(System.getProperty("user.home"))); runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, runtime.getNil())); runtime.defineVariable(new StringGlobalVariable(runtime, "$KCODE", runtime.newString("UTF8"))); runtime.defineVariable(new StringGlobalVariable(runtime, "$/", runtime.newString("\n"))); runtime.defineVariable(new StringGlobalVariable(runtime, "$\\", runtime.getNil())); runtime.defineVariable(new StringGlobalVariable(runtime, "$,", runtime.getNil())); runtime.defineVariable(new LineNumberGlobalVariable(runtime, "$.", RubyFixnum.one(runtime))); runtime.defineVariable(new LastlineGlobalVariable(runtime, "$_")); runtime.defineVariable(new ErrorInfoGlobalVariable(runtime, "$!", runtime.getNil())); runtime.defineVariable(new SafeGlobalVariable(runtime, "$SAFE")); runtime.defineVariable(new BacktraceGlobalVariable(runtime, "$@")); IRubyObject stdin = RubyIO.fdOpen(runtime, RubyIO.STDIN); IRubyObject stdout = RubyIO.fdOpen(runtime, RubyIO.STDOUT); IRubyObject stderr = RubyIO.fdOpen(runtime, RubyIO.STDERR); runtime.defineVariable(new InputGlobalVariable(runtime, "$stdin", stdin)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$stdout", stdout)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$stderr", stderr)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$>", stdout)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$defout", stdout)); runtime.defineVariable(new OutputGlobalVariable(runtime, "$deferr", stderr)); runtime.defineGlobalConstant("STDIN", stdin); runtime.defineGlobalConstant("STDOUT", stdout); runtime.defineGlobalConstant("STDERR", stderr); runtime.defineVariable(new LoadedFeatures(runtime, "$\"")); runtime.defineVariable(new LoadPath(runtime, "$:")); runtime.defineVariable(new LoadPath(runtime, "$-I")); runtime.defineVariable(new LoadPath(runtime, "$LOAD_PATH")); // ARGF, $< object RubyArgsFile argsFile = new RubyArgsFile(runtime); argsFile.initArgsFile(); }
|
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/f67bf159b486fa2ceb3335f98a350e2e5fefe664/RubyGlobal.java/buggy/src/org/jruby/RubyGlobal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
752,
19834,
12,
7937,
10340,
3099,
13,
288,
3639,
368,
4049,
1779,
30,
3639,
15908,
10340,
921,
1177,
273,
3099,
18,
2704,
780,
12,
2918,
18,
54,
3457,
61,
67,
5757,
2934,
29631,
5621,
3639,
15908,
10340,
921,
3992,
273,
3099,
18,
2704,
780,
12,
2918,
18,
31075,
900,
67,
4594,
2934,
29631,
5621,
3639,
15908,
10340,
921,
4072,
273,
3099,
18,
2704,
780,
12,
2918,
18,
6253,
789,
4983,
2934,
29631,
5621,
3639,
3099,
18,
11255,
5160,
6902,
2932,
54,
3457,
61,
67,
5757,
3113,
1177,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
54,
3457,
61,
67,
30762,
67,
4594,
3113,
3992,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
54,
3457,
61,
67,
6253,
789,
4983,
3113,
4072,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
5757,
3113,
1177,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
30762,
67,
4594,
3113,
3992,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
6253,
789,
4983,
3113,
4072,
1769,
9506,
202,
759,
9852,
30,
15615,
2288,
8654,
279,
19817,
2310,
261,
12885,
1746,
13,
3196,
202,
759,
9852,
30,
15615,
9363,
486,
1610,
2619,
1790,
16,
1496,
1410,
2114,
2182,
3560,
3639,
4317,
22432,
273,
394,
4317,
5621,
202,
202,
30339,
18,
458,
12,
9448,
18,
2704,
780,
2932,
14209,
6,
3631,
3099,
18,
2704,
780,
12,
3163,
18,
588,
1396,
2932,
1355,
18,
8712,
6,
3719,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
11986,
3113,
19817,
2310,
18,
2704,
2310,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
752,
19834,
12,
7937,
10340,
3099,
13,
288,
3639,
368,
4049,
1779,
30,
3639,
15908,
10340,
921,
1177,
273,
3099,
18,
2704,
780,
12,
2918,
18,
54,
3457,
61,
67,
5757,
2934,
29631,
5621,
3639,
15908,
10340,
921,
3992,
273,
3099,
18,
2704,
780,
12,
2918,
18,
31075,
900,
67,
4594,
2934,
29631,
5621,
3639,
15908,
10340,
921,
4072,
273,
3099,
18,
2704,
780,
12,
2918,
18,
6253,
789,
4983,
2934,
29631,
5621,
3639,
3099,
18,
11255,
5160,
6902,
2932,
54,
3457,
61,
67,
5757,
3113,
1177,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
54,
3457,
61,
67,
30762,
67,
4594,
3113,
3992,
1769,
3639,
3099,
18,
11255,
5160,
6902,
2932,
54,
3457,
61,
2
] |
|
rowModel.setLeadSelectionIndex(rowLead);
|
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colModel.getLeadSelectionIndex(); int colMax = table.getModel().getColumnCount() - 1; String command = e.getActionCommand(); if (command.equals("selectPreviousRowExtendSelection")) { rowModel.setLeadSelectionIndex(Math.max(rowLead - 1, 0)); colModel.setLeadSelectionIndex(colLead); } else if (command.equals("selectLastColumn")) { rowModel.setSelectionInterval(rowLead, rowLead); colModel.setSelectionInterval(colMax, colMax); } else if (command.equals("startEditing")) { if (table.isCellEditable(rowLead, colLead)) table.editCellAt(rowLead,colLead); } else if (command.equals("selectFirstRowExtendSelection")) { rowModel.setLeadSelectionIndex(0); colModel.setLeadSelectionIndex(colLead); } else if (command.equals("selectFirstColumn")) { rowModel.setSelectionInterval(rowLead, rowLead); colModel.setSelectionInterval(0, 0); } else if (command.equals("selectFirstColumnExtendSelection")) { colModel.setLeadSelectionIndex(0); rowModel.setLeadSelectionIndex(rowLead); } else if (command.equals("selectLastRow")) { rowModel.setSelectionInterval(rowMax,rowMax); colModel.setSelectionInterval(colLead, colLead); } else if (command.equals("selectNextRowExtendSelection")) { rowModel.setLeadSelectionIndex(Math.min(rowLead + 1, rowMax)); colModel.setLeadSelectionIndex(colLead); } else if (command.equals("selectFirstRow")) { rowModel.setSelectionInterval(0,0); colModel.setSelectionInterval(colLead, colLead); } else if (command.equals("selectNextColumnExtendSelection")) { colModel.setLeadSelectionIndex(Math.min(colLead + 1, colMax)); rowModel.setLeadSelectionIndex(rowLead); } else if (command.equals("selectLastColumnExtendSelection")) { colModel.setLeadSelectionIndex(colMax); rowModel.setLeadSelectionIndex(rowLead); } else if (command.equals("selectPreviousColumnExtendSelection")) { colModel.setLeadSelectionIndex(Math.max(colLead - 1, 0)); rowModel.setLeadSelectionIndex(rowLead); } else if (command.equals("selectNextRow")) { rowModel.setSelectionInterval(Math.min(rowLead + 1, rowMax), Math.min(rowLead + 1, rowMax)); colModel.setSelectionInterval(colLead,colLead); } else if (command.equals("scrollUpExtendSelection")) { int target; if (rowLead == getFirstVisibleRowIndex()) target = Math.max (0, rowLead - (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getFirstVisibleRowIndex(); rowModel.setLeadSelectionIndex(target); colModel.setLeadSelectionIndex(colLead); } else if (command.equals("selectPreviousRow")) { rowModel.setSelectionInterval(Math.max(rowLead - 1, 0), Math.max(rowLead - 1, 0)); colModel.setSelectionInterval(colLead,colLead); } else if (command.equals("scrollRightChangeSelection")) { int target; if (colLead == getLastVisibleColumnIndex()) target = Math.min (colMax, colLead + (getLastVisibleColumnIndex() - getFirstVisibleColumnIndex() + 1)); else target = getLastVisibleColumnIndex(); colModel.setSelectionInterval(target, target); rowModel.setSelectionInterval(rowLead, rowLead); } else if (command.equals("selectPreviousColumn")) { rowModel.setSelectionInterval(rowLead,rowLead); colModel.setSelectionInterval(Math.max(colLead - 1, 0), Math.max(colLead - 1, 0)); } else if (command.equals("scrollLeftChangeSelection")) { int target; if (colLead == getFirstVisibleColumnIndex()) target = Math.max (0, colLead - (getLastVisibleColumnIndex() - getFirstVisibleColumnIndex() + 1)); else target = getFirstVisibleColumnIndex(); colModel.setSelectionInterval(target, target); rowModel.setSelectionInterval(rowLead, rowLead); } else if (command.equals("clearSelection")) { table.clearSelection(); } else if (command.equals("cancel")) { // FIXME: implement other parts of "cancel" like undo-ing last // selection. Right now it just calls editingCancelled if // we're currently editing. if (table.isEditing()) table.editingCanceled(new ChangeEvent("cancel")); } else if (command.equals("selectNextRowCell") || command.equals("selectPreviousRowCell") || command.equals("selectNextColumnCell") || command.equals("selectPreviousColumnCell")) { // If nothing is selected, select the first cell in the table if (table.getSelectedRowCount() == 0 && table.getSelectedColumnCount() == 0) { rowModel.setSelectionInterval(0, 0); colModel.setSelectionInterval(0, 0); return; } // If the lead selection index isn't selected (ie a remove operation // happened, then set the lead to the first selected cell in the // table if (!table.isCellSelected(rowLead, colLead)) { rowModel.addSelectionInterval(rowModel.getMinSelectionIndex(), rowModel.getMinSelectionIndex()); colModel.addSelectionInterval(colModel.getMinSelectionIndex(), colModel.getMinSelectionIndex()); return; } // multRowsSelected and multColsSelected tell us if multiple rows or // columns are selected, respectively boolean multRowsSelected, multColsSelected; multRowsSelected = table.getSelectedRowCount() > 1 && table.getRowSelectionAllowed(); multColsSelected = table.getSelectedColumnCount() > 1 && table.getColumnSelectionAllowed(); // If there is just one selection, select the next cell, and wrap // when you get to the edges of the table. if (!multColsSelected && !multRowsSelected) { if (command.indexOf("Column") != -1) advanceSingleSelection(colModel, colMax, rowModel, rowMax, (command.equals ("selectPreviousColumnCell"))); else advanceSingleSelection(rowModel, rowMax, colModel, colMax, (command.equals ("selectPreviousRowCell"))); return; } // rowMinSelected and rowMaxSelected are the minimum and maximum // values respectively of selected cells in the row selection model // Similarly for colMinSelected and colMaxSelected. int rowMaxSelected = table.getRowSelectionAllowed() ? rowModel.getMaxSelectionIndex() : table.getModel().getRowCount() - 1; int rowMinSelected = table.getRowSelectionAllowed() ? rowModel.getMinSelectionIndex() : 0; int colMaxSelected = table.getColumnSelectionAllowed() ? colModel.getMaxSelectionIndex() : table.getModel().getColumnCount() - 1; int colMinSelected = table.getColumnSelectionAllowed() ? colModel.getMinSelectionIndex() : 0; // If there are multiple rows and columns selected, select the next // cell and wrap at the edges of the selection. if (command.indexOf("Column") != -1) advanceMultipleSelection(colModel, colMinSelected, colMaxSelected, rowModel, rowMinSelected, rowMaxSelected, (command.equals ("selectPreviousColumnCell")), true); else advanceMultipleSelection(rowModel, rowMinSelected, rowMaxSelected, colModel, colMinSelected, colMaxSelected, (command.equals ("selectPreviousRowCell")), false); } else if (command.equals("selectNextColumn")) { rowModel.setSelectionInterval(rowLead,rowLead); colModel.setSelectionInterval(Math.min(colLead + 1, colMax), Math.min(colLead + 1, colMax)); } else if (command.equals("scrollLeftExtendSelection")) { int target; if (colLead == getFirstVisibleColumnIndex()) target = Math.max (0, colLead - (getLastVisibleColumnIndex() - getFirstVisibleColumnIndex() + 1)); else target = getFirstVisibleColumnIndex(); colModel.setLeadSelectionIndex(target); rowModel.setLeadSelectionIndex(rowLead); } else if (command.equals("scrollDownChangeSelection")) { int target; if (rowLead == getLastVisibleRowIndex()) target = Math.min (rowMax, rowLead + (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getLastVisibleRowIndex(); rowModel.setSelectionInterval(target, target); colModel.setSelectionInterval(colLead, colLead); } else if (command.equals("scrollRightExtendSelection")) { int target; if (colLead == getLastVisibleColumnIndex()) target = Math.min (colMax, colLead + (getLastVisibleColumnIndex() - getFirstVisibleColumnIndex() + 1)); else target = getLastVisibleColumnIndex(); colModel.setLeadSelectionIndex(target); rowModel.setLeadSelectionIndex(rowLead); } else if (command.equals("selectAll")) { table.selectAll(); } else if (command.equals("selectLastRowExtendSelection")) { rowModel.setLeadSelectionIndex(rowMax); colModel.setLeadSelectionIndex(colLead); } else if (command.equals("scrollDownExtendSelection")) { int target; if (rowLead == getLastVisibleRowIndex()) target = Math.min (rowMax, rowLead + (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getLastVisibleRowIndex(); rowModel.setLeadSelectionIndex(target); colModel.setLeadSelectionIndex(colLead); } else if (command.equals("scrollUpChangeSelection")) { int target; if (rowLead == getFirstVisibleRowIndex()) target = Math.max (0, rowLead - (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getFirstVisibleRowIndex(); rowModel.setSelectionInterval(target, target); colModel.setSelectionInterval(colLead, colLead); } else if (command.equals("selectNextRowChangeLead")) { if (rowModel.getSelectionMode() != ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) { // just "selectNextRow" rowModel.setSelectionInterval(Math.min(rowLead + 1, rowMax), Math.min(rowLead + 1, rowMax)); colModel.setSelectionInterval(colLead,colLead); } else rowModel.moveLeadSelectionIndex(Math.min(rowLead + 1, rowMax)); } else if (command.equals("selectPreviousRowChangeLead")) { if (rowModel.getSelectionMode() != ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) { // just selectPreviousRow rowModel.setSelectionInterval(Math.max(rowLead - 1, 0), Math.min(rowLead -1, 0)); colModel.setSelectionInterval(colLead,colLead); } else rowModel.moveLeadSelectionIndex(Math.max(rowLead - 1, 0)); } else if (command.equals("selectNextColumnChangeLead")) { if (colModel.getSelectionMode() != ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) { // just selectNextColumn rowModel.setSelectionInterval(rowLead,rowLead); colModel.setSelectionInterval(Math.min(colLead + 1, colMax), Math.min(colLead + 1, colMax)); } else colModel.moveLeadSelectionIndex(Math.min(colLead + 1, colMax)); } else if (command.equals("selectPreviousColumnChangeLead")) { if (colModel.getSelectionMode() != ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) { // just selectPreviousColumn rowModel.setSelectionInterval(rowLead,rowLead); colModel.setSelectionInterval(Math.max(colLead - 1, 0), Math.max(colLead - 1, 0)); } else colModel.moveLeadSelectionIndex(Math.max(colLead - 1, 0)); } else if (command.equals("addToSelection")) { if (!table.isEditing()) { int oldRowAnchor = rowModel.getAnchorSelectionIndex(); int oldColAnchor = colModel.getAnchorSelectionIndex(); rowModel.addSelectionInterval(rowLead, rowLead); colModel.addSelectionInterval(colLead, colLead); rowModel.setAnchorSelectionIndex(oldRowAnchor); colModel.setAnchorSelectionIndex(oldColAnchor); } } else if (command.equals("extendTo")) { rowModel.setSelectionInterval(rowModel.getAnchorSelectionIndex(), rowLead); colModel.setSelectionInterval(colModel.getAnchorSelectionIndex(), colLead); } else if (command.equals("toggleAndAnchor")) { if (rowModel.isSelectedIndex(rowLead)) rowModel.removeSelectionInterval(rowLead, rowLead); else rowModel.addSelectionInterval(rowLead, rowLead); if (colModel.isSelectedIndex(colLead)) colModel.removeSelectionInterval(colLead, colLead); else colModel.addSelectionInterval(colLead, colLead); rowModel.setAnchorSelectionIndex(rowLead); colModel.setAnchorSelectionIndex(colLead); } else if (command.equals("stopEditing")) { table.editingStopped(new ChangeEvent(command)); } else { // If we're here that means we bound this TableAction class // to a keyboard input but we either want to ignore that input // or we just haven't implemented its action yet. // Uncomment the following line to print the names of unused bindings // when their keys are pressed // System.out.println ("not implemented: "+e.getActionCommand()); } // Any commands whose keyStrokes should be used by the Editor should not // cause editing to be stopped: ie, the SPACE sends "addToSelection" but // if the table is in editing mode, the space should not cause us to stop // editing because it should be used by the Editor. if (table.isEditing() && command != "startEditing" && command != "addToSelection") table.editingStopped(new ChangeEvent("update")); table.scrollRectToVisible (table.getCellRect(rowModel.getLeadSelectionIndex(), colModel.getLeadSelectionIndex(), false)); table.repaint(); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
261,
1803,
1133,
425,
13,
565,
288,
1377,
2989,
682,
6233,
1488,
1027,
1488,
273,
261,
1868,
682,
6233,
1488,
13,
1014,
18,
588,
6233,
1488,
5621,
1377,
2989,
682,
6233,
1488,
645,
1488,
273,
261,
1868,
682,
6233,
1488,
13,
1014,
18,
588,
1494,
1488,
7675,
588,
6233,
1488,
5621,
1377,
509,
1027,
9678,
273,
1027,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
1027,
2747,
273,
1014,
18,
588,
1488,
7675,
588,
26359,
1435,
300,
404,
31,
5411,
509,
645,
9678,
273,
645,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
645,
2747,
273,
1014,
18,
588,
1488,
7675,
588,
1494,
1380,
1435,
300,
404,
31,
5411,
514,
1296,
273,
425,
18,
588,
1803,
2189,
5621,
5411,
309,
261,
3076,
18,
14963,
2932,
4025,
8351,
1999,
16675,
6233,
6,
3719,
3639,
288,
1850,
1027,
1488,
18,
542,
9678,
6233,
1016,
12,
10477,
18,
1896,
12,
492,
9678,
300,
404,
16,
374,
10019,
1850,
645,
1488,
18,
542,
9678,
6233,
1016,
12,
1293,
9678,
1769,
3639,
289,
1377,
469,
309,
261,
3076,
18,
14963,
2932,
4025,
3024,
1494,
6,
3719,
3639,
288,
1850,
1027,
1488,
18,
542,
6233,
4006,
12,
492,
9678,
16,
1027,
9678,
1769,
1850,
645,
1488,
18,
542,
6233,
4006,
12,
1293,
2747,
16,
645,
2747,
1769,
3639,
289,
1377,
469,
309,
261,
3076,
18,
14963,
2932,
1937,
28029,
6,
3719,
3639,
288,
1850,
309,
261,
2121,
18,
291,
4020,
15470,
12,
492,
9678,
16,
645,
9678,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
261,
1803,
1133,
425,
13,
565,
288,
1377,
2989,
682,
6233,
1488,
1027,
1488,
273,
261,
1868,
682,
6233,
1488,
13,
1014,
18,
588,
6233,
1488,
5621,
1377,
2989,
682,
6233,
1488,
645,
1488,
273,
261,
1868,
682,
6233,
1488,
13,
1014,
18,
588,
1494,
1488,
7675,
588,
6233,
1488,
5621,
1377,
509,
1027,
9678,
273,
1027,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
1027,
2747,
273,
1014,
18,
588,
1488,
7675,
588,
26359,
1435,
300,
404,
31,
5411,
509,
645,
9678,
273,
645,
1488,
18,
588,
9678,
6233,
1016,
5621,
1377,
509,
645,
2747,
273,
1014,
18,
588,
1488,
7675,
588,
1494,
1380,
1435,
300,
404,
31,
5411,
514,
1296,
273,
425,
2
] |
|
entry.getScript(context, this.scope, needsRefresh); } for (int i = 0, size = execList.size(); i < size; i++) { String sourceURI = (String)execList.get(i); ScriptSourceEntry entry = (ScriptSourceEntry)compiledScripts.get(sourceURI); long lastMod = entry.getSource().getLastModified(); Script script = entry.getScript(context, this.scope, false); if (lastExecTime == 0 || lastMod > lastExecTime) { script.exec(context, thrScope); }
|
for (int i = 0, size = execList.size(); i < size; i++) { String sourceURI = (String)execList.get(i); ScriptSourceEntry entry = (ScriptSourceEntry)compiledScripts.get(sourceURI); long lastMod = entry.getSource().getLastModified(); Script script = entry.getScript(context, this.scope, false); if (lastExecTime == 0 || lastMod > lastExecTime) { script.exec(context, thrScope); } }
|
protected Scriptable enterContext(Environment environment) throws Exception { Context context = Context.enter(); context.setOptimizationLevel(OPTIMIZATION_LEVEL); context.setGeneratingDebug(true); context.setCompileFunctionsWithDynamicScope(true); context.setErrorReporter(errorReporter); Scriptable thrScope = null; // Try to retrieve the scope object from the session instance. If // no scope is found, we create a new one, but don't place it in // the session. // // When a user script "creates" a session using // cocoon.createSession() in JavaScript, the thrScope is placed in // the session object, where it's later retrieved from here. This // behaviour allows multiple JavaScript functions to share the // same global scope. thrScope = getSessionScope(environment); // The Cocoon object exported to JavaScript needs to be setup here JSCocoon cocoon; boolean newScope = false; long lastExecTime = 0; if (thrScope == null) { newScope = true; thrScope = context.newObject(scope); thrScope.setPrototype(scope); // We want 'thrScope' to be a new top-level scope, so set its // parent scope to null. This means that any variables created // by assignments will be properties of "thrScope". thrScope.setParentScope(null); // Put in the thread scope the Cocoon object, which gives access // to the interpreter object, and some Cocoon objects. See // JSCocoon for more details. Object args[] = {}; cocoon = (JSCocoon)context.newObject(thrScope, "Cocoon", args); cocoon.setInterpreter(this); cocoon.setParentScope(thrScope); thrScope.put("cocoon", thrScope, cocoon); ((ScriptableObject)thrScope).defineProperty(LAST_EXEC_TIME, new Long(0), ScriptableObject.DONTENUM | ScriptableObject.PERMANENT); } else { cocoon = (JSCocoon)thrScope.get("cocoon", thrScope); lastExecTime = ((Long)thrScope.get(LAST_EXEC_TIME, thrScope)).longValue(); } // We need to setup the JSCocoon object according to the current // request. Everything else remains the same. cocoon.setContext(manager, environment); // Check if we need to compile and/or execute scripts List execList = new ArrayList(); boolean needsRefresh = false; synchronized (this) { if (reloadScripts) { long now = System.currentTimeMillis(); if (now >= lastTimeCheck + checkTime) { needsRefresh = true; } lastTimeCheck = now; } if (needsRefresh || needResolve.size() > 0) { topLevelScripts.addAll(needResolve); if (!newScope && !needsRefresh) { execList.addAll(needResolve); } else { execList.addAll(topLevelScripts); } needResolve.clear(); } } thrScope.put(LAST_EXEC_TIME, thrScope, new Long(System.currentTimeMillis())); // Compile all the scripts first. That way you can set breakpoints // in the debugger before they execute. for (int i = 0, size = execList.size(); i < size; i++) { String sourceURI = (String)execList.get(i); ScriptSourceEntry entry = (ScriptSourceEntry)compiledScripts.get(sourceURI); if (entry == null) { Source src = environment.resolveURI(sourceURI); entry = new ScriptSourceEntry(src); compiledScripts.put(sourceURI, entry); } // Compile the script if necessary entry.getScript(context, this.scope, needsRefresh); } // Execute the scripts if necessary for (int i = 0, size = execList.size(); i < size; i++) { String sourceURI = (String)execList.get(i); ScriptSourceEntry entry = (ScriptSourceEntry)compiledScripts.get(sourceURI); long lastMod = entry.getSource().getLastModified(); Script script = entry.getScript(context, this.scope, false); if (lastExecTime == 0 || lastMod > lastExecTime) { script.exec(context, thrScope); } } return thrScope; }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/acb818ee12a0a5d1b9161b850e2ea9bd6c5ce676/JavaScriptInterpreter.java/buggy/src/java/org/apache/cocoon/components/flow/javascript/JavaScriptInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
22780,
6103,
1042,
12,
5494,
3330,
13,
3639,
1216,
1185,
565,
288,
3639,
1772,
819,
273,
1772,
18,
2328,
5621,
3639,
819,
18,
542,
13930,
1588,
2355,
12,
15620,
3445,
25084,
67,
10398,
1769,
3639,
819,
18,
542,
21755,
2829,
12,
3767,
1769,
3639,
819,
18,
542,
9937,
7503,
1190,
9791,
3876,
12,
3767,
1769,
3639,
819,
18,
542,
668,
13289,
12,
1636,
13289,
1769,
3639,
22780,
29142,
3876,
273,
446,
31,
3639,
368,
6161,
358,
4614,
326,
2146,
733,
628,
326,
1339,
791,
18,
971,
3639,
368,
1158,
2146,
353,
1392,
16,
732,
752,
279,
394,
1245,
16,
1496,
2727,
1404,
3166,
518,
316,
3639,
368,
326,
1339,
18,
3639,
368,
3639,
368,
5203,
279,
729,
2728,
315,
19787,
6,
279,
1339,
1450,
3639,
368,
276,
29571,
265,
18,
2640,
2157,
1435,
316,
11905,
16,
326,
29142,
3876,
353,
15235,
316,
3639,
368,
326,
1339,
733,
16,
1625,
518,
1807,
5137,
10295,
628,
2674,
18,
1220,
3639,
368,
14273,
5360,
3229,
11905,
4186,
358,
7433,
326,
3639,
368,
1967,
2552,
2146,
18,
3639,
29142,
3876,
273,
7183,
3876,
12,
10274,
1769,
3639,
368,
1021,
385,
29571,
265,
733,
11518,
358,
11905,
4260,
358,
506,
3875,
2674,
3639,
804,
2312,
29571,
265,
276,
29571,
265,
31,
3639,
1250,
394,
3876,
273,
629,
31,
3639,
1525,
1142,
1905,
950,
273,
374,
31,
3639,
309,
261,
451,
86,
3876,
422,
446,
13,
288,
5411,
394,
3876,
273,
638,
31,
5411,
29142,
3876,
273,
819,
18,
2704,
921,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
22780,
6103,
1042,
12,
5494,
3330,
13,
3639,
1216,
1185,
565,
288,
3639,
1772,
819,
273,
1772,
18,
2328,
5621,
3639,
819,
18,
542,
13930,
1588,
2355,
12,
15620,
3445,
25084,
67,
10398,
1769,
3639,
819,
18,
542,
21755,
2829,
12,
3767,
1769,
3639,
819,
18,
542,
9937,
7503,
1190,
9791,
3876,
12,
3767,
1769,
3639,
819,
18,
542,
668,
13289,
12,
1636,
13289,
1769,
3639,
22780,
29142,
3876,
273,
446,
31,
3639,
368,
6161,
358,
4614,
326,
2146,
733,
628,
326,
1339,
791,
18,
971,
3639,
368,
1158,
2146,
353,
1392,
16,
732,
752,
279,
394,
1245,
16,
1496,
2727,
1404,
3166,
518,
316,
3639,
368,
326,
1339,
18,
3639,
368,
3639,
368,
5203,
279,
729,
2
] |
return handler.getDefaultPort(); }
|
return handler.getDefaultPort(); }
|
public int getDefaultPort() { return handler.getDefaultPort(); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/clean/core/src/classpath/java/java/net/URL.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
4829,
2617,
1435,
288,
202,
202,
2463,
1838,
18,
588,
1868,
2617,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
4829,
2617,
1435,
288,
202,
202,
2463,
1838,
18,
588,
1868,
2617,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public YWorkItem startWorkItem(YWorkItem workItem, String userID) throws YStateException, YDataStateException, YQueryException, YSchemaBuildingException, YPersistenceException {// YPersistenceManager pmgr = null; logger.debug("--> startWorkItem"); try {// TODO if (isJournalising()) {// pmgr = new YPersistenceManager(getPMSessionFactory());// pmgr.startTransactionalSession();// } YNetRunner netRunner = null; YWorkItem resultantItem = null; if (workItem != null) { if (workItem.getStatus() == YWorkItem.Status.Enabled) { netRunner = YEngine._workItemRepository.getNetRunner(workItem.getCaseID()); List childCaseIDs; childCaseIDs = netRunner.attemptToFireAtomicTask(workItem.getTaskID()); if (childCaseIDs != null) { for (int i = 0; i < childCaseIDs.size(); i++) { YIdentifier childID = (YIdentifier) childCaseIDs.get(i); YWorkItem nextWorkItem = workItem.createChild(childID); if (i == 0) { netRunner.startWorkItemInTask(nextWorkItem.getCaseID(), workItem.getTaskID()); nextWorkItem.setStatusToStarted(userID); Element dataList = ((YTask) netRunner.getNetElement(workItem.getTaskID())).getData(childID); nextWorkItem.setData(dataList); resultantItem = nextWorkItem; } } } } else if (workItem.getStatus() == YWorkItem.Status.Fired) { workItem.setStatusToStarted(userID); netRunner = YEngine._workItemRepository.getNetRunner(workItem.getCaseID().getParent()); Element dataList = ((YTask) netRunner.getNetElement(workItem.getTaskID()) ).getData(workItem.getCaseID()); workItem.setData(dataList); netRunner.startWorkItemInTask(workItem.getCaseID(), workItem.getTaskID()); resultantItem = workItem; } else if (workItem.getStatus() == YWorkItem.Status.Deadlocked) { resultantItem = workItem; } else {// TODO if (isJournalising()) {// pmgr.rollbackTransaction();// } throw new YStateException("Item (" + workItem.getIDString() + ") status (" + workItem.getStatus() + ") does not permit starting."); //this work item is likely already executing. } } else {// TODO if (isJournalising()) {// pmgr.rollbackTransaction();// } throw new YStateException("No such work item currently available."); } // YNetRunner.saveNetRunner(netRunner, null); // COMMIT POINT// TODO if (journalising) {// pmgr.commit();// } logger.debug("<-- startWorkItem"); return resultantItem; } catch (Exception e) {// TODO if (journalising) {// pmgr.rollbackTransaction();// } // re-throw exception (tacky code ....) if (e instanceof YStateException) { throw (YStateException) e; } else if (e instanceof YDataStateException) { throw (YDataStateException) e; } else if (e instanceof YQueryException) { throw (YQueryException) e; } else if (e instanceof YSchemaBuildingException) { throw (YSchemaBuildingException) e; } else if (e instanceof YPersistenceException) { throw (YPersistenceException) e; } /** * AJH - Catch other exceptions here to avoid silient failures .... */ else { logger.error("Failure starting workitem " + workItem.getWorkItemID().toString(), e); throw new YQueryException(e); } } }
|
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/b395edd9ca5b4b2fa7f2479b8cfd86f3c69a7c6a/AbstractEngine.java/buggy/yawl/src/au/edu/qut/yawl/engine/AbstractEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1624,
25553,
787,
25553,
12,
61,
25553,
1440,
1180,
16,
514,
16299,
13,
1216,
1624,
5060,
16,
1624,
751,
5060,
16,
1624,
1138,
503,
16,
1624,
3078,
16713,
503,
16,
1624,
13182,
503,
288,
759,
61,
13182,
1318,
7430,
3197,
273,
446,
31,
4901,
18,
4148,
2932,
413,
34,
787,
25553,
8863,
698,
288,
759,
6241,
430,
261,
291,
16336,
13734,
10756,
288,
759,
7755,
3197,
273,
394,
1624,
13182,
1318,
12,
588,
12728,
2157,
1733,
10663,
759,
7755,
3197,
18,
1937,
3342,
287,
2157,
5621,
759,
97,
61,
7308,
9709,
2901,
9709,
273,
446,
31,
61,
25553,
563,
970,
1180,
273,
446,
31,
430,
261,
1252,
1180,
480,
446,
13,
288,
430,
261,
1252,
1180,
18,
588,
1482,
1435,
422,
1624,
25553,
18,
1482,
18,
1526,
13,
288,
2758,
9709,
273,
1624,
4410,
6315,
1252,
1180,
3305,
18,
588,
7308,
9709,
12,
1252,
1180,
18,
588,
2449,
734,
10663,
682,
1151,
2449,
5103,
31,
3624,
2449,
5103,
273,
2901,
9709,
18,
11764,
774,
9723,
23102,
2174,
12,
1252,
1180,
18,
588,
2174,
734,
10663,
430,
261,
3624,
2449,
5103,
480,
446,
13,
288,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1151,
2449,
5103,
18,
1467,
5621,
277,
27245,
288,
61,
3004,
1151,
734,
273,
261,
61,
3004,
13,
1151,
2449,
5103,
18,
588,
12,
77,
1769,
61,
25553,
1024,
25553,
273,
1440,
1180,
18,
2640,
1763,
12,
3624,
734,
1769,
430,
261,
77,
422,
374,
13,
288,
2758,
9709,
18,
1937,
25553,
382,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1624,
25553,
787,
25553,
12,
61,
25553,
1440,
1180,
16,
514,
16299,
13,
1216,
1624,
5060,
16,
1624,
751,
5060,
16,
1624,
1138,
503,
16,
1624,
3078,
16713,
503,
16,
1624,
13182,
503,
288,
759,
61,
13182,
1318,
7430,
3197,
273,
446,
31,
4901,
18,
4148,
2932,
413,
34,
787,
25553,
8863,
698,
288,
759,
6241,
430,
261,
291,
16336,
13734,
10756,
288,
759,
7755,
3197,
273,
394,
1624,
13182,
1318,
12,
588,
12728,
2157,
1733,
10663,
759,
7755,
3197,
18,
1937,
3342,
287,
2157,
5621,
759,
97,
61,
7308,
9709,
2901,
9709,
273,
446,
31,
61,
25553,
563,
970,
1180,
273,
446,
31,
430,
261,
1252,
1180,
480,
446,
13,
288,
430,
261,
1252,
1180,
18,
588,
2
] |
||
error = CSharpCompiler.parseLine( "error CS2008: No files to compile were specified" );
|
error = DefaultCSharpCompilerParser.parseLine( "error CS2008: No files to compile were specified" );
|
public void testParser() throws IOException { CompilerError error; // ---------------------------------------------------------------------- // Test a few concrete lines // ---------------------------------------------------------------------- error = CSharpCompiler.parseLine( "error CS2008: No files to compile were specified" ); assertNotNull( error ); assertEquals( "CS2008: No files to compile were specified", error.getMessage() ); error = CSharpCompiler.parseLine( "Compilation failed: 1 error(s), 0 warnings" ); assertNull( error ); error = CSharpCompiler.parseLine( "Compilation succeeded - 2 warning(s)" ); assertNull( error ); error = CSharpCompiler.parseLine( "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(29) error CS0246: Cannot find type 'NameValueCollection'" ); assertNotNull( error ); assertEquals( 29, error.getStartLine() ); assertEquals( -1, error.getStartColumn() ); assertEquals( 29, error.getEndLine() ); assertEquals( -1, error.getEndColumn() ); assertEquals( "CS0246: Cannot find type 'NameValueCollection'", error.getMessage() ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- String input = "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(5) error CS0234: The type or namespace name `Specialized' could not be found in namespace `System.Collections'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(29) error CS0246: Cannot find type 'NameValueCollection'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(4) error CS0234: The type or namespace name `Framework' could not be found in namespace `NUnit'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(123) error CS0246: Cannot find type 'TestFixtureAttribute'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(129) error CS0246: Cannot find type 'TestAttribute'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(135) error CS0246: Cannot find type 'IgnoreAttribute'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(141) error CS0246: Cannot find type 'ExpectedExceptionAttribute'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./WarningSuite.cs(49) error CS0506: `NUnit.Core.WarningSuite.Add': cannot override inherited member `TestSuite.Add' because it is not virtual, abstract or override\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./WarningSuite.cs(49) error CS0507: `NUnit.Core.WarningSuite.Add': can't change the access modifiers when overriding inherited member `TestSuite.Add'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./WarningSuite.cs(56) error CS0115: 'NUnit.Core.WarningSuite.CreateNewSuite(System.Type)': no suitable methods found to override\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(5) error CS0234: The type or namespace name `Specialized' could not be found in namespace `System.Collections'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./TestRunnerThread.cs(5) error CS0246: The namespace `System.Collections.Specialized' can not be found (missing assembly reference?)\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(4) error CS0234: The type or namespace name `Framework' could not be found in namespace `NUnit'\n" + "/home/trygvis/dev/com.myrealbox/trunk/mcs/nunit20/core/./Reflect.cs(4) error CS0246: The namespace `NUnit.Framework' can not be found (missing assembly reference?)\n" + "Compilation failed: 14 error(s), 0 warnings"; List messages = CSharpCompiler.parseCompilerOutput( new BufferedReader( new StringReader( input ) ) ); assertNotNull( messages ); assertEquals( 14, messages.size() ); }
|
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/25d682b26916ad1c493bc651ee54f00a7ecceac1/CSharpCompilerTest.java/clean/plexus-compiler/plexus-compilers/plexus-compiler-csharp/src/test/java/org/codehaus/plexus/compiler/csharp/CSharpCompilerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2678,
1435,
3639,
1216,
1860,
565,
288,
3639,
12972,
668,
555,
31,
3639,
368,
8879,
13465,
3639,
368,
7766,
279,
11315,
12220,
2362,
3639,
368,
8879,
13465,
3639,
555,
273,
2989,
39,
1555,
11441,
9213,
2678,
18,
2670,
1670,
12,
315,
1636,
6761,
6976,
28,
30,
2631,
1390,
358,
4074,
4591,
1269,
6,
11272,
3639,
25395,
12,
555,
11272,
3639,
1815,
8867,
12,
315,
4596,
6976,
28,
30,
2631,
1390,
358,
4074,
4591,
1269,
3113,
555,
18,
24906,
1435,
11272,
3639,
555,
273,
385,
1555,
11441,
9213,
18,
2670,
1670,
12,
315,
19184,
2535,
30,
404,
555,
12,
87,
3631,
374,
5599,
6,
11272,
3639,
1815,
2041,
12,
555,
11272,
3639,
555,
273,
385,
1555,
11441,
9213,
18,
2670,
1670,
12,
315,
19184,
15784,
300,
576,
3436,
12,
87,
2225,
11272,
3639,
1815,
2041,
12,
555,
11272,
3639,
555,
273,
385,
1555,
11441,
9213,
18,
2670,
1670,
12,
2206,
8712,
19,
698,
75,
3516,
19,
5206,
19,
832,
18,
4811,
7688,
2147,
19,
26133,
19,
81,
2143,
19,
82,
4873,
3462,
19,
3644,
15865,
19,
4709,
9709,
3830,
18,
2143,
12,
5540,
13,
555,
6761,
3103,
8749,
30,
14143,
1104,
618,
296,
461,
620,
2532,
4970,
11272,
3639,
25395,
12,
555,
11272,
3639,
1815,
8867,
12,
12899,
16,
555,
18,
588,
1685,
1670,
1435,
11272,
3639,
1815,
8867,
12,
300,
21,
16,
555,
18,
588,
1685,
1494,
1435,
11272,
3639,
1815,
8867,
12,
12899,
16,
555,
18,
588,
1638,
1670,
1435,
11272,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2678,
1435,
3639,
1216,
1860,
565,
288,
3639,
12972,
668,
555,
31,
3639,
368,
8879,
13465,
3639,
368,
7766,
279,
11315,
12220,
2362,
3639,
368,
8879,
13465,
3639,
555,
273,
2989,
39,
1555,
11441,
9213,
2678,
18,
2670,
1670,
12,
315,
1636,
6761,
6976,
28,
30,
2631,
1390,
358,
4074,
4591,
1269,
6,
11272,
3639,
25395,
12,
555,
11272,
3639,
1815,
8867,
12,
315,
4596,
6976,
28,
30,
2631,
1390,
358,
4074,
4591,
1269,
3113,
555,
18,
24906,
1435,
11272,
3639,
555,
273,
385,
1555,
11441,
9213,
18,
2670,
1670,
12,
315,
19184,
2535,
30,
404,
555,
12,
87,
3631,
374,
5599,
6,
11272,
3639,
1815,
2041,
12,
555,
11272,
3639,
555,
273,
385,
1555,
2
] |
private static byte refShr(OPT_Instruction s) {
|
private static DefUseEffect refShr(OPT_Instruction s) {
|
private static byte refShr(OPT_Instruction s) { if (CF_ADDR) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.rsha(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >> 0 == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10922,
3727,
12477,
1278,
1555,
86,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14142,
13,
288,
1377,
16456,
67,
10265,
1061,
22,
273,
7896,
18,
588,
3053,
22,
12,
87,
1769,
1377,
309,
261,
556,
22,
18,
291,
1702,
6902,
10756,
288,
3639,
509,
1244,
22,
273,
1061,
22,
18,
345,
1702,
6902,
7675,
1132,
31,
3639,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
12,
87,
1769,
3639,
309,
261,
556,
21,
18,
291,
1887,
6902,
10756,
288,
1850,
368,
29370,
24023,
55,
30,
478,
11846,
1850,
9926,
1244,
21,
273,
1061,
21,
18,
345,
1887,
6902,
7675,
1132,
18,
869,
3944,
5621,
1850,
9933,
18,
10735,
340,
12,
87,
16,
20557,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
15604,
12048,
12,
1125,
21,
18,
86,
7819,
12,
1125,
22,
2934,
869,
1887,
1435,
10019,
1850,
327,
16070,
3412,
67,
42,
1741,
7660,
31,
3639,
289,
469,
288,
1850,
368,
20747,
7247,
22,
4437,
24023,
30,
14464,
16988,
1856,
8493,
14410,
23893,
29539,
45,
1872,
55,
1850,
309,
261,
1125,
22,
422,
374,
13,
288,
5375,
368,
619,
1671,
374,
422,
619,
5411,
9933,
18,
10735,
340,
12,
87,
16,
20557,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
7682,
7896,
18,
588,
9094,
3053,
21,
12,
87,
10019,
5411,
327,
16070,
3412,
67,
5879,
57,
23552,
31,
1850,
289,
3639,
289,
1377,
289,
565,
289,
565,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10922,
3727,
12477,
1278,
1555,
86,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14142,
13,
288,
1377,
16456,
67,
10265,
1061,
22,
273,
7896,
18,
588,
3053,
22,
12,
87,
1769,
1377,
309,
261,
556,
22,
18,
291,
1702,
6902,
10756,
288,
3639,
509,
1244,
22,
273,
1061,
22,
18,
345,
1702,
6902,
7675,
1132,
31,
3639,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
12,
87,
1769,
3639,
309,
261,
556,
21,
18,
291,
1887,
6902,
10756,
288,
1850,
368,
29370,
24023,
55,
30,
478,
11846,
1850,
9926,
1244,
21,
273,
1061,
21,
18,
345,
1887,
6902,
7675,
1132,
18,
869,
3944,
5621,
1850,
9933,
18,
10735,
2
] |
return authenticationHash;
|
return conn.getSaslBindProperties();
|
public Hashtable getSaslBindProperties() { return authenticationHash; }
|
9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/1b6354a51fb799d6c41e8c8c1279c8af99f3265f/LDAPConnection.java/clean/com/novell/ldap/LDAPConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
18559,
1322,
345,
80,
3357,
2297,
1435,
282,
288,
1377,
327,
1487,
18,
588,
55,
345,
80,
3357,
2297,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
18559,
1322,
345,
80,
3357,
2297,
1435,
282,
288,
1377,
327,
1487,
18,
588,
55,
345,
80,
3357,
2297,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final Set bindings = new HashSet(); bindings.add(binding1); bindings.add(binding2); bindings.add(binding3); bindingManager.setBindings(bindings);
|
bindingManager.addBinding(binding3);
|
public void testPlatformOverride() throws NotDefinedException { final Context context = contextManager.getContext("na"); context.define("name", "description", null); final Scheme scheme = bindingManager.getScheme("na"); scheme.define("name", "description", null); bindingManager.setActiveScheme(scheme); final Set activeContextIds = new HashSet(); activeContextIds.add("na"); contextManager.setActiveContextIds(activeContextIds); final Binding binding1 = new TestBinding("base", "na", "na", null, null, Binding.SYSTEM); final Binding binding2 = new TestBinding(null, "na", "na", null, SWT .getPlatform(), Binding.SYSTEM); final Binding binding3 = new TestBinding("platform-specific", "na", "na", null, SWT.getPlatform(), Binding.SYSTEM); final Set bindings = new HashSet(); bindings.add(binding1); bindings.add(binding2); bindings.add(binding3); bindingManager.setBindings(bindings); assertEquals( "A plug-in developer should be able to change a binding for a platform", binding3.getCommandId(), bindingManager .getPerfectMatch(TestBinding.TRIGGER_SEQUENCE)); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/aaf24f9edb61f7e189ff821250cda3d6f0088de9/BindingInteractionsTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingInteractionsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8201,
6618,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
6385,
10714,
4355,
273,
5085,
1318,
18,
588,
9321,
2932,
6582,
8863,
202,
202,
9068,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
7374,
1318,
18,
542,
3896,
9321,
12,
9068,
1769,
202,
202,
6385,
1000,
2695,
1042,
2673,
273,
394,
6847,
5621,
202,
202,
3535,
1042,
2673,
18,
1289,
2932,
6582,
8863,
202,
202,
2472,
1318,
18,
542,
3896,
1042,
2673,
12,
3535,
1042,
2673,
1769,
202,
202,
6385,
15689,
5085,
21,
273,
394,
7766,
5250,
2932,
1969,
3113,
315,
6582,
3113,
315,
6582,
3113,
446,
16,
9506,
202,
2011,
16,
15689,
18,
14318,
1769,
202,
202,
6385,
15689,
5085,
22,
273,
394,
7766,
5250,
12,
2011,
16,
315,
6582,
3113,
315,
6582,
3113,
446,
16,
348,
8588,
9506,
202,
18,
588,
8201,
9334,
15689,
18,
14318,
1769,
202,
202,
6385,
15689,
5085,
23,
273,
394,
7766,
5250,
2932,
9898,
17,
12524,
3113,
315,
6582,
3113,
9506,
202,
6,
6582,
3113,
446,
16,
348,
8588,
18,
588,
8201,
9334,
15689,
18,
14318,
1769,
202,
202,
6385,
1000,
7394,
273,
394,
6847,
5621,
202,
202,
15863,
18,
1289,
12,
7374,
21,
1769,
202,
202,
15863,
18,
1289,
12,
7374,
22,
1769,
202,
202,
15863,
18,
1289,
12,
7374,
23,
1769,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8201,
6618,
1435,
1216,
2288,
8116,
503,
288,
202,
202,
6385,
1772,
819,
273,
819,
1318,
18,
29120,
2932,
6582,
8863,
202,
202,
2472,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
6385,
10714,
4355,
273,
5085,
1318,
18,
588,
9321,
2932,
6582,
8863,
202,
202,
9068,
18,
11255,
2932,
529,
3113,
315,
3384,
3113,
446,
1769,
202,
202,
7374,
1318,
18,
542,
3896,
9321,
12,
9068,
1769,
202,
202,
6385,
1000,
2695,
1042,
2673,
273,
394,
6847,
5621,
202,
202,
3535,
1042,
2673,
18,
1289,
2932,
6582,
8863,
202,
202,
2472,
1318,
18,
542,
3896,
1042,
2673,
12,
3535,
1042,
2673,
1769,
202,
202,
6385,
15689,
5085,
21,
273,
2
] |
Object instance = componentAdapter.getComponentInstance(this);
|
Object instance = null; try { instance = componentAdapter.getComponentInstance(this); } catch (PicoInitializationException e) { if (parent != null) { return parent.getComponentInstance(componentAdapter.getComponentKey()); }
|
private Object getInstance(ComponentAdapter componentAdapter) { // check wether this is our adapter // we need to check this to ensure up-down dependencies cannot be followed final boolean isLocal = componentAdapters.contains(componentAdapter); if (isLocal) { Object instance = componentAdapter.getComponentInstance(this); addOrderedComponentAdapter(componentAdapter); return instance; } else if (parent != null) { return parent.getComponentInstance(componentAdapter.getComponentKey()); } return null; }
|
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/f454dbb64efa33852b061bb9933f49034518a4ef/DefaultPicoContainer.java/buggy/java/picocontainer/trunk/container/src/java/org/picocontainer/defaults/DefaultPicoContainer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3694,
12,
1841,
4216,
1794,
4216,
13,
288,
3639,
368,
866,
341,
2437,
333,
353,
3134,
4516,
3639,
368,
732,
1608,
358,
866,
333,
358,
3387,
731,
17,
2378,
5030,
2780,
506,
10860,
3639,
727,
1250,
22873,
273,
1794,
26620,
18,
12298,
12,
4652,
4216,
1769,
3639,
309,
261,
291,
2042,
13,
288,
5411,
1033,
791,
273,
446,
31,
775,
288,
791,
273,
1794,
4216,
18,
588,
1841,
1442,
12,
2211,
1769,
289,
1044,
261,
52,
10764,
17701,
503,
425,
13,
288,
309,
261,
2938,
480,
446,
13,
288,
327,
982,
18,
588,
1841,
1442,
12,
4652,
4216,
18,
588,
1841,
653,
10663,
289,
5411,
527,
16756,
1841,
4216,
12,
4652,
4216,
1769,
5411,
327,
791,
31,
3639,
289,
469,
309,
261,
2938,
480,
446,
13,
288,
5411,
327,
982,
18,
588,
1841,
1442,
12,
4652,
4216,
18,
588,
1841,
653,
10663,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3694,
12,
1841,
4216,
1794,
4216,
13,
288,
3639,
368,
866,
341,
2437,
333,
353,
3134,
4516,
3639,
368,
732,
1608,
358,
866,
333,
358,
3387,
731,
17,
2378,
5030,
2780,
506,
10860,
3639,
727,
1250,
22873,
273,
1794,
26620,
18,
12298,
12,
4652,
4216,
1769,
3639,
309,
261,
291,
2042,
13,
288,
5411,
1033,
791,
273,
446,
31,
775,
288,
791,
273,
1794,
4216,
18,
588,
1841,
1442,
12,
2211,
1769,
289,
1044,
261,
52,
10764,
17701,
503,
425,
13,
288,
309,
261,
2938,
480,
446,
13,
288,
327,
982,
18,
588,
1841,
1442,
12,
4652,
4216,
18,
588,
1841,
653,
10663,
289,
5411,
527,
16756,
1841,
4216,
12,
4652,
4216,
1769,
5411,
327,
791,
2
] |
throw new UnsupportedDataTypeException();
|
throw new UnsupportedDataTypeException(ods.mimeType);
|
public void writeTo(OutputStream os) throws IOException { if (ds instanceof ObjectDataSource) { ObjectDataSource ods = (ObjectDataSource) ds; DataContentHandler dch = getDataContentHandler(); if (dch == null) { throw new UnsupportedDataTypeException(); } dch.writeTo(ods.data, ods.mimeType, os); } else { byte[] buffer = new byte[1024]; InputStream is = getInputStream(); try { int count; while ((count = is.read(buffer)) != -1) { os.write(buffer, 0, count); } } finally { is.close(); } } }
|
8608 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8608/e86883e94fb290498c0839d12426a4280efc23e3/DataHandler.java/clean/activation/src/java/javax/activation/DataHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12870,
12,
4632,
1140,
13,
1216,
1860,
288,
3639,
309,
261,
2377,
1276,
1033,
8597,
13,
288,
5411,
1033,
8597,
320,
2377,
273,
261,
921,
8597,
13,
3780,
31,
5411,
1910,
1350,
1503,
302,
343,
273,
4303,
1350,
1503,
5621,
5411,
309,
261,
72,
343,
422,
446,
13,
288,
7734,
604,
394,
7221,
6273,
503,
12,
369,
87,
18,
19176,
1769,
5411,
289,
5411,
302,
343,
18,
2626,
774,
12,
369,
87,
18,
892,
16,
320,
2377,
18,
19176,
16,
1140,
1769,
3639,
289,
469,
288,
5411,
1160,
8526,
1613,
273,
394,
1160,
63,
2163,
3247,
15533,
5411,
5037,
353,
273,
14424,
5621,
5411,
775,
288,
7734,
509,
1056,
31,
7734,
1323,
14015,
1883,
273,
353,
18,
896,
12,
4106,
3719,
480,
300,
21,
13,
288,
10792,
1140,
18,
2626,
12,
4106,
16,
374,
16,
1056,
1769,
7734,
289,
5411,
289,
3095,
288,
7734,
353,
18,
4412,
5621,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12870,
12,
4632,
1140,
13,
1216,
1860,
288,
3639,
309,
261,
2377,
1276,
1033,
8597,
13,
288,
5411,
1033,
8597,
320,
2377,
273,
261,
921,
8597,
13,
3780,
31,
5411,
1910,
1350,
1503,
302,
343,
273,
4303,
1350,
1503,
5621,
5411,
309,
261,
72,
343,
422,
446,
13,
288,
7734,
604,
394,
7221,
6273,
503,
12,
369,
87,
18,
19176,
1769,
5411,
289,
5411,
302,
343,
18,
2626,
774,
12,
369,
87,
18,
892,
16,
320,
2377,
18,
19176,
16,
1140,
1769,
3639,
289,
469,
288,
5411,
1160,
8526,
1613,
273,
394,
1160,
63,
2163,
3247,
15533,
5411,
5037,
353,
273,
14424,
5621,
5411,
775,
288,
7734,
509,
1056,
31,
7734,
1323,
14015,
1883,
273,
353,
2
] |
public static void main(String argv[]) { int i; System.out.println("Tak is running\n"); //for (i=0; i<1000; i++){ double result = tak(18,12,6); System.out.println(result + "\n"); //} //System.exit(0); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/356681beb9a1b1b0b9d502ce55ad7fcf711cc145/tak_db.java/buggy/testing/tests/opttests/src/tak_db.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
5254,
12,
780,
19485,
63,
5717,
95,
474,
77,
31,
3163,
18,
659,
18,
8222,
2932,
56,
581,
291,
8704,
64,
82,
8863,
759,
1884,
12,
77,
33,
20,
31,
77,
32,
18088,
31,
77,
27245,
95,
2896,
440,
11737,
406,
33,
88,
581,
12,
2643,
16,
2138,
16,
26,
1769,
3163,
18,
659,
18,
8222,
12,
2088,
9078,
64,
82,
8863,
759,
97,
759,
3163,
18,
8593,
12,
20,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
5254,
12,
780,
19485,
63,
5717,
95,
474,
77,
31,
3163,
18,
659,
18,
8222,
2932,
56,
581,
291,
8704,
64,
82,
8863,
759,
1884,
12,
77,
33,
20,
31,
77,
32,
18088,
31,
77,
27245,
95,
2896,
440,
11737,
406,
33,
88,
581,
12,
2643,
16,
2138,
16,
26,
1769,
3163,
18,
659,
18,
8222,
12,
2088,
9078,
64,
82,
8863,
759,
97,
759,
3163,
18,
8593,
12,
20,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
Collection outputs = new LinkedList();
|
Set outputs = new HashSet();
|
public void solve() { Collection inputs = new LinkedList(); inputs.addAll(solver.relationsToLoad); inputs.addAll(solver.relationsToLoadTuples); inputs.addAll(solver.equivalenceRelations.values()); inputs.addAll(solver.notequivalenceRelations.values()); Collection outputs = new LinkedList(); outputs.addAll(solver.relationsToDump); outputs.addAll(solver.relationsToDumpTuples); outputs.addAll(solver.relationsToDumpNegated); outputs.addAll(solver.relationsToDumpNegatedTuples); outputs.addAll(solver.relationsToPrintSize); stratify(solver.rules, inputs, outputs); Iterator i = firstSCCs.iterator(); for (int a = 1; i.hasNext(); ++a) { SCComponent first = (SCComponent) i.next(); if (TRACE) out.println("Solving stratum #"+a+"..."); for (;;) { iterate(first, false); if (!again) break; } } }
|
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/eef6a1c9d3867d1cfa8a80c4d97c40c6be9f8e25/Stratify.java/buggy/joeq_core/joeq/Util/InferenceEngine/Stratify.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12439,
1435,
288,
7734,
2200,
4540,
273,
394,
10688,
5621,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
15018,
26883,
1769,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
15018,
26883,
25813,
1769,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
14298,
19713,
10666,
18,
2372,
10663,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
7652,
372,
19713,
10666,
18,
2372,
10663,
3639,
1000,
6729,
273,
394,
6847,
5621,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
25813,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
14337,
690,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
14337,
690,
25813,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
5108,
1225,
1769,
7734,
609,
270,
1164,
12,
27198,
18,
7482,
16,
4540,
16,
6729,
1769,
7734,
4498,
277,
273,
1122,
2312,
14272,
18,
9838,
5621,
3639,
364,
261,
474,
279,
273,
404,
31,
277,
18,
5332,
2134,
5621,
965,
69,
13,
288,
5411,
8795,
1841,
1122,
273,
261,
2312,
1841,
13,
277,
18,
4285,
5621,
5411,
309,
261,
23827,
13,
596,
18,
8222,
2932,
20608,
6282,
609,
270,
379,
31526,
15,
69,
9078,
7070,
1769,
5411,
364,
261,
25708,
13,
288,
7734,
7401,
12,
3645,
16,
629,
1769,
7734,
309,
16051,
23095,
13,
898,
31,
5411,
289,
3639,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12439,
1435,
288,
7734,
2200,
4540,
273,
394,
10688,
5621,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
15018,
26883,
1769,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
15018,
26883,
25813,
1769,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
14298,
19713,
10666,
18,
2372,
10663,
3639,
4540,
18,
1289,
1595,
12,
27198,
18,
7652,
372,
19713,
10666,
18,
2372,
10663,
3639,
1000,
6729,
273,
394,
6847,
5621,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
25813,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
15018,
774,
10628,
14337,
690,
1769,
3639,
6729,
18,
1289,
1595,
12,
27198,
18,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.