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
TRACING_CHECKED, ( String ) null ) ) )
TRACING_CHECKED, (String) null ) ) )
private String[] getProgramArguments( ILaunchConfiguration configuration ) throws CoreException { ArrayList programArgs = new ArrayList( ); // If a product is specified, then add it to the program args if ( configuration.getAttribute( USE_PRODUCT, false ) ) { programArgs.add( "-product" ); //$NON-NLS-1$ programArgs.add( configuration.getAttribute( PRODUCT, "" ) ); //$NON-NLS-1$ } else { // specify the application to launch programArgs.add( "-application" ); //$NON-NLS-1$ programArgs.add( configuration.getAttribute( APPLICATION, LauncherUtils.getDefaultApplicationName( ) ) ); } // specify the workspace location for the runtime workbench String targetWorkspace = configuration .getAttribute( LOCATION + "0", LauncherUtils.getDefaultPath( ).append( WORKESPACENAME ).toOSString( ) ); //$NON-NLS-1$ //$NON-NLS-2$ programArgs.add( "-data" ); //$NON-NLS-1$ programArgs.add( targetWorkspace ); boolean isOSGI = PDECore.getDefault( ).getModelManager( ) .isOSGiRuntime( ); if ( configuration.getAttribute( USEFEATURES, false ) ) { validateFeatures( ); IPath installPath = PDEPlugin.getWorkspace( ).getRoot( ) .getLocation( ); programArgs.add( "-install" ); //$NON-NLS-1$ programArgs .add( "file:" + installPath.removeLastSegments( 1 ).addTrailingSeparator( ).toString( ) ); //$NON-NLS-1$ programArgs.add( "-update" ); //$NON-NLS-1$ } else { TreeMap pluginMap = LauncherUtils.getPluginsToRun( configuration ); if ( pluginMap == null ) return null; String primaryFeatureId = ReportLauncherUtils.getPrimaryFeatureId( ); DebugUtil.runCreatePlatformConfigurationArea( pluginMap, getConfigDir( configuration ), primaryFeatureId, ReportLauncherUtils.getAutoStartPlugins( configuration ) ); programArgs.add( "-configuration" ); //$NON-NLS-1$ if ( isOSGI ) programArgs .add( "file:" + new Path( getConfigDir( configuration ).getPath( ) ).addTrailingSeparator( ).toString( ) ); //$NON-NLS-1$ else programArgs .add( "file:" + new Path( getConfigDir( configuration ).getPath( ) ).append( "platform.cfg" ).toString( ) ); //$NON-NLS-1$ //$NON-NLS-2$ if ( !isOSGI ) { if ( primaryFeatureId != null ) { programArgs.add( "-feature" ); //$NON-NLS-1$ programArgs.add( primaryFeatureId ); } IPluginModelBase bootModel = ( IPluginModelBase ) pluginMap .get( "org.eclipse.core.boot" ); //$NON-NLS-1$ String bootPath = LauncherUtils.getBootPath( bootModel ); if ( bootPath != null && !bootPath.endsWith( ".jar" ) ) { //$NON-NLS-1$ programArgs.add( "-boot" ); //$NON-NLS-1$ programArgs.add( "file:" + bootPath ); //$NON-NLS-1$ } } } // add the output folder names programArgs.add( "-dev" ); //$NON-NLS-1$ if ( PDECore.getDefault( ).getModelManager( ).isOSGiRuntime( ) ) programArgs.add( DebugUtil.getDevEntriesProperties( getConfigDir( configuration ).toString( ) + "/dev.properties", true ) ); //$NON-NLS-1$ else programArgs.add( DebugUtil.getDevEntries( true ) ); // necessary for PDE to know how to load plugins when target platform = // host platform // see PluginPathFinder.getPluginPaths() programArgs.add( "-pdelaunch" ); //$NON-NLS-1$ // add tracing, if turned on if ( configuration.getAttribute( TRACING, false ) && !TRACING_NONE.equals( configuration.getAttribute( TRACING_CHECKED, ( String ) null ) ) ) { programArgs.add( "-debug" ); //$NON-NLS-1$ programArgs.add( LauncherUtils.getTracingFileArgument( configuration, getConfigDir( configuration ).toString( ) + Path.SEPARATOR + ".options" ) ); //$NON-NLS-1$ } // add the program args specified by the user StringTokenizer tokenizer = new StringTokenizer( configuration .getAttribute( PROGARGS, "" ) ); //$NON-NLS-1$ while ( tokenizer.hasMoreTokens( ) ) { programArgs.add( tokenizer.nextToken( ) ); } // show splash only if we are launching the default application boolean showSplash = true; int index = programArgs.indexOf( "-application" ); //$NON-NLS-1$ if ( index != -1 && index <= programArgs.size( ) - 2 ) { if ( !programArgs.get( index + 1 ).equals( LauncherUtils.getDefaultApplicationName( ) ) ) { showSplash = false; } } if ( showSplash && !programArgs.contains( "-nosplash" ) ) { //$NON-NLS-1$ programArgs.add( 0, "-showsplash" ); //$NON-NLS-1$ programArgs.add( 1, computeShowsplashArgument( ) ); } return ( String[] ) programArgs .toArray( new String[programArgs.size( )] ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8b9756089bd39ac79cb8f82862d9ee44f9de43e2/ReportLaunchConfigurationDelegate.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8526, 3570, 3295, 4628, 12, 467, 9569, 1750, 1664, 262, 1082, 202, 15069, 30015, 202, 95, 202, 202, 19558, 5402, 2615, 273, 394, 2407, 12, 11272, 202, 202, 759, 971, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8526, 3570, 3295, 4628, 12, 467, 9569, 1750, 1664, 262, 1082, 202, 15069, 30015, 202, 95, 202, 202, 19558, 5402, 2615, 273, 394, 2407, 12, 11272, 202, 202, 759, 971, 279, ...
public static RubyBoolean writable_p(IRubyObject recv, RubyString filename) {
public static RubyBoolean writable_p(IRubyObject recv, IRubyObject filename) {
public static RubyBoolean writable_p(IRubyObject recv, RubyString filename) { return filename.getRuntime().newBoolean(newFile(filename).canWrite()); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/418c30d7568bd7f3d82ef1d3a011ee39d958b8f6/RubyFileTest.java/clean/src/org/jruby/RubyFileTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5507, 9691, 67, 84, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 1544, 13, 288, 3639, 327, 1544, 18, 588, 5576, 7675, 2704, 5507, 12, 2704, 812, 12, 3459, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5507, 9691, 67, 84, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 1544, 13, 288, 3639, 327, 1544, 18, 588, 5576, 7675, 2704, 5507, 12, 2704, 812, 12, 3459, 2934, ...
if (numMs >= MIN_REPLENISH_FREQUENCY) {
if (numMs >= REPLENISH_FREQUENCY) {
private boolean updateQueues(long now) { long numMs = (now - _lastRefillTime); if (_log.shouldLog(Log.INFO)) _log.info("Updating bandwidth after " + numMs + " (available in=" + _limiter.getAvailableInboundBytes() + ", out=" + _limiter.getAvailableOutboundBytes()+ ", rate in=" + _inboundKBytesPerSecond + ", out=" + _outboundKBytesPerSecond +")"); if (numMs >= MIN_REPLENISH_FREQUENCY) { long inboundToAdd = (1024*_inboundKBytesPerSecond * numMs)/1000; long outboundToAdd = (1024*_outboundKBytesPerSecond * numMs)/1000; if (inboundToAdd < 0) inboundToAdd = 0; if (outboundToAdd < 0) outboundToAdd = 0; if (_inboundKBytesPerSecond <= 0) { _limiter.setInboundUnlimited(true); inboundToAdd = 0; } else { _limiter.setInboundUnlimited(false); } if (_outboundKBytesPerSecond <= 0) { _limiter.setOutboundUnlimited(true); outboundToAdd = 0; } else { _limiter.setOutboundUnlimited(false); } _limiter.refillBandwidthQueues(inboundToAdd, outboundToAdd); if (_log.shouldLog(Log.DEBUG)) { _log.debug("Adding " + inboundToAdd + " bytes to inboundAvailable"); _log.debug("Adding " + outboundToAdd + " bytes to outboundAvailable"); } return true; } else { if (_log.shouldLog(Log.WARN)) _log.warn("Refresh delay too fast (" + numMs + ")"); return false; } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/a8ecd32b45f5e68ac3be2a5c95f667f1c40146f4/FIFOBandwidthRefiller.java/clean/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1089, 17428, 12, 5748, 2037, 13, 288, 3639, 1525, 818, 6947, 273, 261, 3338, 300, 389, 2722, 1957, 737, 950, 1769, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1089, 17428, 12, 5748, 2037, 13, 288, 3639, 1525, 818, 6947, 273, 261, 3338, 300, 389, 2722, 1957, 737, 950, 1769, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5...
ih = ih.getUniquePredecessor();
ih = ih.getSimpleUniquePredecessor();
public InstructionHeader createConstantArray(InstructionHeader ih) { Expression[] consts; int count; Type type; try { if (ih.getInstruction() instanceof DupOperator) /* this is not the end of the array assign */ return null; ih = ih.getUniquePredecessor(); ArrayStoreOperator store = (ArrayStoreOperator) ih.getInstruction(); ih = ih.getUniquePredecessor(); Expression lastconst = (Expression) ih.getInstruction(); ih = ih.getUniquePredecessor(); Expression lastindexexpr = (Expression) ih.getInstruction(); ConstOperator lastindexop = (ConstOperator) lastindexexpr.getOperator(); if (!MyType.isOfType(lastindexop.getType(), MyType.tUInt)) return null; int lastindex = Integer.parseInt(lastindexop.getValue()); ih = ih.getUniquePredecessor(); DupOperator dup = (DupOperator) ih.getInstruction(); if (dup.getDepth() != 0 || dup.getCount() != store.getLValueType().stackSize()) return null; consts = new Expression[lastindex+1]; consts[lastindex] = lastconst; count = 1; while (lastindex-- > 0) { ih = ih.getUniquePredecessor(); ArrayStoreOperator store2 = (ArrayStoreOperator) ih.getInstruction(); ih = ih.getUniquePredecessor(); lastconst = (Expression) ih.getInstruction(); ih = ih.getUniquePredecessor(); Expression indexexpr = (Expression) ih.getInstruction(); ConstOperator indexop = (ConstOperator) indexexpr.getOperator(); if (!MyType.isOfType(indexop.getType(), MyType.tUInt)) return null; int index = Integer.parseInt(indexop.getValue()); if (index > lastindex) return null; while (index < lastindex) { consts[lastindex] = new Expression (new ConstOperator(MyType.tUnknown, ""), new Expression[0]); lastindex--; } consts[lastindex] = lastconst; ih = ih.getUniquePredecessor(); dup = (DupOperator) ih.getInstruction(); if (dup.getDepth() != 0 || dup.getCount() != store.getLValueType().stackSize()) return null; count++; } ih = ih.getUniquePredecessor(); Expression newArrayExpr = (Expression) ih.getInstruction(); NewArrayOperator newArrayOp = (NewArrayOperator) newArrayExpr.getOperator(); type = newArrayOp.getType(); if (newArrayOp.getOperandCount() != 1) return null; Expression countexpr = (Expression) newArrayExpr.getSubExpressions()[0]; ConstOperator countop = (ConstOperator) countexpr.getOperator(); if (!MyType.isOfType(countop.getType(), MyType.tUInt)) return null; if (Integer.parseInt(countop.getValue()) != consts.length) return null; } catch (NullPointerException ex) { return null; } catch (ClassCastException ex) { return null; } Operator op = new ConstantArrayOperator(type, consts.length); ih.combine(4*count+1, new Expression(op, consts)); return ih; }
5628 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5628/d5f4c35a3604d437411299f43b8ff57ec2a22932/CodeAnalyzer.java/buggy/jode/jode/decompiler/CodeAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 1864, 752, 6902, 1076, 12, 11983, 1864, 18456, 13, 288, 3639, 5371, 8526, 15677, 31, 202, 474, 1056, 31, 3639, 1412, 618, 31, 3639, 775, 288, 5411, 309, 261, 7392, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 1864, 752, 6902, 1076, 12, 11983, 1864, 18456, 13, 288, 3639, 5371, 8526, 15677, 31, 202, 474, 1056, 31, 3639, 1412, 618, 31, 3639, 775, 288, 5411, 309, 261, 7392, 18, 588, ...
public ArrayList getEntities()
public ArrayList<Entity> getEntities()
public ArrayList getEntities() throws SecurityNotAvailableException, IOException { if (isLocal) { return localruntime.getEntities(); } ArrayList<Object> params = new ArrayList<Object>(); RuntimeRequest req = new RuntimeRequest("getEntities", params, this.url); req.send(); try { return (ArrayList) req.getReturnedObject(); } catch (SecurityException e) { throw e; } catch (IOException e) { throw e; } catch (Exception e) { e.printStackTrace(); return null; } }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/ae89774c3f1eb7b17c11ee8fa929ff8e8b20a0f8/HttpProActiveRuntime.java/buggy/src/org/objectweb/proactive/core/runtime/http/HttpProActiveRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2407, 32, 1943, 34, 4774, 6678, 1435, 3639, 1216, 6036, 1248, 5268, 503, 16, 1860, 288, 3639, 309, 261, 291, 2042, 13, 288, 5411, 327, 1191, 9448, 18, 588, 8108, 5621, 3639, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2407, 32, 1943, 34, 4774, 6678, 1435, 3639, 1216, 6036, 1248, 5268, 503, 16, 1860, 288, 3639, 309, 261, 291, 2042, 13, 288, 5411, 327, 1191, 9448, 18, 588, 8108, 5621, 3639, 289, ...
if(ASS)ER.T(false,"InvalidInfoException in StackViewView",this);
if(AS.S)ER.T(false,"InvalidInfoException in StackViewView",this);
private synchronized void _refresh() { // refill all _listview.removeAllItems(); if( ControlTyrant.STOPPED != _controlTyrant.getState() ) { _listview.draw(); return; } StackFrameInfo[] array = _stackTyrant.getFrameArray(); if( null != array && 0 != array.length ) { StackViewItemDrawer drawer = new StackViewItemDrawer(Font.defaultFont()); int maxwidth = 0; for (int i = 0; i < array.length; i++) { ListItem newlistitem = new StackViewListItem(drawer); StackFrameInfo frame = array[i]; String text; if( frame instanceof JSStackFrameInfo ) { JSPC pc = null; try { pc = (JSPC) frame.getPC(); } catch(InvalidInfoException e) { if(ASS)ER.T(false,"InvalidInfoException in StackViewView",this); } if( null != pc ) { JSSourceLocation loc = (JSSourceLocation)pc.getSourceLocation(); String function = pc.getScript().getFunction(); int lineno = loc.getLine(); SourceTextItem sti = _sourceTyrant.findSourceItem(pc.getScript().getURL()); lineno = _sourceTyrant.systemLine2UserLine(sti, lineno); if( null != function ) text = new String( function + "() line " + lineno ); else text = new String( "line" + " " + lineno ); } else { text = new String( "BAD_FRAME" ); } } else { text = new String( "FORIGN_FRAME" ); } newlistitem.setTitle( text ); newlistitem.setSelectedColor(_emperor.getSelectionColor()); // item for current frame will have non-null data if( _stackTyrant.getCurrentFrameIndex() == i ) newlistitem.setData( this ); // anything non-null else newlistitem.setData( null ); maxwidth = Math.max( maxwidth, newlistitem.minWidth() ); _listview.addItem( newlistitem ); } _listview.selectItemAt( _stackTyrant.getCurrentFrameIndex() ); _listview.setBounds(0,0,maxwidth,0); _listview.sizeToMinSize(); layoutView(0,0); } _listview.draw(); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/2de73cf99dce60cce549e7757f841284b68d1220/StackView.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StackView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 389, 9144, 1435, 565, 288, 3639, 368, 1278, 737, 777, 7734, 389, 1098, 1945, 18, 4479, 1595, 3126, 5621, 3639, 309, 12, 8888, 56, 93, 6890, 18, 17513, 12120, 480, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 389, 9144, 1435, 565, 288, 3639, 368, 1278, 737, 777, 7734, 389, 1098, 1945, 18, 4479, 1595, 3126, 5621, 3639, 309, 12, 8888, 56, 93, 6890, 18, 17513, 12120, 480, 389, ...
return argsCount;
return arguments == null ? 0 : arguments.size();
public int getArgsCount() { return argsCount; }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/b1293eda8454686e846e2a9837b348e2983bb423/ArgsNode.java/clean/src/org/jruby/ast/ArgsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 30169, 1380, 1435, 288, 3639, 327, 1775, 422, 446, 692, 374, 294, 1775, 18, 1467, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 30169, 1380, 1435, 288, 3639, 327, 1775, 422, 446, 692, 374, 294, 1775, 18, 1467, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
idata.getVariableValueMap ().setVariable (variable, group.getPassword ());
idata.setVariable(variable, group.getPassword ());
private boolean readPasswordField (Object [] field) { PasswordGroup group = null; String variable = null; String message = null; try { group = (PasswordGroup)field [POS_GROUP]; variable = (String)field [POS_VARIABLE]; message = (String)field [POS_MESSAGE]; } catch (Throwable exception) { return (true); } if ((variable == null) || (passwordGroupsRead.contains (group))) { return (true); } passwordGroups.add (group); boolean success = group.validateContents (); if (!success) { JOptionPane.showMessageDialog (parent, message, parent.langpack.getString ("UserInputPanel.error.caption"), JOptionPane.WARNING_MESSAGE); return (false); } idata.getVariableValueMap ().setVariable (variable, group.getPassword ()); entries.add (new TextValuePair (variable, group.getPassword ())); return (true); }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6822c9086a6716a2c03b2ad638f19542678f38a5/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 855, 3913, 974, 261, 921, 5378, 652, 13, 225, 288, 565, 9234, 1114, 282, 1041, 377, 273, 446, 31, 565, 514, 1850, 2190, 225, 273, 446, 31, 565, 514, 1850, 883, 282, 273, 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, 3238, 1250, 855, 3913, 974, 261, 921, 5378, 652, 13, 225, 288, 565, 9234, 1114, 282, 1041, 377, 273, 446, 31, 565, 514, 1850, 2190, 225, 273, 446, 31, 565, 514, 1850, 883, 282, 273, 4...
} else
} else {
private void setBeanProps(Object obj, Properties props) throws NoSuchMethodException, IllegalAccessException, java.lang.reflect.InvocationTargetException, IntrospectionException, SchedulerConfigException { props.remove("class"); BeanInfo bi = Introspector.getBeanInfo(obj.getClass()); PropertyDescriptor[] propDescs = bi.getPropertyDescriptors(); PropertiesParser pp = new PropertiesParser(props); java.util.Enumeration keys = props.keys(); while (keys.hasMoreElements()) { String name = (String) keys.nextElement(); String c = name.substring(0, 1).toUpperCase(Locale.US); String methName = "set" + c + name.substring(1); java.lang.reflect.Method setMeth = getSetMethod(methName, propDescs); try { if (setMeth == null) throw new NoSuchMethodException( "No setter for property '" + name + "'"); Class[] params = setMeth.getParameterTypes(); if (params.length != 1) throw new NoSuchMethodException( "No 1-argument setter for property '" + name + "'"); if (params[0].equals(int.class)) { setMeth.invoke(obj, new Object[]{new Integer(pp .getIntProperty(name))}); } else if (params[0].equals(long.class)) { setMeth.invoke(obj, new Object[]{new Long(pp .getLongProperty(name))}); } else if (params[0].equals(float.class)) { setMeth.invoke(obj, new Object[]{new Float(pp .getFloatProperty(name))}); } else if (params[0].equals(double.class)) { setMeth.invoke(obj, new Object[]{new Double(pp .getDoubleProperty(name))}); } else if (params[0].equals(boolean.class)) { setMeth.invoke(obj, new Object[]{new Boolean(pp .getBooleanProperty(name))}); } else if (params[0].equals(String.class)) { setMeth.invoke(obj, new Object[]{pp.getStringProperty(name)}); } else throw new NoSuchMethodException( "No primitive-type setter for property '" + name + "'"); } catch (NumberFormatException nfe) { throw new SchedulerConfigException("Could not parse property '" + name + "' into correct data type: " + nfe.toString()); } } }
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/StdSchedulerFactory.java/buggy/src/java/org/quartz/impl/StdSchedulerFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3381, 5047, 12, 921, 1081, 16, 6183, 3458, 13, 5411, 1216, 15959, 16, 11900, 16, 5411, 2252, 18, 4936, 18, 1734, 1582, 18, 9267, 14950, 16, 5411, 3094, 26362, 503, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 3381, 5047, 12, 921, 1081, 16, 6183, 3458, 13, 5411, 1216, 15959, 16, 11900, 16, 5411, 2252, 18, 4936, 18, 1734, 1582, 18, 9267, 14950, 16, 5411, 3094, 26362, 503, 16, 1...
if ( date[utc]!=0 && date[utc]!='Z') {
if ( (date[utc]!=0 && date[utc]!='Z') || date[h] == 24 ) {
protected int[] parse(String str, int[] date) throws SchemaDateTimeException{ resetBuffer(str); //create structure to hold an object if ( date == null ) { date = new int[TOTAL_SIZE]; } resetDateObj(date); int end = indexOf (fStart, fEnd, 'T'); // both time and date getDate(fStart, end, date); getTime(end+1, fEnd, date); //validate and normalize //REVISIT: do we need SchemaDateTimeException? validateDateTime(date); if ( date[utc]!=0 && date[utc]!='Z') { normalize(date); } return date; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/7493f1535905a0295bbb4be2b4cb72e79ea19a8b/DateTimeDatatypeValidator.java/buggy/src/org/apache/xerces/impl/dv/xs/DateTimeDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 8526, 1109, 12, 780, 609, 16, 509, 8526, 1509, 13, 1216, 4611, 5096, 503, 95, 3639, 2715, 1892, 12, 701, 1769, 3639, 368, 2640, 3695, 358, 6887, 392, 733, 3639, 309, 261, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 8526, 1109, 12, 780, 609, 16, 509, 8526, 1509, 13, 1216, 4611, 5096, 503, 95, 3639, 2715, 1892, 12, 701, 1769, 3639, 368, 2640, 3695, 358, 6887, 392, 733, 3639, 309, 261, 150...
fSchemaInfoListRoot = new SchemaInfo(fElementDefaultQualified, fAttributeDefaultQualified,
fSchemaInfoListRoot = new SchemaInfo(fElementDefaultQualified, fAttributeDefaultQualified,
private void traverseInclude(Element includeDecl) throws Exception { Attr locationAttr = includeDecl.getAttributeNode(SchemaSymbols.ATT_SCHEMALOCATION); if (locationAttr == null) { // REVISIT: Localize reportGenericSchemaError("a schemaLocation attribute must be specified on an <include> element"); return; } String location = locationAttr.getValue(); // expand it before passing it to the parser InputSource source = null; if (fEntityResolver != null) { source = fEntityResolver.resolveEntity("", location); } if (source == null) { location = expandSystemId(location, fCurrentSchemaURL); source = new InputSource(location); } else { // create a string for uniqueness of this included schema in fIncludeLocations if (source.getPublicId () != null) location = source.getPublicId (); location += (',' + source.getSystemId ()); } if (fIncludeLocations.contains((Object)location)) { return; } fIncludeLocations.addElement((Object)location); DOMParser parser = new IgnoreWhitespaceParser(); parser.setEntityResolver( new Resolver() ); parser.setErrorHandler( new ErrorHandler() ); try { parser.setFeature("http://xml.org/sax/features/validation", false); parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); }catch( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); }catch( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } try { parser.parse( source ); }catch( IOException e ) { e.printStackTrace(); }catch( SAXException e ) { //e.printStackTrace(); } Document document = parser.getDocument(); //Our Grammar Element root = null; if (document != null) { root = document.getDocumentElement(); } if (root != null) { String targetNSURI = root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE); if (targetNSURI.length() > 0 && !targetNSURI.equals(fTargetNSURIString) ) { // REVISIT: Localize reportGenericSchemaError("included schema '"+location+"' has a different targetNameSpace '" +targetNSURI+"'"); } else { // We not creating another TraverseSchema object to compile // the included schema file, because the scope count, anon-type count // should not be reset for a included schema, this can be fixed by saving // the counters in the Schema Grammar, if (fSchemaInfoListRoot == null) { fSchemaInfoListRoot = new SchemaInfo(fElementDefaultQualified, fAttributeDefaultQualified, fBlockDefault, fFinalDefault, fCurrentScope, fCurrentSchemaURL, fSchemaRootElement, null, null); fCurrentSchemaInfo = fSchemaInfoListRoot; } fSchemaRootElement = root; fCurrentSchemaURL = location; traverseIncludedSchemaHeader(root); // and now we'd better save this stuff! fCurrentSchemaInfo = new SchemaInfo(fElementDefaultQualified, fAttributeDefaultQualified, fBlockDefault, fFinalDefault, fCurrentScope, fCurrentSchemaURL, fSchemaRootElement, fCurrentSchemaInfo.getNext(), fCurrentSchemaInfo); (fCurrentSchemaInfo.getPrev()).setNext(fCurrentSchemaInfo); traverseIncludedSchema(root); // there must always be a previous element! fCurrentSchemaInfo = fCurrentSchemaInfo.getPrev(); fCurrentSchemaInfo.restore(); } } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0561c4be90e07e6ba8d6b8f42edef5dc8d6d453c/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10080, 8752, 12, 1046, 2341, 3456, 13, 1216, 1185, 288, 3639, 11289, 2117, 3843, 273, 2341, 3456, 18, 588, 1499, 907, 12, 3078, 14821, 18, 789, 56, 67, 55, 10390, 1013, 51, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 10080, 8752, 12, 1046, 2341, 3456, 13, 1216, 1185, 288, 3639, 11289, 2117, 3843, 273, 2341, 3456, 18, 588, 1499, 907, 12, 3078, 14821, 18, 789, 56, 67, 55, 10390, 1013, 51, 8...
byte type = comm.peek();
final byte type = comm.peek();
public synchronized boolean isEndOfResults() throws TdsException, java.io.IOException { byte type = comm.peek(); return type == TDS_DONE || type == TDS_DONEPROC || type == TDS_DONEINPROC; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d40d3f03f21e7087ea2cd7d2b5b43625542770cc/Tds.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 353, 23358, 3447, 1435, 5411, 1216, 399, 2377, 503, 16, 2252, 18, 1594, 18, 14106, 288, 3639, 727, 1160, 618, 273, 1543, 18, 347, 3839, 5621, 3639, 327, 618, 422, 399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 1250, 353, 23358, 3447, 1435, 5411, 1216, 399, 2377, 503, 16, 2252, 18, 1594, 18, 14106, 288, 3639, 727, 1160, 618, 273, 1543, 18, 347, 3839, 5621, 3639, 327, 618, 422, 399, ...
String dstName = "CopyOf" + PathUtil.tail(myURL);
String dstName = "CopyOf" + SVNPathUtil.tail(myURL);
protected void init() { super.init(); SvnVcs vcs = SvnVcs.getInstance(myProject); String revStr = ""; try { SVNWCClient client = vcs.createWCClient(); SVNInfo info = client.doInfo(mySrcFile, SVNRevision.WORKING); if (info != null) { mySrcURL = info.getURL(); revStr = info.getRevision() + ""; myURL = mySrcURL; if (myURL != null) { String dstName = "CopyOf" + PathUtil.tail(myURL); if (mySrcFile.isDirectory()) { myURL = PathUtil.append(myURL, dstName); } else { myURL = PathUtil.append(PathUtil.removeTail(myURL), dstName); } } } } catch (SVNException e) { // } if (myURL == null) { return; } myFromURLText.setText(mySrcURL); myToURLText.setText(myURL); myRevisionText.setText(revStr); myRevisionText.selectAll(); myRevisionText.setEnabled(mySpecificRevisionButton.isSelected()); myWorkingRevisionButton.setSelected(true); getOKAction().setEnabled(isOKActionEnabled()); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/540dc644745f4feb70877038d730d9b6c56608fa/CopyDialog.java/buggy/plugins/svn4idea/src/org/jetbrains/idea/svn/dialogs/CopyDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1435, 288, 565, 2240, 18, 2738, 5621, 565, 348, 25031, 58, 2143, 20255, 273, 348, 25031, 58, 2143, 18, 588, 1442, 12, 4811, 4109, 1769, 565, 514, 5588, 1585, 273, 1408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 1435, 288, 565, 2240, 18, 2738, 5621, 565, 348, 25031, 58, 2143, 20255, 273, 348, 25031, 58, 2143, 18, 588, 1442, 12, 4811, 4109, 1769, 565, 514, 5588, 1585, 273, 1408, ...
_outboundExploratory.buildFallback();
pool.buildFallback();
public TunnelInfo selectOutboundTunnel() { TunnelInfo info = _outboundExploratory.selectTunnel(); if (info == null) { _outboundExploratory.buildFallback(); // still can be null, but probably not info = _outboundExploratory.selectTunnel(); } return info; }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/1eebd5463f5a4783008b5ae42ea8091e4d54fe7f/TunnelPoolManager.java/clean/router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 8564, 966, 2027, 17873, 20329, 1435, 288, 540, 399, 8564, 966, 1123, 273, 389, 659, 3653, 424, 412, 280, 8452, 18, 4025, 20329, 5621, 3639, 309, 261, 1376, 422, 446, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 8564, 966, 2027, 17873, 20329, 1435, 288, 540, 399, 8564, 966, 1123, 273, 389, 659, 3653, 424, 412, 280, 8452, 18, 4025, 20329, 5621, 3639, 309, 261, 1376, 422, 446, 13, 288, ...
return addresses != null && addresses.hasNext();
return hasNextAddress();
public boolean hasNext() { /* Make sure that when next() is called, that we can * provide a HostAddress. This means that we need to * have an inner iterator, and verify that it has * addresses. We could, for example, run into a * situation where the next gateway didn't have any * valid addresses. */ if ((addresses == null || !addresses.hasNext()) && gateways.hasNext()) do { String server = (String) gateways.next(); String port = "25"; int idx = server.indexOf(':'); if ( idx > 0) { port = server.substring(idx+1); server = server.substring(0,idx); } final String nextGateway = server; final String nextGatewayPort = port; try { final InetAddress[] ips = org.apache.james.dnsserver.DNSServer.getAllByName(nextGateway); addresses = new Iterator() { private InetAddress[] ipAddresses = ips; int i = 0; public boolean hasNext() { return i < ipAddresses.length; } public Object next() { return new org.apache.mailet.HostAddress(nextGateway, "smtp://" + (ipAddresses[i++]).getHostAddress() + ":" + nextGatewayPort); } public void remove() { throw new UnsupportedOperationException ("remove not supported by this iterator"); } }; } catch (java.net.UnknownHostException uhe) { log("Unknown gateway host: " + uhe.getMessage().trim()); log("This could be a DNS server error or configuration error."); } } while (!addresses.hasNext() && gateways.hasNext()); return addresses != null && addresses.hasNext(); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/1ef5aa9aaace747d192c8e2ec141056476d8dcf6/RemoteDelivery.java/clean/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1250, 4564, 1435, 288, 7734, 1748, 4344, 3071, 716, 1347, 1024, 1435, 353, 2566, 16, 716, 732, 848, 1171, 380, 5615, 279, 4893, 1887, 18, 225, 1220, 4696, 716, 732, 1608, 358, 1171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1250, 4564, 1435, 288, 7734, 1748, 4344, 3071, 716, 1347, 1024, 1435, 353, 2566, 16, 716, 732, 848, 1171, 380, 5615, 279, 4893, 1887, 18, 225, 1220, 4696, 716, 732, 1608, 358, 1171...
JPanel panel = new JPanel(); panel.setLayout(new GridLayout(2,2)); panel.add(new JLabel(jEdit.getProperty("selectlinerange.start"), SwingConstants.RIGHT)); panel.add(start = new JTextField());
JPanel panel = createFieldPanel();
public SelectLineRange(View view) { super(view,jEdit.getProperty("selectlinerange.title"),true); buffer = view.getBuffer(); getContentPane().add(BorderLayout.NORTH,new JLabel( jEdit.getProperty("selectlinerange.caption"))); JPanel panel = new JPanel(); panel.setLayout(new GridLayout(2,2)); panel.add(new JLabel(jEdit.getProperty("selectlinerange.start"), SwingConstants.RIGHT)); panel.add(start = new JTextField()); panel.add(new JLabel(jEdit.getProperty("selectlinerange.end"), SwingConstants.RIGHT)); panel.add(end = new JTextField()); getContentPane().add(BorderLayout.CENTER,panel); panel = new JPanel(); panel.add(ok = new JButton(jEdit.getProperty("common.ok"))); ok.addActionListener(this); panel.add(cancel = new JButton(jEdit.getProperty( "common.cancel"))); cancel.addActionListener(this); getContentPane().add(BorderLayout.SOUTH,panel); getRootPane().setDefaultButton(ok); GUIUtilities.requestFocus(this,start); pack(); setLocationRelativeTo(view); show(); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/a93dd37609b64b525a261ada694c678713fb5ecb/SelectLineRange.java/clean/org/gjt/sp/jedit/gui/SelectLineRange.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6766, 1670, 2655, 12, 1767, 1476, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4025, 7511, 264, 726, 18, 2649, 6, 3631, 3767, 1769, 202, 202, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6766, 1670, 2655, 12, 1767, 1476, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4025, 7511, 264, 726, 18, 2649, 6, 3631, 3767, 1769, 202, 202, 41...
if (jj_3R_224()) return true;
Token xsp; xsp = jj_scanpos; if (jj_3_36()) { jj_scanpos = xsp; if (jj_3R_247()) return true; }
final private boolean jj_3R_226() { if (jj_3R_224()) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3787, 26, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 67, 5718, 10756, 288, 10684,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3787, 26, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 67, 5718, 10756, 288, 10684,...
public void windowClosing(WindowEvent e) {System.exit(0);}
public void windowClosing(WindowEvent e) { System.exit(0); }
public void go(String args[]) throws IOException, VisADException, RemoteException { String dir = ""; String slash = System.getProperty("file.separator"); if (args.length > 0) { dir = args[0]; if (!dir.endsWith(slash)) dir = dir + slash; } RealTupleType domain = null; Unit unit = null; String name = null; Set set = null; RealType[] valueTypes = new RealType[NFILES]; values = new float[NFILES][]; DefaultFamily loader = new DefaultFamily("loader"); for (int i=0; i<NFILES; i++) { Tuple tuple = (Tuple) loader.open(dir + "SPB" + (i+1) + ".PIC"); FieldImpl field = (FieldImpl) tuple.getComponent(0); FlatField ff = (FlatField) field.getSample(0); set = ff.getDomainSet();/*System.out.println("set = " + set);set = Linear2DSet: Length = 393216 Dimension 1: Length = 768 Range = 0.0 to 767.0 Dimension 2: Length = 512 Range = 0.0 to 511.0*/ if (i == 0) { FunctionType func = (FunctionType) ff.getType(); domain = func.getDomain(); element = (RealType) domain.getComponent(0); line = (RealType) domain.getComponent(1); value = (RealType) func.getRange(); unit = value.getDefaultUnit(); name = value.getName(); } valueTypes[i] = RealType.getRealType(name + (i+1), unit); float[][] temps = ff.getFloats(false); values[i] = temps[0]; // System.out.println("data " + i + " type: " + valueTypes[i]); } npixels = values[0].length; RealTupleType range = new RealTupleType(valueTypes); FunctionType bigFunc = new FunctionType(domain, range); final FlatField bigData = new FlatField(bigFunc, set); bigData.setSamples(values, false); // RealType value = RealType.getRealType("value"); RealType hue = RealType.getRealType("hue"); RealType bigHue = RealType.getRealType("HUE"); RealTupleType newRange = new RealTupleType(value, hue); FunctionType newFunc = new FunctionType(domain, newRange); data = new FlatField(newFunc, set); dataValues = new float[2][npixels]; DataReferenceImpl ref1 = new DataReferenceImpl("ref1"); ref1.setData(data); text = TextType.getTextType("text"); RealType[] time = {RealType.Time}; RealTupleType timeType = new RealTupleType(time); MathType[] mtypes = {element, line, text}; textTuple = new TupleType(mtypes); FunctionType textFunction = new FunctionType(RealType.Time, textTuple); Set timeSet = new Linear1DSet(timeType, 0.0, 1.0, 2); textField = new FieldImpl(textFunction, timeSet); DataReferenceImpl textRef = new DataReferenceImpl("textRef"); textRef.setData(textField); Linear2DSet wedgeSet = new Linear2DSet(domain, 0.0, 767.0, 768, 550.0, 570.0, 21); wedge = new FlatField(newFunc, wedgeSet); wedgeSamples = new float[2][768 * 21]; DataReferenceImpl wedgeRef = new DataReferenceImpl("wedgeRef"); wedgeRef.setData(wedge); final DataReferenceImpl xref = new DataReferenceImpl("xref"); // System.out.println("data type: " + newFunc); display1 = new DisplayImplJ3D("display1", new TwoDDisplayRendererJ3D()); ScalarMap xmap = new ScalarMap(element, Display.XAxis); display1.addMap(xmap); huexmap = new ScalarMap(bigHue, Display.XAxis); display1.addMap(huexmap); ScalarMap ymap = new ScalarMap(line, Display.YAxis); display1.addMap(ymap); ymap.setRange(0.0, 511.0); vmap = new ScalarMap(value, Display.Value); display1.addMap(vmap); hmap = new ScalarMap(hue, Display.Hue); display1.addMap(hmap); ScalarMap textmap = new ScalarMap(text, Display.Text); display1.addMap(textmap); display1.addMap(new ConstantMap(1.0, Display.Saturation)); Control ctrl = textmap.getControl(); if (ctrl != null && ctrl instanceof TextControl) { TextControl textControl = (TextControl) ctrl; textControl.setSize(1.0); textControl.setJustification(TextControl.Justification.CENTER); textControl.setAutoSize(true); } // display1.getGraphicsModeControl().setScaleEnable(true); display1.addReference(ref1); DefaultRendererJ3D renderer = new DefaultRendererJ3D(); display1.addReferences(renderer, xref); renderer.suppressExceptions(true); DefaultRendererJ3D textRenderer = new DefaultRendererJ3D(); display1.addReferences(textRenderer, textRef); textRenderer.suppressExceptions(true); DefaultRendererJ3D wedgeRenderer = new DefaultRendererJ3D(); display1.addReferences(wedgeRenderer, wedgeRef); wedgeRenderer.suppressExceptions(true); lineRef = new DataReferenceImpl("line"); Gridded2DSet dummySet = new Gridded2DSet(domain, null, 1); lineRef.setData(dummySet); display1.addReferences( new RubberBandLineRendererJ3D(element, line), lineRef); final RealType channel = RealType.getRealType("channel"); final RealType point = RealType.getRealType("point"); RealType intensity = RealType.getRealType("intensity"); final FunctionType spectrumType = new FunctionType(channel, intensity); final FunctionType spectraType = new FunctionType(point, spectrumType); final FunctionType lineType = new FunctionType(point, intensity); final FunctionType linesType = new FunctionType(channel, lineType); final DataReferenceImpl ref2 = new DataReferenceImpl("ref2"); DisplayImplJ3D display2 = new DisplayImplJ3D("display2"); ScalarMap xmap2 = new ScalarMap(channel, Display.XAxis); display2.addMap(xmap2); ScalarMap ymap2 = new ScalarMap(intensity, Display.YAxis); display2.addMap(ymap2); ScalarMap zmap2 = new ScalarMap(point, Display.ZAxis); display2.addMap(zmap2); display2.getGraphicsModeControl().setScaleEnable(true); DefaultRendererJ3D renderer2 = new DefaultRendererJ3D(); display2.addReferences(renderer2, ref2); renderer2.suppressExceptions(true); final RealTupleType fdomain = domain; CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { Set cellSet = (Set) lineRef.getData(); if (cellSet == null) return; float[][] samples = cellSet.getSamples(); if (samples == null) return; // System.out.println("box (" + samples[0][0] + ", " + samples[1][0] + // ") to (" + samples[0][1] + ", " + samples[1][1] + ")"); float x1 = samples[0][0]; float y1 = samples[1][0]; float x2 = samples[0][1]; float y2 = samples[1][1]; double dist = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); int nsamp = (int) (dist + 1.0); if (nsamp < 2) nsamp = 2; float[][] ss = new float[2][nsamp]; for (int i=0; i<nsamp; i++) { float a = ((float) i) / (nsamp - 1.0f); ss[0][i] = x1 + a * (x2 - x1); ss[1][i] = y1 + a * (y2 - y1); } Gridded2DSet line = new Gridded2DSet(fdomain, ss, nsamp); xref.setData(line); FlatField lineField = (FlatField) // bigData.resample(line, Data.WEIGHTED_AVERAGE, Data.NO_ERRORS); bigData.resample(line, Data.NEAREST_NEIGHBOR, Data.NO_ERRORS); float[][] lineSamples = lineField.getFloats(false); // [NFILES][nsamp] Linear1DSet pointSet = new Linear1DSet(point, 0.0, 1.0, nsamp); Integer1DSet channelSet = new Integer1DSet(channel, NFILES); FieldImpl spectra = new FieldImpl(spectraType, pointSet); for (int i=0; i<nsamp; i++) { FlatField spectrum = new FlatField(spectrumType, channelSet); float[][] temp = new float[1][NFILES]; for (int j=0; j<NFILES; j++) { temp[0][j] = lineSamples[j][i]; } spectrum.setSamples(temp, false); spectra.setSample(i, spectrum); } FieldImpl lines = new FieldImpl(linesType, channelSet); for (int j=0; j<NFILES; j++) { FlatField linex = new FlatField(lineType, pointSet); float[][] temp = new float[1][nsamp]; for (int i=0; i<nsamp; i++) { temp[0][i] = lineSamples[j][i]; } linex.setSamples(temp, false); lines.setSample(j, linex); } ref2.setData(new Tuple(new Data[] {spectra, lines})); } }; cell.addReference(lineRef); VisADSlider[] valueSliders = new VisADSlider[NFILES]; VisADSlider[] hueSliders = new VisADSlider[NFILES]; valueRefs = new DataReferenceImpl[NFILES]; hueRefs = new DataReferenceImpl[NFILES]; JFrame frame = new JFrame("VisAD MultiLUT"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); // create JPanel in frame JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.setAlignmentY(JPanel.TOP_ALIGNMENT); panel.setAlignmentX(JPanel.LEFT_ALIGNMENT); frame.setContentPane(panel); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.Y_AXIS)); left.setAlignmentY(JPanel.TOP_ALIGNMENT); left.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel center = new JPanel(); center.setLayout(new BoxLayout(center, BoxLayout.Y_AXIS)); center.setAlignmentY(JPanel.TOP_ALIGNMENT); center.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel right = new JPanel(); right.setLayout(new BoxLayout(right, BoxLayout.Y_AXIS)); right.setAlignmentY(JPanel.TOP_ALIGNMENT); right.setAlignmentX(JPanel.LEFT_ALIGNMENT); panel.add(left); panel.add(center); panel.add(right); Dimension d = new Dimension(300, 1000); left.setMaximumSize(d); center.setMaximumSize(d); for (int i=0; i<NFILES; i++) { valueRefs[i] = new DataReferenceImpl("value" + i); valueRefs[i].setData(new Real(1.0)); valueSliders[i] = new VisADSlider("value" + i, -100, 100, 100, 0.01, valueRefs[i], RealType.Generic); left.add(valueSliders[i]); hueRefs[i] = new DataReferenceImpl("hue" + i); hueRefs[i].setData(new Real(1.0)); hueSliders[i] = new VisADSlider("hue" + i, -100, 100, 100, 0.01, hueRefs[i], RealType.Generic); center.add(hueSliders[i]); } // slider button for setting all value sliders to 0 JButton valueClear = new JButton("Zero values"); valueClear.addActionListener(this); valueClear.setActionCommand("valueClear"); left.add(Box.createVerticalStrut(10)); left.add(valueClear); // slider button for setting all value sliders to 1 JButton valueSet = new JButton("One values"); valueSet.addActionListener(this); valueSet.setActionCommand("valueSet"); left.add(valueSet); // slider button for setting all hue sliders to 0 JButton hueClear = new JButton("Zero hues"); hueClear.addActionListener(this); hueClear.setActionCommand("hueClear"); center.add(Box.createVerticalStrut(10)); center.add(hueClear); // slider button for setting all hue sliders to 1 JButton hueSet = new JButton("One hues"); hueSet.addActionListener(this); hueSet.setActionCommand("hueSet"); center.add(hueSet); // slider button for setting all hue sliders to 0 right.add(display1.getComponent()); right.add(display2.getComponent()); // vmin and vmax labels minmax = new JLabel(" "); left.add(Box.createVerticalStrut(30)); left.add(minmax); // "GO" button for applying computation in sliders JButton compute = new JButton("Compute"); compute.addActionListener(this); compute.setActionCommand("compute"); left.add(Box.createVerticalStrut(10)); left.add(compute); int width = 1200; int height = 1000; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation(screenSize.width/2 - width/2, screenSize.height/2 - height/2); frame.setSize(width, height); frame.setVisible(true); doit(); }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/70f56ee3fa101ec0d5c6f5c67bc3511fe51aa484/MultiLUT.java/buggy/loci/MultiLUT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1960, 12, 780, 833, 63, 5717, 540, 1216, 1860, 16, 8077, 1880, 503, 16, 18361, 288, 565, 514, 1577, 273, 1408, 31, 565, 514, 9026, 273, 2332, 18, 588, 1396, 2932, 768, 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, 282, 1071, 918, 1960, 12, 780, 833, 63, 5717, 540, 1216, 1860, 16, 8077, 1880, 503, 16, 18361, 288, 565, 514, 1577, 273, 1408, 31, 565, 514, 9026, 273, 2332, 18, 588, 1396, 2932, 768, 18, ...
public void run() {
public void run() {
public void run() { switch (type) { case OPEN_FILE: try { debugGui.dim.compileScript(fileName, text); } catch (RuntimeException ex) { MessageDialogWrapper.showMessageDialog( debugGui, ex.getMessage(), "Error Compiling "+fileName, JOptionPane.ERROR_MESSAGE); } break; case LOAD_FILE: try { debugGui.dim.evalScript(fileName, text); } catch (RuntimeException ex) { MessageDialogWrapper.showMessageDialog( debugGui, ex.getMessage(), "Run error for "+fileName, JOptionPane.ERROR_MESSAGE); } break; case UPDATE_SOURCE_TEXT: { String fileName = sourceInfo.url(); FileWindow w = debugGui.getFileWindow(fileName); if (w != null) { w.updateText(sourceInfo); w.show(); } else if (!fileName.equals("<stdin>")) { debugGui.createFileWindow(sourceInfo, -1); } } break; case ENTER_INTERRUPT: debugGui.enterInterruptImpl(lastFrame, threadTitle, alertMessage); break; default: throw new IllegalArgumentException(String.valueOf(type)); } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/SwingGui.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 1620, 261, 723, 13, 288, 1850, 648, 11919, 67, 3776, 30, 5411, 775, 288, 7734, 1198, 18070, 18, 3509, 18, 11100, 3651, 12, 17812, 16, 977, 1769, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 1620, 261, 723, 13, 288, 1850, 648, 11919, 67, 3776, 30, 5411, 775, 288, 7734, 1198, 18070, 18, 3509, 18, 11100, 3651, 12, 17812, 16, 977, 1769, 5...
public NamingEnumeration list(Name name) throws NamingException { return getURLOrDefaultInitCtx(name).list(name); }
public NamingEnumeration list (Name name) throws NamingException { return getURLOrDefaultInitCtx (name).list (name); }
public NamingEnumeration list(Name name) throws NamingException { return getURLOrDefaultInitCtx(name).list(name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/InitialContext.java/clean/core/src/classpath/javax/javax/naming/InitialContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18884, 21847, 666, 12, 461, 508, 13, 1216, 26890, 288, 202, 202, 2463, 19341, 25186, 2570, 6442, 12, 529, 2934, 1098, 12, 529, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 18884, 21847, 666, 12, 461, 508, 13, 1216, 26890, 288, 202, 202, 2463, 19341, 25186, 2570, 6442, 12, 529, 2934, 1098, 12, 529, 1769, 202, 97, 2, -100, -100, -100, -100, -100, ...
public void markPageStale( int type ) {
public void markPageStale(int type) {
public void markPageStale( int type ) { staleType = type; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/464f907d246180ca04c84336398722e6d5245566/ReportPreviewFormPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.preview/src/org/eclipse/birt/report/designer/ui/preview/editors/ReportPreviewFormPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2267, 1964, 19155, 12, 509, 618, 262, 202, 95, 202, 202, 334, 5349, 559, 273, 618, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2267, 1964, 19155, 12, 509, 618, 262, 202, 95, 202, 202, 334, 5349, 559, 273, 618, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if(newParent == null || parent.equals(newParent))
if(newParent == null || VFSBrowser.pathsEqual(parent,newParent))
public void directoryLoaded(Object node, String path, ArrayList directory) { //{{{ If reloading root, update parent directory list if(node == null) { DefaultListModel parentList = new DefaultListModel(); String parent = path; for(;;) { VFS _vfs = VFSManager.getVFSForPath( parent); // create a DirectoryEntry manually // instead of using _vfs._getDirectoryEntry() // since so many VFS's have broken // implementations of this method parentList.insertElementAt(new VFS.DirectoryEntry( _vfs.getFileName(parent), parent,parent, VFS.DirectoryEntry.DIRECTORY, 0L,false),0); String newParent = _vfs.getParentOfPath(parent); if(newParent == null || parent.equals(newParent)) break; else parent = newParent; } parentDirectories.setModel(parentList); int index = parentList.getSize() - 1; parentDirectories.setSelectedIndex(index); parentDirectories.ensureIndexIsVisible(index); } //}}} table.setDirectory(VFSManager.getVFSForPath(path), node,directory,tmpExpanded); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/bc81d18da34a52356cfef51e2ab4935f5b58e5bb/BrowserView.java/buggy/org/gjt/sp/jedit/browser/BrowserView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1867, 8835, 12, 921, 756, 16, 514, 589, 16, 2407, 1867, 13, 202, 95, 202, 202, 759, 12187, 95, 971, 7749, 310, 1365, 16, 1089, 982, 1867, 666, 202, 202, 430, 12, 2159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1867, 8835, 12, 921, 756, 16, 514, 589, 16, 2407, 1867, 13, 202, 95, 202, 202, 759, 12187, 95, 971, 7749, 310, 1365, 16, 1089, 982, 1867, 666, 202, 202, 430, 12, 2159, ...
case Id_toFixed: return realThis(thisObj, f).jsFunction_toFixed(cx, args);
case Id_toExponential: return realThis(thisObj, f). jsFunction_toExponential(cx, args);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(toBase(args, 0)); case Id_valueOf: return wrap_double(realThis(thisObj, f). jsFunction_valueOf()); case Id_toLocaleString: return realThis(thisObj, f). jsFunction_toLocaleString(toBase(args, 0)); case Id_toFixed: return realThis(thisObj, f).jsFunction_toFixed(cx, args); case Id_toExponential: return realThis(thisObj, f).jsFunction_toExponential(cx, args); case Id_toPrecision: return realThis(thisObj, f).jsFunction_toPrecision(cx, args); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeNumber.java/buggy/js/rhino/src/org/mozilla/javascript/NativeNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '@' : token.append(c); c = support.read(); if (c == '@') { token.append(c); c = support.read(); } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); if (token.getToken().startsWith("@@")) { list.add(new ClassVarNode(token.getPosition(), token.getToken())); } else { list.add(new InstVarNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); return true; case '{' : if (c == '{') { brace = '}'; } nest = 0; do { loop_again : while (true) { c = support.read(); switch (c) { case '\0' : if (nest > 0) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_substitution")); token.newToken(support.getPosition()); return true; } throw new EOFException(); case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } token.append(c); continue loop_again; case '\\' : c = support.read(); if (c == '\0') { throw new EOFException(); } else if (c == closeQuote) { token.append(c); } else { token.append('\\'); token.append(c); } continue loop_again; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); list.add(new StrNode(token.getPosition(), "#")); errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("bad_substitution")); list.add(new StrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; } default : token.append(c); break; } break loop_again; } } while (c != brace); } break; }
for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '@' : token.append(c); c = support.read(); if (c == '@') { token.append(c); c = support.read(); } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); if (token.getToken().startsWith("@@")) { list.add(new ClassVarNode(token.getPosition(), token.getToken())); } else { list.add(new InstVarNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); return true; case '{' : if (c == '{') { brace = '}'; } nest = 0; do { loop_again : while (true) { c = support.read(); switch (c) { case '\0' : if (nest > 0) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_substitution")); token.newToken(support.getPosition()); return true; } throw new EOFException(); case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } token.append(c); continue loop_again; case '\\' : c = support.read(); if (c == '\0') { throw new EOFException(); } else if (c == closeQuote) { token.append(c); } else { token.append('\\'); token.append(c); } continue loop_again; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); list.add(new StrNode(token.getPosition(), "#")); errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("bad_substitution")); list.add(new StrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; } default : token.append(c); break; } break loop_again; } } while (c != brace); } break; }
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { list.add(new StrNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); int brace = -1; int nest;fetch_id : for (;;) { switch (c) { case '$' : token.append('$'); c = support.read(); if (c == '\0') { throw new EOFException(); } switch (c) { case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : for (; Character.isDigit(c); c = support.read()) { token.append(c); } pushback(c); list.add(new NthRefNode(token.getPosition(), Integer.parseInt(token.getToken().substring(1)))); token.newToken(support.getPosition()); return true; case '&' : case '+' : list.add(new BackRefNode(token.getPosition(), c)); token.newToken(support.getPosition()); return true; case '_' : case '~' : case '*' : case '$' : case '?' : case '!' : case '@' : case ',' : case '.' : case '=' : case ':' : case '<' : case '>' : case '\\' : //refetch: token.append(c); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; default : if (c == closeQuote) { list.add(new StrNode(token.getPosition(), "#$")); //$NON-NLS-1$ support.unread(); token.newToken(support.getPosition()); return true; } switch (c) { case '\"' : case '/' : token.append(c); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '\'' : case '`' : list.add(new BackRefNode(token.getPosition(), c)); token.newToken(support.getPosition()); return true; } if (!isIdentifierChar(c)) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_global_variable")); //$NON-NLS-1$ token.newToken(support.getPosition()); return true; } } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); list.add(new GlobalVarNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; case '@' : token.append(c); c = support.read(); if (c == '@') { token.append(c); c = support.read(); } for (; isIdentifierChar(c); c = support.read()) { token.append(c); } support.unread(); if (token.getToken().startsWith("@@")) { //$NON-NLS-1$ list.add(new ClassVarNode(token.getPosition(), token.getToken())); } else { list.add(new InstVarNode(token.getPosition(), token.getToken())); } token.newToken(support.getPosition()); return true; case '{' : if (c == '{') { brace = '}'; } nest = 0; do {loop_again : while (true) { c = support.read(); switch (c) { case '\0' : if (nest > 0) { errorHandler.handleError(IErrors.SYNTAX_ERROR, token.getPosition(), Messages.getString("bad_substitution")); //$NON-NLS-1$ token.newToken(support.getPosition()); return true; } throw new EOFException(); case '}' : if (c == brace) { if (nest == 0) { break; } nest--; } token.append(c); continue loop_again; case '\\' : c = support.read(); if (c == '\0') { throw new EOFException(); } else if (c == closeQuote) { token.append(c); } else { token.append('\\'); token.append(c); } continue loop_again; case '{' : if (brace != -1) { nest++; } case '\"' : case '/' : case '`' : if (c == closeQuote) { pushback(c); list.add(new StrNode(token.getPosition(), "#")); //$NON-NLS-1$ errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("bad_substitution")); //$NON-NLS-1$ list.add(new StrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; } default : token.append(c); break; } break loop_again; } } while (c != brace); } break; } // FIX list.add(new EvStrNode(token.getPosition(), token.getToken())); token.newToken(support.getPosition()); return true; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 1250, 30838, 780, 12, 45, 682, 907, 666, 16, 1149, 1746, 10257, 16, 514, 1345, 1147, 13, 1216, 30051, 288, 1082, 202, 3001, 276, 273, 2865, 18, 896, 5621, 1082, 202, 9610, 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, 3196, 202, 1152, 1250, 30838, 780, 12, 45, 682, 907, 666, 16, 1149, 1746, 10257, 16, 514, 1345, 1147, 13, 1216, 30051, 288, 1082, 202, 3001, 276, 273, 2865, 18, 896, 5621, 1082, 202, 9610, 2...
else if(range.getFrom().compareTo(stringLength) == 1) {
else if(range.getTo().compareTo(stringLength) == -1) {
protected void processValidate(Object propertyValue, Errors errors) { Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue, range.getFrom(), range.getTo() }; if(propertyValue == null) { super.rejectValue(errors,SIZE_CONSTRAINT + INVALID_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); return; } if(propertyValue.getClass().isArray()) { Integer length = new Integer(Array.getLength( propertyValue )); if(!range.contains(length)) { if(range.getFrom().compareTo( length ) == -1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOSHORT_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } else if(range.getFrom().compareTo(length) == 1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOLONG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } return; } } if(propertyValue instanceof Collection) { Integer collectionSize = new Integer(((Collection)propertyValue).size()); if(!range.contains( collectionSize )) { if(range.getFrom().compareTo( collectionSize ) == -1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOSMALL_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } else if(range.getFrom().compareTo(collectionSize) == 1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOBIG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } } } else if(propertyValue instanceof Number) { if(range.getFrom().compareTo( propertyValue ) == -1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOSMALL_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } else if(range.getFrom().compareTo(propertyValue) == 1) { super.rejectValue(errors,SIZE_CONSTRAINT + TOOBIG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_SIZE_MESSAGE, args )); } } else if(propertyValue instanceof String) { Integer stringLength = new Integer(((String)propertyValue ).length()); if(!range.contains(stringLength)) { if(range.getFrom().compareTo( stringLength ) == -1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOSHORT_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } else if(range.getFrom().compareTo(stringLength) == 1) { super.rejectValue(errors,LENGTH_CONSTRAINT + TOOLONG_SUFFIX,args,MessageFormat.format( DEFAULT_INVALID_LENGTH_MESSAGE, args )); } } } }
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/1db9771587982d3c4e7d8b077a7c3357d6207c4c/ConstrainedProperty.java/buggy/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 1207, 4270, 12, 921, 12337, 16, 9372, 1334, 13, 288, 5411, 1033, 8526, 833, 273, 394, 1033, 8526, 288, 4954, 13073, 16, 4954, 3494, 2093, 797, 16, 12337, 16, 225, 1048, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 1207, 4270, 12, 921, 12337, 16, 9372, 1334, 13, 288, 5411, 1033, 8526, 833, 273, 394, 1033, 8526, 288, 4954, 13073, 16, 4954, 3494, 2093, 797, 16, 12337, 16, 225, 1048, 18, 5...
super(EvaluatorException.generateErrorMessage( errorName+": "+errorMessage, sourceName, lineNumber));
recordErrorOrigin(sourceName, lineNumber, lineSource, columnNumber);
EcmaError(String errorName, String errorMessage, String sourceName, int lineNumber, String lineSource, int columnNumber) { super(EvaluatorException.generateErrorMessage( errorName+": "+errorMessage, sourceName, lineNumber)); this.errorName = errorName; this.errorMessage = errorMessage; this.sourceName = sourceName; this.lineNumber = lineNumber; this.lineSource = lineSource; this.columnNumber = columnNumber; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/d0771b878dc28db19b34996d546b15ce93d669c9/EcmaError.java/buggy/src/org/mozilla/javascript/EcmaError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 20840, 2540, 668, 12, 780, 555, 461, 16, 514, 9324, 16, 2868, 514, 28337, 16, 509, 13629, 16, 2868, 514, 980, 1830, 16, 509, 1057, 1854, 13, 565, 288, 3639, 2240, 12, 15876, 503, 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, 20840, 2540, 668, 12, 780, 555, 461, 16, 514, 9324, 16, 2868, 514, 28337, 16, 509, 13629, 16, 2868, 514, 980, 1830, 16, 509, 1057, 1854, 13, 565, 288, 3639, 2240, 12, 15876, 503, 18, ...
JPanel mainPanel = new JPanel( new GridLayout(2,1)); getContentPane().add(mainPanel);
JPanel mainPanel = new JPanel( new BorderLayout());
public ObjectDialog(Frame frame, int updInt) { super(frame, "Bind Object", true); isOk = false; JPanel mainPanel = new JPanel( new GridLayout(2,1)); getContentPane().add(mainPanel); JPanel hiPanel = new JPanel(); hiPanel.setLayout( new BoxLayout( hiPanel, BoxLayout.Y_AXIS )); JPanel loPanel = new JPanel(); mainPanel.add(hiPanel); mainPanel.add(loPanel); JLabel nameLabel = new JLabel("Name:"); JLabel objectLabel = new JLabel("IOR:"); nameField = new JTextField(40); iorField = new JTextField(40); hiPanel.add(nameLabel); hiPanel.add(nameField); hiPanel.add(objectLabel); hiPanel.add(iorField); JButton ok = new JButton("Ok"); JButton cancel = new JButton("Cancel"); loPanel.add(ok); loPanel.add(cancel); ok.addActionListener(this); cancel.addActionListener(this); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/6bcfe850c93f1148978263364e80cb2d4b984bea/ObjectDialog.java/clean/src/org/jacorb/naming/namemanager/ObjectDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 6353, 12, 3219, 2623, 16, 509, 2166, 1702, 13, 565, 288, 3639, 2240, 12, 3789, 16, 315, 3357, 1033, 3113, 638, 1769, 3639, 353, 8809, 273, 629, 31, 3639, 24048, 2774, 5537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 6353, 12, 3219, 2623, 16, 509, 2166, 1702, 13, 565, 288, 3639, 2240, 12, 3789, 16, 315, 3357, 1033, 3113, 638, 1769, 3639, 353, 8809, 273, 629, 31, 3639, 24048, 2774, 5537, ...
.getEntry(IBuildPropertiesConstants.PROPERTY_BIN_EXCLUDES);
.getEntry(IBuildPropertiesConstants.PROPERTY_BIN_EXCLUDES);
protected void entryModified(IBuildEntry oldEntry, String newValue) { final IBuildEntry entry = oldEntry; IBuildModel buildModel = getBuildModel(); IBuild build = buildModel.getBuild(); String oldName = entry.getName().substring(7); try { if (newValue.equals(entry.getName())) return; if (!newValue.startsWith(IBuildEntry.JAR_PREFIX)) newValue = IBuildEntry.JAR_PREFIX + newValue; if (!newValue.endsWith(".jar") && !newValue.endsWith("/") && !newValue.equals(".")) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ newValue +="/"; //$NON-NLS-1$ // jars.compile.order IBuildEntry tempEntry = build .getEntry(IBuildPropertiesConstants.PROPERTY_JAR_ORDER); if (tempEntry != null && tempEntry.contains(oldName)){ tempEntry.renameToken(oldName, newValue.substring(7)); } // output.{source folder}.jar tempEntry = build .getEntry(IBuildPropertiesConstants.PROPERTY_OUTPUT_PREFIX + oldName); if (tempEntry != null) { tempEntry .setName(IBuildPropertiesConstants.PROPERTY_OUTPUT_PREFIX + newValue.substring(7)); } // bin.includes tempEntry = build .getEntry(IBuildPropertiesConstants.PROPERTY_BIN_INCLUDES); if (tempEntry != null && tempEntry.contains(oldName)){ tempEntry.renameToken(oldName, newValue.substring(7)); } // bin.excludes tempEntry = build .getEntry(IBuildPropertiesConstants.PROPERTY_BIN_EXCLUDES); if (tempEntry != null && tempEntry.contains(oldName)){ tempEntry.renameToken(oldName, newValue.substring(7)); } // rename entry.setName(newValue); } catch (CoreException e) { PDEPlugin.logException(e); } }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/99df0a4ed1a722d3742eed3ce69d6544570a4490/RuntimeInfoSection.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/RuntimeInfoSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1241, 4575, 12, 45, 3116, 1622, 1592, 1622, 16, 514, 6129, 13, 288, 202, 202, 6385, 467, 3116, 1622, 1241, 273, 1592, 1622, 31, 202, 202, 45, 3116, 1488, 1361, 1488, 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, 1117, 918, 1241, 4575, 12, 45, 3116, 1622, 1592, 1622, 16, 514, 6129, 13, 288, 202, 202, 6385, 467, 3116, 1622, 1241, 273, 1592, 1622, 31, 202, 202, 45, 3116, 1488, 1361, 1488, 273...
cfw.stopMethod((short)3, null);
cfw.stopMethod((short)2, null);
private void emitRegExpInit(ClassFileWriter cfw) { // precompile all regexp literals int totalRegCount = 0; for (int i = 0; i != scriptOrFnNodes.length; ++i) { totalRegCount += scriptOrFnNodes[i].getRegexpCount(); } if (totalRegCount == 0) { return; } cfw.startMethod(REGEXP_INIT_METHOD_NAME, REGEXP_INIT_METHOD_SIGNATURE, (short)(ClassFileWriter.ACC_STATIC | ClassFileWriter.ACC_PRIVATE | ClassFileWriter.ACC_SYNCHRONIZED)); cfw.addField("_reInitDone", "Z", (short)(ClassFileWriter.ACC_STATIC | ClassFileWriter.ACC_PRIVATE)); cfw.add(ByteCode.GETSTATIC, mainClassName, "_reInitDone", "Z"); int doInit = cfw.acquireLabel(); cfw.add(ByteCode.IFEQ, doInit); cfw.add(ByteCode.RETURN); cfw.markLabel(doInit); for (int i = 0; i != scriptOrFnNodes.length; ++i) { ScriptOrFnNode n = scriptOrFnNodes[i]; int regCount = n.getRegexpCount(); for (int j = 0; j != regCount; ++j) { String reFieldName = getCompiledRegexpName(n, j); String reFieldType = "Ljava/lang/Object;"; String reString = n.getRegexpString(j); String reFlags = n.getRegexpFlags(j); cfw.addField(reFieldName, reFieldType, (short)(ClassFileWriter.ACC_STATIC | ClassFileWriter.ACC_PRIVATE)); cfw.addALoad(0); // proxy cfw.addALoad(1); // context cfw.addALoad(2); // scope cfw.addPush(reString); if (reFlags == null) { cfw.add(ByteCode.ACONST_NULL); } else { cfw.addPush(reFlags); } cfw.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/RegExpProxy", "compileRegExp", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;Ljava/lang/String;" +")Ljava/lang/Object;"); cfw.add(ByteCode.PUTSTATIC, mainClassName, reFieldName, reFieldType); } } cfw.addPush(1); cfw.add(ByteCode.PUTSTATIC, mainClassName, "_reInitDone", "Z"); cfw.add(ByteCode.RETURN); cfw.stopMethod((short)3, null); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8df24a01d813540ecdfcd8a3a380c84cc9993734/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3626, 13673, 2570, 12, 797, 812, 2289, 6080, 91, 13, 565, 288, 3639, 368, 675, 11100, 777, 7195, 18228, 3639, 509, 2078, 1617, 1380, 273, 374, 31, 3639, 364, 261, 474, 277, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3626, 13673, 2570, 12, 797, 812, 2289, 6080, 91, 13, 565, 288, 3639, 368, 675, 11100, 777, 7195, 18228, 3639, 509, 2078, 1617, 1380, 273, 374, 31, 3639, 364, 261, 474, 277, 2...
XPathTreeParser2 treeParser = new XPathTreeParser2(pool, context);
XPathTreeParser2 treeParser = new XPathTreeParser2(context);
private List processQuery(String select) throws SAXException { try { StaticContext context = new StaticContext(user); Map.Entry entry; for (Iterator i = namespaces.entrySet().iterator(); i.hasNext();) { entry = (Map.Entry) i.next(); context.declareNamespace( (String) entry.getKey(), (String) entry.getValue()); } XPathLexer2 lexer = new XPathLexer2(new StringReader(select)); XPathParser2 parser = new XPathParser2(lexer); XPathTreeParser2 treeParser = new XPathTreeParser2(pool, context); parser.xpath(); if (parser.foundErrors()) { throw new SAXException(parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringTree()); PathExpr expr = new PathExpr(pool); treeParser.xpath(ast, expr); if (treeParser.foundErrors()) { throw new SAXException(treeParser.getErrorMessage()); } DocumentSet ndocs = expr.preselect(documentSet); if (ndocs.getLength() == 0) return new ArrayList(1); Value resultValue = expr.eval(context, documentSet, null, null); if (!(resultValue.getType() == Value.isNodeList)) throw new SAXException( "select expression should evaluate to a" + "node-set"); NodeList set = resultValue.getNodeList(); ArrayList out = new ArrayList(set.getLength()); for (int i = 0; i < set.getLength(); i++) { out.add(set.item(i)); } return out; } catch (RecognitionException e) { LOG.warn("error while creating variable", e); throw new SAXException(e); } catch (TokenStreamException e) { LOG.warn("error while creating variable", e); throw new SAXException(e); } catch (XPathException e) { throw new SAXException(e); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bfcf33dba9c98234a0edaa282c8909b27b6a6ac4/XUpdateProcessor.java/buggy/src/org/exist/xupdate/XUpdateProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 1207, 1138, 12, 780, 2027, 13, 1216, 14366, 288, 202, 202, 698, 288, 1082, 202, 5788, 1042, 819, 273, 394, 10901, 1042, 12, 1355, 1769, 1082, 202, 863, 18, 1622, 1241, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 1207, 1138, 12, 780, 2027, 13, 1216, 14366, 288, 202, 202, 698, 288, 1082, 202, 5788, 1042, 819, 273, 394, 10901, 1042, 12, 1355, 1769, 1082, 202, 863, 18, 1622, 1241, 3...
if (jj_3R_64()) return true;
if (jj_3R_54()) return true;
final private boolean jj_3R_42() { Token xsp; xsp = jj_scanpos; if (jj_3R_63()) { jj_scanpos = xsp; if (jj_3R_64()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9452, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4449, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9452, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4449, 10756, ...
int iterationID = getProcessesBegin( getBosHandle() );
long iterationID = getProcessesBegin( getBosHandle() );
protected void refreshProcesses() throws AFSException { Process currProcess; int iterationID = getProcessesBegin( getBosHandle() ); processes = new ArrayList(); currProcess = new Process( this ); while( getProcessesNext( getBosHandle(), iterationID, currProcess ) != 0 ) { processes.add( currProcess ); currProcess = new Process( this ); } getProcessesDone( iterationID ); }
51526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51526/2a4a4f417dd4193df9e0a3deae14aacd3f94ccb1/Server.java/buggy/src/JAVA/classes/org/openafs/jafs/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4460, 10599, 1435, 1216, 432, 4931, 503, 225, 288, 565, 4389, 4306, 2227, 31, 565, 1525, 6532, 734, 273, 336, 10599, 8149, 12, 2882, 538, 3259, 1435, 11272, 3639, 8488, 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, 282, 4750, 918, 4460, 10599, 1435, 1216, 432, 4931, 503, 225, 288, 565, 4389, 4306, 2227, 31, 565, 1525, 6532, 734, 273, 336, 10599, 8149, 12, 2882, 538, 3259, 1435, 11272, 3639, 8488, 273, 39...
public void setPatchName(IPatch p, String name)
public void setPatchName(Patch p, String name)
public void setPatchName(IPatch p, String name) { String s = new String(MKS50ToneSingleDriver.nameChars); for (int i = 0; i < patchNameSize; i++) { int j; if (i < name.length()) { j = s.indexOf(name.charAt(i)); if (j == -1) j = 62; // convert invalid character to space } else j = 62; // pad with spaces ((Patch)p).sysex[i+patchNameStart] = (byte)j; } }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/8de9e9d107eb8c0487bbadf2f24d3a5cc9bc1add/MKS50PatchSingleDriver.java/buggy/JSynthLib/synthdrivers/RolandMKS50/MKS50PatchSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 7332, 461, 12, 7332, 293, 16, 514, 508, 13, 225, 288, 565, 514, 272, 273, 394, 514, 12, 49, 47, 55, 3361, 56, 476, 5281, 4668, 18, 529, 7803, 1769, 565, 364, 261, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 7332, 461, 12, 7332, 293, 16, 514, 508, 13, 225, 288, 565, 514, 272, 273, 394, 514, 12, 49, 47, 55, 3361, 56, 476, 5281, 4668, 18, 529, 7803, 1769, 565, 364, 261, 47...
if (!drawText) svg_g2d.setDeferStrokColor(primGroup);
svg_g2d.setDeferStrokColor(primGroup);
protected void groupPrimitive(PrimitiveRenderEvent pre, boolean drawText) { if ( _iun == null ) { logger.log( ILogger.WARNING, Messages.getString( "exception.missing.component.interaction", getLocale( ) ) ); //$NON-NLS-1$ return; } SVGGraphics2D svg_g2d = (SVGGraphics2D) _g2d; // For now only group series elements if (pre.getSource() instanceof StructureSource) { final StructureSource src = isSeries((StructureSource) pre .getSource()); if (src != null) { try { Series seDT = findDesignTimeSeries((Series) src.getSource()); // LOCATE String id = Integer.toString(pre.hashCode()); // svg_g2d.setStyleClass("class"+seDT.hashCode()); List components = (List) componentPrimitives.get(seDT); if (components == null) { components = new ArrayList(); componentPrimitives.put(seDT, components); } // May have to group drawing instructions that come from the // same primitive render events. String idTemp = id; int counter = 1; while (components.contains(idTemp)) { idTemp = id + "@" + counter; //$NON-NLS-1$ counter++; } components.add(idTemp); // Create group element that will contain the drawing // instructions that corresponds to the event Element primGroup = svg_g2d.createElement("g"); //$NON-NLS-1$ svg_g2d.pushParent(primGroup); primGroup .setAttribute("id", seDT.hashCode() + "_" + idTemp); //$NON-NLS-1$ //$NON-NLS-2$ primGroup.setAttribute("style", "visibility:visible;"); //$NON-NLS-1$ //$NON-NLS-2$ if (!drawText) svg_g2d.setDeferStrokColor(primGroup); } catch (ChartException e) { logger.log(e); return; } } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f510f0450b719f1164a71aa08ec4359249fd0e0c/SVGRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1041, 9840, 12, 9840, 3420, 1133, 675, 16, 1250, 3724, 1528, 13, 288, 202, 202, 430, 261, 389, 77, 318, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1041, 9840, 12, 9840, 3420, 1133, 675, 16, 1250, 3724, 1528, 13, 288, 202, 202, 430, 261, 389, 77, 318, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 467...
HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException {
HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException {
public ActionForward viewShiftsAndGroups(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); Integer objectCode = getObjectCode(request); String groupPropertiesCodeString = request.getParameter("groupPropertiesCode"); Integer groupPropertiesCode = new Integer(groupPropertiesCodeString); Object args[] = { objectCode }; try { InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) ServiceManagerServiceFactory .executeService(userView, "ReadExecutionCourseByOID", args); InfoExecutionPeriod infoExecutionPeriod = infoExecutionCourse.getInfoExecutionPeriod(); request.setAttribute(SessionConstants.EXECUTION_PERIOD, infoExecutionPeriod); request.setAttribute(SessionConstants.EXECUTION_PERIOD_OID, infoExecutionPeriod .getIdInternal().toString()); } catch (FenixServiceException fenixServiceException) { throw new FenixActionException(fenixServiceException); } ISiteComponent shiftsAndGroupsView = new InfoSiteShiftsAndGroups(); readSiteView(request, shiftsAndGroupsView, null, groupPropertiesCode, null); if (((InfoSiteShiftsAndGroups) shiftsAndGroupsView).getInfoAttendsSet() == null) { ActionErrors actionErrors = new ActionErrors(); ActionError error = null; error = new ActionError("error.noGroupProperties"); actionErrors.add("error.noGroupProperties", error); saveErrors(request, actionErrors); return prepareViewExecutionCourseProjects(mapping, form, request, response); } if (((InfoSiteShiftsAndGroups) shiftsAndGroupsView).getInfoSiteGroupsByShiftList() == null) { request.setAttribute("noShifts", new Boolean(true)); } else { boolean found = false; Iterator iterShiftsAndGroups = ((InfoSiteShiftsAndGroups) shiftsAndGroupsView) .getInfoSiteGroupsByShiftList().iterator(); while (iterShiftsAndGroups.hasNext() && !found) { InfoSiteGroupsByShift shiftsAndGroups = (InfoSiteGroupsByShift) iterShiftsAndGroups .next(); if (shiftsAndGroups.getInfoSiteStudentGroupsList() != null) { request.setAttribute("hasGroups", new Boolean(true)); found = true; } } } return mapping.findForward("viewShiftsAndGroups"); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1476, 10544, 87, 1876, 3621, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 5411, 478, 275, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4382, 8514, 1476, 10544, 87, 1876, 3621, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 5411, 478, 275, 69...
return booleanNot(s);
result = booleanNot(s); break;
public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: return guardCombine(s); //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: return trapIf(s); case NULL_CHECK_opcode: return nullCheck(s); case INT_ZERO_CHECK_opcode: return intZeroCheck(s); case LONG_ZERO_CHECK_opcode: return longZeroCheck(s); case CHECKCAST_opcode: return checkcast(regpool, s); case CHECKCAST_UNRESOLVED_opcode: return checkcast(regpool, s); case CHECKCAST_NOTNULL_opcode: return checkcastNotNull(s); case INSTANCEOF_opcode: return instanceOf(regpool, s); case INSTANCEOF_NOTNULL_opcode: return instanceOfNotNull(s); case OBJARRAY_STORE_CHECK_opcode: return objarrayStoreCheck(s); case OBJARRAY_STORE_CHECK_NOTNULL_opcode: return objarrayStoreCheckNotNull(s); case MUST_IMPLEMENT_INTERFACE_opcode: return mustImplementInterface(s); //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: return intCondMove(s); case LONG_COND_MOVE_opcode: return longCondMove(s); case FLOAT_COND_MOVE_opcode: return floatCondMove(s); case DOUBLE_COND_MOVE_opcode: return doubleCondMove(s); case REF_COND_MOVE_opcode: return refCondMove(s); case GUARD_COND_MOVE_opcode: return guardCondMove(s); //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: return booleanNot(s); case BOOLEAN_CMP_INT_opcode: return booleanCmpInt(s); case BOOLEAN_CMP_ADDR_opcode: return booleanCmpAddr(s); case INT_ADD_opcode: return intAdd(s); case INT_AND_opcode: return intAnd(s); case INT_DIV_opcode: return intDiv(s); case INT_MUL_opcode: return intMul(regpool, s); case INT_NEG_opcode: return intNeg(s); case INT_NOT_opcode: return intNot(s); case INT_OR_opcode: return intOr(s); case INT_REM_opcode: return intRem(s); case INT_SHL_opcode: return intShl(s); case INT_SHR_opcode: return intShr(s); case INT_SUB_opcode: return intSub(s); case INT_USHR_opcode: return intUshr(s); case INT_XOR_opcode: return intXor(s); //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: return refAdd(s); case REF_AND_opcode: return refAnd(s); case REF_SHL_opcode: return refShl(s); case REF_SHR_opcode: return refShr(s); case REF_NOT_opcode: return refNot(s); case REF_OR_opcode: return refOr(s); case REF_SUB_opcode: return refSub(s); case REF_USHR_opcode: return regUshr(s); case REF_XOR_opcode: return refXor(s); //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: return longAdd(s); case LONG_AND_opcode: return longAnd(s); case LONG_CMP_opcode: return longCmp(s); case LONG_DIV_opcode: return longDiv(s); case LONG_MUL_opcode: return longMul(s); case LONG_NEG_opcode: return longNeg(s); case LONG_NOT_opcode: return longNot(s); case LONG_OR_opcode: return longOr(s); case LONG_REM_opcode: return longRem(s); case LONG_SHL_opcode: return longShl(s); case LONG_SHR_opcode: return longShr(s); case LONG_SUB_opcode: return longSub(s); case LONG_USHR_opcode: return longUshr(s); case LONG_XOR_opcode: return longXor(s); //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: return floatAdd(s); case FLOAT_CMPG_opcode: return floatCmpg(s); case FLOAT_CMPL_opcode: return floatCmpl(s); case FLOAT_DIV_opcode: return floatDiv(s); case FLOAT_MUL_opcode: return floatMul(s); case FLOAT_NEG_opcode: return floatNeg(s); case FLOAT_REM_opcode: return floatRem(s); case FLOAT_SUB_opcode: return floatSub(s); //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: return doubleAdd(s); case DOUBLE_CMPG_opcode: return doubleCmpg(s); case DOUBLE_CMPL_opcode: return doubleCmpl(s); case DOUBLE_DIV_opcode: return doubleDiv(s); case DOUBLE_MUL_opcode: return doubleMul(s); case DOUBLE_NEG_opcode: return doubleNeg(s); case DOUBLE_REM_opcode: return doubleRem(s); case DOUBLE_SUB_opcode: return doubleSub(s); //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: return double2Float(s); case DOUBLE_2INT_opcode: return double2Int(s); case DOUBLE_2LONG_opcode: return double2Long(s); case DOUBLE_AS_LONG_BITS_opcode: return doubleAsLongBits(s); case INT_2DOUBLE_opcode: return int2Double(s); case INT_2BYTE_opcode: return int2Byte(s); case INT_2USHORT_opcode: return int2UShort(s); case INT_2FLOAT_opcode: return int2Float(s); case INT_2LONG_opcode: return int2Long(s); case INT_2ADDRSigExt_opcode: return int2AddrSigExt(s); case INT_2ADDRZerExt_opcode: return int2AddrZerExt(s); //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: return long2Addr(s); //-#endif case INT_2SHORT_opcode: return int2Short(s); case INT_BITS_AS_FLOAT_opcode: return intBitsAsFloat(s); case ADDR_2INT_opcode: return addr2Int(s); case ADDR_2LONG_opcode: return addr2Long(s); case FLOAT_2DOUBLE_opcode: return float2Double(s); case FLOAT_2INT_opcode: return float2Int(s); case FLOAT_2LONG_opcode: return float2Long(s); case FLOAT_AS_INT_BITS_opcode: return floatAsIntBits(s); case LONG_2FLOAT_opcode: return long2Float(s); case LONG_2INT_opcode: return long2Int(s); case LONG_2DOUBLE_opcode: return long2Double(s); case LONG_BITS_AS_DOUBLE_opcode: return longBitsAsDouble(s); //////////////////// // Field operations //////////////////// case ARRAYLENGTH_opcode: return arrayLength(s); case BOUNDS_CHECK_opcode: return boundsCheck(s); case CALL_opcode: return call(s); case GETFIELD_opcode: return getField(s); case GET_OBJ_TIB_opcode: return getObjTib(s); case GET_CLASS_TIB_opcode: return getClassTib(s); case GET_TYPE_FROM_TIB_opcode: return getTypeFromTib(s); case GET_ARRAY_ELEMENT_TIB_FROM_TIB_opcode: return getArrayElementTibFromTib(s); case GET_SUPERCLASS_IDS_FROM_TIB_opcode: return getSuperclassIdsFromTib(s); case GET_DOES_IMPLEMENT_FROM_TIB_opcode: return getDoesImplementFromTib(s); case REF_LOAD_opcode: return refLoad(s); default: return UNCHANGED; } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
run("./NullableFuture2.x10","NullableFuture2","./Constructs/Nullable"); }
runHelper(); }
public void test_Constructs_Nullable_NullableFuture2() { run("./NullableFuture2.x10","NullableFuture2","./Constructs/Nullable"); }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/1a6ea2938bd80dc14d182a8d312337db644d998d/TestCompiler.java/buggy/x10.test/src/polyglot/ext/x10/tests/TestCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 13262, 67, 13349, 67, 2041, 10718, 22, 1435, 288, 3639, 1086, 2932, 18, 19, 2041, 10718, 22, 18, 92, 2163, 15937, 2041, 10718, 22, 3113, 9654, 19, 13262, 19, 13349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 67, 13262, 67, 13349, 67, 2041, 10718, 22, 1435, 288, 3639, 1086, 2932, 18, 19, 2041, 10718, 22, 18, 92, 2163, 15937, 2041, 10718, 22, 3113, 9654, 19, 13262, 19, 13349, ...
String [] parentNames = communityService.getParentCommunities(false); if (parentNames != null) { parents = Arrays.asList(parentNames); } else { parents = null; }
parents = communityService.listParentCommunities(null, crl);
private void nextYPServerContext(final Object currentContext, final YPService.NextContextCallback callback) { if ((currentContext != null) && (!(currentContext instanceof Community))) { // nowhere to go if not using a community context callback.setNextContext(null); return; } CommunityResponseListener crl = new CommunityResponseListener() { public void getResponse(CommunityResponse resp){ // Found the parents so reenter with the same context nextYPServerContext(currentContext, callback); } }; Collection parents; if (currentContext == null) { String [] parentNames = communityService.getParentCommunities(false); if (parentNames != null) { parents = Arrays.asList(parentNames); } else { parents = null; } } else { if (logger.isDebugEnabled()) { logger.debug("nextYPServerContext: attributes for " + currentContext + " " + ((Community) currentContext).getAttributes()); } parents = communityService.listParentCommunities(((Community) currentContext).getName(), crl); } if (logger.isDebugEnabled()) { logger.debug("nextYPServerContext: listParentCommunities(" + currentContext + ") returned " + parents); }; if (parents == null) { // waiting on community callback so let callbacks handle it return; } else if (parents.size() == 0) { // No more parents callback.setNextContext(null); return; } boolean waiting = false; boolean ypCommunity = false; for (Iterator iterator = parents.iterator(); iterator.hasNext();) { String parentName = (String) iterator.next(); crl = new CommunityResponseListener() { public void getResponse(CommunityResponse resp){ Community parent = (Community) resp.getContent(); if (ypCommunity(parent)) { if (ypServer(parent)) { callback.setNextContext(parent); } else { nextYPServerContext(parent, callback); } } } }; Community parent = communityService.getCommunity(parentName, crl); if (logger.isDebugEnabled()) { logger.debug("nextYPServerContext: getCommunity(" + parentName + ") returned " + parent); }; if (parent != null) { if (ypCommunity(parent)) { ypCommunity = true; if (ypServer(parent)) { callback.setNextContext(parent); return; } else { if (logger.isDebugEnabled()) { logger.debug("nextYPServerContext for " + currentContext + " recursing to " + parent); } nextYPServerContext(parent, callback); return; } } } else { waiting = true; if (logger.isDebugEnabled()) { logger.debug("nextYPServerContext: waiting on community for " + parentName); } } } // List of parents did not include any yp communities if (!waiting && !ypCommunity) { if (logger.isDebugEnabled()) { logger.debug("nextYPServerContext: no parent YPCommunity for " + currentContext); } callback.setNextContext(null); return; } }
6378 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6378/a3a016b3d0cb6a8749efd3886037464442db5ace/YPClientComponent.java/buggy/yp/src/org/cougaar/yp/YPClientComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1024, 61, 52, 2081, 1042, 12, 6385, 1033, 31184, 16, 6862, 282, 727, 1624, 52, 1179, 18, 2134, 1042, 2428, 1348, 13, 288, 3639, 309, 14015, 2972, 1042, 480, 446, 13, 597, 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, 282, 3238, 918, 1024, 61, 52, 2081, 1042, 12, 6385, 1033, 31184, 16, 6862, 282, 727, 1624, 52, 1179, 18, 2134, 1042, 2428, 1348, 13, 288, 3639, 309, 14015, 2972, 1042, 480, 446, 13, 597, 363...
String username = (String) usernameComboBox.getSelectedItem();
String username = (String) saveStateNames.getSelectedItem();
public void actionCancelled() { String username = (String) usernameComboBox.getSelectedItem(); if ( username == null ) username = ""; String frameString = StaticEntity.getGlobalProperty( username, "initialFrames" ); String desktopString = StaticEntity.getGlobalProperty( username, "initialDesktop" ); if ( frameString.equals( "" ) && desktopString.equals( "" ) ) { frameString = StaticEntity.getGlobalProperty( "", "initialFrames" ); desktopString = StaticEntity.getGlobalProperty( "", "initialDesktop" ); } for ( int i = 0; i < FRAME_OPTIONS.length; ++i ) { if ( frameString.indexOf( FRAME_OPTIONS[i][1] ) != -1 ) startupOptions[i].setSelected( true ); else if ( desktopString.indexOf( FRAME_OPTIONS[i][1] ) != -1 ) interfaceOptions[i].setSelected( true ); else nullOptions[i].setSelected( true ); } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/91d3e812cd43123a60ecfea12ac6b4c5c246a772/LoginFrame.java/buggy/src/net/sourceforge/kolmafia/LoginFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1301, 21890, 1435, 202, 202, 95, 1082, 202, 780, 2718, 273, 261, 780, 13, 2718, 22199, 18, 588, 7416, 1180, 5621, 1082, 202, 430, 261, 2718, 422, 446, 262, 9506, 202, 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, 3196, 202, 482, 918, 1301, 21890, 1435, 202, 202, 95, 1082, 202, 780, 2718, 273, 261, 780, 13, 2718, 22199, 18, 588, 7416, 1180, 5621, 1082, 202, 430, 261, 2718, 422, 446, 262, 9506, 202, 50...
public static void analyzeErrors( final Module module, final VirtualFile formFile, final GuiEditor editor, final IRootContainer rootContainer ){ LOG.assertTrue(module != null); LOG.assertTrue(formFile != null); LOG.assertTrue(rootContainer != null); final String classToBind = rootContainer.getClassToBind(); final PsiClass psiClass; if(classToBind != null){ psiClass = FormEditingUtil.findClassToBind(module, classToBind); if(psiClass == null){ final QuickFix[] fixes = editor != null ? new QuickFix[]{new CreateClassToBindFix(editor, classToBind)} : QuickFix.EMPTY_ARRAY; final ErrorInfo errorInfo = new ErrorInfo("Class \"" + classToBind + "\" does not exist", fixes); rootContainer.putClientProperty(CLIENT_PROP_CLASS_TO_BIND_ERROR, errorInfo); } else{ rootContainer.putClientProperty(CLIENT_PROP_CLASS_TO_BIND_ERROR, null); } } else{ psiClass = null; } final ArrayList<String> usedBindings = new ArrayList<String>(); final HashMap<String, PsiType> className2Type = new HashMap<String,PsiType>(); FormEditingUtil.iterate( rootContainer, new FormEditingUtil.ComponentVisitor<IComponent>() { public boolean visit(final IComponent component) { component.putClientProperty(CLIENT_PROP_BINDING_ERROR, null); final String binding = component.getBinding(); if(binding == null){ return true; } if(psiClass != null){ final PsiField[] fields = psiClass.getFields(); PsiField field = null; for(int i = fields.length - 1; i >=0 ; i--){ if(binding.equals(fields[i].getName())){ field = fields[i]; break; } } if(field == null){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new CreateFieldFix(editor, psiClass, component.getComponentClassName(), binding)} : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Field \"" + binding + "\" does not exist in class \"" + classToBind +"\"", fixes ) ); return true; } else if(field.hasModifierProperty(PsiModifier.STATIC)){ component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Cannot bind to static field \"" + binding + "\"", QuickFix.EMPTY_ARRAY ) ); return true; } try { final PsiType componentType; final String className = component.getComponentClassName().replace('$', '.'); if(className2Type.containsKey(className)){ componentType = className2Type.get(className); } else{ componentType = PsiManager.getInstance(module.getProject()).getElementFactory().createTypeFromText( className, null ); } final PsiType fieldType = field.getType(); if(fieldType != null && componentType != null && !fieldType.isAssignableFrom(componentType)){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new ChangeFieldTypeFix(editor, field, componentType) } : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Incompatible types. Found \"" + fieldType.getPresentableText() + "\", required \"" + className + "\"", fixes ) ); } } catch (IncorrectOperationException e) { } } if(usedBindings.contains(binding)){ component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Binding to field \"" + binding + "\" already exists", QuickFix.EMPTY_ARRAY ) ); return true; } usedBindings.add(binding); return true; } } ); FormEditingUtil.iterate( rootContainer, new FormEditingUtil.ComponentVisitor<IComponent>() { public boolean visit(final IComponent component) { if(!(component instanceof IContainer)){ return true; } component.putClientProperty(CLIENT_PROP_GENERAL_ERROR, null); final IContainer container = (IContainer)component; if(container instanceof IRootContainer){ final IRootContainer rootContainer = (IRootContainer)container; if(rootContainer.getComponentCount() > 1){ component.putClientProperty( CLIENT_PROP_GENERAL_ERROR, new ErrorInfo( "Form cannot be compiled because it contains more than one component at the top level", QuickFix.EMPTY_ARRAY ) ); } } else if(container.isXY() && container.getComponentCount() > 0){ component.putClientProperty( CLIENT_PROP_GENERAL_ERROR, new ErrorInfo( "Form cannot be compiled until this panel is layed out in a grid", QuickFix.EMPTY_ARRAY ) ); } return true; } } );
public static void analyzeErrors(final GuiEditor editor, final IRootContainer rootContainer){ analyzeErrors(editor.getModule(), editor.getFile(), editor, rootContainer);
public static void analyzeErrors( final Module module, final VirtualFile formFile, final GuiEditor editor, final IRootContainer rootContainer ){ LOG.assertTrue(module != null); LOG.assertTrue(formFile != null); LOG.assertTrue(rootContainer != null); // 1. Validate class to bind final String classToBind = rootContainer.getClassToBind(); final PsiClass psiClass; if(classToBind != null){ psiClass = FormEditingUtil.findClassToBind(module, classToBind); if(psiClass == null){ final QuickFix[] fixes = editor != null ? new QuickFix[]{new CreateClassToBindFix(editor, classToBind)} : QuickFix.EMPTY_ARRAY; final ErrorInfo errorInfo = new ErrorInfo("Class \"" + classToBind + "\" does not exist", fixes); rootContainer.putClientProperty(CLIENT_PROP_CLASS_TO_BIND_ERROR, errorInfo); } else{ rootContainer.putClientProperty(CLIENT_PROP_CLASS_TO_BIND_ERROR, null); } } else{ psiClass = null; } // 2. Validate bindings to fields // field name -> error message final ArrayList<String> usedBindings = new ArrayList<String>(); // for performance reasons final HashMap<String, PsiType> className2Type = new HashMap<String,PsiType>(); // for performance reasons FormEditingUtil.iterate( rootContainer, new FormEditingUtil.ComponentVisitor<IComponent>() { public boolean visit(final IComponent component) { // Reset previous error (if any) component.putClientProperty(CLIENT_PROP_BINDING_ERROR, null); final String binding = component.getBinding(); if(binding == null){ return true; } // a. Check that field exists and field is not static if(psiClass != null){ final PsiField[] fields = psiClass.getFields(); PsiField field = null; for(int i = fields.length - 1; i >=0 ; i--){ if(binding.equals(fields[i].getName())){ field = fields[i]; break; } } if(field == null){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new CreateFieldFix(editor, psiClass, component.getComponentClassName(), binding)} : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Field \"" + binding + "\" does not exist in class \"" + classToBind +"\"", fixes ) ); return true; } else if(field.hasModifierProperty(PsiModifier.STATIC)){ component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Cannot bind to static field \"" + binding + "\"", QuickFix.EMPTY_ARRAY ) ); return true; } // Check that field has correct fieldType try { final PsiType componentType; final String className = component.getComponentClassName().replace('$', '.'); // workaround for PSI if(className2Type.containsKey(className)){ componentType = className2Type.get(className); } else{ componentType = PsiManager.getInstance(module.getProject()).getElementFactory().createTypeFromText( className, null ); } final PsiType fieldType = field.getType(); if(fieldType != null && componentType != null && !fieldType.isAssignableFrom(componentType)){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new ChangeFieldTypeFix(editor, field, componentType) } : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Incompatible types. Found \"" + fieldType.getPresentableText() + "\", required \"" + className + "\"", fixes ) ); } } catch (IncorrectOperationException e) { } } // b. Check that binding is unique if(usedBindings.contains(binding)){ // TODO[vova] implement component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Binding to field \"" + binding + "\" already exists", QuickFix.EMPTY_ARRAY ) ); return true; } usedBindings.add(binding); return true; } } ); // Check that there are no panels in XY with children FormEditingUtil.iterate( rootContainer, new FormEditingUtil.ComponentVisitor<IComponent>() { public boolean visit(final IComponent component) { if(!(component instanceof IContainer)){ return true; } // Clear previous error (if any) component.putClientProperty(CLIENT_PROP_GENERAL_ERROR, null); final IContainer container = (IContainer)component; if(container instanceof IRootContainer){ final IRootContainer rootContainer = (IRootContainer)container; if(rootContainer.getComponentCount() > 1){ // TODO[vova] implement component.putClientProperty( CLIENT_PROP_GENERAL_ERROR, new ErrorInfo( "Form cannot be compiled because it contains more than one component at the top level", QuickFix.EMPTY_ARRAY ) ); } } else if(container.isXY() && container.getComponentCount() > 0){ // TODO[vova] implement component.putClientProperty( CLIENT_PROP_GENERAL_ERROR, new ErrorInfo( "Form cannot be compiled until this panel is layed out in a grid", QuickFix.EMPTY_ARRAY ) ); } return true; } } ); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0e4fdd14fe5c24bd0f4fbd7bf26055176c7b70c7/ErrorAnalyzer.java/buggy/source/com/intellij/uiDesigner/ErrorAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 12375, 4229, 12, 565, 727, 5924, 1605, 16, 565, 727, 7269, 812, 646, 812, 16, 377, 727, 611, 4881, 6946, 4858, 16, 565, 727, 467, 2375, 2170, 1365, 2170, 225, 262, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 12375, 4229, 12, 565, 727, 5924, 1605, 16, 565, 727, 7269, 812, 646, 812, 16, 377, 727, 611, 4881, 6946, 4858, 16, 565, 727, 467, 2375, 2170, 1365, 2170, 225, 262, 95, ...
&& v.length >= 4;
&& (v.length >= 4);
private static boolean stableVersion(String[] v) { return v[0].equals(nodeName) && v[1].equals(stableNodeVersion) && v.length >= 4; }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Version.java/buggy/src/freenet/node/Version.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 14114, 1444, 12, 780, 8526, 331, 13, 288, 202, 202, 2463, 331, 63, 20, 8009, 14963, 12, 2159, 461, 13, 1082, 202, 10, 10, 331, 63, 21, 8009, 14963, 12, 15021, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 760, 1250, 14114, 1444, 12, 780, 8526, 331, 13, 288, 202, 202, 2463, 331, 63, 20, 8009, 14963, 12, 2159, 461, 13, 1082, 202, 10, 10, 331, 63, 21, 8009, 14963, 12, 15021, 90...
if ( doCenter ) { int contentSpace = rightBorder - this.marginRight - this.borderWidth - this.paddingRight - contX; if (contentSpace > this.contentWidth) { contX += (contentSpace - this.contentWidth ) / 2; } } else if ( doRightAlign ) { int contentSpace = rightBorder - this.marginRight - this.borderWidth - this.paddingRight - contX; if (contentSpace > this.contentWidth) { contX += contentSpace - this.contentWidth; } }
public void paint( int x, int y, int leftBorder, int rightBorder, Graphics g ) { // initialise this item if necessary: if (!this.isInitialised) { init( rightBorder - x, rightBorder - leftBorder ); } // set coordinates of this item: this.xLeftPos = leftBorder; this.yTopPos = y; this.xRightPos = rightBorder; // contentX + this.contentWidth; //x + this.itemWidth; //TODO rob: Item.xRightPos might differ when this item contains line breaks this.yBottomPos = y + this.itemHeight; // paint label: if (this.label != null) { if (this.useSingleRow) { this.label.paint( x, y, leftBorder, rightBorder - this.itemWidth, g ); x += this.label.itemWidth; leftBorder += this.label.itemWidth; } else { this.label.paint( x, y, leftBorder, rightBorder, g ); y += this.label.itemHeight; } } leftBorder += (this.marginLeft + this.borderWidth + this.paddingLeft); //#ifdef polish.useBeforeStyle leftBorder += this.beforeWidth; //#endif //System.out.println( this.style.name + ": increasing leftBorder by " + (this.marginLeft + this.borderWidth + this.paddingLeft)); rightBorder -= (this.marginRight + this.borderWidth + this.paddingRight); //#ifdef polish.useAfterStyle rightBorder -= this.afterWidth; //#endif //System.out.println( this.style.name + ": decreasing rightBorder by " + (this.marginRight + this.borderWidth + this.paddingRight)); boolean doCenter = this.isLayoutCenter; if ( doCenter) { int itemSpace = rightBorder - leftBorder; if (itemSpace > this.itemWidth) { /* if (this.isLayoutExpand) { System.out.println( this.style.name + ": centering item by " + ((itemSpace - this.itemWidth) / 2)+ " pixels, event though LAYOUT_EXPAND is set!"); } */ //System.out.println("itemSpace=" + itemSpace + " itemWidth=" + this.itemWidth + " x-increase=" + ((itemSpace - this.itemWidth) / 2)); x+= (itemSpace - this.itemWidth) / 2; doCenter = false; } } boolean doRightAlign = this.isLayoutRight; if ( doRightAlign ) { int itemSpace = rightBorder - leftBorder; if (itemSpace > this.itemWidth) { /* if (this.isLayoutExpand) { System.out.println( this.style.name + ": right aligning item by " + (itemSpace - this.itemWidth)+ " pixels, event though LAYOUT_EXPAND is set!"); } */ x+= itemSpace - this.itemWidth; } } // paint background: x += this.marginLeft; y += this.marginTop; if (this.background != null) { this.background.paint(x, y, this.backgroundWidth, this.backgroundHeight, g); } int contX = x + this.borderWidth + this.paddingLeft; int contY = y + this.borderWidth + this.paddingTop; int originalContentY = contY; // paint before element: //#ifdef polish.useBeforeStyle if (this.beforeImage != null) { int beforeY = contY; if ( this.beforeHeight < this.contentHeight) { beforeY += (this.contentHeight - this.beforeHeight) / 2; } else { contY += (this.beforeHeight - this.contentHeight) / 2; } g.drawImage(this.beforeImage, contX, beforeY, Graphics.TOP | Graphics.LEFT ); contX += this.beforeWidth; } //#endif // paint after element: //#ifdef polish.useAfterStyle if (this.afterImage != null) { int afterY = originalContentY; if ( this.afterHeight < this.contentHeight) { afterY += (this.contentHeight - this.afterHeight) / 2; } else { //#ifdef polish.useBeforeStyle if (this.afterHeight > this.beforeHeight) { //#endif contY = originalContentY + (this.afterHeight - this.contentHeight) / 2; //#ifdef polish.useBeforeStyle } //#endif } g.drawImage(this.afterImage, rightBorder, afterY, Graphics.TOP | Graphics.LEFT ); } //#endif // align content positions: if ( doCenter ) { int contentSpace = rightBorder - this.marginRight - this.borderWidth - this.paddingRight - contX; if (contentSpace > this.contentWidth) { contX += (contentSpace - this.contentWidth ) / 2; } } else if ( doRightAlign ) { int contentSpace = rightBorder - this.marginRight - this.borderWidth - this.paddingRight - contX; if (contentSpace > this.contentWidth) { contX += contentSpace - this.contentWidth; } } // paint content: this.contentX = contX; this.contentY = contY; paintContent( contX, contY, leftBorder, rightBorder, g ); // paint border: if (this.border != null) { this.border.paint(x, y, this.backgroundWidth, this.backgroundHeight, g); } }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/cf9713e36af74e9b5e41d51378c979a47e029bd4/Item.java/buggy/enough-polish-j2me/source/src/de/enough/polish/ui/Item.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 12, 509, 619, 16, 509, 677, 16, 509, 2002, 8107, 16, 509, 2145, 8107, 16, 16830, 314, 262, 288, 202, 202, 759, 21301, 333, 761, 309, 4573, 30, 202, 202, 430, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 12, 509, 619, 16, 509, 677, 16, 509, 2002, 8107, 16, 509, 2145, 8107, 16, 16830, 314, 262, 288, 202, 202, 759, 21301, 333, 761, 309, 4573, 30, 202, 202, 430, 160...
if (element instanceof ConcreteMarker && IMarker.MESSAGE.equals(property)) return ((ConcreteMarker) element).getDescription(); else return null; }
if (element instanceof ConcreteMarker && IMarker.MESSAGE.equals(property)) return ((ConcreteMarker) element).getDescription(); else return null; }
public Object getValue(Object element, String property) { if (element instanceof ConcreteMarker && IMarker.MESSAGE.equals(property)) return ((ConcreteMarker) element).getDescription(); else return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/BookmarkView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 2366, 12, 921, 930, 16, 514, 1272, 13, 288, 5411, 309, 261, 2956, 1276, 735, 6883, 7078, 10792, 597, 467, 7078, 18, 8723, 18, 14963, 12, 4468, 3719, 7734, 327, 14015, 25845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 2366, 12, 921, 930, 16, 514, 1272, 13, 288, 5411, 309, 261, 2956, 1276, 735, 6883, 7078, 10792, 597, 467, 7078, 18, 8723, 18, 14963, 12, 4468, 3719, 7734, 327, 14015, 25845, ...
VM_Entrypoints.activeThreadStackLimitField.getOffsetAsInt());
VM_Entrypoints.activeThreadStackLimitField.getOffset());
protected final void emit_deferred_prologue() { if (VM.VerifyAssertions) VM._assert(method.isForOsrSpecialization()); if (isInterruptible) { // S0<-limit VM_ProcessorLocalState.emitMoveFieldToReg(asm, S0, VM_Entrypoints.activeThreadStackLimitField.getOffsetAsInt()); asm.emitSUB_Reg_Reg (S0, SP); // spa asm.emitADD_Reg_Imm (S0, method.getOperandWords() << LG_WORDSIZE); // spa VM_ForwardReference fr = asm.forwardJcc(asm.LT); // Jmp around trap if asm.emitINT_Imm ( VM_Runtime.TRAP_STACK_OVERFLOW + RVM_TRAP_BASE ); // tra fr.resolve(asm); } else { // TODO!! make sure stackframe of uninterruptible method doesn't overflow } /* never do monitor enter for synced method since the specialized * code starts after original monitor enter. */// if (method.isSynchronized()) genMonitorEnter(); genThreadSwitchTest(VM_Thread.PROLOGUE); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/607ce8428a60a1e2ea6aeee16fe403ddf08d4b83/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 3626, 67, 26622, 67, 685, 1330, 344, 1435, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 2039, 18, 291, 1290, 51, 11254, 12193, 1588, 10663, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 3626, 67, 26622, 67, 685, 1330, 344, 1435, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 2039, 18, 291, 1290, 51, 11254, 12193, 1588, 10663, ...
LdapStatesEnum.FILTER_TAG, LdapStatesEnum.MATCHING_RULE_ASSERTION_GRAMMAR_SWITCH, null );
LdapStatesEnum.FILTER_TAG, LdapStatesEnum.MATCHING_RULE_ASSERTION_GRAMMAR_SWITCH, new GrammarAction( "Allow pop" ) { public void action( IAsn1Container container ) throws DecoderException { container.grammarPopAllowed( true ); } });
private FilterGrammar() { name = FilterGrammar.class.getName(); statesEnum = LdapStatesEnum.getInstance(); // Create the transitions table super.transitions = new GrammarTransition[LdapStatesEnum.LAST_FILTER_STATE][256]; //============================================================================================ // Search Request And Filter // This is quite complicated, because we have a tree structure to build, // and we may have many elements on each node. For instance, considering the // search filter : // (& (| (a = b) (c = d)) (! (e = f)) (attr =* h)) // We will have to create an And filter with three children : // - an Or child, // - a Not child // - and a Present child. // The Or child will also have two children. // // We know when we have a children while decoding the PDU, because the length // of its parent has not yet reached its expected length. // // This search filter : // (&(|(objectclass=top)(ou=contacts))(!(objectclass=ttt))(objectclass=*top)) // is encoded like this : // +----------------+---------------+ // | ExpectedLength | CurrentLength | //+-----------------------------+----------------+---------------+ //|A0 52 | 82 | 0 | new level 1 //| A1 24 | 82 36 | 0 0 | new level 2 //| A3 12 | 82 36 18 | 0 0 0 | new level 3 //| 04 0B 'objectclass' | 82 36 18 | 0 0 13 | //| 04 03 'top' | 82 36 18 | 0 20 18 | //| | ^ ^ | //| | | | | //| | +---------------+ | //+-----------------------------* end level 3 -------------------* //| A3 0E | 82 36 14 | 0 0 0 | new level 3 //| 04 02 'ou' | 82 36 14 | 0 0 4 | //| 04 08 'contacts' | 82 36 14 | 38 36 14 | //| | ^ ^ ^ ^ | //| | | | | | | //| | | +-------------|--+ | //| | +----------------+ | //+-----------------------------* end level 3, end level 2 ------* //| A2 14 | 82 20 | 38 0 | new level 2 //| A3 12 | 82 20 18 | 38 0 0 | new level 3 //| 04 0B 'objectclass' | 82 20 18 | 38 0 13 | //| 04 03 'ttt' | 82 20 18 | 60 20 18 | //| | ^ ^ ^ ^ | //| | | | | | | //| | | +-------------|--+ | //| | +----------------+ | //+-----------------------------* end level 3, end level 2 ------* //| A4 14 | 82 20 | 60 0 | new level 2 //| 04 0B 'objectclass' | 82 20 | 60 13 | //| 30 05 | 82 20 | 60 13 | //| 82 03 'top' | 82 20 | 82 20 | //| | ^ ^ ^ ^ | //| | | | | | | //| | | +-------------|--+ | //| | +----------------+ | //+-----------------------------* end level 2, end level 1 ------* //+-----------------------------+----------------+---------------+ // // When the current length equals the expected length of the parent PDU, // then we are able to 'close' the parent : it has all its children. This // is propagated through all the tree, until either there are no more // parents, or the expected length of the parent is different from the // current length. // //============================================================================================ // Filter ::= CHOICE { // and [0] SET OF Filter, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.AND_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_AND_VALUE, null ); // Filter ::= CHOICE { // ... // or [1] SET OF Filter, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.OR_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_OR_VALUE, null ); // Filter ::= CHOICE { // ... // not [2] Filter, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.NOT_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_NOT_VALUE, null ); // Filter ::= CHOICE { // ... // equalityMatch [3] AttributeValueAssertion, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.EQUALITY_MATCH_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_EQUALITY_MATCH_VALUE, null ); // Filter ::= CHOICE { // ... // substrings [4] SubstringFilter, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.SUBSTRINGS_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.SUBSTRING_FILTER_GRAMMAR_SWITCH, null ); // Filter ::= CHOICE { // ... // greaterOrEqual [5] AttributeValueAssertion, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.GREATER_OR_EQUAL_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_GREATER_OR_EQUAL_VALUE, null ); // Filter ::= CHOICE { // ... // lessOrEqual [6] AttributeValueAssertion, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.LESS_OR_EQUAL_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_LESS_OR_EQUAL_VALUE, null ); // Filter ::= CHOICE { // ... // present [7] AttributeDescription, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.PRESENT_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_PRESENT_VALUE, null ); // Filter ::= CHOICE { // ... // approxMatch [8] AttributeValueAssertion, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.APPROX_MATCH_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.FILTER_APPROX_MATCH_VALUE, null ); // Filter ::= CHOICE { // ... // extensibleMatch [9] ExtensibleMatchFilter } (Tag) // Nothing to do super.transitions[LdapStatesEnum.FILTER_TAG][LdapConstants.EXTENSIBLE_MATCH_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_TAG, LdapStatesEnum.MATCHING_RULE_ASSERTION_GRAMMAR_SWITCH, null ); // Filter ::= CHOICE { // and [0] SET OF Filter, (Value) // ... // We just have to switch to the initial state of Filter, because this is what // we will get ! super.transitions[LdapStatesEnum.FILTER_AND_VALUE][LdapConstants.AND_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_AND_VALUE, LdapStatesEnum.FILTER_TAG, new GrammarAction( "Init And Filter" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); TLV tlv = ldapMessageContainer.getCurrentTLV(); if ( tlv.getLength().getLength() == 0 ) { log.error( "The And filter PDU must not be empty" ); throw new DecoderException( "The And filter PDU must not be empty" ); } SearchRequest searchRequest = ldapMessage.getSearchRequest(); // We can allocate the SearchRequest Filter andFilter = new AndFilter(); // Get the parent, if any Filter currentFilter = searchRequest.getCurrentFilter(); if (currentFilter != null) { // Ok, we have a parent. The new Filter will be added to // this parent, then. ((ConnectorFilter)currentFilter).addFilter(andFilter); andFilter.setParent( currentFilter ); } else { // No parent. This Filter will become the root. searchRequest.setFilter(andFilter); andFilter.setParent( searchRequest ); } searchRequest.setCurrentFilter(andFilter); } }); // Filter ::= CHOICE { // ... // or [1] SET OF Filter, (Value) // ... // We just have to switch to the initial state of Filter, because this is what // we will get ! super.transitions[LdapStatesEnum.FILTER_OR_VALUE][LdapConstants.OR_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_OR_VALUE, LdapStatesEnum.FILTER_TAG, new GrammarAction( "Init Or Filter" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); TLV tlv = ldapMessageContainer.getCurrentTLV(); if ( tlv.getLength().getLength() == 0 ) { log.error( "The Or filter PDU must not be empty" ); throw new DecoderException( "The Or filter PDU must not be empty" ); } SearchRequest searchRequest = ldapMessage.getSearchRequest(); // We can allocate the SearchRequest Filter orFilter = new OrFilter(); // Get the parent, if any Filter currentFilter = searchRequest.getCurrentFilter(); if (currentFilter != null) { // Ok, we have a parent. The new Filter will be added to // this parent, then. ((ConnectorFilter)currentFilter).addFilter(orFilter); orFilter.setParent( currentFilter ); } else { // No parent. This Filter will become the root. searchRequest.setFilter(orFilter); orFilter.setParent( searchRequest ); } searchRequest.setCurrentFilter(orFilter); } }); // Filter ::= CHOICE { // ... // not [2] Filter, (Value) // ... // We just have to switch to the initial state of Filter, because this is what // we will get ! super.transitions[LdapStatesEnum.FILTER_NOT_VALUE][LdapConstants.NOT_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_NOT_VALUE, LdapStatesEnum.FILTER_TAG, new GrammarAction( "Init Not Filter" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); TLV tlv = ldapMessageContainer.getCurrentTLV(); if ( tlv.getLength().getLength() == 0 ) { log.error( "The Not filter PDU must not be empty" ); throw new DecoderException( "The Not filter PDU must not be empty" ); } SearchRequest searchRequest = ldapMessage.getSearchRequest(); // We can allocate the SearchRequest Filter notFilter = new NotFilter(); // Get the parent, if any Filter currentFilter = searchRequest.getCurrentFilter(); if (currentFilter != null) { // Ok, we have a parent. The new Filter will be added to // this parent, then. ((ConnectorFilter)currentFilter).addFilter(notFilter); notFilter.setParent( currentFilter ); } else { // No parent. This Filter will become the root. searchRequest.setFilter(notFilter); notFilter.setParent( searchRequest ); } searchRequest.setCurrentFilter(notFilter); } }); // Filter ::= CHOICE { // ... // equalityMatch [3] AttributeValueAssertion, (Value) // ... // We will create the filter container (as this is an equalityMatch filter, // we will create an AttributeValueAssertionFilter). super.transitions[LdapStatesEnum.FILTER_EQUALITY_MATCH_VALUE][LdapConstants.EQUALITY_MATCH_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_EQUALITY_MATCH_VALUE, LdapStatesEnum.FILTER_ATTRIBUTE_DESC_TAG, new GrammarAction( "Init Equality Match Filter" ) { public void action( IAsn1Container container ) throws DecoderException { compareFilterAction(container, LdapConstants.EQUALITY_MATCH_FILTER); } }); // Filter ::= CHOICE { // ... // greaterOrEqual [5] AttributeValueAssertion, (Value) // ... // We will create the filter container (as this is an GreaterOrEqual filter, // we will create an AttributeValueAssertionFilter). super.transitions[LdapStatesEnum.FILTER_GREATER_OR_EQUAL_VALUE][LdapConstants.GREATER_OR_EQUAL_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_GREATER_OR_EQUAL_VALUE, LdapStatesEnum.FILTER_ATTRIBUTE_DESC_TAG, new GrammarAction( "Init Greater Or Equal Filter" ) { public void action( IAsn1Container container ) throws DecoderException { compareFilterAction(container, LdapConstants.GREATER_OR_EQUAL_FILTER); } } ); // Filter ::= CHOICE { // ... // lessOrEqual [6] AttributeValueAssertion, (Value) // ... // We will create the filter container (as this is an lessOrEqual filter, // we will create an AttributeValueAssertionFilter). super.transitions[LdapStatesEnum.FILTER_LESS_OR_EQUAL_VALUE][LdapConstants.LESS_OR_EQUAL_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_LESS_OR_EQUAL_VALUE, LdapStatesEnum.FILTER_ATTRIBUTE_DESC_TAG, new GrammarAction( "Init Less Or Equal Filter" ) { public void action( IAsn1Container container ) throws DecoderException { compareFilterAction(container, LdapConstants.LESS_OR_EQUAL_FILTER ); } } ); // Filter ::= CHOICE { // ... // approxMatch [8] AttributeValueAssertion, (Value) // ... // We will create the filter container (as this is an approxMatch filter, // we will create an AttributeValueAssertionFilter). super.transitions[LdapStatesEnum.FILTER_APPROX_MATCH_VALUE][LdapConstants.APPROX_MATCH_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_APPROX_MATCH_VALUE, LdapStatesEnum.FILTER_ATTRIBUTE_DESC_TAG, new GrammarAction( "Init ApproxMatch Filter" ) { public void action( IAsn1Container container ) throws DecoderException { compareFilterAction(container, LdapConstants.APPROX_MATCH_FILTER ); } } ); // AttributeValueAssertion ::= SEQUENCE { // attributeDesc AttributeDescription, (TAG) // ... // Nothing to do. super.transitions[LdapStatesEnum.FILTER_ATTRIBUTE_DESC_TAG][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_ATTRIBUTE_DESC_TAG, LdapStatesEnum.FILTER_ATTRIBUTE_DESC_VALUE, null); // AttributeValueAssertion ::= SEQUENCE { // attributeDesc AttributeDescription, (VALUE) // ... // We have to set the attribute description in the current filter. // It could be an equalityMatch, greaterOrEqual, lessOrEqual or an // approxMatch filter. super.transitions[LdapStatesEnum.FILTER_ATTRIBUTE_DESC_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_ATTRIBUTE_DESC_VALUE, LdapStatesEnum.FILTER_ASSERTION_VALUE_TAG, new GrammarAction( "Init attributeDesc Value" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); SearchRequest searchRequest = ldapMessage.getSearchRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); AttributeValueAssertion assertion = new AttributeValueAssertion(); try { LdapString type = LdapDN.normalizeAttribute( tlv.getValue().getData() ); assertion.setAttributeDesc( type ); } catch ( LdapStringEncodingException lsee ) { String msg = StringTools.dumpBytes( tlv.getValue().getData() ); log.error( "The assertion description ({}) is invalid", msg ); throw new DecoderException( "Invalid assertion description " + msg + ", : " + lsee.getMessage() ); } AttributeValueAssertionFilter currentFilter = (AttributeValueAssertionFilter)searchRequest.getCurrentFilter(); currentFilter.setAssertion(assertion); } }); // AttributeValueAssertion ::= SEQUENCE { // ... // assertionValue AssertionValue } (TAG) // Nothing to do. super.transitions[LdapStatesEnum.FILTER_ASSERTION_VALUE_TAG][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_ASSERTION_VALUE_TAG, LdapStatesEnum.FILTER_ASSERTION_VALUE_VALUE, null); // AttributeValueAssertion ::= SEQUENCE { // ... // assertionValue AssertionValue } (VALUE) // We have to set the attribute description in the current filter. // It could be an equalityMatch, greaterOrEqual, lessOrEqual or an // approxMatch filter. // When finished, we will transit to the first state. super.transitions[LdapStatesEnum.FILTER_ASSERTION_VALUE_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_ASSERTION_VALUE_VALUE, LdapStatesEnum.FILTER_TAG, new GrammarAction( "Init AssertionValue Value" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); SearchRequest searchRequest = ldapMessage.getSearchRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); // The value can be null. Object assertionValue = StringTools.EMPTY_BYTES; if ( tlv.getLength().getLength() != 0 ) { assertionValue = tlv.getValue().getData(); } AttributeValueAssertionFilter currentFilter = (AttributeValueAssertionFilter)searchRequest.getCurrentFilter(); AttributeValueAssertion assertion = currentFilter.getAssertion(); if ( ldapMessageContainer.isBinary( assertion.getAttributeDesc() ) ) { assertion.setAssertionValue( assertionValue ); } else { assertion.setAssertionValue( StringTools.utf8ToString( (byte[])assertionValue ) ); } // We now have to get back to the nearest filter which is not terminal. unstackFilters( container ); } }); // AttributeValueAssertion ::= SEQUENCE { // attributeDesc AttributeDescription, (VALUE) // ... // We have to set the attribute description in the current filter. // It could be an equalityMatch, greaterOrEqual, lessOrEqual or an // approxMatch filter. super.transitions[LdapStatesEnum.FILTER_ATTRIBUTE_DESC_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_ATTRIBUTE_DESC_VALUE, LdapStatesEnum.FILTER_ASSERTION_VALUE_TAG, new GrammarAction( "Init attributeDesc Value" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); SearchRequest searchRequest = ldapMessage.getSearchRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); AttributeValueAssertion assertion = new AttributeValueAssertion(); if ( tlv.getLength().getLength() == 0 ) { log.error( "The attribute description is empty " ); throw new DecoderException( "The type can't be null" ); } else { try { LdapString type = LdapDN.normalizeAttribute( tlv.getValue().getData() ); assertion.setAttributeDesc( type ); } catch ( LdapStringEncodingException lsee ) { String msg = StringTools.dumpBytes( tlv.getValue().getData() ); log.error( "The assertion value ({}) is invalid", msg ); throw new DecoderException( "Invalid assertion value " + msg + ", : " + lsee.getMessage() ); } AttributeValueAssertionFilter currentFilter = (AttributeValueAssertionFilter)searchRequest.getCurrentFilter(); currentFilter.setAssertion(assertion); } } }); // AttributeValueAssertion ::= SEQUENCE { // ... // assertionValue AssertionValue } (TAG) // Nothing to do. super.transitions[LdapStatesEnum.FILTER_ASSERTION_VALUE_TAG][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_ASSERTION_VALUE_TAG, LdapStatesEnum.FILTER_ASSERTION_VALUE_VALUE, null); // Filter ::= CHOICE { // ... // present [7] AttributeDescription, (Value) // ... super.transitions[LdapStatesEnum.FILTER_PRESENT_VALUE][LdapConstants.PRESENT_FILTER_TAG] = new GrammarTransition( LdapStatesEnum.FILTER_PRESENT_VALUE, LdapStatesEnum.FILTER_TAG, new GrammarAction( "Init present filter Value" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); SearchRequest searchRequest = ldapMessage.getSearchRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); // We can allocate the Attribute Value Assertion PresentFilter presentFilter = new PresentFilter(); // Get the parent, if any Filter currentFilter = searchRequest.getCurrentFilter(); if (currentFilter != null) { // Ok, we have a parent. The new Filter will be added to // this parent, then. ((ConnectorFilter)currentFilter).addFilter(presentFilter); presentFilter.setParent( currentFilter ); } else { // No parent. This Filter will become the root. //searchRequest.setCurrentFilter(presentFilter); presentFilter.setParent( searchRequest ); searchRequest.setFilter( presentFilter ); } String value = StringTools.utf8ToString( tlv.getValue().getData() ); if ( StringTools.isEmpty( value ) ) { presentFilter.setAttributeDescription( LdapString.EMPTY_STRING ); } else { // Store the value. try { LdapString type = LdapDN.normalizeAttribute( tlv.getValue().getData() ); presentFilter.setAttributeDescription( type ); } catch ( LdapStringEncodingException lsee ) { String msg = StringTools.dumpBytes( tlv.getValue().getData() ); log.error( "Present filter attribute description ({}) is invalid", msg ); throw new DecoderException( "Invalid present filter attribute description " + msg + ", : " + lsee.getMessage() ); } } // We now have to get back to the nearest filter which is not terminal. unstackFilters( container ); } } ); }
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/6ab4e2bae3f25cc5d7824e5b69c72cc320708588/FilterGrammar.java/buggy/ldap/src/main/java/org/apache/ldap/common/codec/search/FilterGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4008, 18576, 1435, 565, 288, 3639, 508, 2868, 273, 4008, 18576, 18, 1106, 18, 17994, 5621, 3639, 5493, 3572, 3639, 273, 18053, 7629, 3572, 18, 588, 1442, 5621, 3639, 368, 1788, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4008, 18576, 1435, 565, 288, 3639, 508, 2868, 273, 4008, 18576, 18, 1106, 18, 17994, 5621, 3639, 5493, 3572, 3639, 273, 18053, 7629, 3572, 18, 588, 1442, 5621, 3639, 368, 1788, 326, ...
DelegatingMetaClass metaClass = (DelegatingMetaClass)InvokerHelper.getInstance().getMetaRegistry().getMetaClass(target.getClass());
DynamicMethodsMetaClass metaClass = (DynamicMethodsMetaClass)InvokerHelper.getInstance().getMetaRegistry().getMetaClass(target.getClass());
protected Object doInvokeInternal(Object target, Object[] arguments) { Errors errors = new BindException(target, target.getClass().getName()); GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() ); Validator validator = null; if(domainClass != null) validator = application.getGrailsDomainClass( target.getClass().getName() ).getValidator(); Boolean valid = Boolean.TRUE; if(validator != null) { // should evict? boolean evict = false; if(arguments.length > 0) { if(arguments[0] instanceof Boolean) { evict = ((Boolean)arguments[0]).booleanValue(); } } if(validator instanceof GrailsDomainClassValidator) { ((GrailsDomainClassValidator)validator).setHibernateTemplate(getHibernateTemplate()); } validator.validate(target,errors); if(errors.hasErrors()) { valid = Boolean.valueOf(false); if(evict) { // if an boolean argument 'true' is passed to the method // and validation fails then the object will be evicted // from the session, ensuring it is not saved later when // flush is called if(getHibernateTemplate().contains(target)) { getHibernateTemplate().evict(target); } } DelegatingMetaClass metaClass = (DelegatingMetaClass)InvokerHelper.getInstance().getMetaRegistry().getMetaClass(target.getClass()); metaClass.setProperty(target,DomainClassMethods.ERRORS_PROPERTY,errors); } } return valid; }
50831 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50831/78e8334d307c211e8c4440eba62038674a904f6c/ValidatePersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/ValidatePersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1033, 741, 10969, 3061, 12, 921, 1018, 16, 1033, 8526, 1775, 13, 288, 3639, 9372, 1334, 273, 394, 6936, 503, 12, 3299, 16, 1018, 18, 588, 797, 7675, 17994, 10663, 3639, 10812, 14573...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 741, 10969, 3061, 12, 921, 1018, 16, 1033, 8526, 1775, 13, 288, 3639, 9372, 1334, 273, 394, 6936, 503, 12, 3299, 16, 1018, 18, 588, 797, 7675, 17994, 10663, 3639, 10812, 14573...
if (candidateNeedsGuard(caller, staticCallee, state)) { if (opts.GUARDED_INLINE) { boolean codePatch = opts.guardWithCodePatch() && !state.isInvokeInterface() && isCurrentlyFinal(staticCallee, true); byte guard = chooseGuard(caller, staticCallee, originalCallee, state, codePatch); if (guard == OPT_Options.IG_METHOD_TEST) { guard = chooseGuard(caller, callee, originalCallee, state, false); } return OPT_InlineDecision.guardedYES(callee, guard, "AI: guarded inline of hot edge"); } else { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, callee); return OPT_InlineDecision.NO("AI: guarded inlining disabled"); } } else { return OPT_InlineDecision.YES(callee, "AI: hot edge");
synchronized(VM_Class.OptCLDepManager) { if (candidateNeedsGuard(caller, staticCallee, state)) { if (opts.GUARDED_INLINE) { boolean codePatch = opts.guardWithCodePatch() && !state.isInvokeInterface() && isCurrentlyFinal(staticCallee, true); byte guard = chooseGuard(caller, staticCallee, originalCallee, state, codePatch); if (guard == OPT_Options.IG_METHOD_TEST) { guard = chooseGuard(caller, callee, originalCallee, state, false); } return OPT_InlineDecision.guardedYES(callee, guard, "AI: guarded inline of hot edge"); } else { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, callee); return OPT_InlineDecision.NO("AI: guarded inlining disabled"); } } else { return OPT_InlineDecision.YES(callee, "AI: hot edge"); }
public OPT_InlineDecision shouldInline(OPT_CompilationState state) { OPT_Options opts = state.getOptions(); VM_Method originalCallee = state.obtainTarget(); if (!opts.INLINE) return OPT_InlineDecision.NO("inlining not enabled"); // (1) If the static heuristics will inline this call, we're done. OPT_InlineDecision d = staticOracle.shouldInline(state); if (!d.isNO()) return d; // (2) Now see if this call site appears in the profile data. VM_Method caller = state.getMethod(); int bcX = state.getBytecodeIndex(); VM_Method[] targets = plan.getTargets(caller,bcX); if (targets == null) { // (2a) The profile data doesn't tell us anything, // so go with the static oracle's answer. return d; } else if (targets.length == 1) { // (2b) We have a single hot edge in the profile data for this call site VM_Method callee = targets[0]; if (state.getHasPreciseTarget() && callee != originalCallee) { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, callee); return OPT_InlineDecision.NO("AI: mismatch between computed target and profile data"); } if (!viableCandidate(caller, callee, state)) { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, callee); return OPT_InlineDecision.NO("AI: candidate judged to be nonviable"); } if (state.getHasPreciseTarget()) { return OPT_InlineDecision.YES(originalCallee, "AI: hot edge matches computed target"); } VM_Method staticCallee = state.obtainTarget(); if (candidateNeedsGuard(caller, staticCallee, state)) { if (opts.GUARDED_INLINE) { boolean codePatch = opts.guardWithCodePatch() && !state.isInvokeInterface() && isCurrentlyFinal(staticCallee, true); byte guard = chooseGuard(caller, staticCallee, originalCallee, state, codePatch); if (guard == OPT_Options.IG_METHOD_TEST) { // see if we can get away with the cheaper class test on the actual target guard = chooseGuard(caller, callee, originalCallee, state, false); } return OPT_InlineDecision.guardedYES(callee, guard, "AI: guarded inline of hot edge"); } else { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, callee); return OPT_InlineDecision.NO("AI: guarded inlining disabled"); } } else { return OPT_InlineDecision.YES(callee, "AI: hot edge"); } } else { // (2c) We have multiple hot edges to consider. if (state.getHasPreciseTarget()) { for (int i=0; i<targets.length; i++) { if (targets[i] == originalCallee) { if (viableCandidate(caller, targets[i], state)) { return OPT_InlineDecision.YES(originalCallee, "AI: hot edge matches computed target"); } } } for (int i=0; i<targets.length; i++) { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, targets[i]); } return OPT_InlineDecision.NO("AI: multiple hot edges, but none match computed target"); } else { if (!opts.GUARDED_INLINE) return OPT_InlineDecision.NO("AI: guarded inlining disabled"); int viable = 0; for (int i=0; i<targets.length; i++) { if (viableCandidate(caller, targets[i], state)) { viable++; } else { recordRefusalToInlineHotEdge(state.getCompiledMethod(), caller, bcX, targets[i]); targets[i] = null; } } if (viable > 0) { VM_Method[] viableTargets = new VM_Method[viable]; byte[] guards = new byte[viable]; viable = 0; for (int i=0; i<targets.length; i++) { if (targets[i] != null) { viableTargets[viable] = targets[i]; guards[viable++] = chooseGuard(caller, targets[i], originalCallee, state, false); } } return OPT_InlineDecision.guardedYES(viableTargets, guards, "AI: viable hot edge(s) found"); } else { return OPT_InlineDecision.NO("AI: all candidates judged to be nonviable"); } } } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/780da0c6147cee11ed9bdbef6b8827560ec4c724/OPT_ProfileDirectedInlineOracle.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/ipa/inlining/OPT_ProfileDirectedInlineOracle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16456, 67, 10870, 15861, 1410, 10870, 12, 15620, 67, 19184, 1119, 919, 13, 288, 565, 16456, 67, 1320, 1500, 273, 919, 18, 588, 1320, 5621, 565, 8251, 67, 1305, 2282, 3005, 11182, 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, 282, 1071, 16456, 67, 10870, 15861, 1410, 10870, 12, 15620, 67, 19184, 1119, 919, 13, 288, 565, 16456, 67, 1320, 1500, 273, 919, 18, 588, 1320, 5621, 565, 8251, 67, 1305, 2282, 3005, 11182, 27...
if (args.length == 1) lc.textFldURL.setText(args[0]);
public static void main(String[] args) { LinkChecker lc = new LinkChecker(); if (args.length == 1) lc.textFldURL.setText(args[0]); lc.setSize(500, 400); lc.setLocation(150, 150); lc.setVisible(true); }
9469 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9469/a4786625ff5fbf34dff7cb47c0da093cd547a158/LinkChecker.java/buggy/src/main/java/netweb/LinkChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 202, 2098, 8847, 9109, 273, 394, 4048, 8847, 5621, 202, 202, 430, 261, 1968, 18, 2469, 422, 404, 13, 1082, 202, 17704, 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, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 202, 2098, 8847, 9109, 273, 394, 4048, 8847, 5621, 202, 202, 430, 261, 1968, 18, 2469, 422, 404, 13, 1082, 202, 17704, 18, ...
public ExpireJob(RouterContext ctx, TunnelCreatorConfig cfg, TunnelPool pool, Object buildToken) {
public ExpireJob(RouterContext ctx, TunnelCreatorConfig cfg, TunnelPool pool) {
public ExpireJob(RouterContext ctx, TunnelCreatorConfig cfg, TunnelPool pool, Object buildToken) { super(ctx); _pool = pool; _cfg = cfg; _buildToken = buildToken; _leaseUpdated = false; // give 'em some extra time before dropping 'em getTiming().setStartAfter(cfg.getExpiration()); // + Router.CLOCK_FUDGE_FACTOR); }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/10ed058c2eb31f7552a375d40653e9c7575a38fa/ExpireJob.java/buggy/router/java/src/net/i2p/router/tunnel/pool/ExpireJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7784, 577, 2278, 12, 8259, 1042, 1103, 16, 399, 8564, 10636, 809, 2776, 16, 399, 8564, 2864, 2845, 13, 288, 3639, 2240, 12, 5900, 1769, 3639, 389, 6011, 273, 2845, 31, 3639, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7784, 577, 2278, 12, 8259, 1042, 1103, 16, 399, 8564, 10636, 809, 2776, 16, 399, 8564, 2864, 2845, 13, 288, 3639, 2240, 12, 5900, 1769, 3639, 389, 6011, 273, 2845, 31, 3639, 389, ...
if (control == null || dialogFontIsDefault()) return; Font dialogFont = JFaceResources.getDialogFont(); applyDialogFont(control, dialogFont); }
if (control == null || dialogFontIsDefault()) return; Font dialogFont = JFaceResources.getDialogFont(); applyDialogFont(control, dialogFont); }
public static void applyDialogFont(Control control) { if (control == null || dialogFontIsDefault()) return; Font dialogFont = JFaceResources.getDialogFont(); applyDialogFont(control, dialogFont); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/428d5c79264b25bd2a774407a6202b1bb1e628e5/Dialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2230, 6353, 5711, 12, 3367, 3325, 13, 288, 3639, 309, 261, 7098, 422, 446, 747, 6176, 5711, 2520, 1868, 10756, 5411, 327, 31, 3639, 10063, 6176, 5711, 273, 804, 11824, 380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2230, 6353, 5711, 12, 3367, 3325, 13, 288, 3639, 309, 261, 7098, 422, 446, 747, 6176, 5711, 2520, 1868, 10756, 5411, 327, 31, 3639, 10063, 6176, 5711, 273, 804, 11824, 380...
public org.quickfix.field.ReportToExch getReportToExch() throws FieldNotFound { org.quickfix.field.ReportToExch value = new org.quickfix.field.ReportToExch();
public quickfix.field.ReportToExch getReportToExch() throws FieldNotFound { quickfix.field.ReportToExch value = new quickfix.field.ReportToExch();
public org.quickfix.field.ReportToExch getReportToExch() throws FieldNotFound { org.quickfix.field.ReportToExch value = new org.quickfix.field.ReportToExch(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix44/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4820, 774, 424, 343, 22452, 774, 424, 343, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4820, 774, 424, 343, 460, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4820, 774, 424, 343, 22452, 774, 424, 343, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4820, 774, 424, 343, 460, 273,...
{ return style; }
{ return style; }
public String getStyle() { return style; }
47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/71c78d7920b2b31393f2bd956eca17455acdc37f/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14210, 1435, 202, 95, 202, 202, 2463, 2154, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14210, 1435, 202, 95, 202, 202, 2463, 2154, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return (Node)u1; }
return (Node) u1; }
public Node getFrmlNode() { return (Node)u1; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 2812, 86, 781, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 2812, 86, 781, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public boolean isEquivalentTo(QName anElement, QName exemplar) throws Exception{ if (anElement.localpart==exemplar.localpart && anElement.uri==exemplar.uri ) { return true; // they're the same! } if (fGrammarResolver == null || fStringPool == null) { throw new SAXException("Internal error; tried to check an element against a substitutionGroup, but no GrammarResolver is defined"); } int uriIndex = anElement.uri; int localpartIndex = anElement.localpart; String uri = fStringPool.toString(anElement.uri); String localpart = fStringPool.toString(anElement.localpart); // In addition to simply trying to find a chain between anElement and exemplar, // we need to make sure that no steps in the chain are blocked. // That is, at every step, we need to make sure that the element // being substituted for will permit being substituted // for, and whether the type of the element will permit derivations in // instance documents of this sort. if(uri==null) { return false; } SchemaGrammar sGrammar = null; try { sGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); } catch ( ClassCastException ce) { //since the return Grammar is not a SchemaGrammar, bail out String er = "Grammar with URI " + uri + " is not a schema grammar!"; Object [] a = {er}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, a, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); return false; } if(sGrammar == null) { return false; } // this will be the index of anElement int elementIndex = sGrammar.getElementDeclIndex(uriIndex, localpartIndex, TOP_LEVEL_SCOPE); int anElementIndex = elementIndex; String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex); boolean foundIt = false; while (substitutionGroupFullName != null) { int commaAt = substitutionGroupFullName.indexOf(","); uri = ""; localpart = substitutionGroupFullName; if ( commaAt >= 0 ) { if (commaAt > 0 ) { uri = substitutionGroupFullName.substring(0,commaAt); } localpart = substitutionGroupFullName.substring(commaAt+1); } if(uri==null) { return false; } try { sGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); } catch ( ClassCastException ce) { //since the return Grammar is not a SchemaGrammar, bail out String er = "Grammar with URI " + uri + " is not a schema grammar!"; Object [] a = {er}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, a, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); return false; } if(sGrammar == null) { return false; } uriIndex = fStringPool.addSymbol(uri); localpartIndex = fStringPool.addSymbol(localpart); elementIndex = sGrammar.getElementDeclIndex(uriIndex, localpartIndex, TOP_LEVEL_SCOPE); if (elementIndex == -1) { return false; } if (uriIndex == exemplar.uri && localpartIndex == exemplar.localpart) { // time to check for block value on element if((sGrammar.getElementDeclBlockSet(elementIndex) & SchemaSymbols.SUBSTITUTION) != 0) { return false; } foundIt = true; break; } substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex); } if (!foundIt) { return false; } // this will contain anElement's complexType information. TraverseSchema.ComplexTypeInfo aComplexType = sGrammar.getElementComplexTypeInfo(anElementIndex); // elementIndex contains the index of the substitutionGroup head int exemplarBlockSet = sGrammar.getElementDeclBlockSet(elementIndex); if(aComplexType == null) { // check on simpleType case XMLElementDecl anElementDecl = new XMLElementDecl(); sGrammar.getElementDecl(anElementIndex, anElementDecl); DatatypeValidator anElementDV = anElementDecl.datatypeValidator; XMLElementDecl exemplarDecl = new XMLElementDecl(); sGrammar.getElementDecl(elementIndex, exemplarDecl); DatatypeValidator exemplarDV = exemplarDecl.datatypeValidator; return((anElementDV == null) || ((anElementDV == exemplarDV) || ((exemplarBlockSet & SchemaSymbols.RESTRICTION) == 0))); } // now we have to make sure there are no blocks on the complexTypes that this is based upon int anElementDerivationMethod = aComplexType.derivedBy; if((anElementDerivationMethod & exemplarBlockSet) != 0) return false; // this will contain exemplar's complexType information. TraverseSchema.ComplexTypeInfo exemplarComplexType = sGrammar.getElementComplexTypeInfo(elementIndex); for(TraverseSchema.ComplexTypeInfo tempType = aComplexType; tempType != null && tempType != exemplarComplexType; tempType = tempType.baseComplexTypeInfo) { if((tempType.blockSet & anElementDerivationMethod) != 0) { return false; } } return true; }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/dded6e20bac6cc9df13e1872b030c11a48d96261/SubstitutionGroupComparator.java/clean/src/org/apache/xerces/validators/schema/SubstitutionGroupComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22606, 774, 12, 13688, 392, 1046, 16, 16723, 431, 351, 412, 297, 13, 1216, 1185, 95, 3639, 309, 261, 304, 1046, 18, 3729, 2680, 631, 338, 351, 412, 297, 18, 3729, 2680,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 22606, 774, 12, 13688, 392, 1046, 16, 16723, 431, 351, 412, 297, 13, 1216, 1185, 95, 3639, 309, 261, 304, 1046, 18, 3729, 2680, 631, 338, 351, 412, 297, 18, 3729, 2680,...
if (path != null && fileSets.size() > 0){
if (path != null && fileSets.size() > 0) {
protected void checkOptions() throws BuildException { super.checkOptions(); if ( !"files".equals(granularity) && !"methods".equals(granularity) && !"types".equals(granularity) ){ throw new BuildException("Metrics reporting granularity is invalid. Must be one of 'files', 'methods', 'types'"); } if (outFile == null){ throw new BuildException("Output XML file must be set via 'tofile' attribute."); } if (path == null && fileSets.size() == 0){ throw new BuildException("Must set either paths (path element) or files (fileset element)"); } // I don't accept dirs and files at the same time, I cannot recognize the semantic in the result if (path != null && fileSets.size() > 0){ throw new BuildException("Cannot set paths (path element) and files (fileset element) at the same time"); } }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8af1905a98b1e04a63ab7473d64a41bfda91f15e/MMetrics.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MMetrics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 866, 1320, 1435, 1216, 18463, 288, 3639, 2240, 18, 1893, 1320, 5621, 3639, 309, 261, 29054, 2354, 9654, 14963, 12, 75, 27234, 13, 597, 29054, 5163, 9654, 14963, 12, 75, 27234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 1320, 1435, 1216, 18463, 288, 3639, 2240, 18, 1893, 1320, 5621, 3639, 309, 261, 29054, 2354, 9654, 14963, 12, 75, 27234, 13, 597, 29054, 5163, 9654, 14963, 12, 75, 27234, ...
IPreferenceStore editorStore = ((AbstractUIPlugin) Platform.getPlugin(EditorPlugin.ID)).getPreferenceStore();
IPreferenceStore editorStore = SSEUIPlugin.getDefault().getPreferenceStore();
public void uninstall() { if (textWidget != null && !textWidget.isDisposed()) { textWidget.removeLineStyleListener(this); } textWidget = null; Collection providers = getTableOfProviders().values(); Iterator iterator = providers.iterator(); while (iterator.hasNext()) { LineStyleProvider lineStyleProvider = (LineStyleProvider) iterator.next(); lineStyleProvider.release(); // this remove probably isn't strictly needed, since // typically highlighter instance as a whole will go // away ... but in case that ever changes, this seems like // a better style. iterator.remove(); } IPreferenceStore editorStore = ((AbstractUIPlugin) Platform.getPlugin(EditorPlugin.ID)).getPreferenceStore(); editorStore.removePropertyChangeListener(fForegroundScaleListener); disposeColorTable(); // clear out cached variables (d282894) fSavedOffset = -1; fSavedLength = -1; fSavedRanges = null; }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/Highlighter.java/buggy/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/style/Highlighter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16577, 1435, 288, 202, 202, 430, 261, 955, 4609, 480, 446, 597, 401, 955, 4609, 18, 291, 1669, 7423, 10756, 288, 1082, 202, 955, 4609, 18, 4479, 1670, 2885, 2223, 12, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16577, 1435, 288, 202, 202, 430, 261, 955, 4609, 480, 446, 597, 401, 955, 4609, 18, 291, 1669, 7423, 10756, 288, 1082, 202, 955, 4609, 18, 4479, 1670, 2885, 2223, 12, 221...
public boolean predicate2(Object dm, Designer dsgr) { if (!(Model.getFacade().isAClassifier(dm))) return NO_PROBLEM; if (!(Model.getFacade().isPrimaryObject(dm))) return NO_PROBLEM; // if the object does not have a name, // than no problem if ((Model.getFacade().getName(dm) == null) || ("".equals(Model.getFacade().getName(dm)))) { return NO_PROBLEM; } // abstract elements do not necessarily require associations if (Model.getFacade().isAGeneralizableElement(dm) && Model.getFacade().isAbstract(dm)) { return NO_PROBLEM; } // types can probably have associations, but we should not nag at them // not having any. // utility is a namespace collection - also not strictly required // to have associations. if (Model.getFacade().isType(dm)) return NO_PROBLEM; if (Model.getFacade().isUtility(dm)) return NO_PROBLEM; //TODO: different critic or special message for classes //that inherit all ops but define none of their own. if (findAssociation(dm, 0)) return NO_PROBLEM; return PROBLEM_FOUND; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/f556fc3710966a2536b5672d5fca26cfeb39fa44/CrNoAssociations.java/buggy/src_new/org/argouml/uml/cognitive/critics/CrNoAssociations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5641, 22, 12, 921, 9113, 16, 29703, 264, 302, 1055, 86, 13, 288, 3639, 309, 16051, 12, 1488, 18, 588, 12467, 7675, 291, 37, 13860, 12, 10956, 20349, 5411, 327, 3741, 67, 337...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5641, 22, 12, 921, 9113, 16, 29703, 264, 302, 1055, 86, 13, 288, 3639, 309, 16051, 12, 1488, 18, 588, 12467, 7675, 291, 37, 13860, 12, 10956, 20349, 5411, 327, 3741, 67, 337...
public void testNonBond() { try { String sodiumPhenoxide = "c1cc([O-].[Na+])ccc1"; Molecule mol = sp.parseSmiles(sodiumPhenoxide); assertEquals(8, mol.getAtomCount()); assertEquals(7, mol.getBondCount()); ISetOfMolecules fragments = ConnectivityChecker.partitionIntoMolecules(mol); int fragmentCount = fragments.getMoleculeCount(); assertEquals(2, fragmentCount); org.openscience.cdk.interfaces.IMolecule mol1 = fragments.getMolecule(0); org.openscience.cdk.interfaces.IMolecule mol2 = fragments.getMolecule(1); assertEquals(6, Math.abs(mol1.getAtomCount() - mol2.getAtomCount())); } catch (Exception e) { fail(e.toString()); }
public void testNonBond() throws Exception { String sodiumPhenoxide = "c1cc([O-].[Na+])ccc1"; Molecule mol = sp.parseSmiles(sodiumPhenoxide); assertEquals(8, mol.getAtomCount()); assertEquals(7, mol.getBondCount()); ISetOfMolecules fragments = ConnectivityChecker.partitionIntoMolecules(mol); int fragmentCount = fragments.getMoleculeCount(); assertEquals(2, fragmentCount); org.openscience.cdk.interfaces.IMolecule mol1 = fragments.getMolecule(0); org.openscience.cdk.interfaces.IMolecule mol2 = fragments.getMolecule(1); assertEquals(6, Math.abs(mol1.getAtomCount() - mol2.getAtomCount()));
public void testNonBond() { try { String sodiumPhenoxide = "c1cc([O-].[Na+])ccc1"; Molecule mol = sp.parseSmiles(sodiumPhenoxide); assertEquals(8, mol.getAtomCount()); assertEquals(7, mol.getBondCount()); ISetOfMolecules fragments = ConnectivityChecker.partitionIntoMolecules(mol); int fragmentCount = fragments.getMoleculeCount(); assertEquals(2, fragmentCount); org.openscience.cdk.interfaces.IMolecule mol1 = fragments.getMolecule(0); org.openscience.cdk.interfaces.IMolecule mol2 = fragments.getMolecule(1); // one should have one atom, the other seven atoms // in any order, so just test the difference assertEquals(6, Math.abs(mol1.getAtomCount() - mol2.getAtomCount())); } catch (Exception e) { fail(e.toString()); } }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/5901c3218304395fccef66f9ad165bb3d7c49c9f/SmilesParserTest.java/buggy/src/org/openscience/cdk/test/smiles/SmilesParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3989, 9807, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 272, 29718, 3731, 275, 2409, 831, 273, 315, 71, 21, 952, 3816, 51, 17, 8009, 63, 24101, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3989, 9807, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 272, 29718, 3731, 275, 2409, 831, 273, 315, 71, 21, 952, 3816, 51, 17, 8009, 63, 24101, 15...
String key = getSymbolKey(symbol); String value = getSymbolValue(symbol);
String key = ScannerConfigUtil.getSymbolKey(symbol); String value = ScannerConfigUtil.getSymbolValue(symbol);
protected void handleRemoveRestoreDiscSymbol(int type) { if (workingDiscoveredSymbols != null) { List discList = discRemovedList; List discOtherList = discActiveList; boolean newStatus = true; // active if (type == DO_REMOVE) { discList = discActiveList; discOtherList = discRemovedList; newStatus = false; // removed } int id = discList.getSelectionIndex(); if (id != -1) { String symbol = discList.getItem(id); String key = getSymbolKey(symbol); String value = getSymbolValue(symbol); // find it in the discoveredSymbols Map of SymbolEntries SymbolEntry se = (SymbolEntry) workingDiscoveredSymbols.get(key); if (se != null) { se = new SymbolEntry(se); // deep copy se.replace(value, newStatus); workingDiscoveredSymbols.put(key, se); // update UI discActiveList.setItems(getDiscDefinedSymbols(workingDiscoveredSymbols, ACTIVE)); discRemovedList.setItems(getDiscDefinedSymbols(workingDiscoveredSymbols, REMOVED)); discOtherList.setSelection(discOtherList.indexOf(symbol)); enableDiscoveredButtons(); setDirty(true); } else { //TODO VMIR generate an error } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3303fed1efcdd933b03792e66dbb45bedd1d754d/ManageDefinedSymbolsDialog.java/clean/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/ManageDefinedSymbolsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 3288, 10874, 28912, 5335, 12, 474, 618, 13, 288, 202, 202, 430, 261, 20478, 28851, 14821, 480, 446, 13, 288, 1082, 202, 682, 19169, 682, 273, 19169, 10026, 682, 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, 1117, 918, 1640, 3288, 10874, 28912, 5335, 12, 474, 618, 13, 288, 202, 202, 430, 261, 20478, 28851, 14821, 480, 446, 13, 288, 1082, 202, 682, 19169, 682, 273, 19169, 10026, 682, 31, ...
grandParentNodeName.equals("dateFormatLength") || grandParentNodeName.equals("timeFormatLegth") ||
grandParentNodeName.equals("dateFormatLength") || grandParentNodeName.equals("timeFormatLength") ||
private boolean extractMergeData(Node node,String key){ Node childOfSource; for(childOfSource = node.getFirstChild(); childOfSource != null; childOfSource = childOfSource.getNextSibling()) { if (childOfSource.getNodeType() != Node.ELEMENT_NODE) { continue; } String childOfSourceName = childOfSource.getNodeName(); //Ignore collation and special tags if(childOfSourceName.equals("collations")|| childOfSource.equals("special") || childOfSourceName.indexOf(":")>-1){ 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; } } String nodeValue = ""; Node valueNode = childOfSource.getFirstChild(); if(valueNode != null){ String temp = trim(valueNode.getNodeValue()); if(!temp.equals("standard")){ nodeValue = temp; } } 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("timeFormatLegth") || 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")){ addElement(childNodeName, parentNodeName, id, index, nodeValue, key); } }else{ if(!type.equals(nodeValue) && !type.equals("Fallback")){ addElement(childNodeName, parentNodeName, id, type, nodeValue, key); } } } if(attr.getLength()>0 && typeNode==null){ // add an element for each attribute different for each attribute for(int i=0; i<attr.getLength(); i++){ Node item = attr.item(i); String attrName =item.getNodeName(); if(attrName.equals("type")){ continue; } if(grandParentNodeName.equals("zone") ){ parentNodeName = grandParentNodeName+"\u200b_"+parentNodeName; } String id = grandParentNodeName+"_"+parentNodeName+"_"+childNodeName+"_"+type+"_"+attrName; if(!index.equals("")){ addElement(childNodeName, parentNodeName, id, index, item.getNodeValue(), key); }else if(!type.equals("")){ addElement(childNodeName, parentNodeName, id, type, item.getNodeValue(), key); }else{ if(!attrName.equals("draft")){ addElement(childNodeName, parentNodeName, id, attrName, item.getNodeValue(), key); } } } } }else{ //the element has more children .. recurse to pick them all extractMergeData(childOfSource,key); } } return true; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/4616b6567251dd4e0722a34dde8b33142b5f0393/LDMLComparator.java/clean/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, 15329, 3639, 2029, 1151, 951, 1830, 31, 3639, 364, 12, 3624, 951, 1830, 273, 756, 18, 588, 3759, 1763, 5621, 1151, 951, 1830, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2608, 6786, 751, 12, 907, 756, 16, 780, 498, 15329, 3639, 2029, 1151, 951, 1830, 31, 3639, 364, 12, 3624, 951, 1830, 273, 756, 18, 588, 3759, 1763, 5621, 1151, 951, 1830, 48...
}
}
void refreshInternal(final boolean recursive, final ModalityState modalityState, final boolean forceRefresh, final boolean asynchronous, final boolean noWatcher) { if (!asynchronous) { ApplicationManager.getApplication().assertWriteAccessAllowed(); } if (!isValid()) return; if (LOG.isDebugEnabled()) { LOG.debug("refreshInternal recursive = " + recursive + " asynchronous = " + asynchronous + " file = " + myName); } final PhysicalFile physicalFile = getPhysicalFile(); PhysicalFile[] childFiles = null; final boolean isDirectory; if (myChildren == null) { isDirectory = physicalFile.isDirectory(); } else { childFiles = physicalFile.listFiles(); isDirectory = childFiles != null; } if (isDirectory != myDirectoryFlag) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (!isValid()) return; VirtualFileImpl parent = getParent(); if (parent == null) return; ourFileSystem.fireBeforeFileDeletion(null, VirtualFileImpl.this); parent.removeChild(VirtualFileImpl.this); ourFileSystem.fireFileDeleted(null, VirtualFileImpl.this, myName, myDirectoryFlag, parent); VirtualFileImpl newChild = new VirtualFileImpl(parent, physicalFile, isDirectory); parent.addChild(newChild); ourFileSystem.fireFileCreated(null, newChild); } }, asynchronous, modalityState ); return; } if (isDirectory) { if (myChildren == null) return; final int[] newIndices = new int[myChildren.length]; for (int i = 0; i < newIndices.length; i++) newIndices[i] = -1; VirtualFileImpl[] children = myChildren; for (int i = 0; i < childFiles.length; i++) { final PhysicalFile file = childFiles[i]; final String name = file.getName(); int index = -1; if (i < children.length && children[i].nameEquals(name)) { index = i; } else { for (int j = 0; j < children.length; j++) { VirtualFileImpl child = myChildren[j]; if (child.nameEquals(name)) index = j; } } if (index < 0) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (VirtualFileImpl.this.isValid()) { if (findChild(file.getName()) != null) return; // was already created VirtualFileImpl newChild = new VirtualFileImpl( VirtualFileImpl.this, file, file.isDirectory() ); addChild(newChild); ourFileSystem.fireFileCreated(null, newChild); } } }, asynchronous, modalityState ); } else { newIndices[index] = i; } } for (int i = 0; i < children.length; i++) { final VirtualFileImpl child = children[i]; final int newIndex = newIndices[i]; if (newIndex >= 0) { final String oldName = child.getName(); final String newName = childFiles[newIndex].getName(); if (!oldName.equals(newName)) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (child.isValid()) { ourFileSystem.fireBeforePropertyChange(null, child, VirtualFile.PROP_NAME, oldName, newName); child.setName(newName); ourFileSystem.firePropertyChanged(null, child, VirtualFile.PROP_NAME, oldName, newName); } } }, asynchronous, modalityState ); } if (recursive) { ourFileSystem.refreshInner(child, true, modalityState, asynchronous, false, noWatcher); } } else { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (child.isValid()) { ourFileSystem.fireBeforeFileDeletion(null, child); removeChild(child); ourFileSystem.fireFileDeleted(null, child, child.myName, child.myDirectoryFlag, VirtualFileImpl.this); } } }, asynchronous, modalityState ); } } } else { if (myTimeStamp > 0) { final long timeStamp = physicalFile.lastModified(); if (timeStamp != myTimeStamp || forceRefresh) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (!forceRefresh && (timeStamp == myTimeStamp || !isValid())) return; ourFileSystem.fireBeforeContentsChange(null, VirtualFileImpl.this); long oldModificationStamp = getModificationStamp(); myTimeStamp = timeStamp; myModificationStamp = LocalTimeCounter.currentTime(); ourFileSystem.fireContentsChanged(null, VirtualFileImpl.this, oldModificationStamp); } }, asynchronous, modalityState ); } } } if (myWritableFlag != null) { final boolean isWritable = isWritable(physicalFile, isDirectory()); if (isWritable != myWritableFlag.booleanValue()) { ourFileSystem.getManager().addEventToFireByRefresh( new Runnable() { public void run() { if (!isValid()) return; ourFileSystem.fireBeforePropertyChange( null, VirtualFileImpl.this, PROP_WRITABLE, myWritableFlag, isWritable ? Boolean.TRUE : Boolean.FALSE ); myWritableFlag = isWritable ? Boolean.TRUE : Boolean.FALSE; ourFileSystem.firePropertyChanged( null, VirtualFileImpl.this, PROP_WRITABLE, isWritable ? Boolean.FALSE : Boolean.TRUE, myWritableFlag ); } }, asynchronous, modalityState ); } } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0c50c62d516d7dbfd71cffd7cea061bd9613113a/VirtualFileImpl.java/buggy/source/com/intellij/openapi/vfs/impl/local/VirtualFileImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4460, 3061, 12, 6385, 1250, 5904, 16, 15604, 727, 3431, 7919, 1119, 681, 7919, 1119, 16, 15604, 727, 1250, 2944, 8323, 16, 15604, 727, 1250, 9007, 16, 15604, 727, 1250, 1158, 9918, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4460, 3061, 12, 6385, 1250, 5904, 16, 15604, 727, 3431, 7919, 1119, 681, 7919, 1119, 16, 15604, 727, 1250, 2944, 8323, 16, 15604, 727, 1250, 9007, 16, 15604, 727, 1250, 1158, 9918, 1...
loadDirectory(path,true);
browserView.reloadDirectory(path);
public void reloadDirectory() { loadDirectory(path,true); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/65bb6a2acf338a840d8b22d96810ba924d55277b/VFSBrowser.java/buggy/org/gjt/sp/jedit/browser/VFSBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7749, 2853, 1435, 202, 95, 202, 202, 945, 2853, 12, 803, 16, 3767, 1769, 202, 97, 368, 9090, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7749, 2853, 1435, 202, 95, 202, 202, 945, 2853, 12, 803, 16, 3767, 1769, 202, 97, 368, 9090, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public void statusChanged(ItemState state, int previousStatus) { // workspace-states never are listening to another state checkIsSessionState(); state.checkIsWorkspaceState(); switch (state.getStatus()) { case Status.EXISTING: // nothing to do break; case Status.MODIFIED: if (previousStatus == Status.EXISTING) { // underlying state has been modified if (isTransient()) { setStatus(Status.STALE_MODIFIED); } else { synchronized (this) { // this instance represents existing state, update it merge(); setStatus(Status.EXISTING); } } } break; case Status.REMOVED: if (isTransient()) { setStatus(Status.STALE_DESTROYED); } else { setStatus(Status.REMOVED); } break; default: // Should never occur, since 'setStatus(int)' already validates log.error("Workspace state cannot have its state changed to " + state.getStatus()); break; } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/9ae8bbb5c63832a2db95f20a916c3c350f4f0681/ItemState.java/buggy/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2327, 5033, 12, 1180, 5000, 395, 340, 16, 474, 11515, 1482, 15329, 759, 14915, 17, 7992, 4644, 502, 834, 18085, 310, 869, 304, 3011, 2019, 1893, 2520, 2157, 1119, 5621, 2019, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2327, 5033, 12, 1180, 5000, 395, 340, 16, 474, 11515, 1482, 15329, 759, 14915, 17, 7992, 4644, 502, 834, 18085, 310, 869, 304, 3011, 2019, 1893, 2520, 2157, 1119, 5621, 2019, 18, 1...
HSSFSheet sheet = sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport));
HSSFSheet sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport));
public void writeSimpleExcelFile(JRDataSource reportData, String nameOfReport, String filePathAndName, ReportDescription description) throws IOException{ if(nameOfReport==null || "".equals(nameOfReport)){ nameOfReport = "Report"; } System.out.println(nameOfReport); System.out.println(TextSoap.encodeToValidExcelSheetName(nameOfReport)); System.out.println(nameOfReport); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = sheet = wb.createSheet(TextSoap.encodeToValidExcelSheetName(nameOfReport)); int rowIndex = 0; //-- Report Name --// // Create a row and put some cells in it. Rows are 0 based. HSSFRow row = sheet.createRow((short)rowIndex++); // Create a cell and put a value in it. HSSFCell cell = row.createCell((short)0); // Create a new font and alter it. HSSFFont font = wb.createFont(); font.setFontHeightInPoints((short)24); font.setFontName("Courier New"); font.setItalic(true); font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); // Fonts are set into a style so create a new one to use. HSSFCellStyle style = wb.createCellStyle(); style.setFont(font); // Create a cell and put a value in it. cell.setCellValue(nameOfReport); cell.setCellStyle(style); //-- Report Parameters --// rowIndex++; HSSFRow row1 = null; String parameterString = ""; List labels = description.getListOfHeaderParameterLabelKeys(); List parameters = description.getListOfHeaderParameterKeys(); Iterator labelIter = labels.iterator(); Iterator parameterIter = parameters.iterator(); boolean newLineForeEachParameter = description.doCreateNewLineForEachParameter(); while (labelIter.hasNext() && parameterIter.hasNext()) { String label = description.getParameterOrLabelName((String)labelIter.next()); String parameter = description.getParameterOrLabelName((String)parameterIter.next()); if(newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(label + " "+parameter); } else { parameterString += label + " "+parameter+" "; } } if(!newLineForeEachParameter){ row1 = sheet.createRow((short)rowIndex++); row1.createCell((short)0).setCellValue(parameterString); } rowIndex++; //-- Report ColumnHeader --// List fields = description.getListOfFields(); HSSFRow headerRow = sheet.createRow((short)rowIndex++); HSSFCellStyle headerCellStyle = wb.createCellStyle(); headerCellStyle.setWrapText( true ); headerCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); headerCellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); HSSFFont headerCellFont = wb.createFont(); //headerCellFont.setFontHeightInPoints((short)12); headerCellFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); headerCellStyle.setFont(headerCellFont); int colIndex = 0; int columnWithUnit = 256; // the unit is 1/256 of a character int numberOfCharactersPerLineInLongTextFields = 60; int numberOfCharactersPerLineInRatherLongTextFields = 35; int numberOfCharactersPerLineInUndifinedTextFields = 20; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell headerCell = headerRow.createCell((short)colIndex); headerCell.setCellValue((String)description.getColumnName(field)); headerCell.setCellStyle(headerCellStyle); //column width int fieldsMaxChar = field.getMaxNumberOfCharacters(); int colWith = numberOfCharactersPerLineInRatherLongTextFields*columnWithUnit; //default, can be rather long text if(fieldsMaxChar > 0 && fieldsMaxChar < numberOfCharactersPerLineInRatherLongTextFields){ colWith = (fieldsMaxChar+1)*columnWithUnit; // short fields } else if(fieldsMaxChar > 500){ // when the field is set to be able to contain very long text colWith = numberOfCharactersPerLineInLongTextFields*columnWithUnit; //can be very long text } else if(fieldsMaxChar < 0){ colWith = numberOfCharactersPerLineInUndifinedTextFields*columnWithUnit; } sheet.setColumnWidth((short)colIndex,(short)colWith); } //-- Report ColumnDetail --// try { HSSFCellStyle dataCellStyle = wb.createCellStyle(); dataCellStyle.setWrapText( true ); dataCellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP); sheet.createFreezePane( 0, rowIndex ); while(reportData.next()){ HSSFRow dataRow = sheet.createRow((short)rowIndex++); colIndex = 0; for (Iterator iter = fields.iterator(); iter.hasNext();colIndex++) { ReportableField field = (ReportableField) iter.next(); HSSFCell dataCell = dataRow.createCell((short)colIndex); Object fieldValue = reportData.getFieldValue(field); if(fieldValue != null){ dataCell.setCellValue(String.valueOf(fieldValue)); } dataCell.setCellStyle(dataCellStyle); } } } catch (JRException e) { //-- Exception fetching data --// HSSFRow exceptionRow = sheet.createRow((short)rowIndex++); HSSFCell exceptionCell = exceptionRow.createCell((short)0); // Create a new font and alter it. HSSFFont exceptionFont = wb.createFont(); exceptionFont.setFontName("Courier New"); exceptionFont.setItalic(true); // Fonts are set into a style so create a new one to use. HSSFCellStyle exceptionStyle = wb.createCellStyle(); exceptionStyle.setFont(exceptionFont); // Create a cell and put a value in it. exceptionCell.setCellValue("Error occurred while getting data. Check log for more details."); exceptionCell.setCellStyle(exceptionStyle); e.printStackTrace(); } // Write the output to a file FileOutputStream fileOut = new FileOutputStream(filePathAndName); wb.write(fileOut); fileOut.close(); }
57902 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57902/26d7c6f542fd74d62419e56c278b97405d6e2c0c/SimpleReportBusinessBean.java/clean/src/java/com/idega/block/datareport/business/SimpleReportBusinessBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 5784, 7177, 812, 12, 46, 54, 8597, 2605, 751, 16, 514, 508, 951, 4820, 16, 514, 4612, 1876, 461, 16, 8706, 3291, 2477, 13, 1216, 1860, 95, 202, 202, 430, 12, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 5784, 7177, 812, 12, 46, 54, 8597, 2605, 751, 16, 514, 508, 951, 4820, 16, 514, 4612, 1876, 461, 16, 8706, 3291, 2477, 13, 1216, 1860, 95, 202, 202, 430, 12, 529,...
searchNode.setAttribute("requestID", ""+message.getMessageID());
searchNode.setAttribute("requestID", ""+ findRequestID(message));
private void checkState(LDAPMessage message) throws LDAPLocalException { boolean isResponse = !message.isRequest(); if (state == NEW_BATCH) { if (isResponse) { root = doc.createElement("batchResponse"); root.setAttribute("xmlns", "urn:oasis:names:tc:DSML:2:0:core"); state = RESPONSE_BATCH; } else{ root = doc.createElement("batchRequest"); root.setAttribute("xmlns", "urn:oasis:names:tc:DSML:2:0:core"); state = REQUEST_BATCH; } } if (state != SEARCH_RESPONSE && (message.getType()==LDAPMessage.SEARCH_RESPONSE || message.getType()==LDAPMessage.SEARCH_RESULT || message.getType()==LDAPMessage.SEARCH_RESULT_REFERENCE)) { searchNode = doc.createElement("searchResponse"); searchNode.setAttribute("requestID", ""+message.getMessageID()); root.appendChild(searchNode); state = SEARCH_RESPONSE; } else if ((state == REQUEST_BATCH) && (isResponse)) { throw new LDAPLocalException( "Attempted insertion of a response message in a request batch", LDAPException.ENCODING_ERROR); } else if ((state == RESPONSE_BATCH || state == SEARCH_RESPONSE) && (!isResponse)) { throw new LDAPLocalException( "Attempted insertion of a request message in a response batch", LDAPException.ENCODING_ERROR); } else if ( state == SEARCH_RESPONSE && (message.getType()!=LDAPMessage.SEARCH_RESPONSE && message.getType()!=LDAPMessage.SEARCH_RESULT && message.getType()!=LDAPMessage.SEARCH_RESULT_REFERENCE)) { throw new LDAPLocalException( "Attempted insertion of a non-search result into a searchResponse", LDAPException.ENCODING_ERROR); } return; }
9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/fbc416e5926b942eae77404d39ac635b1b677ec1/DOMWriter.java/buggy/com/novell/ldap/util/DOMWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 13632, 12, 15496, 1079, 883, 13, 5411, 1216, 11916, 2042, 503, 565, 288, 3639, 1250, 353, 1064, 273, 401, 2150, 18, 291, 691, 5621, 3639, 309, 261, 2019, 422, 12887, 67, 25147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13632, 12, 15496, 1079, 883, 13, 5411, 1216, 11916, 2042, 503, 565, 288, 3639, 1250, 353, 1064, 273, 401, 2150, 18, 291, 691, 5621, 3639, 309, 261, 2019, 422, 12887, 67, 25147,...
private int handleMouseCallback(int nextHandler, int eRefHandle) { int eventKind= OS.GetEventKind(eRefHandle); if (eventKind == OS.kEventMouseDown) fTrackedControl= 0; MacEvent me= new MacEvent(); OS.ConvertEventRefToEventRecord(eRefHandle, me.getData()); int whichWindow= 0; short part= 0; MacPoint where= me.getWhere(); if (fTrackedControl != 0) { whichWindow= OS.GetControlOwner(fTrackedControl); } else { int[] w= new int[1]; part= OS.FindWindow(where.getData(), w); whichWindow= w[0]; //part= getWindowDefPart(eRefHandle); //whichWindow= getDirectObject(eRefHandle); } /* if (eventKind == OS.kEventMouseDown) { Widget w= findWidget(whichWindow); System.out.println("click: " + whichWindow + " " + w); } */ int oldPort= OS.GetPort(); OS.SetPortWindowPort(whichWindow); OS.GlobalToLocal(where.getData()); OS.SetPort(oldPort); switch (eventKind) { case OS.kEventMouseDown: hideToolTip (); /* if (whichWindow != OS.FrontNonFloatingWindow()) { System.out.println(" front click"); //OS.SelectWindow(whichWindow); return OS.eventNotHandledErr; } */ fTrackedControl= 0; if (part == OS.inMenuBar) { System.out.println("---> menu click"); doMenuCommand(OS.MenuSelect(me.getWhere().getData())); return OS.kNoErr; //return OS.eventNotHandledErr; } if (part == OS.inContent) { if (handleContentClick(me, whichWindow)) return OS.eventNotHandledErr; } else return OS.eventNotHandledErr; break; case OS.kEventMouseDragged: if (fTrackedControl != 0) { me.getData()[0]= 12345; windowProc(fTrackedControl, SWT.MouseMove, me); } break; case OS.kEventMouseUp: if (fTrackedControl != 0) windowProc(fTrackedControl, SWT.MouseUp, me); fTrackedControl= 0; break; case OS.kEventMouseMoved: short[] cpart= new short[1]; int whichControl= MacUtil.findControlUnderMouse(where, whichWindow, cpart); //System.out.println(" kEventMouseMoved"); if (fCurrentControl != whichControl) { if (fCurrentControl != 0) { //System.out.println("mouse exit: " + WidgetTable.get(fCurrentControl)); fLastHoverHandle= 0; windowProc(fCurrentControl, SWT.MouseExit, me); } fCurrentControl= whichControl; if (fCurrentControl != 0) { //System.out.println("mouse enter: " + WidgetTable.get(fCurrentControl)); windowProc(fCurrentControl, SWT.MouseEnter, me); } } else { if (fCurrentControl != 0) { windowProc(fCurrentControl, SWT.MouseMove, me); //System.out.println("mouse moved: " + WidgetTable.get(fCurrentControl)); } } break; } return OS.kNoErr; }
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/4b24af5ef710affbf05bf5fb1df78e69400546d5/Display.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Display.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1640, 9186, 2428, 12, 474, 1024, 1503, 16, 509, 425, 1957, 3259, 13, 288, 9506, 202, 474, 871, 5677, 33, 5932, 18, 967, 1133, 5677, 12, 73, 1957, 3259, 1769, 9506, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1640, 9186, 2428, 12, 474, 1024, 1503, 16, 509, 425, 1957, 3259, 13, 288, 9506, 202, 474, 871, 5677, 33, 5932, 18, 967, 1133, 5677, 12, 73, 1957, 3259, 1769, 9506, 202, ...
if (m_statementName != null) { ((AbstractJdbc1Connection)connection).ExecSQL("DEALLOCATE " + m_statementName); m_statementName = null; m_origSqlFragments = null; m_executeSqlFragments = null;
if (m_statementName != null) { try { ((AbstractJdbc1Connection)connection).execSQL("DEALLOCATE " + m_statementName); } catch (Exception e) { } finally { m_statementName = null; m_origSqlFragments = null; m_executeSqlFragments = null; }
public java.sql.ResultSet executeQuery(String p_sql) throws SQLException { String l_sql = replaceProcessing(p_sql); m_sqlFragments = new String[] {l_sql}; m_binds = new Object[0]; //If we have already created a server prepared statement, we need //to deallocate the existing one if (m_statementName != null) { ((AbstractJdbc1Connection)connection).ExecSQL("DEALLOCATE " + m_statementName); m_statementName = null; m_origSqlFragments = null; m_executeSqlFragments = null; } return executeQuery(); }
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/AbstractJdbc1Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 14304, 12, 780, 293, 67, 4669, 13, 1216, 6483, 202, 95, 202, 202, 780, 328, 67, 4669, 273, 1453, 7798, 12, 84, 67, 4669, 1769, 202, 202, 81, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 14304, 12, 780, 293, 67, 4669, 13, 1216, 6483, 202, 95, 202, 202, 780, 328, 67, 4669, 273, 1453, 7798, 12, 84, 67, 4669, 1769, 202, 202, 81, 67, ...
c.cross(a).multLocal(b.lengthSquared())).addLocal( b.cross(c).multLocal(a.lengthSquared())).divideLocal( Denominator);
c.cross(a).multLocal(b.lengthSquared())).addLocal( b.cross(c).multLocal(a.lengthSquared())).divideLocal( Denominator);
private void setSphere(Vector3f O, Vector3f A, Vector3f B, Vector3f C) { Vector3f a = A.subtract(O); Vector3f b = B.subtract(O); Vector3f c = C.subtract(O); float Denominator = 2.0f * (a.x * (b.y * c.z - c.y * b.z) - b.x * (a.y * c.z - c.y * a.z) + c.x * (a.y * b.z - b.y * a.z)); if (Denominator == 0) { center.set(0,0,0); radius = 0; } else { Vector3f o = a.cross(b).multLocal(c.lengthSquared()).addLocal( c.cross(a).multLocal(b.lengthSquared())).addLocal( b.cross(c).multLocal(a.lengthSquared())).divideLocal( Denominator); radius = o.length() * radiusEpsilon; O.add(o, center); } }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6aaba14bb39fd6af9aea6f599180d9ac7dbd923d/BoundingSphere.java/clean/src/com/jme/bounding/BoundingSphere.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 13928, 9346, 12, 5018, 23, 74, 531, 16, 5589, 23, 74, 432, 16, 5589, 23, 74, 605, 16, 5589, 23, 74, 385, 13, 288, 3639, 5589, 23, 74, 279, 273, 432, 18, 1717, 1575, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 13928, 9346, 12, 5018, 23, 74, 531, 16, 5589, 23, 74, 432, 16, 5589, 23, 74, 605, 16, 5589, 23, 74, 385, 13, 288, 3639, 5589, 23, 74, 279, 273, 432, 18, 1717, 1575, 12, ...
synPredMatched509 = false; } rewind(_m509);
synPredMatched513 = false; } rewind(_m513);
public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; inAttributeContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: boolean synPredMatched511 = false; if (((LA(1)=='(') && (LA(2)==':') && (LA(3)==':') && (LA(4)=='p'))) { int _m511 = mark(); synPredMatched511 = true; inputState.guessing++; try { { match("(::"); } } catch (RecognitionException pe) { synPredMatched511 = false; } rewind(_m511); inputState.guessing--; } if ( synPredMatched511 ) { mPRAGMA(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_6.member(LA(3))) && (_tokenSet_6.member(LA(4)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { String data = new String(text.getBuffer(),_begin,text.length()-_begin); parseLinefeeds(data); _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched516 = false; if (((_tokenSet_19.member(LA(1))) && (_tokenSet_20.member(LA(2))) && (_tokenSet_21.member(LA(3))) && (true))) { int _m516 = mark(); synPredMatched516 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched516 = false; } rewind(_m516); inputState.guessing--; } if ( synPredMatched516 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else { boolean synPredMatched525 = false; if (((_tokenSet_19.member(LA(1))) && (_tokenSet_20.member(LA(2))) && (_tokenSet_21.member(LA(3))) && (true))) { int _m525 = mark(); synPredMatched525 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_2.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched525 = false; } rewind(_m525); inputState.guessing--; } if ( synPredMatched525 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched509 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m509 = mark(); synPredMatched509 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched509 = false; } rewind(_m509); inputState.guessing--; } if ( synPredMatched509 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='\'') && (LA(2)=='\'') && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mESCAPE_APOS(false); if ( inputState.guessing==0 ) { _ttype = ESCAPE_APOS; } } else if (((LA(1)=='"') && (LA(2)=='"') && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mESCAPE_QUOT(false); if ( inputState.guessing==0 ) { _ttype = ESCAPE_QUOT; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched513 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m513 = mark(); synPredMatched513 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched513 = false; } rewind(_m513); inputState.guessing--; } if ( synPredMatched513 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_13.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mQUOT_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = QUOT_ATTRIBUTE_CONTENT; } } else if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mAPOS_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = APOS_ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((LA(1)=='\'') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mAPOS(false); if ( inputState.guessing==0 ) { _ttype = APOS; } } else if (((_tokenSet_22.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_23.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched518 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m518 = mark(); synPredMatched518 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched518 = false; } rewind(_m518); inputState.guessing--; } if ( synPredMatched518 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched520 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m520 = mark(); synPredMatched520 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched520 = false; } rewind(_m520); inputState.guessing--; } if ( synPredMatched520 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched527 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m527 = mark(); synPredMatched527 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched527 = false; } rewind(_m527); inputState.guessing--; } if ( synPredMatched527 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_2.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b779c75ce0b21b86c9e0bdc063e6252c8bd1072c/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 312, 25539, 67, 8412, 12, 6494, 389, 2640, 1345, 13, 1216, 9539, 16, 3703, 1228, 503, 16, 3155, 1228, 503, 288, 202, 202, 474, 389, 88, 723, 31, 3155, 389, 2316, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 312, 25539, 67, 8412, 12, 6494, 389, 2640, 1345, 13, 1216, 9539, 16, 3703, 1228, 503, 16, 3155, 1228, 503, 288, 202, 202, 474, 389, 88, 723, 31, 3155, 389, 2316, 3...
s.grabFocus();
private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) sesProps.put(SESSION_TN_ENHANCED,"1"); if (isSpecified("-p")) { sesProps.put(SESSION_HOST_PORT,getParameter("-p")); }// if (isSpecified("-f",args))// propFileName = getParm("-f",args); if (isSpecified("-cp")) sesProps.put(SESSION_CODE_PAGE ,getParameter("-cp")); if (isSpecified("-gui")) sesProps.put(SESSION_USE_GUI,"1"); if (isSpecified("-132")) sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_27X132_STR); else sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_24X80_STR); // socks proxy host argument if (isSpecified("-sph")) { sesProps.put(SESSION_PROXY_HOST ,getParameter("-sph")); } // socks proxy port argument if (isSpecified("-spp")) sesProps.put(SESSION_PROXY_PORT ,getParameter("-spp")); // check if device name is specified if (isSpecified("-dn")) sesProps.put(SESSION_DEVICE_NAME ,getParameter("-dn")); if (isSpecified("-L")) LangTool.init(parseLocale(getParameter("-L"))); else LangTool.init(); manager = new SessionManager(); Session s = manager.openSession(sesProps,"","Test Applet"); this.getContentPane().add(s); s.grabFocus(); s.connect(); }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/89fc083a912378c9d0fe835475fe38431280c473/My5250App.java/buggy/src/org/tn5250j/My5250App.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 20515, 2570, 1435, 1216, 1185, 288, 1377, 333, 18, 542, 1225, 12, 2704, 13037, 12, 16010, 16, 19249, 10019, 1377, 6183, 24138, 5047, 273, 394, 6183, 5621, 1377, 368, 3603, 7153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 20515, 2570, 1435, 1216, 1185, 288, 1377, 333, 18, 542, 1225, 12, 2704, 13037, 12, 16010, 16, 19249, 10019, 1377, 6183, 24138, 5047, 273, 394, 6183, 5621, 1377, 368, 3603, 7153, ...
entry.prefix= (String) fWorkingValues.get(suffixKey); entry.suffix= (String) fWorkingValues.get(prefixKey);
entry.suffix= (String) fWorkingValues.get(suffixKey); entry.prefix= (String) fWorkingValues.get(prefixKey);
private void createEntry(List list, String suffixKey, String prefixKey, int kind) { NameConventionEntry entry= new NameConventionEntry(); entry.kind= kind; entry.suffixkey= suffixKey; entry.prefixkey= prefixKey; entry.prefix= (String) fWorkingValues.get(suffixKey); entry.suffix= (String) fWorkingValues.get(prefixKey); list.add(entry); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/e809d26f504c9fbe942f2ad65be2bdd6b8c52c7a/NameConventionConfigurationBlock.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NameConventionConfigurationBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1622, 12, 682, 666, 16, 514, 3758, 653, 16, 514, 1633, 653, 16, 509, 3846, 13, 288, 202, 202, 461, 25947, 1622, 1241, 33, 394, 1770, 25947, 1622, 5621, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1622, 12, 682, 666, 16, 514, 3758, 653, 16, 514, 1633, 653, 16, 509, 3846, 13, 288, 202, 202, 461, 25947, 1622, 1241, 33, 394, 1770, 25947, 1622, 5621, 202, 202, ...
model1.insertClosedSquiggly();
model1.insertChar('}');
public void testBalanceForward() { assertEquals("#0.0", -1, model0.balanceForward()); model0 = setUpExample(); assertEquals("#1.0",-1, model0.balanceForward()); model0.move(-1); assertEquals("#2.0",-1,model0.balanceForward()); model0.move(-35); assertEquals("#3.0",36, model0.balanceForward()); model0.move(1); assertEquals("#4.0",-1, model0.balanceForward()); model0.move(5); assertEquals("#5.0",4, model0.balanceForward()); model0.move(27); assertEquals("#6.0",-1, model0.balanceForward()); model0.move(-20); assertEquals(-1, model0.balanceForward()); model1.insertOpenParen(); model1.move(-1); assertEquals("#7.0", -1, model1.balanceForward()); model1.move(1); model1.insertClosedSquiggly(); model1.move(-1); assertEquals("#8.0", -1, model1.balanceForward()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6f064a351cf6f32ca81eb7bd4e1d9f192f6a46c6/ReducedModelTest.java/buggy/drjava/src/edu/rice/cs/drjava/ReducedModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 13937, 8514, 1435, 202, 202, 95, 1082, 202, 11231, 8867, 2932, 7, 20, 18, 20, 3113, 300, 21, 16, 938, 20, 18, 12296, 8514, 10663, 1082, 202, 2284, 20, 273, 24292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13937, 8514, 1435, 202, 202, 95, 1082, 202, 11231, 8867, 2932, 7, 20, 18, 20, 3113, 300, 21, 16, 938, 20, 18, 12296, 8514, 10663, 1082, 202, 2284, 20, 273, 24292, ...
public void parseReply(String reply) { System.out.println("Reply:"+reply); if(reply == null) { return; } if(reply.substring(0,3).compareTo("OUT")==0) { this.connected_=false; this.status_=DISCONNECTED; this.logout(); } if(reply.indexOf("LSG")!=-1) { parseGroups(reply); } if(reply.indexOf("XFR")!=-1) { startSession(reply); } if(reply.indexOf("FLN")!=-1) { userGoesOffline(reply); } if(reply.indexOf("LST")!=-1) { parseContacts(reply); } if(reply.indexOf("ILN")!=-1) { parsePresence(reply); //this.printContacts(); } if(reply.indexOf("NLN")!=-1) { changePresence(reply); } if(reply.indexOf("ADG")!=-1) { groupAdded(reply); } if(reply.indexOf("CHL")!=-1) { parseChallenge(reply); System.gc(); // let's clean this mess } if(reply.indexOf("RNG")!=-1) { SBhandle(reply); } }
56431 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56431/74266cf4c66f70ad972c3d273a4cb90771724a72/MSNProtocol.java/clean/trunk/jimmy/msn/MSNProtocol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2670, 7817, 12, 780, 10629, 15329, 202, 3163, 18, 659, 18, 8222, 2932, 7817, 2773, 15, 10629, 1769, 430, 12, 10629, 631, 2011, 15329, 2463, 31, 97, 430, 12, 10629, 18, 28023, 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, 1071, 6459, 2670, 7817, 12, 780, 10629, 15329, 202, 3163, 18, 659, 18, 8222, 2932, 7817, 2773, 15, 10629, 1769, 430, 12, 10629, 631, 2011, 15329, 2463, 31, 97, 430, 12, 10629, 18, 28023, 12, ...
if(chatTabbedPane.getSelectedIndex() < chatTabbedPane.getTabCount() - 1){ ChatWindow.this.chatTabbedPane .setSelectedIndex (chatTabbedPane.getSelectedIndex() + 1);
int selectedIndex = chatTabbedPane.getSelectedIndex(); if( selectedIndex < chatTabbedPane.getTabCount() - 1){ setSelectedContactTab(selectedIndex + 1);
private void enableKeyActions(){ AbstractAction close = new AbstractAction() { public void actionPerformed(ActionEvent e) { if(chatTabbedPane.getTabCount() > 1){ removeContactTab(chatTabbedPane.getSelectedIndex()); } else{ ChatWindow.this.dispose(); mainFrame.getTabbedPane().getContactListPanel() .setTabbedChatWindow(null); } } }; AbstractAction changeTabForword = new AbstractAction(){ public void actionPerformed(ActionEvent e) { if(chatTabbedPane != null){ if(chatTabbedPane.getSelectedIndex() < chatTabbedPane.getTabCount() - 1){ ChatWindow.this.chatTabbedPane .setSelectedIndex (chatTabbedPane.getSelectedIndex() + 1); } else{ ChatWindow.this.chatTabbedPane .setSelectedIndex(0); } } } }; AbstractAction changeTabBackword = new AbstractAction(){ public void actionPerformed(ActionEvent e) { if(chatTabbedPane != null){ if(chatTabbedPane.getSelectedIndex() != 0){ ChatWindow.this.chatTabbedPane .setSelectedIndex (chatTabbedPane.getSelectedIndex() - 1); } else{ ChatWindow.this.chatTabbedPane .setSelectedIndex (chatTabbedPane.getTabCount() - 1); } } } }; getRootPane().getActionMap().put("close", close); getRootPane().getActionMap().put("changeTabForword", changeTabForword); getRootPane().getActionMap().put("changeTabBackword", changeTabBackword); InputMap imap = this.getRootPane() .getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); imap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "close"); imap.put(KeyStroke.getKeyStroke (KeyEvent.VK_RIGHT, KeyEvent.ALT_DOWN_MASK), "changeTabForword"); imap.put(KeyStroke.getKeyStroke (KeyEvent.VK_LEFT, KeyEvent.ALT_DOWN_MASK), "changeTabBackword"); }
27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/33b02010ab6a76c6693ab372a9bae3a4f1673d90/ChatWindow.java/buggy/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4237, 653, 6100, 1435, 95, 7734, 4115, 1803, 1746, 273, 394, 4115, 1803, 1435, 3639, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 309, 12, 10880, 5661...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4237, 653, 6100, 1435, 95, 7734, 4115, 1803, 1746, 273, 394, 4115, 1803, 1435, 3639, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 309, 12, 10880, 5661...
ei[j] = eCache.getEmissions(symList);
ei[j] = eCache.getEmissions(symList, !((i < 1 && j < 1) || (i > seq1.length() && j <= seq2.length())) );
public AbstractMatrixPairDPCursor( SymbolList seq1, SymbolList seq2, int start1, int start2, int depth1, int depth2, PairDPMatrix matrix, EmissionCache eCache ) throws IllegalSymbolException { this.numStates = matrix.states().length; this.zeroCol = new double[this.numStates]; // don't touch this, please... for (int i = 0; i < zeroCol.length; ++i) { this.zeroCol[i] = Double.NaN; } this.emptyBP = new BackPointer[numStates]; this.sMatrix = matrix.getScoreArray(); this.pos = new int[2]; this.pos[0] = start1; this.pos[1] = start2; this.seqs = new SymbolList[2]; this.seqs[0] = seq1; this.seqs[1] = seq2; this.depth = new int[2]; this.depth[0] = depth1; this.depth[1] = depth2; this.bPointers = new BackPointer[seq1.length()+2][seq2.length()+2][numStates]; this.emissions = new double[seq1.length()+2][seq2.length()+2][]; this.eCache = eCache; Symbol [] symArray = new Symbol[2]; List symList = Arrays.asList(symArray); for(int i = 0; i <= seq1.length()+1; i++) { symArray[0] = (i < 1 || i > seq1.length()) ? AlphabetManager.getGapSymbol() : seq1.symbolAt(i); double [][] ei = emissions[i]; for(int j = 0; j <= seq2.length()+1; j++) { symArray[1] = (j < 1 || j > seq2.length()) ? AlphabetManager.getGapSymbol() : seq2.symbolAt(j); ei[j] = eCache.getEmissions(symList); } } }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/452deba1e5bc60bbe48dc11cf659f8168a0875ff/AbstractMatrixPairDPCursor.java/clean/src/org/biojava/bio/dp/twohead/AbstractMatrixPairDPCursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4115, 4635, 4154, 8640, 6688, 12, 1377, 8565, 682, 3833, 21, 16, 1377, 8565, 682, 3833, 22, 16, 1377, 509, 787, 21, 16, 1377, 509, 787, 22, 16, 1377, 509, 3598, 21, 16, 1377, 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, 4115, 4635, 4154, 8640, 6688, 12, 1377, 8565, 682, 3833, 21, 16, 1377, 8565, 682, 3833, 22, 16, 1377, 509, 787, 21, 16, 1377, 509, 787, 22, 16, 1377, 509, 3598, 21, 16, 1377, 50...
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { // Deallocate all resources in the stream associated // with a previous request. // This will let the driver reuse byte arrays that has already // been allocated instead of allocating new ones in order // to gain performance improvements. pg_stream.deallocate(); Field[] fields = null; Vector tuples = new Vector(); byte[] buf = null; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; int insert_oid = 0; SQLException final_error = null; // Commented out as the backend can now handle queries // larger than 8K. Peter June 6 2000 //if (sql.length() > 8192) //throw new PSQLException("postgresql.con.toolong",sql); if (getEncoding() == null) buf = sql.getBytes(); else { try { buf = sql.getBytes(getEncoding()); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.con.encoding", unse); } } try { pg_stream.SendChar('Q'); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(receive_sbuf,8192,getEncoding()); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(receive_sbuf,8192,getEncoding()); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE") || recv_status.startsWith("DELETE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } if(recv_status.startsWith("INSERT")) { try { insert_oid = Integer.parseInt(recv_status.substring(1+recv_status.indexOf(' '),recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(receive_sbuf,4096,getEncoding()); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(receive_sbuf,4096,getEncoding())); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(receive_sbuf,8192,getEncoding()); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; case 'Z': // backend ready for query, ignore for now :-) break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count, insert_oid); } }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/45b5d792afa60ae24d57cdceaaec0e03cf6abb2a/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, ...
DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex);
DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex);
private void updateSnmpInfo(Connection dbc, DbNodeEntry node, DbIpInterfaceEntry dbIpIfEntry, IfSnmpCollector snmpc) throws SQLException { Category log = ThreadCategory.getInstance(getClass()); InetAddress ifaddr = dbIpIfEntry.getIfAddress(); /* * If SNMP info is available update the snmpInterface table entry with * anything that has changed. */ int ifIndex = dbIpIfEntry.getIfIndex(); if (snmpc != null && !snmpc.failed() && ifIndex != -1) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ifIndex=" + +node.getNodeId() + "/" + ifIndex); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // Find the ifTable entry for this interface IfTable ift = snmpc.getIfTable(); Iterator ifiter = ift.getEntries().iterator(); IfTableEntry ifte = null; while (ifiter.hasNext()) { ifte = (IfTableEntry) ifiter.next(); // index Integer sint = ifte.getIfIndex(); if (sint != null) { if (ifIndex == sint.intValue()) { break; } else { ifte = null; } } } // Make sure we have a valid IfTableEntry object if (ifte == null && ifIndex == CapsdConfigFactory.LAME_SNMP_HOST_IFINDEX) { currSnmpIfEntry.setIfAddress(snmpc.getCollectorTargetAddress()); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: interface " + snmpc.getCollectorTargetAddress().getHostAddress() + " appears to be a lame SNMP host. Setting ipaddr only."); } } else if (ifte != null) { /* * IP address and netmask * * WARNING: IfSnmpCollector.getIfAddressAndMask() ONLY returns * the FIRST IP address and mask for a given interface as * specified in the ipAddrTable. */ InetAddress[] aaddrs = snmpc.getIfAddressAndMask(ifIndex); // Address array should NEVER be null but just in case.. if (aaddrs == null) { log.warn("updateSnmpInfo: unable to retrieve address and netmask for nodeId/ifIndex: " + node.getNodeId() + "/" + ifIndex); aaddrs = new InetAddress[2]; // Set interface address to current interface aaddrs[0] = ifaddr; // Set netmask to NULL aaddrs[1] = null; } // IP address currSnmpIfEntry.setIfAddress(aaddrs[0]); // netmask if (aaddrs[1] != null) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: interface " + aaddrs[0].getHostAddress() + " has netmask: " + aaddrs[1].getHostAddress()); } currSnmpIfEntry.setNetmask(aaddrs[1]); } // type Integer sint = ifte.getIfType(); currSnmpIfEntry.setType(sint.intValue()); // description String str = ifte.getIfDescr(); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: " + ifaddr + " has ifDescription: " + str); } if (str != null && str.length() > 0) { currSnmpIfEntry.setDescription(str); } String physAddr = ifte.getPhysAddr(); if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: " + ifaddr + " has phys address: -" + physAddr + "-"); } if (physAddr != null && physAddr.length() == 12) { currSnmpIfEntry.setPhysicalAddress(physAddr); } // speed Long uint = ifte.getIfSpeed(); //set the default speed to 10MB if not retrievable. currSnmpIfEntry.setSpeed((uint == null ? 10000000L : uint.longValue())); // admin status sint = ifte.getIfAdminStatus(); currSnmpIfEntry.setAdminStatus(sint.intValue()); // oper status sint = ifte.getIfOperStatus(); currSnmpIfEntry.setOperationalStatus(sint.intValue()); // name (from interface extensions table) String ifName = snmpc.getIfName(ifIndex); if (ifName != null && ifName.length() > 0) { currSnmpIfEntry.setName(ifName); } // alias (from interface extensions table) String ifAlias = snmpc.getIfAlias(ifIndex); if (ifAlias != null) { currSnmpIfEntry.setAlias(ifAlias); } else { currSnmpIfEntry.setAlias(""); } } // end if valid ifTable entry // Update any fields which have changed // dbSnmpIfEntry.updateIfIndex(currSnmpIfEntry.getIfIndex()); dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); dbSnmpIfEntry.updateNetmask(currSnmpIfEntry.getNetmask()); dbSnmpIfEntry.updatePhysicalAddress(currSnmpIfEntry.getPhysicalAddress()); dbSnmpIfEntry.updateDescription(currSnmpIfEntry.getDescription()); dbSnmpIfEntry.updateName(currSnmpIfEntry.getName()); dbSnmpIfEntry.updateType(currSnmpIfEntry.getType()); dbSnmpIfEntry.updateSpeed(currSnmpIfEntry.getSpeed()); dbSnmpIfEntry.updateAdminStatus(currSnmpIfEntry.getAdminStatus()); dbSnmpIfEntry.updateOperationalStatus(currSnmpIfEntry.getOperationalStatus()); dbSnmpIfEntry.updateAlias(currSnmpIfEntry.getAlias()); /* * If this is a new interface or if any of the following * key fields have changed set the m_snmpIfTableChangedFlag * variable to TRUE. This will potentially trigger an event * which will cause the poller to reinitialize the primary * SNMP interface for the node. */ // dbSnmpIfEntry.hasIfIndexChanged() || if (!m_snmpIfTableChangedFlag && newSnmpIfTableEntry || dbSnmpIfEntry.hasIfAddressChanged() || dbSnmpIfEntry.hasTypeChanged() || dbSnmpIfEntry.hasNameChanged() || dbSnmpIfEntry.hasDescriptionChanged() || dbSnmpIfEntry.hasPhysicalAddressChanged() || dbSnmpIfEntry.hasAliasChanged()) { m_snmpIfTableChangedFlag = true; } // Update the database dbSnmpIfEntry.store(dbc); // end if complete snmp info available } else if (snmpc != null && snmpc.hasIpAddrTable() && ifIndex != -1) { if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ifIndex/ipAddr=" + +node.getNodeId() + "/" + ifIndex + "/" + ifaddr + " based on ipAddrTable only - No ifTable available"); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // IP address currSnmpIfEntry.setIfAddress(ifaddr); // Update any fields which have changed dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); // Update the database dbSnmpIfEntry.store(dbc); // end if partial snmp info available } else if (snmpc != null) { // allow for lame snmp hosts with no ipAddrTable ifIndex = CapsdConfigFactory.LAME_SNMP_HOST_IFINDEX; if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: updating snmp interface for nodeId/ipAddr=" + +node.getNodeId() + "/" + ifaddr + " based on ip address only - No ipAddrTable available"); } // Create and load SNMP Interface entry from the database boolean newSnmpIfTableEntry = false; DbSnmpInterfaceEntry dbSnmpIfEntry = DbSnmpInterfaceEntry.get(dbc, node.getNodeId(), ifIndex); if (dbSnmpIfEntry == null) { /* * SNMP Interface not found with this nodeId, create new * interface */ if (log.isDebugEnabled()) { log.debug("updateSnmpInfo: SNMP interface index " + ifIndex + " not in database, creating new interface object."); } dbSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); newSnmpIfTableEntry = true; } /* * Create SNMP interface entry representing latest information * retrieved for the interface via the collector */ DbSnmpInterfaceEntry currSnmpIfEntry = DbSnmpInterfaceEntry.create(node.getNodeId(), ifIndex); // IP address currSnmpIfEntry.setIfAddress(ifaddr); // Update any fields which have changed dbSnmpIfEntry.updateIfAddress(currSnmpIfEntry.getIfAddress()); // Update the database dbSnmpIfEntry.store(dbc); } }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/2d7d01a6c8884e6784a932ca6408a4304fe577cf/RescanProcessor.java/buggy/opennms-services/src/main/java/org/opennms/netmgt/capsd/RescanProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 10461, 1291, 966, 12, 1952, 9881, 16, 8408, 907, 1622, 756, 16, 8408, 5273, 1358, 1622, 1319, 5273, 2047, 1622, 16, 971, 10461, 1291, 7134, 15366, 71, 13, 1216, 6483, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 10461, 1291, 966, 12, 1952, 9881, 16, 8408, 907, 1622, 756, 16, 8408, 5273, 1358, 1622, 1319, 5273, 2047, 1622, 16, 971, 10461, 1291, 7134, 15366, 71, 13, 1216, 6483, 288...
throw new InvalidConfigValueException("Negative values not supported");
throw new InvalidConfigValueException("Negative or zero values not supported");
public void set(long val) throws InvalidConfigValueException { if(val < 0) throw new InvalidConfigValueException("Negative values not supported"); envMutableConfig.setCacheSize(val); }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/467b47f618151c0e29727408b4581a3e6334c383/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 444, 12, 5748, 1244, 13, 1216, 1962, 809, 9738, 288, 9506, 202, 430, 12, 1125, 411, 374, 13, 6862, 202, 12849, 394, 1962, 809, 9738, 2932, 14959, 924, 486, 3260, 8863, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 444, 12, 5748, 1244, 13, 1216, 1962, 809, 9738, 288, 9506, 202, 430, 12, 1125, 411, 374, 13, 6862, 202, 12849, 394, 1962, 809, 9738, 2932, 14959, 924, 486, 3260, 8863, 9...
if ((index < input.length) && (TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1;
if (index >= input.length) { return state.noMoreInput(); } if (!(TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) return -1; index++;
int matchRENodes(MatchState state, RENode ren, RENode stop, int index) { int num; char[] input = state.input; while ((ren != stop) && (ren != null)) { switch (ren.op) { case REOP_EMPTY: break; case REOP_ALT: { if (ren.next.op != REOP_ALT) { ren = (RENode)ren.kid; continue; } else { num = state.parenCount; int kidMatch = matchRENodes(state, (RENode)ren.kid, stop, index); if (kidMatch != -1) return kidMatch; for (int i = num; i < state.parenCount; i++) state.parens[i].length = 0; state.parenCount = num; } } break; case REOP_QUANT: { int lastKid = -1; for (num = 0; num < ren.min; num++) { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; else { lastKid = index; index = kidMatch; } } if (num == ren.max) // Have matched the exact count required, // need to match the rest of the regexp. break; if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, num, index, lastKid); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, num, ren.max, index); if (index == -1) return -1; } } break; case REOP_PLUS: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; if ((ren.flags & RENode.MINIMAL) == 0) { index = matchGreedyKid(state, ren, stop, 1, kidMatch, index); if (index == -1) index = kidMatch; } else index = matchNonGreedyKid(state, ren, 1, 0, kidMatch); if (index == -1) return -1; } break; case REOP_STAR: if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, 0, index, -1); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, 0, 0, index); if (index == -1) return -1; } break; case REOP_OPT: { int saveNum = state.parenCount; if (((ren.flags & RENode.MINIMAL) != 0)) { int restMatch = matchRENodes(state, ren.next, stop, index); if (restMatch != -1) return restMatch; } int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) { state.parenCount = saveNum; break; } else { int restMatch = matchRENodes(state, ren.next, stop, kidMatch); if (restMatch == -1) { // need to undo the result of running the kid state.parenCount = saveNum; break; } else return restMatch; } } case REOP_LPARENNON: ren = (RENode)ren.kid; continue; case REOP_RPARENNON: break; case REOP_LPAREN: { num = ren.num; ren = (RENode)ren.kid; SubString parsub = state.parens[num]; if (parsub == null) { parsub = state.parens[num] = new SubString(); parsub.charArray = input; } parsub.index = index; parsub.length = 0; if (num >= state.parenCount) state.parenCount = num + 1; continue; } case REOP_RPAREN: { num = ren.num; SubString parsub = state.parens[num]; if (parsub == null) throw new RuntimeException("Paren problem"); parsub.length = index - parsub.index; break; } case REOP_ASSERT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; break; } case REOP_ASSERT_NOT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch != -1) return -1; break; } case REOP_BACKREF: { num = ren.num; if (num >= state.parens.length) { Context.reportError( ScriptRuntime.getMessage( "msg.bad.backref", null)); return -1; } SubString parsub = state.parens[num]; if (parsub == null) parsub = state.parens[num] = new SubString(); int length = parsub.length; if ((input.length - index) < length) return -1; else { for (int i = 0; i < length; i++, index++) { if (!matchChar(state.flags, input[index], parsub.charArray[parsub.index + i])) return -1; } } } break; case REOP_CCLASS: if (index < input.length) { if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) // a ^ class index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } } else return -1; break; case REOP_DOT: if ((index < input.length) && (input[index] != '\n')) index++; else return -1; break; case REOP_DOTSTARMIN: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) return cp3; if (input[cp2] == '\n') return -1; } return -1; } case REOP_DOTSTAR: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) if (input[cp2] == '\n') break; while (cp2 >= index) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) { index = cp2; break; } cp2--; } break; } case REOP_WBDRY: if (((index == 0) || !isWord(input[index-1])) ^ ((index >= input.length) || !isWord(input[index]))) ; // leave index else return -1; break; case REOP_WNONBDRY: if (((index == 0) || !isWord(input[index-1])) ^ ((index < input.length) && isWord(input[index]))) ; // leave index else return -1; break; case REOP_EOLONLY: case REOP_EOL: { if (index == input.length) ; // leave index; else { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if ((reImpl.multiline) || ((state.flags & MULTILINE) != 0)) if (input[index] == '\n') ;// leave index else return -1; else return -1; } } break; case REOP_BOL: { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if (index != 0) { if ((index < input.length) && (reImpl.multiline || ((state.flags & MULTILINE) != 0))) { if (input[index - 1] == '\n') { break; } } return -1; } // leave index } break; case REOP_DIGIT: if ((index < input.length) && isDigit(input[index])) index++; else return -1; break; case REOP_NONDIGIT: if ((index < input.length) && !isDigit(input[index])) index++; else return -1; break; case REOP_ALNUM: if ((index < input.length) && isWord(input[index])) index++; else return -1; break; case REOP_NONALNUM: if ((index < input.length) && !isWord(input[index])) index++; else return -1; break; case REOP_SPACE: if ((index < input.length) && (TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1; break; case REOP_NONSPACE: if ((index < input.length) && !(TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1; break; case REOP_FLAT1: if ((index < input.length) && matchChar(state.flags, ren.chr, input[index])) index++; else return -1; break; case REOP_FLAT: { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); int start = ((Integer)ren.kid).intValue(); int length = ren.kid2 - start; if ((input.length - index) < length) return -1; else { for (int i = 0; i < length; i++, index++) { if (!matchChar(state.flags, input[index], source[start + i])) return -1; } } } break; case REOP_JUMP: break; case REOP_END: break; default : throw new RuntimeException("Unsupported by node matcher"); } ren = ren.next; } return index; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/4aee7d25d756bce350cfec71216aff6e8c8bbc4b/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 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, 509, 845, 862, 3205, 12, 2060, 1119, 919, 16, 2438, 907, 1654, 16, 2438, 907, 2132, 16, 509, 770, 13, 288, 3639, 509, 818, 31, 3639, 1149, 8526, 810, 273, 919, 18, 2630, 31, 3639, 132...
public void write(Database database, Collection tables, boolean showRelationshipsGraph, boolean showOrphansGraph, LineWriter html) throws IOException, SQLException {
public void write(Database database, Collection tables, boolean showRelationshipsGraph, boolean showOrphansGraph, LineWriter html) throws IOException {
public void write(Database database, Collection tables, boolean showRelationshipsGraph, boolean showOrphansGraph, LineWriter html) throws IOException, SQLException { Set columns = new TreeSet(new Comparator() { public int compare(Object object1, Object object2) { TableColumn column1 = (TableColumn)object1; TableColumn column2 = (TableColumn)object2; int rc = column1.getName().compareTo(column2.getName()); if (rc == 0) rc = column1.getTable().getName().compareTo(column2.getTable().getName()); return rc; } }); Set primaryColumns = new HashSet(); Set indexedColumns = new HashSet(); Iterator iter = tables.iterator(); while (iter.hasNext()) { Table table = (Table)iter.next(); columns.addAll(table.getColumns()); primaryColumns.addAll(table.getPrimaryColumns()); Iterator indexIter = table.getIndexes().iterator(); while (indexIter.hasNext()) { TableIndex index = (TableIndex)indexIter.next(); indexedColumns.addAll(index.getColumns()); } } writeHeader(database, columns.size(), showRelationshipsGraph, showOrphansGraph, html); HtmlTablePage formatter = HtmlTablePage.getInstance(); iter = columns.iterator(); while (iter.hasNext()) { TableColumn column = (TableColumn)iter.next(); formatter.writeColumn(column, column.getTable().getName(), primaryColumns, indexedColumns, false, html); } writeFooter(html); }
52841 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52841/25f91f86272e839fe9a942f20c20ce689e4322c5/HtmlColumnsPage.java/buggy/src/net/sourceforge/schemaspy/view/HtmlColumnsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 12, 4254, 2063, 16, 2200, 4606, 16, 1250, 2405, 17185, 4137, 16, 1250, 2405, 1162, 31574, 4137, 16, 5377, 2289, 1729, 13, 1216, 1860, 288, 3639, 1000, 2168, 273, 394, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12, 4254, 2063, 16, 2200, 4606, 16, 1250, 2405, 17185, 4137, 16, 1250, 2405, 1162, 31574, 4137, 16, 5377, 2289, 1729, 13, 1216, 1860, 288, 3639, 1000, 2168, 273, 394, 194...
int heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT);
protected GridData setButtonLayoutData(Button button) { GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); int heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT); int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); Point minSize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); data.widthHint = Math.max(widthHint, minSize.x); data.heightHint = Math.max(heightHint, minSize.y); button.setLayoutData(data); return data; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ff9766620c37e7b908d6ba9cf2c948d423981dd1/DialogPage.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 7145, 751, 444, 3616, 3744, 751, 12, 3616, 3568, 13, 288, 3639, 7145, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 29818, 1769, 9079, 509, 1835, 700...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7145, 751, 444, 3616, 3744, 751, 12, 3616, 3568, 13, 288, 3639, 7145, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 44, 20344, 67, 26439, 67, 29818, 1769, 9079, 509, 1835, 700...
return searchUsers; }
return searchUsers; }
public String getSearchUsers() { return searchUsers; }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/26f9ed9e0de9dc68dfc843d3ae3ab06d4827e7f9/AudienceTool.java/buggy/common/tool-lib/src/java/org/theospi/portfolio/security/tool/AudienceTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 15627, 6588, 1435, 288, 1377, 327, 1623, 6588, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 565, 1071, 514, 15627, 6588, 1435, 288, 1377, 327, 1623, 6588, 31, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
this.sourceType = sourceType;
public FormatNumberPage( Composite parent, int style, int sourceType ) { super( parent, style ); this.sourceType = sourceType; createContent( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatNumberPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4077, 1854, 1964, 12, 14728, 982, 16, 509, 2154, 16, 509, 26695, 262, 202, 95, 202, 202, 9565, 12, 982, 16, 2154, 11272, 202, 202, 2211, 18, 3168, 559, 273, 26695, 31, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4077, 1854, 1964, 12, 14728, 982, 16, 509, 2154, 16, 509, 26695, 262, 202, 95, 202, 202, 9565, 12, 982, 16, 2154, 11272, 202, 202, 2211, 18, 3168, 559, 273, 26695, 31, 202, ...
} catch (NoSuchMethodError e) {
} catch (Throwable e) {
public SlideshowFrame() { setUndecorated(true); setResizable(false); initComponents(); listener = this; ignoreIMFailure = true; try { // Java 1.4 only GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); if (! gd.isFullScreenSupported()) { throw new NoSuchMethodError(); } Log.log(Log.LEVEL_TRACE, MODULE, "Switching to full-screen mode"); gd.setFullScreenWindow(this); //DialogUtil.maxSize(this); //setBounds(600, 100, 500, 500); //show(); } catch (NoSuchMethodError e) { Log.log(Log.LEVEL_TRACE, MODULE, "No full-screen mode: using maximized window"); DialogUtil.maxSize(this); show(); } // todo: this is a hack to prevent painting problems (the status bar paints // on top of the slide show) Frame mainFrame = GalleryRemote._().getMainFrame(); if (mainFrame != null) { mainFrame.setVisible(false); } }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/207a2448a6ad20b65556bc4ba04ea71fed738602/SlideshowFrame.java/clean/com/gallery/GalleryRemote/SlideshowFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9708, 4369, 13606, 3219, 1435, 288, 202, 202, 542, 984, 11880, 690, 12, 3767, 1769, 202, 202, 542, 607, 6934, 12, 5743, 1769, 202, 202, 2738, 7171, 5621, 202, 202, 12757, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9708, 4369, 13606, 3219, 1435, 288, 202, 202, 542, 984, 11880, 690, 12, 3767, 1769, 202, 202, 542, 607, 6934, 12, 5743, 1769, 202, 202, 2738, 7171, 5621, 202, 202, 12757, 273, ...
if(isOneShot) { weapon.setFired(true); }
private WeaponResult addHeatUseAmmoFor(WeaponAttackAction waa, WeaponResult wr) { final Entity ae = game.getEntity(waa.getEntityId()); final Mounted weapon = ae.getEquipment(waa.getWeaponId()); final WeaponType wtype = (WeaponType)weapon.getType(); // 2003-01-02 BattleArmor MG and Small Lasers have unlimited ammo. final boolean usesAmmo = wtype.getAmmoType() != AmmoType.T_NA && wtype.getAmmoType() != AmmoType.T_BA_MG && wtype.getAmmoType() != AmmoType.T_BA_SMALL_LASER && !wtype.hasFlag(WeaponType.F_INFANTRY); Mounted ammo = weapon.getLinked(); // how many shots are we firing? int nShots = weapon.howManyShots(); // do we need to revert to single shot? if (usesAmmo && nShots > 1) { int nAvail = ae.getTotalAmmoOfType((AmmoType)ammo.getType()); if (nAvail < nShots) { wr.revertsToSingleShot = true; nShots = 1; } } // use up ammo if (usesAmmo) { for (int i = 0; i < nShots; i++) { if (ammo.getShotsLeft() <= 0) { ae.loadWeapon(weapon); ammo = weapon.getLinked(); } ammo.setShotsLeft(ammo.getShotsLeft() - 1); } } // build up some heat ae.heatBuildup += (wtype.getHeat() * nShots); return wr; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/359f7976ea7b886c35ce9187dadb639fb01ebfca/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 12, 291, 3335, 1555, 352, 13, 288, 732, 28629, 18, 542, 42, 2921, 12, 3767, 1769, 289, 282, 309, 12, 291, 3335, 1555, 352, 13, 288, 732, 28629, 18, 542, 42, 2921, 12, 3767, 1769, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 12, 291, 3335, 1555, 352, 13, 288, 732, 28629, 18, 542, 42, 2921, 12, 3767, 1769, 289, 282, 309, 12, 291, 3335, 1555, 352, 13, 288, 732, 28629, 18, 542, 42, 2921, 12, 3767, 1769, 289,...
dialogJob.schedule(3000);
dialogJob.schedule(PlatformUI.getWorkbench().getProgressService().getLongOperationTime());
public void setBlocked(IStatus reason) { //The UI operation has been blocked. Open a progress dialog //to report the situation and give the user an opportunity to cancel. dialog = new BlockedJobsDialog(null, EventLoopProgressMonitor.this,reason); dialog.setBlockOnOpen(false); WorkbenchJob dialogJob = new WorkbenchJob(WorkbenchMessages.getString("EventLoopProgressMonitor.OpenDialogJobName")){ //$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(dialog == null) return Status.CANCEL_STATUS; dialog.open(); return Status.OK_STATUS; } }; //Wait 3 second to prevent too many dialogs. dialogJob.setSystem(true); dialogJob.schedule(3000); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d0485e82d5ab333aec3468c11cda5ec0f9b8db4c/EventLoopProgressMonitor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/EventLoopProgressMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 23722, 12, 45, 1482, 3971, 13, 288, 9506, 202, 759, 1986, 6484, 1674, 711, 2118, 14547, 18, 225, 3502, 279, 4007, 6176, 202, 202, 759, 869, 2605, 326, 20886, 471, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 23722, 12, 45, 1482, 3971, 13, 288, 9506, 202, 759, 1986, 6484, 1674, 711, 2118, 14547, 18, 225, 3502, 279, 4007, 6176, 202, 202, 759, 869, 2605, 326, 20886, 471, 84...
setPreferenceStore(MylarUiPlugin.getDefault().getPreferenceStore());
setPreferenceStore(ContextUiPlugin.getDefault().getPreferenceStore());
public MylarPreferencePage() { super(); setPreferenceStore(MylarUiPlugin.getDefault().getPreferenceStore()); setTitle("Mylar"); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/MylarPreferencePage.java/clean/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/preferences/MylarPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8005, 7901, 9624, 1964, 1435, 288, 202, 202, 9565, 5621, 202, 202, 542, 9624, 2257, 12, 12062, 7901, 13943, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 10663, 202, 202, 542, 424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8005, 7901, 9624, 1964, 1435, 288, 202, 202, 9565, 5621, 202, 202, 542, 9624, 2257, 12, 12062, 7901, 13943, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 10663, 202, 202, 542, 424...
editorsPane.repaint();
IEditor currentEditor = editorsPane.getCurrentEditor(); if (currentEditor != null) { currentEditor.repaint(); }
public void run() { MPSProjects projects = ApplicationComponents.getInstance().getComponentSafe(MPSProjects.class); for (MPSProject project : projects.getProjects()) { if (project.getComponent(IDEProjectFrame.class) == null) continue; EditorsPane editorsPane = project.getComponentSafe(AbstractProjectFrame.class).getEditorsPane(); boolean isUpdated = false; for (IEditor editor : editorsPane.getEditors()) { if (editor.getCurrentEditorComponent() != null && updateEditor(editor.getCurrentEditorComponent())) { isUpdated = true; } } if (isUpdated) { editorsPane.repaint(); } } }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/c6dd9d42285a2dfbaaba363f105740c179e83623/GenericEditorUpdater.java/clean/source/jetbrains/mps/nodeEditor/GenericEditorUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 11132, 15298, 10137, 273, 4257, 7171, 18, 588, 1442, 7675, 588, 1841, 9890, 12, 4566, 55, 15298, 18, 1106, 1769, 5411, 364, 261, 4566, 55, 4109, 1984, 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, 6647, 1071, 918, 1086, 1435, 288, 5411, 11132, 15298, 10137, 273, 4257, 7171, 18, 588, 1442, 7675, 588, 1841, 9890, 12, 4566, 55, 15298, 18, 1106, 1769, 5411, 364, 261, 4566, 55, 4109, 1984, 2...
protected void firePostEvent(int type, int index, Object object, int repeat, Object result) {
protected void firePostEvent(int type, int index, Object object, int repeat, Object previous) {
protected void firePostEvent(int type, int index, Object object, int repeat, Object result) { if ((postMask & type) > 0) { StandardModificationEvent event = null; synchronized (this) { for (int i = 0; i < postHolder.length; i++) { PostHolder holder = postHolder[i]; if ((holder.mask & type) > 0) { if (event == null) { event = new StandardModificationEvent( getCollection(), this, type, preSize, index, object, repeat, result); } holder.listener.modificationOccurred(event); } } } } }
55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/9547b0caa64373a6494995cfc7eff5e2ffe613ec/StandardModificationHandler.java/clean/src/java/org/apache/commons/collections/observed/standard/StandardModificationHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4452, 3349, 1133, 12, 474, 618, 16, 509, 770, 16, 1033, 733, 16, 509, 7666, 16, 1033, 2416, 13, 288, 3639, 309, 14015, 2767, 5796, 473, 618, 13, 405, 374, 13, 288, 5411, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 3349, 1133, 12, 474, 618, 16, 509, 770, 16, 1033, 733, 16, 509, 7666, 16, 1033, 2416, 13, 288, 3639, 309, 14015, 2767, 5796, 473, 618, 13, 405, 374, 13, 288, 5411, 82...
data.doGlobal(funObj, count);
data.doGlobal(cx, funObj, count, reImpl);
private static Object matchOrReplace(Context cx, Scriptable thisObj, Object[] args, Function funObj, GlobData data, boolean forceFlat) throws JavaScriptException { NativeRegExp re; String str = ScriptRuntime.toString(thisObj); data.str = str; RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); Scriptable scope = ScriptableObject.getTopLevelScope(funObj); if (args.length == 0) re = new NativeRegExp(cx, scope, "", "", false); else if (args[0] instanceof NativeRegExp) { re = (NativeRegExp) args[0]; } else { String src = ScriptRuntime.toString(args[0]); String opt; if (data.optarg < args.length) { args[0] = src; opt = ScriptRuntime.toString(args[data.optarg]); } else { opt = null; } re = new NativeRegExp(cx, scope, src, opt, forceFlat); } data.regexp = re; data.global = (re.getFlags() & NativeRegExp.GLOB) != 0; int[] indexp = { 0 }; Object result = null; if (data.mode == GlobData.GLOB_SEARCH) { result = re.executeRegExp(funObj, str, indexp, NativeRegExp.TEST); if (result != null && result.equals(Boolean.TRUE)) result = new Integer(reImpl.leftContext.length); else result = new Integer(-1); } else if (data.global) { re.setLastIndex(0); for (int count = 0; indexp[0] <= str.length(); count++) { result = re.executeRegExp(funObj, str, indexp, NativeRegExp.TEST); if (result == null || !result.equals(Boolean.TRUE)) break; data.doGlobal(funObj, count); if (reImpl.lastMatch.length == 0) { if (indexp[0] == str.length()) break; indexp[0]++; } } } else { result = re.executeRegExp(funObj, str, indexp, ((data.mode == GlobData.GLOB_REPLACE) ? NativeRegExp.TEST : NativeRegExp.MATCH)); } return result; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/8b34980fb3adc3beae5bcea5913d426dc2e366c8/RegExpImpl.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 845, 1162, 5729, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1033, 8526, 833, 16, 4284, 9831, 2675, 16, 29159, 18901, 751, 501, 16, 1250, 2944, 16384, 13, 3639, 1216, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 845, 1162, 5729, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1033, 8526, 833, 16, 4284, 9831, 2675, 16, 29159, 18901, 751, 501, 16, 1250, 2944, 16384, 13, 3639, 1216, 11...
HttpServletRequest req, String paramName, Company company) {
HttpServletRequest req, String paramName, Company company) throws PortalException, SystemException {
public static String getLogin( HttpServletRequest req, String paramName, Company company) { String login = req.getParameter(paramName); if ((login == null) || (login.equals(StringPool.NULL))) { login = GetterUtil.getString( CookieUtil.get(req.getCookies(), CookieKeys.LOGIN)); if (Validator.isNull(login) && company.getAuthType().equals(Company.AUTH_TYPE_EA)) { login = "@" + company.getMx(); } } login = XSSUtil.strip(login); return login; }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/LoginAction.java/clean/portal-ejb/src/com/liferay/portal/action/LoginAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 25128, 12, 202, 202, 2940, 18572, 1111, 16, 514, 11466, 16, 26782, 9395, 13, 288, 202, 202, 780, 3925, 273, 1111, 18, 588, 1662, 12, 891, 461, 1769, 202, 202, 430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 25128, 12, 202, 202, 2940, 18572, 1111, 16, 514, 11466, 16, 26782, 9395, 13, 288, 202, 202, 780, 3925, 273, 1111, 18, 588, 1662, 12, 891, 461, 1769, 202, 202, 430, ...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setDouble(int parameterIndex, double x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDouble", parameterIndex, x); } final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_GENERIC_SCALAR.checkType(paramType) ){ PossibleTypes.throw22005Exception(agent_.logWriter_, java.sql.Types.DOUBLE, paramType); } parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.DOUBLE; setInput(parameterIndex, new Double(x)); } } catch ( SqlException se ) { throw se.getSQLException(); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/960054b086ad356e09ae40c1f081cbda94c97654/PreparedStatement.java/clean/java/client/org/apache/derby/client/am/PreparedStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5265, 12, 474, 25412, 16, 1645, 619, 13, 1216, 6483, 288, 3639, 775, 3639, 288, 5411, 3852, 261, 4071, 67, 13, 288, 7734, 309, 261, 5629, 27799, 11167, 1526, 10756, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5265, 12, 474, 25412, 16, 1645, 619, 13, 1216, 6483, 288, 3639, 775, 3639, 288, 5411, 3852, 261, 4071, 67, 13, 288, 7734, 309, 261, 5629, 27799, 11167, 1526, 10756, 288, ...
if (lu.getLexicalUnitType() == LexicalUnit.SAC_URI)
if ( lu.getLexicalUnitType( ) == LexicalUnit.SAC_URI )
public Value createValue(LexicalUnit lu, CSSEngine engine) throws DOMException { if (lu.getLexicalUnitType() == LexicalUnit.SAC_URI) { String uri = resolveURI(engine.getCSSBaseURI(), lu.getStringValue()); return new URIValue(lu.getStringValue(), uri); } return super.createValue(lu, engine); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/51eabed6b91e80e26598b4527cc58baa3a4fcb09/URIManager.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/URIManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1445, 752, 620, 12, 14756, 1706, 2802, 20072, 16, 6765, 4410, 4073, 13, 1082, 202, 15069, 4703, 503, 288, 202, 202, 430, 261, 28832, 18, 588, 14756, 1706, 2802, 559, 1435, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1445, 752, 620, 12, 14756, 1706, 2802, 20072, 16, 6765, 4410, 4073, 13, 1082, 202, 15069, 4703, 503, 288, 202, 202, 430, 261, 28832, 18, 588, 14756, 1706, 2802, 559, 1435, 422, ...
return (Node)u1; }
return (Node) u1; }
public Node getHeadNode() { return (Node)u1; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 336, 1414, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 336, 1414, 907, 1435, 288, 202, 202, 2463, 261, 907, 13, 89, 21, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* */ width = textElement.getWidth(); height = textElement.getHeight(); topPadding = textElement.getTopPadding(); leftPadding = textElement.getLeftPadding(); bottomPadding = textElement.getBottomPadding(); rightPadding = textElement.getRightPadding(); switch (textElement.getRotation()) { case JRTextElement.ROTATION_LEFT : { width = textElement.getHeight(); height = textElement.getWidth(); int tmpPadding = topPadding; topPadding = leftPadding; leftPadding = bottomPadding; bottomPadding = rightPadding; rightPadding = tmpPadding; break; } case JRTextElement.ROTATION_RIGHT : { width = textElement.getHeight(); height = textElement.getWidth(); int tmpPadding = topPadding; topPadding = rightPadding; rightPadding = bottomPadding; bottomPadding = leftPadding; leftPadding = tmpPadding; break; } case JRTextElement.ROTATION_NONE : default : { } } /* */ switch (textElement.getLineSpacing()) { case JRTextElement.LINE_SPACING_SINGLE : { lineSpacing = 1f; break; } case JRTextElement.LINE_SPACING_1_1_2 : { lineSpacing = 1.5f; break; } case JRTextElement.LINE_SPACING_DOUBLE : { lineSpacing = 2f; break; } default : { lineSpacing = 1f; } } maxFontSizeFinder = MaxFontSizeFinder.getInstance(textElement.isStyledText());
public TextMeasurer(JRTextElement textElement) { this.textElement = textElement; /* */ width = textElement.getWidth(); height = textElement.getHeight(); topPadding = textElement.getTopPadding(); leftPadding = textElement.getLeftPadding(); bottomPadding = textElement.getBottomPadding(); rightPadding = textElement.getRightPadding(); switch (textElement.getRotation()) { case JRTextElement.ROTATION_LEFT : { width = textElement.getHeight(); height = textElement.getWidth(); int tmpPadding = topPadding; topPadding = leftPadding; leftPadding = bottomPadding; bottomPadding = rightPadding; rightPadding = tmpPadding; break; } case JRTextElement.ROTATION_RIGHT : { width = textElement.getHeight(); height = textElement.getWidth(); int tmpPadding = topPadding; topPadding = rightPadding; rightPadding = bottomPadding; bottomPadding = leftPadding; leftPadding = tmpPadding; break; } case JRTextElement.ROTATION_NONE : default : { } } /* */ switch (textElement.getLineSpacing()) { case JRTextElement.LINE_SPACING_SINGLE : { lineSpacing = 1f; break; } case JRTextElement.LINE_SPACING_1_1_2 : { lineSpacing = 1.5f; break; } case JRTextElement.LINE_SPACING_DOUBLE : { lineSpacing = 2f; break; } default : { lineSpacing = 1f; } } maxFontSizeFinder = MaxFontSizeFinder.getInstance(textElement.isStyledText()); }
9031 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9031/be7a1ac46c4a53318813f1d45cf611a25bad9b27/TextMeasurer.java/buggy/jasperreports/src/net/sf/jasperreports/engine/fill/TextMeasurer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3867, 23177, 11278, 12, 46, 54, 1528, 1046, 977, 1046, 13, 202, 95, 202, 202, 2211, 18, 955, 1046, 273, 977, 1046, 31, 202, 202, 20308, 282, 1195, 202, 202, 2819, 273, 977, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3867, 23177, 11278, 12, 46, 54, 1528, 1046, 977, 1046, 13, 202, 95, 202, 202, 2211, 18, 955, 1046, 273, 977, 1046, 31, 202, 202, 20308, 282, 1195, 202, 202, 2819, 273, 977, ...
return getAttribute(pd, proxy);
Object ret = getAttribute(pd, proxy); if (ret instanceof Color) { if (!readDefaults) { System.out.println("readDefaults="+readDefaults+" app="+app); } } return ret;
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { PropertyDescriptor pd = (PropertyDescriptor) readMethod.get(method); if (pd != null) { return getAttribute(pd, proxy); } pd = (PropertyDescriptor) writeMethod.get(method); if (pd != null) { if (app == null) throw new IllegalStateException("writing not allowed"); String attrName = pd.getName(); Class attrType = pd.getPropertyType(); if (attrType.isPrimitive()) attrType = args[0].getClass(); Object arg = args[0] == null ? Appearance.INHERITED : args[0]; app.setAttribute(prefix + attrName, arg, attrType); return null; } pd = (PropertyDescriptor) subReader.get(method); if (pd != null) { return subEntity(pd, proxy); } if (app != null) { pd = (PropertyDescriptor) subCreator.get(method); if (pd != null) { String attrName = pd.getName(); Class type; if (args == null || args.length == 0) type = pd.getPropertyType(); else type = ShaderUtility.resolveEntity(pd.getPropertyType(), (String) args[0]); app.setAttribute(prefix + attrName, type, Class.class); return subEntity(pd, proxy); } } if (isHashCode(method)) { return new Integer(hashCode()); } if (isEquals(method)) { return Boolean.valueOf(args[0] == proxy); } if (isToString(method)) { return toString(proxy); } throw new IllegalStateException("unhandled method " + method+"app==null ? "+(app == null)); }
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/4816046c0cb67462ac0a897f248aabb743741761/AttributeEntityUtility.java/clean/src-core/de/jreality/scene/data/AttributeEntityUtility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 3639, 1216, 4206, 288, 1377, 26761, 4863, 273, 261, 1396, 3187, 13, 855, 1305, 18, 588, 12, 2039, 1769, 1377, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 4356, 12, 921, 2889, 16, 2985, 707, 16, 1033, 8526, 833, 13, 3639, 1216, 4206, 288, 1377, 26761, 4863, 273, 261, 1396, 3187, 13, 855, 1305, 18, 588, 12, 2039, 1769, 1377, 30...
bond_id = propertyValue;
public void setObjectProperty(String objectType, String propertyType, String propertyValue) { logger.debug("objectType: " + objectType); logger.debug("propType: " + propertyType); logger.debug("property: " + propertyValue); if (objectType.equals("Atom")) { if (propertyType.equals("type")) { currentAtom.setSymbol(propertyValue); } else if (propertyType.equals("x2")) { currentAtom.setX2D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("y2")) { currentAtom.setY2D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("x3")) { currentAtom.setX3D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("y3")) { currentAtom.setY3D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("z3")) { currentAtom.setZ3D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("formalCharge")) { currentAtom.setFormalCharge(new Integer(propertyValue).intValue()); } else if (propertyType.equals("charge")) { currentAtom.setCharge(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("hydrogenCount")) { currentAtom.setHydrogenCount(new Integer(propertyValue).intValue()); } else if (propertyType.equals("id")) { logger.debug("id" + propertyValue); // currentAtom.setID(propertyValue); atomEnumeration.put(propertyValue, new Integer(numberOfAtoms)); } } else if (objectType.equals("Bond")) { if (propertyType.equals("atom1")) { bond_a1 = new Integer(propertyValue).intValue(); } else if (propertyType.equals("atom2")) { bond_a2 = new Integer(propertyValue).intValue(); } else if (propertyType.equals("id")) { logger.debug("id" + propertyValue); bond_id = propertyValue; } else if (propertyType.equals("order")) { try { bond_order = Double.parseDouble(propertyValue); } catch (Exception e) { logger.error("Cannot convert to double: " + propertyValue); bond_order = 1.0; } } } else if (objectType.equals("Crystal")) { // set these variables if (currentMolecule instanceof Crystal) { Crystal current = (Crystal)currentMolecule; if (propertyType.equals("spacegroup")) { current.setSpaceGroup(propertyValue); } } else { logger.warn("Cannot add crystal cell parameters to a non " + "Crystal class!"); } } else if (objectType.equals("a-axis") || objectType.equals("b-axis") || objectType.equals("c-axis")) { // set these variables if (currentMolecule instanceof Crystal) { Crystal current = (Crystal)currentMolecule; if (propertyType.equals("x")) { crystal_axis_x = Double.parseDouble(propertyValue); } else if (propertyType.equals("y")) { crystal_axis_y = Double.parseDouble(propertyValue); } else if (propertyType.equals("z")) { crystal_axis_z = Double.parseDouble(propertyValue); } } else { logger.warn("Cannot add crystal cell parameters to a non " + "Crystal class!"); } } logger.debug("Object property set..."); };
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/09796a2db67119fc36f0c6ada6841cc196b78e74/ChemFileCDO.java/clean/src/org/openscience/cdk/io/ChemFileCDO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20530, 1396, 12, 780, 16400, 16, 514, 21076, 16, 21394, 514, 12337, 13, 288, 1377, 1194, 18, 4148, 2932, 1612, 559, 30, 315, 397, 16400, 1769, 1377, 1194, 18, 4148, 2932, 5986,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20530, 1396, 12, 780, 16400, 16, 514, 21076, 16, 21394, 514, 12337, 13, 288, 1377, 1194, 18, 4148, 2932, 1612, 559, 30, 315, 397, 16400, 1769, 1377, 1194, 18, 4148, 2932, 5986,...
public RFC822Mailbox(String name, String address) { this.name = name; this.address = address; }
public RFC822Mailbox(String personal, String address) { this.address = address; this.personal = personal; this.encodedPersonal = null; }
public RFC822Mailbox(String name, String address) { this.name = name; this.address = address; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b13c667b376deb4a8f2c235ffd847b57616d23c4/RFC822Mailbox.java/clean/grendel/sources/grendel/storage/addressparser/RFC822Mailbox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8372, 24532, 30239, 12, 780, 508, 16, 514, 1758, 13, 225, 288, 565, 333, 18, 529, 273, 508, 31, 565, 333, 18, 2867, 273, 1758, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 8372, 24532, 30239, 12, 780, 508, 16, 514, 1758, 13, 225, 288, 565, 333, 18, 529, 273, 508, 31, 565, 333, 18, 2867, 273, 1758, 31, 225, 289, 2, -100, -100, -100, -100, -100, -10...
extensionGlobals = new HashMap ();
extensionGlobals = new HashMap ();
public FesiEvaluator (Application app, RequestEvaluator reval) { this.app = app; this.reval = reval; wrappercache = new LruHashtable (100, .80f); prototypes = new Hashtable (); try { evaluator = new Evaluator(); evaluator.reval = this; global = evaluator.getGlobalObject(); for (int i=0; i<extensions.length; i++) evaluator.addExtension (extensions[i]); HopExtension hopx = new HopExtension (app); hopx.initializeExtension (this); MailExtension mailx = (MailExtension) evaluator.addExtension ("helma.scripting.fesi.extensions.MailExtension"); mailx.setProperties (app.getProperties ()); Database dbx = (Database) evaluator.addExtension ("helma.scripting.fesi.extensions.Database"); dbx.setApplication (app); // load extensions defined in server.properties: extensionGlobals = new HashMap (); Vector extVec = Server.getServer ().getExtensions (); for (int i=0; i<extVec.size(); i++ ) { HelmaExtension ext = (HelmaExtension)extVec.get(i); try { HashMap tmpGlobals = ext.initScripting (app,this); if (tmpGlobals!=null) extensionGlobals.putAll(tmpGlobals); } catch (ConfigurationException e) { app.logEvent ("Couldn't initialize extension " + ext.getName () + ": " + e.getMessage ()); } } // fake a cache member like the one found in ESNodes global.putHiddenProperty ("cache", new ESNode (new TransientNode ("cache"), this)); global.putHiddenProperty ("undefined", ESUndefined.theUndefined); ESBeanWrapper appnode = new ESBeanWrapper (new ApplicationBean (app), this); global.putHiddenProperty ("app", appnode); initialize(); } catch (Exception e) { System.err.println("Cannot initialize interpreter"); System.err.println("Error: " + e); e.printStackTrace (); throw new RuntimeException (e.getMessage ()); } }
46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/a1080de97862d4defad98247e4f451cb4efcbca8/FesiEvaluator.java/buggy/src/helma/scripting/fesi/FesiEvaluator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 478, 281, 77, 15876, 261, 3208, 595, 16, 1567, 15876, 283, 1125, 13, 288, 202, 2211, 18, 2910, 273, 595, 31, 202, 2211, 18, 266, 1125, 273, 283, 1125, 31, 202, 8376, 2493, 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, 1071, 478, 281, 77, 15876, 261, 3208, 595, 16, 1567, 15876, 283, 1125, 13, 288, 202, 2211, 18, 2910, 273, 595, 31, 202, 2211, 18, 266, 1125, 273, 283, 1125, 31, 202, 8376, 2493, 273, ...
logger.debug("Received bytes didn't match: byte " + i + " is " + received[i] + " but expected " + expectedStart[i]);
public synchronized byte[] receiveFromDongle(int bytesToRead, byte[] expectedStart, int timeout) { byte[] received = new byte[bytesToRead]; int alreadyRead = 0, readBytes, retries = 0; long startTime = System.currentTimeMillis(); // sanity check: the input stream must have been initialized if (fis == null) { log("Error: trying to read from serial port while it has not been opened yet correctly. This should not happen!"); return null; } try { // set the read timeout try { serialPort.enableReceiveTimeout(timeout * MAGIC_3); } catch (UnsupportedCommOperationException e) { // this can be ignored - it won't kill if timeout doesn't work. but it will just miss the protection against a "dead" dongle log("UnsupportedCommOperationException") ; e.printStackTrace(); } // if we got some expected start bytes, really wait for those to appear (at least until the timeout) if (expectedStart != null && expectedStart.length > 0) { int recv = fis.read(); while(recv != expectedStart[0] && recv != -1 && (System.currentTimeMillis() - startTime) < timeout) { recv = fis.read(); retries++; } if (recv == expectedStart[0]) { alreadyRead++; received[0] = (byte) recv; } else { //log("Could not find first expected byte, returning with timeout after receiving " + retries + " bytes"); // unable to find even our first expected byte, either due to timeout or to read error return null; } } do { readBytes = fis.read(received, alreadyRead, bytesToRead - alreadyRead); if (readBytes > 0) alreadyRead += readBytes; } while (alreadyRead < bytesToRead && readBytes != -1 && (System.currentTimeMillis() - startTime) < timeout); if (alreadyRead != bytesToRead) { //log("Didn't get enough bytes from dongle within timeout, wanted " + bytesToRead + " but got " + alreadyRead); return null; } // before returning, check the remaining expected bytes (if there are any) if (expectedStart != null) { // the first byte must already match, but checking is cheap so do it anyway for (int i=0; i<expectedStart.length; i++) if (received[i] != expectedStart[i]) { //log("Received bytes didn't match: byte " + i + " is " + received[i] + " but expected " + expectedStart[i]); // error in comparison return null; } } // finally: read all bytes that have been requested and compared ok to the expected start return received; } catch (IOException ex) { log("receiving from dongle failed due to " + ex); ex.printStackTrace(); return null; } }
14316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14316/6282e6faabb09150b53af9b09b1ea304a66deb6e/SerialConnector.java/buggy/src/java/RelateAuthentication/src/uk/ac/lancs/relate/SerialConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4901, 18, 4148, 2932, 8872, 1731, 10242, 1404, 845, 30, 1160, 315, 397, 277, 397, 315, 353, 315, 397, 5079, 63, 77, 65, 397, 315, 1496, 2665, 315, 397, 2665, 1685, 63, 77, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4901, 18, 4148, 2932, 8872, 1731, 10242, 1404, 845, 30, 1160, 315, 397, 277, 397, 315, 353, 315, 397, 5079, 63, 77, 65, 397, 315, 1496, 2665, 315, 397, 2665, 1685, 63, 77, 1...