rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
cache = new BlockCache(50, (float) 0.75); | setMode(RW); try{ api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); }catch(ApiNotFoundException e) { throw new FileSystemException("Device is not a partition!"); } | public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
byteIndex = 1024; api.read(byteIndex, data, 0, Superblock.SUPERBLOCK_LENGTH); byteIndex += Superblock.SUPERBLOCK_LENGTH; superblock = new Superblock(data); | api.read(1024, data, 0, Superblock.SUPERBLOCK_LENGTH); superblock = new Superblock(data, this); | public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
groupCount = (int) Math.ceil((double) superblock.getBlocksCount() / (double) superblock.getBlocksPerGroup()); | groupCount = (int)Math.ceil((double)superblock.getBlocksCount() / (double)superblock.getBlocksPerGroup()); | public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
for (int i = 0; i < groupCount; i++) { data = new byte[GroupDescriptor.GROUPDESCRIPTOR_LENGTH]; api.read(byteIndex + i * GroupDescriptor.GROUPDESCRIPTOR_LENGTH, data, 0, GroupDescriptor.GROUPDESCRIPTOR_LENGTH); groupDescriptors[i] = new GroupDescriptor(data); | for(int i=0; i<groupCount; i++) { data=getBlock(superblock.getFirstDataBlock()+1); groupDescriptors[i] = new GroupDescriptor(data, this, i); } /* for(int i=0; i<groupCount; i++) { groupDescriptors[i]=new GroupDescriptor(i, this); | public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
byteIndex += superblock.getBlockSize(); /* * * (int)superblock.getBlockSize()); FSBitmap blockBitmap = new FSBitmap(data); byteIndex += superblock.getBlockSize(); * * * inodeBitmap = new FSBitmap(data); byteIndex += superblock.getBlockSize(); * * */ | */ | public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
} log.debug("Ext2fs filesystem constructed sucessfully"); log.debug( " superblock: #blocks: " + superblock.getBlocksCount() + "\n" + " #blocks/group: " + superblock.getBlocksPerGroup() + "\n" + " #block groups: " + groupCount + "\n" + " block size: " + superblock.getBlockSize() + "\n" + " #inodes: " + s... | } log.info( "Ext2fs filesystem constructed sucessfully"); log.debug( " superblock: #blocks: "+superblock.getBlocksCount()+"\n"+ " #blocks/group: "+superblock.getBlocksPerGroup()+"\n"+ " #block groups: "+groupCount+"\n"+ " block size: "+superblock.getBlockSize()+"\n"+ " #inodes: "+superblock.getINodesCo... | public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
closed = true; throw new IOException("Yet unimplemented"); | public void close() throws IOException { flush(); closed = true; //XXX throw new IOException("Yet unimplemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java | |
throw new IOException("Yet unimplemented"); | log.info("Filesystem flushed"); | public void flush() throws IOException { //XXX throw new IOException("Yet unimplemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
public byte[] getBlock(long nr) throws IOException { | public byte[] getBlock(long nr) throws IOException{ | public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
Integer key = new Integer((int) nr); if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(nr * blockSize, data, 0, blockSize); result = new Block(data); cache.put(key, result); | Integer key=new Integer((int)(nr)); synchronized(blockCache) { if(blockCache.containsKey(key)) result=(Block)blockCache.get(key); else{ byte[] data = new byte[blockSize]; timedRead(nr, data); result=new Block(this, nr, data); blockCache.put(key, result); } | public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
public byte[] getBlock(long nr) throws IOException { int blockSize = superblock.getBlockSize(); Block result; Integer key = new Integer((int) nr); //check if the block has already been retrieved if (cache.containsKey(key)) result = (Block) cache.get(key); else { byte[] data = new byte[blockSize]; api.read(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java | ||
return superblock.getBlockSize(); | return superblock.getBlockSize(); | public long getBlockSize() { return superblock.getBlockSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
public INode getINode(int iNodeNr) throws IOException, FileSystemException { if (iNodeNr < 1) throw new IOException("INode number must be greater than 0"); int group = (int) ((iNodeNr - 1) / superblock.getINodesPerGroup()); int index = (int) ((iNodeNr - 1) % superblock.getINodesPerGroup()); long iNodeTableBlock = gr... | public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer((int)iNodeNr); synchronized(inodeCache) { if(inode... | public INode getINode(int iNodeNr) throws IOException, FileSystemException { if (iNodeNr < 1) throw new IOException("INode number must be greater than 0"); int group = (int) ((iNodeNr - 1) / superblock.getINodesPerGroup()); int index = (int) ((iNodeNr - 1) % superblock.getINodesPerGroup()); //get the part of the... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); | try{ if(!closed) { return new Ext2Entry( getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR, this ); | public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
} catch (FileSystemException e) { | }catch(FileSystemException e) { | public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
cacheListeners = new Vector(); | public BlockCache(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor, true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/BlockCache.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/BlockCache.java | |
log.setLevel(Level.DEBUG); | log.setLevel(Level.INFO); | public Superblock() { data = new byte[SUPERBLOCK_LENGTH]; log.setLevel(Level.DEBUG); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Superblock.java/buggy/fs/src/fs/org/jnode/fs/ext2/Superblock.java |
log.setLevel(Level.DEBUG); | log.setLevel(Level.INFO); | public GroupDescriptor() { data = new byte[GROUPDESCRIPTOR_LENGTH]; log.setLevel(Level.DEBUG); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java |
log.setLevel(Level.DEBUG); | log.setLevel(Level.INFO); | public INode(Ext2FileSystem fs, INodeDescriptor desc) { this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; log.setLevel(Level.DEBUG); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java |
protected void update() throws IOException{ | protected synchronized void update() throws IOException{ | protected void update() throws IOException{ try{ if(dirty) { log.debug(" ** updating inode **"); desc.getINodeTable().writeInodeData( desc.getIndex(), data ); dirty=false; } }catch(FileSystemException fs) { throw new IOException(fs); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java |
public void flush() { if (!dirty) | public void flush() throws IOException{ if(!dirty) | public void flush() { if (!dirty) return; //XXX... log.error("BLOCK FLUSHED FROM CACHE"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java |
log.error("BLOCK FLUSHED FROM CACHE"); | fs.writeBlock(blockNr, data, true); log.debug("BLOCK FLUSHED FROM CACHE"); | public void flush() { if (!dirty) return; //XXX... log.error("BLOCK FLUSHED FROM CACHE"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java |
public boolean containsKey(Integer key) { | private boolean containsKey(Integer key) { | public boolean containsKey(Integer key) { boolean result = super.containsKey(key); if(result) log.debug("CACHE HIT, size:"+size()); else log.debug("CACHE MISS"); return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/BlockCache.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/BlockCache.java |
public Block(byte[] data) { this.data = data; | public Block(Ext2FileSystem fs, long blockNr, byte[] data) { this.data=data; this.fs=fs; this.blockNr=blockNr; log.setLevel(Level.DEBUG); | public Block(byte[] data) { this.data = data; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java |
public Ext2Entry(INode iNode, String name, int type) { | public Ext2Entry(INode iNode, String name, int type, Ext2FileSystem fs) { | public Ext2Entry(INode iNode, String name, int type) { this.iNode = iNode; this.name = name; this.type = type; this.valid = true; log.debug("Ext2Entry(iNode, name): name="+name+ (isDirectory()?" is a directory ":"")+ (isFile()?" is a file ":"")); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Entry.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java |
this.fs = fs; log.setLevel(Level.INFO); | public Ext2Entry(INode iNode, String name, int type) { this.iNode = iNode; this.name = name; this.type = type; this.valid = true; log.debug("Ext2Entry(iNode, name): name="+name+ (isDirectory()?" is a directory ":"")+ (isFile()?" is a file ":"")); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Entry.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java | |
dirty = true; | dirty=true; | public void setData(byte[] data) { this.data = data; dirty = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Block.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/Block.java |
public int getIconWidth() { | public int getIconWidth() { | public int getIconWidth() { return 16; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java |
public RenderContext(AffineTransform xform) | public RenderContext(AffineTransform xform, Shape aoi, RenderingHints hints) | public RenderContext(AffineTransform xform) { this(xform, null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RenderContext.java/buggy/core/src/classpath/java/java/awt/image/renderable/RenderContext.java |
this(xform, null, null); | this.xform = xform; this.aoi = aoi; this.hints = hints; | public RenderContext(AffineTransform xform) { this(xform, null, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RenderContext.java/buggy/core/src/classpath/java/java/awt/image/renderable/RenderContext.java |
public String replaceAll(String replacement) | public String replaceAll (String replacement) | public String replaceAll(String replacement) { throw new InternalError("Not implemented yet"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Matcher.java/clean/core/src/classpath/java/java/util/regex/Matcher.java |
throw new InternalError("Not implemented yet"); | reset(); return pattern.getRE().substituteAll(input, replacement, position); | public String replaceAll(String replacement) { throw new InternalError("Not implemented yet"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Matcher.java/clean/core/src/classpath/java/java/util/regex/Matcher.java |
public String replaceFirst(String replacement) | public String replaceFirst (String replacement) | public String replaceFirst(String replacement) { throw new InternalError("Not implemented yet"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Matcher.java/clean/core/src/classpath/java/java/util/regex/Matcher.java |
throw new InternalError("Not implemented yet"); | reset(); return pattern.getRE().substitute(input, replacement, position); | public String replaceFirst(String replacement) { throw new InternalError("Not implemented yet"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Matcher.java/clean/core/src/classpath/java/java/util/regex/Matcher.java |
Action action = new AbstractAction(){ public void actionPerformed(ActionEvent e) { } }; action.putValue(Action.NAME, item.getLabel()); ((JPopupMenu)jComponent).add(action); | item.addNotify(); jComponent.add(((SwingMenuItemPeer)item.getPeer()).jComponent); | public void addItem(MenuItem item) { Action action = new AbstractAction(){ public void actionPerformed(ActionEvent e) { //todo implement it } }; action.putValue(Action.NAME, item.getLabel()); ((JPopupMenu)jComponent).add(action); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ab538f05fd611b1ada2cd0d031e46f1e520015f5/SwingPopupMenuPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingPopupMenuPeer.java |
((JPopupMenu)jComponent).setLabel(text); | ((JPopupMenu) jComponent).setLabel(text); | public void setLabel(String text) { ((JPopupMenu)jComponent).setLabel(text); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ab538f05fd611b1ada2cd0d031e46f1e520015f5/SwingPopupMenuPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingPopupMenuPeer.java |
public void setArc(Rectangle2D r, double start, double extent, int type) { setArc(r.getX(), r.getY(), r.getWidth(), r.getHeight(), start, extent, type); } | public abstract void setArc(double x, double y, double w, double h, double start, double extent, int type); | public void setArc(Rectangle2D r, double start, double extent, int type) { setArc(r.getX(), r.getY(), r.getWidth(), r.getHeight(), start, extent, type); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Arc2D.java/buggy/core/src/classpath/java/java/awt/geom/Arc2D.java |
log.info("PLLInfo:" + fbinfo.getPllInfo()); | log.debug("PLLInfo:" + fbinfo.getPllInfo()); | final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java |
log.info("Screen at 0x" + NumberUtils.hex(screen.getOffset()) | log.debug("Screen at 0x" + NumberUtils.hex(screen.getOffset()) | final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java |
log.info("oldState:" + oldVgaState); | log.debug("oldState:" + oldVgaState); | final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java |
log.info("NewState: " + currentState); | log.debug("NewState: " + currentState); | final RadeonSurface open(RadeonConfiguration config) throws ResourceNotFreeException { // Get the best matching config config = fbinfo.getBestConfiguration(config); log.info("BestConfig:" + config); // Calculate new configuration final DisplayMode mode = config.getDisplayMode(); final int width = mode.getW... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java |
final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java | ||
log.info("Set LVDS_GEN_CTRL to 0x" + NumberUtils.hex(lvds_gen_cntl)); | log.debug("Set LVDS_GEN_CTRL to 0x" + NumberUtils.hex(lvds_gen_cntl)); | final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java |
log.info("Set CRTC_EXT_CNTL to 0x" + NumberUtils.hex(crtc_ext_cntl)); | log.debug("Set CRTC_EXT_CNTL to 0x" + NumberUtils.hex(crtc_ext_cntl)); | final void setDpms(DpmsState state) { int crtc_ext_cntl = vgaIO.getReg32(CRTC_EXT_CNTL); int lvds_gen_cntl = vgaIO.getReg32(LVDS_GEN_CNTL);// log.info("Get LVDS_GEN_CTRL 0x" + NumberUtils.hex(lvds_gen_cntl)); crtc_ext_cntl &= ~(CRTC_DISPLAY_DIS | CRTC_HSYNC_DIS | CRTC_VSYNC_DIS); lvds_gen_cntl &= ~(LVDS_DISPLA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4e63381fdfd922b6bbe517700680767f7656e6d3/RadeonCore.java/clean/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonCore.java |
JToolTip(String text) { this.text = text; } | JToolTip(String text) { this.text = text; } | JToolTip(String text) { this.text = text; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JToolTip.java/buggy/core/src/classpath/javax/javax/swing/JToolTip.java |
public ObjectAlreadyActive(String why) | public ObjectAlreadyActive() | public ObjectAlreadyActive(String why) { super(why); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ObjectAlreadyActive.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/ObjectAlreadyActive.java |
super(why); | public ObjectAlreadyActive(String why) { super(why); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ObjectAlreadyActive.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/ObjectAlreadyActive.java | |
private UnicodeBlock(char start, char end, String name) | private UnicodeBlock(int start, int end, String name, String canonicalName) | private UnicodeBlock(char start, char end, String name) { super(name); this.start = start; this.end = end; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/275e73c5840c9c4baf2cbcfb8ab1466101d9707c/Character.java/clean/core/src/classpath/5.0/java/lang/Character.java |
this.canonicalName = canonicalName; | private UnicodeBlock(char start, char end, String name) { super(name); this.start = start; this.end = end; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/275e73c5840c9c4baf2cbcfb8ab1466101d9707c/Character.java/clean/core/src/classpath/5.0/java/lang/Character.java | |
if (ch == '\uFEFF') return SPECIALS; int low = 0; int hi = sets.length - 1; while (low <= hi) { int mid = (low + hi) >> 1; UnicodeBlock b = sets[mid]; if (ch < b.start) hi = mid - 1; else if (ch > b.end) low = mid + 1; else return b; } return null; | return of((int) ch); | public static UnicodeBlock of(char ch) { // Special case, since SPECIALS contains two ranges. if (ch == '\uFEFF') return SPECIALS; // Simple binary search for the correct block. int low = 0; int hi = sets.length - 1; while (low <= hi) { int mid = (low + hi) >>... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/275e73c5840c9c4baf2cbcfb8ab1466101d9707c/Character.java/clean/core/src/classpath/5.0/java/lang/Character.java |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR, name, null, 0); | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, name, null, 0); | public Object getParameter(String name) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { return cdataSections ? Boolean.TRUE : Boolean.FALSE; } else if ("comments".equals(name)) { return comments ? Boolean.TRUE : Boolean.FALSE; } e... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomDocumentConfiguration.java/buggy/core/src/classpath/gnu/gnu/xml/dom/DomDocumentConfiguration.java |
throw new DomEx(DomEx.TYPE_MISMATCH_ERR, | throw new DomDOMException(DOMException.TYPE_MISMATCH_ERR, | public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { cdataSections = "true".equals(value.toString()); } else if ("comments".equals(name)) { comments = "true".equals(value.toString()); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomDocumentConfiguration.java/buggy/core/src/classpath/gnu/gnu/xml/dom/DomDocumentConfiguration.java |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR, name, null, 0); | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, name, null, 0); | public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { cdataSections = "true".equals(value.toString()); } else if ("comments".equals(name)) { comments = "true".equals(value.toString()); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomDocumentConfiguration.java/buggy/core/src/classpath/gnu/gnu/xml/dom/DomDocumentConfiguration.java |
public _NamingContextExtStub(Delegate delegate) | public _NamingContextExtStub() | public _NamingContextExtStub(Delegate delegate) { super(delegate); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/_NamingContextExtStub.java/clean/core/src/classpath/org/org/omg/CosNaming/_NamingContextExtStub.java |
super(delegate); | super(); | public _NamingContextExtStub(Delegate delegate) { super(delegate); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/_NamingContextExtStub.java/clean/core/src/classpath/org/org/omg/CosNaming/_NamingContextExtStub.java |
if (editorComponent instanceof JTextField) { ((JTextField)editorComponent).setText(value.toString()); delegate = new EditorDelegate(); ((JTextField)editorComponent).addActionListener(delegate); } else if (editorComponent instanceof JCheckBox) { ((JCheckBox)editorComponent).setText(value.toString()); delegate = new Edit... | delegate.setValue(value); | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (editorComponent instanceof JTextField) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
String name, String baseUri, String publicId, String systemId, String replacementText) | EntityDeclaration decl, String name) | protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EntityReferenceImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/EntityReferenceImpl.java |
this.decl = decl; | protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EntityReferenceImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/EntityReferenceImpl.java | |
this.baseUri = baseUri; this.publicId = publicId; this.systemId = systemId; this.replacementText = replacementText; | protected EntityReferenceImpl(Location location, //EntityDeclaration decl, String name, String baseUri, String publicId, String systemId, String replacementText) { super(location); //this... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/EntityReferenceImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/EntityReferenceImpl.java | |
this.vmMethod = vmMethod; } | this.vmMethod = vmMethod; } | public Method(VmMethod vmMethod) { this.vmMethod = vmMethod; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
return (this == o); } | return (this == o); } | public boolean equals(Object o) { return (this == o); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { | if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getExce... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
exceptionTypes = list; } return (Class[])exceptionTypes.toArray(new Class[exceptionTypes.size()]); } | exceptionTypes = list; } return (Class[])exceptionTypes.toArray(new Class[exceptionTypes.size()]); } | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getExce... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
return vmMethod.getModifiers(); } | return vmMethod.getModifiers(); } | private int getModifiersInternal() { return vmMethod.getModifiers(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
return declClass.getName().hashCode() ^ getName().hashCode(); } | return declClass.getName().hashCode() ^ getName().hashCode(); } | public int hashCode() { final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode() ^ getName().hashCode(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); | StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).appe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
sb.append(retType.getName()).append(' '); sb.append(declClass.getName()).append('.'); sb.append(getName()).append('('); Class<?>[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName()); for (int i = 1; i < c.length; i++) sb.append(',').append(c[i].getName()); } sb.append(')'); c = getExceptionTypes(); ... | sb.append(retType.getName()).append(' '); sb.append(declClass.getName()).append('.'); sb.append(getName()).append('('); Class<?>[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName()); for (int i = 1; i < c.length; i++) sb.append(',').append(c[i].getName()); } sb.append(')'); c = getExceptionTypes(); ... | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).appe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
protected FSDirectory createDirectory(FSEntry entry) throws IOException { | protected FSDirectory createDirectory(FSEntry entry) throws IOException { | protected FSDirectory createDirectory(FSEntry entry) throws IOException { // TODO Auto-generated method stub return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatFileSystem.java/clean/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java |
protected FSFile createFile(FSEntry entry) throws IOException { // TODO Auto-generated method stub return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatFileSystem.java/clean/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java | ||
protected FSEntry createRootEntry() throws IOException { | protected FSEntry createRootEntry() throws IOException { | protected FSEntry createRootEntry() throws IOException { // TODO Auto-generated method stub return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatFileSystem.java/clean/fs/src/fs/org/jnode/fs/fat/FatFileSystem.java |
api = (BlockDeviceAPI) device.getAPI(BlockDeviceAPI.class); | api = device.getAPI(BlockDeviceAPI.class); | public AbstractFileSystem(Device device, boolean readOnly) throws FileSystemException { if (device == null) throw new IllegalArgumentException("null device!"); this.device = device; try { api = (BlockDeviceAPI) device.getAPI(BlockDeviceAPI.class); } catch (ApiNotFou... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/AbstractFileSystem.java/buggy/fs/src/fs/org/jnode/fs/spi/AbstractFileSystem.java |
log.debug("<<< BEGIN flush >>>"); | public void flush() throws IOException { log.debug("<<< BEGIN flush >>>"); flushFiles(); flushDirectories(); log.debug("<<< END flush >>>"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/AbstractFileSystem.java/buggy/fs/src/fs/org/jnode/fs/spi/AbstractFileSystem.java | |
log.debug("<<< END flush >>>"); | public void flush() throws IOException { log.debug("<<< BEGIN flush >>>"); flushFiles(); flushDirectories(); log.debug("<<< END flush >>>"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/AbstractFileSystem.java/buggy/fs/src/fs/org/jnode/fs/spi/AbstractFileSystem.java | |
int idx = i * 2; | int idx = i << 1; | public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[nrSectors * sectorSize]; for (int i = 0; i < entries.length; i++) { long v = entries[i]; switch (bitSize) { case 12 : { int idx = (int) (i * 1.5); if ((i % 2) == 0) { data[idx] = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/Fat.java/buggy/fs/src/fs/org/jnode/fs/fat/Fat.java |
int idx = i * 4; | int idx = i << 2; | public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { byte[] data = new byte[nrSectors * sectorSize]; for (int i = 0; i < entries.length; i++) { long v = entries[i]; switch (bitSize) { case 12 : { int idx = (int) (i * 1.5); if ((i % 2) == 0) { data[idx] = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/Fat.java/buggy/fs/src/fs/org/jnode/fs/fat/Fat.java |
log.debug("<<< BEGIN getRootEntry >>>"); | public FSEntry getRootEntry() throws IOException { log.debug("<<< BEGIN getRootEntry >>>"); if(isClosed()) throw new IOException("FileSystem is closed"); if(rootEntry == null) { rootEntry = createRootEntry(); } log.debug("<<< END getRootEntry >>>"); return rootEntry;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/AbstractFileSystem.java/buggy/fs/src/fs/org/jnode/fs/spi/AbstractFileSystem.java | |
log.debug("<<< END getRootEntry >>>"); | public FSEntry getRootEntry() throws IOException { log.debug("<<< BEGIN getRootEntry >>>"); if(isClosed()) throw new IOException("FileSystem is closed"); if(rootEntry == null) { rootEntry = createRootEntry(); } log.debug("<<< END getRootEntry >>>"); return rootEntry;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/AbstractFileSystem.java/buggy/fs/src/fs/org/jnode/fs/spi/AbstractFileSystem.java | |
g.fill(gp); | public void render(Graphics2D g, String text, int x, int y) { try { final GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); final TTFGlyphTable glyphTable = fontData.getGlyphTable(); final TTFCMapTable cmapTable = fontData.getCMapTable(); final TTFHorizontalHeaderTable hheadTable = fontData.getHorizon... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/215cf17c616a0479cc5efd99d57dcfbe8a1ee7ad/TTFTextRenderer.java/clean/gui/src/awt/org/jnode/awt/font/truetype/TTFTextRenderer.java | |
public LongSeqHolder(int[] initial_value) | public LongSeqHolder() | public LongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/LongSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/LongSeqHolder.java |
value = initial_value; typecode.setLength(value.length); | public LongSeqHolder(int[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/LongSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/LongSeqHolder.java | |
public ServantAlreadyActive(String why) | public ServantAlreadyActive() | public ServantAlreadyActive(String why) { super(why); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ServantAlreadyActive.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/ServantAlreadyActive.java |
super(why); | public ServantAlreadyActive(String why) { super(why); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ServantAlreadyActive.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/ServantAlreadyActive.java | |
JRootPane createRootPane() | public JRootPane createRootPane() | JRootPane createRootPane() { return new JRootPane(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
Component getGlassPane() | public Component getGlassPane() | Component getGlassPane() { return getRootPane().getGlassPane(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
JLayeredPane getLayeredPane() | public JLayeredPane getLayeredPane() | JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
JRootPane getRootPane() | public JRootPane getRootPane() | JRootPane getRootPane() { if (rootPane == null) setRootPane(createRootPane()); return rootPane; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
void setGlassPane(Component glassPane) | public void setGlassPane(Component glassPane) | void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
void setLayeredPane(JLayeredPane layeredPane) | public void setLayeredPane(JLayeredPane layeredPane) | void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
void setRootPane(JRootPane root) | public void setRootPane(JRootPane root) | void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JWindow.java/buggy/core/src/classpath/javax/javax/swing/JWindow.java |
mid = (low + hi) >> 1; | mid = (low + hi) >>> 1; | int binarySearch(int[] a, int key, int maxIndex) { int low = 0; int hi = maxIndex - 1; int mid = 0; while (low <= hi) { mid = (low + hi) >> 1; final int d = a[mid]; if (d == key) return mid; else if (d > key) hi = mid - 1; else // This ge... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
for (int i = 0; i < positionMarks.length; i++) | for (int i = 0; i < numMarks; i++) | private void dumpMarks() { System.err.print("positionMarks: "); for (int i = 0; i < positionMarks.length; i++) System.err.print(positionMarks[i] + ", "); System.err.println(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
if (p.index > start || p.index <= end) p.index = start; else if (p.index > end) | if (p.index > startIndex || p.index <= endIndex) p.index = startIndex; else if (p.index > endIndex) | private void setPositionsInRange(int start, int end, boolean toStart) { // We slump together all the GapContentPositions to point to // one mark. So this is implemented as follows: // 1. Remove all the marks in the specified range. // 2. Insert one new mark at the correct location. // 3. Adjust all af... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
private short[] getCursor(HardwareCursor cursor) { | private byte[] getCursor(HardwareCursor cursor) { | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
short[] res = (short[]) cursorCache.get(img); | final int w = img.getWidth(); final int h = img.getHeight(); horzOffset = 64 - w; vertOffset = 64 - h; byte[] res = (byte[]) cursorCache.get(img); | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
res = new short[1024]; | res = new byte[1024]; | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
for (int i = 0; i < 1024; i++) { final int v = argb[i]; final int a = (v >>> 24) & 0xFF; final int r = ((v >> 16) & 0xFF) >> 3; final int g = ((v >> 8) & 0xFF) >> 3; final int b = (v & 0xFF) >> 3; | for (int row = 0; row < h; row++) { final int imgOfs = row * w; final int resOfs = row * 16; for (int x = 0; x < w; x++) { final int resRowIdx = resOfs + (((64 - w) + x) >> 3); final int resRowBit = 1 << (7 - (((64 - w) + x) & 7)); | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
res[i] = (short) ((r << 10) | (g << 5) | b); if (a != 0) { res[i] |= 0x8000; | final int v = argb[imgOfs + x]; final int a = (v >>> 24) & 0xFF; final int r = ((v >> 16) & 0xFF); final int g = ((v >> 8) & 0xFF); final int b = (v & 0xFF); if (a != 0) { if (((r + g + b) / 3) >= 128) { } else { res[resRowIdx+8] |= resRowBit; } } else { res[resRowIdx] |= resRowBit; } | private short[] getCursor(HardwareCursor cursor) { final HardwareCursorImage img = cursor.getImage(32, 32); if (img == null) { return null; } short[] res = (short[]) cursorCache.get(img); if (res == null) { res = new short[1024]; final int[] argb = img.getImage(); for (int i = 0; i < 1024; i++) { fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
final short[] cur = getCursor(cursor); | final byte[] cur = getCursor(cursor); | public void setCursorImage(HardwareCursor cursor) { // Background color io.setReg32(CUR_CLR0, 0xffffff); // Foreground color io.setReg32(CUR_CLR1, 0); // Set shape final short[] cur = getCursor(cursor); if (cur != null) { cursorMem.setShorts(cur, 0, 0, 1024); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
cursorMem.setShorts(cur, 0, 0, 1024); | io.setReg32(CUR_HORZ_VERT_OFF, vertOffset + (horzOffset << 16)); cursorMem.setBytes(cur, 0, 0, 1024); | public void setCursorImage(HardwareCursor cursor) { // Background color io.setReg32(CUR_CLR0, 0xffffff); // Foreground color io.setReg32(CUR_CLR1, 0); // Set shape final short[] cur = getCursor(cursor); if (cur != null) { cursorMem.setShorts(cur, 0, 0, 1024); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
| (xorigin << 16) | yorigin ); | | ((xorigin + horzOffset) << 16) | (yorigin + vertOffset)); | public void setCursorPosition(int x, int y) { // if upper-left corner of cursor is outside of // screen, we have to use special registers to clip it int xorigin = 0; int yorigin = 0; if( x < 0 ) { xorigin = -x; } if( y < 0 ) { yorigin = -y; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/10aadd8d8300e07caf56fff9c0aa50b5610ed50d/RadeonHardwareCursor.java/buggy/gui/src/driver/org/jnode/driver/video/ati/radeon/RadeonHardwareCursor.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.