rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
AST tmp2018_AST_in = (AST)_t;
AST tmp2020_AST_in = (AST)_t;
public final void inputthroughstate(AST _t) throws RecognitionException { AST inputthroughstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1988 = _t; AST tmp2018_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case THROUGH: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2019_AST_in = (AST)_t; match(_t,THROUGH); _t = _t.getNextSibling(); io_phrase(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1988; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 810, 10064, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 810, 10064, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 810, 10064, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 810, 10064, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
context.setFontFactory(fontFactory); }
context.setFontFactory(fontFactory); }
public void setFontFactory(final FontFactory fontFactory) { context.setFontFactory(fontFactory); }
9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/cd4ac13f5edb5c26f1268369583e74137315d1bd/Max.java/buggy/ExTeX/src/de/dante/extex/interpreter/max/Max.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20454, 1733, 12, 6385, 10063, 1733, 3512, 1733, 13, 288, 3639, 819, 18, 542, 5711, 1733, 12, 5776, 1733, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20454, 1733, 12, 6385, 10063, 1733, 3512, 1733, 13, 288, 3639, 819, 18, 542, 5711, 1733, 12, 5776, 1733, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public void testIndentInfoBracket () throws BadLocationException {
public void testIndentInfoBracket() throws BadLocationException {
public void testIndentInfoBracket () throws BadLocationException { // just bracket BraceReduction rm = doc._reduced; doc.insertString(0, "\n[\n", null); IndentInfo ii = rm.getIndentInformation(); assertEquals("1.0", openBracket, ii.braceType); assertEquals("1.1", 2, ii.distToNewline); assertEquals("1.2", 2, ii.distToBrace); // bracket with stuff in front doc.insertString(1, " helo ", null); doc.move(2); // \n helo (\n# assertEquals("0.1", "\n helo [\n", doc.getText(0, doc.getLength())); ii = rm.getIndentInformation(); assertEquals("2.0", openBracket, ii.braceType); assertEquals("2.1", 9, ii.distToNewline); assertEquals("2.2", 2, ii.distToBrace); //single layer brace doc.move(-1); doc.insertString(9, " [", null); doc.move(1); // \n helo ( (\n# assertEquals("0.2", "\n helo [ [\n", doc.getText(0, doc.getLength())); ii = rm.getIndentInformation(); assertEquals("3.0", openBracket, ii.braceType); assertEquals("3.1", 11, ii.distToNewline); assertEquals("3.2", 2, ii.distToBrace); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/IndentTest.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/IndentTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 7790, 966, 11450, 1435, 1216, 6107, 2735, 503, 288, 565, 368, 2537, 9843, 565, 605, 9963, 3715, 4062, 6692, 273, 997, 6315, 1118, 26372, 31, 565, 997, 18, 6387, 780, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 7790, 966, 11450, 1435, 1216, 6107, 2735, 503, 288, 565, 368, 2537, 9843, 565, 605, 9963, 3715, 4062, 6692, 273, 997, 6315, 1118, 26372, 31, 565, 997, 18, 6387, 780, 12, ...
mProcess = null;
public PerlDB(DebugTarget fTarget) throws InstantiationException { IPath path; mTarget = fTarget; mProcess = null; mCurrentCommand = mCommandNone; mCurrentSubCommand = mCommandNone; mDebugIn = null; mDebugOut = null; mDebugOutput = null; mDebugSubCommandOutput = null; mCurrentCommandDest = null; mReCommandFinished1 = null; mReSessionFinished1 = null; mReSessionFinished2 = null; mIsCommandFinished = false; mIsCommandRunning = false; mPendingBreakpoints = new BreakpointMap(); mActiveBreakpoints = new BreakpointMap(); mThreads = new PerlDebugThread[1]; mThreads[0]= new PerlDebugThread("Main-Thread",fTarget.getLaunch(),fTarget,this); try{ mReCommandFinished1 = new RE("\n\\s+DB<\\d+>",0, RESyntax.RE_SYNTAX_PERL5); mReCommandFinished2 = new RE("^\\s+DB<\\d+>",0, RESyntax.RE_SYNTAX_PERL5); mReSessionFinished1 = new RE("Use `q' to quit or `R' to restart",0, RESyntax.RE_SYNTAX_PERL5); mReSessionFinished2 = new RE("Debugged program terminated.",0, RESyntax.RE_SYNTAX_PERL5); mRe_IP_Pos =new RE("^[^\\(]*\\((.*):(\\d+)\\):[\\n\\t]",0, RESyntax.RE_SYNTAX_PERL5); mRe_IP_Pos_Eval =new RE("^[^\\(]*\\(eval\\s+\\d+\\)\\[(.*):(\\d+)\\]$",0, RESyntax.RE_SYNTAX_PERL5); mReSwitchFileFail = new RE("^No file",0, RESyntax.RE_SYNTAX_PERL5); mReSetLineBreakpoint = new RE("^\\s+DB<\\d+>",0, RESyntax.RE_SYNTAX_PERL5); mReStackTrace = new RE("^(.)\\s+=\\s+(.*)called from .* \\`([^\\']+)\\'\\s*line (\\d+)\\s*$",RE.REG_MULTILINE, RESyntax.RE_SYNTAX_PERL5); mReEnterFrame = new RE("^\\s*entering",0, RESyntax.RE_SYNTAX_PERL5); mReExitFrame = new RE("^\\s*exited",0, RESyntax.RE_SYNTAX_PERL5); } catch (REException e){ new InstantiationException("Couldn't RegEX");}; mRemotePort = new RemotePort(4444); mRemotePort.startConnect(); try{ //Runtime.getRuntime(). // exec("perl -d "+startfile,PerlDebugPlugin.getDebugEnv(), new File(mWorkingDir.toString())); /***** CGI Quick Hack****/// if( debug_cgi ) { mProcess= Runtime.getRuntime().exec("perl -d"); } else { mProcess= mTarget.startPerlProcess(); mWorkingDir = mTarget.getWorkingDir(); } }catch (Exception e) { System.out.println(e); throw new InstantiationException("Failing to create Process !!!"); } //DebugPlugin.newProcess(getLaunch(),mProcess,"Echo-Process"); ((PerlDebugPlugin)PerlDebugPlugin.getDefault()).registerDebugger(this); if( ! mRemotePort.waitForConnect(true) ) { shutdown(); throw new InstantiationException("Couldn't connect to Debugger"); } mDebugIn = mRemotePort.getWriteStream(); mDebugOut = mRemotePort.getReadStream(); mPathMapper = null; String interpreterType = PerlEditorPlugin.getDefault().getPreferenceStore().getString( PerlEditorPlugin.INTERPRETER_TYPE_PREFERENCE);// Check if cygwin is used if (interpreterType.equals(PerlEditorPlugin.INTERPRETER_TYPE_CYGWIN)) { mPathMapper = new PathMapperCygwin(); } startCommand(mCommandClearOutput,null,false, this); if( ! isTerminated(this) ) { startCommand(mCommandExecuteCode,mDBinitPerl,false, this);// /****************test only*****/// getLaunch().setAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_IO_PORT,"4041");// getLaunch().setAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_ERROR_PORT,"4042");// DebuggerProxy p = new DebuggerProxy(this, "Proxy");// getLaunch().addProcess(p);// mTarget.setProcess(p); /***********************************/ PerlDebugPlugin.getPerlBreakPointmanager().addDebugger(this); updateStackFrames(null); generateDebugInitEvent(); } else generateDebugTermEvent(); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/4179c9f6d0a36bc8b8ca5cdef30d4178930114cd/PerlDB.java/buggy/org.epic.debug/src/org/epic/debug/PerlDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5722, 80, 2290, 12, 2829, 2326, 284, 2326, 13, 1216, 19248, 202, 95, 9506, 202, 45, 743, 589, 31, 9506, 202, 81, 2326, 273, 284, 2326, 31, 202, 202, 81, 2227, 273, 446, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5722, 80, 2290, 12, 2829, 2326, 284, 2326, 13, 1216, 19248, 202, 95, 9506, 202, 45, 743, 589, 31, 9506, 202, 81, 2326, 273, 284, 2326, 31, 202, 202, 81, 2227, 273, 446, 31, ...
buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); buf.append("<input type=\"submit\" name=\"remove_AllRequests\" value=\"Delete Everything\">");
buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\" />"); buf.append("<input type=\"submit\" name=\"remove_AllRequests\" value=\"Delete Everything\" />");
private void writeDeleteAll(StringBuffer buf) { buf.append("<td>"); buf.append("<form action=\"/queue/\" method=\"post\">"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); buf.append("<input type=\"submit\" name=\"remove_AllRequests\" value=\"Delete Everything\">"); buf.append("</form>\n"); buf.append("</td>\n"); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/a2c799232c5ddad097bc15ac69d6259528050f65/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 2613, 1595, 12, 780, 1892, 1681, 13, 288, 202, 202, 4385, 18, 6923, 2932, 32, 4465, 2984, 1769, 202, 202, 4385, 18, 6923, 2932, 32, 687, 1301, 5189, 19, 4000, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 2613, 1595, 12, 780, 1892, 1681, 13, 288, 202, 202, 4385, 18, 6923, 2932, 32, 4465, 2984, 1769, 202, 202, 4385, 18, 6923, 2932, 32, 687, 1301, 5189, 19, 4000, 19, ...
PropertyType.STRING_TYPE,
IPropertyType.STRING_TYPE,
public IPropertyDefinition[] getPropertyDefinitions( ) { if ( cm == null ) { logger.log( ILogger.WARNING, Messages.getString( "ChartReportItemImpl.log.RequestForPropertyDefn" ) ); //$NON-NLS-1$ return null; } return new IPropertyDefinition[]{ new ChartPropertyDefinitionImpl( null, "title.value", "property.label.title.value", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.STRING_TYPE, null, null, null ), new ChartPropertyDefinitionImpl( null, "title.font.rotation", "property.label.title.font.rotation", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.FLOAT_TYPE, null, null, null ), new ChartPropertyDefinitionImpl( null, "legend.position", "property.label.legend.position", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.CHOICE_TYPE, liLegendPositions, null, null ), new ChartPropertyDefinitionImpl( null, "legend.anchor", "property.label.legend.anchor", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.CHOICE_TYPE, liLegendAnchors, null, null ), new ChartPropertyDefinitionImpl( null, "chart.dimension", "property.label.chart.dimension", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.CHOICE_TYPE, liChartDimensions, null, null ), new ChartPropertyDefinitionImpl( null, "plot.transposed", "property.label.chart.plot.transposed", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.BOOLEAN_TYPE, null, null, null ), new ChartPropertyDefinitionImpl( null, "script", "property.script", false, //$NON-NLS-1$ //$NON-NLS-2$ PropertyType.STRING_TYPE, null, null, null ), }; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/05f88a14321cea0993930d2fd3e35dff6de2bd87/ChartReportItemImpl.java/buggy/chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1396, 1852, 8526, 3911, 7130, 12, 262, 202, 95, 202, 202, 430, 261, 5003, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 467, 3328, 18, 9511, 16, 6862, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1396, 1852, 8526, 3911, 7130, 12, 262, 202, 95, 202, 202, 430, 261, 5003, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 467, 3328, 18, 9511, 16, 6862, 202...
if (length < cosineWindow.length) { double[] padded = new double[cosineWindow.length];
if (length < cosineWindow.length) { double[] padded = new double[cosineWindow.length];
private int applyRaisedCosineWindow(double[] in, int length) { int windowCount; // if no windows can be created but there is some data, // pad it with zeros if (length < cosineWindow.length) { double[] padded = new double[cosineWindow.length]; Arrays.fill(padded, 0); System.arraycopy(in, 0, padded, 0, length); in = padded; windowCount = 1; } else { windowCount = getWindowCount (length, cosineWindow.length, windowShift); } // create all the windows at once, not individually, saves time double[][] windows = new double[windowCount][cosineWindow.length]; int windowStart = 0; for (int i = 0; i < windowCount; windowStart += windowShift, i++) { double[] myWindow = windows[i]; // apply the Hamming Window function to the window of data for (int w = 0, s = windowStart; w < myWindow.length; s++, w++) { myWindow[w] = in[s] * cosineWindow[w]; } // add the frame to the output queue outputQueue.add(new DoubleData (myWindow, sampleRate, currentCollectTime, currentFirstSampleNumber)); currentFirstSampleNumber += windowShift; } return windowStart; }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/7d3ab1701ca9a2810976eef1369bb73035ecb5f9/RaisedCosineWindower.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/frontend/window/RaisedCosineWindower.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2230, 12649, 5918, 39, 538, 558, 3829, 12, 9056, 8526, 316, 16, 509, 769, 13, 288, 3639, 509, 2742, 1380, 31, 202, 759, 309, 1158, 9965, 848, 506, 2522, 1496, 1915, 353, 2690...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2230, 12649, 5918, 39, 538, 558, 3829, 12, 9056, 8526, 316, 16, 509, 769, 13, 288, 3639, 509, 2742, 1380, 31, 202, 759, 309, 1158, 9965, 848, 506, 2522, 1496, 1915, 353, 2690...
public ToolBarManager(int style) { itemStyle= style;
public ToolBarManager() {
public ToolBarManager(int style) { itemStyle= style;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/277c5a6d30016274fd949a4fd4148182b4b9a3f0/ToolBarManager.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ToolBarManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 13288, 5190, 1318, 12, 474, 2154, 13, 288, 202, 1726, 2885, 33, 2154, 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, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 13288, 5190, 1318, 12, 474, 2154, 13, 288, 202, 1726, 2885, 33, 2154, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
grailsViewResolver.setProperty("prefix", SpringConfigUtils.createLiteralValue(GrailsApplicationAttributes.PATH_TO_VIEWS + '/'));
grailsViewResolver.setProperty("prefix", SpringConfigUtils.createLiteralValue(GrailsApplicationAttributes.PATH_TO_VIEWS));
private void populateControllerReferences(Collection beanReferences, Map urlMappings) { Bean simpleGrailsController = SpringConfigUtils.createSingletonBean(SimpleGrailsController.class); simpleGrailsController.setAutowire("byType"); beanReferences.add(SpringConfigUtils.createBeanReference(SimpleGrailsController.APPLICATION_CONTEXT_ID, simpleGrailsController)); Bean grailsViewResolver = SpringConfigUtils.createSingletonBean(GrailsViewResolver.class); grailsViewResolver.setProperty("viewClass",SpringConfigUtils.createLiteralValue("org.springframework.web.servlet.view.JstlView")); grailsViewResolver.setProperty("prefix", SpringConfigUtils.createLiteralValue(GrailsApplicationAttributes.PATH_TO_VIEWS + '/')); grailsViewResolver.setProperty("suffix", SpringConfigUtils.createLiteralValue(".jsp")); beanReferences.add(SpringConfigUtils.createBeanReference("jspViewResolver", grailsViewResolver)); Bean simpleUrlHandlerMapping = null; if (application.getControllers().length > 0 || application.getPageFlows().length > 0) { simpleUrlHandlerMapping = SpringConfigUtils.createSingletonBean(GrailsUrlHandlerMapping.class); //beanReferences.add(SpringConfigUtils.createBeanReference(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_ID + "Target", simpleUrlHandlerMapping)); Collection args = new ArrayList(); args.add(simpleUrlHandlerMapping); Bean simpleUrlHandlerMappingTargetSource = SpringConfigUtils.createSingletonBean(HotSwappableTargetSource.class, args); beanReferences.add(SpringConfigUtils.createBeanReference(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_TARGET_SOURCE,simpleUrlHandlerMappingTargetSource)); // configure handler interceptors Bean openSessionInViewInterceptor = SpringConfigUtils.createSingletonBean(OpenSessionInViewInterceptor.class); openSessionInViewInterceptor.setProperty("flushMode",SpringConfigUtils.createLiteralValue(String.valueOf(HibernateAccessor.FLUSH_AUTO))); openSessionInViewInterceptor.setProperty("sessionFactory", SpringConfigUtils.createBeanReference("sessionFactory")); beanReferences.add(SpringConfigUtils.createBeanReference("openSessionInViewInterceptor",openSessionInViewInterceptor)); Collection interceptors = new ArrayList(); interceptors.add(SpringConfigUtils.createBeanReference("openSessionInViewInterceptor")); simpleUrlHandlerMapping.setProperty("interceptors", SpringConfigUtils.createList(interceptors)); Bean simpleUrlHandlerMappingProxy = SpringConfigUtils.createSingletonBean(ProxyFactoryBean.class); simpleUrlHandlerMappingProxy.setProperty("targetSource", SpringConfigUtils.createBeanReference(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_TARGET_SOURCE)); simpleUrlHandlerMappingProxy.setProperty("proxyInterfaces", SpringConfigUtils.createLiteralValue("org.springframework.web.servlet.HandlerMapping")); beanReferences.add(SpringConfigUtils.createBeanReference(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_ID, simpleUrlHandlerMappingProxy)); } GrailsControllerClass[] simpleControllers = application.getControllers(); for (int i = 0; i < simpleControllers.length; i++) { GrailsControllerClass simpleController = simpleControllers[i]; if (!simpleController.getAvailable()) { continue; } // setup controller class by retrieving it from the grails application Bean controllerClass = SpringConfigUtils.createSingletonBean(MethodInvokingFactoryBean.class); controllerClass.setProperty("targetObject", SpringConfigUtils.createBeanReference("grailsApplication")); controllerClass.setProperty("targetMethod", SpringConfigUtils.createLiteralValue("getController")); controllerClass.setProperty("arguments", SpringConfigUtils.createLiteralValue(simpleController.getFullName())); beanReferences.add(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "Class", controllerClass)); // configure controller class as hot swappable target source Collection args = new ArrayList(); args.add(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "Class")); Bean controllerTargetSource = SpringConfigUtils.createSingletonBean(HotSwappableTargetSource.class, args); beanReferences.add(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "TargetSource", controllerTargetSource)); // setup AOP proxy that uses hot swappable target source Bean controllerClassProxy = SpringConfigUtils.createSingletonBean(ProxyFactoryBean.class); controllerClassProxy.setProperty("targetSource", SpringConfigUtils.createBeanReference(simpleController.getFullName() + "TargetSource")); controllerClassProxy.setProperty("proxyInterfaces", SpringConfigUtils.createLiteralValue("org.codehaus.groovy.grails.commons.GrailsControllerClass")); beanReferences.add(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "Proxy", controllerClassProxy)); // create prototype bean that uses the controller AOP proxy controller class bean as a factory Bean controller = SpringConfigUtils.createPrototypeBean(); controller.setFactoryBean(SpringConfigUtils.createBeanReference(simpleController.getFullName() + "Proxy")); controller.setFactoryMethod("newInstance"); controller.setAutowire("byName"); beanReferences.add(SpringConfigUtils.createBeanReference(simpleController.getFullName(), controller)); for (int x = 0; x < simpleController.getURIs().length; x++) { if(!urlMappings.containsKey(simpleController.getURIs()[x])) urlMappings.put(simpleController.getURIs()[x], SimpleGrailsController.APPLICATION_CONTEXT_ID); } } if (simpleUrlHandlerMapping != null) { simpleUrlHandlerMapping.setProperty("mappings", SpringConfigUtils.createProperties(urlMappings)); } GrailsTagLibClass[] tagLibs = application.getGrailsTabLibClasses(); for (int i = 0; i < tagLibs.length; i++) { GrailsTagLibClass grailsTagLib = tagLibs[i]; // setup taglib class by retrieving it from the grails application bean Bean taglibClass = SpringConfigUtils.createSingletonBean(MethodInvokingFactoryBean.class); taglibClass.setProperty("targetObject", SpringConfigUtils.createBeanReference("grailsApplication")); taglibClass.setProperty("targetMethod", SpringConfigUtils.createLiteralValue("getGrailsTagLibClass")); taglibClass.setProperty("arguments", SpringConfigUtils.createLiteralValue(grailsTagLib.getFullName())); beanReferences.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "Class", taglibClass)); // configure taglib class as hot swappable target source Collection args = new ArrayList(); args.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "Class")); Bean taglibTargetSource = SpringConfigUtils.createSingletonBean(HotSwappableTargetSource.class, args); // setup AOP proxy that uses hot swappable target source beanReferences.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "TargetSource", taglibTargetSource)); Bean taglibClassProxy = SpringConfigUtils.createSingletonBean(ProxyFactoryBean.class); taglibClassProxy.setProperty("targetSource", SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "TargetSource")); taglibClassProxy.setProperty("proxyInterfaces", SpringConfigUtils.createLiteralValue("org.codehaus.groovy.grails.commons.GrailsTagLibClass")); beanReferences.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "Proxy", taglibClassProxy)); // create prototype bean that refers to the AOP proxied taglib class uses it as a factory Bean taglib = SpringConfigUtils.createPrototypeBean(); taglib.setFactoryBean(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName() + "Proxy")); taglib.setFactoryMethod("newInstance"); taglib.setAutowire("byName"); beanReferences.add(SpringConfigUtils.createBeanReference(grailsTagLib.getFullName(), taglib)); } }
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/8dfb6122e3fc8d5097dea6528ac72437a6850591/SpringConfig.java/clean/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 2933, 8221, 12, 2532, 3931, 8221, 16, 1635, 880, 7742, 13, 288, 202, 202, 3381, 4143, 14571, 14573, 2933, 273, 22751, 809, 1989, 18, 2640, 19571, 3381, 12, 5784, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 2933, 8221, 12, 2532, 3931, 8221, 16, 1635, 880, 7742, 13, 288, 202, 202, 3381, 4143, 14571, 14573, 2933, 273, 22751, 809, 1989, 18, 2640, 19571, 3381, 12, 5784, 145...
InetAddress nodeIP = nodeAddr == null ? null : nodeAddr.getAddress(); if(nodeIP != null && nodeIP.equals(localhost)) return p; if(peerIP != null && peerIP.equals(localhost)) return p; if(nodeIP != null && nodeIP.equals(peerIP)) {
Peer extra = null; for(int i=0;i<p.length;i++) { FreenetInetAddress a = p[i].getFreenetAddress(); if(a.equals(nodeAddr)) { extra = new Peer(localhost, p[i].getPort()); } } if(extra != null) {
public Peer[] getHandshakeIPs(){ Peer[] p=null; if(detectedPeer == null && nominalPeer.size() == 0) return new Peer[0]; InetAddress peerIP = detectedPeer.getHandshakeAddress(); if(peerIP == null && nominalPeer.size() == 0) return new Peer[0]; if( peerIP != null && ! nominalPeer.contains(detectedPeer)){ p= new Peer[1+nominalPeer.size()]; p[0]=detectedPeer; for(int i=1;i<nominalPeer.size()+1;i++) p[i]=(Peer) nominalPeer.get(i-1); }else{ p = (Peer[]) nominalPeer.toArray(new Peer[nominalPeer.size()]); } // Hack for two nodes on the same IP that can't talk over inet for routing reasons InetAddress localhost = node.localhostAddress; FreenetInetAddress nodeAddr = node.getPrimaryIPAddress(); InetAddress nodeIP = nodeAddr == null ? null : nodeAddr.getAddress(); if(nodeIP != null && nodeIP.equals(localhost)) return p; if(peerIP != null && peerIP.equals(localhost)) return p; if(nodeIP != null && nodeIP.equals(peerIP)) { Peer[] newPeers = new Peer[p.length+1]; System.arraycopy(p, 0, newPeers, 0, p.length); newPeers[newPeers.length-1] = new Peer(node.localhostAddress, detectedPeer.getPort()); p = newPeers; } return p; }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/d239b187b02c606263d968ad007368304b084720/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 8526, 336, 14545, 18246, 1435, 95, 377, 202, 6813, 8526, 293, 33, 2011, 31, 377, 202, 377, 202, 430, 12, 8238, 828, 6813, 422, 446, 597, 12457, 1490, 6813, 18, 1467, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10669, 8526, 336, 14545, 18246, 1435, 95, 377, 202, 6813, 8526, 293, 33, 2011, 31, 377, 202, 377, 202, 430, 12, 8238, 828, 6813, 422, 446, 597, 12457, 1490, 6813, 18, 1467, 1435, ...
public org.quickfix.field.PartyRole getPartyRole() throws FieldNotFound { org.quickfix.field.PartyRole value = new org.quickfix.field.PartyRole();
public quickfix.field.PartyRole getPartyRole() throws FieldNotFound { quickfix.field.PartyRole value = new quickfix.field.PartyRole();
public org.quickfix.field.PartyRole getPartyRole() throws FieldNotFound { org.quickfix.field.PartyRole value = new org.quickfix.field.PartyRole(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 2996, 1689, 7325, 2996, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 2996, 460, 273, 394, 2358, 18, 19525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 2996, 1689, 7325, 2996, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 2996, 460, 273, 394, 2358, 18, 19525,...
if (member.isNil()) { throw new RubyBugException("uninitialized struct"); }
Asserts.assertTrue(!member.isNil(), "uninitialized struct");
public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).toId().equals(name)) { return values[i]; } } throw new NameError(runtime, name + " is not struct member"); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyStruct.java/buggy/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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1...
AST __t198 = _t;
AST __t203 = _t;
public final void canfindfunc(AST _t) throws RecognitionException { AST canfindfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST cf = null; AST r = null; AST __t196 = _t; cf = _t==ASTNULL ? null :(AST)_t; match(_t,CANFIND); _t = _t.getFirstChild(); AST tmp301_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } AST __t198 = _t; r = _t==ASTNULL ? null :(AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.canFindBegin(cf, r); action.recordNameNode(r, CQ.INIT); } recordphrase(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.canFindEnd(cf); } _t = __t198; _t = _t.getNextSibling(); AST tmp302_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t196; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 848, 4720, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 848, 4720, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 848, 4720, 644, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 848, 4720, 644, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, ...
ICDILocation location = getCDITarget().createLocation( "", "main", 0 );
ICDILocation location = getCDITarget().createFunctionLocation( "", "main" );
public void restart() throws DebugException { if ( !canRestart() ) { return; } changeState( CDebugElementState.RESTARTING ); ICDILocation location = getCDITarget().createLocation( "", "main", 0 ); //$NON-NLS-1$ //$NON-NLS-2$ setInternalTemporaryBreakpoint( location ); try { getCDITarget().restart(); } catch( CDIException e ) { restoreOldState(); targetRequestFailed( e.getMessage(), e ); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/838acedf5904bfc4d10fb61c9d8a99737f7d9d8b/CDebugTarget.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7870, 1435, 1216, 4015, 503, 288, 202, 202, 430, 261, 401, 4169, 15057, 1435, 262, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 3427, 1119, 12, 385, 2829, 1046, 1119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7870, 1435, 1216, 4015, 503, 288, 202, 202, 430, 261, 401, 4169, 15057, 1435, 262, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 3427, 1119, 12, 385, 2829, 1046, 1119...
return fix; }
return fix; }
public InspectionGadgetsFix buildFix(PsiElement location) { return fix; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3c14a4501b28727698da3ce9c1f4b1d36ca90baf/UnnecessaryContinueInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/UnnecessaryContinueInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22085, 7017, 43, 361, 14665, 8585, 1361, 8585, 12, 52, 7722, 1046, 2117, 13, 288, 565, 327, 2917, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22085, 7017, 43, 361, 14665, 8585, 1361, 8585, 12, 52, 7722, 1046, 2117, 13, 288, 565, 327, 2917, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get_code()); } if ( ! channels.contains(chans[j].get_code())) { channels.addElement(chans[j].get_code()); }
for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get_code()); } if ( ! channels.contains(chans[j].get_code())) { channels.addElement(chans[j].get_code()); } } }
void addChannels(Channel[] chans) { for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get_code()); } if ( ! channels.contains(chans[j].get_code())) { channels.addElement(chans[j].get_code()); } } } // end of for (int j=0; j<chans.length; j++) }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/6f6ff640e68e51000e8536aaabf379b661b82471/ChannelChooser.java/buggy/src/edu/sc/seis/fissuresUtil/chooser/ChannelChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 527, 10585, 12, 2909, 8526, 462, 634, 13, 288, 202, 565, 364, 261, 474, 525, 33, 20, 31, 525, 32, 343, 634, 18, 2469, 31, 525, 27245, 288, 202, 202, 780, 3861, 653, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 527, 10585, 12, 2909, 8526, 462, 634, 13, 288, 202, 565, 364, 261, 474, 525, 33, 20, 31, 525, 32, 343, 634, 18, 2469, 31, 525, 27245, 288, 202, 202, 780, 3861, 653, 273, ...
this.digest = digest; digestSize = digest.getDigestSize();
this(digest, digest.getDigestSize());
public HMac( Digest digest) { this.digest = digest; digestSize = digest.getDigestSize(); }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/df4b998a6afd124088b4b4377b4aebb5d6cc080b/HMac.java/clean/core/java/src/org/bouncycastle/crypto/macs/HMac.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 670, 9990, 12, 3639, 15864, 5403, 13, 565, 288, 3639, 333, 18, 10171, 273, 5403, 31, 3639, 5403, 1225, 273, 5403, 18, 588, 9568, 1225, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 670, 9990, 12, 3639, 15864, 5403, 13, 565, 288, 3639, 333, 18, 10171, 273, 5403, 31, 3639, 5403, 1225, 273, 5403, 18, 588, 9568, 1225, 5621, 565, 289, 2, -100, -100, -100, -100, -...
if(undoPos == 0) return false;
if(undosLast == null) return -1;
public boolean undo(JEditTextArea textArea) { if(insideCompoundEdit()) throw new InternalError("Unbalanced begin/endCompoundEdit()"); if(undoPos == 0) return false; else { boolean dirty = buffer.isDirty(); Edit edit = (Edit)undos.get(--undoPos); int caret = edit.undo(); if(caret != -1) textArea.setCaretPosition(caret); return true; } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/3bc1f67dd057b99582568bdd58cb868f91f12b76/UndoManager.java/buggy/org/gjt/sp/jedit/buffer/UndoManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 15436, 12, 46, 4666, 1528, 5484, 977, 5484, 13, 202, 95, 202, 202, 430, 12, 28091, 16835, 4666, 10756, 1082, 202, 12849, 394, 3186, 668, 2932, 984, 12296, 72, 2376, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15436, 12, 46, 4666, 1528, 5484, 977, 5484, 13, 202, 95, 202, 202, 430, 12, 28091, 16835, 4666, 10756, 1082, 202, 12849, 394, 3186, 668, 2932, 984, 12296, 72, 2376, 19, ...
case 11 :
case 11:
private String printOFormat(int x) { String sx = null; if (x == Integer.MIN_VALUE) { sx = "20000000000"; } else if (x < 0) { String t = Integer.toString((~(-x - 1)) ^ Integer.MIN_VALUE, 8); switch (t.length()) { case 1 : sx = "2000000000" + t; break; case 2 : sx = "200000000" + t; break; case 3 : sx = "20000000" + t; break; case 4 : sx = "2000000" + t; break; case 5 : sx = "200000" + t; break; case 6 : sx = "20000" + t; break; case 7 : sx = "2000" + t; break; case 8 : sx = "200" + t; break; case 9 : sx = "20" + t; break; case 10 : sx = "2" + t; break; case 11 : sx = "3" + t.substring(1); break; default : // noop } } else { sx = Integer.toString(x, 8); } return printOFormat(sx); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/81a0eece47a6b5f01a9201699d7d2364fc0b93c5/PrintfFormat.java/clean/src/org/opencms/util/PrintfFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 1172, 51, 1630, 12, 474, 619, 13, 288, 5411, 514, 13280, 273, 446, 31, 5411, 309, 261, 92, 422, 2144, 18, 6236, 67, 4051, 13, 288, 7734, 13280, 273, 315, 22, 2787, 9449, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 1172, 51, 1630, 12, 474, 619, 13, 288, 5411, 514, 13280, 273, 446, 31, 5411, 309, 261, 92, 422, 2144, 18, 6236, 67, 4051, 13, 288, 7734, 13280, 273, 315, 22, 2787, 9449, 14...
final List<String> variants = new ArrayList<String>(3);
final Map<String, XmlTag> idMap = getIdMap(); if (idMap == null) return ArrayUtil.EMPTY_OBJECT_ARRAY;
public Object[] getVariants() { final List<String> variants = new ArrayList<String>(3); final XmlFile file = getFile(); if (file!=null) { processXmlElements( HtmlUtil.getRealXmlDocument(file.getDocument()).getRootTag(), new PsiElementProcessor() { public boolean execute(final PsiElement element) { final String anchorValue = getAnchorValue(element); if (anchorValue!=null) { variants.add(anchorValue); } return true; } } ); } return variants.toArray(new String[variants.size()]); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/d8ffffa406a351c3ca4bfb54c2f58b0b99354f47/AnchorReference.java/clean/source/com/intellij/xml/util/AnchorReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 8526, 336, 21165, 1435, 288, 565, 727, 1635, 32, 780, 16, 5714, 1805, 34, 612, 863, 273, 2634, 863, 5621, 309, 261, 350, 863, 422, 446, 13, 327, 27207, 18, 13625, 67, 9422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 8526, 336, 21165, 1435, 288, 565, 727, 1635, 32, 780, 16, 5714, 1805, 34, 612, 863, 273, 2634, 863, 5621, 309, 261, 350, 863, 422, 446, 13, 327, 27207, 18, 13625, 67, 9422, ...
public final Object[] getTypeInformationBlock() {
public final Object[] getTypeInformationBlock() throws VM_PragmaUninterruptible {
public final Object[] getTypeInformationBlock() { if (VM.VerifyAssertions) VM.assert(isResolved()); return typeInformationBlock; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/4bdcfd89af42d1c4725b81c48f2ebe6f7e29ed82/VM_Array.java/buggy/rvm/src/vm/classLoader/VM_Array.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 8526, 3130, 5369, 1768, 1435, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 18, 11231, 12, 291, 12793, 10663, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 8526, 3130, 5369, 1768, 1435, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 18, 11231, 12, 291, 12793, 10663, 56...
return m_colWidths.size();
return colWidths.size();
public int getNumberOfColumns() { return m_colWidths.size(); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/d9f999a04922b20d50880f4e64d09f6942dda484/TableContext.java/buggy/src/java/org/apache/fop/render/rtf/TableContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 509, 14981, 3380, 1435, 288, 4202, 327, 645, 22407, 18, 1467, 5621, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 509, 14981, 3380, 1435, 288, 4202, 327, 645, 22407, 18, 1467, 5621, 377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
boolean doIndexing, int blocksize, boolean buildIdIndex, boolean newNameTable)
boolean doIndexing, boolean buildIdIndex)
public SAXImpl(XSLTCDTMManager mgr, Source source, int dtmIdentity, DTMWSFilter whiteSpaceFilter, XMLStringFactory xstringfactory, boolean doIndexing, int blocksize, boolean buildIdIndex, boolean newNameTable) { super(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory, doIndexing, blocksize, false, buildIdIndex, newNameTable); _dtmManager = mgr; _size = blocksize; // Use a smaller size for the space stack if the blocksize is small _xmlSpaceStack = new int[blocksize <= 64 ? 4 : 64]; /* From DOMBuilder */ _xmlSpaceStack[0] = DTMDefaultBase.ROOTNODE; // If the input source is DOMSource, set the _document field and // create the node2Ids table. if (source instanceof DOMSource) { _hasDOMSource = true; DOMSource domsrc = (DOMSource)source; Node node = domsrc.getNode(); if (node instanceof Document) { _document = (Document)node; } else { _document = node.getOwnerDocument(); } _node2Ids = new Hashtable(); } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/539b6733e4bdad15a2e40965400b816b385357b3/SAXImpl.java/buggy/src/org/apache/xalan/xsltc/dom/SAXImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10168, 2828, 12, 60, 4559, 15988, 9081, 49, 1318, 13333, 16, 4998, 1084, 16, 10402, 509, 31281, 4334, 16, 19854, 2651, 1586, 9578, 3819, 1586, 16, 10402, 3167, 780, 1733, 619, 1080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10168, 2828, 12, 60, 4559, 15988, 9081, 49, 1318, 13333, 16, 4998, 1084, 16, 10402, 509, 31281, 4334, 16, 19854, 2651, 1586, 9578, 3819, 1586, 16, 10402, 3167, 780, 1733, 619, 1080, ...
throw new PDOMNotImplementedError();
return getBit(getByte(record + ANNOTATIONS), PDOMCAnnotation.REGISTER_OFFSET);
public boolean isRegister() throws DOMException { throw new PDOMNotImplementedError(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4c2b2120e49bda069e08a1cb69fb67723aedcb28/PDOMCVariable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/c/PDOMCVariable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 3996, 1435, 1216, 4703, 503, 288, 202, 202, 12849, 394, 453, 8168, 1248, 8644, 668, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 3996, 1435, 1216, 4703, 503, 288, 202, 202, 12849, 394, 453, 8168, 1248, 8644, 668, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return this._scanList;
return this.scanList;
public ArrayList getScanList () { return this._scanList; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/ac1343f0aa75cbb3305864193ef49cda07c46fe4/AbstractJettyMojo.java/buggy/modules/maven-plugin/src/main/java/org/mortbay/jetty/plugin/AbstractJettyMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2407, 1322, 4169, 682, 1832, 565, 288, 3639, 327, 333, 18, 9871, 682, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2407, 1322, 4169, 682, 1832, 565, 288, 3639, 327, 333, 18, 9871, 682, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fCurrentNode.appendChild(textNode);
fCurrentNode.appendChild (textNode);
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException { if (!fIncludeIgnorableWhitespace || fFilterReject) { return; } if (!fDeferNodeExpansion) { Node child = fCurrentNode.getLastChild(); if (child != null && child.getNodeType() == Node.TEXT_NODE) { Text textNode = (Text)child; textNode.appendData(text.toString()); } else { Text textNode = fDocument.createTextNode(text.toString()); if (fDocumentImpl != null) { TextImpl textNodeImpl = (TextImpl)textNode; textNodeImpl.setIgnorableWhitespace(true); } fCurrentNode.appendChild(textNode); } } else { // The Text normalization is taken care of within the DOM in the // deferred case. int txt = fDeferredDocumentImpl. createDeferredTextNode(text.toString(), true); fDeferredDocumentImpl.appendChild(fCurrentNodeIndex, txt); } } // ignorableWhitespace(XMLString)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 4201, 780, 977, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 16051, 74, 8752, 45, 1600, 15514, 9431, 747, 284, 1586, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 4201, 780, 977, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 16051, 74, 8752, 45, 1600, 15514, 9431, 747, 284, 1586, 2...
generator = new AdapterStateful(container, orb, poa, tieLoader);
generator = new AdapterStateful(container, orb, poa, tieLoader, securityPolicy);
public void start(ORB orb, POA poa, NamingContextExt initialContext, TieLoader tieLoader) throws CORBAException { switch (container.getProxyInfo().getComponentType()) { case EJBComponentType.STATELESS: generator = new AdapterStateless(container, orb, poa, tieLoader); break; case EJBComponentType.STATEFUL: generator = new AdapterStateful(container, orb, poa, tieLoader); break; case EJBComponentType.BMP_ENTITY: case EJBComponentType.CMP_ENTITY: generator = new AdapterEntity(container, orb, poa, tieLoader); break; default: throw new CORBAException("CORBA Adapter does not handle MDB containers"); } adapters.put(container.getContainerID(), generator); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/e40d097c5f7cc24e1f4f8103e4665bca65ff0522/AdapterWrapper.java/buggy/openejb2/modules/core/src/java/org/openejb/corba/AdapterWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 12, 916, 38, 16823, 16, 13803, 37, 8275, 69, 16, 18884, 1042, 2482, 2172, 1042, 16, 399, 1385, 2886, 25318, 2886, 13, 1216, 28359, 12536, 503, 288, 3639, 1620, 261, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 12, 916, 38, 16823, 16, 13803, 37, 8275, 69, 16, 18884, 1042, 2482, 2172, 1042, 16, 399, 1385, 2886, 25318, 2886, 13, 1216, 28359, 12536, 503, 288, 3639, 1620, 261, 3782, ...
if (primitive != 0) {
if (primitive != 0) {
protected void readDeclaredFields(ValueType valueType, Object value) { int n = valueType.fields.length; for (int f = 0; f < n; f++) { ValueTypeField field = valueType.fields[f]; int primitive = field.primitive; if (primitive != 0) { readPrimitive(primitive, field, value); } else { field.set(value, readObject(field.type, false)); } } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/ObjectInputStream.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/ObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 855, 18888, 2314, 12, 17930, 13692, 16, 1033, 460, 13, 288, 3639, 509, 290, 273, 13692, 18, 2821, 18, 2469, 31, 3639, 364, 261, 474, 284, 273, 374, 31, 284, 411, 290, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 855, 18888, 2314, 12, 17930, 13692, 16, 1033, 460, 13, 288, 3639, 509, 290, 273, 13692, 18, 2821, 18, 2469, 31, 3639, 364, 261, 474, 284, 273, 374, 31, 284, 411, 290, 31, 2...
temp= current.getChildCollection(args[1]);
temp = current.getChildCollection(args[1]);
protected boolean process(String line) { if (startGUI) frame.setPath(path); String args[]; if (line.startsWith("find")) { args= new String[2]; args[0]= "find"; args[1]= line.substring(5); } else { StreamTokenizer tok = new StreamTokenizer(new StringReader(line)); tok.resetSyntax(); tok.wordChars(0x21, 0x7FFF); tok.quoteChar('"'); tok.whitespaceChars(0x20, 0x20); List argList = new ArrayList(3); int i= 0; int token; try { while ((token = tok.nextToken()) != StreamTokenizer.TT_EOF ) { if(token == StreamTokenizer.TT_WORD || token == '"') { argList.add(tok.sval); } } } catch (IOException e) { System.err.println("Could not parse command line."); return true; } args = new String[argList.size()]; argList.toArray(args); } String newPath= path; try { if (args[0].equalsIgnoreCase("ls")) { // list collection contents if (properties.getProperty("permissions").equals("true")) { for (int i= 0; i < resources.length; i++) messageln(resources[i]); } else { StringBuffer buf; for (int i= 0; i < resources.length; i++) { buf= new StringBuffer(); int k= 0; for (int j= 0; i < resources.length && j < 5; i++, j++) { buf.append(resources[i] + '\t'); k= j; } if (k == 4 && i < resources.length) i--; messageln(buf.toString()); } } } else if (args[0].equalsIgnoreCase("cd")) { // change current collection completitions.clear(); String tempPath= newPath; Collection temp; if (args.length < 2 || args[1] == null) { tempPath= "/db"; temp = DatabaseManager.getCollection( properties.getProperty("uri") + "/db", properties.getProperty("user"), properties.getProperty("password")); } else { if (args[1].equals("..")) { tempPath= newPath.equals("/db") ? "/db" : tempPath.substring(0, newPath.lastIndexOf("/")); if (tempPath.length() == 0) tempPath= "/db"; } else if (args[1].startsWith("/")) tempPath= args[1]; else tempPath= tempPath + '/' + args[1]; temp= DatabaseManager.getCollection( properties.getProperty("uri") + tempPath, properties.getProperty("user"), properties.getProperty("password")); } if (temp != null) { current= temp; newPath= tempPath; if (startGUI) frame.setPath(newPath); } else { messageln("no such collection."); } getResources(); } else if (args[0].equalsIgnoreCase("get")) { if (args.length < 2) { System.err.println("wrong number of arguments."); return true; } Resource res= retrieve(args[1]); // display document if (res != null) { String data; if (res.getResourceType().equals("XMLResource")) data= (String) res.getContent(); else data= new String((byte[]) res.getContent()); if (startGUI) { frame.setEditable(false); frame.display(data); frame.setEditable(true); } else { String content= data; more(content); } } return true; } else if (args[0].equalsIgnoreCase("find")) { // search if (args.length < 2) { messageln("no query argument found."); return true; } messageln(args[1]); long start= System.currentTimeMillis(); result= find(args[1]); if (result == null) messageln("nothing found"); else messageln( "found " + result.getSize() + " hits in " + (System.currentTimeMillis() - start) + "ms."); nextInSet= 1; } else if (args[0].equalsIgnoreCase("show")) { // show search results if (result == null) { messageln("no result set."); return true; } try { int start= nextInSet; int count= 1; if (args.length > 1) start= Integer.parseInt(args[1]); if (args.length > 2) count= Integer.parseInt(args[2]); final int s= (int) result.getSize(); if (start < 1 || start > s) { messageln("start offset out of range"); return true; } --start; if (start + count > s) count= s - start; nextInSet= start + count + 1; for (int i= start; i < start + count; i++) { Resource r= result.getResource((long) i); if (startGUI) frame.display((String) r.getContent()); else more((String) r.getContent()); } messageln( "displayed items " + (start + 1) + " to " + (start + count) + " of " + result.getSize()); } catch (NumberFormatException nfe) { messageln("wrong argument"); return true; } } else if (args[0].equalsIgnoreCase("mkcol")) { // create collection if (args.length < 2) { messageln("missing argument."); return true; } CollectionManagementService mgtService= (CollectionManagementService) current.getService( "CollectionManagementService", "1.0"); Collection newCollection= mgtService.createCollection(args[1]); if (newCollection == null) messageln("could not create collection."); else messageln("created collection."); // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("put")) { // put a document or directory into the database if (args.length < 2) { messageln("missing argument."); return true; } boolean r= parse(args[1]); getResources(); return r; } else if (args[0].equalsIgnoreCase("blob")) { // put a document or directory into the database if (args.length < 2) { messageln("missing argument."); return true; } storeBinary(args[1]); getResources(); } else if (args[0].equalsIgnoreCase("rm")) { // remove document if (args.length < 2) { messageln("missing argument."); return true; } remove(args[1]); // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("rmcol")) { // remove collection if (args.length < 2) { messageln("wrong argument count."); return true; } rmcol(args[1]); // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("adduser")) { if (args.length < 2) { System.err.println("Usage: adduser name"); return true; } if (startGUI) { messageln("command not supported in GUI mode. Please use the \"Edit users\" menu option."); return true; } try { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); String p1; String p2; while (true) { p1= Readline.readline("password: "); p2= Readline.readline("re-enter password: "); if (p1.equals(p2)) break; else System.out.println( "\nentered passwords differ. Try again..."); } String home= Readline.readline("home collection [none]: "); User user= new User(args[1], p1); if (home != null && home.length() > 0) user.setHome(home); String groups= Readline.readline("enter groups: "); StringTokenizer tok= new StringTokenizer(groups, " ,"); String group; while (tok.hasMoreTokens()) { group= tok.nextToken(); if (group.length() > 0) user.addGroup(group); } mgtService.addUser(user); System.out.println("user " + user + " created."); } catch (Exception e) { System.out.println("ERROR: " + e.getMessage()); e.printStackTrace(); } } else if (args[0].equalsIgnoreCase("users")) { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); User users[]= mgtService.getUsers(); System.out.println("User\t\tGroups"); System.out.println("-----------------------------------------"); for (int i= 0; i < users.length; i++) { System.out.print(users[i].getName() + "\t\t"); for (Iterator j= users[i].getGroups(); j.hasNext();) { System.out.print(j.next()); if (j.hasNext()) System.out.print(", "); } System.out.println(); } } else if (args[0].equalsIgnoreCase("passwd")) { if (startGUI) { messageln("command not supported in GUI mode. Please use the \"Edit users\" menu option."); return true; } if (args.length < 2) { System.out.println("Usage: passwd username"); return true; } try { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); User user= mgtService.getUser(args[1]); if (user == null) { System.out.println("no such user."); return true; } String p1; String p2; while (true) { p1= Readline.readline("password: "); p2= Readline.readline("re-enter password: "); if (p1.equals(p2)) break; else System.out.println( "\nentered passwords differ. Try again..."); } user.setPassword(p1); mgtService.updateUser(user); properties.setProperty("password", p1); } catch (Exception e) { System.err.println("ERROR: " + e.getMessage()); } } else if (args[0].equalsIgnoreCase("chmod")) { if (args.length < 2) { System.out.println("Usage: chmod [resource] mode"); return true; } Collection temp= null; if (args.length == 3) { System.out.println("trying collection: " + args[1]); temp= current.getChildCollection(args[1]); if (temp == null) { System.out.println("\ntrying resource: " + args[1]); Resource r= current.getResource(args[1]); if (r != null) { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); mgtService.chmod(r, args[2]); } else System.err.println( "Resource " + args[1] + " not found."); } else { UserManagementService mgtService= (UserManagementService) temp.getService( "UserManagementService", "1.0"); mgtService.chmod(args[2]); } } else { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); mgtService.chmod(args[1]); } // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("chown")) { if (args.length < 3) { System.out.println( "Usage: chown username group [resource]"); return true; } Collection temp; if (args.length == 4) temp= current.getChildCollection(args[3]); else temp= current; if (temp != null) { UserManagementService mgtService= (UserManagementService) temp.getService( "UserManagementService", "1.0"); User u= mgtService.getUser(args[1]); if (u == null) { System.out.println("unknown user"); return true; } mgtService.chown(u, args[2]); System.out.println("owner changed."); getResources(); return true; } Resource res= current.getResource(args[3]); if (res != null) { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); User u= mgtService.getUser(args[1]); if (u == null) { System.out.println("unknown user"); return true; } mgtService.chown(res, u, args[2]); getResources(); return true; } System.err.println("Resource " + args[3] + " not found."); } else if (args[0].equalsIgnoreCase("elements")) { System.out.println( "Element occurrences in collection " + current.getName()); System.out.println( "--------------------------------------------" + "-----------"); IndexQueryService service= (IndexQueryService) current.getService( "IndexQueryService", "1.0"); Occurrences[] elements= service.getIndexedElements(true); for (int i= 0; i < elements.length; i++) { System.out.println( formatString( elements[i].getTerm(), Integer.toString(elements[i].getOccurrences()), 50)); } return true; } else if (args[0].equalsIgnoreCase("terms")) { if (args.length < 3) { System.out.println( "Usage: terms sequence-start sequence-end"); return true; } IndexQueryService service= (IndexQueryService) current.getService( "IndexQueryService", "1.0"); Occurrences[] terms= service.scanIndexTerms(args[1], args[2], true); System.out.println( "Element occurrences in collection " + current.getName()); System.out.println( "--------------------------------------------" + "-----------"); for (int i= 0; i < terms.length; i++) { System.out.println( formatString( terms[i].getTerm(), Integer.toString(terms[i].getOccurrences()), 50)); } } else if (args[0].equalsIgnoreCase("xupdate")) { if (startGUI) { messageln("command not supported in GUI mode."); return true; } String lastLine, command= ""; try { while (true) { lastLine= Readline.readline("| "); if (lastLine == null || lastLine.length() == 0) break; command += lastLine; } } catch (EOFException e) { } catch (IOException e) { } String xupdate= "<xu:modifications version=\"1.0\" " + "xmlns:xu=\"http://www.xmldb.org/xupdate\">" + command + "</xu:modifications>"; XUpdateQueryService service= (XUpdateQueryService) current.getService( "XUpdateQueryService", "1.0"); long mods= service.update(xupdate); System.out.println(mods + " modifications processed."); } else if (args[0].equalsIgnoreCase("map")) { StringTokenizer tok= new StringTokenizer(args[1], "= "); String prefix; if (args[1].startsWith("=")) prefix= ""; else { if (tok.countTokens() < 2) { messageln("please specify a namespace/prefix mapping as: prefix=namespaceURI"); return true; } prefix= tok.nextToken(); } String uri= tok.nextToken(); namespaceMappings.put(prefix, uri); } else if (args[0].equalsIgnoreCase("set")) { if (args.length == 1) properties.list(System.out); else try { StringTokenizer tok= new StringTokenizer(args[1], "= "); if (tok.countTokens() < 2) { System.err.println( "please specify a key=value pair"); return true; } String key= tok.nextToken(); String val= tok.nextToken(); System.out.println(key + " = " + val); properties.setProperty(key, val); getResources(); } catch (Exception e) { System.err.println("Exception: " + e.getMessage()); } } else if (args[0].equalsIgnoreCase("shutdown")) { DatabaseInstanceManager mgr= (DatabaseInstanceManager) current.getService( "DatabaseInstanceManager", "1.0"); if (mgr == null) { System.err.println("service is not available"); return true; } mgr.shutdown(); return true; } else if (args[0].equalsIgnoreCase("help") || args[0].equals("?")) displayHelp(); else if (args[0].equalsIgnoreCase("quit")) { return false; } else { System.err.println("unknown command"); return true; } path= newPath; return true; } catch (XMLDBException xde) { xde.printStackTrace(); if (startGUI) ClientFrame.showErrorMessage( "XMLDBException: " + xde.getMessage(), xde); else System.err.println( "XMLDBException: " + xde.getMessage() + " [" + xde.errorCode + "]"); return true; } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/InteractiveClient.java/clean/src/org/exist/client/InteractiveClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 1207, 12, 780, 980, 13, 288, 202, 202, 430, 261, 1937, 43, 5370, 13, 1082, 202, 3789, 18, 542, 743, 12, 803, 1769, 202, 202, 780, 833, 8526, 31, 202, 202, 430, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 1207, 12, 780, 980, 13, 288, 202, 202, 430, 261, 1937, 43, 5370, 13, 1082, 202, 3789, 18, 542, 743, 12, 803, 1769, 202, 202, 780, 833, 8526, 31, 202, 202, 430, 261, ...
public ForcedChoiceOptionComponent(ForcedChoiceOption option, String labelText, Frame parent, String description) { this(option, labelText, parent); setDescription(description);
public ForcedChoiceOptionComponent(ForcedChoiceOption option, String labelText, Frame parent) { super(option, labelText, parent); Iterator<String> values = option.getLegalValues(); _comboBox = new JComboBox(); while(values.hasNext()) { String currValue = values.next(); _comboBox.addItem(currValue); } resetToCurrent(DrJava.getConfig().getSetting(_option));
public ForcedChoiceOptionComponent(ForcedChoiceOption option, String labelText, Frame parent, String description) { this(option, labelText, parent); setDescription(description); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/1e64dff50a32582d182c950c323629608db6f054/ForcedChoiceOptionComponent.java/buggy/drjava/src/edu/rice/cs/drjava/ui/config/ForcedChoiceOptionComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2457, 3263, 10538, 1895, 1841, 12, 1290, 3263, 10538, 1895, 1456, 16, 514, 1433, 1528, 16, 19694, 8058, 982, 16, 514, 2477, 13, 288, 565, 333, 12, 3482, 16, 1433, 1528, 16, 982, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2457, 3263, 10538, 1895, 1841, 12, 1290, 3263, 10538, 1895, 1456, 16, 514, 1433, 1528, 16, 19694, 8058, 982, 16, 514, 2477, 13, 288, 565, 333, 12, 3482, 16, 1433, 1528, 16, 982, 1...
if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); }
if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); }
public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? RubyId id = getRuby().toId(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } RubyObject value = (RubyObject) getInstanceVariables().remove(id); if (value != null) { return value; } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 1206, 39, 1401, 12, 54, 10340, 921, 508, 13, 288, 368, 24668, 5498, 692, 202, 202, 54, 10340, 548, 612, 273, 4170, 10340, 7675, 869, 548, 12, 529, 1769, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 1206, 39, 1401, 12, 54, 10340, 921, 508, 13, 288, 368, 24668, 5498, 692, 202, 202, 54, 10340, 548, 612, 273, 4170, 10340, 7675, 869, 548, 12, 529, 1769, 202, 202, ...
public static OPT_ClassSummary findClassSummary (VM_Class c) {
public static synchronized OPT_ClassSummary findClassSummary (VM_Class c) {
public static OPT_ClassSummary findClassSummary (VM_Class c) { return (OPT_ClassSummary)hash.get(c); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/35dd0af985b403ef619d4935e2c1fd4be307dd02/OPT_SummaryDatabase.java/clean/rvm/src/vm/compilers/optimizing/optimizations/ipa/summaries/OPT_SummaryDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3852, 16456, 67, 797, 4733, 1104, 797, 4733, 261, 7397, 67, 797, 276, 13, 288, 565, 327, 225, 261, 15620, 67, 797, 4733, 13, 2816, 18, 588, 12, 71, 1769, 225, 289, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3852, 16456, 67, 797, 4733, 1104, 797, 4733, 261, 7397, 67, 797, 276, 13, 288, 565, 327, 225, 261, 15620, 67, 797, 4733, 13, 2816, 18, 588, 12, 71, 1769, 225, 289, 2, -100,...
Collator coll = Collator.getInstance(Locale.getDefault());
public int compare(Object a, Object b) { Collator coll = Collator.getInstance(Locale.getDefault()); IPluginDescriptor d1, d2; String provider1, provider2, pluginId1, pluginId2; d1 = (IPluginDescriptor) a; provider1 = d1.getProviderName(); pluginId1 = d1.getUniqueIdentifier(); d2 = (IPluginDescriptor) b; provider2 = d2.getProviderName(); pluginId2 = d2.getUniqueIdentifier(); if (provider1.equals(provider2)) return coll.compare(pluginId1, pluginId2); else return coll.compare(provider1, provider2); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c1964bab6daa6dcfd74a9622860101368c279ada/AboutPluginsDialog.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutPluginsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 509, 3400, 12, 921, 279, 16, 1033, 324, 13, 288, 6862, 202, 13535, 639, 4508, 273, 17596, 639, 18, 588, 1442, 12, 3916, 18, 588, 1868, 10663, 6862, 202, 45, 3773, 3187, 302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 509, 3400, 12, 921, 279, 16, 1033, 324, 13, 288, 6862, 202, 13535, 639, 4508, 273, 17596, 639, 18, 588, 1442, 12, 3916, 18, 588, 1868, 10663, 6862, 202, 45, 3773, 3187, 302, ...
if(log.isInfoEnabled()) log.info("max_bytes has been exceeded (max_bytes=" + max_bytes +
if(log.isDebugEnabled()) log.debug("max_bytes has been exceeded (max_bytes=" + max_bytes +
public void up(Event evt) { Message msg; StableHeader hdr; Header obj; int type=evt.getType(); switch(evt.getType()) { case Event.MSG: msg=(Message)evt.getArg(); if(max_bytes > 0) { // message counting is enabled long size=Math.max(msg.getLength(), 24); num_bytes_received+=size; if(log.isTraceEnabled()) log.trace("received message of " + size + " bytes, total bytes received=" + num_bytes_received); if(num_bytes_received >= max_bytes) { if(log.isInfoEnabled()) log.info("max_bytes has been exceeded (max_bytes=" + max_bytes + ", number of bytes received=" + num_bytes_received + "): sending STABLE message"); new Thread() { public void run() { initialize(); sendStableMessage(); } }.start(); num_bytes_received=0; } } obj=msg.getHeader(getName()); if(obj == null || !(obj instanceof StableHeader)) break; hdr=(StableHeader)msg.removeHeader(getName()); switch(hdr.type) { case StableHeader.STABLE_GOSSIP: handleStableGossip(msg.getSrc(), hdr.digest); break; case StableHeader.STABILITY: handleStabilityMessage(hdr.digest); break; default: if(log.isErrorEnabled()) log.error("StableHeader type " + hdr.type + " not known"); } return; // don't pass STABLE or STABILITY messages up the stack case Event.SET_LOCAL_ADDRESS: local_addr=(Address)evt.getArg(); break; } passUp(evt); if(desired_avg_gossip > 0) { if(type == Event.VIEW_CHANGE || type == Event.MSG) startStableTask(); // only start if not yet running } }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/STABLE.java/clean/src/org/jgroups/protocols/pbcast/STABLE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 731, 12, 1133, 6324, 13, 288, 3639, 2350, 1234, 31, 3639, 934, 429, 1864, 7723, 31, 3639, 4304, 1081, 31, 3639, 509, 618, 33, 73, 11734, 18, 588, 559, 5621, 3639, 1620, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 731, 12, 1133, 6324, 13, 288, 3639, 2350, 1234, 31, 3639, 934, 429, 1864, 7723, 31, 3639, 4304, 1081, 31, 3639, 509, 618, 33, 73, 11734, 18, 588, 559, 5621, 3639, 1620, 12, ...
if (EOFCHAR == myChar) {
if (isEndOfFile()) {
private Astro tag() throws IOException, SyntaxException { while (true) { if ('<' == myChar) { do { if (myQuasiFlag && ('$' == myChar || '@' == myChar)) { if (peekChar(myChar)) { //If we're quasi-parsing, then a double '$' or '@' //in a tag's uri is included as a single '$' or //'@'. We collapse doubles to singles separately //below. nextChar(); nextChar(); } else { //If we're quasi-parsing, then a single '$' or '@' //terminates the tag without being included. break; } } else { //If we're not quasi-parsing, or the next uric //character isn't a '$' or '@', then it's just //included in the tag. nextChar(); } if (EOFCHAR == myChar) { needMore("end of input in middle of tag"); } } while (URIKit.isURIC(myChar)); T.require('>' == myChar, "missing '>' inside tag"); nextChar(); } else if ('"' == myChar) { // XXX When we do implement this, we need to fix the // normalizations of '\\' and '|' below so that they operate // only within uris and not quoted strings syntaxError("XXX Not yet implemented: quoted strings in tags"); return null; // make compiler happy } else { if ('.' == myChar) { nextChar(); } T.require(isSegStart(myChar), "tag segment expected: '" + myChar + "'"); do { if (myQuasiFlag && '$' == myChar) { if (peekChar('$')) { //If we're quasi-parsing, then a double '$' in a //tag is included as a single '$'. We collapse //doubles to singles separately below. nextChar(); nextChar(); } else { //If we're quasi-parsing, then a single '$' //terminates the tag without being included. break; } } else { //If we're not quasi-parsing, or the next //segStart/segPart character isn't a '$', then it's //just included in the tag. nextChar(); } } while (isSegPart(myChar)); } if (':' == myChar && peekChar(':')) { nextChar(); nextChar(); } else { break; } } Twine source = endToken(); SourceSpan optSpan = source.getOptSpan(); if (myQuasiFlag) { source = source.replaceAll("$$", "$").replaceAll("@@", "@"); } //The term grammar has no keywords, so all apparent tags are //actual tags //We open code the normalization here so that if URIKit.normalize/1 //is upgraded to do '%' processing, we don't apply it naively, since //we'd then need to apply it only within uric* strings. // XXX Bug to be: When we do accept quoted strings (see above), then // the following normalization needs to be changed to apply only // within uris and not quoted strings. return composite(TermParser.Tag, source.bare().replace('\\', '/').replace('|', ':'), optSpan); }
48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/af71dd5e60fa6fae852742974376b299a828a3d5/TermLexer.java/clean/src/jsrc/org/quasiliteral/term/TermLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16614, 303, 1047, 1435, 1216, 1860, 16, 11517, 503, 288, 3639, 1323, 261, 3767, 13, 288, 5411, 309, 7707, 32, 11, 422, 3399, 2156, 13, 288, 7734, 741, 288, 10792, 309, 261, 4811, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16614, 303, 1047, 1435, 1216, 1860, 16, 11517, 503, 288, 3639, 1323, 261, 3767, 13, 288, 5411, 309, 7707, 32, 11, 422, 3399, 2156, 13, 288, 7734, 741, 288, 10792, 309, 261, 4811, ...
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d = null; AttributeDescr a = null; d = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus ) int alt18=6; switch ( input.LA(1) ) { case 42: alt18=1; break; case 43: alt18=2; break; case 46: alt18=3; break; case 47: alt18=4; break; case 45: alt18=5; break; case 44: alt18=6; break; default: NoViableAltException nvae = new NoViableAltException("507:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= activation_group | a= auto_focus );", 18, 0, input); throw nvae; } switch (alt18) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:512:4: a= salience { pushFollow(FOLLOW_salience_in_rule_attribute789); a=salience(); _fsp--; d = a; } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:513:5: a= no_loop { pushFollow(FOLLOW_no_loop_in_rule_attribute799); a=no_loop(); _fsp--; d = a; } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:514:5: a= agenda_group { pushFollow(FOLLOW_agenda_group_in_rule_attribute810); a=agenda_group(); _fsp--; d = a; } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:515:5: a= duration { pushFollow(FOLLOW_duration_in_rule_attribute823); a=duration(); _fsp--; d = a; } break; case 5 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:516:5: a= activation_group { pushFollow(FOLLOW_activation_group_in_rule_attribute837); a=activation_group(); _fsp--; d = a; } break; case 6 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:517:5: a= auto_focus { pushFollow(FOLLOW_auto_focus_in_rule_attribute848); a=auto_focus(); _fsp--; d = a; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 1720, 67, 4589, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 273, 446, 31, 3639, 3601, 16198, 279, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 1720, 67, 4589, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 273, 446, 31, 3639, 3601, 16198, 279, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 7...
case 7:
case 7: /* reduce AAstrbracestringentry4StringEntry */
public Start parse() throws ParserException, LexerException, IOException { push(0, null); List ign = null; while(true) { while(index(lexer.peek()) == -1) { if(ign == null) { ign = new TypedLinkedList(NodeCast.instance); } ign.add(lexer.next()); } if(ign != null) { ignoredTokens.setIn(lexer.peek(), ign); ign = null; } last_pos = lexer.peek().getPos(); last_line = lexer.peek().getLine(); last_token = lexer.peek(); int index = index(lexer.peek()); action[0] = actionTable[state()][0][1]; action[1] = actionTable[state()][0][2]; int low = 1; int high = actionTable[state()].length - 1; while(low <= high) { int middle = (low + high) / 2; if(index < actionTable[state()][middle][0]) { high = middle - 1; } else if(index > actionTable[state()][middle][0]) { low = middle + 1; } else { action[0] = actionTable[state()][middle][1]; action[1] = actionTable[state()][middle][2]; break; } } switch(action[0]) { case SHIFT: { ArrayList list = new ArrayList(); list.add(lexer.next()); push(action[1], list); last_shift = action[1]; } break; case REDUCE: switch(action[1]) { case 0: { ArrayList list = new0(); push(goTo(0), list); } break; case 1: { ArrayList list = new1(); push(goTo(0), list); } break; case 2: { ArrayList list = new2(); push(goTo(0), list); } break; case 3: { ArrayList list = new3(); push(goTo(0), list); } break; case 4: { ArrayList list = new4(); push(goTo(1), list); } break; case 5: { ArrayList list = new5(); push(goTo(1), list); } break; case 6: { ArrayList list = new6(); push(goTo(1), list); } break; case 7: { ArrayList list = new7(); push(goTo(1), list); } break; case 8: { ArrayList list = new8(); push(goTo(1), list); } break; case 9: { ArrayList list = new9(); push(goTo(1), list); } break; case 10: { ArrayList list = new10(); push(goTo(1), list); } break; case 11: { ArrayList list = new11(); push(goTo(1), list); } break; case 12: { ArrayList list = new12(); push(goTo(2), list); } break; case 13: { ArrayList list = new13(); push(goTo(2), list); } break; case 14: { ArrayList list = new14(); push(goTo(2), list); } break; case 15: { ArrayList list = new15(); push(goTo(2), list); } break; case 16: { ArrayList list = new16(); push(goTo(3), list); } break; case 17: { ArrayList list = new17(); push(goTo(4), list); } break; case 18: { ArrayList list = new18(); push(goTo(4), list); } break; case 19: { ArrayList list = new19(); push(goTo(5), list); } break; case 20: { ArrayList list = new20(); push(goTo(5), list); } break; case 21: { ArrayList list = new21(); push(goTo(5), list); } break; case 22: { ArrayList list = new22(); push(goTo(5), list); } break; case 23: { ArrayList list = new23(); push(goTo(5), list); } break; case 24: { ArrayList list = new24(); push(goTo(5), list); } break; case 25: { ArrayList list = new25(); push(goTo(6), list); } break; case 26: { ArrayList list = new26(); push(goTo(7), list); } break; case 27: { ArrayList list = new27(); push(goTo(7), list); } break; case 28: { ArrayList list = new28(); push(goTo(8), list); } break; case 29: { ArrayList list = new29(); push(goTo(8), list); } break; case 30: { ArrayList list = new30(); push(goTo(9), list); } break; case 31: { ArrayList list = new31(); push(goTo(9), list); } break; case 32: { ArrayList list = new32(); push(goTo(10), list); } break; case 33: { ArrayList list = new33(); push(goTo(10), list); } break; } break; case ACCEPT: { EOF node2 = (EOF) lexer.next(); PBibtex node1 = (PBibtex) ((ArrayList)pop()).get(0); Start node = new Start(node1, node2); return node; } case ERROR: throw new ParserException(last_token, "[" + last_line + "," + last_pos + "] " + errorMessages[errors[action[1]]]); } } }
48893 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48893/9ba080b0c901d335db2cb543a5bc7d76ff474439/Parser.java/buggy/source/net/sourceforge/texlipse/bibparser/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3603, 1109, 1435, 1216, 27990, 16, 14234, 503, 16, 1860, 565, 288, 3639, 1817, 12, 20, 16, 446, 1769, 3639, 987, 9750, 273, 446, 31, 3639, 1323, 12, 3767, 13, 3639, 288, 5411, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3603, 1109, 1435, 1216, 27990, 16, 14234, 503, 16, 1860, 565, 288, 3639, 1817, 12, 20, 16, 446, 1769, 3639, 987, 9750, 273, 446, 31, 3639, 1323, 12, 3767, 13, 3639, 288, 5411, 132...
DataObject link = ssn.create("linkTest.ArticleImageLink");
DataObject link = ssn.create(getModel() + ".ArticleImageLink");
public void testArticleImageLink() { Session ssn = SessionManager.getSession(); DataObject article = ssn.create("linkTest.Article"); article.set("id", BigInteger.ZERO); String text = "This is the article text."; article.set("text", text); for (int i = 0; i < 10; i++) { DataObject image = ssn.create("linkTest.Image"); image.set("id", new BigInteger(Integer.toString(i))); byte[] bytes = "This is the image.".getBytes(); image.set("bytes", bytes); image.save(); } DataAssociation links = (DataAssociation) article.get("images"); DataCollection images = ssn.retrieve("linkTest.Image"); while (images.next()) { DataObject image = images.getDataObject(); DataObject link = ssn.create("linkTest.ArticleImageLink"); link.set("article", article); link.set("image", image); link.set("caption", "The caption for: " + image.getOID()); links.add(link); } article.save(); DataAssociationCursor cursor = links.cursor(); while (cursor.next()) { s_log.info(cursor.get("caption")); s_log.info(cursor.get("image")); } DataCollection aiLinks = ssn.retrieve("linkTest.ArticleImageLink"); aiLinks.addEqualsFilter("image.id", new BigDecimal(5)); while (aiLinks.next()) { s_log.info(aiLinks.get("article")); s_log.info(aiLinks.get("image")); s_log.info(aiLinks.get("caption")); } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/799dfe3a9fd3c8e18e45ff692d04fd9e643531e4/LinkTest.java/clean/archive/packaging/test/src/com/arsdigita/persistence/LinkTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7880, 2040, 2098, 1435, 288, 3639, 3877, 5202, 82, 273, 3877, 1318, 18, 588, 2157, 5621, 3639, 18914, 7559, 273, 5202, 82, 18, 2640, 2932, 1232, 4709, 18, 7880, 8863, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7880, 2040, 2098, 1435, 288, 3639, 3877, 5202, 82, 273, 3877, 1318, 18, 588, 2157, 5621, 3639, 18914, 7559, 273, 5202, 82, 18, 2640, 2932, 1232, 4709, 18, 7880, 8863, 363...
public org.quickfix.field.LegSide getLegSide() throws FieldNotFound { org.quickfix.field.LegSide value = new org.quickfix.field.LegSide();
public quickfix.field.LegSide getLegSide() throws FieldNotFound { quickfix.field.LegSide value = new quickfix.field.LegSide();
public org.quickfix.field.LegSide getLegSide() throws FieldNotFound { org.quickfix.field.LegSide value = new org.quickfix.field.LegSide(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8895, 336, 8329, 8895, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8895, 460, 273, 394, 2358, 18, 19525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8895, 336, 8329, 8895, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 8895, 460, 273, 394, 2358, 18, 19525, ...
return RubyString.newString(runtime,
return getRuntime().newString(
public RubyString to_s() { return RubyString.newString(runtime, value == null ? "null" : value.toString()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaObject.java/clean/src/org/jruby/javasupport/JavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 327, 18814, 7675, 2704, 780, 12, 5411, 460, 422, 446, 692, 315, 2011, 6, 294, 460, 18, 10492, 10663, 565, 289, 2, 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, 0, 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, 780, 358, 67, 87, 1435, 288, 3639, 327, 18814, 7675, 2704, 780, 12, 5411, 460, 422, 446, 692, 315, 2011, 6, 294, 460, 18, 10492, 10663, 565, 289, 2, -100, -100, -100, -100,...
if(statement instanceof PsiDeclarationStatement) { addDeclarations((PsiDeclarationStatement)statement, out); } else if(statement instanceof PsiBlockStatement) {
if(statement instanceof PsiDeclarationStatement){ addDeclarations((PsiDeclarationStatement) statement, out); } else if(statement instanceof PsiBlockStatement){
private static Set<String> calculateTopLevelDeclarations(PsiStatement statement){ final Set<String> out = new HashSet<String>(); if(statement instanceof PsiDeclarationStatement) { addDeclarations((PsiDeclarationStatement)statement, out); } else if(statement instanceof PsiBlockStatement) { final PsiBlockStatement blockStatement = (PsiBlockStatement) statement; final PsiCodeBlock block = blockStatement.getCodeBlock(); final PsiStatement[] statements = block.getStatements(); for(PsiStatement statement1 : statements){ if(statement1 instanceof PsiDeclarationStatement){ addDeclarations((PsiDeclarationStatement) statement1, out); } } } return out; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3837c95856454e21e9059f3aa91174a1e2c65526/MergeParallelIfsPredicate.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/trivialif/MergeParallelIfsPredicate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1000, 32, 780, 34, 4604, 27046, 21408, 12, 52, 7722, 3406, 3021, 15329, 3639, 727, 1000, 32, 780, 34, 596, 273, 394, 6847, 32, 780, 34, 5621, 3639, 309, 12, 11516, 1276, 453,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 32, 780, 34, 4604, 27046, 21408, 12, 52, 7722, 3406, 3021, 15329, 3639, 727, 1000, 32, 780, 34, 596, 273, 394, 6847, 32, 780, 34, 5621, 3639, 309, 12, 11516, 1276, 453,...
sbJoin.append(" as a join ");
sbJoin.append(" join ");
private void processTableStatements(MCAction action, String dsSchemaName, String targetSchemaName, String tempTableName, String existingTableName, String targetTableName, List dsColumns, List fromDSColumns, List toRealColumns, boolean leftJoin, DataSetColumn partitionColumn, Object partitionValue, List statements) throws Exception { // We must assume the source schema is read-only, therefore // we cannot make any temporary indexes on it even though // we'd probably quite like to. // Join the table to the parent, if parent table not null. StringBuffer sbJoin = new StringBuffer(); if (existingTableName != null) { // Create an index on the existing table to use for the join. StringBuffer sbIndCols = new StringBuffer(); sbIndCols.append("("); for (Iterator i = fromDSColumns.iterator(); i.hasNext();) { sbJoin.append(((Column) i.next()).getName()); if (i.hasNext()) sbIndCols.append(","); } sbIndCols.append(")"); statements.add("create index " + dsSchemaName + "." + existingTableName + "_I on " + dsSchemaName + "." + existingTableName + sbIndCols.toString()); // Work out what kind of join to use, if any. String joinKW = (leftJoin && partitionColumn == null) ? "left" : "inner"; // Do the join. sbJoin.append(dsSchemaName); sbJoin.append("."); sbJoin.append(existingTableName); sbJoin.append(" "); sbJoin.append(joinKW); sbJoin.append(" as a join "); sbJoin.append(targetSchemaName); sbJoin.append("."); sbJoin.append(targetTableName); sbJoin.append(" as b on ("); for (int i = 0; i < fromDSColumns.size(); i++) { if (i > 0) sbJoin.append(" and "); String parentColName = ((Column) fromDSColumns.get(i)) .getName(); String childColName = ((Column) toRealColumns.get(i)).getName(); sbJoin.append("a." + parentColName + " = b." + childColName); } sbJoin.append(")"); } // Otherwise, just select from target table. else { sbJoin.append(targetSchemaName); sbJoin.append("."); sbJoin.append(targetTableName); sbJoin.append(" as b "); } // Work out what columns to include. StringBuffer sbCols = new StringBuffer(); if (existingTableName != null) sbCols.append("a.*,"); for (Iterator i = dsColumns.iterator(); i.hasNext();) { DataSetColumn dsCol = (DataSetColumn) i.next(); if (dsCol instanceof WrappedColumn) { WrappedColumn wc = (WrappedColumn) dsCol; sbCols.append("b." + wc.getWrappedColumn().getName() + " as " + wc.getName()); } else if (dsCol instanceof SchemaNameColumn) { SchemaNameColumn sn = (SchemaNameColumn) dsCol; sbCols.append("'" + targetSchemaName + "' as " + sn.getName()); } else if (dsCol instanceof ConcatRelationColumn) { ConcatRelationColumn cr = (ConcatRelationColumn) dsCol; // TODO : concat-relations. Do these by group-by all the columns // on the original table, then adding an additional LEFT/INNER // join // per concat relation, and adding a GROUP_CONCAT(DISTINCT // CONCAT_WS( // valsep, ifnull(col1,''), ifnull(col2,''), ..., // ifnull(colN,'')) // SEPARATOR rowsep) column as the concat column for that // relation. // The cols selected are the PK cols of the remote table. The // join // cols are obvious. // Watch out for the MySQL property 'group_concat_max_len'. Also // watch out for null being replaced with empty string in // CONCAT_WS - // alternative is to leave as null, then it will be skipped // altogether // and output will be missing one entire value including // separator. sbCols.append("'concat' as " + cr.getName()); } else throw new ConstructorException(BuilderBundle .getString("mcUnknownDSCol")); if (i.hasNext()) sbCols.append(","); } // Restrict to a particular partition. StringBuffer sbWhere = new StringBuffer(); if (partitionColumn != null) { if (partitionValue == null) sbWhere.append(" where b." + ((WrappedColumn) partitionColumn).getWrappedColumn() .getName() + " is null"); else sbWhere.append(" where b." + ((WrappedColumn) partitionColumn).getWrappedColumn() .getName() + " = '" + partitionValue + "'"); } // Write the command. statements.add("create table " + dsSchemaName + "." + tempTableName + " as select " + sbCols.toString() + " from " + sbJoin.toString() + sbWhere.toString()); // If it has a parent table... if (existingTableName != null) { // Drop the parent table. this.dropTableStatements(new DropTable(action.targetSchemaName, existingTableName), statements); // Rename the child table. this.renameTableStatements(new RenameTable(action.targetSchemaName, tempTableName, existingTableName), statements); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/8c71bbe00f01f9b406804ebfa717c4d51615ec06/MySQLDialect.java/clean/src/java/org/biomart/builder/controller/MySQLDialect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1207, 1388, 14663, 12, 20022, 1803, 1301, 16, 514, 3780, 3078, 461, 16, 1082, 202, 780, 1018, 3078, 461, 16, 514, 1906, 7147, 16, 1082, 202, 780, 2062, 7147, 16, 514, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1207, 1388, 14663, 12, 20022, 1803, 1301, 16, 514, 3780, 3078, 461, 16, 1082, 202, 780, 1018, 3078, 461, 16, 514, 1906, 7147, 16, 1082, 202, 780, 2062, 7147, 16, 514, 10...
QuickFixAction.registerQuickFixAction(errorResult, fix, null);
QuickFixAction.registerQuickFixAction(errorResult, fix);
static void registerAccessQuickFixAction(PsiMember refElement, PsiJavaCodeReferenceElement place, HighlightInfo errorResult, final PsiElement fileResolveScope) { if (refElement instanceof PsiCompiledElement) return; PsiModifierList modifierList = refElement.getModifierList(); if (modifierList == null) return; PsiClass accessObjectClass = null; PsiElement scope = place; while (scope != null) { if (scope instanceof PsiClass) { accessObjectClass = (PsiClass)scope; break; } scope = scope.getParent(); } PsiClass packageLocalClassInTheMiddle = getPackageLocalClassInTheMiddle(place); if (packageLocalClassInTheMiddle != null) { IntentionAction fix = QUICK_FIX_FACTORY.createModifierListFix(packageLocalClassInTheMiddle.getModifierList(), PsiModifier.PUBLIC, true, true); QuickFixAction.registerQuickFixAction(errorResult, fix, null); return; } try { PsiModifierList modifierListCopy = refElement.getManager().getElementFactory().createFieldFromText("int a;", null).getModifierList(); modifierListCopy.setModifierProperty(PsiModifier.STATIC, modifierList.hasModifierProperty(PsiModifier.STATIC)); int i = 0; if (refElement.hasModifierProperty(PsiModifier.PACKAGE_LOCAL)) { i = 1; } if (refElement.hasModifierProperty(PsiModifier.PROTECTED)) { i = 2; } String[] modifiers = new String[]{PsiModifier.PACKAGE_LOCAL, PsiModifier.PROTECTED, PsiModifier.PUBLIC}; for (; i < modifiers.length; i++) { String modifier = modifiers[i]; modifierListCopy.setModifierProperty(modifier, true); if (refElement.getManager().getResolveHelper().isAccessible(refElement, modifierListCopy, place, accessObjectClass, fileResolveScope)) { IntentionAction fix = QUICK_FIX_FACTORY.createModifierListFix(refElement.getModifierList(), modifier, true, true); QuickFixAction.registerQuickFixAction(errorResult, fix, null); } } } catch (IncorrectOperationException e) { LOG.error(e); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1744, 1862, 13663, 8585, 1803, 12, 52, 7722, 4419, 1278, 1046, 16, 4766, 6647, 453, 7722, 5852, 1085, 2404, 1046, 3166, 16, 4766, 6647, 31386, 966, 555, 1253, 16, 4766, 6647, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 1744, 1862, 13663, 8585, 1803, 12, 52, 7722, 4419, 1278, 1046, 16, 4766, 6647, 453, 7722, 5852, 1085, 2404, 1046, 3166, 16, 4766, 6647, 31386, 966, 555, 1253, 16, 4766, 6647, 72...
stdoutFile = new FileOutputStream(outFileName);
File outFile = new File(Base.getBuildFolder(), outFileName); stdoutFile = new FileOutputStream(outFile);
public EditorConsole(Editor editor) { this.editor = editor; maxLineCount = Preferences.getInteger("console.length"); consoleDoc = new BufferedStyledDocument(10000, maxLineCount); consoleTextPane = new JTextPane(consoleDoc); consoleTextPane.setEditable(false); // necessary? MutableAttributeSet standard = new SimpleAttributeSet(); StyleConstants.setAlignment(standard, StyleConstants.ALIGN_LEFT); consoleDoc.setParagraphAttributes(0, 0, standard, true); // build styles for different types of console output Color bgColor = Preferences.getColor("console.color"); Color fgColorOut = Preferences.getColor("console.output.color"); Color fgColorErr = Preferences.getColor("console.error.color"); Font font = Preferences.getFont("console.font"); stdStyle = new SimpleAttributeSet(); StyleConstants.setForeground(stdStyle, fgColorOut); StyleConstants.setBackground(stdStyle, bgColor); StyleConstants.setFontSize(stdStyle, font.getSize()); StyleConstants.setFontFamily(stdStyle, font.getFamily()); StyleConstants.setBold(stdStyle, font.isBold()); StyleConstants.setItalic(stdStyle, font.isItalic()); errStyle = new SimpleAttributeSet(); StyleConstants.setForeground(errStyle, fgColorErr); StyleConstants.setBackground(errStyle, bgColor); StyleConstants.setFontSize(errStyle, font.getSize()); StyleConstants.setFontFamily(errStyle, font.getFamily()); StyleConstants.setBold(errStyle, font.isBold()); StyleConstants.setItalic(errStyle, font.isItalic()); consoleTextPane.setBackground(bgColor); // add the jtextpane to this scrollpane this.setViewportView(consoleTextPane); // calculate height of a line of text in pixels // and size window accordingly FontMetrics metrics = this.getFontMetrics(font); int height = metrics.getAscent() + metrics.getDescent(); int lines = Preferences.getInteger("console.lines"); //, 4); int sizeFudge = 6; //10; // unclear why this is necessary, but it is setPreferredSize(new Dimension(1024, (height * lines) + sizeFudge)); setMinimumSize(new Dimension(1024, (height * 4) + sizeFudge)); if (systemOut == null) { systemOut = System.out; systemErr = System.err; try { String outFileName = Preferences.get("console.output.file"); if (outFileName != null) { stdoutFile = new FileOutputStream(outFileName); } String errFileName = Preferences.get("console.error.file"); if (errFileName != null) { stderrFile = new FileOutputStream(outFileName); } } catch (IOException e) { Base.showWarning("Console Error", "A problem occurred while trying to open the\n" + "files used to store the console output.", e); } consoleOut = new PrintStream(new EditorConsoleStream(this, false, stdoutFile)); consoleErr = new PrintStream(new EditorConsoleStream(this, true, stderrFile)); if (Preferences.getBoolean("console")) { try { System.setOut(consoleOut); System.setErr(consoleErr); } catch (Exception e) { e.printStackTrace(systemOut); } } } // to fix ugliness.. normally macosx java 1.3 puts an // ugly white border around this object, so turn it off. if (Base.isMacOS()) { setBorder(null); } // periodically post buffered messages to the console // should the interval come from the preferences file? new javax.swing.Timer(250, new ActionListener() { public void actionPerformed(ActionEvent evt) { consoleDoc.insertAll(); // always move to the end of the text as it's added consoleTextPane.setCaretPosition(consoleDoc.getLength()); } }).start(); }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/b650bb9ea65eeb27ed09b44ef1907d7c5fb6a584/EditorConsole.java/buggy/app/EditorConsole.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18451, 10215, 12, 6946, 4858, 13, 288, 565, 333, 18, 9177, 273, 4858, 31, 565, 943, 1670, 1380, 273, 28310, 18, 588, 4522, 2932, 8698, 18, 2469, 8863, 565, 2983, 1759, 273, 394, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18451, 10215, 12, 6946, 4858, 13, 288, 565, 333, 18, 9177, 273, 4858, 31, 565, 943, 1670, 1380, 273, 28310, 18, 588, 4522, 2932, 8698, 18, 2469, 8863, 565, 2983, 1759, 273, 394, 5...
return model.getStringProperty(MANIFEST_FOLDER); }
return model.getStringProperty(MANIFEST_FOLDER); }
String getManifestFolder(){ return model.getStringProperty(MANIFEST_FOLDER); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/d1606239aaee8e29dd1c4a69f6c9deb28ca2ca7d/JavaUtilityComponentCreationOperationEx.java/clean/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/JavaUtilityComponentCreationOperationEx.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 23619, 3811, 3899, 1435, 95, 202, 202, 2463, 938, 18, 588, 780, 1396, 12, 9560, 30050, 67, 17357, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 23619, 3811, 3899, 1435, 95, 202, 202, 2463, 938, 18, 588, 780, 1396, 12, 9560, 30050, 67, 17357, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
RubyIO io = (RubyIO) KernelModule.open(recv, new IRubyObject[] { filename }); if (!io.isNil()) { try { io.callMethod("each", args); } finally { io.callMethod("close");
RubyIO io = (RubyIO) RubyFile.open(recv.getRuntime().getClass("File"), new IRubyObject[] { filename }, false); if (!io.isNil() && io.isOpen()) { RubyString nextLine = io.internalGets(args); while (!nextLine.isNil()) { recv.getRuntime().yield(nextLine); nextLine = io.internalGets(args);
public static IRubyObject foreach(IRubyObject recv, RubyObject filename, IRubyObject[] args) { filename.checkSafeString(); RubyIO io = (RubyIO) KernelModule.open(recv, new IRubyObject[] { filename }); if (!io.isNil()) { try { io.callMethod("each", args); } finally { io.callMethod("close"); } } return recv.getRuntime().getNil(); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/clean/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 936, 12, 7937, 10340, 921, 10665, 16, 19817, 921, 1544, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 1544, 18, 1893, 9890, 780, 5621, 3639, 19817, 4294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 936, 12, 7937, 10340, 921, 10665, 16, 19817, 921, 1544, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 1544, 18, 1893, 9890, 780, 5621, 3639, 19817, 4294, ...
! (FileVisitor.fileNodes.contains(node))) {
! (FileVisitor.fileNodes.contains(node)) && ! (node.contents.getName().indexOf("Identity") != -1)) {
public void visitNode(FlatNode node) { if (node.contents instanceof SIRFilter && ! (FileVisitor.fileNodes.contains(node))) { assigned.add(node); return; } if (node.contents instanceof SIRJoiner) { if (node.edges[0] == null || !(node.edges[0].contents instanceof SIRJoiner)) { //do not assign the joiner if it is a null joiner for (int i = 0; i < node.inputs;i++) { if (node.incomingWeights[i] != 0) { joiners.add(node); assigned.add(node); return; } } } } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/34dc12afaad15256fa627797c8d72e9559fc12b0/Layout.java/clean/streams/src/at/dms/kjc/raw/Layout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 907, 12, 16384, 907, 756, 13, 377, 288, 202, 430, 261, 2159, 18, 3980, 1276, 5705, 54, 1586, 597, 202, 565, 401, 261, 812, 7413, 18, 768, 3205, 18, 12298, 12, 2159, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 907, 12, 16384, 907, 756, 13, 377, 288, 202, 430, 261, 2159, 18, 3980, 1276, 5705, 54, 1586, 597, 202, 565, 401, 261, 812, 7413, 18, 768, 3205, 18, 12298, 12, 2159, 2...
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ddbb116b3a67f82e811ca92d303beb50ad9fcf76/DOM2SAX.java/clean/src/org/apache/xalan/xsltc/trax/DOM2SAX.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 542, 4595, 12, 780, 529, 16, 6494, 1132, 13, 15069, 202, 55, 2501, 1248, 5650, 9367, 503, 16, 55, 2501, 25482, 95, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 542, 4595, 12, 780, 529, 16, 6494, 1132, 13, 15069, 202, 55, 2501, 1248, 5650, 9367, 503, 16, 55, 2501, 25482, 95, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String version = versionResolver.getResolvedVersion( ext.getGroupId(), ext.getArtifactId() );
String version = versionResolver.getResolvedVersion( plugin.getGroupId(), plugin .getArtifactId() );
private void transformPomToSnapshotVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSORMED_FOR_DEVELOPMENT ) ) { if ( isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "This project is a snapshot (" + project.getVersion() + "). It appears that the release version has not been committed." ); } Model model = project.getOriginalModel(); ProjectVersionResolver versionResolver = getVersionResolver(); Parent parent = model.getParent(); //Rewrite parent version if ( parent != null ) { String incrementedVersion = versionResolver.getResolvedVersion( parent.getGroupId(), parent .getArtifactId() ); if ( incrementedVersion != null ) { parent.setVersion( incrementedVersion ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String version = versionResolver.getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( version != null ) { dep.setVersion( version ); } } } //Rewrite plugins section Build build = model.getBuild(); if ( build != null ) { List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String version = versionResolver.getResolvedVersion( plugin.getGroupId(), plugin .getArtifactId() ); if ( version != null ) { plugin.setVersion( version ); } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String version = versionResolver.getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( version != null ) { ext.setVersion( version ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); if ( reports != null ) { for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String version = versionResolver.getResolvedVersion( plugin.getGroupId(), plugin .getArtifactId() ); if ( version != null ) { plugin.setVersion( version ); } } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write development version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSORMED_FOR_DEVELOPMENT ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/clean/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 4568, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2510, 52, 362, 774, 4568, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
for (int i=0; i < classnames.length; i++) {
for (int i = 0; i < classnames.length; i++) {
private long destClassesModified(File destDir) { String[] classnames = classesToGenerate(); // List of all stubs & skels long destClassesModified = new Date().getTime(); // Earliest mod time boolean allClassesFound = true; // Has each been found? /* * Loop through each stub/skeleton class that must be generated, and * determine (if all exist) which file has the most recent timestamp */ for (int i=0; i < classnames.length; i++) { String pathToClass = classnames[i].replace('.', File.separatorChar) + ".class"; File classFile = new File(destDir, pathToClass); /* * Add each stub/skeleton class to the list of EJB files. Note * that each class is added even if it doesn't exist now. */ ejbFiles.put(pathToClass, classFile); allClassesFound = allClassesFound && classFile.exists(); if (allClassesFound) { long fileMod = classFile.lastModified(); /* Keep track of the oldest modification timestamp */ destClassesModified = Math.min(destClassesModified, fileMod); } } return (allClassesFound) ? destClassesModified : -1; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/IPlanetEjbc.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1525, 1570, 4818, 4575, 12, 812, 26231, 13, 288, 5411, 514, 8526, 667, 1973, 273, 3318, 774, 4625, 5621, 368, 987, 434, 777, 7168, 87, 473, 4343, 10558, 5411, 1525, 1570, 4818, 4575...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1525, 1570, 4818, 4575, 12, 812, 26231, 13, 288, 5411, 514, 8526, 667, 1973, 273, 3318, 774, 4625, 5621, 368, 987, 434, 777, 7168, 87, 473, 4343, 10558, 5411, 1525, 1570, 4818, 4575...
if(m_Vetting && LDMLUtilities.isNodeDraft(childOfSource)) {
if(m_Vetting && LDMLUtilities.isNodeDraft(childOfSource)) {
private boolean extractMergeData(Node node,String key, boolean parentDraft){ Node childOfSource; for(childOfSource = node.getFirstChild(); childOfSource != null; childOfSource = childOfSource.getNextSibling()) { if (childOfSource.getNodeType() != Node.ELEMENT_NODE) { continue; } String altText = null; Node altForChild = null; boolean subDraft = parentDraft; String childOfSourceName = childOfSource.getNodeName(); //Ignore collation and special tags if(childOfSourceName.equals("collations")|| childOfSource.equals("special") || childOfSourceName.indexOf(":")>-1){ continue; } if(m_Vetting && LDMLUtilities.isNodeDraft(childOfSource)) { if(!subDraft) { subDraft = true; } } if(m_Vetting) { /* Should this be always checked? */ String alt = LDMLUtilities.getAttributeValue(childOfSource, LDMLConstants.ALT); if(alt!=null) { if(alt.equals(LDMLConstants.PROPOSED)) { if(subDraft == false) { System.err.println("***** ERROR Proposed but not draft? " + childOfSource.toString()); } altForChild = LDMLUtilities.getNonAltNodeLike(node, childOfSource); if(altForChild == null) { throw new IllegalArgumentException("ERR: can't find a node like this one: " + childOfSource.toString()); } } else if(subDraft) { /* don't care about nondraft */ String type = LDMLUtilities.getAttributeValue(childOfSource, LDMLConstants.TYPE); if(type==null) { type = ""; } m_Messages = m_Messages + " <br> UNKNOWN alt type '" + alt + "' for " + node.getNodeName() + "/" + childOfSourceName + "/" + type; System.err.println("Warning: unknown alt type '" + alt + "' - *IGNORING*. " + childOfSource.toString()); continue; } } } if(childrenAreElements(childOfSource)==false){ NamedNodeMap attr = childOfSource.getAttributes(); Node typeNode = attr.getNamedItem("type"); String index=""; if(typeNode!=null){ String temp =typeNode.getNodeValue(); if(!temp.equals("standard")){ index = temp; } } if(m_Vetting) { // TODO: all? Node keyNode = attr.getNamedItem("key"); String keyIndex=""; if(keyNode!=null){ String temp =keyNode.getNodeValue(); index = index + " (" + temp + ")"; } } String nodeValue = ""; Node valueNode = childOfSource.getFirstChild(); if(valueNode != null){ String temp = trim(valueNode.getNodeValue()); if(!temp.equals("standard")){ nodeValue = temp; } } if(altForChild != null) { Node valueNode2 = altForChild.getFirstChild(); if(valueNode2 != null){ String temp = trim(valueNode2.getNodeValue()); if(!temp.equals("standard")){ altText = temp; } else { altText = "??? alt=standard"; } } else { altText = "??? alt has no value"; } } Node parentNode = childOfSource.getParentNode(); String parentNodeName = trim(parentNode.getNodeName()); String childNodeName = trim(childOfSource.getNodeName()); Node grandParentNode = childOfSource.getParentNode().getParentNode(); String grandParentNodeName = grandParentNode.getNodeName(); NamedNodeMap parentAttrib = parentNode.getAttributes(); String type =""; if(parentAttrib != null){ Node mytypeNode = parentAttrib.getNamedItem("type"); if(mytypeNode!=null){ String mytype = mytypeNode.getNodeValue(); if(!mytype.equals("standard")){ if( ! parentNodeName.equals("calendar")){ type = mytype; }else{ parentNodeName = mytype; } } } } if(grandParentNodeName.equals("eras") ){ Node calendar = grandParentNode.getParentNode(); NamedNodeMap gpa = calendar.getAttributes(); Node gptNode = gpa.getNamedItem("type"); if(gptNode!=null){ String gptType = gptNode.getNodeValue(); if(!gptType.equals("standard")){ grandParentNodeName = gptType; } } parentNodeName = grandParentNodeName+ "\u200b_" + parentNodeName; } if(grandParentNodeName.equals("calendar")){ NamedNodeMap gpa = grandParentNode.getAttributes(); Node gptNode = gpa.getNamedItem("type"); if(gptNode!=null){ String gptType = gptNode.getNodeValue(); if(!gptType.equals("standard")){ grandParentNodeName = gptType; } } parentNodeName = grandParentNodeName+ "\u200b_" + parentNodeName; } if(grandParentNodeName.equals("monthContext")|| grandParentNodeName.equals("dayContext") || grandParentNodeName.equals("dateFormatLength") || grandParentNodeName.equals("timeFormatLength") || grandParentNodeName.equals("dateTimeFormatLength")){ Node calendar = grandParentNode.getParentNode().getParentNode(); NamedNodeMap ggpa = calendar.getAttributes(); Node ggptNode = ggpa.getNamedItem("type"); if(ggptNode!=null){ String ggptType = ggptNode.getNodeValue(); if(!ggptType.equals("standard")){ grandParentNodeName = ggptType; parentNodeName = ggptType+"\u200b_"+parentNodeName; } } NamedNodeMap gpa = grandParentNode.getAttributes(); Node gptNode = gpa.getNamedItem("type"); if(gptNode!=null){ String gptType = gptNode.getNodeValue(); if(!gptType.equals("standard")){ parentNodeName = parentNodeName+"\u200b_"+gptType; } } NamedNodeMap pa = parentNode.getAttributes(); Node ptNode = pa.getNamedItem("type"); if(ptNode!=null){ String ptType = ptNode.getNodeValue(); if(!ptType.equals("standard")){ parentNodeName = parentNodeName+"\u200b_"+ptType; } } } if(childNodeName.equals("pattern") ||grandParentNodeName.equals("zone") ){ if(parentNodeName.indexOf("date")==-1 && parentNodeName.indexOf("time")==-1){ NamedNodeMap at = grandParentNode.getAttributes(); Node mytypeNode = at.getNamedItem("type"); if(mytypeNode!=null){ String mytype = mytypeNode.getNodeValue(); if(!mytype.equals("standard")){ if(type.equals("")){ type = mytype; }else{ type = type+"\u200b_"+mytype; } } } } } if(grandParentNodeName.equals("special") || parentNodeName.equals("special") || childNodeName.equals("special") || grandParentNodeName.indexOf(":")>0){ continue; } if(!nodeValue.equals("") && !childOfSource.getNodeName().equals("version")){ // for country codes and language codes // replace the deprecated codes with the latest ones if(childNodeName.equals("language")){ String temp = (String)deprecatedLanguageCodes.get(index); if(temp!=null){ index = temp; } }else if( childNodeName.equals("territory")){ String temp = (String)deprecatedCountryCodes.get(index); if(temp!=null){ index = temp; } } String id = ""; if(!type.equals("")){ id = parentNodeName+"_"+childNodeName+"_"+type+"_"+getTag(childNodeName, index)+"_"+grandParentNodeName; }else{ id = parentNodeName+"_"+childNodeName+"_"+getTag(childNodeName, index)+"_"+grandParentNodeName; } if(!index.equals("")){ if(!index.equals(nodeValue) && !index.equals("Fallback")){ if(!m_Vetting || subDraft) { addElement(childNodeName, parentNodeName, id, index, nodeValue, key); if(altText!=null) { addElement(childNodeName, parentNodeName, id, index, altText, "ALT"); } } } }else{ if(!type.equals(nodeValue) && !type.equals("Fallback")){ if(!m_Vetting || subDraft) { addElement(childNodeName, parentNodeName, id, type, nodeValue, key); if(altText!=null) { addElement(childNodeName, parentNodeName, id, index, altText, "ALT"); } } } } } if(attr.getLength()>0 && typeNode==null){ //TODO: make this a fcn // add an element for each attribute different for each attribute if(!m_Vetting || subDraft) { for(int i=0; i<attr.getLength(); i++){ Node item = attr.item(i); String attrName =item.getNodeName(); String subAltText = null; if(attrName.equals("type")){ continue; } if(attrName.equals("alt")){ continue; } if(attrName.equals("draft")){ continue; } if(grandParentNodeName.equals("zone") ){ parentNodeName = grandParentNodeName+"\u200b_"+parentNodeName; } String id = grandParentNodeName+"_"+parentNodeName+"_"+childNodeName+"_"+type+"_"+attrName; String subNodeValue = item.getNodeValue(); if(altForChild!=null) { subAltText="?"; System.err.println(parentNodeName + "/" + childNodeName + " alt?? : " + altText); throw new IllegalArgumentException("UNKNOWN ALT SUBTAG THINGY + " + parentNodeName + "/" + childNodeName + " alt?? : " + altText + " not " + subNodeValue); } if(!index.equals("")){ addElement(childNodeName, parentNodeName, id, index, subNodeValue, key); }else if(!type.equals("")){ addElement(childNodeName, parentNodeName, id, type, subNodeValue, key); }else{ if(!attrName.equals("draft")){ addElement(childNodeName, parentNodeName, id, attrName, subNodeValue, key); } } } } } }else{ //the element has more children .. recurse to pick them all extractMergeData(childOfSource,key, subDraft); } } return true; }
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, 377, 3238, 1250, 2608, 6786, 751, 12, 907, 756, 16, 780, 498, 16, 1250, 982, 12714, 15329, 3639, 2029, 1151, 951, 1830, 31, 3639, 364, 12, 3624, 951, 1830, 273, 756, 18, 588, 3759, 1763, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2608, 6786, 751, 12, 907, 756, 16, 780, 498, 16, 1250, 982, 12714, 15329, 3639, 2029, 1151, 951, 1830, 31, 3639, 364, 12, 3624, 951, 1830, 273, 756, 18, 588, 3759, 1763, 562...
VM.shutdown(VM.exitStatusBogusCommandLineArg);
VM.shutdown(VM.EXIT_STATUS_BOGUS_COMMAND_LINE_ARG);
static public void processArg(String arg) { if (VM.BuildForHPM) { //-#if RVM_WITH_HPM if (arg.compareTo("help") == 0) { printHelp(); } int split = arg.indexOf('='); if (split == -1) { VM.sysWriteln(" Illegal option specification!\n \""+arg+ "\" must be specified as a name-value pair in the form of option=value"); printHelp(); } String name = arg.substring(0,split-1); String name2 = arg.substring(0,split); if (name.equals("event")) { String num = arg.substring(split-1,split); String value = arg.substring(split+1); int eventNum = VM_CommandLineArgs.primitiveParseInt(num); int eventVal = VM_CommandLineArgs.primitiveParseInt(value); HPM_info.ids[eventNum] = eventVal; if (!enabled) { enabled = true; } } else if (name2.equals("mode")) { String value = arg.substring(split+1); int mode = VM_CommandLineArgs.primitiveParseInt(value); HPM_info.mode = mode; } else if (name2.equals("filename")) { HPM_info.filenamePrefix = arg.substring(split+1); if(verbose>=2)VM.sysWriteln("VM_HPMs.processArgs() filename prefix found \""+ HPM_info.filenamePrefix+"\""); } else if (name2.equals("trace")) { String value = arg.substring(split+1); if (value.compareTo("true")==0) { trace = true; } else if (value.compareTo("false")==0) { trace = false; } else { VM.sysWriteln("\nrvm: unrecognized boolean value "+value+"\n -X:hpm:trace={true|false} is the correct syntax"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } } else if (name2.equals("trace_verbose")) { String value = arg.substring(split+1); int pid = VM_CommandLineArgs.primitiveParseInt(value); if (pid < 0) { VM.sysWriteln("\nrvm: unrecognized value "+value+"\n -X:hpm:trace_verbose=PID where PID >= 0 is the correct syntax, and 0 has null functionality."); VM.shutdown(VM.exitStatusBogusCommandLineArg); } trace_verbose = pid; } else if (name2.equals("processor")) { hpm_processor = true; } else if (name2.equals("verbose")) { String value = arg.substring(split+1); int verbose_level = VM_CommandLineArgs.primitiveParseInt(value); if (verbose_level < -1) { VM.sysWriteln("\nrvm: unrecognized value "+value+"\n -X:hpm:verbose=verbose_level where verbose_level >= -1 is the correct syntax"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } verbose = verbose_level; } else if (name2.equals("listAll")) { String value = arg.substring(split+1); if (value.compareTo("true")==0) { hpm_list_all_events = true; } else if (value.compareTo("false")==0) { hpm_list_all_events = false; } else { VM.sysWriteln("\nrvm: unrecognized boolean value "+value+"\n -X:hpm:list={true|false} is the correct syntax"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } } else if (name2.equals("listSelected")) { String value = arg.substring(split+1); if (value.compareTo("true")==0) { hpm_list_selected_events = true; } else if (value.compareTo("false")==0) { hpm_list_selected_events = false; } else { VM.sysWriteln("\nrvm: unrecognized boolean value "+value+"\n -X:hpm:events={true|false} is the correct syntax"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } } else if (name2.equals("threadGroup")) { // not tested String value = arg.substring(split+1); if (value.compareTo("true")==0) { thread_group = true; } else if (value.compareTo("false")==0) { thread_group = false; } else { VM.sysWriteln("\nrvm: unrecognized boolean value "+value+"\n -X:hpm:threadGroup={true|false} is the correct syntax"); } } else if (name2.equals("test")) { // hidden command line argument String value = arg.substring(split+1); if (value.compareTo("true")==0) { hpm_test = true; } else if (value.compareTo("false")!=0) { hpm_test = false; } else { VM.sysWriteln("\nrvm: unrecognized boolean value "+value+"\n -X:hpm:test={true|false} is the correct syntax"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } } else if (arg.startsWith("report=")) { String tmp = arg.substring(split+1); if (tmp.compareTo("true")==0) { report = true; } else if (tmp.compareTo("false")==0) { report = false; } else { VM.sysWriteln("\n***VM_HPMs.processArgs() invalid -X:hpm:report argument \""+tmp+"\"!***\n"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } } else if (arg.startsWith("sample=")) { String tmp = arg.substring(split+1); if (tmp.compareTo("true")==0) { sample = true; } else if (tmp.compareTo("false")==0) { sample = false; } else { VM.sysWriteln("\n***VM_HPMs.processArgs() invalid -X:hpm:sample argument \""+tmp+"\"!***\n"); VM.shutdown(VM.exitStatusBogusCommandLineArg); } } else { VM.sysWriteln("rvm: Unrecognized argument \"-X:hpm:"+arg+"\""); VM.shutdown(VM.exitStatusBogusCommandLineArg); } //-#endif } else { // ! VM.BuildForHPM VM.sysWriteln("\nrvm: Hardware performance monitors not supported. Illegal command line options \""+arg+"\"\n"); VM.shutdown(VM.exitStatusHPMTrouble); } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/03b35a94a05496f90a3f50e27e94eb82a306a76f/VM_HardwarePerformanceMonitors.java/buggy/rvm/src/vm/HPM/VM_HardwarePerformanceMonitors.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 918, 1207, 4117, 12, 780, 1501, 13, 288, 565, 309, 261, 7397, 18, 3116, 1290, 2500, 49, 13, 288, 1377, 368, 17, 7, 430, 534, 7397, 67, 9147, 67, 2500, 49, 1377, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 918, 1207, 4117, 12, 780, 1501, 13, 288, 565, 309, 261, 7397, 18, 3116, 1290, 2500, 49, 13, 288, 1377, 368, 17, 7, 430, 534, 7397, 67, 9147, 67, 2500, 49, 1377, 309, 261, ...
"[Store].[All Stores].[USA].[CA]" + nl + "[Store].[All Stores].[USA]" + nl + "[Store].[All Stores].[USA].[CA]" + nl + "[Store].[All Stores].[USA].[OR]" + nl + "[Store].[All Stores].[USA].[WA]");
wrap(new String[] { "[Store].[All Stores].[USA].[CA]", "[Store].[All Stores].[USA]", "[Store].[All Stores].[USA].[CA]", "[Store].[All Stores].[USA].[OR]", "[Store].[All Stores].[USA].[WA]"}));
public void testDrilldownLevel() throws Exception { // Expect all children of USA assertAxisReturns("DrilldownLevel({[Store].[USA]}, [Store].[Store Country])", "[Store].[All Stores].[USA]" + nl + "[Store].[All Stores].[USA].[CA]" + nl + "[Store].[All Stores].[USA].[OR]" + nl + "[Store].[All Stores].[USA].[WA]"); // Expect same set, because [USA] is already drilled assertAxisReturns("DrilldownLevel({[Store].[USA], [Store].[USA].[CA]}, [Store].[Store Country])", "[Store].[All Stores].[USA]" + nl + "[Store].[All Stores].[USA].[CA]"); // Expect drill, because [USA] isn't already drilled. You can't // drill down on [CA] and get to [USA] assertAxisReturns("DrilldownLevel({[Store].[USA].[CA],[Store].[USA]}, [Store].[Store Country])", "[Store].[All Stores].[USA].[CA]" + nl + "[Store].[All Stores].[USA]" + nl + "[Store].[All Stores].[USA].[CA]" + nl + "[Store].[All Stores].[USA].[OR]" + nl + "[Store].[All Stores].[USA].[WA]"); assertThrows("select DrilldownLevel({[Store].[USA].[CA],[Store].[USA]}, , 0) on columns from [Sales]", "Syntax error"); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8956, 737, 2378, 2355, 1435, 1216, 1185, 288, 3639, 368, 15510, 777, 2325, 434, 587, 5233, 3639, 1815, 6558, 1356, 2932, 8956, 737, 2378, 2355, 12590, 63, 2257, 8009, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8956, 737, 2378, 2355, 1435, 1216, 1185, 288, 3639, 368, 15510, 777, 2325, 434, 587, 5233, 3639, 1815, 6558, 1356, 2932, 8956, 737, 2378, 2355, 12590, 63, 2257, 8009, 63, ...
public void implementsClause() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( ( 'implements' identifier ( COMMA identifier )* )? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( 'implements' identifier ( COMMA identifier )* )? { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:169:17: ( 'implements' identifier ( COMMA identifier )* )? int alt14=2; int LA14_0 = input.LA(1); if ( LA14_0==92 ) { alt14=1; } else if ( LA14_0==LCURLY ) { alt14=2; } else { NoViableAltException nvae = new NoViableAltException("169:17: ( \'implements\' identifier ( COMMA identifier )* )?", 14, 0, input); throw nvae; } switch (alt14) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:25: 'implements' identifier ( COMMA identifier )* { match(input,92,FOLLOW_92_in_implementsClause514); following.push(FOLLOW_identifier_in_implementsClause516); identifier(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:49: ( COMMA identifier )* loop13: do { int alt13=2; int LA13_0 = input.LA(1); if ( LA13_0==COMMA ) { alt13=1; } switch (alt13) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:170:51: COMMA identifier { match(input,COMMA,FOLLOW_COMMA_in_implementsClause520); following.push(FOLLOW_identifier_in_implementsClause522); identifier(); following.pop(); } break; default : break loop13; } } while (true); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 4792, 7044, 1435, 1216, 9539, 288, 282, 775, 288, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 4792, 7044, 1435, 1216, 9539, 288, 282, 775, 288, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, ...
protected Item translateMicroArrayExperiment(Item srcItem, Item tgtItem) throws ObjectStoreException { String exptName = null; if (srcItem.hasAttribute("name")) { exptName = srcItem.getAttribute("name").getValue(); String propName = getConfig(exptName, "experimentName"); if (propName != null) { tgtItem.setAttribute("name", propName); } } // may have already created references to experiment tgtItem.setIdentifier(getExperimentId(exptName)); // PATH Experiment.descriptions.bibliographicReferences if (srcItem.hasCollection("descriptions")) { boolean desFlag = false; boolean pubFlag = false; Iterator desIter = getCollection(srcItem, "descriptions"); while (desIter.hasNext()) { Item desItem = (Item) desIter.next(); if (desItem.hasAttribute("text")) { if (desFlag) { LOG.error("Already set description for MicroArrayExperiment, " + " srcItem = " + srcItem.getIdentifier()); } else { tgtItem.setAttribute("description", desItem.getAttribute("text").getValue()); desFlag = true; } }// if (desItem.hasCollection("bibliographicReferences")) {// ReferenceList publication = desItem.getCollection(// "bibliographicReferences");// if (publication != null) {// if (!isSingleElementCollection(publication)) {// throw new IllegalArgumentException("Experiment description collection ("// + desItem.getIdentifier()// + ") has more than one bibliographicReference");// } else {// if (pubFlag) {// LOG.error("Already set publication for MicroArrayExperiment, "// + " srcItem = " + srcItem.getIdentifier());// } else {// tgtItem.setReference("publication", getFirstId(publication));// pubFlag = true;// }// }// }// } } } // PATH Experiment.bioAssays // create map from mage:DerivedBioAssay to experiment name (String) if (srcItem.hasCollection("bioAssays")) { Iterator assayIter = getCollection(srcItem, "bioAssays"); while (assayIter.hasNext()) { Item bioAssayItem = (Item) assayIter.next(); if (bioAssayItem.getClassName().equals(srcNs + "DerivedBioAssay")) { assayToExperiment.put(bioAssayItem.getIdentifier(), tgtItem.getIdentifier()); assayToExpName.put(bioAssayItem.getIdentifier(), exptName); } } } return tgtItem; }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/bda7cd9689739d37206a53013237d9ae8f36636e/MageDataTranslator.java/buggy/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 225, 4342, 225, 4204, 13617, 1076, 22338, 12, 1180, 225, 1705, 1180, 16, 225, 4342, 225, 11680, 1180, 13, 7734, 1216, 225, 1033, 21151, 225, 288, 7734, 514, 225, 431, 337, 461, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 225, 4342, 225, 4204, 13617, 1076, 22338, 12, 1180, 225, 1705, 1180, 16, 225, 4342, 225, 11680, 1180, 13, 7734, 1216, 225, 1033, 21151, 225, 288, 7734, 514, 225, 431, 337, 461, 225,...
report += DELIMITER;
report.append(DELIMITER);
String createMarkerReport(IMarker[] rawMarkers) { ConcreteMarker[] markers; try { markers = MarkerList.createMarkers(rawMarkers); } catch (CoreException e) { ErrorDialog.openError( part.getSite().getShell(), Messages.getString("Error"), //$NON-NLS-1$ null, e.getStatus()); return ""; } String report = ""; //$NON-NLS-1$ final String NEWLINE = System.getProperty("line.separator"); //$NON-NLS-1$ final char DELIMITER = '\t'; if (properties == null) { return null; } //create header for (int i = 0; i < properties.length; i++) { report += properties[i].getDescription(); if (i == properties.length - 1) report += NEWLINE; else report += DELIMITER; } for (int i = 0; i < markers.length; i++) { ConcreteMarker marker = markers[i]; for (int j = 0; j < properties.length; j++) { report += properties[j].getValue(marker); if (j == properties.length - 1) report += NEWLINE; else report += DELIMITER; } } return report; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a581e989cead61daf616597677e9bea530125710/ActionCopyMarker.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionCopyMarker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 780, 752, 7078, 4820, 12, 3445, 1313, 264, 8526, 1831, 21644, 13, 288, 202, 202, 25845, 7078, 8526, 11754, 31, 202, 202, 698, 288, 1082, 202, 22807, 273, 14742, 682, 18, 2640, 21644,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 752, 7078, 4820, 12, 3445, 1313, 264, 8526, 1831, 21644, 13, 288, 202, 202, 25845, 7078, 8526, 11754, 31, 202, 202, 698, 288, 1082, 202, 22807, 273, 14742, 682, 18, 2640, 21644,...
LESS_THAN,
LESS_THAN,
protected static GrailsMethodExpression create(final GrailsApplication application,Class clazz, String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL), LESS_THAN_OR_EQUAL, 1, isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.le( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LESS_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN), LESS_THAN, 1, // argument count isNegation(queryParameter, LESS_THAN) ) { Criterion createCriterion() { return Expression.lt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN_OR_EQUAL), GREATER_THAN_OR_EQUAL, 1, isNegation(queryParameter, GREATER_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.ge( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN), GREATER_THAN, 1, isNegation(queryParameter, GREATER_THAN) ) { Criterion createCriterion() { return Expression.gt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LIKE )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LIKE), LIKE, 1, isNegation(queryParameter, LIKE) ) { Criterion createCriterion() { return Expression.like( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( IS_NOT_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NOT_NULL), IS_NOT_NULL, 0, isNegation(queryParameter, IS_NOT_NULL) ) { Criterion createCriterion() { return Expression.isNotNull( this.propertyName ); } }; } else if(queryParameter.endsWith( IS_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NULL), IS_NULL, 0, isNegation(queryParameter, IS_NULL) ) { Criterion createCriterion() { return Expression.isNull( this.propertyName ); } }; } else if(queryParameter.endsWith( BETWEEN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, BETWEEN), BETWEEN, 2, isNegation(queryParameter, BETWEEN) ) { Criterion createCriterion() { return Expression.between( this.propertyName,this.arguments[0], this.arguments[1] ); } }; } else if(queryParameter.endsWith( NOT_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, NOT_EQUAL), NOT_EQUAL, 1, isNegation(queryParameter, NOT_EQUAL) ) { Criterion createCriterion() { return Expression.ne( this.propertyName,this.arguments[0]); } }; } else { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, null), EQUAL, 1, isNegation(queryParameter, EQUAL) ) { Criterion createCriterion() { return Expression.eq( this.propertyName,this.arguments[0]); } }; } }
55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, ...
return true;
protected boolean formatValue( Object value, String formatStr, StyleDesign style, StringBuffer formattedStr ) { if ( value == null ) { return false; } assert style != null && formattedStr != null; assert context.getLocale( ) != null; if ( ( value instanceof Number ) ) { NumberFormatter numberFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { numberFormat = style.getNumberFormatObject( ); //initial number-format for the first time if ( numberFormat == null ) { numberFormat = new NumberFormatter( context.getLocale( ) ); formatStr = style.getNumberFormat( ); if ( formatStr != null ) { numberFormat.applyPattern( formatStr ); } style.setNumberFormatObject( numberFormat ); } } else //deal with value-of for text item { numberFormat = new NumberFormatter( context.getLocale( ) ); numberFormat.applyPattern( formatStr ); } formattedStr.append( numberFormat.format( ( (Number) value ) .doubleValue( ) ) ); return true; } else if ( value instanceof Date ) { DateFormatter dateFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { dateFormat = style.getDateFormatObject( ); //initial date-format for the first time if ( dateFormat == null ) { dateFormat = new DateFormatter( context.getLocale( ) ); formatStr = style.getDateTimeFormat( ); if ( formatStr != null ) { dateFormat.applyPattern( formatStr ); } style.setDateFormatObject( dateFormat ); } } else //deal with value-of for text item { dateFormat = new DateFormatter( context.getLocale( ) ); dateFormat.applyPattern( formatStr ); } formattedStr.append( dateFormat.format( (Date) value ) ); return true; } else if ( value instanceof String ) { StringFormatter stringFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { stringFormat = style.getStringFormatObject( ); //initial string-format for the first time if ( stringFormat == null ) { stringFormat = new StringFormatter( ); //use default stringFormat stringFormat.setLocale( context.getLocale( ) ); //get format pattern from style formatStr = style.getStringFormat( ); if ( formatStr != null ) { stringFormat.applyPattern( formatStr ); } style.setStringFormatObject( stringFormat ); } } else //deal with value-of for text item { stringFormat = new StringFormatter( ); stringFormat.setLocale( context.getLocale( ) ); stringFormat.applyPattern( formatStr ); } formattedStr.append( stringFormat.format( value.toString( ) ) ); return true; } else { formattedStr.append( value.toString( ) ); return false; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/19b8b4e25f343b9df6dda10373f5096dcf820e51/StyledItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/StyledItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 740, 620, 12, 1033, 460, 16, 514, 740, 1585, 16, 1082, 202, 2885, 15478, 2154, 16, 6674, 4955, 1585, 262, 202, 95, 202, 202, 430, 261, 460, 422, 446, 262, 202, 202, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 740, 620, 12, 1033, 460, 16, 514, 740, 1585, 16, 1082, 202, 2885, 15478, 2154, 16, 6674, 4955, 1585, 262, 202, 95, 202, 202, 430, 261, 460, 422, 446, 262, 202, 202, 9...
public StyledTextAction(String nm) { super(nm); // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/StyledEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/StyledEditorKit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 24273, 1259, 1528, 1803, 12, 780, 15094, 15329, 1082, 202, 9565, 12, 15094, 1769, 1082, 202, 759, 6241, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 24273, 1259, 1528, 1803, 12, 780, 15094, 15329, 1082, 202, 9565, 12, 15094, 1769, 1082, 202, 759, 6241, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public File getArchiveFileInCache(File cache, String organisation, String module, String revision, String artifact, String type, String ext) { return new File(cache, getArchivePathInCache(organisation, module, revision, artifact, type, ext));
public File getArchiveFileInCache(File cache, Artifact artifact) { return new File(cache, getArchivePathInCache(artifact));
public File getArchiveFileInCache(File cache, String organisation, String module, String revision, String artifact, String type, String ext) { return new File(cache, getArchivePathInCache(organisation, module, revision, artifact, type, ext)); }
2718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2718/264c88b087962db2a6d690f131e074bd609bd39d/Ivy.java/buggy/src/java/fr/jayasoft/ivy/Ivy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1387, 336, 7465, 812, 382, 1649, 12, 812, 1247, 16, 514, 15501, 10742, 16, 514, 1605, 16, 514, 6350, 16, 514, 6462, 16, 514, 618, 16, 514, 1110, 13, 288, 3639, 327, 394, 1387, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 336, 7465, 812, 382, 1649, 12, 812, 1247, 16, 514, 15501, 10742, 16, 514, 1605, 16, 514, 6350, 16, 514, 6462, 16, 514, 618, 16, 514, 1110, 13, 288, 3639, 327, 394, 1387, 1...
" '([Measures].[Store Sales] - [Measures].[Store Cost]) / [Measures].[Store Cost]'," + nl +
" '(([Measures].[Store Sales] - [Measures].[Store Cost])) / [Measures].[Store Cost]'," + nl +
public void testUnparse() { Connection connection = getConnection(); Query query = connection.parseQuery( "with member [Measures].[Rendite] as " + nl + " '([Measures].[Store Sales] - [Measures].[Store Cost]) / [Measures].[Store Cost]'," + nl + " format_string = iif(([Measures].[Store Sales] - [Measures].[Store Cost]) / [Measures].[Store Cost] * 100 > " + nl + " Parameter (\"UpperLimit\", NUMERIC, 151, \"Obere Grenze\"), " + nl + " \"|#.00%|arrow='up'\"," + nl + " iif(([Measures].[Store Sales] - [Measures].[Store Cost]) / [Measures].[Store Cost] * 100 < " + nl + " Parameter(\"LowerLimit\", NUMERIC, 150, \"Untere Grenze\")," + nl + " \"|#.00%|arrow='down'\"," + nl + " \"|#.00%|arrow='right'\"))" + nl + "select {[Measures].members} on columns" + nl + "from Sales"); final String s = query.toString(); // Parentheses are added to reflect operator precedence, but that's ok. assertEquals("with member [Measures].[Rendite] as '((([Measures].[Store Sales] - [Measures].[Store Cost])) / [Measures].[Store Cost])', " + "format_string = IIf(((((([Measures].[Store Sales] - [Measures].[Store Cost])) / [Measures].[Store Cost]) * 100.0) > Parameter(\"UpperLimit\", NUMERIC, 151.0, \"Obere Grenze\")), " + "\"|#.00%|arrow='up'\", " + "IIf(((((([Measures].[Store Sales] - [Measures].[Store Cost])) / [Measures].[Store Cost]) * 100.0) < Parameter(\"LowerLimit\", NUMERIC, 150.0, \"Untere Grenze\")), " + "\"|#.00%|arrow='down'\", \"|#.00%|arrow='right'\"))" + nl + "select {[Measures].Members} ON columns" + nl + "from [Sales]" + nl, s); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/8a7e2b77bbee65133bd3123169f6c6b0421fe44e/BasicQueryTest.java/buggy/src/main/mondrian/test/BasicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 984, 2670, 1435, 288, 202, 202, 1952, 1459, 273, 6742, 5621, 202, 202, 1138, 843, 273, 1459, 18, 2670, 1138, 12, 9506, 202, 6, 1918, 3140, 306, 23177, 1823, 8009, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 984, 2670, 1435, 288, 202, 202, 1952, 1459, 273, 6742, 5621, 202, 202, 1138, 843, 273, 1459, 18, 2670, 1138, 12, 9506, 202, 6, 1918, 3140, 306, 23177, 1823, 8009, 6...
site.setActionBars(new EditorActionBars((IActionBars2) manager.page .getActionBars(), site, getId()));
site.setActionBars(new EditorActionBars(manager.page, site, getId()));
protected IWorkbenchPart createPart() { PartInitException exception = null; IWorkbenchPart result = null; // Try to restore the editor -- this does the real work of restoring the editor // try { result = createPartHelper(); } catch (PartInitException e) { exception = e; } // If unable to create the part, create an error part instead if (exception != null) { IStatus originalStatus = exception.getStatus(); IStatus logStatus = StatusUtil.newStatus(originalStatus, NLS.bind("Unable to create editor ID {0}: {1}", //$NON-NLS-1$ getId(), originalStatus.getMessage())); WorkbenchPlugin.log(logStatus); IStatus displayStatus = StatusUtil.newStatus(originalStatus, NLS.bind(WorkbenchMessages.EditorManager_unableToCreateEditor, originalStatus.getMessage())); ErrorEditorPart part = new ErrorEditorPart(displayStatus); IEditorInput input; try { input = getEditorInput(); } catch (PartInitException e1) { input = new NullEditorInput(); } EditorPane pane = (EditorPane)getPane(); pane.createControl((Composite) manager.page.getEditorPresentation().getLayoutPart().getControl()); EditorDescriptor descr = getDescriptor(); EditorSite site = new EditorSite(this, part, manager.page, descr); site.setActionBars(new EditorActionBars((IActionBars2) manager.page .getActionBars(), site, getId())); try { part.init(site, input); } catch (PartInitException e) { WorkbenchPlugin.log(e); return null; } Composite parent = (Composite)pane.getControl(); Composite content = new Composite(parent, SWT.NONE); content.setLayout(new FillLayout()); try { part.createPartControl(content); } catch (Exception e) { content.dispose(); WorkbenchPlugin.log(e); return null; } result = part; } return result; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/54532dbf350a8597a32c3325d699ca741a40ef83/EditorReference.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 2421, 22144, 1988, 752, 1988, 1435, 288, 13491, 6393, 2570, 503, 1520, 273, 446, 31, 7734, 467, 2421, 22144, 1988, 563, 273, 446, 31, 7734, 368, 6161, 358, 5217, 326, 4858, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 2421, 22144, 1988, 752, 1988, 1435, 288, 13491, 6393, 2570, 503, 1520, 273, 446, 31, 7734, 467, 2421, 22144, 1988, 563, 273, 446, 31, 7734, 368, 6161, 358, 5217, 326, 4858, 149...
private void zoomIn( int x, int y ) {
protected void zoomIn( int x, int y ) {
private void zoomIn( int x, int y ) { double x1 = origX = origX + (x * desiredRes / origRes); double y1 = origY = origY + (y * desiredRes / origRes); desiredRes *= 2.0f; double sfx = desiredRes / origRes; double sfy = desiredRes / origRes; createViewPort( x1, y1, sfx, sfy, origRes, origRes); }
11862 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11862/d078c94c572a02a74950b22542e5869fb860f73d/Gview.java/buggy/tools/viewer/Gview.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7182, 382, 12, 509, 619, 16, 509, 677, 262, 288, 3639, 1645, 619, 21, 273, 1647, 60, 273, 1647, 60, 397, 261, 92, 380, 6049, 607, 342, 1647, 607, 1769, 3639, 1645, 677, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7182, 382, 12, 509, 619, 16, 509, 677, 262, 288, 3639, 1645, 619, 21, 273, 1647, 60, 273, 1647, 60, 397, 261, 92, 380, 6049, 607, 342, 1647, 607, 1769, 3639, 1645, 677, 21,...
if(type == null) return false; return String.class.isAssignableFrom(type); }
if(type == null) return false; return String.class.isAssignableFrom(type); }
public boolean supports(Class type) { if(type == null) return false; return String.class.isAssignableFrom(type); }
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/buggy/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 6146, 12, 797, 618, 13, 288, 1082, 202, 430, 12, 723, 422, 446, 13, 9506, 202, 2463, 629, 31, 25083, 202, 2463, 514, 18, 1106, 18, 291, 7961, 1265, 12, 723, 1769, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 6146, 12, 797, 618, 13, 288, 1082, 202, 430, 12, 723, 422, 446, 13, 9506, 202, 2463, 629, 31, 25083, 202, 2463, 514, 18, 1106, 18, 291, 7961, 1265, 12, 723, 1769, 202...
if (aPackage != null) {
if (aPackage != null && aPackage.getName() != null) {
protected UsageInfo[] findUsages() { myRenamers.clear(); if (myPrimaryElement instanceof PsiDirectory) { final PsiPackage aPackage = ((PsiDirectory)myPrimaryElement).getPackage(); final UsageInfo[] usages; if (aPackage != null) { usages = RenameUtil.findUsages(aPackage, myNewName, mySearchInComments, mySearchInNonJavaFiles, myAllRenames); } else { usages = RenameUtil.findUsages(myPrimaryElement, myNewName, mySearchInComments, mySearchInNonJavaFiles, myAllRenames); } return UsageViewUtil.removeDuplicatedUsages(usages); } ArrayList<UsageInfo> result = new ArrayList<UsageInfo>(); for (Map.Entry<PsiElement, String> entry : myAllRenames.entrySet()) { PsiElement element = entry.getKey(); final String newName = entry.getValue(); final UsageInfo[] usages = RenameUtil.findUsages(element, newName, mySearchInComments, mySearchInNonJavaFiles, myAllRenames); result.addAll(Arrays.asList(usages)); if (element instanceof PsiClass && myShouldRenameVariables) { myRenamers.add(new AutomaticVariableRenamer((PsiClass)element, newName, Arrays.asList(usages))); } if (element instanceof PsiClass && myShouldRenameInheritors) { if (((PsiClass)element).getName() != null) { myRenamers.add(new InheritorRenamer((PsiClass)element, newName)); } } if (element instanceof PsiClass && myShouldRenameForms) { myRenamers.add(new FormsRenamer((PsiClass)element, newName)); } } // add usages in ejb-jar.xml regardless of mySearchInNonJavaFiles setting // delete erroneous usages in ejb-jar.xml (e.g. belonging to another ejb) EjbUsagesUtil.adjustEjbUsages(myAllRenames, result); if (myPrimaryElement != null) { // add usages in ejb-jar.xml regardless of mySearchInNonJavaFiles setting // delete erroneous usages in ejb-jar.xml (e.g. belonging to another ejb) EjbUsagesUtil.adjustEjbUsages(myPrimaryElement, myNewName, result); } UsageInfo[] usageInfos = result.toArray(new UsageInfo[result.size()]); usageInfos = UsageViewUtil.removeDuplicatedUsages(usageInfos); return usageInfos; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/78486d37e2d3c3d82f5173e754e6aad3b49644b6/RenameProcessor.java/clean/source/com/intellij/refactoring/rename/RenameProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 10858, 966, 8526, 1104, 3477, 1023, 1435, 288, 565, 3399, 16290, 301, 414, 18, 8507, 5621, 565, 309, 261, 4811, 6793, 1046, 1276, 453, 7722, 2853, 13, 288, 1377, 727, 453, 7722, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10858, 966, 8526, 1104, 3477, 1023, 1435, 288, 565, 3399, 16290, 301, 414, 18, 8507, 5621, 565, 309, 261, 4811, 6793, 1046, 1276, 453, 7722, 2853, 13, 288, 1377, 727, 453, 7722, 226...
if (obj.isAbstract()) priority++; BugInstance bug = new BugInstance(this, "EQ_SELF_NO_OBJECT", priority).addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod);
if (obj.isAbstract()) priority++; BugInstance bug = new BugInstance(this, "EQ_SELF_NO_OBJECT", priority).addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod);
public void visitAfter(JavaClass obj) { if (!obj.isClass()) return; if (getDottedClassName().equals("java.lang.Object")) return; int accessFlags = obj.getAccessFlags(); if ((accessFlags & ACC_INTERFACE) != 0) return; visibleOutsidePackage = obj.isPublic() || obj.isProtected(); String whereEqual = getDottedClassName(); boolean classThatDefinesEqualsIsAbstract = false; boolean classThatDefinesHashCodeIsAbstract = false; boolean inheritedHashCodeIsFinal = false; boolean inheritedEqualsIsFinal = false; boolean inheritedEqualsIsAbstract = false; if (!hasEqualsObject) { JavaClass we = Lookup.findSuperImplementor(obj, "equals", "(Ljava/lang/Object;)Z", bugReporter); if (we == null) { whereEqual = "java.lang.Object"; } else { whereEqual = we.getClassName(); classThatDefinesEqualsIsAbstract = we.isAbstract(); Method m = findMethod(we, "equals", "(Ljava/lang/Object;)Z"); if (m != null && m.isFinal()) inheritedEqualsIsFinal = true; if (m != null && m.isAbstract()) inheritedEqualsIsAbstract = true; } } boolean usesDefaultEquals = whereEqual.equals("java.lang.Object"); String whereHashCode = getDottedClassName(); if (!hasHashCode) { JavaClass wh = Lookup.findSuperImplementor(obj, "hashCode", "()I", bugReporter); if (wh == null) { whereHashCode = "java.lang.Object"; } else { whereHashCode = wh.getClassName(); classThatDefinesHashCodeIsAbstract = wh.isAbstract(); Method m = findMethod(wh, "hashCode", "()I"); if (m != null && m.isFinal()) inheritedHashCodeIsFinal = true; } } boolean usesDefaultHashCode = whereHashCode.equals("java.lang.Object"); if (false && (usesDefaultEquals || usesDefaultHashCode)) { try { if (Repository.implementationOf(obj, "java/util/Set") || Repository.implementationOf(obj, "java/util/List") || Repository.implementationOf(obj, "java/util/Map")) { // System.out.println(getDottedClassName() + " uses default hashCode or equals"); } } catch (ClassNotFoundException e) { // e.printStackTrace(); } } if (!hasEqualsObject && hasEqualsSelf) { if (usesDefaultEquals) { int priority = HIGH_PRIORITY; if (usesDefaultHashCode || obj.isAbstract()) priority++; if (!visibleOutsidePackage) priority++; BugInstance bug = new BugInstance(this, "EQ_SELF_USE_OBJECT", priority).addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod); bugReporter.reportBug(bug); } else { int priority = NORMAL_PRIORITY; if (hasFields) priority--; if (obj.isAbstract()) priority++; BugInstance bug = new BugInstance(this, "EQ_SELF_NO_OBJECT", priority).addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod); bugReporter.reportBug(bug); } } /* System.out.println("Class " + betterClassName); System.out.println("usesDefaultEquals: " + usesDefaultEquals); System.out.println("hasHashCode: : " + hasHashCode); System.out.println("usesDefaultHashCode: " + usesDefaultHashCode); System.out.println("hasEquals: : " + hasEqualsObject); */ if (!hasCompareToObject && hasCompareToSelf) { if (!extendsObject) bugReporter.reportBug(new BugInstance(this, "CO_SELF_NO_OBJECT", NORMAL_PRIORITY).addClass(getDottedClassName()).addMethod(compareToMethod)); } // if (!hasFields) return; if (hasHashCode && !hashCodeIsAbstract && !(hasEqualsObject || hasEqualsSelf)) { int priority = LOW_PRIORITY; if (usesDefaultEquals) bugReporter.reportBug(new BugInstance(this, "HE_HASHCODE_USE_OBJECT_EQUALS", priority).addClass(getDottedClassName()).addMethod(hashCodeMethod)); else if (!inheritedEqualsIsFinal) bugReporter.reportBug(new BugInstance(this, "HE_HASHCODE_NO_EQUALS", priority).addClass(getDottedClassName()).addMethod(hashCodeMethod)); } if (!hasHashCode && (hasEqualsObject && !equalsObjectIsAbstract || hasEqualsSelf)) { if (usesDefaultHashCode) { int priority = HIGH_PRIORITY; if (equalsMethodIsInstanceOfEquals) priority += 2; else if (obj.isAbstract() || !hasEqualsObject) priority++; if (priority == HIGH_PRIORITY) nonHashableClasses.add(getDottedClassName()); if (!visibleOutsidePackage) { priority++; } BugInstance bug = new BugInstance(this, "HE_EQUALS_USE_HASHCODE", priority).addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod); bugReporter.reportBug(bug); } else if (!inheritedHashCodeIsFinal && !whereHashCode.startsWith("java.util.Abstract")) { int priority = LOW_PRIORITY; if (hasEqualsObject && inheritedEqualsIsAbstract) priority++; if (hasFields) priority--; if (equalsMethodIsInstanceOfEquals || !hasEqualsObject) priority += 2; else if (obj.isAbstract()) priority++; BugInstance bug = new BugInstance(this, "HE_EQUALS_NO_HASHCODE", priority) .addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod); bugReporter.reportBug(bug); } } if (!hasHashCode && !hasEqualsObject && !hasEqualsSelf && !usesDefaultEquals && usesDefaultHashCode && !obj.isAbstract() && classThatDefinesEqualsIsAbstract) { BugInstance bug = new BugInstance(this, "HE_INHERITS_EQUALS_USE_HASHCODE", NORMAL_PRIORITY).addClass(getDottedClassName()); if (equalsMethod != null) bug.addMethod(equalsMethod); bugReporter.reportBug(bug); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/fbacd258759eb7b0d5261ab458b3ef549ba838c5/FindHEmismatch.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindHEmismatch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 1071, 918, 3757, 4436, 12, 5852, 797, 1081, 13, 288, 202, 202, 430, 16051, 2603, 18, 291, 797, 10756, 327, 31, 202, 202, 430, 261, 588, 10412, 2344, 3834, 7675, 14963, 2932, 6290, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1850, 1071, 918, 3757, 4436, 12, 5852, 797, 1081, 13, 288, 202, 202, 430, 16051, 2603, 18, 291, 797, 10756, 327, 31, 202, 202, 430, 261, 588, 10412, 2344, 3834, 7675, 14963, 2932, 6290, 18, ...
public static Box layout(LayoutContext c, Box block, Content content) {
public static BlockBox layout(LayoutContext c, BlockBox block, Content content) {
public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); // save height incase fixed height int original_height = block.height; // do children's layout c.setExtents(new Rectangle(c.getExtents())); List contentList = content.getChildContent(c); if (contentList != null && contentList.size() != 0) { InlineBoxing.layoutContent(c, block, content.getChildContent(c));//when this is really an anonymous, InlineLayout.layoutChildren is called } // restore height incase fixed height if (!block.getStyle().isAutoHeight()) { // Uu.p("restoring original height"); block.height = original_height; } //restore the extents c.setExtents(oe); return block; }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/365d5c0efcf4a646ee68af110b7ac1ac42b7efa4/AnonymousBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/AnonymousBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3914, 3514, 3511, 12, 3744, 1042, 276, 16, 3914, 3514, 1203, 16, 3697, 913, 13, 288, 3639, 368, 1610, 326, 24070, 3639, 13264, 320, 73, 273, 276, 18, 588, 2482, 4877, 5621, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3914, 3514, 3511, 12, 3744, 1042, 276, 16, 3914, 3514, 1203, 16, 3697, 913, 13, 288, 3639, 368, 1610, 326, 24070, 3639, 13264, 320, 73, 273, 276, 18, 588, 2482, 4877, 5621, 3...
new LabelAttributesContext( ),
attributesContext,
protected Composite getComponent( Composite parent ) { ChartUIUtil.bindHelp( parent, ChartHelpContextIds.POPUP_CHART_TITLE_FORMAT ); // Layout for the content composite GridLayout glContent = new GridLayout( ); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; glContent.marginHeight = 7; glContent.marginWidth = 7; // Sheet content composite Composite cmpContent = new Composite( parent, SWT.NONE ); cmpContent.setLayout( glContent ); lacDeco = new LabelAttributesComposite( cmpContent, SWT.NONE, getContext( ), new LabelAttributesContext( ), Messages.getString( "DecorationSheet.Label.DecorationLabels" ), //$NON-NLS-1$ series.getDecorationLabelPosition( ), series.getDecorationLabel( ), getChart( ).getUnits( ), LabelAttributesComposite.ALLOW_VERTICAL_POSITION ); GridData gdLACLabel = new GridData( GridData.FILL_HORIZONTAL ); gdLACLabel.horizontalSpan = 2; lacDeco.setLayoutData( gdLACLabel ); lacDeco.addListener( this ); return cmpContent; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/555b826e933f91b0cfc43ccafb1e4b47ab1f044f/DecorationSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/DecorationSheet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 7984, 5370, 1304, 18, 4376, 6696, 12, 982, 16, 9506, 202, 7984, 6696, 1042, 2673, 18, 30374, 3079, 67, 1792, 4928, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 7984, 5370, 1304, 18, 4376, 6696, 12, 982, 16, 9506, 202, 7984, 6696, 1042, 2673, 18, 30374, 3079, 67, 1792, 4928, 67, 1...
private void doSetProperty( ElementPropertyDefn prop, Object value ) throws ExtendedElementException { // Ignore duplicate values, even if the current value is not local. // This avoids making local copies if the user enters the existing // value, or if the UI gets a bit sloppy. Object oldValue = element.getLocalProperty( design, prop ); if ( oldValue == null && value == null ) return; if ( oldValue != null && value != null && oldValue.equals( value ) ) return; // The values differ. Make the change. if ( element instanceof ExtendedItem ) { ExtendedItem extendedItem = ( (ExtendedItem) element ); if ( extendedItem.isExtensionModelProperty( prop.getName( ) ) || extendedItem.isExtensionXMLProperty( prop.getName( ) ) ) { IReportItem extElement = extendedItem.getExtendedElement( ); // if ( extElement == null ) // { // extendedItem.initializeReportItem( design ); // extElement = ( (ExtendedItem) element ) // .getExtendedElement( ); // } assert extElement != null; extElement.checkProperty( prop.getName( ), value ); extElement.setProperty( prop.getName( ), value ); return; } } PropertyRecord record = new PropertyRecord( element, prop, value ); getActivityStack( ).execute( record ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b555f54e73c194ae2e09b6069c3b7b8fa919285d/PropertyCommand.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/PropertyCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 694, 1396, 12, 3010, 1396, 3262, 82, 2270, 16, 1033, 460, 262, 1082, 202, 15069, 14094, 20826, 202, 95, 202, 202, 759, 8049, 6751, 924, 16, 5456, 309, 326, 783, 460...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 694, 1396, 12, 3010, 1396, 3262, 82, 2270, 16, 1033, 460, 262, 1082, 202, 15069, 14094, 20826, 202, 95, 202, 202, 759, 8049, 6751, 924, 16, 5456, 309, 326, 783, 460...
public String calendarPdfReference(String context, String id, int scheduleType, List calendars, String timeRangeString,
public String calendarPdfReference(String context, String id, int scheduleType, String timeRangeString,
public String calendarPdfReference(String context, String id, int scheduleType, List calendars, String timeRangeString, String userName, TimeRange dailyTimeRange);
52989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52989/389f5271d513b36226a18087f34f58997ff0299f/CalendarService.java/buggy/calendar-api/api/src/java/org/sakaiproject/calendar/api/CalendarService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 5686, 18562, 2404, 12, 780, 819, 16, 514, 612, 16, 509, 4788, 559, 16, 987, 5686, 87, 16, 514, 813, 2655, 780, 16, 1082, 202, 780, 12065, 16, 2647, 2655, 18872, 950, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 5686, 18562, 2404, 12, 780, 819, 16, 514, 612, 16, 509, 4788, 559, 16, 987, 5686, 87, 16, 514, 813, 2655, 780, 16, 1082, 202, 780, 12065, 16, 2647, 2655, 18872, 950, 26...
if(subTypes[j].equalsIgnoreCase(subtypes[i])) continue;
if(subTypes[j].equalsIgnoreCase(subtypes[i])) { continue gotSubType; }
public boolean hasSubtypes(String[] subtypes) { for(int i=0; i<subtypes.length; i++) { for(int j=0; j<subTypes.length; j++) { if(subTypes[j].equalsIgnoreCase(subtypes[i])) continue; } return false; } return true; }
9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/cd75a1c9d903fd52a32930832d84c2c26f380ba9/LDAPAttribute.java/clean/com/novell/ldap/LDAPAttribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1676, 2352, 12, 780, 8526, 720, 2352, 13, 288, 3639, 364, 12, 474, 277, 33, 20, 31, 277, 32, 1717, 2352, 18, 2469, 31, 277, 27245, 288, 5411, 364, 12, 474, 525, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1676, 2352, 12, 780, 8526, 720, 2352, 13, 288, 3639, 364, 12, 474, 277, 33, 20, 31, 277, 32, 1717, 2352, 18, 2469, 31, 277, 27245, 288, 5411, 364, 12, 474, 525, 33, ...
public SQLCommand(ListUserObjectsCommand tc, PropertyRegistry registry) { tableCompleter = tc;
protected SQLCommand(ListUserObjectsCommand tc) {
public SQLCommand(ListUserObjectsCommand tc, PropertyRegistry registry) { tableCompleter = tc; _columnDelimiter = "|"; _rowLimit = 2000; _showHeader = true; _showFooter = true; registry.registerProperty("column-delimiter", new SQLColumnDelimiterProperty()); registry.registerProperty("sql-result-limit", new RowLimitProperty()); registry.registerProperty("sql-result-showheader", new ShowHeaderProperty()); registry.registerProperty("sql-result-showfooter", new ShowFooterProperty()); _statementCanceller = new StatementCanceller(new CurrentStatementCancelTarget()); new Thread(_statementCanceller).start(); }
9659 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9659/0ec49058fc4194836877344a9b99a32bcba7ef42/SQLCommand.java/buggy/src/henplus/commands/SQLCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3063, 2189, 12, 682, 1299, 4710, 2189, 1715, 16, 4276, 4243, 4023, 13, 288, 202, 2121, 799, 17754, 273, 1715, 31, 3639, 389, 2827, 12007, 273, 11747, 14432, 3639, 389, 492, 3039, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3063, 2189, 12, 682, 1299, 4710, 2189, 1715, 16, 4276, 4243, 4023, 13, 288, 202, 2121, 799, 17754, 273, 1715, 31, 3639, 389, 2827, 12007, 273, 11747, 14432, 3639, 389, 492, 3039, 27...
ammo.techType = TechConstants.T_CLAN_LEVEL_2;
public static AmmoType createCLNarcExplosiveAmmo() { AmmoType ammo = new AmmoType(); ammo.techLevel = TechConstants.T_CLAN_LEVEL_2; ammo.name = "Narc Explosive Pods"; ammo.setInternalName("CLNarc Explosive Pods"); ammo.damagePerShot = 4; ammo.rackSize = 1; ammo.ammoType = AmmoType.T_NARC; ammo.munitionType = AmmoType.M_NARC_EX; ammo.shots = 6; ammo.bv = 0; ammo.techType = TechConstants.T_CLAN_LEVEL_2; return ammo; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/97af35d91fd53f33252e946d590f48a8cdd244c1/AmmoType.java/clean/megamek/src/megamek/common/AmmoType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3986, 8683, 559, 752, 5017, 50, 11828, 2966, 383, 18376, 37, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 2801...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3986, 8683, 559, 752, 5017, 50, 11828, 2966, 383, 18376, 37, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 2801...
msg = "no annotation instances in file.";
msg = "no files to dispatch to.";
public void run(IProgressMonitor monitor) { // // bail-out early if there aren't factories, or if there aren't any annotation instances // if ( !shouldProcess() ) { // tracing if ( AptPlugin.DEBUG ) { String msg; if ( _factories == null || _factories.size() == 0 ) msg = "no AnnotationProcessoryFactory instances registered."; //$NON-NLS-1$ else msg = "no annotation instances in file."; //$NON-NLS-1$ trace( "run(): leaving early because there are " + msg, //$NON-NLS-1$ null); } Set<IFile> allDeletedFiles = new HashSet<IFile>(); if( !_isFullBuild ){ for( int i=0, len = _originalFiles.length; i<len; i++ ){ IFile f = _originalFiles[i]; final Set<IFile> deletedFiles = cleanupAllGeneratedFilesForParent( f, _compilationUnit, null ); if( deletedFiles != null ) allDeletedFiles.addAll(deletedFiles); } } if ( allDeletedFiles.size() == 0 ) _result = EMPTY_APT_RESULT; else _result = new APTResult( Collections.<IFile>emptySet(), allDeletedFiles, Collections.<IFile, Set<String>>emptyMap(), Collections.<IFile, List<IProblem>>emptyMap(), false, false ); } else { ProcessorEnvImpl processorEnv; if ( _compilationUnit != null ) { processorEnv = ProcessorEnvImpl .newProcessorEnvironmentForReconcile(_compilationUnit, _javaProject); } else { processorEnv = ProcessorEnvImpl .newProcessorEnvironmentForBuild( _allFilesRequireProcessing, _javaProject); } _result = runAPT(_factories, processorEnv); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c020688b25edf08bbc7d8d68981663ad78d2a9d8/APTDispatchRunnable.java/clean/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatchRunnable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 225, 202, 95, 1082, 202, 759, 202, 202, 759, 225, 18422, 17, 659, 11646, 309, 1915, 11526, 1404, 17456, 16, 578, 309, 1915, 11526, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5491, 7187, 6438, 13, 225, 202, 95, 1082, 202, 759, 202, 202, 759, 225, 18422, 17, 659, 11646, 309, 1915, 11526, 1404, 17456, 16, 578, 309, 1915, 11526, 140...
fc.setSelectedFile(null);
fc.setSelectedFile(null);
public boolean saveAs() { JFileChooser fc = _saveChooser; fc.setSelectedFile(null); int rc = fc.showSaveDialog(this); switch(rc) { case JFileChooser.CANCEL_OPTION: case JFileChooser.ERROR_OPTION: return false; case JFileChooser.APPROVE_OPTION: File chosen = fc.getSelectedFile(); if (chosen != null) return saveToFile(chosen.getAbsolutePath()); else return false; default: // impossible since rc must be one of these throw new RuntimeException("filechooser returned bad rc " + rc); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/DefinitionsPane.java/buggy/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1923, 1463, 1435, 225, 288, 565, 804, 812, 17324, 8036, 273, 389, 5688, 17324, 31, 202, 202, 7142, 18, 542, 7416, 812, 12, 2011, 1769, 565, 509, 4519, 273, 8036, 18, 4500, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1923, 1463, 1435, 225, 288, 565, 804, 812, 17324, 8036, 273, 389, 5688, 17324, 31, 202, 202, 7142, 18, 542, 7416, 812, 12, 2011, 1769, 565, 509, 4519, 273, 8036, 18, 4500, 4...
n = n.getNextSibling();
n = ns;
public Node insertBefore(Node newChild, Node refChild) throws DOMException { if (refChild != null && childNodes == null) { throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing", new Object[] { new Integer(refChild.getNodeType()), refChild.getNodeName() }); } checkAndRemove(newChild); if (newChild.getNodeType() == DOCUMENT_FRAGMENT_NODE) { Node n = newChild.getFirstChild(); while (n != null) { insertBefore(n, refChild); n = n.getNextSibling(); } return newChild; } else { // Node modification ExtendedNode n = childNodes.insert((ExtendedNode)newChild, (ExtendedNode)refChild); n.setParentNode(this); // Mutation event fireDOMNodeInsertedEvent(n); fireDOMSubtreeModifiedEvent(); return n; } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/3fcb4ac3d90ea7be2c354ea6e4a31629cade8bcf/AbstractParentNode.java/clean/sources/org/apache/batik/dom/AbstractParentNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 18004, 12, 907, 19783, 16, 2029, 1278, 1763, 13, 3639, 1216, 4703, 503, 288, 202, 430, 261, 1734, 1763, 480, 446, 597, 10582, 422, 446, 13, 288, 202, 565, 604, 752, 8168, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 18004, 12, 907, 19783, 16, 2029, 1278, 1763, 13, 3639, 1216, 4703, 503, 288, 202, 430, 261, 1734, 1763, 480, 446, 597, 10582, 422, 446, 13, 288, 202, 565, 604, 752, 8168, 50...
boolean root) { if (RCBase.isRCObject(object)) { if (RefCountSpace.incSanityRC(object, root)) Scan.enumeratePointers(object, sanityEnum); } else if (RefCountSpace.markSanityRC(object)) Scan.enumeratePointers(object, sanityEnum); }
boolean root) { if (RCBase.isRCObject(object)) { if (RefCountSpace.incSanityRC(object, root)) Scan.enumeratePointers(object, sanityEnum); } else if (RefCountSpace.markSanityRC(object)) Scan.enumeratePointers(object, sanityEnum); }
public void incSanityTrace(ObjectReference object, Address location, boolean root) { if (RCBase.isRCObject(object)) { if (RefCountSpace.incSanityRC(object, root)) Scan.enumeratePointers(object, sanityEnum); } else if (RefCountSpace.markSanityRC(object)) Scan.enumeratePointers(object, sanityEnum); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/RCBaseMutator.java/clean/MMTk/src/org/mmtk/plan/refcount/RCBaseMutator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7290, 55, 10417, 3448, 12, 22101, 733, 16, 5267, 2117, 16, 1082, 202, 6494, 1365, 13, 288, 202, 202, 430, 261, 11529, 2171, 18, 291, 11529, 921, 12, 1612, 3719, 288, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7290, 55, 10417, 3448, 12, 22101, 733, 16, 5267, 2117, 16, 1082, 202, 6494, 1365, 13, 288, 202, 202, 430, 261, 11529, 2171, 18, 291, 11529, 921, 12, 1612, 3719, 288, 1082...
super(Tag); }
super(Tag); }
ResultSorter(String Tag){ super(Tag); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/ce31ec0ca81f17d0dd5a6c08e86c15d748a6e0e1/AddressBook.java/clean/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3438, 24952, 12, 780, 4034, 15329, 1377, 2240, 12, 1805, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3438, 24952, 12, 780, 4034, 15329, 1377, 2240, 12, 1805, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
assertEquals(receiveValue.getTime().getTime(), rs.getTimestamp(1).getTime());
assertEquals(receiveValue.getTime().getTime(), getTimeInMs(rs));
public void testDatetimeRounding8() throws Exception { // Per the SQL Server documentation // Send: 01/01/98 23:59:59.997 // Receive: 01/01/98 23:59:59.997 Calendar sendValue = Calendar.getInstance(); Calendar receiveValue = Calendar.getInstance(); sendValue.set(Calendar.MONTH, Calendar.JANUARY); sendValue.set(Calendar.DAY_OF_MONTH, 1); sendValue.set(Calendar.YEAR, 1998); sendValue.set(Calendar.HOUR_OF_DAY, 23); sendValue.set(Calendar.MINUTE, 59); sendValue.set(Calendar.SECOND, 59); sendValue.set(Calendar.MILLISECOND, 997); receiveValue.set(Calendar.MONTH, Calendar.JANUARY); receiveValue.set(Calendar.DAY_OF_MONTH, 1); receiveValue.set(Calendar.YEAR, 1998); receiveValue.set(Calendar.HOUR_OF_DAY, 23); receiveValue.set(Calendar.MINUTE, 59); receiveValue.set(Calendar.SECOND, 59); receiveValue.set(Calendar.MILLISECOND, 997); Statement stmt = con.createStatement(); stmt.execute("create table #dtr8 (data datetime)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("insert into #dtr8 (data) values (?)"); pstmt.setTimestamp(1, new Timestamp(sendValue.getTime().getTime())); assertEquals(pstmt.executeUpdate(), 1); pstmt.close(); pstmt = con.prepareStatement("select data from #dtr8"); ResultSet rs = pstmt.executeQuery(); assertTrue(rs.next()); assertEquals(receiveValue.getTime().getTime(), rs.getTimestamp(1).getTime()); assertTrue(!rs.next()); pstmt.close(); rs.close(); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/feadc930c36b180a3fa2cc423b6474f399f6befc/TimestampTest.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 16103, 11066, 310, 28, 1435, 1216, 1185, 288, 3639, 368, 5722, 326, 3063, 3224, 7323, 3639, 368, 2479, 30, 565, 8743, 19, 1611, 19, 10689, 10213, 30, 6162, 30, 6162, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 16103, 11066, 310, 28, 1435, 1216, 1185, 288, 3639, 368, 5722, 326, 3063, 3224, 7323, 3639, 368, 2479, 30, 565, 8743, 19, 1611, 19, 10689, 10213, 30, 6162, 30, 6162, 18, ...
return(instance.nativeWebShellCreate(windowPtr,
return(instance.nativeWebShellCreate(windowPtr,
public static int webShellCreate (int windowPtr, Rectangle bounds) throws Exception { synchronized(lock) { if (initialized) { return(instance.nativeWebShellCreate(windowPtr, bounds.x, bounds.y, bounds.width + 1, bounds.height + 1)); } else { throw new Exception("Error: unable to create native nsIWebShell"); } }}
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/01cdae7df9018065a18932e38018e8d6b79045b4/BrowserControlNativeShim.java/buggy/java/webclient/classes/org/mozilla/webclient/BrowserControlNativeShim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 509, 3311, 13220, 1684, 261, 474, 2742, 5263, 16, 4766, 282, 13264, 4972, 13, 1216, 1185, 288, 202, 22043, 12, 739, 13, 288, 202, 202, 430, 261, 13227, 13, 288, 1082, 202, 2463, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 509, 3311, 13220, 1684, 261, 474, 2742, 5263, 16, 4766, 282, 13264, 4972, 13, 1216, 1185, 288, 202, 22043, 12, 739, 13, 288, 202, 202, 430, 261, 13227, 13, 288, 1082, 202, 2463, 1...
Composite group = new Composite(parent, SWT.NONE); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); group.setLayout(new GridLayout()); group.setFont(parent.getFont()); anyResourceButton = createRadioButton(group, MarkerMessages .filtersDialog_anyResource); anyResourceInSameProjectButton = createRadioButton( group, MarkerMessages.filtersDialog_anyResourceInSameProject); selectedResourceButton = createRadioButton(group, MarkerMessages .filtersDialog_selectedResource); selectedResourceAndChildrenButton = createRadioButton(group, MarkerMessages.filtersDialog_selectedAndChildren); workingSetGroup = new WorkingSetGroup(group); }
Composite group = new Composite(parent, SWT.NONE); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); group.setLayout(new GridLayout()); group.setFont(parent.getFont()); anyResourceButton = createRadioButton(group, MarkerMessages.filtersDialog_anyResource); anyResourceInSameProjectButton = createRadioButton(group, MarkerMessages.filtersDialog_anyResourceInSameProject); selectedResourceButton = createRadioButton(group, MarkerMessages.filtersDialog_selectedResource); selectedResourceAndChildrenButton = createRadioButton(group, MarkerMessages.filtersDialog_selectedAndChildren); workingSetGroup = new WorkingSetGroup(group); }
protected void createResourceArea(Composite parent) { Composite group = new Composite(parent, SWT.NONE); group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); group.setLayout(new GridLayout()); group.setFont(parent.getFont()); anyResourceButton = createRadioButton(group, MarkerMessages .filtersDialog_anyResource); anyResourceInSameProjectButton = createRadioButton( group, MarkerMessages.filtersDialog_anyResourceInSameProject); //added by cagatayk@acm.org selectedResourceButton = createRadioButton(group, MarkerMessages .filtersDialog_selectedResource); selectedResourceAndChildrenButton = createRadioButton(group, MarkerMessages.filtersDialog_selectedAndChildren); workingSetGroup = new WorkingSetGroup(group); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c08a91512d1b5534132c133486d2efd84191df7d/DialogMarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24317, 5484, 12, 9400, 982, 13, 288, 3639, 14728, 1041, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 1041, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24317, 5484, 12, 9400, 982, 13, 288, 3639, 14728, 1041, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 1041, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 631...
public org.quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound { org.quickfix.field.UnderlyingSymbol value = new org.quickfix.field.UnderlyingSymbol();
public quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound { quickfix.field.UnderlyingSymbol value = new quickfix.field.UnderlyingSymbol();
public org.quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound { org.quickfix.field.UnderlyingSymbol value = new org.quickfix.field.UnderlyingSymbol(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequest.java/clean/src/java/src/quickfix/fix44/TradeCaptureReportRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 10833, 765, 6291, 5335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 460, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 10833, 765, 6291, 5335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 5335, 460, 273, 394...
public ParseResult parse(ByteBuffer buf) { //=============================================== // This method is very procedural, to make // cleanup after errors easier. In general, // there are a lot of helper functions called // which return true/false. Most of these operate // on the MIMEAccumulator data member. If false // is returned from these methods, this method // performs cleanup and enters passthru mode. // -wrs 7/05 // // m_logger.debug("parse. State: " + m_state); //Do tracing stuff getSmtpCasing().traceParse(buf); //Check for passthru if(isPassthru()) { m_logger.debug("Passthru buffer (" + buf.remaining() + " bytes)"); return new ParseResult(new Chunk(buf)); } List<Token> toks = new LinkedList<Token>(); boolean done = false; while(!done && buf.hasRemaining()) { m_logger.debug("Draining tokens from buffer (" + toks.size() + " tokens so far)"); if(isPassthru()) { return new ParseResult(new Chunk(buf)); } switch(m_state) { //================================================== case COMMAND: //TODO bscott we need a guard here to prevent // obscenely long lines, and to prevent us from // kicking-back the buffer to the caller // in ever-increasing sizes. Otherwise, // an easy attack is to simply stream // bytes w/o CRLF // m_logger.debug(m_state + " state"); if(findCrLf(buf) >= 0) {//BEGIN Complete Command //Parse the next command. If there is a parse error, //pass along the original chunk ByteBuffer dup = buf.duplicate(); Command cmd = null; try { cmd = CommandParser.parse(buf); } catch(ParseException pe) { //Duplicate the bad buffer dup.limit(findCrLf(dup) + 2); ByteBuffer badBuf = ByteBuffer.allocate(dup.remaining()); badBuf.put(dup); badBuf.flip(); //Position the "real" buffer beyond the bad point. buf.position(dup.position()); m_logger.error("Exception parsing command line \"" + ASCIIUtil.bbToString(badBuf) + "\". Pass to server and monitor response", pe); cmd = new UnparsableCommand(badBuf); getSessionTracker().commandReceived(cmd, new CommandParseErrorResponseCallback(badBuf)); toks.add(cmd); break; } //If we're here, we have a legitimate command toks.add(cmd); m_logger.debug("Received command: " + cmd.toDebugString()); if(cmd.getType() == Command.CommandType.STARTTLS) { m_logger.debug("Enqueue observer for response to STARTTLS, " + "to go into passthru if accepted"); getSessionTracker().commandReceived(cmd, new TLSResponseCallback()); } else if(cmd.getType() == Command.CommandType.DATA) { m_logger.debug("entering data transmission (DATA)"); if(!openMIMEAccumulator()) { //Error opening the temp file. The //error has been reported and the temp file //cleaned-up m_logger.debug("Declare passthru as we cannot buffer MIME"); declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(buf)); return new ParseResult(toks, null); } m_logger.debug("Change state to " + SmtpClientState.HEADERS + ". Enqueue response handler in case DATA " + "command rejected (returning us to " + SmtpClientState.COMMAND + ")"); getSessionTracker().commandReceived(cmd, new DATAResponseCallback()); changeState(SmtpClientState.HEADERS); //Go back and start evaluating the header bytes. } else { getSessionTracker().commandReceived(cmd); } }//ENDOF Complete Command else {//BEGIN Not complete Command //TODO bscott see note above. This is vulnerable // to attack m_logger.debug("Command line does not end with CRLF. Need more bytes"); done = true; }//ENDOF Not complete Command break; //================================================== case HEADERS:// m_logger.debug(m_state + " state. buf remaining " + buf.remaining()); getSessionTracker().beginMsgTransmission(); //Duplicate the buffer, in case we have a problem ByteBuffer dup = buf.duplicate(); boolean endOfHeaders = false; try { endOfHeaders = m_mimeAccumulator.getScanner().processHeaders(buf, 1024*4);//TODO bscott a real value here } catch(LineTooLongException ltle) { m_logger.error("Exception looking for headers end", ltle); m_mimeAccumulator.closeFromError(); m_mimeAccumulator = null; declarePassthru(); toks.add(PassThruToken.PASSTHRU); toks.add(new Chunk(dup)); return new ParseResult(toks, null); } //If we're here, we didn't get a line which was too long. Write //what we have to disk. ByteBuffer dup2 = dup.duplicate(); dup2.limit(buf.position()); if(m_mimeAccumulator.getScanner().isHeadersBlank()) { //TODO bscott remove debugging (yet again) int len = dup.remaining()>80?80:dup.remaining(); ByteBuffer dup3 = dup.duplicate(); dup3.limit(dup3.position() + len); m_logger.debug("Headers are blank (first " + len + " bytes \"" + ASCIIUtil.bbToString(dup3) + "\")"); } else { m_logger.debug("About to write the " + (endOfHeaders?"last":"next") + " " + dup2.remaining() + " header bytes to disk"); } if(!writeHeaderBytesToFile(dup2)) { m_logger.error("Unable to write header bytes to disk. Enter passthru"); //Get any bytes trapped in the file ByteBuffer trapped = drainFileToByteBuffer(); //Nuke the accumulator m_mimeAccumulator.closeFromError(); //Passthru declarePassthru(); toks.add(PassThruToken.PASSTHRU); if(trapped != null && trapped.remaining() > 0) { toks.add(new Chunk(trapped)); } toks.add(new Chunk(dup)); return new ParseResult(toks, null); } if(endOfHeaders) {//BEGIN End of Headers if(!parseHeaders()) {//BEGIN Header PArse Error m_logger.error("Unable to parse headers. Enter passthru"); //Get any bytes trapped in the file ByteBuffer trapped = drainFileToByteBuffer(); //Nuke the accumulator m_mimeAccumulator.closeFromError(); //Passthru declarePassthru(); toks.add(PassThruToken.PASSTHRU); if(trapped != null && trapped.remaining() > 0) { toks.add(new Chunk(trapped)); } toks.add(new Chunk(dup)); return new ParseResult(toks, null); }//ENDOF Header PArse Error int headersLength = (int) m_mimeAccumulator.getFile().length(); m_logger.debug("Parsed headers successfully (length " + headersLength + ")"); toks.add(new BeginMIMEToken(m_mimeAccumulator.getHeaders(), m_mimeAccumulator.getFileSource(), headersLength, createMessageInfo())); changeState(SmtpClientState.BODY); if(m_mimeAccumulator.getScanner().isEmptyMessage()) { m_logger.debug("Message blank. Skip to reading commands"); toks.add(new ContinuedMIMEToken(true)); changeState(SmtpClientState.COMMAND); } m_mimeAccumulator.closeNormal(); }//ENDOF End of Headers else { m_logger.debug("Need more header bytes"); done = true; } break; //================================================== case BODY:// m_logger.debug(m_state + " state"); ByteBuffer bodyBuf = ByteBuffer.allocate(buf.remaining()); boolean bodyEnd = m_mimeAccumulator.getScanner().processBody(buf, bodyBuf); bodyBuf.flip(); if(bodyEnd) { m_logger.debug("Found end of body"); m_mimeAccumulator.closeNormal(); m_mimeAccumulator = null; changeState(SmtpClientState.COMMAND); } else { done = true; } m_logger.debug("Adding continued MIME token with length: " + bodyBuf.remaining()); toks.add(new ContinuedMIMEToken(bodyBuf, bodyEnd, false)); break; } } //Compact the buffer buf = compactIfNotEmpty(buf); if(buf == null) { m_logger.debug("returning ParseResult with " + toks.size() + " tokens and a null buffer"); } else { m_logger.debug("returning ParseResult with " + toks.size() + " tokens and a buffer with " + buf.remaining() + " remaining (" + buf.position() + " to be seen on next invocation)"); } return new ParseResult(toks, buf); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/995cef7f1499d63383d5b820045baf3e35b064be/SmtpClientParser.java/buggy/tran/mail/main/com/metavize/tran/mail/impl/smtp/SmtpClientParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2884, 1253, 1109, 12, 12242, 1681, 13, 288, 565, 368, 4428, 14468, 12275, 565, 368, 1220, 707, 353, 8572, 450, 3263, 3766, 16, 358, 1221, 565, 368, 6686, 1839, 1334, 15857, 18, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2884, 1253, 1109, 12, 12242, 1681, 13, 288, 565, 368, 4428, 14468, 12275, 565, 368, 1220, 707, 353, 8572, 450, 3263, 3766, 16, 358, 1221, 565, 368, 6686, 1839, 1334, 15857, 18, 225,...
return this.persistantProperties; }
return this.persistantProperties; }
public GrailsDomainClassProperty[] getPersistantProperties() { return this.persistantProperties; }
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10812, 14573, 3748, 797, 1396, 8526, 1689, 2462, 970, 2297, 1435, 288, 202, 202, 2463, 333, 18, 19251, 970, 2297, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10812, 14573, 3748, 797, 1396, 8526, 1689, 2462, 970, 2297, 1435, 288, 202, 202, 2463, 333, 18, 19251, 970, 2297, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
Object o = bodies.get(id); BodyAdapter rbody = (BodyAdapter) o;
BodyAdapter rbody = bodies.get(id);
public int receiveRequest(UniqueID id, Request request) throws IOException, RenegotiateSessionException { // a FuturProxy can be present inside r and must know if it is running // on a body forwarder or not. See FuturProxy.writeObject FuturePool.addMeAsBodyForwarder(); try { Object o = bodies.get(id); BodyAdapter rbody = (BodyAdapter) o; if (rbody != null) { return rbody.receiveRequest(request); } else { throw new IOException("No BodyAdapter associated to id=" + id); } } finally { FuturePool.removeMeFromBodyForwarders(); } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/37c8e6097acabc81aec07825e20b696a91c8ae0b/BodyForwarderImpl.java/buggy/src/org/objectweb/proactive/core/body/BodyForwarderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 6798, 691, 12, 31118, 612, 16, 1567, 590, 13, 3639, 1216, 1860, 16, 25921, 27445, 3840, 2157, 503, 288, 3639, 368, 279, 478, 322, 295, 3886, 848, 506, 3430, 4832, 436, 471, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 6798, 691, 12, 31118, 612, 16, 1567, 590, 13, 3639, 1216, 1860, 16, 25921, 27445, 3840, 2157, 503, 288, 3639, 368, 279, 478, 322, 295, 3886, 848, 506, 3430, 4832, 436, 471, 1...
case CSSPrimitiveValue.CSS_IDENT: if (value.getStringValue().equalsIgnoreCase("none")) {
case CSSPrimitiveValue.CSS_IDENT: { String str = value.getStringValue(); if (str.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
public short getPaintType() { Value value = valueProvider.getValue(); switch (value.getCssValueType()) { case CSSValue.CSS_PRIMITIVE_VALUE: switch (value.getPrimitiveType()) { case CSSPrimitiveValue.CSS_IDENT: if (value.getStringValue().equalsIgnoreCase("none")) { return SVG_PAINTTYPE_NONE; } return SVG_PAINTTYPE_CURRENTCOLOR; case CSSPrimitiveValue.CSS_RGBCOLOR: return SVG_PAINTTYPE_RGBCOLOR; case CSSPrimitiveValue.CSS_URI: return SVG_PAINTTYPE_URI; } break; case CSSValue.CSS_VALUE_LIST: Value v0 = value.item(0); Value v1 = value.item(1); switch (v0.getPrimitiveType()) { case CSSPrimitiveValue.CSS_URI: switch (v1.getPrimitiveType()) { case CSSPrimitiveValue.CSS_IDENT: if (value.getStringValue().equalsIgnoreCase("none")) { return SVG_PAINTTYPE_URI_NONE; } return SVG_PAINTTYPE_URI_CURRENTCOLOR; case CSSPrimitiveValue.CSS_RGBCOLOR: if (value.getLength() == 3) { return SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR; } return SVG_PAINTTYPE_URI_RGBCOLOR; } case CSSPrimitiveValue.CSS_RGBCOLOR: return SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR; } } throw new InternalError(); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/7db088f8b9217653c21ad110592b7ebe49dad32a/CSSOMSVGPaint.java/buggy/sources/org/apache/batik/css/dom/CSSOMSVGPaint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1689, 1598, 559, 1435, 288, 3639, 1445, 460, 273, 460, 2249, 18, 24805, 5621, 3639, 1620, 261, 1132, 18, 588, 7359, 17930, 10756, 288, 3639, 648, 6765, 620, 18, 10276, 67, 769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3025, 1689, 1598, 559, 1435, 288, 3639, 1445, 460, 273, 460, 2249, 18, 24805, 5621, 3639, 1620, 261, 1132, 18, 588, 7359, 17930, 10756, 288, 3639, 648, 6765, 620, 18, 10276, 67, 769...
kind == t.kind && listsEqual(fields, t.fields));
(structName == t.structName || (structName != null && structName.equals(t.structName))) && kind == t.kind && listsEqual(fields, t.fields));
public boolean equals(Object arg) { if (arg == this) return true; if (arg == null || (!(arg instanceof CompoundType))) { return false; } CompoundType t = (CompoundType) arg; return (super.equals(arg) && kind == t.kind && listsEqual(fields, t.fields)); }
53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/57b593f06e39e92b4c41b12e53862ca30e8a41bf/CompoundType.java/buggy/src/net/java/games/gluegen/cgram/types/CompoundType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1606, 12, 921, 1501, 13, 288, 565, 309, 261, 3175, 422, 333, 13, 327, 638, 31, 565, 309, 261, 3175, 422, 446, 747, 16051, 12, 3175, 1276, 21327, 559, 20349, 288, 1377, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1606, 12, 921, 1501, 13, 288, 565, 309, 261, 3175, 422, 333, 13, 327, 638, 31, 565, 309, 261, 3175, 422, 446, 747, 16051, 12, 3175, 1276, 21327, 559, 20349, 288, 1377, 327, ...
e.mark(end); e.return_value(); e.end_method(); }
e.mark(end); e.return_value(); e.end_method(); }
private void emitBindCallbacks(ClassEmitter ce) { CodeEmitter e = ce.begin_method(Constants.PRIVATE_FINAL_STATIC, BIND_CALLBACKS, null, null); Local me = e.make_local(); e.load_arg(0); e.checkcast_this(); e.store_local(me); Label end = e.make_label(); e.load_local(me); e.getfield(BOUND_FIELD); e.if_jump(e.NE, end); e.load_local(me); e.push(1); e.putfield(BOUND_FIELD); e.getfield(THREAD_CALLBACKS_FIELD); e.invoke_virtual(THREAD_LOCAL, THREAD_LOCAL_GET); e.dup(); Label found_callback = e.make_label(); e.ifnonnull(found_callback); e.pop(); e.getfield(STATIC_CALLBACKS_FIELD); e.dup(); e.ifnonnull(found_callback); e.pop(); e.goTo(end); e.mark(found_callback); e.checkcast(CALLBACK_ARRAY); e.load_local(me); e.swap(); for (int i = callbackTypes.length - 1; i >= 0; i--) { if (i != 0) { e.dup2(); } e.aaload(i); e.checkcast(callbackTypes[i]); e.putfield(getCallbackField(i)); } e.mark(end); e.return_value(); e.end_method(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4c632c609488fb8900f7eb5390cd16cbaaf04adf/AdvancedEnhancer.java/clean/source/net/sf/cglib/proxy/AdvancedEnhancer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3626, 3357, 10617, 12, 797, 13476, 5898, 13, 288, 3639, 3356, 13476, 425, 273, 5898, 18, 10086, 67, 2039, 12, 2918, 18, 20055, 67, 7263, 1013, 67, 22741, 16, 4766, 3639, 605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3626, 3357, 10617, 12, 797, 13476, 5898, 13, 288, 3639, 3356, 13476, 425, 273, 5898, 18, 10086, 67, 2039, 12, 2918, 18, 20055, 67, 7263, 1013, 67, 22741, 16, 4766, 3639, 605, ...
if(finallyBlock != null) { if(!codeBlockMayCompleteNormally(finallyBlock)) {
if(finallyBlock != null){ if(!codeBlockMayCompleteNormally(finallyBlock)){
public static boolean statementMayCompleteNormally(PsiStatement statement){ if(statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement || statement instanceof PsiReturnStatement || statement instanceof PsiThrowStatement) { return false; } else if(statement instanceof PsiExpressionListStatement || statement instanceof PsiExpressionStatement || statement instanceof PsiEmptyStatement || statement instanceof PsiAssertStatement || statement instanceof PsiDeclarationStatement) { return true; } else if(statement instanceof PsiForStatement) { final PsiForStatement loopStatement = (PsiForStatement) statement; final PsiExpression test = loopStatement.getCondition(); return test != null && !isBooleanConstant(test, false) || statementIsBreakTarget(loopStatement); } else if(statement instanceof PsiWhileStatement) { final PsiWhileStatement loopStatement = (PsiWhileStatement) statement; final PsiExpression test = loopStatement.getCondition(); return !isBooleanConstant(test, true) || statementIsBreakTarget(loopStatement); } else if(statement instanceof PsiDoWhileStatement) { final PsiDoWhileStatement loopStatement = (PsiDoWhileStatement) statement; final PsiExpression test = loopStatement.getCondition(); final PsiStatement body = loopStatement.getBody(); return statementMayCompleteNormally(body) && !isBooleanConstant(test, true) || statementIsBreakTarget(loopStatement); } else if(statement instanceof PsiSynchronizedStatement) { final PsiCodeBlock body = ((PsiSynchronizedStatement) statement).getBody(); return codeBlockMayCompleteNormally(body); } else if(statement instanceof PsiBlockStatement) { final PsiCodeBlock codeBlock = ((PsiBlockStatement) statement).getCodeBlock(); return codeBlockMayCompleteNormally(codeBlock); } else if(statement instanceof PsiLabeledStatement) { final PsiLabeledStatement labeledStatement = (PsiLabeledStatement) statement; final PsiStatement body = labeledStatement.getStatement(); return statementMayCompleteNormally(body) || statementIsBreakTarget(body); } else if(statement instanceof PsiIfStatement) { final PsiIfStatement ifStatement = (PsiIfStatement) statement; final PsiStatement thenBranch = ifStatement.getThenBranch(); if(statementMayCompleteNormally(thenBranch)) { return true; } final PsiStatement elseBranch = ifStatement.getElseBranch(); return elseBranch == null || statementMayCompleteNormally(elseBranch); } else if(statement instanceof PsiTryStatement) { final PsiTryStatement tryStatement = (PsiTryStatement) statement; final PsiCodeBlock finallyBlock = tryStatement.getFinallyBlock(); if(finallyBlock != null) { if(!codeBlockMayCompleteNormally(finallyBlock)) { return false; } } final PsiCodeBlock tryBlock = tryStatement.getTryBlock(); if(codeBlockMayCompleteNormally(tryBlock)) { return true; } final PsiCodeBlock[] catchBlocks = tryStatement.getCatchBlocks(); for(final PsiCodeBlock catchBlock : catchBlocks){ if(codeBlockMayCompleteNormally(catchBlock)){ return true; } } return false; } else if(statement instanceof PsiSwitchStatement) { final PsiSwitchStatement switchStatement = (PsiSwitchStatement) statement; if(statementIsBreakTarget(switchStatement)) { return true; } final PsiCodeBlock body = switchStatement.getBody(); final PsiStatement[] statements = body.getStatements(); int lastNonLabelOffset = -1; if(statements != null) { for(int i = statements.length - 1; i >= 0; i--){ if(!(statements[i] instanceof PsiSwitchLabelStatement)) { lastNonLabelOffset = i; break; } } } if(lastNonLabelOffset == -1) { return true; // it's all labels } else if(lastNonLabelOffset == statements.length - 1) { return statementMayCompleteNormally(statements[statements .length - 1]); } else{ return true; // the last statement is a label } } else{ return false; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3837c95856454e21e9059f3aa91174a1e2c65526/ControlFlowUtils.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/psiutils/ControlFlowUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 3021, 49, 528, 6322, 14624, 1230, 12, 52, 7722, 3406, 3021, 15329, 3639, 309, 12, 11516, 1276, 453, 7722, 7634, 3406, 747, 7734, 3021, 1276, 453, 7722, 12378, 3406, 747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 3021, 49, 528, 6322, 14624, 1230, 12, 52, 7722, 3406, 3021, 15329, 3639, 309, 12, 11516, 1276, 453, 7722, 7634, 3406, 747, 7734, 3021, 1276, 453, 7722, 12378, 3406, 747, ...
logNotCanonical("Source-Target", cs, targ, targ2);
logNotCanonical("Source-Target", cs, targ, cs2, targ2);
public void test2() { Transliterator sourceToTarget = Transliterator.getInstance(transliteratorID); Transliterator targetToSource = sourceToTarget.getInverse(); UnicodeSetIterator usi = new UnicodeSetIterator(); UnicodeSetIterator usi2 = new UnicodeSetIterator(); log.logln("Checking that at least one irrevant characters is not NFC'ed"); String irrelevants = "\u2000\u2001\u2126\u212A\u212B\u2329"; // string is from NFC_NO in the UCD if (!checkIrrelevants(sourceToTarget, irrelevants)) { logFails("Source-Target, irrelevants"); } if (!checkIrrelevants(targetToSource, irrelevants)) { logFails("Target-Source, irrelevants"); } if (EXTRA_TESTS) { log.logln("Checking that toRules works"); String rules = ""; Transliterator sourceToTarget2; Transliterator targetToSource2; try { rules = sourceToTarget.toRules(false); sourceToTarget2 = Transliterator.createFromRules("s2t2", rules, Transliterator.FORWARD); if (PRINT_RULES) { out.println("<h3>Forward Rules:</h3><p>"); out.println(TestUtility.replace(rules, "\n", "<br>\n")); out.println("</p>"); } rules = targetToSource.toRules(false); targetToSource2 = Transliterator.createFromRules("t2s2", rules, Transliterator.FORWARD); if (PRINT_RULES) { out.println("<h3>Backward Rules:</h3><p>"); out.println(TestUtility.replace(rules, "\n", "<br>\n")); out.println("</p>"); } } catch (RuntimeException e) { out.println("<h3>Broken Rules:</h3><p>"); out.println(TestUtility.replace(rules, "\n", "<br>\n")); out.println("</p>"); out.flush(); throw e; } usi.reset(sourceRange); while (true) { int c = usi.next(); if (c < 0) break; String cs = UTF16.valueOf(c); String targ = sourceToTarget.transliterate(cs); String targ2 = sourceToTarget2.transliterate(cs); if (!targ.equals(targ2)) { logToRulesFails("Source-Target, toRules", cs, targ, targ2); } } usi.reset(targetRange); while (true) { int c = usi.next(); if (c < 0) break; String cs = UTF16.valueOf(c); String targ = targetToSource.transliterate(cs); String targ2 = targetToSource2.transliterate(cs); if (!targ.equals(targ2)) { logToRulesFails("Target-Source, toRules", cs, targ, targ2); } } } log.logln("Checking that source characters convert to target - Singles"); UnicodeSet failSourceTarg = new UnicodeSet(); /* for (char c = 0; c < 0xFFFF; ++c) { if (!sourceRange.contains(c)) continue; */ usi.reset(sourceRange); while (true) { int c = usi.next(); if (c < 0) break; String cs = UTF16.valueOf(c); String targ = sourceToTarget.transliterate(cs); if (!UnicodeSetIterator.containsAll(toTarget, targ) || UnicodeSetIterator.containsSome(badCharacters, targ)) { String targD = Normalizer.normalize(targ, Normalizer.DECOMP, 0); if (!UnicodeSetIterator.containsAll(toTarget, targD) || UnicodeSetIterator.containsSome(badCharacters, targD)) { logWrongScript("Source-Target", cs, targ); failSourceTarg.add(c); continue; } } String cs2 = Normalizer.normalize(cs, Normalizer.DECOMP, 0); String targ2 = sourceToTarget.transliterate(cs2); if (!targ.equals(targ2)) { logNotCanonical("Source-Target", cs, targ, targ2); } } log.logln("Checking that source characters convert to target - Doubles"); /* for (char c = 0; c < 0xFFFF; ++c) { if (TestUtility.isUnassigned(c) || !sourceRange.contains(c)) continue; if (failSourceTarg.get(c)) continue; */ UnicodeSet sourceRangeMinusFailures = new UnicodeSet(sourceRange); sourceRangeMinusFailures.removeAll(failSourceTarg); usi.reset(sourceRangeMinusFailures, log.isQuick()); while (true) { int c = usi.next(); if (c < 0) break; /* for (char d = 0; d < 0xFFFF; ++d) { if (TestUtility.isUnassigned(d) || !sourceRange.contains(d)) continue; if (failSourceTarg.get(d)) continue; */ usi2.reset(sourceRangeMinusFailures, log.isQuick()); while (true) { int d = usi2.next(); if (d < 0) break; String cs = UTF16.valueOf(c) + UTF16.valueOf(d); String targ = sourceToTarget.transliterate(cs); if (!UnicodeSetIterator.containsAll(toTarget,targ) || UnicodeSetIterator.containsSome(badCharacters, targ)) { String targD = Normalizer.normalize(targ, Normalizer.DECOMP, 0); if (!UnicodeSetIterator.containsAll(toTarget,targD) || UnicodeSetIterator.containsSome(badCharacters, targD)) { logWrongScript("Source-Target", cs, targ); continue; } } String cs2 = Normalizer.normalize(cs, Normalizer.DECOMP, 0); String targ2 = sourceToTarget.transliterate(cs2); if (!targ.equals(targ2)) { logNotCanonical("Source-Target", cs, targ, targ2); } } } log.logln("Checking that target characters convert to source and back - Singles"); UnicodeSet failTargSource = new UnicodeSet(); UnicodeSet failRound = new UnicodeSet(); /*for (char c = 0; c < 0xFFFF; ++c) { if (TestUtility.isUnassigned(c) || !targetRange.contains(c)) continue; */ usi.reset(targetRange); while (true) { int c = usi.next(); if (c < 0) break; String cs = UTF16.valueOf(c); String targ = targetToSource.transliterate(cs); String reverse = sourceToTarget.transliterate(targ); if (!UnicodeSetIterator.containsAll(toSource, targ) || UnicodeSetIterator.containsSome(badCharacters, targ)) { String targD = Normalizer.normalize(targ, Normalizer.DECOMP, 0); if (!UnicodeSetIterator.containsAll(toSource, targD) || UnicodeSetIterator.containsSome(badCharacters, targD)) { logWrongScript("Target-Source", cs, targ); failTargSource.add(c); continue; } } if (!isSame(cs, reverse) && !roundtripExclusions.contains(c)) { logRoundTripFailure(cs, targ, reverse); failRound.add(c); continue; } String targ2 = Normalizer.normalize(targ, Normalizer.DECOMP, 0); String reverse2 = sourceToTarget.transliterate(targ2); if (!reverse.equals(reverse2)) { logNotCanonical("Target-Source", cs, targ, targ2); } } log.logln("Checking that target characters convert to source and back - Doubles"); int count = 0; UnicodeSet targetRangeMinusFailures = new UnicodeSet(targetRange); targetRangeMinusFailures.removeAll(failTargSource); targetRangeMinusFailures.removeAll(failRound); //char[] buf = new char[4]; // maximum we can have with 2 code points /* for (char c = 0; c < 0xFFFF; ++c) { if (TestUtility.isUnassigned(c) || !targetRange.contains(c)) continue; */ usi.reset(targetRangeMinusFailures, log.isQuick()); while (true) { int c = usi.next(); if (c < 0) break; if (++count > pairLimit) { throw new TestTruncated("Test truncated at " + pairLimit + " x 64k pairs"); } log.log(TestUtility.hex(c)); /* for (char d = 0; d < 0xFFFF; ++d) { if (TestUtility.isUnassigned(d) || !targetRange.contains(d)) continue; */ usi2.reset(targetRangeMinusFailures, log.isQuick()); while (true) { int d = usi2.next(); if (d < 0) break; String cs = UTF16.valueOf(c) + UTF16.valueOf(d); String targ = targetToSource.transliterate(cs); String reverse = sourceToTarget.transliterate(targ); if (!UnicodeSetIterator.containsAll(toSource, targ) /*&& !failTargSource.contains(c) && !failTargSource.contains(d)*/ || UnicodeSetIterator.containsSome(badCharacters, targ)) { String targD = Normalizer.normalize(targ, Normalizer.DECOMP, 0); if (!UnicodeSetIterator.containsAll(toSource, targD) /*&& !failTargSource.contains(c) && !failTargSource.contains(d)*/ || UnicodeSetIterator.containsSome(badCharacters, targD)) { logWrongScript("Target-Source", cs, targ); continue; } } if (!isSame(cs, reverse) /*&& !failRound.contains(c) && !failRound.contains(d)*/ && !roundtripExclusions.contains(c) && !roundtripExclusions.contains(d)) { logRoundTripFailure(cs, targ, reverse); continue; } String targ2 = Normalizer.normalize(targ, Normalizer.DECOMP, 0); String reverse2 = sourceToTarget.transliterate(targ2); if (!reverse.equals(reverse2)) { logNotCanonical("Target-Source", cs, targ, targ2); } } } log.logln(""); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/452f8169a8a3bb29b10f9d8deca97f95841dfecf/RoundTripTest.java/clean/icu4j/src/com/ibm/test/translit/RoundTripTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1842, 22, 1435, 288, 5411, 8193, 9838, 1084, 774, 2326, 273, 8193, 9838, 18, 588, 1442, 12, 5379, 9838, 734, 1769, 5411, 8193, 9838, 1018, 774, 1830, 273, 1084, 774, 2326, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1842, 22, 1435, 288, 5411, 8193, 9838, 1084, 774, 2326, 273, 8193, 9838, 18, 588, 1442, 12, 5379, 9838, 734, 1769, 5411, 8193, 9838, 1018, 774, 1830, 273, 1084, 774, 2326, 18, ...
BibliographicReference br = pmf.retrieveByHTTP( 15173114 ); assertEquals( "Lee, Homin K; Hsu, Amy K; Sajdak, Jon; Qin, Jie; Pavlidis, Paul", br.getAuthorList() ); assertEquals( "Genome Res", br.getPublication() ); assertEquals( "Coexpression analysis of human genes across many microarray data sets.", br.getTitle() );
try { BibliographicReference br = pmf.retrieveByHTTP( 15173114 ); assertEquals( "Lee, Homin K; Hsu, Amy K; Sajdak, Jon; Qin, Jie; Pavlidis, Paul", br.getAuthorList() ); assertEquals( "Genome Res", br.getPublication() ); assertEquals( "Coexpression analysis of human genes across many microarray data sets.", br.getTitle() );
public final void testRetrieveByHTTP() throws Exception { BibliographicReference br = pmf.retrieveByHTTP( 15173114 ); assertEquals( "Lee, Homin K; Hsu, Amy K; Sajdak, Jon; Qin, Jie; Pavlidis, Paul", br.getAuthorList() ); assertEquals( "Genome Res", br.getPublication() ); assertEquals( "Coexpression analysis of human genes across many microarray data sets.", br.getTitle() ); SimpleDateFormat f = new SimpleDateFormat( "mm/HH/MM/dd/yyyy" ); assertEquals( "00/05/06/03/2004", f.format( br.getPublicationDate() ) ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/222208d59120ec5f1725f42cfc22fd56cdff55fa/PubMedXMLFetcherTest.java/buggy/gemma-core/src/test/java/ubic/gemma/loader/entrez/pubmed/PubMedXMLFetcherTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 5767, 858, 3693, 1435, 1216, 1185, 288, 3639, 605, 495, 549, 16983, 2404, 5186, 273, 7430, 74, 18, 17466, 858, 3693, 12, 4711, 31331, 22214, 11272, 3639, 1815, 8867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1842, 5767, 858, 3693, 1435, 1216, 1185, 288, 3639, 605, 495, 549, 16983, 2404, 5186, 273, 7430, 74, 18, 17466, 858, 3693, 12, 4711, 31331, 22214, 11272, 3639, 1815, 8867, ...
throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." );
throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." );
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( project.hasParent() ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section Map artifactMap = project.getArtifactMap(); List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String conflictId = ArtifactUtils.artifactId( dep.getGroupId(), dep.getArtifactId(), dep.getType(), dep.getClassifier(), dep.getVersion() ); Artifact artifact = (Artifact) artifactMap.get( conflictId ); String version = resolveVersion( artifact, "dependency", project ); dep.setVersion( version ); } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section Map pluginArtifactMap = project.getPluginArtifactMap(); List plugins = build.getPlugins(); for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) pluginArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "plugin", project ); plugin.setVersion( version ); } //Rewrite extensions section Map extensionArtifactMap = project.getExtensionArtifactMap(); List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String pluginId = ArtifactUtils.versionlessKey( ext.getGroupId(), ext.getArtifactId() ); Artifact artifact = (Artifact) extensionArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "extension", project ); ext.setVersion( version ); } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section Map reportArtifactMap = project.getReportArtifactMap(); List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) reportArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "report", project ); plugin.setVersion( version ); } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/e5ed2acbcb8d3135653db6e90a98cf128c7c3dc1/PrepareReleaseMojo.java/clean/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
else if (guardmethod != null) { darapplier.invokeBeanMethod(guardmethod, guard); } else if (guardproperty != null) { darapplier.setBeanValue(guardproperty, guard, guarded, errors); } else if (guard instanceof Validator) { Validator guardv = (Validator) guard; springerrors = new BindException(guarded, guardedpath); guardv.validate(guarded, springerrors); SpringErrorConverter.appendErrors(errors, springerrors);
else { if (toinvoke != null) { toinvoke.run(); } else { if (guardmethod != null) { darapplier.invokeBeanMethod(guardmethod, guard); } else if (guardproperty != null) { darapplier .setBeanValue(guardproperty, guard, guarded, errors); } else if (guard instanceof Validator) { Validator guardv = (Validator) guard; springerrors = new BindException(guarded, guardedpath); guardv.validate(guarded, springerrors); SpringErrorConverter.appendErrors(errors, springerrors); } }
private void processGuards(BeanInvalidationModel bim, TargettedMessageList errors, WriteableBeanLocator rbl, Runnable toinvoke) { BindException springerrors = null; for (int i = 0; i < guards.length; ++i) { BeanGuard guarddef = guards[i]; String mode = guarddef.getGuardMode(); String timing = guarddef.getGuardTiming(); String guardedpath = guarddef.getGuardedPath(); String guardmethod = guarddef.getGuardMethod(); String guardEL = guarddef.getGuardEL(); String guardproperty = guarddef.getGuardProperty(); if (guardEL != null && guardmethod != null) { guardmethod = PathUtil.composePath(guardEL, guardmethod); } if (mode.equals(BeanGuard.WRITE) && timing == null || timing.equals(BeanGuard.POST)) { // for each POST-WRITE guard for an invalidated path, execute it. String match = bim.invalidPathMatch(guardedpath); if (match != null) { Object guard = guarddef.getGuard(); if (guard == null && guardEL == null) { if (guardmethod != null) { guardEL = PathUtil.getToTailPath(guardmethod); guardmethod = PathUtil.getTailPath(guardmethod); } else if (guardproperty != null) { guardEL = PathUtil.getToTailPath(guardproperty); guardproperty = PathUtil.getTailPath(guardproperty); } } if (guardEL != null) { guard = darapplier.getBeanValue(guardEL, rbl); } Object guarded = darapplier.getBeanValue(match, rbl); try { if (guard instanceof RunnableInvoker) { if (toinvoke == null) { throw new IllegalArgumentException( "Configuration error: Bean Guard " + guard + " at " + guardEL + " was required in AROUND mode but does not implement RunnableInvoker"); } else { ((RunnableInvoker) guard).invokeRunnable(toinvoke); } } else if (guardmethod != null) { darapplier.invokeBeanMethod(guardmethod, guard); } else if (guardproperty != null) { darapplier.setBeanValue(guardproperty, guard, guarded, errors); } else if (guard instanceof Validator) { Validator guardv = (Validator) guard; springerrors = new BindException(guarded, guardedpath); // TODO: We could try to store this excess info somewhere. guardv.validate(guarded, springerrors); SpringErrorConverter.appendErrors(errors, springerrors); } } catch (Exception e) { TargettedMessage message = new TargettedMessage(e.getMessage(), e, match); errors.addMessage(message); } } } } // if (springerrors != null) { // throw UniversalRuntimeException.accumulate(springerrors); // } }
49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/12c4d4e81bc939ea74eaa11e4742ce42dd5a38bd/BeanGuardProcessor.java/clean/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1207, 6099, 14727, 12, 3381, 27946, 1488, 324, 381, 16, 1377, 5916, 2344, 1079, 682, 1334, 16, 2598, 429, 3381, 5786, 436, 3083, 16, 10254, 358, 14407, 13, 288, 565, 6936, 503,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1207, 6099, 14727, 12, 3381, 27946, 1488, 324, 381, 16, 1377, 5916, 2344, 1079, 682, 1334, 16, 2598, 429, 3381, 5786, 436, 3083, 16, 10254, 358, 14407, 13, 288, 565, 6936, 503,...
fValidation = false;
fDynamicValidation = false;
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException { // get error reporter fXSIErrorReporter.reset((XMLErrorReporter)componentManager.getProperty(ERROR_REPORTER)); fSchemaLoader.setProperty(ERROR_REPORTER, fXSIErrorReporter.fErrorReporter); // get symbol table. if it's a new one, add symbols to it. SymbolTable symbolTable = (SymbolTable)componentManager.getProperty(SYMBOL_TABLE); if (symbolTable != fSymbolTable) { fSchemaLoader.setProperty(SYMBOL_TABLE, symbolTable); fSymbolTable = symbolTable; } // internal xerces property: namespace-context fNamespaceSupport = (NamespaceSupport)componentManager.getProperty(NAMESPACE_CONTEXT_PROPERTY); fValidationState.setNamespaceSupport(fNamespaceSupport); fState4XsiType.setNamespaceSupport(fNamespaceSupport); fState4ApplyDefault.setNamespaceSupport(fNamespaceSupport); try { fValidation = componentManager.getFeature(VALIDATION); } catch (XMLConfigurationException e) { fValidation = false; } // Xerces features try { fValidation = fValidation && componentManager.getFeature(SCHEMA_VALIDATION); } catch (XMLConfigurationException e) { fValidation = false; } try { fFullChecking = componentManager.getFeature(SCHEMA_FULL_CHECKING); } catch (XMLConfigurationException e) { fFullChecking = false; } // the validator will do full checking anyway; the loader should // not (and in fact cannot) concern itself with this. fSchemaLoader.setFeature(SCHEMA_FULL_CHECKING, false); try { fDynamicValidation = componentManager.getFeature(DYNAMIC_VALIDATION); } catch (XMLConfigurationException e) { fDynamicValidation = false; } try { fNormalizeData = componentManager.getFeature(NORMALIZE_DATA); } catch (XMLConfigurationException e) { fNormalizeData = false; } try { fSchemaElementDefault = componentManager.getFeature(SCHEMA_ELEMENT_DEFAULT); } catch (XMLConfigurationException e) { fSchemaElementDefault = false; } fEntityResolver = (XMLEntityResolver)componentManager.getProperty(ENTITY_MANAGER); fSchemaLoader.setEntityResolver(fEntityResolver); fValidationManager = (ValidationManager)componentManager.getProperty(VALIDATION_MANAGER); fValidationManager.addValidationState(fValidationState); fValidationState.setSymbolTable(fSymbolTable); // get schema location properties try { fExternalSchemas = (String)componentManager.getProperty(SCHEMA_LOCATION); fExternalNoNamespaceSchema = (String)componentManager.getProperty(SCHEMA_NONS_LOCATION); } catch (XMLConfigurationException e) { fExternalSchemas = null; fExternalNoNamespaceSchema = null; } fSchemaLoader.setProperty(SCHEMA_LOCATION, fExternalSchemas); fSchemaLoader.setProperty(SCHEMA_NONS_LOCATION, fExternalNoNamespaceSchema); try { fJaxpSchemaSource = componentManager.getProperty(JAXP_SCHEMA_SOURCE); } catch (XMLConfigurationException e){ fJaxpSchemaSource = null; } fSchemaLoader.setProperty(JAXP_SCHEMA_SOURCE, fJaxpSchemaSource); fResourceIdentifier.clear(); // clear grammars, and put the one for schema namespace there try { fGrammarPool = (XMLGrammarPool)componentManager.getProperty(XMLGRAMMAR_POOL); } catch (XMLConfigurationException e){ fGrammarPool = null; } fSchemaLoader.setProperty(XMLGRAMMAR_POOL, fGrammarPool); // Copy the allow-java-encoding feature to the grammar loader. // REVISIT: what other fetures/properties do we want to copy? try { boolean jencoding = componentManager.getFeature(ALLOW_JAVA_ENCODING); fSchemaLoader.setFeature(ALLOW_JAVA_ENCODING, jencoding); } catch (XMLConfigurationException e){ } // clear grammars, and put the one for schema namespace there // logic for resetting grammar-related components moved // to schema loader fSchemaLoader.reset(); //reset XSDDescription fLocationPairs.clear(); fNoNamespaceLocationArray.resize(0 , 2) ; // initialize state fCurrentElemDecl = null; fCurrentCM = null; fCurrCMState = null; fSkipValidationDepth = -1; fPartialValidationDepth = -1; fElementDepth = -1; fChildCount = 0; // datatype normalization fEntityRef = false; fInCDATA = false; fMatcherStack.clear(); fBaseURI = null; fState4XsiType.setSymbolTable(symbolTable); fState4ApplyDefault.setSymbolTable(symbolTable); } // reset(XMLComponentManager)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d25b30225af83c0ff67fecc2da34bfe9c4a9629b/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 12, 4201, 1841, 1318, 1794, 1318, 13, 1216, 3167, 10737, 288, 3639, 368, 336, 555, 11528, 3639, 284, 60, 2320, 668, 13289, 18, 6208, 12443, 4201, 668, 13289, 13, 4652, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 12, 4201, 1841, 1318, 1794, 1318, 13, 1216, 3167, 10737, 288, 3639, 368, 336, 555, 11528, 3639, 284, 60, 2320, 668, 13289, 18, 6208, 12443, 4201, 668, 13289, 13, 4652, 13...
String area = getParameterAsString("area"); helper = new PolicyHelper(getLogger()); Map objectModel = ContextHelper.getObjectModel(getContext());
this.helper = new PolicyHelper(getLogger());
protected void doInitialize() throws Exception { super.doInitialize(); try { Role[] roles = getRoleManager().getRoles(); String visitorRole = ""; for (int i = 0; i < roles.length; i++) { if (roles[i].getId().equals("visit")) { visitorRole = roles[i].getId(); } } setParameter("visitorRole", visitorRole); String area = getParameterAsString("area"); helper = new PolicyHelper(getLogger()); Map objectModel = ContextHelper.getObjectModel(getContext()); //FIXME expects the component manager // helper.setup(objectModel, this.manager, area); for (int i = 0; i < types.length; i++) { Item[] items = null; if (types[i].equals("user")) { items = getUserManager().getUsers(); } else if (types[i].equals("group")) { items = getGroupManager().getGroups(); } else if (types[i].equals("iprange")) { items = getIpRangeManager().getIPRanges(); } else if (types[i].equals("role")) { items = getRoleManager().getRoles(); } for (int j = 0; j < operations.length; j++) { if (getParameterAsString(operations[j] + "_credential_" + types[i]) != null) { String roleId = getParameterAsString("role_id"); String accreditableId = getParameterAsString("accreditable_id"); Item item = null; for (int k = 0; k < items.length; k++) { if (accreditableId.equals(items[k].getId())) { item = items[k]; } } Role role = getRoleManager().getRole(roleId); if (role == null) { addErrorMessage("Role [" + roleId + "] does not exist!"); } helper.manipulateCredential(item, role, operations[j]); } } } } catch (Exception e) { addErrorMessage("Could not read a value."); getLogger().error("Could not read value for AccessControl usecase. " + e.toString()); } }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/4328e6a3348fb4e2a05ba81ea77324a91e32cfcd/AccessControl.java/clean/src/java/org/apache/lenya/cms/ac/AccessControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 7520, 1435, 1216, 1185, 288, 3639, 2240, 18, 2896, 7520, 5621, 3639, 775, 288, 5411, 6204, 8526, 4900, 273, 15673, 1318, 7675, 588, 6898, 5621, 5411, 514, 8000, 2996, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 7520, 1435, 1216, 1185, 288, 3639, 2240, 18, 2896, 7520, 5621, 3639, 775, 288, 5411, 6204, 8526, 4900, 273, 15673, 1318, 7675, 588, 6898, 5621, 5411, 514, 8000, 2996, 273, ...
File[] value = (File[]) trim.toArray(new File[0]);
File[] value = (File[]) trim.toArray(new File[trim.size()]);
public File[] getFiles(File dir, boolean useFileHiding) { if (dir == null || dir.listFiles() == null) return null; File[] files = dir.listFiles(); if (! useFileHiding) return files; ArrayList trim = new ArrayList(); for (int i = 0; i < files.length; i++) if (! files[i].isHidden()) trim.add(files[i]); File[] value = (File[]) trim.toArray(new File[0]); return value; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/4cfb23bf0c3cfbad22f148e981d49bf1ca6def84/FileSystemView.java/buggy/libraries/javalib/javax/swing/filechooser/FileSystemView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1387, 8526, 18262, 12, 812, 1577, 16, 1250, 999, 812, 44, 10415, 13, 225, 288, 565, 309, 261, 1214, 422, 446, 747, 1577, 18, 1098, 2697, 1435, 422, 446, 13, 1377, 327, 446, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1387, 8526, 18262, 12, 812, 1577, 16, 1250, 999, 812, 44, 10415, 13, 225, 288, 565, 309, 261, 1214, 422, 446, 747, 1577, 18, 1098, 2697, 1435, 422, 446, 13, 1377, 327, 446, 31, ...
this.rubyThreadList = Collections.synchronizedList(new ArrayList());
this.rubyThreadList = Collections.synchronizedSet(new WeakHashSet());
public ThreadService(IRuby runtime) { this.runtime = runtime; this.mainContext = new ThreadContext(runtime); this.localContext = new ThreadLocal(); this.rubyThreadGroup = new ThreadGroup("Ruby Threads#" + runtime.hashCode()); this.rubyThreadList = Collections.synchronizedList(new ArrayList()); // Must be called from main thread (it is currently, but this bothers me) mainThread = Thread.currentThread(); localContext.set(mainContext); rubyThreadList.add(mainThread); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/ff0051fc6f996525d3eadb673203837473cc3e41/ThreadService.java/buggy/src/org/jruby/internal/runtime/ThreadService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4884, 1179, 12, 7937, 10340, 3099, 13, 288, 3639, 333, 18, 9448, 273, 3099, 31, 3639, 333, 18, 5254, 1042, 273, 394, 4884, 1042, 12, 9448, 1769, 3639, 333, 18, 3729, 1042, 273, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4884, 1179, 12, 7937, 10340, 3099, 13, 288, 3639, 333, 18, 9448, 273, 3099, 31, 3639, 333, 18, 5254, 1042, 273, 394, 4884, 1042, 12, 9448, 1769, 3639, 333, 18, 3729, 1042, 273, 39...
public void test_getAuthTime() throws Exception { Date newAuthTime = new Date(AUTH_TIME); KerberosTicket krbTicket = new KerberosTicket(ticket, pClient, pServer, sessionKey, KEY_TYPE, flags, newAuthTime, startTime, endTime, renewTill, addesses); // initial value is not copied newAuthTime.setTime(AUTH_TIME + 1); assertEquals(AUTH_TIME + 1, krbTicket.getAuthTime().getTime()); // returned value is copied assertNotSame(krbTicket.getAuthTime(), krbTicket.getAuthTime()); // auth time: null value is illegal for contructor try { new KerberosTicket(ticket, pClient, pServer, sessionKey, KEY_TYPE, flags, null, startTime, endTime, renewTill, addesses); fail("No expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/ae46d4668c200c2403f7e7a3e4a3a7f350c99f5a/KerberosTicketTest.java/buggy/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/kerberos/KerberosTicketTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 588, 1730, 950, 1435, 1216, 1185, 288, 3639, 2167, 394, 1730, 950, 273, 394, 2167, 12, 7131, 67, 4684, 1769, 3639, 1475, 24704, 13614, 417, 6731, 13614, 273, 394, 147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 588, 1730, 950, 1435, 1216, 1185, 288, 3639, 2167, 394, 1730, 950, 273, 394, 2167, 12, 7131, 67, 4684, 1769, 3639, 1475, 24704, 13614, 417, 6731, 13614, 273, 394, 147...
dZAxisPlotSpacing = cwa.getPlot( ).getHorizontalSpacing( ) * dPointToPixel;
dZAxisPlotSpacing = dXAxisPlotSpacing;
public void compute( Bounds bo ) throws ChartException, IllegalArgumentException { bo = bo.scaledInstance( dPointToPixel ); // CONVERSION // TODO compute seriesThickness as per rotation. // dSeriesThickness = // MAINTAIN IN LOCAL VARIABLES FOR PERFORMANCE/CONVENIENCE // TODO initial bounding box constraint, may compute as per the rotation // angle. double dX = bo.getLeft( ) + insCA.getLeft( ); double dY = bo.getTop( ) + insCA.getTop( ); double dW = bo.getWidth( ) - insCA.getLeft( ) - insCA.getRight( ); double dH = bo.getHeight( ) - insCA.getTop( ) - insCA.getBottom( ); // MUST BE 3-D DIMENSION ONLY HERE. iDimension = getDimension( cwa.getDimension( ) ); assert iDimension == IConstants.THREE_D; dXAxisPlotSpacing = cwa.getPlot( ).getHorizontalSpacing( ) * dPointToPixel; // CONVERSION dYAxisPlotSpacing = cwa.getPlot( ).getVerticalSpacing( ) * dPointToPixel; // CONVERSION dZAxisPlotSpacing = cwa.getPlot( ).getHorizontalSpacing( ) * dPointToPixel; // CONVERSION double dStart, dEnd; final Axis[] axa = cwa.getPrimaryBaseAxes( ); final Axis axPrimaryBase = axa[0]; final Axis axPrimaryOrthogonal = cwa.getPrimaryOrthogonalAxis( axPrimaryBase ); final Axis axAncillaryBase = cwa.getAncillaryBaseAxis( axPrimaryBase ); // COMPUTE PRIMARY-BASE-AXIS PROPERTIES AND ITS SCALE AutoScale scPrimaryBase = null; OneAxis oaxPrimaryBase = aax.getPrimaryBase( ); int iAxisType = getAxisType( axPrimaryBase ); Object oaData = null; if ( iAxisType == TEXT || oaxPrimaryBase.isCategoryScale( ) ) { oaData = getTypedDataSet( axPrimaryBase, iAxisType, 0 ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axPrimaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axPrimaryBase, iAxisType ); } DataSetIterator dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; // TODO compute 3d start end point. dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW; Scale sc = axPrimaryBase.getScale( ); scPrimaryBase = AutoScale.computeScale( ids, oaxPrimaryBase, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axPrimaryBase.getFormatSpecifier( ), rtc, true ); oaxPrimaryBase.set( scPrimaryBase ); // UPDATE SCALE ON PRIMARY-BASE // AXIS // COMPUTE ANCILLARY-BASE-AXIS PROPERTIES AND ITS SCALE AutoScale scAncillaryBase = null; OneAxis oaxAncillaryBase = aax.getAncillaryBase( ); iAxisType = getAxisType( axAncillaryBase ); oaData = null; if ( iAxisType == TEXT || oaxAncillaryBase.isCategoryScale( ) ) { oaData = getAncillaryDataSet( axAncillaryBase, axPrimaryOrthogonal, iAxisType ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; // TODO compute 3d start end point, use the same setting as primary base // axis here. dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW; sc = axAncillaryBase.getScale( ); scAncillaryBase = AutoScale.computeScale( ids, oaxAncillaryBase, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axAncillaryBase.getFormatSpecifier( ), rtc, true ); oaxAncillaryBase.set( scAncillaryBase ); // UPDATE SCALE ON // ANCILLARY-BASE AXIS // COMPUTE PRIMARY-ORTHOGONAL-AXIS PROPERTIES AND ITS SCALE AutoScale scPrimaryOrthogonal = null; OneAxis oaxPrimaryOrthogonal = aax.getPrimaryOrthogonal( ); iAxisType = getAxisType( axPrimaryOrthogonal ); oaData = null; if ( ( iAxisType & NUMERICAL ) == NUMERICAL || ( iAxisType & DATE_TIME ) == DATE_TIME ) { dsi = new DataSetIterator( getMinMax( axPrimaryOrthogonal, iAxisType ), iAxisType ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.orthogonal.axis.numerical.datetime", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } // TODO compute 3d start end point. dStart = ( aax.areAxesSwapped( ) ) ? dX : dY; dEnd = ( aax.areAxesSwapped( ) ) ? dX + dW : dY + dH; sc = axPrimaryOrthogonal.getScale( ); scPrimaryOrthogonal = AutoScale.computeScale( ids, oaxPrimaryOrthogonal, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axPrimaryOrthogonal.getFormatSpecifier( ), rtc, true ); oaxPrimaryOrthogonal.set( scPrimaryOrthogonal ); // UPDATE SCALE ON // PRIMARY-ORTHOGONAL AXIS // TODO here we should ignore the intersection Value/Max setting, always // use the Intersection.Min for 3D chart. the adjustVerticalXXX() should // return a double[] to // indicate a coordinate value. // ITERATIVELY ADJUST THE PRIMARY ORTHOGONAL AXIS POSITION DUE TO THE // SCALE, START/END LABELS double dYAxisLocationOnX = adjustHorizontal( dX, dW, aax ); // Iteratively adjust the ancillary base axis position due to the scale, // start/end // labels. double dYAxisLocationOnZ = adjustAncillary( dX, dW, aax ); // ITERATIVELY ADJUST THE PRIMARY BASE AXIS POSITION DUE TO THE SCALE, // START/END LABELS double dXAxisLocation = adjustVerticalDueToHorizontal( dY, dH, aax ); // TODO Just use XAxisLocation as the ZAxisLocation now. double dZAxisLocation = dXAxisLocation; // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS iAxisType = getAxisType( axPrimaryOrthogonal ); oaData = getTypedDataSet( axPrimaryOrthogonal, iAxisType, 0 ); scPrimaryOrthogonal.setData( dsi ); // Setup the full dataset for the ancillary base axis. iAxisType = getAxisType( axAncillaryBase ); if ( iAxisType != IConstants.TEXT ) { scAncillaryBase.setData( getTypedDataSet( axAncillaryBase, iAxisType, 0 ) ); } // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS iAxisType = getAxisType( axPrimaryBase ); if ( iAxisType != IConstants.TEXT ) { scPrimaryBase.setData( getTypedDataSet( axPrimaryBase, iAxisType, 0 ) ); } scPrimaryBase.resetShifts( ); scAncillaryBase.resetShifts( ); scPrimaryOrthogonal.resetShifts( ); // UPDATE FOR OVERLAYS final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final OneAxis axAB = aax.getAncillaryBase( ); // keep old invocation to ensure compatibility. axPH.setAxisCoordinate( dXAxisLocation ); axPV.setAxisCoordinate( dYAxisLocationOnX ); axAB.setAxisCoordinate( dZAxisLocation ); // set new 3D axis coordinate. this coordinate has been normalized to // Zero-coordinates. axPH.setAxisCoordinate3D( Location3DImpl.create( 0, dXAxisLocation - scPrimaryOrthogonal.getStart( ), 0 ) ); axPV.setAxisCoordinate3D( Location3DImpl.create( dYAxisLocationOnX - scPrimaryBase.getStart( ), 0, dYAxisLocationOnZ - scAncillaryBase.getStart( ) ) ); axAB.setAxisCoordinate3D( Location3DImpl.create( 0, dZAxisLocation - scPrimaryOrthogonal.getStart( ), 0 ) ); // !Always use Zero origin for 3D coordinates. // axPH.setAxisCoordinate3D( Location3DImpl.create( 0, 0, 0 ) ); // axPV.setAxisCoordinate3D( Location3DImpl.create( 0, 0, 0 ) ); // axAB.setAxisCoordinate3D( Location3DImpl.create( 0, 0, 0 ) ); boPlotBackground = (Bounds) EcoreUtil.copy( bo ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a6ca386b9ce6eac6f60e60625c07b65c23f0fb6a/PlotWith3DAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith3DAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3671, 12, 20382, 800, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 1075, 273, 800, 18, 20665, 1442, 12, 302, 2148, 774, 9037, 11272, 368, 3492, 5757, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3671, 12, 20382, 800, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 1075, 273, 800, 18, 20665, 1442, 12, 302, 2148, 774, 9037, 11272, 368, 3492, 5757, 2...
this( null, null, false );
super( null, null, false );
public Base64BinaryDatatypeValidator () throws InvalidDatatypeFacetException{ this( null, null, false ); // Native, No Facets defined, Restriction }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/c43169e0134e2b20a2b8ac99333cbfebce6baa97/Base64BinaryDatatypeValidator.java/buggy/src/org/apache/xerces/validators/datatype/Base64BinaryDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 3360, 1105, 5905, 20228, 5126, 1832, 1216, 1962, 20228, 11137, 503, 95, 3639, 2240, 12, 446, 16, 446, 16, 629, 11272, 368, 16717, 16, 2631, 12618, 2413, 2553, 16, 1124, 6192, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 3360, 1105, 5905, 20228, 5126, 1832, 1216, 1962, 20228, 11137, 503, 95, 3639, 2240, 12, 446, 16, 446, 16, 629, 11272, 368, 16717, 16, 2631, 12618, 2413, 2553, 16, 1124, 6192, 5...