rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("setdash: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("setdash: wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue();
data = context.popNumberOperands(1);
public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("setdash: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("setdash: wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); }
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/3c314818d71d25f7c37e4f26642c8ef894a7fcd4/PAContext.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 7651, 14602, 394, 14602, 31, 3639, 934, 6822, 1592, 14602, 273, 819, 18, 84, 21620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 7651, 14602, 394, 14602, 31, 3639, 934, 6822, 1592, 14602, 273, 819, 18, 84, 21620,...
return 32;
return NAME_SIZE;
public int getMaxTableNameLength() throws SQLException { return 32; }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/1109900a6005730595d9db53263cc42e13efced4/AbstractJdbc1DatabaseMetaData.java/buggy/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7288, 7147, 1782, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 3847, 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,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7288, 7147, 1782, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 3847, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
TOCNode rootTocNode = ( (IReportDocument) handle ).findTOC( null );
String format = "html"; for ( int i = 0; i < supportedFormats.length; i++ ) { if ( ( (Button) formatCheckBtns.get( supportedFormats[i] ) ).getSelection( ) ) { format = supportedFormats[i]; break; } } ITOCTree tocTree = ( (IReportDocument) handle ).getTOCTree( format, SessionHandleAdapter.getInstance( ) .getSessionHandle( ) .getULocale( ) ); TOCNode rootTocNode = tocTree.getRoot( );
private void initAnchorChooser( Object handle, boolean isToc ) { anchorChooser.removeAll( ); if ( handle instanceof ReportDesignHandle ) { if ( isToc ) { anchorChooser.setItems( (String[]) ( (ReportDesignHandle) handle ).getAllTocs( ) .toArray( new String[0] ) ); } else { anchorChooser.setItems( (String[]) ( (ReportDesignHandle) handle ).getAllBookmarks( ) .toArray( new String[0] ) ); } } else if ( handle instanceof IReportDocument ) { if ( isToc ) { TOCNode rootTocNode = ( (IReportDocument) handle ).findTOC( null ); anchorChooser.setItems( (String[]) getAllTocDisplayString( rootTocNode ).toArray( new String[0] ) ); } else { anchorChooser.setItems( getDocumentBookmarks( (IReportDocument) handle ) ); } } bookmarkEditor.setText( "" ); //$NON-NLS-1$ String bookmark = inputHandle.getTargetBookmark( ); String[] chooserValues = anchorChooser.getItems( ); if ( bookmark != null && chooserValues != null ) { for ( int i = 0; i < chooserValues.length; i++ ) { if ( bookmark.equals( chooserValues[i] ) ) { anchorChooser.select( i ); bookmarkEditor.setText( anchorChooser.getText( ) ); } } } anchorChooser.setEnabled( anchorChooser.getItemCount( ) > 0 ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/71bab9fcb2ffd54e269eb877991a1642c09e69e3/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 11605, 17324, 12, 1033, 1640, 16, 1250, 353, 56, 504, 262, 202, 95, 202, 202, 16215, 17324, 18, 4479, 1595, 12, 11272, 202, 202, 430, 261, 1640, 1276, 8706, 15478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 11605, 17324, 12, 1033, 1640, 16, 1250, 353, 56, 504, 262, 202, 95, 202, 202, 16215, 17324, 18, 4479, 1595, 12, 11272, 202, 202, 430, 261, 1640, 1276, 8706, 15478, ...
bank.sysex[getPatchStart(patchNum)+ 48]=(byte)((p.sysex[6+ 58])); bank.sysex[getPatchStart(patchNum)+ 49]=(byte)((p.sysex[6+ 60]*2+p.sysex[6+ 59]));
((Patch)bank).sysex[getPatchStart(patchNum)+ 48]=(byte)((((Patch)p).sysex[6+ 58])); ((Patch)bank).sysex[getPatchStart(patchNum)+ 49]=(byte)((((Patch)p).sysex[6+ 60]*2+((Patch)p).sysex[6+ 59]));
public void putPatch(Patch bank,Patch p,int patchNum) //puts a patch into the bank, converting it as needed { if (!canHoldPatch(p)) { DX7FamilyStrings.dxShowError(toString(), "This type of patch does not fit in to this type of bank."); return; } // Transform Voice Data to Bulk Dump Packed Format // ***** OPERATOR 6 ***** bank.sysex[getPatchStart(patchNum)+ 0]=(byte)((p.sysex[6+ 0])); // EG Rate 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 1]=(byte)((p.sysex[6+ 1])); // EG Rate 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 2]=(byte)((p.sysex[6+ 2])); // EG Rate 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 3]=(byte)((p.sysex[6+ 3])); // EG Rate 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 4]=(byte)((p.sysex[6+ 4])); // EG Level 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 5]=(byte)((p.sysex[6+ 5])); // EG Level 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 6]=(byte)((p.sysex[6+ 6])); // EG Level 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 7]=(byte)((p.sysex[6+ 7])); // EG Level 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 8]=(byte)((p.sysex[6+ 8])); // Kbd Level Scale Break Point (0-99) bank.sysex[getPatchStart(patchNum)+ 9]=(byte)((p.sysex[6+ 9])); // Kbd Level Scale Left Depth .(0-99) bank.sysex[getPatchStart(patchNum)+ 10]=(byte)((p.sysex[6+ 10])); // Kbd Level Scale Right Depth (0-99) bank.sysex[getPatchStart(patchNum)+ 11]=(byte)((p.sysex[6+ 12]*4+p.sysex[6+ 11])); // Kbd Level Scale Right Curve .(0-3) // | Left Curve ...............(0-3) bank.sysex[getPatchStart(patchNum)+ 12]=(byte)((p.sysex[6+ 20]*8+p.sysex[6+ 13])); // Osc Detune .................(0-14) // | Kbd Rate Scaling .........(0-7) bank.sysex[getPatchStart(patchNum)+ 13]=(byte)((p.sysex[6+ 15]*4+p.sysex[6+ 14])); // Key Velocity Sensitivity ....(0-7) // | Mod Sensitivity Amplitude (0-3) bank.sysex[getPatchStart(patchNum)+ 14]=(byte)((p.sysex[6+ 16])); // Operator Output Level ......(0-99) bank.sysex[getPatchStart(patchNum)+ 15]=(byte)((p.sysex[6+ 18]*2+p.sysex[6+ 17])); // Osc Frequency Coarse .......(0-31) // | Osc Mode .................(0-1) bank.sysex[getPatchStart(patchNum)+ 16]=(byte)((p.sysex[6+ 19])); // Osc Frequency Fine .........(0-99) // ***** OPERATOR 5 ***** bank.sysex[getPatchStart(patchNum)+ 17]=(byte)((p.sysex[6+ 21])); // EG Rate 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 18]=(byte)((p.sysex[6+ 22])); // EG Rate 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 19]=(byte)((p.sysex[6+ 23])); // EG Rate 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 20]=(byte)((p.sysex[6+ 24])); // EG Rate 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 21]=(byte)((p.sysex[6+ 25])); // EG Level 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 22]=(byte)((p.sysex[6+ 26])); // EG Level 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 23]=(byte)((p.sysex[6+ 27])); // EG Level 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 24]=(byte)((p.sysex[6+ 28])); // EG Level 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 25]=(byte)((p.sysex[6+ 29])); // Kbd Level Scale Break Point (0-99) bank.sysex[getPatchStart(patchNum)+ 26]=(byte)((p.sysex[6+ 30])); // Kbd Level Scale Left Depth .(0-99) bank.sysex[getPatchStart(patchNum)+ 27]=(byte)((p.sysex[6+ 31])); // Kbd Level Scale Right Depth (0-99) bank.sysex[getPatchStart(patchNum)+ 28]=(byte)((p.sysex[6+ 33]*4+p.sysex[6+ 32])); // Kbd Level Scale Right Curve .(0-3) // | Left Curve ...............(0-3) bank.sysex[getPatchStart(patchNum)+ 29]=(byte)((p.sysex[6+ 41]*8+p.sysex[6+ 34])); // Osc Detune .................(0-14) // | Kbd Rate Scaling .........(0-7) bank.sysex[getPatchStart(patchNum)+ 30]=(byte)((p.sysex[6+ 36]*4+p.sysex[6+ 35])); // Key Velocity Sensitivity ....(0-7) // | Mod Sensitivity Amplitude (0-3) bank.sysex[getPatchStart(patchNum)+ 31]=(byte)((p.sysex[6+ 37])); // Operator Output Level ......(0-99) bank.sysex[getPatchStart(patchNum)+ 32]=(byte)((p.sysex[6+ 39]*2+p.sysex[6+ 38])); // Osc Frequency Coarse .......(0-31) // | Osc Mode .................(0-1) bank.sysex[getPatchStart(patchNum)+ 33]=(byte)((p.sysex[6+ 40])); // Osc Frequency Fine .........(0-99) // ***** OPERATOR 4 ***** bank.sysex[getPatchStart(patchNum)+ 34]=(byte)((p.sysex[6+ 42])); // EG Rate 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 35]=(byte)((p.sysex[6+ 43])); // EG Rate 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 36]=(byte)((p.sysex[6+ 44])); // EG Rate 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 37]=(byte)((p.sysex[6+ 45])); // EG Rate 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 38]=(byte)((p.sysex[6+ 46])); // EG Level 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 39]=(byte)((p.sysex[6+ 47])); // EG Level 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 40]=(byte)((p.sysex[6+ 48])); // EG Level 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 41]=(byte)((p.sysex[6+ 49])); // EG Level 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 42]=(byte)((p.sysex[6+ 50])); // Kbd Level Scale Break Point (0-99) bank.sysex[getPatchStart(patchNum)+ 43]=(byte)((p.sysex[6+ 51])); // Kbd Level Scale Left Depth .(0-99) bank.sysex[getPatchStart(patchNum)+ 44]=(byte)((p.sysex[6+ 52])); // Kbd Level Scale Right Depth (0-99) bank.sysex[getPatchStart(patchNum)+ 45]=(byte)((p.sysex[6+ 54]*4+p.sysex[6+ 53])); // Kbd Level Scale Right Curve .(0-3) // | Left Curve ...............(0-3) bank.sysex[getPatchStart(patchNum)+ 46]=(byte)((p.sysex[6+ 62]*8+p.sysex[6+ 55])); // Osc Detune .................(0-14) // | Kbd Rate Scaling .........(0-7) bank.sysex[getPatchStart(patchNum)+ 47]=(byte)((p.sysex[6+ 57]*4+p.sysex[6+ 56])); // Key Velocity Sensitivity ....(0-7) // | Mod Sensitivity Amplitude (0-3) bank.sysex[getPatchStart(patchNum)+ 48]=(byte)((p.sysex[6+ 58])); // Operator Output Level ......(0-99) bank.sysex[getPatchStart(patchNum)+ 49]=(byte)((p.sysex[6+ 60]*2+p.sysex[6+ 59])); // Osc Frequency Coarse .......(0-31) // | Osc Mode .................(0-1) bank.sysex[getPatchStart(patchNum)+ 50]=(byte)((p.sysex[6+ 61])); // Osc Frequency Fine .........(0-99) // ***** OPERATOR 3 ***** bank.sysex[getPatchStart(patchNum)+ 51]=(byte)((p.sysex[6+ 63])); // EG Rate 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 52]=(byte)((p.sysex[6+ 64])); // EG Rate 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 53]=(byte)((p.sysex[6+ 65])); // EG Rate 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 54]=(byte)((p.sysex[6+ 66])); // EG Rate 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 55]=(byte)((p.sysex[6+ 67])); // EG Level 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 56]=(byte)((p.sysex[6+ 68])); // EG Level 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 57]=(byte)((p.sysex[6+ 69])); // EG Level 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 58]=(byte)((p.sysex[6+ 70])); // EG Level 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 59]=(byte)((p.sysex[6+ 71])); // Kbd Level Scale Break Point (0-99) bank.sysex[getPatchStart(patchNum)+ 60]=(byte)((p.sysex[6+ 72])); // Kbd Level Scale Left Depth .(0-99) bank.sysex[getPatchStart(patchNum)+ 61]=(byte)((p.sysex[6+ 73])); // Kbd Level Scale Right Depth (0-99) bank.sysex[getPatchStart(patchNum)+ 62]=(byte)((p.sysex[6+ 75]*4+p.sysex[6+ 74])); // Kbd Level Scale Right Curve .(0-3) // | Left Curve ...............(0-3) bank.sysex[getPatchStart(patchNum)+ 63]=(byte)((p.sysex[6+ 83]*8+p.sysex[6+ 76])); // Osc Detune .................(0-14) // | Kbd Rate Scaling .........(0-7) bank.sysex[getPatchStart(patchNum)+ 64]=(byte)((p.sysex[6+ 78]*4+p.sysex[6+ 77])); // Key Velocity Sensitivity ....(0-7) // | Mod Sensitivity Amplitude (0-3) bank.sysex[getPatchStart(patchNum)+ 65]=(byte)((p.sysex[6+ 79])); // Operator Output Level ......(0-99) bank.sysex[getPatchStart(patchNum)+ 66]=(byte)((p.sysex[6+ 81]*2+p.sysex[6+ 80])); // Osc Frequency Coarse .......(0-31) // | Osc Mode .................(0-1) bank.sysex[getPatchStart(patchNum)+ 67]=(byte)((p.sysex[6+ 82])); // Osc Frequency Fine .........(0-99) // ***** OPERATOR 2 ***** bank.sysex[getPatchStart(patchNum)+ 68]=(byte)((p.sysex[6+ 84])); // EG Rate 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 69]=(byte)((p.sysex[6+ 85])); // EG Rate 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 70]=(byte)((p.sysex[6+ 86])); // EG Rate 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 71]=(byte)((p.sysex[6+ 87])); // EG Rate 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 72]=(byte)((p.sysex[6+ 88])); // EG Level 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 73]=(byte)((p.sysex[6+ 89])); // EG Level 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 74]=(byte)((p.sysex[6+ 90])); // EG Level 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 75]=(byte)((p.sysex[6+ 91])); // EG Level 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 76]=(byte)((p.sysex[6+ 92])); // Kbd Level Scale Break Point (0-99) bank.sysex[getPatchStart(patchNum)+ 77]=(byte)((p.sysex[6+ 93])); // Kbd Level Scale Left Depth .(0-99) bank.sysex[getPatchStart(patchNum)+ 78]=(byte)((p.sysex[6+ 94])); // Kbd Level Scale Right Depth (0-99) bank.sysex[getPatchStart(patchNum)+ 79]=(byte)((p.sysex[6+ 96]*4+p.sysex[6+ 95])); // Kbd Level Scale Right Curve .(0-3) // | Left Curve ...............(0-3) bank.sysex[getPatchStart(patchNum)+ 80]=(byte)((p.sysex[6+104]*8+p.sysex[6+ 97])); // Osc Detune .................(0-14) // | Kbd Rate Scaling .........(0-7) bank.sysex[getPatchStart(patchNum)+ 81]=(byte)((p.sysex[6+ 99]*4+p.sysex[6+ 98])); // Key Velocity Sensitivity ....(0-7) // | Mod Sensitivity Amplitude (0-3) bank.sysex[getPatchStart(patchNum)+ 82]=(byte)((p.sysex[6+100])); // Operator Output Level ......(0-99) bank.sysex[getPatchStart(patchNum)+ 83]=(byte)((p.sysex[6+102]*2+p.sysex[6+101])); // Osc Frequency Coarse .......(0-31) // | Osc Mode .................(0-1) bank.sysex[getPatchStart(patchNum)+ 84]=(byte)((p.sysex[6+103])); // Osc Frequency Fine .........(0-99) // ***** OPERATOR 1 ***** bank.sysex[getPatchStart(patchNum)+ 85]=(byte)((p.sysex[6+105])); // EG Rate 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 86]=(byte)((p.sysex[6+106])); // EG Rate 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 87]=(byte)((p.sysex[6+107])); // EG Rate 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 88]=(byte)((p.sysex[6+108])); // EG Rate 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 89]=(byte)((p.sysex[6+109])); // EG Level 1 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 90]=(byte)((p.sysex[6+110])); // EG Level 2 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 91]=(byte)((p.sysex[6+111])); // EG Level 3 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 92]=(byte)((p.sysex[6+112])); // EG Level 4 .................(0-99) bank.sysex[getPatchStart(patchNum)+ 93]=(byte)((p.sysex[6+113])); // Kbd Level Scale Break Point (0-99) bank.sysex[getPatchStart(patchNum)+ 94]=(byte)((p.sysex[6+114])); // Kbd Level Scale Left Depth .(0-99) bank.sysex[getPatchStart(patchNum)+ 95]=(byte)((p.sysex[6+115])); // Kbd Level Scale Right Depth (0-99) bank.sysex[getPatchStart(patchNum)+ 96]=(byte)((p.sysex[6+117]*4+p.sysex[6+116])); // Kbd Level Scale Right Curve .(0-3) // | Left Curve ...............(0-3) bank.sysex[getPatchStart(patchNum)+ 97]=(byte)((p.sysex[6+125]*8+p.sysex[6+118])); // Osc Detune .................(0-14) // | Kbd Rate Scaling .........(0-7) bank.sysex[getPatchStart(patchNum)+ 98]=(byte)((p.sysex[6+120]*4+p.sysex[6+119])); // Key Velocity Sensitivity ....(0-7) // | Mod Sensitivity Amplitude (0-3) bank.sysex[getPatchStart(patchNum)+ 99]=(byte)((p.sysex[6+121])); // Operator Output Level ......(0-99) bank.sysex[getPatchStart(patchNum)+100]=(byte)((p.sysex[6+123]*2+p.sysex[6+122])); // Osc Frequency Coarse .......(0-31) // | Osc Mode .................(0-1) bank.sysex[getPatchStart(patchNum)+101]=(byte)((p.sysex[6+124])); // Osc Frequency Fine .........(0-99) // ***** other Parameters ***** bank.sysex[getPatchStart(patchNum)+102]=(byte)((p.sysex[6+126])); // Pitch EG Rate 1 ............(0-99) bank.sysex[getPatchStart(patchNum)+103]=(byte)((p.sysex[6+127])); // Pitch EG Rate 2 ............(0-99) bank.sysex[getPatchStart(patchNum)+104]=(byte)((p.sysex[6+128])); // Pitch EG Rate 3 ............(0-99) bank.sysex[getPatchStart(patchNum)+105]=(byte)((p.sysex[6+129])); // Pitch EG Rate 4 ............(0-99) bank.sysex[getPatchStart(patchNum)+106]=(byte)((p.sysex[6+130])); // Pitch EG Level 1 ...........(0-99) bank.sysex[getPatchStart(patchNum)+107]=(byte)((p.sysex[6+131])); // Pitch EG Level 2 ...........(0-99) bank.sysex[getPatchStart(patchNum)+108]=(byte)((p.sysex[6+132])); // Pitch EG Level 3 ...........(0-99) bank.sysex[getPatchStart(patchNum)+109]=(byte)((p.sysex[6+133])); // Pitch EG Level 4 ...........(0-99) bank.sysex[getPatchStart(patchNum)+110]=(byte)((p.sysex[6+134])); // Algorithmic Select .........(0-31) bank.sysex[getPatchStart(patchNum)+111]=(byte)((p.sysex[6+136]*8+p.sysex[6+135])); // Oscillator Sync .............(0-1)| Feedback (0-7) bank.sysex[getPatchStart(patchNum)+112]=(byte)((p.sysex[6+137])); // LFO Speed ..................(0-99) bank.sysex[getPatchStart(patchNum)+113]=(byte)((p.sysex[6+138])); // LFO Delay ..................(0-99) bank.sysex[getPatchStart(patchNum)+114]=(byte)((p.sysex[6+139])); // LFO PMD ....................(0-99) bank.sysex[getPatchStart(patchNum)+115]=(byte)((p.sysex[6+140])); // LFO AMD ....................(0-99) bank.sysex[getPatchStart(patchNum)+116]=(byte)((p.sysex[6+143]*16+p.sysex[6+142]*2+p.sysex[6+141])); // LFO Mod Sensitivity Pitch ...(0-7) // | LFO Wave (0-5)| LFO Sync (0-1) bank.sysex[getPatchStart(patchNum)+117]=(byte)((p.sysex[6+144])); // Transpose ..................(0-48) bank.sysex[getPatchStart(patchNum)+118]=(byte)((p.sysex[6+145])); // Voice name 1 ...............ASCII bank.sysex[getPatchStart(patchNum)+119]=(byte)((p.sysex[6+146])); // Voice name 2 ...............ASCII bank.sysex[getPatchStart(patchNum)+120]=(byte)((p.sysex[6+147])); // Voice name 3 ...............ASCII bank.sysex[getPatchStart(patchNum)+121]=(byte)((p.sysex[6+148])); // Voice name 4 ...............ASCII bank.sysex[getPatchStart(patchNum)+122]=(byte)((p.sysex[6+149])); // Voice name 5 ...............ASCII bank.sysex[getPatchStart(patchNum)+123]=(byte)((p.sysex[6+150])); // Voice name 6 ...............ASCII bank.sysex[getPatchStart(patchNum)+124]=(byte)((p.sysex[6+151])); // Voice name 7 ...............ASCII bank.sysex[getPatchStart(patchNum)+125]=(byte)((p.sysex[6+152])); // Voice name 8 ...............ASCII bank.sysex[getPatchStart(patchNum)+126]=(byte)((p.sysex[6+153])); // Voice name 9 ...............ASCII bank.sysex[getPatchStart(patchNum)+127]=(byte)((p.sysex[6+154])); // Voice name 10 ...............ASCII calculateChecksum(bank); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/DX7FamilyVoiceBankDriver.java/buggy/JSynthLib/synthdrivers/YamahaDX7/common/DX7FamilyVoiceBankDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1378, 7332, 12, 7332, 11218, 16, 7332, 293, 16, 474, 4729, 2578, 13, 202, 202, 759, 27010, 279, 4729, 1368, 326, 11218, 16, 14540, 518, 487, 3577, 202, 95, 202, 202, 430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1378, 7332, 12, 7332, 11218, 16, 7332, 293, 16, 474, 4729, 2578, 13, 202, 202, 759, 27010, 279, 4729, 1368, 326, 11218, 16, 14540, 518, 487, 3577, 202, 95, 202, 202, 430,...
if(!m_shouldProcess)
if (!m_shouldProcess)
public void endElement (String uri, String localName, String rawName) throws SAXException { m_elementID--; if(!m_shouldProcess) return; if((m_elementID+1) == m_fragmentID) m_shouldProcess = false; flushCharacters(); XSLTElementProcessor p = getCurrentProcessor(); p.endElement (this, uri, localName, rawName); this.popProcessor(); m_nsSupport.popContext(); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/6fbfc5b396871b2ddb731ea98fccffe88307b5d3/StylesheetHandler.java/clean/src/org/apache/xalan/processor/StylesheetHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 14840, 261, 780, 2003, 16, 514, 11927, 16, 514, 1831, 461, 13, 565, 1216, 14366, 225, 288, 565, 312, 67, 2956, 734, 413, 31, 377, 309, 16051, 81, 67, 13139, 2227, 13, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14840, 261, 780, 2003, 16, 514, 11927, 16, 514, 1831, 461, 13, 565, 1216, 14366, 225, 288, 565, 312, 67, 2956, 734, 413, 31, 377, 309, 16051, 81, 67, 13139, 2227, 13, 1377, ...
UltrapeerSettings.MAX_LEAVES.setValue(1);
UltrapeerSettings.MAX_LEAVES.setValue(4);
public static void setSettings() { //Setup LimeWire backend. For testing other vendors, you can skip all //this and manually configure a client to listen on port 6667, with //incoming slots and no connections. //To keep LimeWire from connecting to the outside network, we filter out //all addresses but localhost and 18.239.0.*. The latter is used in //pongs for testing. TODO: it would be nice to have a way to prevent //BootstrapServerManager from adding defaults and connecting. FilterSettings.BLACK_LISTED_IP_ADDRESSES.setValue( new String[] {"*.*.*.*"}); FilterSettings.WHITE_LISTED_IP_ADDRESSES.setValue( new String[] {"127.*.*.*"}); ConnectionSettings.PORT.setValue(PORT); SharingSettings.EXTENSIONS_TO_SHARE.setValue("txt;"); // get the resource file for com/limegroup/gnutella File berkeley = CommonUtils.getResourceFile("com/limegroup/gnutella/berkeley.txt"); File susheel = CommonUtils.getResourceFile("com/limegroup/gnutella/susheel.txt"); // now move them to the share dir CommonUtils.copy(berkeley, new File(_sharedDir, "berkeley.txt")); CommonUtils.copy(susheel, new File(_sharedDir, "susheel.txt")); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(true); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(false); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(true); UltrapeerSettings.MAX_LEAVES.setValue(1); ConnectionSettings.NUM_CONNECTIONS.setValue(3); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); ConnectionSettings.USE_GWEBCACHE.setValue(false); ConnectionSettings.WATCHDOG_ACTIVE.setValue(false); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/b4a624b9222353901bdfcfcfd83dd199043faf91/ServerSideOutOfBandReplyTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/ServerSideOutOfBandReplyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 2628, 1435, 288, 3639, 368, 7365, 511, 494, 15249, 4221, 18, 225, 2457, 7769, 1308, 331, 409, 1383, 16, 1846, 848, 2488, 777, 3639, 368, 2211, 471, 10036, 5068, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 2628, 1435, 288, 3639, 368, 7365, 511, 494, 15249, 4221, 18, 225, 2457, 7769, 1308, 331, 409, 1383, 16, 1846, 848, 2488, 777, 3639, 368, 2211, 471, 10036, 5068, 279, ...
_t = __t819;
_t = __t804;
public final void formatphrase(AST _t) throws RecognitionException { AST formatphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t814 = _t; AST tmp814_AST_in = (AST)_t; match(_t,Format_phrase); _t = _t.getFirstChild(); { int _cnt828=0; _loop828: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST __t816 = _t; AST tmp815_AST_in = (AST)_t; match(_t,AS); _t = _t.getFirstChild(); datatype_var(_t); _t = _retTree; _t = __t816; _t = _t.getNextSibling(); break; } case AT: { atphrase(_t); _t = _retTree; break; } case ATTRSPACE: { AST tmp816_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp817_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case AUTORETURN: { AST tmp818_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONTEXTHELPID: { AST __t817 = _t; AST tmp819_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t817; _t = _t.getNextSibling(); break; } case BLANK: { AST tmp820_AST_in = (AST)_t; match(_t,BLANK); _t = _t.getNextSibling(); break; } case COLON: { AST __t818 = _t; AST tmp821_AST_in = (AST)_t; match(_t,COLON); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t818; _t = _t.getNextSibling(); break; } case TO: { AST __t819 = _t; AST tmp822_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t819; _t = _t.getNextSibling(); break; } case DEBLANK: { AST tmp823_AST_in = (AST)_t; match(_t,DEBLANK); _t = _t.getNextSibling(); break; } case DISABLEAUTOZAP: { AST tmp824_AST_in = (AST)_t; match(_t,DISABLEAUTOZAP); _t = _t.getNextSibling(); break; } case FONT: { AST __t820 = _t; AST tmp825_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t820; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t821 = _t; AST tmp826_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t821; _t = _t.getNextSibling(); break; } case HELP: { AST __t822 = _t; AST tmp827_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t822; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case LEXAT: { AST __t823 = _t; AST tmp828_AST_in = (AST)_t; match(_t,LEXAT); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t823; _t = _t.getNextSibling(); break; } case LIKE: { AST __t825 = _t; AST tmp829_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; _t = __t825; _t = _t.getNextSibling(); break; } case NOLABELS: { AST tmp830_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case NOTABSTOP: { AST tmp831_AST_in = (AST)_t; match(_t,NOTABSTOP); _t = _t.getNextSibling(); break; } case VALIDATE: { AST __t826 = _t; AST tmp832_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t826; _t = _t.getNextSibling(); break; } case WHEN: { AST __t827 = _t; AST tmp833_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t827; _t = _t.getNextSibling(); break; } case VIEWAS: { viewasphrase(_t); _t = _retTree; break; } default: { if ( _cnt828>=1 ) { break _loop828; } else {throw new NoViableAltException(_t);} } } _cnt828++; } while (true); } _t = __t814; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 740, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 740, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 740, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 740, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
public org.quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { org.quickfix.field.LegRatioQty value = new org.quickfix.field.LegRatioQty();
public quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { quickfix.field.LegRatioQty value = new quickfix.field.LegRatioQty();
public org.quickfix.field.LegRatioQty getLegRatioQty() throws FieldNotFound { org.quickfix.field.LegRatioQty value = new org.quickfix.field.LegRatioQty(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityListRequest.java/clean/src/java/src/quickfix/fix44/SecurityListRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 336, 8329, 8541, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 336, 8329, 8541, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8541, 53, 4098, 46...
private void ensureCapacity (int n) { if (n > 0 && data == null) { data = new String[25]; }
private void ensureCapacity (int n) { if (n <= 0) { return; } int max; if (data == null || data.length == 0) { max = 25; } else if (data.length >= n * 5) { return; } else { max = data.length; } while (max < n * 5) { max *= 2; }
private void ensureCapacity (int n) { if (n > 0 && data == null) { data = new String[25]; } int max = data.length; if (max >= n * 5) { return; } while (max < n * 5) { max *= 2; } String newData[] = new String[max]; System.arraycopy(data, 0, newData, 0, length*5); data = newData; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/5d8a9be747b94230370a63bc67735fc114d1e322/AttributesImpl.java/buggy/src/org/xml/sax/helpers/AttributesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3387, 7437, 261, 474, 290, 13, 565, 288, 202, 430, 261, 82, 405, 374, 597, 501, 422, 446, 13, 288, 202, 565, 501, 273, 394, 514, 63, 2947, 15533, 202, 97, 202, 474, 943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3387, 7437, 261, 474, 290, 13, 565, 288, 202, 430, 261, 82, 405, 374, 597, 501, 422, 446, 13, 288, 202, 565, 501, 273, 394, 514, 63, 2947, 15533, 202, 97, 202, 474, 943, ...
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; errorLabel = new javax.swing.JLabel(); errorMessageScrollPane = new javax.swing.JScrollPane(); errorMessageTextArea = new javax.swing.JTextPane(); jSeparator1 = new javax.swing.JSeparator(); leftSpacer = new javax.swing.JLabel(); rightSpacer = new javax.swing.JLabel(); okButton = new javax.swing.JButton(); getContentPane().setLayout(new java.awt.GridBagLayout()); setTitle("Analysis Errors"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { closeDialog(evt); } }); errorLabel.setFont(new java.awt.Font("Dialog", 0, 12)); errorLabel.setText("Errors occured during the analysis:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 3; gridBagConstraints.insets = new java.awt.Insets(6, 6, 3, 0); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; getContentPane().add(errorLabel, gridBagConstraints); errorMessageTextArea.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); errorMessageTextArea.setEditable(false); errorMessageScrollPane.setViewportView(errorMessageTextArea); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(4, 6, 4, 6); gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(errorMessageScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; getContentPane().add(jSeparator1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.weightx = 0.5; getContentPane().add(leftSpacer, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.weightx = 0.5; getContentPane().add(rightSpacer, gridBagConstraints); okButton.setMnemonic('O'); okButton.setText("OK"); okButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); getContentPane().add(okButton, gridBagConstraints); pack(); }//GEN-END:initComponents
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/72ab7f16ed0310330188fbe25ed676d5dbb2d01b/AnalysisErrorDialog.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisErrorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 555, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 555, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224...
Thread currentThread = null;
Thread currentThread = Thread.currentThread();
public synchronized void invokeGL(Runnable runnable, boolean isReshape, Runnable initAction) throws GLException { Thread currentThread = null; // Defer JAWT and OpenGL operations until onscreen components are // realized if (!realized()) { realized = EventQueue.isDispatchThread(); } if (!realized() || willSetRenderingThread || (renderingThread != null && renderingThread != (currentThread = Thread.currentThread()))) { if (isReshape) { deferredReshapeAction = runnable; } return; } if (isReshape && noAutoRedraw) { // Don't process reshape requests on the AWT thread deferredReshapeAction = runnable; return; } if (renderingThread == null || deferredSetRenderingThread) { deferredSetRenderingThread = false; if (!makeCurrent(initAction)) { // Couldn't make the thread current because the component has not yet // been visualized, and therefore the context cannot be created. // We'll defer any actions until invokeGL() is called again at a time // when the component has been visualized. if (isReshape) { deferredReshapeAction = runnable; } return; } } // At this point the OpenGL context is current. Offscreen contexts // handle resizing the backing bitmap in makeCurrent. Therefore we // may need to free and make the context current again if we // didn't actually make it current above. if (pendingOffscreenResize && renderingThread != null) { free(); if (!makeCurrent(initAction)) { throw new GLException("Error while resizing offscreen context"); } } boolean caughtException = false; try { if (deferredReshapeAction != null) { deferredReshapeAction.run(); deferredReshapeAction = null; } runnable.run(); swapBuffers(); } catch (RuntimeException e) { caughtException = true; throw(e); } finally { if (caughtException) { // Disallow setRenderingThread if display action is throwing exceptions renderingThread = null; } if (renderingThread == null) { free(); } } }
46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/f516d8cdc25577dd1227b85578d361749ab8063d/GLContext.java/clean/src/net/java/games/jogl/impl/GLContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 4356, 11261, 12, 20013, 14685, 16, 1250, 353, 607, 6560, 16, 10254, 1208, 1803, 13, 1216, 10252, 503, 288, 1377, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 3639, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 4356, 11261, 12, 20013, 14685, 16, 1250, 353, 607, 6560, 16, 10254, 1208, 1803, 13, 1216, 10252, 503, 288, 1377, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 3639, 368, ...
public Object get(int index, Scriptable start) {
public Object get(final int index, final Scriptable start) {
public Object get(int index, Scriptable start) { return wrapped_.get(index, start); }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/bfbb9e2a2e54bf7040308f5f0b4fd744c80370c8/ScoperFunctionObject.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/ScoperFunctionObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 6385, 509, 770, 16, 727, 22780, 787, 13, 288, 3639, 327, 5805, 27799, 588, 12, 1615, 16, 787, 1769, 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, 0, 0, 0, 0, 0, 0, 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, 1033, 336, 12, 6385, 509, 770, 16, 727, 22780, 787, 13, 288, 3639, 327, 5805, 27799, 588, 12, 1615, 16, 787, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
String replyTo = acct.getAttr(Provisioning.A_zimbraPrefReplyToAddress); if (replyTo != null && !replyTo.trim().equals("")) mm.setHeader("Reply-To", replyTo);
Address[] existingReplyTos = mm.getReplyTo(); if (existingReplyTos == null || existingReplyTos.length == 0) { String replyTo = acct.getAttr(Provisioning.A_zimbraPrefReplyToAddress); if (replyTo != null && !replyTo.trim().equals("")) mm.setHeader("Reply-To", replyTo); }
void updateHeaders(MimeMessage mm, Account acct, Account authuser, boolean replyToSender) throws UnsupportedEncodingException, MessagingException { boolean overrideFromHeader = true; try { String fromHdr = mm.getHeader("From", null); if (fromHdr != null && !fromHdr.equals("")) { InternetAddress from = new InternetAddress(fromHdr); if (AccountUtil.allowFromAddress(acct, from.getAddress())) overrideFromHeader = false; } } catch (Exception e) { } boolean isDelegatedRequest = !acct.getId().equalsIgnoreCase(authuser.getId()); InternetAddress sender = isDelegatedRequest ? AccountUtil.getFriendlyEmailAddress(authuser) : null; // set various headers on the outgoing message if (overrideFromHeader) mm.setFrom(AccountUtil.getFriendlyEmailAddress(acct)); mm.setSentDate(new Date()); if (sender == null) { String replyTo = acct.getAttr(Provisioning.A_zimbraPrefReplyToAddress); if (replyTo != null && !replyTo.trim().equals("")) mm.setHeader("Reply-To", replyTo); } else { mm.setSender(sender); if (replyToSender) mm.setReplyTo(new Address[] {sender}); } mm.saveChanges(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6655e58d984cf1d0546b8a6f0516437b47c40833/MailSender.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/MailSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1089, 3121, 12, 13320, 1079, 9740, 16, 6590, 20774, 16, 6590, 1357, 1355, 16, 1250, 30934, 12021, 13, 1216, 15367, 16, 23794, 503, 288, 3639, 1250, 3849, 1265, 1864, 273, 638, 31, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1089, 3121, 12, 13320, 1079, 9740, 16, 6590, 20774, 16, 6590, 1357, 1355, 16, 1250, 30934, 12021, 13, 1216, 15367, 16, 23794, 503, 288, 3639, 1250, 3849, 1265, 1864, 273, 638, 31, 36...
if ( rm != null && rm.length() > 0 )
if (rm != null && rm.length() > 0)
private void initializeResourceManager() throws Exception { /* * Which resource manager? */ String rm = getString( RuntimeConstants.RESOURCE_MANAGER_CLASS ); if ( rm != null && rm.length() > 0 ) { /* * if something was specified, then make one. * if that isn't a ResourceManager, consider * this a huge error and throw */ Object o = null; try { o = Class.forName( rm ).newInstance(); } catch (ClassNotFoundException cnfe ) { String err = "The specified class for Resourcemanager (" + rm + ") does not exist (or is not accessible to the current classlaoder."; error( err ); throw new Exception( err ); } if (!(o instanceof ResourceManager) ) { String err = "The specified class for ResourceManager (" + rm + ") does not implement org.apache.runtime.resource.ResourceManager." + " Velocity not initialized correctly."; error( err); throw new Exception(err); } resourceManager = (ResourceManager) o; resourceManager.initialize( this ); } else { /* * someone screwed up. Lets not fool around... */ String err = "It appears that no class was specified as the" + " ResourceManager. Please ensure that all configuration" + " information is correct."; error( err); throw new Exception( err ); } }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/RuntimeInstance.java/clean/src/java/org/apache/velocity/runtime/RuntimeInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 1420, 1318, 1435, 3639, 1216, 1185, 565, 288, 3639, 1748, 540, 380, 21918, 1058, 3301, 35, 540, 1195, 1171, 514, 6692, 273, 4997, 12, 2509, 2918, 18, 11395, 67, 19402, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 1420, 1318, 1435, 3639, 1216, 1185, 565, 288, 3639, 1748, 540, 380, 21918, 1058, 3301, 35, 540, 1195, 1171, 514, 6692, 273, 4997, 12, 2509, 2918, 18, 11395, 67, 19402, 67...
if (o == this) return true; else if (o == null) return false; else if (o instanceof NamespaceNode) { NamespaceNode ns = (NamespaceNode)o; return (equals(parent, ns.getParentNode()) && equals(name, ns.getNodeName()) && equals(value, ns.getNodeValue())); } else { return false; }
if (o == this) return true; else if (o == null) return false; else if (o instanceof NamespaceNode) { NamespaceNode ns = (NamespaceNode)o; return (equals(parent, ns.getParentNode()) && equals(name, ns.getNodeName()) && equals(value, ns.getNodeValue())); } else { return false;
public boolean equals (Object o) { if (o == this) return true; else if (o == null) return false; else if (o instanceof NamespaceNode) { NamespaceNode ns = (NamespaceNode)o; return (equals(parent, ns.getParentNode()) && equals(name, ns.getNodeName()) && equals(value, ns.getNodeValue())); } else { return false; } }
47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/3ac43009b72d6ad843b7d9ffe836008742d68e22/NamespaceNode.java/clean/src/java/main/org/jaxen/dom/NamespaceNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 261, 921, 320, 13, 565, 288, 202, 430, 261, 83, 422, 333, 13, 202, 565, 327, 638, 31, 202, 12107, 309, 261, 83, 422, 446, 13, 202, 565, 327, 629, 31, 202, 12107, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 261, 921, 320, 13, 565, 288, 202, 430, 261, 83, 422, 333, 13, 202, 565, 327, 638, 31, 202, 12107, 309, 261, 83, 422, 446, 13, 202, 565, 327, 629, 31, 202, 12107, 3...
if (isConstant(rhs)) {
if (PsiUtil.isConstantExpression(rhs)) {
private static boolean isConstantMask(PsiExpression expression) { if (expression == null) { return false; } if (!(expression instanceof PsiBinaryExpression)) { return false; } final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) expression; final PsiJavaToken sign = binaryExpression.getOperationSign(); if (sign == null) { return false; } final IElementType tokenType = sign.getTokenType(); if (!tokenType.equals(JavaTokenType.OR) && !tokenType.equals(JavaTokenType.AND)) { return false; } final PsiExpression rhs = binaryExpression.getROperand(); if (isConstant(rhs)) { return true; } final PsiExpression lhs = binaryExpression.getLOperand(); if (isConstant(lhs)) { return true; } return false; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/10c8a8cdf3f219ba62286b6497b435ac1e283512/IncompatibleMaskInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/IncompatibleMaskInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 353, 6902, 5796, 12, 52, 7722, 2300, 2652, 13, 288, 3639, 309, 261, 8692, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 16051, 12, 8692, 1276, 453, 7722,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 353, 6902, 5796, 12, 52, 7722, 2300, 2652, 13, 288, 3639, 309, 261, 8692, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 16051, 12, 8692, 1276, 453, 7722,...
IDataItemEventHandler eh = ( IDataItemEventHandler ) getInstance( ( DataItemHandle ) dataItemDesign .getHandle( ) );
IDataItemEventHandler eh = getEventHandler( dataItemDesign, context );
public static void handleOnRender( DataContent content, ExecutionContext context ) { try { ReportItemDesign dataItemDesign = ( ReportItemDesign ) content .getGenerateBy( ); IDataItemInstance dataItem = new DataItemInstance( content, context ); if ( handleJS( dataItem, dataItemDesign.getOnRender( ), context ) .didRun( ) ) return; IDataItemEventHandler eh = ( IDataItemEventHandler ) getInstance( ( DataItemHandle ) dataItemDesign .getHandle( ) ); if ( eh != null ) eh.onRender( dataItem, context.getReportContext( ) ); } catch ( Exception e ) { log.log( Level.WARNING, e.getMessage( ), e ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0422a1db84842d1e332663c3d4c7e2a8109aca8/DataItemScriptExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DataItemScriptExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 1398, 3420, 12, 1910, 1350, 913, 16, 1082, 202, 3210, 1042, 819, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 1180, 15478, 27493, 15478, 273, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 1398, 3420, 12, 1910, 1350, 913, 16, 1082, 202, 3210, 1042, 819, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 1180, 15478, 27493, 15478, 273, 26...
accessibleContext = new AccessibleJSplitPane(this);
accessibleContext = new AccessibleJSplitPane();
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSplitPane(this); return accessibleContext; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JSplitPane.java/clean/core/src/classpath/javax/javax/swing/JSplitPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5016, 1523, 1042, 336, 10451, 1042, 1435, 225, 288, 565, 309, 261, 26037, 1042, 422, 446, 13, 1377, 12718, 1042, 273, 394, 5016, 1523, 46, 5521, 8485, 5621, 377, 327, 12718, 1042, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5016, 1523, 1042, 336, 10451, 1042, 1435, 225, 288, 565, 309, 261, 26037, 1042, 422, 446, 13, 1377, 12718, 1042, 273, 394, 5016, 1523, 46, 5521, 8485, 5621, 377, 327, 12718, 1042, 3...
LOCK_TRIGGER_ACCESS, new TransactionCallback() { public Object execute(Connection conn) throws JobPersistenceException { return Boolean.valueOf(removeTrigger(conn, ctxt, triggerName, groupName)); } })).booleanValue();
LOCK_TRIGGER_ACCESS, new TransactionCallback() { public Object execute(Connection conn) throws JobPersistenceException { return Boolean.valueOf(removeTrigger(conn, ctxt, triggerName, groupName)); } })).booleanValue();
public boolean removeTrigger(final SchedulingContext ctxt, final String triggerName, final String groupName) throws JobPersistenceException { return ((Boolean)executeInLock( LOCK_TRIGGER_ACCESS, new TransactionCallback() { public Object execute(Connection conn) throws JobPersistenceException { return Boolean.valueOf(removeTrigger(conn, ctxt, triggerName, groupName)); } })).booleanValue(); }
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/JobStoreSupport.java/clean/src/java/org/quartz/impl/jdbcjobstore/JobStoreSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 6518, 12, 6385, 348, 13252, 1042, 14286, 16, 727, 514, 3080, 461, 16, 3639, 727, 514, 11619, 13, 1216, 3956, 13182, 503, 288, 3639, 327, 14015, 5507, 13, 8837, 382, 2531...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 6518, 12, 6385, 348, 13252, 1042, 14286, 16, 727, 514, 3080, 461, 16, 3639, 727, 514, 11619, 13, 1216, 3956, 13182, 503, 288, 3639, 327, 14015, 5507, 13, 8837, 382, 2531...
sentSuccess = true;
private void realRun() { runThread = Thread.currentThread(); // FIXME implement rate limiting or something! // Send Accepted Message accepted = DMT.createFNPAccepted(uid); try { source.send(accepted, this); } catch (NotConnectedException e1) { Logger.minor(this, "Lost connection to source"); return; } // Source will send us a DataInsert MessageFilter mf; mf = MessageFilter.create().setType(DMT.FNPDataInsert).setField(DMT.UID, uid).setSource(source).setTimeout(DATA_INSERT_TIMEOUT); Message msg; try { msg = node.usm.waitFor(mf, this); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected while waiting for DataInsert on "+uid); return; } Logger.minor(this, "Received "+msg); if(msg == null) { try { if(source.isConnected() && (startTime > (source.timeLastConnected()+Node.HANDSHAKE_TIMEOUT*4))) Logger.error(this, "Did not receive DataInsert on "+uid+" from "+source+" !"); Message tooSlow = DMT.createFNPRejectedTimeout(uid); source.sendAsync(tooSlow, null, 0, this); Message m = DMT.createFNPInsertTransfersCompleted(uid, true); source.sendAsync(m, null, 0, this); prb = new PartiallyReceivedBlock(Node.PACKETS_IN_BLOCK, Node.PACKET_SIZE); br = new BlockReceiver(node.usm, source, uid, prb, this); prb.abort(RetrievalException.NO_DATAINSERT, "No DataInsert"); br.sendAborted(RetrievalException.NO_DATAINSERT, "No DataInsert"); return; } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } // We have a DataInsert headers = ((ShortBuffer)msg.getObject(DMT.BLOCK_HEADERS)).getData(); // FIXME check the headers // Now create an CHKInsertSender, or use an existing one, or // discover that the data is in the store. // From this point onwards, if we return cleanly we must go through finish(). prb = new PartiallyReceivedBlock(Node.PACKETS_IN_BLOCK, Node.PACKET_SIZE); if(htl > 0) sender = node.makeInsertSender(key, htl, uid, source, headers, prb, false, closestLoc, true); br = new BlockReceiver(node.usm, source, uid, prb, this); // Receive the data, off thread Runnable dataReceiver = new DataReceiver(); Thread t = new Thread(dataReceiver, "InsertHandler$DataReceiver for UID "+uid); t.setDaemon(true); t.start(); if(htl == 0) { canCommit = true; msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, this); } catch (NotConnectedException e) { // Ignore } finish(CHKInsertSender.SUCCESS); return; } // Wait... // What do we want to wait for? // If the data receive completes, that's very nice, // but doesn't really matter. What matters is what // happens to the CHKInsertSender. If the data receive // fails, that does matter... // We are waiting for a terminal status on the CHKInsertSender, // including REPLIED_WITH_DATA. // If we get transfer failed, we can check whether the receive // failed first. If it did it's not our fault. // If the receive failed, and we haven't started transferring // yet, we probably want to kill the sender. // So we call the wait method on the CHKInsertSender, but we // also have a flag locally to indicate the receive failed. // And if it does, we interrupt. boolean receivedRejectedOverload = false; while(true) { synchronized(sender) { try { if(sender.getStatus() == CHKInsertSender.NOT_FINISHED) sender.wait(5000); } catch (InterruptedException e) { // Cool, probably this is because the receive failed... } } if(receiveFailed) { // Cancel the sender sender.receiveFailed(); // tell it to stop if it hasn't already failed... unless it's sending from store // Nothing else we can do finish(CHKInsertSender.RECEIVE_FAILED); return; } if((!receivedRejectedOverload) && sender.receivedRejectedOverload()) { receivedRejectedOverload = true; // Forward it Message m = DMT.createFNPRejectedOverload(uid, false); try { source.send(m, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } int status = sender.getStatus(); if(status == CHKInsertSender.NOT_FINISHED) { continue; }// // FIXME obviously! For debugging load issues.// if(node.myName.equalsIgnoreCase("Toad #1") &&// node.random.nextBoolean()) {// // Maliciously timeout// Logger.error(this, "Maliciously timing out: was "+sender.getStatusString());// sentSuccess = true;// return;// } // Local RejectedOverload's (fatal). // Internal error counts as overload. It'd only create a timeout otherwise, which is the same thing anyway. // We *really* need a good way to deal with nodes that constantly R_O! if((status == CHKInsertSender.TIMED_OUT) || (status == CHKInsertSender.GENERATED_REJECTED_OVERLOAD) || (status == CHKInsertSender.INTERNAL_ERROR)) { msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } // Might as well store it anyway. if((status == CHKInsertSender.TIMED_OUT) || (status == CHKInsertSender.GENERATED_REJECTED_OVERLOAD)) canCommit = true; finish(status); return; } if((status == CHKInsertSender.ROUTE_NOT_FOUND) || (status == CHKInsertSender.ROUTE_REALLY_NOT_FOUND)) { msg = DMT.createFNPRouteNotFound(uid, sender.getHTL()); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(status); return; } if(status == CHKInsertSender.SUCCESS) { msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(status); return; } // Otherwise...? Logger.error(this, "Unknown status code: "+sender.getStatusString()); msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, this); } catch (NotConnectedException e) { // Ignore } finish(CHKInsertSender.INTERNAL_ERROR); return; } }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/eda25544c98825ea7f1e9ddd5c08127cd671f788/InsertHandler.java/buggy/src/freenet/node/InsertHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2863, 1997, 1435, 288, 3639, 1086, 3830, 273, 4884, 18, 2972, 3830, 5621, 7734, 368, 9852, 2348, 4993, 1800, 310, 578, 5943, 5, 3639, 368, 2479, 8662, 329, 3639, 2350, 8494, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2863, 1997, 1435, 288, 3639, 1086, 3830, 273, 4884, 18, 2972, 3830, 5621, 7734, 368, 9852, 2348, 4993, 1800, 310, 578, 5943, 5, 3639, 368, 2479, 8662, 329, 3639, 2350, 8494, 27...
{ return true; }
{ return true; }
public boolean supportsColumnAliasing() throws SQLException { return true; }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/0c8299478c05542a0f240973829223c7dae7e4dd/DatabaseMetaData.java/buggy/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 1494, 2936, 310, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 1494, 2936, 310, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 638, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
System.out.println("INFO: Parsing LDML document for: "+xmlfileName);
System.out.println("INFO: Parsing "+xmlfileName);
private void createResourceBundle(String xmlfileName) { try { System.out.println("INFO: Parsing LDML document for: "+xmlfileName); Document doc = LDMLUtilities.parse(xmlfileName, false); // Create the Resource linked list which will hold the // data after parsing // The assumption here is that the top // level resource is always a table in ICU ICUResourceWriter.Resource res = parseBundle(doc); if(res!=null && ((ICUResourceWriter.ResourceTable)res).first!=null){ // write out the bundle writeResource(res, xmlfileName); } // writeAliasedResource(); } catch (Throwable se) { System.err.println(xmlfileName + ": ERROR: (parsing and writing) " + se.toString()); se.printStackTrace(); System.exit(1); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/51bc1ccda5174c11ac3549ee5605f555b93ce2e9/LDML2ICUConverter.java/buggy/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 18731, 12, 780, 2025, 17812, 13, 288, 540, 775, 288, 2398, 2332, 18, 659, 18, 8222, 2932, 5923, 30, 19761, 13773, 2902, 17812, 1769, 12900, 4319, 997, 273, 28083, 1495, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 18731, 12, 780, 2025, 17812, 13, 288, 540, 775, 288, 2398, 2332, 18, 659, 18, 8222, 2932, 5923, 30, 19761, 13773, 2902, 17812, 1769, 12900, 4319, 997, 273, 28083, 1495, 11...
String keyString = key.toString();
String keyString = key.toString();
void persistBioentryProperty(Connection conn, int bioentry_id, Object key, Object value, boolean removeFirst, boolean silent) throws SQLException { String keyString = key.toString(); // Ought to check for special-case keys. (or just wait 'til the special case // tables get nuked :-) // ex. references, dbxrefs if (!isBioentryPropertySupported()) { if (silent) { return; } else { throw new SQLException("Can't persist this property since the bioentry_property table isn't available"); } } if (removeFirst) { int id = intern_ontology_term(conn, keyString); PreparedStatement remove_old_value = conn.prepareStatement("delete from bioentry_qualifier_value " + " where bioentry_id = ? and term_id = ?"); remove_old_value.setInt(1, bioentry_id); remove_old_value.setInt(2, id); remove_old_value.executeUpdate(); remove_old_value.close(); } if (value != null) { PreparedStatement insert_new; if (isSPASupported()) { insert_new = conn.prepareStatement("insert into bioentry_qualifier_value " + " (bioentry_id, term_id, value, rank) " + "values (?, intern_ontology_term( ? ), ?, ?)"); if (value instanceof Collection) { int cnt = 0; for (Iterator i = ((Collection) value).iterator(); i.hasNext(); ) { insert_new.setInt(1, bioentry_id); insert_new.setString(2, keyString); insert_new.setInt(4, ++cnt); insert_new.setString(3, i.next().toString()); insert_new.executeUpdate(); } } else { insert_new.setInt(1, bioentry_id); insert_new.setString(2, keyString); insert_new.setInt(3, 1); insert_new.setString(3, value.toString()); insert_new.executeUpdate(); } } else { insert_new = conn.prepareStatement("insert into bioentry_qualifier_value " + " (bioentry_id, term_id, rank, value) " + "values (?, ?, ?, ?)"); int termID = intern_ontology_term(conn, keyString); if (value instanceof Collection) { int cnt = 0; for (Iterator i = ((Collection) value).iterator(); i.hasNext(); ) { insert_new.setInt(1, bioentry_id); insert_new.setInt(2, termID); insert_new.setInt(3, ++cnt); insert_new.setString(4, i.next().toString()); insert_new.executeUpdate(); } } else { insert_new.setInt(1, bioentry_id); insert_new.setInt(2, termID); insert_new.setInt(3, 1); insert_new.setString(4, value.toString()); insert_new.executeUpdate(); } } insert_new.close(); } }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/8a46d5de3fe9090d980d1d2a6af0d1a91dc8dba3/BioSQLSequenceDB.java/buggy/src/org/biojava/bio/seq/db/biosql/BioSQLSequenceDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3898, 38, 1594, 4099, 1396, 12, 1952, 1487, 16, 6862, 509, 25091, 4099, 67, 350, 16, 6862, 1033, 498, 16, 6862, 1033, 460, 16, 6862, 1250, 1206, 3759, 16, 6862, 1250, 10404, 13, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3898, 38, 1594, 4099, 1396, 12, 1952, 1487, 16, 6862, 509, 25091, 4099, 67, 350, 16, 6862, 1033, 498, 16, 6862, 1033, 460, 16, 6862, 1250, 1206, 3759, 16, 6862, 1250, 10404, 13, 36...
public void valueChanged(TreeSelectionEvent treeSelectionEvent) { if (tree.getSelectionPaths() != null && tree.getSelectionPaths().length > 0) { selectedTreePaths = tree.getSelectionModel().getSelectionPaths();
public void valueChanged(TreeSelectionEvent treeSelectionEvent) { if (this.tree.getSelectionPaths() != null && this.tree.getSelectionPaths().length > 0) { selectedTreePaths = this.tree.getSelectionModel().getSelectionPaths();
public void valueChanged(TreeSelectionEvent treeSelectionEvent) { if (tree.getSelectionPaths() != null && tree.getSelectionPaths().length > 0) { selectedTreePaths = tree.getSelectionModel().getSelectionPaths(); } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/d4a93c3315c8aa9b9d64e1c03577610a1dbca61d/JTreeUpdater.java/clean/src/main/mondrian/gui/JTreeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 460, 5033, 12, 2471, 6233, 1133, 2151, 6233, 1133, 13, 288, 202, 202, 430, 261, 3413, 18, 588, 6233, 4466, 1435, 480, 446, 1082, 202, 10, 10, 2151, 18, 588, 6233, 4466, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 460, 5033, 12, 2471, 6233, 1133, 2151, 6233, 1133, 13, 288, 202, 202, 430, 261, 3413, 18, 588, 6233, 4466, 1435, 480, 446, 1082, 202, 10, 10, 2151, 18, 588, 6233, 4466, ...
putParameter("debug-level", new Integer(5), null, 'f');
newParameter("debug-level", new Integer(5), null, 'f');
public DigilibConfiguration() { // create HashMap(20) super(20); // we start with a default logger config BasicConfigurator.configure(); /* * Definition of parameters and default values. System parameters that * are not read from config file have a type 's'. */ // digilib servlet version putParameter( "servlet.version", digilib.servlet.Scaler.dlVersion, null, 's'); // configuration file location putParameter("servlet.config.file", null, null, 's'); // DocuDirCache instance putParameter("servlet.dir.cache", null, null, 's'); // DocuImage class instance putParameter( "servlet.docuimage.class", digilib.image.JAIDocuImage.class, null, 's'); // AuthOps instance for authentication putParameter("servlet.auth.op", null, null, 's'); /* * parameters that can be read from config file have a type 'f' */ // image file to send in case of error putParameter( "error-image", "/docuserver/images/icons/scalerror.gif", null, 'f'); // image file to send if access is denied putParameter( "denied-image", "/docuserver/images/icons/denied.gif", null, 'f'); // base directories in order of preference (prescaled versions last) String[] bd = { "/docuserver/images", "/docuserver/scaled/small" }; putParameter("basedir-list", bd, null, 'f'); // use authentication information putParameter("use-authorization", Boolean.FALSE, null, 'f'); // authentication configuration file putParameter("auth-file", "digilib-auth.xml", null, 'f'); // sending image files as-is allowed putParameter("sendfile-allowed", Boolean.TRUE, null, 'f'); // Debug level putParameter("debug-level", new Integer(5), null, 'f'); // Type of DocuImage instance putParameter( "docuimage-class", "digilib.image.JAIDocuImage", null, 'f'); // part of URL used to indicate authorized access putParameter("auth-url-path", "authenticated/", null, 'f'); // degree of subsampling on image load putParameter("subsample-minimum", new Float(2f), null, 'f'); // default scaling quality putParameter("default-quality", new Integer(1), null, 'f'); // use mapping file to translate paths putParameter("use-mapping", Boolean.FALSE, null, 'f'); // mapping file location putParameter("mapping-file", "digilib-map.xml", null, 'f'); // log4j config file location putParameter("log-config-file", "log4j-config.xml", null, 'f'); }
10369 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10369/28e33e54fd06a387fb3430ba2d1a3b1561523d97/DigilibConfiguration.java/buggy/servlet/src/digilib/servlet/DigilibConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 11678, 330, 495, 1750, 1435, 288, 202, 202, 759, 752, 4317, 12, 3462, 13, 202, 202, 9565, 12, 3462, 1769, 202, 202, 759, 732, 787, 598, 279, 805, 1194, 642, 202, 202, 8252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11678, 330, 495, 1750, 1435, 288, 202, 202, 759, 752, 4317, 12, 3462, 13, 202, 202, 9565, 12, 3462, 1769, 202, 202, 759, 732, 787, 598, 279, 805, 1194, 642, 202, 202, 8252, ...
if( (errorCode >= GLU.GLU.GLU_INVALID_ENUM) && (errorCode <= GLU.GLU.GLU_INVALID_OPERATION) ) { return( gluErrorStrings[ errorCode - GLU.GLU.GLU_INVALID_ENUM ] );
if( (errorCode >= GLUImpl.GLU_INVALID_ENUM) && (errorCode <= GLUImpl.GLU_INVALID_OPERATION) ) { return( gluErrorStrings[ errorCode - GLUImpl.GLU_INVALID_ENUM ] );
public static String gluErrorString( int errorCode ) { if( errorCode == 0 ) { return( "no error" ); } if( (errorCode >= GL.GL_INVALID_ENUM) && (errorCode <= GL.GL_OUT_OF_MEMORY) ) { return( glErrorStrings[ errorCode - GL.GL_INVALID_ENUM ] ); } if( errorCode == GL.GL_TABLE_TOO_LARGE ) { return( "table too large" ); } if( (errorCode >= GLU.GLU.GLU_INVALID_ENUM) && (errorCode <= GLU.GLU.GLU_INVALID_OPERATION) ) { return( gluErrorStrings[ errorCode - GLU.GLU.GLU_INVALID_ENUM ] ); } if( (errorCode >= GLU.GLU.GLU_NURBS_ERROR1) && (errorCode <= GLU.GLU.GLU_NURBS_ERROR37) ) { return( gluErrorStrings[ errorCode - (GLU.GLU.GLU_NURBS_ERROR1 - 1) ] ); } if( (errorCode >= GLU.GLU.GLU_TESS_ERROR1) && (errorCode <= GLU.GLU.GLU_TESS_ERROR8) ) { return( gluErrorStrings[ errorCode - (GLU.GLU.GLU_TESS_ERROR1 - 1) ] ); } return( null ); }
47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/dfbee835b5a50b1c6219bd53e15823ea83d73dd6/Error.java/clean/src/net/java/games/jogl/impl/error/Error.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 5118, 89, 668, 780, 12, 509, 12079, 262, 288, 565, 309, 12, 12079, 422, 374, 262, 288, 1377, 327, 12, 315, 2135, 555, 6, 11272, 565, 289, 565, 309, 12, 261, 27754, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 5118, 89, 668, 780, 12, 509, 12079, 262, 288, 565, 309, 12, 12079, 422, 374, 262, 288, 1377, 327, 12, 315, 2135, 555, 6, 11272, 565, 289, 565, 309, 12, 261, 27754, 154...
img2D = UIHelper.getImage("images/piechartimage.gif");
img2D = UIHelper.getImage("images/piechartimage.gif");
public Collection getChartSubtypes(String sDimension, Orientation orientation) { Vector vSubTypes = new Vector(); // Do not respond to requests for unknown orientations if (!orientation.equals(Orientation.VERTICAL_LITERAL)) { return vSubTypes; } if (sDimension.equals("2D") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_LITERAL.getName())) { img2D = UIHelper.getImage("images/piechartimage.gif"); vSubTypes.add(new DefaultChartSubTypeImpl("Standard Pie Chart", img2D, sStandardDescription)); } else if (sDimension.equals("2D With Depth") || sDimension.equals(ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName())) { img2DWithDepth = UIHelper.getImage("images/piechartwithdepthimage.gif"); vSubTypes.add(new DefaultChartSubTypeImpl("Standard Pie Chart", img2DWithDepth, sStandardDescription)); } return vSubTypes; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7793e94b4d7fab5891f226c6c937e37d85bebad8/PieChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 336, 7984, 1676, 2352, 12, 780, 272, 8611, 16, 531, 12556, 9820, 13, 565, 288, 3639, 5589, 331, 1676, 2016, 273, 394, 5589, 5621, 3639, 368, 2256, 486, 6846, 358, 3285, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 336, 7984, 1676, 2352, 12, 780, 272, 8611, 16, 531, 12556, 9820, 13, 565, 288, 3639, 5589, 331, 1676, 2016, 273, 394, 5589, 5621, 3639, 368, 2256, 486, 6846, 358, 3285, 364, ...
return absolute(current_row+rows);
return absolute(current_row+1+rows);
public boolean relative(int rows) throws SQLException { return absolute(current_row+rows); }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/d3ef753686384256c0a1439b3afb023bd96589ff/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3632, 12, 474, 2595, 13, 1216, 6483, 565, 288, 202, 327, 4967, 12, 2972, 67, 492, 15, 21, 15, 3870, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3632, 12, 474, 2595, 13, 1216, 6483, 565, 288, 202, 327, 4967, 12, 2972, 67, 492, 15, 21, 15, 3870, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
static int getForwardingWord(VM_Address base) throws VM_PragmaUninterruptible, VM_PragmaInline {
static VM_Word getForwardingWord(VM_Address base) throws VM_PragmaUninterruptible, VM_PragmaInline {
static int getForwardingWord(VM_Address base) throws VM_PragmaUninterruptible, VM_PragmaInline { return VM_Interface.readAvailableBitsWord(base); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/e9199992b356786655ffe0ebed85eac89e929500/CopyingHeader.java/clean/rvm/src/vm/memoryManagers/JMTk/header/CopyingHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 8251, 67, 3944, 336, 21487, 3944, 12, 7397, 67, 1887, 1026, 13, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 16, 8251, 67, 2050, 9454, 10870, 288, 565, 327, 8251, 67, 1358, 18, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 8251, 67, 3944, 336, 21487, 3944, 12, 7397, 67, 1887, 1026, 13, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 16, 8251, 67, 2050, 9454, 10870, 288, 565, 327, 8251, 67, 1358, 18, 89...
jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L)
jjCheckNAddTwoStates(47, 48); break; case 48: if ((0x7fffffeL & l) == 0L)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 32) kind = 32; break; case 49: case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(11, 13); break; case 48: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(11, 13); break; case 3: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(14, 16); break; case 6: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(17, 20); break; case 30: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2e6a5e583cccdc19c543caf9a1fb259181c98cb6/WikiParserTokenManager.java/buggy/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
vars.addLocal(name);
vars.addLocal(name, createVariableObject(name, false));
protected void addVariables(Node tree, VariableTable vars) { // OPT: a whole pass to collect variables seems expensive. // Could special case to go into statements only. boolean inFunction = tree.getType() == TokenStream.FUNCTION; PreorderNodeIterator iterator = tree.getPreorderIterator(); ObjToIntMap fNames = null; Node node; while ((node = iterator.nextNode()) != null) { int nodeType = node.getType(); if (inFunction && nodeType == TokenStream.FUNCTION && node != tree && ((FunctionNode) node.getProp(Node.FUNCTION_PROP)).getFunctionType() == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) { // In a function with both "var x" and "function x", // disregard the var statement, independent of order. String name = node.getString(); if (name == null) continue; vars.removeLocal(name); if (fNames == null) fNames = new ObjToIntMap(); fNames.put(name, 0); } if (nodeType != TokenStream.VAR) continue; for (Node cursor = node.getFirstChild(); cursor != null; cursor = cursor.getNextSibling()) { String name = cursor.getString(); if (fNames == null || !fNames.has(name)) vars.addLocal(name); } } String name = tree.getString(); if (inFunction && ((FunctionNode) tree).getFunctionType() == FunctionNode.FUNCTION_EXPRESSION && name != null && name.length() > 0 && vars.hasVariable(name)) { // A function expression needs to have its name as a variable // (if it isn't already allocated as a variable). See // ECMA Ch. 13. We add code to the beginning of the function // to initialize a local variable of the function's name // to the function value. vars.addLocal(name); Node block = tree.getLastChild(); Node setFn = new Node(TokenStream.POP, new Node(TokenStream.SETVAR, new Node(TokenStream.STRING, name), new Node(TokenStream.PRIMARY, TokenStream.THISFN))); block.addChildrenToFront(setFn); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e497d2b898e781a5052344191ab878cd469f3f53/NodeTransformer.java/clean/js/rhino/src/org/mozilla/javascript/NodeTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 6158, 12, 907, 2151, 16, 7110, 1388, 4153, 13, 288, 3639, 368, 16456, 30, 279, 7339, 1342, 358, 3274, 3152, 12001, 19326, 18, 3639, 368, 14312, 4582, 648, 358, 1960, 1368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 6158, 12, 907, 2151, 16, 7110, 1388, 4153, 13, 288, 3639, 368, 16456, 30, 279, 7339, 1342, 358, 3274, 3152, 12001, 19326, 18, 3639, 368, 14312, 4582, 648, 358, 1960, 1368,...
final X86RegisterPool pool = eContext.getPool(); final Register scratch = (Register)pool.request(Item.INT); helper.writeArrayStoreWriteBarrier(r, idx.getRegister(), v, scratch); pool.release(scratch);
final X86RegisterPool pool = eContext.getPool(); final Register scratch = (Register)pool.request(Item.INT); helper.writeArrayStoreWriteBarrier(r, idx.getRegister(), v, scratch); pool.release(scratch);
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrier in use, the index must also be in a register idx.loadIf(eContext, (useBarrier) ? ~Item.REGISTER : ~(Item.CONSTANT|Item.REGISTER)); ref.load(eContext); final Register r = ref.getRegister(); final Register v = val.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.CONSTANT) { final int i = idx.getValue(); os.writeMOV(INTSIZE, r, i + VmArray.DATA_OFFSET * 4, v); } else { final Register i = idx.getRegister(); os.writeMOV(INTSIZE, r, i, 4, VmArray.DATA_OFFSET * 4, v); } if (useBarrier) { // the write barrier could easily be modified to avoid using a scratch register final X86RegisterPool pool = eContext.getPool(); final Register scratch = (Register)pool.request(Item.INT); helper.writeArrayStoreWriteBarrier(r, idx.getRegister(), v, scratch); pool.release(scratch); } val.release(eContext); idx.release(eContext); ref.release(eContext); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2dae0b481ae2c6630293d1adeea4e81e12d7547b/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 3757, 67, 69, 689, 479, 1435, 288, 377, 202, 6385, 1250, 999, 5190, 10342, 273, 261, 2472, 18, 588, 3067, 5190, 10342, 1435, 480, 446, 1769, 377, 202, 3639, 3941, 1180, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 3757, 67, 69, 689, 479, 1435, 288, 377, 202, 6385, 1250, 999, 5190, 10342, 273, 261, 2472, 18, 588, 3067, 5190, 10342, 1435, 480, 446, 1769, 377, 202, 3639, 3941, 1180, ...
return field_218_lcbPlcupcRgbuse;
return field_217_lcbPlcupcRgbuse;
public int getLcbPlcupcRgbuse() { return field_218_lcbPlcupcRgbuse; }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/944c40af98f9912ed6835ed6cbadaea6cc8815cf/FIBAbstractType.java/clean/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/definitions/FIBAbstractType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9014, 7358, 1749, 71, 416, 71, 22333, 1202, 1435, 565, 288, 3639, 327, 652, 67, 22, 4033, 67, 80, 7358, 1749, 71, 416, 71, 22333, 1202, 31, 565, 289, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9014, 7358, 1749, 71, 416, 71, 22333, 1202, 1435, 565, 288, 3639, 327, 652, 67, 22, 4033, 67, 80, 7358, 1749, 71, 416, 71, 22333, 1202, 31, 565, 289, 2, -100, -100, -100, -...
} else { fgColor = colorRegistry .get(IWorkbenchThemeConstants.INACTIVE_TAB_TEXT_COLOR); bgColors[0] = colorRegistry .get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_START); bgColors[1] = colorRegistry .get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_END); percent[0] = currentTheme .getInt(IWorkbenchThemeConstants.INACTIVE_TAB_PERCENT); vertical = currentTheme .getBoolean(IWorkbenchThemeConstants.INACTIVE_TAB_VERTICAL);
ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme(); ColorRegistry colorRegistry = theme.getColorRegistry(); if (isActive()) { drawGradient( colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_TEXT_COLOR), new Color [] { colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_START), colorRegistry.get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END) }, new int [] {theme.getInt(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT)}, theme.getBoolean(IWorkbenchThemeConstants.ACTIVE_TAB_VERTICAL)); } else { drawGradient( colorRegistry.get(IWorkbenchThemeConstants.INACTIVE_TAB_TEXT_COLOR), new Color [] { colorRegistry.get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_START), colorRegistry.get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_END) }, new int [] {theme.getInt(IWorkbenchThemeConstants.INACTIVE_TAB_PERCENT)}, theme.getBoolean(IWorkbenchThemeConstants.INACTIVE_TAB_VERTICAL)); } boolean resizeNeeded = false; Font tabFont = theme.getFontRegistry().get(IWorkbenchThemeConstants.TAB_TEXT_FONT); Font oldTabFont = getTabFolder().getControl().getFont(); if (!oldTabFont.equals(tabFont)) { getTabFolder().getControl().setFont(tabFont); resizeNeeded = true; } super.updateGradient(); if (resizeNeeded) { getTabFolder().setTabHeight(computeTabHeight()); setControlSize();
private void updateGradient() { Color fgColor; ITheme currentTheme = PlatformUI.getWorkbench().getThemeManager() .getCurrentTheme(); FontRegistry fontRegistry = currentTheme.getFontRegistry(); ColorRegistry colorRegistry = currentTheme.getColorRegistry(); Color[] bgColors = new Color[2]; int[] percent = new int[1]; boolean vertical; if (isActive()) { fgColor = colorRegistry .get(IWorkbenchThemeConstants.ACTIVE_TAB_TEXT_COLOR); bgColors[0] = colorRegistry .get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_START); bgColors[1] = colorRegistry .get(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END); percent[0] = currentTheme .getInt(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT); vertical = currentTheme .getBoolean(IWorkbenchThemeConstants.ACTIVE_TAB_VERTICAL); } else { fgColor = colorRegistry .get(IWorkbenchThemeConstants.INACTIVE_TAB_TEXT_COLOR); bgColors[0] = colorRegistry .get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_START); bgColors[1] = colorRegistry .get(IWorkbenchThemeConstants.INACTIVE_TAB_BG_END); percent[0] = currentTheme .getInt(IWorkbenchThemeConstants.INACTIVE_TAB_PERCENT); vertical = currentTheme .getBoolean(IWorkbenchThemeConstants.INACTIVE_TAB_VERTICAL); } getTabFolder().getControl().setFont( fontRegistry.get(IWorkbenchThemeConstants.TAB_TEXT_FONT)); drawGradient(fgColor, bgColors, percent, vertical); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/6434a8436bae586f7687994e72e815dec3639795/EditorPresentation.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/EditorPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 15651, 1435, 288, 3639, 5563, 10186, 2957, 31, 3639, 467, 8335, 783, 8335, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 8335, 1318, 1435, 7734, 263, 588, 3935, 8335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15651, 1435, 288, 3639, 5563, 10186, 2957, 31, 3639, 467, 8335, 783, 8335, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 8335, 1318, 1435, 7734, 263, 588, 3935, 8335, ...
setDataSet((DataSet)newValue); return; case TypePackage.PIE_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue);
setDataSet((DataSet) newValue);
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.PIE_SERIES__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case TypePackage.PIE_SERIES__LABEL: setLabel((Label)newValue); return; case TypePackage.PIE_SERIES__DATA_DEFINITION: getDataDefinition().clear(); getDataDefinition().addAll((Collection)newValue); return; case TypePackage.PIE_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier((Object)newValue); return; case TypePackage.PIE_SERIES__DATA_POINT: setDataPoint((DataPoint)newValue); return; case TypePackage.PIE_SERIES__DATA_SET: setDataSet((DataSet)newValue); return; case TypePackage.PIE_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue); return; case TypePackage.PIE_SERIES__LABEL_POSITION: setLabelPosition((Position)newValue); return; case TypePackage.PIE_SERIES__STACKED: setStacked(((Boolean)newValue).booleanValue()); return; case TypePackage.PIE_SERIES__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case TypePackage.PIE_SERIES__TRANSLUCENT: setTranslucent(((Boolean)newValue).booleanValue()); return; case TypePackage.PIE_SERIES__EXPLOSION: setExplosion(((Integer)newValue).intValue()); return; case TypePackage.PIE_SERIES__TITLE: setTitle((Label)newValue); return; case TypePackage.PIE_SERIES__TITLE_POSITION: setTitlePosition((Position)newValue); return; case TypePackage.PIE_SERIES__LEADER_LINE_ATTRIBUTES: setLeaderLineAttributes((LineAttributes)newValue); return; case TypePackage.PIE_SERIES__LEADER_LINE_STYLE: setLeaderLineStyle((LeaderLineStyle)newValue); return; case TypePackage.PIE_SERIES__LEADER_LINE_LENGTH: setLeaderLineLength(((Double)newValue).doubleValue()); return; case TypePackage.PIE_SERIES__SLICE_OUTLINE: setSliceOutline((ColorDefinition)newValue); return; } eDynamicSet(eFeature, newValue); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/PieSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/PieSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 2...
if (name == null) initialProjectFieldValue = null; else {
if (name == null) { initialProjectFieldValue = null; } else {
public void setInitialProjectName(String name) { if (name == null) initialProjectFieldValue = null; else { initialProjectFieldValue = name.trim(); if(locationArea != null) locationArea.updateProjectName(name.trim()); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardNewProjectCreationPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewProjectCreationPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4435, 4109, 461, 12, 780, 508, 13, 288, 3639, 309, 261, 529, 422, 446, 13, 5411, 2172, 4109, 13559, 273, 446, 31, 3639, 469, 288, 5411, 2172, 4109, 13559, 273, 508, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4435, 4109, 461, 12, 780, 508, 13, 288, 3639, 309, 261, 529, 422, 446, 13, 5411, 2172, 4109, 13559, 273, 446, 31, 3639, 469, 288, 5411, 2172, 4109, 13559, 273, 508, 18, ...
List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = true, brk = true; sort(evaluator, list, exp, desc, brk);
List left = (List) getArg(evaluator, args, 0); List right = (List) getArg(evaluator, args, 1); if (all) { if ((left == null) || left.isEmpty()) { return right; } left.addAll(right); return left; } else { HashSet added = new HashSet(); List result = new ArrayList(); addUnique(result, left, added); addUnique(result, right, added); return result;
protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = true, brk = true; sort(evaluator, list, exp, desc, brk); } if (n < list.size()) { list = list.subList(0, n); } return list; } }; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 478, 318, 3262, 752, 22783, 3262, 12, 2966, 8526, 833, 16, 478, 318, 3262, 9609, 22783, 3262, 13, 288, 7734, 327, 394, 478, 318, 3262, 2171, 12, 21050, 22783, 3262, 13, 288, 10792,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 478, 318, 3262, 752, 22783, 3262, 12, 2966, 8526, 833, 16, 478, 318, 3262, 9609, 22783, 3262, 13, 288, 7734, 327, 394, 478, 318, 3262, 2171, 12, 21050, 22783, 3262, 13, 288, 10792,...
else { return ((sDocComment != null)?(sDocComment):("")); } }
public String generateConstraintEnrichedDocComment (MModelElement me, MAssociationEnd ae) { String sDocComment = generateConstraintEnrichedDocComment (me); MMultiplicity m = ae.getMultiplicity(); if (! (MMultiplicity.M1_1.equals(m) || MMultiplicity.M0_1.equals (m))) { // Multiplicity greater 1, that means we will generate some sort of // collection, so we need to specify the element type tag // Prepare doccomment if (sDocComment != null) { // Just remove closing */ sDocComment = sDocComment.substring (0, sDocComment.indexOf ("*/") + 1); } else { if (VERBOSE){ sDocComment = INDENT + "/**\n" + INDENT + " * \n" + INDENT + " *"; } else { sDocComment = ""; } } // Build doccomment sDocComment += " @element-type " + ae.getType().getName(); sDocComment += "\n" + INDENT + " */"; return sDocComment; } else { return ((sDocComment != null)?(sDocComment):("")); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/GeneratorPHP.java/buggy/modules/php/src/org/argouml/language/php/generator/GeneratorPHP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 5806, 664, 12761, 329, 1759, 4469, 261, 49, 1488, 1046, 1791, 16, 4766, 8227, 490, 7174, 1638, 14221, 13, 288, 565, 514, 272, 1759, 4469, 273, 2103, 5806, 664, 12761, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 5806, 664, 12761, 329, 1759, 4469, 261, 49, 1488, 1046, 1791, 16, 4766, 8227, 490, 7174, 1638, 14221, 13, 288, 565, 514, 272, 1759, 4469, 273, 2103, 5806, 664, 12761, 329...
errorManager.println("EventDistiller: shutting down", EDErrorManager.ERROR); /* Shut down the dispatchers */ if (owner == null) try { ((HierarchicalDispatcher)publicSiena).shutdown(); } catch(Exception e) { e.printStackTrace(); } bus.shutdown(); if (eventDriven) failAll(); if (outputFile != null) try { PrintWriter outputWriter = new PrintWriter(new BufferedWriter(new FileWriter(outputFile))); outputWriter.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + "<rulebase xmlns=\"http: for (int i = 0; i < manager.stateMachineTemplates.size(); i++) outputWriter.write(((EDStateMachineSpecification)manager.stateMachineTemplates.get(i)).toXML()); outputWriter.write("</rulebase>"); outputWriter.close(); } catch(Exception ex) { ex.printStackTrace(); }
public void shutdown() { inShutdown = true; // the loop will die automatically, after cleaning up }
14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/0c4918e212206f6df976dec12ab4ee6bdb0f2d1c/EventDistiller.java/buggy/EventDistiller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 555, 1318, 18, 8222, 2932, 1133, 5133, 24462, 30, 24376, 2588, 3113, 15585, 668, 1318, 18, 3589, 1769, 225, 1748, 2638, 322, 2588, 326, 3435, 414, 1195, 309, 261, 8443, 422, 446, 13, 775, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 555, 1318, 18, 8222, 2932, 1133, 5133, 24462, 30, 24376, 2588, 3113, 15585, 668, 1318, 18, 3589, 1769, 225, 1748, 2638, 322, 2588, 326, 3435, 414, 1195, 309, 261, 8443, 422, 446, 13, 775, 288,...
public void addToBothSidesOfChildren(er.bugtracker.Component object) {
public void addToBothSidesOfChildren(Component object) {
public void addToBothSidesOfChildren(er.bugtracker.Component object) { addObjectToBothSidesOfRelationshipWithKey(object, "children"); }
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/21860412e805f154cb49c770e4efd4a596cf0a19/_Component.java/clean/Wonder/Common/Applications/BugTracker/Frameworks/BTBusinessLogic/Sources/er/bugtracker/_Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9604, 20240, 55, 4369, 951, 4212, 12, 1841, 733, 13, 288, 3639, 31311, 774, 20240, 55, 4369, 951, 8180, 1190, 653, 12, 1612, 16, 315, 5906, 8863, 565, 289, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9604, 20240, 55, 4369, 951, 4212, 12, 1841, 733, 13, 288, 3639, 31311, 774, 20240, 55, 4369, 951, 8180, 1190, 653, 12, 1612, 16, 315, 5906, 8863, 565, 289, 2, -100, -100, -10...
super(new Buffer(new PositionCache(new Summer(fs, file, overwrite)), bufferSize));
super(new Buffer(new PositionCache(new Summer(fs, file, overwrite, nutchConf)), nutchConf.getInt("io.file.buffer.size", 4096)));
public NFSDataOutputStream(NutchFileSystem fs, File file, boolean overwrite, int bufferSize) throws IOException { super(new Buffer(new PositionCache(new Summer(fs, file, overwrite)), bufferSize)); }
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/NFSDataOutputStream.java/clean/src/java/org/apache/nutch/fs/NFSDataOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 31924, 751, 4632, 12, 50, 322, 343, 11785, 2662, 16, 1387, 585, 16, 11794, 1250, 6156, 16, 509, 16939, 13, 565, 1216, 1860, 288, 565, 2240, 12, 2704, 3525, 12, 2704, 11010, 1649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 31924, 751, 4632, 12, 50, 322, 343, 11785, 2662, 16, 1387, 585, 16, 11794, 1250, 6156, 16, 509, 16939, 13, 565, 1216, 1860, 288, 565, 2240, 12, 2704, 3525, 12, 2704, 11010, 1649, ...
spfData.setRedirectDomain(null);
public void run(SPF1Data spfData) throws PermErrorException { String host = this.host; try { host = new MacroExpand(spfData).expandDomain(host); spfData.setRedirectDomain(host); } catch (Exception e) { spfData.setRedirectDomain(null); throw new PermErrorException("Error in redirect modifier: " + host); } }
49306 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49306/8dd14e5e0fcf759527f7528d87c64676e28ff728/RedirectModifier.java/buggy/src/main/java/org/apache/spf/modifier/RedirectModifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 12, 3118, 42, 21, 751, 1694, 74, 751, 13, 1216, 13813, 10009, 288, 3639, 514, 1479, 273, 333, 18, 2564, 31, 3639, 775, 288, 5411, 1479, 273, 394, 31203, 12271, 12, 1752...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 3118, 42, 21, 751, 1694, 74, 751, 13, 1216, 13813, 10009, 288, 3639, 514, 1479, 273, 333, 18, 2564, 31, 3639, 775, 288, 5411, 1479, 273, 394, 31203, 12271, 12, 1752...
assertEquals("{" + SystemUtils.LINE_SEPARATOR + "foo=bar" + SystemUtils.LINE_SEPARATOR + "foozle=doozle" + SystemUtils.LINE_SEPARATOR + "}", MapUtils.toString(props, true));
result = MapUtils.toString(props, true); assertTrue(result.startsWith("{" + SystemUtils.LINE_SEPARATOR)); assertTrue(result.indexOf("foo=bar") != -1); assertTrue(result.indexOf("foozle=doozle") != -1); assertTrue(result.endsWith(SystemUtils.LINE_SEPARATOR + "}"));
public void testToStringMultipleElements() throws Exception { Map props = MapUtils.mapWithKeysAndValues(HashMap.class, new Object[]{"foo", "foozle"}, new Object[]{ "bar", "doozle"}); assertEquals("{foo=bar, foozle=doozle}", MapUtils.toString(props, false)); assertEquals("{" + SystemUtils.LINE_SEPARATOR + "foo=bar" + SystemUtils.LINE_SEPARATOR + "foozle=doozle" + SystemUtils.LINE_SEPARATOR + "}", MapUtils.toString(props, true)); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/059ac8c5e0056c5ac8e2ef697aaf1830bc803b99/MapUtilsTestCase.java/buggy/tests/core/src/test/java/org/mule/test/util/MapUtilsTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5808, 8438, 3471, 1435, 1216, 1185, 565, 288, 3639, 1635, 3458, 273, 1635, 1989, 18, 1458, 1190, 2396, 1876, 1972, 12, 8658, 18, 1106, 16, 394, 1033, 63, 7073, 6, 11351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5808, 8438, 3471, 1435, 1216, 1185, 565, 288, 3639, 1635, 3458, 273, 1635, 1989, 18, 1458, 1190, 2396, 1876, 1972, 12, 8658, 18, 1106, 16, 394, 1033, 63, 7073, 6, 11351, ...
ElementWildcard.setErrReporter(fStringPool, fErrorReporter);
public void setGrammarResolver(GrammarResolver grammarResolver){ fGrammarResolver = grammarResolver; fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter); ElementWildcard.setErrReporter(fStringPool, fErrorReporter); if (fValidating) { //optimization -el initDataTypeValidators(); } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/c545807606fa5f31dc3e72abcb797d9e919ac0b7/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 444, 18576, 4301, 12, 18576, 4301, 6473, 4301, 15329, 1377, 284, 18576, 4301, 273, 6473, 4301, 31, 1377, 284, 30820, 5559, 273, 394, 2592, 14278, 1114, 5559, 12, 74, 18576, 4301,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 444, 18576, 4301, 12, 18576, 4301, 6473, 4301, 15329, 1377, 284, 18576, 4301, 273, 6473, 4301, 31, 1377, 284, 30820, 5559, 273, 394, 2592, 14278, 1114, 5559, 12, 74, 18576, 4301,...
lastCompletedResult= null; searchJob= new ResourceSearchEngineJob(searchJobTicket, model, (ResourceHistory) history, this);
lastCompletedResult = null; searchJob = new ResourceSearchEngineJob(searchJobTicket, model, (ResourceHistory) history, this);
private void scheduleSearchJob() { searchJobTicket++; if (lastComplitedMacher != null && lastComplitedMacher.match(patternString)) { searchJob= new ResourceCachedResultJob(searchJobTicket, lastCompletedResult, model, (ResourceHistory) history); } else { lastComplitedMacher = null; lastCompletedResult= null; searchJob= new ResourceSearchEngineJob(searchJobTicket, model, (ResourceHistory) history, this); } searchJob.schedule(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f9c466e731a3fcd6b27ded21559cc21bf6d87935/ResourceSearcher.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSearcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4788, 2979, 2278, 1435, 288, 202, 202, 3072, 2278, 13614, 9904, 31, 202, 202, 430, 261, 2722, 799, 1127, 329, 49, 27779, 480, 446, 597, 1142, 799, 1127, 329, 49, 27779, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4788, 2979, 2278, 1435, 288, 202, 202, 3072, 2278, 13614, 9904, 31, 202, 202, 430, 261, 2722, 799, 1127, 329, 49, 27779, 480, 446, 597, 1142, 799, 1127, 329, 49, 27779, ...
addVirtualInvoke("org/mozilla/javascript/EcmaError", "getErrorObject", "()Lorg/mozilla/javascript/Scriptable;");
private void generateCatchBlock(int exceptionType, short savedVariableObject, int catchLabel, int startLabel) { int handler = acquireLabel(); classFile.markHandler(handler); // MS JVM gets cranky if the exception object is left on the stack short exceptionObject = getNewWordLocal(); astore(exceptionObject); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); String exceptionName; if (exceptionType == JAVASCRIPT_EXCEPTION) { // unwrap the exception... addScriptRuntimeInvoke( "unwrapJavaScriptException", "(Lorg/mozilla/javascript/JavaScriptException;" +")Ljava/lang/Object;"); exceptionName = "org/mozilla/javascript/JavaScriptException"; } else if (exceptionType == WRAPPED_EXCEPTION) { // unwrap the exception... addScriptRuntimeInvoke( "unwrapWrappedException", "(Lorg/mozilla/javascript/WrappedException;" +")Ljava/lang/Object;"); exceptionName = "org/mozilla/javascript/WrappedException"; } else { if (exceptionType != ECMAERROR_EXCEPTION) Context.codeBug(); // unwrap the exception... addVirtualInvoke("org/mozilla/javascript/EcmaError", "getErrorObject", "()Lorg/mozilla/javascript/Scriptable;"); exceptionName = "org/mozilla/javascript/EcmaError"; } // mark the handler classFile.addExceptionHandler(startLabel, catchLabel, handler, exceptionName); addByteCode(ByteCode.GOTO, catchLabel); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/48b46eb3845fd6cf8fa13cd3def581f9a0ff4339/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 14842, 1768, 12, 474, 1520, 559, 16, 4766, 565, 3025, 5198, 3092, 921, 16, 4766, 565, 509, 1044, 2224, 16, 4766, 565, 509, 787, 2224, 13, 565, 288, 3639, 509, 1838, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 14842, 1768, 12, 474, 1520, 559, 16, 4766, 565, 3025, 5198, 3092, 921, 16, 4766, 565, 509, 1044, 2224, 16, 4766, 565, 509, 787, 2224, 13, 565, 288, 3639, 509, 1838, 273...
stack.resetForMethodEntry(this);
stack.resetForMethodEntry(this);
public void visit(Method obj) { stack.resetForMethodEntry(this); super.visit(obj); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b0d608236fd82590bffe3de5e3fdf95e2c9b3982/BadResultSetAccess.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/BadResultSetAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 12, 1305, 1081, 13, 288, 7734, 2110, 18, 6208, 1290, 1305, 1622, 12, 2211, 1769, 202, 202, 9565, 18, 11658, 12, 2603, 1769, 202, 97, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 12, 1305, 1081, 13, 288, 7734, 2110, 18, 6208, 1290, 1305, 1622, 12, 2211, 1769, 202, 202, 9565, 18, 11658, 12, 2603, 1769, 202, 97, 2, -100, -100, -100, -100, -100...
IPath relPath = pFilePath.removeFirstSegments(getProject().getLocation().segmentCount());
List cmdList = new ArrayList(); cmdList.add(cmd); Map sc = new HashMap(1); sc.put(ScannerInfoTypes.COMPILER_COMMAND, cmdList); IPath relPath = pFilePath.removeFirstSegments(getProject().getLocation().segmentCount());
protected boolean processSingleLine(String line) { boolean rc = false; // GCC C/C++ compiler invocation int compilerInvocationIndex = -1; for (int cii = 0; cii < COMPILER_INVOCATION.length; ++cii) { compilerInvocationIndex = line.indexOf(COMPILER_INVOCATION[cii]); if (compilerInvocationIndex != -1) break; } if (compilerInvocationIndex == -1) return rc; // expecting that compiler invocation is the first token in the line String[] split = line.split("\\s+"); //$NON-NLS-1$ String command = split[0]; // verify that it is compiler invocation int cii2 = -1; for (int cii = 0; cii < COMPILER_INVOCATION.length; ++cii) { cii2 = command.indexOf(COMPILER_INVOCATION[cii]); if (cii2 != -1) break; } if (cii2 == -1) { TraceUtil.outputTrace("Error identifying compiler command", line, TraceUtil.EOL); //$NON-NLS-1$ return rc; } // find a file name int extensionsIndex = -1; boolean found = false; String filePath = null; for (int i = 1; i < split.length; ++i) { int k = split[i].lastIndexOf('.'); if (k != -1 && (split[i].length() - k < 5)) { String fileExtension = split[i].substring(k); extensionsIndex = FILE_EXTENSIONS_LIST.indexOf(fileExtension); if (extensionsIndex != -1) { filePath = split[i]; found = true; break; } } }// for (int j = 0; j < FILE_EXTENSIONS.length; ++j) {// if (split[i].endsWith(FILE_EXTENSIONS[j])) {// filePath = split[i];// extensionsIndex = j;// found = true;// break;// }// }// if (found) break; if (!found) { TraceUtil.outputTrace("Error identifying file name :1", line, TraceUtil.EOL); //$NON-NLS-1$ return rc; } // sanity check if (filePath.indexOf(FILE_EXTENSIONS[extensionsIndex]) == -1) { TraceUtil.outputTrace("Error identifying file name :2", line, TraceUtil.EOL); //$NON-NLS-1$ return rc; } if (fUtil != null) { IPath pFilePath = fUtil.getAbsolutePath(filePath); String longFileName = pFilePath.toString(); String shortFileName = pFilePath.removeFileExtension().lastSegment(); String genericLine = line.replaceAll(filePath, "LONG_NAME"); //$NON-NLS-1$ genericLine = genericLine.replaceAll(shortFileName+"\\.", "SHORT_NAME\\."); //$NON-NLS-1$ //$NON-NLS-2$ CCommandDSC cmd = fUtil.getNewCCommandDSC(genericLine, extensionsIndex > 0); List cmdList = new ArrayList(); cmdList.add(cmd); Map sc = new HashMap(1); sc.put(ScannerInfoTypes.COMPILER_COMMAND, cmdList); if (getProject().getLocation().isPrefixOf(pFilePath)) { IPath relPath = pFilePath.removeFirstSegments(getProject().getLocation().segmentCount()); IFile file = getProject().getFile(relPath); getCollector().contributeToScannerConfig(file, sc); } // fUtil.addGenericCommandForFile2(longFileName, genericLine); } return rc; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/51467c7d3c1899d9f239030ae105e62ca0e137fa/GCCPerFileBOPConsoleParser.java/clean/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1207, 5281, 1670, 12, 780, 980, 13, 288, 3639, 1250, 4519, 273, 629, 31, 3639, 368, 611, 6743, 385, 19, 39, 9904, 5274, 9495, 540, 509, 5274, 9267, 1016, 273, 300, 21, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1207, 5281, 1670, 12, 780, 980, 13, 288, 3639, 1250, 4519, 273, 629, 31, 3639, 368, 611, 6743, 385, 19, 39, 9904, 5274, 9495, 540, 509, 5274, 9267, 1016, 273, 300, 21, 31, ...
); hs.close(); GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO + " unfiltered: " + l.size()); mships.addAll( _filterMemberships(s, f, l) );
catch (InsufficientPrivilegeException eIP) { } }
protected static Set findEffectiveMemberships( GrouperSession s, Group g, Field f ) { /* * @caller public Group.getEffectiveMemberships(f) * @caller protected MembershipFinder.findEffectiveMembers(s, g, field) * @filtered true * @session true */ GrouperSession.validate(s); GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO); Set mships = new LinkedHashSet(); try { Session hs = HibernateHelper.getSession(); List l = hs.find( "from Membership as ms where " + "ms.owner_id = ? " + "and ms.field.name = ? " + "and ms.field.type = ? " + "and ms.depth > 0 ", new Object[] { g.getUuid(), f.getName(), f.getType().toString() }, new Type[] { Hibernate.STRING, Hibernate.STRING, Hibernate.STRING } ); hs.close(); GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO + " unfiltered: " + l.size()); mships.addAll( _filterMemberships(s, f, l) ); } catch (HibernateException eH) { GrouperLog.error(LOG, s, MSG_FEMSHIPSG_PRO + ": " + eH.getMessage()); } GrouperLog.debug(LOG, s, MSG_FEMSHIPSG_PRO + " filtered: " + mships.size()); return mships; } // protected static Set findEffectiveMemberships(s, g, f)
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/c0eaa56df7ae25c0db85519017f250650f770a56/MembershipFinder.java/buggy/grouper/src/grouper/edu/internet2/middleware/grouper/MembershipFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 760, 1000, 1104, 28531, 13447, 87, 12, 565, 3756, 264, 2157, 272, 16, 3756, 314, 16, 2286, 284, 225, 262, 225, 288, 565, 1748, 377, 380, 632, 16140, 565, 1071, 565, 3756, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1000, 1104, 28531, 13447, 87, 12, 565, 3756, 264, 2157, 272, 16, 3756, 314, 16, 2286, 284, 225, 262, 225, 288, 565, 1748, 377, 380, 632, 16140, 565, 1071, 565, 3756, 18, 588,...
String s;
public GrantedAuthority[] getGrantedAuthorities(LdapUserDetails userDetails) throws LdapDataAccessException { Assert.notNull(userDetails, "UserDetails can not be null"); Attributes attributes = userDetails.getAttributes(); Assert.notNull(attributes, "Attributes in the UserDetails object cannot be null"); Attribute attribute = attributes.get(m_userAttribute); if (attribute == null) { s_logger.info("User '" + userDetails.getDn() + "' does not have '" + m_userAttribute + "'. Returning empty list."); return new GrantedAuthority[0]; } List<GrantedAuthority> authorities = new LinkedList<GrantedAuthority>(); try { NamingEnumeration enumeration = attribute.getAll(); while (enumeration.hasMore()) { Object o = enumeration.next(); s_logger.debug("Got '" + m_userAttribute + "' value for user '" + userDetails.getDn() + "': '" + o + "'"); String s; if (o == null) { s = null; } else { s = o.toString(); } if ("OpenNMS User".equals(s)) { authorities.add(new GrantedAuthorityImpl("ROLE_USER")); } else if ("OpenNMS Administrator".equals(s)) { authorities.add(new GrantedAuthorityImpl("ROLE_ADMIN")); } else if ("OpenNMS RTC".equals(s)) { authorities.add(new GrantedAuthorityImpl("ROLE_RTC")); } else { authorities.add(new GrantedAuthorityImpl(s)); } } } catch (NamingException e) { s_logger.info("Received NamingException: " + e.getMessage(), e); throw new LdapDataAccessException("Received naming exception while iterating through values for '" + m_userAttribute + "' attribute.", e); } return authorities.toArray(new GrantedAuthority[0]); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/59510b40d9c7ad0f3ea10e9cd9748a78df6d986f/UserAttributeLdapAuthoritiesPopulator.java/clean/opennms-webapp/src/main/java/org/opennms/web/acegisecurity/UserAttributeLdapAuthoritiesPopulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19689, 329, 10962, 8526, 7162, 6890, 329, 3594, 1961, 12, 18437, 1299, 3790, 729, 3790, 13, 1216, 18053, 751, 9773, 288, 3639, 5452, 18, 902, 2041, 12, 1355, 3790, 16, 315, 1299, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19689, 329, 10962, 8526, 7162, 6890, 329, 3594, 1961, 12, 18437, 1299, 3790, 729, 3790, 13, 1216, 18053, 751, 9773, 288, 3639, 5452, 18, 902, 2041, 12, 1355, 3790, 16, 315, 1299, 37...
public void newtonRaphsonMinimization(GVector initialCoordinates, PotentialFunction forceField) { initializeMinimizationParameters(initialCoordinates); forceField.setEnergyGradient(kCoordinates); gradientk.set(forceField.getEnergyGradient()); //System.out.println("gradient at iteration 1 : g1 = " + gradientk); newtonRaphsonMinimum = new GVector(kCoordinates); //System.out.println(""); //System.out.println("FORCEFIELDTESTS NewtonRaphsonTest"); NewtonRaphsonMethod nrm = new NewtonRaphsonMethod(); GMatrix hessian = new GMatrix(initialCoordinates.getSize(),initialCoordinates.getSize()); while ((iterationNumberkplus1 < NRMaximumIteration) & (convergence == false)) { iterationNumberkplus1 += 1; iterationNumberk += 1; //System.out.println(""); //System.out.println("NR Iteration number: " + iterationNumberkplus1); if (iterationNumberkplus1 != 1) { kCoordinates.set(kplus1Coordinates); gradientk.set(gradientkplus1); } forceField.setEnergyHessian(kCoordinates); hessian.set(forceField.getEnergyHessian()); //System.out.println("hessian = " + hessian); nrm.gradientPerInverseHessian(gradientk,hessian); //System.out.println("GradientPerInverseHessian = " + nrm.getGradientPerInverseHessian()); setkplus1Coordinates(nrm.getGradientPerInverseHessian(), -1); //System.out.println("x" + iterationNumberkplus1 + " = " + kplus1Coordinates); //System.out.println("f(x" + iterationNumberkplus1 + ") = " + forceField.energyFunction(kplus1Coordinates)); forceField.setEnergyGradient(kplus1Coordinates); gradientkplus1.set(forceField.getEnergyGradient()); checkConvergence(NRconvergenceCriterion); //System.out.println("convergence: " + convergence); //System.out.println(""); //System.out.println("f(x" + iterationNumberk + ") = " + forceField.energyFunction(kCoordinates)); //System.out.println("f(x" + iterationNumberkplus1 + ") = " + forceField.energyFunction(kplus1Coordinates)); //System.out.println("gradientkplus1 = " + gradientkplus1); } newtonRaphsonMinimum.set(kplus1Coordinates); //System.out.println("The NR minimum energy is at: " + newtonRaphsonMinimum); return; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/9adcbd5769512fe518277f87ee5cc7c84de1ccb0/GeometricMinimizer.java/buggy/src/org/openscience/cdk/modeling/forcefield/GeometricMinimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 394, 1917, 54, 16003, 816, 2930, 381, 1588, 12, 43, 5018, 2172, 13431, 16, 23435, 2001, 2083, 2944, 974, 13, 288, 9506, 202, 11160, 2930, 381, 1588, 2402, 12, 6769, 13431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 1917, 54, 16003, 816, 2930, 381, 1588, 12, 43, 5018, 2172, 13431, 16, 23435, 2001, 2083, 2944, 974, 13, 288, 9506, 202, 11160, 2930, 381, 1588, 2402, 12, 6769, 13431, ...
stringBuffer.append(TEXT_169);
stringBuffer.append(TEXT_171);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final GenEditorGenerator editorGen = genDiagram.getEditorGen();final GenModel genModel = editorGen.getDomainGenModel();final String pluginActivatorClass = importManager.getImportedName(editorGen.getPlugin().getActivatorQualifiedClassName());final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer);importManager.registerInnerClass("RootElementSelectorPage");if (isRichClientPlatform) { importManager.registerInnerClass("URISelectorPage"); importManager.registerInnerClass("SourceURISelectorPage"); importManager.registerInnerClass("DiagramURISelectorPage");} stringBuffer.append(TEXT_4); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_5); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_6); } if (needsCastToEObject) { stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_8); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_9); } stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_11); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_12); if (needsCastToResultType) { stringBuffer.append(TEXT_13); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_14); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_15); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_16); } stringBuffer.append(TEXT_17); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_18); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.Wizard")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_22); if (isRichClientPlatform) { stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_24); } else { stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_29); } stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_31); if (isRichClientPlatform) { stringBuffer.append(TEXT_32); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPage")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_43); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_44); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_45); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_46); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_47); } stringBuffer.append(TEXT_48); stringBuffer.append(genDiagram.getNewDiagramFileWizardClassName()); stringBuffer.append(TEXT_49); if (isRichClientPlatform) { stringBuffer.append(TEXT_50); } else { stringBuffer.append(TEXT_51); } stringBuffer.append(TEXT_52); if (isRichClientPlatform) { stringBuffer.append(TEXT_53); } else { stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.dialogs.WizardNewFileCreationPage")); stringBuffer.append(TEXT_55); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IContainer")); stringBuffer.append(TEXT_58); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_61); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_62); } stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_64); if (isRichClientPlatform) { stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_67); } else { stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_71); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_74); } stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_78); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_82); if (editorGen.isSameFileForDiagramAndModel()) { stringBuffer.append(TEXT_83); } stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_86); if (isRichClientPlatform) { stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_89); } else { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart")); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.ide.IDE")); stringBuffer.append(TEXT_92); } stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IDiagramLayouter")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_103); if (isRichClientPlatform) { stringBuffer.append(TEXT_104); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_105); } else { stringBuffer.append(TEXT_106); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_108); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_109); } stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_113); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_114); if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.NaiveViewService")); stringBuffer.append(TEXT_116); stringBuffer.append(genDiagram.getUniqueIdentifier()); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); final Comparator<GenContainerBase> comparator = new Comparator<GenContainerBase>() { public int compare(GenContainerBase o1, GenContainerBase o2) { return o1.getVisualID() - o2.getVisualID(); }};TreeSet<GenContainerBase> containers2Generate = new TreeSet<GenContainerBase>(comparator);for (Iterator containers = genDiagram.getAllContainers().iterator(); containers.hasNext();) { GenContainerBase nextContainer = (GenContainerBase) containers.next(); if (!nextContainer.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenDiagram) { containers2Generate.add(nextContainer); continue; } if (nextContainer instanceof GenNode) { //May need to generate if contains compartments with children for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { containers2Generate.add(nextContainer); break; } } }}for (Iterator<GenContainerBase> containers = containers2Generate.iterator(); containers.hasNext();) { GenContainerBase nextContainer = containers.next(); stringBuffer.append(TEXT_119); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_121); if (nextContainer instanceof GenNode) { boolean shouldIterateOverCompartments = false; for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (!nextCompartment.getContainedNodes().isEmpty()) { shouldIterateOverCompartments = true; break; } } if (shouldIterateOverCompartments) { stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_126); for(Iterator compartments = ((GenNode) nextContainer).getCompartments().iterator(); compartments.hasNext(); ) { GenCompartment nextCompartment = (GenCompartment) compartments.next(); if (nextCompartment.getContainedNodes().isEmpty()) { continue; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(nextCompartment.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_128); stringBuffer.append(nextCompartment.getUniqueIdentifier()); stringBuffer.append(TEXT_129); } stringBuffer.append(TEXT_130); } } stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_132); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_137); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_138); boolean shouldIterateToGenerate = false; for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_140); for(Iterator containedNodes = nextContainer.getContainedNodes().iterator(); containedNodes.hasNext(); ) { GenNode nextNode = (GenNode) containedNodes.next(); if (containers2Generate.contains(nextNode)) { stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_142); stringBuffer.append(nextNode.getUniqueIdentifier()); stringBuffer.append(TEXT_143); } } stringBuffer.append(TEXT_144); } stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_146); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_148); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); stringBuffer.append(TEXT_149); if (childNodes.size() == 0) { stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_151); } else { stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_154); Map genFeature2genNodeMap = new LinkedHashMap(); for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { GenNode nextNode = (GenNode) childNodes.get(nodeIndex); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } GenFeature childMetaFeature = typeModelFacet.getChildMetaFeature(); if (!genFeature2genNodeMap.containsKey(childMetaFeature)) { genFeature2genNodeMap.put(childMetaFeature, new ArrayList()); } ((Collection) genFeature2genNodeMap.get(childMetaFeature)).add(nextNode); } Set entrySet = genFeature2genNodeMap.entrySet(); if (entrySet.size() > 0) { stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_156); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_159); } for (Iterator entries = entrySet.iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature childMetaFeature = (GenFeature) nextEntry.getKey(); Collection genNodesCollection = (Collection) nextEntry.getValue(); if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_161); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_163); } else { stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_165); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); stringBuffer.append(TEXT_166); } stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_168); boolean generateSwitch = genNodesCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_169); } for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { GenNode nextNode = (GenNode) genNodesIterator.next(); if (generateSwitch) { stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_171); } else { stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_173); } stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_175); if (generateSwitch) { stringBuffer.append(TEXT_176); } else { stringBuffer.append(TEXT_177); } } if (generateSwitch) { stringBuffer.append(TEXT_178); } if (childMetaFeature.isListType()) { stringBuffer.append(TEXT_179); }} stringBuffer.append(TEXT_180); } } stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_182); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_184); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); stringBuffer.append(TEXT_185); { String _parentNode = "parentView"; List childNodes = nextContainer.getContainedNodes(); boolean isListLayout; if (nextContainer instanceof GenNode) { isListLayout = !org.eclipse.gmf.codegen.gmfgen.util.ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions((GenNode) nextContainer); } else if (nextContainer instanceof GenCompartment) { isListLayout = ((GenCompartment) nextContainer).isListLayout(); } else if (nextContainer instanceof GenDiagram) { isListLayout = false; } else { throw new RuntimeException("Unexpected container"); } stringBuffer.append(TEXT_186); stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_188); for (Iterator it = childNodes.iterator(); it.hasNext(); ) { GenNode nextNode = (GenNode) it.next(); TypeModelFacet typeModelFacet = nextNode.getModelFacet(); if (typeModelFacet == null) { continue; } String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(childNodeInterfaceName); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); stringBuffer.append(TEXT_192); stringBuffer.append(_parentNode); stringBuffer.append(TEXT_193); if (!isListLayout) { int defaultWidth = 40; int defaultHeight = 40; DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) nextNode.getViewmap().find(DefaultSizeAttributes.class); if (defSizeAttrs != null) { defaultWidth = defSizeAttrs.getWidth(); defaultHeight = defSizeAttrs.getHeight(); } stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_195); stringBuffer.append(defaultWidth); stringBuffer.append(TEXT_196); stringBuffer.append(defaultHeight); stringBuffer.append(TEXT_197); } else { stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_200); } stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); }class LinksCollection { private Collection<GenLink> myTypeModelFacetLinks = new LinkedList<GenLink>(); private Collection<GenLink> myFeatureModelFacetLinks = new LinkedList<GenLink>(); public void add(GenLink link) { if (link.getModelFacet() instanceof TypeLinkModelFacet) { myTypeModelFacetLinks.add(link); } else if (link.getModelFacet() instanceof FeatureLinkModelFacet) { myFeatureModelFacetLinks.add(link); } } public Iterator<GenLink> getContainedTypeModelFacetLinks() { return myTypeModelFacetLinks.iterator(); } public Iterator<GenLink> getContainedFeatureModelFacetLinks() { return myFeatureModelFacetLinks.iterator(); }}class CreateChildLinkElements { private TreeMap<GenContainerBase, LinksCollection> myElements; public CreateChildLinkElements() { myElements = new TreeMap<GenContainerBase, LinksCollection>(comparator); } public void add(GenContainerBase o, GenLink link) { buildAncestors(o); myElements.get(o).add(link); } private void buildAncestors(GenContainerBase o) { if (!myElements.containsKey(o)) { LinksCollection elements = new LinksCollection(); myElements.put(o, elements); addAncestors(o); } } private void addAncestors(GenContainerBase o) { if (o instanceof GenCompartment) { GenCompartment compartment = (GenCompartment) o; buildAncestors(compartment.getNode()); } else if (o instanceof GenTopLevelNode) { GenTopLevelNode node = (GenTopLevelNode) o; buildAncestors(node.getDiagram()); } else if (o instanceof GenChildNode) { GenChildNode node = (GenChildNode) o; for(Iterator it = node.getContainers().iterator(); it.hasNext(); ) { GenContainerBase next = (GenContainerBase) it.next(); buildAncestors(next); } } } public boolean contains(GenContainerBase o) { return myElements.containsKey(o); } public Iterator<Map.Entry<GenContainerBase, LinksCollection>> iterator() { return myElements.entrySet().iterator(); }}if (!genDiagram.getLinks().isEmpty()) { CreateChildLinkElements linkContainers2Generate = new CreateChildLinkElements(); //No need to explicitly add diagram, since we build the whole hierarchy up. for(Iterator links = genDiagram.getLinks().iterator(); links.hasNext(); ) { GenLink next = (GenLink) links.next(); GenClass containerClass; LinkModelFacet nextModelFacet = next.getModelFacet(); if (nextModelFacet instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) next.getModelFacet(); if (modelFacet.getSourceMetaFeature() == null && modelFacet.getTargetMetaFeature() == null) { //if one link feature is null, the element is treated as this end of the link. If both are null, we cannot do anything about such a link. containerClass = null; } else { containerClass = modelFacet.getContainmentMetaFeature().getGenClass(); } } else if (nextModelFacet instanceof FeatureLinkModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) next.getModelFacet()).getMetaFeature(); containerClass = metaFeature.getGenClass(); } else { continue; } for (Iterator nodes = genDiagram.getAllNodes().iterator(); nodes.hasNext(); ) { GenNode nextNode = (GenNode) nodes.next(); if (containerClass.getEcoreClass().isSuperTypeOf(nextNode.getDomainMetaClass().getEcoreClass())) { linkContainers2Generate.add(nextNode, next); } } } for(Iterator<Map.Entry<GenContainerBase, LinksCollection>> entryIt = linkContainers2Generate.iterator(); entryIt.hasNext(); ) { Map.Entry<GenContainerBase, LinksCollection> next = entryIt.next(); GenContainerBase nextContainer = next.getKey(); LinksCollection linksCollection = next.getValue(); Iterator<GenLink> typeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks(); Iterator<GenLink> featureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks(); stringBuffer.append(TEXT_203); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_207); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_212); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_213); } boolean shouldIterateToGenerate = false; Collection childElements = new ArrayList(nextContainer.getContainedNodes()); if (nextContainer instanceof GenNode) { childElements.addAll(((GenNode) nextContainer).getCompartments()); } for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (linkContainers2Generate.contains(nextChild)) { shouldIterateToGenerate = true; break; } } if (shouldIterateToGenerate) { stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_218); for(Iterator childrenIterator = childElements.iterator(); childrenIterator.hasNext(); ) { GenContainerBase nextChild = (GenContainerBase) childrenIterator.next(); if (!linkContainers2Generate.contains(nextChild)) { continue; } stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName(nextChild.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_220); stringBuffer.append(nextChild.getUniqueIdentifier()); stringBuffer.append(TEXT_221); } stringBuffer.append(TEXT_222); } stringBuffer.append(TEXT_223); if (typeModelFacetLinks.hasNext() || featureModelFacetLinks.hasNext()) { stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_225); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_227); { String _getViewCode = "parentView"; List childNodes = nextContainer.getContainedNodes(); Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_228); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); stringBuffer.append(TEXT_231); Map genFeature2genLinkMap = new LinkedHashMap();for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature metaFeature = modelFacet.getChildMetaFeature(); if (!genFeature2genLinkMap.containsKey(metaFeature)) { genFeature2genLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2genLinkMap.get(metaFeature)).add(genLink);}Map genFeature2featureGenLinkMap = new LinkedHashMap();for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); if (!genFeature2featureGenLinkMap.containsKey(metaFeature)) { genFeature2featureGenLinkMap.put(metaFeature, new ArrayList()); } ((Collection) genFeature2featureGenLinkMap.get(metaFeature)).add(genLink);}if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_233); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_235); }if (!genFeature2genLinkMap.isEmpty()) { stringBuffer.append(TEXT_236); }for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_238); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_240); } else { stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_242); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_243); } stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_245); boolean generateSwitch = genLinksCollection.size() != 1; if (generateSwitch) { stringBuffer.append(TEXT_246); } for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (generateSwitch) { stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_248); } else { stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_250); } if (modelFacet.getSourceMetaFeature() != null) { stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_253); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); stringBuffer.append(TEXT_254); } else { stringBuffer.append(TEXT_255); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_256); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_257); } if (modelFacet.getTargetMetaFeature() != null) { stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_260); myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); stringBuffer.append(TEXT_261); } else { stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_263); stringBuffer.append(_getViewCode); stringBuffer.append(TEXT_264); } stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_266); if (generateSwitch) { stringBuffer.append(TEXT_267); } else { stringBuffer.append(TEXT_268); } } //iterate over genLinksCollection if (generateSwitch) { stringBuffer.append(TEXT_269); } if (metaFeature.isListType()) { stringBuffer.append(TEXT_270); }}for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entries.hasNext();) { Map.Entry nextEntry = (Map.Entry) entries.next(); GenFeature metaFeature = (GenFeature) nextEntry.getKey(); Collection genLinksCollection = (Collection) nextEntry.getValue(); if (metaFeature.isListType()) { stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_272); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_274); } else { stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_276); myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); stringBuffer.append(TEXT_277); } stringBuffer.append(TEXT_278); for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { GenLink nextLink = (GenLink) genLinksIterator.next(); stringBuffer.append(TEXT_279); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_280); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_281); } stringBuffer.append(TEXT_282); if (metaFeature.isListType()) { stringBuffer.append(TEXT_283); }} stringBuffer.append(TEXT_284); } stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); stringBuffer.append(TEXT_286); stringBuffer.append(nextContainer.getUniqueIdentifier()); stringBuffer.append(TEXT_287); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); stringBuffer.append(TEXT_289); { String _diagramCode = "parentView.getDiagram()"; Iterator<GenLink> _containedTypeModelFacetLinks = linksCollection.getContainedTypeModelFacetLinks();; Iterator<GenLink> _containedFeatureModelFacetLinks = linksCollection.getContainedFeatureModelFacetLinks();; stringBuffer.append(TEXT_290); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); stringBuffer.append(TEXT_294); for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); if (modelFacet == null) { continue; } stringBuffer.append(TEXT_295); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_298); } for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { GenLink nextLink = (GenLink) it.next(); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_301); } stringBuffer.append(TEXT_302); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); stringBuffer.append(TEXT_303); stringBuffer.append(_diagramCode); stringBuffer.append(TEXT_304); } stringBuffer.append(TEXT_305); } }}if(!genDiagram.getLinks().isEmpty()) { stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_307); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); stringBuffer.append(TEXT_308); } stringBuffer.append(TEXT_309); if (isRichClientPlatform) { stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_311); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_312); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_318); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_319); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_321); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_322); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_324); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_325); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_327); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_328); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_333); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_334); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Text")); stringBuffer.append(TEXT_337); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_338); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_341); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Button")); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_344); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionAdapter")); stringBuffer.append(TEXT_345); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionEvent")); stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_349); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyListener")); stringBuffer.append(TEXT_350); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.ModifyEvent")); stringBuffer.append(TEXT_351); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_352); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_353); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_354); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_355); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_356); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_357); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_358); stringBuffer.append(editorGen.getDomainFileExtension()); stringBuffer.append(TEXT_359); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_360); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_361); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_362); stringBuffer.append(editorGen.getDomainGenModel().getModelName()); stringBuffer.append(TEXT_363); stringBuffer.append(editorGen.getDiagramFileExtension()); stringBuffer.append(TEXT_364); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_365); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_366); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_367); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_368); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_370); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_371); stringBuffer.append(importManager.getImportedName("java.io.File")); stringBuffer.append(TEXT_372); } stringBuffer.append(TEXT_373); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.wizard.WizardPage")); stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.ISelectionChangedListener")); stringBuffer.append(TEXT_375); if (isRichClientPlatform) { stringBuffer.append(TEXT_376); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_377); } stringBuffer.append(TEXT_378); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_381); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_382); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_383); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_384); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_385); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_386); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_387); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_388); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_390); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_391); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_392); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_393); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridLayout")); stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_395); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Label")); stringBuffer.append(TEXT_396); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_397); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_398); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_399); final String treeViewer = isRichClientPlatform ? "myTreeViewer" : "treeViewer"; stringBuffer.append(TEXT_400); if (!isRichClientPlatform){ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_401); } stringBuffer.append(treeViewer); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TreeViewer")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_404); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_405); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_406); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.layout.GridData")); stringBuffer.append(TEXT_410); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_411); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider")); stringBuffer.append(TEXT_413); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_414); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider")); stringBuffer.append(TEXT_416); stringBuffer.append(pluginActivatorClass); stringBuffer.append(TEXT_417); if (!isRichClientPlatform) { stringBuffer.append(TEXT_418); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_419); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_421); } stringBuffer.append(TEXT_422); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_423); if (isRichClientPlatform) { stringBuffer.append(TEXT_424); stringBuffer.append(treeViewer); stringBuffer.append(TEXT_425); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection")); stringBuffer.append(TEXT_426); } stringBuffer.append(TEXT_427); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent")); stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection")); stringBuffer.append(TEXT_431); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_432); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IWrapperItemProvider")); stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.util.FeatureMap")); stringBuffer.append(TEXT_435); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_438); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_439); importManager.emitSortedImports(); stringBuffer.append(TEXT_440); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/88670058e3792eb12387f6a2bac58d878ca8f3f6/NewDiagramFileWizardGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/NewDiagramFileWizardGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 14015, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 14015, 921...
return runtime.newFixnum(0);
return newFixnum(runtime, 0);
public static RubyFixnum zero(IRuby runtime) { return runtime.newFixnum(0); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/b97a93eb7bcd2bdbafc1df77af959582b7bbab10/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 8585, 2107, 3634, 12, 7937, 10340, 3099, 13, 288, 3639, 327, 394, 8585, 2107, 12, 9448, 16, 374, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 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, 8585, 2107, 3634, 12, 7937, 10340, 3099, 13, 288, 3639, 327, 394, 8585, 2107, 12, 9448, 16, 374, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
long[] data = { 2281564091665350656L, 2305836407182069516L, 104L, 0L, 0L, 0L};
long[] data = { 3434485596272197632L, 9223345628728278040L, 416L, 0L, 0L, 0L};
private static final long[] mk_tokenSet_4() { long[] data = { 2281564091665350656L, 2305836407182069516L, 104L, 0L, 0L, 0L}; return data; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/722cca774247887cf67fef993c71f848a05e075f/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1525, 8526, 5028, 67, 2316, 694, 67, 24, 1435, 288, 202, 202, 5748, 8526, 501, 273, 288, 576, 6030, 3600, 1105, 5908, 23553, 8643, 3361, 26, 4313, 48, 16, 576, 5082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 727, 1525, 8526, 5028, 67, 2316, 694, 67, 24, 1435, 288, 202, 202, 5748, 8526, 501, 273, 288, 576, 6030, 3600, 1105, 5908, 23553, 8643, 3361, 26, 4313, 48, 16, 576, 5082...
try
VersionRange versionRange = VersionRange.createFromVersionSpec( plugin.getVersion() ); List remoteRepositories = new ArrayList(); remoteRepositories.addAll( project.getPluginArtifactRepositories() ); remoteRepositories.addAll( project.getRemoteArtifactRepositories() ); checkRequiredMavenVersion( plugin, localRepository, remoteRepositories ); Artifact pluginArtifact = artifactFactory.createPluginArtifact( plugin.getGroupId(), plugin.getArtifactId(), versionRange ); pluginArtifact = project.replaceWithActiveArtifact( pluginArtifact ); artifactResolver.resolve( pluginArtifact, project.getPluginArtifactRepositories(), localRepository ); if ( !pluginArtifact.isResolved() )
private PluginDescriptor verifyVersionedPlugin( Plugin plugin, MavenProject project, ArtifactRepository localRepository ) throws PluginVersionResolutionException, PluginManagerException, ArtifactNotFoundException, ArtifactResolutionException { // TODO: this might result in an artifact "RELEASE" being resolved continuously // FIXME: need to find out how a plugin gets marked as 'installed' // and no ChildContainer exists. The check for that below fixes // the 'Can't find plexus container for plugin: xxx' error. if ( !pluginCollector.isPluginInstalled( plugin ) || container.getChildContainer( plugin.getKey() ) == null ) { try { VersionRange versionRange = VersionRange.createFromVersionSpec( plugin.getVersion() ); List remoteRepositories = new ArrayList(); remoteRepositories.addAll( project.getPluginArtifactRepositories() ); remoteRepositories.addAll( project.getRemoteArtifactRepositories() ); checkRequiredMavenVersion( plugin, localRepository, remoteRepositories ); Artifact pluginArtifact = artifactFactory.createPluginArtifact( plugin.getGroupId(), plugin.getArtifactId(), versionRange ); addPlugin( plugin, pluginArtifact, project, localRepository ); project.addPlugin( plugin ); } catch ( ArtifactNotFoundException e ) { String groupId = plugin.getGroupId(); String artifactId = plugin.getArtifactId(); String version = plugin.getVersion(); if ( groupId == null || artifactId == null || version == null ) { throw new PluginNotFoundException( e ); } else if ( groupId.equals( e.getGroupId() ) && artifactId.equals( e.getArtifactId() ) && version.equals( e.getVersion() ) && "maven-plugin".equals( e.getType() ) ) { throw new PluginNotFoundException( e ); } else { throw e; } } catch ( InvalidVersionSpecificationException e ) { throw new PluginVersionResolutionException( plugin.getGroupId(), plugin.getArtifactId(), "Invalid version specification", e ); } } return pluginCollector.getPluginDescriptor( plugin ); }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/f685d8605d2680e70b1ff2895947d2d11787e3c9/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6258, 3187, 3929, 23676, 3773, 12, 6258, 1909, 16, 17176, 4109, 1984, 16, 4766, 10792, 14022, 3305, 1191, 3305, 262, 3639, 1216, 6258, 1444, 11098, 503, 16, 6258, 28020, 16, 14022, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6258, 3187, 3929, 23676, 3773, 12, 6258, 1909, 16, 17176, 4109, 1984, 16, 4766, 10792, 14022, 3305, 1191, 3305, 262, 3639, 1216, 6258, 1444, 11098, 503, 16, 6258, 28020, 16, 14022, 39...
lexState = LexState.EXPR_END;
lexState = LexState.EXPR_END;
private int parseSingleQuotedString(int closeQuote, int openQuote) { ISourcePosition position = support.getPosition(); int c; int nest = 0; // int strstart = ruby.getSourceLine(); StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { // ruby.setSourceLine(strstart); errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : // fall through if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } stringToken.append('\\'); } } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } lexState = LexState.EXPR_END; yaccValue = stringToken.toString(); return Token.tSTRING; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 5281, 15919, 780, 12, 474, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 45, 1830, 2555, 1754, 273, 2865, 18, 588, 2555, 5621, 202, 202, 474, 276, 31, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 5281, 15919, 780, 12, 474, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 45, 1830, 2555, 1754, 273, 2865, 18, 588, 2555, 5621, 202, 202, 474, 276, 31, 202,...
String host = "." + u.getHost(); for (int i = cookieManager.getCookies().size() - 1; i >= 0; i--) { Cookie cookie = (Cookie) cookieManager.getCookies().get(i).getObjectValue(); long exp = cookie.getExpires(); long now = System.currentTimeMillis() / 1000 ; if (cookie == null) continue; if ( host.endsWith(cookie.getDomain()) && u.getFile().startsWith(cookie.getPath()) && (exp == 0 || exp > now)) { org.apache.commons.httpclient.Cookie newCookie = new org.apache.commons.httpclient.Cookie(cookie.getDomain(), cookie.getName(), cookie.getValue(), cookie.getPath(), null, false); httpState.addCookie(newCookie); cookieHeader += cookie.getName() + "=" + cookie.getValue(); } }
if (cookieManager!=null){ String host = "." + u.getHost(); for (int i = cookieManager.getCookies().size() - 1; i >= 0; i--) { Cookie cookie = (Cookie) cookieManager.getCookies().get(i).getObjectValue(); long exp = cookie.getExpires(); long now = System.currentTimeMillis() / 1000 ; if (cookie == null) continue; if ( host.endsWith(cookie.getDomain()) && u.getFile().startsWith(cookie.getPath()) && (exp == 0 || exp > now)) { org.apache.commons.httpclient.Cookie newCookie = new org.apache.commons.httpclient.Cookie(cookie.getDomain(), cookie.getName(), cookie.getValue(), cookie.getPath(), null, false); httpState.addCookie(newCookie); cookieHeader += cookie.getName() + "=" + cookie.getValue(); } } }
private String setConnectionCookie(HttpMethod method, URL u, CookieManager cookieManager) { // TODO recode to use HTTPClient matches methods or similar String cookieHeader = ""; // $NON-NLS-1$ String host = "." + u.getHost(); // $NON-NLS-1$ for (int i = cookieManager.getCookies().size() - 1; i >= 0; i--) { Cookie cookie = (Cookie) cookieManager.getCookies().get(i).getObjectValue(); long exp = cookie.getExpires(); long now = System.currentTimeMillis() / 1000 ; if (cookie == null) continue; if ( host.endsWith(cookie.getDomain()) && u.getFile().startsWith(cookie.getPath()) && (exp == 0 || exp > now)) { org.apache.commons.httpclient.Cookie newCookie = new org.apache.commons.httpclient.Cookie(cookie.getDomain(), cookie.getName(), cookie.getValue(), cookie.getPath(), null, false); httpState.addCookie(newCookie); cookieHeader += cookie.getName() + "=" + cookie.getValue(); // $NON-NLS-1$ } } return cookieHeader; }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/3427593930a56237feca89a79488fc18d2a2d987/HTTPSampler2.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 23871, 6151, 12, 2940, 1305, 707, 16, 1976, 582, 16, 10201, 1318, 3878, 1318, 13, 288, 3639, 368, 2660, 283, 710, 358, 999, 22946, 1885, 2590, 578, 7281, 540, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 23871, 6151, 12, 2940, 1305, 707, 16, 1976, 582, 16, 10201, 1318, 3878, 1318, 13, 288, 3639, 368, 2660, 283, 710, 358, 999, 22946, 1885, 2590, 578, 7281, 540, 202, 202, ...
public int STOCH_Lookback( int optInFastK_Period, int optInSlowK_Period, TA_MAType optInSlowK_MAType, int optInSlowD_Period, TA_MAType optInSlowD_MAType ){ int retValue; retValue = (optInFastK_Period - 1); retValue += MA_Lookback ( optInSlowK_Period, optInSlowK_MAType ); retValue += MA_Lookback ( optInSlowD_Period, optInSlowD_MAType ); return retValue;}
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 474, 31487, 1792, 67, 9794, 823, 12, 474, 3838, 382, 12305, 47, 67, 5027, 16, 474, 3838, 382, 28733, 47, 67, 5027, 16, 9833, 67, 5535, 559, 3838, 382, 28733, 47, 67, 5535, 559, 16, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 474, 31487, 1792, 67, 9794, 823, 12, 474, 3838, 382, 12305, 47, 67, 5027, 16, 474, 3838, 382, 28733, 47, 67, 5027, 16, 9833, 67, 5535, 559, 3838, 382, 28733, 47, 67, 5535, 559, 16, 4...
if (sSeries != null) { for (int i=0; i< sSeries.length; i++) { bin = (int)Math.floor((sSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } } return histo; } if (fSeries != null) { for (int i=0; i< fSeries.length; i++) { bin = (int)Math.floor((fSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } } return histo; } if (dSeries != null) { for (int i=0; i< dSeries.length; i++) { bin = (int)Math.floor((dSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } } return histo; } return new int[0]; }
public int[] histogram(double start, double width, int number) { int[] histo = new int[number]; int bin; if (iSeries != null) { for (int i=0; i< iSeries.length; i++) { bin = (int)Math.floor((iSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } // end of if (bin >= 0 && bin < number) } // end of for (int i=0; i< iSeries.length; i++) return histo; } if (sSeries != null) { for (int i=0; i< sSeries.length; i++) { bin = (int)Math.floor((sSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } // end of if (bin >= 0 && bin < number) } // end of for (int i=0; i< iSeries.length; i++) return histo; } if (fSeries != null) { for (int i=0; i< fSeries.length; i++) { bin = (int)Math.floor((fSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } // end of if (bin >= 0 && bin < number) } // end of for (int i=0; i< iSeries.length; i++) return histo; } if (dSeries != null) { for (int i=0; i< dSeries.length; i++) { bin = (int)Math.floor((dSeries[i]-start)/width); if (bin >= 0 && bin < number) { histo[bin]++; } // end of if (bin >= 0 && bin < number) } // end of for (int i=0; i< iSeries.length; i++) return histo; } return new int[0]; }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/d5982e47e849069464a67e7ba4da486d79130155/Statistics.java/clean/src/edu/sc/seis/fissuresUtil/bag/Statistics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8526, 8892, 12, 9056, 787, 16, 1645, 1835, 16, 509, 1300, 13, 288, 565, 509, 8526, 5356, 83, 273, 394, 509, 63, 2696, 15533, 565, 509, 4158, 31, 565, 309, 261, 77, 6485, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8526, 8892, 12, 9056, 787, 16, 1645, 1835, 16, 509, 1300, 13, 288, 565, 509, 8526, 5356, 83, 273, 394, 509, 63, 2696, 15533, 565, 509, 4158, 31, 565, 309, 261, 77, 6485, 48...
String outPath) {
String outPath) throws IOException {
public static void unpackFile(PdfReader reader, PdfDictionary filespec, String outPath) { if (filespec == null) return; try { PdfName type = (PdfName) PdfReader.getPdfObject(filespec .get(PdfName.TYPE)); if (!PdfName.F.equals(type) && !PdfName.FILESPEC.equals(type)) return; PdfDictionary ef = (PdfDictionary) PdfReader.getPdfObject(filespec .get(PdfName.EF)); if (ef == null) return; PdfString fn = (PdfString) PdfReader.getPdfObject(filespec .get(PdfName.F)); System.out.println("Unpacking file '" + fn + "' to " + outPath); if (fn == null) return; File fLast = new File(fn.toUnicodeString()); File fullPath = new File(outPath, fLast.getName()); if (fullPath.exists()) return; PRStream prs = (PRStream) PdfReader.getPdfObject(ef.get(PdfName.F)); if (prs == null) return; byte b[] = PdfReader.getStreamBytes(prs); FileOutputStream fout = new FileOutputStream(fullPath); fout.write(b); fout.close(); } catch (Exception e) { } }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/0d101d06841a4870fd8c7e34d68ca60ca3a330f4/ExtractAttachments.java/buggy/itext/src/com/lowagie/tools/plugins/ExtractAttachments.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 6167, 812, 12, 18562, 2514, 2949, 16, 9989, 10905, 1390, 705, 16, 1082, 202, 780, 596, 743, 13, 288, 202, 202, 430, 261, 2354, 705, 422, 446, 13, 1082, 202, 2463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 6167, 812, 12, 18562, 2514, 2949, 16, 9989, 10905, 1390, 705, 16, 1082, 202, 780, 596, 743, 13, 288, 202, 202, 430, 261, 2354, 705, 422, 446, 13, 1082, 202, 2463, ...
if( transformerFactory != null )
if( transformerFactory == null )
public static Transformer createTransformer() { // If we don't have a factory yet, make one. if( transformerFactory != null ) transformerFactory = new net.sf.saxon.TransformerFactoryImpl(); // And make the new transformer that was requested. try { return transformerFactory.newTransformer(); } catch( TransformerConfigurationException e ) { throw new RuntimeException( e ); } } // createTransformer()
45239 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45239/17c1cdb0ee105cbc4e0640f0911cf2e455a61f90/IndexUtil.java/buggy/WEB-INF/src/org/cdlib/xtf/textEngine/IndexUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 11519, 752, 8319, 1435, 225, 288, 1377, 368, 971, 732, 2727, 1404, 1240, 279, 3272, 4671, 16, 1221, 1245, 18, 1377, 309, 12, 8360, 1733, 422, 446, 262, 6647, 8360, 1733, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 11519, 752, 8319, 1435, 225, 288, 1377, 368, 971, 732, 2727, 1404, 1240, 279, 3272, 4671, 16, 1221, 1245, 18, 1377, 309, 12, 8360, 1733, 422, 446, 262, 6647, 8360, 1733, 273, ...
protected boolean alreadyAdded(ComponentData parent, ComponentData self) { if (self == null)
protected boolean alreadyAdded(final ComponentData parent, final ComponentData self) { if (self == null || parent == null)
protected boolean alreadyAdded(ComponentData parent, ComponentData self) { if (self == null) return true; ComponentData[] children = parent.getChildren(); for (int i = 0; i < children.length; i++) { boolean isdiff = false; ComponentData kid = children[i]; if (kid == null) { if (log.isWarnEnabled()) { log.warn("Child " + i + " is null in " + parent.getName()); } // FIXME: Maybe do a parent.setChildren with a new list that doesn't include // the null? continue; } if (kid.getClassName().equals(self.getClassName())) { if (kid.getType().equals(self.getType())) { if (kid.parameterCount() == self.parameterCount()) { // Then we better compare the parameters in turn. // As soon as we find one that differs, were OK. for (int j = 0; j < kid.parameterCount(); j++) { if (! kid.getParameter(j).equals(self.getParameter(j))) { isdiff = true; break; } } // loop over params // If we get here, we finished comparing the parameters // Either cause we broke out, and isdiff is true // Or we completely compared the child, and it is // identical. // If we did not mark this child as different, // then return true - it is the same if (! isdiff) return true; } // check param count } // check comp type } // check comp class } // loop over children // If we get here, we did not find any component that is identical return false; }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/f40b7e8d4b5594b828707870e89832cee8f0b974/ComponentBase.java/buggy/csmart/src/org/cougaar/tools/csmart/society/ComponentBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 1818, 8602, 12, 1841, 751, 982, 16, 5435, 751, 365, 13, 288, 565, 309, 261, 2890, 422, 446, 13, 1377, 327, 638, 31, 565, 5435, 751, 8526, 2325, 273, 982, 18, 588, 4212, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 1818, 8602, 12, 1841, 751, 982, 16, 5435, 751, 365, 13, 288, 565, 309, 261, 2890, 422, 446, 13, 1377, 327, 638, 31, 565, 5435, 751, 8526, 2325, 273, 982, 18, 588, 4212, 56...
if (loggerLevel != Level.OFF) {
if (DEBUG) {
private RTreeNode[] createDirectoryNodes(RTreeNode[] nodes) { int minEntries = dirMinimum; int maxEntries = dirCapacity - 1; ArrayList<RTreeNode> result = new ArrayList<RTreeNode>(); while (nodes.length > 0) { StringBuffer msg = new StringBuffer(); // get the split axis and split point BulkSplit split = new BulkSplit(nodes, minEntries, maxEntries); int splitAxis = split.splitAxis; int splitPoint = split.splitPoint; if (loggerLevel != Level.OFF) { msg.append("\nsplitAxis ").append(splitAxis); msg.append("\nsplitPoint ").append(splitPoint); } // sort in the right dimension final SpatialComparator comp = new SpatialComparator(); comp.setCompareDimension(splitAxis); comp.setComparisonValue(SpatialComparator.MIN); Arrays.sort(nodes, comp); // create node RTreeNode dirNode = createNewDirectoryNode(dirCapacity); file.writePage(dirNode); result.add(dirNode); // insert data for (int i = 0; i < splitPoint; i++) { dirNode.addNode(nodes[i]); } // copy array RTreeNode[] rest = new RTreeNode[nodes.length - splitPoint]; System.arraycopy(nodes, splitPoint, rest, 0, nodes.length - splitPoint); nodes = rest; if (loggerLevel != Level.OFF) { msg.append("\nrestl. nodes # ").append(nodes.length); } // write to file file.writePage(dirNode); if (loggerLevel != Level.OFF) { msg.append("\npageNo ").append(dirNode.getID()); logger.fine(msg.toString() + "\n"); } } logger.info("numDirPages " + result.size()); return result.toArray(new RTreeNode[result.size()]); }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/e81bf8cbc24bda6aa26ba70ba17be833f8d952d4/RTree.java/clean/src/de/lmu/ifi/dbs/index/spatial/rstar/RTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 534, 12513, 8526, 28430, 3205, 12, 54, 12513, 8526, 2199, 13, 288, 565, 509, 1131, 5400, 273, 1577, 13042, 31, 565, 509, 943, 5400, 273, 1577, 7437, 300, 404, 31, 565, 2407, 32, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 534, 12513, 8526, 28430, 3205, 12, 54, 12513, 8526, 2199, 13, 288, 565, 509, 1131, 5400, 273, 1577, 13042, 31, 565, 509, 943, 5400, 273, 1577, 7437, 300, 404, 31, 565, 2407, 32, 5...
gfx.setClip(clip.x, clip.y, clip.width, clip.height); clipped = true; gfx.translate(bounds.x, bounds.y); translated = true; visitor.visit(comp, gfx);
visitor.visit(comp, g2);
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle oldClip = gfx.getClipBounds(); if (oldClip == null) oldClip = bounds; Rectangle clip = oldClip.intersection(bounds); if (clip.isEmpty()) return; boolean clipped = false; boolean translated = false; try { gfx.setClip(clip.x, clip.y, clip.width, clip.height); clipped = true; gfx.translate(bounds.x, bounds.y); translated = true; visitor.visit(comp, gfx); } finally { if (translated) gfx.translate (-bounds.x, -bounds.y); if (clipped) gfx.setClip (oldClip.x, oldClip.y, oldClip.width, oldClip.height); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e4324f195b821a95e3fba2a565af3e14eb6e7f65/Container.java/clean/core/src/classpath/java/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3757, 1763, 12, 17558, 30940, 16, 611, 19595, 7413, 8000, 16, 12900, 5435, 1161, 13, 225, 288, 565, 13264, 4972, 273, 1161, 18, 588, 5694, 5621, 565, 13264, 1592, 15339, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3757, 1763, 12, 17558, 30940, 16, 611, 19595, 7413, 8000, 16, 12900, 5435, 1161, 13, 225, 288, 565, 13264, 4972, 273, 1161, 18, 588, 5694, 5621, 565, 13264, 1592, 15339, 273, 3...
this.log.debug("MyIdentityManager: startService");
log.debug("MyIdentityManager: startService");
public void startService() { this.log.debug("MyIdentityManager: startService"); super.startService(); idMap = new HashMap(); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ec2cf36ad997ce8dfa31149b65c0def9619650f6/TestNodeManagerImpl.java/buggy/test/src/org/lockss/state/TestNodeManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1179, 1435, 288, 1377, 613, 18, 4148, 2932, 12062, 4334, 1318, 30, 787, 1179, 8863, 1377, 2240, 18, 1937, 1179, 5621, 1377, 612, 863, 273, 394, 4317, 5621, 565, 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, 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, 787, 1179, 1435, 288, 1377, 613, 18, 4148, 2932, 12062, 4334, 1318, 30, 787, 1179, 8863, 1377, 2240, 18, 1937, 1179, 5621, 1377, 612, 863, 273, 394, 4317, 5621, 565, 289, 2, ...
setRowColumn(row, Math.min(table.getColumnCount() - 1, column + 1), true);
setRowColumn(rowIndex, Math.min(columnCount - 1, columnIndex + 1), true);
void keyDown(Event event) { if (table.getItemCount() == 0) return; switch (event.character) { case SWT.CR : notifyListeners(SWT.DefaultSelection, new Event()); return; } switch (event.keyCode) { case SWT.ARROW_UP : setRowColumn(Math.max(0, row - 1), column, true); break; case SWT.ARROW_DOWN : setRowColumn(Math.min(row + 1,table.getItemCount() - 1), column, true); break; case SWT.ARROW_LEFT : case SWT.ARROW_RIGHT : { int leadKey = (getStyle() & SWT.RIGHT_TO_LEFT) != 0 ? SWT.ARROW_RIGHT : SWT.ARROW_LEFT; if (event.keyCode == leadKey) { setRowColumn(row, Math.max(0, column - 1), true); } else { setRowColumn(row, Math.min(table.getColumnCount() - 1, column + 1), true); } break; } case SWT.HOME : setRowColumn(0, column, true); break; case SWT.END : { int i = table.getItemCount() - 1; setRowColumn(i, column, true); break; } case SWT.PAGE_UP : { int index = table.getTopIndex(); if (index == row) { Rectangle rect = table.getClientArea(); TableItem item = table.getItem(index); Rectangle itemRect = item.getBounds(0); rect.height -= itemRect.y; int height = table.getItemHeight(); int page = Math.max(1, rect.height / height); index = Math.max(0, index - page + 1); } setRowColumn(index, column, true); break; } case SWT.PAGE_DOWN : { int index = table.getTopIndex(); Rectangle rect = table.getClientArea(); TableItem item = table.getItem(index); Rectangle itemRect = item.getBounds(0); rect.height -= itemRect.y; int height = table.getItemHeight(); int page = Math.max(1, rect.height / height); int end = table.getItemCount() - 1; index = Math.min(end, index + page - 1); if (index == row) { index = Math.min(end, index + page - 1); } setRowColumn(index, column, true); break; } }}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/e1489e9b81215ca1244a389d6ad6216d07a6b9c1/TableCursor.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 498, 4164, 12, 1133, 871, 13, 288, 202, 430, 261, 2121, 18, 588, 30687, 1435, 422, 374, 13, 327, 31, 202, 9610, 261, 2575, 18, 11560, 13, 288, 202, 202, 3593, 348, 8588, 18, 5093, 294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 498, 4164, 12, 1133, 871, 13, 288, 202, 430, 261, 2121, 18, 588, 30687, 1435, 422, 374, 13, 327, 31, 202, 9610, 261, 2575, 18, 11560, 13, 288, 202, 202, 3593, 348, 8588, 18, 5093, 294...
synchronized(conn) {
synchronized (conn) {
protected void releaseConnection(Connection c) { if (c == conn) { synchronized(conn) { connInUse = false; LOG.info("Released connection - notifying"); conn.notify(); } } else if (c != null) { Exception trace = new Exception(); trace.fillInStackTrace(); StringWriter message = new StringWriter(); PrintWriter pw = new PrintWriter(message); trace.printStackTrace(pw); pw.flush(); LOG.error("Attempt made to release the wrong connection - " + message.toString()); } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/be90eb9e0d8c6624a4922dd569d6c73b4ae3046a/ObjectStoreWriterInterMineImpl.java/clean/intermine/src/java/org/intermine/objectstore/intermine/ObjectStoreWriterInterMineImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3992, 1952, 12, 1952, 276, 13, 288, 3639, 309, 261, 71, 422, 1487, 13, 288, 5411, 3852, 261, 4646, 13, 288, 7734, 1487, 15435, 273, 629, 31, 7734, 2018, 18, 1376, 2932, 26363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3992, 1952, 12, 1952, 276, 13, 288, 3639, 309, 261, 71, 422, 1487, 13, 288, 5411, 3852, 261, 4646, 13, 288, 7734, 1487, 15435, 273, 629, 31, 7734, 2018, 18, 1376, 2932, 26363...
fillerWords = new HashSet();
fillerWords = new HashSet<String>();
public void allocate() throws IOException { if (!allocated) { dictionary = new HashMap(); Timer loadTimer = Timer.getTimer("DictionaryLoad"); fillerWords = new HashSet(); loadTimer.start(); logger.info("Loading dictionary from: " + wordDictionaryFile); loadDictionary(wordDictionaryFile.openStream(), false); loadCustomDictionaries(addendaUrlList); logger.info("Loading filler dictionary from: " + fillerDictionaryFile); loadDictionary(fillerDictionaryFile.openStream(), true); loadTimer.stop(); } }
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/063275f2440d27815582cc264f0c7b2969fbca80/FastDictionary.java/clean/src/sphinx4/edu/cmu/sphinx/linguist/dictionary/FastDictionary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10101, 1435, 1216, 1860, 288, 3639, 309, 16051, 28172, 13, 288, 5411, 3880, 273, 394, 4317, 5621, 5411, 12290, 1262, 6777, 273, 12290, 18, 588, 6777, 2932, 10905, 2563, 8863, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10101, 1435, 1216, 1860, 288, 3639, 309, 16051, 28172, 13, 288, 5411, 3880, 273, 394, 4317, 5621, 5411, 12290, 1262, 6777, 273, 12290, 18, 588, 6777, 2932, 10905, 2563, 8863, 541...
@NotNull String databaseName,
String databaseName,
public Object mysql_list_tables(Env env, @NotNull String databaseName, @Optional Mysqli conn) { if (databaseName == null) return null; // BooleanValue.FALSE; return mysql_query(env, "SHOW TABLES FROM " + databaseName, conn); }
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/a3879eb2a32247c23a8fbdcdae591df76cbac554/MysqlModule.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/db/MysqlModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 7219, 67, 1098, 67, 9373, 12, 3491, 1550, 16, 21394, 514, 15165, 16, 21394, 632, 6542, 490, 16954, 1487, 13, 225, 288, 565, 309, 261, 6231, 461, 422, 446, 13, 1377, 327, 446...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 7219, 67, 1098, 67, 9373, 12, 3491, 1550, 16, 21394, 514, 15165, 16, 21394, 632, 6542, 490, 16954, 1487, 13, 225, 288, 565, 309, 261, 6231, 461, 422, 446, 13, 1377, 327, 446...
sb.append("&bug_severity="); sb.append(severity.getItem(selected[i]));
sb.append("&bug_severity="); sb.append(URLEncoder.encode(severity.getItem(selected[i]), repository.getCharacterEncoding()));
protected StringBuffer getQueryParameters() throws UnsupportedEncodingException { StringBuffer sb = new StringBuffer(); sb.append("short_desc_type="); sb.append(patternOperationValues[summaryOperation.getSelectionIndex()]); sb.append("&short_desc="); sb.append(URLEncoder.encode(summaryPattern.getText(), repository.getCharacterEncoding())); int[] selected = product.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&product="); sb.append(URLEncoder.encode(product.getItem(selected[i]), repository.getCharacterEncoding())); } selected = component.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&component="); sb.append(URLEncoder.encode(component.getItem(selected[i]), repository.getCharacterEncoding())); } selected = version.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&version="); sb.append(URLEncoder.encode(version.getItem(selected[i]), repository.getCharacterEncoding())); } selected = target.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&target_milestone="); sb.append(URLEncoder.encode(target.getItem(selected[i]), repository.getCharacterEncoding())); } sb.append("&long_desc_type="); sb.append(patternOperationValues[commentOperation.getSelectionIndex()]); sb.append("&long_desc="); sb.append(URLEncoder.encode(commentPattern.getText(), repository.getCharacterEncoding())); selected = status.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&bug_status="); sb.append(status.getItem(selected[i])); } selected = resolution.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&resolution="); sb.append(resolution.getItem(selected[i])); } selected = severity.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&bug_severity="); sb.append(severity.getItem(selected[i])); } selected = priority.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&priority="); sb.append(priority.getItem(selected[i])); } selected = hardware.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&ref_platform="); sb.append(URLEncoder.encode(hardware.getItem(selected[i]), repository.getCharacterEncoding())); } selected = os.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&op_sys="); sb.append(URLEncoder.encode(os.getItem(selected[i]), repository.getCharacterEncoding())); } if (emailPattern.getText() != null) { for (int i = 0; i < emailButton.length; i++) { if (emailButton[i].getSelection()) { sb.append("&"); sb.append(emailRoleValues[i]); sb.append("=1"); } } sb.append("&emailtype1="); sb.append(emailOperationValues[emailOperation.getSelectionIndex()]); sb.append("&email1="); sb.append(URLEncoder.encode(emailPattern.getText(), repository.getCharacterEncoding())); } if (daysText.getText() != null && !daysText.getText().equals("")) { try { Integer.parseInt(daysText.getText()); sb.append("&changedin="); sb.append(URLEncoder.encode(daysText.getText(), repository.getCharacterEncoding())); } catch (NumberFormatException ignored) { // this means that the days is not a number, so don't worry } } return sb; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/50b7440148ad2473229c38cf32a79269c1b93690/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6674, 6041, 2402, 1435, 1216, 15367, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 18366, 18, 6923, 2932, 6620, 67, 5569, 67, 723, 1546, 1769, 202, 202, 18366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6674, 6041, 2402, 1435, 1216, 15367, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 18366, 18, 6923, 2932, 6620, 67, 5569, 67, 723, 1546, 1769, 202, 202, 18366...
return nameError; }
return nameError; }
public RubyClass getNameError() { return nameError; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/clean/org/jruby/runtime/RubyExceptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 1723, 668, 1435, 288, 202, 202, 2463, 508, 668, 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, ...
[ 1, 1, 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, 19817, 797, 1723, 668, 1435, 288, 202, 202, 2463, 508, 668, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if (cutAction != null) cutAction.addPropertyChangeListener(cutActionListener);
if (cutAction != null) { cutAction.addPropertyChangeListener(cutActionListener); }
public void setCutAction(IAction action) { if (cutAction == action) return; if (cutAction != null) cutAction.removePropertyChangeListener(cutActionListener); cutAction = action; if (cutAction != null) cutAction.addPropertyChangeListener(cutActionListener); textCutAction.updateEnabledState(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a23c3b9bac4db696a0452560047155775a707b7/TextActionHandler.java/clean/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/TextActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11440, 322, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 5150, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 5150, 1803, 480, 446, 13, 5411, 6391, 1803, 18, 4479,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11440, 322, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 5150, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 5150, 1803, 480, 446, 13, 5411, 6391, 1803, 18, 4479,...
if ( oValue == null )
double[] da = sc.getTickCordinates( ); if ( iv.getType( ) == IntersectionValue.MIN )
public static final double getLocation( AutoScale sc, Object oValue ) throws ChartException, IllegalArgumentException { if ( oValue == null ) { throw new IllegalArgumentException( MessageFormat.format( ResourceBundle.getBundle( Messages.ENGINE, sc.getRunTimeContext( ).getLocale( ) ) .getString( "exception.scale.null.location" ), //$NON-NLS-1$ new Object[]{ sc } ) ); } if ( oValue instanceof Double ) { return getLocation( sc, ( (Double) oValue ).doubleValue( ) ); } else if ( oValue instanceof Calendar ) { return getDateLocation( sc, new CDateTime( (Calendar) oValue ) ); } else if ( oValue instanceof NumberDataElement ) { return getLocation( sc, ( (NumberDataElement) oValue ).getValue( ) ); } else if ( oValue instanceof DateTimeDataElement ) { return getDateLocation( sc, ( (DateTimeDataElement) oValue ).getValueAsCDateTime( ) ); } /* * DefaultLoggerImpl.instance().log(ILogger.WARNING, "Unexpected data * type {0}[value={1}] specified" + oValue.getClass().getName() + oValue ); */// i18n_CONCATENATIONS_REMOVED return sc.getStart( ); // RETURNS THE START EDGE OF THE SCALE }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0dbe8d6814b393e6b534d8d9dc409fff1a8f3cce/Methods.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/Methods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 1645, 13312, 12, 8064, 5587, 888, 16, 1033, 320, 620, 262, 1082, 202, 15069, 14804, 503, 16, 2754, 202, 95, 202, 202, 430, 261, 320, 620, 422, 446, 262, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 1645, 13312, 12, 8064, 5587, 888, 16, 1033, 320, 620, 262, 1082, 202, 15069, 14804, 503, 16, 2754, 202, 95, 202, 202, 430, 261, 320, 620, 422, 446, 262, 202, 202, ...
public void mTokens() throws RecognitionException { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt16=54; alt16 = dfa16.predict(input); if (failed) return ; switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:178: T57 { mT57(); if (failed) return ; } break; case 44 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:182: MISC { mMISC(); if (failed) return ; } break; case 45 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:187: WS { mWS(); if (failed) return ; } break; case 46 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:190: EOL { mEOL(); if (failed) return ; } break; case 47 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:194: INT { mINT(); if (failed) return ; } break; case 48 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:198: FLOAT { mFLOAT(); if (failed) return ; } break; case 49 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:204: STRING { mSTRING(); if (failed) return ; } break; case 50 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:211: BOOL { mBOOL(); if (failed) return ; } break; case 51 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:216: ID { mID(); if (failed) return ; } break; case 52 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:219: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 53 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:248: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 54 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:276: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64...
super.release(); }
super.release(); }
public void release() { super.release(); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/HiddenValueComponent.java/clean/org.rcfaces.core/src/org/rcfaces/core/component/HiddenValueComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3992, 1435, 288, 3639, 2240, 18, 9340, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3992, 1435, 288, 3639, 2240, 18, 9340, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
log.error("File not found.\n" + notFound);
System.err.println("File not found.\n" + notFound);
public static void main(String[] args) { String config="config.txt"; BufferedReader fileReader; String line; boolean sender=false; int num_msgs=1000; int msg_size=500; int num_senders=1; long log_interval=1000; MulticastSocket recv_sock; DatagramSocket send_sock; for(int i=0; i < args.length; i++) { if("-sender".equals(args[i])) { sender=true; continue; } if("-receiver".equals(args[i])) { sender=false; continue; } if("-config".equals(args[i])) { config=args[++i]; continue; } help(); return; } try { fileReader=new BufferedReader(new FileReader(config)); while((line=fileReader.readLine()) != null) { if(line.startsWith("#")) continue; else if(line.startsWith("NUM_MSGS=")) { num_msgs=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("MSG_SIZE=")) { msg_size=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("GRPMEMBERS=")) { grpMembers=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("NUM_SENDERS=")) { num_senders=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("LOG_INTERVAL=")) { log_interval=Long.parseLong(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("GNUPLOT_OUTPUT=")) { // only parse if not yet set by -Dgnuplot_output=true option (overrides file) if(System.getProperty("gnuplot_output") == null) { String gnuplot_output=line.substring(line.indexOf('=') + 1, line.indexOf(';')).trim(); if(gnuplot_output != null) System.setProperty("gnuplot_output", gnuplot_output); } } } fileReader.close(); System.out.println("Javagroups test:"); String s="Initial params parsing completed. Starting test" + " with these values:\n" + "Sender:" + sender + " num_msgs:" + num_msgs + " Size(bytes):" + msg_size + " # Mbrs:" + grpMembers + " Senders: " + num_senders + "\nLog interval: " + log_interval + '\n'; System.out.println(s); Logger.getLogger(Test.class).info("main(): " + s); recv_sock=new MulticastSocket(mcast_port); recv_sock.joinGroup(InetAddress.getByName(mcast_addr)); send_sock=new DatagramSocket(); new UdpTester(recv_sock, send_sock, sender, num_msgs, msg_size, grpMembers, num_senders, log_interval).initialize(); } catch(FileNotFoundException notFound) { log.error("File not found.\n" + notFound); } catch(IOException ioError) { log.error(ioError); } catch(Exception ex) { ex.printStackTrace(); } }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/5ad015d9a78e1da3350d9b398b46b2f5d4508564/Test.java/clean/tests/other/org/jgroups/tests/adaptudp/Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 642, 1546, 1425, 18, 5830, 14432, 3639, 10633, 585, 2514, 31, 3639, 514, 980, 31, 3639, 1250, 5793, 33, 5743, 31, 3639, 509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 642, 1546, 1425, 18, 5830, 14432, 3639, 10633, 585, 2514, 31, 3639, 514, 980, 31, 3639, 1250, 5793, 33, 5743, 31, 3639, 509...
System.out.println("Running XML Test '" + tr.getTest().getName() + "' in Parallel"); runTest(tr); } catch(Exception ex) { ex.printStackTrace();
Utils.log("[SuiteWorker]", 4, "Running XML Test '" + m_testRunner.getTest().getName() + "' in Parallel"); runTest(m_testRunner); } catch(Exception ex) { ex.printStackTrace();
public void run() { try { System.out.println("Running XML Test '" + tr.getTest().getName() + "' in Parallel"); runTest(tr); } catch(Exception ex) { ex.printStackTrace(); } }
50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/1942e422ba883fe38f1ee641e6b0e4ac97bab5f6/SuiteRunner.java/clean/src/main/org/testng/SuiteRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 7051, 3167, 7766, 2119, 397, 7682, 433, 18, 588, 4709, 7675, 17994, 1435, 397, 2491, 316, 20203, 8863, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 5411, 775, 288, 7734, 2332, 18, 659, 18, 8222, 2932, 7051, 3167, 7766, 2119, 397, 7682, 433, 18, 588, 4709, 7675, 17994, 1435, 397, 2491, 316, 20203, 8863, 773...
String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM );
String size = (String) DesignerConstants.fontMap.get( DesignChoiceConstants.FONT_SIZE_MEDIUM );
private static int getLargerFontSizeIntValue( DesignElementHandle handle ) { if ( !( handle instanceof ReportItemHandle ) ) { if ( handle instanceof ModuleHandle ) { // return 10. String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ) + 1; } if ( handle instanceof GroupHandle ) { handle = handle.getContainer( ); } } Object fontSizeValue = getModelFontSize( handle ); if ( fontSizeValue instanceof DimensionValue ) { int size = getFontSizeIntValue( handle.getContainer( ) ); return (int) CSSUtil.convertToPoint( fontSizeValue, size ) + 1; } else if ( fontSizeValue instanceof String ) { String fontSize = (String) fontSizeValue; if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_LARGER ) ) { return getLargerFontSizeIntValue( handle.getContainer( ) ); } else if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_SMALLER ) ) { return getSmallerFontSizeIntValue( handle.getContainer( ) ); } else { for ( int i = 0; i < DesignerConstants.fontSizes.length - 1; i++ ) { if ( fontSize.equals( DesignerConstants.fontSizes[i][0] ) ) { return Integer .parseInt( DesignerConstants.fontSizes[i + 1][1] ); } } return Integer .parseInt( DesignerConstants.fontSizes[DesignerConstants.fontSizes.length - 1][1] ); } } else { // return 10 + 1. String size = (String) DesignerConstants.fontMap .get( DesignChoiceConstants.FONT_SIZE_MEDIUM ); return Integer.parseInt( size ) + 1; } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8f4d195ea2cee97486772b52961bc6329e4c409f/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 509, 9014, 297, 693, 22688, 1702, 620, 12, 29703, 1046, 3259, 1640, 262, 202, 95, 202, 202, 430, 261, 401, 12, 1640, 1276, 8706, 1180, 3259, 262, 262, 202, 202, 95, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 509, 9014, 297, 693, 22688, 1702, 620, 12, 29703, 1046, 3259, 1640, 262, 202, 95, 202, 202, 430, 261, 401, 12, 1640, 1276, 8706, 1180, 3259, 262, 262, 202, 202, 95, 1082...
assertEquals(41, file.getSize());
assertEquals(5000000000L, file.getSize());
public void testParseFieldsOnFile() throws Exception { FTPFile file = getParser().parseFTPEntry("-C--E-----FTP B QUA1I1 18128 41 Aug 12 13:56 QUADTEST"); Calendar today = Calendar.getInstance(); int year = today.get(Calendar.YEAR); assertTrue("Should be a file.", file.isFile()); assertEquals("QUADTEST", file.getName()); assertEquals(41, file.getSize()); assertEquals("QUA1I1", file.getUser()); assertEquals("18128", file.getGroup()); if(today.get(Calendar.MONTH) < Calendar.AUGUST) --year; Calendar timestamp = file.getTimestamp(); assertEquals(year, timestamp.get(Calendar.YEAR)); assertEquals(Calendar.AUGUST, timestamp.get(Calendar.MONTH)); assertEquals(12, timestamp.get(Calendar.DAY_OF_MONTH)); assertEquals(13, timestamp.get(Calendar.HOUR_OF_DAY)); assertEquals(56, timestamp.get(Calendar.MINUTE)); assertEquals(0, timestamp.get(Calendar.SECOND)); checkPermisions(file); }
50121 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50121/aa15730a1563b241d61400d2564dc53cabca0c97/EnterpriseUnixFTPEntryParserTest.java/buggy/src/test/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3201, 2314, 1398, 812, 1435, 1216, 1185, 565, 288, 3639, 19324, 812, 585, 273, 20804, 7675, 2670, 17104, 1622, 2932, 17, 39, 413, 41, 13465, 17104, 605, 10110, 37, 21, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3201, 2314, 1398, 812, 1435, 1216, 1185, 565, 288, 3639, 19324, 812, 585, 273, 20804, 7675, 2670, 17104, 1622, 2932, 17, 39, 413, 41, 13465, 17104, 605, 10110, 37, 21, 45...
} else if (myRole1 == ChildRole.ELSE_KEYWORD) {
} else if (myRole1 == ChildRole.ELSE_KEYWORD) {
public void visitIfStatement(PsiIfStatement statement) { if (myRole2 == ChildRole.ELSE_KEYWORD) { if (myChild1.getElementType() != ElementType.BLOCK_STATEMENT) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } else { if (mySettings.ELSE_ON_NEW_LINE) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } else { myResult = createNonLFSpace(1, false, null); } } } else if (myRole1 == ChildRole.ELSE_KEYWORD) { if (myChild2.getElementType() == ElementType.IF_STATEMENT) { if (mySettings.SPECIAL_ELSE_IF_TREATMENT) { myResult = createNonLFSpace(1, true, null); } else { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } } else { if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_ELSE_LBRACE, mySettings.BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild2.getTextRange().getStartOffset()), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); } else { createSpaceInCode(mySettings.SPACE_BEFORE_ELSE_LBRACE); } } } else if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { boolean space = myRole2 == ChildRole.ELSE_BRANCH ? mySettings.SPACE_BEFORE_ELSE_LBRACE: mySettings.SPACE_BEFORE_IF_LBRACE; myResult = getSpaceBeforeLBrace(space, mySettings.BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild2.getTextRange().getStartOffset()), mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE); } else if (myRole2 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_BEFORE_IF_PARENTHESES); } else if (myRole1 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_WITHIN_IF_PARENTHESES); } else if (myRole2 == ChildRole.RPARENTH) { createSpaceInCode(mySettings.SPACE_WITHIN_IF_PARENTHESES); } else if (myRole2 == ChildRole.THEN_BRANCH) { createSpaceInCode(true); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/1533398430214d8ae562ff3d8dcc5898351f8c45/JavaSpacePropertyProcessor.java/buggy/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 2047, 3406, 12, 52, 7722, 2047, 3406, 3021, 13, 288, 565, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 2247, 1090, 67, 28813, 13, 288, 1377, 309, 261, 4811, 1763, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 2047, 3406, 12, 52, 7722, 2047, 3406, 3021, 13, 288, 565, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 2247, 1090, 67, 28813, 13, 288, 1377, 309, 261, 4811, 1763, 21,...
GenericActivator.exception("Error while loading components "
exception("Error while loading components "
private void loadComponents(Bundle bundle) { if (bundle.getHeaders().get("Service-Component") == null) { // no components in the bundle, abandon return; } // there should be components, load them with a bundle context BundleContext context = getBundleContext(bundle); if (context == null) { GenericActivator.error("Cannot get BundleContext of bundle " + bundle.getSymbolicName()); return; } GenericActivator ga = new GenericActivator(); try { ga.start(context); m_componentBundles.put(bundle.getSymbolicName(), ga); } catch (Exception e) { GenericActivator.exception("Error while loading components " + "of bundle " + bundle.getSymbolicName(), null, e); } }
45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/1b5deeb3e608d9999c7fbc339d73168202c09fca/Activator.java/buggy/scr/src/main/java/org/apache/felix/scr/Activator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 7171, 12, 3405, 3440, 13, 565, 288, 3639, 309, 261, 9991, 18, 588, 3121, 7675, 588, 2932, 1179, 17, 1841, 7923, 422, 446, 13, 3639, 288, 5411, 368, 1158, 4085, 316, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 7171, 12, 3405, 3440, 13, 565, 288, 3639, 309, 261, 9991, 18, 588, 3121, 7675, 588, 2932, 1179, 17, 1841, 7923, 422, 446, 13, 3639, 288, 5411, 368, 1158, 4085, 316, 326...
public static WeaponType createSRM2() { WeaponType weapon = new WeaponType(); weapon.name = "SRM 2"; weapon.internalName = weapon.name; weapon.mepName = "IS SRM-2"; weapon.mtfName = "ISSRM2"; weapon.heat = 2; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 2; weapon.ammoType = AmmoType.T_SRM; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 3; weapon.mediumRange = 6; weapon.longRange = 9; weapon.tonnage = 1.0f; weapon.criticals = 1; weapon.flags |= F_NO_FIRES; weapon.bv = 21; return weapon; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/19768fb3c0b30b271bc193aa54683c8592962b26/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 55, 8717, 22, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 7734, 732, 28629, 18, 529, 273, 315, 55, 8717, 576, 14432,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1660, 28629, 559, 752, 55, 8717, 22, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 7734, 732, 28629, 18, 529, 273, 315, 55, 8717, 576, 14432,...
throw new WorkbenchException( NLS.bind(WorkbenchMessages.Workbench_showPerspectiveError, perspectiveId )); }
IPerspectiveDescriptor desc = getPerspectiveRegistry() .findPerspectiveWithId(perspectiveId); if (desc == null) throw new WorkbenchException( NLS .bind( WorkbenchMessages.WorkbenchPage_ErrorCreatingPerspective, perspectiveId)); win.getShell().open(); if (page == null) page = win.openPage(perspectiveId, input); else page.setPerspective(desc); return page; } throw new WorkbenchException(NLS .bind(WorkbenchMessages.Workbench_showPerspectiveError, perspectiveId)); }
public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException { Assert.isNotNull(perspectiveId); // If the specified window has the requested perspective open, then the // window // is given focus and the perspective is shown. The page's input is // ignored. WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } } // If another window that has the workspace root as input and the // requested // perpective open and active, then the window is given focus. IAdaptable input = getDefaultPageInput(); IWorkbenchWindow[] windows = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { win = (WorkbenchWindow) windows[i]; if (window != win) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { boolean inputSame = false; if (input == null) inputSame = (page.getInput() == null); else inputSame = input.equals(page.getInput()); if (inputSame) { Perspective persp = page.getActivePerspective(); if (perspectiveId.equals(persp.getDesc().getId())) { Shell shell = win.getShell(); shell.open(); if (shell.getMinimized()) shell.setMinimized(false); return page; } } } } } // Otherwise the requested perspective is opened and shown in the // specified // window or in a new window depending on the current user preference // for opening // perspectives, and that window is given focus. win = (WorkbenchWindow) window; if (win != null) { IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); int mode = store.getInt(IPreferenceConstants.OPEN_PERSP_MODE); IWorkbenchPage page = win.getActiveWorkbenchPage(); IPerspectiveDescriptor persp = null; if (page != null) persp = page.getPerspective(); // Only open a new window if user preference is set and the window // has an active perspective. if (IPreferenceConstants.OPM_NEW_WINDOW == mode && persp != null) { IWorkbenchWindow newWindow = openWorkbenchWindow(perspectiveId, input); return newWindow.getActivePage(); } IPerspectiveDescriptor desc = getPerspectiveRegistry() .findPerspectiveWithId(perspectiveId); if (desc == null) throw new WorkbenchException( NLS.bind(WorkbenchMessages.WorkbenchPage_ErrorCreatingPerspective, perspectiveId )); win.getShell().open(); if (page == null) page = win.openPage(perspectiveId, input); else page.setPerspective(desc); return page; } // Just throw an exception.... throw new WorkbenchException( NLS.bind(WorkbenchMessages.Workbench_showPerspectiveError, perspectiveId )); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 5411, 467, 2421, 22144, 3829, 2742, 13, 1216, 4147, 22144, 503, 288, 3639, 5452, 18, 291, 5962, 12, 10422, 16772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 5411, 467, 2421, 22144, 3829, 2742, 13, 1216, 4147, 22144, 503, 288, 3639, 5452, 18, 291, 5962, 12, 10422, 16772, ...
}
}
public static boolean sortFile(String input_file, String output_file, String keys) { // Warning: uses a unix sort String os = System.getProperty("os.name"); if (!(os.equals("Linux") || (os.equals("SunOS")))) { GLMDebug.ERROR("fileSort()", "Uses unix sort, Not a unix system."); return false; } String command = "sort "+keys+" "+input_file+" -o "+output_file+" -T /tmp";// GLMDebug.DEBUG("fileSort()", "sort command:"+command); try { Runtime rt = Runtime.getRuntime(); Process sort = rt.exec(command); sort.waitFor(); } catch (Exception ie) { GLMDebug.ERROR("fileSort()", "Sorting InterruptedException: " + ie); return false; } return true; }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/5c2a2c77f4cef92c09bc9108d87221a8f423d1d5/FileUtils.java/buggy/glm/src/org/cougaar/glm/plugins/FileUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1524, 812, 12, 780, 810, 67, 768, 16, 514, 876, 67, 768, 16, 514, 1311, 13, 288, 202, 759, 9728, 30, 4692, 279, 9753, 1524, 202, 780, 1140, 273, 2332, 18, 588, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1524, 812, 12, 780, 810, 67, 768, 16, 514, 876, 67, 768, 16, 514, 1311, 13, 288, 202, 759, 9728, 30, 4692, 279, 9753, 1524, 202, 780, 1140, 273, 2332, 18, 588, 1396, ...
return ADBPullParser.createPullParser(beanName, objetc.toArray());
return ADBPullParser.createPullParser(beanName, objetc.toArray(), null);
public static XMLStreamReader getPullParser(Object beanObject, QName beanName ) { try { Field [] fields = beanObject.getClass().getDeclaredFields(); ArrayList objetc = new ArrayList(); for (int i = 0; i < fields.length; i++) { Field filed = fields[i]; Class parameters = filed.getType(); if(SimpleTypeMapper.isSimpleType(parameters)){ objetc.add(filed.getName()); filed.setAccessible(true); objetc.add(filed.get(beanObject).toString()); filed.setAccessible(false); } else { objetc.add(new QName(filed.getName())); filed.setAccessible(true); objetc.add(filed.get(beanObject)); filed.setAccessible(false); } } return ADBPullParser.createPullParser(beanName, objetc.toArray()); } catch (IllegalAccessException e) { //todo has to throw this exeception return null; } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/8864cb8f57d74b6a3fc7f9e0f2c78861214d5893/BeanSerializerUtil.java/buggy/modules/codegen/src/org/apache/axis2/util/BeanSerializerUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15595, 2514, 1689, 420, 2678, 12, 921, 3931, 921, 16, 16723, 17932, 262, 288, 4202, 775, 288, 5411, 2286, 5378, 1466, 273, 3931, 921, 18, 588, 797, 7675, 588, 18888, 2314, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15595, 2514, 1689, 420, 2678, 12, 921, 3931, 921, 16, 16723, 17932, 262, 288, 4202, 775, 288, 5411, 2286, 5378, 1466, 273, 3931, 921, 18, 588, 797, 7675, 588, 18888, 2314, 5621...
private FieldException newIncorrectDataException(FieldConvertError e, int tag) { return new FieldException(SessionRejectReason.INCORRECT_DATA_FORMAT_FOR_VALUE, e .getMessage(), tag); }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/ac62cdb33fe9cdcbdda5568204116691fedd13fb/FieldMap.java/buggy/src/quickfix/FieldMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 28846, 2704, 16268, 22480, 12, 974, 2723, 29228, 303, 266, 16, 474, 2692, 15329, 2463, 2704, 28846, 12, 2157, 21705, 8385, 18, 706, 9428, 4512, 67, 4883, 67, 7254, 67, 7473, 67, 4051, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 28846, 2704, 16268, 22480, 12, 974, 2723, 29228, 303, 266, 16, 474, 2692, 15329, 2463, 2704, 28846, 12, 2157, 21705, 8385, 18, 706, 9428, 4512, 67, 4883, 67, 7254, 67, 7473, 67, 4051, 16...
final void isSpecified(boolean value) { flags = (short) (value ? flags | SPECIFIED : flags & ~SPECIFIED);
final boolean isSpecified() { return (flags & SPECIFIED) != 0;
final void isSpecified(boolean value) { flags = (short) (value ? flags | SPECIFIED : flags & ~SPECIFIED); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1518c9e49e51e6eed273482fcc98cf7c1fe3df8b/NodeImpl.java/buggy/src/org/apache/xerces/dom/NodeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 353, 17068, 12, 6494, 460, 13, 288, 3639, 2943, 273, 261, 6620, 13, 261, 1132, 692, 2943, 571, 22872, 13519, 294, 2943, 473, 4871, 13847, 13519, 1769, 565, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 353, 17068, 12, 6494, 460, 13, 288, 3639, 2943, 273, 261, 6620, 13, 261, 1132, 692, 2943, 571, 22872, 13519, 294, 2943, 473, 4871, 13847, 13519, 1769, 565, 289, 2, -100, -100, ...
BeanConfiguration instanceRef = springConfig .createSingletonBean(BeanReferenceFactoryBean.class) .addProperty("targetBeanName",grailsServiceClass.getFullName() + "Instance" ); context.registerBeanDefinition(grailsServiceClass.getName() + "Service",instanceRef.getBeanDefinition());
context.registerBeanDefinition(grailsServiceClass.getPropertyName(),serviceInstance.getBeanDefinition());
public void registerService(GrailsServiceClass grailsServiceClass, GrailsWebApplicationContext context) { RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration(); BeanConfiguration serviceClassBean = springConfig .createSingletonBean(MethodInvokingFactoryBean.class) .addProperty("targetObject", new RuntimeBeanReference(GrailsApplication.APPLICATION_ID,true)) .addProperty("targetMethod", "getGrailsServiceClass") .addProperty("arguments", grailsServiceClass.getFullName()); context.registerBeanDefinition(grailsServiceClass.getFullName() + "Class",serviceClassBean.getBeanDefinition()); BeanConfiguration serviceInstance = springConfig .createSingletonBean(grailsServiceClass.getFullName() + "Instance") .setFactoryBean( grailsServiceClass.getFullName() + "Class") .setFactoryMethod("newInstance"); if (grailsServiceClass.byName()) { serviceInstance.setAutowire(BeanConfiguration.AUTOWIRE_BY_NAME); } else if (grailsServiceClass.byType()) { serviceInstance.setAutowire(BeanConfiguration.AUTOWIRE_BY_TYPE); } else { serviceInstance.setAutowire(BeanConfiguration.AUTOWIRE_BY_TYPE); } context.registerBeanDefinition(grailsServiceClass.getFullName() + "Instance",serviceInstance.getBeanDefinition()); // configure the service instance as a hotswappable target source // if its transactional configure transactional proxy if (grailsServiceClass.isTransactional()) { Properties transactionAttributes = new Properties(); transactionAttributes.put("*", "PROPAGATION_REQUIRED"); BeanConfiguration transactionalProxyBean = springConfig .createSingletonBean(TransactionProxyFactoryBean.class) .addProperty("target", new RuntimeBeanReference(grailsServiceClass.getFullName() + "Instance")) .addProperty("proxyTargetClass", Boolean.TRUE) .addProperty("transactionAttributes", transactionAttributes) .addProperty(TRANSACTION_MANAGER_BEAN, new RuntimeBeanReference(TRANSACTION_MANAGER_BEAN)); context.registerBeanDefinition(grailsServiceClass.getPropertyName(),transactionalProxyBean.getBeanDefinition()); } else { // otherwise configure a standard proxy BeanConfiguration instanceRef = springConfig .createSingletonBean(BeanReferenceFactoryBean.class) .addProperty("targetBeanName",grailsServiceClass.getFullName() + "Instance" ); context.registerBeanDefinition(grailsServiceClass.getName() + "Service",instanceRef.getBeanDefinition()); } }
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfigurator.java/buggy/src/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1744, 1179, 12, 14571, 14573, 1179, 797, 3087, 14573, 1179, 797, 16, 10812, 14573, 4079, 28278, 819, 13, 288, 202, 202, 5576, 55, 11638, 1750, 25974, 809, 273, 394, 2989, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1744, 1179, 12, 14571, 14573, 1179, 797, 3087, 14573, 1179, 797, 16, 10812, 14573, 4079, 28278, 819, 13, 288, 202, 202, 5576, 55, 11638, 1750, 25974, 809, 273, 394, 2989, 5...
TableTag.class, null, "setRequestURI"));
TableTag.class, null, "setRequestURI"));
public PropertyDescriptor[] getPropertyDescriptors() { List proplist = new ArrayList(); try { proplist.add(new PropertyDescriptor("cellpadding", //$NON-NLS-1$ TableTag.class, null, "setCellpadding")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("cellspacing", //$NON-NLS-1$ TableTag.class, null, "setCellspacing")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("class", //$NON-NLS-1$ TableTag.class, null, "setClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("decorator", //$NON-NLS-1$ TableTag.class, null, "setDecorator")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("defaultorder", //$NON-NLS-1$ TableTag.class, null, "setDefaultorder")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("defaultsort", //$NON-NLS-1$ TableTag.class, null, "setDefaultsort")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("export", //$NON-NLS-1$ TableTag.class, null, "setExport")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("frame", //$NON-NLS-1$ TableTag.class, null, "setFrame")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("length", //$NON-NLS-1$ TableTag.class, null, "setLength")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("offset", //$NON-NLS-1$ TableTag.class, null, "setOffset")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("pagesize", //$NON-NLS-1$ TableTag.class, null, "setPagesize")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("partialList", //$NON-NLS-1$ TableTag.class, null, "setPartialList")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("requestURI", //$NON-NLS-1$ TableTag.class, null, "setRequestURI")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("requestURIcontext", //$NON-NLS-1$ TableTag.class, null, "setRequestURIcontext")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("rules", //$NON-NLS-1$ TableTag.class, null, "setRules")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sort", //$NON-NLS-1$ TableTag.class, null, "setSort")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("style", //$NON-NLS-1$ TableTag.class, null, "setStyle")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("summary", //$NON-NLS-1$ TableTag.class, null, "setSummary")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("excludedParams", //$NON-NLS-1$ TableTag.class, null, "setExcludedParams")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("id", //$NON-NLS-1$ TableTag.class, null, "setUid")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("uid", //$NON-NLS-1$ TableTag.class, null, "setUid")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("htmlId", //$NON-NLS-1$ TableTag.class, null, "setHtmlId")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("varTotals", //$NON-NLS-1$ TableTag.class, null, "setVarTotals")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("width", //$NON-NLS-1$ TableTag.class, null, "setWidth")); //$NON-NLS-1$ // deprecated attributes proplist.add(new PropertyDescriptor("list", //$NON-NLS-1$ TableTag.class, null, "setList")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("property", //$NON-NLS-1$ TableTag.class, null, "setProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("scope", //$NON-NLS-1$ TableTag.class, null, "setScope")); //$NON-NLS-1$ // make ATG Dynamo happy: proplist.add(new PropertyDescriptor("className", //$NON-NLS-1$ TableTag.class, null, "setClass")); //$NON-NLS-1$ try { Class.forName("javax.servlet.jsp.tagext.IterationTag"); //$NON-NLS-1$ // jsp >= 1.2 proplist.add(new PropertyDescriptor("name", //$NON-NLS-1$ TableTag.class, null, "setName")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("size", //$NON-NLS-1$ TableTag.class, null, "setSize")); //$NON-NLS-1$ } catch (ClassNotFoundException e) { // jsp 1.1, can't use a setter with an Object parameter proplist.add(new PropertyDescriptor("name", //$NON-NLS-1$ TableTag.class, null, "setNameString")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("size", //$NON-NLS-1$ TableTag.class, null, "setSizeObjectName")); //$NON-NLS-1$ } } catch (IntrospectionException ex) { throw new RuntimeException("You got an introspection exception - maybe defining a property that is not" + " defined in the TableTag?: " + ex.getMessage(), ex); } PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()]; return ((PropertyDescriptor[]) proplist.toArray(result)); }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/a68c17afdfb7cb08fd50d001fb8260e045a3c5cd/TableTagBeanInfo.java/clean/displaytag/src/main/java/org/displaytag/tags/TableTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 987, 450, 17842, 273, 394, 2407, 5621, 3639, 775, 3639, 288, 5411, 450, 17842, 18, 1289, 12, 2704, 26761, 2932, 3855, 9598, 3113, 4329,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 987, 450, 17842, 273, 394, 2407, 5621, 3639, 775, 3639, 288, 5411, 450, 17842, 18, 1289, 12, 2704, 26761, 2932, 3855, 9598, 3113, 4329,...
ID="=N=";
ID="NdoubleDoubleBonded";
public IAtomType findMatchingAtomType(IAtomContainer atomContainer, IAtom atomInterface) throws CDKException { if (factory == null) { try { factory = AtomTypeFactory.getInstance("org/openscience/cdk/config/data/mm2_atomtypes.xml", atomContainer.getBuilder()); } catch (Exception ex1) { logger.error("Could not instantiate the AtomType list!", ex1.getMessage()); logger.debug(ex1); throw new CDKException("Could not instantiate the AtomType list!", ex1); } } org.openscience.cdk.Atom atom = (org.openscience.cdk.Atom)atomInterface; logger.debug("****** Configure MM2 AtomType via findMatching ******"); String atomSphericalMatcher = (String)atom.getProperty(CDKConstants.SPHERICAL_MATCHER); int atomChemicalGroupConstant = ((Integer)atom.getProperty(CDKConstants.CHEMICAL_GROUP_CONSTANT)).intValue(); int atomRingSize = 0; // not all atom types have ring sizes define; 0 is default Object oRingSize = atom.getProperty(CDKConstants.PART_OF_RING_OF_SIZE); if (oRingSize != null) { atomRingSize = ((Integer)oRingSize).intValue(); } logger.debug(" Symbol:" + atom.getSymbol() +" HoseCode>" + atomSphericalMatcher + " "); if (atom instanceof PseudoAtom) { return factory.getAtomTypes("DU")[0]; } Pattern p1 = null; String ID = ""; boolean atomTypeFlag = false; Matcher mat1=null; double tmpMaxBondOrder = 0; maxBondOrder = atomContainer.getMaximumBondOrder(atom); logger.debug("Atom maxBond"+maxBondOrder+" ChemicalGroupConstant "+atomChemicalGroupConstant); for (int j = 0; j < atomTypeIds.length; j++){ tmpMaxBondOrder = factory.getAtomType(atomTypeIds[j]).getMaxBondOrder(); logger.debug(j + "ATOM TYPE "+ tmpMaxBondOrder + " " +getSphericalMatcher(atomTypeIds[j])); p1 =Pattern.compile(getSphericalMatcher(atomTypeIds[j])); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID = atomTypeIds[j]; if (atomTypeIds[j].equals("C")) { if (atomChemicalGroupConstant!=-1) { if (atomRingSize==3) { ID="CR3R"; }else if (atomChemicalGroupConstant==5){ ID="Car"; }else if (maxBondOrder>1) { ID="Csp2"; } } if (atom.getSymbol().equals("S")){ if (atomChemicalGroupConstant==8){ ID="Sthi"; }else{ p1 = Pattern.compile(getSphericalMatcher("S")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="S"; } } } } else if (atomTypeIds[j].equals("Csp2")) { if (atomChemicalGroupConstant!=-1) { if (atomChemicalGroupConstant==5) { ID="Car"; }else if (atomRingSize==3) { ID="CE3R"; } } p1 = Pattern.compile(getSphericalMatcher("C=")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="C="; } } else if (atomTypeIds[j].equals("O")) { //OH/Ether if (atomChemicalGroupConstant!=-1) { if (atomChemicalGroupConstant==6){ ID="Oar";//furan }else if (atomRingSize==3) { ID="OR";//epoxy } } p1 = Pattern.compile(getSphericalMatcher("OX")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches() & atomChemicalGroupConstant==-1) { ID="OX"; } } else if (atomTypeIds[j].equals("N")) {//n sp3 if (atomContainer.getMaximumBondOrder(atom)>1 & atomContainer.getMaximumBondOrder(atom)<3){ ID="Nsp2"; } if (atomChemicalGroupConstant==4) { ID="NPYL";//Pyrole }else if (atomChemicalGroupConstant==10){ ID="-N="; p1 = Pattern.compile(getSphericalMatcher("NPD+")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="NPD+"; } }else{ //Amid p1 = Pattern.compile(getSphericalMatcher("Namid")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches() & atomChemicalGroupConstant==-1) { ID="Nsp2"; }else{ p1 = Pattern.compile(getSphericalMatcher("N2OX")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches() & atomChemicalGroupConstant==-1) { ID="N2OX"; } } } } else if (atomTypeIds[j].equals("Nsp2")) { if (atomChemicalGroupConstant==12) { ID="=N-";//Pyridin } //Azo p1 = Pattern.compile(getSphericalMatcher("-N=")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches() & atomChemicalGroupConstant==-1) { ID="-N="; }else{ p1 = Pattern.compile(getSphericalMatcher("N=C")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="N=C"; } p1 = Pattern.compile(getSphericalMatcher("N2OX")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="N2OX"; } p1 = Pattern.compile(getSphericalMatcher("NO2")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="NO2"; } p1 = Pattern.compile(getSphericalMatcher("=N=")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="=N="; } } } else if (atomTypeIds[j].equals("HS")) { if (atom.getMaxBondOrder() > 1) { ID="HC"; } } else if (atomTypeIds[j].equals("HO")) { //Enol,amid p1 = Pattern.compile(getSphericalMatcher("HOC")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches() & atomChemicalGroupConstant==-1) { ID="HN2"; } //COOH p1 = Pattern.compile(getSphericalMatcher("HOCO")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches() & atomChemicalGroupConstant==-1) { ID="HOCO"; } } else if (atomTypeIds[j].equals("HN")) { p1 = Pattern.compile(getSphericalMatcher("HN2")); mat1 = p1.matcher(atomSphericalMatcher); if (mat1.matches()) { ID="HN2"; } } atomTypeFlag = true; logger.debug(" MATCH AtomTypeID:"+j+ " " + ID); break; }//IF }//for end if (atomTypeFlag) { atomTypeFlag = false; logger.debug("ID in factory true:"+ID); return factory.getAtomType(ID); } else { logger.debug("NoSuchAtomTypeException: Atom is unkown with Symbol:" + atom.getSymbol() + " does not MATCH AtomType. HoseCode:" + atomSphericalMatcher); logger.debug("ID in factory false:"+ID); return factory.getAtomType("DU"); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/6ab9ece1436a55402bc0543ab4b40954f6109b22/MM2AtomTypeMatcher.java/clean/src/org/openscience/cdk/atomtype/MM2AtomTypeMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8831, 559, 1104, 9517, 3641, 559, 12, 45, 3641, 2170, 22487, 16, 8831, 3179, 1358, 13, 1216, 24570, 288, 3639, 309, 261, 6848, 422, 446, 13, 288, 540, 202, 698, 288, 540, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8831, 559, 1104, 9517, 3641, 559, 12, 45, 3641, 2170, 22487, 16, 8831, 3179, 1358, 13, 1216, 24570, 288, 3639, 309, 261, 6848, 422, 446, 13, 288, 540, 202, 698, 288, 540, 202,...
value = IsNullValue.nullOnSimplePathValue();
value = IsNullValue.parameterMarkedAsMightBeNull(methodParameter);
public void initEntryFact(IsNullValueFrame result) { if (cachedEntryFact == null) { cachedEntryFact = createFact(); cachedEntryFact.setValid(); int numLocals = methodGen.getMaxLocals(); boolean instanceMethod = !methodGen.isStatic(); XMethod xm = XFactory.createXMethod(methodGen.getClassName(), methodGen.getName(), methodGen.getSignature(), methodGen.isStatic()); NullnessAnnotationDatabase db = AnalysisContext.currentAnalysisContext().getNullnessAnnotationDatabase(); int paramShift = instanceMethod ? 1 : 0; for (int i = 0; i < numLocals; ++i) { IsNullValue value; int paramIndex = i - paramShift; if (instanceMethod && i == 0) { value = IsNullValue.nonNullValue(); } else if (paramIndex > methodGen.getArgumentTypes().length) { value = IsNullValue.nonReportingNotNullValue(); } else { NullnessAnnotation n = db.getResolvedAnnotation(new XMethodParameter(xm, paramIndex), false); if (n == NullnessAnnotation.CHECK_FOR_NULL) // Parameter declared @CheckForNull value = IsNullValue.nullOnSimplePathValue(); else if (n == NullnessAnnotation.NONNULL) // Parameter declared @NonNull // TODO: label this so we don't report defensive programming value = IsNullValue.nonNullValue(); else // Don't know; use default value, normally non-reporting nonnull value = IsNullValue.nonReportingNotNullValue(); } cachedEntryFact.setValue(i, value); } } copy(cachedEntryFact, result); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/8bada47db5b5574d9c669a0ab79ffd67d9868bb2/IsNullValueAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValueAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 1622, 9766, 12, 2520, 2041, 620, 3219, 563, 13, 288, 202, 202, 430, 261, 7097, 1622, 9766, 422, 225, 446, 13, 288, 25083, 202, 7097, 1622, 9766, 273, 752, 9766, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 1622, 9766, 12, 2520, 2041, 620, 3219, 563, 13, 288, 202, 202, 430, 261, 7097, 1622, 9766, 422, 225, 446, 13, 288, 25083, 202, 7097, 1622, 9766, 273, 752, 9766, 562...
public static List<TreePath> collectExpandedPaths(@NotNull final JTree tree){ final ArrayList<TreePath> result = new ArrayList<TreePath>(); final Object root = tree.getModel().getRoot(); final TreePath rootPath = new TreePath(root); result.addAll(collectExpandedPaths(tree, rootPath)); return result;
public static void collectExpandedPaths(final JTree tree, final List<TreePath> paths){ LOG.assertTrue(tree != null); LOG.assertTrue(paths != null); final TreeModel model = tree.getModel(); final Object root = model.getRoot(); LOG.assertTrue(root != null); collectExpandedPathsImpl(tree, paths, new TreePath(root));
public static List<TreePath> collectExpandedPaths(@NotNull final JTree tree){ final ArrayList<TreePath> result = new ArrayList<TreePath>(); final Object root = tree.getModel().getRoot(); final TreePath rootPath = new TreePath(root); result.addAll(collectExpandedPaths(tree, rootPath)); return result; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4cd6cb8331020e1184c369a59466b2ec1e14ec03/TreeUtil.java/buggy/openapi/src/com/intellij/util/ui/tree/TreeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 987, 32, 2471, 743, 34, 3274, 17957, 4466, 26964, 5962, 727, 804, 2471, 2151, 15329, 565, 727, 2407, 32, 2471, 743, 34, 563, 273, 394, 2407, 32, 2471, 743, 34, 5621, 565, 727...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 987, 32, 2471, 743, 34, 3274, 17957, 4466, 26964, 5962, 727, 804, 2471, 2151, 15329, 565, 727, 2407, 32, 2471, 743, 34, 563, 273, 394, 2407, 32, 2471, 743, 34, 5621, 565, 727...
fCategoryIds[i] = elements[i].getAttributeAsIs(ATT_ID);
fCategoryIds[i] = elements[i].getAttribute(ATT_ID);
private void loadRegisteredTemplates() { IExtensionRegistry registry = Platform.getExtensionRegistry(); IConfigurationElement[] elements = registry.getConfigurationElementsFor(StatetPlugin.ID, EXTENSION_POINT); fCategoryIds = new String[elements.length]; fCategoryProvider = new ICodeGenerationTemplatesCategory[elements.length]; fGroup.fCategorys = new String[elements.length]; fGroup.fCategoryChilds = new TemplateItem[elements.length][]; TemplateStore[] templates = new TemplateStore[elements.length]; for (int i = 0; i < elements.length; i++) { fCategoryIds[i] = elements[i].getAttributeAsIs(ATT_ID); Assert.isLegal(fCategoryIds[i] != null); fGroup.fCategorys[i] = elements[i].getAttribute(ATT_NAME); if (fGroup.fCategorys[i] == null) fGroup.fCategorys[i] = fCategoryIds[i]; try { fCategoryProvider[i] = (ICodeGenerationTemplatesCategory) elements[i].createExecutableExtension(ATT_CLASS); } catch (CoreException e) { throw new IllegalArgumentException("error loading templateprovider of category with id "+fCategoryIds[i]); } templates[i] = fCategoryProvider[i].getTemplateStore(); } fTemplatesStore = new CodeGenerationTemplatesStore(fProject, templates); try { fTemplatesStore.load(); } catch (IOException e) { StatetPlugin.logUnexpectedError(e); } for (int i = 0; i < templates.length; i++) { TemplatePersistenceData[] datas = fTemplatesStore.getTemplateData(i); fGroup.fCategoryChilds[i] = new TemplateItem[datas.length]; for (int j = 0; j < datas.length; j++) { fGroup.fCategoryChilds[i][j] = new TemplateItem(datas[j]); } } }
47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/89235ce62d3b189a656661040a45cc4a291aa661/CodeGenerationTemplatesConfigurationBlock.java/clean/de.walware.statet.base/src/de/walware/statet/internal/ui/preferences/CodeGenerationTemplatesConfigurationBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1262, 10868, 8218, 1435, 288, 9506, 202, 45, 3625, 4243, 4023, 273, 11810, 18, 588, 3625, 4243, 5621, 202, 202, 45, 1750, 1046, 8526, 2186, 273, 4023, 18, 588, 1750, 3471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1262, 10868, 8218, 1435, 288, 9506, 202, 45, 3625, 4243, 4023, 273, 11810, 18, 588, 3625, 4243, 5621, 202, 202, 45, 1750, 1046, 8526, 2186, 273, 4023, 18, 588, 1750, 3471,...
if (myAssignmentTargetsAreElements)
if (myAssignmentTargetsAreElements) {
public void visitDeclarationStatement(PsiDeclarationStatement statement) { startElement(statement); int pc = myCurrentFlow.getSize(); PsiElement[] elements = statement.getDeclaredElements(); for (int i = 0; i < elements.length; i++) { PsiElement element = elements[i]; if (element instanceof PsiClass) { element.accept(this); } else if (element instanceof PsiVariable) { PsiExpression initializer = ((PsiVariable)element).getInitializer(); if (initializer != null) { myStartStatementStack.pushStatement(initializer, false); myEndStatementStack.pushStatement(initializer, false); initializer.accept(this); myStartStatementStack.popStatement(); myEndStatementStack.popStatement(); } if ((element instanceof PsiLocalVariable && initializer != null) || element instanceof PsiField) { if (element instanceof PsiLocalVariable && !myPolicy.isLocalVariableAccepted((PsiLocalVariable)element)) continue; if (myAssignmentTargetsAreElements) startElement(element); generateWriteInstruction((PsiVariable)element); if (myAssignmentTargetsAreElements) finishElement(element); } } } if (pc == myCurrentFlow.getSize()) { // generate at least one instruction for declaration emitEmptyInstruction(); } finishElement(statement); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/77a4d47dba7161d37ea711d3a2dab14b07555caf/ControlFlowAnalyzer.java/buggy/source/com/intellij/psi/controlFlow/ControlFlowAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 6094, 3406, 12, 52, 7722, 6094, 3406, 3021, 13, 288, 565, 13591, 12, 11516, 1769, 565, 509, 6125, 273, 3399, 3935, 5249, 18, 588, 1225, 5621, 565, 453, 7722, 1046, 8526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 6094, 3406, 12, 52, 7722, 6094, 3406, 3021, 13, 288, 565, 13591, 12, 11516, 1769, 565, 509, 6125, 273, 3399, 3935, 5249, 18, 588, 1225, 5621, 565, 453, 7722, 1046, 8526, ...
RepositoryTaskData downloadedTaskData = offlineHandler.downloadTaskData(repository, taskId);
RepositoryTaskData downloadedTaskData = offlineHandler.getTaskData(repository, taskId);
private void syncTask(IProgressMonitor monitor, final AbstractRepositoryTask repositoryTask) throws LoginException, CoreException { boolean canNotSynch = repositoryTask.isDirty(); boolean hasLocalChanges = repositoryTask.getSyncState() == RepositoryTaskSyncState.OUTGOING || repositoryTask.getSyncState() == RepositoryTaskSyncState.CONFLICT; if (forceSync || (!canNotSynch && !hasLocalChanges) || !repositoryTask.isDownloaded()) { monitor.setTaskName(LABEL_SYNCHRONIZING + repositoryTask.getSummary()); final TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository( repositoryTask.getRepositoryKind(), repositoryTask.getRepositoryUrl()); if (repository == null) { throw new CoreException(new Status(IStatus.ERROR, TasksUiPlugin.PLUGIN_ID, 0, "Associated repository could not be found. Ensure proper repository configuration of " + repositoryTask.getRepositoryUrl() + " in " + TaskRepositoriesView.NAME + ".", null)); } TasksUiPlugin.getTaskListManager().getTaskList().notifyRepositoryInfoChanged(repositoryTask); IOfflineTaskHandler offlineHandler = connector.getOfflineTaskHandler(); if (offlineHandler != null) { String taskId = AbstractRepositoryTask.getTaskId(repositoryTask.getHandleIdentifier()); RepositoryTaskData downloadedTaskData = offlineHandler.downloadTaskData(repository, taskId); if (downloadedTaskData != null) { TasksUiPlugin.getSynchronizationManager().updateOfflineState(repositoryTask, downloadedTaskData, forceSync); refreshEditors(repositoryTask); } else { connector.updateTask(repository, repositoryTask); } } else { connector.updateTask(repository, repositoryTask); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/03f3816483b487f20214837cafbbbb03ffc5336e/SynchronizeTaskJob.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/SynchronizeTaskJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3792, 2174, 12, 45, 5491, 7187, 6438, 16, 727, 4115, 3305, 2174, 3352, 2174, 13, 1216, 11744, 503, 16, 1082, 202, 25341, 288, 202, 202, 6494, 848, 1248, 55, 2515, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3792, 2174, 12, 45, 5491, 7187, 6438, 16, 727, 4115, 3305, 2174, 3352, 2174, 13, 1216, 11744, 503, 16, 1082, 202, 25341, 288, 202, 202, 6494, 848, 1248, 55, 2515, 273, 3...
((RubyModule) state.begin(iVisited.getPathNode())).defineConstant(iVisited.getName(), value);
((RubyModule) EvaluationState.eval(runtime.getCurrentContext(), iVisited.getPathNode(), runtime.getCurrentContext().getFrameSelf())).defineConstant(iVisited.getName(), value);
public Instruction visitConstDeclNode(ConstDeclNode iVisited) { if (iVisited.getPathNode() == null) { state.getThreadContext().getRubyClass().defineConstant(iVisited.getName(), value); } else { ((RubyModule) state.begin(iVisited.getPathNode())).defineConstant(iVisited.getName(), value); } return null; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/clean/src/org/jruby/evaluator/AssignmentVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 24605, 3757, 9661, 3456, 907, 12, 9661, 3456, 907, 277, 30019, 13, 288, 202, 202, 430, 261, 77, 30019, 18, 588, 743, 907, 1435, 422, 446, 13, 288, 1082, 202, 2019, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24605, 3757, 9661, 3456, 907, 12, 9661, 3456, 907, 277, 30019, 13, 288, 202, 202, 430, 261, 77, 30019, 18, 588, 743, 907, 1435, 422, 446, 13, 288, 1082, 202, 2019, 18, 588, ...
LOG.info("Symbol " + symbol+ "for dbname:" + dbname);
private Set setGeneSynonyms(Item srcItem, Item tgtItem, String srcNs) throws ObjectStoreException { Set synonyms = new HashSet(); //If this is ever null then there's a problem with the ensembl data!!! Item stableIdItem = getStableId("gene", srcItem.getIdentifier(), srcNs); // <- gene_stable_id.gene String stableId = stableIdItem.getAttribute("stable_id").getValue(); //Use the default approach of setting both the organismDbId & identifier to // be the same value - the ensembl stable id. tgtItem.addAttribute(new Attribute("organismDbId", stableId)); //Set up all the optional xref synonyms - if the gene is KNOWN it should // have an ensembl xref to another db's accesssion for the same gene. if (srcItem.hasReference("display_xref")) { Item xref = ItemHelper.convert(srcItemReader.getItemById( srcItem.getReference("display_xref").getRefId())); String dbname = null; String accession = null; String symbol = null; //look for the reference to an xref database - the external_db if (xref.hasReference("external_db")) { Item extDb = ItemHelper.convert(srcItemReader.getItemById(xref.getReference("external_db").getRefId())); if (extDb.hasAttribute("db_name")) { dbname = extDb.getAttribute("db_name").getValue(); } } //look for a primary accession - if we have one we may be able to create a synonym if (xref.hasAttribute("dbprimary_acc")) { accession = xref.getAttribute("dbprimary_acc").getValue(); } //look for the display label - since we might be able to use it as a symbol synonym. if (xref.hasAttribute("display_label")) { symbol = xref.getAttribute("display_label").getValue(); } LOG.error("db " + dbname + " acc "+ accession + " sym " + symbol); //check to see if we have a valid accession & dbname. if (accession != null && !accession.equals(EMPTY_STRING) && dbname != null && !dbname.equals(EMPTY_STRING)) { //If we have a valid xref for this dsname then we can create the synonym for the // external database accession. //NOTE: if the xref is being used as an alternative identifier it will already have // a synonym with type 'identifier'. if (config.useXrefDbsForGeneIdentifier() && config.geneXrefDbName.equalsIgnoreCase(dbname)) { tgtItem.addAttribute(new Attribute("identifier", accession)); LOG.info("HUGO: "+ accession + " db " + dbname); Item synonym = createProductSynonym(tgtItem, "accession", accession, config.getEnsemblDataSrcRef()); addReferencedItem(tgtItem, synonym, "synonyms", true, "subject", false); synonyms.add(synonym); } else { tgtItem.addAttribute(new Attribute("identifier", stableId)); LOG.info("tgtIdentifier " + stableId); } if (config.containsXrefDataSourceNamed(dbname)) { Reference extDbRef = config.getDataSrcRefByDataSrcName(dbname); LOG.debug("Creating Synonym for dbname:" + dbname); Item synonym = createProductSynonym(tgtItem, "accession", accession, extDbRef); addReferencedItem(tgtItem, synonym, "synonyms", true, "subject", false); synonyms.add(synonym); tgtItem.addAttribute(new Attribute("accession", accession)); LOG.info("refseq: "+ accession +" Symbol: " + symbol + " db " + dbname); } else { LOG.debug("Skipped! Can't create a Synonym for db:" + dbname); } } else { tgtItem.addAttribute(new Attribute("identifier", stableId)); LOG.info("tgtIdentifier " + stableId); LOG.debug("Skipped! Bad dbprimary_acc:" + accession + " or dbname:" + dbname); } //check to see if we have a valid display_lable (synonym) & dbname. if (symbol != null && !symbol.equals(EMPTY_STRING) && dbname != null && !dbname.equals(EMPTY_STRING)) { //Now check to see if we can create a synonym that represents a symbol as well. if (config.containsXrefSymbolDataSourceNamed(dbname)) { Reference extDbRef = config.getDataSrcRefByDataSrcName(dbname); LOG.debug("Creating Symbol Synonym for dbname:" + dbname); LOG.info("Symbol " + symbol+ "for dbname:" + dbname); Item synonym = createProductSynonym(tgtItem, "symbol", symbol, extDbRef); addReferencedItem(tgtItem, synonym, "synonyms", true, "subject", false); synonyms.add(synonym); tgtItem.addAttribute(new Attribute("symbol", symbol)); } else { LOG.debug("Skipped creating a Symbol Synonym for db:" + dbname); } } else { LOG.debug("Skipped! Bad display_label:" + accession + " or dbname:" + dbname); } } else { tgtItem.addAttribute(new Attribute("identifier", stableId)); LOG.info("tgtIdentifier " + stableId); LOG.debug("Skipped! As no display_xref was found for srcItem:" + srcItem.getClassName() + " id:" + srcItem.getIdentifier()); } return synonyms; }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/15baaecf4beb5fe347ec25e4d4cd4e52b6ffb5cf/EnsemblDataTranslator.java/clean/flymine/model/ensembl/src/java/org/flymine/dataconversion/EnsemblDataTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1000, 444, 24442, 10503, 16968, 12, 1180, 1705, 1180, 16, 4342, 11680, 1180, 16, 514, 1705, 10386, 13, 5411, 1216, 1033, 21151, 288, 3639, 1000, 27260, 273, 394, 6847, 5621, 7734, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 444, 24442, 10503, 16968, 12, 1180, 1705, 1180, 16, 4342, 11680, 1180, 16, 514, 1705, 10386, 13, 5411, 1216, 1033, 21151, 288, 3639, 1000, 27260, 273, 394, 6847, 5621, 7734, 368...
if (!connectionEndpoint.temporaryDestinations.contains(d))
if (!connectionEndpoint.hasTemporaryDestination(d))
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, boolean isCC) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if ("".equals(selector)) { selector = null; } JBossDestination d = (JBossDestination)jmsDestination; if (trace) { log.trace("creating consumer endpoint for " + d + ", selector " + selector + ", " + (noLocal ? "noLocal, " : "") + "subscription " + subscriptionName); } if (d.isTemporary()) { // Can only create a consumer for a temporary destination on the same connection // that created it if (!connectionEndpoint.temporaryDestinations.contains(d)) { String msg = "Cannot create a message consumer on a different connection " + "to that which created the temporary destination"; throw new IllegalStateException(msg); } } CoreDestination coreDestination = dm.getCoreDestination(jmsDestination); if (coreDestination == null) { throw new InvalidDestinationException("No such destination: " + jmsDestination); } int consumerID = connectionEndpoint.serverPeer.getNextObjectID(); CoreSubscription subscription = null; if (d.isTopic()) { Topic topic = (Topic)coreDestination; if (subscriptionName == null) { // non-durable subscription if (log.isTraceEnabled()) { log.trace("creating new non-durable subscription on " + coreDestination); } subscription = new CoreSubscription(topic, selector, noLocal, ms); } else { if (d.isTemporary()) { throw new InvalidDestinationException("Cannot create a durable subscription on a temporary topic"); } // we have a durable subscription, look it up String clientID = connectionEndpoint.getClientID(); if (clientID == null) { throw new JMSException("Cannot create durable subscriber without a valid client ID"); } subscription = dsm.getDurableSubscription(clientID, subscriptionName, dm, ms, tl); if (subscription == null) { if (trace) { log.trace("creating new durable subscription on " + coreDestination); } subscription = dsm.createDurableSubscription(d.getName(), clientID, subscriptionName, selector, noLocal, dm, ms, tl); } else { if (trace) { log.trace("subscription " + subscriptionName + " already exists"); } // From javax.jms.Session Javadoc (and also JMS 1.1 6.11.1): // A client can change an existing durable subscription by creating a durable // TopicSubscriber with the same name and a new topic and/or message selector. // Changing a durable subscriber is equivalent to unsubscribing (deleting) the old // one and creating a new one. boolean selectorChanged = (selector == null && subscription.getSelector() != null) || (subscription.getSelector() == null && selector != null) || (subscription.getSelector() != null && selector != null && !subscription.getSelector().equals(selector)); if (trace) { log.trace("selector " + (selectorChanged ? "has" : "has NOT") + " changed"); } // TODO - if we use hard equality here, redeploying (re-activating) a topic will // cause loosing all messages waiting on durable subscriptions on that topic //boolean topicChanged = subscription.getTopic() != coreDestination; boolean topicChanged = !subscription.getTopic().getName().equals(coreDestination.getName()); if (log.isTraceEnabled()) { log.trace("topic " + (topicChanged ? "has" : "has NOT") + " changed"); } boolean noLocalChanged = noLocal != subscription.isNoLocal(); if (selectorChanged || topicChanged || noLocalChanged) { if (trace) { log.trace("topic or selector or noLocal changed so deleting old subscription"); } boolean removed = dsm.removeDurableSubscription(connectionEndpoint.clientID, subscriptionName); if (!removed) { throw new InvalidDestinationException("Cannot find durable subscription " + subscriptionName + " to unsubscribe"); } subscription.unsubscribe(); // create a fresh new subscription subscription = dsm.createDurableSubscription(d.getName(), clientID, subscriptionName, selector, noLocal, dm, ms, tl); } } } } ServerConsumerEndpoint ep = new ServerConsumerEndpoint(consumerID, subscription == null ? (Channel)coreDestination : subscription, this, selector, noLocal); JMSDispatcher.instance.registerTarget(new Integer(consumerID), new ConsumerAdvised(ep)); ClientConsumerDelegate stub = new ClientConsumerDelegate(consumerID); if (subscription != null) { subscription.subscribe(); } putConsumerDelegate(consumerID, ep); connectionEndpoint.consumers.put(new Integer(consumerID), ep); log.debug("created and registered " + ep); return stub; }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7bd784746aeaf6b749d60d883b9a5b59d28b10d/ServerSessionEndpoint.java/buggy/src/main/org/jboss/jms/server/endpoint/ServerSessionEndpoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9326, 9586, 752, 5869, 9586, 12, 5683, 23007, 5683, 16, 4766, 5375, 514, 3451, 16, 4766, 5375, 1250, 1158, 2042, 16, 4766, 5375, 514, 4915, 461, 16, 4766, 5375, 1250, 353, 6743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9326, 9586, 752, 5869, 9586, 12, 5683, 23007, 5683, 16, 4766, 5375, 514, 3451, 16, 4766, 5375, 1250, 1158, 2042, 16, 4766, 5375, 514, 4915, 461, 16, 4766, 5375, 1250, 353, 6743,...
mockDispatcher.verifyExpectations(); }
mockDispatcher.verifyExpectations(); }
public void testMockVerifies() throws Exception { mockDispatcher.verifyCalls.setExpected(1); coreMock.verify(); // Can't use Verifier as we are verifying "verify" mockDispatcher.verifyExpectations(); }
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/CoreMockTest.java/clean/jmock/core/src/test/jmock/core/CoreMockTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9865, 19802, 1435, 1216, 1185, 288, 202, 202, 22851, 6681, 18, 8705, 10125, 18, 542, 6861, 12, 21, 1769, 202, 202, 3644, 9865, 18, 8705, 5621, 202, 202, 759, 4480, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9865, 19802, 1435, 1216, 1185, 288, 202, 202, 22851, 6681, 18, 8705, 10125, 18, 542, 6861, 12, 21, 1769, 202, 202, 3644, 9865, 18, 8705, 5621, 202, 202, 759, 4480, ...
return new ArrayEnumerator( (Object[]) collection );
return new ArrayEnumerator( collection );
public Enumeration elements( Object collection ) { if ( collection == null ) return new CollectionHandlers.EmptyEnumerator(); return new ArrayEnumerator( (Object[]) collection ); }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/fdcc53ee639bb83ad76562252bd0f3ff894b19a6/J1CollectionHandlers.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/loader/J1CollectionHandlers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 13864, 2186, 12, 1033, 1849, 262, 288, 7734, 309, 261, 1849, 422, 446, 262, 10792, 327, 394, 2200, 6919, 18, 1921, 3572, 7385, 5621, 7734, 327, 394, 1510, 3572, 7385, 12, 1849, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 13864, 2186, 12, 1033, 1849, 262, 288, 7734, 309, 261, 1849, 422, 446, 262, 10792, 327, 394, 2200, 6919, 18, 1921, 3572, 7385, 5621, 7734, 327, 394, 1510, 3572, 7385, 12, 1849, 112...