rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
public org.quickfix.field.EventType getEventType() throws FieldNotFound { org.quickfix.field.EventType value = new org.quickfix.field.EventType();
public quickfix.field.EventType getEventType() throws FieldNotFound { quickfix.field.EventType value = new quickfix.field.EventType();
public org.quickfix.field.EventType getEventType() throws FieldNotFound { org.quickfix.field.EventType value = new org.quickfix.field.EventType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 16346, 9832, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 16346, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 16346, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 16346, 9832, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 16346, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 16346, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super.mousePressed(e);
public void mousePressed(MouseEvent e) { _lastMouseClick = e; // if not in the selected area, if ((viewToModel(e.getPoint()) < getSelectionStart()) || (viewToModel(e.getPoint()) > getSelectionEnd()) ) { //move caret to clicked position, deselecting previous selection setCaretPosition(viewToModel(e.getPoint())); } maybeShowPopup(e); //Don't show the "Toggle Breakpoint" option in the contextual menu, if the JMenuItem is null. if (_toggleBreakpointMenuItem != null) { _toggleBreakpointMenuItem.setEnabled(_mainFrame.inDebugMode()); } //Don't show the "Add Watch" option in the contextual menu, if the JMenuItem is null. //if (_addWatchMenuItem != null) { // _addWatchMenuItem.setEnabled(_mainFrame.inDebugMode()); //} }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/de9a74b95459b3c3644152e88e6c7584955956bf/DefinitionsPane.java/clean/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 1071, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 918, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 7644, 24624, 12, 9186, 1133, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 425, 13, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 288, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 389, 2722, 9186, 6563, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 273, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 425, 31, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 1071, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 918, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 7644, 24624, 12, 9186, 1133, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 425, 13, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 288, 9565, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 73, 1769, 225, 2240, 18, 11697, 24624, 12, 2 ]
for (i=0;i<subframeSize;i++) target[i]-=res[i];
for (i = 0; i < subframeSize; i++) target[i] -= res[i];
public int encode(final Bits bits, final float[] in) { int i; float[] res, target, mem; float[] syn_resp; float[] orig; /* Copy new data in input buffer */ System.arraycopy(frmBuf, frameSize, frmBuf, 0, bufSize-frameSize); frmBuf[bufSize-frameSize] = in[0] - preemph*pre_mem; for (i=1; i<frameSize; i++) frmBuf[bufSize-frameSize+i] = in[i] - preemph*in[i-1]; pre_mem = in[frameSize-1]; /* Move signals 1 frame towards the past */ System.arraycopy(exc2Buf, frameSize, exc2Buf, 0, bufSize-frameSize); System.arraycopy(excBuf, frameSize, excBuf, 0, bufSize-frameSize); System.arraycopy(swBuf, frameSize, swBuf, 0, bufSize-frameSize); /* Window for analysis */ for (i=0; i<windowSize; i++) buf2[i] = frmBuf[i+frmIdx] * window[i]; /* Compute auto-correlation */ Lpc.autocorr(buf2, autocorr, lpcSize+1, windowSize); autocorr[0] += 10; /* prevents NANs */ autocorr[0] *= lpc_floor; /* Noise floor in auto-correlation domain */ /* Lag windowing: equivalent to filtering in the power-spectrum domain */ for (i=0; i<lpcSize+1; i++) autocorr[i] *= lagWindow[i]; /* Levinson-Durbin */ Lpc.wld(lpc, autocorr, rc, lpcSize); // tmperr System.arraycopy(lpc, 0, lpc, 1, lpcSize); lpc[0]=1; /* LPC to LSPs (x-domain) transform */ int roots=Lsp.lpc2lsp (lpc, lpcSize, lsp, 15, 0.2f); /* Check if we found all the roots */ if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /* Search again if we can afford it */ if (complexity>1) roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 11, 0.05f); if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /*If we can't find all LSP's, do some damage control and use previous filter*/ for (i=0;i<lpcSize;i++) { lsp[i]=old_lsp[i]; } } } float lsp_dist=0; for (i=0;i<lpcSize;i++) lsp_dist += (old_lsp[i] - lsp[i])*(old_lsp[i] - lsp[i]); /* Whole frame analysis (open-loop estimation of pitch and excitation gain) */ float ol_gain; int ol_pitch; float ol_pitch_coef; { if (first != 0) for (i=0; i<lpcSize;i++) interp_lsp[i] = lsp[i]; else for (i=0;i<lpcSize;i++) interp_lsp[i] = .375f*old_lsp[i] + .625f*lsp[i]; Lsp.enforce_margin(interp_lsp, lpcSize, .002f); /* Compute interpolated LPCs (unquantized) for whole frame*/ for (i=0; i<lpcSize; i++) interp_lsp[i] = (float)Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); /*Open-loop pitch*/ if (submodes[submodeID] == null || vbr_enabled != 0 || vad_enabled != 0 || submodes[submodeID].forced_pitch_gain != 0 || submodes[submodeID].lbr_pitch != -1) { int[] nol_pitch = new int[6]; float[] nol_pitch_coef = new float[6]; Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); Filters.filter_mem2(frmBuf, frmIdx, bw_lpc1, bw_lpc2, swBuf, swIdx, frameSize, lpcSize, mem_sw_whole, 0); Ltp.open_loop_nbest_pitch(swBuf, swIdx, min_pitch, max_pitch, frameSize, nol_pitch, nol_pitch_coef, 6); ol_pitch=nol_pitch[0]; ol_pitch_coef = nol_pitch_coef[0]; /*Try to remove pitch multiples*/ for (i=1;i<6;i++) { if ((nol_pitch_coef[i]>.85*ol_pitch_coef) && (Math.abs(nol_pitch[i]-ol_pitch/2.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/3.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/4.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/5.0)<=1)) { /*ol_pitch_coef=nol_pitch_coef[i];*/ ol_pitch = nol_pitch[i]; } } /*if (ol_pitch>50) ol_pitch/=2;*/ /*ol_pitch_coef = sqrt(ol_pitch_coef);*/ } else { ol_pitch=0; ol_pitch_coef=0; } /*Compute "real" excitation*/ Filters.fir_mem2(frmBuf, frmIdx, interp_lpc, excBuf, excIdx, frameSize, lpcSize, mem_exc); /* Compute open-loop excitation gain */ ol_gain=0; for (i=0;i<frameSize;i++) ol_gain += excBuf[excIdx+i]*excBuf[excIdx+i]; ol_gain=(float)Math.sqrt(1+ol_gain/frameSize); } /*VBR stuff*/ if (vbr != null && (vbr_enabled != 0 || vad_enabled != 0)) { if (abr_enabled != 0) { float qual_change=0; if (abr_drift2 * abr_drift > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001f*abr_drift/(1+abr_count); if (qual_change>.05f) qual_change=.05f; if (qual_change<-.05f) qual_change=-.05f; } vbr_quality += qual_change; if (vbr_quality>10) vbr_quality=10; if (vbr_quality<0) vbr_quality=0; } relative_quality = vbr.analysis(in, frameSize, ol_pitch, ol_pitch_coef); /*if (delta_qual<0)*/ /* delta_qual*=.1*(3+st->vbr_quality);*/ if (vbr_enabled != 0) { int mode; int choice=0; float min_diff=100; mode = 8; while (mode > 0) { int v1; float thresh; v1=(int)Math.floor(vbr_quality); if (v1==10) thresh = Vbr.nb_thresh[mode][v1]; else thresh = (vbr_quality-v1)*Vbr.nb_thresh[mode][v1+1] + (1+v1-vbr_quality)*Vbr.nb_thresh[mode][v1]; if (relative_quality > thresh && relative_quality-thresh<min_diff) { choice = mode; min_diff = relative_quality-thresh; } mode--; } mode=choice; if (mode==0) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled==0 || dtx_count>20) { mode=1; dtx_count=1; } else { mode=0; dtx_count++; } } else { dtx_count=0; } setMode(mode); if (abr_enabled != 0) { int bitrate; bitrate = getBitRate(); abr_drift+=(bitrate-abr_enabled); abr_drift2 = .95f*abr_drift2 + .05f*(bitrate-abr_enabled); abr_count += 1.0; } } else { /*VAD only case*/ int mode; if (relative_quality<2) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled == 0 || dtx_count>20) { dtx_count=1; mode=1; } else { mode=0; dtx_count++; } } else { dtx_count = 0; mode=submodeSelect; } /*speex_encoder_ctl(state, SPEEX_SET_MODE, &mode);*/ submodeID=mode; } } else { relative_quality = -1; } /* First, transmit a zero for narrowband */ bits.pack(0, 1); /* Transmit the sub-mode we use for this frame */ bits.pack(submodeID, NB_SUBMODE_BITS); /* If null mode (no transmission), just set a couple things to zero*/ if (submodes[submodeID] == null) { for (i=0;i<frameSize;i++) excBuf[excIdx+i]=exc2Buf[exc2Idx+i]=swBuf[swIdx+i]=VERY_SMALL; for (i=0;i<lpcSize;i++) mem_sw[i]=0; first=1; bounded_pitch = 1; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, excIdx, interp_qlpc, frmBuf, frmIdx, frameSize, lpcSize, mem_sp); in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx=i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; return 0; } /* LSP Quantization */ if (first != 0) { for (i=0; i<lpcSize;i++) old_lsp[i] = lsp[i]; } /*Quantize LSPs*///#if 1 /*0 for unquantized*/ submodes[submodeID].lsqQuant.quant(lsp, qlsp, lpcSize, bits);//#else// for (i=0;i<lpcSize;i++)// qlsp[i]=lsp[i];//#endif /*If we use low bit-rate pitch mode, transmit open-loop pitch*/ if (submodes[submodeID].lbr_pitch!=-1) { bits.pack(ol_pitch-min_pitch, 7); } if (submodes[submodeID].forced_pitch_gain != 0) { int quant; quant = (int)Math.floor(.5+15*ol_pitch_coef); if (quant>15) quant=15; if (quant<0) quant=0; bits.pack(quant, 4); ol_pitch_coef=(float) 0.066667*quant; } /*Quantize and transmit open-loop excitation gain*/ { int qe = (int)(Math.floor(0.5+3.5*Math.log(ol_gain))); if (qe<0) qe=0; if (qe>31) qe=31; ol_gain = (float) Math.exp(qe/3.5); bits.pack(qe, 5); } /* Special case for first frame */ if (first != 0) { for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } /* Filter response */ res = new float[subframeSize]; /* Target signal */ target = new float[subframeSize]; syn_resp = new float[subframeSize]; mem = new float[lpcSize]; orig = new float[frameSize]; for (i=0;i<frameSize;i++) orig[i]=frmBuf[frmIdx+i]; /* Loop on sub-frames */ for (int sub=0;sub<nbSubframes;sub++) { float tmp; int offset; int sp, sw, exc, exc2; int pitchval; /* Offset relative to start of frame */ offset = subframeSize*sub; /* Original signal */ sp=frmIdx+offset; /* Excitation */ exc=excIdx+offset; /* Weighted signal */ sw=swIdx+offset; exc2=exc2Idx+offset; /* LSP interpolation (quantized and unquantized) */ tmp = (float) (1.0 + sub)/nbSubframes; for (i=0;i<lpcSize;i++) interp_lsp[i] = (1-tmp)*old_lsp[i] + tmp*lsp[i]; for (i=0;i<lpcSize;i++) interp_qlsp[i] = (1-tmp)*old_qlsp[i] + tmp*qlsp[i]; /* Make sure the filters are stable */ Lsp.enforce_margin(interp_lsp, lpcSize, .002f); Lsp.enforce_margin(interp_qlsp, lpcSize, .002f); /* Compute interpolated LPCs (quantized and unquantized) */ for (i=0;i<lpcSize;i++) interp_lsp[i] = (float) Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); for (i=0;i<lpcSize;i++) interp_qlsp[i] = (float) Math.cos(interp_qlsp[i]); m_lsp.lsp2lpc(interp_qlsp, interp_qlpc, lpcSize); /* Compute analysis filter gain at w=pi (for use in SB-CELP) */ tmp=1; pi_gain[sub]=0; for (i=0;i<=lpcSize;i++) { pi_gain[sub] += tmp*interp_qlpc[i]; tmp = -tmp; } /* Compute bandwidth-expanded (unquantized) LPCs for perceptual weighting */ Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); if (gamma2>=0) Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); else { bw_lpc2[0]=1; bw_lpc2[1]=-preemph; for (i=2;i<=lpcSize;i++) bw_lpc2[i]=0; } /* Compute impulse response of A(z/g1) / ( A(z)*A(z/g2) )*/ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; excBuf[exc]=1; Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, subframeSize, lpcSize); /* Reset excitation */ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=0; /* Compute zero response of A(z/g1) / ( A(z/g2) * A(z) ) */ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; Filters.iir_mem2(excBuf, exc, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem); for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(excBuf, exc, bw_lpc1, bw_lpc2, res, 0, subframeSize, lpcSize, mem, 0); /* Compute weighted signal */ for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem, 0); /* Compute target signal */ for (i=0;i<subframeSize;i++) target[i]=swBuf[sw+i]-res[i]; for (i=0;i<subframeSize;i++) excBuf[exc+i]=exc2Buf[exc2+i]=0; /* If we have a long-term predictor (otherwise, something's wrong) */// if (submodes[submodeID].ltp.quant)// { int pit_min, pit_max; /* Long-term prediction */ if (submodes[submodeID].lbr_pitch != -1) { /* Low bit-rate pitch handling */ int margin; margin = submodes[submodeID].lbr_pitch; if (margin != 0) { if (ol_pitch < min_pitch+margin-1) ol_pitch=min_pitch+margin-1; if (ol_pitch > max_pitch-margin) ol_pitch=max_pitch-margin; pit_min = ol_pitch-margin+1; pit_max = ol_pitch+margin; } else { pit_min=pit_max=ol_pitch; } } else { pit_min = min_pitch; pit_max = max_pitch; } /* Force pitch to use only the current frame if needed */ if (bounded_pitch != 0 && pit_max>offset) pit_max=offset; /* Perform pitch search */ pitchval = submodes[submodeID].ltp.quant(target, swBuf, sw, interp_qlpc, bw_lpc1, bw_lpc2, excBuf, exc, pit_min, pit_max, ol_pitch_coef, lpcSize, subframeSize, bits, exc2Buf, exc2, syn_resp, complexity); pitch[sub]=pitchval;// } else {// speex_error ("No pitch prediction, what's wrong");// } /* Update target for adaptive codebook contribution */ Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, res, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) target[i]-=res[i]; /* Quantization of innovation */ { int innovptr; float ener=0, ener_1; innovptr = sub*subframeSize; for (i=0;i<subframeSize;i++) innov[innovptr+i]=0; Filters.residue_percep_zero(target, 0, interp_qlpc, bw_lpc1, bw_lpc2, buf2, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) ener+=buf2[i]*buf2[i]; ener=(float)Math.sqrt(.1f+ener/subframeSize); /*for (i=0;i<subframeSize;i++) System.out.print(buf2[i]/ener + "\t"); */ ener /= ol_gain; /* Calculate gain correction for the sub-frame (if any) */ if (submodes[submodeID].have_subframe_gain != 0) { int qe; ener=(float)Math.log(ener); if (submodes[submodeID].have_subframe_gain==3) { qe = VQ.index(ener, exc_gain_quant_scal3, 8); bits.pack(qe, 3); ener=exc_gain_quant_scal3[qe]; } else { qe = VQ.index(ener, exc_gain_quant_scal1, 2); bits.pack(qe, 1); ener=exc_gain_quant_scal1[qe]; } ener=(float)Math.exp(ener); } else { ener=1; } ener*=ol_gain; /*System.out.println(ener + " " + ol_gain);*/ ener_1 = 1/ener; /* Normalize innovation */ for (i=0;i<subframeSize;i++) target[i]*=ener_1; /* Quantize innovation */// if (submodes[submodeID].innovation != null)// { /* Codebook search */ submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov, innovptr, syn_resp, bits, complexity); /* De-normalize innovation and update excitation */ for (i=0;i<subframeSize;i++) innov[innovptr+i]*=ener; for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov[innovptr+i];// } else {// speex_error("No fixed codebook");// } /* In some (rare) modes, we do a second search (more bits) to reduce noise even more */ if (submodes[submodeID].double_codebook != 0) { float[] innov2 = new float[subframeSize];// for (i=0;i<subframeSize;i++)// innov2[i]=0; for (i=0;i<subframeSize;i++) target[i]*=2.2; submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov2, 0, syn_resp, bits, complexity); for (i=0;i<subframeSize;i++) innov2[i]*=ener*(1/2.2); for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov2[i]; } for (i=0;i<subframeSize;i++) target[i]*=ener; } /*Keep the previous memory*/ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, exc, interp_qlpc, frmBuf, sp, subframeSize, lpcSize, mem_sp); /* Compute weighted signal again, from synthesized speech (not sure it's the right thing) */ Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem_sw, 0); for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=excBuf[exc+i]; } /* Store the LSPs for interpolation in the next frame */ if (submodeID>=1) { for (i=0;i<lpcSize;i++) old_lsp[i] = lsp[i]; for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } if (submodeID==1) { if (dtx_count != 0) { bits.pack(15, 4); } else { bits.pack(0, 4); } } /* The next frame will not be the first (Duh!) */ first = 0; { float ener=0, err=0; float snr; for (i=0;i<frameSize;i++) { ener+=frmBuf[frmIdx+i]*frmBuf[frmIdx+i]; err += (frmBuf[frmIdx+i]-orig[i])*(frmBuf[frmIdx+i]-orig[i]); } snr = (float) (10*Math.log((ener+1)/(err+1))); /*System.out.println("Frame result: SNR="+snr+" E="+ener+" Err="+err+"\r\n");*/ } /* Replace input by synthesized speech */ in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx+i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; if (submodes[submodeID].innovation instanceof NoiseSearch || submodeID==0) bounded_pitch = 1; else bounded_pitch = 0; return 1; }
6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/NbEncoder.java/clean/main/trunk/codec/src/main/java/org/xiph/speex/NbEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 2017, 12, 6385, 18690, 4125, 16, 727, 1431, 8526, 316, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 8526, 400, 16, 1018, 16, 1663, 31, 565, 1431, 8526, 6194, 67, 12243, 31, 565, 1431, 8526, 1647, 31, 565, 1748, 5631, 394, 501, 316, 810, 1613, 1195, 565, 2332, 18, 1126, 3530, 12, 4840, 81, 5503, 16, 2623, 1225, 16, 31074, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 31074, 5503, 63, 4385, 1225, 17, 3789, 1225, 65, 273, 316, 63, 20, 65, 300, 675, 351, 844, 14, 1484, 67, 3917, 31, 565, 364, 261, 77, 33, 21, 31, 277, 32, 3789, 1225, 31, 277, 27245, 1377, 31074, 5503, 63, 4385, 1225, 17, 3789, 1225, 15, 77, 65, 273, 316, 63, 77, 65, 300, 675, 351, 844, 14, 267, 63, 77, 17, 21, 15533, 565, 675, 67, 3917, 273, 316, 63, 3789, 1225, 17, 21, 15533, 565, 1748, 9933, 11505, 404, 2623, 23248, 326, 8854, 1195, 565, 2332, 18, 1126, 3530, 12, 10075, 22, 5503, 16, 2623, 1225, 16, 3533, 22, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 2332, 18, 1126, 3530, 12, 10075, 5503, 16, 2623, 1225, 16, 3533, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 2332, 18, 1126, 3530, 12, 5328, 5503, 16, 2623, 1225, 16, 1352, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 1748, 6076, 364, 6285, 1195, 565, 364, 261, 77, 33, 20, 31, 277, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 2017, 12, 6385, 18690, 4125, 16, 727, 1431, 8526, 316, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 8526, 400, 16, 1018, 16, 1663, 31, 565, 1431, 8526, 6194, 67, 12243, 31, 565, 1431, 8526, 1647, 31, 565, 1748, 5631, 394, 501, 316, 810, 1613, 1195, 565, 2332, 18, 1126, 3530, 12, 4840, 81, 5503, 16, 2623, 1225, 16, 31074, 5503, 16, 374, 16, 1681, 1225, 17, 3789, 1225, 1769, 565, 31074, 5503, 63, 4385, 1225, 17, 3789, 1225, 65, 273, 316, 63, 20, 65, 300, 675, 351, 844, 14, 1484, 67, 3917, 31, 565, 364, 261, 77, 33, 21, 31, 277, 32, 3789, 1225, 31, 277, 27245, 1377, 31074, 5503, 63, 4385, 1225, 17, 2 ]
ruby.getGlobalVar("$!").callMethod("set_backtrace", value.toRubyObject());
ruby.getGlobalVar("$!").callMethod("set_backtrace", value);
public IRubyObject set(IRubyObject value) { if (ruby.getGlobalVar("$!").isNil()) { throw new ArgumentError(ruby, "$! not set."); } ruby.getGlobalVar("$!").callMethod("set_backtrace", value.toRubyObject()); return value; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 444, 12, 7937, 10340, 921, 460, 13, 288, 5411, 309, 261, 27768, 18, 588, 5160, 1537, 2932, 8, 4442, 2934, 291, 12616, 10756, 288, 7734, 604, 394, 9236, 12, 27768, 16, 4662, 5, 486, 444, 1199, 1769, 5411, 289, 5411, 22155, 18, 588, 5160, 1537, 2932, 8, 4442, 2934, 1991, 1305, 2932, 542, 67, 18728, 3113, 460, 1769, 5411, 327, 460, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 444, 12, 7937, 10340, 921, 460, 13, 288, 5411, 309, 261, 27768, 18, 588, 5160, 1537, 2932, 8, 4442, 2934, 291, 12616, 10756, 288, 7734, 604, 394, 9236, 12, 27768, 16, 4662, 5, 486, 444, 1199, 1769, 5411, 289, 5411, 22155, 18, 588, 5160, 1537, 2932, 8, 4442, 2934, 1991, 1305, 2932, 542, 67, 18728, 3113, 460, 1769, 5411, 327, 460, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
SymbolTokenization parser, SeqIOListener listener) throws IOException, IllegalSymbolException { char[] buffer = new char[256]; StreamParser sparser = parser.parseStream(listener); boolean seenEOF = false; boolean reachedEnd = false;
SymbolTokenization parser, SeqIOListener listener) throws IOException, IllegalSymbolException { char[] buffer = new char[256]; StreamParser sparser = parser.parseStream(listener); boolean seenEOF = false; boolean reachedEnd = false;
private boolean readSequenceData(BufferedReader br, SymbolTokenization parser, SeqIOListener listener) throws IOException, IllegalSymbolException { char[] buffer = new char[256]; StreamParser sparser = parser.parseStream(listener); boolean seenEOF = false; //reached the end of the file boolean reachedEnd = false; //reached the end of this sequence while(reachedEnd == false){// while more sequence br.mark(buffer.length); // mark the read ahead limit int bytesRead = br.read(buffer,0,buffer.length); // read into the buffer while(Character.isDigit(buffer[buffer.length -1])){// may have ended halfway through a number br.reset();// if so reset buffer = new char[buffer.length+64]; //make the buffer a little bigger br.mark(buffer.length); //mark the new read ahead limit bytesRead = br.read(buffer,0,buffer.length); //read into buffer } if(bytesRead < 0){ //ie -1 indicates end of file seenEOF = reachedEnd = true; }else{ // otherwise int parseStart = 0; int parseEnd = 0; // while more sequence and more chars in the buffer and not a new sequence while(!reachedEnd && parseStart < bytesRead && buffer[parseStart] != '>'){ parseEnd = parseStart; //begin looking from parse start //while more in buffer and the character read is not whitespace while(parseEnd < bytesRead && Character.isWhitespace(buffer[parseEnd]) == false){ ++parseEnd; //look to the next character } sparser.characters(buffer,parseStart,parseEnd-parseStart); parseStart = parseEnd+1; // start at the character after the valid chunk while(parseStart < bytesRead && //more in buffer Character.isDigit(buffer[parseStart]) == false && // not yet up to a digit buffer[parseStart] != '>'){// Not started a new sequence ++parseStart; // look to the next character } } //If found the start of a new sequence if(parseStart < bytesRead && buffer[parseStart] == '>'){ br.reset(); // reset the reader // then skip the file reading pointer to the start of the new sequence ready for the //next read (if required). if(br.skip(parseStart) != parseStart) throw new IOException("Couldn't reset to start of next sequence"); reachedEnd = true; //found the end of this sequence. } } } sparser.close(); return seenEOF; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/38c9349040bf619c02a2410fbe8bbccfb93de469/PhredFormat.java/clean/src/org/biojava/bio/program/phred/PhredFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 855, 4021, 751, 12, 17947, 2514, 5186, 16, 19694, 8565, 1345, 1588, 2082, 16, 19694, 14367, 4294, 2223, 2991, 13, 3639, 1216, 1860, 16, 2141, 5335, 503, 565, 288, 4202, 1149, 8526, 1613, 273, 394, 1149, 63, 5034, 15533, 4202, 3961, 2678, 272, 4288, 273, 2082, 18, 2670, 1228, 12, 12757, 1769, 4202, 1250, 5881, 12706, 273, 629, 31, 368, 266, 2004, 326, 679, 434, 326, 585, 4202, 1250, 8675, 1638, 273, 629, 31, 368, 266, 2004, 326, 679, 434, 333, 3102, 4202, 1323, 12, 266, 2004, 1638, 422, 629, 15329, 759, 1323, 1898, 3102, 540, 5186, 18, 3355, 12, 4106, 18, 2469, 1769, 368, 2267, 326, 855, 17510, 1800, 540, 509, 17244, 273, 5186, 18, 896, 12, 4106, 16, 20, 16, 4106, 18, 2469, 1769, 368, 855, 1368, 326, 1613, 540, 1323, 12, 7069, 18, 291, 10907, 12, 4106, 63, 4106, 18, 2469, 300, 21, 22643, 95, 759, 2026, 1240, 16926, 8816, 1888, 3059, 279, 1300, 6647, 5186, 18, 6208, 5621, 759, 309, 1427, 2715, 6647, 1613, 273, 394, 1149, 63, 4106, 18, 2469, 15, 1105, 15533, 368, 6540, 326, 1613, 279, 12720, 18983, 6647, 5186, 18, 3355, 12, 4106, 18, 2469, 1769, 368, 3355, 326, 394, 855, 17510, 1800, 6647, 17244, 273, 5186, 18, 896, 12, 4106, 16, 20, 16, 4106, 18, 2469, 1769, 368, 896, 1368, 1613, 540, 289, 540, 309, 12, 3890, 1994, 411, 374, 15329, 368, 1385, 300, 21, 8527, 679, 434, 585, 5411, 5881, 12706, 273, 8675, 1638, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 855, 4021, 751, 12, 17947, 2514, 5186, 16, 19694, 8565, 1345, 1588, 2082, 16, 19694, 14367, 4294, 2223, 2991, 13, 3639, 1216, 1860, 16, 2141, 5335, 503, 565, 288, 4202, 1149, 8526, 1613, 273, 394, 1149, 63, 5034, 15533, 4202, 3961, 2678, 272, 4288, 273, 2082, 18, 2670, 1228, 12, 12757, 1769, 4202, 1250, 5881, 12706, 273, 629, 31, 368, 266, 2004, 326, 679, 434, 326, 585, 4202, 1250, 8675, 1638, 273, 629, 31, 368, 266, 2004, 326, 679, 434, 333, 3102, 4202, 1323, 12, 266, 2004, 1638, 422, 629, 15329, 759, 1323, 1898, 3102, 540, 5186, 18, 3355, 12, 4106, 18, 2469, 1769, 368, 2267, 326, 855, 17510, 1800, 540, 509, 17244, 273, 5186, 18, 2 ]
_t = __t1598;
_t = __t1604;
public final void array_subscript(AST _t) throws RecognitionException { AST array_subscript_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1598 = _t; AST tmp613_AST_in = (AST)_t; match(_t,Array_subscript); _t = _t.getFirstChild(); AST tmp614_AST_in = (AST)_t; match(_t,LEFTBRACE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp615_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } case RIGHTBRACE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp616_AST_in = (AST)_t; match(_t,RIGHTBRACE); _t = _t.getNextSibling(); _t = __t1598; _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, 526, 67, 1717, 4263, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 526, 67, 1717, 4263, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3600, 10689, 273, 389, 88, 31, 202, 202, 9053, 1853, 26, 3437, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1076, 67, 1717, 4263, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 26, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 10066, 26980, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 8692, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 12108, 30, 202, 202, 95, 1082, 202, 9053, 1853, 26, 3600, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 7473, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8692, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 526, 67, 1717, 4263, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 526, 67, 1717, 4263, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3600, 10689, 273, 389, 88, 31, 202, 202, 9053, 1853, 26, 3437, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1076, 67, 1717, 4263, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 26, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 2 ]
if (!queryYesNoQuestion(PreferencesMessages.PreferencesExport_createTargetDirectory))
if (!queryYesNoQuestion(PreferencesMessages.PreferencesExport_createTargetDirectory)) {
protected boolean ensureDirectoryExists(File directory) { if (!directory.exists()) { if (!queryYesNoQuestion(PreferencesMessages.PreferencesExport_createTargetDirectory)) return false; if (!directory.mkdirs()) { MessageDialog .openError( getContainer().getShell(), PreferencesMessages.PreferencesExport_error, PreferencesMessages.PreferencesExport_directoryCreationError); return false; } } return true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WizardPreferencesPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 3387, 2853, 4002, 12, 812, 1867, 13, 288, 202, 202, 430, 16051, 5149, 18, 1808, 10756, 288, 1082, 202, 430, 16051, 2271, 22352, 2279, 11665, 12, 12377, 5058, 18, 12377, 6144, 67, 2640, 2326, 2853, 3719, 9506, 202, 2463, 629, 31, 1082, 202, 430, 16051, 5149, 18, 24816, 8291, 10756, 288, 9506, 202, 1079, 6353, 25083, 202, 18, 3190, 668, 12, 6862, 9506, 202, 588, 2170, 7675, 588, 13220, 9334, 6862, 9506, 202, 12377, 5058, 18, 12377, 6144, 67, 1636, 16, 6862, 9506, 202, 12377, 5058, 18, 12377, 6144, 67, 5149, 9906, 668, 1769, 9506, 202, 2463, 629, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 638, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 3387, 2853, 4002, 12, 812, 1867, 13, 288, 202, 202, 430, 16051, 5149, 18, 1808, 10756, 288, 1082, 202, 430, 16051, 2271, 22352, 2279, 11665, 12, 12377, 5058, 18, 12377, 6144, 67, 2640, 2326, 2853, 3719, 9506, 202, 2463, 629, 31, 1082, 202, 430, 16051, 5149, 18, 24816, 8291, 10756, 288, 9506, 202, 1079, 6353, 25083, 202, 18, 3190, 668, 12, 6862, 9506, 202, 588, 2170, 7675, 588, 13220, 9334, 6862, 9506, 202, 12377, 5058, 18, 12377, 6144, 67, 1636, 16, 6862, 9506, 202, 12377, 5058, 18, 12377, 6144, 67, 5149, 9906, 668, 1769, 9506, 202, 2463, 629, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 638, 31, 202, 97, 2, -100, -100, -100 ]
File contents[] = src.listFiles();
File contents[] = localFs.listFiles(src);
private void doFromLocalFile(File src, File dst, boolean deleteSource) throws IOException { if (exists(dst)) { if (! isDirectory(dst)) { throw new IOException("Target " + dst + " already exists"); } else { dst = new File(dst, src.getName()); if (exists(dst)) { throw new IOException("Target " + dst + " already exists"); } } } if (src.isDirectory()) { mkdirs(dst); File contents[] = src.listFiles(); for (int i = 0; i < contents.length; i++) { doFromLocalFile(contents[i], new File(dst, contents[i].getName()), deleteSource); } } else { byte buf[] = new byte[getConf().getInt("io.file.buffer.size", 4096)]; InputStream in = new BufferedInputStream(new FileInputStream(src)); try { OutputStream out = create(dst); try { int bytesRead = in.read(buf); while (bytesRead >= 0) { out.write(buf, 0, bytesRead); bytesRead = in.read(buf); } } finally { out.close(); } } finally { in.close(); } } if (deleteSource) src.delete(); }
58004 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58004/ecf45fd810566c5561886e2a8bc1f1bf0fe878f5/DistributedFileSystem.java/buggy/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1265, 2042, 812, 12, 812, 1705, 16, 1387, 3046, 16, 1250, 1430, 1830, 13, 1216, 1860, 288, 3639, 309, 261, 1808, 12, 11057, 3719, 288, 5411, 309, 16051, 10126, 12, 11057, 3719, 288, 7734, 604, 394, 1860, 2932, 2326, 315, 397, 3046, 397, 315, 1818, 1704, 8863, 5411, 289, 469, 288, 7734, 3046, 273, 394, 1387, 12, 11057, 16, 1705, 18, 17994, 10663, 7734, 309, 261, 1808, 12, 11057, 3719, 288, 10792, 604, 394, 1860, 2932, 2326, 315, 397, 3046, 397, 315, 1818, 1704, 8863, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 261, 4816, 18, 291, 2853, 10756, 288, 5411, 18095, 12, 11057, 1769, 5411, 1387, 2939, 8526, 273, 1191, 12432, 18, 1098, 2697, 12, 4816, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2939, 18, 2469, 31, 277, 27245, 288, 7734, 741, 1265, 2042, 812, 12, 3980, 63, 77, 6487, 394, 1387, 12, 11057, 16, 2939, 63, 77, 8009, 17994, 1435, 3631, 1430, 1830, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 1160, 1681, 8526, 273, 394, 1160, 63, 588, 3976, 7675, 588, 1702, 2932, 1594, 18, 768, 18, 4106, 18, 1467, 3113, 16797, 13, 15533, 5411, 5037, 316, 273, 394, 24742, 12, 2704, 11907, 12, 4816, 10019, 5411, 775, 288, 7734, 8962, 596, 273, 752, 12, 11057, 1769, 7734, 775, 288, 10792, 509, 17244, 273, 316, 18, 896, 12, 4385, 1769, 10792, 1323, 261, 3890, 1994, 1545, 374, 13, 288, 13491, 596, 18, 2626, 12, 4385, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1265, 2042, 812, 12, 812, 1705, 16, 1387, 3046, 16, 1250, 1430, 1830, 13, 1216, 1860, 288, 3639, 309, 261, 1808, 12, 11057, 3719, 288, 5411, 309, 16051, 10126, 12, 11057, 3719, 288, 7734, 604, 394, 1860, 2932, 2326, 315, 397, 3046, 397, 315, 1818, 1704, 8863, 5411, 289, 469, 288, 7734, 3046, 273, 394, 1387, 12, 11057, 16, 1705, 18, 17994, 10663, 7734, 309, 261, 1808, 12, 11057, 3719, 288, 10792, 604, 394, 1860, 2932, 2326, 315, 397, 3046, 397, 315, 1818, 1704, 8863, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 261, 4816, 18, 291, 2853, 10756, 288, 5411, 18095, 12, 11057, 1769, 5411, 1387, 2939, 8526, 273, 1191, 12432, 18, 1098, 2697, 2 ]
return (msg.indexOf("file marked as a binary type") > 0);
return (msg.indexOf(BINARY_TYPE) > 0);
private static boolean isBinaryErrorMessage(String msg) { /* * Index: junit.jar * =================================================================== * Cannot display: file marked as a binary type. * * svn:mime-type = application/octet-stream */ return (msg.indexOf("file marked as a binary type") > 0); }
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/7c6e1807f389451871a7a8a106edaedd72685501/SvnDiffUtils.java/buggy/statsvn/src/net/sf/statcvs/util/SvnDiffUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 353, 5905, 14935, 12, 780, 1234, 13, 288, 202, 202, 20308, 1082, 380, 3340, 30, 525, 4873, 18, 11930, 1082, 380, 422, 9917, 33, 1082, 380, 14143, 2562, 30, 585, 9350, 487, 279, 3112, 618, 18, 1082, 380, 1875, 380, 5893, 82, 30, 11757, 17, 723, 273, 2521, 19, 17909, 17, 3256, 1082, 1195, 202, 202, 2463, 261, 3576, 18, 31806, 2932, 768, 9350, 487, 279, 3112, 618, 7923, 405, 374, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 353, 5905, 14935, 12, 780, 1234, 13, 288, 202, 202, 20308, 1082, 380, 3340, 30, 525, 4873, 18, 11930, 1082, 380, 422, 9917, 33, 1082, 380, 14143, 2562, 30, 585, 9350, 487, 279, 3112, 618, 18, 1082, 380, 1875, 380, 5893, 82, 30, 11757, 17, 723, 273, 2521, 19, 17909, 17, 3256, 1082, 1195, 202, 202, 2463, 261, 3576, 18, 31806, 2932, 768, 9350, 487, 279, 3112, 618, 7923, 405, 374, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
UserAccount account = revision.getServer().getAdministration().findUserAccount(revision.getModifiedBy()); mod.type = getRevisionType(revision);
mod.type = status;
private void addRevision(File revision) { Modification mod = new Modification(); UserAccount account = revision.getServer().getAdministration().findUserAccount(revision.getModifiedBy()); // Populate the Modification Object mod.type = getRevisionType(revision); mod.fileName = revision.getName(); mod.folderName = revision.getParentFolder().getFolderHierarchy(); mod.modifiedTime = revision.getModifiedTime().createDate(); mod.userName = account.getName(); mod.comment = revision.getComment(); // Add this modification to our appropriate lists modificationList.add(mod); emailAddresses.add(account.getEmailAddress()); // Update the most recent modification time, if appropriate. if (revision.getModifiedTime().getLongValue() > mostRecentModification.getLongValue()) { mostRecentModification = revision.getModifiedTime(); } log("File: " + mod.fileName); log("userName: " + mod.userName + " Date: " + mod.modifiedTime); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/368137d65f48a782df859ec657a4a80de075110e/StarTeamElement.java/buggy/main/src/net/sourceforge/cruisecontrol/element/StarTeamElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7939, 12, 812, 6350, 13, 288, 3639, 3431, 1480, 681, 273, 394, 3431, 1480, 5621, 3639, 2177, 3032, 2236, 273, 6350, 18, 588, 2081, 7675, 588, 4446, 4218, 7675, 4720, 1299, 3032, 12, 13057, 18, 588, 4575, 858, 10663, 3639, 368, 22254, 326, 3431, 1480, 1033, 3639, 681, 18, 723, 273, 26911, 559, 12, 13057, 1769, 3639, 681, 18, 17812, 273, 6350, 18, 17994, 5621, 3639, 681, 18, 5609, 461, 273, 6350, 18, 588, 3054, 3899, 7675, 588, 3899, 12074, 5621, 3639, 681, 18, 7342, 950, 273, 6350, 18, 588, 4575, 950, 7675, 2640, 1626, 5621, 3639, 681, 18, 1355, 461, 273, 2236, 18, 17994, 5621, 3639, 681, 18, 3469, 273, 6350, 18, 588, 4469, 5621, 3639, 368, 1436, 333, 11544, 358, 3134, 5505, 6035, 3639, 11544, 682, 18, 1289, 12, 1711, 1769, 3639, 2699, 7148, 18, 1289, 12, 4631, 18, 588, 23590, 10663, 3639, 368, 2315, 326, 4486, 8399, 11544, 813, 16, 309, 5505, 18, 3639, 309, 261, 13057, 18, 588, 4575, 950, 7675, 588, 3708, 620, 1435, 405, 4486, 17076, 13467, 18, 588, 3708, 620, 10756, 288, 5411, 4486, 17076, 13467, 273, 6350, 18, 588, 4575, 950, 5621, 3639, 289, 3639, 613, 2932, 812, 30, 315, 397, 681, 18, 17812, 1769, 3639, 613, 2932, 1355, 461, 30, 315, 397, 681, 18, 1355, 461, 397, 315, 2167, 30, 315, 397, 681, 18, 7342, 950, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7939, 12, 812, 6350, 13, 288, 3639, 3431, 1480, 681, 273, 394, 3431, 1480, 5621, 3639, 2177, 3032, 2236, 273, 6350, 18, 588, 2081, 7675, 588, 4446, 4218, 7675, 4720, 1299, 3032, 12, 13057, 18, 588, 4575, 858, 10663, 3639, 368, 22254, 326, 3431, 1480, 1033, 3639, 681, 18, 723, 273, 26911, 559, 12, 13057, 1769, 3639, 681, 18, 17812, 273, 6350, 18, 17994, 5621, 3639, 681, 18, 5609, 461, 273, 6350, 18, 588, 3054, 3899, 7675, 588, 3899, 12074, 5621, 3639, 681, 18, 7342, 950, 273, 6350, 18, 588, 4575, 950, 7675, 2640, 1626, 5621, 3639, 681, 18, 1355, 461, 273, 2236, 18, 17994, 5621, 3639, 681, 18, 3469, 273, 6350, 18, 588, 4469, 2 ]
"-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime), "."};
"-N", "-d", ">" + CVSElement.formatCVSDate(lastBuildTime), "."};
public void testHistoryCommandNullCVSROOT() { Date lastBuildTime = new Date(); Date currTime = new Date(); CVSElement element = new CVSElement(); element.setCvsRoot(null); element.setLocalWorkingCopy("."); String[] expectedCommand = new String[]{"cvs", "log", "-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime), "."}; String[] actualCommand = element.buildHistoryCommand(lastBuildTime, currTime).getCommandline(); assertEquals("Mismatched lengths!", expectedCommand.length, actualCommand.length); for (int i = 0; i < expectedCommand.length; i++) { assertEquals(expectedCommand[i], actualCommand[i]); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/04f3fa41dccd233273f76f0539e30be38c0e595e/CVSElementTest.java/buggy/main/test/net/sourceforge/cruisecontrol/element/CVSElementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5623, 2189, 2041, 39, 14640, 9185, 1435, 288, 202, 202, 1626, 1142, 3116, 950, 273, 394, 2167, 5621, 202, 202, 1626, 4306, 950, 273, 394, 2167, 5621, 202, 202, 39, 14640, 1046, 930, 273, 394, 385, 14640, 1046, 5621, 202, 202, 2956, 18, 542, 39, 6904, 2375, 12, 2011, 1769, 202, 202, 2956, 18, 542, 2042, 14836, 2951, 2932, 1199, 1769, 202, 202, 780, 8526, 2665, 2189, 273, 394, 514, 63, 7073, 6, 71, 6904, 3113, 315, 1330, 3113, 9506, 202, 6, 17, 50, 3113, 3701, 72, 3113, 385, 14640, 1046, 18, 2139, 39, 14640, 1626, 12, 2722, 3116, 950, 13, 397, 18165, 6862, 397, 385, 14640, 1046, 18, 2139, 39, 14640, 1626, 12, 17016, 950, 3631, 4585, 20451, 202, 202, 780, 8526, 3214, 2189, 273, 9506, 202, 2956, 18, 3510, 5623, 2189, 12, 2722, 3116, 950, 16, 4306, 950, 2934, 588, 2189, 1369, 5621, 202, 202, 11231, 8867, 2932, 11729, 11073, 10917, 5, 3113, 2665, 2189, 18, 2469, 16, 9506, 202, 18672, 2189, 18, 2469, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2665, 2189, 18, 2469, 31, 277, 27245, 288, 1082, 202, 11231, 8867, 12, 3825, 2189, 63, 77, 6487, 3214, 2189, 63, 77, 19226, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1842, 5623, 2189, 2041, 39, 14640, 9185, 1435, 288, 202, 202, 1626, 1142, 3116, 950, 273, 394, 2167, 5621, 202, 202, 1626, 4306, 950, 273, 394, 2167, 5621, 202, 202, 39, 14640, 1046, 930, 273, 394, 385, 14640, 1046, 5621, 202, 202, 2956, 18, 542, 39, 6904, 2375, 12, 2011, 1769, 202, 202, 2956, 18, 542, 2042, 14836, 2951, 2932, 1199, 1769, 202, 202, 780, 8526, 2665, 2189, 273, 394, 514, 63, 7073, 6, 71, 6904, 3113, 315, 1330, 3113, 9506, 202, 6, 17, 50, 3113, 3701, 72, 3113, 385, 14640, 1046, 18, 2139, 39, 14640, 1626, 12, 2722, 3116, 950, 13, 397, 18165, 6862, 397, 385, 14640, 1046, 18, 2139, 39, 14640, 1626, 12, 2 ]
output = compare.replaceAll("\r",""); output = compare.replaceAll("\n","");
output = StringUtils.replace(compare,"\r",""); output = StringUtils.replace(output,"\n","");
public void endSessionScopeNameIterateArray (WebResponse response){ String output = response.getText(); String[] tst = new String[iterations]; for (int i = 0; i < tst.length; i++) { tst[i] = "test" + i; } String compare = ""; for (int i = 0; i < iterations; i++) { compare += tst[i]; } //fix for introduced carriage return / line feeds output = compare.replaceAll("\r",""); output = compare.replaceAll("\n",""); assertEquals(compare, output); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/d35243d93417203419685737c1434918c5e62bae/TestIterateTag.java/clean/src/test/org/apache/struts/taglib/logic/TestIterateTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 679, 2157, 3876, 461, 14916, 1076, 261, 4079, 1064, 766, 15329, 202, 565, 514, 876, 273, 766, 18, 588, 1528, 5621, 3639, 514, 8526, 268, 334, 273, 394, 514, 63, 19330, 15533, 3196, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 268, 334, 18, 2469, 31, 277, 27245, 288, 1082, 202, 88, 334, 63, 77, 65, 273, 315, 3813, 6, 397, 277, 31, 202, 202, 97, 202, 565, 514, 3400, 273, 1408, 31, 202, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11316, 31, 277, 27245, 288, 1082, 202, 9877, 1011, 268, 334, 63, 77, 15533, 202, 202, 97, 202, 202, 759, 904, 364, 26339, 5926, 27935, 327, 342, 980, 27684, 202, 202, 2844, 273, 3400, 18, 2079, 1595, 31458, 86, 3113, 3660, 1769, 202, 202, 2844, 273, 3400, 18, 2079, 1595, 31458, 82, 3113, 3660, 1769, 202, 565, 1815, 8867, 12, 9877, 16, 876, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 679, 2157, 3876, 461, 14916, 1076, 261, 4079, 1064, 766, 15329, 202, 565, 514, 876, 273, 766, 18, 588, 1528, 5621, 3639, 514, 8526, 268, 334, 273, 394, 514, 63, 19330, 15533, 3196, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 268, 334, 18, 2469, 31, 277, 27245, 288, 1082, 202, 88, 334, 63, 77, 65, 273, 315, 3813, 6, 397, 277, 31, 202, 202, 97, 202, 565, 514, 3400, 273, 1408, 31, 202, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11316, 31, 277, 27245, 288, 1082, 202, 9877, 1011, 268, 334, 63, 77, 15533, 202, 202, 97, 202, 202, 759, 904, 364, 26339, 5926, 27935, 327, 342, 980, 27684, 2 ]
setStyleId(null);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELMultiboxTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 8853, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 6788, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 22131, 27065, 12443, 780, 13, 5302, 3843, 2932, 265, 27065, 3113, 30070, 27065, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 2 ]
String[] names = new String[factor]; String[] sortedNames = new String[factor];
Path[] names = new Path[factor]; Path[] sortedNames = new Path[factor];
private static void mergeTest(FileSystem fs, int count, int seed, String file, boolean fast, int factor, int megabytes) throws IOException { LOG.fine("creating "+factor+" files with "+count/factor+" records"); SequenceFile.Writer[] writers = new SequenceFile.Writer[factor]; String[] names = new String[factor]; String[] sortedNames = new String[factor]; for (int i = 0; i < factor; i++) { names[i] = file+"."+i; sortedNames[i] = names[i] + ".sorted"; fs.delete(new File(names[i])); fs.delete(new File(sortedNames[i])); writers[i] = new SequenceFile.Writer(fs, names[i], RandomDatum.class,RandomDatum.class); } RandomDatum.Generator generator = new RandomDatum.Generator(seed); for (int i = 0; i < count; i++) { generator.next(); RandomDatum key = generator.getKey(); RandomDatum value = generator.getValue(); writers[i%factor].append(key, value); } for (int i = 0; i < factor; i++) writers[i].close(); for (int i = 0; i < factor; i++) { LOG.fine("sorting file " + i + " with " + count/factor + " records"); newSorter(fs, fast, megabytes, factor).sort(names[i], sortedNames[i]); } LOG.fine("merging " + factor + " files with " + count/factor + " records"); fs.delete(new File(file+".sorted")); newSorter(fs, fast, megabytes, factor).merge(sortedNames, file+".sorted"); }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/ee01fef4b4fb82c7492a4a747793839a4d14cd39/TestSequenceFile.java/buggy/src/test/org/apache/hadoop/io/TestSequenceFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 2691, 4709, 12, 11785, 2662, 16, 509, 1056, 16, 509, 5009, 16, 4766, 514, 585, 16, 1250, 4797, 16, 509, 5578, 16, 4766, 509, 312, 1332, 24383, 1078, 13, 565, 1216, 1860, 288, 565, 2018, 18, 74, 558, 2932, 23799, 13773, 6812, 9078, 1390, 598, 13773, 1883, 19, 6812, 9078, 3853, 8863, 565, 8370, 812, 18, 2289, 8526, 18656, 273, 394, 8370, 812, 18, 2289, 63, 6812, 15533, 565, 514, 8526, 1257, 273, 394, 514, 63, 6812, 15533, 565, 514, 8526, 3115, 1557, 273, 394, 514, 63, 6812, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5578, 31, 277, 27245, 288, 1377, 1257, 63, 77, 65, 273, 585, 9078, 1199, 15, 77, 31, 1377, 3115, 1557, 63, 77, 65, 273, 1257, 63, 77, 65, 397, 3552, 10350, 14432, 1377, 2662, 18, 3733, 12, 2704, 1387, 12, 1973, 63, 77, 5717, 1769, 1377, 2662, 18, 3733, 12, 2704, 1387, 12, 10350, 1557, 63, 77, 5717, 1769, 1377, 18656, 63, 77, 65, 273, 3639, 394, 8370, 812, 18, 2289, 12, 2556, 16, 1257, 63, 77, 6487, 8072, 18268, 18, 1106, 16, 8529, 18268, 18, 1106, 1769, 565, 289, 565, 8072, 18268, 18, 3908, 4456, 273, 394, 8072, 18268, 18, 3908, 12, 12407, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1056, 31, 277, 27245, 288, 1377, 4456, 18, 4285, 5621, 1377, 8072, 18268, 498, 273, 4456, 18, 588, 653, 5621, 1377, 8072, 18268, 460, 273, 4456, 18, 24805, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 2691, 4709, 12, 11785, 2662, 16, 509, 1056, 16, 509, 5009, 16, 4766, 514, 585, 16, 1250, 4797, 16, 509, 5578, 16, 4766, 509, 312, 1332, 24383, 1078, 13, 565, 1216, 1860, 288, 565, 2018, 18, 74, 558, 2932, 23799, 13773, 6812, 9078, 1390, 598, 13773, 1883, 19, 6812, 9078, 3853, 8863, 565, 8370, 812, 18, 2289, 8526, 18656, 273, 394, 8370, 812, 18, 2289, 63, 6812, 15533, 565, 514, 8526, 1257, 273, 394, 514, 63, 6812, 15533, 565, 514, 8526, 3115, 1557, 273, 394, 514, 63, 6812, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5578, 31, 277, 27245, 288, 1377, 1257, 63, 77, 65, 273, 585, 9078, 1199, 15, 77, 2 ]
public boolean hideView(IViewPart view) {
public boolean hideView(IViewReference ref) {
public boolean hideView(IViewPart view) { // If the view is locked just return. ViewSite site = (ViewSite)view.getSite(); ViewPane pane = (ViewPane)site.getPane(); // Remove the view from the current presentation. if (isFastView(view)) { fastViews.remove(view); pane.setFast(false); //force an update of the toolbar if (activeFastView == view) setActiveFastView(null); pane.getControl().setEnabled(true); } else { presentation.removePart(pane); } // Dispose view if ref count == 0. getViewFactory().releaseView(site.getId()); return true;}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/234570228ea456ece089ff59b2b055ff81273d9b/Perspective.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 6853, 1767, 12, 45, 1767, 1988, 1476, 13, 288, 202, 759, 971, 326, 1476, 353, 8586, 2537, 327, 18, 202, 1767, 4956, 2834, 273, 261, 1767, 4956, 13, 1945, 18, 588, 4956, 5621, 202, 1767, 8485, 13618, 273, 261, 1767, 8485, 13, 4256, 18, 588, 8485, 5621, 202, 202, 759, 3581, 326, 1476, 628, 326, 783, 22525, 18, 202, 430, 261, 291, 12305, 1767, 12, 1945, 3719, 288, 202, 202, 8076, 9959, 18, 4479, 12, 1945, 1769, 202, 202, 29009, 18, 542, 12305, 12, 5743, 1769, 202, 202, 759, 5734, 392, 1089, 434, 326, 12748, 202, 202, 430, 261, 3535, 12305, 1767, 422, 1476, 13, 1082, 202, 542, 3896, 12305, 1767, 12, 2011, 1769, 202, 202, 29009, 18, 588, 3367, 7675, 542, 1526, 12, 3767, 1769, 202, 97, 469, 288, 3196, 202, 10364, 18, 4479, 1988, 12, 29009, 1769, 202, 97, 202, 202, 759, 3035, 4150, 1476, 309, 1278, 1056, 422, 374, 18, 202, 588, 1767, 1733, 7675, 9340, 1767, 12, 4256, 18, 26321, 10663, 202, 2463, 638, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 6853, 1767, 12, 45, 1767, 1988, 1476, 13, 288, 202, 759, 971, 326, 1476, 353, 8586, 2537, 327, 18, 202, 1767, 4956, 2834, 273, 261, 1767, 4956, 13, 1945, 18, 588, 4956, 5621, 202, 1767, 8485, 13618, 273, 261, 1767, 8485, 13, 4256, 18, 588, 8485, 5621, 202, 202, 759, 3581, 326, 1476, 628, 326, 783, 22525, 18, 202, 430, 261, 291, 12305, 1767, 12, 1945, 3719, 288, 202, 202, 8076, 9959, 18, 4479, 12, 1945, 1769, 202, 202, 29009, 18, 542, 12305, 12, 5743, 1769, 202, 202, 759, 5734, 392, 1089, 434, 326, 12748, 202, 202, 430, 261, 3535, 12305, 1767, 422, 1476, 13, 1082, 202, 542, 3896, 12305, 1767, 12, 2011, 1769, 202, 202, 29009, 2 ]
return new CASTCastExpression(); }
return new CASTCastExpression(); }
protected IASTCastExpression createCastExpression() { return new CASTCastExpression(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/bcedb9a5c16dd4d172f27f0519a31f2ee9b1d68d/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 9735, 2300, 752, 9735, 2300, 1435, 288, 202, 202, 2463, 394, 6425, 882, 9735, 2300, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 9735, 2300, 752, 9735, 2300, 1435, 288, 202, 202, 2463, 394, 6425, 882, 9735, 2300, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String path = this.getClass().getClassLoader().
String path = getClass().getClassLoader().
public void start() throws Exception { if(isStarted) return; isStarted = true; super.start(); this.ppm.init(); try { //hq.ear contains sigar_bin/lib with the //native sigar libraries. we set sigar.install.home //here so plugins which use sigar can find it during Sigar.load() String path = this.getClass().getClassLoader(). getResource("sigar_bin").getFile(); this.ppm.setProperty("sigar.install.home", path); } catch (Exception e) { e.printStackTrace(); } //turn off ready filter asap at shutdown //this.stop() won't run until all files are undeploy()ed //which may take several minutes. Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { setReady(false); } }); addCustomPluginDir(); }
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/e8f1a944c2d9d72f8917a879444c29db47b22d63/ProductPluginDeployer.java/clean/src/org/hyperic/hq/product/server/mbean/ProductPluginDeployer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 1216, 1185, 288, 2398, 309, 12, 291, 9217, 13, 327, 31, 3639, 28481, 273, 638, 31, 7734, 2240, 18, 1937, 5621, 3639, 333, 18, 84, 7755, 18, 2738, 5621, 3639, 775, 288, 5411, 368, 76, 85, 18, 2091, 1914, 3553, 297, 67, 4757, 19, 2941, 598, 326, 2398, 368, 13635, 3553, 297, 14732, 18, 225, 732, 444, 3553, 297, 18, 5425, 18, 8712, 2398, 368, 14852, 1427, 4799, 1492, 999, 3553, 297, 848, 1104, 518, 4982, 21911, 297, 18, 945, 1435, 5411, 514, 589, 273, 2900, 7675, 588, 7805, 7675, 7734, 5070, 2932, 7340, 297, 67, 4757, 20387, 29925, 5621, 5411, 333, 18, 84, 7755, 18, 542, 1396, 2932, 7340, 297, 18, 5425, 18, 8712, 3113, 589, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 425, 18, 1188, 6332, 5621, 3639, 289, 3639, 368, 20922, 3397, 5695, 1034, 487, 438, 622, 5731, 3639, 368, 2211, 18, 5681, 1435, 8462, 1404, 1086, 3180, 777, 1390, 854, 640, 12411, 1435, 329, 3639, 368, 12784, 2026, 4862, 11392, 6824, 18, 3639, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 5411, 1071, 918, 1086, 1435, 288, 7734, 444, 8367, 12, 5743, 1769, 5411, 289, 3639, 15549, 7734, 527, 3802, 3773, 1621, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 787, 1435, 1216, 1185, 288, 2398, 309, 12, 291, 9217, 13, 327, 31, 3639, 28481, 273, 638, 31, 7734, 2240, 18, 1937, 5621, 3639, 333, 18, 84, 7755, 18, 2738, 5621, 3639, 775, 288, 5411, 368, 76, 85, 18, 2091, 1914, 3553, 297, 67, 4757, 19, 2941, 598, 326, 2398, 368, 13635, 3553, 297, 14732, 18, 225, 732, 444, 3553, 297, 18, 5425, 18, 8712, 2398, 368, 14852, 1427, 4799, 1492, 999, 3553, 297, 848, 1104, 518, 4982, 21911, 297, 18, 945, 1435, 5411, 514, 589, 273, 2900, 7675, 588, 7805, 7675, 7734, 5070, 2932, 7340, 297, 67, 4757, 20387, 29925, 5621, 5411, 333, 18, 84, 7755, 18, 542, 1396, 2932, 7340, 297, 18, 5425, 18, 2 ]
public HostDialog(Frame frame) { super(frame, "Host New Game...", true); yourNameL = new Label("Your Name:", Label.RIGHT); serverPassL = new Label("Server Password:", Label.RIGHT); portL = new Label("Port:", Label.RIGHT); yourNameF = new TextField(Settings.lastPlayerName, 16); yourNameF.addActionListener(this); serverPassF = new TextField(Settings.lastServerPass, 16); serverPassF.addActionListener(this); portF = new TextField(Settings.lastServerPort + "", 4); portF.addActionListener(this); okayB = new Button("Okay"); okayB.setActionCommand("done"); okayB.addActionListener(this); okayB.setSize(80, 24); cancelB = new Button("Cancel"); cancelB.setActionCommand("cancel"); cancelB.addActionListener(this); cancelB.setSize(80, 24); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.NONE; c.weightx = 0.0; c.weighty = 0.0; c.insets = new Insets(5, 5, 5, 5); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(yourNameL, c); add(yourNameL); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(yourNameF, c); add(yourNameF); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(serverPassL, c); add(serverPassL); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(serverPassF, c); add(serverPassF); c.gridwidth = 1; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(portL, c); add(portL); c.gridwidth = GridBagConstraints.REMAINDER; c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(portF, c); add(portF); c.ipadx = 20; c.ipady = 5; c.gridwidth = 1; c.anchor = GridBagConstraints.CENTER; gridbag.setConstraints(okayB, c); add(okayB); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(cancelB, c); add(cancelB); pack(); setResizable(false); setLocation(frame.getLocation().x + frame.getSize().width/2 - getSize().width/2, frame.getLocation().y + frame.getSize().height/2 - getSize().height/2); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d7aa695a7511ae9edf5983c3cfd1b2959eaf677e/MegaMek.java/buggy/megamek/src/megamek/MegaMek.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4893, 6353, 12, 3219, 2623, 13, 288, 3639, 2240, 12, 3789, 16, 315, 2594, 1166, 14121, 7070, 16, 638, 1769, 7734, 3433, 461, 48, 273, 394, 5287, 2932, 15446, 1770, 2773, 16, 5287, 18, 11847, 1769, 3639, 1438, 6433, 48, 273, 394, 5287, 2932, 2081, 9234, 2773, 16, 5287, 18, 11847, 1769, 3639, 1756, 48, 273, 394, 5287, 2932, 2617, 2773, 16, 5287, 18, 11847, 1769, 7734, 3433, 461, 42, 273, 394, 26866, 12, 2628, 18, 2722, 12148, 461, 16, 2872, 1769, 3639, 3433, 461, 42, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1438, 6433, 42, 273, 394, 26866, 12, 2628, 18, 2722, 2081, 6433, 16, 2872, 1769, 3639, 1438, 6433, 42, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1756, 42, 273, 394, 26866, 12, 2628, 18, 2722, 2081, 2617, 397, 23453, 1059, 1769, 3639, 1756, 42, 18, 1289, 1803, 2223, 12, 2211, 1769, 5411, 21194, 38, 273, 394, 12569, 2932, 8809, 528, 8863, 3639, 21194, 38, 18, 542, 1803, 2189, 2932, 8734, 8863, 3639, 21194, 38, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 21194, 38, 18, 542, 1225, 12, 3672, 16, 4248, 1769, 3639, 3755, 38, 273, 394, 12569, 2932, 6691, 8863, 3639, 3755, 38, 18, 542, 1803, 2189, 2932, 10996, 8863, 3639, 3755, 38, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 3755, 38, 18, 542, 1225, 12, 3672, 16, 4248, 1769, 3639, 7145, 5013, 3744, 3068, 22551, 273, 394, 7145, 5013, 3744, 5621, 3639, 13075, 276, 273, 394, 13075, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4893, 6353, 12, 3219, 2623, 13, 288, 3639, 2240, 12, 3789, 16, 315, 2594, 1166, 14121, 7070, 16, 638, 1769, 7734, 3433, 461, 48, 273, 394, 5287, 2932, 15446, 1770, 2773, 16, 5287, 18, 11847, 1769, 3639, 1438, 6433, 48, 273, 394, 5287, 2932, 2081, 9234, 2773, 16, 5287, 18, 11847, 1769, 3639, 1756, 48, 273, 394, 5287, 2932, 2617, 2773, 16, 5287, 18, 11847, 1769, 7734, 3433, 461, 42, 273, 394, 26866, 12, 2628, 18, 2722, 12148, 461, 16, 2872, 1769, 3639, 3433, 461, 42, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 1438, 6433, 42, 273, 394, 26866, 12, 2628, 18, 2722, 2081, 6433, 16, 2872, 1769, 3639, 1438, 6433, 42, 18, 1289, 1803, 2223, 2 ]
return ">"+ "\n";
return ">" + "\n";
protected String emitStringEndTag() { return ">"+ "\n"; }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/Torture.java/buggy/src/test/torture/Torture.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 3626, 780, 25633, 1435, 288, 202, 202, 2463, 14675, 15, 1548, 82, 14432, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 3626, 780, 25633, 1435, 288, 202, 202, 2463, 14675, 15, 1548, 82, 14432, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (getPresenceOfCarbonil(ac, atomi) == 2) { if(!rs.contains(atomi)) { xlogP += 0.580; } } } List path=null; SimpleGraph moleculeGraph=null; int [][] pairCheck=null;
if (getPresenceOfCarbonil(ac, atomi) == 2) { if(!rs.contains(atomi)) { xlogP += 0.580; } } } List path=null; SimpleGraph moleculeGraph=null; int [][] pairCheck=null;
public DescriptorValue calculate(IAtomContainer ac) throws CDKException { IRingSet rs = (IRingSet) (new AllRingsFinder()).findAllRings(ac); IRingSet atomRingSet=null; if (checkAromaticity) { HueckelAromaticityDetector.detectAromaticity(ac, rs, true); } double xlogP = 0;// SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance()); String symbol = ""; int bondCount = 0; int atomCount = ac.getAtomCount(); int hsCount = 0; double xlogPOld=0; double maxBondOrder = 0; Vector hBondAcceptors=new Vector(); Vector hBondDonors=new Vector(); int checkAminoAcid=1;//if 0 no check, if >1 check IAtom atomi = null; for (int i = 0; i < atomCount; i++) { atomi = (IAtom)ac.getAtom(i); // Problem fused ring systems atomRingSet= rs.getRings(atomi); atomi.setProperty("IS_IN_AROMATIC_RING", new Boolean(false)); atomi.setProperty(CDKConstants.PART_OF_RING_OF_SIZE, new Integer(0)); //System.out.print("atomRingSet.size "+atomRingSet.size()); if (atomRingSet.getAtomContainerCount()>0){ if (atomRingSet.getAtomContainerCount()>1){ ssrf=new SSSRFinder(RingSetManipulator.getAllInOneContainer(atomRingSet)); atomRingSet=ssrf.findEssentialRings(); //System.out.println(" SSSRatomRingSet.size "+atomRingSet.size()); } for (int j=0;j<atomRingSet.getAtomContainerCount();j++){ if (j==0){ atomi.setProperty(CDKConstants.PART_OF_RING_OF_SIZE, new Integer(((IRing)atomRingSet.getAtomContainer(j)).getRingSize())); } if (((IRing)atomRingSet.getAtomContainer(j)).contains(atomi)){ if (((IRing)atomRingSet.getAtomContainer(j)).getRingSize()>=6 && atomi.getFlag(CDKConstants.ISAROMATIC)){ atomi.setProperty("IS_IN_AROMATIC_RING", new Boolean(true)); } if (((IRing)atomRingSet.getAtomContainer(j)).getRingSize()<((Integer)atomi.getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()){ atomi.setProperty(CDKConstants.PART_OF_RING_OF_SIZE, new Integer(((IRing)atomRingSet.getAtomContainer(j)).getRingSize())); } } } }//else{ //System.out.println(); //} } for (int i = 0; i < atomCount; i++) { atomi = (IAtom)ac.getAtom(i); if (xlogPOld==xlogP & i>0 & !symbol.equals("H")){ //System.out.println("\nXlogPAssignmentError: Could not assign atom number:"+(i-1)); } xlogPOld=xlogP; symbol = atomi.getSymbol(); bondCount = ac.getConnectedBondsCount(atomi); hsCount = getHydrogenCount(ac, atomi); maxBondOrder = ac.getMaximumBondOrder(atomi); if (!symbol.equals("H")){ //System.out.print("i:"+i+" Symbol:"+symbol+" "+" bondC:"+bondCount+" Charge:"+atoms[i].getFormalCharge()+" hsC:"+hsCount+" maxBO:"+maxBondOrder+" Arom:"+atoms[i].getFlag(CDKConstants.ISAROMATIC)+" AtomTypeX:"+getAtomTypeXCount(ac, atoms[i])+" PiSys:"+getPiSystemsCount(ac, atoms[i])+" C=:"+getDoubleBondedCarbonsCount(ac, atoms[i])+" AromCc:"+getAromaticCarbonsCount(ac,atoms[i])+" RS:"+((Integer)atoms[i].getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()+"\t"); } if (symbol.equals("C")) { if (bondCount == 2) { // C sp if (hsCount >= 1) { xlogP += 0.209; //System.out.println("XLOGP: 38 0.209"); } else { if (maxBondOrder == 2.0) { xlogP += 2.073; //System.out.println("XLOGP: 40 2.037"); } else if (maxBondOrder == 3.0) { xlogP += 0.33; //System.out.println("XLOGP: 39 0.33"); } } } if (bondCount == 3) { // C sp2 if (((Boolean)atomi.getProperty("IS_IN_AROMATIC_RING")).booleanValue()) { if (getAromaticCarbonsCount(ac, atomi) >= 2 && getAromaticNitrogensCount(ac,atomi)==0) { if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0 ) { xlogP += 0.296; //System.out.println("XLOGP: 34 0.296"); } else { xlogP -= 0.151; //System.out.println("XLOGP: 35 C.ar.x -0.151"); } } else { xlogP += 0.337; //System.out.println("XLOGP: 32 0.337"); } //} else if (getAromaticCarbonsCount(ac, atoms[i]) < 2 && getAromaticNitrogensCount(ac, atoms[i]) > 1) { } else if (getAromaticNitrogensCount(ac, atomi) >= 1) { if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.174; //System.out.println("XLOGP: 36 C.ar.(X) 0.174"); } else { xlogP += 0.366; //System.out.println("XLOGP: 37 0.366"); } } else if (getHydrogenCount(ac, atomi) == 1) { xlogP += 0.126; //System.out.println("XLOGP: 33 0.126"); } } //NOT aromatic, but sp2 } else { if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) <= 1) { xlogP += 0.05; //System.out.println("XLOGP: 26 0.05"); } else { xlogP += 0.013; //System.out.println("XLOGP: 27 0.013"); } } else if (getAtomTypeXCount(ac, atomi) == 1) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.03; //System.out.println("XLOGP: 28 -0.03"); } else { xlogP -= 0.027; //System.out.println("XLOGP: 29 -0.027"); } } else if (getAtomTypeXCount(ac, atomi) == 2) { if (getPiSystemsCount(ac, atomi) ==0) { xlogP += 0.005; //System.out.println("XLOGP: 30 0.005"); } else { xlogP -= 0.315; //System.out.println("XLOGP: 31 -0.315"); } } } if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.466; //System.out.println("XLOGP: 22 0.466"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.136; //System.out.println("XLOGP: 23 0.136"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.001; //System.out.println("XLOGP: 24 0.001"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.31; //System.out.println("XLOGP: 25 -0.31"); } } } if (hsCount == 2) { xlogP += 0.42; //System.out.println("XLOGP: 21 0.42"); } if (getIfCarbonIsHydrophobic(ac, atomi)) { xlogP += 0.211; //System.out.println("XLOGP: Hydrophobic Carbon 0.211"); } }//sp2 NOT aromatic } if (bondCount == 4) { // C sp3 if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.006; //System.out.println("XLOGP: 16 -0.006"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.57; //System.out.println("XLOGP: 17 -0.57"); } if (getPiSystemsCount(ac, atomi) >= 2) { xlogP -= 0.317; //System.out.println("XLOGP: 18 -0.317"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.316; //System.out.println("XLOGP: 19 -0.316"); } else { xlogP -= 0.723; //System.out.println("XLOGP: 20 -0.723"); } } } if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.127; //System.out.println("XLOGP: 10 0.127"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.243; //System.out.println("XLOGP: 11 -0.243"); } if (getPiSystemsCount(ac, atomi) >= 2) { xlogP -= 0.499; //System.out.println("XLOGP: 12 -0.499"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.205; //System.out.println("XLOGP: 13 -0.205"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.305; //System.out.println("XLOGP: 14 -0.305"); } if (getPiSystemsCount(ac, atomi) >= 2) { xlogP -= 0.709; //System.out.println("XLOGP: 15 -0.709"); } } } if (hsCount == 2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.358; //System.out.println("XLOGP: 4 0.358"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.008; //System.out.println("XLOGP: 5 -0.008"); } if (getPiSystemsCount(ac, atomi) == 2) { xlogP -= 0.185; //System.out.println("XLOGP: 6 -0.185"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.137; //System.out.println("XLOGP: 7 -0.137"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.303; //System.out.println("XLOGP: 8 -0.303"); } if (getPiSystemsCount(ac, atomi) == 2) { xlogP -= 0.815; //System.out.println("XLOGP: 9 -0.815"); } } } if (hsCount > 2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.528; //System.out.println("XLOGP: 1 0.528"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.267; //System.out.println("XLOGP: 2 0.267"); } }else{ //if (getNitrogenOrOxygenCount(ac, atomi) == 1) { xlogP -= 0.032; //System.out.println("XLOGP: 3 -0.032"); } } if (getIfCarbonIsHydrophobic(ac, atomi)) { xlogP += 0.211; //System.out.println("XLOGP: Hydrophobic Carbon 0.211"); } }//csp3 }//C if (symbol.equals("N")) { //NO2 if (ac.getBondOrderSum(atomi) >= 3.0 && getOxygenCount(ac, atomi) >= 2 && maxBondOrder==2) { xlogP += 1.178; //System.out.println("XLOGP: 66 1.178"); } else { if (getPresenceOfCarbonil(ac, atomi)>=1) { // amidic nitrogen if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.078; //System.out.println("XLOGP: 57 0.078"); } if (getAtomTypeXCount(ac, atomi) == 1) { xlogP -= 0.118; //System.out.println("XLOGP: 58 -0.118"); } } if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP -= 0.096; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 55 -0.096"); } else { xlogP -= 0.044; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 56 -0.044"); } } if (hsCount == 2) { xlogP -= 0.646; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 54 -0.646"); } } else {//NO amidic nitrogen if (bondCount == 1) { // -C#N if (getCarbonsCount(ac, atomi) == 1) { xlogP -= 0.566; //System.out.println("XLOGP: 68 -0.566"); } }else if (bondCount == 2) { // N sp2 if (((Boolean)atomi.getProperty("IS_IN_AROMATIC_RING")).booleanValue()) { xlogP -= 0.493; //System.out.println("XLOGP: 67 -0.493"); if (checkAminoAcid!=0){ checkAminoAcid+=1;} } else { if (getDoubleBondedCarbonsCount(ac, atomi) == 0) { if (getDoubleBondedNitrogenCount(ac, atomi) == 0) { if (getDoubleBondedOxygenCount(ac, atomi) == 1) { xlogP += 0.427; //System.out.println("XLOGP: 65 0.427"); } } if (getDoubleBondedNitrogenCount(ac, atomi) == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.536; //System.out.println("XLOGP: 63 0.536"); } if (getAtomTypeXCount(ac, atomi) == 1) { xlogP -= 0.597; //System.out.println("XLOGP: 64 -0.597"); } } }else if (getDoubleBondedCarbonsCount(ac, atomi) == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.007; //System.out.println("XLOGP: 59 0.007"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.275; //System.out.println("XLOGP: 60 -0.275"); } }else if (getAtomTypeXCount(ac, atomi) == 1) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.366; //System.out.println("XLOGP: 61 0.366"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.251; //System.out.println("XLOGP: 62 0.251"); } } } } }else if (bondCount == 3) { // N sp3 if (hsCount == 0) { //if (rs.contains(atomi)&&ringSize>3) { if (atomi.getFlag(CDKConstants.ISAROMATIC)|| (rs.contains(atomi)&& ((Integer)atomi.getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()>3 && getPiSystemsCount(ac,atomi)>=1)){ if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.881; //System.out.println("XLOGP: 51 0.881"); } else { xlogP -= 0.01; //System.out.println("XLOGP: 53 -0.01"); } } else { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.159; //System.out.println("XLOGP: 49 0.159"); } if (getPiSystemsCount(ac, atomi) > 0) { xlogP += 0.761; //System.out.println("XLOGP: 50 0.761"); } } else { xlogP -= 0.239; //System.out.println("XLOGP: 52 -0.239"); } } }else if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) {// like pyrrole if (atomi.getFlag(CDKConstants.ISAROMATIC)|| (rs.contains(atomi)&& ((Integer)atomi.getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()>3 && getPiSystemsCount(ac,atomi)>=2)) { xlogP += 0.545; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 46 0.545"); } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.112; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 44 -0.112"); } if (getPiSystemsCount(ac, atomi) > 0) { xlogP += 0.166; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 45 0.166"); } } } else { if (rs.contains(atomi)) { xlogP += 0.153; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 48 0.153"); } else { xlogP += 0.324; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 47 0.324"); } } }else if (hsCount == 2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.534; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 41 -0.534"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.329; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 42 -0.329"); } if (checkAminoAcid!=0){ checkAminoAcid+=1;} } else { xlogP -= 1.082; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 43 -1.082"); } } } } } } if (symbol.equals("O")) { if (bondCount == 1 && maxBondOrder==2.0) { xlogP -= 0.399; if (!getPresenceOfHydroxy(ac,atomi)){ hBondAcceptors.add(new Integer(i)); } //System.out.println("XLOGP: 75 A=O -0.399"); }else if(bondCount == 1 && hsCount==0 && (getPresenceOfNitro(ac,atomi) || getPresenceOfCarbonil(ac,atomi)==1) || getPresenceOfSulfat(ac,atomi)){ xlogP -= 0.399; if (!getPresenceOfHydroxy(ac,atomi)){ hBondAcceptors.add(new Integer(i)); } //System.out.println("XLOGP: 75 A=O -0.399"); }else if (bondCount >= 1) { if (hsCount == 0 && bondCount==2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.084; //System.out.println("XLOGP: 72 R-O-R 0.084"); } if (getPiSystemsCount(ac, atomi) > 0) { xlogP += 0.435; //System.out.println("XLOGP: 73 R-O-R.1 0.435"); } }else if (getAtomTypeXCount(ac, atomi) == 1) { xlogP += 0.105; //System.out.println("XLOGP: 74 R-O-X 0.105"); } }else{ if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.467; hBondDonors.add(new Integer(i)); hBondAcceptors.add(new Integer(i)); //System.out.println("XLOGP: 69 R-OH -0.467"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.082; hBondDonors.add(new Integer(i)); hBondAcceptors.add(new Integer(i)); //System.out.println("XLOGP: 70 R-OH.1 0.082"); } }else if (getAtomTypeXCount(ac, atomi) == 1) { xlogP -= 0.522; hBondDonors.add(new Integer(i)); hBondAcceptors.add(new Integer(i)); //System.out.println("XLOGP: 71 X-OH -0.522"); } } } } if (symbol.equals("S")) { if ((bondCount == 1 && maxBondOrder==2) || (bondCount == 1 && atomi.getFormalCharge()==-1)) { xlogP -= 0.148; //System.out.println("XLOGP: 78 A=S -0.148"); }else if (bondCount == 2) { if (hsCount == 0) { xlogP += 0.255; //System.out.println("XLOGP: 77 A-S-A 0.255"); } else { xlogP += 0.419; //System.out.println("XLOGP: 76 A-SH 0.419"); } }else if (bondCount == 3) { if (getOxygenCount(ac, atomi) >= 1) { xlogP -= 1.375; //System.out.println("XLOGP: 79 A-SO-A -1.375"); } }else if (bondCount == 4) { if (getDoubleBondedOxygenCount(ac, atomi) >= 2) { xlogP -= 0.168; //System.out.println("XLOGP: 80 A-SO2-A -0.168"); } } } if (symbol.equals("P")) { if (getDoubleBondedSulfurCount(ac, atomi) >= 1 && bondCount>=4) { xlogP += 1.253; //System.out.println("XLOGP: 82 S=PA3 1.253"); }else if (getOxygenCount(ac,atomi)>=1 || getDoubleBondedOxygenCount(ac, atomi) == 1 && bondCount>=4) { xlogP -= 0.447; //System.out.println("XLOGP: 81 O=PA3 -0.447"); } } if (symbol.equals("F")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.375; //System.out.println("XLOGP: 83 F.0 0.512"); }else if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.202; //System.out.println("XLOGP: 84 F.1 0.202"); } } if (symbol.equals("Cl")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.512; //System.out.println("XLOGP: 85 Cl.0 0.512"); }else if (getPiSystemsCount(ac, atomi) >= 1) { xlogP += 0.663; //System.out.println("XLOGP: 86 Cl.1 0.663"); } } if (symbol.equals("Br")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.85; //System.out.println("XLOGP: 87 Br.0 0.85"); }else if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.839; //System.out.println("XLOGP: 88 Br.1 0.839"); } } if (symbol.equals("I")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 1.05; //System.out.println("XLOGP: 89 I.0 1.05"); }else if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 1.109; //System.out.println("XLOGP: 90 I.1 1.109"); } }// Halogen pair 1-3 int halcount=getHalogenCount(ac, atomi); if ( halcount== 2) { xlogP += 0.137; //System.out.println("XLOGP: Halogen 1-3 pair 0.137"); }else if (halcount==3){ xlogP += (3*0.137); //System.out.println("XLOGP: Halogen 1-3 pair 0.411"); }else if (halcount==4){ xlogP += (6*0.137); //System.out.println("XLOGP: Halogen 1-3 pair 1.902"); }// sp2 Oxygen 1-5 pair if (getPresenceOfCarbonil(ac, atomi) == 2) {// sp2 oxygen 1-5 pair if(!rs.contains(atomi)) { xlogP += 0.580; //System.out.println("XLOGP: sp2 Oxygen 1-5 pair 0.580"); } } } //System.out.println("XLOGP: Before Correction:"+xlogP); List path=null; SimpleGraph moleculeGraph=null; int [][] pairCheck=null;// //System.out.println("Acceptors:"+hBondAcceptors.size()+" Donors:"+hBondDonors.size()); if (hBondAcceptors.size()>0 && hBondDonors.size()>0){ moleculeGraph=MoleculeGraphs.getMoleculeGraph(ac); pairCheck=initializeHydrogenPairCheck(new int[atomCount][atomCount]); } for (int i=0; i<hBondAcceptors.size();i++){ for (int j=0; j<hBondDonors.size();j++){ if (checkRingLink(rs,ac,ac.getAtom(((Integer)hBondAcceptors.get(i)).intValue())) || checkRingLink(rs,ac,ac.getAtom(((Integer)hBondDonors.get(j)).intValue()))){ path=BFSShortestPath.findPathBetween(moleculeGraph,ac.getAtom(((Integer)hBondAcceptors.get(i)).intValue()), ac.getAtom(((Integer)hBondDonors.get(j)).intValue()));// //System.out.println(" Acc:"+checkRingLink(rs,ac,atoms[((Integer)hBondAcceptors.get(i)).intValue()])// +" S:"+atoms[((Integer)hBondAcceptors.get(i)).intValue()].getSymbol()// +" Nr:"+((Integer)hBondAcceptors.get(i)).intValue()// +" Don:"+checkRingLink(rs,ac,atoms[((Integer)hBondDonors.get(j)).intValue()])// +" S:"+atoms[((Integer)hBondDonors.get(j)).intValue()].getSymbol()// +" Nr:"+((Integer)hBondDonors.get(j)).intValue()// +" i:"+i+" j:"+j+" path:"+path.size()); if (checkRingLink(rs,ac,ac.getAtom(((Integer)hBondAcceptors.get(i)).intValue())) && checkRingLink(rs,ac,ac.getAtom(((Integer)hBondDonors.get(j)).intValue()))){ if (path.size()==3 && pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]==0){ xlogP += 0.429; pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]=1; pairCheck[((Integer)hBondDonors.get(j)).intValue()][((Integer)hBondAcceptors.get(i)).intValue()]=1; //System.out.println("XLOGP: Internal HBonds 1-4 0.429"); } }else{ if (path.size()==4 && pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]==0){ xlogP += 0.429; pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]=1; pairCheck[((Integer)hBondDonors.get(j)).intValue()][((Integer)hBondAcceptors.get(i)).intValue()]=1; //System.out.println("XLOGP: Internal HBonds 1-5 0.429"); } } } } } if (checkAminoAcid>1){// alpha amino acid QueryAtomContainer aminoAcid = QueryAtomContainerCreator.createBasicQueryContainer( createAminoAcid(ac.getBuilder()) ); IBond [] bonds=aminoAcid.getBonds(); IAtom bondAtom0=null; IAtom bondAtom1=null; for (int i=0;i<bonds.length;i++){ bondAtom0=bonds[i].getAtom(0); bondAtom1=bonds[i].getAtom(1); if ((bondAtom0.getSymbol().equals("C") && bondAtom1.getSymbol().equals("N")) || (bondAtom0.getSymbol().equals("N") && bondAtom1.getSymbol().equals("C"))&& bonds[i].getOrder()==1){ aminoAcid.removeBond(bondAtom0,bondAtom1); aminoAcid.addBond(new AnyOrderQueryBond((IQueryAtom)bondAtom0,(IQueryAtom)bondAtom1,1)); break; } } //AtomContainer aminoacid = sp.parseSmiles("NCC(=O)O"); if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, aminoAcid)) { List list = UniversalIsomorphismTester.getSubgraphAtomsMap((org.openscience.cdk.AtomContainer)ac, aminoAcid); RMap map = null; IAtom atom1=null; for (int j = 0; j < list.size(); j++){ map = (RMap) list.get(j); atom1 = ac.getAtom(map.getId1()); if (atom1.getSymbol().equals("O")&& ac.getMaximumBondOrder(atom1)==1){ if (ac.getConnectedBondsCount(atom1)==2 && getHydrogenCount(ac, atom1)==0){ }else{ xlogP -= 2.166; //System.out.println("XLOGP: alpha amino acid -2.166"); break; } } } } } IAtomContainer paba = createPaba(ac.getBuilder()); // p-amino sulphonic acid if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, paba)) { xlogP -= 0.501; //System.out.println("XLOGP: p-amino sulphonic acid -0.501"); } // salicylic acid if (salicylFlag){ IAtomContainer salicilic = createSalicylicAcid(ac.getBuilder()); if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, salicilic)) { xlogP += 0.554; //System.out.println("XLOGP: salicylic acid 0.554"); } } // ortho oxygen pair //AtomContainer orthopair = sp.parseSmiles("OCCO"); QueryAtomContainer orthopair=new QueryAtomContainer(); AromaticAtom atom1=new AromaticAtom(); atom1.setSymbol("C"); AromaticAtom atom2=new AromaticAtom(); atom2.setSymbol("C"); SymbolQueryAtom atom3=new SymbolQueryAtom(); atom3.setSymbol("O"); SymbolQueryAtom atom4=new SymbolQueryAtom(); atom4.setSymbol("O"); orthopair.addBond(new AromaticQueryBond(atom1,atom2,1.5)); orthopair.addBond(new OrderQueryBond(atom1,atom3,1)); orthopair.addBond(new OrderQueryBond(atom2,atom4,1)); if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, orthopair)) { xlogP -= 0.268; //System.out.println("XLOGP: Ortho oxygen pair -0.268"); } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(xlogP), new String[] {"XLogP"}); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12823, 620, 4604, 12, 45, 3641, 2170, 1721, 13, 1216, 24570, 288, 202, 202, 7937, 310, 694, 3597, 273, 261, 7937, 310, 694, 13, 261, 2704, 4826, 54, 899, 8441, 1435, 2934, 4720, 1595, 54, 899, 12, 1077, 1769, 202, 202, 7937, 310, 694, 3179, 10369, 694, 33, 2011, 31, 202, 202, 430, 261, 1893, 37, 27468, 560, 13, 288, 1082, 202, 44, 344, 363, 292, 37, 27468, 560, 12594, 18, 16518, 37, 27468, 560, 12, 1077, 16, 3597, 16, 638, 1769, 202, 202, 97, 202, 202, 9056, 619, 1330, 52, 273, 374, 31, 759, 202, 202, 9552, 1449, 2678, 1694, 273, 394, 9425, 1449, 2678, 12, 1868, 20200, 921, 1263, 18, 588, 1442, 10663, 202, 202, 780, 3273, 273, 1408, 31, 202, 202, 474, 8427, 1380, 273, 374, 31, 202, 202, 474, 3179, 1380, 273, 1721, 18, 588, 3641, 1380, 5621, 202, 202, 474, 12670, 1380, 273, 374, 31, 202, 202, 9056, 619, 1330, 2419, 1236, 33, 20, 31, 202, 202, 9056, 943, 9807, 2448, 273, 374, 31, 202, 202, 5018, 366, 9807, 5933, 1383, 33, 2704, 5589, 5621, 202, 202, 5018, 366, 9807, 22293, 1383, 33, 2704, 5589, 5621, 202, 202, 474, 866, 37, 19544, 9988, 350, 33, 21, 31, 759, 430, 374, 1158, 866, 16, 309, 405, 21, 866, 202, 202, 45, 3641, 3179, 77, 273, 446, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3179, 1380, 31, 277, 27245, 288, 1082, 202, 7466, 77, 273, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12823, 620, 4604, 12, 45, 3641, 2170, 1721, 13, 1216, 24570, 288, 202, 202, 7937, 310, 694, 3597, 273, 261, 7937, 310, 694, 13, 261, 2704, 4826, 54, 899, 8441, 1435, 2934, 4720, 1595, 54, 899, 12, 1077, 1769, 202, 202, 7937, 310, 694, 3179, 10369, 694, 33, 2011, 31, 202, 202, 430, 261, 1893, 37, 27468, 560, 13, 288, 1082, 202, 44, 344, 363, 292, 37, 27468, 560, 12594, 18, 16518, 37, 27468, 560, 12, 1077, 16, 3597, 16, 638, 1769, 202, 202, 97, 202, 202, 9056, 619, 1330, 52, 273, 374, 31, 759, 202, 202, 9552, 1449, 2678, 1694, 273, 394, 9425, 1449, 2678, 12, 1868, 20200, 921, 1263, 18, 588, 1442, 10663, 202, 2 ]
description.setAutoBuilding(newAutoBuildSetting);
boolean newAutoBuildSetting = autoBuildButton.getSelection();
public boolean performOk() { IPreferenceStore store = getPreferenceStore(); // inform the workbench of whether it should do autobuilds or not boolean newAutoBuildSetting = autoBuildButton.getSelection(); IWorkspaceDescription description = ResourcesPlugin.getWorkspace().getDescription(); boolean oldAutoBuildSetting = description.isAutoBuilding(); description.setAutoBuilding(newAutoBuildSetting); // store the auto build in the preference store so that we can enable import and export store.setValue(IPreferenceConstants.AUTO_BUILD, newAutoBuildSetting); try { ResourcesPlugin.getWorkspace().setDescription(description); } catch (CoreException e) { WorkbenchPlugin.log("Error changing autobuild pref", e.getStatus()); } if (oldAutoBuildSetting != newAutoBuildSetting) { // fire off a property change notification so interested // parties can know about the auto build setting change // since it is not kept in the preference store. store.firePropertyChangeEvent(IPreferenceConstants.AUTO_BUILD, new Boolean(oldAutoBuildSetting), new Boolean(newAutoBuildSetting)); // If auto build is turned on, then do a global incremental // build on all the projects. if (newAutoBuildSetting) { GlobalBuildAction action = new GlobalBuildAction(this.workbench, getShell(), IncrementalProjectBuilder.INCREMENTAL_BUILD); action.doBuild(); } } // store the save all prior to build setting store.setValue(IPreferenceConstants.SAVE_ALL_BEFORE_BUILD, autoSaveAllButton.getSelection()); // store the link navigator to editor setting store.setValue(IWorkbenchPreferenceConstants.LINK_NAVIGATOR_TO_EDITOR, linkButton.getSelection()); // store the link navigator to editor setting store.setValue(IPreferenceConstants.REFRESH_WORKSPACE_ON_STARTUP, refreshButton.getSelection()); long oldSaveInterval = description.getSnapshotInterval() / 60000; long newSaveInterval = new Long(saveInterval.getStringValue()).longValue(); if(oldSaveInterval != newSaveInterval) { try { description.setSnapshotInterval(newSaveInterval * 60000); ResourcesPlugin.getWorkspace().setDescription(description); store.firePropertyChangeEvent(IPreferenceConstants.SAVE_INTERVAL, new Integer((int)oldSaveInterval), new Integer((int)newSaveInterval)); } catch (CoreException e) { WorkbenchPlugin.log("Error changing save interval preference", e.getStatus()); } } store.setValue(IPreferenceConstants.OPEN_ON_SINGLE_CLICK,openOnSingleClick); //$NON-NLS-1$ store.setValue(IPreferenceConstants.SELECT_ON_HOVER,selectOnHover); //$NON-NLS-1$ store.setValue(IPreferenceConstants.OPEN_AFTER_DELAY,openAfterDelay); //$NON-NLS-1$ int singleClickMethod = openOnSingleClick ? OpenStrategy.SINGLE_CLICK : OpenStrategy.DOUBLE_CLICK; if(openOnSingleClick) { if(selectOnHover) singleClickMethod |= OpenStrategy.SELECT_ON_HOVER; if(openAfterDelay) singleClickMethod |= OpenStrategy.ARROW_KEYS_OPEN; } OpenStrategy.setOpenMethod(singleClickMethod); WorkbenchPlugin.getDefault().savePluginPreferences(); return true; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3c58f51e28e4400199d67ae1da6159b04b8cb90f/WorkbenchPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 1435, 288, 202, 202, 45, 9624, 2257, 1707, 273, 336, 9624, 2257, 5621, 202, 202, 759, 13235, 326, 1440, 22144, 434, 2856, 518, 1410, 741, 2059, 947, 680, 87, 578, 486, 202, 202, 6494, 394, 4965, 3116, 5568, 273, 3656, 3116, 3616, 18, 588, 6233, 5621, 202, 202, 45, 8241, 3291, 2477, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 3291, 5621, 202, 202, 6494, 1592, 4965, 3116, 5568, 273, 2477, 18, 291, 4965, 16713, 5621, 202, 202, 3384, 18, 542, 4965, 16713, 12, 2704, 4965, 3116, 5568, 1769, 9506, 202, 759, 1707, 326, 3656, 1361, 316, 326, 11555, 1707, 1427, 716, 732, 848, 4237, 1930, 471, 3359, 202, 202, 2233, 18, 542, 620, 12, 45, 9624, 2918, 18, 18909, 67, 20215, 16, 394, 4965, 3116, 5568, 1769, 202, 202, 698, 288, 1082, 202, 3805, 3773, 18, 588, 8241, 7675, 542, 3291, 12, 3384, 1769, 202, 202, 97, 1044, 261, 25341, 425, 13, 288, 1082, 202, 2421, 22144, 3773, 18, 1330, 2932, 668, 12770, 2059, 947, 680, 11307, 3113, 425, 18, 588, 1482, 10663, 202, 202, 97, 202, 202, 430, 261, 1673, 4965, 3116, 5568, 480, 394, 4965, 3116, 5568, 13, 288, 1082, 202, 759, 4452, 3397, 279, 1272, 2549, 3851, 1427, 20506, 1082, 202, 759, 1087, 606, 848, 5055, 2973, 326, 3656, 1361, 3637, 2549, 1082, 202, 759, 3241, 518, 353, 486, 16555, 316, 326, 11555, 1707, 18, 1082, 202, 2233, 18, 12179, 1396, 20930, 12, 45, 9624, 2918, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 8809, 1435, 288, 202, 202, 45, 9624, 2257, 1707, 273, 336, 9624, 2257, 5621, 202, 202, 759, 13235, 326, 1440, 22144, 434, 2856, 518, 1410, 741, 2059, 947, 680, 87, 578, 486, 202, 202, 6494, 394, 4965, 3116, 5568, 273, 3656, 3116, 3616, 18, 588, 6233, 5621, 202, 202, 45, 8241, 3291, 2477, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 3291, 5621, 202, 202, 6494, 1592, 4965, 3116, 5568, 273, 2477, 18, 291, 4965, 16713, 5621, 202, 202, 3384, 18, 542, 4965, 16713, 12, 2704, 4965, 3116, 5568, 1769, 9506, 202, 759, 1707, 326, 3656, 1361, 316, 326, 11555, 1707, 1427, 716, 732, 848, 4237, 1930, 471, 3359, 202, 202, 2233, 18, 542, 2 ]
return; } else {
private void populateMessageSymbol(QName reference) { if (messageMap.containsKey(reference)) { //just return. The message is already there return; } else { //create a part with name part 1 and element ref to the QName value //these references need to be prefixed according to the correct target namespaces //of the schemas WSDL11MessagePart part = new WSDL11MessagePart(); part.setName("part1"); part.setElementName(reference.getLocalPart()); //todo prefix needs to be here!!!! part.setPrefix(reference.getPrefix()); WSDL11Message message = new WSDL11Message(); message.setMessageName(reference.getLocalPart() + MESSAGE_NAME_SUFFIX); message.setParts(new WSDL11MessagePart[]{part}); //fill this in the message symbol map messageMap.put(reference, message); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6517f5a774e3f262219cb76624d0c7dc1d7e6ef1/WOMtoWSDL11Writer.java/clean/modules/wsdl/src/org/apache/axis2/wsdl/writer/WOMtoWSDL11Writer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 1079, 5335, 12, 13688, 2114, 13, 288, 3639, 309, 261, 2150, 863, 18, 12298, 653, 12, 6180, 3719, 288, 5411, 368, 3732, 327, 18, 1021, 883, 353, 1818, 1915, 5411, 327, 31, 3639, 289, 469, 288, 5411, 368, 2640, 279, 1087, 598, 508, 1087, 404, 471, 930, 1278, 358, 326, 16723, 460, 5411, 368, 451, 3392, 5351, 1608, 358, 506, 12829, 4888, 358, 326, 3434, 1018, 7728, 5411, 368, 792, 326, 12783, 5411, 30567, 2499, 1079, 1988, 1087, 273, 394, 30567, 2499, 1079, 1988, 5621, 5411, 1087, 18, 542, 461, 2932, 2680, 21, 8863, 5411, 1087, 18, 542, 30584, 12, 6180, 18, 588, 2042, 1988, 10663, 225, 368, 9012, 1633, 4260, 358, 506, 2674, 23045, 5411, 1087, 18, 542, 2244, 12, 6180, 18, 588, 2244, 10663, 5411, 30567, 2499, 1079, 883, 273, 394, 30567, 2499, 1079, 5621, 5411, 883, 18, 542, 1079, 461, 12, 6180, 18, 588, 2042, 1988, 1435, 397, 9841, 67, 1985, 67, 14964, 1769, 5411, 883, 18, 542, 4305, 12, 2704, 30567, 2499, 1079, 1988, 63, 7073, 2680, 22938, 5411, 368, 5935, 333, 316, 326, 883, 3273, 852, 5411, 883, 863, 18, 458, 12, 6180, 16, 883, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 1079, 5335, 12, 13688, 2114, 13, 288, 3639, 309, 261, 2150, 863, 18, 12298, 653, 12, 6180, 3719, 288, 5411, 368, 3732, 327, 18, 1021, 883, 353, 1818, 1915, 5411, 327, 31, 3639, 289, 469, 288, 5411, 368, 2640, 279, 1087, 598, 508, 1087, 404, 471, 930, 1278, 358, 326, 16723, 460, 5411, 368, 451, 3392, 5351, 1608, 358, 506, 12829, 4888, 358, 326, 3434, 1018, 7728, 5411, 368, 792, 326, 12783, 5411, 30567, 2499, 1079, 1988, 1087, 273, 394, 30567, 2499, 1079, 1988, 5621, 5411, 1087, 18, 542, 461, 2932, 2680, 21, 8863, 5411, 1087, 18, 542, 30584, 12, 6180, 18, 588, 2042, 1988, 10663, 225, 368, 9012, 1633, 4260, 358, 506, 2674, 23045, 2 ]
public void execute() throws java.io.IOException, InterruptedException { // Configure the analysis context analysisContext = new AnalysisContext(bugReporter); analysisContext.setSourcePath(project.getSourceDirList()); // Give the BugReporter a reference to this object, // in case it wants to access information such // as the AnalysisContext bugReporter.setEngine(this); // Create detectors createDetectors(); // Clear the repository of classes clearRepository(); // Get list of files to analyze. // Note that despite the name getJarFileArray(), // they can also be zip files, directories, // and single class files. LinkedList<ArchiveWorkListItem> archiveWorkList = new LinkedList<ArchiveWorkListItem>(); //archiveWorkList.addAll(project.getJarFileList()); for (Iterator<String> i = project.getJarFileList().iterator(); i.hasNext(); ) { String fileName = i.next(); archiveWorkList.add(new ArchiveWorkListItem(fileName, true)); } // Report how many archives/directories/files will be analyzed, // for progress dialog in GUI progressCallback.reportNumberOfArchives(archiveWorkList.size()); // Keep track of the names of all classes to be analyzed List<String> repositoryClassList = new LinkedList<String>(); // Add all classes in analyzed archives/directories/files while (!archiveWorkList.isEmpty()) { ArchiveWorkListItem item = archiveWorkList.removeFirst(); addFileToRepository(item, archiveWorkList, repositoryClassList); } // Callback for progress dialog: analysis is starting progressCallback.startAnalysis(repositoryClassList.size()); // Examine all classes for bugs. // Don't examine the same class more than once. // (The user might specify two jar files that contain // the same class.) Set<String> examinedClassSet = new HashSet<String>(); for (Iterator<String> i = repositoryClassList.iterator(); i.hasNext();) { String className = i.next(); if (examinedClassSet.add(className)) examineClass(className); } // Callback for progress dialog: analysis finished progressCallback.finishPerClassAnalysis(); // Force any detectors which defer work until all classes have // been seen to do that work. this.reportFinal(); // Flush any queued bug reports bugReporter.finish(); // Flush any queued error reports bugReporter.reportQueuedErrors(); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/15b3fbd22ffdbdca8e5a273efdda895c4a8f2270/FindBugs.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 90, 11359, 561, 557, 624, 1435, 15069, 6290, 18, 1594, 18, 14106, 16, 24485, 503, 95, 202, 202, 759, 11207, 5787, 12746, 2472, 202, 202, 12746, 1042, 33, 2704, 9418, 1042, 12, 925, 13289, 1769, 202, 202, 12746, 1042, 18, 542, 1830, 743, 12, 4406, 18, 588, 1830, 1621, 682, 10663, 202, 202, 759, 43, 427, 546, 73, 19865, 13289, 834, 586, 1331, 278, 10370, 291, 1612, 16, 202, 202, 759, 267, 3593, 305, 17369, 30168, 3860, 267, 687, 1012, 2648, 202, 202, 759, 689, 580, 9418, 1042, 202, 202, 925, 13289, 18, 542, 4410, 12, 2211, 1769, 202, 202, 759, 6119, 278, 18886, 202, 202, 2640, 12594, 87, 5621, 202, 202, 759, 9094, 18664, 1855, 792, 4701, 202, 202, 8507, 3305, 5621, 202, 202, 759, 967, 1098, 3674, 14849, 83, 304, 9508, 18, 202, 202, 759, 1248, 546, 270, 5489, 84, 305, 546, 1069, 588, 10813, 812, 1076, 9334, 202, 202, 759, 451, 402, 4169, 1031, 947, 73, 4450, 2354, 16, 15121, 16, 202, 202, 759, 5708, 1714, 1106, 2354, 18, 202, 202, 13174, 682, 32, 7465, 2421, 13575, 34, 10686, 2421, 682, 33, 2704, 13174, 682, 32, 7465, 2421, 13575, 34, 5621, 202, 202, 759, 10686, 2421, 682, 18, 1289, 1595, 12, 4406, 18, 588, 10813, 26098, 10663, 202, 202, 1884, 12, 3198, 32, 780, 34, 77, 33, 4406, 18, 588, 10813, 26098, 7675, 9838, 5621, 77, 18, 5332, 2134, 5621, 15329, 1082, 202, 780, 17812, 33, 77, 18, 4285, 5621, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 90, 11359, 561, 557, 624, 1435, 15069, 6290, 18, 1594, 18, 14106, 16, 24485, 503, 95, 202, 202, 759, 11207, 5787, 12746, 2472, 202, 202, 12746, 1042, 33, 2704, 9418, 1042, 12, 925, 13289, 1769, 202, 202, 12746, 1042, 18, 542, 1830, 743, 12, 4406, 18, 588, 1830, 1621, 682, 10663, 202, 202, 759, 43, 427, 546, 73, 19865, 13289, 834, 586, 1331, 278, 10370, 291, 1612, 16, 202, 202, 759, 267, 3593, 305, 17369, 30168, 3860, 267, 687, 1012, 2648, 202, 202, 759, 689, 580, 9418, 1042, 202, 202, 925, 13289, 18, 542, 4410, 12, 2211, 1769, 202, 202, 759, 6119, 278, 18886, 202, 202, 2640, 12594, 87, 5621, 202, 202, 759, 9094, 18664, 1855, 2 ]
public InitFuser(List filterInfo, JMethodDeclaration initWork, SIRFilter fusedFilter) {
public InitFuser(List filterInfo) {
public InitFuser(List filterInfo, JMethodDeclaration initWork, SIRFilter fusedFilter) { this.filterInfo = filterInfo; this.initWork = initWork; this.fusedFilter = fusedFilter; this.fusedBlock = new JBlock(null, new JStatement[0], null); this.fusedParam = new LinkedList(); this.fusedArgs = new LinkedList(); this.numFused = 0; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/e7ce313fbaa57db3f2da1bbc2029cd317342e589/FusePipe.java/clean/streams/src/at/dms/kjc/sir/lowering/fusion/FusePipe.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4378, 42, 1355, 12, 682, 1034, 966, 16, 1875, 377, 804, 1305, 6094, 1208, 2421, 16, 1082, 377, 5705, 54, 1586, 284, 3668, 1586, 13, 288, 202, 2211, 18, 2188, 966, 273, 1034, 966, 31, 202, 2211, 18, 2738, 2421, 273, 1208, 2421, 31, 202, 2211, 18, 74, 3668, 1586, 273, 284, 3668, 1586, 31, 202, 2211, 18, 74, 3668, 1768, 273, 394, 804, 1768, 12, 2011, 16, 394, 804, 3406, 63, 20, 6487, 446, 1769, 202, 2211, 18, 74, 3668, 786, 273, 394, 10688, 5621, 202, 2211, 18, 74, 3668, 2615, 273, 394, 10688, 5621, 202, 2211, 18, 2107, 42, 3668, 273, 374, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4378, 42, 1355, 12, 682, 1034, 966, 16, 1875, 377, 804, 1305, 6094, 1208, 2421, 16, 1082, 377, 5705, 54, 1586, 284, 3668, 1586, 13, 288, 202, 2211, 18, 2188, 966, 273, 1034, 966, 31, 202, 2211, 18, 2738, 2421, 273, 1208, 2421, 31, 202, 2211, 18, 74, 3668, 1586, 273, 284, 3668, 1586, 31, 202, 2211, 18, 74, 3668, 1768, 273, 394, 804, 1768, 12, 2011, 16, 394, 804, 3406, 63, 20, 6487, 446, 1769, 202, 2211, 18, 74, 3668, 786, 273, 394, 10688, 5621, 202, 2211, 18, 74, 3668, 2615, 273, 394, 10688, 5621, 202, 2211, 18, 2107, 42, 3668, 273, 374, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public FontDefinitionComposite(Composite parent, int style, FontDefinition fdSelected, ColorDefinition cdSelected) { super(parent, style); this.fdCurrent = fdSelected; this.cdCurrent = cdSelected; init(); placeComponents(); }
public FontDefinitionComposite( Composite parent, int style, FontDefinition fdSelected, ColorDefinition cdSelected ) { super( parent, style ); this.fdCurrent = fdSelected; this.cdCurrent = cdSelected; init( ); placeComponents( ); }
public FontDefinitionComposite(Composite parent, int style, FontDefinition fdSelected, ColorDefinition cdSelected) { super(parent, style); this.fdCurrent = fdSelected; this.cdCurrent = cdSelected; init(); placeComponents(); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6618c22738cb830a4ebf9a96efc9f66a82fd43a3/FontDefinitionComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10063, 1852, 9400, 12, 9400, 982, 16, 509, 2154, 16, 10063, 1852, 5194, 7416, 16, 5563, 1852, 7976, 7416, 13, 565, 288, 3639, 2240, 12, 2938, 16, 2154, 1769, 3639, 333, 18, 8313, 3935, 273, 5194, 7416, 31, 3639, 333, 18, 4315, 3935, 273, 7976, 7416, 31, 3639, 1208, 5621, 3639, 3166, 7171, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10063, 1852, 9400, 12, 9400, 982, 16, 509, 2154, 16, 10063, 1852, 5194, 7416, 16, 5563, 1852, 7976, 7416, 13, 565, 288, 3639, 2240, 12, 2938, 16, 2154, 1769, 3639, 333, 18, 8313, 3935, 273, 5194, 7416, 31, 3639, 333, 18, 4315, 3935, 273, 7976, 7416, 31, 3639, 1208, 5621, 3639, 3166, 7171, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
* enable more than one category element
* enable more than one category element -- check the node name if * category strategy is used with an element not named "category"
public void processIndexable( Indexable<? extends Node, ? extends ServerBaseEntry> indexable) throws NotIndexableException { String contentPath = this.config.getPath(); Node node = null; try { node = indexable.applyPath(contentPath); } catch (XPathExpressionException e) { throw new NotIndexableException("Can not apply path"); } if (node == null) throw new NotIndexableException( "Could not retrieve content for schema field: " + this.config); StringBuilder contentBuilder = new StringBuilder(); StringBuilder schemeBuilder = new StringBuilder(); /* * enable more than one category element */ while (node != null) { NamedNodeMap attributeMap = node.getAttributes(); if (attributeMap == null) throw new NotIndexableException( "category term attribute not present"); /* * the "term" is the internal string used by the software to * identify the category, while the "label" is the human-readable * string presented to a user in a user interface. */ Node termNode = attributeMap.getNamedItem(TERM); if (termNode == null) throw new NotIndexableException( "category term attribute not present"); contentBuilder.append(termNode.getTextContent()).append(" "); Node labelNode = attributeMap.getNamedItem(LABEL); if (labelNode != null) contentBuilder.append(labelNode.getTextContent()).append(" "); Node schemeNode = attributeMap.getNamedItem(SCHEME); if (schemeNode != null) schemeBuilder.append(schemeNode.getTextContent()); node = node.getNextSibling(); } this.content = contentBuilder.toString(); this.categoryScheme = schemeBuilder.toString(); }
50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/d3629f25eb2c9e907666829dd6e32721512c85f4/GdataCategoryStrategy.java/buggy/contrib/gdata-server/src/java/org/apache/lucene/gdata/search/analysis/GdataCategoryStrategy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 1016, 429, 12, 5411, 3340, 429, 12880, 3231, 2029, 16, 692, 3231, 3224, 2171, 1622, 34, 770, 429, 13, 5411, 1216, 2288, 1016, 429, 503, 288, 3639, 514, 913, 743, 273, 333, 18, 1425, 18, 588, 743, 5621, 3639, 2029, 756, 273, 446, 31, 3639, 775, 288, 5411, 756, 273, 770, 429, 18, 9010, 743, 12, 1745, 743, 1769, 3639, 289, 1044, 261, 14124, 2300, 503, 425, 13, 288, 5411, 604, 394, 2288, 1016, 429, 503, 2932, 2568, 486, 2230, 589, 8863, 3639, 289, 3639, 309, 261, 2159, 422, 446, 13, 5411, 604, 394, 2288, 1016, 429, 503, 12, 10792, 315, 4445, 486, 4614, 913, 364, 1963, 652, 30, 315, 18701, 397, 333, 18, 1425, 1769, 3639, 3225, 913, 1263, 273, 394, 3225, 5621, 3639, 3225, 4355, 1263, 273, 394, 3225, 5621, 3639, 1748, 540, 380, 4237, 1898, 2353, 1245, 3150, 930, 1493, 866, 326, 756, 508, 309, 380, 3150, 6252, 353, 1399, 598, 392, 930, 486, 4141, 315, 4743, 6, 540, 1195, 3639, 1323, 261, 2159, 480, 446, 13, 288, 5411, 9796, 907, 863, 1566, 863, 273, 756, 18, 588, 2498, 5621, 5411, 309, 261, 4589, 863, 422, 446, 13, 7734, 604, 394, 2288, 1016, 429, 503, 12, 13491, 315, 4743, 2481, 1566, 486, 3430, 8863, 5411, 1748, 2398, 380, 326, 315, 6408, 6, 353, 326, 2713, 533, 1399, 635, 326, 17888, 358, 2398, 380, 9786, 326, 3150, 16, 1323, 326, 315, 1925, 6, 353, 326, 8672, 17, 11018, 2398, 380, 533, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 1016, 429, 12, 5411, 3340, 429, 12880, 3231, 2029, 16, 692, 3231, 3224, 2171, 1622, 34, 770, 429, 13, 5411, 1216, 2288, 1016, 429, 503, 288, 3639, 514, 913, 743, 273, 333, 18, 1425, 18, 588, 743, 5621, 3639, 2029, 756, 273, 446, 31, 3639, 775, 288, 5411, 756, 273, 770, 429, 18, 9010, 743, 12, 1745, 743, 1769, 3639, 289, 1044, 261, 14124, 2300, 503, 425, 13, 288, 5411, 604, 394, 2288, 1016, 429, 503, 2932, 2568, 486, 2230, 589, 8863, 3639, 289, 3639, 309, 261, 2159, 422, 446, 13, 5411, 604, 394, 2288, 1016, 429, 503, 12, 10792, 315, 4445, 486, 4614, 913, 364, 1963, 652, 30, 315, 18701, 397, 333, 18, 1425, 2 ]
public CreateChangeOperation(CheckConditionsOperation operation, int checkFailedSeverity) { Assert.isNotNull(operation); fCheckConditionOperation= operation; fRefactoring= operation.getRefactoring(); Assert.isTrue (checkFailedSeverity > RefactoringStatus.OK && checkFailedSeverity <= RefactoringStatus.FATAL); fConditionCheckingFailedSeverity= checkFailedSeverity;
public CreateChangeOperation(Refactoring refactoring) { Assert.isNotNull(refactoring); fRefactoring= refactoring;
public CreateChangeOperation(CheckConditionsOperation operation, int checkFailedSeverity) { Assert.isNotNull(operation); fCheckConditionOperation= operation; fRefactoring= operation.getRefactoring(); Assert.isTrue (checkFailedSeverity > RefactoringStatus.OK && checkFailedSeverity <= RefactoringStatus.FATAL); fConditionCheckingFailedSeverity= checkFailedSeverity; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4436bbc742b709e73412787a96c95b46a258a7a5/CreateChangeOperation.java/buggy/org.eclipse.ltk.core.refactoring/src/org/eclipse/ltk/core/refactoring/CreateChangeOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1788, 3043, 2988, 12, 1564, 8545, 2988, 1674, 16, 509, 866, 2925, 21630, 13, 288, 202, 202, 8213, 18, 291, 5962, 12, 7624, 1769, 202, 202, 74, 1564, 3418, 2988, 33, 1674, 31, 202, 202, 74, 426, 3493, 6053, 33, 1674, 18, 588, 426, 3493, 6053, 5621, 202, 202, 8213, 18, 291, 5510, 261, 1893, 2925, 21630, 405, 868, 3493, 6053, 1482, 18, 3141, 597, 866, 2925, 21630, 1648, 868, 3493, 6053, 1482, 18, 29891, 1769, 202, 202, 74, 3418, 14294, 2925, 21630, 33, 866, 2925, 21630, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1788, 3043, 2988, 12, 1564, 8545, 2988, 1674, 16, 509, 866, 2925, 21630, 13, 288, 202, 202, 8213, 18, 291, 5962, 12, 7624, 1769, 202, 202, 74, 1564, 3418, 2988, 33, 1674, 31, 202, 202, 74, 426, 3493, 6053, 33, 1674, 18, 588, 426, 3493, 6053, 5621, 202, 202, 8213, 18, 291, 5510, 261, 1893, 2925, 21630, 405, 868, 3493, 6053, 1482, 18, 3141, 597, 866, 2925, 21630, 1648, 868, 3493, 6053, 1482, 18, 29891, 1769, 202, 202, 74, 3418, 14294, 2925, 21630, 33, 866, 2925, 21630, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
log.warn("Certificate finder is null:");
log.warn("Certificate finder is null. Unable to perform the search: " + filter);
private void lookupCertInLDAP(String filter, CertDirectoryServiceClient certFinder) { if (log.isDebugEnabled()) log.debug(" lookupCertInLDAP of Directory keystore called :"); LdapEntry[] certs = null; CertificateStatus certstatus=null; // Look in certificate directory service if (log.isDebugEnabled()) { log.debug("DirectoryKeyStore.findCert. Looking up [" + filter + " ] in LDAP"); } if (certFinder != null) { certs = certFinder.searchWithFilter(filter); } else { if (log.isWarnEnabled()) { log.warn("Certificate finder is null:"); } } if(certs==null) { if (log.isErrorEnabled()) { log.error("Search for certs is null in lookupCertInLDAP:"); } return; } else { if (certs.length == 0) { if (log.isWarnEnabled()) { log.warn("Failed to get Certificate for " + filter); } } } for (int i = 0 ; i < certs.length ; i++) { // Since the certificate comes from an LDAP server, it should be trusted // (because only a CA should publish certificates to the directory service, // but let's check just to make sure. There may be some cases where // a particular CA is not trusted locally. try { X509Certificate[] certChain = checkCertificateTrust( certs[i].getCertificate(), certFinder); if(certs[i].getStatus().equals(CertificateRevocationStatus.REVOKED)) { certstatus = new CertificateStatus(certs[i].getCertificate(),false, CertificateOrigin.CERT_ORI_LDAP, certs[i].getCertificateType(), CertificateTrust.CERT_TRUST_REVOKED_CERT, null, param.serviceBroker); // certstatus.setValidity(false); } else { certstatus = new CertificateStatus(certs[i].getCertificate(), true, CertificateOrigin.CERT_ORI_LDAP, certs[i].getCertificateType(), CertificateTrust.CERT_TRUST_CA_SIGNED, null, param.serviceBroker); } if (log.isDebugEnabled()) { log.debug("Updating cert cache with LDAP entry:" + filter); } certCache.addCertificate(certstatus); // Update Common Name to DN hashtable nameMapping.addName(certstatus); if(certs[i].getCertificateType().equals(CertificateType.CERT_TYPE_CA)) { if (log.isDebugEnabled()) { log.debug("Certificate type is CA certificate"); log.debug("Updating CRLCache with CA entry "); } crlCache.add(((X509Certificate)certs[i].getCertificate()).getSubjectDN().getName()); } } catch (CertificateChainException e) { if (log.isWarnEnabled()) { log.warn("Found non trusted cert in LDAP directory! " + filter + " - " + e); } } catch (CertificateExpiredException e) { // The certificate is trusted but it has expired. if (log.isWarnEnabled()) { log.warn("Certificate in chain has expired. " + filter + " - " + e); } } catch (CertificateNotYetValidException e) { // The certificate is trusted but it is not yet valid. Add it to the cache // because it may become valid when it is being used. if (log.isWarnEnabled()) { log.warn("Certificate in chain is not yet valid. " + filter + " - " + e); } certstatus = new CertificateStatus(certs[i].getCertificate(), true, CertificateOrigin.CERT_ORI_LDAP, certs[i].getCertificateType(), CertificateTrust.CERT_TRUST_CA_SIGNED, null, param.serviceBroker); if (log.isDebugEnabled()) { log.debug("Updating cert cache with LDAP entry:" + filter); } certCache.addCertificate(certstatus); // Update Common Name to DN hashtable nameMapping.addName(certstatus); } catch (CertificateRevokedException certrevoked) { if (log.isErrorEnabled()) { log.error("Found cert in LDAP directory which has been revoked ! " + filter + " - " + certrevoked); } } } }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/7a497e745bc5fc89644929c6ce673162d94b6486/DirectoryKeyStore.java/clean/securityservices/src/org/cougaar/core/security/crypto/DirectoryKeyStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3689, 5461, 382, 15496, 12, 780, 1034, 16, 11921, 2853, 1179, 1227, 3320, 8441, 13, 225, 288, 565, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 1377, 613, 18, 4148, 2932, 3689, 5461, 382, 15496, 434, 8930, 16262, 2566, 294, 8863, 565, 18053, 1622, 8526, 13870, 273, 446, 31, 565, 6660, 1482, 3320, 2327, 33, 2011, 31, 565, 368, 10176, 316, 4944, 1867, 1156, 565, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 1377, 613, 18, 4148, 2932, 2853, 17250, 18, 4720, 5461, 18, 10176, 310, 731, 8247, 202, 202, 15, 1034, 397, 315, 308, 316, 11916, 8863, 565, 289, 565, 309, 261, 7593, 8441, 480, 446, 13, 288, 1377, 13870, 273, 3320, 8441, 18, 3072, 1190, 1586, 12, 2188, 1769, 565, 289, 565, 469, 288, 1377, 309, 261, 1330, 18, 291, 3160, 1526, 10756, 288, 202, 1330, 18, 8935, 2932, 4719, 7532, 353, 446, 18, 18640, 358, 3073, 326, 1623, 30, 315, 397, 1034, 1769, 1377, 289, 565, 289, 565, 309, 12, 24596, 631, 2011, 13, 288, 1377, 309, 261, 1330, 18, 291, 668, 1526, 10756, 288, 202, 1330, 18, 1636, 2932, 2979, 364, 13870, 353, 446, 316, 3689, 5461, 382, 15496, 2773, 1769, 1377, 289, 1377, 327, 31, 565, 289, 565, 469, 288, 1377, 309, 261, 24596, 18, 2469, 422, 374, 13, 288, 202, 430, 261, 1330, 18, 291, 3160, 1526, 10756, 288, 202, 225, 613, 18, 8935, 2932, 2925, 358, 336, 6660, 364, 315, 397, 1034, 1769, 202, 97, 1377, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3689, 5461, 382, 15496, 12, 780, 1034, 16, 11921, 2853, 1179, 1227, 3320, 8441, 13, 225, 288, 565, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 1377, 613, 18, 4148, 2932, 3689, 5461, 382, 15496, 434, 8930, 16262, 2566, 294, 8863, 565, 18053, 1622, 8526, 13870, 273, 446, 31, 565, 6660, 1482, 3320, 2327, 33, 2011, 31, 565, 368, 10176, 316, 4944, 1867, 1156, 565, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 1377, 613, 18, 4148, 2932, 2853, 17250, 18, 4720, 5461, 18, 10176, 310, 731, 8247, 202, 202, 15, 1034, 397, 315, 308, 316, 11916, 8863, 565, 289, 565, 309, 261, 7593, 8441, 480, 446, 13, 288, 1377, 13870, 273, 3320, 8441, 18, 2 ]
return TimeInForceImage.fromName(((TypedToken<TokenType>)tok.getToken()).getText());
return TimeInForceImage.fromName(((TypedToken<TokenType>)tok.getToken()).getText().toUpperCase());
public TimeInForceImage fromToken(Tok tok) { return TimeInForceImage.fromName(((TypedToken<TokenType>)tok.getToken()).getText()); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/fdcb3898f57b10679566eec334d4d95f20a785ca/CommandParser.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/parser/CommandParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 2647, 382, 10997, 2040, 628, 1345, 12, 20477, 946, 13, 288, 6862, 202, 2463, 2647, 382, 10997, 2040, 18, 2080, 461, 12443, 12, 11985, 1345, 32, 28675, 23429, 17692, 18, 588, 1345, 1435, 2934, 588, 1528, 10663, 9506, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 2647, 382, 10997, 2040, 628, 1345, 12, 20477, 946, 13, 288, 6862, 202, 2463, 2647, 382, 10997, 2040, 18, 2080, 461, 12443, 12, 11985, 1345, 32, 28675, 23429, 17692, 18, 588, 1345, 1435, 2934, 588, 1528, 10663, 9506, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
put("ThreshStateHi", DataTools.read4SignedBytes(in, little));
put("ThreshStateHi", in.readInt());
protected void initStandardMetadata() { try { Hashtable ifd = ifds[0]; super.initStandardMetadata(); Integer obj = new Integer(0); int offset; Integer k = new Integer(UIC4TAG); long[] temp = (long[]) ifd.get(k); Long[] q = new Long[temp.length]; for (int i=0; i<q.length; i++) q[i] = new Long(temp[i]); if (q == null) offset = -1; Integer w = new Integer(q[1].intValue()); if (w == null) offset = -1; else offset = w.intValue(); if (offset < 0) throw new FormatException("UIC4TAG not found"); in.seek(offset); int currentcode = -1; byte[] toread; TiffRational[] temp2 = (TiffRational[]) ifd.get(new Integer(METAMORPH_ID)); Long[] v = new Long[temp2.length]; for (int i=0; i<v.length; i++) v[i] = new Long(temp2[i].longValue()); if (v == null) throw new FormatException("Metamorph ID not found"); int planes = v[1].intValue(); boolean little = TiffTools.isLittleEndian(ifd); while ((currentcode < 66) && ((in.length() - in.getFilePointer()) > 2)) { currentcode = DataTools.read2SignedBytes(in, little); // variable declarations, because switch is dumb int num, denom; int xnum, xdenom, ynum, ydenom; double xpos, ypos; String thedate, thetime; switch (currentcode) { case 0: String autoscale = DataTools.read4SignedBytes(in, little) == 0 ? "no auto-scaling" : "16-bit to 8-bit scaling"; put("AutoScale", autoscale); break; case 1: put("MinScale", DataTools.read4SignedBytes(in, little)); break; case 2: put("MaxScale", DataTools.read4SignedBytes(in, little)); break; case 3: int calib = DataTools.read4SignedBytes(in, little); String calibration = calib == 0 ? "on" : "off"; put("Spatial Calibration", calibration); break; case 4: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("XCalibration", new TiffRational(num, denom)); break; case 5: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("YCalibration", new TiffRational(num, denom)); break; case 6: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("CalibrationUnits", new String(toread)); break; case 7: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String name = new String(toread); put("Name", name); imageName = name; break; case 8: int thresh = DataTools.read4SignedBytes(in, little); String threshState = "off"; if (thresh == 1) threshState = "inside"; else if (thresh == 2) threshState = "outside"; put("ThreshState", threshState); break; case 9: put("ThreshStateRed", DataTools.read4SignedBytes(in, little)); break; // there is no 10 case 11: put("ThreshStateGreen", DataTools.read4SignedBytes(in, little)); break; case 12: put("ThreshStateBlue", DataTools.read4SignedBytes(in, little)); break; case 13: put("ThreshStateLo", DataTools.read4SignedBytes(in, little)); break; case 14: put("ThreshStateHi", DataTools.read4SignedBytes(in, little)); break; case 15: int zoom = DataTools.read4SignedBytes(in, little); put("Zoom", zoom);// OMETools.setAttribute(ome, "DisplayOptions", "Zoom", "" + zoom); break; case 16: // oh how we hate you Julian format... thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("DateTime", thedate + " " + thetime); imageCreationDate = thedate + " " + thetime; break; case 17: thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("LastSavedTime", thedate + " " + thetime); break; case 18: put("currentBuffer", DataTools.read4SignedBytes(in, little)); break; case 19: put("grayFit", DataTools.read4SignedBytes(in, little)); break; case 20: put("grayPointCount", DataTools.read4SignedBytes(in, little)); break; case 21: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayX", new TiffRational(num, denom)); break; case 22: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("gray", new TiffRational(num, denom)); break; case 23: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMin", new TiffRational(num, denom)); break; case 24: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMax", new TiffRational(num, denom)); break; case 25: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("grayUnitName", new String(toread)); break; case 26: int standardLUT = DataTools.read4SignedBytes(in, little); String standLUT; switch (standardLUT) { case 0: standLUT = "monochrome"; break; case 1: standLUT = "pseudocolor"; break; case 2: standLUT = "Red"; break; case 3: standLUT = "Green"; break; case 4: standLUT = "Blue"; break; case 5: standLUT = "user-defined"; break; default: standLUT = "monochrome"; break; } put("StandardLUT", standLUT); break; case 27: put("Wavelength", DataTools.read4SignedBytes(in, little)); break; case 28: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Stage Position Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 29: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Camera Offset Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 30: put("OverlayMask", DataTools.read4SignedBytes(in, little)); break; case 31: put("OverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 32: put("Overlay", DataTools.read4SignedBytes(in, little)); break; case 33: put("SpecialOverlayMask", DataTools.read4SignedBytes(in, little)); break; case 34: put("SpecialOverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 35: put("SpecialOverlay", DataTools.read4SignedBytes(in, little)); break; case 36: put("ImageProperty", DataTools.read4SignedBytes(in, little)); break; case 37: for (int i = 0; i<planes; i++) { num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String s = new String(toread); put("StageLabel Plane " + i, s); } break; case 38: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleLoInfo", new TiffRational(num, denom)); break; case 39: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleHiInfo", new TiffRational(num, denom)); break; case 40: for (int i=0;i<planes;i++) { num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AbsoluteZ Plane " + i, new TiffRational(num, denom)); } break; case 41: for (int i=0; i<planes; i++) { put("AbsoluteZValid Plane " + i, DataTools.read4SignedBytes(in, little)); } break; case 42: put("Gamma", DataTools.read4SignedBytes(in, little)); break; case 43: put("GammaRed", DataTools.read4SignedBytes(in, little)); break; case 44: put("GammaGreen", DataTools.read4SignedBytes(in, little)); break; case 45: put("GammaBlue", DataTools.read4SignedBytes(in, little)); break; } // end switch } } catch (NullPointerException n) { n.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } try { super.initStandardMetadata(); } catch (Throwable t) { t.printStackTrace(); } // parse (mangle) TIFF comment String descr = (String) metadata.get("Comment"); if (descr != null) { StringTokenizer st = new StringTokenizer(descr, "\n"); StringBuffer sb = new StringBuffer(); boolean first = true; while (st.hasMoreTokens()) { String line = st.nextToken(); int colon = line.indexOf(": "); if (colon < 0) { // normal line (not a key/value pair) if (line.trim().length() > 0) { // not a blank line sb.append(line); if (!line.endsWith(".")) sb.append("."); sb.append(" "); } first = false; continue; } if (first) { // first line could be mangled; make a reasonable guess int dot = line.lastIndexOf(".", colon); if (dot >= 0) { String s = line.substring(0, dot + 1); sb.append(s); if (!s.endsWith(".")) sb.append("."); sb.append(" "); } line = line.substring(dot + 1); colon -= dot + 1; first = false; } // add key/value pair embedded in comment as separate metadata String key = line.substring(0, colon); String value = line.substring(colon + 2); put(key, value); } // replace comment with trimmed version descr = sb.toString().trim(); if (descr.equals("")) metadata.remove("Comment"); else put("Comment", descr); } }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/2df09d33bfdc966378aae0cc09cb503afb983bc2/MetamorphReader.java/clean/loci/formats/in/MetamorphReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 288, 565, 775, 288, 1377, 18559, 309, 72, 273, 309, 2377, 63, 20, 15533, 1377, 2240, 18, 2738, 8336, 2277, 5621, 1377, 2144, 1081, 273, 394, 2144, 12, 20, 1769, 1377, 509, 1384, 31, 1377, 2144, 417, 273, 394, 2144, 12, 57, 2871, 24, 7927, 1769, 1377, 1525, 8526, 1906, 273, 261, 5748, 63, 5717, 309, 72, 18, 588, 12, 79, 1769, 1377, 3407, 8526, 1043, 273, 394, 3407, 63, 5814, 18, 2469, 15533, 1377, 364, 261, 474, 277, 33, 20, 31, 277, 32, 85, 18, 2469, 31, 277, 27245, 1043, 63, 77, 65, 273, 394, 3407, 12, 5814, 63, 77, 19226, 1377, 309, 261, 85, 422, 446, 13, 1384, 273, 300, 21, 31, 1377, 2144, 341, 273, 394, 2144, 12, 85, 63, 21, 8009, 474, 620, 10663, 1377, 309, 261, 91, 422, 446, 13, 1384, 273, 300, 21, 31, 1377, 469, 1384, 273, 225, 341, 18, 474, 620, 5621, 1377, 309, 261, 3348, 411, 374, 13, 604, 394, 4077, 503, 2932, 57, 2871, 24, 7927, 486, 1392, 8863, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 509, 783, 710, 273, 300, 21, 31, 1377, 1160, 8526, 358, 896, 31, 1377, 399, 3048, 54, 8371, 8526, 1906, 22, 273, 261, 56, 3048, 54, 8371, 63, 5717, 3639, 309, 72, 18, 588, 12, 2704, 2144, 12, 18315, 2192, 916, 8939, 67, 734, 10019, 1377, 3407, 8526, 331, 273, 394, 3407, 63, 5814, 22, 18, 2469, 15533, 1377, 364, 261, 474, 277, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 288, 565, 775, 288, 1377, 18559, 309, 72, 273, 309, 2377, 63, 20, 15533, 1377, 2240, 18, 2738, 8336, 2277, 5621, 1377, 2144, 1081, 273, 394, 2144, 12, 20, 1769, 1377, 509, 1384, 31, 1377, 2144, 417, 273, 394, 2144, 12, 57, 2871, 24, 7927, 1769, 1377, 1525, 8526, 1906, 273, 261, 5748, 63, 5717, 309, 72, 18, 588, 12, 79, 1769, 1377, 3407, 8526, 1043, 273, 394, 3407, 63, 5814, 18, 2469, 15533, 1377, 364, 261, 474, 277, 33, 20, 31, 277, 32, 85, 18, 2469, 31, 277, 27245, 1043, 63, 77, 65, 273, 394, 3407, 12, 5814, 63, 77, 19226, 1377, 309, 261, 85, 422, 446, 13, 1384, 273, 300, 2 ]
AST __t1383 = _t;
AST __t1384 = _t;
public final void functionstate(AST _t) throws RecognitionException { AST functionstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1383 = _t; AST tmp852_AST_in = (AST)_t; match(_t,FUNCTION); _t = _t.getFirstChild(); AST tmp853_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RETURNS: { AST tmp854_AST_in = (AST)_t; match(_t,RETURNS); _t = _t.getNextSibling(); break; } case RETURN: { AST tmp855_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp856_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp857_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case TYPE_NAME: { datatype_var(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: { AST tmp858_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case PERIOD: case FORWARDS: case IN_KW: case MAP: case LEXCOLON: case Parameter_list: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { function_params(_t); _t = _retTree; break; } case PERIOD: case FORWARDS: case IN_KW: case MAP: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORWARDS: { AST tmp859_AST_in = (AST)_t; match(_t,FORWARDS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp860_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp861_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp862_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } break; } case PERIOD: case LEXCOLON: { block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EOF: { AST tmp863_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } case END: { AST __t1397 = _t; AST tmp864_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FUNCTION: { AST tmp865_AST_in = (AST)_t; match(_t,FUNCTION); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1397; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } break; } default: boolean synPredMatched1391 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==IN_KW))) { AST __t1391 = _t; synPredMatched1391 = true; inputState.guessing++; try { { AST tmp866_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp867_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched1391 = false; } _t = __t1391;inputState.guessing--; } if ( synPredMatched1391 ) { AST tmp868_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp869_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp870_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp871_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp872_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else if ((_t.getType()==IN_KW||_t.getType()==MAP)) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAP: { AST tmp873_AST_in = (AST)_t; match(_t,MAP); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp874_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp875_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp876_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp877_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp878_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp879_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { throw new NoViableAltException(_t); } } } _t = __t1383; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 445, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3437, 10261, 273, 389, 88, 31, 202, 202, 9053, 1853, 7140, 22, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7788, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 7140, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 734, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 10366, 1099, 3156, 30, 202, 202, 95, 1082, 202, 9053, 1853, 28, 6564, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 19392, 3156, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 14780, 30, 202, 202, 95, 1082, 202, 9053, 1853, 28, 2539, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 14033, 1769, 1082, 202, 67, 88, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 445, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3437, 10261, 273, 389, 88, 31, 202, 202, 9053, 1853, 7140, 22, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7788, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 7140, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 734, 1769, 202, 202, 67, 88, 273, 2 ]
}
}
private XMLReader() { }
54061 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54061/7eb07e7ca3fae5deca0288c239c0aae78330a464/XMLReader.java/clean/src/java/com/idega/builder/business/XMLReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3167, 2514, 1435, 288, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 3167, 2514, 1435, 288, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static Object packageAndInvoke(Object obj, int methodID, VM_Address argAddress, VM_TypeReference expectReturnType, boolean skip4Args, int argtype) throws Exception { // VM.sysWrite("JNI CallXXXMethod: method ID " + methodID + " with args at " + // VM.intAsHexString(argAddress) + "\n"); VM_Method targetMethod = VM_MemberReference.getMemberRef(methodID).asMethodReference().resolve(); VM_TypeReference returnType = targetMethod.getReturnType(); // VM.sysWrite("JNI CallXXXMethod: " + targetMethod.getDeclaringClass().toString() + // "." + targetMethod.getName().toString() + "\n"); if (expectReturnType==null) { // for reference return type if (!returnType.isReferenceType()) throw new Exception("Wrong return type for method: expect reference type instead of " + returnType); } else { // for primitive return type if (returnType!=expectReturnType) throw new Exception("Wrong return type for method: expect " + expectReturnType + " instead of " + returnType); } // Repackage the arguments into an array of objects based on the signature of this method Object[] argObjectArray; switch (argtype) { //-#if RVM_WITH_SVR4_ABI case SVR4_DOTARG: // argAddress is the glue frame pointer argObjectArray = packageParameterFromDotArgSVR4(targetMethod, argAddress, skip4Args); break; //-#endif case JVALUE_ARG: argObjectArray = packageParameterFromJValue(targetMethod, argAddress); break; //-#if RVM_WITH_SVR4_ABI case SVR4_VARARG: argObjectArray = packageParameterFromVarArgSVR4(targetMethod, argAddress); break; //-#endif case AIX_VARARG: argObjectArray = packageParameterFromVarArg(targetMethod, argAddress); break; default: argObjectArray = null; if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); } // now invoke the method Object returnObj = VM_Reflection.invoke(targetMethod, obj, argObjectArray, skip4Args); return returnObj; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/ddc1a7211a7d147ae7a909a309d0c47c5fcf2486/VM_JNIHelpers.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNIHelpers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 2181, 1876, 10969, 12, 921, 1081, 16, 509, 707, 734, 16, 8251, 67, 1887, 1501, 1887, 16, 29159, 8251, 67, 7534, 4489, 9102, 16, 29159, 1250, 2488, 24, 2615, 16, 509, 1501, 723, 13, 377, 1216, 1185, 288, 1377, 368, 8251, 18, 9499, 3067, 2932, 46, 50, 45, 3049, 15639, 1305, 30, 225, 707, 1599, 315, 397, 707, 734, 397, 315, 598, 833, 622, 315, 397, 377, 368, 2398, 8251, 18, 474, 1463, 14866, 12, 3175, 1887, 13, 397, 1548, 82, 8863, 3639, 8251, 67, 1305, 1018, 1305, 273, 8251, 67, 4419, 2404, 18, 588, 4419, 1957, 12, 2039, 734, 2934, 345, 1305, 2404, 7675, 10828, 5621, 565, 8251, 67, 7534, 9424, 273, 1018, 1305, 18, 588, 9102, 5621, 565, 368, 8251, 18, 9499, 3067, 2932, 46, 50, 45, 3049, 15639, 1305, 30, 225, 315, 397, 1018, 1305, 18, 588, 3456, 14682, 7675, 10492, 1435, 397, 565, 368, 1850, 4585, 397, 1018, 1305, 18, 17994, 7675, 10492, 1435, 397, 1548, 82, 8863, 565, 309, 261, 12339, 9102, 631, 2011, 13, 288, 282, 368, 364, 2114, 327, 618, 4202, 309, 16051, 2463, 559, 18, 291, 2404, 559, 10756, 3639, 604, 394, 1185, 2932, 13634, 327, 618, 364, 707, 30, 4489, 2114, 618, 3560, 434, 315, 397, 9424, 1769, 1850, 289, 377, 469, 288, 565, 368, 364, 8225, 327, 618, 1377, 309, 261, 2463, 559, 5, 33, 12339, 9102, 13, 540, 604, 394, 1185, 2932, 13634, 327, 618, 364, 707, 30, 4489, 315, 397, 4489, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 2181, 1876, 10969, 12, 921, 1081, 16, 509, 707, 734, 16, 8251, 67, 1887, 1501, 1887, 16, 29159, 8251, 67, 7534, 4489, 9102, 16, 29159, 1250, 2488, 24, 2615, 16, 509, 1501, 723, 13, 377, 1216, 1185, 288, 1377, 368, 8251, 18, 9499, 3067, 2932, 46, 50, 45, 3049, 15639, 1305, 30, 225, 707, 1599, 315, 397, 707, 734, 397, 315, 598, 833, 622, 315, 397, 377, 368, 2398, 8251, 18, 474, 1463, 14866, 12, 3175, 1887, 13, 397, 1548, 82, 8863, 3639, 8251, 67, 1305, 1018, 1305, 273, 8251, 67, 4419, 2404, 18, 588, 4419, 1957, 12, 2039, 734, 2934, 345, 1305, 2404, 7675, 10828, 5621, 565, 8251, 67, 7534, 9424, 273, 1018, 1305, 2 ]
System.err.println(">>> " + firstElement.getClass());
public void run(IAction action) { if (action instanceof ObjectPluginAction) { ObjectPluginAction objectAction = (ObjectPluginAction) action; if (objectAction.getSelection() instanceof StructuredSelection) { StructuredSelection selection = (StructuredSelection) objectAction.getSelection(); Object firstElement = selection.getFirstElement(); String comment = null; boolean resolved = false; System.err.println(">>> " + firstElement.getClass()); if (firstElement instanceof ChangeSetDiffNode) { comment = ((ChangeSetDiffNode) firstElement).getName(); } else if (firstElement instanceof LogEntry) { comment = ((LogEntry) firstElement).getComment(); } if (comment != null) { String idString = MylarContextChangeSet.getTaskIdFromComment(comment); String url = MylarContextChangeSet.getUrlFromComment(comment); String repositoryUrl = getRepositoryUrlFromComment(url); int id = -1; try { id = Integer.parseInt(idString); } catch (NumberFormatException e) { // ignore } if (id != -1) { // TODO: should try to open task first OpenBugzillaReportJob job = new OpenBugzillaReportJob(repositoryUrl, id); IProgressService service = PlatformUI.getWorkbench().getProgressService(); try { service.run(true, false, job); } catch (Exception e) { MylarStatusHandler.fail(e, "Could not open report", true); } resolved = true; } else if (url != null) { TaskListUiUtil.openUrl("Web Browser", "Web Browser", url); resolved = true; } } if (!resolved) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Mylar Information", "Could not resolve report corresponding to change set comment."); } } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/4b9f93c796d7a602a0cec9da90cec3e8d3961d9f/OpenCorrespondingTaskAction.java/clean/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/ui/actions/OpenCorrespondingTaskAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 9506, 202, 430, 261, 1128, 1276, 1033, 3773, 1803, 13, 288, 1082, 202, 921, 3773, 1803, 733, 1803, 273, 261, 921, 3773, 1803, 13, 1301, 31, 1082, 202, 430, 261, 1612, 1803, 18, 588, 6233, 1435, 1276, 7362, 2862, 6233, 13, 288, 9506, 202, 30733, 6233, 4421, 273, 261, 30733, 6233, 13, 733, 1803, 18, 588, 6233, 5621, 9506, 202, 921, 1122, 1046, 273, 4421, 18, 588, 3759, 1046, 5621, 9506, 202, 780, 2879, 273, 446, 31, 9506, 202, 6494, 4640, 273, 629, 31, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 23012, 315, 397, 1122, 1046, 18, 588, 797, 10663, 9506, 202, 430, 261, 3645, 1046, 1276, 7576, 694, 5938, 907, 13, 288, 6862, 202, 3469, 273, 14015, 21565, 5938, 907, 13, 1122, 1046, 2934, 17994, 5621, 9506, 202, 97, 469, 309, 261, 3645, 1046, 1276, 30039, 13, 288, 6862, 202, 3469, 273, 14015, 25548, 13, 1122, 1046, 2934, 588, 4469, 5621, 9506, 202, 97, 9506, 202, 430, 261, 3469, 480, 446, 13, 288, 6862, 202, 780, 612, 780, 273, 8005, 7901, 1042, 21565, 18, 588, 30182, 1265, 4469, 12, 3469, 1769, 6862, 202, 780, 880, 273, 8005, 7901, 1042, 21565, 18, 588, 1489, 1265, 4469, 12, 3469, 1769, 6862, 202, 780, 3352, 1489, 273, 8261, 1489, 1265, 4469, 12, 718, 1769, 6862, 202, 474, 612, 273, 300, 21, 31, 6862, 202, 698, 288, 25083, 202, 350, 273, 2144, 18, 2670, 1702, 12, 350, 780, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 9506, 202, 430, 261, 1128, 1276, 1033, 3773, 1803, 13, 288, 1082, 202, 921, 3773, 1803, 733, 1803, 273, 261, 921, 3773, 1803, 13, 1301, 31, 1082, 202, 430, 261, 1612, 1803, 18, 588, 6233, 1435, 1276, 7362, 2862, 6233, 13, 288, 9506, 202, 30733, 6233, 4421, 273, 261, 30733, 6233, 13, 733, 1803, 18, 588, 6233, 5621, 9506, 202, 921, 1122, 1046, 273, 4421, 18, 588, 3759, 1046, 5621, 9506, 202, 780, 2879, 273, 446, 31, 9506, 202, 6494, 4640, 273, 629, 31, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 23012, 315, 397, 1122, 1046, 18, 588, 797, 10663, 9506, 202, 430, 261, 3645, 1046, 1276, 2 ]
else hmElements.put(ee.name, ee.type);
else { hmElements.put(ee.name, ee.type); System.out.println("- element"); }
private void buildGlobalElement(ElementInfo ei) { ElementEntry ee = new ElementEntry(ei); System.out.println("# building global element " + (ee.name != null ? ee.name : ("ref --> " + ee.ref))); // RGFIX if (ee.name == null) throw new IllegalArgumentException("Name is null for element : " + ee.name); if (ee.substGroup != null) { ArrayList al = (ArrayList) hmSubsGrp.get(ee.substGroup); if (al == null) { al = new ArrayList(); hmSubsGrp.put(ee.substGroup, al); } al.add(ee); System.out.println("# - storing " + ee.name + " for substitution group " + ee.substGroup); // RGFIX hmSubsLink.put(ee.name, al); } if (ee.abstrElem) { if (hmAbsElems.containsKey(ee.name)) throw new IllegalArgumentException("Namespace collision for : " + ee.name); System.out.println("# - found abstract element " + (ee.name != null ? ee.name : ("ref --> " + ee.ref))); // RGFIX hmAbsElems.put(ee.name, ee.type); return; //RGFIX } if (ee.complexType != null) { String type = ee.name+"#I"; ee.complexType.name = type; ee.type = type; // RGFIX System.out.println("# - found complex type " + type); // RGFIX if (hmElements.containsKey(ee.name)) throw new IllegalArgumentException("Namespace collision for : " + ee.name); hmElements.put(ee.name, type); System.out.println("# - stored type '" + type + "' for element '" + ee.name + "'"); // RGFIX hmTypes.put(type, ee.complexType); } else if (ee.simpleType != null) // RGFIX: was just else { if (ee.type == null) throw new IllegalArgumentException("Type is null for element : " + ee.name); if (hmElements.containsKey(ee.name)) throw new IllegalArgumentException("Namespace collision for : " + ee.name); System.out.println("# - found simple type " + ee.type); // RGFIX hmElements .put(ee.name, ee.type); hmElemRestr.put(ee.name, ee.simpleType.alEnum); } else hmElements.put(ee.name, ee.type); }
53415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53415/4777bb92bb3d62130cc5d12eb39ac86879b09162/SchemaLoader.java/clean/src/org/fao/geonet/kernel/schema/SchemaLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 5160, 1046, 12, 1046, 966, 13247, 13, 202, 95, 202, 202, 1046, 1622, 14657, 273, 394, 3010, 1622, 12, 73, 77, 1769, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 7, 10504, 2552, 930, 315, 397, 261, 1340, 18, 529, 480, 446, 692, 14657, 18, 529, 294, 7566, 1734, 15431, 315, 397, 14657, 18, 1734, 3719, 1769, 368, 534, 43, 4563, 9506, 202, 430, 261, 1340, 18, 529, 422, 446, 13, 1082, 202, 12849, 394, 2754, 2932, 461, 353, 446, 364, 930, 294, 315, 397, 14657, 18, 529, 1769, 202, 202, 430, 261, 1340, 18, 1717, 334, 1114, 480, 446, 13, 202, 202, 95, 1082, 202, 19558, 524, 273, 261, 19558, 13, 16349, 26123, 43, 13832, 18, 588, 12, 1340, 18, 1717, 334, 1114, 1769, 1082, 202, 430, 261, 287, 422, 446, 13, 1082, 202, 95, 9506, 202, 287, 273, 394, 2407, 5621, 9506, 202, 76, 81, 26123, 43, 13832, 18, 458, 12, 1340, 18, 1717, 334, 1114, 16, 524, 1769, 1082, 202, 97, 1082, 202, 287, 18, 1289, 12, 1340, 1769, 25083, 202, 3163, 18, 659, 18, 8222, 2932, 7, 300, 15729, 315, 397, 14657, 18, 529, 397, 315, 364, 12785, 1041, 315, 397, 14657, 18, 1717, 334, 1114, 1769, 368, 534, 43, 4563, 25083, 202, 76, 81, 26123, 2098, 18, 458, 12, 1340, 18, 529, 16, 524, 1769, 202, 202, 97, 202, 202, 430, 261, 1340, 18, 378, 701, 7498, 13, 202, 202, 95, 1082, 202, 430, 261, 76, 81, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 5160, 1046, 12, 1046, 966, 13247, 13, 202, 95, 202, 202, 1046, 1622, 14657, 273, 394, 3010, 1622, 12, 73, 77, 1769, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 7, 10504, 2552, 930, 315, 397, 261, 1340, 18, 529, 480, 446, 692, 14657, 18, 529, 294, 7566, 1734, 15431, 315, 397, 14657, 18, 1734, 3719, 1769, 368, 534, 43, 4563, 9506, 202, 430, 261, 1340, 18, 529, 422, 446, 13, 1082, 202, 12849, 394, 2754, 2932, 461, 353, 446, 364, 930, 294, 315, 397, 14657, 18, 529, 1769, 202, 202, 430, 261, 1340, 18, 1717, 334, 1114, 480, 446, 13, 202, 202, 95, 1082, 202, 19558, 524, 273, 261, 19558, 13, 16349, 26123, 2 ]
TracRepositoryQuery query = new TracRepositoryQuery(repositoryUrl, queryUrl, "description", null);
TracRepositoryQuery query = new TracRepositoryQuery(repositoryUrl, queryUrl, "description", TasksUiPlugin.getTaskListManager().getTaskList());
public void testGetFilterList() { String repositoryUrl = "https://foo.bar/repo"; String parameterUrl = "&status=new&status=assigned&status=reopened&milestone=0.1"; String queryUrl = repositoryUrl + ITracClient.QUERY_URL + parameterUrl; TracRepositoryQuery query = new TracRepositoryQuery(repositoryUrl, queryUrl, "description", null); TracSearch filterList = query.getTracSearch(); assertEquals(parameterUrl, filterList.toUrl()); assertEquals("&status=new|assigned|reopened&milestone=0.1", filterList.toQuery()); List<TracSearchFilter> list = filterList.getFilters(); TracSearchFilter filter = list.get(0); assertEquals("status", filter.getFieldName()); assertEquals(Arrays.asList("new", "assigned", "reopened"), filter.getValues()); filter = list.get(1); assertEquals("milestone", filter.getFieldName()); assertEquals(Arrays.asList("0.1"), filter.getValues()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4f49d1937552a69560839dcbd645aac2eebe2260/TracRepositoryQueryTest.java/clean/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1586, 682, 1435, 288, 202, 202, 780, 3352, 1489, 273, 315, 4528, 2207, 11351, 18, 3215, 19, 7422, 14432, 202, 202, 780, 1569, 1489, 273, 7830, 2327, 33, 2704, 10, 2327, 33, 15938, 10, 2327, 33, 266, 25304, 10, 81, 18270, 33, 20, 18, 21, 14432, 202, 202, 780, 843, 1489, 273, 3352, 1489, 397, 467, 1609, 71, 1227, 18, 10753, 67, 1785, 397, 1569, 1489, 31, 202, 202, 1609, 71, 3305, 1138, 843, 273, 394, 2197, 71, 3305, 1138, 12, 9071, 1489, 16, 843, 1489, 16, 315, 3384, 3113, 446, 1769, 202, 202, 1609, 71, 2979, 1034, 682, 273, 843, 18, 588, 1609, 71, 2979, 5621, 202, 202, 11231, 8867, 12, 6775, 1489, 16, 1034, 682, 18, 869, 1489, 10663, 202, 202, 11231, 8867, 2932, 10, 2327, 33, 2704, 96, 15938, 96, 266, 25304, 10, 81, 18270, 33, 20, 18, 21, 3113, 1034, 682, 18, 869, 1138, 10663, 202, 202, 682, 32, 1609, 71, 2979, 1586, 34, 666, 273, 1034, 682, 18, 588, 5422, 5621, 202, 202, 1609, 71, 2979, 1586, 1034, 273, 666, 18, 588, 12, 20, 1769, 202, 202, 11231, 8867, 2932, 2327, 3113, 1034, 18, 588, 7287, 10663, 202, 202, 11231, 8867, 12, 12726, 18, 345, 682, 2932, 2704, 3113, 315, 15938, 3113, 315, 266, 25304, 6, 3631, 1034, 18, 588, 1972, 10663, 202, 202, 2188, 273, 666, 18, 588, 12, 21, 1769, 202, 202, 11231, 8867, 2932, 81, 18270, 3113, 1034, 18, 588, 7287, 10663, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1586, 682, 1435, 288, 202, 202, 780, 3352, 1489, 273, 315, 4528, 2207, 11351, 18, 3215, 19, 7422, 14432, 202, 202, 780, 1569, 1489, 273, 7830, 2327, 33, 2704, 10, 2327, 33, 15938, 10, 2327, 33, 266, 25304, 10, 81, 18270, 33, 20, 18, 21, 14432, 202, 202, 780, 843, 1489, 273, 3352, 1489, 397, 467, 1609, 71, 1227, 18, 10753, 67, 1785, 397, 1569, 1489, 31, 202, 202, 1609, 71, 3305, 1138, 843, 273, 394, 2197, 71, 3305, 1138, 12, 9071, 1489, 16, 843, 1489, 16, 315, 3384, 3113, 446, 1769, 202, 202, 1609, 71, 2979, 1034, 682, 273, 843, 18, 588, 1609, 71, 2979, 5621, 202, 202, 11231, 8867, 12, 6775, 2 ]
r3dm = new Renderer3DModel();
logger = new org.openscience.cdk.tools.LoggingTool(this.getClass().getName()); r3dm = new Renderer3DModel();
public Renderer3D() { r3dm = new Renderer3DModel(); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/9bf4637c0a62d6b096f9126753e5c18d38f31fcf/Renderer3D.java/clean/org/openscience/cdk/renderer/Renderer3D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17589, 23, 40, 1435, 288, 3639, 1194, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 6642, 18, 7735, 6364, 12, 2211, 18, 588, 797, 7675, 17994, 10663, 436, 23, 10956, 273, 394, 17589, 23, 40, 1488, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17589, 23, 40, 1435, 288, 3639, 1194, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 6642, 18, 7735, 6364, 12, 2211, 18, 588, 797, 7675, 17994, 10663, 436, 23, 10956, 273, 394, 17589, 23, 40, 1488, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
addDatabaseExperimentToWorkspace(experiment);
addExperimentAndComponentsToWorkspace(experiment, getSelectedNode());
protected void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Experiment:")); panel.add(cb); int result = JOptionPane.showConfirmDialog(null, panel, "Experiment", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (result != JOptionPane.OK_OPTION) return; String experimentName = (String)cb.getSelectedItem(); final String originalExperimentName = experimentName; String experimentId = (String)experimentNamesMap.get(experimentName); // if the CSMART workspace contains an experiment with this name, // then force the user to select a new unique name if (experimentNames.contains(experimentName)) { experimentName = getUniqueExperimentName(experimentNames.generateName(experimentName), false); if (experimentName == null) return; } if(log.isDebugEnabled()) { log.debug("Experiment Id: " + experimentId); } // get threads and groups information cmtDialog = new CMTDialog(csmart, this, experimentName, experimentId); while (!cmtDialog.isULThreadSelected() && !cmtDialog.wasCancelled()) { JOptionPane.showMessageDialog(this, "You must select at least one thread.", "No Thread Selected", JOptionPane.ERROR_MESSAGE); cmtDialog = new CMTDialog(csmart, this, experimentName, experimentId); } if (cmtDialog.wasCancelled()) return; GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectExperiment") { public void run() { // a potentially long process if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperimentId(), trialId); if (experiment != null) addDatabaseExperimentToWorkspace(experiment); } } GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { if(log.isErrorEnabled()) { log.error("Runtime exception creating experiment", re); } GUIUtils.timeConsumingTaskEnd(organizer); } }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/461a8aa67e4224e9c669d9e3880c2a16ff00d532/Organizer.java/clean/csmart/src/org/cougaar/tools/csmart/ui/viewer/Organizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2027, 22338, 1265, 4254, 1435, 288, 565, 1635, 8724, 1557, 863, 273, 22844, 2290, 18, 588, 22338, 1557, 5621, 565, 1000, 1311, 273, 8724, 1557, 863, 18, 856, 694, 5621, 565, 804, 22199, 2875, 273, 394, 804, 22199, 12, 2452, 18, 31447, 12, 2704, 514, 63, 2452, 18, 1467, 1435, 5717, 1769, 565, 2875, 18, 542, 15470, 12, 5743, 1769, 565, 24048, 6594, 273, 394, 24048, 5621, 565, 6594, 18, 1289, 12, 2704, 21403, 2932, 3391, 22844, 2773, 10019, 565, 6594, 18, 1289, 12, 7358, 1769, 565, 509, 563, 273, 4202, 804, 1895, 8485, 18, 4500, 11269, 6353, 12, 2011, 16, 6594, 16, 315, 22338, 3113, 4766, 565, 804, 1895, 8485, 18, 3141, 67, 25268, 67, 7425, 16, 4766, 565, 804, 1895, 8485, 18, 26549, 67, 8723, 1769, 565, 309, 261, 2088, 480, 804, 1895, 8485, 18, 3141, 67, 7425, 13, 1377, 327, 31, 565, 514, 8724, 461, 273, 261, 780, 13, 7358, 18, 588, 7416, 1180, 5621, 565, 727, 514, 2282, 22338, 461, 273, 8724, 461, 31, 565, 514, 8724, 548, 273, 261, 780, 13, 18142, 1557, 863, 18, 588, 12, 18142, 461, 1769, 565, 368, 309, 326, 6761, 49, 4928, 6003, 1914, 392, 8724, 598, 333, 508, 16, 565, 368, 1508, 2944, 326, 729, 358, 2027, 279, 394, 3089, 508, 565, 309, 261, 18142, 1557, 18, 12298, 12, 18142, 461, 3719, 288, 1377, 8724, 461, 273, 540, 16076, 22338, 461, 12, 18142, 1557, 18, 7163, 461, 12, 18142, 461, 3631, 27573, 629, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 2027, 22338, 1265, 4254, 1435, 288, 565, 1635, 8724, 1557, 863, 273, 22844, 2290, 18, 588, 22338, 1557, 5621, 565, 1000, 1311, 273, 8724, 1557, 863, 18, 856, 694, 5621, 565, 804, 22199, 2875, 273, 394, 804, 22199, 12, 2452, 18, 31447, 12, 2704, 514, 63, 2452, 18, 1467, 1435, 5717, 1769, 565, 2875, 18, 542, 15470, 12, 5743, 1769, 565, 24048, 6594, 273, 394, 24048, 5621, 565, 6594, 18, 1289, 12, 2704, 21403, 2932, 3391, 22844, 2773, 10019, 565, 6594, 18, 1289, 12, 7358, 1769, 565, 509, 563, 273, 4202, 804, 1895, 8485, 18, 4500, 11269, 6353, 12, 2011, 16, 6594, 16, 315, 22338, 3113, 4766, 565, 804, 1895, 8485, 18, 3141, 67, 25268, 67, 2 ]
DimensionView channelView = connection.createDimensionView(); channelView.setDimension(getDimension(salesCube, "Promotions" /*"Channel"*/)); DimensionView productView = connection.createDimensionView(); productView.setDimension(getDimension(salesCube, "Product")); DimensionView geographyView = connection.createDimensionView(); geographyView.setDimension(getDimension(salesCube, "Gender" /*"Geography"*/)); DimensionView timeView = connection.createDimensionView(); timeView.setDimension(getDimension(salesCube, "Marital Status"/*"Time"*/)); MeasureView measView = connection.createMeasureView();
final Dimension channel = getDimension(salesCube, "Promotions" /*"Channel"*/); DimensionView channelView = connection.createDimensionView(channel); final Dimension prod = getDimension(salesCube, "Product"); DimensionView productView = connection.createDimensionView(prod); final Dimension geog = getDimension(salesCube, "Gender" /*"Geography"*/); DimensionView geographyView = connection.createDimensionView(geog); final Dimension time = getDimension(salesCube, "Marital Status"/*"Time"*/); DimensionView timeView = connection.createDimensionView(time); final Dimension meas = getDimension(salesCube, "Measures"); MeasureView measView = (MeasureView) connection.createDimensionView(meas);
private CubeCursor foo() throws OLAPException { // Create a DimensionView for each dimension Connection connection = getConnection(); Cube salesCube = getCube(connection, "Sales"); DimensionView channelView = connection.createDimensionView(); channelView.setDimension(getDimension(salesCube, "Promotions" /*"Channel"*/)); DimensionView productView = connection.createDimensionView(); productView.setDimension(getDimension(salesCube, "Product")); DimensionView geographyView = connection.createDimensionView(); geographyView.setDimension(getDimension(salesCube, "Gender" /*"Geography"*/)); DimensionView timeView = connection.createDimensionView(); timeView.setDimension(getDimension(salesCube, "Marital Status"/*"Time"*/)); MeasureView measView = connection.createMeasureView(); // jhyde added CubeView query = connection.createCubeView(salesCube); // Create a columns edge and add the time and geography views //EdgeView columns = connection.createEdgeView(); EdgeView columns = query.createOrdinateEdge(); columns.addDimensionView(timeView); columns.addDimensionView(geographyView); // Create a rows edge and add the product view //EdgeView rows = connection.createEdgeView(); EdgeView rows = query.createOrdinateEdge(); rows.addDimensionView(productView); // Create a pages edge and add the channel dimension view //EdgeCursor pages = connection.createDimensionView(); EdgeView pages = query.createPageEdge(); pages.addDimensionView(channelView); pages.addDimensionView(measView); // Create the query cube view and add edges and the measure //CubeView query = connection.createCubeView(); //query.addOrdinateEdge(rows); //query.addOrdinateEdge(columns); //query.addPageEdge(pages); CubeCursor dataCursor = query.createCursor(); //EdgeCursor pageCursor=(List)dataCursor.getPageEdge().elementAt(0); EdgeCursor pageCursor=(EdgeCursor) dataCursor.getPageEdge().iterator().next(); //EdgeCursor rowCursor=(List)dataCursor.getOrdinateEdge().elementAt(0); EdgeCursor columnCursor = (EdgeCursor) dataCursor.getOrdinateEdge().get(0); EdgeCursor rowCursor = (EdgeCursor) dataCursor.getOrdinateEdge().get(1); DimensionCursor measureCursor = (DimensionCursor) pageCursor.getDimensionCursor().get(0); DimensionCursor channelCursor = (DimensionCursor) pageCursor.getDimensionCursor().get(1); DimensionCursor productCursor = (DimensionCursor) rowCursor.getDimensionCursor().get(0); DimensionCursor geographyCursor =(DimensionCursor) columnCursor.getDimensionCursor().get(0); DimensionCursor timeCursor = (DimensionCursor) columnCursor.getDimensionCursor().get(1); columnCursor.setFetchSize(6); rowCursor.setFetchSize(4); return dataCursor; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/7d6a0c3d02156aab207b5017ce3ba65883fef640/JolapTest.java/buggy/src/main/mondrian/test/JolapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 385, 4895, 6688, 8431, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 759, 1788, 279, 13037, 1767, 364, 1517, 4968, 202, 202, 1952, 1459, 273, 6742, 5621, 202, 202, 39, 4895, 272, 5408, 39, 4895, 273, 1927, 4895, 12, 4071, 16, 315, 23729, 8863, 202, 202, 8611, 1767, 1904, 1767, 273, 1459, 18, 2640, 8611, 1767, 5621, 202, 202, 4327, 1767, 18, 542, 8611, 12, 588, 8611, 12, 87, 5408, 39, 4895, 16, 315, 13224, 352, 1115, 6, 1748, 6, 2909, 6, 5549, 10019, 202, 202, 8611, 1767, 3017, 1767, 273, 1459, 18, 2640, 8611, 1767, 5621, 202, 202, 5896, 1767, 18, 542, 8611, 12, 588, 8611, 12, 87, 5408, 39, 4895, 16, 315, 4133, 7923, 1769, 202, 202, 8611, 1767, 8244, 15669, 1767, 273, 1459, 18, 2640, 8611, 1767, 5621, 202, 202, 908, 15669, 1767, 18, 542, 8611, 12, 588, 8611, 12, 87, 5408, 39, 4895, 16, 315, 43, 2345, 6, 1748, 6, 18809, 15669, 6, 5549, 10019, 202, 202, 8611, 1767, 813, 1767, 273, 1459, 18, 2640, 8611, 1767, 5621, 202, 202, 957, 1767, 18, 542, 8611, 12, 588, 8611, 12, 87, 5408, 39, 4895, 16, 315, 49, 297, 7053, 2685, 6, 19, 7388, 950, 6, 5549, 10019, 202, 202, 7197, 1767, 10017, 1767, 273, 1459, 18, 2640, 7197, 1767, 5621, 202, 202, 759, 525, 18112, 323, 3096, 202, 202, 39, 4895, 1767, 843, 273, 1459, 18, 2640, 39, 4895, 1767, 12, 87, 5408, 39, 4895, 1769, 202, 202, 759, 1788, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 385, 4895, 6688, 8431, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 759, 1788, 279, 13037, 1767, 364, 1517, 4968, 202, 202, 1952, 1459, 273, 6742, 5621, 202, 202, 39, 4895, 272, 5408, 39, 4895, 273, 1927, 4895, 12, 4071, 16, 315, 23729, 8863, 202, 202, 8611, 1767, 1904, 1767, 273, 1459, 18, 2640, 8611, 1767, 5621, 202, 202, 4327, 1767, 18, 542, 8611, 12, 588, 8611, 12, 87, 5408, 39, 4895, 16, 315, 13224, 352, 1115, 6, 1748, 6, 2909, 6, 5549, 10019, 202, 202, 8611, 1767, 3017, 1767, 273, 1459, 18, 2640, 8611, 1767, 5621, 202, 202, 5896, 1767, 18, 542, 8611, 12, 588, 8611, 12, 87, 5408, 39, 4895, 16, 315, 4133, 2 ]
prevIndex = childIndex;
prevIndex = cloneIndex;
public void endEntity(String name) throws XNIException { if (fInDocument && !fInDTD && fCreateEntityRefNodes) { if (!fDeferNodeExpansion) { if (fDocumentImpl != null && fDocumentType != null) { NamedNodeMap entities = fDocumentType.getEntities(); NodeImpl entity = (NodeImpl)entities.getNamedItem(name); if (entity != null && entity.getFirstChild() == null) { entity.setReadOnly(false, true); Node child = fCurrentNode.getFirstChild(); while (child != null) { Node copy = child.cloneNode(true); entity.appendChild(copy); child = child.getNextSibling(); } entity.setReadOnly(true, true); entities.setNamedItem(entity); } } fCurrentNode = fCurrentNode.getParentNode(); } else { int entityIndex = -1; int dtChildIndex = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (dtChildIndex != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(dtChildIndex, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(dtChildIndex, false); if (nodeName.equals(name)) { entityIndex = dtChildIndex; break; } } dtChildIndex = fDeferredDocumentImpl.getRealPrevSibling(dtChildIndex, false); } if (entityIndex != -1) { int prevIndex = -1; int childIndex = fDeferredDocumentImpl.getLastChild(fCurrentNodeIndex, false); while (childIndex != -1) { int cloneIndex = fDeferredDocumentImpl.cloneNode(childIndex, true); fDeferredDocumentImpl.insertBefore(entityIndex, cloneIndex, prevIndex); prevIndex = childIndex; childIndex = fDeferredDocumentImpl.getRealPrevSibling(childIndex, false); } } fCurrentNodeIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); } } } // endEntity(String)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d5b61a43c8c737b7d37e8a1d1839aa58a425178a/AbstractDOMParser.java/buggy/src/org/apache/xerces/parsers/AbstractDOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 1943, 12, 780, 508, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 74, 382, 2519, 597, 401, 74, 382, 25728, 597, 284, 1684, 1943, 1957, 3205, 13, 288, 5411, 309, 16051, 74, 758, 586, 907, 2966, 12162, 13, 288, 7734, 309, 261, 74, 2519, 2828, 480, 446, 597, 284, 2519, 559, 480, 446, 13, 288, 10792, 9796, 907, 863, 5140, 273, 284, 2519, 559, 18, 588, 8108, 5621, 10792, 2029, 2828, 1522, 273, 261, 907, 2828, 13, 9996, 18, 588, 7604, 1180, 12, 529, 1769, 10792, 309, 261, 1096, 480, 446, 597, 1522, 18, 588, 3759, 1763, 1435, 422, 446, 13, 288, 13491, 1522, 18, 542, 12066, 12, 5743, 16, 638, 1769, 13491, 2029, 1151, 273, 284, 3935, 907, 18, 588, 3759, 1763, 5621, 13491, 1323, 261, 3624, 480, 446, 13, 288, 18701, 2029, 1610, 273, 1151, 18, 14056, 907, 12, 3767, 1769, 18701, 1522, 18, 6923, 1763, 12, 3530, 1769, 18701, 1151, 273, 1151, 18, 588, 2134, 10291, 5621, 13491, 289, 13491, 1522, 18, 542, 12066, 12, 3767, 16, 638, 1769, 13491, 5140, 18, 542, 7604, 1180, 12, 1096, 1769, 10792, 289, 7734, 289, 7734, 284, 3935, 907, 273, 284, 3935, 907, 18, 588, 3054, 907, 5621, 5411, 289, 5411, 469, 288, 7734, 509, 1522, 1016, 273, 300, 21, 31, 7734, 509, 3681, 1763, 1016, 273, 284, 16886, 2519, 2828, 18, 588, 3024, 1763, 12, 74, 2519, 559, 1016, 16, 629, 1769, 7734, 1323, 261, 7510, 1763, 1016, 480, 300, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 1943, 12, 780, 508, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 74, 382, 2519, 597, 401, 74, 382, 25728, 597, 284, 1684, 1943, 1957, 3205, 13, 288, 5411, 309, 16051, 74, 758, 586, 907, 2966, 12162, 13, 288, 7734, 309, 261, 74, 2519, 2828, 480, 446, 597, 284, 2519, 559, 480, 446, 13, 288, 10792, 9796, 907, 863, 5140, 273, 284, 2519, 559, 18, 588, 8108, 5621, 10792, 2029, 2828, 1522, 273, 261, 907, 2828, 13, 9996, 18, 588, 7604, 1180, 12, 529, 1769, 10792, 309, 261, 1096, 480, 446, 597, 1522, 18, 588, 3759, 1763, 1435, 422, 446, 13, 288, 13491, 1522, 18, 542, 12066, 12, 5743, 16, 638, 1769, 13491, 2 ]
public void set(String key, short s) { set(key, new Short(s));
public void set(String key, boolean b) { set(key, new Boolean(b));
public void set(String key, short s) { set(key, new Short(s)); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/03d1c3dfc05a19bebb9ca5ebd9b78a6299dcf977/Message.java/buggy/src/freenet/io/comm/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 12, 780, 498, 16, 3025, 272, 13, 288, 202, 202, 542, 12, 856, 16, 394, 7925, 12, 87, 10019, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 12, 780, 498, 16, 3025, 272, 13, 288, 202, 202, 542, 12, 856, 16, 394, 7925, 12, 87, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new NameError(runtime, name + " is not struct member");
throw new NameError(getRuntime(), name + " is not struct member");
public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { return values[i]; } } throw new NameError(runtime, name + " is not struct member"); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/buggy/src/org/jruby/RubyStruct.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 336, 1435, 288, 3639, 514, 508, 273, 3099, 18, 588, 3935, 3219, 7675, 588, 3024, 2622, 5621, 3639, 19817, 1076, 3140, 273, 261, 54, 10340, 1076, 13, 3694, 3092, 12, 1106, 951, 9334, 10425, 5990, 972, 8863, 3639, 5452, 87, 18, 291, 5510, 12, 5, 5990, 18, 291, 12616, 9334, 315, 318, 13227, 1958, 8863, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3140, 18, 588, 1782, 5621, 277, 27245, 288, 5411, 309, 261, 5990, 18, 4099, 12, 77, 2934, 345, 5335, 7675, 14963, 12, 529, 3719, 288, 7734, 327, 924, 63, 77, 15533, 5411, 289, 3639, 289, 3639, 604, 394, 25473, 12, 588, 5576, 9334, 508, 397, 315, 353, 486, 1958, 3140, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 336, 1435, 288, 3639, 514, 508, 273, 3099, 18, 588, 3935, 3219, 7675, 588, 3024, 2622, 5621, 3639, 19817, 1076, 3140, 273, 261, 54, 10340, 1076, 13, 3694, 3092, 12, 1106, 951, 9334, 10425, 5990, 972, 8863, 3639, 5452, 87, 18, 291, 5510, 12, 5, 5990, 18, 291, 12616, 9334, 315, 318, 13227, 1958, 8863, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3140, 18, 588, 1782, 5621, 277, 27245, 288, 5411, 309, 261, 5990, 18, 4099, 12, 77, 2934, 345, 5335, 7675, 14963, 12, 529, 3719, 288, 7734, 327, 924, 63, 77, 15533, 5411, 289, 3639, 289, 3639, 604, 394, 25473, 12, 588, 5576, 9334, 508, 397, 315, 353, 486, 1958, 2 ]
writer.output( " " + gnuMakefileSettings.getProject().getCPPOutputDir() + File.separator + current.getFullCPPFileName() );
writer.output( " " + current.getFullCPPFileName() );
public static void generate(GNUMakefileSettings gnuMakefileSettings, Collection peerGenDependencies, Collection proxyGenDependencies) throws java.io.IOException { System.out.println( "generating GNU Makefile for project " + gnuMakefileSettings.getProject().getName() + " ..." ); FormattedFileWriter writer = new FormattedFileWriter( gnuMakefileSettings.getProject().getCPPOutputDir() + File.separator + gnuMakefileSettings.getName() ); writer.outputLine( "INCLUDES= -I. -I$(JNIPP_HOME)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(OS)" ); writer.output( "TARGETTYPE= " ); writer.outputLine( gnuMakefileSettings.getProject().getTargetType().equals( "exe" ) == true ? "consoleapp" : "shlib" ); writer.output( "TARGETNAME= " ); if ( gnuMakefileSettings.getProject().getTargetType().equals( "exe" ) == false ) writer.output( "lib" ); writer.outputLine( gnuMakefileSettings.getProject().getTargetName() ); writer.newLine( 1 ); writer.outputLine( "ifeq ($(TARGETTYPE), shlib)" ); writer.outputLine( "DBGCPPFLAGS= -O0 -g -fPIC -c -Wall $(INCLUDES)" ); writer.outputLine( "RELCPPFLAGS= -O0 -fPIC -c -Wall $(INCLUDES)" ); writer.outputLine( "else" ); writer.outputLine( "DBGCPPFLAGS= -O0 -g -c -Wall $(INCLUDES)" ); writer.outputLine( "RELCPPFLAGS= -O0 -c -Wall $(INCLUDES)" ); writer.outputLine( "endif" ); writer.newLine( 1 ); writer.outputLine( "LIBPATH= -L$(JNIPP_HOME)/lib" ); writer.outputLine( "DBGLIBS= $(LIBPATH) -lJNIPPCore_d" ); writer.outputLine( "RELLIBS= $(LIBPATH) -lJNIPPCore" ); writer.newLine( 1 ); writer.outputLine( "LINKFLAGS=" ); writer.outputLine( "EXT=" ); writer.outputLine( "ifeq ($(TARGETTYPE), shlib)" ); writer.outputLine( "ifeq ($(OS), linux)" ); writer.outputLine( "LINKFLAGS=-shared" ); writer.outputLine( "EXT=.so" ); writer.outputLine( "else" ); writer.outputLine( "SHLIBCMD=-G" ); writer.outputLine( "EXT=.so" ); writer.outputLine( "endif" ); writer.outputLine( "endif" ); writer.newLine( 1 ); writer.outputLine( "%_d.o:\t%.cpp" ); writer.outputLine( "\t\t\tg++ $(DBGCPPFLAGS) $< -o $@" ); writer.newLine( 1 ); writer.outputLine( "%.o:\t%.cpp" ); writer.outputLine( "\t\t\tg++ $(RELCPPFLAGS) $< -o $@" ); writer.newLine( 1 ); writer.output( "SRCS= " ); Iterator depIter = peerGenDependencies.iterator(); while ( depIter.hasNext() == true ) { DependencyData current = (DependencyData) depIter.next(); writer.output( " " + gnuMakefileSettings.getProject().getCPPOutputDir() + File.separator + current.getFullCPPFileName() ); } depIter = proxyGenDependencies.iterator(); while ( depIter.hasNext() == true ) { DependencyData current = (DependencyData) depIter.next(); writer.output( " " + gnuMakefileSettings.getProject().getCPPOutputDir() + File.separator + current.getFullCPPFileName() ); } writer.newLine( 1 ); writer.outputLine( "DBGOBJS=$(patsubst %.cpp, %_d.o, $(SRCS))" ); writer.outputLine( "RELOBJS=$(patsubst %.cpp, %.o, $(SRCS))" ); writer.newLine( 1 ); writer.outputLine( "all:\t\tDebug Release" ); writer.newLine( 1 ); writer.outputLine( "Debug:\tdirs $(DBGOBJS)" ); writer.outputLine( "\t\t\tg++ $(LINKFLAGS) -o Debug/$(TARGETNAME)_d$(EXT) $(DBGOBJS) $(DBGLIBS)" ); writer.newLine( 1 ); writer.outputLine( "Release:\tdirs $(RELOBJS)" ); writer.outputLine( "\t\t\tg++ $(LINKFLAGS) -o Release/$(TARGETNAME)$(EXT) $(RELOBJS) $(RELLIBS)" ); writer.newLine( 1 ); writer.outputLine( "dirs:\t$(dummy)" ); writer.outputLine( "\t\t@mkdir -p Debug" ); writer.outputLine( "\t\t@mkdir -p Release" ); writer.newLine( 1 ); writer.outputLine( "clean:\t$(dummy)" ); writer.outputLine( "\t\t\t@rm -rf Debug" ); writer.outputLine( "\t\t\t@rm -rf Release" ); writer.newLine( 1 ); writer.outputLine( "rebuild: clean Debug Release" ); writer.flush(); writer.close(); }
25817 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25817/cde28279a6d9dabb4cca09806844d124a12aae8d/GNUMakefileGenerator.java/buggy/java/net/sourceforge/jnipp/main/GNUMakefileGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 918, 2103, 12, 43, 6069, 911, 768, 2628, 314, 13053, 6464, 768, 2628, 16, 2200, 4261, 7642, 8053, 16, 2200, 2889, 7642, 8053, 13, 1377, 1216, 2252, 18, 1594, 18, 14106, 282, 288, 202, 202, 3163, 18, 659, 18, 8222, 12, 315, 3441, 1776, 611, 50, 57, 4344, 768, 364, 1984, 315, 397, 314, 13053, 6464, 768, 2628, 18, 588, 4109, 7675, 17994, 1435, 397, 315, 18483, 11272, 1377, 4077, 2344, 812, 2289, 2633, 273, 394, 4077, 2344, 812, 2289, 12, 314, 13053, 6464, 768, 2628, 18, 588, 4109, 7675, 588, 4258, 52, 1447, 1621, 1435, 397, 1387, 18, 11287, 397, 314, 13053, 6464, 768, 2628, 18, 17994, 1435, 225, 11272, 1377, 2633, 18, 2844, 1670, 12, 315, 26003, 55, 33, 300, 45, 18, 300, 45, 8, 12, 46, 50, 2579, 52, 67, 14209, 13176, 6702, 300, 45, 8, 12, 27264, 67, 14209, 13176, 6702, 300, 45, 8, 12, 27264, 67, 14209, 13176, 6702, 11141, 12, 4618, 2225, 11272, 202, 202, 6299, 18, 2844, 12, 315, 56, 28847, 30651, 33, 315, 11272, 1377, 2633, 18, 2844, 1670, 12, 314, 13053, 6464, 768, 2628, 18, 588, 4109, 7675, 588, 2326, 559, 7675, 14963, 12, 315, 14880, 6, 262, 422, 638, 692, 315, 8698, 2910, 6, 294, 315, 674, 2941, 6, 11272, 202, 202, 6299, 18, 2844, 12, 315, 16374, 1985, 33, 315, 11272, 202, 202, 430, 261, 314, 13053, 6464, 768, 2628, 18, 588, 4109, 7675, 588, 2326, 559, 7675, 14963, 12, 315, 14880, 6, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 918, 2103, 12, 43, 6069, 911, 768, 2628, 314, 13053, 6464, 768, 2628, 16, 2200, 4261, 7642, 8053, 16, 2200, 2889, 7642, 8053, 13, 1377, 1216, 2252, 18, 1594, 18, 14106, 282, 288, 202, 202, 3163, 18, 659, 18, 8222, 12, 315, 3441, 1776, 611, 50, 57, 4344, 768, 364, 1984, 315, 397, 314, 13053, 6464, 768, 2628, 18, 588, 4109, 7675, 17994, 1435, 397, 315, 18483, 11272, 1377, 4077, 2344, 812, 2289, 2633, 273, 394, 4077, 2344, 812, 2289, 12, 314, 13053, 6464, 768, 2628, 18, 588, 4109, 7675, 588, 4258, 52, 1447, 1621, 1435, 397, 1387, 18, 11287, 397, 314, 13053, 6464, 768, 2628, 18, 17994, 1435, 225, 11272, 1377, 2633, 18, 2844, 1670, 2 ]
int c;
protected int dotNumber() throws IOException { int c; loop: for (;;) { switch (c = inputBuffer.next()) { default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(c, false); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/85be5d4d89c40bf1087b17bab02388ef62bfe449/Scanner.java/buggy/sources/org/apache/batik/css/parser/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 3928, 1854, 1435, 1216, 1860, 288, 9079, 2798, 30, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 810, 1892, 18, 4285, 10756, 288, 5411, 805, 30, 7734, 898, 2798, 31, 5411, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 5411, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 5411, 289, 3639, 289, 3639, 327, 1300, 2802, 12, 71, 16, 629, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 3928, 1854, 1435, 1216, 1860, 288, 9079, 2798, 30, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 810, 1892, 18, 4285, 10756, 288, 5411, 805, 30, 7734, 898, 2798, 31, 5411, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 5411, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 5411, 289, 3639, 289, 3639, 327, 1300, 2802, 12, 71, 16, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) {
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) {
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { // HACK +++ try { // HACK --- return getCallbackMethod().execute(recv, args, ruby); // HACK +++ } catch (RaiseException rrExcptn) { System.out.print("[BUG] Cannot call method \"" + id.toName() + "\". "); System.out.println(rrExcptn.getMessage()); return ruby.getNil(); } // HACK --- }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f629550c5947df9c1dbe414645f3dc76bcb70df4/CFuncNode.java/buggy/org/jruby/nodes/CFuncNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 548, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 3639, 368, 670, 3649, 965, 15, 3639, 775, 288, 3639, 368, 670, 3649, 9948, 5411, 327, 28667, 1305, 7675, 8837, 12, 18334, 16, 833, 16, 22155, 1769, 3639, 368, 670, 3649, 965, 15, 3639, 289, 1044, 261, 30570, 503, 8354, 29924, 337, 82, 13, 288, 5411, 2332, 18, 659, 18, 1188, 2932, 63, 4827, 65, 14143, 745, 707, 11843, 397, 612, 18, 869, 461, 1435, 397, 7023, 18, 315, 1769, 5411, 2332, 18, 659, 18, 8222, 12, 523, 29924, 337, 82, 18, 24906, 10663, 13491, 327, 22155, 18, 588, 12616, 5621, 3639, 289, 3639, 368, 670, 3649, 9948, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 548, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 3639, 368, 670, 3649, 965, 15, 3639, 775, 288, 3639, 368, 670, 3649, 9948, 5411, 327, 28667, 1305, 7675, 8837, 12, 18334, 16, 833, 16, 22155, 1769, 3639, 368, 670, 3649, 965, 15, 3639, 289, 1044, 261, 30570, 503, 8354, 29924, 337, 82, 13, 288, 5411, 2332, 18, 659, 18, 1188, 2932, 63, 4827, 65, 14143, 745, 707, 11843, 397, 612, 18, 869, 461, 1435, 397, 7023, 18, 315, 1769, 5411, 2332, 18, 659, 18, 8222, 12, 523, 29924, 337, 82, 18, 24906, 10663, 13491, 327, 22155, 18, 588, 12616, 5621, 3639, 2 ]
ResourceBundle.getBundle( Messages.ENGINE ) );
ResourceBundle.getBundle( Messages.ENGINE, Locale.getDefault( ) ) );
public void draw( IDeviceRenderer idr ) throws ChartException { throw new ChartException( ChartEnginePlugin.ID, ChartException.UNSUPPORTED_FEATURE, "exception.unsupported.internal.draw", //$NON-NLS-1$ new Object[]{ this }, ResourceBundle.getBundle( Messages.ENGINE ) ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2d20506054849c42d48678ae5d0e59f9c37d95e8/PrimitiveRenderEvent.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/PrimitiveRenderEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3724, 12, 467, 3654, 6747, 612, 86, 262, 1216, 14804, 503, 202, 95, 202, 202, 12849, 394, 14804, 503, 12, 14804, 4410, 3773, 18, 734, 16, 9506, 202, 7984, 503, 18, 2124, 21134, 67, 18257, 16, 9506, 202, 6, 4064, 18, 24666, 18, 7236, 18, 9446, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 4697, 202, 2704, 1033, 63, 7073, 6862, 202, 2211, 9506, 202, 5779, 9506, 202, 18731, 18, 588, 3405, 12, 4838, 18, 28980, 262, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3724, 12, 467, 3654, 6747, 612, 86, 262, 1216, 14804, 503, 202, 95, 202, 202, 12849, 394, 14804, 503, 12, 14804, 4410, 3773, 18, 734, 16, 9506, 202, 7984, 503, 18, 2124, 21134, 67, 18257, 16, 9506, 202, 6, 4064, 18, 24666, 18, 7236, 18, 9446, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 4697, 202, 2704, 1033, 63, 7073, 6862, 202, 2211, 9506, 202, 5779, 9506, 202, 18731, 18, 588, 3405, 12, 4838, 18, 28980, 262, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static void main(String[] args){ LDMLComparator comparator = new LDMLComparator(); comparator.processArgs(args); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/a7ecf5985bb7d457d4ab7b62e1ad77cb5e96fbef/LDMLComparator.java/buggy/tools/java/org/unicode/cldr/icu/LDMLComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 5254, 12, 780, 8526, 1968, 15329, 12069, 1495, 5559, 832, 2528, 33, 2704, 12069, 1495, 5559, 5621, 832, 2528, 18, 2567, 2615, 12, 1968, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 5254, 12, 780, 8526, 1968, 15329, 12069, 1495, 5559, 832, 2528, 33, 2704, 12069, 1495, 5559, 5621, 832, 2528, 18, 2567, 2615, 12, 1968, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; backupChanged = input.hasChanged(); backupUpdate = input.isUpdate(); backupAutoInc = input.isAutoIncrement(); ci = input.getDatabaseMeta(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("DimensionLookupDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; int width = Const.RIGHT; // Stepname line wlStepname=new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("DimensionLookupDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname=new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right= new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname=new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right= new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); wTabFolder = new CTabFolder(shell, SWT.BORDER); props.setLook(wTabFolder, Props.WIDGET_STYLE_TAB); ////////////////////////// // START OF TABLE TAB/// /// wTableTab=new CTabItem(wTabFolder, SWT.NONE); wTableTab.setText(Messages.getString("DimensionLookupDialog.TableTab.Title")); //$NON-NLS-1$ Composite wTableComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wTableComp); FormLayout tableLayout = new FormLayout(); tableLayout.marginWidth = 3; tableLayout.marginHeight = 3; wTableComp.setLayout(tableLayout); // Connection line wConnection = addConnectionLine(wTableComp, null, middle, margin); if (input.getDatabaseMeta()==null && transMeta.nrDatabases()==1) wConnection.select(0); wConnection.addModifyListener(lsMod); wConnection.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { // We have new content: change ci connection: ci = transMeta.findDatabase(wConnection.getText()); setFlags(); } }); // Table line... wlTable=new Label(wTableComp, SWT.RIGHT); wlTable.setText(Messages.getString("DimensionLookupDialog.TargeTable.Label")); //$NON-NLS-1$ props.setLook(wlTable); fdlTable=new FormData(); fdlTable.left = new FormAttachment(0, 0); fdlTable.right= new FormAttachment(middle, -margin); fdlTable.top = new FormAttachment(wConnection, margin); wlTable.setLayoutData(fdlTable); wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER); props.setLook(wbTable); wbTable.setText(Messages.getString("DimensionLookupDialog.Browse.Button")); //$NON-NLS-1$ fdbTable=new FormData(); fdbTable.right= new FormAttachment(100, 0); fdbTable.top = new FormAttachment(wConnection, margin); wbTable.setLayoutData(fdbTable); wTable=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTable); wTable.addModifyListener(lsMod); fdTable=new FormData(); fdTable.left = new FormAttachment(middle, 0); fdTable.top = new FormAttachment(wConnection, margin); fdTable.right= new FormAttachment(wbTable, 0); wTable.setLayoutData(fdTable); // Commit size ... wlCommit=new Label(wTableComp, SWT.RIGHT); wlCommit.setText(Messages.getString("DimensionLookupDialog.Commit.Label")); //$NON-NLS-1$ props.setLook(wlCommit); fdlCommit=new FormData(); fdlCommit.left = new FormAttachment(0, 0); fdlCommit.right= new FormAttachment(middle, -margin); fdlCommit.top = new FormAttachment(wTable, margin); wlCommit.setLayoutData(fdlCommit); wCommit=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wCommit); wCommit.addModifyListener(lsMod); fdCommit=new FormData(); fdCommit.left = new FormAttachment(middle, 0); fdCommit.top = new FormAttachment(wTable, margin); fdCommit.right= new FormAttachment(100, 0); wCommit.setLayoutData(fdCommit); // Technical key field: wlTk=new Label(wTableComp, SWT.RIGHT); wlTk.setText(Messages.getString("DimensionLookupDialog.TechnicalKeyField.Label")); //$NON-NLS-1$ props.setLook(wlTk); fdlTk=new FormData(); fdlTk.left = new FormAttachment(0, 0); fdlTk.right= new FormAttachment(middle, -margin); fdlTk.top = new FormAttachment(wCommit, margin); wlTk.setLayoutData(fdlTk); wTk=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTk); wTk.addModifyListener(lsMod); fdTk=new FormData(); fdTk.left = new FormAttachment(middle, 0); fdTk.top = new FormAttachment(wCommit, margin); fdTk.right= new FormAttachment(50+middle/2, 0); wTk.setLayoutData(fdTk); wlTkRename=new Label(wTableComp, SWT.RIGHT); wlTkRename.setText(Messages.getString("DimensionLookupDialog.NewName.Label")); //$NON-NLS-1$ props.setLook(wlTkRename); fdlTkRename=new FormData(); fdlTkRename.left = new FormAttachment(50+middle/2, margin); fdlTkRename.top = new FormAttachment(wCommit, margin); wlTkRename.setLayoutData(fdlTkRename); wTkRename=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTkRename); wTkRename.addModifyListener(lsMod); fdTkRename=new FormData(); fdTkRename.left = new FormAttachment(wlTkRename, margin); fdTkRename.top = new FormAttachment(wCommit, margin); fdTkRename.right= new FormAttachment(100, 0); wTkRename.setLayoutData(fdTkRename); // Use an autoincrement field? wlAutoinc=new Label(wTableComp, SWT.RIGHT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.AutoInc.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); fdlAutoinc=new FormData(); fdlAutoinc.left = new FormAttachment(0, 0); fdlAutoinc.right= new FormAttachment(middle, -margin); fdlAutoinc.top = new FormAttachment(wTk, margin); wlAutoinc.setLayoutData(fdlAutoinc); wAutoinc=new Button(wTableComp, SWT.CHECK); props.setLook(wAutoinc); fdAutoinc=new FormData(); fdAutoinc.left = new FormAttachment(middle, 0); fdAutoinc.top = new FormAttachment(wTk, margin); fdAutoinc.right= new FormAttachment(100, 0); wAutoinc.setLayoutData(fdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoInc.ToolTip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ // Clicking on update changes the options in the update combo boxes! wAutoinc.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setAutoIncrement( !input.isAutoIncrement() ); input.setChanged(); setFlags(); } } ); // Sequence key field: wlSeq=new Label(wTableComp, SWT.RIGHT); wlSeq.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeq); fdlSeq=new FormData(); fdlSeq.left = new FormAttachment(0, 0); fdlSeq.right= new FormAttachment(middle, -margin); fdlSeq.top = new FormAttachment(wlAutoinc, margin); wlSeq.setLayoutData(fdlSeq); wSeq=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); fdSeq=new FormData(); fdSeq.left = new FormAttachment(middle, 0); fdSeq.top = new FormAttachment(wlAutoinc, margin); fdSeq.right= new FormAttachment(100, 0); wSeq.setLayoutData(fdSeq); // Version key field: wlVersion=new Label(wTableComp, SWT.RIGHT); wlVersion.setText(Messages.getString("DimensionLookupDialog.Version.Label")); //$NON-NLS-1$ props.setLook(wlVersion); fdlVersion=new FormData(); fdlVersion.left = new FormAttachment(0, 0); fdlVersion.right= new FormAttachment(middle, -margin); fdlVersion.top = new FormAttachment(wSeq, margin); wlVersion.setLayoutData(fdlVersion); wVersion=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wVersion); wVersion.addModifyListener(lsMod); fdVersion=new FormData(); fdVersion.left = new FormAttachment(middle, 0); fdVersion.top = new FormAttachment(wSeq, margin); fdVersion.right= new FormAttachment(100, 0); wVersion.setLayoutData(fdVersion); // Datefield line wlDatefield=new Label(wTableComp, SWT.RIGHT); wlDatefield.setText(Messages.getString("DimensionLookupDialog.Datefield.Label")); //$NON-NLS-1$ props.setLook(wlDatefield); fdlDatefield=new FormData(); fdlDatefield.left = new FormAttachment(0, 0); fdlDatefield.right= new FormAttachment(middle, -margin); fdlDatefield.top = new FormAttachment(wVersion, margin); wlDatefield.setLayoutData(fdlDatefield); wDatefield=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wDatefield); wDatefield.addModifyListener(lsMod); fdDatefield=new FormData(); fdDatefield.left = new FormAttachment(middle, 0); fdDatefield.top = new FormAttachment(wVersion, margin); fdDatefield.right= new FormAttachment(100, 0); wDatefield.setLayoutData(fdDatefield); // Fromdate line // // 0 [wlFromdate] middle [wFromdate] (100-middle)/3 [wlMinyear] 2*(100-middle)/3 [wMinyear] 100% // wlFromdate=new Label(wTableComp, SWT.RIGHT); wlFromdate.setText(Messages.getString("DimensionLookupDialog.Fromdate.Label")); //$NON-NLS-1$ props.setLook(wlFromdate); fdlFromdate=new FormData(); fdlFromdate.left = new FormAttachment(0, 0); fdlFromdate.right= new FormAttachment(middle, -margin); fdlFromdate.top = new FormAttachment(wDatefield, margin); wlFromdate.setLayoutData(fdlFromdate); wFromdate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wFromdate); wFromdate.addModifyListener(lsMod); fdFromdate=new FormData(); fdFromdate.left = new FormAttachment(middle, 0); fdFromdate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdFromdate.top = new FormAttachment(wDatefield, margin); wFromdate.setLayoutData(fdFromdate); // Minyear line wlMinyear=new Label(wTableComp, SWT.RIGHT); wlMinyear.setText(Messages.getString("DimensionLookupDialog.Minyear.Label")); //$NON-NLS-1$ props.setLook(wlMinyear); fdlMinyear=new FormData(); fdlMinyear.left = new FormAttachment(wFromdate, margin); fdlMinyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMinyear.top = new FormAttachment(wDatefield, margin); wlMinyear.setLayoutData(fdlMinyear); wMinyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMinyear); wMinyear.addModifyListener(lsMod); fdMinyear=new FormData(); fdMinyear.left = new FormAttachment(wlMinyear, margin); fdMinyear.right= new FormAttachment(100, 0); fdMinyear.top = new FormAttachment(wDatefield, margin); wMinyear.setLayoutData(fdMinyear); wMinyear.setToolTipText(Messages.getString("DimensionLookupDialog.Minyear.ToolTip")); //$NON-NLS-1$ // Todate line wlTodate=new Label(wTableComp, SWT.RIGHT); wlTodate.setText(Messages.getString("DimensionLookupDialog.Todate.Label")); //$NON-NLS-1$ props.setLook(wlTodate); fdlTodate=new FormData(); fdlTodate.left = new FormAttachment(0, 0); fdlTodate.right= new FormAttachment(middle, -margin); fdlTodate.top = new FormAttachment(wFromdate, margin); wlTodate.setLayoutData(fdlTodate); wTodate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTodate); wTodate.addModifyListener(lsMod); fdTodate=new FormData(); fdTodate.left = new FormAttachment(middle, 0); fdTodate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdTodate.top = new FormAttachment(wFromdate, margin); wTodate.setLayoutData(fdTodate); // Maxyear line wlMaxyear=new Label(wTableComp, SWT.RIGHT); wlMaxyear.setText(Messages.getString("DimensionLookupDialog.Maxyear.Label")); //$NON-NLS-1$ props.setLook(wlMaxyear); fdlMaxyear=new FormData(); fdlMaxyear.left = new FormAttachment(wTodate, margin); fdlMaxyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMaxyear.top = new FormAttachment(wFromdate, margin); wlMaxyear.setLayoutData(fdlMaxyear); wMaxyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMaxyear); wMaxyear.addModifyListener(lsMod); fdMaxyear=new FormData(); fdMaxyear.left = new FormAttachment(wlMaxyear, margin); fdMaxyear.right= new FormAttachment(100, 0); fdMaxyear.top = new FormAttachment(wFromdate, margin); wMaxyear.setLayoutData(fdMaxyear); wMaxyear.setToolTipText(Messages.getString("DimensionLookupDialog.Maxyear.ToolTip")); //$NON-NLS-1$ // Update the dimension? wlUpdate=new Label(wTableComp, SWT.RIGHT); wlUpdate.setText(Messages.getString("DimensionLookupDialog.Update.Label")); //$NON-NLS-1$ props.setLook(wlUpdate); fdlUpdate=new FormData(); fdlUpdate.left = new FormAttachment(0, 0); fdlUpdate.right= new FormAttachment(middle, -margin); fdlUpdate.top = new FormAttachment(wMaxyear, margin); wlUpdate.setLayoutData(fdlUpdate); wUpdate=new Button(wTableComp, SWT.CHECK); props.setLook(wUpdate); fdUpdate=new FormData(); fdUpdate.left = new FormAttachment(middle, 0); fdUpdate.right= new FormAttachment(0, middle+width); fdUpdate.top = new FormAttachment(wMaxyear, margin); wUpdate.setLayoutData(fdUpdate); fdTableComp=new FormData(); fdTableComp.left = new FormAttachment(0, 0); fdTableComp.top = new FormAttachment(0, 0); fdTableComp.right = new FormAttachment(100, 0); fdTableComp.bottom= new FormAttachment(100, 0); wTableComp.setLayoutData(fdTableComp); wTableComp.layout(); wTableTab.setControl(wTableComp); ///////////////////////////////////////////////////////////// /// END OF TABLE TAB ///////////////////////////////////////////////////////////// ////////////////////////// // START OF KEY TAB /// /// wKeyTab=new CTabItem(wTabFolder, SWT.NONE); wKeyTab.setText(Messages.getString("DimensionLookupDialog.KeyTab.CTabItem")); //$NON-NLS-1$ FormLayout keyLayout = new FormLayout (); keyLayout.marginWidth = 3; keyLayout.marginHeight = 3; Composite wKeyComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wKeyComp); wKeyComp.setLayout(keyLayout); // The Lookup fields: usualy the key // wlKey=new Label(wKeyComp, SWT.NONE); wlKey.setText(Messages.getString("DimensionLookupDialog.KeyFields.Label")); //$NON-NLS-1$ props.setLook(wlKey); fdlKey=new FormData(); fdlKey.left = new FormAttachment(0, 0); fdlKey.top = new FormAttachment(0, margin); fdlKey.right = new FormAttachment(100, 0); wlKey.setLayoutData(fdlKey); int nrKeyCols=2; int nrKeyRows=(input.getKeyStream()!=null?input.getKeyStream().length:1); ColumnInfo[] ciKey=new ColumnInfo[nrKeyCols]; ciKey[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciKey[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.FieldInStream"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ wKey=new TableView(wKeyComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciKey, nrKeyRows, lsMod, props ); fdKey=new FormData(); fdKey.left = new FormAttachment(0, 0); fdKey.top = new FormAttachment(wlKey, margin); fdKey.right = new FormAttachment(100, 0); fdKey.bottom= new FormAttachment(100, 0); wKey.setLayoutData(fdKey); fdKeyComp = new FormData(); fdKeyComp.left = new FormAttachment(0, 0); fdKeyComp.top = new FormAttachment(0, 0); fdKeyComp.right = new FormAttachment(100, 0); fdKeyComp.bottom= new FormAttachment(100, 0); wKeyComp.setLayoutData(fdKeyComp); wKeyComp.layout(); wKeyTab.setControl(wKeyComp); ///////////////////////////////////////////////////////////// /// END OF KEY TAB ///////////////////////////////////////////////////////////// // Fields tab... // wFieldsTab = new CTabItem(wTabFolder, SWT.NONE); wFieldsTab.setText(Messages.getString("DimensionLookupDialog.FieldsTab.CTabItem.Title")); //$NON-NLS-1$ FormLayout fieldsLayout = new FormLayout (); fieldsLayout.marginWidth = Const.FORM_MARGIN; fieldsLayout.marginHeight = Const.FORM_MARGIN; Composite wFieldsComp = new Composite(wTabFolder, SWT.NONE); wFieldsComp.setLayout(fieldsLayout); props.setLook(wFieldsComp); wGet=new Button(wFieldsComp, SWT.PUSH); wGet.setText(Messages.getString("DimensionLookupDialog.GetFields.Button")); //$NON-NLS-1$ setButtonPositions(new Button[] { wGet }, margin, null); // THE UPDATE/INSERT TABLE wlUpIns=new Label(wFieldsComp, SWT.NONE); wlUpIns.setText(Messages.getString("DimensionLookupDialog.UpdateOrInsertFields.Label")); //$NON-NLS-1$ props.setLook(wlUpIns); fdlUpIns=new FormData(); fdlUpIns.left = new FormAttachment(0, 0); fdlUpIns.top = new FormAttachment(0, margin); wlUpIns.setLayoutData(fdlUpIns); int UpInsCols=3; int UpInsRows= (input.getFieldStream()!=null?input.getFieldStream().length:1); final ColumnInfo[] ciUpIns=new ColumnInfo[UpInsCols]; ciUpIns[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.StreamField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[2]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.TypeOfDimensionUpdate"), ColumnInfo.COLUMN_TYPE_CCOMBO, input.isUpdate()?DimensionLookupMeta.typeDesc:DimensionLookupMeta.typeDescLookup ); //$NON-NLS-1$ wUpIns=new TableView(wFieldsComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciUpIns, UpInsRows, lsMod, props ); fdUpIns=new FormData(); fdUpIns.left = new FormAttachment(0, 0); fdUpIns.top = new FormAttachment(wlUpIns, margin); fdUpIns.right = new FormAttachment(100, 0); fdUpIns.bottom= new FormAttachment(wGet, -margin); wUpIns.setLayoutData(fdUpIns); // Clicking on update changes the options in the update combo boxes! wUpdate.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setUpdate(!input.isUpdate()); input.setChanged(); setFlags(); } } ); fdFieldsComp=new FormData(); fdFieldsComp.left = new FormAttachment(0, 0); fdFieldsComp.top = new FormAttachment(0, 0); fdFieldsComp.right = new FormAttachment(100, 0); fdFieldsComp.bottom= new FormAttachment(100, 0); wFieldsComp.setLayoutData(fdFieldsComp); wFieldsComp.layout(); wFieldsTab.setControl(wFieldsComp); fdTabFolder = new FormData(); fdTabFolder.left = new FormAttachment(0, 0); fdTabFolder.top = new FormAttachment(wStepname, margin); fdTabFolder.right = new FormAttachment(100, 0); fdTabFolder.bottom= new FormAttachment(100, -50); wTabFolder.setLayoutData(fdTabFolder); // THE BUTTONS wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("DimensionLookupDialog.OK.Button")); //$NON-NLS-1$ wCreate=new Button(shell, SWT.PUSH); wCreate.setText(Messages.getString("DimensionLookupDialog.SQL.Button")); //$NON-NLS-1$ wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wCreate, wCancel }, margin, wTabFolder); // Add listeners lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; lsGet = new Listener() { public void handleEvent(Event e) { get(); } }; lsCreate = new Listener() { public void handleEvent(Event e) { create(); } }; lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; wOK.addListener (SWT.Selection, lsOK ); wGet.addListener (SWT.Selection, lsGet ); wCreate.addListener(SWT.Selection, lsCreate); wCancel.addListener(SWT.Selection, lsCancel); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener( lsDef ); wTable.addSelectionListener( lsDef ); wCommit.addSelectionListener( lsDef ); wTk.addSelectionListener( lsDef ); wTkRename.addSelectionListener( lsDef ); wSeq.addSelectionListener( lsDef ); wVersion.addSelectionListener( lsDef ); wDatefield.addSelectionListener( lsDef ); wFromdate.addSelectionListener( lsDef ); wMinyear.addSelectionListener( lsDef ); wTodate.addSelectionListener( lsDef ); wMaxyear.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); wbTable.addSelectionListener ( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getTableName(); } } ); wTabFolder.setSelection(0); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(backupChanged); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/312d11d9d7c16d79250c06a295e2c59ee1d3e818/DimensionLookupDialog.java/buggy/src/be/ibridge/kettle/trans/step/dimensionlookup/DimensionLookupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 6694, 571, 348, 8588, 18, 6236, 1769, 3196, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 202, 202, 11047, 2223, 7180, 1739, 273, 394, 9518, 2223, 1435, 3196, 202, 95, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1875, 202, 95, 9506, 202, 2630, 18, 542, 5033, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 9572, 5033, 273, 810, 18, 5332, 5033, 5621, 202, 202, 9572, 1891, 273, 810, 18, 291, 1891, 5621, 202, 202, 9572, 4965, 14559, 273, 810, 18, 291, 4965, 10798, 5621, 202, 202, 8450, 273, 810, 18, 588, 4254, 2781, 5621, 202, 202, 1204, 3744, 646, 3744, 273, 394, 2748, 3744, 261, 1769, 202, 202, 687, 3744, 18, 10107, 2384, 225, 273, 9333, 18, 4983, 67, 19772, 7702, 31, 202, 202, 687, 3744, 18, 10107, 2686, 273, 9333, 18, 4983, 67, 19772, 7702, 31, 202, 202, 10304, 18, 542, 3744, 12, 687, 3744, 1769, 202, 202, 10304, 18, 542, 1528, 12, 5058, 18, 588, 780, 2932, 8611, 6609, 6353, 18, 13220, 18, 4247, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 474, 7689, 273, 3458, 18, 588, 21924, 52, 299, 5621, 202, 202, 474, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 571, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 6694, 571, 348, 8588, 18, 6236, 1769, 3196, 202, 9693, 18, 542, 9794, 12, 10304, 1769, 202, 202, 11047, 2223, 7180, 1739, 273, 394, 9518, 2223, 1435, 3196, 202, 95, 1082, 202, 482, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 1875, 202, 95, 9506, 202, 2630, 18, 542, 5033, 5621, 1082, 202, 97, 202, 202, 20451, 202, 202, 9572, 5033, 273, 810, 18, 5332, 5033, 5621, 2 ]
logger.debug ("lookupAssetConsumptionRate()");
if (logger.isDebugEnabled()) logger.debug ("lookupAssetConsumptionRate()");
public Vector lookupAssetConsumptionRate(Asset asset, String asset_type, String service, String theater) { logger.debug ("lookupAssetConsumptionRate()"); String query = createACRQuery (asset, asset_type, service, theater); if (query == null) { logger.error("lookupAssetConsumptionRate() Invalid ACR query for "+ asset_type+service); return null; } // if logger.debug("lookupAssetConsumptionRate() ACR query for "+ asset_type+service+" = "+query); Vector result; try { result = executeQuery (query); logger.debug ("in lookupAssetConsumptionRate() query complete for asset "+ asset.getTypeIdentificationPG().getNomenclature()+ "\nquery= "+query); if (result.isEmpty()) { logger.debug ("no result for asset " + asset.getTypeIdentificationPG().getNomenclature()); return null; } // if } catch (Exception ee) { logger.error ( "in lookupAssetConsumptionRate(), DB query failed.Query= "+query); return null; } // try// return parseACRResults (result, asset_type); return result; } // lookupAssetConsumptionRate
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/ba7ac6390e550f4c0b2729063237f04f3450b222/MEIPrototypeProvider.java/clean/bbn/src/org/cougaar/logistics/ldm/MEIPrototypeProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5589, 3689, 6672, 11911, 375, 4727, 12, 6672, 3310, 16, 514, 3310, 67, 723, 16, 4766, 6647, 514, 1156, 16, 514, 326, 2045, 13, 288, 565, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 1194, 18, 4148, 7566, 8664, 6672, 11911, 375, 4727, 1435, 8863, 565, 514, 843, 273, 752, 2226, 54, 1138, 261, 9406, 16, 3310, 67, 723, 16, 1156, 16, 326, 2045, 1769, 565, 309, 261, 2271, 422, 446, 13, 288, 1377, 1194, 18, 1636, 2932, 8664, 6672, 11911, 375, 4727, 1435, 1962, 432, 5093, 843, 364, 13773, 10402, 3310, 67, 723, 15, 3278, 1769, 1377, 327, 446, 31, 565, 289, 368, 309, 565, 1194, 18, 4148, 2932, 8664, 6672, 11911, 375, 4727, 1435, 432, 5093, 843, 364, 13773, 1171, 3310, 67, 723, 15, 3278, 9078, 273, 13773, 2271, 1769, 565, 5589, 563, 31, 565, 775, 288, 1377, 563, 273, 14304, 261, 2271, 1769, 1377, 1194, 18, 4148, 7566, 267, 3689, 6672, 11911, 375, 4727, 1435, 843, 3912, 364, 3310, 13773, 10792, 3310, 18, 588, 559, 24371, 18679, 7675, 588, 26685, 275, 830, 1231, 1435, 15, 10792, 1548, 82, 2271, 33, 13773, 2271, 1769, 1377, 309, 261, 2088, 18, 291, 1921, 10756, 288, 3639, 1194, 18, 4148, 7566, 2135, 563, 364, 3310, 315, 397, 8227, 3310, 18, 588, 559, 24371, 18679, 7675, 588, 26685, 275, 830, 1231, 10663, 3639, 327, 446, 31, 1377, 289, 368, 309, 565, 289, 1044, 261, 503, 14657, 13, 288, 1377, 1194, 18, 1636, 261, 315, 267, 3689, 6672, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5589, 3689, 6672, 11911, 375, 4727, 12, 6672, 3310, 16, 514, 3310, 67, 723, 16, 4766, 6647, 514, 1156, 16, 514, 326, 2045, 13, 288, 565, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 1194, 18, 4148, 7566, 8664, 6672, 11911, 375, 4727, 1435, 8863, 565, 514, 843, 273, 752, 2226, 54, 1138, 261, 9406, 16, 3310, 67, 723, 16, 1156, 16, 326, 2045, 1769, 565, 309, 261, 2271, 422, 446, 13, 288, 1377, 1194, 18, 1636, 2932, 8664, 6672, 11911, 375, 4727, 1435, 1962, 432, 5093, 843, 364, 13773, 10402, 3310, 67, 723, 15, 3278, 1769, 1377, 327, 446, 31, 565, 289, 368, 309, 565, 1194, 18, 4148, 2932, 8664, 6672, 11911, 375, 4727, 1435, 432, 2 ]
public Object reify(MethodCall c) throws InvocationTargetException { /* result will be a stub on a proxy for group representing the group of results */ Object result = null; /* A barrier of synchronisation (facultative) to be sur that all eventual previous calls are done */
public Object reify(MethodCall c) throws InvocationTargetException { /* result will be a stub on a proxy for group representing the group of results */ Object result = null;
public Object reify(MethodCall c) throws InvocationTargetException { /* result will be a stub on a proxy for group representing the group of results */ Object result = null; /* A barrier of synchronisation (facultative) to be sur that all eventual previous calls are done */ //this.waitForAllCallsDone(); /* if OneWay : do not construct result */ if (AbstractProxy.isOneWayCall(c)) { oneWayCallOnGroup(c); } /* if the call is asynchronous the group of result will be a group a future */ else // with group : SYNC == ASYNC !!!! { result = asynchronousCallOnGroup(c); } /* A barrier of synchronisation to be sur that all calls are done before continuing the execution */ this.waitForAllCallsDone(); return result; }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/b5b6b2bb6ded96a8d2ca2db6f12836cec349b290/ProxyForGroup.java/clean/src/org/objectweb/proactive/core/group/ProxyForGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 283, 1164, 12, 12592, 276, 13, 1171, 1216, 15342, 288, 3639, 1748, 563, 903, 506, 279, 7168, 603, 279, 2889, 364, 1041, 5123, 326, 1041, 434, 1686, 1195, 3639, 1033, 563, 273, 446, 31, 3639, 1748, 432, 24651, 434, 3248, 10742, 261, 11639, 406, 1535, 13, 358, 506, 5056, 716, 777, 871, 1462, 2416, 4097, 854, 2731, 1195, 3639, 368, 2211, 18, 7048, 1290, 1595, 10125, 7387, 5621, 3639, 1748, 309, 6942, 21831, 294, 741, 486, 4872, 563, 1195, 3639, 309, 261, 7469, 3886, 18, 291, 3335, 21831, 1477, 12, 71, 3719, 288, 5411, 1245, 21831, 1477, 1398, 1114, 12, 71, 1769, 3639, 289, 1748, 309, 326, 745, 353, 9007, 326, 1041, 434, 563, 903, 506, 279, 1041, 279, 3563, 1195, 540, 469, 540, 368, 598, 1041, 294, 7068, 10346, 422, 5355, 31301, 401, 25885, 540, 288, 5411, 563, 273, 9007, 1477, 1398, 1114, 12, 71, 1769, 3639, 289, 3639, 1748, 432, 24651, 434, 3248, 10742, 358, 506, 5056, 716, 777, 4097, 854, 2731, 1865, 29702, 326, 4588, 1195, 3639, 333, 18, 7048, 1290, 1595, 10125, 7387, 5621, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 283, 1164, 12, 12592, 276, 13, 1171, 1216, 15342, 288, 3639, 1748, 563, 903, 506, 279, 7168, 603, 279, 2889, 364, 1041, 5123, 326, 1041, 434, 1686, 1195, 3639, 1033, 563, 273, 446, 31, 3639, 1748, 432, 24651, 434, 3248, 10742, 261, 11639, 406, 1535, 13, 358, 506, 5056, 716, 777, 871, 1462, 2416, 4097, 854, 2731, 1195, 3639, 368, 2211, 18, 7048, 1290, 1595, 10125, 7387, 5621, 3639, 1748, 309, 6942, 21831, 294, 741, 486, 4872, 563, 1195, 3639, 309, 261, 7469, 3886, 18, 291, 3335, 21831, 1477, 12, 71, 3719, 288, 5411, 1245, 21831, 1477, 1398, 1114, 12, 71, 1769, 3639, 289, 1748, 309, 326, 745, 353, 9007, 326, 1041, 434, 563, 903, 506, 2 ]
return name == null ? "" : name.getNamespaceURI();
return name == null ? "": name.getNamespaceURI();
public static String _node_getNamespaceURI ( Dom n ) { QName name = n.getQName(); // TODO - should return the correct namespace for xmlns ... return name == null ? "" : name.getNamespaceURI(); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/1bf5bd306084aad0b2b78e90b55db8e2fd0f3dc8/DomImpl.java/buggy/src/store/org/apache/xmlbeans/impl/store/DomImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 389, 2159, 67, 588, 3402, 3098, 261, 12965, 290, 262, 565, 288, 3639, 16723, 508, 273, 290, 18, 588, 13688, 5621, 3639, 368, 2660, 300, 1410, 327, 326, 3434, 1981, 364, 12302, 1372, 3639, 327, 508, 422, 446, 692, 1408, 30, 225, 508, 18, 588, 3402, 3098, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 389, 2159, 67, 588, 3402, 3098, 261, 12965, 290, 262, 565, 288, 3639, 16723, 508, 273, 290, 18, 588, 13688, 5621, 3639, 368, 2660, 300, 1410, 327, 326, 3434, 1981, 364, 12302, 1372, 3639, 327, 508, 422, 446, 692, 1408, 30, 225, 508, 18, 588, 3402, 3098, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
GridData data = new GridData(GridData.FILL_HORIZONTAL);
public void createControl(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); setControl(composite); PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IWorkbenchHelpContextIds.WORKING_SET_TYPE_PAGE); Label typesLabel = new Label(composite, SWT.NONE); typesLabel.setText(WorkbenchMessages.WorkingSetTypePage_typesLabel); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); typesLabel.setLayoutData(data); typesLabel.setFont(font); typesListViewer = new TableViewer(composite, SWT.BORDER | SWT.MULTI); data = new GridData(GridData.FILL_BOTH); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; typesListViewer.getTable().setLayoutData(data); typesListViewer.getTable().setFont(font); typesListViewer .addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { handleSelectionChanged(); } }); typesListViewer.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { handleDoubleClick(); } }); createContent(); setPageComplete(false); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1e4d2fa3a776e9dc52cebe26f08b491136e7002d/WorkingSetTypePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetTypePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 3639, 9635, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 9635, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 29818, 10019, 3639, 444, 3367, 12, 27676, 1769, 3639, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 6696, 3163, 7675, 542, 6696, 12, 27676, 16, 9506, 202, 45, 2421, 22144, 6696, 1042, 2673, 18, 10566, 1360, 67, 4043, 67, 2399, 67, 11219, 1769, 3639, 5287, 1953, 2224, 273, 394, 5287, 12, 27676, 16, 348, 8588, 18, 9826, 1769, 3639, 1953, 2224, 18, 542, 1528, 12, 2421, 22144, 5058, 18, 14836, 25181, 1964, 67, 2352, 2224, 1769, 3639, 7145, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 6997, 2090, 67, 44, 20344, 7734, 571, 7145, 751, 18, 6997, 2090, 67, 21654, 10109, 571, 7145, 751, 18, 44, 20344, 67, 26439, 67, 29818, 7734, 571, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 19835, 1769, 3639, 1953, 2224, 18, 542, 3744, 751, 12, 892, 1769, 3639, 1953, 2224, 18, 542, 5711, 12, 5776, 1769, 3639, 1953, 682, 18415, 273, 394, 3555, 18415, 12, 27676, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 26588, 1769, 3639, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 1769, 3639, 501, 18, 4210, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 3639, 9635, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 9635, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 29818, 10019, 3639, 444, 3367, 12, 27676, 1769, 3639, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 6696, 3163, 7675, 542, 6696, 12, 27676, 16, 9506, 202, 45, 2421, 22144, 6696, 1042, 2673, 18, 10566, 1360, 67, 4043, 67, 2399, 67, 11219, 1769, 3639, 5287, 1953, 2224, 273, 394, 5287, 12, 27676, 16, 348, 8588, 18, 9826, 2 ]
return RubyFixnum.newFixnum(getRuntime(),
return getRuntime().newFixnum(
public IRubyObject cmp(IRubyObject other) { if (!(other instanceof RubyNumeric)) { return getRuntime().getNil(); } return RubyFixnum.newFixnum(getRuntime(), compareValue((RubyNumeric) other)); }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 9411, 12, 7937, 10340, 921, 1308, 13, 288, 377, 202, 430, 16051, 12, 3011, 1276, 19817, 9902, 3719, 288, 377, 202, 202, 2463, 18814, 7675, 588, 12616, 5621, 377, 202, 97, 377, 202, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 1850, 202, 202, 9877, 620, 12443, 54, 10340, 9902, 13, 1308, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 9411, 12, 7937, 10340, 921, 1308, 13, 288, 377, 202, 430, 16051, 12, 3011, 1276, 19817, 9902, 3719, 288, 377, 202, 202, 2463, 18814, 7675, 588, 12616, 5621, 377, 202, 97, 377, 202, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 1850, 202, 202, 9877, 620, 12443, 54, 10340, 9902, 13, 1308, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
changeListenerList.add(ChangeListener.class, listener);
listenerList.add(ChangeListener.class, listener);
public void addChangeListener(ChangeListener listener) { changeListenerList.add(ChangeListener.class, listener); }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JProgressBar.java/buggy/libjava/javax/swing/JProgressBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 15744, 12, 15744, 2991, 13, 225, 288, 565, 2991, 682, 18, 1289, 12, 15744, 18, 1106, 16, 2991, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 15744, 12, 15744, 2991, 13, 225, 288, 565, 2991, 682, 18, 1289, 12, 15744, 18, 1106, 16, 2991, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new IOException(e.getClass().getName() + ": " + e.getMessage());
throw new JDOMException(e.getClass().getName() + ": " + e.getMessage());
public Document createDocument() throws IOException { try { return (Document)Class.forName( "oracle.xml.parser.v2.XMLDocument") .newInstance(); } catch (Exception e) { throw new IOException(e.getClass().getName() + ": " + e.getMessage()); } }
49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/10afc7e2bf09908695ad07beab9d457703ab65fe/OracleV2DOMAdapter.java/buggy/core/src/java/org/jdom/adapters/OracleV2DOMAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4319, 27569, 1435, 1216, 1860, 288, 3639, 775, 288, 5411, 327, 7734, 261, 2519, 13, 797, 18, 1884, 461, 12, 10792, 315, 280, 16066, 18, 2902, 18, 4288, 18, 90, 22, 18, 4201, 2519, 7923, 10792, 263, 2704, 1442, 5621, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 1860, 12, 73, 18, 588, 797, 7675, 17994, 1435, 397, 6398, 315, 397, 21394, 425, 18, 24906, 10663, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4319, 27569, 1435, 1216, 1860, 288, 3639, 775, 288, 5411, 327, 7734, 261, 2519, 13, 797, 18, 1884, 461, 12, 10792, 315, 280, 16066, 18, 2902, 18, 4288, 18, 90, 22, 18, 4201, 2519, 7923, 10792, 263, 2704, 1442, 5621, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 1860, 12, 73, 18, 588, 797, 7675, 17994, 1435, 397, 6398, 315, 397, 21394, 425, 18, 24906, 10663, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
PreparedStatement pstmt = con.prepareStatement("SELECT * FROM #test");
PreparedStatement pstmt = con.prepareStatement("SELECT * FROM ##test");
public void testPreparedStatement() throws Exception { PreparedStatement pstmt = con.prepareStatement("SELECT * FROM #test"); makeTestTables(pstmt); makeObjects(pstmt, 10); ResultSet rs = pstmt.executeQuery(); dump(rs); rs.close(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/711d47f475f1fc9d77fbce64a70d11606c38d145/PreparedStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/PreparedStatementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 1435, 1216, 1185, 288, 3639, 16913, 293, 10589, 273, 356, 18, 9366, 3406, 2932, 4803, 380, 4571, 7541, 3813, 8863, 3639, 1221, 4709, 6905, 12, 84, 10589, 1769, 3639, 1221, 4710, 12, 84, 10589, 16, 1728, 1769, 3639, 10842, 3597, 273, 293, 10589, 18, 8837, 1138, 5621, 3639, 4657, 12, 5453, 1769, 3639, 3597, 18, 4412, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 1435, 1216, 1185, 288, 3639, 16913, 293, 10589, 273, 356, 18, 9366, 3406, 2932, 4803, 380, 4571, 7541, 3813, 8863, 3639, 1221, 4709, 6905, 12, 84, 10589, 1769, 3639, 1221, 4710, 12, 84, 10589, 16, 1728, 1769, 3639, 10842, 3597, 273, 293, 10589, 18, 8837, 1138, 5621, 3639, 4657, 12, 5453, 1769, 3639, 3597, 18, 4412, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
valueSeries.getLabel( ).setVisible( true );
public Chart getModel( String sSubType, Orientation orientation, String sDimension, Chart currentChart ) { ChartWithAxes newChart = null; if ( currentChart != null ) { newChart = (ChartWithAxes) getConvertedChart( currentChart, sSubType, orientation, sDimension ); if ( newChart != null ) { return newChart; } } newChart = ChartWithAxesImpl.create( ); newChart.setType( TYPE_LITERAL ); newChart.setSubType( sSubType ); newChart.setOrientation( orientation ); newChart.setDimension( ChartUIUtil.getDimensionType( sDimension ) ); newChart.setUnits( "Points" ); //$NON-NLS-1$ ( (Axis) newChart.getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setCategoryAxis( true ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); sdX.getSeriesPalette( ).update( 0 ); ( (Axis) newChart.getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( sdX ); newChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); if ( sSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = LineSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (Marker) ( (LineSeries) valueSeries ).getMarkers( ).get( 0 ) ).setVisible( true ); ( (LineSeries) valueSeries ).setStacked( true ); ( (LineSeries) valueSeries ).setPaletteLineColor( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setPercent( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = LineSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (Marker) ( (LineSeries) valueSeries ).getMarkers( ).get( 0 ) ).setVisible( true ); ( (LineSeries) valueSeries ).setStacked( true ); ( (LineSeries) valueSeries ).setPaletteLineColor( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( OVERLAY_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = LineSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (Marker) ( (LineSeries) valueSeries ).getMarkers( ).get( 0 ) ).setVisible( true ); ( (LineSeries) valueSeries ).setStacked( false ); ( (LineSeries) valueSeries ).setPaletteLineColor( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } if ( sDimension.equals( THREE_DIMENSION_TYPE ) ) { newChart.setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); newChart.setUnitSpacing( 50 ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ).clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); newChart.getPrimaryOrthogonalAxis( newChart.getPrimaryBaseAxes( )[0] ) .getTitle( ) .getCaption( ) .getFont( ) .setRotation( 0 ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); } addSampleData( newChart ); return newChart; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0665e1c901d26f3a9b500013c964cc34390fd93c/LineChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14804, 7454, 12, 514, 272, 30511, 16, 531, 12556, 9820, 16, 1082, 202, 780, 272, 8611, 16, 14804, 783, 7984, 262, 202, 95, 202, 202, 7984, 1190, 26494, 394, 7984, 273, 446, 31, 202, 202, 430, 261, 783, 7984, 480, 446, 262, 202, 202, 95, 1082, 202, 2704, 7984, 273, 261, 7984, 1190, 26494, 13, 336, 22063, 7984, 12, 783, 7984, 16, 6862, 202, 87, 30511, 16, 6862, 202, 19235, 16, 6862, 202, 87, 8611, 11272, 1082, 202, 430, 261, 394, 7984, 480, 446, 262, 1082, 202, 95, 9506, 202, 2463, 394, 7984, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2704, 7984, 273, 14804, 1190, 26494, 2828, 18, 2640, 12, 11272, 202, 202, 2704, 7984, 18, 542, 559, 12, 3463, 67, 23225, 11272, 202, 202, 2704, 7984, 18, 542, 30511, 12, 272, 30511, 11272, 202, 202, 2704, 7984, 18, 542, 14097, 12, 9820, 11272, 202, 202, 2704, 7984, 18, 542, 8611, 12, 14804, 5370, 1304, 18, 588, 8611, 559, 12, 272, 8611, 262, 11272, 202, 202, 2704, 7984, 18, 542, 7537, 12, 315, 5636, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 12, 261, 6558, 13, 394, 7984, 18, 588, 26494, 12, 262, 18, 588, 12, 374, 262, 262, 18, 542, 14097, 12, 531, 12556, 18, 44, 20344, 67, 23225, 11272, 202, 202, 12, 261, 6558, 13, 394, 7984, 18, 588, 26494, 12, 262, 18, 588, 12, 374, 262, 262, 18, 542, 559, 12, 15509, 559, 18, 5151, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14804, 7454, 12, 514, 272, 30511, 16, 531, 12556, 9820, 16, 1082, 202, 780, 272, 8611, 16, 14804, 783, 7984, 262, 202, 95, 202, 202, 7984, 1190, 26494, 394, 7984, 273, 446, 31, 202, 202, 430, 261, 783, 7984, 480, 446, 262, 202, 202, 95, 1082, 202, 2704, 7984, 273, 261, 7984, 1190, 26494, 13, 336, 22063, 7984, 12, 783, 7984, 16, 6862, 202, 87, 30511, 16, 6862, 202, 19235, 16, 6862, 202, 87, 8611, 11272, 1082, 202, 430, 261, 394, 7984, 480, 446, 262, 1082, 202, 95, 9506, 202, 2463, 394, 7984, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2704, 7984, 273, 14804, 1190, 26494, 2828, 18, 2640, 12, 11272, 202, 202, 2704, 2 ]
addTest(new TestSuite(TrimLayoutTest.class));
public ApiTestSuite() { addTest(new TestSuite(PlatformUITest.class)); addTest(new TestSuite(IWorkbenchTest.class)); addTest(new TestSuite(IWorkbenchWindowTest.class)); addTest(new TestSuite(IWorkbenchPageTest.class)); addTest(new TestSuite(IDeprecatedWorkbenchPageTest.class)); addTest(new TestSuite(IActionFilterTest.class)); addTest(new TestSuite(IPageListenerTest.class)); addTest(new TestSuite(IPageServiceTest.class)); addTest(new TestSuite(IPerspectiveRegistryTest.class)); addTest(new TestSuite(IPerspectiveDescriptorTest.class)); addTest(new TestSuite(IFileEditorMappingTest.class)); addTest(new TestSuite(IEditorDescriptorTest.class)); addTest(new TestSuite(IEditorRegistryTest.class)); addTest(new TestSuite(IPerspectiveListenerTest.class)); addTest(new TestSuite(IWorkbenchWindowActionDelegateTest.class)); addTest(new TestSuite(IViewActionDelegateTest.class)); addTest(new TestSuite(IViewSiteTest.class)); addTest(new TestSuite(IEditorSiteTest.class)); addTest(new TestSuite(IActionBarsTest.class)); addTest(new TestSuite(IViewPartTest.class)); addTest(new TestSuite(IEditorPartTest.class)); addTest(new TestSuite(IEditorActionBarContributorTest.class)); addTest(new TestSuite(IPartServiceTest.class)); addTest(new TestSuite(ISelectionServiceTest.class)); addTest(new TestSuite(IWorkingSetTest.class)); addTest(new TestSuite(IWorkingSetManagerTest.class)); addTest(new TestSuite(MockWorkingSetTest.class)); addTest(new TestSuite(Bug42616Test.class)); addTest(new TestSuite(StickyViewTest.class)); addTest(new TestSuite(EditorIconTest.class)); addTest(new TestSuite(RawIViewPartTest.class)); addTest(new TestSuite(ViewPartTitleTest.class)); addTest(new TestSuite(OverriddenTitleTest.class)); addTest(new TestSuite(UIJobTest.class)); addTest(new TestSuite(Bug75118Test.class)); addTest(new TestSuite(FileEditorInputTest.class)); addTest(new TestSuite(IEditorMatchingStrategyTest.class)); addTest(new TestSuite(XMLMementoTest.class)); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e6868ab38c811b061ce3543853804345381e29c3/ApiTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/ApiTestSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 1071, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 4458, 4709, 13587, 1435, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 288, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 7766, 13587, 12, 8201, 57, 1285, 395, 18, 1106, 10019, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 1071, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 4458, 4709, 13587, 1435, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 288, 1289, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 4709, 18, 1106, 10019, 527, 4709, 12, 2704, 7766, 13587, 12, 14795, 3744, 2 ]
}
}
Class getMethodReturnType(int method, long hash) throws Exception{ if (method == -1) { Method meth = (Method)methods.get(new Long (hash)); return meth.getReturnType(); }else return null;}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1659, 6272, 9102, 12, 474, 707, 16, 1525, 1651, 13, 1216, 1185, 95, 565, 309, 261, 2039, 422, 300, 21, 13, 288, 3639, 2985, 7917, 273, 261, 1305, 13, 5163, 18, 588, 12, 2704, 3407, 261, 2816, 10019, 3639, 327, 7917, 18, 588, 9102, 5621, 565, 289, 12107, 3639, 327, 446, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1659, 6272, 9102, 12, 474, 707, 16, 1525, 1651, 13, 1216, 1185, 95, 565, 309, 261, 2039, 422, 300, 21, 13, 288, 3639, 2985, 7917, 273, 261, 1305, 13, 5163, 18, 588, 12, 2704, 3407, 261, 2816, 10019, 3639, 327, 7917, 18, 588, 9102, 5621, 565, 289, 12107, 3639, 327, 446, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case NURSERY_SPACE: return nursery.alloc(isScalar, bytes); case RC_SPACE: return rc.alloc(isScalar, bytes, false); case IMMORTAL_SPACE: return immortal.alloc(isScalar, bytes); case LOS_SPACE: return los.alloc(isScalar, bytes);
case NURSERY_SPACE: return nursery.alloc(bytes, align, offset); case RC_SPACE: return rc.alloc(bytes, align, offset, false); case IMMORTAL_SPACE: return immortal.alloc(bytes, align, offset); case LOS_SPACE: return los.alloc(bytes, align, offset);
public final VM_Address alloc(int bytes, boolean isScalar, int allocator) throws VM_PragmaInline { if (STEAL_NURSERY_SCALAR_GC_HEADER && isScalar && allocator == NURSERY_SPACE) { // steal the GC header word for scalar nursery objects if (VM_Interface.VerifyAssertions) VM_Interface._assert(Header.RC_HEADER_OFFSET == -Header.NUM_BYTES_HEADER); bytes -= Header.NUM_BYTES_HEADER; } switch (allocator) { case NURSERY_SPACE: return nursery.alloc(isScalar, bytes); case RC_SPACE: return rc.alloc(isScalar, bytes, false); case IMMORTAL_SPACE: return immortal.alloc(isScalar, bytes); case LOS_SPACE: return los.alloc(isScalar, bytes); default: if (VM_Interface.VerifyAssertions) VM_Interface.sysFail("No such allocator"); return VM_Address.zero(); } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/e5a4d3dd8a79077cd7f4dad18813204330cc76dc/Plan.java/buggy/rvm/src/vm/memoryManagers/JMTk/plan/genRC/Plan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 8251, 67, 1887, 4767, 12, 474, 1731, 16, 1250, 11604, 3473, 16, 509, 26673, 13, 565, 1216, 8251, 67, 2050, 9454, 10870, 288, 565, 309, 261, 882, 41, 1013, 67, 50, 1099, 2123, 61, 67, 2312, 1013, 985, 67, 15396, 67, 7557, 597, 11604, 3473, 225, 202, 10, 10, 26673, 422, 423, 1099, 2123, 61, 67, 6616, 13, 288, 1377, 368, 18654, 287, 326, 15085, 1446, 2076, 364, 4981, 290, 295, 550, 93, 2184, 1377, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 225, 202, 7397, 67, 1358, 6315, 11231, 12, 1864, 18, 11529, 67, 7557, 67, 11271, 422, 300, 1864, 18, 6069, 67, 13718, 67, 7557, 1769, 1377, 1731, 3947, 4304, 18, 6069, 67, 13718, 67, 7557, 31, 565, 289, 565, 1620, 261, 9853, 639, 13, 288, 565, 648, 225, 423, 1099, 2123, 61, 67, 6616, 30, 327, 290, 295, 550, 93, 18, 9853, 12, 291, 13639, 16, 1731, 1769, 565, 648, 4202, 24206, 67, 6616, 30, 327, 4519, 18, 9853, 12, 291, 13639, 16, 1731, 16, 629, 1769, 565, 648, 6246, 49, 3871, 1013, 67, 6616, 30, 327, 709, 81, 499, 287, 18, 9853, 12, 291, 13639, 16, 1731, 1769, 565, 648, 1377, 1806, 55, 67, 6616, 30, 327, 22148, 18, 9853, 12, 291, 13639, 16, 1731, 1769, 565, 805, 30, 1377, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 225, 202, 7397, 67, 1358, 18, 9499, 3754, 2932, 2279, 4123, 26673, 8863, 1377, 327, 8251, 67, 1887, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 8251, 67, 1887, 4767, 12, 474, 1731, 16, 1250, 11604, 3473, 16, 509, 26673, 13, 565, 1216, 8251, 67, 2050, 9454, 10870, 288, 565, 309, 261, 882, 41, 1013, 67, 50, 1099, 2123, 61, 67, 2312, 1013, 985, 67, 15396, 67, 7557, 597, 11604, 3473, 225, 202, 10, 10, 26673, 422, 423, 1099, 2123, 61, 67, 6616, 13, 288, 1377, 368, 18654, 287, 326, 15085, 1446, 2076, 364, 4981, 290, 295, 550, 93, 2184, 1377, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 225, 202, 7397, 67, 1358, 6315, 11231, 12, 1864, 18, 11529, 67, 7557, 67, 11271, 422, 300, 1864, 18, 6069, 67, 13718, 67, 7557, 1769, 1377, 1731, 3947, 4304, 18, 6069, 2 ]
boolean isComparatorSet = ((EventDetailsDialogAction) propertiesAction)
boolean isComparatorSet = ((EventDetailsDialogAction) fPropertiesAction)
private void createColumns(Table table) { column0 = new TableColumn(table, SWT.NULL); column0.setText(""); //$NON-NLS-1$ column1 = new TableColumn(table, SWT.NULL); column1.setText(PDERuntimePlugin.getResourceString("LogView.column.severity")); //$NON-NLS-1$ column1.addControlListener(new ControlListener(){ public void controlMoved(ControlEvent e) { } public void controlResized(ControlEvent e) { memento.putInteger(P_COLUMN_1, column1.getWidth()); } }); column2 = new TableColumn(table, SWT.NULL); column2.setText(PDERuntimePlugin.getResourceString("LogView.column.message")); //$NON-NLS-1$ column2.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { MESSAGE_ORDER *= -1; ViewerSorter sorter = getViewerSorter(MESSAGE); tableTreeViewer.setSorter(sorter); collator = sorter.getCollator(); boolean isComparatorSet = ((EventDetailsDialogAction) propertiesAction) .resetSelection(MESSAGE, MESSAGE_ORDER); setComparator(MESSAGE); if (!isComparatorSet) ((EventDetailsDialogAction) propertiesAction) .setComparator(comparator); applyFonts(); memento.putInteger(P_ORDER_VALUE, MESSAGE_ORDER); memento.putInteger(P_ORDER_TYPE, MESSAGE); } }); column2.addControlListener(new ControlListener(){ public void controlMoved(ControlEvent e) { } public void controlResized(ControlEvent e) { memento.putInteger(P_COLUMN_2, column2.getWidth()); } }); column3 = new TableColumn(table, SWT.NULL); column3.setText(PDERuntimePlugin.getResourceString("LogView.column.plugin")); //$NON-NLS-1$ column3.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { PLUGIN_ORDER *= -1; ViewerSorter sorter = getViewerSorter(PLUGIN); tableTreeViewer.setSorter(sorter); collator = sorter.getCollator(); boolean isComparatorSet = ((EventDetailsDialogAction) propertiesAction) .resetSelection(PLUGIN, PLUGIN_ORDER); setComparator(PLUGIN); if (!isComparatorSet) ((EventDetailsDialogAction) propertiesAction) .setComparator(comparator); applyFonts(); memento.putInteger(P_ORDER_VALUE, PLUGIN_ORDER); memento.putInteger(P_ORDER_TYPE, PLUGIN); } }); column3.addControlListener(new ControlListener(){ public void controlMoved(ControlEvent e){ } public void controlResized(ControlEvent e){ memento.putInteger(P_COLUMN_3, column3.getWidth()); } }); column4 = new TableColumn(table, SWT.NULL); column4.setText(PDERuntimePlugin.getResourceString("LogView.column.date")); //$NON-NLS-1$ column4.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (DATE_ORDER == ASCENDING) { DATE_ORDER = DESCENDING; } else { DATE_ORDER = ASCENDING; } ViewerSorter sorter = getViewerSorter(DATE); tableTreeViewer.setSorter(sorter); collator = sorter.getCollator(); boolean isComparatorSet = ((EventDetailsDialogAction) propertiesAction) .resetSelection(DATE, DATE_ORDER); setComparator(DATE); if (!isComparatorSet) ((EventDetailsDialogAction) propertiesAction) .setComparator(comparator); applyFonts(); memento.putInteger(P_ORDER_VALUE, DATE_ORDER); memento.putInteger(P_ORDER_TYPE, DATE); } }); column4.addControlListener(new ControlListener(){ public void controlMoved(ControlEvent e){ } public void controlResized(ControlEvent e){ memento.putInteger(P_COLUMN_4, column4.getWidth()); } }); TableLayout tlayout = new TableLayout(); tlayout.addColumnData(new ColumnPixelData(21)); tlayout.addColumnData(new ColumnPixelData(memento.getInteger(P_COLUMN_1) .intValue())); tlayout.addColumnData(new ColumnPixelData(memento.getInteger(P_COLUMN_2) .intValue())); tlayout.addColumnData(new ColumnPixelData(memento.getInteger(P_COLUMN_3) .intValue())); tlayout.addColumnData(new ColumnPixelData(memento.getInteger(P_COLUMN_4) .intValue())); table.setLayout(tlayout); table.setHeaderVisible(true); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/2e07d224260b7c85a3fc6f6d4184a1f695d7e1a5/LogView.java/buggy/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/LogView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 3380, 12, 1388, 1014, 13, 288, 3639, 1057, 20, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 8560, 1769, 3639, 1057, 20, 18, 542, 1528, 2932, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1057, 21, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 8560, 1769, 3639, 1057, 21, 18, 542, 1528, 12, 52, 4179, 29332, 3773, 18, 588, 1420, 780, 2932, 1343, 1767, 18, 2827, 18, 27341, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1057, 21, 18, 1289, 3367, 2223, 12, 2704, 8888, 2223, 1435, 95, 1082, 202, 482, 918, 3325, 25317, 12, 3367, 1133, 425, 13, 288, 1082, 202, 97, 1082, 202, 482, 918, 3325, 607, 1235, 12, 3367, 1133, 425, 13, 288, 9506, 202, 81, 820, 83, 18, 458, 4522, 12, 52, 67, 11009, 67, 21, 16, 1057, 21, 18, 588, 2384, 10663, 1082, 202, 97, 540, 202, 3639, 15549, 3639, 1057, 22, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 8560, 1769, 3639, 1057, 22, 18, 542, 1528, 12, 52, 4179, 29332, 3773, 18, 588, 1420, 780, 2932, 1343, 1767, 18, 2827, 18, 2150, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1057, 22, 18, 1289, 6233, 2223, 12, 2704, 12977, 4216, 1435, 288, 5411, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 9841, 67, 7954, 6413, 300, 21, 31, 7734, 4441, 264, 24952, 19867, 273, 8893, 264, 24952, 12, 8723, 1769, 7734, 1014, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 3380, 12, 1388, 1014, 13, 288, 3639, 1057, 20, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 8560, 1769, 3639, 1057, 20, 18, 542, 1528, 2932, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1057, 21, 273, 394, 3555, 1494, 12, 2121, 16, 348, 8588, 18, 8560, 1769, 3639, 1057, 21, 18, 542, 1528, 12, 52, 4179, 29332, 3773, 18, 588, 1420, 780, 2932, 1343, 1767, 18, 2827, 18, 27341, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1057, 21, 18, 1289, 3367, 2223, 12, 2704, 8888, 2223, 1435, 95, 1082, 202, 482, 918, 3325, 25317, 12, 3367, 1133, 425, 13, 288, 1082, 202, 97, 1082, 202, 482, 918, 3325, 2 ]
{ Formula formula = findFormula(uniqueName); if (formula == null) throw Util.getRes().newMdxFormulaNotFound( "formula", uniqueName, toWebUIMdx()); formula.rename(newName); }
{ Formula formula = findFormula(uniqueName); if (formula == null) throw Util.getRes().newMdxFormulaNotFound( "formula", uniqueName, toWebUIMdx()); formula.rename(newName); }
public void renameFormula(String uniqueName, String newName) { Formula formula = findFormula(uniqueName); if (formula == null) throw Util.getRes().newMdxFormulaNotFound( "formula", uniqueName, toWebUIMdx()); formula.rename(newName); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/Query.java/buggy/src/main/mondrian/olap/Query.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6472, 14972, 12, 780, 3089, 461, 16, 514, 13253, 13, 202, 95, 202, 202, 14972, 8013, 273, 1104, 14972, 12, 6270, 461, 1769, 202, 202, 430, 261, 18203, 422, 446, 13, 604, 3564, 18, 588, 607, 7675, 2704, 49, 13437, 14972, 2768, 12, 9506, 202, 6, 18203, 3113, 3089, 461, 16, 358, 4079, 57, 3445, 13437, 10663, 202, 202, 18203, 18, 18539, 12, 2704, 461, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6472, 14972, 12, 780, 3089, 461, 16, 514, 13253, 13, 202, 95, 202, 202, 14972, 8013, 273, 1104, 14972, 12, 6270, 461, 1769, 202, 202, 430, 261, 18203, 422, 446, 13, 604, 3564, 18, 588, 607, 7675, 2704, 49, 13437, 14972, 2768, 12, 9506, 202, 6, 18203, 3113, 3089, 461, 16, 358, 4079, 57, 3445, 13437, 10663, 202, 202, 18203, 18, 18539, 12, 2704, 461, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.name = value; }
this.name = value; }
public void setName(String value) { this.name = value; }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/99f335ad4dfc53503a1890e981ff118c3c404811/InsertTag.java/clean/src/share/org/apache/struts/taglib/tiles/InsertTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6788, 12, 780, 460, 13, 288, 202, 202, 2211, 18, 529, 273, 460, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6788, 12, 780, 460, 13, 288, 202, 202, 2211, 18, 529, 273, 460, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public TypeSig lookupSimpleTypeName(TypeSig caller, Identifier id, int loc) {
public TypeSig lookupSimpleTypeName(TypeSig caller, /*@non_null*/Identifier id, int loc) {
public TypeSig lookupSimpleTypeName(TypeSig caller, Identifier id, int loc) { // We bind no type variables ourshelves: return parent.lookupSimpleTypeName(caller, id, loc); }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/67867c1e55343e2e2d3135b09cf373b0d4c4adac/EnvForGhostLocals.java/clean/src/escjava/trunk/ESCTools/Escjava/java/escjava/tc/EnvForGhostLocals.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1412, 8267, 3689, 5784, 7947, 12, 559, 8267, 4894, 16, 10333, 612, 16, 509, 1515, 13, 288, 202, 759, 1660, 1993, 1158, 618, 3152, 3134, 674, 19587, 30, 202, 2463, 982, 18, 8664, 5784, 7947, 12, 16140, 16, 612, 16, 1515, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1412, 8267, 3689, 5784, 7947, 12, 559, 8267, 4894, 16, 10333, 612, 16, 509, 1515, 13, 288, 202, 759, 1660, 1993, 1158, 618, 3152, 3134, 674, 19587, 30, 202, 2463, 982, 18, 8664, 5784, 7947, 12, 16140, 16, 612, 16, 1515, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cmof.reflection.Object object = new cmof.UmlClassImpl(_634, extent, null, "cmof.UmlClassImpl", new String[]{"cmof.UmlClassCustom", "cmof.ClassifierCustom", "core.abstractions.umlsuper.ClassifierCustom", "cmof.TypeCustom", "core.abstractions.classifiers.ClassifierCustom", "core.abstractions.typedelements.TypeCustom", "core.abstractions.namespaces.NamespaceCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("packageImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isAbstract", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("attribute", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_516,_302,_448,_347,_612,_611,_651,_443,_339,_319,_156,_403,_434,_482,_69,_71,_707,_150,_414,_229,_175,_445,_144,_70,_360,_353,_129});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("superClass", new java.lang.Object[] {_417,_11});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedAttribute", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedOperation", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("feature", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "Feature");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _74);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Feature");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("general", new java.lang.Object[] {_417,_11});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("inheritedMember", new java.lang.Object[] {_516,_302,_448,_347,_611,_612,_177,_651,_443,_339,_228,_319,_156,_403,_66,_434,_273,_482,_71,_654,_707,_150,_726,_414,_229,_175,_735,_445,_573,_144,_753,_360,_70,_353,_129});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("package", _754);
cmof.reflection.Object object = new cmof.PropertyImpl(_371, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _66);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_66});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "upper");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _595);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _66);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _634);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _66);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _66);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", "1");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "core.abstractions.multiplicities.MultiplicityElement.upper");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedBehavior", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
private static cmof.reflection.Object getObject339(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.UmlClassImpl(_634, extent, null, "cmof.UmlClassImpl", new String[]{"cmof.UmlClassCustom", "cmof.ClassifierCustom", "core.abstractions.umlsuper.ClassifierCustom", "cmof.TypeCustom", "core.abstractions.classifiers.ClassifierCustom", "core.abstractions.typedelements.TypeCustom", "core.abstractions.namespaces.NamespaceCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("packageImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isAbstract", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("attribute", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_516,_302,_448,_347,_612,_611,_651,_443,_339,_319,_156,_403,_434,_482,_69,_71,_707,_150,_414,_229,_175,_445,_144,_70,_360,_353,_129});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("superClass", new java.lang.Object[] {_417,_11});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedAttribute", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedOperation", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("feature", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "Feature");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _74);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_69});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _754);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Feature");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("general", new java.lang.Object[] {_417,_11});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("inheritedMember", new java.lang.Object[] {_516,_302,_448,_347,_611,_612,_177,_651,_443,_339,_228,_319,_156,_403,_66,_434,_273,_482,_71,_654,_707,_150,_726,_414,_229,_175,_735,_445,_573,_144,_753,_360,_70,_353,_129});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("package", _754); return object; }
11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5003, 792, 18, 26606, 18, 921, 6455, 3707, 29, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 273, 394, 5003, 792, 18, 1396, 2828, 24899, 6418, 21, 16, 11933, 16, 446, 16, 315, 7670, 792, 18, 1396, 2828, 3113, 394, 514, 63, 7073, 6, 7670, 792, 18, 426, 5649, 429, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 7027, 1780, 1961, 18, 5002, 20458, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 266, 13314, 18, 426, 5649, 429, 1046, 3802, 3113, 315, 7670, 792, 18, 7604, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 16078, 18, 7604, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 995, 12565, 87, 18, 1046, 3802, 6, 22938, 12443, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 921, 2828, 13, 1612, 2934, 458, 1499, 2932, 14422, 3113, 446, 1769, 12443, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 921, 2828, 13, 1612, 2934, 458, 1499, 2932, 291, 21007, 3113, 394, 3411, 12, 5743, 10019, 12443, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 921, 2828, 13, 1612, 2934, 458, 1499, 2932, 15657, 2344, 1396, 3113, 394, 2252, 18, 4936, 18, 921, 8526, 2618, 1769, 12443, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 921, 2828, 13, 1612, 2934, 458, 1499, 2932, 266, 6907, 1042, 3113, 394, 2252, 18, 4936, 18, 921, 8526, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5003, 792, 18, 26606, 18, 921, 6455, 3707, 29, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 273, 394, 5003, 792, 18, 1396, 2828, 24899, 6418, 21, 16, 11933, 16, 446, 16, 315, 7670, 792, 18, 1396, 2828, 3113, 394, 514, 63, 7073, 6, 7670, 792, 18, 426, 5649, 429, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 7027, 1780, 1961, 18, 5002, 20458, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 266, 13314, 18, 426, 5649, 429, 1046, 3802, 3113, 315, 7670, 792, 18, 7604, 1046, 3802, 3113, 315, 3644, 18, 378, 701, 4905, 18, 16078, 2 ]
IDomainClass<Department> domainClass =
IRuntimeDomainClass<Department> domainClass =
public void testCannotSetAttributeToInvalidValue() { IDomainClass<Department> domainClass = Domain.lookupAny(Department.class); IDomainObject<Department> domainObject = (IDomainObject<Department>)session.createTransient(domainClass); EAttribute nameAttribute = domainObject.getEAttributeNamed("name"); try { domainObject.set(nameAttribute, new Integer(1)); fail("Expected IllegalArgumentException to have been thrown"); } catch(IllegalArgumentException ex) { // expected. } }
13434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13434/fba906500b3e09a0fb685f5de02203328b8d5ed8/TestDomainObjectAttribute.java/buggy/trunk/workspace/de.berlios.rcpviewer.domain.tests/test/de/berlios/rcpviewer/session/TestDomainObjectAttribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4515, 694, 1499, 774, 1941, 620, 1435, 288, 202, 202, 45, 5576, 3748, 797, 32, 30358, 34, 2461, 797, 273, 1875, 202, 3748, 18, 8664, 2961, 12, 30358, 18, 1106, 1769, 9506, 202, 734, 1530, 921, 32, 30358, 34, 2461, 921, 273, 1875, 202, 12, 734, 1530, 921, 32, 30358, 23429, 3184, 18, 2640, 19638, 12, 4308, 797, 1769, 202, 202, 41, 1499, 508, 1499, 273, 2461, 921, 18, 588, 41, 1499, 7604, 2932, 529, 8863, 202, 202, 698, 288, 1082, 202, 4308, 921, 18, 542, 12, 529, 1499, 16, 394, 2144, 12, 21, 10019, 1082, 202, 6870, 2932, 6861, 2754, 358, 1240, 2118, 6718, 8863, 202, 202, 97, 1044, 12, 31237, 431, 13, 288, 1082, 202, 759, 2665, 18, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4515, 694, 1499, 774, 1941, 620, 1435, 288, 202, 202, 45, 5576, 3748, 797, 32, 30358, 34, 2461, 797, 273, 1875, 202, 3748, 18, 8664, 2961, 12, 30358, 18, 1106, 1769, 9506, 202, 734, 1530, 921, 32, 30358, 34, 2461, 921, 273, 1875, 202, 12, 734, 1530, 921, 32, 30358, 23429, 3184, 18, 2640, 19638, 12, 4308, 797, 1769, 202, 202, 41, 1499, 508, 1499, 273, 2461, 921, 18, 588, 41, 1499, 7604, 2932, 529, 8863, 202, 202, 698, 288, 1082, 202, 4308, 921, 18, 542, 12, 529, 1499, 16, 394, 2144, 12, 21, 10019, 1082, 202, 6870, 2932, 6861, 2754, 358, 1240, 2118, 6718, 8863, 202, 202, 97, 1044, 12, 31237, 431, 13, 2 ]
throw new PainterException("wrong arguments");
throw new PainterException("known: wrong arguments");
public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/a9e36ef1e4e4be2e6d4839ed4e5a42aabe172a12/PAContext.java/clean/itext/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, 63, 6487, 1392, 921, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 21, 1769, 3639, 309, 16051, 261, 892, 63, 20, 65, 1276, 17988, 969, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 2994, 30, 7194, 1775, 8863, 3639, 289, 3639, 9670, 969, 273, 261, 8592, 969, 13, 501, 63, 20, 15533, 3639, 309, 16051, 261, 16330, 969, 18, 723, 422, 17988, 969, 18, 3297, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 2994, 30, 7194, 1775, 8863, 3639, 289, 3639, 1392, 921, 273, 819, 18, 4720, 10905, 12, 16330, 969, 18, 1132, 1769, 3639, 309, 261, 7015, 921, 480, 446, 13, 288, 1850, 819, 18, 4063, 5708, 18, 6206, 12, 7015, 921, 1769, 1850, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 3411, 12, 3767, 10019, 3639, 289, 3639, 469, 288, 1850, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 3411, 12, 5743, 10019, 3639, 289, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 63, 6487, 1392, 921, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 21, 1769, 3639, 309, 16051, 261, 892, 63, 20, 65, 1276, 17988, 969, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 2994, 30, 7194, 1775, 8863, 3639, 289, 3639, 9670, 969, 273, 261, 8592, 969, 13, 501, 63, 20, 15533, 3639, 309, 16051, 261, 16330, 969, 18, 723, 422, 17988, 969, 18, 3297, 3719, 288, 1850, 604, 394, 453, 11606, 503, 2932, 2994, 30, 7194, 1775, 8863, 3639, 289, 3639, 1392, 921, 273, 819, 18, 4720, 10905, 12, 16330, 969, 18, 2 ]
if (ruby.rubyScope.getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); ruby.rubyScope.setLocalVars(node.nd_cnt(), result); return result; } else {
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N:/* PUSH_TAG(PROT_NONE); switch (state = EXEC_TAG()) { case 0: opt_n_next: while (!NIL_P(rb_gets())) { opt_n_redo: rb_eval(self, node->nd_body); } break; case TAG_REDO: state = 0; goto opt_n_redo; case TAG_NEXT: state = 0; goto opt_n_next; case TAG_BREAK: state = 0; default: break; } POP_TAG(); if (state) JUMP_TAG(state); RETURN(Qnil);*/ return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = (RubyBoolean)eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyBoolean)((RubyArray)obj).entry(i)).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head())).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyBoolean eqq = (RubyBoolean)((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (((RubyBoolean)eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj)).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR:/* { iter_retry: PUSH_TAG(PROT_FUNC); PUSH_BLOCK(node->nd_var, node->nd_body); state = EXEC_TAG(); if (state == 0) { PUSH_ITER(ITER_PRE); if (nd_type(node) == NODE_ITER) { result = rb_eval(self, node->nd_iter); } else { VALUE recv; char *file = ruby_sourcefile; int line = ruby_sourceline; _block.flags &= ~BLOCK_D_SCOPE; BEGIN_CALLARGS; recv = rb_eval(self, node->nd_iter); END_CALLARGS; ruby_sourcefile = file; ruby_sourceline = line; result = rb_call(CLASS_OF(recv),recv,each,0,0,0); } POP_ITER(); } else if (_block.tag->dst == state) { state &= TAG_MASK; if (state == TAG_RETURN) { result = prot_tag->retval; } } POP_BLOCK(); POP_TAG(); switch (state) { case 0: break; case TAG_RETRY: goto iter_retry; case TAG_BREAK: result = Qnil; break; case TAG_RETURN: return_value(result); */ /* fall through *//* default: JUMP_TAG(state); } }*/ break; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD:/* if (node.nd_stts) { result = rb_eval(self, node->nd_stts); if (nd_type(node->nd_stts) == NODE_RESTARGS && RARRAY(result)->len == 1) { result = RARRAY(result)->ptr[0]; } } else { result = Qnil; } result = rb_yield_0(result, 0, 0, 0); break;*/ case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = (RubyBoolean)eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ //RubyBoolean result;/* if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); } if (!RTEST(ruby_scope->local_vars[node->nd_cnt])) { if (RTEST(rb_eval(self, node->nd_beg))) { ruby_scope->local_vars[node->nd_cnt] = RTEST(rb_eval(self, node->nd_end))?Qfalse:Qtrue; result = Qtrue; } else { result = Qfalse; } } else { if (RTEST(rb_eval(self, node->nd_end))) { ruby_scope->local_vars[node->nd_cnt] = Qfalse; } result = Qtrue; }*/ return result; case NODE_FLIP3: /* like SED */ //RubyBoolean result;/* if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); } if (!RTEST(ruby_scope->local_vars[node->nd_cnt])) { result = RTEST(rb_eval(self, node->nd_beg)) ? Qtrue : Qfalse; ruby_scope->local_vars[node->nd_cnt] = result; } else { if (RTEST(rb_eval(self, node->nd_end))) { ruby_scope->local_vars[node->nd_cnt] = Qfalse; } result = Qtrue; }*/ return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; BLOCK tmpBlock = BEGIN_CALLARGS(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); END_CALLARGS(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = BEGIN_CALLARGS(); args = setupArgs(self, node.nd_args()); END_CALLARGS(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (rubyFrame.getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = rubyFrame.getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = BEGIN_CALLARGS(); args = setupArgs(self, node.nd_args()); END_CALLARGS(tmpBlock); } PUSH_ITER(ruby_iter.iter != 0 ? ITER_PRE : ITER_NOT); result = rubyFrame.getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); POP_ITER(); return result; case NODE_SCOPE: /*NODE saved_cref = null; FRAME frame = ruby_frame; frame.tmp = ruby_frame; ruby_frame = frame; PUSH_SCOPE(); PUSH_TAG(PROT_NONE); if (node->nd_rval) { saved_cref = ruby_cref; ruby_cref = (NODE*)node->nd_rval; ruby_frame->cbase = node->nd_rval; }*/ if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().rubyScope.setLocalVars(vars); getRuby().rubyScope.setLocalTbl(node.nd_tbl()); } else { getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); }/* if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_next); } POP_TAG(); POP_SCOPE(); ruby_frame = frame.tmp; if (saved_cref) ruby_cref = saved_cref; if (state) JUMP_TAG(state); } break; */ case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyBoolean val = (RubyBoolean)recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, rval); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = (RubyBoolean)recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = (RubyBoolean)eval(self, node.nd_value()); break; default: val = (RubyBoolean)val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // rom.rb_funcall2(recv, node.nd_next().nd_aid(), 1, &val); return val; case NODE_OP_ASGN_AND: cond = (RubyBoolean)eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = (RubyBoolean)eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isIvarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().rubyScope.setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setIvar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getIv("__attached__").getCvarSingleton().declareCvar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareCvar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getCvarSingleton().setCvar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().rubyScope.getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getIvar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)rubyFrame.getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getCvar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getCvar((RubyId)node.nd_vid()); } return ruby_cbase.getIv("__attached__").getCvarSingleton().getCvar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getCvarSingleton().getCvar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: // if (ruby_scope.local_vars() == null) { // rom.rb_bug("unexpected block argument"); // } // if (rom.rb_block_given_p()) { // result = rom.rb_f_lambda(); // ruby_scope.local_vars()[node.nd_cnt()] = result; // } else { return getRuby().getNil(); // } case NODE_COLON2: RubyModule rubyClass = (RubyModule)eval(self, node.nd_head());/* switch (TYPE(klass)) { case T_CLASS: case T_MODULE: break; default: return rom.rb_funcall(klass, node.nd_mid(), 0, 0); }*/ return rubyClass.getConstant((RubyId)node.nd_mid()); case NODE_COLON3: return getRuby().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH:/* RubyHash hash = RubyHash.m_newHash(); RubyObject key, val; NODE list = node.nd_head(); while (list != null) { key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { rom.rb_bug("odd number list for Hash"); } val = eval(self, list.nd_head()); list = list.nd_next(); hash.aset(key, val); } return hash;*/ case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: RubyArray ary = (RubyArray)RubyArray.m_newArray(getRuby(), node.nd_alen()); for (int i = 0; node != null ; node = node.nd_next()) { ary.getArray().set(i++, eval(self, node.nd_head())); } return ary; case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET:/* if (ruby_frame.argc() != 1) { throw new RubyArgumentException("wrong # of arguments(" + ruby_frame.argc() + "for 1)"); } return self.setIvar((RubyId)node.nd_vid(), ruby_frame.argv()[0]); */ return null; case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); NODE body = ruby_class.searchMethod((RubyId)node.nd_mid()); RubyObject origin = ruby_class.getMethodOrigin((RubyId)node.nd_mid()); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (scope_vmode == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getIv("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { // ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: //rb_alias_variable(node.nd_new(), node.nd_old()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 430, 261, 27768, 18, 27768, 3876, 18, 588, 2042, 5555, 1435, 422, 446, 13, 288, 604, 394, 3235, 2932, 4827, 30, 9733, 1203, 1237, 8863, 289, 309, 261, 291, 1768, 6083, 10756, 288, 563, 273, 4170, 10340, 7675, 588, 12616, 5621, 22155, 18, 27768, 3876, 18, 542, 2042, 5555, 12, 2159, 18, 4880, 67, 13085, 9334, 563, 1769, 327, 563, 31, 289, 469, 288, 225, 11922, 756, 273, 290, 31, 430, 261, 27768, 18, 27768, 3876, 18, 588, 2042, 5555, 1435, 422, 446, 13, 288, 604, 394, 3235, 2932, 4827, 30, 9733, 1203, 1237, 8863, 289, 309, 261, 291, 1768, 6083, 10756, 288, 563, 273, 4170, 10340, 7675, 588, 12616, 5621, 22155, 18, 27768, 3876, 18, 542, 2042, 5555, 12, 2159, 18, 4880, 67, 13085, 9334, 563, 1769, 327, 563, 31, 289, 469, 288, 309, 261, 27768, 18, 27768, 3876, 18, 588, 2042, 5555, 1435, 422, 446, 13, 288, 604, 394, 3235, 2932, 4827, 30, 9733, 1203, 1237, 8863, 289, 309, 261, 291, 1768, 6083, 10756, 288, 563, 273, 4170, 10340, 7675, 588, 12616, 5621, 22155, 18, 27768, 3876, 18, 542, 2042, 5555, 12, 2159, 18, 4880, 67, 13085, 9334, 563, 1769, 327, 563, 31, 289, 469, 288, 282, 19817, 5507, 6941, 273, 446, 31, 430, 261, 27768, 18, 27768, 3876, 18, 588, 2042, 5555, 1435, 422, 446, 13, 288, 604, 394, 3235, 2932, 4827, 30, 9733, 1203, 1237, 8863, 289, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 430, 261, 27768, 18, 27768, 3876, 18, 588, 2042, 5555, 1435, 422, 446, 13, 288, 604, 394, 3235, 2932, 4827, 30, 9733, 1203, 1237, 8863, 289, 309, 261, 291, 1768, 6083, 10756, 288, 563, 273, 4170, 10340, 7675, 588, 12616, 5621, 22155, 18, 27768, 3876, 18, 542, 2042, 5555, 12, 2159, 18, 4880, 67, 13085, 9334, 563, 1769, 327, 563, 31, 289, 469, 288, 225, 11922, 756, 273, 290, 31, 430, 261, 27768, 18, 27768, 3876, 18, 588, 2042, 5555, 1435, 422, 446, 13, 288, 604, 394, 3235, 2932, 4827, 30, 9733, 1203, 1237, 8863, 289, 309, 261, 291, 1768, 6083, 10756, 288, 563, 2 ]
if (!itsUseDynamicScope) {
if (!codegen.itsUseDynamicScope) {
private void visitCall(Node node, int type, Node child) { /* * Generate code for call. */ Node chelsea = child; // remember the first child for later OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); if (target != null) { generateCodeFromNode(child, node); int regularCall = cfw.acquireLabel(); int directTargetIndex = target.getDirectTargetIndex(); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.GETFIELD, mainCodegen.generatedClassName, Codegen.getDirectTargetFieldName(directTargetIndex), cfw.classNameToSignature(target.getClassName())); short stackHeight = cfw.getStackTop(); cfw.add(ByteCode.DUP2); cfw.add(ByteCode.IF_ACMPNE, regularCall); cfw.add(ByteCode.SWAP); cfw.add(ByteCode.POP); if (!itsUseDynamicScope) { cfw.add(ByteCode.DUP); cfw.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); } else { cfw.addALoad(variableObjectLocal); } cfw.addALoad(contextLocal); cfw.add(ByteCode.SWAP); if (type == Token.NEW) cfw.add(ByteCode.ACONST_NULL); else { child = child.getNext(); generateCodeFromNode(child, node); }/* Remember that directCall parameters are paired in 1 aReg and 1 dReg If the argument is an incoming arg, just pass the orginal pair thru. Else, if the argument is known to be typed 'Number', pass Void.TYPE in the aReg and the number is the dReg Else pass the JS object in the aReg and 0.0 in the dReg.*/ child = child.getNext(); while (child != null) { boolean handled = false; if ((child.getType() == Token.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar != null && lVar.isParameter()) { handled = true; cfw.addALoad(lVar.getJRegister()); cfw.addDLoad(lVar.getJRegister() + 1); } } if (!handled) { int childNumberFlag = child.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { cfw.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); generateCodeFromNode(child, node); } else { generateCodeFromNode(child, node); cfw.addPush(0.0); } } resetTargets(child); child = child.getNext(); } cfw.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, target.getClassName(), (type == Token.NEW) ? "constructDirect" : "callDirect", target.getDirectCallMethodSignature()); int beyond = cfw.acquireLabel(); cfw.add(ByteCode.GOTO, beyond); cfw.markLabel(regularCall, stackHeight); cfw.add(ByteCode.POP); visitRegularCall(node, type, chelsea, true); cfw.markLabel(beyond); } else { visitRegularCall(node, type, chelsea, false); } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 1477, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 565, 288, 3639, 1748, 540, 380, 6654, 981, 364, 745, 18, 540, 1195, 3639, 2029, 462, 12107, 69, 273, 1151, 31, 1377, 368, 11586, 326, 1122, 1151, 364, 5137, 3639, 12056, 2083, 907, 5411, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 5411, 509, 6736, 1477, 273, 6080, 91, 18, 1077, 1039, 2224, 5621, 5411, 509, 2657, 2326, 1016, 273, 1018, 18, 588, 5368, 2326, 1016, 5621, 5411, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 5411, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 3264, 6776, 16, 783, 1085, 4507, 18, 11168, 3834, 16, 10792, 3356, 4507, 18, 19803, 67, 10885, 67, 6776, 16, 10792, 2774, 1085, 4507, 18, 11168, 797, 5374, 1769, 5411, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 3264, 6776, 16, 2774, 1085, 4507, 18, 11168, 3834, 16, 10792, 3356, 4507, 18, 588, 5368, 2326, 7287, 12, 7205, 2326, 1016, 3631, 10792, 6080, 91, 18, 12434, 774, 5374, 12, 3299, 18, 588, 3834, 1435, 10019, 5411, 3025, 2110, 2686, 273, 6080, 91, 18, 588, 2624, 3401, 5621, 5411, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 30387, 22, 1769, 5411, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 5501, 67, 2226, 4566, 5407, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 1477, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 565, 288, 3639, 1748, 540, 380, 6654, 981, 364, 745, 18, 540, 1195, 3639, 2029, 462, 12107, 69, 273, 1151, 31, 1377, 368, 11586, 326, 1122, 1151, 364, 5137, 3639, 12056, 2083, 907, 5411, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 1769, 5411, 509, 6736, 1477, 273, 6080, 91, 18, 1077, 1039, 2224, 5621, 5411, 509, 2657, 2326, 1016, 273, 1018, 18, 588, 5368, 2326, 1016, 5621, 5411, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 2 ]
protected void addMeasure(final int i, final SqlQuery sqlQuery) { AggStar.FactTable.Measure measure = getMeasure(i); measure.getTable().addToFrom(sqlQuery, false, true); String expr = measure.getExpression(sqlQuery); sqlQuery.addSelect(expr, getMeasureAlias(i)); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/04e646f31dd5b7942980cee630c94f49bdab0e26/AggQuerySpec.java/buggy/src/main/mondrian/rolap/agg/AggQuerySpec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 7197, 12, 6385, 509, 277, 16, 727, 8855, 1138, 24451, 13, 288, 3639, 25618, 18379, 18, 9766, 1388, 18, 7197, 6649, 273, 25107, 3619, 12, 77, 1769, 10792, 6649, 18, 588, 1388, 7675, 1289, 774, 1265, 12, 4669, 1138, 16, 629, 16, 638, 1769, 7734, 514, 3065, 273, 6649, 18, 588, 2300, 12, 4669, 1138, 1769, 3639, 24451, 18, 1289, 3391, 12, 8638, 16, 25107, 3619, 2936, 12, 77, 10019, 565, 289, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 7197, 12, 6385, 509, 277, 16, 727, 8855, 1138, 24451, 13, 288, 3639, 25618, 18379, 18, 9766, 1388, 18, 7197, 6649, 273, 25107, 3619, 12, 77, 1769, 10792, 6649, 18, 588, 1388, 7675, 1289, 774, 1265, 12, 4669, 1138, 16, 629, 16, 638, 1769, 7734, 514, 3065, 273, 6649, 18, 588, 2300, 12, 4669, 1138, 1769, 3639, 24451, 18, 1289, 3391, 12, 8638, 16, 25107, 3619, 2936, 12, 77, 10019, 565, 289, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(XmlSchemaAll) groupObj.particle, schema);
(XmlSchemaAll) groupObj.particle, schema);
Element serializeGroup(Document doc, XmlSchemaGroup groupObj, XmlSchema schema) throws XmlSchemaSerializerException { Element group = createNewElement(doc, "group", schema.schema_ns_prefix, XmlSchema.SCHEMA_NS); if (groupObj.name != null) { if (groupObj.name.length() > 0) { group.setAttribute("name", groupObj.name); } } else throw new XmlSchemaSerializerException("Group must have " + "name or ref"); /* annotations are supposed to be written first!!!!! */ if (groupObj.annotation != null) { Element annotation = serializeAnnotation(doc, groupObj.annotation, schema); group.appendChild(annotation); } if (groupObj.particle instanceof XmlSchemaSequence) { Element sequence = serializeSequence(doc, (XmlSchemaSequence) groupObj.particle, schema); group.appendChild(sequence); } else if (groupObj.particle instanceof XmlSchemaChoice) { Element choice = serializeChoice(doc, (XmlSchemaChoice) groupObj.particle, schema); group.appendChild(choice); } else if (groupObj.particle instanceof XmlSchemaAll) { Element all = serializeAll(doc, (XmlSchemaAll) groupObj.particle, schema); group.appendChild(all); } return group; }
58536 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58536/583d6c2db5f993d3085942269eca1b2ab8f3bc5f/XmlSchemaSerializer.java/buggy/src/org/apache/ws/commons/schema/XmlSchemaSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3010, 4472, 1114, 12, 2519, 997, 16, 5714, 3078, 1114, 1041, 2675, 16, 21821, 5714, 3078, 1963, 13, 1216, 5714, 3078, 6306, 503, 288, 3639, 3010, 1041, 273, 15291, 1046, 12, 2434, 16, 315, 1655, 3113, 29159, 1963, 18, 4821, 67, 2387, 67, 3239, 16, 5714, 3078, 18, 14233, 67, 3156, 1769, 3639, 309, 261, 1655, 2675, 18, 529, 480, 446, 13, 288, 5411, 309, 261, 1655, 2675, 18, 529, 18, 2469, 1435, 405, 374, 13, 288, 7734, 1041, 18, 542, 1499, 2932, 529, 3113, 1041, 2675, 18, 529, 1769, 5411, 289, 3639, 289, 469, 5411, 604, 394, 5714, 3078, 6306, 503, 2932, 1114, 1297, 1240, 315, 397, 4766, 10402, 315, 529, 578, 1278, 8863, 540, 1748, 5617, 854, 18405, 358, 506, 5941, 1122, 23045, 5, 1195, 3639, 309, 261, 1655, 2675, 18, 11495, 480, 446, 13, 288, 5411, 3010, 3204, 273, 4472, 3257, 12, 2434, 16, 4766, 5397, 1041, 2675, 18, 11495, 16, 1963, 1769, 5411, 1041, 18, 6923, 1763, 12, 11495, 1769, 3639, 289, 3639, 309, 261, 1655, 2675, 18, 2680, 3711, 1276, 5714, 3078, 4021, 13, 288, 5411, 3010, 3102, 273, 4472, 4021, 12, 2434, 16, 4766, 1171, 261, 4432, 3078, 4021, 13, 1041, 2675, 18, 2680, 3711, 16, 1963, 1769, 5411, 1041, 18, 6923, 1763, 12, 6178, 1769, 3639, 289, 469, 309, 261, 1655, 2675, 18, 2680, 3711, 1276, 5714, 3078, 10538, 13, 288, 5411, 3010, 6023, 273, 4472, 10538, 12, 2434, 16, 4766, 2398, 261, 4432, 3078, 10538, 13, 1041, 2675, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3010, 4472, 1114, 12, 2519, 997, 16, 5714, 3078, 1114, 1041, 2675, 16, 21821, 5714, 3078, 1963, 13, 1216, 5714, 3078, 6306, 503, 288, 3639, 3010, 1041, 273, 15291, 1046, 12, 2434, 16, 315, 1655, 3113, 29159, 1963, 18, 4821, 67, 2387, 67, 3239, 16, 5714, 3078, 18, 14233, 67, 3156, 1769, 3639, 309, 261, 1655, 2675, 18, 529, 480, 446, 13, 288, 5411, 309, 261, 1655, 2675, 18, 529, 18, 2469, 1435, 405, 374, 13, 288, 7734, 1041, 18, 542, 1499, 2932, 529, 3113, 1041, 2675, 18, 529, 1769, 5411, 289, 3639, 289, 469, 5411, 604, 394, 5714, 3078, 6306, 503, 2932, 1114, 1297, 1240, 315, 397, 4766, 10402, 315, 529, 578, 1278, 8863, 540, 1748, 5617, 2 ]
fDocumentHandler.characters(fStringBuffer, fAugmentations);
fDocumentHandler.characters(fStringBuffer, null);
protected boolean scanCDATASection(boolean complete) throws IOException, XNIException { // call handler if (fDocumentHandler != null) { fDocumentHandler.startCDATA(fAugmentations); } while (true) { if (!fEntityScanner.scanData("]]", fString)) { if (fDocumentHandler != null && fString.length > 0) { fDocumentHandler.characters(fString, fAugmentations); } int brackets = 2; while (fEntityScanner.skipChar(']')) { brackets++; } if (fDocumentHandler != null && brackets > 2) { fStringBuffer.clear(); for (int i = 2; i < brackets; i++) { fStringBuffer.append(']'); } fDocumentHandler.characters(fStringBuffer, fAugmentations); } if (fEntityScanner.skipChar('>')) { break; } if (fDocumentHandler != null) { fStringBuffer.clear(); fStringBuffer.append("]]"); fDocumentHandler.characters(fStringBuffer, fAugmentations); } } else { if (fDocumentHandler != null) { fDocumentHandler.characters(fString, fAugmentations); } int c = fEntityScanner.peekChar(); if (c != -1 && XMLChar.isInvalid(c)) { if (XMLChar.isHighSurrogate(c)) { fStringBuffer.clear(); scanSurrogates(fStringBuffer); if (fDocumentHandler != null) { fDocumentHandler.characters(fStringBuffer, fAugmentations); } } else { reportFatalError("InvalidCharInCDSect", new Object[]{Integer.toString(c,16)}); fEntityScanner.scanChar(); } } } } fMarkupDepth--; // call handler if (fDocumentHandler != null) { fDocumentHandler.endCDATA(fAugmentations); } return true; } // scanCDATASection(boolean):boolean
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0c89615b0bdfe565e769952ce9d81b62b7cd076a/XMLDocumentFragmentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 4135, 10160, 789, 3033, 794, 12, 6494, 3912, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 7734, 368, 745, 1838, 3639, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 5411, 284, 2519, 1503, 18, 1937, 18375, 12, 29534, 14870, 1012, 1769, 3639, 289, 3639, 1323, 261, 3767, 13, 288, 5411, 309, 16051, 74, 1943, 11338, 18, 9871, 751, 2932, 13563, 3113, 284, 780, 3719, 288, 7734, 309, 261, 74, 2519, 1503, 480, 446, 597, 284, 780, 18, 2469, 405, 374, 13, 288, 10792, 284, 2519, 1503, 18, 20558, 12, 74, 780, 16, 284, 37, 14870, 1012, 1769, 7734, 289, 7734, 509, 15597, 273, 576, 31, 7734, 1323, 261, 74, 1943, 11338, 18, 7457, 2156, 2668, 3864, 3719, 288, 10792, 15597, 9904, 31, 7734, 289, 7734, 309, 261, 74, 2519, 1503, 480, 446, 597, 15597, 405, 576, 13, 288, 10792, 284, 780, 1892, 18, 8507, 5621, 10792, 364, 261, 474, 277, 273, 576, 31, 277, 411, 15597, 31, 277, 27245, 288, 13491, 284, 780, 1892, 18, 6923, 2668, 3864, 1769, 10792, 289, 10792, 284, 2519, 1503, 18, 20558, 12, 74, 780, 1892, 16, 446, 1769, 7734, 289, 7734, 309, 261, 74, 1943, 11338, 18, 7457, 2156, 2668, 1870, 3719, 288, 10792, 898, 31, 7734, 289, 7734, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 10792, 284, 780, 1892, 18, 8507, 5621, 10792, 284, 780, 1892, 18, 6923, 2932, 65, 4279, 1769, 10792, 284, 2519, 1503, 18, 20558, 12, 74, 780, 1892, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 4135, 10160, 789, 3033, 794, 12, 6494, 3912, 13, 540, 1216, 1860, 16, 1139, 50, 45, 503, 288, 7734, 368, 745, 1838, 3639, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 5411, 284, 2519, 1503, 18, 1937, 18375, 12, 29534, 14870, 1012, 1769, 3639, 289, 3639, 1323, 261, 3767, 13, 288, 5411, 309, 16051, 74, 1943, 11338, 18, 9871, 751, 2932, 13563, 3113, 284, 780, 3719, 288, 7734, 309, 261, 74, 2519, 1503, 480, 446, 597, 284, 780, 18, 2469, 405, 374, 13, 288, 10792, 284, 2519, 1503, 18, 20558, 12, 74, 780, 16, 284, 37, 14870, 1012, 1769, 7734, 289, 7734, 509, 15597, 273, 576, 31, 7734, 1323, 261, 74, 1943, 11338, 18, 7457, 2 ]
public MoleculeViewer2D()
public MoleculeViewer2D(AtomContainer atomContainer, Renderer2DModel r2dm)
public MoleculeViewer2D() { this(null, new Renderer2DModel()); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/3e3ce83f333410427bff8adb3c26eac1fa318387/MoleculeViewer2D.java/buggy/src/org/openscience/cdk/applications/swing/MoleculeViewer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 490, 10545, 18415, 22, 40, 1435, 202, 95, 202, 202, 2211, 12, 2011, 16, 394, 17589, 22, 40, 1488, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 490, 10545, 18415, 22, 40, 1435, 202, 95, 202, 202, 2211, 12, 2011, 16, 394, 17589, 22, 40, 1488, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected abstract String getCommandString();
abstract String getCommandString();
protected abstract String getCommandString();
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9578e9b9e2c435935f98182c56fcec172a447adf/OperationHistoryActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/OperationHistoryActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8770, 514, 12856, 780, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8770, 514, 12856, 780, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (method != null) { try { method.invoke(e.getPlugin(), new Object[]{socketListener});
if (method != null) { try { method.invoke(e.getPlugin(), new Object[] { socketListener }); } catch (Exception ex) { LogLog.error("Failed to remove SocketNodeEventListener", ex); }
public void pluginStopped(PluginEvent e) { Method method = getRemoveListenerMethod(e.getPlugin()); if (method != null) { try { method.invoke(e.getPlugin(), new Object[]{socketListener}); } catch (Exception ex) { LogLog.error("Failed to remove SocketNodeEventListener", ex); } } statusBar.setMessage(e.getPlugin().getName() + " stopped!"); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/3d13a775b379e3dcb56bfa1b7fbefd5c5dc2b470/LogUI.java/clean/src/java/org/apache/log4j/chainsaw/LogUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1909, 15294, 12, 3773, 1133, 425, 13, 1377, 288, 3639, 2985, 707, 273, 336, 3288, 2223, 1305, 12, 73, 18, 588, 3773, 10663, 3639, 309, 261, 2039, 480, 446, 13, 3639, 288, 1850, 775, 1850, 288, 5411, 707, 18, 14407, 12, 73, 18, 588, 3773, 9334, 394, 1033, 63, 7073, 7814, 2223, 22938, 1850, 289, 1850, 1044, 261, 503, 431, 13, 1850, 288, 5411, 1827, 1343, 18, 1636, 2932, 2925, 358, 1206, 8758, 907, 7375, 3113, 431, 1769, 1850, 289, 3639, 289, 3639, 1267, 5190, 18, 542, 1079, 12, 73, 18, 588, 3773, 7675, 17994, 1435, 397, 315, 9627, 4442, 1769, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1909, 15294, 12, 3773, 1133, 425, 13, 1377, 288, 3639, 2985, 707, 273, 336, 3288, 2223, 1305, 12, 73, 18, 588, 3773, 10663, 3639, 309, 261, 2039, 480, 446, 13, 3639, 288, 1850, 775, 1850, 288, 5411, 707, 18, 14407, 12, 73, 18, 588, 3773, 9334, 394, 1033, 63, 7073, 7814, 2223, 22938, 1850, 289, 1850, 1044, 261, 503, 431, 13, 1850, 288, 5411, 1827, 1343, 18, 1636, 2932, 2925, 358, 1206, 8758, 907, 7375, 3113, 431, 1769, 1850, 289, 3639, 289, 3639, 1267, 5190, 18, 542, 1079, 12, 73, 18, 588, 3773, 7675, 17994, 1435, 397, 315, 9627, 4442, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DefaultTableModel tableModel = tableTag.getTableModel(); tableModel.addTableRowBean(rowBean); tableTag.setTableModel(tableModel);
try { JspWriter out = pageContext.getOut(); out.print(rowBean.toEndString()); } catch (Exception e) { throw new JspException(e.getMessage());
public int doEndTag() throws JspException { TableTag tableTag = (TableTag)getParent(); if (tableTag != null) { rowBean.setHeader(isHeader); Iterator it = list.iterator(); while (it.hasNext()) { BaseComponentBean bean = (BaseComponentBean)it.next(); rowBean.addBean(bean); } DefaultTableModel tableModel = tableTag.getTableModel(); tableModel.addTableRowBean(rowBean); tableTag.setTableModel(tableModel); } return EVAL_PAGE; }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/9863b89cfaff33fe3399474348972a14bc241035/TableRowTag.java/clean/src/org/gridlab/gridsphere/tags/portletui/TableRowTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 3555, 1805, 1014, 1805, 273, 261, 1388, 1805, 13, 588, 3054, 5621, 3639, 309, 261, 2121, 1805, 480, 446, 13, 288, 5411, 1027, 3381, 18, 542, 1864, 12, 291, 1864, 1769, 5411, 4498, 518, 273, 666, 18, 9838, 5621, 5411, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 7734, 3360, 1841, 3381, 3931, 273, 261, 2171, 1841, 3381, 13, 305, 18, 4285, 5621, 7734, 1027, 3381, 18, 1289, 3381, 12, 14496, 1769, 5411, 289, 5411, 2989, 1388, 1488, 1014, 1488, 273, 1014, 1805, 18, 588, 1388, 1488, 5621, 5411, 1014, 1488, 18, 1289, 30650, 3381, 12, 492, 3381, 1769, 5411, 1014, 1805, 18, 542, 1388, 1488, 12, 2121, 1488, 1769, 3639, 289, 3639, 327, 512, 2669, 67, 11219, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 3555, 1805, 1014, 1805, 273, 261, 1388, 1805, 13, 588, 3054, 5621, 3639, 309, 261, 2121, 1805, 480, 446, 13, 288, 5411, 1027, 3381, 18, 542, 1864, 12, 291, 1864, 1769, 5411, 4498, 518, 273, 666, 18, 9838, 5621, 5411, 1323, 261, 305, 18, 5332, 2134, 10756, 288, 7734, 3360, 1841, 3381, 3931, 273, 261, 2171, 1841, 3381, 13, 305, 18, 4285, 5621, 7734, 1027, 3381, 18, 1289, 3381, 12, 14496, 1769, 5411, 289, 5411, 2989, 1388, 1488, 1014, 1488, 273, 1014, 1805, 18, 588, 1388, 1488, 5621, 5411, 1014, 1488, 18, 1289, 30650, 3381, 12, 492, 3381, 1769, 5411, 1014, 1805, 18, 542, 1388, 1488, 12, 2121, 1488, 2 ]
buffer.getIdent(init));
bufferName);
public void addDRAMCommand(boolean read, boolean init, boolean primepump, int bytes, OffChipBuffer buffer, boolean presynched) { parent.setComputes(); String functName = "raw_streaming_dram_request_" + (read ? "read" : "write") + (presynched ? "_presynched" : ""); //the args for the streaming dram command //cachelines that are needed assert bytes % RawChip.cacheLineBytes == 0 : "transfer size for dram must be a multiple of cache line size"; int cacheLines = bytes / RawChip.cacheLineBytes; JExpression[] args = {new JFieldAccessExpression(null, new JThisExpression(null), buffer.getIdent(init)), new JIntLiteral(1), new JIntLiteral(cacheLines)}; //the dram command JMethodCallExpression call = new JMethodCallExpression(null, functName, args); //send over the address JFieldAccessExpression dynNetSend = new JFieldAccessExpression(null, new JThisExpression(null), Util.CGNOINTVAR); JFieldAccessExpression bufAccess = new JFieldAccessExpression(null, new JThisExpression(null), buffer.getIdent(init)); JAssignmentExpression assExp = new JAssignmentExpression(null, dynNetSend, bufAccess); SpaceTimeBackend.println("Adding DRAM Command to " + parent + " " + buffer + " " + cacheLines); //add the statements to the appropriate stage if (init || primepump) { initBlock.addStatement(new JExpressionStatement(null, call, null)); initBlock.addStatement(new JExpressionStatement(null, assExp, null)); } else { steadyLoop.addStatement(steadyIndex ++, new JExpressionStatement(null, call, null)); steadyLoop.addStatement(steadyIndex ++, new JExpressionStatement(null, assExp, null)); } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/164c9056ab40fc12002d601fba92927499156ad7/ComputeCodeStore.java/buggy/streams/src/at/dms/kjc/spacetime/ComputeCodeStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 6331, 2192, 2189, 12, 6494, 855, 16, 1250, 1208, 16, 1250, 17014, 84, 2801, 16, 9506, 4202, 509, 1731, 16, 15837, 782, 625, 1892, 1613, 16, 1250, 4075, 878, 2049, 13, 377, 288, 202, 2938, 18, 542, 10743, 5621, 202, 780, 12882, 461, 273, 315, 1899, 67, 3256, 310, 67, 72, 1940, 67, 2293, 9548, 397, 202, 565, 261, 896, 692, 315, 896, 6, 294, 315, 2626, 7923, 397, 261, 12202, 878, 2049, 692, 4192, 12202, 878, 2049, 6, 294, 1408, 1769, 202, 759, 5787, 833, 364, 326, 12833, 302, 1940, 1296, 202, 202, 759, 17703, 14567, 716, 854, 3577, 202, 11231, 1731, 738, 6576, 782, 625, 18, 2493, 1670, 2160, 422, 374, 294, 202, 565, 315, 13866, 963, 364, 302, 1940, 1297, 506, 279, 3229, 434, 1247, 980, 963, 14432, 202, 474, 1247, 5763, 273, 1731, 342, 6576, 782, 625, 18, 2493, 1670, 2160, 31, 202, 46, 2300, 8526, 833, 273, 288, 2704, 804, 974, 1862, 2300, 12, 2011, 16, 20982, 394, 804, 2503, 2300, 12, 2011, 3631, 6862, 9506, 1613, 18, 588, 6106, 12, 2738, 13, 3631, 9506, 1377, 394, 804, 1702, 6177, 12, 21, 3631, 9506, 1377, 394, 804, 1702, 6177, 12, 2493, 5763, 16869, 31, 202, 759, 5787, 302, 1940, 1296, 202, 46, 12592, 2300, 745, 273, 3196, 565, 394, 804, 12592, 2300, 12, 2011, 16, 12882, 461, 16, 833, 1769, 202, 202, 759, 4661, 1879, 326, 1758, 202, 46, 974, 1862, 2300, 19417, 7308, 3826, 273, 3196, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 6331, 2192, 2189, 12, 6494, 855, 16, 1250, 1208, 16, 1250, 17014, 84, 2801, 16, 9506, 4202, 509, 1731, 16, 15837, 782, 625, 1892, 1613, 16, 1250, 4075, 878, 2049, 13, 377, 288, 202, 2938, 18, 542, 10743, 5621, 202, 780, 12882, 461, 273, 315, 1899, 67, 3256, 310, 67, 72, 1940, 67, 2293, 9548, 397, 202, 565, 261, 896, 692, 315, 896, 6, 294, 315, 2626, 7923, 397, 261, 12202, 878, 2049, 692, 4192, 12202, 878, 2049, 6, 294, 1408, 1769, 202, 759, 5787, 833, 364, 326, 12833, 302, 1940, 1296, 202, 202, 759, 17703, 14567, 716, 854, 3577, 202, 11231, 1731, 738, 6576, 782, 625, 18, 2493, 1670, 2160, 422, 374, 294, 202, 2 ]
for (Leave leave : leaveList) { if (leave.getJustificationMotive().getJustificationType() != JustificationType.BALANCE) { pointList.addAll(leave.toTimePoints((AttributeType) attributesIt.next())); } }
public void plotListInTimeline(List<AssiduousnessRecord> clockingList, List<Leave> leaveList, Iterator<AttributeType> attributesIt, YearMonthDay day) { List<TimePoint> pointList = new ArrayList<TimePoint>(); for (Leave leave : leaveList) { if (leave.getJustificationMotive().getJustificationType() != JustificationType.BALANCE) { pointList.addAll(leave.toTimePoints((AttributeType) attributesIt.next())); } } Iterator<AssiduousnessRecord> clockingIt = clockingList.iterator(); while (clockingIt.hasNext()) { final AssiduousnessRecord clockIn = clockingIt.next(); final AttributeType attribute = attributesIt.next(); final TimePoint timePointIn = constructTimePoint(clockIn, day, attribute); pointList.add(timePointIn); if (clockingIt.hasNext()) { final AssiduousnessRecord clockOut = clockingIt.next(); final TimePoint timePointOut = constructTimePoint(clockOut, day, attribute); pointList.add(timePointOut); } } plotList(pointList); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f2d13d5bceb9c9cec600a32574af95ee124189c8/Timeline.java/clean/src/net/sourceforge/fenixedu/domain/assiduousness/util/Timeline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3207, 682, 382, 31914, 12, 682, 32, 2610, 350, 89, 1481, 4496, 2115, 34, 7268, 310, 682, 16, 987, 32, 21300, 34, 8851, 682, 16, 5411, 4498, 32, 19529, 34, 1677, 7193, 16, 16666, 5445, 4245, 2548, 13, 288, 3639, 987, 32, 950, 2148, 34, 1634, 682, 273, 394, 2407, 32, 950, 2148, 34, 5621, 3639, 364, 261, 21300, 8851, 294, 8851, 682, 13, 288, 5411, 309, 261, 19574, 18, 588, 19642, 1480, 24749, 688, 7675, 588, 19642, 1480, 559, 1435, 480, 12526, 1480, 559, 18, 38, 1013, 4722, 13, 288, 7734, 1634, 682, 18, 1289, 1595, 12, 19574, 18, 869, 950, 5636, 12443, 19529, 13, 1677, 7193, 18, 4285, 1435, 10019, 5411, 289, 3639, 289, 3639, 4498, 32, 2610, 350, 89, 1481, 4496, 2115, 34, 7268, 310, 7193, 273, 7268, 310, 682, 18, 9838, 5621, 3639, 1323, 261, 18517, 310, 7193, 18, 5332, 2134, 10756, 288, 5411, 727, 4725, 350, 89, 1481, 4496, 2115, 7268, 382, 273, 7268, 310, 7193, 18, 4285, 5621, 5411, 727, 26414, 1566, 273, 1677, 7193, 18, 4285, 5621, 5411, 727, 2647, 2148, 813, 2148, 382, 273, 4872, 950, 2148, 12, 18517, 382, 16, 2548, 16, 1566, 1769, 5411, 1634, 682, 18, 1289, 12, 957, 2148, 382, 1769, 5411, 309, 261, 18517, 310, 7193, 18, 5332, 2134, 10756, 288, 7734, 727, 4725, 350, 89, 1481, 4496, 2115, 7268, 1182, 273, 7268, 310, 7193, 18, 4285, 5621, 7734, 727, 2647, 2148, 813, 2148, 1182, 273, 4872, 950, 2148, 12, 18517, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3207, 682, 382, 31914, 12, 682, 32, 2610, 350, 89, 1481, 4496, 2115, 34, 7268, 310, 682, 16, 987, 32, 21300, 34, 8851, 682, 16, 5411, 4498, 32, 19529, 34, 1677, 7193, 16, 16666, 5445, 4245, 2548, 13, 288, 3639, 987, 32, 950, 2148, 34, 1634, 682, 273, 394, 2407, 32, 950, 2148, 34, 5621, 3639, 364, 261, 21300, 8851, 294, 8851, 682, 13, 288, 5411, 309, 261, 19574, 18, 588, 19642, 1480, 24749, 688, 7675, 588, 19642, 1480, 559, 1435, 480, 12526, 1480, 559, 18, 38, 1013, 4722, 13, 288, 7734, 1634, 682, 18, 1289, 1595, 12, 19574, 18, 869, 950, 5636, 12443, 19529, 13, 1677, 7193, 18, 4285, 1435, 10019, 5411, 289, 3639, 289, 2 ]
if(!featureType.equals(innerValueType)) { throw new AssertionError("Cannot change value type in a nested updatable value"); }
Assert.isTrue(featureType.equals(innerValueType), "Cannot change value type in a nested updatable value");
private void updateInnerUpdatableValue(IUpdatableValue outerUpdatableValue) { currentOuterValue = outerUpdatableValue.getValue(); if (innerUpdatableValue != null) { innerUpdatableValue.removeChangeListener(innerChangeListener); innerUpdatableValue.dispose(); } if (currentOuterValue == null) { innerUpdatableValue = null; } else { try { this.innerUpdatableValue = (IUpdatableValue) databindingContext .createUpdatable(new PropertyDescription(currentOuterValue, feature)); Class innerValueType = innerUpdatableValue.getValueType(); if(featureType==null) { featureType = innerValueType; } else { if(!featureType.equals(innerValueType)) { throw new AssertionError("Cannot change value type in a nested updatable value"); //$NON-NLS-1$ } } } catch (BindingException e) { // TODO Auto-generated catch block e.printStackTrace(); } innerUpdatableValue.addChangeListener(innerChangeListener); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8d8e50e4bead4d2275e825541a51df2da6bbd6a5/NestedUpdatableValue.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/internal/NestedUpdatableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 2857, 1211, 3404, 429, 620, 12, 45, 1211, 3404, 429, 620, 6390, 1211, 3404, 429, 620, 13, 288, 202, 202, 2972, 15040, 620, 273, 6390, 1211, 3404, 429, 620, 18, 24805, 5621, 202, 202, 430, 261, 7872, 1211, 3404, 429, 620, 480, 446, 13, 288, 1082, 202, 7872, 1211, 3404, 429, 620, 18, 4479, 15744, 12, 7872, 15744, 1769, 1082, 202, 7872, 1211, 3404, 429, 620, 18, 2251, 4150, 5621, 202, 202, 97, 202, 202, 430, 261, 2972, 15040, 620, 422, 446, 13, 288, 1082, 202, 7872, 1211, 3404, 429, 620, 273, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 7872, 1211, 3404, 429, 620, 273, 261, 45, 1211, 3404, 429, 620, 13, 10481, 728, 310, 1042, 25083, 202, 18, 2640, 1211, 3404, 429, 12, 2704, 4276, 3291, 12, 2972, 15040, 620, 16, 2572, 10019, 9506, 202, 797, 3443, 17930, 273, 3443, 1211, 3404, 429, 620, 18, 588, 17930, 5621, 9506, 202, 430, 12, 7238, 559, 631, 2011, 13, 288, 6862, 202, 7238, 559, 273, 3443, 17930, 31, 9506, 202, 97, 469, 288, 6862, 202, 430, 12, 5, 7238, 559, 18, 14963, 12, 7872, 17930, 3719, 288, 25083, 202, 12849, 394, 12068, 2932, 4515, 2549, 460, 618, 316, 279, 4764, 2166, 8163, 460, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1044, 261, 5250, 503, 425, 13, 288, 9506, 202, 759, 2660, 8064, 17, 11168, 1044, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 2857, 1211, 3404, 429, 620, 12, 45, 1211, 3404, 429, 620, 6390, 1211, 3404, 429, 620, 13, 288, 202, 202, 2972, 15040, 620, 273, 6390, 1211, 3404, 429, 620, 18, 24805, 5621, 202, 202, 430, 261, 7872, 1211, 3404, 429, 620, 480, 446, 13, 288, 1082, 202, 7872, 1211, 3404, 429, 620, 18, 4479, 15744, 12, 7872, 15744, 1769, 1082, 202, 7872, 1211, 3404, 429, 620, 18, 2251, 4150, 5621, 202, 202, 97, 202, 202, 430, 261, 2972, 15040, 620, 422, 446, 13, 288, 1082, 202, 7872, 1211, 3404, 429, 620, 273, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 7872, 1211, 3404, 429, 620, 273, 261, 2 ]
cwidth = len.getValue();
cwidth = len.getValue(this);
private Viewport getInlineArea() { XMLObj child = (XMLObj) fobj.childNodes.get(0); // viewport size is determined by block-progression-dimension // and inline-progression-dimension // if replaced then use height then ignore block-progression-dimension //int h = this.propertyList.get("height").getLength().mvalue(); // use specified line-height then ignore dimension in height direction boolean hasLH = false; //propertyList.get("line-height").getSpecifiedValue() != null; Length len; int bpd = -1; int ipd = -1; boolean bpdauto = false; if (hasLH) { bpd = fobj.getLineHeight().getValue(); } else { // this property does not apply when the line-height applies // isn't the block-progression-dimension always in the same // direction as the line height? len = fobj.getBlockProgressionDimension().getOptimum().getLength(); if (len.getEnum() != EN_AUTO) { bpd = len.getValue(); } else { len = fobj.getHeight(); if (len.getEnum() != EN_AUTO) { bpd = len.getValue(); } } } len = fobj.getInlineProgressionDimension().getOptimum().getLength(); if (len.getEnum() != EN_AUTO) { ipd = len.getValue(); } else { len = fobj.getWidth(); if (len.getEnum() != EN_AUTO) { ipd = len.getValue(); } } // if auto then use the intrinsic size of the content scaled // to the content-height and content-width int cwidth = -1; int cheight = -1; len = fobj.getContentWidth(); if (len.getEnum() != EN_AUTO) { if (len.getEnum() == EN_SCALE_TO_FIT) { if (ipd != -1) { cwidth = ipd; } } else { cwidth = len.getValue(); } } len = fobj.getContentHeight(); if (len.getEnum() != EN_AUTO) { if (len.getEnum() == EN_SCALE_TO_FIT) { if (bpd != -1) { cwidth = bpd; } } else { cheight = len.getValue(); } } int scaling = fobj.getScaling(); if ((scaling == EN_UNIFORM) || (cwidth == -1) || cheight == -1) { if (cwidth == -1 && cheight == -1) { cwidth = fobj.getIntrinsicWidth(); cheight = fobj.getIntrinsicHeight(); } else if (cwidth == -1) { cwidth = (int)(fobj.getIntrinsicWidth() * (double)cheight / fobj.getIntrinsicHeight()); } else if (cheight == -1) { cheight = (int)(fobj.getIntrinsicHeight() * (double)cwidth / fobj.getIntrinsicWidth()); } else { // adjust the larger double rat1 = cwidth / fobj.getIntrinsicWidth(); double rat2 = cheight / fobj.getIntrinsicHeight(); if (rat1 < rat2) { // reduce cheight cheight = (int)(rat1 * fobj.getIntrinsicHeight()); } else if (rat1 > rat2) { cwidth = (int)(rat2 * fobj.getIntrinsicWidth()); } } } if (ipd == -1) { ipd = cwidth; } if (bpd == -1) { bpd = cheight; } boolean clip = false; if (cwidth > ipd || cheight > bpd) { int overflow = fobj.getOverflow(); if (overflow == EN_HIDDEN) { clip = true; } else if (overflow == EN_ERROR_IF_OVERFLOW) { fobj.getLogger().error("Instream foreign object overflows the viewport: clipping"); clip = true; } } int xoffset = fobj.computeXOffset(ipd, cwidth); int yoffset = fobj.computeYOffset(bpd, cheight); CommonBorderPaddingBackground borderProps = fobj.getCommonBorderPaddingBackground(); //Determine extra BPD from borders etc. int beforeBPD = borderProps.getPadding(CommonBorderPaddingBackground.BEFORE, false); beforeBPD += borderProps.getBorderWidth(CommonBorderPaddingBackground.BEFORE, false); int afterBPD = borderProps.getPadding(CommonBorderPaddingBackground.AFTER, false); afterBPD += borderProps.getBorderWidth(CommonBorderPaddingBackground.AFTER, false); yoffset += beforeBPD; bpd += beforeBPD; bpd += afterBPD; //Determine extra IPD from borders etc. int startIPD = borderProps.getPadding(CommonBorderPaddingBackground.START, false/*bNotFirst*/); startIPD += borderProps.getBorderWidth(CommonBorderPaddingBackground.START, false/*bNotFirst*/); int endIPD = borderProps.getPadding(CommonBorderPaddingBackground.END, false/*bNotLast*/); endIPD += borderProps.getBorderWidth(CommonBorderPaddingBackground.END, false/*bNotLast*/); xoffset += startIPD; ipd += startIPD; ipd += endIPD; Rectangle2D placement = new Rectangle2D.Float(xoffset, yoffset, cwidth, cheight); org.w3c.dom.Document doc = child.getDOMDocument(); String ns = child.getDocumentNamespace(); //fobj.childNodes = null; This is bad for i-f-o in static-content!!!!! ForeignObject foreign = new ForeignObject(doc, ns); TraitSetter.setProducerID(foreign, fobj.getId()); Viewport vp = new Viewport(foreign); TraitSetter.setProducerID(vp, fobj.getId()); vp.setIPD(ipd); vp.setBPD(bpd); vp.setContentPosition(placement); vp.setClip(clip); vp.setOffset(0); // Common Border, Padding, and Background Properties TraitSetter.addBorders(vp, fobj.getCommonBorderPaddingBackground()); TraitSetter.addBackground(vp, fobj.getCommonBorderPaddingBackground()); return vp; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/8cad88a3e360b7c05118fb66275f45b090f51c97/InstreamForeignObjectLM.java/buggy/src/java/org/apache/fop/layoutmgr/inline/InstreamForeignObjectLM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4441, 655, 7854, 1369, 5484, 1435, 288, 3639, 3167, 2675, 1151, 273, 261, 4201, 2675, 13, 24705, 18, 3624, 3205, 18, 588, 12, 20, 1769, 3639, 368, 10482, 963, 353, 11383, 635, 1203, 17, 8298, 285, 17, 11808, 3639, 368, 471, 6370, 17, 8298, 285, 17, 11808, 3639, 368, 309, 8089, 1508, 999, 2072, 1508, 2305, 1203, 17, 8298, 285, 17, 11808, 3639, 368, 474, 366, 273, 333, 18, 4468, 682, 18, 588, 2932, 4210, 20387, 588, 1782, 7675, 81, 1132, 5621, 3639, 368, 999, 1269, 980, 17, 4210, 1508, 2305, 4968, 316, 2072, 4068, 3639, 1250, 711, 48, 44, 273, 629, 31, 368, 4468, 682, 18, 588, 2932, 1369, 17, 4210, 20387, 588, 17068, 620, 1435, 480, 446, 31, 3639, 11311, 562, 31, 3639, 509, 9107, 72, 273, 300, 21, 31, 3639, 509, 2359, 72, 273, 300, 21, 31, 3639, 1250, 9107, 2414, 3003, 273, 629, 31, 3639, 309, 261, 5332, 48, 44, 13, 288, 5411, 9107, 72, 273, 24705, 18, 588, 1670, 2686, 7675, 24805, 5621, 3639, 289, 469, 288, 5411, 368, 333, 1272, 1552, 486, 2230, 1347, 326, 980, 17, 4210, 10294, 5411, 368, 5177, 1404, 326, 1203, 17, 8298, 285, 17, 11808, 3712, 316, 326, 1967, 5411, 368, 4068, 487, 326, 980, 2072, 35, 5411, 562, 273, 24705, 18, 588, 1768, 5491, 285, 8611, 7675, 588, 6179, 2422, 7675, 588, 1782, 5621, 5411, 309, 261, 1897, 18, 588, 3572, 1435, 480, 6693, 67, 18909, 13, 288, 7734, 9107, 72, 273, 562, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4441, 655, 7854, 1369, 5484, 1435, 288, 3639, 3167, 2675, 1151, 273, 261, 4201, 2675, 13, 24705, 18, 3624, 3205, 18, 588, 12, 20, 1769, 3639, 368, 10482, 963, 353, 11383, 635, 1203, 17, 8298, 285, 17, 11808, 3639, 368, 471, 6370, 17, 8298, 285, 17, 11808, 3639, 368, 309, 8089, 1508, 999, 2072, 1508, 2305, 1203, 17, 8298, 285, 17, 11808, 3639, 368, 474, 366, 273, 333, 18, 4468, 682, 18, 588, 2932, 4210, 20387, 588, 1782, 7675, 81, 1132, 5621, 3639, 368, 999, 1269, 980, 17, 4210, 1508, 2305, 4968, 316, 2072, 4068, 3639, 1250, 711, 48, 44, 273, 629, 31, 368, 4468, 682, 18, 588, 2932, 1369, 17, 4210, 20387, 588, 17068, 620, 1435, 2 ]
public List getAllCheckedListItems() {
public void getAllCheckedListItems(IElementFilter filter, IProgressMonitor monitor) throws InterruptedException {
public List getAllCheckedListItems() { final ArrayList returnValue = new ArrayList(); IElementFilter passThroughFilter = new IElementFilter() { public void filterElements(Collection elements, IProgressMonitor monitor) { returnValue.addAll(elements); } public void filterElements(Object[] elements, IProgressMonitor monitor) { for (int i = 0; i < elements.length; i++) { returnValue.add(elements[i]); } } }; try { getAllCheckedListItems(passThroughFilter, null); } catch (InterruptedException exception) { return new ArrayList(); } return returnValue; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/ResourceTreeAndListGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceTreeAndListGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5514, 11454, 682, 3126, 12, 45, 1046, 1586, 1034, 16, 467, 5491, 7187, 6438, 13, 1216, 7558, 288, 3639, 727, 2407, 7750, 273, 394, 2407, 5621, 3639, 467, 1046, 1586, 1342, 14287, 1586, 273, 394, 467, 1046, 1586, 1435, 288, 5411, 1071, 918, 1034, 3471, 12, 2532, 2186, 16, 10792, 467, 5491, 7187, 6438, 13, 288, 7734, 7750, 18, 1289, 1595, 12, 6274, 1769, 5411, 289, 5411, 1071, 918, 1034, 3471, 12, 921, 8526, 2186, 16, 10792, 467, 5491, 7187, 6438, 13, 288, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2186, 18, 2469, 31, 277, 27245, 288, 10792, 7750, 18, 1289, 12, 6274, 63, 77, 19226, 7734, 289, 5411, 289, 3639, 289, 31, 3639, 775, 288, 5411, 5514, 11454, 682, 3126, 12, 5466, 14287, 1586, 16, 446, 1769, 3639, 289, 1044, 261, 24485, 503, 1520, 13, 288, 5411, 327, 394, 2407, 5621, 3639, 289, 3639, 327, 7750, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5514, 11454, 682, 3126, 12, 45, 1046, 1586, 1034, 16, 467, 5491, 7187, 6438, 13, 1216, 7558, 288, 3639, 727, 2407, 7750, 273, 394, 2407, 5621, 3639, 467, 1046, 1586, 1342, 14287, 1586, 273, 394, 467, 1046, 1586, 1435, 288, 5411, 1071, 918, 1034, 3471, 12, 2532, 2186, 16, 10792, 467, 5491, 7187, 6438, 13, 288, 7734, 7750, 18, 1289, 1595, 12, 6274, 1769, 5411, 289, 5411, 1071, 918, 1034, 3471, 12, 921, 8526, 2186, 16, 10792, 467, 5491, 7187, 6438, 13, 288, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2186, 18, 2469, 31, 277, 27245, 288, 10792, 7750, 18, 1289, 12, 6274, 63, 77, 19226, 7734, 289, 5411, 289, 3639, 289, 31, 2 ]
.add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup()
.add(schemaPanelLayout.createSequentialGroup()
private void initComponents() { schemaRadios = new javax.swing.ButtonGroup(); filePanel = new javax.swing.JPanel(); fileText = new javax.swing.JTextField(); browseButton = new javax.swing.JButton(); databasePanel = new javax.swing.JPanel(); serverLabel = new javax.swing.JLabel(); serverText = new javax.swing.JTextField(); portLabel = new javax.swing.JLabel(); portText = new javax.swing.JTextField(); userLabel = new javax.swing.JLabel(); userText = new javax.swing.JTextField(); passwordLabel = new javax.swing.JLabel(); passwordText = new javax.swing.JPasswordField(); connectButton = new javax.swing.JButton(); schemaPanel = new javax.swing.JPanel(); schemaLabel = new javax.swing.JLabel(); schema14Radio = new javax.swing.JRadioButton(); schema15Radio = new javax.swing.JRadioButton(); prefixLabel = new javax.swing.JLabel(); prefixText = new javax.swing.JTextField(); progressPanel = new javax.swing.JPanel(); progressLabel = new javax.swing.JLabel(); startButton = new javax.swing.JButton(); maniMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); quitItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); fileText.setText("(no dump file selected)"); browseButton.setText("Browse..."); browseButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout filePanelLayout = new org.jdesktop.layout.GroupLayout(filePanel); filePanel.setLayout(filePanelLayout); filePanelLayout.setHorizontalGroup( filePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, filePanelLayout.createSequentialGroup() .addContainerGap() .add(fileText, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(browseButton) .addContainerGap()) ); filePanelLayout.setVerticalGroup( filePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, filePanelLayout.createSequentialGroup() .addContainerGap() .add(filePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(fileText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(browseButton)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); databasePanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Database")); serverLabel.setText("Server"); serverText.setText("localhost"); portLabel.setText("Port"); portText.setText("3306"); userLabel.setText("User"); userText.setText("root"); passwordLabel.setText("Password"); connectButton.setText("Connect"); connectButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { connectButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout databasePanelLayout = new org.jdesktop.layout.GroupLayout(databasePanel); databasePanel.setLayout(databasePanelLayout); databasePanelLayout.setHorizontalGroup( databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, databasePanelLayout.createSequentialGroup() .addContainerGap() .add(databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(serverLabel) .add(portLabel) .add(passwordLabel) .add(userLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(passwordText) .add(userText) .add(portText) .add(org.jdesktop.layout.GroupLayout.TRAILING, serverText, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE) .add(connectButton)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); databasePanelLayout.setVerticalGroup( databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, databasePanelLayout.createSequentialGroup() .addContainerGap() .add(databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(serverLabel) .add(serverText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(portLabel) .add(portText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(userText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(userLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(databasePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordLabel) .add(passwordText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(connectButton) .addContainerGap(53, Short.MAX_VALUE)) ); schemaPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("MediaWiki schema")); schemaLabel.setText("Table layout for version"); schema14Radio.setText("1.4 (cur, old)"); schema14Radio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); schema14Radio.setMargin(new java.awt.Insets(0, 0, 0, 0)); schema15Radio.setSelected(true); schema15Radio.setText("1.5 (page, revision, text)"); schema15Radio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); schema15Radio.setMargin(new java.awt.Insets(0, 0, 0, 0)); prefixLabel.setText("Table prefix"); org.jdesktop.layout.GroupLayout schemaPanelLayout = new org.jdesktop.layout.GroupLayout(schemaPanel); schemaPanel.setLayout(schemaPanelLayout); schemaPanelLayout.setHorizontalGroup( schemaPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup() .addContainerGap() .add(schemaPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup() .add(prefixLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(prefixText, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE) .addContainerGap(54, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup() .add(schema15Radio) .addContainerGap(54, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup() .add(schema14Radio) .addContainerGap(127, Short.MAX_VALUE)) .add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup() .add(schemaLabel) .addContainerGap(80, Short.MAX_VALUE)))) ); schemaPanelLayout.setVerticalGroup( schemaPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, schemaPanelLayout.createSequentialGroup() .add(26, 26, 26) .add(schemaLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(schema14Radio) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(schema15Radio) .add(18, 18, 18) .add(schemaPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(prefixLabel) .add(prefixText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap(93, Short.MAX_VALUE)) ); progressLabel.setText("Select a file..."); startButton.setText("Start import"); startButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { startButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout progressPanelLayout = new org.jdesktop.layout.GroupLayout(progressPanel); progressPanel.setLayout(progressPanelLayout); progressPanelLayout.setHorizontalGroup( progressPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, progressPanelLayout.createSequentialGroup() .addContainerGap() .add(progressLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 383, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(startButton) .addContainerGap()) ); progressPanelLayout.setVerticalGroup( progressPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, progressPanelLayout.createSequentialGroup() .addContainerGap() .add(progressPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(progressLabel) .add(startButton)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); fileMenu.setText("File"); quitItem.setText("Quit"); quitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { quitItemActionPerformed(evt); } }); fileMenu.add(quitItem); maniMenuBar.add(fileMenu); setJMenuBar(maniMenuBar); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, progressPanel) .add(org.jdesktop.layout.GroupLayout.LEADING, filePanel) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(databasePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 14, Short.MAX_VALUE) .add(schemaPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .addContainerGap() .add(filePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(22, 22, 22) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(databasePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(schemaPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(progressPanel) .addContainerGap()) ); pack(); }// </editor-fold>//GEN-END:initComponents
14299 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14299/12b4aa9136023b51380a7e854b3f2f10bc404d36/DumperWindowForm.java/clean/src/org/mediawiki/dumper/gui/DumperWindowForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 1963, 6621, 7441, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 585, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 585, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 21670, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 2063, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1438, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1438, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 1756, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1756, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 729, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 729, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 2201, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 2201, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 3913, 974, 5621, 3639, 3077, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 1963, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1963, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1963, 3461, 19984, 273, 394, 6863, 18, 5328, 310, 18, 46, 19984, 3616, 5621, 3639, 1963, 3600, 19984, 273, 394, 6863, 18, 5328, 310, 18, 46, 19984, 3616, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 1963, 6621, 7441, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 585, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 585, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 21670, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 2063, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1438, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1438, 1528, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 1756, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1756, 1528, 273, 394, 6863, 18, 2 ]
details = VM_Statics.getSlotContentsAsInt(jtocSlot) + "";
details = VM_Statics.getSlotContentsAsInt(jtocOff) + "";
private static void writeAddressMap(String mapFileName) throws IOException { if (verbose >= 1) say("writing ", mapFileName); FileOutputStream fos = new FileOutputStream(mapFileName); BufferedOutputStream bos = new BufferedOutputStream(fos, 128); PrintStream out = new PrintStream(bos, false); out.println("#! /bin/bash"); out.println("# This is a method address map, for use with the ``dbx'' debugger."); out.println("# To sort by \"code\" address, type \"bash <name-of-this-file>\"."); out.println(); out.println("(/bin/grep 'code 0x' | /bin/sort -k 4.3,4) << EOF-EOF-EOF"); out.println(); out.println("JTOC Map"); out.println("--------"); out.println("slot offset category contents details"); out.println("---- ------ -------- -------- -------"); String pad = " "; for (int jtocSlot = 0; jtocSlot < VM_Statics.getNumberOfSlots(); ++jtocSlot) { byte description = VM_Statics.getSlotDescription(jtocSlot); String category = "<?> "; String contents = "<?> " + pad; String details = "<?>"; int ival; // temporaries long lval; String sval; switch (description) { case VM_Statics.EMPTY: category = "unused "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = ""; break; case VM_Statics.INT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = VM_Statics.getSlotContentsAsInt(jtocSlot) + ""; break; case VM_Statics.FLOAT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = Float.intBitsToFloat(ival) + "F"; break; case VM_Statics.LONG_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = lval + "L"; break; case VM_Statics.DOUBLE_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = Double.longBitsToDouble(lval) + "D"; break; case VM_Statics.NUMERIC_FIELD: category = "field "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.WIDE_NUMERIC_FIELD: category = "field "; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.STRING_LITERAL: category = "literal"; contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; details = "\"" + ((String) BootImageMap.getObject(getIVal(jtocSlot))).replace('\n', ' ') +"\""; break; case VM_Statics.REFERENCE_FIELD: category = "field "; contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.METHOD: category = "code "; contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; VM_CompiledMethod m = findMethodOfCode(BootImageMap.getObject(getIVal(jtocSlot))); details = m == null ? "<?>" : m.getMethod().toString(); break; case VM_Statics.TIB: contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; category = "tib "; VM_Type type = findTypeOfTIBSlot(jtocSlot); details = (type == null) ? "?" : type.toString(); break; default: break; } out.println((jtocSlot + " ").substring(0,6) + VM.intAsHexString(jtocSlot << LOG_BYTES_IN_INT) + " " + category + " " + contents + " " + details); if ((description & VM_Statics.WIDE_TAG) != 0) jtocSlot += 1; } out.println(); out.println("Method Map"); out.println("----------"); out.println(" address method"); out.println(" ------- ------"); out.println(); VM_CompiledMethod[] compiledMethods = VM_CompiledMethods.getCompiledMethods(); for (int i = 0; i < VM_CompiledMethods.numCompiledMethods(); ++i) { VM_CompiledMethod compiledMethod = compiledMethods[i]; if (compiledMethod != null) { VM_Method m = compiledMethod.getMethod(); if (m != null && compiledMethod.isCompiled()) { VM_CodeArray instructions = compiledMethod.getInstructions(); Address code = BootImageMap.getImageAddress(bootImageAddress, instructions.getBacking()); out.println(". . code " + VM.addressAsHexString(code) + " " + compiledMethod.getMethod()); } } } out.println(); out.println("EOF-EOF-EOF"); out.flush(); out.close(); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d1d1434574eb350f48cb1d82f04917a27eea9bdc/BootImageWriter.java/clean/rvm/src/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 1045, 1887, 863, 12, 780, 852, 4771, 13, 1216, 1860, 288, 565, 309, 261, 11369, 1545, 404, 13, 12532, 2932, 14345, 3104, 852, 4771, 1769, 565, 12942, 17615, 273, 394, 12942, 12, 1458, 4771, 1769, 565, 28649, 23904, 273, 394, 28649, 12, 5075, 16, 8038, 1769, 565, 21677, 596, 273, 394, 21677, 12, 70, 538, 16, 629, 1769, 565, 596, 18, 8222, 2932, 7, 5, 342, 4757, 19, 28734, 8863, 565, 596, 18, 8222, 2932, 7, 1220, 353, 279, 707, 1758, 852, 16, 364, 999, 598, 326, 12176, 1966, 92, 6309, 19977, 1199, 1769, 565, 596, 18, 8222, 2932, 7, 2974, 1524, 635, 1239, 710, 2412, 1758, 16, 618, 1239, 28734, 411, 529, 17, 792, 17, 2211, 17, 768, 34, 2412, 1199, 1769, 565, 596, 18, 8222, 5621, 565, 596, 18, 8222, 2932, 22624, 4757, 19, 11556, 84, 296, 710, 377, 374, 92, 11, 571, 342, 4757, 19, 3804, 300, 79, 1059, 18, 23, 16, 24, 13, 2296, 6431, 17, 12706, 17, 12706, 8863, 565, 596, 18, 8222, 5621, 565, 596, 18, 8222, 2932, 46, 4296, 39, 1635, 8863, 565, 596, 18, 8222, 2932, 788, 8863, 565, 596, 18, 8222, 2932, 14194, 225, 1384, 377, 3150, 2939, 5411, 3189, 8863, 565, 596, 18, 8222, 2932, 553, 225, 31913, 377, 27093, 27093, 5411, 18365, 8863, 565, 514, 4627, 273, 315, 3639, 13636, 565, 364, 261, 474, 525, 1391, 8764, 273, 374, 31, 540, 525, 1391, 8764, 411, 8251, 67, 5000, 2102, 18, 588, 9226, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 1045, 1887, 863, 12, 780, 852, 4771, 13, 1216, 1860, 288, 565, 309, 261, 11369, 1545, 404, 13, 12532, 2932, 14345, 3104, 852, 4771, 1769, 565, 12942, 17615, 273, 394, 12942, 12, 1458, 4771, 1769, 565, 28649, 23904, 273, 394, 28649, 12, 5075, 16, 8038, 1769, 565, 21677, 596, 273, 394, 21677, 12, 70, 538, 16, 629, 1769, 565, 596, 18, 8222, 2932, 7, 5, 342, 4757, 19, 28734, 8863, 565, 596, 18, 8222, 2932, 7, 1220, 353, 279, 707, 1758, 852, 16, 364, 999, 598, 326, 12176, 1966, 92, 6309, 19977, 1199, 1769, 565, 596, 18, 8222, 2932, 7, 2974, 1524, 635, 1239, 710, 2412, 1758, 16, 618, 1239, 28734, 411, 529, 17, 792, 2 ]
_sendWindowBytes += bytesACKed;
_sendWindowBytes += 512;
public void messageACKed(int bytesACKed, long lifetime, int numSends) { _consecutiveFailedSends = 0; _lastFailedSendPeriod = -1; if (numSends < 2) { if (_sendWindowBytes <= _slowStartThreshold) { _sendWindowBytes += bytesACKed; } else { if (false) { _sendWindowBytes += 16; // why 16? } else { float prob = ((float)bytesACKed) / ((float)_sendWindowBytes); float v = _context.random().nextFloat(); if (v < 0) v = 0-v; if (v <= prob) _sendWindowBytes += bytesACKed; } } } if (_sendWindowBytes > MAX_SEND_WINDOW_BYTES) _sendWindowBytes = MAX_SEND_WINDOW_BYTES; _lastReceiveTime = _context.clock().now(); if (false) { if (_sendWindowBytesRemaining + bytesACKed <= _sendWindowBytes) _sendWindowBytesRemaining += bytesACKed; else _sendWindowBytesRemaining = _sendWindowBytes; } _messagesSent++; if (numSends < 2) recalculateTimeouts(lifetime); else _log.warn("acked after numSends=" + numSends + " w/ lifetime=" + lifetime + " and size=" + bytesACKed); _context.statManager().addRateData("udp.sendBps", _sendBps, lifetime); }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/24bad8e4bbb44f0148e118f584047e5149fff555/PeerState.java/buggy/router/java/src/net/i2p/router/transport/udp/PeerState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 883, 3649, 329, 12, 474, 1731, 3649, 329, 16, 1525, 12486, 16, 509, 818, 10501, 13, 288, 3639, 389, 591, 15655, 2925, 10501, 273, 374, 31, 3639, 389, 2722, 2925, 3826, 5027, 273, 300, 21, 31, 3639, 309, 261, 2107, 10501, 411, 576, 13, 288, 5411, 309, 261, 67, 4661, 3829, 2160, 1648, 389, 87, 821, 1685, 7614, 13, 288, 7734, 389, 4661, 3829, 2160, 1011, 13908, 31, 5411, 289, 469, 288, 7734, 309, 261, 5743, 13, 288, 10792, 389, 4661, 3829, 2160, 1011, 2872, 31, 368, 11598, 2872, 35, 7734, 289, 469, 288, 10792, 1431, 3137, 273, 14015, 5659, 13, 3890, 3649, 329, 13, 342, 14015, 5659, 13, 67, 4661, 3829, 2160, 1769, 10792, 1431, 331, 273, 389, 2472, 18, 9188, 7675, 4285, 4723, 5621, 10792, 309, 261, 90, 411, 374, 13, 331, 273, 374, 17, 90, 31, 10792, 309, 261, 90, 1648, 3137, 13, 13491, 389, 4661, 3829, 2160, 1011, 13908, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 261, 67, 4661, 3829, 2160, 405, 4552, 67, 21675, 67, 23407, 67, 13718, 13, 5411, 389, 4661, 3829, 2160, 273, 4552, 67, 21675, 67, 23407, 67, 13718, 31, 3639, 389, 2722, 11323, 950, 273, 389, 2472, 18, 18517, 7675, 3338, 5621, 7734, 309, 261, 5743, 13, 288, 5411, 309, 261, 67, 4661, 3829, 2160, 11429, 397, 1731, 3649, 329, 1648, 389, 4661, 3829, 2160, 13, 7734, 389, 4661, 3829, 2160, 11429, 1011, 1731, 3649, 329, 31, 5411, 469, 7734, 389, 4661, 3829, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 883, 3649, 329, 12, 474, 1731, 3649, 329, 16, 1525, 12486, 16, 509, 818, 10501, 13, 288, 3639, 389, 591, 15655, 2925, 10501, 273, 374, 31, 3639, 389, 2722, 2925, 3826, 5027, 273, 300, 21, 31, 3639, 309, 261, 2107, 10501, 411, 576, 13, 288, 5411, 309, 261, 67, 4661, 3829, 2160, 1648, 389, 87, 821, 1685, 7614, 13, 288, 7734, 389, 4661, 3829, 2160, 1011, 13908, 31, 5411, 289, 469, 288, 7734, 309, 261, 5743, 13, 288, 10792, 389, 4661, 3829, 2160, 1011, 2872, 31, 368, 11598, 2872, 35, 7734, 289, 469, 288, 10792, 1431, 3137, 273, 14015, 5659, 13, 3890, 3649, 329, 13, 342, 14015, 5659, 13, 67, 4661, 3829, 2160, 1769, 10792, 1431, 2 ]
if (amountApplied == null) amountApplied = new BigDecimal("0");
if (amountApplied == null) amountApplied = ZERO;
public static Map updatePaymentApplicationDefBd(DispatchContext dctx, Map context) { GenericDelegator delegator = dctx.getDelegator(); Locale locale = (Locale) context.get("locale"); if (decimals == -1 || rounding == -1) { return ServiceUtil.returnError(UtilProperties.getMessage(resource,"AccountingAritmeticPropertiesNotConfigured",locale)); } if (!context.containsKey("useHighestAmount")) { context.put("useHighestAmount","Y"); } String defaultInvoiceProcessing = UtilProperties.getPropertyValue("AccountingConfig","invoiceProcessing").toString(); boolean debug = true; // show processing messages in the log..or not.... // a 'y' in invoiceProssesing wil reverse the default processing String changeProcessing = (String) context.get("invoiceProcessing"); String invoiceId = (String) context.get("invoiceId"); String invoiceItemSeqId = (String) context.get("invoiceItemSeqId"); String paymentId = (String) context.get("paymentId"); String toPaymentId = (String) context.get("toPaymentId"); String paymentApplicationId = (String) context.get("paymentApplicationId"); BigDecimal amountApplied = (BigDecimal) context.get("amountApplied"); String billingAccountId = (String) context.get("billingAccountId"); String taxAuthGeoId = (String) context.get("taxAuthGeoId"); String useHighestAmount = (String) context.get("useHighestAmount"); List errorMessageList = new LinkedList(); if (debug) Debug.logInfo("updatePaymentApplicationDefBd input parameters..." + " defaultInvoiceProcessing: " + defaultInvoiceProcessing + " changeDefaultInvoiceProcessing: " + changeProcessing + " useHighestAmount: " + useHighestAmount + " paymentApplicationId: " + paymentApplicationId + " PaymentId: " + paymentId + " InvoiceId: " + invoiceId + " InvoiceItemSeqId: " + invoiceItemSeqId + " BillingAccountId: " + billingAccountId + " toPaymentId: " + toPaymentId + " amountApplied: " + amountApplied + " TaxAuthGeoId: " + taxAuthGeoId, module); if (changeProcessing == null) changeProcessing = new String("N"); // not provided, so no change boolean invoiceProcessing = true; if (defaultInvoiceProcessing.equals("YY")) invoiceProcessing = true; else if (defaultInvoiceProcessing.equals("NN")) invoiceProcessing = false; else if (defaultInvoiceProcessing.equals("Y")) { if (changeProcessing.equals("Y")) invoiceProcessing = false; else invoiceProcessing = true; } else if (defaultInvoiceProcessing.equals("N")) { if (changeProcessing.equals("Y")) invoiceProcessing = true; else invoiceProcessing = false; } // on a new paymentApplication check if only billing or invoice or tax // id is provided not 2,3... BUT a combination of billingAccountId and invoiceId is permitted - that's how you use a // Billing Account to pay for an Invoice if (paymentApplicationId == null) { int count = 0; if (invoiceId != null) count++; if (toPaymentId != null) count++; if (billingAccountId != null) count++; if (taxAuthGeoId != null) count++; if ((billingAccountId != null) && (invoiceId != null)) count--; if (count != 1) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingSpecifyInvoiceToPaymentBillingAccountTaxGeoId", locale)); } } // avoid null pointer exceptions. if (amountApplied == null) amountApplied = new BigDecimal("0"); // makes no sense to have an item numer without an invoice number if (invoiceId == null) invoiceItemSeqId = null; // retrieve all information and perform checking on the retrieved info..... // Payment..... BigDecimal paymentApplyAvailable = new BigDecimal("0"); // amount available on the payment reduced by the already applied amounts BigDecimal amountAppliedMax = new BigDecimal("0"); // the maximum that can be applied taking payment,invoice,invoiceitem,billing account in concideration // if maxApplied is missing, this value can be used GenericValue payment = null; if (paymentId == null || paymentId.equals("")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentIdBlankNotSupplied",locale)); } else { try { payment = delegator.findByPrimaryKey("Payment", UtilMisc.toMap("paymentId", paymentId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (payment == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentRecordNotFound",UtilMisc.toMap("paymentId",paymentId),locale)); } paymentApplyAvailable = payment.getBigDecimal("amount").subtract(PaymentWorker.getPaymentAppliedBd(payment)).setScale(decimals,rounding); if (payment.getString("statusId").equals("PMNT_CANCELLED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentCancelled", UtilMisc.toMap("paymentId",paymentId), locale)); } if (payment.getString("statusId").equals("PMNT_CONFIRMED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentConfirmed", UtilMisc.toMap("paymentId",paymentId), locale)); } // if the amount to apply is 0 give it amount the payment still need // to apply if (amountApplied.signum() == 0) { amountAppliedMax = paymentApplyAvailable; } if (paymentApplicationId == null) { // only check for new application records, update on existing records is checked in the paymentApplication section if (paymentApplyAvailable.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentAlreadyApplied",UtilMisc.toMap("paymentId",paymentId), locale)); } else { // check here for too much application if a new record is // added (paymentApplicationId == null) if (amountApplied.compareTo(paymentApplyAvailable) > 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentLessRequested", UtilMisc.toMap("paymentId",paymentId, "paymentApplyAvailable",paymentApplyAvailable, "amountApplied",amountApplied,"isoCode",payment.getString("currencyUomId")),locale)); } } } if (debug) Debug.logInfo("Payment info retrieved and checked...", module); } // the "TO" Payment..... BigDecimal toPaymentApplyAvailable = new BigDecimal("0"); GenericValue toPayment = null; if (toPaymentId != null && !toPaymentId.equals("")) { try { toPayment = delegator.findByPrimaryKey("Payment", UtilMisc.toMap("paymentId", toPaymentId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (toPayment == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentRecordNotFound",UtilMisc.toMap("paymentId",toPaymentId),locale)); } toPaymentApplyAvailable = toPayment.getBigDecimal("amount").subtract(PaymentWorker.getPaymentAppliedBd(toPayment)).setScale(decimals,rounding); if (toPayment.getString("statusId").equals("PMNT_CANCELLED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentCancelled", UtilMisc.toMap("paymentId",paymentId), locale)); } if (toPayment.getString("statusId").equals("PMNT_CONFIRMED")) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentConfirmed", UtilMisc.toMap("paymentId",paymentId), locale)); } // if the amount to apply is less then required by the payment reduce it if (amountAppliedMax.compareTo(toPaymentApplyAvailable) > 0) { amountAppliedMax = toPaymentApplyAvailable; } if (paymentApplicationId == null) { // only check for new application records, update on existing records is checked in the paymentApplication section if (toPaymentApplyAvailable.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentAlreadyApplied",UtilMisc.toMap("paymentId",toPaymentId), locale)); } else { // check here for too much application if a new record is // added (paymentApplicationId == null) if (amountApplied.compareTo(toPaymentApplyAvailable) > 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentLessRequested", UtilMisc.toMap("paymentId",toPaymentId, "paymentApplyAvailable",toPaymentApplyAvailable, "amountApplied",amountApplied,"isoCode",payment.getString("currencyUomId")),locale)); } } } // check if at least one send is the same as one receiver on the other payment if (!payment.getString("partyIdFrom").equals(toPayment.getString("partyIdTo")) && !payment.getString("partyIdFrom").equals(toPayment.getString("partyIdTo"))) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingFromPartySameToParty", locale)); } if (debug) Debug.logInfo("toPayment info retrieved and checked...", module); } // billing account GenericValue billingAccount = null; BigDecimal billingAccountApplyAvailable = new BigDecimal("0"); if (billingAccountId != null && !billingAccountId.equals("")) { try { billingAccount = delegator.findByPrimaryKey("BillingAccount", UtilMisc.toMap("billingAccountId", billingAccountId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (billingAccount == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountNotFound",UtilMisc.toMap("billingAccountId",billingAccountId), locale)); } // Get the available balance, which is how much can be used, rather than the regular balance, which is how much has already been charged try { billingAccountApplyAvailable = BillingAccountWorker.getAccountLimit(billingAccount).add( BillingAccountWorker.getBillingAccountAvailableBalance(billingAccount)).setScale(decimals,rounding); } catch (GenericEntityException e) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountBalanceNotFound",UtilMisc.toMap("billingAccountId",billingAccountId), locale)); ServiceUtil.returnError(e.getMessage()); } if (paymentApplicationId == null) { // when creating a new PaymentApplication, check if there is sufficient balance in the billing account, but only if the invoiceId is not null // If you create a PaymentApplication with both billingAccountId and invoiceId, then you're applying a billing account towards an invoice // If you create a PaymentApplication just with billingAccountId and no invoiceId, then you're adding value to billing account, so it should not matter // what the previous available balance is if (invoiceId != null) { if (billingAccountApplyAvailable.signum() <= 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountBalanceProblem",UtilMisc.toMap("billingAccountId",billingAccountId,"isoCode",billingAccount.getString("accountCurrencyUomId")), locale)); } else { // check here for too much application if a new record is // added (paymentApplicationId == null) if (amountApplied.compareTo(billingAccountApplyAvailable) == 1) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountLessRequested", UtilMisc.toMap("billingAccountId",billingAccountId, "billingAccountApplyAvailable",billingAccountApplyAvailable, "amountApplied",amountApplied,"isoCode",billingAccount.getString("accountCurrencyUomId")),locale)); } } } } // check the currency if (billingAccount.get("accountCurrencyUomId") != null && payment.get("currencyUomId") != null && !billingAccount.getString("accountCurrencyUomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountCurrencyProblem", UtilMisc.toMap("billingAccountId",billingAccountId,"accountCurrencyUomId",billingAccount.getString("accountCurrencyUomId"), "paymentId",paymentId,"paymentCurrencyUomId", payment.getString("currencyUomId")),locale)); } if (debug) Debug.logInfo("Billing Account info retrieved and checked...", module); } // get the invoice (item) information BigDecimal invoiceApplyAvailable = new BigDecimal("0"); // amount available on the invoice reduced by the already applied amounts BigDecimal invoiceItemApplyAvailable = new BigDecimal("0"); // amount available on the invoiceItem reduced by the already applied amounts GenericValue invoice = null; GenericValue invoiceItem = null; if (invoiceId != null) { try { invoice = delegator.findByPrimaryKey("Invoice", UtilMisc.toMap("invoiceId", invoiceId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (invoice == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotFound",UtilMisc.toMap("invoiceId",invoiceId),locale)); } else { // check the invoice and when supplied the invoice item... if (invoice.getString("statusId").equals("INVOICE_CANCELLED")) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceCancelledCannotApplyTo",UtilMisc.toMap("invoiceId",invoiceId),locale)); } // check if the invoice already covered by payments BigDecimal invoiceTotal = InvoiceWorker.getInvoiceTotalBd(invoice); invoiceApplyAvailable = InvoiceWorker.getInvoiceNotApplied(invoice); // adjust the amountAppliedMax value if required.... if (invoiceApplyAvailable.compareTo(amountAppliedMax) < 0) { amountAppliedMax = invoiceApplyAvailable; } if (invoiceTotal.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceTotalZero",UtilMisc.toMap("invoiceId",invoiceId),locale)); } else if (paymentApplicationId == null) { // only check for new records here...updates are checked in the paymentApplication section if (invoiceApplyAvailable.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceCompletelyApplied",UtilMisc.toMap("invoiceId",invoiceId),locale)); } // check here for too much application if a new record(s) are // added (paymentApplicationId == null) else if (amountApplied.compareTo(invoiceApplyAvailable) > 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceLessRequested", UtilMisc.toMap("invoiceId",invoiceId, "invoiceApplyAvailable",invoiceApplyAvailable, "amountApplied",amountApplied,"isoCode",invoice.getString("currencyUomId")),locale)); } } // check if at least one sender is the same as one receiver on the invoice if (!payment.getString("partyIdFrom").equals(invoice.getString("partyId")) && !payment.getString("partyIdTo").equals(invoice.getString("partyIdFrom"))) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingFromPartySameToParty", locale)); } if (debug) Debug.logInfo("Invoice info retrieved and checked ...", module); } // if provided check the invoice item. if (invoiceItemSeqId != null) { // when itemSeqNr not provided delay checking on invoiceItemSeqId try { invoiceItem = delegator.findByPrimaryKey("InvoiceItem", UtilMisc.toMap("invoiceId", invoiceId, "invoiceItemSeqId", invoiceItemSeqId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (invoiceItem == null) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceItemNotFound",UtilMisc.toMap("invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } else { if (invoiceItem.get("uomId") != null && payment.get("currencyUomId") != null && !invoiceItem.getString("uomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoiceItemPaymentCurrencyProblem",UtilMisc.toMap("paymentCurrencyId",payment.getString("currencyUomId"),"itemCurrency",invoiceItem.getString("uomId")) ,locale)); } else if (invoice.get("currencyUomId") != null && payment.get("currencyUomId") != null && !invoice.getString("currencyUomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add(UtilProperties.getMessage(resource,"AccountingInvoicePaymentCurrencyProblem",UtilMisc.toMap("paymentCurrencyId",payment.getString("currencyUomId"),"itemCurrency",invoice.getString("currencyUomId")) ,locale)); } // get the invoice item applied value BigDecimal quantity = null; if (invoiceItem.get("quantity") == null) { quantity = new BigDecimal("1"); } else { quantity = invoiceItem.getBigDecimal("quantity").setScale(decimals,rounding); } invoiceItemApplyAvailable = invoiceItem.getBigDecimal("amount").multiply(quantity).setScale(decimals,rounding).subtract(InvoiceWorker.getInvoiceItemAppliedBd(invoiceItem)); // check here for too much application if a new record is added // (paymentApplicationId == null) if (paymentApplicationId == null && amountApplied.compareTo(invoiceItemApplyAvailable) > 0) { // new record errorMessageList.add("Invoice(" + invoiceId + ") item(" + invoiceItemSeqId + ") has " + invoiceItemApplyAvailable + " to apply but " + amountApplied + " is requested\n"); String uomId = null; if (invoiceItem.getString("uomId") != null) { uomId = invoiceItem.getString("uomId"); } else { uomId = invoice.getString("currencyUomId"); } errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceItemLessRequested", UtilMisc.toMap("invoiceId",invoiceId, "invoiceItemSeqId", invoiceItemSeqId, "invoiceItemApplyAvailable",invoiceItemApplyAvailable, "amountApplied",amountApplied,"isoCode",uomId),locale)); } } if (debug) Debug.logInfo("InvoiceItem info retrieved and checked against the Invoice (currency and amounts) ...", module); } } // get the application record if the applicationId is supplied if not // create empty record. BigDecimal newInvoiceApplyAvailable = invoiceApplyAvailable; // amount available on the invoice taking into account if the invoiceItemnumber has changed BigDecimal newInvoiceItemApplyAvailable = invoiceItemApplyAvailable; // amount available on the invoiceItem taking into account if the itemnumber has changed BigDecimal newToPaymentApplyAvailable = toPaymentApplyAvailable; // amount available on the Billing Account taking into account if the billing account number has changed BigDecimal newBillingAccountApplyAvailable = billingAccountApplyAvailable; // amount available on the Billing Account taking into account if the billing account number has changed BigDecimal newPaymentApplyAvailable = paymentApplyAvailable; GenericValue paymentApplication = null; if (paymentApplicationId == null) { paymentApplication = delegator.makeValue("PaymentApplication", null); // prepare for creation } else { // retrieve existing paymentApplication try { paymentApplication = delegator.findByPrimaryKey("PaymentApplication", UtilMisc.toMap("paymentApplicationId", paymentApplicationId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (paymentApplication == null) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentApplicationNotFound", UtilMisc.toMap("paymentApplicationId",paymentApplicationId), locale)); paymentApplicationId = null; } else { // if both invoiceId and BillingId is entered there was // obviously a change // only take the newly entered item, same for tax authority and toPayment if (paymentApplication.get("invoiceId") == null && invoiceId != null) { billingAccountId = null; taxAuthGeoId = null; toPaymentId = null; } else if (paymentApplication.get("toPaymentId") == null && toPaymentId != null) { invoiceId = null; invoiceItemSeqId = null; taxAuthGeoId = null; billingAccountId = null; } else if (paymentApplication.get("billingAccountId") == null && billingAccountId != null) { invoiceId = null; invoiceItemSeqId = null; toPaymentId = null; taxAuthGeoId = null; } else if (paymentApplication.get("taxAuthGeoId") == null && taxAuthGeoId != null) { invoiceId = null; invoiceItemSeqId = null; toPaymentId = null; billingAccountId = null; } // check if the payment for too much application if an existing // application record is changed newPaymentApplyAvailable = paymentApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (newPaymentApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentNotEnough", UtilMisc.toMap("paymentId",paymentId,"paymentApplyAvailable",paymentApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")),"amountApplied",amountApplied),locale)); } if (invoiceId != null) { // only when we are processing an invoice on existing paymentApplication check invoice item for to much application if the invoice // number did not change if (invoiceId.equals(paymentApplication .getString("invoiceId"))) { // check if both the itemNumbers are null then this is a // record for the whole invoice if (invoiceItemSeqId == null && paymentApplication.get("invoiceItemSeqId") == null) { newInvoiceApplyAvailable = invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (invoiceApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceApplyAvailable.negate(),"invoiceId",invoiceId),locale)); } } else if (invoiceItemSeqId == null && paymentApplication.get("invoiceItemSeqId") != null) { // check if the item number changed from a real Item number to a null value newInvoiceApplyAvailable = invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (invoiceApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceApplyAvailable.negate(),"invoiceId",invoiceId),locale)); } } else if (invoiceItemSeqId != null && paymentApplication.get("invoiceItemSeqId") == null) { // check if the item number changed from a null value to // a real Item number newInvoiceItemApplyAvailable = invoiceItemApplyAvailable.subtract(amountApplied).setScale(decimals, rounding); if (newInvoiceItemApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingItemInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceItemApplyAvailable.negate(),"invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } } else if (invoiceItemSeqId.equals(paymentApplication.getString("invoiceItemSeqId"))) { // check if the real item numbers the same // item number the same numeric value newInvoiceItemApplyAvailable = invoiceItemApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied).setScale(decimals, rounding); if (newInvoiceItemApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingItemInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceItemApplyAvailable.negate(),"invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } } else { // item number changed only check new item newInvoiceItemApplyAvailable = invoiceItemApplyAvailable.add(amountApplied).setScale(decimals, rounding); if (newInvoiceItemApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingItemInvoiceNotEnough",UtilMisc.toMap("tooMuch",newInvoiceItemApplyAvailable.negate(),"invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } } // if the amountApplied = 0 give it the higest possible // value if (amountApplied.signum() == 0) { if (newInvoiceItemApplyAvailable.compareTo(newPaymentApplyAvailable) < 0) { amountApplied = newInvoiceItemApplyAvailable; // from the item number } else { amountApplied = newPaymentApplyAvailable; // from the payment } } // check the invoice newInvoiceApplyAvailable = invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied").subtract(amountApplied)).setScale(decimals, rounding); if (newInvoiceApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingInvoiceNotEnough",UtilMisc.toMap("tooMuch",invoiceApplyAvailable.add(paymentApplication.getBigDecimal("amountApplied")).subtract(amountApplied),"invoiceId",invoiceId),locale)); } } } // check the toPayment account when only the amountApplied has // changed, if (toPaymentId != null && toPaymentId.equals(paymentApplication.getString("toPaymentId"))) { newToPaymentApplyAvailable = toPaymentApplyAvailable.subtract(paymentApplication.getBigDecimal("amountApplied")).add(amountApplied).setScale(decimals, rounding); if (newToPaymentApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentNotEnough", UtilMisc.toMap("paymentId",toPaymentId,"paymentApplyAvailable",newToPaymentApplyAvailable,"amountApplied",amountApplied),locale)); } } else if (toPaymentId != null) { // billing account entered number has changed so we have to // check the new billing account number. newToPaymentApplyAvailable = toPaymentApplyAvailable.add(amountApplied).setScale(decimals, rounding); if (newToPaymentApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingPaymentNotEnough", UtilMisc.toMap("paymentId",toPaymentId,"paymentApplyAvailable",newToPaymentApplyAvailable,"amountApplied",amountApplied),locale)); } } // check the billing account when only the amountApplied has // changed, // change in account number is already checked in the billing // account section if (billingAccountId != null && billingAccountId.equals(paymentApplication.getString("billingAccountId"))) { newBillingAccountApplyAvailable = billingAccountApplyAvailable.subtract(paymentApplication.getBigDecimal("amountApplied")).add(amountApplied).setScale(decimals, rounding); if (newBillingAccountApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountNotEnough",UtilMisc.toMap("billingAccountId",billingAccountId,"newBillingAccountApplyAvailable",newBillingAccountApplyAvailable,"amountApplied",amountApplied,"isoCode", billingAccount.getString("accountCurrencyUomId")),locale)); } } else if (billingAccountId != null) { // billing account entered number has changed so we have to // check the new billing account number. newBillingAccountApplyAvailable = billingAccountApplyAvailable.add(amountApplied).setScale(decimals, rounding); if (newBillingAccountApplyAvailable.compareTo(ZERO) < 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingBillingAccountNotEnough",UtilMisc.toMap("billingAccountId",billingAccountId,"newBillingAccountApplyAvailable",newBillingAccountApplyAvailable,"amountApplied",amountApplied,"isoCode", billingAccount.getString("accountCurrencyUomId")),locale)); } } } if (debug) Debug.logInfo("paymentApplication record info retrieved and checked...", module); } // show the maximumus what can be added in the payment application file. String toMessage = null; // prepare for success message if (debug) { String extra = new String(""); if (invoiceItemSeqId != null) { extra = new String(" Invoice item(" + invoiceItemSeqId + ") amount not yet applied: " + newInvoiceItemApplyAvailable); } Debug.logInfo("checking finished, start processing with the following data... ", module); if (invoiceId != null) { Debug.logInfo(" Invoice(" + invoiceId + ") amount not yet applied: " + newInvoiceApplyAvailable + extra + " Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToInvoice",UtilMisc.toMap("invoiceId",invoiceId),locale)); if(extra.length() > 0) toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToInvoiceItem",UtilMisc.toMap("invoiceId",invoiceId,"invoiceItemSeqId",invoiceItemSeqId),locale)); } if (toPaymentId != null) { Debug.logInfo(" toPayment(" + toPaymentId + ") amount not yet applied: " + newToPaymentApplyAvailable + " Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToPayment",UtilMisc.toMap("paymentId",toPaymentId),locale)); } if (billingAccountId != null) { Debug.logInfo(" billingAccount(" + billingAccountId + ") amount not yet applied: " + newBillingAccountApplyAvailable + " Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToBillingAccount",UtilMisc.toMap("billingAccountId",billingAccountId),locale)); } if (taxAuthGeoId != null) { Debug.logInfo(" taxAuthGeoId(" + taxAuthGeoId + ") Payment(" + paymentId + ") amount not yet applied: " + newPaymentApplyAvailable + " Requested amount to apply:" + amountApplied, module); toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToTax",UtilMisc.toMap("taxAuthGeoId",taxAuthGeoId),locale)); } } // if the amount to apply was not provided or was zero fill it with the maximum possible and provide information to the user if (amountApplied.signum() == 0 && useHighestAmount.equals("Y")) { amountApplied = newPaymentApplyAvailable; if (invoiceId != null && newInvoiceApplyAvailable.compareTo(amountApplied) < 0) { amountApplied = newInvoiceApplyAvailable; toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToInvoice",UtilMisc.toMap("invoiceId",invoiceId),locale)); } if (toPaymentId != null && newToPaymentApplyAvailable.compareTo(amountApplied) == 1) { amountApplied = newToPaymentApplyAvailable; toMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationToPayment",UtilMisc.toMap("paymentId",toPaymentId),locale)); } } if (amountApplied.signum() == 0) { errorMessageList.add(UtilProperties.getMessage(resource, "AccountingNoAmount",locale)); } else { successMessage = new String(UtilProperties.getMessage(resource, "AccountingApplicationSuccess",UtilMisc.toMap("amountApplied",amountApplied,"paymentId",paymentId,"isoCode", payment.getString("currencyUomId"),"toMessage",toMessage),locale)); } // report error messages if any if (errorMessageList.size() > 0) { return ServiceUtil.returnError(errorMessageList); } // ============ start processing ====================== // if the application is specified it is easy, update the existing record only if (paymentApplicationId != null) { // record is already retrieved previously if (debug) Debug.logInfo("Process an existing paymentApplication record: " + paymentApplicationId, module); // update the current record paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", invoiceItemSeqId); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId", toPaymentId); paymentApplication.set("amountApplied", new Double(amountApplied.doubleValue())); paymentApplication.set("billingAccountId", billingAccountId); paymentApplication.set("taxAuthGeoId", taxAuthGeoId); return storePaymentApplication(delegator, paymentApplication,locale); } // if no invoice sequence number is provided it assumed the requested paymentAmount will be // spread over the invoice starting with the lowest sequence number if // itemprocessing is on otherwise creat one record if (invoiceId != null && paymentId != null && (invoiceItemSeqId == null)) { if (invoiceProcessing) { // create only a single record with a null seqId if (debug) Debug.logInfo("Try to allocate the payment to the invoice as a whole", module); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId",null); paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", null); paymentApplication.set("toPaymentId", null); paymentApplication.set("amountApplied", new Double(amountApplied.doubleValue())); paymentApplication.set("billingAccountId", null); paymentApplication.set("taxAuthGeoId", null); if (debug) Debug.logInfo("creating new paymentapplication", module); return storePaymentApplication(delegator, paymentApplication,locale); } else { // spread the amount over every single item number if (debug) Debug.logInfo("Try to allocate the payment to the itemnumbers of the invoice", module); // get the invoice items List invoiceItems = null; try { invoiceItems = delegator.findByAnd("InvoiceItem", UtilMisc.toMap("invoiceId", invoiceId)); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } if (invoiceItems == null || invoiceItems.size() == 0) { errorMessageList.add("No invoice items found for invoice " + invoiceId + " to match payment against...\n"); return ServiceUtil.returnError(errorMessageList); } else { // we found some invoice items, start processing.... Iterator i = invoiceItems.iterator(); // check if the user want to apply a smaller amount than the maximum possible on the payment if (amountApplied.signum() != 0 && amountApplied.compareTo(paymentApplyAvailable) < 0) { paymentApplyAvailable = amountApplied; } while (i.hasNext() && paymentApplyAvailable.compareTo(ZERO) > 0) { // get the invoiceItem invoiceItem = (GenericValue) i.next(); if (debug) Debug.logInfo("Start processing item: " + invoiceItem.getString("invoiceItemSeqId"), module); BigDecimal itemQuantity = new BigDecimal("1"); if (invoiceItem.get("quantity") != null && invoiceItem.getBigDecimal("quantity").signum() != 0) { itemQuantity = new BigDecimal(invoiceItem.getString("quantity")).setScale(decimals,rounding); } BigDecimal itemAmount = invoiceItem.getBigDecimal("amount").setScale(decimals,rounding); BigDecimal itemTotal = itemAmount.multiply(itemQuantity).setScale(decimals,rounding); // get the application(s) already allocated to this // item, if available List paymentApplications = null; try { paymentApplications = invoiceItem.getRelated("PaymentApplication"); } catch (GenericEntityException e) { ServiceUtil.returnError(e.getMessage()); } BigDecimal tobeApplied = new BigDecimal("0"); // item total amount - already applied (if any) BigDecimal alreadyApplied = new BigDecimal("0"); if (paymentApplications != null && paymentApplications.size() > 0) { // application(s) found, add them all together Iterator p = paymentApplications.iterator(); while (p.hasNext()) { paymentApplication = (GenericValue) p.next(); alreadyApplied = alreadyApplied.add(paymentApplication.getBigDecimal("amountApplied").setScale(decimals,rounding)); } tobeApplied = itemTotal.subtract(alreadyApplied).setScale(decimals,rounding); } else { // no application connected yet tobeApplied = itemTotal; } if (debug) Debug.logInfo("tobeApplied:(" + tobeApplied + ") = " + "itemTotal(" + itemTotal + ") - alreadyApplied(" + alreadyApplied + ") but not more then (nonapplied) paymentAmount(" + paymentApplyAvailable + ")", module); if (tobeApplied.signum() == 0) { // invoiceItem already fully applied so look at the next one.... continue; } if (paymentApplyAvailable.compareTo(tobeApplied) > 0) { paymentApplyAvailable = paymentApplyAvailable.subtract(tobeApplied); } else { tobeApplied = paymentApplyAvailable; paymentApplyAvailable = new BigDecimal("0"); } // create application payment record but check currency // first if supplied if (invoiceItem.get("uomId") != null && payment.get("currencyUomId") != null && !invoiceItem.getString("uomId").equals(payment.getString("currencyUomId"))) { errorMessageList.add("Payment currency (" + payment.getString("currencyUomId") + ") and invoice Item(" + invoiceItem.getString("invoiceItemSeqId") + ") currency(" + invoiceItem.getString("uomId") + ") not the same\n"); } else if (invoice.get("currencyUomId") != null && payment.get("currencyUomId") != null && !invoice.getString("currencyUomId").equals( payment.getString("currencyUomId"))) { errorMessageList.add("Payment currency (" + payment.getString("currencyUomId") + ") and invoice currency(" + invoice.getString("currencyUomId") + ") not the same\n"); } else { paymentApplication.set("paymentApplicationId", null); // make sure we get a new record paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", invoiceItem.getString("invoiceItemSeqId")); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId", toPaymentId); paymentApplication.set("amountApplied", new Double( tobeApplied.doubleValue())); paymentApplication.set("billingAccountId", billingAccountId); paymentApplication.set("taxAuthGeoId", taxAuthGeoId); storePaymentApplication(delegator, paymentApplication,locale); } // check if either the invoice or the payment is fully // applied, when yes change the status to paid // which triggers the ledger routines.... /* * if * (InvoiceWorker.getInvoiceTotalBd(invoice).equals(InvoiceWorker.getInvoiceAppliedBd(invoice))) { * try { dispatcher.runSync("setInvoiceStatus", * UtilMisc.toMap("invoiceId",invoiceId,"statusId","INVOICE_PAID")); } * catch (GenericServiceException e1) { * Debug.logError(e1, "Error updating invoice status", * module); } } * * if * (payment.getBigDecimal("amount").equals(PaymentWorker.getPaymentAppliedBd(payment))) { * GenericValue appliedPayment = (GenericValue) * delegator.makeValue("Payment", * UtilMisc.toMap("paymentId",paymentId,"statusId","INVOICE_PAID")); * try { appliedPayment.store(); } catch * (GenericEntityException e) { * ServiceUtil.returnError(e.getMessage()); } } */ } if (errorMessageList.size() > 0) { return ServiceUtil.returnError(errorMessageList); } else { if (successMessage != null) { return ServiceUtil.returnSuccess(successMessage); } else { return ServiceUtil.returnSuccess(); } } } } } // if no paymentApplicationId supplied create a new record with the data // supplied... if (paymentApplicationId == null && amountApplied != null) { paymentApplication.set("paymentApplicationId", paymentApplicationId); paymentApplication.set("invoiceId", invoiceId); paymentApplication.set("invoiceItemSeqId", invoiceItemSeqId); paymentApplication.set("paymentId", paymentId); paymentApplication.set("toPaymentId", toPaymentId); paymentApplication.set("amountApplied", new Double(amountApplied.doubleValue())); paymentApplication.set("billingAccountId", billingAccountId); paymentApplication.set("taxAuthGeoId", taxAuthGeoId); return storePaymentApplication(delegator, paymentApplication,locale); } // should never come here... errorMessageList.add("??unsuitable parameters passed...?? This message.... should never be shown\n"); errorMessageList.add("--Input parameters...InvoiceId:" + invoiceId + " invoiceItemSeqId:" + invoiceItemSeqId + " PaymentId:" + paymentId + " toPaymentId:" + toPaymentId + "\n paymentApplicationId:" + paymentApplicationId + " amountApplied:" + amountApplied); return ServiceUtil.returnError(errorMessageList); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/6bc8f4f6824f34ad879f367b482304e0d2cd11c1/InvoiceServices.java/buggy/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1089, 6032, 3208, 3262, 38, 72, 12, 5325, 1042, 302, 5900, 16, 1635, 819, 13, 288, 5411, 7928, 15608, 639, 11158, 639, 273, 302, 5900, 18, 588, 15608, 639, 5621, 5411, 6458, 2573, 273, 261, 3916, 13, 819, 18, 588, 2932, 6339, 8863, 3639, 309, 261, 31734, 422, 300, 21, 747, 13885, 422, 300, 21, 13, 288, 5411, 327, 1956, 1304, 18, 2463, 668, 12, 1304, 2297, 18, 24906, 12, 3146, 10837, 3032, 310, 37, 583, 81, 7943, 2297, 1248, 15334, 3113, 6339, 10019, 3639, 289, 3639, 309, 16051, 2472, 18, 12298, 653, 2932, 1202, 8573, 395, 6275, 6, 3719, 288, 5411, 819, 18, 458, 2932, 1202, 8573, 395, 6275, 15937, 61, 8863, 3639, 289, 3639, 514, 805, 10467, 7798, 273, 3564, 2297, 18, 588, 16107, 2932, 3032, 310, 809, 15937, 16119, 7798, 20387, 10492, 5621, 7734, 1250, 1198, 273, 638, 31, 368, 2405, 4929, 2743, 316, 326, 613, 838, 280, 486, 6265, 3639, 368, 279, 296, 93, 11, 316, 9179, 626, 1049, 281, 310, 341, 330, 4219, 326, 805, 4929, 3639, 514, 2549, 7798, 273, 261, 780, 13, 819, 18, 588, 2932, 16119, 7798, 8863, 3639, 514, 9179, 548, 273, 261, 780, 13, 819, 18, 588, 2932, 16119, 548, 8863, 3639, 514, 9179, 1180, 6926, 548, 273, 261, 780, 13, 819, 18, 588, 2932, 16119, 1180, 6926, 548, 8863, 3639, 514, 5184, 548, 273, 261, 780, 13, 819, 18, 588, 2932, 9261, 548, 8863, 3639, 514, 358, 6032, 548, 273, 261, 780, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1089, 6032, 3208, 3262, 38, 72, 12, 5325, 1042, 302, 5900, 16, 1635, 819, 13, 288, 5411, 7928, 15608, 639, 11158, 639, 273, 302, 5900, 18, 588, 15608, 639, 5621, 5411, 6458, 2573, 273, 261, 3916, 13, 819, 18, 588, 2932, 6339, 8863, 3639, 309, 261, 31734, 422, 300, 21, 747, 13885, 422, 300, 21, 13, 288, 5411, 327, 1956, 1304, 18, 2463, 668, 12, 1304, 2297, 18, 24906, 12, 3146, 10837, 3032, 310, 37, 583, 81, 7943, 2297, 1248, 15334, 3113, 6339, 10019, 3639, 289, 3639, 309, 16051, 2472, 18, 12298, 653, 2932, 1202, 8573, 395, 6275, 6, 3719, 288, 5411, 819, 18, 458, 2932, 1202, 8573, 395, 6275, 15937, 61, 8863, 3639, 289, 2 ]
boolean hasDefaultCase = false; for(PsiStatement statement : statements){ if(statement instanceof PsiSwitchLabelStatement) { if(((PsiSwitchLabelStatement)statement).isDefaultCase()) { hasDefaultCase = true; } } } if(!hasDefaultCase) { return false; }
private static boolean switchStatementMayReturnNormally(@NotNull PsiSwitchStatement switchStatement){ if(statementIsBreakTarget(switchStatement)){ return true; } final PsiCodeBlock body = switchStatement.getBody(); if(body == null){ return true; } final PsiStatement[] statements = body.getStatements(); if(statements == null){ return true; } if(statements.length == 0){ return true; } return statementMayCompleteNormally(statements[statements.length - 1]); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/5d60670c94763ec336e534e66ee87700ab0d35be/ControlFlowUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/ControlFlowUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 711, 1868, 2449, 273, 629, 31, 364, 12, 52, 7722, 3406, 3021, 294, 6317, 15329, 309, 12, 11516, 1276, 453, 7722, 10200, 2224, 3406, 13, 288, 309, 12443, 12, 52, 7722, 10200, 2224, 3406, 13, 11516, 2934, 291, 1868, 2449, 10756, 288, 711, 1868, 2449, 273, 638, 31, 289, 289, 289, 225, 309, 12, 5, 5332, 1868, 2449, 13, 288, 327, 629, 31, 289, 225, 1250, 711, 1868, 2449, 273, 629, 31, 364, 12, 52, 7722, 3406, 3021, 294, 6317, 15329, 309, 12, 11516, 1276, 453, 7722, 10200, 2224, 3406, 13, 288, 309, 12443, 12, 52, 7722, 10200, 2224, 3406, 13, 11516, 2934, 291, 1868, 2449, 10756, 288, 711, 1868, 2449, 273, 638, 31, 289, 289, 289, 225, 309, 12, 5, 5332, 1868, 2449, 13, 288, 327, 629, 31, 289, 225, 1250, 711, 1868, 2449, 273, 629, 31, 364, 12, 52, 7722, 3406, 3021, 294, 6317, 15329, 309, 12, 11516, 1276, 453, 7722, 10200, 2224, 3406, 13, 288, 309, 12443, 12, 52, 7722, 10200, 2224, 3406, 13, 11516, 2934, 291, 1868, 2449, 10756, 288, 711, 1868, 2449, 273, 638, 31, 289, 289, 289, 225, 309, 12, 5, 5332, 1868, 2449, 13, 288, 327, 629, 31, 289, 225, 1250, 711, 1868, 2449, 273, 629, 31, 364, 12, 52, 7722, 3406, 3021, 294, 6317, 15329, 309, 12, 11516, 1276, 453, 7722, 10200, 2224, 3406, 13, 288, 309, 12443, 12, 52, 7722, 10200, 2224, 3406, 13, 11516, 2934, 291, 1868, 2449, 10756, 288, 711, 1868, 2449, 273, 638, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 711, 1868, 2449, 273, 629, 31, 364, 12, 52, 7722, 3406, 3021, 294, 6317, 15329, 309, 12, 11516, 1276, 453, 7722, 10200, 2224, 3406, 13, 288, 309, 12443, 12, 52, 7722, 10200, 2224, 3406, 13, 11516, 2934, 291, 1868, 2449, 10756, 288, 711, 1868, 2449, 273, 638, 31, 289, 289, 289, 225, 309, 12, 5, 5332, 1868, 2449, 13, 288, 327, 629, 31, 289, 225, 1250, 711, 1868, 2449, 273, 629, 31, 364, 12, 52, 7722, 3406, 3021, 294, 6317, 15329, 309, 12, 11516, 1276, 453, 7722, 10200, 2224, 3406, 13, 288, 309, 12443, 12, 52, 7722, 10200, 2224, 3406, 13, 11516, 2934, 291, 1868, 2449, 10756, 288, 711, 1868, 2449, 273, 638, 31, 289, 289, 289, 225, 2 ]
RandomGrabArrayWithClient[] newArray = new RandomGrabArrayWithClient[grabArrays.length-1];
RemoveRandomWithClient[] newArray = new RemoveRandomWithClient[grabArrays.length-1];
public synchronized RandomGrabArrayItem removeRandom() { while(true) { if(grabArrays.length == 0) return null; int x = rand.nextInt(grabArrays.length); RemoveRandomWithClient rga = grabArrays[x]; Logger.minor(this, "Picked "+x+" of "+grabArrays.length+" : "+rga+" : "+rga.getClient()); RandomGrabArrayItem item = rga.removeRandom(); if(rga.isEmpty() || (item == null)) { Object client = rga.getClient(); grabArraysByClient.remove(client); RandomGrabArrayWithClient[] newArray = new RandomGrabArrayWithClient[grabArrays.length-1]; if(x > 0) System.arraycopy(grabArrays, 0, newArray, 0, x); if(x < grabArrays.length-1) System.arraycopy(grabArrays, x+1, newArray, x, grabArrays.length - (x+1)); grabArrays = newArray; } if(item == null) continue; if(item.isFinished()) continue; return item; } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/297590d81e836aa059723f8bbaa0e7d87d0bca77/SectoredRandomGrabArray.java/clean/src/freenet/support/SectoredRandomGrabArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 8072, 14571, 70, 1076, 1180, 1206, 8529, 1435, 288, 202, 202, 17523, 12, 3767, 13, 288, 1082, 202, 430, 12, 2752, 70, 12726, 18, 2469, 422, 374, 13, 327, 446, 31, 1082, 202, 474, 619, 273, 5605, 18, 4285, 1702, 12, 2752, 70, 12726, 18, 2469, 1769, 1082, 202, 3288, 8529, 1190, 1227, 14524, 69, 273, 11086, 12726, 63, 92, 15533, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 17968, 329, 13773, 92, 9078, 434, 13773, 2752, 70, 12726, 18, 2469, 9078, 294, 13773, 86, 15833, 9078, 294, 13773, 86, 15833, 18, 588, 1227, 10663, 1082, 202, 8529, 14571, 70, 1076, 1180, 761, 273, 14524, 69, 18, 4479, 8529, 5621, 1082, 202, 430, 12, 86, 15833, 18, 291, 1921, 1435, 747, 261, 1726, 422, 446, 3719, 288, 9506, 202, 921, 1004, 273, 14524, 69, 18, 588, 1227, 5621, 9506, 202, 2752, 70, 12726, 858, 1227, 18, 4479, 12, 2625, 1769, 9506, 202, 8529, 14571, 70, 1076, 1190, 1227, 8526, 11653, 273, 394, 8072, 14571, 70, 1076, 1190, 1227, 63, 2752, 70, 12726, 18, 2469, 17, 21, 15533, 9506, 202, 430, 12, 92, 405, 374, 13, 6862, 202, 3163, 18, 1126, 3530, 12, 2752, 70, 12726, 16, 374, 16, 11653, 16, 374, 16, 619, 1769, 9506, 202, 430, 12, 92, 411, 11086, 12726, 18, 2469, 17, 21, 13, 6862, 202, 3163, 18, 1126, 3530, 12, 2752, 70, 12726, 16, 619, 15, 21, 16, 11653, 16, 619, 16, 11086, 12726, 18, 2469, 300, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 8072, 14571, 70, 1076, 1180, 1206, 8529, 1435, 288, 202, 202, 17523, 12, 3767, 13, 288, 1082, 202, 430, 12, 2752, 70, 12726, 18, 2469, 422, 374, 13, 327, 446, 31, 1082, 202, 474, 619, 273, 5605, 18, 4285, 1702, 12, 2752, 70, 12726, 18, 2469, 1769, 1082, 202, 3288, 8529, 1190, 1227, 14524, 69, 273, 11086, 12726, 63, 92, 15533, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 17968, 329, 13773, 92, 9078, 434, 13773, 2752, 70, 12726, 18, 2469, 9078, 294, 13773, 86, 15833, 9078, 294, 13773, 86, 15833, 18, 588, 1227, 10663, 1082, 202, 8529, 14571, 70, 1076, 1180, 761, 273, 14524, 69, 18, 4479, 8529, 5621, 1082, 202, 430, 12, 2 ]
} else if (name == classroot.name && owner == classroot.owner()) {
} else if (classroot != null && name == classroot.name && owner == classroot.owner()) {
Symbol getSymbol(int n) { if (entries[n] == null) { int savedBp = bp; bp = index[n]; int tag = bytes[bp++]; int end = readNat() + bp; Symbol sym; Symbol owner; switch (tag) { case NONEsym: entries[n] = sym = Symbol.NONE; break; case EXTref: case EXTMODCLASSref: Name name = readNameRef(); if (bp == end) { owner = global.definitions.ROOT_CLASS; } else { assert bp < end; owner = readSymbolRef(); } if (name == Names.ROOT && owner == Symbol.NONE) { sym = global.definitions.ROOT_CLASS; if (tag == EXTref) sym = sym; // !!! line above is usefull for the transition // !!! after some time, replace it by the following line: // !!! assert tag != EXTref; } else { sym = owner.info().lookup(name); if (tag == EXTMODCLASSref) { /* if (sym.kind == VAL) switch (sym.type()) { case OverloadedType(Symbol[] alts, _): for (int i = 0; i < alts.length; i++) if (alts[i].isModule()) sym = alts[i]; } */ assert sym.isModule(); sym = sym.moduleClass(); } } entries[n] = sym; if (sym.kind == NONE) { if (global.debug) global.log(owner.info().members().toString()); throw new BadSignature(this, "reference " + decode(name) + " of " + owner + " refers to nonexisting symbol."); } break; default: assert isSymbolEntry(n) : n; Name name = readNameRef(); if (global.debug) global.log("reading " + name + " at " + n); owner = readSymbolRef(); if (entries[n] == null) { int flags = readNat(); int inforef = readNat(); switch (tag) { case TYPEsym: entries[n] = sym = owner.newAbstractType( Position.NOPOS, flags, name); if ((flags & VIEWBOUND) != 0) { sym.setInfo(global.definitions.ANY_TYPE()); sym.setVuBound(getType(inforef, sym)); } else { sym.setInfo(getType(inforef, sym)); } sym.setLoBound(readTypeRef(sym)); break; case ALIASsym: entries[n] = sym = owner.newTypeAlias( Position.NOPOS, flags, name); sym.setInfo(getType(inforef, sym)); Symbol constr = readSymbolRef(); break; case CLASSsym: if ((flags & MODUL) != 0) { Symbol modulesym = readSymbolRef(); entries[n] = sym = modulesym.moduleClass(); sym.flags = flags; } else if (name == classroot.name && owner == classroot.owner()) { if (global.debug) global.log("overwriting " + classroot); entries[n] = sym = classroot; sym.flags = flags; } else { entries[n] = sym = owner.newClass( Position.NOPOS, flags, name); } sym.setInfo(getType(inforef, sym)); sym.setTypeOfThis(readTypeRef(sym)); Symbol constr = readSymbolRef(); assert constr == sym.allConstructors(); break; case VALsym: if (name == moduleroot.name && owner == moduleroot.owner()) { if (global.debug) global.log("overwriting " + moduleroot); entries[n] = sym = moduleroot; sym.flags = flags; } else if ((flags & MODUL) != 0) { entries[n] = sym = owner.newModule( Position.NOPOS, flags, name); } else if (name == Names.CONSTRUCTOR) { Symbol tsym = bp < end ? readSymbolRef() : null; if (tsym == null) { entries[n] = sym = owner.newConstructor( Position.NOPOS, flags); } else { entries[n] = sym = tsym.allConstructors(); sym.flags = flags; } } else { entries[n] = sym = owner.newTerm( Position.NOPOS, flags, name); } if (sym.isModule()) { Symbol clasz = readSymbolRef(); assert clasz == sym.moduleClass(): Debug.show(sym); } sym.setInfo(getType(inforef, sym)); break; default: throw new BadSignature(this); } enterSymbol(sym); } } bp = savedBp; } return (Symbol) entries[n]; }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/3ec2af254866c60389b3fd304c14d1137b9cf4c8/UnPickle.java/clean/sources/scalac/symtab/classfile/UnPickle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 8565, 18712, 12, 474, 290, 13, 288, 202, 430, 261, 8219, 63, 82, 65, 422, 446, 13, 288, 202, 565, 509, 5198, 38, 84, 273, 9107, 31, 202, 565, 9107, 273, 770, 63, 82, 15533, 202, 565, 509, 1047, 273, 1731, 63, 17152, 9904, 15533, 202, 565, 509, 679, 273, 855, 23779, 1435, 397, 9107, 31, 202, 565, 8565, 5382, 31, 202, 565, 8565, 3410, 31, 202, 565, 1620, 261, 2692, 13, 288, 202, 565, 648, 11829, 8117, 30, 202, 202, 8219, 63, 82, 65, 273, 5382, 273, 8565, 18, 9826, 31, 202, 202, 8820, 31, 202, 565, 648, 11112, 1734, 30, 202, 565, 648, 11112, 6720, 5237, 1734, 30, 202, 202, 461, 508, 273, 855, 461, 1957, 5621, 202, 202, 430, 261, 17152, 422, 679, 13, 288, 1082, 565, 3410, 273, 2552, 18, 13314, 18, 9185, 67, 5237, 31, 202, 202, 97, 469, 288, 1082, 565, 1815, 9107, 411, 679, 31, 1082, 565, 3410, 273, 855, 5335, 1957, 5621, 202, 202, 97, 202, 202, 430, 261, 529, 422, 5276, 18, 9185, 597, 3410, 422, 8565, 18, 9826, 13, 288, 1082, 565, 5382, 273, 2552, 18, 13314, 18, 9185, 67, 5237, 31, 10792, 309, 261, 2692, 422, 11112, 1734, 13, 5382, 273, 5382, 31, 10792, 368, 401, 8548, 980, 5721, 353, 999, 2854, 364, 326, 6007, 10792, 368, 401, 8548, 1839, 2690, 813, 16, 1453, 518, 635, 326, 3751, 980, 30, 10792, 368, 401, 8548, 1815, 1047, 480, 11112, 1734, 31, 202, 202, 97, 469, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 8565, 18712, 12, 474, 290, 13, 288, 202, 430, 261, 8219, 63, 82, 65, 422, 446, 13, 288, 202, 565, 509, 5198, 38, 84, 273, 9107, 31, 202, 565, 9107, 273, 770, 63, 82, 15533, 202, 565, 509, 1047, 273, 1731, 63, 17152, 9904, 15533, 202, 565, 509, 679, 273, 855, 23779, 1435, 397, 9107, 31, 202, 565, 8565, 5382, 31, 202, 565, 8565, 3410, 31, 202, 565, 1620, 261, 2692, 13, 288, 202, 565, 648, 11829, 8117, 30, 202, 202, 8219, 63, 82, 65, 273, 5382, 273, 8565, 18, 9826, 31, 202, 202, 8820, 31, 202, 565, 648, 11112, 1734, 30, 202, 565, 648, 11112, 6720, 5237, 1734, 30, 202, 202, 461, 508, 273, 855, 461, 1957, 2 ]
int nb = ref.getSampleModel().getNumBands();
public static BufferedImage buildDiffImage(BufferedImage ref, BufferedImage gen) { BufferedImage diff = new BufferedImage(ref.getWidth(), ref.getHeight(), BufferedImage.TYPE_INT_ARGB); WritableRaster refWR = ref.getRaster(); WritableRaster genWR = gen.getRaster(); WritableRaster dstWR = diff.getRaster(); boolean refPre = ref.isAlphaPremultiplied(); if (!refPre) { ColorModel cm = ref.getColorModel(); cm = GraphicsUtil.coerceData(refWR, cm, true); ref = new BufferedImage(cm, refWR, true, null); } boolean genPre = gen.isAlphaPremultiplied(); if (!genPre) { ColorModel cm = gen.getColorModel(); cm = GraphicsUtil.coerceData(genWR, cm, true); gen = new BufferedImage(cm, genWR, true, null); } int w=ref.getWidth(); int h=ref.getHeight(); int nb = ref.getSampleModel().getNumBands(); int y, i,val; int [] refPix = null; int [] genPix = null; for (y=0; y<h; y++) { refPix = refWR.getPixels (0, y, w, 1, refPix); genPix = genWR.getPixels (0, y, w, 1, genPix); for (i=0; i<refPix.length; i++) { val = ((genPix[i]-refPix[i])*10)+128; if ((val & 0xFFFFFF00) != 0) if ((val & 0x80000000) != 0) val = 0; else val = 255; genPix[i] = val; } dstWR.setPixels(0, y, w, 1, genPix); } if (!genPre) { ColorModel cm = gen.getColorModel(); cm = GraphicsUtil.coerceData(genWR, cm, false); } if (!refPre) { ColorModel cm = ref.getColorModel(); cm = GraphicsUtil.coerceData(refWR, cm, false); } return diff; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/AbstractRenderingAccuracyTest.java/clean/test-sources/org/apache/batik/test/svg/AbstractRenderingAccuracyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 12362, 1361, 5938, 2040, 12, 17947, 2040, 1278, 16, 4766, 9079, 12362, 3157, 13, 288, 3639, 12362, 3122, 273, 394, 12362, 12, 1734, 18, 588, 2384, 9334, 4766, 9079, 1278, 18, 588, 2686, 9334, 4766, 9079, 12362, 18, 2399, 67, 3217, 67, 985, 5887, 1769, 3639, 14505, 18637, 1278, 7181, 273, 1278, 18, 588, 18637, 5621, 3639, 14505, 18637, 3157, 7181, 273, 3157, 18, 588, 18637, 5621, 3639, 14505, 18637, 3046, 7181, 273, 3122, 18, 588, 18637, 5621, 3639, 1250, 1278, 1386, 273, 1278, 18, 291, 9690, 1386, 7027, 3110, 5621, 3639, 309, 16051, 1734, 1386, 13, 288, 5411, 5563, 1488, 377, 5003, 273, 1278, 18, 588, 2957, 1488, 5621, 5411, 5003, 273, 16830, 1304, 18, 2894, 2765, 751, 12, 1734, 7181, 16, 5003, 16, 638, 1769, 5411, 1278, 273, 394, 12362, 12, 7670, 16, 1278, 7181, 16, 638, 16, 446, 1769, 3639, 289, 3639, 1250, 3157, 1386, 273, 3157, 18, 291, 9690, 1386, 7027, 3110, 5621, 3639, 309, 16051, 4507, 1386, 13, 288, 5411, 5563, 1488, 377, 5003, 273, 3157, 18, 588, 2957, 1488, 5621, 5411, 5003, 273, 16830, 1304, 18, 2894, 2765, 751, 12, 4507, 7181, 16, 5003, 16, 638, 1769, 5411, 3157, 273, 394, 12362, 12, 7670, 16, 3157, 7181, 16, 638, 16, 446, 1769, 3639, 289, 3639, 509, 341, 33, 1734, 18, 588, 2384, 5621, 3639, 509, 366, 33, 1734, 18, 588, 2686, 5621, 2868, 509, 677, 16, 277, 16, 1125, 31, 3639, 509, 5378, 1278, 21816, 273, 446, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 12362, 1361, 5938, 2040, 12, 17947, 2040, 1278, 16, 4766, 9079, 12362, 3157, 13, 288, 3639, 12362, 3122, 273, 394, 12362, 12, 1734, 18, 588, 2384, 9334, 4766, 9079, 1278, 18, 588, 2686, 9334, 4766, 9079, 12362, 18, 2399, 67, 3217, 67, 985, 5887, 1769, 3639, 14505, 18637, 1278, 7181, 273, 1278, 18, 588, 18637, 5621, 3639, 14505, 18637, 3157, 7181, 273, 3157, 18, 588, 18637, 5621, 3639, 14505, 18637, 3046, 7181, 273, 3122, 18, 588, 18637, 5621, 3639, 1250, 1278, 1386, 273, 1278, 18, 291, 9690, 1386, 7027, 3110, 5621, 3639, 309, 16051, 1734, 1386, 13, 288, 5411, 5563, 1488, 377, 5003, 273, 1278, 18, 588, 2957, 1488, 5621, 5411, 5003, 273, 16830, 1304, 18, 2 ]
if (c1==null || c2==null) break; if (!c1.equals(c2,1e-15)) {
if (v1 == null || v2 == null) { println("Reached end of file."); break; } try { if (!equal(v1, v2)) { hasError = true; print("Line: " + lineCount + ": "); println(v1.toString() + " != " + v2.toString()); } } catch (Exception e) {
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; // cycle through the expressions in pairs of two println("Evaluating and comparing expressions..."); while (true) { // get values of a pair of two lines c1 = parseNextLine(reader); c2 = parseNextLine(reader); if (c1==null || c2==null) break; // TODO: add comparison method that handles all types (Strings...) if (!c1.equals(c2,1e-15)) { hasError = true; print("Line: " + lineCount + ": "); if (c1.im() == 0) print("" + c1.re() + " != "); else print("" + c1 + " != "); if (c2.im() == 0) println("" + c2.re()); else println("" + c2); } } if (!hasError) { print("\n" + lineCount + " lines processed. No errors were found.\n\n"); } }
54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/0b5de0fe3c751d691e69f83bbae08e11854984fc/JEPTester.java/clean/src/org/nfunk/jepexamples/JEPTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 780, 3968, 13, 288, 202, 202, 17947, 2514, 2949, 31, 202, 202, 12795, 276, 21, 16, 276, 22, 31, 202, 202, 6494, 21986, 273, 629, 31, 202, 202, 759, 4444, 326, 810, 585, 202, 202, 698, 288, 1082, 202, 10530, 273, 394, 10633, 12, 2704, 23010, 12, 17812, 10019, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 8222, 2932, 812, 11843, 15, 17812, 9078, 2412, 486, 1392, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 759, 2715, 326, 980, 1056, 202, 202, 1369, 1380, 273, 374, 31, 9506, 202, 759, 8589, 3059, 326, 8041, 316, 5574, 434, 2795, 202, 202, 8222, 2932, 6644, 1776, 471, 17553, 8041, 7070, 1769, 202, 202, 17523, 261, 3767, 13, 288, 1082, 202, 759, 336, 924, 434, 279, 3082, 434, 2795, 2362, 1082, 202, 71, 21, 273, 1109, 2134, 1670, 12, 10530, 1769, 1082, 202, 71, 22, 273, 1109, 2134, 1670, 12, 10530, 1769, 1082, 202, 430, 261, 71, 21, 631, 2011, 747, 276, 22, 631, 2011, 13, 898, 31, 25083, 202, 759, 2660, 30, 527, 5826, 707, 716, 7372, 777, 1953, 261, 7957, 21846, 1082, 202, 430, 16051, 71, 21, 18, 14963, 12, 71, 22, 16, 21, 73, 17, 3600, 3719, 288, 9506, 202, 5332, 668, 273, 638, 31, 9506, 202, 1188, 2932, 1670, 30, 315, 397, 980, 1380, 397, 6398, 315, 1769, 9506, 202, 430, 261, 71, 21, 18, 381, 1435, 422, 374, 13, 6862, 202, 1188, 2932, 6, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 780, 3968, 13, 288, 202, 202, 17947, 2514, 2949, 31, 202, 202, 12795, 276, 21, 16, 276, 22, 31, 202, 202, 6494, 21986, 273, 629, 31, 202, 202, 759, 4444, 326, 810, 585, 202, 202, 698, 288, 1082, 202, 10530, 273, 394, 10633, 12, 2704, 23010, 12, 17812, 10019, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 8222, 2932, 812, 11843, 15, 17812, 9078, 2412, 486, 1392, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 759, 2715, 326, 980, 1056, 202, 202, 1369, 1380, 273, 374, 31, 9506, 202, 759, 8589, 3059, 326, 8041, 316, 5574, 434, 2795, 202, 202, 8222, 2932, 6644, 1776, 471, 17553, 8041, 7070, 2 ]
null, "setOnkeyup");
null, "setOnkeyupExpr");
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[30]; try { result[0] = new PropertyDescriptor("accesskey", ELTextareaTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELTextareaTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELTextareaTag.class, null, "setAltKey"); result[3] = new PropertyDescriptor("cols", ELTextareaTag.class, null, "setCols"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("disabled", ELTextareaTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELTextareaTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("name", ELTextareaTag.class, null, "setName"); result[7] = new PropertyDescriptor("onblur", ELTextareaTag.class, null, "setOnblur"); result[8] = new PropertyDescriptor("onchange", ELTextareaTag.class, null, "setOnchange"); result[9] = new PropertyDescriptor("onclick", ELTextareaTag.class, null, "setOnclick"); result[10] = new PropertyDescriptor("ondblclick", ELTextareaTag.class, null, "setOndblclick"); result[11] = new PropertyDescriptor("onfocus", ELTextareaTag.class, null, "setOnfocus"); result[12] = new PropertyDescriptor("onkeydown", ELTextareaTag.class, null, "setOnkeydown"); result[13] = new PropertyDescriptor("onkeypress", ELTextareaTag.class, null, "setOnkeypress"); result[14] = new PropertyDescriptor("onkeyup", ELTextareaTag.class, null, "setOnkeyup"); result[15] = new PropertyDescriptor("onmousedown", ELTextareaTag.class, null, "setOnmousedown"); result[16] = new PropertyDescriptor("onmousemove", ELTextareaTag.class, null, "setOnmousemove"); result[17] = new PropertyDescriptor("onmouseout", ELTextareaTag.class, null, "setOnmouseout"); result[18] = new PropertyDescriptor("onmouseover", ELTextareaTag.class, null, "setOnmouseover"); result[19] = new PropertyDescriptor("onmouseup", ELTextareaTag.class, null, "setOnmouseup"); result[20] = new PropertyDescriptor("property", ELTextareaTag.class, null, "setProperty"); result[21] = new PropertyDescriptor("readonly", ELTextareaTag.class, null, "setReadonlyExpr"); result[22] = new PropertyDescriptor("rows", ELTextareaTag.class, null, "setRows"); result[23] = new PropertyDescriptor("style", ELTextareaTag.class, null, "setStyle"); result[24] = new PropertyDescriptor("styleClass", ELTextareaTag.class, null, "setStyleClass"); result[25] = new PropertyDescriptor("styleId", ELTextareaTag.class, null, "setStyleId"); result[26] = new PropertyDescriptor("tabindex", ELTextareaTag.class, null, "setTabindex"); result[27] = new PropertyDescriptor("title", ELTextareaTag.class, null, "setTitle"); result[28] = new PropertyDescriptor("titleKey", ELTextareaTag.class, null, "setTitleKey"); result[29] = new PropertyDescriptor("value", ELTextareaTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELTextareaTagBeanInfo.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5082, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 653, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 6842, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8011, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 24, 65, 273, 394, 26761, 2932, 9278, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8853, 4742, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 25, 65, 273, 394, 26761, 2932, 19626, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 15034, 4742, 8863, 5411, 563, 63, 26, 65, 273, 394, 26761, 2932, 529, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 461, 8863, 5411, 563, 63, 27, 65, 273, 394, 26761, 2932, 265, 27065, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5082, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 1528, 5036, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 653, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 6842, 3113, 14801, 2 ]
if (jj_scan_token(COMMA)) return true; if (jj_3R_83()) return true;
if (jj_3R_206()) return true;
final private boolean jj_3R_197() { if (jj_scan_token(COMMA)) return true; if (jj_3R_83()) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 31728, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4208, 5535, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 10261, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 31728, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 4208, 5535, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 10261, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
runQueryCheckResult(
assertQueryReturns(
public void testPercentagesAsMeasures() { runQueryCheckResult( // todo: "Store.[USA].[CA]" should be "Store.CA" "WITH MEMBER Measures.[Unit Sales Percent] AS" + nl + " '((Store.CURRENTMEMBER, Measures.[Unit Sales]) /" + nl + " (Store.CURRENTMEMBER.PARENT, Measures.[Unit Sales])) '," + nl + " FORMAT_STRING = 'Percent'" + nl + "SELECT {Measures.[Unit Sales], Measures.[Unit Sales Percent]} ON COLUMNS," + nl + " ORDER(DESCENDANTS(Store.[USA].[CA], Store.[Store City], SELF), " + nl + " [Measures].[Unit Sales], ASC) ON ROWS" + nl + "FROM Sales", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "{[Measures].[Unit Sales Percent]}" + nl + "Axis #2:" + nl + "{[Store].[All Stores].[USA].[CA].[Alameda]}" + nl + "{[Store].[All Stores].[USA].[CA].[San Francisco]}" + nl + "{[Store].[All Stores].[USA].[CA].[Beverly Hills]}" + nl + "{[Store].[All Stores].[USA].[CA].[San Diego]}" + nl + "{[Store].[All Stores].[USA].[CA].[Los Angeles]}" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #1: 2,117" + nl + "Row #1: 2.83%" + nl + "Row #2: 21,333" + nl + "Row #2: 28.54%" + nl + "Row #3: 25,635" + nl + "Row #3: 34.30%" + nl + "Row #4: 25,663" + nl + "Row #4: 34.33%" + nl); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8410, 1023, 1463, 23177, 1823, 1435, 288, 3639, 1815, 1138, 1356, 12, 368, 10621, 30, 315, 2257, 18, 63, 3378, 37, 8009, 63, 3587, 4279, 1410, 506, 315, 2257, 18, 3587, 6, 7734, 315, 9147, 18990, 6271, 18174, 1823, 18, 63, 2802, 25996, 21198, 65, 5355, 6, 397, 7741, 397, 7734, 315, 225, 7747, 12, 2257, 18, 15487, 19630, 16, 18174, 1823, 18, 63, 2802, 25996, 5717, 342, 6, 397, 7741, 397, 7734, 315, 565, 261, 2257, 18, 15487, 19630, 18, 14943, 16, 18174, 1823, 18, 63, 2802, 25996, 22643, 2265, 6, 397, 7741, 397, 7734, 315, 225, 10449, 67, 5804, 273, 296, 8410, 4970, 397, 7741, 397, 7734, 315, 4803, 288, 23177, 1823, 18, 63, 2802, 25996, 6487, 18174, 1823, 18, 63, 2802, 25996, 21198, 18322, 6229, 5597, 19639, 10837, 397, 7741, 397, 7734, 315, 225, 10205, 12, 10964, 4415, 6856, 55, 12, 2257, 18, 63, 3378, 37, 8009, 63, 3587, 6487, 4994, 18, 63, 2257, 30578, 6487, 29918, 3631, 315, 397, 7741, 397, 7734, 315, 3639, 306, 23177, 1823, 8009, 63, 2802, 25996, 6487, 8310, 13, 6229, 6525, 2651, 6, 397, 7741, 397, 7734, 315, 11249, 25996, 3113, 7734, 315, 6558, 468, 20, 2773, 397, 7741, 397, 7734, 13034, 397, 7741, 397, 7734, 315, 6558, 468, 21, 2773, 397, 7741, 397, 7734, 4144, 63, 23177, 1823, 8009, 63, 2802, 25996, 20817, 397, 7741, 397, 7734, 4144, 63, 23177, 1823, 8009, 63, 2802, 25996, 21198, 20817, 397, 7741, 397, 7734, 315, 6558, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8410, 1023, 1463, 23177, 1823, 1435, 288, 3639, 1815, 1138, 1356, 12, 368, 10621, 30, 315, 2257, 18, 63, 3378, 37, 8009, 63, 3587, 4279, 1410, 506, 315, 2257, 18, 3587, 6, 7734, 315, 9147, 18990, 6271, 18174, 1823, 18, 63, 2802, 25996, 21198, 65, 5355, 6, 397, 7741, 397, 7734, 315, 225, 7747, 12, 2257, 18, 15487, 19630, 16, 18174, 1823, 18, 63, 2802, 25996, 5717, 342, 6, 397, 7741, 397, 7734, 315, 565, 261, 2257, 18, 15487, 19630, 18, 14943, 16, 18174, 1823, 18, 63, 2802, 25996, 22643, 2265, 6, 397, 7741, 397, 7734, 315, 225, 10449, 67, 5804, 273, 296, 8410, 4970, 397, 7741, 397, 7734, 315, 4803, 288, 23177, 1823, 18, 2 ]
case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 34: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 35: break;
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 26: { String s = yytext(); w.write(s); if(debug) log("Matched @media: "+s); } case 32: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 33: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 34: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 35: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 36: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 37: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 38: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 39: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 40: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 41: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 42: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 47: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 48: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 49: break; case 23: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 50: break; case 28: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 51: break; case 31: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 52: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 53: break; case 19: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 54: break; case 27: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 55: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 56: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 57: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 58: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 59: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 60: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 61: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 62: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/8611b2af3ba1b1861afc23367621eb525f20ee2a/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 1323, 261, 3767, 13, 288, 1377, 11273, 21486, 1616, 48, 273, 11273, 21486, 1616, 31, 1377, 11273, 1803, 273, 300, 21, 31, 1377, 11273, 3935, 1616, 48, 273, 11273, 3935, 1616, 273, 11273, 1685, 1994, 273, 11273, 21486, 1616, 48, 31, 3639, 11273, 1119, 273, 11273, 14756, 1706, 1119, 31, 1377, 11273, 1290, 1803, 30, 288, 3639, 1323, 261, 3767, 13, 288, 2868, 309, 261, 6378, 3935, 1616, 48, 411, 11273, 1638, 1994, 48, 13, 5411, 11273, 1210, 273, 11273, 1892, 48, 63, 6378, 3935, 1616, 48, 9904, 15533, 1850, 469, 309, 261, 6378, 861, 12706, 13, 288, 5411, 11273, 1210, 273, 1624, 61, 12706, 31, 5411, 898, 11273, 1290, 1803, 31, 1850, 289, 1850, 469, 288, 5411, 368, 1707, 1473, 3472, 6865, 5411, 11273, 3935, 1616, 225, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1616, 48, 31, 565, 509, 11273, 21486, 1616, 48, 31, 565, 509, 11273, 1638, 1994, 48, 273, 11273, 1638, 1994, 31, 565, 1149, 5378, 11273, 1892, 48, 273, 11273, 1892, 31, 565, 1149, 5378, 11273, 39, 863, 48, 273, 2285, 62, 67, 39, 8352, 31, 565, 509, 5378, 11273, 1429, 48, 273, 2285, 62, 67, 16596, 31, 565, 509, 5378, 11273, 1999, 863, 48, 273, 2285, 62, 67, 11226, 8352, 31, 565, 509, 5378, 11273, 3843, 48, 273, 2285, 62, 67, 11616, 31, 565, 2 ]
parametri.put(OutputKeys.INDENT, "yes");
parametri.put(OutputKeys.INDENT, "yes");
public byte[] getDocument(User user, String name, String encoding, int prettyPrint) throws EXistException, PermissionDeniedException { RpcConnection con = pool.get(); try { Hashtable parametri = new Hashtable(); if (prettyPrint > 0) { parametri.put(OutputKeys.INDENT, "yes"); } else { parametri.put(OutputKeys.INDENT, "no"); } parametri.put(OutputKeys.ENCODING, encoding); // String xml = con.getDocument(user, name, (prettyPrint > 0), encoding, null); String xml = con.getDocument(user, name, parametri); if (xml == null) throw new EXistException("document " + name + " not found!"); try { return xml.getBytes(encoding); } catch (UnsupportedEncodingException uee) { return xml.getBytes(); } } catch (Exception e) { handleException(e); return null; } finally { pool.release(con); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10981304ec1eac7abf93e24be62293e75342c292/RpcServer.java/buggy/src/org/exist/xmlrpc/RpcServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 9956, 12, 1299, 729, 16, 514, 508, 16, 514, 2688, 16, 509, 30410, 13, 202, 202, 15069, 5675, 376, 503, 16, 8509, 15877, 288, 202, 202, 11647, 1952, 356, 273, 2845, 18, 588, 5621, 202, 202, 698, 288, 1082, 202, 5582, 14544, 579, 2969, 273, 394, 18559, 5621, 25083, 202, 430, 261, 19073, 5108, 405, 374, 13, 288, 1082, 202, 891, 2969, 18, 458, 12, 1447, 2396, 18, 2356, 2222, 16, 315, 9707, 8863, 1082, 202, 97, 469, 288, 1082, 202, 891, 2969, 18, 458, 12, 1447, 2396, 18, 2356, 2222, 16, 315, 2135, 8863, 1082, 565, 289, 1082, 377, 1082, 565, 579, 2969, 18, 458, 12, 1447, 2396, 18, 14672, 16, 2688, 1769, 6862, 202, 759, 202, 780, 2025, 273, 356, 18, 588, 2519, 12, 1355, 16, 508, 16, 261, 19073, 5108, 405, 374, 3631, 2688, 16, 446, 1769, 1082, 202, 780, 2025, 273, 356, 18, 588, 2519, 12, 1355, 16, 508, 16, 579, 2969, 1769, 25083, 202, 430, 261, 2902, 422, 446, 13, 9506, 202, 12849, 394, 5675, 376, 503, 2932, 5457, 315, 397, 508, 397, 315, 486, 1392, 4442, 1769, 1082, 202, 698, 288, 9506, 202, 2463, 2025, 18, 588, 2160, 12, 5999, 1769, 1082, 202, 97, 1044, 261, 8544, 13836, 17869, 73, 13, 288, 9506, 202, 2463, 2025, 18, 588, 2160, 5621, 1082, 202, 97, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 4110, 503, 12, 73, 1769, 1082, 202, 2463, 446, 31, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1160, 8526, 9956, 12, 1299, 729, 16, 514, 508, 16, 514, 2688, 16, 509, 30410, 13, 202, 202, 15069, 5675, 376, 503, 16, 8509, 15877, 288, 202, 202, 11647, 1952, 356, 273, 2845, 18, 588, 5621, 202, 202, 698, 288, 1082, 202, 5582, 14544, 579, 2969, 273, 394, 18559, 5621, 25083, 202, 430, 261, 19073, 5108, 405, 374, 13, 288, 1082, 202, 891, 2969, 18, 458, 12, 1447, 2396, 18, 2356, 2222, 16, 315, 9707, 8863, 1082, 202, 97, 469, 288, 1082, 202, 891, 2969, 18, 458, 12, 1447, 2396, 18, 2356, 2222, 16, 315, 2135, 8863, 1082, 565, 289, 1082, 377, 1082, 565, 579, 2969, 18, 458, 12, 1447, 2396, 18, 14672, 16, 2688, 1769, 2 ]
throws IOException, NotImplementedException
throws IOException
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { // FIXME: Not implemented }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/53983e95556bf4b775130b06570aa2ea08d85628/StyleContext.java/clean/core/src/classpath/javax/javax/swing/text/StyleContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 12325, 694, 12, 921, 4632, 596, 16, 3601, 694, 279, 13, 565, 1216, 1860, 225, 288, 565, 368, 9852, 30, 2288, 8249, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 12325, 694, 12, 921, 4632, 596, 16, 3601, 694, 279, 13, 565, 1216, 1860, 225, 288, 565, 368, 9852, 30, 2288, 8249, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return new ModuleCoreURIConverter(aProject, aResourceSet.getSynchronizer());
return new ComponentCoreURIConverter(aProject, aResourceSet.getSynchronizer());
private URIConverter createURIConverter(IProject aProject, ProjectResourceSet aResourceSet ) { return new ModuleCoreURIConverter(aProject, aResourceSet.getSynchronizer()); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/0ef2c390b563971e3e8f29d60a6cc49f16ed21df/J2EEWebNatureRuntime.java/clean/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/internal/web/operations/J2EEWebNatureRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3699, 5072, 752, 3098, 5072, 12, 45, 4109, 279, 4109, 16, 5420, 1420, 694, 279, 1420, 694, 262, 288, 202, 202, 2463, 394, 5435, 4670, 3098, 5072, 12, 69, 4109, 16, 279, 1420, 694, 18, 588, 19298, 1824, 10663, 225, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3699, 5072, 752, 3098, 5072, 12, 45, 4109, 279, 4109, 16, 5420, 1420, 694, 279, 1420, 694, 262, 288, 202, 202, 2463, 394, 5435, 4670, 3098, 5072, 12, 69, 4109, 16, 279, 1420, 694, 18, 588, 19298, 1824, 10663, 225, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void updateUsername(int userId, String username) throws Exception;
public void updateUsername(int userId, String username) ;
public void updateUsername(int userId, String username) throws Exception;
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/UserDAO.java/clean/src/net/jforum/dao/UserDAO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 8575, 12, 474, 6249, 16, 514, 2718, 13, 1216, 1185, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 8575, 12, 474, 6249, 16, 514, 2718, 13, 1216, 1185, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ this.fileFormat = fileFormat; }
{ this.fileFormat = fileFormat; }
public void setFileFormat(String fileFormat) { this.fileFormat = fileFormat; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/dec476e31491451da3a8cd348e87c60e7e36c715/TextFileInputMeta.java/clean/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19658, 1630, 12, 780, 585, 1630, 13, 565, 288, 3639, 333, 18, 768, 1630, 273, 585, 1630, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19658, 1630, 12, 780, 585, 1630, 13, 565, 288, 3639, 333, 18, 768, 1630, 273, 585, 1630, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
p.getChildren().add(commentArea);
UIComponent commentText = WFUtil.group(localizer.getTextVB("comment"), WFUtil.getText(":")); HtmlOutputLabel commentLabel = new HtmlOutputLabel(); commentLabel.getChildren().add(commentText); commentLabel.setFor(commentArea.getClientId(context)); WFFormItem commentItem = new WFFormItem(); commentItem.add(commentLabel); commentItem.add(commentArea); mainContainer.add(commentItem);
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(HEADLINE_ID); em.addErrorMessage(TEASER_ID);// em.addErrorMessage(PUBLISHED_FROM_DATE_ID);// em.addErrorMessage(PUBLISHED_TO_DATE_ID); em.addErrorMessage(SAVE_ID); mainContainer.add(em); //Saving the state of the articleItemBean specially because the scpoe //of this bean now is 'request' not 'session' UISaveState beanSaveState = new UISaveState(); ValueBinding binding = WFUtil.createValueBinding("#{"+ARTICLE_ITEM_BEAN_ID+"}"); beanSaveState.setId("articleItemBeanSaveState"); beanSaveState.setValueBinding("value",binding); mainContainer.add(beanSaveState); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(2); //Language dropdown p.getChildren().add(WFUtil.group(localizer.getTextVB("language"), WFUtil.getText(":"))); UIComponent langDropdown = getLanguageDropdownMenu(); p.getChildren().add(langDropdown); p.getChildren().add(WFUtil.group(localizer.getTextVB("headline"), WFUtil.getText(":")));// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "language"), WFUtil.getText(":"))); HtmlInputText headlineInput = WFUtil.getInputText(HEADLINE_ID, ref + "headline"); headlineInput.setSize(70); p.getChildren().add(headlineInput); //HtmlSelectOneMenu localeMenu = WFUtil.getSelectOneMenu(LOCALE_ID, ref + "allLocales", ref + "pendingLocaleId"); //localeMenu.setOnchange("document.forms[0].submit();"); //p.getChildren().add(localeMenu); p.getChildren().add(WFUtil.group(localizer.getTextVB("author"), WFUtil.getText(":"))); HtmlInputText authorInput = WFUtil.getInputText(AUTHOR_ID, ref + "author"); authorInput.setSize(70); User user = iwc.getCurrentUser(); if(user!=null){ String userName = user.getName(); getArticleItemBean().setAuthor(userName); } p.getChildren().add(authorInput); //Article body p.getChildren().add(WFUtil.group(localizer.getTextVB("body"), WFUtil.getText(":"))); HTMLArea bodyArea = WFUtil.getHtmlAreaTextArea(BODY_ID, ref + "body", "500px", "400px"); //HTMLArea bodyArea = WFUtil.getHtmlAreaTextArea(BODY_ID, ref + "body"); /*bodyArea.addPlugin(HTMLArea.PLUGIN_TABLE_OPERATIONS); bodyArea.addPlugin(HTMLArea.PLUGIN_DYNAMIC_CSS, "3"); bodyArea.addPlugin(HTMLArea.PLUGIN_CSS, "3"); bodyArea.addPlugin(HTMLArea.PLUGIN_CONTEXT_MENU); bodyArea.addPlugin(HTMLArea.PLUGIN_LIST_TYPE); bodyArea.addPlugin(HTMLArea.PLUGIN_CHARACTER_MAP); */ bodyArea.setAllowFontSelection(false); //bodyArea.addPlugin("TableOperations"); //bodyArea.addPlugin("Template"); //bodyArea.addPlugin("Forms"); //bodyArea.addPlugin("FormOperations"); //bodyArea.addPlugin("EditTag"); //bodyArea.addPlugin("Stylist"); //bodyArea.addPlugin("CSS"); //bodyArea.addPlugin("DynamicCSS"); //bodyArea.addPlugin("FullPage"); //bodyArea.addPlugin("NoteServer"); //bodyArea.addPlugin("QuickTag"); //bodyArea.addPlugin("InsertSmiley"); //bodyArea.addPlugin("InsertWords"); //bodyArea.addPlugin("ContextMenu"); //bodyArea.addPlugin("LangMarks"); //bodyArea.addPlugin("DoubleClick"); //bodyArea.addPlugin("ListType"); //bodyArea.addPlugin("ImageManager"); p.getChildren().add(WFUtil.group(bodyArea, WFUtil.getBreak())); p.getChildren().add(WFUtil.group(localizer.getTextVB("teaser"), WFUtil.getText(":"))); HtmlInputTextarea teaserArea = WFUtil.getTextArea(TEASER_ID, ref + "teaser", "500px", "60px"); p.getChildren().add(teaserArea); p.getChildren().add(WFUtil.group(localizer.getTextVB("source"), WFUtil.getText(":"))); HtmlInputText sourceArea = WFUtil.getInputText(SOURCE_ID, ref + "source"); sourceArea.setSize(70); p.getChildren().add(sourceArea); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); // p = WFPanelUtil.getPlainFormPanel(1);/* p.getChildren().add(WFUtil.group(WFUtil.getHeaderTextVB(bref + "created"), WFUtil.getTextVB(ref + "creationDate") ));*/// p.getChildren().add(WFUtil.getText(" "));// UIComponent t = WFUtil.group(localizer.getHeaderTextVB("status"), WFUtil.getText(": "));// t.getChildren().add(WFUtil.getTextVB(ref + "status"));// p.getChildren().add(t); p.getChildren().add(WFUtil.group(localizer.getTextVB("status"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getTextVB(ref + "status")); p.getChildren().add(WFUtil.group(localizer.getTextVB("current_version"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getTextVB(ref + "versionName")); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); // p = WFPanelUtil.getFormPanel(2); p.getChildren().add(WFUtil.group(localizer.getTextVB("comment"), WFUtil.getText(":")));// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "attachments"), WFUtil.getText(":"))); HtmlInputTextarea commentArea = WFUtil.getTextArea(COMMENT_ID, ref + "comment", "500px", "60px"); p.getChildren().add(commentArea);// WFContainer attachmentContainer = new WFContainer();// attachmentContainer.add(WFUtil.getButtonVB(ADD_ATTACHMENT_ID, bref + "add_attachment", this));// attachmentContainer.add(WFUtil.getBreak());// attachmentContainer.add(getAttachmentList());// p.getChildren().add(attachmentContainer); // mainContainer.add(p); // p = WFPanelUtil.getFormPanel(1);// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "related_content_items"), WFUtil.getText(":"))); // WFContainer contentItemContainer = new WFContainer(); // contentItemContainer.add(WFUtil.getButtonVB(ADD_RELATED_CONTENT_ITEM_ID, bref + "add_content_item", this));// contentItemContainer.add(WFUtil.getBreak());// contentItemContainer.add(getRelatedContentItemsList());// p.getChildren().add(contentItemContainer);// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "publishing_date"), WFUtil.getText(":"))); // WFDateInput publishedFromInput = WFUtil.getDateInput(PUBLISHED_FROM_DATE_ID, ref + "case.publishedFromDate");// publishedFromInput.setShowTime(true);// p.getChildren().add(publishedFromInput);// p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "expiration_date"), WFUtil.getText(":"))); // WFDateInput publishedToInput = WFUtil.getDateInput(PUBLISHED_TO_DATE_ID, ref + "case.publishedToDate");// publishedToInput.setShowTime(true);// p.getChildren().add(publishedToInput); // mainContainer.add(p); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());// mainContainer.add(WFUtil.getBreak());// p = WFPanelUtil.getPlainFormPanel(1);// HtmlCommandButton editCategoriesButton = WFUtil.getButtonVB(EDIT_CATEGORIES_ID, bref + "edit_categories", this);// p.getChildren().add(editCategoriesButton); //Temporary taking away folderr location/* p.getChildren().add(WFUtil.group(localizer.getTextVB("folder"), WFUtil.getText(":"))); HtmlInputText folderInput = WFUtil.getInputText(FOLDER_ID, ref + "folderLocation"); if(null==folderInput.getValue() || "".equals(folderInput.getValue())) { String FolderString = ArticleUtil.getArticleYearMonthPath();// System.out.println("Folder "+FolderString); folderInput.setValue(FolderString); } else { File file = new File(folderInput.getValue().toString()); folderInput.setValue(file.getParentFile().getParent()); } folderInput.setSize(70); p.getChildren().add(folderInput); */ p.getChildren().add(WFUtil.getBreak()); //Categories// WebDAVCategories categoriesUI = new WebDAVCategories(); //ArticleItemBean articleItemBean = (ArticleItemBean) getArticleItemBean(); //String resourcePath = articleItemBean.getArticleResourcePath(); addCategoryEditor(p); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());// WFComponentSelector cs = new WFComponentSelector();// cs.setId(BUTTON_SELECTOR_ID);// cs.setDividerText(" "); HtmlCommandButton saveButton = localizer.getButtonVB(SAVE_ID, "save", this);// HtmlCommandButton saveButton = WFUtil.getButtonVB(SAVE_ID, WFPage.CONTENT_BUNDLE + "save", this);// cs.add(saveButton);// cs.add(WFUtil.getButtonVB(FOR_REVIEW_ID, bref + "for_review", this));// cs.add(WFUtil.getButtonVB(PUBLISH_ID, bref + "publish", this));// cs.add(WFUtil.getButtonVB(REWRITE_ID, bref + "rewrite", this));// cs.add(WFUtil.getButtonVB(REJECT_ID, bref + "reject", this));// cs.add(WFUtil.getButtonVB(DELETE_ID, bref + "delete", this));// cs.add(WFUtil.getButtonVB(CANCEL_ID, bref + "cancel", this));// cs.setSelectedId(CANCEL_ID, true);// p.getChildren().add(cs); p.getChildren().add(saveButton); mainContainer.add(p); //WFComponentSelector editorSelector = new WFComponentSelector(); //editorSelector.setId(EDITOR_SELECTOR_ID); //editorSelector.add(mainContainer); //editorSelector.add(getCategoryEditContainer());// FileUploadForm f = new FileUploadForm(this, FILE_UPLOAD_ID, FILE_UPLOAD_CANCEL_ID); //editorSelector.add(getRelatedContentItemsContainer()); //editorSelector.setSelectedId(ARTICLE_EDITOR_ID, true); //return editorSelector; return mainContainer; }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18907, 21221, 2170, 1435, 288, 9506, 202, 45, 59, 1042, 25522, 71, 273, 467, 59, 1042, 18, 588, 1442, 5621, 202, 202, 59, 42, 1420, 1304, 1191, 1824, 273, 678, 42, 1420, 1304, 18, 588, 1420, 1304, 7880, 5621, 759, 202, 202, 780, 324, 1734, 273, 678, 42, 1964, 18, 9689, 67, 30245, 397, 4585, 31, 202, 202, 59, 42, 2170, 2774, 2170, 273, 394, 678, 42, 2170, 5621, 202, 202, 5254, 2170, 18, 542, 548, 12, 4928, 2871, 900, 67, 13208, 67, 734, 1769, 202, 202, 59, 42, 668, 5058, 801, 273, 394, 678, 42, 668, 5058, 5621, 202, 202, 351, 18, 1289, 14935, 12, 12458, 5997, 67, 734, 1769, 202, 202, 351, 18, 1289, 14935, 12, 1448, 37, 2123, 67, 734, 1769, 759, 202, 202, 351, 18, 1289, 14935, 12, 22224, 2056, 67, 11249, 67, 4594, 67, 734, 1769, 759, 202, 202, 351, 18, 1289, 14935, 12, 22224, 2056, 67, 4296, 67, 4594, 67, 734, 1769, 202, 202, 351, 18, 1289, 14935, 12, 25242, 67, 734, 1769, 9506, 202, 5254, 2170, 18, 1289, 12, 351, 1769, 9506, 202, 759, 24660, 326, 919, 434, 326, 7559, 1180, 3381, 857, 6261, 2724, 326, 888, 1631, 73, 202, 202, 759, 792, 333, 3931, 2037, 353, 296, 2293, 11, 486, 296, 3184, 11, 202, 202, 5370, 4755, 1119, 3931, 4755, 1119, 273, 394, 6484, 4755, 1119, 5621, 202, 202, 620, 5250, 5085, 273, 678, 42, 1304, 18, 2640, 620, 5250, 2932, 3642, 6, 15, 4928, 2871, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18907, 21221, 2170, 1435, 288, 9506, 202, 45, 59, 1042, 25522, 71, 273, 467, 59, 1042, 18, 588, 1442, 5621, 202, 202, 59, 42, 1420, 1304, 1191, 1824, 273, 678, 42, 1420, 1304, 18, 588, 1420, 1304, 7880, 5621, 759, 202, 202, 780, 324, 1734, 273, 678, 42, 1964, 18, 9689, 67, 30245, 397, 4585, 31, 202, 202, 59, 42, 2170, 2774, 2170, 273, 394, 678, 42, 2170, 5621, 202, 202, 5254, 2170, 18, 542, 548, 12, 4928, 2871, 900, 67, 13208, 67, 734, 1769, 202, 202, 59, 42, 668, 5058, 801, 273, 394, 678, 42, 668, 5058, 5621, 202, 202, 351, 18, 1289, 14935, 12, 12458, 5997, 67, 734, 1769, 202, 202, 351, 18, 1289, 2 ]